@everymatrix/player-transaction-history 1.59.0 → 1.59.2
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/{PlayerTransactionHistory-Cfl0jIem.js → PlayerTransactionHistory-3tjW-F8R.js} +515 -493
- package/components/PlayerTransactionHistory-CCwq95M1.cjs +18 -0
- package/components/{PlayerTransactionHistory-wghwAMJG.js → PlayerTransactionHistory-eDuMWpoa.js} +502 -480
- package/es2015/player-transaction-history.cjs +1 -1
- package/es2015/player-transaction-history.js +1 -1
- package/esnext/player-transaction-history.js +1 -1
- package/package.json +3 -2
- package/components/PlayerTransactionHistory-ZmMf0XML.cjs +0 -18
package/components/{PlayerTransactionHistory-wghwAMJG.js → PlayerTransactionHistory-eDuMWpoa.js}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function w() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function St(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function et() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function se(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(St);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ze(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function wt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let he;
|
|
19
|
-
function
|
|
19
|
+
function tt(e, t) {
|
|
20
20
|
return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function sr(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Bt(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function Ht(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function ar(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Bt(t, r));
|
|
36
36
|
}
|
|
37
37
|
function x(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function ur(e, t, r) {
|
|
41
|
+
const n = hr(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
43
|
const i = I("style");
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, lr(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function hr(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,7 +54,7 @@ function or(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function lr(e, t) {
|
|
58
58
|
return x(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
@@ -76,23 +76,23 @@ function G(e) {
|
|
|
76
76
|
function re(e) {
|
|
77
77
|
return document.createTextNode(e);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Ie() {
|
|
80
80
|
return re(" ");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function cr(e, t, r, n) {
|
|
83
83
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
84
84
|
}
|
|
85
85
|
function E(e, t, r) {
|
|
86
86
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function fr(e) {
|
|
89
89
|
return Array.from(e.childNodes);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function qe(e, t) {
|
|
92
92
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
93
93
|
t);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function pr(e) {
|
|
96
96
|
const t = {};
|
|
97
97
|
return e.childNodes.forEach(
|
|
98
98
|
/** @param {Element} node */
|
|
@@ -105,22 +105,22 @@ let ne;
|
|
|
105
105
|
function te(e) {
|
|
106
106
|
ne = e;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function mr() {
|
|
109
109
|
if (!ne)
|
|
110
110
|
throw new Error("Function called outside component initialization");
|
|
111
111
|
return ne;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
113
|
+
function dr(e) {
|
|
114
|
+
mr().$$.on_mount.push(e);
|
|
115
115
|
}
|
|
116
|
-
const k = [],
|
|
116
|
+
const k = [], Ne = [];
|
|
117
117
|
let V = [];
|
|
118
|
-
const
|
|
119
|
-
let
|
|
120
|
-
function
|
|
121
|
-
|
|
118
|
+
const rt = [], br = /* @__PURE__ */ Promise.resolve();
|
|
119
|
+
let Le = !1;
|
|
120
|
+
function yr() {
|
|
121
|
+
Le || (Le = !0, br.then(B));
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Ce(e) {
|
|
124
124
|
V.push(e);
|
|
125
125
|
}
|
|
126
126
|
const Te = /* @__PURE__ */ new Set();
|
|
@@ -133,53 +133,53 @@ function B() {
|
|
|
133
133
|
try {
|
|
134
134
|
for (; F < k.length; ) {
|
|
135
135
|
const t = k[F];
|
|
136
|
-
F++, te(t),
|
|
136
|
+
F++, te(t), gr(t.$$);
|
|
137
137
|
}
|
|
138
138
|
} catch (t) {
|
|
139
139
|
throw k.length = 0, F = 0, t;
|
|
140
140
|
}
|
|
141
|
-
for (te(null), k.length = 0, F = 0;
|
|
142
|
-
|
|
141
|
+
for (te(null), k.length = 0, F = 0; Ne.length; )
|
|
142
|
+
Ne.pop()();
|
|
143
143
|
for (let t = 0; t < V.length; t += 1) {
|
|
144
144
|
const r = V[t];
|
|
145
145
|
Te.has(r) || (Te.add(r), r());
|
|
146
146
|
}
|
|
147
147
|
V.length = 0;
|
|
148
148
|
} while (k.length);
|
|
149
|
-
for (;
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
for (; rt.length; )
|
|
150
|
+
rt.pop()();
|
|
151
|
+
Le = !1, Te.clear(), te(e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function gr(e) {
|
|
154
154
|
if (e.fragment !== null) {
|
|
155
155
|
e.update(), se(e.before_update);
|
|
156
156
|
const t = e.dirty;
|
|
157
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
157
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ce);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function vr(e) {
|
|
161
161
|
const t = [], r = [];
|
|
162
162
|
V.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), V = t;
|
|
163
163
|
}
|
|
164
|
-
const
|
|
165
|
-
function
|
|
166
|
-
e && e.i && (
|
|
164
|
+
const _r = /* @__PURE__ */ new Set();
|
|
165
|
+
function Er(e, t) {
|
|
166
|
+
e && e.i && (_r.delete(e), e.i(t));
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function xr(e, t, r) {
|
|
169
169
|
const { fragment: n, after_update: i } = e.$$;
|
|
170
|
-
n && n.m(t, r),
|
|
171
|
-
const o = e.$$.on_mount.map(
|
|
170
|
+
n && n.m(t, r), Ce(() => {
|
|
171
|
+
const o = e.$$.on_mount.map(St).filter(Ze);
|
|
172
172
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
|
|
173
|
-
}), i.forEach(
|
|
173
|
+
}), i.forEach(Ce);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function Tr(e, t) {
|
|
176
176
|
const r = e.$$;
|
|
177
|
-
r.fragment !== null && (
|
|
177
|
+
r.fragment !== null && (vr(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
e.$$.dirty[0] === -1 && (k.push(e),
|
|
179
|
+
function Hr(e, t) {
|
|
180
|
+
e.$$.dirty[0] === -1 && (k.push(e), yr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Sr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
183
183
|
const l = ne;
|
|
184
184
|
te(e);
|
|
185
185
|
const u = e.$$ = {
|
|
@@ -189,7 +189,7 @@ function Er(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
189
189
|
props: o,
|
|
190
190
|
update: w,
|
|
191
191
|
not_equal: i,
|
|
192
|
-
bound:
|
|
192
|
+
bound: et(),
|
|
193
193
|
// lifecycle
|
|
194
194
|
on_mount: [],
|
|
195
195
|
on_destroy: [],
|
|
@@ -198,7 +198,7 @@ function Er(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
198
198
|
after_update: [],
|
|
199
199
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
200
200
|
// everything else
|
|
201
|
-
callbacks:
|
|
201
|
+
callbacks: et(),
|
|
202
202
|
dirty: s,
|
|
203
203
|
skip_bound: !1,
|
|
204
204
|
root: t.target || l.$$.root
|
|
@@ -207,19 +207,19 @@ function Er(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
207
207
|
let h = !1;
|
|
208
208
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
209
209
|
const v = p.length ? p[0] : f;
|
|
210
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = v) && (!u.skip_bound && u.bound[c] && u.bound[c](v), h &&
|
|
210
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = v) && (!u.skip_bound && u.bound[c] && u.bound[c](v), h && Hr(e, c)), f;
|
|
211
211
|
}) : [], u.update(), h = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
212
212
|
if (t.hydrate) {
|
|
213
|
-
const c =
|
|
213
|
+
const c = fr(t.target);
|
|
214
214
|
u.fragment && u.fragment.l(c), c.forEach(Q);
|
|
215
215
|
} else
|
|
216
216
|
u.fragment && u.fragment.c();
|
|
217
|
-
t.intro &&
|
|
217
|
+
t.intro && Er(e.$$.fragment), xr(e, t.target, t.anchor), B();
|
|
218
218
|
}
|
|
219
219
|
te(l);
|
|
220
220
|
}
|
|
221
|
-
let
|
|
222
|
-
typeof HTMLElement == "function" && (
|
|
221
|
+
let At;
|
|
222
|
+
typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
223
223
|
/** The Svelte component constructor */
|
|
224
224
|
$$ctor;
|
|
225
225
|
/** Slots */
|
|
@@ -278,7 +278,7 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
278
278
|
};
|
|
279
279
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
280
280
|
return;
|
|
281
|
-
const t = {}, r =
|
|
281
|
+
const t = {}, r = pr(this);
|
|
282
282
|
for (const i of this.$$s)
|
|
283
283
|
i in r && (t[i] = [e(i)]);
|
|
284
284
|
for (const i of this.attributes) {
|
|
@@ -365,8 +365,8 @@ function fe(e, t, r, n) {
|
|
|
365
365
|
return t;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
let a = class extends
|
|
368
|
+
function wr(e, t, r, n, i, o) {
|
|
369
|
+
let a = class extends At {
|
|
370
370
|
constructor() {
|
|
371
371
|
super(e, r, i), this.$$p_d = t;
|
|
372
372
|
}
|
|
@@ -394,7 +394,7 @@ function xr(e, t, r, n, i, o) {
|
|
|
394
394
|
}), e.element = /** @type {any} */
|
|
395
395
|
a, a;
|
|
396
396
|
}
|
|
397
|
-
class
|
|
397
|
+
class Br {
|
|
398
398
|
/**
|
|
399
399
|
* ### PRIVATE API
|
|
400
400
|
*
|
|
@@ -413,7 +413,7 @@ class Tr {
|
|
|
413
413
|
$$set = void 0;
|
|
414
414
|
/** @returns {void} */
|
|
415
415
|
$destroy() {
|
|
416
|
-
|
|
416
|
+
Tr(this, 1), this.$destroy = w;
|
|
417
417
|
}
|
|
418
418
|
/**
|
|
419
419
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -422,7 +422,7 @@ class Tr {
|
|
|
422
422
|
* @returns {() => void}
|
|
423
423
|
*/
|
|
424
424
|
$on(t, r) {
|
|
425
|
-
if (!
|
|
425
|
+
if (!Ze(r))
|
|
426
426
|
return w;
|
|
427
427
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
428
428
|
return n.push(r), () => {
|
|
@@ -435,11 +435,11 @@ class Tr {
|
|
|
435
435
|
* @returns {void}
|
|
436
436
|
*/
|
|
437
437
|
$set(t) {
|
|
438
|
-
this.$$set && !
|
|
438
|
+
this.$$set && !sr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
-
const
|
|
442
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
441
|
+
const Ar = "4";
|
|
442
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ar);
|
|
443
443
|
/*! *****************************************************************************
|
|
444
444
|
Copyright (c) Microsoft Corporation.
|
|
445
445
|
|
|
@@ -454,18 +454,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
454
454
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
455
455
|
PERFORMANCE OF THIS SOFTWARE.
|
|
456
456
|
***************************************************************************** */
|
|
457
|
-
var
|
|
458
|
-
return
|
|
457
|
+
var Me = function(e, t) {
|
|
458
|
+
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
459
459
|
r.__proto__ = n;
|
|
460
460
|
} || function(r, n) {
|
|
461
461
|
for (var i in n)
|
|
462
462
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
463
|
-
},
|
|
463
|
+
}, Me(e, t);
|
|
464
464
|
};
|
|
465
465
|
function N(e, t) {
|
|
466
466
|
if (typeof t != "function" && t !== null)
|
|
467
467
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
468
|
-
|
|
468
|
+
Me(e, t);
|
|
469
469
|
function r() {
|
|
470
470
|
this.constructor = e;
|
|
471
471
|
}
|
|
@@ -481,7 +481,7 @@ var y = function() {
|
|
|
481
481
|
return t;
|
|
482
482
|
}, y.apply(this, arguments);
|
|
483
483
|
};
|
|
484
|
-
function
|
|
484
|
+
function Pr(e, t) {
|
|
485
485
|
var r = {};
|
|
486
486
|
for (var n in e)
|
|
487
487
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -490,7 +490,7 @@ function Sr(e, t) {
|
|
|
490
490
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
491
491
|
return r;
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function $e(e) {
|
|
494
494
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
495
495
|
if (r)
|
|
496
496
|
return r.call(e);
|
|
@@ -502,7 +502,7 @@ function Me(e) {
|
|
|
502
502
|
};
|
|
503
503
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function Re(e, t) {
|
|
506
506
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
507
507
|
if (!r)
|
|
508
508
|
return e;
|
|
@@ -531,13 +531,13 @@ function X(e, t, r) {
|
|
|
531
531
|
function O(e) {
|
|
532
532
|
return typeof e == "function";
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function Pt(e) {
|
|
535
535
|
var t = function(n) {
|
|
536
536
|
Error.call(n), n.stack = new Error().stack;
|
|
537
537
|
}, r = e(t);
|
|
538
538
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
539
539
|
}
|
|
540
|
-
var He =
|
|
540
|
+
var He = Pt(function(e) {
|
|
541
541
|
return function(r) {
|
|
542
542
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
543
543
|
` + r.map(function(n, i) {
|
|
@@ -546,7 +546,7 @@ var He = wt(function(e) {
|
|
|
546
546
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
547
547
|
};
|
|
548
548
|
});
|
|
549
|
-
function
|
|
549
|
+
function Ue(e, t) {
|
|
550
550
|
if (e) {
|
|
551
551
|
var r = e.indexOf(t);
|
|
552
552
|
0 <= r && e.splice(r, 1);
|
|
@@ -564,7 +564,7 @@ var ge = function() {
|
|
|
564
564
|
if (a)
|
|
565
565
|
if (this._parentage = null, Array.isArray(a))
|
|
566
566
|
try {
|
|
567
|
-
for (var s =
|
|
567
|
+
for (var s = $e(a), l = s.next(); !l.done; l = s.next()) {
|
|
568
568
|
var u = l.value;
|
|
569
569
|
u.remove(this);
|
|
570
570
|
}
|
|
@@ -591,12 +591,12 @@ var ge = function() {
|
|
|
591
591
|
if (c) {
|
|
592
592
|
this._finalizers = null;
|
|
593
593
|
try {
|
|
594
|
-
for (var f =
|
|
594
|
+
for (var f = $e(c), p = f.next(); !p.done; p = f.next()) {
|
|
595
595
|
var v = p.value;
|
|
596
596
|
try {
|
|
597
|
-
|
|
597
|
+
nt(v);
|
|
598
598
|
} catch (m) {
|
|
599
|
-
o = o ?? [], m instanceof He ? o = X(X([],
|
|
599
|
+
o = o ?? [], m instanceof He ? o = X(X([], Re(o)), Re(m.errors)) : o.push(m);
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
602
|
} catch (m) {
|
|
@@ -617,7 +617,7 @@ var ge = function() {
|
|
|
617
617
|
var r;
|
|
618
618
|
if (t && t !== this)
|
|
619
619
|
if (this.closed)
|
|
620
|
-
|
|
620
|
+
nt(t);
|
|
621
621
|
else {
|
|
622
622
|
if (t instanceof e) {
|
|
623
623
|
if (t.closed || t._hasParent(this))
|
|
@@ -634,52 +634,56 @@ var ge = function() {
|
|
|
634
634
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
635
635
|
}, e.prototype._removeParent = function(t) {
|
|
636
636
|
var r = this._parentage;
|
|
637
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
637
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
|
|
638
638
|
}, e.prototype.remove = function(t) {
|
|
639
639
|
var r = this._finalizers;
|
|
640
|
-
r &&
|
|
640
|
+
r && Ue(r, t), t instanceof e && t._removeParent(this);
|
|
641
641
|
}, e.EMPTY = function() {
|
|
642
642
|
var t = new e();
|
|
643
643
|
return t.closed = !0, t;
|
|
644
644
|
}(), e;
|
|
645
|
-
}(),
|
|
646
|
-
function
|
|
645
|
+
}(), Ot = ge.EMPTY;
|
|
646
|
+
function It(e) {
|
|
647
647
|
return e instanceof ge || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function nt(e) {
|
|
650
650
|
O(e) ? e() : e.unsubscribe();
|
|
651
651
|
}
|
|
652
|
-
var
|
|
653
|
-
|
|
654
|
-
|
|
652
|
+
var Nt = {
|
|
653
|
+
onUnhandledError: null,
|
|
654
|
+
onStoppedNotification: null,
|
|
655
|
+
Promise: void 0,
|
|
656
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
657
|
+
useDeprecatedNextContext: !1
|
|
658
|
+
}, Or = {
|
|
655
659
|
setTimeout: function(e, t) {
|
|
656
660
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
657
661
|
r[n - 2] = arguments[n];
|
|
658
|
-
return setTimeout.apply(void 0, X([e, t],
|
|
662
|
+
return setTimeout.apply(void 0, X([e, t], Re(r)));
|
|
659
663
|
},
|
|
660
664
|
clearTimeout: function(e) {
|
|
661
665
|
return clearTimeout(e);
|
|
662
666
|
},
|
|
663
667
|
delegate: void 0
|
|
664
668
|
};
|
|
665
|
-
function
|
|
666
|
-
|
|
669
|
+
function Ir(e) {
|
|
670
|
+
Or.setTimeout(function() {
|
|
667
671
|
throw e;
|
|
668
672
|
});
|
|
669
673
|
}
|
|
670
|
-
function
|
|
674
|
+
function it() {
|
|
671
675
|
}
|
|
672
676
|
function pe(e) {
|
|
673
677
|
e();
|
|
674
678
|
}
|
|
675
|
-
var
|
|
679
|
+
var Lt = function(e) {
|
|
676
680
|
N(t, e);
|
|
677
681
|
function t(r) {
|
|
678
682
|
var n = e.call(this) || this;
|
|
679
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
683
|
+
return n.isStopped = !1, r ? (n.destination = r, It(r) && r.add(n)) : n.destination = Mr, n;
|
|
680
684
|
}
|
|
681
685
|
return t.create = function(r, n, i) {
|
|
682
|
-
return new
|
|
686
|
+
return new De(r, n, i);
|
|
683
687
|
}, t.prototype.next = function(r) {
|
|
684
688
|
this.isStopped || this._next(r);
|
|
685
689
|
}, t.prototype.error = function(r) {
|
|
@@ -703,7 +707,11 @@ var Pt = function(e) {
|
|
|
703
707
|
this.unsubscribe();
|
|
704
708
|
}
|
|
705
709
|
}, t;
|
|
706
|
-
}(ge),
|
|
710
|
+
}(ge), Nr = Function.prototype.bind;
|
|
711
|
+
function Se(e, t) {
|
|
712
|
+
return Nr.call(e, t);
|
|
713
|
+
}
|
|
714
|
+
var Lr = function() {
|
|
707
715
|
function e(t) {
|
|
708
716
|
this.partialObserver = t;
|
|
709
717
|
}
|
|
@@ -734,43 +742,55 @@ var Pt = function(e) {
|
|
|
734
742
|
le(r);
|
|
735
743
|
}
|
|
736
744
|
}, e;
|
|
737
|
-
}(),
|
|
745
|
+
}(), De = function(e) {
|
|
738
746
|
N(t, e);
|
|
739
747
|
function t(r, n, i) {
|
|
740
748
|
var o = e.call(this) || this, a;
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
749
|
+
if (O(r) || !r)
|
|
750
|
+
a = {
|
|
751
|
+
next: r ?? void 0,
|
|
752
|
+
error: n ?? void 0,
|
|
753
|
+
complete: i ?? void 0
|
|
754
|
+
};
|
|
755
|
+
else {
|
|
756
|
+
var s;
|
|
757
|
+
o && Nt.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
758
|
+
return o.unsubscribe();
|
|
759
|
+
}, a = {
|
|
760
|
+
next: r.next && Se(r.next, s),
|
|
761
|
+
error: r.error && Se(r.error, s),
|
|
762
|
+
complete: r.complete && Se(r.complete, s)
|
|
763
|
+
}) : a = r;
|
|
764
|
+
}
|
|
765
|
+
return o.destination = new Lr(a), o;
|
|
746
766
|
}
|
|
747
767
|
return t;
|
|
748
|
-
}(
|
|
768
|
+
}(Lt);
|
|
749
769
|
function le(e) {
|
|
750
|
-
|
|
770
|
+
Ir(e);
|
|
751
771
|
}
|
|
752
|
-
function
|
|
772
|
+
function Cr(e) {
|
|
753
773
|
throw e;
|
|
754
774
|
}
|
|
755
|
-
var
|
|
775
|
+
var Mr = {
|
|
756
776
|
closed: !0,
|
|
757
|
-
next:
|
|
758
|
-
error:
|
|
759
|
-
complete:
|
|
760
|
-
},
|
|
777
|
+
next: it,
|
|
778
|
+
error: Cr,
|
|
779
|
+
complete: it
|
|
780
|
+
}, $r = function() {
|
|
761
781
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
762
782
|
}();
|
|
763
|
-
function
|
|
783
|
+
function Rr(e) {
|
|
764
784
|
return e;
|
|
765
785
|
}
|
|
766
|
-
function
|
|
767
|
-
return e.length === 0 ?
|
|
786
|
+
function Ur(e) {
|
|
787
|
+
return e.length === 0 ? Rr : e.length === 1 ? e[0] : function(r) {
|
|
768
788
|
return e.reduce(function(n, i) {
|
|
769
789
|
return i(n);
|
|
770
790
|
}, r);
|
|
771
791
|
};
|
|
772
792
|
}
|
|
773
|
-
var
|
|
793
|
+
var ot = function() {
|
|
774
794
|
function e(t) {
|
|
775
795
|
t && (this._subscribe = t);
|
|
776
796
|
}
|
|
@@ -778,7 +798,7 @@ var rt = function() {
|
|
|
778
798
|
var r = new e();
|
|
779
799
|
return r.source = this, r.operator = t, r;
|
|
780
800
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
781
|
-
var i = this, o =
|
|
801
|
+
var i = this, o = Gr(t) ? t : new De(t, r, n);
|
|
782
802
|
return pe(function() {
|
|
783
803
|
var a = i, s = a.operator, l = a.source;
|
|
784
804
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -791,8 +811,8 @@ var rt = function() {
|
|
|
791
811
|
}
|
|
792
812
|
}, e.prototype.forEach = function(t, r) {
|
|
793
813
|
var n = this;
|
|
794
|
-
return r =
|
|
795
|
-
var a = new
|
|
814
|
+
return r = st(r), new r(function(i, o) {
|
|
815
|
+
var a = new De({
|
|
796
816
|
next: function(s) {
|
|
797
817
|
try {
|
|
798
818
|
t(s);
|
|
@@ -808,15 +828,15 @@ var rt = function() {
|
|
|
808
828
|
}, e.prototype._subscribe = function(t) {
|
|
809
829
|
var r;
|
|
810
830
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
811
|
-
}, e.prototype[
|
|
831
|
+
}, e.prototype[$r] = function() {
|
|
812
832
|
return this;
|
|
813
833
|
}, e.prototype.pipe = function() {
|
|
814
834
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
815
835
|
t[r] = arguments[r];
|
|
816
|
-
return
|
|
836
|
+
return Ur(t)(this);
|
|
817
837
|
}, e.prototype.toPromise = function(t) {
|
|
818
838
|
var r = this;
|
|
819
|
-
return t =
|
|
839
|
+
return t = st(t), new t(function(n, i) {
|
|
820
840
|
var o;
|
|
821
841
|
r.subscribe(function(a) {
|
|
822
842
|
return o = a;
|
|
@@ -830,32 +850,32 @@ var rt = function() {
|
|
|
830
850
|
return new e(t);
|
|
831
851
|
}, e;
|
|
832
852
|
}();
|
|
833
|
-
function
|
|
853
|
+
function st(e) {
|
|
834
854
|
var t;
|
|
835
|
-
return (t = e ??
|
|
855
|
+
return (t = e ?? Nt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
836
856
|
}
|
|
837
|
-
function
|
|
857
|
+
function Dr(e) {
|
|
838
858
|
return e && O(e.next) && O(e.error) && O(e.complete);
|
|
839
859
|
}
|
|
840
|
-
function
|
|
841
|
-
return e && e instanceof
|
|
860
|
+
function Gr(e) {
|
|
861
|
+
return e && e instanceof Lt || Dr(e) && It(e);
|
|
842
862
|
}
|
|
843
|
-
var
|
|
863
|
+
var Fr = Pt(function(e) {
|
|
844
864
|
return function() {
|
|
845
865
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
846
866
|
};
|
|
847
|
-
}),
|
|
867
|
+
}), Ct = function(e) {
|
|
848
868
|
N(t, e);
|
|
849
869
|
function t() {
|
|
850
870
|
var r = e.call(this) || this;
|
|
851
871
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
852
872
|
}
|
|
853
873
|
return t.prototype.lift = function(r) {
|
|
854
|
-
var n = new
|
|
874
|
+
var n = new at(this, this);
|
|
855
875
|
return n.operator = r, n;
|
|
856
876
|
}, t.prototype._throwIfClosed = function() {
|
|
857
877
|
if (this.closed)
|
|
858
|
-
throw new
|
|
878
|
+
throw new Fr();
|
|
859
879
|
}, t.prototype.next = function(r) {
|
|
860
880
|
var n = this;
|
|
861
881
|
pe(function() {
|
|
@@ -863,7 +883,7 @@ var Rr = wt(function(e) {
|
|
|
863
883
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
864
884
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
865
885
|
try {
|
|
866
|
-
for (var a =
|
|
886
|
+
for (var a = $e(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
867
887
|
var l = s.value;
|
|
868
888
|
l.next(r);
|
|
869
889
|
}
|
|
@@ -912,19 +932,19 @@ var Rr = wt(function(e) {
|
|
|
912
932
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
913
933
|
}, t.prototype._innerSubscribe = function(r) {
|
|
914
934
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
915
|
-
return o || a ?
|
|
916
|
-
n.currentObservers = null,
|
|
935
|
+
return o || a ? Ot : (this.currentObservers = null, s.push(r), new ge(function() {
|
|
936
|
+
n.currentObservers = null, Ue(s, r);
|
|
917
937
|
}));
|
|
918
938
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
919
939
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
920
940
|
i ? r.error(o) : a && r.complete();
|
|
921
941
|
}, t.prototype.asObservable = function() {
|
|
922
|
-
var r = new
|
|
942
|
+
var r = new ot();
|
|
923
943
|
return r.source = this, r;
|
|
924
944
|
}, t.create = function(r, n) {
|
|
925
|
-
return new
|
|
945
|
+
return new at(r, n);
|
|
926
946
|
}, t;
|
|
927
|
-
}(
|
|
947
|
+
}(ot), at = function(e) {
|
|
928
948
|
N(t, e);
|
|
929
949
|
function t(r, n) {
|
|
930
950
|
var i = e.call(this) || this;
|
|
@@ -941,17 +961,17 @@ var Rr = wt(function(e) {
|
|
|
941
961
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
942
962
|
}, t.prototype._subscribe = function(r) {
|
|
943
963
|
var n, i;
|
|
944
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
964
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ot;
|
|
945
965
|
}, t;
|
|
946
|
-
}(
|
|
966
|
+
}(Ct), Mt = {
|
|
947
967
|
now: function() {
|
|
948
|
-
return (
|
|
968
|
+
return (Mt.delegate || Date).now();
|
|
949
969
|
},
|
|
950
970
|
delegate: void 0
|
|
951
|
-
},
|
|
971
|
+
}, jr = function(e) {
|
|
952
972
|
N(t, e);
|
|
953
973
|
function t(r, n, i) {
|
|
954
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
974
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Mt);
|
|
955
975
|
var o = e.call(this) || this;
|
|
956
976
|
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;
|
|
957
977
|
}
|
|
@@ -971,15 +991,15 @@ var Rr = wt(function(e) {
|
|
|
971
991
|
u && o.splice(0, u + 1);
|
|
972
992
|
}
|
|
973
993
|
}, t;
|
|
974
|
-
}(
|
|
975
|
-
const
|
|
976
|
-
if (
|
|
977
|
-
const r = new
|
|
978
|
-
|
|
994
|
+
}(Ct);
|
|
995
|
+
const ut = [], ht = {}, kr = (e, t = 0) => {
|
|
996
|
+
if (ut.indexOf(e) == -1) {
|
|
997
|
+
const r = new jr(t);
|
|
998
|
+
ht[e] = r, ut.push(e);
|
|
979
999
|
}
|
|
980
|
-
return
|
|
1000
|
+
return ht[e];
|
|
981
1001
|
}, j = [];
|
|
982
|
-
function
|
|
1002
|
+
function Vr(e, t) {
|
|
983
1003
|
return {
|
|
984
1004
|
subscribe: ve(e, t).subscribe
|
|
985
1005
|
};
|
|
@@ -988,7 +1008,7 @@ function ve(e, t = w) {
|
|
|
988
1008
|
let r;
|
|
989
1009
|
const n = /* @__PURE__ */ new Set();
|
|
990
1010
|
function i(s) {
|
|
991
|
-
if (
|
|
1011
|
+
if (wt(e, s) && (e = s, r)) {
|
|
992
1012
|
const l = !j.length;
|
|
993
1013
|
for (const u of n)
|
|
994
1014
|
u[1](), j.push(u, e);
|
|
@@ -1015,7 +1035,7 @@ function J(e, t, r) {
|
|
|
1015
1035
|
if (!i.every(Boolean))
|
|
1016
1036
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1017
1037
|
const o = t.length < 2;
|
|
1018
|
-
return
|
|
1038
|
+
return Vr(r, (a, s) => {
|
|
1019
1039
|
let l = !1;
|
|
1020
1040
|
const u = [];
|
|
1021
1041
|
let h = 0, c = w;
|
|
@@ -1024,9 +1044,9 @@ function J(e, t, r) {
|
|
|
1024
1044
|
return;
|
|
1025
1045
|
c();
|
|
1026
1046
|
const v = t(n ? u[0] : u, a, s);
|
|
1027
|
-
o ? a(v) : c =
|
|
1047
|
+
o ? a(v) : c = Ze(v) ? v : w;
|
|
1028
1048
|
}, p = i.map(
|
|
1029
|
-
(v, m) =>
|
|
1049
|
+
(v, m) => Bt(
|
|
1030
1050
|
v,
|
|
1031
1051
|
(T) => {
|
|
1032
1052
|
u[m] = T, h &= ~(1 << m), l && f();
|
|
@@ -1041,70 +1061,70 @@ function J(e, t, r) {
|
|
|
1041
1061
|
};
|
|
1042
1062
|
});
|
|
1043
1063
|
}
|
|
1044
|
-
function
|
|
1064
|
+
function Xr(e) {
|
|
1045
1065
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1046
1066
|
}
|
|
1047
|
-
var
|
|
1048
|
-
return
|
|
1067
|
+
var Wr = function(t) {
|
|
1068
|
+
return zr(t) && !Zr(t);
|
|
1049
1069
|
};
|
|
1050
|
-
function
|
|
1070
|
+
function zr(e) {
|
|
1051
1071
|
return !!e && typeof e == "object";
|
|
1052
1072
|
}
|
|
1053
|
-
function
|
|
1073
|
+
function Zr(e) {
|
|
1054
1074
|
var t = Object.prototype.toString.call(e);
|
|
1055
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1075
|
+
return t === "[object RegExp]" || t === "[object Date]" || Jr(e);
|
|
1056
1076
|
}
|
|
1057
|
-
var
|
|
1058
|
-
function
|
|
1059
|
-
return e.$$typeof ===
|
|
1077
|
+
var qr = typeof Symbol == "function" && Symbol.for, Qr = qr ? Symbol.for("react.element") : 60103;
|
|
1078
|
+
function Jr(e) {
|
|
1079
|
+
return e.$$typeof === Qr;
|
|
1060
1080
|
}
|
|
1061
|
-
function
|
|
1081
|
+
function Yr(e) {
|
|
1062
1082
|
return Array.isArray(e) ? [] : {};
|
|
1063
1083
|
}
|
|
1064
1084
|
function ie(e, t) {
|
|
1065
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? W(
|
|
1085
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? W(Yr(e), e, t) : e;
|
|
1066
1086
|
}
|
|
1067
|
-
function
|
|
1087
|
+
function Kr(e, t, r) {
|
|
1068
1088
|
return e.concat(t).map(function(n) {
|
|
1069
1089
|
return ie(n, r);
|
|
1070
1090
|
});
|
|
1071
1091
|
}
|
|
1072
|
-
function
|
|
1092
|
+
function en(e, t) {
|
|
1073
1093
|
if (!t.customMerge)
|
|
1074
1094
|
return W;
|
|
1075
1095
|
var r = t.customMerge(e);
|
|
1076
1096
|
return typeof r == "function" ? r : W;
|
|
1077
1097
|
}
|
|
1078
|
-
function
|
|
1098
|
+
function tn(e) {
|
|
1079
1099
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1080
1100
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1081
1101
|
}) : [];
|
|
1082
1102
|
}
|
|
1083
|
-
function
|
|
1084
|
-
return Object.keys(e).concat(
|
|
1103
|
+
function lt(e) {
|
|
1104
|
+
return Object.keys(e).concat(tn(e));
|
|
1085
1105
|
}
|
|
1086
|
-
function
|
|
1106
|
+
function $t(e, t) {
|
|
1087
1107
|
try {
|
|
1088
1108
|
return t in e;
|
|
1089
1109
|
} catch {
|
|
1090
1110
|
return !1;
|
|
1091
1111
|
}
|
|
1092
1112
|
}
|
|
1093
|
-
function
|
|
1094
|
-
return
|
|
1113
|
+
function rn(e, t) {
|
|
1114
|
+
return $t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1095
1115
|
}
|
|
1096
|
-
function
|
|
1116
|
+
function nn(e, t, r) {
|
|
1097
1117
|
var n = {};
|
|
1098
|
-
return r.isMergeableObject(e) &&
|
|
1118
|
+
return r.isMergeableObject(e) && lt(e).forEach(function(i) {
|
|
1099
1119
|
n[i] = ie(e[i], r);
|
|
1100
|
-
}),
|
|
1101
|
-
|
|
1120
|
+
}), lt(t).forEach(function(i) {
|
|
1121
|
+
rn(e, i) || ($t(e, i) && r.isMergeableObject(t[i]) ? n[i] = en(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
1102
1122
|
}), n;
|
|
1103
1123
|
}
|
|
1104
1124
|
function W(e, t, r) {
|
|
1105
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1125
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Kr, r.isMergeableObject = r.isMergeableObject || Wr, r.cloneUnlessOtherwiseSpecified = ie;
|
|
1106
1126
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1107
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1127
|
+
return o ? n ? r.arrayMerge(e, t, r) : nn(e, t, r) : ie(t, r);
|
|
1108
1128
|
}
|
|
1109
1129
|
W.all = function(t, r) {
|
|
1110
1130
|
if (!Array.isArray(t))
|
|
@@ -1113,56 +1133,58 @@ W.all = function(t, r) {
|
|
|
1113
1133
|
return W(n, i, r);
|
|
1114
1134
|
}, {});
|
|
1115
1135
|
};
|
|
1116
|
-
var
|
|
1117
|
-
const
|
|
1118
|
-
function
|
|
1119
|
-
var r = t && t.cache ? t.cache :
|
|
1136
|
+
var on = W, sn = on;
|
|
1137
|
+
const an = /* @__PURE__ */ Xr(sn);
|
|
1138
|
+
function we(e, t) {
|
|
1139
|
+
var r = t && t.cache ? t.cache : pn, n = t && t.serializer ? t.serializer : fn, i = t && t.strategy ? t.strategy : hn;
|
|
1120
1140
|
return i(e, {
|
|
1121
1141
|
cache: r,
|
|
1122
1142
|
serializer: n
|
|
1123
1143
|
});
|
|
1124
1144
|
}
|
|
1125
|
-
function
|
|
1145
|
+
function un(e) {
|
|
1126
1146
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1127
1147
|
}
|
|
1128
|
-
function
|
|
1129
|
-
var i =
|
|
1148
|
+
function Rt(e, t, r, n) {
|
|
1149
|
+
var i = un(n) ? n : r(n), o = t.get(i);
|
|
1130
1150
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1131
1151
|
}
|
|
1132
|
-
function
|
|
1152
|
+
function Ut(e, t, r) {
|
|
1133
1153
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1134
1154
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1135
1155
|
}
|
|
1136
|
-
function
|
|
1156
|
+
function Qe(e, t, r, n, i) {
|
|
1137
1157
|
return r.bind(t, e, n, i);
|
|
1138
1158
|
}
|
|
1139
|
-
function
|
|
1140
|
-
var r = e.length === 1 ?
|
|
1141
|
-
return
|
|
1159
|
+
function hn(e, t) {
|
|
1160
|
+
var r = e.length === 1 ? Rt : Ut;
|
|
1161
|
+
return Qe(e, this, r, t.cache.create(), t.serializer);
|
|
1162
|
+
}
|
|
1163
|
+
function ln(e, t) {
|
|
1164
|
+
return Qe(e, this, Ut, t.cache.create(), t.serializer);
|
|
1142
1165
|
}
|
|
1143
|
-
function
|
|
1144
|
-
return
|
|
1166
|
+
function cn(e, t) {
|
|
1167
|
+
return Qe(e, this, Rt, t.cache.create(), t.serializer);
|
|
1145
1168
|
}
|
|
1146
|
-
var
|
|
1169
|
+
var fn = function() {
|
|
1147
1170
|
return JSON.stringify(arguments);
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
}()
|
|
1160
|
-
), ln = {
|
|
1171
|
+
};
|
|
1172
|
+
function Je() {
|
|
1173
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1174
|
+
}
|
|
1175
|
+
Je.prototype.get = function(e) {
|
|
1176
|
+
return this.cache[e];
|
|
1177
|
+
};
|
|
1178
|
+
Je.prototype.set = function(e, t) {
|
|
1179
|
+
this.cache[e] = t;
|
|
1180
|
+
};
|
|
1181
|
+
var pn = {
|
|
1161
1182
|
create: function() {
|
|
1162
|
-
return new
|
|
1183
|
+
return new Je();
|
|
1163
1184
|
}
|
|
1164
|
-
},
|
|
1165
|
-
variadic:
|
|
1185
|
+
}, Be = {
|
|
1186
|
+
variadic: ln,
|
|
1187
|
+
monadic: cn
|
|
1166
1188
|
}, d;
|
|
1167
1189
|
(function(e) {
|
|
1168
1190
|
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";
|
|
@@ -1175,43 +1197,43 @@ var z;
|
|
|
1175
1197
|
(function(e) {
|
|
1176
1198
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1177
1199
|
})(z || (z = {}));
|
|
1178
|
-
function
|
|
1200
|
+
function ct(e) {
|
|
1179
1201
|
return e.type === _.literal;
|
|
1180
1202
|
}
|
|
1181
|
-
function
|
|
1203
|
+
function mn(e) {
|
|
1182
1204
|
return e.type === _.argument;
|
|
1183
1205
|
}
|
|
1184
|
-
function
|
|
1206
|
+
function Dt(e) {
|
|
1185
1207
|
return e.type === _.number;
|
|
1186
1208
|
}
|
|
1187
|
-
function
|
|
1209
|
+
function Gt(e) {
|
|
1188
1210
|
return e.type === _.date;
|
|
1189
1211
|
}
|
|
1190
|
-
function
|
|
1212
|
+
function Ft(e) {
|
|
1191
1213
|
return e.type === _.time;
|
|
1192
1214
|
}
|
|
1193
|
-
function
|
|
1215
|
+
function jt(e) {
|
|
1194
1216
|
return e.type === _.select;
|
|
1195
1217
|
}
|
|
1196
|
-
function
|
|
1218
|
+
function kt(e) {
|
|
1197
1219
|
return e.type === _.plural;
|
|
1198
1220
|
}
|
|
1199
|
-
function
|
|
1221
|
+
function dn(e) {
|
|
1200
1222
|
return e.type === _.pound;
|
|
1201
1223
|
}
|
|
1202
|
-
function
|
|
1224
|
+
function Vt(e) {
|
|
1203
1225
|
return e.type === _.tag;
|
|
1204
1226
|
}
|
|
1205
|
-
function
|
|
1227
|
+
function Xt(e) {
|
|
1206
1228
|
return !!(e && typeof e == "object" && e.type === z.number);
|
|
1207
1229
|
}
|
|
1208
|
-
function
|
|
1230
|
+
function Ge(e) {
|
|
1209
1231
|
return !!(e && typeof e == "object" && e.type === z.dateTime);
|
|
1210
1232
|
}
|
|
1211
|
-
var
|
|
1212
|
-
function
|
|
1233
|
+
var Wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, bn = /(?:[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;
|
|
1234
|
+
function yn(e) {
|
|
1213
1235
|
var t = {};
|
|
1214
|
-
return e.replace(
|
|
1236
|
+
return e.replace(bn, function(r) {
|
|
1215
1237
|
var n = r.length;
|
|
1216
1238
|
switch (r[0]) {
|
|
1217
1239
|
case "G":
|
|
@@ -1300,11 +1322,11 @@ function mn(e) {
|
|
|
1300
1322
|
return "";
|
|
1301
1323
|
}), t;
|
|
1302
1324
|
}
|
|
1303
|
-
var
|
|
1304
|
-
function
|
|
1325
|
+
var gn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1326
|
+
function vn(e) {
|
|
1305
1327
|
if (e.length === 0)
|
|
1306
1328
|
throw new Error("Number skeleton cannot be empty");
|
|
1307
|
-
for (var t = e.split(
|
|
1329
|
+
for (var t = e.split(gn).filter(function(f) {
|
|
1308
1330
|
return f.length > 0;
|
|
1309
1331
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1310
1332
|
var o = i[n], a = o.split("/");
|
|
@@ -1319,17 +1341,17 @@ function bn(e) {
|
|
|
1319
1341
|
}
|
|
1320
1342
|
return r;
|
|
1321
1343
|
}
|
|
1322
|
-
function
|
|
1344
|
+
function _n(e) {
|
|
1323
1345
|
return e.replace(/^(.*?)-/, "");
|
|
1324
1346
|
}
|
|
1325
|
-
var
|
|
1326
|
-
function
|
|
1347
|
+
var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zt = /^(@+)?(\+|#+)?[rs]?$/g, En = /(\*)(0+)|(#+)(0+)|(0+)/g, Zt = /^(0+)$/;
|
|
1348
|
+
function pt(e) {
|
|
1327
1349
|
var t = {};
|
|
1328
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1350
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(zt, function(r, n, i) {
|
|
1329
1351
|
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)), "";
|
|
1330
1352
|
}), t;
|
|
1331
1353
|
}
|
|
1332
|
-
function
|
|
1354
|
+
function qt(e) {
|
|
1333
1355
|
switch (e) {
|
|
1334
1356
|
case "sign-auto":
|
|
1335
1357
|
return {
|
|
@@ -1369,7 +1391,7 @@ function Xt(e) {
|
|
|
1369
1391
|
};
|
|
1370
1392
|
}
|
|
1371
1393
|
}
|
|
1372
|
-
function
|
|
1394
|
+
function xn(e) {
|
|
1373
1395
|
var t;
|
|
1374
1396
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1375
1397
|
notation: "engineering"
|
|
@@ -1377,17 +1399,17 @@ function vn(e) {
|
|
|
1377
1399
|
notation: "scientific"
|
|
1378
1400
|
}, e = e.slice(1)), t) {
|
|
1379
1401
|
var r = e.slice(0, 2);
|
|
1380
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1402
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Zt.test(e))
|
|
1381
1403
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1382
1404
|
t.minimumIntegerDigits = e.length;
|
|
1383
1405
|
}
|
|
1384
1406
|
return t;
|
|
1385
1407
|
}
|
|
1386
|
-
function
|
|
1387
|
-
var t = {}, r =
|
|
1408
|
+
function mt(e) {
|
|
1409
|
+
var t = {}, r = qt(e);
|
|
1388
1410
|
return r || t;
|
|
1389
1411
|
}
|
|
1390
|
-
function
|
|
1412
|
+
function Tn(e) {
|
|
1391
1413
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1392
1414
|
var i = n[r];
|
|
1393
1415
|
switch (i.stem) {
|
|
@@ -1411,7 +1433,7 @@ function _n(e) {
|
|
|
1411
1433
|
continue;
|
|
1412
1434
|
case "measure-unit":
|
|
1413
1435
|
case "unit":
|
|
1414
|
-
t.style = "unit", t.unit =
|
|
1436
|
+
t.style = "unit", t.unit = _n(i.options[0]);
|
|
1415
1437
|
continue;
|
|
1416
1438
|
case "compact-short":
|
|
1417
1439
|
case "K":
|
|
@@ -1423,12 +1445,12 @@ function _n(e) {
|
|
|
1423
1445
|
continue;
|
|
1424
1446
|
case "scientific":
|
|
1425
1447
|
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1426
|
-
return y(y({}, l),
|
|
1448
|
+
return y(y({}, l), mt(u));
|
|
1427
1449
|
}, {}));
|
|
1428
1450
|
continue;
|
|
1429
1451
|
case "engineering":
|
|
1430
1452
|
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1431
|
-
return y(y({}, l),
|
|
1453
|
+
return y(y({}, l), mt(u));
|
|
1432
1454
|
}, {}));
|
|
1433
1455
|
continue;
|
|
1434
1456
|
case "notation-simple":
|
|
@@ -1473,7 +1495,7 @@ function _n(e) {
|
|
|
1473
1495
|
case "integer-width":
|
|
1474
1496
|
if (i.options.length > 1)
|
|
1475
1497
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1476
|
-
i.options[0].replace(
|
|
1498
|
+
i.options[0].replace(En, function(l, u, h, c, f, p) {
|
|
1477
1499
|
if (u)
|
|
1478
1500
|
t.minimumIntegerDigits = h.length;
|
|
1479
1501
|
else {
|
|
@@ -1486,27 +1508,27 @@ function _n(e) {
|
|
|
1486
1508
|
});
|
|
1487
1509
|
continue;
|
|
1488
1510
|
}
|
|
1489
|
-
if (
|
|
1511
|
+
if (Zt.test(i.stem)) {
|
|
1490
1512
|
t.minimumIntegerDigits = i.stem.length;
|
|
1491
1513
|
continue;
|
|
1492
1514
|
}
|
|
1493
|
-
if (
|
|
1515
|
+
if (ft.test(i.stem)) {
|
|
1494
1516
|
if (i.options.length > 1)
|
|
1495
1517
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1496
|
-
i.stem.replace(
|
|
1518
|
+
i.stem.replace(ft, function(l, u, h, c, f, p) {
|
|
1497
1519
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1498
1520
|
});
|
|
1499
1521
|
var o = i.options[0];
|
|
1500
|
-
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t),
|
|
1522
|
+
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), pt(o)));
|
|
1501
1523
|
continue;
|
|
1502
1524
|
}
|
|
1503
|
-
if (
|
|
1504
|
-
t = y(y({}, t),
|
|
1525
|
+
if (zt.test(i.stem)) {
|
|
1526
|
+
t = y(y({}, t), pt(i.stem));
|
|
1505
1527
|
continue;
|
|
1506
1528
|
}
|
|
1507
|
-
var a =
|
|
1529
|
+
var a = qt(i.stem);
|
|
1508
1530
|
a && (t = y(y({}, t), a));
|
|
1509
|
-
var s =
|
|
1531
|
+
var s = xn(i.stem);
|
|
1510
1532
|
s && (t = y(y({}, t), s));
|
|
1511
1533
|
}
|
|
1512
1534
|
return t;
|
|
@@ -2926,13 +2948,13 @@ var ce = {
|
|
|
2926
2948
|
"h"
|
|
2927
2949
|
]
|
|
2928
2950
|
};
|
|
2929
|
-
function
|
|
2951
|
+
function Hn(e, t) {
|
|
2930
2952
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2931
2953
|
var i = e.charAt(n);
|
|
2932
2954
|
if (i === "j") {
|
|
2933
2955
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2934
2956
|
o++, n++;
|
|
2935
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2957
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Sn(t);
|
|
2936
2958
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2937
2959
|
r += l;
|
|
2938
2960
|
for (; a-- > 0; )
|
|
@@ -2942,7 +2964,7 @@ function En(e, t) {
|
|
|
2942
2964
|
}
|
|
2943
2965
|
return r;
|
|
2944
2966
|
}
|
|
2945
|
-
function
|
|
2967
|
+
function Sn(e) {
|
|
2946
2968
|
var t = e.hourCycle;
|
|
2947
2969
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2948
2970
|
e.hourCycles && // @ts-ignore
|
|
@@ -2964,20 +2986,20 @@ function xn(e) {
|
|
|
2964
2986
|
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
2965
2987
|
return i[0];
|
|
2966
2988
|
}
|
|
2967
|
-
var
|
|
2989
|
+
var Ae, wn = new RegExp("^".concat(Wt.source, "*")), Bn = new RegExp("".concat(Wt.source, "*$"));
|
|
2968
2990
|
function b(e, t) {
|
|
2969
2991
|
return { start: e, end: t };
|
|
2970
2992
|
}
|
|
2971
|
-
var
|
|
2993
|
+
var An = !!String.prototype.startsWith && "_a".startsWith("a", 1), Pn = !!String.fromCodePoint, On = !!Object.fromEntries, In = !!String.prototype.codePointAt, Nn = !!String.prototype.trimStart, Ln = !!String.prototype.trimEnd, Cn = !!Number.isSafeInteger, Mn = Cn ? Number.isSafeInteger : function(e) {
|
|
2972
2994
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2973
|
-
},
|
|
2995
|
+
}, Fe = !0;
|
|
2974
2996
|
try {
|
|
2975
|
-
var
|
|
2976
|
-
|
|
2997
|
+
var $n = Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2998
|
+
Fe = ((Ae = $n.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
|
|
2977
2999
|
} catch {
|
|
2978
|
-
|
|
3000
|
+
Fe = !1;
|
|
2979
3001
|
}
|
|
2980
|
-
var
|
|
3002
|
+
var dt = An ? (
|
|
2981
3003
|
// Native
|
|
2982
3004
|
function(t, r, n) {
|
|
2983
3005
|
return t.startsWith(r, n);
|
|
@@ -2987,7 +3009,7 @@ var ft = Sn ? (
|
|
|
2987
3009
|
function(t, r, n) {
|
|
2988
3010
|
return t.slice(n, n + r.length) === r;
|
|
2989
3011
|
}
|
|
2990
|
-
),
|
|
3012
|
+
), je = Pn ? String.fromCodePoint : (
|
|
2991
3013
|
// IE11
|
|
2992
3014
|
function() {
|
|
2993
3015
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2999,9 +3021,9 @@ var ft = Sn ? (
|
|
|
2999
3021
|
}
|
|
3000
3022
|
return n;
|
|
3001
3023
|
}
|
|
3002
|
-
),
|
|
3024
|
+
), bt = (
|
|
3003
3025
|
// native
|
|
3004
|
-
|
|
3026
|
+
On ? Object.fromEntries : (
|
|
3005
3027
|
// Ponyfill
|
|
3006
3028
|
function(t) {
|
|
3007
3029
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3011,7 +3033,7 @@ var ft = Sn ? (
|
|
|
3011
3033
|
return r;
|
|
3012
3034
|
}
|
|
3013
3035
|
)
|
|
3014
|
-
),
|
|
3036
|
+
), Qt = In ? (
|
|
3015
3037
|
// Native
|
|
3016
3038
|
function(t, r) {
|
|
3017
3039
|
return t.codePointAt(r);
|
|
@@ -3025,7 +3047,7 @@ var ft = Sn ? (
|
|
|
3025
3047
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3026
3048
|
}
|
|
3027
3049
|
}
|
|
3028
|
-
),
|
|
3050
|
+
), Rn = Nn ? (
|
|
3029
3051
|
// Native
|
|
3030
3052
|
function(t) {
|
|
3031
3053
|
return t.trimStart();
|
|
@@ -3033,9 +3055,9 @@ var ft = Sn ? (
|
|
|
3033
3055
|
) : (
|
|
3034
3056
|
// Ponyfill
|
|
3035
3057
|
function(t) {
|
|
3036
|
-
return t.replace(
|
|
3058
|
+
return t.replace(wn, "");
|
|
3037
3059
|
}
|
|
3038
|
-
),
|
|
3060
|
+
), Un = Ln ? (
|
|
3039
3061
|
// Native
|
|
3040
3062
|
function(t) {
|
|
3041
3063
|
return t.trimEnd();
|
|
@@ -3043,32 +3065,32 @@ var ft = Sn ? (
|
|
|
3043
3065
|
) : (
|
|
3044
3066
|
// Ponyfill
|
|
3045
3067
|
function(t) {
|
|
3046
|
-
return t.replace(
|
|
3068
|
+
return t.replace(Bn, "");
|
|
3047
3069
|
}
|
|
3048
3070
|
);
|
|
3049
|
-
function
|
|
3071
|
+
function Jt(e, t) {
|
|
3050
3072
|
return new RegExp(e, t);
|
|
3051
3073
|
}
|
|
3052
|
-
var
|
|
3053
|
-
if (
|
|
3054
|
-
var
|
|
3055
|
-
|
|
3074
|
+
var ke;
|
|
3075
|
+
if (Fe) {
|
|
3076
|
+
var yt = Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3077
|
+
ke = function(t, r) {
|
|
3056
3078
|
var n;
|
|
3057
|
-
|
|
3058
|
-
var i =
|
|
3079
|
+
yt.lastIndex = r;
|
|
3080
|
+
var i = yt.exec(t);
|
|
3059
3081
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3060
3082
|
};
|
|
3061
3083
|
} else
|
|
3062
|
-
|
|
3084
|
+
ke = function(t, r) {
|
|
3063
3085
|
for (var n = []; ; ) {
|
|
3064
|
-
var i =
|
|
3065
|
-
if (i === void 0 ||
|
|
3086
|
+
var i = Qt(t, r);
|
|
3087
|
+
if (i === void 0 || Yt(i) || jn(i))
|
|
3066
3088
|
break;
|
|
3067
3089
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3068
3090
|
}
|
|
3069
|
-
return
|
|
3091
|
+
return je.apply(void 0, n);
|
|
3070
3092
|
};
|
|
3071
|
-
var
|
|
3093
|
+
var Dn = (
|
|
3072
3094
|
/** @class */
|
|
3073
3095
|
function() {
|
|
3074
3096
|
function e(t, r) {
|
|
@@ -3099,7 +3121,7 @@ var $n = (
|
|
|
3099
3121
|
if (n)
|
|
3100
3122
|
break;
|
|
3101
3123
|
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3102
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3124
|
+
} else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
|
|
3103
3125
|
var a = this.parseTag(t, r);
|
|
3104
3126
|
if (a.err)
|
|
3105
3127
|
return a;
|
|
@@ -3132,7 +3154,7 @@ var $n = (
|
|
|
3132
3154
|
return o;
|
|
3133
3155
|
var a = o.val, s = this.clonePosition();
|
|
3134
3156
|
if (this.bumpIf("</")) {
|
|
3135
|
-
if (this.isEOF() || !
|
|
3157
|
+
if (this.isEOF() || !Ve(this.char()))
|
|
3136
3158
|
return this.error(d.INVALID_TAG, b(s, this.clonePosition()));
|
|
3137
3159
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3138
3160
|
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3150,7 +3172,7 @@ var $n = (
|
|
|
3150
3172
|
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
3151
3173
|
}, e.prototype.parseTagName = function() {
|
|
3152
3174
|
var t = this.offset();
|
|
3153
|
-
for (this.bump(); !this.isEOF() &&
|
|
3175
|
+
for (this.bump(); !this.isEOF() && Fn(this.char()); )
|
|
3154
3176
|
this.bump();
|
|
3155
3177
|
return this.message.slice(t, this.offset());
|
|
3156
3178
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3179,7 +3201,7 @@ var $n = (
|
|
|
3179
3201
|
};
|
|
3180
3202
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3181
3203
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3182
|
-
!
|
|
3204
|
+
!Gn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3183
3205
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3184
3206
|
if (this.isEOF() || this.char() !== 39)
|
|
3185
3207
|
return null;
|
|
@@ -3213,12 +3235,12 @@ var $n = (
|
|
|
3213
3235
|
r.push(n);
|
|
3214
3236
|
this.bump();
|
|
3215
3237
|
}
|
|
3216
|
-
return
|
|
3238
|
+
return je.apply(void 0, r);
|
|
3217
3239
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3218
3240
|
if (this.isEOF())
|
|
3219
3241
|
return null;
|
|
3220
3242
|
var n = this.char();
|
|
3221
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3243
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
|
|
3222
3244
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3223
3245
|
var n = this.clonePosition();
|
|
3224
3246
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3247,7 +3269,7 @@ var $n = (
|
|
|
3247
3269
|
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3248
3270
|
}
|
|
3249
3271
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3250
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3272
|
+
var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
|
|
3251
3273
|
this.bumpTo(i);
|
|
3252
3274
|
var o = this.clonePosition(), a = b(t, o);
|
|
3253
3275
|
return { value: n, location: a };
|
|
@@ -3266,7 +3288,7 @@ var $n = (
|
|
|
3266
3288
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3267
3289
|
if (c.err)
|
|
3268
3290
|
return c;
|
|
3269
|
-
var f =
|
|
3291
|
+
var f = Un(c.val);
|
|
3270
3292
|
if (f.length === 0)
|
|
3271
3293
|
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3272
3294
|
var p = b(h, this.clonePosition());
|
|
@@ -3276,8 +3298,8 @@ var $n = (
|
|
|
3276
3298
|
if (v.err)
|
|
3277
3299
|
return v;
|
|
3278
3300
|
var m = b(i, this.clonePosition());
|
|
3279
|
-
if (u &&
|
|
3280
|
-
var T =
|
|
3301
|
+
if (u && dt(u?.style, "::", 0)) {
|
|
3302
|
+
var T = Rn(u.style.slice(2));
|
|
3281
3303
|
if (s === "number") {
|
|
3282
3304
|
var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
3283
3305
|
return c.err ? c : {
|
|
@@ -3288,12 +3310,12 @@ var $n = (
|
|
|
3288
3310
|
if (T.length === 0)
|
|
3289
3311
|
return this.error(d.EXPECT_DATE_TIME_SKELETON, m);
|
|
3290
3312
|
var $ = T;
|
|
3291
|
-
this.locale && ($ =
|
|
3313
|
+
this.locale && ($ = Hn(T, this.locale));
|
|
3292
3314
|
var f = {
|
|
3293
3315
|
type: z.dateTime,
|
|
3294
3316
|
pattern: $,
|
|
3295
3317
|
location: u.styleLocation,
|
|
3296
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3318
|
+
parsedOptions: this.shouldParseSkeletons ? yn($) : {}
|
|
3297
3319
|
}, A = s === "date" ? _.date : _.time;
|
|
3298
3320
|
return {
|
|
3299
3321
|
val: { type: A, value: n, location: m, style: f },
|
|
@@ -3339,7 +3361,7 @@ var $n = (
|
|
|
3339
3361
|
val: {
|
|
3340
3362
|
type: _.select,
|
|
3341
3363
|
value: n,
|
|
3342
|
-
options:
|
|
3364
|
+
options: bt(D.val),
|
|
3343
3365
|
location: g
|
|
3344
3366
|
},
|
|
3345
3367
|
err: null
|
|
@@ -3347,7 +3369,7 @@ var $n = (
|
|
|
3347
3369
|
val: {
|
|
3348
3370
|
type: _.plural,
|
|
3349
3371
|
value: n,
|
|
3350
|
-
options:
|
|
3372
|
+
options: bt(D.val),
|
|
3351
3373
|
offset: P,
|
|
3352
3374
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3353
3375
|
location: g
|
|
@@ -3398,7 +3420,7 @@ var $n = (
|
|
|
3398
3420
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3399
3421
|
var n = [];
|
|
3400
3422
|
try {
|
|
3401
|
-
n =
|
|
3423
|
+
n = vn(t);
|
|
3402
3424
|
} catch {
|
|
3403
3425
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3404
3426
|
}
|
|
@@ -3407,7 +3429,7 @@ var $n = (
|
|
|
3407
3429
|
type: z.number,
|
|
3408
3430
|
tokens: n,
|
|
3409
3431
|
location: r,
|
|
3410
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3432
|
+
parsedOptions: this.shouldParseSkeletons ? Tn(n) : {}
|
|
3411
3433
|
},
|
|
3412
3434
|
err: null
|
|
3413
3435
|
};
|
|
@@ -3455,7 +3477,7 @@ var $n = (
|
|
|
3455
3477
|
break;
|
|
3456
3478
|
}
|
|
3457
3479
|
var l = b(i, this.clonePosition());
|
|
3458
|
-
return o ? (a *= n,
|
|
3480
|
+
return o ? (a *= n, Mn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3459
3481
|
}, e.prototype.offset = function() {
|
|
3460
3482
|
return this.position.offset;
|
|
3461
3483
|
}, e.prototype.isEOF = function() {
|
|
@@ -3470,7 +3492,7 @@ var $n = (
|
|
|
3470
3492
|
var t = this.position.offset;
|
|
3471
3493
|
if (t >= this.message.length)
|
|
3472
3494
|
throw Error("out of bound");
|
|
3473
|
-
var r =
|
|
3495
|
+
var r = Qt(this.message, t);
|
|
3474
3496
|
if (r === void 0)
|
|
3475
3497
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3476
3498
|
return r;
|
|
@@ -3489,7 +3511,7 @@ var $n = (
|
|
|
3489
3511
|
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);
|
|
3490
3512
|
}
|
|
3491
3513
|
}, e.prototype.bumpIf = function(t) {
|
|
3492
|
-
if (
|
|
3514
|
+
if (dt(this.message, t, this.offset())) {
|
|
3493
3515
|
for (var r = 0; r < t.length; r++)
|
|
3494
3516
|
this.bump();
|
|
3495
3517
|
return !0;
|
|
@@ -3511,7 +3533,7 @@ var $n = (
|
|
|
3511
3533
|
break;
|
|
3512
3534
|
}
|
|
3513
3535
|
}, e.prototype.bumpSpace = function() {
|
|
3514
|
-
for (; !this.isEOF() &&
|
|
3536
|
+
for (; !this.isEOF() && Yt(this.char()); )
|
|
3515
3537
|
this.bump();
|
|
3516
3538
|
}, e.prototype.peek = function() {
|
|
3517
3539
|
if (this.isEOF())
|
|
@@ -3521,38 +3543,38 @@ var $n = (
|
|
|
3521
3543
|
}, e;
|
|
3522
3544
|
}()
|
|
3523
3545
|
);
|
|
3524
|
-
function
|
|
3546
|
+
function Ve(e) {
|
|
3525
3547
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3526
3548
|
}
|
|
3527
|
-
function
|
|
3528
|
-
return
|
|
3549
|
+
function Gn(e) {
|
|
3550
|
+
return Ve(e) || e === 47;
|
|
3529
3551
|
}
|
|
3530
|
-
function
|
|
3552
|
+
function Fn(e) {
|
|
3531
3553
|
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;
|
|
3532
3554
|
}
|
|
3533
|
-
function
|
|
3555
|
+
function Yt(e) {
|
|
3534
3556
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3535
3557
|
}
|
|
3536
|
-
function
|
|
3558
|
+
function jn(e) {
|
|
3537
3559
|
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;
|
|
3538
3560
|
}
|
|
3539
|
-
function
|
|
3561
|
+
function Xe(e) {
|
|
3540
3562
|
e.forEach(function(t) {
|
|
3541
|
-
if (delete t.location,
|
|
3563
|
+
if (delete t.location, jt(t) || kt(t))
|
|
3542
3564
|
for (var r in t.options)
|
|
3543
|
-
delete t.options[r].location,
|
|
3565
|
+
delete t.options[r].location, Xe(t.options[r].value);
|
|
3544
3566
|
else
|
|
3545
|
-
|
|
3567
|
+
Dt(t) && Xt(t.style) || (Gt(t) || Ft(t)) && Ge(t.style) ? delete t.style.location : Vt(t) && Xe(t.children);
|
|
3546
3568
|
});
|
|
3547
3569
|
}
|
|
3548
|
-
function
|
|
3570
|
+
function kn(e, t) {
|
|
3549
3571
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3550
|
-
var r = new
|
|
3572
|
+
var r = new Dn(e, t).parse();
|
|
3551
3573
|
if (r.err) {
|
|
3552
3574
|
var n = SyntaxError(d[r.err.kind]);
|
|
3553
3575
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3554
3576
|
}
|
|
3555
|
-
return t?.captureLocation ||
|
|
3577
|
+
return t?.captureLocation || Xe(r.val), r.val;
|
|
3556
3578
|
}
|
|
3557
3579
|
var Z;
|
|
3558
3580
|
(function(e) {
|
|
@@ -3570,7 +3592,7 @@ var _e = (
|
|
|
3570
3592
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3571
3593
|
}, t;
|
|
3572
3594
|
}(Error)
|
|
3573
|
-
),
|
|
3595
|
+
), gt = (
|
|
3574
3596
|
/** @class */
|
|
3575
3597
|
function(e) {
|
|
3576
3598
|
N(t, e);
|
|
@@ -3579,7 +3601,7 @@ var _e = (
|
|
|
3579
3601
|
}
|
|
3580
3602
|
return t;
|
|
3581
3603
|
}(_e)
|
|
3582
|
-
),
|
|
3604
|
+
), Vn = (
|
|
3583
3605
|
/** @class */
|
|
3584
3606
|
function(e) {
|
|
3585
3607
|
N(t, e);
|
|
@@ -3588,7 +3610,7 @@ var _e = (
|
|
|
3588
3610
|
}
|
|
3589
3611
|
return t;
|
|
3590
3612
|
}(_e)
|
|
3591
|
-
),
|
|
3613
|
+
), Xn = (
|
|
3592
3614
|
/** @class */
|
|
3593
3615
|
function(e) {
|
|
3594
3616
|
N(t, e);
|
|
@@ -3601,17 +3623,17 @@ var _e = (
|
|
|
3601
3623
|
(function(e) {
|
|
3602
3624
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3603
3625
|
})(H || (H = {}));
|
|
3604
|
-
function
|
|
3626
|
+
function Wn(e) {
|
|
3605
3627
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3606
3628
|
var n = t[t.length - 1];
|
|
3607
3629
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3608
3630
|
}, []);
|
|
3609
3631
|
}
|
|
3610
|
-
function
|
|
3632
|
+
function zn(e) {
|
|
3611
3633
|
return typeof e == "function";
|
|
3612
3634
|
}
|
|
3613
3635
|
function me(e, t, r, n, i, o, a) {
|
|
3614
|
-
if (e.length === 1 &&
|
|
3636
|
+
if (e.length === 1 && ct(e[0]))
|
|
3615
3637
|
return [
|
|
3616
3638
|
{
|
|
3617
3639
|
type: H.literal,
|
|
@@ -3620,14 +3642,14 @@ function me(e, t, r, n, i, o, a) {
|
|
|
3620
3642
|
];
|
|
3621
3643
|
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3622
3644
|
var h = u[l];
|
|
3623
|
-
if (
|
|
3645
|
+
if (ct(h)) {
|
|
3624
3646
|
s.push({
|
|
3625
3647
|
type: H.literal,
|
|
3626
3648
|
value: h.value
|
|
3627
3649
|
});
|
|
3628
3650
|
continue;
|
|
3629
3651
|
}
|
|
3630
|
-
if (
|
|
3652
|
+
if (dn(h)) {
|
|
3631
3653
|
typeof o == "number" && s.push({
|
|
3632
3654
|
type: H.literal,
|
|
3633
3655
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3636,43 +3658,43 @@ function me(e, t, r, n, i, o, a) {
|
|
|
3636
3658
|
}
|
|
3637
3659
|
var c = h.value;
|
|
3638
3660
|
if (!(i && c in i))
|
|
3639
|
-
throw new
|
|
3661
|
+
throw new Xn(c, a);
|
|
3640
3662
|
var f = i[c];
|
|
3641
|
-
if (
|
|
3663
|
+
if (mn(h)) {
|
|
3642
3664
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3643
3665
|
type: typeof f == "string" ? H.literal : H.object,
|
|
3644
3666
|
value: f
|
|
3645
3667
|
});
|
|
3646
3668
|
continue;
|
|
3647
3669
|
}
|
|
3648
|
-
if (
|
|
3649
|
-
var p = typeof h.style == "string" ? n.date[h.style] :
|
|
3670
|
+
if (Gt(h)) {
|
|
3671
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Ge(h.style) ? h.style.parsedOptions : void 0;
|
|
3650
3672
|
s.push({
|
|
3651
3673
|
type: H.literal,
|
|
3652
3674
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3653
3675
|
});
|
|
3654
3676
|
continue;
|
|
3655
3677
|
}
|
|
3656
|
-
if (
|
|
3657
|
-
var p = typeof h.style == "string" ? n.time[h.style] :
|
|
3678
|
+
if (Ft(h)) {
|
|
3679
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Ge(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3658
3680
|
s.push({
|
|
3659
3681
|
type: H.literal,
|
|
3660
3682
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3661
3683
|
});
|
|
3662
3684
|
continue;
|
|
3663
3685
|
}
|
|
3664
|
-
if (
|
|
3665
|
-
var p = typeof h.style == "string" ? n.number[h.style] :
|
|
3686
|
+
if (Dt(h)) {
|
|
3687
|
+
var p = typeof h.style == "string" ? n.number[h.style] : Xt(h.style) ? h.style.parsedOptions : void 0;
|
|
3666
3688
|
p && p.scale && (f = f * (p.scale || 1)), s.push({
|
|
3667
3689
|
type: H.literal,
|
|
3668
3690
|
value: r.getNumberFormat(t, p).format(f)
|
|
3669
3691
|
});
|
|
3670
3692
|
continue;
|
|
3671
3693
|
}
|
|
3672
|
-
if (
|
|
3694
|
+
if (Vt(h)) {
|
|
3673
3695
|
var v = h.children, m = h.value, T = i[m];
|
|
3674
|
-
if (!
|
|
3675
|
-
throw new
|
|
3696
|
+
if (!zn(T))
|
|
3697
|
+
throw new Vn(m, "function", a);
|
|
3676
3698
|
var $ = me(v, t, r, n, i, o), A = T($.map(function(P) {
|
|
3677
3699
|
return P.value;
|
|
3678
3700
|
}));
|
|
@@ -3683,14 +3705,14 @@ function me(e, t, r, n, i, o, a) {
|
|
|
3683
3705
|
};
|
|
3684
3706
|
}));
|
|
3685
3707
|
}
|
|
3686
|
-
if (
|
|
3708
|
+
if (jt(h)) {
|
|
3687
3709
|
var S = h.options[f] || h.options.other;
|
|
3688
3710
|
if (!S)
|
|
3689
|
-
throw new
|
|
3711
|
+
throw new gt(h.value, f, Object.keys(h.options), a);
|
|
3690
3712
|
s.push.apply(s, me(S.value, t, r, n, i));
|
|
3691
3713
|
continue;
|
|
3692
3714
|
}
|
|
3693
|
-
if (
|
|
3715
|
+
if (kt(h)) {
|
|
3694
3716
|
var S = h.options["=".concat(f)];
|
|
3695
3717
|
if (!S) {
|
|
3696
3718
|
if (!Intl.PluralRules)
|
|
@@ -3701,24 +3723,24 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3701
3723
|
S = h.options[R] || h.options.other;
|
|
3702
3724
|
}
|
|
3703
3725
|
if (!S)
|
|
3704
|
-
throw new
|
|
3726
|
+
throw new gt(h.value, f, Object.keys(h.options), a);
|
|
3705
3727
|
s.push.apply(s, me(S.value, t, r, n, i, f - (h.offset || 0)));
|
|
3706
3728
|
continue;
|
|
3707
3729
|
}
|
|
3708
3730
|
}
|
|
3709
|
-
return
|
|
3731
|
+
return Wn(s);
|
|
3710
3732
|
}
|
|
3711
|
-
function
|
|
3733
|
+
function Zn(e, t) {
|
|
3712
3734
|
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3713
3735
|
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3714
3736
|
}, {})) : e;
|
|
3715
3737
|
}
|
|
3716
|
-
function
|
|
3738
|
+
function qn(e, t) {
|
|
3717
3739
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3718
|
-
return r[n] =
|
|
3740
|
+
return r[n] = Zn(e[n], t[n]), r;
|
|
3719
3741
|
}, y({}, e)) : e;
|
|
3720
3742
|
}
|
|
3721
|
-
function
|
|
3743
|
+
function Pe(e) {
|
|
3722
3744
|
return {
|
|
3723
3745
|
create: function() {
|
|
3724
3746
|
return {
|
|
@@ -3732,39 +3754,39 @@ function Ae(e) {
|
|
|
3732
3754
|
}
|
|
3733
3755
|
};
|
|
3734
3756
|
}
|
|
3735
|
-
function
|
|
3757
|
+
function Qn(e) {
|
|
3736
3758
|
return e === void 0 && (e = {
|
|
3737
3759
|
number: {},
|
|
3738
3760
|
dateTime: {},
|
|
3739
3761
|
pluralRules: {}
|
|
3740
3762
|
}), {
|
|
3741
|
-
getNumberFormat:
|
|
3763
|
+
getNumberFormat: we(function() {
|
|
3742
3764
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3743
3765
|
r[n] = arguments[n];
|
|
3744
3766
|
return new ((t = Intl.NumberFormat).bind.apply(t, X([void 0], r, !1)))();
|
|
3745
3767
|
}, {
|
|
3746
|
-
cache:
|
|
3747
|
-
strategy:
|
|
3768
|
+
cache: Pe(e.number),
|
|
3769
|
+
strategy: Be.variadic
|
|
3748
3770
|
}),
|
|
3749
|
-
getDateTimeFormat:
|
|
3771
|
+
getDateTimeFormat: we(function() {
|
|
3750
3772
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3751
3773
|
r[n] = arguments[n];
|
|
3752
3774
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, X([void 0], r, !1)))();
|
|
3753
3775
|
}, {
|
|
3754
|
-
cache:
|
|
3755
|
-
strategy:
|
|
3776
|
+
cache: Pe(e.dateTime),
|
|
3777
|
+
strategy: Be.variadic
|
|
3756
3778
|
}),
|
|
3757
|
-
getPluralRules:
|
|
3779
|
+
getPluralRules: we(function() {
|
|
3758
3780
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3759
3781
|
r[n] = arguments[n];
|
|
3760
3782
|
return new ((t = Intl.PluralRules).bind.apply(t, X([void 0], r, !1)))();
|
|
3761
3783
|
}, {
|
|
3762
|
-
cache:
|
|
3763
|
-
strategy:
|
|
3784
|
+
cache: Pe(e.pluralRules),
|
|
3785
|
+
strategy: Be.variadic
|
|
3764
3786
|
})
|
|
3765
3787
|
};
|
|
3766
3788
|
}
|
|
3767
|
-
var
|
|
3789
|
+
var Jn = (
|
|
3768
3790
|
/** @class */
|
|
3769
3791
|
function() {
|
|
3770
3792
|
function e(t, r, n, i) {
|
|
@@ -3796,13 +3818,13 @@ var Zn = (
|
|
|
3796
3818
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3797
3819
|
var a = i || {};
|
|
3798
3820
|
a.formatters;
|
|
3799
|
-
var s =
|
|
3821
|
+
var s = Pr(a, ["formatters"]);
|
|
3800
3822
|
this.ast = e.__parse(t, y(y({}, s), { locale: this.resolvedLocale }));
|
|
3801
3823
|
} else
|
|
3802
3824
|
this.ast = t;
|
|
3803
3825
|
if (!Array.isArray(this.ast))
|
|
3804
3826
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3805
|
-
this.formats =
|
|
3827
|
+
this.formats = qn(e.formats, n), this.formatters = i && i.formatters || Qn(this.formatterCache);
|
|
3806
3828
|
}
|
|
3807
3829
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3808
3830
|
get: function() {
|
|
@@ -3815,7 +3837,7 @@ var Zn = (
|
|
|
3815
3837
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3816
3838
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3817
3839
|
}
|
|
3818
|
-
}, e.__parse =
|
|
3840
|
+
}, e.__parse = kn, e.formats = {
|
|
3819
3841
|
number: {
|
|
3820
3842
|
integer: {
|
|
3821
3843
|
maximumFractionDigits: 0
|
|
@@ -3876,7 +3898,7 @@ var Zn = (
|
|
|
3876
3898
|
}, e;
|
|
3877
3899
|
}()
|
|
3878
3900
|
);
|
|
3879
|
-
function
|
|
3901
|
+
function Yn(e, t) {
|
|
3880
3902
|
if (t == null)
|
|
3881
3903
|
return;
|
|
3882
3904
|
if (t in e)
|
|
@@ -3897,92 +3919,92 @@ function qn(e, t) {
|
|
|
3897
3919
|
n = void 0;
|
|
3898
3920
|
return n;
|
|
3899
3921
|
}
|
|
3900
|
-
const M = {},
|
|
3922
|
+
const M = {}, Kn = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), Kt = (e, t) => {
|
|
3901
3923
|
if (t == null)
|
|
3902
3924
|
return;
|
|
3903
3925
|
if (t in M && e in M[t])
|
|
3904
3926
|
return M[t][e];
|
|
3905
3927
|
const r = Ee(t);
|
|
3906
3928
|
for (let n = 0; n < r.length; n++) {
|
|
3907
|
-
const i = r[n], o =
|
|
3929
|
+
const i = r[n], o = ti(i, e);
|
|
3908
3930
|
if (o)
|
|
3909
|
-
return
|
|
3931
|
+
return Kn(e, t, o);
|
|
3910
3932
|
}
|
|
3911
3933
|
};
|
|
3912
|
-
let
|
|
3934
|
+
let Ye;
|
|
3913
3935
|
const ue = ve({});
|
|
3914
|
-
function
|
|
3915
|
-
return
|
|
3936
|
+
function ei(e) {
|
|
3937
|
+
return Ye[e] || null;
|
|
3916
3938
|
}
|
|
3917
|
-
function
|
|
3918
|
-
return e in
|
|
3939
|
+
function er(e) {
|
|
3940
|
+
return e in Ye;
|
|
3919
3941
|
}
|
|
3920
|
-
function
|
|
3921
|
-
if (!
|
|
3942
|
+
function ti(e, t) {
|
|
3943
|
+
if (!er(e))
|
|
3922
3944
|
return null;
|
|
3923
|
-
const r =
|
|
3924
|
-
return
|
|
3945
|
+
const r = ei(e);
|
|
3946
|
+
return Yn(r, t);
|
|
3925
3947
|
}
|
|
3926
|
-
function
|
|
3948
|
+
function ri(e) {
|
|
3927
3949
|
if (e == null)
|
|
3928
3950
|
return;
|
|
3929
3951
|
const t = Ee(e);
|
|
3930
3952
|
for (let r = 0; r < t.length; r++) {
|
|
3931
3953
|
const n = t[r];
|
|
3932
|
-
if (
|
|
3954
|
+
if (er(n))
|
|
3933
3955
|
return n;
|
|
3934
3956
|
}
|
|
3935
3957
|
}
|
|
3936
|
-
function
|
|
3937
|
-
delete M[e], ue.update((r) => (r[e] =
|
|
3958
|
+
function tr(e, ...t) {
|
|
3959
|
+
delete M[e], ue.update((r) => (r[e] = an.all([r[e] || {}, ...t]), r));
|
|
3938
3960
|
}
|
|
3939
3961
|
J(
|
|
3940
3962
|
[ue],
|
|
3941
3963
|
([e]) => Object.keys(e)
|
|
3942
3964
|
);
|
|
3943
|
-
ue.subscribe((e) =>
|
|
3965
|
+
ue.subscribe((e) => Ye = e);
|
|
3944
3966
|
const de = {};
|
|
3945
|
-
function
|
|
3967
|
+
function ni(e, t) {
|
|
3946
3968
|
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3947
3969
|
}
|
|
3948
|
-
function
|
|
3970
|
+
function rr(e) {
|
|
3949
3971
|
return de[e];
|
|
3950
3972
|
}
|
|
3951
|
-
function
|
|
3973
|
+
function ii(e) {
|
|
3952
3974
|
return Ee(e).map((t) => {
|
|
3953
|
-
const r =
|
|
3975
|
+
const r = rr(t);
|
|
3954
3976
|
return [t, r ? [...r] : []];
|
|
3955
3977
|
}).filter(([, t]) => t.length > 0);
|
|
3956
3978
|
}
|
|
3957
|
-
function
|
|
3979
|
+
function We(e) {
|
|
3958
3980
|
return e == null ? !1 : Ee(e).some(
|
|
3959
3981
|
(t) => {
|
|
3960
3982
|
var r;
|
|
3961
|
-
return (r =
|
|
3983
|
+
return (r = rr(t)) == null ? void 0 : r.size;
|
|
3962
3984
|
}
|
|
3963
3985
|
);
|
|
3964
3986
|
}
|
|
3965
|
-
function
|
|
3987
|
+
function oi(e, t) {
|
|
3966
3988
|
return Promise.all(
|
|
3967
|
-
t.map((n) => (
|
|
3968
|
-
).then((n) =>
|
|
3989
|
+
t.map((n) => (ni(e, n), n().then((i) => i.default || i)))
|
|
3990
|
+
).then((n) => tr(e, ...n));
|
|
3969
3991
|
}
|
|
3970
3992
|
const ee = {};
|
|
3971
|
-
function
|
|
3972
|
-
if (!
|
|
3993
|
+
function nr(e) {
|
|
3994
|
+
if (!We(e))
|
|
3973
3995
|
return e in ee ? ee[e] : Promise.resolve();
|
|
3974
|
-
const t =
|
|
3996
|
+
const t = ii(e);
|
|
3975
3997
|
return ee[e] = Promise.all(
|
|
3976
3998
|
t.map(
|
|
3977
|
-
([r, n]) =>
|
|
3999
|
+
([r, n]) => oi(r, n)
|
|
3978
4000
|
)
|
|
3979
4001
|
).then(() => {
|
|
3980
|
-
if (
|
|
3981
|
-
return
|
|
4002
|
+
if (We(e))
|
|
4003
|
+
return nr(e);
|
|
3982
4004
|
delete ee[e];
|
|
3983
4005
|
}), ee[e];
|
|
3984
4006
|
}
|
|
3985
|
-
const
|
|
4007
|
+
const si = {
|
|
3986
4008
|
number: {
|
|
3987
4009
|
scientific: { notation: "scientific" },
|
|
3988
4010
|
engineering: { notation: "engineering" },
|
|
@@ -4011,57 +4033,57 @@ const ni = {
|
|
|
4011
4033
|
timeZoneName: "short"
|
|
4012
4034
|
}
|
|
4013
4035
|
}
|
|
4014
|
-
},
|
|
4036
|
+
}, ai = {
|
|
4015
4037
|
fallbackLocale: null,
|
|
4016
4038
|
loadingDelay: 200,
|
|
4017
|
-
formats:
|
|
4039
|
+
formats: si,
|
|
4018
4040
|
warnOnMissingMessages: !0,
|
|
4019
4041
|
handleMissingMessage: void 0,
|
|
4020
4042
|
ignoreTag: !0
|
|
4021
|
-
},
|
|
4043
|
+
}, ui = ai;
|
|
4022
4044
|
function q() {
|
|
4023
|
-
return
|
|
4045
|
+
return ui;
|
|
4024
4046
|
}
|
|
4025
|
-
const
|
|
4026
|
-
var
|
|
4047
|
+
const Oe = ve(!1);
|
|
4048
|
+
var hi = Object.defineProperty, li = Object.defineProperties, ci = Object.getOwnPropertyDescriptors, vt = Object.getOwnPropertySymbols, fi = Object.prototype.hasOwnProperty, pi = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mi = (e, t) => {
|
|
4027
4049
|
for (var r in t || (t = {}))
|
|
4028
|
-
|
|
4029
|
-
if (
|
|
4030
|
-
for (var r of
|
|
4031
|
-
|
|
4050
|
+
fi.call(t, r) && _t(e, r, t[r]);
|
|
4051
|
+
if (vt)
|
|
4052
|
+
for (var r of vt(t))
|
|
4053
|
+
pi.call(t, r) && _t(e, r, t[r]);
|
|
4032
4054
|
return e;
|
|
4033
|
-
},
|
|
4034
|
-
let
|
|
4055
|
+
}, di = (e, t) => li(e, ci(t));
|
|
4056
|
+
let ze;
|
|
4035
4057
|
const be = ve(null);
|
|
4036
|
-
function
|
|
4058
|
+
function Et(e) {
|
|
4037
4059
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4038
4060
|
}
|
|
4039
4061
|
function Ee(e, t = q().fallbackLocale) {
|
|
4040
|
-
const r =
|
|
4041
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4062
|
+
const r = Et(e);
|
|
4063
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
|
|
4042
4064
|
}
|
|
4043
4065
|
function U() {
|
|
4044
|
-
return
|
|
4066
|
+
return ze ?? void 0;
|
|
4045
4067
|
}
|
|
4046
4068
|
be.subscribe((e) => {
|
|
4047
|
-
|
|
4069
|
+
ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4048
4070
|
});
|
|
4049
|
-
const
|
|
4050
|
-
if (e &&
|
|
4071
|
+
const bi = (e) => {
|
|
4072
|
+
if (e && ri(e) && We(e)) {
|
|
4051
4073
|
const { loadingDelay: t } = q();
|
|
4052
4074
|
let r;
|
|
4053
4075
|
return typeof window < "u" && U() != null && t ? r = window.setTimeout(
|
|
4054
|
-
() =>
|
|
4076
|
+
() => Oe.set(!0),
|
|
4055
4077
|
t
|
|
4056
|
-
) :
|
|
4078
|
+
) : Oe.set(!0), nr(e).then(() => {
|
|
4057
4079
|
be.set(e);
|
|
4058
4080
|
}).finally(() => {
|
|
4059
|
-
clearTimeout(r),
|
|
4081
|
+
clearTimeout(r), Oe.set(!1);
|
|
4060
4082
|
});
|
|
4061
4083
|
}
|
|
4062
4084
|
return be.set(e);
|
|
4063
|
-
}, Y =
|
|
4064
|
-
set:
|
|
4085
|
+
}, Y = di(mi({}, be), {
|
|
4086
|
+
set: bi
|
|
4065
4087
|
}), xe = (e) => {
|
|
4066
4088
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4067
4089
|
return (n) => {
|
|
@@ -4069,20 +4091,20 @@ const pi = (e) => {
|
|
|
4069
4091
|
return i in t ? t[i] : t[i] = e(n);
|
|
4070
4092
|
};
|
|
4071
4093
|
};
|
|
4072
|
-
var
|
|
4094
|
+
var yi = Object.defineProperty, ye = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
4073
4095
|
for (var r in t || (t = {}))
|
|
4074
|
-
|
|
4096
|
+
ir.call(t, r) && xt(e, r, t[r]);
|
|
4075
4097
|
if (ye)
|
|
4076
4098
|
for (var r of ye(t))
|
|
4077
|
-
|
|
4099
|
+
or.call(t, r) && xt(e, r, t[r]);
|
|
4078
4100
|
return e;
|
|
4079
4101
|
}, K = (e, t) => {
|
|
4080
4102
|
var r = {};
|
|
4081
4103
|
for (var n in e)
|
|
4082
|
-
|
|
4104
|
+
ir.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4083
4105
|
if (e != null && ye)
|
|
4084
4106
|
for (var n of ye(e))
|
|
4085
|
-
t.indexOf(n) < 0 &&
|
|
4107
|
+
t.indexOf(n) < 0 && or.call(e, n) && (r[n] = e[n]);
|
|
4086
4108
|
return r;
|
|
4087
4109
|
};
|
|
4088
4110
|
const oe = (e, t) => {
|
|
@@ -4090,21 +4112,21 @@ const oe = (e, t) => {
|
|
|
4090
4112
|
if (e in r && t in r[e])
|
|
4091
4113
|
return r[e][t];
|
|
4092
4114
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4093
|
-
},
|
|
4115
|
+
}, gi = xe(
|
|
4094
4116
|
(e) => {
|
|
4095
4117
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4096
4118
|
if (r == null)
|
|
4097
4119
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4098
4120
|
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
4099
4121
|
}
|
|
4100
|
-
),
|
|
4122
|
+
), vi = xe(
|
|
4101
4123
|
(e) => {
|
|
4102
4124
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4103
4125
|
if (r == null)
|
|
4104
4126
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4105
4127
|
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4106
4128
|
}
|
|
4107
|
-
),
|
|
4129
|
+
), _i = xe(
|
|
4108
4130
|
(e) => {
|
|
4109
4131
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4110
4132
|
if (r == null)
|
|
@@ -4113,33 +4135,33 @@ const oe = (e, t) => {
|
|
|
4113
4135
|
);
|
|
4114
4136
|
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4115
4137
|
}
|
|
4116
|
-
),
|
|
4138
|
+
), Ei = (e = {}) => {
|
|
4117
4139
|
var t = e, {
|
|
4118
4140
|
locale: r = U()
|
|
4119
4141
|
} = t, n = K(t, [
|
|
4120
4142
|
"locale"
|
|
4121
4143
|
]);
|
|
4122
|
-
return
|
|
4123
|
-
},
|
|
4144
|
+
return gi(Ke({ locale: r }, n));
|
|
4145
|
+
}, xi = (e = {}) => {
|
|
4124
4146
|
var t = e, {
|
|
4125
4147
|
locale: r = U()
|
|
4126
4148
|
} = t, n = K(t, [
|
|
4127
4149
|
"locale"
|
|
4128
4150
|
]);
|
|
4129
|
-
return
|
|
4130
|
-
},
|
|
4151
|
+
return vi(Ke({ locale: r }, n));
|
|
4152
|
+
}, Ti = (e = {}) => {
|
|
4131
4153
|
var t = e, {
|
|
4132
4154
|
locale: r = U()
|
|
4133
4155
|
} = t, n = K(t, [
|
|
4134
4156
|
"locale"
|
|
4135
4157
|
]);
|
|
4136
|
-
return
|
|
4137
|
-
},
|
|
4158
|
+
return _i(Ke({ locale: r }, n));
|
|
4159
|
+
}, Hi = xe(
|
|
4138
4160
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4139
|
-
(e, t = U()) => new
|
|
4161
|
+
(e, t = U()) => new Jn(e, t, q().formats, {
|
|
4140
4162
|
ignoreTag: q().ignoreTag
|
|
4141
4163
|
})
|
|
4142
|
-
),
|
|
4164
|
+
), Si = (e, t = {}) => {
|
|
4143
4165
|
var r, n, i, o;
|
|
4144
4166
|
let a = t;
|
|
4145
4167
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -4152,7 +4174,7 @@ const oe = (e, t) => {
|
|
|
4152
4174
|
throw new Error(
|
|
4153
4175
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4154
4176
|
);
|
|
4155
|
-
let h =
|
|
4177
|
+
let h = Kt(e, l);
|
|
4156
4178
|
if (!h)
|
|
4157
4179
|
h = (o = (i = (n = (r = q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4158
4180
|
else if (typeof h != "string")
|
|
@@ -4163,7 +4185,7 @@ const oe = (e, t) => {
|
|
|
4163
4185
|
return h;
|
|
4164
4186
|
let c = h;
|
|
4165
4187
|
try {
|
|
4166
|
-
c =
|
|
4188
|
+
c = Hi(h, l).format(s);
|
|
4167
4189
|
} catch (f) {
|
|
4168
4190
|
f instanceof Error && console.warn(
|
|
4169
4191
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4171,20 +4193,20 @@ const oe = (e, t) => {
|
|
|
4171
4193
|
);
|
|
4172
4194
|
}
|
|
4173
4195
|
return c;
|
|
4174
|
-
},
|
|
4175
|
-
J([Y], () =>
|
|
4176
|
-
J([Y], () =>
|
|
4177
|
-
J([Y], () =>
|
|
4178
|
-
J([Y, ue], () =>
|
|
4179
|
-
window.emWidgets = { topic:
|
|
4180
|
-
const
|
|
4181
|
-
function
|
|
4182
|
-
|
|
4183
|
-
}
|
|
4184
|
-
function
|
|
4196
|
+
}, wi = (e, t) => Ti(t).format(e), Bi = (e, t) => xi(t).format(e), Ai = (e, t) => Ei(t).format(e), Pi = (e, t = U()) => Kt(e, t), Oi = J([Y, ue], () => Si);
|
|
4197
|
+
J([Y], () => wi);
|
|
4198
|
+
J([Y], () => Bi);
|
|
4199
|
+
J([Y], () => Ai);
|
|
4200
|
+
J([Y, ue], () => Pi);
|
|
4201
|
+
window.emWidgets = { topic: kr };
|
|
4202
|
+
const Ii = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4203
|
+
function Tt(e, t) {
|
|
4204
|
+
tr(e, t);
|
|
4205
|
+
}
|
|
4206
|
+
function Ni(e) {
|
|
4185
4207
|
Y.set(e);
|
|
4186
4208
|
}
|
|
4187
|
-
const
|
|
4209
|
+
const Ht = {
|
|
4188
4210
|
en: {
|
|
4189
4211
|
titleTransactionHistory: "Transaction History",
|
|
4190
4212
|
loading: "Loading, please wait ..."
|
|
@@ -4226,13 +4248,13 @@ const Et = {
|
|
|
4226
4248
|
loading: "Loading, please wait ..."
|
|
4227
4249
|
}
|
|
4228
4250
|
};
|
|
4229
|
-
function
|
|
4251
|
+
function Li(e, t) {
|
|
4230
4252
|
if (e) {
|
|
4231
4253
|
const r = document.createElement("style");
|
|
4232
4254
|
r.innerHTML = t, e.appendChild(r);
|
|
4233
4255
|
}
|
|
4234
4256
|
}
|
|
4235
|
-
function
|
|
4257
|
+
function Ci(e, t) {
|
|
4236
4258
|
const r = new URL(t);
|
|
4237
4259
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4238
4260
|
const i = document.createElement("style");
|
|
@@ -4241,7 +4263,7 @@ function Ii(e, t) {
|
|
|
4241
4263
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4242
4264
|
});
|
|
4243
4265
|
}
|
|
4244
|
-
function
|
|
4266
|
+
function Mi(e, t, r) {
|
|
4245
4267
|
if (window.emMessageBus) {
|
|
4246
4268
|
const n = document.createElement("style");
|
|
4247
4269
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4249,20 +4271,20 @@ function Ni(e, t, r) {
|
|
|
4249
4271
|
});
|
|
4250
4272
|
}
|
|
4251
4273
|
}
|
|
4252
|
-
function
|
|
4253
|
-
|
|
4274
|
+
function $i(e) {
|
|
4275
|
+
ur(e, "svelte-1oqxq1j", ".TransactionHistoryWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%}.TransactionHistoryWrapper.TransactionHistoryWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.TransactionHistoryTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.TransactionHistoryTitleMobile{font-size:var(--emw--size-standard, 16px)}.TransactionHistoryTitleNone{display:none}.TransactionHistoryIframeWrapper iframe{border:none;width:100%;height:85vh}");
|
|
4254
4276
|
}
|
|
4255
|
-
function
|
|
4277
|
+
function Ri(e) {
|
|
4256
4278
|
let t, r, n, i, o, a, s, l, u, h, c = (
|
|
4257
4279
|
/*$_*/
|
|
4258
4280
|
e[3]("titleTransactionHistory") + ""
|
|
4259
4281
|
), f, p, v;
|
|
4260
4282
|
return {
|
|
4261
4283
|
c() {
|
|
4262
|
-
t = I("div"), r = G("svg"), n = G("defs"), i = G("style"), o = re(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = G("g"), s = G("g"), l = G("path"), u =
|
|
4284
|
+
t = I("div"), r = G("svg"), n = G("defs"), i = G("style"), o = re(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = G("g"), s = G("g"), l = G("path"), u = Ie(), h = I("h2"), f = re(c), E(l, "class", "aaa"), E(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), E(l, "transform", "translate(15 15) rotate(180)"), E(s, "transform", "translate(20 158)"), E(a, "transform", "translate(-20 -158)"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(r, "width", "15"), E(r, "height", "15"), E(r, "viewBox", "0 0 15 15"), E(h, "class", "TransactionHistoryTitleMobile"), E(t, "class", "MenuReturnButton");
|
|
4263
4285
|
},
|
|
4264
4286
|
m(m, T) {
|
|
4265
|
-
ae(m, t, T), x(t, r), x(r, n), x(n, i), x(i, o), x(r, a), x(a, s), x(s, l), x(t, u), x(t, h), x(h, f), p || (v =
|
|
4287
|
+
ae(m, t, T), x(t, r), x(r, n), x(n, i), x(i, o), x(r, a), x(a, s), x(s, l), x(t, u), x(t, h), x(h, f), p || (v = cr(
|
|
4266
4288
|
t,
|
|
4267
4289
|
"click",
|
|
4268
4290
|
/*click_handler*/
|
|
@@ -4272,18 +4294,18 @@ function Ci(e) {
|
|
|
4272
4294
|
p(m, T) {
|
|
4273
4295
|
T & /*$_*/
|
|
4274
4296
|
8 && c !== (c = /*$_*/
|
|
4275
|
-
m[3]("titleTransactionHistory") + "") &&
|
|
4297
|
+
m[3]("titleTransactionHistory") + "") && qe(f, c);
|
|
4276
4298
|
},
|
|
4277
4299
|
d(m) {
|
|
4278
4300
|
m && Q(t), p = !1, v();
|
|
4279
4301
|
}
|
|
4280
4302
|
};
|
|
4281
4303
|
}
|
|
4282
|
-
function
|
|
4304
|
+
function Ui(e) {
|
|
4283
4305
|
let t, r, n;
|
|
4284
4306
|
return {
|
|
4285
4307
|
c() {
|
|
4286
|
-
t = I("div"), r = I("iframe"),
|
|
4308
|
+
t = I("div"), r = I("iframe"), tt(r.src, n = /*iframeUrl*/
|
|
4287
4309
|
e[2]) || E(r, "src", n), E(r, "title", "Transaction History Iframe"), E(t, "class", "TransactionHistoryIframeWrapper");
|
|
4288
4310
|
},
|
|
4289
4311
|
m(i, o) {
|
|
@@ -4291,7 +4313,7 @@ function Mi(e) {
|
|
|
4291
4313
|
},
|
|
4292
4314
|
p(i, o) {
|
|
4293
4315
|
o & /*iframeUrl*/
|
|
4294
|
-
4 && !
|
|
4316
|
+
4 && !tt(r.src, n = /*iframeUrl*/
|
|
4295
4317
|
i[2]) && E(r, "src", n);
|
|
4296
4318
|
},
|
|
4297
4319
|
d(i) {
|
|
@@ -4299,7 +4321,7 @@ function Mi(e) {
|
|
|
4299
4321
|
}
|
|
4300
4322
|
};
|
|
4301
4323
|
}
|
|
4302
|
-
function
|
|
4324
|
+
function Di(e) {
|
|
4303
4325
|
let t, r = (
|
|
4304
4326
|
/*$_*/
|
|
4305
4327
|
e[3]("loading") + ""
|
|
@@ -4314,31 +4336,31 @@ function $i(e) {
|
|
|
4314
4336
|
p(i, o) {
|
|
4315
4337
|
o & /*$_*/
|
|
4316
4338
|
8 && r !== (r = /*$_*/
|
|
4317
|
-
i[3]("loading") + "") &&
|
|
4339
|
+
i[3]("loading") + "") && qe(n, r);
|
|
4318
4340
|
},
|
|
4319
4341
|
d(i) {
|
|
4320
4342
|
i && Q(t);
|
|
4321
4343
|
}
|
|
4322
4344
|
};
|
|
4323
4345
|
}
|
|
4324
|
-
function
|
|
4346
|
+
function Gi(e) {
|
|
4325
4347
|
let t, r, n, i = (
|
|
4326
4348
|
/*$_*/
|
|
4327
4349
|
e[3]("titleTransactionHistory") + ""
|
|
4328
4350
|
), o, a, s = (
|
|
4329
4351
|
/*isMobile*/
|
|
4330
|
-
e[4] &&
|
|
4352
|
+
e[4] && Ri(e)
|
|
4331
4353
|
);
|
|
4332
4354
|
function l(c, f) {
|
|
4333
4355
|
return (
|
|
4334
4356
|
/*isLoading*/
|
|
4335
|
-
c[1] ?
|
|
4357
|
+
c[1] ? Di : Ui
|
|
4336
4358
|
);
|
|
4337
4359
|
}
|
|
4338
4360
|
let u = l(e), h = u(e);
|
|
4339
4361
|
return {
|
|
4340
4362
|
c() {
|
|
4341
|
-
t = I("div"), s && s.c(), r =
|
|
4363
|
+
t = I("div"), s && s.c(), r = Ie(), n = I("h2"), o = re(i), a = Ie(), h.c(), E(n, "class", "TransactionHistoryTitle " + /*isMobile*/
|
|
4342
4364
|
(e[4] ? "TransactionHistoryTitleNone" : "")), E(t, "class", "TransactionHistoryWrapper " + /*isMobile*/
|
|
4343
4365
|
(e[4] ? "TransactionHistoryWrapperMobile" : ""));
|
|
4344
4366
|
},
|
|
@@ -4349,7 +4371,7 @@ function Ri(e) {
|
|
|
4349
4371
|
/*isMobile*/
|
|
4350
4372
|
c[4] && s.p(c, f), f & /*$_*/
|
|
4351
4373
|
8 && i !== (i = /*$_*/
|
|
4352
|
-
c[3]("titleTransactionHistory") + "") &&
|
|
4374
|
+
c[3]("titleTransactionHistory") + "") && qe(o, i), u === (u = l(c)) && h ? h.p(c, f) : (h.d(1), h = u(c), h && (h.c(), h.m(t, null)));
|
|
4353
4375
|
},
|
|
4354
4376
|
i: w,
|
|
4355
4377
|
o: w,
|
|
@@ -4358,21 +4380,21 @@ function Ri(e) {
|
|
|
4358
4380
|
}
|
|
4359
4381
|
};
|
|
4360
4382
|
}
|
|
4361
|
-
function
|
|
4383
|
+
function Fi(e, t, r) {
|
|
4362
4384
|
let n;
|
|
4363
|
-
|
|
4364
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: a = "" } = t, { lang: s = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: h } = t, { translationurl: c = "" } = t, f, p = window.navigator.userAgent, v =
|
|
4385
|
+
ar(e, Oi, (g) => r(3, n = g));
|
|
4386
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: a = "" } = t, { lang: s = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: h } = t, { translationurl: c = "" } = t, f, p = window.navigator.userAgent, v = Ii(p) !== "PC", m = !0, T = "";
|
|
4365
4387
|
const $ = () => {
|
|
4366
4388
|
fetch(c).then((L) => L.json()).then((L) => {
|
|
4367
4389
|
Object.keys(L).forEach((C) => {
|
|
4368
|
-
|
|
4390
|
+
Tt(C, L[C]);
|
|
4369
4391
|
});
|
|
4370
4392
|
}).catch((L) => {
|
|
4371
4393
|
console.log(L);
|
|
4372
4394
|
});
|
|
4373
4395
|
};
|
|
4374
|
-
Object.keys(
|
|
4375
|
-
|
|
4396
|
+
Object.keys(Ht).forEach((g) => {
|
|
4397
|
+
Tt(g, Ht[g]);
|
|
4376
4398
|
});
|
|
4377
4399
|
const A = () => {
|
|
4378
4400
|
window.postMessage(
|
|
@@ -4401,13 +4423,13 @@ function Ui(e, t, r) {
|
|
|
4401
4423
|
}
|
|
4402
4424
|
);
|
|
4403
4425
|
}, R = () => {
|
|
4404
|
-
|
|
4426
|
+
Ni(s);
|
|
4405
4427
|
};
|
|
4406
|
-
|
|
4428
|
+
dr(() => () => {
|
|
4407
4429
|
});
|
|
4408
4430
|
const P = () => A();
|
|
4409
4431
|
function D(g) {
|
|
4410
|
-
|
|
4432
|
+
Ne[g ? "unshift" : "push"](() => {
|
|
4411
4433
|
f = g, r(0, f);
|
|
4412
4434
|
});
|
|
4413
4435
|
}
|
|
@@ -4417,9 +4439,9 @@ function Ui(e, t, r) {
|
|
|
4417
4439
|
e.$$.dirty & /*lang*/
|
|
4418
4440
|
512 && s && R(), e.$$.dirty & /*session, playerid, endpoint, lang*/
|
|
4419
4441
|
960 && o && a && i && s && S(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4420
|
-
1025 && l && f &&
|
|
4421
|
-
2049 && u && f &&
|
|
4422
|
-
4097 && h && f &&
|
|
4442
|
+
1025 && l && f && Li(f, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4443
|
+
2049 && u && f && Ci(f, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4444
|
+
4097 && h && f && Mi(f, `${h}.Style`), e.$$.dirty & /*translationurl*/
|
|
4423
4445
|
8192 && c && $();
|
|
4424
4446
|
}, [
|
|
4425
4447
|
f,
|
|
@@ -4440,14 +4462,14 @@ function Ui(e, t, r) {
|
|
|
4440
4462
|
D
|
|
4441
4463
|
];
|
|
4442
4464
|
}
|
|
4443
|
-
class
|
|
4465
|
+
class ji extends Br {
|
|
4444
4466
|
constructor(t) {
|
|
4445
|
-
super(),
|
|
4467
|
+
super(), Sr(
|
|
4446
4468
|
this,
|
|
4447
4469
|
t,
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4470
|
+
Fi,
|
|
4471
|
+
Gi,
|
|
4472
|
+
wt,
|
|
4451
4473
|
{
|
|
4452
4474
|
endpoint: 6,
|
|
4453
4475
|
session: 7,
|
|
@@ -4458,7 +4480,7 @@ class Di extends Tr {
|
|
|
4458
4480
|
mbsource: 12,
|
|
4459
4481
|
translationurl: 13
|
|
4460
4482
|
},
|
|
4461
|
-
|
|
4483
|
+
$i
|
|
4462
4484
|
);
|
|
4463
4485
|
}
|
|
4464
4486
|
get endpoint() {
|
|
@@ -4510,7 +4532,7 @@ class Di extends Tr {
|
|
|
4510
4532
|
this.$$set({ translationurl: t }), B();
|
|
4511
4533
|
}
|
|
4512
4534
|
}
|
|
4513
|
-
|
|
4535
|
+
wr(ji, { endpoint: {}, session: {}, playerid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4514
4536
|
export {
|
|
4515
|
-
|
|
4537
|
+
ji as P
|
|
4516
4538
|
};
|