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