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