@everymatrix/player-account-gaming-limits-confirmation-modal 1.86.4 → 1.86.6
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-CtnnJ3ZW.js → PlayerAccountGamingLimitsConfirmationModal-BOZz_2rZ.js} +850 -829
- package/components/PlayerAccountGamingLimitsConfirmationModal-Bgn1MgRG.cjs +18 -0
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CYQMb13E.js → PlayerAccountGamingLimitsConfirmationModal-CkBJVq8s.js} +729 -708
- package/es2015/player-account-gaming-limits-confirmation-modal.cjs +1 -1
- package/es2015/player-account-gaming-limits-confirmation-modal.js +1 -1
- package/esnext/player-account-gaming-limits-confirmation-modal.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-k8VWSna8.cjs +0 -18
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
function
|
|
1
|
+
function I() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function mr(e, t) {
|
|
4
4
|
for (const r in t)
|
|
5
5
|
e[r] = t[r];
|
|
6
6
|
return (
|
|
@@ -8,67 +8,67 @@ function fr(e, t) {
|
|
|
8
8
|
e
|
|
9
9
|
);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function At(e) {
|
|
12
12
|
return e();
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function nt() {
|
|
15
15
|
return /* @__PURE__ */ Object.create(null);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
e.forEach(
|
|
17
|
+
function Z(e) {
|
|
18
|
+
e.forEach(At);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function qe(e) {
|
|
21
21
|
return typeof e == "function";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Pt(e, t) {
|
|
24
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function pr(e) {
|
|
27
27
|
return Object.keys(e).length === 0;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Ot(e, ...t) {
|
|
30
30
|
if (e == null) {
|
|
31
31
|
for (const n of t)
|
|
32
32
|
n(void 0);
|
|
33
|
-
return
|
|
33
|
+
return I;
|
|
34
34
|
}
|
|
35
35
|
const r = e.subscribe(...t);
|
|
36
36
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.$$.on_destroy.push(
|
|
38
|
+
function dr(e, t, r) {
|
|
39
|
+
e.$$.on_destroy.push(Ot(t, r));
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function br(e, t, r, n) {
|
|
42
42
|
if (e) {
|
|
43
|
-
const i =
|
|
43
|
+
const i = Lt(e, t, r, n);
|
|
44
44
|
return e[0](i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
return e[1] && n ?
|
|
47
|
+
function Lt(e, t, r, n) {
|
|
48
|
+
return e[1] && n ? mr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function gr(e, t, r, n) {
|
|
51
51
|
if (e[2] && n) {
|
|
52
52
|
const i = e[2](n(r));
|
|
53
53
|
if (t.dirty === void 0)
|
|
54
54
|
return i;
|
|
55
55
|
if (typeof i == "object") {
|
|
56
|
-
const o = [],
|
|
57
|
-
for (let
|
|
58
|
-
o[
|
|
56
|
+
const o = [], s = Math.max(t.dirty.length, i.length);
|
|
57
|
+
for (let a = 0; a < s; a += 1)
|
|
58
|
+
o[a] = t.dirty[a] | i[a];
|
|
59
59
|
return o;
|
|
60
60
|
}
|
|
61
61
|
return t.dirty | i;
|
|
62
62
|
}
|
|
63
63
|
return t.dirty;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function yr(e, t, r, n, i, o) {
|
|
66
66
|
if (i) {
|
|
67
|
-
const
|
|
68
|
-
e.p(
|
|
67
|
+
const s = Lt(t, r, n, o);
|
|
68
|
+
e.p(s, i);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function vr(e) {
|
|
72
72
|
if (e.ctx.length > 32) {
|
|
73
73
|
const t = [], r = e.ctx.length / 32;
|
|
74
74
|
for (let n = 0; n < r; n++)
|
|
@@ -80,14 +80,14 @@ function yr(e) {
|
|
|
80
80
|
function B(e, t) {
|
|
81
81
|
e.appendChild(t);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
const n =
|
|
83
|
+
function xr(e, t, r) {
|
|
84
|
+
const n = _r(e);
|
|
85
85
|
if (!n.getElementById(t)) {
|
|
86
|
-
const i =
|
|
87
|
-
i.id = t, i.textContent = r,
|
|
86
|
+
const i = M("style");
|
|
87
|
+
i.id = t, i.textContent = r, Er(n, i);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function _r(e) {
|
|
91
91
|
if (!e)
|
|
92
92
|
return document;
|
|
93
93
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -97,45 +97,45 @@ function xr(e) {
|
|
|
97
97
|
t
|
|
98
98
|
) : e.ownerDocument;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Er(e, t) {
|
|
101
101
|
return B(
|
|
102
102
|
/** @type {Document} */
|
|
103
103
|
e.head || e,
|
|
104
104
|
t
|
|
105
105
|
), t.sheet;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Ke(e, t, r) {
|
|
108
108
|
e.insertBefore(t, r || null);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function be(e) {
|
|
111
111
|
e.parentNode && e.parentNode.removeChild(e);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function M(e) {
|
|
114
114
|
return document.createElement(e);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function it(e) {
|
|
117
117
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
118
118
|
}
|
|
119
119
|
function ae(e) {
|
|
120
120
|
return document.createTextNode(e);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function we() {
|
|
123
123
|
return ae(" ");
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Se(e, t, r, n) {
|
|
126
126
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
127
127
|
}
|
|
128
128
|
function S(e, t, r) {
|
|
129
129
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function wr(e) {
|
|
132
132
|
return Array.from(e.childNodes);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Te(e, t) {
|
|
135
135
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
136
136
|
t);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Sr(e) {
|
|
139
139
|
const t = {};
|
|
140
140
|
return e.childNodes.forEach(
|
|
141
141
|
/** @param {Element} node */
|
|
@@ -144,105 +144,105 @@ function wr(e) {
|
|
|
144
144
|
}
|
|
145
145
|
), t;
|
|
146
146
|
}
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
147
|
+
let ee;
|
|
148
|
+
function K(e) {
|
|
149
|
+
ee = e;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
if (!
|
|
151
|
+
function Tr() {
|
|
152
|
+
if (!ee)
|
|
153
153
|
throw new Error("Function called outside component initialization");
|
|
154
|
-
return
|
|
154
|
+
return ee;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
|
|
156
|
+
function Hr(e) {
|
|
157
|
+
Tr().$$.on_mount.push(e);
|
|
158
158
|
}
|
|
159
|
-
const j = [],
|
|
159
|
+
const j = [], Me = [];
|
|
160
160
|
let k = [];
|
|
161
|
-
const
|
|
162
|
-
let
|
|
163
|
-
function
|
|
164
|
-
|
|
161
|
+
const ot = [], Br = /* @__PURE__ */ Promise.resolve();
|
|
162
|
+
let Ne = !1;
|
|
163
|
+
function Cr() {
|
|
164
|
+
Ne || (Ne = !0, Br.then(N));
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function $e(e) {
|
|
167
167
|
k.push(e);
|
|
168
168
|
}
|
|
169
|
-
const
|
|
169
|
+
const He = /* @__PURE__ */ new Set();
|
|
170
170
|
let D = 0;
|
|
171
|
-
function
|
|
171
|
+
function N() {
|
|
172
172
|
if (D !== 0)
|
|
173
173
|
return;
|
|
174
|
-
const e =
|
|
174
|
+
const e = ee;
|
|
175
175
|
do {
|
|
176
176
|
try {
|
|
177
177
|
for (; D < j.length; ) {
|
|
178
178
|
const t = j[D];
|
|
179
|
-
D++,
|
|
179
|
+
D++, K(t), Ar(t.$$);
|
|
180
180
|
}
|
|
181
181
|
} catch (t) {
|
|
182
182
|
throw j.length = 0, D = 0, t;
|
|
183
183
|
}
|
|
184
|
-
for (
|
|
185
|
-
|
|
184
|
+
for (K(null), j.length = 0, D = 0; Me.length; )
|
|
185
|
+
Me.pop()();
|
|
186
186
|
for (let t = 0; t < k.length; t += 1) {
|
|
187
187
|
const r = k[t];
|
|
188
|
-
|
|
188
|
+
He.has(r) || (He.add(r), r());
|
|
189
189
|
}
|
|
190
190
|
k.length = 0;
|
|
191
191
|
} while (j.length);
|
|
192
|
-
for (;
|
|
193
|
-
|
|
194
|
-
|
|
192
|
+
for (; ot.length; )
|
|
193
|
+
ot.pop()();
|
|
194
|
+
Ne = !1, He.clear(), K(e);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Ar(e) {
|
|
197
197
|
if (e.fragment !== null) {
|
|
198
|
-
e.update(),
|
|
198
|
+
e.update(), Z(e.before_update);
|
|
199
199
|
const t = e.dirty;
|
|
200
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
200
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Pr(e) {
|
|
204
204
|
const t = [], r = [];
|
|
205
205
|
k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
|
|
206
206
|
}
|
|
207
207
|
const ue = /* @__PURE__ */ new Set();
|
|
208
|
-
let
|
|
209
|
-
function
|
|
208
|
+
let Or;
|
|
209
|
+
function It(e, t) {
|
|
210
210
|
e && e.i && (ue.delete(e), e.i(t));
|
|
211
211
|
}
|
|
212
212
|
function Lr(e, t, r, n) {
|
|
213
213
|
if (e && e.o) {
|
|
214
214
|
if (ue.has(e))
|
|
215
215
|
return;
|
|
216
|
-
ue.add(e),
|
|
216
|
+
ue.add(e), Or.c.push(() => {
|
|
217
217
|
ue.delete(e);
|
|
218
218
|
}), e.o(t);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Ir(e, t, r) {
|
|
222
222
|
const { fragment: n, after_update: i } = e.$$;
|
|
223
|
-
n && n.m(t, r),
|
|
224
|
-
const o = e.$$.on_mount.map(
|
|
225
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
226
|
-
}), i.forEach(
|
|
223
|
+
n && n.m(t, r), $e(() => {
|
|
224
|
+
const o = e.$$.on_mount.map(At).filter(qe);
|
|
225
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Z(o), e.$$.on_mount = [];
|
|
226
|
+
}), i.forEach($e);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function Mr(e, t) {
|
|
229
229
|
const r = e.$$;
|
|
230
|
-
r.fragment !== null && (
|
|
230
|
+
r.fragment !== null && (Pr(r.after_update), Z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
e.$$.dirty[0] === -1 && (j.push(e),
|
|
232
|
+
function Nr(e, t) {
|
|
233
|
+
e.$$.dirty[0] === -1 && (j.push(e), Cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
const h =
|
|
237
|
-
|
|
235
|
+
function $r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
236
|
+
const h = ee;
|
|
237
|
+
K(e);
|
|
238
238
|
const u = e.$$ = {
|
|
239
239
|
fragment: null,
|
|
240
240
|
ctx: [],
|
|
241
241
|
// state
|
|
242
242
|
props: o,
|
|
243
|
-
update:
|
|
243
|
+
update: I,
|
|
244
244
|
not_equal: i,
|
|
245
|
-
bound:
|
|
245
|
+
bound: nt(),
|
|
246
246
|
// lifecycle
|
|
247
247
|
on_mount: [],
|
|
248
248
|
on_destroy: [],
|
|
@@ -251,28 +251,28 @@ function Nr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
251
251
|
after_update: [],
|
|
252
252
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
253
253
|
// everything else
|
|
254
|
-
callbacks:
|
|
255
|
-
dirty:
|
|
254
|
+
callbacks: nt(),
|
|
255
|
+
dirty: a,
|
|
256
256
|
skip_bound: !1,
|
|
257
257
|
root: t.target || h.$$.root
|
|
258
258
|
};
|
|
259
|
-
|
|
259
|
+
s && s(u.root);
|
|
260
260
|
let l = !1;
|
|
261
261
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
262
262
|
const m = p.length ? p[0] : f;
|
|
263
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), l &&
|
|
264
|
-
}) : [], u.update(), l = !0,
|
|
263
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), l && Nr(e, c)), f;
|
|
264
|
+
}) : [], u.update(), l = !0, Z(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
265
265
|
if (t.hydrate) {
|
|
266
|
-
const c =
|
|
267
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
266
|
+
const c = wr(t.target);
|
|
267
|
+
u.fragment && u.fragment.l(c), c.forEach(be);
|
|
268
268
|
} else
|
|
269
269
|
u.fragment && u.fragment.c();
|
|
270
|
-
t.intro &&
|
|
270
|
+
t.intro && It(e.$$.fragment), Ir(e, t.target, t.anchor), N();
|
|
271
271
|
}
|
|
272
|
-
|
|
272
|
+
K(h);
|
|
273
273
|
}
|
|
274
|
-
let
|
|
275
|
-
typeof HTMLElement == "function" && (
|
|
274
|
+
let Mt;
|
|
275
|
+
typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
276
276
|
/** The Svelte component constructor */
|
|
277
277
|
$$ctor;
|
|
278
278
|
/** Slots */
|
|
@@ -314,24 +314,24 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
314
314
|
let o;
|
|
315
315
|
return {
|
|
316
316
|
c: function() {
|
|
317
|
-
o =
|
|
317
|
+
o = M("slot"), i !== "default" && S(o, "name", i);
|
|
318
318
|
},
|
|
319
319
|
/**
|
|
320
320
|
* @param {HTMLElement} target
|
|
321
321
|
* @param {HTMLElement} [anchor]
|
|
322
322
|
*/
|
|
323
323
|
m: function(h, u) {
|
|
324
|
-
|
|
324
|
+
Ke(h, o, u);
|
|
325
325
|
},
|
|
326
326
|
d: function(h) {
|
|
327
|
-
h &&
|
|
327
|
+
h && be(o);
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
330
|
};
|
|
331
331
|
};
|
|
332
332
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
333
333
|
return;
|
|
334
|
-
const t = {}, r =
|
|
334
|
+
const t = {}, r = Sr(this);
|
|
335
335
|
for (const i of this.$$s)
|
|
336
336
|
i in r && (t[i] = [e(i)]);
|
|
337
337
|
for (const i of this.attributes) {
|
|
@@ -367,8 +367,8 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
367
367
|
this.$$c.$$.after_update.push(n), n();
|
|
368
368
|
for (const i in this.$$l)
|
|
369
369
|
for (const o of this.$$l[i]) {
|
|
370
|
-
const
|
|
371
|
-
this.$$l_u.set(o,
|
|
370
|
+
const s = this.$$c.$on(i, o);
|
|
371
|
+
this.$$l_u.set(o, s);
|
|
372
372
|
}
|
|
373
373
|
this.$$l = {};
|
|
374
374
|
}
|
|
@@ -419,35 +419,35 @@ function he(e, t, r, n) {
|
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
421
|
function Rr(e, t, r, n, i, o) {
|
|
422
|
-
let
|
|
422
|
+
let s = class extends Mt {
|
|
423
423
|
constructor() {
|
|
424
424
|
super(e, r, i), this.$$p_d = t;
|
|
425
425
|
}
|
|
426
426
|
static get observedAttributes() {
|
|
427
427
|
return Object.keys(t).map(
|
|
428
|
-
(
|
|
428
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
429
429
|
);
|
|
430
430
|
}
|
|
431
431
|
};
|
|
432
|
-
return Object.keys(t).forEach((
|
|
433
|
-
Object.defineProperty(
|
|
432
|
+
return Object.keys(t).forEach((a) => {
|
|
433
|
+
Object.defineProperty(s.prototype, a, {
|
|
434
434
|
get() {
|
|
435
|
-
return this.$$c &&
|
|
435
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
436
436
|
},
|
|
437
437
|
set(h) {
|
|
438
|
-
h = he(
|
|
438
|
+
h = he(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
|
439
439
|
}
|
|
440
440
|
});
|
|
441
|
-
}), n.forEach((
|
|
442
|
-
Object.defineProperty(
|
|
441
|
+
}), n.forEach((a) => {
|
|
442
|
+
Object.defineProperty(s.prototype, a, {
|
|
443
443
|
get() {
|
|
444
|
-
return this.$$c?.[
|
|
444
|
+
return this.$$c?.[a];
|
|
445
445
|
}
|
|
446
446
|
});
|
|
447
447
|
}), e.element = /** @type {any} */
|
|
448
|
-
|
|
448
|
+
s, s;
|
|
449
449
|
}
|
|
450
|
-
class
|
|
450
|
+
class Gr {
|
|
451
451
|
/**
|
|
452
452
|
* ### PRIVATE API
|
|
453
453
|
*
|
|
@@ -466,7 +466,7 @@ class $r {
|
|
|
466
466
|
$$set = void 0;
|
|
467
467
|
/** @returns {void} */
|
|
468
468
|
$destroy() {
|
|
469
|
-
|
|
469
|
+
Mr(this, 1), this.$destroy = I;
|
|
470
470
|
}
|
|
471
471
|
/**
|
|
472
472
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -475,8 +475,8 @@ class $r {
|
|
|
475
475
|
* @returns {() => void}
|
|
476
476
|
*/
|
|
477
477
|
$on(t, r) {
|
|
478
|
-
if (!
|
|
479
|
-
return
|
|
478
|
+
if (!qe(r))
|
|
479
|
+
return I;
|
|
480
480
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
481
481
|
return n.push(r), () => {
|
|
482
482
|
const i = n.indexOf(r);
|
|
@@ -488,11 +488,11 @@ class $r {
|
|
|
488
488
|
* @returns {void}
|
|
489
489
|
*/
|
|
490
490
|
$set(t) {
|
|
491
|
-
this.$$set && !
|
|
491
|
+
this.$$set && !pr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
const
|
|
495
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
494
|
+
const Ur = "4";
|
|
495
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ur);
|
|
496
496
|
/*! *****************************************************************************
|
|
497
497
|
Copyright (c) Microsoft Corporation.
|
|
498
498
|
|
|
@@ -507,43 +507,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
507
507
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
508
508
|
PERFORMANCE OF THIS SOFTWARE.
|
|
509
509
|
***************************************************************************** */
|
|
510
|
-
var
|
|
511
|
-
return
|
|
510
|
+
var Re = function(e, t) {
|
|
511
|
+
return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
512
512
|
r.__proto__ = n;
|
|
513
513
|
} || function(r, n) {
|
|
514
514
|
for (var i in n)
|
|
515
515
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
516
|
-
},
|
|
516
|
+
}, Re(e, t);
|
|
517
517
|
};
|
|
518
|
-
function
|
|
518
|
+
function ne(e, t) {
|
|
519
519
|
if (typeof t != "function" && t !== null)
|
|
520
520
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
521
|
-
|
|
521
|
+
Re(e, t);
|
|
522
522
|
function r() {
|
|
523
523
|
this.constructor = e;
|
|
524
524
|
}
|
|
525
525
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
526
526
|
}
|
|
527
|
-
|
|
528
|
-
return v = Object.assign || function(t) {
|
|
529
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
530
|
-
r = arguments[n];
|
|
531
|
-
for (var o in r)
|
|
532
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
533
|
-
}
|
|
534
|
-
return t;
|
|
535
|
-
}, v.apply(this, arguments);
|
|
536
|
-
};
|
|
537
|
-
function Ur(e, t) {
|
|
538
|
-
var r = {};
|
|
539
|
-
for (var n in e)
|
|
540
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
541
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
542
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
543
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
544
|
-
return r;
|
|
545
|
-
}
|
|
546
|
-
function Re(e) {
|
|
527
|
+
function Ge(e) {
|
|
547
528
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
548
529
|
if (r)
|
|
549
530
|
return r.call(e);
|
|
@@ -555,42 +536,42 @@ function Re(e) {
|
|
|
555
536
|
};
|
|
556
537
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
557
538
|
}
|
|
558
|
-
function
|
|
539
|
+
function Ue(e, t) {
|
|
559
540
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
560
541
|
if (!r)
|
|
561
542
|
return e;
|
|
562
|
-
var n = r.call(e), i, o = [],
|
|
543
|
+
var n = r.call(e), i, o = [], s;
|
|
563
544
|
try {
|
|
564
545
|
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
565
546
|
o.push(i.value);
|
|
566
|
-
} catch (
|
|
567
|
-
|
|
547
|
+
} catch (a) {
|
|
548
|
+
s = { error: a };
|
|
568
549
|
} finally {
|
|
569
550
|
try {
|
|
570
551
|
i && !i.done && (r = n.return) && r.call(n);
|
|
571
552
|
} finally {
|
|
572
|
-
if (
|
|
573
|
-
throw
|
|
553
|
+
if (s)
|
|
554
|
+
throw s.error;
|
|
574
555
|
}
|
|
575
556
|
}
|
|
576
557
|
return o;
|
|
577
558
|
}
|
|
578
|
-
function
|
|
579
|
-
if (
|
|
559
|
+
function De(e, t, r) {
|
|
560
|
+
if (arguments.length === 2)
|
|
580
561
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
581
562
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
582
563
|
return e.concat(o || t);
|
|
583
564
|
}
|
|
584
|
-
function
|
|
565
|
+
function $(e) {
|
|
585
566
|
return typeof e == "function";
|
|
586
567
|
}
|
|
587
|
-
function
|
|
568
|
+
function Nt(e) {
|
|
588
569
|
var t = function(n) {
|
|
589
570
|
Error.call(n), n.stack = new Error().stack;
|
|
590
571
|
}, r = e(t);
|
|
591
572
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
592
573
|
}
|
|
593
|
-
var
|
|
574
|
+
var Be = Nt(function(e) {
|
|
594
575
|
return function(r) {
|
|
595
576
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
596
577
|
` + r.map(function(n, i) {
|
|
@@ -599,13 +580,13 @@ var Te = It(function(e) {
|
|
|
599
580
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
600
581
|
};
|
|
601
582
|
});
|
|
602
|
-
function
|
|
583
|
+
function Fe(e, t) {
|
|
603
584
|
if (e) {
|
|
604
585
|
var r = e.indexOf(t);
|
|
605
586
|
0 <= r && e.splice(r, 1);
|
|
606
587
|
}
|
|
607
588
|
}
|
|
608
|
-
var
|
|
589
|
+
var ge = function() {
|
|
609
590
|
function e(t) {
|
|
610
591
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
611
592
|
}
|
|
@@ -613,11 +594,11 @@ var be = function() {
|
|
|
613
594
|
var t, r, n, i, o;
|
|
614
595
|
if (!this.closed) {
|
|
615
596
|
this.closed = !0;
|
|
616
|
-
var
|
|
617
|
-
if (
|
|
618
|
-
if (this._parentage = null, Array.isArray(
|
|
597
|
+
var s = this._parentage;
|
|
598
|
+
if (s)
|
|
599
|
+
if (this._parentage = null, Array.isArray(s))
|
|
619
600
|
try {
|
|
620
|
-
for (var
|
|
601
|
+
for (var a = Ge(s), h = a.next(); !h.done; h = a.next()) {
|
|
621
602
|
var u = h.value;
|
|
622
603
|
u.remove(this);
|
|
623
604
|
}
|
|
@@ -625,31 +606,31 @@ var be = function() {
|
|
|
625
606
|
t = { error: y };
|
|
626
607
|
} finally {
|
|
627
608
|
try {
|
|
628
|
-
h && !h.done && (r =
|
|
609
|
+
h && !h.done && (r = a.return) && r.call(a);
|
|
629
610
|
} finally {
|
|
630
611
|
if (t)
|
|
631
612
|
throw t.error;
|
|
632
613
|
}
|
|
633
614
|
}
|
|
634
615
|
else
|
|
635
|
-
|
|
616
|
+
s.remove(this);
|
|
636
617
|
var l = this.initialTeardown;
|
|
637
|
-
if (
|
|
618
|
+
if ($(l))
|
|
638
619
|
try {
|
|
639
620
|
l();
|
|
640
621
|
} catch (y) {
|
|
641
|
-
o = y instanceof
|
|
622
|
+
o = y instanceof Be ? y.errors : [y];
|
|
642
623
|
}
|
|
643
624
|
var c = this._finalizers;
|
|
644
625
|
if (c) {
|
|
645
626
|
this._finalizers = null;
|
|
646
627
|
try {
|
|
647
|
-
for (var f =
|
|
628
|
+
for (var f = Ge(c), p = f.next(); !p.done; p = f.next()) {
|
|
648
629
|
var m = p.value;
|
|
649
630
|
try {
|
|
650
|
-
|
|
631
|
+
st(m);
|
|
651
632
|
} catch (y) {
|
|
652
|
-
o = o ?? [], y instanceof
|
|
633
|
+
o = o ?? [], y instanceof Be ? o = De(De([], Ue(o)), Ue(y.errors)) : o.push(y);
|
|
653
634
|
}
|
|
654
635
|
}
|
|
655
636
|
} catch (y) {
|
|
@@ -664,13 +645,13 @@ var be = function() {
|
|
|
664
645
|
}
|
|
665
646
|
}
|
|
666
647
|
if (o)
|
|
667
|
-
throw new
|
|
648
|
+
throw new Be(o);
|
|
668
649
|
}
|
|
669
650
|
}, e.prototype.add = function(t) {
|
|
670
651
|
var r;
|
|
671
652
|
if (t && t !== this)
|
|
672
653
|
if (this.closed)
|
|
673
|
-
|
|
654
|
+
st(t);
|
|
674
655
|
else {
|
|
675
656
|
if (t instanceof e) {
|
|
676
657
|
if (t.closed || t._hasParent(this))
|
|
@@ -687,56 +668,52 @@ var be = function() {
|
|
|
687
668
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
688
669
|
}, e.prototype._removeParent = function(t) {
|
|
689
670
|
var r = this._parentage;
|
|
690
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
671
|
+
r === t ? this._parentage = null : Array.isArray(r) && Fe(r, t);
|
|
691
672
|
}, e.prototype.remove = function(t) {
|
|
692
673
|
var r = this._finalizers;
|
|
693
|
-
r &&
|
|
674
|
+
r && Fe(r, t), t instanceof e && t._removeParent(this);
|
|
694
675
|
}, e.EMPTY = function() {
|
|
695
676
|
var t = new e();
|
|
696
677
|
return t.closed = !0, t;
|
|
697
678
|
}(), e;
|
|
698
|
-
}(),
|
|
699
|
-
function
|
|
700
|
-
return e instanceof
|
|
679
|
+
}(), $t = ge.EMPTY;
|
|
680
|
+
function Rt(e) {
|
|
681
|
+
return e instanceof ge || e && "closed" in e && $(e.remove) && $(e.add) && $(e.unsubscribe);
|
|
701
682
|
}
|
|
702
|
-
function
|
|
703
|
-
|
|
704
|
-
}
|
|
705
|
-
var
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
Promise: void 0,
|
|
709
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
710
|
-
useDeprecatedNextContext: !1
|
|
711
|
-
}, Dr = {
|
|
683
|
+
function st(e) {
|
|
684
|
+
$(e) ? e() : e.unsubscribe();
|
|
685
|
+
}
|
|
686
|
+
var Dr = {
|
|
687
|
+
Promise: void 0
|
|
688
|
+
}, Fr = {
|
|
712
689
|
setTimeout: function(e, t) {
|
|
713
690
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
714
691
|
r[n - 2] = arguments[n];
|
|
715
|
-
return setTimeout.apply(void 0,
|
|
692
|
+
return setTimeout.apply(void 0, De([e, t], Ue(r)));
|
|
716
693
|
},
|
|
717
694
|
clearTimeout: function(e) {
|
|
718
695
|
return clearTimeout(e);
|
|
719
696
|
},
|
|
720
697
|
delegate: void 0
|
|
721
698
|
};
|
|
722
|
-
function
|
|
723
|
-
|
|
699
|
+
function jr(e) {
|
|
700
|
+
Fr.setTimeout(function() {
|
|
724
701
|
throw e;
|
|
725
702
|
});
|
|
726
703
|
}
|
|
727
|
-
function
|
|
704
|
+
function at() {
|
|
728
705
|
}
|
|
729
706
|
function le(e) {
|
|
730
707
|
e();
|
|
731
708
|
}
|
|
732
|
-
var
|
|
733
|
-
|
|
709
|
+
var Gt = function(e) {
|
|
710
|
+
ne(t, e);
|
|
734
711
|
function t(r) {
|
|
735
712
|
var n = e.call(this) || this;
|
|
736
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
713
|
+
return n.isStopped = !1, r ? (n.destination = r, Rt(r) && r.add(n)) : n.destination = Xr, n;
|
|
737
714
|
}
|
|
738
715
|
return t.create = function(r, n, i) {
|
|
739
|
-
return new
|
|
716
|
+
return new je(r, n, i);
|
|
740
717
|
}, t.prototype.next = function(r) {
|
|
741
718
|
this.isStopped || this._next(r);
|
|
742
719
|
}, t.prototype.error = function(r) {
|
|
@@ -760,11 +737,7 @@ var $t = function(e) {
|
|
|
760
737
|
this.unsubscribe();
|
|
761
738
|
}
|
|
762
739
|
}, t;
|
|
763
|
-
}(
|
|
764
|
-
function He(e, t) {
|
|
765
|
-
return jr.call(e, t);
|
|
766
|
-
}
|
|
767
|
-
var kr = function() {
|
|
740
|
+
}(ge), kr = function() {
|
|
768
741
|
function e(t) {
|
|
769
742
|
this.partialObserver = t;
|
|
770
743
|
}
|
|
@@ -795,41 +768,29 @@ var kr = function() {
|
|
|
795
768
|
oe(r);
|
|
796
769
|
}
|
|
797
770
|
}, e;
|
|
798
|
-
}(),
|
|
799
|
-
|
|
771
|
+
}(), je = function(e) {
|
|
772
|
+
ne(t, e);
|
|
800
773
|
function t(r, n, i) {
|
|
801
|
-
var o = e.call(this) || this,
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
};
|
|
808
|
-
else {
|
|
809
|
-
var s;
|
|
810
|
-
o && Rt.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
811
|
-
return o.unsubscribe();
|
|
812
|
-
}, a = {
|
|
813
|
-
next: r.next && He(r.next, s),
|
|
814
|
-
error: r.error && He(r.error, s),
|
|
815
|
-
complete: r.complete && He(r.complete, s)
|
|
816
|
-
}) : a = r;
|
|
817
|
-
}
|
|
818
|
-
return o.destination = new kr(a), o;
|
|
774
|
+
var o = e.call(this) || this, s;
|
|
775
|
+
return $(r) || !r ? s = {
|
|
776
|
+
next: r ?? void 0,
|
|
777
|
+
error: n ?? void 0,
|
|
778
|
+
complete: i ?? void 0
|
|
779
|
+
} : s = r, o.destination = new kr(s), o;
|
|
819
780
|
}
|
|
820
781
|
return t;
|
|
821
|
-
}(
|
|
782
|
+
}(Gt);
|
|
822
783
|
function oe(e) {
|
|
823
|
-
|
|
784
|
+
jr(e);
|
|
824
785
|
}
|
|
825
786
|
function Vr(e) {
|
|
826
787
|
throw e;
|
|
827
788
|
}
|
|
828
789
|
var Xr = {
|
|
829
790
|
closed: !0,
|
|
830
|
-
next:
|
|
791
|
+
next: at,
|
|
831
792
|
error: Vr,
|
|
832
|
-
complete:
|
|
793
|
+
complete: at
|
|
833
794
|
}, Wr = function() {
|
|
834
795
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
835
796
|
}();
|
|
@@ -843,7 +804,7 @@ function Zr(e) {
|
|
|
843
804
|
}, r);
|
|
844
805
|
};
|
|
845
806
|
}
|
|
846
|
-
var
|
|
807
|
+
var ut = function() {
|
|
847
808
|
function e(t) {
|
|
848
809
|
t && (this._subscribe = t);
|
|
849
810
|
}
|
|
@@ -851,10 +812,10 @@ var st = function() {
|
|
|
851
812
|
var r = new e();
|
|
852
813
|
return r.source = this, r.operator = t, r;
|
|
853
814
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
854
|
-
var i = this, o = Jr(t) ? t : new
|
|
815
|
+
var i = this, o = Jr(t) ? t : new je(t, r, n);
|
|
855
816
|
return le(function() {
|
|
856
|
-
var
|
|
857
|
-
o.add(
|
|
817
|
+
var s = i, a = s.operator, h = s.source;
|
|
818
|
+
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
858
819
|
}), o;
|
|
859
820
|
}, e.prototype._trySubscribe = function(t) {
|
|
860
821
|
try {
|
|
@@ -864,19 +825,19 @@ var st = function() {
|
|
|
864
825
|
}
|
|
865
826
|
}, e.prototype.forEach = function(t, r) {
|
|
866
827
|
var n = this;
|
|
867
|
-
return r =
|
|
868
|
-
var
|
|
869
|
-
next: function(
|
|
828
|
+
return r = ht(r), new r(function(i, o) {
|
|
829
|
+
var s = new je({
|
|
830
|
+
next: function(a) {
|
|
870
831
|
try {
|
|
871
|
-
t(
|
|
832
|
+
t(a);
|
|
872
833
|
} catch (h) {
|
|
873
|
-
o(h),
|
|
834
|
+
o(h), s.unsubscribe();
|
|
874
835
|
}
|
|
875
836
|
},
|
|
876
837
|
error: o,
|
|
877
838
|
complete: i
|
|
878
839
|
});
|
|
879
|
-
n.subscribe(
|
|
840
|
+
n.subscribe(s);
|
|
880
841
|
});
|
|
881
842
|
}, e.prototype._subscribe = function(t) {
|
|
882
843
|
var r;
|
|
@@ -889,12 +850,12 @@ var st = function() {
|
|
|
889
850
|
return Zr(t)(this);
|
|
890
851
|
}, e.prototype.toPromise = function(t) {
|
|
891
852
|
var r = this;
|
|
892
|
-
return t =
|
|
853
|
+
return t = ht(t), new t(function(n, i) {
|
|
893
854
|
var o;
|
|
894
|
-
r.subscribe(function(
|
|
895
|
-
return o =
|
|
896
|
-
}, function(
|
|
897
|
-
return i(
|
|
855
|
+
r.subscribe(function(s) {
|
|
856
|
+
return o = s;
|
|
857
|
+
}, function(s) {
|
|
858
|
+
return i(s);
|
|
898
859
|
}, function() {
|
|
899
860
|
return n(o);
|
|
900
861
|
});
|
|
@@ -903,28 +864,28 @@ var st = function() {
|
|
|
903
864
|
return new e(t);
|
|
904
865
|
}, e;
|
|
905
866
|
}();
|
|
906
|
-
function
|
|
867
|
+
function ht(e) {
|
|
907
868
|
var t;
|
|
908
|
-
return (t = e ??
|
|
869
|
+
return (t = e ?? Dr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
909
870
|
}
|
|
910
871
|
function Qr(e) {
|
|
911
|
-
return e &&
|
|
872
|
+
return e && $(e.next) && $(e.error) && $(e.complete);
|
|
912
873
|
}
|
|
913
874
|
function Jr(e) {
|
|
914
|
-
return e && e instanceof
|
|
875
|
+
return e && e instanceof Gt || Qr(e) && Rt(e);
|
|
915
876
|
}
|
|
916
|
-
var Yr =
|
|
877
|
+
var Yr = Nt(function(e) {
|
|
917
878
|
return function() {
|
|
918
879
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
919
880
|
};
|
|
920
|
-
}),
|
|
921
|
-
|
|
881
|
+
}), Ut = function(e) {
|
|
882
|
+
ne(t, e);
|
|
922
883
|
function t() {
|
|
923
884
|
var r = e.call(this) || this;
|
|
924
885
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
925
886
|
}
|
|
926
887
|
return t.prototype.lift = function(r) {
|
|
927
|
-
var n = new
|
|
888
|
+
var n = new lt(this, this);
|
|
928
889
|
return n.operator = r, n;
|
|
929
890
|
}, t.prototype._throwIfClosed = function() {
|
|
930
891
|
if (this.closed)
|
|
@@ -936,15 +897,15 @@ var Yr = It(function(e) {
|
|
|
936
897
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
937
898
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
938
899
|
try {
|
|
939
|
-
for (var
|
|
940
|
-
var h =
|
|
900
|
+
for (var s = Ge(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
901
|
+
var h = a.value;
|
|
941
902
|
h.next(r);
|
|
942
903
|
}
|
|
943
904
|
} catch (u) {
|
|
944
905
|
i = { error: u };
|
|
945
906
|
} finally {
|
|
946
907
|
try {
|
|
947
|
-
|
|
908
|
+
a && !a.done && (o = s.return) && o.call(s);
|
|
948
909
|
} finally {
|
|
949
910
|
if (i)
|
|
950
911
|
throw i.error;
|
|
@@ -984,21 +945,21 @@ var Yr = It(function(e) {
|
|
|
984
945
|
}, t.prototype._subscribe = function(r) {
|
|
985
946
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
986
947
|
}, t.prototype._innerSubscribe = function(r) {
|
|
987
|
-
var n = this, i = this, o = i.hasError,
|
|
988
|
-
return o ||
|
|
989
|
-
n.currentObservers = null,
|
|
948
|
+
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
949
|
+
return o || s ? $t : (this.currentObservers = null, a.push(r), new ge(function() {
|
|
950
|
+
n.currentObservers = null, Fe(a, r);
|
|
990
951
|
}));
|
|
991
952
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
992
|
-
var n = this, i = n.hasError, o = n.thrownError,
|
|
993
|
-
i ? r.error(o) :
|
|
953
|
+
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
954
|
+
i ? r.error(o) : s && r.complete();
|
|
994
955
|
}, t.prototype.asObservable = function() {
|
|
995
|
-
var r = new
|
|
956
|
+
var r = new ut();
|
|
996
957
|
return r.source = this, r;
|
|
997
958
|
}, t.create = function(r, n) {
|
|
998
|
-
return new
|
|
959
|
+
return new lt(r, n);
|
|
999
960
|
}, t;
|
|
1000
|
-
}(
|
|
1001
|
-
|
|
961
|
+
}(ut), lt = function(e) {
|
|
962
|
+
ne(t, e);
|
|
1002
963
|
function t(r, n) {
|
|
1003
964
|
var i = e.call(this) || this;
|
|
1004
965
|
return i.destination = r, i.source = n, i;
|
|
@@ -1014,54 +975,54 @@ var Yr = It(function(e) {
|
|
|
1014
975
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1015
976
|
}, t.prototype._subscribe = function(r) {
|
|
1016
977
|
var n, i;
|
|
1017
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
978
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : $t;
|
|
1018
979
|
}, t;
|
|
1019
|
-
}(
|
|
980
|
+
}(Ut), Dt = {
|
|
1020
981
|
now: function() {
|
|
1021
|
-
return (
|
|
982
|
+
return (Dt.delegate || Date).now();
|
|
1022
983
|
},
|
|
1023
984
|
delegate: void 0
|
|
1024
985
|
}, qr = function(e) {
|
|
1025
|
-
|
|
986
|
+
ne(t, e);
|
|
1026
987
|
function t(r, n, i) {
|
|
1027
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
988
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Dt);
|
|
1028
989
|
var o = e.call(this) || this;
|
|
1029
990
|
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;
|
|
1030
991
|
}
|
|
1031
992
|
return t.prototype.next = function(r) {
|
|
1032
|
-
var n = this, i = n.isStopped, o = n._buffer,
|
|
1033
|
-
i || (o.push(r), !
|
|
993
|
+
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, h = n._windowTime;
|
|
994
|
+
i || (o.push(r), !s && o.push(a.now() + h)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1034
995
|
}, t.prototype._subscribe = function(r) {
|
|
1035
996
|
this._throwIfClosed(), this._trimBuffer();
|
|
1036
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow,
|
|
1037
|
-
r.next(
|
|
997
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), h = 0; h < a.length && !r.closed; h += o ? 1 : 2)
|
|
998
|
+
r.next(a[h]);
|
|
1038
999
|
return this._checkFinalizedStatuses(r), n;
|
|
1039
1000
|
}, t.prototype._trimBuffer = function() {
|
|
1040
|
-
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer,
|
|
1041
|
-
if (n < 1 / 0 &&
|
|
1001
|
+
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
|
|
1002
|
+
if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
1042
1003
|
for (var h = i.now(), u = 0, l = 1; l < o.length && o[l] <= h; l += 2)
|
|
1043
1004
|
u = l;
|
|
1044
1005
|
u && o.splice(0, u + 1);
|
|
1045
1006
|
}
|
|
1046
1007
|
}, t;
|
|
1047
|
-
}(
|
|
1048
|
-
const
|
|
1049
|
-
if (
|
|
1008
|
+
}(Ut);
|
|
1009
|
+
const ct = [], ft = {}, Kr = (e, t = 0) => {
|
|
1010
|
+
if (ct.indexOf(e) == -1) {
|
|
1050
1011
|
const r = new qr(t);
|
|
1051
|
-
|
|
1012
|
+
ft[e] = r, ct.push(e);
|
|
1052
1013
|
}
|
|
1053
|
-
return
|
|
1014
|
+
return ft[e];
|
|
1054
1015
|
}, F = [];
|
|
1055
1016
|
function en(e, t) {
|
|
1056
1017
|
return {
|
|
1057
|
-
subscribe:
|
|
1018
|
+
subscribe: ye(e, t).subscribe
|
|
1058
1019
|
};
|
|
1059
1020
|
}
|
|
1060
|
-
function
|
|
1021
|
+
function ye(e, t = I) {
|
|
1061
1022
|
let r;
|
|
1062
1023
|
const n = /* @__PURE__ */ new Set();
|
|
1063
|
-
function i(
|
|
1064
|
-
if (
|
|
1024
|
+
function i(a) {
|
|
1025
|
+
if (Pt(e, a) && (e = a, r)) {
|
|
1065
1026
|
const h = !F.length;
|
|
1066
1027
|
for (const u of n)
|
|
1067
1028
|
u[1](), F.push(u, e);
|
|
@@ -1072,34 +1033,34 @@ function ge(e, t = O) {
|
|
|
1072
1033
|
}
|
|
1073
1034
|
}
|
|
1074
1035
|
}
|
|
1075
|
-
function o(
|
|
1076
|
-
i(
|
|
1036
|
+
function o(a) {
|
|
1037
|
+
i(a(e));
|
|
1077
1038
|
}
|
|
1078
|
-
function a
|
|
1079
|
-
const u = [
|
|
1080
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
1039
|
+
function s(a, h = I) {
|
|
1040
|
+
const u = [a, h];
|
|
1041
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || I), a(e), () => {
|
|
1081
1042
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1082
1043
|
};
|
|
1083
1044
|
}
|
|
1084
|
-
return { set: i, update: o, subscribe:
|
|
1045
|
+
return { set: i, update: o, subscribe: s };
|
|
1085
1046
|
}
|
|
1086
|
-
function
|
|
1047
|
+
function Q(e, t, r) {
|
|
1087
1048
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1088
1049
|
if (!i.every(Boolean))
|
|
1089
1050
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1090
1051
|
const o = t.length < 2;
|
|
1091
|
-
return en(r, (
|
|
1052
|
+
return en(r, (s, a) => {
|
|
1092
1053
|
let h = !1;
|
|
1093
1054
|
const u = [];
|
|
1094
|
-
let l = 0, c =
|
|
1055
|
+
let l = 0, c = I;
|
|
1095
1056
|
const f = () => {
|
|
1096
1057
|
if (l)
|
|
1097
1058
|
return;
|
|
1098
1059
|
c();
|
|
1099
|
-
const m = t(n ? u[0] : u,
|
|
1100
|
-
o ?
|
|
1060
|
+
const m = t(n ? u[0] : u, s, a);
|
|
1061
|
+
o ? s(m) : c = qe(m) ? m : I;
|
|
1101
1062
|
}, p = i.map(
|
|
1102
|
-
(m, y) =>
|
|
1063
|
+
(m, y) => Ot(
|
|
1103
1064
|
m,
|
|
1104
1065
|
(E) => {
|
|
1105
1066
|
u[y] = E, l &= ~(1 << y), h && f();
|
|
@@ -1110,7 +1071,7 @@ function J(e, t, r) {
|
|
|
1110
1071
|
)
|
|
1111
1072
|
);
|
|
1112
1073
|
return h = !0, f(), function() {
|
|
1113
|
-
|
|
1074
|
+
Z(p), c(), h = !1;
|
|
1114
1075
|
};
|
|
1115
1076
|
});
|
|
1116
1077
|
}
|
|
@@ -1134,29 +1095,29 @@ function un(e) {
|
|
|
1134
1095
|
function hn(e) {
|
|
1135
1096
|
return Array.isArray(e) ? [] : {};
|
|
1136
1097
|
}
|
|
1137
|
-
function
|
|
1138
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1098
|
+
function te(e, t) {
|
|
1099
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? V(hn(e), e, t) : e;
|
|
1139
1100
|
}
|
|
1140
1101
|
function ln(e, t, r) {
|
|
1141
1102
|
return e.concat(t).map(function(n) {
|
|
1142
|
-
return
|
|
1103
|
+
return te(n, r);
|
|
1143
1104
|
});
|
|
1144
1105
|
}
|
|
1145
1106
|
function cn(e, t) {
|
|
1146
1107
|
if (!t.customMerge)
|
|
1147
|
-
return
|
|
1108
|
+
return V;
|
|
1148
1109
|
var r = t.customMerge(e);
|
|
1149
|
-
return typeof r == "function" ? r :
|
|
1110
|
+
return typeof r == "function" ? r : V;
|
|
1150
1111
|
}
|
|
1151
1112
|
function fn(e) {
|
|
1152
1113
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1153
1114
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1154
1115
|
}) : [];
|
|
1155
1116
|
}
|
|
1156
|
-
function
|
|
1117
|
+
function mt(e) {
|
|
1157
1118
|
return Object.keys(e).concat(fn(e));
|
|
1158
1119
|
}
|
|
1159
|
-
function
|
|
1120
|
+
function Ft(e, t) {
|
|
1160
1121
|
try {
|
|
1161
1122
|
return t in e;
|
|
1162
1123
|
} catch {
|
|
@@ -1164,129 +1125,179 @@ function Dt(e, t) {
|
|
|
1164
1125
|
}
|
|
1165
1126
|
}
|
|
1166
1127
|
function mn(e, t) {
|
|
1167
|
-
return
|
|
1128
|
+
return Ft(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1168
1129
|
}
|
|
1169
1130
|
function pn(e, t, r) {
|
|
1170
1131
|
var n = {};
|
|
1171
|
-
return r.isMergeableObject(e) &&
|
|
1172
|
-
n[i] =
|
|
1173
|
-
}),
|
|
1174
|
-
mn(e, i) || (
|
|
1132
|
+
return r.isMergeableObject(e) && mt(e).forEach(function(i) {
|
|
1133
|
+
n[i] = te(e[i], r);
|
|
1134
|
+
}), mt(t).forEach(function(i) {
|
|
1135
|
+
mn(e, i) || (Ft(e, i) && r.isMergeableObject(t[i]) ? n[i] = cn(i, r)(e[i], t[i], r) : n[i] = te(t[i], r));
|
|
1175
1136
|
}), n;
|
|
1176
1137
|
}
|
|
1177
|
-
function
|
|
1178
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || ln, r.isMergeableObject = r.isMergeableObject || rn, r.cloneUnlessOtherwiseSpecified =
|
|
1138
|
+
function V(e, t, r) {
|
|
1139
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ln, r.isMergeableObject = r.isMergeableObject || rn, r.cloneUnlessOtherwiseSpecified = te;
|
|
1179
1140
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1180
|
-
return o ? n ? r.arrayMerge(e, t, r) : pn(e, t, r) :
|
|
1141
|
+
return o ? n ? r.arrayMerge(e, t, r) : pn(e, t, r) : te(t, r);
|
|
1181
1142
|
}
|
|
1182
|
-
|
|
1143
|
+
V.all = function(t, r) {
|
|
1183
1144
|
if (!Array.isArray(t))
|
|
1184
1145
|
throw new Error("first argument should be an array");
|
|
1185
1146
|
return t.reduce(function(n, i) {
|
|
1186
|
-
return
|
|
1147
|
+
return V(n, i, r);
|
|
1187
1148
|
}, {});
|
|
1188
1149
|
};
|
|
1189
|
-
var dn =
|
|
1150
|
+
var dn = V, bn = dn;
|
|
1190
1151
|
const gn = /* @__PURE__ */ tn(bn);
|
|
1191
|
-
function
|
|
1192
|
-
|
|
1152
|
+
var ke = function(e, t) {
|
|
1153
|
+
return ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1154
|
+
r.__proto__ = n;
|
|
1155
|
+
} || function(r, n) {
|
|
1156
|
+
for (var i in n)
|
|
1157
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1158
|
+
}, ke(e, t);
|
|
1159
|
+
};
|
|
1160
|
+
function ve(e, t) {
|
|
1161
|
+
if (typeof t != "function" && t !== null)
|
|
1162
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1163
|
+
ke(e, t);
|
|
1164
|
+
function r() {
|
|
1165
|
+
this.constructor = e;
|
|
1166
|
+
}
|
|
1167
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1168
|
+
}
|
|
1169
|
+
var L = function() {
|
|
1170
|
+
return L = Object.assign || function(t) {
|
|
1171
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1172
|
+
r = arguments[n];
|
|
1173
|
+
for (var o in r)
|
|
1174
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1175
|
+
}
|
|
1176
|
+
return t;
|
|
1177
|
+
}, L.apply(this, arguments);
|
|
1178
|
+
};
|
|
1179
|
+
function yn(e, t) {
|
|
1180
|
+
var r = {};
|
|
1181
|
+
for (var n in e)
|
|
1182
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1183
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1184
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1185
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1186
|
+
return r;
|
|
1187
|
+
}
|
|
1188
|
+
function Ce(e, t, r) {
|
|
1189
|
+
if (r || arguments.length === 2)
|
|
1190
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1191
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1192
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1193
|
+
}
|
|
1194
|
+
function Ae(e, t) {
|
|
1195
|
+
var r = t && t.cache ? t.cache : Tn, n = t && t.serializer ? t.serializer : wn, i = t && t.strategy ? t.strategy : _n;
|
|
1193
1196
|
return i(e, {
|
|
1194
1197
|
cache: r,
|
|
1195
1198
|
serializer: n
|
|
1196
1199
|
});
|
|
1197
1200
|
}
|
|
1198
|
-
function
|
|
1201
|
+
function vn(e) {
|
|
1199
1202
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1200
1203
|
}
|
|
1201
|
-
function
|
|
1202
|
-
var i =
|
|
1204
|
+
function xn(e, t, r, n) {
|
|
1205
|
+
var i = vn(n) ? n : r(n), o = t.get(i);
|
|
1203
1206
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1204
1207
|
}
|
|
1205
1208
|
function jt(e, t, r) {
|
|
1206
1209
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1207
1210
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1208
1211
|
}
|
|
1209
|
-
function
|
|
1212
|
+
function kt(e, t, r, n, i) {
|
|
1210
1213
|
return r.bind(t, e, n, i);
|
|
1211
1214
|
}
|
|
1212
|
-
function vn(e, t) {
|
|
1213
|
-
var r = e.length === 1 ? Ft : jt;
|
|
1214
|
-
return Je(e, this, r, t.cache.create(), t.serializer);
|
|
1215
|
-
}
|
|
1216
|
-
function xn(e, t) {
|
|
1217
|
-
return Je(e, this, jt, t.cache.create(), t.serializer);
|
|
1218
|
-
}
|
|
1219
1215
|
function _n(e, t) {
|
|
1220
|
-
|
|
1216
|
+
var r = e.length === 1 ? xn : jt;
|
|
1217
|
+
return kt(e, this, r, t.cache.create(), t.serializer);
|
|
1221
1218
|
}
|
|
1222
|
-
|
|
1223
|
-
return
|
|
1224
|
-
};
|
|
1225
|
-
function Ye() {
|
|
1226
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1219
|
+
function En(e, t) {
|
|
1220
|
+
return kt(e, this, jt, t.cache.create(), t.serializer);
|
|
1227
1221
|
}
|
|
1228
|
-
|
|
1229
|
-
return
|
|
1230
|
-
}
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1222
|
+
var wn = function() {
|
|
1223
|
+
return JSON.stringify(arguments);
|
|
1224
|
+
}, Sn = (
|
|
1225
|
+
/** @class */
|
|
1226
|
+
function() {
|
|
1227
|
+
function e() {
|
|
1228
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1229
|
+
}
|
|
1230
|
+
return e.prototype.get = function(t) {
|
|
1231
|
+
return this.cache[t];
|
|
1232
|
+
}, e.prototype.set = function(t, r) {
|
|
1233
|
+
this.cache[t] = r;
|
|
1234
|
+
}, e;
|
|
1235
|
+
}()
|
|
1236
|
+
), Tn = {
|
|
1235
1237
|
create: function() {
|
|
1236
|
-
return new
|
|
1238
|
+
return new Sn();
|
|
1237
1239
|
}
|
|
1238
|
-
},
|
|
1239
|
-
variadic:
|
|
1240
|
-
|
|
1241
|
-
|
|
1240
|
+
}, Pe = {
|
|
1241
|
+
variadic: En
|
|
1242
|
+
}, me = function() {
|
|
1243
|
+
return me = Object.assign || function(t) {
|
|
1244
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1245
|
+
r = arguments[n];
|
|
1246
|
+
for (var o in r)
|
|
1247
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1248
|
+
}
|
|
1249
|
+
return t;
|
|
1250
|
+
}, me.apply(this, arguments);
|
|
1251
|
+
};
|
|
1252
|
+
var d;
|
|
1242
1253
|
(function(e) {
|
|
1243
1254
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
1244
1255
|
})(d || (d = {}));
|
|
1245
|
-
var
|
|
1256
|
+
var v;
|
|
1246
1257
|
(function(e) {
|
|
1247
1258
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1248
|
-
})(
|
|
1249
|
-
var
|
|
1259
|
+
})(v || (v = {}));
|
|
1260
|
+
var X;
|
|
1250
1261
|
(function(e) {
|
|
1251
1262
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1252
|
-
})(
|
|
1253
|
-
function
|
|
1254
|
-
return e.type ===
|
|
1255
|
-
}
|
|
1256
|
-
function Sn(e) {
|
|
1257
|
-
return e.type === x.argument;
|
|
1263
|
+
})(X || (X = {}));
|
|
1264
|
+
function pt(e) {
|
|
1265
|
+
return e.type === v.literal;
|
|
1258
1266
|
}
|
|
1259
|
-
function
|
|
1260
|
-
return e.type ===
|
|
1267
|
+
function Hn(e) {
|
|
1268
|
+
return e.type === v.argument;
|
|
1261
1269
|
}
|
|
1262
1270
|
function Vt(e) {
|
|
1263
|
-
return e.type ===
|
|
1271
|
+
return e.type === v.number;
|
|
1264
1272
|
}
|
|
1265
1273
|
function Xt(e) {
|
|
1266
|
-
return e.type ===
|
|
1274
|
+
return e.type === v.date;
|
|
1267
1275
|
}
|
|
1268
1276
|
function Wt(e) {
|
|
1269
|
-
return e.type ===
|
|
1277
|
+
return e.type === v.time;
|
|
1270
1278
|
}
|
|
1271
1279
|
function zt(e) {
|
|
1272
|
-
return e.type ===
|
|
1273
|
-
}
|
|
1274
|
-
function Tn(e) {
|
|
1275
|
-
return e.type === x.pound;
|
|
1280
|
+
return e.type === v.select;
|
|
1276
1281
|
}
|
|
1277
1282
|
function Zt(e) {
|
|
1278
|
-
return e.type ===
|
|
1283
|
+
return e.type === v.plural;
|
|
1284
|
+
}
|
|
1285
|
+
function Bn(e) {
|
|
1286
|
+
return e.type === v.pound;
|
|
1279
1287
|
}
|
|
1280
1288
|
function Qt(e) {
|
|
1281
|
-
return
|
|
1289
|
+
return e.type === v.tag;
|
|
1282
1290
|
}
|
|
1283
|
-
function
|
|
1284
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1291
|
+
function Jt(e) {
|
|
1292
|
+
return !!(e && typeof e == "object" && e.type === X.number);
|
|
1285
1293
|
}
|
|
1286
|
-
|
|
1287
|
-
|
|
1294
|
+
function Ve(e) {
|
|
1295
|
+
return !!(e && typeof e == "object" && e.type === X.dateTime);
|
|
1296
|
+
}
|
|
1297
|
+
var Yt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Cn = /(?:[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;
|
|
1298
|
+
function An(e) {
|
|
1288
1299
|
var t = {};
|
|
1289
|
-
return e.replace(
|
|
1300
|
+
return e.replace(Cn, function(r) {
|
|
1290
1301
|
var n = r.length;
|
|
1291
1302
|
switch (r[0]) {
|
|
1292
1303
|
case "G":
|
|
@@ -1375,36 +1386,46 @@ function Bn(e) {
|
|
|
1375
1386
|
return "";
|
|
1376
1387
|
}), t;
|
|
1377
1388
|
}
|
|
1378
|
-
var
|
|
1379
|
-
function
|
|
1389
|
+
var _ = function() {
|
|
1390
|
+
return _ = Object.assign || function(t) {
|
|
1391
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1392
|
+
r = arguments[n];
|
|
1393
|
+
for (var o in r)
|
|
1394
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1395
|
+
}
|
|
1396
|
+
return t;
|
|
1397
|
+
}, _.apply(this, arguments);
|
|
1398
|
+
};
|
|
1399
|
+
var Pn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1400
|
+
function On(e) {
|
|
1380
1401
|
if (e.length === 0)
|
|
1381
1402
|
throw new Error("Number skeleton cannot be empty");
|
|
1382
|
-
for (var t = e.split(
|
|
1403
|
+
for (var t = e.split(Pn).filter(function(f) {
|
|
1383
1404
|
return f.length > 0;
|
|
1384
1405
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1385
|
-
var o = i[n],
|
|
1386
|
-
if (
|
|
1406
|
+
var o = i[n], s = o.split("/");
|
|
1407
|
+
if (s.length === 0)
|
|
1387
1408
|
throw new Error("Invalid number skeleton");
|
|
1388
|
-
for (var
|
|
1409
|
+
for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1389
1410
|
var c = l[u];
|
|
1390
1411
|
if (c.length === 0)
|
|
1391
1412
|
throw new Error("Invalid number skeleton");
|
|
1392
1413
|
}
|
|
1393
|
-
r.push({ stem:
|
|
1414
|
+
r.push({ stem: a, options: h });
|
|
1394
1415
|
}
|
|
1395
1416
|
return r;
|
|
1396
1417
|
}
|
|
1397
|
-
function
|
|
1418
|
+
function Ln(e) {
|
|
1398
1419
|
return e.replace(/^(.*?)-/, "");
|
|
1399
1420
|
}
|
|
1400
|
-
var
|
|
1401
|
-
function
|
|
1421
|
+
var dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, qt = /^(@+)?(\+|#+)?[rs]?$/g, In = /(\*)(0+)|(#+)(0+)|(0+)/g, Kt = /^(0+)$/;
|
|
1422
|
+
function bt(e) {
|
|
1402
1423
|
var t = {};
|
|
1403
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1424
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(qt, function(r, n, i) {
|
|
1404
1425
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1405
1426
|
}), t;
|
|
1406
1427
|
}
|
|
1407
|
-
function
|
|
1428
|
+
function er(e) {
|
|
1408
1429
|
switch (e) {
|
|
1409
1430
|
case "sign-auto":
|
|
1410
1431
|
return {
|
|
@@ -1444,7 +1465,7 @@ function Kt(e) {
|
|
|
1444
1465
|
};
|
|
1445
1466
|
}
|
|
1446
1467
|
}
|
|
1447
|
-
function
|
|
1468
|
+
function Mn(e) {
|
|
1448
1469
|
var t;
|
|
1449
1470
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1450
1471
|
notation: "engineering"
|
|
@@ -1452,17 +1473,17 @@ function On(e) {
|
|
|
1452
1473
|
notation: "scientific"
|
|
1453
1474
|
}, e = e.slice(1)), t) {
|
|
1454
1475
|
var r = e.slice(0, 2);
|
|
1455
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1476
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Kt.test(e))
|
|
1456
1477
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1457
1478
|
t.minimumIntegerDigits = e.length;
|
|
1458
1479
|
}
|
|
1459
1480
|
return t;
|
|
1460
1481
|
}
|
|
1461
|
-
function
|
|
1462
|
-
var t = {}, r =
|
|
1482
|
+
function gt(e) {
|
|
1483
|
+
var t = {}, r = er(e);
|
|
1463
1484
|
return r || t;
|
|
1464
1485
|
}
|
|
1465
|
-
function
|
|
1486
|
+
function Nn(e) {
|
|
1466
1487
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1467
1488
|
var i = n[r];
|
|
1468
1489
|
switch (i.stem) {
|
|
@@ -1486,7 +1507,7 @@ function In(e) {
|
|
|
1486
1507
|
continue;
|
|
1487
1508
|
case "measure-unit":
|
|
1488
1509
|
case "unit":
|
|
1489
|
-
t.style = "unit", t.unit =
|
|
1510
|
+
t.style = "unit", t.unit = Ln(i.options[0]);
|
|
1490
1511
|
continue;
|
|
1491
1512
|
case "compact-short":
|
|
1492
1513
|
case "K":
|
|
@@ -1497,13 +1518,13 @@ function In(e) {
|
|
|
1497
1518
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1498
1519
|
continue;
|
|
1499
1520
|
case "scientific":
|
|
1500
|
-
t =
|
|
1501
|
-
return
|
|
1521
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1522
|
+
return _(_({}, h), gt(u));
|
|
1502
1523
|
}, {}));
|
|
1503
1524
|
continue;
|
|
1504
1525
|
case "engineering":
|
|
1505
|
-
t =
|
|
1506
|
-
return
|
|
1526
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1527
|
+
return _(_({}, h), gt(u));
|
|
1507
1528
|
}, {}));
|
|
1508
1529
|
continue;
|
|
1509
1530
|
case "notation-simple":
|
|
@@ -1548,7 +1569,7 @@ function In(e) {
|
|
|
1548
1569
|
case "integer-width":
|
|
1549
1570
|
if (i.options.length > 1)
|
|
1550
1571
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1551
|
-
i.options[0].replace(
|
|
1572
|
+
i.options[0].replace(In, function(h, u, l, c, f, p) {
|
|
1552
1573
|
if (u)
|
|
1553
1574
|
t.minimumIntegerDigits = l.length;
|
|
1554
1575
|
else {
|
|
@@ -1561,28 +1582,28 @@ function In(e) {
|
|
|
1561
1582
|
});
|
|
1562
1583
|
continue;
|
|
1563
1584
|
}
|
|
1564
|
-
if (
|
|
1585
|
+
if (Kt.test(i.stem)) {
|
|
1565
1586
|
t.minimumIntegerDigits = i.stem.length;
|
|
1566
1587
|
continue;
|
|
1567
1588
|
}
|
|
1568
|
-
if (
|
|
1589
|
+
if (dt.test(i.stem)) {
|
|
1569
1590
|
if (i.options.length > 1)
|
|
1570
1591
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1571
|
-
i.stem.replace(
|
|
1592
|
+
i.stem.replace(dt, function(h, u, l, c, f, p) {
|
|
1572
1593
|
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1573
1594
|
});
|
|
1574
1595
|
var o = i.options[0];
|
|
1575
|
-
o === "w" ? t =
|
|
1596
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), bt(o)));
|
|
1576
1597
|
continue;
|
|
1577
1598
|
}
|
|
1578
|
-
if (
|
|
1579
|
-
t =
|
|
1599
|
+
if (qt.test(i.stem)) {
|
|
1600
|
+
t = _(_({}, t), bt(i.stem));
|
|
1580
1601
|
continue;
|
|
1581
1602
|
}
|
|
1582
|
-
var
|
|
1583
|
-
|
|
1584
|
-
var
|
|
1585
|
-
|
|
1603
|
+
var s = er(i.stem);
|
|
1604
|
+
s && (t = _(_({}, t), s));
|
|
1605
|
+
var a = Mn(i.stem);
|
|
1606
|
+
a && (t = _(_({}, t), a));
|
|
1586
1607
|
}
|
|
1587
1608
|
return t;
|
|
1588
1609
|
}
|
|
@@ -3001,23 +3022,23 @@ var se = {
|
|
|
3001
3022
|
"h"
|
|
3002
3023
|
]
|
|
3003
3024
|
};
|
|
3004
|
-
function
|
|
3025
|
+
function $n(e, t) {
|
|
3005
3026
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3006
3027
|
var i = e.charAt(n);
|
|
3007
3028
|
if (i === "j") {
|
|
3008
3029
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3009
3030
|
o++, n++;
|
|
3010
|
-
var
|
|
3011
|
-
for ((u == "H" || u == "k") && (
|
|
3031
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Rn(t);
|
|
3032
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3012
3033
|
r += h;
|
|
3013
|
-
for (;
|
|
3034
|
+
for (; s-- > 0; )
|
|
3014
3035
|
r = u + r;
|
|
3015
3036
|
} else
|
|
3016
3037
|
i === "J" ? r += "H" : r += i;
|
|
3017
3038
|
}
|
|
3018
3039
|
return r;
|
|
3019
3040
|
}
|
|
3020
|
-
function
|
|
3041
|
+
function Rn(e) {
|
|
3021
3042
|
var t = e.hourCycle;
|
|
3022
3043
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3023
3044
|
e.hourCycles && // @ts-ignore
|
|
@@ -3039,20 +3060,20 @@ function Nn(e) {
|
|
|
3039
3060
|
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
3040
3061
|
return i[0];
|
|
3041
3062
|
}
|
|
3042
|
-
var
|
|
3063
|
+
var Oe, Gn = new RegExp("^".concat(Yt.source, "*")), Un = new RegExp("".concat(Yt.source, "*$"));
|
|
3043
3064
|
function g(e, t) {
|
|
3044
3065
|
return { start: e, end: t };
|
|
3045
3066
|
}
|
|
3046
|
-
var
|
|
3067
|
+
var Dn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fn = !!String.fromCodePoint, jn = !!Object.fromEntries, kn = !!String.prototype.codePointAt, Vn = !!String.prototype.trimStart, Xn = !!String.prototype.trimEnd, Wn = !!Number.isSafeInteger, zn = Wn ? Number.isSafeInteger : function(e) {
|
|
3047
3068
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3048
|
-
},
|
|
3069
|
+
}, Xe = !0;
|
|
3049
3070
|
try {
|
|
3050
|
-
var
|
|
3051
|
-
|
|
3071
|
+
var Zn = rr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3072
|
+
Xe = ((Oe = Zn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
3052
3073
|
} catch {
|
|
3053
|
-
|
|
3074
|
+
Xe = !1;
|
|
3054
3075
|
}
|
|
3055
|
-
var
|
|
3076
|
+
var yt = Dn ? (
|
|
3056
3077
|
// Native
|
|
3057
3078
|
function(t, r, n) {
|
|
3058
3079
|
return t.startsWith(r, n);
|
|
@@ -3062,31 +3083,31 @@ var bt = Gn ? (
|
|
|
3062
3083
|
function(t, r, n) {
|
|
3063
3084
|
return t.slice(n, n + r.length) === r;
|
|
3064
3085
|
}
|
|
3065
|
-
),
|
|
3086
|
+
), We = Fn ? String.fromCodePoint : (
|
|
3066
3087
|
// IE11
|
|
3067
3088
|
function() {
|
|
3068
3089
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
3069
3090
|
t[r] = arguments[r];
|
|
3070
|
-
for (var n = "", i = t.length, o = 0,
|
|
3071
|
-
if (
|
|
3072
|
-
throw RangeError(
|
|
3073
|
-
n +=
|
|
3091
|
+
for (var n = "", i = t.length, o = 0, s; i > o; ) {
|
|
3092
|
+
if (s = t[o++], s > 1114111)
|
|
3093
|
+
throw RangeError(s + " is not a valid code point");
|
|
3094
|
+
n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
|
3074
3095
|
}
|
|
3075
3096
|
return n;
|
|
3076
3097
|
}
|
|
3077
|
-
),
|
|
3098
|
+
), vt = (
|
|
3078
3099
|
// native
|
|
3079
|
-
|
|
3100
|
+
jn ? Object.fromEntries : (
|
|
3080
3101
|
// Ponyfill
|
|
3081
3102
|
function(t) {
|
|
3082
3103
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
3083
|
-
var o = i[n],
|
|
3084
|
-
r[
|
|
3104
|
+
var o = i[n], s = o[0], a = o[1];
|
|
3105
|
+
r[s] = a;
|
|
3085
3106
|
}
|
|
3086
3107
|
return r;
|
|
3087
3108
|
}
|
|
3088
3109
|
)
|
|
3089
|
-
),
|
|
3110
|
+
), tr = kn ? (
|
|
3090
3111
|
// Native
|
|
3091
3112
|
function(t, r) {
|
|
3092
3113
|
return t.codePointAt(r);
|
|
@@ -3100,7 +3121,7 @@ var bt = Gn ? (
|
|
|
3100
3121
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3101
3122
|
}
|
|
3102
3123
|
}
|
|
3103
|
-
),
|
|
3124
|
+
), Qn = Vn ? (
|
|
3104
3125
|
// Native
|
|
3105
3126
|
function(t) {
|
|
3106
3127
|
return t.trimStart();
|
|
@@ -3108,9 +3129,9 @@ var bt = Gn ? (
|
|
|
3108
3129
|
) : (
|
|
3109
3130
|
// Ponyfill
|
|
3110
3131
|
function(t) {
|
|
3111
|
-
return t.replace(
|
|
3132
|
+
return t.replace(Gn, "");
|
|
3112
3133
|
}
|
|
3113
|
-
),
|
|
3134
|
+
), Jn = Xn ? (
|
|
3114
3135
|
// Native
|
|
3115
3136
|
function(t) {
|
|
3116
3137
|
return t.trimEnd();
|
|
@@ -3118,32 +3139,32 @@ var bt = Gn ? (
|
|
|
3118
3139
|
) : (
|
|
3119
3140
|
// Ponyfill
|
|
3120
3141
|
function(t) {
|
|
3121
|
-
return t.replace(
|
|
3142
|
+
return t.replace(Un, "");
|
|
3122
3143
|
}
|
|
3123
3144
|
);
|
|
3124
|
-
function
|
|
3145
|
+
function rr(e, t) {
|
|
3125
3146
|
return new RegExp(e, t);
|
|
3126
3147
|
}
|
|
3127
|
-
var
|
|
3128
|
-
if (
|
|
3129
|
-
var
|
|
3130
|
-
|
|
3148
|
+
var ze;
|
|
3149
|
+
if (Xe) {
|
|
3150
|
+
var xt = rr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3151
|
+
ze = function(t, r) {
|
|
3131
3152
|
var n;
|
|
3132
|
-
|
|
3133
|
-
var i =
|
|
3153
|
+
xt.lastIndex = r;
|
|
3154
|
+
var i = xt.exec(t);
|
|
3134
3155
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3135
3156
|
};
|
|
3136
3157
|
} else
|
|
3137
|
-
|
|
3158
|
+
ze = function(t, r) {
|
|
3138
3159
|
for (var n = []; ; ) {
|
|
3139
|
-
var i =
|
|
3140
|
-
if (i === void 0 ||
|
|
3160
|
+
var i = tr(t, r);
|
|
3161
|
+
if (i === void 0 || nr(i) || ei(i))
|
|
3141
3162
|
break;
|
|
3142
3163
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3143
3164
|
}
|
|
3144
|
-
return
|
|
3165
|
+
return We.apply(void 0, n);
|
|
3145
3166
|
};
|
|
3146
|
-
var
|
|
3167
|
+
var Yn = (
|
|
3147
3168
|
/** @class */
|
|
3148
3169
|
function() {
|
|
3149
3170
|
function e(t, r) {
|
|
@@ -3157,33 +3178,33 @@ var Qn = (
|
|
|
3157
3178
|
for (var i = []; !this.isEOF(); ) {
|
|
3158
3179
|
var o = this.char();
|
|
3159
3180
|
if (o === 123) {
|
|
3160
|
-
var
|
|
3161
|
-
if (
|
|
3162
|
-
return
|
|
3163
|
-
i.push(
|
|
3181
|
+
var s = this.parseArgument(t, n);
|
|
3182
|
+
if (s.err)
|
|
3183
|
+
return s;
|
|
3184
|
+
i.push(s.val);
|
|
3164
3185
|
} else {
|
|
3165
3186
|
if (o === 125 && t > 0)
|
|
3166
3187
|
break;
|
|
3167
3188
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3168
|
-
var
|
|
3189
|
+
var a = this.clonePosition();
|
|
3169
3190
|
this.bump(), i.push({
|
|
3170
|
-
type:
|
|
3171
|
-
location: g(
|
|
3191
|
+
type: v.pound,
|
|
3192
|
+
location: g(a, this.clonePosition())
|
|
3172
3193
|
});
|
|
3173
3194
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3174
3195
|
if (n)
|
|
3175
3196
|
break;
|
|
3176
3197
|
return this.error(d.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3177
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3178
|
-
var
|
|
3179
|
-
if (
|
|
3180
|
-
return
|
|
3181
|
-
i.push(
|
|
3198
|
+
} else if (o === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
|
|
3199
|
+
var s = this.parseTag(t, r);
|
|
3200
|
+
if (s.err)
|
|
3201
|
+
return s;
|
|
3202
|
+
i.push(s.val);
|
|
3182
3203
|
} else {
|
|
3183
|
-
var
|
|
3184
|
-
if (
|
|
3185
|
-
return
|
|
3186
|
-
i.push(
|
|
3204
|
+
var s = this.parseLiteral(t, r);
|
|
3205
|
+
if (s.err)
|
|
3206
|
+
return s;
|
|
3207
|
+
i.push(s.val);
|
|
3187
3208
|
}
|
|
3188
3209
|
}
|
|
3189
3210
|
}
|
|
@@ -3195,7 +3216,7 @@ var Qn = (
|
|
|
3195
3216
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3196
3217
|
return {
|
|
3197
3218
|
val: {
|
|
3198
|
-
type:
|
|
3219
|
+
type: v.literal,
|
|
3199
3220
|
value: "<".concat(i, "/>"),
|
|
3200
3221
|
location: g(n, this.clonePosition())
|
|
3201
3222
|
},
|
|
@@ -3205,27 +3226,27 @@ var Qn = (
|
|
|
3205
3226
|
var o = this.parseMessage(t + 1, r, !0);
|
|
3206
3227
|
if (o.err)
|
|
3207
3228
|
return o;
|
|
3208
|
-
var
|
|
3229
|
+
var s = o.val, a = this.clonePosition();
|
|
3209
3230
|
if (this.bumpIf("</")) {
|
|
3210
|
-
if (this.isEOF() || !
|
|
3211
|
-
return this.error(d.INVALID_TAG, g(
|
|
3231
|
+
if (this.isEOF() || !Ze(this.char()))
|
|
3232
|
+
return this.error(d.INVALID_TAG, g(a, this.clonePosition()));
|
|
3212
3233
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3213
3234
|
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3214
3235
|
val: {
|
|
3215
|
-
type:
|
|
3236
|
+
type: v.tag,
|
|
3216
3237
|
value: i,
|
|
3217
|
-
children:
|
|
3238
|
+
children: s,
|
|
3218
3239
|
location: g(n, this.clonePosition())
|
|
3219
3240
|
},
|
|
3220
3241
|
err: null
|
|
3221
|
-
} : this.error(d.INVALID_TAG, g(
|
|
3242
|
+
} : this.error(d.INVALID_TAG, g(a, this.clonePosition())));
|
|
3222
3243
|
} else
|
|
3223
3244
|
return this.error(d.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
3224
3245
|
} else
|
|
3225
3246
|
return this.error(d.INVALID_TAG, g(n, this.clonePosition()));
|
|
3226
3247
|
}, e.prototype.parseTagName = function() {
|
|
3227
3248
|
var t = this.offset();
|
|
3228
|
-
for (this.bump(); !this.isEOF() &&
|
|
3249
|
+
for (this.bump(); !this.isEOF() && Kn(this.char()); )
|
|
3229
3250
|
this.bump();
|
|
3230
3251
|
return this.message.slice(t, this.offset());
|
|
3231
3252
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3235,26 +3256,26 @@ var Qn = (
|
|
|
3235
3256
|
i += o;
|
|
3236
3257
|
continue;
|
|
3237
3258
|
}
|
|
3238
|
-
var
|
|
3239
|
-
if (a) {
|
|
3240
|
-
i += a;
|
|
3241
|
-
continue;
|
|
3242
|
-
}
|
|
3243
|
-
var s = this.tryParseLeftAngleBracket();
|
|
3259
|
+
var s = this.tryParseUnquoted(t, r);
|
|
3244
3260
|
if (s) {
|
|
3245
3261
|
i += s;
|
|
3246
3262
|
continue;
|
|
3247
3263
|
}
|
|
3264
|
+
var a = this.tryParseLeftAngleBracket();
|
|
3265
|
+
if (a) {
|
|
3266
|
+
i += a;
|
|
3267
|
+
continue;
|
|
3268
|
+
}
|
|
3248
3269
|
break;
|
|
3249
3270
|
}
|
|
3250
3271
|
var h = g(n, this.clonePosition());
|
|
3251
3272
|
return {
|
|
3252
|
-
val: { type:
|
|
3273
|
+
val: { type: v.literal, value: i, location: h },
|
|
3253
3274
|
err: null
|
|
3254
3275
|
};
|
|
3255
3276
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3256
3277
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3257
|
-
!
|
|
3278
|
+
!qn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3258
3279
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3259
3280
|
if (this.isEOF() || this.char() !== 39)
|
|
3260
3281
|
return null;
|
|
@@ -3288,12 +3309,12 @@ var Qn = (
|
|
|
3288
3309
|
r.push(n);
|
|
3289
3310
|
this.bump();
|
|
3290
3311
|
}
|
|
3291
|
-
return
|
|
3312
|
+
return We.apply(void 0, r);
|
|
3292
3313
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3293
3314
|
if (this.isEOF())
|
|
3294
3315
|
return null;
|
|
3295
3316
|
var n = this.char();
|
|
3296
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3317
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), We(n));
|
|
3297
3318
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3298
3319
|
var n = this.clonePosition();
|
|
3299
3320
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3309,7 +3330,7 @@ var Qn = (
|
|
|
3309
3330
|
case 125:
|
|
3310
3331
|
return this.bump(), {
|
|
3311
3332
|
val: {
|
|
3312
|
-
type:
|
|
3333
|
+
type: v.argument,
|
|
3313
3334
|
// value does not include the opening and closing braces.
|
|
3314
3335
|
value: i,
|
|
3315
3336
|
location: g(n, this.clonePosition())
|
|
@@ -3322,15 +3343,15 @@ var Qn = (
|
|
|
3322
3343
|
return this.error(d.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3323
3344
|
}
|
|
3324
3345
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3325
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3346
|
+
var t = this.clonePosition(), r = this.offset(), n = ze(this.message, r), i = r + n.length;
|
|
3326
3347
|
this.bumpTo(i);
|
|
3327
|
-
var o = this.clonePosition(),
|
|
3328
|
-
return { value: n, location:
|
|
3348
|
+
var o = this.clonePosition(), s = g(t, o);
|
|
3349
|
+
return { value: n, location: s };
|
|
3329
3350
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3330
|
-
var o,
|
|
3331
|
-
switch (
|
|
3351
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3352
|
+
switch (a) {
|
|
3332
3353
|
case "":
|
|
3333
|
-
return this.error(d.EXPECT_ARGUMENT_TYPE, g(
|
|
3354
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, g(s, h));
|
|
3334
3355
|
case "number":
|
|
3335
3356
|
case "date":
|
|
3336
3357
|
case "time": {
|
|
@@ -3341,7 +3362,7 @@ var Qn = (
|
|
|
3341
3362
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3342
3363
|
if (c.err)
|
|
3343
3364
|
return c;
|
|
3344
|
-
var f =
|
|
3365
|
+
var f = Jn(c.val);
|
|
3345
3366
|
if (f.length === 0)
|
|
3346
3367
|
return this.error(d.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3347
3368
|
var p = g(l, this.clonePosition());
|
|
@@ -3351,25 +3372,25 @@ var Qn = (
|
|
|
3351
3372
|
if (m.err)
|
|
3352
3373
|
return m;
|
|
3353
3374
|
var y = g(i, this.clonePosition());
|
|
3354
|
-
if (u &&
|
|
3355
|
-
var E =
|
|
3356
|
-
if (
|
|
3375
|
+
if (u && yt(u?.style, "::", 0)) {
|
|
3376
|
+
var E = Qn(u.style.slice(2));
|
|
3377
|
+
if (a === "number") {
|
|
3357
3378
|
var c = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
3358
3379
|
return c.err ? c : {
|
|
3359
|
-
val: { type:
|
|
3380
|
+
val: { type: v.number, value: n, location: y, style: c.val },
|
|
3360
3381
|
err: null
|
|
3361
3382
|
};
|
|
3362
3383
|
} else {
|
|
3363
3384
|
if (E.length === 0)
|
|
3364
3385
|
return this.error(d.EXPECT_DATE_TIME_SKELETON, y);
|
|
3365
3386
|
var A = E;
|
|
3366
|
-
this.locale && (A =
|
|
3387
|
+
this.locale && (A = $n(E, this.locale));
|
|
3367
3388
|
var f = {
|
|
3368
|
-
type:
|
|
3389
|
+
type: X.dateTime,
|
|
3369
3390
|
pattern: A,
|
|
3370
3391
|
location: u.styleLocation,
|
|
3371
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3372
|
-
}, P =
|
|
3392
|
+
parsedOptions: this.shouldParseSkeletons ? An(A) : {}
|
|
3393
|
+
}, P = a === "date" ? v.date : v.time;
|
|
3373
3394
|
return {
|
|
3374
3395
|
val: { type: P, value: n, location: y, style: f },
|
|
3375
3396
|
err: null
|
|
@@ -3378,7 +3399,7 @@ var Qn = (
|
|
|
3378
3399
|
}
|
|
3379
3400
|
return {
|
|
3380
3401
|
val: {
|
|
3381
|
-
type:
|
|
3402
|
+
type: a === "number" ? v.number : a === "date" ? v.date : v.time,
|
|
3382
3403
|
value: n,
|
|
3383
3404
|
location: y,
|
|
3384
3405
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3391,47 +3412,47 @@ var Qn = (
|
|
|
3391
3412
|
case "select": {
|
|
3392
3413
|
var T = this.clonePosition();
|
|
3393
3414
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3394
|
-
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, g(T,
|
|
3415
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, g(T, me({}, T)));
|
|
3395
3416
|
this.bumpSpace();
|
|
3396
|
-
var
|
|
3397
|
-
if (
|
|
3417
|
+
var O = this.parseIdentifierIfPossible(), w = 0;
|
|
3418
|
+
if (a !== "select" && O.value === "offset") {
|
|
3398
3419
|
if (!this.bumpIf(":"))
|
|
3399
3420
|
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
3400
3421
|
this.bumpSpace();
|
|
3401
3422
|
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3402
3423
|
if (c.err)
|
|
3403
3424
|
return c;
|
|
3404
|
-
this.bumpSpace(),
|
|
3425
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), w = c.val;
|
|
3405
3426
|
}
|
|
3406
|
-
var
|
|
3407
|
-
if (
|
|
3408
|
-
return
|
|
3427
|
+
var x = this.tryParsePluralOrSelectOptions(t, a, r, O);
|
|
3428
|
+
if (x.err)
|
|
3429
|
+
return x;
|
|
3409
3430
|
var m = this.tryParseArgumentClose(i);
|
|
3410
3431
|
if (m.err)
|
|
3411
3432
|
return m;
|
|
3412
3433
|
var C = g(i, this.clonePosition());
|
|
3413
|
-
return
|
|
3434
|
+
return a === "select" ? {
|
|
3414
3435
|
val: {
|
|
3415
|
-
type:
|
|
3436
|
+
type: v.select,
|
|
3416
3437
|
value: n,
|
|
3417
|
-
options:
|
|
3438
|
+
options: vt(x.val),
|
|
3418
3439
|
location: C
|
|
3419
3440
|
},
|
|
3420
3441
|
err: null
|
|
3421
3442
|
} : {
|
|
3422
3443
|
val: {
|
|
3423
|
-
type:
|
|
3444
|
+
type: v.plural,
|
|
3424
3445
|
value: n,
|
|
3425
|
-
options:
|
|
3446
|
+
options: vt(x.val),
|
|
3426
3447
|
offset: w,
|
|
3427
|
-
pluralType:
|
|
3448
|
+
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3428
3449
|
location: C
|
|
3429
3450
|
},
|
|
3430
3451
|
err: null
|
|
3431
3452
|
};
|
|
3432
3453
|
}
|
|
3433
3454
|
default:
|
|
3434
|
-
return this.error(d.INVALID_ARGUMENT_TYPE, g(
|
|
3455
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, g(s, h));
|
|
3435
3456
|
}
|
|
3436
3457
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3437
3458
|
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3473,21 +3494,21 @@ var Qn = (
|
|
|
3473
3494
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3474
3495
|
var n = [];
|
|
3475
3496
|
try {
|
|
3476
|
-
n =
|
|
3497
|
+
n = On(t);
|
|
3477
3498
|
} catch {
|
|
3478
3499
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3479
3500
|
}
|
|
3480
3501
|
return {
|
|
3481
3502
|
val: {
|
|
3482
|
-
type:
|
|
3503
|
+
type: X.number,
|
|
3483
3504
|
tokens: n,
|
|
3484
3505
|
location: r,
|
|
3485
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3506
|
+
parsedOptions: this.shouldParseSkeletons ? Nn(n) : {}
|
|
3486
3507
|
},
|
|
3487
3508
|
err: null
|
|
3488
3509
|
};
|
|
3489
3510
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3490
|
-
for (var o,
|
|
3511
|
+
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3491
3512
|
if (u.length === 0) {
|
|
3492
3513
|
var c = this.clonePosition();
|
|
3493
3514
|
if (r !== "select" && this.bumpIf("=")) {
|
|
@@ -3500,7 +3521,7 @@ var Qn = (
|
|
|
3500
3521
|
}
|
|
3501
3522
|
if (h.has(u))
|
|
3502
3523
|
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3503
|
-
u === "other" && (
|
|
3524
|
+
u === "other" && (s = !0), this.bumpSpace();
|
|
3504
3525
|
var p = this.clonePosition();
|
|
3505
3526
|
if (!this.bumpIf("{"))
|
|
3506
3527
|
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
@@ -3510,7 +3531,7 @@ var Qn = (
|
|
|
3510
3531
|
var y = this.tryParseArgumentClose(p);
|
|
3511
3532
|
if (y.err)
|
|
3512
3533
|
return y;
|
|
3513
|
-
|
|
3534
|
+
a.push([
|
|
3514
3535
|
u,
|
|
3515
3536
|
{
|
|
3516
3537
|
value: m.val,
|
|
@@ -3518,19 +3539,19 @@ var Qn = (
|
|
|
3518
3539
|
}
|
|
3519
3540
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3520
3541
|
}
|
|
3521
|
-
return
|
|
3542
|
+
return a.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(d.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3522
3543
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3523
3544
|
var n = 1, i = this.clonePosition();
|
|
3524
3545
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3525
|
-
for (var o = !1,
|
|
3526
|
-
var
|
|
3527
|
-
if (
|
|
3528
|
-
o = !0,
|
|
3546
|
+
for (var o = !1, s = 0; !this.isEOF(); ) {
|
|
3547
|
+
var a = this.char();
|
|
3548
|
+
if (a >= 48 && a <= 57)
|
|
3549
|
+
o = !0, s = s * 10 + (a - 48), this.bump();
|
|
3529
3550
|
else
|
|
3530
3551
|
break;
|
|
3531
3552
|
}
|
|
3532
3553
|
var h = g(i, this.clonePosition());
|
|
3533
|
-
return o ? (
|
|
3554
|
+
return o ? (s *= n, zn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3534
3555
|
}, e.prototype.offset = function() {
|
|
3535
3556
|
return this.position.offset;
|
|
3536
3557
|
}, e.prototype.isEOF = function() {
|
|
@@ -3545,7 +3566,7 @@ var Qn = (
|
|
|
3545
3566
|
var t = this.position.offset;
|
|
3546
3567
|
if (t >= this.message.length)
|
|
3547
3568
|
throw Error("out of bound");
|
|
3548
|
-
var r =
|
|
3569
|
+
var r = tr(this.message, t);
|
|
3549
3570
|
if (r === void 0)
|
|
3550
3571
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3551
3572
|
return r;
|
|
@@ -3564,7 +3585,7 @@ var Qn = (
|
|
|
3564
3585
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3565
3586
|
}
|
|
3566
3587
|
}, e.prototype.bumpIf = function(t) {
|
|
3567
|
-
if (
|
|
3588
|
+
if (yt(this.message, t, this.offset())) {
|
|
3568
3589
|
for (var r = 0; r < t.length; r++)
|
|
3569
3590
|
this.bump();
|
|
3570
3591
|
return !0;
|
|
@@ -3586,7 +3607,7 @@ var Qn = (
|
|
|
3586
3607
|
break;
|
|
3587
3608
|
}
|
|
3588
3609
|
}, e.prototype.bumpSpace = function() {
|
|
3589
|
-
for (; !this.isEOF() &&
|
|
3610
|
+
for (; !this.isEOF() && nr(this.char()); )
|
|
3590
3611
|
this.bump();
|
|
3591
3612
|
}, e.prototype.peek = function() {
|
|
3592
3613
|
if (this.isEOF())
|
|
@@ -3596,47 +3617,47 @@ var Qn = (
|
|
|
3596
3617
|
}, e;
|
|
3597
3618
|
}()
|
|
3598
3619
|
);
|
|
3599
|
-
function
|
|
3620
|
+
function Ze(e) {
|
|
3600
3621
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3601
3622
|
}
|
|
3602
|
-
function
|
|
3603
|
-
return
|
|
3623
|
+
function qn(e) {
|
|
3624
|
+
return Ze(e) || e === 47;
|
|
3604
3625
|
}
|
|
3605
|
-
function
|
|
3626
|
+
function Kn(e) {
|
|
3606
3627
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3607
3628
|
}
|
|
3608
|
-
function
|
|
3629
|
+
function nr(e) {
|
|
3609
3630
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3610
3631
|
}
|
|
3611
|
-
function
|
|
3632
|
+
function ei(e) {
|
|
3612
3633
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3613
3634
|
}
|
|
3614
|
-
function
|
|
3635
|
+
function Qe(e) {
|
|
3615
3636
|
e.forEach(function(t) {
|
|
3616
|
-
if (delete t.location,
|
|
3637
|
+
if (delete t.location, zt(t) || Zt(t))
|
|
3617
3638
|
for (var r in t.options)
|
|
3618
|
-
delete t.options[r].location,
|
|
3639
|
+
delete t.options[r].location, Qe(t.options[r].value);
|
|
3619
3640
|
else
|
|
3620
|
-
|
|
3641
|
+
Vt(t) && Jt(t.style) || (Xt(t) || Wt(t)) && Ve(t.style) ? delete t.style.location : Qt(t) && Qe(t.children);
|
|
3621
3642
|
});
|
|
3622
3643
|
}
|
|
3623
|
-
function
|
|
3624
|
-
t === void 0 && (t = {}), t =
|
|
3625
|
-
var r = new
|
|
3644
|
+
function ti(e, t) {
|
|
3645
|
+
t === void 0 && (t = {}), t = me({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3646
|
+
var r = new Yn(e, t).parse();
|
|
3626
3647
|
if (r.err) {
|
|
3627
3648
|
var n = SyntaxError(d[r.err.kind]);
|
|
3628
3649
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3629
3650
|
}
|
|
3630
|
-
return t?.captureLocation ||
|
|
3651
|
+
return t?.captureLocation || Qe(r.val), r.val;
|
|
3631
3652
|
}
|
|
3632
|
-
var
|
|
3653
|
+
var W;
|
|
3633
3654
|
(function(e) {
|
|
3634
3655
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3635
|
-
})(
|
|
3636
|
-
var
|
|
3656
|
+
})(W || (W = {}));
|
|
3657
|
+
var xe = (
|
|
3637
3658
|
/** @class */
|
|
3638
3659
|
function(e) {
|
|
3639
|
-
|
|
3660
|
+
ve(t, e);
|
|
3640
3661
|
function t(r, n, i) {
|
|
3641
3662
|
var o = e.call(this, r) || this;
|
|
3642
3663
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3645,65 +3666,65 @@ var ye = (
|
|
|
3645
3666
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3646
3667
|
}, t;
|
|
3647
3668
|
}(Error)
|
|
3648
|
-
),
|
|
3669
|
+
), _t = (
|
|
3649
3670
|
/** @class */
|
|
3650
3671
|
function(e) {
|
|
3651
|
-
|
|
3672
|
+
ve(t, e);
|
|
3652
3673
|
function t(r, n, i, o) {
|
|
3653
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3674
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, o) || this;
|
|
3654
3675
|
}
|
|
3655
3676
|
return t;
|
|
3656
|
-
}(
|
|
3657
|
-
),
|
|
3677
|
+
}(xe)
|
|
3678
|
+
), ri = (
|
|
3658
3679
|
/** @class */
|
|
3659
3680
|
function(e) {
|
|
3660
|
-
|
|
3681
|
+
ve(t, e);
|
|
3661
3682
|
function t(r, n, i) {
|
|
3662
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3683
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), W.INVALID_VALUE, i) || this;
|
|
3663
3684
|
}
|
|
3664
3685
|
return t;
|
|
3665
|
-
}(
|
|
3666
|
-
),
|
|
3686
|
+
}(xe)
|
|
3687
|
+
), ni = (
|
|
3667
3688
|
/** @class */
|
|
3668
3689
|
function(e) {
|
|
3669
|
-
|
|
3690
|
+
ve(t, e);
|
|
3670
3691
|
function t(r, n) {
|
|
3671
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3692
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), W.MISSING_VALUE, n) || this;
|
|
3672
3693
|
}
|
|
3673
3694
|
return t;
|
|
3674
|
-
}(
|
|
3695
|
+
}(xe)
|
|
3675
3696
|
), H;
|
|
3676
3697
|
(function(e) {
|
|
3677
3698
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3678
3699
|
})(H || (H = {}));
|
|
3679
|
-
function
|
|
3700
|
+
function ii(e) {
|
|
3680
3701
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3681
3702
|
var n = t[t.length - 1];
|
|
3682
3703
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3683
3704
|
}, []);
|
|
3684
3705
|
}
|
|
3685
|
-
function
|
|
3706
|
+
function oi(e) {
|
|
3686
3707
|
return typeof e == "function";
|
|
3687
3708
|
}
|
|
3688
|
-
function ce(e, t, r, n, i, o,
|
|
3689
|
-
if (e.length === 1 &&
|
|
3709
|
+
function ce(e, t, r, n, i, o, s) {
|
|
3710
|
+
if (e.length === 1 && pt(e[0]))
|
|
3690
3711
|
return [
|
|
3691
3712
|
{
|
|
3692
3713
|
type: H.literal,
|
|
3693
3714
|
value: e[0].value
|
|
3694
3715
|
}
|
|
3695
3716
|
];
|
|
3696
|
-
for (var
|
|
3717
|
+
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3697
3718
|
var l = u[h];
|
|
3698
|
-
if (
|
|
3699
|
-
|
|
3719
|
+
if (pt(l)) {
|
|
3720
|
+
a.push({
|
|
3700
3721
|
type: H.literal,
|
|
3701
3722
|
value: l.value
|
|
3702
3723
|
});
|
|
3703
3724
|
continue;
|
|
3704
3725
|
}
|
|
3705
|
-
if (
|
|
3706
|
-
typeof o == "number" &&
|
|
3726
|
+
if (Bn(l)) {
|
|
3727
|
+
typeof o == "number" && a.push({
|
|
3707
3728
|
type: H.literal,
|
|
3708
3729
|
value: r.getNumberFormat(t).format(o)
|
|
3709
3730
|
});
|
|
@@ -3711,89 +3732,89 @@ function ce(e, t, r, n, i, o, a) {
|
|
|
3711
3732
|
}
|
|
3712
3733
|
var c = l.value;
|
|
3713
3734
|
if (!(i && c in i))
|
|
3714
|
-
throw new
|
|
3735
|
+
throw new ni(c, s);
|
|
3715
3736
|
var f = i[c];
|
|
3716
|
-
if (
|
|
3717
|
-
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""),
|
|
3737
|
+
if (Hn(l)) {
|
|
3738
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3718
3739
|
type: typeof f == "string" ? H.literal : H.object,
|
|
3719
3740
|
value: f
|
|
3720
3741
|
});
|
|
3721
3742
|
continue;
|
|
3722
3743
|
}
|
|
3723
|
-
if (
|
|
3724
|
-
var p = typeof l.style == "string" ? n.date[l.style] :
|
|
3725
|
-
|
|
3744
|
+
if (Xt(l)) {
|
|
3745
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Ve(l.style) ? l.style.parsedOptions : void 0;
|
|
3746
|
+
a.push({
|
|
3726
3747
|
type: H.literal,
|
|
3727
3748
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3728
3749
|
});
|
|
3729
3750
|
continue;
|
|
3730
3751
|
}
|
|
3731
|
-
if (
|
|
3732
|
-
var p = typeof l.style == "string" ? n.time[l.style] :
|
|
3733
|
-
|
|
3752
|
+
if (Wt(l)) {
|
|
3753
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Ve(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3754
|
+
a.push({
|
|
3734
3755
|
type: H.literal,
|
|
3735
3756
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3736
3757
|
});
|
|
3737
3758
|
continue;
|
|
3738
3759
|
}
|
|
3739
|
-
if (
|
|
3740
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3741
|
-
p && p.scale && (f = f * (p.scale || 1)),
|
|
3760
|
+
if (Vt(l)) {
|
|
3761
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Jt(l.style) ? l.style.parsedOptions : void 0;
|
|
3762
|
+
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3742
3763
|
type: H.literal,
|
|
3743
3764
|
value: r.getNumberFormat(t, p).format(f)
|
|
3744
3765
|
});
|
|
3745
3766
|
continue;
|
|
3746
3767
|
}
|
|
3747
|
-
if (
|
|
3768
|
+
if (Qt(l)) {
|
|
3748
3769
|
var m = l.children, y = l.value, E = i[y];
|
|
3749
|
-
if (!
|
|
3750
|
-
throw new
|
|
3770
|
+
if (!oi(E))
|
|
3771
|
+
throw new ri(y, "function", s);
|
|
3751
3772
|
var A = ce(m, t, r, n, i, o), P = E(A.map(function(w) {
|
|
3752
3773
|
return w.value;
|
|
3753
3774
|
}));
|
|
3754
|
-
Array.isArray(P) || (P = [P]),
|
|
3775
|
+
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(w) {
|
|
3755
3776
|
return {
|
|
3756
3777
|
type: typeof w == "string" ? H.literal : H.object,
|
|
3757
3778
|
value: w
|
|
3758
3779
|
};
|
|
3759
3780
|
}));
|
|
3760
3781
|
}
|
|
3761
|
-
if (
|
|
3782
|
+
if (zt(l)) {
|
|
3762
3783
|
var T = l.options[f] || l.options.other;
|
|
3763
3784
|
if (!T)
|
|
3764
|
-
throw new
|
|
3765
|
-
|
|
3785
|
+
throw new _t(l.value, f, Object.keys(l.options), s);
|
|
3786
|
+
a.push.apply(a, ce(T.value, t, r, n, i));
|
|
3766
3787
|
continue;
|
|
3767
3788
|
}
|
|
3768
|
-
if (
|
|
3789
|
+
if (Zt(l)) {
|
|
3769
3790
|
var T = l.options["=".concat(f)];
|
|
3770
3791
|
if (!T) {
|
|
3771
3792
|
if (!Intl.PluralRules)
|
|
3772
|
-
throw new
|
|
3793
|
+
throw new xe(`Intl.PluralRules is not available in this environment.
|
|
3773
3794
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3774
|
-
`,
|
|
3775
|
-
var
|
|
3776
|
-
T = l.options[
|
|
3795
|
+
`, W.MISSING_INTL_API, s);
|
|
3796
|
+
var O = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3797
|
+
T = l.options[O] || l.options.other;
|
|
3777
3798
|
}
|
|
3778
3799
|
if (!T)
|
|
3779
|
-
throw new
|
|
3780
|
-
|
|
3800
|
+
throw new _t(l.value, f, Object.keys(l.options), s);
|
|
3801
|
+
a.push.apply(a, ce(T.value, t, r, n, i, f - (l.offset || 0)));
|
|
3781
3802
|
continue;
|
|
3782
3803
|
}
|
|
3783
3804
|
}
|
|
3784
|
-
return
|
|
3805
|
+
return ii(a);
|
|
3785
3806
|
}
|
|
3786
|
-
function
|
|
3787
|
-
return t ?
|
|
3788
|
-
return r[n] =
|
|
3807
|
+
function si(e, t) {
|
|
3808
|
+
return t ? L(L(L({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3809
|
+
return r[n] = L(L({}, e[n]), t[n] || {}), r;
|
|
3789
3810
|
}, {})) : e;
|
|
3790
3811
|
}
|
|
3791
|
-
function
|
|
3812
|
+
function ai(e, t) {
|
|
3792
3813
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3793
|
-
return r[n] =
|
|
3794
|
-
},
|
|
3814
|
+
return r[n] = si(e[n], t[n]), r;
|
|
3815
|
+
}, L({}, e)) : e;
|
|
3795
3816
|
}
|
|
3796
|
-
function
|
|
3817
|
+
function Le(e) {
|
|
3797
3818
|
return {
|
|
3798
3819
|
create: function() {
|
|
3799
3820
|
return {
|
|
@@ -3807,39 +3828,39 @@ function Pe(e) {
|
|
|
3807
3828
|
}
|
|
3808
3829
|
};
|
|
3809
3830
|
}
|
|
3810
|
-
function
|
|
3831
|
+
function ui(e) {
|
|
3811
3832
|
return e === void 0 && (e = {
|
|
3812
3833
|
number: {},
|
|
3813
3834
|
dateTime: {},
|
|
3814
3835
|
pluralRules: {}
|
|
3815
3836
|
}), {
|
|
3816
|
-
getNumberFormat:
|
|
3837
|
+
getNumberFormat: Ae(function() {
|
|
3817
3838
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3818
3839
|
r[n] = arguments[n];
|
|
3819
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3840
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ce([void 0], r, !1)))();
|
|
3820
3841
|
}, {
|
|
3821
|
-
cache:
|
|
3822
|
-
strategy:
|
|
3842
|
+
cache: Le(e.number),
|
|
3843
|
+
strategy: Pe.variadic
|
|
3823
3844
|
}),
|
|
3824
|
-
getDateTimeFormat:
|
|
3845
|
+
getDateTimeFormat: Ae(function() {
|
|
3825
3846
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3826
3847
|
r[n] = arguments[n];
|
|
3827
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3848
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ce([void 0], r, !1)))();
|
|
3828
3849
|
}, {
|
|
3829
|
-
cache:
|
|
3830
|
-
strategy:
|
|
3850
|
+
cache: Le(e.dateTime),
|
|
3851
|
+
strategy: Pe.variadic
|
|
3831
3852
|
}),
|
|
3832
|
-
getPluralRules:
|
|
3853
|
+
getPluralRules: Ae(function() {
|
|
3833
3854
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3834
3855
|
r[n] = arguments[n];
|
|
3835
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3856
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ce([void 0], r, !1)))();
|
|
3836
3857
|
}, {
|
|
3837
|
-
cache:
|
|
3838
|
-
strategy:
|
|
3858
|
+
cache: Le(e.pluralRules),
|
|
3859
|
+
strategy: Pe.variadic
|
|
3839
3860
|
})
|
|
3840
3861
|
};
|
|
3841
3862
|
}
|
|
3842
|
-
var
|
|
3863
|
+
var hi = (
|
|
3843
3864
|
/** @class */
|
|
3844
3865
|
function() {
|
|
3845
3866
|
function e(t, r, n, i) {
|
|
@@ -3869,15 +3890,15 @@ var ai = (
|
|
|
3869
3890
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3870
3891
|
if (this.message = t, !e.__parse)
|
|
3871
3892
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3872
|
-
var
|
|
3873
|
-
|
|
3874
|
-
var
|
|
3875
|
-
this.ast = e.__parse(t,
|
|
3893
|
+
var s = i || {};
|
|
3894
|
+
s.formatters;
|
|
3895
|
+
var a = yn(s, ["formatters"]);
|
|
3896
|
+
this.ast = e.__parse(t, L(L({}, a), { locale: this.resolvedLocale }));
|
|
3876
3897
|
} else
|
|
3877
3898
|
this.ast = t;
|
|
3878
3899
|
if (!Array.isArray(this.ast))
|
|
3879
3900
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3880
|
-
this.formats =
|
|
3901
|
+
this.formats = ai(e.formats, n), this.formatters = i && i.formatters || ui(this.formatterCache);
|
|
3881
3902
|
}
|
|
3882
3903
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3883
3904
|
get: function() {
|
|
@@ -3890,7 +3911,7 @@ var ai = (
|
|
|
3890
3911
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3891
3912
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3892
3913
|
}
|
|
3893
|
-
}, e.__parse =
|
|
3914
|
+
}, e.__parse = ti, e.formats = {
|
|
3894
3915
|
number: {
|
|
3895
3916
|
integer: {
|
|
3896
3917
|
maximumFractionDigits: 0
|
|
@@ -3951,7 +3972,7 @@ var ai = (
|
|
|
3951
3972
|
}, e;
|
|
3952
3973
|
}()
|
|
3953
3974
|
);
|
|
3954
|
-
function
|
|
3975
|
+
function li(e, t) {
|
|
3955
3976
|
if (t == null)
|
|
3956
3977
|
return;
|
|
3957
3978
|
if (t in e)
|
|
@@ -3972,92 +3993,92 @@ function ui(e, t) {
|
|
|
3972
3993
|
n = void 0;
|
|
3973
3994
|
return n;
|
|
3974
3995
|
}
|
|
3975
|
-
const
|
|
3996
|
+
const R = {}, ci = (e, t, r) => r && (t in R || (R[t] = {}), e in R[t] || (R[t][e] = r), r), ir = (e, t) => {
|
|
3976
3997
|
if (t == null)
|
|
3977
3998
|
return;
|
|
3978
|
-
if (t in
|
|
3979
|
-
return
|
|
3980
|
-
const r =
|
|
3999
|
+
if (t in R && e in R[t])
|
|
4000
|
+
return R[t][e];
|
|
4001
|
+
const r = _e(t);
|
|
3981
4002
|
for (let n = 0; n < r.length; n++) {
|
|
3982
|
-
const i = r[n], o =
|
|
4003
|
+
const i = r[n], o = mi(i, e);
|
|
3983
4004
|
if (o)
|
|
3984
|
-
return
|
|
4005
|
+
return ci(e, t, o);
|
|
3985
4006
|
}
|
|
3986
4007
|
};
|
|
3987
|
-
let
|
|
3988
|
-
const ie =
|
|
3989
|
-
function
|
|
3990
|
-
return
|
|
4008
|
+
let et;
|
|
4009
|
+
const ie = ye({});
|
|
4010
|
+
function fi(e) {
|
|
4011
|
+
return et[e] || null;
|
|
3991
4012
|
}
|
|
3992
|
-
function
|
|
3993
|
-
return e in
|
|
4013
|
+
function or(e) {
|
|
4014
|
+
return e in et;
|
|
3994
4015
|
}
|
|
3995
|
-
function
|
|
3996
|
-
if (!
|
|
4016
|
+
function mi(e, t) {
|
|
4017
|
+
if (!or(e))
|
|
3997
4018
|
return null;
|
|
3998
|
-
const r =
|
|
3999
|
-
return
|
|
4019
|
+
const r = fi(e);
|
|
4020
|
+
return li(r, t);
|
|
4000
4021
|
}
|
|
4001
|
-
function
|
|
4022
|
+
function pi(e) {
|
|
4002
4023
|
if (e == null)
|
|
4003
4024
|
return;
|
|
4004
|
-
const t =
|
|
4025
|
+
const t = _e(e);
|
|
4005
4026
|
for (let r = 0; r < t.length; r++) {
|
|
4006
4027
|
const n = t[r];
|
|
4007
|
-
if (
|
|
4028
|
+
if (or(n))
|
|
4008
4029
|
return n;
|
|
4009
4030
|
}
|
|
4010
4031
|
}
|
|
4011
|
-
function
|
|
4012
|
-
delete
|
|
4032
|
+
function sr(e, ...t) {
|
|
4033
|
+
delete R[e], ie.update((r) => (r[e] = gn.all([r[e] || {}, ...t]), r));
|
|
4013
4034
|
}
|
|
4014
|
-
|
|
4035
|
+
Q(
|
|
4015
4036
|
[ie],
|
|
4016
4037
|
([e]) => Object.keys(e)
|
|
4017
4038
|
);
|
|
4018
|
-
ie.subscribe((e) =>
|
|
4039
|
+
ie.subscribe((e) => et = e);
|
|
4019
4040
|
const fe = {};
|
|
4020
|
-
function
|
|
4041
|
+
function di(e, t) {
|
|
4021
4042
|
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
4022
4043
|
}
|
|
4023
|
-
function
|
|
4044
|
+
function ar(e) {
|
|
4024
4045
|
return fe[e];
|
|
4025
4046
|
}
|
|
4026
|
-
function
|
|
4027
|
-
return
|
|
4028
|
-
const r =
|
|
4047
|
+
function bi(e) {
|
|
4048
|
+
return _e(e).map((t) => {
|
|
4049
|
+
const r = ar(t);
|
|
4029
4050
|
return [t, r ? [...r] : []];
|
|
4030
4051
|
}).filter(([, t]) => t.length > 0);
|
|
4031
4052
|
}
|
|
4032
|
-
function
|
|
4033
|
-
return e == null ? !1 :
|
|
4053
|
+
function Je(e) {
|
|
4054
|
+
return e == null ? !1 : _e(e).some(
|
|
4034
4055
|
(t) => {
|
|
4035
4056
|
var r;
|
|
4036
|
-
return (r =
|
|
4057
|
+
return (r = ar(t)) == null ? void 0 : r.size;
|
|
4037
4058
|
}
|
|
4038
4059
|
);
|
|
4039
4060
|
}
|
|
4040
|
-
function
|
|
4061
|
+
function gi(e, t) {
|
|
4041
4062
|
return Promise.all(
|
|
4042
|
-
t.map((n) => (
|
|
4043
|
-
).then((n) =>
|
|
4044
|
-
}
|
|
4045
|
-
const
|
|
4046
|
-
function
|
|
4047
|
-
if (!
|
|
4048
|
-
return e in
|
|
4049
|
-
const t =
|
|
4050
|
-
return
|
|
4063
|
+
t.map((n) => (di(e, n), n().then((i) => i.default || i)))
|
|
4064
|
+
).then((n) => sr(e, ...n));
|
|
4065
|
+
}
|
|
4066
|
+
const q = {};
|
|
4067
|
+
function ur(e) {
|
|
4068
|
+
if (!Je(e))
|
|
4069
|
+
return e in q ? q[e] : Promise.resolve();
|
|
4070
|
+
const t = bi(e);
|
|
4071
|
+
return q[e] = Promise.all(
|
|
4051
4072
|
t.map(
|
|
4052
|
-
([r, n]) =>
|
|
4073
|
+
([r, n]) => gi(r, n)
|
|
4053
4074
|
)
|
|
4054
4075
|
).then(() => {
|
|
4055
|
-
if (
|
|
4056
|
-
return
|
|
4057
|
-
delete
|
|
4058
|
-
}),
|
|
4076
|
+
if (Je(e))
|
|
4077
|
+
return ur(e);
|
|
4078
|
+
delete q[e];
|
|
4079
|
+
}), q[e];
|
|
4059
4080
|
}
|
|
4060
|
-
const
|
|
4081
|
+
const yi = {
|
|
4061
4082
|
number: {
|
|
4062
4083
|
scientific: { notation: "scientific" },
|
|
4063
4084
|
engineering: { notation: "engineering" },
|
|
@@ -4086,159 +4107,159 @@ const bi = {
|
|
|
4086
4107
|
timeZoneName: "short"
|
|
4087
4108
|
}
|
|
4088
4109
|
}
|
|
4089
|
-
},
|
|
4110
|
+
}, vi = {
|
|
4090
4111
|
fallbackLocale: null,
|
|
4091
4112
|
loadingDelay: 200,
|
|
4092
|
-
formats:
|
|
4113
|
+
formats: yi,
|
|
4093
4114
|
warnOnMissingMessages: !0,
|
|
4094
4115
|
handleMissingMessage: void 0,
|
|
4095
4116
|
ignoreTag: !0
|
|
4096
|
-
},
|
|
4097
|
-
function
|
|
4098
|
-
return
|
|
4117
|
+
}, xi = vi;
|
|
4118
|
+
function z() {
|
|
4119
|
+
return xi;
|
|
4099
4120
|
}
|
|
4100
|
-
const
|
|
4101
|
-
var
|
|
4121
|
+
const Ie = ye(!1);
|
|
4122
|
+
var _i = Object.defineProperty, Ei = Object.defineProperties, wi = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Si = Object.prototype.hasOwnProperty, Ti = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Hi = (e, t) => {
|
|
4102
4123
|
for (var r in t || (t = {}))
|
|
4103
|
-
|
|
4104
|
-
if (
|
|
4105
|
-
for (var r of
|
|
4106
|
-
|
|
4124
|
+
Si.call(t, r) && wt(e, r, t[r]);
|
|
4125
|
+
if (Et)
|
|
4126
|
+
for (var r of Et(t))
|
|
4127
|
+
Ti.call(t, r) && wt(e, r, t[r]);
|
|
4107
4128
|
return e;
|
|
4108
|
-
},
|
|
4109
|
-
let
|
|
4110
|
-
const
|
|
4111
|
-
function
|
|
4129
|
+
}, Bi = (e, t) => Ei(e, wi(t));
|
|
4130
|
+
let Ye;
|
|
4131
|
+
const pe = ye(null);
|
|
4132
|
+
function St(e) {
|
|
4112
4133
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4113
4134
|
}
|
|
4114
|
-
function
|
|
4115
|
-
const r =
|
|
4116
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4135
|
+
function _e(e, t = z().fallbackLocale) {
|
|
4136
|
+
const r = St(e);
|
|
4137
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...St(t)])] : r;
|
|
4117
4138
|
}
|
|
4118
4139
|
function G() {
|
|
4119
|
-
return
|
|
4140
|
+
return Ye ?? void 0;
|
|
4120
4141
|
}
|
|
4121
|
-
|
|
4122
|
-
|
|
4142
|
+
pe.subscribe((e) => {
|
|
4143
|
+
Ye = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4123
4144
|
});
|
|
4124
|
-
const
|
|
4125
|
-
if (e &&
|
|
4126
|
-
const { loadingDelay: t } =
|
|
4145
|
+
const Ci = (e) => {
|
|
4146
|
+
if (e && pi(e) && Je(e)) {
|
|
4147
|
+
const { loadingDelay: t } = z();
|
|
4127
4148
|
let r;
|
|
4128
4149
|
return typeof window < "u" && G() != null && t ? r = window.setTimeout(
|
|
4129
|
-
() =>
|
|
4150
|
+
() => Ie.set(!0),
|
|
4130
4151
|
t
|
|
4131
|
-
) :
|
|
4132
|
-
|
|
4152
|
+
) : Ie.set(!0), ur(e).then(() => {
|
|
4153
|
+
pe.set(e);
|
|
4133
4154
|
}).finally(() => {
|
|
4134
|
-
clearTimeout(r),
|
|
4155
|
+
clearTimeout(r), Ie.set(!1);
|
|
4135
4156
|
});
|
|
4136
4157
|
}
|
|
4137
|
-
return
|
|
4138
|
-
},
|
|
4139
|
-
set:
|
|
4140
|
-
}),
|
|
4158
|
+
return pe.set(e);
|
|
4159
|
+
}, J = Bi(Hi({}, pe), {
|
|
4160
|
+
set: Ci
|
|
4161
|
+
}), Ee = (e) => {
|
|
4141
4162
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4142
4163
|
return (n) => {
|
|
4143
4164
|
const i = JSON.stringify(n);
|
|
4144
4165
|
return i in t ? t[i] : t[i] = e(n);
|
|
4145
4166
|
};
|
|
4146
4167
|
};
|
|
4147
|
-
var
|
|
4168
|
+
var Ai = Object.defineProperty, de = Object.getOwnPropertySymbols, hr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? Ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
4148
4169
|
for (var r in t || (t = {}))
|
|
4149
|
-
|
|
4150
|
-
if (
|
|
4151
|
-
for (var r of
|
|
4152
|
-
|
|
4170
|
+
hr.call(t, r) && Tt(e, r, t[r]);
|
|
4171
|
+
if (de)
|
|
4172
|
+
for (var r of de(t))
|
|
4173
|
+
lr.call(t, r) && Tt(e, r, t[r]);
|
|
4153
4174
|
return e;
|
|
4154
|
-
},
|
|
4175
|
+
}, Y = (e, t) => {
|
|
4155
4176
|
var r = {};
|
|
4156
4177
|
for (var n in e)
|
|
4157
|
-
|
|
4158
|
-
if (e != null &&
|
|
4159
|
-
for (var n of
|
|
4160
|
-
t.indexOf(n) < 0 &&
|
|
4178
|
+
hr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4179
|
+
if (e != null && de)
|
|
4180
|
+
for (var n of de(e))
|
|
4181
|
+
t.indexOf(n) < 0 && lr.call(e, n) && (r[n] = e[n]);
|
|
4161
4182
|
return r;
|
|
4162
4183
|
};
|
|
4163
|
-
const
|
|
4164
|
-
const { formats: r } =
|
|
4184
|
+
const re = (e, t) => {
|
|
4185
|
+
const { formats: r } = z();
|
|
4165
4186
|
if (e in r && t in r[e])
|
|
4166
4187
|
return r[e][t];
|
|
4167
4188
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4168
|
-
},
|
|
4189
|
+
}, Pi = Ee(
|
|
4169
4190
|
(e) => {
|
|
4170
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4191
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4171
4192
|
if (r == null)
|
|
4172
4193
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4173
|
-
return n && (i =
|
|
4194
|
+
return n && (i = re("number", n)), new Intl.NumberFormat(r, i);
|
|
4174
4195
|
}
|
|
4175
|
-
),
|
|
4196
|
+
), Oi = Ee(
|
|
4176
4197
|
(e) => {
|
|
4177
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4198
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4178
4199
|
if (r == null)
|
|
4179
4200
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4180
|
-
return n ? i =
|
|
4201
|
+
return n ? i = re("date", n) : Object.keys(i).length === 0 && (i = re("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4181
4202
|
}
|
|
4182
|
-
),
|
|
4203
|
+
), Li = Ee(
|
|
4183
4204
|
(e) => {
|
|
4184
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4205
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4185
4206
|
if (r == null)
|
|
4186
4207
|
throw new Error(
|
|
4187
4208
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4188
4209
|
);
|
|
4189
|
-
return n ? i =
|
|
4210
|
+
return n ? i = re("time", n) : Object.keys(i).length === 0 && (i = re("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4190
4211
|
}
|
|
4191
|
-
),
|
|
4212
|
+
), Ii = (e = {}) => {
|
|
4192
4213
|
var t = e, {
|
|
4193
4214
|
locale: r = G()
|
|
4194
|
-
} = t, n =
|
|
4215
|
+
} = t, n = Y(t, [
|
|
4195
4216
|
"locale"
|
|
4196
4217
|
]);
|
|
4197
|
-
return
|
|
4198
|
-
},
|
|
4218
|
+
return Pi(tt({ locale: r }, n));
|
|
4219
|
+
}, Mi = (e = {}) => {
|
|
4199
4220
|
var t = e, {
|
|
4200
4221
|
locale: r = G()
|
|
4201
|
-
} = t, n =
|
|
4222
|
+
} = t, n = Y(t, [
|
|
4202
4223
|
"locale"
|
|
4203
4224
|
]);
|
|
4204
|
-
return
|
|
4205
|
-
},
|
|
4225
|
+
return Oi(tt({ locale: r }, n));
|
|
4226
|
+
}, Ni = (e = {}) => {
|
|
4206
4227
|
var t = e, {
|
|
4207
4228
|
locale: r = G()
|
|
4208
|
-
} = t, n =
|
|
4229
|
+
} = t, n = Y(t, [
|
|
4209
4230
|
"locale"
|
|
4210
4231
|
]);
|
|
4211
|
-
return
|
|
4212
|
-
},
|
|
4232
|
+
return Li(tt({ locale: r }, n));
|
|
4233
|
+
}, $i = Ee(
|
|
4213
4234
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4214
|
-
(e, t = G()) => new
|
|
4215
|
-
ignoreTag:
|
|
4235
|
+
(e, t = G()) => new hi(e, t, z().formats, {
|
|
4236
|
+
ignoreTag: z().ignoreTag
|
|
4216
4237
|
})
|
|
4217
|
-
),
|
|
4238
|
+
), Ri = (e, t = {}) => {
|
|
4218
4239
|
var r, n, i, o;
|
|
4219
|
-
let
|
|
4220
|
-
typeof e == "object" && (
|
|
4240
|
+
let s = t;
|
|
4241
|
+
typeof e == "object" && (s = e, e = s.id);
|
|
4221
4242
|
const {
|
|
4222
|
-
values:
|
|
4243
|
+
values: a,
|
|
4223
4244
|
locale: h = G(),
|
|
4224
4245
|
default: u
|
|
4225
|
-
} =
|
|
4246
|
+
} = s;
|
|
4226
4247
|
if (h == null)
|
|
4227
4248
|
throw new Error(
|
|
4228
4249
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4229
4250
|
);
|
|
4230
|
-
let l =
|
|
4251
|
+
let l = ir(e, h);
|
|
4231
4252
|
if (!l)
|
|
4232
|
-
l = (o = (i = (n = (r =
|
|
4253
|
+
l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4233
4254
|
else if (typeof l != "string")
|
|
4234
4255
|
return console.warn(
|
|
4235
4256
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4236
4257
|
), l;
|
|
4237
|
-
if (!
|
|
4258
|
+
if (!a)
|
|
4238
4259
|
return l;
|
|
4239
4260
|
let c = l;
|
|
4240
4261
|
try {
|
|
4241
|
-
c =
|
|
4262
|
+
c = $i(l, h).format(a);
|
|
4242
4263
|
} catch (f) {
|
|
4243
4264
|
f instanceof Error && console.warn(
|
|
4244
4265
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4246,21 +4267,21 @@ const ne = (e, t) => {
|
|
|
4246
4267
|
);
|
|
4247
4268
|
}
|
|
4248
4269
|
return c;
|
|
4249
|
-
},
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4270
|
+
}, Gi = (e, t) => Ni(t).format(e), Ui = (e, t) => Mi(t).format(e), Di = (e, t) => Ii(t).format(e), Fi = (e, t = G()) => ir(e, t), ji = Q([J, ie], () => Ri);
|
|
4271
|
+
Q([J], () => Gi);
|
|
4272
|
+
Q([J], () => Ui);
|
|
4273
|
+
Q([J], () => Di);
|
|
4274
|
+
Q([J, ie], () => Fi);
|
|
4254
4275
|
window.emWidgets = { topic: Kr };
|
|
4255
|
-
const
|
|
4276
|
+
const ki = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4256
4277
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4257
|
-
function
|
|
4258
|
-
|
|
4278
|
+
function Ht(e, t) {
|
|
4279
|
+
sr(e, t);
|
|
4259
4280
|
}
|
|
4260
|
-
function
|
|
4261
|
-
|
|
4281
|
+
function Vi(e) {
|
|
4282
|
+
J.set(e);
|
|
4262
4283
|
}
|
|
4263
|
-
const
|
|
4284
|
+
const Bt = {
|
|
4264
4285
|
en: {
|
|
4265
4286
|
cancel: "Cancel",
|
|
4266
4287
|
confirm: "Confirm"
|
|
@@ -4306,13 +4327,13 @@ const Tt = {
|
|
|
4306
4327
|
confirm: "Confirm"
|
|
4307
4328
|
}
|
|
4308
4329
|
};
|
|
4309
|
-
function
|
|
4330
|
+
function Xi(e, t) {
|
|
4310
4331
|
if (e) {
|
|
4311
4332
|
const r = document.createElement("style");
|
|
4312
4333
|
r.innerHTML = t, e.appendChild(r);
|
|
4313
4334
|
}
|
|
4314
4335
|
}
|
|
4315
|
-
function
|
|
4336
|
+
function Wi(e, t) {
|
|
4316
4337
|
if (!e || !t)
|
|
4317
4338
|
return;
|
|
4318
4339
|
const r = new URL(t);
|
|
@@ -4323,7 +4344,7 @@ function Vi(e, t) {
|
|
|
4323
4344
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4324
4345
|
});
|
|
4325
4346
|
}
|
|
4326
|
-
function
|
|
4347
|
+
function zi(e, t, r) {
|
|
4327
4348
|
if (window.emMessageBus) {
|
|
4328
4349
|
const n = document.createElement("style");
|
|
4329
4350
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4331,27 +4352,27 @@ function Xi(e, t, r) {
|
|
|
4331
4352
|
});
|
|
4332
4353
|
}
|
|
4333
4354
|
}
|
|
4334
|
-
function Wi(e) {
|
|
4335
|
-
vr(e, "svelte-n224ff", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GamingLimitsConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GamingLimitsConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainerMobile{padding:40px;max-width:330px}.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsCancelButton,.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GamingLimitsConfirmationContent{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea .GamingLimitsCancelButton,.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 10px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper{border:none;padding:0}');
|
|
4336
|
-
}
|
|
4337
|
-
const zi = (e) => ({}), Ht = (e) => ({});
|
|
4338
4355
|
function Zi(e) {
|
|
4356
|
+
xr(e, "svelte-n224ff", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GamingLimitsConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GamingLimitsConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainerMobile{padding:40px;max-width:330px}.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsCancelButton,.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GamingLimitsConfirmationContent{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea .GamingLimitsCancelButton,.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 10px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper{border:none;padding:0}');
|
|
4357
|
+
}
|
|
4358
|
+
const Qi = (e) => ({}), Ct = (e) => ({});
|
|
4359
|
+
function Ji(e) {
|
|
4339
4360
|
let t, r;
|
|
4340
4361
|
return {
|
|
4341
4362
|
c() {
|
|
4342
|
-
t =
|
|
4363
|
+
t = it("svg"), r = it("path"), S(r, "stroke-linecap", "round"), S(r, "stroke-linejoin", "round"), S(r, "stroke-width", "2"), S(r, "d", "M6 18L18 6M6 6l12 12"), S(t, "class", "w-6 h-6"), S(t, "fill", "none"), S(t, "stroke", "currentColor"), S(t, "viewBox", "0 0 24 24"), S(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4343
4364
|
},
|
|
4344
4365
|
m(n, i) {
|
|
4345
|
-
|
|
4366
|
+
Ke(n, t, i), B(t, r);
|
|
4346
4367
|
},
|
|
4347
|
-
p:
|
|
4368
|
+
p: I,
|
|
4348
4369
|
d(n) {
|
|
4349
|
-
n &&
|
|
4370
|
+
n && be(t);
|
|
4350
4371
|
}
|
|
4351
4372
|
};
|
|
4352
4373
|
}
|
|
4353
|
-
function
|
|
4354
|
-
let t, r, n, i, o,
|
|
4374
|
+
function Yi(e) {
|
|
4375
|
+
let t, r, n, i, o, s, a, h, u, l = (
|
|
4355
4376
|
/*$_*/
|
|
4356
4377
|
e[2]("cancel") + ""
|
|
4357
4378
|
), c, f, p, m = (
|
|
@@ -4361,38 +4382,38 @@ function Qi(e) {
|
|
|
4361
4382
|
const T = (
|
|
4362
4383
|
/*#slots*/
|
|
4363
4384
|
e[14].close
|
|
4364
|
-
),
|
|
4385
|
+
), O = br(
|
|
4365
4386
|
T,
|
|
4366
4387
|
e,
|
|
4367
4388
|
/*$$scope*/
|
|
4368
4389
|
e[13],
|
|
4369
|
-
|
|
4370
|
-
), w =
|
|
4390
|
+
Ct
|
|
4391
|
+
), w = O || Ji();
|
|
4371
4392
|
return {
|
|
4372
4393
|
c() {
|
|
4373
|
-
t =
|
|
4394
|
+
t = M("div"), r = M("div"), n = M("span"), w && w.c(), i = we(), o = M("div"), s = ae(
|
|
4374
4395
|
/*modaltext*/
|
|
4375
4396
|
e[0]
|
|
4376
|
-
),
|
|
4397
|
+
), a = we(), h = M("div"), u = M("button"), c = ae(l), f = we(), p = M("button"), y = ae(m), S(n, "class", "ModalCloseBtn"), S(n, "role", "button"), S(o, "class", "GamingLimitsConfirmationContent"), S(u, "class", "GamingLimitsCancelButton"), S(p, "class", "GamingLimitsConfirmButton"), S(h, "class", "GamingLimitsConfirmationControlArea " + /*isMobile*/
|
|
4377
4398
|
(e[3] ? "GamingLimitsConfirmationControlAreaMobile" : "")), S(r, "class", "GamingLimitsConfirmationContainer " + /*isMobile*/
|
|
4378
4399
|
(e[3] ? "GamingLimitsConfirmationContainerMobile" : "")), S(t, "class", "GamingLimitsConfirmationWrapper " + /*isMobile*/
|
|
4379
4400
|
(e[3] ? "GamingLimitsConfirmationMobileWrapper" : ""));
|
|
4380
4401
|
},
|
|
4381
|
-
m(
|
|
4382
|
-
|
|
4383
|
-
|
|
4402
|
+
m(x, C) {
|
|
4403
|
+
Ke(x, t, C), B(t, r), B(r, n), w && w.m(n, null), B(r, i), B(r, o), B(o, s), B(r, a), B(r, h), B(h, u), B(u, c), B(h, f), B(h, p), B(p, y), e[15](t), E = !0, A || (P = [
|
|
4404
|
+
Se(
|
|
4384
4405
|
n,
|
|
4385
4406
|
"click",
|
|
4386
4407
|
/*close*/
|
|
4387
4408
|
e[4]
|
|
4388
4409
|
),
|
|
4389
|
-
|
|
4410
|
+
Se(
|
|
4390
4411
|
u,
|
|
4391
4412
|
"click",
|
|
4392
4413
|
/*cancelChanges*/
|
|
4393
4414
|
e[6]
|
|
4394
4415
|
),
|
|
4395
|
-
|
|
4416
|
+
Se(
|
|
4396
4417
|
p,
|
|
4397
4418
|
"click",
|
|
4398
4419
|
/*confirmChanges*/
|
|
@@ -4400,68 +4421,68 @@ function Qi(e) {
|
|
|
4400
4421
|
)
|
|
4401
4422
|
], A = !0);
|
|
4402
4423
|
},
|
|
4403
|
-
p(
|
|
4404
|
-
|
|
4405
|
-
8192) &&
|
|
4406
|
-
|
|
4424
|
+
p(x, [C]) {
|
|
4425
|
+
O && O.p && (!E || C & /*$$scope*/
|
|
4426
|
+
8192) && yr(
|
|
4427
|
+
O,
|
|
4407
4428
|
T,
|
|
4408
|
-
|
|
4429
|
+
x,
|
|
4409
4430
|
/*$$scope*/
|
|
4410
|
-
|
|
4411
|
-
E ?
|
|
4431
|
+
x[13],
|
|
4432
|
+
E ? gr(
|
|
4412
4433
|
T,
|
|
4413
4434
|
/*$$scope*/
|
|
4414
|
-
|
|
4435
|
+
x[13],
|
|
4415
4436
|
C,
|
|
4416
|
-
|
|
4417
|
-
) :
|
|
4437
|
+
Qi
|
|
4438
|
+
) : vr(
|
|
4418
4439
|
/*$$scope*/
|
|
4419
|
-
|
|
4440
|
+
x[13]
|
|
4420
4441
|
),
|
|
4421
|
-
|
|
4442
|
+
Ct
|
|
4422
4443
|
), (!E || C & /*modaltext*/
|
|
4423
|
-
1) &&
|
|
4424
|
-
|
|
4444
|
+
1) && Te(
|
|
4445
|
+
s,
|
|
4425
4446
|
/*modaltext*/
|
|
4426
|
-
|
|
4447
|
+
x[0]
|
|
4427
4448
|
), (!E || C & /*$_*/
|
|
4428
4449
|
4) && l !== (l = /*$_*/
|
|
4429
|
-
|
|
4450
|
+
x[2]("cancel") + "") && Te(c, l), (!E || C & /*$_*/
|
|
4430
4451
|
4) && m !== (m = /*$_*/
|
|
4431
|
-
|
|
4452
|
+
x[2]("confirm") + "") && Te(y, m);
|
|
4432
4453
|
},
|
|
4433
|
-
i(
|
|
4434
|
-
E || (
|
|
4454
|
+
i(x) {
|
|
4455
|
+
E || (It(w, x), E = !0);
|
|
4435
4456
|
},
|
|
4436
|
-
o(
|
|
4437
|
-
Lr(w,
|
|
4457
|
+
o(x) {
|
|
4458
|
+
Lr(w, x), E = !1;
|
|
4438
4459
|
},
|
|
4439
|
-
d(
|
|
4440
|
-
|
|
4460
|
+
d(x) {
|
|
4461
|
+
x && be(t), w && w.d(x), e[15](null), A = !1, Z(P);
|
|
4441
4462
|
}
|
|
4442
4463
|
};
|
|
4443
4464
|
}
|
|
4444
|
-
function
|
|
4465
|
+
function qi(e, t, r) {
|
|
4445
4466
|
let n;
|
|
4446
|
-
|
|
4447
|
-
let { $$slots: i = {}, $$scope: o } = t, { modaltext:
|
|
4467
|
+
dr(e, ji, (b) => r(2, n = b));
|
|
4468
|
+
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modalsource: a = "" } = t, { lang: h = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { mbsource: c } = t, { translationurl: f = "" } = t;
|
|
4448
4469
|
const p = () => {
|
|
4449
4470
|
fetch(f).then((U) => U.json()).then((U) => {
|
|
4450
|
-
Object.keys(U).forEach((
|
|
4451
|
-
|
|
4471
|
+
Object.keys(U).forEach((rt) => {
|
|
4472
|
+
Ht(rt, U[rt]);
|
|
4452
4473
|
});
|
|
4453
4474
|
}).catch((U) => {
|
|
4454
4475
|
console.log(U);
|
|
4455
4476
|
});
|
|
4456
4477
|
};
|
|
4457
|
-
Object.keys(
|
|
4458
|
-
|
|
4478
|
+
Object.keys(Bt).forEach((b) => {
|
|
4479
|
+
Ht(b, Bt[b]);
|
|
4459
4480
|
});
|
|
4460
|
-
let m, y = window.navigator.userAgent, E =
|
|
4481
|
+
let m, y = window.navigator.userAgent, E = ki(y) !== "PC", A = {}, P = "";
|
|
4461
4482
|
const T = () => {
|
|
4462
4483
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4463
|
-
},
|
|
4464
|
-
|
|
4484
|
+
}, O = () => {
|
|
4485
|
+
a === "groupEdit" ? window.postMessage({ type: "GamingLimitsConfirmChanges" }, window.location.href) : a === "infoCard" && window.postMessage(
|
|
4465
4486
|
{
|
|
4466
4487
|
type: "PlayerAccountGamingLimitDelete",
|
|
4467
4488
|
limit: A,
|
|
@@ -4470,43 +4491,43 @@ function Ji(e, t, r) {
|
|
|
4470
4491
|
window.location.href
|
|
4471
4492
|
), window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4472
4493
|
}, w = () => {
|
|
4473
|
-
|
|
4474
|
-
},
|
|
4494
|
+
a === "groupEdit" ? window.postMessage({ type: "CancelGamingLimitsChanges" }, window.location.href) : a === "infoCard" && window.postMessage({ type: "CancelGamingLimitsRemove" }, window.location.href), window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4495
|
+
}, x = (b) => b === "Time Limit" ? "cumulativeSessionLimits" : b === "Deposit Limit" ? "depositLimits" : b === "Wagering Limit" ? "wageringLimit" : "lossLimit", C = (b) => {
|
|
4475
4496
|
if (b.data)
|
|
4476
4497
|
switch (b.data.type) {
|
|
4477
4498
|
case "DeleteLimitsItem":
|
|
4478
|
-
A = b.data.removeData, P =
|
|
4499
|
+
A = b.data.removeData, P = x(b.data.removeName);
|
|
4479
4500
|
break;
|
|
4480
4501
|
}
|
|
4481
|
-
},
|
|
4482
|
-
|
|
4502
|
+
}, cr = () => {
|
|
4503
|
+
Vi(h);
|
|
4483
4504
|
};
|
|
4484
|
-
|
|
4505
|
+
Hr(() => (window.addEventListener("message", C, !1), () => {
|
|
4485
4506
|
window.removeEventListener("message", C);
|
|
4486
4507
|
}));
|
|
4487
|
-
function
|
|
4488
|
-
|
|
4508
|
+
function fr(b) {
|
|
4509
|
+
Me[b ? "unshift" : "push"](() => {
|
|
4489
4510
|
m = b, r(1, m);
|
|
4490
4511
|
});
|
|
4491
4512
|
}
|
|
4492
4513
|
return e.$$set = (b) => {
|
|
4493
|
-
"modaltext" in b && r(0,
|
|
4514
|
+
"modaltext" in b && r(0, s = b.modaltext), "modalsource" in b && r(7, a = b.modalsource), "lang" in b && r(8, h = b.lang), "clientstyling" in b && r(9, u = b.clientstyling), "clientstylingurl" in b && r(10, l = b.clientstylingurl), "mbsource" in b && r(11, c = b.mbsource), "translationurl" in b && r(12, f = b.translationurl), "$$scope" in b && r(13, o = b.$$scope);
|
|
4494
4515
|
}, e.$$.update = () => {
|
|
4495
4516
|
e.$$.dirty & /*modaltext, modalsource, lang*/
|
|
4496
|
-
385 &&
|
|
4497
|
-
514 && u && m &&
|
|
4498
|
-
1026 && l && m &&
|
|
4499
|
-
2050 && c && m &&
|
|
4517
|
+
385 && s && a && h && cr(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4518
|
+
514 && u && m && Xi(m, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4519
|
+
1026 && l && m && Wi(m, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4520
|
+
2050 && c && m && zi(m, `${c}.Style`), e.$$.dirty & /*translationurl*/
|
|
4500
4521
|
4096 && f && p();
|
|
4501
4522
|
}, [
|
|
4502
|
-
|
|
4523
|
+
s,
|
|
4503
4524
|
m,
|
|
4504
4525
|
n,
|
|
4505
4526
|
E,
|
|
4506
4527
|
T,
|
|
4507
|
-
|
|
4528
|
+
O,
|
|
4508
4529
|
w,
|
|
4509
|
-
|
|
4530
|
+
a,
|
|
4510
4531
|
h,
|
|
4511
4532
|
u,
|
|
4512
4533
|
l,
|
|
@@ -4514,17 +4535,17 @@ function Ji(e, t, r) {
|
|
|
4514
4535
|
f,
|
|
4515
4536
|
o,
|
|
4516
4537
|
i,
|
|
4517
|
-
|
|
4538
|
+
fr
|
|
4518
4539
|
];
|
|
4519
4540
|
}
|
|
4520
|
-
class
|
|
4541
|
+
class Ki extends Gr {
|
|
4521
4542
|
constructor(t) {
|
|
4522
|
-
super(),
|
|
4543
|
+
super(), $r(
|
|
4523
4544
|
this,
|
|
4524
4545
|
t,
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4546
|
+
qi,
|
|
4547
|
+
Yi,
|
|
4548
|
+
Pt,
|
|
4528
4549
|
{
|
|
4529
4550
|
modaltext: 0,
|
|
4530
4551
|
modalsource: 7,
|
|
@@ -4534,53 +4555,53 @@ class Yi extends $r {
|
|
|
4534
4555
|
mbsource: 11,
|
|
4535
4556
|
translationurl: 12
|
|
4536
4557
|
},
|
|
4537
|
-
|
|
4558
|
+
Zi
|
|
4538
4559
|
);
|
|
4539
4560
|
}
|
|
4540
4561
|
get modaltext() {
|
|
4541
4562
|
return this.$$.ctx[0];
|
|
4542
4563
|
}
|
|
4543
4564
|
set modaltext(t) {
|
|
4544
|
-
this.$$set({ modaltext: t }),
|
|
4565
|
+
this.$$set({ modaltext: t }), N();
|
|
4545
4566
|
}
|
|
4546
4567
|
get modalsource() {
|
|
4547
4568
|
return this.$$.ctx[7];
|
|
4548
4569
|
}
|
|
4549
4570
|
set modalsource(t) {
|
|
4550
|
-
this.$$set({ modalsource: t }),
|
|
4571
|
+
this.$$set({ modalsource: t }), N();
|
|
4551
4572
|
}
|
|
4552
4573
|
get lang() {
|
|
4553
4574
|
return this.$$.ctx[8];
|
|
4554
4575
|
}
|
|
4555
4576
|
set lang(t) {
|
|
4556
|
-
this.$$set({ lang: t }),
|
|
4577
|
+
this.$$set({ lang: t }), N();
|
|
4557
4578
|
}
|
|
4558
4579
|
get clientstyling() {
|
|
4559
4580
|
return this.$$.ctx[9];
|
|
4560
4581
|
}
|
|
4561
4582
|
set clientstyling(t) {
|
|
4562
|
-
this.$$set({ clientstyling: t }),
|
|
4583
|
+
this.$$set({ clientstyling: t }), N();
|
|
4563
4584
|
}
|
|
4564
4585
|
get clientstylingurl() {
|
|
4565
4586
|
return this.$$.ctx[10];
|
|
4566
4587
|
}
|
|
4567
4588
|
set clientstylingurl(t) {
|
|
4568
|
-
this.$$set({ clientstylingurl: t }),
|
|
4589
|
+
this.$$set({ clientstylingurl: t }), N();
|
|
4569
4590
|
}
|
|
4570
4591
|
get mbsource() {
|
|
4571
4592
|
return this.$$.ctx[11];
|
|
4572
4593
|
}
|
|
4573
4594
|
set mbsource(t) {
|
|
4574
|
-
this.$$set({ mbsource: t }),
|
|
4595
|
+
this.$$set({ mbsource: t }), N();
|
|
4575
4596
|
}
|
|
4576
4597
|
get translationurl() {
|
|
4577
4598
|
return this.$$.ctx[12];
|
|
4578
4599
|
}
|
|
4579
4600
|
set translationurl(t) {
|
|
4580
|
-
this.$$set({ translationurl: t }),
|
|
4601
|
+
this.$$set({ translationurl: t }), N();
|
|
4581
4602
|
}
|
|
4582
4603
|
}
|
|
4583
|
-
Rr(
|
|
4604
|
+
Rr(Ki, { modaltext: {}, modalsource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, ["close"], [], !0);
|
|
4584
4605
|
export {
|
|
4585
|
-
|
|
4606
|
+
Ki as P
|
|
4586
4607
|
};
|