@everymatrix/player-account-gaming-limits 1.76.1 → 1.76.3
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-DtzP7G6K.js → PlayerAccountGamingLimits-CqmOKdVH.js} +1463 -1477
- package/components/{PlayerAccountGamingLimits-DZxeJ9O6.js → PlayerAccountGamingLimits-DCaWtkE6.js} +1228 -1242
- package/components/PlayerAccountGamingLimits-T5-mSITY.cjs +21 -0
- package/components/{PlayerAccountGamingLimitsConfirmationModal-Cojk6mIA.js → PlayerAccountGamingLimitsConfirmationModal-BFdGoRdT.js} +38 -38
- package/components/PlayerAccountGamingLimitsConfirmationModal-BcmMpc4k.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsConfirmationModal-Coe5msP4.js → PlayerAccountGamingLimitsConfirmationModal-OGalQefI.js} +38 -38
- package/components/{PlayerAccountGamingLimitsGroupEdit-DnDtGiqd.js → PlayerAccountGamingLimitsGroupEdit-5QD1HV33.js} +379 -379
- package/components/{PlayerAccountGamingLimitsGroupEdit-oQYdpkFq.cjs → PlayerAccountGamingLimitsGroupEdit-BN0PwZvT.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-CuYXb_Td.js → PlayerAccountGamingLimitsGroupEdit-CSUNPJOB.js} +379 -379
- package/components/{PlayerAccountGamingLimitsInfoCard-x9MVFt7G.js → PlayerAccountGamingLimitsInfoCard-BR08lfFb.js} +7 -7
- package/components/{PlayerAccountGamingLimitsInfoCard-DDFrYx0M.js → PlayerAccountGamingLimitsInfoCard-BUt4LvKE.js} +7 -7
- package/components/{PlayerAccountGamingLimitsInfoCard-CtpmE0je.cjs → PlayerAccountGamingLimitsInfoCard-DWoR16RN.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-DjnXMxiO.cjs → PlayerAccountGamingLimitsPopup-CLICaYT2.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-BHOTrnnB.js → PlayerAccountGamingLimitsPopup-CVwe9722.js} +6 -6
- package/components/{PlayerAccountGamingLimitsPopup-9t0My0ez.js → PlayerAccountGamingLimitsPopup-D9Pjzy7_.js} +6 -6
- package/components/{PlayerAccountModal-BaTp6xqc.js → PlayerAccountModal-BECvIT3d.js} +10 -10
- package/components/{PlayerAccountModal-Dv-RPvC_.js → PlayerAccountModal-BcLiGXkj.js} +10 -10
- package/components/{PlayerAccountModal-CUiC1zgO.cjs → PlayerAccountModal-ioLlN0au.cjs} +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-B7Ae4m4I.cjs +0 -21
- package/components/PlayerAccountGamingLimitsConfirmationModal-DsRj01Df.cjs +0 -1
package/components/{PlayerAccountGamingLimits-DtzP7G6K.js → PlayerAccountGamingLimits-CqmOKdVH.js}
RENAMED
|
@@ -1,142 +1,142 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
1
|
+
var On = Object.defineProperty, Mn = Object.defineProperties;
|
|
2
|
+
var In = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var ft = Object.getOwnPropertySymbols;
|
|
4
|
+
var Nn = Object.prototype.hasOwnProperty, Cn = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ne = (e, t, n) => t in e ? On(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, mt = (e, t) => {
|
|
6
|
+
for (var n in t || (t = {}))
|
|
7
|
+
Nn.call(t, n) && Ne(e, n, t[n]);
|
|
8
|
+
if (ft)
|
|
9
|
+
for (var n of ft(t))
|
|
10
|
+
Cn.call(t, n) && Ne(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, dt = (e, t) => Mn(e, In(t));
|
|
13
|
+
var I = (e, t, n) => (Ne(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
|
+
var pt = (e, t, n) => new Promise((r, i) => {
|
|
15
15
|
var s = (u) => {
|
|
16
16
|
try {
|
|
17
|
-
o(
|
|
17
|
+
o(n.next(u));
|
|
18
18
|
} catch (l) {
|
|
19
|
-
|
|
19
|
+
i(l);
|
|
20
20
|
}
|
|
21
21
|
}, a = (u) => {
|
|
22
22
|
try {
|
|
23
|
-
o(
|
|
23
|
+
o(n.throw(u));
|
|
24
24
|
} catch (l) {
|
|
25
|
-
|
|
25
|
+
i(l);
|
|
26
26
|
}
|
|
27
|
-
}, o = (u) => u.done ?
|
|
28
|
-
o((
|
|
27
|
+
}, o = (u) => u.done ? r(u.value) : Promise.resolve(u.value).then(s, a);
|
|
28
|
+
o((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function M() {
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
function
|
|
34
|
-
for (const
|
|
35
|
-
e[
|
|
32
|
+
const Rn = (e) => e;
|
|
33
|
+
function Gn(e, t) {
|
|
34
|
+
for (const n in t)
|
|
35
|
+
e[n] = t[n];
|
|
36
36
|
return (
|
|
37
37
|
/** @type {T & S} */
|
|
38
38
|
e
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Ft(e) {
|
|
42
42
|
return e();
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function gt() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
47
|
function j(e) {
|
|
48
|
-
e.forEach(
|
|
48
|
+
e.forEach(Ft);
|
|
49
49
|
}
|
|
50
50
|
function He(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function jt(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Dn(e) {
|
|
57
57
|
return Object.keys(e).length === 0;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function kt(e, ...t) {
|
|
60
60
|
if (e == null) {
|
|
61
|
-
for (const
|
|
62
|
-
|
|
61
|
+
for (const r of t)
|
|
62
|
+
r(void 0);
|
|
63
63
|
return M;
|
|
64
64
|
}
|
|
65
|
-
const
|
|
66
|
-
return
|
|
65
|
+
const n = e.subscribe(...t);
|
|
66
|
+
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
e.$$.on_destroy.push(
|
|
68
|
+
function Un(e, t, n) {
|
|
69
|
+
e.$$.on_destroy.push(kt(t, n));
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Is(e, t, n, r) {
|
|
72
72
|
if (e) {
|
|
73
|
-
const
|
|
74
|
-
return e[0](
|
|
73
|
+
const i = Vt(e, t, n, r);
|
|
74
|
+
return e[0](i);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
return e[1] &&
|
|
77
|
+
function Vt(e, t, n, r) {
|
|
78
|
+
return e[1] && r ? Gn(n.ctx.slice(), e[1](r(t))) : n.ctx;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
if (e[2] &&
|
|
82
|
-
const
|
|
80
|
+
function Ns(e, t, n, r) {
|
|
81
|
+
if (e[2] && r) {
|
|
82
|
+
const i = e[2](r(n));
|
|
83
83
|
if (t.dirty === void 0)
|
|
84
|
-
return
|
|
85
|
-
if (typeof
|
|
86
|
-
const s = [], a = Math.max(t.dirty.length,
|
|
84
|
+
return i;
|
|
85
|
+
if (typeof i == "object") {
|
|
86
|
+
const s = [], a = Math.max(t.dirty.length, i.length);
|
|
87
87
|
for (let o = 0; o < a; o += 1)
|
|
88
|
-
s[o] = t.dirty[o] |
|
|
88
|
+
s[o] = t.dirty[o] | i[o];
|
|
89
89
|
return s;
|
|
90
90
|
}
|
|
91
|
-
return t.dirty |
|
|
91
|
+
return t.dirty | i;
|
|
92
92
|
}
|
|
93
93
|
return t.dirty;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
if (
|
|
97
|
-
const a =
|
|
98
|
-
e.p(a,
|
|
95
|
+
function Cs(e, t, n, r, i, s) {
|
|
96
|
+
if (i) {
|
|
97
|
+
const a = Vt(t, n, r, s);
|
|
98
|
+
e.p(a, i);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function Rs(e) {
|
|
102
102
|
if (e.ctx.length > 32) {
|
|
103
|
-
const t = [],
|
|
104
|
-
for (let
|
|
105
|
-
t[
|
|
103
|
+
const t = [], n = e.ctx.length / 32;
|
|
104
|
+
for (let r = 0; r < n; r++)
|
|
105
|
+
t[r] = -1;
|
|
106
106
|
return t;
|
|
107
107
|
}
|
|
108
108
|
return -1;
|
|
109
109
|
}
|
|
110
|
-
const
|
|
111
|
-
let
|
|
112
|
-
const
|
|
113
|
-
function
|
|
114
|
-
|
|
115
|
-
t.c(e) || (
|
|
116
|
-
}),
|
|
110
|
+
const Xt = typeof window != "undefined";
|
|
111
|
+
let $n = Xt ? () => window.performance.now() : () => Date.now(), it = Xt ? (e) => requestAnimationFrame(e) : M;
|
|
112
|
+
const q = /* @__PURE__ */ new Set();
|
|
113
|
+
function Wt(e) {
|
|
114
|
+
q.forEach((t) => {
|
|
115
|
+
t.c(e) || (q.delete(t), t.f());
|
|
116
|
+
}), q.size !== 0 && it(Wt);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Fn(e) {
|
|
119
119
|
let t;
|
|
120
|
-
return
|
|
121
|
-
promise: new Promise((
|
|
122
|
-
|
|
120
|
+
return q.size === 0 && it(Wt), {
|
|
121
|
+
promise: new Promise((n) => {
|
|
122
|
+
q.add(t = { c: e, f: n });
|
|
123
123
|
}),
|
|
124
124
|
abort() {
|
|
125
|
-
|
|
125
|
+
q.delete(t);
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
129
|
function L(e, t) {
|
|
130
130
|
e.appendChild(t);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
const
|
|
134
|
-
if (!
|
|
135
|
-
const
|
|
136
|
-
|
|
132
|
+
function jn(e, t, n) {
|
|
133
|
+
const r = st(e);
|
|
134
|
+
if (!r.getElementById(t)) {
|
|
135
|
+
const i = O("style");
|
|
136
|
+
i.id = t, i.textContent = n, zt(r, i);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function st(e) {
|
|
140
140
|
if (!e)
|
|
141
141
|
return document;
|
|
142
142
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -146,132 +146,132 @@ function at(e) {
|
|
|
146
146
|
t
|
|
147
147
|
) : e.ownerDocument;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
const t =
|
|
151
|
-
return t.textContent = "/* empty */",
|
|
149
|
+
function kn(e) {
|
|
150
|
+
const t = O("style");
|
|
151
|
+
return t.textContent = "/* empty */", zt(st(e), t), t.sheet;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function zt(e, t) {
|
|
154
154
|
return L(
|
|
155
155
|
/** @type {Document} */
|
|
156
156
|
e.head || e,
|
|
157
157
|
t
|
|
158
158
|
), t.sheet;
|
|
159
159
|
}
|
|
160
|
-
function re(e, t,
|
|
161
|
-
e.insertBefore(t,
|
|
160
|
+
function re(e, t, n) {
|
|
161
|
+
e.insertBefore(t, n || null);
|
|
162
162
|
}
|
|
163
163
|
function F(e) {
|
|
164
164
|
e.parentNode && e.parentNode.removeChild(e);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
for (let
|
|
168
|
-
e[
|
|
166
|
+
function Gs(e, t) {
|
|
167
|
+
for (let n = 0; n < e.length; n += 1)
|
|
168
|
+
e[n] && e[n].d(t);
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function O(e) {
|
|
171
171
|
return document.createElement(e);
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function X(e) {
|
|
174
174
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
175
175
|
}
|
|
176
176
|
function he(e) {
|
|
177
177
|
return document.createTextNode(e);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Z() {
|
|
180
180
|
return he(" ");
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Ds() {
|
|
183
183
|
return he("");
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
return e.addEventListener(t,
|
|
185
|
+
function Vn(e, t, n, r) {
|
|
186
|
+
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Us(e) {
|
|
189
189
|
return function(t) {
|
|
190
190
|
return t.preventDefault(), e.call(this, t);
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
function H(e, t,
|
|
194
|
-
|
|
193
|
+
function H(e, t, n) {
|
|
194
|
+
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
195
195
|
}
|
|
196
|
-
function m(e, t,
|
|
197
|
-
const
|
|
198
|
-
|
|
196
|
+
function m(e, t, n) {
|
|
197
|
+
const r = t.toLowerCase();
|
|
198
|
+
r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : H(e, t, n);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function $s(e) {
|
|
201
201
|
return e === "" ? null : +e;
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Xn(e) {
|
|
204
204
|
return Array.from(e.childNodes);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Zt(e, t) {
|
|
207
207
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
208
208
|
t);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Fs(e, t) {
|
|
211
211
|
e.value = t == null ? "" : t;
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
for (let
|
|
215
|
-
const
|
|
216
|
-
if (
|
|
217
|
-
|
|
213
|
+
function js(e, t, n) {
|
|
214
|
+
for (let r = 0; r < e.options.length; r += 1) {
|
|
215
|
+
const i = e.options[r];
|
|
216
|
+
if (i.__value === t) {
|
|
217
|
+
i.selected = !0;
|
|
218
218
|
return;
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
(!
|
|
221
|
+
(!n || t !== void 0) && (e.selectedIndex = -1);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function ks(e) {
|
|
224
224
|
const t = e.querySelector(":checked");
|
|
225
225
|
return t && t.__value;
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
return new CustomEvent(e, { detail: t, bubbles:
|
|
227
|
+
function Wn(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
228
|
+
return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function zn(e) {
|
|
231
231
|
const t = {};
|
|
232
232
|
return e.childNodes.forEach(
|
|
233
233
|
/** @param {Element} node */
|
|
234
|
-
(
|
|
235
|
-
t[
|
|
234
|
+
(n) => {
|
|
235
|
+
t[n.slot || "default"] = !0;
|
|
236
236
|
}
|
|
237
237
|
), t;
|
|
238
238
|
}
|
|
239
239
|
const xe = /* @__PURE__ */ new Map();
|
|
240
240
|
let we = 0;
|
|
241
|
-
function
|
|
242
|
-
let t = 5381,
|
|
243
|
-
for (;
|
|
244
|
-
t = (t << 5) - t ^ e.charCodeAt(
|
|
241
|
+
function Zn(e) {
|
|
242
|
+
let t = 5381, n = e.length;
|
|
243
|
+
for (; n--; )
|
|
244
|
+
t = (t << 5) - t ^ e.charCodeAt(n);
|
|
245
245
|
return t >>> 0;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
const
|
|
249
|
-
return xe.set(e,
|
|
247
|
+
function Qn(e, t) {
|
|
248
|
+
const n = { stylesheet: kn(t), rules: {} };
|
|
249
|
+
return xe.set(e, n), n;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
252
|
-
const u = 16.666 /
|
|
251
|
+
function bt(e, t, n, r, i, s, a, o = 0) {
|
|
252
|
+
const u = 16.666 / r;
|
|
253
253
|
let l = `{
|
|
254
254
|
`;
|
|
255
|
-
for (let
|
|
256
|
-
const
|
|
257
|
-
l +=
|
|
255
|
+
for (let p = 0; p <= 1; p += u) {
|
|
256
|
+
const _ = t + (n - t) * s(p);
|
|
257
|
+
l += p * 100 + `%{${a(_, 1 - _)}}
|
|
258
258
|
`;
|
|
259
259
|
}
|
|
260
|
-
const h = l + `100% {${a(
|
|
261
|
-
}`, f = `__svelte_${
|
|
262
|
-
|
|
260
|
+
const h = l + `100% {${a(n, 1 - n)}}
|
|
261
|
+
}`, f = `__svelte_${Zn(h)}_${o}`, c = st(e), { stylesheet: b, rules: d } = xe.get(c) || Qn(c, e);
|
|
262
|
+
d[f] || (d[f] = !0, b.insertRule(`@keyframes ${f} ${h}`, b.cssRules.length));
|
|
263
263
|
const g = e.style.animation || "";
|
|
264
|
-
return e.style.animation = `${g ? `${g}, ` : ""}${f} ${
|
|
264
|
+
return e.style.animation = `${g ? `${g}, ` : ""}${f} ${r}ms linear ${i}ms 1 both`, we += 1, f;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
const
|
|
266
|
+
function qn(e, t) {
|
|
267
|
+
const n = (e.style.animation || "").split(", "), r = n.filter(
|
|
268
268
|
t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
|
|
269
269
|
// remove all Svelte animations
|
|
270
|
-
),
|
|
271
|
-
|
|
270
|
+
), i = n.length - r.length;
|
|
271
|
+
i && (e.style.animation = r.join(", "), we -= i, we || Jn());
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
|
|
273
|
+
function Jn() {
|
|
274
|
+
it(() => {
|
|
275
275
|
we || (xe.forEach((e) => {
|
|
276
276
|
const { ownerNode: t } = e.stylesheet;
|
|
277
277
|
t && F(t);
|
|
@@ -282,74 +282,74 @@ let ce;
|
|
|
282
282
|
function le(e) {
|
|
283
283
|
ce = e;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function Yn() {
|
|
286
286
|
if (!ce)
|
|
287
287
|
throw new Error("Function called outside component initialization");
|
|
288
288
|
return ce;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
|
|
290
|
+
function Kn(e) {
|
|
291
|
+
Yn().$$.on_mount.push(e);
|
|
292
292
|
}
|
|
293
|
-
const
|
|
294
|
-
let
|
|
295
|
-
const
|
|
296
|
-
let
|
|
297
|
-
function
|
|
298
|
-
|
|
293
|
+
const Q = [], ke = [];
|
|
294
|
+
let J = [];
|
|
295
|
+
const yt = [], er = /* @__PURE__ */ Promise.resolve();
|
|
296
|
+
let Ve = !1;
|
|
297
|
+
function tr() {
|
|
298
|
+
Ve || (Ve = !0, er.then(A));
|
|
299
299
|
}
|
|
300
300
|
function Le(e) {
|
|
301
|
-
|
|
301
|
+
J.push(e);
|
|
302
302
|
}
|
|
303
|
-
const
|
|
304
|
-
let
|
|
303
|
+
const Ce = /* @__PURE__ */ new Set();
|
|
304
|
+
let W = 0;
|
|
305
305
|
function A() {
|
|
306
|
-
if (
|
|
306
|
+
if (W !== 0)
|
|
307
307
|
return;
|
|
308
308
|
const e = ce;
|
|
309
309
|
do {
|
|
310
310
|
try {
|
|
311
|
-
for (;
|
|
312
|
-
const t =
|
|
313
|
-
|
|
311
|
+
for (; W < Q.length; ) {
|
|
312
|
+
const t = Q[W];
|
|
313
|
+
W++, le(t), nr(t.$$);
|
|
314
314
|
}
|
|
315
315
|
} catch (t) {
|
|
316
|
-
throw
|
|
316
|
+
throw Q.length = 0, W = 0, t;
|
|
317
317
|
}
|
|
318
|
-
for (le(null),
|
|
319
|
-
|
|
320
|
-
for (let t = 0; t <
|
|
321
|
-
const
|
|
322
|
-
|
|
318
|
+
for (le(null), Q.length = 0, W = 0; ke.length; )
|
|
319
|
+
ke.pop()();
|
|
320
|
+
for (let t = 0; t < J.length; t += 1) {
|
|
321
|
+
const n = J[t];
|
|
322
|
+
Ce.has(n) || (Ce.add(n), n());
|
|
323
323
|
}
|
|
324
|
-
|
|
325
|
-
} while (
|
|
326
|
-
for (;
|
|
327
|
-
|
|
328
|
-
|
|
324
|
+
J.length = 0;
|
|
325
|
+
} while (Q.length);
|
|
326
|
+
for (; yt.length; )
|
|
327
|
+
yt.pop()();
|
|
328
|
+
Ve = !1, Ce.clear(), le(e);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function nr(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
|
|
338
|
-
const t = [],
|
|
339
|
-
|
|
337
|
+
function rr(e) {
|
|
338
|
+
const t = [], n = [];
|
|
339
|
+
J.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), J = t;
|
|
340
340
|
}
|
|
341
341
|
let ae;
|
|
342
|
-
function
|
|
342
|
+
function ir() {
|
|
343
343
|
return ae || (ae = Promise.resolve(), ae.then(() => {
|
|
344
344
|
ae = null;
|
|
345
345
|
})), ae;
|
|
346
346
|
}
|
|
347
|
-
function
|
|
348
|
-
e.dispatchEvent(
|
|
347
|
+
function Re(e, t, n) {
|
|
348
|
+
e.dispatchEvent(Wn(`${t ? "intro" : "outro"}${n}`));
|
|
349
349
|
}
|
|
350
350
|
const be = /* @__PURE__ */ new Set();
|
|
351
351
|
let R;
|
|
352
|
-
function
|
|
352
|
+
function Vs() {
|
|
353
353
|
R = {
|
|
354
354
|
r: 0,
|
|
355
355
|
c: [],
|
|
@@ -357,104 +357,104 @@ function zs() {
|
|
|
357
357
|
// parent group
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Xs() {
|
|
361
361
|
R.r || j(R.c), R = R.p;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function sr(e, t) {
|
|
364
364
|
e && e.i && (be.delete(e), e.i(t));
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function Ws(e, t, n, r) {
|
|
367
367
|
if (e && e.o) {
|
|
368
368
|
if (be.has(e))
|
|
369
369
|
return;
|
|
370
370
|
be.add(e), R.c.push(() => {
|
|
371
|
-
be.delete(e),
|
|
371
|
+
be.delete(e), r && (n && e.d(1), r());
|
|
372
372
|
}), e.o(t);
|
|
373
373
|
} else
|
|
374
|
-
|
|
374
|
+
r && r();
|
|
375
375
|
}
|
|
376
|
-
const
|
|
377
|
-
function
|
|
378
|
-
let s = t(e,
|
|
376
|
+
const or = { duration: 0 };
|
|
377
|
+
function zs(e, t, n, r) {
|
|
378
|
+
let s = t(e, n, { direction: "both" }), a = r ? 0 : 1, o = null, u = null, l = null, h;
|
|
379
379
|
function f() {
|
|
380
|
-
l &&
|
|
380
|
+
l && qn(e, l);
|
|
381
381
|
}
|
|
382
|
-
function c(
|
|
383
|
-
const
|
|
382
|
+
function c(d, g) {
|
|
383
|
+
const p = (
|
|
384
384
|
/** @type {Program['d']} */
|
|
385
|
-
|
|
385
|
+
d.b - a
|
|
386
386
|
);
|
|
387
|
-
return g *= Math.abs(
|
|
387
|
+
return g *= Math.abs(p), {
|
|
388
388
|
a,
|
|
389
|
-
b:
|
|
390
|
-
d,
|
|
389
|
+
b: d.b,
|
|
390
|
+
d: p,
|
|
391
391
|
duration: g,
|
|
392
|
-
start:
|
|
393
|
-
end:
|
|
394
|
-
group:
|
|
392
|
+
start: d.start,
|
|
393
|
+
end: d.start + g,
|
|
394
|
+
group: d.group
|
|
395
395
|
};
|
|
396
396
|
}
|
|
397
|
-
function b(
|
|
397
|
+
function b(d) {
|
|
398
398
|
const {
|
|
399
399
|
delay: g = 0,
|
|
400
|
-
duration:
|
|
401
|
-
easing:
|
|
400
|
+
duration: p = 300,
|
|
401
|
+
easing: _ = Rn,
|
|
402
402
|
tick: T = M,
|
|
403
403
|
css: S
|
|
404
|
-
} = s ||
|
|
405
|
-
start:
|
|
406
|
-
b:
|
|
404
|
+
} = s || or, N = {
|
|
405
|
+
start: $n() + g,
|
|
406
|
+
b: d
|
|
407
407
|
};
|
|
408
|
-
|
|
409
|
-
e.inert, e.inert = !0)), o || u ? u =
|
|
410
|
-
if (u &&
|
|
408
|
+
d || (N.group = R, R.r += 1), "inert" in e && (d ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
|
|
409
|
+
e.inert, e.inert = !0)), o || u ? u = N : (S && (f(), l = bt(e, a, d, p, g, _, S)), d && T(0, 1), o = c(N, p), Le(() => Re(e, d, "start")), Fn((P) => {
|
|
410
|
+
if (u && P > u.start && (o = c(u, p), u = null, Re(e, o.b, "start"), S && (f(), l = bt(
|
|
411
411
|
e,
|
|
412
412
|
a,
|
|
413
413
|
o.b,
|
|
414
414
|
o.duration,
|
|
415
415
|
0,
|
|
416
|
-
|
|
416
|
+
_,
|
|
417
417
|
s.css
|
|
418
418
|
))), o) {
|
|
419
|
-
if (
|
|
420
|
-
T(a = o.b, 1 - a),
|
|
421
|
-
else if (
|
|
422
|
-
const C =
|
|
423
|
-
a = o.a + o.d *
|
|
419
|
+
if (P >= o.end)
|
|
420
|
+
T(a = o.b, 1 - a), Re(e, o.b, "end"), u || (o.b ? f() : --o.group.r || j(o.group.c)), o = null;
|
|
421
|
+
else if (P >= o.start) {
|
|
422
|
+
const C = P - o.start;
|
|
423
|
+
a = o.a + o.d * _(C / o.duration), T(a, 1 - a);
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
return !!(o || u);
|
|
427
427
|
}));
|
|
428
428
|
}
|
|
429
429
|
return {
|
|
430
|
-
run(
|
|
431
|
-
He(s) ?
|
|
432
|
-
s = s({ direction:
|
|
433
|
-
}) : b(
|
|
430
|
+
run(d) {
|
|
431
|
+
He(s) ? ir().then(() => {
|
|
432
|
+
s = s({ direction: d ? "in" : "out" }), b(d);
|
|
433
|
+
}) : b(d);
|
|
434
434
|
},
|
|
435
435
|
end() {
|
|
436
436
|
f(), o = u = null;
|
|
437
437
|
}
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function Zs(e) {
|
|
441
441
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
442
442
|
}
|
|
443
|
-
function
|
|
444
|
-
const { fragment:
|
|
445
|
-
|
|
446
|
-
const s = e.$$.on_mount.map(
|
|
443
|
+
function ar(e, t, n) {
|
|
444
|
+
const { fragment: r, after_update: i } = e.$$;
|
|
445
|
+
r && r.m(t, n), Le(() => {
|
|
446
|
+
const s = e.$$.on_mount.map(Ft).filter(He);
|
|
447
447
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : j(s), e.$$.on_mount = [];
|
|
448
|
-
}),
|
|
448
|
+
}), i.forEach(Le);
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
const
|
|
452
|
-
|
|
450
|
+
function ur(e, t) {
|
|
451
|
+
const n = e.$$;
|
|
452
|
+
n.fragment !== null && (rr(n.after_update), j(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
453
453
|
}
|
|
454
|
-
function
|
|
455
|
-
e.$$.dirty[0] === -1 && (
|
|
454
|
+
function lr(e, t) {
|
|
455
|
+
e.$$.dirty[0] === -1 && (Q.push(e), tr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function hr(e, t, n, r, i, s, a = null, o = [-1]) {
|
|
458
458
|
const u = ce;
|
|
459
459
|
le(e);
|
|
460
460
|
const l = e.$$ = {
|
|
@@ -463,8 +463,8 @@ function mi(e, t, r, i, n, s, a = null, o = [-1]) {
|
|
|
463
463
|
// state
|
|
464
464
|
props: s,
|
|
465
465
|
update: M,
|
|
466
|
-
not_equal:
|
|
467
|
-
bound:
|
|
466
|
+
not_equal: i,
|
|
467
|
+
bound: gt(),
|
|
468
468
|
// lifecycle
|
|
469
469
|
on_mount: [],
|
|
470
470
|
on_destroy: [],
|
|
@@ -473,72 +473,72 @@ function mi(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:
|
|
476
|
+
callbacks: gt(),
|
|
477
477
|
dirty: o,
|
|
478
478
|
skip_bound: !1,
|
|
479
479
|
root: t.target || u.$$.root
|
|
480
480
|
};
|
|
481
481
|
a && a(l.root);
|
|
482
482
|
let h = !1;
|
|
483
|
-
if (l.ctx =
|
|
484
|
-
const
|
|
485
|
-
return l.ctx &&
|
|
486
|
-
}) : [], l.update(), h = !0, j(l.before_update), l.fragment =
|
|
483
|
+
if (l.ctx = n ? n(e, t.props || {}, (f, c, ...b) => {
|
|
484
|
+
const d = b.length ? b[0] : c;
|
|
485
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = d) && (!l.skip_bound && l.bound[f] && l.bound[f](d), h && lr(e, f)), c;
|
|
486
|
+
}) : [], l.update(), h = !0, j(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
|
|
487
487
|
if (t.hydrate) {
|
|
488
|
-
const f =
|
|
488
|
+
const f = Xn(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 && sr(e.$$.fragment), ar(e, t.target, t.anchor), A();
|
|
493
493
|
}
|
|
494
494
|
le(u);
|
|
495
495
|
}
|
|
496
|
-
let
|
|
497
|
-
typeof HTMLElement == "function" && (
|
|
498
|
-
constructor(t,
|
|
496
|
+
let Qt;
|
|
497
|
+
typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
|
498
|
+
constructor(t, n, r) {
|
|
499
499
|
super();
|
|
500
500
|
/** The Svelte component constructor */
|
|
501
|
-
|
|
501
|
+
I(this, "$$ctor");
|
|
502
502
|
/** Slots */
|
|
503
|
-
|
|
503
|
+
I(this, "$$s");
|
|
504
504
|
/** The Svelte component instance */
|
|
505
|
-
|
|
505
|
+
I(this, "$$c");
|
|
506
506
|
/** Whether or not the custom element is connected */
|
|
507
|
-
|
|
507
|
+
I(this, "$$cn", !1);
|
|
508
508
|
/** Component props data */
|
|
509
|
-
|
|
509
|
+
I(this, "$$d", {});
|
|
510
510
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
511
|
-
|
|
511
|
+
I(this, "$$r", !1);
|
|
512
512
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
513
|
-
|
|
513
|
+
I(this, "$$p_d", {});
|
|
514
514
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
515
|
-
|
|
515
|
+
I(this, "$$l", {});
|
|
516
516
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
517
|
-
|
|
518
|
-
this.$$ctor = t, this.$$s =
|
|
517
|
+
I(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
518
|
+
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
519
519
|
}
|
|
520
|
-
addEventListener(t,
|
|
521
|
-
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(
|
|
522
|
-
const
|
|
523
|
-
this.$$l_u.set(
|
|
520
|
+
addEventListener(t, n, r) {
|
|
521
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
|
|
522
|
+
const i = this.$$c.$on(t, n);
|
|
523
|
+
this.$$l_u.set(n, i);
|
|
524
524
|
}
|
|
525
|
-
super.addEventListener(t,
|
|
525
|
+
super.addEventListener(t, n, r);
|
|
526
526
|
}
|
|
527
|
-
removeEventListener(t,
|
|
528
|
-
if (super.removeEventListener(t,
|
|
529
|
-
const
|
|
530
|
-
|
|
527
|
+
removeEventListener(t, n, r) {
|
|
528
|
+
if (super.removeEventListener(t, n, r), this.$$c) {
|
|
529
|
+
const i = this.$$l_u.get(n);
|
|
530
|
+
i && (i(), this.$$l_u.delete(n));
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
connectedCallback() {
|
|
534
|
-
return
|
|
534
|
+
return pt(this, null, function* () {
|
|
535
535
|
if (this.$$cn = !0, !this.$$c) {
|
|
536
536
|
let t = function(s) {
|
|
537
537
|
return () => {
|
|
538
538
|
let a;
|
|
539
539
|
return {
|
|
540
540
|
c: function() {
|
|
541
|
-
a =
|
|
541
|
+
a = O("slot"), s !== "default" && H(a, "name", s);
|
|
542
542
|
},
|
|
543
543
|
/**
|
|
544
544
|
* @param {HTMLElement} target
|
|
@@ -555,9 +555,9 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
555
555
|
};
|
|
556
556
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
557
557
|
return;
|
|
558
|
-
const
|
|
558
|
+
const n = {}, r = zn(this);
|
|
559
559
|
for (const s of this.$$s)
|
|
560
|
-
s in
|
|
560
|
+
s in r && (n[s] = [t(s)]);
|
|
561
561
|
for (const s of this.attributes) {
|
|
562
562
|
const a = this.$$g_p(s.name);
|
|
563
563
|
a in this.$$d || (this.$$d[a] = ye(a, s.value, this.$$p_d, "toProp"));
|
|
@@ -566,14 +566,14 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
566
566
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
567
567
|
this.$$c = new this.$$ctor({
|
|
568
568
|
target: this.shadowRoot || this,
|
|
569
|
-
props:
|
|
570
|
-
$$slots:
|
|
569
|
+
props: dt(mt({}, this.$$d), {
|
|
570
|
+
$$slots: n,
|
|
571
571
|
$$scope: {
|
|
572
572
|
ctx: []
|
|
573
573
|
}
|
|
574
574
|
})
|
|
575
575
|
});
|
|
576
|
-
const
|
|
576
|
+
const i = () => {
|
|
577
577
|
this.$$r = !0;
|
|
578
578
|
for (const s in this.$$p_d)
|
|
579
579
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
@@ -587,7 +587,7 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
587
587
|
}
|
|
588
588
|
this.$$r = !1;
|
|
589
589
|
};
|
|
590
|
-
this.$$c.$$.after_update.push(
|
|
590
|
+
this.$$c.$$.after_update.push(i), i();
|
|
591
591
|
for (const s in this.$$l)
|
|
592
592
|
for (const a of this.$$l[s]) {
|
|
593
593
|
const o = this.$$c.$on(s, a);
|
|
@@ -599,9 +599,9 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
599
599
|
}
|
|
600
600
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
601
601
|
// and setting attributes through setAttribute etc, this is helpful
|
|
602
|
-
attributeChangedCallback(t,
|
|
603
|
-
var
|
|
604
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ye(t,
|
|
602
|
+
attributeChangedCallback(t, n, r) {
|
|
603
|
+
var i;
|
|
604
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ye(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
605
605
|
}
|
|
606
606
|
disconnectedCallback() {
|
|
607
607
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -610,17 +610,17 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
610
610
|
}
|
|
611
611
|
$$g_p(t) {
|
|
612
612
|
return Object.keys(this.$$p_d).find(
|
|
613
|
-
(
|
|
613
|
+
(n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
|
|
614
614
|
) || t;
|
|
615
615
|
}
|
|
616
616
|
});
|
|
617
|
-
function ye(e, t,
|
|
617
|
+
function ye(e, t, n, r) {
|
|
618
618
|
var s;
|
|
619
|
-
const
|
|
620
|
-
if (t =
|
|
619
|
+
const i = (s = n[e]) == null ? void 0 : s.type;
|
|
620
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
621
621
|
return t;
|
|
622
|
-
if (
|
|
623
|
-
switch (
|
|
622
|
+
if (r === "toAttribute")
|
|
623
|
+
switch (i) {
|
|
624
624
|
case "Object":
|
|
625
625
|
case "Array":
|
|
626
626
|
return t == null ? null : JSON.stringify(t);
|
|
@@ -632,7 +632,7 @@ function ye(e, t, r, i) {
|
|
|
632
632
|
return t;
|
|
633
633
|
}
|
|
634
634
|
else
|
|
635
|
-
switch (
|
|
635
|
+
switch (i) {
|
|
636
636
|
case "Object":
|
|
637
637
|
case "Array":
|
|
638
638
|
return t && JSON.parse(t);
|
|
@@ -644,10 +644,10 @@ function ye(e, t, r, i) {
|
|
|
644
644
|
return t;
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
|
-
function
|
|
648
|
-
let a = class extends
|
|
647
|
+
function cr(e, t, n, r, i, s) {
|
|
648
|
+
let a = class extends Qt {
|
|
649
649
|
constructor() {
|
|
650
|
-
super(e,
|
|
650
|
+
super(e, n, i), this.$$p_d = t;
|
|
651
651
|
}
|
|
652
652
|
static get observedAttributes() {
|
|
653
653
|
return Object.keys(t).map(
|
|
@@ -665,7 +665,7 @@ function pi(e, t, r, i, n, s) {
|
|
|
665
665
|
u = ye(o, u, t), this.$$d[o] = u, (l = this.$$c) == null || l.$set({ [o]: u });
|
|
666
666
|
}
|
|
667
667
|
});
|
|
668
|
-
}),
|
|
668
|
+
}), r.forEach((o) => {
|
|
669
669
|
Object.defineProperty(a.prototype, o, {
|
|
670
670
|
get() {
|
|
671
671
|
var u;
|
|
@@ -675,7 +675,7 @@ function pi(e, t, r, i, n, s) {
|
|
|
675
675
|
}), e.element = /** @type {any} */
|
|
676
676
|
a, a;
|
|
677
677
|
}
|
|
678
|
-
class
|
|
678
|
+
class fr {
|
|
679
679
|
constructor() {
|
|
680
680
|
/**
|
|
681
681
|
* ### PRIVATE API
|
|
@@ -684,7 +684,7 @@ class di {
|
|
|
684
684
|
*
|
|
685
685
|
* @type {any}
|
|
686
686
|
*/
|
|
687
|
-
|
|
687
|
+
I(this, "$$");
|
|
688
688
|
/**
|
|
689
689
|
* ### PRIVATE API
|
|
690
690
|
*
|
|
@@ -692,11 +692,11 @@ class di {
|
|
|
692
692
|
*
|
|
693
693
|
* @type {any}
|
|
694
694
|
*/
|
|
695
|
-
|
|
695
|
+
I(this, "$$set");
|
|
696
696
|
}
|
|
697
697
|
/** @returns {void} */
|
|
698
698
|
$destroy() {
|
|
699
|
-
|
|
699
|
+
ur(this, 1), this.$destroy = M;
|
|
700
700
|
}
|
|
701
701
|
/**
|
|
702
702
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -704,13 +704,13 @@ class di {
|
|
|
704
704
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
705
705
|
* @returns {() => void}
|
|
706
706
|
*/
|
|
707
|
-
$on(t,
|
|
708
|
-
if (!He(
|
|
707
|
+
$on(t, n) {
|
|
708
|
+
if (!He(n))
|
|
709
709
|
return M;
|
|
710
|
-
const
|
|
711
|
-
return
|
|
712
|
-
const
|
|
713
|
-
|
|
710
|
+
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
711
|
+
return r.push(n), () => {
|
|
712
|
+
const i = r.indexOf(n);
|
|
713
|
+
i !== -1 && r.splice(i, 1);
|
|
714
714
|
};
|
|
715
715
|
}
|
|
716
716
|
/**
|
|
@@ -718,11 +718,11 @@ class di {
|
|
|
718
718
|
* @returns {void}
|
|
719
719
|
*/
|
|
720
720
|
$set(t) {
|
|
721
|
-
this.$$set && !
|
|
721
|
+
this.$$set && !Dn(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 mr = "4";
|
|
725
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(mr);
|
|
726
726
|
/*! *****************************************************************************
|
|
727
727
|
Copyright (c) Microsoft Corporation.
|
|
728
728
|
|
|
@@ -737,67 +737,67 @@ 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
|
|
742
|
-
|
|
743
|
-
} || function(
|
|
744
|
-
for (var
|
|
745
|
-
Object.prototype.hasOwnProperty.call(
|
|
746
|
-
},
|
|
740
|
+
var Xe = function(e, t) {
|
|
741
|
+
return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
742
|
+
n.__proto__ = r;
|
|
743
|
+
} || function(n, r) {
|
|
744
|
+
for (var i in r)
|
|
745
|
+
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
746
|
+
}, Xe(e, t);
|
|
747
747
|
};
|
|
748
748
|
function D(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
|
-
|
|
752
|
-
function
|
|
751
|
+
Xe(e, t);
|
|
752
|
+
function n() {
|
|
753
753
|
this.constructor = e;
|
|
754
754
|
}
|
|
755
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
755
|
+
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
756
756
|
}
|
|
757
757
|
var x = function() {
|
|
758
758
|
return x = Object.assign || function(t) {
|
|
759
|
-
for (var
|
|
760
|
-
|
|
761
|
-
for (var s in
|
|
762
|
-
Object.prototype.hasOwnProperty.call(
|
|
759
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
760
|
+
n = arguments[r];
|
|
761
|
+
for (var s in n)
|
|
762
|
+
Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
|
|
763
763
|
}
|
|
764
764
|
return t;
|
|
765
765
|
}, x.apply(this, arguments);
|
|
766
766
|
};
|
|
767
|
-
function
|
|
768
|
-
var
|
|
769
|
-
for (var
|
|
770
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
767
|
+
function dr(e, t) {
|
|
768
|
+
var n = {};
|
|
769
|
+
for (var r in e)
|
|
770
|
+
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
771
771
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
772
|
-
for (var
|
|
773
|
-
t.indexOf(i
|
|
774
|
-
return
|
|
775
|
-
}
|
|
776
|
-
function
|
|
777
|
-
var t = typeof Symbol == "function" && Symbol.iterator,
|
|
778
|
-
if (
|
|
779
|
-
return
|
|
772
|
+
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
773
|
+
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
774
|
+
return n;
|
|
775
|
+
}
|
|
776
|
+
function We(e) {
|
|
777
|
+
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
778
|
+
if (n)
|
|
779
|
+
return n.call(e);
|
|
780
780
|
if (e && typeof e.length == "number")
|
|
781
781
|
return {
|
|
782
782
|
next: function() {
|
|
783
|
-
return e &&
|
|
783
|
+
return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
|
|
784
784
|
}
|
|
785
785
|
};
|
|
786
786
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
787
787
|
}
|
|
788
|
-
function
|
|
789
|
-
var
|
|
790
|
-
if (!
|
|
788
|
+
function ze(e, t) {
|
|
789
|
+
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
790
|
+
if (!n)
|
|
791
791
|
return e;
|
|
792
|
-
var
|
|
792
|
+
var r = n.call(e), i, s = [], a;
|
|
793
793
|
try {
|
|
794
|
-
for (; (t === void 0 || t-- > 0) && !(
|
|
795
|
-
s.push(
|
|
794
|
+
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
|
|
795
|
+
s.push(i.value);
|
|
796
796
|
} catch (o) {
|
|
797
797
|
a = { error: o };
|
|
798
798
|
} finally {
|
|
799
799
|
try {
|
|
800
|
-
|
|
800
|
+
i && !i.done && (n = r.return) && n.call(r);
|
|
801
801
|
} finally {
|
|
802
802
|
if (a)
|
|
803
803
|
throw a.error;
|
|
@@ -805,49 +805,49 @@ function Qe(e, t) {
|
|
|
805
805
|
}
|
|
806
806
|
return s;
|
|
807
807
|
}
|
|
808
|
-
function
|
|
809
|
-
if (
|
|
810
|
-
for (var
|
|
811
|
-
(s || !(
|
|
808
|
+
function Y(e, t, n) {
|
|
809
|
+
if (n || arguments.length === 2)
|
|
810
|
+
for (var r = 0, i = t.length, s; r < i; r++)
|
|
811
|
+
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
812
812
|
return e.concat(s || t);
|
|
813
813
|
}
|
|
814
814
|
function G(e) {
|
|
815
815
|
return typeof e == "function";
|
|
816
816
|
}
|
|
817
|
-
function
|
|
818
|
-
var t = function(
|
|
819
|
-
Error.call(
|
|
820
|
-
},
|
|
821
|
-
return
|
|
822
|
-
}
|
|
823
|
-
var
|
|
824
|
-
return function(
|
|
825
|
-
e(this), this.message =
|
|
826
|
-
` +
|
|
827
|
-
return
|
|
817
|
+
function qt(e) {
|
|
818
|
+
var t = function(r) {
|
|
819
|
+
Error.call(r), r.stack = new Error().stack;
|
|
820
|
+
}, n = e(t);
|
|
821
|
+
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
822
|
+
}
|
|
823
|
+
var Ge = qt(function(e) {
|
|
824
|
+
return function(n) {
|
|
825
|
+
e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
826
|
+
` + n.map(function(r, i) {
|
|
827
|
+
return i + 1 + ") " + r.toString();
|
|
828
828
|
}).join(`
|
|
829
|
-
`) : "", this.name = "UnsubscriptionError", this.errors =
|
|
829
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = n;
|
|
830
830
|
};
|
|
831
831
|
});
|
|
832
|
-
function
|
|
832
|
+
function Ze(e, t) {
|
|
833
833
|
if (e) {
|
|
834
|
-
var
|
|
835
|
-
0 <=
|
|
834
|
+
var n = e.indexOf(t);
|
|
835
|
+
0 <= n && e.splice(n, 1);
|
|
836
836
|
}
|
|
837
837
|
}
|
|
838
|
-
var
|
|
838
|
+
var Pe = function() {
|
|
839
839
|
function e(t) {
|
|
840
840
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
841
841
|
}
|
|
842
842
|
return e.prototype.unsubscribe = function() {
|
|
843
|
-
var t, r, i,
|
|
843
|
+
var t, n, r, i, s;
|
|
844
844
|
if (!this.closed) {
|
|
845
845
|
this.closed = !0;
|
|
846
846
|
var a = this._parentage;
|
|
847
847
|
if (a)
|
|
848
848
|
if (this._parentage = null, Array.isArray(a))
|
|
849
849
|
try {
|
|
850
|
-
for (var o =
|
|
850
|
+
for (var o = We(a), u = o.next(); !u.done; u = o.next()) {
|
|
851
851
|
var l = u.value;
|
|
852
852
|
l.remove(this);
|
|
853
853
|
}
|
|
@@ -855,7 +855,7 @@ var Ae = function() {
|
|
|
855
855
|
t = { error: g };
|
|
856
856
|
} finally {
|
|
857
857
|
try {
|
|
858
|
-
u && !u.done && (
|
|
858
|
+
u && !u.done && (n = o.return) && n.call(o);
|
|
859
859
|
} finally {
|
|
860
860
|
if (t)
|
|
861
861
|
throw t.error;
|
|
@@ -868,118 +868,118 @@ var Ae = function() {
|
|
|
868
868
|
try {
|
|
869
869
|
h();
|
|
870
870
|
} catch (g) {
|
|
871
|
-
s = g instanceof
|
|
871
|
+
s = g instanceof Ge ? g.errors : [g];
|
|
872
872
|
}
|
|
873
873
|
var f = this._finalizers;
|
|
874
874
|
if (f) {
|
|
875
875
|
this._finalizers = null;
|
|
876
876
|
try {
|
|
877
|
-
for (var c =
|
|
878
|
-
var
|
|
877
|
+
for (var c = We(f), b = c.next(); !b.done; b = c.next()) {
|
|
878
|
+
var d = b.value;
|
|
879
879
|
try {
|
|
880
|
-
|
|
880
|
+
_t(d);
|
|
881
881
|
} catch (g) {
|
|
882
|
-
s = s != null ? s : [], g instanceof
|
|
882
|
+
s = s != null ? s : [], g instanceof Ge ? s = Y(Y([], ze(s)), ze(g.errors)) : s.push(g);
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
885
|
} catch (g) {
|
|
886
|
-
|
|
886
|
+
r = { error: g };
|
|
887
887
|
} finally {
|
|
888
888
|
try {
|
|
889
|
-
b && !b.done && (
|
|
889
|
+
b && !b.done && (i = c.return) && i.call(c);
|
|
890
890
|
} finally {
|
|
891
|
-
if (
|
|
892
|
-
throw
|
|
891
|
+
if (r)
|
|
892
|
+
throw r.error;
|
|
893
893
|
}
|
|
894
894
|
}
|
|
895
895
|
}
|
|
896
896
|
if (s)
|
|
897
|
-
throw new
|
|
897
|
+
throw new Ge(s);
|
|
898
898
|
}
|
|
899
899
|
}, e.prototype.add = function(t) {
|
|
900
|
-
var
|
|
900
|
+
var n;
|
|
901
901
|
if (t && t !== this)
|
|
902
902
|
if (this.closed)
|
|
903
|
-
|
|
903
|
+
_t(t);
|
|
904
904
|
else {
|
|
905
905
|
if (t instanceof e) {
|
|
906
906
|
if (t.closed || t._hasParent(this))
|
|
907
907
|
return;
|
|
908
908
|
t._addParent(this);
|
|
909
909
|
}
|
|
910
|
-
(this._finalizers = (
|
|
910
|
+
(this._finalizers = (n = this._finalizers) !== null && n !== void 0 ? n : []).push(t);
|
|
911
911
|
}
|
|
912
912
|
}, e.prototype._hasParent = function(t) {
|
|
913
|
-
var
|
|
914
|
-
return
|
|
913
|
+
var n = this._parentage;
|
|
914
|
+
return n === t || Array.isArray(n) && n.includes(t);
|
|
915
915
|
}, e.prototype._addParent = function(t) {
|
|
916
|
-
var
|
|
917
|
-
this._parentage = Array.isArray(
|
|
916
|
+
var n = this._parentage;
|
|
917
|
+
this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
|
|
918
918
|
}, e.prototype._removeParent = function(t) {
|
|
919
|
-
var
|
|
920
|
-
|
|
919
|
+
var n = this._parentage;
|
|
920
|
+
n === t ? this._parentage = null : Array.isArray(n) && Ze(n, t);
|
|
921
921
|
}, e.prototype.remove = function(t) {
|
|
922
|
-
var
|
|
923
|
-
|
|
922
|
+
var n = this._finalizers;
|
|
923
|
+
n && Ze(n, t), t instanceof e && t._removeParent(this);
|
|
924
924
|
}, e.EMPTY = function() {
|
|
925
925
|
var t = new e();
|
|
926
926
|
return t.closed = !0, t;
|
|
927
927
|
}(), e;
|
|
928
|
-
}(),
|
|
929
|
-
function
|
|
930
|
-
return e instanceof
|
|
928
|
+
}(), Jt = Pe.EMPTY;
|
|
929
|
+
function Yt(e) {
|
|
930
|
+
return e instanceof Pe || e && "closed" in e && G(e.remove) && G(e.add) && G(e.unsubscribe);
|
|
931
931
|
}
|
|
932
|
-
function
|
|
932
|
+
function _t(e) {
|
|
933
933
|
G(e) ? e() : e.unsubscribe();
|
|
934
934
|
}
|
|
935
|
-
var
|
|
935
|
+
var pr = {
|
|
936
936
|
onUnhandledError: null,
|
|
937
937
|
onStoppedNotification: null,
|
|
938
938
|
Promise: void 0,
|
|
939
939
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
940
940
|
useDeprecatedNextContext: !1
|
|
941
|
-
},
|
|
941
|
+
}, gr = {
|
|
942
942
|
setTimeout: function(e, t) {
|
|
943
|
-
for (var
|
|
944
|
-
r
|
|
945
|
-
return setTimeout.apply(void 0,
|
|
943
|
+
for (var n = [], r = 2; r < arguments.length; r++)
|
|
944
|
+
n[r - 2] = arguments[r];
|
|
945
|
+
return setTimeout.apply(void 0, Y([e, t], ze(n)));
|
|
946
946
|
},
|
|
947
947
|
clearTimeout: function(e) {
|
|
948
948
|
return clearTimeout(e);
|
|
949
949
|
},
|
|
950
950
|
delegate: void 0
|
|
951
951
|
};
|
|
952
|
-
function
|
|
953
|
-
|
|
952
|
+
function br(e) {
|
|
953
|
+
gr.setTimeout(function() {
|
|
954
954
|
throw e;
|
|
955
955
|
});
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function vt() {
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function _e(e) {
|
|
960
960
|
e();
|
|
961
961
|
}
|
|
962
|
-
var
|
|
962
|
+
var Kt = function(e) {
|
|
963
963
|
D(t, e);
|
|
964
|
-
function t(
|
|
965
|
-
var
|
|
966
|
-
return
|
|
964
|
+
function t(n) {
|
|
965
|
+
var r = e.call(this) || this;
|
|
966
|
+
return r.isStopped = !1, n ? (r.destination = n, Yt(n) && n.add(r)) : r.destination = vr, r;
|
|
967
967
|
}
|
|
968
|
-
return t.create = function(r, i
|
|
969
|
-
return new
|
|
970
|
-
}, t.prototype.next = function(
|
|
971
|
-
this.isStopped || this._next(
|
|
972
|
-
}, t.prototype.error = function(
|
|
973
|
-
this.isStopped || (this.isStopped = !0, this._error(
|
|
968
|
+
return t.create = function(n, r, i) {
|
|
969
|
+
return new Qe(n, r, i);
|
|
970
|
+
}, t.prototype.next = function(n) {
|
|
971
|
+
this.isStopped || this._next(n);
|
|
972
|
+
}, t.prototype.error = function(n) {
|
|
973
|
+
this.isStopped || (this.isStopped = !0, this._error(n));
|
|
974
974
|
}, t.prototype.complete = function() {
|
|
975
975
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
976
976
|
}, t.prototype.unsubscribe = function() {
|
|
977
977
|
this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
|
|
978
|
-
}, t.prototype._next = function(
|
|
979
|
-
this.destination.next(
|
|
980
|
-
}, t.prototype._error = function(
|
|
978
|
+
}, t.prototype._next = function(n) {
|
|
979
|
+
this.destination.next(n);
|
|
980
|
+
}, t.prototype._error = function(n) {
|
|
981
981
|
try {
|
|
982
|
-
this.destination.error(
|
|
982
|
+
this.destination.error(n);
|
|
983
983
|
} finally {
|
|
984
984
|
this.unsubscribe();
|
|
985
985
|
}
|
|
@@ -990,112 +990,96 @@ var ir = function(e) {
|
|
|
990
990
|
this.unsubscribe();
|
|
991
991
|
}
|
|
992
992
|
}, t;
|
|
993
|
-
}(
|
|
994
|
-
function Ue(e, t) {
|
|
995
|
-
return _i.call(e, t);
|
|
996
|
-
}
|
|
997
|
-
var Ei = function() {
|
|
993
|
+
}(Pe), yr = function() {
|
|
998
994
|
function e(t) {
|
|
999
995
|
this.partialObserver = t;
|
|
1000
996
|
}
|
|
1001
997
|
return e.prototype.next = function(t) {
|
|
1002
|
-
var
|
|
1003
|
-
if (
|
|
998
|
+
var n = this.partialObserver;
|
|
999
|
+
if (n.next)
|
|
1004
1000
|
try {
|
|
1005
|
-
|
|
1006
|
-
} catch (
|
|
1007
|
-
|
|
1001
|
+
n.next(t);
|
|
1002
|
+
} catch (r) {
|
|
1003
|
+
pe(r);
|
|
1008
1004
|
}
|
|
1009
1005
|
}, e.prototype.error = function(t) {
|
|
1010
|
-
var
|
|
1011
|
-
if (
|
|
1006
|
+
var n = this.partialObserver;
|
|
1007
|
+
if (n.error)
|
|
1012
1008
|
try {
|
|
1013
|
-
|
|
1014
|
-
} catch (
|
|
1015
|
-
|
|
1009
|
+
n.error(t);
|
|
1010
|
+
} catch (r) {
|
|
1011
|
+
pe(r);
|
|
1016
1012
|
}
|
|
1017
1013
|
else
|
|
1018
|
-
|
|
1014
|
+
pe(t);
|
|
1019
1015
|
}, e.prototype.complete = function() {
|
|
1020
1016
|
var t = this.partialObserver;
|
|
1021
1017
|
if (t.complete)
|
|
1022
1018
|
try {
|
|
1023
1019
|
t.complete();
|
|
1024
|
-
} catch (
|
|
1025
|
-
|
|
1020
|
+
} catch (n) {
|
|
1021
|
+
pe(n);
|
|
1026
1022
|
}
|
|
1027
1023
|
}, e;
|
|
1028
|
-
}(),
|
|
1024
|
+
}(), Qe = function(e) {
|
|
1029
1025
|
D(t, e);
|
|
1030
|
-
function t(r, i
|
|
1026
|
+
function t(n, r, i) {
|
|
1031
1027
|
var s = e.call(this) || this, a;
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
};
|
|
1038
|
-
else {
|
|
1039
|
-
var o;
|
|
1040
|
-
s && rr.useDeprecatedNextContext ? (o = Object.create(r), o.unsubscribe = function() {
|
|
1041
|
-
return s.unsubscribe();
|
|
1042
|
-
}, a = {
|
|
1043
|
-
next: r.next && Ue(r.next, o),
|
|
1044
|
-
error: r.error && Ue(r.error, o),
|
|
1045
|
-
complete: r.complete && Ue(r.complete, o)
|
|
1046
|
-
}) : a = r;
|
|
1047
|
-
}
|
|
1048
|
-
return s.destination = new Ei(a), s;
|
|
1028
|
+
return G(n) || !n ? a = {
|
|
1029
|
+
next: n != null ? n : void 0,
|
|
1030
|
+
error: r != null ? r : void 0,
|
|
1031
|
+
complete: i != null ? i : void 0
|
|
1032
|
+
} : a = n, s.destination = new yr(a), s;
|
|
1049
1033
|
}
|
|
1050
1034
|
return t;
|
|
1051
|
-
}(
|
|
1052
|
-
function
|
|
1053
|
-
|
|
1035
|
+
}(Kt);
|
|
1036
|
+
function pe(e) {
|
|
1037
|
+
br(e);
|
|
1054
1038
|
}
|
|
1055
|
-
function
|
|
1039
|
+
function _r(e) {
|
|
1056
1040
|
throw e;
|
|
1057
1041
|
}
|
|
1058
|
-
var
|
|
1042
|
+
var vr = {
|
|
1059
1043
|
closed: !0,
|
|
1060
|
-
next:
|
|
1061
|
-
error:
|
|
1062
|
-
complete:
|
|
1063
|
-
},
|
|
1044
|
+
next: vt,
|
|
1045
|
+
error: _r,
|
|
1046
|
+
complete: vt
|
|
1047
|
+
}, Er = function() {
|
|
1064
1048
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1065
1049
|
}();
|
|
1066
|
-
function
|
|
1050
|
+
function xr(e) {
|
|
1067
1051
|
return e;
|
|
1068
1052
|
}
|
|
1069
|
-
function
|
|
1070
|
-
return e.length === 0 ?
|
|
1071
|
-
return e.reduce(function(
|
|
1072
|
-
return
|
|
1073
|
-
},
|
|
1053
|
+
function wr(e) {
|
|
1054
|
+
return e.length === 0 ? xr : e.length === 1 ? e[0] : function(n) {
|
|
1055
|
+
return e.reduce(function(r, i) {
|
|
1056
|
+
return i(r);
|
|
1057
|
+
}, n);
|
|
1074
1058
|
};
|
|
1075
1059
|
}
|
|
1076
|
-
var
|
|
1060
|
+
var Et = function() {
|
|
1077
1061
|
function e(t) {
|
|
1078
1062
|
t && (this._subscribe = t);
|
|
1079
1063
|
}
|
|
1080
1064
|
return e.prototype.lift = function(t) {
|
|
1081
|
-
var
|
|
1082
|
-
return
|
|
1083
|
-
}, e.prototype.subscribe = function(t,
|
|
1084
|
-
var
|
|
1085
|
-
return
|
|
1086
|
-
var a =
|
|
1087
|
-
s.add(o ? o.call(s, u) : u ?
|
|
1065
|
+
var n = new e();
|
|
1066
|
+
return n.source = this, n.operator = t, n;
|
|
1067
|
+
}, e.prototype.subscribe = function(t, n, r) {
|
|
1068
|
+
var i = this, s = Tr(t) ? t : new Qe(t, n, r);
|
|
1069
|
+
return _e(function() {
|
|
1070
|
+
var a = i, o = a.operator, u = a.source;
|
|
1071
|
+
s.add(o ? o.call(s, u) : u ? i._subscribe(s) : i._trySubscribe(s));
|
|
1088
1072
|
}), s;
|
|
1089
1073
|
}, e.prototype._trySubscribe = function(t) {
|
|
1090
1074
|
try {
|
|
1091
1075
|
return this._subscribe(t);
|
|
1092
|
-
} catch (
|
|
1093
|
-
t.error(
|
|
1076
|
+
} catch (n) {
|
|
1077
|
+
t.error(n);
|
|
1094
1078
|
}
|
|
1095
|
-
}, e.prototype.forEach = function(t,
|
|
1096
|
-
var
|
|
1097
|
-
return
|
|
1098
|
-
var a = new
|
|
1079
|
+
}, e.prototype.forEach = function(t, n) {
|
|
1080
|
+
var r = this;
|
|
1081
|
+
return n = xt(n), new n(function(i, s) {
|
|
1082
|
+
var a = new Qe({
|
|
1099
1083
|
next: function(o) {
|
|
1100
1084
|
try {
|
|
1101
1085
|
t(o);
|
|
@@ -1104,221 +1088,221 @@ var Lt = function() {
|
|
|
1104
1088
|
}
|
|
1105
1089
|
},
|
|
1106
1090
|
error: s,
|
|
1107
|
-
complete:
|
|
1091
|
+
complete: i
|
|
1108
1092
|
});
|
|
1109
|
-
|
|
1093
|
+
r.subscribe(a);
|
|
1110
1094
|
});
|
|
1111
1095
|
}, e.prototype._subscribe = function(t) {
|
|
1112
|
-
var
|
|
1113
|
-
return (
|
|
1114
|
-
}, e.prototype[
|
|
1096
|
+
var n;
|
|
1097
|
+
return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
|
|
1098
|
+
}, e.prototype[Er] = function() {
|
|
1115
1099
|
return this;
|
|
1116
1100
|
}, e.prototype.pipe = function() {
|
|
1117
|
-
for (var t = [],
|
|
1118
|
-
t[
|
|
1119
|
-
return
|
|
1101
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
1102
|
+
t[n] = arguments[n];
|
|
1103
|
+
return wr(t)(this);
|
|
1120
1104
|
}, e.prototype.toPromise = function(t) {
|
|
1121
|
-
var
|
|
1122
|
-
return t =
|
|
1105
|
+
var n = this;
|
|
1106
|
+
return t = xt(t), new t(function(r, i) {
|
|
1123
1107
|
var s;
|
|
1124
|
-
|
|
1108
|
+
n.subscribe(function(a) {
|
|
1125
1109
|
return s = a;
|
|
1126
1110
|
}, function(a) {
|
|
1127
|
-
return
|
|
1111
|
+
return i(a);
|
|
1128
1112
|
}, function() {
|
|
1129
|
-
return
|
|
1113
|
+
return r(s);
|
|
1130
1114
|
});
|
|
1131
1115
|
});
|
|
1132
1116
|
}, e.create = function(t) {
|
|
1133
1117
|
return new e(t);
|
|
1134
1118
|
}, e;
|
|
1135
1119
|
}();
|
|
1136
|
-
function
|
|
1120
|
+
function xt(e) {
|
|
1137
1121
|
var t;
|
|
1138
|
-
return (t = e != null ? e :
|
|
1122
|
+
return (t = e != null ? e : pr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1139
1123
|
}
|
|
1140
|
-
function
|
|
1124
|
+
function Lr(e) {
|
|
1141
1125
|
return e && G(e.next) && G(e.error) && G(e.complete);
|
|
1142
1126
|
}
|
|
1143
|
-
function
|
|
1144
|
-
return e && e instanceof
|
|
1127
|
+
function Tr(e) {
|
|
1128
|
+
return e && e instanceof Kt || Lr(e) && Yt(e);
|
|
1145
1129
|
}
|
|
1146
|
-
var
|
|
1130
|
+
var Sr = qt(function(e) {
|
|
1147
1131
|
return function() {
|
|
1148
1132
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1149
1133
|
};
|
|
1150
|
-
}),
|
|
1134
|
+
}), en = function(e) {
|
|
1151
1135
|
D(t, e);
|
|
1152
1136
|
function t() {
|
|
1153
|
-
var
|
|
1154
|
-
return
|
|
1137
|
+
var n = e.call(this) || this;
|
|
1138
|
+
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
|
1155
1139
|
}
|
|
1156
|
-
return t.prototype.lift = function(
|
|
1157
|
-
var
|
|
1158
|
-
return
|
|
1140
|
+
return t.prototype.lift = function(n) {
|
|
1141
|
+
var r = new wt(this, this);
|
|
1142
|
+
return r.operator = n, r;
|
|
1159
1143
|
}, t.prototype._throwIfClosed = function() {
|
|
1160
1144
|
if (this.closed)
|
|
1161
|
-
throw new
|
|
1162
|
-
}, t.prototype.next = function(
|
|
1163
|
-
var
|
|
1164
|
-
|
|
1165
|
-
var
|
|
1166
|
-
if (
|
|
1167
|
-
|
|
1145
|
+
throw new Sr();
|
|
1146
|
+
}, t.prototype.next = function(n) {
|
|
1147
|
+
var r = this;
|
|
1148
|
+
_e(function() {
|
|
1149
|
+
var i, s;
|
|
1150
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
1151
|
+
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
1168
1152
|
try {
|
|
1169
|
-
for (var a =
|
|
1153
|
+
for (var a = We(r.currentObservers), o = a.next(); !o.done; o = a.next()) {
|
|
1170
1154
|
var u = o.value;
|
|
1171
|
-
u.next(
|
|
1155
|
+
u.next(n);
|
|
1172
1156
|
}
|
|
1173
1157
|
} catch (l) {
|
|
1174
|
-
|
|
1158
|
+
i = { error: l };
|
|
1175
1159
|
} finally {
|
|
1176
1160
|
try {
|
|
1177
1161
|
o && !o.done && (s = a.return) && s.call(a);
|
|
1178
1162
|
} finally {
|
|
1179
|
-
if (
|
|
1180
|
-
throw
|
|
1163
|
+
if (i)
|
|
1164
|
+
throw i.error;
|
|
1181
1165
|
}
|
|
1182
1166
|
}
|
|
1183
1167
|
}
|
|
1184
1168
|
});
|
|
1185
|
-
}, t.prototype.error = function(
|
|
1186
|
-
var i = this;
|
|
1187
|
-
ve(function() {
|
|
1188
|
-
if (i._throwIfClosed(), !i.isStopped) {
|
|
1189
|
-
i.hasError = i.isStopped = !0, i.thrownError = r;
|
|
1190
|
-
for (var n = i.observers; n.length; )
|
|
1191
|
-
n.shift().error(r);
|
|
1192
|
-
}
|
|
1193
|
-
});
|
|
1194
|
-
}, t.prototype.complete = function() {
|
|
1169
|
+
}, t.prototype.error = function(n) {
|
|
1195
1170
|
var r = this;
|
|
1196
|
-
|
|
1171
|
+
_e(function() {
|
|
1197
1172
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
1198
|
-
r.isStopped = !0;
|
|
1173
|
+
r.hasError = r.isStopped = !0, r.thrownError = n;
|
|
1199
1174
|
for (var i = r.observers; i.length; )
|
|
1200
|
-
i.shift().
|
|
1175
|
+
i.shift().error(n);
|
|
1176
|
+
}
|
|
1177
|
+
});
|
|
1178
|
+
}, t.prototype.complete = function() {
|
|
1179
|
+
var n = this;
|
|
1180
|
+
_e(function() {
|
|
1181
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
1182
|
+
n.isStopped = !0;
|
|
1183
|
+
for (var r = n.observers; r.length; )
|
|
1184
|
+
r.shift().complete();
|
|
1201
1185
|
}
|
|
1202
1186
|
});
|
|
1203
1187
|
}, t.prototype.unsubscribe = function() {
|
|
1204
1188
|
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
1205
1189
|
}, Object.defineProperty(t.prototype, "observed", {
|
|
1206
1190
|
get: function() {
|
|
1207
|
-
var
|
|
1208
|
-
return ((
|
|
1191
|
+
var n;
|
|
1192
|
+
return ((n = this.observers) === null || n === void 0 ? void 0 : n.length) > 0;
|
|
1209
1193
|
},
|
|
1210
1194
|
enumerable: !1,
|
|
1211
1195
|
configurable: !0
|
|
1212
|
-
}), t.prototype._trySubscribe = function(
|
|
1213
|
-
return this._throwIfClosed(), e.prototype._trySubscribe.call(this,
|
|
1214
|
-
}, t.prototype._subscribe = function(
|
|
1215
|
-
return this._throwIfClosed(), this._checkFinalizedStatuses(
|
|
1216
|
-
}, t.prototype._innerSubscribe = function(
|
|
1217
|
-
var
|
|
1218
|
-
return s || a ?
|
|
1219
|
-
|
|
1196
|
+
}), t.prototype._trySubscribe = function(n) {
|
|
1197
|
+
return this._throwIfClosed(), e.prototype._trySubscribe.call(this, n);
|
|
1198
|
+
}, t.prototype._subscribe = function(n) {
|
|
1199
|
+
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
1200
|
+
}, t.prototype._innerSubscribe = function(n) {
|
|
1201
|
+
var r = this, i = this, s = i.hasError, a = i.isStopped, o = i.observers;
|
|
1202
|
+
return s || a ? Jt : (this.currentObservers = null, o.push(n), new Pe(function() {
|
|
1203
|
+
r.currentObservers = null, Ze(o, n);
|
|
1220
1204
|
}));
|
|
1221
|
-
}, t.prototype._checkFinalizedStatuses = function(
|
|
1222
|
-
var
|
|
1223
|
-
|
|
1205
|
+
}, t.prototype._checkFinalizedStatuses = function(n) {
|
|
1206
|
+
var r = this, i = r.hasError, s = r.thrownError, a = r.isStopped;
|
|
1207
|
+
i ? n.error(s) : a && n.complete();
|
|
1224
1208
|
}, t.prototype.asObservable = function() {
|
|
1225
|
-
var
|
|
1226
|
-
return
|
|
1227
|
-
}, t.create = function(
|
|
1228
|
-
return new
|
|
1209
|
+
var n = new Et();
|
|
1210
|
+
return n.source = this, n;
|
|
1211
|
+
}, t.create = function(n, r) {
|
|
1212
|
+
return new wt(n, r);
|
|
1229
1213
|
}, t;
|
|
1230
|
-
}(
|
|
1214
|
+
}(Et), wt = function(e) {
|
|
1231
1215
|
D(t, e);
|
|
1232
|
-
function t(
|
|
1233
|
-
var
|
|
1234
|
-
return
|
|
1216
|
+
function t(n, r) {
|
|
1217
|
+
var i = e.call(this) || this;
|
|
1218
|
+
return i.destination = n, i.source = r, i;
|
|
1235
1219
|
}
|
|
1236
|
-
return t.prototype.next = function(
|
|
1237
|
-
var
|
|
1238
|
-
(
|
|
1239
|
-
}, t.prototype.error = function(
|
|
1240
|
-
var
|
|
1241
|
-
(
|
|
1220
|
+
return t.prototype.next = function(n) {
|
|
1221
|
+
var r, i;
|
|
1222
|
+
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || i === void 0 || i.call(r, n);
|
|
1223
|
+
}, t.prototype.error = function(n) {
|
|
1224
|
+
var r, i;
|
|
1225
|
+
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || i === void 0 || i.call(r, n);
|
|
1242
1226
|
}, t.prototype.complete = function() {
|
|
1227
|
+
var n, r;
|
|
1228
|
+
(r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
|
|
1229
|
+
}, t.prototype._subscribe = function(n) {
|
|
1243
1230
|
var r, i;
|
|
1244
|
-
(i = (r = this.
|
|
1245
|
-
}, t.prototype._subscribe = function(r) {
|
|
1246
|
-
var i, n;
|
|
1247
|
-
return (n = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(r)) !== null && n !== void 0 ? n : er;
|
|
1231
|
+
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : Jt;
|
|
1248
1232
|
}, t;
|
|
1249
|
-
}(
|
|
1233
|
+
}(en), tn = {
|
|
1250
1234
|
now: function() {
|
|
1251
|
-
return (
|
|
1235
|
+
return (tn.delegate || Date).now();
|
|
1252
1236
|
},
|
|
1253
1237
|
delegate: void 0
|
|
1254
|
-
},
|
|
1238
|
+
}, Hr = function(e) {
|
|
1255
1239
|
D(t, e);
|
|
1256
|
-
function t(r, i
|
|
1257
|
-
|
|
1240
|
+
function t(n, r, i) {
|
|
1241
|
+
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = tn);
|
|
1258
1242
|
var s = e.call(this) || this;
|
|
1259
|
-
return s._bufferSize =
|
|
1243
|
+
return s._bufferSize = n, s._windowTime = r, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = r === 1 / 0, s._bufferSize = Math.max(1, n), s._windowTime = Math.max(1, r), s;
|
|
1260
1244
|
}
|
|
1261
|
-
return t.prototype.next = function(
|
|
1262
|
-
var
|
|
1263
|
-
|
|
1264
|
-
}, t.prototype._subscribe = function(
|
|
1245
|
+
return t.prototype.next = function(n) {
|
|
1246
|
+
var r = this, i = r.isStopped, s = r._buffer, a = r._infiniteTimeWindow, o = r._timestampProvider, u = r._windowTime;
|
|
1247
|
+
i || (s.push(n), !a && s.push(o.now() + u)), this._trimBuffer(), e.prototype.next.call(this, n);
|
|
1248
|
+
}, t.prototype._subscribe = function(n) {
|
|
1265
1249
|
this._throwIfClosed(), this._trimBuffer();
|
|
1266
|
-
for (var
|
|
1267
|
-
|
|
1268
|
-
return this._checkFinalizedStatuses(
|
|
1250
|
+
for (var r = this._innerSubscribe(n), i = this, s = i._infiniteTimeWindow, a = i._buffer, o = a.slice(), u = 0; u < o.length && !n.closed; u += s ? 1 : 2)
|
|
1251
|
+
n.next(o[u]);
|
|
1252
|
+
return this._checkFinalizedStatuses(n), r;
|
|
1269
1253
|
}, t.prototype._trimBuffer = function() {
|
|
1270
|
-
var
|
|
1271
|
-
if (
|
|
1272
|
-
for (var u =
|
|
1254
|
+
var n = this, r = n._bufferSize, i = n._timestampProvider, s = n._buffer, a = n._infiniteTimeWindow, o = (a ? 1 : 2) * r;
|
|
1255
|
+
if (r < 1 / 0 && o < s.length && s.splice(0, s.length - o), !a) {
|
|
1256
|
+
for (var u = i.now(), l = 0, h = 1; h < s.length && s[h] <= u; h += 2)
|
|
1273
1257
|
l = h;
|
|
1274
1258
|
l && s.splice(0, l + 1);
|
|
1275
1259
|
}
|
|
1276
1260
|
}, t;
|
|
1277
|
-
}(
|
|
1278
|
-
const
|
|
1279
|
-
if (
|
|
1280
|
-
const
|
|
1281
|
-
|
|
1261
|
+
}(en);
|
|
1262
|
+
const Lt = [], Tt = {}, Pr = (e, t = 0) => {
|
|
1263
|
+
if (Lt.indexOf(e) == -1) {
|
|
1264
|
+
const n = new Hr(t);
|
|
1265
|
+
Tt[e] = n, Lt.push(e);
|
|
1282
1266
|
}
|
|
1283
|
-
return
|
|
1284
|
-
},
|
|
1285
|
-
function
|
|
1267
|
+
return Tt[e];
|
|
1268
|
+
}, z = [];
|
|
1269
|
+
function Ar(e, t) {
|
|
1286
1270
|
return {
|
|
1287
|
-
subscribe:
|
|
1271
|
+
subscribe: Ae(e, t).subscribe
|
|
1288
1272
|
};
|
|
1289
1273
|
}
|
|
1290
|
-
function
|
|
1291
|
-
let
|
|
1292
|
-
const
|
|
1293
|
-
function
|
|
1294
|
-
if (
|
|
1295
|
-
const u = !
|
|
1296
|
-
for (const l of
|
|
1297
|
-
l[1](),
|
|
1274
|
+
function Ae(e, t = M) {
|
|
1275
|
+
let n;
|
|
1276
|
+
const r = /* @__PURE__ */ new Set();
|
|
1277
|
+
function i(o) {
|
|
1278
|
+
if (jt(e, o) && (e = o, n)) {
|
|
1279
|
+
const u = !z.length;
|
|
1280
|
+
for (const l of r)
|
|
1281
|
+
l[1](), z.push(l, e);
|
|
1298
1282
|
if (u) {
|
|
1299
|
-
for (let l = 0; l <
|
|
1300
|
-
|
|
1301
|
-
|
|
1283
|
+
for (let l = 0; l < z.length; l += 2)
|
|
1284
|
+
z[l][0](z[l + 1]);
|
|
1285
|
+
z.length = 0;
|
|
1302
1286
|
}
|
|
1303
1287
|
}
|
|
1304
1288
|
}
|
|
1305
1289
|
function s(o) {
|
|
1306
|
-
|
|
1290
|
+
i(o(e));
|
|
1307
1291
|
}
|
|
1308
1292
|
function a(o, u = M) {
|
|
1309
1293
|
const l = [o, u];
|
|
1310
|
-
return
|
|
1311
|
-
|
|
1294
|
+
return r.add(l), r.size === 1 && (n = t(i, s) || M), o(e), () => {
|
|
1295
|
+
r.delete(l), r.size === 0 && n && (n(), n = null);
|
|
1312
1296
|
};
|
|
1313
1297
|
}
|
|
1314
|
-
return { set:
|
|
1298
|
+
return { set: i, update: s, subscribe: a };
|
|
1315
1299
|
}
|
|
1316
|
-
function ie(e, t,
|
|
1317
|
-
const
|
|
1318
|
-
if (!
|
|
1300
|
+
function ie(e, t, n) {
|
|
1301
|
+
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
1302
|
+
if (!i.every(Boolean))
|
|
1319
1303
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1320
1304
|
const s = t.length < 2;
|
|
1321
|
-
return
|
|
1305
|
+
return Ar(n, (a, o) => {
|
|
1322
1306
|
let u = !1;
|
|
1323
1307
|
const l = [];
|
|
1324
1308
|
let h = 0, f = M;
|
|
@@ -1326,13 +1310,13 @@ function ie(e, t, r) {
|
|
|
1326
1310
|
if (h)
|
|
1327
1311
|
return;
|
|
1328
1312
|
f();
|
|
1329
|
-
const
|
|
1330
|
-
s ? a(
|
|
1331
|
-
}, b =
|
|
1332
|
-
(
|
|
1333
|
-
|
|
1334
|
-
(
|
|
1335
|
-
l[g] =
|
|
1313
|
+
const d = t(r ? l[0] : l, a, o);
|
|
1314
|
+
s ? a(d) : f = He(d) ? d : M;
|
|
1315
|
+
}, b = i.map(
|
|
1316
|
+
(d, g) => kt(
|
|
1317
|
+
d,
|
|
1318
|
+
(p) => {
|
|
1319
|
+
l[g] = p, h &= ~(1 << g), u && c();
|
|
1336
1320
|
},
|
|
1337
1321
|
() => {
|
|
1338
1322
|
h |= 1 << g;
|
|
@@ -1344,186 +1328,188 @@ function ie(e, t, r) {
|
|
|
1344
1328
|
};
|
|
1345
1329
|
});
|
|
1346
1330
|
}
|
|
1347
|
-
function
|
|
1348
|
-
return e
|
|
1331
|
+
function Br(e) {
|
|
1332
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1349
1333
|
}
|
|
1350
|
-
var
|
|
1351
|
-
return
|
|
1334
|
+
var Or = function(t) {
|
|
1335
|
+
return Mr(t) && !Ir(t);
|
|
1352
1336
|
};
|
|
1353
|
-
function
|
|
1337
|
+
function Mr(e) {
|
|
1354
1338
|
return !!e && typeof e == "object";
|
|
1355
1339
|
}
|
|
1356
|
-
function
|
|
1340
|
+
function Ir(e) {
|
|
1357
1341
|
var t = Object.prototype.toString.call(e);
|
|
1358
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1342
|
+
return t === "[object RegExp]" || t === "[object Date]" || Rr(e);
|
|
1359
1343
|
}
|
|
1360
|
-
var
|
|
1361
|
-
function
|
|
1362
|
-
return e.$$typeof ===
|
|
1344
|
+
var Nr = typeof Symbol == "function" && Symbol.for, Cr = Nr ? Symbol.for("react.element") : 60103;
|
|
1345
|
+
function Rr(e) {
|
|
1346
|
+
return e.$$typeof === Cr;
|
|
1363
1347
|
}
|
|
1364
|
-
function
|
|
1348
|
+
function Gr(e) {
|
|
1365
1349
|
return Array.isArray(e) ? [] : {};
|
|
1366
1350
|
}
|
|
1367
1351
|
function fe(e, t) {
|
|
1368
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1352
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? K(Gr(e), e, t) : e;
|
|
1369
1353
|
}
|
|
1370
|
-
function
|
|
1371
|
-
return e.concat(t).map(function(
|
|
1372
|
-
return fe(
|
|
1354
|
+
function Dr(e, t, n) {
|
|
1355
|
+
return e.concat(t).map(function(r) {
|
|
1356
|
+
return fe(r, n);
|
|
1373
1357
|
});
|
|
1374
1358
|
}
|
|
1375
|
-
function
|
|
1359
|
+
function Ur(e, t) {
|
|
1376
1360
|
if (!t.customMerge)
|
|
1377
|
-
return
|
|
1378
|
-
var
|
|
1379
|
-
return typeof
|
|
1361
|
+
return K;
|
|
1362
|
+
var n = t.customMerge(e);
|
|
1363
|
+
return typeof n == "function" ? n : K;
|
|
1380
1364
|
}
|
|
1381
|
-
function
|
|
1365
|
+
function $r(e) {
|
|
1382
1366
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1383
1367
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1384
1368
|
}) : [];
|
|
1385
1369
|
}
|
|
1386
|
-
function
|
|
1387
|
-
return Object.keys(e).concat(
|
|
1370
|
+
function St(e) {
|
|
1371
|
+
return Object.keys(e).concat($r(e));
|
|
1388
1372
|
}
|
|
1389
|
-
function
|
|
1373
|
+
function nn(e, t) {
|
|
1390
1374
|
try {
|
|
1391
1375
|
return t in e;
|
|
1392
|
-
} catch (
|
|
1376
|
+
} catch (n) {
|
|
1393
1377
|
return !1;
|
|
1394
1378
|
}
|
|
1395
1379
|
}
|
|
1396
|
-
function
|
|
1397
|
-
return
|
|
1398
|
-
}
|
|
1399
|
-
function
|
|
1400
|
-
var
|
|
1401
|
-
return
|
|
1402
|
-
i
|
|
1403
|
-
}),
|
|
1404
|
-
|
|
1405
|
-
}),
|
|
1406
|
-
}
|
|
1407
|
-
function
|
|
1408
|
-
|
|
1409
|
-
var
|
|
1410
|
-
return s ?
|
|
1411
|
-
}
|
|
1412
|
-
|
|
1380
|
+
function Fr(e, t) {
|
|
1381
|
+
return nn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1382
|
+
}
|
|
1383
|
+
function jr(e, t, n) {
|
|
1384
|
+
var r = {};
|
|
1385
|
+
return n.isMergeableObject(e) && St(e).forEach(function(i) {
|
|
1386
|
+
r[i] = fe(e[i], n);
|
|
1387
|
+
}), St(t).forEach(function(i) {
|
|
1388
|
+
Fr(e, i) || (nn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Ur(i, n)(e[i], t[i], n) : r[i] = fe(t[i], n));
|
|
1389
|
+
}), r;
|
|
1390
|
+
}
|
|
1391
|
+
function K(e, t, n) {
|
|
1392
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Dr, n.isMergeableObject = n.isMergeableObject || Or, n.cloneUnlessOtherwiseSpecified = fe;
|
|
1393
|
+
var r = Array.isArray(t), i = Array.isArray(e), s = r === i;
|
|
1394
|
+
return s ? r ? n.arrayMerge(e, t, n) : jr(e, t, n) : fe(t, n);
|
|
1395
|
+
}
|
|
1396
|
+
K.all = function(t, n) {
|
|
1413
1397
|
if (!Array.isArray(t))
|
|
1414
1398
|
throw new Error("first argument should be an array");
|
|
1415
|
-
return t.reduce(function(
|
|
1416
|
-
return
|
|
1399
|
+
return t.reduce(function(r, i) {
|
|
1400
|
+
return K(r, i, n);
|
|
1417
1401
|
}, {});
|
|
1418
1402
|
};
|
|
1419
|
-
var
|
|
1420
|
-
const
|
|
1421
|
-
function
|
|
1422
|
-
var
|
|
1423
|
-
return
|
|
1424
|
-
cache:
|
|
1425
|
-
serializer:
|
|
1403
|
+
var kr = K, Vr = kr;
|
|
1404
|
+
const Xr = /* @__PURE__ */ Br(Vr);
|
|
1405
|
+
function De(e, t) {
|
|
1406
|
+
var n = t && t.cache ? t.cache : Yr, r = t && t.serializer ? t.serializer : qr, i = t && t.strategy ? t.strategy : zr;
|
|
1407
|
+
return i(e, {
|
|
1408
|
+
cache: n,
|
|
1409
|
+
serializer: r
|
|
1426
1410
|
});
|
|
1427
1411
|
}
|
|
1428
|
-
function
|
|
1412
|
+
function Wr(e) {
|
|
1429
1413
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1430
1414
|
}
|
|
1431
|
-
function
|
|
1432
|
-
var
|
|
1433
|
-
return typeof s == "undefined" && (s = e.call(this,
|
|
1415
|
+
function rn(e, t, n, r) {
|
|
1416
|
+
var i = Wr(r) ? r : n(r), s = t.get(i);
|
|
1417
|
+
return typeof s == "undefined" && (s = e.call(this, r), t.set(i, s)), s;
|
|
1434
1418
|
}
|
|
1435
|
-
function
|
|
1436
|
-
var
|
|
1437
|
-
return typeof s == "undefined" && (s = e.apply(this,
|
|
1419
|
+
function sn(e, t, n) {
|
|
1420
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), s = t.get(i);
|
|
1421
|
+
return typeof s == "undefined" && (s = e.apply(this, r), t.set(i, s)), s;
|
|
1438
1422
|
}
|
|
1439
|
-
function
|
|
1440
|
-
return
|
|
1423
|
+
function ot(e, t, n, r, i) {
|
|
1424
|
+
return n.bind(t, e, r, i);
|
|
1441
1425
|
}
|
|
1442
|
-
function
|
|
1443
|
-
var
|
|
1444
|
-
return
|
|
1426
|
+
function zr(e, t) {
|
|
1427
|
+
var n = e.length === 1 ? rn : sn;
|
|
1428
|
+
return ot(e, this, n, t.cache.create(), t.serializer);
|
|
1445
1429
|
}
|
|
1446
|
-
function
|
|
1447
|
-
return
|
|
1430
|
+
function Zr(e, t) {
|
|
1431
|
+
return ot(e, this, sn, t.cache.create(), t.serializer);
|
|
1448
1432
|
}
|
|
1449
|
-
function
|
|
1450
|
-
return
|
|
1433
|
+
function Qr(e, t) {
|
|
1434
|
+
return ot(e, this, rn, t.cache.create(), t.serializer);
|
|
1451
1435
|
}
|
|
1452
|
-
var
|
|
1436
|
+
var qr = function() {
|
|
1453
1437
|
return JSON.stringify(arguments);
|
|
1454
|
-
}
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1438
|
+
}, Jr = (
|
|
1439
|
+
/** @class */
|
|
1440
|
+
function() {
|
|
1441
|
+
function e() {
|
|
1442
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1443
|
+
}
|
|
1444
|
+
return e.prototype.get = function(t) {
|
|
1445
|
+
return this.cache[t];
|
|
1446
|
+
}, e.prototype.set = function(t, n) {
|
|
1447
|
+
this.cache[t] = n;
|
|
1448
|
+
}, e;
|
|
1449
|
+
}()
|
|
1450
|
+
), Yr = {
|
|
1465
1451
|
create: function() {
|
|
1466
|
-
return new
|
|
1452
|
+
return new Jr();
|
|
1467
1453
|
}
|
|
1468
|
-
},
|
|
1469
|
-
variadic:
|
|
1470
|
-
monadic:
|
|
1471
|
-
},
|
|
1454
|
+
}, Ue = {
|
|
1455
|
+
variadic: Zr,
|
|
1456
|
+
monadic: Qr
|
|
1457
|
+
}, v;
|
|
1472
1458
|
(function(e) {
|
|
1473
1459
|
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";
|
|
1474
|
-
})(
|
|
1460
|
+
})(v || (v = {}));
|
|
1475
1461
|
var w;
|
|
1476
1462
|
(function(e) {
|
|
1477
1463
|
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";
|
|
1478
1464
|
})(w || (w = {}));
|
|
1479
|
-
var
|
|
1465
|
+
var ee;
|
|
1480
1466
|
(function(e) {
|
|
1481
1467
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1482
|
-
})(
|
|
1483
|
-
function
|
|
1468
|
+
})(ee || (ee = {}));
|
|
1469
|
+
function Ht(e) {
|
|
1484
1470
|
return e.type === w.literal;
|
|
1485
1471
|
}
|
|
1486
|
-
function
|
|
1472
|
+
function Kr(e) {
|
|
1487
1473
|
return e.type === w.argument;
|
|
1488
1474
|
}
|
|
1489
|
-
function
|
|
1475
|
+
function on(e) {
|
|
1490
1476
|
return e.type === w.number;
|
|
1491
1477
|
}
|
|
1492
|
-
function
|
|
1478
|
+
function an(e) {
|
|
1493
1479
|
return e.type === w.date;
|
|
1494
1480
|
}
|
|
1495
|
-
function
|
|
1481
|
+
function un(e) {
|
|
1496
1482
|
return e.type === w.time;
|
|
1497
1483
|
}
|
|
1498
|
-
function
|
|
1484
|
+
function ln(e) {
|
|
1499
1485
|
return e.type === w.select;
|
|
1500
1486
|
}
|
|
1501
|
-
function
|
|
1487
|
+
function hn(e) {
|
|
1502
1488
|
return e.type === w.plural;
|
|
1503
1489
|
}
|
|
1504
|
-
function
|
|
1490
|
+
function ei(e) {
|
|
1505
1491
|
return e.type === w.pound;
|
|
1506
1492
|
}
|
|
1507
|
-
function
|
|
1493
|
+
function cn(e) {
|
|
1508
1494
|
return e.type === w.tag;
|
|
1509
1495
|
}
|
|
1510
|
-
function
|
|
1511
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1496
|
+
function fn(e) {
|
|
1497
|
+
return !!(e && typeof e == "object" && e.type === ee.number);
|
|
1512
1498
|
}
|
|
1513
|
-
function
|
|
1514
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1499
|
+
function qe(e) {
|
|
1500
|
+
return !!(e && typeof e == "object" && e.type === ee.dateTime);
|
|
1515
1501
|
}
|
|
1516
|
-
var
|
|
1517
|
-
function
|
|
1502
|
+
var mn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ti = /(?:[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;
|
|
1503
|
+
function ni(e) {
|
|
1518
1504
|
var t = {};
|
|
1519
|
-
return e.replace(
|
|
1520
|
-
var
|
|
1521
|
-
switch (
|
|
1505
|
+
return e.replace(ti, function(n) {
|
|
1506
|
+
var r = n.length;
|
|
1507
|
+
switch (n[0]) {
|
|
1522
1508
|
case "G":
|
|
1523
|
-
t.era =
|
|
1509
|
+
t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
1524
1510
|
break;
|
|
1525
1511
|
case "y":
|
|
1526
|
-
t.year =
|
|
1512
|
+
t.year = r === 2 ? "2-digit" : "numeric";
|
|
1527
1513
|
break;
|
|
1528
1514
|
case "Y":
|
|
1529
1515
|
case "u":
|
|
@@ -1535,30 +1521,30 @@ function sn(e) {
|
|
|
1535
1521
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1536
1522
|
case "M":
|
|
1537
1523
|
case "L":
|
|
1538
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
1524
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
|
|
1539
1525
|
break;
|
|
1540
1526
|
case "w":
|
|
1541
1527
|
case "W":
|
|
1542
1528
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
1543
1529
|
case "d":
|
|
1544
|
-
t.day = ["numeric", "2-digit"][
|
|
1530
|
+
t.day = ["numeric", "2-digit"][r - 1];
|
|
1545
1531
|
break;
|
|
1546
1532
|
case "D":
|
|
1547
1533
|
case "F":
|
|
1548
1534
|
case "g":
|
|
1549
1535
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1550
1536
|
case "E":
|
|
1551
|
-
t.weekday =
|
|
1537
|
+
t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
1552
1538
|
break;
|
|
1553
1539
|
case "e":
|
|
1554
|
-
if (
|
|
1540
|
+
if (r < 4)
|
|
1555
1541
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1556
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1542
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
1557
1543
|
break;
|
|
1558
1544
|
case "c":
|
|
1559
|
-
if (
|
|
1545
|
+
if (r < 4)
|
|
1560
1546
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1561
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1547
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
1562
1548
|
break;
|
|
1563
1549
|
case "a":
|
|
1564
1550
|
t.hour12 = !0;
|
|
@@ -1567,32 +1553,32 @@ function sn(e) {
|
|
|
1567
1553
|
case "B":
|
|
1568
1554
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1569
1555
|
case "h":
|
|
1570
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
1556
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1571
1557
|
break;
|
|
1572
1558
|
case "H":
|
|
1573
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
1559
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1574
1560
|
break;
|
|
1575
1561
|
case "K":
|
|
1576
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
1562
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1577
1563
|
break;
|
|
1578
1564
|
case "k":
|
|
1579
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
1565
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1580
1566
|
break;
|
|
1581
1567
|
case "j":
|
|
1582
1568
|
case "J":
|
|
1583
1569
|
case "C":
|
|
1584
1570
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1585
1571
|
case "m":
|
|
1586
|
-
t.minute = ["numeric", "2-digit"][
|
|
1572
|
+
t.minute = ["numeric", "2-digit"][r - 1];
|
|
1587
1573
|
break;
|
|
1588
1574
|
case "s":
|
|
1589
|
-
t.second = ["numeric", "2-digit"][
|
|
1575
|
+
t.second = ["numeric", "2-digit"][r - 1];
|
|
1590
1576
|
break;
|
|
1591
1577
|
case "S":
|
|
1592
1578
|
case "A":
|
|
1593
1579
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1594
1580
|
case "z":
|
|
1595
|
-
t.timeZoneName =
|
|
1581
|
+
t.timeZoneName = r < 4 ? "short" : "long";
|
|
1596
1582
|
break;
|
|
1597
1583
|
case "Z":
|
|
1598
1584
|
case "O":
|
|
@@ -1605,14 +1591,14 @@ function sn(e) {
|
|
|
1605
1591
|
return "";
|
|
1606
1592
|
}), t;
|
|
1607
1593
|
}
|
|
1608
|
-
var
|
|
1609
|
-
function
|
|
1594
|
+
var ri = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1595
|
+
function ii(e) {
|
|
1610
1596
|
if (e.length === 0)
|
|
1611
1597
|
throw new Error("Number skeleton cannot be empty");
|
|
1612
|
-
for (var t = e.split(
|
|
1598
|
+
for (var t = e.split(ri).filter(function(c) {
|
|
1613
1599
|
return c.length > 0;
|
|
1614
|
-
}),
|
|
1615
|
-
var s =
|
|
1600
|
+
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
1601
|
+
var s = i[r], a = s.split("/");
|
|
1616
1602
|
if (a.length === 0)
|
|
1617
1603
|
throw new Error("Invalid number skeleton");
|
|
1618
1604
|
for (var o = a[0], u = a.slice(1), l = 0, h = u; l < h.length; l++) {
|
|
@@ -1620,21 +1606,21 @@ function an(e) {
|
|
|
1620
1606
|
if (f.length === 0)
|
|
1621
1607
|
throw new Error("Invalid number skeleton");
|
|
1622
1608
|
}
|
|
1623
|
-
|
|
1609
|
+
n.push({ stem: o, options: u });
|
|
1624
1610
|
}
|
|
1625
|
-
return
|
|
1611
|
+
return n;
|
|
1626
1612
|
}
|
|
1627
|
-
function
|
|
1613
|
+
function si(e) {
|
|
1628
1614
|
return e.replace(/^(.*?)-/, "");
|
|
1629
1615
|
}
|
|
1630
|
-
var
|
|
1631
|
-
function
|
|
1616
|
+
var Pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, dn = /^(@+)?(\+|#+)?[rs]?$/g, oi = /(\*)(0+)|(#+)(0+)|(0+)/g, pn = /^(0+)$/;
|
|
1617
|
+
function At(e) {
|
|
1632
1618
|
var t = {};
|
|
1633
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1634
|
-
return typeof
|
|
1619
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(dn, function(n, r, i) {
|
|
1620
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1635
1621
|
}), t;
|
|
1636
1622
|
}
|
|
1637
|
-
function
|
|
1623
|
+
function gn(e) {
|
|
1638
1624
|
switch (e) {
|
|
1639
1625
|
case "sign-auto":
|
|
1640
1626
|
return {
|
|
@@ -1674,28 +1660,28 @@ function vr(e) {
|
|
|
1674
1660
|
};
|
|
1675
1661
|
}
|
|
1676
1662
|
}
|
|
1677
|
-
function
|
|
1663
|
+
function ai(e) {
|
|
1678
1664
|
var t;
|
|
1679
1665
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1680
1666
|
notation: "engineering"
|
|
1681
1667
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1682
1668
|
notation: "scientific"
|
|
1683
1669
|
}, e = e.slice(1)), t) {
|
|
1684
|
-
var
|
|
1685
|
-
if (
|
|
1670
|
+
var n = e.slice(0, 2);
|
|
1671
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !pn.test(e))
|
|
1686
1672
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1687
1673
|
t.minimumIntegerDigits = e.length;
|
|
1688
1674
|
}
|
|
1689
1675
|
return t;
|
|
1690
1676
|
}
|
|
1691
|
-
function
|
|
1692
|
-
var t = {},
|
|
1693
|
-
return
|
|
1677
|
+
function Bt(e) {
|
|
1678
|
+
var t = {}, n = gn(e);
|
|
1679
|
+
return n || t;
|
|
1694
1680
|
}
|
|
1695
|
-
function
|
|
1696
|
-
for (var t = {},
|
|
1697
|
-
var
|
|
1698
|
-
switch (
|
|
1681
|
+
function ui(e) {
|
|
1682
|
+
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1683
|
+
var i = r[n];
|
|
1684
|
+
switch (i.stem) {
|
|
1699
1685
|
case "percent":
|
|
1700
1686
|
case "%":
|
|
1701
1687
|
t.style = "percent";
|
|
@@ -1704,7 +1690,7 @@ function cn(e) {
|
|
|
1704
1690
|
t.style = "percent", t.scale = 100;
|
|
1705
1691
|
continue;
|
|
1706
1692
|
case "currency":
|
|
1707
|
-
t.style = "currency", t.currency =
|
|
1693
|
+
t.style = "currency", t.currency = i.options[0];
|
|
1708
1694
|
continue;
|
|
1709
1695
|
case "group-off":
|
|
1710
1696
|
case ",_":
|
|
@@ -1716,7 +1702,7 @@ function cn(e) {
|
|
|
1716
1702
|
continue;
|
|
1717
1703
|
case "measure-unit":
|
|
1718
1704
|
case "unit":
|
|
1719
|
-
t.style = "unit", t.unit =
|
|
1705
|
+
t.style = "unit", t.unit = si(i.options[0]);
|
|
1720
1706
|
continue;
|
|
1721
1707
|
case "compact-short":
|
|
1722
1708
|
case "K":
|
|
@@ -1727,13 +1713,13 @@ function cn(e) {
|
|
|
1727
1713
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1728
1714
|
continue;
|
|
1729
1715
|
case "scientific":
|
|
1730
|
-
t = x(x(x({}, t), { notation: "scientific" }),
|
|
1731
|
-
return x(x({}, u),
|
|
1716
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
1717
|
+
return x(x({}, u), Bt(l));
|
|
1732
1718
|
}, {}));
|
|
1733
1719
|
continue;
|
|
1734
1720
|
case "engineering":
|
|
1735
|
-
t = x(x(x({}, t), { notation: "engineering" }),
|
|
1736
|
-
return x(x({}, u),
|
|
1721
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
1722
|
+
return x(x({}, u), Bt(l));
|
|
1737
1723
|
}, {}));
|
|
1738
1724
|
continue;
|
|
1739
1725
|
case "notation-simple":
|
|
@@ -1752,7 +1738,7 @@ function cn(e) {
|
|
|
1752
1738
|
t.currencyDisplay = "symbol";
|
|
1753
1739
|
continue;
|
|
1754
1740
|
case "scale":
|
|
1755
|
-
t.scale = parseFloat(
|
|
1741
|
+
t.scale = parseFloat(i.options[0]);
|
|
1756
1742
|
continue;
|
|
1757
1743
|
case "rounding-mode-floor":
|
|
1758
1744
|
t.roundingMode = "floor";
|
|
@@ -1776,9 +1762,9 @@ function cn(e) {
|
|
|
1776
1762
|
t.roundingMode = "halfExpand";
|
|
1777
1763
|
continue;
|
|
1778
1764
|
case "integer-width":
|
|
1779
|
-
if (
|
|
1765
|
+
if (i.options.length > 1)
|
|
1780
1766
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1781
|
-
|
|
1767
|
+
i.options[0].replace(oi, function(u, l, h, f, c, b) {
|
|
1782
1768
|
if (l)
|
|
1783
1769
|
t.minimumIntegerDigits = h.length;
|
|
1784
1770
|
else {
|
|
@@ -1791,27 +1777,27 @@ function cn(e) {
|
|
|
1791
1777
|
});
|
|
1792
1778
|
continue;
|
|
1793
1779
|
}
|
|
1794
|
-
if (
|
|
1795
|
-
t.minimumIntegerDigits =
|
|
1780
|
+
if (pn.test(i.stem)) {
|
|
1781
|
+
t.minimumIntegerDigits = i.stem.length;
|
|
1796
1782
|
continue;
|
|
1797
1783
|
}
|
|
1798
|
-
if (
|
|
1799
|
-
if (
|
|
1784
|
+
if (Pt.test(i.stem)) {
|
|
1785
|
+
if (i.options.length > 1)
|
|
1800
1786
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1801
|
-
|
|
1787
|
+
i.stem.replace(Pt, function(u, l, h, f, c, b) {
|
|
1802
1788
|
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), "";
|
|
1803
1789
|
});
|
|
1804
|
-
var s =
|
|
1805
|
-
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t),
|
|
1790
|
+
var s = i.options[0];
|
|
1791
|
+
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), At(s)));
|
|
1806
1792
|
continue;
|
|
1807
1793
|
}
|
|
1808
|
-
if (
|
|
1809
|
-
t = x(x({}, t),
|
|
1794
|
+
if (dn.test(i.stem)) {
|
|
1795
|
+
t = x(x({}, t), At(i.stem));
|
|
1810
1796
|
continue;
|
|
1811
1797
|
}
|
|
1812
|
-
var a =
|
|
1798
|
+
var a = gn(i.stem);
|
|
1813
1799
|
a && (t = x(x({}, t), a));
|
|
1814
|
-
var o =
|
|
1800
|
+
var o = ai(i.stem);
|
|
1815
1801
|
o && (t = x(x({}, t), o));
|
|
1816
1802
|
}
|
|
1817
1803
|
return t;
|
|
@@ -3231,23 +3217,23 @@ var ge = {
|
|
|
3231
3217
|
"h"
|
|
3232
3218
|
]
|
|
3233
3219
|
};
|
|
3234
|
-
function
|
|
3235
|
-
for (var
|
|
3236
|
-
var
|
|
3237
|
-
if (
|
|
3238
|
-
for (var s = 0;
|
|
3239
|
-
s++,
|
|
3240
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), u = "a", l =
|
|
3220
|
+
function li(e, t) {
|
|
3221
|
+
for (var n = "", r = 0; r < e.length; r++) {
|
|
3222
|
+
var i = e.charAt(r);
|
|
3223
|
+
if (i === "j") {
|
|
3224
|
+
for (var s = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
3225
|
+
s++, r++;
|
|
3226
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), u = "a", l = hi(t);
|
|
3241
3227
|
for ((l == "H" || l == "k") && (o = 0); o-- > 0; )
|
|
3242
|
-
|
|
3228
|
+
n += u;
|
|
3243
3229
|
for (; a-- > 0; )
|
|
3244
|
-
|
|
3230
|
+
n = l + n;
|
|
3245
3231
|
} else
|
|
3246
|
-
|
|
3232
|
+
i === "J" ? n += "H" : n += i;
|
|
3247
3233
|
}
|
|
3248
|
-
return
|
|
3234
|
+
return n;
|
|
3249
3235
|
}
|
|
3250
|
-
function
|
|
3236
|
+
function hi(e) {
|
|
3251
3237
|
var t = e.hourCycle;
|
|
3252
3238
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3253
3239
|
e.hourCycles && // @ts-ignore
|
|
@@ -3264,73 +3250,73 @@ function mn(e) {
|
|
|
3264
3250
|
default:
|
|
3265
3251
|
throw new Error("Invalid hourCycle");
|
|
3266
3252
|
}
|
|
3267
|
-
var
|
|
3268
|
-
|
|
3269
|
-
var
|
|
3270
|
-
return
|
|
3253
|
+
var n = e.language, r;
|
|
3254
|
+
n !== "root" && (r = e.maximize().region);
|
|
3255
|
+
var i = ge[r || ""] || ge[n || ""] || ge["".concat(n, "-001")] || ge["001"];
|
|
3256
|
+
return i[0];
|
|
3271
3257
|
}
|
|
3272
|
-
var
|
|
3258
|
+
var $e, ci = new RegExp("^".concat(mn.source, "*")), fi = new RegExp("".concat(mn.source, "*$"));
|
|
3273
3259
|
function E(e, t) {
|
|
3274
3260
|
return { start: e, end: t };
|
|
3275
3261
|
}
|
|
3276
|
-
var
|
|
3262
|
+
var mi = !!String.prototype.startsWith && "_a".startsWith("a", 1), di = !!String.fromCodePoint, pi = !!Object.fromEntries, gi = !!String.prototype.codePointAt, bi = !!String.prototype.trimStart, yi = !!String.prototype.trimEnd, _i = !!Number.isSafeInteger, vi = _i ? Number.isSafeInteger : function(e) {
|
|
3277
3263
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3278
|
-
},
|
|
3264
|
+
}, Je = !0;
|
|
3279
3265
|
try {
|
|
3280
|
-
var
|
|
3281
|
-
|
|
3266
|
+
var Ei = yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3267
|
+
Je = (($e = Ei.exec("a")) === null || $e === void 0 ? void 0 : $e[0]) === "a";
|
|
3282
3268
|
} catch (e) {
|
|
3283
|
-
|
|
3269
|
+
Je = !1;
|
|
3284
3270
|
}
|
|
3285
|
-
var
|
|
3271
|
+
var Ot = mi ? (
|
|
3286
3272
|
// Native
|
|
3287
|
-
function(t,
|
|
3288
|
-
return t.startsWith(
|
|
3273
|
+
function(t, n, r) {
|
|
3274
|
+
return t.startsWith(n, r);
|
|
3289
3275
|
}
|
|
3290
3276
|
) : (
|
|
3291
3277
|
// For IE11
|
|
3292
|
-
function(t,
|
|
3293
|
-
return t.slice(
|
|
3278
|
+
function(t, n, r) {
|
|
3279
|
+
return t.slice(r, r + n.length) === n;
|
|
3294
3280
|
}
|
|
3295
|
-
),
|
|
3281
|
+
), Ye = di ? String.fromCodePoint : (
|
|
3296
3282
|
// IE11
|
|
3297
3283
|
function() {
|
|
3298
|
-
for (var t = [],
|
|
3299
|
-
t[
|
|
3300
|
-
for (var
|
|
3284
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
3285
|
+
t[n] = arguments[n];
|
|
3286
|
+
for (var r = "", i = t.length, s = 0, a; i > s; ) {
|
|
3301
3287
|
if (a = t[s++], a > 1114111)
|
|
3302
3288
|
throw RangeError(a + " is not a valid code point");
|
|
3303
|
-
|
|
3289
|
+
r += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
3304
3290
|
}
|
|
3305
|
-
return
|
|
3291
|
+
return r;
|
|
3306
3292
|
}
|
|
3307
|
-
),
|
|
3293
|
+
), Mt = (
|
|
3308
3294
|
// native
|
|
3309
|
-
|
|
3295
|
+
pi ? Object.fromEntries : (
|
|
3310
3296
|
// Ponyfill
|
|
3311
3297
|
function(t) {
|
|
3312
|
-
for (var
|
|
3313
|
-
var s =
|
|
3314
|
-
|
|
3298
|
+
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
3299
|
+
var s = i[r], a = s[0], o = s[1];
|
|
3300
|
+
n[a] = o;
|
|
3315
3301
|
}
|
|
3316
|
-
return
|
|
3302
|
+
return n;
|
|
3317
3303
|
}
|
|
3318
3304
|
)
|
|
3319
|
-
),
|
|
3305
|
+
), bn = gi ? (
|
|
3320
3306
|
// Native
|
|
3321
|
-
function(t,
|
|
3322
|
-
return t.codePointAt(
|
|
3307
|
+
function(t, n) {
|
|
3308
|
+
return t.codePointAt(n);
|
|
3323
3309
|
}
|
|
3324
3310
|
) : (
|
|
3325
3311
|
// IE 11
|
|
3326
|
-
function(t,
|
|
3327
|
-
var
|
|
3328
|
-
if (!(
|
|
3329
|
-
var
|
|
3330
|
-
return
|
|
3312
|
+
function(t, n) {
|
|
3313
|
+
var r = t.length;
|
|
3314
|
+
if (!(n < 0 || n >= r)) {
|
|
3315
|
+
var i = t.charCodeAt(n), s;
|
|
3316
|
+
return i < 55296 || i > 56319 || n + 1 === r || (s = t.charCodeAt(n + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
3331
3317
|
}
|
|
3332
3318
|
}
|
|
3333
|
-
),
|
|
3319
|
+
), xi = bi ? (
|
|
3334
3320
|
// Native
|
|
3335
3321
|
function(t) {
|
|
3336
3322
|
return t.trimStart();
|
|
@@ -3338,9 +3324,9 @@ var Nt = gn ? (
|
|
|
3338
3324
|
) : (
|
|
3339
3325
|
// Ponyfill
|
|
3340
3326
|
function(t) {
|
|
3341
|
-
return t.replace(
|
|
3327
|
+
return t.replace(ci, "");
|
|
3342
3328
|
}
|
|
3343
|
-
),
|
|
3329
|
+
), wi = yi ? (
|
|
3344
3330
|
// Native
|
|
3345
3331
|
function(t) {
|
|
3346
3332
|
return t.trimEnd();
|
|
@@ -3348,143 +3334,143 @@ var Nt = gn ? (
|
|
|
3348
3334
|
) : (
|
|
3349
3335
|
// Ponyfill
|
|
3350
3336
|
function(t) {
|
|
3351
|
-
return t.replace(
|
|
3337
|
+
return t.replace(fi, "");
|
|
3352
3338
|
}
|
|
3353
3339
|
);
|
|
3354
|
-
function
|
|
3340
|
+
function yn(e, t) {
|
|
3355
3341
|
return new RegExp(e, t);
|
|
3356
3342
|
}
|
|
3357
|
-
var
|
|
3358
|
-
if (
|
|
3359
|
-
var
|
|
3360
|
-
|
|
3361
|
-
var
|
|
3362
|
-
|
|
3363
|
-
var
|
|
3364
|
-
return (
|
|
3343
|
+
var Ke;
|
|
3344
|
+
if (Je) {
|
|
3345
|
+
var It = yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3346
|
+
Ke = function(t, n) {
|
|
3347
|
+
var r;
|
|
3348
|
+
It.lastIndex = n;
|
|
3349
|
+
var i = It.exec(t);
|
|
3350
|
+
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
3365
3351
|
};
|
|
3366
3352
|
} else
|
|
3367
|
-
|
|
3368
|
-
for (var
|
|
3369
|
-
var
|
|
3370
|
-
if (
|
|
3353
|
+
Ke = function(t, n) {
|
|
3354
|
+
for (var r = []; ; ) {
|
|
3355
|
+
var i = bn(t, n);
|
|
3356
|
+
if (i === void 0 || _n(i) || Hi(i))
|
|
3371
3357
|
break;
|
|
3372
|
-
|
|
3358
|
+
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
3373
3359
|
}
|
|
3374
|
-
return
|
|
3360
|
+
return Ye.apply(void 0, r);
|
|
3375
3361
|
};
|
|
3376
|
-
var
|
|
3362
|
+
var Li = (
|
|
3377
3363
|
/** @class */
|
|
3378
3364
|
function() {
|
|
3379
|
-
function e(t,
|
|
3380
|
-
|
|
3365
|
+
function e(t, n) {
|
|
3366
|
+
n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
|
|
3381
3367
|
}
|
|
3382
3368
|
return e.prototype.parse = function() {
|
|
3383
3369
|
if (this.offset() !== 0)
|
|
3384
3370
|
throw Error("parser can only be used once");
|
|
3385
3371
|
return this.parseMessage(0, "", !1);
|
|
3386
|
-
}, e.prototype.parseMessage = function(t,
|
|
3387
|
-
for (var
|
|
3372
|
+
}, e.prototype.parseMessage = function(t, n, r) {
|
|
3373
|
+
for (var i = []; !this.isEOF(); ) {
|
|
3388
3374
|
var s = this.char();
|
|
3389
3375
|
if (s === 123) {
|
|
3390
|
-
var a = this.parseArgument(t,
|
|
3376
|
+
var a = this.parseArgument(t, r);
|
|
3391
3377
|
if (a.err)
|
|
3392
3378
|
return a;
|
|
3393
|
-
|
|
3379
|
+
i.push(a.val);
|
|
3394
3380
|
} else {
|
|
3395
3381
|
if (s === 125 && t > 0)
|
|
3396
3382
|
break;
|
|
3397
|
-
if (s === 35 && (
|
|
3383
|
+
if (s === 35 && (n === "plural" || n === "selectordinal")) {
|
|
3398
3384
|
var o = this.clonePosition();
|
|
3399
|
-
this.bump(),
|
|
3385
|
+
this.bump(), i.push({
|
|
3400
3386
|
type: w.pound,
|
|
3401
3387
|
location: E(o, this.clonePosition())
|
|
3402
3388
|
});
|
|
3403
3389
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3404
|
-
if (
|
|
3390
|
+
if (r)
|
|
3405
3391
|
break;
|
|
3406
|
-
return this.error(
|
|
3407
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
3408
|
-
var a = this.parseTag(t,
|
|
3392
|
+
return this.error(v.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
3393
|
+
} else if (s === 60 && !this.ignoreTag && et(this.peek() || 0)) {
|
|
3394
|
+
var a = this.parseTag(t, n);
|
|
3409
3395
|
if (a.err)
|
|
3410
3396
|
return a;
|
|
3411
|
-
|
|
3397
|
+
i.push(a.val);
|
|
3412
3398
|
} else {
|
|
3413
|
-
var a = this.parseLiteral(t,
|
|
3399
|
+
var a = this.parseLiteral(t, n);
|
|
3414
3400
|
if (a.err)
|
|
3415
3401
|
return a;
|
|
3416
|
-
|
|
3402
|
+
i.push(a.val);
|
|
3417
3403
|
}
|
|
3418
3404
|
}
|
|
3419
3405
|
}
|
|
3420
|
-
return { val:
|
|
3421
|
-
}, e.prototype.parseTag = function(t,
|
|
3422
|
-
var
|
|
3406
|
+
return { val: i, err: null };
|
|
3407
|
+
}, e.prototype.parseTag = function(t, n) {
|
|
3408
|
+
var r = this.clonePosition();
|
|
3423
3409
|
this.bump();
|
|
3424
|
-
var
|
|
3410
|
+
var i = this.parseTagName();
|
|
3425
3411
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3426
3412
|
return {
|
|
3427
3413
|
val: {
|
|
3428
3414
|
type: w.literal,
|
|
3429
|
-
value: "<".concat(
|
|
3430
|
-
location: E(
|
|
3415
|
+
value: "<".concat(i, "/>"),
|
|
3416
|
+
location: E(r, this.clonePosition())
|
|
3431
3417
|
},
|
|
3432
3418
|
err: null
|
|
3433
3419
|
};
|
|
3434
3420
|
if (this.bumpIf(">")) {
|
|
3435
|
-
var s = this.parseMessage(t + 1,
|
|
3421
|
+
var s = this.parseMessage(t + 1, n, !0);
|
|
3436
3422
|
if (s.err)
|
|
3437
3423
|
return s;
|
|
3438
3424
|
var a = s.val, o = this.clonePosition();
|
|
3439
3425
|
if (this.bumpIf("</")) {
|
|
3440
|
-
if (this.isEOF() || !
|
|
3441
|
-
return this.error(
|
|
3426
|
+
if (this.isEOF() || !et(this.char()))
|
|
3427
|
+
return this.error(v.INVALID_TAG, E(o, this.clonePosition()));
|
|
3442
3428
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
3443
|
-
return
|
|
3429
|
+
return i !== l ? this.error(v.UNMATCHED_CLOSING_TAG, E(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3444
3430
|
val: {
|
|
3445
3431
|
type: w.tag,
|
|
3446
|
-
value:
|
|
3432
|
+
value: i,
|
|
3447
3433
|
children: a,
|
|
3448
|
-
location: E(
|
|
3434
|
+
location: E(r, this.clonePosition())
|
|
3449
3435
|
},
|
|
3450
3436
|
err: null
|
|
3451
|
-
} : this.error(
|
|
3437
|
+
} : this.error(v.INVALID_TAG, E(o, this.clonePosition())));
|
|
3452
3438
|
} else
|
|
3453
|
-
return this.error(
|
|
3439
|
+
return this.error(v.UNCLOSED_TAG, E(r, this.clonePosition()));
|
|
3454
3440
|
} else
|
|
3455
|
-
return this.error(
|
|
3441
|
+
return this.error(v.INVALID_TAG, E(r, this.clonePosition()));
|
|
3456
3442
|
}, e.prototype.parseTagName = function() {
|
|
3457
3443
|
var t = this.offset();
|
|
3458
|
-
for (this.bump(); !this.isEOF() &&
|
|
3444
|
+
for (this.bump(); !this.isEOF() && Si(this.char()); )
|
|
3459
3445
|
this.bump();
|
|
3460
3446
|
return this.message.slice(t, this.offset());
|
|
3461
|
-
}, e.prototype.parseLiteral = function(t,
|
|
3462
|
-
for (var
|
|
3463
|
-
var s = this.tryParseQuote(
|
|
3447
|
+
}, e.prototype.parseLiteral = function(t, n) {
|
|
3448
|
+
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
3449
|
+
var s = this.tryParseQuote(n);
|
|
3464
3450
|
if (s) {
|
|
3465
|
-
|
|
3451
|
+
i += s;
|
|
3466
3452
|
continue;
|
|
3467
3453
|
}
|
|
3468
|
-
var a = this.tryParseUnquoted(t,
|
|
3454
|
+
var a = this.tryParseUnquoted(t, n);
|
|
3469
3455
|
if (a) {
|
|
3470
|
-
|
|
3456
|
+
i += a;
|
|
3471
3457
|
continue;
|
|
3472
3458
|
}
|
|
3473
3459
|
var o = this.tryParseLeftAngleBracket();
|
|
3474
3460
|
if (o) {
|
|
3475
|
-
|
|
3461
|
+
i += o;
|
|
3476
3462
|
continue;
|
|
3477
3463
|
}
|
|
3478
3464
|
break;
|
|
3479
3465
|
}
|
|
3480
|
-
var u = E(
|
|
3466
|
+
var u = E(r, this.clonePosition());
|
|
3481
3467
|
return {
|
|
3482
|
-
val: { type: w.literal, value:
|
|
3468
|
+
val: { type: w.literal, value: i, location: u },
|
|
3483
3469
|
err: null
|
|
3484
3470
|
};
|
|
3485
3471
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3486
3472
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3487
|
-
!
|
|
3473
|
+
!Ti(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3488
3474
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3489
3475
|
if (this.isEOF() || this.char() !== 39)
|
|
3490
3476
|
return null;
|
|
@@ -3504,63 +3490,63 @@ var Hn = (
|
|
|
3504
3490
|
return null;
|
|
3505
3491
|
}
|
|
3506
3492
|
this.bump();
|
|
3507
|
-
var
|
|
3493
|
+
var n = [this.char()];
|
|
3508
3494
|
for (this.bump(); !this.isEOF(); ) {
|
|
3509
|
-
var
|
|
3510
|
-
if (
|
|
3495
|
+
var r = this.char();
|
|
3496
|
+
if (r === 39)
|
|
3511
3497
|
if (this.peek() === 39)
|
|
3512
|
-
|
|
3498
|
+
n.push(39), this.bump();
|
|
3513
3499
|
else {
|
|
3514
3500
|
this.bump();
|
|
3515
3501
|
break;
|
|
3516
3502
|
}
|
|
3517
3503
|
else
|
|
3518
|
-
|
|
3504
|
+
n.push(r);
|
|
3519
3505
|
this.bump();
|
|
3520
3506
|
}
|
|
3521
|
-
return
|
|
3522
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
3507
|
+
return Ye.apply(void 0, n);
|
|
3508
|
+
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
3523
3509
|
if (this.isEOF())
|
|
3524
3510
|
return null;
|
|
3525
|
-
var
|
|
3526
|
-
return
|
|
3527
|
-
}, e.prototype.parseArgument = function(t,
|
|
3528
|
-
var
|
|
3511
|
+
var r = this.char();
|
|
3512
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Ye(r));
|
|
3513
|
+
}, e.prototype.parseArgument = function(t, n) {
|
|
3514
|
+
var r = this.clonePosition();
|
|
3529
3515
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3530
|
-
return this.error(
|
|
3516
|
+
return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, E(r, this.clonePosition()));
|
|
3531
3517
|
if (this.char() === 125)
|
|
3532
|
-
return this.bump(), this.error(
|
|
3533
|
-
var
|
|
3534
|
-
if (!
|
|
3535
|
-
return this.error(
|
|
3518
|
+
return this.bump(), this.error(v.EMPTY_ARGUMENT, E(r, this.clonePosition()));
|
|
3519
|
+
var i = this.parseIdentifierIfPossible().value;
|
|
3520
|
+
if (!i)
|
|
3521
|
+
return this.error(v.MALFORMED_ARGUMENT, E(r, this.clonePosition()));
|
|
3536
3522
|
if (this.bumpSpace(), this.isEOF())
|
|
3537
|
-
return this.error(
|
|
3523
|
+
return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, E(r, this.clonePosition()));
|
|
3538
3524
|
switch (this.char()) {
|
|
3539
3525
|
case 125:
|
|
3540
3526
|
return this.bump(), {
|
|
3541
3527
|
val: {
|
|
3542
3528
|
type: w.argument,
|
|
3543
3529
|
// value does not include the opening and closing braces.
|
|
3544
|
-
value:
|
|
3545
|
-
location: E(
|
|
3530
|
+
value: i,
|
|
3531
|
+
location: E(r, this.clonePosition())
|
|
3546
3532
|
},
|
|
3547
3533
|
err: null
|
|
3548
3534
|
};
|
|
3549
3535
|
case 44:
|
|
3550
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3536
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, E(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
3551
3537
|
default:
|
|
3552
|
-
return this.error(
|
|
3538
|
+
return this.error(v.MALFORMED_ARGUMENT, E(r, this.clonePosition()));
|
|
3553
3539
|
}
|
|
3554
3540
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3555
|
-
var t = this.clonePosition(),
|
|
3556
|
-
this.bumpTo(
|
|
3541
|
+
var t = this.clonePosition(), n = this.offset(), r = Ke(this.message, n), i = n + r.length;
|
|
3542
|
+
this.bumpTo(i);
|
|
3557
3543
|
var s = this.clonePosition(), a = E(t, s);
|
|
3558
|
-
return { value:
|
|
3559
|
-
}, e.prototype.parseArgumentOptions = function(t, r, i
|
|
3544
|
+
return { value: r, location: a };
|
|
3545
|
+
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
3560
3546
|
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
3561
3547
|
switch (o) {
|
|
3562
3548
|
case "":
|
|
3563
|
-
return this.error(
|
|
3549
|
+
return this.error(v.EXPECT_ARGUMENT_TYPE, E(a, u));
|
|
3564
3550
|
case "number":
|
|
3565
3551
|
case "date":
|
|
3566
3552
|
case "time": {
|
|
@@ -3571,37 +3557,37 @@ var Hn = (
|
|
|
3571
3557
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3572
3558
|
if (f.err)
|
|
3573
3559
|
return f;
|
|
3574
|
-
var c =
|
|
3560
|
+
var c = wi(f.val);
|
|
3575
3561
|
if (c.length === 0)
|
|
3576
|
-
return this.error(
|
|
3562
|
+
return this.error(v.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
3577
3563
|
var b = E(h, this.clonePosition());
|
|
3578
3564
|
l = { style: c, styleLocation: b };
|
|
3579
3565
|
}
|
|
3580
|
-
var
|
|
3581
|
-
if (
|
|
3582
|
-
return
|
|
3583
|
-
var g = E(
|
|
3584
|
-
if (l &&
|
|
3585
|
-
var
|
|
3566
|
+
var d = this.tryParseArgumentClose(i);
|
|
3567
|
+
if (d.err)
|
|
3568
|
+
return d;
|
|
3569
|
+
var g = E(i, this.clonePosition());
|
|
3570
|
+
if (l && Ot(l == null ? void 0 : l.style, "::", 0)) {
|
|
3571
|
+
var p = xi(l.style.slice(2));
|
|
3586
3572
|
if (o === "number") {
|
|
3587
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3573
|
+
var f = this.parseNumberSkeletonFromString(p, l.styleLocation);
|
|
3588
3574
|
return f.err ? f : {
|
|
3589
|
-
val: { type: w.number, value:
|
|
3575
|
+
val: { type: w.number, value: r, location: g, style: f.val },
|
|
3590
3576
|
err: null
|
|
3591
3577
|
};
|
|
3592
3578
|
} else {
|
|
3593
|
-
if (
|
|
3594
|
-
return this.error(
|
|
3595
|
-
var
|
|
3596
|
-
this.locale && (
|
|
3579
|
+
if (p.length === 0)
|
|
3580
|
+
return this.error(v.EXPECT_DATE_TIME_SKELETON, g);
|
|
3581
|
+
var _ = p;
|
|
3582
|
+
this.locale && (_ = li(p, this.locale));
|
|
3597
3583
|
var c = {
|
|
3598
|
-
type:
|
|
3599
|
-
pattern:
|
|
3584
|
+
type: ee.dateTime,
|
|
3585
|
+
pattern: _,
|
|
3600
3586
|
location: l.styleLocation,
|
|
3601
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3587
|
+
parsedOptions: this.shouldParseSkeletons ? ni(_) : {}
|
|
3602
3588
|
}, T = o === "date" ? w.date : w.time;
|
|
3603
3589
|
return {
|
|
3604
|
-
val: { type: T, value:
|
|
3590
|
+
val: { type: T, value: r, location: g, style: c },
|
|
3605
3591
|
err: null
|
|
3606
3592
|
};
|
|
3607
3593
|
}
|
|
@@ -3609,7 +3595,7 @@ var Hn = (
|
|
|
3609
3595
|
return {
|
|
3610
3596
|
val: {
|
|
3611
3597
|
type: o === "number" ? w.number : o === "date" ? w.date : w.time,
|
|
3612
|
-
value:
|
|
3598
|
+
value: r,
|
|
3613
3599
|
location: g,
|
|
3614
3600
|
style: (s = l == null ? void 0 : l.style) !== null && s !== void 0 ? s : null
|
|
3615
3601
|
},
|
|
@@ -3621,59 +3607,59 @@ var Hn = (
|
|
|
3621
3607
|
case "select": {
|
|
3622
3608
|
var S = this.clonePosition();
|
|
3623
3609
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3624
|
-
return this.error(
|
|
3610
|
+
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, E(S, x({}, S)));
|
|
3625
3611
|
this.bumpSpace();
|
|
3626
|
-
var
|
|
3627
|
-
if (o !== "select" &&
|
|
3612
|
+
var N = this.parseIdentifierIfPossible(), P = 0;
|
|
3613
|
+
if (o !== "select" && N.value === "offset") {
|
|
3628
3614
|
if (!this.bumpIf(":"))
|
|
3629
|
-
return this.error(
|
|
3615
|
+
return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
|
|
3630
3616
|
this.bumpSpace();
|
|
3631
|
-
var f = this.tryParseDecimalInteger(
|
|
3617
|
+
var f = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3632
3618
|
if (f.err)
|
|
3633
3619
|
return f;
|
|
3634
|
-
this.bumpSpace(),
|
|
3620
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), P = f.val;
|
|
3635
3621
|
}
|
|
3636
|
-
var C = this.tryParsePluralOrSelectOptions(t, o,
|
|
3622
|
+
var C = this.tryParsePluralOrSelectOptions(t, o, n, N);
|
|
3637
3623
|
if (C.err)
|
|
3638
3624
|
return C;
|
|
3639
|
-
var
|
|
3640
|
-
if (
|
|
3641
|
-
return
|
|
3642
|
-
var
|
|
3625
|
+
var d = this.tryParseArgumentClose(i);
|
|
3626
|
+
if (d.err)
|
|
3627
|
+
return d;
|
|
3628
|
+
var V = E(i, this.clonePosition());
|
|
3643
3629
|
return o === "select" ? {
|
|
3644
3630
|
val: {
|
|
3645
3631
|
type: w.select,
|
|
3646
|
-
value:
|
|
3647
|
-
options:
|
|
3648
|
-
location:
|
|
3632
|
+
value: r,
|
|
3633
|
+
options: Mt(C.val),
|
|
3634
|
+
location: V
|
|
3649
3635
|
},
|
|
3650
3636
|
err: null
|
|
3651
3637
|
} : {
|
|
3652
3638
|
val: {
|
|
3653
3639
|
type: w.plural,
|
|
3654
|
-
value:
|
|
3655
|
-
options:
|
|
3656
|
-
offset:
|
|
3640
|
+
value: r,
|
|
3641
|
+
options: Mt(C.val),
|
|
3642
|
+
offset: P,
|
|
3657
3643
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
3658
|
-
location:
|
|
3644
|
+
location: V
|
|
3659
3645
|
},
|
|
3660
3646
|
err: null
|
|
3661
3647
|
};
|
|
3662
3648
|
}
|
|
3663
3649
|
default:
|
|
3664
|
-
return this.error(
|
|
3650
|
+
return this.error(v.INVALID_ARGUMENT_TYPE, E(a, u));
|
|
3665
3651
|
}
|
|
3666
3652
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3667
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3653
|
+
return this.isEOF() || this.char() !== 125 ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, E(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3668
3654
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3669
|
-
for (var t = 0,
|
|
3670
|
-
var
|
|
3671
|
-
switch (
|
|
3655
|
+
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
3656
|
+
var r = this.char();
|
|
3657
|
+
switch (r) {
|
|
3672
3658
|
case 39: {
|
|
3673
3659
|
this.bump();
|
|
3674
|
-
var
|
|
3660
|
+
var i = this.clonePosition();
|
|
3675
3661
|
if (!this.bumpUntil("'"))
|
|
3676
|
-
return this.error(
|
|
3662
|
+
return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, E(i, this.clonePosition()));
|
|
3677
3663
|
this.bump();
|
|
3678
3664
|
break;
|
|
3679
3665
|
}
|
|
@@ -3686,7 +3672,7 @@ var Hn = (
|
|
|
3686
3672
|
t -= 1;
|
|
3687
3673
|
else
|
|
3688
3674
|
return {
|
|
3689
|
-
val: this.message.slice(
|
|
3675
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3690
3676
|
err: null
|
|
3691
3677
|
};
|
|
3692
3678
|
break;
|
|
@@ -3697,31 +3683,31 @@ var Hn = (
|
|
|
3697
3683
|
}
|
|
3698
3684
|
}
|
|
3699
3685
|
return {
|
|
3700
|
-
val: this.message.slice(
|
|
3686
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3701
3687
|
err: null
|
|
3702
3688
|
};
|
|
3703
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3704
|
-
var
|
|
3689
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3690
|
+
var r = [];
|
|
3705
3691
|
try {
|
|
3706
|
-
|
|
3707
|
-
} catch (
|
|
3708
|
-
return this.error(
|
|
3692
|
+
r = ii(t);
|
|
3693
|
+
} catch (i) {
|
|
3694
|
+
return this.error(v.INVALID_NUMBER_SKELETON, n);
|
|
3709
3695
|
}
|
|
3710
3696
|
return {
|
|
3711
3697
|
val: {
|
|
3712
|
-
type:
|
|
3713
|
-
tokens:
|
|
3714
|
-
location:
|
|
3715
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3698
|
+
type: ee.number,
|
|
3699
|
+
tokens: r,
|
|
3700
|
+
location: n,
|
|
3701
|
+
parsedOptions: this.shouldParseSkeletons ? ui(r) : {}
|
|
3716
3702
|
},
|
|
3717
3703
|
err: null
|
|
3718
3704
|
};
|
|
3719
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, i
|
|
3720
|
-
for (var s, a = !1, o = [], u = /* @__PURE__ */ new Set(), l =
|
|
3705
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3706
|
+
for (var s, a = !1, o = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
|
|
3721
3707
|
if (l.length === 0) {
|
|
3722
3708
|
var f = this.clonePosition();
|
|
3723
|
-
if (
|
|
3724
|
-
var c = this.tryParseDecimalInteger(
|
|
3709
|
+
if (n !== "select" && this.bumpIf("=")) {
|
|
3710
|
+
var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3725
3711
|
if (c.err)
|
|
3726
3712
|
return c;
|
|
3727
3713
|
h = E(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
|
|
@@ -3729,29 +3715,29 @@ var Hn = (
|
|
|
3729
3715
|
break;
|
|
3730
3716
|
}
|
|
3731
3717
|
if (u.has(l))
|
|
3732
|
-
return this.error(
|
|
3718
|
+
return this.error(n === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3733
3719
|
l === "other" && (a = !0), this.bumpSpace();
|
|
3734
3720
|
var b = this.clonePosition();
|
|
3735
3721
|
if (!this.bumpIf("{"))
|
|
3736
|
-
return this.error(
|
|
3737
|
-
var
|
|
3738
|
-
if (
|
|
3739
|
-
return
|
|
3722
|
+
return this.error(n === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
|
|
3723
|
+
var d = this.parseMessage(t + 1, n, r);
|
|
3724
|
+
if (d.err)
|
|
3725
|
+
return d;
|
|
3740
3726
|
var g = this.tryParseArgumentClose(b);
|
|
3741
3727
|
if (g.err)
|
|
3742
3728
|
return g;
|
|
3743
3729
|
o.push([
|
|
3744
3730
|
l,
|
|
3745
3731
|
{
|
|
3746
|
-
value:
|
|
3732
|
+
value: d.val,
|
|
3747
3733
|
location: E(b, this.clonePosition())
|
|
3748
3734
|
}
|
|
3749
3735
|
]), u.add(l), this.bumpSpace(), s = this.parseIdentifierIfPossible(), l = s.value, h = s.location;
|
|
3750
3736
|
}
|
|
3751
|
-
return o.length === 0 ? this.error(
|
|
3752
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3753
|
-
var
|
|
3754
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3737
|
+
return o.length === 0 ? this.error(n === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR : v.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(v.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3738
|
+
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3739
|
+
var r = 1, i = this.clonePosition();
|
|
3740
|
+
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3755
3741
|
for (var s = !1, a = 0; !this.isEOF(); ) {
|
|
3756
3742
|
var o = this.char();
|
|
3757
3743
|
if (o >= 48 && o <= 57)
|
|
@@ -3759,8 +3745,8 @@ var Hn = (
|
|
|
3759
3745
|
else
|
|
3760
3746
|
break;
|
|
3761
3747
|
}
|
|
3762
|
-
var u = E(
|
|
3763
|
-
return s ? (a *=
|
|
3748
|
+
var u = E(i, this.clonePosition());
|
|
3749
|
+
return s ? (a *= r, vi(a) ? { val: a, err: null } : this.error(n, u)) : this.error(t, u);
|
|
3764
3750
|
}, e.prototype.offset = function() {
|
|
3765
3751
|
return this.position.offset;
|
|
3766
3752
|
}, e.prototype.isEOF = function() {
|
|
@@ -3775,17 +3761,17 @@ var Hn = (
|
|
|
3775
3761
|
var t = this.position.offset;
|
|
3776
3762
|
if (t >= this.message.length)
|
|
3777
3763
|
throw Error("out of bound");
|
|
3778
|
-
var
|
|
3779
|
-
if (
|
|
3764
|
+
var n = bn(this.message, t);
|
|
3765
|
+
if (n === void 0)
|
|
3780
3766
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3781
|
-
return
|
|
3782
|
-
}, e.prototype.error = function(t,
|
|
3767
|
+
return n;
|
|
3768
|
+
}, e.prototype.error = function(t, n) {
|
|
3783
3769
|
return {
|
|
3784
3770
|
val: null,
|
|
3785
3771
|
err: {
|
|
3786
3772
|
kind: t,
|
|
3787
3773
|
message: this.message,
|
|
3788
|
-
location:
|
|
3774
|
+
location: n
|
|
3789
3775
|
}
|
|
3790
3776
|
};
|
|
3791
3777
|
}, e.prototype.bump = function() {
|
|
@@ -3794,129 +3780,129 @@ var Hn = (
|
|
|
3794
3780
|
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);
|
|
3795
3781
|
}
|
|
3796
3782
|
}, e.prototype.bumpIf = function(t) {
|
|
3797
|
-
if (
|
|
3798
|
-
for (var
|
|
3783
|
+
if (Ot(this.message, t, this.offset())) {
|
|
3784
|
+
for (var n = 0; n < t.length; n++)
|
|
3799
3785
|
this.bump();
|
|
3800
3786
|
return !0;
|
|
3801
3787
|
}
|
|
3802
3788
|
return !1;
|
|
3803
3789
|
}, e.prototype.bumpUntil = function(t) {
|
|
3804
|
-
var
|
|
3805
|
-
return
|
|
3790
|
+
var n = this.offset(), r = this.message.indexOf(t, n);
|
|
3791
|
+
return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
|
|
3806
3792
|
}, e.prototype.bumpTo = function(t) {
|
|
3807
3793
|
if (this.offset() > t)
|
|
3808
3794
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3809
3795
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3810
|
-
var
|
|
3811
|
-
if (
|
|
3796
|
+
var n = this.offset();
|
|
3797
|
+
if (n === t)
|
|
3812
3798
|
break;
|
|
3813
|
-
if (
|
|
3799
|
+
if (n > t)
|
|
3814
3800
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3815
3801
|
if (this.bump(), this.isEOF())
|
|
3816
3802
|
break;
|
|
3817
3803
|
}
|
|
3818
3804
|
}, e.prototype.bumpSpace = function() {
|
|
3819
|
-
for (; !this.isEOF() &&
|
|
3805
|
+
for (; !this.isEOF() && _n(this.char()); )
|
|
3820
3806
|
this.bump();
|
|
3821
3807
|
}, e.prototype.peek = function() {
|
|
3822
3808
|
if (this.isEOF())
|
|
3823
3809
|
return null;
|
|
3824
|
-
var t = this.char(),
|
|
3825
|
-
return
|
|
3810
|
+
var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
|
|
3811
|
+
return r != null ? r : null;
|
|
3826
3812
|
}, e;
|
|
3827
3813
|
}()
|
|
3828
3814
|
);
|
|
3829
|
-
function
|
|
3815
|
+
function et(e) {
|
|
3830
3816
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3831
3817
|
}
|
|
3832
|
-
function
|
|
3833
|
-
return
|
|
3818
|
+
function Ti(e) {
|
|
3819
|
+
return et(e) || e === 47;
|
|
3834
3820
|
}
|
|
3835
|
-
function
|
|
3821
|
+
function Si(e) {
|
|
3836
3822
|
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;
|
|
3837
3823
|
}
|
|
3838
|
-
function
|
|
3824
|
+
function _n(e) {
|
|
3839
3825
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3840
3826
|
}
|
|
3841
|
-
function
|
|
3827
|
+
function Hi(e) {
|
|
3842
3828
|
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;
|
|
3843
3829
|
}
|
|
3844
|
-
function
|
|
3830
|
+
function tt(e) {
|
|
3845
3831
|
e.forEach(function(t) {
|
|
3846
|
-
if (delete t.location,
|
|
3847
|
-
for (var
|
|
3848
|
-
delete t.options[
|
|
3832
|
+
if (delete t.location, ln(t) || hn(t))
|
|
3833
|
+
for (var n in t.options)
|
|
3834
|
+
delete t.options[n].location, tt(t.options[n].value);
|
|
3849
3835
|
else
|
|
3850
|
-
|
|
3836
|
+
on(t) && fn(t.style) || (an(t) || un(t)) && qe(t.style) ? delete t.style.location : cn(t) && tt(t.children);
|
|
3851
3837
|
});
|
|
3852
3838
|
}
|
|
3853
|
-
function
|
|
3839
|
+
function Pi(e, t) {
|
|
3854
3840
|
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3855
|
-
var
|
|
3856
|
-
if (
|
|
3857
|
-
var
|
|
3858
|
-
throw
|
|
3841
|
+
var n = new Li(e, t).parse();
|
|
3842
|
+
if (n.err) {
|
|
3843
|
+
var r = SyntaxError(v[n.err.kind]);
|
|
3844
|
+
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3859
3845
|
}
|
|
3860
|
-
return t != null && t.captureLocation ||
|
|
3846
|
+
return t != null && t.captureLocation || tt(n.val), n.val;
|
|
3861
3847
|
}
|
|
3862
|
-
var
|
|
3848
|
+
var te;
|
|
3863
3849
|
(function(e) {
|
|
3864
3850
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3865
|
-
})(
|
|
3866
|
-
var
|
|
3851
|
+
})(te || (te = {}));
|
|
3852
|
+
var Be = (
|
|
3867
3853
|
/** @class */
|
|
3868
3854
|
function(e) {
|
|
3869
3855
|
D(t, e);
|
|
3870
|
-
function t(r, i
|
|
3871
|
-
var s = e.call(this,
|
|
3872
|
-
return s.code =
|
|
3856
|
+
function t(n, r, i) {
|
|
3857
|
+
var s = e.call(this, n) || this;
|
|
3858
|
+
return s.code = r, s.originalMessage = i, s;
|
|
3873
3859
|
}
|
|
3874
3860
|
return t.prototype.toString = function() {
|
|
3875
3861
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3876
3862
|
}, t;
|
|
3877
3863
|
}(Error)
|
|
3878
|
-
),
|
|
3864
|
+
), Nt = (
|
|
3879
3865
|
/** @class */
|
|
3880
3866
|
function(e) {
|
|
3881
3867
|
D(t, e);
|
|
3882
|
-
function t(r, i,
|
|
3883
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3868
|
+
function t(n, r, i, s) {
|
|
3869
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, s) || this;
|
|
3884
3870
|
}
|
|
3885
3871
|
return t;
|
|
3886
|
-
}(
|
|
3887
|
-
),
|
|
3872
|
+
}(Be)
|
|
3873
|
+
), Ai = (
|
|
3888
3874
|
/** @class */
|
|
3889
3875
|
function(e) {
|
|
3890
3876
|
D(t, e);
|
|
3891
|
-
function t(r, i
|
|
3892
|
-
return e.call(this, 'Value for "'.concat(
|
|
3877
|
+
function t(n, r, i) {
|
|
3878
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), te.INVALID_VALUE, i) || this;
|
|
3893
3879
|
}
|
|
3894
3880
|
return t;
|
|
3895
|
-
}(
|
|
3896
|
-
),
|
|
3881
|
+
}(Be)
|
|
3882
|
+
), Bi = (
|
|
3897
3883
|
/** @class */
|
|
3898
3884
|
function(e) {
|
|
3899
3885
|
D(t, e);
|
|
3900
|
-
function t(
|
|
3901
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3886
|
+
function t(n, r) {
|
|
3887
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), te.MISSING_VALUE, r) || this;
|
|
3902
3888
|
}
|
|
3903
3889
|
return t;
|
|
3904
|
-
}(
|
|
3890
|
+
}(Be)
|
|
3905
3891
|
), B;
|
|
3906
3892
|
(function(e) {
|
|
3907
3893
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3908
3894
|
})(B || (B = {}));
|
|
3909
|
-
function
|
|
3910
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3911
|
-
var
|
|
3912
|
-
return !
|
|
3895
|
+
function Oi(e) {
|
|
3896
|
+
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3897
|
+
var r = t[t.length - 1];
|
|
3898
|
+
return !r || r.type !== B.literal || n.type !== B.literal ? t.push(n) : r.value += n.value, t;
|
|
3913
3899
|
}, []);
|
|
3914
3900
|
}
|
|
3915
|
-
function
|
|
3901
|
+
function Mi(e) {
|
|
3916
3902
|
return typeof e == "function";
|
|
3917
3903
|
}
|
|
3918
|
-
function
|
|
3919
|
-
if (e.length === 1 &&
|
|
3904
|
+
function ve(e, t, n, r, i, s, a) {
|
|
3905
|
+
if (e.length === 1 && Ht(e[0]))
|
|
3920
3906
|
return [
|
|
3921
3907
|
{
|
|
3922
3908
|
type: B.literal,
|
|
@@ -3925,155 +3911,155 @@ function _e(e, t, r, i, n, s, a) {
|
|
|
3925
3911
|
];
|
|
3926
3912
|
for (var o = [], u = 0, l = e; u < l.length; u++) {
|
|
3927
3913
|
var h = l[u];
|
|
3928
|
-
if (
|
|
3914
|
+
if (Ht(h)) {
|
|
3929
3915
|
o.push({
|
|
3930
3916
|
type: B.literal,
|
|
3931
3917
|
value: h.value
|
|
3932
3918
|
});
|
|
3933
3919
|
continue;
|
|
3934
3920
|
}
|
|
3935
|
-
if (
|
|
3921
|
+
if (ei(h)) {
|
|
3936
3922
|
typeof s == "number" && o.push({
|
|
3937
3923
|
type: B.literal,
|
|
3938
|
-
value:
|
|
3924
|
+
value: n.getNumberFormat(t).format(s)
|
|
3939
3925
|
});
|
|
3940
3926
|
continue;
|
|
3941
3927
|
}
|
|
3942
3928
|
var f = h.value;
|
|
3943
|
-
if (!(
|
|
3944
|
-
throw new
|
|
3945
|
-
var c =
|
|
3946
|
-
if (
|
|
3929
|
+
if (!(i && f in i))
|
|
3930
|
+
throw new Bi(f, a);
|
|
3931
|
+
var c = i[f];
|
|
3932
|
+
if (Kr(h)) {
|
|
3947
3933
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3948
3934
|
type: typeof c == "string" ? B.literal : B.object,
|
|
3949
3935
|
value: c
|
|
3950
3936
|
});
|
|
3951
3937
|
continue;
|
|
3952
3938
|
}
|
|
3953
|
-
if (
|
|
3954
|
-
var b = typeof h.style == "string" ?
|
|
3939
|
+
if (an(h)) {
|
|
3940
|
+
var b = typeof h.style == "string" ? r.date[h.style] : qe(h.style) ? h.style.parsedOptions : void 0;
|
|
3955
3941
|
o.push({
|
|
3956
3942
|
type: B.literal,
|
|
3957
|
-
value:
|
|
3943
|
+
value: n.getDateTimeFormat(t, b).format(c)
|
|
3958
3944
|
});
|
|
3959
3945
|
continue;
|
|
3960
3946
|
}
|
|
3961
|
-
if (
|
|
3962
|
-
var b = typeof h.style == "string" ?
|
|
3947
|
+
if (un(h)) {
|
|
3948
|
+
var b = typeof h.style == "string" ? r.time[h.style] : qe(h.style) ? h.style.parsedOptions : r.time.medium;
|
|
3963
3949
|
o.push({
|
|
3964
3950
|
type: B.literal,
|
|
3965
|
-
value:
|
|
3951
|
+
value: n.getDateTimeFormat(t, b).format(c)
|
|
3966
3952
|
});
|
|
3967
3953
|
continue;
|
|
3968
3954
|
}
|
|
3969
|
-
if (
|
|
3970
|
-
var b = typeof h.style == "string" ?
|
|
3955
|
+
if (on(h)) {
|
|
3956
|
+
var b = typeof h.style == "string" ? r.number[h.style] : fn(h.style) ? h.style.parsedOptions : void 0;
|
|
3971
3957
|
b && b.scale && (c = c * (b.scale || 1)), o.push({
|
|
3972
3958
|
type: B.literal,
|
|
3973
|
-
value:
|
|
3959
|
+
value: n.getNumberFormat(t, b).format(c)
|
|
3974
3960
|
});
|
|
3975
3961
|
continue;
|
|
3976
3962
|
}
|
|
3977
|
-
if (
|
|
3978
|
-
var
|
|
3979
|
-
if (!
|
|
3980
|
-
throw new
|
|
3981
|
-
var
|
|
3982
|
-
return
|
|
3963
|
+
if (cn(h)) {
|
|
3964
|
+
var d = h.children, g = h.value, p = i[g];
|
|
3965
|
+
if (!Mi(p))
|
|
3966
|
+
throw new Ai(g, "function", a);
|
|
3967
|
+
var _ = ve(d, t, n, r, i, s), T = p(_.map(function(P) {
|
|
3968
|
+
return P.value;
|
|
3983
3969
|
}));
|
|
3984
|
-
Array.isArray(T) || (T = [T]), o.push.apply(o, T.map(function(
|
|
3970
|
+
Array.isArray(T) || (T = [T]), o.push.apply(o, T.map(function(P) {
|
|
3985
3971
|
return {
|
|
3986
|
-
type: typeof
|
|
3987
|
-
value:
|
|
3972
|
+
type: typeof P == "string" ? B.literal : B.object,
|
|
3973
|
+
value: P
|
|
3988
3974
|
};
|
|
3989
3975
|
}));
|
|
3990
3976
|
}
|
|
3991
|
-
if (
|
|
3977
|
+
if (ln(h)) {
|
|
3992
3978
|
var S = h.options[c] || h.options.other;
|
|
3993
3979
|
if (!S)
|
|
3994
|
-
throw new
|
|
3995
|
-
o.push.apply(o,
|
|
3980
|
+
throw new Nt(h.value, c, Object.keys(h.options), a);
|
|
3981
|
+
o.push.apply(o, ve(S.value, t, n, r, i));
|
|
3996
3982
|
continue;
|
|
3997
3983
|
}
|
|
3998
|
-
if (
|
|
3984
|
+
if (hn(h)) {
|
|
3999
3985
|
var S = h.options["=".concat(c)];
|
|
4000
3986
|
if (!S) {
|
|
4001
3987
|
if (!Intl.PluralRules)
|
|
4002
|
-
throw new
|
|
3988
|
+
throw new Be(`Intl.PluralRules is not available in this environment.
|
|
4003
3989
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
4004
|
-
`,
|
|
4005
|
-
var
|
|
4006
|
-
S = h.options[
|
|
3990
|
+
`, te.MISSING_INTL_API, a);
|
|
3991
|
+
var N = n.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3992
|
+
S = h.options[N] || h.options.other;
|
|
4007
3993
|
}
|
|
4008
3994
|
if (!S)
|
|
4009
|
-
throw new
|
|
4010
|
-
o.push.apply(o,
|
|
3995
|
+
throw new Nt(h.value, c, Object.keys(h.options), a);
|
|
3996
|
+
o.push.apply(o, ve(S.value, t, n, r, i, c - (h.offset || 0)));
|
|
4011
3997
|
continue;
|
|
4012
3998
|
}
|
|
4013
3999
|
}
|
|
4014
|
-
return
|
|
4000
|
+
return Oi(o);
|
|
4015
4001
|
}
|
|
4016
|
-
function
|
|
4017
|
-
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(
|
|
4018
|
-
return r
|
|
4002
|
+
function Ii(e, t) {
|
|
4003
|
+
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
4004
|
+
return n[r] = x(x({}, e[r]), t[r] || {}), n;
|
|
4019
4005
|
}, {})) : e;
|
|
4020
4006
|
}
|
|
4021
|
-
function
|
|
4022
|
-
return t ? Object.keys(e).reduce(function(
|
|
4023
|
-
return r
|
|
4007
|
+
function Ni(e, t) {
|
|
4008
|
+
return t ? Object.keys(e).reduce(function(n, r) {
|
|
4009
|
+
return n[r] = Ii(e[r], t[r]), n;
|
|
4024
4010
|
}, x({}, e)) : e;
|
|
4025
4011
|
}
|
|
4026
|
-
function
|
|
4012
|
+
function Fe(e) {
|
|
4027
4013
|
return {
|
|
4028
4014
|
create: function() {
|
|
4029
4015
|
return {
|
|
4030
4016
|
get: function(t) {
|
|
4031
4017
|
return e[t];
|
|
4032
4018
|
},
|
|
4033
|
-
set: function(t,
|
|
4034
|
-
e[t] =
|
|
4019
|
+
set: function(t, n) {
|
|
4020
|
+
e[t] = n;
|
|
4035
4021
|
}
|
|
4036
4022
|
};
|
|
4037
4023
|
}
|
|
4038
4024
|
};
|
|
4039
4025
|
}
|
|
4040
|
-
function
|
|
4026
|
+
function Ci(e) {
|
|
4041
4027
|
return e === void 0 && (e = {
|
|
4042
4028
|
number: {},
|
|
4043
4029
|
dateTime: {},
|
|
4044
4030
|
pluralRules: {}
|
|
4045
4031
|
}), {
|
|
4046
|
-
getNumberFormat:
|
|
4047
|
-
for (var t,
|
|
4048
|
-
r
|
|
4049
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
4032
|
+
getNumberFormat: De(function() {
|
|
4033
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
4034
|
+
n[r] = arguments[r];
|
|
4035
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Y([void 0], n, !1)))();
|
|
4050
4036
|
}, {
|
|
4051
|
-
cache:
|
|
4052
|
-
strategy:
|
|
4037
|
+
cache: Fe(e.number),
|
|
4038
|
+
strategy: Ue.variadic
|
|
4053
4039
|
}),
|
|
4054
|
-
getDateTimeFormat:
|
|
4055
|
-
for (var t,
|
|
4056
|
-
r
|
|
4057
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
4040
|
+
getDateTimeFormat: De(function() {
|
|
4041
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
4042
|
+
n[r] = arguments[r];
|
|
4043
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Y([void 0], n, !1)))();
|
|
4058
4044
|
}, {
|
|
4059
|
-
cache:
|
|
4060
|
-
strategy:
|
|
4045
|
+
cache: Fe(e.dateTime),
|
|
4046
|
+
strategy: Ue.variadic
|
|
4061
4047
|
}),
|
|
4062
|
-
getPluralRules:
|
|
4063
|
-
for (var t,
|
|
4064
|
-
r
|
|
4065
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
4048
|
+
getPluralRules: De(function() {
|
|
4049
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
4050
|
+
n[r] = arguments[r];
|
|
4051
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Y([void 0], n, !1)))();
|
|
4066
4052
|
}, {
|
|
4067
|
-
cache:
|
|
4068
|
-
strategy:
|
|
4053
|
+
cache: Fe(e.pluralRules),
|
|
4054
|
+
strategy: Ue.variadic
|
|
4069
4055
|
})
|
|
4070
4056
|
};
|
|
4071
4057
|
}
|
|
4072
|
-
var
|
|
4058
|
+
var Ri = (
|
|
4073
4059
|
/** @class */
|
|
4074
4060
|
function() {
|
|
4075
|
-
function e(t, r, i
|
|
4076
|
-
|
|
4061
|
+
function e(t, n, r, i) {
|
|
4062
|
+
n === void 0 && (n = e.defaultLocale);
|
|
4077
4063
|
var s = this;
|
|
4078
4064
|
if (this.formatterCache = {
|
|
4079
4065
|
number: {},
|
|
@@ -4088,7 +4074,7 @@ var Un = (
|
|
|
4088
4074
|
}, []);
|
|
4089
4075
|
return h.length <= 1 ? h[0] || "" : h;
|
|
4090
4076
|
}, this.formatToParts = function(u) {
|
|
4091
|
-
return
|
|
4077
|
+
return ve(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
|
|
4092
4078
|
}, this.resolvedOptions = function() {
|
|
4093
4079
|
var u;
|
|
4094
4080
|
return {
|
|
@@ -4096,18 +4082,18 @@ var Un = (
|
|
|
4096
4082
|
};
|
|
4097
4083
|
}, this.getAst = function() {
|
|
4098
4084
|
return s.ast;
|
|
4099
|
-
}, this.locales =
|
|
4085
|
+
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
4100
4086
|
if (this.message = t, !e.__parse)
|
|
4101
4087
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
4102
|
-
var a =
|
|
4088
|
+
var a = i || {};
|
|
4103
4089
|
a.formatters;
|
|
4104
|
-
var o =
|
|
4090
|
+
var o = dr(a, ["formatters"]);
|
|
4105
4091
|
this.ast = e.__parse(t, x(x({}, o), { locale: this.resolvedLocale }));
|
|
4106
4092
|
} else
|
|
4107
4093
|
this.ast = t;
|
|
4108
4094
|
if (!Array.isArray(this.ast))
|
|
4109
4095
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
4110
|
-
this.formats =
|
|
4096
|
+
this.formats = Ni(e.formats, r), this.formatters = i && i.formatters || Ci(this.formatterCache);
|
|
4111
4097
|
}
|
|
4112
4098
|
return Object.defineProperty(e, "defaultLocale", {
|
|
4113
4099
|
get: function() {
|
|
@@ -4117,10 +4103,10 @@ var Un = (
|
|
|
4117
4103
|
configurable: !0
|
|
4118
4104
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
4119
4105
|
if (typeof Intl.Locale != "undefined") {
|
|
4120
|
-
var
|
|
4121
|
-
return
|
|
4106
|
+
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
4107
|
+
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
4122
4108
|
}
|
|
4123
|
-
}, e.__parse =
|
|
4109
|
+
}, e.__parse = Pi, e.formats = {
|
|
4124
4110
|
number: {
|
|
4125
4111
|
integer: {
|
|
4126
4112
|
maximumFractionDigits: 0
|
|
@@ -4181,113 +4167,113 @@ var Un = (
|
|
|
4181
4167
|
}, e;
|
|
4182
4168
|
}()
|
|
4183
4169
|
);
|
|
4184
|
-
function
|
|
4170
|
+
function Gi(e, t) {
|
|
4185
4171
|
if (t == null)
|
|
4186
4172
|
return;
|
|
4187
4173
|
if (t in e)
|
|
4188
4174
|
return e[t];
|
|
4189
|
-
const
|
|
4190
|
-
let
|
|
4191
|
-
for (let
|
|
4192
|
-
if (typeof
|
|
4193
|
-
if (
|
|
4194
|
-
const s =
|
|
4195
|
-
if (s in
|
|
4196
|
-
|
|
4175
|
+
const n = t.split(".");
|
|
4176
|
+
let r = e;
|
|
4177
|
+
for (let i = 0; i < n.length; i++)
|
|
4178
|
+
if (typeof r == "object") {
|
|
4179
|
+
if (i > 0) {
|
|
4180
|
+
const s = n.slice(i, n.length).join(".");
|
|
4181
|
+
if (s in r) {
|
|
4182
|
+
r = r[s];
|
|
4197
4183
|
break;
|
|
4198
4184
|
}
|
|
4199
4185
|
}
|
|
4200
|
-
|
|
4186
|
+
r = r[n[i]];
|
|
4201
4187
|
} else
|
|
4202
|
-
|
|
4203
|
-
return
|
|
4188
|
+
r = void 0;
|
|
4189
|
+
return r;
|
|
4204
4190
|
}
|
|
4205
|
-
const $ = {},
|
|
4191
|
+
const $ = {}, Di = (e, t, n) => n && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = n), n), vn = (e, t) => {
|
|
4206
4192
|
if (t == null)
|
|
4207
4193
|
return;
|
|
4208
4194
|
if (t in $ && e in $[t])
|
|
4209
4195
|
return $[t][e];
|
|
4210
|
-
const
|
|
4211
|
-
for (let
|
|
4212
|
-
const
|
|
4196
|
+
const n = Oe(t);
|
|
4197
|
+
for (let r = 0; r < n.length; r++) {
|
|
4198
|
+
const i = n[r], s = $i(i, e);
|
|
4213
4199
|
if (s)
|
|
4214
|
-
return
|
|
4200
|
+
return Di(e, t, s);
|
|
4215
4201
|
}
|
|
4216
4202
|
};
|
|
4217
|
-
let
|
|
4218
|
-
const
|
|
4219
|
-
function
|
|
4220
|
-
return
|
|
4203
|
+
let at;
|
|
4204
|
+
const de = Ae({});
|
|
4205
|
+
function Ui(e) {
|
|
4206
|
+
return at[e] || null;
|
|
4221
4207
|
}
|
|
4222
|
-
function
|
|
4223
|
-
return e in
|
|
4208
|
+
function En(e) {
|
|
4209
|
+
return e in at;
|
|
4224
4210
|
}
|
|
4225
|
-
function
|
|
4226
|
-
if (!
|
|
4211
|
+
function $i(e, t) {
|
|
4212
|
+
if (!En(e))
|
|
4227
4213
|
return null;
|
|
4228
|
-
const
|
|
4229
|
-
return
|
|
4214
|
+
const n = Ui(e);
|
|
4215
|
+
return Gi(n, t);
|
|
4230
4216
|
}
|
|
4231
|
-
function
|
|
4217
|
+
function Fi(e) {
|
|
4232
4218
|
if (e == null)
|
|
4233
4219
|
return;
|
|
4234
4220
|
const t = Oe(e);
|
|
4235
|
-
for (let
|
|
4236
|
-
const
|
|
4237
|
-
if (
|
|
4238
|
-
return
|
|
4221
|
+
for (let n = 0; n < t.length; n++) {
|
|
4222
|
+
const r = t[n];
|
|
4223
|
+
if (En(r))
|
|
4224
|
+
return r;
|
|
4239
4225
|
}
|
|
4240
4226
|
}
|
|
4241
|
-
function
|
|
4242
|
-
delete $[e],
|
|
4227
|
+
function xn(e, ...t) {
|
|
4228
|
+
delete $[e], de.update((n) => (n[e] = Xr.all([n[e] || {}, ...t]), n));
|
|
4243
4229
|
}
|
|
4244
4230
|
ie(
|
|
4245
|
-
[
|
|
4231
|
+
[de],
|
|
4246
4232
|
([e]) => Object.keys(e)
|
|
4247
4233
|
);
|
|
4248
|
-
|
|
4234
|
+
de.subscribe((e) => at = e);
|
|
4249
4235
|
const Ee = {};
|
|
4250
|
-
function
|
|
4236
|
+
function ji(e, t) {
|
|
4251
4237
|
Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
|
|
4252
4238
|
}
|
|
4253
|
-
function
|
|
4239
|
+
function wn(e) {
|
|
4254
4240
|
return Ee[e];
|
|
4255
4241
|
}
|
|
4256
|
-
function
|
|
4242
|
+
function ki(e) {
|
|
4257
4243
|
return Oe(e).map((t) => {
|
|
4258
|
-
const
|
|
4259
|
-
return [t,
|
|
4244
|
+
const n = wn(t);
|
|
4245
|
+
return [t, n ? [...n] : []];
|
|
4260
4246
|
}).filter(([, t]) => t.length > 0);
|
|
4261
4247
|
}
|
|
4262
4248
|
function nt(e) {
|
|
4263
4249
|
return e == null ? !1 : Oe(e).some(
|
|
4264
4250
|
(t) => {
|
|
4265
|
-
var
|
|
4266
|
-
return (
|
|
4251
|
+
var n;
|
|
4252
|
+
return (n = wn(t)) == null ? void 0 : n.size;
|
|
4267
4253
|
}
|
|
4268
4254
|
);
|
|
4269
4255
|
}
|
|
4270
|
-
function
|
|
4256
|
+
function Vi(e, t) {
|
|
4271
4257
|
return Promise.all(
|
|
4272
|
-
t.map((
|
|
4273
|
-
).then((
|
|
4258
|
+
t.map((r) => (ji(e, r), r().then((i) => i.default || i)))
|
|
4259
|
+
).then((r) => xn(e, ...r));
|
|
4274
4260
|
}
|
|
4275
4261
|
const ue = {};
|
|
4276
|
-
function
|
|
4262
|
+
function Ln(e) {
|
|
4277
4263
|
if (!nt(e))
|
|
4278
4264
|
return e in ue ? ue[e] : Promise.resolve();
|
|
4279
|
-
const t =
|
|
4265
|
+
const t = ki(e);
|
|
4280
4266
|
return ue[e] = Promise.all(
|
|
4281
4267
|
t.map(
|
|
4282
|
-
([
|
|
4268
|
+
([n, r]) => Vi(n, r)
|
|
4283
4269
|
)
|
|
4284
4270
|
).then(() => {
|
|
4285
4271
|
if (nt(e))
|
|
4286
|
-
return
|
|
4272
|
+
return Ln(e);
|
|
4287
4273
|
delete ue[e];
|
|
4288
4274
|
}), ue[e];
|
|
4289
4275
|
}
|
|
4290
|
-
const
|
|
4276
|
+
const Xi = {
|
|
4291
4277
|
number: {
|
|
4292
4278
|
scientific: { notation: "scientific" },
|
|
4293
4279
|
engineering: { notation: "engineering" },
|
|
@@ -4316,136 +4302,136 @@ const Zn = {
|
|
|
4316
4302
|
timeZoneName: "short"
|
|
4317
4303
|
}
|
|
4318
4304
|
}
|
|
4319
|
-
},
|
|
4305
|
+
}, Wi = {
|
|
4320
4306
|
fallbackLocale: null,
|
|
4321
4307
|
loadingDelay: 200,
|
|
4322
|
-
formats:
|
|
4308
|
+
formats: Xi,
|
|
4323
4309
|
warnOnMissingMessages: !0,
|
|
4324
4310
|
handleMissingMessage: void 0,
|
|
4325
4311
|
ignoreTag: !0
|
|
4326
|
-
},
|
|
4327
|
-
function
|
|
4328
|
-
return
|
|
4329
|
-
}
|
|
4330
|
-
const
|
|
4331
|
-
var
|
|
4332
|
-
for (var
|
|
4333
|
-
|
|
4334
|
-
if (
|
|
4335
|
-
for (var
|
|
4336
|
-
|
|
4312
|
+
}, zi = Wi;
|
|
4313
|
+
function ne() {
|
|
4314
|
+
return zi;
|
|
4315
|
+
}
|
|
4316
|
+
const je = Ae(!1);
|
|
4317
|
+
var Zi = Object.defineProperty, Qi = Object.defineProperties, qi = Object.getOwnPropertyDescriptors, Ct = Object.getOwnPropertySymbols, Ji = Object.prototype.hasOwnProperty, Yi = Object.prototype.propertyIsEnumerable, Rt = (e, t, n) => t in e ? Zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ki = (e, t) => {
|
|
4318
|
+
for (var n in t)
|
|
4319
|
+
Ji.call(t, n) && Rt(e, n, t[n]);
|
|
4320
|
+
if (Ct)
|
|
4321
|
+
for (var n of Ct(t))
|
|
4322
|
+
Yi.call(t, n) && Rt(e, n, t[n]);
|
|
4337
4323
|
return e;
|
|
4338
|
-
},
|
|
4339
|
-
let
|
|
4340
|
-
const Te =
|
|
4341
|
-
function
|
|
4342
|
-
return e.split("-").map((t,
|
|
4324
|
+
}, es = (e, t) => Qi(e, qi(t));
|
|
4325
|
+
let rt;
|
|
4326
|
+
const Te = Ae(null);
|
|
4327
|
+
function Gt(e) {
|
|
4328
|
+
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
4343
4329
|
}
|
|
4344
|
-
function Oe(e, t =
|
|
4345
|
-
const
|
|
4346
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
4330
|
+
function Oe(e, t = ne().fallbackLocale) {
|
|
4331
|
+
const n = Gt(e);
|
|
4332
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Gt(t)])] : n;
|
|
4347
4333
|
}
|
|
4348
4334
|
function k() {
|
|
4349
|
-
return
|
|
4335
|
+
return rt != null ? rt : void 0;
|
|
4350
4336
|
}
|
|
4351
4337
|
Te.subscribe((e) => {
|
|
4352
|
-
|
|
4338
|
+
rt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4353
4339
|
});
|
|
4354
|
-
const
|
|
4355
|
-
if (e &&
|
|
4356
|
-
const { loadingDelay: t } =
|
|
4357
|
-
let
|
|
4358
|
-
return typeof window != "undefined" && k() != null && t ?
|
|
4359
|
-
() =>
|
|
4340
|
+
const ts = (e) => {
|
|
4341
|
+
if (e && Fi(e) && nt(e)) {
|
|
4342
|
+
const { loadingDelay: t } = ne();
|
|
4343
|
+
let n;
|
|
4344
|
+
return typeof window != "undefined" && k() != null && t ? n = window.setTimeout(
|
|
4345
|
+
() => je.set(!0),
|
|
4360
4346
|
t
|
|
4361
|
-
) :
|
|
4347
|
+
) : je.set(!0), Ln(e).then(() => {
|
|
4362
4348
|
Te.set(e);
|
|
4363
4349
|
}).finally(() => {
|
|
4364
|
-
clearTimeout(
|
|
4350
|
+
clearTimeout(n), je.set(!1);
|
|
4365
4351
|
});
|
|
4366
4352
|
}
|
|
4367
4353
|
return Te.set(e);
|
|
4368
|
-
},
|
|
4369
|
-
set:
|
|
4354
|
+
}, se = es(Ki({}, Te), {
|
|
4355
|
+
set: ts
|
|
4370
4356
|
}), Me = (e) => {
|
|
4371
4357
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4372
|
-
return (
|
|
4373
|
-
const
|
|
4374
|
-
return
|
|
4358
|
+
return (r) => {
|
|
4359
|
+
const i = JSON.stringify(r);
|
|
4360
|
+
return i in t ? t[i] : t[i] = e(r);
|
|
4375
4361
|
};
|
|
4376
4362
|
};
|
|
4377
|
-
var
|
|
4378
|
-
for (var
|
|
4379
|
-
|
|
4363
|
+
var ns = Object.defineProperty, Se = Object.getOwnPropertySymbols, Tn = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable, Dt = (e, t, n) => t in e ? ns(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ut = (e, t) => {
|
|
4364
|
+
for (var n in t || (t = {}))
|
|
4365
|
+
Tn.call(t, n) && Dt(e, n, t[n]);
|
|
4380
4366
|
if (Se)
|
|
4381
|
-
for (var
|
|
4382
|
-
|
|
4367
|
+
for (var n of Se(t))
|
|
4368
|
+
Sn.call(t, n) && Dt(e, n, t[n]);
|
|
4383
4369
|
return e;
|
|
4384
|
-
},
|
|
4385
|
-
var
|
|
4386
|
-
for (var
|
|
4387
|
-
|
|
4370
|
+
}, oe = (e, t) => {
|
|
4371
|
+
var n = {};
|
|
4372
|
+
for (var r in e)
|
|
4373
|
+
Tn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
4388
4374
|
if (e != null && Se)
|
|
4389
|
-
for (var
|
|
4390
|
-
t.indexOf(
|
|
4391
|
-
return
|
|
4375
|
+
for (var r of Se(e))
|
|
4376
|
+
t.indexOf(r) < 0 && Sn.call(e, r) && (n[r] = e[r]);
|
|
4377
|
+
return n;
|
|
4392
4378
|
};
|
|
4393
4379
|
const me = (e, t) => {
|
|
4394
|
-
const { formats:
|
|
4395
|
-
if (e in
|
|
4396
|
-
return
|
|
4380
|
+
const { formats: n } = ne();
|
|
4381
|
+
if (e in n && t in n[e])
|
|
4382
|
+
return n[e][t];
|
|
4397
4383
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4398
|
-
},
|
|
4384
|
+
}, rs = Me(
|
|
4399
4385
|
(e) => {
|
|
4400
|
-
var t = e, { locale:
|
|
4401
|
-
if (
|
|
4386
|
+
var t = e, { locale: n, format: r } = t, i = oe(t, ["locale", "format"]);
|
|
4387
|
+
if (n == null)
|
|
4402
4388
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4403
|
-
return
|
|
4389
|
+
return r && (i = me("number", r)), new Intl.NumberFormat(n, i);
|
|
4404
4390
|
}
|
|
4405
|
-
),
|
|
4391
|
+
), is = Me(
|
|
4406
4392
|
(e) => {
|
|
4407
|
-
var t = e, { locale:
|
|
4408
|
-
if (
|
|
4393
|
+
var t = e, { locale: n, format: r } = t, i = oe(t, ["locale", "format"]);
|
|
4394
|
+
if (n == null)
|
|
4409
4395
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4410
|
-
return
|
|
4396
|
+
return r ? i = me("date", r) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
4411
4397
|
}
|
|
4412
|
-
),
|
|
4398
|
+
), ss = Me(
|
|
4413
4399
|
(e) => {
|
|
4414
|
-
var t = e, { locale:
|
|
4415
|
-
if (
|
|
4400
|
+
var t = e, { locale: n, format: r } = t, i = oe(t, ["locale", "format"]);
|
|
4401
|
+
if (n == null)
|
|
4416
4402
|
throw new Error(
|
|
4417
4403
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4418
4404
|
);
|
|
4419
|
-
return
|
|
4405
|
+
return r ? i = me("time", r) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
4420
4406
|
}
|
|
4421
|
-
),
|
|
4407
|
+
), os = (e = {}) => {
|
|
4422
4408
|
var t = e, {
|
|
4423
|
-
locale:
|
|
4424
|
-
} = t,
|
|
4409
|
+
locale: n = k()
|
|
4410
|
+
} = t, r = oe(t, [
|
|
4425
4411
|
"locale"
|
|
4426
4412
|
]);
|
|
4427
|
-
return
|
|
4428
|
-
},
|
|
4413
|
+
return rs(ut({ locale: n }, r));
|
|
4414
|
+
}, as = (e = {}) => {
|
|
4429
4415
|
var t = e, {
|
|
4430
|
-
locale:
|
|
4431
|
-
} = t,
|
|
4416
|
+
locale: n = k()
|
|
4417
|
+
} = t, r = oe(t, [
|
|
4432
4418
|
"locale"
|
|
4433
4419
|
]);
|
|
4434
|
-
return
|
|
4435
|
-
},
|
|
4420
|
+
return is(ut({ locale: n }, r));
|
|
4421
|
+
}, us = (e = {}) => {
|
|
4436
4422
|
var t = e, {
|
|
4437
|
-
locale:
|
|
4438
|
-
} = t,
|
|
4423
|
+
locale: n = k()
|
|
4424
|
+
} = t, r = oe(t, [
|
|
4439
4425
|
"locale"
|
|
4440
4426
|
]);
|
|
4441
|
-
return
|
|
4442
|
-
},
|
|
4427
|
+
return ss(ut({ locale: n }, r));
|
|
4428
|
+
}, ls = Me(
|
|
4443
4429
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4444
|
-
(e, t = k()) => new
|
|
4445
|
-
ignoreTag:
|
|
4430
|
+
(e, t = k()) => new Ri(e, t, ne().formats, {
|
|
4431
|
+
ignoreTag: ne().ignoreTag
|
|
4446
4432
|
})
|
|
4447
|
-
),
|
|
4448
|
-
var r, i,
|
|
4433
|
+
), hs = (e, t = {}) => {
|
|
4434
|
+
var n, r, i, s;
|
|
4449
4435
|
let a = t;
|
|
4450
4436
|
typeof e == "object" && (a = e, e = a.id);
|
|
4451
4437
|
const {
|
|
@@ -4457,9 +4443,9 @@ const me = (e, t) => {
|
|
|
4457
4443
|
throw new Error(
|
|
4458
4444
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4459
4445
|
);
|
|
4460
|
-
let h =
|
|
4446
|
+
let h = vn(e, u);
|
|
4461
4447
|
if (!h)
|
|
4462
|
-
h = (s = (
|
|
4448
|
+
h = (s = (i = (r = (n = ne()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
|
|
4463
4449
|
else if (typeof h != "string")
|
|
4464
4450
|
return console.warn(
|
|
4465
4451
|
`[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.`
|
|
@@ -4468,7 +4454,7 @@ const me = (e, t) => {
|
|
|
4468
4454
|
return h;
|
|
4469
4455
|
let f = h;
|
|
4470
4456
|
try {
|
|
4471
|
-
f =
|
|
4457
|
+
f = ls(h, u).format(o);
|
|
4472
4458
|
} catch (c) {
|
|
4473
4459
|
c instanceof Error && console.warn(
|
|
4474
4460
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4476,20 +4462,20 @@ const me = (e, t) => {
|
|
|
4476
4462
|
);
|
|
4477
4463
|
}
|
|
4478
4464
|
return f;
|
|
4479
|
-
},
|
|
4480
|
-
ie([
|
|
4481
|
-
ie([
|
|
4482
|
-
ie([
|
|
4483
|
-
ie([
|
|
4484
|
-
window.emWidgets = { topic:
|
|
4485
|
-
const
|
|
4486
|
-
function
|
|
4487
|
-
|
|
4488
|
-
}
|
|
4489
|
-
function
|
|
4490
|
-
|
|
4491
|
-
}
|
|
4492
|
-
const
|
|
4465
|
+
}, cs = (e, t) => us(t).format(e), fs = (e, t) => as(t).format(e), ms = (e, t) => os(t).format(e), ds = (e, t = k()) => vn(e, t), ps = ie([se, de], () => hs);
|
|
4466
|
+
ie([se], () => cs);
|
|
4467
|
+
ie([se], () => fs);
|
|
4468
|
+
ie([se], () => ms);
|
|
4469
|
+
ie([se, de], () => ds);
|
|
4470
|
+
window.emWidgets = { topic: Pr };
|
|
4471
|
+
const gs = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4472
|
+
function Ut(e, t) {
|
|
4473
|
+
xn(e, t);
|
|
4474
|
+
}
|
|
4475
|
+
function bs(e) {
|
|
4476
|
+
se.set(e);
|
|
4477
|
+
}
|
|
4478
|
+
const $t = {
|
|
4493
4479
|
en: {
|
|
4494
4480
|
returnToMenu: "Return to menu",
|
|
4495
4481
|
gamingLimitsText: "Gaming limits",
|
|
@@ -4579,56 +4565,56 @@ const kt = {
|
|
|
4579
4565
|
lossLimit: "Loss Limit"
|
|
4580
4566
|
}
|
|
4581
4567
|
};
|
|
4582
|
-
function
|
|
4568
|
+
function ys(e, t) {
|
|
4583
4569
|
if (e) {
|
|
4584
|
-
const
|
|
4585
|
-
|
|
4570
|
+
const n = document.createElement("style");
|
|
4571
|
+
n.innerHTML = t, e.appendChild(n);
|
|
4586
4572
|
}
|
|
4587
4573
|
}
|
|
4588
|
-
function
|
|
4589
|
-
const
|
|
4590
|
-
fetch(
|
|
4591
|
-
const
|
|
4592
|
-
|
|
4593
|
-
}).catch((
|
|
4594
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
4574
|
+
function _s(e, t) {
|
|
4575
|
+
const n = new URL(t);
|
|
4576
|
+
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
4577
|
+
const i = document.createElement("style");
|
|
4578
|
+
i.innerHTML = r, e && e.appendChild(i);
|
|
4579
|
+
}).catch((r) => {
|
|
4580
|
+
console.error("There was an error while trying to load client styling from URL", r);
|
|
4595
4581
|
});
|
|
4596
4582
|
}
|
|
4597
|
-
function
|
|
4583
|
+
function vs(e, t, n) {
|
|
4598
4584
|
if (window.emMessageBus) {
|
|
4599
|
-
const
|
|
4600
|
-
window.emMessageBus.subscribe(t, (
|
|
4601
|
-
|
|
4585
|
+
const r = document.createElement("style");
|
|
4586
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
4587
|
+
r.innerHTML = i, e && e.appendChild(r);
|
|
4602
4588
|
});
|
|
4603
4589
|
}
|
|
4604
4590
|
}
|
|
4605
4591
|
if (typeof window != "undefined") {
|
|
4606
4592
|
let e = function(t) {
|
|
4607
|
-
return function(...
|
|
4593
|
+
return function(...n) {
|
|
4608
4594
|
try {
|
|
4609
|
-
return t.apply(this,
|
|
4610
|
-
} catch (
|
|
4611
|
-
if (
|
|
4595
|
+
return t.apply(this, n);
|
|
4596
|
+
} catch (r) {
|
|
4597
|
+
if (r instanceof DOMException && r.message.includes("has already been used with this registry") || r.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
4612
4598
|
return !1;
|
|
4613
|
-
throw
|
|
4599
|
+
throw r;
|
|
4614
4600
|
}
|
|
4615
4601
|
};
|
|
4616
4602
|
};
|
|
4617
|
-
customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsInfoCard-
|
|
4603
|
+
customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsInfoCard-BR08lfFb.js").then(({ default: t }) => {
|
|
4618
4604
|
!customElements.get("player-account-gaming-limits-info-card") && customElements.define(
|
|
4619
4605
|
"player-account-gaming-limits-info-card",
|
|
4620
4606
|
t.element
|
|
4621
4607
|
);
|
|
4622
4608
|
});
|
|
4623
4609
|
}
|
|
4624
|
-
function
|
|
4625
|
-
|
|
4610
|
+
function Es(e) {
|
|
4611
|
+
jn(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)}}');
|
|
4626
4612
|
}
|
|
4627
|
-
function
|
|
4613
|
+
function xs(e) {
|
|
4628
4614
|
let t;
|
|
4629
4615
|
return {
|
|
4630
4616
|
c() {
|
|
4631
|
-
t =
|
|
4617
|
+
t = O("player-account-gaming-limits-group-edit"), m(
|
|
4632
4618
|
t,
|
|
4633
4619
|
"limitsdata",
|
|
4634
4620
|
/*editLimitData*/
|
|
@@ -4680,94 +4666,94 @@ function Ts(e) {
|
|
|
4680
4666
|
e[11]
|
|
4681
4667
|
);
|
|
4682
4668
|
},
|
|
4683
|
-
m(
|
|
4684
|
-
re(
|
|
4669
|
+
m(n, r) {
|
|
4670
|
+
re(n, t, r);
|
|
4685
4671
|
},
|
|
4686
|
-
p(
|
|
4687
|
-
|
|
4672
|
+
p(n, r) {
|
|
4673
|
+
r & /*editLimitData*/
|
|
4688
4674
|
16384 && m(
|
|
4689
4675
|
t,
|
|
4690
4676
|
"limitsdata",
|
|
4691
4677
|
/*editLimitData*/
|
|
4692
|
-
|
|
4693
|
-
),
|
|
4678
|
+
n[14]
|
|
4679
|
+
), r & /*editLimitName*/
|
|
4694
4680
|
32768 && m(
|
|
4695
4681
|
t,
|
|
4696
4682
|
"limitname",
|
|
4697
4683
|
/*editLimitName*/
|
|
4698
|
-
|
|
4699
|
-
),
|
|
4684
|
+
n[15]
|
|
4685
|
+
), r & /*showsuccessnotification*/
|
|
4700
4686
|
128 && m(
|
|
4701
4687
|
t,
|
|
4702
4688
|
"showsuccessnotification",
|
|
4703
4689
|
/*showsuccessnotification*/
|
|
4704
|
-
|
|
4705
|
-
),
|
|
4690
|
+
n[7]
|
|
4691
|
+
), r & /*showdeletenotification*/
|
|
4706
4692
|
64 && m(
|
|
4707
4693
|
t,
|
|
4708
4694
|
"showdeletenotification",
|
|
4709
4695
|
/*showdeletenotification*/
|
|
4710
|
-
|
|
4711
|
-
),
|
|
4696
|
+
n[6]
|
|
4697
|
+
), r & /*currency*/
|
|
4712
4698
|
32 && m(
|
|
4713
4699
|
t,
|
|
4714
4700
|
"currency",
|
|
4715
4701
|
/*currency*/
|
|
4716
|
-
|
|
4717
|
-
),
|
|
4702
|
+
n[5]
|
|
4703
|
+
), r & /*lang*/
|
|
4718
4704
|
1 && m(
|
|
4719
4705
|
t,
|
|
4720
4706
|
"lang",
|
|
4721
4707
|
/*lang*/
|
|
4722
|
-
|
|
4723
|
-
),
|
|
4708
|
+
n[0]
|
|
4709
|
+
), r & /*separatelimits*/
|
|
4724
4710
|
256 && m(
|
|
4725
4711
|
t,
|
|
4726
4712
|
"separatelimits",
|
|
4727
4713
|
/*separatelimits*/
|
|
4728
|
-
|
|
4729
|
-
),
|
|
4714
|
+
n[8]
|
|
4715
|
+
), r & /*clientstyling*/
|
|
4730
4716
|
512 && m(
|
|
4731
4717
|
t,
|
|
4732
4718
|
"clientstyling",
|
|
4733
4719
|
/*clientstyling*/
|
|
4734
|
-
|
|
4735
|
-
),
|
|
4720
|
+
n[9]
|
|
4721
|
+
), r & /*clientstylingurl*/
|
|
4736
4722
|
1024 && m(
|
|
4737
4723
|
t,
|
|
4738
4724
|
"clientstylingurl",
|
|
4739
4725
|
/*clientstylingurl*/
|
|
4740
|
-
|
|
4741
|
-
),
|
|
4726
|
+
n[10]
|
|
4727
|
+
), r & /*mbsource*/
|
|
4742
4728
|
2048 && m(
|
|
4743
4729
|
t,
|
|
4744
4730
|
"mbsource",
|
|
4745
4731
|
/*mbsource*/
|
|
4746
|
-
|
|
4732
|
+
n[11]
|
|
4747
4733
|
);
|
|
4748
4734
|
},
|
|
4749
|
-
d(
|
|
4750
|
-
|
|
4735
|
+
d(n) {
|
|
4736
|
+
n && F(t);
|
|
4751
4737
|
}
|
|
4752
4738
|
};
|
|
4753
4739
|
}
|
|
4754
|
-
function
|
|
4755
|
-
let t, r, i
|
|
4740
|
+
function ws(e) {
|
|
4741
|
+
let t, n, r, i = (
|
|
4756
4742
|
/*$_*/
|
|
4757
4743
|
e[17]("gamingLimitsText") + ""
|
|
4758
|
-
), s, a, o, u, l, h, f, c, b,
|
|
4744
|
+
), s, a, o, u, l, h, f, c, b, d, g = (
|
|
4759
4745
|
/*isMobile*/
|
|
4760
|
-
e[18] &&
|
|
4746
|
+
e[18] && Ts(e)
|
|
4761
4747
|
);
|
|
4762
4748
|
return {
|
|
4763
4749
|
c() {
|
|
4764
|
-
t =
|
|
4750
|
+
t = O("div"), g && g.c(), n = Z(), r = O("h2"), s = he(i), a = Z(), o = 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(), d = O("player-account-gaming-limits-info-card"), H(r, "class", "PlayerGamingLimitsTitle " + /*isMobile*/
|
|
4765
4751
|
(e[18] ? "PlayerGamingLimitsTitleNone" : "")), m(
|
|
4766
4752
|
u,
|
|
4767
4753
|
"limitsdata",
|
|
4768
4754
|
/*depositlimit*/
|
|
4769
4755
|
e[1]
|
|
4770
|
-
), m(u, "limitname",
|
|
4756
|
+
), m(u, "limitname", Hs), m(
|
|
4771
4757
|
u,
|
|
4772
4758
|
"currency",
|
|
4773
4759
|
/*currency*/
|
|
@@ -4797,7 +4783,7 @@ function Ss(e) {
|
|
|
4797
4783
|
"limitsdata",
|
|
4798
4784
|
/*wageringlimit*/
|
|
4799
4785
|
e[2]
|
|
4800
|
-
), m(h, "limitname",
|
|
4786
|
+
), m(h, "limitname", Ps), m(
|
|
4801
4787
|
h,
|
|
4802
4788
|
"currency",
|
|
4803
4789
|
/*currency*/
|
|
@@ -4827,7 +4813,7 @@ function Ss(e) {
|
|
|
4827
4813
|
"limitsdata",
|
|
4828
4814
|
/*losslimit*/
|
|
4829
4815
|
e[3]
|
|
4830
|
-
), m(c, "limitname",
|
|
4816
|
+
), m(c, "limitname", As), m(
|
|
4831
4817
|
c,
|
|
4832
4818
|
"currency",
|
|
4833
4819
|
/*currency*/
|
|
@@ -4853,341 +4839,341 @@ function Ss(e) {
|
|
|
4853
4839
|
/*mbsource*/
|
|
4854
4840
|
e[11]
|
|
4855
4841
|
), m(
|
|
4856
|
-
|
|
4842
|
+
d,
|
|
4857
4843
|
"limitsdata",
|
|
4858
4844
|
/*timelimit*/
|
|
4859
4845
|
e[4]
|
|
4860
|
-
), m(
|
|
4861
|
-
|
|
4846
|
+
), m(d, "limitname", Bs), m(
|
|
4847
|
+
d,
|
|
4862
4848
|
"currency",
|
|
4863
4849
|
/*currency*/
|
|
4864
4850
|
e[5]
|
|
4865
4851
|
), m(
|
|
4866
|
-
|
|
4852
|
+
d,
|
|
4867
4853
|
"lang",
|
|
4868
4854
|
/*lang*/
|
|
4869
4855
|
e[0]
|
|
4870
4856
|
), m(
|
|
4871
|
-
|
|
4857
|
+
d,
|
|
4872
4858
|
"clientstyling",
|
|
4873
4859
|
/*clientstyling*/
|
|
4874
4860
|
e[9]
|
|
4875
4861
|
), m(
|
|
4876
|
-
|
|
4862
|
+
d,
|
|
4877
4863
|
"clientstylingurl",
|
|
4878
4864
|
/*clientstylingurl*/
|
|
4879
4865
|
e[10]
|
|
4880
4866
|
), m(
|
|
4881
|
-
|
|
4867
|
+
d,
|
|
4882
4868
|
"mbsource",
|
|
4883
4869
|
/*mbsource*/
|
|
4884
4870
|
e[11]
|
|
4885
4871
|
), H(o, "class", "PlayerAccountGamingLimitsContainer"), H(t, "class", "PlayerAccountGamingLimitsWrapper " + /*isMobile*/
|
|
4886
4872
|
(e[18] ? "PlayerAccountMobileGamingLimitsWrapper" : ""));
|
|
4887
4873
|
},
|
|
4888
|
-
m(
|
|
4889
|
-
re(
|
|
4874
|
+
m(p, _) {
|
|
4875
|
+
re(p, t, _), g && g.m(t, null), L(t, n), L(t, r), L(r, s), L(t, a), L(t, o), L(o, u), L(o, l), L(o, h), L(o, f), L(o, c), L(o, b), L(o, d);
|
|
4890
4876
|
},
|
|
4891
|
-
p(
|
|
4877
|
+
p(p, _) {
|
|
4892
4878
|
/*isMobile*/
|
|
4893
|
-
|
|
4894
|
-
131072 &&
|
|
4895
|
-
|
|
4879
|
+
p[18] && g.p(p, _), _ & /*$_*/
|
|
4880
|
+
131072 && i !== (i = /*$_*/
|
|
4881
|
+
p[17]("gamingLimitsText") + "") && Zt(s, i), _ & /*depositlimit*/
|
|
4896
4882
|
2 && m(
|
|
4897
4883
|
u,
|
|
4898
4884
|
"limitsdata",
|
|
4899
4885
|
/*depositlimit*/
|
|
4900
|
-
|
|
4901
|
-
),
|
|
4886
|
+
p[1]
|
|
4887
|
+
), _ & /*currency*/
|
|
4902
4888
|
32 && m(
|
|
4903
4889
|
u,
|
|
4904
4890
|
"currency",
|
|
4905
4891
|
/*currency*/
|
|
4906
|
-
|
|
4907
|
-
),
|
|
4892
|
+
p[5]
|
|
4893
|
+
), _ & /*lang*/
|
|
4908
4894
|
1 && m(
|
|
4909
4895
|
u,
|
|
4910
4896
|
"lang",
|
|
4911
4897
|
/*lang*/
|
|
4912
|
-
|
|
4913
|
-
),
|
|
4898
|
+
p[0]
|
|
4899
|
+
), _ & /*clientstyling*/
|
|
4914
4900
|
512 && m(
|
|
4915
4901
|
u,
|
|
4916
4902
|
"clientstyling",
|
|
4917
4903
|
/*clientstyling*/
|
|
4918
|
-
|
|
4919
|
-
),
|
|
4904
|
+
p[9]
|
|
4905
|
+
), _ & /*clientstylingurl*/
|
|
4920
4906
|
1024 && m(
|
|
4921
4907
|
u,
|
|
4922
4908
|
"clientstylingurl",
|
|
4923
4909
|
/*clientstylingurl*/
|
|
4924
|
-
|
|
4925
|
-
),
|
|
4910
|
+
p[10]
|
|
4911
|
+
), _ & /*mbsource*/
|
|
4926
4912
|
2048 && m(
|
|
4927
4913
|
u,
|
|
4928
4914
|
"mbsource",
|
|
4929
4915
|
/*mbsource*/
|
|
4930
|
-
|
|
4931
|
-
),
|
|
4916
|
+
p[11]
|
|
4917
|
+
), _ & /*wageringlimit*/
|
|
4932
4918
|
4 && m(
|
|
4933
4919
|
h,
|
|
4934
4920
|
"limitsdata",
|
|
4935
4921
|
/*wageringlimit*/
|
|
4936
|
-
|
|
4937
|
-
),
|
|
4922
|
+
p[2]
|
|
4923
|
+
), _ & /*currency*/
|
|
4938
4924
|
32 && m(
|
|
4939
4925
|
h,
|
|
4940
4926
|
"currency",
|
|
4941
4927
|
/*currency*/
|
|
4942
|
-
|
|
4943
|
-
),
|
|
4928
|
+
p[5]
|
|
4929
|
+
), _ & /*lang*/
|
|
4944
4930
|
1 && m(
|
|
4945
4931
|
h,
|
|
4946
4932
|
"lang",
|
|
4947
4933
|
/*lang*/
|
|
4948
|
-
|
|
4949
|
-
),
|
|
4934
|
+
p[0]
|
|
4935
|
+
), _ & /*clientstyling*/
|
|
4950
4936
|
512 && m(
|
|
4951
4937
|
h,
|
|
4952
4938
|
"clientstyling",
|
|
4953
4939
|
/*clientstyling*/
|
|
4954
|
-
|
|
4955
|
-
),
|
|
4940
|
+
p[9]
|
|
4941
|
+
), _ & /*clientstylingurl*/
|
|
4956
4942
|
1024 && m(
|
|
4957
4943
|
h,
|
|
4958
4944
|
"clientstylingurl",
|
|
4959
4945
|
/*clientstylingurl*/
|
|
4960
|
-
|
|
4961
|
-
),
|
|
4946
|
+
p[10]
|
|
4947
|
+
), _ & /*mbsource*/
|
|
4962
4948
|
2048 && m(
|
|
4963
4949
|
h,
|
|
4964
4950
|
"mbsource",
|
|
4965
4951
|
/*mbsource*/
|
|
4966
|
-
|
|
4967
|
-
),
|
|
4952
|
+
p[11]
|
|
4953
|
+
), _ & /*losslimit*/
|
|
4968
4954
|
8 && m(
|
|
4969
4955
|
c,
|
|
4970
4956
|
"limitsdata",
|
|
4971
4957
|
/*losslimit*/
|
|
4972
|
-
|
|
4973
|
-
),
|
|
4958
|
+
p[3]
|
|
4959
|
+
), _ & /*currency*/
|
|
4974
4960
|
32 && m(
|
|
4975
4961
|
c,
|
|
4976
4962
|
"currency",
|
|
4977
4963
|
/*currency*/
|
|
4978
|
-
|
|
4979
|
-
),
|
|
4964
|
+
p[5]
|
|
4965
|
+
), _ & /*lang*/
|
|
4980
4966
|
1 && m(
|
|
4981
4967
|
c,
|
|
4982
4968
|
"lang",
|
|
4983
4969
|
/*lang*/
|
|
4984
|
-
|
|
4985
|
-
),
|
|
4970
|
+
p[0]
|
|
4971
|
+
), _ & /*clientstyling*/
|
|
4986
4972
|
512 && m(
|
|
4987
4973
|
c,
|
|
4988
4974
|
"clientstyling",
|
|
4989
4975
|
/*clientstyling*/
|
|
4990
|
-
|
|
4991
|
-
),
|
|
4976
|
+
p[9]
|
|
4977
|
+
), _ & /*clientstylingurl*/
|
|
4992
4978
|
1024 && m(
|
|
4993
4979
|
c,
|
|
4994
4980
|
"clientstylingurl",
|
|
4995
4981
|
/*clientstylingurl*/
|
|
4996
|
-
|
|
4997
|
-
),
|
|
4982
|
+
p[10]
|
|
4983
|
+
), _ & /*mbsource*/
|
|
4998
4984
|
2048 && m(
|
|
4999
4985
|
c,
|
|
5000
4986
|
"mbsource",
|
|
5001
4987
|
/*mbsource*/
|
|
5002
|
-
|
|
5003
|
-
),
|
|
4988
|
+
p[11]
|
|
4989
|
+
), _ & /*timelimit*/
|
|
5004
4990
|
16 && m(
|
|
5005
|
-
|
|
4991
|
+
d,
|
|
5006
4992
|
"limitsdata",
|
|
5007
4993
|
/*timelimit*/
|
|
5008
|
-
|
|
5009
|
-
),
|
|
4994
|
+
p[4]
|
|
4995
|
+
), _ & /*currency*/
|
|
5010
4996
|
32 && m(
|
|
5011
|
-
|
|
4997
|
+
d,
|
|
5012
4998
|
"currency",
|
|
5013
4999
|
/*currency*/
|
|
5014
|
-
|
|
5015
|
-
),
|
|
5000
|
+
p[5]
|
|
5001
|
+
), _ & /*lang*/
|
|
5016
5002
|
1 && m(
|
|
5017
|
-
|
|
5003
|
+
d,
|
|
5018
5004
|
"lang",
|
|
5019
5005
|
/*lang*/
|
|
5020
|
-
|
|
5021
|
-
),
|
|
5006
|
+
p[0]
|
|
5007
|
+
), _ & /*clientstyling*/
|
|
5022
5008
|
512 && m(
|
|
5023
|
-
|
|
5009
|
+
d,
|
|
5024
5010
|
"clientstyling",
|
|
5025
5011
|
/*clientstyling*/
|
|
5026
|
-
|
|
5027
|
-
),
|
|
5012
|
+
p[9]
|
|
5013
|
+
), _ & /*clientstylingurl*/
|
|
5028
5014
|
1024 && m(
|
|
5029
|
-
|
|
5015
|
+
d,
|
|
5030
5016
|
"clientstylingurl",
|
|
5031
5017
|
/*clientstylingurl*/
|
|
5032
|
-
|
|
5033
|
-
),
|
|
5018
|
+
p[10]
|
|
5019
|
+
), _ & /*mbsource*/
|
|
5034
5020
|
2048 && m(
|
|
5035
|
-
|
|
5021
|
+
d,
|
|
5036
5022
|
"mbsource",
|
|
5037
5023
|
/*mbsource*/
|
|
5038
|
-
|
|
5024
|
+
p[11]
|
|
5039
5025
|
);
|
|
5040
5026
|
},
|
|
5041
|
-
d(
|
|
5042
|
-
|
|
5027
|
+
d(p) {
|
|
5028
|
+
p && F(t), g && g.d();
|
|
5043
5029
|
}
|
|
5044
5030
|
};
|
|
5045
5031
|
}
|
|
5046
|
-
function
|
|
5032
|
+
function Ls(e) {
|
|
5047
5033
|
let t;
|
|
5048
5034
|
return {
|
|
5049
5035
|
c() {
|
|
5050
|
-
t =
|
|
5036
|
+
t = O("div"), H(t, "class", "ModalLoader");
|
|
5051
5037
|
},
|
|
5052
|
-
m(
|
|
5053
|
-
re(
|
|
5038
|
+
m(n, r) {
|
|
5039
|
+
re(n, t, r);
|
|
5054
5040
|
},
|
|
5055
5041
|
p: M,
|
|
5056
|
-
d(
|
|
5057
|
-
|
|
5042
|
+
d(n) {
|
|
5043
|
+
n && F(t);
|
|
5058
5044
|
}
|
|
5059
5045
|
};
|
|
5060
5046
|
}
|
|
5061
|
-
function
|
|
5062
|
-
let t, r, i,
|
|
5047
|
+
function Ts(e) {
|
|
5048
|
+
let t, n, r, i, s, a, o, u, l, h, f = (
|
|
5063
5049
|
/*$_*/
|
|
5064
5050
|
e[17]("gamingLimitsText") + ""
|
|
5065
|
-
), c, b,
|
|
5051
|
+
), c, b, d;
|
|
5066
5052
|
return {
|
|
5067
5053
|
c() {
|
|
5068
|
-
t =
|
|
5054
|
+
t = O("div"), n = X("svg"), r = X("defs"), i = X("style"), s = he(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = X("g"), o = X("g"), u = X("path"), l = Z(), h = O("h2"), c = he(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(o, "transform", "translate(20 158)"), H(a, "transform", "translate(-20 -158)"), H(n, "xmlns", "http://www.w3.org/2000/svg"), H(n, "width", "15"), H(n, "height", "15"), H(n, "viewBox", "0 0 15 15"), H(h, "class", "PlayerGamingLimitsTitleMobile"), H(t, "class", "MenuReturnButton");
|
|
5069
5055
|
},
|
|
5070
|
-
m(g,
|
|
5071
|
-
re(g, t,
|
|
5056
|
+
m(g, p) {
|
|
5057
|
+
re(g, t, p), L(t, n), L(n, r), L(r, i), L(i, s), L(n, a), L(a, o), L(o, u), L(t, l), L(t, h), L(h, c), b || (d = Vn(
|
|
5072
5058
|
t,
|
|
5073
5059
|
"click",
|
|
5074
5060
|
/*click_handler*/
|
|
5075
5061
|
e[21]
|
|
5076
5062
|
), b = !0);
|
|
5077
5063
|
},
|
|
5078
|
-
p(g,
|
|
5079
|
-
|
|
5064
|
+
p(g, p) {
|
|
5065
|
+
p & /*$_*/
|
|
5080
5066
|
131072 && f !== (f = /*$_*/
|
|
5081
|
-
g[17]("gamingLimitsText") + "") &&
|
|
5067
|
+
g[17]("gamingLimitsText") + "") && Zt(c, f);
|
|
5082
5068
|
},
|
|
5083
5069
|
d(g) {
|
|
5084
|
-
g && F(t), b = !1,
|
|
5070
|
+
g && F(t), b = !1, d();
|
|
5085
5071
|
}
|
|
5086
5072
|
};
|
|
5087
5073
|
}
|
|
5088
|
-
function
|
|
5074
|
+
function Ss(e) {
|
|
5089
5075
|
let t;
|
|
5090
|
-
function
|
|
5076
|
+
function n(s, a) {
|
|
5091
5077
|
return (
|
|
5092
5078
|
/*isLoading*/
|
|
5093
|
-
s[13] ?
|
|
5079
|
+
s[13] ? Ls : (
|
|
5094
5080
|
/*limitsGroupView*/
|
|
5095
|
-
s[16] ?
|
|
5081
|
+
s[16] ? ws : xs
|
|
5096
5082
|
)
|
|
5097
5083
|
);
|
|
5098
5084
|
}
|
|
5099
|
-
let
|
|
5085
|
+
let r = n(e), i = r(e);
|
|
5100
5086
|
return {
|
|
5101
5087
|
c() {
|
|
5102
|
-
t =
|
|
5088
|
+
t = O("div"), i.c();
|
|
5103
5089
|
},
|
|
5104
5090
|
m(s, a) {
|
|
5105
|
-
re(s, t, a),
|
|
5091
|
+
re(s, t, a), i.m(t, null), e[22](t);
|
|
5106
5092
|
},
|
|
5107
5093
|
p(s, [a]) {
|
|
5108
|
-
|
|
5094
|
+
r === (r = n(s)) && i ? i.p(s, a) : (i.d(1), i = r(s), i && (i.c(), i.m(t, null)));
|
|
5109
5095
|
},
|
|
5110
5096
|
i: M,
|
|
5111
5097
|
o: M,
|
|
5112
5098
|
d(s) {
|
|
5113
|
-
s && F(t),
|
|
5099
|
+
s && F(t), i.d(), e[22](null);
|
|
5114
5100
|
}
|
|
5115
5101
|
};
|
|
5116
5102
|
}
|
|
5117
|
-
let
|
|
5118
|
-
function
|
|
5119
|
-
let
|
|
5120
|
-
|
|
5121
|
-
let { depositlimit:
|
|
5122
|
-
const
|
|
5123
|
-
fetch(
|
|
5124
|
-
Object.keys(U).forEach((
|
|
5125
|
-
|
|
5103
|
+
let Hs = "Deposit Limit", Ps = "Wagering Limit", As = "Loss Limit", Bs = "Time Limit";
|
|
5104
|
+
function Os(e, t, n) {
|
|
5105
|
+
let r;
|
|
5106
|
+
Un(e, ps, (y) => n(17, r = y));
|
|
5107
|
+
let { depositlimit: i } = t, { wageringlimit: s } = t, { losslimit: a } = t, { timelimit: o } = t, { showdeletenotification: u = !1 } = t, { showsuccessnotification: l = !1 } = t, { lang: h = "en" } = t, { currency: f = "" } = t, { separatelimits: c = "true" } = t, { clientstyling: b = "" } = t, { clientstylingurl: d = "" } = t, { mbsource: g } = t, { translationurl: p = "" } = t;
|
|
5108
|
+
const _ = () => {
|
|
5109
|
+
fetch(p).then((U) => U.json()).then((U) => {
|
|
5110
|
+
Object.keys(U).forEach((ct) => {
|
|
5111
|
+
Ut(ct, U[ct]);
|
|
5126
5112
|
});
|
|
5127
5113
|
}).catch((U) => {
|
|
5128
5114
|
console.log(U);
|
|
5129
5115
|
});
|
|
5130
5116
|
};
|
|
5131
|
-
Object.keys(
|
|
5132
|
-
|
|
5117
|
+
Object.keys($t).forEach((y) => {
|
|
5118
|
+
Ut(y, $t[y]);
|
|
5133
5119
|
});
|
|
5134
|
-
let T, S
|
|
5120
|
+
let T, S = !0, N = window.navigator.userAgent, P = gs(N) !== "PC", C, V = "", Ie = !0;
|
|
5135
5121
|
window.matchMedia("(min-width: 768px)");
|
|
5136
|
-
const
|
|
5122
|
+
const lt = () => {
|
|
5137
5123
|
window.postMessage(
|
|
5138
5124
|
{
|
|
5139
5125
|
type: "PlayerAccountMenuActive",
|
|
5140
|
-
isMobile:
|
|
5126
|
+
isMobile: P
|
|
5141
5127
|
},
|
|
5142
5128
|
window.location.href
|
|
5143
5129
|
);
|
|
5144
|
-
},
|
|
5145
|
-
|
|
5146
|
-
},
|
|
5130
|
+
}, Pn = () => {
|
|
5131
|
+
bs(h);
|
|
5132
|
+
}, ht = (y) => {
|
|
5147
5133
|
if (y.data)
|
|
5148
5134
|
switch (y.data.type) {
|
|
5149
5135
|
case "PlayerLimitsData":
|
|
5150
|
-
|
|
5136
|
+
n(0, h = y.data.limits.lang), n(1, i = y.data.limits.depositlimit), n(2, s = y.data.limits.wageringlimit), n(3, a = y.data.limits.losslimit), n(4, o = y.data.limits.timelimit), n(13, S = !1);
|
|
5151
5137
|
break;
|
|
5152
5138
|
case "EditPlayerAccountGamingLimits":
|
|
5153
|
-
|
|
5139
|
+
n(14, C = y.data.edit), n(15, V = y.data.name), n(16, Ie = !1), window.postMessage(
|
|
5154
5140
|
{
|
|
5155
5141
|
type: "EditPlayerLimit",
|
|
5156
|
-
name:
|
|
5142
|
+
name: V
|
|
5157
5143
|
},
|
|
5158
5144
|
window.location.href
|
|
5159
5145
|
), window.postMessage({ type: "ScrollToTop" }, window.location.href);
|
|
5160
5146
|
break;
|
|
5161
5147
|
case "PlayerAccountBackToLimitsView":
|
|
5162
|
-
|
|
5148
|
+
n(16, Ie = !0);
|
|
5163
5149
|
break;
|
|
5164
5150
|
case "ProfileDetailsData":
|
|
5165
5151
|
let U = y.data.profileDetails;
|
|
5166
|
-
|
|
5152
|
+
n(5, f = U.currency);
|
|
5167
5153
|
break;
|
|
5168
5154
|
}
|
|
5169
5155
|
};
|
|
5170
|
-
|
|
5171
|
-
window.
|
|
5156
|
+
Kn(() => (window.addEventListener("message", ht, !1), () => {
|
|
5157
|
+
window.removeEventListener("message", ht);
|
|
5172
5158
|
}));
|
|
5173
|
-
const
|
|
5174
|
-
function
|
|
5175
|
-
|
|
5176
|
-
T = y,
|
|
5159
|
+
const An = () => lt();
|
|
5160
|
+
function Bn(y) {
|
|
5161
|
+
ke[y ? "unshift" : "push"](() => {
|
|
5162
|
+
T = y, n(12, T);
|
|
5177
5163
|
});
|
|
5178
5164
|
}
|
|
5179
5165
|
return e.$$set = (y) => {
|
|
5180
|
-
"depositlimit" in y &&
|
|
5166
|
+
"depositlimit" in y && n(1, i = y.depositlimit), "wageringlimit" in y && n(2, s = y.wageringlimit), "losslimit" in y && n(3, a = y.losslimit), "timelimit" in y && n(4, o = y.timelimit), "showdeletenotification" in y && n(6, u = y.showdeletenotification), "showsuccessnotification" in y && n(7, l = y.showsuccessnotification), "lang" in y && n(0, h = y.lang), "currency" in y && n(5, f = y.currency), "separatelimits" in y && n(8, c = y.separatelimits), "clientstyling" in y && n(9, b = y.clientstyling), "clientstylingurl" in y && n(10, d = y.clientstylingurl), "mbsource" in y && n(11, g = y.mbsource), "translationurl" in y && n(20, p = y.translationurl);
|
|
5181
5167
|
}, e.$$.update = () => {
|
|
5182
5168
|
e.$$.dirty & /*lang*/
|
|
5183
|
-
1 && h &&
|
|
5184
|
-
4608 && b && T &&
|
|
5185
|
-
5120 &&
|
|
5186
|
-
6144 && g && T &&
|
|
5187
|
-
1048576 &&
|
|
5169
|
+
1 && h && Pn(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
5170
|
+
4608 && b && T && ys(T, b), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
5171
|
+
5120 && d && T && _s(T, d), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
5172
|
+
6144 && g && T && vs(T, `${g}.Style`), e.$$.dirty & /*translationurl*/
|
|
5173
|
+
1048576 && p && _();
|
|
5188
5174
|
}, [
|
|
5189
5175
|
h,
|
|
5190
|
-
|
|
5176
|
+
i,
|
|
5191
5177
|
s,
|
|
5192
5178
|
a,
|
|
5193
5179
|
o,
|
|
@@ -5196,29 +5182,29 @@ function Ns(e, t, r) {
|
|
|
5196
5182
|
l,
|
|
5197
5183
|
c,
|
|
5198
5184
|
b,
|
|
5199
|
-
|
|
5185
|
+
d,
|
|
5200
5186
|
g,
|
|
5201
5187
|
T,
|
|
5202
|
-
|
|
5203
|
-
oe,
|
|
5204
|
-
Ie,
|
|
5205
|
-
Ne,
|
|
5206
|
-
i,
|
|
5188
|
+
S,
|
|
5207
5189
|
C,
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5190
|
+
V,
|
|
5191
|
+
Ie,
|
|
5192
|
+
r,
|
|
5193
|
+
P,
|
|
5194
|
+
lt,
|
|
5195
|
+
p,
|
|
5196
|
+
An,
|
|
5197
|
+
Bn
|
|
5212
5198
|
];
|
|
5213
5199
|
}
|
|
5214
|
-
class
|
|
5200
|
+
class Hn extends fr {
|
|
5215
5201
|
constructor(t) {
|
|
5216
|
-
super(),
|
|
5202
|
+
super(), hr(
|
|
5217
5203
|
this,
|
|
5218
5204
|
t,
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5205
|
+
Os,
|
|
5206
|
+
Ss,
|
|
5207
|
+
jt,
|
|
5222
5208
|
{
|
|
5223
5209
|
depositlimit: 1,
|
|
5224
5210
|
wageringlimit: 2,
|
|
@@ -5234,7 +5220,7 @@ class Pr extends di {
|
|
|
5234
5220
|
mbsource: 11,
|
|
5235
5221
|
translationurl: 20
|
|
5236
5222
|
},
|
|
5237
|
-
|
|
5223
|
+
Es
|
|
5238
5224
|
);
|
|
5239
5225
|
}
|
|
5240
5226
|
get depositlimit() {
|
|
@@ -5316,60 +5302,60 @@ class Pr extends di {
|
|
|
5316
5302
|
this.$$set({ translationurl: t }), A();
|
|
5317
5303
|
}
|
|
5318
5304
|
}
|
|
5319
|
-
|
|
5320
|
-
const
|
|
5305
|
+
cr(Hn, { depositlimit: {}, wageringlimit: {}, losslimit: {}, timelimit: {}, showdeletenotification: { type: "Boolean" }, showsuccessnotification: { type: "Boolean" }, lang: {}, currency: {}, separatelimits: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
5306
|
+
const Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5321
5307
|
__proto__: null,
|
|
5322
|
-
default:
|
|
5308
|
+
default: Hn
|
|
5323
5309
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5324
5310
|
export {
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5311
|
+
se as $,
|
|
5312
|
+
ys as A,
|
|
5313
|
+
_s as B,
|
|
5314
|
+
vs as C,
|
|
5315
|
+
X as D,
|
|
5330
5316
|
M as E,
|
|
5331
|
-
|
|
5317
|
+
ps as F,
|
|
5332
5318
|
m as G,
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5319
|
+
Us as H,
|
|
5320
|
+
Zs as I,
|
|
5321
|
+
Gs as J,
|
|
5322
|
+
Ds as K,
|
|
5323
|
+
ks as L,
|
|
5324
|
+
$s as M,
|
|
5325
|
+
Fs as N,
|
|
5340
5326
|
Le as O,
|
|
5341
|
-
|
|
5327
|
+
js as P,
|
|
5342
5328
|
He as Q,
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5329
|
+
Rn as R,
|
|
5330
|
+
fr as S,
|
|
5331
|
+
Xs as T,
|
|
5332
|
+
zs as U,
|
|
5333
|
+
Vs as V,
|
|
5334
|
+
Qs as W,
|
|
5335
|
+
xn as a,
|
|
5336
|
+
jn as b,
|
|
5337
|
+
cr as c,
|
|
5338
|
+
Is as d,
|
|
5339
|
+
O as e,
|
|
5354
5340
|
A as f,
|
|
5355
|
-
|
|
5341
|
+
Z as g,
|
|
5356
5342
|
H as h,
|
|
5357
|
-
|
|
5343
|
+
hr as i,
|
|
5358
5344
|
re as j,
|
|
5359
5345
|
L as k,
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5346
|
+
Vn as l,
|
|
5347
|
+
Rs as m,
|
|
5348
|
+
Ns as n,
|
|
5349
|
+
Zt as o,
|
|
5350
|
+
sr as p,
|
|
5351
|
+
Ws as q,
|
|
5366
5352
|
F as r,
|
|
5367
|
-
|
|
5353
|
+
jt as s,
|
|
5368
5354
|
he as t,
|
|
5369
|
-
|
|
5355
|
+
Cs as u,
|
|
5370
5356
|
j as v,
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5357
|
+
Un as w,
|
|
5358
|
+
gs as x,
|
|
5359
|
+
Kn as y,
|
|
5360
|
+
ke as z
|
|
5375
5361
|
};
|