@everymatrix/player-transaction-history 1.54.12 → 1.56.0
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-0SiPshAI.js → PlayerTransactionHistory-C-NNs75B.js} +547 -518
- package/components/{PlayerTransactionHistory-DtUDx_zx.js → PlayerTransactionHistory-DObIO-MZ.js} +522 -493
- package/components/PlayerTransactionHistory-Dt8tscKZ.cjs +5 -0
- 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-Cj5yOord.cjs +0 -5
package/components/{PlayerTransactionHistory-0SiPshAI.js → PlayerTransactionHistory-C-NNs75B.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var He = (e, t, r) => t in e ?
|
|
1
|
+
var ur = Object.defineProperty, hr = Object.defineProperties;
|
|
2
|
+
var lr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ke = Object.getOwnPropertySymbols;
|
|
4
|
+
var cr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var He = (e, t, r) => t in e ? ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
cr.call(t, r) && He(e, r, t[r]);
|
|
8
|
+
if (Ke)
|
|
9
|
+
for (var r of Ke(t))
|
|
10
|
+
fr.call(t, r) && He(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, tt = (e, t) => hr(e, lr(t));
|
|
13
|
+
var w = (e, t, r) => He(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
+
var rt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(h));
|
|
@@ -27,53 +27,53 @@ var nt = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function B() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function At(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function nt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function ae(e) {
|
|
39
|
+
e.forEach(At);
|
|
40
40
|
}
|
|
41
41
|
function qe(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Pt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
let le;
|
|
48
|
-
function
|
|
48
|
+
function it(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 pr(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Ot(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
58
|
-
return
|
|
58
|
+
return B;
|
|
59
59
|
}
|
|
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 mr(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(Ot(t, r));
|
|
65
65
|
}
|
|
66
66
|
function x(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
69
|
+
function dr(e, t, r) {
|
|
70
|
+
const n = br(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, yr(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function br(e) {
|
|
77
77
|
if (!e) return document;
|
|
78
78
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
79
79
|
return t && /** @type {ShadowRoot} */
|
|
@@ -82,20 +82,20 @@ function yr(e) {
|
|
|
82
82
|
t
|
|
83
83
|
) : e.ownerDocument;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function yr(e, t) {
|
|
86
86
|
return x(
|
|
87
87
|
/** @type {Document} */
|
|
88
88
|
e.head || e,
|
|
89
89
|
t
|
|
90
90
|
), t.sheet;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function ue(e, t, r) {
|
|
93
93
|
e.insertBefore(t, r || null);
|
|
94
94
|
}
|
|
95
95
|
function J(e) {
|
|
96
96
|
e.parentNode && e.parentNode.removeChild(e);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function N(e) {
|
|
99
99
|
return document.createElement(e);
|
|
100
100
|
}
|
|
101
101
|
function F(e) {
|
|
@@ -107,20 +107,20 @@ function ne(e) {
|
|
|
107
107
|
function Ne() {
|
|
108
108
|
return ne(" ");
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function gr(e, t, r, n) {
|
|
111
111
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
112
112
|
}
|
|
113
113
|
function E(e, t, r) {
|
|
114
114
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function vr(e) {
|
|
117
117
|
return Array.from(e.childNodes);
|
|
118
118
|
}
|
|
119
119
|
function Qe(e, t) {
|
|
120
120
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
121
121
|
t);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function _r(e) {
|
|
124
124
|
const t = {};
|
|
125
125
|
return e.childNodes.forEach(
|
|
126
126
|
/** @param {Element} node */
|
|
@@ -129,31 +129,38 @@ function Er(e) {
|
|
|
129
129
|
}
|
|
130
130
|
), t;
|
|
131
131
|
}
|
|
132
|
-
let
|
|
132
|
+
let ie;
|
|
133
133
|
function re(e) {
|
|
134
|
-
|
|
134
|
+
ie = e;
|
|
135
|
+
}
|
|
136
|
+
function Er() {
|
|
137
|
+
if (!ie) throw new Error("Function called outside component initialization");
|
|
138
|
+
return ie;
|
|
139
|
+
}
|
|
140
|
+
function xr(e) {
|
|
141
|
+
Er().$$.on_mount.push(e);
|
|
135
142
|
}
|
|
136
143
|
const V = [], Le = [];
|
|
137
144
|
let X = [];
|
|
138
|
-
const
|
|
145
|
+
const ot = [], Tr = /* @__PURE__ */ Promise.resolve();
|
|
139
146
|
let Ce = !1;
|
|
140
|
-
function
|
|
141
|
-
Ce || (Ce = !0,
|
|
147
|
+
function Hr() {
|
|
148
|
+
Ce || (Ce = !0, Tr.then(A));
|
|
142
149
|
}
|
|
143
150
|
function Me(e) {
|
|
144
151
|
X.push(e);
|
|
145
152
|
}
|
|
146
153
|
const Se = /* @__PURE__ */ new Set();
|
|
147
154
|
let j = 0;
|
|
148
|
-
function
|
|
155
|
+
function A() {
|
|
149
156
|
if (j !== 0)
|
|
150
157
|
return;
|
|
151
|
-
const e =
|
|
158
|
+
const e = ie;
|
|
152
159
|
do {
|
|
153
160
|
try {
|
|
154
161
|
for (; j < V.length; ) {
|
|
155
162
|
const t = V[j];
|
|
156
|
-
j++, re(t),
|
|
163
|
+
j++, re(t), Sr(t.$$);
|
|
157
164
|
}
|
|
158
165
|
} catch (t) {
|
|
159
166
|
throw V.length = 0, j = 0, t;
|
|
@@ -165,50 +172,50 @@ function I() {
|
|
|
165
172
|
}
|
|
166
173
|
X.length = 0;
|
|
167
174
|
} while (V.length);
|
|
168
|
-
for (;
|
|
169
|
-
|
|
175
|
+
for (; ot.length; )
|
|
176
|
+
ot.pop()();
|
|
170
177
|
Ce = !1, Se.clear(), re(e);
|
|
171
178
|
}
|
|
172
|
-
function
|
|
179
|
+
function Sr(e) {
|
|
173
180
|
if (e.fragment !== null) {
|
|
174
|
-
e.update(),
|
|
181
|
+
e.update(), ae(e.before_update);
|
|
175
182
|
const t = e.dirty;
|
|
176
183
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
177
184
|
}
|
|
178
185
|
}
|
|
179
|
-
function
|
|
186
|
+
function wr(e) {
|
|
180
187
|
const t = [], r = [];
|
|
181
188
|
X.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), X = t;
|
|
182
189
|
}
|
|
183
|
-
const
|
|
184
|
-
function
|
|
185
|
-
e && e.i && (
|
|
190
|
+
const Br = /* @__PURE__ */ new Set();
|
|
191
|
+
function Ar(e, t) {
|
|
192
|
+
e && e.i && (Br.delete(e), e.i(t));
|
|
186
193
|
}
|
|
187
|
-
function
|
|
194
|
+
function Pr(e, t, r) {
|
|
188
195
|
const { fragment: n, after_update: i } = e.$$;
|
|
189
196
|
n && n.m(t, r), Me(() => {
|
|
190
|
-
const o = e.$$.on_mount.map(
|
|
191
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
197
|
+
const o = e.$$.on_mount.map(At).filter(qe);
|
|
198
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ae(o), e.$$.on_mount = [];
|
|
192
199
|
}), i.forEach(Me);
|
|
193
200
|
}
|
|
194
|
-
function
|
|
201
|
+
function Or(e, t) {
|
|
195
202
|
const r = e.$$;
|
|
196
|
-
r.fragment !== null && (
|
|
203
|
+
r.fragment !== null && (wr(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
197
204
|
}
|
|
198
|
-
function
|
|
199
|
-
e.$$.dirty[0] === -1 && (V.push(e),
|
|
205
|
+
function Ir(e, t) {
|
|
206
|
+
e.$$.dirty[0] === -1 && (V.push(e), Hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
200
207
|
}
|
|
201
|
-
function
|
|
202
|
-
const h =
|
|
208
|
+
function Nr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
209
|
+
const h = ie;
|
|
203
210
|
re(e);
|
|
204
211
|
const u = e.$$ = {
|
|
205
212
|
fragment: null,
|
|
206
213
|
ctx: [],
|
|
207
214
|
// state
|
|
208
215
|
props: o,
|
|
209
|
-
update:
|
|
216
|
+
update: B,
|
|
210
217
|
not_equal: i,
|
|
211
|
-
bound:
|
|
218
|
+
bound: nt(),
|
|
212
219
|
// lifecycle
|
|
213
220
|
on_mount: [],
|
|
214
221
|
on_destroy: [],
|
|
@@ -217,7 +224,7 @@ function Ir(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
217
224
|
after_update: [],
|
|
218
225
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
219
226
|
// everything else
|
|
220
|
-
callbacks:
|
|
227
|
+
callbacks: nt(),
|
|
221
228
|
dirty: a,
|
|
222
229
|
skip_bound: !1,
|
|
223
230
|
root: t.target || h.$$.root
|
|
@@ -226,39 +233,39 @@ function Ir(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
226
233
|
let l = !1;
|
|
227
234
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
228
235
|
const v = p.length ? p[0] : f;
|
|
229
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = v) && (!u.skip_bound && u.bound[c] && u.bound[c](v), l &&
|
|
230
|
-
}) : [], u.update(), l = !0,
|
|
236
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = v) && (!u.skip_bound && u.bound[c] && u.bound[c](v), l && Ir(e, c)), f;
|
|
237
|
+
}) : [], u.update(), l = !0, ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
231
238
|
if (t.hydrate) {
|
|
232
|
-
const c =
|
|
239
|
+
const c = vr(t.target);
|
|
233
240
|
u.fragment && u.fragment.l(c), c.forEach(J);
|
|
234
241
|
} else
|
|
235
242
|
u.fragment && u.fragment.c();
|
|
236
|
-
t.intro &&
|
|
243
|
+
t.intro && Ar(e.$$.fragment), Pr(e, t.target, t.anchor), A();
|
|
237
244
|
}
|
|
238
245
|
re(h);
|
|
239
246
|
}
|
|
240
|
-
let
|
|
241
|
-
typeof HTMLElement == "function" && (
|
|
247
|
+
let It;
|
|
248
|
+
typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
242
249
|
constructor(t, r, n) {
|
|
243
250
|
super();
|
|
244
251
|
/** The Svelte component constructor */
|
|
245
|
-
|
|
252
|
+
w(this, "$$ctor");
|
|
246
253
|
/** Slots */
|
|
247
|
-
|
|
254
|
+
w(this, "$$s");
|
|
248
255
|
/** The Svelte component instance */
|
|
249
|
-
|
|
256
|
+
w(this, "$$c");
|
|
250
257
|
/** Whether or not the custom element is connected */
|
|
251
|
-
|
|
258
|
+
w(this, "$$cn", !1);
|
|
252
259
|
/** Component props data */
|
|
253
|
-
|
|
260
|
+
w(this, "$$d", {});
|
|
254
261
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
255
|
-
|
|
262
|
+
w(this, "$$r", !1);
|
|
256
263
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
257
|
-
|
|
264
|
+
w(this, "$$p_d", {});
|
|
258
265
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
259
|
-
|
|
266
|
+
w(this, "$$l", {});
|
|
260
267
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
261
|
-
|
|
268
|
+
w(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
262
269
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
263
270
|
}
|
|
264
271
|
addEventListener(t, r, n) {
|
|
@@ -275,21 +282,21 @@ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
|
275
282
|
}
|
|
276
283
|
}
|
|
277
284
|
connectedCallback() {
|
|
278
|
-
return
|
|
285
|
+
return rt(this, null, function* () {
|
|
279
286
|
if (this.$$cn = !0, !this.$$c) {
|
|
280
287
|
let t = function(o) {
|
|
281
288
|
return () => {
|
|
282
289
|
let s;
|
|
283
290
|
return {
|
|
284
291
|
c: function() {
|
|
285
|
-
s =
|
|
292
|
+
s = N("slot"), o !== "default" && E(s, "name", o);
|
|
286
293
|
},
|
|
287
294
|
/**
|
|
288
295
|
* @param {HTMLElement} target
|
|
289
296
|
* @param {HTMLElement} [anchor]
|
|
290
297
|
*/
|
|
291
298
|
m: function(u, l) {
|
|
292
|
-
|
|
299
|
+
ue(u, s, l);
|
|
293
300
|
},
|
|
294
301
|
d: function(u) {
|
|
295
302
|
u && J(s);
|
|
@@ -299,7 +306,7 @@ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
|
299
306
|
};
|
|
300
307
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
301
308
|
return;
|
|
302
|
-
const r = {}, n =
|
|
309
|
+
const r = {}, n = _r(this);
|
|
303
310
|
for (const o of this.$$s)
|
|
304
311
|
o in n && (r[o] = [t(o)]);
|
|
305
312
|
for (const o of this.attributes) {
|
|
@@ -310,7 +317,7 @@ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
|
310
317
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
311
318
|
this.$$c = new this.$$ctor({
|
|
312
319
|
target: this.shadowRoot || this,
|
|
313
|
-
props:
|
|
320
|
+
props: tt(et({}, this.$$d), {
|
|
314
321
|
$$slots: r,
|
|
315
322
|
$$scope: {
|
|
316
323
|
ctx: []
|
|
@@ -388,8 +395,8 @@ function pe(e, t, r, n) {
|
|
|
388
395
|
return t;
|
|
389
396
|
}
|
|
390
397
|
}
|
|
391
|
-
function
|
|
392
|
-
let s = class extends
|
|
398
|
+
function Lr(e, t, r, n, i, o) {
|
|
399
|
+
let s = class extends It {
|
|
393
400
|
constructor() {
|
|
394
401
|
super(e, r, i), this.$$p_d = t;
|
|
395
402
|
}
|
|
@@ -419,7 +426,7 @@ function Nr(e, t, r, n, i, o) {
|
|
|
419
426
|
}), e.element = /** @type {any} */
|
|
420
427
|
s, s;
|
|
421
428
|
}
|
|
422
|
-
class
|
|
429
|
+
class Cr {
|
|
423
430
|
constructor() {
|
|
424
431
|
/**
|
|
425
432
|
* ### PRIVATE API
|
|
@@ -428,7 +435,7 @@ class Lr {
|
|
|
428
435
|
*
|
|
429
436
|
* @type {any}
|
|
430
437
|
*/
|
|
431
|
-
|
|
438
|
+
w(this, "$$");
|
|
432
439
|
/**
|
|
433
440
|
* ### PRIVATE API
|
|
434
441
|
*
|
|
@@ -436,11 +443,11 @@ class Lr {
|
|
|
436
443
|
*
|
|
437
444
|
* @type {any}
|
|
438
445
|
*/
|
|
439
|
-
|
|
446
|
+
w(this, "$$set");
|
|
440
447
|
}
|
|
441
448
|
/** @returns {void} */
|
|
442
449
|
$destroy() {
|
|
443
|
-
|
|
450
|
+
Or(this, 1), this.$destroy = B;
|
|
444
451
|
}
|
|
445
452
|
/**
|
|
446
453
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -450,7 +457,7 @@ class Lr {
|
|
|
450
457
|
*/
|
|
451
458
|
$on(t, r) {
|
|
452
459
|
if (!qe(r))
|
|
453
|
-
return
|
|
460
|
+
return B;
|
|
454
461
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
455
462
|
return n.push(r), () => {
|
|
456
463
|
const i = n.indexOf(r);
|
|
@@ -462,11 +469,11 @@ class Lr {
|
|
|
462
469
|
* @returns {void}
|
|
463
470
|
*/
|
|
464
471
|
$set(t) {
|
|
465
|
-
this.$$set && !
|
|
472
|
+
this.$$set && !pr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
466
473
|
}
|
|
467
474
|
}
|
|
468
|
-
const
|
|
469
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
475
|
+
const Mr = "4";
|
|
476
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Mr);
|
|
470
477
|
var $e = function(e, t) {
|
|
471
478
|
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
472
479
|
r.__proto__ = n;
|
|
@@ -474,7 +481,7 @@ var $e = function(e, t) {
|
|
|
474
481
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
475
482
|
}, $e(e, t);
|
|
476
483
|
};
|
|
477
|
-
function
|
|
484
|
+
function L(e, t) {
|
|
478
485
|
if (typeof t != "function" && t !== null)
|
|
479
486
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
480
487
|
$e(e, t);
|
|
@@ -492,7 +499,7 @@ var y = function() {
|
|
|
492
499
|
return t;
|
|
493
500
|
}, y.apply(this, arguments);
|
|
494
501
|
};
|
|
495
|
-
function
|
|
502
|
+
function $r(e, t) {
|
|
496
503
|
var r = {};
|
|
497
504
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
498
505
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -532,16 +539,16 @@ function W(e, t, r) {
|
|
|
532
539
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
533
540
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
534
541
|
}
|
|
535
|
-
function
|
|
542
|
+
function I(e) {
|
|
536
543
|
return typeof e == "function";
|
|
537
544
|
}
|
|
538
|
-
function
|
|
545
|
+
function Nt(e) {
|
|
539
546
|
var t = function(n) {
|
|
540
547
|
Error.call(n), n.stack = new Error().stack;
|
|
541
548
|
}, r = e(t);
|
|
542
549
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
543
550
|
}
|
|
544
|
-
var we =
|
|
551
|
+
var we = Nt(function(e) {
|
|
545
552
|
return function(r) {
|
|
546
553
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
547
554
|
` + r.map(function(n, i) {
|
|
@@ -584,7 +591,7 @@ var ve = function() {
|
|
|
584
591
|
else
|
|
585
592
|
s.remove(this);
|
|
586
593
|
var l = this.initialTeardown;
|
|
587
|
-
if (
|
|
594
|
+
if (I(l))
|
|
588
595
|
try {
|
|
589
596
|
l();
|
|
590
597
|
} catch (m) {
|
|
@@ -597,7 +604,7 @@ var ve = function() {
|
|
|
597
604
|
for (var f = Re(c), p = f.next(); !p.done; p = f.next()) {
|
|
598
605
|
var v = p.value;
|
|
599
606
|
try {
|
|
600
|
-
|
|
607
|
+
st(v);
|
|
601
608
|
} catch (m) {
|
|
602
609
|
o = o != null ? o : [], m instanceof we ? o = W(W([], Ue(o)), Ue(m.errors)) : o.push(m);
|
|
603
610
|
}
|
|
@@ -619,7 +626,7 @@ var ve = function() {
|
|
|
619
626
|
var r;
|
|
620
627
|
if (t && t !== this)
|
|
621
628
|
if (this.closed)
|
|
622
|
-
|
|
629
|
+
st(t);
|
|
623
630
|
else {
|
|
624
631
|
if (t instanceof e) {
|
|
625
632
|
if (t.closed || t._hasParent(this))
|
|
@@ -644,16 +651,16 @@ var ve = function() {
|
|
|
644
651
|
var t = new e();
|
|
645
652
|
return t.closed = !0, t;
|
|
646
653
|
}(), e;
|
|
647
|
-
}(),
|
|
648
|
-
function
|
|
649
|
-
return e instanceof ve || e && "closed" in e &&
|
|
654
|
+
}(), Lt = ve.EMPTY;
|
|
655
|
+
function Ct(e) {
|
|
656
|
+
return e instanceof ve || e && "closed" in e && I(e.remove) && I(e.add) && I(e.unsubscribe);
|
|
650
657
|
}
|
|
651
|
-
function
|
|
652
|
-
|
|
658
|
+
function st(e) {
|
|
659
|
+
I(e) ? e() : e.unsubscribe();
|
|
653
660
|
}
|
|
654
|
-
var
|
|
661
|
+
var Rr = {
|
|
655
662
|
Promise: void 0
|
|
656
|
-
},
|
|
663
|
+
}, Ur = {
|
|
657
664
|
setTimeout: function(e, t) {
|
|
658
665
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
659
666
|
r[n - 2] = arguments[n];
|
|
@@ -664,21 +671,21 @@ var $r = {
|
|
|
664
671
|
},
|
|
665
672
|
delegate: void 0
|
|
666
673
|
};
|
|
667
|
-
function
|
|
668
|
-
|
|
674
|
+
function Dr(e) {
|
|
675
|
+
Ur.setTimeout(function() {
|
|
669
676
|
throw e;
|
|
670
677
|
});
|
|
671
678
|
}
|
|
672
|
-
function
|
|
679
|
+
function at() {
|
|
673
680
|
}
|
|
674
681
|
function me(e) {
|
|
675
682
|
e();
|
|
676
683
|
}
|
|
677
|
-
var
|
|
678
|
-
|
|
684
|
+
var Mt = function(e) {
|
|
685
|
+
L(t, e);
|
|
679
686
|
function t(r) {
|
|
680
687
|
var n = e.call(this) || this;
|
|
681
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
688
|
+
return n.isStopped = !1, r ? (n.destination = r, Ct(r) && r.add(n)) : n.destination = jr, n;
|
|
682
689
|
}
|
|
683
690
|
return t.create = function(r, n, i) {
|
|
684
691
|
return new Ge(r, n, i);
|
|
@@ -705,7 +712,7 @@ var $t = function(e) {
|
|
|
705
712
|
this.unsubscribe();
|
|
706
713
|
}
|
|
707
714
|
}, t;
|
|
708
|
-
}(ve),
|
|
715
|
+
}(ve), Gr = function() {
|
|
709
716
|
function e(t) {
|
|
710
717
|
this.partialObserver = t;
|
|
711
718
|
}
|
|
@@ -737,42 +744,42 @@ var $t = function(e) {
|
|
|
737
744
|
}
|
|
738
745
|
}, e;
|
|
739
746
|
}(), Ge = function(e) {
|
|
740
|
-
|
|
747
|
+
L(t, e);
|
|
741
748
|
function t(r, n, i) {
|
|
742
749
|
var o = e.call(this) || this, s;
|
|
743
|
-
return
|
|
750
|
+
return I(r) || !r ? s = {
|
|
744
751
|
next: r != null ? r : void 0,
|
|
745
752
|
error: n != null ? n : void 0,
|
|
746
753
|
complete: i != null ? i : void 0
|
|
747
|
-
} : s = r, o.destination = new
|
|
754
|
+
} : s = r, o.destination = new Gr(s), o;
|
|
748
755
|
}
|
|
749
756
|
return t;
|
|
750
|
-
}(
|
|
757
|
+
}(Mt);
|
|
751
758
|
function ce(e) {
|
|
752
|
-
|
|
759
|
+
Dr(e);
|
|
753
760
|
}
|
|
754
|
-
function
|
|
761
|
+
function Fr(e) {
|
|
755
762
|
throw e;
|
|
756
763
|
}
|
|
757
|
-
var
|
|
764
|
+
var jr = {
|
|
758
765
|
closed: !0,
|
|
759
|
-
next:
|
|
760
|
-
error:
|
|
761
|
-
complete:
|
|
762
|
-
},
|
|
766
|
+
next: at,
|
|
767
|
+
error: Fr,
|
|
768
|
+
complete: at
|
|
769
|
+
}, kr = function() {
|
|
763
770
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
764
771
|
}();
|
|
765
|
-
function
|
|
772
|
+
function Vr(e) {
|
|
766
773
|
return e;
|
|
767
774
|
}
|
|
768
|
-
function
|
|
769
|
-
return e.length === 0 ?
|
|
775
|
+
function Xr(e) {
|
|
776
|
+
return e.length === 0 ? Vr : e.length === 1 ? e[0] : function(r) {
|
|
770
777
|
return e.reduce(function(n, i) {
|
|
771
778
|
return i(n);
|
|
772
779
|
}, r);
|
|
773
780
|
};
|
|
774
781
|
}
|
|
775
|
-
var
|
|
782
|
+
var ut = function() {
|
|
776
783
|
function e(t) {
|
|
777
784
|
t && (this._subscribe = t);
|
|
778
785
|
}
|
|
@@ -780,7 +787,7 @@ var ht = function() {
|
|
|
780
787
|
var r = new e();
|
|
781
788
|
return r.source = this, r.operator = t, r;
|
|
782
789
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
783
|
-
var i = this, o =
|
|
790
|
+
var i = this, o = zr(t) ? t : new Ge(t, r, n);
|
|
784
791
|
return me(function() {
|
|
785
792
|
var s = i, a = s.operator, h = s.source;
|
|
786
793
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -793,7 +800,7 @@ var ht = function() {
|
|
|
793
800
|
}
|
|
794
801
|
}, e.prototype.forEach = function(t, r) {
|
|
795
802
|
var n = this;
|
|
796
|
-
return r =
|
|
803
|
+
return r = ht(r), new r(function(i, o) {
|
|
797
804
|
var s = new Ge({
|
|
798
805
|
next: function(a) {
|
|
799
806
|
try {
|
|
@@ -810,15 +817,15 @@ var ht = function() {
|
|
|
810
817
|
}, e.prototype._subscribe = function(t) {
|
|
811
818
|
var r;
|
|
812
819
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
813
|
-
}, e.prototype[
|
|
820
|
+
}, e.prototype[kr] = function() {
|
|
814
821
|
return this;
|
|
815
822
|
}, e.prototype.pipe = function() {
|
|
816
823
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
817
824
|
t[r] = arguments[r];
|
|
818
|
-
return
|
|
825
|
+
return Xr(t)(this);
|
|
819
826
|
}, e.prototype.toPromise = function(t) {
|
|
820
827
|
var r = this;
|
|
821
|
-
return t =
|
|
828
|
+
return t = ht(t), new t(function(n, i) {
|
|
822
829
|
var o;
|
|
823
830
|
r.subscribe(function(s) {
|
|
824
831
|
return o = s;
|
|
@@ -832,32 +839,32 @@ var ht = function() {
|
|
|
832
839
|
return new e(t);
|
|
833
840
|
}, e;
|
|
834
841
|
}();
|
|
835
|
-
function
|
|
842
|
+
function ht(e) {
|
|
836
843
|
var t;
|
|
837
|
-
return (t = e != null ? e :
|
|
838
|
-
}
|
|
839
|
-
function Xr(e) {
|
|
840
|
-
return e && N(e.next) && N(e.error) && N(e.complete);
|
|
844
|
+
return (t = e != null ? e : Rr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
841
845
|
}
|
|
842
846
|
function Wr(e) {
|
|
843
|
-
return e && e
|
|
847
|
+
return e && I(e.next) && I(e.error) && I(e.complete);
|
|
848
|
+
}
|
|
849
|
+
function zr(e) {
|
|
850
|
+
return e && e instanceof Mt || Wr(e) && Ct(e);
|
|
844
851
|
}
|
|
845
|
-
var
|
|
852
|
+
var Zr = Nt(function(e) {
|
|
846
853
|
return function() {
|
|
847
854
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
848
855
|
};
|
|
849
|
-
}),
|
|
850
|
-
|
|
856
|
+
}), $t = function(e) {
|
|
857
|
+
L(t, e);
|
|
851
858
|
function t() {
|
|
852
859
|
var r = e.call(this) || this;
|
|
853
860
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
854
861
|
}
|
|
855
862
|
return t.prototype.lift = function(r) {
|
|
856
|
-
var n = new
|
|
863
|
+
var n = new lt(this, this);
|
|
857
864
|
return n.operator = r, n;
|
|
858
865
|
}, t.prototype._throwIfClosed = function() {
|
|
859
866
|
if (this.closed)
|
|
860
|
-
throw new
|
|
867
|
+
throw new Zr();
|
|
861
868
|
}, t.prototype.next = function(r) {
|
|
862
869
|
var n = this;
|
|
863
870
|
me(function() {
|
|
@@ -913,20 +920,20 @@ var zr = Lt(function(e) {
|
|
|
913
920
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
914
921
|
}, t.prototype._innerSubscribe = function(r) {
|
|
915
922
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
916
|
-
return o || s ?
|
|
923
|
+
return o || s ? Lt : (this.currentObservers = null, a.push(r), new ve(function() {
|
|
917
924
|
n.currentObservers = null, De(a, r);
|
|
918
925
|
}));
|
|
919
926
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
920
927
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
921
928
|
i ? r.error(o) : s && r.complete();
|
|
922
929
|
}, t.prototype.asObservable = function() {
|
|
923
|
-
var r = new
|
|
930
|
+
var r = new ut();
|
|
924
931
|
return r.source = this, r;
|
|
925
932
|
}, t.create = function(r, n) {
|
|
926
|
-
return new
|
|
933
|
+
return new lt(r, n);
|
|
927
934
|
}, t;
|
|
928
|
-
}(
|
|
929
|
-
|
|
935
|
+
}(ut), lt = function(e) {
|
|
936
|
+
L(t, e);
|
|
930
937
|
function t(r, n) {
|
|
931
938
|
var i = e.call(this) || this;
|
|
932
939
|
return i.destination = r, i.source = n, i;
|
|
@@ -942,17 +949,17 @@ var zr = Lt(function(e) {
|
|
|
942
949
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
943
950
|
}, t.prototype._subscribe = function(r) {
|
|
944
951
|
var n, i;
|
|
945
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
952
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Lt;
|
|
946
953
|
}, t;
|
|
947
|
-
}(
|
|
954
|
+
}($t), Rt = {
|
|
948
955
|
now: function() {
|
|
949
|
-
return (
|
|
956
|
+
return (Rt.delegate || Date).now();
|
|
950
957
|
},
|
|
951
958
|
delegate: void 0
|
|
952
|
-
},
|
|
953
|
-
|
|
959
|
+
}, qr = function(e) {
|
|
960
|
+
L(t, e);
|
|
954
961
|
function t(r, n, i) {
|
|
955
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
962
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Rt);
|
|
956
963
|
var o = e.call(this) || this;
|
|
957
964
|
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;
|
|
958
965
|
}
|
|
@@ -972,24 +979,24 @@ var zr = Lt(function(e) {
|
|
|
972
979
|
u && o.splice(0, u + 1);
|
|
973
980
|
}
|
|
974
981
|
}, t;
|
|
975
|
-
}(
|
|
976
|
-
const
|
|
977
|
-
if (
|
|
978
|
-
const r = new
|
|
979
|
-
|
|
982
|
+
}($t);
|
|
983
|
+
const ct = [], ft = {}, Qr = (e, t = 0) => {
|
|
984
|
+
if (ct.indexOf(e) == -1) {
|
|
985
|
+
const r = new qr(t);
|
|
986
|
+
ft[e] = r, ct.push(e);
|
|
980
987
|
}
|
|
981
|
-
return
|
|
988
|
+
return ft[e];
|
|
982
989
|
}, k = [];
|
|
983
|
-
function
|
|
990
|
+
function Jr(e, t) {
|
|
984
991
|
return {
|
|
985
992
|
subscribe: _e(e, t).subscribe
|
|
986
993
|
};
|
|
987
994
|
}
|
|
988
|
-
function _e(e, t =
|
|
995
|
+
function _e(e, t = B) {
|
|
989
996
|
let r;
|
|
990
997
|
const n = /* @__PURE__ */ new Set();
|
|
991
998
|
function i(a) {
|
|
992
|
-
if (
|
|
999
|
+
if (Pt(e, a) && (e = a, r)) {
|
|
993
1000
|
const h = !k.length;
|
|
994
1001
|
for (const u of n)
|
|
995
1002
|
u[1](), k.push(u, e);
|
|
@@ -1003,9 +1010,9 @@ function _e(e, t = P) {
|
|
|
1003
1010
|
function o(a) {
|
|
1004
1011
|
i(a(e));
|
|
1005
1012
|
}
|
|
1006
|
-
function s(a, h =
|
|
1013
|
+
function s(a, h = B) {
|
|
1007
1014
|
const u = [a, h];
|
|
1008
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
1015
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || B), a(e), () => {
|
|
1009
1016
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1010
1017
|
};
|
|
1011
1018
|
}
|
|
@@ -1016,18 +1023,18 @@ function Y(e, t, r) {
|
|
|
1016
1023
|
if (!i.every(Boolean))
|
|
1017
1024
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1018
1025
|
const o = t.length < 2;
|
|
1019
|
-
return
|
|
1026
|
+
return Jr(r, (s, a) => {
|
|
1020
1027
|
let h = !1;
|
|
1021
1028
|
const u = [];
|
|
1022
|
-
let l = 0, c =
|
|
1029
|
+
let l = 0, c = B;
|
|
1023
1030
|
const f = () => {
|
|
1024
1031
|
if (l)
|
|
1025
1032
|
return;
|
|
1026
1033
|
c();
|
|
1027
1034
|
const v = t(n ? u[0] : u, s, a);
|
|
1028
|
-
o ? s(v) : c = qe(v) ? v :
|
|
1035
|
+
o ? s(v) : c = qe(v) ? v : B;
|
|
1029
1036
|
}, p = i.map(
|
|
1030
|
-
(v, m) =>
|
|
1037
|
+
(v, m) => Ot(
|
|
1031
1038
|
v,
|
|
1032
1039
|
(T) => {
|
|
1033
1040
|
u[m] = T, l &= ~(1 << m), h && f();
|
|
@@ -1038,74 +1045,74 @@ function Y(e, t, r) {
|
|
|
1038
1045
|
)
|
|
1039
1046
|
);
|
|
1040
1047
|
return h = !0, f(), function() {
|
|
1041
|
-
|
|
1048
|
+
ae(p), c(), h = !1;
|
|
1042
1049
|
};
|
|
1043
1050
|
});
|
|
1044
1051
|
}
|
|
1045
|
-
function
|
|
1052
|
+
function Yr(e) {
|
|
1046
1053
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1047
1054
|
}
|
|
1048
|
-
var
|
|
1049
|
-
return
|
|
1055
|
+
var Kr = function(t) {
|
|
1056
|
+
return en(t) && !tn(t);
|
|
1050
1057
|
};
|
|
1051
|
-
function
|
|
1058
|
+
function en(e) {
|
|
1052
1059
|
return !!e && typeof e == "object";
|
|
1053
1060
|
}
|
|
1054
|
-
function
|
|
1061
|
+
function tn(e) {
|
|
1055
1062
|
var t = Object.prototype.toString.call(e);
|
|
1056
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1057
|
-
}
|
|
1058
|
-
var tn = typeof Symbol == "function" && Symbol.for, rn = tn ? Symbol.for("react.element") : 60103;
|
|
1059
|
-
function nn(e) {
|
|
1060
|
-
return e.$$typeof === rn;
|
|
1063
|
+
return t === "[object RegExp]" || t === "[object Date]" || on(e);
|
|
1061
1064
|
}
|
|
1065
|
+
var rn = typeof Symbol == "function" && Symbol.for, nn = rn ? Symbol.for("react.element") : 60103;
|
|
1062
1066
|
function on(e) {
|
|
1067
|
+
return e.$$typeof === nn;
|
|
1068
|
+
}
|
|
1069
|
+
function sn(e) {
|
|
1063
1070
|
return Array.isArray(e) ? [] : {};
|
|
1064
1071
|
}
|
|
1065
|
-
function
|
|
1066
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? z(
|
|
1072
|
+
function oe(e, t) {
|
|
1073
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? z(sn(e), e, t) : e;
|
|
1067
1074
|
}
|
|
1068
|
-
function
|
|
1075
|
+
function an(e, t, r) {
|
|
1069
1076
|
return e.concat(t).map(function(n) {
|
|
1070
|
-
return
|
|
1077
|
+
return oe(n, r);
|
|
1071
1078
|
});
|
|
1072
1079
|
}
|
|
1073
|
-
function
|
|
1080
|
+
function un(e, t) {
|
|
1074
1081
|
if (!t.customMerge)
|
|
1075
1082
|
return z;
|
|
1076
1083
|
var r = t.customMerge(e);
|
|
1077
1084
|
return typeof r == "function" ? r : z;
|
|
1078
1085
|
}
|
|
1079
|
-
function
|
|
1086
|
+
function hn(e) {
|
|
1080
1087
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1081
1088
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1082
1089
|
}) : [];
|
|
1083
1090
|
}
|
|
1084
|
-
function
|
|
1085
|
-
return Object.keys(e).concat(
|
|
1091
|
+
function pt(e) {
|
|
1092
|
+
return Object.keys(e).concat(hn(e));
|
|
1086
1093
|
}
|
|
1087
|
-
function
|
|
1094
|
+
function Ut(e, t) {
|
|
1088
1095
|
try {
|
|
1089
1096
|
return t in e;
|
|
1090
1097
|
} catch (r) {
|
|
1091
1098
|
return !1;
|
|
1092
1099
|
}
|
|
1093
1100
|
}
|
|
1094
|
-
function
|
|
1095
|
-
return
|
|
1101
|
+
function ln(e, t) {
|
|
1102
|
+
return Ut(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1096
1103
|
}
|
|
1097
|
-
function
|
|
1104
|
+
function cn(e, t, r) {
|
|
1098
1105
|
var n = {};
|
|
1099
|
-
return r.isMergeableObject(e) &&
|
|
1100
|
-
n[i] =
|
|
1101
|
-
}),
|
|
1102
|
-
|
|
1106
|
+
return r.isMergeableObject(e) && pt(e).forEach(function(i) {
|
|
1107
|
+
n[i] = oe(e[i], r);
|
|
1108
|
+
}), pt(t).forEach(function(i) {
|
|
1109
|
+
ln(e, i) || (Ut(e, i) && r.isMergeableObject(t[i]) ? n[i] = un(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
|
|
1103
1110
|
}), n;
|
|
1104
1111
|
}
|
|
1105
1112
|
function z(e, t, r) {
|
|
1106
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1113
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || an, r.isMergeableObject = r.isMergeableObject || Kr, r.cloneUnlessOtherwiseSpecified = oe;
|
|
1107
1114
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1108
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1115
|
+
return o ? n ? r.arrayMerge(e, t, r) : cn(e, t, r) : oe(t, r);
|
|
1109
1116
|
}
|
|
1110
1117
|
z.all = function(t, r) {
|
|
1111
1118
|
if (!Array.isArray(t))
|
|
@@ -1114,39 +1121,39 @@ z.all = function(t, r) {
|
|
|
1114
1121
|
return z(n, i, r);
|
|
1115
1122
|
}, {});
|
|
1116
1123
|
};
|
|
1117
|
-
var
|
|
1118
|
-
const
|
|
1124
|
+
var fn = z, pn = fn;
|
|
1125
|
+
const mn = /* @__PURE__ */ Yr(pn);
|
|
1119
1126
|
function Be(e, t) {
|
|
1120
|
-
var r = t && t.cache ? t.cache :
|
|
1127
|
+
var r = t && t.cache ? t.cache : En, n = t && t.serializer ? t.serializer : vn, i = t && t.strategy ? t.strategy : yn;
|
|
1121
1128
|
return i(e, {
|
|
1122
1129
|
cache: r,
|
|
1123
1130
|
serializer: n
|
|
1124
1131
|
});
|
|
1125
1132
|
}
|
|
1126
|
-
function
|
|
1133
|
+
function dn(e) {
|
|
1127
1134
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1128
1135
|
}
|
|
1129
|
-
function
|
|
1130
|
-
var i =
|
|
1136
|
+
function bn(e, t, r, n) {
|
|
1137
|
+
var i = dn(n) ? n : r(n), o = t.get(i);
|
|
1131
1138
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1132
1139
|
}
|
|
1133
|
-
function
|
|
1140
|
+
function Dt(e, t, r) {
|
|
1134
1141
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1135
1142
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1136
1143
|
}
|
|
1137
|
-
function
|
|
1144
|
+
function Gt(e, t, r, n, i) {
|
|
1138
1145
|
return r.bind(t, e, n, i);
|
|
1139
1146
|
}
|
|
1140
|
-
function bn(e, t) {
|
|
1141
|
-
var r = e.length === 1 ? dn : Gt;
|
|
1142
|
-
return Ft(e, this, r, t.cache.create(), t.serializer);
|
|
1143
|
-
}
|
|
1144
1147
|
function yn(e, t) {
|
|
1145
|
-
|
|
1148
|
+
var r = e.length === 1 ? bn : Dt;
|
|
1149
|
+
return Gt(e, this, r, t.cache.create(), t.serializer);
|
|
1150
|
+
}
|
|
1151
|
+
function gn(e, t) {
|
|
1152
|
+
return Gt(e, this, Dt, t.cache.create(), t.serializer);
|
|
1146
1153
|
}
|
|
1147
|
-
var
|
|
1154
|
+
var vn = function() {
|
|
1148
1155
|
return JSON.stringify(arguments);
|
|
1149
|
-
},
|
|
1156
|
+
}, _n = (
|
|
1150
1157
|
/** @class */
|
|
1151
1158
|
function() {
|
|
1152
1159
|
function e() {
|
|
@@ -1158,12 +1165,12 @@ var gn = function() {
|
|
|
1158
1165
|
this.cache[t] = r;
|
|
1159
1166
|
}, e;
|
|
1160
1167
|
}()
|
|
1161
|
-
),
|
|
1168
|
+
), En = {
|
|
1162
1169
|
create: function() {
|
|
1163
|
-
return new
|
|
1170
|
+
return new _n();
|
|
1164
1171
|
}
|
|
1165
1172
|
}, Ae = {
|
|
1166
|
-
variadic:
|
|
1173
|
+
variadic: gn
|
|
1167
1174
|
}, d;
|
|
1168
1175
|
(function(e) {
|
|
1169
1176
|
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";
|
|
@@ -1176,43 +1183,43 @@ var Z;
|
|
|
1176
1183
|
(function(e) {
|
|
1177
1184
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1178
1185
|
})(Z || (Z = {}));
|
|
1179
|
-
function
|
|
1186
|
+
function mt(e) {
|
|
1180
1187
|
return e.type === _.literal;
|
|
1181
1188
|
}
|
|
1182
|
-
function
|
|
1189
|
+
function xn(e) {
|
|
1183
1190
|
return e.type === _.argument;
|
|
1184
1191
|
}
|
|
1185
|
-
function
|
|
1192
|
+
function Ft(e) {
|
|
1186
1193
|
return e.type === _.number;
|
|
1187
1194
|
}
|
|
1188
|
-
function
|
|
1195
|
+
function jt(e) {
|
|
1189
1196
|
return e.type === _.date;
|
|
1190
1197
|
}
|
|
1191
|
-
function
|
|
1198
|
+
function kt(e) {
|
|
1192
1199
|
return e.type === _.time;
|
|
1193
1200
|
}
|
|
1194
|
-
function
|
|
1201
|
+
function Vt(e) {
|
|
1195
1202
|
return e.type === _.select;
|
|
1196
1203
|
}
|
|
1197
|
-
function
|
|
1204
|
+
function Xt(e) {
|
|
1198
1205
|
return e.type === _.plural;
|
|
1199
1206
|
}
|
|
1200
|
-
function
|
|
1207
|
+
function Tn(e) {
|
|
1201
1208
|
return e.type === _.pound;
|
|
1202
1209
|
}
|
|
1203
|
-
function
|
|
1210
|
+
function Wt(e) {
|
|
1204
1211
|
return e.type === _.tag;
|
|
1205
1212
|
}
|
|
1206
|
-
function
|
|
1213
|
+
function zt(e) {
|
|
1207
1214
|
return !!(e && typeof e == "object" && e.type === Z.number);
|
|
1208
1215
|
}
|
|
1209
1216
|
function Fe(e) {
|
|
1210
1217
|
return !!(e && typeof e == "object" && e.type === Z.dateTime);
|
|
1211
1218
|
}
|
|
1212
|
-
var
|
|
1213
|
-
function
|
|
1219
|
+
var Zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Hn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1220
|
+
function Sn(e) {
|
|
1214
1221
|
var t = {};
|
|
1215
|
-
return e.replace(
|
|
1222
|
+
return e.replace(Hn, function(r) {
|
|
1216
1223
|
var n = r.length;
|
|
1217
1224
|
switch (r[0]) {
|
|
1218
1225
|
case "G":
|
|
@@ -1301,11 +1308,11 @@ function Hn(e) {
|
|
|
1301
1308
|
return "";
|
|
1302
1309
|
}), t;
|
|
1303
1310
|
}
|
|
1304
|
-
var
|
|
1305
|
-
function
|
|
1311
|
+
var wn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1312
|
+
function Bn(e) {
|
|
1306
1313
|
if (e.length === 0)
|
|
1307
1314
|
throw new Error("Number skeleton cannot be empty");
|
|
1308
|
-
for (var t = e.split(
|
|
1315
|
+
for (var t = e.split(wn).filter(function(f) {
|
|
1309
1316
|
return f.length > 0;
|
|
1310
1317
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1311
1318
|
var o = i[n], s = o.split("/");
|
|
@@ -1320,17 +1327,17 @@ function wn(e) {
|
|
|
1320
1327
|
}
|
|
1321
1328
|
return r;
|
|
1322
1329
|
}
|
|
1323
|
-
function
|
|
1330
|
+
function An(e) {
|
|
1324
1331
|
return e.replace(/^(.*?)-/, "");
|
|
1325
1332
|
}
|
|
1326
|
-
var
|
|
1327
|
-
function
|
|
1333
|
+
var dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, qt = /^(@+)?(\+|#+)?[rs]?$/g, Pn = /(\*)(0+)|(#+)(0+)|(0+)/g, Qt = /^(0+)$/;
|
|
1334
|
+
function bt(e) {
|
|
1328
1335
|
var t = {};
|
|
1329
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1336
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(qt, function(r, n, i) {
|
|
1330
1337
|
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)), "";
|
|
1331
1338
|
}), t;
|
|
1332
1339
|
}
|
|
1333
|
-
function
|
|
1340
|
+
function Jt(e) {
|
|
1334
1341
|
switch (e) {
|
|
1335
1342
|
case "sign-auto":
|
|
1336
1343
|
return {
|
|
@@ -1370,7 +1377,7 @@ function Yt(e) {
|
|
|
1370
1377
|
};
|
|
1371
1378
|
}
|
|
1372
1379
|
}
|
|
1373
|
-
function
|
|
1380
|
+
function On(e) {
|
|
1374
1381
|
var t;
|
|
1375
1382
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1376
1383
|
notation: "engineering"
|
|
@@ -1378,17 +1385,17 @@ function Pn(e) {
|
|
|
1378
1385
|
notation: "scientific"
|
|
1379
1386
|
}, e = e.slice(1)), t) {
|
|
1380
1387
|
var r = e.slice(0, 2);
|
|
1381
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1388
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Qt.test(e))
|
|
1382
1389
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1383
1390
|
t.minimumIntegerDigits = e.length;
|
|
1384
1391
|
}
|
|
1385
1392
|
return t;
|
|
1386
1393
|
}
|
|
1387
|
-
function
|
|
1388
|
-
var t = {}, r =
|
|
1394
|
+
function yt(e) {
|
|
1395
|
+
var t = {}, r = Jt(e);
|
|
1389
1396
|
return r || t;
|
|
1390
1397
|
}
|
|
1391
|
-
function
|
|
1398
|
+
function In(e) {
|
|
1392
1399
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1393
1400
|
var i = n[r];
|
|
1394
1401
|
switch (i.stem) {
|
|
@@ -1412,7 +1419,7 @@ function On(e) {
|
|
|
1412
1419
|
continue;
|
|
1413
1420
|
case "measure-unit":
|
|
1414
1421
|
case "unit":
|
|
1415
|
-
t.style = "unit", t.unit =
|
|
1422
|
+
t.style = "unit", t.unit = An(i.options[0]);
|
|
1416
1423
|
continue;
|
|
1417
1424
|
case "compact-short":
|
|
1418
1425
|
case "K":
|
|
@@ -1424,12 +1431,12 @@ function On(e) {
|
|
|
1424
1431
|
continue;
|
|
1425
1432
|
case "scientific":
|
|
1426
1433
|
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1427
|
-
return y(y({}, h),
|
|
1434
|
+
return y(y({}, h), yt(u));
|
|
1428
1435
|
}, {}));
|
|
1429
1436
|
continue;
|
|
1430
1437
|
case "engineering":
|
|
1431
1438
|
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1432
|
-
return y(y({}, h),
|
|
1439
|
+
return y(y({}, h), yt(u));
|
|
1433
1440
|
}, {}));
|
|
1434
1441
|
continue;
|
|
1435
1442
|
case "notation-simple":
|
|
@@ -1474,7 +1481,7 @@ function On(e) {
|
|
|
1474
1481
|
case "integer-width":
|
|
1475
1482
|
if (i.options.length > 1)
|
|
1476
1483
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1477
|
-
i.options[0].replace(
|
|
1484
|
+
i.options[0].replace(Pn, function(h, u, l, c, f, p) {
|
|
1478
1485
|
if (u)
|
|
1479
1486
|
t.minimumIntegerDigits = l.length;
|
|
1480
1487
|
else {
|
|
@@ -1487,27 +1494,27 @@ function On(e) {
|
|
|
1487
1494
|
});
|
|
1488
1495
|
continue;
|
|
1489
1496
|
}
|
|
1490
|
-
if (
|
|
1497
|
+
if (Qt.test(i.stem)) {
|
|
1491
1498
|
t.minimumIntegerDigits = i.stem.length;
|
|
1492
1499
|
continue;
|
|
1493
1500
|
}
|
|
1494
|
-
if (
|
|
1501
|
+
if (dt.test(i.stem)) {
|
|
1495
1502
|
if (i.options.length > 1)
|
|
1496
1503
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1497
|
-
i.stem.replace(
|
|
1504
|
+
i.stem.replace(dt, function(h, u, l, c, f, p) {
|
|
1498
1505
|
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), "";
|
|
1499
1506
|
});
|
|
1500
1507
|
var o = i.options[0];
|
|
1501
|
-
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t),
|
|
1508
|
+
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), bt(o)));
|
|
1502
1509
|
continue;
|
|
1503
1510
|
}
|
|
1504
|
-
if (
|
|
1505
|
-
t = y(y({}, t),
|
|
1511
|
+
if (qt.test(i.stem)) {
|
|
1512
|
+
t = y(y({}, t), bt(i.stem));
|
|
1506
1513
|
continue;
|
|
1507
1514
|
}
|
|
1508
|
-
var s =
|
|
1515
|
+
var s = Jt(i.stem);
|
|
1509
1516
|
s && (t = y(y({}, t), s));
|
|
1510
|
-
var a =
|
|
1517
|
+
var a = On(i.stem);
|
|
1511
1518
|
a && (t = y(y({}, t), a));
|
|
1512
1519
|
}
|
|
1513
1520
|
return t;
|
|
@@ -2927,13 +2934,13 @@ var fe = {
|
|
|
2927
2934
|
"h"
|
|
2928
2935
|
]
|
|
2929
2936
|
};
|
|
2930
|
-
function
|
|
2937
|
+
function Nn(e, t) {
|
|
2931
2938
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2932
2939
|
var i = e.charAt(n);
|
|
2933
2940
|
if (i === "j") {
|
|
2934
2941
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2935
2942
|
o++, n++;
|
|
2936
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2943
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Ln(t);
|
|
2937
2944
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2938
2945
|
r += h;
|
|
2939
2946
|
for (; s-- > 0; )
|
|
@@ -2942,7 +2949,7 @@ function In(e, t) {
|
|
|
2942
2949
|
}
|
|
2943
2950
|
return r;
|
|
2944
2951
|
}
|
|
2945
|
-
function
|
|
2952
|
+
function Ln(e) {
|
|
2946
2953
|
var t = e.hourCycle;
|
|
2947
2954
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2948
2955
|
e.hourCycles && // @ts-ignore
|
|
@@ -2964,20 +2971,20 @@ function Nn(e) {
|
|
|
2964
2971
|
var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
|
|
2965
2972
|
return i[0];
|
|
2966
2973
|
}
|
|
2967
|
-
var Pe,
|
|
2974
|
+
var Pe, Cn = new RegExp("^".concat(Zt.source, "*")), Mn = new RegExp("".concat(Zt.source, "*$"));
|
|
2968
2975
|
function b(e, t) {
|
|
2969
2976
|
return { start: e, end: t };
|
|
2970
2977
|
}
|
|
2971
|
-
var
|
|
2978
|
+
var $n = !!String.prototype.startsWith && "_a".startsWith("a", 1), Rn = !!String.fromCodePoint, Un = !!Object.fromEntries, Dn = !!String.prototype.codePointAt, Gn = !!String.prototype.trimStart, Fn = !!String.prototype.trimEnd, jn = !!Number.isSafeInteger, kn = jn ? Number.isSafeInteger : function(e) {
|
|
2972
2979
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2973
2980
|
}, je = !0;
|
|
2974
2981
|
try {
|
|
2975
|
-
var
|
|
2976
|
-
je = ((Pe =
|
|
2982
|
+
var Vn = Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2983
|
+
je = ((Pe = Vn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
2977
2984
|
} catch (e) {
|
|
2978
2985
|
je = !1;
|
|
2979
2986
|
}
|
|
2980
|
-
var
|
|
2987
|
+
var gt = $n ? (
|
|
2981
2988
|
// Native
|
|
2982
2989
|
function(t, r, n) {
|
|
2983
2990
|
return t.startsWith(r, n);
|
|
@@ -2987,7 +2994,7 @@ var vt = Mn ? (
|
|
|
2987
2994
|
function(t, r, n) {
|
|
2988
2995
|
return t.slice(n, n + r.length) === r;
|
|
2989
2996
|
}
|
|
2990
|
-
), ke =
|
|
2997
|
+
), ke = Rn ? String.fromCodePoint : (
|
|
2991
2998
|
// IE11
|
|
2992
2999
|
function() {
|
|
2993
3000
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2999,9 +3006,9 @@ var vt = Mn ? (
|
|
|
2999
3006
|
}
|
|
3000
3007
|
return n;
|
|
3001
3008
|
}
|
|
3002
|
-
),
|
|
3009
|
+
), vt = (
|
|
3003
3010
|
// native
|
|
3004
|
-
|
|
3011
|
+
Un ? Object.fromEntries : (
|
|
3005
3012
|
// Ponyfill
|
|
3006
3013
|
function(t) {
|
|
3007
3014
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3011,7 +3018,7 @@ var vt = Mn ? (
|
|
|
3011
3018
|
return r;
|
|
3012
3019
|
}
|
|
3013
3020
|
)
|
|
3014
|
-
),
|
|
3021
|
+
), Yt = Dn ? (
|
|
3015
3022
|
// Native
|
|
3016
3023
|
function(t, r) {
|
|
3017
3024
|
return t.codePointAt(r);
|
|
@@ -3025,7 +3032,7 @@ var vt = Mn ? (
|
|
|
3025
3032
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3026
3033
|
}
|
|
3027
3034
|
}
|
|
3028
|
-
),
|
|
3035
|
+
), Xn = Gn ? (
|
|
3029
3036
|
// Native
|
|
3030
3037
|
function(t) {
|
|
3031
3038
|
return t.trimStart();
|
|
@@ -3033,9 +3040,9 @@ var vt = Mn ? (
|
|
|
3033
3040
|
) : (
|
|
3034
3041
|
// Ponyfill
|
|
3035
3042
|
function(t) {
|
|
3036
|
-
return t.replace(
|
|
3043
|
+
return t.replace(Cn, "");
|
|
3037
3044
|
}
|
|
3038
|
-
),
|
|
3045
|
+
), Wn = Fn ? (
|
|
3039
3046
|
// Native
|
|
3040
3047
|
function(t) {
|
|
3041
3048
|
return t.trimEnd();
|
|
@@ -3043,32 +3050,32 @@ var vt = Mn ? (
|
|
|
3043
3050
|
) : (
|
|
3044
3051
|
// Ponyfill
|
|
3045
3052
|
function(t) {
|
|
3046
|
-
return t.replace(
|
|
3053
|
+
return t.replace(Mn, "");
|
|
3047
3054
|
}
|
|
3048
3055
|
);
|
|
3049
|
-
function
|
|
3056
|
+
function Kt(e, t) {
|
|
3050
3057
|
return new RegExp(e, t);
|
|
3051
3058
|
}
|
|
3052
3059
|
var Ve;
|
|
3053
3060
|
if (je) {
|
|
3054
|
-
var
|
|
3061
|
+
var _t = Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3055
3062
|
Ve = function(t, r) {
|
|
3056
3063
|
var n;
|
|
3057
|
-
|
|
3058
|
-
var i =
|
|
3064
|
+
_t.lastIndex = r;
|
|
3065
|
+
var i = _t.exec(t);
|
|
3059
3066
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3060
3067
|
};
|
|
3061
3068
|
} else
|
|
3062
3069
|
Ve = function(t, r) {
|
|
3063
3070
|
for (var n = []; ; ) {
|
|
3064
|
-
var i =
|
|
3065
|
-
if (i === void 0 ||
|
|
3071
|
+
var i = Yt(t, r);
|
|
3072
|
+
if (i === void 0 || er(i) || Qn(i))
|
|
3066
3073
|
break;
|
|
3067
3074
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3068
3075
|
}
|
|
3069
3076
|
return ke.apply(void 0, n);
|
|
3070
3077
|
};
|
|
3071
|
-
var
|
|
3078
|
+
var zn = (
|
|
3072
3079
|
/** @class */
|
|
3073
3080
|
function() {
|
|
3074
3081
|
function e(t, r) {
|
|
@@ -3150,7 +3157,7 @@ var Wn = (
|
|
|
3150
3157
|
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
3151
3158
|
}, e.prototype.parseTagName = function() {
|
|
3152
3159
|
var t = this.offset();
|
|
3153
|
-
for (this.bump(); !this.isEOF() &&
|
|
3160
|
+
for (this.bump(); !this.isEOF() && qn(this.char()); )
|
|
3154
3161
|
this.bump();
|
|
3155
3162
|
return this.message.slice(t, this.offset());
|
|
3156
3163
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3179,7 +3186,7 @@ var Wn = (
|
|
|
3179
3186
|
};
|
|
3180
3187
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3181
3188
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3182
|
-
!
|
|
3189
|
+
!Zn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3183
3190
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3184
3191
|
if (this.isEOF() || this.char() !== 39)
|
|
3185
3192
|
return null;
|
|
@@ -3266,7 +3273,7 @@ var Wn = (
|
|
|
3266
3273
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3267
3274
|
if (c.err)
|
|
3268
3275
|
return c;
|
|
3269
|
-
var f =
|
|
3276
|
+
var f = Wn(c.val);
|
|
3270
3277
|
if (f.length === 0)
|
|
3271
3278
|
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3272
3279
|
var p = b(l, this.clonePosition());
|
|
@@ -3276,8 +3283,8 @@ var Wn = (
|
|
|
3276
3283
|
if (v.err)
|
|
3277
3284
|
return v;
|
|
3278
3285
|
var m = b(i, this.clonePosition());
|
|
3279
|
-
if (u &&
|
|
3280
|
-
var T =
|
|
3286
|
+
if (u && gt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3287
|
+
var T = Xn(u.style.slice(2));
|
|
3281
3288
|
if (a === "number") {
|
|
3282
3289
|
var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
3283
3290
|
return c.err ? c : {
|
|
@@ -3287,16 +3294,16 @@ var Wn = (
|
|
|
3287
3294
|
} else {
|
|
3288
3295
|
if (T.length === 0)
|
|
3289
3296
|
return this.error(d.EXPECT_DATE_TIME_SKELETON, m);
|
|
3290
|
-
var
|
|
3291
|
-
this.locale && (
|
|
3297
|
+
var R = T;
|
|
3298
|
+
this.locale && (R = Nn(T, this.locale));
|
|
3292
3299
|
var f = {
|
|
3293
3300
|
type: Z.dateTime,
|
|
3294
|
-
pattern:
|
|
3301
|
+
pattern: R,
|
|
3295
3302
|
location: u.styleLocation,
|
|
3296
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3297
|
-
},
|
|
3303
|
+
parsedOptions: this.shouldParseSkeletons ? Sn(R) : {}
|
|
3304
|
+
}, P = a === "date" ? _.date : _.time;
|
|
3298
3305
|
return {
|
|
3299
|
-
val: { type:
|
|
3306
|
+
val: { type: P, value: n, location: m, style: f },
|
|
3300
3307
|
err: null
|
|
3301
3308
|
};
|
|
3302
3309
|
}
|
|
@@ -3334,23 +3341,23 @@ var Wn = (
|
|
|
3334
3341
|
var v = this.tryParseArgumentClose(i);
|
|
3335
3342
|
if (v.err)
|
|
3336
3343
|
return v;
|
|
3337
|
-
var
|
|
3344
|
+
var g = b(i, this.clonePosition());
|
|
3338
3345
|
return a === "select" ? {
|
|
3339
3346
|
val: {
|
|
3340
3347
|
type: _.select,
|
|
3341
3348
|
value: n,
|
|
3342
|
-
options:
|
|
3343
|
-
location:
|
|
3349
|
+
options: vt(G.val),
|
|
3350
|
+
location: g
|
|
3344
3351
|
},
|
|
3345
3352
|
err: null
|
|
3346
3353
|
} : {
|
|
3347
3354
|
val: {
|
|
3348
3355
|
type: _.plural,
|
|
3349
3356
|
value: n,
|
|
3350
|
-
options:
|
|
3357
|
+
options: vt(G.val),
|
|
3351
3358
|
offset: O,
|
|
3352
3359
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3353
|
-
location:
|
|
3360
|
+
location: g
|
|
3354
3361
|
},
|
|
3355
3362
|
err: null
|
|
3356
3363
|
};
|
|
@@ -3398,7 +3405,7 @@ var Wn = (
|
|
|
3398
3405
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3399
3406
|
var n = [];
|
|
3400
3407
|
try {
|
|
3401
|
-
n =
|
|
3408
|
+
n = Bn(t);
|
|
3402
3409
|
} catch (i) {
|
|
3403
3410
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3404
3411
|
}
|
|
@@ -3407,7 +3414,7 @@ var Wn = (
|
|
|
3407
3414
|
type: Z.number,
|
|
3408
3415
|
tokens: n,
|
|
3409
3416
|
location: r,
|
|
3410
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3417
|
+
parsedOptions: this.shouldParseSkeletons ? In(n) : {}
|
|
3411
3418
|
},
|
|
3412
3419
|
err: null
|
|
3413
3420
|
};
|
|
@@ -3455,7 +3462,7 @@ var Wn = (
|
|
|
3455
3462
|
break;
|
|
3456
3463
|
}
|
|
3457
3464
|
var h = b(i, this.clonePosition());
|
|
3458
|
-
return o ? (s *= n,
|
|
3465
|
+
return o ? (s *= n, kn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3459
3466
|
}, e.prototype.offset = function() {
|
|
3460
3467
|
return this.position.offset;
|
|
3461
3468
|
}, e.prototype.isEOF = function() {
|
|
@@ -3470,7 +3477,7 @@ var Wn = (
|
|
|
3470
3477
|
var t = this.position.offset;
|
|
3471
3478
|
if (t >= this.message.length)
|
|
3472
3479
|
throw Error("out of bound");
|
|
3473
|
-
var r =
|
|
3480
|
+
var r = Yt(this.message, t);
|
|
3474
3481
|
if (r === void 0)
|
|
3475
3482
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3476
3483
|
return r;
|
|
@@ -3489,7 +3496,7 @@ var Wn = (
|
|
|
3489
3496
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3490
3497
|
}
|
|
3491
3498
|
}, e.prototype.bumpIf = function(t) {
|
|
3492
|
-
if (
|
|
3499
|
+
if (gt(this.message, t, this.offset())) {
|
|
3493
3500
|
for (var r = 0; r < t.length; r++)
|
|
3494
3501
|
this.bump();
|
|
3495
3502
|
return !0;
|
|
@@ -3511,7 +3518,7 @@ var Wn = (
|
|
|
3511
3518
|
break;
|
|
3512
3519
|
}
|
|
3513
3520
|
}, e.prototype.bumpSpace = function() {
|
|
3514
|
-
for (; !this.isEOF() &&
|
|
3521
|
+
for (; !this.isEOF() && er(this.char()); )
|
|
3515
3522
|
this.bump();
|
|
3516
3523
|
}, e.prototype.peek = function() {
|
|
3517
3524
|
if (this.isEOF())
|
|
@@ -3524,29 +3531,29 @@ var Wn = (
|
|
|
3524
3531
|
function Xe(e) {
|
|
3525
3532
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3526
3533
|
}
|
|
3527
|
-
function
|
|
3534
|
+
function Zn(e) {
|
|
3528
3535
|
return Xe(e) || e === 47;
|
|
3529
3536
|
}
|
|
3530
|
-
function
|
|
3537
|
+
function qn(e) {
|
|
3531
3538
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3532
3539
|
}
|
|
3533
|
-
function
|
|
3540
|
+
function er(e) {
|
|
3534
3541
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3535
3542
|
}
|
|
3536
|
-
function
|
|
3543
|
+
function Qn(e) {
|
|
3537
3544
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3538
3545
|
}
|
|
3539
3546
|
function We(e) {
|
|
3540
3547
|
e.forEach(function(t) {
|
|
3541
|
-
if (delete t.location,
|
|
3548
|
+
if (delete t.location, Vt(t) || Xt(t))
|
|
3542
3549
|
for (var r in t.options)
|
|
3543
3550
|
delete t.options[r].location, We(t.options[r].value);
|
|
3544
|
-
else
|
|
3551
|
+
else Ft(t) && zt(t.style) || (jt(t) || kt(t)) && Fe(t.style) ? delete t.style.location : Wt(t) && We(t.children);
|
|
3545
3552
|
});
|
|
3546
3553
|
}
|
|
3547
|
-
function
|
|
3554
|
+
function Jn(e, t) {
|
|
3548
3555
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3549
|
-
var r = new
|
|
3556
|
+
var r = new zn(e, t).parse();
|
|
3550
3557
|
if (r.err) {
|
|
3551
3558
|
var n = SyntaxError(d[r.err.kind]);
|
|
3552
3559
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -3560,7 +3567,7 @@ var q;
|
|
|
3560
3567
|
var Ee = (
|
|
3561
3568
|
/** @class */
|
|
3562
3569
|
function(e) {
|
|
3563
|
-
|
|
3570
|
+
L(t, e);
|
|
3564
3571
|
function t(r, n, i) {
|
|
3565
3572
|
var o = e.call(this, r) || this;
|
|
3566
3573
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3569,28 +3576,28 @@ var Ee = (
|
|
|
3569
3576
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3570
3577
|
}, t;
|
|
3571
3578
|
}(Error)
|
|
3572
|
-
),
|
|
3579
|
+
), Et = (
|
|
3573
3580
|
/** @class */
|
|
3574
3581
|
function(e) {
|
|
3575
|
-
|
|
3582
|
+
L(t, e);
|
|
3576
3583
|
function t(r, n, i, o) {
|
|
3577
3584
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, o) || this;
|
|
3578
3585
|
}
|
|
3579
3586
|
return t;
|
|
3580
3587
|
}(Ee)
|
|
3581
|
-
),
|
|
3588
|
+
), Yn = (
|
|
3582
3589
|
/** @class */
|
|
3583
3590
|
function(e) {
|
|
3584
|
-
|
|
3591
|
+
L(t, e);
|
|
3585
3592
|
function t(r, n, i) {
|
|
3586
3593
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
|
|
3587
3594
|
}
|
|
3588
3595
|
return t;
|
|
3589
3596
|
}(Ee)
|
|
3590
|
-
),
|
|
3597
|
+
), Kn = (
|
|
3591
3598
|
/** @class */
|
|
3592
3599
|
function(e) {
|
|
3593
|
-
|
|
3600
|
+
L(t, e);
|
|
3594
3601
|
function t(r, n) {
|
|
3595
3602
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
|
|
3596
3603
|
}
|
|
@@ -3600,17 +3607,17 @@ var Ee = (
|
|
|
3600
3607
|
(function(e) {
|
|
3601
3608
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3602
3609
|
})(H || (H = {}));
|
|
3603
|
-
function
|
|
3610
|
+
function ei(e) {
|
|
3604
3611
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3605
3612
|
var n = t[t.length - 1];
|
|
3606
3613
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3607
3614
|
}, []);
|
|
3608
3615
|
}
|
|
3609
|
-
function
|
|
3616
|
+
function ti(e) {
|
|
3610
3617
|
return typeof e == "function";
|
|
3611
3618
|
}
|
|
3612
3619
|
function de(e, t, r, n, i, o, s) {
|
|
3613
|
-
if (e.length === 1 &&
|
|
3620
|
+
if (e.length === 1 && mt(e[0]))
|
|
3614
3621
|
return [
|
|
3615
3622
|
{
|
|
3616
3623
|
type: H.literal,
|
|
@@ -3619,14 +3626,14 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3619
3626
|
];
|
|
3620
3627
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3621
3628
|
var l = u[h];
|
|
3622
|
-
if (
|
|
3629
|
+
if (mt(l)) {
|
|
3623
3630
|
a.push({
|
|
3624
3631
|
type: H.literal,
|
|
3625
3632
|
value: l.value
|
|
3626
3633
|
});
|
|
3627
3634
|
continue;
|
|
3628
3635
|
}
|
|
3629
|
-
if (
|
|
3636
|
+
if (Tn(l)) {
|
|
3630
3637
|
typeof o == "number" && a.push({
|
|
3631
3638
|
type: H.literal,
|
|
3632
3639
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3635,16 +3642,16 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3635
3642
|
}
|
|
3636
3643
|
var c = l.value;
|
|
3637
3644
|
if (!(i && c in i))
|
|
3638
|
-
throw new
|
|
3645
|
+
throw new Kn(c, s);
|
|
3639
3646
|
var f = i[c];
|
|
3640
|
-
if (
|
|
3647
|
+
if (xn(l)) {
|
|
3641
3648
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3642
3649
|
type: typeof f == "string" ? H.literal : H.object,
|
|
3643
3650
|
value: f
|
|
3644
3651
|
});
|
|
3645
3652
|
continue;
|
|
3646
3653
|
}
|
|
3647
|
-
if (
|
|
3654
|
+
if (jt(l)) {
|
|
3648
3655
|
var p = typeof l.style == "string" ? n.date[l.style] : Fe(l.style) ? l.style.parsedOptions : void 0;
|
|
3649
3656
|
a.push({
|
|
3650
3657
|
type: H.literal,
|
|
@@ -3652,7 +3659,7 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3652
3659
|
});
|
|
3653
3660
|
continue;
|
|
3654
3661
|
}
|
|
3655
|
-
if (
|
|
3662
|
+
if (kt(l)) {
|
|
3656
3663
|
var p = typeof l.style == "string" ? n.time[l.style] : Fe(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3657
3664
|
a.push({
|
|
3658
3665
|
type: H.literal,
|
|
@@ -3660,36 +3667,36 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3660
3667
|
});
|
|
3661
3668
|
continue;
|
|
3662
3669
|
}
|
|
3663
|
-
if (
|
|
3664
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3670
|
+
if (Ft(l)) {
|
|
3671
|
+
var p = typeof l.style == "string" ? n.number[l.style] : zt(l.style) ? l.style.parsedOptions : void 0;
|
|
3665
3672
|
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3666
3673
|
type: H.literal,
|
|
3667
3674
|
value: r.getNumberFormat(t, p).format(f)
|
|
3668
3675
|
});
|
|
3669
3676
|
continue;
|
|
3670
3677
|
}
|
|
3671
|
-
if (
|
|
3678
|
+
if (Wt(l)) {
|
|
3672
3679
|
var v = l.children, m = l.value, T = i[m];
|
|
3673
|
-
if (!
|
|
3674
|
-
throw new
|
|
3675
|
-
var
|
|
3680
|
+
if (!ti(T))
|
|
3681
|
+
throw new Yn(m, "function", s);
|
|
3682
|
+
var R = de(v, t, r, n, i, o), P = T(R.map(function(O) {
|
|
3676
3683
|
return O.value;
|
|
3677
3684
|
}));
|
|
3678
|
-
Array.isArray(
|
|
3685
|
+
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(O) {
|
|
3679
3686
|
return {
|
|
3680
3687
|
type: typeof O == "string" ? H.literal : H.object,
|
|
3681
3688
|
value: O
|
|
3682
3689
|
};
|
|
3683
3690
|
}));
|
|
3684
3691
|
}
|
|
3685
|
-
if (
|
|
3692
|
+
if (Vt(l)) {
|
|
3686
3693
|
var S = l.options[f] || l.options.other;
|
|
3687
3694
|
if (!S)
|
|
3688
|
-
throw new
|
|
3695
|
+
throw new Et(l.value, f, Object.keys(l.options), s);
|
|
3689
3696
|
a.push.apply(a, de(S.value, t, r, n, i));
|
|
3690
3697
|
continue;
|
|
3691
3698
|
}
|
|
3692
|
-
if (
|
|
3699
|
+
if (Xt(l)) {
|
|
3693
3700
|
var S = l.options["=".concat(f)];
|
|
3694
3701
|
if (!S) {
|
|
3695
3702
|
if (!Intl.PluralRules)
|
|
@@ -3700,21 +3707,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3700
3707
|
S = l.options[U] || l.options.other;
|
|
3701
3708
|
}
|
|
3702
3709
|
if (!S)
|
|
3703
|
-
throw new
|
|
3710
|
+
throw new Et(l.value, f, Object.keys(l.options), s);
|
|
3704
3711
|
a.push.apply(a, de(S.value, t, r, n, i, f - (l.offset || 0)));
|
|
3705
3712
|
continue;
|
|
3706
3713
|
}
|
|
3707
3714
|
}
|
|
3708
|
-
return
|
|
3715
|
+
return ei(a);
|
|
3709
3716
|
}
|
|
3710
|
-
function
|
|
3717
|
+
function ri(e, t) {
|
|
3711
3718
|
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3712
3719
|
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3713
3720
|
}, {})) : e;
|
|
3714
3721
|
}
|
|
3715
|
-
function
|
|
3722
|
+
function ni(e, t) {
|
|
3716
3723
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3717
|
-
return r[n] =
|
|
3724
|
+
return r[n] = ri(e[n], t[n]), r;
|
|
3718
3725
|
}, y({}, e)) : e;
|
|
3719
3726
|
}
|
|
3720
3727
|
function Oe(e) {
|
|
@@ -3731,7 +3738,7 @@ function Oe(e) {
|
|
|
3731
3738
|
}
|
|
3732
3739
|
};
|
|
3733
3740
|
}
|
|
3734
|
-
function
|
|
3741
|
+
function ii(e) {
|
|
3735
3742
|
return e === void 0 && (e = {
|
|
3736
3743
|
number: {},
|
|
3737
3744
|
dateTime: {},
|
|
@@ -3763,7 +3770,7 @@ function ni(e) {
|
|
|
3763
3770
|
})
|
|
3764
3771
|
};
|
|
3765
3772
|
}
|
|
3766
|
-
var
|
|
3773
|
+
var oi = (
|
|
3767
3774
|
/** @class */
|
|
3768
3775
|
function() {
|
|
3769
3776
|
function e(t, r, n, i) {
|
|
@@ -3795,13 +3802,13 @@ var ii = (
|
|
|
3795
3802
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3796
3803
|
var s = i || {};
|
|
3797
3804
|
s.formatters;
|
|
3798
|
-
var a =
|
|
3805
|
+
var a = $r(s, ["formatters"]);
|
|
3799
3806
|
this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
|
|
3800
3807
|
} else
|
|
3801
3808
|
this.ast = t;
|
|
3802
3809
|
if (!Array.isArray(this.ast))
|
|
3803
3810
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3804
|
-
this.formats =
|
|
3811
|
+
this.formats = ni(e.formats, n), this.formatters = i && i.formatters || ii(this.formatterCache);
|
|
3805
3812
|
}
|
|
3806
3813
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3807
3814
|
get: function() {
|
|
@@ -3814,7 +3821,7 @@ var ii = (
|
|
|
3814
3821
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3815
3822
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3816
3823
|
}
|
|
3817
|
-
}, e.__parse =
|
|
3824
|
+
}, e.__parse = Jn, e.formats = {
|
|
3818
3825
|
number: {
|
|
3819
3826
|
integer: {
|
|
3820
3827
|
maximumFractionDigits: 0
|
|
@@ -3875,7 +3882,7 @@ var ii = (
|
|
|
3875
3882
|
}, e;
|
|
3876
3883
|
}()
|
|
3877
3884
|
);
|
|
3878
|
-
function
|
|
3885
|
+
function si(e, t) {
|
|
3879
3886
|
if (t == null)
|
|
3880
3887
|
return;
|
|
3881
3888
|
if (t in e)
|
|
@@ -3896,60 +3903,60 @@ function oi(e, t) {
|
|
|
3896
3903
|
n = void 0;
|
|
3897
3904
|
return n;
|
|
3898
3905
|
}
|
|
3899
|
-
const
|
|
3906
|
+
const $ = {}, ai = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), tr = (e, t) => {
|
|
3900
3907
|
if (t == null)
|
|
3901
3908
|
return;
|
|
3902
|
-
if (t in
|
|
3903
|
-
return
|
|
3909
|
+
if (t in $ && e in $[t])
|
|
3910
|
+
return $[t][e];
|
|
3904
3911
|
const r = xe(t);
|
|
3905
3912
|
for (let n = 0; n < r.length; n++) {
|
|
3906
|
-
const i = r[n], o =
|
|
3913
|
+
const i = r[n], o = hi(i, e);
|
|
3907
3914
|
if (o)
|
|
3908
|
-
return
|
|
3915
|
+
return ai(e, t, o);
|
|
3909
3916
|
}
|
|
3910
3917
|
};
|
|
3911
|
-
let
|
|
3912
|
-
const
|
|
3913
|
-
function
|
|
3914
|
-
return
|
|
3918
|
+
let Je;
|
|
3919
|
+
const he = _e({});
|
|
3920
|
+
function ui(e) {
|
|
3921
|
+
return Je[e] || null;
|
|
3915
3922
|
}
|
|
3916
|
-
function
|
|
3917
|
-
return e in
|
|
3923
|
+
function rr(e) {
|
|
3924
|
+
return e in Je;
|
|
3918
3925
|
}
|
|
3919
|
-
function
|
|
3920
|
-
if (!
|
|
3926
|
+
function hi(e, t) {
|
|
3927
|
+
if (!rr(e))
|
|
3921
3928
|
return null;
|
|
3922
|
-
const r =
|
|
3923
|
-
return
|
|
3929
|
+
const r = ui(e);
|
|
3930
|
+
return si(r, t);
|
|
3924
3931
|
}
|
|
3925
|
-
function
|
|
3932
|
+
function li(e) {
|
|
3926
3933
|
if (e == null)
|
|
3927
3934
|
return;
|
|
3928
3935
|
const t = xe(e);
|
|
3929
3936
|
for (let r = 0; r < t.length; r++) {
|
|
3930
3937
|
const n = t[r];
|
|
3931
|
-
if (
|
|
3938
|
+
if (rr(n))
|
|
3932
3939
|
return n;
|
|
3933
3940
|
}
|
|
3934
3941
|
}
|
|
3935
|
-
function
|
|
3936
|
-
delete
|
|
3942
|
+
function nr(e, ...t) {
|
|
3943
|
+
delete $[e], he.update((r) => (r[e] = mn.all([r[e] || {}, ...t]), r));
|
|
3937
3944
|
}
|
|
3938
3945
|
Y(
|
|
3939
|
-
[
|
|
3946
|
+
[he],
|
|
3940
3947
|
([e]) => Object.keys(e)
|
|
3941
3948
|
);
|
|
3942
|
-
|
|
3949
|
+
he.subscribe((e) => Je = e);
|
|
3943
3950
|
const be = {};
|
|
3944
|
-
function
|
|
3951
|
+
function ci(e, t) {
|
|
3945
3952
|
be[e].delete(t), be[e].size === 0 && delete be[e];
|
|
3946
3953
|
}
|
|
3947
|
-
function
|
|
3954
|
+
function ir(e) {
|
|
3948
3955
|
return be[e];
|
|
3949
3956
|
}
|
|
3950
|
-
function
|
|
3957
|
+
function fi(e) {
|
|
3951
3958
|
return xe(e).map((t) => {
|
|
3952
|
-
const r =
|
|
3959
|
+
const r = ir(t);
|
|
3953
3960
|
return [t, r ? [...r] : []];
|
|
3954
3961
|
}).filter(([, t]) => t.length > 0);
|
|
3955
3962
|
}
|
|
@@ -3957,31 +3964,31 @@ function ze(e) {
|
|
|
3957
3964
|
return e == null ? !1 : xe(e).some(
|
|
3958
3965
|
(t) => {
|
|
3959
3966
|
var r;
|
|
3960
|
-
return (r =
|
|
3967
|
+
return (r = ir(t)) == null ? void 0 : r.size;
|
|
3961
3968
|
}
|
|
3962
3969
|
);
|
|
3963
3970
|
}
|
|
3964
|
-
function
|
|
3971
|
+
function pi(e, t) {
|
|
3965
3972
|
return Promise.all(
|
|
3966
|
-
t.map((n) => (
|
|
3967
|
-
).then((n) =>
|
|
3973
|
+
t.map((n) => (ci(e, n), n().then((i) => i.default || i)))
|
|
3974
|
+
).then((n) => nr(e, ...n));
|
|
3968
3975
|
}
|
|
3969
3976
|
const te = {};
|
|
3970
|
-
function
|
|
3977
|
+
function or(e) {
|
|
3971
3978
|
if (!ze(e))
|
|
3972
3979
|
return e in te ? te[e] : Promise.resolve();
|
|
3973
|
-
const t =
|
|
3980
|
+
const t = fi(e);
|
|
3974
3981
|
return te[e] = Promise.all(
|
|
3975
3982
|
t.map(
|
|
3976
|
-
([r, n]) =>
|
|
3983
|
+
([r, n]) => pi(r, n)
|
|
3977
3984
|
)
|
|
3978
3985
|
).then(() => {
|
|
3979
3986
|
if (ze(e))
|
|
3980
|
-
return
|
|
3987
|
+
return or(e);
|
|
3981
3988
|
delete te[e];
|
|
3982
3989
|
}), te[e];
|
|
3983
3990
|
}
|
|
3984
|
-
const
|
|
3991
|
+
const mi = {
|
|
3985
3992
|
number: {
|
|
3986
3993
|
scientific: { notation: "scientific" },
|
|
3987
3994
|
engineering: { notation: "engineering" },
|
|
@@ -4010,34 +4017,34 @@ const pi = {
|
|
|
4010
4017
|
timeZoneName: "short"
|
|
4011
4018
|
}
|
|
4012
4019
|
}
|
|
4013
|
-
},
|
|
4020
|
+
}, di = {
|
|
4014
4021
|
fallbackLocale: null,
|
|
4015
4022
|
loadingDelay: 200,
|
|
4016
|
-
formats:
|
|
4023
|
+
formats: mi,
|
|
4017
4024
|
warnOnMissingMessages: !0,
|
|
4018
4025
|
handleMissingMessage: void 0,
|
|
4019
4026
|
ignoreTag: !0
|
|
4020
|
-
},
|
|
4027
|
+
}, bi = di;
|
|
4021
4028
|
function Q() {
|
|
4022
|
-
return
|
|
4029
|
+
return bi;
|
|
4023
4030
|
}
|
|
4024
4031
|
const Ie = _e(!1);
|
|
4025
|
-
var
|
|
4032
|
+
var yi = Object.defineProperty, gi = Object.defineProperties, vi = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, _i = Object.prototype.hasOwnProperty, Ei = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xi = (e, t) => {
|
|
4026
4033
|
for (var r in t || (t = {}))
|
|
4027
|
-
|
|
4028
|
-
if (
|
|
4029
|
-
for (var r of
|
|
4030
|
-
|
|
4034
|
+
_i.call(t, r) && Tt(e, r, t[r]);
|
|
4035
|
+
if (xt)
|
|
4036
|
+
for (var r of xt(t))
|
|
4037
|
+
Ei.call(t, r) && Tt(e, r, t[r]);
|
|
4031
4038
|
return e;
|
|
4032
|
-
},
|
|
4039
|
+
}, Ti = (e, t) => gi(e, vi(t));
|
|
4033
4040
|
let Ze;
|
|
4034
4041
|
const ye = _e(null);
|
|
4035
|
-
function
|
|
4042
|
+
function Ht(e) {
|
|
4036
4043
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4037
4044
|
}
|
|
4038
4045
|
function xe(e, t = Q().fallbackLocale) {
|
|
4039
|
-
const r =
|
|
4040
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4046
|
+
const r = Ht(e);
|
|
4047
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ht(t)])] : r;
|
|
4041
4048
|
}
|
|
4042
4049
|
function D() {
|
|
4043
4050
|
return Ze != null ? Ze : void 0;
|
|
@@ -4045,22 +4052,22 @@ function D() {
|
|
|
4045
4052
|
ye.subscribe((e) => {
|
|
4046
4053
|
Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4047
4054
|
});
|
|
4048
|
-
const
|
|
4049
|
-
if (e &&
|
|
4055
|
+
const Hi = (e) => {
|
|
4056
|
+
if (e && li(e) && ze(e)) {
|
|
4050
4057
|
const { loadingDelay: t } = Q();
|
|
4051
4058
|
let r;
|
|
4052
4059
|
return typeof window != "undefined" && D() != null && t ? r = window.setTimeout(
|
|
4053
4060
|
() => Ie.set(!0),
|
|
4054
4061
|
t
|
|
4055
|
-
) : Ie.set(!0),
|
|
4062
|
+
) : Ie.set(!0), or(e).then(() => {
|
|
4056
4063
|
ye.set(e);
|
|
4057
4064
|
}).finally(() => {
|
|
4058
4065
|
clearTimeout(r), Ie.set(!1);
|
|
4059
4066
|
});
|
|
4060
4067
|
}
|
|
4061
4068
|
return ye.set(e);
|
|
4062
|
-
}, K = xi(
|
|
4063
|
-
set:
|
|
4069
|
+
}, K = Ti(xi({}, ye), {
|
|
4070
|
+
set: Hi
|
|
4064
4071
|
}), Te = (e) => {
|
|
4065
4072
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4066
4073
|
return (n) => {
|
|
@@ -4068,77 +4075,77 @@ const Ti = (e) => {
|
|
|
4068
4075
|
return i in t ? t[i] : t[i] = e(n);
|
|
4069
4076
|
};
|
|
4070
4077
|
};
|
|
4071
|
-
var
|
|
4078
|
+
var Si = Object.defineProperty, ge = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
4072
4079
|
for (var r in t || (t = {}))
|
|
4073
|
-
|
|
4080
|
+
sr.call(t, r) && St(e, r, t[r]);
|
|
4074
4081
|
if (ge)
|
|
4075
4082
|
for (var r of ge(t))
|
|
4076
|
-
|
|
4083
|
+
ar.call(t, r) && St(e, r, t[r]);
|
|
4077
4084
|
return e;
|
|
4078
4085
|
}, ee = (e, t) => {
|
|
4079
4086
|
var r = {};
|
|
4080
4087
|
for (var n in e)
|
|
4081
|
-
|
|
4088
|
+
sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4082
4089
|
if (e != null && ge)
|
|
4083
4090
|
for (var n of ge(e))
|
|
4084
|
-
t.indexOf(n) < 0 &&
|
|
4091
|
+
t.indexOf(n) < 0 && ar.call(e, n) && (r[n] = e[n]);
|
|
4085
4092
|
return r;
|
|
4086
4093
|
};
|
|
4087
|
-
const
|
|
4094
|
+
const se = (e, t) => {
|
|
4088
4095
|
const { formats: r } = Q();
|
|
4089
4096
|
if (e in r && t in r[e])
|
|
4090
4097
|
return r[e][t];
|
|
4091
4098
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4092
|
-
},
|
|
4099
|
+
}, wi = Te(
|
|
4093
4100
|
(e) => {
|
|
4094
4101
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4095
4102
|
if (r == null)
|
|
4096
4103
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4097
|
-
return n && (i =
|
|
4104
|
+
return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
|
|
4098
4105
|
}
|
|
4099
|
-
),
|
|
4106
|
+
), Bi = Te(
|
|
4100
4107
|
(e) => {
|
|
4101
4108
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4102
4109
|
if (r == null)
|
|
4103
4110
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4104
|
-
return n ? i =
|
|
4111
|
+
return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4105
4112
|
}
|
|
4106
|
-
),
|
|
4113
|
+
), Ai = Te(
|
|
4107
4114
|
(e) => {
|
|
4108
4115
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4109
4116
|
if (r == null)
|
|
4110
4117
|
throw new Error(
|
|
4111
4118
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4112
4119
|
);
|
|
4113
|
-
return n ? i =
|
|
4120
|
+
return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4114
4121
|
}
|
|
4115
|
-
),
|
|
4122
|
+
), Pi = (e = {}) => {
|
|
4116
4123
|
var t = e, {
|
|
4117
4124
|
locale: r = D()
|
|
4118
4125
|
} = t, n = ee(t, [
|
|
4119
4126
|
"locale"
|
|
4120
4127
|
]);
|
|
4121
|
-
return
|
|
4122
|
-
},
|
|
4128
|
+
return wi(Ye({ locale: r }, n));
|
|
4129
|
+
}, Oi = (e = {}) => {
|
|
4123
4130
|
var t = e, {
|
|
4124
4131
|
locale: r = D()
|
|
4125
4132
|
} = t, n = ee(t, [
|
|
4126
4133
|
"locale"
|
|
4127
4134
|
]);
|
|
4128
|
-
return
|
|
4129
|
-
},
|
|
4135
|
+
return Bi(Ye({ locale: r }, n));
|
|
4136
|
+
}, Ii = (e = {}) => {
|
|
4130
4137
|
var t = e, {
|
|
4131
4138
|
locale: r = D()
|
|
4132
4139
|
} = t, n = ee(t, [
|
|
4133
4140
|
"locale"
|
|
4134
4141
|
]);
|
|
4135
|
-
return
|
|
4136
|
-
},
|
|
4142
|
+
return Ai(Ye({ locale: r }, n));
|
|
4143
|
+
}, Ni = Te(
|
|
4137
4144
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4138
|
-
(e, t = D()) => new
|
|
4145
|
+
(e, t = D()) => new oi(e, t, Q().formats, {
|
|
4139
4146
|
ignoreTag: Q().ignoreTag
|
|
4140
4147
|
})
|
|
4141
|
-
),
|
|
4148
|
+
), Li = (e, t = {}) => {
|
|
4142
4149
|
var r, n, i, o;
|
|
4143
4150
|
let s = t;
|
|
4144
4151
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4151,7 +4158,7 @@ const oe = (e, t) => {
|
|
|
4151
4158
|
throw new Error(
|
|
4152
4159
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4153
4160
|
);
|
|
4154
|
-
let l =
|
|
4161
|
+
let l = tr(e, h);
|
|
4155
4162
|
if (!l)
|
|
4156
4163
|
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;
|
|
4157
4164
|
else if (typeof l != "string")
|
|
@@ -4162,7 +4169,7 @@ const oe = (e, t) => {
|
|
|
4162
4169
|
return l;
|
|
4163
4170
|
let c = l;
|
|
4164
4171
|
try {
|
|
4165
|
-
c =
|
|
4172
|
+
c = Ni(l, h).format(a);
|
|
4166
4173
|
} catch (f) {
|
|
4167
4174
|
f instanceof Error && console.warn(
|
|
4168
4175
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4170,20 +4177,20 @@ const oe = (e, t) => {
|
|
|
4170
4177
|
);
|
|
4171
4178
|
}
|
|
4172
4179
|
return c;
|
|
4173
|
-
},
|
|
4174
|
-
Y([K], () => Li);
|
|
4180
|
+
}, Ci = (e, t) => Ii(t).format(e), Mi = (e, t) => Oi(t).format(e), $i = (e, t) => Pi(t).format(e), Ri = (e, t = D()) => tr(e, t), Ui = Y([K, he], () => Li);
|
|
4175
4181
|
Y([K], () => Ci);
|
|
4176
4182
|
Y([K], () => Mi);
|
|
4177
|
-
Y([K
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4183
|
+
Y([K], () => $i);
|
|
4184
|
+
Y([K, he], () => Ri);
|
|
4185
|
+
window.emWidgets = { topic: Qr };
|
|
4186
|
+
const Di = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4187
|
+
function wt(e, t) {
|
|
4188
|
+
nr(e, t);
|
|
4182
4189
|
}
|
|
4183
|
-
function
|
|
4190
|
+
function Gi(e) {
|
|
4184
4191
|
K.set(e);
|
|
4185
4192
|
}
|
|
4186
|
-
const
|
|
4193
|
+
const Bt = {
|
|
4187
4194
|
en: {
|
|
4188
4195
|
titleTransactionHistory: "Transaction History",
|
|
4189
4196
|
loading: "Loading, please wait ..."
|
|
@@ -4225,24 +4232,47 @@ const At = {
|
|
|
4225
4232
|
loading: "Loading, please wait ..."
|
|
4226
4233
|
}
|
|
4227
4234
|
};
|
|
4228
|
-
function
|
|
4229
|
-
|
|
4235
|
+
function Fi(e, t) {
|
|
4236
|
+
if (e) {
|
|
4237
|
+
const r = document.createElement("style");
|
|
4238
|
+
r.innerHTML = t, e.appendChild(r);
|
|
4239
|
+
}
|
|
4240
|
+
}
|
|
4241
|
+
function ji(e, t) {
|
|
4242
|
+
const r = new URL(t);
|
|
4243
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4244
|
+
const i = document.createElement("style");
|
|
4245
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
4246
|
+
}).catch((n) => {
|
|
4247
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
4248
|
+
});
|
|
4249
|
+
}
|
|
4250
|
+
function ki(e, t, r) {
|
|
4251
|
+
if (window.emMessageBus) {
|
|
4252
|
+
const n = document.createElement("style");
|
|
4253
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
4254
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
4255
|
+
});
|
|
4256
|
+
}
|
|
4257
|
+
}
|
|
4258
|
+
function Vi(e) {
|
|
4259
|
+
dr(e, "svelte-1oqxq1j", ".TransactionHistoryWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%}.TransactionHistoryWrapper.TransactionHistoryWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.TransactionHistoryTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.TransactionHistoryTitleMobile{font-size:var(--emw--size-standard, 16px)}.TransactionHistoryTitleNone{display:none}.TransactionHistoryIframeWrapper iframe{border:none;width:100%;height:85vh}");
|
|
4230
4260
|
}
|
|
4231
|
-
function
|
|
4261
|
+
function Xi(e) {
|
|
4232
4262
|
let t, r, n, i, o, s, a, h, u, l, c = (
|
|
4233
4263
|
/*$_*/
|
|
4234
4264
|
e[3]("titleTransactionHistory") + ""
|
|
4235
4265
|
), f, p, v;
|
|
4236
4266
|
return {
|
|
4237
4267
|
c() {
|
|
4238
|
-
t =
|
|
4268
|
+
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 = Ne(), 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");
|
|
4239
4269
|
},
|
|
4240
4270
|
m(m, T) {
|
|
4241
|
-
|
|
4271
|
+
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 = gr(
|
|
4242
4272
|
t,
|
|
4243
4273
|
"click",
|
|
4244
4274
|
/*click_handler*/
|
|
4245
|
-
e[
|
|
4275
|
+
e[14]
|
|
4246
4276
|
), p = !0);
|
|
4247
4277
|
},
|
|
4248
4278
|
p(m, T) {
|
|
@@ -4255,19 +4285,19 @@ function Fi(e) {
|
|
|
4255
4285
|
}
|
|
4256
4286
|
};
|
|
4257
4287
|
}
|
|
4258
|
-
function
|
|
4288
|
+
function Wi(e) {
|
|
4259
4289
|
let t, r, n;
|
|
4260
4290
|
return {
|
|
4261
4291
|
c() {
|
|
4262
|
-
t =
|
|
4292
|
+
t = N("div"), r = N("iframe"), it(r.src, n = /*iframeUrl*/
|
|
4263
4293
|
e[2]) || E(r, "src", n), E(r, "title", "Transaction History Iframe"), E(t, "class", "TransactionHistoryIframeWrapper");
|
|
4264
4294
|
},
|
|
4265
4295
|
m(i, o) {
|
|
4266
|
-
|
|
4296
|
+
ue(i, t, o), x(t, r);
|
|
4267
4297
|
},
|
|
4268
4298
|
p(i, o) {
|
|
4269
4299
|
o & /*iframeUrl*/
|
|
4270
|
-
4 && !
|
|
4300
|
+
4 && !it(r.src, n = /*iframeUrl*/
|
|
4271
4301
|
i[2]) && E(r, "src", n);
|
|
4272
4302
|
},
|
|
4273
4303
|
d(i) {
|
|
@@ -4275,17 +4305,17 @@ function ji(e) {
|
|
|
4275
4305
|
}
|
|
4276
4306
|
};
|
|
4277
4307
|
}
|
|
4278
|
-
function
|
|
4308
|
+
function zi(e) {
|
|
4279
4309
|
let t, r = (
|
|
4280
4310
|
/*$_*/
|
|
4281
4311
|
e[3]("loading") + ""
|
|
4282
4312
|
), n;
|
|
4283
4313
|
return {
|
|
4284
4314
|
c() {
|
|
4285
|
-
t =
|
|
4315
|
+
t = N("p"), n = ne(r);
|
|
4286
4316
|
},
|
|
4287
4317
|
m(i, o) {
|
|
4288
|
-
|
|
4318
|
+
ue(i, t, o), x(t, n);
|
|
4289
4319
|
},
|
|
4290
4320
|
p(i, o) {
|
|
4291
4321
|
o & /*$_*/
|
|
@@ -4297,29 +4327,29 @@ function ki(e) {
|
|
|
4297
4327
|
}
|
|
4298
4328
|
};
|
|
4299
4329
|
}
|
|
4300
|
-
function
|
|
4330
|
+
function Zi(e) {
|
|
4301
4331
|
let t, r, n, i = (
|
|
4302
4332
|
/*$_*/
|
|
4303
4333
|
e[3]("titleTransactionHistory") + ""
|
|
4304
4334
|
), o, s, a = (
|
|
4305
4335
|
/*isMobile*/
|
|
4306
|
-
e[4] &&
|
|
4336
|
+
e[4] && Xi(e)
|
|
4307
4337
|
);
|
|
4308
4338
|
function h(c, f) {
|
|
4309
4339
|
return (
|
|
4310
4340
|
/*isLoading*/
|
|
4311
|
-
c[1] ?
|
|
4341
|
+
c[1] ? zi : Wi
|
|
4312
4342
|
);
|
|
4313
4343
|
}
|
|
4314
4344
|
let u = h(e), l = u(e);
|
|
4315
4345
|
return {
|
|
4316
4346
|
c() {
|
|
4317
|
-
t =
|
|
4347
|
+
t = N("div"), a && a.c(), r = Ne(), n = N("h2"), o = ne(i), s = Ne(), l.c(), E(n, "class", "TransactionHistoryTitle " + /*isMobile*/
|
|
4318
4348
|
(e[4] ? "TransactionHistoryTitleNone" : "")), E(t, "class", "TransactionHistoryWrapper " + /*isMobile*/
|
|
4319
4349
|
(e[4] ? "TransactionHistoryWrapperMobile" : ""));
|
|
4320
4350
|
},
|
|
4321
4351
|
m(c, f) {
|
|
4322
|
-
|
|
4352
|
+
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);
|
|
4323
4353
|
},
|
|
4324
4354
|
p(c, [f]) {
|
|
4325
4355
|
/*isMobile*/
|
|
@@ -4327,92 +4357,83 @@ function Vi(e) {
|
|
|
4327
4357
|
8 && i !== (i = /*$_*/
|
|
4328
4358
|
c[3]("titleTransactionHistory") + "") && Qe(o, i), u === (u = h(c)) && l ? l.p(c, f) : (l.d(1), l = u(c), l && (l.c(), l.m(t, null)));
|
|
4329
4359
|
},
|
|
4330
|
-
i:
|
|
4331
|
-
o:
|
|
4360
|
+
i: B,
|
|
4361
|
+
o: B,
|
|
4332
4362
|
d(c) {
|
|
4333
|
-
c && J(t), a && a.d(), l.d(), e[
|
|
4363
|
+
c && J(t), a && a.d(), l.d(), e[15](null);
|
|
4334
4364
|
}
|
|
4335
4365
|
};
|
|
4336
4366
|
}
|
|
4337
|
-
function
|
|
4367
|
+
function qi(e, t, r) {
|
|
4338
4368
|
let n;
|
|
4339
|
-
|
|
4340
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: s = "" } = t, { lang: a = "en" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, {
|
|
4341
|
-
const
|
|
4342
|
-
fetch(
|
|
4343
|
-
Object.keys(
|
|
4344
|
-
|
|
4369
|
+
mr(e, Ui, (g) => r(3, n = g));
|
|
4370
|
+
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 = Di(p) !== "PC", m = !0, T = "";
|
|
4371
|
+
const R = () => {
|
|
4372
|
+
fetch(c).then((C) => C.json()).then((C) => {
|
|
4373
|
+
Object.keys(C).forEach((M) => {
|
|
4374
|
+
wt(M, C[M]);
|
|
4345
4375
|
});
|
|
4346
|
-
}).catch((
|
|
4347
|
-
console.log(
|
|
4376
|
+
}).catch((C) => {
|
|
4377
|
+
console.log(C);
|
|
4348
4378
|
});
|
|
4349
4379
|
};
|
|
4350
|
-
Object.keys(
|
|
4351
|
-
|
|
4380
|
+
Object.keys(Bt).forEach((g) => {
|
|
4381
|
+
wt(g, Bt[g]);
|
|
4352
4382
|
});
|
|
4353
|
-
const
|
|
4383
|
+
const P = () => {
|
|
4354
4384
|
window.postMessage(
|
|
4355
4385
|
{
|
|
4356
4386
|
type: "PlayerAccountMenuActive",
|
|
4357
|
-
isMobile:
|
|
4387
|
+
isMobile: v
|
|
4358
4388
|
},
|
|
4359
4389
|
window.location.href
|
|
4360
4390
|
);
|
|
4361
|
-
},
|
|
4391
|
+
}, S = () => {
|
|
4362
4392
|
let g = new URL(`${i}/v1/player/${s}/hostedcashier/customertransactionhistoryurl`);
|
|
4363
4393
|
g.searchParams.append("language", a);
|
|
4364
|
-
let
|
|
4394
|
+
let C = {
|
|
4365
4395
|
method: "GET",
|
|
4366
4396
|
headers: {
|
|
4367
4397
|
"X-SessionId": o,
|
|
4368
4398
|
accept: "application/json"
|
|
4369
4399
|
}
|
|
4370
4400
|
};
|
|
4371
|
-
fetch(g.href,
|
|
4372
|
-
(
|
|
4373
|
-
r(1,
|
|
4401
|
+
fetch(g.href, C).then((M) => M.json()).then(
|
|
4402
|
+
(M) => {
|
|
4403
|
+
r(1, m = !1), r(2, T = M.CashierUrl);
|
|
4374
4404
|
},
|
|
4375
|
-
(
|
|
4376
|
-
console.error(
|
|
4405
|
+
(M) => {
|
|
4406
|
+
console.error(M);
|
|
4377
4407
|
}
|
|
4378
4408
|
);
|
|
4379
|
-
}, S = () => {
|
|
4380
|
-
Di(a);
|
|
4381
4409
|
}, U = () => {
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
() => {
|
|
4389
|
-
c.appendChild(A);
|
|
4390
|
-
},
|
|
4391
|
-
1
|
|
4392
|
-
);
|
|
4393
|
-
});
|
|
4394
|
-
}, G = () => M();
|
|
4395
|
-
function he(g) {
|
|
4410
|
+
Gi(a);
|
|
4411
|
+
};
|
|
4412
|
+
xr(() => () => {
|
|
4413
|
+
});
|
|
4414
|
+
const O = () => P();
|
|
4415
|
+
function G(g) {
|
|
4396
4416
|
Le[g ? "unshift" : "push"](() => {
|
|
4397
|
-
|
|
4417
|
+
f = g, r(0, f);
|
|
4398
4418
|
});
|
|
4399
4419
|
}
|
|
4400
4420
|
return e.$$set = (g) => {
|
|
4401
|
-
"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), "
|
|
4421
|
+
"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);
|
|
4402
4422
|
}, e.$$.update = () => {
|
|
4403
4423
|
e.$$.dirty & /*lang*/
|
|
4404
|
-
512 && a &&
|
|
4405
|
-
960 && o && s && i && a &&
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4424
|
+
512 && a && U(), e.$$.dirty & /*session, playerid, endpoint, lang*/
|
|
4425
|
+
960 && o && s && i && a && S(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4426
|
+
1025 && h && f && Fi(f, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4427
|
+
2049 && u && f && ji(f, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4428
|
+
4097 && l && f && ki(f, `${l}.Style`), e.$$.dirty & /*translationurl*/
|
|
4429
|
+
8192 && c && R();
|
|
4409
4430
|
}, [
|
|
4410
|
-
|
|
4411
|
-
v,
|
|
4431
|
+
f,
|
|
4412
4432
|
m,
|
|
4433
|
+
T,
|
|
4413
4434
|
n,
|
|
4414
|
-
|
|
4415
|
-
|
|
4435
|
+
v,
|
|
4436
|
+
P,
|
|
4416
4437
|
i,
|
|
4417
4438
|
o,
|
|
4418
4439
|
s,
|
|
@@ -4420,18 +4441,19 @@ function Xi(e, t, r) {
|
|
|
4420
4441
|
h,
|
|
4421
4442
|
u,
|
|
4422
4443
|
l,
|
|
4423
|
-
|
|
4424
|
-
|
|
4444
|
+
c,
|
|
4445
|
+
O,
|
|
4446
|
+
G
|
|
4425
4447
|
];
|
|
4426
4448
|
}
|
|
4427
|
-
class
|
|
4449
|
+
class Qi extends Cr {
|
|
4428
4450
|
constructor(t) {
|
|
4429
|
-
super(),
|
|
4451
|
+
super(), Nr(
|
|
4430
4452
|
this,
|
|
4431
4453
|
t,
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4454
|
+
qi,
|
|
4455
|
+
Zi,
|
|
4456
|
+
Pt,
|
|
4435
4457
|
{
|
|
4436
4458
|
endpoint: 6,
|
|
4437
4459
|
session: 7,
|
|
@@ -4439,55 +4461,62 @@ class Wi extends Lr {
|
|
|
4439
4461
|
lang: 9,
|
|
4440
4462
|
clientstyling: 10,
|
|
4441
4463
|
clientstylingurl: 11,
|
|
4442
|
-
|
|
4464
|
+
mbsource: 12,
|
|
4465
|
+
translationurl: 13
|
|
4443
4466
|
},
|
|
4444
|
-
|
|
4467
|
+
Vi
|
|
4445
4468
|
);
|
|
4446
4469
|
}
|
|
4447
4470
|
get endpoint() {
|
|
4448
4471
|
return this.$$.ctx[6];
|
|
4449
4472
|
}
|
|
4450
4473
|
set endpoint(t) {
|
|
4451
|
-
this.$$set({ endpoint: t }),
|
|
4474
|
+
this.$$set({ endpoint: t }), A();
|
|
4452
4475
|
}
|
|
4453
4476
|
get session() {
|
|
4454
4477
|
return this.$$.ctx[7];
|
|
4455
4478
|
}
|
|
4456
4479
|
set session(t) {
|
|
4457
|
-
this.$$set({ session: t }),
|
|
4480
|
+
this.$$set({ session: t }), A();
|
|
4458
4481
|
}
|
|
4459
4482
|
get playerid() {
|
|
4460
4483
|
return this.$$.ctx[8];
|
|
4461
4484
|
}
|
|
4462
4485
|
set playerid(t) {
|
|
4463
|
-
this.$$set({ playerid: t }),
|
|
4486
|
+
this.$$set({ playerid: t }), A();
|
|
4464
4487
|
}
|
|
4465
4488
|
get lang() {
|
|
4466
4489
|
return this.$$.ctx[9];
|
|
4467
4490
|
}
|
|
4468
4491
|
set lang(t) {
|
|
4469
|
-
this.$$set({ lang: t }),
|
|
4492
|
+
this.$$set({ lang: t }), A();
|
|
4470
4493
|
}
|
|
4471
4494
|
get clientstyling() {
|
|
4472
4495
|
return this.$$.ctx[10];
|
|
4473
4496
|
}
|
|
4474
4497
|
set clientstyling(t) {
|
|
4475
|
-
this.$$set({ clientstyling: t }),
|
|
4498
|
+
this.$$set({ clientstyling: t }), A();
|
|
4476
4499
|
}
|
|
4477
4500
|
get clientstylingurl() {
|
|
4478
4501
|
return this.$$.ctx[11];
|
|
4479
4502
|
}
|
|
4480
4503
|
set clientstylingurl(t) {
|
|
4481
|
-
this.$$set({ clientstylingurl: t }),
|
|
4504
|
+
this.$$set({ clientstylingurl: t }), A();
|
|
4482
4505
|
}
|
|
4483
|
-
get
|
|
4506
|
+
get mbsource() {
|
|
4484
4507
|
return this.$$.ctx[12];
|
|
4485
4508
|
}
|
|
4509
|
+
set mbsource(t) {
|
|
4510
|
+
this.$$set({ mbsource: t }), A();
|
|
4511
|
+
}
|
|
4512
|
+
get translationurl() {
|
|
4513
|
+
return this.$$.ctx[13];
|
|
4514
|
+
}
|
|
4486
4515
|
set translationurl(t) {
|
|
4487
|
-
this.$$set({ translationurl: t }),
|
|
4516
|
+
this.$$set({ translationurl: t }), A();
|
|
4488
4517
|
}
|
|
4489
4518
|
}
|
|
4490
|
-
|
|
4519
|
+
Lr(Qi, { endpoint: {}, session: {}, playerid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4491
4520
|
export {
|
|
4492
|
-
|
|
4521
|
+
Qi as default
|
|
4493
4522
|
};
|