@everymatrix/player-account-gaming-limits-history-2 1.86.2 → 1.86.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/{PlayerAccountGamingLimitsHistory2-kolYKLqb.js → PlayerAccountGamingLimitsHistory2-Chy2x8gO.js} +861 -882
- package/components/{PlayerAccountGamingLimitsHistory2-DNiWf7Z8.js → PlayerAccountGamingLimitsHistory2-CvVJHUSE.js} +992 -1013
- package/components/PlayerAccountGamingLimitsHistory2-JFXvLGIK.cjs +18 -0
- package/es2015/player-account-gaming-limits-history-2.cjs +1 -1
- package/es2015/player-account-gaming-limits-history-2.js +1 -1
- package/esnext/player-account-gaming-limits-history-2.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGamingLimitsHistory2-BX_4Ee1b.cjs +0 -18
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Ur = Object.defineProperty, Gr = Object.defineProperties;
|
|
2
|
+
var Fr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var dt = Object.getOwnPropertySymbols;
|
|
4
|
+
var jr = Object.prototype.hasOwnProperty, kr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Me = (e, t, r) => t in e ? Ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, be = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
jr.call(t, r) && Me(e, r, t[r]);
|
|
8
|
+
if (dt)
|
|
9
|
+
for (var r of dt(t))
|
|
10
|
+
kr.call(t, r) && Me(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var N = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, yt = (e, t) => Gr(e, Fr(t));
|
|
13
|
+
var N = (e, t, r) => (Me(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var bt = (e, t, r) => new Promise((i, n) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
s(r.next(l));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
n(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, a = (l) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
s(r.throw(l));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
n(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, s = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(o, a);
|
|
28
|
+
s((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function B() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Wt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function gt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function fe(e) {
|
|
39
|
+
e.forEach(Wt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function lt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Xt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Vr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function zt(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const i of t)
|
|
53
53
|
i(void 0);
|
|
54
|
-
return
|
|
54
|
+
return B;
|
|
55
55
|
}
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function Wr(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(zt(t, r));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function vt(e) {
|
|
63
63
|
return e == null ? "" : e;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function T(e, t) {
|
|
66
66
|
e.appendChild(t);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
const i =
|
|
68
|
+
function Xr(e, t, r) {
|
|
69
|
+
const i = zr(e);
|
|
70
70
|
if (!i.getElementById(t)) {
|
|
71
|
-
const n =
|
|
72
|
-
n.id = t, n.textContent = r,
|
|
71
|
+
const n = H("style");
|
|
72
|
+
n.id = t, n.textContent = r, Zr(i, n);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function zr(e) {
|
|
76
76
|
if (!e)
|
|
77
77
|
return document;
|
|
78
78
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -82,8 +82,8 @@ function Zr(e) {
|
|
|
82
82
|
t
|
|
83
83
|
) : e.ownerDocument;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
85
|
+
function Zr(e, t) {
|
|
86
|
+
return T(
|
|
87
87
|
/** @type {Document} */
|
|
88
88
|
e.head || e,
|
|
89
89
|
t
|
|
@@ -95,39 +95,39 @@ function X(e, t, r) {
|
|
|
95
95
|
function V(e) {
|
|
96
96
|
e.parentNode && e.parentNode.removeChild(e);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Qr(e, t) {
|
|
99
99
|
for (let r = 0; r < e.length; r += 1)
|
|
100
100
|
e[r] && e[r].d(t);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function H(e) {
|
|
103
103
|
return document.createElement(e);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function De(e) {
|
|
106
106
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function U(e) {
|
|
109
109
|
return document.createTextNode(e);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
111
|
+
function ze() {
|
|
112
|
+
return U(" ");
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Yr(e, t, r, i) {
|
|
115
115
|
return e.addEventListener(t, r, i), () => e.removeEventListener(t, r, i);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function x(e, t, r) {
|
|
118
118
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Jr(e) {
|
|
121
121
|
return Array.from(e.childNodes);
|
|
122
122
|
}
|
|
123
123
|
function k(e, t) {
|
|
124
124
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
125
125
|
t);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function ge(e, t, r) {
|
|
128
128
|
e.classList.toggle(t, !!r);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function qr(e) {
|
|
131
131
|
const t = {};
|
|
132
132
|
return e.childNodes.forEach(
|
|
133
133
|
/** @param {Element} node */
|
|
@@ -136,98 +136,98 @@ function Kr(e) {
|
|
|
136
136
|
}
|
|
137
137
|
), t;
|
|
138
138
|
}
|
|
139
|
-
let
|
|
140
|
-
function
|
|
141
|
-
|
|
139
|
+
let le;
|
|
140
|
+
function ue(e) {
|
|
141
|
+
le = e;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
if (!
|
|
143
|
+
function Kr() {
|
|
144
|
+
if (!le)
|
|
145
145
|
throw new Error("Function called outside component initialization");
|
|
146
|
-
return
|
|
146
|
+
return le;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
148
|
+
function ei(e) {
|
|
149
|
+
Kr().$$.on_mount.push(e);
|
|
150
150
|
}
|
|
151
151
|
const Y = [], Se = [];
|
|
152
152
|
let J = [];
|
|
153
|
-
const
|
|
154
|
-
let
|
|
155
|
-
function
|
|
156
|
-
|
|
153
|
+
const Et = [], ti = /* @__PURE__ */ Promise.resolve();
|
|
154
|
+
let Ze = !1;
|
|
155
|
+
function ri() {
|
|
156
|
+
Ze || (Ze = !0, ti.then(O));
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Qe(e) {
|
|
159
159
|
J.push(e);
|
|
160
160
|
}
|
|
161
|
-
const
|
|
161
|
+
const $e = /* @__PURE__ */ new Set();
|
|
162
162
|
let Z = 0;
|
|
163
|
-
function
|
|
163
|
+
function O() {
|
|
164
164
|
if (Z !== 0)
|
|
165
165
|
return;
|
|
166
|
-
const e =
|
|
166
|
+
const e = le;
|
|
167
167
|
do {
|
|
168
168
|
try {
|
|
169
169
|
for (; Z < Y.length; ) {
|
|
170
170
|
const t = Y[Z];
|
|
171
|
-
Z++,
|
|
171
|
+
Z++, ue(t), ii(t.$$);
|
|
172
172
|
}
|
|
173
173
|
} catch (t) {
|
|
174
174
|
throw Y.length = 0, Z = 0, t;
|
|
175
175
|
}
|
|
176
|
-
for (
|
|
176
|
+
for (ue(null), Y.length = 0, Z = 0; Se.length; )
|
|
177
177
|
Se.pop()();
|
|
178
178
|
for (let t = 0; t < J.length; t += 1) {
|
|
179
179
|
const r = J[t];
|
|
180
|
-
|
|
180
|
+
$e.has(r) || ($e.add(r), r());
|
|
181
181
|
}
|
|
182
182
|
J.length = 0;
|
|
183
183
|
} while (Y.length);
|
|
184
|
-
for (;
|
|
185
|
-
|
|
186
|
-
|
|
184
|
+
for (; Et.length; )
|
|
185
|
+
Et.pop()();
|
|
186
|
+
Ze = !1, $e.clear(), ue(e);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function ii(e) {
|
|
189
189
|
if (e.fragment !== null) {
|
|
190
|
-
e.update(),
|
|
190
|
+
e.update(), fe(e.before_update);
|
|
191
191
|
const t = e.dirty;
|
|
192
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
192
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Qe);
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function ni(e) {
|
|
196
196
|
const t = [], r = [];
|
|
197
197
|
J.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : r.push(i)), r.forEach((i) => i()), J = t;
|
|
198
198
|
}
|
|
199
|
-
const
|
|
200
|
-
function
|
|
201
|
-
e && e.i && (
|
|
199
|
+
const oi = /* @__PURE__ */ new Set();
|
|
200
|
+
function si(e, t) {
|
|
201
|
+
e && e.i && (oi.delete(e), e.i(t));
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function _t(e) {
|
|
204
204
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function ai(e, t, r) {
|
|
207
207
|
const { fragment: i, after_update: n } = e.$$;
|
|
208
|
-
i && i.m(t, r),
|
|
209
|
-
const o = e.$$.on_mount.map(
|
|
210
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
211
|
-
}), n.forEach(
|
|
208
|
+
i && i.m(t, r), Qe(() => {
|
|
209
|
+
const o = e.$$.on_mount.map(Wt).filter(lt);
|
|
210
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : fe(o), e.$$.on_mount = [];
|
|
211
|
+
}), n.forEach(Qe);
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function ui(e, t) {
|
|
214
214
|
const r = e.$$;
|
|
215
|
-
r.fragment !== null && (
|
|
215
|
+
r.fragment !== null && (ni(r.after_update), fe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
e.$$.dirty[0] === -1 && (Y.push(e),
|
|
217
|
+
function li(e, t) {
|
|
218
|
+
e.$$.dirty[0] === -1 && (Y.push(e), ri(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
const l =
|
|
222
|
-
|
|
220
|
+
function hi(e, t, r, i, n, o, a = null, s = [-1]) {
|
|
221
|
+
const l = le;
|
|
222
|
+
ue(e);
|
|
223
223
|
const u = e.$$ = {
|
|
224
224
|
fragment: null,
|
|
225
225
|
ctx: [],
|
|
226
226
|
// state
|
|
227
227
|
props: o,
|
|
228
|
-
update:
|
|
228
|
+
update: B,
|
|
229
229
|
not_equal: n,
|
|
230
|
-
bound:
|
|
230
|
+
bound: gt(),
|
|
231
231
|
// lifecycle
|
|
232
232
|
on_mount: [],
|
|
233
233
|
on_destroy: [],
|
|
@@ -236,28 +236,28 @@ function ci(e, t, r, i, n, o, s = null, a = [-1]) {
|
|
|
236
236
|
after_update: [],
|
|
237
237
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
238
238
|
// everything else
|
|
239
|
-
callbacks:
|
|
240
|
-
dirty:
|
|
239
|
+
callbacks: gt(),
|
|
240
|
+
dirty: s,
|
|
241
241
|
skip_bound: !1,
|
|
242
242
|
root: t.target || l.$$.root
|
|
243
243
|
};
|
|
244
|
-
|
|
244
|
+
a && a(u.root);
|
|
245
245
|
let h = !1;
|
|
246
246
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
247
247
|
const y = p.length ? p[0] : f;
|
|
248
|
-
return u.ctx && n(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), h &&
|
|
249
|
-
}) : [], u.update(), h = !0,
|
|
248
|
+
return u.ctx && n(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), h && li(e, c)), f;
|
|
249
|
+
}) : [], u.update(), h = !0, fe(u.before_update), u.fragment = i ? i(u.ctx) : !1, t.target) {
|
|
250
250
|
if (t.hydrate) {
|
|
251
|
-
const c =
|
|
251
|
+
const c = Jr(t.target);
|
|
252
252
|
u.fragment && u.fragment.l(c), c.forEach(V);
|
|
253
253
|
} else
|
|
254
254
|
u.fragment && u.fragment.c();
|
|
255
|
-
t.intro &&
|
|
255
|
+
t.intro && si(e.$$.fragment), ai(e, t.target, t.anchor), O();
|
|
256
256
|
}
|
|
257
|
-
|
|
257
|
+
ue(l);
|
|
258
258
|
}
|
|
259
|
-
let
|
|
260
|
-
typeof HTMLElement == "function" && (
|
|
259
|
+
let Zt;
|
|
260
|
+
typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
261
261
|
constructor(t, r, i) {
|
|
262
262
|
super();
|
|
263
263
|
/** The Svelte component constructor */
|
|
@@ -294,42 +294,42 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
connectedCallback() {
|
|
297
|
-
return
|
|
297
|
+
return bt(this, null, function* () {
|
|
298
298
|
if (this.$$cn = !0, !this.$$c) {
|
|
299
299
|
let t = function(o) {
|
|
300
300
|
return () => {
|
|
301
|
-
let
|
|
301
|
+
let a;
|
|
302
302
|
return {
|
|
303
303
|
c: function() {
|
|
304
|
-
|
|
304
|
+
a = H("slot"), o !== "default" && x(a, "name", o);
|
|
305
305
|
},
|
|
306
306
|
/**
|
|
307
307
|
* @param {HTMLElement} target
|
|
308
308
|
* @param {HTMLElement} [anchor]
|
|
309
309
|
*/
|
|
310
310
|
m: function(u, h) {
|
|
311
|
-
X(u,
|
|
311
|
+
X(u, a, h);
|
|
312
312
|
},
|
|
313
313
|
d: function(u) {
|
|
314
|
-
u && V(
|
|
314
|
+
u && V(a);
|
|
315
315
|
}
|
|
316
316
|
};
|
|
317
317
|
};
|
|
318
318
|
};
|
|
319
319
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
320
320
|
return;
|
|
321
|
-
const r = {}, i =
|
|
321
|
+
const r = {}, i = qr(this);
|
|
322
322
|
for (const o of this.$$s)
|
|
323
323
|
o in i && (r[o] = [t(o)]);
|
|
324
324
|
for (const o of this.attributes) {
|
|
325
|
-
const
|
|
326
|
-
|
|
325
|
+
const a = this.$$g_p(o.name);
|
|
326
|
+
a in this.$$d || (this.$$d[a] = _e(a, o.value, this.$$p_d, "toProp"));
|
|
327
327
|
}
|
|
328
328
|
for (const o in this.$$p_d)
|
|
329
329
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
330
330
|
this.$$c = new this.$$ctor({
|
|
331
331
|
target: this.shadowRoot || this,
|
|
332
|
-
props:
|
|
332
|
+
props: yt(be({}, this.$$d), {
|
|
333
333
|
$$slots: r,
|
|
334
334
|
$$scope: {
|
|
335
335
|
ctx: []
|
|
@@ -340,21 +340,21 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
340
340
|
this.$$r = !0;
|
|
341
341
|
for (const o in this.$$p_d)
|
|
342
342
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
343
|
-
const
|
|
343
|
+
const a = _e(
|
|
344
344
|
o,
|
|
345
345
|
this.$$d[o],
|
|
346
346
|
this.$$p_d,
|
|
347
347
|
"toAttribute"
|
|
348
348
|
);
|
|
349
|
-
|
|
349
|
+
a == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, a);
|
|
350
350
|
}
|
|
351
351
|
this.$$r = !1;
|
|
352
352
|
};
|
|
353
353
|
this.$$c.$$.after_update.push(n), n();
|
|
354
354
|
for (const o in this.$$l)
|
|
355
|
-
for (const
|
|
356
|
-
const
|
|
357
|
-
this.$$l_u.set(
|
|
355
|
+
for (const a of this.$$l[o]) {
|
|
356
|
+
const s = this.$$c.$on(o, a);
|
|
357
|
+
this.$$l_u.set(a, s);
|
|
358
358
|
}
|
|
359
359
|
this.$$l = {};
|
|
360
360
|
}
|
|
@@ -407,38 +407,38 @@ function _e(e, t, r, i) {
|
|
|
407
407
|
return t;
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
let
|
|
410
|
+
function ci(e, t, r, i, n, o) {
|
|
411
|
+
let a = class extends Zt {
|
|
412
412
|
constructor() {
|
|
413
413
|
super(e, r, n), this.$$p_d = t;
|
|
414
414
|
}
|
|
415
415
|
static get observedAttributes() {
|
|
416
416
|
return Object.keys(t).map(
|
|
417
|
-
(
|
|
417
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
418
418
|
);
|
|
419
419
|
}
|
|
420
420
|
};
|
|
421
|
-
return Object.keys(t).forEach((
|
|
422
|
-
Object.defineProperty(
|
|
421
|
+
return Object.keys(t).forEach((s) => {
|
|
422
|
+
Object.defineProperty(a.prototype, s, {
|
|
423
423
|
get() {
|
|
424
|
-
return this.$$c &&
|
|
424
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
425
425
|
},
|
|
426
426
|
set(l) {
|
|
427
427
|
var u;
|
|
428
|
-
l = _e(
|
|
428
|
+
l = _e(s, l, t), this.$$d[s] = l, (u = this.$$c) == null || u.$set({ [s]: l });
|
|
429
429
|
}
|
|
430
430
|
});
|
|
431
|
-
}), i.forEach((
|
|
432
|
-
Object.defineProperty(
|
|
431
|
+
}), i.forEach((s) => {
|
|
432
|
+
Object.defineProperty(a.prototype, s, {
|
|
433
433
|
get() {
|
|
434
434
|
var l;
|
|
435
|
-
return (l = this.$$c) == null ? void 0 : l[
|
|
435
|
+
return (l = this.$$c) == null ? void 0 : l[s];
|
|
436
436
|
}
|
|
437
437
|
});
|
|
438
438
|
}), e.element = /** @type {any} */
|
|
439
|
-
|
|
439
|
+
a, a;
|
|
440
440
|
}
|
|
441
|
-
class
|
|
441
|
+
class fi {
|
|
442
442
|
constructor() {
|
|
443
443
|
/**
|
|
444
444
|
* ### PRIVATE API
|
|
@@ -459,7 +459,7 @@ class mi {
|
|
|
459
459
|
}
|
|
460
460
|
/** @returns {void} */
|
|
461
461
|
$destroy() {
|
|
462
|
-
|
|
462
|
+
ui(this, 1), this.$destroy = B;
|
|
463
463
|
}
|
|
464
464
|
/**
|
|
465
465
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -468,8 +468,8 @@ class mi {
|
|
|
468
468
|
* @returns {() => void}
|
|
469
469
|
*/
|
|
470
470
|
$on(t, r) {
|
|
471
|
-
if (!
|
|
472
|
-
return
|
|
471
|
+
if (!lt(r))
|
|
472
|
+
return B;
|
|
473
473
|
const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
474
474
|
return i.push(r), () => {
|
|
475
475
|
const n = i.indexOf(r);
|
|
@@ -481,22 +481,22 @@ class mi {
|
|
|
481
481
|
* @returns {void}
|
|
482
482
|
*/
|
|
483
483
|
$set(t) {
|
|
484
|
-
this.$$set && !
|
|
484
|
+
this.$$set && !Vr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
const
|
|
488
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
487
|
+
const mi = "4";
|
|
488
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(mi);
|
|
489
489
|
const Q = [];
|
|
490
|
-
function
|
|
490
|
+
function pi(e, t) {
|
|
491
491
|
return {
|
|
492
492
|
subscribe: He(e, t).subscribe
|
|
493
493
|
};
|
|
494
494
|
}
|
|
495
|
-
function He(e, t =
|
|
495
|
+
function He(e, t = B) {
|
|
496
496
|
let r;
|
|
497
497
|
const i = /* @__PURE__ */ new Set();
|
|
498
|
-
function n(
|
|
499
|
-
if (
|
|
498
|
+
function n(s) {
|
|
499
|
+
if (Xt(e, s) && (e = s, r)) {
|
|
500
500
|
const l = !Q.length;
|
|
501
501
|
for (const u of i)
|
|
502
502
|
u[1](), Q.push(u, e);
|
|
@@ -507,34 +507,34 @@ function He(e, t = I) {
|
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
function o(
|
|
511
|
-
n(
|
|
510
|
+
function o(s) {
|
|
511
|
+
n(s(e));
|
|
512
512
|
}
|
|
513
|
-
function s
|
|
514
|
-
const u = [
|
|
515
|
-
return i.add(u), i.size === 1 && (r = t(n, o) ||
|
|
513
|
+
function a(s, l = B) {
|
|
514
|
+
const u = [s, l];
|
|
515
|
+
return i.add(u), i.size === 1 && (r = t(n, o) || B), s(e), () => {
|
|
516
516
|
i.delete(u), i.size === 0 && r && (r(), r = null);
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
|
-
return { set: n, update: o, subscribe:
|
|
519
|
+
return { set: n, update: o, subscribe: a };
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function ie(e, t, r) {
|
|
522
522
|
const i = !Array.isArray(e), n = i ? [e] : e;
|
|
523
523
|
if (!n.every(Boolean))
|
|
524
524
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
525
525
|
const o = t.length < 2;
|
|
526
|
-
return
|
|
526
|
+
return pi(r, (a, s) => {
|
|
527
527
|
let l = !1;
|
|
528
528
|
const u = [];
|
|
529
|
-
let h = 0, c =
|
|
529
|
+
let h = 0, c = B;
|
|
530
530
|
const f = () => {
|
|
531
531
|
if (h)
|
|
532
532
|
return;
|
|
533
533
|
c();
|
|
534
|
-
const y = t(i ? u[0] : u,
|
|
535
|
-
o ?
|
|
534
|
+
const y = t(i ? u[0] : u, a, s);
|
|
535
|
+
o ? a(y) : c = lt(y) ? y : B;
|
|
536
536
|
}, p = n.map(
|
|
537
|
-
(y, d) =>
|
|
537
|
+
(y, d) => zt(
|
|
538
538
|
y,
|
|
539
539
|
(v) => {
|
|
540
540
|
u[d] = v, h &= ~(1 << d), l && f();
|
|
@@ -545,110 +545,124 @@ function re(e, t, r) {
|
|
|
545
545
|
)
|
|
546
546
|
);
|
|
547
547
|
return l = !0, f(), function() {
|
|
548
|
-
|
|
548
|
+
fe(p), c(), l = !1;
|
|
549
549
|
};
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function di(e) {
|
|
553
553
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
554
554
|
}
|
|
555
|
-
var
|
|
556
|
-
return bi(t) && !
|
|
555
|
+
var yi = function(t) {
|
|
556
|
+
return bi(t) && !gi(t);
|
|
557
557
|
};
|
|
558
558
|
function bi(e) {
|
|
559
559
|
return !!e && typeof e == "object";
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function gi(e) {
|
|
562
562
|
var t = Object.prototype.toString.call(e);
|
|
563
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
563
|
+
return t === "[object RegExp]" || t === "[object Date]" || _i(e);
|
|
564
564
|
}
|
|
565
|
-
var
|
|
566
|
-
function
|
|
567
|
-
return e.$$typeof ===
|
|
565
|
+
var vi = typeof Symbol == "function" && Symbol.for, Ei = vi ? Symbol.for("react.element") : 60103;
|
|
566
|
+
function _i(e) {
|
|
567
|
+
return e.$$typeof === Ei;
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function xi(e) {
|
|
570
570
|
return Array.isArray(e) ? [] : {};
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
572
|
+
function he(e, t) {
|
|
573
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? K(xi(e), e, t) : e;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function Ti(e, t, r) {
|
|
576
576
|
return e.concat(t).map(function(i) {
|
|
577
|
-
return
|
|
577
|
+
return he(i, r);
|
|
578
578
|
});
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function Li(e, t) {
|
|
581
581
|
if (!t.customMerge)
|
|
582
|
-
return
|
|
582
|
+
return K;
|
|
583
583
|
var r = t.customMerge(e);
|
|
584
|
-
return typeof r == "function" ? r :
|
|
584
|
+
return typeof r == "function" ? r : K;
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function Si(e) {
|
|
587
587
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
588
588
|
return Object.propertyIsEnumerable.call(e, t);
|
|
589
589
|
}) : [];
|
|
590
590
|
}
|
|
591
|
-
function
|
|
592
|
-
return Object.keys(e).concat(
|
|
591
|
+
function xt(e) {
|
|
592
|
+
return Object.keys(e).concat(Si(e));
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function Qt(e, t) {
|
|
595
595
|
try {
|
|
596
596
|
return t in e;
|
|
597
597
|
} catch (r) {
|
|
598
598
|
return !1;
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
return
|
|
601
|
+
function wi(e, t) {
|
|
602
|
+
return Qt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function Ai(e, t, r) {
|
|
605
605
|
var i = {};
|
|
606
|
-
return r.isMergeableObject(e) &&
|
|
607
|
-
i[n] =
|
|
608
|
-
}),
|
|
609
|
-
|
|
606
|
+
return r.isMergeableObject(e) && xt(e).forEach(function(n) {
|
|
607
|
+
i[n] = he(e[n], r);
|
|
608
|
+
}), xt(t).forEach(function(n) {
|
|
609
|
+
wi(e, n) || (Qt(e, n) && r.isMergeableObject(t[n]) ? i[n] = Li(n, r)(e[n], t[n], r) : i[n] = he(t[n], r));
|
|
610
610
|
}), i;
|
|
611
611
|
}
|
|
612
|
-
function
|
|
613
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
612
|
+
function K(e, t, r) {
|
|
613
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Ti, r.isMergeableObject = r.isMergeableObject || yi, r.cloneUnlessOtherwiseSpecified = he;
|
|
614
614
|
var i = Array.isArray(t), n = Array.isArray(e), o = i === n;
|
|
615
|
-
return o ? i ? r.arrayMerge(e, t, r) :
|
|
615
|
+
return o ? i ? r.arrayMerge(e, t, r) : Ai(e, t, r) : he(t, r);
|
|
616
616
|
}
|
|
617
|
-
|
|
617
|
+
K.all = function(t, r) {
|
|
618
618
|
if (!Array.isArray(t))
|
|
619
619
|
throw new Error("first argument should be an array");
|
|
620
620
|
return t.reduce(function(i, n) {
|
|
621
|
-
return
|
|
621
|
+
return K(i, n, r);
|
|
622
622
|
}, {});
|
|
623
623
|
};
|
|
624
|
-
var Hi =
|
|
625
|
-
const Ii = /* @__PURE__ */
|
|
626
|
-
|
|
627
|
-
|
|
624
|
+
var Hi = K, Pi = Hi;
|
|
625
|
+
const Ii = /* @__PURE__ */ di(Pi);
|
|
626
|
+
/*! *****************************************************************************
|
|
627
|
+
Copyright (c) Microsoft Corporation.
|
|
628
|
+
|
|
629
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
630
|
+
purpose with or without fee is hereby granted.
|
|
631
|
+
|
|
632
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
633
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
634
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
635
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
636
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
637
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
638
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
639
|
+
***************************************************************************** */
|
|
640
|
+
var Ye = function(e, t) {
|
|
641
|
+
return Ye = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
628
642
|
r.__proto__ = i;
|
|
629
643
|
} || function(r, i) {
|
|
630
644
|
for (var n in i)
|
|
631
645
|
Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
|
|
632
|
-
},
|
|
646
|
+
}, Ye(e, t);
|
|
633
647
|
};
|
|
634
|
-
function
|
|
648
|
+
function F(e, t) {
|
|
635
649
|
if (typeof t != "function" && t !== null)
|
|
636
650
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
637
|
-
|
|
651
|
+
Ye(e, t);
|
|
638
652
|
function r() {
|
|
639
653
|
this.constructor = e;
|
|
640
654
|
}
|
|
641
655
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
642
656
|
}
|
|
643
|
-
var
|
|
644
|
-
return
|
|
657
|
+
var _ = function() {
|
|
658
|
+
return _ = Object.assign || function(t) {
|
|
645
659
|
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
646
660
|
r = arguments[i];
|
|
647
661
|
for (var o in r)
|
|
648
662
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
649
663
|
}
|
|
650
664
|
return t;
|
|
651
|
-
},
|
|
665
|
+
}, _.apply(this, arguments);
|
|
652
666
|
};
|
|
653
667
|
function Bi(e, t) {
|
|
654
668
|
var r = {};
|
|
@@ -659,119 +673,143 @@ function Bi(e, t) {
|
|
|
659
673
|
t.indexOf(i[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, i[n]) && (r[i[n]] = e[i[n]]);
|
|
660
674
|
return r;
|
|
661
675
|
}
|
|
662
|
-
function
|
|
676
|
+
function Je(e) {
|
|
677
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], i = 0;
|
|
678
|
+
if (r)
|
|
679
|
+
return r.call(e);
|
|
680
|
+
if (e && typeof e.length == "number")
|
|
681
|
+
return {
|
|
682
|
+
next: function() {
|
|
683
|
+
return e && i >= e.length && (e = void 0), { value: e && e[i++], done: !e };
|
|
684
|
+
}
|
|
685
|
+
};
|
|
686
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
687
|
+
}
|
|
688
|
+
function qe(e, t) {
|
|
689
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
690
|
+
if (!r)
|
|
691
|
+
return e;
|
|
692
|
+
var i = r.call(e), n, o = [], a;
|
|
693
|
+
try {
|
|
694
|
+
for (; (t === void 0 || t-- > 0) && !(n = i.next()).done; )
|
|
695
|
+
o.push(n.value);
|
|
696
|
+
} catch (s) {
|
|
697
|
+
a = { error: s };
|
|
698
|
+
} finally {
|
|
699
|
+
try {
|
|
700
|
+
n && !n.done && (r = i.return) && r.call(i);
|
|
701
|
+
} finally {
|
|
702
|
+
if (a)
|
|
703
|
+
throw a.error;
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
return o;
|
|
707
|
+
}
|
|
708
|
+
function q(e, t, r) {
|
|
663
709
|
if (r || arguments.length === 2)
|
|
664
710
|
for (var i = 0, n = t.length, o; i < n; i++)
|
|
665
711
|
(o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
|
|
666
|
-
return e.concat(o ||
|
|
712
|
+
return e.concat(o || t);
|
|
667
713
|
}
|
|
668
|
-
function
|
|
669
|
-
var r = t && t.cache ? t.cache :
|
|
714
|
+
function Ue(e, t) {
|
|
715
|
+
var r = t && t.cache ? t.cache : Di, i = t && t.serializer ? t.serializer : Mi, n = t && t.strategy ? t.strategy : Ci;
|
|
670
716
|
return n(e, {
|
|
671
717
|
cache: r,
|
|
672
718
|
serializer: i
|
|
673
719
|
});
|
|
674
720
|
}
|
|
675
|
-
function
|
|
721
|
+
function Oi(e) {
|
|
676
722
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
677
723
|
}
|
|
678
|
-
function
|
|
679
|
-
var n =
|
|
724
|
+
function Yt(e, t, r, i) {
|
|
725
|
+
var n = Oi(i) ? i : r(i), o = t.get(n);
|
|
680
726
|
return typeof o == "undefined" && (o = e.call(this, i), t.set(n, o)), o;
|
|
681
727
|
}
|
|
682
|
-
function
|
|
728
|
+
function Jt(e, t, r) {
|
|
683
729
|
var i = Array.prototype.slice.call(arguments, 3), n = r(i), o = t.get(n);
|
|
684
730
|
return typeof o == "undefined" && (o = e.apply(this, i), t.set(n, o)), o;
|
|
685
731
|
}
|
|
686
|
-
function
|
|
732
|
+
function ht(e, t, r, i, n) {
|
|
687
733
|
return r.bind(t, e, i, n);
|
|
688
734
|
}
|
|
689
|
-
function
|
|
690
|
-
var r = e.length === 1 ?
|
|
691
|
-
return
|
|
735
|
+
function Ci(e, t) {
|
|
736
|
+
var r = e.length === 1 ? Yt : Jt;
|
|
737
|
+
return ht(e, this, r, t.cache.create(), t.serializer);
|
|
738
|
+
}
|
|
739
|
+
function Ni(e, t) {
|
|
740
|
+
return ht(e, this, Jt, t.cache.create(), t.serializer);
|
|
692
741
|
}
|
|
693
|
-
function
|
|
694
|
-
return
|
|
742
|
+
function Ri(e, t) {
|
|
743
|
+
return ht(e, this, Yt, t.cache.create(), t.serializer);
|
|
695
744
|
}
|
|
696
|
-
var
|
|
745
|
+
var Mi = function() {
|
|
697
746
|
return JSON.stringify(arguments);
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
}()
|
|
710
|
-
), Ui = {
|
|
747
|
+
};
|
|
748
|
+
function ct() {
|
|
749
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
750
|
+
}
|
|
751
|
+
ct.prototype.get = function(e) {
|
|
752
|
+
return this.cache[e];
|
|
753
|
+
};
|
|
754
|
+
ct.prototype.set = function(e, t) {
|
|
755
|
+
this.cache[e] = t;
|
|
756
|
+
};
|
|
757
|
+
var Di = {
|
|
711
758
|
create: function() {
|
|
712
|
-
return new
|
|
759
|
+
return new ct();
|
|
713
760
|
}
|
|
714
|
-
},
|
|
715
|
-
variadic:
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
719
|
-
r = arguments[i];
|
|
720
|
-
for (var o in r)
|
|
721
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
722
|
-
}
|
|
723
|
-
return t;
|
|
724
|
-
}, we.apply(this, arguments);
|
|
725
|
-
};
|
|
726
|
-
var b;
|
|
761
|
+
}, Ge = {
|
|
762
|
+
variadic: Ni,
|
|
763
|
+
monadic: Ri
|
|
764
|
+
}, g;
|
|
727
765
|
(function(e) {
|
|
728
766
|
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";
|
|
729
|
-
})(
|
|
730
|
-
var
|
|
767
|
+
})(g || (g = {}));
|
|
768
|
+
var S;
|
|
731
769
|
(function(e) {
|
|
732
770
|
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";
|
|
733
|
-
})(
|
|
734
|
-
var
|
|
771
|
+
})(S || (S = {}));
|
|
772
|
+
var ee;
|
|
735
773
|
(function(e) {
|
|
736
774
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
737
|
-
})(
|
|
738
|
-
function
|
|
739
|
-
return e.type ===
|
|
775
|
+
})(ee || (ee = {}));
|
|
776
|
+
function Tt(e) {
|
|
777
|
+
return e.type === S.literal;
|
|
740
778
|
}
|
|
741
|
-
function
|
|
742
|
-
return e.type ===
|
|
779
|
+
function $i(e) {
|
|
780
|
+
return e.type === S.argument;
|
|
781
|
+
}
|
|
782
|
+
function qt(e) {
|
|
783
|
+
return e.type === S.number;
|
|
784
|
+
}
|
|
785
|
+
function Kt(e) {
|
|
786
|
+
return e.type === S.date;
|
|
743
787
|
}
|
|
744
788
|
function er(e) {
|
|
745
|
-
return e.type ===
|
|
789
|
+
return e.type === S.time;
|
|
746
790
|
}
|
|
747
791
|
function tr(e) {
|
|
748
|
-
return e.type ===
|
|
792
|
+
return e.type === S.select;
|
|
749
793
|
}
|
|
750
794
|
function rr(e) {
|
|
751
|
-
return e.type ===
|
|
795
|
+
return e.type === S.plural;
|
|
796
|
+
}
|
|
797
|
+
function Ui(e) {
|
|
798
|
+
return e.type === S.pound;
|
|
752
799
|
}
|
|
753
800
|
function ir(e) {
|
|
754
|
-
return e.type ===
|
|
801
|
+
return e.type === S.tag;
|
|
755
802
|
}
|
|
756
803
|
function nr(e) {
|
|
757
|
-
return e.type ===
|
|
758
|
-
}
|
|
759
|
-
function Fi(e) {
|
|
760
|
-
return e.type === L.pound;
|
|
761
|
-
}
|
|
762
|
-
function or(e) {
|
|
763
|
-
return e.type === L.tag;
|
|
764
|
-
}
|
|
765
|
-
function sr(e) {
|
|
766
|
-
return !!(e && typeof e == "object" && e.type === K.number);
|
|
804
|
+
return !!(e && typeof e == "object" && e.type === ee.number);
|
|
767
805
|
}
|
|
768
806
|
function Ke(e) {
|
|
769
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
807
|
+
return !!(e && typeof e == "object" && e.type === ee.dateTime);
|
|
770
808
|
}
|
|
771
|
-
var
|
|
772
|
-
function
|
|
809
|
+
var or = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Gi = /(?:[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;
|
|
810
|
+
function Fi(e) {
|
|
773
811
|
var t = {};
|
|
774
|
-
return e.replace(
|
|
812
|
+
return e.replace(Gi, function(r) {
|
|
775
813
|
var i = r.length;
|
|
776
814
|
switch (r[0]) {
|
|
777
815
|
case "G":
|
|
@@ -860,46 +898,36 @@ function ki(e) {
|
|
|
860
898
|
return "";
|
|
861
899
|
}), t;
|
|
862
900
|
}
|
|
863
|
-
var
|
|
864
|
-
|
|
865
|
-
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
866
|
-
r = arguments[i];
|
|
867
|
-
for (var o in r)
|
|
868
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
869
|
-
}
|
|
870
|
-
return t;
|
|
871
|
-
}, w.apply(this, arguments);
|
|
872
|
-
};
|
|
873
|
-
var Vi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
874
|
-
function Wi(e) {
|
|
901
|
+
var ji = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
902
|
+
function ki(e) {
|
|
875
903
|
if (e.length === 0)
|
|
876
904
|
throw new Error("Number skeleton cannot be empty");
|
|
877
|
-
for (var t = e.split(
|
|
905
|
+
for (var t = e.split(ji).filter(function(f) {
|
|
878
906
|
return f.length > 0;
|
|
879
907
|
}), r = [], i = 0, n = t; i < n.length; i++) {
|
|
880
|
-
var o = n[i],
|
|
881
|
-
if (
|
|
908
|
+
var o = n[i], a = o.split("/");
|
|
909
|
+
if (a.length === 0)
|
|
882
910
|
throw new Error("Invalid number skeleton");
|
|
883
|
-
for (var
|
|
911
|
+
for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
884
912
|
var c = h[u];
|
|
885
913
|
if (c.length === 0)
|
|
886
914
|
throw new Error("Invalid number skeleton");
|
|
887
915
|
}
|
|
888
|
-
r.push({ stem:
|
|
916
|
+
r.push({ stem: s, options: l });
|
|
889
917
|
}
|
|
890
918
|
return r;
|
|
891
919
|
}
|
|
892
|
-
function
|
|
920
|
+
function Vi(e) {
|
|
893
921
|
return e.replace(/^(.*?)-/, "");
|
|
894
922
|
}
|
|
895
|
-
var
|
|
896
|
-
function
|
|
923
|
+
var Lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, sr = /^(@+)?(\+|#+)?[rs]?$/g, Wi = /(\*)(0+)|(#+)(0+)|(0+)/g, ar = /^(0+)$/;
|
|
924
|
+
function St(e) {
|
|
897
925
|
var t = {};
|
|
898
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
926
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(sr, function(r, i, n) {
|
|
899
927
|
return typeof n != "string" ? (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length) : n === "+" ? t.minimumSignificantDigits = i.length : i[0] === "#" ? t.maximumSignificantDigits = i.length : (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length + (typeof n == "string" ? n.length : 0)), "";
|
|
900
928
|
}), t;
|
|
901
929
|
}
|
|
902
|
-
function
|
|
930
|
+
function ur(e) {
|
|
903
931
|
switch (e) {
|
|
904
932
|
case "sign-auto":
|
|
905
933
|
return {
|
|
@@ -939,7 +967,7 @@ function hr(e) {
|
|
|
939
967
|
};
|
|
940
968
|
}
|
|
941
969
|
}
|
|
942
|
-
function
|
|
970
|
+
function Xi(e) {
|
|
943
971
|
var t;
|
|
944
972
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
945
973
|
notation: "engineering"
|
|
@@ -947,17 +975,17 @@ function Zi(e) {
|
|
|
947
975
|
notation: "scientific"
|
|
948
976
|
}, e = e.slice(1)), t) {
|
|
949
977
|
var r = e.slice(0, 2);
|
|
950
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
978
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ar.test(e))
|
|
951
979
|
throw new Error("Malformed concise eng/scientific notation");
|
|
952
980
|
t.minimumIntegerDigits = e.length;
|
|
953
981
|
}
|
|
954
982
|
return t;
|
|
955
983
|
}
|
|
956
|
-
function
|
|
957
|
-
var t = {}, r =
|
|
984
|
+
function wt(e) {
|
|
985
|
+
var t = {}, r = ur(e);
|
|
958
986
|
return r || t;
|
|
959
987
|
}
|
|
960
|
-
function
|
|
988
|
+
function zi(e) {
|
|
961
989
|
for (var t = {}, r = 0, i = e; r < i.length; r++) {
|
|
962
990
|
var n = i[r];
|
|
963
991
|
switch (n.stem) {
|
|
@@ -981,7 +1009,7 @@ function Qi(e) {
|
|
|
981
1009
|
continue;
|
|
982
1010
|
case "measure-unit":
|
|
983
1011
|
case "unit":
|
|
984
|
-
t.style = "unit", t.unit =
|
|
1012
|
+
t.style = "unit", t.unit = Vi(n.options[0]);
|
|
985
1013
|
continue;
|
|
986
1014
|
case "compact-short":
|
|
987
1015
|
case "K":
|
|
@@ -992,13 +1020,13 @@ function Qi(e) {
|
|
|
992
1020
|
t.notation = "compact", t.compactDisplay = "long";
|
|
993
1021
|
continue;
|
|
994
1022
|
case "scientific":
|
|
995
|
-
t =
|
|
996
|
-
return
|
|
1023
|
+
t = _(_(_({}, t), { notation: "scientific" }), n.options.reduce(function(l, u) {
|
|
1024
|
+
return _(_({}, l), wt(u));
|
|
997
1025
|
}, {}));
|
|
998
1026
|
continue;
|
|
999
1027
|
case "engineering":
|
|
1000
|
-
t =
|
|
1001
|
-
return
|
|
1028
|
+
t = _(_(_({}, t), { notation: "engineering" }), n.options.reduce(function(l, u) {
|
|
1029
|
+
return _(_({}, l), wt(u));
|
|
1002
1030
|
}, {}));
|
|
1003
1031
|
continue;
|
|
1004
1032
|
case "notation-simple":
|
|
@@ -1043,7 +1071,7 @@ function Qi(e) {
|
|
|
1043
1071
|
case "integer-width":
|
|
1044
1072
|
if (n.options.length > 1)
|
|
1045
1073
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1046
|
-
n.options[0].replace(
|
|
1074
|
+
n.options[0].replace(Wi, function(l, u, h, c, f, p) {
|
|
1047
1075
|
if (u)
|
|
1048
1076
|
t.minimumIntegerDigits = h.length;
|
|
1049
1077
|
else {
|
|
@@ -1056,28 +1084,28 @@ function Qi(e) {
|
|
|
1056
1084
|
});
|
|
1057
1085
|
continue;
|
|
1058
1086
|
}
|
|
1059
|
-
if (
|
|
1087
|
+
if (ar.test(n.stem)) {
|
|
1060
1088
|
t.minimumIntegerDigits = n.stem.length;
|
|
1061
1089
|
continue;
|
|
1062
1090
|
}
|
|
1063
|
-
if (
|
|
1091
|
+
if (Lt.test(n.stem)) {
|
|
1064
1092
|
if (n.options.length > 1)
|
|
1065
1093
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1066
|
-
n.stem.replace(
|
|
1094
|
+
n.stem.replace(Lt, function(l, u, h, c, f, p) {
|
|
1067
1095
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1068
1096
|
});
|
|
1069
1097
|
var o = n.options[0];
|
|
1070
|
-
o === "w" ? t =
|
|
1098
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), St(o)));
|
|
1071
1099
|
continue;
|
|
1072
1100
|
}
|
|
1073
|
-
if (
|
|
1074
|
-
t =
|
|
1101
|
+
if (sr.test(n.stem)) {
|
|
1102
|
+
t = _(_({}, t), St(n.stem));
|
|
1075
1103
|
continue;
|
|
1076
1104
|
}
|
|
1077
|
-
var
|
|
1078
|
-
|
|
1079
|
-
var
|
|
1080
|
-
|
|
1105
|
+
var a = ur(n.stem);
|
|
1106
|
+
a && (t = _(_({}, t), a));
|
|
1107
|
+
var s = Xi(n.stem);
|
|
1108
|
+
s && (t = _(_({}, t), s));
|
|
1081
1109
|
}
|
|
1082
1110
|
return t;
|
|
1083
1111
|
}
|
|
@@ -2496,23 +2524,23 @@ var ve = {
|
|
|
2496
2524
|
"h"
|
|
2497
2525
|
]
|
|
2498
2526
|
};
|
|
2499
|
-
function
|
|
2527
|
+
function Zi(e, t) {
|
|
2500
2528
|
for (var r = "", i = 0; i < e.length; i++) {
|
|
2501
2529
|
var n = e.charAt(i);
|
|
2502
2530
|
if (n === "j") {
|
|
2503
2531
|
for (var o = 0; i + 1 < e.length && e.charAt(i + 1) === n; )
|
|
2504
2532
|
o++, i++;
|
|
2505
|
-
var
|
|
2506
|
-
for ((u == "H" || u == "k") && (
|
|
2533
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Qi(t);
|
|
2534
|
+
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2507
2535
|
r += l;
|
|
2508
|
-
for (;
|
|
2536
|
+
for (; a-- > 0; )
|
|
2509
2537
|
r = u + r;
|
|
2510
2538
|
} else
|
|
2511
2539
|
n === "J" ? r += "H" : r += n;
|
|
2512
2540
|
}
|
|
2513
2541
|
return r;
|
|
2514
2542
|
}
|
|
2515
|
-
function
|
|
2543
|
+
function Qi(e) {
|
|
2516
2544
|
var t = e.hourCycle;
|
|
2517
2545
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2518
2546
|
e.hourCycles && // @ts-ignore
|
|
@@ -2534,20 +2562,20 @@ function Ji(e) {
|
|
|
2534
2562
|
var n = ve[i || ""] || ve[r || ""] || ve["".concat(r, "-001")] || ve["001"];
|
|
2535
2563
|
return n[0];
|
|
2536
2564
|
}
|
|
2537
|
-
var
|
|
2565
|
+
var Fe, Yi = new RegExp("^".concat(or.source, "*")), Ji = new RegExp("".concat(or.source, "*$"));
|
|
2538
2566
|
function E(e, t) {
|
|
2539
2567
|
return { start: e, end: t };
|
|
2540
2568
|
}
|
|
2541
|
-
var
|
|
2569
|
+
var qi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ki = !!String.fromCodePoint, en = !!Object.fromEntries, tn = !!String.prototype.codePointAt, rn = !!String.prototype.trimStart, nn = !!String.prototype.trimEnd, on = !!Number.isSafeInteger, sn = on ? Number.isSafeInteger : function(e) {
|
|
2542
2570
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2543
2571
|
}, et = !0;
|
|
2544
2572
|
try {
|
|
2545
|
-
var
|
|
2546
|
-
et = ((
|
|
2573
|
+
var an = hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2574
|
+
et = ((Fe = an.exec("a")) === null || Fe === void 0 ? void 0 : Fe[0]) === "a";
|
|
2547
2575
|
} catch (e) {
|
|
2548
2576
|
et = !1;
|
|
2549
2577
|
}
|
|
2550
|
-
var
|
|
2578
|
+
var At = qi ? (
|
|
2551
2579
|
// Native
|
|
2552
2580
|
function(t, r, i) {
|
|
2553
2581
|
return t.startsWith(r, i);
|
|
@@ -2557,31 +2585,31 @@ var Ht = en ? (
|
|
|
2557
2585
|
function(t, r, i) {
|
|
2558
2586
|
return t.slice(i, i + r.length) === r;
|
|
2559
2587
|
}
|
|
2560
|
-
), tt =
|
|
2588
|
+
), tt = Ki ? String.fromCodePoint : (
|
|
2561
2589
|
// IE11
|
|
2562
2590
|
function() {
|
|
2563
2591
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2564
2592
|
t[r] = arguments[r];
|
|
2565
|
-
for (var i = "", n = t.length, o = 0,
|
|
2566
|
-
if (
|
|
2567
|
-
throw RangeError(
|
|
2568
|
-
i +=
|
|
2593
|
+
for (var i = "", n = t.length, o = 0, a; n > o; ) {
|
|
2594
|
+
if (a = t[o++], a > 1114111)
|
|
2595
|
+
throw RangeError(a + " is not a valid code point");
|
|
2596
|
+
i += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
2569
2597
|
}
|
|
2570
2598
|
return i;
|
|
2571
2599
|
}
|
|
2572
|
-
),
|
|
2600
|
+
), Ht = (
|
|
2573
2601
|
// native
|
|
2574
|
-
|
|
2602
|
+
en ? Object.fromEntries : (
|
|
2575
2603
|
// Ponyfill
|
|
2576
2604
|
function(t) {
|
|
2577
2605
|
for (var r = {}, i = 0, n = t; i < n.length; i++) {
|
|
2578
|
-
var o = n[i],
|
|
2579
|
-
r[
|
|
2606
|
+
var o = n[i], a = o[0], s = o[1];
|
|
2607
|
+
r[a] = s;
|
|
2580
2608
|
}
|
|
2581
2609
|
return r;
|
|
2582
2610
|
}
|
|
2583
2611
|
)
|
|
2584
|
-
),
|
|
2612
|
+
), lr = tn ? (
|
|
2585
2613
|
// Native
|
|
2586
2614
|
function(t, r) {
|
|
2587
2615
|
return t.codePointAt(r);
|
|
@@ -2595,7 +2623,7 @@ var Ht = en ? (
|
|
|
2595
2623
|
return n < 55296 || n > 56319 || r + 1 === i || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? n : (n - 55296 << 10) + (o - 56320) + 65536;
|
|
2596
2624
|
}
|
|
2597
2625
|
}
|
|
2598
|
-
),
|
|
2626
|
+
), un = rn ? (
|
|
2599
2627
|
// Native
|
|
2600
2628
|
function(t) {
|
|
2601
2629
|
return t.trimStart();
|
|
@@ -2603,9 +2631,9 @@ var Ht = en ? (
|
|
|
2603
2631
|
) : (
|
|
2604
2632
|
// Ponyfill
|
|
2605
2633
|
function(t) {
|
|
2606
|
-
return t.replace(
|
|
2634
|
+
return t.replace(Yi, "");
|
|
2607
2635
|
}
|
|
2608
|
-
),
|
|
2636
|
+
), ln = nn ? (
|
|
2609
2637
|
// Native
|
|
2610
2638
|
function(t) {
|
|
2611
2639
|
return t.trimEnd();
|
|
@@ -2613,32 +2641,32 @@ var Ht = en ? (
|
|
|
2613
2641
|
) : (
|
|
2614
2642
|
// Ponyfill
|
|
2615
2643
|
function(t) {
|
|
2616
|
-
return t.replace(
|
|
2644
|
+
return t.replace(Ji, "");
|
|
2617
2645
|
}
|
|
2618
2646
|
);
|
|
2619
|
-
function
|
|
2647
|
+
function hr(e, t) {
|
|
2620
2648
|
return new RegExp(e, t);
|
|
2621
2649
|
}
|
|
2622
2650
|
var rt;
|
|
2623
2651
|
if (et) {
|
|
2624
|
-
var
|
|
2652
|
+
var Pt = hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2625
2653
|
rt = function(t, r) {
|
|
2626
2654
|
var i;
|
|
2627
|
-
|
|
2628
|
-
var n =
|
|
2655
|
+
Pt.lastIndex = r;
|
|
2656
|
+
var n = Pt.exec(t);
|
|
2629
2657
|
return (i = n[1]) !== null && i !== void 0 ? i : "";
|
|
2630
2658
|
};
|
|
2631
2659
|
} else
|
|
2632
2660
|
rt = function(t, r) {
|
|
2633
2661
|
for (var i = []; ; ) {
|
|
2634
|
-
var n =
|
|
2635
|
-
if (n === void 0 ||
|
|
2662
|
+
var n = lr(t, r);
|
|
2663
|
+
if (n === void 0 || cr(n) || mn(n))
|
|
2636
2664
|
break;
|
|
2637
2665
|
i.push(n), r += n >= 65536 ? 2 : 1;
|
|
2638
2666
|
}
|
|
2639
2667
|
return tt.apply(void 0, i);
|
|
2640
2668
|
};
|
|
2641
|
-
var
|
|
2669
|
+
var hn = (
|
|
2642
2670
|
/** @class */
|
|
2643
2671
|
function() {
|
|
2644
2672
|
function e(t, r) {
|
|
@@ -2652,33 +2680,33 @@ var fn = (
|
|
|
2652
2680
|
for (var n = []; !this.isEOF(); ) {
|
|
2653
2681
|
var o = this.char();
|
|
2654
2682
|
if (o === 123) {
|
|
2655
|
-
var
|
|
2656
|
-
if (
|
|
2657
|
-
return
|
|
2658
|
-
n.push(
|
|
2683
|
+
var a = this.parseArgument(t, i);
|
|
2684
|
+
if (a.err)
|
|
2685
|
+
return a;
|
|
2686
|
+
n.push(a.val);
|
|
2659
2687
|
} else {
|
|
2660
2688
|
if (o === 125 && t > 0)
|
|
2661
2689
|
break;
|
|
2662
2690
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2663
|
-
var
|
|
2691
|
+
var s = this.clonePosition();
|
|
2664
2692
|
this.bump(), n.push({
|
|
2665
|
-
type:
|
|
2666
|
-
location: E(
|
|
2693
|
+
type: S.pound,
|
|
2694
|
+
location: E(s, this.clonePosition())
|
|
2667
2695
|
});
|
|
2668
2696
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2669
2697
|
if (i)
|
|
2670
2698
|
break;
|
|
2671
|
-
return this.error(
|
|
2699
|
+
return this.error(g.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
2672
2700
|
} else if (o === 60 && !this.ignoreTag && it(this.peek() || 0)) {
|
|
2673
|
-
var
|
|
2674
|
-
if (
|
|
2675
|
-
return
|
|
2676
|
-
n.push(
|
|
2701
|
+
var a = this.parseTag(t, r);
|
|
2702
|
+
if (a.err)
|
|
2703
|
+
return a;
|
|
2704
|
+
n.push(a.val);
|
|
2677
2705
|
} else {
|
|
2678
|
-
var
|
|
2679
|
-
if (
|
|
2680
|
-
return
|
|
2681
|
-
n.push(
|
|
2706
|
+
var a = this.parseLiteral(t, r);
|
|
2707
|
+
if (a.err)
|
|
2708
|
+
return a;
|
|
2709
|
+
n.push(a.val);
|
|
2682
2710
|
}
|
|
2683
2711
|
}
|
|
2684
2712
|
}
|
|
@@ -2690,7 +2718,7 @@ var fn = (
|
|
|
2690
2718
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2691
2719
|
return {
|
|
2692
2720
|
val: {
|
|
2693
|
-
type:
|
|
2721
|
+
type: S.literal,
|
|
2694
2722
|
value: "<".concat(n, "/>"),
|
|
2695
2723
|
location: E(i, this.clonePosition())
|
|
2696
2724
|
},
|
|
@@ -2700,27 +2728,27 @@ var fn = (
|
|
|
2700
2728
|
var o = this.parseMessage(t + 1, r, !0);
|
|
2701
2729
|
if (o.err)
|
|
2702
2730
|
return o;
|
|
2703
|
-
var
|
|
2731
|
+
var a = o.val, s = this.clonePosition();
|
|
2704
2732
|
if (this.bumpIf("</")) {
|
|
2705
2733
|
if (this.isEOF() || !it(this.char()))
|
|
2706
|
-
return this.error(
|
|
2734
|
+
return this.error(g.INVALID_TAG, E(s, this.clonePosition()));
|
|
2707
2735
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2708
|
-
return n !== u ? this.error(
|
|
2736
|
+
return n !== u ? this.error(g.UNMATCHED_CLOSING_TAG, E(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2709
2737
|
val: {
|
|
2710
|
-
type:
|
|
2738
|
+
type: S.tag,
|
|
2711
2739
|
value: n,
|
|
2712
|
-
children:
|
|
2740
|
+
children: a,
|
|
2713
2741
|
location: E(i, this.clonePosition())
|
|
2714
2742
|
},
|
|
2715
2743
|
err: null
|
|
2716
|
-
} : this.error(
|
|
2744
|
+
} : this.error(g.INVALID_TAG, E(s, this.clonePosition())));
|
|
2717
2745
|
} else
|
|
2718
|
-
return this.error(
|
|
2746
|
+
return this.error(g.UNCLOSED_TAG, E(i, this.clonePosition()));
|
|
2719
2747
|
} else
|
|
2720
|
-
return this.error(
|
|
2748
|
+
return this.error(g.INVALID_TAG, E(i, this.clonePosition()));
|
|
2721
2749
|
}, e.prototype.parseTagName = function() {
|
|
2722
2750
|
var t = this.offset();
|
|
2723
|
-
for (this.bump(); !this.isEOF() &&
|
|
2751
|
+
for (this.bump(); !this.isEOF() && fn(this.char()); )
|
|
2724
2752
|
this.bump();
|
|
2725
2753
|
return this.message.slice(t, this.offset());
|
|
2726
2754
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2730,26 +2758,26 @@ var fn = (
|
|
|
2730
2758
|
n += o;
|
|
2731
2759
|
continue;
|
|
2732
2760
|
}
|
|
2733
|
-
var
|
|
2734
|
-
if (s) {
|
|
2735
|
-
n += s;
|
|
2736
|
-
continue;
|
|
2737
|
-
}
|
|
2738
|
-
var a = this.tryParseLeftAngleBracket();
|
|
2761
|
+
var a = this.tryParseUnquoted(t, r);
|
|
2739
2762
|
if (a) {
|
|
2740
2763
|
n += a;
|
|
2741
2764
|
continue;
|
|
2742
2765
|
}
|
|
2766
|
+
var s = this.tryParseLeftAngleBracket();
|
|
2767
|
+
if (s) {
|
|
2768
|
+
n += s;
|
|
2769
|
+
continue;
|
|
2770
|
+
}
|
|
2743
2771
|
break;
|
|
2744
2772
|
}
|
|
2745
2773
|
var l = E(i, this.clonePosition());
|
|
2746
2774
|
return {
|
|
2747
|
-
val: { type:
|
|
2775
|
+
val: { type: S.literal, value: n, location: l },
|
|
2748
2776
|
err: null
|
|
2749
2777
|
};
|
|
2750
2778
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2751
2779
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2752
|
-
!
|
|
2780
|
+
!cn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2753
2781
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2754
2782
|
if (this.isEOF() || this.char() !== 39)
|
|
2755
2783
|
return null;
|
|
@@ -2792,19 +2820,19 @@ var fn = (
|
|
|
2792
2820
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2793
2821
|
var i = this.clonePosition();
|
|
2794
2822
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2795
|
-
return this.error(
|
|
2823
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, E(i, this.clonePosition()));
|
|
2796
2824
|
if (this.char() === 125)
|
|
2797
|
-
return this.bump(), this.error(
|
|
2825
|
+
return this.bump(), this.error(g.EMPTY_ARGUMENT, E(i, this.clonePosition()));
|
|
2798
2826
|
var n = this.parseIdentifierIfPossible().value;
|
|
2799
2827
|
if (!n)
|
|
2800
|
-
return this.error(
|
|
2828
|
+
return this.error(g.MALFORMED_ARGUMENT, E(i, this.clonePosition()));
|
|
2801
2829
|
if (this.bumpSpace(), this.isEOF())
|
|
2802
|
-
return this.error(
|
|
2830
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, E(i, this.clonePosition()));
|
|
2803
2831
|
switch (this.char()) {
|
|
2804
2832
|
case 125:
|
|
2805
2833
|
return this.bump(), {
|
|
2806
2834
|
val: {
|
|
2807
|
-
type:
|
|
2835
|
+
type: S.argument,
|
|
2808
2836
|
// value does not include the opening and closing braces.
|
|
2809
2837
|
value: n,
|
|
2810
2838
|
location: E(i, this.clonePosition())
|
|
@@ -2812,20 +2840,20 @@ var fn = (
|
|
|
2812
2840
|
err: null
|
|
2813
2841
|
};
|
|
2814
2842
|
case 44:
|
|
2815
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2843
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, E(i, this.clonePosition())) : this.parseArgumentOptions(t, r, n, i);
|
|
2816
2844
|
default:
|
|
2817
|
-
return this.error(
|
|
2845
|
+
return this.error(g.MALFORMED_ARGUMENT, E(i, this.clonePosition()));
|
|
2818
2846
|
}
|
|
2819
2847
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2820
2848
|
var t = this.clonePosition(), r = this.offset(), i = rt(this.message, r), n = r + i.length;
|
|
2821
2849
|
this.bumpTo(n);
|
|
2822
|
-
var o = this.clonePosition(),
|
|
2823
|
-
return { value: i, location:
|
|
2850
|
+
var o = this.clonePosition(), a = E(t, o);
|
|
2851
|
+
return { value: i, location: a };
|
|
2824
2852
|
}, e.prototype.parseArgumentOptions = function(t, r, i, n) {
|
|
2825
|
-
var o,
|
|
2826
|
-
switch (
|
|
2853
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2854
|
+
switch (s) {
|
|
2827
2855
|
case "":
|
|
2828
|
-
return this.error(
|
|
2856
|
+
return this.error(g.EXPECT_ARGUMENT_TYPE, E(a, l));
|
|
2829
2857
|
case "number":
|
|
2830
2858
|
case "date":
|
|
2831
2859
|
case "time": {
|
|
@@ -2836,9 +2864,9 @@ var fn = (
|
|
|
2836
2864
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2837
2865
|
if (c.err)
|
|
2838
2866
|
return c;
|
|
2839
|
-
var f =
|
|
2867
|
+
var f = ln(c.val);
|
|
2840
2868
|
if (f.length === 0)
|
|
2841
|
-
return this.error(
|
|
2869
|
+
return this.error(g.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
2842
2870
|
var p = E(h, this.clonePosition());
|
|
2843
2871
|
u = { style: f, styleLocation: p };
|
|
2844
2872
|
}
|
|
@@ -2846,34 +2874,34 @@ var fn = (
|
|
|
2846
2874
|
if (y.err)
|
|
2847
2875
|
return y;
|
|
2848
2876
|
var d = E(n, this.clonePosition());
|
|
2849
|
-
if (u &&
|
|
2850
|
-
var v =
|
|
2851
|
-
if (
|
|
2877
|
+
if (u && At(u == null ? void 0 : u.style, "::", 0)) {
|
|
2878
|
+
var v = un(u.style.slice(2));
|
|
2879
|
+
if (s === "number") {
|
|
2852
2880
|
var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
2853
2881
|
return c.err ? c : {
|
|
2854
|
-
val: { type:
|
|
2882
|
+
val: { type: S.number, value: i, location: d, style: c.val },
|
|
2855
2883
|
err: null
|
|
2856
2884
|
};
|
|
2857
2885
|
} else {
|
|
2858
2886
|
if (v.length === 0)
|
|
2859
|
-
return this.error(
|
|
2860
|
-
var
|
|
2861
|
-
this.locale && (
|
|
2887
|
+
return this.error(g.EXPECT_DATE_TIME_SKELETON, d);
|
|
2888
|
+
var P = v;
|
|
2889
|
+
this.locale && (P = Zi(v, this.locale));
|
|
2862
2890
|
var f = {
|
|
2863
|
-
type:
|
|
2864
|
-
pattern:
|
|
2891
|
+
type: ee.dateTime,
|
|
2892
|
+
pattern: P,
|
|
2865
2893
|
location: u.styleLocation,
|
|
2866
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2867
|
-
},
|
|
2894
|
+
parsedOptions: this.shouldParseSkeletons ? Fi(P) : {}
|
|
2895
|
+
}, b = s === "date" ? S.date : S.time;
|
|
2868
2896
|
return {
|
|
2869
|
-
val: { type:
|
|
2897
|
+
val: { type: b, value: i, location: d, style: f },
|
|
2870
2898
|
err: null
|
|
2871
2899
|
};
|
|
2872
2900
|
}
|
|
2873
2901
|
}
|
|
2874
2902
|
return {
|
|
2875
2903
|
val: {
|
|
2876
|
-
type:
|
|
2904
|
+
type: s === "number" ? S.number : s === "date" ? S.date : S.time,
|
|
2877
2905
|
value: i,
|
|
2878
2906
|
location: d,
|
|
2879
2907
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
@@ -2884,52 +2912,52 @@ var fn = (
|
|
|
2884
2912
|
case "plural":
|
|
2885
2913
|
case "selectordinal":
|
|
2886
2914
|
case "select": {
|
|
2887
|
-
var
|
|
2915
|
+
var w = this.clonePosition();
|
|
2888
2916
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2889
|
-
return this.error(
|
|
2917
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, E(w, _({}, w)));
|
|
2890
2918
|
this.bumpSpace();
|
|
2891
|
-
var
|
|
2892
|
-
if (
|
|
2919
|
+
var M = this.parseIdentifierIfPossible(), R = 0;
|
|
2920
|
+
if (s !== "select" && M.value === "offset") {
|
|
2893
2921
|
if (!this.bumpIf(":"))
|
|
2894
|
-
return this.error(
|
|
2922
|
+
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
|
|
2895
2923
|
this.bumpSpace();
|
|
2896
|
-
var c = this.tryParseDecimalInteger(
|
|
2924
|
+
var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2897
2925
|
if (c.err)
|
|
2898
2926
|
return c;
|
|
2899
|
-
this.bumpSpace(),
|
|
2927
|
+
this.bumpSpace(), M = this.parseIdentifierIfPossible(), R = c.val;
|
|
2900
2928
|
}
|
|
2901
|
-
var
|
|
2902
|
-
if (
|
|
2903
|
-
return
|
|
2929
|
+
var D = this.tryParsePluralOrSelectOptions(t, s, r, M);
|
|
2930
|
+
if (D.err)
|
|
2931
|
+
return D;
|
|
2904
2932
|
var y = this.tryParseArgumentClose(n);
|
|
2905
2933
|
if (y.err)
|
|
2906
2934
|
return y;
|
|
2907
2935
|
var W = E(n, this.clonePosition());
|
|
2908
|
-
return
|
|
2936
|
+
return s === "select" ? {
|
|
2909
2937
|
val: {
|
|
2910
|
-
type:
|
|
2938
|
+
type: S.select,
|
|
2911
2939
|
value: i,
|
|
2912
|
-
options:
|
|
2940
|
+
options: Ht(D.val),
|
|
2913
2941
|
location: W
|
|
2914
2942
|
},
|
|
2915
2943
|
err: null
|
|
2916
2944
|
} : {
|
|
2917
2945
|
val: {
|
|
2918
|
-
type:
|
|
2946
|
+
type: S.plural,
|
|
2919
2947
|
value: i,
|
|
2920
|
-
options:
|
|
2948
|
+
options: Ht(D.val),
|
|
2921
2949
|
offset: R,
|
|
2922
|
-
pluralType:
|
|
2950
|
+
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2923
2951
|
location: W
|
|
2924
2952
|
},
|
|
2925
2953
|
err: null
|
|
2926
2954
|
};
|
|
2927
2955
|
}
|
|
2928
2956
|
default:
|
|
2929
|
-
return this.error(
|
|
2957
|
+
return this.error(g.INVALID_ARGUMENT_TYPE, E(a, l));
|
|
2930
2958
|
}
|
|
2931
2959
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2932
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2960
|
+
return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, E(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2933
2961
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2934
2962
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2935
2963
|
var i = this.char();
|
|
@@ -2938,7 +2966,7 @@ var fn = (
|
|
|
2938
2966
|
this.bump();
|
|
2939
2967
|
var n = this.clonePosition();
|
|
2940
2968
|
if (!this.bumpUntil("'"))
|
|
2941
|
-
return this.error(
|
|
2969
|
+
return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, E(n, this.clonePosition()));
|
|
2942
2970
|
this.bump();
|
|
2943
2971
|
break;
|
|
2944
2972
|
}
|
|
@@ -2968,25 +2996,25 @@ var fn = (
|
|
|
2968
2996
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2969
2997
|
var i = [];
|
|
2970
2998
|
try {
|
|
2971
|
-
i =
|
|
2999
|
+
i = ki(t);
|
|
2972
3000
|
} catch (n) {
|
|
2973
|
-
return this.error(
|
|
3001
|
+
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
2974
3002
|
}
|
|
2975
3003
|
return {
|
|
2976
3004
|
val: {
|
|
2977
|
-
type:
|
|
3005
|
+
type: ee.number,
|
|
2978
3006
|
tokens: i,
|
|
2979
3007
|
location: r,
|
|
2980
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3008
|
+
parsedOptions: this.shouldParseSkeletons ? zi(i) : {}
|
|
2981
3009
|
},
|
|
2982
3010
|
err: null
|
|
2983
3011
|
};
|
|
2984
3012
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, i, n) {
|
|
2985
|
-
for (var o,
|
|
3013
|
+
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = n.value, h = n.location; ; ) {
|
|
2986
3014
|
if (u.length === 0) {
|
|
2987
3015
|
var c = this.clonePosition();
|
|
2988
3016
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2989
|
-
var f = this.tryParseDecimalInteger(
|
|
3017
|
+
var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2990
3018
|
if (f.err)
|
|
2991
3019
|
return f;
|
|
2992
3020
|
h = E(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
@@ -2994,18 +3022,18 @@ var fn = (
|
|
|
2994
3022
|
break;
|
|
2995
3023
|
}
|
|
2996
3024
|
if (l.has(u))
|
|
2997
|
-
return this.error(r === "select" ?
|
|
2998
|
-
u === "other" && (
|
|
3025
|
+
return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3026
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
2999
3027
|
var p = this.clonePosition();
|
|
3000
3028
|
if (!this.bumpIf("{"))
|
|
3001
|
-
return this.error(r === "select" ?
|
|
3029
|
+
return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
|
|
3002
3030
|
var y = this.parseMessage(t + 1, r, i);
|
|
3003
3031
|
if (y.err)
|
|
3004
3032
|
return y;
|
|
3005
3033
|
var d = this.tryParseArgumentClose(p);
|
|
3006
3034
|
if (d.err)
|
|
3007
3035
|
return d;
|
|
3008
|
-
|
|
3036
|
+
s.push([
|
|
3009
3037
|
u,
|
|
3010
3038
|
{
|
|
3011
3039
|
value: y.val,
|
|
@@ -3013,19 +3041,19 @@ var fn = (
|
|
|
3013
3041
|
}
|
|
3014
3042
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3015
3043
|
}
|
|
3016
|
-
return
|
|
3044
|
+
return s.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(g.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3017
3045
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3018
3046
|
var i = 1, n = this.clonePosition();
|
|
3019
3047
|
this.bumpIf("+") || this.bumpIf("-") && (i = -1);
|
|
3020
|
-
for (var o = !1,
|
|
3021
|
-
var
|
|
3022
|
-
if (
|
|
3023
|
-
o = !0,
|
|
3048
|
+
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3049
|
+
var s = this.char();
|
|
3050
|
+
if (s >= 48 && s <= 57)
|
|
3051
|
+
o = !0, a = a * 10 + (s - 48), this.bump();
|
|
3024
3052
|
else
|
|
3025
3053
|
break;
|
|
3026
3054
|
}
|
|
3027
3055
|
var l = E(n, this.clonePosition());
|
|
3028
|
-
return o ? (
|
|
3056
|
+
return o ? (a *= i, sn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3029
3057
|
}, e.prototype.offset = function() {
|
|
3030
3058
|
return this.position.offset;
|
|
3031
3059
|
}, e.prototype.isEOF = function() {
|
|
@@ -3040,7 +3068,7 @@ var fn = (
|
|
|
3040
3068
|
var t = this.position.offset;
|
|
3041
3069
|
if (t >= this.message.length)
|
|
3042
3070
|
throw Error("out of bound");
|
|
3043
|
-
var r =
|
|
3071
|
+
var r = lr(this.message, t);
|
|
3044
3072
|
if (r === void 0)
|
|
3045
3073
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3046
3074
|
return r;
|
|
@@ -3059,7 +3087,7 @@ var fn = (
|
|
|
3059
3087
|
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);
|
|
3060
3088
|
}
|
|
3061
3089
|
}, e.prototype.bumpIf = function(t) {
|
|
3062
|
-
if (
|
|
3090
|
+
if (At(this.message, t, this.offset())) {
|
|
3063
3091
|
for (var r = 0; r < t.length; r++)
|
|
3064
3092
|
this.bump();
|
|
3065
3093
|
return !0;
|
|
@@ -3081,7 +3109,7 @@ var fn = (
|
|
|
3081
3109
|
break;
|
|
3082
3110
|
}
|
|
3083
3111
|
}, e.prototype.bumpSpace = function() {
|
|
3084
|
-
for (; !this.isEOF() &&
|
|
3112
|
+
for (; !this.isEOF() && cr(this.char()); )
|
|
3085
3113
|
this.bump();
|
|
3086
3114
|
}, e.prototype.peek = function() {
|
|
3087
3115
|
if (this.isEOF())
|
|
@@ -3094,44 +3122,44 @@ var fn = (
|
|
|
3094
3122
|
function it(e) {
|
|
3095
3123
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3096
3124
|
}
|
|
3097
|
-
function
|
|
3125
|
+
function cn(e) {
|
|
3098
3126
|
return it(e) || e === 47;
|
|
3099
3127
|
}
|
|
3100
|
-
function
|
|
3128
|
+
function fn(e) {
|
|
3101
3129
|
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;
|
|
3102
3130
|
}
|
|
3103
|
-
function
|
|
3131
|
+
function cr(e) {
|
|
3104
3132
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3105
3133
|
}
|
|
3106
|
-
function
|
|
3134
|
+
function mn(e) {
|
|
3107
3135
|
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;
|
|
3108
3136
|
}
|
|
3109
3137
|
function nt(e) {
|
|
3110
3138
|
e.forEach(function(t) {
|
|
3111
|
-
if (delete t.location,
|
|
3139
|
+
if (delete t.location, tr(t) || rr(t))
|
|
3112
3140
|
for (var r in t.options)
|
|
3113
3141
|
delete t.options[r].location, nt(t.options[r].value);
|
|
3114
3142
|
else
|
|
3115
|
-
|
|
3143
|
+
qt(t) && nr(t.style) || (Kt(t) || er(t)) && Ke(t.style) ? delete t.style.location : ir(t) && nt(t.children);
|
|
3116
3144
|
});
|
|
3117
3145
|
}
|
|
3118
|
-
function
|
|
3119
|
-
t === void 0 && (t = {}), t =
|
|
3120
|
-
var r = new
|
|
3146
|
+
function pn(e, t) {
|
|
3147
|
+
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3148
|
+
var r = new hn(e, t).parse();
|
|
3121
3149
|
if (r.err) {
|
|
3122
|
-
var i = SyntaxError(
|
|
3150
|
+
var i = SyntaxError(g[r.err.kind]);
|
|
3123
3151
|
throw i.location = r.err.location, i.originalMessage = r.err.message, i;
|
|
3124
3152
|
}
|
|
3125
3153
|
return t != null && t.captureLocation || nt(r.val), r.val;
|
|
3126
3154
|
}
|
|
3127
|
-
var
|
|
3155
|
+
var te;
|
|
3128
3156
|
(function(e) {
|
|
3129
3157
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3130
|
-
})(
|
|
3131
|
-
var
|
|
3158
|
+
})(te || (te = {}));
|
|
3159
|
+
var Pe = (
|
|
3132
3160
|
/** @class */
|
|
3133
3161
|
function(e) {
|
|
3134
|
-
|
|
3162
|
+
F(t, e);
|
|
3135
3163
|
function t(r, i, n) {
|
|
3136
3164
|
var o = e.call(this, r) || this;
|
|
3137
3165
|
return o.code = i, o.originalMessage = n, o;
|
|
@@ -3140,155 +3168,155 @@ var Ie = (
|
|
|
3140
3168
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3141
3169
|
}, t;
|
|
3142
3170
|
}(Error)
|
|
3143
|
-
),
|
|
3171
|
+
), It = (
|
|
3144
3172
|
/** @class */
|
|
3145
3173
|
function(e) {
|
|
3146
|
-
|
|
3174
|
+
F(t, e);
|
|
3147
3175
|
function t(r, i, n, o) {
|
|
3148
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'),
|
|
3176
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'), te.INVALID_VALUE, o) || this;
|
|
3149
3177
|
}
|
|
3150
3178
|
return t;
|
|
3151
|
-
}(
|
|
3152
|
-
),
|
|
3179
|
+
}(Pe)
|
|
3180
|
+
), dn = (
|
|
3153
3181
|
/** @class */
|
|
3154
3182
|
function(e) {
|
|
3155
|
-
|
|
3183
|
+
F(t, e);
|
|
3156
3184
|
function t(r, i, n) {
|
|
3157
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i),
|
|
3185
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i), te.INVALID_VALUE, n) || this;
|
|
3158
3186
|
}
|
|
3159
3187
|
return t;
|
|
3160
|
-
}(
|
|
3161
|
-
),
|
|
3188
|
+
}(Pe)
|
|
3189
|
+
), yn = (
|
|
3162
3190
|
/** @class */
|
|
3163
3191
|
function(e) {
|
|
3164
|
-
|
|
3192
|
+
F(t, e);
|
|
3165
3193
|
function t(r, i) {
|
|
3166
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'),
|
|
3194
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'), te.MISSING_VALUE, i) || this;
|
|
3167
3195
|
}
|
|
3168
3196
|
return t;
|
|
3169
|
-
}(
|
|
3170
|
-
),
|
|
3197
|
+
}(Pe)
|
|
3198
|
+
), I;
|
|
3171
3199
|
(function(e) {
|
|
3172
3200
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3173
|
-
})(
|
|
3174
|
-
function
|
|
3201
|
+
})(I || (I = {}));
|
|
3202
|
+
function bn(e) {
|
|
3175
3203
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3176
3204
|
var i = t[t.length - 1];
|
|
3177
|
-
return !i || i.type !==
|
|
3205
|
+
return !i || i.type !== I.literal || r.type !== I.literal ? t.push(r) : i.value += r.value, t;
|
|
3178
3206
|
}, []);
|
|
3179
3207
|
}
|
|
3180
|
-
function
|
|
3208
|
+
function gn(e) {
|
|
3181
3209
|
return typeof e == "function";
|
|
3182
3210
|
}
|
|
3183
|
-
function xe(e, t, r, i, n, o,
|
|
3184
|
-
if (e.length === 1 &&
|
|
3211
|
+
function xe(e, t, r, i, n, o, a) {
|
|
3212
|
+
if (e.length === 1 && Tt(e[0]))
|
|
3185
3213
|
return [
|
|
3186
3214
|
{
|
|
3187
|
-
type:
|
|
3215
|
+
type: I.literal,
|
|
3188
3216
|
value: e[0].value
|
|
3189
3217
|
}
|
|
3190
3218
|
];
|
|
3191
|
-
for (var
|
|
3219
|
+
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3192
3220
|
var h = u[l];
|
|
3193
|
-
if (
|
|
3194
|
-
|
|
3195
|
-
type:
|
|
3221
|
+
if (Tt(h)) {
|
|
3222
|
+
s.push({
|
|
3223
|
+
type: I.literal,
|
|
3196
3224
|
value: h.value
|
|
3197
3225
|
});
|
|
3198
3226
|
continue;
|
|
3199
3227
|
}
|
|
3200
|
-
if (
|
|
3201
|
-
typeof o == "number" &&
|
|
3202
|
-
type:
|
|
3228
|
+
if (Ui(h)) {
|
|
3229
|
+
typeof o == "number" && s.push({
|
|
3230
|
+
type: I.literal,
|
|
3203
3231
|
value: r.getNumberFormat(t).format(o)
|
|
3204
3232
|
});
|
|
3205
3233
|
continue;
|
|
3206
3234
|
}
|
|
3207
3235
|
var c = h.value;
|
|
3208
3236
|
if (!(n && c in n))
|
|
3209
|
-
throw new
|
|
3237
|
+
throw new yn(c, a);
|
|
3210
3238
|
var f = n[c];
|
|
3211
|
-
if (
|
|
3212
|
-
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""),
|
|
3213
|
-
type: typeof f == "string" ?
|
|
3239
|
+
if ($i(h)) {
|
|
3240
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3241
|
+
type: typeof f == "string" ? I.literal : I.object,
|
|
3214
3242
|
value: f
|
|
3215
3243
|
});
|
|
3216
3244
|
continue;
|
|
3217
3245
|
}
|
|
3218
|
-
if (
|
|
3246
|
+
if (Kt(h)) {
|
|
3219
3247
|
var p = typeof h.style == "string" ? i.date[h.style] : Ke(h.style) ? h.style.parsedOptions : void 0;
|
|
3220
|
-
|
|
3221
|
-
type:
|
|
3248
|
+
s.push({
|
|
3249
|
+
type: I.literal,
|
|
3222
3250
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3223
3251
|
});
|
|
3224
3252
|
continue;
|
|
3225
3253
|
}
|
|
3226
|
-
if (
|
|
3254
|
+
if (er(h)) {
|
|
3227
3255
|
var p = typeof h.style == "string" ? i.time[h.style] : Ke(h.style) ? h.style.parsedOptions : i.time.medium;
|
|
3228
|
-
|
|
3229
|
-
type:
|
|
3256
|
+
s.push({
|
|
3257
|
+
type: I.literal,
|
|
3230
3258
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3231
3259
|
});
|
|
3232
3260
|
continue;
|
|
3233
3261
|
}
|
|
3234
|
-
if (
|
|
3235
|
-
var p = typeof h.style == "string" ? i.number[h.style] :
|
|
3236
|
-
p && p.scale && (f = f * (p.scale || 1)),
|
|
3237
|
-
type:
|
|
3262
|
+
if (qt(h)) {
|
|
3263
|
+
var p = typeof h.style == "string" ? i.number[h.style] : nr(h.style) ? h.style.parsedOptions : void 0;
|
|
3264
|
+
p && p.scale && (f = f * (p.scale || 1)), s.push({
|
|
3265
|
+
type: I.literal,
|
|
3238
3266
|
value: r.getNumberFormat(t, p).format(f)
|
|
3239
3267
|
});
|
|
3240
3268
|
continue;
|
|
3241
3269
|
}
|
|
3242
|
-
if (
|
|
3270
|
+
if (ir(h)) {
|
|
3243
3271
|
var y = h.children, d = h.value, v = n[d];
|
|
3244
|
-
if (!
|
|
3245
|
-
throw new
|
|
3246
|
-
var
|
|
3272
|
+
if (!gn(v))
|
|
3273
|
+
throw new dn(d, "function", a);
|
|
3274
|
+
var P = xe(y, t, r, i, n, o), b = v(P.map(function(R) {
|
|
3247
3275
|
return R.value;
|
|
3248
3276
|
}));
|
|
3249
|
-
Array.isArray(
|
|
3277
|
+
Array.isArray(b) || (b = [b]), s.push.apply(s, b.map(function(R) {
|
|
3250
3278
|
return {
|
|
3251
|
-
type: typeof R == "string" ?
|
|
3279
|
+
type: typeof R == "string" ? I.literal : I.object,
|
|
3252
3280
|
value: R
|
|
3253
3281
|
};
|
|
3254
3282
|
}));
|
|
3255
3283
|
}
|
|
3256
|
-
if (
|
|
3257
|
-
var
|
|
3258
|
-
if (!
|
|
3259
|
-
throw new
|
|
3260
|
-
|
|
3284
|
+
if (tr(h)) {
|
|
3285
|
+
var w = h.options[f] || h.options.other;
|
|
3286
|
+
if (!w)
|
|
3287
|
+
throw new It(h.value, f, Object.keys(h.options), a);
|
|
3288
|
+
s.push.apply(s, xe(w.value, t, r, i, n));
|
|
3261
3289
|
continue;
|
|
3262
3290
|
}
|
|
3263
|
-
if (
|
|
3264
|
-
var
|
|
3265
|
-
if (!
|
|
3291
|
+
if (rr(h)) {
|
|
3292
|
+
var w = h.options["=".concat(f)];
|
|
3293
|
+
if (!w) {
|
|
3266
3294
|
if (!Intl.PluralRules)
|
|
3267
|
-
throw new
|
|
3295
|
+
throw new Pe(`Intl.PluralRules is not available in this environment.
|
|
3268
3296
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3269
|
-
`,
|
|
3270
|
-
var
|
|
3271
|
-
|
|
3297
|
+
`, te.MISSING_INTL_API, a);
|
|
3298
|
+
var M = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3299
|
+
w = h.options[M] || h.options.other;
|
|
3272
3300
|
}
|
|
3273
|
-
if (!
|
|
3274
|
-
throw new
|
|
3275
|
-
|
|
3301
|
+
if (!w)
|
|
3302
|
+
throw new It(h.value, f, Object.keys(h.options), a);
|
|
3303
|
+
s.push.apply(s, xe(w.value, t, r, i, n, f - (h.offset || 0)));
|
|
3276
3304
|
continue;
|
|
3277
3305
|
}
|
|
3278
3306
|
}
|
|
3279
|
-
return
|
|
3307
|
+
return bn(s);
|
|
3280
3308
|
}
|
|
3281
|
-
function
|
|
3282
|
-
return t ?
|
|
3283
|
-
return r[i] =
|
|
3309
|
+
function vn(e, t) {
|
|
3310
|
+
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, i) {
|
|
3311
|
+
return r[i] = _(_({}, e[i]), t[i] || {}), r;
|
|
3284
3312
|
}, {})) : e;
|
|
3285
3313
|
}
|
|
3286
|
-
function
|
|
3314
|
+
function En(e, t) {
|
|
3287
3315
|
return t ? Object.keys(e).reduce(function(r, i) {
|
|
3288
|
-
return r[i] =
|
|
3289
|
-
},
|
|
3316
|
+
return r[i] = vn(e[i], t[i]), r;
|
|
3317
|
+
}, _({}, e)) : e;
|
|
3290
3318
|
}
|
|
3291
|
-
function
|
|
3319
|
+
function je(e) {
|
|
3292
3320
|
return {
|
|
3293
3321
|
create: function() {
|
|
3294
3322
|
return {
|
|
@@ -3302,39 +3330,39 @@ function We(e) {
|
|
|
3302
3330
|
}
|
|
3303
3331
|
};
|
|
3304
3332
|
}
|
|
3305
|
-
function
|
|
3333
|
+
function _n(e) {
|
|
3306
3334
|
return e === void 0 && (e = {
|
|
3307
3335
|
number: {},
|
|
3308
3336
|
dateTime: {},
|
|
3309
3337
|
pluralRules: {}
|
|
3310
3338
|
}), {
|
|
3311
|
-
getNumberFormat:
|
|
3339
|
+
getNumberFormat: Ue(function() {
|
|
3312
3340
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3313
3341
|
r[i] = arguments[i];
|
|
3314
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3342
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, q([void 0], r, !1)))();
|
|
3315
3343
|
}, {
|
|
3316
|
-
cache:
|
|
3317
|
-
strategy:
|
|
3344
|
+
cache: je(e.number),
|
|
3345
|
+
strategy: Ge.variadic
|
|
3318
3346
|
}),
|
|
3319
|
-
getDateTimeFormat:
|
|
3347
|
+
getDateTimeFormat: Ue(function() {
|
|
3320
3348
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3321
3349
|
r[i] = arguments[i];
|
|
3322
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3350
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, q([void 0], r, !1)))();
|
|
3323
3351
|
}, {
|
|
3324
|
-
cache:
|
|
3325
|
-
strategy:
|
|
3352
|
+
cache: je(e.dateTime),
|
|
3353
|
+
strategy: Ge.variadic
|
|
3326
3354
|
}),
|
|
3327
|
-
getPluralRules:
|
|
3355
|
+
getPluralRules: Ue(function() {
|
|
3328
3356
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3329
3357
|
r[i] = arguments[i];
|
|
3330
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3358
|
+
return new ((t = Intl.PluralRules).bind.apply(t, q([void 0], r, !1)))();
|
|
3331
3359
|
}, {
|
|
3332
|
-
cache:
|
|
3333
|
-
strategy:
|
|
3360
|
+
cache: je(e.pluralRules),
|
|
3361
|
+
strategy: Ge.variadic
|
|
3334
3362
|
})
|
|
3335
3363
|
};
|
|
3336
3364
|
}
|
|
3337
|
-
var
|
|
3365
|
+
var xn = (
|
|
3338
3366
|
/** @class */
|
|
3339
3367
|
function() {
|
|
3340
3368
|
function e(t, r, i, n) {
|
|
@@ -3349,7 +3377,7 @@ var Ln = (
|
|
|
3349
3377
|
if (u.length === 1)
|
|
3350
3378
|
return u[0].value;
|
|
3351
3379
|
var h = u.reduce(function(c, f) {
|
|
3352
|
-
return !c.length || f.type !==
|
|
3380
|
+
return !c.length || f.type !== I.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3353
3381
|
}, []);
|
|
3354
3382
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3355
3383
|
}, this.formatToParts = function(l) {
|
|
@@ -3364,15 +3392,15 @@ var Ln = (
|
|
|
3364
3392
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3365
3393
|
if (this.message = t, !e.__parse)
|
|
3366
3394
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3367
|
-
var
|
|
3368
|
-
|
|
3369
|
-
var
|
|
3370
|
-
this.ast = e.__parse(t,
|
|
3395
|
+
var a = n || {};
|
|
3396
|
+
a.formatters;
|
|
3397
|
+
var s = Bi(a, ["formatters"]);
|
|
3398
|
+
this.ast = e.__parse(t, _(_({}, s), { locale: this.resolvedLocale }));
|
|
3371
3399
|
} else
|
|
3372
3400
|
this.ast = t;
|
|
3373
3401
|
if (!Array.isArray(this.ast))
|
|
3374
3402
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3375
|
-
this.formats =
|
|
3403
|
+
this.formats = En(e.formats, i), this.formatters = n && n.formatters || _n(this.formatterCache);
|
|
3376
3404
|
}
|
|
3377
3405
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3378
3406
|
get: function() {
|
|
@@ -3385,7 +3413,7 @@ var Ln = (
|
|
|
3385
3413
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3386
3414
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3387
3415
|
}
|
|
3388
|
-
}, e.__parse =
|
|
3416
|
+
}, e.__parse = pn, e.formats = {
|
|
3389
3417
|
number: {
|
|
3390
3418
|
integer: {
|
|
3391
3419
|
maximumFractionDigits: 0
|
|
@@ -3446,7 +3474,7 @@ var Ln = (
|
|
|
3446
3474
|
}, e;
|
|
3447
3475
|
}()
|
|
3448
3476
|
);
|
|
3449
|
-
function
|
|
3477
|
+
function Tn(e, t) {
|
|
3450
3478
|
if (t == null)
|
|
3451
3479
|
return;
|
|
3452
3480
|
if (t in e)
|
|
@@ -3467,92 +3495,92 @@ function Sn(e, t) {
|
|
|
3467
3495
|
i = void 0;
|
|
3468
3496
|
return i;
|
|
3469
3497
|
}
|
|
3470
|
-
const j = {},
|
|
3498
|
+
const j = {}, Ln = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), fr = (e, t) => {
|
|
3471
3499
|
if (t == null)
|
|
3472
3500
|
return;
|
|
3473
3501
|
if (t in j && e in j[t])
|
|
3474
3502
|
return j[t][e];
|
|
3475
|
-
const r =
|
|
3503
|
+
const r = Ie(t);
|
|
3476
3504
|
for (let i = 0; i < r.length; i++) {
|
|
3477
|
-
const n = r[i], o =
|
|
3505
|
+
const n = r[i], o = wn(n, e);
|
|
3478
3506
|
if (o)
|
|
3479
|
-
return
|
|
3507
|
+
return Ln(e, t, o);
|
|
3480
3508
|
}
|
|
3481
3509
|
};
|
|
3482
|
-
let
|
|
3483
|
-
const
|
|
3484
|
-
function
|
|
3485
|
-
return
|
|
3510
|
+
let ft;
|
|
3511
|
+
const me = He({});
|
|
3512
|
+
function Sn(e) {
|
|
3513
|
+
return ft[e] || null;
|
|
3486
3514
|
}
|
|
3487
|
-
function
|
|
3488
|
-
return e in
|
|
3515
|
+
function mr(e) {
|
|
3516
|
+
return e in ft;
|
|
3489
3517
|
}
|
|
3490
|
-
function
|
|
3491
|
-
if (!
|
|
3518
|
+
function wn(e, t) {
|
|
3519
|
+
if (!mr(e))
|
|
3492
3520
|
return null;
|
|
3493
|
-
const r =
|
|
3494
|
-
return
|
|
3521
|
+
const r = Sn(e);
|
|
3522
|
+
return Tn(r, t);
|
|
3495
3523
|
}
|
|
3496
|
-
function
|
|
3524
|
+
function An(e) {
|
|
3497
3525
|
if (e == null)
|
|
3498
3526
|
return;
|
|
3499
|
-
const t =
|
|
3527
|
+
const t = Ie(e);
|
|
3500
3528
|
for (let r = 0; r < t.length; r++) {
|
|
3501
3529
|
const i = t[r];
|
|
3502
|
-
if (
|
|
3530
|
+
if (mr(i))
|
|
3503
3531
|
return i;
|
|
3504
3532
|
}
|
|
3505
3533
|
}
|
|
3506
|
-
function
|
|
3507
|
-
delete j[e],
|
|
3534
|
+
function pr(e, ...t) {
|
|
3535
|
+
delete j[e], me.update((r) => (r[e] = Ii.all([r[e] || {}, ...t]), r));
|
|
3508
3536
|
}
|
|
3509
|
-
|
|
3510
|
-
[
|
|
3537
|
+
ie(
|
|
3538
|
+
[me],
|
|
3511
3539
|
([e]) => Object.keys(e)
|
|
3512
3540
|
);
|
|
3513
|
-
|
|
3541
|
+
me.subscribe((e) => ft = e);
|
|
3514
3542
|
const Te = {};
|
|
3515
|
-
function
|
|
3543
|
+
function Hn(e, t) {
|
|
3516
3544
|
Te[e].delete(t), Te[e].size === 0 && delete Te[e];
|
|
3517
3545
|
}
|
|
3518
|
-
function
|
|
3546
|
+
function dr(e) {
|
|
3519
3547
|
return Te[e];
|
|
3520
3548
|
}
|
|
3521
|
-
function
|
|
3522
|
-
return
|
|
3523
|
-
const r =
|
|
3549
|
+
function Pn(e) {
|
|
3550
|
+
return Ie(e).map((t) => {
|
|
3551
|
+
const r = dr(t);
|
|
3524
3552
|
return [t, r ? [...r] : []];
|
|
3525
3553
|
}).filter(([, t]) => t.length > 0);
|
|
3526
3554
|
}
|
|
3527
3555
|
function ot(e) {
|
|
3528
|
-
return e == null ? !1 :
|
|
3556
|
+
return e == null ? !1 : Ie(e).some(
|
|
3529
3557
|
(t) => {
|
|
3530
3558
|
var r;
|
|
3531
|
-
return (r =
|
|
3559
|
+
return (r = dr(t)) == null ? void 0 : r.size;
|
|
3532
3560
|
}
|
|
3533
3561
|
);
|
|
3534
3562
|
}
|
|
3535
|
-
function
|
|
3563
|
+
function In(e, t) {
|
|
3536
3564
|
return Promise.all(
|
|
3537
|
-
t.map((i) => (
|
|
3538
|
-
).then((i) =>
|
|
3565
|
+
t.map((i) => (Hn(e, i), i().then((n) => n.default || n)))
|
|
3566
|
+
).then((i) => pr(e, ...i));
|
|
3539
3567
|
}
|
|
3540
|
-
const
|
|
3541
|
-
function
|
|
3568
|
+
const ae = {};
|
|
3569
|
+
function yr(e) {
|
|
3542
3570
|
if (!ot(e))
|
|
3543
|
-
return e in
|
|
3544
|
-
const t =
|
|
3545
|
-
return
|
|
3571
|
+
return e in ae ? ae[e] : Promise.resolve();
|
|
3572
|
+
const t = Pn(e);
|
|
3573
|
+
return ae[e] = Promise.all(
|
|
3546
3574
|
t.map(
|
|
3547
|
-
([r, i]) =>
|
|
3575
|
+
([r, i]) => In(r, i)
|
|
3548
3576
|
)
|
|
3549
3577
|
).then(() => {
|
|
3550
3578
|
if (ot(e))
|
|
3551
|
-
return
|
|
3552
|
-
delete
|
|
3553
|
-
}),
|
|
3579
|
+
return yr(e);
|
|
3580
|
+
delete ae[e];
|
|
3581
|
+
}), ae[e];
|
|
3554
3582
|
}
|
|
3555
|
-
const
|
|
3583
|
+
const Bn = {
|
|
3556
3584
|
number: {
|
|
3557
3585
|
scientific: { notation: "scientific" },
|
|
3558
3586
|
engineering: { notation: "engineering" },
|
|
@@ -3581,159 +3609,159 @@ const Cn = {
|
|
|
3581
3609
|
timeZoneName: "short"
|
|
3582
3610
|
}
|
|
3583
3611
|
}
|
|
3584
|
-
},
|
|
3612
|
+
}, On = {
|
|
3585
3613
|
fallbackLocale: null,
|
|
3586
3614
|
loadingDelay: 200,
|
|
3587
|
-
formats:
|
|
3615
|
+
formats: Bn,
|
|
3588
3616
|
warnOnMissingMessages: !0,
|
|
3589
3617
|
handleMissingMessage: void 0,
|
|
3590
3618
|
ignoreTag: !0
|
|
3591
|
-
},
|
|
3592
|
-
function
|
|
3593
|
-
return
|
|
3619
|
+
}, Cn = On;
|
|
3620
|
+
function re() {
|
|
3621
|
+
return Cn;
|
|
3594
3622
|
}
|
|
3595
|
-
const
|
|
3596
|
-
var
|
|
3623
|
+
const ke = He(!1);
|
|
3624
|
+
var Nn = Object.defineProperty, Rn = Object.defineProperties, Mn = Object.getOwnPropertyDescriptors, Bt = Object.getOwnPropertySymbols, Dn = Object.prototype.hasOwnProperty, $n = Object.prototype.propertyIsEnumerable, Ot = (e, t, r) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Un = (e, t) => {
|
|
3597
3625
|
for (var r in t || (t = {}))
|
|
3598
|
-
|
|
3599
|
-
if (
|
|
3600
|
-
for (var r of
|
|
3601
|
-
|
|
3626
|
+
Dn.call(t, r) && Ot(e, r, t[r]);
|
|
3627
|
+
if (Bt)
|
|
3628
|
+
for (var r of Bt(t))
|
|
3629
|
+
$n.call(t, r) && Ot(e, r, t[r]);
|
|
3602
3630
|
return e;
|
|
3603
|
-
},
|
|
3631
|
+
}, Gn = (e, t) => Rn(e, Mn(t));
|
|
3604
3632
|
let st;
|
|
3605
|
-
const
|
|
3606
|
-
function
|
|
3633
|
+
const we = He(null);
|
|
3634
|
+
function Ct(e) {
|
|
3607
3635
|
return e.split("-").map((t, r, i) => i.slice(0, r + 1).join("-")).reverse();
|
|
3608
3636
|
}
|
|
3609
|
-
function
|
|
3610
|
-
const r =
|
|
3611
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3637
|
+
function Ie(e, t = re().fallbackLocale) {
|
|
3638
|
+
const r = Ct(e);
|
|
3639
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ct(t)])] : r;
|
|
3612
3640
|
}
|
|
3613
3641
|
function z() {
|
|
3614
3642
|
return st != null ? st : void 0;
|
|
3615
3643
|
}
|
|
3616
|
-
|
|
3644
|
+
we.subscribe((e) => {
|
|
3617
3645
|
st = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3618
3646
|
});
|
|
3619
|
-
const
|
|
3620
|
-
if (e &&
|
|
3621
|
-
const { loadingDelay: t } =
|
|
3647
|
+
const Fn = (e) => {
|
|
3648
|
+
if (e && An(e) && ot(e)) {
|
|
3649
|
+
const { loadingDelay: t } = re();
|
|
3622
3650
|
let r;
|
|
3623
3651
|
return typeof window != "undefined" && z() != null && t ? r = window.setTimeout(
|
|
3624
|
-
() =>
|
|
3652
|
+
() => ke.set(!0),
|
|
3625
3653
|
t
|
|
3626
|
-
) :
|
|
3627
|
-
|
|
3654
|
+
) : ke.set(!0), yr(e).then(() => {
|
|
3655
|
+
we.set(e);
|
|
3628
3656
|
}).finally(() => {
|
|
3629
|
-
clearTimeout(r),
|
|
3657
|
+
clearTimeout(r), ke.set(!1);
|
|
3630
3658
|
});
|
|
3631
3659
|
}
|
|
3632
|
-
return
|
|
3633
|
-
},
|
|
3634
|
-
set:
|
|
3635
|
-
}),
|
|
3660
|
+
return we.set(e);
|
|
3661
|
+
}, ne = Gn(Un({}, we), {
|
|
3662
|
+
set: Fn
|
|
3663
|
+
}), Be = (e) => {
|
|
3636
3664
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3637
3665
|
return (i) => {
|
|
3638
3666
|
const n = JSON.stringify(i);
|
|
3639
3667
|
return n in t ? t[n] : t[n] = e(i);
|
|
3640
3668
|
};
|
|
3641
3669
|
};
|
|
3642
|
-
var
|
|
3670
|
+
var jn = Object.defineProperty, Ae = Object.getOwnPropertySymbols, br = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable, Nt = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mt = (e, t) => {
|
|
3643
3671
|
for (var r in t || (t = {}))
|
|
3644
|
-
|
|
3645
|
-
if (
|
|
3646
|
-
for (var r of
|
|
3647
|
-
|
|
3672
|
+
br.call(t, r) && Nt(e, r, t[r]);
|
|
3673
|
+
if (Ae)
|
|
3674
|
+
for (var r of Ae(t))
|
|
3675
|
+
gr.call(t, r) && Nt(e, r, t[r]);
|
|
3648
3676
|
return e;
|
|
3649
|
-
},
|
|
3677
|
+
}, oe = (e, t) => {
|
|
3650
3678
|
var r = {};
|
|
3651
3679
|
for (var i in e)
|
|
3652
|
-
|
|
3653
|
-
if (e != null &&
|
|
3654
|
-
for (var i of
|
|
3655
|
-
t.indexOf(i) < 0 &&
|
|
3680
|
+
br.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3681
|
+
if (e != null && Ae)
|
|
3682
|
+
for (var i of Ae(e))
|
|
3683
|
+
t.indexOf(i) < 0 && gr.call(e, i) && (r[i] = e[i]);
|
|
3656
3684
|
return r;
|
|
3657
3685
|
};
|
|
3658
|
-
const
|
|
3659
|
-
const { formats: r } =
|
|
3686
|
+
const ce = (e, t) => {
|
|
3687
|
+
const { formats: r } = re();
|
|
3660
3688
|
if (e in r && t in r[e])
|
|
3661
3689
|
return r[e][t];
|
|
3662
3690
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3663
|
-
},
|
|
3691
|
+
}, kn = Be(
|
|
3664
3692
|
(e) => {
|
|
3665
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3693
|
+
var t = e, { locale: r, format: i } = t, n = oe(t, ["locale", "format"]);
|
|
3666
3694
|
if (r == null)
|
|
3667
3695
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3668
|
-
return i && (n =
|
|
3696
|
+
return i && (n = ce("number", i)), new Intl.NumberFormat(r, n);
|
|
3669
3697
|
}
|
|
3670
|
-
),
|
|
3698
|
+
), Vn = Be(
|
|
3671
3699
|
(e) => {
|
|
3672
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3700
|
+
var t = e, { locale: r, format: i } = t, n = oe(t, ["locale", "format"]);
|
|
3673
3701
|
if (r == null)
|
|
3674
3702
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3675
|
-
return i ? n =
|
|
3703
|
+
return i ? n = ce("date", i) : Object.keys(n).length === 0 && (n = ce("date", "short")), new Intl.DateTimeFormat(r, n);
|
|
3676
3704
|
}
|
|
3677
|
-
),
|
|
3705
|
+
), Wn = Be(
|
|
3678
3706
|
(e) => {
|
|
3679
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3707
|
+
var t = e, { locale: r, format: i } = t, n = oe(t, ["locale", "format"]);
|
|
3680
3708
|
if (r == null)
|
|
3681
3709
|
throw new Error(
|
|
3682
3710
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3683
3711
|
);
|
|
3684
|
-
return i ? n =
|
|
3712
|
+
return i ? n = ce("time", i) : Object.keys(n).length === 0 && (n = ce("time", "short")), new Intl.DateTimeFormat(r, n);
|
|
3685
3713
|
}
|
|
3686
|
-
),
|
|
3714
|
+
), Xn = (e = {}) => {
|
|
3687
3715
|
var t = e, {
|
|
3688
3716
|
locale: r = z()
|
|
3689
|
-
} = t, i =
|
|
3717
|
+
} = t, i = oe(t, [
|
|
3690
3718
|
"locale"
|
|
3691
3719
|
]);
|
|
3692
|
-
return
|
|
3693
|
-
},
|
|
3720
|
+
return kn(mt({ locale: r }, i));
|
|
3721
|
+
}, zn = (e = {}) => {
|
|
3694
3722
|
var t = e, {
|
|
3695
3723
|
locale: r = z()
|
|
3696
|
-
} = t, i =
|
|
3724
|
+
} = t, i = oe(t, [
|
|
3697
3725
|
"locale"
|
|
3698
3726
|
]);
|
|
3699
|
-
return
|
|
3700
|
-
},
|
|
3727
|
+
return Vn(mt({ locale: r }, i));
|
|
3728
|
+
}, Zn = (e = {}) => {
|
|
3701
3729
|
var t = e, {
|
|
3702
3730
|
locale: r = z()
|
|
3703
|
-
} = t, i =
|
|
3731
|
+
} = t, i = oe(t, [
|
|
3704
3732
|
"locale"
|
|
3705
3733
|
]);
|
|
3706
|
-
return
|
|
3707
|
-
},
|
|
3734
|
+
return Wn(mt({ locale: r }, i));
|
|
3735
|
+
}, Qn = Be(
|
|
3708
3736
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3709
|
-
(e, t = z()) => new
|
|
3710
|
-
ignoreTag:
|
|
3737
|
+
(e, t = z()) => new xn(e, t, re().formats, {
|
|
3738
|
+
ignoreTag: re().ignoreTag
|
|
3711
3739
|
})
|
|
3712
|
-
),
|
|
3740
|
+
), Yn = (e, t = {}) => {
|
|
3713
3741
|
var r, i, n, o;
|
|
3714
|
-
let
|
|
3715
|
-
typeof e == "object" && (
|
|
3742
|
+
let a = t;
|
|
3743
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
3716
3744
|
const {
|
|
3717
|
-
values:
|
|
3745
|
+
values: s,
|
|
3718
3746
|
locale: l = z(),
|
|
3719
3747
|
default: u
|
|
3720
|
-
} =
|
|
3748
|
+
} = a;
|
|
3721
3749
|
if (l == null)
|
|
3722
3750
|
throw new Error(
|
|
3723
3751
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3724
3752
|
);
|
|
3725
|
-
let h =
|
|
3753
|
+
let h = fr(e, l);
|
|
3726
3754
|
if (!h)
|
|
3727
|
-
h = (o = (n = (i = (r =
|
|
3755
|
+
h = (o = (n = (i = (r = re()).handleMissingMessage) == null ? void 0 : i.call(r, { locale: l, id: e, defaultValue: u })) != null ? n : u) != null ? o : e;
|
|
3728
3756
|
else if (typeof h != "string")
|
|
3729
3757
|
return console.warn(
|
|
3730
3758
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3731
3759
|
), h;
|
|
3732
|
-
if (!
|
|
3760
|
+
if (!s)
|
|
3733
3761
|
return h;
|
|
3734
3762
|
let c = h;
|
|
3735
3763
|
try {
|
|
3736
|
-
c =
|
|
3764
|
+
c = Qn(h, l).format(s);
|
|
3737
3765
|
} catch (f) {
|
|
3738
3766
|
f instanceof Error && console.warn(
|
|
3739
3767
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3741,18 +3769,18 @@ const he = (e, t) => {
|
|
|
3741
3769
|
);
|
|
3742
3770
|
}
|
|
3743
3771
|
return c;
|
|
3744
|
-
},
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
function
|
|
3750
|
-
|
|
3751
|
-
}
|
|
3752
|
-
function
|
|
3753
|
-
|
|
3754
|
-
}
|
|
3755
|
-
const
|
|
3772
|
+
}, Jn = (e, t) => Zn(t).format(e), qn = (e, t) => zn(t).format(e), Kn = (e, t) => Xn(t).format(e), eo = (e, t = z()) => fr(e, t), to = ie([ne, me], () => Yn);
|
|
3773
|
+
ie([ne], () => Jn);
|
|
3774
|
+
ie([ne], () => qn);
|
|
3775
|
+
ie([ne], () => Kn);
|
|
3776
|
+
ie([ne, me], () => eo);
|
|
3777
|
+
function Rt(e, t) {
|
|
3778
|
+
pr(e, t);
|
|
3779
|
+
}
|
|
3780
|
+
function ro(e) {
|
|
3781
|
+
ne.set(e);
|
|
3782
|
+
}
|
|
3783
|
+
const Ve = {
|
|
3756
3784
|
en: {
|
|
3757
3785
|
expandLimits: "LIMIT HISTORY",
|
|
3758
3786
|
daily: "per day",
|
|
@@ -4003,85 +4031,16 @@ const ze = {
|
|
|
4003
4031
|
historyLimitTypeLoss: "Loss Limit"
|
|
4004
4032
|
}
|
|
4005
4033
|
};
|
|
4006
|
-
|
|
4007
|
-
Copyright (c) Microsoft Corporation.
|
|
4008
|
-
|
|
4009
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
4010
|
-
purpose with or without fee is hereby granted.
|
|
4011
|
-
|
|
4012
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
4013
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
4014
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
4015
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
4016
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
4017
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
4018
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
4019
|
-
***************************************************************************** */
|
|
4020
|
-
var at = function(e, t) {
|
|
4021
|
-
return at = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
4022
|
-
r.__proto__ = i;
|
|
4023
|
-
} || function(r, i) {
|
|
4024
|
-
for (var n in i)
|
|
4025
|
-
Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
|
|
4026
|
-
}, at(e, t);
|
|
4027
|
-
};
|
|
4028
|
-
function me(e, t) {
|
|
4029
|
-
if (typeof t != "function" && t !== null)
|
|
4030
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
4031
|
-
at(e, t);
|
|
4032
|
-
function r() {
|
|
4033
|
-
this.constructor = e;
|
|
4034
|
-
}
|
|
4035
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
4036
|
-
}
|
|
4037
|
-
function ut(e) {
|
|
4038
|
-
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], i = 0;
|
|
4039
|
-
if (r)
|
|
4040
|
-
return r.call(e);
|
|
4041
|
-
if (e && typeof e.length == "number")
|
|
4042
|
-
return {
|
|
4043
|
-
next: function() {
|
|
4044
|
-
return e && i >= e.length && (e = void 0), { value: e && e[i++], done: !e };
|
|
4045
|
-
}
|
|
4046
|
-
};
|
|
4047
|
-
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
4048
|
-
}
|
|
4049
|
-
function lt(e, t) {
|
|
4050
|
-
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
4051
|
-
if (!r)
|
|
4052
|
-
return e;
|
|
4053
|
-
var i = r.call(e), n, o = [], s;
|
|
4054
|
-
try {
|
|
4055
|
-
for (; (t === void 0 || t-- > 0) && !(n = i.next()).done; )
|
|
4056
|
-
o.push(n.value);
|
|
4057
|
-
} catch (a) {
|
|
4058
|
-
s = { error: a };
|
|
4059
|
-
} finally {
|
|
4060
|
-
try {
|
|
4061
|
-
n && !n.done && (r = i.return) && r.call(i);
|
|
4062
|
-
} finally {
|
|
4063
|
-
if (s)
|
|
4064
|
-
throw s.error;
|
|
4065
|
-
}
|
|
4066
|
-
}
|
|
4067
|
-
return o;
|
|
4068
|
-
}
|
|
4069
|
-
function ht(e, t, r) {
|
|
4070
|
-
if (arguments.length === 2)
|
|
4071
|
-
for (var i = 0, n = t.length, o; i < n; i++)
|
|
4072
|
-
(o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
|
|
4073
|
-
return e.concat(o || t);
|
|
4074
|
-
}
|
|
4075
|
-
function F(e) {
|
|
4034
|
+
function G(e) {
|
|
4076
4035
|
return typeof e == "function";
|
|
4077
4036
|
}
|
|
4078
|
-
function
|
|
4037
|
+
function vr(e) {
|
|
4079
4038
|
var t = function(i) {
|
|
4080
4039
|
Error.call(i), i.stack = new Error().stack;
|
|
4081
4040
|
}, r = e(t);
|
|
4082
4041
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
4083
4042
|
}
|
|
4084
|
-
var
|
|
4043
|
+
var We = vr(function(e) {
|
|
4085
4044
|
return function(r) {
|
|
4086
4045
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
4087
4046
|
` + r.map(function(i, n) {
|
|
@@ -4090,13 +4049,13 @@ var Ze = _r(function(e) {
|
|
|
4090
4049
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
4091
4050
|
};
|
|
4092
4051
|
});
|
|
4093
|
-
function
|
|
4052
|
+
function at(e, t) {
|
|
4094
4053
|
if (e) {
|
|
4095
4054
|
var r = e.indexOf(t);
|
|
4096
4055
|
0 <= r && e.splice(r, 1);
|
|
4097
4056
|
}
|
|
4098
4057
|
}
|
|
4099
|
-
var
|
|
4058
|
+
var Oe = function() {
|
|
4100
4059
|
function e(t) {
|
|
4101
4060
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
4102
4061
|
}
|
|
@@ -4104,11 +4063,11 @@ var Ne = function() {
|
|
|
4104
4063
|
var t, r, i, n, o;
|
|
4105
4064
|
if (!this.closed) {
|
|
4106
4065
|
this.closed = !0;
|
|
4107
|
-
var
|
|
4108
|
-
if (
|
|
4109
|
-
if (this._parentage = null, Array.isArray(
|
|
4066
|
+
var a = this._parentage;
|
|
4067
|
+
if (a)
|
|
4068
|
+
if (this._parentage = null, Array.isArray(a))
|
|
4110
4069
|
try {
|
|
4111
|
-
for (var
|
|
4070
|
+
for (var s = Je(a), l = s.next(); !l.done; l = s.next()) {
|
|
4112
4071
|
var u = l.value;
|
|
4113
4072
|
u.remove(this);
|
|
4114
4073
|
}
|
|
@@ -4116,31 +4075,31 @@ var Ne = function() {
|
|
|
4116
4075
|
t = { error: d };
|
|
4117
4076
|
} finally {
|
|
4118
4077
|
try {
|
|
4119
|
-
l && !l.done && (r =
|
|
4078
|
+
l && !l.done && (r = s.return) && r.call(s);
|
|
4120
4079
|
} finally {
|
|
4121
4080
|
if (t)
|
|
4122
4081
|
throw t.error;
|
|
4123
4082
|
}
|
|
4124
4083
|
}
|
|
4125
4084
|
else
|
|
4126
|
-
|
|
4085
|
+
a.remove(this);
|
|
4127
4086
|
var h = this.initialTeardown;
|
|
4128
|
-
if (
|
|
4087
|
+
if (G(h))
|
|
4129
4088
|
try {
|
|
4130
4089
|
h();
|
|
4131
4090
|
} catch (d) {
|
|
4132
|
-
o = d instanceof
|
|
4091
|
+
o = d instanceof We ? d.errors : [d];
|
|
4133
4092
|
}
|
|
4134
4093
|
var c = this._finalizers;
|
|
4135
4094
|
if (c) {
|
|
4136
4095
|
this._finalizers = null;
|
|
4137
4096
|
try {
|
|
4138
|
-
for (var f =
|
|
4097
|
+
for (var f = Je(c), p = f.next(); !p.done; p = f.next()) {
|
|
4139
4098
|
var y = p.value;
|
|
4140
4099
|
try {
|
|
4141
|
-
|
|
4100
|
+
Mt(y);
|
|
4142
4101
|
} catch (d) {
|
|
4143
|
-
o = o != null ? o : [], d instanceof
|
|
4102
|
+
o = o != null ? o : [], d instanceof We ? o = q(q([], qe(o)), qe(d.errors)) : o.push(d);
|
|
4144
4103
|
}
|
|
4145
4104
|
}
|
|
4146
4105
|
} catch (d) {
|
|
@@ -4155,13 +4114,13 @@ var Ne = function() {
|
|
|
4155
4114
|
}
|
|
4156
4115
|
}
|
|
4157
4116
|
if (o)
|
|
4158
|
-
throw new
|
|
4117
|
+
throw new We(o);
|
|
4159
4118
|
}
|
|
4160
4119
|
}, e.prototype.add = function(t) {
|
|
4161
4120
|
var r;
|
|
4162
4121
|
if (t && t !== this)
|
|
4163
4122
|
if (this.closed)
|
|
4164
|
-
|
|
4123
|
+
Mt(t);
|
|
4165
4124
|
else {
|
|
4166
4125
|
if (t instanceof e) {
|
|
4167
4126
|
if (t.closed || t._hasParent(this))
|
|
@@ -4178,52 +4137,56 @@ var Ne = function() {
|
|
|
4178
4137
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
4179
4138
|
}, e.prototype._removeParent = function(t) {
|
|
4180
4139
|
var r = this._parentage;
|
|
4181
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
4140
|
+
r === t ? this._parentage = null : Array.isArray(r) && at(r, t);
|
|
4182
4141
|
}, e.prototype.remove = function(t) {
|
|
4183
4142
|
var r = this._finalizers;
|
|
4184
|
-
r &&
|
|
4143
|
+
r && at(r, t), t instanceof e && t._removeParent(this);
|
|
4185
4144
|
}, e.EMPTY = function() {
|
|
4186
4145
|
var t = new e();
|
|
4187
4146
|
return t.closed = !0, t;
|
|
4188
4147
|
}(), e;
|
|
4189
|
-
}(),
|
|
4190
|
-
function
|
|
4191
|
-
return e instanceof
|
|
4192
|
-
}
|
|
4193
|
-
function
|
|
4194
|
-
|
|
4195
|
-
}
|
|
4196
|
-
var
|
|
4197
|
-
|
|
4198
|
-
|
|
4148
|
+
}(), Er = Oe.EMPTY;
|
|
4149
|
+
function _r(e) {
|
|
4150
|
+
return e instanceof Oe || e && "closed" in e && G(e.remove) && G(e.add) && G(e.unsubscribe);
|
|
4151
|
+
}
|
|
4152
|
+
function Mt(e) {
|
|
4153
|
+
G(e) ? e() : e.unsubscribe();
|
|
4154
|
+
}
|
|
4155
|
+
var xr = {
|
|
4156
|
+
onUnhandledError: null,
|
|
4157
|
+
onStoppedNotification: null,
|
|
4158
|
+
Promise: void 0,
|
|
4159
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
4160
|
+
useDeprecatedNextContext: !1
|
|
4161
|
+
}, io = {
|
|
4199
4162
|
setTimeout: function(e, t) {
|
|
4200
4163
|
for (var r = [], i = 2; i < arguments.length; i++)
|
|
4201
4164
|
r[i - 2] = arguments[i];
|
|
4202
|
-
return setTimeout.apply(void 0,
|
|
4165
|
+
return setTimeout.apply(void 0, q([e, t], qe(r)));
|
|
4203
4166
|
},
|
|
4204
4167
|
clearTimeout: function(e) {
|
|
4205
4168
|
return clearTimeout(e);
|
|
4206
4169
|
},
|
|
4207
4170
|
delegate: void 0
|
|
4208
4171
|
};
|
|
4209
|
-
function
|
|
4210
|
-
|
|
4172
|
+
function no(e) {
|
|
4173
|
+
io.setTimeout(function() {
|
|
4211
4174
|
throw e;
|
|
4212
4175
|
});
|
|
4213
4176
|
}
|
|
4214
|
-
function
|
|
4177
|
+
function Dt() {
|
|
4215
4178
|
}
|
|
4216
4179
|
function Le(e) {
|
|
4217
4180
|
e();
|
|
4218
4181
|
}
|
|
4219
|
-
var
|
|
4220
|
-
|
|
4182
|
+
var Tr = function(e) {
|
|
4183
|
+
F(t, e);
|
|
4221
4184
|
function t(r) {
|
|
4222
4185
|
var i = e.call(this) || this;
|
|
4223
|
-
return i.isStopped = !1, r ? (i.destination = r,
|
|
4186
|
+
return i.isStopped = !1, r ? (i.destination = r, _r(r) && r.add(i)) : i.destination = uo, i;
|
|
4224
4187
|
}
|
|
4225
4188
|
return t.create = function(r, i, n) {
|
|
4226
|
-
return new
|
|
4189
|
+
return new ut(r, i, n);
|
|
4227
4190
|
}, t.prototype.next = function(r) {
|
|
4228
4191
|
this.isStopped || this._next(r);
|
|
4229
4192
|
}, t.prototype.error = function(r) {
|
|
@@ -4247,7 +4210,11 @@ var Lr = function(e) {
|
|
|
4247
4210
|
this.unsubscribe();
|
|
4248
4211
|
}
|
|
4249
4212
|
}, t;
|
|
4250
|
-
}(
|
|
4213
|
+
}(Oe), oo = Function.prototype.bind;
|
|
4214
|
+
function Xe(e, t) {
|
|
4215
|
+
return oo.call(e, t);
|
|
4216
|
+
}
|
|
4217
|
+
var so = function() {
|
|
4251
4218
|
function e(t) {
|
|
4252
4219
|
this.partialObserver = t;
|
|
4253
4220
|
}
|
|
@@ -4278,43 +4245,55 @@ var Lr = function(e) {
|
|
|
4278
4245
|
Ee(r);
|
|
4279
4246
|
}
|
|
4280
4247
|
}, e;
|
|
4281
|
-
}(),
|
|
4282
|
-
|
|
4248
|
+
}(), ut = function(e) {
|
|
4249
|
+
F(t, e);
|
|
4283
4250
|
function t(r, i, n) {
|
|
4284
|
-
var o = e.call(this) || this,
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4251
|
+
var o = e.call(this) || this, a;
|
|
4252
|
+
if (G(r) || !r)
|
|
4253
|
+
a = {
|
|
4254
|
+
next: r != null ? r : void 0,
|
|
4255
|
+
error: i != null ? i : void 0,
|
|
4256
|
+
complete: n != null ? n : void 0
|
|
4257
|
+
};
|
|
4258
|
+
else {
|
|
4259
|
+
var s;
|
|
4260
|
+
o && xr.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
4261
|
+
return o.unsubscribe();
|
|
4262
|
+
}, a = {
|
|
4263
|
+
next: r.next && Xe(r.next, s),
|
|
4264
|
+
error: r.error && Xe(r.error, s),
|
|
4265
|
+
complete: r.complete && Xe(r.complete, s)
|
|
4266
|
+
}) : a = r;
|
|
4267
|
+
}
|
|
4268
|
+
return o.destination = new so(a), o;
|
|
4290
4269
|
}
|
|
4291
4270
|
return t;
|
|
4292
|
-
}(
|
|
4271
|
+
}(Tr);
|
|
4293
4272
|
function Ee(e) {
|
|
4294
|
-
|
|
4273
|
+
no(e);
|
|
4295
4274
|
}
|
|
4296
|
-
function
|
|
4275
|
+
function ao(e) {
|
|
4297
4276
|
throw e;
|
|
4298
4277
|
}
|
|
4299
|
-
var
|
|
4278
|
+
var uo = {
|
|
4300
4279
|
closed: !0,
|
|
4301
|
-
next:
|
|
4302
|
-
error:
|
|
4303
|
-
complete:
|
|
4304
|
-
},
|
|
4280
|
+
next: Dt,
|
|
4281
|
+
error: ao,
|
|
4282
|
+
complete: Dt
|
|
4283
|
+
}, lo = function() {
|
|
4305
4284
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
4306
4285
|
}();
|
|
4307
|
-
function
|
|
4286
|
+
function ho(e) {
|
|
4308
4287
|
return e;
|
|
4309
4288
|
}
|
|
4310
|
-
function
|
|
4311
|
-
return e.length === 0 ?
|
|
4289
|
+
function co(e) {
|
|
4290
|
+
return e.length === 0 ? ho : e.length === 1 ? e[0] : function(r) {
|
|
4312
4291
|
return e.reduce(function(i, n) {
|
|
4313
4292
|
return n(i);
|
|
4314
4293
|
}, r);
|
|
4315
4294
|
};
|
|
4316
4295
|
}
|
|
4317
|
-
var
|
|
4296
|
+
var $t = function() {
|
|
4318
4297
|
function e(t) {
|
|
4319
4298
|
t && (this._subscribe = t);
|
|
4320
4299
|
}
|
|
@@ -4322,10 +4301,10 @@ var Gt = function() {
|
|
|
4322
4301
|
var r = new e();
|
|
4323
4302
|
return r.source = this, r.operator = t, r;
|
|
4324
4303
|
}, e.prototype.subscribe = function(t, r, i) {
|
|
4325
|
-
var n = this, o =
|
|
4304
|
+
var n = this, o = mo(t) ? t : new ut(t, r, i);
|
|
4326
4305
|
return Le(function() {
|
|
4327
|
-
var
|
|
4328
|
-
o.add(
|
|
4306
|
+
var a = n, s = a.operator, l = a.source;
|
|
4307
|
+
o.add(s ? s.call(o, l) : l ? n._subscribe(o) : n._trySubscribe(o));
|
|
4329
4308
|
}), o;
|
|
4330
4309
|
}, e.prototype._trySubscribe = function(t) {
|
|
4331
4310
|
try {
|
|
@@ -4335,37 +4314,37 @@ var Gt = function() {
|
|
|
4335
4314
|
}
|
|
4336
4315
|
}, e.prototype.forEach = function(t, r) {
|
|
4337
4316
|
var i = this;
|
|
4338
|
-
return r =
|
|
4339
|
-
var
|
|
4340
|
-
next: function(
|
|
4317
|
+
return r = Ut(r), new r(function(n, o) {
|
|
4318
|
+
var a = new ut({
|
|
4319
|
+
next: function(s) {
|
|
4341
4320
|
try {
|
|
4342
|
-
t(
|
|
4321
|
+
t(s);
|
|
4343
4322
|
} catch (l) {
|
|
4344
|
-
o(l),
|
|
4323
|
+
o(l), a.unsubscribe();
|
|
4345
4324
|
}
|
|
4346
4325
|
},
|
|
4347
4326
|
error: o,
|
|
4348
4327
|
complete: n
|
|
4349
4328
|
});
|
|
4350
|
-
i.subscribe(
|
|
4329
|
+
i.subscribe(a);
|
|
4351
4330
|
});
|
|
4352
4331
|
}, e.prototype._subscribe = function(t) {
|
|
4353
4332
|
var r;
|
|
4354
4333
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
4355
|
-
}, e.prototype[
|
|
4334
|
+
}, e.prototype[lo] = function() {
|
|
4356
4335
|
return this;
|
|
4357
4336
|
}, e.prototype.pipe = function() {
|
|
4358
4337
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
4359
4338
|
t[r] = arguments[r];
|
|
4360
|
-
return
|
|
4339
|
+
return co(t)(this);
|
|
4361
4340
|
}, e.prototype.toPromise = function(t) {
|
|
4362
4341
|
var r = this;
|
|
4363
|
-
return t =
|
|
4342
|
+
return t = Ut(t), new t(function(i, n) {
|
|
4364
4343
|
var o;
|
|
4365
|
-
r.subscribe(function(
|
|
4366
|
-
return o =
|
|
4367
|
-
}, function(
|
|
4368
|
-
return n(
|
|
4344
|
+
r.subscribe(function(a) {
|
|
4345
|
+
return o = a;
|
|
4346
|
+
}, function(a) {
|
|
4347
|
+
return n(a);
|
|
4369
4348
|
}, function() {
|
|
4370
4349
|
return i(o);
|
|
4371
4350
|
});
|
|
@@ -4374,32 +4353,32 @@ var Gt = function() {
|
|
|
4374
4353
|
return new e(t);
|
|
4375
4354
|
}, e;
|
|
4376
4355
|
}();
|
|
4377
|
-
function
|
|
4356
|
+
function Ut(e) {
|
|
4378
4357
|
var t;
|
|
4379
|
-
return (t = e != null ? e :
|
|
4358
|
+
return (t = e != null ? e : xr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
4380
4359
|
}
|
|
4381
|
-
function
|
|
4382
|
-
return e &&
|
|
4360
|
+
function fo(e) {
|
|
4361
|
+
return e && G(e.next) && G(e.error) && G(e.complete);
|
|
4383
4362
|
}
|
|
4384
|
-
function
|
|
4385
|
-
return e && e instanceof
|
|
4363
|
+
function mo(e) {
|
|
4364
|
+
return e && e instanceof Tr || fo(e) && _r(e);
|
|
4386
4365
|
}
|
|
4387
|
-
var
|
|
4366
|
+
var po = vr(function(e) {
|
|
4388
4367
|
return function() {
|
|
4389
4368
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
4390
4369
|
};
|
|
4391
|
-
}),
|
|
4392
|
-
|
|
4370
|
+
}), Lr = function(e) {
|
|
4371
|
+
F(t, e);
|
|
4393
4372
|
function t() {
|
|
4394
4373
|
var r = e.call(this) || this;
|
|
4395
4374
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
4396
4375
|
}
|
|
4397
4376
|
return t.prototype.lift = function(r) {
|
|
4398
|
-
var i = new
|
|
4377
|
+
var i = new Gt(this, this);
|
|
4399
4378
|
return i.operator = r, i;
|
|
4400
4379
|
}, t.prototype._throwIfClosed = function() {
|
|
4401
4380
|
if (this.closed)
|
|
4402
|
-
throw new
|
|
4381
|
+
throw new po();
|
|
4403
4382
|
}, t.prototype.next = function(r) {
|
|
4404
4383
|
var i = this;
|
|
4405
4384
|
Le(function() {
|
|
@@ -4407,15 +4386,15 @@ var go = _r(function(e) {
|
|
|
4407
4386
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
4408
4387
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
|
4409
4388
|
try {
|
|
4410
|
-
for (var
|
|
4411
|
-
var l =
|
|
4389
|
+
for (var a = Je(i.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
4390
|
+
var l = s.value;
|
|
4412
4391
|
l.next(r);
|
|
4413
4392
|
}
|
|
4414
4393
|
} catch (u) {
|
|
4415
4394
|
n = { error: u };
|
|
4416
4395
|
} finally {
|
|
4417
4396
|
try {
|
|
4418
|
-
|
|
4397
|
+
s && !s.done && (o = a.return) && o.call(a);
|
|
4419
4398
|
} finally {
|
|
4420
4399
|
if (n)
|
|
4421
4400
|
throw n.error;
|
|
@@ -4455,21 +4434,21 @@ var go = _r(function(e) {
|
|
|
4455
4434
|
}, t.prototype._subscribe = function(r) {
|
|
4456
4435
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
4457
4436
|
}, t.prototype._innerSubscribe = function(r) {
|
|
4458
|
-
var i = this, n = this, o = n.hasError,
|
|
4459
|
-
return o ||
|
|
4460
|
-
i.currentObservers = null,
|
|
4437
|
+
var i = this, n = this, o = n.hasError, a = n.isStopped, s = n.observers;
|
|
4438
|
+
return o || a ? Er : (this.currentObservers = null, s.push(r), new Oe(function() {
|
|
4439
|
+
i.currentObservers = null, at(s, r);
|
|
4461
4440
|
}));
|
|
4462
4441
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
4463
|
-
var i = this, n = i.hasError, o = i.thrownError,
|
|
4464
|
-
n ? r.error(o) :
|
|
4442
|
+
var i = this, n = i.hasError, o = i.thrownError, a = i.isStopped;
|
|
4443
|
+
n ? r.error(o) : a && r.complete();
|
|
4465
4444
|
}, t.prototype.asObservable = function() {
|
|
4466
|
-
var r = new
|
|
4445
|
+
var r = new $t();
|
|
4467
4446
|
return r.source = this, r;
|
|
4468
4447
|
}, t.create = function(r, i) {
|
|
4469
|
-
return new
|
|
4448
|
+
return new Gt(r, i);
|
|
4470
4449
|
}, t;
|
|
4471
|
-
}(
|
|
4472
|
-
|
|
4450
|
+
}($t), Gt = function(e) {
|
|
4451
|
+
F(t, e);
|
|
4473
4452
|
function t(r, i) {
|
|
4474
4453
|
var n = e.call(this) || this;
|
|
4475
4454
|
return n.destination = r, n.source = i, n;
|
|
@@ -4485,54 +4464,54 @@ var go = _r(function(e) {
|
|
|
4485
4464
|
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || i === void 0 || i.call(r);
|
|
4486
4465
|
}, t.prototype._subscribe = function(r) {
|
|
4487
4466
|
var i, n;
|
|
4488
|
-
return (n = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(r)) !== null && n !== void 0 ? n :
|
|
4467
|
+
return (n = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(r)) !== null && n !== void 0 ? n : Er;
|
|
4489
4468
|
}, t;
|
|
4490
|
-
}(
|
|
4469
|
+
}(Lr), Sr = {
|
|
4491
4470
|
now: function() {
|
|
4492
|
-
return (
|
|
4471
|
+
return (Sr.delegate || Date).now();
|
|
4493
4472
|
},
|
|
4494
4473
|
delegate: void 0
|
|
4495
|
-
},
|
|
4496
|
-
|
|
4474
|
+
}, yo = function(e) {
|
|
4475
|
+
F(t, e);
|
|
4497
4476
|
function t(r, i, n) {
|
|
4498
|
-
r === void 0 && (r = 1 / 0), i === void 0 && (i = 1 / 0), n === void 0 && (n =
|
|
4477
|
+
r === void 0 && (r = 1 / 0), i === void 0 && (i = 1 / 0), n === void 0 && (n = Sr);
|
|
4499
4478
|
var o = e.call(this) || this;
|
|
4500
4479
|
return o._bufferSize = r, o._windowTime = i, o._timestampProvider = n, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = i === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, i), o;
|
|
4501
4480
|
}
|
|
4502
4481
|
return t.prototype.next = function(r) {
|
|
4503
|
-
var i = this, n = i.isStopped, o = i._buffer,
|
|
4504
|
-
n || (o.push(r), !
|
|
4482
|
+
var i = this, n = i.isStopped, o = i._buffer, a = i._infiniteTimeWindow, s = i._timestampProvider, l = i._windowTime;
|
|
4483
|
+
n || (o.push(r), !a && o.push(s.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
4505
4484
|
}, t.prototype._subscribe = function(r) {
|
|
4506
4485
|
this._throwIfClosed(), this._trimBuffer();
|
|
4507
|
-
for (var i = this._innerSubscribe(r), n = this, o = n._infiniteTimeWindow,
|
|
4508
|
-
r.next(
|
|
4486
|
+
for (var i = this._innerSubscribe(r), n = this, o = n._infiniteTimeWindow, a = n._buffer, s = a.slice(), l = 0; l < s.length && !r.closed; l += o ? 1 : 2)
|
|
4487
|
+
r.next(s[l]);
|
|
4509
4488
|
return this._checkFinalizedStatuses(r), i;
|
|
4510
4489
|
}, t.prototype._trimBuffer = function() {
|
|
4511
|
-
var r = this, i = r._bufferSize, n = r._timestampProvider, o = r._buffer,
|
|
4512
|
-
if (i < 1 / 0 &&
|
|
4490
|
+
var r = this, i = r._bufferSize, n = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * i;
|
|
4491
|
+
if (i < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
4513
4492
|
for (var l = n.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
4514
4493
|
u = h;
|
|
4515
4494
|
u && o.splice(0, u + 1);
|
|
4516
4495
|
}
|
|
4517
4496
|
}, t;
|
|
4518
|
-
}(
|
|
4519
|
-
const
|
|
4520
|
-
if (
|
|
4521
|
-
const r = new
|
|
4522
|
-
|
|
4497
|
+
}(Lr);
|
|
4498
|
+
const Ft = [], jt = {}, bo = (e, t = 0) => {
|
|
4499
|
+
if (Ft.indexOf(e) == -1) {
|
|
4500
|
+
const r = new yo(t);
|
|
4501
|
+
jt[e] = r, Ft.push(e);
|
|
4523
4502
|
}
|
|
4524
|
-
return
|
|
4503
|
+
return jt[e];
|
|
4525
4504
|
};
|
|
4526
|
-
window.emWidgets = { topic:
|
|
4527
|
-
const
|
|
4505
|
+
window.emWidgets = { topic: bo };
|
|
4506
|
+
const go = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4528
4507
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4529
|
-
function
|
|
4508
|
+
function vo(e, t) {
|
|
4530
4509
|
if (e) {
|
|
4531
4510
|
const r = document.createElement("style");
|
|
4532
4511
|
r.innerHTML = t, e.appendChild(r);
|
|
4533
4512
|
}
|
|
4534
4513
|
}
|
|
4535
|
-
function
|
|
4514
|
+
function Eo(e, t) {
|
|
4536
4515
|
if (!e || !t)
|
|
4537
4516
|
return;
|
|
4538
4517
|
const r = new URL(t);
|
|
@@ -4543,7 +4522,7 @@ function xo(e, t) {
|
|
|
4543
4522
|
console.error("There was an error while trying to load client styling from URL", i);
|
|
4544
4523
|
});
|
|
4545
4524
|
}
|
|
4546
|
-
function
|
|
4525
|
+
function _o(e, t, r) {
|
|
4547
4526
|
if (window.emMessageBus) {
|
|
4548
4527
|
const i = document.createElement("style");
|
|
4549
4528
|
window.emMessageBus.subscribe(t, (n) => {
|
|
@@ -4551,78 +4530,78 @@ function To(e, t, r) {
|
|
|
4551
4530
|
});
|
|
4552
4531
|
}
|
|
4553
4532
|
}
|
|
4554
|
-
function
|
|
4555
|
-
|
|
4533
|
+
function xo(e) {
|
|
4534
|
+
Xr(e, "svelte-19ml84y", ':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}.svelte-19ml84y.svelte-19ml84y,.svelte-19ml84y.svelte-19ml84y::before,.svelte-19ml84y.svelte-19ml84y::after{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2.svelte-19ml84y.svelte-19ml84y{color:var(--emw--color-white, #FFFFFF)}button.svelte-19ml84y.svelte-19ml84y{font-size:1rem;border:0;padding:0}.ExpandButton.svelte-19ml84y.svelte-19ml84y{color:#999;display:flex;justify-content:center;align-items:center;margin-right:-14px;background:transparent}.ExpandButton.svelte-19ml84y svg.svelte-19ml84y{width:28px;height:auto;margin-left:-4px}.extended.svelte-19ml84y.svelte-19ml84y{transform:rotate(180deg)}.HistoryWrapper.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column}.HistoryWrapper.Desktop.svelte-19ml84y.svelte-19ml84y{width:320px;padding:0 12px;margin:12px auto}.hidden.svelte-19ml84y.svelte-19ml84y{display:none}.HistoryRow.svelte-19ml84y.svelte-19ml84y{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.GeneralLimitInformation.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column;gap:4px}.LimitType.svelte-19ml84y.svelte-19ml84y{font-size:1.3rem}.LimitAmountPeriod.svelte-19ml84y.svelte-19ml84y{color:#999}.LimitContainer.svelte-19ml84y.svelte-19ml84y{animation:svelte-19ml84y-animateEntry 0.7s ease-in}@keyframes svelte-19ml84y-animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}');
|
|
4556
4535
|
}
|
|
4557
|
-
function
|
|
4536
|
+
function kt(e, t, r) {
|
|
4558
4537
|
const i = e.slice();
|
|
4559
4538
|
return i[37] = t[r], i[38] = t, i[39] = r, i;
|
|
4560
4539
|
}
|
|
4561
|
-
function
|
|
4540
|
+
function To(e) {
|
|
4562
4541
|
let t, r, i, n = (
|
|
4563
4542
|
/*$_*/
|
|
4564
4543
|
e[9]("expandLimits") + ""
|
|
4565
|
-
), o,
|
|
4544
|
+
), o, a, s, l, u, h, c, f, p, y = _t(
|
|
4566
4545
|
/*lazyShowedHistoryArray*/
|
|
4567
4546
|
e[7]
|
|
4568
4547
|
), d = [];
|
|
4569
4548
|
for (let v = 0; v < y.length; v += 1)
|
|
4570
|
-
d[v] =
|
|
4549
|
+
d[v] = Vt(kt(e, y, v));
|
|
4571
4550
|
return {
|
|
4572
4551
|
c() {
|
|
4573
|
-
t =
|
|
4552
|
+
t = H("div"), r = H("div"), i = H("button"), o = U(n), a = ze(), s = De("svg"), l = De("path"), u = De("path"), h = ze(), c = H("div");
|
|
4574
4553
|
for (let v = 0; v < d.length; v += 1)
|
|
4575
4554
|
d[v].c();
|
|
4576
|
-
|
|
4577
|
-
|
|
4555
|
+
x(l, "d", "M10.5 15l7.5 7.5 7.5-7.5z"), x(l, "class", "svelte-19ml84y"), x(u, "d", "M0 0h36v36h-36z"), x(u, "fill", "none"), x(u, "class", "svelte-19ml84y"), x(s, "class", "ExpandArrow svelte-19ml84y"), x(s, "xmlns", "http://www.w3.org/2000/svg"), x(s, "width", "36"), x(s, "height", "36"), x(s, "viewBox", "0 0 36 36"), x(s, "fill", "#999"), ge(
|
|
4556
|
+
s,
|
|
4578
4557
|
"extended",
|
|
4579
4558
|
/*extended*/
|
|
4580
4559
|
e[8]
|
|
4581
|
-
),
|
|
4560
|
+
), x(i, "class", "ExpandButton svelte-19ml84y"), x(c, "class", "HistoryDisplayArea svelte-19ml84y"), ge(
|
|
4582
4561
|
c,
|
|
4583
4562
|
"hidden",
|
|
4584
4563
|
/*hidden*/
|
|
4585
4564
|
e[5]
|
|
4586
|
-
),
|
|
4587
|
-
(e[10] ? "Desktop" : "") + " svelte-19ml84y"),
|
|
4565
|
+
), x(r, "class", "HistoryWrapper " + /*isDesktop*/
|
|
4566
|
+
(e[10] ? "Desktop" : "") + " svelte-19ml84y"), x(t, "class", "player-account-gaming-limits-history-2 svelte-19ml84y");
|
|
4588
4567
|
},
|
|
4589
|
-
m(v,
|
|
4590
|
-
X(v, t,
|
|
4591
|
-
for (let
|
|
4592
|
-
d[
|
|
4593
|
-
f || (p =
|
|
4568
|
+
m(v, P) {
|
|
4569
|
+
X(v, t, P), T(t, r), T(r, i), T(i, o), T(i, a), T(i, s), T(s, l), T(s, u), T(r, h), T(r, c);
|
|
4570
|
+
for (let b = 0; b < d.length; b += 1)
|
|
4571
|
+
d[b] && d[b].m(c, null);
|
|
4572
|
+
f || (p = Yr(
|
|
4594
4573
|
i,
|
|
4595
4574
|
"click",
|
|
4596
4575
|
/*toggleHistoryDisplayArea*/
|
|
4597
4576
|
e[11]
|
|
4598
4577
|
), f = !0);
|
|
4599
4578
|
},
|
|
4600
|
-
p(v,
|
|
4601
|
-
if (
|
|
4579
|
+
p(v, P) {
|
|
4580
|
+
if (P[0] & /*$_*/
|
|
4602
4581
|
512 && n !== (n = /*$_*/
|
|
4603
|
-
v[9]("expandLimits") + "") && k(o, n),
|
|
4604
|
-
256 &&
|
|
4605
|
-
|
|
4582
|
+
v[9]("expandLimits") + "") && k(o, n), P[0] & /*extended*/
|
|
4583
|
+
256 && ge(
|
|
4584
|
+
s,
|
|
4606
4585
|
"extended",
|
|
4607
4586
|
/*extended*/
|
|
4608
4587
|
v[8]
|
|
4609
|
-
),
|
|
4588
|
+
), P[0] & /*numberofentries, limitContainer, lazyShowedHistoryArray, $_*/
|
|
4610
4589
|
650) {
|
|
4611
|
-
y =
|
|
4590
|
+
y = _t(
|
|
4612
4591
|
/*lazyShowedHistoryArray*/
|
|
4613
4592
|
v[7]
|
|
4614
4593
|
);
|
|
4615
|
-
let
|
|
4616
|
-
for (
|
|
4617
|
-
const
|
|
4618
|
-
d[
|
|
4594
|
+
let b;
|
|
4595
|
+
for (b = 0; b < y.length; b += 1) {
|
|
4596
|
+
const w = kt(v, y, b);
|
|
4597
|
+
d[b] ? d[b].p(w, P) : (d[b] = Vt(w), d[b].c(), d[b].m(c, null));
|
|
4619
4598
|
}
|
|
4620
|
-
for (;
|
|
4621
|
-
d[
|
|
4599
|
+
for (; b < d.length; b += 1)
|
|
4600
|
+
d[b].d(1);
|
|
4622
4601
|
d.length = y.length;
|
|
4623
4602
|
}
|
|
4624
|
-
|
|
4625
|
-
32 &&
|
|
4603
|
+
P[0] & /*hidden*/
|
|
4604
|
+
32 && ge(
|
|
4626
4605
|
c,
|
|
4627
4606
|
"hidden",
|
|
4628
4607
|
/*hidden*/
|
|
@@ -4630,14 +4609,14 @@ function So(e) {
|
|
|
4630
4609
|
);
|
|
4631
4610
|
},
|
|
4632
4611
|
d(v) {
|
|
4633
|
-
v && V(t),
|
|
4612
|
+
v && V(t), Qr(d, v), f = !1, p();
|
|
4634
4613
|
}
|
|
4635
4614
|
};
|
|
4636
4615
|
}
|
|
4637
|
-
function
|
|
4638
|
-
return { c:
|
|
4616
|
+
function Lo(e) {
|
|
4617
|
+
return { c: B, m: B, p: B, d: B };
|
|
4639
4618
|
}
|
|
4640
|
-
function
|
|
4619
|
+
function So(e) {
|
|
4641
4620
|
let t, r = (
|
|
4642
4621
|
/*lang*/
|
|
4643
4622
|
(e[0] ? (
|
|
@@ -4647,10 +4626,10 @@ function Ao(e) {
|
|
|
4647
4626
|
), i;
|
|
4648
4627
|
return {
|
|
4649
4628
|
c() {
|
|
4650
|
-
t =
|
|
4629
|
+
t = H("p"), i = U(r), x(t, "class", "svelte-19ml84y");
|
|
4651
4630
|
},
|
|
4652
4631
|
m(n, o) {
|
|
4653
|
-
X(n, t, o),
|
|
4632
|
+
X(n, t, o), T(t, i);
|
|
4654
4633
|
},
|
|
4655
4634
|
p(n, o) {
|
|
4656
4635
|
o[0] & /*lang, $_*/
|
|
@@ -4665,11 +4644,11 @@ function Ao(e) {
|
|
|
4665
4644
|
}
|
|
4666
4645
|
};
|
|
4667
4646
|
}
|
|
4668
|
-
function
|
|
4647
|
+
function wo(e) {
|
|
4669
4648
|
let t, r, i, n = (
|
|
4670
4649
|
/*history*/
|
|
4671
4650
|
e[37].type + ""
|
|
4672
|
-
), o,
|
|
4651
|
+
), o, a, s = (
|
|
4673
4652
|
/*history*/
|
|
4674
4653
|
e[37].amount + ""
|
|
4675
4654
|
), l, u, h = (
|
|
@@ -4678,17 +4657,17 @@ function Po(e) {
|
|
|
4678
4657
|
), c;
|
|
4679
4658
|
return {
|
|
4680
4659
|
c() {
|
|
4681
|
-
t =
|
|
4660
|
+
t = H("div"), r = H("span"), i = H("span"), o = U(n), a = H("span"), l = U(s), u = H("span"), c = U(h), x(i, "class", "LimitType svelte-19ml84y"), x(a, "class", "LimitAmountPeriod svelte-19ml84y"), x(r, "class", "GeneralLimitInformation svelte-19ml84y"), x(u, "class", "DateLimitInformation svelte-19ml84y"), x(t, "class", "HistoryRow svelte-19ml84y");
|
|
4682
4661
|
},
|
|
4683
4662
|
m(f, p) {
|
|
4684
|
-
X(f, t, p),
|
|
4663
|
+
X(f, t, p), T(t, r), T(r, i), T(i, o), T(r, a), T(a, l), T(t, u), T(u, c);
|
|
4685
4664
|
},
|
|
4686
4665
|
p(f, p) {
|
|
4687
4666
|
p[0] & /*lazyShowedHistoryArray*/
|
|
4688
4667
|
128 && n !== (n = /*history*/
|
|
4689
4668
|
f[37].type + "") && k(o, n), p[0] & /*lazyShowedHistoryArray*/
|
|
4690
|
-
128 &&
|
|
4691
|
-
f[37].amount + "") && k(l,
|
|
4669
|
+
128 && s !== (s = /*history*/
|
|
4670
|
+
f[37].amount + "") && k(l, s), p[0] & /*lazyShowedHistoryArray*/
|
|
4692
4671
|
128 && h !== (h = /*history*/
|
|
4693
4672
|
f[37].date + "") && k(c, h);
|
|
4694
4673
|
},
|
|
@@ -4697,11 +4676,11 @@ function Po(e) {
|
|
|
4697
4676
|
}
|
|
4698
4677
|
};
|
|
4699
4678
|
}
|
|
4700
|
-
function
|
|
4679
|
+
function Ao(e) {
|
|
4701
4680
|
let t, r, i, n = (
|
|
4702
4681
|
/*history*/
|
|
4703
4682
|
e[37].type + ""
|
|
4704
|
-
), o,
|
|
4683
|
+
), o, a, s = (
|
|
4705
4684
|
/*$_*/
|
|
4706
4685
|
e[9]("limitRemoved") + ""
|
|
4707
4686
|
), l, u, h = (
|
|
@@ -4710,17 +4689,17 @@ function Ho(e) {
|
|
|
4710
4689
|
), c;
|
|
4711
4690
|
return {
|
|
4712
4691
|
c() {
|
|
4713
|
-
t =
|
|
4692
|
+
t = H("div"), r = H("span"), i = H("span"), o = U(n), a = H("span"), l = U(s), u = H("span"), c = U(h), x(i, "class", "LimitType svelte-19ml84y"), x(a, "class", "LimitAmountPeriod svelte-19ml84y"), x(r, "class", "GeneralLimitInformation svelte-19ml84y"), x(u, "class", "DateLimitInformation svelte-19ml84y"), x(t, "class", "HistoryRow svelte-19ml84y");
|
|
4714
4693
|
},
|
|
4715
4694
|
m(f, p) {
|
|
4716
|
-
X(f, t, p),
|
|
4695
|
+
X(f, t, p), T(t, r), T(r, i), T(i, o), T(r, a), T(a, l), T(t, u), T(u, c);
|
|
4717
4696
|
},
|
|
4718
4697
|
p(f, p) {
|
|
4719
4698
|
p[0] & /*lazyShowedHistoryArray*/
|
|
4720
4699
|
128 && n !== (n = /*history*/
|
|
4721
4700
|
f[37].type + "") && k(o, n), p[0] & /*$_*/
|
|
4722
|
-
512 &&
|
|
4723
|
-
f[9]("limitRemoved") + "") && k(l,
|
|
4701
|
+
512 && s !== (s = /*$_*/
|
|
4702
|
+
f[9]("limitRemoved") + "") && k(l, s), p[0] & /*lazyShowedHistoryArray*/
|
|
4724
4703
|
128 && h !== (h = /*history*/
|
|
4725
4704
|
f[37].date + "") && k(c, h);
|
|
4726
4705
|
},
|
|
@@ -4729,7 +4708,7 @@ function Ho(e) {
|
|
|
4729
4708
|
}
|
|
4730
4709
|
};
|
|
4731
4710
|
}
|
|
4732
|
-
function
|
|
4711
|
+
function Vt(e) {
|
|
4733
4712
|
let t, r, i, n = (
|
|
4734
4713
|
/*index*/
|
|
4735
4714
|
e[39]
|
|
@@ -4737,10 +4716,10 @@ function Xt(e) {
|
|
|
4737
4716
|
function o(h, c) {
|
|
4738
4717
|
return (
|
|
4739
4718
|
/*history*/
|
|
4740
|
-
h[37].removed ?
|
|
4719
|
+
h[37].removed ? Ao : wo
|
|
4741
4720
|
);
|
|
4742
4721
|
}
|
|
4743
|
-
let
|
|
4722
|
+
let a = o(e), s = a(e);
|
|
4744
4723
|
const l = () => (
|
|
4745
4724
|
/*div_binding*/
|
|
4746
4725
|
e[22](t, n)
|
|
@@ -4750,98 +4729,98 @@ function Xt(e) {
|
|
|
4750
4729
|
);
|
|
4751
4730
|
return {
|
|
4752
4731
|
c() {
|
|
4753
|
-
t =
|
|
4732
|
+
t = H("div"), s.c(), r = ze(), x(t, "class", i = vt(
|
|
4754
4733
|
/*index*/
|
|
4755
4734
|
e[39] > +/*numberofentries*/
|
|
4756
4735
|
e[1] ? "LimitContainer" : ""
|
|
4757
4736
|
) + " svelte-19ml84y");
|
|
4758
4737
|
},
|
|
4759
4738
|
m(h, c) {
|
|
4760
|
-
X(h, t, c),
|
|
4739
|
+
X(h, t, c), s.m(t, null), T(t, r), l();
|
|
4761
4740
|
},
|
|
4762
4741
|
p(h, c) {
|
|
4763
|
-
e = h,
|
|
4764
|
-
2 && i !== (i =
|
|
4742
|
+
e = h, a === (a = o(e)) && s ? s.p(e, c) : (s.d(1), s = a(e), s && (s.c(), s.m(t, r))), c[0] & /*numberofentries*/
|
|
4743
|
+
2 && i !== (i = vt(
|
|
4765
4744
|
/*index*/
|
|
4766
4745
|
e[39] > +/*numberofentries*/
|
|
4767
4746
|
e[1] ? "LimitContainer" : ""
|
|
4768
|
-
) + " svelte-19ml84y") &&
|
|
4747
|
+
) + " svelte-19ml84y") && x(t, "class", i), n !== /*index*/
|
|
4769
4748
|
e[39] && (u(), n = /*index*/
|
|
4770
4749
|
e[39], l());
|
|
4771
4750
|
},
|
|
4772
4751
|
d(h) {
|
|
4773
|
-
h && V(t),
|
|
4752
|
+
h && V(t), s.d(), u();
|
|
4774
4753
|
}
|
|
4775
4754
|
};
|
|
4776
4755
|
}
|
|
4777
|
-
function
|
|
4756
|
+
function Ho(e) {
|
|
4778
4757
|
let t;
|
|
4779
|
-
function r(o,
|
|
4758
|
+
function r(o, a) {
|
|
4780
4759
|
return (
|
|
4781
4760
|
/*hasErrors*/
|
|
4782
|
-
o[6] ?
|
|
4761
|
+
o[6] ? So : (
|
|
4783
4762
|
/*isLoading*/
|
|
4784
|
-
o[4] ?
|
|
4763
|
+
o[4] ? Lo : To
|
|
4785
4764
|
)
|
|
4786
4765
|
);
|
|
4787
4766
|
}
|
|
4788
4767
|
let i = r(e), n = i(e);
|
|
4789
4768
|
return {
|
|
4790
4769
|
c() {
|
|
4791
|
-
t =
|
|
4770
|
+
t = H("div"), n.c(), x(t, "class", "svelte-19ml84y");
|
|
4792
4771
|
},
|
|
4793
|
-
m(o,
|
|
4794
|
-
X(o, t,
|
|
4772
|
+
m(o, a) {
|
|
4773
|
+
X(o, t, a), n.m(t, null), e[23](t);
|
|
4795
4774
|
},
|
|
4796
|
-
p(o,
|
|
4797
|
-
i === (i = r(o)) && n ? n.p(o,
|
|
4775
|
+
p(o, a) {
|
|
4776
|
+
i === (i = r(o)) && n ? n.p(o, a) : (n.d(1), n = i(o), n && (n.c(), n.m(t, null)));
|
|
4798
4777
|
},
|
|
4799
|
-
i:
|
|
4800
|
-
o:
|
|
4778
|
+
i: B,
|
|
4779
|
+
o: B,
|
|
4801
4780
|
d(o) {
|
|
4802
4781
|
o && V(t), n.d(), e[23](null);
|
|
4803
4782
|
}
|
|
4804
4783
|
};
|
|
4805
4784
|
}
|
|
4806
|
-
function
|
|
4785
|
+
function Po(e, t, r) {
|
|
4807
4786
|
let i;
|
|
4808
|
-
|
|
4809
|
-
let n = window.navigator.userAgent, o = !
|
|
4810
|
-
const
|
|
4811
|
-
fetch(
|
|
4812
|
-
Object.keys(
|
|
4813
|
-
|
|
4787
|
+
Wr(e, to, (m) => r(9, i = m));
|
|
4788
|
+
let n = window.navigator.userAgent, o = !go(n), { lang: a = "" } = t, { userid: s = "" } = t, { session: l = "" } = t, { endpoint: u = "" } = t, { apiversion: h = "" } = t, { numberofentries: c = "10" } = t, { customcurrencysymbols: f = "" } = t, { limitformat: p = "" } = t, { clientstyling: y = "" } = t, { clientstylingurl: d = "" } = t, { mbsource: v } = t, { translationurl: P = "" } = t, b, w = new Array(), M = parseInt(c, 10), R = !1, D = !0, W = [], pe = [], de = !0, Ce = !1, se = { EUR: "€", RON: "lei", TRY: "₺" };
|
|
4789
|
+
const wr = () => {
|
|
4790
|
+
fetch(P).then((L) => L.json()).then((L) => {
|
|
4791
|
+
Object.keys(L).forEach((C) => {
|
|
4792
|
+
Rt(C, L[C]);
|
|
4814
4793
|
});
|
|
4815
|
-
}).catch((
|
|
4816
|
-
console.log(
|
|
4794
|
+
}).catch((L) => {
|
|
4795
|
+
console.log(L);
|
|
4817
4796
|
});
|
|
4818
4797
|
};
|
|
4819
|
-
Object.keys(
|
|
4820
|
-
|
|
4798
|
+
Object.keys(Ve).forEach((m) => {
|
|
4799
|
+
Rt(m, Ve[m]);
|
|
4821
4800
|
});
|
|
4822
|
-
const
|
|
4823
|
-
let m = h === "gmcore" ? `/v2/player/${
|
|
4824
|
-
|
|
4801
|
+
const Ar = () => {
|
|
4802
|
+
let m = h === "gmcore" ? `/v2/player/${s}/transactions/limit` : `/v1/player/${s}/limits/monetary/history`, L = new URL(m, u);
|
|
4803
|
+
L.searchParams.append("startDate", `${(/* @__PURE__ */ new Date("2022")).toISOString()}`), L.searchParams.append("endDate", `${(/* @__PURE__ */ new Date("2099")).toISOString()}`), L.searchParams.append("limit", "10000");
|
|
4825
4804
|
let C = {
|
|
4826
4805
|
method: "GET",
|
|
4827
4806
|
headers: { "X-SessionID": l }
|
|
4828
4807
|
};
|
|
4829
|
-
fetch(
|
|
4808
|
+
fetch(L.href, C).then((A) => {
|
|
4830
4809
|
if (A.status >= 300)
|
|
4831
|
-
throw r(4,
|
|
4810
|
+
throw r(4, D = !1), r(6, R = !0), new Error("There was an error fetching the limits");
|
|
4832
4811
|
return A.json();
|
|
4833
4812
|
}).then(
|
|
4834
4813
|
(A) => {
|
|
4835
|
-
A.length && (W = Hr(A), r(7, pe = W.slice(0,
|
|
4814
|
+
A.length && (W = Hr(A), r(7, pe = W.slice(0, M))), r(4, D = !1);
|
|
4836
4815
|
},
|
|
4837
4816
|
(A) => {
|
|
4838
4817
|
console.error("There was an error", A), r(6, R = !0);
|
|
4839
4818
|
}
|
|
4840
4819
|
);
|
|
4841
4820
|
}, Hr = (m) => {
|
|
4842
|
-
const
|
|
4821
|
+
const L = !!Ve[a];
|
|
4843
4822
|
return m.map((A) => {
|
|
4844
|
-
let
|
|
4823
|
+
let $ = {
|
|
4845
4824
|
amount: "",
|
|
4846
4825
|
currency: "",
|
|
4847
4826
|
date: "",
|
|
@@ -4849,83 +4828,83 @@ function Io(e, t, r) {
|
|
|
4849
4828
|
type: "",
|
|
4850
4829
|
removed: !1
|
|
4851
4830
|
};
|
|
4852
|
-
return
|
|
4831
|
+
return $.amount = Pr(A), $.currency = L ? se[A.limitCurrencyCode] : A.limitCurrencyCode, $.date = new Intl.DateTimeFormat("de", { dateStyle: "medium" }).format(new Date(A.limitDate)), $.period = i(`${A.limitPeriod.toLowerCase()}`), $.type = h === "gmcore" ? i(`historyLimitType${A.limitType.split(" ")[0]}`) : i(`historyLimitType${A.limitType.split(" ")[0]}`) + " " + i(`historyProductType${A.limitProductType}`), $.removed = A.limitAmount === -1, $;
|
|
4853
4832
|
});
|
|
4854
|
-
},
|
|
4855
|
-
let
|
|
4833
|
+
}, Pr = (m) => {
|
|
4834
|
+
let L = p || Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(m.limitAmount);
|
|
4856
4835
|
if (!p) {
|
|
4857
|
-
let
|
|
4858
|
-
return `${
|
|
4836
|
+
let $r = se[m.limitCurrencyCode] || m.limitCurrencyCode;
|
|
4837
|
+
return `${L}${$r}`;
|
|
4859
4838
|
}
|
|
4860
4839
|
typeof m.limitAmount == "string" && m.limitAmount.includes(",") && (m.limitAmount = m.limitAmount.replaceAll(",", ""));
|
|
4861
|
-
const C =
|
|
4840
|
+
const C = L.match(/\{(\d+)decimals\}/), A = C ? parseInt(C[1], 10) : 2, $ = C ? new RegExp("\\{\\d+decimals\\}", "g") : "{decimals}";
|
|
4862
4841
|
let ye = parseFloat(m.limitAmount).toFixed(A);
|
|
4863
|
-
const [
|
|
4864
|
-
let [
|
|
4865
|
-
return
|
|
4866
|
-
|
|
4867
|
-
ye.split(
|
|
4868
|
-
),
|
|
4842
|
+
const [Mr, Ne] = p.includes(".") ? [",", "."] : [".", ","];
|
|
4843
|
+
let [Re, Dr] = ye.split(".");
|
|
4844
|
+
return Re = Re.replace(/\B(?=(\d{3})+(?!\d))/g, Mr), ye = `${Re}${Ne}${Dr}`, L = L.replace("{currency}", se[m.limitCurrencyCode] || m.limitCurrencyCode).replace("{amount}", ye.split(Ne)[0]).replace(
|
|
4845
|
+
$,
|
|
4846
|
+
ye.split(Ne)[1]
|
|
4847
|
+
), L;
|
|
4869
4848
|
}, Ir = () => {
|
|
4870
|
-
r(5, de = !de), r(8,
|
|
4849
|
+
r(5, de = !de), r(8, Ce = !Ce);
|
|
4871
4850
|
};
|
|
4872
|
-
let
|
|
4873
|
-
m.forEach((
|
|
4874
|
-
|
|
4851
|
+
let pt = new IntersectionObserver((m) => {
|
|
4852
|
+
m.forEach((L) => {
|
|
4853
|
+
L.isIntersecting && (M += parseInt(c, 10) || 10, pe.length < W.length && r(7, pe = W.slice(0, M)));
|
|
4875
4854
|
});
|
|
4876
4855
|
});
|
|
4877
4856
|
const Br = () => {
|
|
4878
|
-
|
|
4879
|
-
},
|
|
4857
|
+
pt.observe(w[w.length - 1]);
|
|
4858
|
+
}, Or = () => {
|
|
4880
4859
|
if (!f)
|
|
4881
4860
|
return;
|
|
4882
4861
|
let m = {};
|
|
4883
|
-
f.split(",").forEach((
|
|
4884
|
-
let C =
|
|
4862
|
+
f.split(",").forEach((L) => {
|
|
4863
|
+
let C = L.split(":");
|
|
4885
4864
|
m[C[0].trim()] = C[1].trim();
|
|
4886
|
-
}),
|
|
4887
|
-
},
|
|
4888
|
-
|
|
4865
|
+
}), se = be(be({}, se), m);
|
|
4866
|
+
}, Cr = () => {
|
|
4867
|
+
ro(a);
|
|
4889
4868
|
};
|
|
4890
|
-
|
|
4891
|
-
|
|
4869
|
+
ei(() => () => {
|
|
4870
|
+
pt.unobserve(w[w.length - 1]);
|
|
4892
4871
|
});
|
|
4893
|
-
function
|
|
4872
|
+
function Nr(m, L) {
|
|
4894
4873
|
Se[m ? "unshift" : "push"](() => {
|
|
4895
|
-
|
|
4874
|
+
w[L] = m, r(3, w);
|
|
4896
4875
|
});
|
|
4897
4876
|
}
|
|
4898
|
-
function
|
|
4877
|
+
function Rr(m) {
|
|
4899
4878
|
Se[m ? "unshift" : "push"](() => {
|
|
4900
|
-
|
|
4879
|
+
b = m, r(2, b);
|
|
4901
4880
|
});
|
|
4902
4881
|
}
|
|
4903
4882
|
return e.$$set = (m) => {
|
|
4904
|
-
"lang" in m && r(0,
|
|
4883
|
+
"lang" in m && r(0, a = m.lang), "userid" in m && r(12, s = m.userid), "session" in m && r(13, l = m.session), "endpoint" in m && r(14, u = m.endpoint), "apiversion" in m && r(15, h = m.apiversion), "numberofentries" in m && r(1, c = m.numberofentries), "customcurrencysymbols" in m && r(16, f = m.customcurrencysymbols), "limitformat" in m && r(17, p = m.limitformat), "clientstyling" in m && r(18, y = m.clientstyling), "clientstylingurl" in m && r(19, d = m.clientstylingurl), "mbsource" in m && r(20, v = m.mbsource), "translationurl" in m && r(21, P = m.translationurl);
|
|
4905
4884
|
}, e.$$.update = () => {
|
|
4906
4885
|
e.$$.dirty[0] & /*customcurrencysymbols*/
|
|
4907
|
-
65536 && f &&
|
|
4908
|
-
61440 && u &&
|
|
4909
|
-
56 &&
|
|
4910
|
-
1 &&
|
|
4911
|
-
262148 && y &&
|
|
4912
|
-
524292 && d &&
|
|
4913
|
-
1048580 && v &&
|
|
4914
|
-
2097156 &&
|
|
4886
|
+
65536 && f && Or(), e.$$.dirty[0] & /*endpoint, userid, session, apiversion*/
|
|
4887
|
+
61440 && u && s && l && h && Ar(), e.$$.dirty[0] & /*limitContainer, isLoading, hidden*/
|
|
4888
|
+
56 && w[0] && !D && !de && Br(), e.$$.dirty[0] & /*lang*/
|
|
4889
|
+
1 && a && Cr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4890
|
+
262148 && y && b && vo(b, y), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4891
|
+
524292 && d && b && Eo(b, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4892
|
+
1048580 && v && b && _o(b, `${v}.Style`), e.$$.dirty[0] & /*translationurl, customStylingContainer*/
|
|
4893
|
+
2097156 && P && b && wr();
|
|
4915
4894
|
}, [
|
|
4916
|
-
|
|
4895
|
+
a,
|
|
4917
4896
|
c,
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4897
|
+
b,
|
|
4898
|
+
w,
|
|
4899
|
+
D,
|
|
4921
4900
|
de,
|
|
4922
4901
|
R,
|
|
4923
4902
|
pe,
|
|
4924
|
-
|
|
4903
|
+
Ce,
|
|
4925
4904
|
i,
|
|
4926
4905
|
o,
|
|
4927
4906
|
Ir,
|
|
4928
|
-
|
|
4907
|
+
s,
|
|
4929
4908
|
l,
|
|
4930
4909
|
u,
|
|
4931
4910
|
h,
|
|
@@ -4934,19 +4913,19 @@ function Io(e, t, r) {
|
|
|
4934
4913
|
y,
|
|
4935
4914
|
d,
|
|
4936
4915
|
v,
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4916
|
+
P,
|
|
4917
|
+
Nr,
|
|
4918
|
+
Rr
|
|
4940
4919
|
];
|
|
4941
4920
|
}
|
|
4942
|
-
class
|
|
4921
|
+
class Io extends fi {
|
|
4943
4922
|
constructor(t) {
|
|
4944
|
-
super(),
|
|
4923
|
+
super(), hi(
|
|
4945
4924
|
this,
|
|
4946
4925
|
t,
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4926
|
+
Po,
|
|
4927
|
+
Ho,
|
|
4928
|
+
Xt,
|
|
4950
4929
|
{
|
|
4951
4930
|
lang: 0,
|
|
4952
4931
|
userid: 12,
|
|
@@ -4961,7 +4940,7 @@ class Bo extends mi {
|
|
|
4961
4940
|
mbsource: 20,
|
|
4962
4941
|
translationurl: 21
|
|
4963
4942
|
},
|
|
4964
|
-
|
|
4943
|
+
xo,
|
|
4965
4944
|
[-1, -1]
|
|
4966
4945
|
);
|
|
4967
4946
|
}
|
|
@@ -4969,76 +4948,76 @@ class Bo extends mi {
|
|
|
4969
4948
|
return this.$$.ctx[0];
|
|
4970
4949
|
}
|
|
4971
4950
|
set lang(t) {
|
|
4972
|
-
this.$$set({ lang: t }),
|
|
4951
|
+
this.$$set({ lang: t }), O();
|
|
4973
4952
|
}
|
|
4974
4953
|
get userid() {
|
|
4975
4954
|
return this.$$.ctx[12];
|
|
4976
4955
|
}
|
|
4977
4956
|
set userid(t) {
|
|
4978
|
-
this.$$set({ userid: t }),
|
|
4957
|
+
this.$$set({ userid: t }), O();
|
|
4979
4958
|
}
|
|
4980
4959
|
get session() {
|
|
4981
4960
|
return this.$$.ctx[13];
|
|
4982
4961
|
}
|
|
4983
4962
|
set session(t) {
|
|
4984
|
-
this.$$set({ session: t }),
|
|
4963
|
+
this.$$set({ session: t }), O();
|
|
4985
4964
|
}
|
|
4986
4965
|
get endpoint() {
|
|
4987
4966
|
return this.$$.ctx[14];
|
|
4988
4967
|
}
|
|
4989
4968
|
set endpoint(t) {
|
|
4990
|
-
this.$$set({ endpoint: t }),
|
|
4969
|
+
this.$$set({ endpoint: t }), O();
|
|
4991
4970
|
}
|
|
4992
4971
|
get apiversion() {
|
|
4993
4972
|
return this.$$.ctx[15];
|
|
4994
4973
|
}
|
|
4995
4974
|
set apiversion(t) {
|
|
4996
|
-
this.$$set({ apiversion: t }),
|
|
4975
|
+
this.$$set({ apiversion: t }), O();
|
|
4997
4976
|
}
|
|
4998
4977
|
get numberofentries() {
|
|
4999
4978
|
return this.$$.ctx[1];
|
|
5000
4979
|
}
|
|
5001
4980
|
set numberofentries(t) {
|
|
5002
|
-
this.$$set({ numberofentries: t }),
|
|
4981
|
+
this.$$set({ numberofentries: t }), O();
|
|
5003
4982
|
}
|
|
5004
4983
|
get customcurrencysymbols() {
|
|
5005
4984
|
return this.$$.ctx[16];
|
|
5006
4985
|
}
|
|
5007
4986
|
set customcurrencysymbols(t) {
|
|
5008
|
-
this.$$set({ customcurrencysymbols: t }),
|
|
4987
|
+
this.$$set({ customcurrencysymbols: t }), O();
|
|
5009
4988
|
}
|
|
5010
4989
|
get limitformat() {
|
|
5011
4990
|
return this.$$.ctx[17];
|
|
5012
4991
|
}
|
|
5013
4992
|
set limitformat(t) {
|
|
5014
|
-
this.$$set({ limitformat: t }),
|
|
4993
|
+
this.$$set({ limitformat: t }), O();
|
|
5015
4994
|
}
|
|
5016
4995
|
get clientstyling() {
|
|
5017
4996
|
return this.$$.ctx[18];
|
|
5018
4997
|
}
|
|
5019
4998
|
set clientstyling(t) {
|
|
5020
|
-
this.$$set({ clientstyling: t }),
|
|
4999
|
+
this.$$set({ clientstyling: t }), O();
|
|
5021
5000
|
}
|
|
5022
5001
|
get clientstylingurl() {
|
|
5023
5002
|
return this.$$.ctx[19];
|
|
5024
5003
|
}
|
|
5025
5004
|
set clientstylingurl(t) {
|
|
5026
|
-
this.$$set({ clientstylingurl: t }),
|
|
5005
|
+
this.$$set({ clientstylingurl: t }), O();
|
|
5027
5006
|
}
|
|
5028
5007
|
get mbsource() {
|
|
5029
5008
|
return this.$$.ctx[20];
|
|
5030
5009
|
}
|
|
5031
5010
|
set mbsource(t) {
|
|
5032
|
-
this.$$set({ mbsource: t }),
|
|
5011
|
+
this.$$set({ mbsource: t }), O();
|
|
5033
5012
|
}
|
|
5034
5013
|
get translationurl() {
|
|
5035
5014
|
return this.$$.ctx[21];
|
|
5036
5015
|
}
|
|
5037
5016
|
set translationurl(t) {
|
|
5038
|
-
this.$$set({ translationurl: t }),
|
|
5017
|
+
this.$$set({ translationurl: t }), O();
|
|
5039
5018
|
}
|
|
5040
5019
|
}
|
|
5041
|
-
|
|
5020
|
+
ci(Io, { lang: {}, userid: {}, session: {}, endpoint: {}, apiversion: {}, numberofentries: {}, customcurrencysymbols: {}, limitformat: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
5042
5021
|
export {
|
|
5043
|
-
|
|
5022
|
+
Io as default
|
|
5044
5023
|
};
|