@everymatrix/player-account-gaming-limits-popup 1.77.20 → 1.77.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountGamingLimitsPopup-BsPqMQeJ.js → PlayerAccountGamingLimitsPopup-CYnRGI3F.js} +725 -682
- package/components/PlayerAccountGamingLimitsPopup-D98UfAyc.cjs +18 -0
- package/components/{PlayerAccountGamingLimitsPopup-vzb49sWl.js → PlayerAccountGamingLimitsPopup-yCPQoeP2.js} +714 -671
- package/es2015/player-account-gaming-limits-popup.cjs +1 -1
- package/es2015/player-account-gaming-limits-popup.js +1 -1
- package/esnext/player-account-gaming-limits-popup.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGamingLimitsPopup-DY2hHTHw.cjs +0 -18
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var lr = Object.defineProperty, hr = Object.defineProperties;
|
|
2
|
+
var cr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var et = Object.getOwnPropertySymbols;
|
|
4
|
+
var fr = Object.prototype.hasOwnProperty, pr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ee = (e, t, r) => t in e ? lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
fr.call(t, r) && Ee(e, r, t[r]);
|
|
8
|
+
if (et)
|
|
9
|
+
for (var r of et(t))
|
|
10
|
+
pr.call(t, r) && Ee(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var I = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, rt = (e, t) => hr(e, cr(t));
|
|
13
|
+
var I = (e, t, r) => (Ee(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var nt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
s(r.next(l));
|
|
@@ -29,25 +29,25 @@ var Je = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function O() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Bt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function it() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function re(e) {
|
|
39
|
+
e.forEach(Bt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Ye(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ct(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function dr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function At(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
@@ -56,20 +56,20 @@ function Pt(e, ...t) {
|
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function mr(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(At(t, r));
|
|
61
61
|
}
|
|
62
62
|
function P(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
65
|
+
function br(e, t, r) {
|
|
66
|
+
const n = vr(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
68
|
const i = A("style");
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
69
|
+
i.id = t, i.textContent = r, yr(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function vr(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,35 +79,35 @@ function fr(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function yr(e, t) {
|
|
83
83
|
return P(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function ne(e, t, r) {
|
|
90
90
|
e.insertBefore(t, r || null);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function W(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
95
|
function A(e) {
|
|
96
96
|
return document.createElement(e);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function ie(e) {
|
|
99
99
|
return document.createTextNode(e);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
return
|
|
101
|
+
function Te() {
|
|
102
|
+
return ie(" ");
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
return
|
|
104
|
+
function gr() {
|
|
105
|
+
return ie("");
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function xr(e, t, r, n) {
|
|
108
108
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function _r(e) {
|
|
111
111
|
return function(t) {
|
|
112
112
|
return t.preventDefault(), e.call(this, t);
|
|
113
113
|
};
|
|
@@ -115,14 +115,14 @@ function br(e) {
|
|
|
115
115
|
function C(e, t, r) {
|
|
116
116
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Er(e) {
|
|
119
119
|
return Array.from(e.childNodes);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Qe(e, t) {
|
|
122
122
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
123
123
|
t);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Tr(e) {
|
|
126
126
|
const t = {};
|
|
127
127
|
return e.childNodes.forEach(
|
|
128
128
|
/** @param {Element} node */
|
|
@@ -131,87 +131,87 @@ function gr(e) {
|
|
|
131
131
|
}
|
|
132
132
|
), t;
|
|
133
133
|
}
|
|
134
|
-
let
|
|
135
|
-
function
|
|
136
|
-
|
|
134
|
+
let K;
|
|
135
|
+
function J(e) {
|
|
136
|
+
K = e;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
if (!
|
|
138
|
+
function Sr() {
|
|
139
|
+
if (!K)
|
|
140
140
|
throw new Error("Function called outside component initialization");
|
|
141
|
-
return
|
|
141
|
+
return K;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
143
|
+
function wr(e) {
|
|
144
|
+
Sr().$$.on_mount.push(e);
|
|
145
145
|
}
|
|
146
|
-
const D = [],
|
|
146
|
+
const D = [], Oe = [];
|
|
147
147
|
let F = [];
|
|
148
|
-
const
|
|
149
|
-
let
|
|
150
|
-
function
|
|
151
|
-
|
|
148
|
+
const ot = [], Pr = /* @__PURE__ */ Promise.resolve();
|
|
149
|
+
let Le = !1;
|
|
150
|
+
function Hr() {
|
|
151
|
+
Le || (Le = !0, Pr.then(L));
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Me(e) {
|
|
154
154
|
F.push(e);
|
|
155
155
|
}
|
|
156
|
-
const
|
|
156
|
+
const Se = /* @__PURE__ */ new Set();
|
|
157
157
|
let U = 0;
|
|
158
158
|
function L() {
|
|
159
159
|
if (U !== 0)
|
|
160
160
|
return;
|
|
161
|
-
const e =
|
|
161
|
+
const e = K;
|
|
162
162
|
do {
|
|
163
163
|
try {
|
|
164
164
|
for (; U < D.length; ) {
|
|
165
165
|
const t = D[U];
|
|
166
|
-
U++,
|
|
166
|
+
U++, J(t), Ir(t.$$);
|
|
167
167
|
}
|
|
168
168
|
} catch (t) {
|
|
169
169
|
throw D.length = 0, U = 0, t;
|
|
170
170
|
}
|
|
171
|
-
for (
|
|
172
|
-
|
|
171
|
+
for (J(null), D.length = 0, U = 0; Oe.length; )
|
|
172
|
+
Oe.pop()();
|
|
173
173
|
for (let t = 0; t < F.length; t += 1) {
|
|
174
174
|
const r = F[t];
|
|
175
|
-
|
|
175
|
+
Se.has(r) || (Se.add(r), r());
|
|
176
176
|
}
|
|
177
177
|
F.length = 0;
|
|
178
178
|
} while (D.length);
|
|
179
|
-
for (;
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
for (; ot.length; )
|
|
180
|
+
ot.pop()();
|
|
181
|
+
Le = !1, Se.clear(), J(e);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function Ir(e) {
|
|
184
184
|
if (e.fragment !== null) {
|
|
185
|
-
e.update(),
|
|
185
|
+
e.update(), re(e.before_update);
|
|
186
186
|
const t = e.dirty;
|
|
187
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
187
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function Br(e) {
|
|
191
191
|
const t = [], r = [];
|
|
192
192
|
F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
|
|
193
193
|
}
|
|
194
|
-
const
|
|
195
|
-
function
|
|
196
|
-
e && e.i && (
|
|
194
|
+
const Cr = /* @__PURE__ */ new Set();
|
|
195
|
+
function Ar(e, t) {
|
|
196
|
+
e && e.i && (Cr.delete(e), e.i(t));
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Or(e, t, r) {
|
|
199
199
|
const { fragment: n, after_update: i } = e.$$;
|
|
200
|
-
n && n.m(t, r),
|
|
201
|
-
const o = e.$$.on_mount.map(
|
|
202
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
203
|
-
}), i.forEach(
|
|
200
|
+
n && n.m(t, r), Me(() => {
|
|
201
|
+
const o = e.$$.on_mount.map(Bt).filter(Ye);
|
|
202
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : re(o), e.$$.on_mount = [];
|
|
203
|
+
}), i.forEach(Me);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function Lr(e, t) {
|
|
206
206
|
const r = e.$$;
|
|
207
|
-
r.fragment !== null && (
|
|
207
|
+
r.fragment !== null && (Br(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
e.$$.dirty[0] === -1 && (D.push(e),
|
|
209
|
+
function Mr(e, t) {
|
|
210
|
+
e.$$.dirty[0] === -1 && (D.push(e), Hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
const l =
|
|
214
|
-
|
|
212
|
+
function Nr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
213
|
+
const l = K;
|
|
214
|
+
J(e);
|
|
215
215
|
const u = e.$$ = {
|
|
216
216
|
fragment: null,
|
|
217
217
|
ctx: [],
|
|
@@ -219,7 +219,7 @@ function Cr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
219
219
|
props: o,
|
|
220
220
|
update: O,
|
|
221
221
|
not_equal: i,
|
|
222
|
-
bound:
|
|
222
|
+
bound: it(),
|
|
223
223
|
// lifecycle
|
|
224
224
|
on_mount: [],
|
|
225
225
|
on_destroy: [],
|
|
@@ -228,7 +228,7 @@ function Cr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
228
228
|
after_update: [],
|
|
229
229
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
230
230
|
// everything else
|
|
231
|
-
callbacks:
|
|
231
|
+
callbacks: it(),
|
|
232
232
|
dirty: s,
|
|
233
233
|
skip_bound: !1,
|
|
234
234
|
root: t.target || l.$$.root
|
|
@@ -237,19 +237,19 @@ function Cr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
237
237
|
let h = !1;
|
|
238
238
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
239
239
|
const d = p.length ? p[0] : c;
|
|
240
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), h &&
|
|
241
|
-
}) : [], u.update(), h = !0,
|
|
240
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), h && Mr(e, f)), c;
|
|
241
|
+
}) : [], u.update(), h = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
242
242
|
if (t.hydrate) {
|
|
243
|
-
const f =
|
|
244
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
243
|
+
const f = Er(t.target);
|
|
244
|
+
u.fragment && u.fragment.l(f), f.forEach(W);
|
|
245
245
|
} else
|
|
246
246
|
u.fragment && u.fragment.c();
|
|
247
|
-
t.intro &&
|
|
247
|
+
t.intro && Ar(e.$$.fragment), Or(e, t.target, t.anchor), L();
|
|
248
248
|
}
|
|
249
|
-
|
|
249
|
+
J(l);
|
|
250
250
|
}
|
|
251
|
-
let
|
|
252
|
-
typeof HTMLElement == "function" && (
|
|
251
|
+
let Ot;
|
|
252
|
+
typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
253
253
|
constructor(t, r, n) {
|
|
254
254
|
super();
|
|
255
255
|
/** The Svelte component constructor */
|
|
@@ -286,7 +286,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
connectedCallback() {
|
|
289
|
-
return
|
|
289
|
+
return nt(this, null, function* () {
|
|
290
290
|
if (this.$$cn = !0, !this.$$c) {
|
|
291
291
|
let t = function(o) {
|
|
292
292
|
return () => {
|
|
@@ -300,17 +300,17 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
300
300
|
* @param {HTMLElement} [anchor]
|
|
301
301
|
*/
|
|
302
302
|
m: function(u, h) {
|
|
303
|
-
|
|
303
|
+
ne(u, a, h);
|
|
304
304
|
},
|
|
305
305
|
d: function(u) {
|
|
306
|
-
u &&
|
|
306
|
+
u && W(a);
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
309
|
};
|
|
310
310
|
};
|
|
311
311
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
312
312
|
return;
|
|
313
|
-
const r = {}, n =
|
|
313
|
+
const r = {}, n = Tr(this);
|
|
314
314
|
for (const o of this.$$s)
|
|
315
315
|
o in n && (r[o] = [t(o)]);
|
|
316
316
|
for (const o of this.attributes) {
|
|
@@ -321,7 +321,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
321
321
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
322
322
|
this.$$c = new this.$$ctor({
|
|
323
323
|
target: this.shadowRoot || this,
|
|
324
|
-
props:
|
|
324
|
+
props: rt(tt({}, this.$$d), {
|
|
325
325
|
$$slots: r,
|
|
326
326
|
$$scope: {
|
|
327
327
|
ctx: []
|
|
@@ -399,8 +399,8 @@ function le(e, t, r, n) {
|
|
|
399
399
|
return t;
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
function
|
|
403
|
-
let a = class extends
|
|
402
|
+
function $r(e, t, r, n, i, o) {
|
|
403
|
+
let a = class extends Ot {
|
|
404
404
|
constructor() {
|
|
405
405
|
super(e, r, i), this.$$p_d = t;
|
|
406
406
|
}
|
|
@@ -430,7 +430,7 @@ function Ar(e, t, r, n, i, o) {
|
|
|
430
430
|
}), e.element = /** @type {any} */
|
|
431
431
|
a, a;
|
|
432
432
|
}
|
|
433
|
-
class
|
|
433
|
+
class Rr {
|
|
434
434
|
constructor() {
|
|
435
435
|
/**
|
|
436
436
|
* ### PRIVATE API
|
|
@@ -451,7 +451,7 @@ class Or {
|
|
|
451
451
|
}
|
|
452
452
|
/** @returns {void} */
|
|
453
453
|
$destroy() {
|
|
454
|
-
|
|
454
|
+
Lr(this, 1), this.$destroy = O;
|
|
455
455
|
}
|
|
456
456
|
/**
|
|
457
457
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -460,7 +460,7 @@ class Or {
|
|
|
460
460
|
* @returns {() => void}
|
|
461
461
|
*/
|
|
462
462
|
$on(t, r) {
|
|
463
|
-
if (!
|
|
463
|
+
if (!Ye(r))
|
|
464
464
|
return O;
|
|
465
465
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
466
466
|
return n.push(r), () => {
|
|
@@ -473,11 +473,11 @@ class Or {
|
|
|
473
473
|
* @returns {void}
|
|
474
474
|
*/
|
|
475
475
|
$set(t) {
|
|
476
|
-
this.$$set && !
|
|
476
|
+
this.$$set && !dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
const
|
|
480
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
479
|
+
const Ur = "4";
|
|
480
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ur);
|
|
481
481
|
/*! *****************************************************************************
|
|
482
482
|
Copyright (c) Microsoft Corporation.
|
|
483
483
|
|
|
@@ -492,43 +492,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
492
492
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
493
493
|
PERFORMANCE OF THIS SOFTWARE.
|
|
494
494
|
***************************************************************************** */
|
|
495
|
-
var
|
|
496
|
-
return
|
|
495
|
+
var Ne = function(e, t) {
|
|
496
|
+
return Ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
497
497
|
r.__proto__ = n;
|
|
498
498
|
} || function(r, n) {
|
|
499
499
|
for (var i in n)
|
|
500
500
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
501
|
-
},
|
|
501
|
+
}, Ne(e, t);
|
|
502
502
|
};
|
|
503
|
-
function
|
|
503
|
+
function oe(e, t) {
|
|
504
504
|
if (typeof t != "function" && t !== null)
|
|
505
505
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
506
|
-
|
|
506
|
+
Ne(e, t);
|
|
507
507
|
function r() {
|
|
508
508
|
this.constructor = e;
|
|
509
509
|
}
|
|
510
510
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
511
511
|
}
|
|
512
|
-
|
|
513
|
-
return g = Object.assign || function(t) {
|
|
514
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
515
|
-
r = arguments[n];
|
|
516
|
-
for (var o in r)
|
|
517
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
518
|
-
}
|
|
519
|
-
return t;
|
|
520
|
-
}, g.apply(this, arguments);
|
|
521
|
-
};
|
|
522
|
-
function Mr(e, t) {
|
|
523
|
-
var r = {};
|
|
524
|
-
for (var n in e)
|
|
525
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
526
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
527
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
528
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
529
|
-
return r;
|
|
530
|
-
}
|
|
531
|
-
function Le(e) {
|
|
512
|
+
function $e(e) {
|
|
532
513
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
533
514
|
if (r)
|
|
534
515
|
return r.call(e);
|
|
@@ -540,7 +521,7 @@ function Le(e) {
|
|
|
540
521
|
};
|
|
541
522
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
542
523
|
}
|
|
543
|
-
function
|
|
524
|
+
function Re(e, t) {
|
|
544
525
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
545
526
|
if (!r)
|
|
546
527
|
return e;
|
|
@@ -560,22 +541,22 @@ function Me(e, t) {
|
|
|
560
541
|
}
|
|
561
542
|
return o;
|
|
562
543
|
}
|
|
563
|
-
function
|
|
564
|
-
if (
|
|
544
|
+
function Ue(e, t, r) {
|
|
545
|
+
if (arguments.length === 2)
|
|
565
546
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
566
547
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
567
548
|
return e.concat(o || t);
|
|
568
549
|
}
|
|
569
|
-
function
|
|
550
|
+
function N(e) {
|
|
570
551
|
return typeof e == "function";
|
|
571
552
|
}
|
|
572
|
-
function
|
|
553
|
+
function Lt(e) {
|
|
573
554
|
var t = function(n) {
|
|
574
555
|
Error.call(n), n.stack = new Error().stack;
|
|
575
556
|
}, r = e(t);
|
|
576
557
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
577
558
|
}
|
|
578
|
-
var
|
|
559
|
+
var we = Lt(function(e) {
|
|
579
560
|
return function(r) {
|
|
580
561
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
581
562
|
` + r.map(function(n, i) {
|
|
@@ -584,13 +565,13 @@ var Te = It(function(e) {
|
|
|
584
565
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
585
566
|
};
|
|
586
567
|
});
|
|
587
|
-
function
|
|
568
|
+
function Ge(e, t) {
|
|
588
569
|
if (e) {
|
|
589
570
|
var r = e.indexOf(t);
|
|
590
571
|
0 <= r && e.splice(r, 1);
|
|
591
572
|
}
|
|
592
573
|
}
|
|
593
|
-
var
|
|
574
|
+
var be = function() {
|
|
594
575
|
function e(t) {
|
|
595
576
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
596
577
|
}
|
|
@@ -602,7 +583,7 @@ var me = function() {
|
|
|
602
583
|
if (a)
|
|
603
584
|
if (this._parentage = null, Array.isArray(a))
|
|
604
585
|
try {
|
|
605
|
-
for (var s =
|
|
586
|
+
for (var s = $e(a), l = s.next(); !l.done; l = s.next()) {
|
|
606
587
|
var u = l.value;
|
|
607
588
|
u.remove(this);
|
|
608
589
|
}
|
|
@@ -619,22 +600,22 @@ var me = function() {
|
|
|
619
600
|
else
|
|
620
601
|
a.remove(this);
|
|
621
602
|
var h = this.initialTeardown;
|
|
622
|
-
if (
|
|
603
|
+
if (N(h))
|
|
623
604
|
try {
|
|
624
605
|
h();
|
|
625
606
|
} catch (y) {
|
|
626
|
-
o = y instanceof
|
|
607
|
+
o = y instanceof we ? y.errors : [y];
|
|
627
608
|
}
|
|
628
609
|
var f = this._finalizers;
|
|
629
610
|
if (f) {
|
|
630
611
|
this._finalizers = null;
|
|
631
612
|
try {
|
|
632
|
-
for (var c =
|
|
613
|
+
for (var c = $e(f), p = c.next(); !p.done; p = c.next()) {
|
|
633
614
|
var d = p.value;
|
|
634
615
|
try {
|
|
635
|
-
|
|
616
|
+
at(d);
|
|
636
617
|
} catch (y) {
|
|
637
|
-
o = o != null ? o : [], y instanceof
|
|
618
|
+
o = o != null ? o : [], y instanceof we ? o = Ue(Ue([], Re(o)), Re(y.errors)) : o.push(y);
|
|
638
619
|
}
|
|
639
620
|
}
|
|
640
621
|
} catch (y) {
|
|
@@ -649,13 +630,13 @@ var me = function() {
|
|
|
649
630
|
}
|
|
650
631
|
}
|
|
651
632
|
if (o)
|
|
652
|
-
throw new
|
|
633
|
+
throw new we(o);
|
|
653
634
|
}
|
|
654
635
|
}, e.prototype.add = function(t) {
|
|
655
636
|
var r;
|
|
656
637
|
if (t && t !== this)
|
|
657
638
|
if (this.closed)
|
|
658
|
-
|
|
639
|
+
at(t);
|
|
659
640
|
else {
|
|
660
641
|
if (t instanceof e) {
|
|
661
642
|
if (t.closed || t._hasParent(this))
|
|
@@ -672,52 +653,52 @@ var me = function() {
|
|
|
672
653
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
673
654
|
}, e.prototype._removeParent = function(t) {
|
|
674
655
|
var r = this._parentage;
|
|
675
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
656
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ge(r, t);
|
|
676
657
|
}, e.prototype.remove = function(t) {
|
|
677
658
|
var r = this._finalizers;
|
|
678
|
-
r &&
|
|
659
|
+
r && Ge(r, t), t instanceof e && t._removeParent(this);
|
|
679
660
|
}, e.EMPTY = function() {
|
|
680
661
|
var t = new e();
|
|
681
662
|
return t.closed = !0, t;
|
|
682
663
|
}(), e;
|
|
683
|
-
}(),
|
|
684
|
-
function
|
|
685
|
-
return e instanceof
|
|
664
|
+
}(), Mt = be.EMPTY;
|
|
665
|
+
function Nt(e) {
|
|
666
|
+
return e instanceof be || e && "closed" in e && N(e.remove) && N(e.add) && N(e.unsubscribe);
|
|
686
667
|
}
|
|
687
|
-
function
|
|
688
|
-
|
|
668
|
+
function at(e) {
|
|
669
|
+
N(e) ? e() : e.unsubscribe();
|
|
689
670
|
}
|
|
690
|
-
var
|
|
671
|
+
var Gr = {
|
|
691
672
|
Promise: void 0
|
|
692
|
-
},
|
|
673
|
+
}, Dr = {
|
|
693
674
|
setTimeout: function(e, t) {
|
|
694
675
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
695
676
|
r[n - 2] = arguments[n];
|
|
696
|
-
return setTimeout.apply(void 0,
|
|
677
|
+
return setTimeout.apply(void 0, Ue([e, t], Re(r)));
|
|
697
678
|
},
|
|
698
679
|
clearTimeout: function(e) {
|
|
699
680
|
return clearTimeout(e);
|
|
700
681
|
},
|
|
701
682
|
delegate: void 0
|
|
702
683
|
};
|
|
703
|
-
function
|
|
704
|
-
|
|
684
|
+
function Fr(e) {
|
|
685
|
+
Dr.setTimeout(function() {
|
|
705
686
|
throw e;
|
|
706
687
|
});
|
|
707
688
|
}
|
|
708
|
-
function
|
|
689
|
+
function st() {
|
|
709
690
|
}
|
|
710
691
|
function he(e) {
|
|
711
692
|
e();
|
|
712
693
|
}
|
|
713
|
-
var
|
|
714
|
-
|
|
694
|
+
var $t = function(e) {
|
|
695
|
+
oe(t, e);
|
|
715
696
|
function t(r) {
|
|
716
697
|
var n = e.call(this) || this;
|
|
717
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
698
|
+
return n.isStopped = !1, r ? (n.destination = r, Nt(r) && r.add(n)) : n.destination = Vr, n;
|
|
718
699
|
}
|
|
719
700
|
return t.create = function(r, n, i) {
|
|
720
|
-
return new
|
|
701
|
+
return new De(r, n, i);
|
|
721
702
|
}, t.prototype.next = function(r) {
|
|
722
703
|
this.isStopped || this._next(r);
|
|
723
704
|
}, t.prototype.error = function(r) {
|
|
@@ -741,7 +722,7 @@ var At = function(e) {
|
|
|
741
722
|
this.unsubscribe();
|
|
742
723
|
}
|
|
743
724
|
}, t;
|
|
744
|
-
}(
|
|
725
|
+
}(be), jr = function() {
|
|
745
726
|
function e(t) {
|
|
746
727
|
this.partialObserver = t;
|
|
747
728
|
}
|
|
@@ -772,43 +753,43 @@ var At = function(e) {
|
|
|
772
753
|
se(r);
|
|
773
754
|
}
|
|
774
755
|
}, e;
|
|
775
|
-
}(),
|
|
776
|
-
|
|
756
|
+
}(), De = function(e) {
|
|
757
|
+
oe(t, e);
|
|
777
758
|
function t(r, n, i) {
|
|
778
759
|
var o = e.call(this) || this, a;
|
|
779
|
-
return
|
|
760
|
+
return N(r) || !r ? a = {
|
|
780
761
|
next: r != null ? r : void 0,
|
|
781
762
|
error: n != null ? n : void 0,
|
|
782
763
|
complete: i != null ? i : void 0
|
|
783
|
-
} : a = r, o.destination = new
|
|
764
|
+
} : a = r, o.destination = new jr(a), o;
|
|
784
765
|
}
|
|
785
766
|
return t;
|
|
786
|
-
}(
|
|
767
|
+
}($t);
|
|
787
768
|
function se(e) {
|
|
788
|
-
|
|
769
|
+
Fr(e);
|
|
789
770
|
}
|
|
790
|
-
function
|
|
771
|
+
function kr(e) {
|
|
791
772
|
throw e;
|
|
792
773
|
}
|
|
793
|
-
var
|
|
774
|
+
var Vr = {
|
|
794
775
|
closed: !0,
|
|
795
|
-
next:
|
|
796
|
-
error:
|
|
797
|
-
complete:
|
|
798
|
-
},
|
|
776
|
+
next: st,
|
|
777
|
+
error: kr,
|
|
778
|
+
complete: st
|
|
779
|
+
}, zr = function() {
|
|
799
780
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
800
781
|
}();
|
|
801
|
-
function
|
|
782
|
+
function Wr(e) {
|
|
802
783
|
return e;
|
|
803
784
|
}
|
|
804
|
-
function
|
|
805
|
-
return e.length === 0 ?
|
|
785
|
+
function Xr(e) {
|
|
786
|
+
return e.length === 0 ? Wr : e.length === 1 ? e[0] : function(r) {
|
|
806
787
|
return e.reduce(function(n, i) {
|
|
807
788
|
return i(n);
|
|
808
789
|
}, r);
|
|
809
790
|
};
|
|
810
791
|
}
|
|
811
|
-
var
|
|
792
|
+
var ut = function() {
|
|
812
793
|
function e(t) {
|
|
813
794
|
t && (this._subscribe = t);
|
|
814
795
|
}
|
|
@@ -816,7 +797,7 @@ var nt = function() {
|
|
|
816
797
|
var r = new e();
|
|
817
798
|
return r.source = this, r.operator = t, r;
|
|
818
799
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
819
|
-
var i = this, o =
|
|
800
|
+
var i = this, o = Zr(t) ? t : new De(t, r, n);
|
|
820
801
|
return he(function() {
|
|
821
802
|
var a = i, s = a.operator, l = a.source;
|
|
822
803
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -829,8 +810,8 @@ var nt = function() {
|
|
|
829
810
|
}
|
|
830
811
|
}, e.prototype.forEach = function(t, r) {
|
|
831
812
|
var n = this;
|
|
832
|
-
return r =
|
|
833
|
-
var a = new
|
|
813
|
+
return r = lt(r), new r(function(i, o) {
|
|
814
|
+
var a = new De({
|
|
834
815
|
next: function(s) {
|
|
835
816
|
try {
|
|
836
817
|
t(s);
|
|
@@ -846,15 +827,15 @@ var nt = function() {
|
|
|
846
827
|
}, e.prototype._subscribe = function(t) {
|
|
847
828
|
var r;
|
|
848
829
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
849
|
-
}, e.prototype[
|
|
830
|
+
}, e.prototype[zr] = function() {
|
|
850
831
|
return this;
|
|
851
832
|
}, e.prototype.pipe = function() {
|
|
852
833
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
853
834
|
t[r] = arguments[r];
|
|
854
|
-
return
|
|
835
|
+
return Xr(t)(this);
|
|
855
836
|
}, e.prototype.toPromise = function(t) {
|
|
856
837
|
var r = this;
|
|
857
|
-
return t =
|
|
838
|
+
return t = lt(t), new t(function(n, i) {
|
|
858
839
|
var o;
|
|
859
840
|
r.subscribe(function(a) {
|
|
860
841
|
return o = a;
|
|
@@ -868,32 +849,32 @@ var nt = function() {
|
|
|
868
849
|
return new e(t);
|
|
869
850
|
}, e;
|
|
870
851
|
}();
|
|
871
|
-
function
|
|
852
|
+
function lt(e) {
|
|
872
853
|
var t;
|
|
873
|
-
return (t = e != null ? e :
|
|
854
|
+
return (t = e != null ? e : Gr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
874
855
|
}
|
|
875
|
-
function
|
|
876
|
-
return e &&
|
|
856
|
+
function qr(e) {
|
|
857
|
+
return e && N(e.next) && N(e.error) && N(e.complete);
|
|
877
858
|
}
|
|
878
|
-
function
|
|
879
|
-
return e && e instanceof
|
|
859
|
+
function Zr(e) {
|
|
860
|
+
return e && e instanceof $t || qr(e) && Nt(e);
|
|
880
861
|
}
|
|
881
|
-
var
|
|
862
|
+
var Yr = Lt(function(e) {
|
|
882
863
|
return function() {
|
|
883
864
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
884
865
|
};
|
|
885
|
-
}),
|
|
886
|
-
|
|
866
|
+
}), Rt = function(e) {
|
|
867
|
+
oe(t, e);
|
|
887
868
|
function t() {
|
|
888
869
|
var r = e.call(this) || this;
|
|
889
870
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
890
871
|
}
|
|
891
872
|
return t.prototype.lift = function(r) {
|
|
892
|
-
var n = new
|
|
873
|
+
var n = new ht(this, this);
|
|
893
874
|
return n.operator = r, n;
|
|
894
875
|
}, t.prototype._throwIfClosed = function() {
|
|
895
876
|
if (this.closed)
|
|
896
|
-
throw new
|
|
877
|
+
throw new Yr();
|
|
897
878
|
}, t.prototype.next = function(r) {
|
|
898
879
|
var n = this;
|
|
899
880
|
he(function() {
|
|
@@ -901,7 +882,7 @@ var Wr = It(function(e) {
|
|
|
901
882
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
902
883
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
903
884
|
try {
|
|
904
|
-
for (var a =
|
|
885
|
+
for (var a = $e(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
905
886
|
var l = s.value;
|
|
906
887
|
l.next(r);
|
|
907
888
|
}
|
|
@@ -950,20 +931,20 @@ var Wr = It(function(e) {
|
|
|
950
931
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
951
932
|
}, t.prototype._innerSubscribe = function(r) {
|
|
952
933
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
953
|
-
return o || a ?
|
|
954
|
-
n.currentObservers = null,
|
|
934
|
+
return o || a ? Mt : (this.currentObservers = null, s.push(r), new be(function() {
|
|
935
|
+
n.currentObservers = null, Ge(s, r);
|
|
955
936
|
}));
|
|
956
937
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
957
938
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
958
939
|
i ? r.error(o) : a && r.complete();
|
|
959
940
|
}, t.prototype.asObservable = function() {
|
|
960
|
-
var r = new
|
|
941
|
+
var r = new ut();
|
|
961
942
|
return r.source = this, r;
|
|
962
943
|
}, t.create = function(r, n) {
|
|
963
|
-
return new
|
|
944
|
+
return new ht(r, n);
|
|
964
945
|
}, t;
|
|
965
|
-
}(
|
|
966
|
-
|
|
946
|
+
}(ut), ht = function(e) {
|
|
947
|
+
oe(t, e);
|
|
967
948
|
function t(r, n) {
|
|
968
949
|
var i = e.call(this) || this;
|
|
969
950
|
return i.destination = r, i.source = n, i;
|
|
@@ -979,17 +960,17 @@ var Wr = It(function(e) {
|
|
|
979
960
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
980
961
|
}, t.prototype._subscribe = function(r) {
|
|
981
962
|
var n, i;
|
|
982
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
963
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Mt;
|
|
983
964
|
}, t;
|
|
984
|
-
}(
|
|
965
|
+
}(Rt), Ut = {
|
|
985
966
|
now: function() {
|
|
986
|
-
return (
|
|
967
|
+
return (Ut.delegate || Date).now();
|
|
987
968
|
},
|
|
988
969
|
delegate: void 0
|
|
989
|
-
},
|
|
990
|
-
|
|
970
|
+
}, Qr = function(e) {
|
|
971
|
+
oe(t, e);
|
|
991
972
|
function t(r, n, i) {
|
|
992
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
973
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ut);
|
|
993
974
|
var o = e.call(this) || this;
|
|
994
975
|
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;
|
|
995
976
|
}
|
|
@@ -1009,24 +990,24 @@ var Wr = It(function(e) {
|
|
|
1009
990
|
u && o.splice(0, u + 1);
|
|
1010
991
|
}
|
|
1011
992
|
}, t;
|
|
1012
|
-
}(
|
|
1013
|
-
const
|
|
1014
|
-
if (
|
|
1015
|
-
const r = new
|
|
1016
|
-
|
|
993
|
+
}(Rt);
|
|
994
|
+
const ct = [], ft = {}, Jr = (e, t = 0) => {
|
|
995
|
+
if (ct.indexOf(e) == -1) {
|
|
996
|
+
const r = new Qr(t);
|
|
997
|
+
ft[e] = r, ct.push(e);
|
|
1017
998
|
}
|
|
1018
|
-
return
|
|
999
|
+
return ft[e];
|
|
1019
1000
|
}, G = [];
|
|
1020
|
-
function
|
|
1001
|
+
function Kr(e, t) {
|
|
1021
1002
|
return {
|
|
1022
|
-
subscribe:
|
|
1003
|
+
subscribe: ve(e, t).subscribe
|
|
1023
1004
|
};
|
|
1024
1005
|
}
|
|
1025
|
-
function
|
|
1006
|
+
function ve(e, t = O) {
|
|
1026
1007
|
let r;
|
|
1027
1008
|
const n = /* @__PURE__ */ new Set();
|
|
1028
1009
|
function i(s) {
|
|
1029
|
-
if (
|
|
1010
|
+
if (Ct(e, s) && (e = s, r)) {
|
|
1030
1011
|
const l = !G.length;
|
|
1031
1012
|
for (const u of n)
|
|
1032
1013
|
u[1](), G.push(u, e);
|
|
@@ -1048,12 +1029,12 @@ function be(e, t = O) {
|
|
|
1048
1029
|
}
|
|
1049
1030
|
return { set: i, update: o, subscribe: a };
|
|
1050
1031
|
}
|
|
1051
|
-
function
|
|
1032
|
+
function X(e, t, r) {
|
|
1052
1033
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1053
1034
|
if (!i.every(Boolean))
|
|
1054
1035
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1055
1036
|
const o = t.length < 2;
|
|
1056
|
-
return
|
|
1037
|
+
return Kr(r, (a, s) => {
|
|
1057
1038
|
let l = !1;
|
|
1058
1039
|
const u = [];
|
|
1059
1040
|
let h = 0, f = O;
|
|
@@ -1062,9 +1043,9 @@ function q(e, t, r) {
|
|
|
1062
1043
|
return;
|
|
1063
1044
|
f();
|
|
1064
1045
|
const d = t(n ? u[0] : u, a, s);
|
|
1065
|
-
o ? a(d) : f =
|
|
1046
|
+
o ? a(d) : f = Ye(d) ? d : O;
|
|
1066
1047
|
}, p = i.map(
|
|
1067
|
-
(d, y) =>
|
|
1048
|
+
(d, y) => At(
|
|
1068
1049
|
d,
|
|
1069
1050
|
(S) => {
|
|
1070
1051
|
u[y] = S, h &= ~(1 << y), l && c();
|
|
@@ -1075,115 +1056,157 @@ function q(e, t, r) {
|
|
|
1075
1056
|
)
|
|
1076
1057
|
);
|
|
1077
1058
|
return l = !0, c(), function() {
|
|
1078
|
-
|
|
1059
|
+
re(p), f(), l = !1;
|
|
1079
1060
|
};
|
|
1080
1061
|
});
|
|
1081
1062
|
}
|
|
1082
|
-
function
|
|
1063
|
+
function en(e) {
|
|
1083
1064
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1084
1065
|
}
|
|
1085
|
-
var
|
|
1086
|
-
return
|
|
1066
|
+
var tn = function(t) {
|
|
1067
|
+
return rn(t) && !nn(t);
|
|
1087
1068
|
};
|
|
1088
|
-
function
|
|
1069
|
+
function rn(e) {
|
|
1089
1070
|
return !!e && typeof e == "object";
|
|
1090
1071
|
}
|
|
1091
|
-
function
|
|
1072
|
+
function nn(e) {
|
|
1092
1073
|
var t = Object.prototype.toString.call(e);
|
|
1093
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1074
|
+
return t === "[object RegExp]" || t === "[object Date]" || sn(e);
|
|
1094
1075
|
}
|
|
1095
|
-
var
|
|
1096
|
-
function
|
|
1097
|
-
return e.$$typeof ===
|
|
1076
|
+
var on = typeof Symbol == "function" && Symbol.for, an = on ? Symbol.for("react.element") : 60103;
|
|
1077
|
+
function sn(e) {
|
|
1078
|
+
return e.$$typeof === an;
|
|
1098
1079
|
}
|
|
1099
|
-
function
|
|
1080
|
+
function un(e) {
|
|
1100
1081
|
return Array.isArray(e) ? [] : {};
|
|
1101
1082
|
}
|
|
1102
|
-
function
|
|
1103
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1083
|
+
function ee(e, t) {
|
|
1084
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? j(un(e), e, t) : e;
|
|
1104
1085
|
}
|
|
1105
|
-
function
|
|
1086
|
+
function ln(e, t, r) {
|
|
1106
1087
|
return e.concat(t).map(function(n) {
|
|
1107
|
-
return
|
|
1088
|
+
return ee(n, r);
|
|
1108
1089
|
});
|
|
1109
1090
|
}
|
|
1110
|
-
function
|
|
1091
|
+
function hn(e, t) {
|
|
1111
1092
|
if (!t.customMerge)
|
|
1112
|
-
return
|
|
1093
|
+
return j;
|
|
1113
1094
|
var r = t.customMerge(e);
|
|
1114
|
-
return typeof r == "function" ? r :
|
|
1095
|
+
return typeof r == "function" ? r : j;
|
|
1115
1096
|
}
|
|
1116
|
-
function
|
|
1097
|
+
function cn(e) {
|
|
1117
1098
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1118
1099
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1119
1100
|
}) : [];
|
|
1120
1101
|
}
|
|
1121
|
-
function
|
|
1122
|
-
return Object.keys(e).concat(
|
|
1102
|
+
function pt(e) {
|
|
1103
|
+
return Object.keys(e).concat(cn(e));
|
|
1123
1104
|
}
|
|
1124
|
-
function
|
|
1105
|
+
function Gt(e, t) {
|
|
1125
1106
|
try {
|
|
1126
1107
|
return t in e;
|
|
1127
1108
|
} catch (r) {
|
|
1128
1109
|
return !1;
|
|
1129
1110
|
}
|
|
1130
1111
|
}
|
|
1131
|
-
function
|
|
1132
|
-
return
|
|
1112
|
+
function fn(e, t) {
|
|
1113
|
+
return Gt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1133
1114
|
}
|
|
1134
|
-
function
|
|
1115
|
+
function pn(e, t, r) {
|
|
1135
1116
|
var n = {};
|
|
1136
|
-
return r.isMergeableObject(e) &&
|
|
1137
|
-
n[i] =
|
|
1138
|
-
}),
|
|
1139
|
-
|
|
1117
|
+
return r.isMergeableObject(e) && pt(e).forEach(function(i) {
|
|
1118
|
+
n[i] = ee(e[i], r);
|
|
1119
|
+
}), pt(t).forEach(function(i) {
|
|
1120
|
+
fn(e, i) || (Gt(e, i) && r.isMergeableObject(t[i]) ? n[i] = hn(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
|
|
1140
1121
|
}), n;
|
|
1141
1122
|
}
|
|
1142
|
-
function
|
|
1143
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1123
|
+
function j(e, t, r) {
|
|
1124
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ln, r.isMergeableObject = r.isMergeableObject || tn, r.cloneUnlessOtherwiseSpecified = ee;
|
|
1144
1125
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1145
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1126
|
+
return o ? n ? r.arrayMerge(e, t, r) : pn(e, t, r) : ee(t, r);
|
|
1146
1127
|
}
|
|
1147
|
-
|
|
1128
|
+
j.all = function(t, r) {
|
|
1148
1129
|
if (!Array.isArray(t))
|
|
1149
1130
|
throw new Error("first argument should be an array");
|
|
1150
1131
|
return t.reduce(function(n, i) {
|
|
1151
|
-
return
|
|
1132
|
+
return j(n, i, r);
|
|
1152
1133
|
}, {});
|
|
1153
1134
|
};
|
|
1154
|
-
var
|
|
1155
|
-
const
|
|
1156
|
-
function
|
|
1157
|
-
|
|
1135
|
+
var dn = j, mn = dn;
|
|
1136
|
+
const bn = /* @__PURE__ */ en(mn);
|
|
1137
|
+
var Fe = function(e, t) {
|
|
1138
|
+
return Fe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1139
|
+
r.__proto__ = n;
|
|
1140
|
+
} || function(r, n) {
|
|
1141
|
+
for (var i in n)
|
|
1142
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1143
|
+
}, Fe(e, t);
|
|
1144
|
+
};
|
|
1145
|
+
function ye(e, t) {
|
|
1146
|
+
if (typeof t != "function" && t !== null)
|
|
1147
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1148
|
+
Fe(e, t);
|
|
1149
|
+
function r() {
|
|
1150
|
+
this.constructor = e;
|
|
1151
|
+
}
|
|
1152
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1153
|
+
}
|
|
1154
|
+
var M = function() {
|
|
1155
|
+
return M = Object.assign || function(t) {
|
|
1156
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1157
|
+
r = arguments[n];
|
|
1158
|
+
for (var o in r)
|
|
1159
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1160
|
+
}
|
|
1161
|
+
return t;
|
|
1162
|
+
}, M.apply(this, arguments);
|
|
1163
|
+
};
|
|
1164
|
+
function vn(e, t) {
|
|
1165
|
+
var r = {};
|
|
1166
|
+
for (var n in e)
|
|
1167
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1168
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1169
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1170
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1171
|
+
return r;
|
|
1172
|
+
}
|
|
1173
|
+
function Pe(e, t, r) {
|
|
1174
|
+
if (r || arguments.length === 2)
|
|
1175
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1176
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1177
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1178
|
+
}
|
|
1179
|
+
function He(e, t) {
|
|
1180
|
+
var r = t && t.cache ? t.cache : Sn, n = t && t.serializer ? t.serializer : En, i = t && t.strategy ? t.strategy : xn;
|
|
1158
1181
|
return i(e, {
|
|
1159
1182
|
cache: r,
|
|
1160
1183
|
serializer: n
|
|
1161
1184
|
});
|
|
1162
1185
|
}
|
|
1163
|
-
function
|
|
1186
|
+
function yn(e) {
|
|
1164
1187
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1165
1188
|
}
|
|
1166
|
-
function
|
|
1167
|
-
var i =
|
|
1189
|
+
function gn(e, t, r, n) {
|
|
1190
|
+
var i = yn(n) ? n : r(n), o = t.get(i);
|
|
1168
1191
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1169
1192
|
}
|
|
1170
|
-
function
|
|
1193
|
+
function Dt(e, t, r) {
|
|
1171
1194
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1172
1195
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1173
1196
|
}
|
|
1174
|
-
function
|
|
1197
|
+
function Ft(e, t, r, n, i) {
|
|
1175
1198
|
return r.bind(t, e, n, i);
|
|
1176
1199
|
}
|
|
1177
|
-
function
|
|
1178
|
-
var r = e.length === 1 ?
|
|
1179
|
-
return
|
|
1200
|
+
function xn(e, t) {
|
|
1201
|
+
var r = e.length === 1 ? gn : Dt;
|
|
1202
|
+
return Ft(e, this, r, t.cache.create(), t.serializer);
|
|
1180
1203
|
}
|
|
1181
|
-
function
|
|
1182
|
-
return
|
|
1204
|
+
function _n(e, t) {
|
|
1205
|
+
return Ft(e, this, Dt, t.cache.create(), t.serializer);
|
|
1183
1206
|
}
|
|
1184
|
-
var
|
|
1207
|
+
var En = function() {
|
|
1185
1208
|
return JSON.stringify(arguments);
|
|
1186
|
-
},
|
|
1209
|
+
}, Tn = (
|
|
1187
1210
|
/** @class */
|
|
1188
1211
|
function() {
|
|
1189
1212
|
function e() {
|
|
@@ -1195,61 +1218,71 @@ var vn = function() {
|
|
|
1195
1218
|
this.cache[t] = r;
|
|
1196
1219
|
}, e;
|
|
1197
1220
|
}()
|
|
1198
|
-
),
|
|
1221
|
+
), Sn = {
|
|
1199
1222
|
create: function() {
|
|
1200
|
-
return new
|
|
1223
|
+
return new Tn();
|
|
1201
1224
|
}
|
|
1202
|
-
},
|
|
1203
|
-
variadic:
|
|
1204
|
-
},
|
|
1225
|
+
}, Ie = {
|
|
1226
|
+
variadic: _n
|
|
1227
|
+
}, pe = function() {
|
|
1228
|
+
return pe = Object.assign || function(t) {
|
|
1229
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1230
|
+
r = arguments[n];
|
|
1231
|
+
for (var o in r)
|
|
1232
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1233
|
+
}
|
|
1234
|
+
return t;
|
|
1235
|
+
}, pe.apply(this, arguments);
|
|
1236
|
+
};
|
|
1237
|
+
var b;
|
|
1205
1238
|
(function(e) {
|
|
1206
1239
|
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";
|
|
1207
1240
|
})(b || (b = {}));
|
|
1208
|
-
var
|
|
1241
|
+
var x;
|
|
1209
1242
|
(function(e) {
|
|
1210
1243
|
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";
|
|
1211
|
-
})(
|
|
1212
|
-
var
|
|
1244
|
+
})(x || (x = {}));
|
|
1245
|
+
var k;
|
|
1213
1246
|
(function(e) {
|
|
1214
1247
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1215
|
-
})(
|
|
1216
|
-
function
|
|
1217
|
-
return e.type ===
|
|
1248
|
+
})(k || (k = {}));
|
|
1249
|
+
function dt(e) {
|
|
1250
|
+
return e.type === x.literal;
|
|
1218
1251
|
}
|
|
1219
|
-
function
|
|
1220
|
-
return e.type ===
|
|
1252
|
+
function wn(e) {
|
|
1253
|
+
return e.type === x.argument;
|
|
1221
1254
|
}
|
|
1222
|
-
function
|
|
1223
|
-
return e.type ===
|
|
1255
|
+
function jt(e) {
|
|
1256
|
+
return e.type === x.number;
|
|
1224
1257
|
}
|
|
1225
|
-
function
|
|
1226
|
-
return e.type ===
|
|
1258
|
+
function kt(e) {
|
|
1259
|
+
return e.type === x.date;
|
|
1227
1260
|
}
|
|
1228
|
-
function
|
|
1229
|
-
return e.type ===
|
|
1261
|
+
function Vt(e) {
|
|
1262
|
+
return e.type === x.time;
|
|
1230
1263
|
}
|
|
1231
|
-
function
|
|
1232
|
-
return e.type ===
|
|
1264
|
+
function zt(e) {
|
|
1265
|
+
return e.type === x.select;
|
|
1233
1266
|
}
|
|
1234
|
-
function
|
|
1235
|
-
return e.type ===
|
|
1267
|
+
function Wt(e) {
|
|
1268
|
+
return e.type === x.plural;
|
|
1236
1269
|
}
|
|
1237
|
-
function
|
|
1238
|
-
return e.type ===
|
|
1270
|
+
function Pn(e) {
|
|
1271
|
+
return e.type === x.pound;
|
|
1239
1272
|
}
|
|
1240
|
-
function
|
|
1241
|
-
return e.type ===
|
|
1273
|
+
function Xt(e) {
|
|
1274
|
+
return e.type === x.tag;
|
|
1242
1275
|
}
|
|
1243
|
-
function
|
|
1244
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1276
|
+
function qt(e) {
|
|
1277
|
+
return !!(e && typeof e == "object" && e.type === k.number);
|
|
1245
1278
|
}
|
|
1246
|
-
function
|
|
1247
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1279
|
+
function je(e) {
|
|
1280
|
+
return !!(e && typeof e == "object" && e.type === k.dateTime);
|
|
1248
1281
|
}
|
|
1249
|
-
var
|
|
1250
|
-
function
|
|
1282
|
+
var Zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Hn = /(?:[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;
|
|
1283
|
+
function In(e) {
|
|
1251
1284
|
var t = {};
|
|
1252
|
-
return e.replace(
|
|
1285
|
+
return e.replace(Hn, function(r) {
|
|
1253
1286
|
var n = r.length;
|
|
1254
1287
|
switch (r[0]) {
|
|
1255
1288
|
case "G":
|
|
@@ -1338,11 +1371,21 @@ function Tn(e) {
|
|
|
1338
1371
|
return "";
|
|
1339
1372
|
}), t;
|
|
1340
1373
|
}
|
|
1341
|
-
var
|
|
1342
|
-
function
|
|
1374
|
+
var _ = function() {
|
|
1375
|
+
return _ = Object.assign || function(t) {
|
|
1376
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1377
|
+
r = arguments[n];
|
|
1378
|
+
for (var o in r)
|
|
1379
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1380
|
+
}
|
|
1381
|
+
return t;
|
|
1382
|
+
}, _.apply(this, arguments);
|
|
1383
|
+
};
|
|
1384
|
+
var Bn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1385
|
+
function Cn(e) {
|
|
1343
1386
|
if (e.length === 0)
|
|
1344
1387
|
throw new Error("Number skeleton cannot be empty");
|
|
1345
|
-
for (var t = e.split(
|
|
1388
|
+
for (var t = e.split(Bn).filter(function(c) {
|
|
1346
1389
|
return c.length > 0;
|
|
1347
1390
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1348
1391
|
var o = i[n], a = o.split("/");
|
|
@@ -1357,17 +1400,17 @@ function wn(e) {
|
|
|
1357
1400
|
}
|
|
1358
1401
|
return r;
|
|
1359
1402
|
}
|
|
1360
|
-
function
|
|
1403
|
+
function An(e) {
|
|
1361
1404
|
return e.replace(/^(.*?)-/, "");
|
|
1362
1405
|
}
|
|
1363
|
-
var
|
|
1364
|
-
function
|
|
1406
|
+
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Yt = /^(@+)?(\+|#+)?[rs]?$/g, On = /(\*)(0+)|(#+)(0+)|(0+)/g, Qt = /^(0+)$/;
|
|
1407
|
+
function bt(e) {
|
|
1365
1408
|
var t = {};
|
|
1366
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1409
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Yt, function(r, n, i) {
|
|
1367
1410
|
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)), "";
|
|
1368
1411
|
}), t;
|
|
1369
1412
|
}
|
|
1370
|
-
function
|
|
1413
|
+
function Jt(e) {
|
|
1371
1414
|
switch (e) {
|
|
1372
1415
|
case "sign-auto":
|
|
1373
1416
|
return {
|
|
@@ -1407,7 +1450,7 @@ function Xt(e) {
|
|
|
1407
1450
|
};
|
|
1408
1451
|
}
|
|
1409
1452
|
}
|
|
1410
|
-
function
|
|
1453
|
+
function Ln(e) {
|
|
1411
1454
|
var t;
|
|
1412
1455
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1413
1456
|
notation: "engineering"
|
|
@@ -1415,17 +1458,17 @@ function In(e) {
|
|
|
1415
1458
|
notation: "scientific"
|
|
1416
1459
|
}, e = e.slice(1)), t) {
|
|
1417
1460
|
var r = e.slice(0, 2);
|
|
1418
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1461
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Qt.test(e))
|
|
1419
1462
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1420
1463
|
t.minimumIntegerDigits = e.length;
|
|
1421
1464
|
}
|
|
1422
1465
|
return t;
|
|
1423
1466
|
}
|
|
1424
|
-
function
|
|
1425
|
-
var t = {}, r =
|
|
1467
|
+
function vt(e) {
|
|
1468
|
+
var t = {}, r = Jt(e);
|
|
1426
1469
|
return r || t;
|
|
1427
1470
|
}
|
|
1428
|
-
function
|
|
1471
|
+
function Mn(e) {
|
|
1429
1472
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1430
1473
|
var i = n[r];
|
|
1431
1474
|
switch (i.stem) {
|
|
@@ -1449,7 +1492,7 @@ function Bn(e) {
|
|
|
1449
1492
|
continue;
|
|
1450
1493
|
case "measure-unit":
|
|
1451
1494
|
case "unit":
|
|
1452
|
-
t.style = "unit", t.unit =
|
|
1495
|
+
t.style = "unit", t.unit = An(i.options[0]);
|
|
1453
1496
|
continue;
|
|
1454
1497
|
case "compact-short":
|
|
1455
1498
|
case "K":
|
|
@@ -1460,13 +1503,13 @@ function Bn(e) {
|
|
|
1460
1503
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1461
1504
|
continue;
|
|
1462
1505
|
case "scientific":
|
|
1463
|
-
t =
|
|
1464
|
-
return
|
|
1506
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1507
|
+
return _(_({}, l), vt(u));
|
|
1465
1508
|
}, {}));
|
|
1466
1509
|
continue;
|
|
1467
1510
|
case "engineering":
|
|
1468
|
-
t =
|
|
1469
|
-
return
|
|
1511
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1512
|
+
return _(_({}, l), vt(u));
|
|
1470
1513
|
}, {}));
|
|
1471
1514
|
continue;
|
|
1472
1515
|
case "notation-simple":
|
|
@@ -1511,7 +1554,7 @@ function Bn(e) {
|
|
|
1511
1554
|
case "integer-width":
|
|
1512
1555
|
if (i.options.length > 1)
|
|
1513
1556
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1514
|
-
i.options[0].replace(
|
|
1557
|
+
i.options[0].replace(On, function(l, u, h, f, c, p) {
|
|
1515
1558
|
if (u)
|
|
1516
1559
|
t.minimumIntegerDigits = h.length;
|
|
1517
1560
|
else {
|
|
@@ -1524,28 +1567,28 @@ function Bn(e) {
|
|
|
1524
1567
|
});
|
|
1525
1568
|
continue;
|
|
1526
1569
|
}
|
|
1527
|
-
if (
|
|
1570
|
+
if (Qt.test(i.stem)) {
|
|
1528
1571
|
t.minimumIntegerDigits = i.stem.length;
|
|
1529
1572
|
continue;
|
|
1530
1573
|
}
|
|
1531
|
-
if (
|
|
1574
|
+
if (mt.test(i.stem)) {
|
|
1532
1575
|
if (i.options.length > 1)
|
|
1533
1576
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1534
|
-
i.stem.replace(
|
|
1577
|
+
i.stem.replace(mt, function(l, u, h, f, c, p) {
|
|
1535
1578
|
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1536
1579
|
});
|
|
1537
1580
|
var o = i.options[0];
|
|
1538
|
-
o === "w" ? t =
|
|
1581
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), bt(o)));
|
|
1539
1582
|
continue;
|
|
1540
1583
|
}
|
|
1541
|
-
if (
|
|
1542
|
-
t =
|
|
1584
|
+
if (Yt.test(i.stem)) {
|
|
1585
|
+
t = _(_({}, t), bt(i.stem));
|
|
1543
1586
|
continue;
|
|
1544
1587
|
}
|
|
1545
|
-
var a =
|
|
1546
|
-
a && (t =
|
|
1547
|
-
var s =
|
|
1548
|
-
s && (t =
|
|
1588
|
+
var a = Jt(i.stem);
|
|
1589
|
+
a && (t = _(_({}, t), a));
|
|
1590
|
+
var s = Ln(i.stem);
|
|
1591
|
+
s && (t = _(_({}, t), s));
|
|
1549
1592
|
}
|
|
1550
1593
|
return t;
|
|
1551
1594
|
}
|
|
@@ -2964,13 +3007,13 @@ var ue = {
|
|
|
2964
3007
|
"h"
|
|
2965
3008
|
]
|
|
2966
3009
|
};
|
|
2967
|
-
function
|
|
3010
|
+
function Nn(e, t) {
|
|
2968
3011
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2969
3012
|
var i = e.charAt(n);
|
|
2970
3013
|
if (i === "j") {
|
|
2971
3014
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2972
3015
|
o++, n++;
|
|
2973
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3016
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = $n(t);
|
|
2974
3017
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2975
3018
|
r += l;
|
|
2976
3019
|
for (; a-- > 0; )
|
|
@@ -2980,7 +3023,7 @@ function Cn(e, t) {
|
|
|
2980
3023
|
}
|
|
2981
3024
|
return r;
|
|
2982
3025
|
}
|
|
2983
|
-
function
|
|
3026
|
+
function $n(e) {
|
|
2984
3027
|
var t = e.hourCycle;
|
|
2985
3028
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2986
3029
|
e.hourCycles && // @ts-ignore
|
|
@@ -3002,20 +3045,20 @@ function An(e) {
|
|
|
3002
3045
|
var i = ue[n || ""] || ue[r || ""] || ue["".concat(r, "-001")] || ue["001"];
|
|
3003
3046
|
return i[0];
|
|
3004
3047
|
}
|
|
3005
|
-
var
|
|
3048
|
+
var Be, Rn = new RegExp("^".concat(Zt.source, "*")), Un = new RegExp("".concat(Zt.source, "*$"));
|
|
3006
3049
|
function v(e, t) {
|
|
3007
3050
|
return { start: e, end: t };
|
|
3008
3051
|
}
|
|
3009
|
-
var
|
|
3052
|
+
var Gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Dn = !!String.fromCodePoint, Fn = !!Object.fromEntries, jn = !!String.prototype.codePointAt, kn = !!String.prototype.trimStart, Vn = !!String.prototype.trimEnd, zn = !!Number.isSafeInteger, Wn = zn ? Number.isSafeInteger : function(e) {
|
|
3010
3053
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3011
|
-
},
|
|
3054
|
+
}, ke = !0;
|
|
3012
3055
|
try {
|
|
3013
|
-
var
|
|
3014
|
-
|
|
3056
|
+
var Xn = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3057
|
+
ke = ((Be = Xn.exec("a")) === null || Be === void 0 ? void 0 : Be[0]) === "a";
|
|
3015
3058
|
} catch (e) {
|
|
3016
|
-
|
|
3059
|
+
ke = !1;
|
|
3017
3060
|
}
|
|
3018
|
-
var
|
|
3061
|
+
var yt = Gn ? (
|
|
3019
3062
|
// Native
|
|
3020
3063
|
function(t, r, n) {
|
|
3021
3064
|
return t.startsWith(r, n);
|
|
@@ -3025,7 +3068,7 @@ var pt = Mn ? (
|
|
|
3025
3068
|
function(t, r, n) {
|
|
3026
3069
|
return t.slice(n, n + r.length) === r;
|
|
3027
3070
|
}
|
|
3028
|
-
),
|
|
3071
|
+
), Ve = Dn ? String.fromCodePoint : (
|
|
3029
3072
|
// IE11
|
|
3030
3073
|
function() {
|
|
3031
3074
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3037,9 +3080,9 @@ var pt = Mn ? (
|
|
|
3037
3080
|
}
|
|
3038
3081
|
return n;
|
|
3039
3082
|
}
|
|
3040
|
-
),
|
|
3083
|
+
), gt = (
|
|
3041
3084
|
// native
|
|
3042
|
-
|
|
3085
|
+
Fn ? Object.fromEntries : (
|
|
3043
3086
|
// Ponyfill
|
|
3044
3087
|
function(t) {
|
|
3045
3088
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3049,7 +3092,7 @@ var pt = Mn ? (
|
|
|
3049
3092
|
return r;
|
|
3050
3093
|
}
|
|
3051
3094
|
)
|
|
3052
|
-
),
|
|
3095
|
+
), Kt = jn ? (
|
|
3053
3096
|
// Native
|
|
3054
3097
|
function(t, r) {
|
|
3055
3098
|
return t.codePointAt(r);
|
|
@@ -3063,7 +3106,7 @@ var pt = Mn ? (
|
|
|
3063
3106
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3064
3107
|
}
|
|
3065
3108
|
}
|
|
3066
|
-
),
|
|
3109
|
+
), qn = kn ? (
|
|
3067
3110
|
// Native
|
|
3068
3111
|
function(t) {
|
|
3069
3112
|
return t.trimStart();
|
|
@@ -3071,9 +3114,9 @@ var pt = Mn ? (
|
|
|
3071
3114
|
) : (
|
|
3072
3115
|
// Ponyfill
|
|
3073
3116
|
function(t) {
|
|
3074
|
-
return t.replace(
|
|
3117
|
+
return t.replace(Rn, "");
|
|
3075
3118
|
}
|
|
3076
|
-
),
|
|
3119
|
+
), Zn = Vn ? (
|
|
3077
3120
|
// Native
|
|
3078
3121
|
function(t) {
|
|
3079
3122
|
return t.trimEnd();
|
|
@@ -3081,32 +3124,32 @@ var pt = Mn ? (
|
|
|
3081
3124
|
) : (
|
|
3082
3125
|
// Ponyfill
|
|
3083
3126
|
function(t) {
|
|
3084
|
-
return t.replace(
|
|
3127
|
+
return t.replace(Un, "");
|
|
3085
3128
|
}
|
|
3086
3129
|
);
|
|
3087
|
-
function
|
|
3130
|
+
function er(e, t) {
|
|
3088
3131
|
return new RegExp(e, t);
|
|
3089
3132
|
}
|
|
3090
|
-
var
|
|
3091
|
-
if (
|
|
3092
|
-
var
|
|
3093
|
-
|
|
3133
|
+
var ze;
|
|
3134
|
+
if (ke) {
|
|
3135
|
+
var xt = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3136
|
+
ze = function(t, r) {
|
|
3094
3137
|
var n;
|
|
3095
|
-
|
|
3096
|
-
var i =
|
|
3138
|
+
xt.lastIndex = r;
|
|
3139
|
+
var i = xt.exec(t);
|
|
3097
3140
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3098
3141
|
};
|
|
3099
3142
|
} else
|
|
3100
|
-
|
|
3143
|
+
ze = function(t, r) {
|
|
3101
3144
|
for (var n = []; ; ) {
|
|
3102
|
-
var i =
|
|
3103
|
-
if (i === void 0 ||
|
|
3145
|
+
var i = Kt(t, r);
|
|
3146
|
+
if (i === void 0 || tr(i) || Kn(i))
|
|
3104
3147
|
break;
|
|
3105
3148
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3106
3149
|
}
|
|
3107
|
-
return
|
|
3150
|
+
return Ve.apply(void 0, n);
|
|
3108
3151
|
};
|
|
3109
|
-
var
|
|
3152
|
+
var Yn = (
|
|
3110
3153
|
/** @class */
|
|
3111
3154
|
function() {
|
|
3112
3155
|
function e(t, r) {
|
|
@@ -3130,14 +3173,14 @@ var zn = (
|
|
|
3130
3173
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3131
3174
|
var s = this.clonePosition();
|
|
3132
3175
|
this.bump(), i.push({
|
|
3133
|
-
type:
|
|
3176
|
+
type: x.pound,
|
|
3134
3177
|
location: v(s, this.clonePosition())
|
|
3135
3178
|
});
|
|
3136
3179
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3137
3180
|
if (n)
|
|
3138
3181
|
break;
|
|
3139
3182
|
return this.error(b.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3140
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3183
|
+
} else if (o === 60 && !this.ignoreTag && We(this.peek() || 0)) {
|
|
3141
3184
|
var a = this.parseTag(t, r);
|
|
3142
3185
|
if (a.err)
|
|
3143
3186
|
return a;
|
|
@@ -3158,7 +3201,7 @@ var zn = (
|
|
|
3158
3201
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3159
3202
|
return {
|
|
3160
3203
|
val: {
|
|
3161
|
-
type:
|
|
3204
|
+
type: x.literal,
|
|
3162
3205
|
value: "<".concat(i, "/>"),
|
|
3163
3206
|
location: v(n, this.clonePosition())
|
|
3164
3207
|
},
|
|
@@ -3170,12 +3213,12 @@ var zn = (
|
|
|
3170
3213
|
return o;
|
|
3171
3214
|
var a = o.val, s = this.clonePosition();
|
|
3172
3215
|
if (this.bumpIf("</")) {
|
|
3173
|
-
if (this.isEOF() || !
|
|
3216
|
+
if (this.isEOF() || !We(this.char()))
|
|
3174
3217
|
return this.error(b.INVALID_TAG, v(s, this.clonePosition()));
|
|
3175
3218
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3176
3219
|
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3177
3220
|
val: {
|
|
3178
|
-
type:
|
|
3221
|
+
type: x.tag,
|
|
3179
3222
|
value: i,
|
|
3180
3223
|
children: a,
|
|
3181
3224
|
location: v(n, this.clonePosition())
|
|
@@ -3188,7 +3231,7 @@ var zn = (
|
|
|
3188
3231
|
return this.error(b.INVALID_TAG, v(n, this.clonePosition()));
|
|
3189
3232
|
}, e.prototype.parseTagName = function() {
|
|
3190
3233
|
var t = this.offset();
|
|
3191
|
-
for (this.bump(); !this.isEOF() &&
|
|
3234
|
+
for (this.bump(); !this.isEOF() && Jn(this.char()); )
|
|
3192
3235
|
this.bump();
|
|
3193
3236
|
return this.message.slice(t, this.offset());
|
|
3194
3237
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3212,12 +3255,12 @@ var zn = (
|
|
|
3212
3255
|
}
|
|
3213
3256
|
var l = v(n, this.clonePosition());
|
|
3214
3257
|
return {
|
|
3215
|
-
val: { type:
|
|
3258
|
+
val: { type: x.literal, value: i, location: l },
|
|
3216
3259
|
err: null
|
|
3217
3260
|
};
|
|
3218
3261
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3219
3262
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3220
|
-
!
|
|
3263
|
+
!Qn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3221
3264
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3222
3265
|
if (this.isEOF() || this.char() !== 39)
|
|
3223
3266
|
return null;
|
|
@@ -3251,12 +3294,12 @@ var zn = (
|
|
|
3251
3294
|
r.push(n);
|
|
3252
3295
|
this.bump();
|
|
3253
3296
|
}
|
|
3254
|
-
return
|
|
3297
|
+
return Ve.apply(void 0, r);
|
|
3255
3298
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3256
3299
|
if (this.isEOF())
|
|
3257
3300
|
return null;
|
|
3258
3301
|
var n = this.char();
|
|
3259
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3302
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ve(n));
|
|
3260
3303
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3261
3304
|
var n = this.clonePosition();
|
|
3262
3305
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3272,7 +3315,7 @@ var zn = (
|
|
|
3272
3315
|
case 125:
|
|
3273
3316
|
return this.bump(), {
|
|
3274
3317
|
val: {
|
|
3275
|
-
type:
|
|
3318
|
+
type: x.argument,
|
|
3276
3319
|
// value does not include the opening and closing braces.
|
|
3277
3320
|
value: i,
|
|
3278
3321
|
location: v(n, this.clonePosition())
|
|
@@ -3285,7 +3328,7 @@ var zn = (
|
|
|
3285
3328
|
return this.error(b.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3286
3329
|
}
|
|
3287
3330
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3288
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3331
|
+
var t = this.clonePosition(), r = this.offset(), n = ze(this.message, r), i = r + n.length;
|
|
3289
3332
|
this.bumpTo(i);
|
|
3290
3333
|
var o = this.clonePosition(), a = v(t, o);
|
|
3291
3334
|
return { value: n, location: a };
|
|
@@ -3304,7 +3347,7 @@ var zn = (
|
|
|
3304
3347
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3305
3348
|
if (f.err)
|
|
3306
3349
|
return f;
|
|
3307
|
-
var c =
|
|
3350
|
+
var c = Zn(f.val);
|
|
3308
3351
|
if (c.length === 0)
|
|
3309
3352
|
return this.error(b.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3310
3353
|
var p = v(h, this.clonePosition());
|
|
@@ -3314,25 +3357,25 @@ var zn = (
|
|
|
3314
3357
|
if (d.err)
|
|
3315
3358
|
return d;
|
|
3316
3359
|
var y = v(i, this.clonePosition());
|
|
3317
|
-
if (u &&
|
|
3318
|
-
var S =
|
|
3360
|
+
if (u && yt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3361
|
+
var S = qn(u.style.slice(2));
|
|
3319
3362
|
if (s === "number") {
|
|
3320
3363
|
var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3321
3364
|
return f.err ? f : {
|
|
3322
|
-
val: { type:
|
|
3365
|
+
val: { type: x.number, value: n, location: y, style: f.val },
|
|
3323
3366
|
err: null
|
|
3324
3367
|
};
|
|
3325
3368
|
} else {
|
|
3326
3369
|
if (S.length === 0)
|
|
3327
3370
|
return this.error(b.EXPECT_DATE_TIME_SKELETON, y);
|
|
3328
3371
|
var H = S;
|
|
3329
|
-
this.locale && (H =
|
|
3372
|
+
this.locale && (H = Nn(S, this.locale));
|
|
3330
3373
|
var c = {
|
|
3331
|
-
type:
|
|
3374
|
+
type: k.dateTime,
|
|
3332
3375
|
pattern: H,
|
|
3333
3376
|
location: u.styleLocation,
|
|
3334
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3335
|
-
}, E = s === "date" ?
|
|
3377
|
+
parsedOptions: this.shouldParseSkeletons ? In(H) : {}
|
|
3378
|
+
}, E = s === "date" ? x.date : x.time;
|
|
3336
3379
|
return {
|
|
3337
3380
|
val: { type: E, value: n, location: y, style: c },
|
|
3338
3381
|
err: null
|
|
@@ -3341,7 +3384,7 @@ var zn = (
|
|
|
3341
3384
|
}
|
|
3342
3385
|
return {
|
|
3343
3386
|
val: {
|
|
3344
|
-
type: s === "number" ?
|
|
3387
|
+
type: s === "number" ? x.number : s === "date" ? x.date : x.time,
|
|
3345
3388
|
value: n,
|
|
3346
3389
|
location: y,
|
|
3347
3390
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
@@ -3352,9 +3395,9 @@ var zn = (
|
|
|
3352
3395
|
case "plural":
|
|
3353
3396
|
case "selectordinal":
|
|
3354
3397
|
case "select": {
|
|
3355
|
-
var
|
|
3398
|
+
var g = this.clonePosition();
|
|
3356
3399
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3357
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, v(
|
|
3400
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, v(g, pe({}, g)));
|
|
3358
3401
|
this.bumpSpace();
|
|
3359
3402
|
var w = this.parseIdentifierIfPossible(), m = 0;
|
|
3360
3403
|
if (s !== "select" && w.value === "offset") {
|
|
@@ -3372,23 +3415,23 @@ var zn = (
|
|
|
3372
3415
|
var d = this.tryParseArgumentClose(i);
|
|
3373
3416
|
if (d.err)
|
|
3374
3417
|
return d;
|
|
3375
|
-
var
|
|
3418
|
+
var Y = v(i, this.clonePosition());
|
|
3376
3419
|
return s === "select" ? {
|
|
3377
3420
|
val: {
|
|
3378
|
-
type:
|
|
3421
|
+
type: x.select,
|
|
3379
3422
|
value: n,
|
|
3380
|
-
options:
|
|
3381
|
-
location:
|
|
3423
|
+
options: gt(B.val),
|
|
3424
|
+
location: Y
|
|
3382
3425
|
},
|
|
3383
3426
|
err: null
|
|
3384
3427
|
} : {
|
|
3385
3428
|
val: {
|
|
3386
|
-
type:
|
|
3429
|
+
type: x.plural,
|
|
3387
3430
|
value: n,
|
|
3388
|
-
options:
|
|
3431
|
+
options: gt(B.val),
|
|
3389
3432
|
offset: m,
|
|
3390
3433
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3391
|
-
location:
|
|
3434
|
+
location: Y
|
|
3392
3435
|
},
|
|
3393
3436
|
err: null
|
|
3394
3437
|
};
|
|
@@ -3436,16 +3479,16 @@ var zn = (
|
|
|
3436
3479
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3437
3480
|
var n = [];
|
|
3438
3481
|
try {
|
|
3439
|
-
n =
|
|
3482
|
+
n = Cn(t);
|
|
3440
3483
|
} catch (i) {
|
|
3441
3484
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3442
3485
|
}
|
|
3443
3486
|
return {
|
|
3444
3487
|
val: {
|
|
3445
|
-
type:
|
|
3488
|
+
type: k.number,
|
|
3446
3489
|
tokens: n,
|
|
3447
3490
|
location: r,
|
|
3448
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3491
|
+
parsedOptions: this.shouldParseSkeletons ? Mn(n) : {}
|
|
3449
3492
|
},
|
|
3450
3493
|
err: null
|
|
3451
3494
|
};
|
|
@@ -3493,7 +3536,7 @@ var zn = (
|
|
|
3493
3536
|
break;
|
|
3494
3537
|
}
|
|
3495
3538
|
var l = v(i, this.clonePosition());
|
|
3496
|
-
return o ? (a *= n,
|
|
3539
|
+
return o ? (a *= n, Wn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3497
3540
|
}, e.prototype.offset = function() {
|
|
3498
3541
|
return this.position.offset;
|
|
3499
3542
|
}, e.prototype.isEOF = function() {
|
|
@@ -3508,7 +3551,7 @@ var zn = (
|
|
|
3508
3551
|
var t = this.position.offset;
|
|
3509
3552
|
if (t >= this.message.length)
|
|
3510
3553
|
throw Error("out of bound");
|
|
3511
|
-
var r =
|
|
3554
|
+
var r = Kt(this.message, t);
|
|
3512
3555
|
if (r === void 0)
|
|
3513
3556
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3514
3557
|
return r;
|
|
@@ -3527,7 +3570,7 @@ var zn = (
|
|
|
3527
3570
|
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);
|
|
3528
3571
|
}
|
|
3529
3572
|
}, e.prototype.bumpIf = function(t) {
|
|
3530
|
-
if (
|
|
3573
|
+
if (yt(this.message, t, this.offset())) {
|
|
3531
3574
|
for (var r = 0; r < t.length; r++)
|
|
3532
3575
|
this.bump();
|
|
3533
3576
|
return !0;
|
|
@@ -3549,7 +3592,7 @@ var zn = (
|
|
|
3549
3592
|
break;
|
|
3550
3593
|
}
|
|
3551
3594
|
}, e.prototype.bumpSpace = function() {
|
|
3552
|
-
for (; !this.isEOF() &&
|
|
3595
|
+
for (; !this.isEOF() && tr(this.char()); )
|
|
3553
3596
|
this.bump();
|
|
3554
3597
|
}, e.prototype.peek = function() {
|
|
3555
3598
|
if (this.isEOF())
|
|
@@ -3559,47 +3602,47 @@ var zn = (
|
|
|
3559
3602
|
}, e;
|
|
3560
3603
|
}()
|
|
3561
3604
|
);
|
|
3562
|
-
function
|
|
3605
|
+
function We(e) {
|
|
3563
3606
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3564
3607
|
}
|
|
3565
|
-
function
|
|
3566
|
-
return
|
|
3608
|
+
function Qn(e) {
|
|
3609
|
+
return We(e) || e === 47;
|
|
3567
3610
|
}
|
|
3568
|
-
function
|
|
3611
|
+
function Jn(e) {
|
|
3569
3612
|
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;
|
|
3570
3613
|
}
|
|
3571
|
-
function
|
|
3614
|
+
function tr(e) {
|
|
3572
3615
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3573
3616
|
}
|
|
3574
|
-
function
|
|
3617
|
+
function Kn(e) {
|
|
3575
3618
|
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;
|
|
3576
3619
|
}
|
|
3577
|
-
function
|
|
3620
|
+
function Xe(e) {
|
|
3578
3621
|
e.forEach(function(t) {
|
|
3579
|
-
if (delete t.location,
|
|
3622
|
+
if (delete t.location, zt(t) || Wt(t))
|
|
3580
3623
|
for (var r in t.options)
|
|
3581
|
-
delete t.options[r].location,
|
|
3624
|
+
delete t.options[r].location, Xe(t.options[r].value);
|
|
3582
3625
|
else
|
|
3583
|
-
|
|
3626
|
+
jt(t) && qt(t.style) || (kt(t) || Vt(t)) && je(t.style) ? delete t.style.location : Xt(t) && Xe(t.children);
|
|
3584
3627
|
});
|
|
3585
3628
|
}
|
|
3586
|
-
function
|
|
3587
|
-
t === void 0 && (t = {}), t =
|
|
3588
|
-
var r = new
|
|
3629
|
+
function ei(e, t) {
|
|
3630
|
+
t === void 0 && (t = {}), t = pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3631
|
+
var r = new Yn(e, t).parse();
|
|
3589
3632
|
if (r.err) {
|
|
3590
3633
|
var n = SyntaxError(b[r.err.kind]);
|
|
3591
3634
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3592
3635
|
}
|
|
3593
|
-
return t != null && t.captureLocation ||
|
|
3636
|
+
return t != null && t.captureLocation || Xe(r.val), r.val;
|
|
3594
3637
|
}
|
|
3595
|
-
var
|
|
3638
|
+
var V;
|
|
3596
3639
|
(function(e) {
|
|
3597
3640
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3598
|
-
})(
|
|
3599
|
-
var
|
|
3641
|
+
})(V || (V = {}));
|
|
3642
|
+
var ge = (
|
|
3600
3643
|
/** @class */
|
|
3601
3644
|
function(e) {
|
|
3602
|
-
|
|
3645
|
+
ye(t, e);
|
|
3603
3646
|
function t(r, n, i) {
|
|
3604
3647
|
var o = e.call(this, r) || this;
|
|
3605
3648
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3608,48 +3651,48 @@ var ve = (
|
|
|
3608
3651
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3609
3652
|
}, t;
|
|
3610
3653
|
}(Error)
|
|
3611
|
-
),
|
|
3654
|
+
), _t = (
|
|
3612
3655
|
/** @class */
|
|
3613
3656
|
function(e) {
|
|
3614
|
-
|
|
3657
|
+
ye(t, e);
|
|
3615
3658
|
function t(r, n, i, o) {
|
|
3616
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3659
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, o) || this;
|
|
3617
3660
|
}
|
|
3618
3661
|
return t;
|
|
3619
|
-
}(
|
|
3620
|
-
),
|
|
3662
|
+
}(ge)
|
|
3663
|
+
), ti = (
|
|
3621
3664
|
/** @class */
|
|
3622
3665
|
function(e) {
|
|
3623
|
-
|
|
3666
|
+
ye(t, e);
|
|
3624
3667
|
function t(r, n, i) {
|
|
3625
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3668
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
|
|
3626
3669
|
}
|
|
3627
3670
|
return t;
|
|
3628
|
-
}(
|
|
3629
|
-
),
|
|
3671
|
+
}(ge)
|
|
3672
|
+
), ri = (
|
|
3630
3673
|
/** @class */
|
|
3631
3674
|
function(e) {
|
|
3632
|
-
|
|
3675
|
+
ye(t, e);
|
|
3633
3676
|
function t(r, n) {
|
|
3634
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3677
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
|
|
3635
3678
|
}
|
|
3636
3679
|
return t;
|
|
3637
|
-
}(
|
|
3680
|
+
}(ge)
|
|
3638
3681
|
), T;
|
|
3639
3682
|
(function(e) {
|
|
3640
3683
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3641
3684
|
})(T || (T = {}));
|
|
3642
|
-
function
|
|
3685
|
+
function ni(e) {
|
|
3643
3686
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3644
3687
|
var n = t[t.length - 1];
|
|
3645
3688
|
return !n || n.type !== T.literal || r.type !== T.literal ? t.push(r) : n.value += r.value, t;
|
|
3646
3689
|
}, []);
|
|
3647
3690
|
}
|
|
3648
|
-
function
|
|
3691
|
+
function ii(e) {
|
|
3649
3692
|
return typeof e == "function";
|
|
3650
3693
|
}
|
|
3651
3694
|
function ce(e, t, r, n, i, o, a) {
|
|
3652
|
-
if (e.length === 1 &&
|
|
3695
|
+
if (e.length === 1 && dt(e[0]))
|
|
3653
3696
|
return [
|
|
3654
3697
|
{
|
|
3655
3698
|
type: T.literal,
|
|
@@ -3658,14 +3701,14 @@ function ce(e, t, r, n, i, o, a) {
|
|
|
3658
3701
|
];
|
|
3659
3702
|
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3660
3703
|
var h = u[l];
|
|
3661
|
-
if (
|
|
3704
|
+
if (dt(h)) {
|
|
3662
3705
|
s.push({
|
|
3663
3706
|
type: T.literal,
|
|
3664
3707
|
value: h.value
|
|
3665
3708
|
});
|
|
3666
3709
|
continue;
|
|
3667
3710
|
}
|
|
3668
|
-
if (
|
|
3711
|
+
if (Pn(h)) {
|
|
3669
3712
|
typeof o == "number" && s.push({
|
|
3670
3713
|
type: T.literal,
|
|
3671
3714
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3674,43 +3717,43 @@ function ce(e, t, r, n, i, o, a) {
|
|
|
3674
3717
|
}
|
|
3675
3718
|
var f = h.value;
|
|
3676
3719
|
if (!(i && f in i))
|
|
3677
|
-
throw new
|
|
3720
|
+
throw new ri(f, a);
|
|
3678
3721
|
var c = i[f];
|
|
3679
|
-
if (
|
|
3722
|
+
if (wn(h)) {
|
|
3680
3723
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3681
3724
|
type: typeof c == "string" ? T.literal : T.object,
|
|
3682
3725
|
value: c
|
|
3683
3726
|
});
|
|
3684
3727
|
continue;
|
|
3685
3728
|
}
|
|
3686
|
-
if (
|
|
3687
|
-
var p = typeof h.style == "string" ? n.date[h.style] :
|
|
3729
|
+
if (kt(h)) {
|
|
3730
|
+
var p = typeof h.style == "string" ? n.date[h.style] : je(h.style) ? h.style.parsedOptions : void 0;
|
|
3688
3731
|
s.push({
|
|
3689
3732
|
type: T.literal,
|
|
3690
3733
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3691
3734
|
});
|
|
3692
3735
|
continue;
|
|
3693
3736
|
}
|
|
3694
|
-
if (
|
|
3695
|
-
var p = typeof h.style == "string" ? n.time[h.style] :
|
|
3737
|
+
if (Vt(h)) {
|
|
3738
|
+
var p = typeof h.style == "string" ? n.time[h.style] : je(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3696
3739
|
s.push({
|
|
3697
3740
|
type: T.literal,
|
|
3698
3741
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3699
3742
|
});
|
|
3700
3743
|
continue;
|
|
3701
3744
|
}
|
|
3702
|
-
if (
|
|
3703
|
-
var p = typeof h.style == "string" ? n.number[h.style] :
|
|
3745
|
+
if (jt(h)) {
|
|
3746
|
+
var p = typeof h.style == "string" ? n.number[h.style] : qt(h.style) ? h.style.parsedOptions : void 0;
|
|
3704
3747
|
p && p.scale && (c = c * (p.scale || 1)), s.push({
|
|
3705
3748
|
type: T.literal,
|
|
3706
3749
|
value: r.getNumberFormat(t, p).format(c)
|
|
3707
3750
|
});
|
|
3708
3751
|
continue;
|
|
3709
3752
|
}
|
|
3710
|
-
if (
|
|
3753
|
+
if (Xt(h)) {
|
|
3711
3754
|
var d = h.children, y = h.value, S = i[y];
|
|
3712
|
-
if (!
|
|
3713
|
-
throw new
|
|
3755
|
+
if (!ii(S))
|
|
3756
|
+
throw new ti(y, "function", a);
|
|
3714
3757
|
var H = ce(d, t, r, n, i, o), E = S(H.map(function(m) {
|
|
3715
3758
|
return m.value;
|
|
3716
3759
|
}));
|
|
@@ -3721,42 +3764,42 @@ function ce(e, t, r, n, i, o, a) {
|
|
|
3721
3764
|
};
|
|
3722
3765
|
}));
|
|
3723
3766
|
}
|
|
3724
|
-
if (
|
|
3725
|
-
var
|
|
3726
|
-
if (!
|
|
3727
|
-
throw new
|
|
3728
|
-
s.push.apply(s, ce(
|
|
3767
|
+
if (zt(h)) {
|
|
3768
|
+
var g = h.options[c] || h.options.other;
|
|
3769
|
+
if (!g)
|
|
3770
|
+
throw new _t(h.value, c, Object.keys(h.options), a);
|
|
3771
|
+
s.push.apply(s, ce(g.value, t, r, n, i));
|
|
3729
3772
|
continue;
|
|
3730
3773
|
}
|
|
3731
|
-
if (
|
|
3732
|
-
var
|
|
3733
|
-
if (!
|
|
3774
|
+
if (Wt(h)) {
|
|
3775
|
+
var g = h.options["=".concat(c)];
|
|
3776
|
+
if (!g) {
|
|
3734
3777
|
if (!Intl.PluralRules)
|
|
3735
|
-
throw new
|
|
3778
|
+
throw new ge(`Intl.PluralRules is not available in this environment.
|
|
3736
3779
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3737
|
-
`,
|
|
3780
|
+
`, V.MISSING_INTL_API, a);
|
|
3738
3781
|
var w = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3739
|
-
|
|
3782
|
+
g = h.options[w] || h.options.other;
|
|
3740
3783
|
}
|
|
3741
|
-
if (!
|
|
3742
|
-
throw new
|
|
3743
|
-
s.push.apply(s, ce(
|
|
3784
|
+
if (!g)
|
|
3785
|
+
throw new _t(h.value, c, Object.keys(h.options), a);
|
|
3786
|
+
s.push.apply(s, ce(g.value, t, r, n, i, c - (h.offset || 0)));
|
|
3744
3787
|
continue;
|
|
3745
3788
|
}
|
|
3746
3789
|
}
|
|
3747
|
-
return
|
|
3790
|
+
return ni(s);
|
|
3748
3791
|
}
|
|
3749
|
-
function
|
|
3750
|
-
return t ?
|
|
3751
|
-
return r[n] =
|
|
3792
|
+
function oi(e, t) {
|
|
3793
|
+
return t ? M(M(M({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3794
|
+
return r[n] = M(M({}, e[n]), t[n] || {}), r;
|
|
3752
3795
|
}, {})) : e;
|
|
3753
3796
|
}
|
|
3754
|
-
function
|
|
3797
|
+
function ai(e, t) {
|
|
3755
3798
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3756
|
-
return r[n] =
|
|
3757
|
-
},
|
|
3799
|
+
return r[n] = oi(e[n], t[n]), r;
|
|
3800
|
+
}, M({}, e)) : e;
|
|
3758
3801
|
}
|
|
3759
|
-
function
|
|
3802
|
+
function Ce(e) {
|
|
3760
3803
|
return {
|
|
3761
3804
|
create: function() {
|
|
3762
3805
|
return {
|
|
@@ -3770,39 +3813,39 @@ function He(e) {
|
|
|
3770
3813
|
}
|
|
3771
3814
|
};
|
|
3772
3815
|
}
|
|
3773
|
-
function
|
|
3816
|
+
function si(e) {
|
|
3774
3817
|
return e === void 0 && (e = {
|
|
3775
3818
|
number: {},
|
|
3776
3819
|
dateTime: {},
|
|
3777
3820
|
pluralRules: {}
|
|
3778
3821
|
}), {
|
|
3779
|
-
getNumberFormat:
|
|
3822
|
+
getNumberFormat: He(function() {
|
|
3780
3823
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3781
3824
|
r[n] = arguments[n];
|
|
3782
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3825
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3783
3826
|
}, {
|
|
3784
|
-
cache:
|
|
3785
|
-
strategy:
|
|
3827
|
+
cache: Ce(e.number),
|
|
3828
|
+
strategy: Ie.variadic
|
|
3786
3829
|
}),
|
|
3787
|
-
getDateTimeFormat:
|
|
3830
|
+
getDateTimeFormat: He(function() {
|
|
3788
3831
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3789
3832
|
r[n] = arguments[n];
|
|
3790
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3833
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3791
3834
|
}, {
|
|
3792
|
-
cache:
|
|
3793
|
-
strategy:
|
|
3835
|
+
cache: Ce(e.dateTime),
|
|
3836
|
+
strategy: Ie.variadic
|
|
3794
3837
|
}),
|
|
3795
|
-
getPluralRules:
|
|
3838
|
+
getPluralRules: He(function() {
|
|
3796
3839
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3797
3840
|
r[n] = arguments[n];
|
|
3798
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3841
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3799
3842
|
}, {
|
|
3800
|
-
cache:
|
|
3801
|
-
strategy:
|
|
3843
|
+
cache: Ce(e.pluralRules),
|
|
3844
|
+
strategy: Ie.variadic
|
|
3802
3845
|
})
|
|
3803
3846
|
};
|
|
3804
3847
|
}
|
|
3805
|
-
var
|
|
3848
|
+
var ui = (
|
|
3806
3849
|
/** @class */
|
|
3807
3850
|
function() {
|
|
3808
3851
|
function e(t, r, n, i) {
|
|
@@ -3834,13 +3877,13 @@ var ni = (
|
|
|
3834
3877
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3835
3878
|
var a = i || {};
|
|
3836
3879
|
a.formatters;
|
|
3837
|
-
var s =
|
|
3838
|
-
this.ast = e.__parse(t,
|
|
3880
|
+
var s = vn(a, ["formatters"]);
|
|
3881
|
+
this.ast = e.__parse(t, M(M({}, s), { locale: this.resolvedLocale }));
|
|
3839
3882
|
} else
|
|
3840
3883
|
this.ast = t;
|
|
3841
3884
|
if (!Array.isArray(this.ast))
|
|
3842
3885
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3843
|
-
this.formats =
|
|
3886
|
+
this.formats = ai(e.formats, n), this.formatters = i && i.formatters || si(this.formatterCache);
|
|
3844
3887
|
}
|
|
3845
3888
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3846
3889
|
get: function() {
|
|
@@ -3853,7 +3896,7 @@ var ni = (
|
|
|
3853
3896
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3854
3897
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3855
3898
|
}
|
|
3856
|
-
}, e.__parse =
|
|
3899
|
+
}, e.__parse = ei, e.formats = {
|
|
3857
3900
|
number: {
|
|
3858
3901
|
integer: {
|
|
3859
3902
|
maximumFractionDigits: 0
|
|
@@ -3914,7 +3957,7 @@ var ni = (
|
|
|
3914
3957
|
}, e;
|
|
3915
3958
|
}()
|
|
3916
3959
|
);
|
|
3917
|
-
function
|
|
3960
|
+
function li(e, t) {
|
|
3918
3961
|
if (t == null)
|
|
3919
3962
|
return;
|
|
3920
3963
|
if (t in e)
|
|
@@ -3935,92 +3978,92 @@ function ii(e, t) {
|
|
|
3935
3978
|
n = void 0;
|
|
3936
3979
|
return n;
|
|
3937
3980
|
}
|
|
3938
|
-
const
|
|
3981
|
+
const $ = {}, hi = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), rr = (e, t) => {
|
|
3939
3982
|
if (t == null)
|
|
3940
3983
|
return;
|
|
3941
|
-
if (t in
|
|
3942
|
-
return
|
|
3943
|
-
const r =
|
|
3984
|
+
if (t in $ && e in $[t])
|
|
3985
|
+
return $[t][e];
|
|
3986
|
+
const r = xe(t);
|
|
3944
3987
|
for (let n = 0; n < r.length; n++) {
|
|
3945
|
-
const i = r[n], o =
|
|
3988
|
+
const i = r[n], o = fi(i, e);
|
|
3946
3989
|
if (o)
|
|
3947
|
-
return
|
|
3990
|
+
return hi(e, t, o);
|
|
3948
3991
|
}
|
|
3949
3992
|
};
|
|
3950
|
-
let
|
|
3951
|
-
const ae =
|
|
3952
|
-
function
|
|
3953
|
-
return
|
|
3993
|
+
let Je;
|
|
3994
|
+
const ae = ve({});
|
|
3995
|
+
function ci(e) {
|
|
3996
|
+
return Je[e] || null;
|
|
3954
3997
|
}
|
|
3955
|
-
function
|
|
3956
|
-
return e in
|
|
3998
|
+
function nr(e) {
|
|
3999
|
+
return e in Je;
|
|
3957
4000
|
}
|
|
3958
|
-
function
|
|
3959
|
-
if (!
|
|
4001
|
+
function fi(e, t) {
|
|
4002
|
+
if (!nr(e))
|
|
3960
4003
|
return null;
|
|
3961
|
-
const r =
|
|
3962
|
-
return
|
|
4004
|
+
const r = ci(e);
|
|
4005
|
+
return li(r, t);
|
|
3963
4006
|
}
|
|
3964
|
-
function
|
|
4007
|
+
function pi(e) {
|
|
3965
4008
|
if (e == null)
|
|
3966
4009
|
return;
|
|
3967
|
-
const t =
|
|
4010
|
+
const t = xe(e);
|
|
3968
4011
|
for (let r = 0; r < t.length; r++) {
|
|
3969
4012
|
const n = t[r];
|
|
3970
|
-
if (
|
|
4013
|
+
if (nr(n))
|
|
3971
4014
|
return n;
|
|
3972
4015
|
}
|
|
3973
4016
|
}
|
|
3974
|
-
function
|
|
3975
|
-
delete
|
|
4017
|
+
function ir(e, ...t) {
|
|
4018
|
+
delete $[e], ae.update((r) => (r[e] = bn.all([r[e] || {}, ...t]), r));
|
|
3976
4019
|
}
|
|
3977
|
-
|
|
4020
|
+
X(
|
|
3978
4021
|
[ae],
|
|
3979
4022
|
([e]) => Object.keys(e)
|
|
3980
4023
|
);
|
|
3981
|
-
ae.subscribe((e) =>
|
|
4024
|
+
ae.subscribe((e) => Je = e);
|
|
3982
4025
|
const fe = {};
|
|
3983
|
-
function
|
|
4026
|
+
function di(e, t) {
|
|
3984
4027
|
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
3985
4028
|
}
|
|
3986
|
-
function
|
|
4029
|
+
function or(e) {
|
|
3987
4030
|
return fe[e];
|
|
3988
4031
|
}
|
|
3989
|
-
function
|
|
3990
|
-
return
|
|
3991
|
-
const r =
|
|
4032
|
+
function mi(e) {
|
|
4033
|
+
return xe(e).map((t) => {
|
|
4034
|
+
const r = or(t);
|
|
3992
4035
|
return [t, r ? [...r] : []];
|
|
3993
4036
|
}).filter(([, t]) => t.length > 0);
|
|
3994
4037
|
}
|
|
3995
|
-
function
|
|
3996
|
-
return e == null ? !1 :
|
|
4038
|
+
function qe(e) {
|
|
4039
|
+
return e == null ? !1 : xe(e).some(
|
|
3997
4040
|
(t) => {
|
|
3998
4041
|
var r;
|
|
3999
|
-
return (r =
|
|
4042
|
+
return (r = or(t)) == null ? void 0 : r.size;
|
|
4000
4043
|
}
|
|
4001
4044
|
);
|
|
4002
4045
|
}
|
|
4003
|
-
function
|
|
4046
|
+
function bi(e, t) {
|
|
4004
4047
|
return Promise.all(
|
|
4005
|
-
t.map((n) => (
|
|
4006
|
-
).then((n) =>
|
|
4007
|
-
}
|
|
4008
|
-
const
|
|
4009
|
-
function
|
|
4010
|
-
if (!
|
|
4011
|
-
return e in
|
|
4012
|
-
const t =
|
|
4013
|
-
return
|
|
4048
|
+
t.map((n) => (di(e, n), n().then((i) => i.default || i)))
|
|
4049
|
+
).then((n) => ir(e, ...n));
|
|
4050
|
+
}
|
|
4051
|
+
const Q = {};
|
|
4052
|
+
function ar(e) {
|
|
4053
|
+
if (!qe(e))
|
|
4054
|
+
return e in Q ? Q[e] : Promise.resolve();
|
|
4055
|
+
const t = mi(e);
|
|
4056
|
+
return Q[e] = Promise.all(
|
|
4014
4057
|
t.map(
|
|
4015
|
-
([r, n]) =>
|
|
4058
|
+
([r, n]) => bi(r, n)
|
|
4016
4059
|
)
|
|
4017
4060
|
).then(() => {
|
|
4018
|
-
if (
|
|
4019
|
-
return
|
|
4020
|
-
delete
|
|
4021
|
-
}),
|
|
4061
|
+
if (qe(e))
|
|
4062
|
+
return ar(e);
|
|
4063
|
+
delete Q[e];
|
|
4064
|
+
}), Q[e];
|
|
4022
4065
|
}
|
|
4023
|
-
const
|
|
4066
|
+
const vi = {
|
|
4024
4067
|
number: {
|
|
4025
4068
|
scientific: { notation: "scientific" },
|
|
4026
4069
|
engineering: { notation: "engineering" },
|
|
@@ -4049,150 +4092,150 @@ const fi = {
|
|
|
4049
4092
|
timeZoneName: "short"
|
|
4050
4093
|
}
|
|
4051
4094
|
}
|
|
4052
|
-
},
|
|
4095
|
+
}, yi = {
|
|
4053
4096
|
fallbackLocale: null,
|
|
4054
4097
|
loadingDelay: 200,
|
|
4055
|
-
formats:
|
|
4098
|
+
formats: vi,
|
|
4056
4099
|
warnOnMissingMessages: !0,
|
|
4057
4100
|
handleMissingMessage: void 0,
|
|
4058
4101
|
ignoreTag: !0
|
|
4059
|
-
},
|
|
4060
|
-
function
|
|
4061
|
-
return
|
|
4102
|
+
}, gi = yi;
|
|
4103
|
+
function z() {
|
|
4104
|
+
return gi;
|
|
4062
4105
|
}
|
|
4063
|
-
const
|
|
4064
|
-
var
|
|
4106
|
+
const Ae = ve(!1);
|
|
4107
|
+
var xi = Object.defineProperty, _i = Object.defineProperties, Ei = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Ti = Object.prototype.hasOwnProperty, Si = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wi = (e, t) => {
|
|
4065
4108
|
for (var r in t || (t = {}))
|
|
4066
|
-
|
|
4067
|
-
if (
|
|
4068
|
-
for (var r of
|
|
4069
|
-
|
|
4109
|
+
Ti.call(t, r) && Tt(e, r, t[r]);
|
|
4110
|
+
if (Et)
|
|
4111
|
+
for (var r of Et(t))
|
|
4112
|
+
Si.call(t, r) && Tt(e, r, t[r]);
|
|
4070
4113
|
return e;
|
|
4071
|
-
},
|
|
4072
|
-
let
|
|
4073
|
-
const
|
|
4074
|
-
function
|
|
4114
|
+
}, Pi = (e, t) => _i(e, Ei(t));
|
|
4115
|
+
let Ze;
|
|
4116
|
+
const de = ve(null);
|
|
4117
|
+
function St(e) {
|
|
4075
4118
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4076
4119
|
}
|
|
4077
|
-
function
|
|
4078
|
-
const r =
|
|
4079
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4120
|
+
function xe(e, t = z().fallbackLocale) {
|
|
4121
|
+
const r = St(e);
|
|
4122
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...St(t)])] : r;
|
|
4080
4123
|
}
|
|
4081
|
-
function
|
|
4082
|
-
return
|
|
4124
|
+
function R() {
|
|
4125
|
+
return Ze != null ? Ze : void 0;
|
|
4083
4126
|
}
|
|
4084
|
-
|
|
4085
|
-
|
|
4127
|
+
de.subscribe((e) => {
|
|
4128
|
+
Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4086
4129
|
});
|
|
4087
|
-
const
|
|
4088
|
-
if (e &&
|
|
4089
|
-
const { loadingDelay: t } =
|
|
4130
|
+
const Hi = (e) => {
|
|
4131
|
+
if (e && pi(e) && qe(e)) {
|
|
4132
|
+
const { loadingDelay: t } = z();
|
|
4090
4133
|
let r;
|
|
4091
|
-
return typeof window != "undefined" &&
|
|
4092
|
-
() =>
|
|
4134
|
+
return typeof window != "undefined" && R() != null && t ? r = window.setTimeout(
|
|
4135
|
+
() => Ae.set(!0),
|
|
4093
4136
|
t
|
|
4094
|
-
) :
|
|
4095
|
-
|
|
4137
|
+
) : Ae.set(!0), ar(e).then(() => {
|
|
4138
|
+
de.set(e);
|
|
4096
4139
|
}).finally(() => {
|
|
4097
|
-
clearTimeout(r),
|
|
4140
|
+
clearTimeout(r), Ae.set(!1);
|
|
4098
4141
|
});
|
|
4099
4142
|
}
|
|
4100
|
-
return
|
|
4101
|
-
},
|
|
4102
|
-
set:
|
|
4103
|
-
}),
|
|
4143
|
+
return de.set(e);
|
|
4144
|
+
}, q = Pi(wi({}, de), {
|
|
4145
|
+
set: Hi
|
|
4146
|
+
}), _e = (e) => {
|
|
4104
4147
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4105
4148
|
return (n) => {
|
|
4106
4149
|
const i = JSON.stringify(n);
|
|
4107
4150
|
return i in t ? t[i] : t[i] = e(n);
|
|
4108
4151
|
};
|
|
4109
4152
|
};
|
|
4110
|
-
var
|
|
4153
|
+
var Ii = Object.defineProperty, me = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
4111
4154
|
for (var r in t || (t = {}))
|
|
4112
|
-
|
|
4113
|
-
if (
|
|
4114
|
-
for (var r of
|
|
4115
|
-
|
|
4155
|
+
sr.call(t, r) && wt(e, r, t[r]);
|
|
4156
|
+
if (me)
|
|
4157
|
+
for (var r of me(t))
|
|
4158
|
+
ur.call(t, r) && wt(e, r, t[r]);
|
|
4116
4159
|
return e;
|
|
4117
|
-
},
|
|
4160
|
+
}, Z = (e, t) => {
|
|
4118
4161
|
var r = {};
|
|
4119
4162
|
for (var n in e)
|
|
4120
|
-
|
|
4121
|
-
if (e != null &&
|
|
4122
|
-
for (var n of
|
|
4123
|
-
t.indexOf(n) < 0 &&
|
|
4163
|
+
sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4164
|
+
if (e != null && me)
|
|
4165
|
+
for (var n of me(e))
|
|
4166
|
+
t.indexOf(n) < 0 && ur.call(e, n) && (r[n] = e[n]);
|
|
4124
4167
|
return r;
|
|
4125
4168
|
};
|
|
4126
|
-
const
|
|
4127
|
-
const { formats: r } =
|
|
4169
|
+
const te = (e, t) => {
|
|
4170
|
+
const { formats: r } = z();
|
|
4128
4171
|
if (e in r && t in r[e])
|
|
4129
4172
|
return r[e][t];
|
|
4130
4173
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4131
|
-
},
|
|
4174
|
+
}, Bi = _e(
|
|
4132
4175
|
(e) => {
|
|
4133
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4176
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4134
4177
|
if (r == null)
|
|
4135
4178
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4136
|
-
return n && (i =
|
|
4179
|
+
return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
|
|
4137
4180
|
}
|
|
4138
|
-
),
|
|
4181
|
+
), Ci = _e(
|
|
4139
4182
|
(e) => {
|
|
4140
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4183
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4141
4184
|
if (r == null)
|
|
4142
4185
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4143
|
-
return n ? i =
|
|
4186
|
+
return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4144
4187
|
}
|
|
4145
|
-
),
|
|
4188
|
+
), Ai = _e(
|
|
4146
4189
|
(e) => {
|
|
4147
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4190
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4148
4191
|
if (r == null)
|
|
4149
4192
|
throw new Error(
|
|
4150
4193
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4151
4194
|
);
|
|
4152
|
-
return n ? i =
|
|
4195
|
+
return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4153
4196
|
}
|
|
4154
|
-
),
|
|
4197
|
+
), Oi = (e = {}) => {
|
|
4155
4198
|
var t = e, {
|
|
4156
|
-
locale: r =
|
|
4157
|
-
} = t, n =
|
|
4199
|
+
locale: r = R()
|
|
4200
|
+
} = t, n = Z(t, [
|
|
4158
4201
|
"locale"
|
|
4159
4202
|
]);
|
|
4160
|
-
return
|
|
4161
|
-
},
|
|
4203
|
+
return Bi(Ke({ locale: r }, n));
|
|
4204
|
+
}, Li = (e = {}) => {
|
|
4162
4205
|
var t = e, {
|
|
4163
|
-
locale: r =
|
|
4164
|
-
} = t, n =
|
|
4206
|
+
locale: r = R()
|
|
4207
|
+
} = t, n = Z(t, [
|
|
4165
4208
|
"locale"
|
|
4166
4209
|
]);
|
|
4167
|
-
return
|
|
4168
|
-
},
|
|
4210
|
+
return Ci(Ke({ locale: r }, n));
|
|
4211
|
+
}, Mi = (e = {}) => {
|
|
4169
4212
|
var t = e, {
|
|
4170
|
-
locale: r =
|
|
4171
|
-
} = t, n =
|
|
4213
|
+
locale: r = R()
|
|
4214
|
+
} = t, n = Z(t, [
|
|
4172
4215
|
"locale"
|
|
4173
4216
|
]);
|
|
4174
|
-
return
|
|
4175
|
-
},
|
|
4217
|
+
return Ai(Ke({ locale: r }, n));
|
|
4218
|
+
}, Ni = _e(
|
|
4176
4219
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4177
|
-
(e, t =
|
|
4178
|
-
ignoreTag:
|
|
4220
|
+
(e, t = R()) => new ui(e, t, z().formats, {
|
|
4221
|
+
ignoreTag: z().ignoreTag
|
|
4179
4222
|
})
|
|
4180
|
-
),
|
|
4223
|
+
), $i = (e, t = {}) => {
|
|
4181
4224
|
var r, n, i, o;
|
|
4182
4225
|
let a = t;
|
|
4183
4226
|
typeof e == "object" && (a = e, e = a.id);
|
|
4184
4227
|
const {
|
|
4185
4228
|
values: s,
|
|
4186
|
-
locale: l =
|
|
4229
|
+
locale: l = R(),
|
|
4187
4230
|
default: u
|
|
4188
4231
|
} = a;
|
|
4189
4232
|
if (l == null)
|
|
4190
4233
|
throw new Error(
|
|
4191
4234
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4192
4235
|
);
|
|
4193
|
-
let h =
|
|
4236
|
+
let h = rr(e, l);
|
|
4194
4237
|
if (!h)
|
|
4195
|
-
h = (o = (i = (n = (r =
|
|
4238
|
+
h = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4196
4239
|
else if (typeof h != "string")
|
|
4197
4240
|
return console.warn(
|
|
4198
4241
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4201,7 +4244,7 @@ const re = (e, t) => {
|
|
|
4201
4244
|
return h;
|
|
4202
4245
|
let f = h;
|
|
4203
4246
|
try {
|
|
4204
|
-
f =
|
|
4247
|
+
f = Ni(h, l).format(s);
|
|
4205
4248
|
} catch (c) {
|
|
4206
4249
|
c instanceof Error && console.warn(
|
|
4207
4250
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4209,20 +4252,20 @@ const re = (e, t) => {
|
|
|
4209
4252
|
);
|
|
4210
4253
|
}
|
|
4211
4254
|
return f;
|
|
4212
|
-
},
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
window.emWidgets = { topic:
|
|
4218
|
-
const
|
|
4219
|
-
function
|
|
4220
|
-
|
|
4221
|
-
}
|
|
4222
|
-
function
|
|
4223
|
-
|
|
4224
|
-
}
|
|
4225
|
-
const
|
|
4255
|
+
}, Ri = (e, t) => Mi(t).format(e), Ui = (e, t) => Li(t).format(e), Gi = (e, t) => Oi(t).format(e), Di = (e, t = R()) => rr(e, t), Fi = X([q, ae], () => $i);
|
|
4256
|
+
X([q], () => Ri);
|
|
4257
|
+
X([q], () => Ui);
|
|
4258
|
+
X([q], () => Gi);
|
|
4259
|
+
X([q, ae], () => Di);
|
|
4260
|
+
window.emWidgets = { topic: Jr };
|
|
4261
|
+
const ji = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4262
|
+
function Pt(e, t) {
|
|
4263
|
+
ir(e, t);
|
|
4264
|
+
}
|
|
4265
|
+
function ki(e) {
|
|
4266
|
+
q.set(e);
|
|
4267
|
+
}
|
|
4268
|
+
const Ht = {
|
|
4226
4269
|
en: {
|
|
4227
4270
|
name: "Info",
|
|
4228
4271
|
amountChanged: "Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",
|
|
@@ -4284,13 +4327,13 @@ const Et = {
|
|
|
4284
4327
|
defaultText: "When you set a game limit, it takes effect from the moment you activate it and lasts until the end of the selected period. Therefore, if you set a daily limit at 14.00, the 24-hour period that counts is from its activation until 00:00 GMT. The limit is then valid for 24 days. you can lower a limit at any time with immediate effect. however, increasing or removing a limit will not apply until the current limit expires."
|
|
4285
4328
|
}
|
|
4286
4329
|
};
|
|
4287
|
-
function
|
|
4330
|
+
function Vi(e, t) {
|
|
4288
4331
|
if (e) {
|
|
4289
4332
|
const r = document.createElement("style");
|
|
4290
4333
|
r.innerHTML = t, e.appendChild(r);
|
|
4291
4334
|
}
|
|
4292
4335
|
}
|
|
4293
|
-
function
|
|
4336
|
+
function zi(e, t) {
|
|
4294
4337
|
const r = new URL(t);
|
|
4295
4338
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4296
4339
|
const i = document.createElement("style");
|
|
@@ -4299,7 +4342,7 @@ function Di(e, t) {
|
|
|
4299
4342
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4300
4343
|
});
|
|
4301
4344
|
}
|
|
4302
|
-
function
|
|
4345
|
+
function Wi(e, t, r) {
|
|
4303
4346
|
if (window.emMessageBus) {
|
|
4304
4347
|
const n = document.createElement("style");
|
|
4305
4348
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4307,24 +4350,24 @@ function Fi(e, t, r) {
|
|
|
4307
4350
|
});
|
|
4308
4351
|
}
|
|
4309
4352
|
}
|
|
4310
|
-
function
|
|
4311
|
-
|
|
4353
|
+
function Xi(e) {
|
|
4354
|
+
br(e, "svelte-11p58yq", '.InfoCardPopupMobileModal:after{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.5);z-index:101;content:""}.InfoCardPopupLimitChanged{background:var(--emw--color-gray-50, #F9F8F8)}.InfoCardPopupWrapper{width:200px;padding:20px;color:var(--emw--color-black, #000000);background:var(--emw--color-white, #FFFFFF);box-shadow:0 4px 12px var(--emw--color-gray-100, #E6E6E6);border-radius:5px;display:block;position:absolute;top:32px;left:-84px;z-index:9}.InfoCardPopupWrapper:before{content:"";position:absolute;top:-7px;left:104px;border-style:solid;border-width:0 7px 7px;border-color:var(--emw--color-white, #FFFFFF) transparent;display:block;width:0;z-index:1}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper{width:70%;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);z-index:300}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupTitle{font-size:18px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupCloseButton{width:30px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupContent{font-size:16px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper:before{content:none}.InfoCardPopupHeader{display:inline-flex}.InfoCardPopupHeader .InfoCardPopupTitle{line-height:24px;font-size:16px;font-weight:400;padding-left:10px}.InfoCardPopupIcon{display:flex;font-size:24px;width:24px;height:24px;background:transparent;border:1px solid var(--emw--color-black, #000000);align-items:center;justify-content:center;border-radius:30px}.InfoCardPopupContent{font-size:14px;font-weight:300}.InfoCardPopupCloseButton{width:20px;position:absolute;right:10px;top:10px;cursor:pointer;transition-duration:0.3s}.InfoCardPopupCloseButton:hover{color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));fill:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:32px;right:32px;padding:16px;border-radius:50%;color:var(--emw--color-white, #FFFFFF);cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:32px;height:32px;fill:var(--emw--color-black, #000000)}');
|
|
4312
4355
|
}
|
|
4313
|
-
function
|
|
4356
|
+
function It(e) {
|
|
4314
4357
|
let t, r, n, i, o, a, s = (
|
|
4315
4358
|
/*$_*/
|
|
4316
4359
|
e[4]("name") + ""
|
|
4317
4360
|
), l, u, h, f, c, p, d, y;
|
|
4318
|
-
function S(
|
|
4361
|
+
function S(g, w) {
|
|
4319
4362
|
return (
|
|
4320
4363
|
/*iteminfoamount*/
|
|
4321
|
-
|
|
4364
|
+
g[0] ? Zi : qi
|
|
4322
4365
|
);
|
|
4323
4366
|
}
|
|
4324
4367
|
let H = S(e), E = H(e);
|
|
4325
4368
|
return {
|
|
4326
4369
|
c() {
|
|
4327
|
-
t = A("section"), r = A("div"), n = A("div"), i = A("div"), i.textContent = "i", o =
|
|
4370
|
+
t = A("section"), r = A("div"), n = A("div"), i = A("div"), i.textContent = "i", o = Te(), a = A("div"), l = ie(s), u = Te(), h = A("div"), h.innerHTML = '<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>', f = Te(), c = A("div"), E.c(), C(i, "class", "InfoCardPopupIcon"), C(a, "class", "InfoCardPopupTitle"), C(h, "class", "InfoCardPopupCloseButton"), C(n, "class", "InfoCardPopupHeader"), C(c, "class", "InfoCardPopupContentArea"), C(r, "class", p = "InfoCardPopupWrapper " + /*isMobile*/
|
|
4328
4371
|
(e[5] ? "InfoCardPopupMobileWrapper" : "") + " " + /*iteminfoamount*/
|
|
4329
4372
|
(e[0] ? "InfoCardPopupLimitChanged" : "")), C(
|
|
4330
4373
|
t,
|
|
@@ -4333,48 +4376,48 @@ function Tt(e) {
|
|
|
4333
4376
|
e[5] ? "InfoCardPopupMobileModal" : ""
|
|
4334
4377
|
);
|
|
4335
4378
|
},
|
|
4336
|
-
m(
|
|
4337
|
-
|
|
4379
|
+
m(g, w) {
|
|
4380
|
+
ne(g, t, w), P(t, r), P(r, n), P(n, i), P(n, o), P(n, a), P(a, l), P(n, u), P(n, h), P(r, f), P(r, c), E.m(c, null), e[13](t), d || (y = xr(h, "click", _r(
|
|
4338
4381
|
/*closeInfoPopup*/
|
|
4339
4382
|
e[6]
|
|
4340
4383
|
)), d = !0);
|
|
4341
4384
|
},
|
|
4342
|
-
p(
|
|
4385
|
+
p(g, w) {
|
|
4343
4386
|
w & /*$_*/
|
|
4344
4387
|
16 && s !== (s = /*$_*/
|
|
4345
|
-
|
|
4388
|
+
g[4]("name") + "") && Qe(l, s), H === (H = S(g)) && E ? E.p(g, w) : (E.d(1), E = H(g), E && (E.c(), E.m(c, null))), w & /*iteminfoamount*/
|
|
4346
4389
|
1 && p !== (p = "InfoCardPopupWrapper " + /*isMobile*/
|
|
4347
|
-
(
|
|
4348
|
-
(
|
|
4390
|
+
(g[5] ? "InfoCardPopupMobileWrapper" : "") + " " + /*iteminfoamount*/
|
|
4391
|
+
(g[0] ? "InfoCardPopupLimitChanged" : "")) && C(r, "class", p);
|
|
4349
4392
|
},
|
|
4350
|
-
d(
|
|
4351
|
-
|
|
4393
|
+
d(g) {
|
|
4394
|
+
g && W(t), E.d(), e[13](null), d = !1, y();
|
|
4352
4395
|
}
|
|
4353
4396
|
};
|
|
4354
4397
|
}
|
|
4355
|
-
function
|
|
4398
|
+
function qi(e) {
|
|
4356
4399
|
let t, r = (
|
|
4357
4400
|
/*$_*/
|
|
4358
4401
|
e[4]("defaultText") + ""
|
|
4359
4402
|
), n;
|
|
4360
4403
|
return {
|
|
4361
4404
|
c() {
|
|
4362
|
-
t = A("p"), n =
|
|
4405
|
+
t = A("p"), n = ie(r), C(t, "class", "InfoCardPopupContent");
|
|
4363
4406
|
},
|
|
4364
4407
|
m(i, o) {
|
|
4365
|
-
|
|
4408
|
+
ne(i, t, o), P(t, n);
|
|
4366
4409
|
},
|
|
4367
4410
|
p(i, o) {
|
|
4368
4411
|
o & /*$_*/
|
|
4369
4412
|
16 && r !== (r = /*$_*/
|
|
4370
|
-
i[4]("defaultText") + "") &&
|
|
4413
|
+
i[4]("defaultText") + "") && Qe(n, r);
|
|
4371
4414
|
},
|
|
4372
4415
|
d(i) {
|
|
4373
|
-
i &&
|
|
4416
|
+
i && W(t);
|
|
4374
4417
|
}
|
|
4375
4418
|
};
|
|
4376
4419
|
}
|
|
4377
|
-
function
|
|
4420
|
+
function Zi(e) {
|
|
4378
4421
|
let t, r = (
|
|
4379
4422
|
/*$_*/
|
|
4380
4423
|
e[4]("amountChanged", {
|
|
@@ -4392,10 +4435,10 @@ function Vi(e) {
|
|
|
4392
4435
|
), n;
|
|
4393
4436
|
return {
|
|
4394
4437
|
c() {
|
|
4395
|
-
t = A("p"), n =
|
|
4438
|
+
t = A("p"), n = ie(r), C(t, "class", "InfoCardPopupContent");
|
|
4396
4439
|
},
|
|
4397
4440
|
m(i, o) {
|
|
4398
|
-
|
|
4441
|
+
ne(i, t, o), P(t, n);
|
|
4399
4442
|
},
|
|
4400
4443
|
p(i, o) {
|
|
4401
4444
|
o & /*$_, iteminfoamount, currency*/
|
|
@@ -4411,53 +4454,53 @@ function Vi(e) {
|
|
|
4411
4454
|
i[1]
|
|
4412
4455
|
)
|
|
4413
4456
|
}
|
|
4414
|
-
}) + "") &&
|
|
4457
|
+
}) + "") && Qe(n, r);
|
|
4415
4458
|
},
|
|
4416
4459
|
d(i) {
|
|
4417
|
-
i &&
|
|
4460
|
+
i && W(t);
|
|
4418
4461
|
}
|
|
4419
4462
|
};
|
|
4420
4463
|
}
|
|
4421
|
-
function
|
|
4464
|
+
function Yi(e) {
|
|
4422
4465
|
let t, r = (
|
|
4423
4466
|
/*showPopup*/
|
|
4424
|
-
e[3] &&
|
|
4467
|
+
e[3] && It(e)
|
|
4425
4468
|
);
|
|
4426
4469
|
return {
|
|
4427
4470
|
c() {
|
|
4428
|
-
r && r.c(), t =
|
|
4471
|
+
r && r.c(), t = gr();
|
|
4429
4472
|
},
|
|
4430
4473
|
m(n, i) {
|
|
4431
|
-
r && r.m(n, i),
|
|
4474
|
+
r && r.m(n, i), ne(n, t, i);
|
|
4432
4475
|
},
|
|
4433
4476
|
p(n, [i]) {
|
|
4434
4477
|
/*showPopup*/
|
|
4435
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
4478
|
+
n[3] ? r ? r.p(n, i) : (r = It(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4436
4479
|
},
|
|
4437
4480
|
i: O,
|
|
4438
4481
|
o: O,
|
|
4439
4482
|
d(n) {
|
|
4440
|
-
n &&
|
|
4483
|
+
n && W(t), r && r.d(n);
|
|
4441
4484
|
}
|
|
4442
4485
|
};
|
|
4443
4486
|
}
|
|
4444
|
-
function
|
|
4487
|
+
function Qi(e, t, r) {
|
|
4445
4488
|
let n;
|
|
4446
|
-
|
|
4489
|
+
mr(e, Fi, (m) => r(4, n = m));
|
|
4447
4490
|
let { showpopup: i = "" } = t, { iteminfoamount: o = "" } = t, { lang: a = "en" } = t, { currency: s = "USD" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h = "" } = t, { mbsource: f } = t;
|
|
4448
4491
|
const c = () => {
|
|
4449
4492
|
fetch(h).then((B) => B.json()).then((B) => {
|
|
4450
|
-
Object.keys(B).forEach((
|
|
4451
|
-
|
|
4493
|
+
Object.keys(B).forEach((Y) => {
|
|
4494
|
+
Pt(Y, B[Y]);
|
|
4452
4495
|
});
|
|
4453
4496
|
}).catch((B) => {
|
|
4454
4497
|
console.log(B);
|
|
4455
4498
|
});
|
|
4456
4499
|
};
|
|
4457
|
-
Object.keys(
|
|
4458
|
-
|
|
4500
|
+
Object.keys(Ht).forEach((m) => {
|
|
4501
|
+
Pt(m, Ht[m]);
|
|
4459
4502
|
});
|
|
4460
|
-
let p = !1, d, y = window.navigator.userAgent, S =
|
|
4503
|
+
let p = !1, d, y = window.navigator.userAgent, S = ji(y) !== "PC";
|
|
4461
4504
|
const H = () => {
|
|
4462
4505
|
r(3, p = !1), window.postMessage(
|
|
4463
4506
|
{
|
|
@@ -4467,14 +4510,14 @@ function Wi(e, t, r) {
|
|
|
4467
4510
|
);
|
|
4468
4511
|
}, E = (m) => {
|
|
4469
4512
|
m.data && m.data.type == "ClosePlayerAccountGamingLimitsPopup" && r(3, p = !1);
|
|
4470
|
-
},
|
|
4471
|
-
|
|
4513
|
+
}, g = () => {
|
|
4514
|
+
ki(a), o < 0 && r(0, o = "0"), r(3, p = i);
|
|
4472
4515
|
};
|
|
4473
|
-
|
|
4516
|
+
wr(() => (window.addEventListener("message", E, !1), () => {
|
|
4474
4517
|
window.removeEventListener("message", E);
|
|
4475
4518
|
}));
|
|
4476
4519
|
function w(m) {
|
|
4477
|
-
|
|
4520
|
+
Oe[m ? "unshift" : "push"](() => {
|
|
4478
4521
|
d = m, r(2, d);
|
|
4479
4522
|
});
|
|
4480
4523
|
}
|
|
@@ -4482,10 +4525,10 @@ function Wi(e, t, r) {
|
|
|
4482
4525
|
"showpopup" in m && r(7, i = m.showpopup), "iteminfoamount" in m && r(0, o = m.iteminfoamount), "lang" in m && r(8, a = m.lang), "currency" in m && r(1, s = m.currency), "clientstyling" in m && r(9, l = m.clientstyling), "clientstylingurl" in m && r(10, u = m.clientstylingurl), "translationurl" in m && r(11, h = m.translationurl), "mbsource" in m && r(12, f = m.mbsource);
|
|
4483
4526
|
}, e.$$.update = () => {
|
|
4484
4527
|
e.$$.dirty & /*showpopup, lang*/
|
|
4485
|
-
384 && i && a &&
|
|
4486
|
-
516 && l && d &&
|
|
4487
|
-
1028 && u && d &&
|
|
4488
|
-
4100 && f && d &&
|
|
4528
|
+
384 && i && a && g(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4529
|
+
516 && l && d && Vi(d, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4530
|
+
1028 && u && d && zi(d, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4531
|
+
4100 && f && d && Wi(d, `${f}.Style`), e.$$.dirty & /*translationurl*/
|
|
4489
4532
|
2048 && h && c();
|
|
4490
4533
|
}, [
|
|
4491
4534
|
o,
|
|
@@ -4504,14 +4547,14 @@ function Wi(e, t, r) {
|
|
|
4504
4547
|
w
|
|
4505
4548
|
];
|
|
4506
4549
|
}
|
|
4507
|
-
class
|
|
4550
|
+
class Ji extends Rr {
|
|
4508
4551
|
constructor(t) {
|
|
4509
|
-
super(),
|
|
4552
|
+
super(), Nr(
|
|
4510
4553
|
this,
|
|
4511
4554
|
t,
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4555
|
+
Qi,
|
|
4556
|
+
Yi,
|
|
4557
|
+
Ct,
|
|
4515
4558
|
{
|
|
4516
4559
|
showpopup: 7,
|
|
4517
4560
|
iteminfoamount: 0,
|
|
@@ -4522,7 +4565,7 @@ class Xi extends Or {
|
|
|
4522
4565
|
translationurl: 11,
|
|
4523
4566
|
mbsource: 12
|
|
4524
4567
|
},
|
|
4525
|
-
|
|
4568
|
+
Xi
|
|
4526
4569
|
);
|
|
4527
4570
|
}
|
|
4528
4571
|
get showpopup() {
|
|
@@ -4574,7 +4617,7 @@ class Xi extends Or {
|
|
|
4574
4617
|
this.$$set({ mbsource: t }), L();
|
|
4575
4618
|
}
|
|
4576
4619
|
}
|
|
4577
|
-
|
|
4620
|
+
$r(Ji, { showpopup: {}, iteminfoamount: {}, lang: {}, currency: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4578
4621
|
export {
|
|
4579
|
-
|
|
4622
|
+
Ji as default
|
|
4580
4623
|
};
|