@everymatrix/casino-tournaments-controller 1.61.1 → 1.62.1
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/{CasinoTournamentsController-Cf2DQVn2.js → CasinoTournamentsController-CUMRoST-.js} +1049 -1006
- package/components/{CasinoTournamentsController-D6vZoeoj.js → CasinoTournamentsController-WufarZ8q.js} +1070 -1027
- package/components/CasinoTournamentsController-oGL-nV5r.cjs +27 -0
- package/components/{CasinoTournamentsFilterController-Tx9mruBX.js → CasinoTournamentsFilterController-D8NP0ZIy.js} +1 -1
- package/components/{CasinoTournamentsFilterController-BtN_XgvH.cjs → CasinoTournamentsFilterController-D92H_sdr.cjs} +1 -1
- package/components/{CasinoTournamentsFilterController-CdMh8n3B.js → CasinoTournamentsFilterController-LT68fjHh.js} +1 -1
- package/components/{CasinoTournamentsListController-EAJbvzEx.js → CasinoTournamentsListController-CGdBHJDM.js} +2 -2
- package/components/{CasinoTournamentsListController-CYBH9J8C.cjs → CasinoTournamentsListController-CwxI2YAB.cjs} +2 -2
- package/components/{CasinoTournamentsListController-DZqBQlj6.js → CasinoTournamentsListController-Dd8eFRxa.js} +2 -2
- package/components/{CasinoTournamentsThumbnail-C8RmbAI-.js → CasinoTournamentsThumbnail-BUZX068g.js} +1 -1
- package/components/{CasinoTournamentsThumbnail-zYhefJ1_.js → CasinoTournamentsThumbnail-Co9p08Wv.js} +1 -1
- package/components/{CasinoTournamentsThumbnail-DU9HLE4D.cjs → CasinoTournamentsThumbnail-CrJ40CSh.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailController-CRzezmPu.cjs → CasinoTournamentsThumbnailController-Cq6mNACM.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailController-DDD5ArFE.js → CasinoTournamentsThumbnailController-Y3QRiL5v.js} +5 -5
- package/components/{CasinoTournamentsThumbnailController-CmkBRABp.js → CasinoTournamentsThumbnailController-_3hlkXv6.js} +5 -5
- package/components/{CasinoTournamentsThumbnailDuration-Dm-htkCW.js → CasinoTournamentsThumbnailDuration-ChCBh4j9.js} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-BHrVYN85.js → CasinoTournamentsThumbnailDuration-Dqd8KbyC.js} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-BEMD3bKM.cjs → CasinoTournamentsThumbnailDuration-DsNTjv3C.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-t0ZbTDnq.js → CasinoTournamentsThumbnailGamesSlider-Bn4nh16L.js} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-D8RrwqTu.cjs → CasinoTournamentsThumbnailGamesSlider-C7R-Ibu_.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-FbfeqM_U.js → CasinoTournamentsThumbnailGamesSlider-EO8q-zQo.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-DsKcbeBA.js → CasinoTournamentsThumbnailPrizes-D3W0vYEA.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-ChVRuO0C.cjs → CasinoTournamentsThumbnailPrizes-DdU80aCm.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-DK71Uz6a.js → CasinoTournamentsThumbnailPrizes-qJYsc_jA.js} +1 -1
- package/es2015/casino-tournaments-controller.cjs +1 -1
- package/es2015/casino-tournaments-controller.js +1 -1
- package/esnext/casino-tournaments-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsController-Cs0Zwt7u.cjs +0 -27
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var In = Object.defineProperty, Ln = Object.defineProperties;
|
|
2
|
+
var Nn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var vr = Object.getOwnPropertySymbols;
|
|
4
|
+
var Mn = Object.prototype.hasOwnProperty, Rn = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ft = (e, t, r) => t in e ? In(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yr = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Mn.call(t, r) && Ft(e, r, t[r]);
|
|
8
|
+
if (vr)
|
|
9
|
+
for (var r of vr(t))
|
|
10
|
+
Rn.call(t, r) && Ft(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var fe = (e, t, r) => (
|
|
12
|
+
}, _r = (e, t) => Ln(e, Nn(t));
|
|
13
|
+
var fe = (e, t, r) => (Ft(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var Le = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
@@ -29,29 +29,29 @@ var Le = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function ce() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function qr(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Er() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function lt(e) {
|
|
39
|
+
e.forEach(qr);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function At(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Zr(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
let
|
|
48
|
-
function
|
|
49
|
-
return e === t ? !0 : (
|
|
47
|
+
let mt;
|
|
48
|
+
function Ss(e, t) {
|
|
49
|
+
return e === t ? !0 : (mt || (mt = document.createElement("a")), mt.href = t, e === mt.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Dn(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Jr(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
@@ -60,23 +60,23 @@ function Xr(e, ...t) {
|
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function Fn(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(Jr(t, r));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
return e &&
|
|
66
|
+
function As(e) {
|
|
67
|
+
return e && At(e.destroy) ? e.destroy : ce;
|
|
68
68
|
}
|
|
69
69
|
function re(e, t) {
|
|
70
70
|
e.appendChild(t);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
const n =
|
|
72
|
+
function Un(e, t, r) {
|
|
73
|
+
const n = Gn(e);
|
|
74
74
|
if (!n.getElementById(t)) {
|
|
75
75
|
const i = z("style");
|
|
76
|
-
i.id = t, i.textContent = r,
|
|
76
|
+
i.id = t, i.textContent = r, jn(n, i);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Gn(e) {
|
|
80
80
|
if (!e)
|
|
81
81
|
return document;
|
|
82
82
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -86,7 +86,7 @@ function Mn(e) {
|
|
|
86
86
|
t
|
|
87
87
|
) : e.ownerDocument;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function jn(e, t) {
|
|
90
90
|
return re(
|
|
91
91
|
/** @type {Document} */
|
|
92
92
|
e.head || e,
|
|
@@ -99,26 +99,26 @@ function de(e, t, r) {
|
|
|
99
99
|
function ne(e) {
|
|
100
100
|
e.parentNode && e.parentNode.removeChild(e);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Hs(e, t) {
|
|
103
103
|
for (let r = 0; r < e.length; r += 1)
|
|
104
104
|
e[r] && e[r].d(t);
|
|
105
105
|
}
|
|
106
106
|
function z(e) {
|
|
107
107
|
return document.createElement(e);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Ps(e) {
|
|
110
110
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
111
111
|
}
|
|
112
112
|
function Ne(e) {
|
|
113
113
|
return document.createTextNode(e);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function qt() {
|
|
116
116
|
return Ne(" ");
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function $n() {
|
|
119
119
|
return Ne("");
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Zt(e, t, r, n) {
|
|
122
122
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
123
123
|
}
|
|
124
124
|
function U(e, t, r) {
|
|
@@ -128,18 +128,18 @@ function w(e, t, r) {
|
|
|
128
128
|
const n = t.toLowerCase();
|
|
129
129
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : U(e, t, r);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function kn(e) {
|
|
132
132
|
return Array.from(e.childNodes);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function ot(e, t) {
|
|
135
135
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
136
136
|
t);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Os(e, t, r, n) {
|
|
139
139
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
140
140
|
}
|
|
141
141
|
let bt;
|
|
142
|
-
function
|
|
142
|
+
function Vn() {
|
|
143
143
|
if (bt === void 0) {
|
|
144
144
|
bt = !1;
|
|
145
145
|
try {
|
|
@@ -150,16 +150,16 @@ function Un() {
|
|
|
150
150
|
}
|
|
151
151
|
return bt;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Bs(e, t) {
|
|
154
154
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
155
155
|
const n = z("iframe");
|
|
156
156
|
n.setAttribute(
|
|
157
157
|
"style",
|
|
158
158
|
"display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
|
|
159
159
|
), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
|
|
160
|
-
const i =
|
|
160
|
+
const i = Vn();
|
|
161
161
|
let o;
|
|
162
|
-
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o =
|
|
162
|
+
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = Zt(
|
|
163
163
|
window,
|
|
164
164
|
"message",
|
|
165
165
|
/** @param {MessageEvent} event */
|
|
@@ -167,15 +167,15 @@ function Ss(e, t) {
|
|
|
167
167
|
s.source === n.contentWindow && t();
|
|
168
168
|
}
|
|
169
169
|
)) : (n.src = "about:blank", n.onload = () => {
|
|
170
|
-
o =
|
|
170
|
+
o = Zt(n.contentWindow, "resize", t), t();
|
|
171
171
|
}), re(e, n), () => {
|
|
172
172
|
(i || o && n.contentWindow) && o(), ne(n);
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function Cs(e, t, r) {
|
|
176
176
|
e.classList.toggle(t, !!r);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function Xn(e) {
|
|
179
179
|
const t = {};
|
|
180
180
|
return e.childNodes.forEach(
|
|
181
181
|
/** @param {Element} node */
|
|
@@ -184,90 +184,90 @@ function Gn(e) {
|
|
|
184
184
|
}
|
|
185
185
|
), t;
|
|
186
186
|
}
|
|
187
|
-
let
|
|
188
|
-
function
|
|
189
|
-
|
|
187
|
+
let st;
|
|
188
|
+
function it(e) {
|
|
189
|
+
st = e;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
if (!
|
|
191
|
+
function zn() {
|
|
192
|
+
if (!st)
|
|
193
193
|
throw new Error("Function called outside component initialization");
|
|
194
|
-
return
|
|
194
|
+
return st;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
|
|
196
|
+
function Wn(e) {
|
|
197
|
+
zn().$$.on_mount.push(e);
|
|
198
198
|
}
|
|
199
|
-
const $e = [],
|
|
199
|
+
const $e = [], Jt = [];
|
|
200
200
|
let ke = [];
|
|
201
|
-
const
|
|
202
|
-
let
|
|
203
|
-
function
|
|
204
|
-
|
|
201
|
+
const xr = [], qn = /* @__PURE__ */ Promise.resolve();
|
|
202
|
+
let Qt = !1;
|
|
203
|
+
function Zn() {
|
|
204
|
+
Qt || (Qt = !0, qn.then(D));
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Yt(e) {
|
|
207
207
|
ke.push(e);
|
|
208
208
|
}
|
|
209
|
-
const
|
|
209
|
+
const Ut = /* @__PURE__ */ new Set();
|
|
210
210
|
let Ge = 0;
|
|
211
|
-
function
|
|
211
|
+
function D() {
|
|
212
212
|
if (Ge !== 0)
|
|
213
213
|
return;
|
|
214
|
-
const e =
|
|
214
|
+
const e = st;
|
|
215
215
|
do {
|
|
216
216
|
try {
|
|
217
217
|
for (; Ge < $e.length; ) {
|
|
218
218
|
const t = $e[Ge];
|
|
219
|
-
Ge++,
|
|
219
|
+
Ge++, it(t), Jn(t.$$);
|
|
220
220
|
}
|
|
221
221
|
} catch (t) {
|
|
222
222
|
throw $e.length = 0, Ge = 0, t;
|
|
223
223
|
}
|
|
224
|
-
for (
|
|
225
|
-
|
|
224
|
+
for (it(null), $e.length = 0, Ge = 0; Jt.length; )
|
|
225
|
+
Jt.pop()();
|
|
226
226
|
for (let t = 0; t < ke.length; t += 1) {
|
|
227
227
|
const r = ke[t];
|
|
228
|
-
|
|
228
|
+
Ut.has(r) || (Ut.add(r), r());
|
|
229
229
|
}
|
|
230
230
|
ke.length = 0;
|
|
231
231
|
} while ($e.length);
|
|
232
|
-
for (;
|
|
233
|
-
|
|
234
|
-
|
|
232
|
+
for (; xr.length; )
|
|
233
|
+
xr.pop()();
|
|
234
|
+
Qt = !1, Ut.clear(), it(e);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Jn(e) {
|
|
237
237
|
if (e.fragment !== null) {
|
|
238
|
-
e.update(),
|
|
238
|
+
e.update(), lt(e.before_update);
|
|
239
239
|
const t = e.dirty;
|
|
240
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
240
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Yt);
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Qn(e) {
|
|
244
244
|
const t = [], r = [];
|
|
245
245
|
ke.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ke = t;
|
|
246
246
|
}
|
|
247
|
-
const
|
|
248
|
-
function
|
|
249
|
-
e && e.i && (
|
|
247
|
+
const Yn = /* @__PURE__ */ new Set();
|
|
248
|
+
function Kn(e, t) {
|
|
249
|
+
e && e.i && (Yn.delete(e), e.i(t));
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function Is(e) {
|
|
252
252
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function ei(e, t, r) {
|
|
255
255
|
const { fragment: n, after_update: i } = e.$$;
|
|
256
|
-
n && n.m(t, r),
|
|
257
|
-
const o = e.$$.on_mount.map(
|
|
258
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
259
|
-
}), i.forEach(
|
|
256
|
+
n && n.m(t, r), Yt(() => {
|
|
257
|
+
const o = e.$$.on_mount.map(qr).filter(At);
|
|
258
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : lt(o), e.$$.on_mount = [];
|
|
259
|
+
}), i.forEach(Yt);
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function ti(e, t) {
|
|
262
262
|
const r = e.$$;
|
|
263
|
-
r.fragment !== null && (
|
|
263
|
+
r.fragment !== null && (Qn(r.after_update), lt(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
264
264
|
}
|
|
265
|
-
function
|
|
266
|
-
e.$$.dirty[0] === -1 && ($e.push(e),
|
|
265
|
+
function ri(e, t) {
|
|
266
|
+
e.$$.dirty[0] === -1 && ($e.push(e), Zn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
269
|
-
const l =
|
|
270
|
-
|
|
268
|
+
function ni(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
269
|
+
const l = st;
|
|
270
|
+
it(e);
|
|
271
271
|
const u = e.$$ = {
|
|
272
272
|
fragment: null,
|
|
273
273
|
ctx: [],
|
|
@@ -275,7 +275,7 @@ function Yn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
275
275
|
props: o,
|
|
276
276
|
update: ce,
|
|
277
277
|
not_equal: i,
|
|
278
|
-
bound:
|
|
278
|
+
bound: Er(),
|
|
279
279
|
// lifecycle
|
|
280
280
|
on_mount: [],
|
|
281
281
|
on_destroy: [],
|
|
@@ -284,28 +284,28 @@ function Yn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
284
284
|
after_update: [],
|
|
285
285
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
286
286
|
// everything else
|
|
287
|
-
callbacks:
|
|
287
|
+
callbacks: Er(),
|
|
288
288
|
dirty: a,
|
|
289
289
|
skip_bound: !1,
|
|
290
290
|
root: t.target || l.$$.root
|
|
291
291
|
};
|
|
292
292
|
s && s(u.root);
|
|
293
293
|
let c = !1;
|
|
294
|
-
if (u.ctx = r ? r(e, t.props || {}, (d,
|
|
295
|
-
const
|
|
296
|
-
return u.ctx && i(u.ctx[d], u.ctx[d] =
|
|
297
|
-
}) : [], u.update(), c = !0,
|
|
294
|
+
if (u.ctx = r ? r(e, t.props || {}, (d, m, ...E) => {
|
|
295
|
+
const B = E.length ? E[0] : m;
|
|
296
|
+
return u.ctx && i(u.ctx[d], u.ctx[d] = B) && (!u.skip_bound && u.bound[d] && u.bound[d](B), c && ri(e, d)), m;
|
|
297
|
+
}) : [], u.update(), c = !0, lt(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
298
298
|
if (t.hydrate) {
|
|
299
|
-
const d =
|
|
299
|
+
const d = kn(t.target);
|
|
300
300
|
u.fragment && u.fragment.l(d), d.forEach(ne);
|
|
301
301
|
} else
|
|
302
302
|
u.fragment && u.fragment.c();
|
|
303
|
-
t.intro &&
|
|
303
|
+
t.intro && Kn(e.$$.fragment), ei(e, t.target, t.anchor), D();
|
|
304
304
|
}
|
|
305
|
-
|
|
305
|
+
it(l);
|
|
306
306
|
}
|
|
307
|
-
let
|
|
308
|
-
typeof HTMLElement == "function" && (
|
|
307
|
+
let Qr;
|
|
308
|
+
typeof HTMLElement == "function" && (Qr = class extends HTMLElement {
|
|
309
309
|
constructor(t, r, n) {
|
|
310
310
|
super();
|
|
311
311
|
/** The Svelte component constructor */
|
|
@@ -366,7 +366,7 @@ typeof HTMLElement == "function" && (zr = class extends HTMLElement {
|
|
|
366
366
|
};
|
|
367
367
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
368
368
|
return;
|
|
369
|
-
const r = {}, n =
|
|
369
|
+
const r = {}, n = Xn(this);
|
|
370
370
|
for (const o of this.$$s)
|
|
371
371
|
o in n && (r[o] = [t(o)]);
|
|
372
372
|
for (const o of this.attributes) {
|
|
@@ -377,7 +377,7 @@ typeof HTMLElement == "function" && (zr = class extends HTMLElement {
|
|
|
377
377
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
378
378
|
this.$$c = new this.$$ctor({
|
|
379
379
|
target: this.shadowRoot || this,
|
|
380
|
-
props:
|
|
380
|
+
props: _r(yr({}, this.$$d), {
|
|
381
381
|
$$slots: r,
|
|
382
382
|
$$scope: {
|
|
383
383
|
ctx: []
|
|
@@ -455,8 +455,8 @@ function yt(e, t, r, n) {
|
|
|
455
455
|
return t;
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
|
-
function
|
|
459
|
-
let s = class extends
|
|
458
|
+
function ii(e, t, r, n, i, o) {
|
|
459
|
+
let s = class extends Qr {
|
|
460
460
|
constructor() {
|
|
461
461
|
super(e, r, i), this.$$p_d = t;
|
|
462
462
|
}
|
|
@@ -486,7 +486,7 @@ function Kn(e, t, r, n, i, o) {
|
|
|
486
486
|
}), e.element = /** @type {any} */
|
|
487
487
|
s, s;
|
|
488
488
|
}
|
|
489
|
-
class
|
|
489
|
+
class oi {
|
|
490
490
|
constructor() {
|
|
491
491
|
/**
|
|
492
492
|
* ### PRIVATE API
|
|
@@ -507,7 +507,7 @@ class ei {
|
|
|
507
507
|
}
|
|
508
508
|
/** @returns {void} */
|
|
509
509
|
$destroy() {
|
|
510
|
-
|
|
510
|
+
ti(this, 1), this.$destroy = ce;
|
|
511
511
|
}
|
|
512
512
|
/**
|
|
513
513
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -516,7 +516,7 @@ class ei {
|
|
|
516
516
|
* @returns {() => void}
|
|
517
517
|
*/
|
|
518
518
|
$on(t, r) {
|
|
519
|
-
if (!
|
|
519
|
+
if (!At(r))
|
|
520
520
|
return ce;
|
|
521
521
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
522
522
|
return n.push(r), () => {
|
|
@@ -529,11 +529,11 @@ class ei {
|
|
|
529
529
|
* @returns {void}
|
|
530
530
|
*/
|
|
531
531
|
$set(t) {
|
|
532
|
-
this.$$set && !
|
|
532
|
+
this.$$set && !Dn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
const
|
|
536
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
535
|
+
const si = "4";
|
|
536
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(si);
|
|
537
537
|
/*! *****************************************************************************
|
|
538
538
|
Copyright (c) Microsoft Corporation.
|
|
539
539
|
|
|
@@ -548,43 +548,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
548
548
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
549
549
|
PERFORMANCE OF THIS SOFTWARE.
|
|
550
550
|
***************************************************************************** */
|
|
551
|
-
var
|
|
552
|
-
return
|
|
551
|
+
var Kt = function(e, t) {
|
|
552
|
+
return Kt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
553
553
|
r.__proto__ = n;
|
|
554
554
|
} || function(r, n) {
|
|
555
555
|
for (var i in n)
|
|
556
556
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
557
|
-
},
|
|
557
|
+
}, Kt(e, t);
|
|
558
558
|
};
|
|
559
|
-
function
|
|
559
|
+
function ht(e, t) {
|
|
560
560
|
if (typeof t != "function" && t !== null)
|
|
561
561
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
562
|
-
|
|
562
|
+
Kt(e, t);
|
|
563
563
|
function r() {
|
|
564
564
|
this.constructor = e;
|
|
565
565
|
}
|
|
566
566
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
567
567
|
}
|
|
568
|
-
|
|
569
|
-
return P = Object.assign || function(t) {
|
|
570
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
571
|
-
r = arguments[n];
|
|
572
|
-
for (var o in r)
|
|
573
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
574
|
-
}
|
|
575
|
-
return t;
|
|
576
|
-
}, P.apply(this, arguments);
|
|
577
|
-
};
|
|
578
|
-
function ri(e, t) {
|
|
579
|
-
var r = {};
|
|
580
|
-
for (var n in e)
|
|
581
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
582
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
583
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
584
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
585
|
-
return r;
|
|
586
|
-
}
|
|
587
|
-
function Qt(e) {
|
|
568
|
+
function er(e) {
|
|
588
569
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
589
570
|
if (r)
|
|
590
571
|
return r.call(e);
|
|
@@ -596,7 +577,7 @@ function Qt(e) {
|
|
|
596
577
|
};
|
|
597
578
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
598
579
|
}
|
|
599
|
-
function
|
|
580
|
+
function tr(e, t) {
|
|
600
581
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
601
582
|
if (!r)
|
|
602
583
|
return e;
|
|
@@ -616,22 +597,22 @@ function Yt(e, t) {
|
|
|
616
597
|
}
|
|
617
598
|
return o;
|
|
618
599
|
}
|
|
619
|
-
function
|
|
620
|
-
if (
|
|
600
|
+
function rr(e, t, r) {
|
|
601
|
+
if (arguments.length === 2)
|
|
621
602
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
622
603
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
623
604
|
return e.concat(o || t);
|
|
624
605
|
}
|
|
625
|
-
function
|
|
606
|
+
function we(e) {
|
|
626
607
|
return typeof e == "function";
|
|
627
608
|
}
|
|
628
|
-
function
|
|
609
|
+
function Yr(e) {
|
|
629
610
|
var t = function(n) {
|
|
630
611
|
Error.call(n), n.stack = new Error().stack;
|
|
631
612
|
}, r = e(t);
|
|
632
613
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
633
614
|
}
|
|
634
|
-
var
|
|
615
|
+
var Gt = Yr(function(e) {
|
|
635
616
|
return function(r) {
|
|
636
617
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
637
618
|
` + r.map(function(n, i) {
|
|
@@ -640,13 +621,13 @@ var Ft = Wr(function(e) {
|
|
|
640
621
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
641
622
|
};
|
|
642
623
|
});
|
|
643
|
-
function
|
|
624
|
+
function nr(e, t) {
|
|
644
625
|
if (e) {
|
|
645
626
|
var r = e.indexOf(t);
|
|
646
627
|
0 <= r && e.splice(r, 1);
|
|
647
628
|
}
|
|
648
629
|
}
|
|
649
|
-
var
|
|
630
|
+
var Ht = function() {
|
|
650
631
|
function e(t) {
|
|
651
632
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
652
633
|
}
|
|
@@ -658,12 +639,12 @@ var At = function() {
|
|
|
658
639
|
if (s)
|
|
659
640
|
if (this._parentage = null, Array.isArray(s))
|
|
660
641
|
try {
|
|
661
|
-
for (var a =
|
|
642
|
+
for (var a = er(s), l = a.next(); !l.done; l = a.next()) {
|
|
662
643
|
var u = l.value;
|
|
663
644
|
u.remove(this);
|
|
664
645
|
}
|
|
665
|
-
} catch (
|
|
666
|
-
t = { error:
|
|
646
|
+
} catch (P) {
|
|
647
|
+
t = { error: P };
|
|
667
648
|
} finally {
|
|
668
649
|
try {
|
|
669
650
|
l && !l.done && (r = a.return) && r.call(a);
|
|
@@ -675,29 +656,29 @@ var At = function() {
|
|
|
675
656
|
else
|
|
676
657
|
s.remove(this);
|
|
677
658
|
var c = this.initialTeardown;
|
|
678
|
-
if (
|
|
659
|
+
if (we(c))
|
|
679
660
|
try {
|
|
680
661
|
c();
|
|
681
|
-
} catch (
|
|
682
|
-
o =
|
|
662
|
+
} catch (P) {
|
|
663
|
+
o = P instanceof Gt ? P.errors : [P];
|
|
683
664
|
}
|
|
684
665
|
var d = this._finalizers;
|
|
685
666
|
if (d) {
|
|
686
667
|
this._finalizers = null;
|
|
687
668
|
try {
|
|
688
|
-
for (var
|
|
689
|
-
var
|
|
669
|
+
for (var m = er(d), E = m.next(); !E.done; E = m.next()) {
|
|
670
|
+
var B = E.value;
|
|
690
671
|
try {
|
|
691
|
-
|
|
692
|
-
} catch (
|
|
693
|
-
o = o != null ? o : [],
|
|
672
|
+
wr(B);
|
|
673
|
+
} catch (P) {
|
|
674
|
+
o = o != null ? o : [], P instanceof Gt ? o = rr(rr([], tr(o)), tr(P.errors)) : o.push(P);
|
|
694
675
|
}
|
|
695
676
|
}
|
|
696
|
-
} catch (
|
|
697
|
-
n = { error:
|
|
677
|
+
} catch (P) {
|
|
678
|
+
n = { error: P };
|
|
698
679
|
} finally {
|
|
699
680
|
try {
|
|
700
|
-
|
|
681
|
+
E && !E.done && (i = m.return) && i.call(m);
|
|
701
682
|
} finally {
|
|
702
683
|
if (n)
|
|
703
684
|
throw n.error;
|
|
@@ -705,13 +686,13 @@ var At = function() {
|
|
|
705
686
|
}
|
|
706
687
|
}
|
|
707
688
|
if (o)
|
|
708
|
-
throw new
|
|
689
|
+
throw new Gt(o);
|
|
709
690
|
}
|
|
710
691
|
}, e.prototype.add = function(t) {
|
|
711
692
|
var r;
|
|
712
693
|
if (t && t !== this)
|
|
713
694
|
if (this.closed)
|
|
714
|
-
|
|
695
|
+
wr(t);
|
|
715
696
|
else {
|
|
716
697
|
if (t instanceof e) {
|
|
717
698
|
if (t.closed || t._hasParent(this))
|
|
@@ -728,52 +709,52 @@ var At = function() {
|
|
|
728
709
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
729
710
|
}, e.prototype._removeParent = function(t) {
|
|
730
711
|
var r = this._parentage;
|
|
731
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
712
|
+
r === t ? this._parentage = null : Array.isArray(r) && nr(r, t);
|
|
732
713
|
}, e.prototype.remove = function(t) {
|
|
733
714
|
var r = this._finalizers;
|
|
734
|
-
r &&
|
|
715
|
+
r && nr(r, t), t instanceof e && t._removeParent(this);
|
|
735
716
|
}, e.EMPTY = function() {
|
|
736
717
|
var t = new e();
|
|
737
718
|
return t.closed = !0, t;
|
|
738
719
|
}(), e;
|
|
739
|
-
}(),
|
|
740
|
-
function
|
|
741
|
-
return e instanceof
|
|
720
|
+
}(), Kr = Ht.EMPTY;
|
|
721
|
+
function en(e) {
|
|
722
|
+
return e instanceof Ht || e && "closed" in e && we(e.remove) && we(e.add) && we(e.unsubscribe);
|
|
742
723
|
}
|
|
743
|
-
function
|
|
744
|
-
|
|
724
|
+
function wr(e) {
|
|
725
|
+
we(e) ? e() : e.unsubscribe();
|
|
745
726
|
}
|
|
746
|
-
var
|
|
727
|
+
var ai = {
|
|
747
728
|
Promise: void 0
|
|
748
|
-
},
|
|
729
|
+
}, ui = {
|
|
749
730
|
setTimeout: function(e, t) {
|
|
750
731
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
751
732
|
r[n - 2] = arguments[n];
|
|
752
|
-
return setTimeout.apply(void 0,
|
|
733
|
+
return setTimeout.apply(void 0, rr([e, t], tr(r)));
|
|
753
734
|
},
|
|
754
735
|
clearTimeout: function(e) {
|
|
755
736
|
return clearTimeout(e);
|
|
756
737
|
},
|
|
757
738
|
delegate: void 0
|
|
758
739
|
};
|
|
759
|
-
function
|
|
760
|
-
|
|
740
|
+
function li(e) {
|
|
741
|
+
ui.setTimeout(function() {
|
|
761
742
|
throw e;
|
|
762
743
|
});
|
|
763
744
|
}
|
|
764
|
-
function
|
|
745
|
+
function Tr() {
|
|
765
746
|
}
|
|
766
|
-
function
|
|
747
|
+
function _t(e) {
|
|
767
748
|
e();
|
|
768
749
|
}
|
|
769
|
-
var
|
|
770
|
-
|
|
750
|
+
var tn = function(e) {
|
|
751
|
+
ht(t, e);
|
|
771
752
|
function t(r) {
|
|
772
753
|
var n = e.call(this) || this;
|
|
773
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
754
|
+
return n.isStopped = !1, r ? (n.destination = r, en(r) && r.add(n)) : n.destination = ci, n;
|
|
774
755
|
}
|
|
775
756
|
return t.create = function(r, n, i) {
|
|
776
|
-
return new
|
|
757
|
+
return new ir(r, n, i);
|
|
777
758
|
}, t.prototype.next = function(r) {
|
|
778
759
|
this.isStopped || this._next(r);
|
|
779
760
|
}, t.prototype.error = function(r) {
|
|
@@ -797,7 +778,7 @@ var Jr = function(e) {
|
|
|
797
778
|
this.unsubscribe();
|
|
798
779
|
}
|
|
799
780
|
}, t;
|
|
800
|
-
}(
|
|
781
|
+
}(Ht), hi = function() {
|
|
801
782
|
function e(t) {
|
|
802
783
|
this.partialObserver = t;
|
|
803
784
|
}
|
|
@@ -828,43 +809,43 @@ var Jr = function(e) {
|
|
|
828
809
|
gt(r);
|
|
829
810
|
}
|
|
830
811
|
}, e;
|
|
831
|
-
}(),
|
|
832
|
-
|
|
812
|
+
}(), ir = function(e) {
|
|
813
|
+
ht(t, e);
|
|
833
814
|
function t(r, n, i) {
|
|
834
815
|
var o = e.call(this) || this, s;
|
|
835
|
-
return
|
|
816
|
+
return we(r) || !r ? s = {
|
|
836
817
|
next: r != null ? r : void 0,
|
|
837
818
|
error: n != null ? n : void 0,
|
|
838
819
|
complete: i != null ? i : void 0
|
|
839
|
-
} : s = r, o.destination = new
|
|
820
|
+
} : s = r, o.destination = new hi(s), o;
|
|
840
821
|
}
|
|
841
822
|
return t;
|
|
842
|
-
}(
|
|
823
|
+
}(tn);
|
|
843
824
|
function gt(e) {
|
|
844
|
-
|
|
825
|
+
li(e);
|
|
845
826
|
}
|
|
846
|
-
function
|
|
827
|
+
function fi(e) {
|
|
847
828
|
throw e;
|
|
848
829
|
}
|
|
849
|
-
var
|
|
830
|
+
var ci = {
|
|
850
831
|
closed: !0,
|
|
851
|
-
next:
|
|
852
|
-
error:
|
|
853
|
-
complete:
|
|
854
|
-
},
|
|
832
|
+
next: Tr,
|
|
833
|
+
error: fi,
|
|
834
|
+
complete: Tr
|
|
835
|
+
}, di = function() {
|
|
855
836
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
856
837
|
}();
|
|
857
|
-
function
|
|
838
|
+
function pi(e) {
|
|
858
839
|
return e;
|
|
859
840
|
}
|
|
860
|
-
function
|
|
861
|
-
return e.length === 0 ?
|
|
841
|
+
function mi(e) {
|
|
842
|
+
return e.length === 0 ? pi : e.length === 1 ? e[0] : function(r) {
|
|
862
843
|
return e.reduce(function(n, i) {
|
|
863
844
|
return i(n);
|
|
864
845
|
}, r);
|
|
865
846
|
};
|
|
866
847
|
}
|
|
867
|
-
var
|
|
848
|
+
var Sr = function() {
|
|
868
849
|
function e(t) {
|
|
869
850
|
t && (this._subscribe = t);
|
|
870
851
|
}
|
|
@@ -872,8 +853,8 @@ var Er = function() {
|
|
|
872
853
|
var r = new e();
|
|
873
854
|
return r.source = this, r.operator = t, r;
|
|
874
855
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
875
|
-
var i = this, o =
|
|
876
|
-
return
|
|
856
|
+
var i = this, o = gi(t) ? t : new ir(t, r, n);
|
|
857
|
+
return _t(function() {
|
|
877
858
|
var s = i, a = s.operator, l = s.source;
|
|
878
859
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
879
860
|
}), o;
|
|
@@ -885,8 +866,8 @@ var Er = function() {
|
|
|
885
866
|
}
|
|
886
867
|
}, e.prototype.forEach = function(t, r) {
|
|
887
868
|
var n = this;
|
|
888
|
-
return r =
|
|
889
|
-
var s = new
|
|
869
|
+
return r = Ar(r), new r(function(i, o) {
|
|
870
|
+
var s = new ir({
|
|
890
871
|
next: function(a) {
|
|
891
872
|
try {
|
|
892
873
|
t(a);
|
|
@@ -902,15 +883,15 @@ var Er = function() {
|
|
|
902
883
|
}, e.prototype._subscribe = function(t) {
|
|
903
884
|
var r;
|
|
904
885
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
905
|
-
}, e.prototype[
|
|
886
|
+
}, e.prototype[di] = function() {
|
|
906
887
|
return this;
|
|
907
888
|
}, e.prototype.pipe = function() {
|
|
908
889
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
909
890
|
t[r] = arguments[r];
|
|
910
|
-
return
|
|
891
|
+
return mi(t)(this);
|
|
911
892
|
}, e.prototype.toPromise = function(t) {
|
|
912
893
|
var r = this;
|
|
913
|
-
return t =
|
|
894
|
+
return t = Ar(t), new t(function(n, i) {
|
|
914
895
|
var o;
|
|
915
896
|
r.subscribe(function(s) {
|
|
916
897
|
return o = s;
|
|
@@ -924,40 +905,40 @@ var Er = function() {
|
|
|
924
905
|
return new e(t);
|
|
925
906
|
}, e;
|
|
926
907
|
}();
|
|
927
|
-
function
|
|
908
|
+
function Ar(e) {
|
|
928
909
|
var t;
|
|
929
|
-
return (t = e != null ? e :
|
|
910
|
+
return (t = e != null ? e : ai.Promise) !== null && t !== void 0 ? t : Promise;
|
|
930
911
|
}
|
|
931
|
-
function
|
|
932
|
-
return e &&
|
|
912
|
+
function bi(e) {
|
|
913
|
+
return e && we(e.next) && we(e.error) && we(e.complete);
|
|
933
914
|
}
|
|
934
|
-
function
|
|
935
|
-
return e && e instanceof
|
|
915
|
+
function gi(e) {
|
|
916
|
+
return e && e instanceof tn || bi(e) && en(e);
|
|
936
917
|
}
|
|
937
|
-
var
|
|
918
|
+
var vi = Yr(function(e) {
|
|
938
919
|
return function() {
|
|
939
920
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
940
921
|
};
|
|
941
|
-
}),
|
|
942
|
-
|
|
922
|
+
}), rn = function(e) {
|
|
923
|
+
ht(t, e);
|
|
943
924
|
function t() {
|
|
944
925
|
var r = e.call(this) || this;
|
|
945
926
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
946
927
|
}
|
|
947
928
|
return t.prototype.lift = function(r) {
|
|
948
|
-
var n = new
|
|
929
|
+
var n = new Hr(this, this);
|
|
949
930
|
return n.operator = r, n;
|
|
950
931
|
}, t.prototype._throwIfClosed = function() {
|
|
951
932
|
if (this.closed)
|
|
952
|
-
throw new
|
|
933
|
+
throw new vi();
|
|
953
934
|
}, t.prototype.next = function(r) {
|
|
954
935
|
var n = this;
|
|
955
|
-
|
|
936
|
+
_t(function() {
|
|
956
937
|
var i, o;
|
|
957
938
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
958
939
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
959
940
|
try {
|
|
960
|
-
for (var s =
|
|
941
|
+
for (var s = er(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
961
942
|
var l = a.value;
|
|
962
943
|
l.next(r);
|
|
963
944
|
}
|
|
@@ -975,7 +956,7 @@ var mi = Wr(function(e) {
|
|
|
975
956
|
});
|
|
976
957
|
}, t.prototype.error = function(r) {
|
|
977
958
|
var n = this;
|
|
978
|
-
|
|
959
|
+
_t(function() {
|
|
979
960
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
980
961
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
981
962
|
for (var i = n.observers; i.length; )
|
|
@@ -984,7 +965,7 @@ var mi = Wr(function(e) {
|
|
|
984
965
|
});
|
|
985
966
|
}, t.prototype.complete = function() {
|
|
986
967
|
var r = this;
|
|
987
|
-
|
|
968
|
+
_t(function() {
|
|
988
969
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
989
970
|
r.isStopped = !0;
|
|
990
971
|
for (var n = r.observers; n.length; )
|
|
@@ -1006,20 +987,20 @@ var mi = Wr(function(e) {
|
|
|
1006
987
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1007
988
|
}, t.prototype._innerSubscribe = function(r) {
|
|
1008
989
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
1009
|
-
return o || s ?
|
|
1010
|
-
n.currentObservers = null,
|
|
990
|
+
return o || s ? Kr : (this.currentObservers = null, a.push(r), new Ht(function() {
|
|
991
|
+
n.currentObservers = null, nr(a, r);
|
|
1011
992
|
}));
|
|
1012
993
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1013
994
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
1014
995
|
i ? r.error(o) : s && r.complete();
|
|
1015
996
|
}, t.prototype.asObservable = function() {
|
|
1016
|
-
var r = new
|
|
997
|
+
var r = new Sr();
|
|
1017
998
|
return r.source = this, r;
|
|
1018
999
|
}, t.create = function(r, n) {
|
|
1019
|
-
return new
|
|
1000
|
+
return new Hr(r, n);
|
|
1020
1001
|
}, t;
|
|
1021
|
-
}(
|
|
1022
|
-
|
|
1002
|
+
}(Sr), Hr = function(e) {
|
|
1003
|
+
ht(t, e);
|
|
1023
1004
|
function t(r, n) {
|
|
1024
1005
|
var i = e.call(this) || this;
|
|
1025
1006
|
return i.destination = r, i.source = n, i;
|
|
@@ -1035,17 +1016,17 @@ var mi = Wr(function(e) {
|
|
|
1035
1016
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1036
1017
|
}, t.prototype._subscribe = function(r) {
|
|
1037
1018
|
var n, i;
|
|
1038
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1019
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Kr;
|
|
1039
1020
|
}, t;
|
|
1040
|
-
}(
|
|
1021
|
+
}(rn), nn = {
|
|
1041
1022
|
now: function() {
|
|
1042
|
-
return (
|
|
1023
|
+
return (nn.delegate || Date).now();
|
|
1043
1024
|
},
|
|
1044
1025
|
delegate: void 0
|
|
1045
|
-
},
|
|
1046
|
-
|
|
1026
|
+
}, yi = function(e) {
|
|
1027
|
+
ht(t, e);
|
|
1047
1028
|
function t(r, n, i) {
|
|
1048
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1029
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = nn);
|
|
1049
1030
|
var o = e.call(this) || this;
|
|
1050
1031
|
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;
|
|
1051
1032
|
}
|
|
@@ -1065,24 +1046,24 @@ var mi = Wr(function(e) {
|
|
|
1065
1046
|
u && o.splice(0, u + 1);
|
|
1066
1047
|
}
|
|
1067
1048
|
}, t;
|
|
1068
|
-
}(
|
|
1069
|
-
const
|
|
1070
|
-
if (
|
|
1071
|
-
const r = new
|
|
1072
|
-
|
|
1049
|
+
}(rn);
|
|
1050
|
+
const Pr = [], Or = {}, _i = (e, t = 0) => {
|
|
1051
|
+
if (Pr.indexOf(e) == -1) {
|
|
1052
|
+
const r = new yi(t);
|
|
1053
|
+
Or[e] = r, Pr.push(e);
|
|
1073
1054
|
}
|
|
1074
|
-
return
|
|
1055
|
+
return Or[e];
|
|
1075
1056
|
}, je = [];
|
|
1076
|
-
function
|
|
1057
|
+
function Ei(e, t) {
|
|
1077
1058
|
return {
|
|
1078
|
-
subscribe:
|
|
1059
|
+
subscribe: Pt(e, t).subscribe
|
|
1079
1060
|
};
|
|
1080
1061
|
}
|
|
1081
|
-
function
|
|
1062
|
+
function Pt(e, t = ce) {
|
|
1082
1063
|
let r;
|
|
1083
1064
|
const n = /* @__PURE__ */ new Set();
|
|
1084
1065
|
function i(a) {
|
|
1085
|
-
if (
|
|
1066
|
+
if (Zr(e, a) && (e = a, r)) {
|
|
1086
1067
|
const l = !je.length;
|
|
1087
1068
|
for (const u of n)
|
|
1088
1069
|
u[1](), je.push(u, e);
|
|
@@ -1104,143 +1085,185 @@ function Ht(e, t = ce) {
|
|
|
1104
1085
|
}
|
|
1105
1086
|
return { set: i, update: o, subscribe: s };
|
|
1106
1087
|
}
|
|
1107
|
-
function
|
|
1088
|
+
function qe(e, t, r) {
|
|
1108
1089
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1109
1090
|
if (!i.every(Boolean))
|
|
1110
1091
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1111
1092
|
const o = t.length < 2;
|
|
1112
|
-
return
|
|
1093
|
+
return Ei(r, (s, a) => {
|
|
1113
1094
|
let l = !1;
|
|
1114
1095
|
const u = [];
|
|
1115
1096
|
let c = 0, d = ce;
|
|
1116
|
-
const
|
|
1097
|
+
const m = () => {
|
|
1117
1098
|
if (c)
|
|
1118
1099
|
return;
|
|
1119
1100
|
d();
|
|
1120
|
-
const
|
|
1121
|
-
o ? s(
|
|
1122
|
-
},
|
|
1123
|
-
(
|
|
1124
|
-
|
|
1101
|
+
const B = t(n ? u[0] : u, s, a);
|
|
1102
|
+
o ? s(B) : d = At(B) ? B : ce;
|
|
1103
|
+
}, E = i.map(
|
|
1104
|
+
(B, P) => Jr(
|
|
1105
|
+
B,
|
|
1125
1106
|
(ee) => {
|
|
1126
|
-
u[
|
|
1107
|
+
u[P] = ee, c &= ~(1 << P), l && m();
|
|
1127
1108
|
},
|
|
1128
1109
|
() => {
|
|
1129
|
-
c |= 1 <<
|
|
1110
|
+
c |= 1 << P;
|
|
1130
1111
|
}
|
|
1131
1112
|
)
|
|
1132
1113
|
);
|
|
1133
|
-
return l = !0,
|
|
1134
|
-
|
|
1114
|
+
return l = !0, m(), function() {
|
|
1115
|
+
lt(E), d(), l = !1;
|
|
1135
1116
|
};
|
|
1136
1117
|
});
|
|
1137
1118
|
}
|
|
1138
|
-
var
|
|
1139
|
-
function
|
|
1119
|
+
var xi = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
1120
|
+
function wi(e) {
|
|
1140
1121
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1141
1122
|
}
|
|
1142
|
-
var
|
|
1143
|
-
return
|
|
1123
|
+
var Ti = function(t) {
|
|
1124
|
+
return Si(t) && !Ai(t);
|
|
1144
1125
|
};
|
|
1145
|
-
function
|
|
1126
|
+
function Si(e) {
|
|
1146
1127
|
return !!e && typeof e == "object";
|
|
1147
1128
|
}
|
|
1148
|
-
function
|
|
1129
|
+
function Ai(e) {
|
|
1149
1130
|
var t = Object.prototype.toString.call(e);
|
|
1150
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1131
|
+
return t === "[object RegExp]" || t === "[object Date]" || Oi(e);
|
|
1151
1132
|
}
|
|
1152
|
-
var
|
|
1153
|
-
function
|
|
1154
|
-
return e.$$typeof ===
|
|
1133
|
+
var Hi = typeof Symbol == "function" && Symbol.for, Pi = Hi ? Symbol.for("react.element") : 60103;
|
|
1134
|
+
function Oi(e) {
|
|
1135
|
+
return e.$$typeof === Pi;
|
|
1155
1136
|
}
|
|
1156
|
-
function
|
|
1137
|
+
function Bi(e) {
|
|
1157
1138
|
return Array.isArray(e) ? [] : {};
|
|
1158
1139
|
}
|
|
1159
|
-
function
|
|
1160
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1140
|
+
function at(e, t) {
|
|
1141
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ve(Bi(e), e, t) : e;
|
|
1161
1142
|
}
|
|
1162
|
-
function
|
|
1143
|
+
function Ci(e, t, r) {
|
|
1163
1144
|
return e.concat(t).map(function(n) {
|
|
1164
|
-
return
|
|
1145
|
+
return at(n, r);
|
|
1165
1146
|
});
|
|
1166
1147
|
}
|
|
1167
|
-
function
|
|
1148
|
+
function Ii(e, t) {
|
|
1168
1149
|
if (!t.customMerge)
|
|
1169
|
-
return
|
|
1150
|
+
return Ve;
|
|
1170
1151
|
var r = t.customMerge(e);
|
|
1171
|
-
return typeof r == "function" ? r :
|
|
1152
|
+
return typeof r == "function" ? r : Ve;
|
|
1172
1153
|
}
|
|
1173
|
-
function
|
|
1154
|
+
function Li(e) {
|
|
1174
1155
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1175
1156
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1176
1157
|
}) : [];
|
|
1177
1158
|
}
|
|
1178
|
-
function
|
|
1179
|
-
return Object.keys(e).concat(
|
|
1159
|
+
function Br(e) {
|
|
1160
|
+
return Object.keys(e).concat(Li(e));
|
|
1180
1161
|
}
|
|
1181
|
-
function
|
|
1162
|
+
function on(e, t) {
|
|
1182
1163
|
try {
|
|
1183
1164
|
return t in e;
|
|
1184
1165
|
} catch (r) {
|
|
1185
1166
|
return !1;
|
|
1186
1167
|
}
|
|
1187
1168
|
}
|
|
1188
|
-
function
|
|
1189
|
-
return
|
|
1169
|
+
function Ni(e, t) {
|
|
1170
|
+
return on(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1190
1171
|
}
|
|
1191
|
-
function
|
|
1172
|
+
function Mi(e, t, r) {
|
|
1192
1173
|
var n = {};
|
|
1193
|
-
return r.isMergeableObject(e) &&
|
|
1194
|
-
n[i] =
|
|
1195
|
-
}),
|
|
1196
|
-
|
|
1174
|
+
return r.isMergeableObject(e) && Br(e).forEach(function(i) {
|
|
1175
|
+
n[i] = at(e[i], r);
|
|
1176
|
+
}), Br(t).forEach(function(i) {
|
|
1177
|
+
Ni(e, i) || (on(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ii(i, r)(e[i], t[i], r) : n[i] = at(t[i], r));
|
|
1197
1178
|
}), n;
|
|
1198
1179
|
}
|
|
1199
|
-
function
|
|
1200
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1180
|
+
function Ve(e, t, r) {
|
|
1181
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Ci, r.isMergeableObject = r.isMergeableObject || Ti, r.cloneUnlessOtherwiseSpecified = at;
|
|
1201
1182
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1202
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1183
|
+
return o ? n ? r.arrayMerge(e, t, r) : Mi(e, t, r) : at(t, r);
|
|
1203
1184
|
}
|
|
1204
|
-
|
|
1185
|
+
Ve.all = function(t, r) {
|
|
1205
1186
|
if (!Array.isArray(t))
|
|
1206
1187
|
throw new Error("first argument should be an array");
|
|
1207
1188
|
return t.reduce(function(n, i) {
|
|
1208
|
-
return
|
|
1189
|
+
return Ve(n, i, r);
|
|
1209
1190
|
}, {});
|
|
1210
1191
|
};
|
|
1211
|
-
var
|
|
1212
|
-
const
|
|
1213
|
-
function
|
|
1214
|
-
|
|
1192
|
+
var Ri = Ve, Di = Ri;
|
|
1193
|
+
const Fi = /* @__PURE__ */ wi(Di);
|
|
1194
|
+
var or = function(e, t) {
|
|
1195
|
+
return or = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1196
|
+
r.__proto__ = n;
|
|
1197
|
+
} || function(r, n) {
|
|
1198
|
+
for (var i in n)
|
|
1199
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1200
|
+
}, or(e, t);
|
|
1201
|
+
};
|
|
1202
|
+
function Ot(e, t) {
|
|
1203
|
+
if (typeof t != "function" && t !== null)
|
|
1204
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1205
|
+
or(e, t);
|
|
1206
|
+
function r() {
|
|
1207
|
+
this.constructor = e;
|
|
1208
|
+
}
|
|
1209
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1210
|
+
}
|
|
1211
|
+
var ye = function() {
|
|
1212
|
+
return ye = Object.assign || function(t) {
|
|
1213
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1214
|
+
r = arguments[n];
|
|
1215
|
+
for (var o in r)
|
|
1216
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1217
|
+
}
|
|
1218
|
+
return t;
|
|
1219
|
+
}, ye.apply(this, arguments);
|
|
1220
|
+
};
|
|
1221
|
+
function Ui(e, t) {
|
|
1222
|
+
var r = {};
|
|
1223
|
+
for (var n in e)
|
|
1224
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1225
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1226
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1227
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1228
|
+
return r;
|
|
1229
|
+
}
|
|
1230
|
+
function jt(e, t, r) {
|
|
1231
|
+
if (r || arguments.length === 2)
|
|
1232
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1233
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1234
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1235
|
+
}
|
|
1236
|
+
function $t(e, t) {
|
|
1237
|
+
var r = t && t.cache ? t.cache : zi, n = t && t.serializer ? t.serializer : Vi, i = t && t.strategy ? t.strategy : $i;
|
|
1215
1238
|
return i(e, {
|
|
1216
1239
|
cache: r,
|
|
1217
1240
|
serializer: n
|
|
1218
1241
|
});
|
|
1219
1242
|
}
|
|
1220
|
-
function
|
|
1243
|
+
function Gi(e) {
|
|
1221
1244
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1222
1245
|
}
|
|
1223
|
-
function
|
|
1224
|
-
var i =
|
|
1246
|
+
function ji(e, t, r, n) {
|
|
1247
|
+
var i = Gi(n) ? n : r(n), o = t.get(i);
|
|
1225
1248
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1226
1249
|
}
|
|
1227
|
-
function
|
|
1250
|
+
function sn(e, t, r) {
|
|
1228
1251
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1229
1252
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1230
1253
|
}
|
|
1231
|
-
function
|
|
1254
|
+
function an(e, t, r, n, i) {
|
|
1232
1255
|
return r.bind(t, e, n, i);
|
|
1233
1256
|
}
|
|
1234
|
-
function
|
|
1235
|
-
var r = e.length === 1 ?
|
|
1236
|
-
return
|
|
1257
|
+
function $i(e, t) {
|
|
1258
|
+
var r = e.length === 1 ? ji : sn;
|
|
1259
|
+
return an(e, this, r, t.cache.create(), t.serializer);
|
|
1237
1260
|
}
|
|
1238
|
-
function
|
|
1239
|
-
return
|
|
1261
|
+
function ki(e, t) {
|
|
1262
|
+
return an(e, this, sn, t.cache.create(), t.serializer);
|
|
1240
1263
|
}
|
|
1241
|
-
var
|
|
1264
|
+
var Vi = function() {
|
|
1242
1265
|
return JSON.stringify(arguments);
|
|
1243
|
-
},
|
|
1266
|
+
}, Xi = (
|
|
1244
1267
|
/** @class */
|
|
1245
1268
|
function() {
|
|
1246
1269
|
function e() {
|
|
@@ -1252,61 +1275,71 @@ var Ui = function() {
|
|
|
1252
1275
|
this.cache[t] = r;
|
|
1253
1276
|
}, e;
|
|
1254
1277
|
}()
|
|
1255
|
-
),
|
|
1278
|
+
), zi = {
|
|
1256
1279
|
create: function() {
|
|
1257
|
-
return new
|
|
1280
|
+
return new Xi();
|
|
1258
1281
|
}
|
|
1259
|
-
},
|
|
1260
|
-
variadic:
|
|
1261
|
-
},
|
|
1282
|
+
}, kt = {
|
|
1283
|
+
variadic: ki
|
|
1284
|
+
}, wt = function() {
|
|
1285
|
+
return wt = Object.assign || function(t) {
|
|
1286
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1287
|
+
r = arguments[n];
|
|
1288
|
+
for (var o in r)
|
|
1289
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1290
|
+
}
|
|
1291
|
+
return t;
|
|
1292
|
+
}, wt.apply(this, arguments);
|
|
1293
|
+
};
|
|
1294
|
+
var A;
|
|
1262
1295
|
(function(e) {
|
|
1263
1296
|
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";
|
|
1264
1297
|
})(A || (A = {}));
|
|
1265
|
-
var
|
|
1298
|
+
var R;
|
|
1266
1299
|
(function(e) {
|
|
1267
1300
|
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";
|
|
1268
|
-
})(
|
|
1269
|
-
var
|
|
1301
|
+
})(R || (R = {}));
|
|
1302
|
+
var Xe;
|
|
1270
1303
|
(function(e) {
|
|
1271
1304
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1272
|
-
})(
|
|
1273
|
-
function
|
|
1274
|
-
return e.type ===
|
|
1305
|
+
})(Xe || (Xe = {}));
|
|
1306
|
+
function Cr(e) {
|
|
1307
|
+
return e.type === R.literal;
|
|
1275
1308
|
}
|
|
1276
|
-
function
|
|
1277
|
-
return e.type ===
|
|
1309
|
+
function Wi(e) {
|
|
1310
|
+
return e.type === R.argument;
|
|
1278
1311
|
}
|
|
1279
|
-
function
|
|
1280
|
-
return e.type ===
|
|
1312
|
+
function un(e) {
|
|
1313
|
+
return e.type === R.number;
|
|
1281
1314
|
}
|
|
1282
|
-
function
|
|
1283
|
-
return e.type ===
|
|
1315
|
+
function ln(e) {
|
|
1316
|
+
return e.type === R.date;
|
|
1284
1317
|
}
|
|
1285
|
-
function
|
|
1286
|
-
return e.type ===
|
|
1318
|
+
function hn(e) {
|
|
1319
|
+
return e.type === R.time;
|
|
1287
1320
|
}
|
|
1288
|
-
function
|
|
1289
|
-
return e.type ===
|
|
1321
|
+
function fn(e) {
|
|
1322
|
+
return e.type === R.select;
|
|
1290
1323
|
}
|
|
1291
|
-
function
|
|
1292
|
-
return e.type ===
|
|
1324
|
+
function cn(e) {
|
|
1325
|
+
return e.type === R.plural;
|
|
1293
1326
|
}
|
|
1294
|
-
function
|
|
1295
|
-
return e.type ===
|
|
1327
|
+
function qi(e) {
|
|
1328
|
+
return e.type === R.pound;
|
|
1296
1329
|
}
|
|
1297
|
-
function
|
|
1298
|
-
return e.type ===
|
|
1330
|
+
function dn(e) {
|
|
1331
|
+
return e.type === R.tag;
|
|
1299
1332
|
}
|
|
1300
|
-
function
|
|
1301
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1333
|
+
function pn(e) {
|
|
1334
|
+
return !!(e && typeof e == "object" && e.type === Xe.number);
|
|
1302
1335
|
}
|
|
1303
|
-
function
|
|
1304
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1336
|
+
function sr(e) {
|
|
1337
|
+
return !!(e && typeof e == "object" && e.type === Xe.dateTime);
|
|
1305
1338
|
}
|
|
1306
|
-
var
|
|
1307
|
-
function
|
|
1339
|
+
var mn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Zi = /(?:[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;
|
|
1340
|
+
function Ji(e) {
|
|
1308
1341
|
var t = {};
|
|
1309
|
-
return e.replace(
|
|
1342
|
+
return e.replace(Zi, function(r) {
|
|
1310
1343
|
var n = r.length;
|
|
1311
1344
|
switch (r[0]) {
|
|
1312
1345
|
case "G":
|
|
@@ -1395,12 +1428,22 @@ function Xi(e) {
|
|
|
1395
1428
|
return "";
|
|
1396
1429
|
}), t;
|
|
1397
1430
|
}
|
|
1398
|
-
var
|
|
1399
|
-
function
|
|
1431
|
+
var F = function() {
|
|
1432
|
+
return F = Object.assign || function(t) {
|
|
1433
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1434
|
+
r = arguments[n];
|
|
1435
|
+
for (var o in r)
|
|
1436
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1437
|
+
}
|
|
1438
|
+
return t;
|
|
1439
|
+
}, F.apply(this, arguments);
|
|
1440
|
+
};
|
|
1441
|
+
var Qi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1442
|
+
function Yi(e) {
|
|
1400
1443
|
if (e.length === 0)
|
|
1401
1444
|
throw new Error("Number skeleton cannot be empty");
|
|
1402
|
-
for (var t = e.split(
|
|
1403
|
-
return
|
|
1445
|
+
for (var t = e.split(Qi).filter(function(m) {
|
|
1446
|
+
return m.length > 0;
|
|
1404
1447
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1405
1448
|
var o = i[n], s = o.split("/");
|
|
1406
1449
|
if (s.length === 0)
|
|
@@ -1414,17 +1457,17 @@ function Wi(e) {
|
|
|
1414
1457
|
}
|
|
1415
1458
|
return r;
|
|
1416
1459
|
}
|
|
1417
|
-
function
|
|
1460
|
+
function Ki(e) {
|
|
1418
1461
|
return e.replace(/^(.*?)-/, "");
|
|
1419
1462
|
}
|
|
1420
|
-
var
|
|
1421
|
-
function
|
|
1463
|
+
var Ir = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, bn = /^(@+)?(\+|#+)?[rs]?$/g, eo = /(\*)(0+)|(#+)(0+)|(0+)/g, gn = /^(0+)$/;
|
|
1464
|
+
function Lr(e) {
|
|
1422
1465
|
var t = {};
|
|
1423
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1466
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(bn, function(r, n, i) {
|
|
1424
1467
|
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)), "";
|
|
1425
1468
|
}), t;
|
|
1426
1469
|
}
|
|
1427
|
-
function
|
|
1470
|
+
function vn(e) {
|
|
1428
1471
|
switch (e) {
|
|
1429
1472
|
case "sign-auto":
|
|
1430
1473
|
return {
|
|
@@ -1464,7 +1507,7 @@ function dn(e) {
|
|
|
1464
1507
|
};
|
|
1465
1508
|
}
|
|
1466
1509
|
}
|
|
1467
|
-
function
|
|
1510
|
+
function to(e) {
|
|
1468
1511
|
var t;
|
|
1469
1512
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1470
1513
|
notation: "engineering"
|
|
@@ -1472,17 +1515,17 @@ function Ji(e) {
|
|
|
1472
1515
|
notation: "scientific"
|
|
1473
1516
|
}, e = e.slice(1)), t) {
|
|
1474
1517
|
var r = e.slice(0, 2);
|
|
1475
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1518
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !gn.test(e))
|
|
1476
1519
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1477
1520
|
t.minimumIntegerDigits = e.length;
|
|
1478
1521
|
}
|
|
1479
1522
|
return t;
|
|
1480
1523
|
}
|
|
1481
|
-
function
|
|
1482
|
-
var t = {}, r =
|
|
1524
|
+
function Nr(e) {
|
|
1525
|
+
var t = {}, r = vn(e);
|
|
1483
1526
|
return r || t;
|
|
1484
1527
|
}
|
|
1485
|
-
function
|
|
1528
|
+
function ro(e) {
|
|
1486
1529
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1487
1530
|
var i = n[r];
|
|
1488
1531
|
switch (i.stem) {
|
|
@@ -1506,7 +1549,7 @@ function Qi(e) {
|
|
|
1506
1549
|
continue;
|
|
1507
1550
|
case "measure-unit":
|
|
1508
1551
|
case "unit":
|
|
1509
|
-
t.style = "unit", t.unit =
|
|
1552
|
+
t.style = "unit", t.unit = Ki(i.options[0]);
|
|
1510
1553
|
continue;
|
|
1511
1554
|
case "compact-short":
|
|
1512
1555
|
case "K":
|
|
@@ -1517,13 +1560,13 @@ function Qi(e) {
|
|
|
1517
1560
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1518
1561
|
continue;
|
|
1519
1562
|
case "scientific":
|
|
1520
|
-
t =
|
|
1521
|
-
return
|
|
1563
|
+
t = F(F(F({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1564
|
+
return F(F({}, l), Nr(u));
|
|
1522
1565
|
}, {}));
|
|
1523
1566
|
continue;
|
|
1524
1567
|
case "engineering":
|
|
1525
|
-
t =
|
|
1526
|
-
return
|
|
1568
|
+
t = F(F(F({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1569
|
+
return F(F({}, l), Nr(u));
|
|
1527
1570
|
}, {}));
|
|
1528
1571
|
continue;
|
|
1529
1572
|
case "notation-simple":
|
|
@@ -1568,41 +1611,41 @@ function Qi(e) {
|
|
|
1568
1611
|
case "integer-width":
|
|
1569
1612
|
if (i.options.length > 1)
|
|
1570
1613
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1571
|
-
i.options[0].replace(
|
|
1614
|
+
i.options[0].replace(eo, function(l, u, c, d, m, E) {
|
|
1572
1615
|
if (u)
|
|
1573
1616
|
t.minimumIntegerDigits = c.length;
|
|
1574
1617
|
else {
|
|
1575
|
-
if (d &&
|
|
1618
|
+
if (d && m)
|
|
1576
1619
|
throw new Error("We currently do not support maximum integer digits");
|
|
1577
|
-
if (
|
|
1620
|
+
if (E)
|
|
1578
1621
|
throw new Error("We currently do not support exact integer digits");
|
|
1579
1622
|
}
|
|
1580
1623
|
return "";
|
|
1581
1624
|
});
|
|
1582
1625
|
continue;
|
|
1583
1626
|
}
|
|
1584
|
-
if (
|
|
1627
|
+
if (gn.test(i.stem)) {
|
|
1585
1628
|
t.minimumIntegerDigits = i.stem.length;
|
|
1586
1629
|
continue;
|
|
1587
1630
|
}
|
|
1588
|
-
if (
|
|
1631
|
+
if (Ir.test(i.stem)) {
|
|
1589
1632
|
if (i.options.length > 1)
|
|
1590
1633
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1591
|
-
i.stem.replace(
|
|
1592
|
-
return c === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length :
|
|
1634
|
+
i.stem.replace(Ir, function(l, u, c, d, m, E) {
|
|
1635
|
+
return c === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : m && E ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + E.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1593
1636
|
});
|
|
1594
1637
|
var o = i.options[0];
|
|
1595
|
-
o === "w" ? t =
|
|
1638
|
+
o === "w" ? t = F(F({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = F(F({}, t), Lr(o)));
|
|
1596
1639
|
continue;
|
|
1597
1640
|
}
|
|
1598
|
-
if (
|
|
1599
|
-
t =
|
|
1641
|
+
if (bn.test(i.stem)) {
|
|
1642
|
+
t = F(F({}, t), Lr(i.stem));
|
|
1600
1643
|
continue;
|
|
1601
1644
|
}
|
|
1602
|
-
var s =
|
|
1603
|
-
s && (t =
|
|
1604
|
-
var a =
|
|
1605
|
-
a && (t =
|
|
1645
|
+
var s = vn(i.stem);
|
|
1646
|
+
s && (t = F(F({}, t), s));
|
|
1647
|
+
var a = to(i.stem);
|
|
1648
|
+
a && (t = F(F({}, t), a));
|
|
1606
1649
|
}
|
|
1607
1650
|
return t;
|
|
1608
1651
|
}
|
|
@@ -3021,13 +3064,13 @@ var vt = {
|
|
|
3021
3064
|
"h"
|
|
3022
3065
|
]
|
|
3023
3066
|
};
|
|
3024
|
-
function
|
|
3067
|
+
function no(e, t) {
|
|
3025
3068
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3026
3069
|
var i = e.charAt(n);
|
|
3027
3070
|
if (i === "j") {
|
|
3028
3071
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3029
3072
|
o++, n++;
|
|
3030
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3073
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = io(t);
|
|
3031
3074
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3032
3075
|
r += l;
|
|
3033
3076
|
for (; s-- > 0; )
|
|
@@ -3037,7 +3080,7 @@ function Yi(e, t) {
|
|
|
3037
3080
|
}
|
|
3038
3081
|
return r;
|
|
3039
3082
|
}
|
|
3040
|
-
function
|
|
3083
|
+
function io(e) {
|
|
3041
3084
|
var t = e.hourCycle;
|
|
3042
3085
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3043
3086
|
e.hourCycles && // @ts-ignore
|
|
@@ -3059,20 +3102,20 @@ function Ki(e) {
|
|
|
3059
3102
|
var i = vt[n || ""] || vt[r || ""] || vt["".concat(r, "-001")] || vt["001"];
|
|
3060
3103
|
return i[0];
|
|
3061
3104
|
}
|
|
3062
|
-
var
|
|
3105
|
+
var Vt, oo = new RegExp("^".concat(mn.source, "*")), so = new RegExp("".concat(mn.source, "*$"));
|
|
3063
3106
|
function H(e, t) {
|
|
3064
3107
|
return { start: e, end: t };
|
|
3065
3108
|
}
|
|
3066
|
-
var
|
|
3109
|
+
var ao = !!String.prototype.startsWith && "_a".startsWith("a", 1), uo = !!String.fromCodePoint, lo = !!Object.fromEntries, ho = !!String.prototype.codePointAt, fo = !!String.prototype.trimStart, co = !!String.prototype.trimEnd, po = !!Number.isSafeInteger, mo = po ? Number.isSafeInteger : function(e) {
|
|
3067
3110
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3068
|
-
},
|
|
3111
|
+
}, ar = !0;
|
|
3069
3112
|
try {
|
|
3070
|
-
var
|
|
3071
|
-
|
|
3113
|
+
var bo = _n("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3114
|
+
ar = ((Vt = bo.exec("a")) === null || Vt === void 0 ? void 0 : Vt[0]) === "a";
|
|
3072
3115
|
} catch (e) {
|
|
3073
|
-
|
|
3116
|
+
ar = !1;
|
|
3074
3117
|
}
|
|
3075
|
-
var
|
|
3118
|
+
var Mr = ao ? (
|
|
3076
3119
|
// Native
|
|
3077
3120
|
function(t, r, n) {
|
|
3078
3121
|
return t.startsWith(r, n);
|
|
@@ -3082,7 +3125,7 @@ var Cr = ro ? (
|
|
|
3082
3125
|
function(t, r, n) {
|
|
3083
3126
|
return t.slice(n, n + r.length) === r;
|
|
3084
3127
|
}
|
|
3085
|
-
),
|
|
3128
|
+
), ur = uo ? String.fromCodePoint : (
|
|
3086
3129
|
// IE11
|
|
3087
3130
|
function() {
|
|
3088
3131
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3094,9 +3137,9 @@ var Cr = ro ? (
|
|
|
3094
3137
|
}
|
|
3095
3138
|
return n;
|
|
3096
3139
|
}
|
|
3097
|
-
),
|
|
3140
|
+
), Rr = (
|
|
3098
3141
|
// native
|
|
3099
|
-
|
|
3142
|
+
lo ? Object.fromEntries : (
|
|
3100
3143
|
// Ponyfill
|
|
3101
3144
|
function(t) {
|
|
3102
3145
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3106,7 +3149,7 @@ var Cr = ro ? (
|
|
|
3106
3149
|
return r;
|
|
3107
3150
|
}
|
|
3108
3151
|
)
|
|
3109
|
-
),
|
|
3152
|
+
), yn = ho ? (
|
|
3110
3153
|
// Native
|
|
3111
3154
|
function(t, r) {
|
|
3112
3155
|
return t.codePointAt(r);
|
|
@@ -3120,7 +3163,7 @@ var Cr = ro ? (
|
|
|
3120
3163
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3121
3164
|
}
|
|
3122
3165
|
}
|
|
3123
|
-
),
|
|
3166
|
+
), go = fo ? (
|
|
3124
3167
|
// Native
|
|
3125
3168
|
function(t) {
|
|
3126
3169
|
return t.trimStart();
|
|
@@ -3128,9 +3171,9 @@ var Cr = ro ? (
|
|
|
3128
3171
|
) : (
|
|
3129
3172
|
// Ponyfill
|
|
3130
3173
|
function(t) {
|
|
3131
|
-
return t.replace(
|
|
3174
|
+
return t.replace(oo, "");
|
|
3132
3175
|
}
|
|
3133
|
-
),
|
|
3176
|
+
), vo = co ? (
|
|
3134
3177
|
// Native
|
|
3135
3178
|
function(t) {
|
|
3136
3179
|
return t.trimEnd();
|
|
@@ -3138,32 +3181,32 @@ var Cr = ro ? (
|
|
|
3138
3181
|
) : (
|
|
3139
3182
|
// Ponyfill
|
|
3140
3183
|
function(t) {
|
|
3141
|
-
return t.replace(
|
|
3184
|
+
return t.replace(so, "");
|
|
3142
3185
|
}
|
|
3143
3186
|
);
|
|
3144
|
-
function
|
|
3187
|
+
function _n(e, t) {
|
|
3145
3188
|
return new RegExp(e, t);
|
|
3146
3189
|
}
|
|
3147
|
-
var
|
|
3148
|
-
if (
|
|
3149
|
-
var
|
|
3150
|
-
|
|
3190
|
+
var lr;
|
|
3191
|
+
if (ar) {
|
|
3192
|
+
var Dr = _n("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3193
|
+
lr = function(t, r) {
|
|
3151
3194
|
var n;
|
|
3152
|
-
|
|
3153
|
-
var i =
|
|
3195
|
+
Dr.lastIndex = r;
|
|
3196
|
+
var i = Dr.exec(t);
|
|
3154
3197
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3155
3198
|
};
|
|
3156
3199
|
} else
|
|
3157
|
-
|
|
3200
|
+
lr = function(t, r) {
|
|
3158
3201
|
for (var n = []; ; ) {
|
|
3159
|
-
var i =
|
|
3160
|
-
if (i === void 0 ||
|
|
3202
|
+
var i = yn(t, r);
|
|
3203
|
+
if (i === void 0 || En(i) || xo(i))
|
|
3161
3204
|
break;
|
|
3162
3205
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3163
3206
|
}
|
|
3164
|
-
return
|
|
3207
|
+
return ur.apply(void 0, n);
|
|
3165
3208
|
};
|
|
3166
|
-
var
|
|
3209
|
+
var yo = (
|
|
3167
3210
|
/** @class */
|
|
3168
3211
|
function() {
|
|
3169
3212
|
function e(t, r) {
|
|
@@ -3187,14 +3230,14 @@ var mo = (
|
|
|
3187
3230
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3188
3231
|
var a = this.clonePosition();
|
|
3189
3232
|
this.bump(), i.push({
|
|
3190
|
-
type:
|
|
3233
|
+
type: R.pound,
|
|
3191
3234
|
location: H(a, this.clonePosition())
|
|
3192
3235
|
});
|
|
3193
3236
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3194
3237
|
if (n)
|
|
3195
3238
|
break;
|
|
3196
3239
|
return this.error(A.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
|
|
3197
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3240
|
+
} else if (o === 60 && !this.ignoreTag && hr(this.peek() || 0)) {
|
|
3198
3241
|
var s = this.parseTag(t, r);
|
|
3199
3242
|
if (s.err)
|
|
3200
3243
|
return s;
|
|
@@ -3215,7 +3258,7 @@ var mo = (
|
|
|
3215
3258
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3216
3259
|
return {
|
|
3217
3260
|
val: {
|
|
3218
|
-
type:
|
|
3261
|
+
type: R.literal,
|
|
3219
3262
|
value: "<".concat(i, "/>"),
|
|
3220
3263
|
location: H(n, this.clonePosition())
|
|
3221
3264
|
},
|
|
@@ -3227,12 +3270,12 @@ var mo = (
|
|
|
3227
3270
|
return o;
|
|
3228
3271
|
var s = o.val, a = this.clonePosition();
|
|
3229
3272
|
if (this.bumpIf("</")) {
|
|
3230
|
-
if (this.isEOF() || !
|
|
3273
|
+
if (this.isEOF() || !hr(this.char()))
|
|
3231
3274
|
return this.error(A.INVALID_TAG, H(a, this.clonePosition()));
|
|
3232
3275
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3233
3276
|
return i !== u ? this.error(A.UNMATCHED_CLOSING_TAG, H(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3234
3277
|
val: {
|
|
3235
|
-
type:
|
|
3278
|
+
type: R.tag,
|
|
3236
3279
|
value: i,
|
|
3237
3280
|
children: s,
|
|
3238
3281
|
location: H(n, this.clonePosition())
|
|
@@ -3245,7 +3288,7 @@ var mo = (
|
|
|
3245
3288
|
return this.error(A.INVALID_TAG, H(n, this.clonePosition()));
|
|
3246
3289
|
}, e.prototype.parseTagName = function() {
|
|
3247
3290
|
var t = this.offset();
|
|
3248
|
-
for (this.bump(); !this.isEOF() &&
|
|
3291
|
+
for (this.bump(); !this.isEOF() && Eo(this.char()); )
|
|
3249
3292
|
this.bump();
|
|
3250
3293
|
return this.message.slice(t, this.offset());
|
|
3251
3294
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3269,12 +3312,12 @@ var mo = (
|
|
|
3269
3312
|
}
|
|
3270
3313
|
var l = H(n, this.clonePosition());
|
|
3271
3314
|
return {
|
|
3272
|
-
val: { type:
|
|
3315
|
+
val: { type: R.literal, value: i, location: l },
|
|
3273
3316
|
err: null
|
|
3274
3317
|
};
|
|
3275
3318
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3276
3319
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3277
|
-
!
|
|
3320
|
+
!_o(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3278
3321
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3279
3322
|
if (this.isEOF() || this.char() !== 39)
|
|
3280
3323
|
return null;
|
|
@@ -3308,12 +3351,12 @@ var mo = (
|
|
|
3308
3351
|
r.push(n);
|
|
3309
3352
|
this.bump();
|
|
3310
3353
|
}
|
|
3311
|
-
return
|
|
3354
|
+
return ur.apply(void 0, r);
|
|
3312
3355
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3313
3356
|
if (this.isEOF())
|
|
3314
3357
|
return null;
|
|
3315
3358
|
var n = this.char();
|
|
3316
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3359
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ur(n));
|
|
3317
3360
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3318
3361
|
var n = this.clonePosition();
|
|
3319
3362
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3329,7 +3372,7 @@ var mo = (
|
|
|
3329
3372
|
case 125:
|
|
3330
3373
|
return this.bump(), {
|
|
3331
3374
|
val: {
|
|
3332
|
-
type:
|
|
3375
|
+
type: R.argument,
|
|
3333
3376
|
// value does not include the opening and closing braces.
|
|
3334
3377
|
value: i,
|
|
3335
3378
|
location: H(n, this.clonePosition())
|
|
@@ -3342,7 +3385,7 @@ var mo = (
|
|
|
3342
3385
|
return this.error(A.MALFORMED_ARGUMENT, H(n, this.clonePosition()));
|
|
3343
3386
|
}
|
|
3344
3387
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3345
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3388
|
+
var t = this.clonePosition(), r = this.offset(), n = lr(this.message, r), i = r + n.length;
|
|
3346
3389
|
this.bumpTo(i);
|
|
3347
3390
|
var o = this.clonePosition(), s = H(t, o);
|
|
3348
3391
|
return { value: n, location: s };
|
|
@@ -3361,46 +3404,46 @@ var mo = (
|
|
|
3361
3404
|
var c = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
|
|
3362
3405
|
if (d.err)
|
|
3363
3406
|
return d;
|
|
3364
|
-
var
|
|
3365
|
-
if (
|
|
3407
|
+
var m = vo(d.val);
|
|
3408
|
+
if (m.length === 0)
|
|
3366
3409
|
return this.error(A.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
|
|
3367
|
-
var
|
|
3368
|
-
u = { style:
|
|
3410
|
+
var E = H(c, this.clonePosition());
|
|
3411
|
+
u = { style: m, styleLocation: E };
|
|
3369
3412
|
}
|
|
3370
|
-
var
|
|
3371
|
-
if (
|
|
3372
|
-
return
|
|
3373
|
-
var
|
|
3374
|
-
if (u &&
|
|
3375
|
-
var ee =
|
|
3413
|
+
var B = this.tryParseArgumentClose(i);
|
|
3414
|
+
if (B.err)
|
|
3415
|
+
return B;
|
|
3416
|
+
var P = H(i, this.clonePosition());
|
|
3417
|
+
if (u && Mr(u == null ? void 0 : u.style, "::", 0)) {
|
|
3418
|
+
var ee = go(u.style.slice(2));
|
|
3376
3419
|
if (a === "number") {
|
|
3377
3420
|
var d = this.parseNumberSkeletonFromString(ee, u.styleLocation);
|
|
3378
3421
|
return d.err ? d : {
|
|
3379
|
-
val: { type:
|
|
3422
|
+
val: { type: R.number, value: n, location: P, style: d.val },
|
|
3380
3423
|
err: null
|
|
3381
3424
|
};
|
|
3382
3425
|
} else {
|
|
3383
3426
|
if (ee.length === 0)
|
|
3384
|
-
return this.error(A.EXPECT_DATE_TIME_SKELETON,
|
|
3385
|
-
var
|
|
3386
|
-
this.locale && (
|
|
3387
|
-
var
|
|
3388
|
-
type:
|
|
3389
|
-
pattern:
|
|
3427
|
+
return this.error(A.EXPECT_DATE_TIME_SKELETON, P);
|
|
3428
|
+
var pe = ee;
|
|
3429
|
+
this.locale && (pe = no(ee, this.locale));
|
|
3430
|
+
var m = {
|
|
3431
|
+
type: Xe.dateTime,
|
|
3432
|
+
pattern: pe,
|
|
3390
3433
|
location: u.styleLocation,
|
|
3391
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3392
|
-
}, ie = a === "date" ?
|
|
3434
|
+
parsedOptions: this.shouldParseSkeletons ? Ji(pe) : {}
|
|
3435
|
+
}, ie = a === "date" ? R.date : R.time;
|
|
3393
3436
|
return {
|
|
3394
|
-
val: { type: ie, value: n, location:
|
|
3437
|
+
val: { type: ie, value: n, location: P, style: m },
|
|
3395
3438
|
err: null
|
|
3396
3439
|
};
|
|
3397
3440
|
}
|
|
3398
3441
|
}
|
|
3399
3442
|
return {
|
|
3400
3443
|
val: {
|
|
3401
|
-
type: a === "number" ?
|
|
3444
|
+
type: a === "number" ? R.number : a === "date" ? R.date : R.time,
|
|
3402
3445
|
value: n,
|
|
3403
|
-
location:
|
|
3446
|
+
location: P,
|
|
3404
3447
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3405
3448
|
},
|
|
3406
3449
|
err: null
|
|
@@ -3409,9 +3452,9 @@ var mo = (
|
|
|
3409
3452
|
case "plural":
|
|
3410
3453
|
case "selectordinal":
|
|
3411
3454
|
case "select": {
|
|
3412
|
-
var
|
|
3455
|
+
var N = this.clonePosition();
|
|
3413
3456
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3414
|
-
return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS, H(
|
|
3457
|
+
return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS, H(N, wt({}, N)));
|
|
3415
3458
|
this.bumpSpace();
|
|
3416
3459
|
var $ = this.parseIdentifierIfPossible(), Z = 0;
|
|
3417
3460
|
if (a !== "select" && $.value === "offset") {
|
|
@@ -3426,23 +3469,23 @@ var mo = (
|
|
|
3426
3469
|
var le = this.tryParsePluralOrSelectOptions(t, a, r, $);
|
|
3427
3470
|
if (le.err)
|
|
3428
3471
|
return le;
|
|
3429
|
-
var
|
|
3430
|
-
if (
|
|
3431
|
-
return
|
|
3472
|
+
var B = this.tryParseArgumentClose(i);
|
|
3473
|
+
if (B.err)
|
|
3474
|
+
return B;
|
|
3432
3475
|
var ge = H(i, this.clonePosition());
|
|
3433
3476
|
return a === "select" ? {
|
|
3434
3477
|
val: {
|
|
3435
|
-
type:
|
|
3478
|
+
type: R.select,
|
|
3436
3479
|
value: n,
|
|
3437
|
-
options:
|
|
3480
|
+
options: Rr(le.val),
|
|
3438
3481
|
location: ge
|
|
3439
3482
|
},
|
|
3440
3483
|
err: null
|
|
3441
3484
|
} : {
|
|
3442
3485
|
val: {
|
|
3443
|
-
type:
|
|
3486
|
+
type: R.plural,
|
|
3444
3487
|
value: n,
|
|
3445
|
-
options:
|
|
3488
|
+
options: Rr(le.val),
|
|
3446
3489
|
offset: Z,
|
|
3447
3490
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3448
3491
|
location: ge
|
|
@@ -3493,16 +3536,16 @@ var mo = (
|
|
|
3493
3536
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3494
3537
|
var n = [];
|
|
3495
3538
|
try {
|
|
3496
|
-
n =
|
|
3539
|
+
n = Yi(t);
|
|
3497
3540
|
} catch (i) {
|
|
3498
3541
|
return this.error(A.INVALID_NUMBER_SKELETON, r);
|
|
3499
3542
|
}
|
|
3500
3543
|
return {
|
|
3501
3544
|
val: {
|
|
3502
|
-
type:
|
|
3545
|
+
type: Xe.number,
|
|
3503
3546
|
tokens: n,
|
|
3504
3547
|
location: r,
|
|
3505
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3548
|
+
parsedOptions: this.shouldParseSkeletons ? ro(n) : {}
|
|
3506
3549
|
},
|
|
3507
3550
|
err: null
|
|
3508
3551
|
};
|
|
@@ -3511,9 +3554,9 @@ var mo = (
|
|
|
3511
3554
|
if (u.length === 0) {
|
|
3512
3555
|
var d = this.clonePosition();
|
|
3513
3556
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3514
|
-
var
|
|
3515
|
-
if (
|
|
3516
|
-
return
|
|
3557
|
+
var m = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_SELECTOR, A.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3558
|
+
if (m.err)
|
|
3559
|
+
return m;
|
|
3517
3560
|
c = H(d, this.clonePosition()), u = this.message.slice(d.offset, this.offset());
|
|
3518
3561
|
} else
|
|
3519
3562
|
break;
|
|
@@ -3521,20 +3564,20 @@ var mo = (
|
|
|
3521
3564
|
if (l.has(u))
|
|
3522
3565
|
return this.error(r === "select" ? A.DUPLICATE_SELECT_ARGUMENT_SELECTOR : A.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
3523
3566
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3524
|
-
var
|
|
3567
|
+
var E = this.clonePosition();
|
|
3525
3568
|
if (!this.bumpIf("{"))
|
|
3526
3569
|
return this.error(r === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : A.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, H(this.clonePosition(), this.clonePosition()));
|
|
3527
|
-
var
|
|
3528
|
-
if (O.err)
|
|
3529
|
-
return O;
|
|
3530
|
-
var B = this.tryParseArgumentClose(_);
|
|
3570
|
+
var B = this.parseMessage(t + 1, r, n);
|
|
3531
3571
|
if (B.err)
|
|
3532
3572
|
return B;
|
|
3573
|
+
var P = this.tryParseArgumentClose(E);
|
|
3574
|
+
if (P.err)
|
|
3575
|
+
return P;
|
|
3533
3576
|
a.push([
|
|
3534
3577
|
u,
|
|
3535
3578
|
{
|
|
3536
|
-
value:
|
|
3537
|
-
location: H(
|
|
3579
|
+
value: B.val,
|
|
3580
|
+
location: H(E, this.clonePosition())
|
|
3538
3581
|
}
|
|
3539
3582
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, c = o.location;
|
|
3540
3583
|
}
|
|
@@ -3550,7 +3593,7 @@ var mo = (
|
|
|
3550
3593
|
break;
|
|
3551
3594
|
}
|
|
3552
3595
|
var l = H(i, this.clonePosition());
|
|
3553
|
-
return o ? (s *= n,
|
|
3596
|
+
return o ? (s *= n, mo(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3554
3597
|
}, e.prototype.offset = function() {
|
|
3555
3598
|
return this.position.offset;
|
|
3556
3599
|
}, e.prototype.isEOF = function() {
|
|
@@ -3565,7 +3608,7 @@ var mo = (
|
|
|
3565
3608
|
var t = this.position.offset;
|
|
3566
3609
|
if (t >= this.message.length)
|
|
3567
3610
|
throw Error("out of bound");
|
|
3568
|
-
var r =
|
|
3611
|
+
var r = yn(this.message, t);
|
|
3569
3612
|
if (r === void 0)
|
|
3570
3613
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3571
3614
|
return r;
|
|
@@ -3584,7 +3627,7 @@ var mo = (
|
|
|
3584
3627
|
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);
|
|
3585
3628
|
}
|
|
3586
3629
|
}, e.prototype.bumpIf = function(t) {
|
|
3587
|
-
if (
|
|
3630
|
+
if (Mr(this.message, t, this.offset())) {
|
|
3588
3631
|
for (var r = 0; r < t.length; r++)
|
|
3589
3632
|
this.bump();
|
|
3590
3633
|
return !0;
|
|
@@ -3606,7 +3649,7 @@ var mo = (
|
|
|
3606
3649
|
break;
|
|
3607
3650
|
}
|
|
3608
3651
|
}, e.prototype.bumpSpace = function() {
|
|
3609
|
-
for (; !this.isEOF() &&
|
|
3652
|
+
for (; !this.isEOF() && En(this.char()); )
|
|
3610
3653
|
this.bump();
|
|
3611
3654
|
}, e.prototype.peek = function() {
|
|
3612
3655
|
if (this.isEOF())
|
|
@@ -3616,47 +3659,47 @@ var mo = (
|
|
|
3616
3659
|
}, e;
|
|
3617
3660
|
}()
|
|
3618
3661
|
);
|
|
3619
|
-
function
|
|
3662
|
+
function hr(e) {
|
|
3620
3663
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3621
3664
|
}
|
|
3622
|
-
function
|
|
3623
|
-
return
|
|
3665
|
+
function _o(e) {
|
|
3666
|
+
return hr(e) || e === 47;
|
|
3624
3667
|
}
|
|
3625
|
-
function
|
|
3668
|
+
function Eo(e) {
|
|
3626
3669
|
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;
|
|
3627
3670
|
}
|
|
3628
|
-
function
|
|
3671
|
+
function En(e) {
|
|
3629
3672
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3630
3673
|
}
|
|
3631
|
-
function
|
|
3674
|
+
function xo(e) {
|
|
3632
3675
|
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;
|
|
3633
3676
|
}
|
|
3634
|
-
function
|
|
3677
|
+
function fr(e) {
|
|
3635
3678
|
e.forEach(function(t) {
|
|
3636
|
-
if (delete t.location,
|
|
3679
|
+
if (delete t.location, fn(t) || cn(t))
|
|
3637
3680
|
for (var r in t.options)
|
|
3638
|
-
delete t.options[r].location,
|
|
3681
|
+
delete t.options[r].location, fr(t.options[r].value);
|
|
3639
3682
|
else
|
|
3640
|
-
|
|
3683
|
+
un(t) && pn(t.style) || (ln(t) || hn(t)) && sr(t.style) ? delete t.style.location : dn(t) && fr(t.children);
|
|
3641
3684
|
});
|
|
3642
3685
|
}
|
|
3643
|
-
function
|
|
3644
|
-
t === void 0 && (t = {}), t =
|
|
3645
|
-
var r = new
|
|
3686
|
+
function wo(e, t) {
|
|
3687
|
+
t === void 0 && (t = {}), t = wt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3688
|
+
var r = new yo(e, t).parse();
|
|
3646
3689
|
if (r.err) {
|
|
3647
3690
|
var n = SyntaxError(A[r.err.kind]);
|
|
3648
3691
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3649
3692
|
}
|
|
3650
|
-
return t != null && t.captureLocation ||
|
|
3693
|
+
return t != null && t.captureLocation || fr(r.val), r.val;
|
|
3651
3694
|
}
|
|
3652
|
-
var
|
|
3695
|
+
var ze;
|
|
3653
3696
|
(function(e) {
|
|
3654
3697
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3655
|
-
})(
|
|
3698
|
+
})(ze || (ze = {}));
|
|
3656
3699
|
var Bt = (
|
|
3657
3700
|
/** @class */
|
|
3658
3701
|
function(e) {
|
|
3659
|
-
|
|
3702
|
+
Ot(t, e);
|
|
3660
3703
|
function t(r, n, i) {
|
|
3661
3704
|
var o = e.call(this, r) || this;
|
|
3662
3705
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3665,30 +3708,30 @@ var Bt = (
|
|
|
3665
3708
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3666
3709
|
}, t;
|
|
3667
3710
|
}(Error)
|
|
3668
|
-
),
|
|
3711
|
+
), Fr = (
|
|
3669
3712
|
/** @class */
|
|
3670
3713
|
function(e) {
|
|
3671
|
-
|
|
3714
|
+
Ot(t, e);
|
|
3672
3715
|
function t(r, n, i, o) {
|
|
3673
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3716
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ze.INVALID_VALUE, o) || this;
|
|
3674
3717
|
}
|
|
3675
3718
|
return t;
|
|
3676
3719
|
}(Bt)
|
|
3677
|
-
),
|
|
3720
|
+
), To = (
|
|
3678
3721
|
/** @class */
|
|
3679
3722
|
function(e) {
|
|
3680
|
-
|
|
3723
|
+
Ot(t, e);
|
|
3681
3724
|
function t(r, n, i) {
|
|
3682
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3725
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ze.INVALID_VALUE, i) || this;
|
|
3683
3726
|
}
|
|
3684
3727
|
return t;
|
|
3685
3728
|
}(Bt)
|
|
3686
|
-
),
|
|
3729
|
+
), So = (
|
|
3687
3730
|
/** @class */
|
|
3688
3731
|
function(e) {
|
|
3689
|
-
|
|
3732
|
+
Ot(t, e);
|
|
3690
3733
|
function t(r, n) {
|
|
3691
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3734
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ze.MISSING_VALUE, n) || this;
|
|
3692
3735
|
}
|
|
3693
3736
|
return t;
|
|
3694
3737
|
}(Bt)
|
|
@@ -3696,17 +3739,17 @@ var Bt = (
|
|
|
3696
3739
|
(function(e) {
|
|
3697
3740
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3698
3741
|
})(K || (K = {}));
|
|
3699
|
-
function
|
|
3742
|
+
function Ao(e) {
|
|
3700
3743
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3701
3744
|
var n = t[t.length - 1];
|
|
3702
3745
|
return !n || n.type !== K.literal || r.type !== K.literal ? t.push(r) : n.value += r.value, t;
|
|
3703
3746
|
}, []);
|
|
3704
3747
|
}
|
|
3705
|
-
function
|
|
3748
|
+
function Ho(e) {
|
|
3706
3749
|
return typeof e == "function";
|
|
3707
3750
|
}
|
|
3708
|
-
function
|
|
3709
|
-
if (e.length === 1 &&
|
|
3751
|
+
function Et(e, t, r, n, i, o, s) {
|
|
3752
|
+
if (e.length === 1 && Cr(e[0]))
|
|
3710
3753
|
return [
|
|
3711
3754
|
{
|
|
3712
3755
|
type: K.literal,
|
|
@@ -3715,14 +3758,14 @@ function _t(e, t, r, n, i, o, s) {
|
|
|
3715
3758
|
];
|
|
3716
3759
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3717
3760
|
var c = u[l];
|
|
3718
|
-
if (
|
|
3761
|
+
if (Cr(c)) {
|
|
3719
3762
|
a.push({
|
|
3720
3763
|
type: K.literal,
|
|
3721
3764
|
value: c.value
|
|
3722
3765
|
});
|
|
3723
3766
|
continue;
|
|
3724
3767
|
}
|
|
3725
|
-
if (
|
|
3768
|
+
if (qi(c)) {
|
|
3726
3769
|
typeof o == "number" && a.push({
|
|
3727
3770
|
type: K.literal,
|
|
3728
3771
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3731,44 +3774,44 @@ function _t(e, t, r, n, i, o, s) {
|
|
|
3731
3774
|
}
|
|
3732
3775
|
var d = c.value;
|
|
3733
3776
|
if (!(i && d in i))
|
|
3734
|
-
throw new
|
|
3735
|
-
var
|
|
3736
|
-
if (
|
|
3737
|
-
(!
|
|
3738
|
-
type: typeof
|
|
3739
|
-
value:
|
|
3777
|
+
throw new So(d, s);
|
|
3778
|
+
var m = i[d];
|
|
3779
|
+
if (Wi(c)) {
|
|
3780
|
+
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
|
|
3781
|
+
type: typeof m == "string" ? K.literal : K.object,
|
|
3782
|
+
value: m
|
|
3740
3783
|
});
|
|
3741
3784
|
continue;
|
|
3742
3785
|
}
|
|
3743
|
-
if (
|
|
3744
|
-
var
|
|
3786
|
+
if (ln(c)) {
|
|
3787
|
+
var E = typeof c.style == "string" ? n.date[c.style] : sr(c.style) ? c.style.parsedOptions : void 0;
|
|
3745
3788
|
a.push({
|
|
3746
3789
|
type: K.literal,
|
|
3747
|
-
value: r.getDateTimeFormat(t,
|
|
3790
|
+
value: r.getDateTimeFormat(t, E).format(m)
|
|
3748
3791
|
});
|
|
3749
3792
|
continue;
|
|
3750
3793
|
}
|
|
3751
|
-
if (
|
|
3752
|
-
var
|
|
3794
|
+
if (hn(c)) {
|
|
3795
|
+
var E = typeof c.style == "string" ? n.time[c.style] : sr(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3753
3796
|
a.push({
|
|
3754
3797
|
type: K.literal,
|
|
3755
|
-
value: r.getDateTimeFormat(t,
|
|
3798
|
+
value: r.getDateTimeFormat(t, E).format(m)
|
|
3756
3799
|
});
|
|
3757
3800
|
continue;
|
|
3758
3801
|
}
|
|
3759
|
-
if (
|
|
3760
|
-
var
|
|
3761
|
-
|
|
3802
|
+
if (un(c)) {
|
|
3803
|
+
var E = typeof c.style == "string" ? n.number[c.style] : pn(c.style) ? c.style.parsedOptions : void 0;
|
|
3804
|
+
E && E.scale && (m = m * (E.scale || 1)), a.push({
|
|
3762
3805
|
type: K.literal,
|
|
3763
|
-
value: r.getNumberFormat(t,
|
|
3806
|
+
value: r.getNumberFormat(t, E).format(m)
|
|
3764
3807
|
});
|
|
3765
3808
|
continue;
|
|
3766
3809
|
}
|
|
3767
|
-
if (
|
|
3768
|
-
var
|
|
3769
|
-
if (!
|
|
3770
|
-
throw new
|
|
3771
|
-
var
|
|
3810
|
+
if (dn(c)) {
|
|
3811
|
+
var B = c.children, P = c.value, ee = i[P];
|
|
3812
|
+
if (!Ho(ee))
|
|
3813
|
+
throw new To(P, "function", s);
|
|
3814
|
+
var pe = Et(B, t, r, n, i, o), ie = ee(pe.map(function(Z) {
|
|
3772
3815
|
return Z.value;
|
|
3773
3816
|
}));
|
|
3774
3817
|
Array.isArray(ie) || (ie = [ie]), a.push.apply(a, ie.map(function(Z) {
|
|
@@ -3778,42 +3821,42 @@ function _t(e, t, r, n, i, o, s) {
|
|
|
3778
3821
|
};
|
|
3779
3822
|
}));
|
|
3780
3823
|
}
|
|
3781
|
-
if (
|
|
3782
|
-
var
|
|
3783
|
-
if (!
|
|
3784
|
-
throw new
|
|
3785
|
-
a.push.apply(a,
|
|
3824
|
+
if (fn(c)) {
|
|
3825
|
+
var N = c.options[m] || c.options.other;
|
|
3826
|
+
if (!N)
|
|
3827
|
+
throw new Fr(c.value, m, Object.keys(c.options), s);
|
|
3828
|
+
a.push.apply(a, Et(N.value, t, r, n, i));
|
|
3786
3829
|
continue;
|
|
3787
3830
|
}
|
|
3788
|
-
if (
|
|
3789
|
-
var
|
|
3790
|
-
if (!
|
|
3831
|
+
if (cn(c)) {
|
|
3832
|
+
var N = c.options["=".concat(m)];
|
|
3833
|
+
if (!N) {
|
|
3791
3834
|
if (!Intl.PluralRules)
|
|
3792
3835
|
throw new Bt(`Intl.PluralRules is not available in this environment.
|
|
3793
3836
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3794
|
-
`,
|
|
3795
|
-
var $ = r.getPluralRules(t, { type: c.pluralType }).select(
|
|
3796
|
-
|
|
3837
|
+
`, ze.MISSING_INTL_API, s);
|
|
3838
|
+
var $ = r.getPluralRules(t, { type: c.pluralType }).select(m - (c.offset || 0));
|
|
3839
|
+
N = c.options[$] || c.options.other;
|
|
3797
3840
|
}
|
|
3798
|
-
if (!
|
|
3799
|
-
throw new
|
|
3800
|
-
a.push.apply(a,
|
|
3841
|
+
if (!N)
|
|
3842
|
+
throw new Fr(c.value, m, Object.keys(c.options), s);
|
|
3843
|
+
a.push.apply(a, Et(N.value, t, r, n, i, m - (c.offset || 0)));
|
|
3801
3844
|
continue;
|
|
3802
3845
|
}
|
|
3803
3846
|
}
|
|
3804
|
-
return
|
|
3847
|
+
return Ao(a);
|
|
3805
3848
|
}
|
|
3806
|
-
function
|
|
3807
|
-
return t ?
|
|
3808
|
-
return r[n] =
|
|
3849
|
+
function Po(e, t) {
|
|
3850
|
+
return t ? ye(ye(ye({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3851
|
+
return r[n] = ye(ye({}, e[n]), t[n] || {}), r;
|
|
3809
3852
|
}, {})) : e;
|
|
3810
3853
|
}
|
|
3811
|
-
function
|
|
3854
|
+
function Oo(e, t) {
|
|
3812
3855
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3813
|
-
return r[n] =
|
|
3814
|
-
},
|
|
3856
|
+
return r[n] = Po(e[n], t[n]), r;
|
|
3857
|
+
}, ye({}, e)) : e;
|
|
3815
3858
|
}
|
|
3816
|
-
function
|
|
3859
|
+
function Xt(e) {
|
|
3817
3860
|
return {
|
|
3818
3861
|
create: function() {
|
|
3819
3862
|
return {
|
|
@@ -3827,39 +3870,39 @@ function $t(e) {
|
|
|
3827
3870
|
}
|
|
3828
3871
|
};
|
|
3829
3872
|
}
|
|
3830
|
-
function
|
|
3873
|
+
function Bo(e) {
|
|
3831
3874
|
return e === void 0 && (e = {
|
|
3832
3875
|
number: {},
|
|
3833
3876
|
dateTime: {},
|
|
3834
3877
|
pluralRules: {}
|
|
3835
3878
|
}), {
|
|
3836
|
-
getNumberFormat:
|
|
3879
|
+
getNumberFormat: $t(function() {
|
|
3837
3880
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3838
3881
|
r[n] = arguments[n];
|
|
3839
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3882
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, jt([void 0], r, !1)))();
|
|
3840
3883
|
}, {
|
|
3841
|
-
cache:
|
|
3842
|
-
strategy:
|
|
3884
|
+
cache: Xt(e.number),
|
|
3885
|
+
strategy: kt.variadic
|
|
3843
3886
|
}),
|
|
3844
|
-
getDateTimeFormat:
|
|
3887
|
+
getDateTimeFormat: $t(function() {
|
|
3845
3888
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3846
3889
|
r[n] = arguments[n];
|
|
3847
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3890
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, jt([void 0], r, !1)))();
|
|
3848
3891
|
}, {
|
|
3849
|
-
cache:
|
|
3850
|
-
strategy:
|
|
3892
|
+
cache: Xt(e.dateTime),
|
|
3893
|
+
strategy: kt.variadic
|
|
3851
3894
|
}),
|
|
3852
|
-
getPluralRules:
|
|
3895
|
+
getPluralRules: $t(function() {
|
|
3853
3896
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3854
3897
|
r[n] = arguments[n];
|
|
3855
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3898
|
+
return new ((t = Intl.PluralRules).bind.apply(t, jt([void 0], r, !1)))();
|
|
3856
3899
|
}, {
|
|
3857
|
-
cache:
|
|
3858
|
-
strategy:
|
|
3900
|
+
cache: Xt(e.pluralRules),
|
|
3901
|
+
strategy: kt.variadic
|
|
3859
3902
|
})
|
|
3860
3903
|
};
|
|
3861
3904
|
}
|
|
3862
|
-
var
|
|
3905
|
+
var Co = (
|
|
3863
3906
|
/** @class */
|
|
3864
3907
|
function() {
|
|
3865
3908
|
function e(t, r, n, i) {
|
|
@@ -3873,12 +3916,12 @@ var Ao = (
|
|
|
3873
3916
|
var u = o.formatToParts(l);
|
|
3874
3917
|
if (u.length === 1)
|
|
3875
3918
|
return u[0].value;
|
|
3876
|
-
var c = u.reduce(function(d,
|
|
3877
|
-
return !d.length ||
|
|
3919
|
+
var c = u.reduce(function(d, m) {
|
|
3920
|
+
return !d.length || m.type !== K.literal || typeof d[d.length - 1] != "string" ? d.push(m.value) : d[d.length - 1] += m.value, d;
|
|
3878
3921
|
}, []);
|
|
3879
3922
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3880
3923
|
}, this.formatToParts = function(l) {
|
|
3881
|
-
return
|
|
3924
|
+
return Et(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3882
3925
|
}, this.resolvedOptions = function() {
|
|
3883
3926
|
var l;
|
|
3884
3927
|
return {
|
|
@@ -3891,13 +3934,13 @@ var Ao = (
|
|
|
3891
3934
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3892
3935
|
var s = i || {};
|
|
3893
3936
|
s.formatters;
|
|
3894
|
-
var a =
|
|
3895
|
-
this.ast = e.__parse(t,
|
|
3937
|
+
var a = Ui(s, ["formatters"]);
|
|
3938
|
+
this.ast = e.__parse(t, ye(ye({}, a), { locale: this.resolvedLocale }));
|
|
3896
3939
|
} else
|
|
3897
3940
|
this.ast = t;
|
|
3898
3941
|
if (!Array.isArray(this.ast))
|
|
3899
3942
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3900
|
-
this.formats =
|
|
3943
|
+
this.formats = Oo(e.formats, n), this.formatters = i && i.formatters || Bo(this.formatterCache);
|
|
3901
3944
|
}
|
|
3902
3945
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3903
3946
|
get: function() {
|
|
@@ -3910,7 +3953,7 @@ var Ao = (
|
|
|
3910
3953
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3911
3954
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3912
3955
|
}
|
|
3913
|
-
}, e.__parse =
|
|
3956
|
+
}, e.__parse = wo, e.formats = {
|
|
3914
3957
|
number: {
|
|
3915
3958
|
integer: {
|
|
3916
3959
|
maximumFractionDigits: 0
|
|
@@ -3971,7 +4014,7 @@ var Ao = (
|
|
|
3971
4014
|
}, e;
|
|
3972
4015
|
}()
|
|
3973
4016
|
);
|
|
3974
|
-
function
|
|
4017
|
+
function Io(e, t) {
|
|
3975
4018
|
if (t == null)
|
|
3976
4019
|
return;
|
|
3977
4020
|
if (t in e)
|
|
@@ -3992,92 +4035,92 @@ function Ho(e, t) {
|
|
|
3992
4035
|
n = void 0;
|
|
3993
4036
|
return n;
|
|
3994
4037
|
}
|
|
3995
|
-
const Ae = {},
|
|
4038
|
+
const Ae = {}, Lo = (e, t, r) => r && (t in Ae || (Ae[t] = {}), e in Ae[t] || (Ae[t][e] = r), r), xn = (e, t) => {
|
|
3996
4039
|
if (t == null)
|
|
3997
4040
|
return;
|
|
3998
4041
|
if (t in Ae && e in Ae[t])
|
|
3999
4042
|
return Ae[t][e];
|
|
4000
|
-
const r =
|
|
4043
|
+
const r = Ct(t);
|
|
4001
4044
|
for (let n = 0; n < r.length; n++) {
|
|
4002
|
-
const i = r[n], o =
|
|
4045
|
+
const i = r[n], o = Mo(i, e);
|
|
4003
4046
|
if (o)
|
|
4004
|
-
return
|
|
4047
|
+
return Lo(e, t, o);
|
|
4005
4048
|
}
|
|
4006
4049
|
};
|
|
4007
|
-
let
|
|
4008
|
-
const
|
|
4009
|
-
function
|
|
4010
|
-
return
|
|
4050
|
+
let mr;
|
|
4051
|
+
const Ze = Pt({});
|
|
4052
|
+
function No(e) {
|
|
4053
|
+
return mr[e] || null;
|
|
4011
4054
|
}
|
|
4012
|
-
function
|
|
4013
|
-
return e in
|
|
4055
|
+
function wn(e) {
|
|
4056
|
+
return e in mr;
|
|
4014
4057
|
}
|
|
4015
|
-
function
|
|
4016
|
-
if (!
|
|
4058
|
+
function Mo(e, t) {
|
|
4059
|
+
if (!wn(e))
|
|
4017
4060
|
return null;
|
|
4018
|
-
const r =
|
|
4019
|
-
return
|
|
4061
|
+
const r = No(e);
|
|
4062
|
+
return Io(r, t);
|
|
4020
4063
|
}
|
|
4021
|
-
function
|
|
4064
|
+
function Ro(e) {
|
|
4022
4065
|
if (e == null)
|
|
4023
4066
|
return;
|
|
4024
|
-
const t =
|
|
4067
|
+
const t = Ct(e);
|
|
4025
4068
|
for (let r = 0; r < t.length; r++) {
|
|
4026
4069
|
const n = t[r];
|
|
4027
|
-
if (
|
|
4070
|
+
if (wn(n))
|
|
4028
4071
|
return n;
|
|
4029
4072
|
}
|
|
4030
4073
|
}
|
|
4031
|
-
function
|
|
4032
|
-
delete Ae[e],
|
|
4074
|
+
function Tn(e, ...t) {
|
|
4075
|
+
delete Ae[e], Ze.update((r) => (r[e] = Fi.all([r[e] || {}, ...t]), r));
|
|
4033
4076
|
}
|
|
4034
|
-
|
|
4035
|
-
[
|
|
4077
|
+
qe(
|
|
4078
|
+
[Ze],
|
|
4036
4079
|
([e]) => Object.keys(e)
|
|
4037
4080
|
);
|
|
4038
|
-
|
|
4081
|
+
Ze.subscribe((e) => mr = e);
|
|
4039
4082
|
const xt = {};
|
|
4040
|
-
function
|
|
4083
|
+
function Do(e, t) {
|
|
4041
4084
|
xt[e].delete(t), xt[e].size === 0 && delete xt[e];
|
|
4042
4085
|
}
|
|
4043
|
-
function
|
|
4086
|
+
function Sn(e) {
|
|
4044
4087
|
return xt[e];
|
|
4045
4088
|
}
|
|
4046
|
-
function
|
|
4047
|
-
return
|
|
4048
|
-
const r =
|
|
4089
|
+
function Fo(e) {
|
|
4090
|
+
return Ct(e).map((t) => {
|
|
4091
|
+
const r = Sn(t);
|
|
4049
4092
|
return [t, r ? [...r] : []];
|
|
4050
4093
|
}).filter(([, t]) => t.length > 0);
|
|
4051
4094
|
}
|
|
4052
|
-
function
|
|
4053
|
-
return e == null ? !1 :
|
|
4095
|
+
function cr(e) {
|
|
4096
|
+
return e == null ? !1 : Ct(e).some(
|
|
4054
4097
|
(t) => {
|
|
4055
4098
|
var r;
|
|
4056
|
-
return (r =
|
|
4099
|
+
return (r = Sn(t)) == null ? void 0 : r.size;
|
|
4057
4100
|
}
|
|
4058
4101
|
);
|
|
4059
4102
|
}
|
|
4060
|
-
function
|
|
4103
|
+
function Uo(e, t) {
|
|
4061
4104
|
return Promise.all(
|
|
4062
|
-
t.map((n) => (
|
|
4063
|
-
).then((n) =>
|
|
4064
|
-
}
|
|
4065
|
-
const
|
|
4066
|
-
function
|
|
4067
|
-
if (!
|
|
4068
|
-
return e in
|
|
4069
|
-
const t =
|
|
4070
|
-
return
|
|
4105
|
+
t.map((n) => (Do(e, n), n().then((i) => i.default || i)))
|
|
4106
|
+
).then((n) => Tn(e, ...n));
|
|
4107
|
+
}
|
|
4108
|
+
const nt = {};
|
|
4109
|
+
function An(e) {
|
|
4110
|
+
if (!cr(e))
|
|
4111
|
+
return e in nt ? nt[e] : Promise.resolve();
|
|
4112
|
+
const t = Fo(e);
|
|
4113
|
+
return nt[e] = Promise.all(
|
|
4071
4114
|
t.map(
|
|
4072
|
-
([r, n]) =>
|
|
4115
|
+
([r, n]) => Uo(r, n)
|
|
4073
4116
|
)
|
|
4074
4117
|
).then(() => {
|
|
4075
|
-
if (
|
|
4076
|
-
return
|
|
4077
|
-
delete
|
|
4078
|
-
}),
|
|
4118
|
+
if (cr(e))
|
|
4119
|
+
return An(e);
|
|
4120
|
+
delete nt[e];
|
|
4121
|
+
}), nt[e];
|
|
4079
4122
|
}
|
|
4080
|
-
const
|
|
4123
|
+
const Go = {
|
|
4081
4124
|
number: {
|
|
4082
4125
|
scientific: { notation: "scientific" },
|
|
4083
4126
|
engineering: { notation: "engineering" },
|
|
@@ -4106,135 +4149,135 @@ const Mo = {
|
|
|
4106
4149
|
timeZoneName: "short"
|
|
4107
4150
|
}
|
|
4108
4151
|
}
|
|
4109
|
-
},
|
|
4152
|
+
}, jo = {
|
|
4110
4153
|
fallbackLocale: null,
|
|
4111
4154
|
loadingDelay: 200,
|
|
4112
|
-
formats:
|
|
4155
|
+
formats: Go,
|
|
4113
4156
|
warnOnMissingMessages: !0,
|
|
4114
4157
|
handleMissingMessage: void 0,
|
|
4115
4158
|
ignoreTag: !0
|
|
4116
|
-
},
|
|
4117
|
-
function
|
|
4118
|
-
return
|
|
4159
|
+
}, $o = jo;
|
|
4160
|
+
function We() {
|
|
4161
|
+
return $o;
|
|
4119
4162
|
}
|
|
4120
|
-
const
|
|
4121
|
-
var
|
|
4163
|
+
const zt = Pt(!1);
|
|
4164
|
+
var ko = Object.defineProperty, Vo = Object.defineProperties, Xo = Object.getOwnPropertyDescriptors, Ur = Object.getOwnPropertySymbols, zo = Object.prototype.hasOwnProperty, Wo = Object.prototype.propertyIsEnumerable, Gr = (e, t, r) => t in e ? ko(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qo = (e, t) => {
|
|
4122
4165
|
for (var r in t || (t = {}))
|
|
4123
|
-
|
|
4124
|
-
if (
|
|
4125
|
-
for (var r of
|
|
4126
|
-
|
|
4166
|
+
zo.call(t, r) && Gr(e, r, t[r]);
|
|
4167
|
+
if (Ur)
|
|
4168
|
+
for (var r of Ur(t))
|
|
4169
|
+
Wo.call(t, r) && Gr(e, r, t[r]);
|
|
4127
4170
|
return e;
|
|
4128
|
-
},
|
|
4129
|
-
let
|
|
4130
|
-
const
|
|
4131
|
-
function
|
|
4171
|
+
}, Zo = (e, t) => Vo(e, Xo(t));
|
|
4172
|
+
let dr;
|
|
4173
|
+
const Tt = Pt(null);
|
|
4174
|
+
function jr(e) {
|
|
4132
4175
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4133
4176
|
}
|
|
4134
|
-
function
|
|
4135
|
-
const r =
|
|
4136
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4177
|
+
function Ct(e, t = We().fallbackLocale) {
|
|
4178
|
+
const r = jr(e);
|
|
4179
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...jr(t)])] : r;
|
|
4137
4180
|
}
|
|
4138
4181
|
function Me() {
|
|
4139
|
-
return
|
|
4182
|
+
return dr != null ? dr : void 0;
|
|
4140
4183
|
}
|
|
4141
|
-
|
|
4142
|
-
|
|
4184
|
+
Tt.subscribe((e) => {
|
|
4185
|
+
dr = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4143
4186
|
});
|
|
4144
|
-
const
|
|
4145
|
-
if (e &&
|
|
4146
|
-
const { loadingDelay: t } =
|
|
4187
|
+
const Jo = (e) => {
|
|
4188
|
+
if (e && Ro(e) && cr(e)) {
|
|
4189
|
+
const { loadingDelay: t } = We();
|
|
4147
4190
|
let r;
|
|
4148
4191
|
return typeof window != "undefined" && Me() != null && t ? r = window.setTimeout(
|
|
4149
|
-
() =>
|
|
4192
|
+
() => zt.set(!0),
|
|
4150
4193
|
t
|
|
4151
|
-
) :
|
|
4152
|
-
|
|
4194
|
+
) : zt.set(!0), An(e).then(() => {
|
|
4195
|
+
Tt.set(e);
|
|
4153
4196
|
}).finally(() => {
|
|
4154
|
-
clearTimeout(r),
|
|
4197
|
+
clearTimeout(r), zt.set(!1);
|
|
4155
4198
|
});
|
|
4156
4199
|
}
|
|
4157
|
-
return
|
|
4158
|
-
}, He =
|
|
4159
|
-
set:
|
|
4160
|
-
}),
|
|
4200
|
+
return Tt.set(e);
|
|
4201
|
+
}, He = Zo(qo({}, Tt), {
|
|
4202
|
+
set: Jo
|
|
4203
|
+
}), It = (e) => {
|
|
4161
4204
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4162
4205
|
return (n) => {
|
|
4163
4206
|
const i = JSON.stringify(n);
|
|
4164
4207
|
return i in t ? t[i] : t[i] = e(n);
|
|
4165
4208
|
};
|
|
4166
4209
|
};
|
|
4167
|
-
var
|
|
4210
|
+
var Qo = Object.defineProperty, St = Object.getOwnPropertySymbols, Hn = Object.prototype.hasOwnProperty, Pn = Object.prototype.propertyIsEnumerable, $r = (e, t, r) => t in e ? Qo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, br = (e, t) => {
|
|
4168
4211
|
for (var r in t || (t = {}))
|
|
4169
|
-
|
|
4170
|
-
if (
|
|
4171
|
-
for (var r of
|
|
4172
|
-
|
|
4212
|
+
Hn.call(t, r) && $r(e, r, t[r]);
|
|
4213
|
+
if (St)
|
|
4214
|
+
for (var r of St(t))
|
|
4215
|
+
Pn.call(t, r) && $r(e, r, t[r]);
|
|
4173
4216
|
return e;
|
|
4174
|
-
},
|
|
4217
|
+
}, Je = (e, t) => {
|
|
4175
4218
|
var r = {};
|
|
4176
4219
|
for (var n in e)
|
|
4177
|
-
|
|
4178
|
-
if (e != null &&
|
|
4179
|
-
for (var n of
|
|
4180
|
-
t.indexOf(n) < 0 &&
|
|
4220
|
+
Hn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4221
|
+
if (e != null && St)
|
|
4222
|
+
for (var n of St(e))
|
|
4223
|
+
t.indexOf(n) < 0 && Pn.call(e, n) && (r[n] = e[n]);
|
|
4181
4224
|
return r;
|
|
4182
4225
|
};
|
|
4183
|
-
const
|
|
4184
|
-
const { formats: r } =
|
|
4226
|
+
const ut = (e, t) => {
|
|
4227
|
+
const { formats: r } = We();
|
|
4185
4228
|
if (e in r && t in r[e])
|
|
4186
4229
|
return r[e][t];
|
|
4187
4230
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4188
|
-
},
|
|
4231
|
+
}, Yo = It(
|
|
4189
4232
|
(e) => {
|
|
4190
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4233
|
+
var t = e, { locale: r, format: n } = t, i = Je(t, ["locale", "format"]);
|
|
4191
4234
|
if (r == null)
|
|
4192
4235
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4193
|
-
return n && (i =
|
|
4236
|
+
return n && (i = ut("number", n)), new Intl.NumberFormat(r, i);
|
|
4194
4237
|
}
|
|
4195
|
-
),
|
|
4238
|
+
), Ko = It(
|
|
4196
4239
|
(e) => {
|
|
4197
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4240
|
+
var t = e, { locale: r, format: n } = t, i = Je(t, ["locale", "format"]);
|
|
4198
4241
|
if (r == null)
|
|
4199
4242
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4200
|
-
return n ? i =
|
|
4243
|
+
return n ? i = ut("date", n) : Object.keys(i).length === 0 && (i = ut("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4201
4244
|
}
|
|
4202
|
-
),
|
|
4245
|
+
), es = It(
|
|
4203
4246
|
(e) => {
|
|
4204
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4247
|
+
var t = e, { locale: r, format: n } = t, i = Je(t, ["locale", "format"]);
|
|
4205
4248
|
if (r == null)
|
|
4206
4249
|
throw new Error(
|
|
4207
4250
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4208
4251
|
);
|
|
4209
|
-
return n ? i =
|
|
4252
|
+
return n ? i = ut("time", n) : Object.keys(i).length === 0 && (i = ut("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4210
4253
|
}
|
|
4211
|
-
),
|
|
4254
|
+
), ts = (e = {}) => {
|
|
4212
4255
|
var t = e, {
|
|
4213
4256
|
locale: r = Me()
|
|
4214
|
-
} = t, n =
|
|
4257
|
+
} = t, n = Je(t, [
|
|
4215
4258
|
"locale"
|
|
4216
4259
|
]);
|
|
4217
|
-
return
|
|
4218
|
-
},
|
|
4260
|
+
return Yo(br({ locale: r }, n));
|
|
4261
|
+
}, rs = (e = {}) => {
|
|
4219
4262
|
var t = e, {
|
|
4220
4263
|
locale: r = Me()
|
|
4221
|
-
} = t, n =
|
|
4264
|
+
} = t, n = Je(t, [
|
|
4222
4265
|
"locale"
|
|
4223
4266
|
]);
|
|
4224
|
-
return
|
|
4225
|
-
},
|
|
4267
|
+
return Ko(br({ locale: r }, n));
|
|
4268
|
+
}, ns = (e = {}) => {
|
|
4226
4269
|
var t = e, {
|
|
4227
4270
|
locale: r = Me()
|
|
4228
|
-
} = t, n =
|
|
4271
|
+
} = t, n = Je(t, [
|
|
4229
4272
|
"locale"
|
|
4230
4273
|
]);
|
|
4231
|
-
return
|
|
4232
|
-
},
|
|
4274
|
+
return es(br({ locale: r }, n));
|
|
4275
|
+
}, is = It(
|
|
4233
4276
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4234
|
-
(e, t = Me()) => new
|
|
4235
|
-
ignoreTag:
|
|
4277
|
+
(e, t = Me()) => new Co(e, t, We().formats, {
|
|
4278
|
+
ignoreTag: We().ignoreTag
|
|
4236
4279
|
})
|
|
4237
|
-
),
|
|
4280
|
+
), os = (e, t = {}) => {
|
|
4238
4281
|
var r, n, i, o;
|
|
4239
4282
|
let s = t;
|
|
4240
4283
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4247,9 +4290,9 @@ const lt = (e, t) => {
|
|
|
4247
4290
|
throw new Error(
|
|
4248
4291
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4249
4292
|
);
|
|
4250
|
-
let c =
|
|
4293
|
+
let c = xn(e, l);
|
|
4251
4294
|
if (!c)
|
|
4252
|
-
c = (o = (i = (n = (r =
|
|
4295
|
+
c = (o = (i = (n = (r = We()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4253
4296
|
else if (typeof c != "string")
|
|
4254
4297
|
return console.warn(
|
|
4255
4298
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4258,33 +4301,33 @@ const lt = (e, t) => {
|
|
|
4258
4301
|
return c;
|
|
4259
4302
|
let d = c;
|
|
4260
4303
|
try {
|
|
4261
|
-
d =
|
|
4262
|
-
} catch (
|
|
4263
|
-
|
|
4304
|
+
d = is(c, l).format(a);
|
|
4305
|
+
} catch (m) {
|
|
4306
|
+
m instanceof Error && console.warn(
|
|
4264
4307
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4265
|
-
|
|
4308
|
+
m.message
|
|
4266
4309
|
);
|
|
4267
4310
|
}
|
|
4268
4311
|
return d;
|
|
4269
|
-
},
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
window.emWidgets = { topic:
|
|
4275
|
-
const
|
|
4276
|
-
function
|
|
4312
|
+
}, ss = (e, t) => ns(t).format(e), as = (e, t) => rs(t).format(e), us = (e, t) => ts(t).format(e), ls = (e, t = Me()) => xn(e, t), hs = qe([He, Ze], () => os);
|
|
4313
|
+
qe([He], () => ss);
|
|
4314
|
+
qe([He], () => as);
|
|
4315
|
+
qe([He], () => us);
|
|
4316
|
+
qe([He, Ze], () => ls);
|
|
4317
|
+
window.emWidgets = { topic: _i };
|
|
4318
|
+
const Ls = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), fs = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4319
|
+
function cs({ withLocale: e, translations: t }) {
|
|
4277
4320
|
He.subscribe((r) => {
|
|
4278
|
-
r == null && (
|
|
4321
|
+
r == null && (Ze.set(t), He.set(e));
|
|
4279
4322
|
});
|
|
4280
4323
|
}
|
|
4281
|
-
function
|
|
4282
|
-
|
|
4324
|
+
function Wt(e, t) {
|
|
4325
|
+
Tn(e, t);
|
|
4283
4326
|
}
|
|
4284
|
-
function
|
|
4327
|
+
function kr(e) {
|
|
4285
4328
|
He.set(e);
|
|
4286
4329
|
}
|
|
4287
|
-
const
|
|
4330
|
+
const Vr = {
|
|
4288
4331
|
en: {
|
|
4289
4332
|
500: "500 - Internal server error",
|
|
4290
4333
|
showMore: "Show more",
|
|
@@ -4352,7 +4395,7 @@ const Ur = {
|
|
|
4352
4395
|
noTournaments: "No tournaments found"
|
|
4353
4396
|
}
|
|
4354
4397
|
};
|
|
4355
|
-
var
|
|
4398
|
+
var pr = { exports: {} };
|
|
4356
4399
|
/** @license
|
|
4357
4400
|
* eventsource.js
|
|
4358
4401
|
* Available under MIT License (MIT)
|
|
@@ -4360,7 +4403,7 @@ var lr = { exports: {} };
|
|
|
4360
4403
|
*/
|
|
4361
4404
|
(function(e, t) {
|
|
4362
4405
|
(function(r) {
|
|
4363
|
-
var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, s = r.XDomainRequest, a = r.ActiveXObject, l = r.EventSource, u = r.document, c = r.Promise, d = r.fetch,
|
|
4406
|
+
var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, s = r.XDomainRequest, a = r.ActiveXObject, l = r.EventSource, u = r.document, c = r.Promise, d = r.fetch, m = r.Response, E = r.TextDecoder, B = r.TextEncoder, P = r.AbortController;
|
|
4364
4407
|
if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(h) {
|
|
4365
4408
|
u.readyState = "complete";
|
|
4366
4409
|
}, !1)), o == null && a != null && (o = function() {
|
|
@@ -4371,16 +4414,16 @@ var lr = { exports: {} };
|
|
|
4371
4414
|
return b.prototype = h, new b();
|
|
4372
4415
|
}), Date.now || (Date.now = function() {
|
|
4373
4416
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
4374
|
-
}),
|
|
4417
|
+
}), P == null) {
|
|
4375
4418
|
var ee = d;
|
|
4376
4419
|
d = function(h, b) {
|
|
4377
4420
|
var g = b.signal;
|
|
4378
|
-
return ee(h, { headers: b.headers, credentials: b.credentials, cache: b.cache }).then(function(
|
|
4379
|
-
var y =
|
|
4421
|
+
return ee(h, { headers: b.headers, credentials: b.credentials, cache: b.cache }).then(function(p) {
|
|
4422
|
+
var y = p.body.getReader();
|
|
4380
4423
|
return g._reader = y, g._aborted && g._reader.cancel(), {
|
|
4381
|
-
status:
|
|
4382
|
-
statusText:
|
|
4383
|
-
headers:
|
|
4424
|
+
status: p.status,
|
|
4425
|
+
statusText: p.statusText,
|
|
4426
|
+
headers: p.headers,
|
|
4384
4427
|
body: {
|
|
4385
4428
|
getReader: function() {
|
|
4386
4429
|
return y;
|
|
@@ -4388,7 +4431,7 @@ var lr = { exports: {} };
|
|
|
4388
4431
|
}
|
|
4389
4432
|
};
|
|
4390
4433
|
});
|
|
4391
|
-
},
|
|
4434
|
+
}, P = function() {
|
|
4392
4435
|
this.signal = {
|
|
4393
4436
|
_reader: null,
|
|
4394
4437
|
_aborted: !1
|
|
@@ -4397,108 +4440,108 @@ var lr = { exports: {} };
|
|
|
4397
4440
|
};
|
|
4398
4441
|
};
|
|
4399
4442
|
}
|
|
4400
|
-
function
|
|
4443
|
+
function pe() {
|
|
4401
4444
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
4402
4445
|
}
|
|
4403
|
-
|
|
4404
|
-
function b(
|
|
4405
|
-
if (
|
|
4406
|
-
return
|
|
4407
|
-
if (
|
|
4408
|
-
return
|
|
4409
|
-
if (
|
|
4410
|
-
return
|
|
4446
|
+
pe.prototype.decode = function(h) {
|
|
4447
|
+
function b(O, I, _) {
|
|
4448
|
+
if (_ === 1)
|
|
4449
|
+
return O >= 128 >> I && O << I <= 2047;
|
|
4450
|
+
if (_ === 2)
|
|
4451
|
+
return O >= 2048 >> I && O << I <= 55295 || O >= 57344 >> I && O << I <= 65535;
|
|
4452
|
+
if (_ === 3)
|
|
4453
|
+
return O >= 65536 >> I && O << I <= 1114111;
|
|
4411
4454
|
throw new Error();
|
|
4412
4455
|
}
|
|
4413
|
-
function g(
|
|
4414
|
-
if (
|
|
4415
|
-
return
|
|
4416
|
-
if (
|
|
4417
|
-
return
|
|
4418
|
-
if (
|
|
4456
|
+
function g(O, I) {
|
|
4457
|
+
if (O === 6 * 1)
|
|
4458
|
+
return I >> 6 > 15 ? 3 : I > 31 ? 2 : 1;
|
|
4459
|
+
if (O === 6 * 2)
|
|
4460
|
+
return I > 15 ? 3 : 2;
|
|
4461
|
+
if (O === 6 * 3)
|
|
4419
4462
|
return 3;
|
|
4420
4463
|
throw new Error();
|
|
4421
4464
|
}
|
|
4422
|
-
for (var
|
|
4423
|
-
var T = h[
|
|
4424
|
-
v !== 0 && (T < 128 || T > 191 || !b(x << 6 | T & 63, v - 6, g(v, x))) && (v = 0, x =
|
|
4465
|
+
for (var p = 65533, y = "", v = this.bitsNeeded, x = this.codePoint, M = 0; M < h.length; M += 1) {
|
|
4466
|
+
var T = h[M];
|
|
4467
|
+
v !== 0 && (T < 128 || T > 191 || !b(x << 6 | T & 63, v - 6, g(v, x))) && (v = 0, x = p, y += String.fromCharCode(x)), v === 0 ? (T >= 0 && T <= 127 ? (v = 0, x = T) : T >= 192 && T <= 223 ? (v = 6 * 1, x = T & 31) : T >= 224 && T <= 239 ? (v = 6 * 2, x = T & 15) : T >= 240 && T <= 247 ? (v = 6 * 3, x = T & 7) : (v = 0, x = p), v !== 0 && !b(x, v, g(v, x)) && (v = 0, x = p)) : (v -= 6, x = x << 6 | T & 63), v === 0 && (x <= 65535 ? y += String.fromCharCode(x) : (y += String.fromCharCode(55296 + (x - 65535 - 1 >> 10)), y += String.fromCharCode(56320 + (x - 65535 - 1 & 1023))));
|
|
4425
4468
|
}
|
|
4426
4469
|
return this.bitsNeeded = v, this.codePoint = x, y;
|
|
4427
4470
|
};
|
|
4428
4471
|
var ie = function() {
|
|
4429
4472
|
try {
|
|
4430
|
-
return new
|
|
4473
|
+
return new E().decode(new B().encode("test"), { stream: !0 }) === "test";
|
|
4431
4474
|
} catch (h) {
|
|
4432
4475
|
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + h);
|
|
4433
4476
|
}
|
|
4434
4477
|
return !1;
|
|
4435
4478
|
};
|
|
4436
|
-
(
|
|
4437
|
-
var
|
|
4479
|
+
(E == null || B == null || !ie()) && (E = pe);
|
|
4480
|
+
var N = function() {
|
|
4438
4481
|
};
|
|
4439
4482
|
function $(h) {
|
|
4440
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress =
|
|
4483
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = N, this.onload = N, this.onerror = N, this.onreadystatechange = N, this._contentType = "", this._xhr = h, this._sendTimeout = 0, this._abort = N;
|
|
4441
4484
|
}
|
|
4442
4485
|
$.prototype.open = function(h, b) {
|
|
4443
4486
|
this._abort(!0);
|
|
4444
|
-
var g = this,
|
|
4445
|
-
this._abort = function(
|
|
4446
|
-
g._sendTimeout !== 0 && (i(g._sendTimeout), g._sendTimeout = 0), (y === 1 || y === 2 || y === 3) && (y = 4,
|
|
4487
|
+
var g = this, p = this._xhr, y = 1, v = 0;
|
|
4488
|
+
this._abort = function(_) {
|
|
4489
|
+
g._sendTimeout !== 0 && (i(g._sendTimeout), g._sendTimeout = 0), (y === 1 || y === 2 || y === 3) && (y = 4, p.onload = N, p.onerror = N, p.onabort = N, p.onprogress = N, p.onreadystatechange = N, p.abort(), v !== 0 && (i(v), v = 0), _ || (g.readyState = 4, g.onabort(null), g.onreadystatechange())), y = 0;
|
|
4447
4490
|
};
|
|
4448
4491
|
var x = function() {
|
|
4449
4492
|
if (y === 1) {
|
|
4450
|
-
var
|
|
4451
|
-
if ("contentType" in
|
|
4452
|
-
|
|
4493
|
+
var _ = 0, f = "", S = void 0;
|
|
4494
|
+
if ("contentType" in p)
|
|
4495
|
+
_ = 200, f = "OK", S = p.contentType;
|
|
4453
4496
|
else
|
|
4454
4497
|
try {
|
|
4455
|
-
|
|
4456
|
-
} catch (
|
|
4457
|
-
|
|
4498
|
+
_ = p.status, f = p.statusText, S = p.getResponseHeader("Content-Type");
|
|
4499
|
+
} catch (L) {
|
|
4500
|
+
_ = 0, f = "", S = void 0;
|
|
4458
4501
|
}
|
|
4459
|
-
|
|
4502
|
+
_ !== 0 && (y = 2, g.readyState = 2, g.status = _, g.statusText = f, g._contentType = S, g.onreadystatechange());
|
|
4460
4503
|
}
|
|
4461
|
-
},
|
|
4504
|
+
}, M = function() {
|
|
4462
4505
|
if (x(), y === 2 || y === 3) {
|
|
4463
4506
|
y = 3;
|
|
4464
|
-
var
|
|
4507
|
+
var _ = "";
|
|
4465
4508
|
try {
|
|
4466
|
-
|
|
4509
|
+
_ = p.responseText;
|
|
4467
4510
|
} catch (f) {
|
|
4468
4511
|
}
|
|
4469
|
-
g.readyState = 3, g.responseText =
|
|
4512
|
+
g.readyState = 3, g.responseText = _, g.onprogress();
|
|
4470
4513
|
}
|
|
4471
|
-
}, T = function(
|
|
4514
|
+
}, T = function(_, f) {
|
|
4472
4515
|
if ((f == null || f.preventDefault == null) && (f = {
|
|
4473
|
-
preventDefault:
|
|
4474
|
-
}),
|
|
4475
|
-
if (y = 4, v !== 0 && (i(v), v = 0), g.readyState = 4,
|
|
4516
|
+
preventDefault: N
|
|
4517
|
+
}), M(), y === 1 || y === 2 || y === 3) {
|
|
4518
|
+
if (y = 4, v !== 0 && (i(v), v = 0), g.readyState = 4, _ === "load")
|
|
4476
4519
|
g.onload(f);
|
|
4477
|
-
else if (
|
|
4520
|
+
else if (_ === "error")
|
|
4478
4521
|
g.onerror(f);
|
|
4479
|
-
else if (
|
|
4522
|
+
else if (_ === "abort")
|
|
4480
4523
|
g.onabort(f);
|
|
4481
4524
|
else
|
|
4482
4525
|
throw new TypeError();
|
|
4483
4526
|
g.onreadystatechange();
|
|
4484
4527
|
}
|
|
4485
|
-
},
|
|
4486
|
-
|
|
4487
|
-
},
|
|
4528
|
+
}, O = function(_) {
|
|
4529
|
+
p != null && (p.readyState === 4 ? (!("onload" in p) || !("onerror" in p) || !("onabort" in p)) && T(p.responseText === "" ? "error" : "load", _) : p.readyState === 3 ? "onprogress" in p || M() : p.readyState === 2 && x());
|
|
4530
|
+
}, I = function() {
|
|
4488
4531
|
v = n(function() {
|
|
4489
|
-
|
|
4490
|
-
}, 500),
|
|
4532
|
+
I();
|
|
4533
|
+
}, 500), p.readyState === 3 && M();
|
|
4491
4534
|
};
|
|
4492
|
-
"onload" in
|
|
4493
|
-
T("load",
|
|
4494
|
-
}), "onerror" in
|
|
4495
|
-
T("error",
|
|
4496
|
-
}), "onabort" in
|
|
4497
|
-
T("abort",
|
|
4498
|
-
}), "onprogress" in
|
|
4499
|
-
|
|
4500
|
-
}), ("contentType" in
|
|
4501
|
-
|
|
4535
|
+
"onload" in p && (p.onload = function(_) {
|
|
4536
|
+
T("load", _);
|
|
4537
|
+
}), "onerror" in p && (p.onerror = function(_) {
|
|
4538
|
+
T("error", _);
|
|
4539
|
+
}), "onabort" in p && (p.onabort = function(_) {
|
|
4540
|
+
T("abort", _);
|
|
4541
|
+
}), "onprogress" in p && (p.onprogress = M), "onreadystatechange" in p && (p.onreadystatechange = function(_) {
|
|
4542
|
+
O(_);
|
|
4543
|
+
}), ("contentType" in p || !("ontimeout" in o.prototype)) && (b += (b.indexOf("?") === -1 ? "?" : "&") + "padding=true"), p.open(h, b, !0), "readyState" in p && (v = n(function() {
|
|
4544
|
+
I();
|
|
4502
4545
|
}, 0));
|
|
4503
4546
|
}, $.prototype.abort = function() {
|
|
4504
4547
|
this._abort(!1);
|
|
@@ -4532,9 +4575,9 @@ var lr = { exports: {} };
|
|
|
4532
4575
|
}
|
|
4533
4576
|
function le(h) {
|
|
4534
4577
|
for (var b = /* @__PURE__ */ Object.create(null), g = h.split(`\r
|
|
4535
|
-
`),
|
|
4536
|
-
var y = g[
|
|
4537
|
-
b[Z(x)] =
|
|
4578
|
+
`), p = 0; p < g.length; p += 1) {
|
|
4579
|
+
var y = g[p], v = y.split(": "), x = v.shift(), M = v.join(": ");
|
|
4580
|
+
b[Z(x)] = M;
|
|
4538
4581
|
}
|
|
4539
4582
|
this._map = b;
|
|
4540
4583
|
}
|
|
@@ -4543,22 +4586,22 @@ var lr = { exports: {} };
|
|
|
4543
4586
|
}, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
|
|
4544
4587
|
function ge() {
|
|
4545
4588
|
}
|
|
4546
|
-
ge.prototype.open = function(h, b, g,
|
|
4589
|
+
ge.prototype.open = function(h, b, g, p, y, v, x) {
|
|
4547
4590
|
h.open("GET", y);
|
|
4548
|
-
var
|
|
4591
|
+
var M = 0;
|
|
4549
4592
|
h.onprogress = function() {
|
|
4550
|
-
var
|
|
4551
|
-
|
|
4552
|
-
}, h.onerror = function(
|
|
4553
|
-
|
|
4593
|
+
var O = h.responseText, I = O.slice(M);
|
|
4594
|
+
M += I.length, g(I);
|
|
4595
|
+
}, h.onerror = function(O) {
|
|
4596
|
+
O.preventDefault(), p(new Error("NetworkError"));
|
|
4554
4597
|
}, h.onload = function() {
|
|
4555
|
-
|
|
4598
|
+
p(null);
|
|
4556
4599
|
}, h.onabort = function() {
|
|
4557
|
-
|
|
4600
|
+
p(null);
|
|
4558
4601
|
}, h.onreadystatechange = function() {
|
|
4559
4602
|
if (h.readyState === o.HEADERS_RECEIVED) {
|
|
4560
|
-
var
|
|
4561
|
-
b(
|
|
4603
|
+
var O = h.status, I = h.statusText, _ = h.getResponseHeader("Content-Type"), f = h.getAllResponseHeaders();
|
|
4604
|
+
b(O, I, _, new le(f));
|
|
4562
4605
|
}
|
|
4563
4606
|
}, h.withCredentials = v;
|
|
4564
4607
|
for (var T in x)
|
|
@@ -4571,75 +4614,75 @@ var lr = { exports: {} };
|
|
|
4571
4614
|
Re.prototype.get = function(h) {
|
|
4572
4615
|
return this._headers.get(h);
|
|
4573
4616
|
};
|
|
4574
|
-
function
|
|
4617
|
+
function Pe() {
|
|
4575
4618
|
}
|
|
4576
|
-
|
|
4577
|
-
var
|
|
4619
|
+
Pe.prototype.open = function(h, b, g, p, y, v, x) {
|
|
4620
|
+
var M = null, T = new P(), O = T.signal, I = new E();
|
|
4578
4621
|
return d(y, {
|
|
4579
4622
|
headers: x,
|
|
4580
4623
|
credentials: v ? "include" : "same-origin",
|
|
4581
|
-
signal:
|
|
4624
|
+
signal: O,
|
|
4582
4625
|
cache: "no-store"
|
|
4583
|
-
}).then(function(
|
|
4584
|
-
return
|
|
4585
|
-
var
|
|
4586
|
-
|
|
4587
|
-
if (
|
|
4626
|
+
}).then(function(_) {
|
|
4627
|
+
return M = _.body.getReader(), b(_.status, _.statusText, _.headers.get("Content-Type"), new Re(_.headers)), new c(function(f, S) {
|
|
4628
|
+
var L = function() {
|
|
4629
|
+
M.read().then(function(C) {
|
|
4630
|
+
if (C.done)
|
|
4588
4631
|
f(void 0);
|
|
4589
4632
|
else {
|
|
4590
|
-
var k =
|
|
4591
|
-
g(k),
|
|
4633
|
+
var k = I.decode(C.value, { stream: !0 });
|
|
4634
|
+
g(k), L();
|
|
4592
4635
|
}
|
|
4593
|
-
}).catch(function(
|
|
4594
|
-
S(
|
|
4636
|
+
}).catch(function(C) {
|
|
4637
|
+
S(C);
|
|
4595
4638
|
});
|
|
4596
4639
|
};
|
|
4597
|
-
|
|
4640
|
+
L();
|
|
4598
4641
|
});
|
|
4599
|
-
}).catch(function(
|
|
4600
|
-
if (
|
|
4601
|
-
return
|
|
4602
|
-
}).then(function(
|
|
4603
|
-
|
|
4642
|
+
}).catch(function(_) {
|
|
4643
|
+
if (_.name !== "AbortError")
|
|
4644
|
+
return _;
|
|
4645
|
+
}).then(function(_) {
|
|
4646
|
+
p(_);
|
|
4604
4647
|
}), {
|
|
4605
4648
|
abort: function() {
|
|
4606
|
-
|
|
4649
|
+
M != null && M.cancel(), T.abort();
|
|
4607
4650
|
}
|
|
4608
4651
|
};
|
|
4609
4652
|
};
|
|
4610
|
-
function
|
|
4653
|
+
function me() {
|
|
4611
4654
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4612
4655
|
}
|
|
4613
|
-
function
|
|
4656
|
+
function Oe(h) {
|
|
4614
4657
|
n(function() {
|
|
4615
4658
|
throw h;
|
|
4616
4659
|
}, 0);
|
|
4617
4660
|
}
|
|
4618
|
-
|
|
4661
|
+
me.prototype.dispatchEvent = function(h) {
|
|
4619
4662
|
h.target = this;
|
|
4620
4663
|
var b = this._listeners[h.type];
|
|
4621
4664
|
if (b != null)
|
|
4622
|
-
for (var g = b.length,
|
|
4623
|
-
var y = b[
|
|
4665
|
+
for (var g = b.length, p = 0; p < g; p += 1) {
|
|
4666
|
+
var y = b[p];
|
|
4624
4667
|
try {
|
|
4625
4668
|
typeof y.handleEvent == "function" ? y.handleEvent(h) : y.call(this, h);
|
|
4626
4669
|
} catch (v) {
|
|
4627
|
-
|
|
4670
|
+
Oe(v);
|
|
4628
4671
|
}
|
|
4629
4672
|
}
|
|
4630
|
-
},
|
|
4673
|
+
}, me.prototype.addEventListener = function(h, b) {
|
|
4631
4674
|
h = String(h);
|
|
4632
|
-
var g = this._listeners,
|
|
4633
|
-
|
|
4634
|
-
for (var y = !1, v = 0; v <
|
|
4635
|
-
|
|
4636
|
-
y ||
|
|
4637
|
-
},
|
|
4675
|
+
var g = this._listeners, p = g[h];
|
|
4676
|
+
p == null && (p = [], g[h] = p);
|
|
4677
|
+
for (var y = !1, v = 0; v < p.length; v += 1)
|
|
4678
|
+
p[v] === b && (y = !0);
|
|
4679
|
+
y || p.push(b);
|
|
4680
|
+
}, me.prototype.removeEventListener = function(h, b) {
|
|
4638
4681
|
h = String(h);
|
|
4639
|
-
var g = this._listeners,
|
|
4640
|
-
if (
|
|
4641
|
-
for (var y = [], v = 0; v <
|
|
4642
|
-
|
|
4682
|
+
var g = this._listeners, p = g[h];
|
|
4683
|
+
if (p != null) {
|
|
4684
|
+
for (var y = [], v = 0; v < p.length; v += 1)
|
|
4685
|
+
p[v] !== b && y.push(p[v]);
|
|
4643
4686
|
y.length === 0 ? delete g[h] : g[h] = y;
|
|
4644
4687
|
}
|
|
4645
4688
|
};
|
|
@@ -4650,40 +4693,40 @@ var lr = { exports: {} };
|
|
|
4650
4693
|
te.call(this, h), this.data = b.data, this.lastEventId = b.lastEventId;
|
|
4651
4694
|
}
|
|
4652
4695
|
ft.prototype = Object.create(te.prototype);
|
|
4653
|
-
function
|
|
4696
|
+
function Be(h, b) {
|
|
4654
4697
|
te.call(this, h), this.status = b.status, this.statusText = b.statusText, this.headers = b.headers;
|
|
4655
4698
|
}
|
|
4656
|
-
|
|
4657
|
-
function
|
|
4699
|
+
Be.prototype = Object.create(te.prototype);
|
|
4700
|
+
function Qe(h, b) {
|
|
4658
4701
|
te.call(this, h), this.error = b.error;
|
|
4659
4702
|
}
|
|
4660
|
-
|
|
4661
|
-
var
|
|
4703
|
+
Qe.prototype = Object.create(te.prototype);
|
|
4704
|
+
var Ce = -1, W = 0, he = 1, ve = 2, oe = -1, se = 0, _e = 1, Ye = 2, be = 3, Ke = /^text\/event\-stream(;.*)?$/i, ct = 1e3, Lt = 18e6, et = function(h, b) {
|
|
4662
4705
|
var g = h == null ? b : parseInt(h, 10);
|
|
4663
4706
|
return g !== g && (g = b), De(g);
|
|
4664
4707
|
}, De = function(h) {
|
|
4665
|
-
return Math.min(Math.max(h, ct),
|
|
4708
|
+
return Math.min(Math.max(h, ct), Lt);
|
|
4666
4709
|
}, Te = function(h, b, g) {
|
|
4667
4710
|
try {
|
|
4668
4711
|
typeof b == "function" && b.call(h, g);
|
|
4669
|
-
} catch (
|
|
4670
|
-
|
|
4712
|
+
} catch (p) {
|
|
4713
|
+
Oe(p);
|
|
4671
4714
|
}
|
|
4672
4715
|
};
|
|
4673
4716
|
function J(h, b) {
|
|
4674
|
-
|
|
4717
|
+
me.call(this), b = b || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, dt(this, h, b);
|
|
4675
4718
|
}
|
|
4676
|
-
function
|
|
4719
|
+
function Nt() {
|
|
4677
4720
|
return o != null && "withCredentials" in o.prototype || s == null ? new o() : new s();
|
|
4678
4721
|
}
|
|
4679
|
-
var
|
|
4722
|
+
var Mt = d != null && m != null && "body" in m.prototype;
|
|
4680
4723
|
function dt(h, b, g) {
|
|
4681
4724
|
b = String(b);
|
|
4682
|
-
var
|
|
4725
|
+
var p = !!g.withCredentials, y = g.lastEventIdQueryParameterName || "lastEventId", v = De(1e3), x = et(g.heartbeatTimeout, 45e3), M = "", T = v, O = !1, I = 0, _ = g.headers || {}, f = g.Transport, S = Mt && f == null ? void 0 : new $(f != null ? new f() : Nt()), L = f != null && typeof f != "string" ? new f() : S == null ? new Pe() : new ge(), C = void 0, k = 0, q = Ce, Se = "", tt = "", G = "", pt = "", Q = se, Rt = 0, Ie = 0, Bn = function(V, j, ae, ue) {
|
|
4683
4726
|
if (q === W)
|
|
4684
|
-
if (V === 200 && ae != null &&
|
|
4685
|
-
q = he,
|
|
4686
|
-
var Y = new
|
|
4727
|
+
if (V === 200 && ae != null && Ke.test(ae)) {
|
|
4728
|
+
q = he, O = Date.now(), T = v, h.readyState = he;
|
|
4729
|
+
var Y = new Be("open", {
|
|
4687
4730
|
status: V,
|
|
4688
4731
|
statusText: j,
|
|
4689
4732
|
headers: ue
|
|
@@ -4691,41 +4734,41 @@ var lr = { exports: {} };
|
|
|
4691
4734
|
h.dispatchEvent(Y), Te(h, h.onopen, Y);
|
|
4692
4735
|
} else {
|
|
4693
4736
|
var X = "";
|
|
4694
|
-
V !== 200 ? (j && (j = j.replace(/\s+/g, " ")), X = "EventSource's response has a status " + V + " " + j + " that is not 200. Aborting the connection.") : X = "EventSource's response has a Content-Type specifying an unsupported type: " + (ae == null ? "-" : ae.replace(/\s+/g, " ")) + ". Aborting the connection.",
|
|
4695
|
-
var Y = new
|
|
4737
|
+
V !== 200 ? (j && (j = j.replace(/\s+/g, " ")), X = "EventSource's response has a status " + V + " " + j + " that is not 200. Aborting the connection.") : X = "EventSource's response has a Content-Type specifying an unsupported type: " + (ae == null ? "-" : ae.replace(/\s+/g, " ")) + ". Aborting the connection.", Dt();
|
|
4738
|
+
var Y = new Be("error", {
|
|
4696
4739
|
status: V,
|
|
4697
4740
|
statusText: j,
|
|
4698
4741
|
headers: ue
|
|
4699
4742
|
});
|
|
4700
4743
|
h.dispatchEvent(Y), Te(h, h.onerror, Y), console.error(X);
|
|
4701
4744
|
}
|
|
4702
|
-
},
|
|
4745
|
+
}, Cn = function(V) {
|
|
4703
4746
|
if (q === he) {
|
|
4704
4747
|
for (var j = -1, ae = 0; ae < V.length; ae += 1) {
|
|
4705
4748
|
var ue = V.charCodeAt(ae);
|
|
4706
4749
|
(ue === 10 || ue === 13) && (j = ae);
|
|
4707
4750
|
}
|
|
4708
|
-
var Y = (j !== -1 ?
|
|
4709
|
-
|
|
4751
|
+
var Y = (j !== -1 ? pt : "") + V.slice(0, j + 1);
|
|
4752
|
+
pt = (j === -1 ? pt : "") + V.slice(j + 1), V !== "" && (O = Date.now(), I += V.length);
|
|
4710
4753
|
for (var X = 0; X < Y.length; X += 1) {
|
|
4711
4754
|
var ue = Y.charCodeAt(X);
|
|
4712
4755
|
if (Q === oe && ue === 10)
|
|
4713
4756
|
Q = se;
|
|
4714
4757
|
else if (Q === oe && (Q = se), ue === 13 || ue === 10) {
|
|
4715
4758
|
if (Q !== se) {
|
|
4716
|
-
Q ===
|
|
4717
|
-
var Ee = Y.slice(
|
|
4759
|
+
Q === _e && (Ie = X + 1);
|
|
4760
|
+
var Ee = Y.slice(Rt, Ie - 1), xe = Y.slice(Ie + (Ie < X && Y.charCodeAt(Ie) === 32 ? 1 : 0), X);
|
|
4718
4761
|
Ee === "data" ? (Se += `
|
|
4719
|
-
`, Se +=
|
|
4720
|
-
|
|
4762
|
+
`, Se += xe) : Ee === "id" ? tt = xe : Ee === "event" ? G = xe : Ee === "retry" ? (v = et(xe, v), T = v) : Ee === "heartbeatTimeout" && (x = et(xe, x), k !== 0 && (i(k), k = n(function() {
|
|
4763
|
+
rt();
|
|
4721
4764
|
}, x)));
|
|
4722
4765
|
}
|
|
4723
4766
|
if (Q === se) {
|
|
4724
4767
|
if (Se !== "") {
|
|
4725
|
-
|
|
4768
|
+
M = tt, G === "" && (G = "message");
|
|
4726
4769
|
var Ue = new ft(G, {
|
|
4727
4770
|
data: Se.slice(1),
|
|
4728
|
-
lastEventId:
|
|
4771
|
+
lastEventId: tt
|
|
4729
4772
|
});
|
|
4730
4773
|
if (h.dispatchEvent(Ue), G === "open" ? Te(h, h.onopen, Ue) : G === "message" ? Te(h, h.onmessage, Ue) : G === "error" && Te(h, h.onerror, Ue), q === ve)
|
|
4731
4774
|
return;
|
|
@@ -4734,40 +4777,40 @@ var lr = { exports: {} };
|
|
|
4734
4777
|
}
|
|
4735
4778
|
Q = ue === 13 ? oe : se;
|
|
4736
4779
|
} else
|
|
4737
|
-
Q === se && (
|
|
4780
|
+
Q === se && (Rt = X, Q = _e), Q === _e ? ue === 58 && (Ie = X + 1, Q = Ye) : Q === Ye && (Q = be);
|
|
4738
4781
|
}
|
|
4739
4782
|
}
|
|
4740
|
-
},
|
|
4783
|
+
}, gr = function(V) {
|
|
4741
4784
|
if (q === he || q === W) {
|
|
4742
|
-
q =
|
|
4743
|
-
|
|
4785
|
+
q = Ce, k !== 0 && (i(k), k = 0), k = n(function() {
|
|
4786
|
+
rt();
|
|
4744
4787
|
}, T), T = De(Math.min(v * 16, T * 2)), h.readyState = W;
|
|
4745
|
-
var j = new
|
|
4788
|
+
var j = new Qe("error", { error: V });
|
|
4746
4789
|
h.dispatchEvent(j), Te(h, h.onerror, j), V != null && console.error(V);
|
|
4747
4790
|
}
|
|
4748
|
-
},
|
|
4749
|
-
q = ve,
|
|
4750
|
-
},
|
|
4751
|
-
if (k = 0, q !==
|
|
4752
|
-
if (!
|
|
4753
|
-
|
|
4791
|
+
}, Dt = function() {
|
|
4792
|
+
q = ve, C != null && (C.abort(), C = void 0), k !== 0 && (i(k), k = 0), h.readyState = ve;
|
|
4793
|
+
}, rt = function() {
|
|
4794
|
+
if (k = 0, q !== Ce) {
|
|
4795
|
+
if (!O && C != null)
|
|
4796
|
+
gr(new Error("No activity within " + x + " milliseconds. " + (q === W ? "No response received." : I + " chars received.") + " Reconnecting.")), C != null && (C.abort(), C = void 0);
|
|
4754
4797
|
else {
|
|
4755
|
-
var V = Math.max((
|
|
4756
|
-
|
|
4757
|
-
|
|
4798
|
+
var V = Math.max((O || Date.now()) + x - Date.now(), 1);
|
|
4799
|
+
O = !1, k = n(function() {
|
|
4800
|
+
rt();
|
|
4758
4801
|
}, V);
|
|
4759
4802
|
}
|
|
4760
4803
|
return;
|
|
4761
4804
|
}
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
}, x), q = W, Se = "", G = "",
|
|
4805
|
+
O = !1, I = 0, k = n(function() {
|
|
4806
|
+
rt();
|
|
4807
|
+
}, x), q = W, Se = "", G = "", tt = M, pt = "", Rt = 0, Ie = 0, Q = se;
|
|
4765
4808
|
var j = b;
|
|
4766
|
-
if (b.slice(0, 5) !== "data:" && b.slice(0, 5) !== "blob:" &&
|
|
4809
|
+
if (b.slice(0, 5) !== "data:" && b.slice(0, 5) !== "blob:" && M !== "") {
|
|
4767
4810
|
var ae = b.indexOf("?");
|
|
4768
|
-
j = ae === -1 ? b : b.slice(0, ae + 1) + b.slice(ae + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(
|
|
4769
|
-
return Ue === y ? "" :
|
|
4770
|
-
}), j += (b.indexOf("?") === -1 ? "?" : "&") + y + "=" + encodeURIComponent(
|
|
4811
|
+
j = ae === -1 ? b : b.slice(0, ae + 1) + b.slice(ae + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(xe, Ue) {
|
|
4812
|
+
return Ue === y ? "" : xe;
|
|
4813
|
+
}), j += (b.indexOf("?") === -1 ? "?" : "&") + y + "=" + encodeURIComponent(M);
|
|
4771
4814
|
}
|
|
4772
4815
|
var ue = h.withCredentials, Y = {};
|
|
4773
4816
|
Y.Accept = "text/event-stream";
|
|
@@ -4776,14 +4819,14 @@ var lr = { exports: {} };
|
|
|
4776
4819
|
for (var Ee in X)
|
|
4777
4820
|
Object.prototype.hasOwnProperty.call(X, Ee) && (Y[Ee] = X[Ee]);
|
|
4778
4821
|
try {
|
|
4779
|
-
|
|
4780
|
-
} catch (
|
|
4781
|
-
throw
|
|
4822
|
+
C = L.open(S, Bn, Cn, gr, j, ue, Y);
|
|
4823
|
+
} catch (xe) {
|
|
4824
|
+
throw Dt(), xe;
|
|
4782
4825
|
}
|
|
4783
4826
|
};
|
|
4784
|
-
h.url = b, h.readyState = W, h.withCredentials =
|
|
4827
|
+
h.url = b, h.readyState = W, h.withCredentials = p, h.headers = _, h._close = Dt, rt();
|
|
4785
4828
|
}
|
|
4786
|
-
J.prototype = Object.create(
|
|
4829
|
+
J.prototype = Object.create(me.prototype), J.prototype.CONNECTING = W, J.prototype.OPEN = he, J.prototype.CLOSED = ve, J.prototype.close = function() {
|
|
4787
4830
|
this._close();
|
|
4788
4831
|
}, J.CONNECTING = W, J.OPEN = he, J.CLOSED = ve, J.prototype.withCredentials = void 0;
|
|
4789
4832
|
var Fe = l;
|
|
@@ -4795,9 +4838,9 @@ var lr = { exports: {} };
|
|
|
4795
4838
|
}(function(h) {
|
|
4796
4839
|
h.EventSourcePolyfill = J, h.NativeEventSource = l, h.EventSource = Fe;
|
|
4797
4840
|
});
|
|
4798
|
-
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self :
|
|
4799
|
-
})(
|
|
4800
|
-
var
|
|
4841
|
+
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : xi : globalThis);
|
|
4842
|
+
})(pr, pr.exports);
|
|
4843
|
+
var ds = pr.exports;
|
|
4801
4844
|
if (typeof window != "undefined") {
|
|
4802
4845
|
let e = function(t) {
|
|
4803
4846
|
return function(...r) {
|
|
@@ -4810,7 +4853,7 @@ if (typeof window != "undefined") {
|
|
|
4810
4853
|
}
|
|
4811
4854
|
};
|
|
4812
4855
|
};
|
|
4813
|
-
customElements.define = e(customElements.define), import("./CasinoTournamentsFilterController-
|
|
4856
|
+
customElements.define = e(customElements.define), import("./CasinoTournamentsFilterController-D8NP0ZIy.js").then(({ default: t }) => {
|
|
4814
4857
|
!customElements.get("casino-tournaments-filter-controller") && customElements.define("casino-tournaments-filter-controller", t.element);
|
|
4815
4858
|
});
|
|
4816
4859
|
}
|
|
@@ -4826,52 +4869,52 @@ if (typeof window != "undefined") {
|
|
|
4826
4869
|
}
|
|
4827
4870
|
};
|
|
4828
4871
|
};
|
|
4829
|
-
customElements.define = e(customElements.define), import("./CasinoTournamentsListController-
|
|
4872
|
+
customElements.define = e(customElements.define), import("./CasinoTournamentsListController-CGdBHJDM.js").then(({ default: t }) => {
|
|
4830
4873
|
!customElements.get("casino-tournaments-list-controller") && customElements.define("casino-tournaments-list-controller", t.element);
|
|
4831
4874
|
});
|
|
4832
4875
|
}
|
|
4833
|
-
const
|
|
4834
|
-
function
|
|
4835
|
-
|
|
4876
|
+
const Xr = (e) => e.length > 0 && e != "false";
|
|
4877
|
+
function ps(e) {
|
|
4878
|
+
Un(e, "svelte-v0e19m", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ShowMoreButton{background:var(--emw--color-contrast, #07072A);font-size:18px;width:280px;height:60px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;margin-bottom:20px;cursor:pointer}.ShowMoreButton:hover{opacity:0.7}.TournamentsWrapper{min-height:100vh;background:var(--emw--color-contrast, #07072A);overflow-x:hidden}.Tournaments{color:var(--emw--color-white, #FFFFFF);display:flex;flex-direction:column;position:relative;margin:0 auto;max-width:1300px;padding:24px 0}@media screen and (max-width: 1300px){.Tournaments{padding:24px 2.4%}}.Tournaments .FirstRow{width:100%;margin:0 auto}.Tournaments .SecondRow{margin:0 auto;width:100%}.Tournaments .ThirdRow{display:flex;flex-direction:column;justify-content:center}.Tournaments .ThirdRow .CenterButton{padding-top:20px;width:100%;display:flex;justify-content:center}");
|
|
4836
4879
|
}
|
|
4837
|
-
function
|
|
4880
|
+
function ms(e) {
|
|
4838
4881
|
let t, r, n, i, o, s, a = (
|
|
4839
4882
|
/*filtersLoaded*/
|
|
4840
|
-
e[19] &&
|
|
4883
|
+
e[19] && zr(e)
|
|
4841
4884
|
);
|
|
4842
|
-
function l(
|
|
4885
|
+
function l(m, E) {
|
|
4843
4886
|
return (
|
|
4844
4887
|
/*tournamentsNumber*/
|
|
4845
|
-
|
|
4888
|
+
m[20] == 0 ? vs : gs
|
|
4846
4889
|
);
|
|
4847
4890
|
}
|
|
4848
4891
|
let u = l(e), c = u(e), d = !/*allTournamentsShown*/
|
|
4849
|
-
e[21] &&
|
|
4892
|
+
e[21] && Wr(e);
|
|
4850
4893
|
return {
|
|
4851
4894
|
c() {
|
|
4852
|
-
t = z("div"), r = z("div"), n = z("div"), a && a.c(), i =
|
|
4895
|
+
t = z("div"), r = z("div"), n = z("div"), a && a.c(), i = qt(), o = z("div"), c.c(), s = qt(), d && d.c(), U(n, "class", "FirstRow"), U(n, "part", "FirstRow"), U(o, "class", "SecondRow"), U(o, "part", "SecondRow"), U(r, "class", "Tournaments"), U(r, "part", "Tournaments"), U(t, "class", "TournamentsWrapper"), U(t, "part", "TournamentsWrapper");
|
|
4853
4896
|
},
|
|
4854
|
-
m(
|
|
4855
|
-
de(
|
|
4897
|
+
m(m, E) {
|
|
4898
|
+
de(m, t, E), re(t, r), re(r, n), a && a.m(n, null), re(r, i), re(r, o), c.m(o, null), re(r, s), d && d.m(r, null);
|
|
4856
4899
|
},
|
|
4857
|
-
p(
|
|
4900
|
+
p(m, E) {
|
|
4858
4901
|
/*filtersLoaded*/
|
|
4859
|
-
|
|
4860
|
-
|
|
4902
|
+
m[19] ? a ? a.p(m, E) : (a = zr(m), a.c(), a.m(n, null)) : a && (a.d(1), a = null), u === (u = l(m)) && c ? c.p(m, E) : (c.d(1), c = u(m), c && (c.c(), c.m(o, null))), /*allTournamentsShown*/
|
|
4903
|
+
m[21] ? d && (d.d(1), d = null) : d ? d.p(m, E) : (d = Wr(m), d.c(), d.m(r, null));
|
|
4861
4904
|
},
|
|
4862
|
-
d(
|
|
4863
|
-
|
|
4905
|
+
d(m) {
|
|
4906
|
+
m && ne(t), a && a.d(), c.d(), d && d.d();
|
|
4864
4907
|
}
|
|
4865
4908
|
};
|
|
4866
4909
|
}
|
|
4867
|
-
function
|
|
4910
|
+
function bs(e) {
|
|
4868
4911
|
let t, r = (
|
|
4869
4912
|
/*$_*/
|
|
4870
4913
|
e[22]("500") + ""
|
|
4871
4914
|
), n, i, o, s;
|
|
4872
4915
|
return {
|
|
4873
4916
|
c() {
|
|
4874
|
-
t = z("p"), n = Ne(r), i =
|
|
4917
|
+
t = z("p"), n = Ne(r), i = qt(), o = z("p"), s = Ne(
|
|
4875
4918
|
/*error*/
|
|
4876
4919
|
e[17]
|
|
4877
4920
|
);
|
|
@@ -4882,8 +4925,8 @@ function fs(e) {
|
|
|
4882
4925
|
p(a, l) {
|
|
4883
4926
|
l[0] & /*$_*/
|
|
4884
4927
|
4194304 && r !== (r = /*$_*/
|
|
4885
|
-
a[22]("500") + "") &&
|
|
4886
|
-
131072 &&
|
|
4928
|
+
a[22]("500") + "") && ot(n, r), l[0] & /*error*/
|
|
4929
|
+
131072 && ot(
|
|
4887
4930
|
s,
|
|
4888
4931
|
/*error*/
|
|
4889
4932
|
a[17]
|
|
@@ -4894,7 +4937,7 @@ function fs(e) {
|
|
|
4894
4937
|
}
|
|
4895
4938
|
};
|
|
4896
4939
|
}
|
|
4897
|
-
function
|
|
4940
|
+
function zr(e) {
|
|
4898
4941
|
let t;
|
|
4899
4942
|
return {
|
|
4900
4943
|
c() {
|
|
@@ -4913,7 +4956,7 @@ function jr(e) {
|
|
|
4913
4956
|
"translationurl",
|
|
4914
4957
|
/*translationurl*/
|
|
4915
4958
|
e[4]
|
|
4916
|
-
), w(t, "filters",
|
|
4959
|
+
), w(t, "filters", xs), w(
|
|
4917
4960
|
t,
|
|
4918
4961
|
"activefilters",
|
|
4919
4962
|
/*filters*/
|
|
@@ -4955,7 +4998,7 @@ function jr(e) {
|
|
|
4955
4998
|
}
|
|
4956
4999
|
};
|
|
4957
5000
|
}
|
|
4958
|
-
function
|
|
5001
|
+
function gs(e) {
|
|
4959
5002
|
let t;
|
|
4960
5003
|
return {
|
|
4961
5004
|
c() {
|
|
@@ -5129,18 +5172,18 @@ function cs(e) {
|
|
|
5129
5172
|
}
|
|
5130
5173
|
};
|
|
5131
5174
|
}
|
|
5132
|
-
function
|
|
5175
|
+
function vs(e) {
|
|
5133
5176
|
let t;
|
|
5134
5177
|
function r(o, s) {
|
|
5135
5178
|
return (
|
|
5136
5179
|
/*isLoading*/
|
|
5137
|
-
o[18] ?
|
|
5180
|
+
o[18] ? _s : ys
|
|
5138
5181
|
);
|
|
5139
5182
|
}
|
|
5140
5183
|
let n = r(e), i = n(e);
|
|
5141
5184
|
return {
|
|
5142
5185
|
c() {
|
|
5143
|
-
i.c(), t =
|
|
5186
|
+
i.c(), t = $n();
|
|
5144
5187
|
},
|
|
5145
5188
|
m(o, s) {
|
|
5146
5189
|
i.m(o, s), de(o, t, s);
|
|
@@ -5153,7 +5196,7 @@ function ds(e) {
|
|
|
5153
5196
|
}
|
|
5154
5197
|
};
|
|
5155
5198
|
}
|
|
5156
|
-
function
|
|
5199
|
+
function ys(e) {
|
|
5157
5200
|
let t, r = (
|
|
5158
5201
|
/*$_*/
|
|
5159
5202
|
e[22]("noTournaments") + ""
|
|
@@ -5168,14 +5211,14 @@ function ms(e) {
|
|
|
5168
5211
|
p(i, o) {
|
|
5169
5212
|
o[0] & /*$_*/
|
|
5170
5213
|
4194304 && r !== (r = /*$_*/
|
|
5171
|
-
i[22]("noTournaments") + "") &&
|
|
5214
|
+
i[22]("noTournaments") + "") && ot(n, r);
|
|
5172
5215
|
},
|
|
5173
5216
|
d(i) {
|
|
5174
5217
|
i && ne(t);
|
|
5175
5218
|
}
|
|
5176
5219
|
};
|
|
5177
5220
|
}
|
|
5178
|
-
function
|
|
5221
|
+
function _s(e) {
|
|
5179
5222
|
let t, r = (
|
|
5180
5223
|
/*$_*/
|
|
5181
5224
|
e[22]("loading") + ""
|
|
@@ -5190,14 +5233,14 @@ function ps(e) {
|
|
|
5190
5233
|
p(i, o) {
|
|
5191
5234
|
o[0] & /*$_*/
|
|
5192
5235
|
4194304 && r !== (r = /*$_*/
|
|
5193
|
-
i[22]("loading") + "") &&
|
|
5236
|
+
i[22]("loading") + "") && ot(n, r);
|
|
5194
5237
|
},
|
|
5195
5238
|
d(i) {
|
|
5196
5239
|
i && ne(t);
|
|
5197
5240
|
}
|
|
5198
5241
|
};
|
|
5199
5242
|
}
|
|
5200
|
-
function
|
|
5243
|
+
function Wr(e) {
|
|
5201
5244
|
let t, r, n, i = (
|
|
5202
5245
|
/*$_*/
|
|
5203
5246
|
e[22]("showMore") + ""
|
|
@@ -5207,7 +5250,7 @@ function $r(e) {
|
|
|
5207
5250
|
t = z("div"), r = z("div"), n = z("button"), o = Ne(i), U(n, "class", "ShowMoreButton"), U(n, "part", "ShowMoreButton"), U(n, "title", "Show More"), U(r, "class", "CenterButton"), U(r, "part", "CenterButton"), U(t, "class", "ThirdRow"), U(t, "part", "ThirdRow");
|
|
5208
5251
|
},
|
|
5209
5252
|
m(l, u) {
|
|
5210
|
-
de(l, t, u), re(t, r), re(r, n), re(n, o), s || (a =
|
|
5253
|
+
de(l, t, u), re(t, r), re(r, n), re(n, o), s || (a = Zt(
|
|
5211
5254
|
n,
|
|
5212
5255
|
"click",
|
|
5213
5256
|
/*click_handler*/
|
|
@@ -5217,19 +5260,19 @@ function $r(e) {
|
|
|
5217
5260
|
p(l, u) {
|
|
5218
5261
|
u[0] & /*$_*/
|
|
5219
5262
|
4194304 && i !== (i = /*$_*/
|
|
5220
|
-
l[22]("showMore") + "") &&
|
|
5263
|
+
l[22]("showMore") + "") && ot(o, i);
|
|
5221
5264
|
},
|
|
5222
5265
|
d(l) {
|
|
5223
5266
|
l && ne(t), s = !1, a();
|
|
5224
5267
|
}
|
|
5225
5268
|
};
|
|
5226
5269
|
}
|
|
5227
|
-
function
|
|
5270
|
+
function Es(e) {
|
|
5228
5271
|
let t;
|
|
5229
5272
|
function r(o, s) {
|
|
5230
5273
|
return (
|
|
5231
5274
|
/*hasErrors*/
|
|
5232
|
-
o[16] ?
|
|
5275
|
+
o[16] ? bs : ms
|
|
5233
5276
|
);
|
|
5234
5277
|
}
|
|
5235
5278
|
let n = r(e), i = n(e);
|
|
@@ -5250,103 +5293,103 @@ function bs(e) {
|
|
|
5250
5293
|
}
|
|
5251
5294
|
};
|
|
5252
5295
|
}
|
|
5253
|
-
let
|
|
5254
|
-
function
|
|
5296
|
+
let xs = "All,Scheduled,Ongoing,Finished";
|
|
5297
|
+
function ws(e, t, r) {
|
|
5255
5298
|
let n;
|
|
5256
|
-
|
|
5257
|
-
let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { translationurl: l = "" } = t, { numberoftournaments: u = "6" } = t, { showmorestep: c = "2" } = t, { filters: d = "All" } = t, { loginevent:
|
|
5258
|
-
|
|
5259
|
-
const
|
|
5299
|
+
Fn(e, hs, (f) => r(22, n = f));
|
|
5300
|
+
let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { translationurl: l = "" } = t, { numberoftournaments: u = "6" } = t, { showmorestep: c = "2" } = t, { filters: d = "All" } = t, { loginevent: m = "" } = t, { registerevent: E = "" } = t, { loginurl: B = "" } = t, { registerurl: P = "" } = t, { currency: ee = "EUR" } = t, { keepbrowsercontext: pe = "false" } = t, { sorttype: ie = "" } = t, { sortorder: N = "" } = t, { starttimeafter: $ = "" } = t, { showanonymoustournaments: Z = "true" } = t, { clientstyling: le = "" } = t, { clientstylingurl: ge = "" } = t, { delaybeforeload: Re = 1e3 } = t, Pe = !1, me = "", Oe = !1, te = "", ft = window.navigator.userAgent, Be = !0, Qe = !1, Ce = !1, W, he = 0, ve = !1, oe = 6, se = !0, _e = [], Ye, be, Ke = !1, ct;
|
|
5301
|
+
cs({ withLocale: "en", translations: {} });
|
|
5302
|
+
const Lt = () => {
|
|
5260
5303
|
fetch(l).then((S) => S.json()).then((S) => {
|
|
5261
|
-
ct = S, Object.keys(S).forEach((
|
|
5262
|
-
|
|
5304
|
+
ct = S, Object.keys(S).forEach((L) => {
|
|
5305
|
+
Wt(L, S[L]);
|
|
5263
5306
|
});
|
|
5264
5307
|
}).catch((S) => {
|
|
5265
5308
|
console.log(S);
|
|
5266
5309
|
});
|
|
5267
|
-
},
|
|
5310
|
+
}, et = (f) => {
|
|
5268
5311
|
f && Object.keys(f).forEach((S) => {
|
|
5269
|
-
|
|
5312
|
+
Wt(S, f[S]);
|
|
5270
5313
|
});
|
|
5271
5314
|
};
|
|
5272
|
-
Object.keys(
|
|
5273
|
-
|
|
5315
|
+
Object.keys(Vr).forEach((f) => {
|
|
5316
|
+
Wt(f, Vr[f]);
|
|
5274
5317
|
});
|
|
5275
5318
|
const De = (f) => {
|
|
5276
|
-
f.data && f.data.type === "UserSessionID" && (
|
|
5277
|
-
}, Te = (f) => f == "Scheduled" ? "Unstarted" : f == "Ongoing" ? "Running" : "Closing|Closed", J = (f, S,
|
|
5278
|
-
r(18,
|
|
5279
|
-
const
|
|
5319
|
+
f.data && f.data.type === "UserSessionID" && (Oe = !0, r(30, te = f.data.session), f.data.userid, J(s, 0, oe)), f.data && f.data.type === "TournamentsFiltersSelected" && (_e = f.data.filters, J(s, 0, oe)), f.data && f.data.type === "TournamentThumbnailMounted" && et(ct);
|
|
5320
|
+
}, Te = (f) => f == "Scheduled" ? "Unstarted" : f == "Ongoing" ? "Running" : "Closing|Closed", J = (f, S, L) => Le(this, null, function* () {
|
|
5321
|
+
r(18, Be = !0), r(20, he = 0);
|
|
5322
|
+
const C = yield dt(f, S, L);
|
|
5280
5323
|
setTimeout(
|
|
5281
5324
|
() => {
|
|
5282
5325
|
window.postMessage(
|
|
5283
5326
|
{
|
|
5284
5327
|
type: "TournamentList",
|
|
5285
|
-
tournamentList:
|
|
5328
|
+
tournamentList: C.items
|
|
5286
5329
|
},
|
|
5287
5330
|
window.location.href
|
|
5288
5331
|
);
|
|
5289
5332
|
},
|
|
5290
5333
|
50
|
|
5291
|
-
), r(18,
|
|
5292
|
-
}),
|
|
5293
|
-
const
|
|
5334
|
+
), r(18, Be = !1);
|
|
5335
|
+
}), Nt = (f, S, L) => Le(this, null, function* () {
|
|
5336
|
+
const C = yield dt(f, S, L);
|
|
5294
5337
|
window.postMessage(
|
|
5295
5338
|
{
|
|
5296
5339
|
type: "TournamentListShowMore",
|
|
5297
|
-
tournamentList:
|
|
5340
|
+
tournamentList: C.items
|
|
5298
5341
|
},
|
|
5299
5342
|
window.location.href
|
|
5300
5343
|
);
|
|
5301
|
-
}),
|
|
5344
|
+
}), Mt = () => {
|
|
5302
5345
|
const f = /* @__PURE__ */ new Date();
|
|
5303
5346
|
return $ ? f.setDate(f.getDate() - Number($)) : f.setMonth(f.getMonth() - 1), f.toISOString().substring(0, 10);
|
|
5304
|
-
}, dt = (f, S,
|
|
5305
|
-
let
|
|
5306
|
-
|
|
5307
|
-
const q = { StartTimeAfter:
|
|
5308
|
-
!
|
|
5347
|
+
}, dt = (f, S, L) => Le(this, null, function* () {
|
|
5348
|
+
let C = new URL(`${f}/v1/tournaments`), k = new Headers();
|
|
5349
|
+
C.searchParams.append("pagination", `offset=${S},limit=${L}`), C.searchParams.append("sortField", "StartTime"), C.searchParams.append("sortOrder", N || "desc"), C.searchParams.append("language", a);
|
|
5350
|
+
const q = { StartTimeAfter: Mt() };
|
|
5351
|
+
!Xr(i) && Z === "false" && (q.tags = "no-role-set"), _e.length > 0 && _e[0] != "All" && (q.state = _e.map((G) => Te(G)).join("|"));
|
|
5309
5352
|
const Se = Object.keys(q).map((G) => `${G}=${q[G]}`).join(",");
|
|
5310
|
-
return
|
|
5353
|
+
return C.searchParams.append("filter", Se), C.searchParams.append("platform", fs(ft)), ie && C.searchParams.append("sortType", ie), Oe && k.append("X-SessionID", te), fetch(C, {
|
|
5311
5354
|
method: "GET",
|
|
5312
5355
|
headers: k,
|
|
5313
5356
|
cache: "no-cache"
|
|
5314
|
-
}).then((G) => G.json()).then((G) => (
|
|
5357
|
+
}).then((G) => G.json()).then((G) => (Ye = C.searchParams.toString(), r(20, he = G.total), oe >= he ? r(21, se = !0) : r(21, se = !1), Ce || h(), G));
|
|
5315
5358
|
}), Fe = (f) => {
|
|
5316
5359
|
if (f.type != "message")
|
|
5317
5360
|
return;
|
|
5318
5361
|
let S = f.data;
|
|
5319
5362
|
if (S)
|
|
5320
5363
|
try {
|
|
5321
|
-
let
|
|
5322
|
-
if (!
|
|
5364
|
+
let L = JSON.parse(S);
|
|
5365
|
+
if (!L || !L.item)
|
|
5323
5366
|
return;
|
|
5324
|
-
let
|
|
5325
|
-
|
|
5367
|
+
let C = L.item;
|
|
5368
|
+
L.messageType == "TournamentUpdate" && window.postMessage(
|
|
5326
5369
|
{
|
|
5327
5370
|
type: "UpdateTournamentView",
|
|
5328
|
-
tournamentData:
|
|
5371
|
+
tournamentData: C
|
|
5329
5372
|
},
|
|
5330
5373
|
window.location.href
|
|
5331
|
-
),
|
|
5374
|
+
), L.messageType == "TournamentRemove" && window.postMessage(
|
|
5332
5375
|
{
|
|
5333
5376
|
type: "TournamentList",
|
|
5334
|
-
tournamentList:
|
|
5377
|
+
tournamentList: L.items
|
|
5335
5378
|
},
|
|
5336
5379
|
window.location.href
|
|
5337
5380
|
);
|
|
5338
|
-
} catch (
|
|
5339
|
-
console.error(
|
|
5381
|
+
} catch (L) {
|
|
5382
|
+
console.error(L);
|
|
5340
5383
|
}
|
|
5341
5384
|
}, h = () => {
|
|
5342
|
-
|
|
5385
|
+
Ce = !0, setTimeout(
|
|
5343
5386
|
() => {
|
|
5344
|
-
|
|
5387
|
+
Ce = !1;
|
|
5345
5388
|
},
|
|
5346
5389
|
1e3
|
|
5347
5390
|
), be && (be.removeEventListener("message", Fe), be.close());
|
|
5348
|
-
let f = `${s}/v1/tournaments/updates?${
|
|
5349
|
-
be = new
|
|
5391
|
+
let f = `${s}/v1/tournaments/updates?${Ye}`;
|
|
5392
|
+
be = new ds.EventSourcePolyfill(
|
|
5350
5393
|
f,
|
|
5351
5394
|
{
|
|
5352
5395
|
headers: {
|
|
@@ -5365,26 +5408,26 @@ function vs(e, t, r) {
|
|
|
5365
5408
|
limit: oe
|
|
5366
5409
|
},
|
|
5367
5410
|
window.location.href
|
|
5368
|
-
), yield
|
|
5369
|
-
}), g = () => (s || (r(17,
|
|
5411
|
+
), yield Nt(s, f, S), oe >= he && r(21, se = !0);
|
|
5412
|
+
}), g = () => (s || (r(17, me = "Endpoint is missing! Please provide a valid endpointURL."), r(16, Pe = !0), console.error(me)), (!a || a.length != 2) && (r(17, me = "Language is missing! Please provide a valid language (alpha2code)"), r(16, Pe = !0), console.error(me)), Pe), p = () => {
|
|
5370
5413
|
if (!ve)
|
|
5371
5414
|
return !1;
|
|
5372
|
-
g() || (oe = parseInt(u, 10),
|
|
5415
|
+
g() || (oe = parseInt(u, 10), kr(a), J(s, 0, oe));
|
|
5373
5416
|
}, y = () => {
|
|
5374
|
-
|
|
5417
|
+
kr(a);
|
|
5375
5418
|
}, v = () => {
|
|
5376
|
-
|
|
5419
|
+
_e = d.split(","), r(19, Qe = !0);
|
|
5377
5420
|
}, x = () => {
|
|
5378
|
-
|
|
5379
|
-
},
|
|
5380
|
-
|
|
5421
|
+
Xr(i) ? (Oe = !0, r(30, te = i)) : (Oe = !1, r(30, te = ""));
|
|
5422
|
+
}, M = () => Le(this, null, function* () {
|
|
5423
|
+
Ke || (Ke = !0, yield p(), Ke = !1);
|
|
5381
5424
|
}), T = () => {
|
|
5382
5425
|
let f = document.createElement("style");
|
|
5383
5426
|
f.innerHTML = le, W.appendChild(f);
|
|
5384
|
-
},
|
|
5427
|
+
}, O = () => {
|
|
5385
5428
|
let f = new URL(ge), S = document.createElement("style");
|
|
5386
|
-
fetch(f.href).then((
|
|
5387
|
-
S.innerHTML =
|
|
5429
|
+
fetch(f.href).then((L) => L.text()).then((L) => {
|
|
5430
|
+
S.innerHTML = L, setTimeout(
|
|
5388
5431
|
() => {
|
|
5389
5432
|
W.appendChild(S);
|
|
5390
5433
|
},
|
|
@@ -5396,7 +5439,7 @@ function vs(e, t, r) {
|
|
|
5396
5439
|
);
|
|
5397
5440
|
});
|
|
5398
5441
|
};
|
|
5399
|
-
|
|
5442
|
+
Wn(() => (setTimeout(
|
|
5400
5443
|
() => {
|
|
5401
5444
|
r(31, ve = !0);
|
|
5402
5445
|
},
|
|
@@ -5404,26 +5447,26 @@ function vs(e, t, r) {
|
|
|
5404
5447
|
), window.addEventListener("message", De, !1), () => {
|
|
5405
5448
|
window.removeEventListener("message", De), be && (be.removeEventListener("message", Fe), be.close());
|
|
5406
5449
|
}));
|
|
5407
|
-
const
|
|
5408
|
-
function
|
|
5409
|
-
|
|
5450
|
+
const I = () => b();
|
|
5451
|
+
function _(f) {
|
|
5452
|
+
Jt[f ? "unshift" : "push"](() => {
|
|
5410
5453
|
W = f, r(15, W);
|
|
5411
5454
|
});
|
|
5412
5455
|
}
|
|
5413
5456
|
return e.$$set = (f) => {
|
|
5414
|
-
"session" in f && r(0, i = f.session), "userid" in f && r(1, o = f.userid), "endpoint" in f && r(2, s = f.endpoint), "lang" in f && r(3, a = f.lang), "translationurl" in f && r(4, l = f.translationurl), "numberoftournaments" in f && r(5, u = f.numberoftournaments), "showmorestep" in f && r(24, c = f.showmorestep), "filters" in f && r(6, d = f.filters), "loginevent" in f && r(7,
|
|
5457
|
+
"session" in f && r(0, i = f.session), "userid" in f && r(1, o = f.userid), "endpoint" in f && r(2, s = f.endpoint), "lang" in f && r(3, a = f.lang), "translationurl" in f && r(4, l = f.translationurl), "numberoftournaments" in f && r(5, u = f.numberoftournaments), "showmorestep" in f && r(24, c = f.showmorestep), "filters" in f && r(6, d = f.filters), "loginevent" in f && r(7, m = f.loginevent), "registerevent" in f && r(8, E = f.registerevent), "loginurl" in f && r(9, B = f.loginurl), "registerurl" in f && r(10, P = f.registerurl), "currency" in f && r(11, ee = f.currency), "keepbrowsercontext" in f && r(12, pe = f.keepbrowsercontext), "sorttype" in f && r(25, ie = f.sorttype), "sortorder" in f && r(26, N = f.sortorder), "starttimeafter" in f && r(27, $ = f.starttimeafter), "showanonymoustournaments" in f && r(28, Z = f.showanonymoustournaments), "clientstyling" in f && r(13, le = f.clientstyling), "clientstylingurl" in f && r(14, ge = f.clientstylingurl), "delaybeforeload" in f && r(29, Re = f.delaybeforeload);
|
|
5415
5458
|
}, e.$$.update = () => {
|
|
5416
5459
|
e.$$.dirty[0] & /*customStylingContainer, clientstyling*/
|
|
5417
5460
|
40960 && W && le && T(), e.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
|
|
5418
|
-
49152 && W && ge &&
|
|
5461
|
+
49152 && W && ge && O(), e.$$.dirty[0] & /*userid*/
|
|
5419
5462
|
2, e.$$.dirty[0] & /*filters*/
|
|
5420
5463
|
64 && d && v(), e.$$.dirty[0] & /*lang*/
|
|
5421
5464
|
8 && a && y(), e.$$.dirty[0] & /*translationurl*/
|
|
5422
|
-
16 && l &&
|
|
5423
|
-
1 && ve &&
|
|
5465
|
+
16 && l && Lt(), e.$$.dirty[1] & /*isMounted*/
|
|
5466
|
+
1 && ve && p(), e.$$.dirty[0] & /*session*/
|
|
5424
5467
|
1 && (i === "" || i) && x(), e.$$.dirty[0] & /*sessionID*/
|
|
5425
|
-
1073741824 && (te === "" || te) &&
|
|
5426
|
-
285212716 && s && u && c && a && Z &&
|
|
5468
|
+
1073741824 && (te === "" || te) && M(), e.$$.dirty[0] & /*endpoint, numberoftournaments, showmorestep, lang, showanonymoustournaments*/
|
|
5469
|
+
285212716 && s && u && c && a && Z && M();
|
|
5427
5470
|
}, [
|
|
5428
5471
|
i,
|
|
5429
5472
|
o,
|
|
@@ -5432,43 +5475,43 @@ function vs(e, t, r) {
|
|
|
5432
5475
|
l,
|
|
5433
5476
|
u,
|
|
5434
5477
|
d,
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
O,
|
|
5478
|
+
m,
|
|
5479
|
+
E,
|
|
5438
5480
|
B,
|
|
5481
|
+
P,
|
|
5439
5482
|
ee,
|
|
5440
|
-
|
|
5483
|
+
pe,
|
|
5441
5484
|
le,
|
|
5442
5485
|
ge,
|
|
5443
5486
|
W,
|
|
5487
|
+
Pe,
|
|
5488
|
+
me,
|
|
5444
5489
|
Be,
|
|
5445
|
-
|
|
5446
|
-
Ce,
|
|
5447
|
-
Ye,
|
|
5490
|
+
Qe,
|
|
5448
5491
|
he,
|
|
5449
5492
|
se,
|
|
5450
5493
|
n,
|
|
5451
5494
|
b,
|
|
5452
5495
|
c,
|
|
5453
5496
|
ie,
|
|
5454
|
-
|
|
5497
|
+
N,
|
|
5455
5498
|
$,
|
|
5456
5499
|
Z,
|
|
5457
5500
|
Re,
|
|
5458
5501
|
te,
|
|
5459
5502
|
ve,
|
|
5460
|
-
|
|
5461
|
-
|
|
5503
|
+
I,
|
|
5504
|
+
_
|
|
5462
5505
|
];
|
|
5463
5506
|
}
|
|
5464
|
-
class
|
|
5507
|
+
class On extends oi {
|
|
5465
5508
|
constructor(t) {
|
|
5466
|
-
super(),
|
|
5509
|
+
super(), ni(
|
|
5467
5510
|
this,
|
|
5468
5511
|
t,
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5512
|
+
ws,
|
|
5513
|
+
Es,
|
|
5514
|
+
Zr,
|
|
5472
5515
|
{
|
|
5473
5516
|
session: 0,
|
|
5474
5517
|
userid: 1,
|
|
@@ -5492,7 +5535,7 @@ class Tn extends ei {
|
|
|
5492
5535
|
clientstylingurl: 14,
|
|
5493
5536
|
delaybeforeload: 29
|
|
5494
5537
|
},
|
|
5495
|
-
|
|
5538
|
+
ps,
|
|
5496
5539
|
[-1, -1, -1]
|
|
5497
5540
|
);
|
|
5498
5541
|
}
|
|
@@ -5500,172 +5543,172 @@ class Tn extends ei {
|
|
|
5500
5543
|
return this.$$.ctx[0];
|
|
5501
5544
|
}
|
|
5502
5545
|
set session(t) {
|
|
5503
|
-
this.$$set({ session: t }),
|
|
5546
|
+
this.$$set({ session: t }), D();
|
|
5504
5547
|
}
|
|
5505
5548
|
get userid() {
|
|
5506
5549
|
return this.$$.ctx[1];
|
|
5507
5550
|
}
|
|
5508
5551
|
set userid(t) {
|
|
5509
|
-
this.$$set({ userid: t }),
|
|
5552
|
+
this.$$set({ userid: t }), D();
|
|
5510
5553
|
}
|
|
5511
5554
|
get endpoint() {
|
|
5512
5555
|
return this.$$.ctx[2];
|
|
5513
5556
|
}
|
|
5514
5557
|
set endpoint(t) {
|
|
5515
|
-
this.$$set({ endpoint: t }),
|
|
5558
|
+
this.$$set({ endpoint: t }), D();
|
|
5516
5559
|
}
|
|
5517
5560
|
get lang() {
|
|
5518
5561
|
return this.$$.ctx[3];
|
|
5519
5562
|
}
|
|
5520
5563
|
set lang(t) {
|
|
5521
|
-
this.$$set({ lang: t }),
|
|
5564
|
+
this.$$set({ lang: t }), D();
|
|
5522
5565
|
}
|
|
5523
5566
|
get translationurl() {
|
|
5524
5567
|
return this.$$.ctx[4];
|
|
5525
5568
|
}
|
|
5526
5569
|
set translationurl(t) {
|
|
5527
|
-
this.$$set({ translationurl: t }),
|
|
5570
|
+
this.$$set({ translationurl: t }), D();
|
|
5528
5571
|
}
|
|
5529
5572
|
get numberoftournaments() {
|
|
5530
5573
|
return this.$$.ctx[5];
|
|
5531
5574
|
}
|
|
5532
5575
|
set numberoftournaments(t) {
|
|
5533
|
-
this.$$set({ numberoftournaments: t }),
|
|
5576
|
+
this.$$set({ numberoftournaments: t }), D();
|
|
5534
5577
|
}
|
|
5535
5578
|
get showmorestep() {
|
|
5536
5579
|
return this.$$.ctx[24];
|
|
5537
5580
|
}
|
|
5538
5581
|
set showmorestep(t) {
|
|
5539
|
-
this.$$set({ showmorestep: t }),
|
|
5582
|
+
this.$$set({ showmorestep: t }), D();
|
|
5540
5583
|
}
|
|
5541
5584
|
get filters() {
|
|
5542
5585
|
return this.$$.ctx[6];
|
|
5543
5586
|
}
|
|
5544
5587
|
set filters(t) {
|
|
5545
|
-
this.$$set({ filters: t }),
|
|
5588
|
+
this.$$set({ filters: t }), D();
|
|
5546
5589
|
}
|
|
5547
5590
|
get loginevent() {
|
|
5548
5591
|
return this.$$.ctx[7];
|
|
5549
5592
|
}
|
|
5550
5593
|
set loginevent(t) {
|
|
5551
|
-
this.$$set({ loginevent: t }),
|
|
5594
|
+
this.$$set({ loginevent: t }), D();
|
|
5552
5595
|
}
|
|
5553
5596
|
get registerevent() {
|
|
5554
5597
|
return this.$$.ctx[8];
|
|
5555
5598
|
}
|
|
5556
5599
|
set registerevent(t) {
|
|
5557
|
-
this.$$set({ registerevent: t }),
|
|
5600
|
+
this.$$set({ registerevent: t }), D();
|
|
5558
5601
|
}
|
|
5559
5602
|
get loginurl() {
|
|
5560
5603
|
return this.$$.ctx[9];
|
|
5561
5604
|
}
|
|
5562
5605
|
set loginurl(t) {
|
|
5563
|
-
this.$$set({ loginurl: t }),
|
|
5606
|
+
this.$$set({ loginurl: t }), D();
|
|
5564
5607
|
}
|
|
5565
5608
|
get registerurl() {
|
|
5566
5609
|
return this.$$.ctx[10];
|
|
5567
5610
|
}
|
|
5568
5611
|
set registerurl(t) {
|
|
5569
|
-
this.$$set({ registerurl: t }),
|
|
5612
|
+
this.$$set({ registerurl: t }), D();
|
|
5570
5613
|
}
|
|
5571
5614
|
get currency() {
|
|
5572
5615
|
return this.$$.ctx[11];
|
|
5573
5616
|
}
|
|
5574
5617
|
set currency(t) {
|
|
5575
|
-
this.$$set({ currency: t }),
|
|
5618
|
+
this.$$set({ currency: t }), D();
|
|
5576
5619
|
}
|
|
5577
5620
|
get keepbrowsercontext() {
|
|
5578
5621
|
return this.$$.ctx[12];
|
|
5579
5622
|
}
|
|
5580
5623
|
set keepbrowsercontext(t) {
|
|
5581
|
-
this.$$set({ keepbrowsercontext: t }),
|
|
5624
|
+
this.$$set({ keepbrowsercontext: t }), D();
|
|
5582
5625
|
}
|
|
5583
5626
|
get sorttype() {
|
|
5584
5627
|
return this.$$.ctx[25];
|
|
5585
5628
|
}
|
|
5586
5629
|
set sorttype(t) {
|
|
5587
|
-
this.$$set({ sorttype: t }),
|
|
5630
|
+
this.$$set({ sorttype: t }), D();
|
|
5588
5631
|
}
|
|
5589
5632
|
get sortorder() {
|
|
5590
5633
|
return this.$$.ctx[26];
|
|
5591
5634
|
}
|
|
5592
5635
|
set sortorder(t) {
|
|
5593
|
-
this.$$set({ sortorder: t }),
|
|
5636
|
+
this.$$set({ sortorder: t }), D();
|
|
5594
5637
|
}
|
|
5595
5638
|
get starttimeafter() {
|
|
5596
5639
|
return this.$$.ctx[27];
|
|
5597
5640
|
}
|
|
5598
5641
|
set starttimeafter(t) {
|
|
5599
|
-
this.$$set({ starttimeafter: t }),
|
|
5642
|
+
this.$$set({ starttimeafter: t }), D();
|
|
5600
5643
|
}
|
|
5601
5644
|
get showanonymoustournaments() {
|
|
5602
5645
|
return this.$$.ctx[28];
|
|
5603
5646
|
}
|
|
5604
5647
|
set showanonymoustournaments(t) {
|
|
5605
|
-
this.$$set({ showanonymoustournaments: t }),
|
|
5648
|
+
this.$$set({ showanonymoustournaments: t }), D();
|
|
5606
5649
|
}
|
|
5607
5650
|
get clientstyling() {
|
|
5608
5651
|
return this.$$.ctx[13];
|
|
5609
5652
|
}
|
|
5610
5653
|
set clientstyling(t) {
|
|
5611
|
-
this.$$set({ clientstyling: t }),
|
|
5654
|
+
this.$$set({ clientstyling: t }), D();
|
|
5612
5655
|
}
|
|
5613
5656
|
get clientstylingurl() {
|
|
5614
5657
|
return this.$$.ctx[14];
|
|
5615
5658
|
}
|
|
5616
5659
|
set clientstylingurl(t) {
|
|
5617
|
-
this.$$set({ clientstylingurl: t }),
|
|
5660
|
+
this.$$set({ clientstylingurl: t }), D();
|
|
5618
5661
|
}
|
|
5619
5662
|
get delaybeforeload() {
|
|
5620
5663
|
return this.$$.ctx[29];
|
|
5621
5664
|
}
|
|
5622
5665
|
set delaybeforeload(t) {
|
|
5623
|
-
this.$$set({ delaybeforeload: t }),
|
|
5666
|
+
this.$$set({ delaybeforeload: t }), D();
|
|
5624
5667
|
}
|
|
5625
5668
|
}
|
|
5626
|
-
|
|
5627
|
-
const
|
|
5669
|
+
ii(On, { session: {}, userid: {}, endpoint: {}, lang: {}, translationurl: {}, numberoftournaments: {}, showmorestep: {}, filters: {}, loginevent: {}, registerevent: {}, loginurl: {}, registerurl: {}, currency: {}, keepbrowsercontext: {}, sorttype: {}, sortorder: {}, starttimeafter: {}, showanonymoustournaments: {}, clientstyling: {}, clientstylingurl: {}, delaybeforeload: {} }, [], [], !0);
|
|
5670
|
+
const Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5628
5671
|
__proto__: null,
|
|
5629
|
-
default:
|
|
5672
|
+
default: On
|
|
5630
5673
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5631
5674
|
export {
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5675
|
+
hs as $,
|
|
5676
|
+
As as A,
|
|
5677
|
+
lt as B,
|
|
5678
|
+
Os as C,
|
|
5679
|
+
At as D,
|
|
5680
|
+
Ze as E,
|
|
5681
|
+
fs as F,
|
|
5682
|
+
Cs as G,
|
|
5683
|
+
Bs as H,
|
|
5684
|
+
Yt as I,
|
|
5685
|
+
Ss as J,
|
|
5686
|
+
Ns as K,
|
|
5687
|
+
oi as S,
|
|
5688
|
+
Tn as a,
|
|
5689
|
+
Un as b,
|
|
5647
5690
|
de as c,
|
|
5648
5691
|
ne as d,
|
|
5649
5692
|
z as e,
|
|
5650
|
-
|
|
5693
|
+
D as f,
|
|
5651
5694
|
U as g,
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5695
|
+
Ls as h,
|
|
5696
|
+
ni as i,
|
|
5697
|
+
Fn as j,
|
|
5698
|
+
Is as k,
|
|
5699
|
+
Hs as l,
|
|
5700
|
+
ot as m,
|
|
5658
5701
|
ce as n,
|
|
5659
5702
|
re as o,
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5703
|
+
qt as p,
|
|
5704
|
+
Jt as q,
|
|
5705
|
+
Zt as r,
|
|
5706
|
+
Zr as s,
|
|
5664
5707
|
Ne as t,
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5708
|
+
Ps as u,
|
|
5709
|
+
ii as v,
|
|
5710
|
+
Wn as w,
|
|
5711
|
+
$n as x,
|
|
5669
5712
|
w as y,
|
|
5670
5713
|
He as z
|
|
5671
5714
|
};
|