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