@everymatrix/player-account-gaming-limits-popup 1.74.2 → 1.74.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountGamingLimitsPopup-D6mfDEwd.js → PlayerAccountGamingLimitsPopup-BVsV4GvF.js} +638 -652
- package/components/{PlayerAccountGamingLimitsPopup-t5dvXXln.js → PlayerAccountGamingLimitsPopup-C9Es2Ap8.js} +621 -635
- package/components/PlayerAccountGamingLimitsPopup-C_SvM-tc.cjs +18 -0
- 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-Bgia7sTX.cjs +0 -18
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var xe = (e, t, r) => t in e ?
|
|
1
|
+
var or = Object.defineProperty, ar = Object.defineProperties;
|
|
2
|
+
var sr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ye = Object.getOwnPropertySymbols;
|
|
4
|
+
var ur = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var xe = (e, t, r) => t in e ? or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
ur.call(t, r) && xe(e, r, t[r]);
|
|
8
|
+
if (Ye)
|
|
9
|
+
for (var r of Ye(t))
|
|
10
|
+
lr.call(t, r) && xe(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, Je = (e, t) => ar(e, sr(t));
|
|
13
13
|
var I = (e, t, r) => (xe(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
-
var
|
|
14
|
+
var Ke = (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 tt = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function O() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function wt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function et() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function ne(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(wt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function ze(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Pt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function hr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Ht(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
@@ -56,20 +56,20 @@ function Bt(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 fr(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(Ht(t, r));
|
|
61
61
|
}
|
|
62
62
|
function P(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
65
|
+
function cr(e, t, r) {
|
|
66
|
+
const n = dr(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, pr(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function dr(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,7 +79,7 @@ function br(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function pr(e, t) {
|
|
83
83
|
return P(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
@@ -101,13 +101,13 @@ function oe(e) {
|
|
|
101
101
|
function _e() {
|
|
102
102
|
return oe(" ");
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function mr() {
|
|
105
105
|
return oe("");
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function br(e, t, r, n) {
|
|
108
108
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function gr(e) {
|
|
111
111
|
return function(t) {
|
|
112
112
|
return t.preventDefault(), e.call(this, t);
|
|
113
113
|
};
|
|
@@ -115,14 +115,14 @@ function xr(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 yr(e) {
|
|
119
119
|
return Array.from(e.childNodes);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function We(e, t) {
|
|
122
122
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
123
123
|
t);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function vr(e) {
|
|
126
126
|
const t = {};
|
|
127
127
|
return e.childNodes.forEach(
|
|
128
128
|
/** @param {Element} node */
|
|
@@ -135,22 +135,22 @@ let ee;
|
|
|
135
135
|
function K(e) {
|
|
136
136
|
ee = e;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function xr() {
|
|
139
139
|
if (!ee)
|
|
140
140
|
throw new Error("Function called outside component initialization");
|
|
141
141
|
return ee;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
143
|
+
function _r(e) {
|
|
144
|
+
xr().$$.on_mount.push(e);
|
|
145
145
|
}
|
|
146
|
-
const D = [],
|
|
146
|
+
const D = [], Be = [];
|
|
147
147
|
let F = [];
|
|
148
|
-
const
|
|
149
|
-
let
|
|
150
|
-
function
|
|
151
|
-
|
|
148
|
+
const tt = [], Er = /* @__PURE__ */ Promise.resolve();
|
|
149
|
+
let Ce = !1;
|
|
150
|
+
function Tr() {
|
|
151
|
+
Ce || (Ce = !0, Er.then(L));
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Ae(e) {
|
|
154
154
|
F.push(e);
|
|
155
155
|
}
|
|
156
156
|
const Ee = /* @__PURE__ */ new Set();
|
|
@@ -163,53 +163,53 @@ function L() {
|
|
|
163
163
|
try {
|
|
164
164
|
for (; U < D.length; ) {
|
|
165
165
|
const t = D[U];
|
|
166
|
-
U++, K(t),
|
|
166
|
+
U++, K(t), Sr(t.$$);
|
|
167
167
|
}
|
|
168
168
|
} catch (t) {
|
|
169
169
|
throw D.length = 0, U = 0, t;
|
|
170
170
|
}
|
|
171
|
-
for (K(null), D.length = 0, U = 0;
|
|
172
|
-
|
|
171
|
+
for (K(null), D.length = 0, U = 0; Be.length; )
|
|
172
|
+
Be.pop()();
|
|
173
173
|
for (let t = 0; t < F.length; t += 1) {
|
|
174
174
|
const r = F[t];
|
|
175
175
|
Ee.has(r) || (Ee.add(r), r());
|
|
176
176
|
}
|
|
177
177
|
F.length = 0;
|
|
178
178
|
} while (D.length);
|
|
179
|
-
for (;
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
for (; tt.length; )
|
|
180
|
+
tt.pop()();
|
|
181
|
+
Ce = !1, Ee.clear(), K(e);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function Sr(e) {
|
|
184
184
|
if (e.fragment !== null) {
|
|
185
185
|
e.update(), ne(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(Ae);
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function wr(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 Pr = /* @__PURE__ */ new Set();
|
|
195
|
+
function Hr(e, t) {
|
|
196
|
+
e && e.i && (Pr.delete(e), e.i(t));
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Ir(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(
|
|
200
|
+
n && n.m(t, r), Ae(() => {
|
|
201
|
+
const o = e.$$.on_mount.map(wt).filter(ze);
|
|
202
202
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ne(o), e.$$.on_mount = [];
|
|
203
|
-
}), i.forEach(
|
|
203
|
+
}), i.forEach(Ae);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function Br(e, t) {
|
|
206
206
|
const r = e.$$;
|
|
207
|
-
r.fragment !== null && (
|
|
207
|
+
r.fragment !== null && (wr(r.after_update), ne(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 Cr(e, t) {
|
|
210
|
+
e.$$.dirty[0] === -1 && (D.push(e), Tr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Ar(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
213
213
|
const l = ee;
|
|
214
214
|
K(e);
|
|
215
215
|
const u = e.$$ = {
|
|
@@ -219,7 +219,7 @@ function Mr(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: et(),
|
|
223
223
|
// lifecycle
|
|
224
224
|
on_mount: [],
|
|
225
225
|
on_destroy: [],
|
|
@@ -228,28 +228,28 @@ function Mr(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: et(),
|
|
232
232
|
dirty: s,
|
|
233
233
|
skip_bound: !1,
|
|
234
234
|
root: t.target || l.$$.root
|
|
235
235
|
};
|
|
236
236
|
a && a(u.root);
|
|
237
237
|
let h = !1;
|
|
238
|
-
if (u.ctx = r
|
|
239
|
-
const p = d.length ? d[0] :
|
|
240
|
-
return u.ctx && i(u.ctx[
|
|
241
|
-
})
|
|
238
|
+
if (u.ctx = r(e, t.props || {}, (c, f, ...d) => {
|
|
239
|
+
const p = d.length ? d[0] : f;
|
|
240
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = p) && (!u.skip_bound && u.bound[c] && u.bound[c](p), h && Cr(e, c)), f;
|
|
241
|
+
}), u.update(), h = !0, ne(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
242
242
|
if (t.hydrate) {
|
|
243
|
-
const
|
|
244
|
-
u.fragment && u.fragment.l(
|
|
243
|
+
const c = yr(t.target);
|
|
244
|
+
u.fragment && u.fragment.l(c), c.forEach(X);
|
|
245
245
|
} else
|
|
246
246
|
u.fragment && u.fragment.c();
|
|
247
|
-
t.intro &&
|
|
247
|
+
t.intro && Hr(e.$$.fragment), Ir(e, t.target, t.anchor), L();
|
|
248
248
|
}
|
|
249
249
|
K(l);
|
|
250
250
|
}
|
|
251
|
-
let
|
|
252
|
-
typeof HTMLElement == "function" && (
|
|
251
|
+
let It;
|
|
252
|
+
typeof HTMLElement == "function" && (It = 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" && (Ct = class extends HTMLElement {
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
connectedCallback() {
|
|
289
|
-
return
|
|
289
|
+
return Ke(this, null, function* () {
|
|
290
290
|
if (this.$$cn = !0, !this.$$c) {
|
|
291
291
|
let t = function(o) {
|
|
292
292
|
return () => {
|
|
@@ -310,7 +310,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
310
310
|
};
|
|
311
311
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
312
312
|
return;
|
|
313
|
-
const r = {}, n =
|
|
313
|
+
const r = {}, n = vr(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" && (Ct = 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: Je(Qe({}, 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 Or(e, t, r, n, i, o) {
|
|
403
|
+
let a = class extends It {
|
|
404
404
|
constructor() {
|
|
405
405
|
super(e, r, i), this.$$p_d = t;
|
|
406
406
|
}
|
|
@@ -430,7 +430,7 @@ function Nr(e, t, r, n, i, o) {
|
|
|
430
430
|
}), e.element = /** @type {any} */
|
|
431
431
|
a, a;
|
|
432
432
|
}
|
|
433
|
-
class
|
|
433
|
+
class Lr {
|
|
434
434
|
constructor() {
|
|
435
435
|
/**
|
|
436
436
|
* ### PRIVATE API
|
|
@@ -451,7 +451,7 @@ class Rr {
|
|
|
451
451
|
}
|
|
452
452
|
/** @returns {void} */
|
|
453
453
|
$destroy() {
|
|
454
|
-
|
|
454
|
+
Br(this, 1), this.$destroy = O;
|
|
455
455
|
}
|
|
456
456
|
/**
|
|
457
457
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -460,7 +460,7 @@ class Rr {
|
|
|
460
460
|
* @returns {() => void}
|
|
461
461
|
*/
|
|
462
462
|
$on(t, r) {
|
|
463
|
-
if (!
|
|
463
|
+
if (!ze(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 Rr {
|
|
|
473
473
|
* @returns {void}
|
|
474
474
|
*/
|
|
475
475
|
$set(t) {
|
|
476
|
-
this.$$set && !
|
|
476
|
+
this.$$set && !hr(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 Mr = "4";
|
|
480
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Mr);
|
|
481
481
|
/*! *****************************************************************************
|
|
482
482
|
Copyright (c) Microsoft Corporation.
|
|
483
483
|
|
|
@@ -492,34 +492,34 @@ 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 Oe = function(e, t) {
|
|
496
|
+
return Oe = 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
|
+
}, Oe(e, t);
|
|
502
502
|
};
|
|
503
503
|
function N(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
|
+
Oe(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
|
-
var
|
|
513
|
-
return
|
|
512
|
+
var y = function() {
|
|
513
|
+
return y = Object.assign || function(t) {
|
|
514
514
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
515
515
|
r = arguments[n];
|
|
516
516
|
for (var o in r)
|
|
517
517
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
518
518
|
}
|
|
519
519
|
return t;
|
|
520
|
-
},
|
|
520
|
+
}, y.apply(this, arguments);
|
|
521
521
|
};
|
|
522
|
-
function
|
|
522
|
+
function Nr(e, t) {
|
|
523
523
|
var r = {};
|
|
524
524
|
for (var n in e)
|
|
525
525
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -528,7 +528,7 @@ function Ur(e, t) {
|
|
|
528
528
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
529
529
|
return r;
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function Le(e) {
|
|
532
532
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
533
533
|
if (r)
|
|
534
534
|
return r.call(e);
|
|
@@ -540,7 +540,7 @@ function Me(e) {
|
|
|
540
540
|
};
|
|
541
541
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function Me(e, t) {
|
|
544
544
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
545
545
|
if (!r)
|
|
546
546
|
return e;
|
|
@@ -569,13 +569,13 @@ function j(e, t, r) {
|
|
|
569
569
|
function M(e) {
|
|
570
570
|
return typeof e == "function";
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function Bt(e) {
|
|
573
573
|
var t = function(n) {
|
|
574
574
|
Error.call(n), n.stack = new Error().stack;
|
|
575
575
|
}, r = e(t);
|
|
576
576
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
577
577
|
}
|
|
578
|
-
var Te =
|
|
578
|
+
var Te = Bt(function(e) {
|
|
579
579
|
return function(r) {
|
|
580
580
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
581
581
|
` + r.map(function(n, i) {
|
|
@@ -584,7 +584,7 @@ var Te = At(function(e) {
|
|
|
584
584
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
585
585
|
};
|
|
586
586
|
});
|
|
587
|
-
function
|
|
587
|
+
function Ne(e, t) {
|
|
588
588
|
if (e) {
|
|
589
589
|
var r = e.indexOf(t);
|
|
590
590
|
0 <= r && e.splice(r, 1);
|
|
@@ -602,12 +602,12 @@ var me = function() {
|
|
|
602
602
|
if (a)
|
|
603
603
|
if (this._parentage = null, Array.isArray(a))
|
|
604
604
|
try {
|
|
605
|
-
for (var s =
|
|
605
|
+
for (var s = Le(a), l = s.next(); !l.done; l = s.next()) {
|
|
606
606
|
var u = l.value;
|
|
607
607
|
u.remove(this);
|
|
608
608
|
}
|
|
609
|
-
} catch (
|
|
610
|
-
t = { error:
|
|
609
|
+
} catch (v) {
|
|
610
|
+
t = { error: v };
|
|
611
611
|
} finally {
|
|
612
612
|
try {
|
|
613
613
|
l && !l.done && (r = s.return) && r.call(s);
|
|
@@ -622,26 +622,26 @@ var me = function() {
|
|
|
622
622
|
if (M(h))
|
|
623
623
|
try {
|
|
624
624
|
h();
|
|
625
|
-
} catch (
|
|
626
|
-
o =
|
|
625
|
+
} catch (v) {
|
|
626
|
+
o = v instanceof Te ? v.errors : [v];
|
|
627
627
|
}
|
|
628
|
-
var
|
|
629
|
-
if (
|
|
628
|
+
var c = this._finalizers;
|
|
629
|
+
if (c) {
|
|
630
630
|
this._finalizers = null;
|
|
631
631
|
try {
|
|
632
|
-
for (var
|
|
632
|
+
for (var f = Le(c), d = f.next(); !d.done; d = f.next()) {
|
|
633
633
|
var p = d.value;
|
|
634
634
|
try {
|
|
635
|
-
|
|
636
|
-
} catch (
|
|
637
|
-
o = o != null ? o : [],
|
|
635
|
+
rt(p);
|
|
636
|
+
} catch (v) {
|
|
637
|
+
o = o != null ? o : [], v instanceof Te ? o = j(j([], Me(o)), Me(v.errors)) : o.push(v);
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
|
-
} catch (
|
|
641
|
-
n = { error:
|
|
640
|
+
} catch (v) {
|
|
641
|
+
n = { error: v };
|
|
642
642
|
} finally {
|
|
643
643
|
try {
|
|
644
|
-
d && !d.done && (i =
|
|
644
|
+
d && !d.done && (i = f.return) && i.call(f);
|
|
645
645
|
} finally {
|
|
646
646
|
if (n)
|
|
647
647
|
throw n.error;
|
|
@@ -655,7 +655,7 @@ var me = function() {
|
|
|
655
655
|
var r;
|
|
656
656
|
if (t && t !== this)
|
|
657
657
|
if (this.closed)
|
|
658
|
-
|
|
658
|
+
rt(t);
|
|
659
659
|
else {
|
|
660
660
|
if (t instanceof e) {
|
|
661
661
|
if (t.closed || t._hasParent(this))
|
|
@@ -672,56 +672,56 @@ var me = function() {
|
|
|
672
672
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
673
673
|
}, e.prototype._removeParent = function(t) {
|
|
674
674
|
var r = this._parentage;
|
|
675
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
675
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ne(r, t);
|
|
676
676
|
}, e.prototype.remove = function(t) {
|
|
677
677
|
var r = this._finalizers;
|
|
678
|
-
r &&
|
|
678
|
+
r && Ne(r, t), t instanceof e && t._removeParent(this);
|
|
679
679
|
}, e.EMPTY = function() {
|
|
680
680
|
var t = new e();
|
|
681
681
|
return t.closed = !0, t;
|
|
682
682
|
}(), e;
|
|
683
|
-
}(),
|
|
684
|
-
function
|
|
683
|
+
}(), Ct = me.EMPTY;
|
|
684
|
+
function At(e) {
|
|
685
685
|
return e instanceof me || e && "closed" in e && M(e.remove) && M(e.add) && M(e.unsubscribe);
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function rt(e) {
|
|
688
688
|
M(e) ? e() : e.unsubscribe();
|
|
689
689
|
}
|
|
690
|
-
var
|
|
690
|
+
var Rr = {
|
|
691
691
|
onUnhandledError: null,
|
|
692
692
|
onStoppedNotification: null,
|
|
693
693
|
Promise: void 0,
|
|
694
694
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
695
695
|
useDeprecatedNextContext: !1
|
|
696
|
-
},
|
|
696
|
+
}, $r = {
|
|
697
697
|
setTimeout: function(e, t) {
|
|
698
698
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
699
699
|
r[n - 2] = arguments[n];
|
|
700
|
-
return setTimeout.apply(void 0, j([e, t],
|
|
700
|
+
return setTimeout.apply(void 0, j([e, t], Me(r)));
|
|
701
701
|
},
|
|
702
702
|
clearTimeout: function(e) {
|
|
703
703
|
return clearTimeout(e);
|
|
704
704
|
},
|
|
705
705
|
delegate: void 0
|
|
706
706
|
};
|
|
707
|
-
function
|
|
708
|
-
|
|
707
|
+
function Ur(e) {
|
|
708
|
+
$r.setTimeout(function() {
|
|
709
709
|
throw e;
|
|
710
710
|
});
|
|
711
711
|
}
|
|
712
|
-
function
|
|
712
|
+
function nt() {
|
|
713
713
|
}
|
|
714
714
|
function he(e) {
|
|
715
715
|
e();
|
|
716
716
|
}
|
|
717
|
-
var
|
|
717
|
+
var Ot = function(e) {
|
|
718
718
|
N(t, e);
|
|
719
719
|
function t(r) {
|
|
720
720
|
var n = e.call(this) || this;
|
|
721
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
721
|
+
return n.isStopped = !1, r ? (n.destination = r, At(r) && r.add(n)) : n.destination = Fr, n;
|
|
722
722
|
}
|
|
723
723
|
return t.create = function(r, n, i) {
|
|
724
|
-
return new
|
|
724
|
+
return new Re(r, n, i);
|
|
725
725
|
}, t.prototype.next = function(r) {
|
|
726
726
|
this.isStopped || this._next(r);
|
|
727
727
|
}, t.prototype.error = function(r) {
|
|
@@ -745,11 +745,7 @@ var Nt = function(e) {
|
|
|
745
745
|
this.unsubscribe();
|
|
746
746
|
}
|
|
747
747
|
}, t;
|
|
748
|
-
}(me),
|
|
749
|
-
function Se(e, t) {
|
|
750
|
-
return Fr.call(e, t);
|
|
751
|
-
}
|
|
752
|
-
var jr = function() {
|
|
748
|
+
}(me), Gr = function() {
|
|
753
749
|
function e(t) {
|
|
754
750
|
this.partialObserver = t;
|
|
755
751
|
}
|
|
@@ -780,55 +776,43 @@ var jr = function() {
|
|
|
780
776
|
se(r);
|
|
781
777
|
}
|
|
782
778
|
}, e;
|
|
783
|
-
}(),
|
|
779
|
+
}(), Re = function(e) {
|
|
784
780
|
N(t, e);
|
|
785
781
|
function t(r, n, i) {
|
|
786
782
|
var o = e.call(this) || this, a;
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
};
|
|
793
|
-
else {
|
|
794
|
-
var s;
|
|
795
|
-
o && Mt.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
796
|
-
return o.unsubscribe();
|
|
797
|
-
}, a = {
|
|
798
|
-
next: r.next && Se(r.next, s),
|
|
799
|
-
error: r.error && Se(r.error, s),
|
|
800
|
-
complete: r.complete && Se(r.complete, s)
|
|
801
|
-
}) : a = r;
|
|
802
|
-
}
|
|
803
|
-
return o.destination = new jr(a), o;
|
|
783
|
+
return M(r) || !r ? a = {
|
|
784
|
+
next: r != null ? r : void 0,
|
|
785
|
+
error: n != null ? n : void 0,
|
|
786
|
+
complete: i != null ? i : void 0
|
|
787
|
+
} : a = r, o.destination = new Gr(a), o;
|
|
804
788
|
}
|
|
805
789
|
return t;
|
|
806
|
-
}(
|
|
790
|
+
}(Ot);
|
|
807
791
|
function se(e) {
|
|
808
|
-
|
|
792
|
+
Ur(e);
|
|
809
793
|
}
|
|
810
|
-
function
|
|
794
|
+
function Dr(e) {
|
|
811
795
|
throw e;
|
|
812
796
|
}
|
|
813
|
-
var
|
|
797
|
+
var Fr = {
|
|
814
798
|
closed: !0,
|
|
815
|
-
next:
|
|
816
|
-
error:
|
|
817
|
-
complete:
|
|
818
|
-
},
|
|
799
|
+
next: nt,
|
|
800
|
+
error: Dr,
|
|
801
|
+
complete: nt
|
|
802
|
+
}, jr = function() {
|
|
819
803
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
820
804
|
}();
|
|
821
|
-
function
|
|
805
|
+
function kr(e) {
|
|
822
806
|
return e;
|
|
823
807
|
}
|
|
824
|
-
function
|
|
825
|
-
return e.length === 0 ?
|
|
808
|
+
function Vr(e) {
|
|
809
|
+
return e.length === 0 ? kr : e.length === 1 ? e[0] : function(r) {
|
|
826
810
|
return e.reduce(function(n, i) {
|
|
827
811
|
return i(n);
|
|
828
812
|
}, r);
|
|
829
813
|
};
|
|
830
814
|
}
|
|
831
|
-
var
|
|
815
|
+
var it = function() {
|
|
832
816
|
function e(t) {
|
|
833
817
|
t && (this._subscribe = t);
|
|
834
818
|
}
|
|
@@ -836,7 +820,7 @@ var at = function() {
|
|
|
836
820
|
var r = new e();
|
|
837
821
|
return r.source = this, r.operator = t, r;
|
|
838
822
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
839
|
-
var i = this, o =
|
|
823
|
+
var i = this, o = Wr(t) ? t : new Re(t, r, n);
|
|
840
824
|
return he(function() {
|
|
841
825
|
var a = i, s = a.operator, l = a.source;
|
|
842
826
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -849,8 +833,8 @@ var at = function() {
|
|
|
849
833
|
}
|
|
850
834
|
}, e.prototype.forEach = function(t, r) {
|
|
851
835
|
var n = this;
|
|
852
|
-
return r =
|
|
853
|
-
var a = new
|
|
836
|
+
return r = ot(r), new r(function(i, o) {
|
|
837
|
+
var a = new Re({
|
|
854
838
|
next: function(s) {
|
|
855
839
|
try {
|
|
856
840
|
t(s);
|
|
@@ -866,15 +850,15 @@ var at = function() {
|
|
|
866
850
|
}, e.prototype._subscribe = function(t) {
|
|
867
851
|
var r;
|
|
868
852
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
869
|
-
}, e.prototype[
|
|
853
|
+
}, e.prototype[jr] = function() {
|
|
870
854
|
return this;
|
|
871
855
|
}, e.prototype.pipe = function() {
|
|
872
856
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
873
857
|
t[r] = arguments[r];
|
|
874
|
-
return
|
|
858
|
+
return Vr(t)(this);
|
|
875
859
|
}, e.prototype.toPromise = function(t) {
|
|
876
860
|
var r = this;
|
|
877
|
-
return t =
|
|
861
|
+
return t = ot(t), new t(function(n, i) {
|
|
878
862
|
var o;
|
|
879
863
|
r.subscribe(function(a) {
|
|
880
864
|
return o = a;
|
|
@@ -888,32 +872,32 @@ var at = function() {
|
|
|
888
872
|
return new e(t);
|
|
889
873
|
}, e;
|
|
890
874
|
}();
|
|
891
|
-
function
|
|
875
|
+
function ot(e) {
|
|
892
876
|
var t;
|
|
893
|
-
return (t = e != null ? e :
|
|
877
|
+
return (t = e != null ? e : Rr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
894
878
|
}
|
|
895
|
-
function
|
|
879
|
+
function zr(e) {
|
|
896
880
|
return e && M(e.next) && M(e.error) && M(e.complete);
|
|
897
881
|
}
|
|
898
|
-
function
|
|
899
|
-
return e && e instanceof
|
|
882
|
+
function Wr(e) {
|
|
883
|
+
return e && e instanceof Ot || zr(e) && At(e);
|
|
900
884
|
}
|
|
901
|
-
var
|
|
885
|
+
var Xr = Bt(function(e) {
|
|
902
886
|
return function() {
|
|
903
887
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
904
888
|
};
|
|
905
|
-
}),
|
|
889
|
+
}), Lt = function(e) {
|
|
906
890
|
N(t, e);
|
|
907
891
|
function t() {
|
|
908
892
|
var r = e.call(this) || this;
|
|
909
893
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
910
894
|
}
|
|
911
895
|
return t.prototype.lift = function(r) {
|
|
912
|
-
var n = new
|
|
896
|
+
var n = new at(this, this);
|
|
913
897
|
return n.operator = r, n;
|
|
914
898
|
}, t.prototype._throwIfClosed = function() {
|
|
915
899
|
if (this.closed)
|
|
916
|
-
throw new
|
|
900
|
+
throw new Xr();
|
|
917
901
|
}, t.prototype.next = function(r) {
|
|
918
902
|
var n = this;
|
|
919
903
|
he(function() {
|
|
@@ -921,7 +905,7 @@ var Yr = At(function(e) {
|
|
|
921
905
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
922
906
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
923
907
|
try {
|
|
924
|
-
for (var a =
|
|
908
|
+
for (var a = Le(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
925
909
|
var l = s.value;
|
|
926
910
|
l.next(r);
|
|
927
911
|
}
|
|
@@ -970,19 +954,19 @@ var Yr = At(function(e) {
|
|
|
970
954
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
971
955
|
}, t.prototype._innerSubscribe = function(r) {
|
|
972
956
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
973
|
-
return o || a ?
|
|
974
|
-
n.currentObservers = null,
|
|
957
|
+
return o || a ? Ct : (this.currentObservers = null, s.push(r), new me(function() {
|
|
958
|
+
n.currentObservers = null, Ne(s, r);
|
|
975
959
|
}));
|
|
976
960
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
977
961
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
978
962
|
i ? r.error(o) : a && r.complete();
|
|
979
963
|
}, t.prototype.asObservable = function() {
|
|
980
|
-
var r = new
|
|
964
|
+
var r = new it();
|
|
981
965
|
return r.source = this, r;
|
|
982
966
|
}, t.create = function(r, n) {
|
|
983
|
-
return new
|
|
967
|
+
return new at(r, n);
|
|
984
968
|
}, t;
|
|
985
|
-
}(
|
|
969
|
+
}(it), at = function(e) {
|
|
986
970
|
N(t, e);
|
|
987
971
|
function t(r, n) {
|
|
988
972
|
var i = e.call(this) || this;
|
|
@@ -999,17 +983,17 @@ var Yr = At(function(e) {
|
|
|
999
983
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1000
984
|
}, t.prototype._subscribe = function(r) {
|
|
1001
985
|
var n, i;
|
|
1002
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
986
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ct;
|
|
1003
987
|
}, t;
|
|
1004
|
-
}(
|
|
988
|
+
}(Lt), Mt = {
|
|
1005
989
|
now: function() {
|
|
1006
|
-
return (
|
|
990
|
+
return (Mt.delegate || Date).now();
|
|
1007
991
|
},
|
|
1008
992
|
delegate: void 0
|
|
1009
|
-
},
|
|
993
|
+
}, qr = function(e) {
|
|
1010
994
|
N(t, e);
|
|
1011
995
|
function t(r, n, i) {
|
|
1012
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
996
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Mt);
|
|
1013
997
|
var o = e.call(this) || this;
|
|
1014
998
|
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;
|
|
1015
999
|
}
|
|
@@ -1029,15 +1013,15 @@ var Yr = At(function(e) {
|
|
|
1029
1013
|
u && o.splice(0, u + 1);
|
|
1030
1014
|
}
|
|
1031
1015
|
}, t;
|
|
1032
|
-
}(
|
|
1033
|
-
const
|
|
1034
|
-
if (
|
|
1035
|
-
const r = new
|
|
1036
|
-
|
|
1016
|
+
}(Lt);
|
|
1017
|
+
const st = [], ut = {}, Zr = (e, t = 0) => {
|
|
1018
|
+
if (st.indexOf(e) == -1) {
|
|
1019
|
+
const r = new qr(t);
|
|
1020
|
+
ut[e] = r, st.push(e);
|
|
1037
1021
|
}
|
|
1038
|
-
return
|
|
1022
|
+
return ut[e];
|
|
1039
1023
|
}, G = [];
|
|
1040
|
-
function
|
|
1024
|
+
function Yr(e, t) {
|
|
1041
1025
|
return {
|
|
1042
1026
|
subscribe: be(e, t).subscribe
|
|
1043
1027
|
};
|
|
@@ -1046,7 +1030,7 @@ function be(e, t = O) {
|
|
|
1046
1030
|
let r;
|
|
1047
1031
|
const n = /* @__PURE__ */ new Set();
|
|
1048
1032
|
function i(s) {
|
|
1049
|
-
if (
|
|
1033
|
+
if (Pt(e, s) && (e = s, r)) {
|
|
1050
1034
|
const l = !G.length;
|
|
1051
1035
|
for (const u of n)
|
|
1052
1036
|
u[1](), G.push(u, e);
|
|
@@ -1073,96 +1057,96 @@ function q(e, t, r) {
|
|
|
1073
1057
|
if (!i.every(Boolean))
|
|
1074
1058
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1075
1059
|
const o = t.length < 2;
|
|
1076
|
-
return
|
|
1060
|
+
return Yr(r, (a, s) => {
|
|
1077
1061
|
let l = !1;
|
|
1078
1062
|
const u = [];
|
|
1079
|
-
let h = 0,
|
|
1080
|
-
const
|
|
1063
|
+
let h = 0, c = O;
|
|
1064
|
+
const f = () => {
|
|
1081
1065
|
if (h)
|
|
1082
1066
|
return;
|
|
1083
|
-
|
|
1067
|
+
c();
|
|
1084
1068
|
const p = t(n ? u[0] : u, a, s);
|
|
1085
|
-
o ? a(p) :
|
|
1069
|
+
o ? a(p) : c = ze(p) ? p : O;
|
|
1086
1070
|
}, d = i.map(
|
|
1087
|
-
(p,
|
|
1071
|
+
(p, v) => Ht(
|
|
1088
1072
|
p,
|
|
1089
1073
|
(S) => {
|
|
1090
|
-
u[
|
|
1074
|
+
u[v] = S, h &= ~(1 << v), l && f();
|
|
1091
1075
|
},
|
|
1092
1076
|
() => {
|
|
1093
|
-
h |= 1 <<
|
|
1077
|
+
h |= 1 << v;
|
|
1094
1078
|
}
|
|
1095
1079
|
)
|
|
1096
1080
|
);
|
|
1097
|
-
return l = !0,
|
|
1098
|
-
ne(d),
|
|
1081
|
+
return l = !0, f(), function() {
|
|
1082
|
+
ne(d), c(), l = !1;
|
|
1099
1083
|
};
|
|
1100
1084
|
});
|
|
1101
1085
|
}
|
|
1102
|
-
function
|
|
1103
|
-
return e
|
|
1086
|
+
function Qr(e) {
|
|
1087
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1104
1088
|
}
|
|
1105
|
-
var
|
|
1106
|
-
return
|
|
1089
|
+
var Jr = function(t) {
|
|
1090
|
+
return Kr(t) && !en(t);
|
|
1107
1091
|
};
|
|
1108
|
-
function
|
|
1092
|
+
function Kr(e) {
|
|
1109
1093
|
return !!e && typeof e == "object";
|
|
1110
1094
|
}
|
|
1111
|
-
function
|
|
1095
|
+
function en(e) {
|
|
1112
1096
|
var t = Object.prototype.toString.call(e);
|
|
1113
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1097
|
+
return t === "[object RegExp]" || t === "[object Date]" || nn(e);
|
|
1114
1098
|
}
|
|
1115
|
-
var
|
|
1116
|
-
function
|
|
1117
|
-
return e.$$typeof ===
|
|
1099
|
+
var tn = typeof Symbol == "function" && Symbol.for, rn = tn ? Symbol.for("react.element") : 60103;
|
|
1100
|
+
function nn(e) {
|
|
1101
|
+
return e.$$typeof === rn;
|
|
1118
1102
|
}
|
|
1119
|
-
function
|
|
1103
|
+
function on(e) {
|
|
1120
1104
|
return Array.isArray(e) ? [] : {};
|
|
1121
1105
|
}
|
|
1122
1106
|
function te(e, t) {
|
|
1123
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? k(
|
|
1107
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(on(e), e, t) : e;
|
|
1124
1108
|
}
|
|
1125
|
-
function
|
|
1109
|
+
function an(e, t, r) {
|
|
1126
1110
|
return e.concat(t).map(function(n) {
|
|
1127
1111
|
return te(n, r);
|
|
1128
1112
|
});
|
|
1129
1113
|
}
|
|
1130
|
-
function
|
|
1114
|
+
function sn(e, t) {
|
|
1131
1115
|
if (!t.customMerge)
|
|
1132
1116
|
return k;
|
|
1133
1117
|
var r = t.customMerge(e);
|
|
1134
1118
|
return typeof r == "function" ? r : k;
|
|
1135
1119
|
}
|
|
1136
|
-
function
|
|
1120
|
+
function un(e) {
|
|
1137
1121
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1138
1122
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1139
1123
|
}) : [];
|
|
1140
1124
|
}
|
|
1141
|
-
function
|
|
1142
|
-
return Object.keys(e).concat(
|
|
1125
|
+
function lt(e) {
|
|
1126
|
+
return Object.keys(e).concat(un(e));
|
|
1143
1127
|
}
|
|
1144
|
-
function
|
|
1128
|
+
function Nt(e, t) {
|
|
1145
1129
|
try {
|
|
1146
1130
|
return t in e;
|
|
1147
1131
|
} catch (r) {
|
|
1148
1132
|
return !1;
|
|
1149
1133
|
}
|
|
1150
1134
|
}
|
|
1151
|
-
function
|
|
1152
|
-
return
|
|
1135
|
+
function ln(e, t) {
|
|
1136
|
+
return Nt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1153
1137
|
}
|
|
1154
|
-
function
|
|
1138
|
+
function hn(e, t, r) {
|
|
1155
1139
|
var n = {};
|
|
1156
|
-
return r.isMergeableObject(e) &&
|
|
1140
|
+
return r.isMergeableObject(e) && lt(e).forEach(function(i) {
|
|
1157
1141
|
n[i] = te(e[i], r);
|
|
1158
|
-
}),
|
|
1159
|
-
|
|
1142
|
+
}), lt(t).forEach(function(i) {
|
|
1143
|
+
ln(e, i) || (Nt(e, i) && r.isMergeableObject(t[i]) ? n[i] = sn(i, r)(e[i], t[i], r) : n[i] = te(t[i], r));
|
|
1160
1144
|
}), n;
|
|
1161
1145
|
}
|
|
1162
1146
|
function k(e, t, r) {
|
|
1163
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1147
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || an, r.isMergeableObject = r.isMergeableObject || Jr, r.cloneUnlessOtherwiseSpecified = te;
|
|
1164
1148
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1165
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1149
|
+
return o ? n ? r.arrayMerge(e, t, r) : hn(e, t, r) : te(t, r);
|
|
1166
1150
|
}
|
|
1167
1151
|
k.all = function(t, r) {
|
|
1168
1152
|
if (!Array.isArray(t))
|
|
@@ -1171,58 +1155,60 @@ k.all = function(t, r) {
|
|
|
1171
1155
|
return k(n, i, r);
|
|
1172
1156
|
}, {});
|
|
1173
1157
|
};
|
|
1174
|
-
var
|
|
1175
|
-
const
|
|
1176
|
-
function
|
|
1177
|
-
var r = t && t.cache ? t.cache :
|
|
1158
|
+
var fn = k, cn = fn;
|
|
1159
|
+
const dn = /* @__PURE__ */ Qr(cn);
|
|
1160
|
+
function Se(e, t) {
|
|
1161
|
+
var r = t && t.cache ? t.cache : xn, n = t && t.serializer ? t.serializer : yn, i = t && t.strategy ? t.strategy : mn;
|
|
1178
1162
|
return i(e, {
|
|
1179
1163
|
cache: r,
|
|
1180
1164
|
serializer: n
|
|
1181
1165
|
});
|
|
1182
1166
|
}
|
|
1183
|
-
function
|
|
1167
|
+
function pn(e) {
|
|
1184
1168
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1185
1169
|
}
|
|
1186
|
-
function
|
|
1187
|
-
var i =
|
|
1170
|
+
function Rt(e, t, r, n) {
|
|
1171
|
+
var i = pn(n) ? n : r(n), o = t.get(i);
|
|
1188
1172
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1189
1173
|
}
|
|
1190
|
-
function
|
|
1174
|
+
function $t(e, t, r) {
|
|
1191
1175
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1192
1176
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1193
1177
|
}
|
|
1194
|
-
function
|
|
1178
|
+
function Xe(e, t, r, n, i) {
|
|
1195
1179
|
return r.bind(t, e, n, i);
|
|
1196
1180
|
}
|
|
1197
|
-
function
|
|
1198
|
-
var r = e.length === 1 ?
|
|
1199
|
-
return
|
|
1181
|
+
function mn(e, t) {
|
|
1182
|
+
var r = e.length === 1 ? Rt : $t;
|
|
1183
|
+
return Xe(e, this, r, t.cache.create(), t.serializer);
|
|
1200
1184
|
}
|
|
1201
|
-
function
|
|
1202
|
-
return
|
|
1185
|
+
function bn(e, t) {
|
|
1186
|
+
return Xe(e, this, $t, t.cache.create(), t.serializer);
|
|
1203
1187
|
}
|
|
1204
|
-
function
|
|
1205
|
-
return
|
|
1188
|
+
function gn(e, t) {
|
|
1189
|
+
return Xe(e, this, Rt, t.cache.create(), t.serializer);
|
|
1206
1190
|
}
|
|
1207
|
-
var
|
|
1191
|
+
var yn = function() {
|
|
1208
1192
|
return JSON.stringify(arguments);
|
|
1209
|
-
}
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1193
|
+
}, vn = (
|
|
1194
|
+
/** @class */
|
|
1195
|
+
function() {
|
|
1196
|
+
function e() {
|
|
1197
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1198
|
+
}
|
|
1199
|
+
return e.prototype.get = function(t) {
|
|
1200
|
+
return this.cache[t];
|
|
1201
|
+
}, e.prototype.set = function(t, r) {
|
|
1202
|
+
this.cache[t] = r;
|
|
1203
|
+
}, e;
|
|
1204
|
+
}()
|
|
1205
|
+
), xn = {
|
|
1220
1206
|
create: function() {
|
|
1221
|
-
return new
|
|
1207
|
+
return new vn();
|
|
1222
1208
|
}
|
|
1223
|
-
},
|
|
1224
|
-
variadic:
|
|
1225
|
-
monadic:
|
|
1209
|
+
}, we = {
|
|
1210
|
+
variadic: bn,
|
|
1211
|
+
monadic: gn
|
|
1226
1212
|
}, b;
|
|
1227
1213
|
(function(e) {
|
|
1228
1214
|
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";
|
|
@@ -1235,43 +1221,43 @@ var V;
|
|
|
1235
1221
|
(function(e) {
|
|
1236
1222
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1237
1223
|
})(V || (V = {}));
|
|
1238
|
-
function
|
|
1224
|
+
function ht(e) {
|
|
1239
1225
|
return e.type === _.literal;
|
|
1240
1226
|
}
|
|
1241
|
-
function
|
|
1227
|
+
function _n(e) {
|
|
1242
1228
|
return e.type === _.argument;
|
|
1243
1229
|
}
|
|
1244
|
-
function
|
|
1230
|
+
function Ut(e) {
|
|
1245
1231
|
return e.type === _.number;
|
|
1246
1232
|
}
|
|
1247
|
-
function
|
|
1233
|
+
function Gt(e) {
|
|
1248
1234
|
return e.type === _.date;
|
|
1249
1235
|
}
|
|
1250
|
-
function
|
|
1236
|
+
function Dt(e) {
|
|
1251
1237
|
return e.type === _.time;
|
|
1252
1238
|
}
|
|
1253
|
-
function
|
|
1239
|
+
function Ft(e) {
|
|
1254
1240
|
return e.type === _.select;
|
|
1255
1241
|
}
|
|
1256
|
-
function
|
|
1242
|
+
function jt(e) {
|
|
1257
1243
|
return e.type === _.plural;
|
|
1258
1244
|
}
|
|
1259
|
-
function
|
|
1245
|
+
function En(e) {
|
|
1260
1246
|
return e.type === _.pound;
|
|
1261
1247
|
}
|
|
1262
|
-
function
|
|
1248
|
+
function kt(e) {
|
|
1263
1249
|
return e.type === _.tag;
|
|
1264
1250
|
}
|
|
1265
|
-
function
|
|
1251
|
+
function Vt(e) {
|
|
1266
1252
|
return !!(e && typeof e == "object" && e.type === V.number);
|
|
1267
1253
|
}
|
|
1268
|
-
function
|
|
1254
|
+
function $e(e) {
|
|
1269
1255
|
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
1270
1256
|
}
|
|
1271
|
-
var
|
|
1272
|
-
function
|
|
1257
|
+
var zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Tn = /(?:[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;
|
|
1258
|
+
function Sn(e) {
|
|
1273
1259
|
var t = {};
|
|
1274
|
-
return e.replace(
|
|
1260
|
+
return e.replace(Tn, function(r) {
|
|
1275
1261
|
var n = r.length;
|
|
1276
1262
|
switch (r[0]) {
|
|
1277
1263
|
case "G":
|
|
@@ -1360,36 +1346,36 @@ function Pn(e) {
|
|
|
1360
1346
|
return "";
|
|
1361
1347
|
}), t;
|
|
1362
1348
|
}
|
|
1363
|
-
var
|
|
1364
|
-
function
|
|
1349
|
+
var wn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1350
|
+
function Pn(e) {
|
|
1365
1351
|
if (e.length === 0)
|
|
1366
1352
|
throw new Error("Number skeleton cannot be empty");
|
|
1367
|
-
for (var t = e.split(
|
|
1368
|
-
return
|
|
1353
|
+
for (var t = e.split(wn).filter(function(f) {
|
|
1354
|
+
return f.length > 0;
|
|
1369
1355
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1370
1356
|
var o = i[n], a = o.split("/");
|
|
1371
1357
|
if (a.length === 0)
|
|
1372
1358
|
throw new Error("Invalid number skeleton");
|
|
1373
1359
|
for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1374
|
-
var
|
|
1375
|
-
if (
|
|
1360
|
+
var c = h[u];
|
|
1361
|
+
if (c.length === 0)
|
|
1376
1362
|
throw new Error("Invalid number skeleton");
|
|
1377
1363
|
}
|
|
1378
1364
|
r.push({ stem: s, options: l });
|
|
1379
1365
|
}
|
|
1380
1366
|
return r;
|
|
1381
1367
|
}
|
|
1382
|
-
function
|
|
1368
|
+
function Hn(e) {
|
|
1383
1369
|
return e.replace(/^(.*?)-/, "");
|
|
1384
1370
|
}
|
|
1385
|
-
var
|
|
1386
|
-
function
|
|
1371
|
+
var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wt = /^(@+)?(\+|#+)?[rs]?$/g, In = /(\*)(0+)|(#+)(0+)|(0+)/g, Xt = /^(0+)$/;
|
|
1372
|
+
function ct(e) {
|
|
1387
1373
|
var t = {};
|
|
1388
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1374
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Wt, function(r, n, i) {
|
|
1389
1375
|
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)), "";
|
|
1390
1376
|
}), t;
|
|
1391
1377
|
}
|
|
1392
|
-
function
|
|
1378
|
+
function qt(e) {
|
|
1393
1379
|
switch (e) {
|
|
1394
1380
|
case "sign-auto":
|
|
1395
1381
|
return {
|
|
@@ -1429,7 +1415,7 @@ function Qt(e) {
|
|
|
1429
1415
|
};
|
|
1430
1416
|
}
|
|
1431
1417
|
}
|
|
1432
|
-
function
|
|
1418
|
+
function Bn(e) {
|
|
1433
1419
|
var t;
|
|
1434
1420
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1435
1421
|
notation: "engineering"
|
|
@@ -1437,17 +1423,17 @@ function An(e) {
|
|
|
1437
1423
|
notation: "scientific"
|
|
1438
1424
|
}, e = e.slice(1)), t) {
|
|
1439
1425
|
var r = e.slice(0, 2);
|
|
1440
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1426
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Xt.test(e))
|
|
1441
1427
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1442
1428
|
t.minimumIntegerDigits = e.length;
|
|
1443
1429
|
}
|
|
1444
1430
|
return t;
|
|
1445
1431
|
}
|
|
1446
|
-
function
|
|
1447
|
-
var t = {}, r =
|
|
1432
|
+
function dt(e) {
|
|
1433
|
+
var t = {}, r = qt(e);
|
|
1448
1434
|
return r || t;
|
|
1449
1435
|
}
|
|
1450
|
-
function
|
|
1436
|
+
function Cn(e) {
|
|
1451
1437
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1452
1438
|
var i = n[r];
|
|
1453
1439
|
switch (i.stem) {
|
|
@@ -1471,7 +1457,7 @@ function On(e) {
|
|
|
1471
1457
|
continue;
|
|
1472
1458
|
case "measure-unit":
|
|
1473
1459
|
case "unit":
|
|
1474
|
-
t.style = "unit", t.unit =
|
|
1460
|
+
t.style = "unit", t.unit = Hn(i.options[0]);
|
|
1475
1461
|
continue;
|
|
1476
1462
|
case "compact-short":
|
|
1477
1463
|
case "K":
|
|
@@ -1482,13 +1468,13 @@ function On(e) {
|
|
|
1482
1468
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1483
1469
|
continue;
|
|
1484
1470
|
case "scientific":
|
|
1485
|
-
t =
|
|
1486
|
-
return
|
|
1471
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1472
|
+
return y(y({}, l), dt(u));
|
|
1487
1473
|
}, {}));
|
|
1488
1474
|
continue;
|
|
1489
1475
|
case "engineering":
|
|
1490
|
-
t =
|
|
1491
|
-
return
|
|
1476
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1477
|
+
return y(y({}, l), dt(u));
|
|
1492
1478
|
}, {}));
|
|
1493
1479
|
continue;
|
|
1494
1480
|
case "notation-simple":
|
|
@@ -1533,11 +1519,11 @@ function On(e) {
|
|
|
1533
1519
|
case "integer-width":
|
|
1534
1520
|
if (i.options.length > 1)
|
|
1535
1521
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1536
|
-
i.options[0].replace(
|
|
1522
|
+
i.options[0].replace(In, function(l, u, h, c, f, d) {
|
|
1537
1523
|
if (u)
|
|
1538
1524
|
t.minimumIntegerDigits = h.length;
|
|
1539
1525
|
else {
|
|
1540
|
-
if (
|
|
1526
|
+
if (c && f)
|
|
1541
1527
|
throw new Error("We currently do not support maximum integer digits");
|
|
1542
1528
|
if (d)
|
|
1543
1529
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1546,28 +1532,28 @@ function On(e) {
|
|
|
1546
1532
|
});
|
|
1547
1533
|
continue;
|
|
1548
1534
|
}
|
|
1549
|
-
if (
|
|
1535
|
+
if (Xt.test(i.stem)) {
|
|
1550
1536
|
t.minimumIntegerDigits = i.stem.length;
|
|
1551
1537
|
continue;
|
|
1552
1538
|
}
|
|
1553
|
-
if (
|
|
1539
|
+
if (ft.test(i.stem)) {
|
|
1554
1540
|
if (i.options.length > 1)
|
|
1555
1541
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1556
|
-
i.stem.replace(
|
|
1557
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1542
|
+
i.stem.replace(ft, function(l, u, h, c, f, d) {
|
|
1543
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1558
1544
|
});
|
|
1559
1545
|
var o = i.options[0];
|
|
1560
|
-
o === "w" ? t =
|
|
1546
|
+
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), ct(o)));
|
|
1561
1547
|
continue;
|
|
1562
1548
|
}
|
|
1563
|
-
if (
|
|
1564
|
-
t =
|
|
1549
|
+
if (Wt.test(i.stem)) {
|
|
1550
|
+
t = y(y({}, t), ct(i.stem));
|
|
1565
1551
|
continue;
|
|
1566
1552
|
}
|
|
1567
|
-
var a =
|
|
1568
|
-
a && (t =
|
|
1569
|
-
var s =
|
|
1570
|
-
s && (t =
|
|
1553
|
+
var a = qt(i.stem);
|
|
1554
|
+
a && (t = y(y({}, t), a));
|
|
1555
|
+
var s = Bn(i.stem);
|
|
1556
|
+
s && (t = y(y({}, t), s));
|
|
1571
1557
|
}
|
|
1572
1558
|
return t;
|
|
1573
1559
|
}
|
|
@@ -2986,13 +2972,13 @@ var ue = {
|
|
|
2986
2972
|
"h"
|
|
2987
2973
|
]
|
|
2988
2974
|
};
|
|
2989
|
-
function
|
|
2975
|
+
function An(e, t) {
|
|
2990
2976
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2991
2977
|
var i = e.charAt(n);
|
|
2992
2978
|
if (i === "j") {
|
|
2993
2979
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2994
2980
|
o++, n++;
|
|
2995
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2981
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = On(t);
|
|
2996
2982
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2997
2983
|
r += l;
|
|
2998
2984
|
for (; a-- > 0; )
|
|
@@ -3002,7 +2988,7 @@ function Ln(e, t) {
|
|
|
3002
2988
|
}
|
|
3003
2989
|
return r;
|
|
3004
2990
|
}
|
|
3005
|
-
function
|
|
2991
|
+
function On(e) {
|
|
3006
2992
|
var t = e.hourCycle;
|
|
3007
2993
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3008
2994
|
e.hourCycles && // @ts-ignore
|
|
@@ -3024,20 +3010,20 @@ function Mn(e) {
|
|
|
3024
3010
|
var i = ue[n || ""] || ue[r || ""] || ue["".concat(r, "-001")] || ue["001"];
|
|
3025
3011
|
return i[0];
|
|
3026
3012
|
}
|
|
3027
|
-
var
|
|
3028
|
-
function
|
|
3013
|
+
var Pe, Ln = new RegExp("^".concat(zt.source, "*")), Mn = new RegExp("".concat(zt.source, "*$"));
|
|
3014
|
+
function g(e, t) {
|
|
3029
3015
|
return { start: e, end: t };
|
|
3030
3016
|
}
|
|
3031
|
-
var
|
|
3017
|
+
var Nn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Rn = !!String.fromCodePoint, $n = !!Object.fromEntries, Un = !!String.prototype.codePointAt, Gn = !!String.prototype.trimStart, Dn = !!String.prototype.trimEnd, Fn = !!Number.isSafeInteger, jn = Fn ? Number.isSafeInteger : function(e) {
|
|
3032
3018
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3033
|
-
},
|
|
3019
|
+
}, Ue = !0;
|
|
3034
3020
|
try {
|
|
3035
|
-
var
|
|
3036
|
-
|
|
3021
|
+
var kn = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3022
|
+
Ue = ((Pe = kn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
3037
3023
|
} catch (e) {
|
|
3038
|
-
|
|
3024
|
+
Ue = !1;
|
|
3039
3025
|
}
|
|
3040
|
-
var
|
|
3026
|
+
var pt = Nn ? (
|
|
3041
3027
|
// Native
|
|
3042
3028
|
function(t, r, n) {
|
|
3043
3029
|
return t.startsWith(r, n);
|
|
@@ -3047,7 +3033,7 @@ var bt = $n ? (
|
|
|
3047
3033
|
function(t, r, n) {
|
|
3048
3034
|
return t.slice(n, n + r.length) === r;
|
|
3049
3035
|
}
|
|
3050
|
-
),
|
|
3036
|
+
), Ge = Rn ? String.fromCodePoint : (
|
|
3051
3037
|
// IE11
|
|
3052
3038
|
function() {
|
|
3053
3039
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3059,9 +3045,9 @@ var bt = $n ? (
|
|
|
3059
3045
|
}
|
|
3060
3046
|
return n;
|
|
3061
3047
|
}
|
|
3062
|
-
),
|
|
3048
|
+
), mt = (
|
|
3063
3049
|
// native
|
|
3064
|
-
|
|
3050
|
+
$n ? Object.fromEntries : (
|
|
3065
3051
|
// Ponyfill
|
|
3066
3052
|
function(t) {
|
|
3067
3053
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3071,7 +3057,7 @@ var bt = $n ? (
|
|
|
3071
3057
|
return r;
|
|
3072
3058
|
}
|
|
3073
3059
|
)
|
|
3074
|
-
),
|
|
3060
|
+
), Zt = Un ? (
|
|
3075
3061
|
// Native
|
|
3076
3062
|
function(t, r) {
|
|
3077
3063
|
return t.codePointAt(r);
|
|
@@ -3085,7 +3071,7 @@ var bt = $n ? (
|
|
|
3085
3071
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3086
3072
|
}
|
|
3087
3073
|
}
|
|
3088
|
-
),
|
|
3074
|
+
), Vn = Gn ? (
|
|
3089
3075
|
// Native
|
|
3090
3076
|
function(t) {
|
|
3091
3077
|
return t.trimStart();
|
|
@@ -3093,9 +3079,9 @@ var bt = $n ? (
|
|
|
3093
3079
|
) : (
|
|
3094
3080
|
// Ponyfill
|
|
3095
3081
|
function(t) {
|
|
3096
|
-
return t.replace(
|
|
3082
|
+
return t.replace(Ln, "");
|
|
3097
3083
|
}
|
|
3098
|
-
),
|
|
3084
|
+
), zn = Dn ? (
|
|
3099
3085
|
// Native
|
|
3100
3086
|
function(t) {
|
|
3101
3087
|
return t.trimEnd();
|
|
@@ -3103,32 +3089,32 @@ var bt = $n ? (
|
|
|
3103
3089
|
) : (
|
|
3104
3090
|
// Ponyfill
|
|
3105
3091
|
function(t) {
|
|
3106
|
-
return t.replace(
|
|
3092
|
+
return t.replace(Mn, "");
|
|
3107
3093
|
}
|
|
3108
3094
|
);
|
|
3109
|
-
function
|
|
3095
|
+
function Yt(e, t) {
|
|
3110
3096
|
return new RegExp(e, t);
|
|
3111
3097
|
}
|
|
3112
|
-
var
|
|
3113
|
-
if (
|
|
3114
|
-
var
|
|
3115
|
-
|
|
3098
|
+
var De;
|
|
3099
|
+
if (Ue) {
|
|
3100
|
+
var bt = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3101
|
+
De = function(t, r) {
|
|
3116
3102
|
var n;
|
|
3117
|
-
|
|
3118
|
-
var i =
|
|
3103
|
+
bt.lastIndex = r;
|
|
3104
|
+
var i = bt.exec(t);
|
|
3119
3105
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3120
3106
|
};
|
|
3121
3107
|
} else
|
|
3122
|
-
|
|
3108
|
+
De = function(t, r) {
|
|
3123
3109
|
for (var n = []; ; ) {
|
|
3124
|
-
var i =
|
|
3125
|
-
if (i === void 0 ||
|
|
3110
|
+
var i = Zt(t, r);
|
|
3111
|
+
if (i === void 0 || Qt(i) || Zn(i))
|
|
3126
3112
|
break;
|
|
3127
3113
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3128
3114
|
}
|
|
3129
|
-
return
|
|
3115
|
+
return Ge.apply(void 0, n);
|
|
3130
3116
|
};
|
|
3131
|
-
var
|
|
3117
|
+
var Wn = (
|
|
3132
3118
|
/** @class */
|
|
3133
3119
|
function() {
|
|
3134
3120
|
function e(t, r) {
|
|
@@ -3153,13 +3139,13 @@ var qn = (
|
|
|
3153
3139
|
var s = this.clonePosition();
|
|
3154
3140
|
this.bump(), i.push({
|
|
3155
3141
|
type: _.pound,
|
|
3156
|
-
location:
|
|
3142
|
+
location: g(s, this.clonePosition())
|
|
3157
3143
|
});
|
|
3158
3144
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3159
3145
|
if (n)
|
|
3160
3146
|
break;
|
|
3161
|
-
return this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3162
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3147
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3148
|
+
} else if (o === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
3163
3149
|
var a = this.parseTag(t, r);
|
|
3164
3150
|
if (a.err)
|
|
3165
3151
|
return a;
|
|
@@ -3182,7 +3168,7 @@ var qn = (
|
|
|
3182
3168
|
val: {
|
|
3183
3169
|
type: _.literal,
|
|
3184
3170
|
value: "<".concat(i, "/>"),
|
|
3185
|
-
location:
|
|
3171
|
+
location: g(n, this.clonePosition())
|
|
3186
3172
|
},
|
|
3187
3173
|
err: null
|
|
3188
3174
|
};
|
|
@@ -3192,25 +3178,25 @@ var qn = (
|
|
|
3192
3178
|
return o;
|
|
3193
3179
|
var a = o.val, s = this.clonePosition();
|
|
3194
3180
|
if (this.bumpIf("</")) {
|
|
3195
|
-
if (this.isEOF() || !
|
|
3196
|
-
return this.error(b.INVALID_TAG,
|
|
3181
|
+
if (this.isEOF() || !Fe(this.char()))
|
|
3182
|
+
return this.error(b.INVALID_TAG, g(s, this.clonePosition()));
|
|
3197
3183
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3198
|
-
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3184
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3199
3185
|
val: {
|
|
3200
3186
|
type: _.tag,
|
|
3201
3187
|
value: i,
|
|
3202
3188
|
children: a,
|
|
3203
|
-
location:
|
|
3189
|
+
location: g(n, this.clonePosition())
|
|
3204
3190
|
},
|
|
3205
3191
|
err: null
|
|
3206
|
-
} : this.error(b.INVALID_TAG,
|
|
3192
|
+
} : this.error(b.INVALID_TAG, g(s, this.clonePosition())));
|
|
3207
3193
|
} else
|
|
3208
|
-
return this.error(b.UNCLOSED_TAG,
|
|
3194
|
+
return this.error(b.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
3209
3195
|
} else
|
|
3210
|
-
return this.error(b.INVALID_TAG,
|
|
3196
|
+
return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
|
|
3211
3197
|
}, e.prototype.parseTagName = function() {
|
|
3212
3198
|
var t = this.offset();
|
|
3213
|
-
for (this.bump(); !this.isEOF() &&
|
|
3199
|
+
for (this.bump(); !this.isEOF() && qn(this.char()); )
|
|
3214
3200
|
this.bump();
|
|
3215
3201
|
return this.message.slice(t, this.offset());
|
|
3216
3202
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3232,14 +3218,14 @@ var qn = (
|
|
|
3232
3218
|
}
|
|
3233
3219
|
break;
|
|
3234
3220
|
}
|
|
3235
|
-
var l =
|
|
3221
|
+
var l = g(n, this.clonePosition());
|
|
3236
3222
|
return {
|
|
3237
3223
|
val: { type: _.literal, value: i, location: l },
|
|
3238
3224
|
err: null
|
|
3239
3225
|
};
|
|
3240
3226
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3241
3227
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3242
|
-
!
|
|
3228
|
+
!Xn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3243
3229
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3244
3230
|
if (this.isEOF() || this.char() !== 39)
|
|
3245
3231
|
return null;
|
|
@@ -3273,23 +3259,23 @@ var qn = (
|
|
|
3273
3259
|
r.push(n);
|
|
3274
3260
|
this.bump();
|
|
3275
3261
|
}
|
|
3276
|
-
return
|
|
3262
|
+
return Ge.apply(void 0, r);
|
|
3277
3263
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3278
3264
|
if (this.isEOF())
|
|
3279
3265
|
return null;
|
|
3280
3266
|
var n = this.char();
|
|
3281
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3267
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
|
|
3282
3268
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3283
3269
|
var n = this.clonePosition();
|
|
3284
3270
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3285
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3271
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3286
3272
|
if (this.char() === 125)
|
|
3287
|
-
return this.bump(), this.error(b.EMPTY_ARGUMENT,
|
|
3273
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, g(n, this.clonePosition()));
|
|
3288
3274
|
var i = this.parseIdentifierIfPossible().value;
|
|
3289
3275
|
if (!i)
|
|
3290
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3276
|
+
return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3291
3277
|
if (this.bumpSpace(), this.isEOF())
|
|
3292
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3278
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3293
3279
|
switch (this.char()) {
|
|
3294
3280
|
case 125:
|
|
3295
3281
|
return this.bump(), {
|
|
@@ -3297,25 +3283,25 @@ var qn = (
|
|
|
3297
3283
|
type: _.argument,
|
|
3298
3284
|
// value does not include the opening and closing braces.
|
|
3299
3285
|
value: i,
|
|
3300
|
-
location:
|
|
3286
|
+
location: g(n, this.clonePosition())
|
|
3301
3287
|
},
|
|
3302
3288
|
err: null
|
|
3303
3289
|
};
|
|
3304
3290
|
case 44:
|
|
3305
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3291
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3306
3292
|
default:
|
|
3307
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3293
|
+
return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3308
3294
|
}
|
|
3309
3295
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3310
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3296
|
+
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
3311
3297
|
this.bumpTo(i);
|
|
3312
|
-
var o = this.clonePosition(), a =
|
|
3298
|
+
var o = this.clonePosition(), a = g(t, o);
|
|
3313
3299
|
return { value: n, location: a };
|
|
3314
3300
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3315
3301
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3316
3302
|
switch (s) {
|
|
3317
3303
|
case "":
|
|
3318
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE,
|
|
3304
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, g(a, l));
|
|
3319
3305
|
case "number":
|
|
3320
3306
|
case "date":
|
|
3321
3307
|
case "time": {
|
|
@@ -3323,40 +3309,40 @@ var qn = (
|
|
|
3323
3309
|
var u = null;
|
|
3324
3310
|
if (this.bumpIf(",")) {
|
|
3325
3311
|
this.bumpSpace();
|
|
3326
|
-
var h = this.clonePosition(),
|
|
3327
|
-
if (
|
|
3328
|
-
return
|
|
3329
|
-
var
|
|
3330
|
-
if (
|
|
3331
|
-
return this.error(b.EXPECT_ARGUMENT_STYLE,
|
|
3332
|
-
var d =
|
|
3333
|
-
u = { style:
|
|
3312
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3313
|
+
if (c.err)
|
|
3314
|
+
return c;
|
|
3315
|
+
var f = zn(c.val);
|
|
3316
|
+
if (f.length === 0)
|
|
3317
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3318
|
+
var d = g(h, this.clonePosition());
|
|
3319
|
+
u = { style: f, styleLocation: d };
|
|
3334
3320
|
}
|
|
3335
3321
|
var p = this.tryParseArgumentClose(i);
|
|
3336
3322
|
if (p.err)
|
|
3337
3323
|
return p;
|
|
3338
|
-
var
|
|
3339
|
-
if (u &&
|
|
3340
|
-
var S =
|
|
3324
|
+
var v = g(i, this.clonePosition());
|
|
3325
|
+
if (u && pt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3326
|
+
var S = Vn(u.style.slice(2));
|
|
3341
3327
|
if (s === "number") {
|
|
3342
|
-
var
|
|
3343
|
-
return
|
|
3344
|
-
val: { type: _.number, value: n, location:
|
|
3328
|
+
var c = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3329
|
+
return c.err ? c : {
|
|
3330
|
+
val: { type: _.number, value: n, location: v, style: c.val },
|
|
3345
3331
|
err: null
|
|
3346
3332
|
};
|
|
3347
3333
|
} else {
|
|
3348
3334
|
if (S.length === 0)
|
|
3349
|
-
return this.error(b.EXPECT_DATE_TIME_SKELETON,
|
|
3335
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, v);
|
|
3350
3336
|
var H = S;
|
|
3351
|
-
this.locale && (H =
|
|
3352
|
-
var
|
|
3337
|
+
this.locale && (H = An(S, this.locale));
|
|
3338
|
+
var f = {
|
|
3353
3339
|
type: V.dateTime,
|
|
3354
3340
|
pattern: H,
|
|
3355
3341
|
location: u.styleLocation,
|
|
3356
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3342
|
+
parsedOptions: this.shouldParseSkeletons ? Sn(H) : {}
|
|
3357
3343
|
}, E = s === "date" ? _.date : _.time;
|
|
3358
3344
|
return {
|
|
3359
|
-
val: { type: E, value: n, location:
|
|
3345
|
+
val: { type: E, value: n, location: v, style: f },
|
|
3360
3346
|
err: null
|
|
3361
3347
|
};
|
|
3362
3348
|
}
|
|
@@ -3365,7 +3351,7 @@ var qn = (
|
|
|
3365
3351
|
val: {
|
|
3366
3352
|
type: s === "number" ? _.number : s === "date" ? _.date : _.time,
|
|
3367
3353
|
value: n,
|
|
3368
|
-
location:
|
|
3354
|
+
location: v,
|
|
3369
3355
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3370
3356
|
},
|
|
3371
3357
|
err: null
|
|
@@ -3376,17 +3362,17 @@ var qn = (
|
|
|
3376
3362
|
case "select": {
|
|
3377
3363
|
var x = this.clonePosition();
|
|
3378
3364
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3379
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3365
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(x, y({}, x)));
|
|
3380
3366
|
this.bumpSpace();
|
|
3381
3367
|
var w = this.parseIdentifierIfPossible(), m = 0;
|
|
3382
3368
|
if (s !== "select" && w.value === "offset") {
|
|
3383
3369
|
if (!this.bumpIf(":"))
|
|
3384
|
-
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3370
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
3385
3371
|
this.bumpSpace();
|
|
3386
|
-
var
|
|
3387
|
-
if (
|
|
3388
|
-
return
|
|
3389
|
-
this.bumpSpace(), w = this.parseIdentifierIfPossible(), m =
|
|
3372
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3373
|
+
if (c.err)
|
|
3374
|
+
return c;
|
|
3375
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), m = c.val;
|
|
3390
3376
|
}
|
|
3391
3377
|
var B = this.tryParsePluralOrSelectOptions(t, s, r, w);
|
|
3392
3378
|
if (B.err)
|
|
@@ -3394,12 +3380,12 @@ var qn = (
|
|
|
3394
3380
|
var p = this.tryParseArgumentClose(i);
|
|
3395
3381
|
if (p.err)
|
|
3396
3382
|
return p;
|
|
3397
|
-
var Q =
|
|
3383
|
+
var Q = g(i, this.clonePosition());
|
|
3398
3384
|
return s === "select" ? {
|
|
3399
3385
|
val: {
|
|
3400
3386
|
type: _.select,
|
|
3401
3387
|
value: n,
|
|
3402
|
-
options:
|
|
3388
|
+
options: mt(B.val),
|
|
3403
3389
|
location: Q
|
|
3404
3390
|
},
|
|
3405
3391
|
err: null
|
|
@@ -3407,7 +3393,7 @@ var qn = (
|
|
|
3407
3393
|
val: {
|
|
3408
3394
|
type: _.plural,
|
|
3409
3395
|
value: n,
|
|
3410
|
-
options:
|
|
3396
|
+
options: mt(B.val),
|
|
3411
3397
|
offset: m,
|
|
3412
3398
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3413
3399
|
location: Q
|
|
@@ -3416,10 +3402,10 @@ var qn = (
|
|
|
3416
3402
|
};
|
|
3417
3403
|
}
|
|
3418
3404
|
default:
|
|
3419
|
-
return this.error(b.INVALID_ARGUMENT_TYPE,
|
|
3405
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, g(a, l));
|
|
3420
3406
|
}
|
|
3421
3407
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3422
|
-
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3408
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3423
3409
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3424
3410
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3425
3411
|
var n = this.char();
|
|
@@ -3428,7 +3414,7 @@ var qn = (
|
|
|
3428
3414
|
this.bump();
|
|
3429
3415
|
var i = this.clonePosition();
|
|
3430
3416
|
if (!this.bumpUntil("'"))
|
|
3431
|
-
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3417
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
3432
3418
|
this.bump();
|
|
3433
3419
|
break;
|
|
3434
3420
|
}
|
|
@@ -3458,7 +3444,7 @@ var qn = (
|
|
|
3458
3444
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3459
3445
|
var n = [];
|
|
3460
3446
|
try {
|
|
3461
|
-
n =
|
|
3447
|
+
n = Pn(t);
|
|
3462
3448
|
} catch (i) {
|
|
3463
3449
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3464
3450
|
}
|
|
@@ -3467,19 +3453,19 @@ var qn = (
|
|
|
3467
3453
|
type: V.number,
|
|
3468
3454
|
tokens: n,
|
|
3469
3455
|
location: r,
|
|
3470
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3456
|
+
parsedOptions: this.shouldParseSkeletons ? Cn(n) : {}
|
|
3471
3457
|
},
|
|
3472
3458
|
err: null
|
|
3473
3459
|
};
|
|
3474
3460
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3475
3461
|
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3476
3462
|
if (u.length === 0) {
|
|
3477
|
-
var
|
|
3463
|
+
var c = this.clonePosition();
|
|
3478
3464
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3479
|
-
var
|
|
3480
|
-
if (
|
|
3481
|
-
return
|
|
3482
|
-
h =
|
|
3465
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3466
|
+
if (f.err)
|
|
3467
|
+
return f;
|
|
3468
|
+
h = g(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3483
3469
|
} else
|
|
3484
3470
|
break;
|
|
3485
3471
|
}
|
|
@@ -3488,22 +3474,22 @@ var qn = (
|
|
|
3488
3474
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3489
3475
|
var d = this.clonePosition();
|
|
3490
3476
|
if (!this.bumpIf("{"))
|
|
3491
|
-
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3477
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3492
3478
|
var p = this.parseMessage(t + 1, r, n);
|
|
3493
3479
|
if (p.err)
|
|
3494
3480
|
return p;
|
|
3495
|
-
var
|
|
3496
|
-
if (
|
|
3497
|
-
return
|
|
3481
|
+
var v = this.tryParseArgumentClose(d);
|
|
3482
|
+
if (v.err)
|
|
3483
|
+
return v;
|
|
3498
3484
|
s.push([
|
|
3499
3485
|
u,
|
|
3500
3486
|
{
|
|
3501
3487
|
value: p.val,
|
|
3502
|
-
location:
|
|
3488
|
+
location: g(d, this.clonePosition())
|
|
3503
3489
|
}
|
|
3504
3490
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3505
3491
|
}
|
|
3506
|
-
return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3492
|
+
return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3507
3493
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3508
3494
|
var n = 1, i = this.clonePosition();
|
|
3509
3495
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3514,8 +3500,8 @@ var qn = (
|
|
|
3514
3500
|
else
|
|
3515
3501
|
break;
|
|
3516
3502
|
}
|
|
3517
|
-
var l =
|
|
3518
|
-
return o ? (a *= n,
|
|
3503
|
+
var l = g(i, this.clonePosition());
|
|
3504
|
+
return o ? (a *= n, jn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3519
3505
|
}, e.prototype.offset = function() {
|
|
3520
3506
|
return this.position.offset;
|
|
3521
3507
|
}, e.prototype.isEOF = function() {
|
|
@@ -3530,7 +3516,7 @@ var qn = (
|
|
|
3530
3516
|
var t = this.position.offset;
|
|
3531
3517
|
if (t >= this.message.length)
|
|
3532
3518
|
throw Error("out of bound");
|
|
3533
|
-
var r =
|
|
3519
|
+
var r = Zt(this.message, t);
|
|
3534
3520
|
if (r === void 0)
|
|
3535
3521
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3536
3522
|
return r;
|
|
@@ -3549,7 +3535,7 @@ var qn = (
|
|
|
3549
3535
|
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);
|
|
3550
3536
|
}
|
|
3551
3537
|
}, e.prototype.bumpIf = function(t) {
|
|
3552
|
-
if (
|
|
3538
|
+
if (pt(this.message, t, this.offset())) {
|
|
3553
3539
|
for (var r = 0; r < t.length; r++)
|
|
3554
3540
|
this.bump();
|
|
3555
3541
|
return !0;
|
|
@@ -3571,7 +3557,7 @@ var qn = (
|
|
|
3571
3557
|
break;
|
|
3572
3558
|
}
|
|
3573
3559
|
}, e.prototype.bumpSpace = function() {
|
|
3574
|
-
for (; !this.isEOF() &&
|
|
3560
|
+
for (; !this.isEOF() && Qt(this.char()); )
|
|
3575
3561
|
this.bump();
|
|
3576
3562
|
}, e.prototype.peek = function() {
|
|
3577
3563
|
if (this.isEOF())
|
|
@@ -3581,44 +3567,44 @@ var qn = (
|
|
|
3581
3567
|
}, e;
|
|
3582
3568
|
}()
|
|
3583
3569
|
);
|
|
3584
|
-
function
|
|
3570
|
+
function Fe(e) {
|
|
3585
3571
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3586
3572
|
}
|
|
3587
|
-
function
|
|
3588
|
-
return
|
|
3573
|
+
function Xn(e) {
|
|
3574
|
+
return Fe(e) || e === 47;
|
|
3589
3575
|
}
|
|
3590
|
-
function
|
|
3576
|
+
function qn(e) {
|
|
3591
3577
|
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;
|
|
3592
3578
|
}
|
|
3593
|
-
function
|
|
3579
|
+
function Qt(e) {
|
|
3594
3580
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3595
3581
|
}
|
|
3596
|
-
function
|
|
3582
|
+
function Zn(e) {
|
|
3597
3583
|
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;
|
|
3598
3584
|
}
|
|
3599
|
-
function
|
|
3585
|
+
function je(e) {
|
|
3600
3586
|
e.forEach(function(t) {
|
|
3601
|
-
if (delete t.location,
|
|
3587
|
+
if (delete t.location, Ft(t) || jt(t))
|
|
3602
3588
|
for (var r in t.options)
|
|
3603
|
-
delete t.options[r].location,
|
|
3589
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3604
3590
|
else
|
|
3605
|
-
|
|
3591
|
+
Ut(t) && Vt(t.style) || (Gt(t) || Dt(t)) && $e(t.style) ? delete t.style.location : kt(t) && je(t.children);
|
|
3606
3592
|
});
|
|
3607
3593
|
}
|
|
3608
|
-
function
|
|
3609
|
-
t === void 0 && (t = {}), t =
|
|
3610
|
-
var r = new
|
|
3594
|
+
function Yn(e, t) {
|
|
3595
|
+
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3596
|
+
var r = new Wn(e, t).parse();
|
|
3611
3597
|
if (r.err) {
|
|
3612
3598
|
var n = SyntaxError(b[r.err.kind]);
|
|
3613
3599
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3614
3600
|
}
|
|
3615
|
-
return t != null && t.captureLocation ||
|
|
3601
|
+
return t != null && t.captureLocation || je(r.val), r.val;
|
|
3616
3602
|
}
|
|
3617
3603
|
var z;
|
|
3618
3604
|
(function(e) {
|
|
3619
3605
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3620
3606
|
})(z || (z = {}));
|
|
3621
|
-
var
|
|
3607
|
+
var ge = (
|
|
3622
3608
|
/** @class */
|
|
3623
3609
|
function(e) {
|
|
3624
3610
|
N(t, e);
|
|
@@ -3630,7 +3616,7 @@ var ve = (
|
|
|
3630
3616
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3631
3617
|
}, t;
|
|
3632
3618
|
}(Error)
|
|
3633
|
-
),
|
|
3619
|
+
), gt = (
|
|
3634
3620
|
/** @class */
|
|
3635
3621
|
function(e) {
|
|
3636
3622
|
N(t, e);
|
|
@@ -3638,8 +3624,8 @@ var ve = (
|
|
|
3638
3624
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
|
|
3639
3625
|
}
|
|
3640
3626
|
return t;
|
|
3641
|
-
}(
|
|
3642
|
-
),
|
|
3627
|
+
}(ge)
|
|
3628
|
+
), Qn = (
|
|
3643
3629
|
/** @class */
|
|
3644
3630
|
function(e) {
|
|
3645
3631
|
N(t, e);
|
|
@@ -3647,8 +3633,8 @@ var ve = (
|
|
|
3647
3633
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
|
|
3648
3634
|
}
|
|
3649
3635
|
return t;
|
|
3650
|
-
}(
|
|
3651
|
-
),
|
|
3636
|
+
}(ge)
|
|
3637
|
+
), Jn = (
|
|
3652
3638
|
/** @class */
|
|
3653
3639
|
function(e) {
|
|
3654
3640
|
N(t, e);
|
|
@@ -3656,22 +3642,22 @@ var ve = (
|
|
|
3656
3642
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
|
|
3657
3643
|
}
|
|
3658
3644
|
return t;
|
|
3659
|
-
}(
|
|
3645
|
+
}(ge)
|
|
3660
3646
|
), T;
|
|
3661
3647
|
(function(e) {
|
|
3662
3648
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3663
3649
|
})(T || (T = {}));
|
|
3664
|
-
function
|
|
3650
|
+
function Kn(e) {
|
|
3665
3651
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3666
3652
|
var n = t[t.length - 1];
|
|
3667
3653
|
return !n || n.type !== T.literal || r.type !== T.literal ? t.push(r) : n.value += r.value, t;
|
|
3668
3654
|
}, []);
|
|
3669
3655
|
}
|
|
3670
|
-
function
|
|
3656
|
+
function ei(e) {
|
|
3671
3657
|
return typeof e == "function";
|
|
3672
3658
|
}
|
|
3673
|
-
function
|
|
3674
|
-
if (e.length === 1 &&
|
|
3659
|
+
function fe(e, t, r, n, i, o, a) {
|
|
3660
|
+
if (e.length === 1 && ht(e[0]))
|
|
3675
3661
|
return [
|
|
3676
3662
|
{
|
|
3677
3663
|
type: T.literal,
|
|
@@ -3680,60 +3666,60 @@ function ce(e, t, r, n, i, o, a) {
|
|
|
3680
3666
|
];
|
|
3681
3667
|
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3682
3668
|
var h = u[l];
|
|
3683
|
-
if (
|
|
3669
|
+
if (ht(h)) {
|
|
3684
3670
|
s.push({
|
|
3685
3671
|
type: T.literal,
|
|
3686
3672
|
value: h.value
|
|
3687
3673
|
});
|
|
3688
3674
|
continue;
|
|
3689
3675
|
}
|
|
3690
|
-
if (
|
|
3676
|
+
if (En(h)) {
|
|
3691
3677
|
typeof o == "number" && s.push({
|
|
3692
3678
|
type: T.literal,
|
|
3693
3679
|
value: r.getNumberFormat(t).format(o)
|
|
3694
3680
|
});
|
|
3695
3681
|
continue;
|
|
3696
3682
|
}
|
|
3697
|
-
var
|
|
3698
|
-
if (!(i &&
|
|
3699
|
-
throw new
|
|
3700
|
-
var
|
|
3701
|
-
if (
|
|
3702
|
-
(!
|
|
3703
|
-
type: typeof
|
|
3704
|
-
value:
|
|
3683
|
+
var c = h.value;
|
|
3684
|
+
if (!(i && c in i))
|
|
3685
|
+
throw new Jn(c, a);
|
|
3686
|
+
var f = i[c];
|
|
3687
|
+
if (_n(h)) {
|
|
3688
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3689
|
+
type: typeof f == "string" ? T.literal : T.object,
|
|
3690
|
+
value: f
|
|
3705
3691
|
});
|
|
3706
3692
|
continue;
|
|
3707
3693
|
}
|
|
3708
|
-
if (
|
|
3709
|
-
var d = typeof h.style == "string" ? n.date[h.style] :
|
|
3694
|
+
if (Gt(h)) {
|
|
3695
|
+
var d = typeof h.style == "string" ? n.date[h.style] : $e(h.style) ? h.style.parsedOptions : void 0;
|
|
3710
3696
|
s.push({
|
|
3711
3697
|
type: T.literal,
|
|
3712
|
-
value: r.getDateTimeFormat(t, d).format(
|
|
3698
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3713
3699
|
});
|
|
3714
3700
|
continue;
|
|
3715
3701
|
}
|
|
3716
|
-
if (
|
|
3717
|
-
var d = typeof h.style == "string" ? n.time[h.style] :
|
|
3702
|
+
if (Dt(h)) {
|
|
3703
|
+
var d = typeof h.style == "string" ? n.time[h.style] : $e(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3718
3704
|
s.push({
|
|
3719
3705
|
type: T.literal,
|
|
3720
|
-
value: r.getDateTimeFormat(t, d).format(
|
|
3706
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3721
3707
|
});
|
|
3722
3708
|
continue;
|
|
3723
3709
|
}
|
|
3724
|
-
if (
|
|
3725
|
-
var d = typeof h.style == "string" ? n.number[h.style] :
|
|
3726
|
-
d && d.scale && (
|
|
3710
|
+
if (Ut(h)) {
|
|
3711
|
+
var d = typeof h.style == "string" ? n.number[h.style] : Vt(h.style) ? h.style.parsedOptions : void 0;
|
|
3712
|
+
d && d.scale && (f = f * (d.scale || 1)), s.push({
|
|
3727
3713
|
type: T.literal,
|
|
3728
|
-
value: r.getNumberFormat(t, d).format(
|
|
3714
|
+
value: r.getNumberFormat(t, d).format(f)
|
|
3729
3715
|
});
|
|
3730
3716
|
continue;
|
|
3731
3717
|
}
|
|
3732
|
-
if (
|
|
3733
|
-
var p = h.children,
|
|
3734
|
-
if (!
|
|
3735
|
-
throw new
|
|
3736
|
-
var H =
|
|
3718
|
+
if (kt(h)) {
|
|
3719
|
+
var p = h.children, v = h.value, S = i[v];
|
|
3720
|
+
if (!ei(S))
|
|
3721
|
+
throw new Qn(v, "function", a);
|
|
3722
|
+
var H = fe(p, t, r, n, i, o), E = S(H.map(function(m) {
|
|
3737
3723
|
return m.value;
|
|
3738
3724
|
}));
|
|
3739
3725
|
Array.isArray(E) || (E = [E]), s.push.apply(s, E.map(function(m) {
|
|
@@ -3743,42 +3729,42 @@ function ce(e, t, r, n, i, o, a) {
|
|
|
3743
3729
|
};
|
|
3744
3730
|
}));
|
|
3745
3731
|
}
|
|
3746
|
-
if (
|
|
3747
|
-
var x = h.options[
|
|
3732
|
+
if (Ft(h)) {
|
|
3733
|
+
var x = h.options[f] || h.options.other;
|
|
3748
3734
|
if (!x)
|
|
3749
|
-
throw new
|
|
3750
|
-
s.push.apply(s,
|
|
3735
|
+
throw new gt(h.value, f, Object.keys(h.options), a);
|
|
3736
|
+
s.push.apply(s, fe(x.value, t, r, n, i));
|
|
3751
3737
|
continue;
|
|
3752
3738
|
}
|
|
3753
|
-
if (
|
|
3754
|
-
var x = h.options["=".concat(
|
|
3739
|
+
if (jt(h)) {
|
|
3740
|
+
var x = h.options["=".concat(f)];
|
|
3755
3741
|
if (!x) {
|
|
3756
3742
|
if (!Intl.PluralRules)
|
|
3757
|
-
throw new
|
|
3743
|
+
throw new ge(`Intl.PluralRules is not available in this environment.
|
|
3758
3744
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3759
3745
|
`, z.MISSING_INTL_API, a);
|
|
3760
|
-
var w = r.getPluralRules(t, { type: h.pluralType }).select(
|
|
3746
|
+
var w = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3761
3747
|
x = h.options[w] || h.options.other;
|
|
3762
3748
|
}
|
|
3763
3749
|
if (!x)
|
|
3764
|
-
throw new
|
|
3765
|
-
s.push.apply(s,
|
|
3750
|
+
throw new gt(h.value, f, Object.keys(h.options), a);
|
|
3751
|
+
s.push.apply(s, fe(x.value, t, r, n, i, f - (h.offset || 0)));
|
|
3766
3752
|
continue;
|
|
3767
3753
|
}
|
|
3768
3754
|
}
|
|
3769
|
-
return
|
|
3755
|
+
return Kn(s);
|
|
3770
3756
|
}
|
|
3771
|
-
function
|
|
3772
|
-
return t ?
|
|
3773
|
-
return r[n] =
|
|
3757
|
+
function ti(e, t) {
|
|
3758
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3759
|
+
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3774
3760
|
}, {})) : e;
|
|
3775
3761
|
}
|
|
3776
|
-
function
|
|
3762
|
+
function ri(e, t) {
|
|
3777
3763
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3778
|
-
return r[n] =
|
|
3779
|
-
},
|
|
3764
|
+
return r[n] = ti(e[n], t[n]), r;
|
|
3765
|
+
}, y({}, e)) : e;
|
|
3780
3766
|
}
|
|
3781
|
-
function
|
|
3767
|
+
function He(e) {
|
|
3782
3768
|
return {
|
|
3783
3769
|
create: function() {
|
|
3784
3770
|
return {
|
|
@@ -3792,39 +3778,39 @@ function Ie(e) {
|
|
|
3792
3778
|
}
|
|
3793
3779
|
};
|
|
3794
3780
|
}
|
|
3795
|
-
function
|
|
3781
|
+
function ni(e) {
|
|
3796
3782
|
return e === void 0 && (e = {
|
|
3797
3783
|
number: {},
|
|
3798
3784
|
dateTime: {},
|
|
3799
3785
|
pluralRules: {}
|
|
3800
3786
|
}), {
|
|
3801
|
-
getNumberFormat:
|
|
3787
|
+
getNumberFormat: Se(function() {
|
|
3802
3788
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3803
3789
|
r[n] = arguments[n];
|
|
3804
3790
|
return new ((t = Intl.NumberFormat).bind.apply(t, j([void 0], r, !1)))();
|
|
3805
3791
|
}, {
|
|
3806
|
-
cache:
|
|
3807
|
-
strategy:
|
|
3792
|
+
cache: He(e.number),
|
|
3793
|
+
strategy: we.variadic
|
|
3808
3794
|
}),
|
|
3809
|
-
getDateTimeFormat:
|
|
3795
|
+
getDateTimeFormat: Se(function() {
|
|
3810
3796
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3811
3797
|
r[n] = arguments[n];
|
|
3812
3798
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, j([void 0], r, !1)))();
|
|
3813
3799
|
}, {
|
|
3814
|
-
cache:
|
|
3815
|
-
strategy:
|
|
3800
|
+
cache: He(e.dateTime),
|
|
3801
|
+
strategy: we.variadic
|
|
3816
3802
|
}),
|
|
3817
|
-
getPluralRules:
|
|
3803
|
+
getPluralRules: Se(function() {
|
|
3818
3804
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3819
3805
|
r[n] = arguments[n];
|
|
3820
3806
|
return new ((t = Intl.PluralRules).bind.apply(t, j([void 0], r, !1)))();
|
|
3821
3807
|
}, {
|
|
3822
|
-
cache:
|
|
3823
|
-
strategy:
|
|
3808
|
+
cache: He(e.pluralRules),
|
|
3809
|
+
strategy: we.variadic
|
|
3824
3810
|
})
|
|
3825
3811
|
};
|
|
3826
3812
|
}
|
|
3827
|
-
var
|
|
3813
|
+
var ii = (
|
|
3828
3814
|
/** @class */
|
|
3829
3815
|
function() {
|
|
3830
3816
|
function e(t, r, n, i) {
|
|
@@ -3838,12 +3824,12 @@ var ai = (
|
|
|
3838
3824
|
var u = o.formatToParts(l);
|
|
3839
3825
|
if (u.length === 1)
|
|
3840
3826
|
return u[0].value;
|
|
3841
|
-
var h = u.reduce(function(
|
|
3842
|
-
return !
|
|
3827
|
+
var h = u.reduce(function(c, f) {
|
|
3828
|
+
return !c.length || f.type !== T.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3843
3829
|
}, []);
|
|
3844
3830
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3845
3831
|
}, this.formatToParts = function(l) {
|
|
3846
|
-
return
|
|
3832
|
+
return fe(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3847
3833
|
}, this.resolvedOptions = function() {
|
|
3848
3834
|
var l;
|
|
3849
3835
|
return {
|
|
@@ -3856,13 +3842,13 @@ var ai = (
|
|
|
3856
3842
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3857
3843
|
var a = i || {};
|
|
3858
3844
|
a.formatters;
|
|
3859
|
-
var s =
|
|
3860
|
-
this.ast = e.__parse(t,
|
|
3845
|
+
var s = Nr(a, ["formatters"]);
|
|
3846
|
+
this.ast = e.__parse(t, y(y({}, s), { locale: this.resolvedLocale }));
|
|
3861
3847
|
} else
|
|
3862
3848
|
this.ast = t;
|
|
3863
3849
|
if (!Array.isArray(this.ast))
|
|
3864
3850
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3865
|
-
this.formats =
|
|
3851
|
+
this.formats = ri(e.formats, n), this.formatters = i && i.formatters || ni(this.formatterCache);
|
|
3866
3852
|
}
|
|
3867
3853
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3868
3854
|
get: function() {
|
|
@@ -3875,7 +3861,7 @@ var ai = (
|
|
|
3875
3861
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3876
3862
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3877
3863
|
}
|
|
3878
|
-
}, e.__parse =
|
|
3864
|
+
}, e.__parse = Yn, e.formats = {
|
|
3879
3865
|
number: {
|
|
3880
3866
|
integer: {
|
|
3881
3867
|
maximumFractionDigits: 0
|
|
@@ -3936,7 +3922,7 @@ var ai = (
|
|
|
3936
3922
|
}, e;
|
|
3937
3923
|
}()
|
|
3938
3924
|
);
|
|
3939
|
-
function
|
|
3925
|
+
function oi(e, t) {
|
|
3940
3926
|
if (t == null)
|
|
3941
3927
|
return;
|
|
3942
3928
|
if (t in e)
|
|
@@ -3957,92 +3943,92 @@ function si(e, t) {
|
|
|
3957
3943
|
n = void 0;
|
|
3958
3944
|
return n;
|
|
3959
3945
|
}
|
|
3960
|
-
const R = {},
|
|
3946
|
+
const R = {}, ai = (e, t, r) => r && (t in R || (R[t] = {}), e in R[t] || (R[t][e] = r), r), Jt = (e, t) => {
|
|
3961
3947
|
if (t == null)
|
|
3962
3948
|
return;
|
|
3963
3949
|
if (t in R && e in R[t])
|
|
3964
3950
|
return R[t][e];
|
|
3965
|
-
const r =
|
|
3951
|
+
const r = ye(t);
|
|
3966
3952
|
for (let n = 0; n < r.length; n++) {
|
|
3967
|
-
const i = r[n], o =
|
|
3953
|
+
const i = r[n], o = ui(i, e);
|
|
3968
3954
|
if (o)
|
|
3969
|
-
return
|
|
3955
|
+
return ai(e, t, o);
|
|
3970
3956
|
}
|
|
3971
3957
|
};
|
|
3972
|
-
let
|
|
3958
|
+
let qe;
|
|
3973
3959
|
const ae = be({});
|
|
3974
|
-
function
|
|
3975
|
-
return
|
|
3960
|
+
function si(e) {
|
|
3961
|
+
return qe[e] || null;
|
|
3976
3962
|
}
|
|
3977
|
-
function
|
|
3978
|
-
return e in
|
|
3963
|
+
function Kt(e) {
|
|
3964
|
+
return e in qe;
|
|
3979
3965
|
}
|
|
3980
|
-
function
|
|
3981
|
-
if (!
|
|
3966
|
+
function ui(e, t) {
|
|
3967
|
+
if (!Kt(e))
|
|
3982
3968
|
return null;
|
|
3983
|
-
const r =
|
|
3984
|
-
return
|
|
3969
|
+
const r = si(e);
|
|
3970
|
+
return oi(r, t);
|
|
3985
3971
|
}
|
|
3986
|
-
function
|
|
3972
|
+
function li(e) {
|
|
3987
3973
|
if (e == null)
|
|
3988
3974
|
return;
|
|
3989
|
-
const t =
|
|
3975
|
+
const t = ye(e);
|
|
3990
3976
|
for (let r = 0; r < t.length; r++) {
|
|
3991
3977
|
const n = t[r];
|
|
3992
|
-
if (
|
|
3978
|
+
if (Kt(n))
|
|
3993
3979
|
return n;
|
|
3994
3980
|
}
|
|
3995
3981
|
}
|
|
3996
|
-
function
|
|
3997
|
-
delete R[e], ae.update((r) => (r[e] =
|
|
3982
|
+
function er(e, ...t) {
|
|
3983
|
+
delete R[e], ae.update((r) => (r[e] = dn.all([r[e] || {}, ...t]), r));
|
|
3998
3984
|
}
|
|
3999
3985
|
q(
|
|
4000
3986
|
[ae],
|
|
4001
3987
|
([e]) => Object.keys(e)
|
|
4002
3988
|
);
|
|
4003
|
-
ae.subscribe((e) =>
|
|
4004
|
-
const
|
|
4005
|
-
function
|
|
4006
|
-
|
|
3989
|
+
ae.subscribe((e) => qe = e);
|
|
3990
|
+
const ce = {};
|
|
3991
|
+
function hi(e, t) {
|
|
3992
|
+
ce[e].delete(t), ce[e].size === 0 && delete ce[e];
|
|
4007
3993
|
}
|
|
4008
|
-
function
|
|
4009
|
-
return
|
|
3994
|
+
function tr(e) {
|
|
3995
|
+
return ce[e];
|
|
4010
3996
|
}
|
|
4011
|
-
function
|
|
4012
|
-
return
|
|
4013
|
-
const r =
|
|
3997
|
+
function fi(e) {
|
|
3998
|
+
return ye(e).map((t) => {
|
|
3999
|
+
const r = tr(t);
|
|
4014
4000
|
return [t, r ? [...r] : []];
|
|
4015
4001
|
}).filter(([, t]) => t.length > 0);
|
|
4016
4002
|
}
|
|
4017
|
-
function
|
|
4018
|
-
return e == null ? !1 :
|
|
4003
|
+
function ke(e) {
|
|
4004
|
+
return e == null ? !1 : ye(e).some(
|
|
4019
4005
|
(t) => {
|
|
4020
4006
|
var r;
|
|
4021
|
-
return (r =
|
|
4007
|
+
return (r = tr(t)) == null ? void 0 : r.size;
|
|
4022
4008
|
}
|
|
4023
4009
|
);
|
|
4024
4010
|
}
|
|
4025
|
-
function
|
|
4011
|
+
function ci(e, t) {
|
|
4026
4012
|
return Promise.all(
|
|
4027
|
-
t.map((n) => (
|
|
4028
|
-
).then((n) =>
|
|
4013
|
+
t.map((n) => (hi(e, n), n().then((i) => i.default || i)))
|
|
4014
|
+
).then((n) => er(e, ...n));
|
|
4029
4015
|
}
|
|
4030
4016
|
const J = {};
|
|
4031
|
-
function
|
|
4032
|
-
if (!
|
|
4017
|
+
function rr(e) {
|
|
4018
|
+
if (!ke(e))
|
|
4033
4019
|
return e in J ? J[e] : Promise.resolve();
|
|
4034
|
-
const t =
|
|
4020
|
+
const t = fi(e);
|
|
4035
4021
|
return J[e] = Promise.all(
|
|
4036
4022
|
t.map(
|
|
4037
|
-
([r, n]) =>
|
|
4023
|
+
([r, n]) => ci(r, n)
|
|
4038
4024
|
)
|
|
4039
4025
|
).then(() => {
|
|
4040
|
-
if (
|
|
4041
|
-
return
|
|
4026
|
+
if (ke(e))
|
|
4027
|
+
return rr(e);
|
|
4042
4028
|
delete J[e];
|
|
4043
4029
|
}), J[e];
|
|
4044
4030
|
}
|
|
4045
|
-
const
|
|
4031
|
+
const di = {
|
|
4046
4032
|
number: {
|
|
4047
4033
|
scientific: { notation: "scientific" },
|
|
4048
4034
|
engineering: { notation: "engineering" },
|
|
@@ -4071,78 +4057,78 @@ const mi = {
|
|
|
4071
4057
|
timeZoneName: "short"
|
|
4072
4058
|
}
|
|
4073
4059
|
}
|
|
4074
|
-
},
|
|
4060
|
+
}, pi = {
|
|
4075
4061
|
fallbackLocale: null,
|
|
4076
4062
|
loadingDelay: 200,
|
|
4077
|
-
formats:
|
|
4063
|
+
formats: di,
|
|
4078
4064
|
warnOnMissingMessages: !0,
|
|
4079
4065
|
handleMissingMessage: void 0,
|
|
4080
4066
|
ignoreTag: !0
|
|
4081
|
-
},
|
|
4067
|
+
}, mi = pi;
|
|
4082
4068
|
function W() {
|
|
4083
|
-
return
|
|
4084
|
-
}
|
|
4085
|
-
const
|
|
4086
|
-
var
|
|
4087
|
-
for (var r in t
|
|
4088
|
-
|
|
4089
|
-
if (
|
|
4090
|
-
for (var r of
|
|
4091
|
-
|
|
4069
|
+
return mi;
|
|
4070
|
+
}
|
|
4071
|
+
const Ie = be(!1);
|
|
4072
|
+
var bi = Object.defineProperty, gi = Object.defineProperties, yi = Object.getOwnPropertyDescriptors, yt = Object.getOwnPropertySymbols, vi = Object.prototype.hasOwnProperty, xi = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, _i = (e, t) => {
|
|
4073
|
+
for (var r in t)
|
|
4074
|
+
vi.call(t, r) && vt(e, r, t[r]);
|
|
4075
|
+
if (yt)
|
|
4076
|
+
for (var r of yt(t))
|
|
4077
|
+
xi.call(t, r) && vt(e, r, t[r]);
|
|
4092
4078
|
return e;
|
|
4093
|
-
},
|
|
4094
|
-
let
|
|
4079
|
+
}, Ei = (e, t) => gi(e, yi(t));
|
|
4080
|
+
let Ve;
|
|
4095
4081
|
const de = be(null);
|
|
4096
|
-
function
|
|
4082
|
+
function xt(e) {
|
|
4097
4083
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4098
4084
|
}
|
|
4099
|
-
function
|
|
4100
|
-
const r =
|
|
4101
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4085
|
+
function ye(e, t = W().fallbackLocale) {
|
|
4086
|
+
const r = xt(e);
|
|
4087
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...xt(t)])] : r;
|
|
4102
4088
|
}
|
|
4103
4089
|
function $() {
|
|
4104
|
-
return
|
|
4090
|
+
return Ve != null ? Ve : void 0;
|
|
4105
4091
|
}
|
|
4106
4092
|
de.subscribe((e) => {
|
|
4107
|
-
|
|
4093
|
+
Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4108
4094
|
});
|
|
4109
|
-
const
|
|
4110
|
-
if (e &&
|
|
4095
|
+
const Ti = (e) => {
|
|
4096
|
+
if (e && li(e) && ke(e)) {
|
|
4111
4097
|
const { loadingDelay: t } = W();
|
|
4112
4098
|
let r;
|
|
4113
4099
|
return typeof window != "undefined" && $() != null && t ? r = window.setTimeout(
|
|
4114
|
-
() =>
|
|
4100
|
+
() => Ie.set(!0),
|
|
4115
4101
|
t
|
|
4116
|
-
) :
|
|
4102
|
+
) : Ie.set(!0), rr(e).then(() => {
|
|
4117
4103
|
de.set(e);
|
|
4118
4104
|
}).finally(() => {
|
|
4119
|
-
clearTimeout(r),
|
|
4105
|
+
clearTimeout(r), Ie.set(!1);
|
|
4120
4106
|
});
|
|
4121
4107
|
}
|
|
4122
4108
|
return de.set(e);
|
|
4123
|
-
}, Z =
|
|
4124
|
-
set:
|
|
4125
|
-
}),
|
|
4109
|
+
}, Z = Ei(_i({}, de), {
|
|
4110
|
+
set: Ti
|
|
4111
|
+
}), ve = (e) => {
|
|
4126
4112
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4127
4113
|
return (n) => {
|
|
4128
4114
|
const i = JSON.stringify(n);
|
|
4129
4115
|
return i in t ? t[i] : t[i] = e(n);
|
|
4130
4116
|
};
|
|
4131
4117
|
};
|
|
4132
|
-
var
|
|
4118
|
+
var Si = Object.defineProperty, pe = Object.getOwnPropertySymbols, nr = Object.prototype.hasOwnProperty, ir = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
4133
4119
|
for (var r in t || (t = {}))
|
|
4134
|
-
|
|
4120
|
+
nr.call(t, r) && _t(e, r, t[r]);
|
|
4135
4121
|
if (pe)
|
|
4136
4122
|
for (var r of pe(t))
|
|
4137
|
-
|
|
4123
|
+
ir.call(t, r) && _t(e, r, t[r]);
|
|
4138
4124
|
return e;
|
|
4139
4125
|
}, Y = (e, t) => {
|
|
4140
4126
|
var r = {};
|
|
4141
4127
|
for (var n in e)
|
|
4142
|
-
|
|
4128
|
+
nr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4143
4129
|
if (e != null && pe)
|
|
4144
4130
|
for (var n of pe(e))
|
|
4145
|
-
t.indexOf(n) < 0 &&
|
|
4131
|
+
t.indexOf(n) < 0 && ir.call(e, n) && (r[n] = e[n]);
|
|
4146
4132
|
return r;
|
|
4147
4133
|
};
|
|
4148
4134
|
const re = (e, t) => {
|
|
@@ -4150,21 +4136,21 @@ const re = (e, t) => {
|
|
|
4150
4136
|
if (e in r && t in r[e])
|
|
4151
4137
|
return r[e][t];
|
|
4152
4138
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4153
|
-
},
|
|
4139
|
+
}, wi = ve(
|
|
4154
4140
|
(e) => {
|
|
4155
4141
|
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4156
4142
|
if (r == null)
|
|
4157
4143
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4158
4144
|
return n && (i = re("number", n)), new Intl.NumberFormat(r, i);
|
|
4159
4145
|
}
|
|
4160
|
-
),
|
|
4146
|
+
), Pi = ve(
|
|
4161
4147
|
(e) => {
|
|
4162
4148
|
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4163
4149
|
if (r == null)
|
|
4164
4150
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4165
4151
|
return n ? i = re("date", n) : Object.keys(i).length === 0 && (i = re("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4166
4152
|
}
|
|
4167
|
-
),
|
|
4153
|
+
), Hi = ve(
|
|
4168
4154
|
(e) => {
|
|
4169
4155
|
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4170
4156
|
if (r == null)
|
|
@@ -4173,33 +4159,33 @@ const re = (e, t) => {
|
|
|
4173
4159
|
);
|
|
4174
4160
|
return n ? i = re("time", n) : Object.keys(i).length === 0 && (i = re("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4175
4161
|
}
|
|
4176
|
-
),
|
|
4162
|
+
), Ii = (e = {}) => {
|
|
4177
4163
|
var t = e, {
|
|
4178
4164
|
locale: r = $()
|
|
4179
4165
|
} = t, n = Y(t, [
|
|
4180
4166
|
"locale"
|
|
4181
4167
|
]);
|
|
4182
|
-
return
|
|
4183
|
-
},
|
|
4168
|
+
return wi(Ze({ locale: r }, n));
|
|
4169
|
+
}, Bi = (e = {}) => {
|
|
4184
4170
|
var t = e, {
|
|
4185
4171
|
locale: r = $()
|
|
4186
4172
|
} = t, n = Y(t, [
|
|
4187
4173
|
"locale"
|
|
4188
4174
|
]);
|
|
4189
|
-
return
|
|
4190
|
-
},
|
|
4175
|
+
return Pi(Ze({ locale: r }, n));
|
|
4176
|
+
}, Ci = (e = {}) => {
|
|
4191
4177
|
var t = e, {
|
|
4192
4178
|
locale: r = $()
|
|
4193
4179
|
} = t, n = Y(t, [
|
|
4194
4180
|
"locale"
|
|
4195
4181
|
]);
|
|
4196
|
-
return
|
|
4197
|
-
},
|
|
4182
|
+
return Hi(Ze({ locale: r }, n));
|
|
4183
|
+
}, Ai = ve(
|
|
4198
4184
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4199
|
-
(e, t = $()) => new
|
|
4185
|
+
(e, t = $()) => new ii(e, t, W().formats, {
|
|
4200
4186
|
ignoreTag: W().ignoreTag
|
|
4201
4187
|
})
|
|
4202
|
-
),
|
|
4188
|
+
), Oi = (e, t = {}) => {
|
|
4203
4189
|
var r, n, i, o;
|
|
4204
4190
|
let a = t;
|
|
4205
4191
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -4212,7 +4198,7 @@ const re = (e, t) => {
|
|
|
4212
4198
|
throw new Error(
|
|
4213
4199
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4214
4200
|
);
|
|
4215
|
-
let h =
|
|
4201
|
+
let h = Jt(e, l);
|
|
4216
4202
|
if (!h)
|
|
4217
4203
|
h = (o = (i = (n = (r = W()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4218
4204
|
else if (typeof h != "string")
|
|
@@ -4221,30 +4207,30 @@ const re = (e, t) => {
|
|
|
4221
4207
|
), h;
|
|
4222
4208
|
if (!s)
|
|
4223
4209
|
return h;
|
|
4224
|
-
let
|
|
4210
|
+
let c = h;
|
|
4225
4211
|
try {
|
|
4226
|
-
|
|
4227
|
-
} catch (
|
|
4228
|
-
|
|
4212
|
+
c = Ai(h, l).format(s);
|
|
4213
|
+
} catch (f) {
|
|
4214
|
+
f instanceof Error && console.warn(
|
|
4229
4215
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4230
|
-
|
|
4216
|
+
f.message
|
|
4231
4217
|
);
|
|
4232
4218
|
}
|
|
4233
|
-
return
|
|
4234
|
-
},
|
|
4219
|
+
return c;
|
|
4220
|
+
}, Li = (e, t) => Ci(t).format(e), Mi = (e, t) => Bi(t).format(e), Ni = (e, t) => Ii(t).format(e), Ri = (e, t = $()) => Jt(e, t), $i = q([Z, ae], () => Oi);
|
|
4221
|
+
q([Z], () => Li);
|
|
4222
|
+
q([Z], () => Mi);
|
|
4235
4223
|
q([Z], () => Ni);
|
|
4236
|
-
q([Z], () => Ri);
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
}
|
|
4244
|
-
function Fi(e) {
|
|
4224
|
+
q([Z, ae], () => Ri);
|
|
4225
|
+
window.emWidgets = { topic: Zr };
|
|
4226
|
+
const Ui = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4227
|
+
function Et(e, t) {
|
|
4228
|
+
er(e, t);
|
|
4229
|
+
}
|
|
4230
|
+
function Gi(e) {
|
|
4245
4231
|
Z.set(e);
|
|
4246
4232
|
}
|
|
4247
|
-
const
|
|
4233
|
+
const Tt = {
|
|
4248
4234
|
en: {
|
|
4249
4235
|
name: "Info",
|
|
4250
4236
|
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:",
|
|
@@ -4306,13 +4292,13 @@ const wt = {
|
|
|
4306
4292
|
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."
|
|
4307
4293
|
}
|
|
4308
4294
|
};
|
|
4309
|
-
function
|
|
4295
|
+
function Di(e, t) {
|
|
4310
4296
|
if (e) {
|
|
4311
4297
|
const r = document.createElement("style");
|
|
4312
4298
|
r.innerHTML = t, e.appendChild(r);
|
|
4313
4299
|
}
|
|
4314
4300
|
}
|
|
4315
|
-
function
|
|
4301
|
+
function Fi(e, t) {
|
|
4316
4302
|
const r = new URL(t);
|
|
4317
4303
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4318
4304
|
const i = document.createElement("style");
|
|
@@ -4321,7 +4307,7 @@ function ki(e, t) {
|
|
|
4321
4307
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4322
4308
|
});
|
|
4323
4309
|
}
|
|
4324
|
-
function
|
|
4310
|
+
function ji(e, t, r) {
|
|
4325
4311
|
if (window.emMessageBus) {
|
|
4326
4312
|
const n = document.createElement("style");
|
|
4327
4313
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4329,24 +4315,24 @@ function Vi(e, t, r) {
|
|
|
4329
4315
|
});
|
|
4330
4316
|
}
|
|
4331
4317
|
}
|
|
4332
|
-
function
|
|
4333
|
-
|
|
4318
|
+
function ki(e) {
|
|
4319
|
+
cr(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)}');
|
|
4334
4320
|
}
|
|
4335
|
-
function
|
|
4321
|
+
function St(e) {
|
|
4336
4322
|
let t, r, n, i, o, a, s = (
|
|
4337
4323
|
/*$_*/
|
|
4338
4324
|
e[4]("name") + ""
|
|
4339
|
-
), l, u, h,
|
|
4325
|
+
), l, u, h, c, f, d, p, v;
|
|
4340
4326
|
function S(x, w) {
|
|
4341
4327
|
return (
|
|
4342
4328
|
/*iteminfoamount*/
|
|
4343
|
-
x[0] ?
|
|
4329
|
+
x[0] ? zi : Vi
|
|
4344
4330
|
);
|
|
4345
4331
|
}
|
|
4346
4332
|
let H = S(e), E = H(e);
|
|
4347
4333
|
return {
|
|
4348
4334
|
c() {
|
|
4349
|
-
t = A("section"), r = A("div"), n = A("div"), i = A("div"), i.textContent = "i", o = _e(), a = A("div"), l = oe(s), u = _e(), 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>',
|
|
4335
|
+
t = A("section"), r = A("div"), n = A("div"), i = A("div"), i.textContent = "i", o = _e(), a = A("div"), l = oe(s), u = _e(), 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>', c = _e(), f = A("div"), E.c(), C(i, "class", "InfoCardPopupIcon"), C(a, "class", "InfoCardPopupTitle"), C(h, "class", "InfoCardPopupCloseButton"), C(n, "class", "InfoCardPopupHeader"), C(f, "class", "InfoCardPopupContentArea"), C(r, "class", d = "InfoCardPopupWrapper " + /*isMobile*/
|
|
4350
4336
|
(e[5] ? "InfoCardPopupMobileWrapper" : "") + " " + /*iteminfoamount*/
|
|
4351
4337
|
(e[0] ? "InfoCardPopupLimitChanged" : "")), C(
|
|
4352
4338
|
t,
|
|
@@ -4356,7 +4342,7 @@ function Pt(e) {
|
|
|
4356
4342
|
);
|
|
4357
4343
|
},
|
|
4358
4344
|
m(x, w) {
|
|
4359
|
-
ie(x, 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,
|
|
4345
|
+
ie(x, 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, c), P(r, f), E.m(f, null), e[13](t), p || (v = br(h, "click", gr(
|
|
4360
4346
|
/*closeInfoPopup*/
|
|
4361
4347
|
e[6]
|
|
4362
4348
|
)), p = !0);
|
|
@@ -4364,17 +4350,17 @@ function Pt(e) {
|
|
|
4364
4350
|
p(x, w) {
|
|
4365
4351
|
w & /*$_*/
|
|
4366
4352
|
16 && s !== (s = /*$_*/
|
|
4367
|
-
x[4]("name") + "") &&
|
|
4353
|
+
x[4]("name") + "") && We(l, s), H === (H = S(x)) && E ? E.p(x, w) : (E.d(1), E = H(x), E && (E.c(), E.m(f, null))), w & /*iteminfoamount*/
|
|
4368
4354
|
1 && d !== (d = "InfoCardPopupWrapper " + /*isMobile*/
|
|
4369
4355
|
(x[5] ? "InfoCardPopupMobileWrapper" : "") + " " + /*iteminfoamount*/
|
|
4370
4356
|
(x[0] ? "InfoCardPopupLimitChanged" : "")) && C(r, "class", d);
|
|
4371
4357
|
},
|
|
4372
4358
|
d(x) {
|
|
4373
|
-
x && X(t), E.d(), e[13](null), p = !1,
|
|
4359
|
+
x && X(t), E.d(), e[13](null), p = !1, v();
|
|
4374
4360
|
}
|
|
4375
4361
|
};
|
|
4376
4362
|
}
|
|
4377
|
-
function
|
|
4363
|
+
function Vi(e) {
|
|
4378
4364
|
let t, r = (
|
|
4379
4365
|
/*$_*/
|
|
4380
4366
|
e[4]("defaultText") + ""
|
|
@@ -4389,14 +4375,14 @@ function Wi(e) {
|
|
|
4389
4375
|
p(i, o) {
|
|
4390
4376
|
o & /*$_*/
|
|
4391
4377
|
16 && r !== (r = /*$_*/
|
|
4392
|
-
i[4]("defaultText") + "") &&
|
|
4378
|
+
i[4]("defaultText") + "") && We(n, r);
|
|
4393
4379
|
},
|
|
4394
4380
|
d(i) {
|
|
4395
4381
|
i && X(t);
|
|
4396
4382
|
}
|
|
4397
4383
|
};
|
|
4398
4384
|
}
|
|
4399
|
-
function
|
|
4385
|
+
function zi(e) {
|
|
4400
4386
|
let t, r = (
|
|
4401
4387
|
/*$_*/
|
|
4402
4388
|
e[4]("amountChanged", {
|
|
@@ -4433,28 +4419,28 @@ function Xi(e) {
|
|
|
4433
4419
|
i[1]
|
|
4434
4420
|
)
|
|
4435
4421
|
}
|
|
4436
|
-
}) + "") &&
|
|
4422
|
+
}) + "") && We(n, r);
|
|
4437
4423
|
},
|
|
4438
4424
|
d(i) {
|
|
4439
4425
|
i && X(t);
|
|
4440
4426
|
}
|
|
4441
4427
|
};
|
|
4442
4428
|
}
|
|
4443
|
-
function
|
|
4429
|
+
function Wi(e) {
|
|
4444
4430
|
let t, r = (
|
|
4445
4431
|
/*showPopup*/
|
|
4446
|
-
e[3] &&
|
|
4432
|
+
e[3] && St(e)
|
|
4447
4433
|
);
|
|
4448
4434
|
return {
|
|
4449
4435
|
c() {
|
|
4450
|
-
r && r.c(), t =
|
|
4436
|
+
r && r.c(), t = mr();
|
|
4451
4437
|
},
|
|
4452
4438
|
m(n, i) {
|
|
4453
4439
|
r && r.m(n, i), ie(n, t, i);
|
|
4454
4440
|
},
|
|
4455
4441
|
p(n, [i]) {
|
|
4456
4442
|
/*showPopup*/
|
|
4457
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
4443
|
+
n[3] ? r ? r.p(n, i) : (r = St(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4458
4444
|
},
|
|
4459
4445
|
i: O,
|
|
4460
4446
|
o: O,
|
|
@@ -4463,23 +4449,23 @@ function qi(e) {
|
|
|
4463
4449
|
}
|
|
4464
4450
|
};
|
|
4465
4451
|
}
|
|
4466
|
-
function
|
|
4452
|
+
function Xi(e, t, r) {
|
|
4467
4453
|
let n;
|
|
4468
|
-
|
|
4469
|
-
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:
|
|
4470
|
-
const
|
|
4454
|
+
fr(e, $i, (m) => r(4, n = m));
|
|
4455
|
+
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: c } = t;
|
|
4456
|
+
const f = () => {
|
|
4471
4457
|
fetch(h).then((B) => B.json()).then((B) => {
|
|
4472
4458
|
Object.keys(B).forEach((Q) => {
|
|
4473
|
-
|
|
4459
|
+
Et(Q, B[Q]);
|
|
4474
4460
|
});
|
|
4475
4461
|
}).catch((B) => {
|
|
4476
4462
|
console.log(B);
|
|
4477
4463
|
});
|
|
4478
4464
|
};
|
|
4479
|
-
Object.keys(
|
|
4480
|
-
|
|
4465
|
+
Object.keys(Tt).forEach((m) => {
|
|
4466
|
+
Et(m, Tt[m]);
|
|
4481
4467
|
});
|
|
4482
|
-
let d = !1, p,
|
|
4468
|
+
let d = !1, p, v = window.navigator.userAgent, S = Ui(v) !== "PC";
|
|
4483
4469
|
const H = () => {
|
|
4484
4470
|
r(3, d = !1), window.postMessage(
|
|
4485
4471
|
{
|
|
@@ -4490,25 +4476,25 @@ function Zi(e, t, r) {
|
|
|
4490
4476
|
}, E = (m) => {
|
|
4491
4477
|
m.data && m.data.type == "ClosePlayerAccountGamingLimitsPopup" && r(3, d = !1);
|
|
4492
4478
|
}, x = () => {
|
|
4493
|
-
|
|
4479
|
+
Gi(a), o < 0 && r(0, o = "0"), r(3, d = i);
|
|
4494
4480
|
};
|
|
4495
|
-
|
|
4481
|
+
_r(() => (window.addEventListener("message", E, !1), () => {
|
|
4496
4482
|
window.removeEventListener("message", E);
|
|
4497
4483
|
}));
|
|
4498
4484
|
function w(m) {
|
|
4499
|
-
|
|
4485
|
+
Be[m ? "unshift" : "push"](() => {
|
|
4500
4486
|
p = m, r(2, p);
|
|
4501
4487
|
});
|
|
4502
4488
|
}
|
|
4503
4489
|
return e.$$set = (m) => {
|
|
4504
|
-
"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,
|
|
4490
|
+
"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, c = m.mbsource);
|
|
4505
4491
|
}, e.$$.update = () => {
|
|
4506
4492
|
e.$$.dirty & /*showpopup, lang*/
|
|
4507
4493
|
384 && i && a && x(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4508
|
-
516 && l && p &&
|
|
4509
|
-
1028 && u && p &&
|
|
4510
|
-
4100 &&
|
|
4511
|
-
2048 && h &&
|
|
4494
|
+
516 && l && p && Di(p, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4495
|
+
1028 && u && p && Fi(p, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4496
|
+
4100 && c && p && ji(p, `${c}.Style`), e.$$.dirty & /*translationurl*/
|
|
4497
|
+
2048 && h && f();
|
|
4512
4498
|
}, [
|
|
4513
4499
|
o,
|
|
4514
4500
|
s,
|
|
@@ -4522,18 +4508,18 @@ function Zi(e, t, r) {
|
|
|
4522
4508
|
l,
|
|
4523
4509
|
u,
|
|
4524
4510
|
h,
|
|
4525
|
-
|
|
4511
|
+
c,
|
|
4526
4512
|
w
|
|
4527
4513
|
];
|
|
4528
4514
|
}
|
|
4529
|
-
class
|
|
4515
|
+
class qi extends Lr {
|
|
4530
4516
|
constructor(t) {
|
|
4531
|
-
super(),
|
|
4517
|
+
super(), Ar(
|
|
4532
4518
|
this,
|
|
4533
4519
|
t,
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4520
|
+
Xi,
|
|
4521
|
+
Wi,
|
|
4522
|
+
Pt,
|
|
4537
4523
|
{
|
|
4538
4524
|
showpopup: 7,
|
|
4539
4525
|
iteminfoamount: 0,
|
|
@@ -4544,7 +4530,7 @@ class Yi extends Rr {
|
|
|
4544
4530
|
translationurl: 11,
|
|
4545
4531
|
mbsource: 12
|
|
4546
4532
|
},
|
|
4547
|
-
|
|
4533
|
+
ki
|
|
4548
4534
|
);
|
|
4549
4535
|
}
|
|
4550
4536
|
get showpopup() {
|
|
@@ -4596,7 +4582,7 @@ class Yi extends Rr {
|
|
|
4596
4582
|
this.$$set({ mbsource: t }), L();
|
|
4597
4583
|
}
|
|
4598
4584
|
}
|
|
4599
|
-
|
|
4585
|
+
Or(qi, { showpopup: {}, iteminfoamount: {}, lang: {}, currency: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4600
4586
|
export {
|
|
4601
|
-
|
|
4587
|
+
qi as default
|
|
4602
4588
|
};
|