@everymatrix/player-account-gaming-limits-group-edit 1.49.2 → 1.50.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountGamingLimitsConfirmationModal-It4InH0n.js → PlayerAccountGamingLimitsConfirmationModal-BCSDb5sl.js} +1372 -1366
- package/components/PlayerAccountGamingLimitsConfirmationModal-D0Q7KMyT.cjs +8 -0
- package/components/{PlayerAccountGamingLimitsGroupEdit-CFmqjjMG.cjs → PlayerAccountGamingLimitsGroupEdit-BkonTmRQ.cjs} +4 -4
- package/components/{PlayerAccountGamingLimitsGroupEdit-kNOMvL_D.js → PlayerAccountGamingLimitsGroupEdit-CwrIrynp.js} +177 -177
- package/components/{PlayerAccountGamingLimitsPopup-sDaJyH7A.js → PlayerAccountGamingLimitsPopup-B78Ks0wA.js} +2 -2
- package/components/PlayerAccountGamingLimitsPopup-DsxzXhH_.cjs +1 -0
- package/components/{PlayerAccountModal-COVfhszx.cjs → PlayerAccountModal-E8xjbZ21.cjs} +1 -1
- package/components/{PlayerAccountModal-D4AKt4ou.js → PlayerAccountModal-zS9z-5xz.js} +1 -1
- package/es2015/player-account-gaming-limits-group-edit.cjs +1 -1
- package/es2015/player-account-gaming-limits-group-edit.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-CPswrBXE.cjs +0 -8
- package/components/PlayerAccountGamingLimitsPopup-HRmUpGHt.cjs +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var r in
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var O = (
|
|
14
|
-
var
|
|
1
|
+
var Or = Object.defineProperty, Ir = Object.defineProperties;
|
|
2
|
+
var Mr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var ce = Object.getOwnPropertySymbols;
|
|
4
|
+
var Nr = Object.prototype.hasOwnProperty, $r = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Pt = (t, e, r) => e in t ? Or(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, fe = (t, e) => {
|
|
6
|
+
for (var r in e || (e = {}))
|
|
7
|
+
Nr.call(e, r) && Pt(t, r, e[r]);
|
|
8
|
+
if (ce)
|
|
9
|
+
for (var r of ce(e))
|
|
10
|
+
$r.call(e, r) && Pt(t, r, e[r]);
|
|
11
|
+
return t;
|
|
12
|
+
}, me = (t, e) => Ir(t, Mr(e));
|
|
13
|
+
var O = (t, e, r) => Pt(t, typeof e != "symbol" ? e + "" : e, r);
|
|
14
|
+
var pe = (t, e, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
s(r.next(l));
|
|
@@ -25,324 +25,324 @@ var pt = (e, t, r) => new Promise((n, i) => {
|
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
27
|
}, s = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, a);
|
|
28
|
-
s((r = r.apply(
|
|
28
|
+
s((r = r.apply(t, e)).next());
|
|
29
29
|
});
|
|
30
30
|
function I() {
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
function
|
|
34
|
-
for (const r in
|
|
32
|
+
const Rr = (t) => t;
|
|
33
|
+
function Gr(t, e) {
|
|
34
|
+
for (const r in e) t[r] = e[r];
|
|
35
35
|
return (
|
|
36
36
|
/** @type {T & S} */
|
|
37
|
-
|
|
37
|
+
t
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
return
|
|
40
|
+
function je(t) {
|
|
41
|
+
return t();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function de() {
|
|
44
44
|
return /* @__PURE__ */ Object.create(null);
|
|
45
45
|
}
|
|
46
|
-
function F(
|
|
47
|
-
|
|
46
|
+
function F(t) {
|
|
47
|
+
t.forEach(je);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
return typeof
|
|
49
|
+
function St(t) {
|
|
50
|
+
return typeof t == "function";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return
|
|
52
|
+
function ke(t, e) {
|
|
53
|
+
return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
return Object.keys(
|
|
55
|
+
function Ur(t) {
|
|
56
|
+
return Object.keys(t).length === 0;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
if (
|
|
60
|
-
for (const n of
|
|
58
|
+
function Ve(t, ...e) {
|
|
59
|
+
if (t == null) {
|
|
60
|
+
for (const n of e)
|
|
61
61
|
n(void 0);
|
|
62
62
|
return I;
|
|
63
63
|
}
|
|
64
|
-
const r =
|
|
64
|
+
const r = t.subscribe(...e);
|
|
65
65
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
|
|
67
|
+
function Dr(t, e, r) {
|
|
68
|
+
t.$$.on_destroy.push(Ve(e, r));
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
if (
|
|
72
|
-
const i =
|
|
73
|
-
return
|
|
70
|
+
function Fr(t, e, r, n) {
|
|
71
|
+
if (t) {
|
|
72
|
+
const i = Xe(t, e, r, n);
|
|
73
|
+
return t[0](i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return
|
|
76
|
+
function Xe(t, e, r, n) {
|
|
77
|
+
return t[1] && n ? Gr(r.ctx.slice(), t[1](n(e))) : r.ctx;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
if (
|
|
81
|
-
const i =
|
|
82
|
-
if (
|
|
79
|
+
function jr(t, e, r, n) {
|
|
80
|
+
if (t[2] && n) {
|
|
81
|
+
const i = t[2](n(r));
|
|
82
|
+
if (e.dirty === void 0)
|
|
83
83
|
return i;
|
|
84
84
|
if (typeof i == "object") {
|
|
85
|
-
const o = [], a = Math.max(
|
|
85
|
+
const o = [], a = Math.max(e.dirty.length, i.length);
|
|
86
86
|
for (let s = 0; s < a; s += 1)
|
|
87
|
-
o[s] =
|
|
87
|
+
o[s] = e.dirty[s] | i[s];
|
|
88
88
|
return o;
|
|
89
89
|
}
|
|
90
|
-
return
|
|
90
|
+
return e.dirty | i;
|
|
91
91
|
}
|
|
92
|
-
return
|
|
92
|
+
return e.dirty;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function kr(t, e, r, n, i, o) {
|
|
95
95
|
if (i) {
|
|
96
|
-
const a =
|
|
97
|
-
|
|
96
|
+
const a = Xe(e, r, n, o);
|
|
97
|
+
t.p(a, i);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
if (
|
|
102
|
-
const
|
|
100
|
+
function Vr(t) {
|
|
101
|
+
if (t.ctx.length > 32) {
|
|
102
|
+
const e = [], r = t.ctx.length / 32;
|
|
103
103
|
for (let n = 0; n < r; n++)
|
|
104
|
-
|
|
105
|
-
return
|
|
104
|
+
e[n] = -1;
|
|
105
|
+
return e;
|
|
106
106
|
}
|
|
107
107
|
return -1;
|
|
108
108
|
}
|
|
109
|
-
const
|
|
110
|
-
let
|
|
109
|
+
const ze = typeof window != "undefined";
|
|
110
|
+
let Xr = ze ? () => window.performance.now() : () => Date.now(), ie = ze ? (t) => requestAnimationFrame(t) : I;
|
|
111
111
|
const W = /* @__PURE__ */ new Set();
|
|
112
|
-
function
|
|
113
|
-
W.forEach((
|
|
114
|
-
|
|
115
|
-
}), W.size !== 0 &&
|
|
116
|
-
}
|
|
117
|
-
function
|
|
118
|
-
let
|
|
119
|
-
return W.size === 0 &&
|
|
112
|
+
function We(t) {
|
|
113
|
+
W.forEach((e) => {
|
|
114
|
+
e.c(t) || (W.delete(e), e.f());
|
|
115
|
+
}), W.size !== 0 && ie(We);
|
|
116
|
+
}
|
|
117
|
+
function zr(t) {
|
|
118
|
+
let e;
|
|
119
|
+
return W.size === 0 && ie(We), {
|
|
120
120
|
promise: new Promise((r) => {
|
|
121
|
-
W.add(
|
|
121
|
+
W.add(e = { c: t, f: r });
|
|
122
122
|
}),
|
|
123
123
|
abort() {
|
|
124
|
-
W.delete(
|
|
124
|
+
W.delete(e);
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
|
-
function P(
|
|
129
|
-
|
|
128
|
+
function P(t, e) {
|
|
129
|
+
t.appendChild(e);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
const n =
|
|
133
|
-
if (!n.getElementById(
|
|
131
|
+
function Wr(t, e, r) {
|
|
132
|
+
const n = oe(t);
|
|
133
|
+
if (!n.getElementById(e)) {
|
|
134
134
|
const i = M("style");
|
|
135
|
-
i.id =
|
|
135
|
+
i.id = e, i.textContent = r, Ze(n, i);
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
if (!
|
|
140
|
-
const
|
|
141
|
-
return
|
|
142
|
-
|
|
138
|
+
function oe(t) {
|
|
139
|
+
if (!t) return document;
|
|
140
|
+
const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
|
141
|
+
return e && /** @type {ShadowRoot} */
|
|
142
|
+
e.host ? (
|
|
143
143
|
/** @type {ShadowRoot} */
|
|
144
|
-
|
|
145
|
-
) :
|
|
144
|
+
e
|
|
145
|
+
) : t.ownerDocument;
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
const
|
|
149
|
-
return
|
|
147
|
+
function Zr(t) {
|
|
148
|
+
const e = M("style");
|
|
149
|
+
return e.textContent = "/* empty */", Ze(oe(t), e), e.sheet;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function Ze(t, e) {
|
|
152
152
|
return P(
|
|
153
153
|
/** @type {Document} */
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
),
|
|
154
|
+
t.head || t,
|
|
155
|
+
e
|
|
156
|
+
), e.sheet;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
|
|
158
|
+
function se(t, e, r) {
|
|
159
|
+
t.insertBefore(e, r || null);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
|
|
161
|
+
function ht(t) {
|
|
162
|
+
t.parentNode && t.parentNode.removeChild(t);
|
|
163
163
|
}
|
|
164
|
-
function Ao(
|
|
165
|
-
for (let r = 0; r <
|
|
166
|
-
|
|
164
|
+
function Ao(t, e) {
|
|
165
|
+
for (let r = 0; r < t.length; r += 1)
|
|
166
|
+
t[r] && t[r].d(e);
|
|
167
167
|
}
|
|
168
|
-
function M(
|
|
169
|
-
return document.createElement(
|
|
168
|
+
function M(t) {
|
|
169
|
+
return document.createElement(t);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
return document.createElementNS("http://www.w3.org/2000/svg",
|
|
171
|
+
function be(t) {
|
|
172
|
+
return document.createElementNS("http://www.w3.org/2000/svg", t);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
return document.createTextNode(
|
|
174
|
+
function ot(t) {
|
|
175
|
+
return document.createTextNode(t);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
return
|
|
177
|
+
function Lt() {
|
|
178
|
+
return ot(" ");
|
|
179
179
|
}
|
|
180
180
|
function Po() {
|
|
181
|
-
return
|
|
181
|
+
return ot("");
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
return
|
|
183
|
+
function Ot(t, e, r, n) {
|
|
184
|
+
return t.addEventListener(e, r, n), () => t.removeEventListener(e, r, n);
|
|
185
185
|
}
|
|
186
|
-
function Lo(
|
|
187
|
-
return function(
|
|
188
|
-
return
|
|
186
|
+
function Lo(t) {
|
|
187
|
+
return function(e) {
|
|
188
|
+
return e.preventDefault(), t.call(this, e);
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
|
-
function H(
|
|
192
|
-
r == null ?
|
|
191
|
+
function H(t, e, r) {
|
|
192
|
+
r == null ? t.removeAttribute(e) : t.getAttribute(e) !== r && t.setAttribute(e, r);
|
|
193
193
|
}
|
|
194
|
-
function Oo(
|
|
195
|
-
const n =
|
|
196
|
-
n in
|
|
194
|
+
function Oo(t, e, r) {
|
|
195
|
+
const n = e.toLowerCase();
|
|
196
|
+
n in t ? t[n] = typeof t[n] == "boolean" && r === "" ? !0 : r : e in t ? t[e] = typeof t[e] == "boolean" && r === "" ? !0 : r : H(t, e, r);
|
|
197
197
|
}
|
|
198
|
-
function Io(
|
|
199
|
-
return
|
|
198
|
+
function Io(t) {
|
|
199
|
+
return t === "" ? null : +t;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
return Array.from(
|
|
201
|
+
function Qr(t) {
|
|
202
|
+
return Array.from(t.childNodes);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
|
|
206
|
-
|
|
204
|
+
function It(t, e) {
|
|
205
|
+
e = "" + e, t.data !== e && (t.data = /** @type {string} */
|
|
206
|
+
e);
|
|
207
207
|
}
|
|
208
|
-
function Mo(
|
|
209
|
-
|
|
208
|
+
function Mo(t, e) {
|
|
209
|
+
t.value = e == null ? "" : e;
|
|
210
210
|
}
|
|
211
|
-
function No(
|
|
212
|
-
for (let n = 0; n <
|
|
213
|
-
const i =
|
|
214
|
-
if (i.__value ===
|
|
211
|
+
function No(t, e, r) {
|
|
212
|
+
for (let n = 0; n < t.options.length; n += 1) {
|
|
213
|
+
const i = t.options[n];
|
|
214
|
+
if (i.__value === e) {
|
|
215
215
|
i.selected = !0;
|
|
216
216
|
return;
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
(!r ||
|
|
219
|
+
(!r || e !== void 0) && (t.selectedIndex = -1);
|
|
220
220
|
}
|
|
221
|
-
function $o(
|
|
222
|
-
const
|
|
223
|
-
return
|
|
221
|
+
function $o(t) {
|
|
222
|
+
const e = t.querySelector(":checked");
|
|
223
|
+
return e && e.__value;
|
|
224
224
|
}
|
|
225
|
-
function Jr(
|
|
226
|
-
return new CustomEvent(
|
|
225
|
+
function Jr(t, e, { bubbles: r = !1, cancelable: n = !1 } = {}) {
|
|
226
|
+
return new CustomEvent(t, { detail: e, bubbles: r, cancelable: n });
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
const
|
|
230
|
-
return
|
|
228
|
+
function qr(t) {
|
|
229
|
+
const e = {};
|
|
230
|
+
return t.childNodes.forEach(
|
|
231
231
|
/** @param {Element} node */
|
|
232
232
|
(r) => {
|
|
233
|
-
|
|
233
|
+
e[r.slot || "default"] = !0;
|
|
234
234
|
}
|
|
235
|
-
),
|
|
235
|
+
), e;
|
|
236
236
|
}
|
|
237
|
-
const
|
|
238
|
-
let
|
|
239
|
-
function
|
|
240
|
-
let
|
|
241
|
-
for (; r--; )
|
|
242
|
-
return
|
|
237
|
+
const vt = /* @__PURE__ */ new Map();
|
|
238
|
+
let _t = 0;
|
|
239
|
+
function Yr(t) {
|
|
240
|
+
let e = 5381, r = t.length;
|
|
241
|
+
for (; r--; ) e = (e << 5) - e ^ t.charCodeAt(r);
|
|
242
|
+
return e >>> 0;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
const r = { stylesheet:
|
|
246
|
-
return
|
|
244
|
+
function Kr(t, e) {
|
|
245
|
+
const r = { stylesheet: Zr(e), rules: {} };
|
|
246
|
+
return vt.set(t, r), r;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function ge(t, e, r, n, i, o, a, s = 0) {
|
|
249
249
|
const l = 16.666 / n;
|
|
250
250
|
let u = `{
|
|
251
251
|
`;
|
|
252
252
|
for (let y = 0; y <= 1; y += l) {
|
|
253
|
-
const T =
|
|
253
|
+
const T = e + (r - e) * o(y);
|
|
254
254
|
u += y * 100 + `%{${a(T, 1 - T)}}
|
|
255
255
|
`;
|
|
256
256
|
}
|
|
257
257
|
const h = u + `100% {${a(r, 1 - r)}}
|
|
258
|
-
}`, c = `__svelte_${
|
|
258
|
+
}`, c = `__svelte_${Yr(h)}_${s}`, f = oe(t), { stylesheet: p, rules: m } = vt.get(f) || Kr(f, t);
|
|
259
259
|
m[c] || (m[c] = !0, p.insertRule(`@keyframes ${c} ${h}`, p.cssRules.length));
|
|
260
|
-
const d =
|
|
261
|
-
return
|
|
260
|
+
const d = t.style.animation || "";
|
|
261
|
+
return t.style.animation = `${d ? `${d}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`, _t += 1, c;
|
|
262
262
|
}
|
|
263
|
-
function tn(
|
|
264
|
-
const r = (
|
|
265
|
-
|
|
263
|
+
function tn(t, e) {
|
|
264
|
+
const r = (t.style.animation || "").split(", "), n = r.filter(
|
|
265
|
+
e ? (o) => o.indexOf(e) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
266
266
|
// remove all Svelte animations
|
|
267
267
|
), i = r.length - n.length;
|
|
268
|
-
i && (
|
|
269
|
-
}
|
|
270
|
-
function
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
const { ownerNode:
|
|
274
|
-
|
|
275
|
-
}),
|
|
268
|
+
i && (t.style.animation = n.join(", "), _t -= i, _t || en());
|
|
269
|
+
}
|
|
270
|
+
function en() {
|
|
271
|
+
ie(() => {
|
|
272
|
+
_t || (vt.forEach((t) => {
|
|
273
|
+
const { ownerNode: e } = t.stylesheet;
|
|
274
|
+
e && ht(e);
|
|
275
|
+
}), vt.clear());
|
|
276
276
|
});
|
|
277
277
|
}
|
|
278
|
-
let
|
|
279
|
-
function
|
|
280
|
-
|
|
278
|
+
let at;
|
|
279
|
+
function st(t) {
|
|
280
|
+
at = t;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
283
|
-
if (!
|
|
284
|
-
return
|
|
282
|
+
function rn() {
|
|
283
|
+
if (!at) throw new Error("Function called outside component initialization");
|
|
284
|
+
return at;
|
|
285
285
|
}
|
|
286
|
-
function
|
|
287
|
-
|
|
286
|
+
function nn(t) {
|
|
287
|
+
rn().$$.on_mount.push(t);
|
|
288
288
|
}
|
|
289
|
-
const z = [],
|
|
289
|
+
const z = [], kt = [];
|
|
290
290
|
let Z = [];
|
|
291
|
-
const
|
|
292
|
-
let
|
|
293
|
-
function
|
|
294
|
-
|
|
291
|
+
const ye = [], on = /* @__PURE__ */ Promise.resolve();
|
|
292
|
+
let Vt = !1;
|
|
293
|
+
function sn() {
|
|
294
|
+
Vt || (Vt = !0, on.then(U));
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
Z.push(
|
|
296
|
+
function xt(t) {
|
|
297
|
+
Z.push(t);
|
|
298
298
|
}
|
|
299
|
-
const
|
|
299
|
+
const Mt = /* @__PURE__ */ new Set();
|
|
300
300
|
let V = 0;
|
|
301
301
|
function U() {
|
|
302
302
|
if (V !== 0)
|
|
303
303
|
return;
|
|
304
|
-
const
|
|
304
|
+
const t = at;
|
|
305
305
|
do {
|
|
306
306
|
try {
|
|
307
307
|
for (; V < z.length; ) {
|
|
308
|
-
const
|
|
309
|
-
V++,
|
|
308
|
+
const e = z[V];
|
|
309
|
+
V++, st(e), an(e.$$);
|
|
310
310
|
}
|
|
311
|
-
} catch (
|
|
312
|
-
throw z.length = 0, V = 0,
|
|
311
|
+
} catch (e) {
|
|
312
|
+
throw z.length = 0, V = 0, e;
|
|
313
313
|
}
|
|
314
|
-
for (
|
|
315
|
-
for (let
|
|
316
|
-
const r = Z[
|
|
317
|
-
|
|
314
|
+
for (st(null), z.length = 0, V = 0; kt.length; ) kt.pop()();
|
|
315
|
+
for (let e = 0; e < Z.length; e += 1) {
|
|
316
|
+
const r = Z[e];
|
|
317
|
+
Mt.has(r) || (Mt.add(r), r());
|
|
318
318
|
}
|
|
319
319
|
Z.length = 0;
|
|
320
320
|
} while (z.length);
|
|
321
|
-
for (;
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
}
|
|
325
|
-
function
|
|
326
|
-
if (
|
|
327
|
-
|
|
328
|
-
const
|
|
329
|
-
|
|
321
|
+
for (; ye.length; )
|
|
322
|
+
ye.pop()();
|
|
323
|
+
Vt = !1, Mt.clear(), st(t);
|
|
324
|
+
}
|
|
325
|
+
function an(t) {
|
|
326
|
+
if (t.fragment !== null) {
|
|
327
|
+
t.update(), F(t.before_update);
|
|
328
|
+
const e = t.dirty;
|
|
329
|
+
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(xt);
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
|
-
function
|
|
333
|
-
const
|
|
334
|
-
Z.forEach((n) =>
|
|
332
|
+
function un(t) {
|
|
333
|
+
const e = [], r = [];
|
|
334
|
+
Z.forEach((n) => t.indexOf(n) === -1 ? e.push(n) : r.push(n)), r.forEach((n) => n()), Z = e;
|
|
335
335
|
}
|
|
336
|
-
let
|
|
337
|
-
function
|
|
338
|
-
return
|
|
339
|
-
|
|
340
|
-
})),
|
|
336
|
+
let nt;
|
|
337
|
+
function ln() {
|
|
338
|
+
return nt || (nt = Promise.resolve(), nt.then(() => {
|
|
339
|
+
nt = null;
|
|
340
|
+
})), nt;
|
|
341
341
|
}
|
|
342
|
-
function
|
|
343
|
-
|
|
342
|
+
function Nt(t, e, r) {
|
|
343
|
+
t.dispatchEvent(Jr(`${e ? "intro" : "outro"}${r}`));
|
|
344
344
|
}
|
|
345
|
-
const
|
|
345
|
+
const pt = /* @__PURE__ */ new Set();
|
|
346
346
|
let $;
|
|
347
347
|
function Ro() {
|
|
348
348
|
$ = {
|
|
@@ -355,22 +355,22 @@ function Ro() {
|
|
|
355
355
|
function Go() {
|
|
356
356
|
$.r || F($.c), $ = $.p;
|
|
357
357
|
}
|
|
358
|
-
function
|
|
359
|
-
|
|
358
|
+
function Qe(t, e) {
|
|
359
|
+
t && t.i && (pt.delete(t), t.i(e));
|
|
360
360
|
}
|
|
361
|
-
function
|
|
362
|
-
if (
|
|
363
|
-
if (
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
}),
|
|
361
|
+
function hn(t, e, r, n) {
|
|
362
|
+
if (t && t.o) {
|
|
363
|
+
if (pt.has(t)) return;
|
|
364
|
+
pt.add(t), $.c.push(() => {
|
|
365
|
+
pt.delete(t), n && (r && t.d(1), n());
|
|
366
|
+
}), t.o(e);
|
|
367
367
|
} else n && n();
|
|
368
368
|
}
|
|
369
|
-
const
|
|
370
|
-
function Uo(
|
|
371
|
-
let o = t
|
|
369
|
+
const cn = { duration: 0 };
|
|
370
|
+
function Uo(t, e, r, n) {
|
|
371
|
+
let o = e(t, r, { direction: "both" }), a = n ? 0 : 1, s = null, l = null, u = null, h;
|
|
372
372
|
function c() {
|
|
373
|
-
u && tn(
|
|
373
|
+
u && tn(t, u);
|
|
374
374
|
}
|
|
375
375
|
function f(m, d) {
|
|
376
376
|
const y = (
|
|
@@ -391,17 +391,17 @@ function Uo(e, t, r, n) {
|
|
|
391
391
|
const {
|
|
392
392
|
delay: d = 0,
|
|
393
393
|
duration: y = 300,
|
|
394
|
-
easing: T =
|
|
394
|
+
easing: T = Rr,
|
|
395
395
|
tick: B = I,
|
|
396
396
|
css: S
|
|
397
|
-
} = o ||
|
|
398
|
-
start:
|
|
397
|
+
} = o || cn, C = {
|
|
398
|
+
start: Xr() + d,
|
|
399
399
|
b: m
|
|
400
400
|
};
|
|
401
|
-
m || (C.group = $, $.r += 1), "inert" in
|
|
402
|
-
|
|
403
|
-
if (l && w > l.start && (s = f(l, y), l = null,
|
|
404
|
-
|
|
401
|
+
m || (C.group = $, $.r += 1), "inert" in t && (m ? h !== void 0 && (t.inert = h) : (h = /** @type {HTMLElement} */
|
|
402
|
+
t.inert, t.inert = !0)), s || l ? l = C : (S && (c(), u = ge(t, a, m, y, d, T, S)), m && B(0, 1), s = f(C, y), xt(() => Nt(t, m, "start")), zr((w) => {
|
|
403
|
+
if (l && w > l.start && (s = f(l, y), l = null, Nt(t, s.b, "start"), S && (c(), u = ge(
|
|
404
|
+
t,
|
|
405
405
|
a,
|
|
406
406
|
s.b,
|
|
407
407
|
s.duration,
|
|
@@ -410,7 +410,7 @@ function Uo(e, t, r, n) {
|
|
|
410
410
|
o.css
|
|
411
411
|
))), s) {
|
|
412
412
|
if (w >= s.end)
|
|
413
|
-
B(a = s.b, 1 - a),
|
|
413
|
+
B(a = s.b, 1 - a), Nt(t, s.b, "end"), l || (s.b ? c() : --s.group.r || F(s.group.c)), s = null;
|
|
414
414
|
else if (w >= s.start) {
|
|
415
415
|
const x = w - s.start;
|
|
416
416
|
a = s.a + s.d * T(x / s.duration), B(a, 1 - a);
|
|
@@ -421,7 +421,7 @@ function Uo(e, t, r, n) {
|
|
|
421
421
|
}
|
|
422
422
|
return {
|
|
423
423
|
run(m) {
|
|
424
|
-
|
|
424
|
+
St(o) ? ln().then(() => {
|
|
425
425
|
o = o({ direction: m ? "in" : "out" }), p(m);
|
|
426
426
|
}) : p(m);
|
|
427
427
|
},
|
|
@@ -430,65 +430,65 @@ function Uo(e, t, r, n) {
|
|
|
430
430
|
}
|
|
431
431
|
};
|
|
432
432
|
}
|
|
433
|
-
function Do(
|
|
434
|
-
return (
|
|
433
|
+
function Do(t) {
|
|
434
|
+
return (t == null ? void 0 : t.length) !== void 0 ? t : Array.from(t);
|
|
435
435
|
}
|
|
436
|
-
function
|
|
437
|
-
const { fragment: n, after_update: i } =
|
|
438
|
-
n && n.m(
|
|
439
|
-
const o =
|
|
440
|
-
|
|
441
|
-
}), i.forEach(
|
|
436
|
+
function fn(t, e, r) {
|
|
437
|
+
const { fragment: n, after_update: i } = t.$$;
|
|
438
|
+
n && n.m(e, r), xt(() => {
|
|
439
|
+
const o = t.$$.on_mount.map(je).filter(St);
|
|
440
|
+
t.$$.on_destroy ? t.$$.on_destroy.push(...o) : F(o), t.$$.on_mount = [];
|
|
441
|
+
}), i.forEach(xt);
|
|
442
442
|
}
|
|
443
|
-
function
|
|
444
|
-
const r =
|
|
445
|
-
r.fragment !== null && (
|
|
443
|
+
function mn(t, e) {
|
|
444
|
+
const r = t.$$;
|
|
445
|
+
r.fragment !== null && (un(r.after_update), F(r.on_destroy), r.fragment && r.fragment.d(e), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
446
446
|
}
|
|
447
|
-
function
|
|
448
|
-
|
|
447
|
+
function pn(t, e) {
|
|
448
|
+
t.$$.dirty[0] === -1 && (z.push(t), sn(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
const l =
|
|
452
|
-
|
|
453
|
-
const u =
|
|
450
|
+
function dn(t, e, r, n, i, o, a = null, s = [-1]) {
|
|
451
|
+
const l = at;
|
|
452
|
+
st(t);
|
|
453
|
+
const u = t.$$ = {
|
|
454
454
|
fragment: null,
|
|
455
455
|
ctx: [],
|
|
456
456
|
// state
|
|
457
457
|
props: o,
|
|
458
458
|
update: I,
|
|
459
459
|
not_equal: i,
|
|
460
|
-
bound:
|
|
460
|
+
bound: de(),
|
|
461
461
|
// lifecycle
|
|
462
462
|
on_mount: [],
|
|
463
463
|
on_destroy: [],
|
|
464
464
|
on_disconnect: [],
|
|
465
465
|
before_update: [],
|
|
466
466
|
after_update: [],
|
|
467
|
-
context: new Map(
|
|
467
|
+
context: new Map(e.context || (l ? l.$$.context : [])),
|
|
468
468
|
// everything else
|
|
469
|
-
callbacks:
|
|
469
|
+
callbacks: de(),
|
|
470
470
|
dirty: s,
|
|
471
471
|
skip_bound: !1,
|
|
472
|
-
root:
|
|
472
|
+
root: e.target || l.$$.root
|
|
473
473
|
};
|
|
474
474
|
a && a(u.root);
|
|
475
475
|
let h = !1;
|
|
476
|
-
if (u.ctx = r ? r(
|
|
476
|
+
if (u.ctx = r ? r(t, e.props || {}, (c, f, ...p) => {
|
|
477
477
|
const m = p.length ? p[0] : f;
|
|
478
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), h &&
|
|
479
|
-
}) : [], u.update(), h = !0, F(u.before_update), u.fragment = n ? n(u.ctx) : !1,
|
|
480
|
-
if (
|
|
481
|
-
const c =
|
|
482
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
478
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), h && pn(t, c)), f;
|
|
479
|
+
}) : [], u.update(), h = !0, F(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
|
|
480
|
+
if (e.hydrate) {
|
|
481
|
+
const c = Qr(e.target);
|
|
482
|
+
u.fragment && u.fragment.l(c), c.forEach(ht);
|
|
483
483
|
} else
|
|
484
484
|
u.fragment && u.fragment.c();
|
|
485
|
-
|
|
485
|
+
e.intro && Qe(t.$$.fragment), fn(t, e.target, e.anchor), U();
|
|
486
486
|
}
|
|
487
|
-
|
|
487
|
+
st(l);
|
|
488
488
|
}
|
|
489
|
-
let
|
|
490
|
-
typeof HTMLElement == "function" && (
|
|
491
|
-
constructor(
|
|
489
|
+
let Je;
|
|
490
|
+
typeof HTMLElement == "function" && (Je = class extends HTMLElement {
|
|
491
|
+
constructor(e, r, n) {
|
|
492
492
|
super();
|
|
493
493
|
/** The Svelte component constructor */
|
|
494
494
|
O(this, "$$ctor");
|
|
@@ -508,25 +508,25 @@ typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
|
508
508
|
O(this, "$$l", {});
|
|
509
509
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
510
510
|
O(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
511
|
-
this.$$ctor =
|
|
511
|
+
this.$$ctor = e, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
512
512
|
}
|
|
513
|
-
addEventListener(
|
|
514
|
-
if (this.$$l[
|
|
515
|
-
const i = this.$$c.$on(
|
|
513
|
+
addEventListener(e, r, n) {
|
|
514
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(r), this.$$c) {
|
|
515
|
+
const i = this.$$c.$on(e, r);
|
|
516
516
|
this.$$l_u.set(r, i);
|
|
517
517
|
}
|
|
518
|
-
super.addEventListener(
|
|
518
|
+
super.addEventListener(e, r, n);
|
|
519
519
|
}
|
|
520
|
-
removeEventListener(
|
|
521
|
-
if (super.removeEventListener(
|
|
520
|
+
removeEventListener(e, r, n) {
|
|
521
|
+
if (super.removeEventListener(e, r, n), this.$$c) {
|
|
522
522
|
const i = this.$$l_u.get(r);
|
|
523
523
|
i && (i(), this.$$l_u.delete(r));
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
526
|
connectedCallback() {
|
|
527
|
-
return
|
|
527
|
+
return pe(this, null, function* () {
|
|
528
528
|
if (this.$$cn = !0, !this.$$c) {
|
|
529
|
-
let
|
|
529
|
+
let e = function(o) {
|
|
530
530
|
return () => {
|
|
531
531
|
let a;
|
|
532
532
|
return {
|
|
@@ -538,28 +538,28 @@ typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
|
538
538
|
* @param {HTMLElement} [anchor]
|
|
539
539
|
*/
|
|
540
540
|
m: function(u, h) {
|
|
541
|
-
|
|
541
|
+
se(u, a, h);
|
|
542
542
|
},
|
|
543
543
|
d: function(u) {
|
|
544
|
-
u &&
|
|
544
|
+
u && ht(a);
|
|
545
545
|
}
|
|
546
546
|
};
|
|
547
547
|
};
|
|
548
548
|
};
|
|
549
549
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
550
550
|
return;
|
|
551
|
-
const r = {}, n =
|
|
551
|
+
const r = {}, n = qr(this);
|
|
552
552
|
for (const o of this.$$s)
|
|
553
|
-
o in n && (r[o] = [
|
|
553
|
+
o in n && (r[o] = [e(o)]);
|
|
554
554
|
for (const o of this.attributes) {
|
|
555
555
|
const a = this.$$g_p(o.name);
|
|
556
|
-
a in this.$$d || (this.$$d[a] =
|
|
556
|
+
a in this.$$d || (this.$$d[a] = dt(a, o.value, this.$$p_d, "toProp"));
|
|
557
557
|
}
|
|
558
558
|
for (const o in this.$$p_d)
|
|
559
559
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
560
560
|
this.$$c = new this.$$ctor({
|
|
561
561
|
target: this.shadowRoot || this,
|
|
562
|
-
props:
|
|
562
|
+
props: me(fe({}, this.$$d), {
|
|
563
563
|
$$slots: r,
|
|
564
564
|
$$scope: {
|
|
565
565
|
ctx: []
|
|
@@ -570,7 +570,7 @@ typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
|
570
570
|
this.$$r = !0;
|
|
571
571
|
for (const o in this.$$p_d)
|
|
572
572
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
573
|
-
const a =
|
|
573
|
+
const a = dt(
|
|
574
574
|
o,
|
|
575
575
|
this.$$d[o],
|
|
576
576
|
this.$$p_d,
|
|
@@ -592,70 +592,70 @@ typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
|
592
592
|
}
|
|
593
593
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
594
594
|
// and setting attributes through setAttribute etc, this is helpful
|
|
595
|
-
attributeChangedCallback(
|
|
595
|
+
attributeChangedCallback(e, r, n) {
|
|
596
596
|
var i;
|
|
597
|
-
this.$$r || (
|
|
597
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = dt(e, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [e]: this.$$d[e] }));
|
|
598
598
|
}
|
|
599
599
|
disconnectedCallback() {
|
|
600
600
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
601
601
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
602
602
|
});
|
|
603
603
|
}
|
|
604
|
-
$$g_p(
|
|
604
|
+
$$g_p(e) {
|
|
605
605
|
return Object.keys(this.$$p_d).find(
|
|
606
|
-
(r) => this.$$p_d[r].attribute ===
|
|
607
|
-
) ||
|
|
606
|
+
(r) => this.$$p_d[r].attribute === e || !this.$$p_d[r].attribute && r.toLowerCase() === e
|
|
607
|
+
) || e;
|
|
608
608
|
}
|
|
609
609
|
});
|
|
610
|
-
function
|
|
610
|
+
function dt(t, e, r, n) {
|
|
611
611
|
var o;
|
|
612
|
-
const i = (o = r[
|
|
613
|
-
if (
|
|
614
|
-
return
|
|
612
|
+
const i = (o = r[t]) == null ? void 0 : o.type;
|
|
613
|
+
if (e = i === "Boolean" && typeof e != "boolean" ? e != null : e, !n || !r[t])
|
|
614
|
+
return e;
|
|
615
615
|
if (n === "toAttribute")
|
|
616
616
|
switch (i) {
|
|
617
617
|
case "Object":
|
|
618
618
|
case "Array":
|
|
619
|
-
return
|
|
619
|
+
return e == null ? null : JSON.stringify(e);
|
|
620
620
|
case "Boolean":
|
|
621
|
-
return
|
|
621
|
+
return e ? "" : null;
|
|
622
622
|
case "Number":
|
|
623
|
-
return
|
|
623
|
+
return e == null ? null : e;
|
|
624
624
|
default:
|
|
625
|
-
return
|
|
625
|
+
return e;
|
|
626
626
|
}
|
|
627
627
|
else
|
|
628
628
|
switch (i) {
|
|
629
629
|
case "Object":
|
|
630
630
|
case "Array":
|
|
631
|
-
return
|
|
631
|
+
return e && JSON.parse(e);
|
|
632
632
|
case "Boolean":
|
|
633
|
-
return
|
|
633
|
+
return e;
|
|
634
634
|
case "Number":
|
|
635
|
-
return
|
|
635
|
+
return e != null ? +e : e;
|
|
636
636
|
default:
|
|
637
|
-
return
|
|
637
|
+
return e;
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
|
-
function
|
|
641
|
-
let a = class extends
|
|
640
|
+
function bn(t, e, r, n, i, o) {
|
|
641
|
+
let a = class extends Je {
|
|
642
642
|
constructor() {
|
|
643
|
-
super(
|
|
643
|
+
super(t, r, i), this.$$p_d = e;
|
|
644
644
|
}
|
|
645
645
|
static get observedAttributes() {
|
|
646
|
-
return Object.keys(
|
|
647
|
-
(s) => (
|
|
646
|
+
return Object.keys(e).map(
|
|
647
|
+
(s) => (e[s].attribute || s).toLowerCase()
|
|
648
648
|
);
|
|
649
649
|
}
|
|
650
650
|
};
|
|
651
|
-
return Object.keys(
|
|
651
|
+
return Object.keys(e).forEach((s) => {
|
|
652
652
|
Object.defineProperty(a.prototype, s, {
|
|
653
653
|
get() {
|
|
654
654
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
655
655
|
},
|
|
656
656
|
set(l) {
|
|
657
657
|
var u;
|
|
658
|
-
l =
|
|
658
|
+
l = dt(s, l, e), this.$$d[s] = l, (u = this.$$c) == null || u.$set({ [s]: l });
|
|
659
659
|
}
|
|
660
660
|
});
|
|
661
661
|
}), n.forEach((s) => {
|
|
@@ -665,10 +665,10 @@ function gn(e, t, r, n, i, o) {
|
|
|
665
665
|
return (l = this.$$c) == null ? void 0 : l[s];
|
|
666
666
|
}
|
|
667
667
|
});
|
|
668
|
-
}),
|
|
668
|
+
}), t.element = /** @type {any} */
|
|
669
669
|
a, a;
|
|
670
670
|
}
|
|
671
|
-
class
|
|
671
|
+
class gn {
|
|
672
672
|
constructor() {
|
|
673
673
|
/**
|
|
674
674
|
* ### PRIVATE API
|
|
@@ -689,7 +689,7 @@ class yn {
|
|
|
689
689
|
}
|
|
690
690
|
/** @returns {void} */
|
|
691
691
|
$destroy() {
|
|
692
|
-
|
|
692
|
+
mn(this, 1), this.$destroy = I;
|
|
693
693
|
}
|
|
694
694
|
/**
|
|
695
695
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -697,10 +697,10 @@ class yn {
|
|
|
697
697
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
698
698
|
* @returns {() => void}
|
|
699
699
|
*/
|
|
700
|
-
$on(
|
|
701
|
-
if (!
|
|
700
|
+
$on(e, r) {
|
|
701
|
+
if (!St(r))
|
|
702
702
|
return I;
|
|
703
|
-
const n = this.$$.callbacks[
|
|
703
|
+
const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
704
704
|
return n.push(r), () => {
|
|
705
705
|
const i = n.indexOf(r);
|
|
706
706
|
i !== -1 && n.splice(i, 1);
|
|
@@ -710,61 +710,61 @@ class yn {
|
|
|
710
710
|
* @param {Partial<Props>} props
|
|
711
711
|
* @returns {void}
|
|
712
712
|
*/
|
|
713
|
-
$set(
|
|
714
|
-
this.$$set && !
|
|
713
|
+
$set(e) {
|
|
714
|
+
this.$$set && !Ur(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
715
715
|
}
|
|
716
716
|
}
|
|
717
|
-
const
|
|
718
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
719
|
-
var
|
|
720
|
-
return
|
|
717
|
+
const yn = "4";
|
|
718
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(yn);
|
|
719
|
+
var Xt = function(t, e) {
|
|
720
|
+
return Xt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
721
721
|
r.__proto__ = n;
|
|
722
722
|
} || function(r, n) {
|
|
723
723
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
724
|
-
},
|
|
724
|
+
}, Xt(t, e);
|
|
725
725
|
};
|
|
726
|
-
function G(
|
|
727
|
-
if (typeof
|
|
728
|
-
throw new TypeError("Class extends value " + String(
|
|
729
|
-
|
|
726
|
+
function G(t, e) {
|
|
727
|
+
if (typeof e != "function" && e !== null)
|
|
728
|
+
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
729
|
+
Xt(t, e);
|
|
730
730
|
function r() {
|
|
731
|
-
this.constructor =
|
|
731
|
+
this.constructor = t;
|
|
732
732
|
}
|
|
733
|
-
|
|
733
|
+
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
|
|
734
734
|
}
|
|
735
735
|
var _ = function() {
|
|
736
|
-
return _ = Object.assign || function(
|
|
736
|
+
return _ = Object.assign || function(e) {
|
|
737
737
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
738
738
|
r = arguments[n];
|
|
739
|
-
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (
|
|
739
|
+
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
|
|
740
740
|
}
|
|
741
|
-
return
|
|
741
|
+
return e;
|
|
742
742
|
}, _.apply(this, arguments);
|
|
743
743
|
};
|
|
744
|
-
function
|
|
744
|
+
function vn(t, e) {
|
|
745
745
|
var r = {};
|
|
746
|
-
for (var n in
|
|
747
|
-
if (
|
|
748
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(
|
|
749
|
-
|
|
746
|
+
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]);
|
|
747
|
+
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
748
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(t); i < n.length; i++)
|
|
749
|
+
e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[i]) && (r[n[i]] = t[n[i]]);
|
|
750
750
|
return r;
|
|
751
751
|
}
|
|
752
|
-
function
|
|
753
|
-
var
|
|
754
|
-
if (r) return r.call(
|
|
755
|
-
if (
|
|
752
|
+
function zt(t) {
|
|
753
|
+
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
754
|
+
if (r) return r.call(t);
|
|
755
|
+
if (t && typeof t.length == "number") return {
|
|
756
756
|
next: function() {
|
|
757
|
-
return
|
|
757
|
+
return t && n >= t.length && (t = void 0), { value: t && t[n++], done: !t };
|
|
758
758
|
}
|
|
759
759
|
};
|
|
760
|
-
throw new TypeError(
|
|
760
|
+
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
761
761
|
}
|
|
762
|
-
function
|
|
763
|
-
var r = typeof Symbol == "function" &&
|
|
764
|
-
if (!r) return
|
|
765
|
-
var n = r.call(
|
|
762
|
+
function Wt(t, e) {
|
|
763
|
+
var r = typeof Symbol == "function" && t[Symbol.iterator];
|
|
764
|
+
if (!r) return t;
|
|
765
|
+
var n = r.call(t), i, o = [], a;
|
|
766
766
|
try {
|
|
767
|
-
for (; (
|
|
767
|
+
for (; (e === void 0 || e-- > 0) && !(i = n.next()).done; ) o.push(i.value);
|
|
768
768
|
} catch (s) {
|
|
769
769
|
a = { error: s };
|
|
770
770
|
} finally {
|
|
@@ -776,58 +776,58 @@ function We(e, t) {
|
|
|
776
776
|
}
|
|
777
777
|
return o;
|
|
778
778
|
}
|
|
779
|
-
function Q(
|
|
780
|
-
if (r || arguments.length === 2) for (var n = 0, i =
|
|
781
|
-
(o || !(n in
|
|
782
|
-
return
|
|
779
|
+
function Q(t, e, r) {
|
|
780
|
+
if (r || arguments.length === 2) for (var n = 0, i = e.length, o; n < i; n++)
|
|
781
|
+
(o || !(n in e)) && (o || (o = Array.prototype.slice.call(e, 0, n)), o[n] = e[n]);
|
|
782
|
+
return t.concat(o || Array.prototype.slice.call(e));
|
|
783
783
|
}
|
|
784
|
-
function R(
|
|
785
|
-
return typeof
|
|
784
|
+
function R(t) {
|
|
785
|
+
return typeof t == "function";
|
|
786
786
|
}
|
|
787
|
-
function
|
|
788
|
-
var
|
|
787
|
+
function qe(t) {
|
|
788
|
+
var e = function(n) {
|
|
789
789
|
Error.call(n), n.stack = new Error().stack;
|
|
790
|
-
}, r = e
|
|
790
|
+
}, r = t(e);
|
|
791
791
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
792
792
|
}
|
|
793
|
-
var $
|
|
793
|
+
var $t = qe(function(t) {
|
|
794
794
|
return function(r) {
|
|
795
|
-
|
|
795
|
+
t(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
796
796
|
` + r.map(function(n, i) {
|
|
797
797
|
return i + 1 + ") " + n.toString();
|
|
798
798
|
}).join(`
|
|
799
799
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
800
800
|
};
|
|
801
801
|
});
|
|
802
|
-
function
|
|
803
|
-
if (
|
|
804
|
-
var r =
|
|
805
|
-
0 <= r &&
|
|
802
|
+
function Zt(t, e) {
|
|
803
|
+
if (t) {
|
|
804
|
+
var r = t.indexOf(e);
|
|
805
|
+
0 <= r && t.splice(r, 1);
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
|
-
var
|
|
809
|
-
function e
|
|
810
|
-
this.initialTeardown =
|
|
808
|
+
var Tt = function() {
|
|
809
|
+
function t(e) {
|
|
810
|
+
this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
811
811
|
}
|
|
812
|
-
return
|
|
813
|
-
var
|
|
812
|
+
return t.prototype.unsubscribe = function() {
|
|
813
|
+
var e, r, n, i, o;
|
|
814
814
|
if (!this.closed) {
|
|
815
815
|
this.closed = !0;
|
|
816
816
|
var a = this._parentage;
|
|
817
817
|
if (a)
|
|
818
818
|
if (this._parentage = null, Array.isArray(a))
|
|
819
819
|
try {
|
|
820
|
-
for (var s =
|
|
820
|
+
for (var s = zt(a), l = s.next(); !l.done; l = s.next()) {
|
|
821
821
|
var u = l.value;
|
|
822
822
|
u.remove(this);
|
|
823
823
|
}
|
|
824
824
|
} catch (d) {
|
|
825
|
-
|
|
825
|
+
e = { error: d };
|
|
826
826
|
} finally {
|
|
827
827
|
try {
|
|
828
828
|
l && !l.done && (r = s.return) && r.call(s);
|
|
829
829
|
} finally {
|
|
830
|
-
if (
|
|
830
|
+
if (e) throw e.error;
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
833
|
else
|
|
@@ -837,18 +837,18 @@ var Te = function() {
|
|
|
837
837
|
try {
|
|
838
838
|
h();
|
|
839
839
|
} catch (d) {
|
|
840
|
-
o = d instanceof $
|
|
840
|
+
o = d instanceof $t ? d.errors : [d];
|
|
841
841
|
}
|
|
842
842
|
var c = this._finalizers;
|
|
843
843
|
if (c) {
|
|
844
844
|
this._finalizers = null;
|
|
845
845
|
try {
|
|
846
|
-
for (var f =
|
|
846
|
+
for (var f = zt(c), p = f.next(); !p.done; p = f.next()) {
|
|
847
847
|
var m = p.value;
|
|
848
848
|
try {
|
|
849
|
-
|
|
849
|
+
ve(m);
|
|
850
850
|
} catch (d) {
|
|
851
|
-
o = o != null ? o : [], d instanceof $
|
|
851
|
+
o = o != null ? o : [], d instanceof $t ? o = Q(Q([], Wt(o)), Wt(d.errors)) : o.push(d);
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
854
|
} catch (d) {
|
|
@@ -862,142 +862,141 @@ var Te = function() {
|
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
864
|
if (o)
|
|
865
|
-
throw new $
|
|
865
|
+
throw new $t(o);
|
|
866
866
|
}
|
|
867
|
-
},
|
|
867
|
+
}, t.prototype.add = function(e) {
|
|
868
868
|
var r;
|
|
869
|
-
if (
|
|
869
|
+
if (e && e !== this)
|
|
870
870
|
if (this.closed)
|
|
871
|
-
|
|
871
|
+
ve(e);
|
|
872
872
|
else {
|
|
873
|
-
if (
|
|
874
|
-
if (
|
|
873
|
+
if (e instanceof t) {
|
|
874
|
+
if (e.closed || e._hasParent(this))
|
|
875
875
|
return;
|
|
876
|
-
|
|
876
|
+
e._addParent(this);
|
|
877
877
|
}
|
|
878
|
-
(this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(
|
|
878
|
+
(this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(e);
|
|
879
879
|
}
|
|
880
|
-
},
|
|
880
|
+
}, t.prototype._hasParent = function(e) {
|
|
881
881
|
var r = this._parentage;
|
|
882
|
-
return r ===
|
|
883
|
-
},
|
|
882
|
+
return r === e || Array.isArray(r) && r.includes(e);
|
|
883
|
+
}, t.prototype._addParent = function(e) {
|
|
884
884
|
var r = this._parentage;
|
|
885
|
-
this._parentage = Array.isArray(r) ? (r.push(
|
|
886
|
-
},
|
|
885
|
+
this._parentage = Array.isArray(r) ? (r.push(e), r) : r ? [r, e] : e;
|
|
886
|
+
}, t.prototype._removeParent = function(e) {
|
|
887
887
|
var r = this._parentage;
|
|
888
|
-
r ===
|
|
889
|
-
},
|
|
888
|
+
r === e ? this._parentage = null : Array.isArray(r) && Zt(r, e);
|
|
889
|
+
}, t.prototype.remove = function(e) {
|
|
890
890
|
var r = this._finalizers;
|
|
891
|
-
r &&
|
|
892
|
-
},
|
|
893
|
-
var
|
|
894
|
-
return
|
|
895
|
-
}(),
|
|
896
|
-
}(),
|
|
897
|
-
function
|
|
898
|
-
return
|
|
899
|
-
}
|
|
900
|
-
function
|
|
901
|
-
R(
|
|
902
|
-
}
|
|
903
|
-
var
|
|
891
|
+
r && Zt(r, e), e instanceof t && e._removeParent(this);
|
|
892
|
+
}, t.EMPTY = function() {
|
|
893
|
+
var e = new t();
|
|
894
|
+
return e.closed = !0, e;
|
|
895
|
+
}(), t;
|
|
896
|
+
}(), Ye = Tt.EMPTY;
|
|
897
|
+
function Ke(t) {
|
|
898
|
+
return t instanceof Tt || t && "closed" in t && R(t.remove) && R(t.add) && R(t.unsubscribe);
|
|
899
|
+
}
|
|
900
|
+
function ve(t) {
|
|
901
|
+
R(t) ? t() : t.unsubscribe();
|
|
902
|
+
}
|
|
903
|
+
var tr = {
|
|
904
904
|
onUnhandledError: null,
|
|
905
905
|
onStoppedNotification: null,
|
|
906
906
|
Promise: void 0,
|
|
907
907
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
908
908
|
useDeprecatedNextContext: !1
|
|
909
|
-
},
|
|
910
|
-
setTimeout: function(
|
|
909
|
+
}, _n = {
|
|
910
|
+
setTimeout: function(t, e) {
|
|
911
911
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
912
912
|
r[n - 2] = arguments[n];
|
|
913
|
-
return setTimeout.apply(void 0, Q([
|
|
913
|
+
return setTimeout.apply(void 0, Q([t, e], Wt(r)));
|
|
914
914
|
},
|
|
915
|
-
clearTimeout: function(
|
|
916
|
-
|
|
917
|
-
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(e);
|
|
915
|
+
clearTimeout: function(t) {
|
|
916
|
+
return clearTimeout(t);
|
|
918
917
|
},
|
|
919
918
|
delegate: void 0
|
|
920
919
|
};
|
|
921
|
-
function xn(
|
|
922
|
-
|
|
923
|
-
throw
|
|
920
|
+
function xn(t) {
|
|
921
|
+
_n.setTimeout(function() {
|
|
922
|
+
throw t;
|
|
924
923
|
});
|
|
925
924
|
}
|
|
926
|
-
function
|
|
925
|
+
function _e() {
|
|
927
926
|
}
|
|
928
|
-
function
|
|
929
|
-
|
|
927
|
+
function bt(t) {
|
|
928
|
+
t();
|
|
930
929
|
}
|
|
931
|
-
var
|
|
932
|
-
G(
|
|
933
|
-
function
|
|
934
|
-
var n =
|
|
935
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
930
|
+
var er = function(t) {
|
|
931
|
+
G(e, t);
|
|
932
|
+
function e(r) {
|
|
933
|
+
var n = t.call(this) || this;
|
|
934
|
+
return n.isStopped = !1, r ? (n.destination = r, Ke(r) && r.add(n)) : n.destination = Tn, n;
|
|
936
935
|
}
|
|
937
|
-
return
|
|
938
|
-
return new
|
|
939
|
-
},
|
|
936
|
+
return e.create = function(r, n, i) {
|
|
937
|
+
return new Qt(r, n, i);
|
|
938
|
+
}, e.prototype.next = function(r) {
|
|
940
939
|
this.isStopped || this._next(r);
|
|
941
|
-
},
|
|
940
|
+
}, e.prototype.error = function(r) {
|
|
942
941
|
this.isStopped || (this.isStopped = !0, this._error(r));
|
|
943
|
-
},
|
|
942
|
+
}, e.prototype.complete = function() {
|
|
944
943
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
945
|
-
},
|
|
946
|
-
this.closed || (this.isStopped = !0,
|
|
947
|
-
},
|
|
944
|
+
}, e.prototype.unsubscribe = function() {
|
|
945
|
+
this.closed || (this.isStopped = !0, t.prototype.unsubscribe.call(this), this.destination = null);
|
|
946
|
+
}, e.prototype._next = function(r) {
|
|
948
947
|
this.destination.next(r);
|
|
949
|
-
},
|
|
948
|
+
}, e.prototype._error = function(r) {
|
|
950
949
|
try {
|
|
951
950
|
this.destination.error(r);
|
|
952
951
|
} finally {
|
|
953
952
|
this.unsubscribe();
|
|
954
953
|
}
|
|
955
|
-
},
|
|
954
|
+
}, e.prototype._complete = function() {
|
|
956
955
|
try {
|
|
957
956
|
this.destination.complete();
|
|
958
957
|
} finally {
|
|
959
958
|
this.unsubscribe();
|
|
960
959
|
}
|
|
961
|
-
},
|
|
962
|
-
}(
|
|
963
|
-
function
|
|
964
|
-
return En.call(
|
|
960
|
+
}, e;
|
|
961
|
+
}(Tt), En = Function.prototype.bind;
|
|
962
|
+
function Rt(t, e) {
|
|
963
|
+
return En.call(t, e);
|
|
965
964
|
}
|
|
966
965
|
var wn = function() {
|
|
967
|
-
function e
|
|
968
|
-
this.partialObserver =
|
|
966
|
+
function t(e) {
|
|
967
|
+
this.partialObserver = e;
|
|
969
968
|
}
|
|
970
|
-
return
|
|
969
|
+
return t.prototype.next = function(e) {
|
|
971
970
|
var r = this.partialObserver;
|
|
972
971
|
if (r.next)
|
|
973
972
|
try {
|
|
974
|
-
r.next(
|
|
973
|
+
r.next(e);
|
|
975
974
|
} catch (n) {
|
|
976
|
-
|
|
975
|
+
ft(n);
|
|
977
976
|
}
|
|
978
|
-
},
|
|
977
|
+
}, t.prototype.error = function(e) {
|
|
979
978
|
var r = this.partialObserver;
|
|
980
979
|
if (r.error)
|
|
981
980
|
try {
|
|
982
|
-
r.error(
|
|
981
|
+
r.error(e);
|
|
983
982
|
} catch (n) {
|
|
984
|
-
|
|
983
|
+
ft(n);
|
|
985
984
|
}
|
|
986
985
|
else
|
|
987
|
-
|
|
988
|
-
},
|
|
989
|
-
var
|
|
990
|
-
if (
|
|
986
|
+
ft(e);
|
|
987
|
+
}, t.prototype.complete = function() {
|
|
988
|
+
var e = this.partialObserver;
|
|
989
|
+
if (e.complete)
|
|
991
990
|
try {
|
|
992
|
-
|
|
991
|
+
e.complete();
|
|
993
992
|
} catch (r) {
|
|
994
|
-
|
|
993
|
+
ft(r);
|
|
995
994
|
}
|
|
996
|
-
},
|
|
997
|
-
}(),
|
|
998
|
-
G(
|
|
999
|
-
function
|
|
1000
|
-
var o =
|
|
995
|
+
}, t;
|
|
996
|
+
}(), Qt = function(t) {
|
|
997
|
+
G(e, t);
|
|
998
|
+
function e(r, n, i) {
|
|
999
|
+
var o = t.call(this) || this, a;
|
|
1001
1000
|
if (R(r) || !r)
|
|
1002
1001
|
a = {
|
|
1003
1002
|
next: r != null ? r : void 0,
|
|
@@ -1006,68 +1005,68 @@ var wn = function() {
|
|
|
1006
1005
|
};
|
|
1007
1006
|
else {
|
|
1008
1007
|
var s;
|
|
1009
|
-
o &&
|
|
1008
|
+
o && tr.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
1010
1009
|
return o.unsubscribe();
|
|
1011
1010
|
}, a = {
|
|
1012
|
-
next: r.next &&
|
|
1013
|
-
error: r.error &&
|
|
1014
|
-
complete: r.complete &&
|
|
1011
|
+
next: r.next && Rt(r.next, s),
|
|
1012
|
+
error: r.error && Rt(r.error, s),
|
|
1013
|
+
complete: r.complete && Rt(r.complete, s)
|
|
1015
1014
|
}) : a = r;
|
|
1016
1015
|
}
|
|
1017
1016
|
return o.destination = new wn(a), o;
|
|
1018
1017
|
}
|
|
1019
|
-
return
|
|
1020
|
-
}(
|
|
1021
|
-
function
|
|
1022
|
-
xn(
|
|
1018
|
+
return e;
|
|
1019
|
+
}(er);
|
|
1020
|
+
function ft(t) {
|
|
1021
|
+
xn(t);
|
|
1023
1022
|
}
|
|
1024
|
-
function Sn(
|
|
1025
|
-
throw
|
|
1023
|
+
function Sn(t) {
|
|
1024
|
+
throw t;
|
|
1026
1025
|
}
|
|
1027
1026
|
var Tn = {
|
|
1028
1027
|
closed: !0,
|
|
1029
|
-
next:
|
|
1028
|
+
next: _e,
|
|
1030
1029
|
error: Sn,
|
|
1031
|
-
complete:
|
|
1030
|
+
complete: _e
|
|
1032
1031
|
}, Hn = function() {
|
|
1033
1032
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1034
1033
|
}();
|
|
1035
|
-
function Cn(
|
|
1036
|
-
return
|
|
1034
|
+
function Cn(t) {
|
|
1035
|
+
return t;
|
|
1037
1036
|
}
|
|
1038
|
-
function Bn(
|
|
1039
|
-
return
|
|
1040
|
-
return
|
|
1037
|
+
function Bn(t) {
|
|
1038
|
+
return t.length === 0 ? Cn : t.length === 1 ? t[0] : function(r) {
|
|
1039
|
+
return t.reduce(function(n, i) {
|
|
1041
1040
|
return i(n);
|
|
1042
1041
|
}, r);
|
|
1043
1042
|
};
|
|
1044
1043
|
}
|
|
1045
|
-
var
|
|
1046
|
-
function e
|
|
1047
|
-
|
|
1044
|
+
var xe = function() {
|
|
1045
|
+
function t(e) {
|
|
1046
|
+
e && (this._subscribe = e);
|
|
1048
1047
|
}
|
|
1049
|
-
return
|
|
1050
|
-
var r = new
|
|
1051
|
-
return r.source = this, r.operator =
|
|
1052
|
-
},
|
|
1053
|
-
var i = this, o = Pn(
|
|
1054
|
-
return
|
|
1048
|
+
return t.prototype.lift = function(e) {
|
|
1049
|
+
var r = new t();
|
|
1050
|
+
return r.source = this, r.operator = e, r;
|
|
1051
|
+
}, t.prototype.subscribe = function(e, r, n) {
|
|
1052
|
+
var i = this, o = Pn(e) ? e : new Qt(e, r, n);
|
|
1053
|
+
return bt(function() {
|
|
1055
1054
|
var a = i, s = a.operator, l = a.source;
|
|
1056
1055
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
1057
1056
|
}), o;
|
|
1058
|
-
},
|
|
1057
|
+
}, t.prototype._trySubscribe = function(e) {
|
|
1059
1058
|
try {
|
|
1060
|
-
return this._subscribe(
|
|
1059
|
+
return this._subscribe(e);
|
|
1061
1060
|
} catch (r) {
|
|
1062
|
-
|
|
1061
|
+
e.error(r);
|
|
1063
1062
|
}
|
|
1064
|
-
},
|
|
1063
|
+
}, t.prototype.forEach = function(e, r) {
|
|
1065
1064
|
var n = this;
|
|
1066
|
-
return r =
|
|
1067
|
-
var a = new
|
|
1065
|
+
return r = Ee(r), new r(function(i, o) {
|
|
1066
|
+
var a = new Qt({
|
|
1068
1067
|
next: function(s) {
|
|
1069
1068
|
try {
|
|
1070
|
-
|
|
1069
|
+
e(s);
|
|
1071
1070
|
} catch (l) {
|
|
1072
1071
|
o(l), a.unsubscribe();
|
|
1073
1072
|
}
|
|
@@ -1077,18 +1076,18 @@ var xt = function() {
|
|
|
1077
1076
|
});
|
|
1078
1077
|
n.subscribe(a);
|
|
1079
1078
|
});
|
|
1080
|
-
},
|
|
1079
|
+
}, t.prototype._subscribe = function(e) {
|
|
1081
1080
|
var r;
|
|
1082
|
-
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(
|
|
1083
|
-
},
|
|
1081
|
+
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(e);
|
|
1082
|
+
}, t.prototype[Hn] = function() {
|
|
1084
1083
|
return this;
|
|
1085
|
-
},
|
|
1086
|
-
for (var
|
|
1087
|
-
|
|
1088
|
-
return Bn(
|
|
1089
|
-
},
|
|
1084
|
+
}, t.prototype.pipe = function() {
|
|
1085
|
+
for (var e = [], r = 0; r < arguments.length; r++)
|
|
1086
|
+
e[r] = arguments[r];
|
|
1087
|
+
return Bn(e)(this);
|
|
1088
|
+
}, t.prototype.toPromise = function(e) {
|
|
1090
1089
|
var r = this;
|
|
1091
|
-
return
|
|
1090
|
+
return e = Ee(e), new e(function(n, i) {
|
|
1092
1091
|
var o;
|
|
1093
1092
|
r.subscribe(function(a) {
|
|
1094
1093
|
return o = a;
|
|
@@ -1098,44 +1097,44 @@ var xt = function() {
|
|
|
1098
1097
|
return n(o);
|
|
1099
1098
|
});
|
|
1100
1099
|
});
|
|
1101
|
-
},
|
|
1102
|
-
return new e
|
|
1103
|
-
},
|
|
1100
|
+
}, t.create = function(e) {
|
|
1101
|
+
return new t(e);
|
|
1102
|
+
}, t;
|
|
1104
1103
|
}();
|
|
1105
|
-
function
|
|
1106
|
-
var
|
|
1107
|
-
return (
|
|
1104
|
+
function Ee(t) {
|
|
1105
|
+
var e;
|
|
1106
|
+
return (e = t != null ? t : tr.Promise) !== null && e !== void 0 ? e : Promise;
|
|
1108
1107
|
}
|
|
1109
|
-
function An(
|
|
1110
|
-
return
|
|
1108
|
+
function An(t) {
|
|
1109
|
+
return t && R(t.next) && R(t.error) && R(t.complete);
|
|
1111
1110
|
}
|
|
1112
|
-
function Pn(
|
|
1113
|
-
return
|
|
1111
|
+
function Pn(t) {
|
|
1112
|
+
return t && t instanceof er || An(t) && Ke(t);
|
|
1114
1113
|
}
|
|
1115
|
-
var Ln =
|
|
1114
|
+
var Ln = qe(function(t) {
|
|
1116
1115
|
return function() {
|
|
1117
|
-
|
|
1116
|
+
t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1118
1117
|
};
|
|
1119
|
-
}),
|
|
1120
|
-
G(
|
|
1121
|
-
function
|
|
1122
|
-
var r =
|
|
1118
|
+
}), rr = function(t) {
|
|
1119
|
+
G(e, t);
|
|
1120
|
+
function e() {
|
|
1121
|
+
var r = t.call(this) || this;
|
|
1123
1122
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
1124
1123
|
}
|
|
1125
|
-
return
|
|
1126
|
-
var n = new
|
|
1124
|
+
return e.prototype.lift = function(r) {
|
|
1125
|
+
var n = new we(this, this);
|
|
1127
1126
|
return n.operator = r, n;
|
|
1128
|
-
},
|
|
1127
|
+
}, e.prototype._throwIfClosed = function() {
|
|
1129
1128
|
if (this.closed)
|
|
1130
1129
|
throw new Ln();
|
|
1131
|
-
},
|
|
1130
|
+
}, e.prototype.next = function(r) {
|
|
1132
1131
|
var n = this;
|
|
1133
|
-
|
|
1132
|
+
bt(function() {
|
|
1134
1133
|
var i, o;
|
|
1135
1134
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
1136
1135
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
1137
1136
|
try {
|
|
1138
|
-
for (var a =
|
|
1137
|
+
for (var a = zt(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
1139
1138
|
var l = s.value;
|
|
1140
1139
|
l.next(r);
|
|
1141
1140
|
}
|
|
@@ -1150,119 +1149,119 @@ var Ln = Jt(function(e) {
|
|
|
1150
1149
|
}
|
|
1151
1150
|
}
|
|
1152
1151
|
});
|
|
1153
|
-
},
|
|
1152
|
+
}, e.prototype.error = function(r) {
|
|
1154
1153
|
var n = this;
|
|
1155
|
-
|
|
1154
|
+
bt(function() {
|
|
1156
1155
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
1157
1156
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
1158
1157
|
for (var i = n.observers; i.length; )
|
|
1159
1158
|
i.shift().error(r);
|
|
1160
1159
|
}
|
|
1161
1160
|
});
|
|
1162
|
-
},
|
|
1161
|
+
}, e.prototype.complete = function() {
|
|
1163
1162
|
var r = this;
|
|
1164
|
-
|
|
1163
|
+
bt(function() {
|
|
1165
1164
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
1166
1165
|
r.isStopped = !0;
|
|
1167
1166
|
for (var n = r.observers; n.length; )
|
|
1168
1167
|
n.shift().complete();
|
|
1169
1168
|
}
|
|
1170
1169
|
});
|
|
1171
|
-
},
|
|
1170
|
+
}, e.prototype.unsubscribe = function() {
|
|
1172
1171
|
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
1173
|
-
}, Object.defineProperty(
|
|
1172
|
+
}, Object.defineProperty(e.prototype, "observed", {
|
|
1174
1173
|
get: function() {
|
|
1175
1174
|
var r;
|
|
1176
1175
|
return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
|
|
1177
1176
|
},
|
|
1178
1177
|
enumerable: !1,
|
|
1179
1178
|
configurable: !0
|
|
1180
|
-
}),
|
|
1181
|
-
return this._throwIfClosed(),
|
|
1182
|
-
},
|
|
1179
|
+
}), e.prototype._trySubscribe = function(r) {
|
|
1180
|
+
return this._throwIfClosed(), t.prototype._trySubscribe.call(this, r);
|
|
1181
|
+
}, e.prototype._subscribe = function(r) {
|
|
1183
1182
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1184
|
-
},
|
|
1183
|
+
}, e.prototype._innerSubscribe = function(r) {
|
|
1185
1184
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
1186
|
-
return o || a ?
|
|
1187
|
-
n.currentObservers = null,
|
|
1185
|
+
return o || a ? Ye : (this.currentObservers = null, s.push(r), new Tt(function() {
|
|
1186
|
+
n.currentObservers = null, Zt(s, r);
|
|
1188
1187
|
}));
|
|
1189
|
-
},
|
|
1188
|
+
}, e.prototype._checkFinalizedStatuses = function(r) {
|
|
1190
1189
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
1191
1190
|
i ? r.error(o) : a && r.complete();
|
|
1192
|
-
},
|
|
1193
|
-
var r = new
|
|
1191
|
+
}, e.prototype.asObservable = function() {
|
|
1192
|
+
var r = new xe();
|
|
1194
1193
|
return r.source = this, r;
|
|
1195
|
-
},
|
|
1196
|
-
return new
|
|
1197
|
-
},
|
|
1198
|
-
}(
|
|
1199
|
-
G(
|
|
1200
|
-
function
|
|
1201
|
-
var i =
|
|
1194
|
+
}, e.create = function(r, n) {
|
|
1195
|
+
return new we(r, n);
|
|
1196
|
+
}, e;
|
|
1197
|
+
}(xe), we = function(t) {
|
|
1198
|
+
G(e, t);
|
|
1199
|
+
function e(r, n) {
|
|
1200
|
+
var i = t.call(this) || this;
|
|
1202
1201
|
return i.destination = r, i.source = n, i;
|
|
1203
1202
|
}
|
|
1204
|
-
return
|
|
1203
|
+
return e.prototype.next = function(r) {
|
|
1205
1204
|
var n, i;
|
|
1206
1205
|
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
|
|
1207
|
-
},
|
|
1206
|
+
}, e.prototype.error = function(r) {
|
|
1208
1207
|
var n, i;
|
|
1209
1208
|
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
|
|
1210
|
-
},
|
|
1209
|
+
}, e.prototype.complete = function() {
|
|
1211
1210
|
var r, n;
|
|
1212
1211
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1213
|
-
},
|
|
1212
|
+
}, e.prototype._subscribe = function(r) {
|
|
1214
1213
|
var n, i;
|
|
1215
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1216
|
-
},
|
|
1217
|
-
}(
|
|
1214
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ye;
|
|
1215
|
+
}, e;
|
|
1216
|
+
}(rr), nr = {
|
|
1218
1217
|
now: function() {
|
|
1219
|
-
return (
|
|
1218
|
+
return (nr.delegate || Date).now();
|
|
1220
1219
|
},
|
|
1221
1220
|
delegate: void 0
|
|
1222
|
-
}, On = function(
|
|
1223
|
-
G(
|
|
1224
|
-
function
|
|
1225
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1226
|
-
var o =
|
|
1221
|
+
}, On = function(t) {
|
|
1222
|
+
G(e, t);
|
|
1223
|
+
function e(r, n, i) {
|
|
1224
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = nr);
|
|
1225
|
+
var o = t.call(this) || this;
|
|
1227
1226
|
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;
|
|
1228
1227
|
}
|
|
1229
|
-
return
|
|
1228
|
+
return e.prototype.next = function(r) {
|
|
1230
1229
|
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, l = n._windowTime;
|
|
1231
|
-
i || (o.push(r), !a && o.push(s.now() + l)), this._trimBuffer(),
|
|
1232
|
-
},
|
|
1230
|
+
i || (o.push(r), !a && o.push(s.now() + l)), this._trimBuffer(), t.prototype.next.call(this, r);
|
|
1231
|
+
}, e.prototype._subscribe = function(r) {
|
|
1233
1232
|
this._throwIfClosed(), this._trimBuffer();
|
|
1234
1233
|
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)
|
|
1235
1234
|
r.next(s[l]);
|
|
1236
1235
|
return this._checkFinalizedStatuses(r), n;
|
|
1237
|
-
},
|
|
1236
|
+
}, e.prototype._trimBuffer = function() {
|
|
1238
1237
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
|
|
1239
1238
|
if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1240
1239
|
for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
1241
1240
|
u = h;
|
|
1242
1241
|
u && o.splice(0, u + 1);
|
|
1243
1242
|
}
|
|
1244
|
-
},
|
|
1245
|
-
}(
|
|
1246
|
-
const
|
|
1247
|
-
if (
|
|
1248
|
-
const r = new On(
|
|
1249
|
-
|
|
1243
|
+
}, e;
|
|
1244
|
+
}(rr);
|
|
1245
|
+
const Se = [], Te = {}, In = (t, e = 0) => {
|
|
1246
|
+
if (Se.indexOf(t) == -1) {
|
|
1247
|
+
const r = new On(e);
|
|
1248
|
+
Te[t] = r, Se.push(t);
|
|
1250
1249
|
}
|
|
1251
|
-
return
|
|
1250
|
+
return Te[t];
|
|
1252
1251
|
}, X = [];
|
|
1253
|
-
function Mn(
|
|
1252
|
+
function Mn(t, e) {
|
|
1254
1253
|
return {
|
|
1255
|
-
subscribe:
|
|
1254
|
+
subscribe: Ht(t, e).subscribe
|
|
1256
1255
|
};
|
|
1257
1256
|
}
|
|
1258
|
-
function
|
|
1257
|
+
function Ht(t, e = I) {
|
|
1259
1258
|
let r;
|
|
1260
1259
|
const n = /* @__PURE__ */ new Set();
|
|
1261
1260
|
function i(s) {
|
|
1262
|
-
if (
|
|
1261
|
+
if (ke(t, s) && (t = s, r)) {
|
|
1263
1262
|
const l = !X.length;
|
|
1264
1263
|
for (const u of n)
|
|
1265
|
-
u[1](), X.push(u,
|
|
1264
|
+
u[1](), X.push(u, t);
|
|
1266
1265
|
if (l) {
|
|
1267
1266
|
for (let u = 0; u < X.length; u += 2)
|
|
1268
1267
|
X[u][0](X[u + 1]);
|
|
@@ -1271,21 +1270,21 @@ function He(e, t = I) {
|
|
|
1271
1270
|
}
|
|
1272
1271
|
}
|
|
1273
1272
|
function o(s) {
|
|
1274
|
-
i(s(
|
|
1273
|
+
i(s(t));
|
|
1275
1274
|
}
|
|
1276
1275
|
function a(s, l = I) {
|
|
1277
1276
|
const u = [s, l];
|
|
1278
|
-
return n.add(u), n.size === 1 && (r =
|
|
1277
|
+
return n.add(u), n.size === 1 && (r = e(i, o) || I), s(t), () => {
|
|
1279
1278
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1280
1279
|
};
|
|
1281
1280
|
}
|
|
1282
1281
|
return { set: i, update: o, subscribe: a };
|
|
1283
1282
|
}
|
|
1284
|
-
function
|
|
1285
|
-
const n = !Array.isArray(
|
|
1283
|
+
function tt(t, e, r) {
|
|
1284
|
+
const n = !Array.isArray(t), i = n ? [t] : t;
|
|
1286
1285
|
if (!i.every(Boolean))
|
|
1287
1286
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1288
|
-
const o =
|
|
1287
|
+
const o = e.length < 2;
|
|
1289
1288
|
return Mn(r, (a, s) => {
|
|
1290
1289
|
let l = !1;
|
|
1291
1290
|
const u = [];
|
|
@@ -1294,10 +1293,10 @@ function ee(e, t, r) {
|
|
|
1294
1293
|
if (h)
|
|
1295
1294
|
return;
|
|
1296
1295
|
c();
|
|
1297
|
-
const m =
|
|
1298
|
-
o ? a(m) : c =
|
|
1296
|
+
const m = e(n ? u[0] : u, a, s);
|
|
1297
|
+
o ? a(m) : c = St(m) ? m : I;
|
|
1299
1298
|
}, p = i.map(
|
|
1300
|
-
(m, d) =>
|
|
1299
|
+
(m, d) => Ve(
|
|
1301
1300
|
m,
|
|
1302
1301
|
(y) => {
|
|
1303
1302
|
u[d] = y, h &= ~(1 << d), l && f();
|
|
@@ -1312,136 +1311,186 @@ function ee(e, t, r) {
|
|
|
1312
1311
|
};
|
|
1313
1312
|
});
|
|
1314
1313
|
}
|
|
1315
|
-
function Nn(
|
|
1316
|
-
return
|
|
1314
|
+
function Nn(t) {
|
|
1315
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1317
1316
|
}
|
|
1318
|
-
var $n = function(
|
|
1319
|
-
return Rn(
|
|
1317
|
+
var $n = function(e) {
|
|
1318
|
+
return Rn(e) && !Gn(e);
|
|
1320
1319
|
};
|
|
1321
|
-
function Rn(
|
|
1322
|
-
return !!
|
|
1320
|
+
function Rn(t) {
|
|
1321
|
+
return !!t && typeof t == "object";
|
|
1323
1322
|
}
|
|
1324
|
-
function Gn(
|
|
1325
|
-
var
|
|
1326
|
-
return
|
|
1323
|
+
function Gn(t) {
|
|
1324
|
+
var e = Object.prototype.toString.call(t);
|
|
1325
|
+
return e === "[object RegExp]" || e === "[object Date]" || Fn(t);
|
|
1327
1326
|
}
|
|
1328
1327
|
var Un = typeof Symbol == "function" && Symbol.for, Dn = Un ? Symbol.for("react.element") : 60103;
|
|
1329
|
-
function Fn(
|
|
1330
|
-
return
|
|
1328
|
+
function Fn(t) {
|
|
1329
|
+
return t.$$typeof === Dn;
|
|
1331
1330
|
}
|
|
1332
|
-
function jn(
|
|
1333
|
-
return Array.isArray(
|
|
1331
|
+
function jn(t) {
|
|
1332
|
+
return Array.isArray(t) ? [] : {};
|
|
1334
1333
|
}
|
|
1335
|
-
function
|
|
1336
|
-
return
|
|
1334
|
+
function ut(t, e) {
|
|
1335
|
+
return e.clone !== !1 && e.isMergeableObject(t) ? J(jn(t), t, e) : t;
|
|
1337
1336
|
}
|
|
1338
|
-
function kn(
|
|
1339
|
-
return
|
|
1340
|
-
return
|
|
1337
|
+
function kn(t, e, r) {
|
|
1338
|
+
return t.concat(e).map(function(n) {
|
|
1339
|
+
return ut(n, r);
|
|
1341
1340
|
});
|
|
1342
1341
|
}
|
|
1343
|
-
function Vn(
|
|
1344
|
-
if (!
|
|
1345
|
-
return
|
|
1346
|
-
var r =
|
|
1347
|
-
return typeof r == "function" ? r :
|
|
1342
|
+
function Vn(t, e) {
|
|
1343
|
+
if (!e.customMerge)
|
|
1344
|
+
return J;
|
|
1345
|
+
var r = e.customMerge(t);
|
|
1346
|
+
return typeof r == "function" ? r : J;
|
|
1348
1347
|
}
|
|
1349
|
-
function Xn(
|
|
1350
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(
|
|
1351
|
-
return Object.propertyIsEnumerable.call(
|
|
1348
|
+
function Xn(t) {
|
|
1349
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(e) {
|
|
1350
|
+
return Object.propertyIsEnumerable.call(t, e);
|
|
1352
1351
|
}) : [];
|
|
1353
1352
|
}
|
|
1354
|
-
function
|
|
1355
|
-
return Object.keys(
|
|
1353
|
+
function He(t) {
|
|
1354
|
+
return Object.keys(t).concat(Xn(t));
|
|
1356
1355
|
}
|
|
1357
|
-
function
|
|
1356
|
+
function ir(t, e) {
|
|
1358
1357
|
try {
|
|
1359
|
-
return
|
|
1358
|
+
return e in t;
|
|
1360
1359
|
} catch (r) {
|
|
1361
1360
|
return !1;
|
|
1362
1361
|
}
|
|
1363
1362
|
}
|
|
1364
|
-
function zn(
|
|
1365
|
-
return
|
|
1363
|
+
function zn(t, e) {
|
|
1364
|
+
return ir(t, e) && !(Object.hasOwnProperty.call(t, e) && Object.propertyIsEnumerable.call(t, e));
|
|
1366
1365
|
}
|
|
1367
|
-
function Wn(
|
|
1366
|
+
function Wn(t, e, r) {
|
|
1368
1367
|
var n = {};
|
|
1369
|
-
return r.isMergeableObject(
|
|
1370
|
-
n[i] =
|
|
1371
|
-
}),
|
|
1372
|
-
zn(
|
|
1368
|
+
return r.isMergeableObject(t) && He(t).forEach(function(i) {
|
|
1369
|
+
n[i] = ut(t[i], r);
|
|
1370
|
+
}), He(e).forEach(function(i) {
|
|
1371
|
+
zn(t, i) || (ir(t, i) && r.isMergeableObject(e[i]) ? n[i] = Vn(i, r)(t[i], e[i], r) : n[i] = ut(e[i], r));
|
|
1373
1372
|
}), n;
|
|
1374
1373
|
}
|
|
1375
|
-
function
|
|
1376
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || kn, r.isMergeableObject = r.isMergeableObject || $n, r.cloneUnlessOtherwiseSpecified =
|
|
1377
|
-
var n = Array.isArray(
|
|
1378
|
-
return o ? n ? r.arrayMerge(
|
|
1374
|
+
function J(t, e, r) {
|
|
1375
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || kn, r.isMergeableObject = r.isMergeableObject || $n, r.cloneUnlessOtherwiseSpecified = ut;
|
|
1376
|
+
var n = Array.isArray(e), i = Array.isArray(t), o = n === i;
|
|
1377
|
+
return o ? n ? r.arrayMerge(t, e, r) : Wn(t, e, r) : ut(e, r);
|
|
1379
1378
|
}
|
|
1380
|
-
|
|
1381
|
-
if (!Array.isArray(
|
|
1379
|
+
J.all = function(e, r) {
|
|
1380
|
+
if (!Array.isArray(e))
|
|
1382
1381
|
throw new Error("first argument should be an array");
|
|
1383
|
-
return
|
|
1384
|
-
return
|
|
1382
|
+
return e.reduce(function(n, i) {
|
|
1383
|
+
return J(n, i, r);
|
|
1385
1384
|
}, {});
|
|
1386
1385
|
};
|
|
1387
|
-
var Zn =
|
|
1388
|
-
const
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1386
|
+
var Zn = J, Qn = Zn;
|
|
1387
|
+
const Jn = /* @__PURE__ */ Nn(Qn);
|
|
1388
|
+
function Gt(t, e) {
|
|
1389
|
+
var r = e && e.cache ? e.cache : ri, n = e && e.serializer ? e.serializer : ei, i = e && e.strategy ? e.strategy : Yn;
|
|
1390
|
+
return i(t, {
|
|
1391
|
+
cache: r,
|
|
1392
|
+
serializer: n
|
|
1393
|
+
});
|
|
1394
|
+
}
|
|
1395
|
+
function qn(t) {
|
|
1396
|
+
return t == null || typeof t == "number" || typeof t == "boolean";
|
|
1397
|
+
}
|
|
1398
|
+
function or(t, e, r, n) {
|
|
1399
|
+
var i = qn(n) ? n : r(n), o = e.get(i);
|
|
1400
|
+
return typeof o == "undefined" && (o = t.call(this, n), e.set(i, o)), o;
|
|
1401
|
+
}
|
|
1402
|
+
function sr(t, e, r) {
|
|
1403
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = e.get(i);
|
|
1404
|
+
return typeof o == "undefined" && (o = t.apply(this, n), e.set(i, o)), o;
|
|
1405
|
+
}
|
|
1406
|
+
function ae(t, e, r, n, i) {
|
|
1407
|
+
return r.bind(e, t, n, i);
|
|
1408
|
+
}
|
|
1409
|
+
function Yn(t, e) {
|
|
1410
|
+
var r = t.length === 1 ? or : sr;
|
|
1411
|
+
return ae(t, this, r, e.cache.create(), e.serializer);
|
|
1412
|
+
}
|
|
1413
|
+
function Kn(t, e) {
|
|
1414
|
+
return ae(t, this, sr, e.cache.create(), e.serializer);
|
|
1415
|
+
}
|
|
1416
|
+
function ti(t, e) {
|
|
1417
|
+
return ae(t, this, or, e.cache.create(), e.serializer);
|
|
1418
|
+
}
|
|
1419
|
+
var ei = function() {
|
|
1420
|
+
return JSON.stringify(arguments);
|
|
1421
|
+
};
|
|
1422
|
+
function ue() {
|
|
1423
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1424
|
+
}
|
|
1425
|
+
ue.prototype.get = function(t) {
|
|
1426
|
+
return this.cache[t];
|
|
1427
|
+
};
|
|
1428
|
+
ue.prototype.set = function(t, e) {
|
|
1429
|
+
this.cache[t] = e;
|
|
1430
|
+
};
|
|
1431
|
+
var ri = {
|
|
1432
|
+
create: function() {
|
|
1433
|
+
return new ue();
|
|
1434
|
+
}
|
|
1435
|
+
}, Ut = {
|
|
1436
|
+
variadic: Kn,
|
|
1437
|
+
monadic: ti
|
|
1438
|
+
}, g;
|
|
1439
|
+
(function(t) {
|
|
1440
|
+
t[t.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", t[t.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", t[t.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", t[t.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", t[t.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", t[t.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", t[t.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", t[t.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", t[t.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", t[t.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", t[t.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", t[t.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", t[t.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", t[t.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", t[t.INVALID_TAG = 23] = "INVALID_TAG", t[t.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", t[t.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", t[t.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
1392
1441
|
})(g || (g = {}));
|
|
1393
1442
|
var E;
|
|
1394
|
-
(function(
|
|
1395
|
-
|
|
1443
|
+
(function(t) {
|
|
1444
|
+
t[t.literal = 0] = "literal", t[t.argument = 1] = "argument", t[t.number = 2] = "number", t[t.date = 3] = "date", t[t.time = 4] = "time", t[t.select = 5] = "select", t[t.plural = 6] = "plural", t[t.pound = 7] = "pound", t[t.tag = 8] = "tag";
|
|
1396
1445
|
})(E || (E = {}));
|
|
1397
|
-
var
|
|
1398
|
-
(function(
|
|
1399
|
-
|
|
1400
|
-
})(
|
|
1401
|
-
function
|
|
1402
|
-
return
|
|
1446
|
+
var q;
|
|
1447
|
+
(function(t) {
|
|
1448
|
+
t[t.number = 0] = "number", t[t.dateTime = 1] = "dateTime";
|
|
1449
|
+
})(q || (q = {}));
|
|
1450
|
+
function Ce(t) {
|
|
1451
|
+
return t.type === E.literal;
|
|
1403
1452
|
}
|
|
1404
|
-
function
|
|
1405
|
-
return
|
|
1453
|
+
function ni(t) {
|
|
1454
|
+
return t.type === E.argument;
|
|
1406
1455
|
}
|
|
1407
|
-
function
|
|
1408
|
-
return
|
|
1456
|
+
function ar(t) {
|
|
1457
|
+
return t.type === E.number;
|
|
1409
1458
|
}
|
|
1410
|
-
function
|
|
1411
|
-
return
|
|
1459
|
+
function ur(t) {
|
|
1460
|
+
return t.type === E.date;
|
|
1412
1461
|
}
|
|
1413
|
-
function
|
|
1414
|
-
return
|
|
1462
|
+
function lr(t) {
|
|
1463
|
+
return t.type === E.time;
|
|
1415
1464
|
}
|
|
1416
|
-
function
|
|
1417
|
-
return
|
|
1465
|
+
function hr(t) {
|
|
1466
|
+
return t.type === E.select;
|
|
1418
1467
|
}
|
|
1419
|
-
function
|
|
1420
|
-
return
|
|
1468
|
+
function cr(t) {
|
|
1469
|
+
return t.type === E.plural;
|
|
1421
1470
|
}
|
|
1422
|
-
function
|
|
1423
|
-
return
|
|
1471
|
+
function ii(t) {
|
|
1472
|
+
return t.type === E.pound;
|
|
1424
1473
|
}
|
|
1425
|
-
function
|
|
1426
|
-
return
|
|
1474
|
+
function fr(t) {
|
|
1475
|
+
return t.type === E.tag;
|
|
1427
1476
|
}
|
|
1428
|
-
function
|
|
1429
|
-
return !!(
|
|
1477
|
+
function mr(t) {
|
|
1478
|
+
return !!(t && typeof t == "object" && t.type === q.number);
|
|
1430
1479
|
}
|
|
1431
|
-
function
|
|
1432
|
-
return !!(
|
|
1480
|
+
function Jt(t) {
|
|
1481
|
+
return !!(t && typeof t == "object" && t.type === q.dateTime);
|
|
1433
1482
|
}
|
|
1434
|
-
var
|
|
1435
|
-
function
|
|
1436
|
-
var
|
|
1437
|
-
return
|
|
1483
|
+
var pr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, oi = /(?:[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;
|
|
1484
|
+
function si(t) {
|
|
1485
|
+
var e = {};
|
|
1486
|
+
return t.replace(oi, function(r) {
|
|
1438
1487
|
var n = r.length;
|
|
1439
1488
|
switch (r[0]) {
|
|
1440
1489
|
case "G":
|
|
1441
|
-
|
|
1490
|
+
e.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1442
1491
|
break;
|
|
1443
1492
|
case "y":
|
|
1444
|
-
|
|
1493
|
+
e.year = n === 2 ? "2-digit" : "numeric";
|
|
1445
1494
|
break;
|
|
1446
1495
|
case "Y":
|
|
1447
1496
|
case "u":
|
|
@@ -1453,64 +1502,64 @@ function ei(e) {
|
|
|
1453
1502
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1454
1503
|
case "M":
|
|
1455
1504
|
case "L":
|
|
1456
|
-
|
|
1505
|
+
e.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
1457
1506
|
break;
|
|
1458
1507
|
case "w":
|
|
1459
1508
|
case "W":
|
|
1460
1509
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
1461
1510
|
case "d":
|
|
1462
|
-
|
|
1511
|
+
e.day = ["numeric", "2-digit"][n - 1];
|
|
1463
1512
|
break;
|
|
1464
1513
|
case "D":
|
|
1465
1514
|
case "F":
|
|
1466
1515
|
case "g":
|
|
1467
1516
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1468
1517
|
case "E":
|
|
1469
|
-
|
|
1518
|
+
e.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1470
1519
|
break;
|
|
1471
1520
|
case "e":
|
|
1472
1521
|
if (n < 4)
|
|
1473
1522
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1474
|
-
|
|
1523
|
+
e.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1475
1524
|
break;
|
|
1476
1525
|
case "c":
|
|
1477
1526
|
if (n < 4)
|
|
1478
1527
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1479
|
-
|
|
1528
|
+
e.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1480
1529
|
break;
|
|
1481
1530
|
case "a":
|
|
1482
|
-
|
|
1531
|
+
e.hour12 = !0;
|
|
1483
1532
|
break;
|
|
1484
1533
|
case "b":
|
|
1485
1534
|
case "B":
|
|
1486
1535
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1487
1536
|
case "h":
|
|
1488
|
-
|
|
1537
|
+
e.hourCycle = "h12", e.hour = ["numeric", "2-digit"][n - 1];
|
|
1489
1538
|
break;
|
|
1490
1539
|
case "H":
|
|
1491
|
-
|
|
1540
|
+
e.hourCycle = "h23", e.hour = ["numeric", "2-digit"][n - 1];
|
|
1492
1541
|
break;
|
|
1493
1542
|
case "K":
|
|
1494
|
-
|
|
1543
|
+
e.hourCycle = "h11", e.hour = ["numeric", "2-digit"][n - 1];
|
|
1495
1544
|
break;
|
|
1496
1545
|
case "k":
|
|
1497
|
-
|
|
1546
|
+
e.hourCycle = "h24", e.hour = ["numeric", "2-digit"][n - 1];
|
|
1498
1547
|
break;
|
|
1499
1548
|
case "j":
|
|
1500
1549
|
case "J":
|
|
1501
1550
|
case "C":
|
|
1502
1551
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1503
1552
|
case "m":
|
|
1504
|
-
|
|
1553
|
+
e.minute = ["numeric", "2-digit"][n - 1];
|
|
1505
1554
|
break;
|
|
1506
1555
|
case "s":
|
|
1507
|
-
|
|
1556
|
+
e.second = ["numeric", "2-digit"][n - 1];
|
|
1508
1557
|
break;
|
|
1509
1558
|
case "S":
|
|
1510
1559
|
case "A":
|
|
1511
1560
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1512
1561
|
case "z":
|
|
1513
|
-
|
|
1562
|
+
e.timeZoneName = n < 4 ? "short" : "long";
|
|
1514
1563
|
break;
|
|
1515
1564
|
case "Z":
|
|
1516
1565
|
case "O":
|
|
@@ -1521,15 +1570,15 @@ function ei(e) {
|
|
|
1521
1570
|
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
|
|
1522
1571
|
}
|
|
1523
1572
|
return "";
|
|
1524
|
-
}),
|
|
1573
|
+
}), e;
|
|
1525
1574
|
}
|
|
1526
|
-
var
|
|
1527
|
-
function
|
|
1528
|
-
if (
|
|
1575
|
+
var ai = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1576
|
+
function ui(t) {
|
|
1577
|
+
if (t.length === 0)
|
|
1529
1578
|
throw new Error("Number skeleton cannot be empty");
|
|
1530
|
-
for (var
|
|
1579
|
+
for (var e = t.split(ai).filter(function(f) {
|
|
1531
1580
|
return f.length > 0;
|
|
1532
|
-
}), r = [], n = 0, i =
|
|
1581
|
+
}), r = [], n = 0, i = e; n < i.length; n++) {
|
|
1533
1582
|
var o = i[n], a = o.split("/");
|
|
1534
1583
|
if (a.length === 0)
|
|
1535
1584
|
throw new Error("Invalid number skeleton");
|
|
@@ -1542,18 +1591,18 @@ function ri(e) {
|
|
|
1542
1591
|
}
|
|
1543
1592
|
return r;
|
|
1544
1593
|
}
|
|
1545
|
-
function
|
|
1546
|
-
return
|
|
1594
|
+
function li(t) {
|
|
1595
|
+
return t.replace(/^(.*?)-/, "");
|
|
1547
1596
|
}
|
|
1548
|
-
var
|
|
1549
|
-
function
|
|
1550
|
-
var
|
|
1551
|
-
return
|
|
1552
|
-
return typeof i != "string" ? (
|
|
1553
|
-
}),
|
|
1597
|
+
var Be = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, dr = /^(@+)?(\+|#+)?[rs]?$/g, hi = /(\*)(0+)|(#+)(0+)|(0+)/g, br = /^(0+)$/;
|
|
1598
|
+
function Ae(t) {
|
|
1599
|
+
var e = {};
|
|
1600
|
+
return t[t.length - 1] === "r" ? e.roundingPriority = "morePrecision" : t[t.length - 1] === "s" && (e.roundingPriority = "lessPrecision"), t.replace(dr, function(r, n, i) {
|
|
1601
|
+
return typeof i != "string" ? (e.minimumSignificantDigits = n.length, e.maximumSignificantDigits = n.length) : i === "+" ? e.minimumSignificantDigits = n.length : n[0] === "#" ? e.maximumSignificantDigits = n.length : (e.minimumSignificantDigits = n.length, e.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1602
|
+
}), e;
|
|
1554
1603
|
}
|
|
1555
|
-
function
|
|
1556
|
-
switch (
|
|
1604
|
+
function gr(t) {
|
|
1605
|
+
switch (t) {
|
|
1557
1606
|
case "sign-auto":
|
|
1558
1607
|
return {
|
|
1559
1608
|
signDisplay: "auto"
|
|
@@ -1592,113 +1641,113 @@ function br(e) {
|
|
|
1592
1641
|
};
|
|
1593
1642
|
}
|
|
1594
1643
|
}
|
|
1595
|
-
function
|
|
1596
|
-
var
|
|
1597
|
-
if (
|
|
1644
|
+
function ci(t) {
|
|
1645
|
+
var e;
|
|
1646
|
+
if (t[0] === "E" && t[1] === "E" ? (e = {
|
|
1598
1647
|
notation: "engineering"
|
|
1599
|
-
},
|
|
1648
|
+
}, t = t.slice(2)) : t[0] === "E" && (e = {
|
|
1600
1649
|
notation: "scientific"
|
|
1601
|
-
},
|
|
1602
|
-
var r =
|
|
1603
|
-
if (r === "+!" ? (
|
|
1650
|
+
}, t = t.slice(1)), e) {
|
|
1651
|
+
var r = t.slice(0, 2);
|
|
1652
|
+
if (r === "+!" ? (e.signDisplay = "always", t = t.slice(2)) : r === "+?" && (e.signDisplay = "exceptZero", t = t.slice(2)), !br.test(t))
|
|
1604
1653
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1605
|
-
|
|
1654
|
+
e.minimumIntegerDigits = t.length;
|
|
1606
1655
|
}
|
|
1607
|
-
return
|
|
1656
|
+
return e;
|
|
1608
1657
|
}
|
|
1609
|
-
function
|
|
1610
|
-
var
|
|
1611
|
-
return r ||
|
|
1658
|
+
function Pe(t) {
|
|
1659
|
+
var e = {}, r = gr(t);
|
|
1660
|
+
return r || e;
|
|
1612
1661
|
}
|
|
1613
|
-
function
|
|
1614
|
-
for (var
|
|
1662
|
+
function fi(t) {
|
|
1663
|
+
for (var e = {}, r = 0, n = t; r < n.length; r++) {
|
|
1615
1664
|
var i = n[r];
|
|
1616
1665
|
switch (i.stem) {
|
|
1617
1666
|
case "percent":
|
|
1618
1667
|
case "%":
|
|
1619
|
-
|
|
1668
|
+
e.style = "percent";
|
|
1620
1669
|
continue;
|
|
1621
1670
|
case "%x100":
|
|
1622
|
-
|
|
1671
|
+
e.style = "percent", e.scale = 100;
|
|
1623
1672
|
continue;
|
|
1624
1673
|
case "currency":
|
|
1625
|
-
|
|
1674
|
+
e.style = "currency", e.currency = i.options[0];
|
|
1626
1675
|
continue;
|
|
1627
1676
|
case "group-off":
|
|
1628
1677
|
case ",_":
|
|
1629
|
-
|
|
1678
|
+
e.useGrouping = !1;
|
|
1630
1679
|
continue;
|
|
1631
1680
|
case "precision-integer":
|
|
1632
1681
|
case ".":
|
|
1633
|
-
|
|
1682
|
+
e.maximumFractionDigits = 0;
|
|
1634
1683
|
continue;
|
|
1635
1684
|
case "measure-unit":
|
|
1636
1685
|
case "unit":
|
|
1637
|
-
|
|
1686
|
+
e.style = "unit", e.unit = li(i.options[0]);
|
|
1638
1687
|
continue;
|
|
1639
1688
|
case "compact-short":
|
|
1640
1689
|
case "K":
|
|
1641
|
-
|
|
1690
|
+
e.notation = "compact", e.compactDisplay = "short";
|
|
1642
1691
|
continue;
|
|
1643
1692
|
case "compact-long":
|
|
1644
1693
|
case "KK":
|
|
1645
|
-
|
|
1694
|
+
e.notation = "compact", e.compactDisplay = "long";
|
|
1646
1695
|
continue;
|
|
1647
1696
|
case "scientific":
|
|
1648
|
-
|
|
1649
|
-
return _(_({}, l),
|
|
1697
|
+
e = _(_(_({}, e), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1698
|
+
return _(_({}, l), Pe(u));
|
|
1650
1699
|
}, {}));
|
|
1651
1700
|
continue;
|
|
1652
1701
|
case "engineering":
|
|
1653
|
-
|
|
1654
|
-
return _(_({}, l),
|
|
1702
|
+
e = _(_(_({}, e), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1703
|
+
return _(_({}, l), Pe(u));
|
|
1655
1704
|
}, {}));
|
|
1656
1705
|
continue;
|
|
1657
1706
|
case "notation-simple":
|
|
1658
|
-
|
|
1707
|
+
e.notation = "standard";
|
|
1659
1708
|
continue;
|
|
1660
1709
|
case "unit-width-narrow":
|
|
1661
|
-
|
|
1710
|
+
e.currencyDisplay = "narrowSymbol", e.unitDisplay = "narrow";
|
|
1662
1711
|
continue;
|
|
1663
1712
|
case "unit-width-short":
|
|
1664
|
-
|
|
1713
|
+
e.currencyDisplay = "code", e.unitDisplay = "short";
|
|
1665
1714
|
continue;
|
|
1666
1715
|
case "unit-width-full-name":
|
|
1667
|
-
|
|
1716
|
+
e.currencyDisplay = "name", e.unitDisplay = "long";
|
|
1668
1717
|
continue;
|
|
1669
1718
|
case "unit-width-iso-code":
|
|
1670
|
-
|
|
1719
|
+
e.currencyDisplay = "symbol";
|
|
1671
1720
|
continue;
|
|
1672
1721
|
case "scale":
|
|
1673
|
-
|
|
1722
|
+
e.scale = parseFloat(i.options[0]);
|
|
1674
1723
|
continue;
|
|
1675
1724
|
case "rounding-mode-floor":
|
|
1676
|
-
|
|
1725
|
+
e.roundingMode = "floor";
|
|
1677
1726
|
continue;
|
|
1678
1727
|
case "rounding-mode-ceiling":
|
|
1679
|
-
|
|
1728
|
+
e.roundingMode = "ceil";
|
|
1680
1729
|
continue;
|
|
1681
1730
|
case "rounding-mode-down":
|
|
1682
|
-
|
|
1731
|
+
e.roundingMode = "trunc";
|
|
1683
1732
|
continue;
|
|
1684
1733
|
case "rounding-mode-up":
|
|
1685
|
-
|
|
1734
|
+
e.roundingMode = "expand";
|
|
1686
1735
|
continue;
|
|
1687
1736
|
case "rounding-mode-half-even":
|
|
1688
|
-
|
|
1737
|
+
e.roundingMode = "halfEven";
|
|
1689
1738
|
continue;
|
|
1690
1739
|
case "rounding-mode-half-down":
|
|
1691
|
-
|
|
1740
|
+
e.roundingMode = "halfTrunc";
|
|
1692
1741
|
continue;
|
|
1693
1742
|
case "rounding-mode-half-up":
|
|
1694
|
-
|
|
1743
|
+
e.roundingMode = "halfExpand";
|
|
1695
1744
|
continue;
|
|
1696
1745
|
case "integer-width":
|
|
1697
1746
|
if (i.options.length > 1)
|
|
1698
1747
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1699
|
-
i.options[0].replace(
|
|
1748
|
+
i.options[0].replace(hi, function(l, u, h, c, f, p) {
|
|
1700
1749
|
if (u)
|
|
1701
|
-
|
|
1750
|
+
e.minimumIntegerDigits = h.length;
|
|
1702
1751
|
else {
|
|
1703
1752
|
if (c && f)
|
|
1704
1753
|
throw new Error("We currently do not support maximum integer digits");
|
|
@@ -1709,36 +1758,42 @@ function si(e) {
|
|
|
1709
1758
|
});
|
|
1710
1759
|
continue;
|
|
1711
1760
|
}
|
|
1712
|
-
if (
|
|
1713
|
-
|
|
1761
|
+
if (br.test(i.stem)) {
|
|
1762
|
+
e.minimumIntegerDigits = i.stem.length;
|
|
1714
1763
|
continue;
|
|
1715
1764
|
}
|
|
1716
|
-
if (
|
|
1765
|
+
if (Be.test(i.stem)) {
|
|
1717
1766
|
if (i.options.length > 1)
|
|
1718
1767
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1719
|
-
i.stem.replace(
|
|
1720
|
-
return h === "*" ?
|
|
1768
|
+
i.stem.replace(Be, function(l, u, h, c, f, p) {
|
|
1769
|
+
return h === "*" ? e.minimumFractionDigits = u.length : c && c[0] === "#" ? e.maximumFractionDigits = c.length : f && p ? (e.minimumFractionDigits = f.length, e.maximumFractionDigits = f.length + p.length) : (e.minimumFractionDigits = u.length, e.maximumFractionDigits = u.length), "";
|
|
1721
1770
|
});
|
|
1722
1771
|
var o = i.options[0];
|
|
1723
|
-
o === "w" ?
|
|
1772
|
+
o === "w" ? e = _(_({}, e), { trailingZeroDisplay: "stripIfInteger" }) : o && (e = _(_({}, e), Ae(o)));
|
|
1724
1773
|
continue;
|
|
1725
1774
|
}
|
|
1726
|
-
if (
|
|
1727
|
-
|
|
1775
|
+
if (dr.test(i.stem)) {
|
|
1776
|
+
e = _(_({}, e), Ae(i.stem));
|
|
1728
1777
|
continue;
|
|
1729
1778
|
}
|
|
1730
|
-
var a =
|
|
1731
|
-
a && (
|
|
1732
|
-
var s =
|
|
1733
|
-
s && (
|
|
1779
|
+
var a = gr(i.stem);
|
|
1780
|
+
a && (e = _(_({}, e), a));
|
|
1781
|
+
var s = ci(i.stem);
|
|
1782
|
+
s && (e = _(_({}, e), s));
|
|
1734
1783
|
}
|
|
1735
|
-
return
|
|
1784
|
+
return e;
|
|
1736
1785
|
}
|
|
1737
|
-
var
|
|
1786
|
+
var mt = {
|
|
1738
1787
|
"001": [
|
|
1739
1788
|
"H",
|
|
1740
1789
|
"h"
|
|
1741
1790
|
],
|
|
1791
|
+
419: [
|
|
1792
|
+
"h",
|
|
1793
|
+
"H",
|
|
1794
|
+
"hB",
|
|
1795
|
+
"hb"
|
|
1796
|
+
],
|
|
1742
1797
|
AC: [
|
|
1743
1798
|
"H",
|
|
1744
1799
|
"h",
|
|
@@ -1787,8 +1842,8 @@ var me = {
|
|
|
1787
1842
|
"hB"
|
|
1788
1843
|
],
|
|
1789
1844
|
AR: [
|
|
1790
|
-
"H",
|
|
1791
1845
|
"h",
|
|
1846
|
+
"H",
|
|
1792
1847
|
"hB",
|
|
1793
1848
|
"hb"
|
|
1794
1849
|
],
|
|
@@ -1878,9 +1933,9 @@ var me = {
|
|
|
1878
1933
|
"H"
|
|
1879
1934
|
],
|
|
1880
1935
|
BO: [
|
|
1936
|
+
"h",
|
|
1881
1937
|
"H",
|
|
1882
1938
|
"hB",
|
|
1883
|
-
"h",
|
|
1884
1939
|
"hb"
|
|
1885
1940
|
],
|
|
1886
1941
|
BQ: [
|
|
@@ -1957,8 +2012,8 @@ var me = {
|
|
|
1957
2012
|
"hB"
|
|
1958
2013
|
],
|
|
1959
2014
|
CL: [
|
|
1960
|
-
"H",
|
|
1961
2015
|
"h",
|
|
2016
|
+
"H",
|
|
1962
2017
|
"hB",
|
|
1963
2018
|
"hb"
|
|
1964
2019
|
],
|
|
@@ -1983,14 +2038,14 @@ var me = {
|
|
|
1983
2038
|
"H"
|
|
1984
2039
|
],
|
|
1985
2040
|
CR: [
|
|
1986
|
-
"H",
|
|
1987
2041
|
"h",
|
|
2042
|
+
"H",
|
|
1988
2043
|
"hB",
|
|
1989
2044
|
"hb"
|
|
1990
2045
|
],
|
|
1991
2046
|
CU: [
|
|
1992
|
-
"H",
|
|
1993
2047
|
"h",
|
|
2048
|
+
"H",
|
|
1994
2049
|
"hB",
|
|
1995
2050
|
"hb"
|
|
1996
2051
|
],
|
|
@@ -2059,9 +2114,9 @@ var me = {
|
|
|
2059
2114
|
"hb"
|
|
2060
2115
|
],
|
|
2061
2116
|
EC: [
|
|
2117
|
+
"h",
|
|
2062
2118
|
"H",
|
|
2063
2119
|
"hB",
|
|
2064
|
-
"h",
|
|
2065
2120
|
"hb"
|
|
2066
2121
|
],
|
|
2067
2122
|
EE: [
|
|
@@ -2197,8 +2252,8 @@ var me = {
|
|
|
2197
2252
|
"hB"
|
|
2198
2253
|
],
|
|
2199
2254
|
GT: [
|
|
2200
|
-
"H",
|
|
2201
2255
|
"h",
|
|
2256
|
+
"H",
|
|
2202
2257
|
"hB",
|
|
2203
2258
|
"hb"
|
|
2204
2259
|
],
|
|
@@ -2225,8 +2280,8 @@ var me = {
|
|
|
2225
2280
|
"H"
|
|
2226
2281
|
],
|
|
2227
2282
|
HN: [
|
|
2228
|
-
"H",
|
|
2229
2283
|
"h",
|
|
2284
|
+
"H",
|
|
2230
2285
|
"hB",
|
|
2231
2286
|
"hb"
|
|
2232
2287
|
],
|
|
@@ -2540,8 +2595,8 @@ var me = {
|
|
|
2540
2595
|
"hB"
|
|
2541
2596
|
],
|
|
2542
2597
|
MX: [
|
|
2543
|
-
"H",
|
|
2544
2598
|
"h",
|
|
2599
|
+
"H",
|
|
2545
2600
|
"hB",
|
|
2546
2601
|
"hb"
|
|
2547
2602
|
],
|
|
@@ -2581,8 +2636,8 @@ var me = {
|
|
|
2581
2636
|
"hB"
|
|
2582
2637
|
],
|
|
2583
2638
|
NI: [
|
|
2584
|
-
"H",
|
|
2585
2639
|
"h",
|
|
2640
|
+
"H",
|
|
2586
2641
|
"hB",
|
|
2587
2642
|
"hb"
|
|
2588
2643
|
],
|
|
@@ -2630,9 +2685,9 @@ var me = {
|
|
|
2630
2685
|
"hb"
|
|
2631
2686
|
],
|
|
2632
2687
|
PE: [
|
|
2688
|
+
"h",
|
|
2633
2689
|
"H",
|
|
2634
2690
|
"hB",
|
|
2635
|
-
"h",
|
|
2636
2691
|
"hb"
|
|
2637
2692
|
],
|
|
2638
2693
|
PF: [
|
|
@@ -2690,8 +2745,8 @@ var me = {
|
|
|
2690
2745
|
"H"
|
|
2691
2746
|
],
|
|
2692
2747
|
PY: [
|
|
2693
|
-
"H",
|
|
2694
2748
|
"h",
|
|
2749
|
+
"H",
|
|
2695
2750
|
"hB",
|
|
2696
2751
|
"hb"
|
|
2697
2752
|
],
|
|
@@ -2804,8 +2859,8 @@ var me = {
|
|
|
2804
2859
|
"hB"
|
|
2805
2860
|
],
|
|
2806
2861
|
SV: [
|
|
2807
|
-
"H",
|
|
2808
2862
|
"h",
|
|
2863
|
+
"H",
|
|
2809
2864
|
"hB",
|
|
2810
2865
|
"hb"
|
|
2811
2866
|
],
|
|
@@ -2927,8 +2982,8 @@ var me = {
|
|
|
2927
2982
|
"hB"
|
|
2928
2983
|
],
|
|
2929
2984
|
UY: [
|
|
2930
|
-
"H",
|
|
2931
2985
|
"h",
|
|
2986
|
+
"H",
|
|
2932
2987
|
"hB",
|
|
2933
2988
|
"hb"
|
|
2934
2989
|
],
|
|
@@ -3036,37 +3091,37 @@ var me = {
|
|
|
3036
3091
|
"H",
|
|
3037
3092
|
"hB"
|
|
3038
3093
|
],
|
|
3039
|
-
"
|
|
3040
|
-
"H",
|
|
3094
|
+
"en-HK": [
|
|
3041
3095
|
"h",
|
|
3042
|
-
"
|
|
3043
|
-
"
|
|
3096
|
+
"hb",
|
|
3097
|
+
"H",
|
|
3098
|
+
"hB"
|
|
3044
3099
|
],
|
|
3045
|
-
"
|
|
3100
|
+
"en-IL": [
|
|
3046
3101
|
"H",
|
|
3047
3102
|
"h",
|
|
3048
|
-
"
|
|
3049
|
-
"
|
|
3103
|
+
"hb",
|
|
3104
|
+
"hB"
|
|
3050
3105
|
],
|
|
3051
|
-
"
|
|
3052
|
-
"H",
|
|
3106
|
+
"en-MY": [
|
|
3053
3107
|
"h",
|
|
3054
|
-
"
|
|
3055
|
-
"
|
|
3108
|
+
"hb",
|
|
3109
|
+
"H",
|
|
3110
|
+
"hB"
|
|
3056
3111
|
],
|
|
3057
|
-
"es-
|
|
3112
|
+
"es-BR": [
|
|
3058
3113
|
"H",
|
|
3059
3114
|
"h",
|
|
3060
3115
|
"hB",
|
|
3061
3116
|
"hb"
|
|
3062
3117
|
],
|
|
3063
|
-
"es-
|
|
3118
|
+
"es-ES": [
|
|
3064
3119
|
"H",
|
|
3065
3120
|
"h",
|
|
3066
3121
|
"hB",
|
|
3067
3122
|
"hb"
|
|
3068
3123
|
],
|
|
3069
|
-
"es-
|
|
3124
|
+
"es-GQ": [
|
|
3070
3125
|
"H",
|
|
3071
3126
|
"h",
|
|
3072
3127
|
"hB",
|
|
@@ -3143,13 +3198,13 @@ var me = {
|
|
|
3143
3198
|
"h"
|
|
3144
3199
|
]
|
|
3145
3200
|
};
|
|
3146
|
-
function
|
|
3147
|
-
for (var r = "", n = 0; n <
|
|
3148
|
-
var i =
|
|
3201
|
+
function mi(t, e) {
|
|
3202
|
+
for (var r = "", n = 0; n < t.length; n++) {
|
|
3203
|
+
var i = t.charAt(n);
|
|
3149
3204
|
if (i === "j") {
|
|
3150
|
-
for (var o = 0; n + 1 <
|
|
3205
|
+
for (var o = 0; n + 1 < t.length && t.charAt(n + 1) === i; )
|
|
3151
3206
|
o++, n++;
|
|
3152
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3207
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = pi(e);
|
|
3153
3208
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
3154
3209
|
r += l;
|
|
3155
3210
|
for (; a-- > 0; )
|
|
@@ -3158,12 +3213,12 @@ function ai(e, t) {
|
|
|
3158
3213
|
}
|
|
3159
3214
|
return r;
|
|
3160
3215
|
}
|
|
3161
|
-
function
|
|
3162
|
-
var
|
|
3163
|
-
if (
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
switch (
|
|
3216
|
+
function pi(t) {
|
|
3217
|
+
var e = t.hourCycle;
|
|
3218
|
+
if (e === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3219
|
+
t.hourCycles && // @ts-ignore
|
|
3220
|
+
t.hourCycles.length && (e = t.hourCycles[0]), e)
|
|
3221
|
+
switch (e) {
|
|
3167
3222
|
case "h24":
|
|
3168
3223
|
return "k";
|
|
3169
3224
|
case "h23":
|
|
@@ -3175,135 +3230,135 @@ function ui(e) {
|
|
|
3175
3230
|
default:
|
|
3176
3231
|
throw new Error("Invalid hourCycle");
|
|
3177
3232
|
}
|
|
3178
|
-
var r =
|
|
3179
|
-
r !== "root" && (n =
|
|
3180
|
-
var i =
|
|
3233
|
+
var r = t.language, n;
|
|
3234
|
+
r !== "root" && (n = t.maximize().region);
|
|
3235
|
+
var i = mt[n || ""] || mt[r || ""] || mt["".concat(r, "-001")] || mt["001"];
|
|
3181
3236
|
return i[0];
|
|
3182
3237
|
}
|
|
3183
|
-
var
|
|
3184
|
-
function v(
|
|
3185
|
-
return { start:
|
|
3238
|
+
var Dt, di = new RegExp("^".concat(pr.source, "*")), bi = new RegExp("".concat(pr.source, "*$"));
|
|
3239
|
+
function v(t, e) {
|
|
3240
|
+
return { start: t, end: e };
|
|
3186
3241
|
}
|
|
3187
|
-
var
|
|
3188
|
-
return typeof
|
|
3189
|
-
},
|
|
3242
|
+
var gi = !!String.prototype.startsWith && "_a".startsWith("a", 1), yi = !!String.fromCodePoint, vi = !!Object.fromEntries, _i = !!String.prototype.codePointAt, xi = !!String.prototype.trimStart, Ei = !!String.prototype.trimEnd, wi = !!Number.isSafeInteger, Si = wi ? Number.isSafeInteger : function(t) {
|
|
3243
|
+
return typeof t == "number" && isFinite(t) && Math.floor(t) === t && Math.abs(t) <= 9007199254740991;
|
|
3244
|
+
}, qt = !0;
|
|
3190
3245
|
try {
|
|
3191
|
-
var
|
|
3192
|
-
|
|
3193
|
-
} catch (
|
|
3194
|
-
|
|
3246
|
+
var Ti = vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3247
|
+
qt = ((Dt = Ti.exec("a")) === null || Dt === void 0 ? void 0 : Dt[0]) === "a";
|
|
3248
|
+
} catch (t) {
|
|
3249
|
+
qt = !1;
|
|
3195
3250
|
}
|
|
3196
|
-
var
|
|
3251
|
+
var Le = gi ? (
|
|
3197
3252
|
// Native
|
|
3198
|
-
function(
|
|
3199
|
-
return
|
|
3253
|
+
function(e, r, n) {
|
|
3254
|
+
return e.startsWith(r, n);
|
|
3200
3255
|
}
|
|
3201
3256
|
) : (
|
|
3202
3257
|
// For IE11
|
|
3203
|
-
function(
|
|
3204
|
-
return
|
|
3258
|
+
function(e, r, n) {
|
|
3259
|
+
return e.slice(n, n + r.length) === r;
|
|
3205
3260
|
}
|
|
3206
|
-
),
|
|
3261
|
+
), Yt = yi ? String.fromCodePoint : (
|
|
3207
3262
|
// IE11
|
|
3208
3263
|
function() {
|
|
3209
|
-
for (var
|
|
3210
|
-
|
|
3211
|
-
for (var n = "", i =
|
|
3212
|
-
if (a =
|
|
3264
|
+
for (var e = [], r = 0; r < arguments.length; r++)
|
|
3265
|
+
e[r] = arguments[r];
|
|
3266
|
+
for (var n = "", i = e.length, o = 0, a; i > o; ) {
|
|
3267
|
+
if (a = e[o++], a > 1114111)
|
|
3213
3268
|
throw RangeError(a + " is not a valid code point");
|
|
3214
3269
|
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
3215
3270
|
}
|
|
3216
3271
|
return n;
|
|
3217
3272
|
}
|
|
3218
|
-
),
|
|
3273
|
+
), Oe = (
|
|
3219
3274
|
// native
|
|
3220
|
-
|
|
3275
|
+
vi ? Object.fromEntries : (
|
|
3221
3276
|
// Ponyfill
|
|
3222
|
-
function(
|
|
3223
|
-
for (var r = {}, n = 0, i =
|
|
3277
|
+
function(e) {
|
|
3278
|
+
for (var r = {}, n = 0, i = e; n < i.length; n++) {
|
|
3224
3279
|
var o = i[n], a = o[0], s = o[1];
|
|
3225
3280
|
r[a] = s;
|
|
3226
3281
|
}
|
|
3227
3282
|
return r;
|
|
3228
3283
|
}
|
|
3229
3284
|
)
|
|
3230
|
-
),
|
|
3285
|
+
), yr = _i ? (
|
|
3231
3286
|
// Native
|
|
3232
|
-
function(
|
|
3233
|
-
return
|
|
3287
|
+
function(e, r) {
|
|
3288
|
+
return e.codePointAt(r);
|
|
3234
3289
|
}
|
|
3235
3290
|
) : (
|
|
3236
3291
|
// IE 11
|
|
3237
|
-
function(
|
|
3238
|
-
var n =
|
|
3292
|
+
function(e, r) {
|
|
3293
|
+
var n = e.length;
|
|
3239
3294
|
if (!(r < 0 || r >= n)) {
|
|
3240
|
-
var i =
|
|
3241
|
-
return i < 55296 || i > 56319 || r + 1 === n || (o =
|
|
3295
|
+
var i = e.charCodeAt(r), o;
|
|
3296
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = e.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3242
3297
|
}
|
|
3243
3298
|
}
|
|
3244
|
-
),
|
|
3299
|
+
), Hi = xi ? (
|
|
3245
3300
|
// Native
|
|
3246
|
-
function(
|
|
3247
|
-
return
|
|
3301
|
+
function(e) {
|
|
3302
|
+
return e.trimStart();
|
|
3248
3303
|
}
|
|
3249
3304
|
) : (
|
|
3250
3305
|
// Ponyfill
|
|
3251
|
-
function(
|
|
3252
|
-
return
|
|
3306
|
+
function(e) {
|
|
3307
|
+
return e.replace(di, "");
|
|
3253
3308
|
}
|
|
3254
|
-
),
|
|
3309
|
+
), Ci = Ei ? (
|
|
3255
3310
|
// Native
|
|
3256
|
-
function(
|
|
3257
|
-
return
|
|
3311
|
+
function(e) {
|
|
3312
|
+
return e.trimEnd();
|
|
3258
3313
|
}
|
|
3259
3314
|
) : (
|
|
3260
3315
|
// Ponyfill
|
|
3261
|
-
function(
|
|
3262
|
-
return
|
|
3316
|
+
function(e) {
|
|
3317
|
+
return e.replace(bi, "");
|
|
3263
3318
|
}
|
|
3264
3319
|
);
|
|
3265
|
-
function
|
|
3266
|
-
return new RegExp(
|
|
3320
|
+
function vr(t, e) {
|
|
3321
|
+
return new RegExp(t, e);
|
|
3267
3322
|
}
|
|
3268
|
-
var
|
|
3269
|
-
if (
|
|
3270
|
-
var
|
|
3271
|
-
|
|
3323
|
+
var Kt;
|
|
3324
|
+
if (qt) {
|
|
3325
|
+
var Ie = vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3326
|
+
Kt = function(e, r) {
|
|
3272
3327
|
var n;
|
|
3273
|
-
|
|
3274
|
-
var i =
|
|
3328
|
+
Ie.lastIndex = r;
|
|
3329
|
+
var i = Ie.exec(e);
|
|
3275
3330
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3276
3331
|
};
|
|
3277
3332
|
} else
|
|
3278
|
-
|
|
3333
|
+
Kt = function(e, r) {
|
|
3279
3334
|
for (var n = []; ; ) {
|
|
3280
|
-
var i =
|
|
3281
|
-
if (i === void 0 ||
|
|
3335
|
+
var i = yr(e, r);
|
|
3336
|
+
if (i === void 0 || _r(i) || Li(i))
|
|
3282
3337
|
break;
|
|
3283
3338
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3284
3339
|
}
|
|
3285
|
-
return
|
|
3340
|
+
return Yt.apply(void 0, n);
|
|
3286
3341
|
};
|
|
3287
|
-
var
|
|
3342
|
+
var Bi = (
|
|
3288
3343
|
/** @class */
|
|
3289
3344
|
function() {
|
|
3290
|
-
function e
|
|
3291
|
-
r === void 0 && (r = {}), this.message =
|
|
3345
|
+
function t(e, r) {
|
|
3346
|
+
r === void 0 && (r = {}), this.message = e, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
|
|
3292
3347
|
}
|
|
3293
|
-
return
|
|
3348
|
+
return t.prototype.parse = function() {
|
|
3294
3349
|
if (this.offset() !== 0)
|
|
3295
3350
|
throw Error("parser can only be used once");
|
|
3296
3351
|
return this.parseMessage(0, "", !1);
|
|
3297
|
-
},
|
|
3352
|
+
}, t.prototype.parseMessage = function(e, r, n) {
|
|
3298
3353
|
for (var i = []; !this.isEOF(); ) {
|
|
3299
3354
|
var o = this.char();
|
|
3300
3355
|
if (o === 123) {
|
|
3301
|
-
var a = this.parseArgument(
|
|
3356
|
+
var a = this.parseArgument(e, n);
|
|
3302
3357
|
if (a.err)
|
|
3303
3358
|
return a;
|
|
3304
3359
|
i.push(a.val);
|
|
3305
3360
|
} else {
|
|
3306
|
-
if (o === 125 &&
|
|
3361
|
+
if (o === 125 && e > 0)
|
|
3307
3362
|
break;
|
|
3308
3363
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3309
3364
|
var s = this.clonePosition();
|
|
@@ -3315,13 +3370,13 @@ var Ei = (
|
|
|
3315
3370
|
if (n)
|
|
3316
3371
|
break;
|
|
3317
3372
|
return this.error(g.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3318
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3319
|
-
var a = this.parseTag(
|
|
3373
|
+
} else if (o === 60 && !this.ignoreTag && te(this.peek() || 0)) {
|
|
3374
|
+
var a = this.parseTag(e, r);
|
|
3320
3375
|
if (a.err)
|
|
3321
3376
|
return a;
|
|
3322
3377
|
i.push(a.val);
|
|
3323
3378
|
} else {
|
|
3324
|
-
var a = this.parseLiteral(
|
|
3379
|
+
var a = this.parseLiteral(e, r);
|
|
3325
3380
|
if (a.err)
|
|
3326
3381
|
return a;
|
|
3327
3382
|
i.push(a.val);
|
|
@@ -3329,7 +3384,7 @@ var Ei = (
|
|
|
3329
3384
|
}
|
|
3330
3385
|
}
|
|
3331
3386
|
return { val: i, err: null };
|
|
3332
|
-
},
|
|
3387
|
+
}, t.prototype.parseTag = function(e, r) {
|
|
3333
3388
|
var n = this.clonePosition();
|
|
3334
3389
|
this.bump();
|
|
3335
3390
|
var i = this.parseTagName();
|
|
@@ -3343,12 +3398,12 @@ var Ei = (
|
|
|
3343
3398
|
err: null
|
|
3344
3399
|
};
|
|
3345
3400
|
if (this.bumpIf(">")) {
|
|
3346
|
-
var o = this.parseMessage(
|
|
3401
|
+
var o = this.parseMessage(e + 1, r, !0);
|
|
3347
3402
|
if (o.err)
|
|
3348
3403
|
return o;
|
|
3349
3404
|
var a = o.val, s = this.clonePosition();
|
|
3350
3405
|
if (this.bumpIf("</")) {
|
|
3351
|
-
if (this.isEOF() || !
|
|
3406
|
+
if (this.isEOF() || !te(this.char()))
|
|
3352
3407
|
return this.error(g.INVALID_TAG, v(s, this.clonePosition()));
|
|
3353
3408
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3354
3409
|
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3364,19 +3419,19 @@ var Ei = (
|
|
|
3364
3419
|
return this.error(g.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
3365
3420
|
} else
|
|
3366
3421
|
return this.error(g.INVALID_TAG, v(n, this.clonePosition()));
|
|
3367
|
-
},
|
|
3368
|
-
var
|
|
3369
|
-
for (this.bump(); !this.isEOF() &&
|
|
3422
|
+
}, t.prototype.parseTagName = function() {
|
|
3423
|
+
var e = this.offset();
|
|
3424
|
+
for (this.bump(); !this.isEOF() && Pi(this.char()); )
|
|
3370
3425
|
this.bump();
|
|
3371
|
-
return this.message.slice(
|
|
3372
|
-
},
|
|
3426
|
+
return this.message.slice(e, this.offset());
|
|
3427
|
+
}, t.prototype.parseLiteral = function(e, r) {
|
|
3373
3428
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
3374
3429
|
var o = this.tryParseQuote(r);
|
|
3375
3430
|
if (o) {
|
|
3376
3431
|
i += o;
|
|
3377
3432
|
continue;
|
|
3378
3433
|
}
|
|
3379
|
-
var a = this.tryParseUnquoted(
|
|
3434
|
+
var a = this.tryParseUnquoted(e, r);
|
|
3380
3435
|
if (a) {
|
|
3381
3436
|
i += a;
|
|
3382
3437
|
continue;
|
|
@@ -3393,10 +3448,10 @@ var Ei = (
|
|
|
3393
3448
|
val: { type: E.literal, value: i, location: l },
|
|
3394
3449
|
err: null
|
|
3395
3450
|
};
|
|
3396
|
-
},
|
|
3451
|
+
}, t.prototype.tryParseLeftAngleBracket = function() {
|
|
3397
3452
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3398
|
-
!
|
|
3399
|
-
},
|
|
3453
|
+
!Ai(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3454
|
+
}, t.prototype.tryParseQuote = function(e) {
|
|
3400
3455
|
if (this.isEOF() || this.char() !== 39)
|
|
3401
3456
|
return null;
|
|
3402
3457
|
switch (this.peek()) {
|
|
@@ -3408,7 +3463,7 @@ var Ei = (
|
|
|
3408
3463
|
case 125:
|
|
3409
3464
|
break;
|
|
3410
3465
|
case 35:
|
|
3411
|
-
if (
|
|
3466
|
+
if (e === "plural" || e === "selectordinal")
|
|
3412
3467
|
break;
|
|
3413
3468
|
return null;
|
|
3414
3469
|
default:
|
|
@@ -3429,13 +3484,13 @@ var Ei = (
|
|
|
3429
3484
|
r.push(n);
|
|
3430
3485
|
this.bump();
|
|
3431
3486
|
}
|
|
3432
|
-
return
|
|
3433
|
-
},
|
|
3487
|
+
return Yt.apply(void 0, r);
|
|
3488
|
+
}, t.prototype.tryParseUnquoted = function(e, r) {
|
|
3434
3489
|
if (this.isEOF())
|
|
3435
3490
|
return null;
|
|
3436
3491
|
var n = this.char();
|
|
3437
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 &&
|
|
3438
|
-
},
|
|
3492
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && e > 0 ? null : (this.bump(), Yt(n));
|
|
3493
|
+
}, t.prototype.parseArgument = function(e, r) {
|
|
3439
3494
|
var n = this.clonePosition();
|
|
3440
3495
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3441
3496
|
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
@@ -3458,16 +3513,16 @@ var Ei = (
|
|
|
3458
3513
|
err: null
|
|
3459
3514
|
};
|
|
3460
3515
|
case 44:
|
|
3461
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(
|
|
3516
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(e, r, i, n);
|
|
3462
3517
|
default:
|
|
3463
3518
|
return this.error(g.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3464
3519
|
}
|
|
3465
|
-
},
|
|
3466
|
-
var
|
|
3520
|
+
}, t.prototype.parseIdentifierIfPossible = function() {
|
|
3521
|
+
var e = this.clonePosition(), r = this.offset(), n = Kt(this.message, r), i = r + n.length;
|
|
3467
3522
|
this.bumpTo(i);
|
|
3468
|
-
var o = this.clonePosition(), a = v(
|
|
3523
|
+
var o = this.clonePosition(), a = v(e, o);
|
|
3469
3524
|
return { value: n, location: a };
|
|
3470
|
-
},
|
|
3525
|
+
}, t.prototype.parseArgumentOptions = function(e, r, n, i) {
|
|
3471
3526
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3472
3527
|
switch (s) {
|
|
3473
3528
|
case "":
|
|
@@ -3482,7 +3537,7 @@ var Ei = (
|
|
|
3482
3537
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3483
3538
|
if (c.err)
|
|
3484
3539
|
return c;
|
|
3485
|
-
var f =
|
|
3540
|
+
var f = Ci(c.val);
|
|
3486
3541
|
if (f.length === 0)
|
|
3487
3542
|
return this.error(g.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3488
3543
|
var p = v(h, this.clonePosition());
|
|
@@ -3492,8 +3547,8 @@ var Ei = (
|
|
|
3492
3547
|
if (m.err)
|
|
3493
3548
|
return m;
|
|
3494
3549
|
var d = v(i, this.clonePosition());
|
|
3495
|
-
if (u &&
|
|
3496
|
-
var y =
|
|
3550
|
+
if (u && Le(u == null ? void 0 : u.style, "::", 0)) {
|
|
3551
|
+
var y = Hi(u.style.slice(2));
|
|
3497
3552
|
if (s === "number") {
|
|
3498
3553
|
var c = this.parseNumberSkeletonFromString(y, u.styleLocation);
|
|
3499
3554
|
return c.err ? c : {
|
|
@@ -3504,12 +3559,12 @@ var Ei = (
|
|
|
3504
3559
|
if (y.length === 0)
|
|
3505
3560
|
return this.error(g.EXPECT_DATE_TIME_SKELETON, d);
|
|
3506
3561
|
var T = y;
|
|
3507
|
-
this.locale && (T =
|
|
3562
|
+
this.locale && (T = mi(y, this.locale));
|
|
3508
3563
|
var f = {
|
|
3509
|
-
type:
|
|
3564
|
+
type: q.dateTime,
|
|
3510
3565
|
pattern: T,
|
|
3511
3566
|
location: u.styleLocation,
|
|
3512
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3567
|
+
parsedOptions: this.shouldParseSkeletons ? si(T) : {}
|
|
3513
3568
|
}, B = s === "date" ? E.date : E.time;
|
|
3514
3569
|
return {
|
|
3515
3570
|
val: { type: B, value: n, location: d, style: f },
|
|
@@ -3544,7 +3599,7 @@ var Ei = (
|
|
|
3544
3599
|
return c;
|
|
3545
3600
|
this.bumpSpace(), C = this.parseIdentifierIfPossible(), w = c.val;
|
|
3546
3601
|
}
|
|
3547
|
-
var x = this.tryParsePluralOrSelectOptions(
|
|
3602
|
+
var x = this.tryParsePluralOrSelectOptions(e, s, r, C);
|
|
3548
3603
|
if (x.err)
|
|
3549
3604
|
return x;
|
|
3550
3605
|
var m = this.tryParseArgumentClose(i);
|
|
@@ -3555,7 +3610,7 @@ var Ei = (
|
|
|
3555
3610
|
val: {
|
|
3556
3611
|
type: E.select,
|
|
3557
3612
|
value: n,
|
|
3558
|
-
options:
|
|
3613
|
+
options: Oe(x.val),
|
|
3559
3614
|
location: L
|
|
3560
3615
|
},
|
|
3561
3616
|
err: null
|
|
@@ -3563,7 +3618,7 @@ var Ei = (
|
|
|
3563
3618
|
val: {
|
|
3564
3619
|
type: E.plural,
|
|
3565
3620
|
value: n,
|
|
3566
|
-
options:
|
|
3621
|
+
options: Oe(x.val),
|
|
3567
3622
|
offset: w,
|
|
3568
3623
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3569
3624
|
location: L
|
|
@@ -3574,10 +3629,10 @@ var Ei = (
|
|
|
3574
3629
|
default:
|
|
3575
3630
|
return this.error(g.INVALID_ARGUMENT_TYPE, v(a, l));
|
|
3576
3631
|
}
|
|
3577
|
-
},
|
|
3578
|
-
return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(
|
|
3579
|
-
},
|
|
3580
|
-
for (var
|
|
3632
|
+
}, t.prototype.tryParseArgumentClose = function(e) {
|
|
3633
|
+
return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(e, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3634
|
+
}, t.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3635
|
+
for (var e = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3581
3636
|
var n = this.char();
|
|
3582
3637
|
switch (n) {
|
|
3583
3638
|
case 39: {
|
|
@@ -3589,12 +3644,12 @@ var Ei = (
|
|
|
3589
3644
|
break;
|
|
3590
3645
|
}
|
|
3591
3646
|
case 123: {
|
|
3592
|
-
|
|
3647
|
+
e += 1, this.bump();
|
|
3593
3648
|
break;
|
|
3594
3649
|
}
|
|
3595
3650
|
case 125: {
|
|
3596
|
-
if (
|
|
3597
|
-
|
|
3651
|
+
if (e > 0)
|
|
3652
|
+
e -= 1;
|
|
3598
3653
|
else
|
|
3599
3654
|
return {
|
|
3600
3655
|
val: this.message.slice(r.offset, this.offset()),
|
|
@@ -3611,23 +3666,23 @@ var Ei = (
|
|
|
3611
3666
|
val: this.message.slice(r.offset, this.offset()),
|
|
3612
3667
|
err: null
|
|
3613
3668
|
};
|
|
3614
|
-
},
|
|
3669
|
+
}, t.prototype.parseNumberSkeletonFromString = function(e, r) {
|
|
3615
3670
|
var n = [];
|
|
3616
3671
|
try {
|
|
3617
|
-
n =
|
|
3672
|
+
n = ui(e);
|
|
3618
3673
|
} catch (i) {
|
|
3619
3674
|
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
3620
3675
|
}
|
|
3621
3676
|
return {
|
|
3622
3677
|
val: {
|
|
3623
|
-
type:
|
|
3678
|
+
type: q.number,
|
|
3624
3679
|
tokens: n,
|
|
3625
3680
|
location: r,
|
|
3626
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3681
|
+
parsedOptions: this.shouldParseSkeletons ? fi(n) : {}
|
|
3627
3682
|
},
|
|
3628
3683
|
err: null
|
|
3629
3684
|
};
|
|
3630
|
-
},
|
|
3685
|
+
}, t.prototype.tryParsePluralOrSelectOptions = function(e, r, n, i) {
|
|
3631
3686
|
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3632
3687
|
if (u.length === 0) {
|
|
3633
3688
|
var c = this.clonePosition();
|
|
@@ -3645,7 +3700,7 @@ var Ei = (
|
|
|
3645
3700
|
var p = this.clonePosition();
|
|
3646
3701
|
if (!this.bumpIf("{"))
|
|
3647
3702
|
return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3648
|
-
var m = this.parseMessage(
|
|
3703
|
+
var m = this.parseMessage(e + 1, r, n);
|
|
3649
3704
|
if (m.err)
|
|
3650
3705
|
return m;
|
|
3651
3706
|
var d = this.tryParseArgumentClose(p);
|
|
@@ -3660,7 +3715,7 @@ var Ei = (
|
|
|
3660
3715
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3661
3716
|
}
|
|
3662
3717
|
return s.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(g.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3663
|
-
},
|
|
3718
|
+
}, t.prototype.tryParseDecimalInteger = function(e, r) {
|
|
3664
3719
|
var n = 1, i = this.clonePosition();
|
|
3665
3720
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3666
3721
|
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
@@ -3671,231 +3726,181 @@ var Ei = (
|
|
|
3671
3726
|
break;
|
|
3672
3727
|
}
|
|
3673
3728
|
var l = v(i, this.clonePosition());
|
|
3674
|
-
return o ? (a *= n,
|
|
3675
|
-
},
|
|
3729
|
+
return o ? (a *= n, Si(a) ? { val: a, err: null } : this.error(r, l)) : this.error(e, l);
|
|
3730
|
+
}, t.prototype.offset = function() {
|
|
3676
3731
|
return this.position.offset;
|
|
3677
|
-
},
|
|
3732
|
+
}, t.prototype.isEOF = function() {
|
|
3678
3733
|
return this.offset() === this.message.length;
|
|
3679
|
-
},
|
|
3734
|
+
}, t.prototype.clonePosition = function() {
|
|
3680
3735
|
return {
|
|
3681
3736
|
offset: this.position.offset,
|
|
3682
3737
|
line: this.position.line,
|
|
3683
3738
|
column: this.position.column
|
|
3684
3739
|
};
|
|
3685
|
-
},
|
|
3686
|
-
var
|
|
3687
|
-
if (
|
|
3740
|
+
}, t.prototype.char = function() {
|
|
3741
|
+
var e = this.position.offset;
|
|
3742
|
+
if (e >= this.message.length)
|
|
3688
3743
|
throw Error("out of bound");
|
|
3689
|
-
var r =
|
|
3744
|
+
var r = yr(this.message, e);
|
|
3690
3745
|
if (r === void 0)
|
|
3691
|
-
throw Error("Offset ".concat(
|
|
3746
|
+
throw Error("Offset ".concat(e, " is at invalid UTF-16 code unit boundary"));
|
|
3692
3747
|
return r;
|
|
3693
|
-
},
|
|
3748
|
+
}, t.prototype.error = function(e, r) {
|
|
3694
3749
|
return {
|
|
3695
3750
|
val: null,
|
|
3696
3751
|
err: {
|
|
3697
|
-
kind:
|
|
3752
|
+
kind: e,
|
|
3698
3753
|
message: this.message,
|
|
3699
3754
|
location: r
|
|
3700
3755
|
}
|
|
3701
3756
|
};
|
|
3702
|
-
},
|
|
3757
|
+
}, t.prototype.bump = function() {
|
|
3703
3758
|
if (!this.isEOF()) {
|
|
3704
|
-
var
|
|
3705
|
-
|
|
3759
|
+
var e = this.char();
|
|
3760
|
+
e === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += e < 65536 ? 1 : 2);
|
|
3706
3761
|
}
|
|
3707
|
-
},
|
|
3708
|
-
if (
|
|
3709
|
-
for (var r = 0; r <
|
|
3762
|
+
}, t.prototype.bumpIf = function(e) {
|
|
3763
|
+
if (Le(this.message, e, this.offset())) {
|
|
3764
|
+
for (var r = 0; r < e.length; r++)
|
|
3710
3765
|
this.bump();
|
|
3711
3766
|
return !0;
|
|
3712
3767
|
}
|
|
3713
3768
|
return !1;
|
|
3714
|
-
},
|
|
3715
|
-
var r = this.offset(), n = this.message.indexOf(
|
|
3769
|
+
}, t.prototype.bumpUntil = function(e) {
|
|
3770
|
+
var r = this.offset(), n = this.message.indexOf(e, r);
|
|
3716
3771
|
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
3717
|
-
},
|
|
3718
|
-
if (this.offset() >
|
|
3719
|
-
throw Error("targetOffset ".concat(
|
|
3720
|
-
for (
|
|
3772
|
+
}, t.prototype.bumpTo = function(e) {
|
|
3773
|
+
if (this.offset() > e)
|
|
3774
|
+
throw Error("targetOffset ".concat(e, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3775
|
+
for (e = Math.min(e, this.message.length); ; ) {
|
|
3721
3776
|
var r = this.offset();
|
|
3722
|
-
if (r ===
|
|
3777
|
+
if (r === e)
|
|
3723
3778
|
break;
|
|
3724
|
-
if (r >
|
|
3725
|
-
throw Error("targetOffset ".concat(
|
|
3779
|
+
if (r > e)
|
|
3780
|
+
throw Error("targetOffset ".concat(e, " is at invalid UTF-16 code unit boundary"));
|
|
3726
3781
|
if (this.bump(), this.isEOF())
|
|
3727
3782
|
break;
|
|
3728
3783
|
}
|
|
3729
|
-
},
|
|
3730
|
-
for (; !this.isEOF() &&
|
|
3784
|
+
}, t.prototype.bumpSpace = function() {
|
|
3785
|
+
for (; !this.isEOF() && _r(this.char()); )
|
|
3731
3786
|
this.bump();
|
|
3732
|
-
},
|
|
3787
|
+
}, t.prototype.peek = function() {
|
|
3733
3788
|
if (this.isEOF())
|
|
3734
3789
|
return null;
|
|
3735
|
-
var
|
|
3790
|
+
var e = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (e >= 65536 ? 2 : 1));
|
|
3736
3791
|
return n != null ? n : null;
|
|
3737
|
-
},
|
|
3792
|
+
}, t;
|
|
3738
3793
|
}()
|
|
3739
3794
|
);
|
|
3740
|
-
function
|
|
3741
|
-
return
|
|
3795
|
+
function te(t) {
|
|
3796
|
+
return t >= 97 && t <= 122 || t >= 65 && t <= 90;
|
|
3742
3797
|
}
|
|
3743
|
-
function
|
|
3744
|
-
return
|
|
3798
|
+
function Ai(t) {
|
|
3799
|
+
return te(t) || t === 47;
|
|
3745
3800
|
}
|
|
3746
|
-
function
|
|
3747
|
-
return
|
|
3801
|
+
function Pi(t) {
|
|
3802
|
+
return t === 45 || t === 46 || t >= 48 && t <= 57 || t === 95 || t >= 97 && t <= 122 || t >= 65 && t <= 90 || t == 183 || t >= 192 && t <= 214 || t >= 216 && t <= 246 || t >= 248 && t <= 893 || t >= 895 && t <= 8191 || t >= 8204 && t <= 8205 || t >= 8255 && t <= 8256 || t >= 8304 && t <= 8591 || t >= 11264 && t <= 12271 || t >= 12289 && t <= 55295 || t >= 63744 && t <= 64975 || t >= 65008 && t <= 65533 || t >= 65536 && t <= 983039;
|
|
3748
3803
|
}
|
|
3749
|
-
function
|
|
3750
|
-
return
|
|
3804
|
+
function _r(t) {
|
|
3805
|
+
return t >= 9 && t <= 13 || t === 32 || t === 133 || t >= 8206 && t <= 8207 || t === 8232 || t === 8233;
|
|
3751
3806
|
}
|
|
3752
|
-
function
|
|
3753
|
-
return
|
|
3807
|
+
function Li(t) {
|
|
3808
|
+
return t >= 33 && t <= 35 || t === 36 || t >= 37 && t <= 39 || t === 40 || t === 41 || t === 42 || t === 43 || t === 44 || t === 45 || t >= 46 && t <= 47 || t >= 58 && t <= 59 || t >= 60 && t <= 62 || t >= 63 && t <= 64 || t === 91 || t === 92 || t === 93 || t === 94 || t === 96 || t === 123 || t === 124 || t === 125 || t === 126 || t === 161 || t >= 162 && t <= 165 || t === 166 || t === 167 || t === 169 || t === 171 || t === 172 || t === 174 || t === 176 || t === 177 || t === 182 || t === 187 || t === 191 || t === 215 || t === 247 || t >= 8208 && t <= 8213 || t >= 8214 && t <= 8215 || t === 8216 || t === 8217 || t === 8218 || t >= 8219 && t <= 8220 || t === 8221 || t === 8222 || t === 8223 || t >= 8224 && t <= 8231 || t >= 8240 && t <= 8248 || t === 8249 || t === 8250 || t >= 8251 && t <= 8254 || t >= 8257 && t <= 8259 || t === 8260 || t === 8261 || t === 8262 || t >= 8263 && t <= 8273 || t === 8274 || t === 8275 || t >= 8277 && t <= 8286 || t >= 8592 && t <= 8596 || t >= 8597 && t <= 8601 || t >= 8602 && t <= 8603 || t >= 8604 && t <= 8607 || t === 8608 || t >= 8609 && t <= 8610 || t === 8611 || t >= 8612 && t <= 8613 || t === 8614 || t >= 8615 && t <= 8621 || t === 8622 || t >= 8623 && t <= 8653 || t >= 8654 && t <= 8655 || t >= 8656 && t <= 8657 || t === 8658 || t === 8659 || t === 8660 || t >= 8661 && t <= 8691 || t >= 8692 && t <= 8959 || t >= 8960 && t <= 8967 || t === 8968 || t === 8969 || t === 8970 || t === 8971 || t >= 8972 && t <= 8991 || t >= 8992 && t <= 8993 || t >= 8994 && t <= 9e3 || t === 9001 || t === 9002 || t >= 9003 && t <= 9083 || t === 9084 || t >= 9085 && t <= 9114 || t >= 9115 && t <= 9139 || t >= 9140 && t <= 9179 || t >= 9180 && t <= 9185 || t >= 9186 && t <= 9254 || t >= 9255 && t <= 9279 || t >= 9280 && t <= 9290 || t >= 9291 && t <= 9311 || t >= 9472 && t <= 9654 || t === 9655 || t >= 9656 && t <= 9664 || t === 9665 || t >= 9666 && t <= 9719 || t >= 9720 && t <= 9727 || t >= 9728 && t <= 9838 || t === 9839 || t >= 9840 && t <= 10087 || t === 10088 || t === 10089 || t === 10090 || t === 10091 || t === 10092 || t === 10093 || t === 10094 || t === 10095 || t === 10096 || t === 10097 || t === 10098 || t === 10099 || t === 10100 || t === 10101 || t >= 10132 && t <= 10175 || t >= 10176 && t <= 10180 || t === 10181 || t === 10182 || t >= 10183 && t <= 10213 || t === 10214 || t === 10215 || t === 10216 || t === 10217 || t === 10218 || t === 10219 || t === 10220 || t === 10221 || t === 10222 || t === 10223 || t >= 10224 && t <= 10239 || t >= 10240 && t <= 10495 || t >= 10496 && t <= 10626 || t === 10627 || t === 10628 || t === 10629 || t === 10630 || t === 10631 || t === 10632 || t === 10633 || t === 10634 || t === 10635 || t === 10636 || t === 10637 || t === 10638 || t === 10639 || t === 10640 || t === 10641 || t === 10642 || t === 10643 || t === 10644 || t === 10645 || t === 10646 || t === 10647 || t === 10648 || t >= 10649 && t <= 10711 || t === 10712 || t === 10713 || t === 10714 || t === 10715 || t >= 10716 && t <= 10747 || t === 10748 || t === 10749 || t >= 10750 && t <= 11007 || t >= 11008 && t <= 11055 || t >= 11056 && t <= 11076 || t >= 11077 && t <= 11078 || t >= 11079 && t <= 11084 || t >= 11085 && t <= 11123 || t >= 11124 && t <= 11125 || t >= 11126 && t <= 11157 || t === 11158 || t >= 11159 && t <= 11263 || t >= 11776 && t <= 11777 || t === 11778 || t === 11779 || t === 11780 || t === 11781 || t >= 11782 && t <= 11784 || t === 11785 || t === 11786 || t === 11787 || t === 11788 || t === 11789 || t >= 11790 && t <= 11798 || t === 11799 || t >= 11800 && t <= 11801 || t === 11802 || t === 11803 || t === 11804 || t === 11805 || t >= 11806 && t <= 11807 || t === 11808 || t === 11809 || t === 11810 || t === 11811 || t === 11812 || t === 11813 || t === 11814 || t === 11815 || t === 11816 || t === 11817 || t >= 11818 && t <= 11822 || t === 11823 || t >= 11824 && t <= 11833 || t >= 11834 && t <= 11835 || t >= 11836 && t <= 11839 || t === 11840 || t === 11841 || t === 11842 || t >= 11843 && t <= 11855 || t >= 11856 && t <= 11857 || t === 11858 || t >= 11859 && t <= 11903 || t >= 12289 && t <= 12291 || t === 12296 || t === 12297 || t === 12298 || t === 12299 || t === 12300 || t === 12301 || t === 12302 || t === 12303 || t === 12304 || t === 12305 || t >= 12306 && t <= 12307 || t === 12308 || t === 12309 || t === 12310 || t === 12311 || t === 12312 || t === 12313 || t === 12314 || t === 12315 || t === 12316 || t === 12317 || t >= 12318 && t <= 12319 || t === 12320 || t === 12336 || t === 64830 || t === 64831 || t >= 65093 && t <= 65094;
|
|
3754
3809
|
}
|
|
3755
|
-
function
|
|
3756
|
-
|
|
3757
|
-
if (delete
|
|
3758
|
-
for (var r in
|
|
3759
|
-
delete
|
|
3760
|
-
else
|
|
3810
|
+
function ee(t) {
|
|
3811
|
+
t.forEach(function(e) {
|
|
3812
|
+
if (delete e.location, hr(e) || cr(e))
|
|
3813
|
+
for (var r in e.options)
|
|
3814
|
+
delete e.options[r].location, ee(e.options[r].value);
|
|
3815
|
+
else ar(e) && mr(e.style) || (ur(e) || lr(e)) && Jt(e.style) ? delete e.style.location : fr(e) && ee(e.children);
|
|
3761
3816
|
});
|
|
3762
3817
|
}
|
|
3763
|
-
function
|
|
3764
|
-
|
|
3765
|
-
var r = new
|
|
3818
|
+
function Oi(t, e) {
|
|
3819
|
+
e === void 0 && (e = {}), e = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, e);
|
|
3820
|
+
var r = new Bi(t, e).parse();
|
|
3766
3821
|
if (r.err) {
|
|
3767
3822
|
var n = SyntaxError(g[r.err.kind]);
|
|
3768
3823
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3769
3824
|
}
|
|
3770
|
-
return
|
|
3771
|
-
}
|
|
3772
|
-
function Ue(e, t) {
|
|
3773
|
-
var r = t && t.cache ? t.cache : Oi, n = t && t.serializer ? t.serializer : Li, i = t && t.strategy ? t.strategy : Bi;
|
|
3774
|
-
return i(e, {
|
|
3775
|
-
cache: r,
|
|
3776
|
-
serializer: n
|
|
3777
|
-
});
|
|
3778
|
-
}
|
|
3779
|
-
function Ci(e) {
|
|
3780
|
-
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
3781
|
-
}
|
|
3782
|
-
function _r(e, t, r, n) {
|
|
3783
|
-
var i = Ci(n) ? n : r(n), o = t.get(i);
|
|
3784
|
-
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
3785
|
-
}
|
|
3786
|
-
function xr(e, t, r) {
|
|
3787
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
3788
|
-
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
3789
|
-
}
|
|
3790
|
-
function at(e, t, r, n, i) {
|
|
3791
|
-
return r.bind(t, e, n, i);
|
|
3792
|
-
}
|
|
3793
|
-
function Bi(e, t) {
|
|
3794
|
-
var r = e.length === 1 ? _r : xr;
|
|
3795
|
-
return at(e, this, r, t.cache.create(), t.serializer);
|
|
3825
|
+
return e != null && e.captureLocation || ee(r.val), r.val;
|
|
3796
3826
|
}
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
function Pi(e, t) {
|
|
3801
|
-
return at(e, this, _r, t.cache.create(), t.serializer);
|
|
3802
|
-
}
|
|
3803
|
-
var Li = function() {
|
|
3804
|
-
return JSON.stringify(arguments);
|
|
3805
|
-
};
|
|
3806
|
-
function ut() {
|
|
3807
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
3808
|
-
}
|
|
3809
|
-
ut.prototype.get = function(e) {
|
|
3810
|
-
return this.cache[e];
|
|
3811
|
-
};
|
|
3812
|
-
ut.prototype.set = function(e, t) {
|
|
3813
|
-
this.cache[e] = t;
|
|
3814
|
-
};
|
|
3815
|
-
var Oi = {
|
|
3816
|
-
create: function() {
|
|
3817
|
-
return new ut();
|
|
3818
|
-
}
|
|
3819
|
-
}, De = {
|
|
3820
|
-
variadic: Ai,
|
|
3821
|
-
monadic: Pi
|
|
3822
|
-
}, Y;
|
|
3823
|
-
(function(e) {
|
|
3824
|
-
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3827
|
+
var Y;
|
|
3828
|
+
(function(t) {
|
|
3829
|
+
t.MISSING_VALUE = "MISSING_VALUE", t.INVALID_VALUE = "INVALID_VALUE", t.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3825
3830
|
})(Y || (Y = {}));
|
|
3826
|
-
var
|
|
3831
|
+
var Ct = (
|
|
3827
3832
|
/** @class */
|
|
3828
|
-
function(
|
|
3829
|
-
G(
|
|
3830
|
-
function
|
|
3831
|
-
var o =
|
|
3833
|
+
function(t) {
|
|
3834
|
+
G(e, t);
|
|
3835
|
+
function e(r, n, i) {
|
|
3836
|
+
var o = t.call(this, r) || this;
|
|
3832
3837
|
return o.code = n, o.originalMessage = i, o;
|
|
3833
3838
|
}
|
|
3834
|
-
return
|
|
3839
|
+
return e.prototype.toString = function() {
|
|
3835
3840
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3836
|
-
},
|
|
3841
|
+
}, e;
|
|
3837
3842
|
}(Error)
|
|
3838
|
-
),
|
|
3843
|
+
), Me = (
|
|
3839
3844
|
/** @class */
|
|
3840
|
-
function(
|
|
3841
|
-
G(
|
|
3842
|
-
function
|
|
3843
|
-
return
|
|
3845
|
+
function(t) {
|
|
3846
|
+
G(e, t);
|
|
3847
|
+
function e(r, n, i, o) {
|
|
3848
|
+
return t.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Y.INVALID_VALUE, o) || this;
|
|
3844
3849
|
}
|
|
3845
|
-
return
|
|
3846
|
-
}(
|
|
3850
|
+
return e;
|
|
3851
|
+
}(Ct)
|
|
3847
3852
|
), Ii = (
|
|
3848
3853
|
/** @class */
|
|
3849
|
-
function(
|
|
3850
|
-
G(
|
|
3851
|
-
function
|
|
3852
|
-
return
|
|
3854
|
+
function(t) {
|
|
3855
|
+
G(e, t);
|
|
3856
|
+
function e(r, n, i) {
|
|
3857
|
+
return t.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Y.INVALID_VALUE, i) || this;
|
|
3853
3858
|
}
|
|
3854
|
-
return
|
|
3855
|
-
}(
|
|
3859
|
+
return e;
|
|
3860
|
+
}(Ct)
|
|
3856
3861
|
), Mi = (
|
|
3857
3862
|
/** @class */
|
|
3858
|
-
function(
|
|
3859
|
-
G(
|
|
3860
|
-
function
|
|
3861
|
-
return
|
|
3863
|
+
function(t) {
|
|
3864
|
+
G(e, t);
|
|
3865
|
+
function e(r, n) {
|
|
3866
|
+
return t.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Y.MISSING_VALUE, n) || this;
|
|
3862
3867
|
}
|
|
3863
|
-
return
|
|
3864
|
-
}(
|
|
3868
|
+
return e;
|
|
3869
|
+
}(Ct)
|
|
3865
3870
|
), A;
|
|
3866
|
-
(function(
|
|
3867
|
-
|
|
3871
|
+
(function(t) {
|
|
3872
|
+
t[t.literal = 0] = "literal", t[t.object = 1] = "object";
|
|
3868
3873
|
})(A || (A = {}));
|
|
3869
|
-
function Ni(
|
|
3870
|
-
return
|
|
3871
|
-
var n =
|
|
3872
|
-
return !n || n.type !== A.literal || r.type !== A.literal ?
|
|
3874
|
+
function Ni(t) {
|
|
3875
|
+
return t.length < 2 ? t : t.reduce(function(e, r) {
|
|
3876
|
+
var n = e[e.length - 1];
|
|
3877
|
+
return !n || n.type !== A.literal || r.type !== A.literal ? e.push(r) : n.value += r.value, e;
|
|
3873
3878
|
}, []);
|
|
3874
3879
|
}
|
|
3875
|
-
function $i(
|
|
3876
|
-
return typeof
|
|
3880
|
+
function $i(t) {
|
|
3881
|
+
return typeof t == "function";
|
|
3877
3882
|
}
|
|
3878
|
-
function
|
|
3879
|
-
if (
|
|
3883
|
+
function gt(t, e, r, n, i, o, a) {
|
|
3884
|
+
if (t.length === 1 && Ce(t[0]))
|
|
3880
3885
|
return [
|
|
3881
3886
|
{
|
|
3882
3887
|
type: A.literal,
|
|
3883
|
-
value:
|
|
3888
|
+
value: t[0].value
|
|
3884
3889
|
}
|
|
3885
3890
|
];
|
|
3886
|
-
for (var s = [], l = 0, u =
|
|
3891
|
+
for (var s = [], l = 0, u = t; l < u.length; l++) {
|
|
3887
3892
|
var h = u[l];
|
|
3888
|
-
if (
|
|
3893
|
+
if (Ce(h)) {
|
|
3889
3894
|
s.push({
|
|
3890
3895
|
type: A.literal,
|
|
3891
3896
|
value: h.value
|
|
3892
3897
|
});
|
|
3893
3898
|
continue;
|
|
3894
3899
|
}
|
|
3895
|
-
if (
|
|
3900
|
+
if (ii(h)) {
|
|
3896
3901
|
typeof o == "number" && s.push({
|
|
3897
3902
|
type: A.literal,
|
|
3898
|
-
value: r.getNumberFormat(
|
|
3903
|
+
value: r.getNumberFormat(e).format(o)
|
|
3899
3904
|
});
|
|
3900
3905
|
continue;
|
|
3901
3906
|
}
|
|
@@ -3903,42 +3908,42 @@ function ge(e, t, r, n, i, o, a) {
|
|
|
3903
3908
|
if (!(i && c in i))
|
|
3904
3909
|
throw new Mi(c, a);
|
|
3905
3910
|
var f = i[c];
|
|
3906
|
-
if (
|
|
3911
|
+
if (ni(h)) {
|
|
3907
3912
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3908
3913
|
type: typeof f == "string" ? A.literal : A.object,
|
|
3909
3914
|
value: f
|
|
3910
3915
|
});
|
|
3911
3916
|
continue;
|
|
3912
3917
|
}
|
|
3913
|
-
if (
|
|
3914
|
-
var p = typeof h.style == "string" ? n.date[h.style] :
|
|
3918
|
+
if (ur(h)) {
|
|
3919
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Jt(h.style) ? h.style.parsedOptions : void 0;
|
|
3915
3920
|
s.push({
|
|
3916
3921
|
type: A.literal,
|
|
3917
|
-
value: r.getDateTimeFormat(
|
|
3922
|
+
value: r.getDateTimeFormat(e, p).format(f)
|
|
3918
3923
|
});
|
|
3919
3924
|
continue;
|
|
3920
3925
|
}
|
|
3921
|
-
if (
|
|
3922
|
-
var p = typeof h.style == "string" ? n.time[h.style] :
|
|
3926
|
+
if (lr(h)) {
|
|
3927
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Jt(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3923
3928
|
s.push({
|
|
3924
3929
|
type: A.literal,
|
|
3925
|
-
value: r.getDateTimeFormat(
|
|
3930
|
+
value: r.getDateTimeFormat(e, p).format(f)
|
|
3926
3931
|
});
|
|
3927
3932
|
continue;
|
|
3928
3933
|
}
|
|
3929
|
-
if (
|
|
3930
|
-
var p = typeof h.style == "string" ? n.number[h.style] :
|
|
3934
|
+
if (ar(h)) {
|
|
3935
|
+
var p = typeof h.style == "string" ? n.number[h.style] : mr(h.style) ? h.style.parsedOptions : void 0;
|
|
3931
3936
|
p && p.scale && (f = f * (p.scale || 1)), s.push({
|
|
3932
3937
|
type: A.literal,
|
|
3933
|
-
value: r.getNumberFormat(
|
|
3938
|
+
value: r.getNumberFormat(e, p).format(f)
|
|
3934
3939
|
});
|
|
3935
3940
|
continue;
|
|
3936
3941
|
}
|
|
3937
|
-
if (
|
|
3942
|
+
if (fr(h)) {
|
|
3938
3943
|
var m = h.children, d = h.value, y = i[d];
|
|
3939
3944
|
if (!$i(y))
|
|
3940
3945
|
throw new Ii(d, "function", a);
|
|
3941
|
-
var T =
|
|
3946
|
+
var T = gt(m, e, r, n, i, o), B = y(T.map(function(w) {
|
|
3942
3947
|
return w.value;
|
|
3943
3948
|
}));
|
|
3944
3949
|
Array.isArray(B) || (B = [B]), s.push.apply(s, B.map(function(w) {
|
|
@@ -3948,93 +3953,94 @@ function ge(e, t, r, n, i, o, a) {
|
|
|
3948
3953
|
};
|
|
3949
3954
|
}));
|
|
3950
3955
|
}
|
|
3951
|
-
if (
|
|
3956
|
+
if (hr(h)) {
|
|
3952
3957
|
var S = h.options[f] || h.options.other;
|
|
3953
3958
|
if (!S)
|
|
3954
|
-
throw new
|
|
3955
|
-
s.push.apply(s,
|
|
3959
|
+
throw new Me(h.value, f, Object.keys(h.options), a);
|
|
3960
|
+
s.push.apply(s, gt(S.value, e, r, n, i));
|
|
3956
3961
|
continue;
|
|
3957
3962
|
}
|
|
3958
|
-
if (
|
|
3963
|
+
if (cr(h)) {
|
|
3959
3964
|
var S = h.options["=".concat(f)];
|
|
3960
3965
|
if (!S) {
|
|
3961
3966
|
if (!Intl.PluralRules)
|
|
3962
|
-
throw new
|
|
3967
|
+
throw new Ct(`Intl.PluralRules is not available in this environment.
|
|
3963
3968
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3964
3969
|
`, Y.MISSING_INTL_API, a);
|
|
3965
|
-
var C = r.getPluralRules(
|
|
3970
|
+
var C = r.getPluralRules(e, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3966
3971
|
S = h.options[C] || h.options.other;
|
|
3967
3972
|
}
|
|
3968
3973
|
if (!S)
|
|
3969
|
-
throw new
|
|
3970
|
-
s.push.apply(s,
|
|
3974
|
+
throw new Me(h.value, f, Object.keys(h.options), a);
|
|
3975
|
+
s.push.apply(s, gt(S.value, e, r, n, i, f - (h.offset || 0)));
|
|
3971
3976
|
continue;
|
|
3972
3977
|
}
|
|
3973
3978
|
}
|
|
3974
3979
|
return Ni(s);
|
|
3975
3980
|
}
|
|
3976
|
-
function Ri(
|
|
3977
|
-
return
|
|
3978
|
-
return r[n] = _(_({},
|
|
3979
|
-
}, {})) :
|
|
3981
|
+
function Ri(t, e) {
|
|
3982
|
+
return e ? _(_(_({}, t || {}), e || {}), Object.keys(t).reduce(function(r, n) {
|
|
3983
|
+
return r[n] = _(_({}, t[n]), e[n] || {}), r;
|
|
3984
|
+
}, {})) : t;
|
|
3980
3985
|
}
|
|
3981
|
-
function Gi(
|
|
3982
|
-
return
|
|
3983
|
-
return r[n] = Ri(
|
|
3984
|
-
}, _({},
|
|
3986
|
+
function Gi(t, e) {
|
|
3987
|
+
return e ? Object.keys(t).reduce(function(r, n) {
|
|
3988
|
+
return r[n] = Ri(t[n], e[n]), r;
|
|
3989
|
+
}, _({}, t)) : t;
|
|
3985
3990
|
}
|
|
3986
|
-
function
|
|
3991
|
+
function Ft(t) {
|
|
3987
3992
|
return {
|
|
3988
3993
|
create: function() {
|
|
3989
3994
|
return {
|
|
3990
|
-
get: function(
|
|
3991
|
-
return e
|
|
3995
|
+
get: function(e) {
|
|
3996
|
+
return t[e];
|
|
3992
3997
|
},
|
|
3993
|
-
set: function(
|
|
3994
|
-
e
|
|
3998
|
+
set: function(e, r) {
|
|
3999
|
+
t[e] = r;
|
|
3995
4000
|
}
|
|
3996
4001
|
};
|
|
3997
4002
|
}
|
|
3998
4003
|
};
|
|
3999
4004
|
}
|
|
4000
|
-
function Ui(
|
|
4001
|
-
return
|
|
4005
|
+
function Ui(t) {
|
|
4006
|
+
return t === void 0 && (t = {
|
|
4002
4007
|
number: {},
|
|
4003
4008
|
dateTime: {},
|
|
4004
4009
|
pluralRules: {}
|
|
4005
4010
|
}), {
|
|
4006
|
-
getNumberFormat:
|
|
4007
|
-
for (var
|
|
4011
|
+
getNumberFormat: Gt(function() {
|
|
4012
|
+
for (var e, r = [], n = 0; n < arguments.length; n++)
|
|
4008
4013
|
r[n] = arguments[n];
|
|
4009
|
-
return new ((
|
|
4014
|
+
return new ((e = Intl.NumberFormat).bind.apply(e, Q([void 0], r, !1)))();
|
|
4010
4015
|
}, {
|
|
4011
|
-
cache:
|
|
4012
|
-
strategy:
|
|
4016
|
+
cache: Ft(t.number),
|
|
4017
|
+
strategy: Ut.variadic
|
|
4013
4018
|
}),
|
|
4014
|
-
getDateTimeFormat:
|
|
4015
|
-
for (var
|
|
4019
|
+
getDateTimeFormat: Gt(function() {
|
|
4020
|
+
for (var e, r = [], n = 0; n < arguments.length; n++)
|
|
4016
4021
|
r[n] = arguments[n];
|
|
4017
|
-
return new ((
|
|
4022
|
+
return new ((e = Intl.DateTimeFormat).bind.apply(e, Q([void 0], r, !1)))();
|
|
4018
4023
|
}, {
|
|
4019
|
-
cache:
|
|
4020
|
-
strategy:
|
|
4024
|
+
cache: Ft(t.dateTime),
|
|
4025
|
+
strategy: Ut.variadic
|
|
4021
4026
|
}),
|
|
4022
|
-
getPluralRules:
|
|
4023
|
-
for (var
|
|
4027
|
+
getPluralRules: Gt(function() {
|
|
4028
|
+
for (var e, r = [], n = 0; n < arguments.length; n++)
|
|
4024
4029
|
r[n] = arguments[n];
|
|
4025
|
-
return new ((
|
|
4030
|
+
return new ((e = Intl.PluralRules).bind.apply(e, Q([void 0], r, !1)))();
|
|
4026
4031
|
}, {
|
|
4027
|
-
cache:
|
|
4028
|
-
strategy:
|
|
4032
|
+
cache: Ft(t.pluralRules),
|
|
4033
|
+
strategy: Ut.variadic
|
|
4029
4034
|
})
|
|
4030
4035
|
};
|
|
4031
4036
|
}
|
|
4032
4037
|
var Di = (
|
|
4033
4038
|
/** @class */
|
|
4034
4039
|
function() {
|
|
4035
|
-
function e
|
|
4040
|
+
function t(e, r, n, i) {
|
|
4041
|
+
r === void 0 && (r = t.defaultLocale);
|
|
4036
4042
|
var o = this;
|
|
4037
|
-
if (
|
|
4043
|
+
if (this.formatterCache = {
|
|
4038
4044
|
number: {},
|
|
4039
4045
|
dateTime: {},
|
|
4040
4046
|
pluralRules: {}
|
|
@@ -4047,7 +4053,7 @@ var Di = (
|
|
|
4047
4053
|
}, []);
|
|
4048
4054
|
return h.length <= 1 ? h[0] || "" : h;
|
|
4049
4055
|
}, this.formatToParts = function(l) {
|
|
4050
|
-
return
|
|
4056
|
+
return gt(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
4051
4057
|
}, this.resolvedOptions = function() {
|
|
4052
4058
|
var l;
|
|
4053
4059
|
return {
|
|
@@ -4055,31 +4061,31 @@ var Di = (
|
|
|
4055
4061
|
};
|
|
4056
4062
|
}, this.getAst = function() {
|
|
4057
4063
|
return o.ast;
|
|
4058
|
-
}, this.locales = r, this.resolvedLocale =
|
|
4059
|
-
if (this.message =
|
|
4064
|
+
}, this.locales = r, this.resolvedLocale = t.resolveLocale(r), typeof e == "string") {
|
|
4065
|
+
if (this.message = e, !t.__parse)
|
|
4060
4066
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
4061
4067
|
var a = i || {};
|
|
4062
4068
|
a.formatters;
|
|
4063
|
-
var s =
|
|
4064
|
-
this.ast =
|
|
4069
|
+
var s = vn(a, ["formatters"]);
|
|
4070
|
+
this.ast = t.__parse(e, _(_({}, s), { locale: this.resolvedLocale }));
|
|
4065
4071
|
} else
|
|
4066
|
-
this.ast =
|
|
4072
|
+
this.ast = e;
|
|
4067
4073
|
if (!Array.isArray(this.ast))
|
|
4068
4074
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
4069
|
-
this.formats = Gi(
|
|
4075
|
+
this.formats = Gi(t.formats, n), this.formatters = i && i.formatters || Ui(this.formatterCache);
|
|
4070
4076
|
}
|
|
4071
|
-
return Object.defineProperty(
|
|
4077
|
+
return Object.defineProperty(t, "defaultLocale", {
|
|
4072
4078
|
get: function() {
|
|
4073
|
-
return
|
|
4079
|
+
return t.memoizedDefaultLocale || (t.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), t.memoizedDefaultLocale;
|
|
4074
4080
|
},
|
|
4075
4081
|
enumerable: !1,
|
|
4076
4082
|
configurable: !0
|
|
4077
|
-
}),
|
|
4083
|
+
}), t.memoizedDefaultLocale = null, t.resolveLocale = function(e) {
|
|
4078
4084
|
if (typeof Intl.Locale != "undefined") {
|
|
4079
|
-
var r = Intl.NumberFormat.supportedLocalesOf(
|
|
4080
|
-
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof
|
|
4085
|
+
var r = Intl.NumberFormat.supportedLocalesOf(e);
|
|
4086
|
+
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof e == "string" ? e : e[0]);
|
|
4081
4087
|
}
|
|
4082
|
-
},
|
|
4088
|
+
}, t.__parse = Oi, t.formats = {
|
|
4083
4089
|
number: {
|
|
4084
4090
|
integer: {
|
|
4085
4091
|
maximumFractionDigits: 0
|
|
@@ -4137,16 +4143,16 @@ var Di = (
|
|
|
4137
4143
|
timeZoneName: "short"
|
|
4138
4144
|
}
|
|
4139
4145
|
}
|
|
4140
|
-
},
|
|
4146
|
+
}, t;
|
|
4141
4147
|
}()
|
|
4142
4148
|
);
|
|
4143
|
-
function Fi(
|
|
4144
|
-
if (
|
|
4149
|
+
function Fi(t, e) {
|
|
4150
|
+
if (e == null)
|
|
4145
4151
|
return;
|
|
4146
|
-
if (
|
|
4147
|
-
return e
|
|
4148
|
-
const r =
|
|
4149
|
-
let n =
|
|
4152
|
+
if (e in t)
|
|
4153
|
+
return t[e];
|
|
4154
|
+
const r = e.split(".");
|
|
4155
|
+
let n = t;
|
|
4150
4156
|
for (let i = 0; i < r.length; i++)
|
|
4151
4157
|
if (typeof n == "object") {
|
|
4152
4158
|
if (i > 0) {
|
|
@@ -4161,90 +4167,90 @@ function Fi(e, t) {
|
|
|
4161
4167
|
n = void 0;
|
|
4162
4168
|
return n;
|
|
4163
4169
|
}
|
|
4164
|
-
const D = {}, ji = (
|
|
4165
|
-
if (
|
|
4170
|
+
const D = {}, ji = (t, e, r) => r && (e in D || (D[e] = {}), t in D[e] || (D[e][t] = r), r), xr = (t, e) => {
|
|
4171
|
+
if (e == null)
|
|
4166
4172
|
return;
|
|
4167
|
-
if (
|
|
4168
|
-
return D[
|
|
4169
|
-
const r =
|
|
4173
|
+
if (e in D && t in D[e])
|
|
4174
|
+
return D[e][t];
|
|
4175
|
+
const r = Bt(e);
|
|
4170
4176
|
for (let n = 0; n < r.length; n++) {
|
|
4171
|
-
const i = r[n], o = Vi(i,
|
|
4177
|
+
const i = r[n], o = Vi(i, t);
|
|
4172
4178
|
if (o)
|
|
4173
|
-
return ji(
|
|
4179
|
+
return ji(t, e, o);
|
|
4174
4180
|
}
|
|
4175
4181
|
};
|
|
4176
|
-
let
|
|
4177
|
-
const
|
|
4178
|
-
function ki(
|
|
4179
|
-
return
|
|
4182
|
+
let le;
|
|
4183
|
+
const ct = Ht({});
|
|
4184
|
+
function ki(t) {
|
|
4185
|
+
return le[t] || null;
|
|
4180
4186
|
}
|
|
4181
|
-
function
|
|
4182
|
-
return
|
|
4187
|
+
function Er(t) {
|
|
4188
|
+
return t in le;
|
|
4183
4189
|
}
|
|
4184
|
-
function Vi(
|
|
4185
|
-
if (!
|
|
4190
|
+
function Vi(t, e) {
|
|
4191
|
+
if (!Er(t))
|
|
4186
4192
|
return null;
|
|
4187
|
-
const r = ki(
|
|
4188
|
-
return Fi(r,
|
|
4193
|
+
const r = ki(t);
|
|
4194
|
+
return Fi(r, e);
|
|
4189
4195
|
}
|
|
4190
|
-
function Xi(
|
|
4191
|
-
if (
|
|
4196
|
+
function Xi(t) {
|
|
4197
|
+
if (t == null)
|
|
4192
4198
|
return;
|
|
4193
|
-
const
|
|
4194
|
-
for (let r = 0; r <
|
|
4195
|
-
const n =
|
|
4196
|
-
if (
|
|
4199
|
+
const e = Bt(t);
|
|
4200
|
+
for (let r = 0; r < e.length; r++) {
|
|
4201
|
+
const n = e[r];
|
|
4202
|
+
if (Er(n))
|
|
4197
4203
|
return n;
|
|
4198
4204
|
}
|
|
4199
4205
|
}
|
|
4200
|
-
function
|
|
4201
|
-
delete D[
|
|
4206
|
+
function wr(t, ...e) {
|
|
4207
|
+
delete D[t], ct.update((r) => (r[t] = Jn.all([r[t] || {}, ...e]), r));
|
|
4202
4208
|
}
|
|
4203
|
-
|
|
4204
|
-
[
|
|
4205
|
-
([
|
|
4209
|
+
tt(
|
|
4210
|
+
[ct],
|
|
4211
|
+
([t]) => Object.keys(t)
|
|
4206
4212
|
);
|
|
4207
|
-
|
|
4208
|
-
const
|
|
4209
|
-
function zi(
|
|
4210
|
-
|
|
4211
|
-
}
|
|
4212
|
-
function
|
|
4213
|
-
return
|
|
4214
|
-
}
|
|
4215
|
-
function Wi(
|
|
4216
|
-
return
|
|
4217
|
-
const r =
|
|
4218
|
-
return [
|
|
4219
|
-
}).filter(([,
|
|
4220
|
-
}
|
|
4221
|
-
function
|
|
4222
|
-
return
|
|
4223
|
-
(
|
|
4213
|
+
ct.subscribe((t) => le = t);
|
|
4214
|
+
const yt = {};
|
|
4215
|
+
function zi(t, e) {
|
|
4216
|
+
yt[t].delete(e), yt[t].size === 0 && delete yt[t];
|
|
4217
|
+
}
|
|
4218
|
+
function Sr(t) {
|
|
4219
|
+
return yt[t];
|
|
4220
|
+
}
|
|
4221
|
+
function Wi(t) {
|
|
4222
|
+
return Bt(t).map((e) => {
|
|
4223
|
+
const r = Sr(e);
|
|
4224
|
+
return [e, r ? [...r] : []];
|
|
4225
|
+
}).filter(([, e]) => e.length > 0);
|
|
4226
|
+
}
|
|
4227
|
+
function re(t) {
|
|
4228
|
+
return t == null ? !1 : Bt(t).some(
|
|
4229
|
+
(e) => {
|
|
4224
4230
|
var r;
|
|
4225
|
-
return (r =
|
|
4231
|
+
return (r = Sr(e)) == null ? void 0 : r.size;
|
|
4226
4232
|
}
|
|
4227
4233
|
);
|
|
4228
4234
|
}
|
|
4229
|
-
function Zi(
|
|
4235
|
+
function Zi(t, e) {
|
|
4230
4236
|
return Promise.all(
|
|
4231
|
-
|
|
4232
|
-
).then((n) =>
|
|
4233
|
-
}
|
|
4234
|
-
const
|
|
4235
|
-
function
|
|
4236
|
-
if (!
|
|
4237
|
-
return
|
|
4238
|
-
const
|
|
4239
|
-
return
|
|
4240
|
-
|
|
4237
|
+
e.map((n) => (zi(t, n), n().then((i) => i.default || i)))
|
|
4238
|
+
).then((n) => wr(t, ...n));
|
|
4239
|
+
}
|
|
4240
|
+
const it = {};
|
|
4241
|
+
function Tr(t) {
|
|
4242
|
+
if (!re(t))
|
|
4243
|
+
return t in it ? it[t] : Promise.resolve();
|
|
4244
|
+
const e = Wi(t);
|
|
4245
|
+
return it[t] = Promise.all(
|
|
4246
|
+
e.map(
|
|
4241
4247
|
([r, n]) => Zi(r, n)
|
|
4242
4248
|
)
|
|
4243
4249
|
).then(() => {
|
|
4244
|
-
if (
|
|
4245
|
-
return
|
|
4246
|
-
delete
|
|
4247
|
-
}),
|
|
4250
|
+
if (re(t))
|
|
4251
|
+
return Tr(t);
|
|
4252
|
+
delete it[t];
|
|
4253
|
+
}), it[t];
|
|
4248
4254
|
}
|
|
4249
4255
|
const Qi = {
|
|
4250
4256
|
number: {
|
|
@@ -4275,138 +4281,138 @@ const Qi = {
|
|
|
4275
4281
|
timeZoneName: "short"
|
|
4276
4282
|
}
|
|
4277
4283
|
}
|
|
4278
|
-
},
|
|
4284
|
+
}, Ji = {
|
|
4279
4285
|
fallbackLocale: null,
|
|
4280
4286
|
loadingDelay: 200,
|
|
4281
4287
|
formats: Qi,
|
|
4282
4288
|
warnOnMissingMessages: !0,
|
|
4283
4289
|
handleMissingMessage: void 0,
|
|
4284
4290
|
ignoreTag: !0
|
|
4285
|
-
},
|
|
4291
|
+
}, qi = Ji;
|
|
4286
4292
|
function K() {
|
|
4287
|
-
return
|
|
4288
|
-
}
|
|
4289
|
-
const
|
|
4290
|
-
var Yi = Object.defineProperty, Ki = Object.defineProperties,
|
|
4291
|
-
for (var r in
|
|
4292
|
-
|
|
4293
|
-
if (
|
|
4294
|
-
for (var r of
|
|
4295
|
-
ro.call(
|
|
4296
|
-
return
|
|
4297
|
-
}, io = (
|
|
4298
|
-
let
|
|
4299
|
-
const
|
|
4300
|
-
function
|
|
4301
|
-
return
|
|
4293
|
+
return qi;
|
|
4294
|
+
}
|
|
4295
|
+
const jt = Ht(!1);
|
|
4296
|
+
var Yi = Object.defineProperty, Ki = Object.defineProperties, to = Object.getOwnPropertyDescriptors, Ne = Object.getOwnPropertySymbols, eo = Object.prototype.hasOwnProperty, ro = Object.prototype.propertyIsEnumerable, $e = (t, e, r) => e in t ? Yi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, no = (t, e) => {
|
|
4297
|
+
for (var r in e || (e = {}))
|
|
4298
|
+
eo.call(e, r) && $e(t, r, e[r]);
|
|
4299
|
+
if (Ne)
|
|
4300
|
+
for (var r of Ne(e))
|
|
4301
|
+
ro.call(e, r) && $e(t, r, e[r]);
|
|
4302
|
+
return t;
|
|
4303
|
+
}, io = (t, e) => Ki(t, to(e));
|
|
4304
|
+
let ne;
|
|
4305
|
+
const Et = Ht(null);
|
|
4306
|
+
function Re(t) {
|
|
4307
|
+
return t.split("-").map((e, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4302
4308
|
}
|
|
4303
|
-
function
|
|
4304
|
-
const r =
|
|
4305
|
-
return
|
|
4309
|
+
function Bt(t, e = K().fallbackLocale) {
|
|
4310
|
+
const r = Re(t);
|
|
4311
|
+
return e ? [.../* @__PURE__ */ new Set([...r, ...Re(e)])] : r;
|
|
4306
4312
|
}
|
|
4307
4313
|
function j() {
|
|
4308
|
-
return
|
|
4314
|
+
return ne != null ? ne : void 0;
|
|
4309
4315
|
}
|
|
4310
|
-
|
|
4311
|
-
|
|
4316
|
+
Et.subscribe((t) => {
|
|
4317
|
+
ne = t != null ? t : void 0, typeof window != "undefined" && t != null && document.documentElement.setAttribute("lang", t);
|
|
4312
4318
|
});
|
|
4313
|
-
const oo = (
|
|
4314
|
-
if (
|
|
4315
|
-
const { loadingDelay:
|
|
4319
|
+
const oo = (t) => {
|
|
4320
|
+
if (t && Xi(t) && re(t)) {
|
|
4321
|
+
const { loadingDelay: e } = K();
|
|
4316
4322
|
let r;
|
|
4317
|
-
return typeof window != "undefined" && j() != null &&
|
|
4318
|
-
() =>
|
|
4319
|
-
|
|
4320
|
-
) :
|
|
4321
|
-
|
|
4323
|
+
return typeof window != "undefined" && j() != null && e ? r = window.setTimeout(
|
|
4324
|
+
() => jt.set(!0),
|
|
4325
|
+
e
|
|
4326
|
+
) : jt.set(!0), Tr(t).then(() => {
|
|
4327
|
+
Et.set(t);
|
|
4322
4328
|
}).finally(() => {
|
|
4323
|
-
clearTimeout(r),
|
|
4329
|
+
clearTimeout(r), jt.set(!1);
|
|
4324
4330
|
});
|
|
4325
4331
|
}
|
|
4326
|
-
return
|
|
4327
|
-
},
|
|
4332
|
+
return Et.set(t);
|
|
4333
|
+
}, et = io(no({}, Et), {
|
|
4328
4334
|
set: oo
|
|
4329
|
-
}),
|
|
4330
|
-
const
|
|
4335
|
+
}), At = (t) => {
|
|
4336
|
+
const e = /* @__PURE__ */ Object.create(null);
|
|
4331
4337
|
return (n) => {
|
|
4332
4338
|
const i = JSON.stringify(n);
|
|
4333
|
-
return i in
|
|
4339
|
+
return i in e ? e[i] : e[i] = t(n);
|
|
4334
4340
|
};
|
|
4335
4341
|
};
|
|
4336
|
-
var so = Object.defineProperty,
|
|
4337
|
-
for (var r in
|
|
4338
|
-
|
|
4339
|
-
if (
|
|
4340
|
-
for (var r of
|
|
4341
|
-
|
|
4342
|
-
return
|
|
4343
|
-
},
|
|
4342
|
+
var so = Object.defineProperty, wt = Object.getOwnPropertySymbols, Hr = Object.prototype.hasOwnProperty, Cr = Object.prototype.propertyIsEnumerable, Ge = (t, e, r) => e in t ? so(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, he = (t, e) => {
|
|
4343
|
+
for (var r in e || (e = {}))
|
|
4344
|
+
Hr.call(e, r) && Ge(t, r, e[r]);
|
|
4345
|
+
if (wt)
|
|
4346
|
+
for (var r of wt(e))
|
|
4347
|
+
Cr.call(e, r) && Ge(t, r, e[r]);
|
|
4348
|
+
return t;
|
|
4349
|
+
}, rt = (t, e) => {
|
|
4344
4350
|
var r = {};
|
|
4345
|
-
for (var n in
|
|
4346
|
-
|
|
4347
|
-
if (
|
|
4348
|
-
for (var n of
|
|
4349
|
-
|
|
4351
|
+
for (var n in t)
|
|
4352
|
+
Hr.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]);
|
|
4353
|
+
if (t != null && wt)
|
|
4354
|
+
for (var n of wt(t))
|
|
4355
|
+
e.indexOf(n) < 0 && Cr.call(t, n) && (r[n] = t[n]);
|
|
4350
4356
|
return r;
|
|
4351
4357
|
};
|
|
4352
|
-
const
|
|
4358
|
+
const lt = (t, e) => {
|
|
4353
4359
|
const { formats: r } = K();
|
|
4354
|
-
if (
|
|
4355
|
-
return r[
|
|
4356
|
-
throw new Error(`[svelte-i18n] Unknown "${
|
|
4357
|
-
}, ao =
|
|
4358
|
-
(
|
|
4359
|
-
var
|
|
4360
|
+
if (t in r && e in r[t])
|
|
4361
|
+
return r[t][e];
|
|
4362
|
+
throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`);
|
|
4363
|
+
}, ao = At(
|
|
4364
|
+
(t) => {
|
|
4365
|
+
var e = t, { locale: r, format: n } = e, i = rt(e, ["locale", "format"]);
|
|
4360
4366
|
if (r == null)
|
|
4361
4367
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4362
|
-
return n && (i =
|
|
4368
|
+
return n && (i = lt("number", n)), new Intl.NumberFormat(r, i);
|
|
4363
4369
|
}
|
|
4364
|
-
), uo =
|
|
4365
|
-
(
|
|
4366
|
-
var
|
|
4370
|
+
), uo = At(
|
|
4371
|
+
(t) => {
|
|
4372
|
+
var e = t, { locale: r, format: n } = e, i = rt(e, ["locale", "format"]);
|
|
4367
4373
|
if (r == null)
|
|
4368
4374
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4369
|
-
return n ? i =
|
|
4375
|
+
return n ? i = lt("date", n) : Object.keys(i).length === 0 && (i = lt("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4370
4376
|
}
|
|
4371
|
-
), lo =
|
|
4372
|
-
(
|
|
4373
|
-
var
|
|
4377
|
+
), lo = At(
|
|
4378
|
+
(t) => {
|
|
4379
|
+
var e = t, { locale: r, format: n } = e, i = rt(e, ["locale", "format"]);
|
|
4374
4380
|
if (r == null)
|
|
4375
4381
|
throw new Error(
|
|
4376
4382
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4377
4383
|
);
|
|
4378
|
-
return n ? i =
|
|
4384
|
+
return n ? i = lt("time", n) : Object.keys(i).length === 0 && (i = lt("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4379
4385
|
}
|
|
4380
|
-
), ho = (
|
|
4381
|
-
var
|
|
4386
|
+
), ho = (t = {}) => {
|
|
4387
|
+
var e = t, {
|
|
4382
4388
|
locale: r = j()
|
|
4383
|
-
} =
|
|
4389
|
+
} = e, n = rt(e, [
|
|
4384
4390
|
"locale"
|
|
4385
4391
|
]);
|
|
4386
|
-
return ao(
|
|
4387
|
-
}, co = (
|
|
4388
|
-
var
|
|
4392
|
+
return ao(he({ locale: r }, n));
|
|
4393
|
+
}, co = (t = {}) => {
|
|
4394
|
+
var e = t, {
|
|
4389
4395
|
locale: r = j()
|
|
4390
|
-
} =
|
|
4396
|
+
} = e, n = rt(e, [
|
|
4391
4397
|
"locale"
|
|
4392
4398
|
]);
|
|
4393
|
-
return uo(
|
|
4394
|
-
}, fo = (
|
|
4395
|
-
var
|
|
4399
|
+
return uo(he({ locale: r }, n));
|
|
4400
|
+
}, fo = (t = {}) => {
|
|
4401
|
+
var e = t, {
|
|
4396
4402
|
locale: r = j()
|
|
4397
|
-
} =
|
|
4403
|
+
} = e, n = rt(e, [
|
|
4398
4404
|
"locale"
|
|
4399
4405
|
]);
|
|
4400
|
-
return lo(
|
|
4401
|
-
}, mo =
|
|
4406
|
+
return lo(he({ locale: r }, n));
|
|
4407
|
+
}, mo = At(
|
|
4402
4408
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4403
|
-
(
|
|
4409
|
+
(t, e = j()) => new Di(t, e, K().formats, {
|
|
4404
4410
|
ignoreTag: K().ignoreTag
|
|
4405
4411
|
})
|
|
4406
|
-
), po = (
|
|
4412
|
+
), po = (t, e = {}) => {
|
|
4407
4413
|
var r, n, i, o;
|
|
4408
|
-
let a =
|
|
4409
|
-
typeof
|
|
4414
|
+
let a = e;
|
|
4415
|
+
typeof t == "object" && (a = t, t = a.id);
|
|
4410
4416
|
const {
|
|
4411
4417
|
values: s,
|
|
4412
4418
|
locale: l = j(),
|
|
@@ -4416,12 +4422,12 @@ const le = (e, t) => {
|
|
|
4416
4422
|
throw new Error(
|
|
4417
4423
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4418
4424
|
);
|
|
4419
|
-
let h =
|
|
4425
|
+
let h = xr(t, l);
|
|
4420
4426
|
if (!h)
|
|
4421
|
-
h = (o = (i = (n = (r = K()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id:
|
|
4427
|
+
h = (o = (i = (n = (r = K()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: t, defaultValue: u })) != null ? i : u) != null ? o : t;
|
|
4422
4428
|
else if (typeof h != "string")
|
|
4423
4429
|
return console.warn(
|
|
4424
|
-
`[svelte-i18n] Message with id "${
|
|
4430
|
+
`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4425
4431
|
), h;
|
|
4426
4432
|
if (!s)
|
|
4427
4433
|
return h;
|
|
@@ -4430,25 +4436,25 @@ const le = (e, t) => {
|
|
|
4430
4436
|
c = mo(h, l).format(s);
|
|
4431
4437
|
} catch (f) {
|
|
4432
4438
|
f instanceof Error && console.warn(
|
|
4433
|
-
`[svelte-i18n] Message "${
|
|
4439
|
+
`[svelte-i18n] Message "${t}" has syntax error:`,
|
|
4434
4440
|
f.message
|
|
4435
4441
|
);
|
|
4436
4442
|
}
|
|
4437
4443
|
return c;
|
|
4438
|
-
}, bo = (
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4444
|
+
}, bo = (t, e) => fo(e).format(t), go = (t, e) => co(e).format(t), yo = (t, e) => ho(e).format(t), vo = (t, e = j()) => xr(t, e), _o = tt([et, ct], () => po);
|
|
4445
|
+
tt([et], () => bo);
|
|
4446
|
+
tt([et], () => go);
|
|
4447
|
+
tt([et], () => yo);
|
|
4448
|
+
tt([et, ct], () => vo);
|
|
4443
4449
|
window.emWidgets = { topic: In };
|
|
4444
|
-
const xo = (
|
|
4445
|
-
function
|
|
4446
|
-
|
|
4450
|
+
const xo = (t) => t.toLowerCase().match(/android/i) ? "Android" : t.toLowerCase().match(/iphone/i) ? "iPhone" : t.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4451
|
+
function Ue(t, e) {
|
|
4452
|
+
wr(t, e);
|
|
4447
4453
|
}
|
|
4448
|
-
function Eo(
|
|
4449
|
-
|
|
4454
|
+
function Eo(t) {
|
|
4455
|
+
et.set(t);
|
|
4450
4456
|
}
|
|
4451
|
-
const
|
|
4457
|
+
const De = {
|
|
4452
4458
|
en: {
|
|
4453
4459
|
cancel: "Cancel",
|
|
4454
4460
|
confirm: "Confirm"
|
|
@@ -4490,131 +4496,131 @@ const Dt = {
|
|
|
4490
4496
|
confirm: "Onaylamak"
|
|
4491
4497
|
}
|
|
4492
4498
|
};
|
|
4493
|
-
function wo(
|
|
4494
|
-
|
|
4499
|
+
function wo(t) {
|
|
4500
|
+
Wr(t, "svelte-1pkvhrt", '*,*::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, 20px)}.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, 20px)}.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, 50px);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, 50px);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}');
|
|
4495
4501
|
}
|
|
4496
|
-
const So = (
|
|
4497
|
-
function To(
|
|
4498
|
-
let
|
|
4502
|
+
const So = (t) => ({}), Fe = (t) => ({});
|
|
4503
|
+
function To(t) {
|
|
4504
|
+
let e, r;
|
|
4499
4505
|
return {
|
|
4500
4506
|
c() {
|
|
4501
|
-
|
|
4507
|
+
e = be("svg"), r = be("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(e, "class", "w-6 h-6"), H(e, "fill", "none"), H(e, "stroke", "currentColor"), H(e, "viewBox", "0 0 24 24"), H(e, "xmlns", "http://www.w3.org/2000/svg");
|
|
4502
4508
|
},
|
|
4503
4509
|
m(n, i) {
|
|
4504
|
-
|
|
4510
|
+
se(n, e, i), P(e, r);
|
|
4505
4511
|
},
|
|
4506
4512
|
p: I,
|
|
4507
4513
|
d(n) {
|
|
4508
|
-
n &&
|
|
4514
|
+
n && ht(e);
|
|
4509
4515
|
}
|
|
4510
4516
|
};
|
|
4511
4517
|
}
|
|
4512
|
-
function Ho(
|
|
4513
|
-
let
|
|
4518
|
+
function Ho(t) {
|
|
4519
|
+
let e, r, n, i, o, a, s, l, u, h = (
|
|
4514
4520
|
/*$_*/
|
|
4515
|
-
|
|
4521
|
+
t[2]("cancel") + ""
|
|
4516
4522
|
), c, f, p, m = (
|
|
4517
4523
|
/*$_*/
|
|
4518
|
-
|
|
4524
|
+
t[2]("confirm") + ""
|
|
4519
4525
|
), d, y, T, B;
|
|
4520
4526
|
const S = (
|
|
4521
4527
|
/*#slots*/
|
|
4522
|
-
|
|
4523
|
-
), C =
|
|
4528
|
+
t[13].close
|
|
4529
|
+
), C = Fr(
|
|
4524
4530
|
S,
|
|
4525
|
-
|
|
4531
|
+
t,
|
|
4526
4532
|
/*$$scope*/
|
|
4527
|
-
|
|
4528
|
-
|
|
4533
|
+
t[12],
|
|
4534
|
+
Fe
|
|
4529
4535
|
), w = C || To();
|
|
4530
4536
|
return {
|
|
4531
4537
|
c() {
|
|
4532
|
-
|
|
4538
|
+
e = M("div"), r = M("div"), n = M("span"), w && w.c(), i = Lt(), o = M("div"), a = ot(
|
|
4533
4539
|
/*modaltext*/
|
|
4534
|
-
|
|
4535
|
-
), s =
|
|
4536
|
-
(
|
|
4537
|
-
(
|
|
4538
|
-
(
|
|
4540
|
+
t[0]
|
|
4541
|
+
), s = Lt(), l = M("div"), u = M("button"), c = ot(h), f = Lt(), p = M("button"), d = ot(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*/
|
|
4542
|
+
(t[3] ? "GamingLimitsConfirmationControlAreaMobile" : "")), H(r, "class", "GamingLimitsConfirmationContainer " + /*isMobile*/
|
|
4543
|
+
(t[3] ? "GamingLimitsConfirmationContainerMobile" : "")), H(e, "class", "GamingLimitsConfirmationWrapper " + /*isMobile*/
|
|
4544
|
+
(t[3] ? "GamingLimitsConfirmationMobileWrapper" : ""));
|
|
4539
4545
|
},
|
|
4540
4546
|
m(x, L) {
|
|
4541
|
-
|
|
4542
|
-
|
|
4547
|
+
se(x, e, L), P(e, r), P(r, n), w && w.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), t[14](e), y = !0, T || (B = [
|
|
4548
|
+
Ot(
|
|
4543
4549
|
n,
|
|
4544
4550
|
"click",
|
|
4545
4551
|
/*close*/
|
|
4546
|
-
|
|
4552
|
+
t[4]
|
|
4547
4553
|
),
|
|
4548
|
-
|
|
4554
|
+
Ot(
|
|
4549
4555
|
u,
|
|
4550
4556
|
"click",
|
|
4551
4557
|
/*cancelChanges*/
|
|
4552
|
-
|
|
4558
|
+
t[6]
|
|
4553
4559
|
),
|
|
4554
|
-
|
|
4560
|
+
Ot(
|
|
4555
4561
|
p,
|
|
4556
4562
|
"click",
|
|
4557
4563
|
/*confirmChanges*/
|
|
4558
|
-
|
|
4564
|
+
t[5]
|
|
4559
4565
|
)
|
|
4560
4566
|
], T = !0);
|
|
4561
4567
|
},
|
|
4562
4568
|
p(x, [L]) {
|
|
4563
4569
|
C && C.p && (!y || L & /*$$scope*/
|
|
4564
|
-
4096) &&
|
|
4570
|
+
4096) && kr(
|
|
4565
4571
|
C,
|
|
4566
4572
|
S,
|
|
4567
4573
|
x,
|
|
4568
4574
|
/*$$scope*/
|
|
4569
4575
|
x[12],
|
|
4570
|
-
y ?
|
|
4576
|
+
y ? jr(
|
|
4571
4577
|
S,
|
|
4572
4578
|
/*$$scope*/
|
|
4573
4579
|
x[12],
|
|
4574
4580
|
L,
|
|
4575
4581
|
So
|
|
4576
|
-
) :
|
|
4582
|
+
) : Vr(
|
|
4577
4583
|
/*$$scope*/
|
|
4578
4584
|
x[12]
|
|
4579
4585
|
),
|
|
4580
|
-
|
|
4586
|
+
Fe
|
|
4581
4587
|
), (!y || L & /*modaltext*/
|
|
4582
|
-
1) &&
|
|
4588
|
+
1) && It(
|
|
4583
4589
|
a,
|
|
4584
4590
|
/*modaltext*/
|
|
4585
4591
|
x[0]
|
|
4586
4592
|
), (!y || L & /*$_*/
|
|
4587
4593
|
4) && h !== (h = /*$_*/
|
|
4588
|
-
x[2]("cancel") + "") &&
|
|
4594
|
+
x[2]("cancel") + "") && It(c, h), (!y || L & /*$_*/
|
|
4589
4595
|
4) && m !== (m = /*$_*/
|
|
4590
|
-
x[2]("confirm") + "") &&
|
|
4596
|
+
x[2]("confirm") + "") && It(d, m);
|
|
4591
4597
|
},
|
|
4592
4598
|
i(x) {
|
|
4593
|
-
y || (
|
|
4599
|
+
y || (Qe(w, x), y = !0);
|
|
4594
4600
|
},
|
|
4595
4601
|
o(x) {
|
|
4596
|
-
|
|
4602
|
+
hn(w, x), y = !1;
|
|
4597
4603
|
},
|
|
4598
4604
|
d(x) {
|
|
4599
|
-
x &&
|
|
4605
|
+
x && ht(e), w && w.d(x), t[14](null), T = !1, F(B);
|
|
4600
4606
|
}
|
|
4601
4607
|
};
|
|
4602
4608
|
}
|
|
4603
|
-
function Co(
|
|
4609
|
+
function Co(t, e, r) {
|
|
4604
4610
|
let n;
|
|
4605
|
-
|
|
4606
|
-
let { $$slots: i = {}, $$scope: o } =
|
|
4611
|
+
Dr(t, _o, (b) => r(2, n = b));
|
|
4612
|
+
let { $$slots: i = {}, $$scope: o } = e, { modaltext: a = "Are you sure that you want to perform this action?" } = e, { modalsource: s = "" } = e, { lang: l = "en" } = e, { clientstyling: u = "" } = e, { clientstylingurl: h = "" } = e, { translationurl: c = "" } = e;
|
|
4607
4613
|
const f = () => {
|
|
4608
4614
|
fetch(c).then((N) => N.json()).then((N) => {
|
|
4609
4615
|
Object.keys(N).forEach((k) => {
|
|
4610
|
-
|
|
4616
|
+
Ue(k, N[k]);
|
|
4611
4617
|
});
|
|
4612
4618
|
}).catch((N) => {
|
|
4613
4619
|
console.log(N);
|
|
4614
4620
|
});
|
|
4615
4621
|
};
|
|
4616
|
-
Object.keys(
|
|
4617
|
-
|
|
4622
|
+
Object.keys(De).forEach((b) => {
|
|
4623
|
+
Ue(b, De[b]);
|
|
4618
4624
|
});
|
|
4619
4625
|
let p, m = window.navigator.userAgent, d = xo(m) !== "PC", y = {}, T = "";
|
|
4620
4626
|
const B = () => {
|
|
@@ -4639,10 +4645,10 @@ function Co(e, t, r) {
|
|
|
4639
4645
|
}
|
|
4640
4646
|
}, L = () => {
|
|
4641
4647
|
Eo(l);
|
|
4642
|
-
},
|
|
4648
|
+
}, Ar = () => {
|
|
4643
4649
|
let b = document.createElement("style");
|
|
4644
4650
|
b.innerHTML = u, p.appendChild(b);
|
|
4645
|
-
},
|
|
4651
|
+
}, Pr = () => {
|
|
4646
4652
|
let b = new URL(h), N = document.createElement("style");
|
|
4647
4653
|
fetch(b.href).then((k) => k.text()).then((k) => {
|
|
4648
4654
|
N.innerHTML = k, setTimeout(
|
|
@@ -4653,21 +4659,21 @@ function Co(e, t, r) {
|
|
|
4653
4659
|
);
|
|
4654
4660
|
});
|
|
4655
4661
|
};
|
|
4656
|
-
|
|
4662
|
+
nn(() => (window.addEventListener("message", x, !1), () => {
|
|
4657
4663
|
window.removeEventListener("message", x);
|
|
4658
4664
|
}));
|
|
4659
|
-
function
|
|
4660
|
-
|
|
4665
|
+
function Lr(b) {
|
|
4666
|
+
kt[b ? "unshift" : "push"](() => {
|
|
4661
4667
|
p = b, r(1, p);
|
|
4662
4668
|
});
|
|
4663
4669
|
}
|
|
4664
|
-
return
|
|
4670
|
+
return t.$$set = (b) => {
|
|
4665
4671
|
"modaltext" in b && r(0, a = b.modaltext), "modalsource" in b && r(7, s = b.modalsource), "lang" in b && r(8, l = b.lang), "clientstyling" in b && r(9, u = b.clientstyling), "clientstylingurl" in b && r(10, h = b.clientstylingurl), "translationurl" in b && r(11, c = b.translationurl), "$$scope" in b && r(12, o = b.$$scope);
|
|
4666
|
-
},
|
|
4667
|
-
|
|
4668
|
-
385 && a && s && l && L(),
|
|
4669
|
-
514 && u && p &&
|
|
4670
|
-
1026 && h && p &&
|
|
4672
|
+
}, t.$$.update = () => {
|
|
4673
|
+
t.$$.dirty & /*modaltext, modalsource, lang*/
|
|
4674
|
+
385 && a && s && l && L(), t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4675
|
+
514 && u && p && Ar(), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4676
|
+
1026 && h && p && Pr(), t.$$.dirty & /*translationurl*/
|
|
4671
4677
|
2048 && c && f();
|
|
4672
4678
|
}, [
|
|
4673
4679
|
a,
|
|
@@ -4684,17 +4690,17 @@ function Co(e, t, r) {
|
|
|
4684
4690
|
c,
|
|
4685
4691
|
o,
|
|
4686
4692
|
i,
|
|
4687
|
-
|
|
4693
|
+
Lr
|
|
4688
4694
|
];
|
|
4689
4695
|
}
|
|
4690
|
-
class
|
|
4691
|
-
constructor(
|
|
4692
|
-
super(),
|
|
4696
|
+
class Br extends gn {
|
|
4697
|
+
constructor(e) {
|
|
4698
|
+
super(), dn(
|
|
4693
4699
|
this,
|
|
4694
|
-
|
|
4700
|
+
e,
|
|
4695
4701
|
Co,
|
|
4696
4702
|
Ho,
|
|
4697
|
-
|
|
4703
|
+
ke,
|
|
4698
4704
|
{
|
|
4699
4705
|
modaltext: 0,
|
|
4700
4706
|
modalsource: 7,
|
|
@@ -4709,90 +4715,90 @@ class Ar extends yn {
|
|
|
4709
4715
|
get modaltext() {
|
|
4710
4716
|
return this.$$.ctx[0];
|
|
4711
4717
|
}
|
|
4712
|
-
set modaltext(
|
|
4713
|
-
this.$$set({ modaltext:
|
|
4718
|
+
set modaltext(e) {
|
|
4719
|
+
this.$$set({ modaltext: e }), U();
|
|
4714
4720
|
}
|
|
4715
4721
|
get modalsource() {
|
|
4716
4722
|
return this.$$.ctx[7];
|
|
4717
4723
|
}
|
|
4718
|
-
set modalsource(
|
|
4719
|
-
this.$$set({ modalsource:
|
|
4724
|
+
set modalsource(e) {
|
|
4725
|
+
this.$$set({ modalsource: e }), U();
|
|
4720
4726
|
}
|
|
4721
4727
|
get lang() {
|
|
4722
4728
|
return this.$$.ctx[8];
|
|
4723
4729
|
}
|
|
4724
|
-
set lang(
|
|
4725
|
-
this.$$set({ lang:
|
|
4730
|
+
set lang(e) {
|
|
4731
|
+
this.$$set({ lang: e }), U();
|
|
4726
4732
|
}
|
|
4727
4733
|
get clientstyling() {
|
|
4728
4734
|
return this.$$.ctx[9];
|
|
4729
4735
|
}
|
|
4730
|
-
set clientstyling(
|
|
4731
|
-
this.$$set({ clientstyling:
|
|
4736
|
+
set clientstyling(e) {
|
|
4737
|
+
this.$$set({ clientstyling: e }), U();
|
|
4732
4738
|
}
|
|
4733
4739
|
get clientstylingurl() {
|
|
4734
4740
|
return this.$$.ctx[10];
|
|
4735
4741
|
}
|
|
4736
|
-
set clientstylingurl(
|
|
4737
|
-
this.$$set({ clientstylingurl:
|
|
4742
|
+
set clientstylingurl(e) {
|
|
4743
|
+
this.$$set({ clientstylingurl: e }), U();
|
|
4738
4744
|
}
|
|
4739
4745
|
get translationurl() {
|
|
4740
4746
|
return this.$$.ctx[11];
|
|
4741
4747
|
}
|
|
4742
|
-
set translationurl(
|
|
4743
|
-
this.$$set({ translationurl:
|
|
4748
|
+
set translationurl(e) {
|
|
4749
|
+
this.$$set({ translationurl: e }), U();
|
|
4744
4750
|
}
|
|
4745
4751
|
}
|
|
4746
|
-
|
|
4752
|
+
bn(Br, { modaltext: {}, modalsource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, ["close"], [], !0);
|
|
4747
4753
|
const Fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4748
4754
|
__proto__: null,
|
|
4749
|
-
default:
|
|
4755
|
+
default: Br
|
|
4750
4756
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4751
4757
|
export {
|
|
4752
|
-
|
|
4758
|
+
et as $,
|
|
4753
4759
|
$o as A,
|
|
4754
4760
|
Io as B,
|
|
4755
|
-
|
|
4761
|
+
kt as C,
|
|
4756
4762
|
Mo as D,
|
|
4757
|
-
|
|
4763
|
+
xt as E,
|
|
4758
4764
|
No as F,
|
|
4759
|
-
|
|
4765
|
+
St as G,
|
|
4760
4766
|
_o as H,
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4767
|
+
Rr as I,
|
|
4768
|
+
Qe as J,
|
|
4769
|
+
hn as K,
|
|
4764
4770
|
Go as L,
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4771
|
+
Fr as M,
|
|
4772
|
+
kr as N,
|
|
4773
|
+
Vr as O,
|
|
4774
|
+
jr as P,
|
|
4769
4775
|
Uo as Q,
|
|
4770
4776
|
Ro as R,
|
|
4771
|
-
|
|
4777
|
+
gn as S,
|
|
4772
4778
|
Fo as T,
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4779
|
+
wr as a,
|
|
4780
|
+
Wr as b,
|
|
4781
|
+
bn as c,
|
|
4782
|
+
Lt as d,
|
|
4777
4783
|
M as e,
|
|
4778
4784
|
U as f,
|
|
4779
|
-
|
|
4785
|
+
be as g,
|
|
4780
4786
|
H as h,
|
|
4781
|
-
|
|
4787
|
+
dn as i,
|
|
4782
4788
|
Oo as j,
|
|
4783
|
-
|
|
4789
|
+
se as k,
|
|
4784
4790
|
P as l,
|
|
4785
|
-
|
|
4786
|
-
|
|
4791
|
+
Ot as m,
|
|
4792
|
+
It as n,
|
|
4787
4793
|
I as o,
|
|
4788
4794
|
Lo as p,
|
|
4789
|
-
|
|
4795
|
+
ht as q,
|
|
4790
4796
|
F as r,
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4797
|
+
ke as s,
|
|
4798
|
+
ot as t,
|
|
4799
|
+
Dr as u,
|
|
4794
4800
|
xo as v,
|
|
4795
|
-
|
|
4801
|
+
nn as w,
|
|
4796
4802
|
Do as x,
|
|
4797
4803
|
Ao as y,
|
|
4798
4804
|
Po as z
|