@everymatrix/player-account-review-frequency 0.4.2 → 0.4.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/PlayerAccountReviewFrequency-BJTdLDwm.cjs +21 -0
- package/components/{PlayerAccountReviewFrequency-CnLig5-N.js → PlayerAccountReviewFrequency-DfCXWa6T.js} +744 -765
- package/components/{PlayerAccountReviewFrequency-Cz0AO7eX.js → PlayerAccountReviewFrequency-DvtAkr5h.js} +743 -764
- package/es2015/player-account-review-frequency.cjs +1 -1
- package/es2015/player-account-review-frequency.js +1 -1
- package/esnext/player-account-review-frequency.js +1 -1
- package/package.json +1 -1
- package/stencil/index-b2193545-CMoQ4Pov.js +503 -0
- package/stencil/index-b2193545-CQaBo5im.cjs +1 -0
- package/stencil/index-b2193545-DvP9W4Go.js +519 -0
- package/stencil/{ui-skeleton-BreIU6e5.cjs → ui-skeleton-C7KTfaPd.cjs} +1 -1
- package/stencil/{ui-skeleton-W50o8tfg.js → ui-skeleton-Cn9Rv2BY.js} +2 -2
- package/stencil/{ui-skeleton-xXZA3rYO.js → ui-skeleton-YNoAIoec.js} +2 -2
- package/stencil/{ui-skeleton-ed169f8f-CVY4B-CP.js → ui-skeleton-ed169f8f-BA-lE0xf.js} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-D3TjbVKy.js → ui-skeleton-ed169f8f-b70BXhTZ.js} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-CpiCXJrP.cjs → ui-skeleton-ed169f8f-cGTgZqRU.cjs} +1 -1
- package/components/PlayerAccountReviewFrequency-mujxqbH8.cjs +0 -21
- package/stencil/index-b2193545-9K-aI7zC.cjs +0 -1
- package/stencil/index-b2193545-DsMHU6jb.js +0 -519
- package/stencil/index-b2193545-R7ZoV-kY.js +0 -503
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import "../stencil/ui-skeleton-
|
|
1
|
+
import "../stencil/ui-skeleton-Cn9Rv2BY.js";
|
|
2
2
|
function I() {
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function Nt(e) {
|
|
5
5
|
return e();
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function at() {
|
|
8
8
|
return /* @__PURE__ */ Object.create(null);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
e.forEach(
|
|
10
|
+
function oe(e) {
|
|
11
|
+
e.forEach(Nt);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function rt(e) {
|
|
14
14
|
return typeof e == "function";
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function Lt(e, t) {
|
|
17
17
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function vr(e) {
|
|
20
20
|
return Object.keys(e).length === 0;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function $t(e, ...t) {
|
|
23
23
|
if (e == null) {
|
|
24
24
|
for (const n of t)
|
|
25
25
|
n(void 0);
|
|
@@ -28,20 +28,20 @@ function Dt(e, ...t) {
|
|
|
28
28
|
const r = e.subscribe(...t);
|
|
29
29
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
e.$$.on_destroy.push(
|
|
31
|
+
function yr(e, t, r) {
|
|
32
|
+
e.$$.on_destroy.push($t(t, r));
|
|
33
33
|
}
|
|
34
34
|
function v(e, t) {
|
|
35
35
|
e.appendChild(t);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
const n =
|
|
37
|
+
function gr(e, t, r) {
|
|
38
|
+
const n = _r(e);
|
|
39
39
|
if (!n.getElementById(t)) {
|
|
40
|
-
const i =
|
|
41
|
-
i.id = t, i.textContent = r,
|
|
40
|
+
const i = S("style");
|
|
41
|
+
i.id = t, i.textContent = r, xr(n, i);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function _r(e) {
|
|
45
45
|
if (!e)
|
|
46
46
|
return document;
|
|
47
47
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -51,24 +51,24 @@ function xr(e) {
|
|
|
51
51
|
t
|
|
52
52
|
) : e.ownerDocument;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function xr(e, t) {
|
|
55
55
|
return v(
|
|
56
56
|
/** @type {Document} */
|
|
57
57
|
e.head || e,
|
|
58
58
|
t
|
|
59
59
|
), t.sheet;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function G(e, t, r) {
|
|
62
62
|
e.insertBefore(t, r || null);
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function F(e) {
|
|
65
65
|
e.parentNode && e.parentNode.removeChild(e);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function Dt(e, t) {
|
|
68
68
|
for (let r = 0; r < e.length; r += 1)
|
|
69
69
|
e[r] && e[r].d(t);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function S(e) {
|
|
72
72
|
return document.createElement(e);
|
|
73
73
|
}
|
|
74
74
|
function Z(e) {
|
|
@@ -77,7 +77,7 @@ function Z(e) {
|
|
|
77
77
|
function W(e) {
|
|
78
78
|
return document.createTextNode(e);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function U() {
|
|
81
81
|
return W(" ");
|
|
82
82
|
}
|
|
83
83
|
function Ee(e, t, r, n) {
|
|
@@ -86,11 +86,11 @@ function Ee(e, t, r, n) {
|
|
|
86
86
|
function _(e, t, r) {
|
|
87
87
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function A(e, t, r) {
|
|
90
90
|
const n = t.toLowerCase();
|
|
91
91
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : _(e, t, r);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function Er(e) {
|
|
94
94
|
let t;
|
|
95
95
|
return {
|
|
96
96
|
/* push */
|
|
@@ -103,17 +103,17 @@ function wr(e) {
|
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function wr(e) {
|
|
107
107
|
return Array.from(e.childNodes);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function ce(e, t) {
|
|
110
110
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
111
111
|
t);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function ut(e, t) {
|
|
114
114
|
e.value = t ?? "";
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Sr(e) {
|
|
117
117
|
const t = {};
|
|
118
118
|
return e.childNodes.forEach(
|
|
119
119
|
/** @param {Element} node */
|
|
@@ -122,90 +122,90 @@ function Tr(e) {
|
|
|
122
122
|
}
|
|
123
123
|
), t;
|
|
124
124
|
}
|
|
125
|
-
let
|
|
126
|
-
function
|
|
127
|
-
|
|
125
|
+
let fe;
|
|
126
|
+
function he(e) {
|
|
127
|
+
fe = e;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
if (!
|
|
129
|
+
function Tr() {
|
|
130
|
+
if (!fe)
|
|
131
131
|
throw new Error("Function called outside component initialization");
|
|
132
|
-
return
|
|
132
|
+
return fe;
|
|
133
133
|
}
|
|
134
134
|
function Hr(e) {
|
|
135
|
-
|
|
135
|
+
Tr().$$.on_mount.push(e);
|
|
136
136
|
}
|
|
137
|
-
const Y = [],
|
|
137
|
+
const Y = [], ke = [];
|
|
138
138
|
let K = [];
|
|
139
|
-
const
|
|
140
|
-
let
|
|
141
|
-
function
|
|
142
|
-
|
|
139
|
+
const lt = [], Ar = /* @__PURE__ */ Promise.resolve();
|
|
140
|
+
let Ue = !1;
|
|
141
|
+
function Br() {
|
|
142
|
+
Ue || (Ue = !0, Ar.then(k));
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function Fe(e) {
|
|
145
145
|
K.push(e);
|
|
146
146
|
}
|
|
147
|
-
const
|
|
147
|
+
const Re = /* @__PURE__ */ new Set();
|
|
148
148
|
let J = 0;
|
|
149
|
-
function
|
|
149
|
+
function k() {
|
|
150
150
|
if (J !== 0)
|
|
151
151
|
return;
|
|
152
|
-
const e =
|
|
152
|
+
const e = fe;
|
|
153
153
|
do {
|
|
154
154
|
try {
|
|
155
155
|
for (; J < Y.length; ) {
|
|
156
156
|
const t = Y[J];
|
|
157
|
-
J++,
|
|
157
|
+
J++, he(t), Pr(t.$$);
|
|
158
158
|
}
|
|
159
159
|
} catch (t) {
|
|
160
160
|
throw Y.length = 0, J = 0, t;
|
|
161
161
|
}
|
|
162
|
-
for (
|
|
163
|
-
|
|
162
|
+
for (he(null), Y.length = 0, J = 0; ke.length; )
|
|
163
|
+
ke.pop()();
|
|
164
164
|
for (let t = 0; t < K.length; t += 1) {
|
|
165
165
|
const r = K[t];
|
|
166
|
-
|
|
166
|
+
Re.has(r) || (Re.add(r), r());
|
|
167
167
|
}
|
|
168
168
|
K.length = 0;
|
|
169
169
|
} while (Y.length);
|
|
170
|
-
for (;
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
for (; lt.length; )
|
|
171
|
+
lt.pop()();
|
|
172
|
+
Ue = !1, Re.clear(), he(e);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Pr(e) {
|
|
175
175
|
if (e.fragment !== null) {
|
|
176
|
-
e.update(),
|
|
176
|
+
e.update(), oe(e.before_update);
|
|
177
177
|
const t = e.dirty;
|
|
178
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
178
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Fe);
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Or(e) {
|
|
182
182
|
const t = [], r = [];
|
|
183
183
|
K.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), K = t;
|
|
184
184
|
}
|
|
185
|
-
const
|
|
186
|
-
function
|
|
187
|
-
e && e.i && (
|
|
185
|
+
const Rr = /* @__PURE__ */ new Set();
|
|
186
|
+
function Mr(e, t) {
|
|
187
|
+
e && e.i && (Rr.delete(e), e.i(t));
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function je(e) {
|
|
190
190
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Ir(e, t, r) {
|
|
193
193
|
const { fragment: n, after_update: i } = e.$$;
|
|
194
|
-
n && n.m(t, r),
|
|
195
|
-
const o = e.$$.on_mount.map(
|
|
196
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
197
|
-
}), i.forEach(
|
|
194
|
+
n && n.m(t, r), Fe(() => {
|
|
195
|
+
const o = e.$$.on_mount.map(Nt).filter(rt);
|
|
196
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
|
|
197
|
+
}), i.forEach(Fe);
|
|
198
198
|
}
|
|
199
199
|
function Cr(e, t) {
|
|
200
200
|
const r = e.$$;
|
|
201
|
-
r.fragment !== null && (
|
|
201
|
+
r.fragment !== null && (Or(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
204
|
-
e.$$.dirty[0] === -1 && (Y.push(e),
|
|
203
|
+
function Nr(e, t) {
|
|
204
|
+
e.$$.dirty[0] === -1 && (Y.push(e), Br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
const l =
|
|
208
|
-
|
|
206
|
+
function Lr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
207
|
+
const l = fe;
|
|
208
|
+
he(e);
|
|
209
209
|
const u = e.$$ = {
|
|
210
210
|
fragment: null,
|
|
211
211
|
ctx: [],
|
|
@@ -213,7 +213,7 @@ function $r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
213
213
|
props: o,
|
|
214
214
|
update: I,
|
|
215
215
|
not_equal: i,
|
|
216
|
-
bound:
|
|
216
|
+
bound: at(),
|
|
217
217
|
// lifecycle
|
|
218
218
|
on_mount: [],
|
|
219
219
|
on_destroy: [],
|
|
@@ -222,7 +222,7 @@ function $r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
222
222
|
after_update: [],
|
|
223
223
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
224
224
|
// everything else
|
|
225
|
-
callbacks:
|
|
225
|
+
callbacks: at(),
|
|
226
226
|
dirty: a,
|
|
227
227
|
skip_bound: !1,
|
|
228
228
|
root: t.target || l.$$.root
|
|
@@ -231,19 +231,19 @@ function $r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
231
231
|
let c = !1;
|
|
232
232
|
if (u.ctx = r ? r(e, t.props || {}, (p, h, ...b) => {
|
|
233
233
|
const m = b.length ? b[0] : h;
|
|
234
|
-
return u.ctx && i(u.ctx[p], u.ctx[p] = m) && (!u.skip_bound && u.bound[p] && u.bound[p](m), c &&
|
|
235
|
-
}) : [], u.update(), c = !0,
|
|
234
|
+
return u.ctx && i(u.ctx[p], u.ctx[p] = m) && (!u.skip_bound && u.bound[p] && u.bound[p](m), c && Nr(e, p)), h;
|
|
235
|
+
}) : [], u.update(), c = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
236
236
|
if (t.hydrate) {
|
|
237
|
-
const p =
|
|
238
|
-
u.fragment && u.fragment.l(p), p.forEach(
|
|
237
|
+
const p = wr(t.target);
|
|
238
|
+
u.fragment && u.fragment.l(p), p.forEach(F);
|
|
239
239
|
} else
|
|
240
240
|
u.fragment && u.fragment.c();
|
|
241
|
-
t.intro &&
|
|
241
|
+
t.intro && Mr(e.$$.fragment), Ir(e, t.target, t.anchor), k();
|
|
242
242
|
}
|
|
243
|
-
|
|
243
|
+
he(l);
|
|
244
244
|
}
|
|
245
|
-
let
|
|
246
|
-
typeof HTMLElement == "function" && (
|
|
245
|
+
let kt;
|
|
246
|
+
typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
247
247
|
/** The Svelte component constructor */
|
|
248
248
|
$$ctor;
|
|
249
249
|
/** Slots */
|
|
@@ -285,24 +285,24 @@ typeof HTMLElement == "function" && (Ft = class extends HTMLElement {
|
|
|
285
285
|
let o;
|
|
286
286
|
return {
|
|
287
287
|
c: function() {
|
|
288
|
-
o =
|
|
288
|
+
o = S("slot"), i !== "default" && _(o, "name", i);
|
|
289
289
|
},
|
|
290
290
|
/**
|
|
291
291
|
* @param {HTMLElement} target
|
|
292
292
|
* @param {HTMLElement} [anchor]
|
|
293
293
|
*/
|
|
294
294
|
m: function(l, u) {
|
|
295
|
-
|
|
295
|
+
G(l, o, u);
|
|
296
296
|
},
|
|
297
297
|
d: function(l) {
|
|
298
|
-
l &&
|
|
298
|
+
l && F(o);
|
|
299
299
|
}
|
|
300
300
|
};
|
|
301
301
|
};
|
|
302
302
|
};
|
|
303
303
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
304
304
|
return;
|
|
305
|
-
const t = {}, r =
|
|
305
|
+
const t = {}, r = Sr(this);
|
|
306
306
|
for (const i of this.$$s)
|
|
307
307
|
i in r && (t[i] = [e(i)]);
|
|
308
308
|
for (const i of this.attributes) {
|
|
@@ -389,8 +389,8 @@ function ye(e, t, r, n) {
|
|
|
389
389
|
return t;
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
function
|
|
393
|
-
let s = class extends
|
|
392
|
+
function $r(e, t, r, n, i, o) {
|
|
393
|
+
let s = class extends kt {
|
|
394
394
|
constructor() {
|
|
395
395
|
super(e, r, i), this.$$p_d = t;
|
|
396
396
|
}
|
|
@@ -446,7 +446,7 @@ class Dr {
|
|
|
446
446
|
* @returns {() => void}
|
|
447
447
|
*/
|
|
448
448
|
$on(t, r) {
|
|
449
|
-
if (!
|
|
449
|
+
if (!rt(r))
|
|
450
450
|
return I;
|
|
451
451
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
452
452
|
return n.push(r), () => {
|
|
@@ -459,11 +459,11 @@ class Dr {
|
|
|
459
459
|
* @returns {void}
|
|
460
460
|
*/
|
|
461
461
|
$set(t) {
|
|
462
|
-
this.$$set && !
|
|
462
|
+
this.$$set && !vr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
const
|
|
466
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
465
|
+
const kr = "4";
|
|
466
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(kr);
|
|
467
467
|
/*! *****************************************************************************
|
|
468
468
|
Copyright (c) Microsoft Corporation.
|
|
469
469
|
|
|
@@ -478,24 +478,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
478
478
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
479
479
|
PERFORMANCE OF THIS SOFTWARE.
|
|
480
480
|
***************************************************************************** */
|
|
481
|
-
var
|
|
482
|
-
return
|
|
481
|
+
var Ge = function(e, t) {
|
|
482
|
+
return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
483
483
|
r.__proto__ = n;
|
|
484
484
|
} || function(r, n) {
|
|
485
485
|
for (var i in n)
|
|
486
486
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
487
|
-
},
|
|
487
|
+
}, Ge(e, t);
|
|
488
488
|
};
|
|
489
|
-
function
|
|
489
|
+
function V(e, t) {
|
|
490
490
|
if (typeof t != "function" && t !== null)
|
|
491
491
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
492
|
-
|
|
492
|
+
Ge(e, t);
|
|
493
493
|
function r() {
|
|
494
494
|
this.constructor = e;
|
|
495
495
|
}
|
|
496
496
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
var x = function() {
|
|
499
|
+
return x = Object.assign || function(t) {
|
|
500
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
501
|
+
r = arguments[n];
|
|
502
|
+
for (var o in r)
|
|
503
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
504
|
+
}
|
|
505
|
+
return t;
|
|
506
|
+
}, x.apply(this, arguments);
|
|
507
|
+
};
|
|
508
|
+
function Ur(e, t) {
|
|
509
|
+
var r = {};
|
|
510
|
+
for (var n in e)
|
|
511
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
512
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
513
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
514
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
515
|
+
return r;
|
|
516
|
+
}
|
|
517
|
+
function Ve(e) {
|
|
499
518
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
500
519
|
if (r)
|
|
501
520
|
return r.call(e);
|
|
@@ -507,7 +526,7 @@ function Xe(e) {
|
|
|
507
526
|
};
|
|
508
527
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
509
528
|
}
|
|
510
|
-
function
|
|
529
|
+
function qe(e, t) {
|
|
511
530
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
512
531
|
if (!r)
|
|
513
532
|
return e;
|
|
@@ -527,22 +546,22 @@ function We(e, t) {
|
|
|
527
546
|
}
|
|
528
547
|
return o;
|
|
529
548
|
}
|
|
530
|
-
function
|
|
531
|
-
if (arguments.length === 2)
|
|
549
|
+
function ee(e, t, r) {
|
|
550
|
+
if (r || arguments.length === 2)
|
|
532
551
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
533
552
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
534
553
|
return e.concat(o || t);
|
|
535
554
|
}
|
|
536
|
-
function
|
|
555
|
+
function j(e) {
|
|
537
556
|
return typeof e == "function";
|
|
538
557
|
}
|
|
539
|
-
function
|
|
558
|
+
function Ut(e) {
|
|
540
559
|
var t = function(n) {
|
|
541
560
|
Error.call(n), n.stack = new Error().stack;
|
|
542
561
|
}, r = e(t);
|
|
543
562
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
544
563
|
}
|
|
545
|
-
var
|
|
564
|
+
var Me = Ut(function(e) {
|
|
546
565
|
return function(r) {
|
|
547
566
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
548
567
|
` + r.map(function(n, i) {
|
|
@@ -551,13 +570,13 @@ var Ne = jt(function(e) {
|
|
|
551
570
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
552
571
|
};
|
|
553
572
|
});
|
|
554
|
-
function
|
|
573
|
+
function Xe(e, t) {
|
|
555
574
|
if (e) {
|
|
556
575
|
var r = e.indexOf(t);
|
|
557
576
|
0 <= r && e.splice(r, 1);
|
|
558
577
|
}
|
|
559
578
|
}
|
|
560
|
-
var
|
|
579
|
+
var Te = function() {
|
|
561
580
|
function e(t) {
|
|
562
581
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
563
582
|
}
|
|
@@ -569,7 +588,7 @@ var Ae = function() {
|
|
|
569
588
|
if (s)
|
|
570
589
|
if (this._parentage = null, Array.isArray(s))
|
|
571
590
|
try {
|
|
572
|
-
for (var a =
|
|
591
|
+
for (var a = Ve(s), l = a.next(); !l.done; l = a.next()) {
|
|
573
592
|
var u = l.value;
|
|
574
593
|
u.remove(this);
|
|
575
594
|
}
|
|
@@ -586,22 +605,22 @@ var Ae = function() {
|
|
|
586
605
|
else
|
|
587
606
|
s.remove(this);
|
|
588
607
|
var c = this.initialTeardown;
|
|
589
|
-
if (
|
|
608
|
+
if (j(c))
|
|
590
609
|
try {
|
|
591
610
|
c();
|
|
592
611
|
} catch (f) {
|
|
593
|
-
o = f instanceof
|
|
612
|
+
o = f instanceof Me ? f.errors : [f];
|
|
594
613
|
}
|
|
595
614
|
var p = this._finalizers;
|
|
596
615
|
if (p) {
|
|
597
616
|
this._finalizers = null;
|
|
598
617
|
try {
|
|
599
|
-
for (var h =
|
|
618
|
+
for (var h = Ve(p), b = h.next(); !b.done; b = h.next()) {
|
|
600
619
|
var m = b.value;
|
|
601
620
|
try {
|
|
602
|
-
|
|
621
|
+
ct(m);
|
|
603
622
|
} catch (f) {
|
|
604
|
-
o = o ?? [], f instanceof
|
|
623
|
+
o = o ?? [], f instanceof Me ? o = ee(ee([], qe(o)), qe(f.errors)) : o.push(f);
|
|
605
624
|
}
|
|
606
625
|
}
|
|
607
626
|
} catch (f) {
|
|
@@ -616,13 +635,13 @@ var Ae = function() {
|
|
|
616
635
|
}
|
|
617
636
|
}
|
|
618
637
|
if (o)
|
|
619
|
-
throw new
|
|
638
|
+
throw new Me(o);
|
|
620
639
|
}
|
|
621
640
|
}, e.prototype.add = function(t) {
|
|
622
641
|
var r;
|
|
623
642
|
if (t && t !== this)
|
|
624
643
|
if (this.closed)
|
|
625
|
-
|
|
644
|
+
ct(t);
|
|
626
645
|
else {
|
|
627
646
|
if (t instanceof e) {
|
|
628
647
|
if (t.closed || t._hasParent(this))
|
|
@@ -639,52 +658,56 @@ var Ae = function() {
|
|
|
639
658
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
640
659
|
}, e.prototype._removeParent = function(t) {
|
|
641
660
|
var r = this._parentage;
|
|
642
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
661
|
+
r === t ? this._parentage = null : Array.isArray(r) && Xe(r, t);
|
|
643
662
|
}, e.prototype.remove = function(t) {
|
|
644
663
|
var r = this._finalizers;
|
|
645
|
-
r &&
|
|
664
|
+
r && Xe(r, t), t instanceof e && t._removeParent(this);
|
|
646
665
|
}, e.EMPTY = function() {
|
|
647
666
|
var t = new e();
|
|
648
667
|
return t.closed = !0, t;
|
|
649
668
|
}(), e;
|
|
650
|
-
}(),
|
|
651
|
-
function
|
|
652
|
-
return e instanceof
|
|
653
|
-
}
|
|
654
|
-
function
|
|
655
|
-
|
|
656
|
-
}
|
|
657
|
-
var
|
|
658
|
-
|
|
659
|
-
|
|
669
|
+
}(), Ft = Te.EMPTY;
|
|
670
|
+
function jt(e) {
|
|
671
|
+
return e instanceof Te || e && "closed" in e && j(e.remove) && j(e.add) && j(e.unsubscribe);
|
|
672
|
+
}
|
|
673
|
+
function ct(e) {
|
|
674
|
+
j(e) ? e() : e.unsubscribe();
|
|
675
|
+
}
|
|
676
|
+
var Gt = {
|
|
677
|
+
onUnhandledError: null,
|
|
678
|
+
onStoppedNotification: null,
|
|
679
|
+
Promise: void 0,
|
|
680
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
681
|
+
useDeprecatedNextContext: !1
|
|
682
|
+
}, Fr = {
|
|
660
683
|
setTimeout: function(e, t) {
|
|
661
684
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
662
685
|
r[n - 2] = arguments[n];
|
|
663
|
-
return setTimeout.apply(void 0,
|
|
686
|
+
return setTimeout.apply(void 0, ee([e, t], qe(r)));
|
|
664
687
|
},
|
|
665
688
|
clearTimeout: function(e) {
|
|
666
689
|
return clearTimeout(e);
|
|
667
690
|
},
|
|
668
691
|
delegate: void 0
|
|
669
692
|
};
|
|
670
|
-
function
|
|
671
|
-
|
|
693
|
+
function jr(e) {
|
|
694
|
+
Fr.setTimeout(function() {
|
|
672
695
|
throw e;
|
|
673
696
|
});
|
|
674
697
|
}
|
|
675
|
-
function
|
|
698
|
+
function ht() {
|
|
676
699
|
}
|
|
677
700
|
function ge(e) {
|
|
678
701
|
e();
|
|
679
702
|
}
|
|
680
|
-
var
|
|
681
|
-
|
|
703
|
+
var Vt = function(e) {
|
|
704
|
+
V(t, e);
|
|
682
705
|
function t(r) {
|
|
683
706
|
var n = e.call(this) || this;
|
|
684
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
707
|
+
return n.isStopped = !1, r ? (n.destination = r, jt(r) && r.add(n)) : n.destination = Xr, n;
|
|
685
708
|
}
|
|
686
709
|
return t.create = function(r, n, i) {
|
|
687
|
-
return new
|
|
710
|
+
return new We(r, n, i);
|
|
688
711
|
}, t.prototype.next = function(r) {
|
|
689
712
|
this.isStopped || this._next(r);
|
|
690
713
|
}, t.prototype.error = function(r) {
|
|
@@ -708,7 +731,11 @@ var qt = function(e) {
|
|
|
708
731
|
this.unsubscribe();
|
|
709
732
|
}
|
|
710
733
|
}, t;
|
|
711
|
-
}(
|
|
734
|
+
}(Te), Gr = Function.prototype.bind;
|
|
735
|
+
function Ie(e, t) {
|
|
736
|
+
return Gr.call(e, t);
|
|
737
|
+
}
|
|
738
|
+
var Vr = function() {
|
|
712
739
|
function e(t) {
|
|
713
740
|
this.partialObserver = t;
|
|
714
741
|
}
|
|
@@ -739,29 +766,41 @@ var qt = function(e) {
|
|
|
739
766
|
be(r);
|
|
740
767
|
}
|
|
741
768
|
}, e;
|
|
742
|
-
}(),
|
|
743
|
-
|
|
769
|
+
}(), We = function(e) {
|
|
770
|
+
V(t, e);
|
|
744
771
|
function t(r, n, i) {
|
|
745
772
|
var o = e.call(this) || this, s;
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
773
|
+
if (j(r) || !r)
|
|
774
|
+
s = {
|
|
775
|
+
next: r ?? void 0,
|
|
776
|
+
error: n ?? void 0,
|
|
777
|
+
complete: i ?? void 0
|
|
778
|
+
};
|
|
779
|
+
else {
|
|
780
|
+
var a;
|
|
781
|
+
o && Gt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
782
|
+
return o.unsubscribe();
|
|
783
|
+
}, s = {
|
|
784
|
+
next: r.next && Ie(r.next, a),
|
|
785
|
+
error: r.error && Ie(r.error, a),
|
|
786
|
+
complete: r.complete && Ie(r.complete, a)
|
|
787
|
+
}) : s = r;
|
|
788
|
+
}
|
|
789
|
+
return o.destination = new Vr(s), o;
|
|
751
790
|
}
|
|
752
791
|
return t;
|
|
753
|
-
}(
|
|
792
|
+
}(Vt);
|
|
754
793
|
function be(e) {
|
|
755
|
-
|
|
794
|
+
jr(e);
|
|
756
795
|
}
|
|
757
796
|
function qr(e) {
|
|
758
797
|
throw e;
|
|
759
798
|
}
|
|
760
799
|
var Xr = {
|
|
761
800
|
closed: !0,
|
|
762
|
-
next:
|
|
801
|
+
next: ht,
|
|
763
802
|
error: qr,
|
|
764
|
-
complete:
|
|
803
|
+
complete: ht
|
|
765
804
|
}, Wr = function() {
|
|
766
805
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
767
806
|
}();
|
|
@@ -775,7 +814,7 @@ function Zr(e) {
|
|
|
775
814
|
}, r);
|
|
776
815
|
};
|
|
777
816
|
}
|
|
778
|
-
var
|
|
817
|
+
var ft = function() {
|
|
779
818
|
function e(t) {
|
|
780
819
|
t && (this._subscribe = t);
|
|
781
820
|
}
|
|
@@ -783,7 +822,7 @@ var dt = function() {
|
|
|
783
822
|
var r = new e();
|
|
784
823
|
return r.source = this, r.operator = t, r;
|
|
785
824
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
786
|
-
var i = this, o = Qr(t) ? t : new
|
|
825
|
+
var i = this, o = Qr(t) ? t : new We(t, r, n);
|
|
787
826
|
return ge(function() {
|
|
788
827
|
var s = i, a = s.operator, l = s.source;
|
|
789
828
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -796,8 +835,8 @@ var dt = function() {
|
|
|
796
835
|
}
|
|
797
836
|
}, e.prototype.forEach = function(t, r) {
|
|
798
837
|
var n = this;
|
|
799
|
-
return r =
|
|
800
|
-
var s = new
|
|
838
|
+
return r = pt(r), new r(function(i, o) {
|
|
839
|
+
var s = new We({
|
|
801
840
|
next: function(a) {
|
|
802
841
|
try {
|
|
803
842
|
t(a);
|
|
@@ -821,7 +860,7 @@ var dt = function() {
|
|
|
821
860
|
return Zr(t)(this);
|
|
822
861
|
}, e.prototype.toPromise = function(t) {
|
|
823
862
|
var r = this;
|
|
824
|
-
return t =
|
|
863
|
+
return t = pt(t), new t(function(n, i) {
|
|
825
864
|
var o;
|
|
826
865
|
r.subscribe(function(s) {
|
|
827
866
|
return o = s;
|
|
@@ -835,28 +874,28 @@ var dt = function() {
|
|
|
835
874
|
return new e(t);
|
|
836
875
|
}, e;
|
|
837
876
|
}();
|
|
838
|
-
function
|
|
877
|
+
function pt(e) {
|
|
839
878
|
var t;
|
|
840
|
-
return (t = e ??
|
|
879
|
+
return (t = e ?? Gt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
841
880
|
}
|
|
842
881
|
function Jr(e) {
|
|
843
|
-
return e &&
|
|
882
|
+
return e && j(e.next) && j(e.error) && j(e.complete);
|
|
844
883
|
}
|
|
845
884
|
function Qr(e) {
|
|
846
|
-
return e && e instanceof
|
|
885
|
+
return e && e instanceof Vt || Jr(e) && jt(e);
|
|
847
886
|
}
|
|
848
|
-
var Yr =
|
|
887
|
+
var Yr = Ut(function(e) {
|
|
849
888
|
return function() {
|
|
850
889
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
851
890
|
};
|
|
852
|
-
}),
|
|
853
|
-
|
|
891
|
+
}), qt = function(e) {
|
|
892
|
+
V(t, e);
|
|
854
893
|
function t() {
|
|
855
894
|
var r = e.call(this) || this;
|
|
856
895
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
857
896
|
}
|
|
858
897
|
return t.prototype.lift = function(r) {
|
|
859
|
-
var n = new
|
|
898
|
+
var n = new dt(this, this);
|
|
860
899
|
return n.operator = r, n;
|
|
861
900
|
}, t.prototype._throwIfClosed = function() {
|
|
862
901
|
if (this.closed)
|
|
@@ -868,7 +907,7 @@ var Yr = jt(function(e) {
|
|
|
868
907
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
869
908
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
870
909
|
try {
|
|
871
|
-
for (var s =
|
|
910
|
+
for (var s = Ve(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
872
911
|
var l = a.value;
|
|
873
912
|
l.next(r);
|
|
874
913
|
}
|
|
@@ -917,20 +956,20 @@ var Yr = jt(function(e) {
|
|
|
917
956
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
918
957
|
}, t.prototype._innerSubscribe = function(r) {
|
|
919
958
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
920
|
-
return o || s ?
|
|
921
|
-
n.currentObservers = null,
|
|
959
|
+
return o || s ? Ft : (this.currentObservers = null, a.push(r), new Te(function() {
|
|
960
|
+
n.currentObservers = null, Xe(a, r);
|
|
922
961
|
}));
|
|
923
962
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
924
963
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
925
964
|
i ? r.error(o) : s && r.complete();
|
|
926
965
|
}, t.prototype.asObservable = function() {
|
|
927
|
-
var r = new
|
|
966
|
+
var r = new ft();
|
|
928
967
|
return r.source = this, r;
|
|
929
968
|
}, t.create = function(r, n) {
|
|
930
|
-
return new
|
|
969
|
+
return new dt(r, n);
|
|
931
970
|
}, t;
|
|
932
|
-
}(
|
|
933
|
-
|
|
971
|
+
}(ft), dt = function(e) {
|
|
972
|
+
V(t, e);
|
|
934
973
|
function t(r, n) {
|
|
935
974
|
var i = e.call(this) || this;
|
|
936
975
|
return i.destination = r, i.source = n, i;
|
|
@@ -946,17 +985,17 @@ var Yr = jt(function(e) {
|
|
|
946
985
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
947
986
|
}, t.prototype._subscribe = function(r) {
|
|
948
987
|
var n, i;
|
|
949
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
988
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ft;
|
|
950
989
|
}, t;
|
|
951
|
-
}(
|
|
990
|
+
}(qt), Xt = {
|
|
952
991
|
now: function() {
|
|
953
|
-
return (
|
|
992
|
+
return (Xt.delegate || Date).now();
|
|
954
993
|
},
|
|
955
994
|
delegate: void 0
|
|
956
995
|
}, Kr = function(e) {
|
|
957
|
-
|
|
996
|
+
V(t, e);
|
|
958
997
|
function t(r, n, i) {
|
|
959
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
998
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Xt);
|
|
960
999
|
var o = e.call(this) || this;
|
|
961
1000
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
962
1001
|
}
|
|
@@ -976,13 +1015,13 @@ var Yr = jt(function(e) {
|
|
|
976
1015
|
u && o.splice(0, u + 1);
|
|
977
1016
|
}
|
|
978
1017
|
}, t;
|
|
979
|
-
}(
|
|
980
|
-
const
|
|
981
|
-
if (
|
|
1018
|
+
}(qt);
|
|
1019
|
+
const mt = [], bt = {}, en = (e, t = 0) => {
|
|
1020
|
+
if (mt.indexOf(e) == -1) {
|
|
982
1021
|
const r = new Kr(t);
|
|
983
|
-
|
|
1022
|
+
bt[e] = r, mt.push(e);
|
|
984
1023
|
}
|
|
985
|
-
return
|
|
1024
|
+
return bt[e];
|
|
986
1025
|
}, Q = [];
|
|
987
1026
|
function tn(e, t) {
|
|
988
1027
|
return {
|
|
@@ -993,7 +1032,7 @@ function He(e, t = I) {
|
|
|
993
1032
|
let r;
|
|
994
1033
|
const n = /* @__PURE__ */ new Set();
|
|
995
1034
|
function i(a) {
|
|
996
|
-
if (
|
|
1035
|
+
if (Lt(e, a) && (e = a, r)) {
|
|
997
1036
|
const l = !Q.length;
|
|
998
1037
|
for (const u of n)
|
|
999
1038
|
u[1](), Q.push(u, e);
|
|
@@ -1015,7 +1054,7 @@ function He(e, t = I) {
|
|
|
1015
1054
|
}
|
|
1016
1055
|
return { set: i, update: o, subscribe: s };
|
|
1017
1056
|
}
|
|
1018
|
-
function
|
|
1057
|
+
function se(e, t, r) {
|
|
1019
1058
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1020
1059
|
if (!i.every(Boolean))
|
|
1021
1060
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1029,12 +1068,12 @@ function oe(e, t, r) {
|
|
|
1029
1068
|
return;
|
|
1030
1069
|
p();
|
|
1031
1070
|
const m = t(n ? u[0] : u, s, a);
|
|
1032
|
-
o ? s(m) : p =
|
|
1071
|
+
o ? s(m) : p = rt(m) ? m : I;
|
|
1033
1072
|
}, b = i.map(
|
|
1034
|
-
(m, f) =>
|
|
1073
|
+
(m, f) => $t(
|
|
1035
1074
|
m,
|
|
1036
|
-
(
|
|
1037
|
-
u[f] =
|
|
1075
|
+
(w) => {
|
|
1076
|
+
u[f] = w, c &= ~(1 << f), l && h();
|
|
1038
1077
|
},
|
|
1039
1078
|
() => {
|
|
1040
1079
|
c |= 1 << f;
|
|
@@ -1042,7 +1081,7 @@ function oe(e, t, r) {
|
|
|
1042
1081
|
)
|
|
1043
1082
|
);
|
|
1044
1083
|
return l = !0, h(), function() {
|
|
1045
|
-
|
|
1084
|
+
oe(b), p(), l = !1;
|
|
1046
1085
|
};
|
|
1047
1086
|
});
|
|
1048
1087
|
}
|
|
@@ -1066,29 +1105,29 @@ function ln(e) {
|
|
|
1066
1105
|
function cn(e) {
|
|
1067
1106
|
return Array.isArray(e) ? [] : {};
|
|
1068
1107
|
}
|
|
1069
|
-
function
|
|
1070
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1108
|
+
function pe(e, t) {
|
|
1109
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? te(cn(e), e, t) : e;
|
|
1071
1110
|
}
|
|
1072
1111
|
function hn(e, t, r) {
|
|
1073
1112
|
return e.concat(t).map(function(n) {
|
|
1074
|
-
return
|
|
1113
|
+
return pe(n, r);
|
|
1075
1114
|
});
|
|
1076
1115
|
}
|
|
1077
1116
|
function fn(e, t) {
|
|
1078
1117
|
if (!t.customMerge)
|
|
1079
|
-
return
|
|
1118
|
+
return te;
|
|
1080
1119
|
var r = t.customMerge(e);
|
|
1081
|
-
return typeof r == "function" ? r :
|
|
1120
|
+
return typeof r == "function" ? r : te;
|
|
1082
1121
|
}
|
|
1083
1122
|
function pn(e) {
|
|
1084
1123
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1085
1124
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1086
1125
|
}) : [];
|
|
1087
1126
|
}
|
|
1088
|
-
function
|
|
1127
|
+
function vt(e) {
|
|
1089
1128
|
return Object.keys(e).concat(pn(e));
|
|
1090
1129
|
}
|
|
1091
|
-
function
|
|
1130
|
+
function Wt(e, t) {
|
|
1092
1131
|
try {
|
|
1093
1132
|
return t in e;
|
|
1094
1133
|
} catch {
|
|
@@ -1096,179 +1135,129 @@ function zt(e, t) {
|
|
|
1096
1135
|
}
|
|
1097
1136
|
}
|
|
1098
1137
|
function dn(e, t) {
|
|
1099
|
-
return
|
|
1138
|
+
return Wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1100
1139
|
}
|
|
1101
1140
|
function mn(e, t, r) {
|
|
1102
1141
|
var n = {};
|
|
1103
|
-
return r.isMergeableObject(e) &&
|
|
1104
|
-
n[i] =
|
|
1105
|
-
}),
|
|
1106
|
-
dn(e, i) || (
|
|
1142
|
+
return r.isMergeableObject(e) && vt(e).forEach(function(i) {
|
|
1143
|
+
n[i] = pe(e[i], r);
|
|
1144
|
+
}), vt(t).forEach(function(i) {
|
|
1145
|
+
dn(e, i) || (Wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = fn(i, r)(e[i], t[i], r) : n[i] = pe(t[i], r));
|
|
1107
1146
|
}), n;
|
|
1108
1147
|
}
|
|
1109
|
-
function
|
|
1110
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || hn, r.isMergeableObject = r.isMergeableObject || nn, r.cloneUnlessOtherwiseSpecified =
|
|
1148
|
+
function te(e, t, r) {
|
|
1149
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || hn, r.isMergeableObject = r.isMergeableObject || nn, r.cloneUnlessOtherwiseSpecified = pe;
|
|
1111
1150
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1112
|
-
return o ? n ? r.arrayMerge(e, t, r) : mn(e, t, r) :
|
|
1151
|
+
return o ? n ? r.arrayMerge(e, t, r) : mn(e, t, r) : pe(t, r);
|
|
1113
1152
|
}
|
|
1114
|
-
|
|
1153
|
+
te.all = function(t, r) {
|
|
1115
1154
|
if (!Array.isArray(t))
|
|
1116
1155
|
throw new Error("first argument should be an array");
|
|
1117
1156
|
return t.reduce(function(n, i) {
|
|
1118
|
-
return
|
|
1157
|
+
return te(n, i, r);
|
|
1119
1158
|
}, {});
|
|
1120
1159
|
};
|
|
1121
|
-
var bn =
|
|
1160
|
+
var bn = te, vn = bn;
|
|
1122
1161
|
const yn = /* @__PURE__ */ rn(vn);
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
r.__proto__ = n;
|
|
1126
|
-
} || function(r, n) {
|
|
1127
|
-
for (var i in n)
|
|
1128
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1129
|
-
}, Qe(e, t);
|
|
1130
|
-
};
|
|
1131
|
-
function Be(e, t) {
|
|
1132
|
-
if (typeof t != "function" && t !== null)
|
|
1133
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1134
|
-
Qe(e, t);
|
|
1135
|
-
function r() {
|
|
1136
|
-
this.constructor = e;
|
|
1137
|
-
}
|
|
1138
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1139
|
-
}
|
|
1140
|
-
var U = function() {
|
|
1141
|
-
return U = Object.assign || function(t) {
|
|
1142
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1143
|
-
r = arguments[n];
|
|
1144
|
-
for (var o in r)
|
|
1145
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1146
|
-
}
|
|
1147
|
-
return t;
|
|
1148
|
-
}, U.apply(this, arguments);
|
|
1149
|
-
};
|
|
1150
|
-
function gn(e, t) {
|
|
1151
|
-
var r = {};
|
|
1152
|
-
for (var n in e)
|
|
1153
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1154
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1155
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1156
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1157
|
-
return r;
|
|
1158
|
-
}
|
|
1159
|
-
function Ce(e, t, r) {
|
|
1160
|
-
if (r || arguments.length === 2)
|
|
1161
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1162
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1163
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1164
|
-
}
|
|
1165
|
-
function Le(e, t) {
|
|
1166
|
-
var r = t && t.cache ? t.cache : An, n = t && t.serializer ? t.serializer : Sn, i = t && t.strategy ? t.strategy : En;
|
|
1162
|
+
function Ce(e, t) {
|
|
1163
|
+
var r = t && t.cache ? t.cache : Sn, n = t && t.serializer ? t.serializer : wn, i = t && t.strategy ? t.strategy : _n;
|
|
1167
1164
|
return i(e, {
|
|
1168
1165
|
cache: r,
|
|
1169
1166
|
serializer: n
|
|
1170
1167
|
});
|
|
1171
1168
|
}
|
|
1172
|
-
function
|
|
1169
|
+
function gn(e) {
|
|
1173
1170
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1174
1171
|
}
|
|
1175
|
-
function
|
|
1176
|
-
var i =
|
|
1172
|
+
function zt(e, t, r, n) {
|
|
1173
|
+
var i = gn(n) ? n : r(n), o = t.get(i);
|
|
1177
1174
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1178
1175
|
}
|
|
1179
1176
|
function Zt(e, t, r) {
|
|
1180
1177
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1181
1178
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1182
1179
|
}
|
|
1183
|
-
function
|
|
1180
|
+
function nt(e, t, r, n, i) {
|
|
1184
1181
|
return r.bind(t, e, n, i);
|
|
1185
1182
|
}
|
|
1186
|
-
function
|
|
1187
|
-
var r = e.length === 1 ?
|
|
1188
|
-
return
|
|
1183
|
+
function _n(e, t) {
|
|
1184
|
+
var r = e.length === 1 ? zt : Zt;
|
|
1185
|
+
return nt(e, this, r, t.cache.create(), t.serializer);
|
|
1189
1186
|
}
|
|
1190
|
-
function
|
|
1191
|
-
return
|
|
1187
|
+
function xn(e, t) {
|
|
1188
|
+
return nt(e, this, Zt, t.cache.create(), t.serializer);
|
|
1192
1189
|
}
|
|
1193
|
-
|
|
1190
|
+
function En(e, t) {
|
|
1191
|
+
return nt(e, this, zt, t.cache.create(), t.serializer);
|
|
1192
|
+
}
|
|
1193
|
+
var wn = function() {
|
|
1194
1194
|
return JSON.stringify(arguments);
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
}()
|
|
1207
|
-
), An = {
|
|
1195
|
+
};
|
|
1196
|
+
function it() {
|
|
1197
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1198
|
+
}
|
|
1199
|
+
it.prototype.get = function(e) {
|
|
1200
|
+
return this.cache[e];
|
|
1201
|
+
};
|
|
1202
|
+
it.prototype.set = function(e, t) {
|
|
1203
|
+
this.cache[e] = t;
|
|
1204
|
+
};
|
|
1205
|
+
var Sn = {
|
|
1208
1206
|
create: function() {
|
|
1209
|
-
return new
|
|
1207
|
+
return new it();
|
|
1210
1208
|
}
|
|
1211
|
-
},
|
|
1212
|
-
variadic:
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1216
|
-
r = arguments[n];
|
|
1217
|
-
for (var o in r)
|
|
1218
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1219
|
-
}
|
|
1220
|
-
return t;
|
|
1221
|
-
}, we.apply(this, arguments);
|
|
1222
|
-
};
|
|
1223
|
-
var y;
|
|
1209
|
+
}, Ne = {
|
|
1210
|
+
variadic: xn,
|
|
1211
|
+
monadic: En
|
|
1212
|
+
}, y;
|
|
1224
1213
|
(function(e) {
|
|
1225
1214
|
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";
|
|
1226
1215
|
})(y || (y = {}));
|
|
1227
|
-
var
|
|
1216
|
+
var T;
|
|
1228
1217
|
(function(e) {
|
|
1229
1218
|
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";
|
|
1230
|
-
})(
|
|
1231
|
-
var
|
|
1219
|
+
})(T || (T = {}));
|
|
1220
|
+
var re;
|
|
1232
1221
|
(function(e) {
|
|
1233
1222
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1234
|
-
})(
|
|
1235
|
-
function
|
|
1236
|
-
return e.type ===
|
|
1223
|
+
})(re || (re = {}));
|
|
1224
|
+
function yt(e) {
|
|
1225
|
+
return e.type === T.literal;
|
|
1237
1226
|
}
|
|
1238
|
-
function
|
|
1239
|
-
return e.type ===
|
|
1227
|
+
function Tn(e) {
|
|
1228
|
+
return e.type === T.argument;
|
|
1229
|
+
}
|
|
1230
|
+
function Jt(e) {
|
|
1231
|
+
return e.type === T.number;
|
|
1240
1232
|
}
|
|
1241
1233
|
function Qt(e) {
|
|
1242
|
-
return e.type ===
|
|
1234
|
+
return e.type === T.date;
|
|
1243
1235
|
}
|
|
1244
1236
|
function Yt(e) {
|
|
1245
|
-
return e.type ===
|
|
1237
|
+
return e.type === T.time;
|
|
1246
1238
|
}
|
|
1247
1239
|
function Kt(e) {
|
|
1248
|
-
return e.type ===
|
|
1240
|
+
return e.type === T.select;
|
|
1249
1241
|
}
|
|
1250
1242
|
function er(e) {
|
|
1251
|
-
return e.type ===
|
|
1243
|
+
return e.type === T.plural;
|
|
1252
1244
|
}
|
|
1253
|
-
function
|
|
1254
|
-
return e.type ===
|
|
1245
|
+
function Hn(e) {
|
|
1246
|
+
return e.type === T.pound;
|
|
1255
1247
|
}
|
|
1256
|
-
function
|
|
1257
|
-
return e.type ===
|
|
1248
|
+
function tr(e) {
|
|
1249
|
+
return e.type === T.tag;
|
|
1258
1250
|
}
|
|
1259
1251
|
function rr(e) {
|
|
1260
|
-
return e.type ===
|
|
1261
|
-
}
|
|
1262
|
-
function nr(e) {
|
|
1263
|
-
return !!(e && typeof e == "object" && e.type === te.number);
|
|
1252
|
+
return !!(e && typeof e == "object" && e.type === re.number);
|
|
1264
1253
|
}
|
|
1265
|
-
function
|
|
1266
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1254
|
+
function ze(e) {
|
|
1255
|
+
return !!(e && typeof e == "object" && e.type === re.dateTime);
|
|
1267
1256
|
}
|
|
1268
|
-
var
|
|
1269
|
-
function
|
|
1257
|
+
var nr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, An = /(?:[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;
|
|
1258
|
+
function Bn(e) {
|
|
1270
1259
|
var t = {};
|
|
1271
|
-
return e.replace(
|
|
1260
|
+
return e.replace(An, function(r) {
|
|
1272
1261
|
var n = r.length;
|
|
1273
1262
|
switch (r[0]) {
|
|
1274
1263
|
case "G":
|
|
@@ -1357,21 +1346,11 @@ function On(e) {
|
|
|
1357
1346
|
return "";
|
|
1358
1347
|
}), t;
|
|
1359
1348
|
}
|
|
1360
|
-
var
|
|
1361
|
-
|
|
1362
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1363
|
-
r = arguments[n];
|
|
1364
|
-
for (var o in r)
|
|
1365
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1366
|
-
}
|
|
1367
|
-
return t;
|
|
1368
|
-
}, T.apply(this, arguments);
|
|
1369
|
-
};
|
|
1370
|
-
var Rn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1371
|
-
function Mn(e) {
|
|
1349
|
+
var Pn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1350
|
+
function On(e) {
|
|
1372
1351
|
if (e.length === 0)
|
|
1373
1352
|
throw new Error("Number skeleton cannot be empty");
|
|
1374
|
-
for (var t = e.split(
|
|
1353
|
+
for (var t = e.split(Pn).filter(function(h) {
|
|
1375
1354
|
return h.length > 0;
|
|
1376
1355
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1377
1356
|
var o = i[n], s = o.split("/");
|
|
@@ -1386,17 +1365,17 @@ function Mn(e) {
|
|
|
1386
1365
|
}
|
|
1387
1366
|
return r;
|
|
1388
1367
|
}
|
|
1389
|
-
function
|
|
1368
|
+
function Rn(e) {
|
|
1390
1369
|
return e.replace(/^(.*?)-/, "");
|
|
1391
1370
|
}
|
|
1392
|
-
var
|
|
1393
|
-
function
|
|
1371
|
+
var gt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ir = /^(@+)?(\+|#+)?[rs]?$/g, Mn = /(\*)(0+)|(#+)(0+)|(0+)/g, or = /^(0+)$/;
|
|
1372
|
+
function _t(e) {
|
|
1394
1373
|
var t = {};
|
|
1395
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1374
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ir, function(r, n, i) {
|
|
1396
1375
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1397
1376
|
}), t;
|
|
1398
1377
|
}
|
|
1399
|
-
function
|
|
1378
|
+
function sr(e) {
|
|
1400
1379
|
switch (e) {
|
|
1401
1380
|
case "sign-auto":
|
|
1402
1381
|
return {
|
|
@@ -1436,7 +1415,7 @@ function ar(e) {
|
|
|
1436
1415
|
};
|
|
1437
1416
|
}
|
|
1438
1417
|
}
|
|
1439
|
-
function
|
|
1418
|
+
function In(e) {
|
|
1440
1419
|
var t;
|
|
1441
1420
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1442
1421
|
notation: "engineering"
|
|
@@ -1444,17 +1423,17 @@ function Cn(e) {
|
|
|
1444
1423
|
notation: "scientific"
|
|
1445
1424
|
}, e = e.slice(1)), t) {
|
|
1446
1425
|
var r = e.slice(0, 2);
|
|
1447
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1426
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !or.test(e))
|
|
1448
1427
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1449
1428
|
t.minimumIntegerDigits = e.length;
|
|
1450
1429
|
}
|
|
1451
1430
|
return t;
|
|
1452
1431
|
}
|
|
1453
|
-
function
|
|
1454
|
-
var t = {}, r =
|
|
1432
|
+
function xt(e) {
|
|
1433
|
+
var t = {}, r = sr(e);
|
|
1455
1434
|
return r || t;
|
|
1456
1435
|
}
|
|
1457
|
-
function
|
|
1436
|
+
function Cn(e) {
|
|
1458
1437
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1459
1438
|
var i = n[r];
|
|
1460
1439
|
switch (i.stem) {
|
|
@@ -1478,7 +1457,7 @@ function Ln(e) {
|
|
|
1478
1457
|
continue;
|
|
1479
1458
|
case "measure-unit":
|
|
1480
1459
|
case "unit":
|
|
1481
|
-
t.style = "unit", t.unit =
|
|
1460
|
+
t.style = "unit", t.unit = Rn(i.options[0]);
|
|
1482
1461
|
continue;
|
|
1483
1462
|
case "compact-short":
|
|
1484
1463
|
case "K":
|
|
@@ -1489,13 +1468,13 @@ function Ln(e) {
|
|
|
1489
1468
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1490
1469
|
continue;
|
|
1491
1470
|
case "scientific":
|
|
1492
|
-
t =
|
|
1493
|
-
return
|
|
1471
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1472
|
+
return x(x({}, l), xt(u));
|
|
1494
1473
|
}, {}));
|
|
1495
1474
|
continue;
|
|
1496
1475
|
case "engineering":
|
|
1497
|
-
t =
|
|
1498
|
-
return
|
|
1476
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1477
|
+
return x(x({}, l), xt(u));
|
|
1499
1478
|
}, {}));
|
|
1500
1479
|
continue;
|
|
1501
1480
|
case "notation-simple":
|
|
@@ -1540,7 +1519,7 @@ function Ln(e) {
|
|
|
1540
1519
|
case "integer-width":
|
|
1541
1520
|
if (i.options.length > 1)
|
|
1542
1521
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1543
|
-
i.options[0].replace(
|
|
1522
|
+
i.options[0].replace(Mn, function(l, u, c, p, h, b) {
|
|
1544
1523
|
if (u)
|
|
1545
1524
|
t.minimumIntegerDigits = c.length;
|
|
1546
1525
|
else {
|
|
@@ -1553,28 +1532,28 @@ function Ln(e) {
|
|
|
1553
1532
|
});
|
|
1554
1533
|
continue;
|
|
1555
1534
|
}
|
|
1556
|
-
if (
|
|
1535
|
+
if (or.test(i.stem)) {
|
|
1557
1536
|
t.minimumIntegerDigits = i.stem.length;
|
|
1558
1537
|
continue;
|
|
1559
1538
|
}
|
|
1560
|
-
if (
|
|
1539
|
+
if (gt.test(i.stem)) {
|
|
1561
1540
|
if (i.options.length > 1)
|
|
1562
1541
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1563
|
-
i.stem.replace(
|
|
1542
|
+
i.stem.replace(gt, function(l, u, c, p, h, b) {
|
|
1564
1543
|
return c === "*" ? t.minimumFractionDigits = u.length : p && p[0] === "#" ? t.maximumFractionDigits = p.length : h && b ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1565
1544
|
});
|
|
1566
1545
|
var o = i.options[0];
|
|
1567
|
-
o === "w" ? t =
|
|
1546
|
+
o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), _t(o)));
|
|
1568
1547
|
continue;
|
|
1569
1548
|
}
|
|
1570
|
-
if (
|
|
1571
|
-
t =
|
|
1549
|
+
if (ir.test(i.stem)) {
|
|
1550
|
+
t = x(x({}, t), _t(i.stem));
|
|
1572
1551
|
continue;
|
|
1573
1552
|
}
|
|
1574
|
-
var s =
|
|
1575
|
-
s && (t =
|
|
1576
|
-
var a =
|
|
1577
|
-
a && (t =
|
|
1553
|
+
var s = sr(i.stem);
|
|
1554
|
+
s && (t = x(x({}, t), s));
|
|
1555
|
+
var a = In(i.stem);
|
|
1556
|
+
a && (t = x(x({}, t), a));
|
|
1578
1557
|
}
|
|
1579
1558
|
return t;
|
|
1580
1559
|
}
|
|
@@ -2993,13 +2972,13 @@ var ve = {
|
|
|
2993
2972
|
"h"
|
|
2994
2973
|
]
|
|
2995
2974
|
};
|
|
2996
|
-
function
|
|
2975
|
+
function Nn(e, t) {
|
|
2997
2976
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2998
2977
|
var i = e.charAt(n);
|
|
2999
2978
|
if (i === "j") {
|
|
3000
2979
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3001
2980
|
o++, n++;
|
|
3002
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2981
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Ln(t);
|
|
3003
2982
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3004
2983
|
r += l;
|
|
3005
2984
|
for (; s-- > 0; )
|
|
@@ -3009,7 +2988,7 @@ function $n(e, t) {
|
|
|
3009
2988
|
}
|
|
3010
2989
|
return r;
|
|
3011
2990
|
}
|
|
3012
|
-
function
|
|
2991
|
+
function Ln(e) {
|
|
3013
2992
|
var t = e.hourCycle;
|
|
3014
2993
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3015
2994
|
e.hourCycles && // @ts-ignore
|
|
@@ -3031,20 +3010,20 @@ function kn(e) {
|
|
|
3031
3010
|
var i = ve[n || ""] || ve[r || ""] || ve["".concat(r, "-001")] || ve["001"];
|
|
3032
3011
|
return i[0];
|
|
3033
3012
|
}
|
|
3034
|
-
var
|
|
3013
|
+
var Le, $n = new RegExp("^".concat(nr.source, "*")), Dn = new RegExp("".concat(nr.source, "*$"));
|
|
3035
3014
|
function g(e, t) {
|
|
3036
3015
|
return { start: e, end: t };
|
|
3037
3016
|
}
|
|
3038
|
-
var
|
|
3017
|
+
var kn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Un = !!String.fromCodePoint, Fn = !!Object.fromEntries, jn = !!String.prototype.codePointAt, Gn = !!String.prototype.trimStart, Vn = !!String.prototype.trimEnd, qn = !!Number.isSafeInteger, Xn = qn ? Number.isSafeInteger : function(e) {
|
|
3039
3018
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3040
|
-
},
|
|
3019
|
+
}, Ze = !0;
|
|
3041
3020
|
try {
|
|
3042
|
-
var
|
|
3043
|
-
|
|
3021
|
+
var Wn = ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3022
|
+
Ze = ((Le = Wn.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
|
|
3044
3023
|
} catch {
|
|
3045
|
-
|
|
3024
|
+
Ze = !1;
|
|
3046
3025
|
}
|
|
3047
|
-
var
|
|
3026
|
+
var Et = kn ? (
|
|
3048
3027
|
// Native
|
|
3049
3028
|
function(t, r, n) {
|
|
3050
3029
|
return t.startsWith(r, n);
|
|
@@ -3054,7 +3033,7 @@ var St = Fn ? (
|
|
|
3054
3033
|
function(t, r, n) {
|
|
3055
3034
|
return t.slice(n, n + r.length) === r;
|
|
3056
3035
|
}
|
|
3057
|
-
),
|
|
3036
|
+
), Je = Un ? String.fromCodePoint : (
|
|
3058
3037
|
// IE11
|
|
3059
3038
|
function() {
|
|
3060
3039
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3066,9 +3045,9 @@ var St = Fn ? (
|
|
|
3066
3045
|
}
|
|
3067
3046
|
return n;
|
|
3068
3047
|
}
|
|
3069
|
-
),
|
|
3048
|
+
), wt = (
|
|
3070
3049
|
// native
|
|
3071
|
-
|
|
3050
|
+
Fn ? Object.fromEntries : (
|
|
3072
3051
|
// Ponyfill
|
|
3073
3052
|
function(t) {
|
|
3074
3053
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3078,7 +3057,7 @@ var St = Fn ? (
|
|
|
3078
3057
|
return r;
|
|
3079
3058
|
}
|
|
3080
3059
|
)
|
|
3081
|
-
),
|
|
3060
|
+
), ar = jn ? (
|
|
3082
3061
|
// Native
|
|
3083
3062
|
function(t, r) {
|
|
3084
3063
|
return t.codePointAt(r);
|
|
@@ -3092,7 +3071,7 @@ var St = Fn ? (
|
|
|
3092
3071
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3093
3072
|
}
|
|
3094
3073
|
}
|
|
3095
|
-
),
|
|
3074
|
+
), zn = Gn ? (
|
|
3096
3075
|
// Native
|
|
3097
3076
|
function(t) {
|
|
3098
3077
|
return t.trimStart();
|
|
@@ -3100,9 +3079,9 @@ var St = Fn ? (
|
|
|
3100
3079
|
) : (
|
|
3101
3080
|
// Ponyfill
|
|
3102
3081
|
function(t) {
|
|
3103
|
-
return t.replace(
|
|
3082
|
+
return t.replace($n, "");
|
|
3104
3083
|
}
|
|
3105
|
-
),
|
|
3084
|
+
), Zn = Vn ? (
|
|
3106
3085
|
// Native
|
|
3107
3086
|
function(t) {
|
|
3108
3087
|
return t.trimEnd();
|
|
@@ -3110,32 +3089,32 @@ var St = Fn ? (
|
|
|
3110
3089
|
) : (
|
|
3111
3090
|
// Ponyfill
|
|
3112
3091
|
function(t) {
|
|
3113
|
-
return t.replace(
|
|
3092
|
+
return t.replace(Dn, "");
|
|
3114
3093
|
}
|
|
3115
3094
|
);
|
|
3116
|
-
function
|
|
3095
|
+
function ur(e, t) {
|
|
3117
3096
|
return new RegExp(e, t);
|
|
3118
3097
|
}
|
|
3119
|
-
var
|
|
3120
|
-
if (
|
|
3121
|
-
var
|
|
3122
|
-
|
|
3098
|
+
var Qe;
|
|
3099
|
+
if (Ze) {
|
|
3100
|
+
var St = ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3101
|
+
Qe = function(t, r) {
|
|
3123
3102
|
var n;
|
|
3124
|
-
|
|
3125
|
-
var i =
|
|
3103
|
+
St.lastIndex = r;
|
|
3104
|
+
var i = St.exec(t);
|
|
3126
3105
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3127
3106
|
};
|
|
3128
3107
|
} else
|
|
3129
|
-
|
|
3108
|
+
Qe = function(t, r) {
|
|
3130
3109
|
for (var n = []; ; ) {
|
|
3131
|
-
var i =
|
|
3132
|
-
if (i === void 0 ||
|
|
3110
|
+
var i = ar(t, r);
|
|
3111
|
+
if (i === void 0 || lr(i) || Kn(i))
|
|
3133
3112
|
break;
|
|
3134
3113
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3135
3114
|
}
|
|
3136
|
-
return
|
|
3115
|
+
return Je.apply(void 0, n);
|
|
3137
3116
|
};
|
|
3138
|
-
var
|
|
3117
|
+
var Jn = (
|
|
3139
3118
|
/** @class */
|
|
3140
3119
|
function() {
|
|
3141
3120
|
function e(t, r) {
|
|
@@ -3159,14 +3138,14 @@ var Yn = (
|
|
|
3159
3138
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3160
3139
|
var a = this.clonePosition();
|
|
3161
3140
|
this.bump(), i.push({
|
|
3162
|
-
type:
|
|
3141
|
+
type: T.pound,
|
|
3163
3142
|
location: g(a, this.clonePosition())
|
|
3164
3143
|
});
|
|
3165
3144
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3166
3145
|
if (n)
|
|
3167
3146
|
break;
|
|
3168
3147
|
return this.error(y.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3169
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3148
|
+
} else if (o === 60 && !this.ignoreTag && Ye(this.peek() || 0)) {
|
|
3170
3149
|
var s = this.parseTag(t, r);
|
|
3171
3150
|
if (s.err)
|
|
3172
3151
|
return s;
|
|
@@ -3187,7 +3166,7 @@ var Yn = (
|
|
|
3187
3166
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3188
3167
|
return {
|
|
3189
3168
|
val: {
|
|
3190
|
-
type:
|
|
3169
|
+
type: T.literal,
|
|
3191
3170
|
value: "<".concat(i, "/>"),
|
|
3192
3171
|
location: g(n, this.clonePosition())
|
|
3193
3172
|
},
|
|
@@ -3199,12 +3178,12 @@ var Yn = (
|
|
|
3199
3178
|
return o;
|
|
3200
3179
|
var s = o.val, a = this.clonePosition();
|
|
3201
3180
|
if (this.bumpIf("</")) {
|
|
3202
|
-
if (this.isEOF() || !
|
|
3181
|
+
if (this.isEOF() || !Ye(this.char()))
|
|
3203
3182
|
return this.error(y.INVALID_TAG, g(a, this.clonePosition()));
|
|
3204
3183
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3205
3184
|
return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3206
3185
|
val: {
|
|
3207
|
-
type:
|
|
3186
|
+
type: T.tag,
|
|
3208
3187
|
value: i,
|
|
3209
3188
|
children: s,
|
|
3210
3189
|
location: g(n, this.clonePosition())
|
|
@@ -3217,7 +3196,7 @@ var Yn = (
|
|
|
3217
3196
|
return this.error(y.INVALID_TAG, g(n, this.clonePosition()));
|
|
3218
3197
|
}, e.prototype.parseTagName = function() {
|
|
3219
3198
|
var t = this.offset();
|
|
3220
|
-
for (this.bump(); !this.isEOF() &&
|
|
3199
|
+
for (this.bump(); !this.isEOF() && Yn(this.char()); )
|
|
3221
3200
|
this.bump();
|
|
3222
3201
|
return this.message.slice(t, this.offset());
|
|
3223
3202
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3241,12 +3220,12 @@ var Yn = (
|
|
|
3241
3220
|
}
|
|
3242
3221
|
var l = g(n, this.clonePosition());
|
|
3243
3222
|
return {
|
|
3244
|
-
val: { type:
|
|
3223
|
+
val: { type: T.literal, value: i, location: l },
|
|
3245
3224
|
err: null
|
|
3246
3225
|
};
|
|
3247
3226
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3248
3227
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3249
|
-
!
|
|
3228
|
+
!Qn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3250
3229
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3251
3230
|
if (this.isEOF() || this.char() !== 39)
|
|
3252
3231
|
return null;
|
|
@@ -3280,12 +3259,12 @@ var Yn = (
|
|
|
3280
3259
|
r.push(n);
|
|
3281
3260
|
this.bump();
|
|
3282
3261
|
}
|
|
3283
|
-
return
|
|
3262
|
+
return Je.apply(void 0, r);
|
|
3284
3263
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3285
3264
|
if (this.isEOF())
|
|
3286
3265
|
return null;
|
|
3287
3266
|
var n = this.char();
|
|
3288
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3267
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Je(n));
|
|
3289
3268
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3290
3269
|
var n = this.clonePosition();
|
|
3291
3270
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3301,7 +3280,7 @@ var Yn = (
|
|
|
3301
3280
|
case 125:
|
|
3302
3281
|
return this.bump(), {
|
|
3303
3282
|
val: {
|
|
3304
|
-
type:
|
|
3283
|
+
type: T.argument,
|
|
3305
3284
|
// value does not include the opening and closing braces.
|
|
3306
3285
|
value: i,
|
|
3307
3286
|
location: g(n, this.clonePosition())
|
|
@@ -3314,7 +3293,7 @@ var Yn = (
|
|
|
3314
3293
|
return this.error(y.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3315
3294
|
}
|
|
3316
3295
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3317
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3296
|
+
var t = this.clonePosition(), r = this.offset(), n = Qe(this.message, r), i = r + n.length;
|
|
3318
3297
|
this.bumpTo(i);
|
|
3319
3298
|
var o = this.clonePosition(), s = g(t, o);
|
|
3320
3299
|
return { value: n, location: s };
|
|
@@ -3333,7 +3312,7 @@ var Yn = (
|
|
|
3333
3312
|
var c = this.clonePosition(), p = this.parseSimpleArgStyleIfPossible();
|
|
3334
3313
|
if (p.err)
|
|
3335
3314
|
return p;
|
|
3336
|
-
var h =
|
|
3315
|
+
var h = Zn(p.val);
|
|
3337
3316
|
if (h.length === 0)
|
|
3338
3317
|
return this.error(y.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3339
3318
|
var b = g(c, this.clonePosition());
|
|
@@ -3343,34 +3322,34 @@ var Yn = (
|
|
|
3343
3322
|
if (m.err)
|
|
3344
3323
|
return m;
|
|
3345
3324
|
var f = g(i, this.clonePosition());
|
|
3346
|
-
if (u &&
|
|
3347
|
-
var
|
|
3325
|
+
if (u && Et(u?.style, "::", 0)) {
|
|
3326
|
+
var w = zn(u.style.slice(2));
|
|
3348
3327
|
if (a === "number") {
|
|
3349
|
-
var p = this.parseNumberSkeletonFromString(
|
|
3328
|
+
var p = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3350
3329
|
return p.err ? p : {
|
|
3351
|
-
val: { type:
|
|
3330
|
+
val: { type: T.number, value: n, location: f, style: p.val },
|
|
3352
3331
|
err: null
|
|
3353
3332
|
};
|
|
3354
3333
|
} else {
|
|
3355
|
-
if (
|
|
3334
|
+
if (w.length === 0)
|
|
3356
3335
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, f);
|
|
3357
|
-
var B =
|
|
3358
|
-
this.locale && (B =
|
|
3336
|
+
var B = w;
|
|
3337
|
+
this.locale && (B = Nn(w, this.locale));
|
|
3359
3338
|
var h = {
|
|
3360
|
-
type:
|
|
3339
|
+
type: re.dateTime,
|
|
3361
3340
|
pattern: B,
|
|
3362
3341
|
location: u.styleLocation,
|
|
3363
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3364
|
-
},
|
|
3342
|
+
parsedOptions: this.shouldParseSkeletons ? Bn(B) : {}
|
|
3343
|
+
}, C = a === "date" ? T.date : T.time;
|
|
3365
3344
|
return {
|
|
3366
|
-
val: { type:
|
|
3345
|
+
val: { type: C, value: n, location: f, style: h },
|
|
3367
3346
|
err: null
|
|
3368
3347
|
};
|
|
3369
3348
|
}
|
|
3370
3349
|
}
|
|
3371
3350
|
return {
|
|
3372
3351
|
val: {
|
|
3373
|
-
type: a === "number" ?
|
|
3352
|
+
type: a === "number" ? T.number : a === "date" ? T.date : T.time,
|
|
3374
3353
|
value: n,
|
|
3375
3354
|
location: f,
|
|
3376
3355
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3383,9 +3362,9 @@ var Yn = (
|
|
|
3383
3362
|
case "select": {
|
|
3384
3363
|
var P = this.clonePosition();
|
|
3385
3364
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3386
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, g(P,
|
|
3365
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, g(P, x({}, P)));
|
|
3387
3366
|
this.bumpSpace();
|
|
3388
|
-
var $ = this.parseIdentifierIfPossible(),
|
|
3367
|
+
var $ = this.parseIdentifierIfPossible(), N = 0;
|
|
3389
3368
|
if (a !== "select" && $.value === "offset") {
|
|
3390
3369
|
if (!this.bumpIf(":"))
|
|
3391
3370
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
@@ -3393,7 +3372,7 @@ var Yn = (
|
|
|
3393
3372
|
var p = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3394
3373
|
if (p.err)
|
|
3395
3374
|
return p;
|
|
3396
|
-
this.bumpSpace(), $ = this.parseIdentifierIfPossible(),
|
|
3375
|
+
this.bumpSpace(), $ = this.parseIdentifierIfPossible(), N = p.val;
|
|
3397
3376
|
}
|
|
3398
3377
|
var M = this.tryParsePluralOrSelectOptions(t, a, r, $);
|
|
3399
3378
|
if (M.err)
|
|
@@ -3401,23 +3380,23 @@ var Yn = (
|
|
|
3401
3380
|
var m = this.tryParseArgumentClose(i);
|
|
3402
3381
|
if (m.err)
|
|
3403
3382
|
return m;
|
|
3404
|
-
var
|
|
3383
|
+
var D = g(i, this.clonePosition());
|
|
3405
3384
|
return a === "select" ? {
|
|
3406
3385
|
val: {
|
|
3407
|
-
type:
|
|
3386
|
+
type: T.select,
|
|
3408
3387
|
value: n,
|
|
3409
|
-
options:
|
|
3410
|
-
location:
|
|
3388
|
+
options: wt(M.val),
|
|
3389
|
+
location: D
|
|
3411
3390
|
},
|
|
3412
3391
|
err: null
|
|
3413
3392
|
} : {
|
|
3414
3393
|
val: {
|
|
3415
|
-
type:
|
|
3394
|
+
type: T.plural,
|
|
3416
3395
|
value: n,
|
|
3417
|
-
options:
|
|
3418
|
-
offset:
|
|
3396
|
+
options: wt(M.val),
|
|
3397
|
+
offset: N,
|
|
3419
3398
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3420
|
-
location:
|
|
3399
|
+
location: D
|
|
3421
3400
|
},
|
|
3422
3401
|
err: null
|
|
3423
3402
|
};
|
|
@@ -3465,16 +3444,16 @@ var Yn = (
|
|
|
3465
3444
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3466
3445
|
var n = [];
|
|
3467
3446
|
try {
|
|
3468
|
-
n =
|
|
3447
|
+
n = On(t);
|
|
3469
3448
|
} catch {
|
|
3470
3449
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3471
3450
|
}
|
|
3472
3451
|
return {
|
|
3473
3452
|
val: {
|
|
3474
|
-
type:
|
|
3453
|
+
type: re.number,
|
|
3475
3454
|
tokens: n,
|
|
3476
3455
|
location: r,
|
|
3477
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3456
|
+
parsedOptions: this.shouldParseSkeletons ? Cn(n) : {}
|
|
3478
3457
|
},
|
|
3479
3458
|
err: null
|
|
3480
3459
|
};
|
|
@@ -3522,7 +3501,7 @@ var Yn = (
|
|
|
3522
3501
|
break;
|
|
3523
3502
|
}
|
|
3524
3503
|
var l = g(i, this.clonePosition());
|
|
3525
|
-
return o ? (s *= n,
|
|
3504
|
+
return o ? (s *= n, Xn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3526
3505
|
}, e.prototype.offset = function() {
|
|
3527
3506
|
return this.position.offset;
|
|
3528
3507
|
}, e.prototype.isEOF = function() {
|
|
@@ -3537,7 +3516,7 @@ var Yn = (
|
|
|
3537
3516
|
var t = this.position.offset;
|
|
3538
3517
|
if (t >= this.message.length)
|
|
3539
3518
|
throw Error("out of bound");
|
|
3540
|
-
var r =
|
|
3519
|
+
var r = ar(this.message, t);
|
|
3541
3520
|
if (r === void 0)
|
|
3542
3521
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3543
3522
|
return r;
|
|
@@ -3556,7 +3535,7 @@ var Yn = (
|
|
|
3556
3535
|
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);
|
|
3557
3536
|
}
|
|
3558
3537
|
}, e.prototype.bumpIf = function(t) {
|
|
3559
|
-
if (
|
|
3538
|
+
if (Et(this.message, t, this.offset())) {
|
|
3560
3539
|
for (var r = 0; r < t.length; r++)
|
|
3561
3540
|
this.bump();
|
|
3562
3541
|
return !0;
|
|
@@ -3578,7 +3557,7 @@ var Yn = (
|
|
|
3578
3557
|
break;
|
|
3579
3558
|
}
|
|
3580
3559
|
}, e.prototype.bumpSpace = function() {
|
|
3581
|
-
for (; !this.isEOF() &&
|
|
3560
|
+
for (; !this.isEOF() && lr(this.char()); )
|
|
3582
3561
|
this.bump();
|
|
3583
3562
|
}, e.prototype.peek = function() {
|
|
3584
3563
|
if (this.isEOF())
|
|
@@ -3588,47 +3567,47 @@ var Yn = (
|
|
|
3588
3567
|
}, e;
|
|
3589
3568
|
}()
|
|
3590
3569
|
);
|
|
3591
|
-
function
|
|
3570
|
+
function Ye(e) {
|
|
3592
3571
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3593
3572
|
}
|
|
3594
|
-
function
|
|
3595
|
-
return
|
|
3573
|
+
function Qn(e) {
|
|
3574
|
+
return Ye(e) || e === 47;
|
|
3596
3575
|
}
|
|
3597
|
-
function
|
|
3576
|
+
function Yn(e) {
|
|
3598
3577
|
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;
|
|
3599
3578
|
}
|
|
3600
|
-
function
|
|
3579
|
+
function lr(e) {
|
|
3601
3580
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3602
3581
|
}
|
|
3603
|
-
function
|
|
3582
|
+
function Kn(e) {
|
|
3604
3583
|
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;
|
|
3605
3584
|
}
|
|
3606
|
-
function
|
|
3585
|
+
function Ke(e) {
|
|
3607
3586
|
e.forEach(function(t) {
|
|
3608
|
-
if (delete t.location,
|
|
3587
|
+
if (delete t.location, Kt(t) || er(t))
|
|
3609
3588
|
for (var r in t.options)
|
|
3610
|
-
delete t.options[r].location,
|
|
3589
|
+
delete t.options[r].location, Ke(t.options[r].value);
|
|
3611
3590
|
else
|
|
3612
|
-
|
|
3591
|
+
Jt(t) && rr(t.style) || (Qt(t) || Yt(t)) && ze(t.style) ? delete t.style.location : tr(t) && Ke(t.children);
|
|
3613
3592
|
});
|
|
3614
3593
|
}
|
|
3615
|
-
function
|
|
3616
|
-
t === void 0 && (t = {}), t =
|
|
3617
|
-
var r = new
|
|
3594
|
+
function ei(e, t) {
|
|
3595
|
+
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3596
|
+
var r = new Jn(e, t).parse();
|
|
3618
3597
|
if (r.err) {
|
|
3619
3598
|
var n = SyntaxError(y[r.err.kind]);
|
|
3620
3599
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3621
3600
|
}
|
|
3622
|
-
return t?.captureLocation ||
|
|
3601
|
+
return t?.captureLocation || Ke(r.val), r.val;
|
|
3623
3602
|
}
|
|
3624
|
-
var
|
|
3603
|
+
var ne;
|
|
3625
3604
|
(function(e) {
|
|
3626
3605
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3627
|
-
})(
|
|
3628
|
-
var
|
|
3606
|
+
})(ne || (ne = {}));
|
|
3607
|
+
var Ae = (
|
|
3629
3608
|
/** @class */
|
|
3630
3609
|
function(e) {
|
|
3631
|
-
|
|
3610
|
+
V(t, e);
|
|
3632
3611
|
function t(r, n, i) {
|
|
3633
3612
|
var o = e.call(this, r) || this;
|
|
3634
3613
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3637,48 +3616,48 @@ var Pe = (
|
|
|
3637
3616
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3638
3617
|
}, t;
|
|
3639
3618
|
}(Error)
|
|
3640
|
-
),
|
|
3619
|
+
), Tt = (
|
|
3641
3620
|
/** @class */
|
|
3642
3621
|
function(e) {
|
|
3643
|
-
|
|
3622
|
+
V(t, e);
|
|
3644
3623
|
function t(r, n, i, o) {
|
|
3645
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3624
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ne.INVALID_VALUE, o) || this;
|
|
3646
3625
|
}
|
|
3647
3626
|
return t;
|
|
3648
|
-
}(
|
|
3649
|
-
),
|
|
3627
|
+
}(Ae)
|
|
3628
|
+
), ti = (
|
|
3650
3629
|
/** @class */
|
|
3651
3630
|
function(e) {
|
|
3652
|
-
|
|
3631
|
+
V(t, e);
|
|
3653
3632
|
function t(r, n, i) {
|
|
3654
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3633
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
|
|
3655
3634
|
}
|
|
3656
3635
|
return t;
|
|
3657
|
-
}(
|
|
3658
|
-
),
|
|
3636
|
+
}(Ae)
|
|
3637
|
+
), ri = (
|
|
3659
3638
|
/** @class */
|
|
3660
3639
|
function(e) {
|
|
3661
|
-
|
|
3640
|
+
V(t, e);
|
|
3662
3641
|
function t(r, n) {
|
|
3663
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3642
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ne.MISSING_VALUE, n) || this;
|
|
3664
3643
|
}
|
|
3665
3644
|
return t;
|
|
3666
|
-
}(
|
|
3645
|
+
}(Ae)
|
|
3667
3646
|
), R;
|
|
3668
3647
|
(function(e) {
|
|
3669
3648
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3670
3649
|
})(R || (R = {}));
|
|
3671
|
-
function
|
|
3650
|
+
function ni(e) {
|
|
3672
3651
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3673
3652
|
var n = t[t.length - 1];
|
|
3674
3653
|
return !n || n.type !== R.literal || r.type !== R.literal ? t.push(r) : n.value += r.value, t;
|
|
3675
3654
|
}, []);
|
|
3676
3655
|
}
|
|
3677
|
-
function
|
|
3656
|
+
function ii(e) {
|
|
3678
3657
|
return typeof e == "function";
|
|
3679
3658
|
}
|
|
3680
3659
|
function _e(e, t, r, n, i, o, s) {
|
|
3681
|
-
if (e.length === 1 &&
|
|
3660
|
+
if (e.length === 1 && yt(e[0]))
|
|
3682
3661
|
return [
|
|
3683
3662
|
{
|
|
3684
3663
|
type: R.literal,
|
|
@@ -3687,14 +3666,14 @@ function _e(e, t, r, n, i, o, s) {
|
|
|
3687
3666
|
];
|
|
3688
3667
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3689
3668
|
var c = u[l];
|
|
3690
|
-
if (
|
|
3669
|
+
if (yt(c)) {
|
|
3691
3670
|
a.push({
|
|
3692
3671
|
type: R.literal,
|
|
3693
3672
|
value: c.value
|
|
3694
3673
|
});
|
|
3695
3674
|
continue;
|
|
3696
3675
|
}
|
|
3697
|
-
if (
|
|
3676
|
+
if (Hn(c)) {
|
|
3698
3677
|
typeof o == "number" && a.push({
|
|
3699
3678
|
type: R.literal,
|
|
3700
3679
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3703,89 +3682,89 @@ function _e(e, t, r, n, i, o, s) {
|
|
|
3703
3682
|
}
|
|
3704
3683
|
var p = c.value;
|
|
3705
3684
|
if (!(i && p in i))
|
|
3706
|
-
throw new
|
|
3685
|
+
throw new ri(p, s);
|
|
3707
3686
|
var h = i[p];
|
|
3708
|
-
if (
|
|
3687
|
+
if (Tn(c)) {
|
|
3709
3688
|
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), a.push({
|
|
3710
3689
|
type: typeof h == "string" ? R.literal : R.object,
|
|
3711
3690
|
value: h
|
|
3712
3691
|
});
|
|
3713
3692
|
continue;
|
|
3714
3693
|
}
|
|
3715
|
-
if (
|
|
3716
|
-
var b = typeof c.style == "string" ? n.date[c.style] :
|
|
3694
|
+
if (Qt(c)) {
|
|
3695
|
+
var b = typeof c.style == "string" ? n.date[c.style] : ze(c.style) ? c.style.parsedOptions : void 0;
|
|
3717
3696
|
a.push({
|
|
3718
3697
|
type: R.literal,
|
|
3719
3698
|
value: r.getDateTimeFormat(t, b).format(h)
|
|
3720
3699
|
});
|
|
3721
3700
|
continue;
|
|
3722
3701
|
}
|
|
3723
|
-
if (
|
|
3724
|
-
var b = typeof c.style == "string" ? n.time[c.style] :
|
|
3702
|
+
if (Yt(c)) {
|
|
3703
|
+
var b = typeof c.style == "string" ? n.time[c.style] : ze(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3725
3704
|
a.push({
|
|
3726
3705
|
type: R.literal,
|
|
3727
3706
|
value: r.getDateTimeFormat(t, b).format(h)
|
|
3728
3707
|
});
|
|
3729
3708
|
continue;
|
|
3730
3709
|
}
|
|
3731
|
-
if (
|
|
3732
|
-
var b = typeof c.style == "string" ? n.number[c.style] :
|
|
3710
|
+
if (Jt(c)) {
|
|
3711
|
+
var b = typeof c.style == "string" ? n.number[c.style] : rr(c.style) ? c.style.parsedOptions : void 0;
|
|
3733
3712
|
b && b.scale && (h = h * (b.scale || 1)), a.push({
|
|
3734
3713
|
type: R.literal,
|
|
3735
3714
|
value: r.getNumberFormat(t, b).format(h)
|
|
3736
3715
|
});
|
|
3737
3716
|
continue;
|
|
3738
3717
|
}
|
|
3739
|
-
if (
|
|
3740
|
-
var m = c.children, f = c.value,
|
|
3741
|
-
if (!
|
|
3742
|
-
throw new
|
|
3743
|
-
var B = _e(m, t, r, n, i, o),
|
|
3744
|
-
return
|
|
3718
|
+
if (tr(c)) {
|
|
3719
|
+
var m = c.children, f = c.value, w = i[f];
|
|
3720
|
+
if (!ii(w))
|
|
3721
|
+
throw new ti(f, "function", s);
|
|
3722
|
+
var B = _e(m, t, r, n, i, o), C = w(B.map(function(N) {
|
|
3723
|
+
return N.value;
|
|
3745
3724
|
}));
|
|
3746
|
-
Array.isArray(
|
|
3725
|
+
Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(N) {
|
|
3747
3726
|
return {
|
|
3748
|
-
type: typeof
|
|
3749
|
-
value:
|
|
3727
|
+
type: typeof N == "string" ? R.literal : R.object,
|
|
3728
|
+
value: N
|
|
3750
3729
|
};
|
|
3751
3730
|
}));
|
|
3752
3731
|
}
|
|
3753
|
-
if (
|
|
3732
|
+
if (Kt(c)) {
|
|
3754
3733
|
var P = c.options[h] || c.options.other;
|
|
3755
3734
|
if (!P)
|
|
3756
|
-
throw new
|
|
3735
|
+
throw new Tt(c.value, h, Object.keys(c.options), s);
|
|
3757
3736
|
a.push.apply(a, _e(P.value, t, r, n, i));
|
|
3758
3737
|
continue;
|
|
3759
3738
|
}
|
|
3760
|
-
if (
|
|
3739
|
+
if (er(c)) {
|
|
3761
3740
|
var P = c.options["=".concat(h)];
|
|
3762
3741
|
if (!P) {
|
|
3763
3742
|
if (!Intl.PluralRules)
|
|
3764
|
-
throw new
|
|
3743
|
+
throw new Ae(`Intl.PluralRules is not available in this environment.
|
|
3765
3744
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3766
|
-
`,
|
|
3745
|
+
`, ne.MISSING_INTL_API, s);
|
|
3767
3746
|
var $ = r.getPluralRules(t, { type: c.pluralType }).select(h - (c.offset || 0));
|
|
3768
3747
|
P = c.options[$] || c.options.other;
|
|
3769
3748
|
}
|
|
3770
3749
|
if (!P)
|
|
3771
|
-
throw new
|
|
3750
|
+
throw new Tt(c.value, h, Object.keys(c.options), s);
|
|
3772
3751
|
a.push.apply(a, _e(P.value, t, r, n, i, h - (c.offset || 0)));
|
|
3773
3752
|
continue;
|
|
3774
3753
|
}
|
|
3775
3754
|
}
|
|
3776
|
-
return
|
|
3755
|
+
return ni(a);
|
|
3777
3756
|
}
|
|
3778
|
-
function
|
|
3779
|
-
return t ?
|
|
3780
|
-
return r[n] =
|
|
3757
|
+
function oi(e, t) {
|
|
3758
|
+
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3759
|
+
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3781
3760
|
}, {})) : e;
|
|
3782
3761
|
}
|
|
3783
|
-
function
|
|
3762
|
+
function si(e, t) {
|
|
3784
3763
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3785
|
-
return r[n] =
|
|
3786
|
-
},
|
|
3764
|
+
return r[n] = oi(e[n], t[n]), r;
|
|
3765
|
+
}, x({}, e)) : e;
|
|
3787
3766
|
}
|
|
3788
|
-
function
|
|
3767
|
+
function $e(e) {
|
|
3789
3768
|
return {
|
|
3790
3769
|
create: function() {
|
|
3791
3770
|
return {
|
|
@@ -3799,39 +3778,39 @@ function De(e) {
|
|
|
3799
3778
|
}
|
|
3800
3779
|
};
|
|
3801
3780
|
}
|
|
3802
|
-
function
|
|
3781
|
+
function ai(e) {
|
|
3803
3782
|
return e === void 0 && (e = {
|
|
3804
3783
|
number: {},
|
|
3805
3784
|
dateTime: {},
|
|
3806
3785
|
pluralRules: {}
|
|
3807
3786
|
}), {
|
|
3808
|
-
getNumberFormat:
|
|
3787
|
+
getNumberFormat: Ce(function() {
|
|
3809
3788
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3810
3789
|
r[n] = arguments[n];
|
|
3811
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3790
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ee([void 0], r, !1)))();
|
|
3812
3791
|
}, {
|
|
3813
|
-
cache:
|
|
3814
|
-
strategy:
|
|
3792
|
+
cache: $e(e.number),
|
|
3793
|
+
strategy: Ne.variadic
|
|
3815
3794
|
}),
|
|
3816
|
-
getDateTimeFormat:
|
|
3795
|
+
getDateTimeFormat: Ce(function() {
|
|
3817
3796
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3818
3797
|
r[n] = arguments[n];
|
|
3819
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3798
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ee([void 0], r, !1)))();
|
|
3820
3799
|
}, {
|
|
3821
|
-
cache:
|
|
3822
|
-
strategy:
|
|
3800
|
+
cache: $e(e.dateTime),
|
|
3801
|
+
strategy: Ne.variadic
|
|
3823
3802
|
}),
|
|
3824
|
-
getPluralRules:
|
|
3803
|
+
getPluralRules: Ce(function() {
|
|
3825
3804
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3826
3805
|
r[n] = arguments[n];
|
|
3827
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3806
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ee([void 0], r, !1)))();
|
|
3828
3807
|
}, {
|
|
3829
|
-
cache:
|
|
3830
|
-
strategy:
|
|
3808
|
+
cache: $e(e.pluralRules),
|
|
3809
|
+
strategy: Ne.variadic
|
|
3831
3810
|
})
|
|
3832
3811
|
};
|
|
3833
3812
|
}
|
|
3834
|
-
var
|
|
3813
|
+
var ui = (
|
|
3835
3814
|
/** @class */
|
|
3836
3815
|
function() {
|
|
3837
3816
|
function e(t, r, n, i) {
|
|
@@ -3863,13 +3842,13 @@ var ci = (
|
|
|
3863
3842
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3864
3843
|
var s = i || {};
|
|
3865
3844
|
s.formatters;
|
|
3866
|
-
var a =
|
|
3867
|
-
this.ast = e.__parse(t,
|
|
3845
|
+
var a = Ur(s, ["formatters"]);
|
|
3846
|
+
this.ast = e.__parse(t, x(x({}, a), { locale: this.resolvedLocale }));
|
|
3868
3847
|
} else
|
|
3869
3848
|
this.ast = t;
|
|
3870
3849
|
if (!Array.isArray(this.ast))
|
|
3871
3850
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3872
|
-
this.formats =
|
|
3851
|
+
this.formats = si(e.formats, n), this.formatters = i && i.formatters || ai(this.formatterCache);
|
|
3873
3852
|
}
|
|
3874
3853
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3875
3854
|
get: function() {
|
|
@@ -3882,7 +3861,7 @@ var ci = (
|
|
|
3882
3861
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3883
3862
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3884
3863
|
}
|
|
3885
|
-
}, e.__parse =
|
|
3864
|
+
}, e.__parse = ei, e.formats = {
|
|
3886
3865
|
number: {
|
|
3887
3866
|
integer: {
|
|
3888
3867
|
maximumFractionDigits: 0
|
|
@@ -3943,7 +3922,7 @@ var ci = (
|
|
|
3943
3922
|
}, e;
|
|
3944
3923
|
}()
|
|
3945
3924
|
);
|
|
3946
|
-
function
|
|
3925
|
+
function li(e, t) {
|
|
3947
3926
|
if (t == null)
|
|
3948
3927
|
return;
|
|
3949
3928
|
if (t in e)
|
|
@@ -3964,92 +3943,92 @@ function hi(e, t) {
|
|
|
3964
3943
|
n = void 0;
|
|
3965
3944
|
return n;
|
|
3966
3945
|
}
|
|
3967
|
-
const q = {},
|
|
3946
|
+
const q = {}, ci = (e, t, r) => r && (t in q || (q[t] = {}), e in q[t] || (q[t][e] = r), r), cr = (e, t) => {
|
|
3968
3947
|
if (t == null)
|
|
3969
3948
|
return;
|
|
3970
3949
|
if (t in q && e in q[t])
|
|
3971
3950
|
return q[t][e];
|
|
3972
|
-
const r =
|
|
3951
|
+
const r = Be(t);
|
|
3973
3952
|
for (let n = 0; n < r.length; n++) {
|
|
3974
|
-
const i = r[n], o =
|
|
3953
|
+
const i = r[n], o = fi(i, e);
|
|
3975
3954
|
if (o)
|
|
3976
|
-
return
|
|
3955
|
+
return ci(e, t, o);
|
|
3977
3956
|
}
|
|
3978
3957
|
};
|
|
3979
|
-
let
|
|
3958
|
+
let ot;
|
|
3980
3959
|
const me = He({});
|
|
3981
|
-
function
|
|
3982
|
-
return
|
|
3960
|
+
function hi(e) {
|
|
3961
|
+
return ot[e] || null;
|
|
3983
3962
|
}
|
|
3984
|
-
function
|
|
3985
|
-
return e in
|
|
3963
|
+
function hr(e) {
|
|
3964
|
+
return e in ot;
|
|
3986
3965
|
}
|
|
3987
|
-
function
|
|
3988
|
-
if (!
|
|
3966
|
+
function fi(e, t) {
|
|
3967
|
+
if (!hr(e))
|
|
3989
3968
|
return null;
|
|
3990
|
-
const r =
|
|
3991
|
-
return
|
|
3969
|
+
const r = hi(e);
|
|
3970
|
+
return li(r, t);
|
|
3992
3971
|
}
|
|
3993
|
-
function
|
|
3972
|
+
function pi(e) {
|
|
3994
3973
|
if (e == null)
|
|
3995
3974
|
return;
|
|
3996
|
-
const t =
|
|
3975
|
+
const t = Be(e);
|
|
3997
3976
|
for (let r = 0; r < t.length; r++) {
|
|
3998
3977
|
const n = t[r];
|
|
3999
|
-
if (
|
|
3978
|
+
if (hr(n))
|
|
4000
3979
|
return n;
|
|
4001
3980
|
}
|
|
4002
3981
|
}
|
|
4003
|
-
function
|
|
3982
|
+
function fr(e, ...t) {
|
|
4004
3983
|
delete q[e], me.update((r) => (r[e] = yn.all([r[e] || {}, ...t]), r));
|
|
4005
3984
|
}
|
|
4006
|
-
|
|
3985
|
+
se(
|
|
4007
3986
|
[me],
|
|
4008
3987
|
([e]) => Object.keys(e)
|
|
4009
3988
|
);
|
|
4010
|
-
me.subscribe((e) =>
|
|
3989
|
+
me.subscribe((e) => ot = e);
|
|
4011
3990
|
const xe = {};
|
|
4012
|
-
function
|
|
3991
|
+
function di(e, t) {
|
|
4013
3992
|
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
|
4014
3993
|
}
|
|
4015
|
-
function
|
|
3994
|
+
function pr(e) {
|
|
4016
3995
|
return xe[e];
|
|
4017
3996
|
}
|
|
4018
|
-
function
|
|
4019
|
-
return
|
|
4020
|
-
const r =
|
|
3997
|
+
function mi(e) {
|
|
3998
|
+
return Be(e).map((t) => {
|
|
3999
|
+
const r = pr(t);
|
|
4021
4000
|
return [t, r ? [...r] : []];
|
|
4022
4001
|
}).filter(([, t]) => t.length > 0);
|
|
4023
4002
|
}
|
|
4024
|
-
function
|
|
4025
|
-
return e == null ? !1 :
|
|
4003
|
+
function et(e) {
|
|
4004
|
+
return e == null ? !1 : Be(e).some(
|
|
4026
4005
|
(t) => {
|
|
4027
4006
|
var r;
|
|
4028
|
-
return (r =
|
|
4007
|
+
return (r = pr(t)) == null ? void 0 : r.size;
|
|
4029
4008
|
}
|
|
4030
4009
|
);
|
|
4031
4010
|
}
|
|
4032
|
-
function
|
|
4011
|
+
function bi(e, t) {
|
|
4033
4012
|
return Promise.all(
|
|
4034
|
-
t.map((n) => (
|
|
4035
|
-
).then((n) =>
|
|
4036
|
-
}
|
|
4037
|
-
const
|
|
4038
|
-
function
|
|
4039
|
-
if (!
|
|
4040
|
-
return e in
|
|
4041
|
-
const t =
|
|
4042
|
-
return
|
|
4013
|
+
t.map((n) => (di(e, n), n().then((i) => i.default || i)))
|
|
4014
|
+
).then((n) => fr(e, ...n));
|
|
4015
|
+
}
|
|
4016
|
+
const le = {};
|
|
4017
|
+
function dr(e) {
|
|
4018
|
+
if (!et(e))
|
|
4019
|
+
return e in le ? le[e] : Promise.resolve();
|
|
4020
|
+
const t = mi(e);
|
|
4021
|
+
return le[e] = Promise.all(
|
|
4043
4022
|
t.map(
|
|
4044
|
-
([r, n]) =>
|
|
4023
|
+
([r, n]) => bi(r, n)
|
|
4045
4024
|
)
|
|
4046
4025
|
).then(() => {
|
|
4047
|
-
if (
|
|
4048
|
-
return
|
|
4049
|
-
delete
|
|
4050
|
-
}),
|
|
4026
|
+
if (et(e))
|
|
4027
|
+
return dr(e);
|
|
4028
|
+
delete le[e];
|
|
4029
|
+
}), le[e];
|
|
4051
4030
|
}
|
|
4052
|
-
const
|
|
4031
|
+
const vi = {
|
|
4053
4032
|
number: {
|
|
4054
4033
|
scientific: { notation: "scientific" },
|
|
4055
4034
|
engineering: { notation: "engineering" },
|
|
@@ -4078,135 +4057,135 @@ const gi = {
|
|
|
4078
4057
|
timeZoneName: "short"
|
|
4079
4058
|
}
|
|
4080
4059
|
}
|
|
4081
|
-
},
|
|
4060
|
+
}, yi = {
|
|
4082
4061
|
fallbackLocale: null,
|
|
4083
4062
|
loadingDelay: 200,
|
|
4084
|
-
formats:
|
|
4063
|
+
formats: vi,
|
|
4085
4064
|
warnOnMissingMessages: !0,
|
|
4086
4065
|
handleMissingMessage: void 0,
|
|
4087
4066
|
ignoreTag: !0
|
|
4088
|
-
},
|
|
4089
|
-
function
|
|
4090
|
-
return
|
|
4067
|
+
}, gi = yi;
|
|
4068
|
+
function ie() {
|
|
4069
|
+
return gi;
|
|
4091
4070
|
}
|
|
4092
|
-
const
|
|
4093
|
-
var
|
|
4071
|
+
const De = He(!1);
|
|
4072
|
+
var _i = Object.defineProperty, xi = Object.defineProperties, Ei = Object.getOwnPropertyDescriptors, Ht = Object.getOwnPropertySymbols, wi = Object.prototype.hasOwnProperty, Si = Object.prototype.propertyIsEnumerable, At = (e, t, r) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ti = (e, t) => {
|
|
4094
4073
|
for (var r in t || (t = {}))
|
|
4095
|
-
|
|
4096
|
-
if (
|
|
4097
|
-
for (var r of
|
|
4098
|
-
|
|
4074
|
+
wi.call(t, r) && At(e, r, t[r]);
|
|
4075
|
+
if (Ht)
|
|
4076
|
+
for (var r of Ht(t))
|
|
4077
|
+
Si.call(t, r) && At(e, r, t[r]);
|
|
4099
4078
|
return e;
|
|
4100
|
-
},
|
|
4101
|
-
let
|
|
4102
|
-
const
|
|
4103
|
-
function
|
|
4079
|
+
}, Hi = (e, t) => xi(e, Ei(t));
|
|
4080
|
+
let tt;
|
|
4081
|
+
const we = He(null);
|
|
4082
|
+
function Bt(e) {
|
|
4104
4083
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4105
4084
|
}
|
|
4106
|
-
function
|
|
4107
|
-
const r =
|
|
4108
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4085
|
+
function Be(e, t = ie().fallbackLocale) {
|
|
4086
|
+
const r = Bt(e);
|
|
4087
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Bt(t)])] : r;
|
|
4109
4088
|
}
|
|
4110
4089
|
function z() {
|
|
4111
|
-
return
|
|
4090
|
+
return tt ?? void 0;
|
|
4112
4091
|
}
|
|
4113
|
-
|
|
4114
|
-
|
|
4092
|
+
we.subscribe((e) => {
|
|
4093
|
+
tt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4115
4094
|
});
|
|
4116
|
-
const
|
|
4117
|
-
if (e &&
|
|
4118
|
-
const { loadingDelay: t } =
|
|
4095
|
+
const Ai = (e) => {
|
|
4096
|
+
if (e && pi(e) && et(e)) {
|
|
4097
|
+
const { loadingDelay: t } = ie();
|
|
4119
4098
|
let r;
|
|
4120
4099
|
return typeof window < "u" && z() != null && t ? r = window.setTimeout(
|
|
4121
|
-
() =>
|
|
4100
|
+
() => De.set(!0),
|
|
4122
4101
|
t
|
|
4123
|
-
) :
|
|
4124
|
-
|
|
4102
|
+
) : De.set(!0), dr(e).then(() => {
|
|
4103
|
+
we.set(e);
|
|
4125
4104
|
}).finally(() => {
|
|
4126
|
-
clearTimeout(r),
|
|
4105
|
+
clearTimeout(r), De.set(!1);
|
|
4127
4106
|
});
|
|
4128
4107
|
}
|
|
4129
|
-
return
|
|
4130
|
-
},
|
|
4131
|
-
set:
|
|
4132
|
-
}),
|
|
4108
|
+
return we.set(e);
|
|
4109
|
+
}, ae = Hi(Ti({}, we), {
|
|
4110
|
+
set: Ai
|
|
4111
|
+
}), Pe = (e) => {
|
|
4133
4112
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4134
4113
|
return (n) => {
|
|
4135
4114
|
const i = JSON.stringify(n);
|
|
4136
4115
|
return i in t ? t[i] : t[i] = e(n);
|
|
4137
4116
|
};
|
|
4138
4117
|
};
|
|
4139
|
-
var
|
|
4118
|
+
var Bi = Object.defineProperty, Se = Object.getOwnPropertySymbols, mr = Object.prototype.hasOwnProperty, br = Object.prototype.propertyIsEnumerable, Pt = (e, t, r) => t in e ? Bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, st = (e, t) => {
|
|
4140
4119
|
for (var r in t || (t = {}))
|
|
4141
|
-
|
|
4142
|
-
if (
|
|
4143
|
-
for (var r of
|
|
4144
|
-
|
|
4120
|
+
mr.call(t, r) && Pt(e, r, t[r]);
|
|
4121
|
+
if (Se)
|
|
4122
|
+
for (var r of Se(t))
|
|
4123
|
+
br.call(t, r) && Pt(e, r, t[r]);
|
|
4145
4124
|
return e;
|
|
4146
|
-
},
|
|
4125
|
+
}, ue = (e, t) => {
|
|
4147
4126
|
var r = {};
|
|
4148
4127
|
for (var n in e)
|
|
4149
|
-
|
|
4150
|
-
if (e != null &&
|
|
4151
|
-
for (var n of
|
|
4152
|
-
t.indexOf(n) < 0 &&
|
|
4128
|
+
mr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4129
|
+
if (e != null && Se)
|
|
4130
|
+
for (var n of Se(e))
|
|
4131
|
+
t.indexOf(n) < 0 && br.call(e, n) && (r[n] = e[n]);
|
|
4153
4132
|
return r;
|
|
4154
4133
|
};
|
|
4155
|
-
const
|
|
4156
|
-
const { formats: r } =
|
|
4134
|
+
const de = (e, t) => {
|
|
4135
|
+
const { formats: r } = ie();
|
|
4157
4136
|
if (e in r && t in r[e])
|
|
4158
4137
|
return r[e][t];
|
|
4159
4138
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4160
|
-
},
|
|
4139
|
+
}, Pi = Pe(
|
|
4161
4140
|
(e) => {
|
|
4162
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4141
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
4163
4142
|
if (r == null)
|
|
4164
4143
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4165
|
-
return n && (i =
|
|
4144
|
+
return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
|
|
4166
4145
|
}
|
|
4167
|
-
),
|
|
4146
|
+
), Oi = Pe(
|
|
4168
4147
|
(e) => {
|
|
4169
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4148
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
4170
4149
|
if (r == null)
|
|
4171
4150
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4172
|
-
return n ? i =
|
|
4151
|
+
return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4173
4152
|
}
|
|
4174
|
-
),
|
|
4153
|
+
), Ri = Pe(
|
|
4175
4154
|
(e) => {
|
|
4176
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4155
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
4177
4156
|
if (r == null)
|
|
4178
4157
|
throw new Error(
|
|
4179
4158
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4180
4159
|
);
|
|
4181
|
-
return n ? i =
|
|
4160
|
+
return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4182
4161
|
}
|
|
4183
|
-
),
|
|
4162
|
+
), Mi = (e = {}) => {
|
|
4184
4163
|
var t = e, {
|
|
4185
4164
|
locale: r = z()
|
|
4186
|
-
} = t, n =
|
|
4165
|
+
} = t, n = ue(t, [
|
|
4187
4166
|
"locale"
|
|
4188
4167
|
]);
|
|
4189
|
-
return
|
|
4190
|
-
},
|
|
4168
|
+
return Pi(st({ locale: r }, n));
|
|
4169
|
+
}, Ii = (e = {}) => {
|
|
4191
4170
|
var t = e, {
|
|
4192
4171
|
locale: r = z()
|
|
4193
|
-
} = t, n =
|
|
4172
|
+
} = t, n = ue(t, [
|
|
4194
4173
|
"locale"
|
|
4195
4174
|
]);
|
|
4196
|
-
return
|
|
4197
|
-
},
|
|
4175
|
+
return Oi(st({ locale: r }, n));
|
|
4176
|
+
}, Ci = (e = {}) => {
|
|
4198
4177
|
var t = e, {
|
|
4199
4178
|
locale: r = z()
|
|
4200
|
-
} = t, n =
|
|
4179
|
+
} = t, n = ue(t, [
|
|
4201
4180
|
"locale"
|
|
4202
4181
|
]);
|
|
4203
|
-
return
|
|
4204
|
-
},
|
|
4182
|
+
return Ri(st({ locale: r }, n));
|
|
4183
|
+
}, Ni = Pe(
|
|
4205
4184
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4206
|
-
(e, t = z()) => new
|
|
4207
|
-
ignoreTag:
|
|
4185
|
+
(e, t = z()) => new ui(e, t, ie().formats, {
|
|
4186
|
+
ignoreTag: ie().ignoreTag
|
|
4208
4187
|
})
|
|
4209
|
-
),
|
|
4188
|
+
), Li = (e, t = {}) => {
|
|
4210
4189
|
var r, n, i, o;
|
|
4211
4190
|
let s = t;
|
|
4212
4191
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4219,9 +4198,9 @@ const pe = (e, t) => {
|
|
|
4219
4198
|
throw new Error(
|
|
4220
4199
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4221
4200
|
);
|
|
4222
|
-
let c =
|
|
4201
|
+
let c = cr(e, l);
|
|
4223
4202
|
if (!c)
|
|
4224
|
-
c = (o = (i = (n = (r =
|
|
4203
|
+
c = (o = (i = (n = (r = ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4225
4204
|
else if (typeof c != "string")
|
|
4226
4205
|
return console.warn(
|
|
4227
4206
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4230,7 +4209,7 @@ const pe = (e, t) => {
|
|
|
4230
4209
|
return c;
|
|
4231
4210
|
let p = c;
|
|
4232
4211
|
try {
|
|
4233
|
-
p =
|
|
4212
|
+
p = Ni(c, l).format(a);
|
|
4234
4213
|
} catch (h) {
|
|
4235
4214
|
h instanceof Error && console.warn(
|
|
4236
4215
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4238,21 +4217,21 @@ const pe = (e, t) => {
|
|
|
4238
4217
|
);
|
|
4239
4218
|
}
|
|
4240
4219
|
return p;
|
|
4241
|
-
},
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4220
|
+
}, $i = (e, t) => Ci(t).format(e), Di = (e, t) => Ii(t).format(e), ki = (e, t) => Mi(t).format(e), Ui = (e, t = z()) => cr(e, t), Fi = se([ae, me], () => Li);
|
|
4221
|
+
se([ae], () => $i);
|
|
4222
|
+
se([ae], () => Di);
|
|
4223
|
+
se([ae], () => ki);
|
|
4224
|
+
se([ae, me], () => Ui);
|
|
4246
4225
|
window.emWidgets = { topic: en };
|
|
4247
|
-
const
|
|
4226
|
+
const ji = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4248
4227
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4249
|
-
function
|
|
4250
|
-
|
|
4228
|
+
function Ot(e, t) {
|
|
4229
|
+
fr(e, t);
|
|
4251
4230
|
}
|
|
4252
|
-
function
|
|
4253
|
-
|
|
4231
|
+
function Gi(e) {
|
|
4232
|
+
ae.set(e);
|
|
4254
4233
|
}
|
|
4255
|
-
const
|
|
4234
|
+
const Rt = {
|
|
4256
4235
|
en: {
|
|
4257
4236
|
titleAccountReview: "Account Review Frequency",
|
|
4258
4237
|
accountReviewText: "To promote responsible play, we periodically prompt customers to review their account activity, including Betting History, Payment History, and Gaming History. These reviews help ensure that your activity remains aligned with your current preferences and circumstances. From this page, you can adjust how often you receive these prompts, giving you more control over your experience.",
|
|
@@ -4364,13 +4343,13 @@ const It = {
|
|
|
4364
4343
|
monthly: "Monthly"
|
|
4365
4344
|
}
|
|
4366
4345
|
};
|
|
4367
|
-
function
|
|
4346
|
+
function Vi(e, t) {
|
|
4368
4347
|
if (e) {
|
|
4369
4348
|
const r = document.createElement("style");
|
|
4370
4349
|
r.innerHTML = t, e.appendChild(r);
|
|
4371
4350
|
}
|
|
4372
4351
|
}
|
|
4373
|
-
function
|
|
4352
|
+
function qi(e, t) {
|
|
4374
4353
|
if (!e || !t)
|
|
4375
4354
|
return;
|
|
4376
4355
|
const r = new URL(t);
|
|
@@ -4381,7 +4360,7 @@ function Wi(e, t) {
|
|
|
4381
4360
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4382
4361
|
});
|
|
4383
4362
|
}
|
|
4384
|
-
function
|
|
4363
|
+
function Xi(e, t, r) {
|
|
4385
4364
|
if (window.emMessageBus) {
|
|
4386
4365
|
const n = document.createElement("style");
|
|
4387
4366
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4389,44 +4368,44 @@ function zi(e, t, r) {
|
|
|
4389
4368
|
});
|
|
4390
4369
|
}
|
|
4391
4370
|
}
|
|
4392
|
-
function
|
|
4393
|
-
|
|
4371
|
+
function Wi(e) {
|
|
4372
|
+
gr(e, "svelte-1u91vzw", '.SkeletonContainer{width:100%;display:flex;flex-direction:column;gap:17px;animation:fadeIn 0.3s ease-in 1}.SkeletonContainer .SkeletonMenuButton{display:flex;gap:20px;width:100%}.SkeletonContainer .SkeletonMenuButton.Mobile{margin-top:10px}.SkeletonContainer .SkeletonTextContainer{width:100%;min-height:140px}.SkeletonContainer .SkeletonOptionContainer{display:flex;flex-direction:column;width:100%;min-height:200px}.SkeletonContainer .SkeletonOptionContainer .SkeletonOption{display:flex;flex-direction:row;align-items:center;gap:10px;width:100%;margin:0 0 13px}.SkeletonContainer .SkeletonOptionContainer .SkeletonOption .SkeletonOptionText{width:20%;margin-top:10px}.SkeletonContainer .SkeletonOptionContainer .Button{margin-top:5px}.customRadio{margin-top:15px}.customRadio div{margin:0 0 20px}.customRadio input[type=radio]{position:absolute;left:-9999px}.customRadio input[type=radio]+label{position:relative;padding:3px 0 0 30px;cursor:pointer}.customRadio input[type=radio]+label:before{content:"";background:var(--emw--color-white, #fff);border:1px solid var(--emw--color-gray-300, #58586b);height:16px;width:16px;border-radius:50%;position:absolute;top:0;left:0}.customRadio input[type=radio]+label:after{content:"";background:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));width:14px;height:14px;border-radius:50%;position:absolute;top:2px;left:2px;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.customRadio input[type=radio]:checked+label:after{opacity:1;transform:scale(1)}.PlayerAccountReviewWrapper{position:relative;color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072a));padding:50px;max-width:760px}.PlayerAccountReviewWrapper.PlayerAccountReviewWrapperMobile{padding:20px 15px;max-width:unset}.AccountReviewTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));font-weight:400}.AccountReviewTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.AccountReviewTitleNone{display:none}.AccountReviewDescription{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072a));line-height:24px}.AccountReviewDescription p{min-height:140px}.AccountReviewDescription.AccountReviewDescriptionMobile{font-size:12px;line-height:18px}.BottomButtonsArea{display:grid;grid-column-gap:30px;grid-template-rows:auto;grid-template-columns:1fr 1fr;margin-top:20px}.BottomButtonsArea.BottomButtonsAreaMobile{width:100%;grid-template-columns:1fr}.PlayerRealityCheckButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--emw--button-typography, var(--emw--color-white, #fff));text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.PlayerRealityCheckButton.ButtonInactive{background:transparent;border:1px solid var(--emw--color-gray-300, #58586b);cursor:not-allowed;opacity:0.6;color:var(--emw--color-gray-300, #58586b)}.PlayerRealityCheckButton{background:transparent;border:1px solid var(--emw--color-gray-300, #58586b)}.PlayerRealityCheckButton{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.containerTimeout{animation:fadeIn 0.3s ease-in 1}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}');
|
|
4394
4373
|
}
|
|
4395
|
-
function
|
|
4374
|
+
function Mt(e, t, r) {
|
|
4396
4375
|
const n = e.slice();
|
|
4397
4376
|
return n[28] = t[r].value, n[29] = t[r].text, n;
|
|
4398
4377
|
}
|
|
4399
|
-
function
|
|
4378
|
+
function zi(e, t, r) {
|
|
4400
4379
|
const n = e.slice();
|
|
4401
4380
|
return n[25] = t[r], n;
|
|
4402
4381
|
}
|
|
4403
|
-
function
|
|
4382
|
+
function Zi(e) {
|
|
4404
4383
|
let t, r, n, i = (
|
|
4405
4384
|
/*$_*/
|
|
4406
4385
|
e[5]("titleAccountReview") + ""
|
|
4407
4386
|
), o, s, a, l, u = (
|
|
4408
4387
|
/*$_*/
|
|
4409
4388
|
e[5]("accountReviewText") + ""
|
|
4410
|
-
), c, p, h, b, m, f,
|
|
4389
|
+
), c, p, h, b, m, f, w = (
|
|
4411
4390
|
/*$_*/
|
|
4412
4391
|
e[5]("setFrequency") + ""
|
|
4413
|
-
), B,
|
|
4392
|
+
), B, C, P, $, N, M = (
|
|
4414
4393
|
/*isMobile*/
|
|
4415
|
-
e[6] &&
|
|
4416
|
-
),
|
|
4394
|
+
e[6] && Qi(e)
|
|
4395
|
+
), D = je(
|
|
4417
4396
|
/*options*/
|
|
4418
4397
|
e[4]
|
|
4419
4398
|
), O = [];
|
|
4420
|
-
for (let
|
|
4421
|
-
O[
|
|
4399
|
+
for (let E = 0; E < D.length; E += 1)
|
|
4400
|
+
O[E] = It(Mt(e, D, E));
|
|
4422
4401
|
return {
|
|
4423
4402
|
c() {
|
|
4424
|
-
t =
|
|
4425
|
-
for (let
|
|
4426
|
-
O[
|
|
4427
|
-
b =
|
|
4403
|
+
t = S("div"), M && M.c(), r = U(), n = S("h2"), o = W(i), s = U(), a = S("div"), l = S("p"), c = W(u), p = U(), h = S("form");
|
|
4404
|
+
for (let E = 0; E < O.length; E += 1)
|
|
4405
|
+
O[E].c();
|
|
4406
|
+
b = U(), m = S("div"), f = S("button"), B = W(w), _(n, "class", "AccountReviewTitle " + /*isMobile*/
|
|
4428
4407
|
(e[6] ? "AccountReviewTitleNone" : "")), _(a, "class", "AccountReviewDescription " + /*isMobile*/
|
|
4429
|
-
(e[6] ? "AccountReviewDescriptionMobile" : "")), _(f, "class",
|
|
4408
|
+
(e[6] ? "AccountReviewDescriptionMobile" : "")), _(f, "class", C = "PlayerRealityCheckButton " + (!/*selectedInterval*/
|
|
4430
4409
|
e[2] || /*currentInterval*/
|
|
4431
4410
|
e[3] === /*selectedInterval*/
|
|
4432
4411
|
e[2] ? "ButtonInactive" : "")), f.disabled = P = !/*selectedInterval*/
|
|
@@ -4435,113 +4414,113 @@ function Qi(e) {
|
|
|
4435
4414
|
e[2], _(m, "class", "BottomButtonsArea " + /*isMobile*/
|
|
4436
4415
|
(e[6] ? "BottomButtonsAreaMobile" : "")), _(h, "class", "customRadio"), _(t, "class", "containerTimeout");
|
|
4437
4416
|
},
|
|
4438
|
-
m(
|
|
4439
|
-
|
|
4417
|
+
m(E, L) {
|
|
4418
|
+
G(E, t, L), M && M.m(t, null), v(t, r), v(t, n), v(n, o), v(t, s), v(t, a), v(a, l), v(l, c), v(t, p), v(t, h);
|
|
4440
4419
|
for (let d = 0; d < O.length; d += 1)
|
|
4441
4420
|
O[d] && O[d].m(h, null);
|
|
4442
|
-
v(h, b), v(h, m), v(m, f), v(f, B), $ || (
|
|
4421
|
+
v(h, b), v(h, m), v(m, f), v(f, B), $ || (N = Ee(
|
|
4443
4422
|
f,
|
|
4444
4423
|
"click",
|
|
4445
4424
|
/*submit*/
|
|
4446
4425
|
e[7]
|
|
4447
4426
|
), $ = !0);
|
|
4448
4427
|
},
|
|
4449
|
-
p(
|
|
4428
|
+
p(E, L) {
|
|
4450
4429
|
if (
|
|
4451
4430
|
/*isMobile*/
|
|
4452
|
-
|
|
4431
|
+
E[6] && M.p(E, L), L[0] & /*$_*/
|
|
4453
4432
|
32 && i !== (i = /*$_*/
|
|
4454
|
-
|
|
4433
|
+
E[5]("titleAccountReview") + "") && ce(o, i), L[0] & /*$_*/
|
|
4455
4434
|
32 && u !== (u = /*$_*/
|
|
4456
|
-
|
|
4435
|
+
E[5]("accountReviewText") + "") && ce(c, u), L[0] & /*options, selectedInterval*/
|
|
4457
4436
|
20
|
|
4458
4437
|
) {
|
|
4459
|
-
|
|
4438
|
+
D = je(
|
|
4460
4439
|
/*options*/
|
|
4461
|
-
|
|
4440
|
+
E[4]
|
|
4462
4441
|
);
|
|
4463
4442
|
let d;
|
|
4464
|
-
for (d = 0; d <
|
|
4465
|
-
const
|
|
4466
|
-
O[d] ? O[d].p(
|
|
4443
|
+
for (d = 0; d < D.length; d += 1) {
|
|
4444
|
+
const H = Mt(E, D, d);
|
|
4445
|
+
O[d] ? O[d].p(H, L) : (O[d] = It(H), O[d].c(), O[d].m(h, b));
|
|
4467
4446
|
}
|
|
4468
4447
|
for (; d < O.length; d += 1)
|
|
4469
4448
|
O[d].d(1);
|
|
4470
|
-
O.length =
|
|
4449
|
+
O.length = D.length;
|
|
4471
4450
|
}
|
|
4472
4451
|
L[0] & /*$_*/
|
|
4473
|
-
32 &&
|
|
4474
|
-
|
|
4475
|
-
12 &&
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4452
|
+
32 && w !== (w = /*$_*/
|
|
4453
|
+
E[5]("setFrequency") + "") && ce(B, w), L[0] & /*selectedInterval, currentInterval*/
|
|
4454
|
+
12 && C !== (C = "PlayerRealityCheckButton " + (!/*selectedInterval*/
|
|
4455
|
+
E[2] || /*currentInterval*/
|
|
4456
|
+
E[3] === /*selectedInterval*/
|
|
4457
|
+
E[2] ? "ButtonInactive" : "")) && _(f, "class", C), L[0] & /*selectedInterval, currentInterval*/
|
|
4479
4458
|
12 && P !== (P = !/*selectedInterval*/
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4459
|
+
E[2] || /*currentInterval*/
|
|
4460
|
+
E[3] === /*selectedInterval*/
|
|
4461
|
+
E[2]) && (f.disabled = P);
|
|
4483
4462
|
},
|
|
4484
|
-
d(
|
|
4485
|
-
|
|
4463
|
+
d(E) {
|
|
4464
|
+
E && F(t), M && M.d(), Dt(O, E), $ = !1, N();
|
|
4486
4465
|
}
|
|
4487
4466
|
};
|
|
4488
4467
|
}
|
|
4489
|
-
function
|
|
4468
|
+
function Ji(e) {
|
|
4490
4469
|
let t, r, n, i, o, s, a, l, u;
|
|
4491
|
-
function c(f,
|
|
4470
|
+
function c(f, w) {
|
|
4492
4471
|
return (
|
|
4493
4472
|
/*isMobile*/
|
|
4494
|
-
f[6] ?
|
|
4473
|
+
f[6] ? Ki : Yi
|
|
4495
4474
|
);
|
|
4496
4475
|
}
|
|
4497
|
-
let h = c(e)(e), b =
|
|
4476
|
+
let h = c(e)(e), b = je({ length: 6 }), m = [];
|
|
4498
4477
|
for (let f = 0; f < b.length; f += 1)
|
|
4499
|
-
m[f] =
|
|
4478
|
+
m[f] = eo(zi(e, b, f));
|
|
4500
4479
|
return {
|
|
4501
4480
|
c() {
|
|
4502
|
-
t =
|
|
4481
|
+
t = S("div"), h.c(), r = U(), n = S("div"), i = S("ui-skeleton"), o = U(), s = S("div");
|
|
4503
4482
|
for (let f = 0; f < m.length; f += 1)
|
|
4504
4483
|
m[f].c();
|
|
4505
|
-
a =
|
|
4484
|
+
a = U(), l = S("div"), u = S("ui-skeleton"), A(i, "structure", "text"), A(i, "height", "15px"), A(i, "width", "100%"), A(i, "margin-bottom", "7px"), A(
|
|
4506
4485
|
i,
|
|
4507
4486
|
"rows",
|
|
4508
4487
|
/*isMobile*/
|
|
4509
4488
|
e[6] ? "5" : "3"
|
|
4510
|
-
), _(n, "class", "SkeletonTextContainer"),
|
|
4489
|
+
), _(n, "class", "SkeletonTextContainer"), A(u, "structure", "rectangle"), A(u, "height", "50px"), A(u, "margin-bottom", "0"), A(u, "borderRadius", "5px"), A(
|
|
4511
4490
|
u,
|
|
4512
4491
|
"width",
|
|
4513
4492
|
/*isMobile*/
|
|
4514
4493
|
e[6] ? "100%" : "350px"
|
|
4515
4494
|
), _(l, "class", "Button"), _(s, "class", "SkeletonOptionContainer"), _(t, "class", "SkeletonContainer");
|
|
4516
4495
|
},
|
|
4517
|
-
m(f,
|
|
4518
|
-
|
|
4496
|
+
m(f, w) {
|
|
4497
|
+
G(f, t, w), h.m(t, null), v(t, r), v(t, n), v(n, i), v(t, o), v(t, s);
|
|
4519
4498
|
for (let B = 0; B < m.length; B += 1)
|
|
4520
4499
|
m[B] && m[B].m(s, null);
|
|
4521
4500
|
v(s, a), v(s, l), v(l, u);
|
|
4522
4501
|
},
|
|
4523
|
-
p(f,
|
|
4524
|
-
h.p(f,
|
|
4502
|
+
p(f, w) {
|
|
4503
|
+
h.p(f, w);
|
|
4525
4504
|
},
|
|
4526
4505
|
d(f) {
|
|
4527
|
-
f &&
|
|
4506
|
+
f && F(t), h.d(), Dt(m, f);
|
|
4528
4507
|
}
|
|
4529
4508
|
};
|
|
4530
4509
|
}
|
|
4531
|
-
function
|
|
4510
|
+
function Qi(e) {
|
|
4532
4511
|
let t, r, n, i, o, s, a, l, u, c, p = (
|
|
4533
4512
|
/*$_*/
|
|
4534
4513
|
e[5]("titleAccountReview") + ""
|
|
4535
4514
|
), h, b, m;
|
|
4536
4515
|
return {
|
|
4537
4516
|
c() {
|
|
4538
|
-
t =
|
|
4517
|
+
t = S("div"), r = Z("svg"), n = Z("defs"), i = Z("style"), o = W(`.aaa {
|
|
4539
4518
|
fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));
|
|
4540
4519
|
}
|
|
4541
|
-
`), s = Z("g"), a = Z("g"), l = Z("path"), u =
|
|
4520
|
+
`), s = Z("g"), a = Z("g"), l = Z("path"), u = U(), c = S("h2"), h = W(p), _(l, "class", "aaa"), _(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), _(l, "transform", "translate(15 15) rotate(180)"), _(a, "transform", "translate(20 158)"), _(s, "transform", "translate(-20 -158)"), _(r, "xmlns", "http://www.w3.org/2000/svg"), _(r, "width", "15"), _(r, "height", "15"), _(r, "viewBox", "0 0 15 15"), _(c, "class", "AccountReviewTitleMobile"), _(t, "class", "MenuReturnButton");
|
|
4542
4521
|
},
|
|
4543
|
-
m(f,
|
|
4544
|
-
|
|
4522
|
+
m(f, w) {
|
|
4523
|
+
G(f, t, w), v(t, r), v(r, n), v(n, i), v(i, o), v(r, s), v(s, a), v(a, l), v(t, u), v(t, c), v(c, h), b || (m = [
|
|
4545
4524
|
Ee(
|
|
4546
4525
|
t,
|
|
4547
4526
|
"click",
|
|
@@ -4551,33 +4530,33 @@ function Ki(e) {
|
|
|
4551
4530
|
Ee(t, "keydown", null)
|
|
4552
4531
|
], b = !0);
|
|
4553
4532
|
},
|
|
4554
|
-
p(f,
|
|
4555
|
-
|
|
4533
|
+
p(f, w) {
|
|
4534
|
+
w[0] & /*$_*/
|
|
4556
4535
|
32 && p !== (p = /*$_*/
|
|
4557
|
-
f[5]("titleAccountReview") + "") &&
|
|
4536
|
+
f[5]("titleAccountReview") + "") && ce(h, p);
|
|
4558
4537
|
},
|
|
4559
4538
|
d(f) {
|
|
4560
|
-
f &&
|
|
4539
|
+
f && F(t), b = !1, oe(m);
|
|
4561
4540
|
}
|
|
4562
4541
|
};
|
|
4563
4542
|
}
|
|
4564
|
-
function
|
|
4543
|
+
function It(e) {
|
|
4565
4544
|
let t, r, n, i, o = !1, s, a, l = (
|
|
4566
4545
|
/*text*/
|
|
4567
4546
|
e[29] + ""
|
|
4568
4547
|
), u, c, p, h, b;
|
|
4569
|
-
return p =
|
|
4548
|
+
return p = Er(
|
|
4570
4549
|
/*$$binding_groups*/
|
|
4571
4550
|
e[18][0]
|
|
4572
4551
|
), {
|
|
4573
4552
|
c() {
|
|
4574
|
-
t =
|
|
4553
|
+
t = S("div"), r = S("input"), s = U(), a = S("label"), u = W(l), _(r, "type", "radio"), _(r, "id", n = "interval-" + /*value*/
|
|
4575
4554
|
e[28]), r.__value = i = /*value*/
|
|
4576
|
-
e[28],
|
|
4555
|
+
e[28], ut(r, r.__value), _(a, "for", c = "interval-" + /*value*/
|
|
4577
4556
|
e[28]), p.p(r);
|
|
4578
4557
|
},
|
|
4579
4558
|
m(m, f) {
|
|
4580
|
-
|
|
4559
|
+
G(m, t, f), v(t, r), r.checked = r.__value === /*selectedInterval*/
|
|
4581
4560
|
e[2], v(t, s), v(t, a), v(a, u), h || (b = Ee(
|
|
4582
4561
|
r,
|
|
4583
4562
|
"change",
|
|
@@ -4590,81 +4569,81 @@ function Ct(e) {
|
|
|
4590
4569
|
16 && n !== (n = "interval-" + /*value*/
|
|
4591
4570
|
m[28]) && _(r, "id", n), f[0] & /*options*/
|
|
4592
4571
|
16 && i !== (i = /*value*/
|
|
4593
|
-
m[28]) && (r.__value = i,
|
|
4572
|
+
m[28]) && (r.__value = i, ut(r, r.__value), o = !0), (o || f[0] & /*selectedInterval, options*/
|
|
4594
4573
|
20) && (r.checked = r.__value === /*selectedInterval*/
|
|
4595
4574
|
m[2]), f[0] & /*options*/
|
|
4596
4575
|
16 && l !== (l = /*text*/
|
|
4597
|
-
m[29] + "") &&
|
|
4576
|
+
m[29] + "") && ce(u, l), f[0] & /*options*/
|
|
4598
4577
|
16 && c !== (c = "interval-" + /*value*/
|
|
4599
4578
|
m[28]) && _(a, "for", c);
|
|
4600
4579
|
},
|
|
4601
4580
|
d(m) {
|
|
4602
|
-
m &&
|
|
4581
|
+
m && F(t), p.r(), h = !1, b();
|
|
4603
4582
|
}
|
|
4604
4583
|
};
|
|
4605
4584
|
}
|
|
4606
|
-
function
|
|
4585
|
+
function Yi(e) {
|
|
4607
4586
|
let t;
|
|
4608
4587
|
return {
|
|
4609
4588
|
c() {
|
|
4610
|
-
t =
|
|
4589
|
+
t = S("div"), t.innerHTML = '<ui-skeleton structure="title" width="280px" margin-top="20px"></ui-skeleton>', _(t, "class", "SkeletonHeaderText");
|
|
4611
4590
|
},
|
|
4612
4591
|
m(r, n) {
|
|
4613
|
-
|
|
4592
|
+
G(r, t, n);
|
|
4614
4593
|
},
|
|
4615
4594
|
p: I,
|
|
4616
4595
|
d(r) {
|
|
4617
|
-
r &&
|
|
4596
|
+
r && F(t);
|
|
4618
4597
|
}
|
|
4619
4598
|
};
|
|
4620
4599
|
}
|
|
4621
|
-
function
|
|
4600
|
+
function Ki(e) {
|
|
4622
4601
|
let t, r, n, i;
|
|
4623
4602
|
return {
|
|
4624
4603
|
c() {
|
|
4625
|
-
t =
|
|
4604
|
+
t = S("div"), r = S("ui-skeleton"), n = U(), i = S("ui-skeleton"), A(r, "structure", "title"), A(r, "width", "20px"), A(r, "height", "20px"), A(r, "margin-top", "5px"), A(r, "margin-bottom", "15px"), A(i, "structure", "title"), A(i, "width", "180px"), A(i, "height", "20px"), A(i, "margin-top", "5px"), A(i, "margin-bottom", "15px"), _(t, "class", "SkeletonMenuButton " + /*isMobile*/
|
|
4626
4605
|
(e[6] ? "Mobile" : ""));
|
|
4627
4606
|
},
|
|
4628
4607
|
m(o, s) {
|
|
4629
|
-
|
|
4608
|
+
G(o, t, s), v(t, r), v(t, n), v(t, i);
|
|
4630
4609
|
},
|
|
4631
4610
|
p: I,
|
|
4632
4611
|
d(o) {
|
|
4633
|
-
o &&
|
|
4612
|
+
o && F(t);
|
|
4634
4613
|
}
|
|
4635
4614
|
};
|
|
4636
4615
|
}
|
|
4637
|
-
function
|
|
4616
|
+
function eo(e) {
|
|
4638
4617
|
let t;
|
|
4639
4618
|
return {
|
|
4640
4619
|
c() {
|
|
4641
|
-
t =
|
|
4620
|
+
t = S("div"), t.innerHTML = '<div class="SkeletonOptionCircle"><ui-skeleton structure="circle" size="20px"></ui-skeleton></div> <div class="SkeletonOptionText"><ui-skeleton structure="text" height="10px" width="auto"></ui-skeleton></div>', _(t, "class", "SkeletonOption");
|
|
4642
4621
|
},
|
|
4643
4622
|
m(r, n) {
|
|
4644
|
-
|
|
4623
|
+
G(r, t, n);
|
|
4645
4624
|
},
|
|
4646
4625
|
p: I,
|
|
4647
4626
|
d(r) {
|
|
4648
|
-
r &&
|
|
4627
|
+
r && F(t);
|
|
4649
4628
|
}
|
|
4650
4629
|
};
|
|
4651
4630
|
}
|
|
4652
|
-
function
|
|
4631
|
+
function to(e) {
|
|
4653
4632
|
let t;
|
|
4654
4633
|
function r(o, s) {
|
|
4655
4634
|
return (
|
|
4656
4635
|
/*skeletonLoading*/
|
|
4657
|
-
o[1] ?
|
|
4636
|
+
o[1] ? Ji : Zi
|
|
4658
4637
|
);
|
|
4659
4638
|
}
|
|
4660
4639
|
let n = r(e), i = n(e);
|
|
4661
4640
|
return {
|
|
4662
4641
|
c() {
|
|
4663
|
-
t =
|
|
4642
|
+
t = S("div"), i.c(), _(t, "class", "PlayerAccountReviewWrapper " + /*isMobile*/
|
|
4664
4643
|
(e[6] ? "PlayerAccountReviewWrapperMobile" : ""));
|
|
4665
4644
|
},
|
|
4666
4645
|
m(o, s) {
|
|
4667
|
-
|
|
4646
|
+
G(o, t, s), i.m(t, null), e[19](t);
|
|
4668
4647
|
},
|
|
4669
4648
|
p(o, s) {
|
|
4670
4649
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
@@ -4672,23 +4651,23 @@ function no(e) {
|
|
|
4672
4651
|
i: I,
|
|
4673
4652
|
o: I,
|
|
4674
4653
|
d(o) {
|
|
4675
|
-
o &&
|
|
4654
|
+
o && F(t), i.d(), e[19](null);
|
|
4676
4655
|
}
|
|
4677
4656
|
};
|
|
4678
4657
|
}
|
|
4679
|
-
const
|
|
4680
|
-
function
|
|
4658
|
+
const Ct = 2;
|
|
4659
|
+
function ro(e, t, r) {
|
|
4681
4660
|
let n;
|
|
4682
|
-
|
|
4683
|
-
let { endpoint: i = "" } = t, { playerid: o = "" } = t, { session: s = "" } = t, { lang: a = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: c } = t, { translationurl: p = "" } = t, h, b =
|
|
4684
|
-
const
|
|
4661
|
+
yr(e, Fi, (d) => r(5, n = d));
|
|
4662
|
+
let { endpoint: i = "" } = t, { playerid: o = "" } = t, { session: s = "" } = t, { lang: a = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: c } = t, { translationurl: p = "" } = t, h, b = ji(window.navigator.userAgent) !== "PC", m = !0, f = "", w = "", B = [];
|
|
4663
|
+
const C = async () => {
|
|
4685
4664
|
try {
|
|
4686
4665
|
const d = new URL(`${i}/api/pam/v1/player-notifications`);
|
|
4687
|
-
d.searchParams.set("type", String(
|
|
4688
|
-
const
|
|
4689
|
-
|
|
4690
|
-
const
|
|
4691
|
-
|
|
4666
|
+
d.searchParams.set("type", String(Ct)), d.searchParams.append("createNotificationIfNotFound", "true");
|
|
4667
|
+
const H = new Headers();
|
|
4668
|
+
H.append("X-SessionID", s), H.append("accept", "application/json");
|
|
4669
|
+
const Oe = await (await fetch(d.href, { method: "GET", headers: H })).json();
|
|
4670
|
+
Oe?.interval && (r(3, w = String(Oe?.interval)), r(2, f = w)), B.length || r(4, B = [
|
|
4692
4671
|
{ value: "1", text: n("daily") },
|
|
4693
4672
|
{ value: "2", text: n("weekly") },
|
|
4694
4673
|
{ value: "3", text: n("monthly") },
|
|
@@ -4699,25 +4678,25 @@ function io(e, t, r) {
|
|
|
4699
4678
|
}
|
|
4700
4679
|
}, P = async () => {
|
|
4701
4680
|
try {
|
|
4702
|
-
const d = new URL(`${i}/api/pam/v1/player-notifications`),
|
|
4703
|
-
|
|
4681
|
+
const d = new URL(`${i}/api/pam/v1/player-notifications`), H = new Headers();
|
|
4682
|
+
H.append("X-SessionID", s), H.append("Content-Type", "application/json"), H.append("Accept", "application/json"), d.searchParams.append("createNotificationIfNotFound", "true");
|
|
4704
4683
|
const X = {
|
|
4705
|
-
type:
|
|
4684
|
+
type: Ct,
|
|
4706
4685
|
interval: Number(f),
|
|
4707
4686
|
ackNotification: !0,
|
|
4708
4687
|
ackNotificationTimestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
4709
4688
|
};
|
|
4710
4689
|
return (await fetch(d.href, {
|
|
4711
4690
|
method: "PATCH",
|
|
4712
|
-
headers:
|
|
4691
|
+
headers: H,
|
|
4713
4692
|
body: JSON.stringify(X)
|
|
4714
4693
|
})).ok;
|
|
4715
4694
|
} catch (d) {
|
|
4716
4695
|
return console.error(d), !1;
|
|
4717
4696
|
}
|
|
4718
4697
|
}, $ = (d) => {
|
|
4719
|
-
d.preventDefault(), f && P().then((
|
|
4720
|
-
const X =
|
|
4698
|
+
d.preventDefault(), f && P().then((H) => {
|
|
4699
|
+
const X = H ? {
|
|
4721
4700
|
type: "success",
|
|
4722
4701
|
message: n("successMessage")
|
|
4723
4702
|
} : {
|
|
@@ -4730,9 +4709,9 @@ function io(e, t, r) {
|
|
|
4730
4709
|
data: X
|
|
4731
4710
|
},
|
|
4732
4711
|
window.location.href
|
|
4733
|
-
),
|
|
4712
|
+
), H && r(3, w = f);
|
|
4734
4713
|
});
|
|
4735
|
-
},
|
|
4714
|
+
}, N = () => {
|
|
4736
4715
|
window.postMessage(
|
|
4737
4716
|
{
|
|
4738
4717
|
type: "PlayerAccountMenuActive",
|
|
@@ -4740,22 +4719,22 @@ function io(e, t, r) {
|
|
|
4740
4719
|
},
|
|
4741
4720
|
window.location.href
|
|
4742
4721
|
);
|
|
4743
|
-
}, M = () =>
|
|
4722
|
+
}, M = () => Gi(a), D = () => {
|
|
4744
4723
|
const d = p;
|
|
4745
|
-
d && fetch(d).then((
|
|
4746
|
-
Object.keys(
|
|
4747
|
-
|
|
4724
|
+
d && fetch(d).then((H) => H.json()).then((H) => {
|
|
4725
|
+
Object.keys(H).forEach((X) => {
|
|
4726
|
+
Ot(X, H[X]);
|
|
4748
4727
|
});
|
|
4749
|
-
}).catch((
|
|
4728
|
+
}).catch((H) => console.log(H));
|
|
4750
4729
|
};
|
|
4751
|
-
Object.keys(
|
|
4730
|
+
Object.keys(Rt).forEach((d) => Ot(d, Rt[d])), Hr(() => () => {
|
|
4752
4731
|
});
|
|
4753
4732
|
const O = [[]];
|
|
4754
|
-
function
|
|
4733
|
+
function E() {
|
|
4755
4734
|
f = this.__value, r(2, f);
|
|
4756
4735
|
}
|
|
4757
4736
|
function L(d) {
|
|
4758
|
-
|
|
4737
|
+
ke[d ? "unshift" : "push"](() => {
|
|
4759
4738
|
h = d, r(0, h);
|
|
4760
4739
|
});
|
|
4761
4740
|
}
|
|
@@ -4764,21 +4743,21 @@ function io(e, t, r) {
|
|
|
4764
4743
|
}, e.$$.update = () => {
|
|
4765
4744
|
e.$$.dirty[0] & /*lang*/
|
|
4766
4745
|
4096 && a && M(), e.$$.dirty[0] & /*endpoint, playerid, session*/
|
|
4767
|
-
3584 && i && o && s &&
|
|
4768
|
-
8193 && l && h &&
|
|
4769
|
-
16385 && u && h &&
|
|
4770
|
-
32769 && c && h &&
|
|
4771
|
-
65536 && p &&
|
|
4746
|
+
3584 && i && o && s && C(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4747
|
+
8193 && l && h && Vi(h, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4748
|
+
16385 && u && h && qi(h, u), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4749
|
+
32769 && c && h && Xi(h, `${c}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
4750
|
+
65536 && p && D();
|
|
4772
4751
|
}, [
|
|
4773
4752
|
h,
|
|
4774
4753
|
m,
|
|
4775
4754
|
f,
|
|
4776
|
-
|
|
4755
|
+
w,
|
|
4777
4756
|
B,
|
|
4778
4757
|
n,
|
|
4779
4758
|
b,
|
|
4780
4759
|
$,
|
|
4781
|
-
|
|
4760
|
+
N,
|
|
4782
4761
|
i,
|
|
4783
4762
|
o,
|
|
4784
4763
|
s,
|
|
@@ -4787,19 +4766,19 @@ function io(e, t, r) {
|
|
|
4787
4766
|
u,
|
|
4788
4767
|
c,
|
|
4789
4768
|
p,
|
|
4790
|
-
|
|
4769
|
+
E,
|
|
4791
4770
|
O,
|
|
4792
4771
|
L
|
|
4793
4772
|
];
|
|
4794
4773
|
}
|
|
4795
|
-
class
|
|
4774
|
+
class no extends Dr {
|
|
4796
4775
|
constructor(t) {
|
|
4797
|
-
super(),
|
|
4776
|
+
super(), Lr(
|
|
4798
4777
|
this,
|
|
4799
4778
|
t,
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4779
|
+
ro,
|
|
4780
|
+
to,
|
|
4781
|
+
Lt,
|
|
4803
4782
|
{
|
|
4804
4783
|
endpoint: 9,
|
|
4805
4784
|
playerid: 10,
|
|
@@ -4810,7 +4789,7 @@ class oo extends Dr {
|
|
|
4810
4789
|
mbsource: 15,
|
|
4811
4790
|
translationurl: 16
|
|
4812
4791
|
},
|
|
4813
|
-
|
|
4792
|
+
Wi,
|
|
4814
4793
|
[-1, -1]
|
|
4815
4794
|
);
|
|
4816
4795
|
}
|
|
@@ -4818,52 +4797,52 @@ class oo extends Dr {
|
|
|
4818
4797
|
return this.$$.ctx[9];
|
|
4819
4798
|
}
|
|
4820
4799
|
set endpoint(t) {
|
|
4821
|
-
this.$$set({ endpoint: t }),
|
|
4800
|
+
this.$$set({ endpoint: t }), k();
|
|
4822
4801
|
}
|
|
4823
4802
|
get playerid() {
|
|
4824
4803
|
return this.$$.ctx[10];
|
|
4825
4804
|
}
|
|
4826
4805
|
set playerid(t) {
|
|
4827
|
-
this.$$set({ playerid: t }),
|
|
4806
|
+
this.$$set({ playerid: t }), k();
|
|
4828
4807
|
}
|
|
4829
4808
|
get session() {
|
|
4830
4809
|
return this.$$.ctx[11];
|
|
4831
4810
|
}
|
|
4832
4811
|
set session(t) {
|
|
4833
|
-
this.$$set({ session: t }),
|
|
4812
|
+
this.$$set({ session: t }), k();
|
|
4834
4813
|
}
|
|
4835
4814
|
get lang() {
|
|
4836
4815
|
return this.$$.ctx[12];
|
|
4837
4816
|
}
|
|
4838
4817
|
set lang(t) {
|
|
4839
|
-
this.$$set({ lang: t }),
|
|
4818
|
+
this.$$set({ lang: t }), k();
|
|
4840
4819
|
}
|
|
4841
4820
|
get clientstyling() {
|
|
4842
4821
|
return this.$$.ctx[13];
|
|
4843
4822
|
}
|
|
4844
4823
|
set clientstyling(t) {
|
|
4845
|
-
this.$$set({ clientstyling: t }),
|
|
4824
|
+
this.$$set({ clientstyling: t }), k();
|
|
4846
4825
|
}
|
|
4847
4826
|
get clientstylingurl() {
|
|
4848
4827
|
return this.$$.ctx[14];
|
|
4849
4828
|
}
|
|
4850
4829
|
set clientstylingurl(t) {
|
|
4851
|
-
this.$$set({ clientstylingurl: t }),
|
|
4830
|
+
this.$$set({ clientstylingurl: t }), k();
|
|
4852
4831
|
}
|
|
4853
4832
|
get mbsource() {
|
|
4854
4833
|
return this.$$.ctx[15];
|
|
4855
4834
|
}
|
|
4856
4835
|
set mbsource(t) {
|
|
4857
|
-
this.$$set({ mbsource: t }),
|
|
4836
|
+
this.$$set({ mbsource: t }), k();
|
|
4858
4837
|
}
|
|
4859
4838
|
get translationurl() {
|
|
4860
4839
|
return this.$$.ctx[16];
|
|
4861
4840
|
}
|
|
4862
4841
|
set translationurl(t) {
|
|
4863
|
-
this.$$set({ translationurl: t }),
|
|
4842
|
+
this.$$set({ translationurl: t }), k();
|
|
4864
4843
|
}
|
|
4865
4844
|
}
|
|
4866
|
-
|
|
4845
|
+
$r(no, { endpoint: {}, playerid: {}, session: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4867
4846
|
export {
|
|
4868
|
-
|
|
4847
|
+
no as P
|
|
4869
4848
|
};
|