@everymatrix/player-account-timeout 1.55.0 → 1.56.2
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/PlayerAccountGeneralConfirmationModal-BOJYp5ik.cjs +18 -0
- package/components/{PlayerAccountGeneralConfirmationModal-0bB89rMF.js → PlayerAccountGeneralConfirmationModal-Bnh1XDOd.js} +648 -582
- package/components/{PlayerAccountGeneralConfirmationModal-ChB7aHS1.js → PlayerAccountGeneralConfirmationModal-DoeReNtd.js} +673 -607
- package/components/{PlayerAccountTimeout-DdqP9yaE.js → PlayerAccountTimeout-B6u6MiWX.js} +10455 -10705
- package/components/{PlayerAccountTimeout-kakTUp8_.js → PlayerAccountTimeout-CNH_sF9k.js} +10472 -10677
- package/components/PlayerAccountTimeout-Cf59Bjwj.cjs +3555 -0
- package/es2015/player-account-timeout.cjs +1 -1
- package/es2015/player-account-timeout.js +1 -1
- package/esnext/player-account-timeout.js +1 -1
- package/package.json +1 -1
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
- package/stencil/index-ae04a8b1-DPYODDdm.cjs +1 -0
- package/stencil/index-ae04a8b1-DRAR7dln.js +532 -0
- package/stencil/index-ae04a8b1-eSktas_K.js +516 -0
- package/stencil/ui-skeleton-C1buDKbo.cjs +1 -0
- package/stencil/ui-skeleton-C5gPr5Xv.js +11 -0
- package/stencil/ui-skeleton-M7HNQCk1.js +29 -0
- package/stencil/ui-skeleton-a642cced-BFJMszWG.js +122 -0
- package/stencil/ui-skeleton-a642cced-DO34s50a.cjs +1 -0
- package/stencil/ui-skeleton-a642cced-p8tGooXk.js +122 -0
- package/components/PlayerAccountGeneralConfirmationModal-DMLHphU8.cjs +0 -5
- package/components/PlayerAccountTimeout-4d7gE7Sk.cjs +0 -4171
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
function N() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
4
|
-
for (const r in t)
|
|
3
|
+
function pr(e, t) {
|
|
4
|
+
for (const r in t)
|
|
5
|
+
e[r] = t[r];
|
|
5
6
|
return (
|
|
6
7
|
/** @type {T & S} */
|
|
7
8
|
e
|
|
@@ -13,16 +14,16 @@ function Ct(e) {
|
|
|
13
14
|
function tt() {
|
|
14
15
|
return /* @__PURE__ */ Object.create(null);
|
|
15
16
|
}
|
|
16
|
-
function
|
|
17
|
+
function J(e) {
|
|
17
18
|
e.forEach(Ct);
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
+
function Qe(e) {
|
|
20
21
|
return typeof e == "function";
|
|
21
22
|
}
|
|
22
23
|
function Pt(e, t) {
|
|
23
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
+
function br(e) {
|
|
26
27
|
return Object.keys(e).length === 0;
|
|
27
28
|
}
|
|
28
29
|
function Ot(e, ...t) {
|
|
@@ -34,7 +35,7 @@ function Ot(e, ...t) {
|
|
|
34
35
|
const r = e.subscribe(...t);
|
|
35
36
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
+
function gr(e, t, r) {
|
|
38
39
|
e.$$.on_destroy.push(Ot(t, r));
|
|
39
40
|
}
|
|
40
41
|
function yr(e, t, r, n) {
|
|
@@ -44,9 +45,9 @@ function yr(e, t, r, n) {
|
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
function It(e, t, r, n) {
|
|
47
|
-
return e[1] && n ?
|
|
48
|
+
return e[1] && n ? pr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
+
function vr(e, t, r, n) {
|
|
50
51
|
if (e[2] && n) {
|
|
51
52
|
const i = e[2](n(r));
|
|
52
53
|
if (t.dirty === void 0)
|
|
@@ -61,13 +62,13 @@ function xr(e, t, r, n) {
|
|
|
61
62
|
}
|
|
62
63
|
return t.dirty;
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
+
function xr(e, t, r, n, i, o) {
|
|
65
66
|
if (i) {
|
|
66
67
|
const s = It(t, r, n, o);
|
|
67
68
|
e.p(s, i);
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
+
function _r(e) {
|
|
71
72
|
if (e.ctx.length > 32) {
|
|
72
73
|
const t = [], r = e.ctx.length / 32;
|
|
73
74
|
for (let n = 0; n < r; n++)
|
|
@@ -76,18 +77,19 @@ function Er(e) {
|
|
|
76
77
|
}
|
|
77
78
|
return -1;
|
|
78
79
|
}
|
|
79
|
-
function
|
|
80
|
+
function B(e, t) {
|
|
80
81
|
e.appendChild(t);
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
-
const n =
|
|
83
|
+
function Er(e, t, r) {
|
|
84
|
+
const n = Sr(e);
|
|
84
85
|
if (!n.getElementById(t)) {
|
|
85
86
|
const i = M("style");
|
|
86
|
-
i.id = t, i.textContent = r,
|
|
87
|
+
i.id = t, i.textContent = r, wr(n, i);
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
-
if (!e)
|
|
90
|
+
function Sr(e) {
|
|
91
|
+
if (!e)
|
|
92
|
+
return document;
|
|
91
93
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
92
94
|
return t && /** @type {ShadowRoot} */
|
|
93
95
|
t.host ? (
|
|
@@ -95,20 +97,20 @@ function wr(e) {
|
|
|
95
97
|
t
|
|
96
98
|
) : e.ownerDocument;
|
|
97
99
|
}
|
|
98
|
-
function
|
|
99
|
-
return
|
|
100
|
+
function wr(e, t) {
|
|
101
|
+
return B(
|
|
100
102
|
/** @type {Document} */
|
|
101
103
|
e.head || e,
|
|
102
104
|
t
|
|
103
105
|
), t.sheet;
|
|
104
106
|
}
|
|
105
|
-
function
|
|
107
|
+
function se(e, t, r) {
|
|
106
108
|
e.insertBefore(t, r || null);
|
|
107
109
|
}
|
|
108
|
-
function
|
|
110
|
+
function q(e) {
|
|
109
111
|
e.parentNode && e.parentNode.removeChild(e);
|
|
110
112
|
}
|
|
111
|
-
function
|
|
113
|
+
function eo(e, t) {
|
|
112
114
|
for (let r = 0; r < e.length; r += 1)
|
|
113
115
|
e[r] && e[r].d(t);
|
|
114
116
|
}
|
|
@@ -118,33 +120,39 @@ function M(e) {
|
|
|
118
120
|
function rt(e) {
|
|
119
121
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
120
122
|
}
|
|
121
|
-
function
|
|
123
|
+
function X(e) {
|
|
122
124
|
return document.createTextNode(e);
|
|
123
125
|
}
|
|
124
|
-
function
|
|
125
|
-
return
|
|
126
|
+
function ue() {
|
|
127
|
+
return X(" ");
|
|
126
128
|
}
|
|
127
|
-
function
|
|
129
|
+
function to() {
|
|
130
|
+
return X("");
|
|
131
|
+
}
|
|
132
|
+
function Ie(e, t, r, n) {
|
|
128
133
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
129
134
|
}
|
|
130
|
-
function
|
|
135
|
+
function H(e, t, r) {
|
|
131
136
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
132
137
|
}
|
|
133
|
-
function
|
|
138
|
+
function ro(e, t, r) {
|
|
134
139
|
const n = t.toLowerCase();
|
|
135
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
140
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : H(e, t, r);
|
|
136
141
|
}
|
|
137
|
-
function
|
|
142
|
+
function Tr(e) {
|
|
138
143
|
return Array.from(e.childNodes);
|
|
139
144
|
}
|
|
140
|
-
function
|
|
145
|
+
function be(e, t) {
|
|
141
146
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
142
147
|
t);
|
|
143
148
|
}
|
|
144
|
-
function
|
|
149
|
+
function no(e, t) {
|
|
145
150
|
e.value = t ?? "";
|
|
146
151
|
}
|
|
147
|
-
function
|
|
152
|
+
function io(e, t, r, n) {
|
|
153
|
+
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
154
|
+
}
|
|
155
|
+
function oo(e, t, r) {
|
|
148
156
|
for (let n = 0; n < e.options.length; n += 1) {
|
|
149
157
|
const i = e.options[n];
|
|
150
158
|
if (i.__value === t) {
|
|
@@ -154,11 +162,11 @@ function eo(e, t, r) {
|
|
|
154
162
|
}
|
|
155
163
|
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
156
164
|
}
|
|
157
|
-
function
|
|
165
|
+
function so(e) {
|
|
158
166
|
const t = e.querySelector(":checked");
|
|
159
167
|
return t && t.__value;
|
|
160
168
|
}
|
|
161
|
-
function
|
|
169
|
+
function Hr(e) {
|
|
162
170
|
const t = {};
|
|
163
171
|
return e.childNodes.forEach(
|
|
164
172
|
/** @param {Element} node */
|
|
@@ -167,96 +175,99 @@ function Br(e) {
|
|
|
167
175
|
}
|
|
168
176
|
), t;
|
|
169
177
|
}
|
|
170
|
-
let
|
|
178
|
+
let ne;
|
|
171
179
|
function re(e) {
|
|
172
|
-
|
|
180
|
+
ne = e;
|
|
173
181
|
}
|
|
174
|
-
function
|
|
175
|
-
if (!
|
|
176
|
-
|
|
182
|
+
function Br() {
|
|
183
|
+
if (!ne)
|
|
184
|
+
throw new Error("Function called outside component initialization");
|
|
185
|
+
return ne;
|
|
177
186
|
}
|
|
178
|
-
function
|
|
179
|
-
|
|
187
|
+
function Ar(e) {
|
|
188
|
+
Br().$$.on_mount.push(e);
|
|
180
189
|
}
|
|
181
|
-
const
|
|
182
|
-
let
|
|
190
|
+
const j = [], Me = [];
|
|
191
|
+
let k = [];
|
|
183
192
|
const nt = [], Cr = /* @__PURE__ */ Promise.resolve();
|
|
184
|
-
let
|
|
193
|
+
let Ne = !1;
|
|
185
194
|
function Pr() {
|
|
186
|
-
|
|
195
|
+
Ne || (Ne = !0, Cr.then(O));
|
|
187
196
|
}
|
|
188
|
-
function
|
|
189
|
-
|
|
197
|
+
function Le(e) {
|
|
198
|
+
k.push(e);
|
|
190
199
|
}
|
|
191
|
-
const
|
|
192
|
-
let
|
|
193
|
-
function
|
|
194
|
-
if (
|
|
200
|
+
const we = /* @__PURE__ */ new Set();
|
|
201
|
+
let D = 0;
|
|
202
|
+
function O() {
|
|
203
|
+
if (D !== 0)
|
|
195
204
|
return;
|
|
196
|
-
const e =
|
|
205
|
+
const e = ne;
|
|
197
206
|
do {
|
|
198
207
|
try {
|
|
199
|
-
for (;
|
|
200
|
-
const t =
|
|
201
|
-
|
|
208
|
+
for (; D < j.length; ) {
|
|
209
|
+
const t = j[D];
|
|
210
|
+
D++, re(t), Or(t.$$);
|
|
202
211
|
}
|
|
203
212
|
} catch (t) {
|
|
204
|
-
throw
|
|
213
|
+
throw j.length = 0, D = 0, t;
|
|
205
214
|
}
|
|
206
|
-
for (re(null),
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
215
|
+
for (re(null), j.length = 0, D = 0; Me.length; )
|
|
216
|
+
Me.pop()();
|
|
217
|
+
for (let t = 0; t < k.length; t += 1) {
|
|
218
|
+
const r = k[t];
|
|
219
|
+
we.has(r) || (we.add(r), r());
|
|
210
220
|
}
|
|
211
|
-
|
|
212
|
-
} while (
|
|
221
|
+
k.length = 0;
|
|
222
|
+
} while (j.length);
|
|
213
223
|
for (; nt.length; )
|
|
214
224
|
nt.pop()();
|
|
215
|
-
|
|
225
|
+
Ne = !1, we.clear(), re(e);
|
|
216
226
|
}
|
|
217
227
|
function Or(e) {
|
|
218
228
|
if (e.fragment !== null) {
|
|
219
|
-
e.update(),
|
|
229
|
+
e.update(), J(e.before_update);
|
|
220
230
|
const t = e.dirty;
|
|
221
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
231
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
222
232
|
}
|
|
223
233
|
}
|
|
224
234
|
function Ir(e) {
|
|
225
235
|
const t = [], r = [];
|
|
226
|
-
|
|
236
|
+
k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
|
|
227
237
|
}
|
|
228
|
-
const
|
|
238
|
+
const ce = /* @__PURE__ */ new Set();
|
|
229
239
|
let Mr;
|
|
230
240
|
function Mt(e, t) {
|
|
231
|
-
e && e.i && (
|
|
241
|
+
e && e.i && (ce.delete(e), e.i(t));
|
|
232
242
|
}
|
|
233
243
|
function Nr(e, t, r, n) {
|
|
234
244
|
if (e && e.o) {
|
|
235
|
-
if (
|
|
236
|
-
|
|
237
|
-
|
|
245
|
+
if (ce.has(e))
|
|
246
|
+
return;
|
|
247
|
+
ce.add(e), Mr.c.push(() => {
|
|
248
|
+
ce.delete(e);
|
|
238
249
|
}), e.o(t);
|
|
239
250
|
}
|
|
240
251
|
}
|
|
241
|
-
function
|
|
252
|
+
function ao(e) {
|
|
242
253
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
243
254
|
}
|
|
244
255
|
function Lr(e, t, r) {
|
|
245
256
|
const { fragment: n, after_update: i } = e.$$;
|
|
246
|
-
n && n.m(t, r),
|
|
247
|
-
const o = e.$$.on_mount.map(Ct).filter(
|
|
248
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
249
|
-
}), i.forEach(
|
|
257
|
+
n && n.m(t, r), Le(() => {
|
|
258
|
+
const o = e.$$.on_mount.map(Ct).filter(Qe);
|
|
259
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : J(o), e.$$.on_mount = [];
|
|
260
|
+
}), i.forEach(Le);
|
|
250
261
|
}
|
|
251
262
|
function Rr(e, t) {
|
|
252
263
|
const r = e.$$;
|
|
253
|
-
r.fragment !== null && (Ir(r.after_update),
|
|
264
|
+
r.fragment !== null && (Ir(r.after_update), J(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
254
265
|
}
|
|
255
266
|
function $r(e, t) {
|
|
256
|
-
e.$$.dirty[0] === -1 && (
|
|
267
|
+
e.$$.dirty[0] === -1 && (j.push(e), Pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
257
268
|
}
|
|
258
269
|
function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
259
|
-
const l =
|
|
270
|
+
const l = ne;
|
|
260
271
|
re(e);
|
|
261
272
|
const u = e.$$ = {
|
|
262
273
|
fragment: null,
|
|
@@ -282,15 +293,15 @@ function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
282
293
|
s && s(u.root);
|
|
283
294
|
let h = !1;
|
|
284
295
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
285
|
-
const
|
|
286
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
|
287
|
-
}) : [], u.update(), h = !0,
|
|
296
|
+
const d = m.length ? m[0] : f;
|
|
297
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h && $r(e, c)), f;
|
|
298
|
+
}) : [], u.update(), h = !0, J(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
288
299
|
if (t.hydrate) {
|
|
289
|
-
const c =
|
|
290
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
300
|
+
const c = Tr(t.target);
|
|
301
|
+
u.fragment && u.fragment.l(c), c.forEach(q);
|
|
291
302
|
} else
|
|
292
303
|
u.fragment && u.fragment.c();
|
|
293
|
-
t.intro && Mt(e.$$.fragment), Lr(e, t.target, t.anchor),
|
|
304
|
+
t.intro && Mt(e.$$.fragment), Lr(e, t.target, t.anchor), O();
|
|
294
305
|
}
|
|
295
306
|
re(l);
|
|
296
307
|
}
|
|
@@ -337,29 +348,29 @@ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
|
337
348
|
let o;
|
|
338
349
|
return {
|
|
339
350
|
c: function() {
|
|
340
|
-
o = M("slot"), i !== "default" &&
|
|
351
|
+
o = M("slot"), i !== "default" && H(o, "name", i);
|
|
341
352
|
},
|
|
342
353
|
/**
|
|
343
354
|
* @param {HTMLElement} target
|
|
344
355
|
* @param {HTMLElement} [anchor]
|
|
345
356
|
*/
|
|
346
357
|
m: function(l, u) {
|
|
347
|
-
|
|
358
|
+
se(l, o, u);
|
|
348
359
|
},
|
|
349
360
|
d: function(l) {
|
|
350
|
-
l &&
|
|
361
|
+
l && q(o);
|
|
351
362
|
}
|
|
352
363
|
};
|
|
353
364
|
};
|
|
354
365
|
};
|
|
355
366
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
356
367
|
return;
|
|
357
|
-
const t = {}, r =
|
|
368
|
+
const t = {}, r = Hr(this);
|
|
358
369
|
for (const i of this.$$s)
|
|
359
370
|
i in r && (t[i] = [e(i)]);
|
|
360
371
|
for (const i of this.attributes) {
|
|
361
372
|
const o = this.$$g_p(i.name);
|
|
362
|
-
o in this.$$d || (this.$$d[o] =
|
|
373
|
+
o in this.$$d || (this.$$d[o] = fe(o, i.value, this.$$p_d, "toProp"));
|
|
363
374
|
}
|
|
364
375
|
for (const i in this.$$p_d)
|
|
365
376
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -377,7 +388,7 @@ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
|
377
388
|
this.$$r = !0;
|
|
378
389
|
for (const i in this.$$p_d)
|
|
379
390
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
380
|
-
const o =
|
|
391
|
+
const o = fe(
|
|
381
392
|
i,
|
|
382
393
|
this.$$d[i],
|
|
383
394
|
this.$$p_d,
|
|
@@ -399,7 +410,7 @@ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
|
399
410
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
400
411
|
// and setting attributes through setAttribute etc, this is helpful
|
|
401
412
|
attributeChangedCallback(e, t, r) {
|
|
402
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
413
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = fe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
403
414
|
}
|
|
404
415
|
disconnectedCallback() {
|
|
405
416
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -412,7 +423,7 @@ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
|
412
423
|
) || e;
|
|
413
424
|
}
|
|
414
425
|
});
|
|
415
|
-
function
|
|
426
|
+
function fe(e, t, r, n) {
|
|
416
427
|
const i = r[e]?.type;
|
|
417
428
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
418
429
|
return t;
|
|
@@ -458,7 +469,7 @@ function Ur(e, t, r, n, i, o) {
|
|
|
458
469
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
459
470
|
},
|
|
460
471
|
set(l) {
|
|
461
|
-
l =
|
|
472
|
+
l = fe(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
462
473
|
}
|
|
463
474
|
});
|
|
464
475
|
}), n.forEach((a) => {
|
|
@@ -498,7 +509,7 @@ class Dr {
|
|
|
498
509
|
* @returns {() => void}
|
|
499
510
|
*/
|
|
500
511
|
$on(t, r) {
|
|
501
|
-
if (!
|
|
512
|
+
if (!Qe(r))
|
|
502
513
|
return N;
|
|
503
514
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
504
515
|
return n.push(r), () => {
|
|
@@ -511,81 +522,104 @@ class Dr {
|
|
|
511
522
|
* @returns {void}
|
|
512
523
|
*/
|
|
513
524
|
$set(t) {
|
|
514
|
-
this.$$set && !
|
|
525
|
+
this.$$set && !br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
515
526
|
}
|
|
516
527
|
}
|
|
517
528
|
const Fr = "4";
|
|
518
529
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Fr);
|
|
519
|
-
var
|
|
530
|
+
var uo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
520
531
|
function jr(e) {
|
|
521
532
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
522
533
|
}
|
|
523
|
-
|
|
524
|
-
|
|
534
|
+
/*! *****************************************************************************
|
|
535
|
+
Copyright (c) Microsoft Corporation.
|
|
536
|
+
|
|
537
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
538
|
+
purpose with or without fee is hereby granted.
|
|
539
|
+
|
|
540
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
541
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
542
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
543
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
544
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
545
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
546
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
547
|
+
***************************************************************************** */
|
|
548
|
+
var Re = function(e, t) {
|
|
549
|
+
return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
525
550
|
r.__proto__ = n;
|
|
526
551
|
} || function(r, n) {
|
|
527
|
-
for (var i in n)
|
|
528
|
-
|
|
552
|
+
for (var i in n)
|
|
553
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
554
|
+
}, Re(e, t);
|
|
529
555
|
};
|
|
530
|
-
function
|
|
556
|
+
function R(e, t) {
|
|
531
557
|
if (typeof t != "function" && t !== null)
|
|
532
558
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
533
|
-
|
|
559
|
+
Re(e, t);
|
|
534
560
|
function r() {
|
|
535
561
|
this.constructor = e;
|
|
536
562
|
}
|
|
537
563
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
538
564
|
}
|
|
539
|
-
var
|
|
540
|
-
return
|
|
565
|
+
var v = function() {
|
|
566
|
+
return v = Object.assign || function(t) {
|
|
541
567
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
542
568
|
r = arguments[n];
|
|
543
|
-
for (var o in r)
|
|
569
|
+
for (var o in r)
|
|
570
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
544
571
|
}
|
|
545
572
|
return t;
|
|
546
|
-
},
|
|
573
|
+
}, v.apply(this, arguments);
|
|
547
574
|
};
|
|
548
575
|
function kr(e, t) {
|
|
549
576
|
var r = {};
|
|
550
|
-
for (var n in e)
|
|
577
|
+
for (var n in e)
|
|
578
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
551
579
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
552
580
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
553
581
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
554
582
|
return r;
|
|
555
583
|
}
|
|
556
|
-
function
|
|
584
|
+
function $e(e) {
|
|
557
585
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
558
|
-
if (r)
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
586
|
+
if (r)
|
|
587
|
+
return r.call(e);
|
|
588
|
+
if (e && typeof e.length == "number")
|
|
589
|
+
return {
|
|
590
|
+
next: function() {
|
|
591
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
592
|
+
}
|
|
593
|
+
};
|
|
564
594
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
565
595
|
}
|
|
566
|
-
function
|
|
596
|
+
function Ge(e, t) {
|
|
567
597
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
568
|
-
if (!r)
|
|
598
|
+
if (!r)
|
|
599
|
+
return e;
|
|
569
600
|
var n = r.call(e), i, o = [], s;
|
|
570
601
|
try {
|
|
571
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
602
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
603
|
+
o.push(i.value);
|
|
572
604
|
} catch (a) {
|
|
573
605
|
s = { error: a };
|
|
574
606
|
} finally {
|
|
575
607
|
try {
|
|
576
608
|
i && !i.done && (r = n.return) && r.call(n);
|
|
577
609
|
} finally {
|
|
578
|
-
if (s)
|
|
610
|
+
if (s)
|
|
611
|
+
throw s.error;
|
|
579
612
|
}
|
|
580
613
|
}
|
|
581
614
|
return o;
|
|
582
615
|
}
|
|
583
|
-
function
|
|
584
|
-
if (r || arguments.length === 2)
|
|
585
|
-
(
|
|
586
|
-
|
|
616
|
+
function V(e, t, r) {
|
|
617
|
+
if (r || arguments.length === 2)
|
|
618
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
619
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
620
|
+
return e.concat(o || t);
|
|
587
621
|
}
|
|
588
|
-
function
|
|
622
|
+
function L(e) {
|
|
589
623
|
return typeof e == "function";
|
|
590
624
|
}
|
|
591
625
|
function Lt(e) {
|
|
@@ -594,7 +628,7 @@ function Lt(e) {
|
|
|
594
628
|
}, r = e(t);
|
|
595
629
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
596
630
|
}
|
|
597
|
-
var
|
|
631
|
+
var Te = Lt(function(e) {
|
|
598
632
|
return function(r) {
|
|
599
633
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
600
634
|
` + r.map(function(n, i) {
|
|
@@ -603,13 +637,13 @@ var He = Lt(function(e) {
|
|
|
603
637
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
604
638
|
};
|
|
605
639
|
});
|
|
606
|
-
function
|
|
640
|
+
function Ue(e, t) {
|
|
607
641
|
if (e) {
|
|
608
642
|
var r = e.indexOf(t);
|
|
609
643
|
0 <= r && e.splice(r, 1);
|
|
610
644
|
}
|
|
611
645
|
}
|
|
612
|
-
var
|
|
646
|
+
var ve = function() {
|
|
613
647
|
function e(t) {
|
|
614
648
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
615
649
|
}
|
|
@@ -621,52 +655,54 @@ var xe = function() {
|
|
|
621
655
|
if (s)
|
|
622
656
|
if (this._parentage = null, Array.isArray(s))
|
|
623
657
|
try {
|
|
624
|
-
for (var a =
|
|
658
|
+
for (var a = $e(s), l = a.next(); !l.done; l = a.next()) {
|
|
625
659
|
var u = l.value;
|
|
626
660
|
u.remove(this);
|
|
627
661
|
}
|
|
628
|
-
} catch (
|
|
629
|
-
t = { error:
|
|
662
|
+
} catch (p) {
|
|
663
|
+
t = { error: p };
|
|
630
664
|
} finally {
|
|
631
665
|
try {
|
|
632
666
|
l && !l.done && (r = a.return) && r.call(a);
|
|
633
667
|
} finally {
|
|
634
|
-
if (t)
|
|
668
|
+
if (t)
|
|
669
|
+
throw t.error;
|
|
635
670
|
}
|
|
636
671
|
}
|
|
637
672
|
else
|
|
638
673
|
s.remove(this);
|
|
639
674
|
var h = this.initialTeardown;
|
|
640
|
-
if (
|
|
675
|
+
if (L(h))
|
|
641
676
|
try {
|
|
642
677
|
h();
|
|
643
|
-
} catch (
|
|
644
|
-
o =
|
|
678
|
+
} catch (p) {
|
|
679
|
+
o = p instanceof Te ? p.errors : [p];
|
|
645
680
|
}
|
|
646
681
|
var c = this._finalizers;
|
|
647
682
|
if (c) {
|
|
648
683
|
this._finalizers = null;
|
|
649
684
|
try {
|
|
650
|
-
for (var f =
|
|
651
|
-
var
|
|
685
|
+
for (var f = $e(c), m = f.next(); !m.done; m = f.next()) {
|
|
686
|
+
var d = m.value;
|
|
652
687
|
try {
|
|
653
|
-
it(
|
|
654
|
-
} catch (
|
|
655
|
-
o = o ?? [],
|
|
688
|
+
it(d);
|
|
689
|
+
} catch (p) {
|
|
690
|
+
o = o ?? [], p instanceof Te ? o = V(V([], Ge(o)), Ge(p.errors)) : o.push(p);
|
|
656
691
|
}
|
|
657
692
|
}
|
|
658
|
-
} catch (
|
|
659
|
-
n = { error:
|
|
693
|
+
} catch (p) {
|
|
694
|
+
n = { error: p };
|
|
660
695
|
} finally {
|
|
661
696
|
try {
|
|
662
697
|
m && !m.done && (i = f.return) && i.call(f);
|
|
663
698
|
} finally {
|
|
664
|
-
if (n)
|
|
699
|
+
if (n)
|
|
700
|
+
throw n.error;
|
|
665
701
|
}
|
|
666
702
|
}
|
|
667
703
|
}
|
|
668
704
|
if (o)
|
|
669
|
-
throw new
|
|
705
|
+
throw new Te(o);
|
|
670
706
|
}
|
|
671
707
|
}, e.prototype.add = function(t) {
|
|
672
708
|
var r;
|
|
@@ -689,20 +725,20 @@ var xe = function() {
|
|
|
689
725
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
690
726
|
}, e.prototype._removeParent = function(t) {
|
|
691
727
|
var r = this._parentage;
|
|
692
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
728
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
|
|
693
729
|
}, e.prototype.remove = function(t) {
|
|
694
730
|
var r = this._finalizers;
|
|
695
|
-
r &&
|
|
731
|
+
r && Ue(r, t), t instanceof e && t._removeParent(this);
|
|
696
732
|
}, e.EMPTY = function() {
|
|
697
733
|
var t = new e();
|
|
698
734
|
return t.closed = !0, t;
|
|
699
735
|
}(), e;
|
|
700
|
-
}(), Rt =
|
|
736
|
+
}(), Rt = ve.EMPTY;
|
|
701
737
|
function $t(e) {
|
|
702
|
-
return e instanceof
|
|
738
|
+
return e instanceof ve || e && "closed" in e && L(e.remove) && L(e.add) && L(e.unsubscribe);
|
|
703
739
|
}
|
|
704
740
|
function it(e) {
|
|
705
|
-
|
|
741
|
+
L(e) ? e() : e.unsubscribe();
|
|
706
742
|
}
|
|
707
743
|
var Gt = {
|
|
708
744
|
onUnhandledError: null,
|
|
@@ -714,7 +750,7 @@ var Gt = {
|
|
|
714
750
|
setTimeout: function(e, t) {
|
|
715
751
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
716
752
|
r[n - 2] = arguments[n];
|
|
717
|
-
return setTimeout.apply(void 0,
|
|
753
|
+
return setTimeout.apply(void 0, V([e, t], Ge(r)));
|
|
718
754
|
},
|
|
719
755
|
clearTimeout: function(e) {
|
|
720
756
|
return clearTimeout(e);
|
|
@@ -728,17 +764,17 @@ function Xr(e) {
|
|
|
728
764
|
}
|
|
729
765
|
function ot() {
|
|
730
766
|
}
|
|
731
|
-
function
|
|
767
|
+
function me(e) {
|
|
732
768
|
e();
|
|
733
769
|
}
|
|
734
770
|
var Ut = function(e) {
|
|
735
|
-
|
|
771
|
+
R(t, e);
|
|
736
772
|
function t(r) {
|
|
737
773
|
var n = e.call(this) || this;
|
|
738
774
|
return n.isStopped = !1, r ? (n.destination = r, $t(r) && r.add(n)) : n.destination = Qr, n;
|
|
739
775
|
}
|
|
740
776
|
return t.create = function(r, n, i) {
|
|
741
|
-
return new
|
|
777
|
+
return new De(r, n, i);
|
|
742
778
|
}, t.prototype.next = function(r) {
|
|
743
779
|
this.isStopped || this._next(r);
|
|
744
780
|
}, t.prototype.error = function(r) {
|
|
@@ -762,8 +798,8 @@ var Ut = function(e) {
|
|
|
762
798
|
this.unsubscribe();
|
|
763
799
|
}
|
|
764
800
|
}, t;
|
|
765
|
-
}(
|
|
766
|
-
function
|
|
801
|
+
}(ve), zr = Function.prototype.bind;
|
|
802
|
+
function He(e, t) {
|
|
767
803
|
return zr.call(e, t);
|
|
768
804
|
}
|
|
769
805
|
var Wr = function() {
|
|
@@ -776,7 +812,7 @@ var Wr = function() {
|
|
|
776
812
|
try {
|
|
777
813
|
r.next(t);
|
|
778
814
|
} catch (n) {
|
|
779
|
-
|
|
815
|
+
le(n);
|
|
780
816
|
}
|
|
781
817
|
}, e.prototype.error = function(t) {
|
|
782
818
|
var r = this.partialObserver;
|
|
@@ -784,24 +820,24 @@ var Wr = function() {
|
|
|
784
820
|
try {
|
|
785
821
|
r.error(t);
|
|
786
822
|
} catch (n) {
|
|
787
|
-
|
|
823
|
+
le(n);
|
|
788
824
|
}
|
|
789
825
|
else
|
|
790
|
-
|
|
826
|
+
le(t);
|
|
791
827
|
}, e.prototype.complete = function() {
|
|
792
828
|
var t = this.partialObserver;
|
|
793
829
|
if (t.complete)
|
|
794
830
|
try {
|
|
795
831
|
t.complete();
|
|
796
832
|
} catch (r) {
|
|
797
|
-
|
|
833
|
+
le(r);
|
|
798
834
|
}
|
|
799
835
|
}, e;
|
|
800
|
-
}(),
|
|
801
|
-
|
|
836
|
+
}(), De = function(e) {
|
|
837
|
+
R(t, e);
|
|
802
838
|
function t(r, n, i) {
|
|
803
839
|
var o = e.call(this) || this, s;
|
|
804
|
-
if (
|
|
840
|
+
if (L(r) || !r)
|
|
805
841
|
s = {
|
|
806
842
|
next: r ?? void 0,
|
|
807
843
|
error: n ?? void 0,
|
|
@@ -812,16 +848,16 @@ var Wr = function() {
|
|
|
812
848
|
o && Gt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
813
849
|
return o.unsubscribe();
|
|
814
850
|
}, s = {
|
|
815
|
-
next: r.next &&
|
|
816
|
-
error: r.error &&
|
|
817
|
-
complete: r.complete &&
|
|
851
|
+
next: r.next && He(r.next, a),
|
|
852
|
+
error: r.error && He(r.error, a),
|
|
853
|
+
complete: r.complete && He(r.complete, a)
|
|
818
854
|
}) : s = r;
|
|
819
855
|
}
|
|
820
856
|
return o.destination = new Wr(s), o;
|
|
821
857
|
}
|
|
822
858
|
return t;
|
|
823
859
|
}(Ut);
|
|
824
|
-
function
|
|
860
|
+
function le(e) {
|
|
825
861
|
Xr(e);
|
|
826
862
|
}
|
|
827
863
|
function Zr(e) {
|
|
@@ -832,14 +868,14 @@ var Qr = {
|
|
|
832
868
|
next: ot,
|
|
833
869
|
error: Zr,
|
|
834
870
|
complete: ot
|
|
835
|
-
},
|
|
871
|
+
}, Jr = function() {
|
|
836
872
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
837
873
|
}();
|
|
838
|
-
function
|
|
874
|
+
function qr(e) {
|
|
839
875
|
return e;
|
|
840
876
|
}
|
|
841
877
|
function Yr(e) {
|
|
842
|
-
return e.length === 0 ?
|
|
878
|
+
return e.length === 0 ? qr : e.length === 1 ? e[0] : function(r) {
|
|
843
879
|
return e.reduce(function(n, i) {
|
|
844
880
|
return i(n);
|
|
845
881
|
}, r);
|
|
@@ -853,8 +889,8 @@ var st = function() {
|
|
|
853
889
|
var r = new e();
|
|
854
890
|
return r.source = this, r.operator = t, r;
|
|
855
891
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
856
|
-
var i = this, o = en(t) ? t : new
|
|
857
|
-
return
|
|
892
|
+
var i = this, o = en(t) ? t : new De(t, r, n);
|
|
893
|
+
return me(function() {
|
|
858
894
|
var s = i, a = s.operator, l = s.source;
|
|
859
895
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
860
896
|
}), o;
|
|
@@ -867,7 +903,7 @@ var st = function() {
|
|
|
867
903
|
}, e.prototype.forEach = function(t, r) {
|
|
868
904
|
var n = this;
|
|
869
905
|
return r = at(r), new r(function(i, o) {
|
|
870
|
-
var s = new
|
|
906
|
+
var s = new De({
|
|
871
907
|
next: function(a) {
|
|
872
908
|
try {
|
|
873
909
|
t(a);
|
|
@@ -883,7 +919,7 @@ var st = function() {
|
|
|
883
919
|
}, e.prototype._subscribe = function(t) {
|
|
884
920
|
var r;
|
|
885
921
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
886
|
-
}, e.prototype[
|
|
922
|
+
}, e.prototype[Jr] = function() {
|
|
887
923
|
return this;
|
|
888
924
|
}, e.prototype.pipe = function() {
|
|
889
925
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -910,7 +946,7 @@ function at(e) {
|
|
|
910
946
|
return (t = e ?? Gt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
911
947
|
}
|
|
912
948
|
function Kr(e) {
|
|
913
|
-
return e &&
|
|
949
|
+
return e && L(e.next) && L(e.error) && L(e.complete);
|
|
914
950
|
}
|
|
915
951
|
function en(e) {
|
|
916
952
|
return e && e instanceof Ut || Kr(e) && $t(e);
|
|
@@ -920,7 +956,7 @@ var tn = Lt(function(e) {
|
|
|
920
956
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
921
957
|
};
|
|
922
958
|
}), Dt = function(e) {
|
|
923
|
-
|
|
959
|
+
R(t, e);
|
|
924
960
|
function t() {
|
|
925
961
|
var r = e.call(this) || this;
|
|
926
962
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
@@ -933,12 +969,12 @@ var tn = Lt(function(e) {
|
|
|
933
969
|
throw new tn();
|
|
934
970
|
}, t.prototype.next = function(r) {
|
|
935
971
|
var n = this;
|
|
936
|
-
|
|
972
|
+
me(function() {
|
|
937
973
|
var i, o;
|
|
938
974
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
939
975
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
940
976
|
try {
|
|
941
|
-
for (var s =
|
|
977
|
+
for (var s = $e(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
942
978
|
var l = a.value;
|
|
943
979
|
l.next(r);
|
|
944
980
|
}
|
|
@@ -948,14 +984,15 @@ var tn = Lt(function(e) {
|
|
|
948
984
|
try {
|
|
949
985
|
a && !a.done && (o = s.return) && o.call(s);
|
|
950
986
|
} finally {
|
|
951
|
-
if (i)
|
|
987
|
+
if (i)
|
|
988
|
+
throw i.error;
|
|
952
989
|
}
|
|
953
990
|
}
|
|
954
991
|
}
|
|
955
992
|
});
|
|
956
993
|
}, t.prototype.error = function(r) {
|
|
957
994
|
var n = this;
|
|
958
|
-
|
|
995
|
+
me(function() {
|
|
959
996
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
960
997
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
961
998
|
for (var i = n.observers; i.length; )
|
|
@@ -964,7 +1001,7 @@ var tn = Lt(function(e) {
|
|
|
964
1001
|
});
|
|
965
1002
|
}, t.prototype.complete = function() {
|
|
966
1003
|
var r = this;
|
|
967
|
-
|
|
1004
|
+
me(function() {
|
|
968
1005
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
969
1006
|
r.isStopped = !0;
|
|
970
1007
|
for (var n = r.observers; n.length; )
|
|
@@ -986,8 +1023,8 @@ var tn = Lt(function(e) {
|
|
|
986
1023
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
987
1024
|
}, t.prototype._innerSubscribe = function(r) {
|
|
988
1025
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
989
|
-
return o || s ? Rt : (this.currentObservers = null, a.push(r), new
|
|
990
|
-
n.currentObservers = null,
|
|
1026
|
+
return o || s ? Rt : (this.currentObservers = null, a.push(r), new ve(function() {
|
|
1027
|
+
n.currentObservers = null, Ue(a, r);
|
|
991
1028
|
}));
|
|
992
1029
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
993
1030
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
@@ -999,7 +1036,7 @@ var tn = Lt(function(e) {
|
|
|
999
1036
|
return new ut(r, n);
|
|
1000
1037
|
}, t;
|
|
1001
1038
|
}(st), ut = function(e) {
|
|
1002
|
-
|
|
1039
|
+
R(t, e);
|
|
1003
1040
|
function t(r, n) {
|
|
1004
1041
|
var i = e.call(this) || this;
|
|
1005
1042
|
return i.destination = r, i.source = n, i;
|
|
@@ -1023,7 +1060,7 @@ var tn = Lt(function(e) {
|
|
|
1023
1060
|
},
|
|
1024
1061
|
delegate: void 0
|
|
1025
1062
|
}, rn = function(e) {
|
|
1026
|
-
|
|
1063
|
+
R(t, e);
|
|
1027
1064
|
function t(r, n, i) {
|
|
1028
1065
|
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ft);
|
|
1029
1066
|
var o = e.call(this) || this;
|
|
@@ -1052,24 +1089,24 @@ const lt = [], ht = {}, nn = (e, t = 0) => {
|
|
|
1052
1089
|
ht[e] = r, lt.push(e);
|
|
1053
1090
|
}
|
|
1054
1091
|
return ht[e];
|
|
1055
|
-
},
|
|
1092
|
+
}, F = [];
|
|
1056
1093
|
function on(e, t) {
|
|
1057
1094
|
return {
|
|
1058
|
-
subscribe:
|
|
1095
|
+
subscribe: xe(e, t).subscribe
|
|
1059
1096
|
};
|
|
1060
1097
|
}
|
|
1061
|
-
function
|
|
1098
|
+
function xe(e, t = N) {
|
|
1062
1099
|
let r;
|
|
1063
1100
|
const n = /* @__PURE__ */ new Set();
|
|
1064
1101
|
function i(a) {
|
|
1065
1102
|
if (Pt(e, a) && (e = a, r)) {
|
|
1066
|
-
const l = !
|
|
1103
|
+
const l = !F.length;
|
|
1067
1104
|
for (const u of n)
|
|
1068
|
-
u[1](),
|
|
1105
|
+
u[1](), F.push(u, e);
|
|
1069
1106
|
if (l) {
|
|
1070
|
-
for (let u = 0; u <
|
|
1071
|
-
|
|
1072
|
-
|
|
1107
|
+
for (let u = 0; u < F.length; u += 2)
|
|
1108
|
+
F[u][0](F[u + 1]);
|
|
1109
|
+
F.length = 0;
|
|
1073
1110
|
}
|
|
1074
1111
|
}
|
|
1075
1112
|
}
|
|
@@ -1097,21 +1134,21 @@ function Y(e, t, r) {
|
|
|
1097
1134
|
if (h)
|
|
1098
1135
|
return;
|
|
1099
1136
|
c();
|
|
1100
|
-
const
|
|
1101
|
-
o ? s(
|
|
1137
|
+
const d = t(n ? u[0] : u, s, a);
|
|
1138
|
+
o ? s(d) : c = Qe(d) ? d : N;
|
|
1102
1139
|
}, m = i.map(
|
|
1103
|
-
(
|
|
1104
|
-
|
|
1105
|
-
(
|
|
1106
|
-
u[
|
|
1140
|
+
(d, p) => Ot(
|
|
1141
|
+
d,
|
|
1142
|
+
(w) => {
|
|
1143
|
+
u[p] = w, h &= ~(1 << p), l && f();
|
|
1107
1144
|
},
|
|
1108
1145
|
() => {
|
|
1109
|
-
h |= 1 <<
|
|
1146
|
+
h |= 1 << p;
|
|
1110
1147
|
}
|
|
1111
1148
|
)
|
|
1112
1149
|
);
|
|
1113
1150
|
return l = !0, f(), function() {
|
|
1114
|
-
|
|
1151
|
+
J(m), c(), l = !1;
|
|
1115
1152
|
};
|
|
1116
1153
|
});
|
|
1117
1154
|
}
|
|
@@ -1132,12 +1169,12 @@ function cn(e) {
|
|
|
1132
1169
|
function fn(e) {
|
|
1133
1170
|
return Array.isArray(e) ? [] : {};
|
|
1134
1171
|
}
|
|
1135
|
-
function
|
|
1172
|
+
function ie(e, t) {
|
|
1136
1173
|
return t.clone !== !1 && t.isMergeableObject(e) ? z(fn(e), e, t) : e;
|
|
1137
1174
|
}
|
|
1138
1175
|
function mn(e, t, r) {
|
|
1139
1176
|
return e.concat(t).map(function(n) {
|
|
1140
|
-
return
|
|
1177
|
+
return ie(n, r);
|
|
1141
1178
|
});
|
|
1142
1179
|
}
|
|
1143
1180
|
function dn(e, t) {
|
|
@@ -1167,15 +1204,15 @@ function bn(e, t) {
|
|
|
1167
1204
|
function gn(e, t, r) {
|
|
1168
1205
|
var n = {};
|
|
1169
1206
|
return r.isMergeableObject(e) && ct(e).forEach(function(i) {
|
|
1170
|
-
n[i] =
|
|
1207
|
+
n[i] = ie(e[i], r);
|
|
1171
1208
|
}), ct(t).forEach(function(i) {
|
|
1172
|
-
bn(e, i) || (jt(e, i) && r.isMergeableObject(t[i]) ? n[i] = dn(i, r)(e[i], t[i], r) : n[i] =
|
|
1209
|
+
bn(e, i) || (jt(e, i) && r.isMergeableObject(t[i]) ? n[i] = dn(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
1173
1210
|
}), n;
|
|
1174
1211
|
}
|
|
1175
1212
|
function z(e, t, r) {
|
|
1176
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || mn, r.isMergeableObject = r.isMergeableObject || sn, r.cloneUnlessOtherwiseSpecified =
|
|
1213
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || mn, r.isMergeableObject = r.isMergeableObject || sn, r.cloneUnlessOtherwiseSpecified = ie;
|
|
1177
1214
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1178
|
-
return o ? n ? r.arrayMerge(e, t, r) : gn(e, t, r) :
|
|
1215
|
+
return o ? n ? r.arrayMerge(e, t, r) : gn(e, t, r) : ie(t, r);
|
|
1179
1216
|
}
|
|
1180
1217
|
z.all = function(t, r) {
|
|
1181
1218
|
if (!Array.isArray(t))
|
|
@@ -1184,9 +1221,9 @@ z.all = function(t, r) {
|
|
|
1184
1221
|
return z(n, i, r);
|
|
1185
1222
|
}, {});
|
|
1186
1223
|
};
|
|
1187
|
-
var
|
|
1188
|
-
const xn = /* @__PURE__ */ jr(
|
|
1189
|
-
function
|
|
1224
|
+
var yn = z, vn = yn;
|
|
1225
|
+
const xn = /* @__PURE__ */ jr(vn);
|
|
1226
|
+
function Be(e, t) {
|
|
1190
1227
|
var r = t && t.cache ? t.cache : Hn, n = t && t.serializer ? t.serializer : Tn, i = t && t.strategy ? t.strategy : En;
|
|
1191
1228
|
return i(e, {
|
|
1192
1229
|
cache: r,
|
|
@@ -1220,65 +1257,65 @@ function wn(e, t) {
|
|
|
1220
1257
|
var Tn = function() {
|
|
1221
1258
|
return JSON.stringify(arguments);
|
|
1222
1259
|
};
|
|
1223
|
-
function
|
|
1260
|
+
function qe() {
|
|
1224
1261
|
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1225
1262
|
}
|
|
1226
|
-
|
|
1263
|
+
qe.prototype.get = function(e) {
|
|
1227
1264
|
return this.cache[e];
|
|
1228
1265
|
};
|
|
1229
|
-
|
|
1266
|
+
qe.prototype.set = function(e, t) {
|
|
1230
1267
|
this.cache[e] = t;
|
|
1231
1268
|
};
|
|
1232
1269
|
var Hn = {
|
|
1233
1270
|
create: function() {
|
|
1234
|
-
return new
|
|
1271
|
+
return new qe();
|
|
1235
1272
|
}
|
|
1236
|
-
},
|
|
1273
|
+
}, Ae = {
|
|
1237
1274
|
variadic: Sn,
|
|
1238
1275
|
monadic: wn
|
|
1239
|
-
},
|
|
1276
|
+
}, b;
|
|
1240
1277
|
(function(e) {
|
|
1241
1278
|
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";
|
|
1242
|
-
})(
|
|
1243
|
-
var
|
|
1279
|
+
})(b || (b = {}));
|
|
1280
|
+
var S;
|
|
1244
1281
|
(function(e) {
|
|
1245
1282
|
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";
|
|
1246
|
-
})(
|
|
1283
|
+
})(S || (S = {}));
|
|
1247
1284
|
var W;
|
|
1248
1285
|
(function(e) {
|
|
1249
1286
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1250
1287
|
})(W || (W = {}));
|
|
1251
1288
|
function ft(e) {
|
|
1252
|
-
return e.type ===
|
|
1289
|
+
return e.type === S.literal;
|
|
1253
1290
|
}
|
|
1254
1291
|
function Bn(e) {
|
|
1255
|
-
return e.type ===
|
|
1292
|
+
return e.type === S.argument;
|
|
1256
1293
|
}
|
|
1257
1294
|
function Xt(e) {
|
|
1258
|
-
return e.type ===
|
|
1295
|
+
return e.type === S.number;
|
|
1259
1296
|
}
|
|
1260
1297
|
function zt(e) {
|
|
1261
|
-
return e.type ===
|
|
1298
|
+
return e.type === S.date;
|
|
1262
1299
|
}
|
|
1263
1300
|
function Wt(e) {
|
|
1264
|
-
return e.type ===
|
|
1301
|
+
return e.type === S.time;
|
|
1265
1302
|
}
|
|
1266
1303
|
function Zt(e) {
|
|
1267
|
-
return e.type ===
|
|
1304
|
+
return e.type === S.select;
|
|
1268
1305
|
}
|
|
1269
1306
|
function Qt(e) {
|
|
1270
|
-
return e.type ===
|
|
1307
|
+
return e.type === S.plural;
|
|
1271
1308
|
}
|
|
1272
1309
|
function An(e) {
|
|
1273
|
-
return e.type ===
|
|
1274
|
-
}
|
|
1275
|
-
function qt(e) {
|
|
1276
|
-
return e.type === E.tag;
|
|
1310
|
+
return e.type === S.pound;
|
|
1277
1311
|
}
|
|
1278
1312
|
function Jt(e) {
|
|
1313
|
+
return e.type === S.tag;
|
|
1314
|
+
}
|
|
1315
|
+
function qt(e) {
|
|
1279
1316
|
return !!(e && typeof e == "object" && e.type === W.number);
|
|
1280
1317
|
}
|
|
1281
|
-
function
|
|
1318
|
+
function Fe(e) {
|
|
1282
1319
|
return !!(e && typeof e == "object" && e.type === W.dateTime);
|
|
1283
1320
|
}
|
|
1284
1321
|
var Yt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Cn = /(?:[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;
|
|
@@ -1495,13 +1532,13 @@ function Rn(e) {
|
|
|
1495
1532
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1496
1533
|
continue;
|
|
1497
1534
|
case "scientific":
|
|
1498
|
-
t =
|
|
1499
|
-
return
|
|
1535
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1536
|
+
return v(v({}, l), pt(u));
|
|
1500
1537
|
}, {}));
|
|
1501
1538
|
continue;
|
|
1502
1539
|
case "engineering":
|
|
1503
|
-
t =
|
|
1504
|
-
return
|
|
1540
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1541
|
+
return v(v({}, l), pt(u));
|
|
1505
1542
|
}, {}));
|
|
1506
1543
|
continue;
|
|
1507
1544
|
case "notation-simple":
|
|
@@ -1570,21 +1607,21 @@ function Rn(e) {
|
|
|
1570
1607
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1571
1608
|
});
|
|
1572
1609
|
var o = i.options[0];
|
|
1573
|
-
o === "w" ? t =
|
|
1610
|
+
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), dt(o)));
|
|
1574
1611
|
continue;
|
|
1575
1612
|
}
|
|
1576
1613
|
if (Kt.test(i.stem)) {
|
|
1577
|
-
t =
|
|
1614
|
+
t = v(v({}, t), dt(i.stem));
|
|
1578
1615
|
continue;
|
|
1579
1616
|
}
|
|
1580
1617
|
var s = tr(i.stem);
|
|
1581
|
-
s && (t =
|
|
1618
|
+
s && (t = v(v({}, t), s));
|
|
1582
1619
|
var a = Ln(i.stem);
|
|
1583
|
-
a && (t =
|
|
1620
|
+
a && (t = v(v({}, t), a));
|
|
1584
1621
|
}
|
|
1585
1622
|
return t;
|
|
1586
1623
|
}
|
|
1587
|
-
var
|
|
1624
|
+
var he = {
|
|
1588
1625
|
"001": [
|
|
1589
1626
|
"H",
|
|
1590
1627
|
"h"
|
|
@@ -3010,7 +3047,8 @@ function $n(e, t) {
|
|
|
3010
3047
|
r += l;
|
|
3011
3048
|
for (; s-- > 0; )
|
|
3012
3049
|
r = u + r;
|
|
3013
|
-
} else
|
|
3050
|
+
} else
|
|
3051
|
+
i === "J" ? r += "H" : r += i;
|
|
3014
3052
|
}
|
|
3015
3053
|
return r;
|
|
3016
3054
|
}
|
|
@@ -3033,21 +3071,21 @@ function Gn(e) {
|
|
|
3033
3071
|
}
|
|
3034
3072
|
var r = e.language, n;
|
|
3035
3073
|
r !== "root" && (n = e.maximize().region);
|
|
3036
|
-
var i =
|
|
3074
|
+
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
3037
3075
|
return i[0];
|
|
3038
3076
|
}
|
|
3039
|
-
var
|
|
3040
|
-
function
|
|
3077
|
+
var Ce, Un = new RegExp("^".concat(Yt.source, "*")), Dn = new RegExp("".concat(Yt.source, "*$"));
|
|
3078
|
+
function y(e, t) {
|
|
3041
3079
|
return { start: e, end: t };
|
|
3042
3080
|
}
|
|
3043
3081
|
var Fn = !!String.prototype.startsWith && "_a".startsWith("a", 1), jn = !!String.fromCodePoint, kn = !!Object.fromEntries, Vn = !!String.prototype.codePointAt, Xn = !!String.prototype.trimStart, zn = !!String.prototype.trimEnd, Wn = !!Number.isSafeInteger, Zn = Wn ? Number.isSafeInteger : function(e) {
|
|
3044
3082
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3045
|
-
},
|
|
3083
|
+
}, je = !0;
|
|
3046
3084
|
try {
|
|
3047
3085
|
var Qn = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3048
|
-
|
|
3086
|
+
je = ((Ce = Qn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
|
|
3049
3087
|
} catch {
|
|
3050
|
-
|
|
3088
|
+
je = !1;
|
|
3051
3089
|
}
|
|
3052
3090
|
var bt = Fn ? (
|
|
3053
3091
|
// Native
|
|
@@ -3059,7 +3097,7 @@ var bt = Fn ? (
|
|
|
3059
3097
|
function(t, r, n) {
|
|
3060
3098
|
return t.slice(n, n + r.length) === r;
|
|
3061
3099
|
}
|
|
3062
|
-
),
|
|
3100
|
+
), ke = jn ? String.fromCodePoint : (
|
|
3063
3101
|
// IE11
|
|
3064
3102
|
function() {
|
|
3065
3103
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3097,7 +3135,7 @@ var bt = Fn ? (
|
|
|
3097
3135
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3098
3136
|
}
|
|
3099
3137
|
}
|
|
3100
|
-
),
|
|
3138
|
+
), Jn = Xn ? (
|
|
3101
3139
|
// Native
|
|
3102
3140
|
function(t) {
|
|
3103
3141
|
return t.trimStart();
|
|
@@ -3107,7 +3145,7 @@ var bt = Fn ? (
|
|
|
3107
3145
|
function(t) {
|
|
3108
3146
|
return t.replace(Un, "");
|
|
3109
3147
|
}
|
|
3110
|
-
),
|
|
3148
|
+
), qn = zn ? (
|
|
3111
3149
|
// Native
|
|
3112
3150
|
function(t) {
|
|
3113
3151
|
return t.trimEnd();
|
|
@@ -3121,24 +3159,24 @@ var bt = Fn ? (
|
|
|
3121
3159
|
function nr(e, t) {
|
|
3122
3160
|
return new RegExp(e, t);
|
|
3123
3161
|
}
|
|
3124
|
-
var
|
|
3125
|
-
if (
|
|
3126
|
-
var
|
|
3127
|
-
|
|
3162
|
+
var Ve;
|
|
3163
|
+
if (je) {
|
|
3164
|
+
var yt = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3165
|
+
Ve = function(t, r) {
|
|
3128
3166
|
var n;
|
|
3129
|
-
|
|
3130
|
-
var i =
|
|
3167
|
+
yt.lastIndex = r;
|
|
3168
|
+
var i = yt.exec(t);
|
|
3131
3169
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3132
3170
|
};
|
|
3133
3171
|
} else
|
|
3134
|
-
|
|
3172
|
+
Ve = function(t, r) {
|
|
3135
3173
|
for (var n = []; ; ) {
|
|
3136
3174
|
var i = rr(t, r);
|
|
3137
3175
|
if (i === void 0 || ir(i) || ti(i))
|
|
3138
3176
|
break;
|
|
3139
3177
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3140
3178
|
}
|
|
3141
|
-
return
|
|
3179
|
+
return ke.apply(void 0, n);
|
|
3142
3180
|
};
|
|
3143
3181
|
var Yn = (
|
|
3144
3182
|
/** @class */
|
|
@@ -3164,14 +3202,14 @@ var Yn = (
|
|
|
3164
3202
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3165
3203
|
var a = this.clonePosition();
|
|
3166
3204
|
this.bump(), i.push({
|
|
3167
|
-
type:
|
|
3168
|
-
location:
|
|
3205
|
+
type: S.pound,
|
|
3206
|
+
location: y(a, this.clonePosition())
|
|
3169
3207
|
});
|
|
3170
3208
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3171
3209
|
if (n)
|
|
3172
3210
|
break;
|
|
3173
|
-
return this.error(
|
|
3174
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3211
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
3212
|
+
} else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
|
|
3175
3213
|
var s = this.parseTag(t, r);
|
|
3176
3214
|
if (s.err)
|
|
3177
3215
|
return s;
|
|
@@ -3192,9 +3230,9 @@ var Yn = (
|
|
|
3192
3230
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3193
3231
|
return {
|
|
3194
3232
|
val: {
|
|
3195
|
-
type:
|
|
3233
|
+
type: S.literal,
|
|
3196
3234
|
value: "<".concat(i, "/>"),
|
|
3197
|
-
location:
|
|
3235
|
+
location: y(n, this.clonePosition())
|
|
3198
3236
|
},
|
|
3199
3237
|
err: null
|
|
3200
3238
|
};
|
|
@@ -3204,22 +3242,22 @@ var Yn = (
|
|
|
3204
3242
|
return o;
|
|
3205
3243
|
var s = o.val, a = this.clonePosition();
|
|
3206
3244
|
if (this.bumpIf("</")) {
|
|
3207
|
-
if (this.isEOF() || !
|
|
3208
|
-
return this.error(
|
|
3245
|
+
if (this.isEOF() || !Xe(this.char()))
|
|
3246
|
+
return this.error(b.INVALID_TAG, y(a, this.clonePosition()));
|
|
3209
3247
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3210
|
-
return i !== u ? this.error(
|
|
3248
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3211
3249
|
val: {
|
|
3212
|
-
type:
|
|
3250
|
+
type: S.tag,
|
|
3213
3251
|
value: i,
|
|
3214
3252
|
children: s,
|
|
3215
|
-
location:
|
|
3253
|
+
location: y(n, this.clonePosition())
|
|
3216
3254
|
},
|
|
3217
3255
|
err: null
|
|
3218
|
-
} : this.error(
|
|
3256
|
+
} : this.error(b.INVALID_TAG, y(a, this.clonePosition())));
|
|
3219
3257
|
} else
|
|
3220
|
-
return this.error(
|
|
3258
|
+
return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
|
|
3221
3259
|
} else
|
|
3222
|
-
return this.error(
|
|
3260
|
+
return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
|
|
3223
3261
|
}, e.prototype.parseTagName = function() {
|
|
3224
3262
|
var t = this.offset();
|
|
3225
3263
|
for (this.bump(); !this.isEOF() && ei(this.char()); )
|
|
@@ -3244,9 +3282,9 @@ var Yn = (
|
|
|
3244
3282
|
}
|
|
3245
3283
|
break;
|
|
3246
3284
|
}
|
|
3247
|
-
var l =
|
|
3285
|
+
var l = y(n, this.clonePosition());
|
|
3248
3286
|
return {
|
|
3249
|
-
val: { type:
|
|
3287
|
+
val: { type: S.literal, value: i, location: l },
|
|
3250
3288
|
err: null
|
|
3251
3289
|
};
|
|
3252
3290
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -3285,49 +3323,49 @@ var Yn = (
|
|
|
3285
3323
|
r.push(n);
|
|
3286
3324
|
this.bump();
|
|
3287
3325
|
}
|
|
3288
|
-
return
|
|
3326
|
+
return ke.apply(void 0, r);
|
|
3289
3327
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3290
3328
|
if (this.isEOF())
|
|
3291
3329
|
return null;
|
|
3292
3330
|
var n = this.char();
|
|
3293
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3331
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
|
|
3294
3332
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3295
3333
|
var n = this.clonePosition();
|
|
3296
3334
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3297
|
-
return this.error(
|
|
3335
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
3298
3336
|
if (this.char() === 125)
|
|
3299
|
-
return this.bump(), this.error(
|
|
3337
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, y(n, this.clonePosition()));
|
|
3300
3338
|
var i = this.parseIdentifierIfPossible().value;
|
|
3301
3339
|
if (!i)
|
|
3302
|
-
return this.error(
|
|
3340
|
+
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3303
3341
|
if (this.bumpSpace(), this.isEOF())
|
|
3304
|
-
return this.error(
|
|
3342
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
3305
3343
|
switch (this.char()) {
|
|
3306
3344
|
case 125:
|
|
3307
3345
|
return this.bump(), {
|
|
3308
3346
|
val: {
|
|
3309
|
-
type:
|
|
3347
|
+
type: S.argument,
|
|
3310
3348
|
// value does not include the opening and closing braces.
|
|
3311
3349
|
value: i,
|
|
3312
|
-
location:
|
|
3350
|
+
location: y(n, this.clonePosition())
|
|
3313
3351
|
},
|
|
3314
3352
|
err: null
|
|
3315
3353
|
};
|
|
3316
3354
|
case 44:
|
|
3317
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3355
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3318
3356
|
default:
|
|
3319
|
-
return this.error(
|
|
3357
|
+
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3320
3358
|
}
|
|
3321
3359
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3322
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3360
|
+
var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
|
|
3323
3361
|
this.bumpTo(i);
|
|
3324
|
-
var o = this.clonePosition(), s =
|
|
3362
|
+
var o = this.clonePosition(), s = y(t, o);
|
|
3325
3363
|
return { value: n, location: s };
|
|
3326
3364
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3327
3365
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3328
3366
|
switch (a) {
|
|
3329
3367
|
case "":
|
|
3330
|
-
return this.error(
|
|
3368
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, y(s, l));
|
|
3331
3369
|
case "number":
|
|
3332
3370
|
case "date":
|
|
3333
3371
|
case "time": {
|
|
@@ -3338,46 +3376,46 @@ var Yn = (
|
|
|
3338
3376
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3339
3377
|
if (c.err)
|
|
3340
3378
|
return c;
|
|
3341
|
-
var f =
|
|
3379
|
+
var f = qn(c.val);
|
|
3342
3380
|
if (f.length === 0)
|
|
3343
|
-
return this.error(
|
|
3344
|
-
var m =
|
|
3381
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
3382
|
+
var m = y(h, this.clonePosition());
|
|
3345
3383
|
u = { style: f, styleLocation: m };
|
|
3346
3384
|
}
|
|
3347
|
-
var
|
|
3348
|
-
if (
|
|
3349
|
-
return
|
|
3350
|
-
var
|
|
3385
|
+
var d = this.tryParseArgumentClose(i);
|
|
3386
|
+
if (d.err)
|
|
3387
|
+
return d;
|
|
3388
|
+
var p = y(i, this.clonePosition());
|
|
3351
3389
|
if (u && bt(u?.style, "::", 0)) {
|
|
3352
|
-
var
|
|
3390
|
+
var w = Jn(u.style.slice(2));
|
|
3353
3391
|
if (a === "number") {
|
|
3354
|
-
var c = this.parseNumberSkeletonFromString(
|
|
3392
|
+
var c = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3355
3393
|
return c.err ? c : {
|
|
3356
|
-
val: { type:
|
|
3394
|
+
val: { type: S.number, value: n, location: p, style: c.val },
|
|
3357
3395
|
err: null
|
|
3358
3396
|
};
|
|
3359
3397
|
} else {
|
|
3360
|
-
if (
|
|
3361
|
-
return this.error(
|
|
3362
|
-
var
|
|
3363
|
-
this.locale && (
|
|
3398
|
+
if (w.length === 0)
|
|
3399
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, p);
|
|
3400
|
+
var I = w;
|
|
3401
|
+
this.locale && (I = $n(w, this.locale));
|
|
3364
3402
|
var f = {
|
|
3365
3403
|
type: W.dateTime,
|
|
3366
|
-
pattern:
|
|
3404
|
+
pattern: I,
|
|
3367
3405
|
location: u.styleLocation,
|
|
3368
|
-
parsedOptions: this.shouldParseSkeletons ? Pn(
|
|
3369
|
-
}, C = a === "date" ?
|
|
3406
|
+
parsedOptions: this.shouldParseSkeletons ? Pn(I) : {}
|
|
3407
|
+
}, C = a === "date" ? S.date : S.time;
|
|
3370
3408
|
return {
|
|
3371
|
-
val: { type: C, value: n, location:
|
|
3409
|
+
val: { type: C, value: n, location: p, style: f },
|
|
3372
3410
|
err: null
|
|
3373
3411
|
};
|
|
3374
3412
|
}
|
|
3375
3413
|
}
|
|
3376
3414
|
return {
|
|
3377
3415
|
val: {
|
|
3378
|
-
type: a === "number" ?
|
|
3416
|
+
type: a === "number" ? S.number : a === "date" ? S.date : S.time,
|
|
3379
3417
|
value: n,
|
|
3380
|
-
location:
|
|
3418
|
+
location: p,
|
|
3381
3419
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3382
3420
|
},
|
|
3383
3421
|
err: null
|
|
@@ -3386,30 +3424,30 @@ var Yn = (
|
|
|
3386
3424
|
case "plural":
|
|
3387
3425
|
case "selectordinal":
|
|
3388
3426
|
case "select": {
|
|
3389
|
-
var
|
|
3427
|
+
var T = this.clonePosition();
|
|
3390
3428
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3391
|
-
return this.error(
|
|
3429
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(T, v({}, T)));
|
|
3392
3430
|
this.bumpSpace();
|
|
3393
|
-
var
|
|
3394
|
-
if (a !== "select" &&
|
|
3431
|
+
var _ = this.parseIdentifierIfPossible(), E = 0;
|
|
3432
|
+
if (a !== "select" && _.value === "offset") {
|
|
3395
3433
|
if (!this.bumpIf(":"))
|
|
3396
|
-
return this.error(
|
|
3434
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
3397
3435
|
this.bumpSpace();
|
|
3398
|
-
var c = this.tryParseDecimalInteger(
|
|
3436
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3399
3437
|
if (c.err)
|
|
3400
3438
|
return c;
|
|
3401
|
-
this.bumpSpace(),
|
|
3439
|
+
this.bumpSpace(), _ = this.parseIdentifierIfPossible(), E = c.val;
|
|
3402
3440
|
}
|
|
3403
|
-
var x = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3441
|
+
var x = this.tryParsePluralOrSelectOptions(t, a, r, _);
|
|
3404
3442
|
if (x.err)
|
|
3405
3443
|
return x;
|
|
3406
|
-
var
|
|
3407
|
-
if (
|
|
3408
|
-
return
|
|
3409
|
-
var P =
|
|
3444
|
+
var d = this.tryParseArgumentClose(i);
|
|
3445
|
+
if (d.err)
|
|
3446
|
+
return d;
|
|
3447
|
+
var P = y(i, this.clonePosition());
|
|
3410
3448
|
return a === "select" ? {
|
|
3411
3449
|
val: {
|
|
3412
|
-
type:
|
|
3450
|
+
type: S.select,
|
|
3413
3451
|
value: n,
|
|
3414
3452
|
options: gt(x.val),
|
|
3415
3453
|
location: P
|
|
@@ -3417,10 +3455,10 @@ var Yn = (
|
|
|
3417
3455
|
err: null
|
|
3418
3456
|
} : {
|
|
3419
3457
|
val: {
|
|
3420
|
-
type:
|
|
3458
|
+
type: S.plural,
|
|
3421
3459
|
value: n,
|
|
3422
3460
|
options: gt(x.val),
|
|
3423
|
-
offset:
|
|
3461
|
+
offset: E,
|
|
3424
3462
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3425
3463
|
location: P
|
|
3426
3464
|
},
|
|
@@ -3428,10 +3466,10 @@ var Yn = (
|
|
|
3428
3466
|
};
|
|
3429
3467
|
}
|
|
3430
3468
|
default:
|
|
3431
|
-
return this.error(
|
|
3469
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, y(s, l));
|
|
3432
3470
|
}
|
|
3433
3471
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3434
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3472
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3435
3473
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3436
3474
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3437
3475
|
var n = this.char();
|
|
@@ -3440,7 +3478,7 @@ var Yn = (
|
|
|
3440
3478
|
this.bump();
|
|
3441
3479
|
var i = this.clonePosition();
|
|
3442
3480
|
if (!this.bumpUntil("'"))
|
|
3443
|
-
return this.error(
|
|
3481
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
|
|
3444
3482
|
this.bump();
|
|
3445
3483
|
break;
|
|
3446
3484
|
}
|
|
@@ -3472,7 +3510,7 @@ var Yn = (
|
|
|
3472
3510
|
try {
|
|
3473
3511
|
n = In(t);
|
|
3474
3512
|
} catch {
|
|
3475
|
-
return this.error(
|
|
3513
|
+
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3476
3514
|
}
|
|
3477
3515
|
return {
|
|
3478
3516
|
val: {
|
|
@@ -3488,34 +3526,34 @@ var Yn = (
|
|
|
3488
3526
|
if (u.length === 0) {
|
|
3489
3527
|
var c = this.clonePosition();
|
|
3490
3528
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3491
|
-
var f = this.tryParseDecimalInteger(
|
|
3529
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3492
3530
|
if (f.err)
|
|
3493
3531
|
return f;
|
|
3494
|
-
h =
|
|
3532
|
+
h = y(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3495
3533
|
} else
|
|
3496
3534
|
break;
|
|
3497
3535
|
}
|
|
3498
3536
|
if (l.has(u))
|
|
3499
|
-
return this.error(r === "select" ?
|
|
3537
|
+
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3500
3538
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3501
3539
|
var m = this.clonePosition();
|
|
3502
3540
|
if (!this.bumpIf("{"))
|
|
3503
|
-
return this.error(r === "select" ?
|
|
3504
|
-
var
|
|
3505
|
-
if (p.err)
|
|
3506
|
-
return p;
|
|
3507
|
-
var d = this.tryParseArgumentClose(m);
|
|
3541
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
3542
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3508
3543
|
if (d.err)
|
|
3509
3544
|
return d;
|
|
3545
|
+
var p = this.tryParseArgumentClose(m);
|
|
3546
|
+
if (p.err)
|
|
3547
|
+
return p;
|
|
3510
3548
|
a.push([
|
|
3511
3549
|
u,
|
|
3512
3550
|
{
|
|
3513
|
-
value:
|
|
3514
|
-
location:
|
|
3551
|
+
value: d.val,
|
|
3552
|
+
location: y(m, this.clonePosition())
|
|
3515
3553
|
}
|
|
3516
3554
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3517
3555
|
}
|
|
3518
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3556
|
+
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 };
|
|
3519
3557
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3520
3558
|
var n = 1, i = this.clonePosition();
|
|
3521
3559
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3526,7 +3564,7 @@ var Yn = (
|
|
|
3526
3564
|
else
|
|
3527
3565
|
break;
|
|
3528
3566
|
}
|
|
3529
|
-
var l =
|
|
3567
|
+
var l = y(i, this.clonePosition());
|
|
3530
3568
|
return o ? (s *= n, Zn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3531
3569
|
}, e.prototype.offset = function() {
|
|
3532
3570
|
return this.position.offset;
|
|
@@ -3593,11 +3631,11 @@ var Yn = (
|
|
|
3593
3631
|
}, e;
|
|
3594
3632
|
}()
|
|
3595
3633
|
);
|
|
3596
|
-
function
|
|
3634
|
+
function Xe(e) {
|
|
3597
3635
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3598
3636
|
}
|
|
3599
3637
|
function Kn(e) {
|
|
3600
|
-
return
|
|
3638
|
+
return Xe(e) || e === 47;
|
|
3601
3639
|
}
|
|
3602
3640
|
function ei(e) {
|
|
3603
3641
|
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;
|
|
@@ -3608,31 +3646,32 @@ function ir(e) {
|
|
|
3608
3646
|
function ti(e) {
|
|
3609
3647
|
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;
|
|
3610
3648
|
}
|
|
3611
|
-
function
|
|
3649
|
+
function ze(e) {
|
|
3612
3650
|
e.forEach(function(t) {
|
|
3613
3651
|
if (delete t.location, Zt(t) || Qt(t))
|
|
3614
3652
|
for (var r in t.options)
|
|
3615
|
-
delete t.options[r].location,
|
|
3616
|
-
else
|
|
3653
|
+
delete t.options[r].location, ze(t.options[r].value);
|
|
3654
|
+
else
|
|
3655
|
+
Xt(t) && qt(t.style) || (zt(t) || Wt(t)) && Fe(t.style) ? delete t.style.location : Jt(t) && ze(t.children);
|
|
3617
3656
|
});
|
|
3618
3657
|
}
|
|
3619
3658
|
function ri(e, t) {
|
|
3620
|
-
t === void 0 && (t = {}), t =
|
|
3659
|
+
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3621
3660
|
var r = new Yn(e, t).parse();
|
|
3622
3661
|
if (r.err) {
|
|
3623
|
-
var n = SyntaxError(
|
|
3662
|
+
var n = SyntaxError(b[r.err.kind]);
|
|
3624
3663
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3625
3664
|
}
|
|
3626
|
-
return t?.captureLocation ||
|
|
3665
|
+
return t?.captureLocation || ze(r.val), r.val;
|
|
3627
3666
|
}
|
|
3628
3667
|
var Z;
|
|
3629
3668
|
(function(e) {
|
|
3630
3669
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3631
3670
|
})(Z || (Z = {}));
|
|
3632
|
-
var
|
|
3671
|
+
var _e = (
|
|
3633
3672
|
/** @class */
|
|
3634
3673
|
function(e) {
|
|
3635
|
-
|
|
3674
|
+
R(t, e);
|
|
3636
3675
|
function t(r, n, i) {
|
|
3637
3676
|
var o = e.call(this, r) || this;
|
|
3638
3677
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3641,51 +3680,51 @@ var Ee = (
|
|
|
3641
3680
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3642
3681
|
}, t;
|
|
3643
3682
|
}(Error)
|
|
3644
|
-
),
|
|
3683
|
+
), vt = (
|
|
3645
3684
|
/** @class */
|
|
3646
3685
|
function(e) {
|
|
3647
|
-
|
|
3686
|
+
R(t, e);
|
|
3648
3687
|
function t(r, n, i, o) {
|
|
3649
3688
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Z.INVALID_VALUE, o) || this;
|
|
3650
3689
|
}
|
|
3651
3690
|
return t;
|
|
3652
|
-
}(
|
|
3691
|
+
}(_e)
|
|
3653
3692
|
), ni = (
|
|
3654
3693
|
/** @class */
|
|
3655
3694
|
function(e) {
|
|
3656
|
-
|
|
3695
|
+
R(t, e);
|
|
3657
3696
|
function t(r, n, i) {
|
|
3658
3697
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Z.INVALID_VALUE, i) || this;
|
|
3659
3698
|
}
|
|
3660
3699
|
return t;
|
|
3661
|
-
}(
|
|
3700
|
+
}(_e)
|
|
3662
3701
|
), ii = (
|
|
3663
3702
|
/** @class */
|
|
3664
3703
|
function(e) {
|
|
3665
|
-
|
|
3704
|
+
R(t, e);
|
|
3666
3705
|
function t(r, n) {
|
|
3667
3706
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Z.MISSING_VALUE, n) || this;
|
|
3668
3707
|
}
|
|
3669
3708
|
return t;
|
|
3670
|
-
}(
|
|
3671
|
-
),
|
|
3709
|
+
}(_e)
|
|
3710
|
+
), A;
|
|
3672
3711
|
(function(e) {
|
|
3673
3712
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3674
|
-
})(
|
|
3713
|
+
})(A || (A = {}));
|
|
3675
3714
|
function oi(e) {
|
|
3676
3715
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3677
3716
|
var n = t[t.length - 1];
|
|
3678
|
-
return !n || n.type !==
|
|
3717
|
+
return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
|
|
3679
3718
|
}, []);
|
|
3680
3719
|
}
|
|
3681
3720
|
function si(e) {
|
|
3682
3721
|
return typeof e == "function";
|
|
3683
3722
|
}
|
|
3684
|
-
function
|
|
3723
|
+
function de(e, t, r, n, i, o, s) {
|
|
3685
3724
|
if (e.length === 1 && ft(e[0]))
|
|
3686
3725
|
return [
|
|
3687
3726
|
{
|
|
3688
|
-
type:
|
|
3727
|
+
type: A.literal,
|
|
3689
3728
|
value: e[0].value
|
|
3690
3729
|
}
|
|
3691
3730
|
];
|
|
@@ -3693,14 +3732,14 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3693
3732
|
var h = u[l];
|
|
3694
3733
|
if (ft(h)) {
|
|
3695
3734
|
a.push({
|
|
3696
|
-
type:
|
|
3735
|
+
type: A.literal,
|
|
3697
3736
|
value: h.value
|
|
3698
3737
|
});
|
|
3699
3738
|
continue;
|
|
3700
3739
|
}
|
|
3701
3740
|
if (An(h)) {
|
|
3702
3741
|
typeof o == "number" && a.push({
|
|
3703
|
-
type:
|
|
3742
|
+
type: A.literal,
|
|
3704
3743
|
value: r.getNumberFormat(t).format(o)
|
|
3705
3744
|
});
|
|
3706
3745
|
continue;
|
|
@@ -3711,85 +3750,85 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3711
3750
|
var f = i[c];
|
|
3712
3751
|
if (Bn(h)) {
|
|
3713
3752
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3714
|
-
type: typeof f == "string" ?
|
|
3753
|
+
type: typeof f == "string" ? A.literal : A.object,
|
|
3715
3754
|
value: f
|
|
3716
3755
|
});
|
|
3717
3756
|
continue;
|
|
3718
3757
|
}
|
|
3719
3758
|
if (zt(h)) {
|
|
3720
|
-
var m = typeof h.style == "string" ? n.date[h.style] :
|
|
3759
|
+
var m = typeof h.style == "string" ? n.date[h.style] : Fe(h.style) ? h.style.parsedOptions : void 0;
|
|
3721
3760
|
a.push({
|
|
3722
|
-
type:
|
|
3761
|
+
type: A.literal,
|
|
3723
3762
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3724
3763
|
});
|
|
3725
3764
|
continue;
|
|
3726
3765
|
}
|
|
3727
3766
|
if (Wt(h)) {
|
|
3728
|
-
var m = typeof h.style == "string" ? n.time[h.style] :
|
|
3767
|
+
var m = typeof h.style == "string" ? n.time[h.style] : Fe(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3729
3768
|
a.push({
|
|
3730
|
-
type:
|
|
3769
|
+
type: A.literal,
|
|
3731
3770
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3732
3771
|
});
|
|
3733
3772
|
continue;
|
|
3734
3773
|
}
|
|
3735
3774
|
if (Xt(h)) {
|
|
3736
|
-
var m = typeof h.style == "string" ? n.number[h.style] :
|
|
3775
|
+
var m = typeof h.style == "string" ? n.number[h.style] : qt(h.style) ? h.style.parsedOptions : void 0;
|
|
3737
3776
|
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3738
|
-
type:
|
|
3777
|
+
type: A.literal,
|
|
3739
3778
|
value: r.getNumberFormat(t, m).format(f)
|
|
3740
3779
|
});
|
|
3741
3780
|
continue;
|
|
3742
3781
|
}
|
|
3743
|
-
if (
|
|
3744
|
-
var
|
|
3745
|
-
if (!si(
|
|
3746
|
-
throw new ni(
|
|
3747
|
-
var
|
|
3748
|
-
return
|
|
3782
|
+
if (Jt(h)) {
|
|
3783
|
+
var d = h.children, p = h.value, w = i[p];
|
|
3784
|
+
if (!si(w))
|
|
3785
|
+
throw new ni(p, "function", s);
|
|
3786
|
+
var I = de(d, t, r, n, i, o), C = w(I.map(function(E) {
|
|
3787
|
+
return E.value;
|
|
3749
3788
|
}));
|
|
3750
|
-
Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(
|
|
3789
|
+
Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(E) {
|
|
3751
3790
|
return {
|
|
3752
|
-
type: typeof
|
|
3753
|
-
value:
|
|
3791
|
+
type: typeof E == "string" ? A.literal : A.object,
|
|
3792
|
+
value: E
|
|
3754
3793
|
};
|
|
3755
3794
|
}));
|
|
3756
3795
|
}
|
|
3757
3796
|
if (Zt(h)) {
|
|
3758
|
-
var
|
|
3759
|
-
if (!
|
|
3760
|
-
throw new
|
|
3761
|
-
a.push.apply(a,
|
|
3797
|
+
var T = h.options[f] || h.options.other;
|
|
3798
|
+
if (!T)
|
|
3799
|
+
throw new vt(h.value, f, Object.keys(h.options), s);
|
|
3800
|
+
a.push.apply(a, de(T.value, t, r, n, i));
|
|
3762
3801
|
continue;
|
|
3763
3802
|
}
|
|
3764
3803
|
if (Qt(h)) {
|
|
3765
|
-
var
|
|
3766
|
-
if (!
|
|
3804
|
+
var T = h.options["=".concat(f)];
|
|
3805
|
+
if (!T) {
|
|
3767
3806
|
if (!Intl.PluralRules)
|
|
3768
|
-
throw new
|
|
3807
|
+
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3769
3808
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3770
3809
|
`, Z.MISSING_INTL_API, s);
|
|
3771
|
-
var
|
|
3772
|
-
|
|
3810
|
+
var _ = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3811
|
+
T = h.options[_] || h.options.other;
|
|
3773
3812
|
}
|
|
3774
|
-
if (!
|
|
3775
|
-
throw new
|
|
3776
|
-
a.push.apply(a,
|
|
3813
|
+
if (!T)
|
|
3814
|
+
throw new vt(h.value, f, Object.keys(h.options), s);
|
|
3815
|
+
a.push.apply(a, de(T.value, t, r, n, i, f - (h.offset || 0)));
|
|
3777
3816
|
continue;
|
|
3778
3817
|
}
|
|
3779
3818
|
}
|
|
3780
3819
|
return oi(a);
|
|
3781
3820
|
}
|
|
3782
3821
|
function ai(e, t) {
|
|
3783
|
-
return t ?
|
|
3784
|
-
return r[n] =
|
|
3822
|
+
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3823
|
+
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3785
3824
|
}, {})) : e;
|
|
3786
3825
|
}
|
|
3787
3826
|
function ui(e, t) {
|
|
3788
3827
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3789
3828
|
return r[n] = ai(e[n], t[n]), r;
|
|
3790
|
-
},
|
|
3829
|
+
}, v({}, e)) : e;
|
|
3791
3830
|
}
|
|
3792
|
-
function
|
|
3831
|
+
function Pe(e) {
|
|
3793
3832
|
return {
|
|
3794
3833
|
create: function() {
|
|
3795
3834
|
return {
|
|
@@ -3809,29 +3848,29 @@ function li(e) {
|
|
|
3809
3848
|
dateTime: {},
|
|
3810
3849
|
pluralRules: {}
|
|
3811
3850
|
}), {
|
|
3812
|
-
getNumberFormat:
|
|
3851
|
+
getNumberFormat: Be(function() {
|
|
3813
3852
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3814
3853
|
r[n] = arguments[n];
|
|
3815
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3854
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3816
3855
|
}, {
|
|
3817
|
-
cache:
|
|
3818
|
-
strategy:
|
|
3856
|
+
cache: Pe(e.number),
|
|
3857
|
+
strategy: Ae.variadic
|
|
3819
3858
|
}),
|
|
3820
|
-
getDateTimeFormat:
|
|
3859
|
+
getDateTimeFormat: Be(function() {
|
|
3821
3860
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3822
3861
|
r[n] = arguments[n];
|
|
3823
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3862
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3824
3863
|
}, {
|
|
3825
|
-
cache:
|
|
3826
|
-
strategy:
|
|
3864
|
+
cache: Pe(e.dateTime),
|
|
3865
|
+
strategy: Ae.variadic
|
|
3827
3866
|
}),
|
|
3828
|
-
getPluralRules:
|
|
3867
|
+
getPluralRules: Be(function() {
|
|
3829
3868
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3830
3869
|
r[n] = arguments[n];
|
|
3831
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3870
|
+
return new ((t = Intl.PluralRules).bind.apply(t, V([void 0], r, !1)))();
|
|
3832
3871
|
}, {
|
|
3833
|
-
cache:
|
|
3834
|
-
strategy:
|
|
3872
|
+
cache: Pe(e.pluralRules),
|
|
3873
|
+
strategy: Ae.variadic
|
|
3835
3874
|
})
|
|
3836
3875
|
};
|
|
3837
3876
|
}
|
|
@@ -3850,11 +3889,11 @@ var hi = (
|
|
|
3850
3889
|
if (u.length === 1)
|
|
3851
3890
|
return u[0].value;
|
|
3852
3891
|
var h = u.reduce(function(c, f) {
|
|
3853
|
-
return !c.length || f.type !==
|
|
3892
|
+
return !c.length || f.type !== A.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3854
3893
|
}, []);
|
|
3855
3894
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3856
3895
|
}, this.formatToParts = function(l) {
|
|
3857
|
-
return
|
|
3896
|
+
return de(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3858
3897
|
}, this.resolvedOptions = function() {
|
|
3859
3898
|
var l;
|
|
3860
3899
|
return {
|
|
@@ -3868,7 +3907,7 @@ var hi = (
|
|
|
3868
3907
|
var s = i || {};
|
|
3869
3908
|
s.formatters;
|
|
3870
3909
|
var a = kr(s, ["formatters"]);
|
|
3871
|
-
this.ast = e.__parse(t,
|
|
3910
|
+
this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
|
|
3872
3911
|
} else
|
|
3873
3912
|
this.ast = t;
|
|
3874
3913
|
if (!Array.isArray(this.ast))
|
|
@@ -3968,25 +4007,25 @@ function ci(e, t) {
|
|
|
3968
4007
|
n = void 0;
|
|
3969
4008
|
return n;
|
|
3970
4009
|
}
|
|
3971
|
-
const
|
|
4010
|
+
const $ = {}, fi = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), or = (e, t) => {
|
|
3972
4011
|
if (t == null)
|
|
3973
4012
|
return;
|
|
3974
|
-
if (t in
|
|
3975
|
-
return
|
|
3976
|
-
const r =
|
|
4013
|
+
if (t in $ && e in $[t])
|
|
4014
|
+
return $[t][e];
|
|
4015
|
+
const r = Ee(t);
|
|
3977
4016
|
for (let n = 0; n < r.length; n++) {
|
|
3978
4017
|
const i = r[n], o = di(i, e);
|
|
3979
4018
|
if (o)
|
|
3980
4019
|
return fi(e, t, o);
|
|
3981
4020
|
}
|
|
3982
4021
|
};
|
|
3983
|
-
let
|
|
3984
|
-
const
|
|
4022
|
+
let Ye;
|
|
4023
|
+
const ae = xe({});
|
|
3985
4024
|
function mi(e) {
|
|
3986
|
-
return
|
|
4025
|
+
return Ye[e] || null;
|
|
3987
4026
|
}
|
|
3988
4027
|
function sr(e) {
|
|
3989
|
-
return e in
|
|
4028
|
+
return e in Ye;
|
|
3990
4029
|
}
|
|
3991
4030
|
function di(e, t) {
|
|
3992
4031
|
if (!sr(e))
|
|
@@ -3997,7 +4036,7 @@ function di(e, t) {
|
|
|
3997
4036
|
function pi(e) {
|
|
3998
4037
|
if (e == null)
|
|
3999
4038
|
return;
|
|
4000
|
-
const t =
|
|
4039
|
+
const t = Ee(e);
|
|
4001
4040
|
for (let r = 0; r < t.length; r++) {
|
|
4002
4041
|
const n = t[r];
|
|
4003
4042
|
if (sr(n))
|
|
@@ -4005,55 +4044,55 @@ function pi(e) {
|
|
|
4005
4044
|
}
|
|
4006
4045
|
}
|
|
4007
4046
|
function ar(e, ...t) {
|
|
4008
|
-
delete
|
|
4047
|
+
delete $[e], ae.update((r) => (r[e] = xn.all([r[e] || {}, ...t]), r));
|
|
4009
4048
|
}
|
|
4010
4049
|
Y(
|
|
4011
|
-
[
|
|
4050
|
+
[ae],
|
|
4012
4051
|
([e]) => Object.keys(e)
|
|
4013
4052
|
);
|
|
4014
|
-
|
|
4015
|
-
const
|
|
4053
|
+
ae.subscribe((e) => Ye = e);
|
|
4054
|
+
const pe = {};
|
|
4016
4055
|
function bi(e, t) {
|
|
4017
|
-
|
|
4056
|
+
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
4018
4057
|
}
|
|
4019
4058
|
function ur(e) {
|
|
4020
|
-
return
|
|
4059
|
+
return pe[e];
|
|
4021
4060
|
}
|
|
4022
4061
|
function gi(e) {
|
|
4023
|
-
return
|
|
4062
|
+
return Ee(e).map((t) => {
|
|
4024
4063
|
const r = ur(t);
|
|
4025
4064
|
return [t, r ? [...r] : []];
|
|
4026
4065
|
}).filter(([, t]) => t.length > 0);
|
|
4027
4066
|
}
|
|
4028
|
-
function
|
|
4029
|
-
return e == null ? !1 :
|
|
4067
|
+
function We(e) {
|
|
4068
|
+
return e == null ? !1 : Ee(e).some(
|
|
4030
4069
|
(t) => {
|
|
4031
4070
|
var r;
|
|
4032
4071
|
return (r = ur(t)) == null ? void 0 : r.size;
|
|
4033
4072
|
}
|
|
4034
4073
|
);
|
|
4035
4074
|
}
|
|
4036
|
-
function
|
|
4075
|
+
function yi(e, t) {
|
|
4037
4076
|
return Promise.all(
|
|
4038
4077
|
t.map((n) => (bi(e, n), n().then((i) => i.default || i)))
|
|
4039
4078
|
).then((n) => ar(e, ...n));
|
|
4040
4079
|
}
|
|
4041
4080
|
const te = {};
|
|
4042
4081
|
function lr(e) {
|
|
4043
|
-
if (!
|
|
4082
|
+
if (!We(e))
|
|
4044
4083
|
return e in te ? te[e] : Promise.resolve();
|
|
4045
4084
|
const t = gi(e);
|
|
4046
4085
|
return te[e] = Promise.all(
|
|
4047
4086
|
t.map(
|
|
4048
|
-
([r, n]) =>
|
|
4087
|
+
([r, n]) => yi(r, n)
|
|
4049
4088
|
)
|
|
4050
4089
|
).then(() => {
|
|
4051
|
-
if (
|
|
4090
|
+
if (We(e))
|
|
4052
4091
|
return lr(e);
|
|
4053
4092
|
delete te[e];
|
|
4054
4093
|
}), te[e];
|
|
4055
4094
|
}
|
|
4056
|
-
const
|
|
4095
|
+
const vi = {
|
|
4057
4096
|
number: {
|
|
4058
4097
|
scientific: { notation: "scientific" },
|
|
4059
4098
|
engineering: { notation: "engineering" },
|
|
@@ -4085,7 +4124,7 @@ const yi = {
|
|
|
4085
4124
|
}, xi = {
|
|
4086
4125
|
fallbackLocale: null,
|
|
4087
4126
|
loadingDelay: 200,
|
|
4088
|
-
formats:
|
|
4127
|
+
formats: vi,
|
|
4089
4128
|
warnOnMissingMessages: !0,
|
|
4090
4129
|
handleMissingMessage: void 0,
|
|
4091
4130
|
ignoreTag: !0
|
|
@@ -4093,7 +4132,7 @@ const yi = {
|
|
|
4093
4132
|
function Q() {
|
|
4094
4133
|
return _i;
|
|
4095
4134
|
}
|
|
4096
|
-
const
|
|
4135
|
+
const Oe = xe(!1);
|
|
4097
4136
|
var Ei = Object.defineProperty, Si = Object.defineProperties, wi = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, Ti = Object.prototype.hasOwnProperty, Hi = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bi = (e, t) => {
|
|
4098
4137
|
for (var r in t || (t = {}))
|
|
4099
4138
|
Ti.call(t, r) && _t(e, r, t[r]);
|
|
@@ -4102,45 +4141,45 @@ var Ei = Object.defineProperty, Si = Object.defineProperties, wi = Object.getOwn
|
|
|
4102
4141
|
Hi.call(t, r) && _t(e, r, t[r]);
|
|
4103
4142
|
return e;
|
|
4104
4143
|
}, Ai = (e, t) => Si(e, wi(t));
|
|
4105
|
-
let
|
|
4106
|
-
const
|
|
4144
|
+
let Ze;
|
|
4145
|
+
const ge = xe(null);
|
|
4107
4146
|
function Et(e) {
|
|
4108
4147
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4109
4148
|
}
|
|
4110
|
-
function
|
|
4149
|
+
function Ee(e, t = Q().fallbackLocale) {
|
|
4111
4150
|
const r = Et(e);
|
|
4112
4151
|
return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
|
|
4113
4152
|
}
|
|
4114
|
-
function
|
|
4115
|
-
return
|
|
4153
|
+
function G() {
|
|
4154
|
+
return Ze ?? void 0;
|
|
4116
4155
|
}
|
|
4117
|
-
|
|
4118
|
-
|
|
4156
|
+
ge.subscribe((e) => {
|
|
4157
|
+
Ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4119
4158
|
});
|
|
4120
4159
|
const Ci = (e) => {
|
|
4121
|
-
if (e && pi(e) &&
|
|
4160
|
+
if (e && pi(e) && We(e)) {
|
|
4122
4161
|
const { loadingDelay: t } = Q();
|
|
4123
4162
|
let r;
|
|
4124
|
-
return typeof window < "u" &&
|
|
4125
|
-
() =>
|
|
4163
|
+
return typeof window < "u" && G() != null && t ? r = window.setTimeout(
|
|
4164
|
+
() => Oe.set(!0),
|
|
4126
4165
|
t
|
|
4127
|
-
) :
|
|
4128
|
-
|
|
4166
|
+
) : Oe.set(!0), lr(e).then(() => {
|
|
4167
|
+
ge.set(e);
|
|
4129
4168
|
}).finally(() => {
|
|
4130
|
-
clearTimeout(r),
|
|
4169
|
+
clearTimeout(r), Oe.set(!1);
|
|
4131
4170
|
});
|
|
4132
4171
|
}
|
|
4133
|
-
return
|
|
4134
|
-
}, K = Ai(Bi({},
|
|
4172
|
+
return ge.set(e);
|
|
4173
|
+
}, K = Ai(Bi({}, ge), {
|
|
4135
4174
|
set: Ci
|
|
4136
|
-
}),
|
|
4175
|
+
}), Se = (e) => {
|
|
4137
4176
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4138
4177
|
return (n) => {
|
|
4139
4178
|
const i = JSON.stringify(n);
|
|
4140
4179
|
return i in t ? t[i] : t[i] = e(n);
|
|
4141
4180
|
};
|
|
4142
4181
|
};
|
|
4143
|
-
var Pi = Object.defineProperty, ye = Object.getOwnPropertySymbols, hr = Object.prototype.hasOwnProperty, cr = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r,
|
|
4182
|
+
var Pi = Object.defineProperty, ye = Object.getOwnPropertySymbols, hr = Object.prototype.hasOwnProperty, cr = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
4144
4183
|
for (var r in t || (t = {}))
|
|
4145
4184
|
hr.call(t, r) && St(e, r, t[r]);
|
|
4146
4185
|
if (ye)
|
|
@@ -4156,58 +4195,58 @@ var Pi = Object.defineProperty, ye = Object.getOwnPropertySymbols, hr = Object.p
|
|
|
4156
4195
|
t.indexOf(n) < 0 && cr.call(e, n) && (r[n] = e[n]);
|
|
4157
4196
|
return r;
|
|
4158
4197
|
};
|
|
4159
|
-
const
|
|
4198
|
+
const oe = (e, t) => {
|
|
4160
4199
|
const { formats: r } = Q();
|
|
4161
4200
|
if (e in r && t in r[e])
|
|
4162
4201
|
return r[e][t];
|
|
4163
4202
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4164
|
-
}, Oi =
|
|
4203
|
+
}, Oi = Se(
|
|
4165
4204
|
(e) => {
|
|
4166
4205
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4167
4206
|
if (r == null)
|
|
4168
4207
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4169
|
-
return n && (i =
|
|
4208
|
+
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
4170
4209
|
}
|
|
4171
|
-
), Ii =
|
|
4210
|
+
), Ii = Se(
|
|
4172
4211
|
(e) => {
|
|
4173
4212
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4174
4213
|
if (r == null)
|
|
4175
4214
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4176
|
-
return n ? i =
|
|
4215
|
+
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4177
4216
|
}
|
|
4178
|
-
), Mi =
|
|
4217
|
+
), Mi = Se(
|
|
4179
4218
|
(e) => {
|
|
4180
4219
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4181
4220
|
if (r == null)
|
|
4182
4221
|
throw new Error(
|
|
4183
4222
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4184
4223
|
);
|
|
4185
|
-
return n ? i =
|
|
4224
|
+
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4186
4225
|
}
|
|
4187
4226
|
), Ni = (e = {}) => {
|
|
4188
4227
|
var t = e, {
|
|
4189
|
-
locale: r =
|
|
4228
|
+
locale: r = G()
|
|
4190
4229
|
} = t, n = ee(t, [
|
|
4191
4230
|
"locale"
|
|
4192
4231
|
]);
|
|
4193
|
-
return Oi(
|
|
4232
|
+
return Oi(Ke({ locale: r }, n));
|
|
4194
4233
|
}, Li = (e = {}) => {
|
|
4195
4234
|
var t = e, {
|
|
4196
|
-
locale: r =
|
|
4235
|
+
locale: r = G()
|
|
4197
4236
|
} = t, n = ee(t, [
|
|
4198
4237
|
"locale"
|
|
4199
4238
|
]);
|
|
4200
|
-
return Ii(
|
|
4239
|
+
return Ii(Ke({ locale: r }, n));
|
|
4201
4240
|
}, Ri = (e = {}) => {
|
|
4202
4241
|
var t = e, {
|
|
4203
|
-
locale: r =
|
|
4242
|
+
locale: r = G()
|
|
4204
4243
|
} = t, n = ee(t, [
|
|
4205
4244
|
"locale"
|
|
4206
4245
|
]);
|
|
4207
|
-
return Mi(
|
|
4208
|
-
}, $i =
|
|
4246
|
+
return Mi(Ke({ locale: r }, n));
|
|
4247
|
+
}, $i = Se(
|
|
4209
4248
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4210
|
-
(e, t =
|
|
4249
|
+
(e, t = G()) => new hi(e, t, Q().formats, {
|
|
4211
4250
|
ignoreTag: Q().ignoreTag
|
|
4212
4251
|
})
|
|
4213
4252
|
), Gi = (e, t = {}) => {
|
|
@@ -4216,7 +4255,7 @@ const se = (e, t) => {
|
|
|
4216
4255
|
typeof e == "object" && (s = e, e = s.id);
|
|
4217
4256
|
const {
|
|
4218
4257
|
values: a,
|
|
4219
|
-
locale: l =
|
|
4258
|
+
locale: l = G(),
|
|
4220
4259
|
default: u
|
|
4221
4260
|
} = s;
|
|
4222
4261
|
if (l == null)
|
|
@@ -4242,17 +4281,40 @@ const se = (e, t) => {
|
|
|
4242
4281
|
);
|
|
4243
4282
|
}
|
|
4244
4283
|
return c;
|
|
4245
|
-
}, Ui = (e, t) => Ri(t).format(e), Di = (e, t) => Li(t).format(e), Fi = (e, t) => Ni(t).format(e), ji = (e, t =
|
|
4284
|
+
}, Ui = (e, t) => Ri(t).format(e), Di = (e, t) => Li(t).format(e), Fi = (e, t) => Ni(t).format(e), ji = (e, t = G()) => or(e, t), ki = Y([K, ae], () => Gi);
|
|
4246
4285
|
Y([K], () => Ui);
|
|
4247
4286
|
Y([K], () => Di);
|
|
4248
4287
|
Y([K], () => Fi);
|
|
4249
|
-
Y([K,
|
|
4288
|
+
Y([K, ae], () => ji);
|
|
4250
4289
|
window.emWidgets = { topic: nn };
|
|
4251
4290
|
const Vi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4291
|
+
function Xi(e, t) {
|
|
4292
|
+
if (e) {
|
|
4293
|
+
const r = document.createElement("style");
|
|
4294
|
+
r.innerHTML = t, e.appendChild(r);
|
|
4295
|
+
}
|
|
4296
|
+
}
|
|
4297
|
+
function zi(e, t) {
|
|
4298
|
+
const r = new URL(t);
|
|
4299
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4300
|
+
const i = document.createElement("style");
|
|
4301
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
4302
|
+
}).catch((n) => {
|
|
4303
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
4304
|
+
});
|
|
4305
|
+
}
|
|
4306
|
+
function Wi(e, t, r) {
|
|
4307
|
+
if (window.emMessageBus) {
|
|
4308
|
+
const n = document.createElement("style");
|
|
4309
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
4310
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
4311
|
+
});
|
|
4312
|
+
}
|
|
4313
|
+
}
|
|
4252
4314
|
function wt(e, t) {
|
|
4253
4315
|
ar(e, t);
|
|
4254
4316
|
}
|
|
4255
|
-
function
|
|
4317
|
+
function Zi(e) {
|
|
4256
4318
|
K.set(e);
|
|
4257
4319
|
}
|
|
4258
4320
|
const Tt = {
|
|
@@ -4301,22 +4363,22 @@ const Tt = {
|
|
|
4301
4363
|
confirm: "Confirm"
|
|
4302
4364
|
}
|
|
4303
4365
|
};
|
|
4304
|
-
function
|
|
4305
|
-
|
|
4366
|
+
function Qi(e) {
|
|
4367
|
+
Er(e, "svelte-1o81iqe", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GeneralConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GeneralConfirmationTitle{margin-bottom:20px}.GeneralConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 20px);text-align:center}.GeneralConfirmationContainer::before{content:"";position:absolute;top:-4px;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)}.GeneralConfirmationContainer::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)}.GeneralConfirmationContainerMobile{padding:40px;max-width:330px}.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralCancelButton,.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GeneralConfirmationContent{font-size:var(--emw--font-size-medium, 18px);font-weight:300}.GeneralConfirmationControlArea{display:flex;gap:10px;direction:ltr;margin-top:30px}.GeneralConfirmationControlArea .GeneralCancelButton,.GeneralConfirmationControlArea .GeneralConfirmButton{flex:1;background:transparent;border:1px solid var(--emw--color-gray-100, #BFCBC3);color:var(--emw--color-gray-100, #BFCBC3);cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-small, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GeneralConfirmationControlArea .GeneralConfirmButton{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))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GeneralConfirmationMobileWrapper{border:none;padding:0}');
|
|
4306
4368
|
}
|
|
4307
|
-
const
|
|
4308
|
-
function
|
|
4369
|
+
const Ji = (e) => ({}), Ht = (e) => ({});
|
|
4370
|
+
function qi(e) {
|
|
4309
4371
|
let t, r;
|
|
4310
4372
|
return {
|
|
4311
4373
|
c() {
|
|
4312
|
-
t = rt("svg"), r = rt("path"),
|
|
4374
|
+
t = rt("svg"), r = rt("path"), H(r, "stroke-linecap", "round"), H(r, "stroke-linejoin", "round"), H(r, "stroke-width", "2"), H(r, "d", "M6 18L18 6M6 6l12 12"), H(t, "class", "w-6 h-6"), H(t, "fill", "none"), H(t, "stroke", "currentColor"), H(t, "viewBox", "0 0 24 24"), H(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4313
4375
|
},
|
|
4314
4376
|
m(n, i) {
|
|
4315
|
-
|
|
4377
|
+
se(n, t, i), B(t, r);
|
|
4316
4378
|
},
|
|
4317
4379
|
p: N,
|
|
4318
4380
|
d(n) {
|
|
4319
|
-
n &&
|
|
4381
|
+
n && q(t);
|
|
4320
4382
|
}
|
|
4321
4383
|
};
|
|
4322
4384
|
}
|
|
@@ -4324,24 +4386,24 @@ function Bt(e) {
|
|
|
4324
4386
|
let t, r, n;
|
|
4325
4387
|
return {
|
|
4326
4388
|
c() {
|
|
4327
|
-
t = M("div"), r = M("h2"), n =
|
|
4389
|
+
t = M("div"), r = M("h2"), n = X(
|
|
4328
4390
|
/*modaltitle*/
|
|
4329
4391
|
e[1]
|
|
4330
|
-
),
|
|
4392
|
+
), H(t, "class", "GeneralConfirmationTitle");
|
|
4331
4393
|
},
|
|
4332
4394
|
m(i, o) {
|
|
4333
|
-
|
|
4395
|
+
se(i, t, o), B(t, r), B(r, n);
|
|
4334
4396
|
},
|
|
4335
4397
|
p(i, o) {
|
|
4336
4398
|
o & /*modaltitle*/
|
|
4337
|
-
2 &&
|
|
4399
|
+
2 && be(
|
|
4338
4400
|
n,
|
|
4339
4401
|
/*modaltitle*/
|
|
4340
4402
|
i[1]
|
|
4341
4403
|
);
|
|
4342
4404
|
},
|
|
4343
4405
|
d(i) {
|
|
4344
|
-
i &&
|
|
4406
|
+
i && q(t);
|
|
4345
4407
|
}
|
|
4346
4408
|
};
|
|
4347
4409
|
}
|
|
@@ -4352,184 +4414,176 @@ function At(e) {
|
|
|
4352
4414
|
), n, i, o;
|
|
4353
4415
|
return {
|
|
4354
4416
|
c() {
|
|
4355
|
-
t = M("button"), n =
|
|
4417
|
+
t = M("button"), n = X(r), H(t, "class", "GeneralCancelButton");
|
|
4356
4418
|
},
|
|
4357
4419
|
m(s, a) {
|
|
4358
|
-
|
|
4420
|
+
se(s, t, a), B(t, n), i || (o = Ie(
|
|
4359
4421
|
t,
|
|
4360
4422
|
"click",
|
|
4361
4423
|
/*click_handler*/
|
|
4362
|
-
e[
|
|
4424
|
+
e[17]
|
|
4363
4425
|
), i = !0);
|
|
4364
4426
|
},
|
|
4365
4427
|
p(s, a) {
|
|
4366
4428
|
a & /*$_*/
|
|
4367
4429
|
16 && r !== (r = /*$_*/
|
|
4368
|
-
s[4]("cancel") + "") &&
|
|
4430
|
+
s[4]("cancel") + "") && be(n, r);
|
|
4369
4431
|
},
|
|
4370
4432
|
d(s) {
|
|
4371
|
-
s &&
|
|
4433
|
+
s && q(t), i = !1, o();
|
|
4372
4434
|
}
|
|
4373
4435
|
};
|
|
4374
4436
|
}
|
|
4375
|
-
function
|
|
4437
|
+
function Yi(e) {
|
|
4376
4438
|
let t, r, n, i, o, s, a, l, u, h, c, f = (
|
|
4377
4439
|
/*$_*/
|
|
4378
4440
|
e[4]("confirm") + ""
|
|
4379
|
-
), m,
|
|
4380
|
-
const
|
|
4441
|
+
), m, d, p, w;
|
|
4442
|
+
const I = (
|
|
4381
4443
|
/*#slots*/
|
|
4382
|
-
e[
|
|
4444
|
+
e[16].close
|
|
4383
4445
|
), C = yr(
|
|
4384
|
-
|
|
4446
|
+
I,
|
|
4385
4447
|
e,
|
|
4386
4448
|
/*$$scope*/
|
|
4387
|
-
e[
|
|
4449
|
+
e[15],
|
|
4388
4450
|
Ht
|
|
4389
|
-
),
|
|
4390
|
-
let
|
|
4451
|
+
), T = C || qi();
|
|
4452
|
+
let _ = (
|
|
4391
4453
|
/*modaltitle*/
|
|
4392
4454
|
e[1] && Bt(e)
|
|
4393
|
-
),
|
|
4455
|
+
), E = (
|
|
4394
4456
|
/*hascancelbutton*/
|
|
4395
4457
|
e[2] && At(e)
|
|
4396
4458
|
);
|
|
4397
4459
|
return {
|
|
4398
4460
|
c() {
|
|
4399
|
-
t = M("div"), r = M("div"), n = M("span"),
|
|
4461
|
+
t = M("div"), r = M("div"), n = M("span"), T && T.c(), i = ue(), _ && _.c(), o = ue(), s = M("div"), a = X(
|
|
4400
4462
|
/*modaltext*/
|
|
4401
4463
|
e[0]
|
|
4402
|
-
), l =
|
|
4403
|
-
(e[5] ? "GeneralConfirmationControlAreaMobile" : "")),
|
|
4404
|
-
(e[5] ? "GeneralConfirmationContainerMobile" : "")),
|
|
4464
|
+
), l = ue(), u = M("div"), E && E.c(), h = ue(), c = M("button"), m = X(f), H(n, "class", "ModalCloseBtn"), H(n, "role", "button"), H(s, "class", "GeneralConfirmationContent"), H(c, "class", "GeneralConfirmButton"), H(u, "class", "GeneralConfirmationControlArea " + /*isMobile*/
|
|
4465
|
+
(e[5] ? "GeneralConfirmationControlAreaMobile" : "")), H(r, "class", "GeneralConfirmationContainer " + /*isMobile*/
|
|
4466
|
+
(e[5] ? "GeneralConfirmationContainerMobile" : "")), H(t, "class", "GeneralConfirmationWrapper " + /*isMobile*/
|
|
4405
4467
|
(e[5] ? "GeneralConfirmationMobileWrapper" : ""));
|
|
4406
4468
|
},
|
|
4407
4469
|
m(x, P) {
|
|
4408
|
-
|
|
4409
|
-
|
|
4470
|
+
se(x, t, P), B(t, r), B(r, n), T && T.m(n, null), B(r, i), _ && _.m(r, null), B(r, o), B(r, s), B(s, a), B(r, l), B(r, u), E && E.m(u, null), B(u, h), B(u, c), B(c, m), e[19](t), d = !0, p || (w = [
|
|
4471
|
+
Ie(
|
|
4410
4472
|
n,
|
|
4411
4473
|
"click",
|
|
4412
4474
|
/*close*/
|
|
4413
4475
|
e[6]
|
|
4414
4476
|
),
|
|
4415
|
-
|
|
4477
|
+
Ie(
|
|
4416
4478
|
c,
|
|
4417
4479
|
"click",
|
|
4418
4480
|
/*click_handler_1*/
|
|
4419
|
-
e[
|
|
4481
|
+
e[18]
|
|
4420
4482
|
)
|
|
4421
|
-
],
|
|
4483
|
+
], p = !0);
|
|
4422
4484
|
},
|
|
4423
4485
|
p(x, [P]) {
|
|
4424
|
-
C && C.p && (!
|
|
4425
|
-
|
|
4486
|
+
C && C.p && (!d || P & /*$$scope*/
|
|
4487
|
+
32768) && xr(
|
|
4426
4488
|
C,
|
|
4427
|
-
|
|
4489
|
+
I,
|
|
4428
4490
|
x,
|
|
4429
4491
|
/*$$scope*/
|
|
4430
|
-
x[
|
|
4431
|
-
|
|
4432
|
-
|
|
4492
|
+
x[15],
|
|
4493
|
+
d ? vr(
|
|
4494
|
+
I,
|
|
4433
4495
|
/*$$scope*/
|
|
4434
|
-
x[
|
|
4496
|
+
x[15],
|
|
4435
4497
|
P,
|
|
4436
|
-
|
|
4437
|
-
) :
|
|
4498
|
+
Ji
|
|
4499
|
+
) : _r(
|
|
4438
4500
|
/*$$scope*/
|
|
4439
|
-
x[
|
|
4501
|
+
x[15]
|
|
4440
4502
|
),
|
|
4441
4503
|
Ht
|
|
4442
4504
|
), /*modaltitle*/
|
|
4443
|
-
x[1] ?
|
|
4444
|
-
1) &&
|
|
4505
|
+
x[1] ? _ ? _.p(x, P) : (_ = Bt(x), _.c(), _.m(r, o)) : _ && (_.d(1), _ = null), (!d || P & /*modaltext*/
|
|
4506
|
+
1) && be(
|
|
4445
4507
|
a,
|
|
4446
4508
|
/*modaltext*/
|
|
4447
4509
|
x[0]
|
|
4448
4510
|
), /*hascancelbutton*/
|
|
4449
|
-
x[2] ?
|
|
4511
|
+
x[2] ? E ? E.p(x, P) : (E = At(x), E.c(), E.m(u, h)) : E && (E.d(1), E = null), (!d || P & /*$_*/
|
|
4450
4512
|
16) && f !== (f = /*$_*/
|
|
4451
|
-
x[4]("confirm") + "") &&
|
|
4513
|
+
x[4]("confirm") + "") && be(m, f);
|
|
4452
4514
|
},
|
|
4453
4515
|
i(x) {
|
|
4454
|
-
|
|
4516
|
+
d || (Mt(T, x), d = !0);
|
|
4455
4517
|
},
|
|
4456
4518
|
o(x) {
|
|
4457
|
-
Nr(
|
|
4519
|
+
Nr(T, x), d = !1;
|
|
4458
4520
|
},
|
|
4459
4521
|
d(x) {
|
|
4460
|
-
x &&
|
|
4522
|
+
x && q(t), T && T.d(x), _ && _.d(), E && E.d(), e[19](null), p = !1, J(w);
|
|
4461
4523
|
}
|
|
4462
4524
|
};
|
|
4463
4525
|
}
|
|
4464
|
-
function
|
|
4526
|
+
function Ki(e, t, r) {
|
|
4465
4527
|
let n;
|
|
4466
|
-
|
|
4467
|
-
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modaltitle: a = "" } = t, { hascancelbutton: l = !1 } = t, { modalconfirmevent: u = {} } = t, { modalcancelevent: h = {} } = t, { lang: c = "en" } = t, { clientstyling: f = "" } = t, { clientstylingurl: m = "" } = t, { translationurl:
|
|
4468
|
-
const
|
|
4528
|
+
gr(e, ki, (g) => r(4, n = g));
|
|
4529
|
+
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modaltitle: a = "" } = t, { hascancelbutton: l = !1 } = t, { modalconfirmevent: u = {} } = t, { modalcancelevent: h = {} } = t, { lang: c = "en" } = t, { clientstyling: f = "" } = t, { clientstylingurl: m = "" } = t, { translationurl: d = "" } = t, { mbsource: p } = t, w, I = window.navigator.userAgent, C = Vi(I) !== "PC";
|
|
4530
|
+
const T = () => {
|
|
4469
4531
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4470
|
-
},
|
|
4471
|
-
|
|
4472
|
-
},
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
let b = new URL(m), L = document.createElement("style");
|
|
4477
|
-
fetch(b.href).then((D) => D.text()).then((D) => {
|
|
4478
|
-
L.innerHTML = D, setTimeout(
|
|
4479
|
-
() => {
|
|
4480
|
-
d.appendChild(L);
|
|
4481
|
-
},
|
|
4482
|
-
1
|
|
4483
|
-
);
|
|
4484
|
-
});
|
|
4485
|
-
}, x = () => {
|
|
4486
|
-
fetch(p).then((L) => L.json()).then((L) => {
|
|
4487
|
-
Object.keys(L).forEach((D) => {
|
|
4488
|
-
wt(D, L[D]);
|
|
4532
|
+
}, _ = (g) => {
|
|
4533
|
+
g === "confirm" && u && window.postMessage(u, window.location.href), g === "cancel" && h && window.postMessage(h, window.location.href), T();
|
|
4534
|
+
}, E = () => {
|
|
4535
|
+
fetch(d).then((U) => U.json()).then((U) => {
|
|
4536
|
+
Object.keys(U).forEach((et) => {
|
|
4537
|
+
wt(et, U[et]);
|
|
4489
4538
|
});
|
|
4490
|
-
}).catch((
|
|
4491
|
-
console.log(
|
|
4539
|
+
}).catch((U) => {
|
|
4540
|
+
console.log(U);
|
|
4492
4541
|
});
|
|
4493
4542
|
};
|
|
4494
|
-
Object.keys(Tt).forEach((
|
|
4495
|
-
wt(
|
|
4543
|
+
Object.keys(Tt).forEach((g) => {
|
|
4544
|
+
wt(g, Tt[g]);
|
|
4545
|
+
});
|
|
4546
|
+
const x = () => {
|
|
4547
|
+
Zi(c);
|
|
4548
|
+
};
|
|
4549
|
+
Ar(() => () => {
|
|
4496
4550
|
});
|
|
4497
|
-
const P = () =>
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
Ne[b ? "unshift" : "push"](() => {
|
|
4502
|
-
d = b, r(3, d);
|
|
4551
|
+
const P = () => _("cancel"), mr = () => _("confirm");
|
|
4552
|
+
function dr(g) {
|
|
4553
|
+
Me[g ? "unshift" : "push"](() => {
|
|
4554
|
+
w = g, r(3, w);
|
|
4503
4555
|
});
|
|
4504
4556
|
}
|
|
4505
|
-
return e.$$set = (
|
|
4506
|
-
"modaltext" in
|
|
4557
|
+
return e.$$set = (g) => {
|
|
4558
|
+
"modaltext" in g && r(0, s = g.modaltext), "modaltitle" in g && r(1, a = g.modaltitle), "hascancelbutton" in g && r(2, l = g.hascancelbutton), "modalconfirmevent" in g && r(8, u = g.modalconfirmevent), "modalcancelevent" in g && r(9, h = g.modalcancelevent), "lang" in g && r(10, c = g.lang), "clientstyling" in g && r(11, f = g.clientstyling), "clientstylingurl" in g && r(12, m = g.clientstylingurl), "translationurl" in g && r(13, d = g.translationurl), "mbsource" in g && r(14, p = g.mbsource), "$$scope" in g && r(15, o = g.$$scope);
|
|
4507
4559
|
}, e.$$.update = () => {
|
|
4508
4560
|
e.$$.dirty & /*modaltext, lang*/
|
|
4509
|
-
1025 && s && c &&
|
|
4510
|
-
2056 && f &&
|
|
4511
|
-
4104 && m &&
|
|
4512
|
-
|
|
4561
|
+
1025 && s && c && x(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4562
|
+
2056 && f && w && Xi(w, f), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4563
|
+
4104 && m && w && zi(w, m), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4564
|
+
16392 && p && w && Wi(w, `${p}.Style`), e.$$.dirty & /*translationurl*/
|
|
4565
|
+
8192 && d && E();
|
|
4513
4566
|
}, [
|
|
4514
4567
|
s,
|
|
4515
4568
|
a,
|
|
4516
4569
|
l,
|
|
4517
|
-
|
|
4570
|
+
w,
|
|
4518
4571
|
n,
|
|
4519
|
-
O,
|
|
4520
4572
|
C,
|
|
4521
|
-
|
|
4573
|
+
T,
|
|
4574
|
+
_,
|
|
4522
4575
|
u,
|
|
4523
4576
|
h,
|
|
4524
4577
|
c,
|
|
4525
4578
|
f,
|
|
4526
4579
|
m,
|
|
4580
|
+
d,
|
|
4527
4581
|
p,
|
|
4528
4582
|
o,
|
|
4529
4583
|
i,
|
|
4584
|
+
P,
|
|
4530
4585
|
mr,
|
|
4531
|
-
dr
|
|
4532
|
-
pr
|
|
4586
|
+
dr
|
|
4533
4587
|
];
|
|
4534
4588
|
}
|
|
4535
4589
|
class fr extends Dr {
|
|
@@ -4537,8 +4591,8 @@ class fr extends Dr {
|
|
|
4537
4591
|
super(), Gr(
|
|
4538
4592
|
this,
|
|
4539
4593
|
t,
|
|
4540
|
-
|
|
4541
|
-
|
|
4594
|
+
Ki,
|
|
4595
|
+
Yi,
|
|
4542
4596
|
Pt,
|
|
4543
4597
|
{
|
|
4544
4598
|
modaltext: 0,
|
|
@@ -4549,105 +4603,117 @@ class fr extends Dr {
|
|
|
4549
4603
|
lang: 10,
|
|
4550
4604
|
clientstyling: 11,
|
|
4551
4605
|
clientstylingurl: 12,
|
|
4552
|
-
translationurl: 13
|
|
4606
|
+
translationurl: 13,
|
|
4607
|
+
mbsource: 14
|
|
4553
4608
|
},
|
|
4554
|
-
|
|
4609
|
+
Qi
|
|
4555
4610
|
);
|
|
4556
4611
|
}
|
|
4557
4612
|
get modaltext() {
|
|
4558
4613
|
return this.$$.ctx[0];
|
|
4559
4614
|
}
|
|
4560
4615
|
set modaltext(t) {
|
|
4561
|
-
this.$$set({ modaltext: t }),
|
|
4616
|
+
this.$$set({ modaltext: t }), O();
|
|
4562
4617
|
}
|
|
4563
4618
|
get modaltitle() {
|
|
4564
4619
|
return this.$$.ctx[1];
|
|
4565
4620
|
}
|
|
4566
4621
|
set modaltitle(t) {
|
|
4567
|
-
this.$$set({ modaltitle: t }),
|
|
4622
|
+
this.$$set({ modaltitle: t }), O();
|
|
4568
4623
|
}
|
|
4569
4624
|
get hascancelbutton() {
|
|
4570
4625
|
return this.$$.ctx[2];
|
|
4571
4626
|
}
|
|
4572
4627
|
set hascancelbutton(t) {
|
|
4573
|
-
this.$$set({ hascancelbutton: t }),
|
|
4628
|
+
this.$$set({ hascancelbutton: t }), O();
|
|
4574
4629
|
}
|
|
4575
4630
|
get modalconfirmevent() {
|
|
4576
4631
|
return this.$$.ctx[8];
|
|
4577
4632
|
}
|
|
4578
4633
|
set modalconfirmevent(t) {
|
|
4579
|
-
this.$$set({ modalconfirmevent: t }),
|
|
4634
|
+
this.$$set({ modalconfirmevent: t }), O();
|
|
4580
4635
|
}
|
|
4581
4636
|
get modalcancelevent() {
|
|
4582
4637
|
return this.$$.ctx[9];
|
|
4583
4638
|
}
|
|
4584
4639
|
set modalcancelevent(t) {
|
|
4585
|
-
this.$$set({ modalcancelevent: t }),
|
|
4640
|
+
this.$$set({ modalcancelevent: t }), O();
|
|
4586
4641
|
}
|
|
4587
4642
|
get lang() {
|
|
4588
4643
|
return this.$$.ctx[10];
|
|
4589
4644
|
}
|
|
4590
4645
|
set lang(t) {
|
|
4591
|
-
this.$$set({ lang: t }),
|
|
4646
|
+
this.$$set({ lang: t }), O();
|
|
4592
4647
|
}
|
|
4593
4648
|
get clientstyling() {
|
|
4594
4649
|
return this.$$.ctx[11];
|
|
4595
4650
|
}
|
|
4596
4651
|
set clientstyling(t) {
|
|
4597
|
-
this.$$set({ clientstyling: t }),
|
|
4652
|
+
this.$$set({ clientstyling: t }), O();
|
|
4598
4653
|
}
|
|
4599
4654
|
get clientstylingurl() {
|
|
4600
4655
|
return this.$$.ctx[12];
|
|
4601
4656
|
}
|
|
4602
4657
|
set clientstylingurl(t) {
|
|
4603
|
-
this.$$set({ clientstylingurl: t }),
|
|
4658
|
+
this.$$set({ clientstylingurl: t }), O();
|
|
4604
4659
|
}
|
|
4605
4660
|
get translationurl() {
|
|
4606
4661
|
return this.$$.ctx[13];
|
|
4607
4662
|
}
|
|
4608
4663
|
set translationurl(t) {
|
|
4609
|
-
this.$$set({ translationurl: t }),
|
|
4664
|
+
this.$$set({ translationurl: t }), O();
|
|
4665
|
+
}
|
|
4666
|
+
get mbsource() {
|
|
4667
|
+
return this.$$.ctx[14];
|
|
4668
|
+
}
|
|
4669
|
+
set mbsource(t) {
|
|
4670
|
+
this.$$set({ mbsource: t }), O();
|
|
4610
4671
|
}
|
|
4611
4672
|
}
|
|
4612
|
-
Ur(fr, { modaltext: {}, modaltitle: {}, hascancelbutton: { type: "Boolean" }, modalconfirmevent: {}, modalcancelevent: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, ["close"], [], !0);
|
|
4613
|
-
const
|
|
4673
|
+
Ur(fr, { modaltext: {}, modaltitle: {}, hascancelbutton: { type: "Boolean" }, modalconfirmevent: {}, modalcancelevent: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["close"], [], !0);
|
|
4674
|
+
const lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4614
4675
|
__proto__: null,
|
|
4615
4676
|
default: fr
|
|
4616
4677
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4617
4678
|
export {
|
|
4618
4679
|
K as $,
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4680
|
+
B as A,
|
|
4681
|
+
oo as B,
|
|
4682
|
+
Ie as C,
|
|
4683
|
+
be as D,
|
|
4684
|
+
eo as E,
|
|
4685
|
+
J as F,
|
|
4686
|
+
ro as G,
|
|
4687
|
+
io as H,
|
|
4688
|
+
rt as I,
|
|
4689
|
+
no as J,
|
|
4690
|
+
ki as K,
|
|
4691
|
+
lo as P,
|
|
4626
4692
|
Dr as S,
|
|
4627
4693
|
ar as a,
|
|
4628
4694
|
Ur as b,
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4695
|
+
uo as c,
|
|
4696
|
+
Er as d,
|
|
4697
|
+
M as e,
|
|
4698
|
+
O as f,
|
|
4633
4699
|
jr as g,
|
|
4634
|
-
|
|
4700
|
+
se as h,
|
|
4635
4701
|
Gr as i,
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4702
|
+
q as j,
|
|
4703
|
+
gr as k,
|
|
4704
|
+
Vi as l,
|
|
4705
|
+
zi as m,
|
|
4706
|
+
N as n,
|
|
4707
|
+
Ar as o,
|
|
4708
|
+
Wi as p,
|
|
4709
|
+
so as q,
|
|
4710
|
+
Me as r,
|
|
4645
4711
|
Pt as s,
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4712
|
+
Xi as t,
|
|
4713
|
+
ao as u,
|
|
4714
|
+
ue as v,
|
|
4715
|
+
X as w,
|
|
4716
|
+
to as x,
|
|
4717
|
+
H as y,
|
|
4718
|
+
Le as z
|
|
4653
4719
|
};
|