@everymatrix/player-pending-withdrawals 1.53.0 → 1.53.10
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/{PlayerPendingWithdrawals-Bvq_e_25.js → PlayerPendingWithdrawals-CUt17-cb.js} +1092 -1143
- package/esnext/player-pending-withdrawals.js +14 -0
- package/package.json +8 -9
- package/components/PlayerPendingWithdrawals-DBBg3beW.cjs +0 -5
- package/es2015/player-pending-withdrawals.cjs +0 -1
- package/es2015/player-pending-withdrawals.js +0 -16
package/components/{PlayerPendingWithdrawals-Bvq_e_25.js → PlayerPendingWithdrawals-CUt17-cb.js}
RENAMED
|
@@ -1,79 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
var mr = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var nt = Object.getOwnPropertySymbols;
|
|
4
|
-
var br = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var we = (e, t, r) => t in e ? pr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, it = (e, t) => {
|
|
6
|
-
for (var r in t || (t = {}))
|
|
7
|
-
br.call(t, r) && we(e, r, t[r]);
|
|
8
|
-
if (nt)
|
|
9
|
-
for (var r of nt(t))
|
|
10
|
-
gr.call(t, r) && we(e, r, t[r]);
|
|
11
|
-
return e;
|
|
12
|
-
}, ot = (e, t) => dr(e, mr(t));
|
|
13
|
-
var P = (e, t, r) => we(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
-
var st = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var o = (h) => {
|
|
16
|
-
try {
|
|
17
|
-
a(r.next(h));
|
|
18
|
-
} catch (u) {
|
|
19
|
-
i(u);
|
|
20
|
-
}
|
|
21
|
-
}, s = (h) => {
|
|
22
|
-
try {
|
|
23
|
-
a(r.throw(h));
|
|
24
|
-
} catch (u) {
|
|
25
|
-
i(u);
|
|
26
|
-
}
|
|
27
|
-
}, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
|
|
28
|
-
a((r = r.apply(e, t)).next());
|
|
29
|
-
});
|
|
30
|
-
function A() {
|
|
1
|
+
function B() {
|
|
31
2
|
}
|
|
32
|
-
function
|
|
3
|
+
function wt(e) {
|
|
33
4
|
return e();
|
|
34
5
|
}
|
|
35
|
-
function
|
|
6
|
+
function Ke() {
|
|
36
7
|
return /* @__PURE__ */ Object.create(null);
|
|
37
8
|
}
|
|
38
9
|
function se(e) {
|
|
39
|
-
e.forEach(
|
|
10
|
+
e.forEach(wt);
|
|
40
11
|
}
|
|
41
|
-
function
|
|
12
|
+
function ze(e) {
|
|
42
13
|
return typeof e == "function";
|
|
43
14
|
}
|
|
44
|
-
function
|
|
15
|
+
function Tt(e, t) {
|
|
45
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
17
|
}
|
|
47
|
-
let
|
|
48
|
-
function
|
|
49
|
-
return e === t ? !0 : (
|
|
18
|
+
let he;
|
|
19
|
+
function et(e, t) {
|
|
20
|
+
return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
|
|
50
21
|
}
|
|
51
|
-
function
|
|
22
|
+
function ir(e) {
|
|
52
23
|
return Object.keys(e).length === 0;
|
|
53
24
|
}
|
|
54
|
-
function
|
|
25
|
+
function Ht(e, ...t) {
|
|
55
26
|
if (e == null) {
|
|
56
27
|
for (const n of t)
|
|
57
28
|
n(void 0);
|
|
58
|
-
return
|
|
29
|
+
return B;
|
|
59
30
|
}
|
|
60
31
|
const r = e.subscribe(...t);
|
|
61
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
33
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function sr(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Ht(t, r));
|
|
65
36
|
}
|
|
66
37
|
function x(e, t) {
|
|
67
38
|
e.appendChild(t);
|
|
68
39
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
40
|
+
function or(e, t, r) {
|
|
41
|
+
const n = ar(e);
|
|
71
42
|
if (!n.getElementById(t)) {
|
|
72
|
-
const i =
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
43
|
+
const i = N("style");
|
|
44
|
+
i.id = t, i.textContent = r, ur(n, i);
|
|
74
45
|
}
|
|
75
46
|
}
|
|
76
|
-
function
|
|
47
|
+
function ar(e) {
|
|
77
48
|
if (!e) return document;
|
|
78
49
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
79
50
|
return t && /** @type {ShadowRoot} */
|
|
@@ -82,45 +53,45 @@ function Er(e) {
|
|
|
82
53
|
t
|
|
83
54
|
) : e.ownerDocument;
|
|
84
55
|
}
|
|
85
|
-
function
|
|
56
|
+
function ur(e, t) {
|
|
86
57
|
return x(
|
|
87
58
|
/** @type {Document} */
|
|
88
59
|
e.head || e,
|
|
89
60
|
t
|
|
90
61
|
), t.sheet;
|
|
91
62
|
}
|
|
92
|
-
function
|
|
63
|
+
function oe(e, t, r) {
|
|
93
64
|
e.insertBefore(t, r || null);
|
|
94
65
|
}
|
|
95
|
-
function
|
|
66
|
+
function J(e) {
|
|
96
67
|
e.parentNode && e.parentNode.removeChild(e);
|
|
97
68
|
}
|
|
98
|
-
function
|
|
69
|
+
function N(e) {
|
|
99
70
|
return document.createElement(e);
|
|
100
71
|
}
|
|
101
|
-
function
|
|
72
|
+
function G(e) {
|
|
102
73
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
103
74
|
}
|
|
104
|
-
function
|
|
75
|
+
function re(e) {
|
|
105
76
|
return document.createTextNode(e);
|
|
106
77
|
}
|
|
107
|
-
function
|
|
108
|
-
return
|
|
78
|
+
function Oe() {
|
|
79
|
+
return re(" ");
|
|
109
80
|
}
|
|
110
|
-
function
|
|
81
|
+
function hr(e, t, r, n) {
|
|
111
82
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
112
83
|
}
|
|
113
84
|
function E(e, t, r) {
|
|
114
85
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
115
86
|
}
|
|
116
|
-
function
|
|
87
|
+
function lr(e) {
|
|
117
88
|
return Array.from(e.childNodes);
|
|
118
89
|
}
|
|
119
|
-
function
|
|
90
|
+
function Ze(e, t) {
|
|
120
91
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
121
92
|
t);
|
|
122
93
|
}
|
|
123
|
-
function
|
|
94
|
+
function fr(e) {
|
|
124
95
|
const t = {};
|
|
125
96
|
return e.childNodes.forEach(
|
|
126
97
|
/** @param {Element} node */
|
|
@@ -129,238 +100,234 @@ function Tr(e) {
|
|
|
129
100
|
}
|
|
130
101
|
), t;
|
|
131
102
|
}
|
|
132
|
-
let
|
|
133
|
-
function
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
const
|
|
137
|
-
let
|
|
138
|
-
const
|
|
139
|
-
let
|
|
140
|
-
function
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
function
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
if (
|
|
103
|
+
let Qe;
|
|
104
|
+
function te(e) {
|
|
105
|
+
Qe = e;
|
|
106
|
+
}
|
|
107
|
+
const k = [], Ie = [];
|
|
108
|
+
let W = [];
|
|
109
|
+
const tt = [], cr = /* @__PURE__ */ Promise.resolve();
|
|
110
|
+
let Ne = !1;
|
|
111
|
+
function dr() {
|
|
112
|
+
Ne || (Ne = !0, cr.then(O));
|
|
113
|
+
}
|
|
114
|
+
function Le(e) {
|
|
115
|
+
W.push(e);
|
|
116
|
+
}
|
|
117
|
+
const Se = /* @__PURE__ */ new Set();
|
|
118
|
+
let F = 0;
|
|
119
|
+
function O() {
|
|
120
|
+
if (F !== 0)
|
|
150
121
|
return;
|
|
151
|
-
const e =
|
|
122
|
+
const e = Qe;
|
|
152
123
|
do {
|
|
153
124
|
try {
|
|
154
|
-
for (;
|
|
155
|
-
const t =
|
|
156
|
-
|
|
125
|
+
for (; F < k.length; ) {
|
|
126
|
+
const t = k[F];
|
|
127
|
+
F++, te(t), pr(t.$$);
|
|
157
128
|
}
|
|
158
129
|
} catch (t) {
|
|
159
|
-
throw
|
|
130
|
+
throw k.length = 0, F = 0, t;
|
|
160
131
|
}
|
|
161
|
-
for (
|
|
162
|
-
for (let t = 0; t <
|
|
163
|
-
const r =
|
|
164
|
-
|
|
132
|
+
for (te(null), k.length = 0, F = 0; Ie.length; ) Ie.pop()();
|
|
133
|
+
for (let t = 0; t < W.length; t += 1) {
|
|
134
|
+
const r = W[t];
|
|
135
|
+
Se.has(r) || (Se.add(r), r());
|
|
165
136
|
}
|
|
166
|
-
|
|
167
|
-
} while (
|
|
168
|
-
for (;
|
|
169
|
-
|
|
170
|
-
|
|
137
|
+
W.length = 0;
|
|
138
|
+
} while (k.length);
|
|
139
|
+
for (; tt.length; )
|
|
140
|
+
tt.pop()();
|
|
141
|
+
Ne = !1, Se.clear(), te(e);
|
|
171
142
|
}
|
|
172
|
-
function
|
|
143
|
+
function pr(e) {
|
|
173
144
|
if (e.fragment !== null) {
|
|
174
145
|
e.update(), se(e.before_update);
|
|
175
146
|
const t = e.dirty;
|
|
176
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
147
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
177
148
|
}
|
|
178
149
|
}
|
|
179
|
-
function
|
|
150
|
+
function mr(e) {
|
|
180
151
|
const t = [], r = [];
|
|
181
|
-
|
|
152
|
+
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
182
153
|
}
|
|
183
|
-
const
|
|
184
|
-
function
|
|
185
|
-
e && e.i && (
|
|
154
|
+
const br = /* @__PURE__ */ new Set();
|
|
155
|
+
function gr(e, t) {
|
|
156
|
+
e && e.i && (br.delete(e), e.i(t));
|
|
186
157
|
}
|
|
187
|
-
function
|
|
158
|
+
function yr(e, t, r) {
|
|
188
159
|
const { fragment: n, after_update: i } = e.$$;
|
|
189
|
-
n && n.m(t, r),
|
|
190
|
-
const
|
|
191
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
192
|
-
}), i.forEach(
|
|
160
|
+
n && n.m(t, r), Le(() => {
|
|
161
|
+
const s = e.$$.on_mount.map(wt).filter(ze);
|
|
162
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : se(s), e.$$.on_mount = [];
|
|
163
|
+
}), i.forEach(Le);
|
|
193
164
|
}
|
|
194
|
-
function
|
|
165
|
+
function vr(e, t) {
|
|
195
166
|
const r = e.$$;
|
|
196
|
-
r.fragment !== null && (
|
|
167
|
+
r.fragment !== null && (mr(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
197
168
|
}
|
|
198
|
-
function
|
|
199
|
-
e.$$.dirty[0] === -1 && (
|
|
169
|
+
function _r(e, t) {
|
|
170
|
+
e.$$.dirty[0] === -1 && (k.push(e), dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
200
171
|
}
|
|
201
|
-
function
|
|
202
|
-
const
|
|
203
|
-
|
|
172
|
+
function Er(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
173
|
+
const l = Qe;
|
|
174
|
+
te(e);
|
|
204
175
|
const u = e.$$ = {
|
|
205
176
|
fragment: null,
|
|
206
177
|
ctx: [],
|
|
207
178
|
// state
|
|
208
|
-
props:
|
|
209
|
-
update:
|
|
179
|
+
props: s,
|
|
180
|
+
update: B,
|
|
210
181
|
not_equal: i,
|
|
211
|
-
bound:
|
|
182
|
+
bound: Ke(),
|
|
212
183
|
// lifecycle
|
|
213
184
|
on_mount: [],
|
|
214
185
|
on_destroy: [],
|
|
215
186
|
on_disconnect: [],
|
|
216
187
|
before_update: [],
|
|
217
188
|
after_update: [],
|
|
218
|
-
context: new Map(t.context || (
|
|
189
|
+
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
219
190
|
// everything else
|
|
220
|
-
callbacks:
|
|
221
|
-
dirty:
|
|
191
|
+
callbacks: Ke(),
|
|
192
|
+
dirty: o,
|
|
222
193
|
skip_bound: !1,
|
|
223
|
-
root: t.target ||
|
|
194
|
+
root: t.target || l.$$.root
|
|
224
195
|
};
|
|
225
|
-
|
|
226
|
-
let
|
|
227
|
-
if (u.ctx = r
|
|
228
|
-
const v =
|
|
229
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v),
|
|
230
|
-
})
|
|
196
|
+
a && a(u.root);
|
|
197
|
+
let h = !1;
|
|
198
|
+
if (u.ctx = r(e, t.props || {}, (f, c, ...d) => {
|
|
199
|
+
const v = d.length ? d[0] : c;
|
|
200
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), h && _r(e, f)), c;
|
|
201
|
+
}), u.update(), h = !0, se(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
231
202
|
if (t.hydrate) {
|
|
232
|
-
const f =
|
|
233
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
203
|
+
const f = lr(t.target);
|
|
204
|
+
u.fragment && u.fragment.l(f), f.forEach(J);
|
|
234
205
|
} else
|
|
235
206
|
u.fragment && u.fragment.c();
|
|
236
|
-
t.intro &&
|
|
207
|
+
t.intro && gr(e.$$.fragment), yr(e, t.target, t.anchor), O();
|
|
237
208
|
}
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
let
|
|
241
|
-
typeof HTMLElement == "function" && (
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
209
|
+
te(l);
|
|
210
|
+
}
|
|
211
|
+
let Pt;
|
|
212
|
+
typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
213
|
+
/** The Svelte component constructor */
|
|
214
|
+
$$ctor;
|
|
215
|
+
/** Slots */
|
|
216
|
+
$$s;
|
|
217
|
+
/** The Svelte component instance */
|
|
218
|
+
$$c;
|
|
219
|
+
/** Whether or not the custom element is connected */
|
|
220
|
+
$$cn = !1;
|
|
221
|
+
/** Component props data */
|
|
222
|
+
$$d = {};
|
|
223
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
224
|
+
$$r = !1;
|
|
225
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
226
|
+
$$p_d = {};
|
|
227
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
228
|
+
$$l = {};
|
|
229
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
230
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
231
|
+
constructor(e, t, r) {
|
|
232
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
263
233
|
}
|
|
264
|
-
addEventListener(t, r
|
|
265
|
-
if (this.$$l[
|
|
266
|
-
const
|
|
267
|
-
this.$$l_u.set(
|
|
234
|
+
addEventListener(e, t, r) {
|
|
235
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
236
|
+
const n = this.$$c.$on(e, t);
|
|
237
|
+
this.$$l_u.set(t, n);
|
|
268
238
|
}
|
|
269
|
-
super.addEventListener(t, r
|
|
239
|
+
super.addEventListener(e, t, r);
|
|
270
240
|
}
|
|
271
|
-
removeEventListener(t, r
|
|
272
|
-
if (super.removeEventListener(t, r
|
|
273
|
-
const
|
|
274
|
-
|
|
241
|
+
removeEventListener(e, t, r) {
|
|
242
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
243
|
+
const n = this.$$l_u.get(t);
|
|
244
|
+
n && (n(), this.$$l_u.delete(t));
|
|
275
245
|
}
|
|
276
246
|
}
|
|
277
|
-
connectedCallback() {
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
}
|
|
297
|
-
};
|
|
247
|
+
async connectedCallback() {
|
|
248
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
249
|
+
let e = function(i) {
|
|
250
|
+
return () => {
|
|
251
|
+
let s;
|
|
252
|
+
return {
|
|
253
|
+
c: function() {
|
|
254
|
+
s = N("slot"), i !== "default" && E(s, "name", i);
|
|
255
|
+
},
|
|
256
|
+
/**
|
|
257
|
+
* @param {HTMLElement} target
|
|
258
|
+
* @param {HTMLElement} [anchor]
|
|
259
|
+
*/
|
|
260
|
+
m: function(l, u) {
|
|
261
|
+
oe(l, s, u);
|
|
262
|
+
},
|
|
263
|
+
d: function(l) {
|
|
264
|
+
l && J(s);
|
|
265
|
+
}
|
|
298
266
|
};
|
|
299
267
|
};
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
268
|
+
};
|
|
269
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
270
|
+
return;
|
|
271
|
+
const t = {}, r = fr(this);
|
|
272
|
+
for (const i of this.$$s)
|
|
273
|
+
i in r && (t[i] = [e(i)]);
|
|
274
|
+
for (const i of this.attributes) {
|
|
275
|
+
const s = this.$$g_p(i.name);
|
|
276
|
+
s in this.$$d || (this.$$d[s] = ce(s, i.value, this.$$p_d, "toProp"));
|
|
277
|
+
}
|
|
278
|
+
for (const i in this.$$p_d)
|
|
279
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
280
|
+
this.$$c = new this.$$ctor({
|
|
281
|
+
target: this.shadowRoot || this,
|
|
282
|
+
props: {
|
|
283
|
+
...this.$$d,
|
|
284
|
+
$$slots: t,
|
|
285
|
+
$$scope: {
|
|
286
|
+
ctx: []
|
|
287
|
+
}
|
|
308
288
|
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
this.$$
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
this.$$r = !0;
|
|
322
|
-
for (const o in this.$$p_d)
|
|
323
|
-
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
324
|
-
const s = pe(
|
|
325
|
-
o,
|
|
326
|
-
this.$$d[o],
|
|
327
|
-
this.$$p_d,
|
|
328
|
-
"toAttribute"
|
|
329
|
-
);
|
|
330
|
-
s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
|
|
331
|
-
}
|
|
332
|
-
this.$$r = !1;
|
|
333
|
-
};
|
|
334
|
-
this.$$c.$$.after_update.push(i), i();
|
|
335
|
-
for (const o in this.$$l)
|
|
336
|
-
for (const s of this.$$l[o]) {
|
|
337
|
-
const a = this.$$c.$on(o, s);
|
|
338
|
-
this.$$l_u.set(s, a);
|
|
289
|
+
});
|
|
290
|
+
const n = () => {
|
|
291
|
+
this.$$r = !0;
|
|
292
|
+
for (const i in this.$$p_d)
|
|
293
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
294
|
+
const s = ce(
|
|
295
|
+
i,
|
|
296
|
+
this.$$d[i],
|
|
297
|
+
this.$$p_d,
|
|
298
|
+
"toAttribute"
|
|
299
|
+
);
|
|
300
|
+
s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
|
|
339
301
|
}
|
|
340
|
-
this.$$
|
|
341
|
-
}
|
|
342
|
-
|
|
302
|
+
this.$$r = !1;
|
|
303
|
+
};
|
|
304
|
+
this.$$c.$$.after_update.push(n), n();
|
|
305
|
+
for (const i in this.$$l)
|
|
306
|
+
for (const s of this.$$l[i]) {
|
|
307
|
+
const a = this.$$c.$on(i, s);
|
|
308
|
+
this.$$l_u.set(s, a);
|
|
309
|
+
}
|
|
310
|
+
this.$$l = {};
|
|
311
|
+
}
|
|
343
312
|
}
|
|
344
313
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
345
314
|
// and setting attributes through setAttribute etc, this is helpful
|
|
346
|
-
attributeChangedCallback(t, r
|
|
347
|
-
|
|
348
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = pe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
315
|
+
attributeChangedCallback(e, t, r) {
|
|
316
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ce(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
349
317
|
}
|
|
350
318
|
disconnectedCallback() {
|
|
351
319
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
352
320
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
353
321
|
});
|
|
354
322
|
}
|
|
355
|
-
$$g_p(
|
|
323
|
+
$$g_p(e) {
|
|
356
324
|
return Object.keys(this.$$p_d).find(
|
|
357
|
-
(
|
|
358
|
-
) ||
|
|
325
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
326
|
+
) || e;
|
|
359
327
|
}
|
|
360
328
|
});
|
|
361
|
-
function
|
|
362
|
-
|
|
363
|
-
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
329
|
+
function ce(e, t, r, n) {
|
|
330
|
+
const i = r[e]?.type;
|
|
364
331
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
365
332
|
return t;
|
|
366
333
|
if (n === "toAttribute")
|
|
@@ -371,7 +338,7 @@ function pe(e, t, r, n) {
|
|
|
371
338
|
case "Boolean":
|
|
372
339
|
return t ? "" : null;
|
|
373
340
|
case "Number":
|
|
374
|
-
return t
|
|
341
|
+
return t ?? null;
|
|
375
342
|
default:
|
|
376
343
|
return t;
|
|
377
344
|
}
|
|
@@ -388,59 +355,55 @@ function pe(e, t, r, n) {
|
|
|
388
355
|
return t;
|
|
389
356
|
}
|
|
390
357
|
}
|
|
391
|
-
function
|
|
392
|
-
let
|
|
358
|
+
function xr(e, t, r, n, i, s) {
|
|
359
|
+
let a = class extends Pt {
|
|
393
360
|
constructor() {
|
|
394
361
|
super(e, r, i), this.$$p_d = t;
|
|
395
362
|
}
|
|
396
363
|
static get observedAttributes() {
|
|
397
364
|
return Object.keys(t).map(
|
|
398
|
-
(
|
|
365
|
+
(o) => (t[o].attribute || o).toLowerCase()
|
|
399
366
|
);
|
|
400
367
|
}
|
|
401
368
|
};
|
|
402
|
-
return Object.keys(t).forEach((
|
|
403
|
-
Object.defineProperty(
|
|
369
|
+
return Object.keys(t).forEach((o) => {
|
|
370
|
+
Object.defineProperty(a.prototype, o, {
|
|
404
371
|
get() {
|
|
405
|
-
return this.$$c &&
|
|
372
|
+
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
406
373
|
},
|
|
407
|
-
set(
|
|
408
|
-
|
|
409
|
-
h = pe(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
|
|
374
|
+
set(l) {
|
|
375
|
+
l = ce(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
410
376
|
}
|
|
411
377
|
});
|
|
412
|
-
}), n.forEach((
|
|
413
|
-
Object.defineProperty(
|
|
378
|
+
}), n.forEach((o) => {
|
|
379
|
+
Object.defineProperty(a.prototype, o, {
|
|
414
380
|
get() {
|
|
415
|
-
|
|
416
|
-
return (h = this.$$c) == null ? void 0 : h[a];
|
|
381
|
+
return this.$$c?.[o];
|
|
417
382
|
}
|
|
418
383
|
});
|
|
419
384
|
}), e.element = /** @type {any} */
|
|
420
|
-
|
|
421
|
-
}
|
|
422
|
-
class
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
P(this, "$$set");
|
|
440
|
-
}
|
|
385
|
+
a, a;
|
|
386
|
+
}
|
|
387
|
+
class Sr {
|
|
388
|
+
/**
|
|
389
|
+
* ### PRIVATE API
|
|
390
|
+
*
|
|
391
|
+
* Do not use, may change at any time
|
|
392
|
+
*
|
|
393
|
+
* @type {any}
|
|
394
|
+
*/
|
|
395
|
+
$$ = void 0;
|
|
396
|
+
/**
|
|
397
|
+
* ### PRIVATE API
|
|
398
|
+
*
|
|
399
|
+
* Do not use, may change at any time
|
|
400
|
+
*
|
|
401
|
+
* @type {any}
|
|
402
|
+
*/
|
|
403
|
+
$$set = void 0;
|
|
441
404
|
/** @returns {void} */
|
|
442
405
|
$destroy() {
|
|
443
|
-
|
|
406
|
+
vr(this, 1), this.$destroy = B;
|
|
444
407
|
}
|
|
445
408
|
/**
|
|
446
409
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -449,8 +412,8 @@ class $r {
|
|
|
449
412
|
* @returns {() => void}
|
|
450
413
|
*/
|
|
451
414
|
$on(t, r) {
|
|
452
|
-
if (!
|
|
453
|
-
return
|
|
415
|
+
if (!ze(r))
|
|
416
|
+
return B;
|
|
454
417
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
455
418
|
return n.push(r), () => {
|
|
456
419
|
const i = n.indexOf(r);
|
|
@@ -462,22 +425,22 @@ class $r {
|
|
|
462
425
|
* @returns {void}
|
|
463
426
|
*/
|
|
464
427
|
$set(t) {
|
|
465
|
-
this.$$set && !
|
|
428
|
+
this.$$set && !ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
466
429
|
}
|
|
467
430
|
}
|
|
468
|
-
const
|
|
469
|
-
typeof window
|
|
470
|
-
var
|
|
471
|
-
return
|
|
431
|
+
const wr = "4";
|
|
432
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(wr);
|
|
433
|
+
var Ce = function(e, t) {
|
|
434
|
+
return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
472
435
|
r.__proto__ = n;
|
|
473
436
|
} || function(r, n) {
|
|
474
437
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
475
|
-
},
|
|
438
|
+
}, Ce(e, t);
|
|
476
439
|
};
|
|
477
|
-
function
|
|
440
|
+
function L(e, t) {
|
|
478
441
|
if (typeof t != "function" && t !== null)
|
|
479
442
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
480
|
-
|
|
443
|
+
Ce(e, t);
|
|
481
444
|
function r() {
|
|
482
445
|
this.constructor = e;
|
|
483
446
|
}
|
|
@@ -487,12 +450,12 @@ var g = function() {
|
|
|
487
450
|
return g = Object.assign || function(t) {
|
|
488
451
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
489
452
|
r = arguments[n];
|
|
490
|
-
for (var
|
|
453
|
+
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
491
454
|
}
|
|
492
455
|
return t;
|
|
493
456
|
}, g.apply(this, arguments);
|
|
494
457
|
};
|
|
495
|
-
function
|
|
458
|
+
function Tr(e, t) {
|
|
496
459
|
var r = {};
|
|
497
460
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
498
461
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -500,7 +463,7 @@ function Dr(e, t) {
|
|
|
500
463
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
501
464
|
return r;
|
|
502
465
|
}
|
|
503
|
-
function
|
|
466
|
+
function Me(e) {
|
|
504
467
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
505
468
|
if (r) return r.call(e);
|
|
506
469
|
if (e && typeof e.length == "number") return {
|
|
@@ -510,38 +473,38 @@ function Ue(e) {
|
|
|
510
473
|
};
|
|
511
474
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
512
475
|
}
|
|
513
|
-
function
|
|
476
|
+
function Re(e, t) {
|
|
514
477
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
515
478
|
if (!r) return e;
|
|
516
|
-
var n = r.call(e), i,
|
|
479
|
+
var n = r.call(e), i, s = [], a;
|
|
517
480
|
try {
|
|
518
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
519
|
-
} catch (
|
|
520
|
-
|
|
481
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) s.push(i.value);
|
|
482
|
+
} catch (o) {
|
|
483
|
+
a = { error: o };
|
|
521
484
|
} finally {
|
|
522
485
|
try {
|
|
523
486
|
i && !i.done && (r = n.return) && r.call(n);
|
|
524
487
|
} finally {
|
|
525
|
-
if (
|
|
488
|
+
if (a) throw a.error;
|
|
526
489
|
}
|
|
527
490
|
}
|
|
528
|
-
return
|
|
491
|
+
return s;
|
|
529
492
|
}
|
|
530
|
-
function
|
|
531
|
-
if (r || arguments.length === 2) for (var n = 0, i = t.length,
|
|
532
|
-
(
|
|
533
|
-
return e.concat(
|
|
493
|
+
function V(e, t, r) {
|
|
494
|
+
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
|
495
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
496
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
534
497
|
}
|
|
535
|
-
function
|
|
498
|
+
function I(e) {
|
|
536
499
|
return typeof e == "function";
|
|
537
500
|
}
|
|
538
|
-
function
|
|
501
|
+
function Bt(e) {
|
|
539
502
|
var t = function(n) {
|
|
540
503
|
Error.call(n), n.stack = new Error().stack;
|
|
541
504
|
}, r = e(t);
|
|
542
505
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
543
506
|
}
|
|
544
|
-
var
|
|
507
|
+
var we = Bt(function(e) {
|
|
545
508
|
return function(r) {
|
|
546
509
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
547
510
|
` + r.map(function(n, i) {
|
|
@@ -550,76 +513,76 @@ var He = Rt(function(e) {
|
|
|
550
513
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
551
514
|
};
|
|
552
515
|
});
|
|
553
|
-
function
|
|
516
|
+
function $e(e, t) {
|
|
554
517
|
if (e) {
|
|
555
518
|
var r = e.indexOf(t);
|
|
556
519
|
0 <= r && e.splice(r, 1);
|
|
557
520
|
}
|
|
558
521
|
}
|
|
559
|
-
var
|
|
522
|
+
var ye = function() {
|
|
560
523
|
function e(t) {
|
|
561
524
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
562
525
|
}
|
|
563
526
|
return e.prototype.unsubscribe = function() {
|
|
564
|
-
var t, r, n, i,
|
|
527
|
+
var t, r, n, i, s;
|
|
565
528
|
if (!this.closed) {
|
|
566
529
|
this.closed = !0;
|
|
567
|
-
var
|
|
568
|
-
if (
|
|
569
|
-
if (this._parentage = null, Array.isArray(
|
|
530
|
+
var a = this._parentage;
|
|
531
|
+
if (a)
|
|
532
|
+
if (this._parentage = null, Array.isArray(a))
|
|
570
533
|
try {
|
|
571
|
-
for (var
|
|
572
|
-
var u =
|
|
534
|
+
for (var o = Me(a), l = o.next(); !l.done; l = o.next()) {
|
|
535
|
+
var u = l.value;
|
|
573
536
|
u.remove(this);
|
|
574
537
|
}
|
|
575
|
-
} catch (
|
|
576
|
-
t = { error:
|
|
538
|
+
} catch (p) {
|
|
539
|
+
t = { error: p };
|
|
577
540
|
} finally {
|
|
578
541
|
try {
|
|
579
|
-
|
|
542
|
+
l && !l.done && (r = o.return) && r.call(o);
|
|
580
543
|
} finally {
|
|
581
544
|
if (t) throw t.error;
|
|
582
545
|
}
|
|
583
546
|
}
|
|
584
547
|
else
|
|
585
|
-
|
|
586
|
-
var
|
|
587
|
-
if (
|
|
548
|
+
a.remove(this);
|
|
549
|
+
var h = this.initialTeardown;
|
|
550
|
+
if (I(h))
|
|
588
551
|
try {
|
|
589
|
-
|
|
590
|
-
} catch (
|
|
591
|
-
|
|
552
|
+
h();
|
|
553
|
+
} catch (p) {
|
|
554
|
+
s = p instanceof we ? p.errors : [p];
|
|
592
555
|
}
|
|
593
556
|
var f = this._finalizers;
|
|
594
557
|
if (f) {
|
|
595
558
|
this._finalizers = null;
|
|
596
559
|
try {
|
|
597
|
-
for (var c =
|
|
598
|
-
var v =
|
|
560
|
+
for (var c = Me(f), d = c.next(); !d.done; d = c.next()) {
|
|
561
|
+
var v = d.value;
|
|
599
562
|
try {
|
|
600
|
-
|
|
601
|
-
} catch (
|
|
602
|
-
|
|
563
|
+
rt(v);
|
|
564
|
+
} catch (p) {
|
|
565
|
+
s = s ?? [], p instanceof we ? s = V(V([], Re(s)), Re(p.errors)) : s.push(p);
|
|
603
566
|
}
|
|
604
567
|
}
|
|
605
|
-
} catch (
|
|
606
|
-
n = { error:
|
|
568
|
+
} catch (p) {
|
|
569
|
+
n = { error: p };
|
|
607
570
|
} finally {
|
|
608
571
|
try {
|
|
609
|
-
|
|
572
|
+
d && !d.done && (i = c.return) && i.call(c);
|
|
610
573
|
} finally {
|
|
611
574
|
if (n) throw n.error;
|
|
612
575
|
}
|
|
613
576
|
}
|
|
614
577
|
}
|
|
615
|
-
if (
|
|
616
|
-
throw new
|
|
578
|
+
if (s)
|
|
579
|
+
throw new we(s);
|
|
617
580
|
}
|
|
618
581
|
}, e.prototype.add = function(t) {
|
|
619
582
|
var r;
|
|
620
583
|
if (t && t !== this)
|
|
621
584
|
if (this.closed)
|
|
622
|
-
|
|
585
|
+
rt(t);
|
|
623
586
|
else {
|
|
624
587
|
if (t instanceof e) {
|
|
625
588
|
if (t.closed || t._hasParent(this))
|
|
@@ -636,56 +599,56 @@ var ve = function() {
|
|
|
636
599
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
637
600
|
}, e.prototype._removeParent = function(t) {
|
|
638
601
|
var r = this._parentage;
|
|
639
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
602
|
+
r === t ? this._parentage = null : Array.isArray(r) && $e(r, t);
|
|
640
603
|
}, e.prototype.remove = function(t) {
|
|
641
604
|
var r = this._finalizers;
|
|
642
|
-
r &&
|
|
605
|
+
r && $e(r, t), t instanceof e && t._removeParent(this);
|
|
643
606
|
}, e.EMPTY = function() {
|
|
644
607
|
var t = new e();
|
|
645
608
|
return t.closed = !0, t;
|
|
646
609
|
}(), e;
|
|
647
|
-
}(),
|
|
648
|
-
function
|
|
649
|
-
return e instanceof
|
|
610
|
+
}(), At = ye.EMPTY;
|
|
611
|
+
function Ot(e) {
|
|
612
|
+
return e instanceof ye || e && "closed" in e && I(e.remove) && I(e.add) && I(e.unsubscribe);
|
|
650
613
|
}
|
|
651
|
-
function
|
|
652
|
-
|
|
614
|
+
function rt(e) {
|
|
615
|
+
I(e) ? e() : e.unsubscribe();
|
|
653
616
|
}
|
|
654
|
-
var
|
|
617
|
+
var Hr = {
|
|
655
618
|
onUnhandledError: null,
|
|
656
619
|
onStoppedNotification: null,
|
|
657
620
|
Promise: void 0,
|
|
658
621
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
659
622
|
useDeprecatedNextContext: !1
|
|
660
|
-
},
|
|
623
|
+
}, Pr = {
|
|
661
624
|
setTimeout: function(e, t) {
|
|
662
625
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
663
626
|
r[n - 2] = arguments[n];
|
|
664
|
-
return setTimeout.apply(void 0,
|
|
627
|
+
return setTimeout.apply(void 0, V([e, t], Re(r)));
|
|
665
628
|
},
|
|
666
629
|
clearTimeout: function(e) {
|
|
667
630
|
return clearTimeout(e);
|
|
668
631
|
},
|
|
669
632
|
delegate: void 0
|
|
670
633
|
};
|
|
671
|
-
function
|
|
672
|
-
|
|
634
|
+
function Br(e) {
|
|
635
|
+
Pr.setTimeout(function() {
|
|
673
636
|
throw e;
|
|
674
637
|
});
|
|
675
638
|
}
|
|
676
|
-
function
|
|
639
|
+
function nt() {
|
|
677
640
|
}
|
|
678
641
|
function de(e) {
|
|
679
642
|
e();
|
|
680
643
|
}
|
|
681
|
-
var
|
|
682
|
-
|
|
644
|
+
var It = function(e) {
|
|
645
|
+
L(t, e);
|
|
683
646
|
function t(r) {
|
|
684
647
|
var n = e.call(this) || this;
|
|
685
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
648
|
+
return n.isStopped = !1, r ? (n.destination = r, Ot(r) && r.add(n)) : n.destination = Ir, n;
|
|
686
649
|
}
|
|
687
650
|
return t.create = function(r, n, i) {
|
|
688
|
-
return new
|
|
651
|
+
return new Ue(r, n, i);
|
|
689
652
|
}, t.prototype.next = function(r) {
|
|
690
653
|
this.isStopped || this._next(r);
|
|
691
654
|
}, t.prototype.error = function(r) {
|
|
@@ -709,11 +672,7 @@ var Gt = function(e) {
|
|
|
709
672
|
this.unsubscribe();
|
|
710
673
|
}
|
|
711
674
|
}, t;
|
|
712
|
-
}(
|
|
713
|
-
function Pe(e, t) {
|
|
714
|
-
return jr.call(e, t);
|
|
715
|
-
}
|
|
716
|
-
var kr = function() {
|
|
675
|
+
}(ye), Ar = function() {
|
|
717
676
|
function e(t) {
|
|
718
677
|
this.partialObserver = t;
|
|
719
678
|
}
|
|
@@ -723,7 +682,7 @@ var kr = function() {
|
|
|
723
682
|
try {
|
|
724
683
|
r.next(t);
|
|
725
684
|
} catch (n) {
|
|
726
|
-
|
|
685
|
+
le(n);
|
|
727
686
|
}
|
|
728
687
|
}, e.prototype.error = function(t) {
|
|
729
688
|
var r = this.partialObserver;
|
|
@@ -731,68 +690,56 @@ var kr = function() {
|
|
|
731
690
|
try {
|
|
732
691
|
r.error(t);
|
|
733
692
|
} catch (n) {
|
|
734
|
-
|
|
693
|
+
le(n);
|
|
735
694
|
}
|
|
736
695
|
else
|
|
737
|
-
|
|
696
|
+
le(t);
|
|
738
697
|
}, e.prototype.complete = function() {
|
|
739
698
|
var t = this.partialObserver;
|
|
740
699
|
if (t.complete)
|
|
741
700
|
try {
|
|
742
701
|
t.complete();
|
|
743
702
|
} catch (r) {
|
|
744
|
-
|
|
703
|
+
le(r);
|
|
745
704
|
}
|
|
746
705
|
}, e;
|
|
747
|
-
}(),
|
|
748
|
-
|
|
706
|
+
}(), Ue = function(e) {
|
|
707
|
+
L(t, e);
|
|
749
708
|
function t(r, n, i) {
|
|
750
|
-
var
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
};
|
|
757
|
-
else {
|
|
758
|
-
var a;
|
|
759
|
-
o && Dt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
760
|
-
return o.unsubscribe();
|
|
761
|
-
}, s = {
|
|
762
|
-
next: r.next && Pe(r.next, a),
|
|
763
|
-
error: r.error && Pe(r.error, a),
|
|
764
|
-
complete: r.complete && Pe(r.complete, a)
|
|
765
|
-
}) : s = r;
|
|
766
|
-
}
|
|
767
|
-
return o.destination = new kr(s), o;
|
|
709
|
+
var s = e.call(this) || this, a;
|
|
710
|
+
return I(r) || !r ? a = {
|
|
711
|
+
next: r ?? void 0,
|
|
712
|
+
error: n ?? void 0,
|
|
713
|
+
complete: i ?? void 0
|
|
714
|
+
} : a = r, s.destination = new Ar(a), s;
|
|
768
715
|
}
|
|
769
716
|
return t;
|
|
770
|
-
}(
|
|
771
|
-
function
|
|
772
|
-
|
|
717
|
+
}(It);
|
|
718
|
+
function le(e) {
|
|
719
|
+
Br(e);
|
|
773
720
|
}
|
|
774
|
-
function
|
|
721
|
+
function Or(e) {
|
|
775
722
|
throw e;
|
|
776
723
|
}
|
|
777
|
-
var
|
|
724
|
+
var Ir = {
|
|
778
725
|
closed: !0,
|
|
779
|
-
next:
|
|
780
|
-
error:
|
|
781
|
-
complete:
|
|
782
|
-
},
|
|
726
|
+
next: nt,
|
|
727
|
+
error: Or,
|
|
728
|
+
complete: nt
|
|
729
|
+
}, Nr = function() {
|
|
783
730
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
784
731
|
}();
|
|
785
|
-
function
|
|
732
|
+
function Lr(e) {
|
|
786
733
|
return e;
|
|
787
734
|
}
|
|
788
|
-
function
|
|
789
|
-
return e.length === 0 ?
|
|
735
|
+
function Cr(e) {
|
|
736
|
+
return e.length === 0 ? Lr : e.length === 1 ? e[0] : function(r) {
|
|
790
737
|
return e.reduce(function(n, i) {
|
|
791
738
|
return i(n);
|
|
792
739
|
}, r);
|
|
793
740
|
};
|
|
794
741
|
}
|
|
795
|
-
var
|
|
742
|
+
var it = function() {
|
|
796
743
|
function e(t) {
|
|
797
744
|
t && (this._subscribe = t);
|
|
798
745
|
}
|
|
@@ -800,11 +747,11 @@ var ct = function() {
|
|
|
800
747
|
var r = new e();
|
|
801
748
|
return r.source = this, r.operator = t, r;
|
|
802
749
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
803
|
-
var i = this,
|
|
750
|
+
var i = this, s = Rr(t) ? t : new Ue(t, r, n);
|
|
804
751
|
return de(function() {
|
|
805
|
-
var
|
|
806
|
-
|
|
807
|
-
}),
|
|
752
|
+
var a = i, o = a.operator, l = a.source;
|
|
753
|
+
s.add(o ? o.call(s, l) : l ? i._subscribe(s) : i._trySubscribe(s));
|
|
754
|
+
}), s;
|
|
808
755
|
}, e.prototype._trySubscribe = function(t) {
|
|
809
756
|
try {
|
|
810
757
|
return this._subscribe(t);
|
|
@@ -813,87 +760,87 @@ var ct = function() {
|
|
|
813
760
|
}
|
|
814
761
|
}, e.prototype.forEach = function(t, r) {
|
|
815
762
|
var n = this;
|
|
816
|
-
return r =
|
|
817
|
-
var
|
|
818
|
-
next: function(
|
|
763
|
+
return r = st(r), new r(function(i, s) {
|
|
764
|
+
var a = new Ue({
|
|
765
|
+
next: function(o) {
|
|
819
766
|
try {
|
|
820
|
-
t(
|
|
821
|
-
} catch (
|
|
822
|
-
|
|
767
|
+
t(o);
|
|
768
|
+
} catch (l) {
|
|
769
|
+
s(l), a.unsubscribe();
|
|
823
770
|
}
|
|
824
771
|
},
|
|
825
|
-
error:
|
|
772
|
+
error: s,
|
|
826
773
|
complete: i
|
|
827
774
|
});
|
|
828
|
-
n.subscribe(
|
|
775
|
+
n.subscribe(a);
|
|
829
776
|
});
|
|
830
777
|
}, e.prototype._subscribe = function(t) {
|
|
831
778
|
var r;
|
|
832
779
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
833
|
-
}, e.prototype[
|
|
780
|
+
}, e.prototype[Nr] = function() {
|
|
834
781
|
return this;
|
|
835
782
|
}, e.prototype.pipe = function() {
|
|
836
783
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
837
784
|
t[r] = arguments[r];
|
|
838
|
-
return
|
|
785
|
+
return Cr(t)(this);
|
|
839
786
|
}, e.prototype.toPromise = function(t) {
|
|
840
787
|
var r = this;
|
|
841
|
-
return t =
|
|
842
|
-
var
|
|
843
|
-
r.subscribe(function(
|
|
844
|
-
return
|
|
845
|
-
}, function(
|
|
846
|
-
return i(
|
|
788
|
+
return t = st(t), new t(function(n, i) {
|
|
789
|
+
var s;
|
|
790
|
+
r.subscribe(function(a) {
|
|
791
|
+
return s = a;
|
|
792
|
+
}, function(a) {
|
|
793
|
+
return i(a);
|
|
847
794
|
}, function() {
|
|
848
|
-
return n(
|
|
795
|
+
return n(s);
|
|
849
796
|
});
|
|
850
797
|
});
|
|
851
798
|
}, e.create = function(t) {
|
|
852
799
|
return new e(t);
|
|
853
800
|
}, e;
|
|
854
801
|
}();
|
|
855
|
-
function
|
|
802
|
+
function st(e) {
|
|
856
803
|
var t;
|
|
857
|
-
return (t = e
|
|
804
|
+
return (t = e ?? Hr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
858
805
|
}
|
|
859
|
-
function
|
|
860
|
-
return e &&
|
|
806
|
+
function Mr(e) {
|
|
807
|
+
return e && I(e.next) && I(e.error) && I(e.complete);
|
|
861
808
|
}
|
|
862
|
-
function
|
|
863
|
-
return e && e instanceof
|
|
809
|
+
function Rr(e) {
|
|
810
|
+
return e && e instanceof It || Mr(e) && Ot(e);
|
|
864
811
|
}
|
|
865
|
-
var
|
|
812
|
+
var $r = Bt(function(e) {
|
|
866
813
|
return function() {
|
|
867
814
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
868
815
|
};
|
|
869
|
-
}),
|
|
870
|
-
|
|
816
|
+
}), Nt = function(e) {
|
|
817
|
+
L(t, e);
|
|
871
818
|
function t() {
|
|
872
819
|
var r = e.call(this) || this;
|
|
873
820
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
874
821
|
}
|
|
875
822
|
return t.prototype.lift = function(r) {
|
|
876
|
-
var n = new
|
|
823
|
+
var n = new ot(this, this);
|
|
877
824
|
return n.operator = r, n;
|
|
878
825
|
}, t.prototype._throwIfClosed = function() {
|
|
879
826
|
if (this.closed)
|
|
880
|
-
throw new
|
|
827
|
+
throw new $r();
|
|
881
828
|
}, t.prototype.next = function(r) {
|
|
882
829
|
var n = this;
|
|
883
830
|
de(function() {
|
|
884
|
-
var i,
|
|
831
|
+
var i, s;
|
|
885
832
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
886
833
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
887
834
|
try {
|
|
888
|
-
for (var
|
|
889
|
-
var
|
|
890
|
-
|
|
835
|
+
for (var a = Me(n.currentObservers), o = a.next(); !o.done; o = a.next()) {
|
|
836
|
+
var l = o.value;
|
|
837
|
+
l.next(r);
|
|
891
838
|
}
|
|
892
839
|
} catch (u) {
|
|
893
840
|
i = { error: u };
|
|
894
841
|
} finally {
|
|
895
842
|
try {
|
|
896
|
-
|
|
843
|
+
o && !o.done && (s = a.return) && s.call(a);
|
|
897
844
|
} finally {
|
|
898
845
|
if (i) throw i.error;
|
|
899
846
|
}
|
|
@@ -932,21 +879,21 @@ var Yr = Rt(function(e) {
|
|
|
932
879
|
}, t.prototype._subscribe = function(r) {
|
|
933
880
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
934
881
|
}, t.prototype._innerSubscribe = function(r) {
|
|
935
|
-
var n = this, i = this,
|
|
936
|
-
return
|
|
937
|
-
n.currentObservers = null,
|
|
882
|
+
var n = this, i = this, s = i.hasError, a = i.isStopped, o = i.observers;
|
|
883
|
+
return s || a ? At : (this.currentObservers = null, o.push(r), new ye(function() {
|
|
884
|
+
n.currentObservers = null, $e(o, r);
|
|
938
885
|
}));
|
|
939
886
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
940
|
-
var n = this, i = n.hasError,
|
|
941
|
-
i ? r.error(
|
|
887
|
+
var n = this, i = n.hasError, s = n.thrownError, a = n.isStopped;
|
|
888
|
+
i ? r.error(s) : a && r.complete();
|
|
942
889
|
}, t.prototype.asObservable = function() {
|
|
943
|
-
var r = new
|
|
890
|
+
var r = new it();
|
|
944
891
|
return r.source = this, r;
|
|
945
892
|
}, t.create = function(r, n) {
|
|
946
|
-
return new
|
|
893
|
+
return new ot(r, n);
|
|
947
894
|
}, t;
|
|
948
|
-
}(
|
|
949
|
-
|
|
895
|
+
}(it), ot = function(e) {
|
|
896
|
+
L(t, e);
|
|
950
897
|
function t(r, n) {
|
|
951
898
|
var i = e.call(this) || this;
|
|
952
899
|
return i.destination = r, i.source = n, i;
|
|
@@ -962,230 +909,232 @@ var Yr = Rt(function(e) {
|
|
|
962
909
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
963
910
|
}, t.prototype._subscribe = function(r) {
|
|
964
911
|
var n, i;
|
|
965
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
912
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : At;
|
|
966
913
|
}, t;
|
|
967
|
-
}(
|
|
914
|
+
}(Nt), Lt = {
|
|
968
915
|
now: function() {
|
|
969
|
-
return (
|
|
916
|
+
return (Lt.delegate || Date).now();
|
|
970
917
|
},
|
|
971
918
|
delegate: void 0
|
|
972
|
-
},
|
|
973
|
-
|
|
919
|
+
}, Ur = function(e) {
|
|
920
|
+
L(t, e);
|
|
974
921
|
function t(r, n, i) {
|
|
975
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
976
|
-
var
|
|
977
|
-
return
|
|
922
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Lt);
|
|
923
|
+
var s = e.call(this) || this;
|
|
924
|
+
return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
|
|
978
925
|
}
|
|
979
926
|
return t.prototype.next = function(r) {
|
|
980
|
-
var n = this, i = n.isStopped,
|
|
981
|
-
i || (
|
|
927
|
+
var n = this, i = n.isStopped, s = n._buffer, a = n._infiniteTimeWindow, o = n._timestampProvider, l = n._windowTime;
|
|
928
|
+
i || (s.push(r), !a && s.push(o.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
982
929
|
}, t.prototype._subscribe = function(r) {
|
|
983
930
|
this._throwIfClosed(), this._trimBuffer();
|
|
984
|
-
for (var n = this._innerSubscribe(r), i = this,
|
|
985
|
-
r.next(
|
|
931
|
+
for (var n = this._innerSubscribe(r), i = this, s = i._infiniteTimeWindow, a = i._buffer, o = a.slice(), l = 0; l < o.length && !r.closed; l += s ? 1 : 2)
|
|
932
|
+
r.next(o[l]);
|
|
986
933
|
return this._checkFinalizedStatuses(r), n;
|
|
987
934
|
}, t.prototype._trimBuffer = function() {
|
|
988
|
-
var r = this, n = r._bufferSize, i = r._timestampProvider,
|
|
989
|
-
if (n < 1 / 0 &&
|
|
990
|
-
for (var
|
|
991
|
-
u =
|
|
992
|
-
u &&
|
|
935
|
+
var r = this, n = r._bufferSize, i = r._timestampProvider, s = r._buffer, a = r._infiniteTimeWindow, o = (a ? 1 : 2) * n;
|
|
936
|
+
if (n < 1 / 0 && o < s.length && s.splice(0, s.length - o), !a) {
|
|
937
|
+
for (var l = i.now(), u = 0, h = 1; h < s.length && s[h] <= l; h += 2)
|
|
938
|
+
u = h;
|
|
939
|
+
u && s.splice(0, u + 1);
|
|
993
940
|
}
|
|
994
941
|
}, t;
|
|
995
|
-
}(
|
|
996
|
-
const
|
|
997
|
-
if (
|
|
998
|
-
const r = new
|
|
999
|
-
|
|
942
|
+
}(Nt);
|
|
943
|
+
const at = [], ut = {}, Dr = (e, t = 0) => {
|
|
944
|
+
if (at.indexOf(e) == -1) {
|
|
945
|
+
const r = new Ur(t);
|
|
946
|
+
ut[e] = r, at.push(e);
|
|
1000
947
|
}
|
|
1001
|
-
return
|
|
1002
|
-
},
|
|
1003
|
-
function
|
|
948
|
+
return ut[e];
|
|
949
|
+
}, j = [];
|
|
950
|
+
function Gr(e, t) {
|
|
1004
951
|
return {
|
|
1005
|
-
subscribe:
|
|
952
|
+
subscribe: ve(e, t).subscribe
|
|
1006
953
|
};
|
|
1007
954
|
}
|
|
1008
|
-
function
|
|
955
|
+
function ve(e, t = B) {
|
|
1009
956
|
let r;
|
|
1010
957
|
const n = /* @__PURE__ */ new Set();
|
|
1011
|
-
function i(
|
|
1012
|
-
if (
|
|
1013
|
-
const
|
|
958
|
+
function i(o) {
|
|
959
|
+
if (Tt(e, o) && (e = o, r)) {
|
|
960
|
+
const l = !j.length;
|
|
1014
961
|
for (const u of n)
|
|
1015
|
-
u[1](),
|
|
1016
|
-
if (
|
|
1017
|
-
for (let u = 0; u <
|
|
1018
|
-
|
|
1019
|
-
|
|
962
|
+
u[1](), j.push(u, e);
|
|
963
|
+
if (l) {
|
|
964
|
+
for (let u = 0; u < j.length; u += 2)
|
|
965
|
+
j[u][0](j[u + 1]);
|
|
966
|
+
j.length = 0;
|
|
1020
967
|
}
|
|
1021
968
|
}
|
|
1022
969
|
}
|
|
1023
|
-
function o
|
|
1024
|
-
i(
|
|
970
|
+
function s(o) {
|
|
971
|
+
i(o(e));
|
|
1025
972
|
}
|
|
1026
|
-
function
|
|
1027
|
-
const u = [
|
|
1028
|
-
return n.add(u), n.size === 1 && (r = t(i,
|
|
973
|
+
function a(o, l = B) {
|
|
974
|
+
const u = [o, l];
|
|
975
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || B), o(e), () => {
|
|
1029
976
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1030
977
|
};
|
|
1031
978
|
}
|
|
1032
|
-
return { set: i, update:
|
|
979
|
+
return { set: i, update: s, subscribe: a };
|
|
1033
980
|
}
|
|
1034
|
-
function
|
|
981
|
+
function Y(e, t, r) {
|
|
1035
982
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1036
983
|
if (!i.every(Boolean))
|
|
1037
984
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1038
|
-
const
|
|
1039
|
-
return
|
|
1040
|
-
let
|
|
985
|
+
const s = t.length < 2;
|
|
986
|
+
return Gr(r, (a, o) => {
|
|
987
|
+
let l = !1;
|
|
1041
988
|
const u = [];
|
|
1042
|
-
let
|
|
989
|
+
let h = 0, f = B;
|
|
1043
990
|
const c = () => {
|
|
1044
|
-
if (
|
|
991
|
+
if (h)
|
|
1045
992
|
return;
|
|
1046
993
|
f();
|
|
1047
|
-
const v = t(n ? u[0] : u,
|
|
1048
|
-
|
|
1049
|
-
},
|
|
1050
|
-
(v,
|
|
994
|
+
const v = t(n ? u[0] : u, a, o);
|
|
995
|
+
s ? a(v) : f = ze(v) ? v : B;
|
|
996
|
+
}, d = i.map(
|
|
997
|
+
(v, p) => Ht(
|
|
1051
998
|
v,
|
|
1052
999
|
(S) => {
|
|
1053
|
-
u[
|
|
1000
|
+
u[p] = S, h &= ~(1 << p), l && c();
|
|
1054
1001
|
},
|
|
1055
1002
|
() => {
|
|
1056
|
-
|
|
1003
|
+
h |= 1 << p;
|
|
1057
1004
|
}
|
|
1058
1005
|
)
|
|
1059
1006
|
);
|
|
1060
|
-
return
|
|
1061
|
-
se(
|
|
1007
|
+
return l = !0, c(), function() {
|
|
1008
|
+
se(d), f(), l = !1;
|
|
1062
1009
|
};
|
|
1063
1010
|
});
|
|
1064
1011
|
}
|
|
1065
|
-
function
|
|
1066
|
-
return e
|
|
1012
|
+
function Fr(e) {
|
|
1013
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1067
1014
|
}
|
|
1068
|
-
var
|
|
1069
|
-
return
|
|
1015
|
+
var jr = function(t) {
|
|
1016
|
+
return kr(t) && !Wr(t);
|
|
1070
1017
|
};
|
|
1071
|
-
function
|
|
1018
|
+
function kr(e) {
|
|
1072
1019
|
return !!e && typeof e == "object";
|
|
1073
1020
|
}
|
|
1074
|
-
function
|
|
1021
|
+
function Wr(e) {
|
|
1075
1022
|
var t = Object.prototype.toString.call(e);
|
|
1076
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1023
|
+
return t === "[object RegExp]" || t === "[object Date]" || zr(e);
|
|
1077
1024
|
}
|
|
1078
|
-
var
|
|
1079
|
-
function
|
|
1080
|
-
return e.$$typeof ===
|
|
1025
|
+
var Vr = typeof Symbol == "function" && Symbol.for, Xr = Vr ? Symbol.for("react.element") : 60103;
|
|
1026
|
+
function zr(e) {
|
|
1027
|
+
return e.$$typeof === Xr;
|
|
1081
1028
|
}
|
|
1082
|
-
function
|
|
1029
|
+
function Zr(e) {
|
|
1083
1030
|
return Array.isArray(e) ? [] : {};
|
|
1084
1031
|
}
|
|
1085
|
-
function
|
|
1086
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1032
|
+
function ne(e, t) {
|
|
1033
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? X(Zr(e), e, t) : e;
|
|
1087
1034
|
}
|
|
1088
|
-
function
|
|
1035
|
+
function Qr(e, t, r) {
|
|
1089
1036
|
return e.concat(t).map(function(n) {
|
|
1090
|
-
return
|
|
1037
|
+
return ne(n, r);
|
|
1091
1038
|
});
|
|
1092
1039
|
}
|
|
1093
|
-
function
|
|
1040
|
+
function Jr(e, t) {
|
|
1094
1041
|
if (!t.customMerge)
|
|
1095
|
-
return
|
|
1042
|
+
return X;
|
|
1096
1043
|
var r = t.customMerge(e);
|
|
1097
|
-
return typeof r == "function" ? r :
|
|
1044
|
+
return typeof r == "function" ? r : X;
|
|
1098
1045
|
}
|
|
1099
|
-
function
|
|
1046
|
+
function Yr(e) {
|
|
1100
1047
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1101
1048
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1102
1049
|
}) : [];
|
|
1103
1050
|
}
|
|
1104
|
-
function
|
|
1105
|
-
return Object.keys(e).concat(
|
|
1051
|
+
function ht(e) {
|
|
1052
|
+
return Object.keys(e).concat(Yr(e));
|
|
1106
1053
|
}
|
|
1107
|
-
function
|
|
1054
|
+
function Ct(e, t) {
|
|
1108
1055
|
try {
|
|
1109
1056
|
return t in e;
|
|
1110
|
-
} catch
|
|
1057
|
+
} catch {
|
|
1111
1058
|
return !1;
|
|
1112
1059
|
}
|
|
1113
1060
|
}
|
|
1114
|
-
function
|
|
1115
|
-
return
|
|
1061
|
+
function qr(e, t) {
|
|
1062
|
+
return Ct(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1116
1063
|
}
|
|
1117
|
-
function
|
|
1064
|
+
function Kr(e, t, r) {
|
|
1118
1065
|
var n = {};
|
|
1119
|
-
return r.isMergeableObject(e) &&
|
|
1120
|
-
n[i] =
|
|
1121
|
-
}),
|
|
1122
|
-
|
|
1066
|
+
return r.isMergeableObject(e) && ht(e).forEach(function(i) {
|
|
1067
|
+
n[i] = ne(e[i], r);
|
|
1068
|
+
}), ht(t).forEach(function(i) {
|
|
1069
|
+
qr(e, i) || (Ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = Jr(i, r)(e[i], t[i], r) : n[i] = ne(t[i], r));
|
|
1123
1070
|
}), n;
|
|
1124
1071
|
}
|
|
1125
|
-
function
|
|
1126
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1127
|
-
var n = Array.isArray(t), i = Array.isArray(e),
|
|
1128
|
-
return
|
|
1072
|
+
function X(e, t, r) {
|
|
1073
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Qr, r.isMergeableObject = r.isMergeableObject || jr, r.cloneUnlessOtherwiseSpecified = ne;
|
|
1074
|
+
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
1075
|
+
return s ? n ? r.arrayMerge(e, t, r) : Kr(e, t, r) : ne(t, r);
|
|
1129
1076
|
}
|
|
1130
|
-
|
|
1077
|
+
X.all = function(t, r) {
|
|
1131
1078
|
if (!Array.isArray(t))
|
|
1132
1079
|
throw new Error("first argument should be an array");
|
|
1133
1080
|
return t.reduce(function(n, i) {
|
|
1134
|
-
return
|
|
1081
|
+
return X(n, i, r);
|
|
1135
1082
|
}, {});
|
|
1136
1083
|
};
|
|
1137
|
-
var
|
|
1138
|
-
const
|
|
1139
|
-
function
|
|
1140
|
-
var r = t && t.cache ? t.cache :
|
|
1084
|
+
var en = X, tn = en;
|
|
1085
|
+
const rn = /* @__PURE__ */ Fr(tn);
|
|
1086
|
+
function Te(e, t) {
|
|
1087
|
+
var r = t && t.cache ? t.cache : ln, n = t && t.serializer ? t.serializer : un, i = t && t.strategy ? t.strategy : sn;
|
|
1141
1088
|
return i(e, {
|
|
1142
1089
|
cache: r,
|
|
1143
1090
|
serializer: n
|
|
1144
1091
|
});
|
|
1145
1092
|
}
|
|
1146
|
-
function
|
|
1093
|
+
function nn(e) {
|
|
1147
1094
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1148
1095
|
}
|
|
1149
|
-
function
|
|
1150
|
-
var i =
|
|
1151
|
-
return typeof
|
|
1096
|
+
function Mt(e, t, r, n) {
|
|
1097
|
+
var i = nn(n) ? n : r(n), s = t.get(i);
|
|
1098
|
+
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
1152
1099
|
}
|
|
1153
|
-
function
|
|
1154
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n),
|
|
1155
|
-
return typeof
|
|
1100
|
+
function Rt(e, t, r) {
|
|
1101
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
1102
|
+
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
1156
1103
|
}
|
|
1157
|
-
function
|
|
1104
|
+
function Je(e, t, r, n, i) {
|
|
1158
1105
|
return r.bind(t, e, n, i);
|
|
1159
1106
|
}
|
|
1160
|
-
function
|
|
1161
|
-
var r = e.length === 1 ?
|
|
1162
|
-
return
|
|
1107
|
+
function sn(e, t) {
|
|
1108
|
+
var r = e.length === 1 ? Mt : Rt;
|
|
1109
|
+
return Je(e, this, r, t.cache.create(), t.serializer);
|
|
1163
1110
|
}
|
|
1164
|
-
function
|
|
1165
|
-
return
|
|
1111
|
+
function on(e, t) {
|
|
1112
|
+
return Je(e, this, Rt, t.cache.create(), t.serializer);
|
|
1166
1113
|
}
|
|
1167
|
-
function
|
|
1168
|
-
return
|
|
1114
|
+
function an(e, t) {
|
|
1115
|
+
return Je(e, this, Mt, t.cache.create(), t.serializer);
|
|
1169
1116
|
}
|
|
1170
|
-
var
|
|
1117
|
+
var un = function() {
|
|
1171
1118
|
return JSON.stringify(arguments);
|
|
1172
|
-
}
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1119
|
+
}, hn = (
|
|
1120
|
+
/** @class */
|
|
1121
|
+
function() {
|
|
1122
|
+
function e() {
|
|
1123
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1124
|
+
}
|
|
1125
|
+
return e.prototype.get = function(t) {
|
|
1126
|
+
return this.cache[t];
|
|
1127
|
+
}, e.prototype.set = function(t, r) {
|
|
1128
|
+
this.cache[t] = r;
|
|
1129
|
+
}, e;
|
|
1130
|
+
}()
|
|
1131
|
+
), ln = {
|
|
1183
1132
|
create: function() {
|
|
1184
|
-
return new
|
|
1133
|
+
return new hn();
|
|
1185
1134
|
}
|
|
1186
|
-
},
|
|
1187
|
-
variadic:
|
|
1188
|
-
monadic:
|
|
1135
|
+
}, He = {
|
|
1136
|
+
variadic: on,
|
|
1137
|
+
monadic: an
|
|
1189
1138
|
}, m;
|
|
1190
1139
|
(function(e) {
|
|
1191
1140
|
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";
|
|
@@ -1194,47 +1143,47 @@ var _;
|
|
|
1194
1143
|
(function(e) {
|
|
1195
1144
|
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";
|
|
1196
1145
|
})(_ || (_ = {}));
|
|
1197
|
-
var
|
|
1146
|
+
var z;
|
|
1198
1147
|
(function(e) {
|
|
1199
1148
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1200
|
-
})(
|
|
1201
|
-
function
|
|
1149
|
+
})(z || (z = {}));
|
|
1150
|
+
function lt(e) {
|
|
1202
1151
|
return e.type === _.literal;
|
|
1203
1152
|
}
|
|
1204
|
-
function
|
|
1153
|
+
function fn(e) {
|
|
1205
1154
|
return e.type === _.argument;
|
|
1206
1155
|
}
|
|
1207
|
-
function
|
|
1156
|
+
function $t(e) {
|
|
1208
1157
|
return e.type === _.number;
|
|
1209
1158
|
}
|
|
1210
|
-
function
|
|
1159
|
+
function Ut(e) {
|
|
1211
1160
|
return e.type === _.date;
|
|
1212
1161
|
}
|
|
1213
|
-
function
|
|
1162
|
+
function Dt(e) {
|
|
1214
1163
|
return e.type === _.time;
|
|
1215
1164
|
}
|
|
1216
|
-
function
|
|
1165
|
+
function Gt(e) {
|
|
1217
1166
|
return e.type === _.select;
|
|
1218
1167
|
}
|
|
1219
|
-
function
|
|
1168
|
+
function Ft(e) {
|
|
1220
1169
|
return e.type === _.plural;
|
|
1221
1170
|
}
|
|
1222
|
-
function
|
|
1171
|
+
function cn(e) {
|
|
1223
1172
|
return e.type === _.pound;
|
|
1224
1173
|
}
|
|
1225
|
-
function
|
|
1174
|
+
function jt(e) {
|
|
1226
1175
|
return e.type === _.tag;
|
|
1227
1176
|
}
|
|
1228
|
-
function
|
|
1229
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1177
|
+
function kt(e) {
|
|
1178
|
+
return !!(e && typeof e == "object" && e.type === z.number);
|
|
1230
1179
|
}
|
|
1231
|
-
function
|
|
1232
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1180
|
+
function De(e) {
|
|
1181
|
+
return !!(e && typeof e == "object" && e.type === z.dateTime);
|
|
1233
1182
|
}
|
|
1234
|
-
var
|
|
1235
|
-
function
|
|
1183
|
+
var Wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, dn = /(?:[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;
|
|
1184
|
+
function pn(e) {
|
|
1236
1185
|
var t = {};
|
|
1237
|
-
return e.replace(
|
|
1186
|
+
return e.replace(dn, function(r) {
|
|
1238
1187
|
var n = r.length;
|
|
1239
1188
|
switch (r[0]) {
|
|
1240
1189
|
case "G":
|
|
@@ -1323,36 +1272,36 @@ function Pn(e) {
|
|
|
1323
1272
|
return "";
|
|
1324
1273
|
}), t;
|
|
1325
1274
|
}
|
|
1326
|
-
var
|
|
1327
|
-
function
|
|
1275
|
+
var mn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1276
|
+
function bn(e) {
|
|
1328
1277
|
if (e.length === 0)
|
|
1329
1278
|
throw new Error("Number skeleton cannot be empty");
|
|
1330
|
-
for (var t = e.split(
|
|
1279
|
+
for (var t = e.split(mn).filter(function(c) {
|
|
1331
1280
|
return c.length > 0;
|
|
1332
1281
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1333
|
-
var
|
|
1334
|
-
if (
|
|
1282
|
+
var s = i[n], a = s.split("/");
|
|
1283
|
+
if (a.length === 0)
|
|
1335
1284
|
throw new Error("Invalid number skeleton");
|
|
1336
|
-
for (var
|
|
1337
|
-
var f =
|
|
1285
|
+
for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1286
|
+
var f = h[u];
|
|
1338
1287
|
if (f.length === 0)
|
|
1339
1288
|
throw new Error("Invalid number skeleton");
|
|
1340
1289
|
}
|
|
1341
|
-
r.push({ stem:
|
|
1290
|
+
r.push({ stem: o, options: l });
|
|
1342
1291
|
}
|
|
1343
1292
|
return r;
|
|
1344
1293
|
}
|
|
1345
|
-
function
|
|
1294
|
+
function gn(e) {
|
|
1346
1295
|
return e.replace(/^(.*?)-/, "");
|
|
1347
1296
|
}
|
|
1348
|
-
var
|
|
1349
|
-
function
|
|
1297
|
+
var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vt = /^(@+)?(\+|#+)?[rs]?$/g, yn = /(\*)(0+)|(#+)(0+)|(0+)/g, Xt = /^(0+)$/;
|
|
1298
|
+
function ct(e) {
|
|
1350
1299
|
var t = {};
|
|
1351
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1300
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vt, function(r, n, i) {
|
|
1352
1301
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1353
1302
|
}), t;
|
|
1354
1303
|
}
|
|
1355
|
-
function
|
|
1304
|
+
function zt(e) {
|
|
1356
1305
|
switch (e) {
|
|
1357
1306
|
case "sign-auto":
|
|
1358
1307
|
return {
|
|
@@ -1392,7 +1341,7 @@ function rr(e) {
|
|
|
1392
1341
|
};
|
|
1393
1342
|
}
|
|
1394
1343
|
}
|
|
1395
|
-
function
|
|
1344
|
+
function vn(e) {
|
|
1396
1345
|
var t;
|
|
1397
1346
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1398
1347
|
notation: "engineering"
|
|
@@ -1400,17 +1349,17 @@ function Nn(e) {
|
|
|
1400
1349
|
notation: "scientific"
|
|
1401
1350
|
}, e = e.slice(1)), t) {
|
|
1402
1351
|
var r = e.slice(0, 2);
|
|
1403
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1352
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Xt.test(e))
|
|
1404
1353
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1405
1354
|
t.minimumIntegerDigits = e.length;
|
|
1406
1355
|
}
|
|
1407
1356
|
return t;
|
|
1408
1357
|
}
|
|
1409
|
-
function
|
|
1410
|
-
var t = {}, r =
|
|
1358
|
+
function dt(e) {
|
|
1359
|
+
var t = {}, r = zt(e);
|
|
1411
1360
|
return r || t;
|
|
1412
1361
|
}
|
|
1413
|
-
function
|
|
1362
|
+
function _n(e) {
|
|
1414
1363
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1415
1364
|
var i = n[r];
|
|
1416
1365
|
switch (i.stem) {
|
|
@@ -1434,7 +1383,7 @@ function Ln(e) {
|
|
|
1434
1383
|
continue;
|
|
1435
1384
|
case "measure-unit":
|
|
1436
1385
|
case "unit":
|
|
1437
|
-
t.style = "unit", t.unit =
|
|
1386
|
+
t.style = "unit", t.unit = gn(i.options[0]);
|
|
1438
1387
|
continue;
|
|
1439
1388
|
case "compact-short":
|
|
1440
1389
|
case "K":
|
|
@@ -1445,13 +1394,13 @@ function Ln(e) {
|
|
|
1445
1394
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1446
1395
|
continue;
|
|
1447
1396
|
case "scientific":
|
|
1448
|
-
t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(
|
|
1449
|
-
return g(g({},
|
|
1397
|
+
t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1398
|
+
return g(g({}, l), dt(u));
|
|
1450
1399
|
}, {}));
|
|
1451
1400
|
continue;
|
|
1452
1401
|
case "engineering":
|
|
1453
|
-
t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(
|
|
1454
|
-
return g(g({},
|
|
1402
|
+
t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1403
|
+
return g(g({}, l), dt(u));
|
|
1455
1404
|
}, {}));
|
|
1456
1405
|
continue;
|
|
1457
1406
|
case "notation-simple":
|
|
@@ -1496,45 +1445,45 @@ function Ln(e) {
|
|
|
1496
1445
|
case "integer-width":
|
|
1497
1446
|
if (i.options.length > 1)
|
|
1498
1447
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1499
|
-
i.options[0].replace(
|
|
1448
|
+
i.options[0].replace(yn, function(l, u, h, f, c, d) {
|
|
1500
1449
|
if (u)
|
|
1501
|
-
t.minimumIntegerDigits =
|
|
1450
|
+
t.minimumIntegerDigits = h.length;
|
|
1502
1451
|
else {
|
|
1503
1452
|
if (f && c)
|
|
1504
1453
|
throw new Error("We currently do not support maximum integer digits");
|
|
1505
|
-
if (
|
|
1454
|
+
if (d)
|
|
1506
1455
|
throw new Error("We currently do not support exact integer digits");
|
|
1507
1456
|
}
|
|
1508
1457
|
return "";
|
|
1509
1458
|
});
|
|
1510
1459
|
continue;
|
|
1511
1460
|
}
|
|
1512
|
-
if (
|
|
1461
|
+
if (Xt.test(i.stem)) {
|
|
1513
1462
|
t.minimumIntegerDigits = i.stem.length;
|
|
1514
1463
|
continue;
|
|
1515
1464
|
}
|
|
1516
|
-
if (
|
|
1465
|
+
if (ft.test(i.stem)) {
|
|
1517
1466
|
if (i.options.length > 1)
|
|
1518
1467
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1519
|
-
i.stem.replace(
|
|
1520
|
-
return
|
|
1468
|
+
i.stem.replace(ft, function(l, u, h, f, c, d) {
|
|
1469
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1521
1470
|
});
|
|
1522
|
-
var
|
|
1523
|
-
|
|
1471
|
+
var s = i.options[0];
|
|
1472
|
+
s === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = g(g({}, t), ct(s)));
|
|
1524
1473
|
continue;
|
|
1525
1474
|
}
|
|
1526
|
-
if (
|
|
1527
|
-
t = g(g({}, t),
|
|
1475
|
+
if (Vt.test(i.stem)) {
|
|
1476
|
+
t = g(g({}, t), ct(i.stem));
|
|
1528
1477
|
continue;
|
|
1529
1478
|
}
|
|
1530
|
-
var
|
|
1531
|
-
s && (t = g(g({}, t), s));
|
|
1532
|
-
var a = Nn(i.stem);
|
|
1479
|
+
var a = zt(i.stem);
|
|
1533
1480
|
a && (t = g(g({}, t), a));
|
|
1481
|
+
var o = vn(i.stem);
|
|
1482
|
+
o && (t = g(g({}, t), o));
|
|
1534
1483
|
}
|
|
1535
1484
|
return t;
|
|
1536
1485
|
}
|
|
1537
|
-
var
|
|
1486
|
+
var fe = {
|
|
1538
1487
|
"001": [
|
|
1539
1488
|
"H",
|
|
1540
1489
|
"h"
|
|
@@ -2949,22 +2898,22 @@ var ce = {
|
|
|
2949
2898
|
"h"
|
|
2950
2899
|
]
|
|
2951
2900
|
};
|
|
2952
|
-
function
|
|
2901
|
+
function En(e, t) {
|
|
2953
2902
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2954
2903
|
var i = e.charAt(n);
|
|
2955
2904
|
if (i === "j") {
|
|
2956
|
-
for (var
|
|
2957
|
-
|
|
2958
|
-
var
|
|
2959
|
-
for ((u == "H" || u == "k") && (
|
|
2960
|
-
r +=
|
|
2961
|
-
for (;
|
|
2905
|
+
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2906
|
+
s++, n++;
|
|
2907
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = xn(t);
|
|
2908
|
+
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2909
|
+
r += l;
|
|
2910
|
+
for (; a-- > 0; )
|
|
2962
2911
|
r = u + r;
|
|
2963
2912
|
} else i === "J" ? r += "H" : r += i;
|
|
2964
2913
|
}
|
|
2965
2914
|
return r;
|
|
2966
2915
|
}
|
|
2967
|
-
function
|
|
2916
|
+
function xn(e) {
|
|
2968
2917
|
var t = e.hourCycle;
|
|
2969
2918
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2970
2919
|
e.hourCycles && // @ts-ignore
|
|
@@ -2983,23 +2932,23 @@ function Mn(e) {
|
|
|
2983
2932
|
}
|
|
2984
2933
|
var r = e.language, n;
|
|
2985
2934
|
r !== "root" && (n = e.maximize().region);
|
|
2986
|
-
var i =
|
|
2935
|
+
var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
|
|
2987
2936
|
return i[0];
|
|
2988
2937
|
}
|
|
2989
|
-
var
|
|
2938
|
+
var Pe, Sn = new RegExp("^".concat(Wt.source, "*")), wn = new RegExp("".concat(Wt.source, "*$"));
|
|
2990
2939
|
function b(e, t) {
|
|
2991
2940
|
return { start: e, end: t };
|
|
2992
2941
|
}
|
|
2993
|
-
var
|
|
2942
|
+
var Tn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Hn = !!String.fromCodePoint, Pn = !!Object.fromEntries, Bn = !!String.prototype.codePointAt, An = !!String.prototype.trimStart, On = !!String.prototype.trimEnd, In = !!Number.isSafeInteger, Nn = In ? Number.isSafeInteger : function(e) {
|
|
2994
2943
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2995
|
-
},
|
|
2944
|
+
}, Ge = !0;
|
|
2996
2945
|
try {
|
|
2997
|
-
var
|
|
2998
|
-
|
|
2999
|
-
} catch
|
|
3000
|
-
|
|
2946
|
+
var Ln = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2947
|
+
Ge = ((Pe = Ln.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
2948
|
+
} catch {
|
|
2949
|
+
Ge = !1;
|
|
3001
2950
|
}
|
|
3002
|
-
var
|
|
2951
|
+
var pt = Tn ? (
|
|
3003
2952
|
// Native
|
|
3004
2953
|
function(t, r, n) {
|
|
3005
2954
|
return t.startsWith(r, n);
|
|
@@ -3009,31 +2958,31 @@ var xt = Un ? (
|
|
|
3009
2958
|
function(t, r, n) {
|
|
3010
2959
|
return t.slice(n, n + r.length) === r;
|
|
3011
2960
|
}
|
|
3012
|
-
),
|
|
2961
|
+
), Fe = Hn ? String.fromCodePoint : (
|
|
3013
2962
|
// IE11
|
|
3014
2963
|
function() {
|
|
3015
2964
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
3016
2965
|
t[r] = arguments[r];
|
|
3017
|
-
for (var n = "", i = t.length,
|
|
3018
|
-
if (
|
|
3019
|
-
throw RangeError(
|
|
3020
|
-
n +=
|
|
2966
|
+
for (var n = "", i = t.length, s = 0, a; i > s; ) {
|
|
2967
|
+
if (a = t[s++], a > 1114111)
|
|
2968
|
+
throw RangeError(a + " is not a valid code point");
|
|
2969
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
3021
2970
|
}
|
|
3022
2971
|
return n;
|
|
3023
2972
|
}
|
|
3024
|
-
),
|
|
2973
|
+
), mt = (
|
|
3025
2974
|
// native
|
|
3026
|
-
|
|
2975
|
+
Pn ? Object.fromEntries : (
|
|
3027
2976
|
// Ponyfill
|
|
3028
2977
|
function(t) {
|
|
3029
2978
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
3030
|
-
var
|
|
3031
|
-
r[
|
|
2979
|
+
var s = i[n], a = s[0], o = s[1];
|
|
2980
|
+
r[a] = o;
|
|
3032
2981
|
}
|
|
3033
2982
|
return r;
|
|
3034
2983
|
}
|
|
3035
2984
|
)
|
|
3036
|
-
),
|
|
2985
|
+
), Zt = Bn ? (
|
|
3037
2986
|
// Native
|
|
3038
2987
|
function(t, r) {
|
|
3039
2988
|
return t.codePointAt(r);
|
|
@@ -3043,11 +2992,11 @@ var xt = Un ? (
|
|
|
3043
2992
|
function(t, r) {
|
|
3044
2993
|
var n = t.length;
|
|
3045
2994
|
if (!(r < 0 || r >= n)) {
|
|
3046
|
-
var i = t.charCodeAt(r),
|
|
3047
|
-
return i < 55296 || i > 56319 || r + 1 === n || (
|
|
2995
|
+
var i = t.charCodeAt(r), s;
|
|
2996
|
+
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
3048
2997
|
}
|
|
3049
2998
|
}
|
|
3050
|
-
),
|
|
2999
|
+
), Cn = An ? (
|
|
3051
3000
|
// Native
|
|
3052
3001
|
function(t) {
|
|
3053
3002
|
return t.trimStart();
|
|
@@ -3055,9 +3004,9 @@ var xt = Un ? (
|
|
|
3055
3004
|
) : (
|
|
3056
3005
|
// Ponyfill
|
|
3057
3006
|
function(t) {
|
|
3058
|
-
return t.replace(
|
|
3007
|
+
return t.replace(Sn, "");
|
|
3059
3008
|
}
|
|
3060
|
-
),
|
|
3009
|
+
), Mn = On ? (
|
|
3061
3010
|
// Native
|
|
3062
3011
|
function(t) {
|
|
3063
3012
|
return t.trimEnd();
|
|
@@ -3065,32 +3014,32 @@ var xt = Un ? (
|
|
|
3065
3014
|
) : (
|
|
3066
3015
|
// Ponyfill
|
|
3067
3016
|
function(t) {
|
|
3068
|
-
return t.replace(
|
|
3017
|
+
return t.replace(wn, "");
|
|
3069
3018
|
}
|
|
3070
3019
|
);
|
|
3071
|
-
function
|
|
3020
|
+
function Qt(e, t) {
|
|
3072
3021
|
return new RegExp(e, t);
|
|
3073
3022
|
}
|
|
3074
|
-
var
|
|
3075
|
-
if (
|
|
3076
|
-
var
|
|
3077
|
-
|
|
3023
|
+
var je;
|
|
3024
|
+
if (Ge) {
|
|
3025
|
+
var bt = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3026
|
+
je = function(t, r) {
|
|
3078
3027
|
var n;
|
|
3079
|
-
|
|
3080
|
-
var i =
|
|
3028
|
+
bt.lastIndex = r;
|
|
3029
|
+
var i = bt.exec(t);
|
|
3081
3030
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3082
3031
|
};
|
|
3083
3032
|
} else
|
|
3084
|
-
|
|
3033
|
+
je = function(t, r) {
|
|
3085
3034
|
for (var n = []; ; ) {
|
|
3086
|
-
var i =
|
|
3087
|
-
if (i === void 0 ||
|
|
3035
|
+
var i = Zt(t, r);
|
|
3036
|
+
if (i === void 0 || Jt(i) || Dn(i))
|
|
3088
3037
|
break;
|
|
3089
3038
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3090
3039
|
}
|
|
3091
|
-
return
|
|
3040
|
+
return Fe.apply(void 0, n);
|
|
3092
3041
|
};
|
|
3093
|
-
var
|
|
3042
|
+
var Rn = (
|
|
3094
3043
|
/** @class */
|
|
3095
3044
|
function() {
|
|
3096
3045
|
function e(t, r) {
|
|
@@ -3102,35 +3051,35 @@ var Qn = (
|
|
|
3102
3051
|
return this.parseMessage(0, "", !1);
|
|
3103
3052
|
}, e.prototype.parseMessage = function(t, r, n) {
|
|
3104
3053
|
for (var i = []; !this.isEOF(); ) {
|
|
3105
|
-
var
|
|
3106
|
-
if (
|
|
3107
|
-
var
|
|
3108
|
-
if (
|
|
3109
|
-
return
|
|
3110
|
-
i.push(
|
|
3054
|
+
var s = this.char();
|
|
3055
|
+
if (s === 123) {
|
|
3056
|
+
var a = this.parseArgument(t, n);
|
|
3057
|
+
if (a.err)
|
|
3058
|
+
return a;
|
|
3059
|
+
i.push(a.val);
|
|
3111
3060
|
} else {
|
|
3112
|
-
if (
|
|
3061
|
+
if (s === 125 && t > 0)
|
|
3113
3062
|
break;
|
|
3114
|
-
if (
|
|
3115
|
-
var
|
|
3063
|
+
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3064
|
+
var o = this.clonePosition();
|
|
3116
3065
|
this.bump(), i.push({
|
|
3117
3066
|
type: _.pound,
|
|
3118
|
-
location: b(
|
|
3067
|
+
location: b(o, this.clonePosition())
|
|
3119
3068
|
});
|
|
3120
|
-
} else if (
|
|
3069
|
+
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3121
3070
|
if (n)
|
|
3122
3071
|
break;
|
|
3123
3072
|
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3124
|
-
} else if (
|
|
3125
|
-
var
|
|
3126
|
-
if (
|
|
3127
|
-
return
|
|
3128
|
-
i.push(
|
|
3073
|
+
} else if (s === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
|
|
3074
|
+
var a = this.parseTag(t, r);
|
|
3075
|
+
if (a.err)
|
|
3076
|
+
return a;
|
|
3077
|
+
i.push(a.val);
|
|
3129
3078
|
} else {
|
|
3130
|
-
var
|
|
3131
|
-
if (
|
|
3132
|
-
return
|
|
3133
|
-
i.push(
|
|
3079
|
+
var a = this.parseLiteral(t, r);
|
|
3080
|
+
if (a.err)
|
|
3081
|
+
return a;
|
|
3082
|
+
i.push(a.val);
|
|
3134
3083
|
}
|
|
3135
3084
|
}
|
|
3136
3085
|
}
|
|
@@ -3149,59 +3098,59 @@ var Qn = (
|
|
|
3149
3098
|
err: null
|
|
3150
3099
|
};
|
|
3151
3100
|
if (this.bumpIf(">")) {
|
|
3152
|
-
var
|
|
3153
|
-
if (
|
|
3154
|
-
return
|
|
3155
|
-
var
|
|
3101
|
+
var s = this.parseMessage(t + 1, r, !0);
|
|
3102
|
+
if (s.err)
|
|
3103
|
+
return s;
|
|
3104
|
+
var a = s.val, o = this.clonePosition();
|
|
3156
3105
|
if (this.bumpIf("</")) {
|
|
3157
|
-
if (this.isEOF() || !
|
|
3158
|
-
return this.error(m.INVALID_TAG, b(
|
|
3159
|
-
var
|
|
3160
|
-
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(
|
|
3106
|
+
if (this.isEOF() || !ke(this.char()))
|
|
3107
|
+
return this.error(m.INVALID_TAG, b(o, this.clonePosition()));
|
|
3108
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
3109
|
+
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3161
3110
|
val: {
|
|
3162
3111
|
type: _.tag,
|
|
3163
3112
|
value: i,
|
|
3164
|
-
children:
|
|
3113
|
+
children: a,
|
|
3165
3114
|
location: b(n, this.clonePosition())
|
|
3166
3115
|
},
|
|
3167
3116
|
err: null
|
|
3168
|
-
} : this.error(m.INVALID_TAG, b(
|
|
3117
|
+
} : this.error(m.INVALID_TAG, b(o, this.clonePosition())));
|
|
3169
3118
|
} else
|
|
3170
3119
|
return this.error(m.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
3171
3120
|
} else
|
|
3172
3121
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
3173
3122
|
}, e.prototype.parseTagName = function() {
|
|
3174
3123
|
var t = this.offset();
|
|
3175
|
-
for (this.bump(); !this.isEOF() &&
|
|
3124
|
+
for (this.bump(); !this.isEOF() && Un(this.char()); )
|
|
3176
3125
|
this.bump();
|
|
3177
3126
|
return this.message.slice(t, this.offset());
|
|
3178
3127
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
3179
3128
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
3180
|
-
var
|
|
3181
|
-
if (o) {
|
|
3182
|
-
i += o;
|
|
3183
|
-
continue;
|
|
3184
|
-
}
|
|
3185
|
-
var s = this.tryParseUnquoted(t, r);
|
|
3129
|
+
var s = this.tryParseQuote(r);
|
|
3186
3130
|
if (s) {
|
|
3187
3131
|
i += s;
|
|
3188
3132
|
continue;
|
|
3189
3133
|
}
|
|
3190
|
-
var a = this.
|
|
3134
|
+
var a = this.tryParseUnquoted(t, r);
|
|
3191
3135
|
if (a) {
|
|
3192
3136
|
i += a;
|
|
3193
3137
|
continue;
|
|
3194
3138
|
}
|
|
3139
|
+
var o = this.tryParseLeftAngleBracket();
|
|
3140
|
+
if (o) {
|
|
3141
|
+
i += o;
|
|
3142
|
+
continue;
|
|
3143
|
+
}
|
|
3195
3144
|
break;
|
|
3196
3145
|
}
|
|
3197
|
-
var
|
|
3146
|
+
var l = b(n, this.clonePosition());
|
|
3198
3147
|
return {
|
|
3199
|
-
val: { type: _.literal, value: i, location:
|
|
3148
|
+
val: { type: _.literal, value: i, location: l },
|
|
3200
3149
|
err: null
|
|
3201
3150
|
};
|
|
3202
3151
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3203
3152
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3204
|
-
|
|
3153
|
+
!$n(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3205
3154
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3206
3155
|
if (this.isEOF() || this.char() !== 39)
|
|
3207
3156
|
return null;
|
|
@@ -3235,12 +3184,12 @@ var Qn = (
|
|
|
3235
3184
|
r.push(n);
|
|
3236
3185
|
this.bump();
|
|
3237
3186
|
}
|
|
3238
|
-
return
|
|
3187
|
+
return Fe.apply(void 0, r);
|
|
3239
3188
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3240
3189
|
if (this.isEOF())
|
|
3241
3190
|
return null;
|
|
3242
3191
|
var n = this.char();
|
|
3243
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3192
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
3244
3193
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3245
3194
|
var n = this.clonePosition();
|
|
3246
3195
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3269,15 +3218,15 @@ var Qn = (
|
|
|
3269
3218
|
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3270
3219
|
}
|
|
3271
3220
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3272
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3221
|
+
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
3273
3222
|
this.bumpTo(i);
|
|
3274
|
-
var
|
|
3275
|
-
return { value: n, location:
|
|
3223
|
+
var s = this.clonePosition(), a = b(t, s);
|
|
3224
|
+
return { value: n, location: a };
|
|
3276
3225
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3277
|
-
var
|
|
3278
|
-
switch (
|
|
3226
|
+
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3227
|
+
switch (o) {
|
|
3279
3228
|
case "":
|
|
3280
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE, b(
|
|
3229
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, b(a, l));
|
|
3281
3230
|
case "number":
|
|
3282
3231
|
case "date":
|
|
3283
3232
|
case "time": {
|
|
@@ -3285,50 +3234,50 @@ var Qn = (
|
|
|
3285
3234
|
var u = null;
|
|
3286
3235
|
if (this.bumpIf(",")) {
|
|
3287
3236
|
this.bumpSpace();
|
|
3288
|
-
var
|
|
3237
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3289
3238
|
if (f.err)
|
|
3290
3239
|
return f;
|
|
3291
|
-
var c =
|
|
3240
|
+
var c = Mn(f.val);
|
|
3292
3241
|
if (c.length === 0)
|
|
3293
3242
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3294
|
-
var
|
|
3295
|
-
u = { style: c, styleLocation:
|
|
3243
|
+
var d = b(h, this.clonePosition());
|
|
3244
|
+
u = { style: c, styleLocation: d };
|
|
3296
3245
|
}
|
|
3297
3246
|
var v = this.tryParseArgumentClose(i);
|
|
3298
3247
|
if (v.err)
|
|
3299
3248
|
return v;
|
|
3300
|
-
var
|
|
3301
|
-
if (u &&
|
|
3302
|
-
var S =
|
|
3303
|
-
if (
|
|
3249
|
+
var p = b(i, this.clonePosition());
|
|
3250
|
+
if (u && pt(u?.style, "::", 0)) {
|
|
3251
|
+
var S = Cn(u.style.slice(2));
|
|
3252
|
+
if (o === "number") {
|
|
3304
3253
|
var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3305
3254
|
return f.err ? f : {
|
|
3306
|
-
val: { type: _.number, value: n, location:
|
|
3255
|
+
val: { type: _.number, value: n, location: p, style: f.val },
|
|
3307
3256
|
err: null
|
|
3308
3257
|
};
|
|
3309
3258
|
} else {
|
|
3310
3259
|
if (S.length === 0)
|
|
3311
|
-
return this.error(m.EXPECT_DATE_TIME_SKELETON,
|
|
3312
|
-
var
|
|
3313
|
-
this.locale && (
|
|
3260
|
+
return this.error(m.EXPECT_DATE_TIME_SKELETON, p);
|
|
3261
|
+
var C = S;
|
|
3262
|
+
this.locale && (C = En(S, this.locale));
|
|
3314
3263
|
var c = {
|
|
3315
|
-
type:
|
|
3316
|
-
pattern:
|
|
3264
|
+
type: z.dateTime,
|
|
3265
|
+
pattern: C,
|
|
3317
3266
|
location: u.styleLocation,
|
|
3318
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3319
|
-
},
|
|
3267
|
+
parsedOptions: this.shouldParseSkeletons ? pn(C) : {}
|
|
3268
|
+
}, M = o === "date" ? _.date : _.time;
|
|
3320
3269
|
return {
|
|
3321
|
-
val: { type:
|
|
3270
|
+
val: { type: M, value: n, location: p, style: c },
|
|
3322
3271
|
err: null
|
|
3323
3272
|
};
|
|
3324
3273
|
}
|
|
3325
3274
|
}
|
|
3326
3275
|
return {
|
|
3327
3276
|
val: {
|
|
3328
|
-
type:
|
|
3277
|
+
type: o === "number" ? _.number : o === "date" ? _.date : _.time,
|
|
3329
3278
|
value: n,
|
|
3330
|
-
location:
|
|
3331
|
-
style: (
|
|
3279
|
+
location: p,
|
|
3280
|
+
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
3332
3281
|
},
|
|
3333
3282
|
err: null
|
|
3334
3283
|
};
|
|
@@ -3340,45 +3289,45 @@ var Qn = (
|
|
|
3340
3289
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3341
3290
|
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(T, g({}, T)));
|
|
3342
3291
|
this.bumpSpace();
|
|
3343
|
-
var
|
|
3344
|
-
if (
|
|
3292
|
+
var $ = this.parseIdentifierIfPossible(), A = 0;
|
|
3293
|
+
if (o !== "select" && $.value === "offset") {
|
|
3345
3294
|
if (!this.bumpIf(":"))
|
|
3346
3295
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3347
3296
|
this.bumpSpace();
|
|
3348
3297
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3349
3298
|
if (f.err)
|
|
3350
3299
|
return f;
|
|
3351
|
-
this.bumpSpace(),
|
|
3300
|
+
this.bumpSpace(), $ = this.parseIdentifierIfPossible(), A = f.val;
|
|
3352
3301
|
}
|
|
3353
|
-
var
|
|
3354
|
-
if (
|
|
3355
|
-
return
|
|
3302
|
+
var D = this.tryParsePluralOrSelectOptions(t, o, r, $);
|
|
3303
|
+
if (D.err)
|
|
3304
|
+
return D;
|
|
3356
3305
|
var v = this.tryParseArgumentClose(i);
|
|
3357
3306
|
if (v.err)
|
|
3358
3307
|
return v;
|
|
3359
|
-
var
|
|
3360
|
-
return
|
|
3308
|
+
var ue = b(i, this.clonePosition());
|
|
3309
|
+
return o === "select" ? {
|
|
3361
3310
|
val: {
|
|
3362
3311
|
type: _.select,
|
|
3363
3312
|
value: n,
|
|
3364
|
-
options:
|
|
3365
|
-
location:
|
|
3313
|
+
options: mt(D.val),
|
|
3314
|
+
location: ue
|
|
3366
3315
|
},
|
|
3367
3316
|
err: null
|
|
3368
3317
|
} : {
|
|
3369
3318
|
val: {
|
|
3370
3319
|
type: _.plural,
|
|
3371
3320
|
value: n,
|
|
3372
|
-
options:
|
|
3373
|
-
offset:
|
|
3374
|
-
pluralType:
|
|
3375
|
-
location:
|
|
3321
|
+
options: mt(D.val),
|
|
3322
|
+
offset: A,
|
|
3323
|
+
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
3324
|
+
location: ue
|
|
3376
3325
|
},
|
|
3377
3326
|
err: null
|
|
3378
3327
|
};
|
|
3379
3328
|
}
|
|
3380
3329
|
default:
|
|
3381
|
-
return this.error(m.INVALID_ARGUMENT_TYPE, b(
|
|
3330
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, b(a, l));
|
|
3382
3331
|
}
|
|
3383
3332
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3384
3333
|
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3420,64 +3369,64 @@ var Qn = (
|
|
|
3420
3369
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3421
3370
|
var n = [];
|
|
3422
3371
|
try {
|
|
3423
|
-
n =
|
|
3424
|
-
} catch
|
|
3372
|
+
n = bn(t);
|
|
3373
|
+
} catch {
|
|
3425
3374
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
3426
3375
|
}
|
|
3427
3376
|
return {
|
|
3428
3377
|
val: {
|
|
3429
|
-
type:
|
|
3378
|
+
type: z.number,
|
|
3430
3379
|
tokens: n,
|
|
3431
3380
|
location: r,
|
|
3432
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3381
|
+
parsedOptions: this.shouldParseSkeletons ? _n(n) : {}
|
|
3433
3382
|
},
|
|
3434
3383
|
err: null
|
|
3435
3384
|
};
|
|
3436
3385
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3437
|
-
for (var
|
|
3386
|
+
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3438
3387
|
if (u.length === 0) {
|
|
3439
3388
|
var f = this.clonePosition();
|
|
3440
3389
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3441
3390
|
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3442
3391
|
if (c.err)
|
|
3443
3392
|
return c;
|
|
3444
|
-
|
|
3393
|
+
h = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3445
3394
|
} else
|
|
3446
3395
|
break;
|
|
3447
3396
|
}
|
|
3448
|
-
if (
|
|
3449
|
-
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
3450
|
-
u === "other" && (
|
|
3451
|
-
var
|
|
3397
|
+
if (l.has(u))
|
|
3398
|
+
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3399
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
3400
|
+
var d = this.clonePosition();
|
|
3452
3401
|
if (!this.bumpIf("{"))
|
|
3453
3402
|
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3454
3403
|
var v = this.parseMessage(t + 1, r, n);
|
|
3455
3404
|
if (v.err)
|
|
3456
3405
|
return v;
|
|
3457
|
-
var
|
|
3458
|
-
if (
|
|
3459
|
-
return
|
|
3460
|
-
|
|
3406
|
+
var p = this.tryParseArgumentClose(d);
|
|
3407
|
+
if (p.err)
|
|
3408
|
+
return p;
|
|
3409
|
+
o.push([
|
|
3461
3410
|
u,
|
|
3462
3411
|
{
|
|
3463
3412
|
value: v.val,
|
|
3464
|
-
location: b(
|
|
3413
|
+
location: b(d, this.clonePosition())
|
|
3465
3414
|
}
|
|
3466
|
-
]),
|
|
3415
|
+
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3467
3416
|
}
|
|
3468
|
-
return
|
|
3417
|
+
return o.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(m.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3469
3418
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3470
3419
|
var n = 1, i = this.clonePosition();
|
|
3471
3420
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3472
|
-
for (var
|
|
3473
|
-
var
|
|
3474
|
-
if (
|
|
3475
|
-
|
|
3421
|
+
for (var s = !1, a = 0; !this.isEOF(); ) {
|
|
3422
|
+
var o = this.char();
|
|
3423
|
+
if (o >= 48 && o <= 57)
|
|
3424
|
+
s = !0, a = a * 10 + (o - 48), this.bump();
|
|
3476
3425
|
else
|
|
3477
3426
|
break;
|
|
3478
3427
|
}
|
|
3479
|
-
var
|
|
3480
|
-
return
|
|
3428
|
+
var l = b(i, this.clonePosition());
|
|
3429
|
+
return s ? (a *= n, Nn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3481
3430
|
}, e.prototype.offset = function() {
|
|
3482
3431
|
return this.position.offset;
|
|
3483
3432
|
}, e.prototype.isEOF = function() {
|
|
@@ -3492,7 +3441,7 @@ var Qn = (
|
|
|
3492
3441
|
var t = this.position.offset;
|
|
3493
3442
|
if (t >= this.message.length)
|
|
3494
3443
|
throw Error("out of bound");
|
|
3495
|
-
var r =
|
|
3444
|
+
var r = Zt(this.message, t);
|
|
3496
3445
|
if (r === void 0)
|
|
3497
3446
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3498
3447
|
return r;
|
|
@@ -3511,7 +3460,7 @@ var Qn = (
|
|
|
3511
3460
|
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);
|
|
3512
3461
|
}
|
|
3513
3462
|
}, e.prototype.bumpIf = function(t) {
|
|
3514
|
-
if (
|
|
3463
|
+
if (pt(this.message, t, this.offset())) {
|
|
3515
3464
|
for (var r = 0; r < t.length; r++)
|
|
3516
3465
|
this.bump();
|
|
3517
3466
|
return !0;
|
|
@@ -3533,213 +3482,213 @@ var Qn = (
|
|
|
3533
3482
|
break;
|
|
3534
3483
|
}
|
|
3535
3484
|
}, e.prototype.bumpSpace = function() {
|
|
3536
|
-
for (; !this.isEOF() &&
|
|
3485
|
+
for (; !this.isEOF() && Jt(this.char()); )
|
|
3537
3486
|
this.bump();
|
|
3538
3487
|
}, e.prototype.peek = function() {
|
|
3539
3488
|
if (this.isEOF())
|
|
3540
3489
|
return null;
|
|
3541
3490
|
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3542
|
-
return n
|
|
3491
|
+
return n ?? null;
|
|
3543
3492
|
}, e;
|
|
3544
3493
|
}()
|
|
3545
3494
|
);
|
|
3546
|
-
function
|
|
3495
|
+
function ke(e) {
|
|
3547
3496
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3548
3497
|
}
|
|
3549
|
-
function
|
|
3550
|
-
return
|
|
3498
|
+
function $n(e) {
|
|
3499
|
+
return ke(e) || e === 47;
|
|
3551
3500
|
}
|
|
3552
|
-
function
|
|
3501
|
+
function Un(e) {
|
|
3553
3502
|
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;
|
|
3554
3503
|
}
|
|
3555
|
-
function
|
|
3504
|
+
function Jt(e) {
|
|
3556
3505
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3557
3506
|
}
|
|
3558
|
-
function
|
|
3507
|
+
function Dn(e) {
|
|
3559
3508
|
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;
|
|
3560
3509
|
}
|
|
3561
|
-
function
|
|
3510
|
+
function We(e) {
|
|
3562
3511
|
e.forEach(function(t) {
|
|
3563
|
-
if (delete t.location,
|
|
3512
|
+
if (delete t.location, Gt(t) || Ft(t))
|
|
3564
3513
|
for (var r in t.options)
|
|
3565
|
-
delete t.options[r].location,
|
|
3566
|
-
else
|
|
3514
|
+
delete t.options[r].location, We(t.options[r].value);
|
|
3515
|
+
else $t(t) && kt(t.style) || (Ut(t) || Dt(t)) && De(t.style) ? delete t.style.location : jt(t) && We(t.children);
|
|
3567
3516
|
});
|
|
3568
3517
|
}
|
|
3569
|
-
function
|
|
3518
|
+
function Gn(e, t) {
|
|
3570
3519
|
t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3571
|
-
var r = new
|
|
3520
|
+
var r = new Rn(e, t).parse();
|
|
3572
3521
|
if (r.err) {
|
|
3573
3522
|
var n = SyntaxError(m[r.err.kind]);
|
|
3574
3523
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3575
3524
|
}
|
|
3576
|
-
return t
|
|
3525
|
+
return t?.captureLocation || We(r.val), r.val;
|
|
3577
3526
|
}
|
|
3578
|
-
var
|
|
3527
|
+
var Z;
|
|
3579
3528
|
(function(e) {
|
|
3580
3529
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3581
|
-
})(
|
|
3582
|
-
var
|
|
3530
|
+
})(Z || (Z = {}));
|
|
3531
|
+
var _e = (
|
|
3583
3532
|
/** @class */
|
|
3584
3533
|
function(e) {
|
|
3585
|
-
|
|
3534
|
+
L(t, e);
|
|
3586
3535
|
function t(r, n, i) {
|
|
3587
|
-
var
|
|
3588
|
-
return
|
|
3536
|
+
var s = e.call(this, r) || this;
|
|
3537
|
+
return s.code = n, s.originalMessage = i, s;
|
|
3589
3538
|
}
|
|
3590
3539
|
return t.prototype.toString = function() {
|
|
3591
3540
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3592
3541
|
}, t;
|
|
3593
3542
|
}(Error)
|
|
3594
|
-
),
|
|
3543
|
+
), gt = (
|
|
3595
3544
|
/** @class */
|
|
3596
3545
|
function(e) {
|
|
3597
|
-
|
|
3598
|
-
function t(r, n, i,
|
|
3599
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3546
|
+
L(t, e);
|
|
3547
|
+
function t(r, n, i, s) {
|
|
3548
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Z.INVALID_VALUE, s) || this;
|
|
3600
3549
|
}
|
|
3601
3550
|
return t;
|
|
3602
|
-
}(
|
|
3603
|
-
),
|
|
3551
|
+
}(_e)
|
|
3552
|
+
), Fn = (
|
|
3604
3553
|
/** @class */
|
|
3605
3554
|
function(e) {
|
|
3606
|
-
|
|
3555
|
+
L(t, e);
|
|
3607
3556
|
function t(r, n, i) {
|
|
3608
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3557
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Z.INVALID_VALUE, i) || this;
|
|
3609
3558
|
}
|
|
3610
3559
|
return t;
|
|
3611
|
-
}(
|
|
3612
|
-
),
|
|
3560
|
+
}(_e)
|
|
3561
|
+
), jn = (
|
|
3613
3562
|
/** @class */
|
|
3614
3563
|
function(e) {
|
|
3615
|
-
|
|
3564
|
+
L(t, e);
|
|
3616
3565
|
function t(r, n) {
|
|
3617
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3566
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Z.MISSING_VALUE, n) || this;
|
|
3618
3567
|
}
|
|
3619
3568
|
return t;
|
|
3620
|
-
}(
|
|
3569
|
+
}(_e)
|
|
3621
3570
|
), w;
|
|
3622
3571
|
(function(e) {
|
|
3623
3572
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3624
3573
|
})(w || (w = {}));
|
|
3625
|
-
function
|
|
3574
|
+
function kn(e) {
|
|
3626
3575
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3627
3576
|
var n = t[t.length - 1];
|
|
3628
3577
|
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3629
3578
|
}, []);
|
|
3630
3579
|
}
|
|
3631
|
-
function
|
|
3580
|
+
function Wn(e) {
|
|
3632
3581
|
return typeof e == "function";
|
|
3633
3582
|
}
|
|
3634
|
-
function
|
|
3635
|
-
if (e.length === 1 &&
|
|
3583
|
+
function pe(e, t, r, n, i, s, a) {
|
|
3584
|
+
if (e.length === 1 && lt(e[0]))
|
|
3636
3585
|
return [
|
|
3637
3586
|
{
|
|
3638
3587
|
type: w.literal,
|
|
3639
3588
|
value: e[0].value
|
|
3640
3589
|
}
|
|
3641
3590
|
];
|
|
3642
|
-
for (var
|
|
3643
|
-
var
|
|
3644
|
-
if (
|
|
3645
|
-
|
|
3591
|
+
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
|
3592
|
+
var h = u[l];
|
|
3593
|
+
if (lt(h)) {
|
|
3594
|
+
o.push({
|
|
3646
3595
|
type: w.literal,
|
|
3647
|
-
value:
|
|
3596
|
+
value: h.value
|
|
3648
3597
|
});
|
|
3649
3598
|
continue;
|
|
3650
3599
|
}
|
|
3651
|
-
if (
|
|
3652
|
-
typeof
|
|
3600
|
+
if (cn(h)) {
|
|
3601
|
+
typeof s == "number" && o.push({
|
|
3653
3602
|
type: w.literal,
|
|
3654
|
-
value: r.getNumberFormat(t).format(
|
|
3603
|
+
value: r.getNumberFormat(t).format(s)
|
|
3655
3604
|
});
|
|
3656
3605
|
continue;
|
|
3657
3606
|
}
|
|
3658
|
-
var f =
|
|
3607
|
+
var f = h.value;
|
|
3659
3608
|
if (!(i && f in i))
|
|
3660
|
-
throw new
|
|
3609
|
+
throw new jn(f, a);
|
|
3661
3610
|
var c = i[f];
|
|
3662
|
-
if (
|
|
3663
|
-
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""),
|
|
3611
|
+
if (fn(h)) {
|
|
3612
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3664
3613
|
type: typeof c == "string" ? w.literal : w.object,
|
|
3665
3614
|
value: c
|
|
3666
3615
|
});
|
|
3667
3616
|
continue;
|
|
3668
3617
|
}
|
|
3669
|
-
if (
|
|
3670
|
-
var
|
|
3671
|
-
|
|
3618
|
+
if (Ut(h)) {
|
|
3619
|
+
var d = typeof h.style == "string" ? n.date[h.style] : De(h.style) ? h.style.parsedOptions : void 0;
|
|
3620
|
+
o.push({
|
|
3672
3621
|
type: w.literal,
|
|
3673
|
-
value: r.getDateTimeFormat(t,
|
|
3622
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3674
3623
|
});
|
|
3675
3624
|
continue;
|
|
3676
3625
|
}
|
|
3677
|
-
if (
|
|
3678
|
-
var
|
|
3679
|
-
|
|
3626
|
+
if (Dt(h)) {
|
|
3627
|
+
var d = typeof h.style == "string" ? n.time[h.style] : De(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3628
|
+
o.push({
|
|
3680
3629
|
type: w.literal,
|
|
3681
|
-
value: r.getDateTimeFormat(t,
|
|
3630
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3682
3631
|
});
|
|
3683
3632
|
continue;
|
|
3684
3633
|
}
|
|
3685
|
-
if (
|
|
3686
|
-
var
|
|
3687
|
-
|
|
3634
|
+
if ($t(h)) {
|
|
3635
|
+
var d = typeof h.style == "string" ? n.number[h.style] : kt(h.style) ? h.style.parsedOptions : void 0;
|
|
3636
|
+
d && d.scale && (c = c * (d.scale || 1)), o.push({
|
|
3688
3637
|
type: w.literal,
|
|
3689
|
-
value: r.getNumberFormat(t,
|
|
3638
|
+
value: r.getNumberFormat(t, d).format(c)
|
|
3690
3639
|
});
|
|
3691
3640
|
continue;
|
|
3692
3641
|
}
|
|
3693
|
-
if (
|
|
3694
|
-
var v =
|
|
3695
|
-
if (!
|
|
3696
|
-
throw new
|
|
3697
|
-
var
|
|
3698
|
-
return
|
|
3642
|
+
if (jt(h)) {
|
|
3643
|
+
var v = h.children, p = h.value, S = i[p];
|
|
3644
|
+
if (!Wn(S))
|
|
3645
|
+
throw new Fn(p, "function", a);
|
|
3646
|
+
var C = pe(v, t, r, n, i, s), M = S(C.map(function(A) {
|
|
3647
|
+
return A.value;
|
|
3699
3648
|
}));
|
|
3700
|
-
Array.isArray(
|
|
3649
|
+
Array.isArray(M) || (M = [M]), o.push.apply(o, M.map(function(A) {
|
|
3701
3650
|
return {
|
|
3702
|
-
type: typeof
|
|
3703
|
-
value:
|
|
3651
|
+
type: typeof A == "string" ? w.literal : w.object,
|
|
3652
|
+
value: A
|
|
3704
3653
|
};
|
|
3705
3654
|
}));
|
|
3706
3655
|
}
|
|
3707
|
-
if (
|
|
3708
|
-
var T =
|
|
3656
|
+
if (Gt(h)) {
|
|
3657
|
+
var T = h.options[c] || h.options.other;
|
|
3709
3658
|
if (!T)
|
|
3710
|
-
throw new
|
|
3711
|
-
|
|
3659
|
+
throw new gt(h.value, c, Object.keys(h.options), a);
|
|
3660
|
+
o.push.apply(o, pe(T.value, t, r, n, i));
|
|
3712
3661
|
continue;
|
|
3713
3662
|
}
|
|
3714
|
-
if (
|
|
3715
|
-
var T =
|
|
3663
|
+
if (Ft(h)) {
|
|
3664
|
+
var T = h.options["=".concat(c)];
|
|
3716
3665
|
if (!T) {
|
|
3717
3666
|
if (!Intl.PluralRules)
|
|
3718
|
-
throw new
|
|
3667
|
+
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3719
3668
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3720
|
-
`,
|
|
3721
|
-
var
|
|
3722
|
-
T =
|
|
3669
|
+
`, Z.MISSING_INTL_API, a);
|
|
3670
|
+
var $ = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3671
|
+
T = h.options[$] || h.options.other;
|
|
3723
3672
|
}
|
|
3724
3673
|
if (!T)
|
|
3725
|
-
throw new
|
|
3726
|
-
|
|
3674
|
+
throw new gt(h.value, c, Object.keys(h.options), a);
|
|
3675
|
+
o.push.apply(o, pe(T.value, t, r, n, i, c - (h.offset || 0)));
|
|
3727
3676
|
continue;
|
|
3728
3677
|
}
|
|
3729
3678
|
}
|
|
3730
|
-
return
|
|
3679
|
+
return kn(o);
|
|
3731
3680
|
}
|
|
3732
|
-
function
|
|
3681
|
+
function Vn(e, t) {
|
|
3733
3682
|
return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3734
3683
|
return r[n] = g(g({}, e[n]), t[n] || {}), r;
|
|
3735
3684
|
}, {})) : e;
|
|
3736
3685
|
}
|
|
3737
|
-
function
|
|
3686
|
+
function Xn(e, t) {
|
|
3738
3687
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3739
|
-
return r[n] =
|
|
3688
|
+
return r[n] = Vn(e[n], t[n]), r;
|
|
3740
3689
|
}, g({}, e)) : e;
|
|
3741
3690
|
}
|
|
3742
|
-
function
|
|
3691
|
+
function Be(e) {
|
|
3743
3692
|
return {
|
|
3744
3693
|
create: function() {
|
|
3745
3694
|
return {
|
|
@@ -3753,77 +3702,77 @@ function Ie(e) {
|
|
|
3753
3702
|
}
|
|
3754
3703
|
};
|
|
3755
3704
|
}
|
|
3756
|
-
function
|
|
3705
|
+
function zn(e) {
|
|
3757
3706
|
return e === void 0 && (e = {
|
|
3758
3707
|
number: {},
|
|
3759
3708
|
dateTime: {},
|
|
3760
3709
|
pluralRules: {}
|
|
3761
3710
|
}), {
|
|
3762
|
-
getNumberFormat:
|
|
3711
|
+
getNumberFormat: Te(function() {
|
|
3763
3712
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3764
3713
|
r[n] = arguments[n];
|
|
3765
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3714
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3766
3715
|
}, {
|
|
3767
|
-
cache:
|
|
3768
|
-
strategy:
|
|
3716
|
+
cache: Be(e.number),
|
|
3717
|
+
strategy: He.variadic
|
|
3769
3718
|
}),
|
|
3770
|
-
getDateTimeFormat:
|
|
3719
|
+
getDateTimeFormat: Te(function() {
|
|
3771
3720
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3772
3721
|
r[n] = arguments[n];
|
|
3773
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3722
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3774
3723
|
}, {
|
|
3775
|
-
cache:
|
|
3776
|
-
strategy:
|
|
3724
|
+
cache: Be(e.dateTime),
|
|
3725
|
+
strategy: He.variadic
|
|
3777
3726
|
}),
|
|
3778
|
-
getPluralRules:
|
|
3727
|
+
getPluralRules: Te(function() {
|
|
3779
3728
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3780
3729
|
r[n] = arguments[n];
|
|
3781
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3730
|
+
return new ((t = Intl.PluralRules).bind.apply(t, V([void 0], r, !1)))();
|
|
3782
3731
|
}, {
|
|
3783
|
-
cache:
|
|
3784
|
-
strategy:
|
|
3732
|
+
cache: Be(e.pluralRules),
|
|
3733
|
+
strategy: He.variadic
|
|
3785
3734
|
})
|
|
3786
3735
|
};
|
|
3787
3736
|
}
|
|
3788
|
-
var
|
|
3737
|
+
var Zn = (
|
|
3789
3738
|
/** @class */
|
|
3790
3739
|
function() {
|
|
3791
3740
|
function e(t, r, n, i) {
|
|
3792
3741
|
r === void 0 && (r = e.defaultLocale);
|
|
3793
|
-
var
|
|
3742
|
+
var s = this;
|
|
3794
3743
|
if (this.formatterCache = {
|
|
3795
3744
|
number: {},
|
|
3796
3745
|
dateTime: {},
|
|
3797
3746
|
pluralRules: {}
|
|
3798
|
-
}, this.format = function(
|
|
3799
|
-
var u =
|
|
3747
|
+
}, this.format = function(l) {
|
|
3748
|
+
var u = s.formatToParts(l);
|
|
3800
3749
|
if (u.length === 1)
|
|
3801
3750
|
return u[0].value;
|
|
3802
|
-
var
|
|
3751
|
+
var h = u.reduce(function(f, c) {
|
|
3803
3752
|
return !f.length || c.type !== w.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3804
3753
|
}, []);
|
|
3805
|
-
return
|
|
3806
|
-
}, this.formatToParts = function(
|
|
3807
|
-
return
|
|
3754
|
+
return h.length <= 1 ? h[0] || "" : h;
|
|
3755
|
+
}, this.formatToParts = function(l) {
|
|
3756
|
+
return pe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3808
3757
|
}, this.resolvedOptions = function() {
|
|
3809
|
-
var
|
|
3758
|
+
var l;
|
|
3810
3759
|
return {
|
|
3811
|
-
locale: ((
|
|
3760
|
+
locale: ((l = s.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
3812
3761
|
};
|
|
3813
3762
|
}, this.getAst = function() {
|
|
3814
|
-
return
|
|
3763
|
+
return s.ast;
|
|
3815
3764
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3816
3765
|
if (this.message = t, !e.__parse)
|
|
3817
3766
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3818
|
-
var
|
|
3819
|
-
|
|
3820
|
-
var
|
|
3821
|
-
this.ast = e.__parse(t, g(g({},
|
|
3767
|
+
var a = i || {};
|
|
3768
|
+
a.formatters;
|
|
3769
|
+
var o = Tr(a, ["formatters"]);
|
|
3770
|
+
this.ast = e.__parse(t, g(g({}, o), { locale: this.resolvedLocale }));
|
|
3822
3771
|
} else
|
|
3823
3772
|
this.ast = t;
|
|
3824
3773
|
if (!Array.isArray(this.ast))
|
|
3825
3774
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3826
|
-
this.formats =
|
|
3775
|
+
this.formats = Xn(e.formats, n), this.formatters = i && i.formatters || zn(this.formatterCache);
|
|
3827
3776
|
}
|
|
3828
3777
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3829
3778
|
get: function() {
|
|
@@ -3832,11 +3781,11 @@ var ai = (
|
|
|
3832
3781
|
enumerable: !1,
|
|
3833
3782
|
configurable: !0
|
|
3834
3783
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3835
|
-
if (typeof Intl.Locale
|
|
3784
|
+
if (!(typeof Intl.Locale > "u")) {
|
|
3836
3785
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3837
3786
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3838
3787
|
}
|
|
3839
|
-
}, e.__parse =
|
|
3788
|
+
}, e.__parse = Gn, e.formats = {
|
|
3840
3789
|
number: {
|
|
3841
3790
|
integer: {
|
|
3842
3791
|
maximumFractionDigits: 0
|
|
@@ -3897,7 +3846,7 @@ var ai = (
|
|
|
3897
3846
|
}, e;
|
|
3898
3847
|
}()
|
|
3899
3848
|
);
|
|
3900
|
-
function
|
|
3849
|
+
function Qn(e, t) {
|
|
3901
3850
|
if (t == null)
|
|
3902
3851
|
return;
|
|
3903
3852
|
if (t in e)
|
|
@@ -3907,9 +3856,9 @@ function ui(e, t) {
|
|
|
3907
3856
|
for (let i = 0; i < r.length; i++)
|
|
3908
3857
|
if (typeof n == "object") {
|
|
3909
3858
|
if (i > 0) {
|
|
3910
|
-
const
|
|
3911
|
-
if (
|
|
3912
|
-
n = n[
|
|
3859
|
+
const s = r.slice(i, r.length).join(".");
|
|
3860
|
+
if (s in n) {
|
|
3861
|
+
n = n[s];
|
|
3913
3862
|
break;
|
|
3914
3863
|
}
|
|
3915
3864
|
}
|
|
@@ -3918,92 +3867,92 @@ function ui(e, t) {
|
|
|
3918
3867
|
n = void 0;
|
|
3919
3868
|
return n;
|
|
3920
3869
|
}
|
|
3921
|
-
const
|
|
3870
|
+
const R = {}, Jn = (e, t, r) => r && (t in R || (R[t] = {}), e in R[t] || (R[t][e] = r), r), Yt = (e, t) => {
|
|
3922
3871
|
if (t == null)
|
|
3923
3872
|
return;
|
|
3924
|
-
if (t in
|
|
3925
|
-
return
|
|
3926
|
-
const r =
|
|
3873
|
+
if (t in R && e in R[t])
|
|
3874
|
+
return R[t][e];
|
|
3875
|
+
const r = Ee(t);
|
|
3927
3876
|
for (let n = 0; n < r.length; n++) {
|
|
3928
|
-
const i = r[n],
|
|
3929
|
-
if (
|
|
3930
|
-
return
|
|
3877
|
+
const i = r[n], s = qn(i, e);
|
|
3878
|
+
if (s)
|
|
3879
|
+
return Jn(e, t, s);
|
|
3931
3880
|
}
|
|
3932
3881
|
};
|
|
3933
|
-
let
|
|
3934
|
-
const
|
|
3935
|
-
function
|
|
3936
|
-
return
|
|
3882
|
+
let Ye;
|
|
3883
|
+
const ae = ve({});
|
|
3884
|
+
function Yn(e) {
|
|
3885
|
+
return Ye[e] || null;
|
|
3937
3886
|
}
|
|
3938
|
-
function
|
|
3939
|
-
return e in
|
|
3887
|
+
function qt(e) {
|
|
3888
|
+
return e in Ye;
|
|
3940
3889
|
}
|
|
3941
|
-
function
|
|
3942
|
-
if (!
|
|
3890
|
+
function qn(e, t) {
|
|
3891
|
+
if (!qt(e))
|
|
3943
3892
|
return null;
|
|
3944
|
-
const r =
|
|
3945
|
-
return
|
|
3893
|
+
const r = Yn(e);
|
|
3894
|
+
return Qn(r, t);
|
|
3946
3895
|
}
|
|
3947
|
-
function
|
|
3896
|
+
function Kn(e) {
|
|
3948
3897
|
if (e == null)
|
|
3949
3898
|
return;
|
|
3950
|
-
const t =
|
|
3899
|
+
const t = Ee(e);
|
|
3951
3900
|
for (let r = 0; r < t.length; r++) {
|
|
3952
3901
|
const n = t[r];
|
|
3953
|
-
if (
|
|
3902
|
+
if (qt(n))
|
|
3954
3903
|
return n;
|
|
3955
3904
|
}
|
|
3956
3905
|
}
|
|
3957
|
-
function
|
|
3958
|
-
delete
|
|
3906
|
+
function Kt(e, ...t) {
|
|
3907
|
+
delete R[e], ae.update((r) => (r[e] = rn.all([r[e] || {}, ...t]), r));
|
|
3959
3908
|
}
|
|
3960
|
-
|
|
3961
|
-
[
|
|
3909
|
+
Y(
|
|
3910
|
+
[ae],
|
|
3962
3911
|
([e]) => Object.keys(e)
|
|
3963
3912
|
);
|
|
3964
|
-
|
|
3965
|
-
const
|
|
3966
|
-
function
|
|
3967
|
-
|
|
3913
|
+
ae.subscribe((e) => Ye = e);
|
|
3914
|
+
const me = {};
|
|
3915
|
+
function ei(e, t) {
|
|
3916
|
+
me[e].delete(t), me[e].size === 0 && delete me[e];
|
|
3968
3917
|
}
|
|
3969
|
-
function
|
|
3970
|
-
return
|
|
3918
|
+
function er(e) {
|
|
3919
|
+
return me[e];
|
|
3971
3920
|
}
|
|
3972
|
-
function
|
|
3973
|
-
return
|
|
3974
|
-
const r =
|
|
3921
|
+
function ti(e) {
|
|
3922
|
+
return Ee(e).map((t) => {
|
|
3923
|
+
const r = er(t);
|
|
3975
3924
|
return [t, r ? [...r] : []];
|
|
3976
3925
|
}).filter(([, t]) => t.length > 0);
|
|
3977
3926
|
}
|
|
3978
|
-
function
|
|
3979
|
-
return e == null ? !1 :
|
|
3927
|
+
function Ve(e) {
|
|
3928
|
+
return e == null ? !1 : Ee(e).some(
|
|
3980
3929
|
(t) => {
|
|
3981
3930
|
var r;
|
|
3982
|
-
return (r =
|
|
3931
|
+
return (r = er(t)) == null ? void 0 : r.size;
|
|
3983
3932
|
}
|
|
3984
3933
|
);
|
|
3985
3934
|
}
|
|
3986
|
-
function
|
|
3935
|
+
function ri(e, t) {
|
|
3987
3936
|
return Promise.all(
|
|
3988
|
-
t.map((n) => (
|
|
3989
|
-
).then((n) =>
|
|
3990
|
-
}
|
|
3991
|
-
const
|
|
3992
|
-
function
|
|
3993
|
-
if (!
|
|
3994
|
-
return e in
|
|
3995
|
-
const t =
|
|
3996
|
-
return
|
|
3937
|
+
t.map((n) => (ei(e, n), n().then((i) => i.default || i)))
|
|
3938
|
+
).then((n) => Kt(e, ...n));
|
|
3939
|
+
}
|
|
3940
|
+
const ee = {};
|
|
3941
|
+
function tr(e) {
|
|
3942
|
+
if (!Ve(e))
|
|
3943
|
+
return e in ee ? ee[e] : Promise.resolve();
|
|
3944
|
+
const t = ti(e);
|
|
3945
|
+
return ee[e] = Promise.all(
|
|
3997
3946
|
t.map(
|
|
3998
|
-
([r, n]) =>
|
|
3947
|
+
([r, n]) => ri(r, n)
|
|
3999
3948
|
)
|
|
4000
3949
|
).then(() => {
|
|
4001
|
-
if (
|
|
4002
|
-
return
|
|
4003
|
-
delete
|
|
4004
|
-
}),
|
|
3950
|
+
if (Ve(e))
|
|
3951
|
+
return tr(e);
|
|
3952
|
+
delete ee[e];
|
|
3953
|
+
}), ee[e];
|
|
4005
3954
|
}
|
|
4006
|
-
const
|
|
3955
|
+
const ni = {
|
|
4007
3956
|
number: {
|
|
4008
3957
|
scientific: { notation: "scientific" },
|
|
4009
3958
|
engineering: { notation: "engineering" },
|
|
@@ -4032,159 +3981,159 @@ const bi = {
|
|
|
4032
3981
|
timeZoneName: "short"
|
|
4033
3982
|
}
|
|
4034
3983
|
}
|
|
4035
|
-
},
|
|
3984
|
+
}, ii = {
|
|
4036
3985
|
fallbackLocale: null,
|
|
4037
3986
|
loadingDelay: 200,
|
|
4038
|
-
formats:
|
|
3987
|
+
formats: ni,
|
|
4039
3988
|
warnOnMissingMessages: !0,
|
|
4040
3989
|
handleMissingMessage: void 0,
|
|
4041
3990
|
ignoreTag: !0
|
|
4042
|
-
},
|
|
4043
|
-
function
|
|
4044
|
-
return
|
|
4045
|
-
}
|
|
4046
|
-
const
|
|
4047
|
-
var
|
|
4048
|
-
for (var r in t
|
|
4049
|
-
|
|
4050
|
-
if (
|
|
4051
|
-
for (var r of
|
|
4052
|
-
|
|
3991
|
+
}, si = ii;
|
|
3992
|
+
function Q() {
|
|
3993
|
+
return si;
|
|
3994
|
+
}
|
|
3995
|
+
const Ae = ve(!1);
|
|
3996
|
+
var oi = Object.defineProperty, ai = Object.defineProperties, ui = Object.getOwnPropertyDescriptors, yt = Object.getOwnPropertySymbols, hi = Object.prototype.hasOwnProperty, li = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, fi = (e, t) => {
|
|
3997
|
+
for (var r in t)
|
|
3998
|
+
hi.call(t, r) && vt(e, r, t[r]);
|
|
3999
|
+
if (yt)
|
|
4000
|
+
for (var r of yt(t))
|
|
4001
|
+
li.call(t, r) && vt(e, r, t[r]);
|
|
4053
4002
|
return e;
|
|
4054
|
-
},
|
|
4055
|
-
let
|
|
4056
|
-
const
|
|
4057
|
-
function
|
|
4003
|
+
}, ci = (e, t) => ai(e, ui(t));
|
|
4004
|
+
let Xe;
|
|
4005
|
+
const be = ve(null);
|
|
4006
|
+
function _t(e) {
|
|
4058
4007
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4059
4008
|
}
|
|
4060
|
-
function
|
|
4061
|
-
const r =
|
|
4062
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4009
|
+
function Ee(e, t = Q().fallbackLocale) {
|
|
4010
|
+
const r = _t(e);
|
|
4011
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ..._t(t)])] : r;
|
|
4063
4012
|
}
|
|
4064
|
-
function
|
|
4065
|
-
return
|
|
4013
|
+
function U() {
|
|
4014
|
+
return Xe ?? void 0;
|
|
4066
4015
|
}
|
|
4067
|
-
|
|
4068
|
-
|
|
4016
|
+
be.subscribe((e) => {
|
|
4017
|
+
Xe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4069
4018
|
});
|
|
4070
|
-
const
|
|
4071
|
-
if (e &&
|
|
4072
|
-
const { loadingDelay: t } =
|
|
4019
|
+
const di = (e) => {
|
|
4020
|
+
if (e && Kn(e) && Ve(e)) {
|
|
4021
|
+
const { loadingDelay: t } = Q();
|
|
4073
4022
|
let r;
|
|
4074
|
-
return typeof window
|
|
4075
|
-
() =>
|
|
4023
|
+
return typeof window < "u" && U() != null && t ? r = window.setTimeout(
|
|
4024
|
+
() => Ae.set(!0),
|
|
4076
4025
|
t
|
|
4077
|
-
) :
|
|
4078
|
-
|
|
4026
|
+
) : Ae.set(!0), tr(e).then(() => {
|
|
4027
|
+
be.set(e);
|
|
4079
4028
|
}).finally(() => {
|
|
4080
|
-
clearTimeout(r),
|
|
4029
|
+
clearTimeout(r), Ae.set(!1);
|
|
4081
4030
|
});
|
|
4082
4031
|
}
|
|
4083
|
-
return
|
|
4084
|
-
},
|
|
4085
|
-
set:
|
|
4086
|
-
}),
|
|
4032
|
+
return be.set(e);
|
|
4033
|
+
}, q = ci(fi({}, be), {
|
|
4034
|
+
set: di
|
|
4035
|
+
}), xe = (e) => {
|
|
4087
4036
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4088
4037
|
return (n) => {
|
|
4089
4038
|
const i = JSON.stringify(n);
|
|
4090
4039
|
return i in t ? t[i] : t[i] = e(n);
|
|
4091
4040
|
};
|
|
4092
4041
|
};
|
|
4093
|
-
var
|
|
4042
|
+
var pi = Object.defineProperty, ge = Object.getOwnPropertySymbols, rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
4094
4043
|
for (var r in t || (t = {}))
|
|
4095
|
-
|
|
4096
|
-
if (
|
|
4097
|
-
for (var r of
|
|
4098
|
-
|
|
4044
|
+
rr.call(t, r) && Et(e, r, t[r]);
|
|
4045
|
+
if (ge)
|
|
4046
|
+
for (var r of ge(t))
|
|
4047
|
+
nr.call(t, r) && Et(e, r, t[r]);
|
|
4099
4048
|
return e;
|
|
4100
|
-
},
|
|
4049
|
+
}, K = (e, t) => {
|
|
4101
4050
|
var r = {};
|
|
4102
4051
|
for (var n in e)
|
|
4103
|
-
|
|
4104
|
-
if (e != null &&
|
|
4105
|
-
for (var n of
|
|
4106
|
-
t.indexOf(n) < 0 &&
|
|
4052
|
+
rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4053
|
+
if (e != null && ge)
|
|
4054
|
+
for (var n of ge(e))
|
|
4055
|
+
t.indexOf(n) < 0 && nr.call(e, n) && (r[n] = e[n]);
|
|
4107
4056
|
return r;
|
|
4108
4057
|
};
|
|
4109
|
-
const
|
|
4110
|
-
const { formats: r } =
|
|
4058
|
+
const ie = (e, t) => {
|
|
4059
|
+
const { formats: r } = Q();
|
|
4111
4060
|
if (e in r && t in r[e])
|
|
4112
4061
|
return r[e][t];
|
|
4113
4062
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4114
|
-
},
|
|
4063
|
+
}, mi = xe(
|
|
4115
4064
|
(e) => {
|
|
4116
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4065
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4117
4066
|
if (r == null)
|
|
4118
4067
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4119
|
-
return n && (i =
|
|
4068
|
+
return n && (i = ie("number", n)), new Intl.NumberFormat(r, i);
|
|
4120
4069
|
}
|
|
4121
|
-
),
|
|
4070
|
+
), bi = xe(
|
|
4122
4071
|
(e) => {
|
|
4123
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4072
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4124
4073
|
if (r == null)
|
|
4125
4074
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4126
|
-
return n ? i =
|
|
4075
|
+
return n ? i = ie("date", n) : Object.keys(i).length === 0 && (i = ie("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4127
4076
|
}
|
|
4128
|
-
),
|
|
4077
|
+
), gi = xe(
|
|
4129
4078
|
(e) => {
|
|
4130
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4079
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4131
4080
|
if (r == null)
|
|
4132
4081
|
throw new Error(
|
|
4133
4082
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4134
4083
|
);
|
|
4135
|
-
return n ? i =
|
|
4084
|
+
return n ? i = ie("time", n) : Object.keys(i).length === 0 && (i = ie("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4136
4085
|
}
|
|
4137
|
-
),
|
|
4086
|
+
), yi = (e = {}) => {
|
|
4138
4087
|
var t = e, {
|
|
4139
|
-
locale: r =
|
|
4140
|
-
} = t, n =
|
|
4088
|
+
locale: r = U()
|
|
4089
|
+
} = t, n = K(t, [
|
|
4141
4090
|
"locale"
|
|
4142
4091
|
]);
|
|
4143
|
-
return
|
|
4144
|
-
},
|
|
4092
|
+
return mi(qe({ locale: r }, n));
|
|
4093
|
+
}, vi = (e = {}) => {
|
|
4145
4094
|
var t = e, {
|
|
4146
|
-
locale: r =
|
|
4147
|
-
} = t, n =
|
|
4095
|
+
locale: r = U()
|
|
4096
|
+
} = t, n = K(t, [
|
|
4148
4097
|
"locale"
|
|
4149
4098
|
]);
|
|
4150
|
-
return
|
|
4151
|
-
},
|
|
4099
|
+
return bi(qe({ locale: r }, n));
|
|
4100
|
+
}, _i = (e = {}) => {
|
|
4152
4101
|
var t = e, {
|
|
4153
|
-
locale: r =
|
|
4154
|
-
} = t, n =
|
|
4102
|
+
locale: r = U()
|
|
4103
|
+
} = t, n = K(t, [
|
|
4155
4104
|
"locale"
|
|
4156
4105
|
]);
|
|
4157
|
-
return
|
|
4158
|
-
},
|
|
4106
|
+
return gi(qe({ locale: r }, n));
|
|
4107
|
+
}, Ei = xe(
|
|
4159
4108
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4160
|
-
(e, t =
|
|
4161
|
-
ignoreTag:
|
|
4109
|
+
(e, t = U()) => new Zn(e, t, Q().formats, {
|
|
4110
|
+
ignoreTag: Q().ignoreTag
|
|
4162
4111
|
})
|
|
4163
|
-
),
|
|
4164
|
-
var r, n, i,
|
|
4165
|
-
let
|
|
4166
|
-
typeof e == "object" && (
|
|
4112
|
+
), xi = (e, t = {}) => {
|
|
4113
|
+
var r, n, i, s;
|
|
4114
|
+
let a = t;
|
|
4115
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
4167
4116
|
const {
|
|
4168
|
-
values:
|
|
4169
|
-
locale:
|
|
4117
|
+
values: o,
|
|
4118
|
+
locale: l = U(),
|
|
4170
4119
|
default: u
|
|
4171
|
-
} =
|
|
4172
|
-
if (
|
|
4120
|
+
} = a;
|
|
4121
|
+
if (l == null)
|
|
4173
4122
|
throw new Error(
|
|
4174
4123
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4175
4124
|
);
|
|
4176
|
-
let
|
|
4177
|
-
if (!
|
|
4178
|
-
|
|
4179
|
-
else if (typeof
|
|
4125
|
+
let h = Yt(e, l);
|
|
4126
|
+
if (!h)
|
|
4127
|
+
h = (s = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
4128
|
+
else if (typeof h != "string")
|
|
4180
4129
|
return console.warn(
|
|
4181
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
4182
|
-
),
|
|
4183
|
-
if (!
|
|
4184
|
-
return
|
|
4185
|
-
let f =
|
|
4130
|
+
`[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.`
|
|
4131
|
+
), h;
|
|
4132
|
+
if (!o)
|
|
4133
|
+
return h;
|
|
4134
|
+
let f = h;
|
|
4186
4135
|
try {
|
|
4187
|
-
f =
|
|
4136
|
+
f = Ei(h, l).format(o);
|
|
4188
4137
|
} catch (c) {
|
|
4189
4138
|
c instanceof Error && console.warn(
|
|
4190
4139
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4192,20 +4141,20 @@ const oe = (e, t) => {
|
|
|
4192
4141
|
);
|
|
4193
4142
|
}
|
|
4194
4143
|
return f;
|
|
4195
|
-
},
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
window.emWidgets = { topic:
|
|
4201
|
-
const
|
|
4202
|
-
function
|
|
4203
|
-
|
|
4204
|
-
}
|
|
4205
|
-
function
|
|
4206
|
-
|
|
4207
|
-
}
|
|
4208
|
-
const
|
|
4144
|
+
}, Si = (e, t) => _i(t).format(e), wi = (e, t) => vi(t).format(e), Ti = (e, t) => yi(t).format(e), Hi = (e, t = U()) => Yt(e, t), Pi = Y([q, ae], () => xi);
|
|
4145
|
+
Y([q], () => Si);
|
|
4146
|
+
Y([q], () => wi);
|
|
4147
|
+
Y([q], () => Ti);
|
|
4148
|
+
Y([q, ae], () => Hi);
|
|
4149
|
+
window.emWidgets = { topic: Dr };
|
|
4150
|
+
const Bi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4151
|
+
function xt(e, t) {
|
|
4152
|
+
Kt(e, t);
|
|
4153
|
+
}
|
|
4154
|
+
function Ai(e) {
|
|
4155
|
+
q.set(e);
|
|
4156
|
+
}
|
|
4157
|
+
const St = {
|
|
4209
4158
|
en: {
|
|
4210
4159
|
titlePendingWithdrawals: "Pending Withdrawal",
|
|
4211
4160
|
loading: "Loading, please wait ..."
|
|
@@ -4243,213 +4192,213 @@ const It = {
|
|
|
4243
4192
|
loading: "Loading, please wait ..."
|
|
4244
4193
|
}
|
|
4245
4194
|
};
|
|
4246
|
-
function
|
|
4247
|
-
|
|
4195
|
+
function Oi(e) {
|
|
4196
|
+
or(e, "svelte-1y7sj7e", ".PendingWithdrawalsWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%}.PendingWithdrawalsWrapper.PendingWithdrawalsWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PendingWithdrawalsTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.PendingWithdrawalsTitleMobile{font-size:var(--emw--size-standard, 16px)}.PendingWithdrawalsTitleNone{display:none}.PendingWithdrawalsIframeWrapper iframe{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 20px)}");
|
|
4248
4197
|
}
|
|
4249
|
-
function
|
|
4250
|
-
let t, r, n, i,
|
|
4198
|
+
function Ii(e) {
|
|
4199
|
+
let t, r, n, i, s, a, o, l, u, h, f = (
|
|
4251
4200
|
/*$_*/
|
|
4252
4201
|
e[3]("titlePendingWithdrawals") + ""
|
|
4253
|
-
), c,
|
|
4202
|
+
), c, d, v;
|
|
4254
4203
|
return {
|
|
4255
4204
|
c() {
|
|
4256
|
-
t =
|
|
4205
|
+
t = N("div"), r = G("svg"), n = G("defs"), i = G("style"), s = re(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = G("g"), o = G("g"), l = G("path"), u = Oe(), h = N("h2"), c = re(f), E(l, "class", "aaa"), E(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), E(l, "transform", "translate(15 15) rotate(180)"), E(o, "transform", "translate(20 158)"), E(a, "transform", "translate(-20 -158)"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(r, "width", "15"), E(r, "height", "15"), E(r, "viewBox", "0 0 15 15"), E(h, "class", "PendingWithdrawalsTitleMobile"), E(t, "class", "MenuReturnButton");
|
|
4257
4206
|
},
|
|
4258
|
-
m(
|
|
4259
|
-
|
|
4207
|
+
m(p, S) {
|
|
4208
|
+
oe(p, t, S), x(t, r), x(r, n), x(n, i), x(i, s), x(r, a), x(a, o), x(o, l), x(t, u), x(t, h), x(h, c), d || (v = hr(
|
|
4260
4209
|
t,
|
|
4261
4210
|
"click",
|
|
4262
4211
|
/*click_handler*/
|
|
4263
4212
|
e[13]
|
|
4264
|
-
),
|
|
4213
|
+
), d = !0);
|
|
4265
4214
|
},
|
|
4266
|
-
p(
|
|
4215
|
+
p(p, S) {
|
|
4267
4216
|
S & /*$_*/
|
|
4268
4217
|
8 && f !== (f = /*$_*/
|
|
4269
|
-
|
|
4218
|
+
p[3]("titlePendingWithdrawals") + "") && Ze(c, f);
|
|
4270
4219
|
},
|
|
4271
|
-
d(
|
|
4272
|
-
|
|
4220
|
+
d(p) {
|
|
4221
|
+
p && J(t), d = !1, v();
|
|
4273
4222
|
}
|
|
4274
4223
|
};
|
|
4275
4224
|
}
|
|
4276
|
-
function
|
|
4225
|
+
function Ni(e) {
|
|
4277
4226
|
let t, r, n;
|
|
4278
4227
|
return {
|
|
4279
4228
|
c() {
|
|
4280
|
-
t =
|
|
4229
|
+
t = N("div"), r = N("iframe"), et(r.src, n = /*iframeUrl*/
|
|
4281
4230
|
e[2]) || E(r, "src", n), E(r, "title", "Pending Withdrawals Iframe"), E(t, "class", "PendingWithdrawalsIframeWrapper");
|
|
4282
4231
|
},
|
|
4283
|
-
m(i,
|
|
4284
|
-
|
|
4232
|
+
m(i, s) {
|
|
4233
|
+
oe(i, t, s), x(t, r);
|
|
4285
4234
|
},
|
|
4286
|
-
p(i,
|
|
4287
|
-
|
|
4288
|
-
4 && !
|
|
4235
|
+
p(i, s) {
|
|
4236
|
+
s & /*iframeUrl*/
|
|
4237
|
+
4 && !et(r.src, n = /*iframeUrl*/
|
|
4289
4238
|
i[2]) && E(r, "src", n);
|
|
4290
4239
|
},
|
|
4291
4240
|
d(i) {
|
|
4292
|
-
i &&
|
|
4241
|
+
i && J(t);
|
|
4293
4242
|
}
|
|
4294
4243
|
};
|
|
4295
4244
|
}
|
|
4296
|
-
function
|
|
4245
|
+
function Li(e) {
|
|
4297
4246
|
let t, r = (
|
|
4298
4247
|
/*$_*/
|
|
4299
4248
|
e[3]("loading") + ""
|
|
4300
4249
|
), n;
|
|
4301
4250
|
return {
|
|
4302
4251
|
c() {
|
|
4303
|
-
t =
|
|
4252
|
+
t = N("p"), n = re(r);
|
|
4304
4253
|
},
|
|
4305
|
-
m(i,
|
|
4306
|
-
|
|
4254
|
+
m(i, s) {
|
|
4255
|
+
oe(i, t, s), x(t, n);
|
|
4307
4256
|
},
|
|
4308
|
-
p(i,
|
|
4309
|
-
|
|
4257
|
+
p(i, s) {
|
|
4258
|
+
s & /*$_*/
|
|
4310
4259
|
8 && r !== (r = /*$_*/
|
|
4311
|
-
i[3]("loading") + "") &&
|
|
4260
|
+
i[3]("loading") + "") && Ze(n, r);
|
|
4312
4261
|
},
|
|
4313
4262
|
d(i) {
|
|
4314
|
-
i &&
|
|
4263
|
+
i && J(t);
|
|
4315
4264
|
}
|
|
4316
4265
|
};
|
|
4317
4266
|
}
|
|
4318
|
-
function
|
|
4267
|
+
function Ci(e) {
|
|
4319
4268
|
let t, r, n, i = (
|
|
4320
4269
|
/*$_*/
|
|
4321
4270
|
e[3]("titlePendingWithdrawals") + ""
|
|
4322
|
-
),
|
|
4271
|
+
), s, a, o = (
|
|
4323
4272
|
/*isMobile*/
|
|
4324
|
-
e[4] &&
|
|
4273
|
+
e[4] && Ii(e)
|
|
4325
4274
|
);
|
|
4326
|
-
function
|
|
4275
|
+
function l(f, c) {
|
|
4327
4276
|
return (
|
|
4328
4277
|
/*isLoading*/
|
|
4329
|
-
f[1] ?
|
|
4278
|
+
f[1] ? Li : Ni
|
|
4330
4279
|
);
|
|
4331
4280
|
}
|
|
4332
|
-
let u =
|
|
4281
|
+
let u = l(e), h = u(e);
|
|
4333
4282
|
return {
|
|
4334
4283
|
c() {
|
|
4335
|
-
t =
|
|
4284
|
+
t = N("div"), o && o.c(), r = Oe(), n = N("h2"), s = re(i), a = Oe(), h.c(), E(n, "class", "PendingWithdrawalsTitle " + /*isMobile*/
|
|
4336
4285
|
(e[4] ? "PendingWithdrawalsTitleNone" : "")), E(t, "class", "PendingWithdrawalsWrapper " + /*isMobile*/
|
|
4337
4286
|
(e[4] ? "PendingWithdrawalsWrapperMobile" : ""));
|
|
4338
4287
|
},
|
|
4339
4288
|
m(f, c) {
|
|
4340
|
-
|
|
4289
|
+
oe(f, t, c), o && o.m(t, null), x(t, r), x(t, n), x(n, s), x(t, a), h.m(t, null), e[14](t);
|
|
4341
4290
|
},
|
|
4342
4291
|
p(f, [c]) {
|
|
4343
4292
|
/*isMobile*/
|
|
4344
|
-
f[4] &&
|
|
4293
|
+
f[4] && o.p(f, c), c & /*$_*/
|
|
4345
4294
|
8 && i !== (i = /*$_*/
|
|
4346
|
-
f[3]("titlePendingWithdrawals") + "") &&
|
|
4295
|
+
f[3]("titlePendingWithdrawals") + "") && Ze(s, i), u === (u = l(f)) && h ? h.p(f, c) : (h.d(1), h = u(f), h && (h.c(), h.m(t, null)));
|
|
4347
4296
|
},
|
|
4348
|
-
i:
|
|
4349
|
-
o:
|
|
4297
|
+
i: B,
|
|
4298
|
+
o: B,
|
|
4350
4299
|
d(f) {
|
|
4351
|
-
f &&
|
|
4300
|
+
f && J(t), o && o.d(), h.d(), e[14](null);
|
|
4352
4301
|
}
|
|
4353
4302
|
};
|
|
4354
4303
|
}
|
|
4355
|
-
function
|
|
4304
|
+
function Mi(e, t, r) {
|
|
4356
4305
|
let n;
|
|
4357
|
-
|
|
4358
|
-
let { endpoint: i = "" } = t, { session:
|
|
4306
|
+
sr(e, Pi, (y) => r(3, n = y));
|
|
4307
|
+
let { endpoint: i = "" } = t, { session: s = "" } = t, { playerid: a = "" } = t, { lang: o = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h = "" } = t, f, c = window.navigator.userAgent, d = Bi(c) !== "PC", v = !0, p = "";
|
|
4359
4308
|
const S = () => {
|
|
4360
|
-
fetch(
|
|
4361
|
-
Object.keys(
|
|
4362
|
-
|
|
4309
|
+
fetch(h).then((P) => P.json()).then((P) => {
|
|
4310
|
+
Object.keys(P).forEach((H) => {
|
|
4311
|
+
xt(H, P[H]);
|
|
4363
4312
|
});
|
|
4364
|
-
}).catch((
|
|
4365
|
-
console.log(
|
|
4313
|
+
}).catch((P) => {
|
|
4314
|
+
console.log(P);
|
|
4366
4315
|
});
|
|
4367
4316
|
};
|
|
4368
|
-
Object.keys(
|
|
4369
|
-
|
|
4317
|
+
Object.keys(St).forEach((y) => {
|
|
4318
|
+
xt(y, St[y]);
|
|
4370
4319
|
});
|
|
4371
|
-
const
|
|
4320
|
+
const C = () => {
|
|
4372
4321
|
window.postMessage(
|
|
4373
4322
|
{
|
|
4374
4323
|
type: "PlayerAccountMenuActive",
|
|
4375
|
-
isMobile:
|
|
4324
|
+
isMobile: d
|
|
4376
4325
|
},
|
|
4377
4326
|
window.location.href
|
|
4378
4327
|
);
|
|
4379
|
-
},
|
|
4380
|
-
let y = new URL(`${i}/v1/player/${
|
|
4381
|
-
y.searchParams.append("language",
|
|
4382
|
-
let
|
|
4328
|
+
}, M = () => {
|
|
4329
|
+
let y = new URL(`${i}/v1/player/${a}/hostedcashier/pendingwithdrawals`);
|
|
4330
|
+
y.searchParams.append("language", o);
|
|
4331
|
+
let P = {
|
|
4383
4332
|
method: "GET",
|
|
4384
4333
|
headers: {
|
|
4385
|
-
"X-SessionId":
|
|
4334
|
+
"X-SessionId": s,
|
|
4386
4335
|
accept: "application/json"
|
|
4387
4336
|
}
|
|
4388
4337
|
};
|
|
4389
|
-
fetch(y.href,
|
|
4338
|
+
fetch(y.href, P).then((H) => H.json()).then(
|
|
4390
4339
|
(H) => {
|
|
4391
|
-
r(1, v = !1), r(2,
|
|
4340
|
+
r(1, v = !1), r(2, p = H.CashierUrl);
|
|
4392
4341
|
},
|
|
4393
4342
|
(H) => {
|
|
4394
4343
|
console.error(H);
|
|
4395
4344
|
}
|
|
4396
4345
|
);
|
|
4397
4346
|
}, T = () => {
|
|
4398
|
-
|
|
4399
|
-
},
|
|
4347
|
+
Ai(o);
|
|
4348
|
+
}, $ = () => {
|
|
4400
4349
|
let y = document.createElement("style");
|
|
4401
|
-
y.innerHTML =
|
|
4402
|
-
},
|
|
4403
|
-
let y = new URL(u),
|
|
4350
|
+
y.innerHTML = l, f.appendChild(y);
|
|
4351
|
+
}, A = () => {
|
|
4352
|
+
let y = new URL(u), P = document.createElement("style");
|
|
4404
4353
|
fetch(y.href).then((H) => H.text()).then((H) => {
|
|
4405
|
-
|
|
4354
|
+
P.innerHTML = H, setTimeout(
|
|
4406
4355
|
() => {
|
|
4407
|
-
f.appendChild(
|
|
4356
|
+
f.appendChild(P);
|
|
4408
4357
|
},
|
|
4409
4358
|
1
|
|
4410
4359
|
);
|
|
4411
4360
|
});
|
|
4412
|
-
},
|
|
4413
|
-
function
|
|
4414
|
-
|
|
4361
|
+
}, D = () => C();
|
|
4362
|
+
function ue(y) {
|
|
4363
|
+
Ie[y ? "unshift" : "push"](() => {
|
|
4415
4364
|
f = y, r(0, f);
|
|
4416
4365
|
});
|
|
4417
4366
|
}
|
|
4418
4367
|
return e.$$set = (y) => {
|
|
4419
|
-
"endpoint" in y && r(6, i = y.endpoint), "session" in y && r(7,
|
|
4368
|
+
"endpoint" in y && r(6, i = y.endpoint), "session" in y && r(7, s = y.session), "playerid" in y && r(8, a = y.playerid), "lang" in y && r(9, o = y.lang), "clientstyling" in y && r(10, l = y.clientstyling), "clientstylingurl" in y && r(11, u = y.clientstylingurl), "translationurl" in y && r(12, h = y.translationurl);
|
|
4420
4369
|
}, e.$$.update = () => {
|
|
4421
4370
|
e.$$.dirty & /*lang*/
|
|
4422
|
-
512 &&
|
|
4423
|
-
960 &&
|
|
4424
|
-
2049 && u && f &&
|
|
4425
|
-
1025 &&
|
|
4426
|
-
4096 &&
|
|
4371
|
+
512 && o && T(), e.$$.dirty & /*session, playerid, endpoint, lang*/
|
|
4372
|
+
960 && s && a && i && o && M(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4373
|
+
2049 && u && f && A(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4374
|
+
1025 && l && f && $(), e.$$.dirty & /*translationurl*/
|
|
4375
|
+
4096 && h && S();
|
|
4427
4376
|
}, [
|
|
4428
4377
|
f,
|
|
4429
4378
|
v,
|
|
4430
|
-
d,
|
|
4431
|
-
n,
|
|
4432
4379
|
p,
|
|
4433
|
-
|
|
4380
|
+
n,
|
|
4381
|
+
d,
|
|
4382
|
+
C,
|
|
4434
4383
|
i,
|
|
4435
|
-
o,
|
|
4436
4384
|
s,
|
|
4437
4385
|
a,
|
|
4438
|
-
|
|
4439
|
-
u,
|
|
4386
|
+
o,
|
|
4440
4387
|
l,
|
|
4441
|
-
|
|
4442
|
-
|
|
4388
|
+
u,
|
|
4389
|
+
h,
|
|
4390
|
+
D,
|
|
4391
|
+
ue
|
|
4443
4392
|
];
|
|
4444
4393
|
}
|
|
4445
|
-
class
|
|
4394
|
+
class Ri extends Sr {
|
|
4446
4395
|
constructor(t) {
|
|
4447
|
-
super(),
|
|
4396
|
+
super(), Er(
|
|
4448
4397
|
this,
|
|
4449
4398
|
t,
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4399
|
+
Mi,
|
|
4400
|
+
Ci,
|
|
4401
|
+
Tt,
|
|
4453
4402
|
{
|
|
4454
4403
|
endpoint: 6,
|
|
4455
4404
|
session: 7,
|
|
@@ -4459,53 +4408,53 @@ class Qi extends $r {
|
|
|
4459
4408
|
clientstylingurl: 11,
|
|
4460
4409
|
translationurl: 12
|
|
4461
4410
|
},
|
|
4462
|
-
|
|
4411
|
+
Oi
|
|
4463
4412
|
);
|
|
4464
4413
|
}
|
|
4465
4414
|
get endpoint() {
|
|
4466
4415
|
return this.$$.ctx[6];
|
|
4467
4416
|
}
|
|
4468
4417
|
set endpoint(t) {
|
|
4469
|
-
this.$$set({ endpoint: t }),
|
|
4418
|
+
this.$$set({ endpoint: t }), O();
|
|
4470
4419
|
}
|
|
4471
4420
|
get session() {
|
|
4472
4421
|
return this.$$.ctx[7];
|
|
4473
4422
|
}
|
|
4474
4423
|
set session(t) {
|
|
4475
|
-
this.$$set({ session: t }),
|
|
4424
|
+
this.$$set({ session: t }), O();
|
|
4476
4425
|
}
|
|
4477
4426
|
get playerid() {
|
|
4478
4427
|
return this.$$.ctx[8];
|
|
4479
4428
|
}
|
|
4480
4429
|
set playerid(t) {
|
|
4481
|
-
this.$$set({ playerid: t }),
|
|
4430
|
+
this.$$set({ playerid: t }), O();
|
|
4482
4431
|
}
|
|
4483
4432
|
get lang() {
|
|
4484
4433
|
return this.$$.ctx[9];
|
|
4485
4434
|
}
|
|
4486
4435
|
set lang(t) {
|
|
4487
|
-
this.$$set({ lang: t }),
|
|
4436
|
+
this.$$set({ lang: t }), O();
|
|
4488
4437
|
}
|
|
4489
4438
|
get clientstyling() {
|
|
4490
4439
|
return this.$$.ctx[10];
|
|
4491
4440
|
}
|
|
4492
4441
|
set clientstyling(t) {
|
|
4493
|
-
this.$$set({ clientstyling: t }),
|
|
4442
|
+
this.$$set({ clientstyling: t }), O();
|
|
4494
4443
|
}
|
|
4495
4444
|
get clientstylingurl() {
|
|
4496
4445
|
return this.$$.ctx[11];
|
|
4497
4446
|
}
|
|
4498
4447
|
set clientstylingurl(t) {
|
|
4499
|
-
this.$$set({ clientstylingurl: t }),
|
|
4448
|
+
this.$$set({ clientstylingurl: t }), O();
|
|
4500
4449
|
}
|
|
4501
4450
|
get translationurl() {
|
|
4502
4451
|
return this.$$.ctx[12];
|
|
4503
4452
|
}
|
|
4504
4453
|
set translationurl(t) {
|
|
4505
|
-
this.$$set({ translationurl: t }),
|
|
4454
|
+
this.$$set({ translationurl: t }), O();
|
|
4506
4455
|
}
|
|
4507
4456
|
}
|
|
4508
|
-
|
|
4457
|
+
xr(Ri, { endpoint: {}, session: {}, playerid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4509
4458
|
export {
|
|
4510
|
-
|
|
4459
|
+
Ri as P
|
|
4511
4460
|
};
|