@everymatrix/player-account-gaming-limits-info-card 1.85.16 → 1.85.18
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/{PlayerAccountGamingLimitsConfirmationModal-yAobuwbi.js → PlayerAccountGamingLimitsConfirmationModal-CPjx_DH_.js} +1276 -1273
- package/components/{PlayerAccountGamingLimitsConfirmationModal-DVh9dEEt.js → PlayerAccountGamingLimitsConfirmationModal-Csrimoqp.js} +1267 -1264
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CBEkVDyZ.cjs → PlayerAccountGamingLimitsConfirmationModal-RcOa0NNg.cjs} +4 -4
- package/components/{PlayerAccountGamingLimitsGroupEdit-C4vWgM8-.js → PlayerAccountGamingLimitsGroupEdit-Ca1m5XU8.js} +4 -4
- package/components/{PlayerAccountGamingLimitsGroupEdit-Dn-vt_Kw.cjs → PlayerAccountGamingLimitsGroupEdit-Cqs__n7J.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-Cqf4zXpD.js → PlayerAccountGamingLimitsGroupEdit-DSun0_Zz.js} +4 -4
- package/components/{PlayerAccountGamingLimitsInfoCard-BTwq0YK4.cjs → PlayerAccountGamingLimitsInfoCard-BQDa_Mg_.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-B9CLblli.js → PlayerAccountGamingLimitsInfoCard-C88f1sX4.js} +3 -3
- package/components/{PlayerAccountGamingLimitsInfoCard-CPNgWL3E.js → PlayerAccountGamingLimitsInfoCard-DzK7V5Rg.js} +3 -3
- package/components/{PlayerAccountGamingLimitsPopup-CYEhaPwh.cjs → PlayerAccountGamingLimitsPopup-4zxoW8_v.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-BAnH62vJ.js → PlayerAccountGamingLimitsPopup-Ce55cV9R.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-CS3xSlME.js → PlayerAccountGamingLimitsPopup-DHSJ1hpq.js} +1 -1
- package/components/{PlayerAccountModal-BXjlt-1C.js → PlayerAccountModal-0pqyx-hh.js} +1 -1
- package/components/{PlayerAccountModal-BodsU70_.js → PlayerAccountModal-AxHHIdPq.js} +1 -1
- package/components/{PlayerAccountModal-BU95Xtx5.cjs → PlayerAccountModal-DJEDpoZF.cjs} +1 -1
- package/es2015/player-account-gaming-limits-info-card.cjs +1 -1
- package/es2015/player-account-gaming-limits-info-card.js +1 -1
- package/esnext/player-account-gaming-limits-info-card.js +1 -1
- package/package.json +1 -1
|
@@ -1,326 +1,326 @@
|
|
|
1
1
|
function L() {
|
|
2
2
|
}
|
|
3
|
-
const Hr = (
|
|
4
|
-
function Cr(
|
|
5
|
-
for (const r in
|
|
6
|
-
|
|
3
|
+
const Hr = (e) => e;
|
|
4
|
+
function Cr(e, t) {
|
|
5
|
+
for (const r in t)
|
|
6
|
+
e[r] = t[r];
|
|
7
7
|
return (
|
|
8
8
|
/** @type {T & S} */
|
|
9
|
-
|
|
9
|
+
e
|
|
10
10
|
);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
return
|
|
12
|
+
function Gt(e) {
|
|
13
|
+
return e();
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function ct() {
|
|
16
16
|
return /* @__PURE__ */ Object.create(null);
|
|
17
17
|
}
|
|
18
|
-
function U(
|
|
19
|
-
|
|
18
|
+
function U(e) {
|
|
19
|
+
e.forEach(Gt);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
return typeof
|
|
21
|
+
function we(e) {
|
|
22
|
+
return typeof e == "function";
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
return
|
|
24
|
+
function Ut(e, t) {
|
|
25
|
+
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
return Object.keys(
|
|
27
|
+
function Ar(e) {
|
|
28
|
+
return Object.keys(e).length === 0;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
if (
|
|
32
|
-
for (const n of
|
|
30
|
+
function Dt(e, ...t) {
|
|
31
|
+
if (e == null) {
|
|
32
|
+
for (const n of t)
|
|
33
33
|
n(void 0);
|
|
34
34
|
return L;
|
|
35
35
|
}
|
|
36
|
-
const r =
|
|
36
|
+
const r = e.subscribe(...t);
|
|
37
37
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
|
|
39
|
+
function Br(e, t, r) {
|
|
40
|
+
e.$$.on_destroy.push(Dt(t, r));
|
|
41
41
|
}
|
|
42
|
-
function Pr(
|
|
43
|
-
if (
|
|
44
|
-
const i =
|
|
45
|
-
return
|
|
42
|
+
function Pr(e, t, r, n) {
|
|
43
|
+
if (e) {
|
|
44
|
+
const i = Ft(e, t, r, n);
|
|
45
|
+
return e[0](i);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
return
|
|
48
|
+
function Ft(e, t, r, n) {
|
|
49
|
+
return e[1] && n ? Cr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
50
50
|
}
|
|
51
|
-
function Or(
|
|
52
|
-
if (
|
|
53
|
-
const i =
|
|
54
|
-
if (
|
|
51
|
+
function Or(e, t, r, n) {
|
|
52
|
+
if (e[2] && n) {
|
|
53
|
+
const i = e[2](n(r));
|
|
54
|
+
if (t.dirty === void 0)
|
|
55
55
|
return i;
|
|
56
56
|
if (typeof i == "object") {
|
|
57
|
-
const o = [], a = Math.max(
|
|
57
|
+
const o = [], a = Math.max(t.dirty.length, i.length);
|
|
58
58
|
for (let s = 0; s < a; s += 1)
|
|
59
|
-
o[s] =
|
|
59
|
+
o[s] = t.dirty[s] | i[s];
|
|
60
60
|
return o;
|
|
61
61
|
}
|
|
62
|
-
return
|
|
62
|
+
return t.dirty | i;
|
|
63
63
|
}
|
|
64
|
-
return
|
|
64
|
+
return t.dirty;
|
|
65
65
|
}
|
|
66
|
-
function Lr(
|
|
66
|
+
function Lr(e, t, r, n, i, o) {
|
|
67
67
|
if (i) {
|
|
68
|
-
const a =
|
|
69
|
-
|
|
68
|
+
const a = Ft(t, r, n, o);
|
|
69
|
+
e.p(a, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function Ir(
|
|
73
|
-
if (
|
|
74
|
-
const
|
|
72
|
+
function Ir(e) {
|
|
73
|
+
if (e.ctx.length > 32) {
|
|
74
|
+
const t = [], r = e.ctx.length / 32;
|
|
75
75
|
for (let n = 0; n < r; n++)
|
|
76
|
-
|
|
77
|
-
return
|
|
76
|
+
t[n] = -1;
|
|
77
|
+
return t;
|
|
78
78
|
}
|
|
79
79
|
return -1;
|
|
80
80
|
}
|
|
81
|
-
const
|
|
82
|
-
let Mr =
|
|
81
|
+
const jt = typeof window < "u";
|
|
82
|
+
let Mr = jt ? () => window.performance.now() : () => Date.now(), ot = jt ? (e) => requestAnimationFrame(e) : L;
|
|
83
83
|
const X = /* @__PURE__ */ new Set();
|
|
84
|
-
function
|
|
85
|
-
X.forEach((
|
|
86
|
-
|
|
87
|
-
}), X.size !== 0 &&
|
|
88
|
-
}
|
|
89
|
-
function Nr(
|
|
90
|
-
let
|
|
91
|
-
return X.size === 0 &&
|
|
84
|
+
function kt(e) {
|
|
85
|
+
X.forEach((t) => {
|
|
86
|
+
t.c(e) || (X.delete(t), t.f());
|
|
87
|
+
}), X.size !== 0 && ot(kt);
|
|
88
|
+
}
|
|
89
|
+
function Nr(e) {
|
|
90
|
+
let t;
|
|
91
|
+
return X.size === 0 && ot(kt), {
|
|
92
92
|
promise: new Promise((r) => {
|
|
93
|
-
X.add(
|
|
93
|
+
X.add(t = { c: e, f: r });
|
|
94
94
|
}),
|
|
95
95
|
abort() {
|
|
96
|
-
X.delete(
|
|
96
|
+
X.delete(t);
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
|
-
function P(
|
|
101
|
-
|
|
100
|
+
function P(e, t) {
|
|
101
|
+
e.appendChild(t);
|
|
102
102
|
}
|
|
103
|
-
function $r(
|
|
104
|
-
const n =
|
|
105
|
-
if (!n.getElementById(
|
|
103
|
+
function $r(e, t, r) {
|
|
104
|
+
const n = st(e);
|
|
105
|
+
if (!n.getElementById(t)) {
|
|
106
106
|
const i = I("style");
|
|
107
|
-
i.id =
|
|
107
|
+
i.id = t, i.textContent = r, Vt(n, i);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
if (!
|
|
110
|
+
function st(e) {
|
|
111
|
+
if (!e)
|
|
112
112
|
return document;
|
|
113
|
-
const
|
|
114
|
-
return
|
|
115
|
-
|
|
113
|
+
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
114
|
+
return t && /** @type {ShadowRoot} */
|
|
115
|
+
t.host ? (
|
|
116
116
|
/** @type {ShadowRoot} */
|
|
117
|
-
|
|
118
|
-
) :
|
|
117
|
+
t
|
|
118
|
+
) : e.ownerDocument;
|
|
119
119
|
}
|
|
120
|
-
function Rr(
|
|
121
|
-
const
|
|
122
|
-
return
|
|
120
|
+
function Rr(e) {
|
|
121
|
+
const t = I("style");
|
|
122
|
+
return t.textContent = "/* empty */", Vt(st(e), t), t.sheet;
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Vt(e, t) {
|
|
125
125
|
return P(
|
|
126
126
|
/** @type {Document} */
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
),
|
|
127
|
+
e.head || e,
|
|
128
|
+
t
|
|
129
|
+
), t.sheet;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
|
|
131
|
+
function at(e, t, r) {
|
|
132
|
+
e.insertBefore(t, r || null);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
|
|
134
|
+
function ae(e) {
|
|
135
|
+
e.parentNode && e.parentNode.removeChild(e);
|
|
136
136
|
}
|
|
137
|
-
function xo(
|
|
138
|
-
for (let r = 0; r <
|
|
139
|
-
|
|
137
|
+
function xo(e, t) {
|
|
138
|
+
for (let r = 0; r < e.length; r += 1)
|
|
139
|
+
e[r] && e[r].d(t);
|
|
140
140
|
}
|
|
141
|
-
function I(
|
|
142
|
-
return document.createElement(
|
|
141
|
+
function I(e) {
|
|
142
|
+
return document.createElement(e);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
return document.createElementNS("http://www.w3.org/2000/svg",
|
|
144
|
+
function ft(e) {
|
|
145
|
+
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
return document.createTextNode(
|
|
147
|
+
function re(e) {
|
|
148
|
+
return document.createTextNode(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
151
|
-
return
|
|
150
|
+
function Pe() {
|
|
151
|
+
return re(" ");
|
|
152
152
|
}
|
|
153
153
|
function Eo() {
|
|
154
|
-
return
|
|
154
|
+
return re("");
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
return
|
|
156
|
+
function Oe(e, t, r, n) {
|
|
157
|
+
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
158
158
|
}
|
|
159
|
-
function wo(
|
|
160
|
-
return function(
|
|
161
|
-
return
|
|
159
|
+
function wo(e) {
|
|
160
|
+
return function(t) {
|
|
161
|
+
return t.preventDefault(), e.call(this, t);
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
function H(
|
|
165
|
-
r == null ?
|
|
164
|
+
function H(e, t, r) {
|
|
165
|
+
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
166
166
|
}
|
|
167
|
-
function So(
|
|
168
|
-
const n =
|
|
169
|
-
n in
|
|
167
|
+
function So(e, t, r) {
|
|
168
|
+
const n = t.toLowerCase();
|
|
169
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : H(e, t, r);
|
|
170
170
|
}
|
|
171
|
-
function To(
|
|
172
|
-
return
|
|
171
|
+
function To(e) {
|
|
172
|
+
return e === "" ? null : +e;
|
|
173
173
|
}
|
|
174
|
-
function Gr(
|
|
175
|
-
return Array.from(
|
|
174
|
+
function Gr(e) {
|
|
175
|
+
return Array.from(e.childNodes);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
function Le(e, t) {
|
|
178
|
+
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
179
|
+
t);
|
|
180
180
|
}
|
|
181
|
-
function Ho(
|
|
182
|
-
|
|
181
|
+
function Ho(e, t) {
|
|
182
|
+
e.value = t ?? "";
|
|
183
183
|
}
|
|
184
|
-
function Co(
|
|
185
|
-
for (let n = 0; n <
|
|
186
|
-
const i =
|
|
187
|
-
if (i.__value ===
|
|
184
|
+
function Co(e, t, r) {
|
|
185
|
+
for (let n = 0; n < e.options.length; n += 1) {
|
|
186
|
+
const i = e.options[n];
|
|
187
|
+
if (i.__value === t) {
|
|
188
188
|
i.selected = !0;
|
|
189
189
|
return;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
(!r ||
|
|
192
|
+
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
const
|
|
196
|
-
return
|
|
194
|
+
function Ao(e) {
|
|
195
|
+
const t = e.querySelector(":checked");
|
|
196
|
+
return t && t.__value;
|
|
197
197
|
}
|
|
198
|
-
function Ur(
|
|
199
|
-
return new CustomEvent(
|
|
198
|
+
function Ur(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
|
|
199
|
+
return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
|
|
200
200
|
}
|
|
201
|
-
function Dr(
|
|
202
|
-
const
|
|
203
|
-
return
|
|
201
|
+
function Dr(e) {
|
|
202
|
+
const t = {};
|
|
203
|
+
return e.childNodes.forEach(
|
|
204
204
|
/** @param {Element} node */
|
|
205
205
|
(r) => {
|
|
206
|
-
|
|
206
|
+
t[r.slot || "default"] = !0;
|
|
207
207
|
}
|
|
208
|
-
),
|
|
208
|
+
), t;
|
|
209
209
|
}
|
|
210
|
-
const
|
|
211
|
-
let
|
|
212
|
-
function Fr(
|
|
213
|
-
let
|
|
210
|
+
const ge = /* @__PURE__ */ new Map();
|
|
211
|
+
let ye = 0;
|
|
212
|
+
function Fr(e) {
|
|
213
|
+
let t = 5381, r = e.length;
|
|
214
214
|
for (; r--; )
|
|
215
|
-
|
|
216
|
-
return
|
|
215
|
+
t = (t << 5) - t ^ e.charCodeAt(r);
|
|
216
|
+
return t >>> 0;
|
|
217
217
|
}
|
|
218
|
-
function jr(
|
|
219
|
-
const r = { stylesheet: Rr(
|
|
220
|
-
return
|
|
218
|
+
function jr(e, t) {
|
|
219
|
+
const r = { stylesheet: Rr(t), rules: {} };
|
|
220
|
+
return ge.set(e, r), r;
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function mt(e, t, r, n, i, o, a, s = 0) {
|
|
223
223
|
const l = 16.666 / n;
|
|
224
224
|
let u = `{
|
|
225
225
|
`;
|
|
226
226
|
for (let v = 0; v <= 1; v += l) {
|
|
227
|
-
const T =
|
|
227
|
+
const T = t + (r - t) * o(v);
|
|
228
228
|
u += v * 100 + `%{${a(T, 1 - T)}}
|
|
229
229
|
`;
|
|
230
230
|
}
|
|
231
231
|
const h = u + `100% {${a(r, 1 - r)}}
|
|
232
|
-
}`, c = `__svelte_${Fr(h)}_${s}`, f =
|
|
232
|
+
}`, c = `__svelte_${Fr(h)}_${s}`, f = st(e), { stylesheet: p, rules: m } = ge.get(f) || jr(f, e);
|
|
233
233
|
m[c] || (m[c] = !0, p.insertRule(`@keyframes ${c} ${h}`, p.cssRules.length));
|
|
234
|
-
const d =
|
|
235
|
-
return
|
|
234
|
+
const d = e.style.animation || "";
|
|
235
|
+
return e.style.animation = `${d ? `${d}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`, ye += 1, c;
|
|
236
236
|
}
|
|
237
|
-
function kr(
|
|
238
|
-
const r = (
|
|
239
|
-
|
|
237
|
+
function kr(e, t) {
|
|
238
|
+
const r = (e.style.animation || "").split(", "), n = r.filter(
|
|
239
|
+
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
240
240
|
// remove all Svelte animations
|
|
241
241
|
), i = r.length - n.length;
|
|
242
|
-
i && (
|
|
242
|
+
i && (e.style.animation = n.join(", "), ye -= i, ye || Vr());
|
|
243
243
|
}
|
|
244
244
|
function Vr() {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
const { ownerNode:
|
|
248
|
-
|
|
249
|
-
}),
|
|
245
|
+
ot(() => {
|
|
246
|
+
ye || (ge.forEach((e) => {
|
|
247
|
+
const { ownerNode: t } = e.stylesheet;
|
|
248
|
+
t && ae(t);
|
|
249
|
+
}), ge.clear());
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
|
-
let
|
|
253
|
-
function
|
|
254
|
-
|
|
252
|
+
let ie;
|
|
253
|
+
function ne(e) {
|
|
254
|
+
ie = e;
|
|
255
255
|
}
|
|
256
256
|
function Xr() {
|
|
257
|
-
if (!
|
|
257
|
+
if (!ie)
|
|
258
258
|
throw new Error("Function called outside component initialization");
|
|
259
|
-
return
|
|
259
|
+
return ie;
|
|
260
260
|
}
|
|
261
|
-
function zr(
|
|
262
|
-
Xr().$$.on_mount.push(
|
|
261
|
+
function zr(e) {
|
|
262
|
+
Xr().$$.on_mount.push(e);
|
|
263
263
|
}
|
|
264
|
-
const V = [],
|
|
264
|
+
const V = [], je = [];
|
|
265
265
|
let z = [];
|
|
266
|
-
const
|
|
267
|
-
let
|
|
266
|
+
const pt = [], Wr = /* @__PURE__ */ Promise.resolve();
|
|
267
|
+
let ke = !1;
|
|
268
268
|
function Zr() {
|
|
269
|
-
|
|
269
|
+
ke || (ke = !0, Wr.then(N));
|
|
270
270
|
}
|
|
271
|
-
function
|
|
272
|
-
z.push(
|
|
271
|
+
function ve(e) {
|
|
272
|
+
z.push(e);
|
|
273
273
|
}
|
|
274
|
-
const
|
|
274
|
+
const Ie = /* @__PURE__ */ new Set();
|
|
275
275
|
let j = 0;
|
|
276
276
|
function N() {
|
|
277
277
|
if (j !== 0)
|
|
278
278
|
return;
|
|
279
|
-
const
|
|
279
|
+
const e = ie;
|
|
280
280
|
do {
|
|
281
281
|
try {
|
|
282
282
|
for (; j < V.length; ) {
|
|
283
|
-
const
|
|
284
|
-
j++,
|
|
283
|
+
const t = V[j];
|
|
284
|
+
j++, ne(t), Qr(t.$$);
|
|
285
285
|
}
|
|
286
|
-
} catch (
|
|
287
|
-
throw V.length = 0, j = 0,
|
|
286
|
+
} catch (t) {
|
|
287
|
+
throw V.length = 0, j = 0, t;
|
|
288
288
|
}
|
|
289
|
-
for (
|
|
290
|
-
|
|
291
|
-
for (let
|
|
292
|
-
const r = z[
|
|
293
|
-
|
|
289
|
+
for (ne(null), V.length = 0, j = 0; je.length; )
|
|
290
|
+
je.pop()();
|
|
291
|
+
for (let t = 0; t < z.length; t += 1) {
|
|
292
|
+
const r = z[t];
|
|
293
|
+
Ie.has(r) || (Ie.add(r), r());
|
|
294
294
|
}
|
|
295
295
|
z.length = 0;
|
|
296
296
|
} while (V.length);
|
|
297
|
-
for (;
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
}
|
|
301
|
-
function Qr(
|
|
302
|
-
if (
|
|
303
|
-
|
|
304
|
-
const
|
|
305
|
-
|
|
297
|
+
for (; pt.length; )
|
|
298
|
+
pt.pop()();
|
|
299
|
+
ke = !1, Ie.clear(), ne(e);
|
|
300
|
+
}
|
|
301
|
+
function Qr(e) {
|
|
302
|
+
if (e.fragment !== null) {
|
|
303
|
+
e.update(), U(e.before_update);
|
|
304
|
+
const t = e.dirty;
|
|
305
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ve);
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
|
-
function Jr(
|
|
309
|
-
const
|
|
310
|
-
z.forEach((n) =>
|
|
308
|
+
function Jr(e) {
|
|
309
|
+
const t = [], r = [];
|
|
310
|
+
z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), z = t;
|
|
311
311
|
}
|
|
312
|
-
let
|
|
312
|
+
let ee;
|
|
313
313
|
function qr() {
|
|
314
|
-
return
|
|
315
|
-
|
|
316
|
-
})),
|
|
314
|
+
return ee || (ee = Promise.resolve(), ee.then(() => {
|
|
315
|
+
ee = null;
|
|
316
|
+
})), ee;
|
|
317
317
|
}
|
|
318
|
-
function
|
|
319
|
-
|
|
318
|
+
function Me(e, t, r) {
|
|
319
|
+
e.dispatchEvent(Ur(`${t ? "intro" : "outro"}${r}`));
|
|
320
320
|
}
|
|
321
|
-
const
|
|
321
|
+
const fe = /* @__PURE__ */ new Set();
|
|
322
322
|
let $;
|
|
323
|
-
function
|
|
323
|
+
function Bo() {
|
|
324
324
|
$ = {
|
|
325
325
|
r: 0,
|
|
326
326
|
c: [],
|
|
@@ -331,24 +331,24 @@ function Ao() {
|
|
|
331
331
|
function Po() {
|
|
332
332
|
$.r || U($.c), $ = $.p;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
335
|
-
|
|
334
|
+
function Xt(e, t) {
|
|
335
|
+
e && e.i && (fe.delete(e), e.i(t));
|
|
336
336
|
}
|
|
337
|
-
function Yr(
|
|
338
|
-
if (
|
|
339
|
-
if (
|
|
337
|
+
function Yr(e, t, r, n) {
|
|
338
|
+
if (e && e.o) {
|
|
339
|
+
if (fe.has(e))
|
|
340
340
|
return;
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
}),
|
|
341
|
+
fe.add(e), $.c.push(() => {
|
|
342
|
+
fe.delete(e), n && (r && e.d(1), n());
|
|
343
|
+
}), e.o(t);
|
|
344
344
|
} else
|
|
345
345
|
n && n();
|
|
346
346
|
}
|
|
347
347
|
const Kr = { duration: 0 };
|
|
348
|
-
function Oo(
|
|
349
|
-
let o = e
|
|
348
|
+
function Oo(e, t, r, n) {
|
|
349
|
+
let o = t(e, r, { direction: "both" }), a = n ? 0 : 1, s = null, l = null, u = null, h;
|
|
350
350
|
function c() {
|
|
351
|
-
u && kr(
|
|
351
|
+
u && kr(e, u);
|
|
352
352
|
}
|
|
353
353
|
function f(m, d) {
|
|
354
354
|
const v = (
|
|
@@ -372,14 +372,14 @@ function Oo(t, e, r, n) {
|
|
|
372
372
|
easing: T = Hr,
|
|
373
373
|
tick: C = L,
|
|
374
374
|
css: S
|
|
375
|
-
} = o || Kr,
|
|
375
|
+
} = o || Kr, A = {
|
|
376
376
|
start: Mr() + d,
|
|
377
377
|
b: m
|
|
378
378
|
};
|
|
379
|
-
m || (
|
|
380
|
-
|
|
381
|
-
if (l && E > l.start && (s = f(l, v), l = null,
|
|
382
|
-
|
|
379
|
+
m || (A.group = $, $.r += 1), "inert" in e && (m ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
|
|
380
|
+
e.inert, e.inert = !0)), s || l ? l = A : (S && (c(), u = mt(e, a, m, v, d, T, S)), m && C(0, 1), s = f(A, v), ve(() => Me(e, m, "start")), Nr((E) => {
|
|
381
|
+
if (l && E > l.start && (s = f(l, v), l = null, Me(e, s.b, "start"), S && (c(), u = mt(
|
|
382
|
+
e,
|
|
383
383
|
a,
|
|
384
384
|
s.b,
|
|
385
385
|
s.duration,
|
|
@@ -388,7 +388,7 @@ function Oo(t, e, r, n) {
|
|
|
388
388
|
o.css
|
|
389
389
|
))), s) {
|
|
390
390
|
if (E >= s.end)
|
|
391
|
-
C(a = s.b, 1 - a),
|
|
391
|
+
C(a = s.b, 1 - a), Me(e, s.b, "end"), l || (s.b ? c() : --s.group.r || U(s.group.c)), s = null;
|
|
392
392
|
else if (E >= s.start) {
|
|
393
393
|
const _ = E - s.start;
|
|
394
394
|
a = s.a + s.d * T(_ / s.duration), C(a, 1 - a);
|
|
@@ -399,7 +399,7 @@ function Oo(t, e, r, n) {
|
|
|
399
399
|
}
|
|
400
400
|
return {
|
|
401
401
|
run(m) {
|
|
402
|
-
|
|
402
|
+
we(o) ? qr().then(() => {
|
|
403
403
|
o = o({ direction: m ? "in" : "out" }), p(m);
|
|
404
404
|
}) : p(m);
|
|
405
405
|
},
|
|
@@ -408,64 +408,64 @@ function Oo(t, e, r, n) {
|
|
|
408
408
|
}
|
|
409
409
|
};
|
|
410
410
|
}
|
|
411
|
-
function Lo(
|
|
412
|
-
return
|
|
411
|
+
function Lo(e) {
|
|
412
|
+
return e?.length !== void 0 ? e : Array.from(e);
|
|
413
413
|
}
|
|
414
|
-
function
|
|
415
|
-
const { fragment: n, after_update: i } =
|
|
416
|
-
n && n.m(
|
|
417
|
-
const o =
|
|
418
|
-
|
|
419
|
-
}), i.forEach(
|
|
414
|
+
function en(e, t, r) {
|
|
415
|
+
const { fragment: n, after_update: i } = e.$$;
|
|
416
|
+
n && n.m(t, r), ve(() => {
|
|
417
|
+
const o = e.$$.on_mount.map(Gt).filter(we);
|
|
418
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : U(o), e.$$.on_mount = [];
|
|
419
|
+
}), i.forEach(ve);
|
|
420
420
|
}
|
|
421
|
-
function
|
|
422
|
-
const r =
|
|
423
|
-
r.fragment !== null && (Jr(r.after_update), U(r.on_destroy), r.fragment && r.fragment.d(
|
|
421
|
+
function tn(e, t) {
|
|
422
|
+
const r = e.$$;
|
|
423
|
+
r.fragment !== null && (Jr(r.after_update), U(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
424
424
|
}
|
|
425
|
-
function rn(
|
|
426
|
-
|
|
425
|
+
function rn(e, t) {
|
|
426
|
+
e.$$.dirty[0] === -1 && (V.push(e), Zr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
427
427
|
}
|
|
428
|
-
function nn(
|
|
429
|
-
const l =
|
|
430
|
-
|
|
431
|
-
const u =
|
|
428
|
+
function nn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
429
|
+
const l = ie;
|
|
430
|
+
ne(e);
|
|
431
|
+
const u = e.$$ = {
|
|
432
432
|
fragment: null,
|
|
433
433
|
ctx: [],
|
|
434
434
|
// state
|
|
435
435
|
props: o,
|
|
436
436
|
update: L,
|
|
437
437
|
not_equal: i,
|
|
438
|
-
bound:
|
|
438
|
+
bound: ct(),
|
|
439
439
|
// lifecycle
|
|
440
440
|
on_mount: [],
|
|
441
441
|
on_destroy: [],
|
|
442
442
|
on_disconnect: [],
|
|
443
443
|
before_update: [],
|
|
444
444
|
after_update: [],
|
|
445
|
-
context: new Map(
|
|
445
|
+
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
446
446
|
// everything else
|
|
447
|
-
callbacks:
|
|
447
|
+
callbacks: ct(),
|
|
448
448
|
dirty: s,
|
|
449
449
|
skip_bound: !1,
|
|
450
|
-
root:
|
|
450
|
+
root: t.target || l.$$.root
|
|
451
451
|
};
|
|
452
452
|
a && a(u.root);
|
|
453
453
|
let h = !1;
|
|
454
|
-
if (u.ctx = r ? r(
|
|
454
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
455
455
|
const m = p.length ? p[0] : f;
|
|
456
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), h && rn(
|
|
457
|
-
}) : [], u.update(), h = !0, U(u.before_update), u.fragment = n ? n(u.ctx) : !1,
|
|
458
|
-
if (
|
|
459
|
-
const c = Gr(
|
|
460
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
456
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), h && rn(e, c)), f;
|
|
457
|
+
}) : [], u.update(), h = !0, U(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
458
|
+
if (t.hydrate) {
|
|
459
|
+
const c = Gr(t.target);
|
|
460
|
+
u.fragment && u.fragment.l(c), c.forEach(ae);
|
|
461
461
|
} else
|
|
462
462
|
u.fragment && u.fragment.c();
|
|
463
|
-
|
|
463
|
+
t.intro && Xt(e.$$.fragment), en(e, t.target, t.anchor), N();
|
|
464
464
|
}
|
|
465
|
-
|
|
465
|
+
ne(l);
|
|
466
466
|
}
|
|
467
|
-
let
|
|
468
|
-
typeof HTMLElement == "function" && (
|
|
467
|
+
let zt;
|
|
468
|
+
typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
469
469
|
/** The Svelte component constructor */
|
|
470
470
|
$$ctor;
|
|
471
471
|
/** Slots */
|
|
@@ -484,25 +484,25 @@ typeof HTMLElement == "function" && (ze = class extends HTMLElement {
|
|
|
484
484
|
$$l = {};
|
|
485
485
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
486
486
|
$$l_u = /* @__PURE__ */ new Map();
|
|
487
|
-
constructor(
|
|
488
|
-
super(), this.$$ctor =
|
|
487
|
+
constructor(e, t, r) {
|
|
488
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
489
489
|
}
|
|
490
|
-
addEventListener(
|
|
491
|
-
if (this.$$l[
|
|
492
|
-
const n = this.$$c.$on(
|
|
493
|
-
this.$$l_u.set(
|
|
490
|
+
addEventListener(e, t, r) {
|
|
491
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
492
|
+
const n = this.$$c.$on(e, t);
|
|
493
|
+
this.$$l_u.set(t, n);
|
|
494
494
|
}
|
|
495
|
-
super.addEventListener(
|
|
495
|
+
super.addEventListener(e, t, r);
|
|
496
496
|
}
|
|
497
|
-
removeEventListener(
|
|
498
|
-
if (super.removeEventListener(
|
|
499
|
-
const n = this.$$l_u.get(
|
|
500
|
-
n && (n(), this.$$l_u.delete(
|
|
497
|
+
removeEventListener(e, t, r) {
|
|
498
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
499
|
+
const n = this.$$l_u.get(t);
|
|
500
|
+
n && (n(), this.$$l_u.delete(t));
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
async connectedCallback() {
|
|
504
504
|
if (this.$$cn = !0, !this.$$c) {
|
|
505
|
-
let
|
|
505
|
+
let e = function(i) {
|
|
506
506
|
return () => {
|
|
507
507
|
let o;
|
|
508
508
|
return {
|
|
@@ -514,22 +514,22 @@ typeof HTMLElement == "function" && (ze = class extends HTMLElement {
|
|
|
514
514
|
* @param {HTMLElement} [anchor]
|
|
515
515
|
*/
|
|
516
516
|
m: function(l, u) {
|
|
517
|
-
|
|
517
|
+
at(l, o, u);
|
|
518
518
|
},
|
|
519
519
|
d: function(l) {
|
|
520
|
-
l &&
|
|
520
|
+
l && ae(o);
|
|
521
521
|
}
|
|
522
522
|
};
|
|
523
523
|
};
|
|
524
524
|
};
|
|
525
525
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
526
526
|
return;
|
|
527
|
-
const
|
|
527
|
+
const t = {}, r = Dr(this);
|
|
528
528
|
for (const i of this.$$s)
|
|
529
|
-
i in r && (
|
|
529
|
+
i in r && (t[i] = [e(i)]);
|
|
530
530
|
for (const i of this.attributes) {
|
|
531
531
|
const o = this.$$g_p(i.name);
|
|
532
|
-
o in this.$$d || (this.$$d[o] =
|
|
532
|
+
o in this.$$d || (this.$$d[o] = me(o, i.value, this.$$p_d, "toProp"));
|
|
533
533
|
}
|
|
534
534
|
for (const i in this.$$p_d)
|
|
535
535
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -537,7 +537,7 @@ typeof HTMLElement == "function" && (ze = class extends HTMLElement {
|
|
|
537
537
|
target: this.shadowRoot || this,
|
|
538
538
|
props: {
|
|
539
539
|
...this.$$d,
|
|
540
|
-
$$slots:
|
|
540
|
+
$$slots: t,
|
|
541
541
|
$$scope: {
|
|
542
542
|
ctx: []
|
|
543
543
|
}
|
|
@@ -547,7 +547,7 @@ typeof HTMLElement == "function" && (ze = class extends HTMLElement {
|
|
|
547
547
|
this.$$r = !0;
|
|
548
548
|
for (const i in this.$$p_d)
|
|
549
549
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
550
|
-
const o =
|
|
550
|
+
const o = me(
|
|
551
551
|
i,
|
|
552
552
|
this.$$d[i],
|
|
553
553
|
this.$$p_d,
|
|
@@ -568,67 +568,67 @@ typeof HTMLElement == "function" && (ze = class extends HTMLElement {
|
|
|
568
568
|
}
|
|
569
569
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
570
570
|
// and setting attributes through setAttribute etc, this is helpful
|
|
571
|
-
attributeChangedCallback(
|
|
572
|
-
this.$$r || (
|
|
571
|
+
attributeChangedCallback(e, t, r) {
|
|
572
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = me(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
573
573
|
}
|
|
574
574
|
disconnectedCallback() {
|
|
575
575
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
576
576
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
577
577
|
});
|
|
578
578
|
}
|
|
579
|
-
$$g_p(
|
|
579
|
+
$$g_p(e) {
|
|
580
580
|
return Object.keys(this.$$p_d).find(
|
|
581
|
-
(
|
|
582
|
-
) ||
|
|
581
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
582
|
+
) || e;
|
|
583
583
|
}
|
|
584
584
|
});
|
|
585
|
-
function
|
|
586
|
-
const i = r[
|
|
587
|
-
if (
|
|
588
|
-
return
|
|
585
|
+
function me(e, t, r, n) {
|
|
586
|
+
const i = r[e]?.type;
|
|
587
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
588
|
+
return t;
|
|
589
589
|
if (n === "toAttribute")
|
|
590
590
|
switch (i) {
|
|
591
591
|
case "Object":
|
|
592
592
|
case "Array":
|
|
593
|
-
return
|
|
593
|
+
return t == null ? null : JSON.stringify(t);
|
|
594
594
|
case "Boolean":
|
|
595
|
-
return
|
|
595
|
+
return t ? "" : null;
|
|
596
596
|
case "Number":
|
|
597
|
-
return
|
|
597
|
+
return t ?? null;
|
|
598
598
|
default:
|
|
599
|
-
return
|
|
599
|
+
return t;
|
|
600
600
|
}
|
|
601
601
|
else
|
|
602
602
|
switch (i) {
|
|
603
603
|
case "Object":
|
|
604
604
|
case "Array":
|
|
605
|
-
return
|
|
605
|
+
return t && JSON.parse(t);
|
|
606
606
|
case "Boolean":
|
|
607
|
-
return
|
|
607
|
+
return t;
|
|
608
608
|
case "Number":
|
|
609
|
-
return
|
|
609
|
+
return t != null ? +t : t;
|
|
610
610
|
default:
|
|
611
|
-
return
|
|
611
|
+
return t;
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
function on(
|
|
615
|
-
let a = class extends
|
|
614
|
+
function on(e, t, r, n, i, o) {
|
|
615
|
+
let a = class extends zt {
|
|
616
616
|
constructor() {
|
|
617
|
-
super(
|
|
617
|
+
super(e, r, i), this.$$p_d = t;
|
|
618
618
|
}
|
|
619
619
|
static get observedAttributes() {
|
|
620
|
-
return Object.keys(
|
|
621
|
-
(s) => (
|
|
620
|
+
return Object.keys(t).map(
|
|
621
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
622
622
|
);
|
|
623
623
|
}
|
|
624
624
|
};
|
|
625
|
-
return Object.keys(
|
|
625
|
+
return Object.keys(t).forEach((s) => {
|
|
626
626
|
Object.defineProperty(a.prototype, s, {
|
|
627
627
|
get() {
|
|
628
628
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
629
629
|
},
|
|
630
630
|
set(l) {
|
|
631
|
-
l =
|
|
631
|
+
l = me(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
|
|
632
632
|
}
|
|
633
633
|
});
|
|
634
634
|
}), n.forEach((s) => {
|
|
@@ -637,7 +637,7 @@ function on(t, e, r, n, i, o) {
|
|
|
637
637
|
return this.$$c?.[s];
|
|
638
638
|
}
|
|
639
639
|
});
|
|
640
|
-
}),
|
|
640
|
+
}), e.element = /** @type {any} */
|
|
641
641
|
a, a;
|
|
642
642
|
}
|
|
643
643
|
class sn {
|
|
@@ -659,7 +659,7 @@ class sn {
|
|
|
659
659
|
$$set = void 0;
|
|
660
660
|
/** @returns {void} */
|
|
661
661
|
$destroy() {
|
|
662
|
-
|
|
662
|
+
tn(this, 1), this.$destroy = L;
|
|
663
663
|
}
|
|
664
664
|
/**
|
|
665
665
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -667,10 +667,10 @@ class sn {
|
|
|
667
667
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
668
668
|
* @returns {() => void}
|
|
669
669
|
*/
|
|
670
|
-
$on(
|
|
671
|
-
if (!
|
|
670
|
+
$on(t, r) {
|
|
671
|
+
if (!we(r))
|
|
672
672
|
return L;
|
|
673
|
-
const n = this.$$.callbacks[
|
|
673
|
+
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
674
674
|
return n.push(r), () => {
|
|
675
675
|
const i = n.indexOf(r);
|
|
676
676
|
i !== -1 && n.splice(i, 1);
|
|
@@ -680,32 +680,34 @@ class sn {
|
|
|
680
680
|
* @param {Partial<Props>} props
|
|
681
681
|
* @returns {void}
|
|
682
682
|
*/
|
|
683
|
-
$set(
|
|
684
|
-
this.$$set && !
|
|
683
|
+
$set(t) {
|
|
684
|
+
this.$$set && !Ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
687
|
const an = "4";
|
|
688
688
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(an);
|
|
689
|
-
function un(
|
|
690
|
-
if (
|
|
689
|
+
function un(e, t) {
|
|
690
|
+
if (e) {
|
|
691
691
|
const r = document.createElement("style");
|
|
692
|
-
r.innerHTML =
|
|
692
|
+
r.innerHTML = t, e.appendChild(r);
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
function ln(
|
|
696
|
-
|
|
695
|
+
function ln(e, t) {
|
|
696
|
+
if (!e || !t)
|
|
697
|
+
return;
|
|
698
|
+
const r = new URL(t);
|
|
697
699
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
698
700
|
const i = document.createElement("style");
|
|
699
|
-
i.innerHTML = n,
|
|
701
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
700
702
|
}).catch((n) => {
|
|
701
703
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
702
704
|
});
|
|
703
705
|
}
|
|
704
|
-
function hn(
|
|
706
|
+
function hn(e, t, r) {
|
|
705
707
|
if (window.emMessageBus) {
|
|
706
708
|
const n = document.createElement("style");
|
|
707
|
-
window.emMessageBus.subscribe(
|
|
708
|
-
n.innerHTML = i,
|
|
709
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
710
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
709
711
|
});
|
|
710
712
|
}
|
|
711
713
|
}
|
|
@@ -723,42 +725,42 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
723
725
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
724
726
|
PERFORMANCE OF THIS SOFTWARE.
|
|
725
727
|
***************************************************************************** */
|
|
726
|
-
var
|
|
727
|
-
return
|
|
728
|
+
var Ve = function(e, t) {
|
|
729
|
+
return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
728
730
|
r.__proto__ = n;
|
|
729
731
|
} || function(r, n) {
|
|
730
732
|
for (var i in n)
|
|
731
733
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
732
|
-
},
|
|
734
|
+
}, Ve(e, t);
|
|
733
735
|
};
|
|
734
|
-
function
|
|
735
|
-
if (typeof
|
|
736
|
-
throw new TypeError("Class extends value " + String(
|
|
737
|
-
|
|
736
|
+
function ue(e, t) {
|
|
737
|
+
if (typeof t != "function" && t !== null)
|
|
738
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
739
|
+
Ve(e, t);
|
|
738
740
|
function r() {
|
|
739
|
-
this.constructor =
|
|
741
|
+
this.constructor = e;
|
|
740
742
|
}
|
|
741
|
-
|
|
743
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
742
744
|
}
|
|
743
|
-
function
|
|
744
|
-
var
|
|
745
|
+
function Xe(e) {
|
|
746
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
745
747
|
if (r)
|
|
746
|
-
return r.call(
|
|
747
|
-
if (
|
|
748
|
+
return r.call(e);
|
|
749
|
+
if (e && typeof e.length == "number")
|
|
748
750
|
return {
|
|
749
751
|
next: function() {
|
|
750
|
-
return
|
|
752
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
751
753
|
}
|
|
752
754
|
};
|
|
753
|
-
throw new TypeError(
|
|
755
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
754
756
|
}
|
|
755
|
-
function
|
|
756
|
-
var r = typeof Symbol == "function" &&
|
|
757
|
+
function ze(e, t) {
|
|
758
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
757
759
|
if (!r)
|
|
758
|
-
return
|
|
759
|
-
var n = r.call(
|
|
760
|
+
return e;
|
|
761
|
+
var n = r.call(e), i, o = [], a;
|
|
760
762
|
try {
|
|
761
|
-
for (; (
|
|
763
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
762
764
|
o.push(i.value);
|
|
763
765
|
} catch (s) {
|
|
764
766
|
a = { error: s };
|
|
@@ -772,60 +774,60 @@ function zt(t, e) {
|
|
|
772
774
|
}
|
|
773
775
|
return o;
|
|
774
776
|
}
|
|
775
|
-
function
|
|
777
|
+
function We(e, t, r) {
|
|
776
778
|
if (arguments.length === 2)
|
|
777
|
-
for (var n = 0, i =
|
|
778
|
-
(o || !(n in
|
|
779
|
-
return
|
|
779
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
780
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
781
|
+
return e.concat(o || t);
|
|
780
782
|
}
|
|
781
|
-
function R(
|
|
782
|
-
return typeof
|
|
783
|
+
function R(e) {
|
|
784
|
+
return typeof e == "function";
|
|
783
785
|
}
|
|
784
|
-
function
|
|
785
|
-
var
|
|
786
|
+
function Wt(e) {
|
|
787
|
+
var t = function(n) {
|
|
786
788
|
Error.call(n), n.stack = new Error().stack;
|
|
787
|
-
}, r = t
|
|
789
|
+
}, r = e(t);
|
|
788
790
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
789
791
|
}
|
|
790
|
-
var
|
|
792
|
+
var Ne = Wt(function(e) {
|
|
791
793
|
return function(r) {
|
|
792
|
-
|
|
794
|
+
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
793
795
|
` + r.map(function(n, i) {
|
|
794
796
|
return i + 1 + ") " + n.toString();
|
|
795
797
|
}).join(`
|
|
796
798
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
797
799
|
};
|
|
798
800
|
});
|
|
799
|
-
function
|
|
800
|
-
if (
|
|
801
|
-
var r =
|
|
802
|
-
0 <= r &&
|
|
801
|
+
function Ze(e, t) {
|
|
802
|
+
if (e) {
|
|
803
|
+
var r = e.indexOf(t);
|
|
804
|
+
0 <= r && e.splice(r, 1);
|
|
803
805
|
}
|
|
804
806
|
}
|
|
805
|
-
var
|
|
806
|
-
function t
|
|
807
|
-
this.initialTeardown =
|
|
807
|
+
var Se = function() {
|
|
808
|
+
function e(t) {
|
|
809
|
+
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
808
810
|
}
|
|
809
|
-
return
|
|
810
|
-
var
|
|
811
|
+
return e.prototype.unsubscribe = function() {
|
|
812
|
+
var t, r, n, i, o;
|
|
811
813
|
if (!this.closed) {
|
|
812
814
|
this.closed = !0;
|
|
813
815
|
var a = this._parentage;
|
|
814
816
|
if (a)
|
|
815
817
|
if (this._parentage = null, Array.isArray(a))
|
|
816
818
|
try {
|
|
817
|
-
for (var s =
|
|
819
|
+
for (var s = Xe(a), l = s.next(); !l.done; l = s.next()) {
|
|
818
820
|
var u = l.value;
|
|
819
821
|
u.remove(this);
|
|
820
822
|
}
|
|
821
823
|
} catch (d) {
|
|
822
|
-
|
|
824
|
+
t = { error: d };
|
|
823
825
|
} finally {
|
|
824
826
|
try {
|
|
825
827
|
l && !l.done && (r = s.return) && r.call(s);
|
|
826
828
|
} finally {
|
|
827
|
-
if (
|
|
828
|
-
throw
|
|
829
|
+
if (t)
|
|
830
|
+
throw t.error;
|
|
829
831
|
}
|
|
830
832
|
}
|
|
831
833
|
else
|
|
@@ -835,18 +837,18 @@ var St = function() {
|
|
|
835
837
|
try {
|
|
836
838
|
h();
|
|
837
839
|
} catch (d) {
|
|
838
|
-
o = d instanceof
|
|
840
|
+
o = d instanceof Ne ? d.errors : [d];
|
|
839
841
|
}
|
|
840
842
|
var c = this._finalizers;
|
|
841
843
|
if (c) {
|
|
842
844
|
this._finalizers = null;
|
|
843
845
|
try {
|
|
844
|
-
for (var f =
|
|
846
|
+
for (var f = Xe(c), p = f.next(); !p.done; p = f.next()) {
|
|
845
847
|
var m = p.value;
|
|
846
848
|
try {
|
|
847
|
-
|
|
849
|
+
dt(m);
|
|
848
850
|
} catch (d) {
|
|
849
|
-
o = o ?? [], d instanceof
|
|
851
|
+
o = o ?? [], d instanceof Ne ? o = We(We([], ze(o)), ze(d.errors)) : o.push(d);
|
|
850
852
|
}
|
|
851
853
|
}
|
|
852
854
|
} catch (d) {
|
|
@@ -861,191 +863,191 @@ var St = function() {
|
|
|
861
863
|
}
|
|
862
864
|
}
|
|
863
865
|
if (o)
|
|
864
|
-
throw new
|
|
866
|
+
throw new Ne(o);
|
|
865
867
|
}
|
|
866
|
-
},
|
|
868
|
+
}, e.prototype.add = function(t) {
|
|
867
869
|
var r;
|
|
868
|
-
if (
|
|
870
|
+
if (t && t !== this)
|
|
869
871
|
if (this.closed)
|
|
870
|
-
|
|
872
|
+
dt(t);
|
|
871
873
|
else {
|
|
872
|
-
if (
|
|
873
|
-
if (
|
|
874
|
+
if (t instanceof e) {
|
|
875
|
+
if (t.closed || t._hasParent(this))
|
|
874
876
|
return;
|
|
875
|
-
|
|
877
|
+
t._addParent(this);
|
|
876
878
|
}
|
|
877
|
-
(this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(
|
|
879
|
+
(this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
|
|
878
880
|
}
|
|
879
|
-
},
|
|
881
|
+
}, e.prototype._hasParent = function(t) {
|
|
880
882
|
var r = this._parentage;
|
|
881
|
-
return r ===
|
|
882
|
-
},
|
|
883
|
+
return r === t || Array.isArray(r) && r.includes(t);
|
|
884
|
+
}, e.prototype._addParent = function(t) {
|
|
883
885
|
var r = this._parentage;
|
|
884
|
-
this._parentage = Array.isArray(r) ? (r.push(
|
|
885
|
-
},
|
|
886
|
+
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
887
|
+
}, e.prototype._removeParent = function(t) {
|
|
886
888
|
var r = this._parentage;
|
|
887
|
-
r ===
|
|
888
|
-
},
|
|
889
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ze(r, t);
|
|
890
|
+
}, e.prototype.remove = function(t) {
|
|
889
891
|
var r = this._finalizers;
|
|
890
|
-
r &&
|
|
891
|
-
},
|
|
892
|
-
var
|
|
893
|
-
return
|
|
894
|
-
}(),
|
|
895
|
-
}(),
|
|
896
|
-
function
|
|
897
|
-
return
|
|
898
|
-
}
|
|
899
|
-
function
|
|
900
|
-
R(
|
|
892
|
+
r && Ze(r, t), t instanceof e && t._removeParent(this);
|
|
893
|
+
}, e.EMPTY = function() {
|
|
894
|
+
var t = new e();
|
|
895
|
+
return t.closed = !0, t;
|
|
896
|
+
}(), e;
|
|
897
|
+
}(), Zt = Se.EMPTY;
|
|
898
|
+
function Qt(e) {
|
|
899
|
+
return e instanceof Se || e && "closed" in e && R(e.remove) && R(e.add) && R(e.unsubscribe);
|
|
900
|
+
}
|
|
901
|
+
function dt(e) {
|
|
902
|
+
R(e) ? e() : e.unsubscribe();
|
|
901
903
|
}
|
|
902
904
|
var cn = {
|
|
903
905
|
Promise: void 0
|
|
904
906
|
}, fn = {
|
|
905
|
-
setTimeout: function(
|
|
907
|
+
setTimeout: function(e, t) {
|
|
906
908
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
907
909
|
r[n - 2] = arguments[n];
|
|
908
|
-
return setTimeout.apply(void 0,
|
|
910
|
+
return setTimeout.apply(void 0, We([e, t], ze(r)));
|
|
909
911
|
},
|
|
910
|
-
clearTimeout: function(
|
|
911
|
-
return clearTimeout(
|
|
912
|
+
clearTimeout: function(e) {
|
|
913
|
+
return clearTimeout(e);
|
|
912
914
|
},
|
|
913
915
|
delegate: void 0
|
|
914
916
|
};
|
|
915
|
-
function mn(
|
|
917
|
+
function mn(e) {
|
|
916
918
|
fn.setTimeout(function() {
|
|
917
|
-
throw
|
|
919
|
+
throw e;
|
|
918
920
|
});
|
|
919
921
|
}
|
|
920
|
-
function
|
|
922
|
+
function bt() {
|
|
921
923
|
}
|
|
922
|
-
function
|
|
923
|
-
|
|
924
|
+
function pe(e) {
|
|
925
|
+
e();
|
|
924
926
|
}
|
|
925
|
-
var
|
|
926
|
-
|
|
927
|
-
function
|
|
928
|
-
var n =
|
|
929
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
927
|
+
var Jt = function(e) {
|
|
928
|
+
ue(t, e);
|
|
929
|
+
function t(r) {
|
|
930
|
+
var n = e.call(this) || this;
|
|
931
|
+
return n.isStopped = !1, r ? (n.destination = r, Qt(r) && r.add(n)) : n.destination = bn, n;
|
|
930
932
|
}
|
|
931
|
-
return
|
|
932
|
-
return new
|
|
933
|
-
},
|
|
933
|
+
return t.create = function(r, n, i) {
|
|
934
|
+
return new Qe(r, n, i);
|
|
935
|
+
}, t.prototype.next = function(r) {
|
|
934
936
|
this.isStopped || this._next(r);
|
|
935
|
-
},
|
|
937
|
+
}, t.prototype.error = function(r) {
|
|
936
938
|
this.isStopped || (this.isStopped = !0, this._error(r));
|
|
937
|
-
},
|
|
939
|
+
}, t.prototype.complete = function() {
|
|
938
940
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
939
|
-
},
|
|
940
|
-
this.closed || (this.isStopped = !0,
|
|
941
|
-
},
|
|
941
|
+
}, t.prototype.unsubscribe = function() {
|
|
942
|
+
this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
|
|
943
|
+
}, t.prototype._next = function(r) {
|
|
942
944
|
this.destination.next(r);
|
|
943
|
-
},
|
|
945
|
+
}, t.prototype._error = function(r) {
|
|
944
946
|
try {
|
|
945
947
|
this.destination.error(r);
|
|
946
948
|
} finally {
|
|
947
949
|
this.unsubscribe();
|
|
948
950
|
}
|
|
949
|
-
},
|
|
951
|
+
}, t.prototype._complete = function() {
|
|
950
952
|
try {
|
|
951
953
|
this.destination.complete();
|
|
952
954
|
} finally {
|
|
953
955
|
this.unsubscribe();
|
|
954
956
|
}
|
|
955
|
-
},
|
|
956
|
-
}(
|
|
957
|
-
function t
|
|
958
|
-
this.partialObserver =
|
|
957
|
+
}, t;
|
|
958
|
+
}(Se), pn = function() {
|
|
959
|
+
function e(t) {
|
|
960
|
+
this.partialObserver = t;
|
|
959
961
|
}
|
|
960
|
-
return
|
|
962
|
+
return e.prototype.next = function(t) {
|
|
961
963
|
var r = this.partialObserver;
|
|
962
964
|
if (r.next)
|
|
963
965
|
try {
|
|
964
|
-
r.next(
|
|
966
|
+
r.next(t);
|
|
965
967
|
} catch (n) {
|
|
966
|
-
|
|
968
|
+
he(n);
|
|
967
969
|
}
|
|
968
|
-
},
|
|
970
|
+
}, e.prototype.error = function(t) {
|
|
969
971
|
var r = this.partialObserver;
|
|
970
972
|
if (r.error)
|
|
971
973
|
try {
|
|
972
|
-
r.error(
|
|
974
|
+
r.error(t);
|
|
973
975
|
} catch (n) {
|
|
974
|
-
|
|
976
|
+
he(n);
|
|
975
977
|
}
|
|
976
978
|
else
|
|
977
|
-
|
|
978
|
-
},
|
|
979
|
-
var
|
|
980
|
-
if (
|
|
979
|
+
he(t);
|
|
980
|
+
}, e.prototype.complete = function() {
|
|
981
|
+
var t = this.partialObserver;
|
|
982
|
+
if (t.complete)
|
|
981
983
|
try {
|
|
982
|
-
|
|
984
|
+
t.complete();
|
|
983
985
|
} catch (r) {
|
|
984
|
-
|
|
986
|
+
he(r);
|
|
985
987
|
}
|
|
986
|
-
},
|
|
987
|
-
}(),
|
|
988
|
-
|
|
989
|
-
function
|
|
990
|
-
var o =
|
|
988
|
+
}, e;
|
|
989
|
+
}(), Qe = function(e) {
|
|
990
|
+
ue(t, e);
|
|
991
|
+
function t(r, n, i) {
|
|
992
|
+
var o = e.call(this) || this, a;
|
|
991
993
|
return R(r) || !r ? a = {
|
|
992
994
|
next: r ?? void 0,
|
|
993
995
|
error: n ?? void 0,
|
|
994
996
|
complete: i ?? void 0
|
|
995
997
|
} : a = r, o.destination = new pn(a), o;
|
|
996
998
|
}
|
|
997
|
-
return
|
|
998
|
-
}(
|
|
999
|
-
function
|
|
1000
|
-
mn(
|
|
999
|
+
return t;
|
|
1000
|
+
}(Jt);
|
|
1001
|
+
function he(e) {
|
|
1002
|
+
mn(e);
|
|
1001
1003
|
}
|
|
1002
|
-
function dn(
|
|
1003
|
-
throw
|
|
1004
|
+
function dn(e) {
|
|
1005
|
+
throw e;
|
|
1004
1006
|
}
|
|
1005
1007
|
var bn = {
|
|
1006
1008
|
closed: !0,
|
|
1007
|
-
next:
|
|
1009
|
+
next: bt,
|
|
1008
1010
|
error: dn,
|
|
1009
|
-
complete:
|
|
1011
|
+
complete: bt
|
|
1010
1012
|
}, gn = function() {
|
|
1011
1013
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1012
1014
|
}();
|
|
1013
|
-
function yn(
|
|
1014
|
-
return
|
|
1015
|
+
function yn(e) {
|
|
1016
|
+
return e;
|
|
1015
1017
|
}
|
|
1016
|
-
function vn(
|
|
1017
|
-
return
|
|
1018
|
-
return
|
|
1018
|
+
function vn(e) {
|
|
1019
|
+
return e.length === 0 ? yn : e.length === 1 ? e[0] : function(r) {
|
|
1020
|
+
return e.reduce(function(n, i) {
|
|
1019
1021
|
return i(n);
|
|
1020
1022
|
}, r);
|
|
1021
1023
|
};
|
|
1022
1024
|
}
|
|
1023
|
-
var
|
|
1024
|
-
function t
|
|
1025
|
-
|
|
1025
|
+
var gt = function() {
|
|
1026
|
+
function e(t) {
|
|
1027
|
+
t && (this._subscribe = t);
|
|
1026
1028
|
}
|
|
1027
|
-
return
|
|
1028
|
-
var r = new
|
|
1029
|
-
return r.source = this, r.operator =
|
|
1030
|
-
},
|
|
1031
|
-
var i = this, o = xn(
|
|
1032
|
-
return
|
|
1029
|
+
return e.prototype.lift = function(t) {
|
|
1030
|
+
var r = new e();
|
|
1031
|
+
return r.source = this, r.operator = t, r;
|
|
1032
|
+
}, e.prototype.subscribe = function(t, r, n) {
|
|
1033
|
+
var i = this, o = xn(t) ? t : new Qe(t, r, n);
|
|
1034
|
+
return pe(function() {
|
|
1033
1035
|
var a = i, s = a.operator, l = a.source;
|
|
1034
1036
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
1035
1037
|
}), o;
|
|
1036
|
-
},
|
|
1038
|
+
}, e.prototype._trySubscribe = function(t) {
|
|
1037
1039
|
try {
|
|
1038
|
-
return this._subscribe(
|
|
1040
|
+
return this._subscribe(t);
|
|
1039
1041
|
} catch (r) {
|
|
1040
|
-
|
|
1042
|
+
t.error(r);
|
|
1041
1043
|
}
|
|
1042
|
-
},
|
|
1044
|
+
}, e.prototype.forEach = function(t, r) {
|
|
1043
1045
|
var n = this;
|
|
1044
|
-
return r =
|
|
1045
|
-
var a = new
|
|
1046
|
+
return r = yt(r), new r(function(i, o) {
|
|
1047
|
+
var a = new Qe({
|
|
1046
1048
|
next: function(s) {
|
|
1047
1049
|
try {
|
|
1048
|
-
|
|
1050
|
+
t(s);
|
|
1049
1051
|
} catch (l) {
|
|
1050
1052
|
o(l), a.unsubscribe();
|
|
1051
1053
|
}
|
|
@@ -1055,18 +1057,18 @@ var ge = function() {
|
|
|
1055
1057
|
});
|
|
1056
1058
|
n.subscribe(a);
|
|
1057
1059
|
});
|
|
1058
|
-
},
|
|
1060
|
+
}, e.prototype._subscribe = function(t) {
|
|
1059
1061
|
var r;
|
|
1060
|
-
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(
|
|
1061
|
-
},
|
|
1062
|
+
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
1063
|
+
}, e.prototype[gn] = function() {
|
|
1062
1064
|
return this;
|
|
1063
|
-
},
|
|
1064
|
-
for (var
|
|
1065
|
-
|
|
1066
|
-
return vn(
|
|
1067
|
-
},
|
|
1065
|
+
}, e.prototype.pipe = function() {
|
|
1066
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
1067
|
+
t[r] = arguments[r];
|
|
1068
|
+
return vn(t)(this);
|
|
1069
|
+
}, e.prototype.toPromise = function(t) {
|
|
1068
1070
|
var r = this;
|
|
1069
|
-
return
|
|
1071
|
+
return t = yt(t), new t(function(n, i) {
|
|
1070
1072
|
var o;
|
|
1071
1073
|
r.subscribe(function(a) {
|
|
1072
1074
|
return o = a;
|
|
@@ -1076,44 +1078,44 @@ var ge = function() {
|
|
|
1076
1078
|
return n(o);
|
|
1077
1079
|
});
|
|
1078
1080
|
});
|
|
1079
|
-
},
|
|
1080
|
-
return new t
|
|
1081
|
-
},
|
|
1081
|
+
}, e.create = function(t) {
|
|
1082
|
+
return new e(t);
|
|
1083
|
+
}, e;
|
|
1082
1084
|
}();
|
|
1083
|
-
function
|
|
1084
|
-
var
|
|
1085
|
-
return (
|
|
1085
|
+
function yt(e) {
|
|
1086
|
+
var t;
|
|
1087
|
+
return (t = e ?? cn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1086
1088
|
}
|
|
1087
|
-
function _n(
|
|
1088
|
-
return
|
|
1089
|
+
function _n(e) {
|
|
1090
|
+
return e && R(e.next) && R(e.error) && R(e.complete);
|
|
1089
1091
|
}
|
|
1090
|
-
function xn(
|
|
1091
|
-
return
|
|
1092
|
+
function xn(e) {
|
|
1093
|
+
return e && e instanceof Jt || _n(e) && Qt(e);
|
|
1092
1094
|
}
|
|
1093
|
-
var En =
|
|
1095
|
+
var En = Wt(function(e) {
|
|
1094
1096
|
return function() {
|
|
1095
|
-
|
|
1097
|
+
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1096
1098
|
};
|
|
1097
|
-
}),
|
|
1098
|
-
|
|
1099
|
-
function
|
|
1100
|
-
var r =
|
|
1099
|
+
}), qt = function(e) {
|
|
1100
|
+
ue(t, e);
|
|
1101
|
+
function t() {
|
|
1102
|
+
var r = e.call(this) || this;
|
|
1101
1103
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
1102
1104
|
}
|
|
1103
|
-
return
|
|
1104
|
-
var n = new
|
|
1105
|
+
return t.prototype.lift = function(r) {
|
|
1106
|
+
var n = new vt(this, this);
|
|
1105
1107
|
return n.operator = r, n;
|
|
1106
|
-
},
|
|
1108
|
+
}, t.prototype._throwIfClosed = function() {
|
|
1107
1109
|
if (this.closed)
|
|
1108
1110
|
throw new En();
|
|
1109
|
-
},
|
|
1111
|
+
}, t.prototype.next = function(r) {
|
|
1110
1112
|
var n = this;
|
|
1111
|
-
|
|
1113
|
+
pe(function() {
|
|
1112
1114
|
var i, o;
|
|
1113
1115
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
1114
1116
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
1115
1117
|
try {
|
|
1116
|
-
for (var a =
|
|
1118
|
+
for (var a = Xe(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
1117
1119
|
var l = s.value;
|
|
1118
1120
|
l.next(r);
|
|
1119
1121
|
}
|
|
@@ -1129,119 +1131,119 @@ var En = We(function(t) {
|
|
|
1129
1131
|
}
|
|
1130
1132
|
}
|
|
1131
1133
|
});
|
|
1132
|
-
},
|
|
1134
|
+
}, t.prototype.error = function(r) {
|
|
1133
1135
|
var n = this;
|
|
1134
|
-
|
|
1136
|
+
pe(function() {
|
|
1135
1137
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
1136
1138
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
1137
1139
|
for (var i = n.observers; i.length; )
|
|
1138
1140
|
i.shift().error(r);
|
|
1139
1141
|
}
|
|
1140
1142
|
});
|
|
1141
|
-
},
|
|
1143
|
+
}, t.prototype.complete = function() {
|
|
1142
1144
|
var r = this;
|
|
1143
|
-
|
|
1145
|
+
pe(function() {
|
|
1144
1146
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
1145
1147
|
r.isStopped = !0;
|
|
1146
1148
|
for (var n = r.observers; n.length; )
|
|
1147
1149
|
n.shift().complete();
|
|
1148
1150
|
}
|
|
1149
1151
|
});
|
|
1150
|
-
},
|
|
1152
|
+
}, t.prototype.unsubscribe = function() {
|
|
1151
1153
|
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
1152
|
-
}, Object.defineProperty(
|
|
1154
|
+
}, Object.defineProperty(t.prototype, "observed", {
|
|
1153
1155
|
get: function() {
|
|
1154
1156
|
var r;
|
|
1155
1157
|
return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
|
|
1156
1158
|
},
|
|
1157
1159
|
enumerable: !1,
|
|
1158
1160
|
configurable: !0
|
|
1159
|
-
}),
|
|
1160
|
-
return this._throwIfClosed(),
|
|
1161
|
-
},
|
|
1161
|
+
}), t.prototype._trySubscribe = function(r) {
|
|
1162
|
+
return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
|
|
1163
|
+
}, t.prototype._subscribe = function(r) {
|
|
1162
1164
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1163
|
-
},
|
|
1165
|
+
}, t.prototype._innerSubscribe = function(r) {
|
|
1164
1166
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
1165
|
-
return o || a ?
|
|
1166
|
-
n.currentObservers = null,
|
|
1167
|
+
return o || a ? Zt : (this.currentObservers = null, s.push(r), new Se(function() {
|
|
1168
|
+
n.currentObservers = null, Ze(s, r);
|
|
1167
1169
|
}));
|
|
1168
|
-
},
|
|
1170
|
+
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1169
1171
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
1170
1172
|
i ? r.error(o) : a && r.complete();
|
|
1171
|
-
},
|
|
1172
|
-
var r = new
|
|
1173
|
+
}, t.prototype.asObservable = function() {
|
|
1174
|
+
var r = new gt();
|
|
1173
1175
|
return r.source = this, r;
|
|
1174
|
-
},
|
|
1175
|
-
return new
|
|
1176
|
-
},
|
|
1177
|
-
}(
|
|
1178
|
-
|
|
1179
|
-
function
|
|
1180
|
-
var i =
|
|
1176
|
+
}, t.create = function(r, n) {
|
|
1177
|
+
return new vt(r, n);
|
|
1178
|
+
}, t;
|
|
1179
|
+
}(gt), vt = function(e) {
|
|
1180
|
+
ue(t, e);
|
|
1181
|
+
function t(r, n) {
|
|
1182
|
+
var i = e.call(this) || this;
|
|
1181
1183
|
return i.destination = r, i.source = n, i;
|
|
1182
1184
|
}
|
|
1183
|
-
return
|
|
1185
|
+
return t.prototype.next = function(r) {
|
|
1184
1186
|
var n, i;
|
|
1185
1187
|
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
|
|
1186
|
-
},
|
|
1188
|
+
}, t.prototype.error = function(r) {
|
|
1187
1189
|
var n, i;
|
|
1188
1190
|
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
|
|
1189
|
-
},
|
|
1191
|
+
}, t.prototype.complete = function() {
|
|
1190
1192
|
var r, n;
|
|
1191
1193
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1192
|
-
},
|
|
1194
|
+
}, t.prototype._subscribe = function(r) {
|
|
1193
1195
|
var n, i;
|
|
1194
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1195
|
-
},
|
|
1196
|
-
}(
|
|
1196
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Zt;
|
|
1197
|
+
}, t;
|
|
1198
|
+
}(qt), Yt = {
|
|
1197
1199
|
now: function() {
|
|
1198
|
-
return (
|
|
1200
|
+
return (Yt.delegate || Date).now();
|
|
1199
1201
|
},
|
|
1200
1202
|
delegate: void 0
|
|
1201
|
-
}, wn = function(
|
|
1202
|
-
|
|
1203
|
-
function
|
|
1204
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1205
|
-
var o =
|
|
1203
|
+
}, wn = function(e) {
|
|
1204
|
+
ue(t, e);
|
|
1205
|
+
function t(r, n, i) {
|
|
1206
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Yt);
|
|
1207
|
+
var o = e.call(this) || this;
|
|
1206
1208
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
1207
1209
|
}
|
|
1208
|
-
return
|
|
1210
|
+
return t.prototype.next = function(r) {
|
|
1209
1211
|
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, l = n._windowTime;
|
|
1210
|
-
i || (o.push(r), !a && o.push(s.now() + l)), this._trimBuffer(),
|
|
1211
|
-
},
|
|
1212
|
+
i || (o.push(r), !a && o.push(s.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1213
|
+
}, t.prototype._subscribe = function(r) {
|
|
1212
1214
|
this._throwIfClosed(), this._trimBuffer();
|
|
1213
1215
|
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), l = 0; l < s.length && !r.closed; l += o ? 1 : 2)
|
|
1214
1216
|
r.next(s[l]);
|
|
1215
1217
|
return this._checkFinalizedStatuses(r), n;
|
|
1216
|
-
},
|
|
1218
|
+
}, t.prototype._trimBuffer = function() {
|
|
1217
1219
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
|
|
1218
1220
|
if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1219
1221
|
for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
1220
1222
|
u = h;
|
|
1221
1223
|
u && o.splice(0, u + 1);
|
|
1222
1224
|
}
|
|
1223
|
-
},
|
|
1224
|
-
}(
|
|
1225
|
-
const
|
|
1226
|
-
if (
|
|
1227
|
-
const r = new wn(
|
|
1228
|
-
|
|
1225
|
+
}, t;
|
|
1226
|
+
}(qt);
|
|
1227
|
+
const _t = [], xt = {}, Sn = (e, t = 0) => {
|
|
1228
|
+
if (_t.indexOf(e) == -1) {
|
|
1229
|
+
const r = new wn(t);
|
|
1230
|
+
xt[e] = r, _t.push(e);
|
|
1229
1231
|
}
|
|
1230
|
-
return
|
|
1232
|
+
return xt[e];
|
|
1231
1233
|
}, k = [];
|
|
1232
|
-
function Tn(
|
|
1234
|
+
function Tn(e, t) {
|
|
1233
1235
|
return {
|
|
1234
|
-
subscribe:
|
|
1236
|
+
subscribe: Te(e, t).subscribe
|
|
1235
1237
|
};
|
|
1236
1238
|
}
|
|
1237
|
-
function
|
|
1239
|
+
function Te(e, t = L) {
|
|
1238
1240
|
let r;
|
|
1239
1241
|
const n = /* @__PURE__ */ new Set();
|
|
1240
1242
|
function i(s) {
|
|
1241
|
-
if (
|
|
1243
|
+
if (Ut(e, s) && (e = s, r)) {
|
|
1242
1244
|
const l = !k.length;
|
|
1243
1245
|
for (const u of n)
|
|
1244
|
-
u[1](), k.push(u,
|
|
1246
|
+
u[1](), k.push(u, e);
|
|
1245
1247
|
if (l) {
|
|
1246
1248
|
for (let u = 0; u < k.length; u += 2)
|
|
1247
1249
|
k[u][0](k[u + 1]);
|
|
@@ -1250,21 +1252,21 @@ function Tt(t, e = L) {
|
|
|
1250
1252
|
}
|
|
1251
1253
|
}
|
|
1252
1254
|
function o(s) {
|
|
1253
|
-
i(s(
|
|
1255
|
+
i(s(e));
|
|
1254
1256
|
}
|
|
1255
1257
|
function a(s, l = L) {
|
|
1256
1258
|
const u = [s, l];
|
|
1257
|
-
return n.add(u), n.size === 1 && (r =
|
|
1259
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || L), s(e), () => {
|
|
1258
1260
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1259
1261
|
};
|
|
1260
1262
|
}
|
|
1261
1263
|
return { set: i, update: o, subscribe: a };
|
|
1262
1264
|
}
|
|
1263
|
-
function q(
|
|
1264
|
-
const n = !Array.isArray(
|
|
1265
|
+
function q(e, t, r) {
|
|
1266
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1265
1267
|
if (!i.every(Boolean))
|
|
1266
1268
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1267
|
-
const o =
|
|
1269
|
+
const o = t.length < 2;
|
|
1268
1270
|
return Tn(r, (a, s) => {
|
|
1269
1271
|
let l = !1;
|
|
1270
1272
|
const u = [];
|
|
@@ -1273,10 +1275,10 @@ function q(t, e, r) {
|
|
|
1273
1275
|
if (h)
|
|
1274
1276
|
return;
|
|
1275
1277
|
c();
|
|
1276
|
-
const m =
|
|
1277
|
-
o ? a(m) : c =
|
|
1278
|
+
const m = t(n ? u[0] : u, a, s);
|
|
1279
|
+
o ? a(m) : c = we(m) ? m : L;
|
|
1278
1280
|
}, p = i.map(
|
|
1279
|
-
(m, d) =>
|
|
1281
|
+
(m, d) => Dt(
|
|
1280
1282
|
m,
|
|
1281
1283
|
(v) => {
|
|
1282
1284
|
u[d] = v, h &= ~(1 << d), l && f();
|
|
@@ -1291,236 +1293,236 @@ function q(t, e, r) {
|
|
|
1291
1293
|
};
|
|
1292
1294
|
});
|
|
1293
1295
|
}
|
|
1294
|
-
function Hn(
|
|
1295
|
-
return
|
|
1296
|
+
function Hn(e) {
|
|
1297
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1296
1298
|
}
|
|
1297
|
-
var Cn = function(
|
|
1298
|
-
return
|
|
1299
|
+
var Cn = function(t) {
|
|
1300
|
+
return An(t) && !Bn(t);
|
|
1299
1301
|
};
|
|
1300
|
-
function
|
|
1301
|
-
return !!
|
|
1302
|
+
function An(e) {
|
|
1303
|
+
return !!e && typeof e == "object";
|
|
1302
1304
|
}
|
|
1303
|
-
function
|
|
1304
|
-
var
|
|
1305
|
-
return
|
|
1305
|
+
function Bn(e) {
|
|
1306
|
+
var t = Object.prototype.toString.call(e);
|
|
1307
|
+
return t === "[object RegExp]" || t === "[object Date]" || Ln(e);
|
|
1306
1308
|
}
|
|
1307
1309
|
var Pn = typeof Symbol == "function" && Symbol.for, On = Pn ? Symbol.for("react.element") : 60103;
|
|
1308
|
-
function Ln(
|
|
1309
|
-
return
|
|
1310
|
+
function Ln(e) {
|
|
1311
|
+
return e.$$typeof === On;
|
|
1310
1312
|
}
|
|
1311
|
-
function In(
|
|
1312
|
-
return Array.isArray(
|
|
1313
|
+
function In(e) {
|
|
1314
|
+
return Array.isArray(e) ? [] : {};
|
|
1313
1315
|
}
|
|
1314
|
-
function
|
|
1315
|
-
return
|
|
1316
|
+
function oe(e, t) {
|
|
1317
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? W(In(e), e, t) : e;
|
|
1316
1318
|
}
|
|
1317
|
-
function Mn(
|
|
1318
|
-
return
|
|
1319
|
-
return
|
|
1319
|
+
function Mn(e, t, r) {
|
|
1320
|
+
return e.concat(t).map(function(n) {
|
|
1321
|
+
return oe(n, r);
|
|
1320
1322
|
});
|
|
1321
1323
|
}
|
|
1322
|
-
function Nn(
|
|
1323
|
-
if (!
|
|
1324
|
+
function Nn(e, t) {
|
|
1325
|
+
if (!t.customMerge)
|
|
1324
1326
|
return W;
|
|
1325
|
-
var r =
|
|
1327
|
+
var r = t.customMerge(e);
|
|
1326
1328
|
return typeof r == "function" ? r : W;
|
|
1327
1329
|
}
|
|
1328
|
-
function $n(
|
|
1329
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(
|
|
1330
|
-
return Object.propertyIsEnumerable.call(
|
|
1330
|
+
function $n(e) {
|
|
1331
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1332
|
+
return Object.propertyIsEnumerable.call(e, t);
|
|
1331
1333
|
}) : [];
|
|
1332
1334
|
}
|
|
1333
|
-
function
|
|
1334
|
-
return Object.keys(
|
|
1335
|
+
function Et(e) {
|
|
1336
|
+
return Object.keys(e).concat($n(e));
|
|
1335
1337
|
}
|
|
1336
|
-
function
|
|
1338
|
+
function Kt(e, t) {
|
|
1337
1339
|
try {
|
|
1338
|
-
return
|
|
1340
|
+
return t in e;
|
|
1339
1341
|
} catch {
|
|
1340
1342
|
return !1;
|
|
1341
1343
|
}
|
|
1342
1344
|
}
|
|
1343
|
-
function Rn(
|
|
1344
|
-
return
|
|
1345
|
+
function Rn(e, t) {
|
|
1346
|
+
return Kt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1345
1347
|
}
|
|
1346
|
-
function Gn(
|
|
1348
|
+
function Gn(e, t, r) {
|
|
1347
1349
|
var n = {};
|
|
1348
|
-
return r.isMergeableObject(
|
|
1349
|
-
n[i] =
|
|
1350
|
-
}),
|
|
1351
|
-
Rn(
|
|
1350
|
+
return r.isMergeableObject(e) && Et(e).forEach(function(i) {
|
|
1351
|
+
n[i] = oe(e[i], r);
|
|
1352
|
+
}), Et(t).forEach(function(i) {
|
|
1353
|
+
Rn(e, i) || (Kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Nn(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
|
|
1352
1354
|
}), n;
|
|
1353
1355
|
}
|
|
1354
|
-
function W(
|
|
1355
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Mn, r.isMergeableObject = r.isMergeableObject || Cn, r.cloneUnlessOtherwiseSpecified =
|
|
1356
|
-
var n = Array.isArray(
|
|
1357
|
-
return o ? n ? r.arrayMerge(
|
|
1356
|
+
function W(e, t, r) {
|
|
1357
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Mn, r.isMergeableObject = r.isMergeableObject || Cn, r.cloneUnlessOtherwiseSpecified = oe;
|
|
1358
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1359
|
+
return o ? n ? r.arrayMerge(e, t, r) : Gn(e, t, r) : oe(t, r);
|
|
1358
1360
|
}
|
|
1359
|
-
W.all = function(
|
|
1360
|
-
if (!Array.isArray(
|
|
1361
|
+
W.all = function(t, r) {
|
|
1362
|
+
if (!Array.isArray(t))
|
|
1361
1363
|
throw new Error("first argument should be an array");
|
|
1362
|
-
return
|
|
1364
|
+
return t.reduce(function(n, i) {
|
|
1363
1365
|
return W(n, i, r);
|
|
1364
1366
|
}, {});
|
|
1365
1367
|
};
|
|
1366
1368
|
var Un = W, Dn = Un;
|
|
1367
1369
|
const Fn = /* @__PURE__ */ Hn(Dn);
|
|
1368
|
-
var
|
|
1369
|
-
return
|
|
1370
|
+
var Je = function(e, t) {
|
|
1371
|
+
return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1370
1372
|
r.__proto__ = n;
|
|
1371
1373
|
} || function(r, n) {
|
|
1372
1374
|
for (var i in n)
|
|
1373
1375
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1374
|
-
},
|
|
1376
|
+
}, Je(e, t);
|
|
1375
1377
|
};
|
|
1376
|
-
function
|
|
1377
|
-
if (typeof
|
|
1378
|
-
throw new TypeError("Class extends value " + String(
|
|
1379
|
-
|
|
1378
|
+
function He(e, t) {
|
|
1379
|
+
if (typeof t != "function" && t !== null)
|
|
1380
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1381
|
+
Je(e, t);
|
|
1380
1382
|
function r() {
|
|
1381
|
-
this.constructor =
|
|
1383
|
+
this.constructor = e;
|
|
1382
1384
|
}
|
|
1383
|
-
|
|
1385
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1384
1386
|
}
|
|
1385
1387
|
var M = function() {
|
|
1386
|
-
return M = Object.assign || function(
|
|
1388
|
+
return M = Object.assign || function(t) {
|
|
1387
1389
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1388
1390
|
r = arguments[n];
|
|
1389
1391
|
for (var o in r)
|
|
1390
|
-
Object.prototype.hasOwnProperty.call(r, o) && (
|
|
1392
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1391
1393
|
}
|
|
1392
|
-
return
|
|
1394
|
+
return t;
|
|
1393
1395
|
}, M.apply(this, arguments);
|
|
1394
1396
|
};
|
|
1395
|
-
function jn(
|
|
1397
|
+
function jn(e, t) {
|
|
1396
1398
|
var r = {};
|
|
1397
|
-
for (var n in
|
|
1398
|
-
Object.prototype.hasOwnProperty.call(
|
|
1399
|
-
if (
|
|
1400
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(
|
|
1401
|
-
|
|
1399
|
+
for (var n in e)
|
|
1400
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1401
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1402
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1403
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1402
1404
|
return r;
|
|
1403
1405
|
}
|
|
1404
|
-
function $
|
|
1406
|
+
function $e(e, t, r) {
|
|
1405
1407
|
if (r || arguments.length === 2)
|
|
1406
|
-
for (var n = 0, i =
|
|
1407
|
-
(o || !(n in
|
|
1408
|
-
return
|
|
1408
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1409
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1410
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1409
1411
|
}
|
|
1410
|
-
function
|
|
1411
|
-
var r =
|
|
1412
|
-
return i(
|
|
1412
|
+
function Re(e, t) {
|
|
1413
|
+
var r = t && t.cache ? t.cache : Qn, n = t && t.serializer ? t.serializer : Wn, i = t && t.strategy ? t.strategy : Xn;
|
|
1414
|
+
return i(e, {
|
|
1413
1415
|
cache: r,
|
|
1414
1416
|
serializer: n
|
|
1415
1417
|
});
|
|
1416
1418
|
}
|
|
1417
|
-
function kn(
|
|
1418
|
-
return
|
|
1419
|
+
function kn(e) {
|
|
1420
|
+
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1419
1421
|
}
|
|
1420
|
-
function Vn(
|
|
1421
|
-
var i = kn(n) ? n : r(n), o =
|
|
1422
|
-
return typeof o > "u" && (o =
|
|
1422
|
+
function Vn(e, t, r, n) {
|
|
1423
|
+
var i = kn(n) ? n : r(n), o = t.get(i);
|
|
1424
|
+
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1423
1425
|
}
|
|
1424
|
-
function
|
|
1425
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o =
|
|
1426
|
-
return typeof o > "u" && (o =
|
|
1426
|
+
function er(e, t, r) {
|
|
1427
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1428
|
+
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1427
1429
|
}
|
|
1428
|
-
function
|
|
1429
|
-
return r.bind(
|
|
1430
|
+
function tr(e, t, r, n, i) {
|
|
1431
|
+
return r.bind(t, e, n, i);
|
|
1430
1432
|
}
|
|
1431
|
-
function Xn(
|
|
1432
|
-
var r =
|
|
1433
|
-
return
|
|
1433
|
+
function Xn(e, t) {
|
|
1434
|
+
var r = e.length === 1 ? Vn : er;
|
|
1435
|
+
return tr(e, this, r, t.cache.create(), t.serializer);
|
|
1434
1436
|
}
|
|
1435
|
-
function zn(
|
|
1436
|
-
return
|
|
1437
|
+
function zn(e, t) {
|
|
1438
|
+
return tr(e, this, er, t.cache.create(), t.serializer);
|
|
1437
1439
|
}
|
|
1438
1440
|
var Wn = function() {
|
|
1439
1441
|
return JSON.stringify(arguments);
|
|
1440
1442
|
}, Zn = (
|
|
1441
1443
|
/** @class */
|
|
1442
1444
|
function() {
|
|
1443
|
-
function
|
|
1445
|
+
function e() {
|
|
1444
1446
|
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1445
1447
|
}
|
|
1446
|
-
return
|
|
1447
|
-
return this.cache[
|
|
1448
|
-
},
|
|
1449
|
-
this.cache[
|
|
1450
|
-
},
|
|
1448
|
+
return e.prototype.get = function(t) {
|
|
1449
|
+
return this.cache[t];
|
|
1450
|
+
}, e.prototype.set = function(t, r) {
|
|
1451
|
+
this.cache[t] = r;
|
|
1452
|
+
}, e;
|
|
1451
1453
|
}()
|
|
1452
1454
|
), Qn = {
|
|
1453
1455
|
create: function() {
|
|
1454
1456
|
return new Zn();
|
|
1455
1457
|
}
|
|
1456
|
-
},
|
|
1458
|
+
}, Ge = {
|
|
1457
1459
|
variadic: zn
|
|
1458
|
-
},
|
|
1459
|
-
return
|
|
1460
|
+
}, _e = function() {
|
|
1461
|
+
return _e = Object.assign || function(t) {
|
|
1460
1462
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1461
1463
|
r = arguments[n];
|
|
1462
1464
|
for (var o in r)
|
|
1463
|
-
Object.prototype.hasOwnProperty.call(r, o) && (
|
|
1465
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1464
1466
|
}
|
|
1465
|
-
return
|
|
1466
|
-
},
|
|
1467
|
+
return t;
|
|
1468
|
+
}, _e.apply(this, arguments);
|
|
1467
1469
|
};
|
|
1468
1470
|
var b;
|
|
1469
|
-
(function(
|
|
1470
|
-
|
|
1471
|
+
(function(e) {
|
|
1472
|
+
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";
|
|
1471
1473
|
})(b || (b = {}));
|
|
1472
1474
|
var x;
|
|
1473
|
-
(function(
|
|
1474
|
-
|
|
1475
|
+
(function(e) {
|
|
1476
|
+
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";
|
|
1475
1477
|
})(x || (x = {}));
|
|
1476
1478
|
var Z;
|
|
1477
|
-
(function(
|
|
1478
|
-
|
|
1479
|
+
(function(e) {
|
|
1480
|
+
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1479
1481
|
})(Z || (Z = {}));
|
|
1480
|
-
function
|
|
1481
|
-
return
|
|
1482
|
+
function wt(e) {
|
|
1483
|
+
return e.type === x.literal;
|
|
1482
1484
|
}
|
|
1483
|
-
function Jn(
|
|
1484
|
-
return
|
|
1485
|
+
function Jn(e) {
|
|
1486
|
+
return e.type === x.argument;
|
|
1485
1487
|
}
|
|
1486
|
-
function rr(
|
|
1487
|
-
return
|
|
1488
|
+
function rr(e) {
|
|
1489
|
+
return e.type === x.number;
|
|
1488
1490
|
}
|
|
1489
|
-
function nr(
|
|
1490
|
-
return
|
|
1491
|
+
function nr(e) {
|
|
1492
|
+
return e.type === x.date;
|
|
1491
1493
|
}
|
|
1492
|
-
function ir(
|
|
1493
|
-
return
|
|
1494
|
+
function ir(e) {
|
|
1495
|
+
return e.type === x.time;
|
|
1494
1496
|
}
|
|
1495
|
-
function or(
|
|
1496
|
-
return
|
|
1497
|
+
function or(e) {
|
|
1498
|
+
return e.type === x.select;
|
|
1497
1499
|
}
|
|
1498
|
-
function sr(
|
|
1499
|
-
return
|
|
1500
|
+
function sr(e) {
|
|
1501
|
+
return e.type === x.plural;
|
|
1500
1502
|
}
|
|
1501
|
-
function qn(
|
|
1502
|
-
return
|
|
1503
|
+
function qn(e) {
|
|
1504
|
+
return e.type === x.pound;
|
|
1503
1505
|
}
|
|
1504
|
-
function ar(
|
|
1505
|
-
return
|
|
1506
|
+
function ar(e) {
|
|
1507
|
+
return e.type === x.tag;
|
|
1506
1508
|
}
|
|
1507
|
-
function ur(
|
|
1508
|
-
return !!(
|
|
1509
|
+
function ur(e) {
|
|
1510
|
+
return !!(e && typeof e == "object" && e.type === Z.number);
|
|
1509
1511
|
}
|
|
1510
|
-
function
|
|
1511
|
-
return !!(
|
|
1512
|
+
function qe(e) {
|
|
1513
|
+
return !!(e && typeof e == "object" && e.type === Z.dateTime);
|
|
1512
1514
|
}
|
|
1513
1515
|
var lr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Yn = /(?:[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;
|
|
1514
|
-
function Kn(
|
|
1515
|
-
var
|
|
1516
|
-
return
|
|
1516
|
+
function Kn(e) {
|
|
1517
|
+
var t = {};
|
|
1518
|
+
return e.replace(Yn, function(r) {
|
|
1517
1519
|
var n = r.length;
|
|
1518
1520
|
switch (r[0]) {
|
|
1519
1521
|
case "G":
|
|
1520
|
-
|
|
1522
|
+
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1521
1523
|
break;
|
|
1522
1524
|
case "y":
|
|
1523
|
-
|
|
1525
|
+
t.year = n === 2 ? "2-digit" : "numeric";
|
|
1524
1526
|
break;
|
|
1525
1527
|
case "Y":
|
|
1526
1528
|
case "u":
|
|
@@ -1532,64 +1534,64 @@ function Kn(t) {
|
|
|
1532
1534
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1533
1535
|
case "M":
|
|
1534
1536
|
case "L":
|
|
1535
|
-
|
|
1537
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
1536
1538
|
break;
|
|
1537
1539
|
case "w":
|
|
1538
1540
|
case "W":
|
|
1539
1541
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
1540
1542
|
case "d":
|
|
1541
|
-
|
|
1543
|
+
t.day = ["numeric", "2-digit"][n - 1];
|
|
1542
1544
|
break;
|
|
1543
1545
|
case "D":
|
|
1544
1546
|
case "F":
|
|
1545
1547
|
case "g":
|
|
1546
1548
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1547
1549
|
case "E":
|
|
1548
|
-
|
|
1550
|
+
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1549
1551
|
break;
|
|
1550
1552
|
case "e":
|
|
1551
1553
|
if (n < 4)
|
|
1552
1554
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1553
|
-
|
|
1555
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1554
1556
|
break;
|
|
1555
1557
|
case "c":
|
|
1556
1558
|
if (n < 4)
|
|
1557
1559
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1558
|
-
|
|
1560
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1559
1561
|
break;
|
|
1560
1562
|
case "a":
|
|
1561
|
-
|
|
1563
|
+
t.hour12 = !0;
|
|
1562
1564
|
break;
|
|
1563
1565
|
case "b":
|
|
1564
1566
|
case "B":
|
|
1565
1567
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1566
1568
|
case "h":
|
|
1567
|
-
|
|
1569
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1568
1570
|
break;
|
|
1569
1571
|
case "H":
|
|
1570
|
-
|
|
1572
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1571
1573
|
break;
|
|
1572
1574
|
case "K":
|
|
1573
|
-
|
|
1575
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1574
1576
|
break;
|
|
1575
1577
|
case "k":
|
|
1576
|
-
|
|
1578
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1577
1579
|
break;
|
|
1578
1580
|
case "j":
|
|
1579
1581
|
case "J":
|
|
1580
1582
|
case "C":
|
|
1581
1583
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1582
1584
|
case "m":
|
|
1583
|
-
|
|
1585
|
+
t.minute = ["numeric", "2-digit"][n - 1];
|
|
1584
1586
|
break;
|
|
1585
1587
|
case "s":
|
|
1586
|
-
|
|
1588
|
+
t.second = ["numeric", "2-digit"][n - 1];
|
|
1587
1589
|
break;
|
|
1588
1590
|
case "S":
|
|
1589
1591
|
case "A":
|
|
1590
1592
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1591
1593
|
case "z":
|
|
1592
|
-
|
|
1594
|
+
t.timeZoneName = n < 4 ? "short" : "long";
|
|
1593
1595
|
break;
|
|
1594
1596
|
case "Z":
|
|
1595
1597
|
case "O":
|
|
@@ -1600,25 +1602,25 @@ function Kn(t) {
|
|
|
1600
1602
|
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
|
|
1601
1603
|
}
|
|
1602
1604
|
return "";
|
|
1603
|
-
}),
|
|
1605
|
+
}), t;
|
|
1604
1606
|
}
|
|
1605
1607
|
var w = function() {
|
|
1606
|
-
return w = Object.assign || function(
|
|
1608
|
+
return w = Object.assign || function(t) {
|
|
1607
1609
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1608
1610
|
r = arguments[n];
|
|
1609
1611
|
for (var o in r)
|
|
1610
|
-
Object.prototype.hasOwnProperty.call(r, o) && (
|
|
1612
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1611
1613
|
}
|
|
1612
|
-
return
|
|
1614
|
+
return t;
|
|
1613
1615
|
}, w.apply(this, arguments);
|
|
1614
1616
|
};
|
|
1615
|
-
var
|
|
1616
|
-
function
|
|
1617
|
-
if (
|
|
1617
|
+
var ei = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1618
|
+
function ti(e) {
|
|
1619
|
+
if (e.length === 0)
|
|
1618
1620
|
throw new Error("Number skeleton cannot be empty");
|
|
1619
|
-
for (var
|
|
1621
|
+
for (var t = e.split(ei).filter(function(f) {
|
|
1620
1622
|
return f.length > 0;
|
|
1621
|
-
}), r = [], n = 0, i =
|
|
1623
|
+
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1622
1624
|
var o = i[n], a = o.split("/");
|
|
1623
1625
|
if (a.length === 0)
|
|
1624
1626
|
throw new Error("Invalid number skeleton");
|
|
@@ -1631,18 +1633,18 @@ function ei(t) {
|
|
|
1631
1633
|
}
|
|
1632
1634
|
return r;
|
|
1633
1635
|
}
|
|
1634
|
-
function ri(
|
|
1635
|
-
return
|
|
1636
|
+
function ri(e) {
|
|
1637
|
+
return e.replace(/^(.*?)-/, "");
|
|
1636
1638
|
}
|
|
1637
|
-
var
|
|
1638
|
-
function
|
|
1639
|
-
var
|
|
1640
|
-
return
|
|
1641
|
-
return typeof i != "string" ? (
|
|
1642
|
-
}),
|
|
1639
|
+
var St = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, hr = /^(@+)?(\+|#+)?[rs]?$/g, ni = /(\*)(0+)|(#+)(0+)|(0+)/g, cr = /^(0+)$/;
|
|
1640
|
+
function Tt(e) {
|
|
1641
|
+
var t = {};
|
|
1642
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(hr, function(r, n, i) {
|
|
1643
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1644
|
+
}), t;
|
|
1643
1645
|
}
|
|
1644
|
-
function fr(
|
|
1645
|
-
switch (
|
|
1646
|
+
function fr(e) {
|
|
1647
|
+
switch (e) {
|
|
1646
1648
|
case "sign-auto":
|
|
1647
1649
|
return {
|
|
1648
1650
|
signDisplay: "auto"
|
|
@@ -1681,113 +1683,113 @@ function fr(t) {
|
|
|
1681
1683
|
};
|
|
1682
1684
|
}
|
|
1683
1685
|
}
|
|
1684
|
-
function ii(
|
|
1685
|
-
var
|
|
1686
|
-
if (
|
|
1686
|
+
function ii(e) {
|
|
1687
|
+
var t;
|
|
1688
|
+
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1687
1689
|
notation: "engineering"
|
|
1688
|
-
},
|
|
1690
|
+
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1689
1691
|
notation: "scientific"
|
|
1690
|
-
},
|
|
1691
|
-
var r =
|
|
1692
|
-
if (r === "+!" ? (
|
|
1692
|
+
}, e = e.slice(1)), t) {
|
|
1693
|
+
var r = e.slice(0, 2);
|
|
1694
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !cr.test(e))
|
|
1693
1695
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1694
|
-
|
|
1696
|
+
t.minimumIntegerDigits = e.length;
|
|
1695
1697
|
}
|
|
1696
|
-
return
|
|
1698
|
+
return t;
|
|
1697
1699
|
}
|
|
1698
|
-
function
|
|
1699
|
-
var
|
|
1700
|
-
return r ||
|
|
1700
|
+
function Ht(e) {
|
|
1701
|
+
var t = {}, r = fr(e);
|
|
1702
|
+
return r || t;
|
|
1701
1703
|
}
|
|
1702
|
-
function oi(
|
|
1703
|
-
for (var
|
|
1704
|
+
function oi(e) {
|
|
1705
|
+
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1704
1706
|
var i = n[r];
|
|
1705
1707
|
switch (i.stem) {
|
|
1706
1708
|
case "percent":
|
|
1707
1709
|
case "%":
|
|
1708
|
-
|
|
1710
|
+
t.style = "percent";
|
|
1709
1711
|
continue;
|
|
1710
1712
|
case "%x100":
|
|
1711
|
-
|
|
1713
|
+
t.style = "percent", t.scale = 100;
|
|
1712
1714
|
continue;
|
|
1713
1715
|
case "currency":
|
|
1714
|
-
|
|
1716
|
+
t.style = "currency", t.currency = i.options[0];
|
|
1715
1717
|
continue;
|
|
1716
1718
|
case "group-off":
|
|
1717
1719
|
case ",_":
|
|
1718
|
-
|
|
1720
|
+
t.useGrouping = !1;
|
|
1719
1721
|
continue;
|
|
1720
1722
|
case "precision-integer":
|
|
1721
1723
|
case ".":
|
|
1722
|
-
|
|
1724
|
+
t.maximumFractionDigits = 0;
|
|
1723
1725
|
continue;
|
|
1724
1726
|
case "measure-unit":
|
|
1725
1727
|
case "unit":
|
|
1726
|
-
|
|
1728
|
+
t.style = "unit", t.unit = ri(i.options[0]);
|
|
1727
1729
|
continue;
|
|
1728
1730
|
case "compact-short":
|
|
1729
1731
|
case "K":
|
|
1730
|
-
|
|
1732
|
+
t.notation = "compact", t.compactDisplay = "short";
|
|
1731
1733
|
continue;
|
|
1732
1734
|
case "compact-long":
|
|
1733
1735
|
case "KK":
|
|
1734
|
-
|
|
1736
|
+
t.notation = "compact", t.compactDisplay = "long";
|
|
1735
1737
|
continue;
|
|
1736
1738
|
case "scientific":
|
|
1737
|
-
|
|
1738
|
-
return w(w({}, l),
|
|
1739
|
+
t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1740
|
+
return w(w({}, l), Ht(u));
|
|
1739
1741
|
}, {}));
|
|
1740
1742
|
continue;
|
|
1741
1743
|
case "engineering":
|
|
1742
|
-
|
|
1743
|
-
return w(w({}, l),
|
|
1744
|
+
t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1745
|
+
return w(w({}, l), Ht(u));
|
|
1744
1746
|
}, {}));
|
|
1745
1747
|
continue;
|
|
1746
1748
|
case "notation-simple":
|
|
1747
|
-
|
|
1749
|
+
t.notation = "standard";
|
|
1748
1750
|
continue;
|
|
1749
1751
|
case "unit-width-narrow":
|
|
1750
|
-
|
|
1752
|
+
t.currencyDisplay = "narrowSymbol", t.unitDisplay = "narrow";
|
|
1751
1753
|
continue;
|
|
1752
1754
|
case "unit-width-short":
|
|
1753
|
-
|
|
1755
|
+
t.currencyDisplay = "code", t.unitDisplay = "short";
|
|
1754
1756
|
continue;
|
|
1755
1757
|
case "unit-width-full-name":
|
|
1756
|
-
|
|
1758
|
+
t.currencyDisplay = "name", t.unitDisplay = "long";
|
|
1757
1759
|
continue;
|
|
1758
1760
|
case "unit-width-iso-code":
|
|
1759
|
-
|
|
1761
|
+
t.currencyDisplay = "symbol";
|
|
1760
1762
|
continue;
|
|
1761
1763
|
case "scale":
|
|
1762
|
-
|
|
1764
|
+
t.scale = parseFloat(i.options[0]);
|
|
1763
1765
|
continue;
|
|
1764
1766
|
case "rounding-mode-floor":
|
|
1765
|
-
|
|
1767
|
+
t.roundingMode = "floor";
|
|
1766
1768
|
continue;
|
|
1767
1769
|
case "rounding-mode-ceiling":
|
|
1768
|
-
|
|
1770
|
+
t.roundingMode = "ceil";
|
|
1769
1771
|
continue;
|
|
1770
1772
|
case "rounding-mode-down":
|
|
1771
|
-
|
|
1773
|
+
t.roundingMode = "trunc";
|
|
1772
1774
|
continue;
|
|
1773
1775
|
case "rounding-mode-up":
|
|
1774
|
-
|
|
1776
|
+
t.roundingMode = "expand";
|
|
1775
1777
|
continue;
|
|
1776
1778
|
case "rounding-mode-half-even":
|
|
1777
|
-
|
|
1779
|
+
t.roundingMode = "halfEven";
|
|
1778
1780
|
continue;
|
|
1779
1781
|
case "rounding-mode-half-down":
|
|
1780
|
-
|
|
1782
|
+
t.roundingMode = "halfTrunc";
|
|
1781
1783
|
continue;
|
|
1782
1784
|
case "rounding-mode-half-up":
|
|
1783
|
-
|
|
1785
|
+
t.roundingMode = "halfExpand";
|
|
1784
1786
|
continue;
|
|
1785
1787
|
case "integer-width":
|
|
1786
1788
|
if (i.options.length > 1)
|
|
1787
1789
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1788
1790
|
i.options[0].replace(ni, function(l, u, h, c, f, p) {
|
|
1789
1791
|
if (u)
|
|
1790
|
-
|
|
1792
|
+
t.minimumIntegerDigits = h.length;
|
|
1791
1793
|
else {
|
|
1792
1794
|
if (c && f)
|
|
1793
1795
|
throw new Error("We currently do not support maximum integer digits");
|
|
@@ -1799,31 +1801,31 @@ function oi(t) {
|
|
|
1799
1801
|
continue;
|
|
1800
1802
|
}
|
|
1801
1803
|
if (cr.test(i.stem)) {
|
|
1802
|
-
|
|
1804
|
+
t.minimumIntegerDigits = i.stem.length;
|
|
1803
1805
|
continue;
|
|
1804
1806
|
}
|
|
1805
|
-
if (
|
|
1807
|
+
if (St.test(i.stem)) {
|
|
1806
1808
|
if (i.options.length > 1)
|
|
1807
1809
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1808
|
-
i.stem.replace(
|
|
1809
|
-
return h === "*" ?
|
|
1810
|
+
i.stem.replace(St, function(l, u, h, c, f, p) {
|
|
1811
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1810
1812
|
});
|
|
1811
1813
|
var o = i.options[0];
|
|
1812
|
-
o === "w" ?
|
|
1814
|
+
o === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = w(w({}, t), Tt(o)));
|
|
1813
1815
|
continue;
|
|
1814
1816
|
}
|
|
1815
1817
|
if (hr.test(i.stem)) {
|
|
1816
|
-
|
|
1818
|
+
t = w(w({}, t), Tt(i.stem));
|
|
1817
1819
|
continue;
|
|
1818
1820
|
}
|
|
1819
1821
|
var a = fr(i.stem);
|
|
1820
|
-
a && (
|
|
1822
|
+
a && (t = w(w({}, t), a));
|
|
1821
1823
|
var s = ii(i.stem);
|
|
1822
|
-
s && (
|
|
1824
|
+
s && (t = w(w({}, t), s));
|
|
1823
1825
|
}
|
|
1824
|
-
return
|
|
1826
|
+
return t;
|
|
1825
1827
|
}
|
|
1826
|
-
var
|
|
1828
|
+
var ce = {
|
|
1827
1829
|
"001": [
|
|
1828
1830
|
"H",
|
|
1829
1831
|
"h"
|
|
@@ -3238,13 +3240,13 @@ var ct = {
|
|
|
3238
3240
|
"h"
|
|
3239
3241
|
]
|
|
3240
3242
|
};
|
|
3241
|
-
function si(
|
|
3242
|
-
for (var r = "", n = 0; n <
|
|
3243
|
-
var i =
|
|
3243
|
+
function si(e, t) {
|
|
3244
|
+
for (var r = "", n = 0; n < e.length; n++) {
|
|
3245
|
+
var i = e.charAt(n);
|
|
3244
3246
|
if (i === "j") {
|
|
3245
|
-
for (var o = 0; n + 1 <
|
|
3247
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3246
3248
|
o++, n++;
|
|
3247
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = ai(
|
|
3249
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = ai(t);
|
|
3248
3250
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
3249
3251
|
r += l;
|
|
3250
3252
|
for (; a-- > 0; )
|
|
@@ -3254,12 +3256,12 @@ function si(t, e) {
|
|
|
3254
3256
|
}
|
|
3255
3257
|
return r;
|
|
3256
3258
|
}
|
|
3257
|
-
function ai(
|
|
3258
|
-
var
|
|
3259
|
-
if (
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
switch (
|
|
3259
|
+
function ai(e) {
|
|
3260
|
+
var t = e.hourCycle;
|
|
3261
|
+
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3262
|
+
e.hourCycles && // @ts-ignore
|
|
3263
|
+
e.hourCycles.length && (t = e.hourCycles[0]), t)
|
|
3264
|
+
switch (t) {
|
|
3263
3265
|
case "h24":
|
|
3264
3266
|
return "k";
|
|
3265
3267
|
case "h23":
|
|
@@ -3271,52 +3273,52 @@ function ai(t) {
|
|
|
3271
3273
|
default:
|
|
3272
3274
|
throw new Error("Invalid hourCycle");
|
|
3273
3275
|
}
|
|
3274
|
-
var r =
|
|
3275
|
-
r !== "root" && (n =
|
|
3276
|
-
var i =
|
|
3276
|
+
var r = e.language, n;
|
|
3277
|
+
r !== "root" && (n = e.maximize().region);
|
|
3278
|
+
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
3277
3279
|
return i[0];
|
|
3278
3280
|
}
|
|
3279
|
-
var
|
|
3280
|
-
function y(
|
|
3281
|
-
return { start:
|
|
3281
|
+
var Ue, ui = new RegExp("^".concat(lr.source, "*")), li = new RegExp("".concat(lr.source, "*$"));
|
|
3282
|
+
function y(e, t) {
|
|
3283
|
+
return { start: e, end: t };
|
|
3282
3284
|
}
|
|
3283
|
-
var hi = !!String.prototype.startsWith && "_a".startsWith("a", 1), ci = !!String.fromCodePoint, fi = !!Object.fromEntries, mi = !!String.prototype.codePointAt, pi = !!String.prototype.trimStart, di = !!String.prototype.trimEnd, bi = !!Number.isSafeInteger, gi = bi ? Number.isSafeInteger : function(
|
|
3284
|
-
return typeof
|
|
3285
|
-
},
|
|
3285
|
+
var hi = !!String.prototype.startsWith && "_a".startsWith("a", 1), ci = !!String.fromCodePoint, fi = !!Object.fromEntries, mi = !!String.prototype.codePointAt, pi = !!String.prototype.trimStart, di = !!String.prototype.trimEnd, bi = !!Number.isSafeInteger, gi = bi ? Number.isSafeInteger : function(e) {
|
|
3286
|
+
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3287
|
+
}, Ye = !0;
|
|
3286
3288
|
try {
|
|
3287
3289
|
var yi = pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3288
|
-
|
|
3290
|
+
Ye = ((Ue = yi.exec("a")) === null || Ue === void 0 ? void 0 : Ue[0]) === "a";
|
|
3289
3291
|
} catch {
|
|
3290
|
-
|
|
3292
|
+
Ye = !1;
|
|
3291
3293
|
}
|
|
3292
|
-
var
|
|
3294
|
+
var Ct = hi ? (
|
|
3293
3295
|
// Native
|
|
3294
|
-
function(
|
|
3295
|
-
return
|
|
3296
|
+
function(t, r, n) {
|
|
3297
|
+
return t.startsWith(r, n);
|
|
3296
3298
|
}
|
|
3297
3299
|
) : (
|
|
3298
3300
|
// For IE11
|
|
3299
|
-
function(
|
|
3300
|
-
return
|
|
3301
|
+
function(t, r, n) {
|
|
3302
|
+
return t.slice(n, n + r.length) === r;
|
|
3301
3303
|
}
|
|
3302
|
-
),
|
|
3304
|
+
), Ke = ci ? String.fromCodePoint : (
|
|
3303
3305
|
// IE11
|
|
3304
3306
|
function() {
|
|
3305
|
-
for (var
|
|
3306
|
-
|
|
3307
|
-
for (var n = "", i =
|
|
3308
|
-
if (a =
|
|
3307
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
3308
|
+
t[r] = arguments[r];
|
|
3309
|
+
for (var n = "", i = t.length, o = 0, a; i > o; ) {
|
|
3310
|
+
if (a = t[o++], a > 1114111)
|
|
3309
3311
|
throw RangeError(a + " is not a valid code point");
|
|
3310
3312
|
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
3311
3313
|
}
|
|
3312
3314
|
return n;
|
|
3313
3315
|
}
|
|
3314
|
-
),
|
|
3316
|
+
), At = (
|
|
3315
3317
|
// native
|
|
3316
3318
|
fi ? Object.fromEntries : (
|
|
3317
3319
|
// Ponyfill
|
|
3318
|
-
function(
|
|
3319
|
-
for (var r = {}, n = 0, i =
|
|
3320
|
+
function(t) {
|
|
3321
|
+
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
3320
3322
|
var o = i[n], a = o[0], s = o[1];
|
|
3321
3323
|
r[a] = s;
|
|
3322
3324
|
}
|
|
@@ -3325,81 +3327,81 @@ var Ce = hi ? (
|
|
|
3325
3327
|
)
|
|
3326
3328
|
), mr = mi ? (
|
|
3327
3329
|
// Native
|
|
3328
|
-
function(
|
|
3329
|
-
return
|
|
3330
|
+
function(t, r) {
|
|
3331
|
+
return t.codePointAt(r);
|
|
3330
3332
|
}
|
|
3331
3333
|
) : (
|
|
3332
3334
|
// IE 11
|
|
3333
|
-
function(
|
|
3334
|
-
var n =
|
|
3335
|
+
function(t, r) {
|
|
3336
|
+
var n = t.length;
|
|
3335
3337
|
if (!(r < 0 || r >= n)) {
|
|
3336
|
-
var i =
|
|
3337
|
-
return i < 55296 || i > 56319 || r + 1 === n || (o =
|
|
3338
|
+
var i = t.charCodeAt(r), o;
|
|
3339
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3338
3340
|
}
|
|
3339
3341
|
}
|
|
3340
3342
|
), vi = pi ? (
|
|
3341
3343
|
// Native
|
|
3342
|
-
function(
|
|
3343
|
-
return
|
|
3344
|
+
function(t) {
|
|
3345
|
+
return t.trimStart();
|
|
3344
3346
|
}
|
|
3345
3347
|
) : (
|
|
3346
3348
|
// Ponyfill
|
|
3347
|
-
function(
|
|
3348
|
-
return
|
|
3349
|
+
function(t) {
|
|
3350
|
+
return t.replace(ui, "");
|
|
3349
3351
|
}
|
|
3350
3352
|
), _i = di ? (
|
|
3351
3353
|
// Native
|
|
3352
|
-
function(
|
|
3353
|
-
return
|
|
3354
|
+
function(t) {
|
|
3355
|
+
return t.trimEnd();
|
|
3354
3356
|
}
|
|
3355
3357
|
) : (
|
|
3356
3358
|
// Ponyfill
|
|
3357
|
-
function(
|
|
3358
|
-
return
|
|
3359
|
+
function(t) {
|
|
3360
|
+
return t.replace(li, "");
|
|
3359
3361
|
}
|
|
3360
3362
|
);
|
|
3361
|
-
function pr(
|
|
3362
|
-
return new RegExp(
|
|
3363
|
+
function pr(e, t) {
|
|
3364
|
+
return new RegExp(e, t);
|
|
3363
3365
|
}
|
|
3364
|
-
var
|
|
3365
|
-
if (
|
|
3366
|
-
var
|
|
3367
|
-
|
|
3366
|
+
var et;
|
|
3367
|
+
if (Ye) {
|
|
3368
|
+
var Bt = pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3369
|
+
et = function(t, r) {
|
|
3368
3370
|
var n;
|
|
3369
|
-
|
|
3370
|
-
var i =
|
|
3371
|
+
Bt.lastIndex = r;
|
|
3372
|
+
var i = Bt.exec(t);
|
|
3371
3373
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3372
3374
|
};
|
|
3373
3375
|
} else
|
|
3374
|
-
|
|
3376
|
+
et = function(t, r) {
|
|
3375
3377
|
for (var n = []; ; ) {
|
|
3376
|
-
var i = mr(
|
|
3378
|
+
var i = mr(t, r);
|
|
3377
3379
|
if (i === void 0 || dr(i) || Si(i))
|
|
3378
3380
|
break;
|
|
3379
3381
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3380
3382
|
}
|
|
3381
|
-
return
|
|
3383
|
+
return Ke.apply(void 0, n);
|
|
3382
3384
|
};
|
|
3383
3385
|
var xi = (
|
|
3384
3386
|
/** @class */
|
|
3385
3387
|
function() {
|
|
3386
|
-
function t
|
|
3387
|
-
r === void 0 && (r = {}), this.message =
|
|
3388
|
+
function e(t, r) {
|
|
3389
|
+
r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
|
|
3388
3390
|
}
|
|
3389
|
-
return
|
|
3391
|
+
return e.prototype.parse = function() {
|
|
3390
3392
|
if (this.offset() !== 0)
|
|
3391
3393
|
throw Error("parser can only be used once");
|
|
3392
3394
|
return this.parseMessage(0, "", !1);
|
|
3393
|
-
},
|
|
3395
|
+
}, e.prototype.parseMessage = function(t, r, n) {
|
|
3394
3396
|
for (var i = []; !this.isEOF(); ) {
|
|
3395
3397
|
var o = this.char();
|
|
3396
3398
|
if (o === 123) {
|
|
3397
|
-
var a = this.parseArgument(
|
|
3399
|
+
var a = this.parseArgument(t, n);
|
|
3398
3400
|
if (a.err)
|
|
3399
3401
|
return a;
|
|
3400
3402
|
i.push(a.val);
|
|
3401
3403
|
} else {
|
|
3402
|
-
if (o === 125 &&
|
|
3404
|
+
if (o === 125 && t > 0)
|
|
3403
3405
|
break;
|
|
3404
3406
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3405
3407
|
var s = this.clonePosition();
|
|
@@ -3411,13 +3413,13 @@ var xi = (
|
|
|
3411
3413
|
if (n)
|
|
3412
3414
|
break;
|
|
3413
3415
|
return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
3414
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3415
|
-
var a = this.parseTag(
|
|
3416
|
+
} else if (o === 60 && !this.ignoreTag && tt(this.peek() || 0)) {
|
|
3417
|
+
var a = this.parseTag(t, r);
|
|
3416
3418
|
if (a.err)
|
|
3417
3419
|
return a;
|
|
3418
3420
|
i.push(a.val);
|
|
3419
3421
|
} else {
|
|
3420
|
-
var a = this.parseLiteral(
|
|
3422
|
+
var a = this.parseLiteral(t, r);
|
|
3421
3423
|
if (a.err)
|
|
3422
3424
|
return a;
|
|
3423
3425
|
i.push(a.val);
|
|
@@ -3425,7 +3427,7 @@ var xi = (
|
|
|
3425
3427
|
}
|
|
3426
3428
|
}
|
|
3427
3429
|
return { val: i, err: null };
|
|
3428
|
-
},
|
|
3430
|
+
}, e.prototype.parseTag = function(t, r) {
|
|
3429
3431
|
var n = this.clonePosition();
|
|
3430
3432
|
this.bump();
|
|
3431
3433
|
var i = this.parseTagName();
|
|
@@ -3439,12 +3441,12 @@ var xi = (
|
|
|
3439
3441
|
err: null
|
|
3440
3442
|
};
|
|
3441
3443
|
if (this.bumpIf(">")) {
|
|
3442
|
-
var o = this.parseMessage(
|
|
3444
|
+
var o = this.parseMessage(t + 1, r, !0);
|
|
3443
3445
|
if (o.err)
|
|
3444
3446
|
return o;
|
|
3445
3447
|
var a = o.val, s = this.clonePosition();
|
|
3446
3448
|
if (this.bumpIf("</")) {
|
|
3447
|
-
if (this.isEOF() || !
|
|
3449
|
+
if (this.isEOF() || !tt(this.char()))
|
|
3448
3450
|
return this.error(b.INVALID_TAG, y(s, this.clonePosition()));
|
|
3449
3451
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3450
3452
|
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3460,19 +3462,19 @@ var xi = (
|
|
|
3460
3462
|
return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
|
|
3461
3463
|
} else
|
|
3462
3464
|
return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
|
|
3463
|
-
},
|
|
3464
|
-
var
|
|
3465
|
+
}, e.prototype.parseTagName = function() {
|
|
3466
|
+
var t = this.offset();
|
|
3465
3467
|
for (this.bump(); !this.isEOF() && wi(this.char()); )
|
|
3466
3468
|
this.bump();
|
|
3467
|
-
return this.message.slice(
|
|
3468
|
-
},
|
|
3469
|
+
return this.message.slice(t, this.offset());
|
|
3470
|
+
}, e.prototype.parseLiteral = function(t, r) {
|
|
3469
3471
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
3470
3472
|
var o = this.tryParseQuote(r);
|
|
3471
3473
|
if (o) {
|
|
3472
3474
|
i += o;
|
|
3473
3475
|
continue;
|
|
3474
3476
|
}
|
|
3475
|
-
var a = this.tryParseUnquoted(
|
|
3477
|
+
var a = this.tryParseUnquoted(t, r);
|
|
3476
3478
|
if (a) {
|
|
3477
3479
|
i += a;
|
|
3478
3480
|
continue;
|
|
@@ -3489,10 +3491,10 @@ var xi = (
|
|
|
3489
3491
|
val: { type: x.literal, value: i, location: l },
|
|
3490
3492
|
err: null
|
|
3491
3493
|
};
|
|
3492
|
-
},
|
|
3494
|
+
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3493
3495
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3494
3496
|
!Ei(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3495
|
-
},
|
|
3497
|
+
}, e.prototype.tryParseQuote = function(t) {
|
|
3496
3498
|
if (this.isEOF() || this.char() !== 39)
|
|
3497
3499
|
return null;
|
|
3498
3500
|
switch (this.peek()) {
|
|
@@ -3504,7 +3506,7 @@ var xi = (
|
|
|
3504
3506
|
case 125:
|
|
3505
3507
|
break;
|
|
3506
3508
|
case 35:
|
|
3507
|
-
if (
|
|
3509
|
+
if (t === "plural" || t === "selectordinal")
|
|
3508
3510
|
break;
|
|
3509
3511
|
return null;
|
|
3510
3512
|
default:
|
|
@@ -3525,13 +3527,13 @@ var xi = (
|
|
|
3525
3527
|
r.push(n);
|
|
3526
3528
|
this.bump();
|
|
3527
3529
|
}
|
|
3528
|
-
return
|
|
3529
|
-
},
|
|
3530
|
+
return Ke.apply(void 0, r);
|
|
3531
|
+
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3530
3532
|
if (this.isEOF())
|
|
3531
3533
|
return null;
|
|
3532
3534
|
var n = this.char();
|
|
3533
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 &&
|
|
3534
|
-
},
|
|
3535
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ke(n));
|
|
3536
|
+
}, e.prototype.parseArgument = function(t, r) {
|
|
3535
3537
|
var n = this.clonePosition();
|
|
3536
3538
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3537
3539
|
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
@@ -3554,16 +3556,16 @@ var xi = (
|
|
|
3554
3556
|
err: null
|
|
3555
3557
|
};
|
|
3556
3558
|
case 44:
|
|
3557
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(
|
|
3559
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3558
3560
|
default:
|
|
3559
3561
|
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3560
3562
|
}
|
|
3561
|
-
},
|
|
3562
|
-
var
|
|
3563
|
+
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3564
|
+
var t = this.clonePosition(), r = this.offset(), n = et(this.message, r), i = r + n.length;
|
|
3563
3565
|
this.bumpTo(i);
|
|
3564
|
-
var o = this.clonePosition(), a = y(
|
|
3566
|
+
var o = this.clonePosition(), a = y(t, o);
|
|
3565
3567
|
return { value: n, location: a };
|
|
3566
|
-
},
|
|
3568
|
+
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3567
3569
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3568
3570
|
switch (s) {
|
|
3569
3571
|
case "":
|
|
@@ -3588,7 +3590,7 @@ var xi = (
|
|
|
3588
3590
|
if (m.err)
|
|
3589
3591
|
return m;
|
|
3590
3592
|
var d = y(i, this.clonePosition());
|
|
3591
|
-
if (u &&
|
|
3593
|
+
if (u && Ct(u?.style, "::", 0)) {
|
|
3592
3594
|
var v = vi(u.style.slice(2));
|
|
3593
3595
|
if (s === "number") {
|
|
3594
3596
|
var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
@@ -3628,19 +3630,19 @@ var xi = (
|
|
|
3628
3630
|
case "select": {
|
|
3629
3631
|
var S = this.clonePosition();
|
|
3630
3632
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3631
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(S,
|
|
3633
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(S, _e({}, S)));
|
|
3632
3634
|
this.bumpSpace();
|
|
3633
|
-
var
|
|
3634
|
-
if (s !== "select" &&
|
|
3635
|
+
var A = this.parseIdentifierIfPossible(), E = 0;
|
|
3636
|
+
if (s !== "select" && A.value === "offset") {
|
|
3635
3637
|
if (!this.bumpIf(":"))
|
|
3636
3638
|
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
3637
3639
|
this.bumpSpace();
|
|
3638
3640
|
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3639
3641
|
if (c.err)
|
|
3640
3642
|
return c;
|
|
3641
|
-
this.bumpSpace(),
|
|
3643
|
+
this.bumpSpace(), A = this.parseIdentifierIfPossible(), E = c.val;
|
|
3642
3644
|
}
|
|
3643
|
-
var _ = this.tryParsePluralOrSelectOptions(
|
|
3645
|
+
var _ = this.tryParsePluralOrSelectOptions(t, s, r, A);
|
|
3644
3646
|
if (_.err)
|
|
3645
3647
|
return _;
|
|
3646
3648
|
var m = this.tryParseArgumentClose(i);
|
|
@@ -3651,7 +3653,7 @@ var xi = (
|
|
|
3651
3653
|
val: {
|
|
3652
3654
|
type: x.select,
|
|
3653
3655
|
value: n,
|
|
3654
|
-
options:
|
|
3656
|
+
options: At(_.val),
|
|
3655
3657
|
location: O
|
|
3656
3658
|
},
|
|
3657
3659
|
err: null
|
|
@@ -3659,7 +3661,7 @@ var xi = (
|
|
|
3659
3661
|
val: {
|
|
3660
3662
|
type: x.plural,
|
|
3661
3663
|
value: n,
|
|
3662
|
-
options:
|
|
3664
|
+
options: At(_.val),
|
|
3663
3665
|
offset: E,
|
|
3664
3666
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3665
3667
|
location: O
|
|
@@ -3670,10 +3672,10 @@ var xi = (
|
|
|
3670
3672
|
default:
|
|
3671
3673
|
return this.error(b.INVALID_ARGUMENT_TYPE, y(a, l));
|
|
3672
3674
|
}
|
|
3673
|
-
},
|
|
3674
|
-
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(
|
|
3675
|
-
},
|
|
3676
|
-
for (var
|
|
3675
|
+
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3676
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3677
|
+
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3678
|
+
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3677
3679
|
var n = this.char();
|
|
3678
3680
|
switch (n) {
|
|
3679
3681
|
case 39: {
|
|
@@ -3685,12 +3687,12 @@ var xi = (
|
|
|
3685
3687
|
break;
|
|
3686
3688
|
}
|
|
3687
3689
|
case 123: {
|
|
3688
|
-
|
|
3690
|
+
t += 1, this.bump();
|
|
3689
3691
|
break;
|
|
3690
3692
|
}
|
|
3691
3693
|
case 125: {
|
|
3692
|
-
if (
|
|
3693
|
-
|
|
3694
|
+
if (t > 0)
|
|
3695
|
+
t -= 1;
|
|
3694
3696
|
else
|
|
3695
3697
|
return {
|
|
3696
3698
|
val: this.message.slice(r.offset, this.offset()),
|
|
@@ -3707,10 +3709,10 @@ var xi = (
|
|
|
3707
3709
|
val: this.message.slice(r.offset, this.offset()),
|
|
3708
3710
|
err: null
|
|
3709
3711
|
};
|
|
3710
|
-
},
|
|
3712
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3711
3713
|
var n = [];
|
|
3712
3714
|
try {
|
|
3713
|
-
n =
|
|
3715
|
+
n = ti(t);
|
|
3714
3716
|
} catch {
|
|
3715
3717
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3716
3718
|
}
|
|
@@ -3723,7 +3725,7 @@ var xi = (
|
|
|
3723
3725
|
},
|
|
3724
3726
|
err: null
|
|
3725
3727
|
};
|
|
3726
|
-
},
|
|
3728
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3727
3729
|
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3728
3730
|
if (u.length === 0) {
|
|
3729
3731
|
var c = this.clonePosition();
|
|
@@ -3741,7 +3743,7 @@ var xi = (
|
|
|
3741
3743
|
var p = this.clonePosition();
|
|
3742
3744
|
if (!this.bumpIf("{"))
|
|
3743
3745
|
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
3744
|
-
var m = this.parseMessage(
|
|
3746
|
+
var m = this.parseMessage(t + 1, r, n);
|
|
3745
3747
|
if (m.err)
|
|
3746
3748
|
return m;
|
|
3747
3749
|
var d = this.tryParseArgumentClose(p);
|
|
@@ -3756,7 +3758,7 @@ var xi = (
|
|
|
3756
3758
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3757
3759
|
}
|
|
3758
3760
|
return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3759
|
-
},
|
|
3761
|
+
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3760
3762
|
var n = 1, i = this.clonePosition();
|
|
3761
3763
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3762
3764
|
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
@@ -3767,182 +3769,182 @@ var xi = (
|
|
|
3767
3769
|
break;
|
|
3768
3770
|
}
|
|
3769
3771
|
var l = y(i, this.clonePosition());
|
|
3770
|
-
return o ? (a *= n, gi(a) ? { val: a, err: null } : this.error(r, l)) : this.error(
|
|
3771
|
-
},
|
|
3772
|
+
return o ? (a *= n, gi(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3773
|
+
}, e.prototype.offset = function() {
|
|
3772
3774
|
return this.position.offset;
|
|
3773
|
-
},
|
|
3775
|
+
}, e.prototype.isEOF = function() {
|
|
3774
3776
|
return this.offset() === this.message.length;
|
|
3775
|
-
},
|
|
3777
|
+
}, e.prototype.clonePosition = function() {
|
|
3776
3778
|
return {
|
|
3777
3779
|
offset: this.position.offset,
|
|
3778
3780
|
line: this.position.line,
|
|
3779
3781
|
column: this.position.column
|
|
3780
3782
|
};
|
|
3781
|
-
},
|
|
3782
|
-
var
|
|
3783
|
-
if (
|
|
3783
|
+
}, e.prototype.char = function() {
|
|
3784
|
+
var t = this.position.offset;
|
|
3785
|
+
if (t >= this.message.length)
|
|
3784
3786
|
throw Error("out of bound");
|
|
3785
|
-
var r = mr(this.message,
|
|
3787
|
+
var r = mr(this.message, t);
|
|
3786
3788
|
if (r === void 0)
|
|
3787
|
-
throw Error("Offset ".concat(
|
|
3789
|
+
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3788
3790
|
return r;
|
|
3789
|
-
},
|
|
3791
|
+
}, e.prototype.error = function(t, r) {
|
|
3790
3792
|
return {
|
|
3791
3793
|
val: null,
|
|
3792
3794
|
err: {
|
|
3793
|
-
kind:
|
|
3795
|
+
kind: t,
|
|
3794
3796
|
message: this.message,
|
|
3795
3797
|
location: r
|
|
3796
3798
|
}
|
|
3797
3799
|
};
|
|
3798
|
-
},
|
|
3800
|
+
}, e.prototype.bump = function() {
|
|
3799
3801
|
if (!this.isEOF()) {
|
|
3800
|
-
var
|
|
3801
|
-
|
|
3802
|
+
var t = this.char();
|
|
3803
|
+
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);
|
|
3802
3804
|
}
|
|
3803
|
-
},
|
|
3804
|
-
if (
|
|
3805
|
-
for (var r = 0; r <
|
|
3805
|
+
}, e.prototype.bumpIf = function(t) {
|
|
3806
|
+
if (Ct(this.message, t, this.offset())) {
|
|
3807
|
+
for (var r = 0; r < t.length; r++)
|
|
3806
3808
|
this.bump();
|
|
3807
3809
|
return !0;
|
|
3808
3810
|
}
|
|
3809
3811
|
return !1;
|
|
3810
|
-
},
|
|
3811
|
-
var r = this.offset(), n = this.message.indexOf(
|
|
3812
|
+
}, e.prototype.bumpUntil = function(t) {
|
|
3813
|
+
var r = this.offset(), n = this.message.indexOf(t, r);
|
|
3812
3814
|
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
3813
|
-
},
|
|
3814
|
-
if (this.offset() >
|
|
3815
|
-
throw Error("targetOffset ".concat(
|
|
3816
|
-
for (
|
|
3815
|
+
}, e.prototype.bumpTo = function(t) {
|
|
3816
|
+
if (this.offset() > t)
|
|
3817
|
+
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3818
|
+
for (t = Math.min(t, this.message.length); ; ) {
|
|
3817
3819
|
var r = this.offset();
|
|
3818
|
-
if (r ===
|
|
3820
|
+
if (r === t)
|
|
3819
3821
|
break;
|
|
3820
|
-
if (r >
|
|
3821
|
-
throw Error("targetOffset ".concat(
|
|
3822
|
+
if (r > t)
|
|
3823
|
+
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3822
3824
|
if (this.bump(), this.isEOF())
|
|
3823
3825
|
break;
|
|
3824
3826
|
}
|
|
3825
|
-
},
|
|
3827
|
+
}, e.prototype.bumpSpace = function() {
|
|
3826
3828
|
for (; !this.isEOF() && dr(this.char()); )
|
|
3827
3829
|
this.bump();
|
|
3828
|
-
},
|
|
3830
|
+
}, e.prototype.peek = function() {
|
|
3829
3831
|
if (this.isEOF())
|
|
3830
3832
|
return null;
|
|
3831
|
-
var
|
|
3833
|
+
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3832
3834
|
return n ?? null;
|
|
3833
|
-
},
|
|
3835
|
+
}, e;
|
|
3834
3836
|
}()
|
|
3835
3837
|
);
|
|
3836
|
-
function
|
|
3837
|
-
return
|
|
3838
|
+
function tt(e) {
|
|
3839
|
+
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3838
3840
|
}
|
|
3839
|
-
function Ei(
|
|
3840
|
-
return
|
|
3841
|
+
function Ei(e) {
|
|
3842
|
+
return tt(e) || e === 47;
|
|
3841
3843
|
}
|
|
3842
|
-
function wi(
|
|
3843
|
-
return
|
|
3844
|
+
function wi(e) {
|
|
3845
|
+
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;
|
|
3844
3846
|
}
|
|
3845
|
-
function dr(
|
|
3846
|
-
return
|
|
3847
|
+
function dr(e) {
|
|
3848
|
+
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3847
3849
|
}
|
|
3848
|
-
function Si(
|
|
3849
|
-
return
|
|
3850
|
+
function Si(e) {
|
|
3851
|
+
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;
|
|
3850
3852
|
}
|
|
3851
|
-
function
|
|
3852
|
-
|
|
3853
|
-
if (delete
|
|
3854
|
-
for (var r in
|
|
3855
|
-
delete
|
|
3853
|
+
function rt(e) {
|
|
3854
|
+
e.forEach(function(t) {
|
|
3855
|
+
if (delete t.location, or(t) || sr(t))
|
|
3856
|
+
for (var r in t.options)
|
|
3857
|
+
delete t.options[r].location, rt(t.options[r].value);
|
|
3856
3858
|
else
|
|
3857
|
-
rr(
|
|
3859
|
+
rr(t) && ur(t.style) || (nr(t) || ir(t)) && qe(t.style) ? delete t.style.location : ar(t) && rt(t.children);
|
|
3858
3860
|
});
|
|
3859
3861
|
}
|
|
3860
|
-
function Ti(
|
|
3861
|
-
|
|
3862
|
-
var r = new xi(
|
|
3862
|
+
function Ti(e, t) {
|
|
3863
|
+
t === void 0 && (t = {}), t = _e({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3864
|
+
var r = new xi(e, t).parse();
|
|
3863
3865
|
if (r.err) {
|
|
3864
3866
|
var n = SyntaxError(b[r.err.kind]);
|
|
3865
3867
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3866
3868
|
}
|
|
3867
|
-
return
|
|
3869
|
+
return t?.captureLocation || rt(r.val), r.val;
|
|
3868
3870
|
}
|
|
3869
3871
|
var Q;
|
|
3870
|
-
(function(
|
|
3871
|
-
|
|
3872
|
+
(function(e) {
|
|
3873
|
+
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3872
3874
|
})(Q || (Q = {}));
|
|
3873
|
-
var
|
|
3875
|
+
var Ce = (
|
|
3874
3876
|
/** @class */
|
|
3875
|
-
function(
|
|
3876
|
-
|
|
3877
|
-
function
|
|
3878
|
-
var o =
|
|
3877
|
+
function(e) {
|
|
3878
|
+
He(t, e);
|
|
3879
|
+
function t(r, n, i) {
|
|
3880
|
+
var o = e.call(this, r) || this;
|
|
3879
3881
|
return o.code = n, o.originalMessage = i, o;
|
|
3880
3882
|
}
|
|
3881
|
-
return
|
|
3883
|
+
return t.prototype.toString = function() {
|
|
3882
3884
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3883
|
-
},
|
|
3885
|
+
}, t;
|
|
3884
3886
|
}(Error)
|
|
3885
|
-
),
|
|
3887
|
+
), Pt = (
|
|
3886
3888
|
/** @class */
|
|
3887
|
-
function(
|
|
3888
|
-
|
|
3889
|
-
function
|
|
3890
|
-
return
|
|
3889
|
+
function(e) {
|
|
3890
|
+
He(t, e);
|
|
3891
|
+
function t(r, n, i, o) {
|
|
3892
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Q.INVALID_VALUE, o) || this;
|
|
3891
3893
|
}
|
|
3892
|
-
return
|
|
3893
|
-
}(
|
|
3894
|
+
return t;
|
|
3895
|
+
}(Ce)
|
|
3894
3896
|
), Hi = (
|
|
3895
3897
|
/** @class */
|
|
3896
|
-
function(
|
|
3897
|
-
|
|
3898
|
-
function
|
|
3899
|
-
return
|
|
3898
|
+
function(e) {
|
|
3899
|
+
He(t, e);
|
|
3900
|
+
function t(r, n, i) {
|
|
3901
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Q.INVALID_VALUE, i) || this;
|
|
3900
3902
|
}
|
|
3901
|
-
return
|
|
3902
|
-
}(
|
|
3903
|
+
return t;
|
|
3904
|
+
}(Ce)
|
|
3903
3905
|
), Ci = (
|
|
3904
3906
|
/** @class */
|
|
3905
|
-
function(
|
|
3906
|
-
|
|
3907
|
-
function
|
|
3908
|
-
return
|
|
3907
|
+
function(e) {
|
|
3908
|
+
He(t, e);
|
|
3909
|
+
function t(r, n) {
|
|
3910
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Q.MISSING_VALUE, n) || this;
|
|
3909
3911
|
}
|
|
3910
|
-
return
|
|
3911
|
-
}(
|
|
3912
|
-
),
|
|
3913
|
-
(function(
|
|
3914
|
-
|
|
3915
|
-
})(
|
|
3916
|
-
function
|
|
3917
|
-
return
|
|
3918
|
-
var n =
|
|
3919
|
-
return !n || n.type !==
|
|
3912
|
+
return t;
|
|
3913
|
+
}(Ce)
|
|
3914
|
+
), B;
|
|
3915
|
+
(function(e) {
|
|
3916
|
+
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3917
|
+
})(B || (B = {}));
|
|
3918
|
+
function Ai(e) {
|
|
3919
|
+
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3920
|
+
var n = t[t.length - 1];
|
|
3921
|
+
return !n || n.type !== B.literal || r.type !== B.literal ? t.push(r) : n.value += r.value, t;
|
|
3920
3922
|
}, []);
|
|
3921
3923
|
}
|
|
3922
|
-
function
|
|
3923
|
-
return typeof
|
|
3924
|
+
function Bi(e) {
|
|
3925
|
+
return typeof e == "function";
|
|
3924
3926
|
}
|
|
3925
|
-
function
|
|
3926
|
-
if (
|
|
3927
|
+
function de(e, t, r, n, i, o, a) {
|
|
3928
|
+
if (e.length === 1 && wt(e[0]))
|
|
3927
3929
|
return [
|
|
3928
3930
|
{
|
|
3929
|
-
type:
|
|
3930
|
-
value:
|
|
3931
|
+
type: B.literal,
|
|
3932
|
+
value: e[0].value
|
|
3931
3933
|
}
|
|
3932
3934
|
];
|
|
3933
|
-
for (var s = [], l = 0, u =
|
|
3935
|
+
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3934
3936
|
var h = u[l];
|
|
3935
|
-
if (
|
|
3937
|
+
if (wt(h)) {
|
|
3936
3938
|
s.push({
|
|
3937
|
-
type:
|
|
3939
|
+
type: B.literal,
|
|
3938
3940
|
value: h.value
|
|
3939
3941
|
});
|
|
3940
3942
|
continue;
|
|
3941
3943
|
}
|
|
3942
3944
|
if (qn(h)) {
|
|
3943
3945
|
typeof o == "number" && s.push({
|
|
3944
|
-
type:
|
|
3945
|
-
value: r.getNumberFormat(
|
|
3946
|
+
type: B.literal,
|
|
3947
|
+
value: r.getNumberFormat(t).format(o)
|
|
3946
3948
|
});
|
|
3947
3949
|
continue;
|
|
3948
3950
|
}
|
|
@@ -3952,45 +3954,45 @@ function dt(t, e, r, n, i, o, a) {
|
|
|
3952
3954
|
var f = i[c];
|
|
3953
3955
|
if (Jn(h)) {
|
|
3954
3956
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3955
|
-
type: typeof f == "string" ?
|
|
3957
|
+
type: typeof f == "string" ? B.literal : B.object,
|
|
3956
3958
|
value: f
|
|
3957
3959
|
});
|
|
3958
3960
|
continue;
|
|
3959
3961
|
}
|
|
3960
3962
|
if (nr(h)) {
|
|
3961
|
-
var p = typeof h.style == "string" ? n.date[h.style] :
|
|
3963
|
+
var p = typeof h.style == "string" ? n.date[h.style] : qe(h.style) ? h.style.parsedOptions : void 0;
|
|
3962
3964
|
s.push({
|
|
3963
|
-
type:
|
|
3964
|
-
value: r.getDateTimeFormat(
|
|
3965
|
+
type: B.literal,
|
|
3966
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3965
3967
|
});
|
|
3966
3968
|
continue;
|
|
3967
3969
|
}
|
|
3968
3970
|
if (ir(h)) {
|
|
3969
|
-
var p = typeof h.style == "string" ? n.time[h.style] :
|
|
3971
|
+
var p = typeof h.style == "string" ? n.time[h.style] : qe(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3970
3972
|
s.push({
|
|
3971
|
-
type:
|
|
3972
|
-
value: r.getDateTimeFormat(
|
|
3973
|
+
type: B.literal,
|
|
3974
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3973
3975
|
});
|
|
3974
3976
|
continue;
|
|
3975
3977
|
}
|
|
3976
3978
|
if (rr(h)) {
|
|
3977
3979
|
var p = typeof h.style == "string" ? n.number[h.style] : ur(h.style) ? h.style.parsedOptions : void 0;
|
|
3978
3980
|
p && p.scale && (f = f * (p.scale || 1)), s.push({
|
|
3979
|
-
type:
|
|
3980
|
-
value: r.getNumberFormat(
|
|
3981
|
+
type: B.literal,
|
|
3982
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3981
3983
|
});
|
|
3982
3984
|
continue;
|
|
3983
3985
|
}
|
|
3984
3986
|
if (ar(h)) {
|
|
3985
3987
|
var m = h.children, d = h.value, v = i[d];
|
|
3986
|
-
if (!
|
|
3988
|
+
if (!Bi(v))
|
|
3987
3989
|
throw new Hi(d, "function", a);
|
|
3988
|
-
var T =
|
|
3990
|
+
var T = de(m, t, r, n, i, o), C = v(T.map(function(E) {
|
|
3989
3991
|
return E.value;
|
|
3990
3992
|
}));
|
|
3991
3993
|
Array.isArray(C) || (C = [C]), s.push.apply(s, C.map(function(E) {
|
|
3992
3994
|
return {
|
|
3993
|
-
type: typeof E == "string" ?
|
|
3995
|
+
type: typeof E == "string" ? B.literal : B.object,
|
|
3994
3996
|
value: E
|
|
3995
3997
|
};
|
|
3996
3998
|
}));
|
|
@@ -3998,89 +4000,89 @@ function dt(t, e, r, n, i, o, a) {
|
|
|
3998
4000
|
if (or(h)) {
|
|
3999
4001
|
var S = h.options[f] || h.options.other;
|
|
4000
4002
|
if (!S)
|
|
4001
|
-
throw new
|
|
4002
|
-
s.push.apply(s,
|
|
4003
|
+
throw new Pt(h.value, f, Object.keys(h.options), a);
|
|
4004
|
+
s.push.apply(s, de(S.value, t, r, n, i));
|
|
4003
4005
|
continue;
|
|
4004
4006
|
}
|
|
4005
4007
|
if (sr(h)) {
|
|
4006
4008
|
var S = h.options["=".concat(f)];
|
|
4007
4009
|
if (!S) {
|
|
4008
4010
|
if (!Intl.PluralRules)
|
|
4009
|
-
throw new
|
|
4011
|
+
throw new Ce(`Intl.PluralRules is not available in this environment.
|
|
4010
4012
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
4011
4013
|
`, Q.MISSING_INTL_API, a);
|
|
4012
|
-
var
|
|
4013
|
-
S = h.options[
|
|
4014
|
+
var A = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
4015
|
+
S = h.options[A] || h.options.other;
|
|
4014
4016
|
}
|
|
4015
4017
|
if (!S)
|
|
4016
|
-
throw new
|
|
4017
|
-
s.push.apply(s,
|
|
4018
|
+
throw new Pt(h.value, f, Object.keys(h.options), a);
|
|
4019
|
+
s.push.apply(s, de(S.value, t, r, n, i, f - (h.offset || 0)));
|
|
4018
4020
|
continue;
|
|
4019
4021
|
}
|
|
4020
4022
|
}
|
|
4021
|
-
return
|
|
4023
|
+
return Ai(s);
|
|
4022
4024
|
}
|
|
4023
|
-
function Pi(
|
|
4024
|
-
return
|
|
4025
|
-
return r[n] = M(M({},
|
|
4026
|
-
}, {})) :
|
|
4025
|
+
function Pi(e, t) {
|
|
4026
|
+
return t ? M(M(M({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
4027
|
+
return r[n] = M(M({}, e[n]), t[n] || {}), r;
|
|
4028
|
+
}, {})) : e;
|
|
4027
4029
|
}
|
|
4028
|
-
function Oi(
|
|
4029
|
-
return
|
|
4030
|
-
return r[n] = Pi(
|
|
4031
|
-
}, M({},
|
|
4030
|
+
function Oi(e, t) {
|
|
4031
|
+
return t ? Object.keys(e).reduce(function(r, n) {
|
|
4032
|
+
return r[n] = Pi(e[n], t[n]), r;
|
|
4033
|
+
}, M({}, e)) : e;
|
|
4032
4034
|
}
|
|
4033
|
-
function
|
|
4035
|
+
function De(e) {
|
|
4034
4036
|
return {
|
|
4035
4037
|
create: function() {
|
|
4036
4038
|
return {
|
|
4037
|
-
get: function(
|
|
4038
|
-
return t
|
|
4039
|
+
get: function(t) {
|
|
4040
|
+
return e[t];
|
|
4039
4041
|
},
|
|
4040
|
-
set: function(
|
|
4041
|
-
t
|
|
4042
|
+
set: function(t, r) {
|
|
4043
|
+
e[t] = r;
|
|
4042
4044
|
}
|
|
4043
4045
|
};
|
|
4044
4046
|
}
|
|
4045
4047
|
};
|
|
4046
4048
|
}
|
|
4047
|
-
function Li(
|
|
4048
|
-
return
|
|
4049
|
+
function Li(e) {
|
|
4050
|
+
return e === void 0 && (e = {
|
|
4049
4051
|
number: {},
|
|
4050
4052
|
dateTime: {},
|
|
4051
4053
|
pluralRules: {}
|
|
4052
4054
|
}), {
|
|
4053
|
-
getNumberFormat:
|
|
4054
|
-
for (var
|
|
4055
|
+
getNumberFormat: Re(function() {
|
|
4056
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4055
4057
|
r[n] = arguments[n];
|
|
4056
|
-
return new ((
|
|
4058
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, $e([void 0], r, !1)))();
|
|
4057
4059
|
}, {
|
|
4058
|
-
cache:
|
|
4059
|
-
strategy:
|
|
4060
|
+
cache: De(e.number),
|
|
4061
|
+
strategy: Ge.variadic
|
|
4060
4062
|
}),
|
|
4061
|
-
getDateTimeFormat:
|
|
4062
|
-
for (var
|
|
4063
|
+
getDateTimeFormat: Re(function() {
|
|
4064
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4063
4065
|
r[n] = arguments[n];
|
|
4064
|
-
return new ((
|
|
4066
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, $e([void 0], r, !1)))();
|
|
4065
4067
|
}, {
|
|
4066
|
-
cache:
|
|
4067
|
-
strategy:
|
|
4068
|
+
cache: De(e.dateTime),
|
|
4069
|
+
strategy: Ge.variadic
|
|
4068
4070
|
}),
|
|
4069
|
-
getPluralRules:
|
|
4070
|
-
for (var
|
|
4071
|
+
getPluralRules: Re(function() {
|
|
4072
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4071
4073
|
r[n] = arguments[n];
|
|
4072
|
-
return new ((
|
|
4074
|
+
return new ((t = Intl.PluralRules).bind.apply(t, $e([void 0], r, !1)))();
|
|
4073
4075
|
}, {
|
|
4074
|
-
cache:
|
|
4075
|
-
strategy:
|
|
4076
|
+
cache: De(e.pluralRules),
|
|
4077
|
+
strategy: Ge.variadic
|
|
4076
4078
|
})
|
|
4077
4079
|
};
|
|
4078
4080
|
}
|
|
4079
4081
|
var Ii = (
|
|
4080
4082
|
/** @class */
|
|
4081
4083
|
function() {
|
|
4082
|
-
function t
|
|
4083
|
-
r === void 0 && (r =
|
|
4084
|
+
function e(t, r, n, i) {
|
|
4085
|
+
r === void 0 && (r = e.defaultLocale);
|
|
4084
4086
|
var o = this;
|
|
4085
4087
|
if (this.formatterCache = {
|
|
4086
4088
|
number: {},
|
|
@@ -4091,11 +4093,11 @@ var Ii = (
|
|
|
4091
4093
|
if (u.length === 1)
|
|
4092
4094
|
return u[0].value;
|
|
4093
4095
|
var h = u.reduce(function(c, f) {
|
|
4094
|
-
return !c.length || f.type !==
|
|
4096
|
+
return !c.length || f.type !== B.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
4095
4097
|
}, []);
|
|
4096
4098
|
return h.length <= 1 ? h[0] || "" : h;
|
|
4097
4099
|
}, this.formatToParts = function(l) {
|
|
4098
|
-
return
|
|
4100
|
+
return de(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
4099
4101
|
}, this.resolvedOptions = function() {
|
|
4100
4102
|
var l;
|
|
4101
4103
|
return {
|
|
@@ -4103,31 +4105,31 @@ var Ii = (
|
|
|
4103
4105
|
};
|
|
4104
4106
|
}, this.getAst = function() {
|
|
4105
4107
|
return o.ast;
|
|
4106
|
-
}, this.locales = r, this.resolvedLocale =
|
|
4107
|
-
if (this.message =
|
|
4108
|
+
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
4109
|
+
if (this.message = t, !e.__parse)
|
|
4108
4110
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
4109
4111
|
var a = i || {};
|
|
4110
4112
|
a.formatters;
|
|
4111
4113
|
var s = jn(a, ["formatters"]);
|
|
4112
|
-
this.ast =
|
|
4114
|
+
this.ast = e.__parse(t, M(M({}, s), { locale: this.resolvedLocale }));
|
|
4113
4115
|
} else
|
|
4114
|
-
this.ast =
|
|
4116
|
+
this.ast = t;
|
|
4115
4117
|
if (!Array.isArray(this.ast))
|
|
4116
4118
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
4117
|
-
this.formats = Oi(
|
|
4119
|
+
this.formats = Oi(e.formats, n), this.formatters = i && i.formatters || Li(this.formatterCache);
|
|
4118
4120
|
}
|
|
4119
|
-
return Object.defineProperty(
|
|
4121
|
+
return Object.defineProperty(e, "defaultLocale", {
|
|
4120
4122
|
get: function() {
|
|
4121
|
-
return
|
|
4123
|
+
return e.memoizedDefaultLocale || (e.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), e.memoizedDefaultLocale;
|
|
4122
4124
|
},
|
|
4123
4125
|
enumerable: !1,
|
|
4124
4126
|
configurable: !0
|
|
4125
|
-
}),
|
|
4127
|
+
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
4126
4128
|
if (!(typeof Intl.Locale > "u")) {
|
|
4127
|
-
var r = Intl.NumberFormat.supportedLocalesOf(
|
|
4128
|
-
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof
|
|
4129
|
+
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
4130
|
+
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
4129
4131
|
}
|
|
4130
|
-
},
|
|
4132
|
+
}, e.__parse = Ti, e.formats = {
|
|
4131
4133
|
number: {
|
|
4132
4134
|
integer: {
|
|
4133
4135
|
maximumFractionDigits: 0
|
|
@@ -4185,16 +4187,16 @@ var Ii = (
|
|
|
4185
4187
|
timeZoneName: "short"
|
|
4186
4188
|
}
|
|
4187
4189
|
}
|
|
4188
|
-
},
|
|
4190
|
+
}, e;
|
|
4189
4191
|
}()
|
|
4190
4192
|
);
|
|
4191
|
-
function Mi(
|
|
4192
|
-
if (
|
|
4193
|
+
function Mi(e, t) {
|
|
4194
|
+
if (t == null)
|
|
4193
4195
|
return;
|
|
4194
|
-
if (
|
|
4195
|
-
return t
|
|
4196
|
-
const r =
|
|
4197
|
-
let n =
|
|
4196
|
+
if (t in e)
|
|
4197
|
+
return e[t];
|
|
4198
|
+
const r = t.split(".");
|
|
4199
|
+
let n = e;
|
|
4198
4200
|
for (let i = 0; i < r.length; i++)
|
|
4199
4201
|
if (typeof n == "object") {
|
|
4200
4202
|
if (i > 0) {
|
|
@@ -4209,90 +4211,90 @@ function Mi(t, e) {
|
|
|
4209
4211
|
n = void 0;
|
|
4210
4212
|
return n;
|
|
4211
4213
|
}
|
|
4212
|
-
const G = {}, Ni = (
|
|
4213
|
-
if (
|
|
4214
|
+
const G = {}, Ni = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), br = (e, t) => {
|
|
4215
|
+
if (t == null)
|
|
4214
4216
|
return;
|
|
4215
|
-
if (
|
|
4216
|
-
return G[
|
|
4217
|
-
const r =
|
|
4217
|
+
if (t in G && e in G[t])
|
|
4218
|
+
return G[t][e];
|
|
4219
|
+
const r = Ae(t);
|
|
4218
4220
|
for (let n = 0; n < r.length; n++) {
|
|
4219
|
-
const i = r[n], o = Ri(i,
|
|
4221
|
+
const i = r[n], o = Ri(i, e);
|
|
4220
4222
|
if (o)
|
|
4221
|
-
return Ni(
|
|
4223
|
+
return Ni(e, t, o);
|
|
4222
4224
|
}
|
|
4223
4225
|
};
|
|
4224
|
-
let
|
|
4225
|
-
const
|
|
4226
|
-
function $i(
|
|
4227
|
-
return
|
|
4226
|
+
let ut;
|
|
4227
|
+
const le = Te({});
|
|
4228
|
+
function $i(e) {
|
|
4229
|
+
return ut[e] || null;
|
|
4228
4230
|
}
|
|
4229
|
-
function gr(
|
|
4230
|
-
return
|
|
4231
|
+
function gr(e) {
|
|
4232
|
+
return e in ut;
|
|
4231
4233
|
}
|
|
4232
|
-
function Ri(
|
|
4233
|
-
if (!gr(
|
|
4234
|
+
function Ri(e, t) {
|
|
4235
|
+
if (!gr(e))
|
|
4234
4236
|
return null;
|
|
4235
|
-
const r = $i(
|
|
4236
|
-
return Mi(r,
|
|
4237
|
+
const r = $i(e);
|
|
4238
|
+
return Mi(r, t);
|
|
4237
4239
|
}
|
|
4238
|
-
function Gi(
|
|
4239
|
-
if (
|
|
4240
|
+
function Gi(e) {
|
|
4241
|
+
if (e == null)
|
|
4240
4242
|
return;
|
|
4241
|
-
const
|
|
4242
|
-
for (let r = 0; r <
|
|
4243
|
-
const n =
|
|
4243
|
+
const t = Ae(e);
|
|
4244
|
+
for (let r = 0; r < t.length; r++) {
|
|
4245
|
+
const n = t[r];
|
|
4244
4246
|
if (gr(n))
|
|
4245
4247
|
return n;
|
|
4246
4248
|
}
|
|
4247
4249
|
}
|
|
4248
|
-
function yr(
|
|
4249
|
-
delete G[
|
|
4250
|
+
function yr(e, ...t) {
|
|
4251
|
+
delete G[e], le.update((r) => (r[e] = Fn.all([r[e] || {}, ...t]), r));
|
|
4250
4252
|
}
|
|
4251
4253
|
q(
|
|
4252
|
-
[
|
|
4253
|
-
([
|
|
4254
|
+
[le],
|
|
4255
|
+
([e]) => Object.keys(e)
|
|
4254
4256
|
);
|
|
4255
|
-
|
|
4256
|
-
const
|
|
4257
|
-
function Ui(
|
|
4258
|
-
|
|
4259
|
-
}
|
|
4260
|
-
function vr(
|
|
4261
|
-
return
|
|
4262
|
-
}
|
|
4263
|
-
function Di(
|
|
4264
|
-
return
|
|
4265
|
-
const r = vr(
|
|
4266
|
-
return [
|
|
4267
|
-
}).filter(([,
|
|
4268
|
-
}
|
|
4269
|
-
function
|
|
4270
|
-
return
|
|
4271
|
-
(
|
|
4257
|
+
le.subscribe((e) => ut = e);
|
|
4258
|
+
const be = {};
|
|
4259
|
+
function Ui(e, t) {
|
|
4260
|
+
be[e].delete(t), be[e].size === 0 && delete be[e];
|
|
4261
|
+
}
|
|
4262
|
+
function vr(e) {
|
|
4263
|
+
return be[e];
|
|
4264
|
+
}
|
|
4265
|
+
function Di(e) {
|
|
4266
|
+
return Ae(e).map((t) => {
|
|
4267
|
+
const r = vr(t);
|
|
4268
|
+
return [t, r ? [...r] : []];
|
|
4269
|
+
}).filter(([, t]) => t.length > 0);
|
|
4270
|
+
}
|
|
4271
|
+
function nt(e) {
|
|
4272
|
+
return e == null ? !1 : Ae(e).some(
|
|
4273
|
+
(t) => {
|
|
4272
4274
|
var r;
|
|
4273
|
-
return (r = vr(
|
|
4275
|
+
return (r = vr(t)) == null ? void 0 : r.size;
|
|
4274
4276
|
}
|
|
4275
4277
|
);
|
|
4276
4278
|
}
|
|
4277
|
-
function Fi(
|
|
4279
|
+
function Fi(e, t) {
|
|
4278
4280
|
return Promise.all(
|
|
4279
|
-
|
|
4280
|
-
).then((n) => yr(
|
|
4281
|
-
}
|
|
4282
|
-
const
|
|
4283
|
-
function _r(
|
|
4284
|
-
if (!
|
|
4285
|
-
return
|
|
4286
|
-
const
|
|
4287
|
-
return
|
|
4288
|
-
|
|
4281
|
+
t.map((n) => (Ui(e, n), n().then((i) => i.default || i)))
|
|
4282
|
+
).then((n) => yr(e, ...n));
|
|
4283
|
+
}
|
|
4284
|
+
const te = {};
|
|
4285
|
+
function _r(e) {
|
|
4286
|
+
if (!nt(e))
|
|
4287
|
+
return e in te ? te[e] : Promise.resolve();
|
|
4288
|
+
const t = Di(e);
|
|
4289
|
+
return te[e] = Promise.all(
|
|
4290
|
+
t.map(
|
|
4289
4291
|
([r, n]) => Fi(r, n)
|
|
4290
4292
|
)
|
|
4291
4293
|
).then(() => {
|
|
4292
|
-
if (
|
|
4293
|
-
return _r(
|
|
4294
|
-
delete
|
|
4295
|
-
}),
|
|
4294
|
+
if (nt(e))
|
|
4295
|
+
return _r(e);
|
|
4296
|
+
delete te[e];
|
|
4297
|
+
}), te[e];
|
|
4296
4298
|
}
|
|
4297
4299
|
const ji = {
|
|
4298
4300
|
number: {
|
|
@@ -4334,127 +4336,127 @@ const ji = {
|
|
|
4334
4336
|
function J() {
|
|
4335
4337
|
return Vi;
|
|
4336
4338
|
}
|
|
4337
|
-
const
|
|
4338
|
-
var Xi = Object.defineProperty, zi = Object.defineProperties, Wi = Object.getOwnPropertyDescriptors,
|
|
4339
|
-
for (var r in
|
|
4340
|
-
Zi.call(
|
|
4341
|
-
if (
|
|
4342
|
-
for (var r of
|
|
4343
|
-
Qi.call(
|
|
4344
|
-
return
|
|
4345
|
-
}, qi = (
|
|
4346
|
-
let
|
|
4347
|
-
const
|
|
4348
|
-
function
|
|
4349
|
-
return
|
|
4339
|
+
const Fe = Te(!1);
|
|
4340
|
+
var Xi = Object.defineProperty, zi = Object.defineProperties, Wi = Object.getOwnPropertyDescriptors, Ot = Object.getOwnPropertySymbols, Zi = Object.prototype.hasOwnProperty, Qi = Object.prototype.propertyIsEnumerable, Lt = (e, t, r) => t in e ? Xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ji = (e, t) => {
|
|
4341
|
+
for (var r in t || (t = {}))
|
|
4342
|
+
Zi.call(t, r) && Lt(e, r, t[r]);
|
|
4343
|
+
if (Ot)
|
|
4344
|
+
for (var r of Ot(t))
|
|
4345
|
+
Qi.call(t, r) && Lt(e, r, t[r]);
|
|
4346
|
+
return e;
|
|
4347
|
+
}, qi = (e, t) => zi(e, Wi(t));
|
|
4348
|
+
let it;
|
|
4349
|
+
const xe = Te(null);
|
|
4350
|
+
function It(e) {
|
|
4351
|
+
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4350
4352
|
}
|
|
4351
|
-
function
|
|
4352
|
-
const r =
|
|
4353
|
-
return
|
|
4353
|
+
function Ae(e, t = J().fallbackLocale) {
|
|
4354
|
+
const r = It(e);
|
|
4355
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...It(t)])] : r;
|
|
4354
4356
|
}
|
|
4355
4357
|
function D() {
|
|
4356
|
-
return
|
|
4358
|
+
return it ?? void 0;
|
|
4357
4359
|
}
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
+
xe.subscribe((e) => {
|
|
4361
|
+
it = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4360
4362
|
});
|
|
4361
|
-
const Yi = (
|
|
4362
|
-
if (
|
|
4363
|
-
const { loadingDelay:
|
|
4363
|
+
const Yi = (e) => {
|
|
4364
|
+
if (e && Gi(e) && nt(e)) {
|
|
4365
|
+
const { loadingDelay: t } = J();
|
|
4364
4366
|
let r;
|
|
4365
|
-
return typeof window < "u" && D() != null &&
|
|
4366
|
-
() =>
|
|
4367
|
-
|
|
4368
|
-
) :
|
|
4369
|
-
|
|
4367
|
+
return typeof window < "u" && D() != null && t ? r = window.setTimeout(
|
|
4368
|
+
() => Fe.set(!0),
|
|
4369
|
+
t
|
|
4370
|
+
) : Fe.set(!0), _r(e).then(() => {
|
|
4371
|
+
xe.set(e);
|
|
4370
4372
|
}).finally(() => {
|
|
4371
|
-
clearTimeout(r),
|
|
4373
|
+
clearTimeout(r), Fe.set(!1);
|
|
4372
4374
|
});
|
|
4373
4375
|
}
|
|
4374
|
-
return
|
|
4375
|
-
}, Y = qi(Ji({},
|
|
4376
|
+
return xe.set(e);
|
|
4377
|
+
}, Y = qi(Ji({}, xe), {
|
|
4376
4378
|
set: Yi
|
|
4377
|
-
}),
|
|
4378
|
-
const
|
|
4379
|
+
}), Be = (e) => {
|
|
4380
|
+
const t = /* @__PURE__ */ Object.create(null);
|
|
4379
4381
|
return (n) => {
|
|
4380
4382
|
const i = JSON.stringify(n);
|
|
4381
|
-
return i in
|
|
4383
|
+
return i in t ? t[i] : t[i] = e(n);
|
|
4382
4384
|
};
|
|
4383
4385
|
};
|
|
4384
|
-
var Ki = Object.defineProperty,
|
|
4385
|
-
for (var r in
|
|
4386
|
-
xr.call(
|
|
4387
|
-
if (
|
|
4388
|
-
for (var r of
|
|
4389
|
-
Er.call(
|
|
4390
|
-
return
|
|
4391
|
-
}, K = (
|
|
4386
|
+
var Ki = Object.defineProperty, Ee = Object.getOwnPropertySymbols, xr = Object.prototype.hasOwnProperty, Er = Object.prototype.propertyIsEnumerable, Mt = (e, t, r) => t in e ? Ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
|
|
4387
|
+
for (var r in t || (t = {}))
|
|
4388
|
+
xr.call(t, r) && Mt(e, r, t[r]);
|
|
4389
|
+
if (Ee)
|
|
4390
|
+
for (var r of Ee(t))
|
|
4391
|
+
Er.call(t, r) && Mt(e, r, t[r]);
|
|
4392
|
+
return e;
|
|
4393
|
+
}, K = (e, t) => {
|
|
4392
4394
|
var r = {};
|
|
4393
|
-
for (var n in
|
|
4394
|
-
xr.call(
|
|
4395
|
-
if (
|
|
4396
|
-
for (var n of
|
|
4397
|
-
|
|
4395
|
+
for (var n in e)
|
|
4396
|
+
xr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4397
|
+
if (e != null && Ee)
|
|
4398
|
+
for (var n of Ee(e))
|
|
4399
|
+
t.indexOf(n) < 0 && Er.call(e, n) && (r[n] = e[n]);
|
|
4398
4400
|
return r;
|
|
4399
4401
|
};
|
|
4400
|
-
const
|
|
4402
|
+
const se = (e, t) => {
|
|
4401
4403
|
const { formats: r } = J();
|
|
4402
|
-
if (
|
|
4403
|
-
return r[
|
|
4404
|
-
throw new Error(`[svelte-i18n] Unknown "${
|
|
4405
|
-
},
|
|
4406
|
-
(
|
|
4407
|
-
var
|
|
4404
|
+
if (e in r && t in r[e])
|
|
4405
|
+
return r[e][t];
|
|
4406
|
+
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4407
|
+
}, eo = Be(
|
|
4408
|
+
(e) => {
|
|
4409
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4408
4410
|
if (r == null)
|
|
4409
4411
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4410
|
-
return n && (i =
|
|
4412
|
+
return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
|
|
4411
4413
|
}
|
|
4412
|
-
),
|
|
4413
|
-
(
|
|
4414
|
-
var
|
|
4414
|
+
), to = Be(
|
|
4415
|
+
(e) => {
|
|
4416
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4415
4417
|
if (r == null)
|
|
4416
4418
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4417
|
-
return n ? i =
|
|
4419
|
+
return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4418
4420
|
}
|
|
4419
|
-
), ro =
|
|
4420
|
-
(
|
|
4421
|
-
var
|
|
4421
|
+
), ro = Be(
|
|
4422
|
+
(e) => {
|
|
4423
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4422
4424
|
if (r == null)
|
|
4423
4425
|
throw new Error(
|
|
4424
4426
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4425
4427
|
);
|
|
4426
|
-
return n ? i =
|
|
4428
|
+
return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4427
4429
|
}
|
|
4428
|
-
), no = (
|
|
4429
|
-
var
|
|
4430
|
+
), no = (e = {}) => {
|
|
4431
|
+
var t = e, {
|
|
4430
4432
|
locale: r = D()
|
|
4431
|
-
} =
|
|
4433
|
+
} = t, n = K(t, [
|
|
4432
4434
|
"locale"
|
|
4433
4435
|
]);
|
|
4434
|
-
return
|
|
4435
|
-
}, io = (
|
|
4436
|
-
var
|
|
4436
|
+
return eo(lt({ locale: r }, n));
|
|
4437
|
+
}, io = (e = {}) => {
|
|
4438
|
+
var t = e, {
|
|
4437
4439
|
locale: r = D()
|
|
4438
|
-
} =
|
|
4440
|
+
} = t, n = K(t, [
|
|
4439
4441
|
"locale"
|
|
4440
4442
|
]);
|
|
4441
|
-
return
|
|
4442
|
-
}, oo = (
|
|
4443
|
-
var
|
|
4443
|
+
return to(lt({ locale: r }, n));
|
|
4444
|
+
}, oo = (e = {}) => {
|
|
4445
|
+
var t = e, {
|
|
4444
4446
|
locale: r = D()
|
|
4445
|
-
} =
|
|
4447
|
+
} = t, n = K(t, [
|
|
4446
4448
|
"locale"
|
|
4447
4449
|
]);
|
|
4448
|
-
return ro(
|
|
4449
|
-
}, so =
|
|
4450
|
+
return ro(lt({ locale: r }, n));
|
|
4451
|
+
}, so = Be(
|
|
4450
4452
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4451
|
-
(
|
|
4453
|
+
(e, t = D()) => new Ii(e, t, J().formats, {
|
|
4452
4454
|
ignoreTag: J().ignoreTag
|
|
4453
4455
|
})
|
|
4454
|
-
), ao = (
|
|
4456
|
+
), ao = (e, t = {}) => {
|
|
4455
4457
|
var r, n, i, o;
|
|
4456
|
-
let a =
|
|
4457
|
-
typeof
|
|
4458
|
+
let a = t;
|
|
4459
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
4458
4460
|
const {
|
|
4459
4461
|
values: s,
|
|
4460
4462
|
locale: l = D(),
|
|
@@ -4464,12 +4466,12 @@ const st = (t, e) => {
|
|
|
4464
4466
|
throw new Error(
|
|
4465
4467
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4466
4468
|
);
|
|
4467
|
-
let h = br(
|
|
4469
|
+
let h = br(e, l);
|
|
4468
4470
|
if (!h)
|
|
4469
|
-
h = (o = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id:
|
|
4471
|
+
h = (o = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4470
4472
|
else if (typeof h != "string")
|
|
4471
4473
|
return console.warn(
|
|
4472
|
-
`[svelte-i18n] Message with id "${
|
|
4474
|
+
`[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.`
|
|
4473
4475
|
), h;
|
|
4474
4476
|
if (!s)
|
|
4475
4477
|
return h;
|
|
@@ -4478,25 +4480,26 @@ const st = (t, e) => {
|
|
|
4478
4480
|
c = so(h, l).format(s);
|
|
4479
4481
|
} catch (f) {
|
|
4480
4482
|
f instanceof Error && console.warn(
|
|
4481
|
-
`[svelte-i18n] Message "${
|
|
4483
|
+
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4482
4484
|
f.message
|
|
4483
4485
|
);
|
|
4484
4486
|
}
|
|
4485
4487
|
return c;
|
|
4486
|
-
}, uo = (
|
|
4488
|
+
}, uo = (e, t) => oo(t).format(e), lo = (e, t) => io(t).format(e), ho = (e, t) => no(t).format(e), co = (e, t = D()) => br(e, t), fo = q([Y, le], () => ao);
|
|
4487
4489
|
q([Y], () => uo);
|
|
4488
4490
|
q([Y], () => lo);
|
|
4489
4491
|
q([Y], () => ho);
|
|
4490
|
-
q([Y,
|
|
4492
|
+
q([Y, le], () => co);
|
|
4491
4493
|
window.emWidgets = { topic: Sn };
|
|
4492
|
-
const mo = (
|
|
4493
|
-
|
|
4494
|
-
|
|
4494
|
+
const mo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4495
|
+
String(Number.MAX_SAFE_INTEGER).length;
|
|
4496
|
+
function Nt(e, t) {
|
|
4497
|
+
yr(e, t);
|
|
4495
4498
|
}
|
|
4496
|
-
function po(
|
|
4497
|
-
Y.set(
|
|
4499
|
+
function po(e) {
|
|
4500
|
+
Y.set(e);
|
|
4498
4501
|
}
|
|
4499
|
-
const $
|
|
4502
|
+
const $t = {
|
|
4500
4503
|
en: {
|
|
4501
4504
|
cancel: "Cancel",
|
|
4502
4505
|
confirm: "Confirm"
|
|
@@ -4542,79 +4545,79 @@ const $e = {
|
|
|
4542
4545
|
confirm: "Confirm"
|
|
4543
4546
|
}
|
|
4544
4547
|
};
|
|
4545
|
-
function bo(
|
|
4546
|
-
$r(
|
|
4548
|
+
function bo(e) {
|
|
4549
|
+
$r(e, "svelte-n224ff", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GamingLimitsConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GamingLimitsConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainerMobile{padding:40px;max-width:330px}.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsCancelButton,.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GamingLimitsConfirmationContent{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea .GamingLimitsCancelButton,.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 10px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper{border:none;padding:0}');
|
|
4547
4550
|
}
|
|
4548
|
-
const go = (
|
|
4549
|
-
function yo(
|
|
4550
|
-
let
|
|
4551
|
+
const go = (e) => ({}), Rt = (e) => ({});
|
|
4552
|
+
function yo(e) {
|
|
4553
|
+
let t, r;
|
|
4551
4554
|
return {
|
|
4552
4555
|
c() {
|
|
4553
|
-
|
|
4556
|
+
t = ft("svg"), r = ft("path"), H(r, "stroke-linecap", "round"), H(r, "stroke-linejoin", "round"), H(r, "stroke-width", "2"), H(r, "d", "M6 18L18 6M6 6l12 12"), H(t, "class", "w-6 h-6"), H(t, "fill", "none"), H(t, "stroke", "currentColor"), H(t, "viewBox", "0 0 24 24"), H(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4554
4557
|
},
|
|
4555
4558
|
m(n, i) {
|
|
4556
|
-
|
|
4559
|
+
at(n, t, i), P(t, r);
|
|
4557
4560
|
},
|
|
4558
4561
|
p: L,
|
|
4559
4562
|
d(n) {
|
|
4560
|
-
n &&
|
|
4563
|
+
n && ae(t);
|
|
4561
4564
|
}
|
|
4562
4565
|
};
|
|
4563
4566
|
}
|
|
4564
|
-
function vo(
|
|
4565
|
-
let
|
|
4567
|
+
function vo(e) {
|
|
4568
|
+
let t, r, n, i, o, a, s, l, u, h = (
|
|
4566
4569
|
/*$_*/
|
|
4567
|
-
|
|
4570
|
+
e[2]("cancel") + ""
|
|
4568
4571
|
), c, f, p, m = (
|
|
4569
4572
|
/*$_*/
|
|
4570
|
-
|
|
4573
|
+
e[2]("confirm") + ""
|
|
4571
4574
|
), d, v, T, C;
|
|
4572
4575
|
const S = (
|
|
4573
4576
|
/*#slots*/
|
|
4574
|
-
|
|
4575
|
-
),
|
|
4577
|
+
e[14].close
|
|
4578
|
+
), A = Pr(
|
|
4576
4579
|
S,
|
|
4577
|
-
|
|
4580
|
+
e,
|
|
4578
4581
|
/*$$scope*/
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
), E =
|
|
4582
|
+
e[13],
|
|
4583
|
+
Rt
|
|
4584
|
+
), E = A || yo();
|
|
4582
4585
|
return {
|
|
4583
4586
|
c() {
|
|
4584
|
-
|
|
4587
|
+
t = I("div"), r = I("div"), n = I("span"), E && E.c(), i = Pe(), o = I("div"), a = re(
|
|
4585
4588
|
/*modaltext*/
|
|
4586
|
-
|
|
4587
|
-
), s =
|
|
4588
|
-
(
|
|
4589
|
-
(
|
|
4590
|
-
(
|
|
4589
|
+
e[0]
|
|
4590
|
+
), s = Pe(), l = I("div"), u = I("button"), c = re(h), f = Pe(), p = I("button"), d = re(m), H(n, "class", "ModalCloseBtn"), H(n, "role", "button"), H(o, "class", "GamingLimitsConfirmationContent"), H(u, "class", "GamingLimitsCancelButton"), H(p, "class", "GamingLimitsConfirmButton"), H(l, "class", "GamingLimitsConfirmationControlArea " + /*isMobile*/
|
|
4591
|
+
(e[3] ? "GamingLimitsConfirmationControlAreaMobile" : "")), H(r, "class", "GamingLimitsConfirmationContainer " + /*isMobile*/
|
|
4592
|
+
(e[3] ? "GamingLimitsConfirmationContainerMobile" : "")), H(t, "class", "GamingLimitsConfirmationWrapper " + /*isMobile*/
|
|
4593
|
+
(e[3] ? "GamingLimitsConfirmationMobileWrapper" : ""));
|
|
4591
4594
|
},
|
|
4592
4595
|
m(_, O) {
|
|
4593
|
-
|
|
4594
|
-
|
|
4596
|
+
at(_, t, O), P(t, r), P(r, n), E && E.m(n, null), P(r, i), P(r, o), P(o, a), P(r, s), P(r, l), P(l, u), P(u, c), P(l, f), P(l, p), P(p, d), e[15](t), v = !0, T || (C = [
|
|
4597
|
+
Oe(
|
|
4595
4598
|
n,
|
|
4596
4599
|
"click",
|
|
4597
4600
|
/*close*/
|
|
4598
|
-
|
|
4601
|
+
e[4]
|
|
4599
4602
|
),
|
|
4600
|
-
|
|
4603
|
+
Oe(
|
|
4601
4604
|
u,
|
|
4602
4605
|
"click",
|
|
4603
4606
|
/*cancelChanges*/
|
|
4604
|
-
|
|
4607
|
+
e[6]
|
|
4605
4608
|
),
|
|
4606
|
-
|
|
4609
|
+
Oe(
|
|
4607
4610
|
p,
|
|
4608
4611
|
"click",
|
|
4609
4612
|
/*confirmChanges*/
|
|
4610
|
-
|
|
4613
|
+
e[5]
|
|
4611
4614
|
)
|
|
4612
4615
|
], T = !0);
|
|
4613
4616
|
},
|
|
4614
4617
|
p(_, [O]) {
|
|
4615
|
-
|
|
4618
|
+
A && A.p && (!v || O & /*$$scope*/
|
|
4616
4619
|
8192) && Lr(
|
|
4617
|
-
|
|
4620
|
+
A,
|
|
4618
4621
|
S,
|
|
4619
4622
|
_,
|
|
4620
4623
|
/*$$scope*/
|
|
@@ -4629,49 +4632,49 @@ function vo(t) {
|
|
|
4629
4632
|
/*$$scope*/
|
|
4630
4633
|
_[13]
|
|
4631
4634
|
),
|
|
4632
|
-
|
|
4635
|
+
Rt
|
|
4633
4636
|
), (!v || O & /*modaltext*/
|
|
4634
|
-
1) &&
|
|
4637
|
+
1) && Le(
|
|
4635
4638
|
a,
|
|
4636
4639
|
/*modaltext*/
|
|
4637
4640
|
_[0]
|
|
4638
4641
|
), (!v || O & /*$_*/
|
|
4639
4642
|
4) && h !== (h = /*$_*/
|
|
4640
|
-
_[2]("cancel") + "") &&
|
|
4643
|
+
_[2]("cancel") + "") && Le(c, h), (!v || O & /*$_*/
|
|
4641
4644
|
4) && m !== (m = /*$_*/
|
|
4642
|
-
_[2]("confirm") + "") &&
|
|
4645
|
+
_[2]("confirm") + "") && Le(d, m);
|
|
4643
4646
|
},
|
|
4644
4647
|
i(_) {
|
|
4645
|
-
v || (
|
|
4648
|
+
v || (Xt(E, _), v = !0);
|
|
4646
4649
|
},
|
|
4647
4650
|
o(_) {
|
|
4648
4651
|
Yr(E, _), v = !1;
|
|
4649
4652
|
},
|
|
4650
4653
|
d(_) {
|
|
4651
|
-
_ &&
|
|
4654
|
+
_ && ae(t), E && E.d(_), e[15](null), T = !1, U(C);
|
|
4652
4655
|
}
|
|
4653
4656
|
};
|
|
4654
4657
|
}
|
|
4655
|
-
function _o(
|
|
4658
|
+
function _o(e, t, r) {
|
|
4656
4659
|
let n;
|
|
4657
|
-
|
|
4658
|
-
let { $$slots: i = {}, $$scope: o } =
|
|
4660
|
+
Br(e, fo, (g) => r(2, n = g));
|
|
4661
|
+
let { $$slots: i = {}, $$scope: o } = t, { modaltext: a = "Are you sure that you want to perform this action?" } = t, { modalsource: s = "" } = t, { lang: l = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: c } = t, { translationurl: f = "" } = t;
|
|
4659
4662
|
const p = () => {
|
|
4660
4663
|
fetch(f).then((F) => F.json()).then((F) => {
|
|
4661
|
-
Object.keys(F).forEach((
|
|
4662
|
-
|
|
4664
|
+
Object.keys(F).forEach((ht) => {
|
|
4665
|
+
Nt(ht, F[ht]);
|
|
4663
4666
|
});
|
|
4664
4667
|
}).catch((F) => {
|
|
4665
4668
|
console.log(F);
|
|
4666
4669
|
});
|
|
4667
4670
|
};
|
|
4668
|
-
Object.keys($
|
|
4669
|
-
|
|
4671
|
+
Object.keys($t).forEach((g) => {
|
|
4672
|
+
Nt(g, $t[g]);
|
|
4670
4673
|
});
|
|
4671
4674
|
let m, d = window.navigator.userAgent, v = mo(d) !== "PC", T = {}, C = "";
|
|
4672
4675
|
const S = () => {
|
|
4673
4676
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4674
|
-
},
|
|
4677
|
+
}, A = () => {
|
|
4675
4678
|
s === "groupEdit" ? window.postMessage({ type: "GamingLimitsConfirmChanges" }, window.location.href) : s === "infoCard" && window.postMessage(
|
|
4676
4679
|
{
|
|
4677
4680
|
type: "PlayerAccountGamingLimitDelete",
|
|
@@ -4696,18 +4699,18 @@ function _o(t, e, r) {
|
|
|
4696
4699
|
window.removeEventListener("message", O);
|
|
4697
4700
|
}));
|
|
4698
4701
|
function Tr(g) {
|
|
4699
|
-
|
|
4702
|
+
je[g ? "unshift" : "push"](() => {
|
|
4700
4703
|
m = g, r(1, m);
|
|
4701
4704
|
});
|
|
4702
4705
|
}
|
|
4703
|
-
return
|
|
4706
|
+
return e.$$set = (g) => {
|
|
4704
4707
|
"modaltext" in g && r(0, a = g.modaltext), "modalsource" in g && r(7, s = g.modalsource), "lang" in g && r(8, l = g.lang), "clientstyling" in g && r(9, u = g.clientstyling), "clientstylingurl" in g && r(10, h = g.clientstylingurl), "mbsource" in g && r(11, c = g.mbsource), "translationurl" in g && r(12, f = g.translationurl), "$$scope" in g && r(13, o = g.$$scope);
|
|
4705
|
-
},
|
|
4706
|
-
|
|
4707
|
-
385 && a && s && l && Sr(),
|
|
4708
|
-
514 && u && m && un(m, u),
|
|
4709
|
-
1026 && h && m && ln(m, h),
|
|
4710
|
-
2050 && c && m && hn(m, `${c}.Style`),
|
|
4708
|
+
}, e.$$.update = () => {
|
|
4709
|
+
e.$$.dirty & /*modaltext, modalsource, lang*/
|
|
4710
|
+
385 && a && s && l && Sr(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4711
|
+
514 && u && m && un(m, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4712
|
+
1026 && h && m && ln(m, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4713
|
+
2050 && c && m && hn(m, `${c}.Style`), e.$$.dirty & /*translationurl*/
|
|
4711
4714
|
4096 && f && p();
|
|
4712
4715
|
}, [
|
|
4713
4716
|
a,
|
|
@@ -4715,7 +4718,7 @@ function _o(t, e, r) {
|
|
|
4715
4718
|
n,
|
|
4716
4719
|
v,
|
|
4717
4720
|
S,
|
|
4718
|
-
|
|
4721
|
+
A,
|
|
4719
4722
|
E,
|
|
4720
4723
|
s,
|
|
4721
4724
|
l,
|
|
@@ -4729,13 +4732,13 @@ function _o(t, e, r) {
|
|
|
4729
4732
|
];
|
|
4730
4733
|
}
|
|
4731
4734
|
class wr extends sn {
|
|
4732
|
-
constructor(
|
|
4735
|
+
constructor(t) {
|
|
4733
4736
|
super(), nn(
|
|
4734
4737
|
this,
|
|
4735
|
-
|
|
4738
|
+
t,
|
|
4736
4739
|
_o,
|
|
4737
4740
|
vo,
|
|
4738
|
-
|
|
4741
|
+
Ut,
|
|
4739
4742
|
{
|
|
4740
4743
|
modaltext: 0,
|
|
4741
4744
|
modalsource: 7,
|
|
@@ -4751,44 +4754,44 @@ class wr extends sn {
|
|
|
4751
4754
|
get modaltext() {
|
|
4752
4755
|
return this.$$.ctx[0];
|
|
4753
4756
|
}
|
|
4754
|
-
set modaltext(
|
|
4755
|
-
this.$$set({ modaltext:
|
|
4757
|
+
set modaltext(t) {
|
|
4758
|
+
this.$$set({ modaltext: t }), N();
|
|
4756
4759
|
}
|
|
4757
4760
|
get modalsource() {
|
|
4758
4761
|
return this.$$.ctx[7];
|
|
4759
4762
|
}
|
|
4760
|
-
set modalsource(
|
|
4761
|
-
this.$$set({ modalsource:
|
|
4763
|
+
set modalsource(t) {
|
|
4764
|
+
this.$$set({ modalsource: t }), N();
|
|
4762
4765
|
}
|
|
4763
4766
|
get lang() {
|
|
4764
4767
|
return this.$$.ctx[8];
|
|
4765
4768
|
}
|
|
4766
|
-
set lang(
|
|
4767
|
-
this.$$set({ lang:
|
|
4769
|
+
set lang(t) {
|
|
4770
|
+
this.$$set({ lang: t }), N();
|
|
4768
4771
|
}
|
|
4769
4772
|
get clientstyling() {
|
|
4770
4773
|
return this.$$.ctx[9];
|
|
4771
4774
|
}
|
|
4772
|
-
set clientstyling(
|
|
4773
|
-
this.$$set({ clientstyling:
|
|
4775
|
+
set clientstyling(t) {
|
|
4776
|
+
this.$$set({ clientstyling: t }), N();
|
|
4774
4777
|
}
|
|
4775
4778
|
get clientstylingurl() {
|
|
4776
4779
|
return this.$$.ctx[10];
|
|
4777
4780
|
}
|
|
4778
|
-
set clientstylingurl(
|
|
4779
|
-
this.$$set({ clientstylingurl:
|
|
4781
|
+
set clientstylingurl(t) {
|
|
4782
|
+
this.$$set({ clientstylingurl: t }), N();
|
|
4780
4783
|
}
|
|
4781
4784
|
get mbsource() {
|
|
4782
4785
|
return this.$$.ctx[11];
|
|
4783
4786
|
}
|
|
4784
|
-
set mbsource(
|
|
4785
|
-
this.$$set({ mbsource:
|
|
4787
|
+
set mbsource(t) {
|
|
4788
|
+
this.$$set({ mbsource: t }), N();
|
|
4786
4789
|
}
|
|
4787
4790
|
get translationurl() {
|
|
4788
4791
|
return this.$$.ctx[12];
|
|
4789
4792
|
}
|
|
4790
|
-
set translationurl(
|
|
4791
|
-
this.$$set({ translationurl:
|
|
4793
|
+
set translationurl(t) {
|
|
4794
|
+
this.$$set({ translationurl: t }), N();
|
|
4792
4795
|
}
|
|
4793
4796
|
}
|
|
4794
4797
|
on(wr, { modaltext: {}, modalsource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, ["close"], [], !0);
|
|
@@ -4798,12 +4801,12 @@ const Io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4798
4801
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4799
4802
|
export {
|
|
4800
4803
|
Y as $,
|
|
4801
|
-
|
|
4804
|
+
je as A,
|
|
4802
4805
|
Eo as B,
|
|
4803
4806
|
Co as C,
|
|
4804
|
-
|
|
4807
|
+
we as D,
|
|
4805
4808
|
Ho as E,
|
|
4806
|
-
|
|
4809
|
+
ve as F,
|
|
4807
4810
|
un as G,
|
|
4808
4811
|
ln as H,
|
|
4809
4812
|
hn as I,
|
|
@@ -4811,7 +4814,7 @@ export {
|
|
|
4811
4814
|
fo as K,
|
|
4812
4815
|
Hr as L,
|
|
4813
4816
|
Yr as M,
|
|
4814
|
-
|
|
4817
|
+
Xt as N,
|
|
4815
4818
|
Po as O,
|
|
4816
4819
|
Pr as P,
|
|
4817
4820
|
Oo as Q,
|
|
@@ -4819,32 +4822,32 @@ export {
|
|
|
4819
4822
|
sn as S,
|
|
4820
4823
|
Ir as T,
|
|
4821
4824
|
Or as U,
|
|
4822
|
-
|
|
4825
|
+
Bo as V,
|
|
4823
4826
|
Io as W,
|
|
4824
4827
|
yr as a,
|
|
4825
4828
|
$r as b,
|
|
4826
|
-
|
|
4827
|
-
|
|
4829
|
+
Le as c,
|
|
4830
|
+
ae as d,
|
|
4828
4831
|
So as e,
|
|
4829
4832
|
N as f,
|
|
4830
4833
|
H as g,
|
|
4831
|
-
|
|
4834
|
+
at as h,
|
|
4832
4835
|
nn as i,
|
|
4833
4836
|
P as j,
|
|
4834
4837
|
I as k,
|
|
4835
|
-
|
|
4836
|
-
|
|
4838
|
+
Oe as l,
|
|
4839
|
+
Pe as m,
|
|
4837
4840
|
L as n,
|
|
4838
|
-
|
|
4841
|
+
ft as o,
|
|
4839
4842
|
wo as p,
|
|
4840
|
-
|
|
4843
|
+
Br as q,
|
|
4841
4844
|
U as r,
|
|
4842
|
-
|
|
4843
|
-
|
|
4845
|
+
Ut as s,
|
|
4846
|
+
re as t,
|
|
4844
4847
|
mo as u,
|
|
4845
4848
|
zr as v,
|
|
4846
4849
|
Lo as w,
|
|
4847
4850
|
xo as x,
|
|
4848
|
-
|
|
4851
|
+
Ao as y,
|
|
4849
4852
|
To as z
|
|
4850
4853
|
};
|