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