@everymatrix/player-account-gaming-limits-wrapper-2-nd 1.54.12 → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountGamingLimitsHistory2Nd-C7CBXrRh.js → PlayerAccountGamingLimitsHistory2Nd-6ZSgdjYH.js} +1024 -937
- package/components/PlayerAccountGamingLimitsHistory2Nd-CimZJn7W.cjs +5 -0
- package/components/{PlayerAccountGamingLimitsHistory2Nd-BTaSWdBY.js → PlayerAccountGamingLimitsHistory2Nd-n7LfA8eh.js} +999 -912
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-QKKgAwgl.js → PlayerAccountGamingLimitsPage2Gm16Nd-D3PbENRc.js} +867 -843
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-CnP0SqJg.js → PlayerAccountGamingLimitsPage2Gm16Nd-gyDryzdB.js} +1060 -1036
- package/components/PlayerAccountGamingLimitsPage2Gm16Nd-pYI9v6in.cjs +21 -0
- package/components/PlayerAccountGamingLimitsWrapper2Nd-B1H0lD_O.cjs +1 -0
- package/components/PlayerAccountGamingLimitsWrapper2Nd-BE5X2N7n.js +1022 -0
- package/components/PlayerAccountGamingLimitsWrapper2Nd-BtdtPQfS.js +1016 -0
- package/es2015/player-account-gaming-limits-wrapper-2-nd.cjs +1 -1
- package/es2015/player-account-gaming-limits-wrapper-2-nd.js +1 -1
- package/esnext/player-account-gaming-limits-wrapper-2-nd.js +1 -1
- package/package.json +1 -1
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
- package/stencil/index-db5752f9--Bvt52z2.js +610 -0
- package/stencil/index-db5752f9-CAzJb5N3.js +594 -0
- package/stencil/index-db5752f9-CEbtfUsZ.cjs +1 -0
- package/stencil/ui-skeleton-982450d2-BH4FIF5y.js +122 -0
- package/stencil/ui-skeleton-982450d2-BYrWGs9b.cjs +1 -0
- package/stencil/ui-skeleton-982450d2-DGJAETMx.js +122 -0
- package/stencil/ui-skeleton-DlfwJJb1.js +29 -0
- package/stencil/ui-skeleton-DtnYQAt6.cjs +1 -0
- package/stencil/ui-skeleton-rqI1NmdA.js +11 -0
- package/components/PlayerAccountGamingLimitsHistory2Nd-CuIbLfju.cjs +0 -5
- package/components/PlayerAccountGamingLimitsPage2Gm16Nd-Dcq_Eqo0.cjs +0 -21
- package/components/PlayerAccountGamingLimitsWrapper2Nd-Bd9X33IC.js +0 -865
- package/components/PlayerAccountGamingLimitsWrapper2Nd-D6L9RuPR.js +0 -871
- package/components/PlayerAccountGamingLimitsWrapper2Nd-mHzFx72I.cjs +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Ur = Object.defineProperty, $r = Object.defineProperties;
|
|
2
|
+
var Gr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var pt = Object.getOwnPropertySymbols;
|
|
4
|
+
var Fr = Object.prototype.hasOwnProperty, jr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ze = (e, t, r) => t in e ? Ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ge = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Fr.call(t, r) && ze(e, r, t[r]);
|
|
8
|
+
if (pt)
|
|
9
|
+
for (var r of pt(t))
|
|
10
|
+
jr.call(t, r) && ze(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, dt = (e, t) => $r(e, Gr(t));
|
|
13
|
+
var N = (e, t, r) => ze(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
+
var yt = (e, t, r) => new Promise((i, n) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(l));
|
|
@@ -27,56 +27,98 @@ var mt = (e, t, r) => new Promise((i, n) => {
|
|
|
27
27
|
}, a = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function O() {
|
|
31
|
+
}
|
|
32
|
+
function kr(e, t) {
|
|
33
|
+
for (const r in t) e[r] = t[r];
|
|
34
|
+
return (
|
|
35
|
+
/** @type {T & S} */
|
|
36
|
+
e
|
|
37
|
+
);
|
|
31
38
|
}
|
|
32
|
-
function
|
|
39
|
+
function kt(e) {
|
|
33
40
|
return e();
|
|
34
41
|
}
|
|
35
|
-
function
|
|
42
|
+
function bt() {
|
|
36
43
|
return /* @__PURE__ */ Object.create(null);
|
|
37
44
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
45
|
+
function ne(e) {
|
|
46
|
+
e.forEach(kt);
|
|
40
47
|
}
|
|
41
|
-
function
|
|
48
|
+
function ht(e) {
|
|
42
49
|
return typeof e == "function";
|
|
43
50
|
}
|
|
44
|
-
function
|
|
51
|
+
function Vt(e, t) {
|
|
45
52
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
53
|
}
|
|
47
|
-
function
|
|
54
|
+
function Vr(e) {
|
|
48
55
|
return Object.keys(e).length === 0;
|
|
49
56
|
}
|
|
50
|
-
function
|
|
57
|
+
function Wt(e, ...t) {
|
|
51
58
|
if (e == null) {
|
|
52
59
|
for (const i of t)
|
|
53
60
|
i(void 0);
|
|
54
|
-
return
|
|
61
|
+
return O;
|
|
55
62
|
}
|
|
56
63
|
const r = e.subscribe(...t);
|
|
57
64
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
65
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
66
|
+
function Wr(e, t, r) {
|
|
67
|
+
e.$$.on_destroy.push(Wt(t, r));
|
|
68
|
+
}
|
|
69
|
+
function Io(e, t, r, i) {
|
|
70
|
+
if (e) {
|
|
71
|
+
const n = Xt(e, t, r, i);
|
|
72
|
+
return e[0](n);
|
|
73
|
+
}
|
|
61
74
|
}
|
|
62
|
-
function
|
|
75
|
+
function Xt(e, t, r, i) {
|
|
76
|
+
return e[1] && i ? kr(r.ctx.slice(), e[1](i(t))) : r.ctx;
|
|
77
|
+
}
|
|
78
|
+
function No(e, t, r, i) {
|
|
79
|
+
if (e[2] && i) {
|
|
80
|
+
const n = e[2](i(r));
|
|
81
|
+
if (t.dirty === void 0)
|
|
82
|
+
return n;
|
|
83
|
+
if (typeof n == "object") {
|
|
84
|
+
const o = [], s = Math.max(t.dirty.length, n.length);
|
|
85
|
+
for (let a = 0; a < s; a += 1)
|
|
86
|
+
o[a] = t.dirty[a] | n[a];
|
|
87
|
+
return o;
|
|
88
|
+
}
|
|
89
|
+
return t.dirty | n;
|
|
90
|
+
}
|
|
91
|
+
return t.dirty;
|
|
92
|
+
}
|
|
93
|
+
function Mo(e, t, r, i, n, o) {
|
|
94
|
+
if (n) {
|
|
95
|
+
const s = Xt(t, r, i, o);
|
|
96
|
+
e.p(s, n);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function Ro(e) {
|
|
100
|
+
if (e.ctx.length > 32) {
|
|
101
|
+
const t = [], r = e.ctx.length / 32;
|
|
102
|
+
for (let i = 0; i < r; i++)
|
|
103
|
+
t[i] = -1;
|
|
104
|
+
return t;
|
|
105
|
+
}
|
|
106
|
+
return -1;
|
|
107
|
+
}
|
|
108
|
+
function gt(e) {
|
|
63
109
|
return e == null ? "" : e;
|
|
64
110
|
}
|
|
65
|
-
|
|
66
|
-
// @ts-ignore Node typings have this
|
|
67
|
-
global
|
|
68
|
-
);
|
|
69
|
-
function L(e, t) {
|
|
111
|
+
function T(e, t) {
|
|
70
112
|
e.appendChild(t);
|
|
71
113
|
}
|
|
72
|
-
function
|
|
73
|
-
const i =
|
|
114
|
+
function Xr(e, t, r) {
|
|
115
|
+
const i = Zr(e);
|
|
74
116
|
if (!i.getElementById(t)) {
|
|
75
|
-
const n =
|
|
76
|
-
n.id = t, n.textContent = r,
|
|
117
|
+
const n = H("style");
|
|
118
|
+
n.id = t, n.textContent = r, Qr(i, n);
|
|
77
119
|
}
|
|
78
120
|
}
|
|
79
|
-
function
|
|
121
|
+
function Zr(e) {
|
|
80
122
|
if (!e) return document;
|
|
81
123
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
82
124
|
return t && /** @type {ShadowRoot} */
|
|
@@ -85,65 +127,65 @@ function Vr(e) {
|
|
|
85
127
|
t
|
|
86
128
|
) : e.ownerDocument;
|
|
87
129
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
130
|
+
function Qr(e, t) {
|
|
131
|
+
return T(
|
|
90
132
|
/** @type {Document} */
|
|
91
133
|
e.head || e,
|
|
92
134
|
t
|
|
93
135
|
), t.sheet;
|
|
94
136
|
}
|
|
95
|
-
function
|
|
137
|
+
function X(e, t, r) {
|
|
96
138
|
e.insertBefore(t, r || null);
|
|
97
139
|
}
|
|
98
140
|
function k(e) {
|
|
99
141
|
e.parentNode && e.parentNode.removeChild(e);
|
|
100
142
|
}
|
|
101
|
-
function
|
|
143
|
+
function Yr(e, t) {
|
|
102
144
|
for (let r = 0; r < e.length; r += 1)
|
|
103
145
|
e[r] && e[r].d(t);
|
|
104
146
|
}
|
|
105
|
-
function
|
|
147
|
+
function H(e) {
|
|
106
148
|
return document.createElement(e);
|
|
107
149
|
}
|
|
108
|
-
function
|
|
150
|
+
function Ue(e) {
|
|
109
151
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
110
152
|
}
|
|
111
153
|
function R(e) {
|
|
112
154
|
return document.createTextNode(e);
|
|
113
155
|
}
|
|
114
|
-
function
|
|
156
|
+
function Ze() {
|
|
115
157
|
return R(" ");
|
|
116
158
|
}
|
|
117
|
-
function
|
|
159
|
+
function Do() {
|
|
118
160
|
return R("");
|
|
119
161
|
}
|
|
120
|
-
function
|
|
162
|
+
function Jr(e, t, r, i) {
|
|
121
163
|
return e.addEventListener(t, r, i), () => e.removeEventListener(t, r, i);
|
|
122
164
|
}
|
|
123
|
-
function
|
|
165
|
+
function E(e, t, r) {
|
|
124
166
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
125
167
|
}
|
|
126
|
-
function
|
|
168
|
+
function zo(e, t, r) {
|
|
127
169
|
const i = t.toLowerCase();
|
|
128
|
-
i in e ? e[i] = typeof e[i] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
170
|
+
i in e ? e[i] = typeof e[i] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : E(e, t, r);
|
|
129
171
|
}
|
|
130
|
-
function
|
|
172
|
+
function Uo(e) {
|
|
131
173
|
return e === "" ? null : +e;
|
|
132
174
|
}
|
|
133
|
-
function
|
|
175
|
+
function qr(e) {
|
|
134
176
|
return Array.from(e.childNodes);
|
|
135
177
|
}
|
|
136
178
|
function j(e, t) {
|
|
137
179
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
138
180
|
t);
|
|
139
181
|
}
|
|
140
|
-
function
|
|
182
|
+
function $o(e, t) {
|
|
141
183
|
e.value = t == null ? "" : t;
|
|
142
184
|
}
|
|
143
|
-
function
|
|
185
|
+
function Kr(e, t, r, i) {
|
|
144
186
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
145
187
|
}
|
|
146
|
-
function
|
|
188
|
+
function Go(e, t, r) {
|
|
147
189
|
for (let i = 0; i < e.options.length; i += 1) {
|
|
148
190
|
const n = e.options[i];
|
|
149
191
|
if (n.__value === t) {
|
|
@@ -153,14 +195,14 @@ function Io(e, t, r) {
|
|
|
153
195
|
}
|
|
154
196
|
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
155
197
|
}
|
|
156
|
-
function
|
|
198
|
+
function Fo(e) {
|
|
157
199
|
const t = e.querySelector(":checked");
|
|
158
200
|
return t && t.__value;
|
|
159
201
|
}
|
|
160
|
-
function
|
|
202
|
+
function ve(e, t, r) {
|
|
161
203
|
e.classList.toggle(t, !!r);
|
|
162
204
|
}
|
|
163
|
-
function
|
|
205
|
+
function ei(e) {
|
|
164
206
|
const t = {};
|
|
165
207
|
return e.childNodes.forEach(
|
|
166
208
|
/** @param {Element} node */
|
|
@@ -169,96 +211,116 @@ function Jr(e) {
|
|
|
169
211
|
}
|
|
170
212
|
), t;
|
|
171
213
|
}
|
|
172
|
-
let
|
|
173
|
-
function
|
|
174
|
-
|
|
214
|
+
let ce;
|
|
215
|
+
function he(e) {
|
|
216
|
+
ce = e;
|
|
175
217
|
}
|
|
176
|
-
function
|
|
177
|
-
if (!
|
|
178
|
-
return
|
|
218
|
+
function ti() {
|
|
219
|
+
if (!ce) throw new Error("Function called outside component initialization");
|
|
220
|
+
return ce;
|
|
179
221
|
}
|
|
180
|
-
function
|
|
181
|
-
|
|
222
|
+
function ri(e) {
|
|
223
|
+
ti().$$.on_mount.push(e);
|
|
182
224
|
}
|
|
183
|
-
const
|
|
184
|
-
let
|
|
185
|
-
const
|
|
186
|
-
let
|
|
187
|
-
function
|
|
188
|
-
|
|
225
|
+
const J = [], Ae = [];
|
|
226
|
+
let q = [];
|
|
227
|
+
const vt = [], ii = /* @__PURE__ */ Promise.resolve();
|
|
228
|
+
let Qe = !1;
|
|
229
|
+
function ni() {
|
|
230
|
+
Qe || (Qe = !0, ii.then(C));
|
|
189
231
|
}
|
|
190
|
-
function
|
|
191
|
-
|
|
232
|
+
function Ye(e) {
|
|
233
|
+
q.push(e);
|
|
192
234
|
}
|
|
193
|
-
const
|
|
194
|
-
let
|
|
195
|
-
function
|
|
196
|
-
if (
|
|
235
|
+
const $e = /* @__PURE__ */ new Set();
|
|
236
|
+
let Q = 0;
|
|
237
|
+
function C() {
|
|
238
|
+
if (Q !== 0)
|
|
197
239
|
return;
|
|
198
|
-
const e =
|
|
240
|
+
const e = ce;
|
|
199
241
|
do {
|
|
200
242
|
try {
|
|
201
|
-
for (;
|
|
202
|
-
const t =
|
|
203
|
-
|
|
243
|
+
for (; Q < J.length; ) {
|
|
244
|
+
const t = J[Q];
|
|
245
|
+
Q++, he(t), oi(t.$$);
|
|
204
246
|
}
|
|
205
247
|
} catch (t) {
|
|
206
|
-
throw
|
|
248
|
+
throw J.length = 0, Q = 0, t;
|
|
207
249
|
}
|
|
208
|
-
for (
|
|
209
|
-
for (let t = 0; t <
|
|
210
|
-
const r =
|
|
211
|
-
|
|
250
|
+
for (he(null), J.length = 0, Q = 0; Ae.length; ) Ae.pop()();
|
|
251
|
+
for (let t = 0; t < q.length; t += 1) {
|
|
252
|
+
const r = q[t];
|
|
253
|
+
$e.has(r) || ($e.add(r), r());
|
|
212
254
|
}
|
|
213
|
-
|
|
214
|
-
} while (
|
|
215
|
-
for (;
|
|
216
|
-
|
|
217
|
-
|
|
255
|
+
q.length = 0;
|
|
256
|
+
} while (J.length);
|
|
257
|
+
for (; vt.length; )
|
|
258
|
+
vt.pop()();
|
|
259
|
+
Qe = !1, $e.clear(), he(e);
|
|
218
260
|
}
|
|
219
|
-
function
|
|
261
|
+
function oi(e) {
|
|
220
262
|
if (e.fragment !== null) {
|
|
221
|
-
e.update(),
|
|
263
|
+
e.update(), ne(e.before_update);
|
|
222
264
|
const t = e.dirty;
|
|
223
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
265
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ye);
|
|
224
266
|
}
|
|
225
267
|
}
|
|
226
|
-
function
|
|
268
|
+
function si(e) {
|
|
227
269
|
const t = [], r = [];
|
|
228
|
-
|
|
270
|
+
q.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : r.push(i)), r.forEach((i) => i()), q = t;
|
|
271
|
+
}
|
|
272
|
+
const Ee = /* @__PURE__ */ new Set();
|
|
273
|
+
let W;
|
|
274
|
+
function jo() {
|
|
275
|
+
W = {
|
|
276
|
+
r: 0,
|
|
277
|
+
c: [],
|
|
278
|
+
p: W
|
|
279
|
+
// parent group
|
|
280
|
+
};
|
|
229
281
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
282
|
+
function ko() {
|
|
283
|
+
W.r || ne(W.c), W = W.p;
|
|
284
|
+
}
|
|
285
|
+
function ai(e, t) {
|
|
286
|
+
e && e.i && (Ee.delete(e), e.i(t));
|
|
233
287
|
}
|
|
234
|
-
function
|
|
288
|
+
function Vo(e, t, r, i) {
|
|
289
|
+
if (e && e.o) {
|
|
290
|
+
if (Ee.has(e)) return;
|
|
291
|
+
Ee.add(e), W.c.push(() => {
|
|
292
|
+
Ee.delete(e), i && (r && e.d(1), i());
|
|
293
|
+
}), e.o(t);
|
|
294
|
+
} else i && i();
|
|
295
|
+
}
|
|
296
|
+
function _t(e) {
|
|
235
297
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
236
298
|
}
|
|
237
|
-
function
|
|
299
|
+
function ui(e, t, r) {
|
|
238
300
|
const { fragment: i, after_update: n } = e.$$;
|
|
239
|
-
i && i.m(t, r),
|
|
240
|
-
const o = e.$$.on_mount.map(
|
|
241
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
242
|
-
}), n.forEach(
|
|
301
|
+
i && i.m(t, r), Ye(() => {
|
|
302
|
+
const o = e.$$.on_mount.map(kt).filter(ht);
|
|
303
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ne(o), e.$$.on_mount = [];
|
|
304
|
+
}), n.forEach(Ye);
|
|
243
305
|
}
|
|
244
|
-
function
|
|
306
|
+
function li(e, t) {
|
|
245
307
|
const r = e.$$;
|
|
246
|
-
r.fragment !== null && (
|
|
308
|
+
r.fragment !== null && (si(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
247
309
|
}
|
|
248
|
-
function
|
|
249
|
-
e.$$.dirty[0] === -1 && (
|
|
310
|
+
function hi(e, t) {
|
|
311
|
+
e.$$.dirty[0] === -1 && (J.push(e), ni(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
250
312
|
}
|
|
251
|
-
function
|
|
252
|
-
const l =
|
|
253
|
-
|
|
313
|
+
function ci(e, t, r, i, n, o, s = null, a = [-1]) {
|
|
314
|
+
const l = ce;
|
|
315
|
+
he(e);
|
|
254
316
|
const u = e.$$ = {
|
|
255
317
|
fragment: null,
|
|
256
318
|
ctx: [],
|
|
257
319
|
// state
|
|
258
320
|
props: o,
|
|
259
|
-
update:
|
|
321
|
+
update: O,
|
|
260
322
|
not_equal: n,
|
|
261
|
-
bound:
|
|
323
|
+
bound: bt(),
|
|
262
324
|
// lifecycle
|
|
263
325
|
on_mount: [],
|
|
264
326
|
on_destroy: [],
|
|
@@ -267,7 +329,7 @@ function li(e, t, r, i, n, o, s = null, a = [-1]) {
|
|
|
267
329
|
after_update: [],
|
|
268
330
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
269
331
|
// everything else
|
|
270
|
-
callbacks:
|
|
332
|
+
callbacks: bt(),
|
|
271
333
|
dirty: a,
|
|
272
334
|
skip_bound: !1,
|
|
273
335
|
root: t.target || l.$$.root
|
|
@@ -276,39 +338,39 @@ function li(e, t, r, i, n, o, s = null, a = [-1]) {
|
|
|
276
338
|
let h = !1;
|
|
277
339
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
278
340
|
const y = p.length ? p[0] : f;
|
|
279
|
-
return u.ctx && n(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), h &&
|
|
280
|
-
}) : [], u.update(), h = !0,
|
|
341
|
+
return u.ctx && n(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), h && hi(e, c)), f;
|
|
342
|
+
}) : [], u.update(), h = !0, ne(u.before_update), u.fragment = i ? i(u.ctx) : !1, t.target) {
|
|
281
343
|
if (t.hydrate) {
|
|
282
|
-
const c =
|
|
344
|
+
const c = qr(t.target);
|
|
283
345
|
u.fragment && u.fragment.l(c), c.forEach(k);
|
|
284
346
|
} else
|
|
285
347
|
u.fragment && u.fragment.c();
|
|
286
|
-
t.intro &&
|
|
348
|
+
t.intro && ai(e.$$.fragment), ui(e, t.target, t.anchor), C();
|
|
287
349
|
}
|
|
288
|
-
|
|
350
|
+
he(l);
|
|
289
351
|
}
|
|
290
|
-
let
|
|
291
|
-
typeof HTMLElement == "function" && (
|
|
352
|
+
let Zt;
|
|
353
|
+
typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
292
354
|
constructor(t, r, i) {
|
|
293
355
|
super();
|
|
294
356
|
/** The Svelte component constructor */
|
|
295
|
-
|
|
357
|
+
N(this, "$$ctor");
|
|
296
358
|
/** Slots */
|
|
297
|
-
|
|
359
|
+
N(this, "$$s");
|
|
298
360
|
/** The Svelte component instance */
|
|
299
|
-
|
|
361
|
+
N(this, "$$c");
|
|
300
362
|
/** Whether or not the custom element is connected */
|
|
301
|
-
|
|
363
|
+
N(this, "$$cn", !1);
|
|
302
364
|
/** Component props data */
|
|
303
|
-
|
|
365
|
+
N(this, "$$d", {});
|
|
304
366
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
305
|
-
|
|
367
|
+
N(this, "$$r", !1);
|
|
306
368
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
307
|
-
|
|
369
|
+
N(this, "$$p_d", {});
|
|
308
370
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
309
|
-
|
|
371
|
+
N(this, "$$l", {});
|
|
310
372
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
311
|
-
|
|
373
|
+
N(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
312
374
|
this.$$ctor = t, this.$$s = r, i && this.attachShadow({ mode: "open" });
|
|
313
375
|
}
|
|
314
376
|
addEventListener(t, r, i) {
|
|
@@ -325,21 +387,21 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
325
387
|
}
|
|
326
388
|
}
|
|
327
389
|
connectedCallback() {
|
|
328
|
-
return
|
|
390
|
+
return yt(this, null, function* () {
|
|
329
391
|
if (this.$$cn = !0, !this.$$c) {
|
|
330
392
|
let t = function(o) {
|
|
331
393
|
return () => {
|
|
332
394
|
let s;
|
|
333
395
|
return {
|
|
334
396
|
c: function() {
|
|
335
|
-
s =
|
|
397
|
+
s = H("slot"), o !== "default" && E(s, "name", o);
|
|
336
398
|
},
|
|
337
399
|
/**
|
|
338
400
|
* @param {HTMLElement} target
|
|
339
401
|
* @param {HTMLElement} [anchor]
|
|
340
402
|
*/
|
|
341
403
|
m: function(u, h) {
|
|
342
|
-
|
|
404
|
+
X(u, s, h);
|
|
343
405
|
},
|
|
344
406
|
d: function(u) {
|
|
345
407
|
u && k(s);
|
|
@@ -349,18 +411,18 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
349
411
|
};
|
|
350
412
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
351
413
|
return;
|
|
352
|
-
const r = {}, i =
|
|
414
|
+
const r = {}, i = ei(this);
|
|
353
415
|
for (const o of this.$$s)
|
|
354
416
|
o in i && (r[o] = [t(o)]);
|
|
355
417
|
for (const o of this.attributes) {
|
|
356
418
|
const s = this.$$g_p(o.name);
|
|
357
|
-
s in this.$$d || (this.$$d[s] =
|
|
419
|
+
s in this.$$d || (this.$$d[s] = Te(s, o.value, this.$$p_d, "toProp"));
|
|
358
420
|
}
|
|
359
421
|
for (const o in this.$$p_d)
|
|
360
422
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
361
423
|
this.$$c = new this.$$ctor({
|
|
362
424
|
target: this.shadowRoot || this,
|
|
363
|
-
props:
|
|
425
|
+
props: dt(ge({}, this.$$d), {
|
|
364
426
|
$$slots: r,
|
|
365
427
|
$$scope: {
|
|
366
428
|
ctx: []
|
|
@@ -371,7 +433,7 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
371
433
|
this.$$r = !0;
|
|
372
434
|
for (const o in this.$$p_d)
|
|
373
435
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
374
|
-
const s =
|
|
436
|
+
const s = Te(
|
|
375
437
|
o,
|
|
376
438
|
this.$$d[o],
|
|
377
439
|
this.$$p_d,
|
|
@@ -395,7 +457,7 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
395
457
|
// and setting attributes through setAttribute etc, this is helpful
|
|
396
458
|
attributeChangedCallback(t, r, i) {
|
|
397
459
|
var n;
|
|
398
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
460
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Te(t, i, this.$$p_d, "toProp"), (n = this.$$c) == null || n.$set({ [t]: this.$$d[t] }));
|
|
399
461
|
}
|
|
400
462
|
disconnectedCallback() {
|
|
401
463
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -408,7 +470,7 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
408
470
|
) || t;
|
|
409
471
|
}
|
|
410
472
|
});
|
|
411
|
-
function
|
|
473
|
+
function Te(e, t, r, i) {
|
|
412
474
|
var o;
|
|
413
475
|
const n = (o = r[e]) == null ? void 0 : o.type;
|
|
414
476
|
if (t = n === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !r[e])
|
|
@@ -438,8 +500,8 @@ function _e(e, t, r, i) {
|
|
|
438
500
|
return t;
|
|
439
501
|
}
|
|
440
502
|
}
|
|
441
|
-
function
|
|
442
|
-
let s = class extends
|
|
503
|
+
function fi(e, t, r, i, n, o) {
|
|
504
|
+
let s = class extends Zt {
|
|
443
505
|
constructor() {
|
|
444
506
|
super(e, r, n), this.$$p_d = t;
|
|
445
507
|
}
|
|
@@ -456,7 +518,7 @@ function hi(e, t, r, i, n, o) {
|
|
|
456
518
|
},
|
|
457
519
|
set(l) {
|
|
458
520
|
var u;
|
|
459
|
-
l =
|
|
521
|
+
l = Te(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
|
|
460
522
|
}
|
|
461
523
|
});
|
|
462
524
|
}), i.forEach((a) => {
|
|
@@ -469,7 +531,7 @@ function hi(e, t, r, i, n, o) {
|
|
|
469
531
|
}), e.element = /** @type {any} */
|
|
470
532
|
s, s;
|
|
471
533
|
}
|
|
472
|
-
class
|
|
534
|
+
class mi {
|
|
473
535
|
constructor() {
|
|
474
536
|
/**
|
|
475
537
|
* ### PRIVATE API
|
|
@@ -478,7 +540,7 @@ class ci {
|
|
|
478
540
|
*
|
|
479
541
|
* @type {any}
|
|
480
542
|
*/
|
|
481
|
-
|
|
543
|
+
N(this, "$$");
|
|
482
544
|
/**
|
|
483
545
|
* ### PRIVATE API
|
|
484
546
|
*
|
|
@@ -486,11 +548,11 @@ class ci {
|
|
|
486
548
|
*
|
|
487
549
|
* @type {any}
|
|
488
550
|
*/
|
|
489
|
-
|
|
551
|
+
N(this, "$$set");
|
|
490
552
|
}
|
|
491
553
|
/** @returns {void} */
|
|
492
554
|
$destroy() {
|
|
493
|
-
|
|
555
|
+
li(this, 1), this.$destroy = O;
|
|
494
556
|
}
|
|
495
557
|
/**
|
|
496
558
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -499,8 +561,8 @@ class ci {
|
|
|
499
561
|
* @returns {() => void}
|
|
500
562
|
*/
|
|
501
563
|
$on(t, r) {
|
|
502
|
-
if (!
|
|
503
|
-
return
|
|
564
|
+
if (!ht(r))
|
|
565
|
+
return O;
|
|
504
566
|
const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
505
567
|
return i.push(r), () => {
|
|
506
568
|
const n = i.indexOf(r);
|
|
@@ -512,37 +574,37 @@ class ci {
|
|
|
512
574
|
* @returns {void}
|
|
513
575
|
*/
|
|
514
576
|
$set(t) {
|
|
515
|
-
this.$$set && !
|
|
577
|
+
this.$$set && !Vr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
516
578
|
}
|
|
517
579
|
}
|
|
518
|
-
const
|
|
519
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
520
|
-
var
|
|
521
|
-
return
|
|
580
|
+
const pi = "4";
|
|
581
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(pi);
|
|
582
|
+
var Je = function(e, t) {
|
|
583
|
+
return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
522
584
|
r.__proto__ = i;
|
|
523
585
|
} || function(r, i) {
|
|
524
586
|
for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
|
|
525
|
-
},
|
|
587
|
+
}, Je(e, t);
|
|
526
588
|
};
|
|
527
589
|
function G(e, t) {
|
|
528
590
|
if (typeof t != "function" && t !== null)
|
|
529
591
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
530
|
-
|
|
592
|
+
Je(e, t);
|
|
531
593
|
function r() {
|
|
532
594
|
this.constructor = e;
|
|
533
595
|
}
|
|
534
596
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
535
597
|
}
|
|
536
|
-
var
|
|
537
|
-
return
|
|
598
|
+
var x = function() {
|
|
599
|
+
return x = Object.assign || function(t) {
|
|
538
600
|
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
539
601
|
r = arguments[i];
|
|
540
602
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
541
603
|
}
|
|
542
604
|
return t;
|
|
543
|
-
},
|
|
605
|
+
}, x.apply(this, arguments);
|
|
544
606
|
};
|
|
545
|
-
function
|
|
607
|
+
function di(e, t) {
|
|
546
608
|
var r = {};
|
|
547
609
|
for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
548
610
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -550,7 +612,7 @@ function mi(e, t) {
|
|
|
550
612
|
t.indexOf(i[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, i[n]) && (r[i[n]] = e[i[n]]);
|
|
551
613
|
return r;
|
|
552
614
|
}
|
|
553
|
-
function
|
|
615
|
+
function qe(e) {
|
|
554
616
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], i = 0;
|
|
555
617
|
if (r) return r.call(e);
|
|
556
618
|
if (e && typeof e.length == "number") return {
|
|
@@ -560,7 +622,7 @@ function Qe(e) {
|
|
|
560
622
|
};
|
|
561
623
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
562
624
|
}
|
|
563
|
-
function
|
|
625
|
+
function Ke(e, t) {
|
|
564
626
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
565
627
|
if (!r) return e;
|
|
566
628
|
var i = r.call(e), n, o = [], s;
|
|
@@ -577,21 +639,21 @@ function Ye(e, t) {
|
|
|
577
639
|
}
|
|
578
640
|
return o;
|
|
579
641
|
}
|
|
580
|
-
function
|
|
642
|
+
function K(e, t, r) {
|
|
581
643
|
if (r || arguments.length === 2) for (var i = 0, n = t.length, o; i < n; i++)
|
|
582
644
|
(o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
|
|
583
645
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
584
646
|
}
|
|
585
|
-
function
|
|
647
|
+
function $(e) {
|
|
586
648
|
return typeof e == "function";
|
|
587
649
|
}
|
|
588
|
-
function
|
|
650
|
+
function Qt(e) {
|
|
589
651
|
var t = function(i) {
|
|
590
652
|
Error.call(i), i.stack = new Error().stack;
|
|
591
653
|
}, r = e(t);
|
|
592
654
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
593
655
|
}
|
|
594
|
-
var
|
|
656
|
+
var Ge = Qt(function(e) {
|
|
595
657
|
return function(r) {
|
|
596
658
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
597
659
|
` + r.map(function(i, n) {
|
|
@@ -600,13 +662,13 @@ var ze = Vt(function(e) {
|
|
|
600
662
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
601
663
|
};
|
|
602
664
|
});
|
|
603
|
-
function
|
|
665
|
+
function et(e, t) {
|
|
604
666
|
if (e) {
|
|
605
667
|
var r = e.indexOf(t);
|
|
606
668
|
0 <= r && e.splice(r, 1);
|
|
607
669
|
}
|
|
608
670
|
}
|
|
609
|
-
var
|
|
671
|
+
var Be = function() {
|
|
610
672
|
function e(t) {
|
|
611
673
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
612
674
|
}
|
|
@@ -618,7 +680,7 @@ var Ae = function() {
|
|
|
618
680
|
if (s)
|
|
619
681
|
if (this._parentage = null, Array.isArray(s))
|
|
620
682
|
try {
|
|
621
|
-
for (var a =
|
|
683
|
+
for (var a = qe(s), l = a.next(); !l.done; l = a.next()) {
|
|
622
684
|
var u = l.value;
|
|
623
685
|
u.remove(this);
|
|
624
686
|
}
|
|
@@ -634,22 +696,22 @@ var Ae = function() {
|
|
|
634
696
|
else
|
|
635
697
|
s.remove(this);
|
|
636
698
|
var h = this.initialTeardown;
|
|
637
|
-
if (
|
|
699
|
+
if ($(h))
|
|
638
700
|
try {
|
|
639
701
|
h();
|
|
640
702
|
} catch (d) {
|
|
641
|
-
o = d instanceof
|
|
703
|
+
o = d instanceof Ge ? d.errors : [d];
|
|
642
704
|
}
|
|
643
705
|
var c = this._finalizers;
|
|
644
706
|
if (c) {
|
|
645
707
|
this._finalizers = null;
|
|
646
708
|
try {
|
|
647
|
-
for (var f =
|
|
709
|
+
for (var f = qe(c), p = f.next(); !p.done; p = f.next()) {
|
|
648
710
|
var y = p.value;
|
|
649
711
|
try {
|
|
650
|
-
|
|
712
|
+
xt(y);
|
|
651
713
|
} catch (d) {
|
|
652
|
-
o = o != null ? o : [], d instanceof
|
|
714
|
+
o = o != null ? o : [], d instanceof Ge ? o = K(K([], Ke(o)), Ke(d.errors)) : o.push(d);
|
|
653
715
|
}
|
|
654
716
|
}
|
|
655
717
|
} catch (d) {
|
|
@@ -663,13 +725,13 @@ var Ae = function() {
|
|
|
663
725
|
}
|
|
664
726
|
}
|
|
665
727
|
if (o)
|
|
666
|
-
throw new
|
|
728
|
+
throw new Ge(o);
|
|
667
729
|
}
|
|
668
730
|
}, e.prototype.add = function(t) {
|
|
669
731
|
var r;
|
|
670
732
|
if (t && t !== this)
|
|
671
733
|
if (this.closed)
|
|
672
|
-
|
|
734
|
+
xt(t);
|
|
673
735
|
else {
|
|
674
736
|
if (t instanceof e) {
|
|
675
737
|
if (t.closed || t._hasParent(this))
|
|
@@ -686,52 +748,52 @@ var Ae = function() {
|
|
|
686
748
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
687
749
|
}, e.prototype._removeParent = function(t) {
|
|
688
750
|
var r = this._parentage;
|
|
689
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
751
|
+
r === t ? this._parentage = null : Array.isArray(r) && et(r, t);
|
|
690
752
|
}, e.prototype.remove = function(t) {
|
|
691
753
|
var r = this._finalizers;
|
|
692
|
-
r &&
|
|
754
|
+
r && et(r, t), t instanceof e && t._removeParent(this);
|
|
693
755
|
}, e.EMPTY = function() {
|
|
694
756
|
var t = new e();
|
|
695
757
|
return t.closed = !0, t;
|
|
696
758
|
}(), e;
|
|
697
|
-
}(),
|
|
698
|
-
function
|
|
699
|
-
return e instanceof
|
|
759
|
+
}(), Yt = Be.EMPTY;
|
|
760
|
+
function Jt(e) {
|
|
761
|
+
return e instanceof Be || e && "closed" in e && $(e.remove) && $(e.add) && $(e.unsubscribe);
|
|
700
762
|
}
|
|
701
|
-
function
|
|
702
|
-
|
|
763
|
+
function xt(e) {
|
|
764
|
+
$(e) ? e() : e.unsubscribe();
|
|
703
765
|
}
|
|
704
|
-
var
|
|
766
|
+
var yi = {
|
|
705
767
|
Promise: void 0
|
|
706
|
-
},
|
|
768
|
+
}, bi = {
|
|
707
769
|
setTimeout: function(e, t) {
|
|
708
770
|
for (var r = [], i = 2; i < arguments.length; i++)
|
|
709
771
|
r[i - 2] = arguments[i];
|
|
710
|
-
return setTimeout.apply(void 0,
|
|
772
|
+
return setTimeout.apply(void 0, K([e, t], Ke(r)));
|
|
711
773
|
},
|
|
712
774
|
clearTimeout: function(e) {
|
|
713
775
|
return clearTimeout(e);
|
|
714
776
|
},
|
|
715
777
|
delegate: void 0
|
|
716
778
|
};
|
|
717
|
-
function
|
|
718
|
-
|
|
779
|
+
function gi(e) {
|
|
780
|
+
bi.setTimeout(function() {
|
|
719
781
|
throw e;
|
|
720
782
|
});
|
|
721
783
|
}
|
|
722
|
-
function
|
|
784
|
+
function Et() {
|
|
723
785
|
}
|
|
724
|
-
function
|
|
786
|
+
function Le(e) {
|
|
725
787
|
e();
|
|
726
788
|
}
|
|
727
|
-
var
|
|
789
|
+
var qt = function(e) {
|
|
728
790
|
G(t, e);
|
|
729
791
|
function t(r) {
|
|
730
792
|
var i = e.call(this) || this;
|
|
731
|
-
return i.isStopped = !1, r ? (i.destination = r,
|
|
793
|
+
return i.isStopped = !1, r ? (i.destination = r, Jt(r) && r.add(i)) : i.destination = xi, i;
|
|
732
794
|
}
|
|
733
795
|
return t.create = function(r, i, n) {
|
|
734
|
-
return new
|
|
796
|
+
return new tt(r, i, n);
|
|
735
797
|
}, t.prototype.next = function(r) {
|
|
736
798
|
this.isStopped || this._next(r);
|
|
737
799
|
}, t.prototype.error = function(r) {
|
|
@@ -755,7 +817,7 @@ var Zt = function(e) {
|
|
|
755
817
|
this.unsubscribe();
|
|
756
818
|
}
|
|
757
819
|
}, t;
|
|
758
|
-
}(
|
|
820
|
+
}(Be), vi = function() {
|
|
759
821
|
function e(t) {
|
|
760
822
|
this.partialObserver = t;
|
|
761
823
|
}
|
|
@@ -765,7 +827,7 @@ var Zt = function(e) {
|
|
|
765
827
|
try {
|
|
766
828
|
r.next(t);
|
|
767
829
|
} catch (i) {
|
|
768
|
-
|
|
830
|
+
_e(i);
|
|
769
831
|
}
|
|
770
832
|
}, e.prototype.error = function(t) {
|
|
771
833
|
var r = this.partialObserver;
|
|
@@ -773,56 +835,56 @@ var Zt = function(e) {
|
|
|
773
835
|
try {
|
|
774
836
|
r.error(t);
|
|
775
837
|
} catch (i) {
|
|
776
|
-
|
|
838
|
+
_e(i);
|
|
777
839
|
}
|
|
778
840
|
else
|
|
779
|
-
|
|
841
|
+
_e(t);
|
|
780
842
|
}, e.prototype.complete = function() {
|
|
781
843
|
var t = this.partialObserver;
|
|
782
844
|
if (t.complete)
|
|
783
845
|
try {
|
|
784
846
|
t.complete();
|
|
785
847
|
} catch (r) {
|
|
786
|
-
|
|
848
|
+
_e(r);
|
|
787
849
|
}
|
|
788
850
|
}, e;
|
|
789
|
-
}(),
|
|
851
|
+
}(), tt = function(e) {
|
|
790
852
|
G(t, e);
|
|
791
853
|
function t(r, i, n) {
|
|
792
854
|
var o = e.call(this) || this, s;
|
|
793
|
-
return
|
|
855
|
+
return $(r) || !r ? s = {
|
|
794
856
|
next: r != null ? r : void 0,
|
|
795
857
|
error: i != null ? i : void 0,
|
|
796
858
|
complete: n != null ? n : void 0
|
|
797
|
-
} : s = r, o.destination = new
|
|
859
|
+
} : s = r, o.destination = new vi(s), o;
|
|
798
860
|
}
|
|
799
861
|
return t;
|
|
800
|
-
}(
|
|
801
|
-
function
|
|
802
|
-
|
|
862
|
+
}(qt);
|
|
863
|
+
function _e(e) {
|
|
864
|
+
gi(e);
|
|
803
865
|
}
|
|
804
|
-
function
|
|
866
|
+
function _i(e) {
|
|
805
867
|
throw e;
|
|
806
868
|
}
|
|
807
|
-
var
|
|
869
|
+
var xi = {
|
|
808
870
|
closed: !0,
|
|
809
|
-
next:
|
|
810
|
-
error:
|
|
811
|
-
complete:
|
|
812
|
-
},
|
|
871
|
+
next: Et,
|
|
872
|
+
error: _i,
|
|
873
|
+
complete: Et
|
|
874
|
+
}, Ei = function() {
|
|
813
875
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
814
876
|
}();
|
|
815
|
-
function
|
|
877
|
+
function Ti(e) {
|
|
816
878
|
return e;
|
|
817
879
|
}
|
|
818
|
-
function
|
|
819
|
-
return e.length === 0 ?
|
|
880
|
+
function Li(e) {
|
|
881
|
+
return e.length === 0 ? Ti : e.length === 1 ? e[0] : function(r) {
|
|
820
882
|
return e.reduce(function(i, n) {
|
|
821
883
|
return n(i);
|
|
822
884
|
}, r);
|
|
823
885
|
};
|
|
824
886
|
}
|
|
825
|
-
var
|
|
887
|
+
var Tt = function() {
|
|
826
888
|
function e(t) {
|
|
827
889
|
t && (this._subscribe = t);
|
|
828
890
|
}
|
|
@@ -830,8 +892,8 @@ var _t = function() {
|
|
|
830
892
|
var r = new e();
|
|
831
893
|
return r.source = this, r.operator = t, r;
|
|
832
894
|
}, e.prototype.subscribe = function(t, r, i) {
|
|
833
|
-
var n = this, o =
|
|
834
|
-
return
|
|
895
|
+
var n = this, o = wi(t) ? t : new tt(t, r, i);
|
|
896
|
+
return Le(function() {
|
|
835
897
|
var s = n, a = s.operator, l = s.source;
|
|
836
898
|
o.add(a ? a.call(o, l) : l ? n._subscribe(o) : n._trySubscribe(o));
|
|
837
899
|
}), o;
|
|
@@ -843,8 +905,8 @@ var _t = function() {
|
|
|
843
905
|
}
|
|
844
906
|
}, e.prototype.forEach = function(t, r) {
|
|
845
907
|
var i = this;
|
|
846
|
-
return r =
|
|
847
|
-
var s = new
|
|
908
|
+
return r = Lt(r), new r(function(n, o) {
|
|
909
|
+
var s = new tt({
|
|
848
910
|
next: function(a) {
|
|
849
911
|
try {
|
|
850
912
|
t(a);
|
|
@@ -860,15 +922,15 @@ var _t = function() {
|
|
|
860
922
|
}, e.prototype._subscribe = function(t) {
|
|
861
923
|
var r;
|
|
862
924
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
863
|
-
}, e.prototype[
|
|
925
|
+
}, e.prototype[Ei] = function() {
|
|
864
926
|
return this;
|
|
865
927
|
}, e.prototype.pipe = function() {
|
|
866
928
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
867
929
|
t[r] = arguments[r];
|
|
868
|
-
return
|
|
930
|
+
return Li(t)(this);
|
|
869
931
|
}, e.prototype.toPromise = function(t) {
|
|
870
932
|
var r = this;
|
|
871
|
-
return t =
|
|
933
|
+
return t = Lt(t), new t(function(i, n) {
|
|
872
934
|
var o;
|
|
873
935
|
r.subscribe(function(s) {
|
|
874
936
|
return o = s;
|
|
@@ -882,40 +944,40 @@ var _t = function() {
|
|
|
882
944
|
return new e(t);
|
|
883
945
|
}, e;
|
|
884
946
|
}();
|
|
885
|
-
function
|
|
947
|
+
function Lt(e) {
|
|
886
948
|
var t;
|
|
887
|
-
return (t = e != null ? e :
|
|
949
|
+
return (t = e != null ? e : yi.Promise) !== null && t !== void 0 ? t : Promise;
|
|
888
950
|
}
|
|
889
|
-
function
|
|
890
|
-
return e &&
|
|
951
|
+
function Si(e) {
|
|
952
|
+
return e && $(e.next) && $(e.error) && $(e.complete);
|
|
891
953
|
}
|
|
892
|
-
function
|
|
893
|
-
return e && e instanceof
|
|
954
|
+
function wi(e) {
|
|
955
|
+
return e && e instanceof qt || Si(e) && Jt(e);
|
|
894
956
|
}
|
|
895
|
-
var
|
|
957
|
+
var Ai = Qt(function(e) {
|
|
896
958
|
return function() {
|
|
897
959
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
898
960
|
};
|
|
899
|
-
}),
|
|
961
|
+
}), Kt = function(e) {
|
|
900
962
|
G(t, e);
|
|
901
963
|
function t() {
|
|
902
964
|
var r = e.call(this) || this;
|
|
903
965
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
904
966
|
}
|
|
905
967
|
return t.prototype.lift = function(r) {
|
|
906
|
-
var i = new
|
|
968
|
+
var i = new St(this, this);
|
|
907
969
|
return i.operator = r, i;
|
|
908
970
|
}, t.prototype._throwIfClosed = function() {
|
|
909
971
|
if (this.closed)
|
|
910
|
-
throw new
|
|
972
|
+
throw new Ai();
|
|
911
973
|
}, t.prototype.next = function(r) {
|
|
912
974
|
var i = this;
|
|
913
|
-
|
|
975
|
+
Le(function() {
|
|
914
976
|
var n, o;
|
|
915
977
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
916
978
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
|
917
979
|
try {
|
|
918
|
-
for (var s =
|
|
980
|
+
for (var s = qe(i.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
919
981
|
var l = a.value;
|
|
920
982
|
l.next(r);
|
|
921
983
|
}
|
|
@@ -932,7 +994,7 @@ var Si = Vt(function(e) {
|
|
|
932
994
|
});
|
|
933
995
|
}, t.prototype.error = function(r) {
|
|
934
996
|
var i = this;
|
|
935
|
-
|
|
997
|
+
Le(function() {
|
|
936
998
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
937
999
|
i.hasError = i.isStopped = !0, i.thrownError = r;
|
|
938
1000
|
for (var n = i.observers; n.length; )
|
|
@@ -941,7 +1003,7 @@ var Si = Vt(function(e) {
|
|
|
941
1003
|
});
|
|
942
1004
|
}, t.prototype.complete = function() {
|
|
943
1005
|
var r = this;
|
|
944
|
-
|
|
1006
|
+
Le(function() {
|
|
945
1007
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
946
1008
|
r.isStopped = !0;
|
|
947
1009
|
for (var i = r.observers; i.length; )
|
|
@@ -963,19 +1025,19 @@ var Si = Vt(function(e) {
|
|
|
963
1025
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
964
1026
|
}, t.prototype._innerSubscribe = function(r) {
|
|
965
1027
|
var i = this, n = this, o = n.hasError, s = n.isStopped, a = n.observers;
|
|
966
|
-
return o || s ?
|
|
967
|
-
i.currentObservers = null,
|
|
1028
|
+
return o || s ? Yt : (this.currentObservers = null, a.push(r), new Be(function() {
|
|
1029
|
+
i.currentObservers = null, et(a, r);
|
|
968
1030
|
}));
|
|
969
1031
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
970
1032
|
var i = this, n = i.hasError, o = i.thrownError, s = i.isStopped;
|
|
971
1033
|
n ? r.error(o) : s && r.complete();
|
|
972
1034
|
}, t.prototype.asObservable = function() {
|
|
973
|
-
var r = new
|
|
1035
|
+
var r = new Tt();
|
|
974
1036
|
return r.source = this, r;
|
|
975
1037
|
}, t.create = function(r, i) {
|
|
976
|
-
return new
|
|
1038
|
+
return new St(r, i);
|
|
977
1039
|
}, t;
|
|
978
|
-
}(
|
|
1040
|
+
}(Tt), St = function(e) {
|
|
979
1041
|
G(t, e);
|
|
980
1042
|
function t(r, i) {
|
|
981
1043
|
var n = e.call(this) || this;
|
|
@@ -992,17 +1054,17 @@ var Si = Vt(function(e) {
|
|
|
992
1054
|
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || i === void 0 || i.call(r);
|
|
993
1055
|
}, t.prototype._subscribe = function(r) {
|
|
994
1056
|
var i, n;
|
|
995
|
-
return (n = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(r)) !== null && n !== void 0 ? n :
|
|
1057
|
+
return (n = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(r)) !== null && n !== void 0 ? n : Yt;
|
|
996
1058
|
}, t;
|
|
997
|
-
}(
|
|
1059
|
+
}(Kt), er = {
|
|
998
1060
|
now: function() {
|
|
999
|
-
return (
|
|
1061
|
+
return (er.delegate || Date).now();
|
|
1000
1062
|
},
|
|
1001
1063
|
delegate: void 0
|
|
1002
|
-
},
|
|
1064
|
+
}, Hi = function(e) {
|
|
1003
1065
|
G(t, e);
|
|
1004
1066
|
function t(r, i, n) {
|
|
1005
|
-
r === void 0 && (r = 1 / 0), i === void 0 && (i = 1 / 0), n === void 0 && (n =
|
|
1067
|
+
r === void 0 && (r = 1 / 0), i === void 0 && (i = 1 / 0), n === void 0 && (n = er);
|
|
1006
1068
|
var o = e.call(this) || this;
|
|
1007
1069
|
return o._bufferSize = r, o._windowTime = i, o._timestampProvider = n, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = i === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, i), o;
|
|
1008
1070
|
}
|
|
@@ -1022,62 +1084,62 @@ var Si = Vt(function(e) {
|
|
|
1022
1084
|
u && o.splice(0, u + 1);
|
|
1023
1085
|
}
|
|
1024
1086
|
}, t;
|
|
1025
|
-
}(
|
|
1026
|
-
const
|
|
1027
|
-
if (
|
|
1028
|
-
const r = new
|
|
1029
|
-
|
|
1087
|
+
}(Kt);
|
|
1088
|
+
const wt = [], At = {}, Pi = (e, t = 0) => {
|
|
1089
|
+
if (wt.indexOf(e) == -1) {
|
|
1090
|
+
const r = new Hi(t);
|
|
1091
|
+
At[e] = r, wt.push(e);
|
|
1030
1092
|
}
|
|
1031
|
-
return
|
|
1032
|
-
},
|
|
1033
|
-
function
|
|
1093
|
+
return At[e];
|
|
1094
|
+
}, Y = [];
|
|
1095
|
+
function Bi(e, t) {
|
|
1034
1096
|
return {
|
|
1035
|
-
subscribe:
|
|
1097
|
+
subscribe: Oe(e, t).subscribe
|
|
1036
1098
|
};
|
|
1037
1099
|
}
|
|
1038
|
-
function
|
|
1100
|
+
function Oe(e, t = O) {
|
|
1039
1101
|
let r;
|
|
1040
1102
|
const i = /* @__PURE__ */ new Set();
|
|
1041
1103
|
function n(a) {
|
|
1042
|
-
if (
|
|
1043
|
-
const l = !
|
|
1104
|
+
if (Vt(e, a) && (e = a, r)) {
|
|
1105
|
+
const l = !Y.length;
|
|
1044
1106
|
for (const u of i)
|
|
1045
|
-
u[1](),
|
|
1107
|
+
u[1](), Y.push(u, e);
|
|
1046
1108
|
if (l) {
|
|
1047
|
-
for (let u = 0; u <
|
|
1048
|
-
|
|
1049
|
-
|
|
1109
|
+
for (let u = 0; u < Y.length; u += 2)
|
|
1110
|
+
Y[u][0](Y[u + 1]);
|
|
1111
|
+
Y.length = 0;
|
|
1050
1112
|
}
|
|
1051
1113
|
}
|
|
1052
1114
|
}
|
|
1053
1115
|
function o(a) {
|
|
1054
1116
|
n(a(e));
|
|
1055
1117
|
}
|
|
1056
|
-
function s(a, l =
|
|
1118
|
+
function s(a, l = O) {
|
|
1057
1119
|
const u = [a, l];
|
|
1058
|
-
return i.add(u), i.size === 1 && (r = t(n, o) ||
|
|
1120
|
+
return i.add(u), i.size === 1 && (r = t(n, o) || O), a(e), () => {
|
|
1059
1121
|
i.delete(u), i.size === 0 && r && (r(), r = null);
|
|
1060
1122
|
};
|
|
1061
1123
|
}
|
|
1062
1124
|
return { set: n, update: o, subscribe: s };
|
|
1063
1125
|
}
|
|
1064
|
-
function
|
|
1126
|
+
function oe(e, t, r) {
|
|
1065
1127
|
const i = !Array.isArray(e), n = i ? [e] : e;
|
|
1066
1128
|
if (!n.every(Boolean))
|
|
1067
1129
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1068
1130
|
const o = t.length < 2;
|
|
1069
|
-
return
|
|
1131
|
+
return Bi(r, (s, a) => {
|
|
1070
1132
|
let l = !1;
|
|
1071
1133
|
const u = [];
|
|
1072
|
-
let h = 0, c =
|
|
1134
|
+
let h = 0, c = O;
|
|
1073
1135
|
const f = () => {
|
|
1074
1136
|
if (h)
|
|
1075
1137
|
return;
|
|
1076
1138
|
c();
|
|
1077
1139
|
const y = t(i ? u[0] : u, s, a);
|
|
1078
|
-
o ? s(y) : c =
|
|
1140
|
+
o ? s(y) : c = ht(y) ? y : O;
|
|
1079
1141
|
}, p = n.map(
|
|
1080
|
-
(y, d) =>
|
|
1142
|
+
(y, d) => Wt(
|
|
1081
1143
|
y,
|
|
1082
1144
|
(v) => {
|
|
1083
1145
|
u[d] = v, h &= ~(1 << d), l && f();
|
|
@@ -1088,115 +1150,115 @@ function ie(e, t, r) {
|
|
|
1088
1150
|
)
|
|
1089
1151
|
);
|
|
1090
1152
|
return l = !0, f(), function() {
|
|
1091
|
-
|
|
1153
|
+
ne(p), c(), l = !1;
|
|
1092
1154
|
};
|
|
1093
1155
|
});
|
|
1094
1156
|
}
|
|
1095
|
-
function
|
|
1157
|
+
function Oi(e) {
|
|
1096
1158
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1097
1159
|
}
|
|
1098
|
-
var
|
|
1099
|
-
return
|
|
1160
|
+
var Ci = function(t) {
|
|
1161
|
+
return Ii(t) && !Ni(t);
|
|
1100
1162
|
};
|
|
1101
|
-
function
|
|
1163
|
+
function Ii(e) {
|
|
1102
1164
|
return !!e && typeof e == "object";
|
|
1103
1165
|
}
|
|
1104
|
-
function
|
|
1166
|
+
function Ni(e) {
|
|
1105
1167
|
var t = Object.prototype.toString.call(e);
|
|
1106
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1168
|
+
return t === "[object RegExp]" || t === "[object Date]" || Di(e);
|
|
1107
1169
|
}
|
|
1108
|
-
var
|
|
1109
|
-
function
|
|
1110
|
-
return e.$$typeof ===
|
|
1170
|
+
var Mi = typeof Symbol == "function" && Symbol.for, Ri = Mi ? Symbol.for("react.element") : 60103;
|
|
1171
|
+
function Di(e) {
|
|
1172
|
+
return e.$$typeof === Ri;
|
|
1111
1173
|
}
|
|
1112
|
-
function
|
|
1174
|
+
function zi(e) {
|
|
1113
1175
|
return Array.isArray(e) ? [] : {};
|
|
1114
1176
|
}
|
|
1115
|
-
function
|
|
1116
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1177
|
+
function fe(e, t) {
|
|
1178
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ee(zi(e), e, t) : e;
|
|
1117
1179
|
}
|
|
1118
|
-
function
|
|
1180
|
+
function Ui(e, t, r) {
|
|
1119
1181
|
return e.concat(t).map(function(i) {
|
|
1120
|
-
return
|
|
1182
|
+
return fe(i, r);
|
|
1121
1183
|
});
|
|
1122
1184
|
}
|
|
1123
|
-
function
|
|
1185
|
+
function $i(e, t) {
|
|
1124
1186
|
if (!t.customMerge)
|
|
1125
|
-
return
|
|
1187
|
+
return ee;
|
|
1126
1188
|
var r = t.customMerge(e);
|
|
1127
|
-
return typeof r == "function" ? r :
|
|
1189
|
+
return typeof r == "function" ? r : ee;
|
|
1128
1190
|
}
|
|
1129
|
-
function
|
|
1191
|
+
function Gi(e) {
|
|
1130
1192
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1131
1193
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1132
1194
|
}) : [];
|
|
1133
1195
|
}
|
|
1134
|
-
function
|
|
1135
|
-
return Object.keys(e).concat(
|
|
1196
|
+
function Ht(e) {
|
|
1197
|
+
return Object.keys(e).concat(Gi(e));
|
|
1136
1198
|
}
|
|
1137
|
-
function
|
|
1199
|
+
function tr(e, t) {
|
|
1138
1200
|
try {
|
|
1139
1201
|
return t in e;
|
|
1140
1202
|
} catch (r) {
|
|
1141
1203
|
return !1;
|
|
1142
1204
|
}
|
|
1143
1205
|
}
|
|
1144
|
-
function
|
|
1145
|
-
return
|
|
1206
|
+
function Fi(e, t) {
|
|
1207
|
+
return tr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1146
1208
|
}
|
|
1147
|
-
function
|
|
1209
|
+
function ji(e, t, r) {
|
|
1148
1210
|
var i = {};
|
|
1149
|
-
return r.isMergeableObject(e) &&
|
|
1150
|
-
i[n] =
|
|
1151
|
-
}),
|
|
1152
|
-
|
|
1211
|
+
return r.isMergeableObject(e) && Ht(e).forEach(function(n) {
|
|
1212
|
+
i[n] = fe(e[n], r);
|
|
1213
|
+
}), Ht(t).forEach(function(n) {
|
|
1214
|
+
Fi(e, n) || (tr(e, n) && r.isMergeableObject(t[n]) ? i[n] = $i(n, r)(e[n], t[n], r) : i[n] = fe(t[n], r));
|
|
1153
1215
|
}), i;
|
|
1154
1216
|
}
|
|
1155
|
-
function
|
|
1156
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1217
|
+
function ee(e, t, r) {
|
|
1218
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Ui, r.isMergeableObject = r.isMergeableObject || Ci, r.cloneUnlessOtherwiseSpecified = fe;
|
|
1157
1219
|
var i = Array.isArray(t), n = Array.isArray(e), o = i === n;
|
|
1158
|
-
return o ? i ? r.arrayMerge(e, t, r) :
|
|
1220
|
+
return o ? i ? r.arrayMerge(e, t, r) : ji(e, t, r) : fe(t, r);
|
|
1159
1221
|
}
|
|
1160
|
-
|
|
1222
|
+
ee.all = function(t, r) {
|
|
1161
1223
|
if (!Array.isArray(t))
|
|
1162
1224
|
throw new Error("first argument should be an array");
|
|
1163
1225
|
return t.reduce(function(i, n) {
|
|
1164
|
-
return
|
|
1226
|
+
return ee(i, n, r);
|
|
1165
1227
|
}, {});
|
|
1166
1228
|
};
|
|
1167
|
-
var
|
|
1168
|
-
const
|
|
1169
|
-
function
|
|
1170
|
-
var r = t && t.cache ? t.cache :
|
|
1229
|
+
var ki = ee, Vi = ki;
|
|
1230
|
+
const Wi = /* @__PURE__ */ Oi(Vi);
|
|
1231
|
+
function Fe(e, t) {
|
|
1232
|
+
var r = t && t.cache ? t.cache : Ki, i = t && t.serializer ? t.serializer : Ji, n = t && t.strategy ? t.strategy : Qi;
|
|
1171
1233
|
return n(e, {
|
|
1172
1234
|
cache: r,
|
|
1173
1235
|
serializer: i
|
|
1174
1236
|
});
|
|
1175
1237
|
}
|
|
1176
|
-
function
|
|
1238
|
+
function Xi(e) {
|
|
1177
1239
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1178
1240
|
}
|
|
1179
|
-
function
|
|
1180
|
-
var n =
|
|
1241
|
+
function Zi(e, t, r, i) {
|
|
1242
|
+
var n = Xi(i) ? i : r(i), o = t.get(n);
|
|
1181
1243
|
return typeof o == "undefined" && (o = e.call(this, i), t.set(n, o)), o;
|
|
1182
1244
|
}
|
|
1183
|
-
function
|
|
1245
|
+
function rr(e, t, r) {
|
|
1184
1246
|
var i = Array.prototype.slice.call(arguments, 3), n = r(i), o = t.get(n);
|
|
1185
1247
|
return typeof o == "undefined" && (o = e.apply(this, i), t.set(n, o)), o;
|
|
1186
1248
|
}
|
|
1187
|
-
function
|
|
1249
|
+
function ir(e, t, r, i, n) {
|
|
1188
1250
|
return r.bind(t, e, i, n);
|
|
1189
1251
|
}
|
|
1190
|
-
function
|
|
1191
|
-
var r = e.length === 1 ?
|
|
1192
|
-
return
|
|
1252
|
+
function Qi(e, t) {
|
|
1253
|
+
var r = e.length === 1 ? Zi : rr;
|
|
1254
|
+
return ir(e, this, r, t.cache.create(), t.serializer);
|
|
1193
1255
|
}
|
|
1194
|
-
function
|
|
1195
|
-
return
|
|
1256
|
+
function Yi(e, t) {
|
|
1257
|
+
return ir(e, this, rr, t.cache.create(), t.serializer);
|
|
1196
1258
|
}
|
|
1197
|
-
var
|
|
1259
|
+
var Ji = function() {
|
|
1198
1260
|
return JSON.stringify(arguments);
|
|
1199
|
-
},
|
|
1261
|
+
}, qi = (
|
|
1200
1262
|
/** @class */
|
|
1201
1263
|
function() {
|
|
1202
1264
|
function e() {
|
|
@@ -1208,61 +1270,61 @@ var Qi = function() {
|
|
|
1208
1270
|
this.cache[t] = r;
|
|
1209
1271
|
}, e;
|
|
1210
1272
|
}()
|
|
1211
|
-
),
|
|
1273
|
+
), Ki = {
|
|
1212
1274
|
create: function() {
|
|
1213
|
-
return new
|
|
1275
|
+
return new qi();
|
|
1214
1276
|
}
|
|
1215
|
-
},
|
|
1216
|
-
variadic:
|
|
1217
|
-
},
|
|
1277
|
+
}, je = {
|
|
1278
|
+
variadic: Yi
|
|
1279
|
+
}, g;
|
|
1218
1280
|
(function(e) {
|
|
1219
1281
|
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";
|
|
1220
|
-
})(
|
|
1282
|
+
})(g || (g = {}));
|
|
1221
1283
|
var S;
|
|
1222
1284
|
(function(e) {
|
|
1223
1285
|
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";
|
|
1224
1286
|
})(S || (S = {}));
|
|
1225
|
-
var
|
|
1287
|
+
var te;
|
|
1226
1288
|
(function(e) {
|
|
1227
1289
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1228
|
-
})(
|
|
1229
|
-
function
|
|
1290
|
+
})(te || (te = {}));
|
|
1291
|
+
function Pt(e) {
|
|
1230
1292
|
return e.type === S.literal;
|
|
1231
1293
|
}
|
|
1232
|
-
function
|
|
1294
|
+
function en(e) {
|
|
1233
1295
|
return e.type === S.argument;
|
|
1234
1296
|
}
|
|
1235
|
-
function
|
|
1297
|
+
function nr(e) {
|
|
1236
1298
|
return e.type === S.number;
|
|
1237
1299
|
}
|
|
1238
|
-
function
|
|
1300
|
+
function or(e) {
|
|
1239
1301
|
return e.type === S.date;
|
|
1240
1302
|
}
|
|
1241
|
-
function
|
|
1303
|
+
function sr(e) {
|
|
1242
1304
|
return e.type === S.time;
|
|
1243
1305
|
}
|
|
1244
|
-
function
|
|
1306
|
+
function ar(e) {
|
|
1245
1307
|
return e.type === S.select;
|
|
1246
1308
|
}
|
|
1247
|
-
function
|
|
1309
|
+
function ur(e) {
|
|
1248
1310
|
return e.type === S.plural;
|
|
1249
1311
|
}
|
|
1250
|
-
function
|
|
1312
|
+
function tn(e) {
|
|
1251
1313
|
return e.type === S.pound;
|
|
1252
1314
|
}
|
|
1253
|
-
function
|
|
1315
|
+
function lr(e) {
|
|
1254
1316
|
return e.type === S.tag;
|
|
1255
1317
|
}
|
|
1256
|
-
function
|
|
1257
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1318
|
+
function hr(e) {
|
|
1319
|
+
return !!(e && typeof e == "object" && e.type === te.number);
|
|
1258
1320
|
}
|
|
1259
|
-
function
|
|
1260
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1321
|
+
function rt(e) {
|
|
1322
|
+
return !!(e && typeof e == "object" && e.type === te.dateTime);
|
|
1261
1323
|
}
|
|
1262
|
-
var
|
|
1263
|
-
function
|
|
1324
|
+
var cr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, rn = /(?:[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;
|
|
1325
|
+
function nn(e) {
|
|
1264
1326
|
var t = {};
|
|
1265
|
-
return e.replace(
|
|
1327
|
+
return e.replace(rn, function(r) {
|
|
1266
1328
|
var i = r.length;
|
|
1267
1329
|
switch (r[0]) {
|
|
1268
1330
|
case "G":
|
|
@@ -1351,11 +1413,11 @@ function tn(e) {
|
|
|
1351
1413
|
return "";
|
|
1352
1414
|
}), t;
|
|
1353
1415
|
}
|
|
1354
|
-
var
|
|
1355
|
-
function
|
|
1416
|
+
var on = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1417
|
+
function sn(e) {
|
|
1356
1418
|
if (e.length === 0)
|
|
1357
1419
|
throw new Error("Number skeleton cannot be empty");
|
|
1358
|
-
for (var t = e.split(
|
|
1420
|
+
for (var t = e.split(on).filter(function(f) {
|
|
1359
1421
|
return f.length > 0;
|
|
1360
1422
|
}), r = [], i = 0, n = t; i < n.length; i++) {
|
|
1361
1423
|
var o = n[i], s = o.split("/");
|
|
@@ -1370,17 +1432,17 @@ function nn(e) {
|
|
|
1370
1432
|
}
|
|
1371
1433
|
return r;
|
|
1372
1434
|
}
|
|
1373
|
-
function
|
|
1435
|
+
function an(e) {
|
|
1374
1436
|
return e.replace(/^(.*?)-/, "");
|
|
1375
1437
|
}
|
|
1376
|
-
var
|
|
1377
|
-
function
|
|
1438
|
+
var Bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, fr = /^(@+)?(\+|#+)?[rs]?$/g, un = /(\*)(0+)|(#+)(0+)|(0+)/g, mr = /^(0+)$/;
|
|
1439
|
+
function Ot(e) {
|
|
1378
1440
|
var t = {};
|
|
1379
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1441
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(fr, function(r, i, n) {
|
|
1380
1442
|
return typeof n != "string" ? (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length) : n === "+" ? t.minimumSignificantDigits = i.length : i[0] === "#" ? t.maximumSignificantDigits = i.length : (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length + (typeof n == "string" ? n.length : 0)), "";
|
|
1381
1443
|
}), t;
|
|
1382
1444
|
}
|
|
1383
|
-
function
|
|
1445
|
+
function pr(e) {
|
|
1384
1446
|
switch (e) {
|
|
1385
1447
|
case "sign-auto":
|
|
1386
1448
|
return {
|
|
@@ -1420,7 +1482,7 @@ function hr(e) {
|
|
|
1420
1482
|
};
|
|
1421
1483
|
}
|
|
1422
1484
|
}
|
|
1423
|
-
function
|
|
1485
|
+
function ln(e) {
|
|
1424
1486
|
var t;
|
|
1425
1487
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1426
1488
|
notation: "engineering"
|
|
@@ -1428,17 +1490,17 @@ function an(e) {
|
|
|
1428
1490
|
notation: "scientific"
|
|
1429
1491
|
}, e = e.slice(1)), t) {
|
|
1430
1492
|
var r = e.slice(0, 2);
|
|
1431
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1493
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !mr.test(e))
|
|
1432
1494
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1433
1495
|
t.minimumIntegerDigits = e.length;
|
|
1434
1496
|
}
|
|
1435
1497
|
return t;
|
|
1436
1498
|
}
|
|
1437
|
-
function
|
|
1438
|
-
var t = {}, r =
|
|
1499
|
+
function Ct(e) {
|
|
1500
|
+
var t = {}, r = pr(e);
|
|
1439
1501
|
return r || t;
|
|
1440
1502
|
}
|
|
1441
|
-
function
|
|
1503
|
+
function hn(e) {
|
|
1442
1504
|
for (var t = {}, r = 0, i = e; r < i.length; r++) {
|
|
1443
1505
|
var n = i[r];
|
|
1444
1506
|
switch (n.stem) {
|
|
@@ -1462,7 +1524,7 @@ function un(e) {
|
|
|
1462
1524
|
continue;
|
|
1463
1525
|
case "measure-unit":
|
|
1464
1526
|
case "unit":
|
|
1465
|
-
t.style = "unit", t.unit =
|
|
1527
|
+
t.style = "unit", t.unit = an(n.options[0]);
|
|
1466
1528
|
continue;
|
|
1467
1529
|
case "compact-short":
|
|
1468
1530
|
case "K":
|
|
@@ -1473,13 +1535,13 @@ function un(e) {
|
|
|
1473
1535
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1474
1536
|
continue;
|
|
1475
1537
|
case "scientific":
|
|
1476
|
-
t =
|
|
1477
|
-
return
|
|
1538
|
+
t = x(x(x({}, t), { notation: "scientific" }), n.options.reduce(function(l, u) {
|
|
1539
|
+
return x(x({}, l), Ct(u));
|
|
1478
1540
|
}, {}));
|
|
1479
1541
|
continue;
|
|
1480
1542
|
case "engineering":
|
|
1481
|
-
t =
|
|
1482
|
-
return
|
|
1543
|
+
t = x(x(x({}, t), { notation: "engineering" }), n.options.reduce(function(l, u) {
|
|
1544
|
+
return x(x({}, l), Ct(u));
|
|
1483
1545
|
}, {}));
|
|
1484
1546
|
continue;
|
|
1485
1547
|
case "notation-simple":
|
|
@@ -1524,7 +1586,7 @@ function un(e) {
|
|
|
1524
1586
|
case "integer-width":
|
|
1525
1587
|
if (n.options.length > 1)
|
|
1526
1588
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1527
|
-
n.options[0].replace(
|
|
1589
|
+
n.options[0].replace(un, function(l, u, h, c, f, p) {
|
|
1528
1590
|
if (u)
|
|
1529
1591
|
t.minimumIntegerDigits = h.length;
|
|
1530
1592
|
else {
|
|
@@ -1537,32 +1599,32 @@ function un(e) {
|
|
|
1537
1599
|
});
|
|
1538
1600
|
continue;
|
|
1539
1601
|
}
|
|
1540
|
-
if (
|
|
1602
|
+
if (mr.test(n.stem)) {
|
|
1541
1603
|
t.minimumIntegerDigits = n.stem.length;
|
|
1542
1604
|
continue;
|
|
1543
1605
|
}
|
|
1544
|
-
if (
|
|
1606
|
+
if (Bt.test(n.stem)) {
|
|
1545
1607
|
if (n.options.length > 1)
|
|
1546
1608
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1547
|
-
n.stem.replace(
|
|
1609
|
+
n.stem.replace(Bt, function(l, u, h, c, f, p) {
|
|
1548
1610
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1549
1611
|
});
|
|
1550
1612
|
var o = n.options[0];
|
|
1551
|
-
o === "w" ? t =
|
|
1613
|
+
o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), Ot(o)));
|
|
1552
1614
|
continue;
|
|
1553
1615
|
}
|
|
1554
|
-
if (
|
|
1555
|
-
t =
|
|
1616
|
+
if (fr.test(n.stem)) {
|
|
1617
|
+
t = x(x({}, t), Ot(n.stem));
|
|
1556
1618
|
continue;
|
|
1557
1619
|
}
|
|
1558
|
-
var s =
|
|
1559
|
-
s && (t =
|
|
1560
|
-
var a =
|
|
1561
|
-
a && (t =
|
|
1620
|
+
var s = pr(n.stem);
|
|
1621
|
+
s && (t = x(x({}, t), s));
|
|
1622
|
+
var a = ln(n.stem);
|
|
1623
|
+
a && (t = x(x({}, t), a));
|
|
1562
1624
|
}
|
|
1563
1625
|
return t;
|
|
1564
1626
|
}
|
|
1565
|
-
var
|
|
1627
|
+
var xe = {
|
|
1566
1628
|
"001": [
|
|
1567
1629
|
"H",
|
|
1568
1630
|
"h"
|
|
@@ -2977,13 +3039,13 @@ var ge = {
|
|
|
2977
3039
|
"h"
|
|
2978
3040
|
]
|
|
2979
3041
|
};
|
|
2980
|
-
function
|
|
3042
|
+
function cn(e, t) {
|
|
2981
3043
|
for (var r = "", i = 0; i < e.length; i++) {
|
|
2982
3044
|
var n = e.charAt(i);
|
|
2983
3045
|
if (n === "j") {
|
|
2984
3046
|
for (var o = 0; i + 1 < e.length && e.charAt(i + 1) === n; )
|
|
2985
3047
|
o++, i++;
|
|
2986
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3048
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = fn(t);
|
|
2987
3049
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2988
3050
|
r += l;
|
|
2989
3051
|
for (; s-- > 0; )
|
|
@@ -2992,7 +3054,7 @@ function ln(e, t) {
|
|
|
2992
3054
|
}
|
|
2993
3055
|
return r;
|
|
2994
3056
|
}
|
|
2995
|
-
function
|
|
3057
|
+
function fn(e) {
|
|
2996
3058
|
var t = e.hourCycle;
|
|
2997
3059
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2998
3060
|
e.hourCycles && // @ts-ignore
|
|
@@ -3011,23 +3073,23 @@ function hn(e) {
|
|
|
3011
3073
|
}
|
|
3012
3074
|
var r = e.language, i;
|
|
3013
3075
|
r !== "root" && (i = e.maximize().region);
|
|
3014
|
-
var n =
|
|
3076
|
+
var n = xe[i || ""] || xe[r || ""] || xe["".concat(r, "-001")] || xe["001"];
|
|
3015
3077
|
return n[0];
|
|
3016
3078
|
}
|
|
3017
|
-
var
|
|
3018
|
-
function
|
|
3079
|
+
var ke, mn = new RegExp("^".concat(cr.source, "*")), pn = new RegExp("".concat(cr.source, "*$"));
|
|
3080
|
+
function _(e, t) {
|
|
3019
3081
|
return { start: e, end: t };
|
|
3020
3082
|
}
|
|
3021
|
-
var
|
|
3083
|
+
var dn = !!String.prototype.startsWith && "_a".startsWith("a", 1), yn = !!String.fromCodePoint, bn = !!Object.fromEntries, gn = !!String.prototype.codePointAt, vn = !!String.prototype.trimStart, _n = !!String.prototype.trimEnd, xn = !!Number.isSafeInteger, En = xn ? Number.isSafeInteger : function(e) {
|
|
3022
3084
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3023
|
-
},
|
|
3085
|
+
}, it = !0;
|
|
3024
3086
|
try {
|
|
3025
|
-
var
|
|
3026
|
-
|
|
3087
|
+
var Tn = yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3088
|
+
it = ((ke = Tn.exec("a")) === null || ke === void 0 ? void 0 : ke[0]) === "a";
|
|
3027
3089
|
} catch (e) {
|
|
3028
|
-
|
|
3090
|
+
it = !1;
|
|
3029
3091
|
}
|
|
3030
|
-
var
|
|
3092
|
+
var It = dn ? (
|
|
3031
3093
|
// Native
|
|
3032
3094
|
function(t, r, i) {
|
|
3033
3095
|
return t.startsWith(r, i);
|
|
@@ -3037,7 +3099,7 @@ var Bt = mn ? (
|
|
|
3037
3099
|
function(t, r, i) {
|
|
3038
3100
|
return t.slice(i, i + r.length) === r;
|
|
3039
3101
|
}
|
|
3040
|
-
),
|
|
3102
|
+
), nt = yn ? String.fromCodePoint : (
|
|
3041
3103
|
// IE11
|
|
3042
3104
|
function() {
|
|
3043
3105
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3049,9 +3111,9 @@ var Bt = mn ? (
|
|
|
3049
3111
|
}
|
|
3050
3112
|
return i;
|
|
3051
3113
|
}
|
|
3052
|
-
),
|
|
3114
|
+
), Nt = (
|
|
3053
3115
|
// native
|
|
3054
|
-
|
|
3116
|
+
bn ? Object.fromEntries : (
|
|
3055
3117
|
// Ponyfill
|
|
3056
3118
|
function(t) {
|
|
3057
3119
|
for (var r = {}, i = 0, n = t; i < n.length; i++) {
|
|
@@ -3061,7 +3123,7 @@ var Bt = mn ? (
|
|
|
3061
3123
|
return r;
|
|
3062
3124
|
}
|
|
3063
3125
|
)
|
|
3064
|
-
),
|
|
3126
|
+
), dr = gn ? (
|
|
3065
3127
|
// Native
|
|
3066
3128
|
function(t, r) {
|
|
3067
3129
|
return t.codePointAt(r);
|
|
@@ -3075,7 +3137,7 @@ var Bt = mn ? (
|
|
|
3075
3137
|
return n < 55296 || n > 56319 || r + 1 === i || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? n : (n - 55296 << 10) + (o - 56320) + 65536;
|
|
3076
3138
|
}
|
|
3077
3139
|
}
|
|
3078
|
-
),
|
|
3140
|
+
), Ln = vn ? (
|
|
3079
3141
|
// Native
|
|
3080
3142
|
function(t) {
|
|
3081
3143
|
return t.trimStart();
|
|
@@ -3083,9 +3145,9 @@ var Bt = mn ? (
|
|
|
3083
3145
|
) : (
|
|
3084
3146
|
// Ponyfill
|
|
3085
3147
|
function(t) {
|
|
3086
|
-
return t.replace(
|
|
3148
|
+
return t.replace(mn, "");
|
|
3087
3149
|
}
|
|
3088
|
-
),
|
|
3150
|
+
), Sn = _n ? (
|
|
3089
3151
|
// Native
|
|
3090
3152
|
function(t) {
|
|
3091
3153
|
return t.trimEnd();
|
|
@@ -3093,32 +3155,32 @@ var Bt = mn ? (
|
|
|
3093
3155
|
) : (
|
|
3094
3156
|
// Ponyfill
|
|
3095
3157
|
function(t) {
|
|
3096
|
-
return t.replace(
|
|
3158
|
+
return t.replace(pn, "");
|
|
3097
3159
|
}
|
|
3098
3160
|
);
|
|
3099
|
-
function
|
|
3161
|
+
function yr(e, t) {
|
|
3100
3162
|
return new RegExp(e, t);
|
|
3101
3163
|
}
|
|
3102
|
-
var
|
|
3103
|
-
if (
|
|
3104
|
-
var
|
|
3105
|
-
|
|
3164
|
+
var ot;
|
|
3165
|
+
if (it) {
|
|
3166
|
+
var Mt = yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3167
|
+
ot = function(t, r) {
|
|
3106
3168
|
var i;
|
|
3107
|
-
|
|
3108
|
-
var n =
|
|
3169
|
+
Mt.lastIndex = r;
|
|
3170
|
+
var n = Mt.exec(t);
|
|
3109
3171
|
return (i = n[1]) !== null && i !== void 0 ? i : "";
|
|
3110
3172
|
};
|
|
3111
3173
|
} else
|
|
3112
|
-
|
|
3174
|
+
ot = function(t, r) {
|
|
3113
3175
|
for (var i = []; ; ) {
|
|
3114
|
-
var n =
|
|
3115
|
-
if (n === void 0 ||
|
|
3176
|
+
var n = dr(t, r);
|
|
3177
|
+
if (n === void 0 || br(n) || Pn(n))
|
|
3116
3178
|
break;
|
|
3117
3179
|
i.push(n), r += n >= 65536 ? 2 : 1;
|
|
3118
3180
|
}
|
|
3119
|
-
return
|
|
3181
|
+
return nt.apply(void 0, i);
|
|
3120
3182
|
};
|
|
3121
|
-
var
|
|
3183
|
+
var wn = (
|
|
3122
3184
|
/** @class */
|
|
3123
3185
|
function() {
|
|
3124
3186
|
function e(t, r) {
|
|
@@ -3143,13 +3205,13 @@ var Ln = (
|
|
|
3143
3205
|
var a = this.clonePosition();
|
|
3144
3206
|
this.bump(), n.push({
|
|
3145
3207
|
type: S.pound,
|
|
3146
|
-
location:
|
|
3208
|
+
location: _(a, this.clonePosition())
|
|
3147
3209
|
});
|
|
3148
3210
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3149
3211
|
if (i)
|
|
3150
3212
|
break;
|
|
3151
|
-
return this.error(
|
|
3152
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3213
|
+
return this.error(g.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
3214
|
+
} else if (o === 60 && !this.ignoreTag && st(this.peek() || 0)) {
|
|
3153
3215
|
var s = this.parseTag(t, r);
|
|
3154
3216
|
if (s.err)
|
|
3155
3217
|
return s;
|
|
@@ -3172,7 +3234,7 @@ var Ln = (
|
|
|
3172
3234
|
val: {
|
|
3173
3235
|
type: S.literal,
|
|
3174
3236
|
value: "<".concat(n, "/>"),
|
|
3175
|
-
location:
|
|
3237
|
+
location: _(i, this.clonePosition())
|
|
3176
3238
|
},
|
|
3177
3239
|
err: null
|
|
3178
3240
|
};
|
|
@@ -3182,25 +3244,25 @@ var Ln = (
|
|
|
3182
3244
|
return o;
|
|
3183
3245
|
var s = o.val, a = this.clonePosition();
|
|
3184
3246
|
if (this.bumpIf("</")) {
|
|
3185
|
-
if (this.isEOF() || !
|
|
3186
|
-
return this.error(
|
|
3247
|
+
if (this.isEOF() || !st(this.char()))
|
|
3248
|
+
return this.error(g.INVALID_TAG, _(a, this.clonePosition()));
|
|
3187
3249
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3188
|
-
return n !== u ? this.error(
|
|
3250
|
+
return n !== u ? this.error(g.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3189
3251
|
val: {
|
|
3190
3252
|
type: S.tag,
|
|
3191
3253
|
value: n,
|
|
3192
3254
|
children: s,
|
|
3193
|
-
location:
|
|
3255
|
+
location: _(i, this.clonePosition())
|
|
3194
3256
|
},
|
|
3195
3257
|
err: null
|
|
3196
|
-
} : this.error(
|
|
3258
|
+
} : this.error(g.INVALID_TAG, _(a, this.clonePosition())));
|
|
3197
3259
|
} else
|
|
3198
|
-
return this.error(
|
|
3260
|
+
return this.error(g.UNCLOSED_TAG, _(i, this.clonePosition()));
|
|
3199
3261
|
} else
|
|
3200
|
-
return this.error(
|
|
3262
|
+
return this.error(g.INVALID_TAG, _(i, this.clonePosition()));
|
|
3201
3263
|
}, e.prototype.parseTagName = function() {
|
|
3202
3264
|
var t = this.offset();
|
|
3203
|
-
for (this.bump(); !this.isEOF() &&
|
|
3265
|
+
for (this.bump(); !this.isEOF() && Hn(this.char()); )
|
|
3204
3266
|
this.bump();
|
|
3205
3267
|
return this.message.slice(t, this.offset());
|
|
3206
3268
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3222,14 +3284,14 @@ var Ln = (
|
|
|
3222
3284
|
}
|
|
3223
3285
|
break;
|
|
3224
3286
|
}
|
|
3225
|
-
var l =
|
|
3287
|
+
var l = _(i, this.clonePosition());
|
|
3226
3288
|
return {
|
|
3227
3289
|
val: { type: S.literal, value: n, location: l },
|
|
3228
3290
|
err: null
|
|
3229
3291
|
};
|
|
3230
3292
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3231
3293
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3232
|
-
!
|
|
3294
|
+
!An(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3233
3295
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3234
3296
|
if (this.isEOF() || this.char() !== 39)
|
|
3235
3297
|
return null;
|
|
@@ -3263,23 +3325,23 @@ var Ln = (
|
|
|
3263
3325
|
r.push(i);
|
|
3264
3326
|
this.bump();
|
|
3265
3327
|
}
|
|
3266
|
-
return
|
|
3328
|
+
return nt.apply(void 0, r);
|
|
3267
3329
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3268
3330
|
if (this.isEOF())
|
|
3269
3331
|
return null;
|
|
3270
3332
|
var i = this.char();
|
|
3271
|
-
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(),
|
|
3333
|
+
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(), nt(i));
|
|
3272
3334
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3273
3335
|
var i = this.clonePosition();
|
|
3274
3336
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3275
|
-
return this.error(
|
|
3337
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, _(i, this.clonePosition()));
|
|
3276
3338
|
if (this.char() === 125)
|
|
3277
|
-
return this.bump(), this.error(
|
|
3339
|
+
return this.bump(), this.error(g.EMPTY_ARGUMENT, _(i, this.clonePosition()));
|
|
3278
3340
|
var n = this.parseIdentifierIfPossible().value;
|
|
3279
3341
|
if (!n)
|
|
3280
|
-
return this.error(
|
|
3342
|
+
return this.error(g.MALFORMED_ARGUMENT, _(i, this.clonePosition()));
|
|
3281
3343
|
if (this.bumpSpace(), this.isEOF())
|
|
3282
|
-
return this.error(
|
|
3344
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, _(i, this.clonePosition()));
|
|
3283
3345
|
switch (this.char()) {
|
|
3284
3346
|
case 125:
|
|
3285
3347
|
return this.bump(), {
|
|
@@ -3287,25 +3349,25 @@ var Ln = (
|
|
|
3287
3349
|
type: S.argument,
|
|
3288
3350
|
// value does not include the opening and closing braces.
|
|
3289
3351
|
value: n,
|
|
3290
|
-
location:
|
|
3352
|
+
location: _(i, this.clonePosition())
|
|
3291
3353
|
},
|
|
3292
3354
|
err: null
|
|
3293
3355
|
};
|
|
3294
3356
|
case 44:
|
|
3295
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3357
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, _(i, this.clonePosition())) : this.parseArgumentOptions(t, r, n, i);
|
|
3296
3358
|
default:
|
|
3297
|
-
return this.error(
|
|
3359
|
+
return this.error(g.MALFORMED_ARGUMENT, _(i, this.clonePosition()));
|
|
3298
3360
|
}
|
|
3299
3361
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3300
|
-
var t = this.clonePosition(), r = this.offset(), i =
|
|
3362
|
+
var t = this.clonePosition(), r = this.offset(), i = ot(this.message, r), n = r + i.length;
|
|
3301
3363
|
this.bumpTo(n);
|
|
3302
|
-
var o = this.clonePosition(), s =
|
|
3364
|
+
var o = this.clonePosition(), s = _(t, o);
|
|
3303
3365
|
return { value: i, location: s };
|
|
3304
3366
|
}, e.prototype.parseArgumentOptions = function(t, r, i, n) {
|
|
3305
3367
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3306
3368
|
switch (a) {
|
|
3307
3369
|
case "":
|
|
3308
|
-
return this.error(
|
|
3370
|
+
return this.error(g.EXPECT_ARGUMENT_TYPE, _(s, l));
|
|
3309
3371
|
case "number":
|
|
3310
3372
|
case "date":
|
|
3311
3373
|
case "time": {
|
|
@@ -3316,18 +3378,18 @@ var Ln = (
|
|
|
3316
3378
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3317
3379
|
if (c.err)
|
|
3318
3380
|
return c;
|
|
3319
|
-
var f =
|
|
3381
|
+
var f = Sn(c.val);
|
|
3320
3382
|
if (f.length === 0)
|
|
3321
|
-
return this.error(
|
|
3322
|
-
var p =
|
|
3383
|
+
return this.error(g.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
3384
|
+
var p = _(h, this.clonePosition());
|
|
3323
3385
|
u = { style: f, styleLocation: p };
|
|
3324
3386
|
}
|
|
3325
3387
|
var y = this.tryParseArgumentClose(n);
|
|
3326
3388
|
if (y.err)
|
|
3327
3389
|
return y;
|
|
3328
|
-
var d =
|
|
3329
|
-
if (u &&
|
|
3330
|
-
var v =
|
|
3390
|
+
var d = _(n, this.clonePosition());
|
|
3391
|
+
if (u && It(u == null ? void 0 : u.style, "::", 0)) {
|
|
3392
|
+
var v = Ln(u.style.slice(2));
|
|
3331
3393
|
if (a === "number") {
|
|
3332
3394
|
var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
3333
3395
|
return c.err ? c : {
|
|
@@ -3336,17 +3398,17 @@ var Ln = (
|
|
|
3336
3398
|
};
|
|
3337
3399
|
} else {
|
|
3338
3400
|
if (v.length === 0)
|
|
3339
|
-
return this.error(
|
|
3340
|
-
var
|
|
3341
|
-
this.locale && (
|
|
3401
|
+
return this.error(g.EXPECT_DATE_TIME_SKELETON, d);
|
|
3402
|
+
var P = v;
|
|
3403
|
+
this.locale && (P = cn(v, this.locale));
|
|
3342
3404
|
var f = {
|
|
3343
|
-
type:
|
|
3344
|
-
pattern:
|
|
3405
|
+
type: te.dateTime,
|
|
3406
|
+
pattern: P,
|
|
3345
3407
|
location: u.styleLocation,
|
|
3346
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3347
|
-
},
|
|
3408
|
+
parsedOptions: this.shouldParseSkeletons ? nn(P) : {}
|
|
3409
|
+
}, b = a === "date" ? S.date : S.time;
|
|
3348
3410
|
return {
|
|
3349
|
-
val: { type:
|
|
3411
|
+
val: { type: b, value: i, location: d, style: f },
|
|
3350
3412
|
err: null
|
|
3351
3413
|
};
|
|
3352
3414
|
}
|
|
@@ -3364,19 +3426,19 @@ var Ln = (
|
|
|
3364
3426
|
case "plural":
|
|
3365
3427
|
case "selectordinal":
|
|
3366
3428
|
case "select": {
|
|
3367
|
-
var
|
|
3429
|
+
var w = this.clonePosition();
|
|
3368
3430
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3369
|
-
return this.error(
|
|
3431
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, _(w, x({}, w)));
|
|
3370
3432
|
this.bumpSpace();
|
|
3371
|
-
var D = this.parseIdentifierIfPossible(),
|
|
3433
|
+
var D = this.parseIdentifierIfPossible(), M = 0;
|
|
3372
3434
|
if (a !== "select" && D.value === "offset") {
|
|
3373
3435
|
if (!this.bumpIf(":"))
|
|
3374
|
-
return this.error(
|
|
3436
|
+
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
3375
3437
|
this.bumpSpace();
|
|
3376
|
-
var c = this.tryParseDecimalInteger(
|
|
3438
|
+
var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3377
3439
|
if (c.err)
|
|
3378
3440
|
return c;
|
|
3379
|
-
this.bumpSpace(), D = this.parseIdentifierIfPossible(),
|
|
3441
|
+
this.bumpSpace(), D = this.parseIdentifierIfPossible(), M = c.val;
|
|
3380
3442
|
}
|
|
3381
3443
|
var z = this.tryParsePluralOrSelectOptions(t, a, r, D);
|
|
3382
3444
|
if (z.err)
|
|
@@ -3384,12 +3446,12 @@ var Ln = (
|
|
|
3384
3446
|
var y = this.tryParseArgumentClose(n);
|
|
3385
3447
|
if (y.err)
|
|
3386
3448
|
return y;
|
|
3387
|
-
var V =
|
|
3449
|
+
var V = _(n, this.clonePosition());
|
|
3388
3450
|
return a === "select" ? {
|
|
3389
3451
|
val: {
|
|
3390
3452
|
type: S.select,
|
|
3391
3453
|
value: i,
|
|
3392
|
-
options:
|
|
3454
|
+
options: Nt(z.val),
|
|
3393
3455
|
location: V
|
|
3394
3456
|
},
|
|
3395
3457
|
err: null
|
|
@@ -3397,8 +3459,8 @@ var Ln = (
|
|
|
3397
3459
|
val: {
|
|
3398
3460
|
type: S.plural,
|
|
3399
3461
|
value: i,
|
|
3400
|
-
options:
|
|
3401
|
-
offset:
|
|
3462
|
+
options: Nt(z.val),
|
|
3463
|
+
offset: M,
|
|
3402
3464
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3403
3465
|
location: V
|
|
3404
3466
|
},
|
|
@@ -3406,10 +3468,10 @@ var Ln = (
|
|
|
3406
3468
|
};
|
|
3407
3469
|
}
|
|
3408
3470
|
default:
|
|
3409
|
-
return this.error(
|
|
3471
|
+
return this.error(g.INVALID_ARGUMENT_TYPE, _(s, l));
|
|
3410
3472
|
}
|
|
3411
3473
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3412
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3474
|
+
return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3413
3475
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3414
3476
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3415
3477
|
var i = this.char();
|
|
@@ -3418,7 +3480,7 @@ var Ln = (
|
|
|
3418
3480
|
this.bump();
|
|
3419
3481
|
var n = this.clonePosition();
|
|
3420
3482
|
if (!this.bumpUntil("'"))
|
|
3421
|
-
return this.error(
|
|
3483
|
+
return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, _(n, this.clonePosition()));
|
|
3422
3484
|
this.bump();
|
|
3423
3485
|
break;
|
|
3424
3486
|
}
|
|
@@ -3448,16 +3510,16 @@ var Ln = (
|
|
|
3448
3510
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3449
3511
|
var i = [];
|
|
3450
3512
|
try {
|
|
3451
|
-
i =
|
|
3513
|
+
i = sn(t);
|
|
3452
3514
|
} catch (n) {
|
|
3453
|
-
return this.error(
|
|
3515
|
+
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
3454
3516
|
}
|
|
3455
3517
|
return {
|
|
3456
3518
|
val: {
|
|
3457
|
-
type:
|
|
3519
|
+
type: te.number,
|
|
3458
3520
|
tokens: i,
|
|
3459
3521
|
location: r,
|
|
3460
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3522
|
+
parsedOptions: this.shouldParseSkeletons ? hn(i) : {}
|
|
3461
3523
|
},
|
|
3462
3524
|
err: null
|
|
3463
3525
|
};
|
|
@@ -3466,19 +3528,19 @@ var Ln = (
|
|
|
3466
3528
|
if (u.length === 0) {
|
|
3467
3529
|
var c = this.clonePosition();
|
|
3468
3530
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3469
|
-
var f = this.tryParseDecimalInteger(
|
|
3531
|
+
var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3470
3532
|
if (f.err)
|
|
3471
3533
|
return f;
|
|
3472
|
-
h =
|
|
3534
|
+
h = _(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3473
3535
|
} else
|
|
3474
3536
|
break;
|
|
3475
3537
|
}
|
|
3476
3538
|
if (l.has(u))
|
|
3477
|
-
return this.error(r === "select" ?
|
|
3539
|
+
return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3478
3540
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3479
3541
|
var p = this.clonePosition();
|
|
3480
3542
|
if (!this.bumpIf("{"))
|
|
3481
|
-
return this.error(r === "select" ?
|
|
3543
|
+
return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
|
3482
3544
|
var y = this.parseMessage(t + 1, r, i);
|
|
3483
3545
|
if (y.err)
|
|
3484
3546
|
return y;
|
|
@@ -3489,11 +3551,11 @@ var Ln = (
|
|
|
3489
3551
|
u,
|
|
3490
3552
|
{
|
|
3491
3553
|
value: y.val,
|
|
3492
|
-
location:
|
|
3554
|
+
location: _(p, this.clonePosition())
|
|
3493
3555
|
}
|
|
3494
3556
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3495
3557
|
}
|
|
3496
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3558
|
+
return a.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(g.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3497
3559
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3498
3560
|
var i = 1, n = this.clonePosition();
|
|
3499
3561
|
this.bumpIf("+") || this.bumpIf("-") && (i = -1);
|
|
@@ -3504,8 +3566,8 @@ var Ln = (
|
|
|
3504
3566
|
else
|
|
3505
3567
|
break;
|
|
3506
3568
|
}
|
|
3507
|
-
var l =
|
|
3508
|
-
return o ? (s *= i,
|
|
3569
|
+
var l = _(n, this.clonePosition());
|
|
3570
|
+
return o ? (s *= i, En(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3509
3571
|
}, e.prototype.offset = function() {
|
|
3510
3572
|
return this.position.offset;
|
|
3511
3573
|
}, e.prototype.isEOF = function() {
|
|
@@ -3520,7 +3582,7 @@ var Ln = (
|
|
|
3520
3582
|
var t = this.position.offset;
|
|
3521
3583
|
if (t >= this.message.length)
|
|
3522
3584
|
throw Error("out of bound");
|
|
3523
|
-
var r =
|
|
3585
|
+
var r = dr(this.message, t);
|
|
3524
3586
|
if (r === void 0)
|
|
3525
3587
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3526
3588
|
return r;
|
|
@@ -3539,7 +3601,7 @@ var Ln = (
|
|
|
3539
3601
|
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);
|
|
3540
3602
|
}
|
|
3541
3603
|
}, e.prototype.bumpIf = function(t) {
|
|
3542
|
-
if (
|
|
3604
|
+
if (It(this.message, t, this.offset())) {
|
|
3543
3605
|
for (var r = 0; r < t.length; r++)
|
|
3544
3606
|
this.bump();
|
|
3545
3607
|
return !0;
|
|
@@ -3561,7 +3623,7 @@ var Ln = (
|
|
|
3561
3623
|
break;
|
|
3562
3624
|
}
|
|
3563
3625
|
}, e.prototype.bumpSpace = function() {
|
|
3564
|
-
for (; !this.isEOF() &&
|
|
3626
|
+
for (; !this.isEOF() && br(this.char()); )
|
|
3565
3627
|
this.bump();
|
|
3566
3628
|
}, e.prototype.peek = function() {
|
|
3567
3629
|
if (this.isEOF())
|
|
@@ -3571,43 +3633,43 @@ var Ln = (
|
|
|
3571
3633
|
}, e;
|
|
3572
3634
|
}()
|
|
3573
3635
|
);
|
|
3574
|
-
function
|
|
3636
|
+
function st(e) {
|
|
3575
3637
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3576
3638
|
}
|
|
3577
|
-
function
|
|
3578
|
-
return
|
|
3639
|
+
function An(e) {
|
|
3640
|
+
return st(e) || e === 47;
|
|
3579
3641
|
}
|
|
3580
|
-
function
|
|
3642
|
+
function Hn(e) {
|
|
3581
3643
|
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;
|
|
3582
3644
|
}
|
|
3583
|
-
function
|
|
3645
|
+
function br(e) {
|
|
3584
3646
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3585
3647
|
}
|
|
3586
|
-
function
|
|
3648
|
+
function Pn(e) {
|
|
3587
3649
|
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;
|
|
3588
3650
|
}
|
|
3589
|
-
function
|
|
3651
|
+
function at(e) {
|
|
3590
3652
|
e.forEach(function(t) {
|
|
3591
|
-
if (delete t.location,
|
|
3653
|
+
if (delete t.location, ar(t) || ur(t))
|
|
3592
3654
|
for (var r in t.options)
|
|
3593
|
-
delete t.options[r].location,
|
|
3594
|
-
else
|
|
3655
|
+
delete t.options[r].location, at(t.options[r].value);
|
|
3656
|
+
else nr(t) && hr(t.style) || (or(t) || sr(t)) && rt(t.style) ? delete t.style.location : lr(t) && at(t.children);
|
|
3595
3657
|
});
|
|
3596
3658
|
}
|
|
3597
|
-
function
|
|
3598
|
-
t === void 0 && (t = {}), t =
|
|
3599
|
-
var r = new
|
|
3659
|
+
function Bn(e, t) {
|
|
3660
|
+
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3661
|
+
var r = new wn(e, t).parse();
|
|
3600
3662
|
if (r.err) {
|
|
3601
|
-
var i = SyntaxError(
|
|
3663
|
+
var i = SyntaxError(g[r.err.kind]);
|
|
3602
3664
|
throw i.location = r.err.location, i.originalMessage = r.err.message, i;
|
|
3603
3665
|
}
|
|
3604
|
-
return t != null && t.captureLocation ||
|
|
3666
|
+
return t != null && t.captureLocation || at(r.val), r.val;
|
|
3605
3667
|
}
|
|
3606
|
-
var
|
|
3668
|
+
var re;
|
|
3607
3669
|
(function(e) {
|
|
3608
3670
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3609
|
-
})(
|
|
3610
|
-
var
|
|
3671
|
+
})(re || (re = {}));
|
|
3672
|
+
var Ce = (
|
|
3611
3673
|
/** @class */
|
|
3612
3674
|
function(e) {
|
|
3613
3675
|
G(t, e);
|
|
@@ -3619,155 +3681,155 @@ var He = (
|
|
|
3619
3681
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3620
3682
|
}, t;
|
|
3621
3683
|
}(Error)
|
|
3622
|
-
),
|
|
3684
|
+
), Rt = (
|
|
3623
3685
|
/** @class */
|
|
3624
3686
|
function(e) {
|
|
3625
3687
|
G(t, e);
|
|
3626
3688
|
function t(r, i, n, o) {
|
|
3627
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'),
|
|
3689
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'), re.INVALID_VALUE, o) || this;
|
|
3628
3690
|
}
|
|
3629
3691
|
return t;
|
|
3630
|
-
}(
|
|
3631
|
-
),
|
|
3692
|
+
}(Ce)
|
|
3693
|
+
), On = (
|
|
3632
3694
|
/** @class */
|
|
3633
3695
|
function(e) {
|
|
3634
3696
|
G(t, e);
|
|
3635
3697
|
function t(r, i, n) {
|
|
3636
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i),
|
|
3698
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i), re.INVALID_VALUE, n) || this;
|
|
3637
3699
|
}
|
|
3638
3700
|
return t;
|
|
3639
|
-
}(
|
|
3640
|
-
),
|
|
3701
|
+
}(Ce)
|
|
3702
|
+
), Cn = (
|
|
3641
3703
|
/** @class */
|
|
3642
3704
|
function(e) {
|
|
3643
3705
|
G(t, e);
|
|
3644
3706
|
function t(r, i) {
|
|
3645
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'),
|
|
3707
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'), re.MISSING_VALUE, i) || this;
|
|
3646
3708
|
}
|
|
3647
3709
|
return t;
|
|
3648
|
-
}(
|
|
3649
|
-
),
|
|
3710
|
+
}(Ce)
|
|
3711
|
+
), B;
|
|
3650
3712
|
(function(e) {
|
|
3651
3713
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3652
|
-
})(
|
|
3653
|
-
function
|
|
3714
|
+
})(B || (B = {}));
|
|
3715
|
+
function In(e) {
|
|
3654
3716
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3655
3717
|
var i = t[t.length - 1];
|
|
3656
|
-
return !i || i.type !==
|
|
3718
|
+
return !i || i.type !== B.literal || r.type !== B.literal ? t.push(r) : i.value += r.value, t;
|
|
3657
3719
|
}, []);
|
|
3658
3720
|
}
|
|
3659
|
-
function
|
|
3721
|
+
function Nn(e) {
|
|
3660
3722
|
return typeof e == "function";
|
|
3661
3723
|
}
|
|
3662
|
-
function
|
|
3663
|
-
if (e.length === 1 &&
|
|
3724
|
+
function Se(e, t, r, i, n, o, s) {
|
|
3725
|
+
if (e.length === 1 && Pt(e[0]))
|
|
3664
3726
|
return [
|
|
3665
3727
|
{
|
|
3666
|
-
type:
|
|
3728
|
+
type: B.literal,
|
|
3667
3729
|
value: e[0].value
|
|
3668
3730
|
}
|
|
3669
3731
|
];
|
|
3670
3732
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3671
3733
|
var h = u[l];
|
|
3672
|
-
if (
|
|
3734
|
+
if (Pt(h)) {
|
|
3673
3735
|
a.push({
|
|
3674
|
-
type:
|
|
3736
|
+
type: B.literal,
|
|
3675
3737
|
value: h.value
|
|
3676
3738
|
});
|
|
3677
3739
|
continue;
|
|
3678
3740
|
}
|
|
3679
|
-
if (
|
|
3741
|
+
if (tn(h)) {
|
|
3680
3742
|
typeof o == "number" && a.push({
|
|
3681
|
-
type:
|
|
3743
|
+
type: B.literal,
|
|
3682
3744
|
value: r.getNumberFormat(t).format(o)
|
|
3683
3745
|
});
|
|
3684
3746
|
continue;
|
|
3685
3747
|
}
|
|
3686
3748
|
var c = h.value;
|
|
3687
3749
|
if (!(n && c in n))
|
|
3688
|
-
throw new
|
|
3750
|
+
throw new Cn(c, s);
|
|
3689
3751
|
var f = n[c];
|
|
3690
|
-
if (
|
|
3752
|
+
if (en(h)) {
|
|
3691
3753
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3692
|
-
type: typeof f == "string" ?
|
|
3754
|
+
type: typeof f == "string" ? B.literal : B.object,
|
|
3693
3755
|
value: f
|
|
3694
3756
|
});
|
|
3695
3757
|
continue;
|
|
3696
3758
|
}
|
|
3697
|
-
if (
|
|
3698
|
-
var p = typeof h.style == "string" ? i.date[h.style] :
|
|
3759
|
+
if (or(h)) {
|
|
3760
|
+
var p = typeof h.style == "string" ? i.date[h.style] : rt(h.style) ? h.style.parsedOptions : void 0;
|
|
3699
3761
|
a.push({
|
|
3700
|
-
type:
|
|
3762
|
+
type: B.literal,
|
|
3701
3763
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3702
3764
|
});
|
|
3703
3765
|
continue;
|
|
3704
3766
|
}
|
|
3705
|
-
if (
|
|
3706
|
-
var p = typeof h.style == "string" ? i.time[h.style] :
|
|
3767
|
+
if (sr(h)) {
|
|
3768
|
+
var p = typeof h.style == "string" ? i.time[h.style] : rt(h.style) ? h.style.parsedOptions : i.time.medium;
|
|
3707
3769
|
a.push({
|
|
3708
|
-
type:
|
|
3770
|
+
type: B.literal,
|
|
3709
3771
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3710
3772
|
});
|
|
3711
3773
|
continue;
|
|
3712
3774
|
}
|
|
3713
|
-
if (
|
|
3714
|
-
var p = typeof h.style == "string" ? i.number[h.style] :
|
|
3775
|
+
if (nr(h)) {
|
|
3776
|
+
var p = typeof h.style == "string" ? i.number[h.style] : hr(h.style) ? h.style.parsedOptions : void 0;
|
|
3715
3777
|
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3716
|
-
type:
|
|
3778
|
+
type: B.literal,
|
|
3717
3779
|
value: r.getNumberFormat(t, p).format(f)
|
|
3718
3780
|
});
|
|
3719
3781
|
continue;
|
|
3720
3782
|
}
|
|
3721
|
-
if (
|
|
3783
|
+
if (lr(h)) {
|
|
3722
3784
|
var y = h.children, d = h.value, v = n[d];
|
|
3723
|
-
if (!
|
|
3724
|
-
throw new
|
|
3725
|
-
var
|
|
3726
|
-
return
|
|
3785
|
+
if (!Nn(v))
|
|
3786
|
+
throw new On(d, "function", s);
|
|
3787
|
+
var P = Se(y, t, r, i, n, o), b = v(P.map(function(M) {
|
|
3788
|
+
return M.value;
|
|
3727
3789
|
}));
|
|
3728
|
-
Array.isArray(
|
|
3790
|
+
Array.isArray(b) || (b = [b]), a.push.apply(a, b.map(function(M) {
|
|
3729
3791
|
return {
|
|
3730
|
-
type: typeof
|
|
3731
|
-
value:
|
|
3792
|
+
type: typeof M == "string" ? B.literal : B.object,
|
|
3793
|
+
value: M
|
|
3732
3794
|
};
|
|
3733
3795
|
}));
|
|
3734
3796
|
}
|
|
3735
|
-
if (
|
|
3736
|
-
var
|
|
3737
|
-
if (!
|
|
3738
|
-
throw new
|
|
3739
|
-
a.push.apply(a,
|
|
3797
|
+
if (ar(h)) {
|
|
3798
|
+
var w = h.options[f] || h.options.other;
|
|
3799
|
+
if (!w)
|
|
3800
|
+
throw new Rt(h.value, f, Object.keys(h.options), s);
|
|
3801
|
+
a.push.apply(a, Se(w.value, t, r, i, n));
|
|
3740
3802
|
continue;
|
|
3741
3803
|
}
|
|
3742
|
-
if (
|
|
3743
|
-
var
|
|
3744
|
-
if (!
|
|
3804
|
+
if (ur(h)) {
|
|
3805
|
+
var w = h.options["=".concat(f)];
|
|
3806
|
+
if (!w) {
|
|
3745
3807
|
if (!Intl.PluralRules)
|
|
3746
|
-
throw new
|
|
3808
|
+
throw new Ce(`Intl.PluralRules is not available in this environment.
|
|
3747
3809
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3748
|
-
`,
|
|
3810
|
+
`, re.MISSING_INTL_API, s);
|
|
3749
3811
|
var D = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3750
|
-
|
|
3812
|
+
w = h.options[D] || h.options.other;
|
|
3751
3813
|
}
|
|
3752
|
-
if (!
|
|
3753
|
-
throw new
|
|
3754
|
-
a.push.apply(a,
|
|
3814
|
+
if (!w)
|
|
3815
|
+
throw new Rt(h.value, f, Object.keys(h.options), s);
|
|
3816
|
+
a.push.apply(a, Se(w.value, t, r, i, n, f - (h.offset || 0)));
|
|
3755
3817
|
continue;
|
|
3756
3818
|
}
|
|
3757
3819
|
}
|
|
3758
|
-
return
|
|
3820
|
+
return In(a);
|
|
3759
3821
|
}
|
|
3760
|
-
function
|
|
3761
|
-
return t ?
|
|
3762
|
-
return r[i] =
|
|
3822
|
+
function Mn(e, t) {
|
|
3823
|
+
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, i) {
|
|
3824
|
+
return r[i] = x(x({}, e[i]), t[i] || {}), r;
|
|
3763
3825
|
}, {})) : e;
|
|
3764
3826
|
}
|
|
3765
|
-
function
|
|
3827
|
+
function Rn(e, t) {
|
|
3766
3828
|
return t ? Object.keys(e).reduce(function(r, i) {
|
|
3767
|
-
return r[i] =
|
|
3768
|
-
},
|
|
3829
|
+
return r[i] = Mn(e[i], t[i]), r;
|
|
3830
|
+
}, x({}, e)) : e;
|
|
3769
3831
|
}
|
|
3770
|
-
function
|
|
3832
|
+
function Ve(e) {
|
|
3771
3833
|
return {
|
|
3772
3834
|
create: function() {
|
|
3773
3835
|
return {
|
|
@@ -3781,39 +3843,39 @@ function Fe(e) {
|
|
|
3781
3843
|
}
|
|
3782
3844
|
};
|
|
3783
3845
|
}
|
|
3784
|
-
function
|
|
3846
|
+
function Dn(e) {
|
|
3785
3847
|
return e === void 0 && (e = {
|
|
3786
3848
|
number: {},
|
|
3787
3849
|
dateTime: {},
|
|
3788
3850
|
pluralRules: {}
|
|
3789
3851
|
}), {
|
|
3790
|
-
getNumberFormat:
|
|
3852
|
+
getNumberFormat: Fe(function() {
|
|
3791
3853
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3792
3854
|
r[i] = arguments[i];
|
|
3793
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3855
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, K([void 0], r, !1)))();
|
|
3794
3856
|
}, {
|
|
3795
|
-
cache:
|
|
3796
|
-
strategy:
|
|
3857
|
+
cache: Ve(e.number),
|
|
3858
|
+
strategy: je.variadic
|
|
3797
3859
|
}),
|
|
3798
|
-
getDateTimeFormat:
|
|
3860
|
+
getDateTimeFormat: Fe(function() {
|
|
3799
3861
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3800
3862
|
r[i] = arguments[i];
|
|
3801
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3863
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, K([void 0], r, !1)))();
|
|
3802
3864
|
}, {
|
|
3803
|
-
cache:
|
|
3804
|
-
strategy:
|
|
3865
|
+
cache: Ve(e.dateTime),
|
|
3866
|
+
strategy: je.variadic
|
|
3805
3867
|
}),
|
|
3806
|
-
getPluralRules:
|
|
3868
|
+
getPluralRules: Fe(function() {
|
|
3807
3869
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3808
3870
|
r[i] = arguments[i];
|
|
3809
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3871
|
+
return new ((t = Intl.PluralRules).bind.apply(t, K([void 0], r, !1)))();
|
|
3810
3872
|
}, {
|
|
3811
|
-
cache:
|
|
3812
|
-
strategy:
|
|
3873
|
+
cache: Ve(e.pluralRules),
|
|
3874
|
+
strategy: je.variadic
|
|
3813
3875
|
})
|
|
3814
3876
|
};
|
|
3815
3877
|
}
|
|
3816
|
-
var
|
|
3878
|
+
var zn = (
|
|
3817
3879
|
/** @class */
|
|
3818
3880
|
function() {
|
|
3819
3881
|
function e(t, r, i, n) {
|
|
@@ -3828,11 +3890,11 @@ var Rn = (
|
|
|
3828
3890
|
if (u.length === 1)
|
|
3829
3891
|
return u[0].value;
|
|
3830
3892
|
var h = u.reduce(function(c, f) {
|
|
3831
|
-
return !c.length || f.type !==
|
|
3893
|
+
return !c.length || f.type !== B.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3832
3894
|
}, []);
|
|
3833
3895
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3834
3896
|
}, this.formatToParts = function(l) {
|
|
3835
|
-
return
|
|
3897
|
+
return Se(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3836
3898
|
}, this.resolvedOptions = function() {
|
|
3837
3899
|
var l;
|
|
3838
3900
|
return {
|
|
@@ -3845,13 +3907,13 @@ var Rn = (
|
|
|
3845
3907
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3846
3908
|
var s = n || {};
|
|
3847
3909
|
s.formatters;
|
|
3848
|
-
var a =
|
|
3849
|
-
this.ast = e.__parse(t,
|
|
3910
|
+
var a = di(s, ["formatters"]);
|
|
3911
|
+
this.ast = e.__parse(t, x(x({}, a), { locale: this.resolvedLocale }));
|
|
3850
3912
|
} else
|
|
3851
3913
|
this.ast = t;
|
|
3852
3914
|
if (!Array.isArray(this.ast))
|
|
3853
3915
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3854
|
-
this.formats =
|
|
3916
|
+
this.formats = Rn(e.formats, i), this.formatters = n && n.formatters || Dn(this.formatterCache);
|
|
3855
3917
|
}
|
|
3856
3918
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3857
3919
|
get: function() {
|
|
@@ -3864,7 +3926,7 @@ var Rn = (
|
|
|
3864
3926
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3865
3927
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3866
3928
|
}
|
|
3867
|
-
}, e.__parse =
|
|
3929
|
+
}, e.__parse = Bn, e.formats = {
|
|
3868
3930
|
number: {
|
|
3869
3931
|
integer: {
|
|
3870
3932
|
maximumFractionDigits: 0
|
|
@@ -3925,7 +3987,7 @@ var Rn = (
|
|
|
3925
3987
|
}, e;
|
|
3926
3988
|
}()
|
|
3927
3989
|
);
|
|
3928
|
-
function
|
|
3990
|
+
function Un(e, t) {
|
|
3929
3991
|
if (t == null)
|
|
3930
3992
|
return;
|
|
3931
3993
|
if (t in e)
|
|
@@ -3946,92 +4008,92 @@ function Dn(e, t) {
|
|
|
3946
4008
|
i = void 0;
|
|
3947
4009
|
return i;
|
|
3948
4010
|
}
|
|
3949
|
-
const F = {},
|
|
4011
|
+
const F = {}, $n = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), gr = (e, t) => {
|
|
3950
4012
|
if (t == null)
|
|
3951
4013
|
return;
|
|
3952
4014
|
if (t in F && e in F[t])
|
|
3953
4015
|
return F[t][e];
|
|
3954
|
-
const r =
|
|
4016
|
+
const r = Ie(t);
|
|
3955
4017
|
for (let i = 0; i < r.length; i++) {
|
|
3956
|
-
const n = r[i], o =
|
|
4018
|
+
const n = r[i], o = Fn(n, e);
|
|
3957
4019
|
if (o)
|
|
3958
|
-
return
|
|
4020
|
+
return $n(e, t, o);
|
|
3959
4021
|
}
|
|
3960
4022
|
};
|
|
3961
|
-
let
|
|
3962
|
-
const
|
|
3963
|
-
function
|
|
3964
|
-
return
|
|
4023
|
+
let ct;
|
|
4024
|
+
const pe = Oe({});
|
|
4025
|
+
function Gn(e) {
|
|
4026
|
+
return ct[e] || null;
|
|
3965
4027
|
}
|
|
3966
|
-
function
|
|
3967
|
-
return e in
|
|
4028
|
+
function vr(e) {
|
|
4029
|
+
return e in ct;
|
|
3968
4030
|
}
|
|
3969
|
-
function
|
|
3970
|
-
if (!
|
|
4031
|
+
function Fn(e, t) {
|
|
4032
|
+
if (!vr(e))
|
|
3971
4033
|
return null;
|
|
3972
|
-
const r =
|
|
3973
|
-
return
|
|
4034
|
+
const r = Gn(e);
|
|
4035
|
+
return Un(r, t);
|
|
3974
4036
|
}
|
|
3975
|
-
function
|
|
4037
|
+
function jn(e) {
|
|
3976
4038
|
if (e == null)
|
|
3977
4039
|
return;
|
|
3978
|
-
const t =
|
|
4040
|
+
const t = Ie(e);
|
|
3979
4041
|
for (let r = 0; r < t.length; r++) {
|
|
3980
4042
|
const i = t[r];
|
|
3981
|
-
if (
|
|
4043
|
+
if (vr(i))
|
|
3982
4044
|
return i;
|
|
3983
4045
|
}
|
|
3984
4046
|
}
|
|
3985
|
-
function
|
|
3986
|
-
delete F[e],
|
|
4047
|
+
function _r(e, ...t) {
|
|
4048
|
+
delete F[e], pe.update((r) => (r[e] = Wi.all([r[e] || {}, ...t]), r));
|
|
3987
4049
|
}
|
|
3988
|
-
|
|
3989
|
-
[
|
|
4050
|
+
oe(
|
|
4051
|
+
[pe],
|
|
3990
4052
|
([e]) => Object.keys(e)
|
|
3991
4053
|
);
|
|
3992
|
-
|
|
3993
|
-
const
|
|
3994
|
-
function
|
|
3995
|
-
|
|
4054
|
+
pe.subscribe((e) => ct = e);
|
|
4055
|
+
const we = {};
|
|
4056
|
+
function kn(e, t) {
|
|
4057
|
+
we[e].delete(t), we[e].size === 0 && delete we[e];
|
|
3996
4058
|
}
|
|
3997
|
-
function
|
|
3998
|
-
return
|
|
4059
|
+
function xr(e) {
|
|
4060
|
+
return we[e];
|
|
3999
4061
|
}
|
|
4000
|
-
function
|
|
4001
|
-
return
|
|
4002
|
-
const r =
|
|
4062
|
+
function Vn(e) {
|
|
4063
|
+
return Ie(e).map((t) => {
|
|
4064
|
+
const r = xr(t);
|
|
4003
4065
|
return [t, r ? [...r] : []];
|
|
4004
4066
|
}).filter(([, t]) => t.length > 0);
|
|
4005
4067
|
}
|
|
4006
|
-
function
|
|
4007
|
-
return e == null ? !1 :
|
|
4068
|
+
function ut(e) {
|
|
4069
|
+
return e == null ? !1 : Ie(e).some(
|
|
4008
4070
|
(t) => {
|
|
4009
4071
|
var r;
|
|
4010
|
-
return (r =
|
|
4072
|
+
return (r = xr(t)) == null ? void 0 : r.size;
|
|
4011
4073
|
}
|
|
4012
4074
|
);
|
|
4013
4075
|
}
|
|
4014
|
-
function
|
|
4076
|
+
function Wn(e, t) {
|
|
4015
4077
|
return Promise.all(
|
|
4016
|
-
t.map((i) => (
|
|
4017
|
-
).then((i) =>
|
|
4018
|
-
}
|
|
4019
|
-
const
|
|
4020
|
-
function
|
|
4021
|
-
if (!
|
|
4022
|
-
return e in
|
|
4023
|
-
const t =
|
|
4024
|
-
return
|
|
4078
|
+
t.map((i) => (kn(e, i), i().then((n) => n.default || n)))
|
|
4079
|
+
).then((i) => _r(e, ...i));
|
|
4080
|
+
}
|
|
4081
|
+
const le = {};
|
|
4082
|
+
function Er(e) {
|
|
4083
|
+
if (!ut(e))
|
|
4084
|
+
return e in le ? le[e] : Promise.resolve();
|
|
4085
|
+
const t = Vn(e);
|
|
4086
|
+
return le[e] = Promise.all(
|
|
4025
4087
|
t.map(
|
|
4026
|
-
([r, i]) =>
|
|
4088
|
+
([r, i]) => Wn(r, i)
|
|
4027
4089
|
)
|
|
4028
4090
|
).then(() => {
|
|
4029
|
-
if (
|
|
4030
|
-
return
|
|
4031
|
-
delete
|
|
4032
|
-
}),
|
|
4091
|
+
if (ut(e))
|
|
4092
|
+
return Er(e);
|
|
4093
|
+
delete le[e];
|
|
4094
|
+
}), le[e];
|
|
4033
4095
|
}
|
|
4034
|
-
const
|
|
4096
|
+
const Xn = {
|
|
4035
4097
|
number: {
|
|
4036
4098
|
scientific: { notation: "scientific" },
|
|
4037
4099
|
engineering: { notation: "engineering" },
|
|
@@ -4060,150 +4122,150 @@ const Vn = {
|
|
|
4060
4122
|
timeZoneName: "short"
|
|
4061
4123
|
}
|
|
4062
4124
|
}
|
|
4063
|
-
},
|
|
4125
|
+
}, Zn = {
|
|
4064
4126
|
fallbackLocale: null,
|
|
4065
4127
|
loadingDelay: 200,
|
|
4066
|
-
formats:
|
|
4128
|
+
formats: Xn,
|
|
4067
4129
|
warnOnMissingMessages: !0,
|
|
4068
4130
|
handleMissingMessage: void 0,
|
|
4069
4131
|
ignoreTag: !0
|
|
4070
|
-
},
|
|
4071
|
-
function
|
|
4072
|
-
return
|
|
4132
|
+
}, Qn = Zn;
|
|
4133
|
+
function ie() {
|
|
4134
|
+
return Qn;
|
|
4073
4135
|
}
|
|
4074
|
-
const
|
|
4075
|
-
var
|
|
4136
|
+
const We = Oe(!1);
|
|
4137
|
+
var Yn = Object.defineProperty, Jn = Object.defineProperties, qn = Object.getOwnPropertyDescriptors, Dt = Object.getOwnPropertySymbols, Kn = Object.prototype.hasOwnProperty, eo = Object.prototype.propertyIsEnumerable, zt = (e, t, r) => t in e ? Yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, to = (e, t) => {
|
|
4076
4138
|
for (var r in t || (t = {}))
|
|
4077
|
-
|
|
4078
|
-
if (
|
|
4079
|
-
for (var r of
|
|
4080
|
-
|
|
4139
|
+
Kn.call(t, r) && zt(e, r, t[r]);
|
|
4140
|
+
if (Dt)
|
|
4141
|
+
for (var r of Dt(t))
|
|
4142
|
+
eo.call(t, r) && zt(e, r, t[r]);
|
|
4081
4143
|
return e;
|
|
4082
|
-
},
|
|
4083
|
-
let
|
|
4084
|
-
const
|
|
4085
|
-
function
|
|
4144
|
+
}, ro = (e, t) => Jn(e, qn(t));
|
|
4145
|
+
let lt;
|
|
4146
|
+
const He = Oe(null);
|
|
4147
|
+
function Ut(e) {
|
|
4086
4148
|
return e.split("-").map((t, r, i) => i.slice(0, r + 1).join("-")).reverse();
|
|
4087
4149
|
}
|
|
4088
|
-
function
|
|
4089
|
-
const r =
|
|
4090
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4150
|
+
function Ie(e, t = ie().fallbackLocale) {
|
|
4151
|
+
const r = Ut(e);
|
|
4152
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ut(t)])] : r;
|
|
4091
4153
|
}
|
|
4092
|
-
function
|
|
4093
|
-
return
|
|
4154
|
+
function Z() {
|
|
4155
|
+
return lt != null ? lt : void 0;
|
|
4094
4156
|
}
|
|
4095
|
-
|
|
4096
|
-
|
|
4157
|
+
He.subscribe((e) => {
|
|
4158
|
+
lt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4097
4159
|
});
|
|
4098
|
-
const
|
|
4099
|
-
if (e &&
|
|
4100
|
-
const { loadingDelay: t } =
|
|
4160
|
+
const io = (e) => {
|
|
4161
|
+
if (e && jn(e) && ut(e)) {
|
|
4162
|
+
const { loadingDelay: t } = ie();
|
|
4101
4163
|
let r;
|
|
4102
|
-
return typeof window != "undefined" &&
|
|
4103
|
-
() =>
|
|
4164
|
+
return typeof window != "undefined" && Z() != null && t ? r = window.setTimeout(
|
|
4165
|
+
() => We.set(!0),
|
|
4104
4166
|
t
|
|
4105
|
-
) :
|
|
4106
|
-
|
|
4167
|
+
) : We.set(!0), Er(e).then(() => {
|
|
4168
|
+
He.set(e);
|
|
4107
4169
|
}).finally(() => {
|
|
4108
|
-
clearTimeout(r),
|
|
4170
|
+
clearTimeout(r), We.set(!1);
|
|
4109
4171
|
});
|
|
4110
4172
|
}
|
|
4111
|
-
return
|
|
4112
|
-
},
|
|
4113
|
-
set:
|
|
4114
|
-
}),
|
|
4173
|
+
return He.set(e);
|
|
4174
|
+
}, se = ro(to({}, He), {
|
|
4175
|
+
set: io
|
|
4176
|
+
}), Ne = (e) => {
|
|
4115
4177
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4116
4178
|
return (i) => {
|
|
4117
4179
|
const n = JSON.stringify(i);
|
|
4118
4180
|
return n in t ? t[n] : t[n] = e(i);
|
|
4119
4181
|
};
|
|
4120
4182
|
};
|
|
4121
|
-
var
|
|
4183
|
+
var no = Object.defineProperty, Pe = Object.getOwnPropertySymbols, Tr = Object.prototype.hasOwnProperty, Lr = Object.prototype.propertyIsEnumerable, $t = (e, t, r) => t in e ? no(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ft = (e, t) => {
|
|
4122
4184
|
for (var r in t || (t = {}))
|
|
4123
|
-
|
|
4124
|
-
if (
|
|
4125
|
-
for (var r of
|
|
4126
|
-
|
|
4185
|
+
Tr.call(t, r) && $t(e, r, t[r]);
|
|
4186
|
+
if (Pe)
|
|
4187
|
+
for (var r of Pe(t))
|
|
4188
|
+
Lr.call(t, r) && $t(e, r, t[r]);
|
|
4127
4189
|
return e;
|
|
4128
|
-
},
|
|
4190
|
+
}, ae = (e, t) => {
|
|
4129
4191
|
var r = {};
|
|
4130
4192
|
for (var i in e)
|
|
4131
|
-
|
|
4132
|
-
if (e != null &&
|
|
4133
|
-
for (var i of
|
|
4134
|
-
t.indexOf(i) < 0 &&
|
|
4193
|
+
Tr.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
4194
|
+
if (e != null && Pe)
|
|
4195
|
+
for (var i of Pe(e))
|
|
4196
|
+
t.indexOf(i) < 0 && Lr.call(e, i) && (r[i] = e[i]);
|
|
4135
4197
|
return r;
|
|
4136
4198
|
};
|
|
4137
|
-
const
|
|
4138
|
-
const { formats: r } =
|
|
4199
|
+
const me = (e, t) => {
|
|
4200
|
+
const { formats: r } = ie();
|
|
4139
4201
|
if (e in r && t in r[e])
|
|
4140
4202
|
return r[e][t];
|
|
4141
4203
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4142
|
-
},
|
|
4204
|
+
}, oo = Ne(
|
|
4143
4205
|
(e) => {
|
|
4144
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
4206
|
+
var t = e, { locale: r, format: i } = t, n = ae(t, ["locale", "format"]);
|
|
4145
4207
|
if (r == null)
|
|
4146
4208
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4147
|
-
return i && (n =
|
|
4209
|
+
return i && (n = me("number", i)), new Intl.NumberFormat(r, n);
|
|
4148
4210
|
}
|
|
4149
|
-
),
|
|
4211
|
+
), so = Ne(
|
|
4150
4212
|
(e) => {
|
|
4151
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
4213
|
+
var t = e, { locale: r, format: i } = t, n = ae(t, ["locale", "format"]);
|
|
4152
4214
|
if (r == null)
|
|
4153
4215
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4154
|
-
return i ? n =
|
|
4216
|
+
return i ? n = me("date", i) : Object.keys(n).length === 0 && (n = me("date", "short")), new Intl.DateTimeFormat(r, n);
|
|
4155
4217
|
}
|
|
4156
|
-
),
|
|
4218
|
+
), ao = Ne(
|
|
4157
4219
|
(e) => {
|
|
4158
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
4220
|
+
var t = e, { locale: r, format: i } = t, n = ae(t, ["locale", "format"]);
|
|
4159
4221
|
if (r == null)
|
|
4160
4222
|
throw new Error(
|
|
4161
4223
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4162
4224
|
);
|
|
4163
|
-
return i ? n =
|
|
4225
|
+
return i ? n = me("time", i) : Object.keys(n).length === 0 && (n = me("time", "short")), new Intl.DateTimeFormat(r, n);
|
|
4164
4226
|
}
|
|
4165
|
-
),
|
|
4227
|
+
), uo = (e = {}) => {
|
|
4166
4228
|
var t = e, {
|
|
4167
|
-
locale: r =
|
|
4168
|
-
} = t, i =
|
|
4229
|
+
locale: r = Z()
|
|
4230
|
+
} = t, i = ae(t, [
|
|
4169
4231
|
"locale"
|
|
4170
4232
|
]);
|
|
4171
|
-
return
|
|
4172
|
-
},
|
|
4233
|
+
return oo(ft({ locale: r }, i));
|
|
4234
|
+
}, lo = (e = {}) => {
|
|
4173
4235
|
var t = e, {
|
|
4174
|
-
locale: r =
|
|
4175
|
-
} = t, i =
|
|
4236
|
+
locale: r = Z()
|
|
4237
|
+
} = t, i = ae(t, [
|
|
4176
4238
|
"locale"
|
|
4177
4239
|
]);
|
|
4178
|
-
return
|
|
4179
|
-
},
|
|
4240
|
+
return so(ft({ locale: r }, i));
|
|
4241
|
+
}, ho = (e = {}) => {
|
|
4180
4242
|
var t = e, {
|
|
4181
|
-
locale: r =
|
|
4182
|
-
} = t, i =
|
|
4243
|
+
locale: r = Z()
|
|
4244
|
+
} = t, i = ae(t, [
|
|
4183
4245
|
"locale"
|
|
4184
4246
|
]);
|
|
4185
|
-
return
|
|
4186
|
-
},
|
|
4247
|
+
return ao(ft({ locale: r }, i));
|
|
4248
|
+
}, co = Ne(
|
|
4187
4249
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4188
|
-
(e, t =
|
|
4189
|
-
ignoreTag:
|
|
4250
|
+
(e, t = Z()) => new zn(e, t, ie().formats, {
|
|
4251
|
+
ignoreTag: ie().ignoreTag
|
|
4190
4252
|
})
|
|
4191
|
-
),
|
|
4253
|
+
), fo = (e, t = {}) => {
|
|
4192
4254
|
var r, i, n, o;
|
|
4193
4255
|
let s = t;
|
|
4194
4256
|
typeof e == "object" && (s = e, e = s.id);
|
|
4195
4257
|
const {
|
|
4196
4258
|
values: a,
|
|
4197
|
-
locale: l =
|
|
4259
|
+
locale: l = Z(),
|
|
4198
4260
|
default: u
|
|
4199
4261
|
} = s;
|
|
4200
4262
|
if (l == null)
|
|
4201
4263
|
throw new Error(
|
|
4202
4264
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4203
4265
|
);
|
|
4204
|
-
let h =
|
|
4266
|
+
let h = gr(e, l);
|
|
4205
4267
|
if (!h)
|
|
4206
|
-
h = (o = (n = (i = (r =
|
|
4268
|
+
h = (o = (n = (i = (r = ie()).handleMissingMessage) == null ? void 0 : i.call(r, { locale: l, id: e, defaultValue: u })) != null ? n : u) != null ? o : e;
|
|
4207
4269
|
else if (typeof h != "string")
|
|
4208
4270
|
return console.warn(
|
|
4209
4271
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4212,7 +4274,7 @@ const ce = (e, t) => {
|
|
|
4212
4274
|
return h;
|
|
4213
4275
|
let c = h;
|
|
4214
4276
|
try {
|
|
4215
|
-
c =
|
|
4277
|
+
c = co(h, l).format(a);
|
|
4216
4278
|
} catch (f) {
|
|
4217
4279
|
f instanceof Error && console.warn(
|
|
4218
4280
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4220,20 +4282,43 @@ const ce = (e, t) => {
|
|
|
4220
4282
|
);
|
|
4221
4283
|
}
|
|
4222
4284
|
return c;
|
|
4223
|
-
},
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
window.emWidgets = { topic:
|
|
4229
|
-
const
|
|
4230
|
-
function
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
}
|
|
4236
|
-
|
|
4285
|
+
}, mo = (e, t) => ho(t).format(e), po = (e, t) => lo(t).format(e), yo = (e, t) => uo(t).format(e), bo = (e, t = Z()) => gr(e, t), go = oe([se, pe], () => fo);
|
|
4286
|
+
oe([se], () => mo);
|
|
4287
|
+
oe([se], () => po);
|
|
4288
|
+
oe([se], () => yo);
|
|
4289
|
+
oe([se, pe], () => bo);
|
|
4290
|
+
window.emWidgets = { topic: Pi };
|
|
4291
|
+
const vo = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), Wo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4292
|
+
function _o(e, t) {
|
|
4293
|
+
if (e) {
|
|
4294
|
+
const r = document.createElement("style");
|
|
4295
|
+
r.innerHTML = t, e.appendChild(r);
|
|
4296
|
+
}
|
|
4297
|
+
}
|
|
4298
|
+
function xo(e, t) {
|
|
4299
|
+
const r = new URL(t);
|
|
4300
|
+
fetch(r.href).then((i) => i.text()).then((i) => {
|
|
4301
|
+
const n = document.createElement("style");
|
|
4302
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
4303
|
+
}).catch((i) => {
|
|
4304
|
+
console.error("There was an error while trying to load client styling from URL", i);
|
|
4305
|
+
});
|
|
4306
|
+
}
|
|
4307
|
+
function Eo(e, t, r) {
|
|
4308
|
+
if (window.emMessageBus) {
|
|
4309
|
+
const i = document.createElement("style");
|
|
4310
|
+
window.emMessageBus.subscribe(t, (n) => {
|
|
4311
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
4312
|
+
});
|
|
4313
|
+
}
|
|
4314
|
+
}
|
|
4315
|
+
function Gt(e, t) {
|
|
4316
|
+
_r(e, t);
|
|
4317
|
+
}
|
|
4318
|
+
function To(e) {
|
|
4319
|
+
se.set(e);
|
|
4320
|
+
}
|
|
4321
|
+
const Xe = {
|
|
4237
4322
|
en: {
|
|
4238
4323
|
expandLimits: "Limit history",
|
|
4239
4324
|
daily: "per day",
|
|
@@ -4464,80 +4549,80 @@ const ke = {
|
|
|
4464
4549
|
historyLimitTypeLoss: "Kayıp Limiti"
|
|
4465
4550
|
}
|
|
4466
4551
|
};
|
|
4467
|
-
function
|
|
4468
|
-
|
|
4552
|
+
function Lo(e) {
|
|
4553
|
+
Xr(e, "svelte-16zv8bz", ':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}.svelte-16zv8bz.svelte-16zv8bz,.svelte-16zv8bz.svelte-16zv8bz::before,.svelte-16zv8bz.svelte-16zv8bz::after{color:var(--emw--color-typography-contrast, #444444);margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2.svelte-16zv8bz.svelte-16zv8bz{color:var(--emw--color-white, #FFFFFF)}button.svelte-16zv8bz.svelte-16zv8bz{font-size:1rem;border:0;padding:0}.ExpandButton.svelte-16zv8bz.svelte-16zv8bz{display:flex;align-items:center;margin-right:-14px;background:transparent;border:none;color:var(--emw--color-primary, #22B04E);font-size:var(--emw--font-size-large, 20px);text-transform:capitalize;font-weight:var(--emw--font-weight-bold, 700)}.ExpandButton.Mobile.svelte-16zv8bz.svelte-16zv8bz{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-bold, 700)}.ExpandButton.svelte-16zv8bz svg.svelte-16zv8bz{width:40px;height:auto;margin-left:-4px}.extended.svelte-16zv8bz.svelte-16zv8bz{transform:rotate(180deg)}.HistoryWrapper.svelte-16zv8bz.svelte-16zv8bz{display:flex;flex-direction:column;width:320px;padding:0 12px;margin:12px auto}.HistoryWrapper.svelte-16zv8bz .HistoryDisplayArea.svelte-16zv8bz{width:inherit;background-color:var(--emw--color-typpgraphy, #FFFFFF);border-radius:var(--emw--border-radius-large, 20px);box-shadow:0px 3px 19px 0px rgba(0, 0, 0, 0.3);padding:30px 20px}.HistoryWrapper.svelte-16zv8bz .HistoryDisplayArea .LimitType.svelte-16zv8bz{font-size:var(--emw--font-size-medium, 16px);color:color-mix(in srgb, var(--emw--color-secondary, #E1A749) 80%, black 10%)}.HistoryWrapper.svelte-16zv8bz .HistoryDisplayArea.Mobile.svelte-16zv8bz{width:auto;font-size:var(--emw--font-size-x-small, 12px);padding:15px}.hidden.svelte-16zv8bz.svelte-16zv8bz{display:none}.HistoryRow.svelte-16zv8bz.svelte-16zv8bz{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.GeneralLimitInformation.svelte-16zv8bz.svelte-16zv8bz{display:flex;flex-direction:column;gap:4px;color:var(--emw--color-grey-150, #C0CBC3)}.LimitAmountPeriod.svelte-16zv8bz.svelte-16zv8bz{color:var(--emw--color-grey-150, #C0CBC3)}.LimitContainer.svelte-16zv8bz.svelte-16zv8bz{animation:svelte-16zv8bz-animateEntry 0.7s ease-in}@keyframes svelte-16zv8bz-animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}');
|
|
4469
4554
|
}
|
|
4470
|
-
function
|
|
4555
|
+
function Ft(e, t, r) {
|
|
4471
4556
|
const i = e.slice();
|
|
4472
|
-
return i[
|
|
4557
|
+
return i[37] = t[r], i[38] = t, i[39] = r, i;
|
|
4473
4558
|
}
|
|
4474
|
-
function
|
|
4559
|
+
function So(e) {
|
|
4475
4560
|
let t, r, i, n = (
|
|
4476
4561
|
/*$_*/
|
|
4477
4562
|
e[9]("expandLimits") + ""
|
|
4478
|
-
), o, s, a, l, u, h, c, f, p, y =
|
|
4563
|
+
), o, s, a, l, u, h, c, f, p, y = _t(
|
|
4479
4564
|
/*lazyShowedHistoryArray*/
|
|
4480
4565
|
e[7]
|
|
4481
4566
|
), d = [];
|
|
4482
4567
|
for (let v = 0; v < y.length; v += 1)
|
|
4483
|
-
d[v] =
|
|
4568
|
+
d[v] = jt(Ft(e, y, v));
|
|
4484
4569
|
return {
|
|
4485
4570
|
c() {
|
|
4486
|
-
t =
|
|
4571
|
+
t = H("div"), r = H("div"), i = H("button"), o = R(n), s = Ze(), a = Ue("svg"), l = Ue("path"), u = Ue("path"), h = Ze(), c = H("div");
|
|
4487
4572
|
for (let v = 0; v < d.length; v += 1)
|
|
4488
4573
|
d[v].c();
|
|
4489
|
-
|
|
4490
|
-
e[10] ? "" : "Mobile") + " svelte-16zv8bz"),
|
|
4574
|
+
E(l, "d", "M10.5 15l7.5 7.5 7.5-7.5z"), E(l, "class", "svelte-16zv8bz"), E(u, "d", "M0 0h36v36h-36z"), E(u, "fill", "none"), E(u, "class", "svelte-16zv8bz"), E(a, "class", "ExpandArrow " + (/*isDesktop*/
|
|
4575
|
+
e[10] ? "" : "Mobile") + " svelte-16zv8bz"), E(a, "xmlns", "http://www.w3.org/2000/svg"), E(a, "width", "36"), E(a, "height", "36"), E(a, "viewBox", "0 0 36 36"), Kr(a, "fill", "var(--emw--color-primary, #22B04E)"), ve(
|
|
4491
4576
|
a,
|
|
4492
4577
|
"extended",
|
|
4493
4578
|
/*extended*/
|
|
4494
4579
|
e[8]
|
|
4495
|
-
),
|
|
4496
|
-
e[10] ? "" : "Mobile") + " svelte-16zv8bz"),
|
|
4497
|
-
e[10] ? "" : "Mobile") + " svelte-16zv8bz"),
|
|
4580
|
+
), E(i, "class", "ExpandButton " + (/*isDesktop*/
|
|
4581
|
+
e[10] ? "" : "Mobile") + " svelte-16zv8bz"), E(c, "class", "HistoryDisplayArea " + (/*isDesktop*/
|
|
4582
|
+
e[10] ? "" : "Mobile") + " svelte-16zv8bz"), ve(
|
|
4498
4583
|
c,
|
|
4499
4584
|
"hidden",
|
|
4500
4585
|
/*hidden*/
|
|
4501
4586
|
e[5]
|
|
4502
|
-
),
|
|
4587
|
+
), E(r, "class", "HistoryWrapper svelte-16zv8bz"), E(t, "class", "player-account-gaming-limits-history-2 svelte-16zv8bz");
|
|
4503
4588
|
},
|
|
4504
|
-
m(v,
|
|
4505
|
-
|
|
4506
|
-
for (let
|
|
4507
|
-
d[
|
|
4508
|
-
f || (p =
|
|
4589
|
+
m(v, P) {
|
|
4590
|
+
X(v, t, P), T(t, r), T(r, i), T(i, o), T(i, s), T(i, a), T(a, l), T(a, u), T(r, h), T(r, c);
|
|
4591
|
+
for (let b = 0; b < d.length; b += 1)
|
|
4592
|
+
d[b] && d[b].m(c, null);
|
|
4593
|
+
f || (p = Jr(
|
|
4509
4594
|
i,
|
|
4510
4595
|
"click",
|
|
4511
4596
|
/*toggleHistoryDisplayArea*/
|
|
4512
4597
|
e[11]
|
|
4513
4598
|
), f = !0);
|
|
4514
4599
|
},
|
|
4515
|
-
p(v,
|
|
4516
|
-
if (
|
|
4600
|
+
p(v, P) {
|
|
4601
|
+
if (P[0] & /*$_*/
|
|
4517
4602
|
512 && n !== (n = /*$_*/
|
|
4518
|
-
v[9]("expandLimits") + "") && j(o, n),
|
|
4519
|
-
256 &&
|
|
4603
|
+
v[9]("expandLimits") + "") && j(o, n), P[0] & /*extended*/
|
|
4604
|
+
256 && ve(
|
|
4520
4605
|
a,
|
|
4521
4606
|
"extended",
|
|
4522
4607
|
/*extended*/
|
|
4523
4608
|
v[8]
|
|
4524
|
-
),
|
|
4609
|
+
), P[0] & /*numberofentries, limitContainer, lazyShowedHistoryArray, $_*/
|
|
4525
4610
|
650) {
|
|
4526
|
-
y =
|
|
4611
|
+
y = _t(
|
|
4527
4612
|
/*lazyShowedHistoryArray*/
|
|
4528
4613
|
v[7]
|
|
4529
4614
|
);
|
|
4530
|
-
let
|
|
4531
|
-
for (
|
|
4532
|
-
const
|
|
4533
|
-
d[
|
|
4615
|
+
let b;
|
|
4616
|
+
for (b = 0; b < y.length; b += 1) {
|
|
4617
|
+
const w = Ft(v, y, b);
|
|
4618
|
+
d[b] ? d[b].p(w, P) : (d[b] = jt(w), d[b].c(), d[b].m(c, null));
|
|
4534
4619
|
}
|
|
4535
|
-
for (;
|
|
4536
|
-
d[
|
|
4620
|
+
for (; b < d.length; b += 1)
|
|
4621
|
+
d[b].d(1);
|
|
4537
4622
|
d.length = y.length;
|
|
4538
4623
|
}
|
|
4539
|
-
|
|
4540
|
-
32 &&
|
|
4624
|
+
P[0] & /*hidden*/
|
|
4625
|
+
32 && ve(
|
|
4541
4626
|
c,
|
|
4542
4627
|
"hidden",
|
|
4543
4628
|
/*hidden*/
|
|
@@ -4545,14 +4630,14 @@ function _o(e) {
|
|
|
4545
4630
|
);
|
|
4546
4631
|
},
|
|
4547
4632
|
d(v) {
|
|
4548
|
-
v && k(t),
|
|
4633
|
+
v && k(t), Yr(d, v), f = !1, p();
|
|
4549
4634
|
}
|
|
4550
4635
|
};
|
|
4551
4636
|
}
|
|
4552
|
-
function
|
|
4553
|
-
return { c:
|
|
4637
|
+
function wo(e) {
|
|
4638
|
+
return { c: O, m: O, p: O, d: O };
|
|
4554
4639
|
}
|
|
4555
|
-
function
|
|
4640
|
+
function Ao(e) {
|
|
4556
4641
|
let t, r = (
|
|
4557
4642
|
/*lang*/
|
|
4558
4643
|
(e[0] ? (
|
|
@@ -4562,10 +4647,10 @@ function xo(e) {
|
|
|
4562
4647
|
), i;
|
|
4563
4648
|
return {
|
|
4564
4649
|
c() {
|
|
4565
|
-
t =
|
|
4650
|
+
t = H("p"), i = R(r), E(t, "class", "svelte-16zv8bz");
|
|
4566
4651
|
},
|
|
4567
4652
|
m(n, o) {
|
|
4568
|
-
|
|
4653
|
+
X(n, t, o), T(t, i);
|
|
4569
4654
|
},
|
|
4570
4655
|
p(n, o) {
|
|
4571
4656
|
o[0] & /*lang, $_*/
|
|
@@ -4580,183 +4665,183 @@ function xo(e) {
|
|
|
4580
4665
|
}
|
|
4581
4666
|
};
|
|
4582
4667
|
}
|
|
4583
|
-
function
|
|
4668
|
+
function Ho(e) {
|
|
4584
4669
|
let t, r, i, n = (
|
|
4585
4670
|
/*history*/
|
|
4586
|
-
e[
|
|
4671
|
+
e[37].type + ""
|
|
4587
4672
|
), o, s, a = (
|
|
4588
4673
|
/*history*/
|
|
4589
|
-
e[
|
|
4674
|
+
e[37].amount + ""
|
|
4590
4675
|
), l, u, h = (
|
|
4591
4676
|
/*history*/
|
|
4592
|
-
e[
|
|
4677
|
+
e[37].date + ""
|
|
4593
4678
|
), c;
|
|
4594
4679
|
return {
|
|
4595
4680
|
c() {
|
|
4596
|
-
t =
|
|
4681
|
+
t = H("div"), r = H("span"), i = H("span"), o = R(n), s = H("span"), l = R(a), u = H("span"), c = R(h), E(i, "class", "LimitType svelte-16zv8bz"), E(s, "class", "LimitAmountPeriod svelte-16zv8bz"), E(r, "class", "GeneralLimitInformation svelte-16zv8bz"), E(u, "class", "DateLimitInformation svelte-16zv8bz"), E(t, "class", "HistoryRow svelte-16zv8bz");
|
|
4597
4682
|
},
|
|
4598
4683
|
m(f, p) {
|
|
4599
|
-
|
|
4684
|
+
X(f, t, p), T(t, r), T(r, i), T(i, o), T(r, s), T(s, l), T(t, u), T(u, c);
|
|
4600
4685
|
},
|
|
4601
4686
|
p(f, p) {
|
|
4602
4687
|
p[0] & /*lazyShowedHistoryArray*/
|
|
4603
4688
|
128 && n !== (n = /*history*/
|
|
4604
|
-
f[
|
|
4689
|
+
f[37].type + "") && j(o, n), p[0] & /*lazyShowedHistoryArray*/
|
|
4605
4690
|
128 && a !== (a = /*history*/
|
|
4606
|
-
f[
|
|
4691
|
+
f[37].amount + "") && j(l, a), p[0] & /*lazyShowedHistoryArray*/
|
|
4607
4692
|
128 && h !== (h = /*history*/
|
|
4608
|
-
f[
|
|
4693
|
+
f[37].date + "") && j(c, h);
|
|
4609
4694
|
},
|
|
4610
4695
|
d(f) {
|
|
4611
4696
|
f && k(t);
|
|
4612
4697
|
}
|
|
4613
4698
|
};
|
|
4614
4699
|
}
|
|
4615
|
-
function
|
|
4700
|
+
function Po(e) {
|
|
4616
4701
|
let t, r, i, n = (
|
|
4617
4702
|
/*history*/
|
|
4618
|
-
e[
|
|
4703
|
+
e[37].type + ""
|
|
4619
4704
|
), o, s, a = (
|
|
4620
4705
|
/*$_*/
|
|
4621
4706
|
e[9]("limitRemoved") + ""
|
|
4622
4707
|
), l, u, h = (
|
|
4623
4708
|
/*history*/
|
|
4624
|
-
e[
|
|
4709
|
+
e[37].date + ""
|
|
4625
4710
|
), c;
|
|
4626
4711
|
return {
|
|
4627
4712
|
c() {
|
|
4628
|
-
t =
|
|
4713
|
+
t = H("div"), r = H("span"), i = H("span"), o = R(n), s = H("span"), l = R(a), u = H("span"), c = R(h), E(i, "class", "LimitType svelte-16zv8bz"), E(s, "class", "LimitAmountPeriod svelte-16zv8bz"), E(r, "class", "GeneralLimitInformation svelte-16zv8bz"), E(u, "class", "DateLimitInformation svelte-16zv8bz"), E(t, "class", "HistoryRow svelte-16zv8bz");
|
|
4629
4714
|
},
|
|
4630
4715
|
m(f, p) {
|
|
4631
|
-
|
|
4716
|
+
X(f, t, p), T(t, r), T(r, i), T(i, o), T(r, s), T(s, l), T(t, u), T(u, c);
|
|
4632
4717
|
},
|
|
4633
4718
|
p(f, p) {
|
|
4634
4719
|
p[0] & /*lazyShowedHistoryArray*/
|
|
4635
4720
|
128 && n !== (n = /*history*/
|
|
4636
|
-
f[
|
|
4721
|
+
f[37].type + "") && j(o, n), p[0] & /*$_*/
|
|
4637
4722
|
512 && a !== (a = /*$_*/
|
|
4638
4723
|
f[9]("limitRemoved") + "") && j(l, a), p[0] & /*lazyShowedHistoryArray*/
|
|
4639
4724
|
128 && h !== (h = /*history*/
|
|
4640
|
-
f[
|
|
4725
|
+
f[37].date + "") && j(c, h);
|
|
4641
4726
|
},
|
|
4642
4727
|
d(f) {
|
|
4643
4728
|
f && k(t);
|
|
4644
4729
|
}
|
|
4645
4730
|
};
|
|
4646
4731
|
}
|
|
4647
|
-
function
|
|
4732
|
+
function jt(e) {
|
|
4648
4733
|
let t, r, i, n = (
|
|
4649
4734
|
/*index*/
|
|
4650
|
-
e[
|
|
4735
|
+
e[39]
|
|
4651
4736
|
);
|
|
4652
4737
|
function o(h, c) {
|
|
4653
4738
|
return (
|
|
4654
4739
|
/*history*/
|
|
4655
|
-
h[
|
|
4740
|
+
h[37].removed ? Po : Ho
|
|
4656
4741
|
);
|
|
4657
4742
|
}
|
|
4658
4743
|
let s = o(e), a = s(e);
|
|
4659
4744
|
const l = () => (
|
|
4660
4745
|
/*div_binding*/
|
|
4661
|
-
e[
|
|
4746
|
+
e[22](t, n)
|
|
4662
4747
|
), u = () => (
|
|
4663
4748
|
/*div_binding*/
|
|
4664
|
-
e[
|
|
4749
|
+
e[22](null, n)
|
|
4665
4750
|
);
|
|
4666
4751
|
return {
|
|
4667
4752
|
c() {
|
|
4668
|
-
t =
|
|
4753
|
+
t = H("div"), a.c(), r = Ze(), E(t, "class", i = gt(
|
|
4669
4754
|
/*index*/
|
|
4670
|
-
e[
|
|
4755
|
+
e[39] > +/*numberofentries*/
|
|
4671
4756
|
e[1] ? "LimitContainer" : ""
|
|
4672
4757
|
) + " svelte-16zv8bz");
|
|
4673
4758
|
},
|
|
4674
4759
|
m(h, c) {
|
|
4675
|
-
|
|
4760
|
+
X(h, t, c), a.m(t, null), T(t, r), l();
|
|
4676
4761
|
},
|
|
4677
4762
|
p(h, c) {
|
|
4678
4763
|
e = h, s === (s = o(e)) && a ? a.p(e, c) : (a.d(1), a = s(e), a && (a.c(), a.m(t, r))), c[0] & /*numberofentries*/
|
|
4679
|
-
2 && i !== (i =
|
|
4764
|
+
2 && i !== (i = gt(
|
|
4680
4765
|
/*index*/
|
|
4681
|
-
e[
|
|
4766
|
+
e[39] > +/*numberofentries*/
|
|
4682
4767
|
e[1] ? "LimitContainer" : ""
|
|
4683
|
-
) + " svelte-16zv8bz") &&
|
|
4684
|
-
e[
|
|
4685
|
-
e[
|
|
4768
|
+
) + " svelte-16zv8bz") && E(t, "class", i), n !== /*index*/
|
|
4769
|
+
e[39] && (u(), n = /*index*/
|
|
4770
|
+
e[39], l());
|
|
4686
4771
|
},
|
|
4687
4772
|
d(h) {
|
|
4688
4773
|
h && k(t), a.d(), u();
|
|
4689
4774
|
}
|
|
4690
4775
|
};
|
|
4691
4776
|
}
|
|
4692
|
-
function
|
|
4777
|
+
function Bo(e) {
|
|
4693
4778
|
let t;
|
|
4694
4779
|
function r(o, s) {
|
|
4695
4780
|
return (
|
|
4696
4781
|
/*hasErrors*/
|
|
4697
|
-
o[6] ?
|
|
4782
|
+
o[6] ? Ao : (
|
|
4698
4783
|
/*isLoading*/
|
|
4699
|
-
o[4] ?
|
|
4784
|
+
o[4] ? wo : So
|
|
4700
4785
|
)
|
|
4701
4786
|
);
|
|
4702
4787
|
}
|
|
4703
4788
|
let i = r(e), n = i(e);
|
|
4704
4789
|
return {
|
|
4705
4790
|
c() {
|
|
4706
|
-
t =
|
|
4791
|
+
t = H("div"), n.c(), E(t, "class", "svelte-16zv8bz");
|
|
4707
4792
|
},
|
|
4708
4793
|
m(o, s) {
|
|
4709
|
-
|
|
4794
|
+
X(o, t, s), n.m(t, null), e[23](t);
|
|
4710
4795
|
},
|
|
4711
4796
|
p(o, s) {
|
|
4712
4797
|
i === (i = r(o)) && n ? n.p(o, s) : (n.d(1), n = i(o), n && (n.c(), n.m(t, null)));
|
|
4713
4798
|
},
|
|
4714
|
-
i:
|
|
4715
|
-
o:
|
|
4799
|
+
i: O,
|
|
4800
|
+
o: O,
|
|
4716
4801
|
d(o) {
|
|
4717
|
-
o && k(t), n.d(), e[
|
|
4802
|
+
o && k(t), n.d(), e[23](null);
|
|
4718
4803
|
}
|
|
4719
4804
|
};
|
|
4720
4805
|
}
|
|
4721
|
-
function
|
|
4806
|
+
function Oo(e, t, r) {
|
|
4722
4807
|
let i;
|
|
4723
|
-
|
|
4724
|
-
let n = window.navigator.userAgent, o = !
|
|
4725
|
-
const
|
|
4726
|
-
fetch(
|
|
4727
|
-
Object.keys(
|
|
4728
|
-
|
|
4808
|
+
Wr(e, go, (m) => r(9, i = m));
|
|
4809
|
+
let n = window.navigator.userAgent, o = !vo(n), { lang: s = "" } = t, { userid: a = "" } = t, { session: l = "" } = t, { endpoint: u = "" } = t, { apiversion: h = "" } = t, { numberofentries: c = "10" } = t, { customcurrencysymbols: f = "" } = t, { limitformat: p = "" } = t, { clientstyling: y = "" } = t, { clientstylingurl: d = "" } = t, { mbsource: v } = t, { translationurl: P = "" } = t, b, w = new Array(), D = parseInt(c, 10), M = !1, z = !0, V = [], de = [], ye = !0, Me = !1, ue = { EUR: "€", RON: "lei", TRY: "₺" };
|
|
4810
|
+
const wr = () => {
|
|
4811
|
+
fetch(P).then((L) => L.json()).then((L) => {
|
|
4812
|
+
Object.keys(L).forEach((I) => {
|
|
4813
|
+
Gt(I, L[I]);
|
|
4729
4814
|
});
|
|
4730
|
-
}).catch((
|
|
4731
|
-
console.log(
|
|
4815
|
+
}).catch((L) => {
|
|
4816
|
+
console.log(L);
|
|
4732
4817
|
});
|
|
4733
4818
|
};
|
|
4734
|
-
Object.keys(
|
|
4735
|
-
|
|
4819
|
+
Object.keys(Xe).forEach((m) => {
|
|
4820
|
+
Gt(m, Xe[m]);
|
|
4736
4821
|
});
|
|
4737
|
-
const
|
|
4738
|
-
let m = h === "gmcore" ? `/v2/player/${a}/transactions/limit` : `/v1/player/${a}/limits/monetary/history`,
|
|
4739
|
-
|
|
4740
|
-
let
|
|
4822
|
+
const Ar = () => {
|
|
4823
|
+
let m = h === "gmcore" ? `/v2/player/${a}/transactions/limit` : `/v1/player/${a}/limits/monetary/history`, L = new URL(m, u);
|
|
4824
|
+
L.searchParams.append("startDate", `${(/* @__PURE__ */ new Date("2022")).toISOString()}`), L.searchParams.append("endDate", `${(/* @__PURE__ */ new Date("2099")).toISOString()}`), L.searchParams.append("limit", "10000");
|
|
4825
|
+
let I = {
|
|
4741
4826
|
method: "GET",
|
|
4742
4827
|
headers: { "X-SessionID": l }
|
|
4743
4828
|
};
|
|
4744
|
-
fetch(
|
|
4829
|
+
fetch(L.href, I).then((A) => {
|
|
4745
4830
|
if (A.status >= 300)
|
|
4746
|
-
throw r(4,
|
|
4831
|
+
throw r(4, z = !1), r(6, M = !0), new Error("There was an error fetching the limits");
|
|
4747
4832
|
return A.json();
|
|
4748
4833
|
}).then(
|
|
4749
4834
|
(A) => {
|
|
4750
|
-
A.length && (
|
|
4835
|
+
A.length && (V = Hr(A), r(7, de = V.slice(0, D))), r(4, z = !1);
|
|
4751
4836
|
},
|
|
4752
4837
|
(A) => {
|
|
4753
|
-
console.error("There was an error", A), r(6,
|
|
4838
|
+
console.error("There was an error", A), r(6, M = !0);
|
|
4754
4839
|
}
|
|
4755
4840
|
);
|
|
4756
|
-
},
|
|
4757
|
-
const
|
|
4841
|
+
}, Hr = (m) => {
|
|
4842
|
+
const L = !!Xe[s];
|
|
4758
4843
|
return m.map((A) => {
|
|
4759
|
-
let
|
|
4844
|
+
let U = {
|
|
4760
4845
|
amount: "",
|
|
4761
4846
|
currency: "",
|
|
4762
4847
|
date: "",
|
|
@@ -4764,97 +4849,81 @@ function wo(e, t, r) {
|
|
|
4764
4849
|
type: "",
|
|
4765
4850
|
removed: !1
|
|
4766
4851
|
};
|
|
4767
|
-
return
|
|
4852
|
+
return U.amount = Pr(A), U.currency = L ? ue[A.limitCurrencyCode] : A.limitCurrencyCode, U.date = new Intl.DateTimeFormat("de", { dateStyle: "medium" }).format(new Date(A.limitDate)), U.period = i(`${A.limitPeriod.toLowerCase()}`), U.type = h === "gmcore" ? i(`historyLimitType${A.limitType.split(" ")[0]}`) : i(`historyLimitType${A.limitType.split(" ")[0]}`) + " " + i(`historyProductType${A.limitProductType}`), U.removed = A.limitAmount === -1, U;
|
|
4768
4853
|
});
|
|
4769
|
-
},
|
|
4770
|
-
let
|
|
4854
|
+
}, Pr = (m) => {
|
|
4855
|
+
let L = p || Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(m.limitAmount);
|
|
4771
4856
|
if (!p) {
|
|
4772
|
-
let
|
|
4773
|
-
return `${
|
|
4857
|
+
let zr = ue[m.limitCurrencyCode] || m.limitCurrencyCode;
|
|
4858
|
+
return `${L}${zr}`;
|
|
4774
4859
|
}
|
|
4775
4860
|
typeof m.limitAmount == "string" && m.limitAmount.includes(",") && (m.limitAmount = m.limitAmount.replaceAll(",", ""));
|
|
4776
|
-
const
|
|
4777
|
-
let
|
|
4778
|
-
const [
|
|
4779
|
-
let [
|
|
4780
|
-
return
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
),
|
|
4784
|
-
},
|
|
4785
|
-
r(5,
|
|
4861
|
+
const I = L.match(/\{(\d+)decimals\}/), A = I ? parseInt(I[1], 10) : 2, U = I ? new RegExp("\\{\\d+decimals\\}", "g") : "{decimals}";
|
|
4862
|
+
let be = parseFloat(m.limitAmount).toFixed(A);
|
|
4863
|
+
const [Rr, Re] = p.includes(".") ? [",", "."] : [".", ","];
|
|
4864
|
+
let [De, Dr] = be.split(".");
|
|
4865
|
+
return De = De.replace(/\B(?=(\d{3})+(?!\d))/g, Rr), be = `${De}${Re}${Dr}`, L = L.replace("{currency}", ue[m.limitCurrencyCode] || m.limitCurrencyCode).replace("{amount}", be.split(Re)[0]).replace(
|
|
4866
|
+
U,
|
|
4867
|
+
be.split(Re)[1]
|
|
4868
|
+
), L;
|
|
4869
|
+
}, Br = () => {
|
|
4870
|
+
r(5, ye = !ye), r(8, Me = !Me);
|
|
4786
4871
|
};
|
|
4787
|
-
let
|
|
4788
|
-
m.forEach((
|
|
4789
|
-
|
|
4872
|
+
let mt = new IntersectionObserver((m) => {
|
|
4873
|
+
m.forEach((L) => {
|
|
4874
|
+
L.isIntersecting && (D += parseInt(c, 10) || 10, de.length < V.length && r(7, de = V.slice(0, D)));
|
|
4790
4875
|
});
|
|
4791
4876
|
});
|
|
4792
|
-
const
|
|
4793
|
-
|
|
4794
|
-
},
|
|
4877
|
+
const Or = () => {
|
|
4878
|
+
mt.observe(w[w.length - 1]);
|
|
4879
|
+
}, Cr = () => {
|
|
4795
4880
|
if (!f) return;
|
|
4796
4881
|
let m = {};
|
|
4797
|
-
f.split(",").forEach((
|
|
4798
|
-
let
|
|
4799
|
-
m[
|
|
4800
|
-
}),
|
|
4801
|
-
},
|
|
4802
|
-
|
|
4803
|
-
m.innerHTML = y, w.appendChild(m);
|
|
4804
|
-
}, Br = () => {
|
|
4805
|
-
let m = new URL(d), T = document.createElement("style");
|
|
4806
|
-
fetch(m.href).then((B) => B.text()).then((B) => {
|
|
4807
|
-
T.innerHTML = B, w && (setTimeout(
|
|
4808
|
-
() => {
|
|
4809
|
-
w.appendChild(T);
|
|
4810
|
-
},
|
|
4811
|
-
1
|
|
4812
|
-
), setTimeout(
|
|
4813
|
-
() => {
|
|
4814
|
-
},
|
|
4815
|
-
500
|
|
4816
|
-
));
|
|
4817
|
-
});
|
|
4818
|
-
}, Or = () => {
|
|
4819
|
-
vo(s);
|
|
4882
|
+
f.split(",").forEach((L) => {
|
|
4883
|
+
let I = L.split(":");
|
|
4884
|
+
m[I[0].trim()] = I[1].trim();
|
|
4885
|
+
}), ue = ge(ge({}, ue), m);
|
|
4886
|
+
}, Ir = () => {
|
|
4887
|
+
To(s);
|
|
4820
4888
|
};
|
|
4821
|
-
|
|
4822
|
-
|
|
4889
|
+
ri(() => () => {
|
|
4890
|
+
mt.unobserve(w[w.length - 1]);
|
|
4823
4891
|
});
|
|
4824
|
-
function
|
|
4825
|
-
|
|
4826
|
-
|
|
4892
|
+
function Nr(m, L) {
|
|
4893
|
+
Ae[m ? "unshift" : "push"](() => {
|
|
4894
|
+
w[L] = m, r(3, w);
|
|
4827
4895
|
});
|
|
4828
4896
|
}
|
|
4829
|
-
function
|
|
4830
|
-
|
|
4831
|
-
|
|
4897
|
+
function Mr(m) {
|
|
4898
|
+
Ae[m ? "unshift" : "push"](() => {
|
|
4899
|
+
b = m, r(2, b);
|
|
4832
4900
|
});
|
|
4833
4901
|
}
|
|
4834
4902
|
return e.$$set = (m) => {
|
|
4835
|
-
"lang" in m && r(0, s = m.lang), "userid" in m && r(12, a = m.userid), "session" in m && r(13, l = m.session), "endpoint" in m && r(14, u = m.endpoint), "apiversion" in m && r(15, h = m.apiversion), "numberofentries" in m && r(1, c = m.numberofentries), "customcurrencysymbols" in m && r(16, f = m.customcurrencysymbols), "limitformat" in m && r(17, p = m.limitformat), "clientstyling" in m && r(18, y = m.clientstyling), "clientstylingurl" in m && r(19, d = m.clientstylingurl), "
|
|
4903
|
+
"lang" in m && r(0, s = m.lang), "userid" in m && r(12, a = m.userid), "session" in m && r(13, l = m.session), "endpoint" in m && r(14, u = m.endpoint), "apiversion" in m && r(15, h = m.apiversion), "numberofentries" in m && r(1, c = m.numberofentries), "customcurrencysymbols" in m && r(16, f = m.customcurrencysymbols), "limitformat" in m && r(17, p = m.limitformat), "clientstyling" in m && r(18, y = m.clientstyling), "clientstylingurl" in m && r(19, d = m.clientstylingurl), "mbsource" in m && r(20, v = m.mbsource), "translationurl" in m && r(21, P = m.translationurl);
|
|
4836
4904
|
}, e.$$.update = () => {
|
|
4837
4905
|
e.$$.dirty[0] & /*customcurrencysymbols*/
|
|
4838
|
-
65536 && f &&
|
|
4839
|
-
61440 && u && a && l && h &&
|
|
4840
|
-
56 &&
|
|
4841
|
-
1 && s &&
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
1048580 && v &&
|
|
4906
|
+
65536 && f && Cr(), e.$$.dirty[0] & /*endpoint, userid, session, apiversion*/
|
|
4907
|
+
61440 && u && a && l && h && Ar(), e.$$.dirty[0] & /*limitContainer, isLoading, hidden*/
|
|
4908
|
+
56 && w[0] && !z && !ye && Or(), e.$$.dirty[0] & /*lang*/
|
|
4909
|
+
1 && s && Ir(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4910
|
+
262148 && y && b && _o(b, y), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4911
|
+
524292 && d && b && xo(b, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4912
|
+
1048580 && v && b && Eo(b, `${v}.Style`), e.$$.dirty[0] & /*translationurl, customStylingContainer*/
|
|
4913
|
+
2097156 && P && b && wr();
|
|
4845
4914
|
}, [
|
|
4846
4915
|
s,
|
|
4847
4916
|
c,
|
|
4917
|
+
b,
|
|
4848
4918
|
w,
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
Ce,
|
|
4919
|
+
z,
|
|
4920
|
+
ye,
|
|
4921
|
+
M,
|
|
4922
|
+
de,
|
|
4923
|
+
Me,
|
|
4855
4924
|
i,
|
|
4856
4925
|
o,
|
|
4857
|
-
|
|
4926
|
+
Br,
|
|
4858
4927
|
a,
|
|
4859
4928
|
l,
|
|
4860
4929
|
u,
|
|
@@ -4864,18 +4933,19 @@ function wo(e, t, r) {
|
|
|
4864
4933
|
y,
|
|
4865
4934
|
d,
|
|
4866
4935
|
v,
|
|
4867
|
-
|
|
4868
|
-
|
|
4936
|
+
P,
|
|
4937
|
+
Nr,
|
|
4938
|
+
Mr
|
|
4869
4939
|
];
|
|
4870
4940
|
}
|
|
4871
|
-
class
|
|
4941
|
+
class Sr extends mi {
|
|
4872
4942
|
constructor(t) {
|
|
4873
|
-
super(),
|
|
4943
|
+
super(), ci(
|
|
4874
4944
|
this,
|
|
4875
4945
|
t,
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4946
|
+
Oo,
|
|
4947
|
+
Bo,
|
|
4948
|
+
Vt,
|
|
4879
4949
|
{
|
|
4880
4950
|
lang: 0,
|
|
4881
4951
|
userid: 12,
|
|
@@ -4887,9 +4957,10 @@ class Er extends ci {
|
|
|
4887
4957
|
limitformat: 17,
|
|
4888
4958
|
clientstyling: 18,
|
|
4889
4959
|
clientstylingurl: 19,
|
|
4890
|
-
|
|
4960
|
+
mbsource: 20,
|
|
4961
|
+
translationurl: 21
|
|
4891
4962
|
},
|
|
4892
|
-
|
|
4963
|
+
Lo,
|
|
4893
4964
|
[-1, -1]
|
|
4894
4965
|
);
|
|
4895
4966
|
}
|
|
@@ -4897,112 +4968,128 @@ class Er extends ci {
|
|
|
4897
4968
|
return this.$$.ctx[0];
|
|
4898
4969
|
}
|
|
4899
4970
|
set lang(t) {
|
|
4900
|
-
this.$$set({ lang: t }),
|
|
4971
|
+
this.$$set({ lang: t }), C();
|
|
4901
4972
|
}
|
|
4902
4973
|
get userid() {
|
|
4903
4974
|
return this.$$.ctx[12];
|
|
4904
4975
|
}
|
|
4905
4976
|
set userid(t) {
|
|
4906
|
-
this.$$set({ userid: t }),
|
|
4977
|
+
this.$$set({ userid: t }), C();
|
|
4907
4978
|
}
|
|
4908
4979
|
get session() {
|
|
4909
4980
|
return this.$$.ctx[13];
|
|
4910
4981
|
}
|
|
4911
4982
|
set session(t) {
|
|
4912
|
-
this.$$set({ session: t }),
|
|
4983
|
+
this.$$set({ session: t }), C();
|
|
4913
4984
|
}
|
|
4914
4985
|
get endpoint() {
|
|
4915
4986
|
return this.$$.ctx[14];
|
|
4916
4987
|
}
|
|
4917
4988
|
set endpoint(t) {
|
|
4918
|
-
this.$$set({ endpoint: t }),
|
|
4989
|
+
this.$$set({ endpoint: t }), C();
|
|
4919
4990
|
}
|
|
4920
4991
|
get apiversion() {
|
|
4921
4992
|
return this.$$.ctx[15];
|
|
4922
4993
|
}
|
|
4923
4994
|
set apiversion(t) {
|
|
4924
|
-
this.$$set({ apiversion: t }),
|
|
4995
|
+
this.$$set({ apiversion: t }), C();
|
|
4925
4996
|
}
|
|
4926
4997
|
get numberofentries() {
|
|
4927
4998
|
return this.$$.ctx[1];
|
|
4928
4999
|
}
|
|
4929
5000
|
set numberofentries(t) {
|
|
4930
|
-
this.$$set({ numberofentries: t }),
|
|
5001
|
+
this.$$set({ numberofentries: t }), C();
|
|
4931
5002
|
}
|
|
4932
5003
|
get customcurrencysymbols() {
|
|
4933
5004
|
return this.$$.ctx[16];
|
|
4934
5005
|
}
|
|
4935
5006
|
set customcurrencysymbols(t) {
|
|
4936
|
-
this.$$set({ customcurrencysymbols: t }),
|
|
5007
|
+
this.$$set({ customcurrencysymbols: t }), C();
|
|
4937
5008
|
}
|
|
4938
5009
|
get limitformat() {
|
|
4939
5010
|
return this.$$.ctx[17];
|
|
4940
5011
|
}
|
|
4941
5012
|
set limitformat(t) {
|
|
4942
|
-
this.$$set({ limitformat: t }),
|
|
5013
|
+
this.$$set({ limitformat: t }), C();
|
|
4943
5014
|
}
|
|
4944
5015
|
get clientstyling() {
|
|
4945
5016
|
return this.$$.ctx[18];
|
|
4946
5017
|
}
|
|
4947
5018
|
set clientstyling(t) {
|
|
4948
|
-
this.$$set({ clientstyling: t }),
|
|
5019
|
+
this.$$set({ clientstyling: t }), C();
|
|
4949
5020
|
}
|
|
4950
5021
|
get clientstylingurl() {
|
|
4951
5022
|
return this.$$.ctx[19];
|
|
4952
5023
|
}
|
|
4953
5024
|
set clientstylingurl(t) {
|
|
4954
|
-
this.$$set({ clientstylingurl: t }),
|
|
5025
|
+
this.$$set({ clientstylingurl: t }), C();
|
|
4955
5026
|
}
|
|
4956
|
-
get
|
|
5027
|
+
get mbsource() {
|
|
4957
5028
|
return this.$$.ctx[20];
|
|
4958
5029
|
}
|
|
5030
|
+
set mbsource(t) {
|
|
5031
|
+
this.$$set({ mbsource: t }), C();
|
|
5032
|
+
}
|
|
5033
|
+
get translationurl() {
|
|
5034
|
+
return this.$$.ctx[21];
|
|
5035
|
+
}
|
|
4959
5036
|
set translationurl(t) {
|
|
4960
|
-
this.$$set({ translationurl: t }),
|
|
5037
|
+
this.$$set({ translationurl: t }), C();
|
|
4961
5038
|
}
|
|
4962
5039
|
}
|
|
4963
|
-
|
|
4964
|
-
const
|
|
5040
|
+
fi(Sr, { lang: {}, userid: {}, session: {}, endpoint: {}, apiversion: {}, numberofentries: {}, customcurrencysymbols: {}, limitformat: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
5041
|
+
const Xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4965
5042
|
__proto__: null,
|
|
4966
|
-
default:
|
|
5043
|
+
default: Sr
|
|
4967
5044
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4968
5045
|
export {
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
5046
|
+
se as $,
|
|
5047
|
+
Go as A,
|
|
5048
|
+
Ye as B,
|
|
5049
|
+
Ue as C,
|
|
5050
|
+
Kr as D,
|
|
5051
|
+
_o as E,
|
|
5052
|
+
xo as F,
|
|
5053
|
+
Eo as G,
|
|
5054
|
+
fi as H,
|
|
5055
|
+
go as I,
|
|
5056
|
+
pe as J,
|
|
5057
|
+
Vo as K,
|
|
5058
|
+
ai as L,
|
|
5059
|
+
ko as M,
|
|
5060
|
+
Wo as N,
|
|
5061
|
+
jo as O,
|
|
5062
|
+
zo as P,
|
|
5063
|
+
Io as Q,
|
|
5064
|
+
Mo as R,
|
|
5065
|
+
mi as S,
|
|
5066
|
+
Ro as T,
|
|
5067
|
+
No as U,
|
|
5068
|
+
Xo as V,
|
|
5069
|
+
_r as a,
|
|
5070
|
+
Xr as b,
|
|
5071
|
+
T as c,
|
|
4985
5072
|
k as d,
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5073
|
+
X as e,
|
|
5074
|
+
C as f,
|
|
5075
|
+
H as g,
|
|
5076
|
+
Ze as h,
|
|
5077
|
+
ci as i,
|
|
5078
|
+
E as j,
|
|
5079
|
+
Wr as k,
|
|
5080
|
+
vo as l,
|
|
5081
|
+
Fo as m,
|
|
5082
|
+
O as n,
|
|
5083
|
+
ri as o,
|
|
5084
|
+
Ae as p,
|
|
5085
|
+
_t as q,
|
|
5086
|
+
Yr as r,
|
|
5087
|
+
Vt as s,
|
|
5088
|
+
Uo as t,
|
|
5089
|
+
ne as u,
|
|
5090
|
+
j as v,
|
|
5091
|
+
$o as w,
|
|
5092
|
+
Jr as x,
|
|
5093
|
+
R as y,
|
|
5094
|
+
Do as z
|
|
5008
5095
|
};
|