@everymatrix/player-account-gaming-limits 1.77.20 → 1.77.21
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/{PlayerAccountGamingLimits-Dc_GgGr7.js → PlayerAccountGamingLimits-B8dVy1dw.js} +998 -955
- package/components/PlayerAccountGamingLimits-BFWvpDsh.cjs +21 -0
- package/components/{PlayerAccountGamingLimits-CirwDQg3.js → PlayerAccountGamingLimits-Csz1rGwm.js} +1005 -962
- package/components/{PlayerAccountGamingLimitsConfirmationModal-Deko8NIi.js → PlayerAccountGamingLimitsConfirmationModal-BSyUmrl3.js} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-fA5ghiQB.js → PlayerAccountGamingLimitsConfirmationModal-Ct3UzL1l.js} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-BZONh3Vu.cjs → PlayerAccountGamingLimitsConfirmationModal-beH99OjB.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-BrzqEkr2.js → PlayerAccountGamingLimitsGroupEdit-56lXVmhz.js} +4 -4
- package/components/{PlayerAccountGamingLimitsGroupEdit-BuT4o-qV.js → PlayerAccountGamingLimitsGroupEdit-5CQm4ZCc.js} +4 -4
- package/components/{PlayerAccountGamingLimitsGroupEdit-Bvwld7Ds.cjs → PlayerAccountGamingLimitsGroupEdit-C6B13sEM.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-BiTbs4BT.js → PlayerAccountGamingLimitsInfoCard-DJVcHz9f.js} +3 -3
- package/components/{PlayerAccountGamingLimitsInfoCard-ByJwHOIb.js → PlayerAccountGamingLimitsInfoCard-DYnNmpCR.js} +3 -3
- package/components/{PlayerAccountGamingLimitsInfoCard-BnMgrkcw.cjs → PlayerAccountGamingLimitsInfoCard-Fw7CHUvq.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-D9r4bc9j.js → PlayerAccountGamingLimitsPopup-BgSqCL5f.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-CkgA4tSd.cjs → PlayerAccountGamingLimitsPopup-CjUttWsG.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-QJrWz_ZI.js → PlayerAccountGamingLimitsPopup-ky7XPDCp.js} +1 -1
- package/components/{PlayerAccountModal-gn_tLFKO.cjs → PlayerAccountModal-CfM5jG9-.cjs} +1 -1
- package/components/{PlayerAccountModal-9d5DEBLl.js → PlayerAccountModal-ChUAMeqV.js} +1 -1
- package/components/{PlayerAccountModal-Bb16aftc.js → PlayerAccountModal-woh_9W4B.js} +1 -1
- package/es2015/player-account-gaming-limits.cjs +1 -1
- package/es2015/player-account-gaming-limits.js +1 -1
- package/esnext/player-account-gaming-limits.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGamingLimits-9ZPtY1pp.cjs +0 -21
package/components/{PlayerAccountGamingLimits-Dc_GgGr7.js → PlayerAccountGamingLimits-B8dVy1dw.js}
RENAMED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Nr = Object.defineProperty, Cr = Object.defineProperties;
|
|
2
|
+
var Rr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var gt = Object.getOwnPropertySymbols;
|
|
4
|
+
var Gr = Object.prototype.hasOwnProperty, $r = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Re = (e, t, r) => t in e ? Nr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Gr.call(t, r) && Re(e, r, t[r]);
|
|
8
|
+
if (gt)
|
|
9
|
+
for (var r of gt(t))
|
|
10
|
+
$r.call(t, r) && Re(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var I = (e, t, r) => (
|
|
14
|
-
var
|
|
15
|
-
var
|
|
12
|
+
}, yt = (e, t) => Cr(e, Rr(t));
|
|
13
|
+
var I = (e, t, r) => (Re(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var vt = (e, t, r) => new Promise((i, n) => {
|
|
15
|
+
var o = (u) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
s(r.next(u));
|
|
18
18
|
} catch (l) {
|
|
19
19
|
n(l);
|
|
20
20
|
}
|
|
21
21
|
}, a = (u) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
s(r.throw(u));
|
|
24
24
|
} catch (l) {
|
|
25
25
|
n(l);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, s = (u) => u.done ? i(u.value) : Promise.resolve(u.value).then(o, a);
|
|
28
|
+
s((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function M() {
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
function
|
|
32
|
+
const Dr = (e) => e;
|
|
33
|
+
function Ur(e, t) {
|
|
34
34
|
for (const r in t)
|
|
35
35
|
e[r] = t[r];
|
|
36
36
|
return (
|
|
@@ -38,25 +38,25 @@ function Cr(e, t) {
|
|
|
38
38
|
e
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Xt(e) {
|
|
42
42
|
return e();
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function _t() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
47
|
function j(e) {
|
|
48
|
-
e.forEach(
|
|
48
|
+
e.forEach(Xt);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Pe(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Wt(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Fr(e) {
|
|
57
57
|
return Object.keys(e).length === 0;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function zt(e, ...t) {
|
|
60
60
|
if (e == null) {
|
|
61
61
|
for (const i of t)
|
|
62
62
|
i(void 0);
|
|
@@ -65,40 +65,40 @@ function jt(e, ...t) {
|
|
|
65
65
|
const r = e.subscribe(...t);
|
|
66
66
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
e.$$.on_destroy.push(
|
|
68
|
+
function jr(e, t, r) {
|
|
69
|
+
e.$$.on_destroy.push(zt(t, r));
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function $o(e, t, r, i) {
|
|
72
72
|
if (e) {
|
|
73
|
-
const n =
|
|
73
|
+
const n = Zt(e, t, r, i);
|
|
74
74
|
return e[0](n);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
return e[1] && i ?
|
|
77
|
+
function Zt(e, t, r, i) {
|
|
78
|
+
return e[1] && i ? Ur(r.ctx.slice(), e[1](i(t))) : r.ctx;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Do(e, t, r, i) {
|
|
81
81
|
if (e[2] && i) {
|
|
82
82
|
const n = e[2](i(r));
|
|
83
83
|
if (t.dirty === void 0)
|
|
84
84
|
return n;
|
|
85
85
|
if (typeof n == "object") {
|
|
86
|
-
const
|
|
87
|
-
for (let
|
|
88
|
-
s
|
|
89
|
-
return
|
|
86
|
+
const o = [], a = Math.max(t.dirty.length, n.length);
|
|
87
|
+
for (let s = 0; s < a; s += 1)
|
|
88
|
+
o[s] = t.dirty[s] | n[s];
|
|
89
|
+
return o;
|
|
90
90
|
}
|
|
91
91
|
return t.dirty | n;
|
|
92
92
|
}
|
|
93
93
|
return t.dirty;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Uo(e, t, r, i, n, o) {
|
|
96
96
|
if (n) {
|
|
97
|
-
const a =
|
|
97
|
+
const a = Zt(t, r, i, o);
|
|
98
98
|
e.p(a, n);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function Fo(e) {
|
|
102
102
|
if (e.ctx.length > 32) {
|
|
103
103
|
const t = [], r = e.ctx.length / 32;
|
|
104
104
|
for (let i = 0; i < r; i++)
|
|
@@ -107,17 +107,17 @@ function Cs(e) {
|
|
|
107
107
|
}
|
|
108
108
|
return -1;
|
|
109
109
|
}
|
|
110
|
-
const
|
|
111
|
-
let
|
|
110
|
+
const Qt = typeof window != "undefined";
|
|
111
|
+
let kr = Qt ? () => window.performance.now() : () => Date.now(), lt = Qt ? (e) => requestAnimationFrame(e) : M;
|
|
112
112
|
const q = /* @__PURE__ */ new Set();
|
|
113
|
-
function
|
|
113
|
+
function qt(e) {
|
|
114
114
|
q.forEach((t) => {
|
|
115
115
|
t.c(e) || (q.delete(t), t.f());
|
|
116
|
-
}), q.size !== 0 &&
|
|
116
|
+
}), q.size !== 0 && lt(qt);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Vr(e) {
|
|
119
119
|
let t;
|
|
120
|
-
return q.size === 0 &&
|
|
120
|
+
return q.size === 0 && lt(qt), {
|
|
121
121
|
promise: new Promise((r) => {
|
|
122
122
|
q.add(t = { c: e, f: r });
|
|
123
123
|
}),
|
|
@@ -126,17 +126,17 @@ function Ur(e) {
|
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function w(e, t) {
|
|
130
130
|
e.appendChild(t);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
const i =
|
|
132
|
+
function Xr(e, t, r) {
|
|
133
|
+
const i = ht(e);
|
|
134
134
|
if (!i.getElementById(t)) {
|
|
135
135
|
const n = O("style");
|
|
136
|
-
n.id = t, n.textContent = r,
|
|
136
|
+
n.id = t, n.textContent = r, Jt(i, n);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function ht(e) {
|
|
140
140
|
if (!e)
|
|
141
141
|
return document;
|
|
142
142
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -146,24 +146,24 @@ function st(e) {
|
|
|
146
146
|
t
|
|
147
147
|
) : e.ownerDocument;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Wr(e) {
|
|
150
150
|
const t = O("style");
|
|
151
|
-
return t.textContent = "/* empty */",
|
|
151
|
+
return t.textContent = "/* empty */", Jt(ht(e), t), t.sheet;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
return
|
|
153
|
+
function Jt(e, t) {
|
|
154
|
+
return w(
|
|
155
155
|
/** @type {Document} */
|
|
156
156
|
e.head || e,
|
|
157
157
|
t
|
|
158
158
|
), t.sheet;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function re(e, t, r) {
|
|
161
161
|
e.insertBefore(t, r || null);
|
|
162
162
|
}
|
|
163
163
|
function F(e) {
|
|
164
164
|
e.parentNode && e.parentNode.removeChild(e);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function jo(e, t) {
|
|
167
167
|
for (let r = 0; r < e.length; r += 1)
|
|
168
168
|
e[r] && e[r].d(t);
|
|
169
169
|
}
|
|
@@ -173,19 +173,19 @@ function O(e) {
|
|
|
173
173
|
function X(e) {
|
|
174
174
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function le(e) {
|
|
177
177
|
return document.createTextNode(e);
|
|
178
178
|
}
|
|
179
179
|
function Z() {
|
|
180
|
-
return
|
|
180
|
+
return le(" ");
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
return
|
|
182
|
+
function ko() {
|
|
183
|
+
return le("");
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function zr(e, t, r, i) {
|
|
186
186
|
return e.addEventListener(t, r, i), () => e.removeEventListener(t, r, i);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Vo(e) {
|
|
189
189
|
return function(t) {
|
|
190
190
|
return t.preventDefault(), e.call(this, t);
|
|
191
191
|
};
|
|
@@ -197,20 +197,20 @@ function m(e, t, r) {
|
|
|
197
197
|
const i = t.toLowerCase();
|
|
198
198
|
i in e ? e[i] = typeof e[i] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : H(e, t, r);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Xo(e) {
|
|
201
201
|
return e === "" ? null : +e;
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Zr(e) {
|
|
204
204
|
return Array.from(e.childNodes);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Yt(e, t) {
|
|
207
207
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
208
208
|
t);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Wo(e, t) {
|
|
211
211
|
e.value = t == null ? "" : t;
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function zo(e, t, r) {
|
|
214
214
|
for (let i = 0; i < e.options.length; i += 1) {
|
|
215
215
|
const n = e.options[i];
|
|
216
216
|
if (n.__value === t) {
|
|
@@ -220,14 +220,14 @@ function Fs(e, t, r) {
|
|
|
220
220
|
}
|
|
221
221
|
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function Zo(e) {
|
|
224
224
|
const t = e.querySelector(":checked");
|
|
225
225
|
return t && t.__value;
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function Qr(e, t, { bubbles: r = !1, cancelable: i = !1 } = {}) {
|
|
228
228
|
return new CustomEvent(e, { detail: t, bubbles: r, cancelable: i });
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function qr(e) {
|
|
231
231
|
const t = {};
|
|
232
232
|
return e.childNodes.forEach(
|
|
233
233
|
/** @param {Element} node */
|
|
@@ -238,146 +238,146 @@ function Xr(e) {
|
|
|
238
238
|
}
|
|
239
239
|
const xe = /* @__PURE__ */ new Map();
|
|
240
240
|
let we = 0;
|
|
241
|
-
function
|
|
241
|
+
function Jr(e) {
|
|
242
242
|
let t = 5381, r = e.length;
|
|
243
243
|
for (; r--; )
|
|
244
244
|
t = (t << 5) - t ^ e.charCodeAt(r);
|
|
245
245
|
return t >>> 0;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
const r = { stylesheet:
|
|
247
|
+
function Yr(e, t) {
|
|
248
|
+
const r = { stylesheet: Wr(t), rules: {} };
|
|
249
249
|
return xe.set(e, r), r;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function Et(e, t, r, i, n, o, a, s = 0) {
|
|
252
252
|
const u = 16.666 / i;
|
|
253
253
|
let l = `{
|
|
254
254
|
`;
|
|
255
255
|
for (let d = 0; d <= 1; d += u) {
|
|
256
|
-
const v = t + (r - t) *
|
|
256
|
+
const v = t + (r - t) * o(d);
|
|
257
257
|
l += d * 100 + `%{${a(v, 1 - v)}}
|
|
258
258
|
`;
|
|
259
259
|
}
|
|
260
260
|
const h = l + `100% {${a(r, 1 - r)}}
|
|
261
|
-
}`, f = `__svelte_${
|
|
261
|
+
}`, f = `__svelte_${Jr(h)}_${s}`, c = ht(e), { stylesheet: b, rules: p } = xe.get(c) || Yr(c, e);
|
|
262
262
|
p[f] || (p[f] = !0, b.insertRule(`@keyframes ${f} ${h}`, b.cssRules.length));
|
|
263
263
|
const g = e.style.animation || "";
|
|
264
264
|
return e.style.animation = `${g ? `${g}, ` : ""}${f} ${i}ms linear ${n}ms 1 both`, we += 1, f;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function Kr(e, t) {
|
|
267
267
|
const r = (e.style.animation || "").split(", "), i = r.filter(
|
|
268
|
-
t ? (
|
|
268
|
+
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
269
269
|
// remove all Svelte animations
|
|
270
270
|
), n = r.length - i.length;
|
|
271
|
-
n && (e.style.animation = i.join(", "), we -= n, we ||
|
|
271
|
+
n && (e.style.animation = i.join(", "), we -= n, we || ei());
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
|
|
273
|
+
function ei() {
|
|
274
|
+
lt(() => {
|
|
275
275
|
we || (xe.forEach((e) => {
|
|
276
276
|
const { ownerNode: t } = e.stylesheet;
|
|
277
277
|
t && F(t);
|
|
278
278
|
}), xe.clear());
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
|
-
let
|
|
282
|
-
function
|
|
283
|
-
|
|
281
|
+
let he;
|
|
282
|
+
function ue(e) {
|
|
283
|
+
he = e;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
if (!
|
|
285
|
+
function ti() {
|
|
286
|
+
if (!he)
|
|
287
287
|
throw new Error("Function called outside component initialization");
|
|
288
|
-
return
|
|
288
|
+
return he;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
|
|
290
|
+
function ri(e) {
|
|
291
|
+
ti().$$.on_mount.push(e);
|
|
292
292
|
}
|
|
293
|
-
const Q = [],
|
|
293
|
+
const Q = [], We = [];
|
|
294
294
|
let J = [];
|
|
295
|
-
const
|
|
296
|
-
let
|
|
297
|
-
function
|
|
298
|
-
|
|
295
|
+
const xt = [], ii = /* @__PURE__ */ Promise.resolve();
|
|
296
|
+
let ze = !1;
|
|
297
|
+
function ni() {
|
|
298
|
+
ze || (ze = !0, ii.then(A));
|
|
299
299
|
}
|
|
300
300
|
function Le(e) {
|
|
301
301
|
J.push(e);
|
|
302
302
|
}
|
|
303
|
-
const
|
|
303
|
+
const Ge = /* @__PURE__ */ new Set();
|
|
304
304
|
let W = 0;
|
|
305
305
|
function A() {
|
|
306
306
|
if (W !== 0)
|
|
307
307
|
return;
|
|
308
|
-
const e =
|
|
308
|
+
const e = he;
|
|
309
309
|
do {
|
|
310
310
|
try {
|
|
311
311
|
for (; W < Q.length; ) {
|
|
312
312
|
const t = Q[W];
|
|
313
|
-
W++,
|
|
313
|
+
W++, ue(t), oi(t.$$);
|
|
314
314
|
}
|
|
315
315
|
} catch (t) {
|
|
316
316
|
throw Q.length = 0, W = 0, t;
|
|
317
317
|
}
|
|
318
|
-
for (
|
|
319
|
-
|
|
318
|
+
for (ue(null), Q.length = 0, W = 0; We.length; )
|
|
319
|
+
We.pop()();
|
|
320
320
|
for (let t = 0; t < J.length; t += 1) {
|
|
321
321
|
const r = J[t];
|
|
322
|
-
|
|
322
|
+
Ge.has(r) || (Ge.add(r), r());
|
|
323
323
|
}
|
|
324
324
|
J.length = 0;
|
|
325
325
|
} while (Q.length);
|
|
326
|
-
for (;
|
|
327
|
-
|
|
328
|
-
|
|
326
|
+
for (; xt.length; )
|
|
327
|
+
xt.pop()();
|
|
328
|
+
ze = !1, Ge.clear(), ue(e);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function oi(e) {
|
|
331
331
|
if (e.fragment !== null) {
|
|
332
332
|
e.update(), j(e.before_update);
|
|
333
333
|
const t = e.dirty;
|
|
334
334
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function si(e) {
|
|
338
338
|
const t = [], r = [];
|
|
339
339
|
J.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : r.push(i)), r.forEach((i) => i()), J = t;
|
|
340
340
|
}
|
|
341
|
-
let
|
|
342
|
-
function
|
|
343
|
-
return
|
|
344
|
-
|
|
345
|
-
})),
|
|
341
|
+
let se;
|
|
342
|
+
function ai() {
|
|
343
|
+
return se || (se = Promise.resolve(), se.then(() => {
|
|
344
|
+
se = null;
|
|
345
|
+
})), se;
|
|
346
346
|
}
|
|
347
|
-
function
|
|
348
|
-
e.dispatchEvent(
|
|
347
|
+
function $e(e, t, r) {
|
|
348
|
+
e.dispatchEvent(Qr(`${t ? "intro" : "outro"}${r}`));
|
|
349
349
|
}
|
|
350
350
|
const be = /* @__PURE__ */ new Set();
|
|
351
|
-
let
|
|
352
|
-
function
|
|
353
|
-
|
|
351
|
+
let G;
|
|
352
|
+
function Qo() {
|
|
353
|
+
G = {
|
|
354
354
|
r: 0,
|
|
355
355
|
c: [],
|
|
356
|
-
p:
|
|
356
|
+
p: G
|
|
357
357
|
// parent group
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
|
-
function
|
|
361
|
-
|
|
360
|
+
function qo() {
|
|
361
|
+
G.r || j(G.c), G = G.p;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function ui(e, t) {
|
|
364
364
|
e && e.i && (be.delete(e), e.i(t));
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function Jo(e, t, r, i) {
|
|
367
367
|
if (e && e.o) {
|
|
368
368
|
if (be.has(e))
|
|
369
369
|
return;
|
|
370
|
-
be.add(e),
|
|
370
|
+
be.add(e), G.c.push(() => {
|
|
371
371
|
be.delete(e), i && (r && e.d(1), i());
|
|
372
372
|
}), e.o(t);
|
|
373
373
|
} else
|
|
374
374
|
i && i();
|
|
375
375
|
}
|
|
376
|
-
const
|
|
377
|
-
function
|
|
378
|
-
let
|
|
376
|
+
const li = { duration: 0 };
|
|
377
|
+
function Yo(e, t, r, i) {
|
|
378
|
+
let o = t(e, r, { direction: "both" }), a = i ? 0 : 1, s = null, u = null, l = null, h;
|
|
379
379
|
function f() {
|
|
380
|
-
l &&
|
|
380
|
+
l && Kr(e, l);
|
|
381
381
|
}
|
|
382
382
|
function c(p, g) {
|
|
383
383
|
const d = (
|
|
@@ -398,73 +398,73 @@ function Ws(e, t, r, i) {
|
|
|
398
398
|
const {
|
|
399
399
|
delay: g = 0,
|
|
400
400
|
duration: d = 300,
|
|
401
|
-
easing: v =
|
|
401
|
+
easing: v = Dr,
|
|
402
402
|
tick: T = M,
|
|
403
403
|
css: S
|
|
404
|
-
} =
|
|
405
|
-
start:
|
|
404
|
+
} = o || li, N = {
|
|
405
|
+
start: kr() + g,
|
|
406
406
|
b: p
|
|
407
407
|
};
|
|
408
|
-
p || (N.group =
|
|
409
|
-
e.inert, e.inert = !0)),
|
|
410
|
-
if (u && P > u.start && (
|
|
408
|
+
p || (N.group = G, G.r += 1), "inert" in e && (p ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
|
|
409
|
+
e.inert, e.inert = !0)), s || u ? u = N : (S && (f(), l = Et(e, a, p, d, g, v, S)), p && T(0, 1), s = c(N, d), Le(() => $e(e, p, "start")), Vr((P) => {
|
|
410
|
+
if (u && P > u.start && (s = c(u, d), u = null, $e(e, s.b, "start"), S && (f(), l = Et(
|
|
411
411
|
e,
|
|
412
412
|
a,
|
|
413
|
-
|
|
414
|
-
|
|
413
|
+
s.b,
|
|
414
|
+
s.duration,
|
|
415
415
|
0,
|
|
416
416
|
v,
|
|
417
|
-
|
|
418
|
-
))),
|
|
419
|
-
if (P >=
|
|
420
|
-
T(a =
|
|
421
|
-
else if (P >=
|
|
422
|
-
const
|
|
423
|
-
a =
|
|
417
|
+
o.css
|
|
418
|
+
))), s) {
|
|
419
|
+
if (P >= s.end)
|
|
420
|
+
T(a = s.b, 1 - a), $e(e, s.b, "end"), u || (s.b ? f() : --s.group.r || j(s.group.c)), s = null;
|
|
421
|
+
else if (P >= s.start) {
|
|
422
|
+
const R = P - s.start;
|
|
423
|
+
a = s.a + s.d * v(R / s.duration), T(a, 1 - a);
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
return !!(
|
|
426
|
+
return !!(s || u);
|
|
427
427
|
}));
|
|
428
428
|
}
|
|
429
429
|
return {
|
|
430
430
|
run(p) {
|
|
431
|
-
|
|
432
|
-
|
|
431
|
+
Pe(o) ? ai().then(() => {
|
|
432
|
+
o = o({ direction: p ? "in" : "out" }), b(p);
|
|
433
433
|
}) : b(p);
|
|
434
434
|
},
|
|
435
435
|
end() {
|
|
436
|
-
f(),
|
|
436
|
+
f(), s = u = null;
|
|
437
437
|
}
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function Ko(e) {
|
|
441
441
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function hi(e, t, r) {
|
|
444
444
|
const { fragment: i, after_update: n } = e.$$;
|
|
445
445
|
i && i.m(t, r), Le(() => {
|
|
446
|
-
const
|
|
447
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
446
|
+
const o = e.$$.on_mount.map(Xt).filter(Pe);
|
|
447
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : j(o), e.$$.on_mount = [];
|
|
448
448
|
}), n.forEach(Le);
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function ci(e, t) {
|
|
451
451
|
const r = e.$$;
|
|
452
|
-
r.fragment !== null && (
|
|
452
|
+
r.fragment !== null && (si(r.after_update), j(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
453
453
|
}
|
|
454
|
-
function
|
|
455
|
-
e.$$.dirty[0] === -1 && (Q.push(e),
|
|
454
|
+
function fi(e, t) {
|
|
455
|
+
e.$$.dirty[0] === -1 && (Q.push(e), ni(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
458
|
-
const u =
|
|
459
|
-
|
|
457
|
+
function mi(e, t, r, i, n, o, a = null, s = [-1]) {
|
|
458
|
+
const u = he;
|
|
459
|
+
ue(e);
|
|
460
460
|
const l = e.$$ = {
|
|
461
461
|
fragment: null,
|
|
462
462
|
ctx: [],
|
|
463
463
|
// state
|
|
464
|
-
props:
|
|
464
|
+
props: o,
|
|
465
465
|
update: M,
|
|
466
466
|
not_equal: n,
|
|
467
|
-
bound:
|
|
467
|
+
bound: _t(),
|
|
468
468
|
// lifecycle
|
|
469
469
|
on_mount: [],
|
|
470
470
|
on_destroy: [],
|
|
@@ -473,8 +473,8 @@ function ui(e, t, r, i, n, s, a = null, o = [-1]) {
|
|
|
473
473
|
after_update: [],
|
|
474
474
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
475
475
|
// everything else
|
|
476
|
-
callbacks:
|
|
477
|
-
dirty:
|
|
476
|
+
callbacks: _t(),
|
|
477
|
+
dirty: s,
|
|
478
478
|
skip_bound: !1,
|
|
479
479
|
root: t.target || u.$$.root
|
|
480
480
|
};
|
|
@@ -482,19 +482,19 @@ function ui(e, t, r, i, n, s, a = null, o = [-1]) {
|
|
|
482
482
|
let h = !1;
|
|
483
483
|
if (l.ctx = r ? r(e, t.props || {}, (f, c, ...b) => {
|
|
484
484
|
const p = b.length ? b[0] : c;
|
|
485
|
-
return l.ctx && n(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), h &&
|
|
485
|
+
return l.ctx && n(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), h && fi(e, f)), c;
|
|
486
486
|
}) : [], l.update(), h = !0, j(l.before_update), l.fragment = i ? i(l.ctx) : !1, t.target) {
|
|
487
487
|
if (t.hydrate) {
|
|
488
|
-
const f =
|
|
488
|
+
const f = Zr(t.target);
|
|
489
489
|
l.fragment && l.fragment.l(f), f.forEach(F);
|
|
490
490
|
} else
|
|
491
491
|
l.fragment && l.fragment.c();
|
|
492
|
-
t.intro &&
|
|
492
|
+
t.intro && ui(e.$$.fragment), hi(e, t.target, t.anchor), A();
|
|
493
493
|
}
|
|
494
|
-
|
|
494
|
+
ue(u);
|
|
495
495
|
}
|
|
496
|
-
let
|
|
497
|
-
typeof HTMLElement == "function" && (
|
|
496
|
+
let Kt;
|
|
497
|
+
typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
498
498
|
constructor(t, r, i) {
|
|
499
499
|
super();
|
|
500
500
|
/** The Svelte component constructor */
|
|
@@ -531,21 +531,21 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
connectedCallback() {
|
|
534
|
-
return
|
|
534
|
+
return vt(this, null, function* () {
|
|
535
535
|
if (this.$$cn = !0, !this.$$c) {
|
|
536
|
-
let t = function(
|
|
536
|
+
let t = function(o) {
|
|
537
537
|
return () => {
|
|
538
538
|
let a;
|
|
539
539
|
return {
|
|
540
540
|
c: function() {
|
|
541
|
-
a = O("slot"),
|
|
541
|
+
a = O("slot"), o !== "default" && H(a, "name", o);
|
|
542
542
|
},
|
|
543
543
|
/**
|
|
544
544
|
* @param {HTMLElement} target
|
|
545
545
|
* @param {HTMLElement} [anchor]
|
|
546
546
|
*/
|
|
547
547
|
m: function(l, h) {
|
|
548
|
-
|
|
548
|
+
re(l, a, h);
|
|
549
549
|
},
|
|
550
550
|
d: function(l) {
|
|
551
551
|
l && F(a);
|
|
@@ -555,18 +555,18 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
555
555
|
};
|
|
556
556
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
557
557
|
return;
|
|
558
|
-
const r = {}, i =
|
|
559
|
-
for (const
|
|
560
|
-
|
|
561
|
-
for (const
|
|
562
|
-
const a = this.$$g_p(
|
|
563
|
-
a in this.$$d || (this.$$d[a] = ye(a,
|
|
558
|
+
const r = {}, i = qr(this);
|
|
559
|
+
for (const o of this.$$s)
|
|
560
|
+
o in i && (r[o] = [t(o)]);
|
|
561
|
+
for (const o of this.attributes) {
|
|
562
|
+
const a = this.$$g_p(o.name);
|
|
563
|
+
a in this.$$d || (this.$$d[a] = ye(a, o.value, this.$$p_d, "toProp"));
|
|
564
564
|
}
|
|
565
|
-
for (const
|
|
566
|
-
!(
|
|
565
|
+
for (const o in this.$$p_d)
|
|
566
|
+
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
567
567
|
this.$$c = new this.$$ctor({
|
|
568
568
|
target: this.shadowRoot || this,
|
|
569
|
-
props:
|
|
569
|
+
props: yt(bt({}, this.$$d), {
|
|
570
570
|
$$slots: r,
|
|
571
571
|
$$scope: {
|
|
572
572
|
ctx: []
|
|
@@ -575,23 +575,23 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
575
575
|
});
|
|
576
576
|
const n = () => {
|
|
577
577
|
this.$$r = !0;
|
|
578
|
-
for (const
|
|
579
|
-
if (this.$$d[
|
|
578
|
+
for (const o in this.$$p_d)
|
|
579
|
+
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
580
580
|
const a = ye(
|
|
581
|
-
|
|
582
|
-
this.$$d[
|
|
581
|
+
o,
|
|
582
|
+
this.$$d[o],
|
|
583
583
|
this.$$p_d,
|
|
584
584
|
"toAttribute"
|
|
585
585
|
);
|
|
586
|
-
a == null ? this.removeAttribute(this.$$p_d[
|
|
586
|
+
a == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, a);
|
|
587
587
|
}
|
|
588
588
|
this.$$r = !1;
|
|
589
589
|
};
|
|
590
590
|
this.$$c.$$.after_update.push(n), n();
|
|
591
|
-
for (const
|
|
592
|
-
for (const a of this.$$l[
|
|
593
|
-
const
|
|
594
|
-
this.$$l_u.set(a,
|
|
591
|
+
for (const o in this.$$l)
|
|
592
|
+
for (const a of this.$$l[o]) {
|
|
593
|
+
const s = this.$$c.$on(o, a);
|
|
594
|
+
this.$$l_u.set(a, s);
|
|
595
595
|
}
|
|
596
596
|
this.$$l = {};
|
|
597
597
|
}
|
|
@@ -615,8 +615,8 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
615
615
|
}
|
|
616
616
|
});
|
|
617
617
|
function ye(e, t, r, i) {
|
|
618
|
-
var
|
|
619
|
-
const n = (
|
|
618
|
+
var o;
|
|
619
|
+
const n = (o = r[e]) == null ? void 0 : o.type;
|
|
620
620
|
if (t = n === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !r[e])
|
|
621
621
|
return t;
|
|
622
622
|
if (i === "toAttribute")
|
|
@@ -644,38 +644,38 @@ function ye(e, t, r, i) {
|
|
|
644
644
|
return t;
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
|
-
function
|
|
648
|
-
let a = class extends
|
|
647
|
+
function pi(e, t, r, i, n, o) {
|
|
648
|
+
let a = class extends Kt {
|
|
649
649
|
constructor() {
|
|
650
650
|
super(e, r, n), this.$$p_d = t;
|
|
651
651
|
}
|
|
652
652
|
static get observedAttributes() {
|
|
653
653
|
return Object.keys(t).map(
|
|
654
|
-
(
|
|
654
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
655
655
|
);
|
|
656
656
|
}
|
|
657
657
|
};
|
|
658
|
-
return Object.keys(t).forEach((
|
|
659
|
-
Object.defineProperty(a.prototype,
|
|
658
|
+
return Object.keys(t).forEach((s) => {
|
|
659
|
+
Object.defineProperty(a.prototype, s, {
|
|
660
660
|
get() {
|
|
661
|
-
return this.$$c &&
|
|
661
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
662
662
|
},
|
|
663
663
|
set(u) {
|
|
664
664
|
var l;
|
|
665
|
-
u = ye(
|
|
665
|
+
u = ye(s, u, t), this.$$d[s] = u, (l = this.$$c) == null || l.$set({ [s]: u });
|
|
666
666
|
}
|
|
667
667
|
});
|
|
668
|
-
}), i.forEach((
|
|
669
|
-
Object.defineProperty(a.prototype,
|
|
668
|
+
}), i.forEach((s) => {
|
|
669
|
+
Object.defineProperty(a.prototype, s, {
|
|
670
670
|
get() {
|
|
671
671
|
var u;
|
|
672
|
-
return (u = this.$$c) == null ? void 0 : u[
|
|
672
|
+
return (u = this.$$c) == null ? void 0 : u[s];
|
|
673
673
|
}
|
|
674
674
|
});
|
|
675
675
|
}), e.element = /** @type {any} */
|
|
676
676
|
a, a;
|
|
677
677
|
}
|
|
678
|
-
class
|
|
678
|
+
class di {
|
|
679
679
|
constructor() {
|
|
680
680
|
/**
|
|
681
681
|
* ### PRIVATE API
|
|
@@ -696,7 +696,7 @@ class hi {
|
|
|
696
696
|
}
|
|
697
697
|
/** @returns {void} */
|
|
698
698
|
$destroy() {
|
|
699
|
-
|
|
699
|
+
ci(this, 1), this.$destroy = M;
|
|
700
700
|
}
|
|
701
701
|
/**
|
|
702
702
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -705,7 +705,7 @@ class hi {
|
|
|
705
705
|
* @returns {() => void}
|
|
706
706
|
*/
|
|
707
707
|
$on(t, r) {
|
|
708
|
-
if (!
|
|
708
|
+
if (!Pe(r))
|
|
709
709
|
return M;
|
|
710
710
|
const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
711
711
|
return i.push(r), () => {
|
|
@@ -718,11 +718,11 @@ class hi {
|
|
|
718
718
|
* @returns {void}
|
|
719
719
|
*/
|
|
720
720
|
$set(t) {
|
|
721
|
-
this.$$set && !
|
|
721
|
+
this.$$set && !Fr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
|
-
const
|
|
725
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
724
|
+
const gi = "4";
|
|
725
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(gi);
|
|
726
726
|
/*! *****************************************************************************
|
|
727
727
|
Copyright (c) Microsoft Corporation.
|
|
728
728
|
|
|
@@ -737,43 +737,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
737
737
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
738
738
|
PERFORMANCE OF THIS SOFTWARE.
|
|
739
739
|
***************************************************************************** */
|
|
740
|
-
var
|
|
741
|
-
return
|
|
740
|
+
var Ze = function(e, t) {
|
|
741
|
+
return Ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
742
742
|
r.__proto__ = i;
|
|
743
743
|
} || function(r, i) {
|
|
744
744
|
for (var n in i)
|
|
745
745
|
Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
|
|
746
|
-
},
|
|
746
|
+
}, Ze(e, t);
|
|
747
747
|
};
|
|
748
|
-
function
|
|
748
|
+
function me(e, t) {
|
|
749
749
|
if (typeof t != "function" && t !== null)
|
|
750
750
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
751
|
-
|
|
751
|
+
Ze(e, t);
|
|
752
752
|
function r() {
|
|
753
753
|
this.constructor = e;
|
|
754
754
|
}
|
|
755
755
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
756
756
|
}
|
|
757
|
-
|
|
758
|
-
return x = Object.assign || function(t) {
|
|
759
|
-
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
760
|
-
r = arguments[i];
|
|
761
|
-
for (var s in r)
|
|
762
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
763
|
-
}
|
|
764
|
-
return t;
|
|
765
|
-
}, x.apply(this, arguments);
|
|
766
|
-
};
|
|
767
|
-
function fi(e, t) {
|
|
768
|
-
var r = {};
|
|
769
|
-
for (var i in e)
|
|
770
|
-
Object.prototype.hasOwnProperty.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
771
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
772
|
-
for (var n = 0, i = Object.getOwnPropertySymbols(e); n < i.length; n++)
|
|
773
|
-
t.indexOf(i[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, i[n]) && (r[i[n]] = e[i[n]]);
|
|
774
|
-
return r;
|
|
775
|
-
}
|
|
776
|
-
function We(e) {
|
|
757
|
+
function Qe(e) {
|
|
777
758
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], i = 0;
|
|
778
759
|
if (r)
|
|
779
760
|
return r.call(e);
|
|
@@ -785,16 +766,16 @@ function We(e) {
|
|
|
785
766
|
};
|
|
786
767
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
787
768
|
}
|
|
788
|
-
function
|
|
769
|
+
function qe(e, t) {
|
|
789
770
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
790
771
|
if (!r)
|
|
791
772
|
return e;
|
|
792
|
-
var i = r.call(e), n,
|
|
773
|
+
var i = r.call(e), n, o = [], a;
|
|
793
774
|
try {
|
|
794
775
|
for (; (t === void 0 || t-- > 0) && !(n = i.next()).done; )
|
|
795
|
-
|
|
796
|
-
} catch (
|
|
797
|
-
a = { error:
|
|
776
|
+
o.push(n.value);
|
|
777
|
+
} catch (s) {
|
|
778
|
+
a = { error: s };
|
|
798
779
|
} finally {
|
|
799
780
|
try {
|
|
800
781
|
n && !n.done && (r = i.return) && r.call(i);
|
|
@@ -803,24 +784,24 @@ function ze(e, t) {
|
|
|
803
784
|
throw a.error;
|
|
804
785
|
}
|
|
805
786
|
}
|
|
806
|
-
return
|
|
787
|
+
return o;
|
|
807
788
|
}
|
|
808
|
-
function
|
|
809
|
-
if (
|
|
810
|
-
for (var i = 0, n = t.length,
|
|
811
|
-
(
|
|
812
|
-
return e.concat(
|
|
789
|
+
function Je(e, t, r) {
|
|
790
|
+
if (arguments.length === 2)
|
|
791
|
+
for (var i = 0, n = t.length, o; i < n; i++)
|
|
792
|
+
(o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
|
|
793
|
+
return e.concat(o || t);
|
|
813
794
|
}
|
|
814
|
-
function
|
|
795
|
+
function $(e) {
|
|
815
796
|
return typeof e == "function";
|
|
816
797
|
}
|
|
817
|
-
function
|
|
798
|
+
function er(e) {
|
|
818
799
|
var t = function(i) {
|
|
819
800
|
Error.call(i), i.stack = new Error().stack;
|
|
820
801
|
}, r = e(t);
|
|
821
802
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
822
803
|
}
|
|
823
|
-
var
|
|
804
|
+
var De = er(function(e) {
|
|
824
805
|
return function(r) {
|
|
825
806
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
826
807
|
` + r.map(function(i, n) {
|
|
@@ -829,25 +810,25 @@ var Ge = Qt(function(e) {
|
|
|
829
810
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
830
811
|
};
|
|
831
812
|
});
|
|
832
|
-
function
|
|
813
|
+
function Ye(e, t) {
|
|
833
814
|
if (e) {
|
|
834
815
|
var r = e.indexOf(t);
|
|
835
816
|
0 <= r && e.splice(r, 1);
|
|
836
817
|
}
|
|
837
818
|
}
|
|
838
|
-
var
|
|
819
|
+
var Ae = function() {
|
|
839
820
|
function e(t) {
|
|
840
821
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
841
822
|
}
|
|
842
823
|
return e.prototype.unsubscribe = function() {
|
|
843
|
-
var t, r, i, n,
|
|
824
|
+
var t, r, i, n, o;
|
|
844
825
|
if (!this.closed) {
|
|
845
826
|
this.closed = !0;
|
|
846
827
|
var a = this._parentage;
|
|
847
828
|
if (a)
|
|
848
829
|
if (this._parentage = null, Array.isArray(a))
|
|
849
830
|
try {
|
|
850
|
-
for (var
|
|
831
|
+
for (var s = Qe(a), u = s.next(); !u.done; u = s.next()) {
|
|
851
832
|
var l = u.value;
|
|
852
833
|
l.remove(this);
|
|
853
834
|
}
|
|
@@ -855,7 +836,7 @@ var Pe = function() {
|
|
|
855
836
|
t = { error: g };
|
|
856
837
|
} finally {
|
|
857
838
|
try {
|
|
858
|
-
u && !u.done && (r =
|
|
839
|
+
u && !u.done && (r = s.return) && r.call(s);
|
|
859
840
|
} finally {
|
|
860
841
|
if (t)
|
|
861
842
|
throw t.error;
|
|
@@ -864,22 +845,22 @@ var Pe = function() {
|
|
|
864
845
|
else
|
|
865
846
|
a.remove(this);
|
|
866
847
|
var h = this.initialTeardown;
|
|
867
|
-
if (
|
|
848
|
+
if ($(h))
|
|
868
849
|
try {
|
|
869
850
|
h();
|
|
870
851
|
} catch (g) {
|
|
871
|
-
|
|
852
|
+
o = g instanceof De ? g.errors : [g];
|
|
872
853
|
}
|
|
873
854
|
var f = this._finalizers;
|
|
874
855
|
if (f) {
|
|
875
856
|
this._finalizers = null;
|
|
876
857
|
try {
|
|
877
|
-
for (var c =
|
|
858
|
+
for (var c = Qe(f), b = c.next(); !b.done; b = c.next()) {
|
|
878
859
|
var p = b.value;
|
|
879
860
|
try {
|
|
880
|
-
|
|
861
|
+
wt(p);
|
|
881
862
|
} catch (g) {
|
|
882
|
-
|
|
863
|
+
o = o != null ? o : [], g instanceof De ? o = Je(Je([], qe(o)), qe(g.errors)) : o.push(g);
|
|
883
864
|
}
|
|
884
865
|
}
|
|
885
866
|
} catch (g) {
|
|
@@ -893,14 +874,14 @@ var Pe = function() {
|
|
|
893
874
|
}
|
|
894
875
|
}
|
|
895
876
|
}
|
|
896
|
-
if (
|
|
897
|
-
throw new
|
|
877
|
+
if (o)
|
|
878
|
+
throw new De(o);
|
|
898
879
|
}
|
|
899
880
|
}, e.prototype.add = function(t) {
|
|
900
881
|
var r;
|
|
901
882
|
if (t && t !== this)
|
|
902
883
|
if (this.closed)
|
|
903
|
-
|
|
884
|
+
wt(t);
|
|
904
885
|
else {
|
|
905
886
|
if (t instanceof e) {
|
|
906
887
|
if (t.closed || t._hasParent(this))
|
|
@@ -917,52 +898,52 @@ var Pe = function() {
|
|
|
917
898
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
918
899
|
}, e.prototype._removeParent = function(t) {
|
|
919
900
|
var r = this._parentage;
|
|
920
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
901
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ye(r, t);
|
|
921
902
|
}, e.prototype.remove = function(t) {
|
|
922
903
|
var r = this._finalizers;
|
|
923
|
-
r &&
|
|
904
|
+
r && Ye(r, t), t instanceof e && t._removeParent(this);
|
|
924
905
|
}, e.EMPTY = function() {
|
|
925
906
|
var t = new e();
|
|
926
907
|
return t.closed = !0, t;
|
|
927
908
|
}(), e;
|
|
928
|
-
}(),
|
|
929
|
-
function
|
|
930
|
-
return e instanceof
|
|
909
|
+
}(), tr = Ae.EMPTY;
|
|
910
|
+
function rr(e) {
|
|
911
|
+
return e instanceof Ae || e && "closed" in e && $(e.remove) && $(e.add) && $(e.unsubscribe);
|
|
931
912
|
}
|
|
932
|
-
function
|
|
933
|
-
|
|
913
|
+
function wt(e) {
|
|
914
|
+
$(e) ? e() : e.unsubscribe();
|
|
934
915
|
}
|
|
935
|
-
var
|
|
916
|
+
var bi = {
|
|
936
917
|
Promise: void 0
|
|
937
|
-
},
|
|
918
|
+
}, yi = {
|
|
938
919
|
setTimeout: function(e, t) {
|
|
939
920
|
for (var r = [], i = 2; i < arguments.length; i++)
|
|
940
921
|
r[i - 2] = arguments[i];
|
|
941
|
-
return setTimeout.apply(void 0,
|
|
922
|
+
return setTimeout.apply(void 0, Je([e, t], qe(r)));
|
|
942
923
|
},
|
|
943
924
|
clearTimeout: function(e) {
|
|
944
925
|
return clearTimeout(e);
|
|
945
926
|
},
|
|
946
927
|
delegate: void 0
|
|
947
928
|
};
|
|
948
|
-
function
|
|
949
|
-
|
|
929
|
+
function vi(e) {
|
|
930
|
+
yi.setTimeout(function() {
|
|
950
931
|
throw e;
|
|
951
932
|
});
|
|
952
933
|
}
|
|
953
|
-
function
|
|
934
|
+
function Lt() {
|
|
954
935
|
}
|
|
955
936
|
function ve(e) {
|
|
956
937
|
e();
|
|
957
938
|
}
|
|
958
|
-
var
|
|
959
|
-
|
|
939
|
+
var ir = function(e) {
|
|
940
|
+
me(t, e);
|
|
960
941
|
function t(r) {
|
|
961
942
|
var i = e.call(this) || this;
|
|
962
|
-
return i.isStopped = !1, r ? (i.destination = r,
|
|
943
|
+
return i.isStopped = !1, r ? (i.destination = r, rr(r) && r.add(i)) : i.destination = xi, i;
|
|
963
944
|
}
|
|
964
945
|
return t.create = function(r, i, n) {
|
|
965
|
-
return new
|
|
946
|
+
return new Ke(r, i, n);
|
|
966
947
|
}, t.prototype.next = function(r) {
|
|
967
948
|
this.isStopped || this._next(r);
|
|
968
949
|
}, t.prototype.error = function(r) {
|
|
@@ -986,7 +967,7 @@ var Yt = function(e) {
|
|
|
986
967
|
this.unsubscribe();
|
|
987
968
|
}
|
|
988
969
|
}, t;
|
|
989
|
-
}(
|
|
970
|
+
}(Ae), _i = function() {
|
|
990
971
|
function e(t) {
|
|
991
972
|
this.partialObserver = t;
|
|
992
973
|
}
|
|
@@ -1017,43 +998,43 @@ var Yt = function(e) {
|
|
|
1017
998
|
de(r);
|
|
1018
999
|
}
|
|
1019
1000
|
}, e;
|
|
1020
|
-
}(),
|
|
1021
|
-
|
|
1001
|
+
}(), Ke = function(e) {
|
|
1002
|
+
me(t, e);
|
|
1022
1003
|
function t(r, i, n) {
|
|
1023
|
-
var
|
|
1024
|
-
return
|
|
1004
|
+
var o = e.call(this) || this, a;
|
|
1005
|
+
return $(r) || !r ? a = {
|
|
1025
1006
|
next: r != null ? r : void 0,
|
|
1026
1007
|
error: i != null ? i : void 0,
|
|
1027
1008
|
complete: n != null ? n : void 0
|
|
1028
|
-
} : a = r,
|
|
1009
|
+
} : a = r, o.destination = new _i(a), o;
|
|
1029
1010
|
}
|
|
1030
1011
|
return t;
|
|
1031
|
-
}(
|
|
1012
|
+
}(ir);
|
|
1032
1013
|
function de(e) {
|
|
1033
|
-
|
|
1014
|
+
vi(e);
|
|
1034
1015
|
}
|
|
1035
|
-
function
|
|
1016
|
+
function Ei(e) {
|
|
1036
1017
|
throw e;
|
|
1037
1018
|
}
|
|
1038
|
-
var
|
|
1019
|
+
var xi = {
|
|
1039
1020
|
closed: !0,
|
|
1040
|
-
next:
|
|
1041
|
-
error:
|
|
1042
|
-
complete:
|
|
1043
|
-
},
|
|
1021
|
+
next: Lt,
|
|
1022
|
+
error: Ei,
|
|
1023
|
+
complete: Lt
|
|
1024
|
+
}, wi = function() {
|
|
1044
1025
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1045
1026
|
}();
|
|
1046
|
-
function
|
|
1027
|
+
function Li(e) {
|
|
1047
1028
|
return e;
|
|
1048
1029
|
}
|
|
1049
|
-
function
|
|
1050
|
-
return e.length === 0 ?
|
|
1030
|
+
function Ti(e) {
|
|
1031
|
+
return e.length === 0 ? Li : e.length === 1 ? e[0] : function(r) {
|
|
1051
1032
|
return e.reduce(function(i, n) {
|
|
1052
1033
|
return n(i);
|
|
1053
1034
|
}, r);
|
|
1054
1035
|
};
|
|
1055
1036
|
}
|
|
1056
|
-
var
|
|
1037
|
+
var Tt = function() {
|
|
1057
1038
|
function e(t) {
|
|
1058
1039
|
t && (this._subscribe = t);
|
|
1059
1040
|
}
|
|
@@ -1061,11 +1042,11 @@ var _t = function() {
|
|
|
1061
1042
|
var r = new e();
|
|
1062
1043
|
return r.source = this, r.operator = t, r;
|
|
1063
1044
|
}, e.prototype.subscribe = function(t, r, i) {
|
|
1064
|
-
var n = this,
|
|
1045
|
+
var n = this, o = Hi(t) ? t : new Ke(t, r, i);
|
|
1065
1046
|
return ve(function() {
|
|
1066
|
-
var a = n,
|
|
1067
|
-
|
|
1068
|
-
}),
|
|
1047
|
+
var a = n, s = a.operator, u = a.source;
|
|
1048
|
+
o.add(s ? s.call(o, u) : u ? n._subscribe(o) : n._trySubscribe(o));
|
|
1049
|
+
}), o;
|
|
1069
1050
|
}, e.prototype._trySubscribe = function(t) {
|
|
1070
1051
|
try {
|
|
1071
1052
|
return this._subscribe(t);
|
|
@@ -1074,16 +1055,16 @@ var _t = function() {
|
|
|
1074
1055
|
}
|
|
1075
1056
|
}, e.prototype.forEach = function(t, r) {
|
|
1076
1057
|
var i = this;
|
|
1077
|
-
return r =
|
|
1078
|
-
var a = new
|
|
1079
|
-
next: function(
|
|
1058
|
+
return r = St(r), new r(function(n, o) {
|
|
1059
|
+
var a = new Ke({
|
|
1060
|
+
next: function(s) {
|
|
1080
1061
|
try {
|
|
1081
|
-
t(
|
|
1062
|
+
t(s);
|
|
1082
1063
|
} catch (u) {
|
|
1083
|
-
|
|
1064
|
+
o(u), a.unsubscribe();
|
|
1084
1065
|
}
|
|
1085
1066
|
},
|
|
1086
|
-
error:
|
|
1067
|
+
error: o,
|
|
1087
1068
|
complete: n
|
|
1088
1069
|
});
|
|
1089
1070
|
i.subscribe(a);
|
|
@@ -1091,70 +1072,70 @@ var _t = function() {
|
|
|
1091
1072
|
}, e.prototype._subscribe = function(t) {
|
|
1092
1073
|
var r;
|
|
1093
1074
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
1094
|
-
}, e.prototype[
|
|
1075
|
+
}, e.prototype[wi] = function() {
|
|
1095
1076
|
return this;
|
|
1096
1077
|
}, e.prototype.pipe = function() {
|
|
1097
1078
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
1098
1079
|
t[r] = arguments[r];
|
|
1099
|
-
return
|
|
1080
|
+
return Ti(t)(this);
|
|
1100
1081
|
}, e.prototype.toPromise = function(t) {
|
|
1101
1082
|
var r = this;
|
|
1102
|
-
return t =
|
|
1103
|
-
var
|
|
1083
|
+
return t = St(t), new t(function(i, n) {
|
|
1084
|
+
var o;
|
|
1104
1085
|
r.subscribe(function(a) {
|
|
1105
|
-
return
|
|
1086
|
+
return o = a;
|
|
1106
1087
|
}, function(a) {
|
|
1107
1088
|
return n(a);
|
|
1108
1089
|
}, function() {
|
|
1109
|
-
return i(
|
|
1090
|
+
return i(o);
|
|
1110
1091
|
});
|
|
1111
1092
|
});
|
|
1112
1093
|
}, e.create = function(t) {
|
|
1113
1094
|
return new e(t);
|
|
1114
1095
|
}, e;
|
|
1115
1096
|
}();
|
|
1116
|
-
function
|
|
1097
|
+
function St(e) {
|
|
1117
1098
|
var t;
|
|
1118
|
-
return (t = e != null ? e :
|
|
1099
|
+
return (t = e != null ? e : bi.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1119
1100
|
}
|
|
1120
|
-
function
|
|
1121
|
-
return e &&
|
|
1101
|
+
function Si(e) {
|
|
1102
|
+
return e && $(e.next) && $(e.error) && $(e.complete);
|
|
1122
1103
|
}
|
|
1123
|
-
function
|
|
1124
|
-
return e && e instanceof
|
|
1104
|
+
function Hi(e) {
|
|
1105
|
+
return e && e instanceof ir || Si(e) && rr(e);
|
|
1125
1106
|
}
|
|
1126
|
-
var
|
|
1107
|
+
var Pi = er(function(e) {
|
|
1127
1108
|
return function() {
|
|
1128
1109
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1129
1110
|
};
|
|
1130
|
-
}),
|
|
1131
|
-
|
|
1111
|
+
}), nr = function(e) {
|
|
1112
|
+
me(t, e);
|
|
1132
1113
|
function t() {
|
|
1133
1114
|
var r = e.call(this) || this;
|
|
1134
1115
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
1135
1116
|
}
|
|
1136
1117
|
return t.prototype.lift = function(r) {
|
|
1137
|
-
var i = new
|
|
1118
|
+
var i = new Ht(this, this);
|
|
1138
1119
|
return i.operator = r, i;
|
|
1139
1120
|
}, t.prototype._throwIfClosed = function() {
|
|
1140
1121
|
if (this.closed)
|
|
1141
|
-
throw new
|
|
1122
|
+
throw new Pi();
|
|
1142
1123
|
}, t.prototype.next = function(r) {
|
|
1143
1124
|
var i = this;
|
|
1144
1125
|
ve(function() {
|
|
1145
|
-
var n,
|
|
1126
|
+
var n, o;
|
|
1146
1127
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
1147
1128
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
|
1148
1129
|
try {
|
|
1149
|
-
for (var a =
|
|
1150
|
-
var u =
|
|
1130
|
+
for (var a = Qe(i.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
1131
|
+
var u = s.value;
|
|
1151
1132
|
u.next(r);
|
|
1152
1133
|
}
|
|
1153
1134
|
} catch (l) {
|
|
1154
1135
|
n = { error: l };
|
|
1155
1136
|
} finally {
|
|
1156
1137
|
try {
|
|
1157
|
-
|
|
1138
|
+
s && !s.done && (o = a.return) && o.call(a);
|
|
1158
1139
|
} finally {
|
|
1159
1140
|
if (n)
|
|
1160
1141
|
throw n.error;
|
|
@@ -1194,21 +1175,21 @@ var Li = Qt(function(e) {
|
|
|
1194
1175
|
}, t.prototype._subscribe = function(r) {
|
|
1195
1176
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1196
1177
|
}, t.prototype._innerSubscribe = function(r) {
|
|
1197
|
-
var i = this, n = this,
|
|
1198
|
-
return
|
|
1199
|
-
i.currentObservers = null,
|
|
1178
|
+
var i = this, n = this, o = n.hasError, a = n.isStopped, s = n.observers;
|
|
1179
|
+
return o || a ? tr : (this.currentObservers = null, s.push(r), new Ae(function() {
|
|
1180
|
+
i.currentObservers = null, Ye(s, r);
|
|
1200
1181
|
}));
|
|
1201
1182
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1202
|
-
var i = this, n = i.hasError,
|
|
1203
|
-
n ? r.error(
|
|
1183
|
+
var i = this, n = i.hasError, o = i.thrownError, a = i.isStopped;
|
|
1184
|
+
n ? r.error(o) : a && r.complete();
|
|
1204
1185
|
}, t.prototype.asObservable = function() {
|
|
1205
|
-
var r = new
|
|
1186
|
+
var r = new Tt();
|
|
1206
1187
|
return r.source = this, r;
|
|
1207
1188
|
}, t.create = function(r, i) {
|
|
1208
|
-
return new
|
|
1189
|
+
return new Ht(r, i);
|
|
1209
1190
|
}, t;
|
|
1210
|
-
}(
|
|
1211
|
-
|
|
1191
|
+
}(Tt), Ht = function(e) {
|
|
1192
|
+
me(t, e);
|
|
1212
1193
|
function t(r, i) {
|
|
1213
1194
|
var n = e.call(this) || this;
|
|
1214
1195
|
return n.destination = r, n.source = i, n;
|
|
@@ -1224,54 +1205,54 @@ var Li = Qt(function(e) {
|
|
|
1224
1205
|
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || i === void 0 || i.call(r);
|
|
1225
1206
|
}, t.prototype._subscribe = function(r) {
|
|
1226
1207
|
var i, n;
|
|
1227
|
-
return (n = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(r)) !== null && n !== void 0 ? n :
|
|
1208
|
+
return (n = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(r)) !== null && n !== void 0 ? n : tr;
|
|
1228
1209
|
}, t;
|
|
1229
|
-
}(
|
|
1210
|
+
}(nr), or = {
|
|
1230
1211
|
now: function() {
|
|
1231
|
-
return (
|
|
1212
|
+
return (or.delegate || Date).now();
|
|
1232
1213
|
},
|
|
1233
1214
|
delegate: void 0
|
|
1234
|
-
},
|
|
1235
|
-
|
|
1215
|
+
}, Ai = function(e) {
|
|
1216
|
+
me(t, e);
|
|
1236
1217
|
function t(r, i, n) {
|
|
1237
|
-
r === void 0 && (r = 1 / 0), i === void 0 && (i = 1 / 0), n === void 0 && (n =
|
|
1238
|
-
var
|
|
1239
|
-
return
|
|
1218
|
+
r === void 0 && (r = 1 / 0), i === void 0 && (i = 1 / 0), n === void 0 && (n = or);
|
|
1219
|
+
var o = e.call(this) || this;
|
|
1220
|
+
return o._bufferSize = r, o._windowTime = i, o._timestampProvider = n, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = i === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, i), o;
|
|
1240
1221
|
}
|
|
1241
1222
|
return t.prototype.next = function(r) {
|
|
1242
|
-
var i = this, n = i.isStopped,
|
|
1243
|
-
n || (
|
|
1223
|
+
var i = this, n = i.isStopped, o = i._buffer, a = i._infiniteTimeWindow, s = i._timestampProvider, u = i._windowTime;
|
|
1224
|
+
n || (o.push(r), !a && o.push(s.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1244
1225
|
}, t.prototype._subscribe = function(r) {
|
|
1245
1226
|
this._throwIfClosed(), this._trimBuffer();
|
|
1246
|
-
for (var i = this._innerSubscribe(r), n = this,
|
|
1247
|
-
r.next(
|
|
1227
|
+
for (var i = this._innerSubscribe(r), n = this, o = n._infiniteTimeWindow, a = n._buffer, s = a.slice(), u = 0; u < s.length && !r.closed; u += o ? 1 : 2)
|
|
1228
|
+
r.next(s[u]);
|
|
1248
1229
|
return this._checkFinalizedStatuses(r), i;
|
|
1249
1230
|
}, t.prototype._trimBuffer = function() {
|
|
1250
|
-
var r = this, i = r._bufferSize, n = r._timestampProvider,
|
|
1251
|
-
if (i < 1 / 0 &&
|
|
1252
|
-
for (var u = n.now(), l = 0, h = 1; h <
|
|
1231
|
+
var r = this, i = r._bufferSize, n = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * i;
|
|
1232
|
+
if (i < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1233
|
+
for (var u = n.now(), l = 0, h = 1; h < o.length && o[h] <= u; h += 2)
|
|
1253
1234
|
l = h;
|
|
1254
|
-
l &&
|
|
1235
|
+
l && o.splice(0, l + 1);
|
|
1255
1236
|
}
|
|
1256
1237
|
}, t;
|
|
1257
|
-
}(
|
|
1258
|
-
const
|
|
1259
|
-
if (
|
|
1260
|
-
const r = new
|
|
1261
|
-
|
|
1238
|
+
}(nr);
|
|
1239
|
+
const Pt = [], At = {}, Bi = (e, t = 0) => {
|
|
1240
|
+
if (Pt.indexOf(e) == -1) {
|
|
1241
|
+
const r = new Ai(t);
|
|
1242
|
+
At[e] = r, Pt.push(e);
|
|
1262
1243
|
}
|
|
1263
|
-
return
|
|
1244
|
+
return At[e];
|
|
1264
1245
|
}, z = [];
|
|
1265
|
-
function
|
|
1246
|
+
function Oi(e, t) {
|
|
1266
1247
|
return {
|
|
1267
|
-
subscribe:
|
|
1248
|
+
subscribe: Be(e, t).subscribe
|
|
1268
1249
|
};
|
|
1269
1250
|
}
|
|
1270
|
-
function
|
|
1251
|
+
function Be(e, t = M) {
|
|
1271
1252
|
let r;
|
|
1272
1253
|
const i = /* @__PURE__ */ new Set();
|
|
1273
|
-
function n(
|
|
1274
|
-
if (
|
|
1254
|
+
function n(s) {
|
|
1255
|
+
if (Wt(e, s) && (e = s, r)) {
|
|
1275
1256
|
const u = !z.length;
|
|
1276
1257
|
for (const l of i)
|
|
1277
1258
|
l[1](), z.push(l, e);
|
|
@@ -1282,23 +1263,23 @@ function Ae(e, t = M) {
|
|
|
1282
1263
|
}
|
|
1283
1264
|
}
|
|
1284
1265
|
}
|
|
1285
|
-
function s
|
|
1286
|
-
n(
|
|
1266
|
+
function o(s) {
|
|
1267
|
+
n(s(e));
|
|
1287
1268
|
}
|
|
1288
|
-
function a(
|
|
1289
|
-
const l = [
|
|
1290
|
-
return i.add(l), i.size === 1 && (r = t(n,
|
|
1269
|
+
function a(s, u = M) {
|
|
1270
|
+
const l = [s, u];
|
|
1271
|
+
return i.add(l), i.size === 1 && (r = t(n, o) || M), s(e), () => {
|
|
1291
1272
|
i.delete(l), i.size === 0 && r && (r(), r = null);
|
|
1292
1273
|
};
|
|
1293
1274
|
}
|
|
1294
|
-
return { set: n, update:
|
|
1275
|
+
return { set: n, update: o, subscribe: a };
|
|
1295
1276
|
}
|
|
1296
|
-
function
|
|
1277
|
+
function ie(e, t, r) {
|
|
1297
1278
|
const i = !Array.isArray(e), n = i ? [e] : e;
|
|
1298
1279
|
if (!n.every(Boolean))
|
|
1299
1280
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1300
|
-
const
|
|
1301
|
-
return
|
|
1281
|
+
const o = t.length < 2;
|
|
1282
|
+
return Oi(r, (a, s) => {
|
|
1302
1283
|
let u = !1;
|
|
1303
1284
|
const l = [];
|
|
1304
1285
|
let h = 0, f = M;
|
|
@@ -1306,10 +1287,10 @@ function ne(e, t, r) {
|
|
|
1306
1287
|
if (h)
|
|
1307
1288
|
return;
|
|
1308
1289
|
f();
|
|
1309
|
-
const p = t(i ? l[0] : l, a,
|
|
1310
|
-
|
|
1290
|
+
const p = t(i ? l[0] : l, a, s);
|
|
1291
|
+
o ? a(p) : f = Pe(p) ? p : M;
|
|
1311
1292
|
}, b = n.map(
|
|
1312
|
-
(p, g) =>
|
|
1293
|
+
(p, g) => zt(
|
|
1313
1294
|
p,
|
|
1314
1295
|
(d) => {
|
|
1315
1296
|
l[g] = d, h &= ~(1 << g), u && c();
|
|
@@ -1324,111 +1305,153 @@ function ne(e, t, r) {
|
|
|
1324
1305
|
};
|
|
1325
1306
|
});
|
|
1326
1307
|
}
|
|
1327
|
-
function
|
|
1308
|
+
function Mi(e) {
|
|
1328
1309
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1329
1310
|
}
|
|
1330
|
-
var
|
|
1331
|
-
return
|
|
1311
|
+
var Ii = function(t) {
|
|
1312
|
+
return Ni(t) && !Ci(t);
|
|
1332
1313
|
};
|
|
1333
|
-
function
|
|
1314
|
+
function Ni(e) {
|
|
1334
1315
|
return !!e && typeof e == "object";
|
|
1335
1316
|
}
|
|
1336
|
-
function
|
|
1317
|
+
function Ci(e) {
|
|
1337
1318
|
var t = Object.prototype.toString.call(e);
|
|
1338
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1319
|
+
return t === "[object RegExp]" || t === "[object Date]" || $i(e);
|
|
1339
1320
|
}
|
|
1340
|
-
var
|
|
1341
|
-
function
|
|
1342
|
-
return e.$$typeof ===
|
|
1321
|
+
var Ri = typeof Symbol == "function" && Symbol.for, Gi = Ri ? Symbol.for("react.element") : 60103;
|
|
1322
|
+
function $i(e) {
|
|
1323
|
+
return e.$$typeof === Gi;
|
|
1343
1324
|
}
|
|
1344
|
-
function
|
|
1325
|
+
function Di(e) {
|
|
1345
1326
|
return Array.isArray(e) ? [] : {};
|
|
1346
1327
|
}
|
|
1347
|
-
function
|
|
1348
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1328
|
+
function ce(e, t) {
|
|
1329
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Y(Di(e), e, t) : e;
|
|
1349
1330
|
}
|
|
1350
|
-
function
|
|
1331
|
+
function Ui(e, t, r) {
|
|
1351
1332
|
return e.concat(t).map(function(i) {
|
|
1352
|
-
return
|
|
1333
|
+
return ce(i, r);
|
|
1353
1334
|
});
|
|
1354
1335
|
}
|
|
1355
|
-
function
|
|
1336
|
+
function Fi(e, t) {
|
|
1356
1337
|
if (!t.customMerge)
|
|
1357
|
-
return
|
|
1338
|
+
return Y;
|
|
1358
1339
|
var r = t.customMerge(e);
|
|
1359
|
-
return typeof r == "function" ? r :
|
|
1340
|
+
return typeof r == "function" ? r : Y;
|
|
1360
1341
|
}
|
|
1361
|
-
function
|
|
1342
|
+
function ji(e) {
|
|
1362
1343
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1363
1344
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1364
1345
|
}) : [];
|
|
1365
1346
|
}
|
|
1366
|
-
function
|
|
1367
|
-
return Object.keys(e).concat(
|
|
1347
|
+
function Bt(e) {
|
|
1348
|
+
return Object.keys(e).concat(ji(e));
|
|
1368
1349
|
}
|
|
1369
|
-
function
|
|
1350
|
+
function sr(e, t) {
|
|
1370
1351
|
try {
|
|
1371
1352
|
return t in e;
|
|
1372
1353
|
} catch (r) {
|
|
1373
1354
|
return !1;
|
|
1374
1355
|
}
|
|
1375
1356
|
}
|
|
1376
|
-
function
|
|
1377
|
-
return
|
|
1357
|
+
function ki(e, t) {
|
|
1358
|
+
return sr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1378
1359
|
}
|
|
1379
|
-
function
|
|
1360
|
+
function Vi(e, t, r) {
|
|
1380
1361
|
var i = {};
|
|
1381
|
-
return r.isMergeableObject(e) &&
|
|
1382
|
-
i[n] =
|
|
1383
|
-
}),
|
|
1384
|
-
|
|
1362
|
+
return r.isMergeableObject(e) && Bt(e).forEach(function(n) {
|
|
1363
|
+
i[n] = ce(e[n], r);
|
|
1364
|
+
}), Bt(t).forEach(function(n) {
|
|
1365
|
+
ki(e, n) || (sr(e, n) && r.isMergeableObject(t[n]) ? i[n] = Fi(n, r)(e[n], t[n], r) : i[n] = ce(t[n], r));
|
|
1385
1366
|
}), i;
|
|
1386
1367
|
}
|
|
1387
|
-
function
|
|
1388
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1389
|
-
var i = Array.isArray(t), n = Array.isArray(e),
|
|
1390
|
-
return
|
|
1368
|
+
function Y(e, t, r) {
|
|
1369
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Ui, r.isMergeableObject = r.isMergeableObject || Ii, r.cloneUnlessOtherwiseSpecified = ce;
|
|
1370
|
+
var i = Array.isArray(t), n = Array.isArray(e), o = i === n;
|
|
1371
|
+
return o ? i ? r.arrayMerge(e, t, r) : Vi(e, t, r) : ce(t, r);
|
|
1391
1372
|
}
|
|
1392
|
-
|
|
1373
|
+
Y.all = function(t, r) {
|
|
1393
1374
|
if (!Array.isArray(t))
|
|
1394
1375
|
throw new Error("first argument should be an array");
|
|
1395
1376
|
return t.reduce(function(i, n) {
|
|
1396
|
-
return
|
|
1377
|
+
return Y(i, n, r);
|
|
1397
1378
|
}, {});
|
|
1398
1379
|
};
|
|
1399
|
-
var
|
|
1400
|
-
const
|
|
1401
|
-
function
|
|
1402
|
-
|
|
1380
|
+
var Xi = Y, Wi = Xi;
|
|
1381
|
+
const zi = /* @__PURE__ */ Mi(Wi);
|
|
1382
|
+
var et = function(e, t) {
|
|
1383
|
+
return et = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
1384
|
+
r.__proto__ = i;
|
|
1385
|
+
} || function(r, i) {
|
|
1386
|
+
for (var n in i)
|
|
1387
|
+
Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
|
|
1388
|
+
}, et(e, t);
|
|
1389
|
+
};
|
|
1390
|
+
function Oe(e, t) {
|
|
1391
|
+
if (typeof t != "function" && t !== null)
|
|
1392
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1393
|
+
et(e, t);
|
|
1394
|
+
function r() {
|
|
1395
|
+
this.constructor = e;
|
|
1396
|
+
}
|
|
1397
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1398
|
+
}
|
|
1399
|
+
var C = function() {
|
|
1400
|
+
return C = Object.assign || function(t) {
|
|
1401
|
+
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
1402
|
+
r = arguments[i];
|
|
1403
|
+
for (var o in r)
|
|
1404
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1405
|
+
}
|
|
1406
|
+
return t;
|
|
1407
|
+
}, C.apply(this, arguments);
|
|
1408
|
+
};
|
|
1409
|
+
function Zi(e, t) {
|
|
1410
|
+
var r = {};
|
|
1411
|
+
for (var i in e)
|
|
1412
|
+
Object.prototype.hasOwnProperty.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
1413
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1414
|
+
for (var n = 0, i = Object.getOwnPropertySymbols(e); n < i.length; n++)
|
|
1415
|
+
t.indexOf(i[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, i[n]) && (r[i[n]] = e[i[n]]);
|
|
1416
|
+
return r;
|
|
1417
|
+
}
|
|
1418
|
+
function Ue(e, t, r) {
|
|
1419
|
+
if (r || arguments.length === 2)
|
|
1420
|
+
for (var i = 0, n = t.length, o; i < n; i++)
|
|
1421
|
+
(o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
|
|
1422
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1423
|
+
}
|
|
1424
|
+
function Fe(e, t) {
|
|
1425
|
+
var r = t && t.cache ? t.cache : tn, i = t && t.serializer ? t.serializer : Ki, n = t && t.strategy ? t.strategy : Ji;
|
|
1403
1426
|
return n(e, {
|
|
1404
1427
|
cache: r,
|
|
1405
1428
|
serializer: i
|
|
1406
1429
|
});
|
|
1407
1430
|
}
|
|
1408
|
-
function
|
|
1431
|
+
function Qi(e) {
|
|
1409
1432
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1410
1433
|
}
|
|
1411
|
-
function
|
|
1412
|
-
var n =
|
|
1413
|
-
return typeof
|
|
1434
|
+
function qi(e, t, r, i) {
|
|
1435
|
+
var n = Qi(i) ? i : r(i), o = t.get(n);
|
|
1436
|
+
return typeof o == "undefined" && (o = e.call(this, i), t.set(n, o)), o;
|
|
1414
1437
|
}
|
|
1415
|
-
function
|
|
1416
|
-
var i = Array.prototype.slice.call(arguments, 3), n = r(i),
|
|
1417
|
-
return typeof
|
|
1438
|
+
function ar(e, t, r) {
|
|
1439
|
+
var i = Array.prototype.slice.call(arguments, 3), n = r(i), o = t.get(n);
|
|
1440
|
+
return typeof o == "undefined" && (o = e.apply(this, i), t.set(n, o)), o;
|
|
1418
1441
|
}
|
|
1419
|
-
function
|
|
1442
|
+
function ur(e, t, r, i, n) {
|
|
1420
1443
|
return r.bind(t, e, i, n);
|
|
1421
1444
|
}
|
|
1422
|
-
function
|
|
1423
|
-
var r = e.length === 1 ?
|
|
1424
|
-
return
|
|
1445
|
+
function Ji(e, t) {
|
|
1446
|
+
var r = e.length === 1 ? qi : ar;
|
|
1447
|
+
return ur(e, this, r, t.cache.create(), t.serializer);
|
|
1425
1448
|
}
|
|
1426
|
-
function
|
|
1427
|
-
return
|
|
1449
|
+
function Yi(e, t) {
|
|
1450
|
+
return ur(e, this, ar, t.cache.create(), t.serializer);
|
|
1428
1451
|
}
|
|
1429
|
-
var
|
|
1452
|
+
var Ki = function() {
|
|
1430
1453
|
return JSON.stringify(arguments);
|
|
1431
|
-
},
|
|
1454
|
+
}, en = (
|
|
1432
1455
|
/** @class */
|
|
1433
1456
|
function() {
|
|
1434
1457
|
function e() {
|
|
@@ -1440,61 +1463,71 @@ var Zi = function() {
|
|
|
1440
1463
|
this.cache[t] = r;
|
|
1441
1464
|
}, e;
|
|
1442
1465
|
}()
|
|
1443
|
-
),
|
|
1466
|
+
), tn = {
|
|
1444
1467
|
create: function() {
|
|
1445
|
-
return new
|
|
1468
|
+
return new en();
|
|
1446
1469
|
}
|
|
1447
|
-
},
|
|
1448
|
-
variadic:
|
|
1449
|
-
},
|
|
1470
|
+
}, je = {
|
|
1471
|
+
variadic: Yi
|
|
1472
|
+
}, Te = function() {
|
|
1473
|
+
return Te = Object.assign || function(t) {
|
|
1474
|
+
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
1475
|
+
r = arguments[i];
|
|
1476
|
+
for (var o in r)
|
|
1477
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1478
|
+
}
|
|
1479
|
+
return t;
|
|
1480
|
+
}, Te.apply(this, arguments);
|
|
1481
|
+
};
|
|
1482
|
+
var _;
|
|
1450
1483
|
(function(e) {
|
|
1451
1484
|
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";
|
|
1452
1485
|
})(_ || (_ = {}));
|
|
1453
|
-
var
|
|
1486
|
+
var x;
|
|
1454
1487
|
(function(e) {
|
|
1455
1488
|
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";
|
|
1456
|
-
})(
|
|
1457
|
-
var
|
|
1489
|
+
})(x || (x = {}));
|
|
1490
|
+
var K;
|
|
1458
1491
|
(function(e) {
|
|
1459
1492
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1460
|
-
})(
|
|
1461
|
-
function
|
|
1462
|
-
return e.type ===
|
|
1493
|
+
})(K || (K = {}));
|
|
1494
|
+
function Ot(e) {
|
|
1495
|
+
return e.type === x.literal;
|
|
1463
1496
|
}
|
|
1464
|
-
function
|
|
1465
|
-
return e.type ===
|
|
1497
|
+
function rn(e) {
|
|
1498
|
+
return e.type === x.argument;
|
|
1466
1499
|
}
|
|
1467
|
-
function
|
|
1468
|
-
return e.type ===
|
|
1500
|
+
function lr(e) {
|
|
1501
|
+
return e.type === x.number;
|
|
1469
1502
|
}
|
|
1470
|
-
function
|
|
1471
|
-
return e.type ===
|
|
1503
|
+
function hr(e) {
|
|
1504
|
+
return e.type === x.date;
|
|
1472
1505
|
}
|
|
1473
|
-
function
|
|
1474
|
-
return e.type ===
|
|
1506
|
+
function cr(e) {
|
|
1507
|
+
return e.type === x.time;
|
|
1475
1508
|
}
|
|
1476
|
-
function
|
|
1477
|
-
return e.type ===
|
|
1509
|
+
function fr(e) {
|
|
1510
|
+
return e.type === x.select;
|
|
1478
1511
|
}
|
|
1479
|
-
function
|
|
1480
|
-
return e.type ===
|
|
1512
|
+
function mr(e) {
|
|
1513
|
+
return e.type === x.plural;
|
|
1481
1514
|
}
|
|
1482
|
-
function
|
|
1483
|
-
return e.type ===
|
|
1515
|
+
function nn(e) {
|
|
1516
|
+
return e.type === x.pound;
|
|
1484
1517
|
}
|
|
1485
|
-
function
|
|
1486
|
-
return e.type ===
|
|
1518
|
+
function pr(e) {
|
|
1519
|
+
return e.type === x.tag;
|
|
1487
1520
|
}
|
|
1488
|
-
function
|
|
1489
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1521
|
+
function dr(e) {
|
|
1522
|
+
return !!(e && typeof e == "object" && e.type === K.number);
|
|
1490
1523
|
}
|
|
1491
|
-
function
|
|
1492
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1524
|
+
function tt(e) {
|
|
1525
|
+
return !!(e && typeof e == "object" && e.type === K.dateTime);
|
|
1493
1526
|
}
|
|
1494
|
-
var
|
|
1495
|
-
function
|
|
1527
|
+
var gr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, on = /(?:[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;
|
|
1528
|
+
function sn(e) {
|
|
1496
1529
|
var t = {};
|
|
1497
|
-
return e.replace(
|
|
1530
|
+
return e.replace(on, function(r) {
|
|
1498
1531
|
var i = r.length;
|
|
1499
1532
|
switch (r[0]) {
|
|
1500
1533
|
case "G":
|
|
@@ -1583,36 +1616,46 @@ function en(e) {
|
|
|
1583
1616
|
return "";
|
|
1584
1617
|
}), t;
|
|
1585
1618
|
}
|
|
1586
|
-
var
|
|
1587
|
-
function
|
|
1619
|
+
var L = function() {
|
|
1620
|
+
return L = Object.assign || function(t) {
|
|
1621
|
+
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
1622
|
+
r = arguments[i];
|
|
1623
|
+
for (var o in r)
|
|
1624
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1625
|
+
}
|
|
1626
|
+
return t;
|
|
1627
|
+
}, L.apply(this, arguments);
|
|
1628
|
+
};
|
|
1629
|
+
var an = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1630
|
+
function un(e) {
|
|
1588
1631
|
if (e.length === 0)
|
|
1589
1632
|
throw new Error("Number skeleton cannot be empty");
|
|
1590
|
-
for (var t = e.split(
|
|
1633
|
+
for (var t = e.split(an).filter(function(c) {
|
|
1591
1634
|
return c.length > 0;
|
|
1592
1635
|
}), r = [], i = 0, n = t; i < n.length; i++) {
|
|
1593
|
-
var
|
|
1636
|
+
var o = n[i], a = o.split("/");
|
|
1594
1637
|
if (a.length === 0)
|
|
1595
1638
|
throw new Error("Invalid number skeleton");
|
|
1596
|
-
for (var
|
|
1639
|
+
for (var s = a[0], u = a.slice(1), l = 0, h = u; l < h.length; l++) {
|
|
1597
1640
|
var f = h[l];
|
|
1598
1641
|
if (f.length === 0)
|
|
1599
1642
|
throw new Error("Invalid number skeleton");
|
|
1600
1643
|
}
|
|
1601
|
-
r.push({ stem:
|
|
1644
|
+
r.push({ stem: s, options: u });
|
|
1602
1645
|
}
|
|
1603
1646
|
return r;
|
|
1604
1647
|
}
|
|
1605
|
-
function
|
|
1648
|
+
function ln(e) {
|
|
1606
1649
|
return e.replace(/^(.*?)-/, "");
|
|
1607
1650
|
}
|
|
1608
|
-
var
|
|
1609
|
-
function
|
|
1651
|
+
var Mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, br = /^(@+)?(\+|#+)?[rs]?$/g, hn = /(\*)(0+)|(#+)(0+)|(0+)/g, yr = /^(0+)$/;
|
|
1652
|
+
function It(e) {
|
|
1610
1653
|
var t = {};
|
|
1611
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1654
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(br, function(r, i, n) {
|
|
1612
1655
|
return typeof n != "string" ? (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length) : n === "+" ? t.minimumSignificantDigits = i.length : i[0] === "#" ? t.maximumSignificantDigits = i.length : (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length + (typeof n == "string" ? n.length : 0)), "";
|
|
1613
1656
|
}), t;
|
|
1614
1657
|
}
|
|
1615
|
-
function
|
|
1658
|
+
function vr(e) {
|
|
1616
1659
|
switch (e) {
|
|
1617
1660
|
case "sign-auto":
|
|
1618
1661
|
return {
|
|
@@ -1652,7 +1695,7 @@ function pr(e) {
|
|
|
1652
1695
|
};
|
|
1653
1696
|
}
|
|
1654
1697
|
}
|
|
1655
|
-
function
|
|
1698
|
+
function cn(e) {
|
|
1656
1699
|
var t;
|
|
1657
1700
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1658
1701
|
notation: "engineering"
|
|
@@ -1660,17 +1703,17 @@ function on(e) {
|
|
|
1660
1703
|
notation: "scientific"
|
|
1661
1704
|
}, e = e.slice(1)), t) {
|
|
1662
1705
|
var r = e.slice(0, 2);
|
|
1663
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1706
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !yr.test(e))
|
|
1664
1707
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1665
1708
|
t.minimumIntegerDigits = e.length;
|
|
1666
1709
|
}
|
|
1667
1710
|
return t;
|
|
1668
1711
|
}
|
|
1669
|
-
function
|
|
1670
|
-
var t = {}, r =
|
|
1712
|
+
function Nt(e) {
|
|
1713
|
+
var t = {}, r = vr(e);
|
|
1671
1714
|
return r || t;
|
|
1672
1715
|
}
|
|
1673
|
-
function
|
|
1716
|
+
function fn(e) {
|
|
1674
1717
|
for (var t = {}, r = 0, i = e; r < i.length; r++) {
|
|
1675
1718
|
var n = i[r];
|
|
1676
1719
|
switch (n.stem) {
|
|
@@ -1694,7 +1737,7 @@ function an(e) {
|
|
|
1694
1737
|
continue;
|
|
1695
1738
|
case "measure-unit":
|
|
1696
1739
|
case "unit":
|
|
1697
|
-
t.style = "unit", t.unit =
|
|
1740
|
+
t.style = "unit", t.unit = ln(n.options[0]);
|
|
1698
1741
|
continue;
|
|
1699
1742
|
case "compact-short":
|
|
1700
1743
|
case "K":
|
|
@@ -1705,13 +1748,13 @@ function an(e) {
|
|
|
1705
1748
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1706
1749
|
continue;
|
|
1707
1750
|
case "scientific":
|
|
1708
|
-
t =
|
|
1709
|
-
return
|
|
1751
|
+
t = L(L(L({}, t), { notation: "scientific" }), n.options.reduce(function(u, l) {
|
|
1752
|
+
return L(L({}, u), Nt(l));
|
|
1710
1753
|
}, {}));
|
|
1711
1754
|
continue;
|
|
1712
1755
|
case "engineering":
|
|
1713
|
-
t =
|
|
1714
|
-
return
|
|
1756
|
+
t = L(L(L({}, t), { notation: "engineering" }), n.options.reduce(function(u, l) {
|
|
1757
|
+
return L(L({}, u), Nt(l));
|
|
1715
1758
|
}, {}));
|
|
1716
1759
|
continue;
|
|
1717
1760
|
case "notation-simple":
|
|
@@ -1756,7 +1799,7 @@ function an(e) {
|
|
|
1756
1799
|
case "integer-width":
|
|
1757
1800
|
if (n.options.length > 1)
|
|
1758
1801
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1759
|
-
n.options[0].replace(
|
|
1802
|
+
n.options[0].replace(hn, function(u, l, h, f, c, b) {
|
|
1760
1803
|
if (l)
|
|
1761
1804
|
t.minimumIntegerDigits = h.length;
|
|
1762
1805
|
else {
|
|
@@ -1769,28 +1812,28 @@ function an(e) {
|
|
|
1769
1812
|
});
|
|
1770
1813
|
continue;
|
|
1771
1814
|
}
|
|
1772
|
-
if (
|
|
1815
|
+
if (yr.test(n.stem)) {
|
|
1773
1816
|
t.minimumIntegerDigits = n.stem.length;
|
|
1774
1817
|
continue;
|
|
1775
1818
|
}
|
|
1776
|
-
if (
|
|
1819
|
+
if (Mt.test(n.stem)) {
|
|
1777
1820
|
if (n.options.length > 1)
|
|
1778
1821
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1779
|
-
n.stem.replace(
|
|
1822
|
+
n.stem.replace(Mt, function(u, l, h, f, c, b) {
|
|
1780
1823
|
return h === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1781
1824
|
});
|
|
1782
|
-
var
|
|
1783
|
-
|
|
1825
|
+
var o = n.options[0];
|
|
1826
|
+
o === "w" ? t = L(L({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = L(L({}, t), It(o)));
|
|
1784
1827
|
continue;
|
|
1785
1828
|
}
|
|
1786
|
-
if (
|
|
1787
|
-
t =
|
|
1829
|
+
if (br.test(n.stem)) {
|
|
1830
|
+
t = L(L({}, t), It(n.stem));
|
|
1788
1831
|
continue;
|
|
1789
1832
|
}
|
|
1790
|
-
var a =
|
|
1791
|
-
a && (t =
|
|
1792
|
-
var
|
|
1793
|
-
|
|
1833
|
+
var a = vr(n.stem);
|
|
1834
|
+
a && (t = L(L({}, t), a));
|
|
1835
|
+
var s = cn(n.stem);
|
|
1836
|
+
s && (t = L(L({}, t), s));
|
|
1794
1837
|
}
|
|
1795
1838
|
return t;
|
|
1796
1839
|
}
|
|
@@ -3209,14 +3252,14 @@ var ge = {
|
|
|
3209
3252
|
"h"
|
|
3210
3253
|
]
|
|
3211
3254
|
};
|
|
3212
|
-
function
|
|
3255
|
+
function mn(e, t) {
|
|
3213
3256
|
for (var r = "", i = 0; i < e.length; i++) {
|
|
3214
3257
|
var n = e.charAt(i);
|
|
3215
3258
|
if (n === "j") {
|
|
3216
|
-
for (var
|
|
3217
|
-
|
|
3218
|
-
var a = 1 + (
|
|
3219
|
-
for ((l == "H" || l == "k") && (
|
|
3259
|
+
for (var o = 0; i + 1 < e.length && e.charAt(i + 1) === n; )
|
|
3260
|
+
o++, i++;
|
|
3261
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = pn(t);
|
|
3262
|
+
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
3220
3263
|
r += u;
|
|
3221
3264
|
for (; a-- > 0; )
|
|
3222
3265
|
r = l + r;
|
|
@@ -3225,7 +3268,7 @@ function un(e, t) {
|
|
|
3225
3268
|
}
|
|
3226
3269
|
return r;
|
|
3227
3270
|
}
|
|
3228
|
-
function
|
|
3271
|
+
function pn(e) {
|
|
3229
3272
|
var t = e.hourCycle;
|
|
3230
3273
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3231
3274
|
e.hourCycles && // @ts-ignore
|
|
@@ -3247,20 +3290,20 @@ function ln(e) {
|
|
|
3247
3290
|
var n = ge[i || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
3248
3291
|
return n[0];
|
|
3249
3292
|
}
|
|
3250
|
-
var
|
|
3293
|
+
var ke, dn = new RegExp("^".concat(gr.source, "*")), gn = new RegExp("".concat(gr.source, "*$"));
|
|
3251
3294
|
function E(e, t) {
|
|
3252
3295
|
return { start: e, end: t };
|
|
3253
3296
|
}
|
|
3254
|
-
var
|
|
3297
|
+
var bn = !!String.prototype.startsWith && "_a".startsWith("a", 1), yn = !!String.fromCodePoint, vn = !!Object.fromEntries, _n = !!String.prototype.codePointAt, En = !!String.prototype.trimStart, xn = !!String.prototype.trimEnd, wn = !!Number.isSafeInteger, Ln = wn ? Number.isSafeInteger : function(e) {
|
|
3255
3298
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3256
|
-
},
|
|
3299
|
+
}, rt = !0;
|
|
3257
3300
|
try {
|
|
3258
|
-
var
|
|
3259
|
-
|
|
3301
|
+
var Tn = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3302
|
+
rt = ((ke = Tn.exec("a")) === null || ke === void 0 ? void 0 : ke[0]) === "a";
|
|
3260
3303
|
} catch (e) {
|
|
3261
|
-
|
|
3304
|
+
rt = !1;
|
|
3262
3305
|
}
|
|
3263
|
-
var
|
|
3306
|
+
var Ct = bn ? (
|
|
3264
3307
|
// Native
|
|
3265
3308
|
function(t, r, i) {
|
|
3266
3309
|
return t.startsWith(r, i);
|
|
@@ -3270,31 +3313,31 @@ var Bt = fn ? (
|
|
|
3270
3313
|
function(t, r, i) {
|
|
3271
3314
|
return t.slice(i, i + r.length) === r;
|
|
3272
3315
|
}
|
|
3273
|
-
),
|
|
3316
|
+
), it = yn ? String.fromCodePoint : (
|
|
3274
3317
|
// IE11
|
|
3275
3318
|
function() {
|
|
3276
3319
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
3277
3320
|
t[r] = arguments[r];
|
|
3278
|
-
for (var i = "", n = t.length,
|
|
3279
|
-
if (a = t[
|
|
3321
|
+
for (var i = "", n = t.length, o = 0, a; n > o; ) {
|
|
3322
|
+
if (a = t[o++], a > 1114111)
|
|
3280
3323
|
throw RangeError(a + " is not a valid code point");
|
|
3281
3324
|
i += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
3282
3325
|
}
|
|
3283
3326
|
return i;
|
|
3284
3327
|
}
|
|
3285
|
-
),
|
|
3328
|
+
), Rt = (
|
|
3286
3329
|
// native
|
|
3287
|
-
|
|
3330
|
+
vn ? Object.fromEntries : (
|
|
3288
3331
|
// Ponyfill
|
|
3289
3332
|
function(t) {
|
|
3290
3333
|
for (var r = {}, i = 0, n = t; i < n.length; i++) {
|
|
3291
|
-
var
|
|
3292
|
-
r[a] =
|
|
3334
|
+
var o = n[i], a = o[0], s = o[1];
|
|
3335
|
+
r[a] = s;
|
|
3293
3336
|
}
|
|
3294
3337
|
return r;
|
|
3295
3338
|
}
|
|
3296
3339
|
)
|
|
3297
|
-
),
|
|
3340
|
+
), _r = _n ? (
|
|
3298
3341
|
// Native
|
|
3299
3342
|
function(t, r) {
|
|
3300
3343
|
return t.codePointAt(r);
|
|
@@ -3304,11 +3347,11 @@ var Bt = fn ? (
|
|
|
3304
3347
|
function(t, r) {
|
|
3305
3348
|
var i = t.length;
|
|
3306
3349
|
if (!(r < 0 || r >= i)) {
|
|
3307
|
-
var n = t.charCodeAt(r),
|
|
3308
|
-
return n < 55296 || n > 56319 || r + 1 === i || (
|
|
3350
|
+
var n = t.charCodeAt(r), o;
|
|
3351
|
+
return n < 55296 || n > 56319 || r + 1 === i || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? n : (n - 55296 << 10) + (o - 56320) + 65536;
|
|
3309
3352
|
}
|
|
3310
3353
|
}
|
|
3311
|
-
),
|
|
3354
|
+
), Sn = En ? (
|
|
3312
3355
|
// Native
|
|
3313
3356
|
function(t) {
|
|
3314
3357
|
return t.trimStart();
|
|
@@ -3316,9 +3359,9 @@ var Bt = fn ? (
|
|
|
3316
3359
|
) : (
|
|
3317
3360
|
// Ponyfill
|
|
3318
3361
|
function(t) {
|
|
3319
|
-
return t.replace(
|
|
3362
|
+
return t.replace(dn, "");
|
|
3320
3363
|
}
|
|
3321
|
-
),
|
|
3364
|
+
), Hn = xn ? (
|
|
3322
3365
|
// Native
|
|
3323
3366
|
function(t) {
|
|
3324
3367
|
return t.trimEnd();
|
|
@@ -3326,32 +3369,32 @@ var Bt = fn ? (
|
|
|
3326
3369
|
) : (
|
|
3327
3370
|
// Ponyfill
|
|
3328
3371
|
function(t) {
|
|
3329
|
-
return t.replace(
|
|
3372
|
+
return t.replace(gn, "");
|
|
3330
3373
|
}
|
|
3331
3374
|
);
|
|
3332
|
-
function
|
|
3375
|
+
function Er(e, t) {
|
|
3333
3376
|
return new RegExp(e, t);
|
|
3334
3377
|
}
|
|
3335
|
-
var
|
|
3336
|
-
if (
|
|
3337
|
-
var
|
|
3338
|
-
|
|
3378
|
+
var nt;
|
|
3379
|
+
if (rt) {
|
|
3380
|
+
var Gt = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3381
|
+
nt = function(t, r) {
|
|
3339
3382
|
var i;
|
|
3340
|
-
|
|
3341
|
-
var n =
|
|
3383
|
+
Gt.lastIndex = r;
|
|
3384
|
+
var n = Gt.exec(t);
|
|
3342
3385
|
return (i = n[1]) !== null && i !== void 0 ? i : "";
|
|
3343
3386
|
};
|
|
3344
3387
|
} else
|
|
3345
|
-
|
|
3388
|
+
nt = function(t, r) {
|
|
3346
3389
|
for (var i = []; ; ) {
|
|
3347
|
-
var n =
|
|
3348
|
-
if (n === void 0 ||
|
|
3390
|
+
var n = _r(t, r);
|
|
3391
|
+
if (n === void 0 || xr(n) || On(n))
|
|
3349
3392
|
break;
|
|
3350
3393
|
i.push(n), r += n >= 65536 ? 2 : 1;
|
|
3351
3394
|
}
|
|
3352
|
-
return
|
|
3395
|
+
return it.apply(void 0, i);
|
|
3353
3396
|
};
|
|
3354
|
-
var
|
|
3397
|
+
var Pn = (
|
|
3355
3398
|
/** @class */
|
|
3356
3399
|
function() {
|
|
3357
3400
|
function e(t, r) {
|
|
@@ -3363,26 +3406,26 @@ var wn = (
|
|
|
3363
3406
|
return this.parseMessage(0, "", !1);
|
|
3364
3407
|
}, e.prototype.parseMessage = function(t, r, i) {
|
|
3365
3408
|
for (var n = []; !this.isEOF(); ) {
|
|
3366
|
-
var
|
|
3367
|
-
if (
|
|
3409
|
+
var o = this.char();
|
|
3410
|
+
if (o === 123) {
|
|
3368
3411
|
var a = this.parseArgument(t, i);
|
|
3369
3412
|
if (a.err)
|
|
3370
3413
|
return a;
|
|
3371
3414
|
n.push(a.val);
|
|
3372
3415
|
} else {
|
|
3373
|
-
if (
|
|
3416
|
+
if (o === 125 && t > 0)
|
|
3374
3417
|
break;
|
|
3375
|
-
if (
|
|
3376
|
-
var
|
|
3418
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3419
|
+
var s = this.clonePosition();
|
|
3377
3420
|
this.bump(), n.push({
|
|
3378
|
-
type:
|
|
3379
|
-
location: E(
|
|
3421
|
+
type: x.pound,
|
|
3422
|
+
location: E(s, this.clonePosition())
|
|
3380
3423
|
});
|
|
3381
|
-
} else if (
|
|
3424
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3382
3425
|
if (i)
|
|
3383
3426
|
break;
|
|
3384
3427
|
return this.error(_.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
3385
|
-
} else if (
|
|
3428
|
+
} else if (o === 60 && !this.ignoreTag && ot(this.peek() || 0)) {
|
|
3386
3429
|
var a = this.parseTag(t, r);
|
|
3387
3430
|
if (a.err)
|
|
3388
3431
|
return a;
|
|
@@ -3403,44 +3446,44 @@ var wn = (
|
|
|
3403
3446
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3404
3447
|
return {
|
|
3405
3448
|
val: {
|
|
3406
|
-
type:
|
|
3449
|
+
type: x.literal,
|
|
3407
3450
|
value: "<".concat(n, "/>"),
|
|
3408
3451
|
location: E(i, this.clonePosition())
|
|
3409
3452
|
},
|
|
3410
3453
|
err: null
|
|
3411
3454
|
};
|
|
3412
3455
|
if (this.bumpIf(">")) {
|
|
3413
|
-
var
|
|
3414
|
-
if (
|
|
3415
|
-
return
|
|
3416
|
-
var a =
|
|
3456
|
+
var o = this.parseMessage(t + 1, r, !0);
|
|
3457
|
+
if (o.err)
|
|
3458
|
+
return o;
|
|
3459
|
+
var a = o.val, s = this.clonePosition();
|
|
3417
3460
|
if (this.bumpIf("</")) {
|
|
3418
|
-
if (this.isEOF() || !
|
|
3419
|
-
return this.error(_.INVALID_TAG, E(
|
|
3461
|
+
if (this.isEOF() || !ot(this.char()))
|
|
3462
|
+
return this.error(_.INVALID_TAG, E(s, this.clonePosition()));
|
|
3420
3463
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
3421
3464
|
return n !== l ? this.error(_.UNMATCHED_CLOSING_TAG, E(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3422
3465
|
val: {
|
|
3423
|
-
type:
|
|
3466
|
+
type: x.tag,
|
|
3424
3467
|
value: n,
|
|
3425
3468
|
children: a,
|
|
3426
3469
|
location: E(i, this.clonePosition())
|
|
3427
3470
|
},
|
|
3428
3471
|
err: null
|
|
3429
|
-
} : this.error(_.INVALID_TAG, E(
|
|
3472
|
+
} : this.error(_.INVALID_TAG, E(s, this.clonePosition())));
|
|
3430
3473
|
} else
|
|
3431
3474
|
return this.error(_.UNCLOSED_TAG, E(i, this.clonePosition()));
|
|
3432
3475
|
} else
|
|
3433
3476
|
return this.error(_.INVALID_TAG, E(i, this.clonePosition()));
|
|
3434
3477
|
}, e.prototype.parseTagName = function() {
|
|
3435
3478
|
var t = this.offset();
|
|
3436
|
-
for (this.bump(); !this.isEOF() &&
|
|
3479
|
+
for (this.bump(); !this.isEOF() && Bn(this.char()); )
|
|
3437
3480
|
this.bump();
|
|
3438
3481
|
return this.message.slice(t, this.offset());
|
|
3439
3482
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
3440
3483
|
for (var i = this.clonePosition(), n = ""; ; ) {
|
|
3441
|
-
var
|
|
3442
|
-
if (
|
|
3443
|
-
n +=
|
|
3484
|
+
var o = this.tryParseQuote(r);
|
|
3485
|
+
if (o) {
|
|
3486
|
+
n += o;
|
|
3444
3487
|
continue;
|
|
3445
3488
|
}
|
|
3446
3489
|
var a = this.tryParseUnquoted(t, r);
|
|
@@ -3448,21 +3491,21 @@ var wn = (
|
|
|
3448
3491
|
n += a;
|
|
3449
3492
|
continue;
|
|
3450
3493
|
}
|
|
3451
|
-
var
|
|
3452
|
-
if (
|
|
3453
|
-
n +=
|
|
3494
|
+
var s = this.tryParseLeftAngleBracket();
|
|
3495
|
+
if (s) {
|
|
3496
|
+
n += s;
|
|
3454
3497
|
continue;
|
|
3455
3498
|
}
|
|
3456
3499
|
break;
|
|
3457
3500
|
}
|
|
3458
3501
|
var u = E(i, this.clonePosition());
|
|
3459
3502
|
return {
|
|
3460
|
-
val: { type:
|
|
3503
|
+
val: { type: x.literal, value: n, location: u },
|
|
3461
3504
|
err: null
|
|
3462
3505
|
};
|
|
3463
3506
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3464
3507
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3465
|
-
!
|
|
3508
|
+
!An(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3466
3509
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3467
3510
|
if (this.isEOF() || this.char() !== 39)
|
|
3468
3511
|
return null;
|
|
@@ -3496,12 +3539,12 @@ var wn = (
|
|
|
3496
3539
|
r.push(i);
|
|
3497
3540
|
this.bump();
|
|
3498
3541
|
}
|
|
3499
|
-
return
|
|
3542
|
+
return it.apply(void 0, r);
|
|
3500
3543
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3501
3544
|
if (this.isEOF())
|
|
3502
3545
|
return null;
|
|
3503
3546
|
var i = this.char();
|
|
3504
|
-
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(),
|
|
3547
|
+
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(), it(i));
|
|
3505
3548
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3506
3549
|
var i = this.clonePosition();
|
|
3507
3550
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3517,7 +3560,7 @@ var wn = (
|
|
|
3517
3560
|
case 125:
|
|
3518
3561
|
return this.bump(), {
|
|
3519
3562
|
val: {
|
|
3520
|
-
type:
|
|
3563
|
+
type: x.argument,
|
|
3521
3564
|
// value does not include the opening and closing braces.
|
|
3522
3565
|
value: n,
|
|
3523
3566
|
location: E(i, this.clonePosition())
|
|
@@ -3530,13 +3573,13 @@ var wn = (
|
|
|
3530
3573
|
return this.error(_.MALFORMED_ARGUMENT, E(i, this.clonePosition()));
|
|
3531
3574
|
}
|
|
3532
3575
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3533
|
-
var t = this.clonePosition(), r = this.offset(), i =
|
|
3576
|
+
var t = this.clonePosition(), r = this.offset(), i = nt(this.message, r), n = r + i.length;
|
|
3534
3577
|
this.bumpTo(n);
|
|
3535
|
-
var
|
|
3578
|
+
var o = this.clonePosition(), a = E(t, o);
|
|
3536
3579
|
return { value: i, location: a };
|
|
3537
3580
|
}, e.prototype.parseArgumentOptions = function(t, r, i, n) {
|
|
3538
|
-
var
|
|
3539
|
-
switch (
|
|
3581
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
3582
|
+
switch (s) {
|
|
3540
3583
|
case "":
|
|
3541
3584
|
return this.error(_.EXPECT_ARGUMENT_TYPE, E(a, u));
|
|
3542
3585
|
case "number":
|
|
@@ -3549,7 +3592,7 @@ var wn = (
|
|
|
3549
3592
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3550
3593
|
if (f.err)
|
|
3551
3594
|
return f;
|
|
3552
|
-
var c =
|
|
3595
|
+
var c = Hn(f.val);
|
|
3553
3596
|
if (c.length === 0)
|
|
3554
3597
|
return this.error(_.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
3555
3598
|
var b = E(h, this.clonePosition());
|
|
@@ -3559,25 +3602,25 @@ var wn = (
|
|
|
3559
3602
|
if (p.err)
|
|
3560
3603
|
return p;
|
|
3561
3604
|
var g = E(n, this.clonePosition());
|
|
3562
|
-
if (l &&
|
|
3563
|
-
var d =
|
|
3564
|
-
if (
|
|
3605
|
+
if (l && Ct(l == null ? void 0 : l.style, "::", 0)) {
|
|
3606
|
+
var d = Sn(l.style.slice(2));
|
|
3607
|
+
if (s === "number") {
|
|
3565
3608
|
var f = this.parseNumberSkeletonFromString(d, l.styleLocation);
|
|
3566
3609
|
return f.err ? f : {
|
|
3567
|
-
val: { type:
|
|
3610
|
+
val: { type: x.number, value: i, location: g, style: f.val },
|
|
3568
3611
|
err: null
|
|
3569
3612
|
};
|
|
3570
3613
|
} else {
|
|
3571
3614
|
if (d.length === 0)
|
|
3572
3615
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, g);
|
|
3573
3616
|
var v = d;
|
|
3574
|
-
this.locale && (v =
|
|
3617
|
+
this.locale && (v = mn(d, this.locale));
|
|
3575
3618
|
var c = {
|
|
3576
|
-
type:
|
|
3619
|
+
type: K.dateTime,
|
|
3577
3620
|
pattern: v,
|
|
3578
3621
|
location: l.styleLocation,
|
|
3579
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3580
|
-
}, T =
|
|
3622
|
+
parsedOptions: this.shouldParseSkeletons ? sn(v) : {}
|
|
3623
|
+
}, T = s === "date" ? x.date : x.time;
|
|
3581
3624
|
return {
|
|
3582
3625
|
val: { type: T, value: i, location: g, style: c },
|
|
3583
3626
|
err: null
|
|
@@ -3586,10 +3629,10 @@ var wn = (
|
|
|
3586
3629
|
}
|
|
3587
3630
|
return {
|
|
3588
3631
|
val: {
|
|
3589
|
-
type:
|
|
3632
|
+
type: s === "number" ? x.number : s === "date" ? x.date : x.time,
|
|
3590
3633
|
value: i,
|
|
3591
3634
|
location: g,
|
|
3592
|
-
style: (
|
|
3635
|
+
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
3593
3636
|
},
|
|
3594
3637
|
err: null
|
|
3595
3638
|
};
|
|
@@ -3599,10 +3642,10 @@ var wn = (
|
|
|
3599
3642
|
case "select": {
|
|
3600
3643
|
var S = this.clonePosition();
|
|
3601
3644
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3602
|
-
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, E(S,
|
|
3645
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, E(S, Te({}, S)));
|
|
3603
3646
|
this.bumpSpace();
|
|
3604
3647
|
var N = this.parseIdentifierIfPossible(), P = 0;
|
|
3605
|
-
if (
|
|
3648
|
+
if (s !== "select" && N.value === "offset") {
|
|
3606
3649
|
if (!this.bumpIf(":"))
|
|
3607
3650
|
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
|
|
3608
3651
|
this.bumpSpace();
|
|
@@ -3611,28 +3654,28 @@ var wn = (
|
|
|
3611
3654
|
return f;
|
|
3612
3655
|
this.bumpSpace(), N = this.parseIdentifierIfPossible(), P = f.val;
|
|
3613
3656
|
}
|
|
3614
|
-
var
|
|
3615
|
-
if (
|
|
3616
|
-
return
|
|
3657
|
+
var R = this.tryParsePluralOrSelectOptions(t, s, r, N);
|
|
3658
|
+
if (R.err)
|
|
3659
|
+
return R;
|
|
3617
3660
|
var p = this.tryParseArgumentClose(n);
|
|
3618
3661
|
if (p.err)
|
|
3619
3662
|
return p;
|
|
3620
3663
|
var V = E(n, this.clonePosition());
|
|
3621
|
-
return
|
|
3664
|
+
return s === "select" ? {
|
|
3622
3665
|
val: {
|
|
3623
|
-
type:
|
|
3666
|
+
type: x.select,
|
|
3624
3667
|
value: i,
|
|
3625
|
-
options:
|
|
3668
|
+
options: Rt(R.val),
|
|
3626
3669
|
location: V
|
|
3627
3670
|
},
|
|
3628
3671
|
err: null
|
|
3629
3672
|
} : {
|
|
3630
3673
|
val: {
|
|
3631
|
-
type:
|
|
3674
|
+
type: x.plural,
|
|
3632
3675
|
value: i,
|
|
3633
|
-
options:
|
|
3676
|
+
options: Rt(R.val),
|
|
3634
3677
|
offset: P,
|
|
3635
|
-
pluralType:
|
|
3678
|
+
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3636
3679
|
location: V
|
|
3637
3680
|
},
|
|
3638
3681
|
err: null
|
|
@@ -3681,21 +3724,21 @@ var wn = (
|
|
|
3681
3724
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3682
3725
|
var i = [];
|
|
3683
3726
|
try {
|
|
3684
|
-
i =
|
|
3727
|
+
i = un(t);
|
|
3685
3728
|
} catch (n) {
|
|
3686
3729
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3687
3730
|
}
|
|
3688
3731
|
return {
|
|
3689
3732
|
val: {
|
|
3690
|
-
type:
|
|
3733
|
+
type: K.number,
|
|
3691
3734
|
tokens: i,
|
|
3692
3735
|
location: r,
|
|
3693
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3736
|
+
parsedOptions: this.shouldParseSkeletons ? fn(i) : {}
|
|
3694
3737
|
},
|
|
3695
3738
|
err: null
|
|
3696
3739
|
};
|
|
3697
3740
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, i, n) {
|
|
3698
|
-
for (var
|
|
3741
|
+
for (var o, a = !1, s = [], u = /* @__PURE__ */ new Set(), l = n.value, h = n.location; ; ) {
|
|
3699
3742
|
if (l.length === 0) {
|
|
3700
3743
|
var f = this.clonePosition();
|
|
3701
3744
|
if (r !== "select" && this.bumpIf("=")) {
|
|
@@ -3718,27 +3761,27 @@ var wn = (
|
|
|
3718
3761
|
var g = this.tryParseArgumentClose(b);
|
|
3719
3762
|
if (g.err)
|
|
3720
3763
|
return g;
|
|
3721
|
-
|
|
3764
|
+
s.push([
|
|
3722
3765
|
l,
|
|
3723
3766
|
{
|
|
3724
3767
|
value: p.val,
|
|
3725
3768
|
location: E(b, this.clonePosition())
|
|
3726
3769
|
}
|
|
3727
|
-
]), u.add(l), this.bumpSpace(),
|
|
3770
|
+
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
|
|
3728
3771
|
}
|
|
3729
|
-
return
|
|
3772
|
+
return s.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(_.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3730
3773
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3731
3774
|
var i = 1, n = this.clonePosition();
|
|
3732
3775
|
this.bumpIf("+") || this.bumpIf("-") && (i = -1);
|
|
3733
|
-
for (var
|
|
3734
|
-
var
|
|
3735
|
-
if (
|
|
3736
|
-
|
|
3776
|
+
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3777
|
+
var s = this.char();
|
|
3778
|
+
if (s >= 48 && s <= 57)
|
|
3779
|
+
o = !0, a = a * 10 + (s - 48), this.bump();
|
|
3737
3780
|
else
|
|
3738
3781
|
break;
|
|
3739
3782
|
}
|
|
3740
3783
|
var u = E(n, this.clonePosition());
|
|
3741
|
-
return
|
|
3784
|
+
return o ? (a *= i, Ln(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3742
3785
|
}, e.prototype.offset = function() {
|
|
3743
3786
|
return this.position.offset;
|
|
3744
3787
|
}, e.prototype.isEOF = function() {
|
|
@@ -3753,7 +3796,7 @@ var wn = (
|
|
|
3753
3796
|
var t = this.position.offset;
|
|
3754
3797
|
if (t >= this.message.length)
|
|
3755
3798
|
throw Error("out of bound");
|
|
3756
|
-
var r =
|
|
3799
|
+
var r = _r(this.message, t);
|
|
3757
3800
|
if (r === void 0)
|
|
3758
3801
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3759
3802
|
return r;
|
|
@@ -3772,7 +3815,7 @@ var wn = (
|
|
|
3772
3815
|
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);
|
|
3773
3816
|
}
|
|
3774
3817
|
}, e.prototype.bumpIf = function(t) {
|
|
3775
|
-
if (
|
|
3818
|
+
if (Ct(this.message, t, this.offset())) {
|
|
3776
3819
|
for (var r = 0; r < t.length; r++)
|
|
3777
3820
|
this.bump();
|
|
3778
3821
|
return !0;
|
|
@@ -3794,7 +3837,7 @@ var wn = (
|
|
|
3794
3837
|
break;
|
|
3795
3838
|
}
|
|
3796
3839
|
}, e.prototype.bumpSpace = function() {
|
|
3797
|
-
for (; !this.isEOF() &&
|
|
3840
|
+
for (; !this.isEOF() && xr(this.char()); )
|
|
3798
3841
|
this.bump();
|
|
3799
3842
|
}, e.prototype.peek = function() {
|
|
3800
3843
|
if (this.isEOF())
|
|
@@ -3804,204 +3847,204 @@ var wn = (
|
|
|
3804
3847
|
}, e;
|
|
3805
3848
|
}()
|
|
3806
3849
|
);
|
|
3807
|
-
function
|
|
3850
|
+
function ot(e) {
|
|
3808
3851
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3809
3852
|
}
|
|
3810
|
-
function
|
|
3811
|
-
return
|
|
3853
|
+
function An(e) {
|
|
3854
|
+
return ot(e) || e === 47;
|
|
3812
3855
|
}
|
|
3813
|
-
function
|
|
3856
|
+
function Bn(e) {
|
|
3814
3857
|
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;
|
|
3815
3858
|
}
|
|
3816
|
-
function
|
|
3859
|
+
function xr(e) {
|
|
3817
3860
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3818
3861
|
}
|
|
3819
|
-
function
|
|
3862
|
+
function On(e) {
|
|
3820
3863
|
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;
|
|
3821
3864
|
}
|
|
3822
|
-
function
|
|
3865
|
+
function st(e) {
|
|
3823
3866
|
e.forEach(function(t) {
|
|
3824
|
-
if (delete t.location,
|
|
3867
|
+
if (delete t.location, fr(t) || mr(t))
|
|
3825
3868
|
for (var r in t.options)
|
|
3826
|
-
delete t.options[r].location,
|
|
3869
|
+
delete t.options[r].location, st(t.options[r].value);
|
|
3827
3870
|
else
|
|
3828
|
-
|
|
3871
|
+
lr(t) && dr(t.style) || (hr(t) || cr(t)) && tt(t.style) ? delete t.style.location : pr(t) && st(t.children);
|
|
3829
3872
|
});
|
|
3830
3873
|
}
|
|
3831
|
-
function
|
|
3832
|
-
t === void 0 && (t = {}), t =
|
|
3833
|
-
var r = new
|
|
3874
|
+
function Mn(e, t) {
|
|
3875
|
+
t === void 0 && (t = {}), t = Te({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3876
|
+
var r = new Pn(e, t).parse();
|
|
3834
3877
|
if (r.err) {
|
|
3835
3878
|
var i = SyntaxError(_[r.err.kind]);
|
|
3836
3879
|
throw i.location = r.err.location, i.originalMessage = r.err.message, i;
|
|
3837
3880
|
}
|
|
3838
|
-
return t != null && t.captureLocation ||
|
|
3881
|
+
return t != null && t.captureLocation || st(r.val), r.val;
|
|
3839
3882
|
}
|
|
3840
|
-
var
|
|
3883
|
+
var ee;
|
|
3841
3884
|
(function(e) {
|
|
3842
3885
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3843
|
-
})(
|
|
3844
|
-
var
|
|
3886
|
+
})(ee || (ee = {}));
|
|
3887
|
+
var Me = (
|
|
3845
3888
|
/** @class */
|
|
3846
3889
|
function(e) {
|
|
3847
|
-
|
|
3890
|
+
Oe(t, e);
|
|
3848
3891
|
function t(r, i, n) {
|
|
3849
|
-
var
|
|
3850
|
-
return
|
|
3892
|
+
var o = e.call(this, r) || this;
|
|
3893
|
+
return o.code = i, o.originalMessage = n, o;
|
|
3851
3894
|
}
|
|
3852
3895
|
return t.prototype.toString = function() {
|
|
3853
3896
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3854
3897
|
}, t;
|
|
3855
3898
|
}(Error)
|
|
3856
|
-
),
|
|
3899
|
+
), $t = (
|
|
3857
3900
|
/** @class */
|
|
3858
3901
|
function(e) {
|
|
3859
|
-
|
|
3860
|
-
function t(r, i, n,
|
|
3861
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'),
|
|
3902
|
+
Oe(t, e);
|
|
3903
|
+
function t(r, i, n, o) {
|
|
3904
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'), ee.INVALID_VALUE, o) || this;
|
|
3862
3905
|
}
|
|
3863
3906
|
return t;
|
|
3864
|
-
}(
|
|
3865
|
-
),
|
|
3907
|
+
}(Me)
|
|
3908
|
+
), In = (
|
|
3866
3909
|
/** @class */
|
|
3867
3910
|
function(e) {
|
|
3868
|
-
|
|
3911
|
+
Oe(t, e);
|
|
3869
3912
|
function t(r, i, n) {
|
|
3870
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i),
|
|
3913
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i), ee.INVALID_VALUE, n) || this;
|
|
3871
3914
|
}
|
|
3872
3915
|
return t;
|
|
3873
|
-
}(
|
|
3874
|
-
),
|
|
3916
|
+
}(Me)
|
|
3917
|
+
), Nn = (
|
|
3875
3918
|
/** @class */
|
|
3876
3919
|
function(e) {
|
|
3877
|
-
|
|
3920
|
+
Oe(t, e);
|
|
3878
3921
|
function t(r, i) {
|
|
3879
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'),
|
|
3922
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'), ee.MISSING_VALUE, i) || this;
|
|
3880
3923
|
}
|
|
3881
3924
|
return t;
|
|
3882
|
-
}(
|
|
3925
|
+
}(Me)
|
|
3883
3926
|
), B;
|
|
3884
3927
|
(function(e) {
|
|
3885
3928
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3886
3929
|
})(B || (B = {}));
|
|
3887
|
-
function
|
|
3930
|
+
function Cn(e) {
|
|
3888
3931
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3889
3932
|
var i = t[t.length - 1];
|
|
3890
3933
|
return !i || i.type !== B.literal || r.type !== B.literal ? t.push(r) : i.value += r.value, t;
|
|
3891
3934
|
}, []);
|
|
3892
3935
|
}
|
|
3893
|
-
function
|
|
3936
|
+
function Rn(e) {
|
|
3894
3937
|
return typeof e == "function";
|
|
3895
3938
|
}
|
|
3896
|
-
function _e(e, t, r, i, n,
|
|
3897
|
-
if (e.length === 1 &&
|
|
3939
|
+
function _e(e, t, r, i, n, o, a) {
|
|
3940
|
+
if (e.length === 1 && Ot(e[0]))
|
|
3898
3941
|
return [
|
|
3899
3942
|
{
|
|
3900
3943
|
type: B.literal,
|
|
3901
3944
|
value: e[0].value
|
|
3902
3945
|
}
|
|
3903
3946
|
];
|
|
3904
|
-
for (var
|
|
3947
|
+
for (var s = [], u = 0, l = e; u < l.length; u++) {
|
|
3905
3948
|
var h = l[u];
|
|
3906
|
-
if (
|
|
3907
|
-
|
|
3949
|
+
if (Ot(h)) {
|
|
3950
|
+
s.push({
|
|
3908
3951
|
type: B.literal,
|
|
3909
3952
|
value: h.value
|
|
3910
3953
|
});
|
|
3911
3954
|
continue;
|
|
3912
3955
|
}
|
|
3913
|
-
if (
|
|
3914
|
-
typeof
|
|
3956
|
+
if (nn(h)) {
|
|
3957
|
+
typeof o == "number" && s.push({
|
|
3915
3958
|
type: B.literal,
|
|
3916
|
-
value: r.getNumberFormat(t).format(
|
|
3959
|
+
value: r.getNumberFormat(t).format(o)
|
|
3917
3960
|
});
|
|
3918
3961
|
continue;
|
|
3919
3962
|
}
|
|
3920
3963
|
var f = h.value;
|
|
3921
3964
|
if (!(n && f in n))
|
|
3922
|
-
throw new
|
|
3965
|
+
throw new Nn(f, a);
|
|
3923
3966
|
var c = n[f];
|
|
3924
|
-
if (
|
|
3925
|
-
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""),
|
|
3967
|
+
if (rn(h)) {
|
|
3968
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3926
3969
|
type: typeof c == "string" ? B.literal : B.object,
|
|
3927
3970
|
value: c
|
|
3928
3971
|
});
|
|
3929
3972
|
continue;
|
|
3930
3973
|
}
|
|
3931
|
-
if (
|
|
3932
|
-
var b = typeof h.style == "string" ? i.date[h.style] :
|
|
3933
|
-
|
|
3974
|
+
if (hr(h)) {
|
|
3975
|
+
var b = typeof h.style == "string" ? i.date[h.style] : tt(h.style) ? h.style.parsedOptions : void 0;
|
|
3976
|
+
s.push({
|
|
3934
3977
|
type: B.literal,
|
|
3935
3978
|
value: r.getDateTimeFormat(t, b).format(c)
|
|
3936
3979
|
});
|
|
3937
3980
|
continue;
|
|
3938
3981
|
}
|
|
3939
|
-
if (
|
|
3940
|
-
var b = typeof h.style == "string" ? i.time[h.style] :
|
|
3941
|
-
|
|
3982
|
+
if (cr(h)) {
|
|
3983
|
+
var b = typeof h.style == "string" ? i.time[h.style] : tt(h.style) ? h.style.parsedOptions : i.time.medium;
|
|
3984
|
+
s.push({
|
|
3942
3985
|
type: B.literal,
|
|
3943
3986
|
value: r.getDateTimeFormat(t, b).format(c)
|
|
3944
3987
|
});
|
|
3945
3988
|
continue;
|
|
3946
3989
|
}
|
|
3947
|
-
if (
|
|
3948
|
-
var b = typeof h.style == "string" ? i.number[h.style] :
|
|
3949
|
-
b && b.scale && (c = c * (b.scale || 1)),
|
|
3990
|
+
if (lr(h)) {
|
|
3991
|
+
var b = typeof h.style == "string" ? i.number[h.style] : dr(h.style) ? h.style.parsedOptions : void 0;
|
|
3992
|
+
b && b.scale && (c = c * (b.scale || 1)), s.push({
|
|
3950
3993
|
type: B.literal,
|
|
3951
3994
|
value: r.getNumberFormat(t, b).format(c)
|
|
3952
3995
|
});
|
|
3953
3996
|
continue;
|
|
3954
3997
|
}
|
|
3955
|
-
if (
|
|
3998
|
+
if (pr(h)) {
|
|
3956
3999
|
var p = h.children, g = h.value, d = n[g];
|
|
3957
|
-
if (!
|
|
3958
|
-
throw new
|
|
3959
|
-
var v = _e(p, t, r, i, n,
|
|
4000
|
+
if (!Rn(d))
|
|
4001
|
+
throw new In(g, "function", a);
|
|
4002
|
+
var v = _e(p, t, r, i, n, o), T = d(v.map(function(P) {
|
|
3960
4003
|
return P.value;
|
|
3961
4004
|
}));
|
|
3962
|
-
Array.isArray(T) || (T = [T]),
|
|
4005
|
+
Array.isArray(T) || (T = [T]), s.push.apply(s, T.map(function(P) {
|
|
3963
4006
|
return {
|
|
3964
4007
|
type: typeof P == "string" ? B.literal : B.object,
|
|
3965
4008
|
value: P
|
|
3966
4009
|
};
|
|
3967
4010
|
}));
|
|
3968
4011
|
}
|
|
3969
|
-
if (
|
|
4012
|
+
if (fr(h)) {
|
|
3970
4013
|
var S = h.options[c] || h.options.other;
|
|
3971
4014
|
if (!S)
|
|
3972
|
-
throw new
|
|
3973
|
-
|
|
4015
|
+
throw new $t(h.value, c, Object.keys(h.options), a);
|
|
4016
|
+
s.push.apply(s, _e(S.value, t, r, i, n));
|
|
3974
4017
|
continue;
|
|
3975
4018
|
}
|
|
3976
|
-
if (
|
|
4019
|
+
if (mr(h)) {
|
|
3977
4020
|
var S = h.options["=".concat(c)];
|
|
3978
4021
|
if (!S) {
|
|
3979
4022
|
if (!Intl.PluralRules)
|
|
3980
|
-
throw new
|
|
4023
|
+
throw new Me(`Intl.PluralRules is not available in this environment.
|
|
3981
4024
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3982
|
-
`,
|
|
4025
|
+
`, ee.MISSING_INTL_API, a);
|
|
3983
4026
|
var N = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3984
4027
|
S = h.options[N] || h.options.other;
|
|
3985
4028
|
}
|
|
3986
4029
|
if (!S)
|
|
3987
|
-
throw new
|
|
3988
|
-
|
|
4030
|
+
throw new $t(h.value, c, Object.keys(h.options), a);
|
|
4031
|
+
s.push.apply(s, _e(S.value, t, r, i, n, c - (h.offset || 0)));
|
|
3989
4032
|
continue;
|
|
3990
4033
|
}
|
|
3991
4034
|
}
|
|
3992
|
-
return
|
|
4035
|
+
return Cn(s);
|
|
3993
4036
|
}
|
|
3994
|
-
function
|
|
3995
|
-
return t ?
|
|
3996
|
-
return r[i] =
|
|
4037
|
+
function Gn(e, t) {
|
|
4038
|
+
return t ? C(C(C({}, e || {}), t || {}), Object.keys(e).reduce(function(r, i) {
|
|
4039
|
+
return r[i] = C(C({}, e[i]), t[i] || {}), r;
|
|
3997
4040
|
}, {})) : e;
|
|
3998
4041
|
}
|
|
3999
|
-
function
|
|
4042
|
+
function $n(e, t) {
|
|
4000
4043
|
return t ? Object.keys(e).reduce(function(r, i) {
|
|
4001
|
-
return r[i] =
|
|
4002
|
-
},
|
|
4044
|
+
return r[i] = Gn(e[i], t[i]), r;
|
|
4045
|
+
}, C({}, e)) : e;
|
|
4003
4046
|
}
|
|
4004
|
-
function
|
|
4047
|
+
function Ve(e) {
|
|
4005
4048
|
return {
|
|
4006
4049
|
create: function() {
|
|
4007
4050
|
return {
|
|
@@ -4015,50 +4058,50 @@ function Fe(e) {
|
|
|
4015
4058
|
}
|
|
4016
4059
|
};
|
|
4017
4060
|
}
|
|
4018
|
-
function
|
|
4061
|
+
function Dn(e) {
|
|
4019
4062
|
return e === void 0 && (e = {
|
|
4020
4063
|
number: {},
|
|
4021
4064
|
dateTime: {},
|
|
4022
4065
|
pluralRules: {}
|
|
4023
4066
|
}), {
|
|
4024
|
-
getNumberFormat:
|
|
4067
|
+
getNumberFormat: Fe(function() {
|
|
4025
4068
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
4026
4069
|
r[i] = arguments[i];
|
|
4027
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
4070
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ue([void 0], r, !1)))();
|
|
4028
4071
|
}, {
|
|
4029
|
-
cache:
|
|
4030
|
-
strategy:
|
|
4072
|
+
cache: Ve(e.number),
|
|
4073
|
+
strategy: je.variadic
|
|
4031
4074
|
}),
|
|
4032
|
-
getDateTimeFormat:
|
|
4075
|
+
getDateTimeFormat: Fe(function() {
|
|
4033
4076
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
4034
4077
|
r[i] = arguments[i];
|
|
4035
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
4078
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ue([void 0], r, !1)))();
|
|
4036
4079
|
}, {
|
|
4037
|
-
cache:
|
|
4038
|
-
strategy:
|
|
4080
|
+
cache: Ve(e.dateTime),
|
|
4081
|
+
strategy: je.variadic
|
|
4039
4082
|
}),
|
|
4040
|
-
getPluralRules:
|
|
4083
|
+
getPluralRules: Fe(function() {
|
|
4041
4084
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
4042
4085
|
r[i] = arguments[i];
|
|
4043
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
4086
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ue([void 0], r, !1)))();
|
|
4044
4087
|
}, {
|
|
4045
|
-
cache:
|
|
4046
|
-
strategy:
|
|
4088
|
+
cache: Ve(e.pluralRules),
|
|
4089
|
+
strategy: je.variadic
|
|
4047
4090
|
})
|
|
4048
4091
|
};
|
|
4049
4092
|
}
|
|
4050
|
-
var
|
|
4093
|
+
var Un = (
|
|
4051
4094
|
/** @class */
|
|
4052
4095
|
function() {
|
|
4053
4096
|
function e(t, r, i, n) {
|
|
4054
4097
|
r === void 0 && (r = e.defaultLocale);
|
|
4055
|
-
var
|
|
4098
|
+
var o = this;
|
|
4056
4099
|
if (this.formatterCache = {
|
|
4057
4100
|
number: {},
|
|
4058
4101
|
dateTime: {},
|
|
4059
4102
|
pluralRules: {}
|
|
4060
4103
|
}, this.format = function(u) {
|
|
4061
|
-
var l =
|
|
4104
|
+
var l = o.formatToParts(u);
|
|
4062
4105
|
if (l.length === 1)
|
|
4063
4106
|
return l[0].value;
|
|
4064
4107
|
var h = l.reduce(function(f, c) {
|
|
@@ -4066,26 +4109,26 @@ var Cn = (
|
|
|
4066
4109
|
}, []);
|
|
4067
4110
|
return h.length <= 1 ? h[0] || "" : h;
|
|
4068
4111
|
}, this.formatToParts = function(u) {
|
|
4069
|
-
return _e(
|
|
4112
|
+
return _e(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
4070
4113
|
}, this.resolvedOptions = function() {
|
|
4071
4114
|
var u;
|
|
4072
4115
|
return {
|
|
4073
|
-
locale: ((u =
|
|
4116
|
+
locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
4074
4117
|
};
|
|
4075
4118
|
}, this.getAst = function() {
|
|
4076
|
-
return
|
|
4119
|
+
return o.ast;
|
|
4077
4120
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
4078
4121
|
if (this.message = t, !e.__parse)
|
|
4079
4122
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
4080
4123
|
var a = n || {};
|
|
4081
4124
|
a.formatters;
|
|
4082
|
-
var
|
|
4083
|
-
this.ast = e.__parse(t,
|
|
4125
|
+
var s = Zi(a, ["formatters"]);
|
|
4126
|
+
this.ast = e.__parse(t, C(C({}, s), { locale: this.resolvedLocale }));
|
|
4084
4127
|
} else
|
|
4085
4128
|
this.ast = t;
|
|
4086
4129
|
if (!Array.isArray(this.ast))
|
|
4087
4130
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
4088
|
-
this.formats =
|
|
4131
|
+
this.formats = $n(e.formats, i), this.formatters = n && n.formatters || Dn(this.formatterCache);
|
|
4089
4132
|
}
|
|
4090
4133
|
return Object.defineProperty(e, "defaultLocale", {
|
|
4091
4134
|
get: function() {
|
|
@@ -4098,7 +4141,7 @@ var Cn = (
|
|
|
4098
4141
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
4099
4142
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
4100
4143
|
}
|
|
4101
|
-
}, e.__parse =
|
|
4144
|
+
}, e.__parse = Mn, e.formats = {
|
|
4102
4145
|
number: {
|
|
4103
4146
|
integer: {
|
|
4104
4147
|
maximumFractionDigits: 0
|
|
@@ -4159,7 +4202,7 @@ var Cn = (
|
|
|
4159
4202
|
}, e;
|
|
4160
4203
|
}()
|
|
4161
4204
|
);
|
|
4162
|
-
function
|
|
4205
|
+
function Fn(e, t) {
|
|
4163
4206
|
if (t == null)
|
|
4164
4207
|
return;
|
|
4165
4208
|
if (t in e)
|
|
@@ -4169,9 +4212,9 @@ function Rn(e, t) {
|
|
|
4169
4212
|
for (let n = 0; n < r.length; n++)
|
|
4170
4213
|
if (typeof i == "object") {
|
|
4171
4214
|
if (n > 0) {
|
|
4172
|
-
const
|
|
4173
|
-
if (
|
|
4174
|
-
i = i[
|
|
4215
|
+
const o = r.slice(n, r.length).join(".");
|
|
4216
|
+
if (o in i) {
|
|
4217
|
+
i = i[o];
|
|
4175
4218
|
break;
|
|
4176
4219
|
}
|
|
4177
4220
|
}
|
|
@@ -4180,92 +4223,92 @@ function Rn(e, t) {
|
|
|
4180
4223
|
i = void 0;
|
|
4181
4224
|
return i;
|
|
4182
4225
|
}
|
|
4183
|
-
const
|
|
4226
|
+
const U = {}, jn = (e, t, r) => r && (t in U || (U[t] = {}), e in U[t] || (U[t][e] = r), r), wr = (e, t) => {
|
|
4184
4227
|
if (t == null)
|
|
4185
4228
|
return;
|
|
4186
|
-
if (t in
|
|
4187
|
-
return
|
|
4188
|
-
const r =
|
|
4229
|
+
if (t in U && e in U[t])
|
|
4230
|
+
return U[t][e];
|
|
4231
|
+
const r = Ie(t);
|
|
4189
4232
|
for (let i = 0; i < r.length; i++) {
|
|
4190
|
-
const n = r[i],
|
|
4191
|
-
if (
|
|
4192
|
-
return
|
|
4233
|
+
const n = r[i], o = Vn(n, e);
|
|
4234
|
+
if (o)
|
|
4235
|
+
return jn(e, t, o);
|
|
4193
4236
|
}
|
|
4194
4237
|
};
|
|
4195
|
-
let
|
|
4196
|
-
const pe =
|
|
4197
|
-
function
|
|
4198
|
-
return
|
|
4238
|
+
let ct;
|
|
4239
|
+
const pe = Be({});
|
|
4240
|
+
function kn(e) {
|
|
4241
|
+
return ct[e] || null;
|
|
4199
4242
|
}
|
|
4200
|
-
function
|
|
4201
|
-
return e in
|
|
4243
|
+
function Lr(e) {
|
|
4244
|
+
return e in ct;
|
|
4202
4245
|
}
|
|
4203
|
-
function
|
|
4204
|
-
if (!
|
|
4246
|
+
function Vn(e, t) {
|
|
4247
|
+
if (!Lr(e))
|
|
4205
4248
|
return null;
|
|
4206
|
-
const r =
|
|
4207
|
-
return
|
|
4249
|
+
const r = kn(e);
|
|
4250
|
+
return Fn(r, t);
|
|
4208
4251
|
}
|
|
4209
|
-
function
|
|
4252
|
+
function Xn(e) {
|
|
4210
4253
|
if (e == null)
|
|
4211
4254
|
return;
|
|
4212
|
-
const t =
|
|
4255
|
+
const t = Ie(e);
|
|
4213
4256
|
for (let r = 0; r < t.length; r++) {
|
|
4214
4257
|
const i = t[r];
|
|
4215
|
-
if (
|
|
4258
|
+
if (Lr(i))
|
|
4216
4259
|
return i;
|
|
4217
4260
|
}
|
|
4218
4261
|
}
|
|
4219
|
-
function
|
|
4220
|
-
delete
|
|
4262
|
+
function Tr(e, ...t) {
|
|
4263
|
+
delete U[e], pe.update((r) => (r[e] = zi.all([r[e] || {}, ...t]), r));
|
|
4221
4264
|
}
|
|
4222
|
-
|
|
4265
|
+
ie(
|
|
4223
4266
|
[pe],
|
|
4224
4267
|
([e]) => Object.keys(e)
|
|
4225
4268
|
);
|
|
4226
|
-
pe.subscribe((e) =>
|
|
4269
|
+
pe.subscribe((e) => ct = e);
|
|
4227
4270
|
const Ee = {};
|
|
4228
|
-
function
|
|
4271
|
+
function Wn(e, t) {
|
|
4229
4272
|
Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
|
|
4230
4273
|
}
|
|
4231
|
-
function
|
|
4274
|
+
function Sr(e) {
|
|
4232
4275
|
return Ee[e];
|
|
4233
4276
|
}
|
|
4234
|
-
function
|
|
4235
|
-
return
|
|
4236
|
-
const r =
|
|
4277
|
+
function zn(e) {
|
|
4278
|
+
return Ie(e).map((t) => {
|
|
4279
|
+
const r = Sr(t);
|
|
4237
4280
|
return [t, r ? [...r] : []];
|
|
4238
4281
|
}).filter(([, t]) => t.length > 0);
|
|
4239
4282
|
}
|
|
4240
|
-
function
|
|
4241
|
-
return e == null ? !1 :
|
|
4283
|
+
function at(e) {
|
|
4284
|
+
return e == null ? !1 : Ie(e).some(
|
|
4242
4285
|
(t) => {
|
|
4243
4286
|
var r;
|
|
4244
|
-
return (r =
|
|
4287
|
+
return (r = Sr(t)) == null ? void 0 : r.size;
|
|
4245
4288
|
}
|
|
4246
4289
|
);
|
|
4247
4290
|
}
|
|
4248
|
-
function
|
|
4291
|
+
function Zn(e, t) {
|
|
4249
4292
|
return Promise.all(
|
|
4250
|
-
t.map((i) => (
|
|
4251
|
-
).then((i) =>
|
|
4252
|
-
}
|
|
4253
|
-
const
|
|
4254
|
-
function
|
|
4255
|
-
if (!
|
|
4256
|
-
return e in
|
|
4257
|
-
const t =
|
|
4258
|
-
return
|
|
4293
|
+
t.map((i) => (Wn(e, i), i().then((n) => n.default || n)))
|
|
4294
|
+
).then((i) => Tr(e, ...i));
|
|
4295
|
+
}
|
|
4296
|
+
const ae = {};
|
|
4297
|
+
function Hr(e) {
|
|
4298
|
+
if (!at(e))
|
|
4299
|
+
return e in ae ? ae[e] : Promise.resolve();
|
|
4300
|
+
const t = zn(e);
|
|
4301
|
+
return ae[e] = Promise.all(
|
|
4259
4302
|
t.map(
|
|
4260
|
-
([r, i]) =>
|
|
4303
|
+
([r, i]) => Zn(r, i)
|
|
4261
4304
|
)
|
|
4262
4305
|
).then(() => {
|
|
4263
|
-
if (
|
|
4264
|
-
return
|
|
4265
|
-
delete
|
|
4266
|
-
}),
|
|
4306
|
+
if (at(e))
|
|
4307
|
+
return Hr(e);
|
|
4308
|
+
delete ae[e];
|
|
4309
|
+
}), ae[e];
|
|
4267
4310
|
}
|
|
4268
|
-
const
|
|
4311
|
+
const Qn = {
|
|
4269
4312
|
number: {
|
|
4270
4313
|
scientific: { notation: "scientific" },
|
|
4271
4314
|
engineering: { notation: "engineering" },
|
|
@@ -4294,140 +4337,140 @@ const Vn = {
|
|
|
4294
4337
|
timeZoneName: "short"
|
|
4295
4338
|
}
|
|
4296
4339
|
}
|
|
4297
|
-
},
|
|
4340
|
+
}, qn = {
|
|
4298
4341
|
fallbackLocale: null,
|
|
4299
4342
|
loadingDelay: 200,
|
|
4300
|
-
formats:
|
|
4343
|
+
formats: Qn,
|
|
4301
4344
|
warnOnMissingMessages: !0,
|
|
4302
4345
|
handleMissingMessage: void 0,
|
|
4303
4346
|
ignoreTag: !0
|
|
4304
|
-
},
|
|
4305
|
-
function
|
|
4306
|
-
return
|
|
4347
|
+
}, Jn = qn;
|
|
4348
|
+
function te() {
|
|
4349
|
+
return Jn;
|
|
4307
4350
|
}
|
|
4308
|
-
const
|
|
4309
|
-
var
|
|
4351
|
+
const Xe = Be(!1);
|
|
4352
|
+
var Yn = Object.defineProperty, Kn = Object.defineProperties, eo = Object.getOwnPropertyDescriptors, Dt = Object.getOwnPropertySymbols, to = Object.prototype.hasOwnProperty, ro = Object.prototype.propertyIsEnumerable, Ut = (e, t, r) => t in e ? Yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, io = (e, t) => {
|
|
4310
4353
|
for (var r in t || (t = {}))
|
|
4311
|
-
|
|
4312
|
-
if (
|
|
4313
|
-
for (var r of
|
|
4314
|
-
|
|
4354
|
+
to.call(t, r) && Ut(e, r, t[r]);
|
|
4355
|
+
if (Dt)
|
|
4356
|
+
for (var r of Dt(t))
|
|
4357
|
+
ro.call(t, r) && Ut(e, r, t[r]);
|
|
4315
4358
|
return e;
|
|
4316
|
-
},
|
|
4317
|
-
let
|
|
4318
|
-
const
|
|
4319
|
-
function
|
|
4359
|
+
}, no = (e, t) => Kn(e, eo(t));
|
|
4360
|
+
let ut;
|
|
4361
|
+
const Se = Be(null);
|
|
4362
|
+
function Ft(e) {
|
|
4320
4363
|
return e.split("-").map((t, r, i) => i.slice(0, r + 1).join("-")).reverse();
|
|
4321
4364
|
}
|
|
4322
|
-
function
|
|
4323
|
-
const r =
|
|
4324
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4365
|
+
function Ie(e, t = te().fallbackLocale) {
|
|
4366
|
+
const r = Ft(e);
|
|
4367
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ft(t)])] : r;
|
|
4325
4368
|
}
|
|
4326
4369
|
function k() {
|
|
4327
|
-
return
|
|
4370
|
+
return ut != null ? ut : void 0;
|
|
4328
4371
|
}
|
|
4329
|
-
|
|
4330
|
-
|
|
4372
|
+
Se.subscribe((e) => {
|
|
4373
|
+
ut = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4331
4374
|
});
|
|
4332
|
-
const
|
|
4333
|
-
if (e &&
|
|
4334
|
-
const { loadingDelay: t } =
|
|
4375
|
+
const oo = (e) => {
|
|
4376
|
+
if (e && Xn(e) && at(e)) {
|
|
4377
|
+
const { loadingDelay: t } = te();
|
|
4335
4378
|
let r;
|
|
4336
4379
|
return typeof window != "undefined" && k() != null && t ? r = window.setTimeout(
|
|
4337
|
-
() =>
|
|
4380
|
+
() => Xe.set(!0),
|
|
4338
4381
|
t
|
|
4339
|
-
) :
|
|
4340
|
-
|
|
4382
|
+
) : Xe.set(!0), Hr(e).then(() => {
|
|
4383
|
+
Se.set(e);
|
|
4341
4384
|
}).finally(() => {
|
|
4342
|
-
clearTimeout(r),
|
|
4385
|
+
clearTimeout(r), Xe.set(!1);
|
|
4343
4386
|
});
|
|
4344
4387
|
}
|
|
4345
|
-
return
|
|
4346
|
-
},
|
|
4347
|
-
set:
|
|
4348
|
-
}),
|
|
4388
|
+
return Se.set(e);
|
|
4389
|
+
}, ne = no(io({}, Se), {
|
|
4390
|
+
set: oo
|
|
4391
|
+
}), Ne = (e) => {
|
|
4349
4392
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4350
4393
|
return (i) => {
|
|
4351
4394
|
const n = JSON.stringify(i);
|
|
4352
4395
|
return n in t ? t[n] : t[n] = e(i);
|
|
4353
4396
|
};
|
|
4354
4397
|
};
|
|
4355
|
-
var
|
|
4398
|
+
var so = Object.defineProperty, He = Object.getOwnPropertySymbols, Pr = Object.prototype.hasOwnProperty, Ar = Object.prototype.propertyIsEnumerable, jt = (e, t, r) => t in e ? so(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ft = (e, t) => {
|
|
4356
4399
|
for (var r in t || (t = {}))
|
|
4357
|
-
|
|
4358
|
-
if (
|
|
4359
|
-
for (var r of
|
|
4360
|
-
|
|
4400
|
+
Pr.call(t, r) && jt(e, r, t[r]);
|
|
4401
|
+
if (He)
|
|
4402
|
+
for (var r of He(t))
|
|
4403
|
+
Ar.call(t, r) && jt(e, r, t[r]);
|
|
4361
4404
|
return e;
|
|
4362
4405
|
}, oe = (e, t) => {
|
|
4363
4406
|
var r = {};
|
|
4364
4407
|
for (var i in e)
|
|
4365
|
-
|
|
4366
|
-
if (e != null &&
|
|
4367
|
-
for (var i of
|
|
4368
|
-
t.indexOf(i) < 0 &&
|
|
4408
|
+
Pr.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
4409
|
+
if (e != null && He)
|
|
4410
|
+
for (var i of He(e))
|
|
4411
|
+
t.indexOf(i) < 0 && Ar.call(e, i) && (r[i] = e[i]);
|
|
4369
4412
|
return r;
|
|
4370
4413
|
};
|
|
4371
|
-
const
|
|
4372
|
-
const { formats: r } =
|
|
4414
|
+
const fe = (e, t) => {
|
|
4415
|
+
const { formats: r } = te();
|
|
4373
4416
|
if (e in r && t in r[e])
|
|
4374
4417
|
return r[e][t];
|
|
4375
4418
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4376
|
-
},
|
|
4419
|
+
}, ao = Ne(
|
|
4377
4420
|
(e) => {
|
|
4378
4421
|
var t = e, { locale: r, format: i } = t, n = oe(t, ["locale", "format"]);
|
|
4379
4422
|
if (r == null)
|
|
4380
4423
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4381
|
-
return i && (n =
|
|
4424
|
+
return i && (n = fe("number", i)), new Intl.NumberFormat(r, n);
|
|
4382
4425
|
}
|
|
4383
|
-
),
|
|
4426
|
+
), uo = Ne(
|
|
4384
4427
|
(e) => {
|
|
4385
4428
|
var t = e, { locale: r, format: i } = t, n = oe(t, ["locale", "format"]);
|
|
4386
4429
|
if (r == null)
|
|
4387
4430
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4388
|
-
return i ? n =
|
|
4431
|
+
return i ? n = fe("date", i) : Object.keys(n).length === 0 && (n = fe("date", "short")), new Intl.DateTimeFormat(r, n);
|
|
4389
4432
|
}
|
|
4390
|
-
),
|
|
4433
|
+
), lo = Ne(
|
|
4391
4434
|
(e) => {
|
|
4392
4435
|
var t = e, { locale: r, format: i } = t, n = oe(t, ["locale", "format"]);
|
|
4393
4436
|
if (r == null)
|
|
4394
4437
|
throw new Error(
|
|
4395
4438
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4396
4439
|
);
|
|
4397
|
-
return i ? n =
|
|
4440
|
+
return i ? n = fe("time", i) : Object.keys(n).length === 0 && (n = fe("time", "short")), new Intl.DateTimeFormat(r, n);
|
|
4398
4441
|
}
|
|
4399
|
-
),
|
|
4442
|
+
), ho = (e = {}) => {
|
|
4400
4443
|
var t = e, {
|
|
4401
4444
|
locale: r = k()
|
|
4402
4445
|
} = t, i = oe(t, [
|
|
4403
4446
|
"locale"
|
|
4404
4447
|
]);
|
|
4405
|
-
return
|
|
4406
|
-
},
|
|
4448
|
+
return ao(ft({ locale: r }, i));
|
|
4449
|
+
}, co = (e = {}) => {
|
|
4407
4450
|
var t = e, {
|
|
4408
4451
|
locale: r = k()
|
|
4409
4452
|
} = t, i = oe(t, [
|
|
4410
4453
|
"locale"
|
|
4411
4454
|
]);
|
|
4412
|
-
return
|
|
4413
|
-
},
|
|
4455
|
+
return uo(ft({ locale: r }, i));
|
|
4456
|
+
}, fo = (e = {}) => {
|
|
4414
4457
|
var t = e, {
|
|
4415
4458
|
locale: r = k()
|
|
4416
4459
|
} = t, i = oe(t, [
|
|
4417
4460
|
"locale"
|
|
4418
4461
|
]);
|
|
4419
|
-
return
|
|
4420
|
-
},
|
|
4462
|
+
return lo(ft({ locale: r }, i));
|
|
4463
|
+
}, mo = Ne(
|
|
4421
4464
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4422
|
-
(e, t = k()) => new
|
|
4423
|
-
ignoreTag:
|
|
4465
|
+
(e, t = k()) => new Un(e, t, te().formats, {
|
|
4466
|
+
ignoreTag: te().ignoreTag
|
|
4424
4467
|
})
|
|
4425
|
-
),
|
|
4426
|
-
var r, i, n,
|
|
4468
|
+
), po = (e, t = {}) => {
|
|
4469
|
+
var r, i, n, o;
|
|
4427
4470
|
let a = t;
|
|
4428
4471
|
typeof e == "object" && (a = e, e = a.id);
|
|
4429
4472
|
const {
|
|
4430
|
-
values:
|
|
4473
|
+
values: s,
|
|
4431
4474
|
locale: u = k(),
|
|
4432
4475
|
default: l
|
|
4433
4476
|
} = a;
|
|
@@ -4435,18 +4478,18 @@ const me = (e, t) => {
|
|
|
4435
4478
|
throw new Error(
|
|
4436
4479
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4437
4480
|
);
|
|
4438
|
-
let h =
|
|
4481
|
+
let h = wr(e, u);
|
|
4439
4482
|
if (!h)
|
|
4440
|
-
h = (
|
|
4483
|
+
h = (o = (n = (i = (r = te()).handleMissingMessage) == null ? void 0 : i.call(r, { locale: u, id: e, defaultValue: l })) != null ? n : l) != null ? o : e;
|
|
4441
4484
|
else if (typeof h != "string")
|
|
4442
4485
|
return console.warn(
|
|
4443
4486
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4444
4487
|
), h;
|
|
4445
|
-
if (!
|
|
4488
|
+
if (!s)
|
|
4446
4489
|
return h;
|
|
4447
4490
|
let f = h;
|
|
4448
4491
|
try {
|
|
4449
|
-
f =
|
|
4492
|
+
f = mo(h, u).format(s);
|
|
4450
4493
|
} catch (c) {
|
|
4451
4494
|
c instanceof Error && console.warn(
|
|
4452
4495
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4454,20 +4497,20 @@ const me = (e, t) => {
|
|
|
4454
4497
|
);
|
|
4455
4498
|
}
|
|
4456
4499
|
return f;
|
|
4457
|
-
},
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
window.emWidgets = { topic:
|
|
4463
|
-
const
|
|
4464
|
-
function
|
|
4465
|
-
|
|
4466
|
-
}
|
|
4467
|
-
function
|
|
4468
|
-
|
|
4469
|
-
}
|
|
4470
|
-
const
|
|
4500
|
+
}, go = (e, t) => fo(t).format(e), bo = (e, t) => co(t).format(e), yo = (e, t) => ho(t).format(e), vo = (e, t = k()) => wr(e, t), _o = ie([ne, pe], () => po);
|
|
4501
|
+
ie([ne], () => go);
|
|
4502
|
+
ie([ne], () => bo);
|
|
4503
|
+
ie([ne], () => yo);
|
|
4504
|
+
ie([ne, pe], () => vo);
|
|
4505
|
+
window.emWidgets = { topic: Bi };
|
|
4506
|
+
const Eo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4507
|
+
function kt(e, t) {
|
|
4508
|
+
Tr(e, t);
|
|
4509
|
+
}
|
|
4510
|
+
function xo(e) {
|
|
4511
|
+
ne.set(e);
|
|
4512
|
+
}
|
|
4513
|
+
const Vt = {
|
|
4471
4514
|
en: {
|
|
4472
4515
|
returnToMenu: "Return to menu",
|
|
4473
4516
|
gamingLimitsText: "Gaming limits",
|
|
@@ -4557,13 +4600,13 @@ const Ut = {
|
|
|
4557
4600
|
lossLimit: "Loss Limit"
|
|
4558
4601
|
}
|
|
4559
4602
|
};
|
|
4560
|
-
function
|
|
4603
|
+
function wo(e, t) {
|
|
4561
4604
|
if (e) {
|
|
4562
4605
|
const r = document.createElement("style");
|
|
4563
4606
|
r.innerHTML = t, e.appendChild(r);
|
|
4564
4607
|
}
|
|
4565
4608
|
}
|
|
4566
|
-
function
|
|
4609
|
+
function Lo(e, t) {
|
|
4567
4610
|
const r = new URL(t);
|
|
4568
4611
|
fetch(r.href).then((i) => i.text()).then((i) => {
|
|
4569
4612
|
const n = document.createElement("style");
|
|
@@ -4572,7 +4615,7 @@ function ys(e, t) {
|
|
|
4572
4615
|
console.error("There was an error while trying to load client styling from URL", i);
|
|
4573
4616
|
});
|
|
4574
4617
|
}
|
|
4575
|
-
function
|
|
4618
|
+
function To(e, t, r) {
|
|
4576
4619
|
if (window.emMessageBus) {
|
|
4577
4620
|
const i = document.createElement("style");
|
|
4578
4621
|
window.emMessageBus.subscribe(t, (n) => {
|
|
@@ -4592,17 +4635,17 @@ if (typeof window != "undefined") {
|
|
|
4592
4635
|
}
|
|
4593
4636
|
};
|
|
4594
4637
|
};
|
|
4595
|
-
customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsInfoCard-
|
|
4638
|
+
customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsInfoCard-DJVcHz9f.js").then(({ default: t }) => {
|
|
4596
4639
|
!customElements.get("player-account-gaming-limits-info-card") && customElements.define(
|
|
4597
4640
|
"player-account-gaming-limits-info-card",
|
|
4598
4641
|
t.element
|
|
4599
4642
|
);
|
|
4600
4643
|
});
|
|
4601
4644
|
}
|
|
4602
|
-
function
|
|
4603
|
-
|
|
4645
|
+
function So(e) {
|
|
4646
|
+
Xr(e, "svelte-pgwzq8", '.PlayerAccountGamingLimitsWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;max-width:760px}.PlayerAccountGamingLimitsWrapper .PlayerAccountGamingLimitsHeader h3{font-size:24px;font-weight:400;text-transform:capitalize}.PlayerAccountGamingLimitsWrapper .PlayerAccountGamingLimitsHeader .PlayerAccountGamingLimitsMobileTitle{font-size:16px;font-weight:400}.PlayerGamingLimitsTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerGamingLimitsTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerGamingLimitsTitleNone{display:none}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerAccountMobileGamingLimitsWrapper{padding:20px 15px;background:var(--emw--color-white, #FFFFFF);max-width:unset}.PlayerAccountGamingLimitsContainer{width:100%;display:grid;grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));row-gap:30px;column-gap:30px}.PlayerAccountSuccessfulRemoveContainer{background:var(--emw--color-primary-50, #FBECF4);border:1px solid var(--emw--color-primary-100, #F1BED9);font-size:16px;font-weight:300;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;padding:10px;margin-bottom:20px}.PlayerAccountSuccessfulRemoveContainer p{margin:0}.ModalLoader{position:absolute;left:0;right:0;top:50%;width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
|
|
4604
4647
|
}
|
|
4605
|
-
function
|
|
4648
|
+
function Ho(e) {
|
|
4606
4649
|
let t;
|
|
4607
4650
|
return {
|
|
4608
4651
|
c() {
|
|
@@ -4659,7 +4702,7 @@ function Es(e) {
|
|
|
4659
4702
|
);
|
|
4660
4703
|
},
|
|
4661
4704
|
m(r, i) {
|
|
4662
|
-
|
|
4705
|
+
re(r, t, i);
|
|
4663
4706
|
},
|
|
4664
4707
|
p(r, i) {
|
|
4665
4708
|
i & /*editLimitData*/
|
|
@@ -4729,23 +4772,23 @@ function Es(e) {
|
|
|
4729
4772
|
}
|
|
4730
4773
|
};
|
|
4731
4774
|
}
|
|
4732
|
-
function
|
|
4775
|
+
function Po(e) {
|
|
4733
4776
|
let t, r, i, n = (
|
|
4734
4777
|
/*$_*/
|
|
4735
4778
|
e[17]("gamingLimitsText") + ""
|
|
4736
|
-
),
|
|
4779
|
+
), o, a, s, u, l, h, f, c, b, p, g = (
|
|
4737
4780
|
/*isMobile*/
|
|
4738
|
-
e[18] &&
|
|
4781
|
+
e[18] && Bo(e)
|
|
4739
4782
|
);
|
|
4740
4783
|
return {
|
|
4741
4784
|
c() {
|
|
4742
|
-
t = O("div"), g && g.c(), r = Z(), i = O("h2"),
|
|
4785
|
+
t = O("div"), g && g.c(), r = Z(), i = O("h2"), o = le(n), a = Z(), s = O("div"), u = O("player-account-gaming-limits-info-card"), l = Z(), h = O("player-account-gaming-limits-info-card"), f = Z(), c = O("player-account-gaming-limits-info-card"), b = Z(), p = O("player-account-gaming-limits-info-card"), H(i, "class", "PlayerGamingLimitsTitle " + /*isMobile*/
|
|
4743
4786
|
(e[18] ? "PlayerGamingLimitsTitleNone" : "")), m(
|
|
4744
4787
|
u,
|
|
4745
4788
|
"limitsdata",
|
|
4746
4789
|
/*depositlimit*/
|
|
4747
4790
|
e[1]
|
|
4748
|
-
), m(u, "limitname",
|
|
4791
|
+
), m(u, "limitname", Mo), m(
|
|
4749
4792
|
u,
|
|
4750
4793
|
"currency",
|
|
4751
4794
|
/*currency*/
|
|
@@ -4775,7 +4818,7 @@ function xs(e) {
|
|
|
4775
4818
|
"limitsdata",
|
|
4776
4819
|
/*wageringlimit*/
|
|
4777
4820
|
e[2]
|
|
4778
|
-
), m(h, "limitname",
|
|
4821
|
+
), m(h, "limitname", Io), m(
|
|
4779
4822
|
h,
|
|
4780
4823
|
"currency",
|
|
4781
4824
|
/*currency*/
|
|
@@ -4805,7 +4848,7 @@ function xs(e) {
|
|
|
4805
4848
|
"limitsdata",
|
|
4806
4849
|
/*losslimit*/
|
|
4807
4850
|
e[3]
|
|
4808
|
-
), m(c, "limitname",
|
|
4851
|
+
), m(c, "limitname", No), m(
|
|
4809
4852
|
c,
|
|
4810
4853
|
"currency",
|
|
4811
4854
|
/*currency*/
|
|
@@ -4835,7 +4878,7 @@ function xs(e) {
|
|
|
4835
4878
|
"limitsdata",
|
|
4836
4879
|
/*timelimit*/
|
|
4837
4880
|
e[4]
|
|
4838
|
-
), m(p, "limitname",
|
|
4881
|
+
), m(p, "limitname", Co), m(
|
|
4839
4882
|
p,
|
|
4840
4883
|
"currency",
|
|
4841
4884
|
/*currency*/
|
|
@@ -4860,17 +4903,17 @@ function xs(e) {
|
|
|
4860
4903
|
"mbsource",
|
|
4861
4904
|
/*mbsource*/
|
|
4862
4905
|
e[11]
|
|
4863
|
-
), H(
|
|
4906
|
+
), H(s, "class", "PlayerAccountGamingLimitsContainer"), H(t, "class", "PlayerAccountGamingLimitsWrapper " + /*isMobile*/
|
|
4864
4907
|
(e[18] ? "PlayerAccountMobileGamingLimitsWrapper" : ""));
|
|
4865
4908
|
},
|
|
4866
4909
|
m(d, v) {
|
|
4867
|
-
|
|
4910
|
+
re(d, t, v), g && g.m(t, null), w(t, r), w(t, i), w(i, o), w(t, a), w(t, s), w(s, u), w(s, l), w(s, h), w(s, f), w(s, c), w(s, b), w(s, p);
|
|
4868
4911
|
},
|
|
4869
4912
|
p(d, v) {
|
|
4870
4913
|
/*isMobile*/
|
|
4871
4914
|
d[18] && g.p(d, v), v & /*$_*/
|
|
4872
4915
|
131072 && n !== (n = /*$_*/
|
|
4873
|
-
d[17]("gamingLimitsText") + "") &&
|
|
4916
|
+
d[17]("gamingLimitsText") + "") && Yt(o, n), v & /*depositlimit*/
|
|
4874
4917
|
2 && m(
|
|
4875
4918
|
u,
|
|
4876
4919
|
"limitsdata",
|
|
@@ -5021,14 +5064,14 @@ function xs(e) {
|
|
|
5021
5064
|
}
|
|
5022
5065
|
};
|
|
5023
5066
|
}
|
|
5024
|
-
function
|
|
5067
|
+
function Ao(e) {
|
|
5025
5068
|
let t;
|
|
5026
5069
|
return {
|
|
5027
5070
|
c() {
|
|
5028
5071
|
t = O("div"), H(t, "class", "ModalLoader");
|
|
5029
5072
|
},
|
|
5030
5073
|
m(r, i) {
|
|
5031
|
-
|
|
5074
|
+
re(r, t, i);
|
|
5032
5075
|
},
|
|
5033
5076
|
p: M,
|
|
5034
5077
|
d(r) {
|
|
@@ -5036,17 +5079,17 @@ function ws(e) {
|
|
|
5036
5079
|
}
|
|
5037
5080
|
};
|
|
5038
5081
|
}
|
|
5039
|
-
function
|
|
5040
|
-
let t, r, i, n,
|
|
5082
|
+
function Bo(e) {
|
|
5083
|
+
let t, r, i, n, o, a, s, u, l, h, f = (
|
|
5041
5084
|
/*$_*/
|
|
5042
5085
|
e[17]("gamingLimitsText") + ""
|
|
5043
5086
|
), c, b, p;
|
|
5044
5087
|
return {
|
|
5045
5088
|
c() {
|
|
5046
|
-
t = O("div"), r = X("svg"), i = X("defs"), n = X("style"),
|
|
5089
|
+
t = O("div"), r = X("svg"), i = X("defs"), n = X("style"), o = le(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = X("g"), s = X("g"), u = X("path"), l = Z(), h = O("h2"), c = le(f), H(u, "class", "aaa"), H(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), H(u, "transform", "translate(15 15) rotate(180)"), H(s, "transform", "translate(20 158)"), H(a, "transform", "translate(-20 -158)"), H(r, "xmlns", "http://www.w3.org/2000/svg"), H(r, "width", "15"), H(r, "height", "15"), H(r, "viewBox", "0 0 15 15"), H(h, "class", "PlayerGamingLimitsTitleMobile"), H(t, "class", "MenuReturnButton");
|
|
5047
5090
|
},
|
|
5048
5091
|
m(g, d) {
|
|
5049
|
-
|
|
5092
|
+
re(g, t, d), w(t, r), w(r, i), w(i, n), w(n, o), w(r, a), w(a, s), w(s, u), w(t, l), w(t, h), w(h, c), b || (p = zr(
|
|
5050
5093
|
t,
|
|
5051
5094
|
"click",
|
|
5052
5095
|
/*click_handler*/
|
|
@@ -5056,21 +5099,21 @@ function Ls(e) {
|
|
|
5056
5099
|
p(g, d) {
|
|
5057
5100
|
d & /*$_*/
|
|
5058
5101
|
131072 && f !== (f = /*$_*/
|
|
5059
|
-
g[17]("gamingLimitsText") + "") &&
|
|
5102
|
+
g[17]("gamingLimitsText") + "") && Yt(c, f);
|
|
5060
5103
|
},
|
|
5061
5104
|
d(g) {
|
|
5062
5105
|
g && F(t), b = !1, p();
|
|
5063
5106
|
}
|
|
5064
5107
|
};
|
|
5065
5108
|
}
|
|
5066
|
-
function
|
|
5109
|
+
function Oo(e) {
|
|
5067
5110
|
let t;
|
|
5068
|
-
function r(
|
|
5111
|
+
function r(o, a) {
|
|
5069
5112
|
return (
|
|
5070
5113
|
/*isLoading*/
|
|
5071
|
-
|
|
5114
|
+
o[13] ? Ao : (
|
|
5072
5115
|
/*limitsGroupView*/
|
|
5073
|
-
|
|
5116
|
+
o[16] ? Po : Ho
|
|
5074
5117
|
)
|
|
5075
5118
|
);
|
|
5076
5119
|
}
|
|
@@ -5079,39 +5122,39 @@ function Ts(e) {
|
|
|
5079
5122
|
c() {
|
|
5080
5123
|
t = O("div"), n.c();
|
|
5081
5124
|
},
|
|
5082
|
-
m(
|
|
5083
|
-
|
|
5125
|
+
m(o, a) {
|
|
5126
|
+
re(o, t, a), n.m(t, null), e[22](t);
|
|
5084
5127
|
},
|
|
5085
|
-
p(
|
|
5086
|
-
i === (i = r(
|
|
5128
|
+
p(o, [a]) {
|
|
5129
|
+
i === (i = r(o)) && n ? n.p(o, a) : (n.d(1), n = i(o), n && (n.c(), n.m(t, null)));
|
|
5087
5130
|
},
|
|
5088
5131
|
i: M,
|
|
5089
5132
|
o: M,
|
|
5090
|
-
d(
|
|
5091
|
-
|
|
5133
|
+
d(o) {
|
|
5134
|
+
o && F(t), n.d(), e[22](null);
|
|
5092
5135
|
}
|
|
5093
5136
|
};
|
|
5094
5137
|
}
|
|
5095
|
-
let
|
|
5096
|
-
function
|
|
5138
|
+
let Mo = "Deposit Limit", Io = "Wagering Limit", No = "Loss Limit", Co = "Time Limit";
|
|
5139
|
+
function Ro(e, t, r) {
|
|
5097
5140
|
let i;
|
|
5098
|
-
|
|
5099
|
-
let { depositlimit: n } = t, { wageringlimit:
|
|
5141
|
+
jr(e, _o, (y) => r(17, i = y));
|
|
5142
|
+
let { depositlimit: n } = t, { wageringlimit: o } = t, { losslimit: a } = t, { timelimit: s } = t, { showdeletenotification: u = !1 } = t, { showsuccessnotification: l = !1 } = t, { lang: h = "en" } = t, { currency: f = "" } = t, { separatelimits: c = "true" } = t, { clientstyling: b = "" } = t, { clientstylingurl: p = "" } = t, { mbsource: g } = t, { translationurl: d = "" } = t;
|
|
5100
5143
|
const v = () => {
|
|
5101
|
-
fetch(d).then((
|
|
5102
|
-
Object.keys(
|
|
5103
|
-
|
|
5144
|
+
fetch(d).then((D) => D.json()).then((D) => {
|
|
5145
|
+
Object.keys(D).forEach((dt) => {
|
|
5146
|
+
kt(dt, D[dt]);
|
|
5104
5147
|
});
|
|
5105
|
-
}).catch((
|
|
5106
|
-
console.log(
|
|
5148
|
+
}).catch((D) => {
|
|
5149
|
+
console.log(D);
|
|
5107
5150
|
});
|
|
5108
5151
|
};
|
|
5109
|
-
Object.keys(
|
|
5110
|
-
|
|
5152
|
+
Object.keys(Vt).forEach((y) => {
|
|
5153
|
+
kt(y, Vt[y]);
|
|
5111
5154
|
});
|
|
5112
|
-
let T, S = !0, N = window.navigator.userAgent, P =
|
|
5155
|
+
let T, S = !0, N = window.navigator.userAgent, P = Eo(N) !== "PC", R, V = "", Ce = !0;
|
|
5113
5156
|
window.matchMedia("(min-width: 768px)");
|
|
5114
|
-
const
|
|
5157
|
+
const mt = () => {
|
|
5115
5158
|
window.postMessage(
|
|
5116
5159
|
{
|
|
5117
5160
|
type: "PlayerAccountMenuActive",
|
|
@@ -5119,16 +5162,16 @@ function Bs(e, t, r) {
|
|
|
5119
5162
|
},
|
|
5120
5163
|
window.location.href
|
|
5121
5164
|
);
|
|
5122
|
-
},
|
|
5123
|
-
|
|
5124
|
-
},
|
|
5165
|
+
}, Or = () => {
|
|
5166
|
+
xo(h);
|
|
5167
|
+
}, pt = (y) => {
|
|
5125
5168
|
if (y.data)
|
|
5126
5169
|
switch (y.data.type) {
|
|
5127
5170
|
case "PlayerLimitsData":
|
|
5128
|
-
r(0, h = y.data.limits.lang), r(1, n = y.data.limits.depositlimit), r(2,
|
|
5171
|
+
r(0, h = y.data.limits.lang), r(1, n = y.data.limits.depositlimit), r(2, o = y.data.limits.wageringlimit), r(3, a = y.data.limits.losslimit), r(4, s = y.data.limits.timelimit), r(13, S = !1);
|
|
5129
5172
|
break;
|
|
5130
5173
|
case "EditPlayerAccountGamingLimits":
|
|
5131
|
-
r(14,
|
|
5174
|
+
r(14, R = y.data.edit), r(15, V = y.data.name), r(16, Ce = !1), window.postMessage(
|
|
5132
5175
|
{
|
|
5133
5176
|
type: "EditPlayerLimit",
|
|
5134
5177
|
name: V
|
|
@@ -5137,38 +5180,38 @@ function Bs(e, t, r) {
|
|
|
5137
5180
|
), window.postMessage({ type: "ScrollToTop" }, window.location.href);
|
|
5138
5181
|
break;
|
|
5139
5182
|
case "PlayerAccountBackToLimitsView":
|
|
5140
|
-
r(16,
|
|
5183
|
+
r(16, Ce = !0);
|
|
5141
5184
|
break;
|
|
5142
5185
|
case "ProfileDetailsData":
|
|
5143
|
-
let
|
|
5144
|
-
r(5, f =
|
|
5186
|
+
let D = y.data.profileDetails;
|
|
5187
|
+
r(5, f = D.currency);
|
|
5145
5188
|
break;
|
|
5146
5189
|
}
|
|
5147
5190
|
};
|
|
5148
|
-
|
|
5149
|
-
window.removeEventListener("message",
|
|
5191
|
+
ri(() => (window.addEventListener("message", pt, !1), () => {
|
|
5192
|
+
window.removeEventListener("message", pt);
|
|
5150
5193
|
}));
|
|
5151
|
-
const
|
|
5152
|
-
function
|
|
5153
|
-
|
|
5194
|
+
const Mr = () => mt();
|
|
5195
|
+
function Ir(y) {
|
|
5196
|
+
We[y ? "unshift" : "push"](() => {
|
|
5154
5197
|
T = y, r(12, T);
|
|
5155
5198
|
});
|
|
5156
5199
|
}
|
|
5157
5200
|
return e.$$set = (y) => {
|
|
5158
|
-
"depositlimit" in y && r(1, n = y.depositlimit), "wageringlimit" in y && r(2,
|
|
5201
|
+
"depositlimit" in y && r(1, n = y.depositlimit), "wageringlimit" in y && r(2, o = y.wageringlimit), "losslimit" in y && r(3, a = y.losslimit), "timelimit" in y && r(4, s = y.timelimit), "showdeletenotification" in y && r(6, u = y.showdeletenotification), "showsuccessnotification" in y && r(7, l = y.showsuccessnotification), "lang" in y && r(0, h = y.lang), "currency" in y && r(5, f = y.currency), "separatelimits" in y && r(8, c = y.separatelimits), "clientstyling" in y && r(9, b = y.clientstyling), "clientstylingurl" in y && r(10, p = y.clientstylingurl), "mbsource" in y && r(11, g = y.mbsource), "translationurl" in y && r(20, d = y.translationurl);
|
|
5159
5202
|
}, e.$$.update = () => {
|
|
5160
5203
|
e.$$.dirty & /*lang*/
|
|
5161
|
-
1 && h &&
|
|
5162
|
-
4608 && b && T &&
|
|
5163
|
-
5120 && p && T &&
|
|
5164
|
-
6144 && g && T &&
|
|
5204
|
+
1 && h && Or(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
5205
|
+
4608 && b && T && wo(T, b), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
5206
|
+
5120 && p && T && Lo(T, p), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
5207
|
+
6144 && g && T && To(T, `${g}.Style`), e.$$.dirty & /*translationurl*/
|
|
5165
5208
|
1048576 && d && v();
|
|
5166
5209
|
}, [
|
|
5167
5210
|
h,
|
|
5168
5211
|
n,
|
|
5169
|
-
s,
|
|
5170
|
-
a,
|
|
5171
5212
|
o,
|
|
5213
|
+
a,
|
|
5214
|
+
s,
|
|
5172
5215
|
f,
|
|
5173
5216
|
u,
|
|
5174
5217
|
l,
|
|
@@ -5178,25 +5221,25 @@ function Bs(e, t, r) {
|
|
|
5178
5221
|
g,
|
|
5179
5222
|
T,
|
|
5180
5223
|
S,
|
|
5181
|
-
|
|
5224
|
+
R,
|
|
5182
5225
|
V,
|
|
5183
|
-
|
|
5226
|
+
Ce,
|
|
5184
5227
|
i,
|
|
5185
5228
|
P,
|
|
5186
|
-
|
|
5229
|
+
mt,
|
|
5187
5230
|
d,
|
|
5188
|
-
|
|
5189
|
-
|
|
5231
|
+
Mr,
|
|
5232
|
+
Ir
|
|
5190
5233
|
];
|
|
5191
5234
|
}
|
|
5192
|
-
class
|
|
5235
|
+
class Br extends di {
|
|
5193
5236
|
constructor(t) {
|
|
5194
|
-
super(),
|
|
5237
|
+
super(), mi(
|
|
5195
5238
|
this,
|
|
5196
5239
|
t,
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5240
|
+
Ro,
|
|
5241
|
+
Oo,
|
|
5242
|
+
Wt,
|
|
5200
5243
|
{
|
|
5201
5244
|
depositlimit: 1,
|
|
5202
5245
|
wageringlimit: 2,
|
|
@@ -5212,7 +5255,7 @@ class Tr extends hi {
|
|
|
5212
5255
|
mbsource: 11,
|
|
5213
5256
|
translationurl: 20
|
|
5214
5257
|
},
|
|
5215
|
-
|
|
5258
|
+
So
|
|
5216
5259
|
);
|
|
5217
5260
|
}
|
|
5218
5261
|
get depositlimit() {
|
|
@@ -5294,60 +5337,60 @@ class Tr extends hi {
|
|
|
5294
5337
|
this.$$set({ translationurl: t }), A();
|
|
5295
5338
|
}
|
|
5296
5339
|
}
|
|
5297
|
-
|
|
5298
|
-
const
|
|
5340
|
+
pi(Br, { depositlimit: {}, wageringlimit: {}, losslimit: {}, timelimit: {}, showdeletenotification: { type: "Boolean" }, showsuccessnotification: { type: "Boolean" }, lang: {}, currency: {}, separatelimits: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
5341
|
+
const es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5299
5342
|
__proto__: null,
|
|
5300
|
-
default:
|
|
5343
|
+
default: Br
|
|
5301
5344
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5302
5345
|
export {
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5346
|
+
ne as $,
|
|
5347
|
+
We as A,
|
|
5348
|
+
wo as B,
|
|
5349
|
+
Lo as C,
|
|
5350
|
+
To as D,
|
|
5351
|
+
pi as E,
|
|
5352
|
+
_o as F,
|
|
5310
5353
|
m as G,
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5354
|
+
Vo as H,
|
|
5355
|
+
Ko as I,
|
|
5356
|
+
jo as J,
|
|
5357
|
+
Zo as K,
|
|
5358
|
+
Xo as L,
|
|
5359
|
+
ko as M,
|
|
5360
|
+
zo as N,
|
|
5361
|
+
Pe as O,
|
|
5362
|
+
Wo as P,
|
|
5320
5363
|
Le as Q,
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5364
|
+
Dr as R,
|
|
5365
|
+
di as S,
|
|
5366
|
+
qo as T,
|
|
5367
|
+
Yo as U,
|
|
5368
|
+
Qo as V,
|
|
5369
|
+
es as W,
|
|
5370
|
+
Tr as a,
|
|
5371
|
+
Xr as b,
|
|
5372
|
+
$o as c,
|
|
5330
5373
|
F as d,
|
|
5331
|
-
|
|
5374
|
+
ui as e,
|
|
5332
5375
|
A as f,
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5376
|
+
Fo as g,
|
|
5377
|
+
Do as h,
|
|
5378
|
+
mi as i,
|
|
5379
|
+
Yt as j,
|
|
5380
|
+
re as k,
|
|
5381
|
+
w as l,
|
|
5382
|
+
zr as m,
|
|
5340
5383
|
O as n,
|
|
5341
5384
|
Z as o,
|
|
5342
|
-
|
|
5385
|
+
le as p,
|
|
5343
5386
|
H as q,
|
|
5344
5387
|
j as r,
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5388
|
+
Wt as s,
|
|
5389
|
+
Jo as t,
|
|
5390
|
+
Uo as u,
|
|
5391
|
+
jr as v,
|
|
5392
|
+
Eo as w,
|
|
5393
|
+
ri as x,
|
|
5351
5394
|
M as y,
|
|
5352
5395
|
X as z
|
|
5353
5396
|
};
|