@everymatrix/general-logout 1.76.3 → 1.76.4
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-BhXy_vyo.cjs +18 -0
- package/components/{GeneralLogout-B08moOmV.js → GeneralLogout-BuKJGZNi.js} +853 -818
- package/components/{GeneralLogout-CjYbEKzP.js → GeneralLogout-CDz_Rii6.js} +837 -802
- 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-DpcP5J7P.cjs +0 -18
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var dr = Object.defineProperty, mr = Object.defineProperties;
|
|
2
|
+
var br = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var rt = Object.getOwnPropertySymbols;
|
|
4
|
+
var gr = Object.prototype.hasOwnProperty, yr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Be = (e, t, r) => t in e ? dr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, nt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
gr.call(t, r) && Be(e, r, t[r]);
|
|
8
|
+
if (rt)
|
|
9
|
+
for (var r of rt(t))
|
|
10
|
+
yr.call(t, r) && Be(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var T = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, it = (e, t) => mr(e, br(t));
|
|
13
|
+
var T = (e, t, r) => (Be(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var ot = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(h));
|
|
@@ -29,25 +29,25 @@ var tt = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function w() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function It(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function st() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function ie(e) {
|
|
39
|
+
e.forEach(It);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Ke(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Lt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function vr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Nt(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
@@ -56,20 +56,20 @@ function Pt(e, ...t) {
|
|
|
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 _r(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(Nt(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 = xr(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
|
-
const i =
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
68
|
+
const i = I("style");
|
|
69
|
+
i.id = t, i.textContent = r, Sr(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function xr(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,48 +79,48 @@ function yr(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Sr(e, t) {
|
|
83
83
|
return S(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function oe(e, t, r) {
|
|
90
90
|
e.insertBefore(t, r || null);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Z(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function I(e) {
|
|
96
96
|
return document.createElement(e);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function q(e) {
|
|
99
99
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function ye(e) {
|
|
102
102
|
return document.createTextNode(e);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
return
|
|
104
|
+
function Tr() {
|
|
105
|
+
return ye(" ");
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Mt(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 Hr(e) {
|
|
114
114
|
return Array.from(e.childNodes);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Ct(e, t) {
|
|
117
117
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
118
118
|
t);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Br(e, t, r, n) {
|
|
121
121
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function wr(e) {
|
|
124
124
|
const t = {};
|
|
125
125
|
return e.childNodes.forEach(
|
|
126
126
|
/** @param {Element} node */
|
|
@@ -129,87 +129,87 @@ function Sr(e) {
|
|
|
129
129
|
}
|
|
130
130
|
), t;
|
|
131
131
|
}
|
|
132
|
-
let
|
|
133
|
-
function
|
|
134
|
-
|
|
132
|
+
let te;
|
|
133
|
+
function ee(e) {
|
|
134
|
+
te = e;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
if (!
|
|
136
|
+
function Ar() {
|
|
137
|
+
if (!te)
|
|
138
138
|
throw new Error("Function called outside component initialization");
|
|
139
|
-
return
|
|
139
|
+
return te;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
|
|
141
|
+
function Pr(e) {
|
|
142
|
+
Ar().$$.on_mount.push(e);
|
|
143
143
|
}
|
|
144
|
-
const j = [],
|
|
144
|
+
const j = [], Ce = [];
|
|
145
145
|
let k = [];
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
146
|
+
const at = [], Or = /* @__PURE__ */ Promise.resolve();
|
|
147
|
+
let $e = !1;
|
|
148
|
+
function Ir() {
|
|
149
|
+
$e || ($e = !0, Or.then(A));
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function Re(e) {
|
|
152
152
|
k.push(e);
|
|
153
153
|
}
|
|
154
|
-
const
|
|
155
|
-
let
|
|
154
|
+
const we = /* @__PURE__ */ new Set();
|
|
155
|
+
let D = 0;
|
|
156
156
|
function A() {
|
|
157
|
-
if (
|
|
157
|
+
if (D !== 0)
|
|
158
158
|
return;
|
|
159
|
-
const e =
|
|
159
|
+
const e = te;
|
|
160
160
|
do {
|
|
161
161
|
try {
|
|
162
|
-
for (;
|
|
163
|
-
const t = j[
|
|
164
|
-
|
|
162
|
+
for (; D < j.length; ) {
|
|
163
|
+
const t = j[D];
|
|
164
|
+
D++, ee(t), Lr(t.$$);
|
|
165
165
|
}
|
|
166
166
|
} catch (t) {
|
|
167
|
-
throw j.length = 0,
|
|
167
|
+
throw j.length = 0, D = 0, t;
|
|
168
168
|
}
|
|
169
|
-
for (
|
|
170
|
-
|
|
169
|
+
for (ee(null), j.length = 0, D = 0; Ce.length; )
|
|
170
|
+
Ce.pop()();
|
|
171
171
|
for (let t = 0; t < k.length; t += 1) {
|
|
172
172
|
const r = k[t];
|
|
173
|
-
|
|
173
|
+
we.has(r) || (we.add(r), r());
|
|
174
174
|
}
|
|
175
175
|
k.length = 0;
|
|
176
176
|
} while (j.length);
|
|
177
|
-
for (;
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
for (; at.length; )
|
|
178
|
+
at.pop()();
|
|
179
|
+
$e = !1, we.clear(), ee(e);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Lr(e) {
|
|
182
182
|
if (e.fragment !== null) {
|
|
183
|
-
e.update(),
|
|
183
|
+
e.update(), ie(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(Re);
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Nr(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 Mr = /* @__PURE__ */ new Set();
|
|
193
|
+
function Cr(e, t) {
|
|
194
|
+
e && e.i && (Mr.delete(e), e.i(t));
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function $r(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(
|
|
200
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
201
|
-
}), i.forEach(
|
|
198
|
+
n && n.m(t, r), Re(() => {
|
|
199
|
+
const o = e.$$.on_mount.map(It).filter(Ke);
|
|
200
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ie(o), e.$$.on_mount = [];
|
|
201
|
+
}), i.forEach(Re);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Rr(e, t) {
|
|
204
204
|
const r = e.$$;
|
|
205
|
-
r.fragment !== null && (
|
|
205
|
+
r.fragment !== null && (Nr(r.after_update), ie(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 Ur(e, t) {
|
|
208
|
+
e.$$.dirty[0] === -1 && (j.push(e), Ir(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
const h =
|
|
212
|
-
|
|
210
|
+
function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
211
|
+
const h = te;
|
|
212
|
+
ee(e);
|
|
213
213
|
const u = e.$$ = {
|
|
214
214
|
fragment: null,
|
|
215
215
|
ctx: [],
|
|
@@ -217,7 +217,7 @@ function Cr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
217
217
|
props: o,
|
|
218
218
|
update: w,
|
|
219
219
|
not_equal: i,
|
|
220
|
-
bound:
|
|
220
|
+
bound: st(),
|
|
221
221
|
// lifecycle
|
|
222
222
|
on_mount: [],
|
|
223
223
|
on_destroy: [],
|
|
@@ -226,28 +226,28 @@ function Cr(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: st(),
|
|
230
230
|
dirty: a,
|
|
231
231
|
skip_bound: !1,
|
|
232
232
|
root: t.target || h.$$.root
|
|
233
233
|
};
|
|
234
234
|
s && s(u.root);
|
|
235
235
|
let l = !1;
|
|
236
|
-
if (u.ctx = r(e, t.props || {}, (
|
|
237
|
-
const
|
|
238
|
-
return u.ctx && i(u.ctx[
|
|
239
|
-
}), u.update(), l = !0,
|
|
236
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
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 && Ur(e, f)), c;
|
|
239
|
+
}) : [], u.update(), l = !0, ie(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
240
240
|
if (t.hydrate) {
|
|
241
|
-
const
|
|
242
|
-
u.fragment && u.fragment.l(
|
|
241
|
+
const f = Hr(t.target);
|
|
242
|
+
u.fragment && u.fragment.l(f), f.forEach(Z);
|
|
243
243
|
} else
|
|
244
244
|
u.fragment && u.fragment.c();
|
|
245
|
-
t.intro &&
|
|
245
|
+
t.intro && Cr(e.$$.fragment), $r(e, t.target, t.anchor), A();
|
|
246
246
|
}
|
|
247
|
-
|
|
247
|
+
ee(h);
|
|
248
248
|
}
|
|
249
|
-
let
|
|
250
|
-
typeof HTMLElement == "function" && (
|
|
249
|
+
let $t;
|
|
250
|
+
typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
251
251
|
constructor(t, r, n) {
|
|
252
252
|
super();
|
|
253
253
|
/** The Svelte component constructor */
|
|
@@ -284,42 +284,42 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
connectedCallback() {
|
|
287
|
-
return
|
|
287
|
+
return ot(this, null, function* () {
|
|
288
288
|
if (this.$$cn = !0, !this.$$c) {
|
|
289
289
|
let t = function(o) {
|
|
290
290
|
return () => {
|
|
291
291
|
let s;
|
|
292
292
|
return {
|
|
293
293
|
c: function() {
|
|
294
|
-
s =
|
|
294
|
+
s = I("slot"), o !== "default" && H(s, "name", o);
|
|
295
295
|
},
|
|
296
296
|
/**
|
|
297
297
|
* @param {HTMLElement} target
|
|
298
298
|
* @param {HTMLElement} [anchor]
|
|
299
299
|
*/
|
|
300
300
|
m: function(u, l) {
|
|
301
|
-
|
|
301
|
+
oe(u, s, l);
|
|
302
302
|
},
|
|
303
303
|
d: function(u) {
|
|
304
|
-
u &&
|
|
304
|
+
u && Z(s);
|
|
305
305
|
}
|
|
306
306
|
};
|
|
307
307
|
};
|
|
308
308
|
};
|
|
309
309
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
310
310
|
return;
|
|
311
|
-
const r = {}, n =
|
|
311
|
+
const r = {}, n = wr(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) {
|
|
315
315
|
const s = this.$$g_p(o.name);
|
|
316
|
-
s in this.$$d || (this.$$d[s] =
|
|
316
|
+
s in this.$$d || (this.$$d[s] = ce(s, o.value, this.$$p_d, "toProp"));
|
|
317
317
|
}
|
|
318
318
|
for (const o in this.$$p_d)
|
|
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: it(nt({}, this.$$d), {
|
|
323
323
|
$$slots: r,
|
|
324
324
|
$$scope: {
|
|
325
325
|
ctx: []
|
|
@@ -330,7 +330,7 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
330
330
|
this.$$r = !0;
|
|
331
331
|
for (const o in this.$$p_d)
|
|
332
332
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
333
|
-
const s =
|
|
333
|
+
const s = ce(
|
|
334
334
|
o,
|
|
335
335
|
this.$$d[o],
|
|
336
336
|
this.$$p_d,
|
|
@@ -354,7 +354,7 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
354
354
|
// and setting attributes through setAttribute etc, this is helpful
|
|
355
355
|
attributeChangedCallback(t, r, n) {
|
|
356
356
|
var i;
|
|
357
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
357
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ce(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
358
358
|
}
|
|
359
359
|
disconnectedCallback() {
|
|
360
360
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -367,7 +367,7 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
367
367
|
) || t;
|
|
368
368
|
}
|
|
369
369
|
});
|
|
370
|
-
function
|
|
370
|
+
function ce(e, t, r, n) {
|
|
371
371
|
var o;
|
|
372
372
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
373
373
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -397,8 +397,8 @@ function fe(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 $t {
|
|
402
402
|
constructor() {
|
|
403
403
|
super(e, r, i), this.$$p_d = t;
|
|
404
404
|
}
|
|
@@ -415,7 +415,7 @@ function $r(e, t, r, n, i, o) {
|
|
|
415
415
|
},
|
|
416
416
|
set(h) {
|
|
417
417
|
var u;
|
|
418
|
-
h =
|
|
418
|
+
h = ce(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
|
|
419
419
|
}
|
|
420
420
|
});
|
|
421
421
|
}), n.forEach((a) => {
|
|
@@ -428,7 +428,7 @@ function $r(e, t, r, n, i, o) {
|
|
|
428
428
|
}), e.element = /** @type {any} */
|
|
429
429
|
s, s;
|
|
430
430
|
}
|
|
431
|
-
class
|
|
431
|
+
class Fr {
|
|
432
432
|
constructor() {
|
|
433
433
|
/**
|
|
434
434
|
* ### PRIVATE API
|
|
@@ -449,7 +449,7 @@ class Rr {
|
|
|
449
449
|
}
|
|
450
450
|
/** @returns {void} */
|
|
451
451
|
$destroy() {
|
|
452
|
-
|
|
452
|
+
Rr(this, 1), this.$destroy = w;
|
|
453
453
|
}
|
|
454
454
|
/**
|
|
455
455
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -458,7 +458,7 @@ class Rr {
|
|
|
458
458
|
* @returns {() => void}
|
|
459
459
|
*/
|
|
460
460
|
$on(t, r) {
|
|
461
|
-
if (!
|
|
461
|
+
if (!Ke(r))
|
|
462
462
|
return w;
|
|
463
463
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
464
464
|
return n.push(r), () => {
|
|
@@ -471,11 +471,11 @@ class Rr {
|
|
|
471
471
|
* @returns {void}
|
|
472
472
|
*/
|
|
473
473
|
$set(t) {
|
|
474
|
-
this.$$set && !
|
|
474
|
+
this.$$set && !vr(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 jr = "4";
|
|
478
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(jr);
|
|
479
479
|
/*! *****************************************************************************
|
|
480
480
|
Copyright (c) Microsoft Corporation.
|
|
481
481
|
|
|
@@ -490,43 +490,24 @@ 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 Ue = function(e, t) {
|
|
494
|
+
return Ue = 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
|
+
}, Ue(e, t);
|
|
500
500
|
};
|
|
501
|
-
function
|
|
501
|
+
function se(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
|
+
Ue(e, t);
|
|
505
505
|
function r() {
|
|
506
506
|
this.constructor = e;
|
|
507
507
|
}
|
|
508
508
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
509
509
|
}
|
|
510
|
-
|
|
511
|
-
return g = Object.assign || function(t) {
|
|
512
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
513
|
-
r = arguments[n];
|
|
514
|
-
for (var o in r)
|
|
515
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
516
|
-
}
|
|
517
|
-
return t;
|
|
518
|
-
}, g.apply(this, arguments);
|
|
519
|
-
};
|
|
520
|
-
function Dr(e, t) {
|
|
521
|
-
var r = {};
|
|
522
|
-
for (var n in e)
|
|
523
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
524
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
525
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
526
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
527
|
-
return r;
|
|
528
|
-
}
|
|
529
|
-
function $e(e) {
|
|
510
|
+
function Ge(e) {
|
|
530
511
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
531
512
|
if (r)
|
|
532
513
|
return r.call(e);
|
|
@@ -538,7 +519,7 @@ function $e(e) {
|
|
|
538
519
|
};
|
|
539
520
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
540
521
|
}
|
|
541
|
-
function
|
|
522
|
+
function De(e, t) {
|
|
542
523
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
543
524
|
if (!r)
|
|
544
525
|
return e;
|
|
@@ -558,22 +539,22 @@ function Re(e, t) {
|
|
|
558
539
|
}
|
|
559
540
|
return o;
|
|
560
541
|
}
|
|
561
|
-
function
|
|
562
|
-
if (
|
|
542
|
+
function Fe(e, t, r) {
|
|
543
|
+
if (arguments.length === 2)
|
|
563
544
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
564
545
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
565
546
|
return e.concat(o || t);
|
|
566
547
|
}
|
|
567
|
-
function
|
|
548
|
+
function L(e) {
|
|
568
549
|
return typeof e == "function";
|
|
569
550
|
}
|
|
570
|
-
function
|
|
551
|
+
function Rt(e) {
|
|
571
552
|
var t = function(n) {
|
|
572
553
|
Error.call(n), n.stack = new Error().stack;
|
|
573
554
|
}, r = e(t);
|
|
574
555
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
575
556
|
}
|
|
576
|
-
var
|
|
557
|
+
var Ae = Rt(function(e) {
|
|
577
558
|
return function(r) {
|
|
578
559
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
579
560
|
` + r.map(function(n, i) {
|
|
@@ -582,13 +563,13 @@ var Be = Nt(function(e) {
|
|
|
582
563
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
583
564
|
};
|
|
584
565
|
});
|
|
585
|
-
function
|
|
566
|
+
function je(e, t) {
|
|
586
567
|
if (e) {
|
|
587
568
|
var r = e.indexOf(t);
|
|
588
569
|
0 <= r && e.splice(r, 1);
|
|
589
570
|
}
|
|
590
571
|
}
|
|
591
|
-
var
|
|
572
|
+
var ve = function() {
|
|
592
573
|
function e(t) {
|
|
593
574
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
594
575
|
}
|
|
@@ -600,12 +581,12 @@ var ye = function() {
|
|
|
600
581
|
if (s)
|
|
601
582
|
if (this._parentage = null, Array.isArray(s))
|
|
602
583
|
try {
|
|
603
|
-
for (var a =
|
|
584
|
+
for (var a = Ge(s), h = a.next(); !h.done; h = a.next()) {
|
|
604
585
|
var u = h.value;
|
|
605
586
|
u.remove(this);
|
|
606
587
|
}
|
|
607
|
-
} catch (
|
|
608
|
-
t = { error:
|
|
588
|
+
} catch (y) {
|
|
589
|
+
t = { error: y };
|
|
609
590
|
} finally {
|
|
610
591
|
try {
|
|
611
592
|
h && !h.done && (r = a.return) && r.call(a);
|
|
@@ -617,29 +598,29 @@ var ye = function() {
|
|
|
617
598
|
else
|
|
618
599
|
s.remove(this);
|
|
619
600
|
var l = this.initialTeardown;
|
|
620
|
-
if (
|
|
601
|
+
if (L(l))
|
|
621
602
|
try {
|
|
622
603
|
l();
|
|
623
|
-
} catch (
|
|
624
|
-
o =
|
|
604
|
+
} catch (y) {
|
|
605
|
+
o = y instanceof Ae ? y.errors : [y];
|
|
625
606
|
}
|
|
626
|
-
var
|
|
627
|
-
if (
|
|
607
|
+
var f = this._finalizers;
|
|
608
|
+
if (f) {
|
|
628
609
|
this._finalizers = null;
|
|
629
610
|
try {
|
|
630
|
-
for (var
|
|
631
|
-
var
|
|
611
|
+
for (var c = Ge(f), p = c.next(); !p.done; p = c.next()) {
|
|
612
|
+
var d = p.value;
|
|
632
613
|
try {
|
|
633
|
-
|
|
634
|
-
} catch (
|
|
635
|
-
o = o != null ? o : [],
|
|
614
|
+
ut(d);
|
|
615
|
+
} catch (y) {
|
|
616
|
+
o = o != null ? o : [], y instanceof Ae ? o = Fe(Fe([], De(o)), De(y.errors)) : o.push(y);
|
|
636
617
|
}
|
|
637
618
|
}
|
|
638
|
-
} catch (
|
|
639
|
-
n = { error:
|
|
619
|
+
} catch (y) {
|
|
620
|
+
n = { error: y };
|
|
640
621
|
} finally {
|
|
641
622
|
try {
|
|
642
|
-
|
|
623
|
+
p && !p.done && (i = c.return) && i.call(c);
|
|
643
624
|
} finally {
|
|
644
625
|
if (n)
|
|
645
626
|
throw n.error;
|
|
@@ -647,13 +628,13 @@ var ye = function() {
|
|
|
647
628
|
}
|
|
648
629
|
}
|
|
649
630
|
if (o)
|
|
650
|
-
throw new
|
|
631
|
+
throw new Ae(o);
|
|
651
632
|
}
|
|
652
633
|
}, e.prototype.add = function(t) {
|
|
653
634
|
var r;
|
|
654
635
|
if (t && t !== this)
|
|
655
636
|
if (this.closed)
|
|
656
|
-
|
|
637
|
+
ut(t);
|
|
657
638
|
else {
|
|
658
639
|
if (t instanceof e) {
|
|
659
640
|
if (t.closed || t._hasParent(this))
|
|
@@ -670,56 +651,52 @@ var ye = function() {
|
|
|
670
651
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
671
652
|
}, e.prototype._removeParent = function(t) {
|
|
672
653
|
var r = this._parentage;
|
|
673
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
654
|
+
r === t ? this._parentage = null : Array.isArray(r) && je(r, t);
|
|
674
655
|
}, e.prototype.remove = function(t) {
|
|
675
656
|
var r = this._finalizers;
|
|
676
|
-
r &&
|
|
657
|
+
r && je(r, t), t instanceof e && t._removeParent(this);
|
|
677
658
|
}, e.EMPTY = function() {
|
|
678
659
|
var t = new e();
|
|
679
660
|
return t.closed = !0, t;
|
|
680
661
|
}(), e;
|
|
681
|
-
}(),
|
|
682
|
-
function
|
|
683
|
-
return e instanceof
|
|
684
|
-
}
|
|
685
|
-
function
|
|
686
|
-
|
|
687
|
-
}
|
|
688
|
-
var
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
Promise: void 0,
|
|
692
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
693
|
-
useDeprecatedNextContext: !1
|
|
694
|
-
}, Fr = {
|
|
662
|
+
}(), Ut = ve.EMPTY;
|
|
663
|
+
function Gt(e) {
|
|
664
|
+
return e instanceof ve || e && "closed" in e && L(e.remove) && L(e.add) && L(e.unsubscribe);
|
|
665
|
+
}
|
|
666
|
+
function ut(e) {
|
|
667
|
+
L(e) ? e() : e.unsubscribe();
|
|
668
|
+
}
|
|
669
|
+
var kr = {
|
|
670
|
+
Promise: void 0
|
|
671
|
+
}, Vr = {
|
|
695
672
|
setTimeout: function(e, t) {
|
|
696
673
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
697
674
|
r[n - 2] = arguments[n];
|
|
698
|
-
return setTimeout.apply(void 0,
|
|
675
|
+
return setTimeout.apply(void 0, Fe([e, t], De(r)));
|
|
699
676
|
},
|
|
700
677
|
clearTimeout: function(e) {
|
|
701
678
|
return clearTimeout(e);
|
|
702
679
|
},
|
|
703
680
|
delegate: void 0
|
|
704
681
|
};
|
|
705
|
-
function
|
|
706
|
-
|
|
682
|
+
function Xr(e) {
|
|
683
|
+
Vr.setTimeout(function() {
|
|
707
684
|
throw e;
|
|
708
685
|
});
|
|
709
686
|
}
|
|
710
|
-
function
|
|
687
|
+
function ht() {
|
|
711
688
|
}
|
|
712
|
-
function
|
|
689
|
+
function fe(e) {
|
|
713
690
|
e();
|
|
714
691
|
}
|
|
715
|
-
var
|
|
716
|
-
|
|
692
|
+
var Dt = function(e) {
|
|
693
|
+
se(t, e);
|
|
717
694
|
function t(r) {
|
|
718
695
|
var n = e.call(this) || this;
|
|
719
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
696
|
+
return n.isStopped = !1, r ? (n.destination = r, Gt(r) && r.add(n)) : n.destination = Zr, n;
|
|
720
697
|
}
|
|
721
698
|
return t.create = function(r, n, i) {
|
|
722
|
-
return new
|
|
699
|
+
return new ke(r, n, i);
|
|
723
700
|
}, t.prototype.next = function(r) {
|
|
724
701
|
this.isStopped || this._next(r);
|
|
725
702
|
}, t.prototype.error = function(r) {
|
|
@@ -743,7 +720,7 @@ var $t = function(e) {
|
|
|
743
720
|
this.unsubscribe();
|
|
744
721
|
}
|
|
745
722
|
}, t;
|
|
746
|
-
}(
|
|
723
|
+
}(ve), Wr = function() {
|
|
747
724
|
function e(t) {
|
|
748
725
|
this.partialObserver = t;
|
|
749
726
|
}
|
|
@@ -774,43 +751,43 @@ var $t = function(e) {
|
|
|
774
751
|
he(r);
|
|
775
752
|
}
|
|
776
753
|
}, e;
|
|
777
|
-
}(),
|
|
778
|
-
|
|
754
|
+
}(), ke = function(e) {
|
|
755
|
+
se(t, e);
|
|
779
756
|
function t(r, n, i) {
|
|
780
757
|
var o = e.call(this) || this, s;
|
|
781
|
-
return
|
|
758
|
+
return L(r) || !r ? s = {
|
|
782
759
|
next: r != null ? r : void 0,
|
|
783
760
|
error: n != null ? n : void 0,
|
|
784
761
|
complete: i != null ? i : void 0
|
|
785
|
-
} : s = r, o.destination = new
|
|
762
|
+
} : s = r, o.destination = new Wr(s), o;
|
|
786
763
|
}
|
|
787
764
|
return t;
|
|
788
|
-
}(
|
|
765
|
+
}(Dt);
|
|
789
766
|
function he(e) {
|
|
790
|
-
|
|
767
|
+
Xr(e);
|
|
791
768
|
}
|
|
792
|
-
function
|
|
769
|
+
function zr(e) {
|
|
793
770
|
throw e;
|
|
794
771
|
}
|
|
795
|
-
var
|
|
772
|
+
var Zr = {
|
|
796
773
|
closed: !0,
|
|
797
|
-
next:
|
|
798
|
-
error:
|
|
799
|
-
complete:
|
|
800
|
-
},
|
|
774
|
+
next: ht,
|
|
775
|
+
error: zr,
|
|
776
|
+
complete: ht
|
|
777
|
+
}, Qr = function() {
|
|
801
778
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
802
779
|
}();
|
|
803
|
-
function
|
|
780
|
+
function Jr(e) {
|
|
804
781
|
return e;
|
|
805
782
|
}
|
|
806
|
-
function
|
|
807
|
-
return e.length === 0 ?
|
|
783
|
+
function Yr(e) {
|
|
784
|
+
return e.length === 0 ? Jr : e.length === 1 ? e[0] : function(r) {
|
|
808
785
|
return e.reduce(function(n, i) {
|
|
809
786
|
return i(n);
|
|
810
787
|
}, r);
|
|
811
788
|
};
|
|
812
789
|
}
|
|
813
|
-
var
|
|
790
|
+
var lt = function() {
|
|
814
791
|
function e(t) {
|
|
815
792
|
t && (this._subscribe = t);
|
|
816
793
|
}
|
|
@@ -818,8 +795,8 @@ var st = function() {
|
|
|
818
795
|
var r = new e();
|
|
819
796
|
return r.source = this, r.operator = t, r;
|
|
820
797
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
821
|
-
var i = this, o =
|
|
822
|
-
return
|
|
798
|
+
var i = this, o = Kr(t) ? t : new ke(t, r, n);
|
|
799
|
+
return fe(function() {
|
|
823
800
|
var s = i, a = s.operator, h = s.source;
|
|
824
801
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
825
802
|
}), o;
|
|
@@ -831,8 +808,8 @@ var st = function() {
|
|
|
831
808
|
}
|
|
832
809
|
}, e.prototype.forEach = function(t, r) {
|
|
833
810
|
var n = this;
|
|
834
|
-
return r =
|
|
835
|
-
var s = new
|
|
811
|
+
return r = ct(r), new r(function(i, o) {
|
|
812
|
+
var s = new ke({
|
|
836
813
|
next: function(a) {
|
|
837
814
|
try {
|
|
838
815
|
t(a);
|
|
@@ -848,15 +825,15 @@ var st = function() {
|
|
|
848
825
|
}, e.prototype._subscribe = function(t) {
|
|
849
826
|
var r;
|
|
850
827
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
851
|
-
}, e.prototype[
|
|
828
|
+
}, e.prototype[Qr] = function() {
|
|
852
829
|
return this;
|
|
853
830
|
}, e.prototype.pipe = function() {
|
|
854
831
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
855
832
|
t[r] = arguments[r];
|
|
856
|
-
return
|
|
833
|
+
return Yr(t)(this);
|
|
857
834
|
}, e.prototype.toPromise = function(t) {
|
|
858
835
|
var r = this;
|
|
859
|
-
return t =
|
|
836
|
+
return t = ct(t), new t(function(n, i) {
|
|
860
837
|
var o;
|
|
861
838
|
r.subscribe(function(s) {
|
|
862
839
|
return o = s;
|
|
@@ -870,40 +847,40 @@ var st = function() {
|
|
|
870
847
|
return new e(t);
|
|
871
848
|
}, e;
|
|
872
849
|
}();
|
|
873
|
-
function
|
|
850
|
+
function ct(e) {
|
|
874
851
|
var t;
|
|
875
|
-
return (t = e != null ? e :
|
|
852
|
+
return (t = e != null ? e : kr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
876
853
|
}
|
|
877
|
-
function
|
|
878
|
-
return e &&
|
|
854
|
+
function qr(e) {
|
|
855
|
+
return e && L(e.next) && L(e.error) && L(e.complete);
|
|
879
856
|
}
|
|
880
|
-
function
|
|
881
|
-
return e && e instanceof
|
|
857
|
+
function Kr(e) {
|
|
858
|
+
return e && e instanceof Dt || qr(e) && Gt(e);
|
|
882
859
|
}
|
|
883
|
-
var
|
|
860
|
+
var en = Rt(function(e) {
|
|
884
861
|
return function() {
|
|
885
862
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
886
863
|
};
|
|
887
|
-
}),
|
|
888
|
-
|
|
864
|
+
}), Ft = function(e) {
|
|
865
|
+
se(t, e);
|
|
889
866
|
function t() {
|
|
890
867
|
var r = e.call(this) || this;
|
|
891
868
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
892
869
|
}
|
|
893
870
|
return t.prototype.lift = function(r) {
|
|
894
|
-
var n = new
|
|
871
|
+
var n = new ft(this, this);
|
|
895
872
|
return n.operator = r, n;
|
|
896
873
|
}, t.prototype._throwIfClosed = function() {
|
|
897
874
|
if (this.closed)
|
|
898
|
-
throw new
|
|
875
|
+
throw new en();
|
|
899
876
|
}, t.prototype.next = function(r) {
|
|
900
877
|
var n = this;
|
|
901
|
-
|
|
878
|
+
fe(function() {
|
|
902
879
|
var i, o;
|
|
903
880
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
904
881
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
905
882
|
try {
|
|
906
|
-
for (var s =
|
|
883
|
+
for (var s = Ge(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
907
884
|
var h = a.value;
|
|
908
885
|
h.next(r);
|
|
909
886
|
}
|
|
@@ -921,7 +898,7 @@ var Yr = Nt(function(e) {
|
|
|
921
898
|
});
|
|
922
899
|
}, t.prototype.error = function(r) {
|
|
923
900
|
var n = this;
|
|
924
|
-
|
|
901
|
+
fe(function() {
|
|
925
902
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
926
903
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
927
904
|
for (var i = n.observers; i.length; )
|
|
@@ -930,7 +907,7 @@ var Yr = Nt(function(e) {
|
|
|
930
907
|
});
|
|
931
908
|
}, t.prototype.complete = function() {
|
|
932
909
|
var r = this;
|
|
933
|
-
|
|
910
|
+
fe(function() {
|
|
934
911
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
935
912
|
r.isStopped = !0;
|
|
936
913
|
for (var n = r.observers; n.length; )
|
|
@@ -952,20 +929,20 @@ var Yr = Nt(function(e) {
|
|
|
952
929
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
953
930
|
}, t.prototype._innerSubscribe = function(r) {
|
|
954
931
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
955
|
-
return o || s ?
|
|
956
|
-
n.currentObservers = null,
|
|
932
|
+
return o || s ? Ut : (this.currentObservers = null, a.push(r), new ve(function() {
|
|
933
|
+
n.currentObservers = null, je(a, r);
|
|
957
934
|
}));
|
|
958
935
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
959
936
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
960
937
|
i ? r.error(o) : s && r.complete();
|
|
961
938
|
}, t.prototype.asObservable = function() {
|
|
962
|
-
var r = new
|
|
939
|
+
var r = new lt();
|
|
963
940
|
return r.source = this, r;
|
|
964
941
|
}, t.create = function(r, n) {
|
|
965
|
-
return new
|
|
942
|
+
return new ft(r, n);
|
|
966
943
|
}, t;
|
|
967
|
-
}(
|
|
968
|
-
|
|
944
|
+
}(lt), ft = function(e) {
|
|
945
|
+
se(t, e);
|
|
969
946
|
function t(r, n) {
|
|
970
947
|
var i = e.call(this) || this;
|
|
971
948
|
return i.destination = r, i.source = n, i;
|
|
@@ -981,17 +958,17 @@ var Yr = Nt(function(e) {
|
|
|
981
958
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
982
959
|
}, t.prototype._subscribe = function(r) {
|
|
983
960
|
var n, i;
|
|
984
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
961
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ut;
|
|
985
962
|
}, t;
|
|
986
|
-
}(
|
|
963
|
+
}(Ft), jt = {
|
|
987
964
|
now: function() {
|
|
988
|
-
return (
|
|
965
|
+
return (jt.delegate || Date).now();
|
|
989
966
|
},
|
|
990
967
|
delegate: void 0
|
|
991
|
-
},
|
|
992
|
-
|
|
968
|
+
}, tn = function(e) {
|
|
969
|
+
se(t, e);
|
|
993
970
|
function t(r, n, i) {
|
|
994
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
971
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = jt);
|
|
995
972
|
var o = e.call(this) || this;
|
|
996
973
|
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;
|
|
997
974
|
}
|
|
@@ -1011,24 +988,24 @@ var Yr = Nt(function(e) {
|
|
|
1011
988
|
u && o.splice(0, u + 1);
|
|
1012
989
|
}
|
|
1013
990
|
}, t;
|
|
1014
|
-
}(
|
|
1015
|
-
const
|
|
1016
|
-
if (
|
|
1017
|
-
const r = new
|
|
1018
|
-
|
|
991
|
+
}(Ft);
|
|
992
|
+
const pt = [], dt = {}, rn = (e, t = 0) => {
|
|
993
|
+
if (pt.indexOf(e) == -1) {
|
|
994
|
+
const r = new tn(t);
|
|
995
|
+
dt[e] = r, pt.push(e);
|
|
1019
996
|
}
|
|
1020
|
-
return
|
|
997
|
+
return dt[e];
|
|
1021
998
|
}, F = [];
|
|
1022
|
-
function
|
|
999
|
+
function nn(e, t) {
|
|
1023
1000
|
return {
|
|
1024
|
-
subscribe:
|
|
1001
|
+
subscribe: _e(e, t).subscribe
|
|
1025
1002
|
};
|
|
1026
1003
|
}
|
|
1027
|
-
function
|
|
1004
|
+
function _e(e, t = w) {
|
|
1028
1005
|
let r;
|
|
1029
1006
|
const n = /* @__PURE__ */ new Set();
|
|
1030
1007
|
function i(a) {
|
|
1031
|
-
if (
|
|
1008
|
+
if (Lt(e, a) && (e = a, r)) {
|
|
1032
1009
|
const h = !F.length;
|
|
1033
1010
|
for (const u of n)
|
|
1034
1011
|
u[1](), F.push(u, e);
|
|
@@ -1050,145 +1027,184 @@ function ve(e, t = w) {
|
|
|
1050
1027
|
}
|
|
1051
1028
|
return { set: i, update: o, subscribe: s };
|
|
1052
1029
|
}
|
|
1053
|
-
function
|
|
1030
|
+
function Q(e, t, r) {
|
|
1054
1031
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1055
1032
|
if (!i.every(Boolean))
|
|
1056
1033
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1057
1034
|
const o = t.length < 2;
|
|
1058
|
-
return
|
|
1035
|
+
return nn(r, (s, a) => {
|
|
1059
1036
|
let h = !1;
|
|
1060
1037
|
const u = [];
|
|
1061
|
-
let l = 0,
|
|
1062
|
-
const
|
|
1038
|
+
let l = 0, f = w;
|
|
1039
|
+
const c = () => {
|
|
1063
1040
|
if (l)
|
|
1064
1041
|
return;
|
|
1065
|
-
|
|
1066
|
-
const
|
|
1067
|
-
o ? s(
|
|
1068
|
-
},
|
|
1069
|
-
(
|
|
1070
|
-
|
|
1042
|
+
f();
|
|
1043
|
+
const d = t(n ? u[0] : u, s, a);
|
|
1044
|
+
o ? s(d) : f = Ke(d) ? d : w;
|
|
1045
|
+
}, p = i.map(
|
|
1046
|
+
(d, y) => Nt(
|
|
1047
|
+
d,
|
|
1071
1048
|
(B) => {
|
|
1072
|
-
u[
|
|
1049
|
+
u[y] = B, l &= ~(1 << y), h && c();
|
|
1073
1050
|
},
|
|
1074
1051
|
() => {
|
|
1075
|
-
l |= 1 <<
|
|
1052
|
+
l |= 1 << y;
|
|
1076
1053
|
}
|
|
1077
1054
|
)
|
|
1078
1055
|
);
|
|
1079
|
-
return h = !0,
|
|
1080
|
-
|
|
1056
|
+
return h = !0, c(), function() {
|
|
1057
|
+
ie(p), f(), h = !1;
|
|
1081
1058
|
};
|
|
1082
1059
|
});
|
|
1083
1060
|
}
|
|
1084
|
-
function
|
|
1085
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1061
|
+
function on(e) {
|
|
1062
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1086
1063
|
}
|
|
1087
|
-
var
|
|
1088
|
-
return
|
|
1064
|
+
var sn = function(t) {
|
|
1065
|
+
return an(t) && !un(t);
|
|
1089
1066
|
};
|
|
1090
|
-
function
|
|
1067
|
+
function an(e) {
|
|
1091
1068
|
return !!e && typeof e == "object";
|
|
1092
1069
|
}
|
|
1093
|
-
function
|
|
1070
|
+
function un(e) {
|
|
1094
1071
|
var t = Object.prototype.toString.call(e);
|
|
1095
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1072
|
+
return t === "[object RegExp]" || t === "[object Date]" || cn(e);
|
|
1096
1073
|
}
|
|
1097
|
-
var
|
|
1098
|
-
function
|
|
1099
|
-
return e.$$typeof ===
|
|
1074
|
+
var hn = typeof Symbol == "function" && Symbol.for, ln = hn ? Symbol.for("react.element") : 60103;
|
|
1075
|
+
function cn(e) {
|
|
1076
|
+
return e.$$typeof === ln;
|
|
1100
1077
|
}
|
|
1101
|
-
function
|
|
1078
|
+
function fn(e) {
|
|
1102
1079
|
return Array.isArray(e) ? [] : {};
|
|
1103
1080
|
}
|
|
1104
|
-
function
|
|
1105
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1081
|
+
function re(e, t) {
|
|
1082
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? V(fn(e), e, t) : e;
|
|
1106
1083
|
}
|
|
1107
|
-
function
|
|
1084
|
+
function pn(e, t, r) {
|
|
1108
1085
|
return e.concat(t).map(function(n) {
|
|
1109
|
-
return
|
|
1086
|
+
return re(n, r);
|
|
1110
1087
|
});
|
|
1111
1088
|
}
|
|
1112
|
-
function
|
|
1089
|
+
function dn(e, t) {
|
|
1113
1090
|
if (!t.customMerge)
|
|
1114
|
-
return
|
|
1091
|
+
return V;
|
|
1115
1092
|
var r = t.customMerge(e);
|
|
1116
|
-
return typeof r == "function" ? r :
|
|
1093
|
+
return typeof r == "function" ? r : V;
|
|
1117
1094
|
}
|
|
1118
|
-
function
|
|
1095
|
+
function mn(e) {
|
|
1119
1096
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1120
1097
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1121
1098
|
}) : [];
|
|
1122
1099
|
}
|
|
1123
|
-
function
|
|
1124
|
-
return Object.keys(e).concat(
|
|
1100
|
+
function mt(e) {
|
|
1101
|
+
return Object.keys(e).concat(mn(e));
|
|
1125
1102
|
}
|
|
1126
|
-
function
|
|
1103
|
+
function kt(e, t) {
|
|
1127
1104
|
try {
|
|
1128
1105
|
return t in e;
|
|
1129
1106
|
} catch (r) {
|
|
1130
1107
|
return !1;
|
|
1131
1108
|
}
|
|
1132
1109
|
}
|
|
1133
|
-
function
|
|
1134
|
-
return
|
|
1110
|
+
function bn(e, t) {
|
|
1111
|
+
return kt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1135
1112
|
}
|
|
1136
|
-
function
|
|
1113
|
+
function gn(e, t, r) {
|
|
1137
1114
|
var n = {};
|
|
1138
|
-
return r.isMergeableObject(e) &&
|
|
1139
|
-
n[i] =
|
|
1140
|
-
}),
|
|
1141
|
-
|
|
1115
|
+
return r.isMergeableObject(e) && mt(e).forEach(function(i) {
|
|
1116
|
+
n[i] = re(e[i], r);
|
|
1117
|
+
}), mt(t).forEach(function(i) {
|
|
1118
|
+
bn(e, i) || (kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = dn(i, r)(e[i], t[i], r) : n[i] = re(t[i], r));
|
|
1142
1119
|
}), n;
|
|
1143
1120
|
}
|
|
1144
|
-
function
|
|
1145
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1121
|
+
function V(e, t, r) {
|
|
1122
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || pn, r.isMergeableObject = r.isMergeableObject || sn, r.cloneUnlessOtherwiseSpecified = re;
|
|
1146
1123
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1147
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1124
|
+
return o ? n ? r.arrayMerge(e, t, r) : gn(e, t, r) : re(t, r);
|
|
1148
1125
|
}
|
|
1149
|
-
|
|
1126
|
+
V.all = function(t, r) {
|
|
1150
1127
|
if (!Array.isArray(t))
|
|
1151
1128
|
throw new Error("first argument should be an array");
|
|
1152
1129
|
return t.reduce(function(n, i) {
|
|
1153
|
-
return
|
|
1130
|
+
return V(n, i, r);
|
|
1154
1131
|
}, {});
|
|
1155
1132
|
};
|
|
1156
|
-
var
|
|
1157
|
-
const
|
|
1158
|
-
function
|
|
1159
|
-
|
|
1133
|
+
var yn = V, vn = yn;
|
|
1134
|
+
const _n = /* @__PURE__ */ on(vn);
|
|
1135
|
+
var Ve = function(e, t) {
|
|
1136
|
+
return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1137
|
+
r.__proto__ = n;
|
|
1138
|
+
} || function(r, n) {
|
|
1139
|
+
for (var i in n)
|
|
1140
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1141
|
+
}, Ve(e, t);
|
|
1142
|
+
};
|
|
1143
|
+
function Ee(e, t) {
|
|
1144
|
+
if (typeof t != "function" && t !== null)
|
|
1145
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1146
|
+
Ve(e, t);
|
|
1147
|
+
function r() {
|
|
1148
|
+
this.constructor = e;
|
|
1149
|
+
}
|
|
1150
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1151
|
+
}
|
|
1152
|
+
var P = function() {
|
|
1153
|
+
return P = Object.assign || function(t) {
|
|
1154
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1155
|
+
r = arguments[n];
|
|
1156
|
+
for (var o in r)
|
|
1157
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1158
|
+
}
|
|
1159
|
+
return t;
|
|
1160
|
+
}, P.apply(this, arguments);
|
|
1161
|
+
};
|
|
1162
|
+
function En(e, t) {
|
|
1163
|
+
var r = {};
|
|
1164
|
+
for (var n in e)
|
|
1165
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1166
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1167
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1168
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1169
|
+
return r;
|
|
1170
|
+
}
|
|
1171
|
+
function Pe(e, t, r) {
|
|
1172
|
+
if (r || arguments.length === 2)
|
|
1173
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1174
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1175
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1176
|
+
}
|
|
1177
|
+
function Oe(e, t) {
|
|
1178
|
+
var r = t && t.cache ? t.cache : An, n = t && t.serializer ? t.serializer : Bn, i = t && t.strategy ? t.strategy : Tn;
|
|
1160
1179
|
return i(e, {
|
|
1161
1180
|
cache: r,
|
|
1162
1181
|
serializer: n
|
|
1163
1182
|
});
|
|
1164
1183
|
}
|
|
1165
|
-
function
|
|
1184
|
+
function xn(e) {
|
|
1166
1185
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1167
1186
|
}
|
|
1168
|
-
function
|
|
1169
|
-
var i =
|
|
1187
|
+
function Sn(e, t, r, n) {
|
|
1188
|
+
var i = xn(n) ? n : r(n), o = t.get(i);
|
|
1170
1189
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1171
1190
|
}
|
|
1172
|
-
function
|
|
1191
|
+
function Vt(e, t, r) {
|
|
1173
1192
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1174
1193
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1175
1194
|
}
|
|
1176
|
-
function
|
|
1195
|
+
function Xt(e, t, r, n, i) {
|
|
1177
1196
|
return r.bind(t, e, n, i);
|
|
1178
1197
|
}
|
|
1179
|
-
function
|
|
1180
|
-
var r = e.length === 1 ?
|
|
1181
|
-
return
|
|
1182
|
-
}
|
|
1183
|
-
function xn(e, t) {
|
|
1184
|
-
return Qe(e, this, Ft, t.cache.create(), t.serializer);
|
|
1198
|
+
function Tn(e, t) {
|
|
1199
|
+
var r = e.length === 1 ? Sn : Vt;
|
|
1200
|
+
return Xt(e, this, r, t.cache.create(), t.serializer);
|
|
1185
1201
|
}
|
|
1186
|
-
function
|
|
1187
|
-
return
|
|
1202
|
+
function Hn(e, t) {
|
|
1203
|
+
return Xt(e, this, Vt, t.cache.create(), t.serializer);
|
|
1188
1204
|
}
|
|
1189
|
-
var
|
|
1205
|
+
var Bn = function() {
|
|
1190
1206
|
return JSON.stringify(arguments);
|
|
1191
|
-
},
|
|
1207
|
+
}, wn = (
|
|
1192
1208
|
/** @class */
|
|
1193
1209
|
function() {
|
|
1194
1210
|
function e() {
|
|
@@ -1200,62 +1216,71 @@ var En = function() {
|
|
|
1200
1216
|
this.cache[t] = r;
|
|
1201
1217
|
}, e;
|
|
1202
1218
|
}()
|
|
1203
|
-
),
|
|
1219
|
+
), An = {
|
|
1204
1220
|
create: function() {
|
|
1205
|
-
return new
|
|
1221
|
+
return new wn();
|
|
1206
1222
|
}
|
|
1207
|
-
},
|
|
1208
|
-
variadic:
|
|
1209
|
-
|
|
1210
|
-
|
|
1223
|
+
}, Ie = {
|
|
1224
|
+
variadic: Hn
|
|
1225
|
+
}, me = function() {
|
|
1226
|
+
return me = Object.assign || function(t) {
|
|
1227
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1228
|
+
r = arguments[n];
|
|
1229
|
+
for (var o in r)
|
|
1230
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1231
|
+
}
|
|
1232
|
+
return t;
|
|
1233
|
+
}, me.apply(this, arguments);
|
|
1234
|
+
};
|
|
1235
|
+
var m;
|
|
1211
1236
|
(function(e) {
|
|
1212
1237
|
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";
|
|
1213
1238
|
})(m || (m = {}));
|
|
1214
|
-
var
|
|
1239
|
+
var v;
|
|
1215
1240
|
(function(e) {
|
|
1216
1241
|
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";
|
|
1217
|
-
})(
|
|
1218
|
-
var
|
|
1242
|
+
})(v || (v = {}));
|
|
1243
|
+
var X;
|
|
1219
1244
|
(function(e) {
|
|
1220
1245
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1221
|
-
})(
|
|
1222
|
-
function
|
|
1223
|
-
return e.type ===
|
|
1246
|
+
})(X || (X = {}));
|
|
1247
|
+
function bt(e) {
|
|
1248
|
+
return e.type === v.literal;
|
|
1224
1249
|
}
|
|
1225
|
-
function
|
|
1226
|
-
return e.type ===
|
|
1250
|
+
function Pn(e) {
|
|
1251
|
+
return e.type === v.argument;
|
|
1227
1252
|
}
|
|
1228
|
-
function
|
|
1229
|
-
return e.type ===
|
|
1253
|
+
function Wt(e) {
|
|
1254
|
+
return e.type === v.number;
|
|
1230
1255
|
}
|
|
1231
|
-
function
|
|
1232
|
-
return e.type ===
|
|
1256
|
+
function zt(e) {
|
|
1257
|
+
return e.type === v.date;
|
|
1233
1258
|
}
|
|
1234
|
-
function
|
|
1235
|
-
return e.type ===
|
|
1259
|
+
function Zt(e) {
|
|
1260
|
+
return e.type === v.time;
|
|
1236
1261
|
}
|
|
1237
|
-
function
|
|
1238
|
-
return e.type ===
|
|
1262
|
+
function Qt(e) {
|
|
1263
|
+
return e.type === v.select;
|
|
1239
1264
|
}
|
|
1240
|
-
function
|
|
1241
|
-
return e.type ===
|
|
1265
|
+
function Jt(e) {
|
|
1266
|
+
return e.type === v.plural;
|
|
1242
1267
|
}
|
|
1243
|
-
function
|
|
1244
|
-
return e.type ===
|
|
1268
|
+
function On(e) {
|
|
1269
|
+
return e.type === v.pound;
|
|
1245
1270
|
}
|
|
1246
|
-
function
|
|
1247
|
-
return e.type ===
|
|
1271
|
+
function Yt(e) {
|
|
1272
|
+
return e.type === v.tag;
|
|
1248
1273
|
}
|
|
1249
|
-
function
|
|
1250
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1274
|
+
function qt(e) {
|
|
1275
|
+
return !!(e && typeof e == "object" && e.type === X.number);
|
|
1251
1276
|
}
|
|
1252
|
-
function
|
|
1253
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1277
|
+
function Xe(e) {
|
|
1278
|
+
return !!(e && typeof e == "object" && e.type === X.dateTime);
|
|
1254
1279
|
}
|
|
1255
|
-
var
|
|
1256
|
-
function
|
|
1280
|
+
var Kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, In = /(?:[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;
|
|
1281
|
+
function Ln(e) {
|
|
1257
1282
|
var t = {};
|
|
1258
|
-
return e.replace(
|
|
1283
|
+
return e.replace(In, function(r) {
|
|
1259
1284
|
var n = r.length;
|
|
1260
1285
|
switch (r[0]) {
|
|
1261
1286
|
case "G":
|
|
@@ -1344,36 +1369,46 @@ function An(e) {
|
|
|
1344
1369
|
return "";
|
|
1345
1370
|
}), t;
|
|
1346
1371
|
}
|
|
1347
|
-
var
|
|
1348
|
-
function
|
|
1372
|
+
var _ = function() {
|
|
1373
|
+
return _ = Object.assign || function(t) {
|
|
1374
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1375
|
+
r = arguments[n];
|
|
1376
|
+
for (var o in r)
|
|
1377
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1378
|
+
}
|
|
1379
|
+
return t;
|
|
1380
|
+
}, _.apply(this, arguments);
|
|
1381
|
+
};
|
|
1382
|
+
var Nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1383
|
+
function Mn(e) {
|
|
1349
1384
|
if (e.length === 0)
|
|
1350
1385
|
throw new Error("Number skeleton cannot be empty");
|
|
1351
|
-
for (var t = e.split(
|
|
1352
|
-
return
|
|
1386
|
+
for (var t = e.split(Nn).filter(function(c) {
|
|
1387
|
+
return c.length > 0;
|
|
1353
1388
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1354
1389
|
var o = i[n], s = o.split("/");
|
|
1355
1390
|
if (s.length === 0)
|
|
1356
1391
|
throw new Error("Invalid number skeleton");
|
|
1357
1392
|
for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1358
|
-
var
|
|
1359
|
-
if (
|
|
1393
|
+
var f = l[u];
|
|
1394
|
+
if (f.length === 0)
|
|
1360
1395
|
throw new Error("Invalid number skeleton");
|
|
1361
1396
|
}
|
|
1362
1397
|
r.push({ stem: a, options: h });
|
|
1363
1398
|
}
|
|
1364
1399
|
return r;
|
|
1365
1400
|
}
|
|
1366
|
-
function
|
|
1401
|
+
function Cn(e) {
|
|
1367
1402
|
return e.replace(/^(.*?)-/, "");
|
|
1368
1403
|
}
|
|
1369
|
-
var
|
|
1370
|
-
function
|
|
1404
|
+
var gt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, er = /^(@+)?(\+|#+)?[rs]?$/g, $n = /(\*)(0+)|(#+)(0+)|(0+)/g, tr = /^(0+)$/;
|
|
1405
|
+
function yt(e) {
|
|
1371
1406
|
var t = {};
|
|
1372
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1407
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(er, function(r, n, i) {
|
|
1373
1408
|
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)), "";
|
|
1374
1409
|
}), t;
|
|
1375
1410
|
}
|
|
1376
|
-
function
|
|
1411
|
+
function rr(e) {
|
|
1377
1412
|
switch (e) {
|
|
1378
1413
|
case "sign-auto":
|
|
1379
1414
|
return {
|
|
@@ -1413,7 +1448,7 @@ function qt(e) {
|
|
|
1413
1448
|
};
|
|
1414
1449
|
}
|
|
1415
1450
|
}
|
|
1416
|
-
function
|
|
1451
|
+
function Rn(e) {
|
|
1417
1452
|
var t;
|
|
1418
1453
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1419
1454
|
notation: "engineering"
|
|
@@ -1421,17 +1456,17 @@ function Nn(e) {
|
|
|
1421
1456
|
notation: "scientific"
|
|
1422
1457
|
}, e = e.slice(1)), t) {
|
|
1423
1458
|
var r = e.slice(0, 2);
|
|
1424
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1459
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !tr.test(e))
|
|
1425
1460
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1426
1461
|
t.minimumIntegerDigits = e.length;
|
|
1427
1462
|
}
|
|
1428
1463
|
return t;
|
|
1429
1464
|
}
|
|
1430
|
-
function
|
|
1431
|
-
var t = {}, r =
|
|
1465
|
+
function vt(e) {
|
|
1466
|
+
var t = {}, r = rr(e);
|
|
1432
1467
|
return r || t;
|
|
1433
1468
|
}
|
|
1434
|
-
function
|
|
1469
|
+
function Un(e) {
|
|
1435
1470
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1436
1471
|
var i = n[r];
|
|
1437
1472
|
switch (i.stem) {
|
|
@@ -1455,7 +1490,7 @@ function Mn(e) {
|
|
|
1455
1490
|
continue;
|
|
1456
1491
|
case "measure-unit":
|
|
1457
1492
|
case "unit":
|
|
1458
|
-
t.style = "unit", t.unit =
|
|
1493
|
+
t.style = "unit", t.unit = Cn(i.options[0]);
|
|
1459
1494
|
continue;
|
|
1460
1495
|
case "compact-short":
|
|
1461
1496
|
case "K":
|
|
@@ -1466,13 +1501,13 @@ function Mn(e) {
|
|
|
1466
1501
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1467
1502
|
continue;
|
|
1468
1503
|
case "scientific":
|
|
1469
|
-
t =
|
|
1470
|
-
return
|
|
1504
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1505
|
+
return _(_({}, h), vt(u));
|
|
1471
1506
|
}, {}));
|
|
1472
1507
|
continue;
|
|
1473
1508
|
case "engineering":
|
|
1474
|
-
t =
|
|
1475
|
-
return
|
|
1509
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1510
|
+
return _(_({}, h), vt(u));
|
|
1476
1511
|
}, {}));
|
|
1477
1512
|
continue;
|
|
1478
1513
|
case "notation-simple":
|
|
@@ -1517,41 +1552,41 @@ function Mn(e) {
|
|
|
1517
1552
|
case "integer-width":
|
|
1518
1553
|
if (i.options.length > 1)
|
|
1519
1554
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1520
|
-
i.options[0].replace(
|
|
1555
|
+
i.options[0].replace($n, function(h, u, l, f, c, p) {
|
|
1521
1556
|
if (u)
|
|
1522
1557
|
t.minimumIntegerDigits = l.length;
|
|
1523
1558
|
else {
|
|
1524
|
-
if (
|
|
1559
|
+
if (f && c)
|
|
1525
1560
|
throw new Error("We currently do not support maximum integer digits");
|
|
1526
|
-
if (
|
|
1561
|
+
if (p)
|
|
1527
1562
|
throw new Error("We currently do not support exact integer digits");
|
|
1528
1563
|
}
|
|
1529
1564
|
return "";
|
|
1530
1565
|
});
|
|
1531
1566
|
continue;
|
|
1532
1567
|
}
|
|
1533
|
-
if (
|
|
1568
|
+
if (tr.test(i.stem)) {
|
|
1534
1569
|
t.minimumIntegerDigits = i.stem.length;
|
|
1535
1570
|
continue;
|
|
1536
1571
|
}
|
|
1537
|
-
if (
|
|
1572
|
+
if (gt.test(i.stem)) {
|
|
1538
1573
|
if (i.options.length > 1)
|
|
1539
1574
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1540
|
-
i.stem.replace(
|
|
1541
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1575
|
+
i.stem.replace(gt, function(h, u, l, f, c, p) {
|
|
1576
|
+
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), "";
|
|
1542
1577
|
});
|
|
1543
1578
|
var o = i.options[0];
|
|
1544
|
-
o === "w" ? t =
|
|
1579
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), yt(o)));
|
|
1545
1580
|
continue;
|
|
1546
1581
|
}
|
|
1547
|
-
if (
|
|
1548
|
-
t =
|
|
1582
|
+
if (er.test(i.stem)) {
|
|
1583
|
+
t = _(_({}, t), yt(i.stem));
|
|
1549
1584
|
continue;
|
|
1550
1585
|
}
|
|
1551
|
-
var s =
|
|
1552
|
-
s && (t =
|
|
1553
|
-
var a =
|
|
1554
|
-
a && (t =
|
|
1586
|
+
var s = rr(i.stem);
|
|
1587
|
+
s && (t = _(_({}, t), s));
|
|
1588
|
+
var a = Rn(i.stem);
|
|
1589
|
+
a && (t = _(_({}, t), a));
|
|
1555
1590
|
}
|
|
1556
1591
|
return t;
|
|
1557
1592
|
}
|
|
@@ -2970,13 +3005,13 @@ var le = {
|
|
|
2970
3005
|
"h"
|
|
2971
3006
|
]
|
|
2972
3007
|
};
|
|
2973
|
-
function
|
|
3008
|
+
function Gn(e, t) {
|
|
2974
3009
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2975
3010
|
var i = e.charAt(n);
|
|
2976
3011
|
if (i === "j") {
|
|
2977
3012
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2978
3013
|
o++, n++;
|
|
2979
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
3014
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Dn(t);
|
|
2980
3015
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2981
3016
|
r += h;
|
|
2982
3017
|
for (; s-- > 0; )
|
|
@@ -2986,7 +3021,7 @@ function Cn(e, t) {
|
|
|
2986
3021
|
}
|
|
2987
3022
|
return r;
|
|
2988
3023
|
}
|
|
2989
|
-
function
|
|
3024
|
+
function Dn(e) {
|
|
2990
3025
|
var t = e.hourCycle;
|
|
2991
3026
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2992
3027
|
e.hourCycles && // @ts-ignore
|
|
@@ -3008,20 +3043,20 @@ function $n(e) {
|
|
|
3008
3043
|
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
3009
3044
|
return i[0];
|
|
3010
3045
|
}
|
|
3011
|
-
var
|
|
3046
|
+
var Le, Fn = new RegExp("^".concat(Kt.source, "*")), jn = new RegExp("".concat(Kt.source, "*$"));
|
|
3012
3047
|
function b(e, t) {
|
|
3013
3048
|
return { start: e, end: t };
|
|
3014
3049
|
}
|
|
3015
|
-
var
|
|
3050
|
+
var kn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Vn = !!String.fromCodePoint, Xn = !!Object.fromEntries, Wn = !!String.prototype.codePointAt, zn = !!String.prototype.trimStart, Zn = !!String.prototype.trimEnd, Qn = !!Number.isSafeInteger, Jn = Qn ? Number.isSafeInteger : function(e) {
|
|
3016
3051
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3017
|
-
},
|
|
3052
|
+
}, We = !0;
|
|
3018
3053
|
try {
|
|
3019
|
-
var
|
|
3020
|
-
|
|
3054
|
+
var Yn = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3055
|
+
We = ((Le = Yn.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
|
|
3021
3056
|
} catch (e) {
|
|
3022
|
-
|
|
3057
|
+
We = !1;
|
|
3023
3058
|
}
|
|
3024
|
-
var
|
|
3059
|
+
var _t = kn ? (
|
|
3025
3060
|
// Native
|
|
3026
3061
|
function(t, r, n) {
|
|
3027
3062
|
return t.startsWith(r, n);
|
|
@@ -3031,7 +3066,7 @@ var bt = Dn ? (
|
|
|
3031
3066
|
function(t, r, n) {
|
|
3032
3067
|
return t.slice(n, n + r.length) === r;
|
|
3033
3068
|
}
|
|
3034
|
-
),
|
|
3069
|
+
), ze = Vn ? String.fromCodePoint : (
|
|
3035
3070
|
// IE11
|
|
3036
3071
|
function() {
|
|
3037
3072
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3043,9 +3078,9 @@ var bt = Dn ? (
|
|
|
3043
3078
|
}
|
|
3044
3079
|
return n;
|
|
3045
3080
|
}
|
|
3046
|
-
),
|
|
3081
|
+
), Et = (
|
|
3047
3082
|
// native
|
|
3048
|
-
|
|
3083
|
+
Xn ? Object.fromEntries : (
|
|
3049
3084
|
// Ponyfill
|
|
3050
3085
|
function(t) {
|
|
3051
3086
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3055,7 +3090,7 @@ var bt = Dn ? (
|
|
|
3055
3090
|
return r;
|
|
3056
3091
|
}
|
|
3057
3092
|
)
|
|
3058
|
-
),
|
|
3093
|
+
), nr = Wn ? (
|
|
3059
3094
|
// Native
|
|
3060
3095
|
function(t, r) {
|
|
3061
3096
|
return t.codePointAt(r);
|
|
@@ -3069,7 +3104,7 @@ var bt = Dn ? (
|
|
|
3069
3104
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3070
3105
|
}
|
|
3071
3106
|
}
|
|
3072
|
-
),
|
|
3107
|
+
), qn = zn ? (
|
|
3073
3108
|
// Native
|
|
3074
3109
|
function(t) {
|
|
3075
3110
|
return t.trimStart();
|
|
@@ -3077,9 +3112,9 @@ var bt = Dn ? (
|
|
|
3077
3112
|
) : (
|
|
3078
3113
|
// Ponyfill
|
|
3079
3114
|
function(t) {
|
|
3080
|
-
return t.replace(
|
|
3115
|
+
return t.replace(Fn, "");
|
|
3081
3116
|
}
|
|
3082
|
-
),
|
|
3117
|
+
), Kn = Zn ? (
|
|
3083
3118
|
// Native
|
|
3084
3119
|
function(t) {
|
|
3085
3120
|
return t.trimEnd();
|
|
@@ -3087,32 +3122,32 @@ var bt = Dn ? (
|
|
|
3087
3122
|
) : (
|
|
3088
3123
|
// Ponyfill
|
|
3089
3124
|
function(t) {
|
|
3090
|
-
return t.replace(
|
|
3125
|
+
return t.replace(jn, "");
|
|
3091
3126
|
}
|
|
3092
3127
|
);
|
|
3093
|
-
function
|
|
3128
|
+
function ir(e, t) {
|
|
3094
3129
|
return new RegExp(e, t);
|
|
3095
3130
|
}
|
|
3096
|
-
var
|
|
3097
|
-
if (
|
|
3098
|
-
var
|
|
3099
|
-
|
|
3131
|
+
var Ze;
|
|
3132
|
+
if (We) {
|
|
3133
|
+
var xt = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3134
|
+
Ze = function(t, r) {
|
|
3100
3135
|
var n;
|
|
3101
|
-
|
|
3102
|
-
var i =
|
|
3136
|
+
xt.lastIndex = r;
|
|
3137
|
+
var i = xt.exec(t);
|
|
3103
3138
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3104
3139
|
};
|
|
3105
3140
|
} else
|
|
3106
|
-
|
|
3141
|
+
Ze = function(t, r) {
|
|
3107
3142
|
for (var n = []; ; ) {
|
|
3108
|
-
var i =
|
|
3109
|
-
if (i === void 0 ||
|
|
3143
|
+
var i = nr(t, r);
|
|
3144
|
+
if (i === void 0 || or(i) || ni(i))
|
|
3110
3145
|
break;
|
|
3111
3146
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3112
3147
|
}
|
|
3113
|
-
return
|
|
3148
|
+
return ze.apply(void 0, n);
|
|
3114
3149
|
};
|
|
3115
|
-
var
|
|
3150
|
+
var ei = (
|
|
3116
3151
|
/** @class */
|
|
3117
3152
|
function() {
|
|
3118
3153
|
function e(t, r) {
|
|
@@ -3136,14 +3171,14 @@ var Jn = (
|
|
|
3136
3171
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3137
3172
|
var a = this.clonePosition();
|
|
3138
3173
|
this.bump(), i.push({
|
|
3139
|
-
type:
|
|
3174
|
+
type: v.pound,
|
|
3140
3175
|
location: b(a, this.clonePosition())
|
|
3141
3176
|
});
|
|
3142
3177
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3143
3178
|
if (n)
|
|
3144
3179
|
break;
|
|
3145
3180
|
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3146
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3181
|
+
} else if (o === 60 && !this.ignoreTag && Qe(this.peek() || 0)) {
|
|
3147
3182
|
var s = this.parseTag(t, r);
|
|
3148
3183
|
if (s.err)
|
|
3149
3184
|
return s;
|
|
@@ -3164,7 +3199,7 @@ var Jn = (
|
|
|
3164
3199
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3165
3200
|
return {
|
|
3166
3201
|
val: {
|
|
3167
|
-
type:
|
|
3202
|
+
type: v.literal,
|
|
3168
3203
|
value: "<".concat(i, "/>"),
|
|
3169
3204
|
location: b(n, this.clonePosition())
|
|
3170
3205
|
},
|
|
@@ -3176,12 +3211,12 @@ var Jn = (
|
|
|
3176
3211
|
return o;
|
|
3177
3212
|
var s = o.val, a = this.clonePosition();
|
|
3178
3213
|
if (this.bumpIf("</")) {
|
|
3179
|
-
if (this.isEOF() || !
|
|
3214
|
+
if (this.isEOF() || !Qe(this.char()))
|
|
3180
3215
|
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
|
3181
3216
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3182
3217
|
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3183
3218
|
val: {
|
|
3184
|
-
type:
|
|
3219
|
+
type: v.tag,
|
|
3185
3220
|
value: i,
|
|
3186
3221
|
children: s,
|
|
3187
3222
|
location: b(n, this.clonePosition())
|
|
@@ -3194,7 +3229,7 @@ var Jn = (
|
|
|
3194
3229
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
3195
3230
|
}, e.prototype.parseTagName = function() {
|
|
3196
3231
|
var t = this.offset();
|
|
3197
|
-
for (this.bump(); !this.isEOF() &&
|
|
3232
|
+
for (this.bump(); !this.isEOF() && ri(this.char()); )
|
|
3198
3233
|
this.bump();
|
|
3199
3234
|
return this.message.slice(t, this.offset());
|
|
3200
3235
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3218,12 +3253,12 @@ var Jn = (
|
|
|
3218
3253
|
}
|
|
3219
3254
|
var h = b(n, this.clonePosition());
|
|
3220
3255
|
return {
|
|
3221
|
-
val: { type:
|
|
3256
|
+
val: { type: v.literal, value: i, location: h },
|
|
3222
3257
|
err: null
|
|
3223
3258
|
};
|
|
3224
3259
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3225
3260
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3226
|
-
!
|
|
3261
|
+
!ti(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3227
3262
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3228
3263
|
if (this.isEOF() || this.char() !== 39)
|
|
3229
3264
|
return null;
|
|
@@ -3257,12 +3292,12 @@ var Jn = (
|
|
|
3257
3292
|
r.push(n);
|
|
3258
3293
|
this.bump();
|
|
3259
3294
|
}
|
|
3260
|
-
return
|
|
3295
|
+
return ze.apply(void 0, r);
|
|
3261
3296
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3262
3297
|
if (this.isEOF())
|
|
3263
3298
|
return null;
|
|
3264
3299
|
var n = this.char();
|
|
3265
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3300
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ze(n));
|
|
3266
3301
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3267
3302
|
var n = this.clonePosition();
|
|
3268
3303
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3278,7 +3313,7 @@ var Jn = (
|
|
|
3278
3313
|
case 125:
|
|
3279
3314
|
return this.bump(), {
|
|
3280
3315
|
val: {
|
|
3281
|
-
type:
|
|
3316
|
+
type: v.argument,
|
|
3282
3317
|
// value does not include the opening and closing braces.
|
|
3283
3318
|
value: i,
|
|
3284
3319
|
location: b(n, this.clonePosition())
|
|
@@ -3291,7 +3326,7 @@ var Jn = (
|
|
|
3291
3326
|
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3292
3327
|
}
|
|
3293
3328
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3294
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3329
|
+
var t = this.clonePosition(), r = this.offset(), n = Ze(this.message, r), i = r + n.length;
|
|
3295
3330
|
this.bumpTo(i);
|
|
3296
3331
|
var o = this.clonePosition(), s = b(t, o);
|
|
3297
3332
|
return { value: n, location: s };
|
|
@@ -3307,49 +3342,49 @@ var Jn = (
|
|
|
3307
3342
|
var u = null;
|
|
3308
3343
|
if (this.bumpIf(",")) {
|
|
3309
3344
|
this.bumpSpace();
|
|
3310
|
-
var l = this.clonePosition(),
|
|
3311
|
-
if (
|
|
3312
|
-
return
|
|
3313
|
-
var
|
|
3314
|
-
if (
|
|
3345
|
+
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3346
|
+
if (f.err)
|
|
3347
|
+
return f;
|
|
3348
|
+
var c = Kn(f.val);
|
|
3349
|
+
if (c.length === 0)
|
|
3315
3350
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3316
|
-
var
|
|
3317
|
-
u = { style:
|
|
3351
|
+
var p = b(l, this.clonePosition());
|
|
3352
|
+
u = { style: c, styleLocation: p };
|
|
3318
3353
|
}
|
|
3319
|
-
var
|
|
3320
|
-
if (
|
|
3321
|
-
return
|
|
3322
|
-
var
|
|
3323
|
-
if (u &&
|
|
3324
|
-
var B =
|
|
3354
|
+
var d = this.tryParseArgumentClose(i);
|
|
3355
|
+
if (d.err)
|
|
3356
|
+
return d;
|
|
3357
|
+
var y = b(i, this.clonePosition());
|
|
3358
|
+
if (u && _t(u == null ? void 0 : u.style, "::", 0)) {
|
|
3359
|
+
var B = qn(u.style.slice(2));
|
|
3325
3360
|
if (a === "number") {
|
|
3326
|
-
var
|
|
3327
|
-
return
|
|
3328
|
-
val: { type:
|
|
3361
|
+
var f = this.parseNumberSkeletonFromString(B, u.styleLocation);
|
|
3362
|
+
return f.err ? f : {
|
|
3363
|
+
val: { type: v.number, value: n, location: y, style: f.val },
|
|
3329
3364
|
err: null
|
|
3330
3365
|
};
|
|
3331
3366
|
} else {
|
|
3332
3367
|
if (B.length === 0)
|
|
3333
|
-
return this.error(m.EXPECT_DATE_TIME_SKELETON,
|
|
3368
|
+
return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
|
|
3334
3369
|
var $ = B;
|
|
3335
|
-
this.locale && ($ =
|
|
3336
|
-
var
|
|
3337
|
-
type:
|
|
3370
|
+
this.locale && ($ = Gn(B, this.locale));
|
|
3371
|
+
var c = {
|
|
3372
|
+
type: X.dateTime,
|
|
3338
3373
|
pattern: $,
|
|
3339
3374
|
location: u.styleLocation,
|
|
3340
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3341
|
-
}, N = a === "date" ?
|
|
3375
|
+
parsedOptions: this.shouldParseSkeletons ? Ln($) : {}
|
|
3376
|
+
}, N = a === "date" ? v.date : v.time;
|
|
3342
3377
|
return {
|
|
3343
|
-
val: { type: N, value: n, location:
|
|
3378
|
+
val: { type: N, value: n, location: y, style: c },
|
|
3344
3379
|
err: null
|
|
3345
3380
|
};
|
|
3346
3381
|
}
|
|
3347
3382
|
}
|
|
3348
3383
|
return {
|
|
3349
3384
|
val: {
|
|
3350
|
-
type: a === "number" ?
|
|
3385
|
+
type: a === "number" ? v.number : a === "date" ? v.date : v.time,
|
|
3351
3386
|
value: n,
|
|
3352
|
-
location:
|
|
3387
|
+
location: y,
|
|
3353
3388
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3354
3389
|
},
|
|
3355
3390
|
err: null
|
|
@@ -3358,41 +3393,41 @@ var Jn = (
|
|
|
3358
3393
|
case "plural":
|
|
3359
3394
|
case "selectordinal":
|
|
3360
3395
|
case "select": {
|
|
3361
|
-
var
|
|
3396
|
+
var x = this.clonePosition();
|
|
3362
3397
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3363
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
3398
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(x, me({}, x)));
|
|
3364
3399
|
this.bumpSpace();
|
|
3365
|
-
var R = this.parseIdentifierIfPossible(),
|
|
3400
|
+
var R = this.parseIdentifierIfPossible(), O = 0;
|
|
3366
3401
|
if (a !== "select" && R.value === "offset") {
|
|
3367
3402
|
if (!this.bumpIf(":"))
|
|
3368
3403
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3369
3404
|
this.bumpSpace();
|
|
3370
|
-
var
|
|
3371
|
-
if (
|
|
3372
|
-
return
|
|
3373
|
-
this.bumpSpace(), R = this.parseIdentifierIfPossible(),
|
|
3405
|
+
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3406
|
+
if (f.err)
|
|
3407
|
+
return f;
|
|
3408
|
+
this.bumpSpace(), R = this.parseIdentifierIfPossible(), O = f.val;
|
|
3374
3409
|
}
|
|
3375
|
-
var
|
|
3376
|
-
if (
|
|
3377
|
-
return
|
|
3378
|
-
var
|
|
3379
|
-
if (
|
|
3380
|
-
return
|
|
3410
|
+
var G = this.tryParsePluralOrSelectOptions(t, a, r, R);
|
|
3411
|
+
if (G.err)
|
|
3412
|
+
return G;
|
|
3413
|
+
var d = this.tryParseArgumentClose(i);
|
|
3414
|
+
if (d.err)
|
|
3415
|
+
return d;
|
|
3381
3416
|
var ue = b(i, this.clonePosition());
|
|
3382
3417
|
return a === "select" ? {
|
|
3383
3418
|
val: {
|
|
3384
|
-
type:
|
|
3419
|
+
type: v.select,
|
|
3385
3420
|
value: n,
|
|
3386
|
-
options:
|
|
3421
|
+
options: Et(G.val),
|
|
3387
3422
|
location: ue
|
|
3388
3423
|
},
|
|
3389
3424
|
err: null
|
|
3390
3425
|
} : {
|
|
3391
3426
|
val: {
|
|
3392
|
-
type:
|
|
3427
|
+
type: v.plural,
|
|
3393
3428
|
value: n,
|
|
3394
|
-
options:
|
|
3395
|
-
offset:
|
|
3429
|
+
options: Et(G.val),
|
|
3430
|
+
offset: O,
|
|
3396
3431
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3397
3432
|
location: ue
|
|
3398
3433
|
},
|
|
@@ -3442,48 +3477,48 @@ var Jn = (
|
|
|
3442
3477
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3443
3478
|
var n = [];
|
|
3444
3479
|
try {
|
|
3445
|
-
n =
|
|
3480
|
+
n = Mn(t);
|
|
3446
3481
|
} catch (i) {
|
|
3447
3482
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
3448
3483
|
}
|
|
3449
3484
|
return {
|
|
3450
3485
|
val: {
|
|
3451
|
-
type:
|
|
3486
|
+
type: X.number,
|
|
3452
3487
|
tokens: n,
|
|
3453
3488
|
location: r,
|
|
3454
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3489
|
+
parsedOptions: this.shouldParseSkeletons ? Un(n) : {}
|
|
3455
3490
|
},
|
|
3456
3491
|
err: null
|
|
3457
3492
|
};
|
|
3458
3493
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3459
3494
|
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3460
3495
|
if (u.length === 0) {
|
|
3461
|
-
var
|
|
3496
|
+
var f = this.clonePosition();
|
|
3462
3497
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3463
|
-
var
|
|
3464
|
-
if (
|
|
3465
|
-
return
|
|
3466
|
-
l = b(
|
|
3498
|
+
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3499
|
+
if (c.err)
|
|
3500
|
+
return c;
|
|
3501
|
+
l = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3467
3502
|
} else
|
|
3468
3503
|
break;
|
|
3469
3504
|
}
|
|
3470
3505
|
if (h.has(u))
|
|
3471
3506
|
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3472
3507
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3473
|
-
var
|
|
3508
|
+
var p = this.clonePosition();
|
|
3474
3509
|
if (!this.bumpIf("{"))
|
|
3475
3510
|
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3476
|
-
var
|
|
3477
|
-
if (
|
|
3478
|
-
return
|
|
3479
|
-
var
|
|
3480
|
-
if (
|
|
3481
|
-
return
|
|
3511
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3512
|
+
if (d.err)
|
|
3513
|
+
return d;
|
|
3514
|
+
var y = this.tryParseArgumentClose(p);
|
|
3515
|
+
if (y.err)
|
|
3516
|
+
return y;
|
|
3482
3517
|
a.push([
|
|
3483
3518
|
u,
|
|
3484
3519
|
{
|
|
3485
|
-
value:
|
|
3486
|
-
location: b(
|
|
3520
|
+
value: d.val,
|
|
3521
|
+
location: b(p, this.clonePosition())
|
|
3487
3522
|
}
|
|
3488
3523
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3489
3524
|
}
|
|
@@ -3499,7 +3534,7 @@ var Jn = (
|
|
|
3499
3534
|
break;
|
|
3500
3535
|
}
|
|
3501
3536
|
var h = b(i, this.clonePosition());
|
|
3502
|
-
return o ? (s *= n,
|
|
3537
|
+
return o ? (s *= n, Jn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3503
3538
|
}, e.prototype.offset = function() {
|
|
3504
3539
|
return this.position.offset;
|
|
3505
3540
|
}, e.prototype.isEOF = function() {
|
|
@@ -3514,7 +3549,7 @@ var Jn = (
|
|
|
3514
3549
|
var t = this.position.offset;
|
|
3515
3550
|
if (t >= this.message.length)
|
|
3516
3551
|
throw Error("out of bound");
|
|
3517
|
-
var r =
|
|
3552
|
+
var r = nr(this.message, t);
|
|
3518
3553
|
if (r === void 0)
|
|
3519
3554
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3520
3555
|
return r;
|
|
@@ -3533,7 +3568,7 @@ var Jn = (
|
|
|
3533
3568
|
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);
|
|
3534
3569
|
}
|
|
3535
3570
|
}, e.prototype.bumpIf = function(t) {
|
|
3536
|
-
if (
|
|
3571
|
+
if (_t(this.message, t, this.offset())) {
|
|
3537
3572
|
for (var r = 0; r < t.length; r++)
|
|
3538
3573
|
this.bump();
|
|
3539
3574
|
return !0;
|
|
@@ -3555,7 +3590,7 @@ var Jn = (
|
|
|
3555
3590
|
break;
|
|
3556
3591
|
}
|
|
3557
3592
|
}, e.prototype.bumpSpace = function() {
|
|
3558
|
-
for (; !this.isEOF() &&
|
|
3593
|
+
for (; !this.isEOF() && or(this.char()); )
|
|
3559
3594
|
this.bump();
|
|
3560
3595
|
}, e.prototype.peek = function() {
|
|
3561
3596
|
if (this.isEOF())
|
|
@@ -3565,47 +3600,47 @@ var Jn = (
|
|
|
3565
3600
|
}, e;
|
|
3566
3601
|
}()
|
|
3567
3602
|
);
|
|
3568
|
-
function
|
|
3603
|
+
function Qe(e) {
|
|
3569
3604
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3570
3605
|
}
|
|
3571
|
-
function
|
|
3572
|
-
return
|
|
3606
|
+
function ti(e) {
|
|
3607
|
+
return Qe(e) || e === 47;
|
|
3573
3608
|
}
|
|
3574
|
-
function
|
|
3609
|
+
function ri(e) {
|
|
3575
3610
|
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;
|
|
3576
3611
|
}
|
|
3577
|
-
function
|
|
3612
|
+
function or(e) {
|
|
3578
3613
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3579
3614
|
}
|
|
3580
|
-
function
|
|
3615
|
+
function ni(e) {
|
|
3581
3616
|
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;
|
|
3582
3617
|
}
|
|
3583
|
-
function
|
|
3618
|
+
function Je(e) {
|
|
3584
3619
|
e.forEach(function(t) {
|
|
3585
|
-
if (delete t.location,
|
|
3620
|
+
if (delete t.location, Qt(t) || Jt(t))
|
|
3586
3621
|
for (var r in t.options)
|
|
3587
|
-
delete t.options[r].location,
|
|
3622
|
+
delete t.options[r].location, Je(t.options[r].value);
|
|
3588
3623
|
else
|
|
3589
|
-
|
|
3624
|
+
Wt(t) && qt(t.style) || (zt(t) || Zt(t)) && Xe(t.style) ? delete t.style.location : Yt(t) && Je(t.children);
|
|
3590
3625
|
});
|
|
3591
3626
|
}
|
|
3592
|
-
function
|
|
3593
|
-
t === void 0 && (t = {}), t =
|
|
3594
|
-
var r = new
|
|
3627
|
+
function ii(e, t) {
|
|
3628
|
+
t === void 0 && (t = {}), t = me({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3629
|
+
var r = new ei(e, t).parse();
|
|
3595
3630
|
if (r.err) {
|
|
3596
3631
|
var n = SyntaxError(m[r.err.kind]);
|
|
3597
3632
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3598
3633
|
}
|
|
3599
|
-
return t != null && t.captureLocation ||
|
|
3634
|
+
return t != null && t.captureLocation || Je(r.val), r.val;
|
|
3600
3635
|
}
|
|
3601
|
-
var
|
|
3636
|
+
var W;
|
|
3602
3637
|
(function(e) {
|
|
3603
3638
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3604
|
-
})(
|
|
3639
|
+
})(W || (W = {}));
|
|
3605
3640
|
var xe = (
|
|
3606
3641
|
/** @class */
|
|
3607
3642
|
function(e) {
|
|
3608
|
-
|
|
3643
|
+
Ee(t, e);
|
|
3609
3644
|
function t(r, n, i) {
|
|
3610
3645
|
var o = e.call(this, r) || this;
|
|
3611
3646
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3614,155 +3649,155 @@ var xe = (
|
|
|
3614
3649
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3615
3650
|
}, t;
|
|
3616
3651
|
}(Error)
|
|
3617
|
-
),
|
|
3652
|
+
), St = (
|
|
3618
3653
|
/** @class */
|
|
3619
3654
|
function(e) {
|
|
3620
|
-
|
|
3655
|
+
Ee(t, e);
|
|
3621
3656
|
function t(r, n, i, o) {
|
|
3622
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3657
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, o) || this;
|
|
3623
3658
|
}
|
|
3624
3659
|
return t;
|
|
3625
3660
|
}(xe)
|
|
3626
|
-
),
|
|
3661
|
+
), oi = (
|
|
3627
3662
|
/** @class */
|
|
3628
3663
|
function(e) {
|
|
3629
|
-
|
|
3664
|
+
Ee(t, e);
|
|
3630
3665
|
function t(r, n, i) {
|
|
3631
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3666
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), W.INVALID_VALUE, i) || this;
|
|
3632
3667
|
}
|
|
3633
3668
|
return t;
|
|
3634
3669
|
}(xe)
|
|
3635
|
-
),
|
|
3670
|
+
), si = (
|
|
3636
3671
|
/** @class */
|
|
3637
3672
|
function(e) {
|
|
3638
|
-
|
|
3673
|
+
Ee(t, e);
|
|
3639
3674
|
function t(r, n) {
|
|
3640
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3675
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), W.MISSING_VALUE, n) || this;
|
|
3641
3676
|
}
|
|
3642
3677
|
return t;
|
|
3643
3678
|
}(xe)
|
|
3644
|
-
),
|
|
3679
|
+
), E;
|
|
3645
3680
|
(function(e) {
|
|
3646
3681
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3647
|
-
})(
|
|
3648
|
-
function
|
|
3682
|
+
})(E || (E = {}));
|
|
3683
|
+
function ai(e) {
|
|
3649
3684
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3650
3685
|
var n = t[t.length - 1];
|
|
3651
|
-
return !n || n.type !==
|
|
3686
|
+
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3652
3687
|
}, []);
|
|
3653
3688
|
}
|
|
3654
|
-
function
|
|
3689
|
+
function ui(e) {
|
|
3655
3690
|
return typeof e == "function";
|
|
3656
3691
|
}
|
|
3657
|
-
function
|
|
3658
|
-
if (e.length === 1 &&
|
|
3692
|
+
function pe(e, t, r, n, i, o, s) {
|
|
3693
|
+
if (e.length === 1 && bt(e[0]))
|
|
3659
3694
|
return [
|
|
3660
3695
|
{
|
|
3661
|
-
type:
|
|
3696
|
+
type: E.literal,
|
|
3662
3697
|
value: e[0].value
|
|
3663
3698
|
}
|
|
3664
3699
|
];
|
|
3665
3700
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3666
3701
|
var l = u[h];
|
|
3667
|
-
if (
|
|
3702
|
+
if (bt(l)) {
|
|
3668
3703
|
a.push({
|
|
3669
|
-
type:
|
|
3704
|
+
type: E.literal,
|
|
3670
3705
|
value: l.value
|
|
3671
3706
|
});
|
|
3672
3707
|
continue;
|
|
3673
3708
|
}
|
|
3674
|
-
if (
|
|
3709
|
+
if (On(l)) {
|
|
3675
3710
|
typeof o == "number" && a.push({
|
|
3676
|
-
type:
|
|
3711
|
+
type: E.literal,
|
|
3677
3712
|
value: r.getNumberFormat(t).format(o)
|
|
3678
3713
|
});
|
|
3679
3714
|
continue;
|
|
3680
3715
|
}
|
|
3681
|
-
var
|
|
3682
|
-
if (!(i &&
|
|
3683
|
-
throw new
|
|
3684
|
-
var
|
|
3685
|
-
if (
|
|
3686
|
-
(!
|
|
3687
|
-
type: typeof
|
|
3688
|
-
value:
|
|
3716
|
+
var f = l.value;
|
|
3717
|
+
if (!(i && f in i))
|
|
3718
|
+
throw new si(f, s);
|
|
3719
|
+
var c = i[f];
|
|
3720
|
+
if (Pn(l)) {
|
|
3721
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3722
|
+
type: typeof c == "string" ? E.literal : E.object,
|
|
3723
|
+
value: c
|
|
3689
3724
|
});
|
|
3690
3725
|
continue;
|
|
3691
3726
|
}
|
|
3692
|
-
if (
|
|
3693
|
-
var
|
|
3727
|
+
if (zt(l)) {
|
|
3728
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Xe(l.style) ? l.style.parsedOptions : void 0;
|
|
3694
3729
|
a.push({
|
|
3695
|
-
type:
|
|
3696
|
-
value: r.getDateTimeFormat(t,
|
|
3730
|
+
type: E.literal,
|
|
3731
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3697
3732
|
});
|
|
3698
3733
|
continue;
|
|
3699
3734
|
}
|
|
3700
|
-
if (
|
|
3701
|
-
var
|
|
3735
|
+
if (Zt(l)) {
|
|
3736
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Xe(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3702
3737
|
a.push({
|
|
3703
|
-
type:
|
|
3704
|
-
value: r.getDateTimeFormat(t,
|
|
3738
|
+
type: E.literal,
|
|
3739
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3705
3740
|
});
|
|
3706
3741
|
continue;
|
|
3707
3742
|
}
|
|
3708
|
-
if (
|
|
3709
|
-
var
|
|
3710
|
-
|
|
3711
|
-
type:
|
|
3712
|
-
value: r.getNumberFormat(t,
|
|
3743
|
+
if (Wt(l)) {
|
|
3744
|
+
var p = typeof l.style == "string" ? n.number[l.style] : qt(l.style) ? l.style.parsedOptions : void 0;
|
|
3745
|
+
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
3746
|
+
type: E.literal,
|
|
3747
|
+
value: r.getNumberFormat(t, p).format(c)
|
|
3713
3748
|
});
|
|
3714
3749
|
continue;
|
|
3715
3750
|
}
|
|
3716
|
-
if (
|
|
3717
|
-
var
|
|
3718
|
-
if (!
|
|
3719
|
-
throw new
|
|
3720
|
-
var $ =
|
|
3721
|
-
return
|
|
3751
|
+
if (Yt(l)) {
|
|
3752
|
+
var d = l.children, y = l.value, B = i[y];
|
|
3753
|
+
if (!ui(B))
|
|
3754
|
+
throw new oi(y, "function", s);
|
|
3755
|
+
var $ = pe(d, t, r, n, i, o), N = B($.map(function(O) {
|
|
3756
|
+
return O.value;
|
|
3722
3757
|
}));
|
|
3723
|
-
Array.isArray(N) || (N = [N]), a.push.apply(a, N.map(function(
|
|
3758
|
+
Array.isArray(N) || (N = [N]), a.push.apply(a, N.map(function(O) {
|
|
3724
3759
|
return {
|
|
3725
|
-
type: typeof
|
|
3726
|
-
value:
|
|
3760
|
+
type: typeof O == "string" ? E.literal : E.object,
|
|
3761
|
+
value: O
|
|
3727
3762
|
};
|
|
3728
3763
|
}));
|
|
3729
3764
|
}
|
|
3730
|
-
if (
|
|
3731
|
-
var
|
|
3732
|
-
if (!
|
|
3733
|
-
throw new
|
|
3734
|
-
a.push.apply(a,
|
|
3765
|
+
if (Qt(l)) {
|
|
3766
|
+
var x = l.options[c] || l.options.other;
|
|
3767
|
+
if (!x)
|
|
3768
|
+
throw new St(l.value, c, Object.keys(l.options), s);
|
|
3769
|
+
a.push.apply(a, pe(x.value, t, r, n, i));
|
|
3735
3770
|
continue;
|
|
3736
3771
|
}
|
|
3737
|
-
if (
|
|
3738
|
-
var
|
|
3739
|
-
if (!
|
|
3772
|
+
if (Jt(l)) {
|
|
3773
|
+
var x = l.options["=".concat(c)];
|
|
3774
|
+
if (!x) {
|
|
3740
3775
|
if (!Intl.PluralRules)
|
|
3741
3776
|
throw new xe(`Intl.PluralRules is not available in this environment.
|
|
3742
3777
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3743
|
-
`,
|
|
3744
|
-
var R = r.getPluralRules(t, { type: l.pluralType }).select(
|
|
3745
|
-
|
|
3778
|
+
`, W.MISSING_INTL_API, s);
|
|
3779
|
+
var R = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3780
|
+
x = l.options[R] || l.options.other;
|
|
3746
3781
|
}
|
|
3747
|
-
if (!
|
|
3748
|
-
throw new
|
|
3749
|
-
a.push.apply(a,
|
|
3782
|
+
if (!x)
|
|
3783
|
+
throw new St(l.value, c, Object.keys(l.options), s);
|
|
3784
|
+
a.push.apply(a, pe(x.value, t, r, n, i, c - (l.offset || 0)));
|
|
3750
3785
|
continue;
|
|
3751
3786
|
}
|
|
3752
3787
|
}
|
|
3753
|
-
return
|
|
3788
|
+
return ai(a);
|
|
3754
3789
|
}
|
|
3755
|
-
function
|
|
3756
|
-
return t ?
|
|
3757
|
-
return r[n] =
|
|
3790
|
+
function hi(e, t) {
|
|
3791
|
+
return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3792
|
+
return r[n] = P(P({}, e[n]), t[n] || {}), r;
|
|
3758
3793
|
}, {})) : e;
|
|
3759
3794
|
}
|
|
3760
|
-
function
|
|
3795
|
+
function li(e, t) {
|
|
3761
3796
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3762
|
-
return r[n] =
|
|
3763
|
-
},
|
|
3797
|
+
return r[n] = hi(e[n], t[n]), r;
|
|
3798
|
+
}, P({}, e)) : e;
|
|
3764
3799
|
}
|
|
3765
|
-
function
|
|
3800
|
+
function Ne(e) {
|
|
3766
3801
|
return {
|
|
3767
3802
|
create: function() {
|
|
3768
3803
|
return {
|
|
@@ -3776,39 +3811,39 @@ function Oe(e) {
|
|
|
3776
3811
|
}
|
|
3777
3812
|
};
|
|
3778
3813
|
}
|
|
3779
|
-
function
|
|
3814
|
+
function ci(e) {
|
|
3780
3815
|
return e === void 0 && (e = {
|
|
3781
3816
|
number: {},
|
|
3782
3817
|
dateTime: {},
|
|
3783
3818
|
pluralRules: {}
|
|
3784
3819
|
}), {
|
|
3785
|
-
getNumberFormat:
|
|
3820
|
+
getNumberFormat: Oe(function() {
|
|
3786
3821
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3787
3822
|
r[n] = arguments[n];
|
|
3788
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3823
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3789
3824
|
}, {
|
|
3790
|
-
cache:
|
|
3791
|
-
strategy:
|
|
3825
|
+
cache: Ne(e.number),
|
|
3826
|
+
strategy: Ie.variadic
|
|
3792
3827
|
}),
|
|
3793
|
-
getDateTimeFormat:
|
|
3828
|
+
getDateTimeFormat: Oe(function() {
|
|
3794
3829
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3795
3830
|
r[n] = arguments[n];
|
|
3796
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3831
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3797
3832
|
}, {
|
|
3798
|
-
cache:
|
|
3799
|
-
strategy:
|
|
3833
|
+
cache: Ne(e.dateTime),
|
|
3834
|
+
strategy: Ie.variadic
|
|
3800
3835
|
}),
|
|
3801
|
-
getPluralRules:
|
|
3836
|
+
getPluralRules: Oe(function() {
|
|
3802
3837
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3803
3838
|
r[n] = arguments[n];
|
|
3804
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3839
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3805
3840
|
}, {
|
|
3806
|
-
cache:
|
|
3807
|
-
strategy:
|
|
3841
|
+
cache: Ne(e.pluralRules),
|
|
3842
|
+
strategy: Ie.variadic
|
|
3808
3843
|
})
|
|
3809
3844
|
};
|
|
3810
3845
|
}
|
|
3811
|
-
var
|
|
3846
|
+
var fi = (
|
|
3812
3847
|
/** @class */
|
|
3813
3848
|
function() {
|
|
3814
3849
|
function e(t, r, n, i) {
|
|
@@ -3822,12 +3857,12 @@ var ui = (
|
|
|
3822
3857
|
var u = o.formatToParts(h);
|
|
3823
3858
|
if (u.length === 1)
|
|
3824
3859
|
return u[0].value;
|
|
3825
|
-
var l = u.reduce(function(
|
|
3826
|
-
return !
|
|
3860
|
+
var l = u.reduce(function(f, c) {
|
|
3861
|
+
return !f.length || c.type !== E.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3827
3862
|
}, []);
|
|
3828
3863
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3829
3864
|
}, this.formatToParts = function(h) {
|
|
3830
|
-
return
|
|
3865
|
+
return pe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3831
3866
|
}, this.resolvedOptions = function() {
|
|
3832
3867
|
var h;
|
|
3833
3868
|
return {
|
|
@@ -3840,13 +3875,13 @@ var ui = (
|
|
|
3840
3875
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3841
3876
|
var s = i || {};
|
|
3842
3877
|
s.formatters;
|
|
3843
|
-
var a =
|
|
3844
|
-
this.ast = e.__parse(t,
|
|
3878
|
+
var a = En(s, ["formatters"]);
|
|
3879
|
+
this.ast = e.__parse(t, P(P({}, a), { locale: this.resolvedLocale }));
|
|
3845
3880
|
} else
|
|
3846
3881
|
this.ast = t;
|
|
3847
3882
|
if (!Array.isArray(this.ast))
|
|
3848
3883
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3849
|
-
this.formats =
|
|
3884
|
+
this.formats = li(e.formats, n), this.formatters = i && i.formatters || ci(this.formatterCache);
|
|
3850
3885
|
}
|
|
3851
3886
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3852
3887
|
get: function() {
|
|
@@ -3859,7 +3894,7 @@ var ui = (
|
|
|
3859
3894
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3860
3895
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3861
3896
|
}
|
|
3862
|
-
}, e.__parse =
|
|
3897
|
+
}, e.__parse = ii, e.formats = {
|
|
3863
3898
|
number: {
|
|
3864
3899
|
integer: {
|
|
3865
3900
|
maximumFractionDigits: 0
|
|
@@ -3920,7 +3955,7 @@ var ui = (
|
|
|
3920
3955
|
}, e;
|
|
3921
3956
|
}()
|
|
3922
3957
|
);
|
|
3923
|
-
function
|
|
3958
|
+
function pi(e, t) {
|
|
3924
3959
|
if (t == null)
|
|
3925
3960
|
return;
|
|
3926
3961
|
if (t in e)
|
|
@@ -3941,92 +3976,92 @@ function hi(e, t) {
|
|
|
3941
3976
|
n = void 0;
|
|
3942
3977
|
return n;
|
|
3943
3978
|
}
|
|
3944
|
-
const C = {},
|
|
3979
|
+
const C = {}, di = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), sr = (e, t) => {
|
|
3945
3980
|
if (t == null)
|
|
3946
3981
|
return;
|
|
3947
3982
|
if (t in C && e in C[t])
|
|
3948
3983
|
return C[t][e];
|
|
3949
|
-
const r =
|
|
3984
|
+
const r = Se(t);
|
|
3950
3985
|
for (let n = 0; n < r.length; n++) {
|
|
3951
|
-
const i = r[n], o =
|
|
3986
|
+
const i = r[n], o = bi(i, e);
|
|
3952
3987
|
if (o)
|
|
3953
|
-
return
|
|
3988
|
+
return di(e, t, o);
|
|
3954
3989
|
}
|
|
3955
3990
|
};
|
|
3956
|
-
let
|
|
3957
|
-
const ae =
|
|
3958
|
-
function
|
|
3959
|
-
return
|
|
3991
|
+
let et;
|
|
3992
|
+
const ae = _e({});
|
|
3993
|
+
function mi(e) {
|
|
3994
|
+
return et[e] || null;
|
|
3960
3995
|
}
|
|
3961
|
-
function
|
|
3962
|
-
return e in
|
|
3996
|
+
function ar(e) {
|
|
3997
|
+
return e in et;
|
|
3963
3998
|
}
|
|
3964
|
-
function
|
|
3965
|
-
if (!
|
|
3999
|
+
function bi(e, t) {
|
|
4000
|
+
if (!ar(e))
|
|
3966
4001
|
return null;
|
|
3967
|
-
const r =
|
|
3968
|
-
return
|
|
4002
|
+
const r = mi(e);
|
|
4003
|
+
return pi(r, t);
|
|
3969
4004
|
}
|
|
3970
|
-
function
|
|
4005
|
+
function gi(e) {
|
|
3971
4006
|
if (e == null)
|
|
3972
4007
|
return;
|
|
3973
|
-
const t =
|
|
4008
|
+
const t = Se(e);
|
|
3974
4009
|
for (let r = 0; r < t.length; r++) {
|
|
3975
4010
|
const n = t[r];
|
|
3976
|
-
if (
|
|
4011
|
+
if (ar(n))
|
|
3977
4012
|
return n;
|
|
3978
4013
|
}
|
|
3979
4014
|
}
|
|
3980
|
-
function
|
|
3981
|
-
delete C[e], ae.update((r) => (r[e] =
|
|
4015
|
+
function ur(e, ...t) {
|
|
4016
|
+
delete C[e], ae.update((r) => (r[e] = _n.all([r[e] || {}, ...t]), r));
|
|
3982
4017
|
}
|
|
3983
|
-
|
|
4018
|
+
Q(
|
|
3984
4019
|
[ae],
|
|
3985
4020
|
([e]) => Object.keys(e)
|
|
3986
4021
|
);
|
|
3987
|
-
ae.subscribe((e) =>
|
|
3988
|
-
const
|
|
3989
|
-
function
|
|
3990
|
-
|
|
4022
|
+
ae.subscribe((e) => et = e);
|
|
4023
|
+
const de = {};
|
|
4024
|
+
function yi(e, t) {
|
|
4025
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3991
4026
|
}
|
|
3992
|
-
function
|
|
3993
|
-
return
|
|
4027
|
+
function hr(e) {
|
|
4028
|
+
return de[e];
|
|
3994
4029
|
}
|
|
3995
|
-
function
|
|
3996
|
-
return
|
|
3997
|
-
const r =
|
|
4030
|
+
function vi(e) {
|
|
4031
|
+
return Se(e).map((t) => {
|
|
4032
|
+
const r = hr(t);
|
|
3998
4033
|
return [t, r ? [...r] : []];
|
|
3999
4034
|
}).filter(([, t]) => t.length > 0);
|
|
4000
4035
|
}
|
|
4001
|
-
function
|
|
4002
|
-
return e == null ? !1 :
|
|
4036
|
+
function Ye(e) {
|
|
4037
|
+
return e == null ? !1 : Se(e).some(
|
|
4003
4038
|
(t) => {
|
|
4004
4039
|
var r;
|
|
4005
|
-
return (r =
|
|
4040
|
+
return (r = hr(t)) == null ? void 0 : r.size;
|
|
4006
4041
|
}
|
|
4007
4042
|
);
|
|
4008
4043
|
}
|
|
4009
|
-
function
|
|
4044
|
+
function _i(e, t) {
|
|
4010
4045
|
return Promise.all(
|
|
4011
|
-
t.map((n) => (
|
|
4012
|
-
).then((n) =>
|
|
4013
|
-
}
|
|
4014
|
-
const
|
|
4015
|
-
function
|
|
4016
|
-
if (!
|
|
4017
|
-
return e in
|
|
4018
|
-
const t =
|
|
4019
|
-
return
|
|
4046
|
+
t.map((n) => (yi(e, n), n().then((i) => i.default || i)))
|
|
4047
|
+
).then((n) => ur(e, ...n));
|
|
4048
|
+
}
|
|
4049
|
+
const K = {};
|
|
4050
|
+
function lr(e) {
|
|
4051
|
+
if (!Ye(e))
|
|
4052
|
+
return e in K ? K[e] : Promise.resolve();
|
|
4053
|
+
const t = vi(e);
|
|
4054
|
+
return K[e] = Promise.all(
|
|
4020
4055
|
t.map(
|
|
4021
|
-
([r, n]) =>
|
|
4056
|
+
([r, n]) => _i(r, n)
|
|
4022
4057
|
)
|
|
4023
4058
|
).then(() => {
|
|
4024
|
-
if (
|
|
4025
|
-
return
|
|
4026
|
-
delete
|
|
4027
|
-
}),
|
|
4059
|
+
if (Ye(e))
|
|
4060
|
+
return lr(e);
|
|
4061
|
+
delete K[e];
|
|
4062
|
+
}), K[e];
|
|
4028
4063
|
}
|
|
4029
|
-
const
|
|
4064
|
+
const Ei = {
|
|
4030
4065
|
number: {
|
|
4031
4066
|
scientific: { notation: "scientific" },
|
|
4032
4067
|
engineering: { notation: "engineering" },
|
|
@@ -4055,135 +4090,135 @@ const gi = {
|
|
|
4055
4090
|
timeZoneName: "short"
|
|
4056
4091
|
}
|
|
4057
4092
|
}
|
|
4058
|
-
},
|
|
4093
|
+
}, xi = {
|
|
4059
4094
|
fallbackLocale: null,
|
|
4060
4095
|
loadingDelay: 200,
|
|
4061
|
-
formats:
|
|
4096
|
+
formats: Ei,
|
|
4062
4097
|
warnOnMissingMessages: !0,
|
|
4063
4098
|
handleMissingMessage: void 0,
|
|
4064
4099
|
ignoreTag: !0
|
|
4065
|
-
},
|
|
4066
|
-
function
|
|
4067
|
-
return
|
|
4068
|
-
}
|
|
4069
|
-
const
|
|
4070
|
-
var
|
|
4071
|
-
for (var r in t)
|
|
4072
|
-
|
|
4073
|
-
if (
|
|
4074
|
-
for (var r of
|
|
4075
|
-
|
|
4100
|
+
}, Si = xi;
|
|
4101
|
+
function z() {
|
|
4102
|
+
return Si;
|
|
4103
|
+
}
|
|
4104
|
+
const Me = _e(!1);
|
|
4105
|
+
var Ti = Object.defineProperty, Hi = Object.defineProperties, Bi = Object.getOwnPropertyDescriptors, Tt = Object.getOwnPropertySymbols, wi = Object.prototype.hasOwnProperty, Ai = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? Ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Pi = (e, t) => {
|
|
4106
|
+
for (var r in t || (t = {}))
|
|
4107
|
+
wi.call(t, r) && Ht(e, r, t[r]);
|
|
4108
|
+
if (Tt)
|
|
4109
|
+
for (var r of Tt(t))
|
|
4110
|
+
Ai.call(t, r) && Ht(e, r, t[r]);
|
|
4076
4111
|
return e;
|
|
4077
|
-
},
|
|
4078
|
-
let
|
|
4079
|
-
const
|
|
4080
|
-
function
|
|
4112
|
+
}, Oi = (e, t) => Hi(e, Bi(t));
|
|
4113
|
+
let qe;
|
|
4114
|
+
const be = _e(null);
|
|
4115
|
+
function Bt(e) {
|
|
4081
4116
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4082
4117
|
}
|
|
4083
|
-
function
|
|
4084
|
-
const r =
|
|
4085
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4118
|
+
function Se(e, t = z().fallbackLocale) {
|
|
4119
|
+
const r = Bt(e);
|
|
4120
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Bt(t)])] : r;
|
|
4086
4121
|
}
|
|
4087
4122
|
function U() {
|
|
4088
|
-
return
|
|
4123
|
+
return qe != null ? qe : void 0;
|
|
4089
4124
|
}
|
|
4090
|
-
|
|
4091
|
-
|
|
4125
|
+
be.subscribe((e) => {
|
|
4126
|
+
qe = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4092
4127
|
});
|
|
4093
|
-
const
|
|
4094
|
-
if (e &&
|
|
4095
|
-
const { loadingDelay: t } =
|
|
4128
|
+
const Ii = (e) => {
|
|
4129
|
+
if (e && gi(e) && Ye(e)) {
|
|
4130
|
+
const { loadingDelay: t } = z();
|
|
4096
4131
|
let r;
|
|
4097
4132
|
return typeof window != "undefined" && U() != null && t ? r = window.setTimeout(
|
|
4098
|
-
() =>
|
|
4133
|
+
() => Me.set(!0),
|
|
4099
4134
|
t
|
|
4100
|
-
) :
|
|
4101
|
-
|
|
4135
|
+
) : Me.set(!0), lr(e).then(() => {
|
|
4136
|
+
be.set(e);
|
|
4102
4137
|
}).finally(() => {
|
|
4103
|
-
clearTimeout(r),
|
|
4138
|
+
clearTimeout(r), Me.set(!1);
|
|
4104
4139
|
});
|
|
4105
4140
|
}
|
|
4106
|
-
return
|
|
4107
|
-
},
|
|
4108
|
-
set:
|
|
4109
|
-
}),
|
|
4141
|
+
return be.set(e);
|
|
4142
|
+
}, J = Oi(Pi({}, be), {
|
|
4143
|
+
set: Ii
|
|
4144
|
+
}), Te = (e) => {
|
|
4110
4145
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4111
4146
|
return (n) => {
|
|
4112
4147
|
const i = JSON.stringify(n);
|
|
4113
4148
|
return i in t ? t[i] : t[i] = e(n);
|
|
4114
4149
|
};
|
|
4115
4150
|
};
|
|
4116
|
-
var
|
|
4151
|
+
var Li = Object.defineProperty, ge = Object.getOwnPropertySymbols, cr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? Li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
4117
4152
|
for (var r in t || (t = {}))
|
|
4118
|
-
|
|
4119
|
-
if (
|
|
4120
|
-
for (var r of
|
|
4121
|
-
|
|
4153
|
+
cr.call(t, r) && wt(e, r, t[r]);
|
|
4154
|
+
if (ge)
|
|
4155
|
+
for (var r of ge(t))
|
|
4156
|
+
fr.call(t, r) && wt(e, r, t[r]);
|
|
4122
4157
|
return e;
|
|
4123
|
-
},
|
|
4158
|
+
}, Y = (e, t) => {
|
|
4124
4159
|
var r = {};
|
|
4125
4160
|
for (var n in e)
|
|
4126
|
-
|
|
4127
|
-
if (e != null &&
|
|
4128
|
-
for (var n of
|
|
4129
|
-
t.indexOf(n) < 0 &&
|
|
4161
|
+
cr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4162
|
+
if (e != null && ge)
|
|
4163
|
+
for (var n of ge(e))
|
|
4164
|
+
t.indexOf(n) < 0 && fr.call(e, n) && (r[n] = e[n]);
|
|
4130
4165
|
return r;
|
|
4131
4166
|
};
|
|
4132
|
-
const
|
|
4133
|
-
const { formats: r } =
|
|
4167
|
+
const ne = (e, t) => {
|
|
4168
|
+
const { formats: r } = z();
|
|
4134
4169
|
if (e in r && t in r[e])
|
|
4135
4170
|
return r[e][t];
|
|
4136
4171
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4137
|
-
},
|
|
4172
|
+
}, Ni = Te(
|
|
4138
4173
|
(e) => {
|
|
4139
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4174
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4140
4175
|
if (r == null)
|
|
4141
4176
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4142
|
-
return n && (i =
|
|
4177
|
+
return n && (i = ne("number", n)), new Intl.NumberFormat(r, i);
|
|
4143
4178
|
}
|
|
4144
|
-
),
|
|
4179
|
+
), Mi = Te(
|
|
4145
4180
|
(e) => {
|
|
4146
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4181
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4147
4182
|
if (r == null)
|
|
4148
4183
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4149
|
-
return n ? i =
|
|
4184
|
+
return n ? i = ne("date", n) : Object.keys(i).length === 0 && (i = ne("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4150
4185
|
}
|
|
4151
|
-
),
|
|
4186
|
+
), Ci = Te(
|
|
4152
4187
|
(e) => {
|
|
4153
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4188
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4154
4189
|
if (r == null)
|
|
4155
4190
|
throw new Error(
|
|
4156
4191
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4157
4192
|
);
|
|
4158
|
-
return n ? i =
|
|
4193
|
+
return n ? i = ne("time", n) : Object.keys(i).length === 0 && (i = ne("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4159
4194
|
}
|
|
4160
|
-
),
|
|
4195
|
+
), $i = (e = {}) => {
|
|
4161
4196
|
var t = e, {
|
|
4162
4197
|
locale: r = U()
|
|
4163
|
-
} = t, n =
|
|
4198
|
+
} = t, n = Y(t, [
|
|
4164
4199
|
"locale"
|
|
4165
4200
|
]);
|
|
4166
|
-
return
|
|
4167
|
-
},
|
|
4201
|
+
return Ni(tt({ locale: r }, n));
|
|
4202
|
+
}, Ri = (e = {}) => {
|
|
4168
4203
|
var t = e, {
|
|
4169
4204
|
locale: r = U()
|
|
4170
|
-
} = t, n =
|
|
4205
|
+
} = t, n = Y(t, [
|
|
4171
4206
|
"locale"
|
|
4172
4207
|
]);
|
|
4173
|
-
return
|
|
4174
|
-
},
|
|
4208
|
+
return Mi(tt({ locale: r }, n));
|
|
4209
|
+
}, Ui = (e = {}) => {
|
|
4175
4210
|
var t = e, {
|
|
4176
4211
|
locale: r = U()
|
|
4177
|
-
} = t, n =
|
|
4212
|
+
} = t, n = Y(t, [
|
|
4178
4213
|
"locale"
|
|
4179
4214
|
]);
|
|
4180
|
-
return
|
|
4181
|
-
},
|
|
4215
|
+
return Ci(tt({ locale: r }, n));
|
|
4216
|
+
}, Gi = Te(
|
|
4182
4217
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4183
|
-
(e, t = U()) => new
|
|
4184
|
-
ignoreTag:
|
|
4218
|
+
(e, t = U()) => new fi(e, t, z().formats, {
|
|
4219
|
+
ignoreTag: z().ignoreTag
|
|
4185
4220
|
})
|
|
4186
|
-
),
|
|
4221
|
+
), Di = (e, t = {}) => {
|
|
4187
4222
|
var r, n, i, o;
|
|
4188
4223
|
let s = t;
|
|
4189
4224
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4196,32 +4231,32 @@ const ie = (e, t) => {
|
|
|
4196
4231
|
throw new Error(
|
|
4197
4232
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4198
4233
|
);
|
|
4199
|
-
let l =
|
|
4234
|
+
let l = sr(e, h);
|
|
4200
4235
|
if (!l)
|
|
4201
|
-
l = (o = (i = (n = (r =
|
|
4236
|
+
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;
|
|
4202
4237
|
else if (typeof l != "string")
|
|
4203
4238
|
return console.warn(
|
|
4204
4239
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4205
4240
|
), l;
|
|
4206
4241
|
if (!a)
|
|
4207
4242
|
return l;
|
|
4208
|
-
let
|
|
4243
|
+
let f = l;
|
|
4209
4244
|
try {
|
|
4210
|
-
|
|
4211
|
-
} catch (
|
|
4212
|
-
|
|
4245
|
+
f = Gi(l, h).format(a);
|
|
4246
|
+
} catch (c) {
|
|
4247
|
+
c instanceof Error && console.warn(
|
|
4213
4248
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4214
|
-
|
|
4249
|
+
c.message
|
|
4215
4250
|
);
|
|
4216
4251
|
}
|
|
4217
|
-
return
|
|
4218
|
-
},
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
window.emWidgets = { topic:
|
|
4224
|
-
const
|
|
4252
|
+
return f;
|
|
4253
|
+
}, Fi = (e, t) => Ui(t).format(e), ji = (e, t) => Ri(t).format(e), ki = (e, t) => $i(t).format(e), Vi = (e, t = U()) => sr(e, t), Xi = Q([J, ae], () => Di);
|
|
4254
|
+
Q([J], () => Fi);
|
|
4255
|
+
Q([J], () => ji);
|
|
4256
|
+
Q([J], () => ki);
|
|
4257
|
+
Q([J, ae], () => Vi);
|
|
4258
|
+
window.emWidgets = { topic: rn };
|
|
4259
|
+
const Wi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC", zi = (e, t = {}) => {
|
|
4225
4260
|
const r = new CustomEvent("track-custom-event", {
|
|
4226
4261
|
detail: {
|
|
4227
4262
|
type: e,
|
|
@@ -4232,13 +4267,13 @@ const ji = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase(
|
|
|
4232
4267
|
});
|
|
4233
4268
|
document.dispatchEvent(r);
|
|
4234
4269
|
};
|
|
4235
|
-
function
|
|
4236
|
-
|
|
4270
|
+
function At(e, t) {
|
|
4271
|
+
ur(e, t);
|
|
4237
4272
|
}
|
|
4238
|
-
function
|
|
4239
|
-
|
|
4273
|
+
function Zi(e) {
|
|
4274
|
+
J.set(e);
|
|
4240
4275
|
}
|
|
4241
|
-
const
|
|
4276
|
+
const Pt = {
|
|
4242
4277
|
en: {
|
|
4243
4278
|
logoutButton: "Logout"
|
|
4244
4279
|
},
|
|
@@ -4273,13 +4308,13 @@ const Ht = {
|
|
|
4273
4308
|
logoutButton: "Logout"
|
|
4274
4309
|
}
|
|
4275
4310
|
};
|
|
4276
|
-
function
|
|
4311
|
+
function Ot(e, t) {
|
|
4277
4312
|
if (e) {
|
|
4278
4313
|
const r = document.createElement("style");
|
|
4279
4314
|
r.innerHTML = t, e.appendChild(r);
|
|
4280
4315
|
}
|
|
4281
4316
|
}
|
|
4282
|
-
function
|
|
4317
|
+
function Qi(e, t) {
|
|
4283
4318
|
const r = new URL(t);
|
|
4284
4319
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4285
4320
|
const i = document.createElement("style");
|
|
@@ -4288,7 +4323,7 @@ function Xi(e, t) {
|
|
|
4288
4323
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4289
4324
|
});
|
|
4290
4325
|
}
|
|
4291
|
-
function
|
|
4326
|
+
function Ji(e, t, r) {
|
|
4292
4327
|
if (window.emMessageBus) {
|
|
4293
4328
|
const n = document.createElement("style");
|
|
4294
4329
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4296,20 +4331,20 @@ function Wi(e, t, r) {
|
|
|
4296
4331
|
});
|
|
4297
4332
|
}
|
|
4298
4333
|
}
|
|
4299
|
-
function
|
|
4300
|
-
|
|
4334
|
+
function Yi(e) {
|
|
4335
|
+
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))}");
|
|
4301
4336
|
}
|
|
4302
|
-
function
|
|
4337
|
+
function qi(e) {
|
|
4303
4338
|
let t, r, n, i = (
|
|
4304
4339
|
/*$_*/
|
|
4305
4340
|
e[2]("logoutButton") + ""
|
|
4306
4341
|
), o, s, a;
|
|
4307
4342
|
return {
|
|
4308
4343
|
c() {
|
|
4309
|
-
t =
|
|
4344
|
+
t = I("div"), r = I("button"), n = I("span"), o = ye(i), H(t, "class", "GeneralLogout");
|
|
4310
4345
|
},
|
|
4311
4346
|
m(h, u) {
|
|
4312
|
-
|
|
4347
|
+
oe(h, t, u), S(t, r), S(r, n), S(n, o), s || (a = Mt(
|
|
4313
4348
|
r,
|
|
4314
4349
|
"click",
|
|
4315
4350
|
/*click_handler_1*/
|
|
@@ -4319,19 +4354,19 @@ function Zi(e) {
|
|
|
4319
4354
|
p(h, u) {
|
|
4320
4355
|
u & /*$_*/
|
|
4321
4356
|
4 && i !== (i = /*$_*/
|
|
4322
|
-
h[2]("logoutButton") + "") &&
|
|
4357
|
+
h[2]("logoutButton") + "") && Ct(o, i);
|
|
4323
4358
|
},
|
|
4324
4359
|
d(h) {
|
|
4325
|
-
h &&
|
|
4360
|
+
h && Z(t), s = !1, a();
|
|
4326
4361
|
}
|
|
4327
4362
|
};
|
|
4328
4363
|
}
|
|
4329
|
-
function
|
|
4330
|
-
let t, r, n, i, o, s, a, h, u, l,
|
|
4331
|
-
e[3] &&
|
|
4364
|
+
function Ki(e) {
|
|
4365
|
+
let t, r, n, i, o, s, a, h, u, l, f, c = !/*isMobile*/
|
|
4366
|
+
e[3] && eo(e);
|
|
4332
4367
|
return {
|
|
4333
4368
|
c() {
|
|
4334
|
-
t =
|
|
4369
|
+
t = I("p"), r = I("span"), n = q("svg"), i = q("defs"), o = q("style"), s = ye(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = q("path"), h = q("path"), u = Tr(), 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"), Br(r, "width", /*isMobile*/
|
|
4335
4370
|
e[3] ? (
|
|
4336
4371
|
/*mediaQuery*/
|
|
4337
4372
|
e[4].matches ? "20px" : "24px"
|
|
@@ -4340,60 +4375,60 @@ function Qi(e) {
|
|
|
4340
4375
|
(e[4].matches && /*isMobile*/
|
|
4341
4376
|
e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
|
|
4342
4377
|
},
|
|
4343
|
-
m(
|
|
4344
|
-
|
|
4378
|
+
m(p, d) {
|
|
4379
|
+
oe(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 = Mt(
|
|
4345
4380
|
t,
|
|
4346
4381
|
"click",
|
|
4347
4382
|
/*click_handler*/
|
|
4348
4383
|
e[13]
|
|
4349
4384
|
), l = !0);
|
|
4350
4385
|
},
|
|
4351
|
-
p(
|
|
4386
|
+
p(p, d) {
|
|
4352
4387
|
/*isMobile*/
|
|
4353
|
-
|
|
4388
|
+
p[3] || c.p(p, d);
|
|
4354
4389
|
},
|
|
4355
|
-
d(
|
|
4356
|
-
|
|
4390
|
+
d(p) {
|
|
4391
|
+
p && Z(t), c && c.d(), l = !1, f();
|
|
4357
4392
|
}
|
|
4358
4393
|
};
|
|
4359
4394
|
}
|
|
4360
|
-
function
|
|
4395
|
+
function eo(e) {
|
|
4361
4396
|
let t, r = (
|
|
4362
4397
|
/*$_*/
|
|
4363
4398
|
e[2]("logoutButton") + ""
|
|
4364
4399
|
), n;
|
|
4365
4400
|
return {
|
|
4366
4401
|
c() {
|
|
4367
|
-
t =
|
|
4402
|
+
t = I("span"), n = ye(r), H(t, "class", "PlayerLogoutText");
|
|
4368
4403
|
},
|
|
4369
4404
|
m(i, o) {
|
|
4370
|
-
|
|
4405
|
+
oe(i, t, o), S(t, n);
|
|
4371
4406
|
},
|
|
4372
4407
|
p(i, o) {
|
|
4373
4408
|
o & /*$_*/
|
|
4374
4409
|
4 && r !== (r = /*$_*/
|
|
4375
|
-
i[2]("logoutButton") + "") &&
|
|
4410
|
+
i[2]("logoutButton") + "") && Ct(n, r);
|
|
4376
4411
|
},
|
|
4377
4412
|
d(i) {
|
|
4378
|
-
i &&
|
|
4413
|
+
i && Z(t);
|
|
4379
4414
|
}
|
|
4380
4415
|
};
|
|
4381
4416
|
}
|
|
4382
|
-
function
|
|
4417
|
+
function to(e) {
|
|
4383
4418
|
let t;
|
|
4384
4419
|
function r(o, s) {
|
|
4385
4420
|
return (
|
|
4386
4421
|
/*buttonlocation*/
|
|
4387
|
-
o[0] === "PlayerAccountMenu" ?
|
|
4422
|
+
o[0] === "PlayerAccountMenu" ? Ki : qi
|
|
4388
4423
|
);
|
|
4389
4424
|
}
|
|
4390
4425
|
let n = r(e), i = n(e);
|
|
4391
4426
|
return {
|
|
4392
4427
|
c() {
|
|
4393
|
-
t =
|
|
4428
|
+
t = I("div"), i.c();
|
|
4394
4429
|
},
|
|
4395
4430
|
m(o, s) {
|
|
4396
|
-
|
|
4431
|
+
oe(o, t, s), i.m(t, null), e[15](t);
|
|
4397
4432
|
},
|
|
4398
4433
|
p(o, [s]) {
|
|
4399
4434
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
@@ -4401,82 +4436,82 @@ function Yi(e) {
|
|
|
4401
4436
|
i: w,
|
|
4402
4437
|
o: w,
|
|
4403
4438
|
d(o) {
|
|
4404
|
-
o &&
|
|
4439
|
+
o && Z(t), i.d(), e[15](null);
|
|
4405
4440
|
}
|
|
4406
4441
|
};
|
|
4407
4442
|
}
|
|
4408
|
-
function
|
|
4443
|
+
function ro(e, t, r) {
|
|
4409
4444
|
let n;
|
|
4410
|
-
|
|
4411
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl:
|
|
4445
|
+
_r(e, Xi, (g) => r(2, n = g));
|
|
4446
|
+
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, y = window.navigator.userAgent, B = Wi(y) !== "PC";
|
|
4412
4447
|
const $ = window.matchMedia("(min-width: 768px)"), N = () => {
|
|
4413
|
-
fetch(
|
|
4414
|
-
Object.keys(M).forEach((
|
|
4415
|
-
|
|
4448
|
+
fetch(f).then((M) => M.json()).then((M) => {
|
|
4449
|
+
Object.keys(M).forEach((He) => {
|
|
4450
|
+
At(He, M[He]);
|
|
4416
4451
|
});
|
|
4417
4452
|
}).catch((M) => {
|
|
4418
4453
|
console.log(M);
|
|
4419
4454
|
});
|
|
4420
4455
|
};
|
|
4421
|
-
Object.keys(
|
|
4422
|
-
|
|
4456
|
+
Object.keys(Pt).forEach((g) => {
|
|
4457
|
+
At(g, Pt[g]);
|
|
4423
4458
|
});
|
|
4424
|
-
const
|
|
4425
|
-
let
|
|
4426
|
-
|
|
4427
|
-
let M = { method: "DELETE", headers:
|
|
4428
|
-
fetch(`${i}/v1/player/session/player`, M).then((
|
|
4429
|
-
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href),
|
|
4459
|
+
const x = () => {
|
|
4460
|
+
let g = new Headers();
|
|
4461
|
+
g.append("Content-type", "application/json"), g.append("X-SessionID", o);
|
|
4462
|
+
let M = { method: "DELETE", headers: g };
|
|
4463
|
+
fetch(`${i}/v1/player/session/player`, M).then((He) => {
|
|
4464
|
+
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), zi("logged_out", {});
|
|
4430
4465
|
});
|
|
4431
|
-
}, R = () => (i || (
|
|
4432
|
-
|
|
4466
|
+
}, 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), O = () => {
|
|
4467
|
+
Zi(a);
|
|
4433
4468
|
};
|
|
4434
|
-
|
|
4469
|
+
Pr(() => () => {
|
|
4435
4470
|
});
|
|
4436
|
-
const
|
|
4437
|
-
function
|
|
4438
|
-
|
|
4439
|
-
|
|
4471
|
+
const G = () => x(), ue = () => x();
|
|
4472
|
+
function pr(g) {
|
|
4473
|
+
Ce[g ? "unshift" : "push"](() => {
|
|
4474
|
+
d = g, r(1, d);
|
|
4440
4475
|
});
|
|
4441
4476
|
}
|
|
4442
|
-
return e.$$set = (
|
|
4443
|
-
"endpoint" in
|
|
4477
|
+
return e.$$set = (g) => {
|
|
4478
|
+
"endpoint" in g && r(6, i = g.endpoint), "session" in g && r(7, o = g.session), "buttonlocation" in g && r(0, s = g.buttonlocation), "lang" in g && r(8, a = g.lang), "mbsource" in g && r(9, h = g.mbsource), "clientstyling" in g && r(10, u = g.clientstyling), "clientstylingurl" in g && r(11, l = g.clientstylingurl), "translationurl" in g && r(12, f = g.translationurl);
|
|
4444
4479
|
}, e.$$.update = () => {
|
|
4445
4480
|
e.$$.dirty & /*endpoint, session, buttonlocation*/
|
|
4446
4481
|
193 && i && o && s && R(), e.$$.dirty & /*lang*/
|
|
4447
|
-
256 && a &&
|
|
4448
|
-
1026 && u &&
|
|
4449
|
-
1026 && u &&
|
|
4450
|
-
2050 && l &&
|
|
4451
|
-
514 && h &&
|
|
4452
|
-
4096 &&
|
|
4482
|
+
256 && a && O(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4483
|
+
1026 && u && d && Ot(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4484
|
+
1026 && u && d && Ot(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4485
|
+
2050 && l && d && Qi(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4486
|
+
514 && h && d && Ji(d, `${h}.Style`), e.$$.dirty & /*translationurl*/
|
|
4487
|
+
4096 && f && N();
|
|
4453
4488
|
}, [
|
|
4454
4489
|
s,
|
|
4455
|
-
|
|
4490
|
+
d,
|
|
4456
4491
|
n,
|
|
4457
4492
|
B,
|
|
4458
4493
|
$,
|
|
4459
|
-
|
|
4494
|
+
x,
|
|
4460
4495
|
i,
|
|
4461
4496
|
o,
|
|
4462
4497
|
a,
|
|
4463
4498
|
h,
|
|
4464
4499
|
u,
|
|
4465
4500
|
l,
|
|
4466
|
-
|
|
4467
|
-
|
|
4501
|
+
f,
|
|
4502
|
+
G,
|
|
4468
4503
|
ue,
|
|
4469
|
-
|
|
4504
|
+
pr
|
|
4470
4505
|
];
|
|
4471
4506
|
}
|
|
4472
|
-
class
|
|
4507
|
+
class no extends Fr {
|
|
4473
4508
|
constructor(t) {
|
|
4474
|
-
super(),
|
|
4509
|
+
super(), Gr(
|
|
4475
4510
|
this,
|
|
4476
4511
|
t,
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4512
|
+
ro,
|
|
4513
|
+
to,
|
|
4514
|
+
Lt,
|
|
4480
4515
|
{
|
|
4481
4516
|
endpoint: 6,
|
|
4482
4517
|
session: 7,
|
|
@@ -4487,7 +4522,7 @@ class Ki extends Rr {
|
|
|
4487
4522
|
clientstylingurl: 11,
|
|
4488
4523
|
translationurl: 12
|
|
4489
4524
|
},
|
|
4490
|
-
|
|
4525
|
+
Yi
|
|
4491
4526
|
);
|
|
4492
4527
|
}
|
|
4493
4528
|
get endpoint() {
|
|
@@ -4539,7 +4574,7 @@ class Ki extends Rr {
|
|
|
4539
4574
|
this.$$set({ translationurl: t }), A();
|
|
4540
4575
|
}
|
|
4541
4576
|
}
|
|
4542
|
-
|
|
4577
|
+
Dr(no, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4543
4578
|
export {
|
|
4544
|
-
|
|
4579
|
+
no as default
|
|
4545
4580
|
};
|