@everymatrix/player-transaction-history 1.62.0 → 1.62.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-eDuMWpoa.js → PlayerTransactionHistory-BdLxYsFy.js} +699 -678
- package/components/PlayerTransactionHistory-CDRvnMmt.cjs +18 -0
- package/components/{PlayerTransactionHistory-3tjW-F8R.js → PlayerTransactionHistory-Ik4QADbZ.js} +713 -692
- 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 +1 -1
- package/components/PlayerTransactionHistory-CCwq95M1.cjs +0 -18
package/components/{PlayerTransactionHistory-eDuMWpoa.js → PlayerTransactionHistory-BdLxYsFy.js}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function w() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Bt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function rt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function oe(e) {
|
|
10
|
+
e.forEach(Bt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ye(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function At(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 nt(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 ar(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Pt(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function Bt(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 ur(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Pt(t, r));
|
|
36
36
|
}
|
|
37
37
|
function x(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function hr(e, t, r) {
|
|
41
|
+
const n = lr(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
|
-
const i =
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
43
|
+
const i = N("style");
|
|
44
|
+
i.id = t, i.textContent = r, cr(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function lr(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,45 +54,45 @@ function hr(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function cr(e, t) {
|
|
58
58
|
return x(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
61
61
|
t
|
|
62
62
|
), t.sheet;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function se(e, t, r) {
|
|
65
65
|
e.insertBefore(t, r || null);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function q(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function N(e) {
|
|
71
71
|
return document.createElement(e);
|
|
72
72
|
}
|
|
73
73
|
function G(e) {
|
|
74
74
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function te(e) {
|
|
77
77
|
return document.createTextNode(e);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function Le() {
|
|
80
|
+
return te(" ");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function fr(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 pr(e) {
|
|
89
89
|
return Array.from(e.childNodes);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Ke(e, t) {
|
|
92
92
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
93
93
|
t);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function mr(e) {
|
|
96
96
|
const t = {};
|
|
97
97
|
return e.childNodes.forEach(
|
|
98
98
|
/** @param {Element} node */
|
|
@@ -101,87 +101,87 @@ function pr(e) {
|
|
|
101
101
|
}
|
|
102
102
|
), t;
|
|
103
103
|
}
|
|
104
|
-
let
|
|
105
|
-
function
|
|
106
|
-
|
|
104
|
+
let re;
|
|
105
|
+
function ee(e) {
|
|
106
|
+
re = e;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
if (!
|
|
108
|
+
function dr() {
|
|
109
|
+
if (!re)
|
|
110
110
|
throw new Error("Function called outside component initialization");
|
|
111
|
-
return
|
|
111
|
+
return re;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
113
|
+
function br(e) {
|
|
114
|
+
dr().$$.on_mount.push(e);
|
|
115
115
|
}
|
|
116
|
-
const k = [],
|
|
116
|
+
const k = [], Ce = [];
|
|
117
117
|
let V = [];
|
|
118
|
-
const
|
|
119
|
-
let
|
|
120
|
-
function
|
|
121
|
-
|
|
118
|
+
const it = [], yr = /* @__PURE__ */ Promise.resolve();
|
|
119
|
+
let Me = !1;
|
|
120
|
+
function gr() {
|
|
121
|
+
Me || (Me = !0, yr.then(B));
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function $e(e) {
|
|
124
124
|
V.push(e);
|
|
125
125
|
}
|
|
126
|
-
const
|
|
126
|
+
const Se = /* @__PURE__ */ new Set();
|
|
127
127
|
let F = 0;
|
|
128
128
|
function B() {
|
|
129
129
|
if (F !== 0)
|
|
130
130
|
return;
|
|
131
|
-
const e =
|
|
131
|
+
const e = re;
|
|
132
132
|
do {
|
|
133
133
|
try {
|
|
134
134
|
for (; F < k.length; ) {
|
|
135
135
|
const t = k[F];
|
|
136
|
-
F++,
|
|
136
|
+
F++, ee(t), vr(t.$$);
|
|
137
137
|
}
|
|
138
138
|
} catch (t) {
|
|
139
139
|
throw k.length = 0, F = 0, t;
|
|
140
140
|
}
|
|
141
|
-
for (
|
|
142
|
-
|
|
141
|
+
for (ee(null), k.length = 0, F = 0; Ce.length; )
|
|
142
|
+
Ce.pop()();
|
|
143
143
|
for (let t = 0; t < V.length; t += 1) {
|
|
144
144
|
const r = V[t];
|
|
145
|
-
|
|
145
|
+
Se.has(r) || (Se.add(r), r());
|
|
146
146
|
}
|
|
147
147
|
V.length = 0;
|
|
148
148
|
} while (k.length);
|
|
149
|
-
for (;
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
for (; it.length; )
|
|
150
|
+
it.pop()();
|
|
151
|
+
Me = !1, Se.clear(), ee(e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function vr(e) {
|
|
154
154
|
if (e.fragment !== null) {
|
|
155
|
-
e.update(),
|
|
155
|
+
e.update(), oe(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($e);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function _r(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 Er = /* @__PURE__ */ new Set();
|
|
165
|
+
function xr(e, t) {
|
|
166
|
+
e && e.i && (Er.delete(e), e.i(t));
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Tr(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(
|
|
172
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
173
|
-
}), i.forEach(
|
|
170
|
+
n && n.m(t, r), $e(() => {
|
|
171
|
+
const o = e.$$.on_mount.map(Bt).filter(Ye);
|
|
172
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
|
|
173
|
+
}), i.forEach($e);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function Hr(e, t) {
|
|
176
176
|
const r = e.$$;
|
|
177
|
-
r.fragment !== null && (
|
|
177
|
+
r.fragment !== null && (_r(r.after_update), oe(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 Sr(e, t) {
|
|
180
|
+
e.$$.dirty[0] === -1 && (k.push(e), gr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
const l =
|
|
184
|
-
|
|
182
|
+
function wr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
183
|
+
const l = re;
|
|
184
|
+
ee(e);
|
|
185
185
|
const u = e.$$ = {
|
|
186
186
|
fragment: null,
|
|
187
187
|
ctx: [],
|
|
@@ -189,7 +189,7 @@ function Sr(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: rt(),
|
|
193
193
|
// lifecycle
|
|
194
194
|
on_mount: [],
|
|
195
195
|
on_destroy: [],
|
|
@@ -198,7 +198,7 @@ function Sr(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: rt(),
|
|
202
202
|
dirty: s,
|
|
203
203
|
skip_bound: !1,
|
|
204
204
|
root: t.target || l.$$.root
|
|
@@ -206,20 +206,20 @@ function Sr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
206
206
|
a && a(u.root);
|
|
207
207
|
let h = !1;
|
|
208
208
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
209
|
-
const
|
|
210
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
|
211
|
-
}) : [], u.update(), h = !0,
|
|
209
|
+
const g = p.length ? p[0] : f;
|
|
210
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), h && Sr(e, c)), f;
|
|
211
|
+
}) : [], u.update(), h = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
212
212
|
if (t.hydrate) {
|
|
213
|
-
const c =
|
|
214
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
213
|
+
const c = pr(t.target);
|
|
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 && xr(e.$$.fragment), Tr(e, t.target, t.anchor), B();
|
|
218
218
|
}
|
|
219
|
-
|
|
219
|
+
ee(l);
|
|
220
220
|
}
|
|
221
|
-
let
|
|
222
|
-
typeof HTMLElement == "function" && (
|
|
221
|
+
let Ot;
|
|
222
|
+
typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
223
223
|
/** The Svelte component constructor */
|
|
224
224
|
$$ctor;
|
|
225
225
|
/** Slots */
|
|
@@ -261,24 +261,24 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
|
261
261
|
let o;
|
|
262
262
|
return {
|
|
263
263
|
c: function() {
|
|
264
|
-
o =
|
|
264
|
+
o = N("slot"), i !== "default" && E(o, "name", i);
|
|
265
265
|
},
|
|
266
266
|
/**
|
|
267
267
|
* @param {HTMLElement} target
|
|
268
268
|
* @param {HTMLElement} [anchor]
|
|
269
269
|
*/
|
|
270
270
|
m: function(l, u) {
|
|
271
|
-
|
|
271
|
+
se(l, o, u);
|
|
272
272
|
},
|
|
273
273
|
d: function(l) {
|
|
274
|
-
l &&
|
|
274
|
+
l && q(o);
|
|
275
275
|
}
|
|
276
276
|
};
|
|
277
277
|
};
|
|
278
278
|
};
|
|
279
279
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
280
280
|
return;
|
|
281
|
-
const t = {}, r =
|
|
281
|
+
const t = {}, r = mr(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 Br(e, t, r, n, i, o) {
|
|
369
|
+
let a = class extends Ot {
|
|
370
370
|
constructor() {
|
|
371
371
|
super(e, r, i), this.$$p_d = t;
|
|
372
372
|
}
|
|
@@ -394,7 +394,7 @@ function wr(e, t, r, n, i, o) {
|
|
|
394
394
|
}), e.element = /** @type {any} */
|
|
395
395
|
a, a;
|
|
396
396
|
}
|
|
397
|
-
class
|
|
397
|
+
class Ar {
|
|
398
398
|
/**
|
|
399
399
|
* ### PRIVATE API
|
|
400
400
|
*
|
|
@@ -413,7 +413,7 @@ class Br {
|
|
|
413
413
|
$$set = void 0;
|
|
414
414
|
/** @returns {void} */
|
|
415
415
|
$destroy() {
|
|
416
|
-
|
|
416
|
+
Hr(this, 1), this.$destroy = w;
|
|
417
417
|
}
|
|
418
418
|
/**
|
|
419
419
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -422,7 +422,7 @@ class Br {
|
|
|
422
422
|
* @returns {() => void}
|
|
423
423
|
*/
|
|
424
424
|
$on(t, r) {
|
|
425
|
-
if (!
|
|
425
|
+
if (!Ye(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 Br {
|
|
|
435
435
|
* @returns {void}
|
|
436
436
|
*/
|
|
437
437
|
$set(t) {
|
|
438
|
-
this.$$set && !
|
|
438
|
+
this.$$set && !ar(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 Pr = "4";
|
|
442
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Pr);
|
|
443
443
|
/*! *****************************************************************************
|
|
444
444
|
Copyright (c) Microsoft Corporation.
|
|
445
445
|
|
|
@@ -454,43 +454,24 @@ 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 Re = function(e, t) {
|
|
458
|
+
return Re = 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
|
+
}, Re(e, t);
|
|
464
464
|
};
|
|
465
|
-
function
|
|
465
|
+
function ae(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
|
+
Re(e, t);
|
|
469
469
|
function r() {
|
|
470
470
|
this.constructor = e;
|
|
471
471
|
}
|
|
472
472
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
473
473
|
}
|
|
474
|
-
|
|
475
|
-
return y = Object.assign || function(t) {
|
|
476
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
477
|
-
r = arguments[n];
|
|
478
|
-
for (var o in r)
|
|
479
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
480
|
-
}
|
|
481
|
-
return t;
|
|
482
|
-
}, y.apply(this, arguments);
|
|
483
|
-
};
|
|
484
|
-
function Pr(e, t) {
|
|
485
|
-
var r = {};
|
|
486
|
-
for (var n in e)
|
|
487
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
488
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
489
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
490
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
491
|
-
return r;
|
|
492
|
-
}
|
|
493
|
-
function $e(e) {
|
|
474
|
+
function Ue(e) {
|
|
494
475
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
495
476
|
if (r)
|
|
496
477
|
return r.call(e);
|
|
@@ -502,7 +483,7 @@ function $e(e) {
|
|
|
502
483
|
};
|
|
503
484
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
504
485
|
}
|
|
505
|
-
function
|
|
486
|
+
function De(e, t) {
|
|
506
487
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
507
488
|
if (!r)
|
|
508
489
|
return e;
|
|
@@ -522,22 +503,22 @@ function Re(e, t) {
|
|
|
522
503
|
}
|
|
523
504
|
return o;
|
|
524
505
|
}
|
|
525
|
-
function
|
|
526
|
-
if (
|
|
506
|
+
function Ge(e, t, r) {
|
|
507
|
+
if (arguments.length === 2)
|
|
527
508
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
528
509
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
529
510
|
return e.concat(o || t);
|
|
530
511
|
}
|
|
531
|
-
function
|
|
512
|
+
function I(e) {
|
|
532
513
|
return typeof e == "function";
|
|
533
514
|
}
|
|
534
|
-
function
|
|
515
|
+
function It(e) {
|
|
535
516
|
var t = function(n) {
|
|
536
517
|
Error.call(n), n.stack = new Error().stack;
|
|
537
518
|
}, r = e(t);
|
|
538
519
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
539
520
|
}
|
|
540
|
-
var
|
|
521
|
+
var we = It(function(e) {
|
|
541
522
|
return function(r) {
|
|
542
523
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
543
524
|
` + r.map(function(n, i) {
|
|
@@ -546,13 +527,13 @@ var He = Pt(function(e) {
|
|
|
546
527
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
547
528
|
};
|
|
548
529
|
});
|
|
549
|
-
function
|
|
530
|
+
function Fe(e, t) {
|
|
550
531
|
if (e) {
|
|
551
532
|
var r = e.indexOf(t);
|
|
552
533
|
0 <= r && e.splice(r, 1);
|
|
553
534
|
}
|
|
554
535
|
}
|
|
555
|
-
var
|
|
536
|
+
var ve = function() {
|
|
556
537
|
function e(t) {
|
|
557
538
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
558
539
|
}
|
|
@@ -564,7 +545,7 @@ var ge = function() {
|
|
|
564
545
|
if (a)
|
|
565
546
|
if (this._parentage = null, Array.isArray(a))
|
|
566
547
|
try {
|
|
567
|
-
for (var s =
|
|
548
|
+
for (var s = Ue(a), l = s.next(); !l.done; l = s.next()) {
|
|
568
549
|
var u = l.value;
|
|
569
550
|
u.remove(this);
|
|
570
551
|
}
|
|
@@ -581,22 +562,22 @@ var ge = function() {
|
|
|
581
562
|
else
|
|
582
563
|
a.remove(this);
|
|
583
564
|
var h = this.initialTeardown;
|
|
584
|
-
if (
|
|
565
|
+
if (I(h))
|
|
585
566
|
try {
|
|
586
567
|
h();
|
|
587
568
|
} catch (m) {
|
|
588
|
-
o = m instanceof
|
|
569
|
+
o = m instanceof we ? m.errors : [m];
|
|
589
570
|
}
|
|
590
571
|
var c = this._finalizers;
|
|
591
572
|
if (c) {
|
|
592
573
|
this._finalizers = null;
|
|
593
574
|
try {
|
|
594
|
-
for (var f =
|
|
595
|
-
var
|
|
575
|
+
for (var f = Ue(c), p = f.next(); !p.done; p = f.next()) {
|
|
576
|
+
var g = p.value;
|
|
596
577
|
try {
|
|
597
|
-
|
|
578
|
+
ot(g);
|
|
598
579
|
} catch (m) {
|
|
599
|
-
o = o ?? [], m instanceof
|
|
580
|
+
o = o ?? [], m instanceof we ? o = Ge(Ge([], De(o)), De(m.errors)) : o.push(m);
|
|
600
581
|
}
|
|
601
582
|
}
|
|
602
583
|
} catch (m) {
|
|
@@ -611,13 +592,13 @@ var ge = function() {
|
|
|
611
592
|
}
|
|
612
593
|
}
|
|
613
594
|
if (o)
|
|
614
|
-
throw new
|
|
595
|
+
throw new we(o);
|
|
615
596
|
}
|
|
616
597
|
}, e.prototype.add = function(t) {
|
|
617
598
|
var r;
|
|
618
599
|
if (t && t !== this)
|
|
619
600
|
if (this.closed)
|
|
620
|
-
|
|
601
|
+
ot(t);
|
|
621
602
|
else {
|
|
622
603
|
if (t instanceof e) {
|
|
623
604
|
if (t.closed || t._hasParent(this))
|
|
@@ -634,56 +615,52 @@ var ge = function() {
|
|
|
634
615
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
635
616
|
}, e.prototype._removeParent = function(t) {
|
|
636
617
|
var r = this._parentage;
|
|
637
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
618
|
+
r === t ? this._parentage = null : Array.isArray(r) && Fe(r, t);
|
|
638
619
|
}, e.prototype.remove = function(t) {
|
|
639
620
|
var r = this._finalizers;
|
|
640
|
-
r &&
|
|
621
|
+
r && Fe(r, t), t instanceof e && t._removeParent(this);
|
|
641
622
|
}, e.EMPTY = function() {
|
|
642
623
|
var t = new e();
|
|
643
624
|
return t.closed = !0, t;
|
|
644
625
|
}(), e;
|
|
645
|
-
}(),
|
|
646
|
-
function
|
|
647
|
-
return e instanceof
|
|
648
|
-
}
|
|
649
|
-
function
|
|
650
|
-
|
|
651
|
-
}
|
|
652
|
-
var
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
Promise: void 0,
|
|
656
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
657
|
-
useDeprecatedNextContext: !1
|
|
658
|
-
}, Or = {
|
|
626
|
+
}(), Nt = ve.EMPTY;
|
|
627
|
+
function Lt(e) {
|
|
628
|
+
return e instanceof ve || e && "closed" in e && I(e.remove) && I(e.add) && I(e.unsubscribe);
|
|
629
|
+
}
|
|
630
|
+
function ot(e) {
|
|
631
|
+
I(e) ? e() : e.unsubscribe();
|
|
632
|
+
}
|
|
633
|
+
var Or = {
|
|
634
|
+
Promise: void 0
|
|
635
|
+
}, Ir = {
|
|
659
636
|
setTimeout: function(e, t) {
|
|
660
637
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
661
638
|
r[n - 2] = arguments[n];
|
|
662
|
-
return setTimeout.apply(void 0,
|
|
639
|
+
return setTimeout.apply(void 0, Ge([e, t], De(r)));
|
|
663
640
|
},
|
|
664
641
|
clearTimeout: function(e) {
|
|
665
642
|
return clearTimeout(e);
|
|
666
643
|
},
|
|
667
644
|
delegate: void 0
|
|
668
645
|
};
|
|
669
|
-
function
|
|
670
|
-
|
|
646
|
+
function Nr(e) {
|
|
647
|
+
Ir.setTimeout(function() {
|
|
671
648
|
throw e;
|
|
672
649
|
});
|
|
673
650
|
}
|
|
674
|
-
function
|
|
651
|
+
function st() {
|
|
675
652
|
}
|
|
676
653
|
function pe(e) {
|
|
677
654
|
e();
|
|
678
655
|
}
|
|
679
|
-
var
|
|
680
|
-
|
|
656
|
+
var Ct = function(e) {
|
|
657
|
+
ae(t, e);
|
|
681
658
|
function t(r) {
|
|
682
659
|
var n = e.call(this) || this;
|
|
683
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
660
|
+
return n.isStopped = !1, r ? (n.destination = r, Lt(r) && r.add(n)) : n.destination = Mr, n;
|
|
684
661
|
}
|
|
685
662
|
return t.create = function(r, n, i) {
|
|
686
|
-
return new
|
|
663
|
+
return new je(r, n, i);
|
|
687
664
|
}, t.prototype.next = function(r) {
|
|
688
665
|
this.isStopped || this._next(r);
|
|
689
666
|
}, t.prototype.error = function(r) {
|
|
@@ -707,11 +684,7 @@ var Lt = function(e) {
|
|
|
707
684
|
this.unsubscribe();
|
|
708
685
|
}
|
|
709
686
|
}, t;
|
|
710
|
-
}(
|
|
711
|
-
function Se(e, t) {
|
|
712
|
-
return Nr.call(e, t);
|
|
713
|
-
}
|
|
714
|
-
var Lr = function() {
|
|
687
|
+
}(ve), Lr = function() {
|
|
715
688
|
function e(t) {
|
|
716
689
|
this.partialObserver = t;
|
|
717
690
|
}
|
|
@@ -742,41 +715,29 @@ var Lr = function() {
|
|
|
742
715
|
le(r);
|
|
743
716
|
}
|
|
744
717
|
}, e;
|
|
745
|
-
}(),
|
|
746
|
-
|
|
718
|
+
}(), je = function(e) {
|
|
719
|
+
ae(t, e);
|
|
747
720
|
function t(r, n, i) {
|
|
748
721
|
var o = e.call(this) || this, a;
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
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;
|
|
722
|
+
return I(r) || !r ? a = {
|
|
723
|
+
next: r ?? void 0,
|
|
724
|
+
error: n ?? void 0,
|
|
725
|
+
complete: i ?? void 0
|
|
726
|
+
} : a = r, o.destination = new Lr(a), o;
|
|
766
727
|
}
|
|
767
728
|
return t;
|
|
768
|
-
}(
|
|
729
|
+
}(Ct);
|
|
769
730
|
function le(e) {
|
|
770
|
-
|
|
731
|
+
Nr(e);
|
|
771
732
|
}
|
|
772
733
|
function Cr(e) {
|
|
773
734
|
throw e;
|
|
774
735
|
}
|
|
775
736
|
var Mr = {
|
|
776
737
|
closed: !0,
|
|
777
|
-
next:
|
|
738
|
+
next: st,
|
|
778
739
|
error: Cr,
|
|
779
|
-
complete:
|
|
740
|
+
complete: st
|
|
780
741
|
}, $r = function() {
|
|
781
742
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
782
743
|
}();
|
|
@@ -790,7 +751,7 @@ function Ur(e) {
|
|
|
790
751
|
}, r);
|
|
791
752
|
};
|
|
792
753
|
}
|
|
793
|
-
var
|
|
754
|
+
var at = function() {
|
|
794
755
|
function e(t) {
|
|
795
756
|
t && (this._subscribe = t);
|
|
796
757
|
}
|
|
@@ -798,7 +759,7 @@ var ot = function() {
|
|
|
798
759
|
var r = new e();
|
|
799
760
|
return r.source = this, r.operator = t, r;
|
|
800
761
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
801
|
-
var i = this, o = Gr(t) ? t : new
|
|
762
|
+
var i = this, o = Gr(t) ? t : new je(t, r, n);
|
|
802
763
|
return pe(function() {
|
|
803
764
|
var a = i, s = a.operator, l = a.source;
|
|
804
765
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -811,8 +772,8 @@ var ot = function() {
|
|
|
811
772
|
}
|
|
812
773
|
}, e.prototype.forEach = function(t, r) {
|
|
813
774
|
var n = this;
|
|
814
|
-
return r =
|
|
815
|
-
var a = new
|
|
775
|
+
return r = ut(r), new r(function(i, o) {
|
|
776
|
+
var a = new je({
|
|
816
777
|
next: function(s) {
|
|
817
778
|
try {
|
|
818
779
|
t(s);
|
|
@@ -836,7 +797,7 @@ var ot = function() {
|
|
|
836
797
|
return Ur(t)(this);
|
|
837
798
|
}, e.prototype.toPromise = function(t) {
|
|
838
799
|
var r = this;
|
|
839
|
-
return t =
|
|
800
|
+
return t = ut(t), new t(function(n, i) {
|
|
840
801
|
var o;
|
|
841
802
|
r.subscribe(function(a) {
|
|
842
803
|
return o = a;
|
|
@@ -850,28 +811,28 @@ var ot = function() {
|
|
|
850
811
|
return new e(t);
|
|
851
812
|
}, e;
|
|
852
813
|
}();
|
|
853
|
-
function
|
|
814
|
+
function ut(e) {
|
|
854
815
|
var t;
|
|
855
|
-
return (t = e ??
|
|
816
|
+
return (t = e ?? Or.Promise) !== null && t !== void 0 ? t : Promise;
|
|
856
817
|
}
|
|
857
818
|
function Dr(e) {
|
|
858
|
-
return e &&
|
|
819
|
+
return e && I(e.next) && I(e.error) && I(e.complete);
|
|
859
820
|
}
|
|
860
821
|
function Gr(e) {
|
|
861
|
-
return e && e instanceof
|
|
822
|
+
return e && e instanceof Ct || Dr(e) && Lt(e);
|
|
862
823
|
}
|
|
863
|
-
var Fr =
|
|
824
|
+
var Fr = It(function(e) {
|
|
864
825
|
return function() {
|
|
865
826
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
866
827
|
};
|
|
867
|
-
}),
|
|
868
|
-
|
|
828
|
+
}), Mt = function(e) {
|
|
829
|
+
ae(t, e);
|
|
869
830
|
function t() {
|
|
870
831
|
var r = e.call(this) || this;
|
|
871
832
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
872
833
|
}
|
|
873
834
|
return t.prototype.lift = function(r) {
|
|
874
|
-
var n = new
|
|
835
|
+
var n = new ht(this, this);
|
|
875
836
|
return n.operator = r, n;
|
|
876
837
|
}, t.prototype._throwIfClosed = function() {
|
|
877
838
|
if (this.closed)
|
|
@@ -883,7 +844,7 @@ var Fr = Pt(function(e) {
|
|
|
883
844
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
884
845
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
885
846
|
try {
|
|
886
|
-
for (var a =
|
|
847
|
+
for (var a = Ue(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
887
848
|
var l = s.value;
|
|
888
849
|
l.next(r);
|
|
889
850
|
}
|
|
@@ -932,20 +893,20 @@ var Fr = Pt(function(e) {
|
|
|
932
893
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
933
894
|
}, t.prototype._innerSubscribe = function(r) {
|
|
934
895
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
935
|
-
return o || a ?
|
|
936
|
-
n.currentObservers = null,
|
|
896
|
+
return o || a ? Nt : (this.currentObservers = null, s.push(r), new ve(function() {
|
|
897
|
+
n.currentObservers = null, Fe(s, r);
|
|
937
898
|
}));
|
|
938
899
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
939
900
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
940
901
|
i ? r.error(o) : a && r.complete();
|
|
941
902
|
}, t.prototype.asObservable = function() {
|
|
942
|
-
var r = new
|
|
903
|
+
var r = new at();
|
|
943
904
|
return r.source = this, r;
|
|
944
905
|
}, t.create = function(r, n) {
|
|
945
|
-
return new
|
|
906
|
+
return new ht(r, n);
|
|
946
907
|
}, t;
|
|
947
|
-
}(
|
|
948
|
-
|
|
908
|
+
}(at), ht = function(e) {
|
|
909
|
+
ae(t, e);
|
|
949
910
|
function t(r, n) {
|
|
950
911
|
var i = e.call(this) || this;
|
|
951
912
|
return i.destination = r, i.source = n, i;
|
|
@@ -961,17 +922,17 @@ var Fr = Pt(function(e) {
|
|
|
961
922
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
962
923
|
}, t.prototype._subscribe = function(r) {
|
|
963
924
|
var n, i;
|
|
964
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
925
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Nt;
|
|
965
926
|
}, t;
|
|
966
|
-
}(
|
|
927
|
+
}(Mt), $t = {
|
|
967
928
|
now: function() {
|
|
968
|
-
return (
|
|
929
|
+
return ($t.delegate || Date).now();
|
|
969
930
|
},
|
|
970
931
|
delegate: void 0
|
|
971
932
|
}, jr = function(e) {
|
|
972
|
-
|
|
933
|
+
ae(t, e);
|
|
973
934
|
function t(r, n, i) {
|
|
974
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
935
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = $t);
|
|
975
936
|
var o = e.call(this) || this;
|
|
976
937
|
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;
|
|
977
938
|
}
|
|
@@ -991,24 +952,24 @@ var Fr = Pt(function(e) {
|
|
|
991
952
|
u && o.splice(0, u + 1);
|
|
992
953
|
}
|
|
993
954
|
}, t;
|
|
994
|
-
}(
|
|
995
|
-
const
|
|
996
|
-
if (
|
|
955
|
+
}(Mt);
|
|
956
|
+
const lt = [], ct = {}, kr = (e, t = 0) => {
|
|
957
|
+
if (lt.indexOf(e) == -1) {
|
|
997
958
|
const r = new jr(t);
|
|
998
|
-
|
|
959
|
+
ct[e] = r, lt.push(e);
|
|
999
960
|
}
|
|
1000
|
-
return
|
|
961
|
+
return ct[e];
|
|
1001
962
|
}, j = [];
|
|
1002
963
|
function Vr(e, t) {
|
|
1003
964
|
return {
|
|
1004
|
-
subscribe:
|
|
965
|
+
subscribe: _e(e, t).subscribe
|
|
1005
966
|
};
|
|
1006
967
|
}
|
|
1007
|
-
function
|
|
968
|
+
function _e(e, t = w) {
|
|
1008
969
|
let r;
|
|
1009
970
|
const n = /* @__PURE__ */ new Set();
|
|
1010
971
|
function i(s) {
|
|
1011
|
-
if (
|
|
972
|
+
if (At(e, s) && (e = s, r)) {
|
|
1012
973
|
const l = !j.length;
|
|
1013
974
|
for (const u of n)
|
|
1014
975
|
u[1](), j.push(u, e);
|
|
@@ -1030,7 +991,7 @@ function ve(e, t = w) {
|
|
|
1030
991
|
}
|
|
1031
992
|
return { set: i, update: o, subscribe: a };
|
|
1032
993
|
}
|
|
1033
|
-
function
|
|
994
|
+
function Q(e, t, r) {
|
|
1034
995
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1035
996
|
if (!i.every(Boolean))
|
|
1036
997
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1043,11 +1004,11 @@ function J(e, t, r) {
|
|
|
1043
1004
|
if (h)
|
|
1044
1005
|
return;
|
|
1045
1006
|
c();
|
|
1046
|
-
const
|
|
1047
|
-
o ? a(
|
|
1007
|
+
const g = t(n ? u[0] : u, a, s);
|
|
1008
|
+
o ? a(g) : c = Ye(g) ? g : w;
|
|
1048
1009
|
}, p = i.map(
|
|
1049
|
-
(
|
|
1050
|
-
|
|
1010
|
+
(g, m) => Pt(
|
|
1011
|
+
g,
|
|
1051
1012
|
(T) => {
|
|
1052
1013
|
u[m] = T, h &= ~(1 << m), l && f();
|
|
1053
1014
|
},
|
|
@@ -1057,7 +1018,7 @@ function J(e, t, r) {
|
|
|
1057
1018
|
)
|
|
1058
1019
|
);
|
|
1059
1020
|
return l = !0, f(), function() {
|
|
1060
|
-
|
|
1021
|
+
oe(p), c(), l = !1;
|
|
1061
1022
|
};
|
|
1062
1023
|
});
|
|
1063
1024
|
}
|
|
@@ -1081,29 +1042,29 @@ function Jr(e) {
|
|
|
1081
1042
|
function Yr(e) {
|
|
1082
1043
|
return Array.isArray(e) ? [] : {};
|
|
1083
1044
|
}
|
|
1084
|
-
function
|
|
1085
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1045
|
+
function ne(e, t) {
|
|
1046
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? X(Yr(e), e, t) : e;
|
|
1086
1047
|
}
|
|
1087
1048
|
function Kr(e, t, r) {
|
|
1088
1049
|
return e.concat(t).map(function(n) {
|
|
1089
|
-
return
|
|
1050
|
+
return ne(n, r);
|
|
1090
1051
|
});
|
|
1091
1052
|
}
|
|
1092
1053
|
function en(e, t) {
|
|
1093
1054
|
if (!t.customMerge)
|
|
1094
|
-
return
|
|
1055
|
+
return X;
|
|
1095
1056
|
var r = t.customMerge(e);
|
|
1096
|
-
return typeof r == "function" ? r :
|
|
1057
|
+
return typeof r == "function" ? r : X;
|
|
1097
1058
|
}
|
|
1098
1059
|
function tn(e) {
|
|
1099
1060
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1100
1061
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1101
1062
|
}) : [];
|
|
1102
1063
|
}
|
|
1103
|
-
function
|
|
1064
|
+
function ft(e) {
|
|
1104
1065
|
return Object.keys(e).concat(tn(e));
|
|
1105
1066
|
}
|
|
1106
|
-
function
|
|
1067
|
+
function Rt(e, t) {
|
|
1107
1068
|
try {
|
|
1108
1069
|
return t in e;
|
|
1109
1070
|
} catch {
|
|
@@ -1111,129 +1072,179 @@ function $t(e, t) {
|
|
|
1111
1072
|
}
|
|
1112
1073
|
}
|
|
1113
1074
|
function rn(e, t) {
|
|
1114
|
-
return
|
|
1075
|
+
return Rt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1115
1076
|
}
|
|
1116
1077
|
function nn(e, t, r) {
|
|
1117
1078
|
var n = {};
|
|
1118
|
-
return r.isMergeableObject(e) &&
|
|
1119
|
-
n[i] =
|
|
1120
|
-
}),
|
|
1121
|
-
rn(e, i) || (
|
|
1079
|
+
return r.isMergeableObject(e) && ft(e).forEach(function(i) {
|
|
1080
|
+
n[i] = ne(e[i], r);
|
|
1081
|
+
}), ft(t).forEach(function(i) {
|
|
1082
|
+
rn(e, i) || (Rt(e, i) && r.isMergeableObject(t[i]) ? n[i] = en(i, r)(e[i], t[i], r) : n[i] = ne(t[i], r));
|
|
1122
1083
|
}), n;
|
|
1123
1084
|
}
|
|
1124
|
-
function
|
|
1125
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Kr, r.isMergeableObject = r.isMergeableObject || Wr, r.cloneUnlessOtherwiseSpecified =
|
|
1085
|
+
function X(e, t, r) {
|
|
1086
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Kr, r.isMergeableObject = r.isMergeableObject || Wr, r.cloneUnlessOtherwiseSpecified = ne;
|
|
1126
1087
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1127
|
-
return o ? n ? r.arrayMerge(e, t, r) : nn(e, t, r) :
|
|
1088
|
+
return o ? n ? r.arrayMerge(e, t, r) : nn(e, t, r) : ne(t, r);
|
|
1128
1089
|
}
|
|
1129
|
-
|
|
1090
|
+
X.all = function(t, r) {
|
|
1130
1091
|
if (!Array.isArray(t))
|
|
1131
1092
|
throw new Error("first argument should be an array");
|
|
1132
1093
|
return t.reduce(function(n, i) {
|
|
1133
|
-
return
|
|
1094
|
+
return X(n, i, r);
|
|
1134
1095
|
}, {});
|
|
1135
1096
|
};
|
|
1136
|
-
var on =
|
|
1097
|
+
var on = X, sn = on;
|
|
1137
1098
|
const an = /* @__PURE__ */ Xr(sn);
|
|
1138
|
-
function
|
|
1139
|
-
|
|
1099
|
+
var ke = function(e, t) {
|
|
1100
|
+
return ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1101
|
+
r.__proto__ = n;
|
|
1102
|
+
} || function(r, n) {
|
|
1103
|
+
for (var i in n)
|
|
1104
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1105
|
+
}, ke(e, t);
|
|
1106
|
+
};
|
|
1107
|
+
function Ee(e, t) {
|
|
1108
|
+
if (typeof t != "function" && t !== null)
|
|
1109
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1110
|
+
ke(e, t);
|
|
1111
|
+
function r() {
|
|
1112
|
+
this.constructor = e;
|
|
1113
|
+
}
|
|
1114
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1115
|
+
}
|
|
1116
|
+
var A = function() {
|
|
1117
|
+
return A = Object.assign || function(t) {
|
|
1118
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1119
|
+
r = arguments[n];
|
|
1120
|
+
for (var o in r)
|
|
1121
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1122
|
+
}
|
|
1123
|
+
return t;
|
|
1124
|
+
}, A.apply(this, arguments);
|
|
1125
|
+
};
|
|
1126
|
+
function un(e, t) {
|
|
1127
|
+
var r = {};
|
|
1128
|
+
for (var n in e)
|
|
1129
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1130
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1131
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1132
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1133
|
+
return r;
|
|
1134
|
+
}
|
|
1135
|
+
function Be(e, t, r) {
|
|
1136
|
+
if (r || arguments.length === 2)
|
|
1137
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1138
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1139
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1140
|
+
}
|
|
1141
|
+
function Ae(e, t) {
|
|
1142
|
+
var r = t && t.cache ? t.cache : dn, n = t && t.serializer ? t.serializer : pn, i = t && t.strategy ? t.strategy : cn;
|
|
1140
1143
|
return i(e, {
|
|
1141
1144
|
cache: r,
|
|
1142
1145
|
serializer: n
|
|
1143
1146
|
});
|
|
1144
1147
|
}
|
|
1145
|
-
function
|
|
1148
|
+
function hn(e) {
|
|
1146
1149
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1147
1150
|
}
|
|
1148
|
-
function
|
|
1149
|
-
var i =
|
|
1151
|
+
function ln(e, t, r, n) {
|
|
1152
|
+
var i = hn(n) ? n : r(n), o = t.get(i);
|
|
1150
1153
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1151
1154
|
}
|
|
1152
1155
|
function Ut(e, t, r) {
|
|
1153
1156
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1154
1157
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1155
1158
|
}
|
|
1156
|
-
function
|
|
1159
|
+
function Dt(e, t, r, n, i) {
|
|
1157
1160
|
return r.bind(t, e, n, i);
|
|
1158
1161
|
}
|
|
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);
|
|
1165
|
-
}
|
|
1166
1162
|
function cn(e, t) {
|
|
1167
|
-
|
|
1163
|
+
var r = e.length === 1 ? ln : Ut;
|
|
1164
|
+
return Dt(e, this, r, t.cache.create(), t.serializer);
|
|
1168
1165
|
}
|
|
1169
|
-
|
|
1170
|
-
return
|
|
1171
|
-
};
|
|
1172
|
-
function Je() {
|
|
1173
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1166
|
+
function fn(e, t) {
|
|
1167
|
+
return Dt(e, this, Ut, t.cache.create(), t.serializer);
|
|
1174
1168
|
}
|
|
1175
|
-
|
|
1176
|
-
return
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1169
|
+
var pn = function() {
|
|
1170
|
+
return JSON.stringify(arguments);
|
|
1171
|
+
}, mn = (
|
|
1172
|
+
/** @class */
|
|
1173
|
+
function() {
|
|
1174
|
+
function e() {
|
|
1175
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1176
|
+
}
|
|
1177
|
+
return e.prototype.get = function(t) {
|
|
1178
|
+
return this.cache[t];
|
|
1179
|
+
}, e.prototype.set = function(t, r) {
|
|
1180
|
+
this.cache[t] = r;
|
|
1181
|
+
}, e;
|
|
1182
|
+
}()
|
|
1183
|
+
), dn = {
|
|
1182
1184
|
create: function() {
|
|
1183
|
-
return new
|
|
1185
|
+
return new mn();
|
|
1184
1186
|
}
|
|
1185
|
-
},
|
|
1186
|
-
variadic:
|
|
1187
|
-
|
|
1188
|
-
|
|
1187
|
+
}, Pe = {
|
|
1188
|
+
variadic: fn
|
|
1189
|
+
}, be = function() {
|
|
1190
|
+
return be = Object.assign || function(t) {
|
|
1191
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1192
|
+
r = arguments[n];
|
|
1193
|
+
for (var o in r)
|
|
1194
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1195
|
+
}
|
|
1196
|
+
return t;
|
|
1197
|
+
}, be.apply(this, arguments);
|
|
1198
|
+
};
|
|
1199
|
+
var d;
|
|
1189
1200
|
(function(e) {
|
|
1190
1201
|
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";
|
|
1191
1202
|
})(d || (d = {}));
|
|
1192
|
-
var
|
|
1203
|
+
var v;
|
|
1193
1204
|
(function(e) {
|
|
1194
1205
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1195
|
-
})(
|
|
1196
|
-
var
|
|
1206
|
+
})(v || (v = {}));
|
|
1207
|
+
var W;
|
|
1197
1208
|
(function(e) {
|
|
1198
1209
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1199
|
-
})(
|
|
1200
|
-
function
|
|
1201
|
-
return e.type ===
|
|
1202
|
-
}
|
|
1203
|
-
function mn(e) {
|
|
1204
|
-
return e.type === _.argument;
|
|
1210
|
+
})(W || (W = {}));
|
|
1211
|
+
function pt(e) {
|
|
1212
|
+
return e.type === v.literal;
|
|
1205
1213
|
}
|
|
1206
|
-
function
|
|
1207
|
-
return e.type ===
|
|
1214
|
+
function bn(e) {
|
|
1215
|
+
return e.type === v.argument;
|
|
1208
1216
|
}
|
|
1209
1217
|
function Gt(e) {
|
|
1210
|
-
return e.type ===
|
|
1218
|
+
return e.type === v.number;
|
|
1211
1219
|
}
|
|
1212
1220
|
function Ft(e) {
|
|
1213
|
-
return e.type ===
|
|
1221
|
+
return e.type === v.date;
|
|
1214
1222
|
}
|
|
1215
1223
|
function jt(e) {
|
|
1216
|
-
return e.type ===
|
|
1224
|
+
return e.type === v.time;
|
|
1217
1225
|
}
|
|
1218
1226
|
function kt(e) {
|
|
1219
|
-
return e.type ===
|
|
1220
|
-
}
|
|
1221
|
-
function dn(e) {
|
|
1222
|
-
return e.type === _.pound;
|
|
1227
|
+
return e.type === v.select;
|
|
1223
1228
|
}
|
|
1224
1229
|
function Vt(e) {
|
|
1225
|
-
return e.type ===
|
|
1230
|
+
return e.type === v.plural;
|
|
1231
|
+
}
|
|
1232
|
+
function yn(e) {
|
|
1233
|
+
return e.type === v.pound;
|
|
1226
1234
|
}
|
|
1227
1235
|
function Xt(e) {
|
|
1228
|
-
return
|
|
1236
|
+
return e.type === v.tag;
|
|
1229
1237
|
}
|
|
1230
|
-
function
|
|
1231
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1238
|
+
function Wt(e) {
|
|
1239
|
+
return !!(e && typeof e == "object" && e.type === W.number);
|
|
1232
1240
|
}
|
|
1233
|
-
|
|
1234
|
-
|
|
1241
|
+
function Ve(e) {
|
|
1242
|
+
return !!(e && typeof e == "object" && e.type === W.dateTime);
|
|
1243
|
+
}
|
|
1244
|
+
var zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, gn = /(?:[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;
|
|
1245
|
+
function vn(e) {
|
|
1235
1246
|
var t = {};
|
|
1236
|
-
return e.replace(
|
|
1247
|
+
return e.replace(gn, function(r) {
|
|
1237
1248
|
var n = r.length;
|
|
1238
1249
|
switch (r[0]) {
|
|
1239
1250
|
case "G":
|
|
@@ -1322,11 +1333,21 @@ function yn(e) {
|
|
|
1322
1333
|
return "";
|
|
1323
1334
|
}), t;
|
|
1324
1335
|
}
|
|
1325
|
-
var
|
|
1326
|
-
function
|
|
1336
|
+
var _ = function() {
|
|
1337
|
+
return _ = Object.assign || function(t) {
|
|
1338
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1339
|
+
r = arguments[n];
|
|
1340
|
+
for (var o in r)
|
|
1341
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1342
|
+
}
|
|
1343
|
+
return t;
|
|
1344
|
+
}, _.apply(this, arguments);
|
|
1345
|
+
};
|
|
1346
|
+
var _n = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1347
|
+
function En(e) {
|
|
1327
1348
|
if (e.length === 0)
|
|
1328
1349
|
throw new Error("Number skeleton cannot be empty");
|
|
1329
|
-
for (var t = e.split(
|
|
1350
|
+
for (var t = e.split(_n).filter(function(f) {
|
|
1330
1351
|
return f.length > 0;
|
|
1331
1352
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1332
1353
|
var o = i[n], a = o.split("/");
|
|
@@ -1341,17 +1362,17 @@ function vn(e) {
|
|
|
1341
1362
|
}
|
|
1342
1363
|
return r;
|
|
1343
1364
|
}
|
|
1344
|
-
function
|
|
1365
|
+
function xn(e) {
|
|
1345
1366
|
return e.replace(/^(.*?)-/, "");
|
|
1346
1367
|
}
|
|
1347
|
-
var
|
|
1348
|
-
function
|
|
1368
|
+
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zt = /^(@+)?(\+|#+)?[rs]?$/g, Tn = /(\*)(0+)|(#+)(0+)|(0+)/g, qt = /^(0+)$/;
|
|
1369
|
+
function dt(e) {
|
|
1349
1370
|
var t = {};
|
|
1350
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1371
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zt, function(r, n, i) {
|
|
1351
1372
|
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)), "";
|
|
1352
1373
|
}), t;
|
|
1353
1374
|
}
|
|
1354
|
-
function
|
|
1375
|
+
function Qt(e) {
|
|
1355
1376
|
switch (e) {
|
|
1356
1377
|
case "sign-auto":
|
|
1357
1378
|
return {
|
|
@@ -1391,7 +1412,7 @@ function qt(e) {
|
|
|
1391
1412
|
};
|
|
1392
1413
|
}
|
|
1393
1414
|
}
|
|
1394
|
-
function
|
|
1415
|
+
function Hn(e) {
|
|
1395
1416
|
var t;
|
|
1396
1417
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1397
1418
|
notation: "engineering"
|
|
@@ -1399,17 +1420,17 @@ function xn(e) {
|
|
|
1399
1420
|
notation: "scientific"
|
|
1400
1421
|
}, e = e.slice(1)), t) {
|
|
1401
1422
|
var r = e.slice(0, 2);
|
|
1402
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1423
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !qt.test(e))
|
|
1403
1424
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1404
1425
|
t.minimumIntegerDigits = e.length;
|
|
1405
1426
|
}
|
|
1406
1427
|
return t;
|
|
1407
1428
|
}
|
|
1408
|
-
function
|
|
1409
|
-
var t = {}, r =
|
|
1429
|
+
function bt(e) {
|
|
1430
|
+
var t = {}, r = Qt(e);
|
|
1410
1431
|
return r || t;
|
|
1411
1432
|
}
|
|
1412
|
-
function
|
|
1433
|
+
function Sn(e) {
|
|
1413
1434
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1414
1435
|
var i = n[r];
|
|
1415
1436
|
switch (i.stem) {
|
|
@@ -1433,7 +1454,7 @@ function Tn(e) {
|
|
|
1433
1454
|
continue;
|
|
1434
1455
|
case "measure-unit":
|
|
1435
1456
|
case "unit":
|
|
1436
|
-
t.style = "unit", t.unit =
|
|
1457
|
+
t.style = "unit", t.unit = xn(i.options[0]);
|
|
1437
1458
|
continue;
|
|
1438
1459
|
case "compact-short":
|
|
1439
1460
|
case "K":
|
|
@@ -1444,13 +1465,13 @@ function Tn(e) {
|
|
|
1444
1465
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1445
1466
|
continue;
|
|
1446
1467
|
case "scientific":
|
|
1447
|
-
t =
|
|
1448
|
-
return
|
|
1468
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1469
|
+
return _(_({}, l), bt(u));
|
|
1449
1470
|
}, {}));
|
|
1450
1471
|
continue;
|
|
1451
1472
|
case "engineering":
|
|
1452
|
-
t =
|
|
1453
|
-
return
|
|
1473
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1474
|
+
return _(_({}, l), bt(u));
|
|
1454
1475
|
}, {}));
|
|
1455
1476
|
continue;
|
|
1456
1477
|
case "notation-simple":
|
|
@@ -1495,7 +1516,7 @@ function Tn(e) {
|
|
|
1495
1516
|
case "integer-width":
|
|
1496
1517
|
if (i.options.length > 1)
|
|
1497
1518
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1498
|
-
i.options[0].replace(
|
|
1519
|
+
i.options[0].replace(Tn, function(l, u, h, c, f, p) {
|
|
1499
1520
|
if (u)
|
|
1500
1521
|
t.minimumIntegerDigits = h.length;
|
|
1501
1522
|
else {
|
|
@@ -1508,28 +1529,28 @@ function Tn(e) {
|
|
|
1508
1529
|
});
|
|
1509
1530
|
continue;
|
|
1510
1531
|
}
|
|
1511
|
-
if (
|
|
1532
|
+
if (qt.test(i.stem)) {
|
|
1512
1533
|
t.minimumIntegerDigits = i.stem.length;
|
|
1513
1534
|
continue;
|
|
1514
1535
|
}
|
|
1515
|
-
if (
|
|
1536
|
+
if (mt.test(i.stem)) {
|
|
1516
1537
|
if (i.options.length > 1)
|
|
1517
1538
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1518
|
-
i.stem.replace(
|
|
1539
|
+
i.stem.replace(mt, function(l, u, h, c, f, p) {
|
|
1519
1540
|
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), "";
|
|
1520
1541
|
});
|
|
1521
1542
|
var o = i.options[0];
|
|
1522
|
-
o === "w" ? t =
|
|
1543
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), dt(o)));
|
|
1523
1544
|
continue;
|
|
1524
1545
|
}
|
|
1525
|
-
if (
|
|
1526
|
-
t =
|
|
1546
|
+
if (Zt.test(i.stem)) {
|
|
1547
|
+
t = _(_({}, t), dt(i.stem));
|
|
1527
1548
|
continue;
|
|
1528
1549
|
}
|
|
1529
|
-
var a =
|
|
1530
|
-
a && (t =
|
|
1531
|
-
var s =
|
|
1532
|
-
s && (t =
|
|
1550
|
+
var a = Qt(i.stem);
|
|
1551
|
+
a && (t = _(_({}, t), a));
|
|
1552
|
+
var s = Hn(i.stem);
|
|
1553
|
+
s && (t = _(_({}, t), s));
|
|
1533
1554
|
}
|
|
1534
1555
|
return t;
|
|
1535
1556
|
}
|
|
@@ -2948,13 +2969,13 @@ var ce = {
|
|
|
2948
2969
|
"h"
|
|
2949
2970
|
]
|
|
2950
2971
|
};
|
|
2951
|
-
function
|
|
2972
|
+
function wn(e, t) {
|
|
2952
2973
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2953
2974
|
var i = e.charAt(n);
|
|
2954
2975
|
if (i === "j") {
|
|
2955
2976
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2956
2977
|
o++, n++;
|
|
2957
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2978
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Bn(t);
|
|
2958
2979
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2959
2980
|
r += l;
|
|
2960
2981
|
for (; a-- > 0; )
|
|
@@ -2964,7 +2985,7 @@ function Hn(e, t) {
|
|
|
2964
2985
|
}
|
|
2965
2986
|
return r;
|
|
2966
2987
|
}
|
|
2967
|
-
function
|
|
2988
|
+
function Bn(e) {
|
|
2968
2989
|
var t = e.hourCycle;
|
|
2969
2990
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2970
2991
|
e.hourCycles && // @ts-ignore
|
|
@@ -2986,20 +3007,20 @@ function Sn(e) {
|
|
|
2986
3007
|
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
2987
3008
|
return i[0];
|
|
2988
3009
|
}
|
|
2989
|
-
var
|
|
3010
|
+
var Oe, An = new RegExp("^".concat(zt.source, "*")), Pn = new RegExp("".concat(zt.source, "*$"));
|
|
2990
3011
|
function b(e, t) {
|
|
2991
3012
|
return { start: e, end: t };
|
|
2992
3013
|
}
|
|
2993
|
-
var
|
|
3014
|
+
var On = !!String.prototype.startsWith && "_a".startsWith("a", 1), In = !!String.fromCodePoint, Nn = !!Object.fromEntries, Ln = !!String.prototype.codePointAt, Cn = !!String.prototype.trimStart, Mn = !!String.prototype.trimEnd, $n = !!Number.isSafeInteger, Rn = $n ? Number.isSafeInteger : function(e) {
|
|
2994
3015
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2995
|
-
},
|
|
3016
|
+
}, Xe = !0;
|
|
2996
3017
|
try {
|
|
2997
|
-
var
|
|
2998
|
-
|
|
3018
|
+
var Un = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3019
|
+
Xe = ((Oe = Un.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
2999
3020
|
} catch {
|
|
3000
|
-
|
|
3021
|
+
Xe = !1;
|
|
3001
3022
|
}
|
|
3002
|
-
var
|
|
3023
|
+
var yt = On ? (
|
|
3003
3024
|
// Native
|
|
3004
3025
|
function(t, r, n) {
|
|
3005
3026
|
return t.startsWith(r, n);
|
|
@@ -3009,7 +3030,7 @@ var dt = An ? (
|
|
|
3009
3030
|
function(t, r, n) {
|
|
3010
3031
|
return t.slice(n, n + r.length) === r;
|
|
3011
3032
|
}
|
|
3012
|
-
),
|
|
3033
|
+
), We = In ? String.fromCodePoint : (
|
|
3013
3034
|
// IE11
|
|
3014
3035
|
function() {
|
|
3015
3036
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3021,9 +3042,9 @@ var dt = An ? (
|
|
|
3021
3042
|
}
|
|
3022
3043
|
return n;
|
|
3023
3044
|
}
|
|
3024
|
-
),
|
|
3045
|
+
), gt = (
|
|
3025
3046
|
// native
|
|
3026
|
-
|
|
3047
|
+
Nn ? Object.fromEntries : (
|
|
3027
3048
|
// Ponyfill
|
|
3028
3049
|
function(t) {
|
|
3029
3050
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3033,7 +3054,7 @@ var dt = An ? (
|
|
|
3033
3054
|
return r;
|
|
3034
3055
|
}
|
|
3035
3056
|
)
|
|
3036
|
-
),
|
|
3057
|
+
), Jt = Ln ? (
|
|
3037
3058
|
// Native
|
|
3038
3059
|
function(t, r) {
|
|
3039
3060
|
return t.codePointAt(r);
|
|
@@ -3047,7 +3068,7 @@ var dt = An ? (
|
|
|
3047
3068
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3048
3069
|
}
|
|
3049
3070
|
}
|
|
3050
|
-
),
|
|
3071
|
+
), Dn = Cn ? (
|
|
3051
3072
|
// Native
|
|
3052
3073
|
function(t) {
|
|
3053
3074
|
return t.trimStart();
|
|
@@ -3055,9 +3076,9 @@ var dt = An ? (
|
|
|
3055
3076
|
) : (
|
|
3056
3077
|
// Ponyfill
|
|
3057
3078
|
function(t) {
|
|
3058
|
-
return t.replace(
|
|
3079
|
+
return t.replace(An, "");
|
|
3059
3080
|
}
|
|
3060
|
-
),
|
|
3081
|
+
), Gn = Mn ? (
|
|
3061
3082
|
// Native
|
|
3062
3083
|
function(t) {
|
|
3063
3084
|
return t.trimEnd();
|
|
@@ -3065,32 +3086,32 @@ var dt = An ? (
|
|
|
3065
3086
|
) : (
|
|
3066
3087
|
// Ponyfill
|
|
3067
3088
|
function(t) {
|
|
3068
|
-
return t.replace(
|
|
3089
|
+
return t.replace(Pn, "");
|
|
3069
3090
|
}
|
|
3070
3091
|
);
|
|
3071
|
-
function
|
|
3092
|
+
function Yt(e, t) {
|
|
3072
3093
|
return new RegExp(e, t);
|
|
3073
3094
|
}
|
|
3074
|
-
var
|
|
3075
|
-
if (
|
|
3076
|
-
var
|
|
3077
|
-
|
|
3095
|
+
var ze;
|
|
3096
|
+
if (Xe) {
|
|
3097
|
+
var vt = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3098
|
+
ze = function(t, r) {
|
|
3078
3099
|
var n;
|
|
3079
|
-
|
|
3080
|
-
var i =
|
|
3100
|
+
vt.lastIndex = r;
|
|
3101
|
+
var i = vt.exec(t);
|
|
3081
3102
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3082
3103
|
};
|
|
3083
3104
|
} else
|
|
3084
|
-
|
|
3105
|
+
ze = function(t, r) {
|
|
3085
3106
|
for (var n = []; ; ) {
|
|
3086
|
-
var i =
|
|
3087
|
-
if (i === void 0 ||
|
|
3107
|
+
var i = Jt(t, r);
|
|
3108
|
+
if (i === void 0 || Kt(i) || Vn(i))
|
|
3088
3109
|
break;
|
|
3089
3110
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3090
3111
|
}
|
|
3091
|
-
return
|
|
3112
|
+
return We.apply(void 0, n);
|
|
3092
3113
|
};
|
|
3093
|
-
var
|
|
3114
|
+
var Fn = (
|
|
3094
3115
|
/** @class */
|
|
3095
3116
|
function() {
|
|
3096
3117
|
function e(t, r) {
|
|
@@ -3114,14 +3135,14 @@ var Dn = (
|
|
|
3114
3135
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3115
3136
|
var s = this.clonePosition();
|
|
3116
3137
|
this.bump(), i.push({
|
|
3117
|
-
type:
|
|
3138
|
+
type: v.pound,
|
|
3118
3139
|
location: b(s, this.clonePosition())
|
|
3119
3140
|
});
|
|
3120
3141
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3121
3142
|
if (n)
|
|
3122
3143
|
break;
|
|
3123
3144
|
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3124
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3145
|
+
} else if (o === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
|
|
3125
3146
|
var a = this.parseTag(t, r);
|
|
3126
3147
|
if (a.err)
|
|
3127
3148
|
return a;
|
|
@@ -3142,7 +3163,7 @@ var Dn = (
|
|
|
3142
3163
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3143
3164
|
return {
|
|
3144
3165
|
val: {
|
|
3145
|
-
type:
|
|
3166
|
+
type: v.literal,
|
|
3146
3167
|
value: "<".concat(i, "/>"),
|
|
3147
3168
|
location: b(n, this.clonePosition())
|
|
3148
3169
|
},
|
|
@@ -3154,12 +3175,12 @@ var Dn = (
|
|
|
3154
3175
|
return o;
|
|
3155
3176
|
var a = o.val, s = this.clonePosition();
|
|
3156
3177
|
if (this.bumpIf("</")) {
|
|
3157
|
-
if (this.isEOF() || !
|
|
3178
|
+
if (this.isEOF() || !Ze(this.char()))
|
|
3158
3179
|
return this.error(d.INVALID_TAG, b(s, this.clonePosition()));
|
|
3159
3180
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3160
3181
|
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3161
3182
|
val: {
|
|
3162
|
-
type:
|
|
3183
|
+
type: v.tag,
|
|
3163
3184
|
value: i,
|
|
3164
3185
|
children: a,
|
|
3165
3186
|
location: b(n, this.clonePosition())
|
|
@@ -3172,7 +3193,7 @@ var Dn = (
|
|
|
3172
3193
|
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
3173
3194
|
}, e.prototype.parseTagName = function() {
|
|
3174
3195
|
var t = this.offset();
|
|
3175
|
-
for (this.bump(); !this.isEOF() &&
|
|
3196
|
+
for (this.bump(); !this.isEOF() && kn(this.char()); )
|
|
3176
3197
|
this.bump();
|
|
3177
3198
|
return this.message.slice(t, this.offset());
|
|
3178
3199
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3196,12 +3217,12 @@ var Dn = (
|
|
|
3196
3217
|
}
|
|
3197
3218
|
var l = b(n, this.clonePosition());
|
|
3198
3219
|
return {
|
|
3199
|
-
val: { type:
|
|
3220
|
+
val: { type: v.literal, value: i, location: l },
|
|
3200
3221
|
err: null
|
|
3201
3222
|
};
|
|
3202
3223
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3203
3224
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3204
|
-
!
|
|
3225
|
+
!jn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3205
3226
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3206
3227
|
if (this.isEOF() || this.char() !== 39)
|
|
3207
3228
|
return null;
|
|
@@ -3235,12 +3256,12 @@ var Dn = (
|
|
|
3235
3256
|
r.push(n);
|
|
3236
3257
|
this.bump();
|
|
3237
3258
|
}
|
|
3238
|
-
return
|
|
3259
|
+
return We.apply(void 0, r);
|
|
3239
3260
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3240
3261
|
if (this.isEOF())
|
|
3241
3262
|
return null;
|
|
3242
3263
|
var n = this.char();
|
|
3243
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3264
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), We(n));
|
|
3244
3265
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3245
3266
|
var n = this.clonePosition();
|
|
3246
3267
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3256,7 +3277,7 @@ var Dn = (
|
|
|
3256
3277
|
case 125:
|
|
3257
3278
|
return this.bump(), {
|
|
3258
3279
|
val: {
|
|
3259
|
-
type:
|
|
3280
|
+
type: v.argument,
|
|
3260
3281
|
// value does not include the opening and closing braces.
|
|
3261
3282
|
value: i,
|
|
3262
3283
|
location: b(n, this.clonePosition())
|
|
@@ -3269,7 +3290,7 @@ var Dn = (
|
|
|
3269
3290
|
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3270
3291
|
}
|
|
3271
3292
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3272
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3293
|
+
var t = this.clonePosition(), r = this.offset(), n = ze(this.message, r), i = r + n.length;
|
|
3273
3294
|
this.bumpTo(i);
|
|
3274
3295
|
var o = this.clonePosition(), a = b(t, o);
|
|
3275
3296
|
return { value: n, location: a };
|
|
@@ -3288,44 +3309,44 @@ var Dn = (
|
|
|
3288
3309
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3289
3310
|
if (c.err)
|
|
3290
3311
|
return c;
|
|
3291
|
-
var f =
|
|
3312
|
+
var f = Gn(c.val);
|
|
3292
3313
|
if (f.length === 0)
|
|
3293
3314
|
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3294
3315
|
var p = b(h, this.clonePosition());
|
|
3295
3316
|
u = { style: f, styleLocation: p };
|
|
3296
3317
|
}
|
|
3297
|
-
var
|
|
3298
|
-
if (
|
|
3299
|
-
return
|
|
3318
|
+
var g = this.tryParseArgumentClose(i);
|
|
3319
|
+
if (g.err)
|
|
3320
|
+
return g;
|
|
3300
3321
|
var m = b(i, this.clonePosition());
|
|
3301
|
-
if (u &&
|
|
3302
|
-
var T =
|
|
3322
|
+
if (u && yt(u?.style, "::", 0)) {
|
|
3323
|
+
var T = Dn(u.style.slice(2));
|
|
3303
3324
|
if (s === "number") {
|
|
3304
3325
|
var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
3305
3326
|
return c.err ? c : {
|
|
3306
|
-
val: { type:
|
|
3327
|
+
val: { type: v.number, value: n, location: m, style: c.val },
|
|
3307
3328
|
err: null
|
|
3308
3329
|
};
|
|
3309
3330
|
} else {
|
|
3310
3331
|
if (T.length === 0)
|
|
3311
3332
|
return this.error(d.EXPECT_DATE_TIME_SKELETON, m);
|
|
3312
3333
|
var $ = T;
|
|
3313
|
-
this.locale && ($ =
|
|
3334
|
+
this.locale && ($ = wn(T, this.locale));
|
|
3314
3335
|
var f = {
|
|
3315
|
-
type:
|
|
3336
|
+
type: W.dateTime,
|
|
3316
3337
|
pattern: $,
|
|
3317
3338
|
location: u.styleLocation,
|
|
3318
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3319
|
-
},
|
|
3339
|
+
parsedOptions: this.shouldParseSkeletons ? vn($) : {}
|
|
3340
|
+
}, P = s === "date" ? v.date : v.time;
|
|
3320
3341
|
return {
|
|
3321
|
-
val: { type:
|
|
3342
|
+
val: { type: P, value: n, location: m, style: f },
|
|
3322
3343
|
err: null
|
|
3323
3344
|
};
|
|
3324
3345
|
}
|
|
3325
3346
|
}
|
|
3326
3347
|
return {
|
|
3327
3348
|
val: {
|
|
3328
|
-
type: s === "number" ?
|
|
3349
|
+
type: s === "number" ? v.number : s === "date" ? v.date : v.time,
|
|
3329
3350
|
value: n,
|
|
3330
3351
|
location: m,
|
|
3331
3352
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3338,9 +3359,9 @@ var Dn = (
|
|
|
3338
3359
|
case "select": {
|
|
3339
3360
|
var S = this.clonePosition();
|
|
3340
3361
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3341
|
-
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S,
|
|
3362
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S, be({}, S)));
|
|
3342
3363
|
this.bumpSpace();
|
|
3343
|
-
var R = this.parseIdentifierIfPossible(),
|
|
3364
|
+
var R = this.parseIdentifierIfPossible(), O = 0;
|
|
3344
3365
|
if (s !== "select" && R.value === "offset") {
|
|
3345
3366
|
if (!this.bumpIf(":"))
|
|
3346
3367
|
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
@@ -3348,31 +3369,31 @@ var Dn = (
|
|
|
3348
3369
|
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3349
3370
|
if (c.err)
|
|
3350
3371
|
return c;
|
|
3351
|
-
this.bumpSpace(), R = this.parseIdentifierIfPossible(),
|
|
3372
|
+
this.bumpSpace(), R = this.parseIdentifierIfPossible(), O = c.val;
|
|
3352
3373
|
}
|
|
3353
3374
|
var D = this.tryParsePluralOrSelectOptions(t, s, r, R);
|
|
3354
3375
|
if (D.err)
|
|
3355
3376
|
return D;
|
|
3356
|
-
var
|
|
3357
|
-
if (
|
|
3358
|
-
return
|
|
3359
|
-
var
|
|
3377
|
+
var g = this.tryParseArgumentClose(i);
|
|
3378
|
+
if (g.err)
|
|
3379
|
+
return g;
|
|
3380
|
+
var y = b(i, this.clonePosition());
|
|
3360
3381
|
return s === "select" ? {
|
|
3361
3382
|
val: {
|
|
3362
|
-
type:
|
|
3383
|
+
type: v.select,
|
|
3363
3384
|
value: n,
|
|
3364
|
-
options:
|
|
3365
|
-
location:
|
|
3385
|
+
options: gt(D.val),
|
|
3386
|
+
location: y
|
|
3366
3387
|
},
|
|
3367
3388
|
err: null
|
|
3368
3389
|
} : {
|
|
3369
3390
|
val: {
|
|
3370
|
-
type:
|
|
3391
|
+
type: v.plural,
|
|
3371
3392
|
value: n,
|
|
3372
|
-
options:
|
|
3373
|
-
offset:
|
|
3393
|
+
options: gt(D.val),
|
|
3394
|
+
offset: O,
|
|
3374
3395
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3375
|
-
location:
|
|
3396
|
+
location: y
|
|
3376
3397
|
},
|
|
3377
3398
|
err: null
|
|
3378
3399
|
};
|
|
@@ -3420,16 +3441,16 @@ var Dn = (
|
|
|
3420
3441
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3421
3442
|
var n = [];
|
|
3422
3443
|
try {
|
|
3423
|
-
n =
|
|
3444
|
+
n = En(t);
|
|
3424
3445
|
} catch {
|
|
3425
3446
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3426
3447
|
}
|
|
3427
3448
|
return {
|
|
3428
3449
|
val: {
|
|
3429
|
-
type:
|
|
3450
|
+
type: W.number,
|
|
3430
3451
|
tokens: n,
|
|
3431
3452
|
location: r,
|
|
3432
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3453
|
+
parsedOptions: this.shouldParseSkeletons ? Sn(n) : {}
|
|
3433
3454
|
},
|
|
3434
3455
|
err: null
|
|
3435
3456
|
};
|
|
@@ -3451,16 +3472,16 @@ var Dn = (
|
|
|
3451
3472
|
var p = this.clonePosition();
|
|
3452
3473
|
if (!this.bumpIf("{"))
|
|
3453
3474
|
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3454
|
-
var
|
|
3455
|
-
if (
|
|
3456
|
-
return
|
|
3475
|
+
var g = this.parseMessage(t + 1, r, n);
|
|
3476
|
+
if (g.err)
|
|
3477
|
+
return g;
|
|
3457
3478
|
var m = this.tryParseArgumentClose(p);
|
|
3458
3479
|
if (m.err)
|
|
3459
3480
|
return m;
|
|
3460
3481
|
s.push([
|
|
3461
3482
|
u,
|
|
3462
3483
|
{
|
|
3463
|
-
value:
|
|
3484
|
+
value: g.val,
|
|
3464
3485
|
location: b(p, this.clonePosition())
|
|
3465
3486
|
}
|
|
3466
3487
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
@@ -3477,7 +3498,7 @@ var Dn = (
|
|
|
3477
3498
|
break;
|
|
3478
3499
|
}
|
|
3479
3500
|
var l = b(i, this.clonePosition());
|
|
3480
|
-
return o ? (a *= n,
|
|
3501
|
+
return o ? (a *= n, Rn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3481
3502
|
}, e.prototype.offset = function() {
|
|
3482
3503
|
return this.position.offset;
|
|
3483
3504
|
}, e.prototype.isEOF = function() {
|
|
@@ -3492,7 +3513,7 @@ var Dn = (
|
|
|
3492
3513
|
var t = this.position.offset;
|
|
3493
3514
|
if (t >= this.message.length)
|
|
3494
3515
|
throw Error("out of bound");
|
|
3495
|
-
var r =
|
|
3516
|
+
var r = Jt(this.message, t);
|
|
3496
3517
|
if (r === void 0)
|
|
3497
3518
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3498
3519
|
return r;
|
|
@@ -3511,7 +3532,7 @@ var Dn = (
|
|
|
3511
3532
|
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);
|
|
3512
3533
|
}
|
|
3513
3534
|
}, e.prototype.bumpIf = function(t) {
|
|
3514
|
-
if (
|
|
3535
|
+
if (yt(this.message, t, this.offset())) {
|
|
3515
3536
|
for (var r = 0; r < t.length; r++)
|
|
3516
3537
|
this.bump();
|
|
3517
3538
|
return !0;
|
|
@@ -3533,7 +3554,7 @@ var Dn = (
|
|
|
3533
3554
|
break;
|
|
3534
3555
|
}
|
|
3535
3556
|
}, e.prototype.bumpSpace = function() {
|
|
3536
|
-
for (; !this.isEOF() &&
|
|
3557
|
+
for (; !this.isEOF() && Kt(this.char()); )
|
|
3537
3558
|
this.bump();
|
|
3538
3559
|
}, e.prototype.peek = function() {
|
|
3539
3560
|
if (this.isEOF())
|
|
@@ -3543,47 +3564,47 @@ var Dn = (
|
|
|
3543
3564
|
}, e;
|
|
3544
3565
|
}()
|
|
3545
3566
|
);
|
|
3546
|
-
function
|
|
3567
|
+
function Ze(e) {
|
|
3547
3568
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3548
3569
|
}
|
|
3549
|
-
function
|
|
3550
|
-
return
|
|
3570
|
+
function jn(e) {
|
|
3571
|
+
return Ze(e) || e === 47;
|
|
3551
3572
|
}
|
|
3552
|
-
function
|
|
3573
|
+
function kn(e) {
|
|
3553
3574
|
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;
|
|
3554
3575
|
}
|
|
3555
|
-
function
|
|
3576
|
+
function Kt(e) {
|
|
3556
3577
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3557
3578
|
}
|
|
3558
|
-
function
|
|
3579
|
+
function Vn(e) {
|
|
3559
3580
|
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;
|
|
3560
3581
|
}
|
|
3561
|
-
function
|
|
3582
|
+
function qe(e) {
|
|
3562
3583
|
e.forEach(function(t) {
|
|
3563
|
-
if (delete t.location,
|
|
3584
|
+
if (delete t.location, kt(t) || Vt(t))
|
|
3564
3585
|
for (var r in t.options)
|
|
3565
|
-
delete t.options[r].location,
|
|
3586
|
+
delete t.options[r].location, qe(t.options[r].value);
|
|
3566
3587
|
else
|
|
3567
|
-
|
|
3588
|
+
Gt(t) && Wt(t.style) || (Ft(t) || jt(t)) && Ve(t.style) ? delete t.style.location : Xt(t) && qe(t.children);
|
|
3568
3589
|
});
|
|
3569
3590
|
}
|
|
3570
|
-
function
|
|
3571
|
-
t === void 0 && (t = {}), t =
|
|
3572
|
-
var r = new
|
|
3591
|
+
function Xn(e, t) {
|
|
3592
|
+
t === void 0 && (t = {}), t = be({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3593
|
+
var r = new Fn(e, t).parse();
|
|
3573
3594
|
if (r.err) {
|
|
3574
3595
|
var n = SyntaxError(d[r.err.kind]);
|
|
3575
3596
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3576
3597
|
}
|
|
3577
|
-
return t?.captureLocation ||
|
|
3598
|
+
return t?.captureLocation || qe(r.val), r.val;
|
|
3578
3599
|
}
|
|
3579
|
-
var
|
|
3600
|
+
var z;
|
|
3580
3601
|
(function(e) {
|
|
3581
3602
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3582
|
-
})(
|
|
3583
|
-
var
|
|
3603
|
+
})(z || (z = {}));
|
|
3604
|
+
var xe = (
|
|
3584
3605
|
/** @class */
|
|
3585
3606
|
function(e) {
|
|
3586
|
-
|
|
3607
|
+
Ee(t, e);
|
|
3587
3608
|
function t(r, n, i) {
|
|
3588
3609
|
var o = e.call(this, r) || this;
|
|
3589
3610
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3592,48 +3613,48 @@ var _e = (
|
|
|
3592
3613
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3593
3614
|
}, t;
|
|
3594
3615
|
}(Error)
|
|
3595
|
-
),
|
|
3616
|
+
), _t = (
|
|
3596
3617
|
/** @class */
|
|
3597
3618
|
function(e) {
|
|
3598
|
-
|
|
3619
|
+
Ee(t, e);
|
|
3599
3620
|
function t(r, n, i, o) {
|
|
3600
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3621
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
|
|
3601
3622
|
}
|
|
3602
3623
|
return t;
|
|
3603
|
-
}(
|
|
3604
|
-
),
|
|
3624
|
+
}(xe)
|
|
3625
|
+
), Wn = (
|
|
3605
3626
|
/** @class */
|
|
3606
3627
|
function(e) {
|
|
3607
|
-
|
|
3628
|
+
Ee(t, e);
|
|
3608
3629
|
function t(r, n, i) {
|
|
3609
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3630
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
|
|
3610
3631
|
}
|
|
3611
3632
|
return t;
|
|
3612
|
-
}(
|
|
3613
|
-
),
|
|
3633
|
+
}(xe)
|
|
3634
|
+
), zn = (
|
|
3614
3635
|
/** @class */
|
|
3615
3636
|
function(e) {
|
|
3616
|
-
|
|
3637
|
+
Ee(t, e);
|
|
3617
3638
|
function t(r, n) {
|
|
3618
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3639
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
|
|
3619
3640
|
}
|
|
3620
3641
|
return t;
|
|
3621
|
-
}(
|
|
3642
|
+
}(xe)
|
|
3622
3643
|
), H;
|
|
3623
3644
|
(function(e) {
|
|
3624
3645
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3625
3646
|
})(H || (H = {}));
|
|
3626
|
-
function
|
|
3647
|
+
function Zn(e) {
|
|
3627
3648
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3628
3649
|
var n = t[t.length - 1];
|
|
3629
3650
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3630
3651
|
}, []);
|
|
3631
3652
|
}
|
|
3632
|
-
function
|
|
3653
|
+
function qn(e) {
|
|
3633
3654
|
return typeof e == "function";
|
|
3634
3655
|
}
|
|
3635
3656
|
function me(e, t, r, n, i, o, a) {
|
|
3636
|
-
if (e.length === 1 &&
|
|
3657
|
+
if (e.length === 1 && pt(e[0]))
|
|
3637
3658
|
return [
|
|
3638
3659
|
{
|
|
3639
3660
|
type: H.literal,
|
|
@@ -3642,14 +3663,14 @@ function me(e, t, r, n, i, o, a) {
|
|
|
3642
3663
|
];
|
|
3643
3664
|
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3644
3665
|
var h = u[l];
|
|
3645
|
-
if (
|
|
3666
|
+
if (pt(h)) {
|
|
3646
3667
|
s.push({
|
|
3647
3668
|
type: H.literal,
|
|
3648
3669
|
value: h.value
|
|
3649
3670
|
});
|
|
3650
3671
|
continue;
|
|
3651
3672
|
}
|
|
3652
|
-
if (
|
|
3673
|
+
if (yn(h)) {
|
|
3653
3674
|
typeof o == "number" && s.push({
|
|
3654
3675
|
type: H.literal,
|
|
3655
3676
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3658,89 +3679,89 @@ function me(e, t, r, n, i, o, a) {
|
|
|
3658
3679
|
}
|
|
3659
3680
|
var c = h.value;
|
|
3660
3681
|
if (!(i && c in i))
|
|
3661
|
-
throw new
|
|
3682
|
+
throw new zn(c, a);
|
|
3662
3683
|
var f = i[c];
|
|
3663
|
-
if (
|
|
3684
|
+
if (bn(h)) {
|
|
3664
3685
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3665
3686
|
type: typeof f == "string" ? H.literal : H.object,
|
|
3666
3687
|
value: f
|
|
3667
3688
|
});
|
|
3668
3689
|
continue;
|
|
3669
3690
|
}
|
|
3670
|
-
if (
|
|
3671
|
-
var p = typeof h.style == "string" ? n.date[h.style] :
|
|
3691
|
+
if (Ft(h)) {
|
|
3692
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Ve(h.style) ? h.style.parsedOptions : void 0;
|
|
3672
3693
|
s.push({
|
|
3673
3694
|
type: H.literal,
|
|
3674
3695
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3675
3696
|
});
|
|
3676
3697
|
continue;
|
|
3677
3698
|
}
|
|
3678
|
-
if (
|
|
3679
|
-
var p = typeof h.style == "string" ? n.time[h.style] :
|
|
3699
|
+
if (jt(h)) {
|
|
3700
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Ve(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3680
3701
|
s.push({
|
|
3681
3702
|
type: H.literal,
|
|
3682
3703
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3683
3704
|
});
|
|
3684
3705
|
continue;
|
|
3685
3706
|
}
|
|
3686
|
-
if (
|
|
3687
|
-
var p = typeof h.style == "string" ? n.number[h.style] :
|
|
3707
|
+
if (Gt(h)) {
|
|
3708
|
+
var p = typeof h.style == "string" ? n.number[h.style] : Wt(h.style) ? h.style.parsedOptions : void 0;
|
|
3688
3709
|
p && p.scale && (f = f * (p.scale || 1)), s.push({
|
|
3689
3710
|
type: H.literal,
|
|
3690
3711
|
value: r.getNumberFormat(t, p).format(f)
|
|
3691
3712
|
});
|
|
3692
3713
|
continue;
|
|
3693
3714
|
}
|
|
3694
|
-
if (
|
|
3695
|
-
var
|
|
3696
|
-
if (!
|
|
3697
|
-
throw new
|
|
3698
|
-
var $ = me(
|
|
3699
|
-
return
|
|
3715
|
+
if (Xt(h)) {
|
|
3716
|
+
var g = h.children, m = h.value, T = i[m];
|
|
3717
|
+
if (!qn(T))
|
|
3718
|
+
throw new Wn(m, "function", a);
|
|
3719
|
+
var $ = me(g, t, r, n, i, o), P = T($.map(function(O) {
|
|
3720
|
+
return O.value;
|
|
3700
3721
|
}));
|
|
3701
|
-
Array.isArray(
|
|
3722
|
+
Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(O) {
|
|
3702
3723
|
return {
|
|
3703
|
-
type: typeof
|
|
3704
|
-
value:
|
|
3724
|
+
type: typeof O == "string" ? H.literal : H.object,
|
|
3725
|
+
value: O
|
|
3705
3726
|
};
|
|
3706
3727
|
}));
|
|
3707
3728
|
}
|
|
3708
|
-
if (
|
|
3729
|
+
if (kt(h)) {
|
|
3709
3730
|
var S = h.options[f] || h.options.other;
|
|
3710
3731
|
if (!S)
|
|
3711
|
-
throw new
|
|
3732
|
+
throw new _t(h.value, f, Object.keys(h.options), a);
|
|
3712
3733
|
s.push.apply(s, me(S.value, t, r, n, i));
|
|
3713
3734
|
continue;
|
|
3714
3735
|
}
|
|
3715
|
-
if (
|
|
3736
|
+
if (Vt(h)) {
|
|
3716
3737
|
var S = h.options["=".concat(f)];
|
|
3717
3738
|
if (!S) {
|
|
3718
3739
|
if (!Intl.PluralRules)
|
|
3719
|
-
throw new
|
|
3740
|
+
throw new xe(`Intl.PluralRules is not available in this environment.
|
|
3720
3741
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3721
|
-
`,
|
|
3742
|
+
`, z.MISSING_INTL_API, a);
|
|
3722
3743
|
var R = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3723
3744
|
S = h.options[R] || h.options.other;
|
|
3724
3745
|
}
|
|
3725
3746
|
if (!S)
|
|
3726
|
-
throw new
|
|
3747
|
+
throw new _t(h.value, f, Object.keys(h.options), a);
|
|
3727
3748
|
s.push.apply(s, me(S.value, t, r, n, i, f - (h.offset || 0)));
|
|
3728
3749
|
continue;
|
|
3729
3750
|
}
|
|
3730
3751
|
}
|
|
3731
|
-
return
|
|
3752
|
+
return Zn(s);
|
|
3732
3753
|
}
|
|
3733
|
-
function
|
|
3734
|
-
return t ?
|
|
3735
|
-
return r[n] =
|
|
3754
|
+
function Qn(e, t) {
|
|
3755
|
+
return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3756
|
+
return r[n] = A(A({}, e[n]), t[n] || {}), r;
|
|
3736
3757
|
}, {})) : e;
|
|
3737
3758
|
}
|
|
3738
|
-
function
|
|
3759
|
+
function Jn(e, t) {
|
|
3739
3760
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3740
|
-
return r[n] =
|
|
3741
|
-
},
|
|
3761
|
+
return r[n] = Qn(e[n], t[n]), r;
|
|
3762
|
+
}, A({}, e)) : e;
|
|
3742
3763
|
}
|
|
3743
|
-
function
|
|
3764
|
+
function Ie(e) {
|
|
3744
3765
|
return {
|
|
3745
3766
|
create: function() {
|
|
3746
3767
|
return {
|
|
@@ -3754,39 +3775,39 @@ function Pe(e) {
|
|
|
3754
3775
|
}
|
|
3755
3776
|
};
|
|
3756
3777
|
}
|
|
3757
|
-
function
|
|
3778
|
+
function Yn(e) {
|
|
3758
3779
|
return e === void 0 && (e = {
|
|
3759
3780
|
number: {},
|
|
3760
3781
|
dateTime: {},
|
|
3761
3782
|
pluralRules: {}
|
|
3762
3783
|
}), {
|
|
3763
|
-
getNumberFormat:
|
|
3784
|
+
getNumberFormat: Ae(function() {
|
|
3764
3785
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3765
3786
|
r[n] = arguments[n];
|
|
3766
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3787
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3767
3788
|
}, {
|
|
3768
|
-
cache:
|
|
3769
|
-
strategy:
|
|
3789
|
+
cache: Ie(e.number),
|
|
3790
|
+
strategy: Pe.variadic
|
|
3770
3791
|
}),
|
|
3771
|
-
getDateTimeFormat:
|
|
3792
|
+
getDateTimeFormat: Ae(function() {
|
|
3772
3793
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3773
3794
|
r[n] = arguments[n];
|
|
3774
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3795
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3775
3796
|
}, {
|
|
3776
|
-
cache:
|
|
3777
|
-
strategy:
|
|
3797
|
+
cache: Ie(e.dateTime),
|
|
3798
|
+
strategy: Pe.variadic
|
|
3778
3799
|
}),
|
|
3779
|
-
getPluralRules:
|
|
3800
|
+
getPluralRules: Ae(function() {
|
|
3780
3801
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3781
3802
|
r[n] = arguments[n];
|
|
3782
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3803
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
|
|
3783
3804
|
}, {
|
|
3784
|
-
cache:
|
|
3785
|
-
strategy:
|
|
3805
|
+
cache: Ie(e.pluralRules),
|
|
3806
|
+
strategy: Pe.variadic
|
|
3786
3807
|
})
|
|
3787
3808
|
};
|
|
3788
3809
|
}
|
|
3789
|
-
var
|
|
3810
|
+
var Kn = (
|
|
3790
3811
|
/** @class */
|
|
3791
3812
|
function() {
|
|
3792
3813
|
function e(t, r, n, i) {
|
|
@@ -3818,13 +3839,13 @@ var Jn = (
|
|
|
3818
3839
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3819
3840
|
var a = i || {};
|
|
3820
3841
|
a.formatters;
|
|
3821
|
-
var s =
|
|
3822
|
-
this.ast = e.__parse(t,
|
|
3842
|
+
var s = un(a, ["formatters"]);
|
|
3843
|
+
this.ast = e.__parse(t, A(A({}, s), { locale: this.resolvedLocale }));
|
|
3823
3844
|
} else
|
|
3824
3845
|
this.ast = t;
|
|
3825
3846
|
if (!Array.isArray(this.ast))
|
|
3826
3847
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3827
|
-
this.formats =
|
|
3848
|
+
this.formats = Jn(e.formats, n), this.formatters = i && i.formatters || Yn(this.formatterCache);
|
|
3828
3849
|
}
|
|
3829
3850
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3830
3851
|
get: function() {
|
|
@@ -3837,7 +3858,7 @@ var Jn = (
|
|
|
3837
3858
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3838
3859
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3839
3860
|
}
|
|
3840
|
-
}, e.__parse =
|
|
3861
|
+
}, e.__parse = Xn, e.formats = {
|
|
3841
3862
|
number: {
|
|
3842
3863
|
integer: {
|
|
3843
3864
|
maximumFractionDigits: 0
|
|
@@ -3898,7 +3919,7 @@ var Jn = (
|
|
|
3898
3919
|
}, e;
|
|
3899
3920
|
}()
|
|
3900
3921
|
);
|
|
3901
|
-
function
|
|
3922
|
+
function ei(e, t) {
|
|
3902
3923
|
if (t == null)
|
|
3903
3924
|
return;
|
|
3904
3925
|
if (t in e)
|
|
@@ -3919,92 +3940,92 @@ function Yn(e, t) {
|
|
|
3919
3940
|
n = void 0;
|
|
3920
3941
|
return n;
|
|
3921
3942
|
}
|
|
3922
|
-
const M = {},
|
|
3943
|
+
const M = {}, ti = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), er = (e, t) => {
|
|
3923
3944
|
if (t == null)
|
|
3924
3945
|
return;
|
|
3925
3946
|
if (t in M && e in M[t])
|
|
3926
3947
|
return M[t][e];
|
|
3927
|
-
const r =
|
|
3948
|
+
const r = Te(t);
|
|
3928
3949
|
for (let n = 0; n < r.length; n++) {
|
|
3929
|
-
const i = r[n], o =
|
|
3950
|
+
const i = r[n], o = ni(i, e);
|
|
3930
3951
|
if (o)
|
|
3931
|
-
return
|
|
3952
|
+
return ti(e, t, o);
|
|
3932
3953
|
}
|
|
3933
3954
|
};
|
|
3934
|
-
let
|
|
3935
|
-
const ue =
|
|
3936
|
-
function
|
|
3937
|
-
return
|
|
3955
|
+
let et;
|
|
3956
|
+
const ue = _e({});
|
|
3957
|
+
function ri(e) {
|
|
3958
|
+
return et[e] || null;
|
|
3938
3959
|
}
|
|
3939
|
-
function
|
|
3940
|
-
return e in
|
|
3960
|
+
function tr(e) {
|
|
3961
|
+
return e in et;
|
|
3941
3962
|
}
|
|
3942
|
-
function
|
|
3943
|
-
if (!
|
|
3963
|
+
function ni(e, t) {
|
|
3964
|
+
if (!tr(e))
|
|
3944
3965
|
return null;
|
|
3945
|
-
const r =
|
|
3946
|
-
return
|
|
3966
|
+
const r = ri(e);
|
|
3967
|
+
return ei(r, t);
|
|
3947
3968
|
}
|
|
3948
|
-
function
|
|
3969
|
+
function ii(e) {
|
|
3949
3970
|
if (e == null)
|
|
3950
3971
|
return;
|
|
3951
|
-
const t =
|
|
3972
|
+
const t = Te(e);
|
|
3952
3973
|
for (let r = 0; r < t.length; r++) {
|
|
3953
3974
|
const n = t[r];
|
|
3954
|
-
if (
|
|
3975
|
+
if (tr(n))
|
|
3955
3976
|
return n;
|
|
3956
3977
|
}
|
|
3957
3978
|
}
|
|
3958
|
-
function
|
|
3979
|
+
function rr(e, ...t) {
|
|
3959
3980
|
delete M[e], ue.update((r) => (r[e] = an.all([r[e] || {}, ...t]), r));
|
|
3960
3981
|
}
|
|
3961
|
-
|
|
3982
|
+
Q(
|
|
3962
3983
|
[ue],
|
|
3963
3984
|
([e]) => Object.keys(e)
|
|
3964
3985
|
);
|
|
3965
|
-
ue.subscribe((e) =>
|
|
3986
|
+
ue.subscribe((e) => et = e);
|
|
3966
3987
|
const de = {};
|
|
3967
|
-
function
|
|
3988
|
+
function oi(e, t) {
|
|
3968
3989
|
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3969
3990
|
}
|
|
3970
|
-
function
|
|
3991
|
+
function nr(e) {
|
|
3971
3992
|
return de[e];
|
|
3972
3993
|
}
|
|
3973
|
-
function
|
|
3974
|
-
return
|
|
3975
|
-
const r =
|
|
3994
|
+
function si(e) {
|
|
3995
|
+
return Te(e).map((t) => {
|
|
3996
|
+
const r = nr(t);
|
|
3976
3997
|
return [t, r ? [...r] : []];
|
|
3977
3998
|
}).filter(([, t]) => t.length > 0);
|
|
3978
3999
|
}
|
|
3979
|
-
function
|
|
3980
|
-
return e == null ? !1 :
|
|
4000
|
+
function Qe(e) {
|
|
4001
|
+
return e == null ? !1 : Te(e).some(
|
|
3981
4002
|
(t) => {
|
|
3982
4003
|
var r;
|
|
3983
|
-
return (r =
|
|
4004
|
+
return (r = nr(t)) == null ? void 0 : r.size;
|
|
3984
4005
|
}
|
|
3985
4006
|
);
|
|
3986
4007
|
}
|
|
3987
|
-
function
|
|
4008
|
+
function ai(e, t) {
|
|
3988
4009
|
return Promise.all(
|
|
3989
|
-
t.map((n) => (
|
|
3990
|
-
).then((n) =>
|
|
3991
|
-
}
|
|
3992
|
-
const
|
|
3993
|
-
function
|
|
3994
|
-
if (!
|
|
3995
|
-
return e in
|
|
3996
|
-
const t =
|
|
3997
|
-
return
|
|
4010
|
+
t.map((n) => (oi(e, n), n().then((i) => i.default || i)))
|
|
4011
|
+
).then((n) => rr(e, ...n));
|
|
4012
|
+
}
|
|
4013
|
+
const K = {};
|
|
4014
|
+
function ir(e) {
|
|
4015
|
+
if (!Qe(e))
|
|
4016
|
+
return e in K ? K[e] : Promise.resolve();
|
|
4017
|
+
const t = si(e);
|
|
4018
|
+
return K[e] = Promise.all(
|
|
3998
4019
|
t.map(
|
|
3999
|
-
([r, n]) =>
|
|
4020
|
+
([r, n]) => ai(r, n)
|
|
4000
4021
|
)
|
|
4001
4022
|
).then(() => {
|
|
4002
|
-
if (
|
|
4003
|
-
return
|
|
4004
|
-
delete
|
|
4005
|
-
}),
|
|
4023
|
+
if (Qe(e))
|
|
4024
|
+
return ir(e);
|
|
4025
|
+
delete K[e];
|
|
4026
|
+
}), K[e];
|
|
4006
4027
|
}
|
|
4007
|
-
const
|
|
4028
|
+
const ui = {
|
|
4008
4029
|
number: {
|
|
4009
4030
|
scientific: { notation: "scientific" },
|
|
4010
4031
|
engineering: { notation: "engineering" },
|
|
@@ -4033,135 +4054,135 @@ const si = {
|
|
|
4033
4054
|
timeZoneName: "short"
|
|
4034
4055
|
}
|
|
4035
4056
|
}
|
|
4036
|
-
},
|
|
4057
|
+
}, hi = {
|
|
4037
4058
|
fallbackLocale: null,
|
|
4038
4059
|
loadingDelay: 200,
|
|
4039
|
-
formats:
|
|
4060
|
+
formats: ui,
|
|
4040
4061
|
warnOnMissingMessages: !0,
|
|
4041
4062
|
handleMissingMessage: void 0,
|
|
4042
4063
|
ignoreTag: !0
|
|
4043
|
-
},
|
|
4044
|
-
function
|
|
4045
|
-
return
|
|
4064
|
+
}, li = hi;
|
|
4065
|
+
function Z() {
|
|
4066
|
+
return li;
|
|
4046
4067
|
}
|
|
4047
|
-
const
|
|
4048
|
-
var
|
|
4068
|
+
const Ne = _e(!1);
|
|
4069
|
+
var ci = Object.defineProperty, fi = Object.defineProperties, pi = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, mi = Object.prototype.hasOwnProperty, di = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bi = (e, t) => {
|
|
4049
4070
|
for (var r in t || (t = {}))
|
|
4050
|
-
|
|
4051
|
-
if (
|
|
4052
|
-
for (var r of
|
|
4053
|
-
|
|
4071
|
+
mi.call(t, r) && xt(e, r, t[r]);
|
|
4072
|
+
if (Et)
|
|
4073
|
+
for (var r of Et(t))
|
|
4074
|
+
di.call(t, r) && xt(e, r, t[r]);
|
|
4054
4075
|
return e;
|
|
4055
|
-
},
|
|
4056
|
-
let
|
|
4057
|
-
const
|
|
4058
|
-
function
|
|
4076
|
+
}, yi = (e, t) => fi(e, pi(t));
|
|
4077
|
+
let Je;
|
|
4078
|
+
const ye = _e(null);
|
|
4079
|
+
function Tt(e) {
|
|
4059
4080
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4060
4081
|
}
|
|
4061
|
-
function
|
|
4062
|
-
const r =
|
|
4063
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4082
|
+
function Te(e, t = Z().fallbackLocale) {
|
|
4083
|
+
const r = Tt(e);
|
|
4084
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Tt(t)])] : r;
|
|
4064
4085
|
}
|
|
4065
4086
|
function U() {
|
|
4066
|
-
return
|
|
4087
|
+
return Je ?? void 0;
|
|
4067
4088
|
}
|
|
4068
|
-
|
|
4069
|
-
|
|
4089
|
+
ye.subscribe((e) => {
|
|
4090
|
+
Je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4070
4091
|
});
|
|
4071
|
-
const
|
|
4072
|
-
if (e &&
|
|
4073
|
-
const { loadingDelay: t } =
|
|
4092
|
+
const gi = (e) => {
|
|
4093
|
+
if (e && ii(e) && Qe(e)) {
|
|
4094
|
+
const { loadingDelay: t } = Z();
|
|
4074
4095
|
let r;
|
|
4075
4096
|
return typeof window < "u" && U() != null && t ? r = window.setTimeout(
|
|
4076
|
-
() =>
|
|
4097
|
+
() => Ne.set(!0),
|
|
4077
4098
|
t
|
|
4078
|
-
) :
|
|
4079
|
-
|
|
4099
|
+
) : Ne.set(!0), ir(e).then(() => {
|
|
4100
|
+
ye.set(e);
|
|
4080
4101
|
}).finally(() => {
|
|
4081
|
-
clearTimeout(r),
|
|
4102
|
+
clearTimeout(r), Ne.set(!1);
|
|
4082
4103
|
});
|
|
4083
4104
|
}
|
|
4084
|
-
return
|
|
4085
|
-
},
|
|
4086
|
-
set:
|
|
4087
|
-
}),
|
|
4105
|
+
return ye.set(e);
|
|
4106
|
+
}, J = yi(bi({}, ye), {
|
|
4107
|
+
set: gi
|
|
4108
|
+
}), He = (e) => {
|
|
4088
4109
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4089
4110
|
return (n) => {
|
|
4090
4111
|
const i = JSON.stringify(n);
|
|
4091
4112
|
return i in t ? t[i] : t[i] = e(n);
|
|
4092
4113
|
};
|
|
4093
4114
|
};
|
|
4094
|
-
var
|
|
4115
|
+
var vi = Object.defineProperty, ge = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
4095
4116
|
for (var r in t || (t = {}))
|
|
4096
|
-
|
|
4097
|
-
if (
|
|
4098
|
-
for (var r of
|
|
4099
|
-
|
|
4117
|
+
or.call(t, r) && Ht(e, r, t[r]);
|
|
4118
|
+
if (ge)
|
|
4119
|
+
for (var r of ge(t))
|
|
4120
|
+
sr.call(t, r) && Ht(e, r, t[r]);
|
|
4100
4121
|
return e;
|
|
4101
|
-
},
|
|
4122
|
+
}, Y = (e, t) => {
|
|
4102
4123
|
var r = {};
|
|
4103
4124
|
for (var n in e)
|
|
4104
|
-
|
|
4105
|
-
if (e != null &&
|
|
4106
|
-
for (var n of
|
|
4107
|
-
t.indexOf(n) < 0 &&
|
|
4125
|
+
or.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4126
|
+
if (e != null && ge)
|
|
4127
|
+
for (var n of ge(e))
|
|
4128
|
+
t.indexOf(n) < 0 && sr.call(e, n) && (r[n] = e[n]);
|
|
4108
4129
|
return r;
|
|
4109
4130
|
};
|
|
4110
|
-
const
|
|
4111
|
-
const { formats: r } =
|
|
4131
|
+
const ie = (e, t) => {
|
|
4132
|
+
const { formats: r } = Z();
|
|
4112
4133
|
if (e in r && t in r[e])
|
|
4113
4134
|
return r[e][t];
|
|
4114
4135
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4115
|
-
},
|
|
4136
|
+
}, _i = He(
|
|
4116
4137
|
(e) => {
|
|
4117
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4138
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4118
4139
|
if (r == null)
|
|
4119
4140
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4120
|
-
return n && (i =
|
|
4141
|
+
return n && (i = ie("number", n)), new Intl.NumberFormat(r, i);
|
|
4121
4142
|
}
|
|
4122
|
-
),
|
|
4143
|
+
), Ei = He(
|
|
4123
4144
|
(e) => {
|
|
4124
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4145
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4125
4146
|
if (r == null)
|
|
4126
4147
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4127
|
-
return n ? i =
|
|
4148
|
+
return n ? i = ie("date", n) : Object.keys(i).length === 0 && (i = ie("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4128
4149
|
}
|
|
4129
|
-
),
|
|
4150
|
+
), xi = He(
|
|
4130
4151
|
(e) => {
|
|
4131
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4152
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4132
4153
|
if (r == null)
|
|
4133
4154
|
throw new Error(
|
|
4134
4155
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4135
4156
|
);
|
|
4136
|
-
return n ? i =
|
|
4157
|
+
return n ? i = ie("time", n) : Object.keys(i).length === 0 && (i = ie("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4137
4158
|
}
|
|
4138
|
-
),
|
|
4159
|
+
), Ti = (e = {}) => {
|
|
4139
4160
|
var t = e, {
|
|
4140
4161
|
locale: r = U()
|
|
4141
|
-
} = t, n =
|
|
4162
|
+
} = t, n = Y(t, [
|
|
4142
4163
|
"locale"
|
|
4143
4164
|
]);
|
|
4144
|
-
return
|
|
4145
|
-
},
|
|
4165
|
+
return _i(tt({ locale: r }, n));
|
|
4166
|
+
}, Hi = (e = {}) => {
|
|
4146
4167
|
var t = e, {
|
|
4147
4168
|
locale: r = U()
|
|
4148
|
-
} = t, n =
|
|
4169
|
+
} = t, n = Y(t, [
|
|
4149
4170
|
"locale"
|
|
4150
4171
|
]);
|
|
4151
|
-
return
|
|
4152
|
-
},
|
|
4172
|
+
return Ei(tt({ locale: r }, n));
|
|
4173
|
+
}, Si = (e = {}) => {
|
|
4153
4174
|
var t = e, {
|
|
4154
4175
|
locale: r = U()
|
|
4155
|
-
} = t, n =
|
|
4176
|
+
} = t, n = Y(t, [
|
|
4156
4177
|
"locale"
|
|
4157
4178
|
]);
|
|
4158
|
-
return
|
|
4159
|
-
},
|
|
4179
|
+
return xi(tt({ locale: r }, n));
|
|
4180
|
+
}, wi = He(
|
|
4160
4181
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4161
|
-
(e, t = U()) => new
|
|
4162
|
-
ignoreTag:
|
|
4182
|
+
(e, t = U()) => new Kn(e, t, Z().formats, {
|
|
4183
|
+
ignoreTag: Z().ignoreTag
|
|
4163
4184
|
})
|
|
4164
|
-
),
|
|
4185
|
+
), Bi = (e, t = {}) => {
|
|
4165
4186
|
var r, n, i, o;
|
|
4166
4187
|
let a = t;
|
|
4167
4188
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -4174,9 +4195,9 @@ const oe = (e, t) => {
|
|
|
4174
4195
|
throw new Error(
|
|
4175
4196
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4176
4197
|
);
|
|
4177
|
-
let h =
|
|
4198
|
+
let h = er(e, l);
|
|
4178
4199
|
if (!h)
|
|
4179
|
-
h = (o = (i = (n = (r =
|
|
4200
|
+
h = (o = (i = (n = (r = Z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4180
4201
|
else if (typeof h != "string")
|
|
4181
4202
|
return console.warn(
|
|
4182
4203
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4185,7 +4206,7 @@ const oe = (e, t) => {
|
|
|
4185
4206
|
return h;
|
|
4186
4207
|
let c = h;
|
|
4187
4208
|
try {
|
|
4188
|
-
c =
|
|
4209
|
+
c = wi(h, l).format(s);
|
|
4189
4210
|
} catch (f) {
|
|
4190
4211
|
f instanceof Error && console.warn(
|
|
4191
4212
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4193,20 +4214,20 @@ const oe = (e, t) => {
|
|
|
4193
4214
|
);
|
|
4194
4215
|
}
|
|
4195
4216
|
return c;
|
|
4196
|
-
},
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4217
|
+
}, Ai = (e, t) => Si(t).format(e), Pi = (e, t) => Hi(t).format(e), Oi = (e, t) => Ti(t).format(e), Ii = (e, t = U()) => er(e, t), Ni = Q([J, ue], () => Bi);
|
|
4218
|
+
Q([J], () => Ai);
|
|
4219
|
+
Q([J], () => Pi);
|
|
4220
|
+
Q([J], () => Oi);
|
|
4221
|
+
Q([J, ue], () => Ii);
|
|
4201
4222
|
window.emWidgets = { topic: kr };
|
|
4202
|
-
const
|
|
4203
|
-
function
|
|
4204
|
-
|
|
4223
|
+
const Li = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4224
|
+
function St(e, t) {
|
|
4225
|
+
rr(e, t);
|
|
4205
4226
|
}
|
|
4206
|
-
function
|
|
4207
|
-
|
|
4227
|
+
function Ci(e) {
|
|
4228
|
+
J.set(e);
|
|
4208
4229
|
}
|
|
4209
|
-
const
|
|
4230
|
+
const wt = {
|
|
4210
4231
|
en: {
|
|
4211
4232
|
titleTransactionHistory: "Transaction History",
|
|
4212
4233
|
loading: "Loading, please wait ..."
|
|
@@ -4248,13 +4269,13 @@ const Ht = {
|
|
|
4248
4269
|
loading: "Loading, please wait ..."
|
|
4249
4270
|
}
|
|
4250
4271
|
};
|
|
4251
|
-
function
|
|
4272
|
+
function Mi(e, t) {
|
|
4252
4273
|
if (e) {
|
|
4253
4274
|
const r = document.createElement("style");
|
|
4254
4275
|
r.innerHTML = t, e.appendChild(r);
|
|
4255
4276
|
}
|
|
4256
4277
|
}
|
|
4257
|
-
function
|
|
4278
|
+
function $i(e, t) {
|
|
4258
4279
|
const r = new URL(t);
|
|
4259
4280
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4260
4281
|
const i = document.createElement("style");
|
|
@@ -4263,7 +4284,7 @@ function Ci(e, t) {
|
|
|
4263
4284
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4264
4285
|
});
|
|
4265
4286
|
}
|
|
4266
|
-
function
|
|
4287
|
+
function Ri(e, t, r) {
|
|
4267
4288
|
if (window.emMessageBus) {
|
|
4268
4289
|
const n = document.createElement("style");
|
|
4269
4290
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4271,20 +4292,20 @@ function Mi(e, t, r) {
|
|
|
4271
4292
|
});
|
|
4272
4293
|
}
|
|
4273
4294
|
}
|
|
4274
|
-
function
|
|
4275
|
-
|
|
4295
|
+
function Ui(e) {
|
|
4296
|
+
hr(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}");
|
|
4276
4297
|
}
|
|
4277
|
-
function
|
|
4298
|
+
function Di(e) {
|
|
4278
4299
|
let t, r, n, i, o, a, s, l, u, h, c = (
|
|
4279
4300
|
/*$_*/
|
|
4280
4301
|
e[3]("titleTransactionHistory") + ""
|
|
4281
|
-
), f, p,
|
|
4302
|
+
), f, p, g;
|
|
4282
4303
|
return {
|
|
4283
4304
|
c() {
|
|
4284
|
-
t =
|
|
4305
|
+
t = N("div"), r = G("svg"), n = G("defs"), i = G("style"), o = te(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = G("g"), s = G("g"), l = G("path"), u = Le(), h = N("h2"), f = te(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");
|
|
4285
4306
|
},
|
|
4286
4307
|
m(m, T) {
|
|
4287
|
-
|
|
4308
|
+
se(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 || (g = fr(
|
|
4288
4309
|
t,
|
|
4289
4310
|
"click",
|
|
4290
4311
|
/*click_handler*/
|
|
@@ -4294,119 +4315,119 @@ function Ri(e) {
|
|
|
4294
4315
|
p(m, T) {
|
|
4295
4316
|
T & /*$_*/
|
|
4296
4317
|
8 && c !== (c = /*$_*/
|
|
4297
|
-
m[3]("titleTransactionHistory") + "") &&
|
|
4318
|
+
m[3]("titleTransactionHistory") + "") && Ke(f, c);
|
|
4298
4319
|
},
|
|
4299
4320
|
d(m) {
|
|
4300
|
-
m &&
|
|
4321
|
+
m && q(t), p = !1, g();
|
|
4301
4322
|
}
|
|
4302
4323
|
};
|
|
4303
4324
|
}
|
|
4304
|
-
function
|
|
4325
|
+
function Gi(e) {
|
|
4305
4326
|
let t, r, n;
|
|
4306
4327
|
return {
|
|
4307
4328
|
c() {
|
|
4308
|
-
t =
|
|
4329
|
+
t = N("div"), r = N("iframe"), nt(r.src, n = /*iframeUrl*/
|
|
4309
4330
|
e[2]) || E(r, "src", n), E(r, "title", "Transaction History Iframe"), E(t, "class", "TransactionHistoryIframeWrapper");
|
|
4310
4331
|
},
|
|
4311
4332
|
m(i, o) {
|
|
4312
|
-
|
|
4333
|
+
se(i, t, o), x(t, r);
|
|
4313
4334
|
},
|
|
4314
4335
|
p(i, o) {
|
|
4315
4336
|
o & /*iframeUrl*/
|
|
4316
|
-
4 && !
|
|
4337
|
+
4 && !nt(r.src, n = /*iframeUrl*/
|
|
4317
4338
|
i[2]) && E(r, "src", n);
|
|
4318
4339
|
},
|
|
4319
4340
|
d(i) {
|
|
4320
|
-
i &&
|
|
4341
|
+
i && q(t);
|
|
4321
4342
|
}
|
|
4322
4343
|
};
|
|
4323
4344
|
}
|
|
4324
|
-
function
|
|
4345
|
+
function Fi(e) {
|
|
4325
4346
|
let t, r = (
|
|
4326
4347
|
/*$_*/
|
|
4327
4348
|
e[3]("loading") + ""
|
|
4328
4349
|
), n;
|
|
4329
4350
|
return {
|
|
4330
4351
|
c() {
|
|
4331
|
-
t =
|
|
4352
|
+
t = N("p"), n = te(r);
|
|
4332
4353
|
},
|
|
4333
4354
|
m(i, o) {
|
|
4334
|
-
|
|
4355
|
+
se(i, t, o), x(t, n);
|
|
4335
4356
|
},
|
|
4336
4357
|
p(i, o) {
|
|
4337
4358
|
o & /*$_*/
|
|
4338
4359
|
8 && r !== (r = /*$_*/
|
|
4339
|
-
i[3]("loading") + "") &&
|
|
4360
|
+
i[3]("loading") + "") && Ke(n, r);
|
|
4340
4361
|
},
|
|
4341
4362
|
d(i) {
|
|
4342
|
-
i &&
|
|
4363
|
+
i && q(t);
|
|
4343
4364
|
}
|
|
4344
4365
|
};
|
|
4345
4366
|
}
|
|
4346
|
-
function
|
|
4367
|
+
function ji(e) {
|
|
4347
4368
|
let t, r, n, i = (
|
|
4348
4369
|
/*$_*/
|
|
4349
4370
|
e[3]("titleTransactionHistory") + ""
|
|
4350
4371
|
), o, a, s = (
|
|
4351
4372
|
/*isMobile*/
|
|
4352
|
-
e[4] &&
|
|
4373
|
+
e[4] && Di(e)
|
|
4353
4374
|
);
|
|
4354
4375
|
function l(c, f) {
|
|
4355
4376
|
return (
|
|
4356
4377
|
/*isLoading*/
|
|
4357
|
-
c[1] ?
|
|
4378
|
+
c[1] ? Fi : Gi
|
|
4358
4379
|
);
|
|
4359
4380
|
}
|
|
4360
4381
|
let u = l(e), h = u(e);
|
|
4361
4382
|
return {
|
|
4362
4383
|
c() {
|
|
4363
|
-
t =
|
|
4384
|
+
t = N("div"), s && s.c(), r = Le(), n = N("h2"), o = te(i), a = Le(), h.c(), E(n, "class", "TransactionHistoryTitle " + /*isMobile*/
|
|
4364
4385
|
(e[4] ? "TransactionHistoryTitleNone" : "")), E(t, "class", "TransactionHistoryWrapper " + /*isMobile*/
|
|
4365
4386
|
(e[4] ? "TransactionHistoryWrapperMobile" : ""));
|
|
4366
4387
|
},
|
|
4367
4388
|
m(c, f) {
|
|
4368
|
-
|
|
4389
|
+
se(c, t, f), s && s.m(t, null), x(t, r), x(t, n), x(n, o), x(t, a), h.m(t, null), e[15](t);
|
|
4369
4390
|
},
|
|
4370
4391
|
p(c, [f]) {
|
|
4371
4392
|
/*isMobile*/
|
|
4372
4393
|
c[4] && s.p(c, f), f & /*$_*/
|
|
4373
4394
|
8 && i !== (i = /*$_*/
|
|
4374
|
-
c[3]("titleTransactionHistory") + "") &&
|
|
4395
|
+
c[3]("titleTransactionHistory") + "") && Ke(o, i), u === (u = l(c)) && h ? h.p(c, f) : (h.d(1), h = u(c), h && (h.c(), h.m(t, null)));
|
|
4375
4396
|
},
|
|
4376
4397
|
i: w,
|
|
4377
4398
|
o: w,
|
|
4378
4399
|
d(c) {
|
|
4379
|
-
c &&
|
|
4400
|
+
c && q(t), s && s.d(), h.d(), e[15](null);
|
|
4380
4401
|
}
|
|
4381
4402
|
};
|
|
4382
4403
|
}
|
|
4383
|
-
function
|
|
4404
|
+
function ki(e, t, r) {
|
|
4384
4405
|
let n;
|
|
4385
|
-
|
|
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,
|
|
4406
|
+
ur(e, Ni, (y) => r(3, n = y));
|
|
4407
|
+
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, g = Li(p) !== "PC", m = !0, T = "";
|
|
4387
4408
|
const $ = () => {
|
|
4388
4409
|
fetch(c).then((L) => L.json()).then((L) => {
|
|
4389
4410
|
Object.keys(L).forEach((C) => {
|
|
4390
|
-
|
|
4411
|
+
St(C, L[C]);
|
|
4391
4412
|
});
|
|
4392
4413
|
}).catch((L) => {
|
|
4393
4414
|
console.log(L);
|
|
4394
4415
|
});
|
|
4395
4416
|
};
|
|
4396
|
-
Object.keys(
|
|
4397
|
-
|
|
4417
|
+
Object.keys(wt).forEach((y) => {
|
|
4418
|
+
St(y, wt[y]);
|
|
4398
4419
|
});
|
|
4399
|
-
const
|
|
4420
|
+
const P = () => {
|
|
4400
4421
|
window.postMessage(
|
|
4401
4422
|
{
|
|
4402
4423
|
type: "PlayerAccountMenuActive",
|
|
4403
|
-
isMobile:
|
|
4424
|
+
isMobile: g
|
|
4404
4425
|
},
|
|
4405
4426
|
window.location.href
|
|
4406
4427
|
);
|
|
4407
4428
|
}, S = () => {
|
|
4408
|
-
let
|
|
4409
|
-
|
|
4429
|
+
let y = new URL(`${i}/v1/player/${a}/hostedcashier/customertransactionhistoryurl`);
|
|
4430
|
+
y.searchParams.append("language", s);
|
|
4410
4431
|
let L = {
|
|
4411
4432
|
method: "GET",
|
|
4412
4433
|
headers: {
|
|
@@ -4414,7 +4435,7 @@ function Fi(e, t, r) {
|
|
|
4414
4435
|
accept: "application/json"
|
|
4415
4436
|
}
|
|
4416
4437
|
};
|
|
4417
|
-
fetch(
|
|
4438
|
+
fetch(y.href, L).then((C) => C.json()).then(
|
|
4418
4439
|
(C) => {
|
|
4419
4440
|
r(1, m = !1), r(2, T = C.CashierUrl);
|
|
4420
4441
|
},
|
|
@@ -4423,33 +4444,33 @@ function Fi(e, t, r) {
|
|
|
4423
4444
|
}
|
|
4424
4445
|
);
|
|
4425
4446
|
}, R = () => {
|
|
4426
|
-
|
|
4447
|
+
Ci(s);
|
|
4427
4448
|
};
|
|
4428
|
-
|
|
4449
|
+
br(() => () => {
|
|
4429
4450
|
});
|
|
4430
|
-
const
|
|
4431
|
-
function D(
|
|
4432
|
-
|
|
4433
|
-
f =
|
|
4451
|
+
const O = () => P();
|
|
4452
|
+
function D(y) {
|
|
4453
|
+
Ce[y ? "unshift" : "push"](() => {
|
|
4454
|
+
f = y, r(0, f);
|
|
4434
4455
|
});
|
|
4435
4456
|
}
|
|
4436
|
-
return e.$$set = (
|
|
4437
|
-
"endpoint" in
|
|
4457
|
+
return e.$$set = (y) => {
|
|
4458
|
+
"endpoint" in y && r(6, i = y.endpoint), "session" in y && r(7, o = y.session), "playerid" in y && r(8, a = y.playerid), "lang" in y && r(9, s = y.lang), "clientstyling" in y && r(10, l = y.clientstyling), "clientstylingurl" in y && r(11, u = y.clientstylingurl), "mbsource" in y && r(12, h = y.mbsource), "translationurl" in y && r(13, c = y.translationurl);
|
|
4438
4459
|
}, e.$$.update = () => {
|
|
4439
4460
|
e.$$.dirty & /*lang*/
|
|
4440
4461
|
512 && s && R(), e.$$.dirty & /*session, playerid, endpoint, lang*/
|
|
4441
4462
|
960 && o && a && i && s && S(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4442
|
-
1025 && l && f &&
|
|
4443
|
-
2049 && u && f &&
|
|
4444
|
-
4097 && h && f &&
|
|
4463
|
+
1025 && l && f && Mi(f, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4464
|
+
2049 && u && f && $i(f, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4465
|
+
4097 && h && f && Ri(f, `${h}.Style`), e.$$.dirty & /*translationurl*/
|
|
4445
4466
|
8192 && c && $();
|
|
4446
4467
|
}, [
|
|
4447
4468
|
f,
|
|
4448
4469
|
m,
|
|
4449
4470
|
T,
|
|
4450
4471
|
n,
|
|
4451
|
-
|
|
4452
|
-
|
|
4472
|
+
g,
|
|
4473
|
+
P,
|
|
4453
4474
|
i,
|
|
4454
4475
|
o,
|
|
4455
4476
|
a,
|
|
@@ -4458,18 +4479,18 @@ function Fi(e, t, r) {
|
|
|
4458
4479
|
u,
|
|
4459
4480
|
h,
|
|
4460
4481
|
c,
|
|
4461
|
-
|
|
4482
|
+
O,
|
|
4462
4483
|
D
|
|
4463
4484
|
];
|
|
4464
4485
|
}
|
|
4465
|
-
class
|
|
4486
|
+
class Vi extends Ar {
|
|
4466
4487
|
constructor(t) {
|
|
4467
|
-
super(),
|
|
4488
|
+
super(), wr(
|
|
4468
4489
|
this,
|
|
4469
4490
|
t,
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4491
|
+
ki,
|
|
4492
|
+
ji,
|
|
4493
|
+
At,
|
|
4473
4494
|
{
|
|
4474
4495
|
endpoint: 6,
|
|
4475
4496
|
session: 7,
|
|
@@ -4480,7 +4501,7 @@ class ji extends Br {
|
|
|
4480
4501
|
mbsource: 12,
|
|
4481
4502
|
translationurl: 13
|
|
4482
4503
|
},
|
|
4483
|
-
|
|
4504
|
+
Ui
|
|
4484
4505
|
);
|
|
4485
4506
|
}
|
|
4486
4507
|
get endpoint() {
|
|
@@ -4532,7 +4553,7 @@ class ji extends Br {
|
|
|
4532
4553
|
this.$$set({ translationurl: t }), B();
|
|
4533
4554
|
}
|
|
4534
4555
|
}
|
|
4535
|
-
|
|
4556
|
+
Br(Vi, { endpoint: {}, session: {}, playerid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4536
4557
|
export {
|
|
4537
|
-
|
|
4558
|
+
Vi as P
|
|
4538
4559
|
};
|