@everymatrix/cashier-step-up 0.7.13 → 0.7.15
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/{CashierStepUp-BWSssgbu.js → CashierStepUp--Zdd8aV8.js} +206 -183
- package/components/{CashierStepUp-DMe1yRC2.js → CashierStepUp-C6kbH5iC.js} +920 -897
- package/components/CashierStepUp-DuitlZco.cjs +3 -0
- package/es2015/cashier-step-up.cjs +1 -1
- package/es2015/cashier-step-up.js +1 -1
- package/esnext/cashier-step-up.js +1 -1
- package/package.json +1 -1
- package/components/CashierStepUp-RhYbb0pX.cjs +0 -3
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var zr = Object.defineProperty, Xr = Object.defineProperties;
|
|
2
|
+
var Wr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Nt = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var lt = (e, t,
|
|
6
|
-
for (var
|
|
7
|
-
|
|
4
|
+
var Zr = Object.prototype.hasOwnProperty, qr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var lt = (e, t, r) => t in e ? zr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xe = (e, t) => {
|
|
6
|
+
for (var r in t || (t = {}))
|
|
7
|
+
Zr.call(t, r) && lt(e, r, t[r]);
|
|
8
8
|
if (Nt)
|
|
9
|
-
for (var
|
|
10
|
-
|
|
9
|
+
for (var r of Nt(t))
|
|
10
|
+
qr.call(t, r) && lt(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, ut = (e, t) =>
|
|
13
|
-
var K = (e, t,
|
|
14
|
-
var ve = (e, t,
|
|
12
|
+
}, ut = (e, t) => Xr(e, Wr(t));
|
|
13
|
+
var K = (e, t, r) => (lt(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var ve = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (u) => {
|
|
16
16
|
try {
|
|
17
|
-
s(
|
|
17
|
+
s(r.next(u));
|
|
18
18
|
} catch (l) {
|
|
19
19
|
i(l);
|
|
20
20
|
}
|
|
21
21
|
}, a = (u) => {
|
|
22
22
|
try {
|
|
23
|
-
s(
|
|
23
|
+
s(r.throw(u));
|
|
24
24
|
} catch (l) {
|
|
25
25
|
i(l);
|
|
26
26
|
}
|
|
27
|
-
}, s = (u) => u.done ?
|
|
28
|
-
s((
|
|
27
|
+
}, s = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, a);
|
|
28
|
+
s((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function ee() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function ir(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
35
|
function Rt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function xe(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(ir);
|
|
40
40
|
}
|
|
41
41
|
function At(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function or(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Qr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function sr(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
|
-
for (const
|
|
53
|
-
|
|
52
|
+
for (const n of t)
|
|
53
|
+
n(void 0);
|
|
54
54
|
return ee;
|
|
55
55
|
}
|
|
56
|
-
const
|
|
57
|
-
return
|
|
56
|
+
const r = e.subscribe(...t);
|
|
57
|
+
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function Jr(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(sr(t, r));
|
|
61
61
|
}
|
|
62
62
|
function y(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const
|
|
67
|
-
if (!
|
|
65
|
+
function Yr(e, t, r) {
|
|
66
|
+
const n = Kr(e);
|
|
67
|
+
if (!n.getElementById(t)) {
|
|
68
68
|
const i = O("style");
|
|
69
|
-
i.id = t, i.textContent =
|
|
69
|
+
i.id = t, i.textContent = r, en(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Kr(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,22 +79,22 @@ function er(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function en(e, t) {
|
|
83
83
|
return y(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function C(e, t,
|
|
90
|
-
e.insertBefore(t,
|
|
89
|
+
function C(e, t, r) {
|
|
90
|
+
e.insertBefore(t, r || null);
|
|
91
91
|
}
|
|
92
92
|
function H(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
for (let
|
|
97
|
-
e[
|
|
95
|
+
function tn(e, t) {
|
|
96
|
+
for (let r = 0; r < e.length; r += 1)
|
|
97
|
+
e[r] && e[r].d(t);
|
|
98
98
|
}
|
|
99
99
|
function O(e) {
|
|
100
100
|
return document.createElement(e);
|
|
@@ -108,31 +108,31 @@ function k(e) {
|
|
|
108
108
|
function F() {
|
|
109
109
|
return k(" ");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function rn() {
|
|
112
112
|
return k("");
|
|
113
113
|
}
|
|
114
|
-
function pe(e, t,
|
|
115
|
-
return e.addEventListener(t,
|
|
114
|
+
function pe(e, t, r, n) {
|
|
115
|
+
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
116
116
|
}
|
|
117
|
-
function p(e, t,
|
|
118
|
-
|
|
117
|
+
function p(e, t, r) {
|
|
118
|
+
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function nn(e) {
|
|
121
121
|
return Array.from(e.childNodes);
|
|
122
122
|
}
|
|
123
123
|
function j(e, t) {
|
|
124
124
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
125
125
|
t);
|
|
126
126
|
}
|
|
127
|
-
function se(e, t,
|
|
128
|
-
e.classList.toggle(t, !!
|
|
127
|
+
function se(e, t, r) {
|
|
128
|
+
e.classList.toggle(t, !!r);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function on(e) {
|
|
131
131
|
const t = {};
|
|
132
132
|
return e.childNodes.forEach(
|
|
133
133
|
/** @param {Element} node */
|
|
134
|
-
(
|
|
135
|
-
t[
|
|
134
|
+
(r) => {
|
|
135
|
+
t[r.slot || "default"] = !0;
|
|
136
136
|
}
|
|
137
137
|
), t;
|
|
138
138
|
}
|
|
@@ -140,20 +140,20 @@ let Ge;
|
|
|
140
140
|
function Ue(e) {
|
|
141
141
|
Ge = e;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function sn() {
|
|
144
144
|
if (!Ge)
|
|
145
145
|
throw new Error("Function called outside component initialization");
|
|
146
146
|
return Ge;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
148
|
+
function an(e) {
|
|
149
|
+
sn().$$.on_mount.push(e);
|
|
150
150
|
}
|
|
151
151
|
const Ce = [], Je = [];
|
|
152
152
|
let Be = [];
|
|
153
|
-
const kt = [],
|
|
153
|
+
const kt = [], ln = /* @__PURE__ */ Promise.resolve();
|
|
154
154
|
let bt = !1;
|
|
155
|
-
function
|
|
156
|
-
bt || (bt = !0,
|
|
155
|
+
function un() {
|
|
156
|
+
bt || (bt = !0, ln.then(ae));
|
|
157
157
|
}
|
|
158
158
|
function yt(e) {
|
|
159
159
|
Be.push(e);
|
|
@@ -168,7 +168,7 @@ function ae() {
|
|
|
168
168
|
try {
|
|
169
169
|
for (; He < Ce.length; ) {
|
|
170
170
|
const t = Ce[He];
|
|
171
|
-
He++, Ue(t),
|
|
171
|
+
He++, Ue(t), hn(t.$$);
|
|
172
172
|
}
|
|
173
173
|
} catch (t) {
|
|
174
174
|
throw Ce.length = 0, He = 0, t;
|
|
@@ -176,8 +176,8 @@ function ae() {
|
|
|
176
176
|
for (Ue(null), Ce.length = 0, He = 0; Je.length; )
|
|
177
177
|
Je.pop()();
|
|
178
178
|
for (let t = 0; t < Be.length; t += 1) {
|
|
179
|
-
const
|
|
180
|
-
ht.has(
|
|
179
|
+
const r = Be[t];
|
|
180
|
+
ht.has(r) || (ht.add(r), r());
|
|
181
181
|
}
|
|
182
182
|
Be.length = 0;
|
|
183
183
|
} while (Ce.length);
|
|
@@ -185,39 +185,39 @@ function ae() {
|
|
|
185
185
|
kt.pop()();
|
|
186
186
|
bt = !1, ht.clear(), Ue(e);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function hn(e) {
|
|
189
189
|
if (e.fragment !== null) {
|
|
190
190
|
e.update(), xe(e.before_update);
|
|
191
191
|
const t = e.dirty;
|
|
192
192
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(yt);
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
function
|
|
196
|
-
const t = [],
|
|
197
|
-
Be.forEach((
|
|
195
|
+
function cn(e) {
|
|
196
|
+
const t = [], r = [];
|
|
197
|
+
Be.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Be = t;
|
|
198
198
|
}
|
|
199
|
-
const
|
|
200
|
-
function
|
|
201
|
-
e && e.i && (
|
|
199
|
+
const fn = /* @__PURE__ */ new Set();
|
|
200
|
+
function pn(e, t) {
|
|
201
|
+
e && e.i && (fn.delete(e), e.i(t));
|
|
202
202
|
}
|
|
203
203
|
function Dt(e) {
|
|
204
204
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
const { fragment:
|
|
208
|
-
|
|
209
|
-
const o = e.$$.on_mount.map(
|
|
206
|
+
function dn(e, t, r) {
|
|
207
|
+
const { fragment: n, after_update: i } = e.$$;
|
|
208
|
+
n && n.m(t, r), yt(() => {
|
|
209
|
+
const o = e.$$.on_mount.map(ir).filter(At);
|
|
210
210
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : xe(o), e.$$.on_mount = [];
|
|
211
211
|
}), i.forEach(yt);
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
const
|
|
215
|
-
|
|
213
|
+
function mn(e, t) {
|
|
214
|
+
const r = e.$$;
|
|
215
|
+
r.fragment !== null && (cn(r.after_update), xe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
e.$$.dirty[0] === -1 && (Ce.push(e),
|
|
217
|
+
function gn(e, t) {
|
|
218
|
+
e.$$.dirty[0] === -1 && (Ce.push(e), un(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function bn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
221
221
|
const u = Ge;
|
|
222
222
|
Ue(e);
|
|
223
223
|
const l = e.$$ = {
|
|
@@ -243,22 +243,22 @@ function br(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
|
243
243
|
};
|
|
244
244
|
a && a(l.root);
|
|
245
245
|
let h = !1;
|
|
246
|
-
if (l.ctx =
|
|
247
|
-
const
|
|
248
|
-
return l.ctx && i(l.ctx[c], l.ctx[c] =
|
|
249
|
-
}) : [], l.update(), h = !0, xe(l.before_update), l.fragment =
|
|
246
|
+
if (l.ctx = r ? r(e, t.props || {}, (c, d, ...E) => {
|
|
247
|
+
const m = E.length ? E[0] : d;
|
|
248
|
+
return l.ctx && i(l.ctx[c], l.ctx[c] = m) && (!l.skip_bound && l.bound[c] && l.bound[c](m), h && gn(e, c)), d;
|
|
249
|
+
}) : [], l.update(), h = !0, xe(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
250
250
|
if (t.hydrate) {
|
|
251
|
-
const c =
|
|
251
|
+
const c = nn(t.target);
|
|
252
252
|
l.fragment && l.fragment.l(c), c.forEach(H);
|
|
253
253
|
} else
|
|
254
254
|
l.fragment && l.fragment.c();
|
|
255
|
-
t.intro &&
|
|
255
|
+
t.intro && pn(e.$$.fragment), dn(e, t.target, t.anchor), ae();
|
|
256
256
|
}
|
|
257
257
|
Ue(u);
|
|
258
258
|
}
|
|
259
|
-
let
|
|
260
|
-
typeof HTMLElement == "function" && (
|
|
261
|
-
constructor(t,
|
|
259
|
+
let ar;
|
|
260
|
+
typeof HTMLElement == "function" && (ar = class extends HTMLElement {
|
|
261
|
+
constructor(t, r, n) {
|
|
262
262
|
super();
|
|
263
263
|
/** The Svelte component constructor */
|
|
264
264
|
K(this, "$$ctor");
|
|
@@ -278,19 +278,19 @@ typeof HTMLElement == "function" && (ln = class extends HTMLElement {
|
|
|
278
278
|
K(this, "$$l", {});
|
|
279
279
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
280
280
|
K(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
281
|
-
this.$$ctor = t, this.$$s =
|
|
281
|
+
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
282
282
|
}
|
|
283
|
-
addEventListener(t,
|
|
284
|
-
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(
|
|
285
|
-
const i = this.$$c.$on(t,
|
|
286
|
-
this.$$l_u.set(
|
|
283
|
+
addEventListener(t, r, n) {
|
|
284
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
|
|
285
|
+
const i = this.$$c.$on(t, r);
|
|
286
|
+
this.$$l_u.set(r, i);
|
|
287
287
|
}
|
|
288
|
-
super.addEventListener(t,
|
|
288
|
+
super.addEventListener(t, r, n);
|
|
289
289
|
}
|
|
290
|
-
removeEventListener(t,
|
|
291
|
-
if (super.removeEventListener(t,
|
|
292
|
-
const i = this.$$l_u.get(
|
|
293
|
-
i && (i(), this.$$l_u.delete(
|
|
290
|
+
removeEventListener(t, r, n) {
|
|
291
|
+
if (super.removeEventListener(t, r, n), this.$$c) {
|
|
292
|
+
const i = this.$$l_u.get(r);
|
|
293
|
+
i && (i(), this.$$l_u.delete(r));
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
connectedCallback() {
|
|
@@ -318,9 +318,9 @@ typeof HTMLElement == "function" && (ln = class extends HTMLElement {
|
|
|
318
318
|
};
|
|
319
319
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
320
320
|
return;
|
|
321
|
-
const
|
|
321
|
+
const r = {}, n = on(this);
|
|
322
322
|
for (const o of this.$$s)
|
|
323
|
-
o in
|
|
323
|
+
o in n && (r[o] = [t(o)]);
|
|
324
324
|
for (const o of this.attributes) {
|
|
325
325
|
const a = this.$$g_p(o.name);
|
|
326
326
|
a in this.$$d || (this.$$d[a] = Ze(a, o.value, this.$$p_d, "toProp"));
|
|
@@ -330,7 +330,7 @@ typeof HTMLElement == "function" && (ln = class extends HTMLElement {
|
|
|
330
330
|
this.$$c = new this.$$ctor({
|
|
331
331
|
target: this.shadowRoot || this,
|
|
332
332
|
props: ut(Xe({}, this.$$d), {
|
|
333
|
-
$$slots:
|
|
333
|
+
$$slots: r,
|
|
334
334
|
$$scope: {
|
|
335
335
|
ctx: []
|
|
336
336
|
}
|
|
@@ -362,9 +362,9 @@ typeof HTMLElement == "function" && (ln = class extends HTMLElement {
|
|
|
362
362
|
}
|
|
363
363
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
364
364
|
// and setting attributes through setAttribute etc, this is helpful
|
|
365
|
-
attributeChangedCallback(t,
|
|
365
|
+
attributeChangedCallback(t, r, n) {
|
|
366
366
|
var i;
|
|
367
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Ze(t,
|
|
367
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Ze(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
368
368
|
}
|
|
369
369
|
disconnectedCallback() {
|
|
370
370
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -373,16 +373,16 @@ typeof HTMLElement == "function" && (ln = class extends HTMLElement {
|
|
|
373
373
|
}
|
|
374
374
|
$$g_p(t) {
|
|
375
375
|
return Object.keys(this.$$p_d).find(
|
|
376
|
-
(
|
|
376
|
+
(r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
|
|
377
377
|
) || t;
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
|
-
function Ze(e, t,
|
|
380
|
+
function Ze(e, t, r, n) {
|
|
381
381
|
var o;
|
|
382
|
-
const i = (o =
|
|
383
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
382
|
+
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
383
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
384
384
|
return t;
|
|
385
|
-
if (
|
|
385
|
+
if (n === "toAttribute")
|
|
386
386
|
switch (i) {
|
|
387
387
|
case "Object":
|
|
388
388
|
case "Array":
|
|
@@ -407,10 +407,10 @@ function Ze(e, t, n, r) {
|
|
|
407
407
|
return t;
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
let a = class extends
|
|
410
|
+
function yn(e, t, r, n, i, o) {
|
|
411
|
+
let a = class extends ar {
|
|
412
412
|
constructor() {
|
|
413
|
-
super(e,
|
|
413
|
+
super(e, r, i), this.$$p_d = t;
|
|
414
414
|
}
|
|
415
415
|
static get observedAttributes() {
|
|
416
416
|
return Object.keys(t).map(
|
|
@@ -428,7 +428,7 @@ function yr(e, t, n, r, i, o) {
|
|
|
428
428
|
u = Ze(s, u, t), this.$$d[s] = u, (l = this.$$c) == null || l.$set({ [s]: u });
|
|
429
429
|
}
|
|
430
430
|
});
|
|
431
|
-
}),
|
|
431
|
+
}), n.forEach((s) => {
|
|
432
432
|
Object.defineProperty(a.prototype, s, {
|
|
433
433
|
get() {
|
|
434
434
|
var u;
|
|
@@ -438,7 +438,7 @@ function yr(e, t, n, r, i, o) {
|
|
|
438
438
|
}), e.element = /** @type {any} */
|
|
439
439
|
a, a;
|
|
440
440
|
}
|
|
441
|
-
class
|
|
441
|
+
class En {
|
|
442
442
|
constructor() {
|
|
443
443
|
/**
|
|
444
444
|
* ### PRIVATE API
|
|
@@ -459,7 +459,7 @@ class _r {
|
|
|
459
459
|
}
|
|
460
460
|
/** @returns {void} */
|
|
461
461
|
$destroy() {
|
|
462
|
-
|
|
462
|
+
mn(this, 1), this.$destroy = ee;
|
|
463
463
|
}
|
|
464
464
|
/**
|
|
465
465
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -467,13 +467,13 @@ class _r {
|
|
|
467
467
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
468
468
|
* @returns {() => void}
|
|
469
469
|
*/
|
|
470
|
-
$on(t,
|
|
471
|
-
if (!At(
|
|
470
|
+
$on(t, r) {
|
|
471
|
+
if (!At(r))
|
|
472
472
|
return ee;
|
|
473
|
-
const
|
|
474
|
-
return
|
|
475
|
-
const i =
|
|
476
|
-
i !== -1 &&
|
|
473
|
+
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
474
|
+
return n.push(r), () => {
|
|
475
|
+
const i = n.indexOf(r);
|
|
476
|
+
i !== -1 && n.splice(i, 1);
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
479
|
/**
|
|
@@ -481,49 +481,49 @@ class _r {
|
|
|
481
481
|
* @returns {void}
|
|
482
482
|
*/
|
|
483
483
|
$set(t) {
|
|
484
|
-
this.$$set && !
|
|
484
|
+
this.$$set && !Qr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
const
|
|
488
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
489
|
-
function
|
|
487
|
+
const _n = "4";
|
|
488
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(_n);
|
|
489
|
+
function vn(e, t) {
|
|
490
490
|
if (e) {
|
|
491
|
-
const
|
|
492
|
-
|
|
491
|
+
const r = document.createElement("style");
|
|
492
|
+
r.innerHTML = t, e.appendChild(r);
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function xn(e, t) {
|
|
496
496
|
if (!e || !t)
|
|
497
497
|
return;
|
|
498
|
-
const
|
|
499
|
-
fetch(
|
|
498
|
+
const r = new URL(t);
|
|
499
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
500
500
|
const i = document.createElement("style");
|
|
501
|
-
i.innerHTML =
|
|
502
|
-
}).catch((
|
|
503
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
501
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
502
|
+
}).catch((n) => {
|
|
503
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
504
504
|
});
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function wn(e, t, r) {
|
|
507
507
|
if (window.emMessageBus) {
|
|
508
|
-
const
|
|
508
|
+
const n = document.createElement("style");
|
|
509
509
|
window.emMessageBus.subscribe(t, (i) => {
|
|
510
|
-
|
|
510
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
511
511
|
});
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
514
|
const Ae = [];
|
|
515
|
-
function
|
|
515
|
+
function Sn(e, t) {
|
|
516
516
|
return {
|
|
517
517
|
subscribe: tt(e, t).subscribe
|
|
518
518
|
};
|
|
519
519
|
}
|
|
520
520
|
function tt(e, t = ee) {
|
|
521
|
-
let
|
|
522
|
-
const
|
|
521
|
+
let r;
|
|
522
|
+
const n = /* @__PURE__ */ new Set();
|
|
523
523
|
function i(s) {
|
|
524
|
-
if (
|
|
524
|
+
if (or(e, s) && (e = s, r)) {
|
|
525
525
|
const u = !Ae.length;
|
|
526
|
-
for (const l of
|
|
526
|
+
for (const l of n)
|
|
527
527
|
l[1](), Ae.push(l, e);
|
|
528
528
|
if (u) {
|
|
529
529
|
for (let l = 0; l < Ae.length; l += 2)
|
|
@@ -537,190 +537,190 @@ function tt(e, t = ee) {
|
|
|
537
537
|
}
|
|
538
538
|
function a(s, u = ee) {
|
|
539
539
|
const l = [s, u];
|
|
540
|
-
return
|
|
541
|
-
|
|
540
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || ee), s(e), () => {
|
|
541
|
+
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
542
542
|
};
|
|
543
543
|
}
|
|
544
544
|
return { set: i, update: o, subscribe: a };
|
|
545
545
|
}
|
|
546
|
-
function Ne(e, t,
|
|
547
|
-
const
|
|
546
|
+
function Ne(e, t, r) {
|
|
547
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
548
548
|
if (!i.every(Boolean))
|
|
549
549
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
550
550
|
const o = t.length < 2;
|
|
551
|
-
return
|
|
551
|
+
return Sn(r, (a, s) => {
|
|
552
552
|
let u = !1;
|
|
553
553
|
const l = [];
|
|
554
554
|
let h = 0, c = ee;
|
|
555
|
-
const
|
|
555
|
+
const d = () => {
|
|
556
556
|
if (h)
|
|
557
557
|
return;
|
|
558
558
|
c();
|
|
559
|
-
const
|
|
560
|
-
o ? a(
|
|
561
|
-
},
|
|
562
|
-
(
|
|
563
|
-
|
|
559
|
+
const m = t(n ? l[0] : l, a, s);
|
|
560
|
+
o ? a(m) : c = At(m) ? m : ee;
|
|
561
|
+
}, E = i.map(
|
|
562
|
+
(m, g) => sr(
|
|
563
|
+
m,
|
|
564
564
|
(v) => {
|
|
565
|
-
l[g] = v, h &= ~(1 << g), u &&
|
|
565
|
+
l[g] = v, h &= ~(1 << g), u && d();
|
|
566
566
|
},
|
|
567
567
|
() => {
|
|
568
568
|
h |= 1 << g;
|
|
569
569
|
}
|
|
570
570
|
)
|
|
571
571
|
);
|
|
572
|
-
return u = !0,
|
|
573
|
-
xe(
|
|
572
|
+
return u = !0, d(), function() {
|
|
573
|
+
xe(E), c(), u = !1;
|
|
574
574
|
};
|
|
575
575
|
});
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function Tn(e) {
|
|
578
578
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
579
579
|
}
|
|
580
|
-
var
|
|
581
|
-
return
|
|
580
|
+
var On = function(t) {
|
|
581
|
+
return Hn(t) && !An(t);
|
|
582
582
|
};
|
|
583
|
-
function
|
|
583
|
+
function Hn(e) {
|
|
584
584
|
return !!e && typeof e == "object";
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function An(e) {
|
|
587
587
|
var t = Object.prototype.toString.call(e);
|
|
588
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
588
|
+
return t === "[object RegExp]" || t === "[object Date]" || Pn(e);
|
|
589
589
|
}
|
|
590
|
-
var
|
|
591
|
-
function
|
|
592
|
-
return e.$$typeof ===
|
|
590
|
+
var Cn = typeof Symbol == "function" && Symbol.for, Bn = Cn ? Symbol.for("react.element") : 60103;
|
|
591
|
+
function Pn(e) {
|
|
592
|
+
return e.$$typeof === Bn;
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function Mn(e) {
|
|
595
595
|
return Array.isArray(e) ? [] : {};
|
|
596
596
|
}
|
|
597
597
|
function Fe(e, t) {
|
|
598
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Pe(
|
|
598
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Pe(Mn(e), e, t) : e;
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
return e.concat(t).map(function(
|
|
602
|
-
return Fe(
|
|
600
|
+
function Ln(e, t, r) {
|
|
601
|
+
return e.concat(t).map(function(n) {
|
|
602
|
+
return Fe(n, r);
|
|
603
603
|
});
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function In(e, t) {
|
|
606
606
|
if (!t.customMerge)
|
|
607
607
|
return Pe;
|
|
608
|
-
var
|
|
609
|
-
return typeof
|
|
608
|
+
var r = t.customMerge(e);
|
|
609
|
+
return typeof r == "function" ? r : Pe;
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function Nn(e) {
|
|
612
612
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
613
613
|
return Object.propertyIsEnumerable.call(e, t);
|
|
614
614
|
}) : [];
|
|
615
615
|
}
|
|
616
616
|
function Ut(e) {
|
|
617
|
-
return Object.keys(e).concat(
|
|
617
|
+
return Object.keys(e).concat(Nn(e));
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function lr(e, t) {
|
|
620
620
|
try {
|
|
621
621
|
return t in e;
|
|
622
|
-
} catch (
|
|
622
|
+
} catch (r) {
|
|
623
623
|
return !1;
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
|
-
function
|
|
627
|
-
return
|
|
626
|
+
function Rn(e, t) {
|
|
627
|
+
return lr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
628
628
|
}
|
|
629
|
-
function
|
|
630
|
-
var
|
|
631
|
-
return
|
|
632
|
-
|
|
629
|
+
function kn(e, t, r) {
|
|
630
|
+
var n = {};
|
|
631
|
+
return r.isMergeableObject(e) && Ut(e).forEach(function(i) {
|
|
632
|
+
n[i] = Fe(e[i], r);
|
|
633
633
|
}), Ut(t).forEach(function(i) {
|
|
634
|
-
|
|
635
|
-
}),
|
|
634
|
+
Rn(e, i) || (lr(e, i) && r.isMergeableObject(t[i]) ? n[i] = In(i, r)(e[i], t[i], r) : n[i] = Fe(t[i], r));
|
|
635
|
+
}), n;
|
|
636
636
|
}
|
|
637
|
-
function Pe(e, t,
|
|
638
|
-
|
|
639
|
-
var
|
|
640
|
-
return o ?
|
|
637
|
+
function Pe(e, t, r) {
|
|
638
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Ln, r.isMergeableObject = r.isMergeableObject || On, r.cloneUnlessOtherwiseSpecified = Fe;
|
|
639
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
640
|
+
return o ? n ? r.arrayMerge(e, t, r) : kn(e, t, r) : Fe(t, r);
|
|
641
641
|
}
|
|
642
|
-
Pe.all = function(t,
|
|
642
|
+
Pe.all = function(t, r) {
|
|
643
643
|
if (!Array.isArray(t))
|
|
644
644
|
throw new Error("first argument should be an array");
|
|
645
|
-
return t.reduce(function(
|
|
646
|
-
return Pe(
|
|
645
|
+
return t.reduce(function(n, i) {
|
|
646
|
+
return Pe(n, i, r);
|
|
647
647
|
}, {});
|
|
648
648
|
};
|
|
649
|
-
var
|
|
650
|
-
const
|
|
651
|
-
var
|
|
652
|
-
return
|
|
653
|
-
|
|
654
|
-
} || function(
|
|
655
|
-
for (var i in
|
|
656
|
-
Object.prototype.hasOwnProperty.call(
|
|
657
|
-
},
|
|
649
|
+
var Dn = Pe, Un = Dn;
|
|
650
|
+
const Gn = /* @__PURE__ */ Tn(Un);
|
|
651
|
+
var Et = function(e, t) {
|
|
652
|
+
return Et = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
653
|
+
r.__proto__ = n;
|
|
654
|
+
} || function(r, n) {
|
|
655
|
+
for (var i in n)
|
|
656
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
657
|
+
}, Et(e, t);
|
|
658
658
|
};
|
|
659
|
-
function
|
|
659
|
+
function rt(e, t) {
|
|
660
660
|
if (typeof t != "function" && t !== null)
|
|
661
661
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
662
|
-
|
|
663
|
-
function
|
|
662
|
+
Et(e, t);
|
|
663
|
+
function r() {
|
|
664
664
|
this.constructor = e;
|
|
665
665
|
}
|
|
666
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
666
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
667
667
|
}
|
|
668
668
|
var le = function() {
|
|
669
669
|
return le = Object.assign || function(t) {
|
|
670
|
-
for (var
|
|
671
|
-
|
|
672
|
-
for (var o in
|
|
673
|
-
Object.prototype.hasOwnProperty.call(
|
|
670
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
671
|
+
r = arguments[n];
|
|
672
|
+
for (var o in r)
|
|
673
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
674
674
|
}
|
|
675
675
|
return t;
|
|
676
676
|
}, le.apply(this, arguments);
|
|
677
677
|
};
|
|
678
|
-
function
|
|
679
|
-
var
|
|
680
|
-
for (var
|
|
681
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
678
|
+
function Fn(e, t) {
|
|
679
|
+
var r = {};
|
|
680
|
+
for (var n in e)
|
|
681
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
682
682
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
683
|
-
for (var i = 0,
|
|
684
|
-
t.indexOf(
|
|
685
|
-
return
|
|
683
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
684
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
685
|
+
return r;
|
|
686
686
|
}
|
|
687
|
-
function ct(e, t,
|
|
688
|
-
if (
|
|
689
|
-
for (var
|
|
690
|
-
(o || !(
|
|
687
|
+
function ct(e, t, r) {
|
|
688
|
+
if (r || arguments.length === 2)
|
|
689
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
690
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
691
691
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
692
692
|
}
|
|
693
693
|
function ft(e, t) {
|
|
694
|
-
var
|
|
694
|
+
var r = t && t.cache ? t.cache : Zn, n = t && t.serializer ? t.serializer : Xn, i = t && t.strategy ? t.strategy : $n;
|
|
695
695
|
return i(e, {
|
|
696
|
-
cache:
|
|
697
|
-
serializer:
|
|
696
|
+
cache: r,
|
|
697
|
+
serializer: n
|
|
698
698
|
});
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function jn(e) {
|
|
701
701
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
702
702
|
}
|
|
703
|
-
function
|
|
704
|
-
var i =
|
|
705
|
-
return typeof o == "undefined" && (o = e.call(this,
|
|
703
|
+
function Vn(e, t, r, n) {
|
|
704
|
+
var i = jn(n) ? n : r(n), o = t.get(i);
|
|
705
|
+
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
706
706
|
}
|
|
707
|
-
function
|
|
708
|
-
var
|
|
709
|
-
return typeof o == "undefined" && (o = e.apply(this,
|
|
707
|
+
function ur(e, t, r) {
|
|
708
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
709
|
+
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
710
710
|
}
|
|
711
|
-
function
|
|
712
|
-
return
|
|
711
|
+
function hr(e, t, r, n, i) {
|
|
712
|
+
return r.bind(t, e, n, i);
|
|
713
713
|
}
|
|
714
|
-
function $
|
|
715
|
-
var
|
|
716
|
-
return
|
|
714
|
+
function $n(e, t) {
|
|
715
|
+
var r = e.length === 1 ? Vn : ur;
|
|
716
|
+
return hr(e, this, r, t.cache.create(), t.serializer);
|
|
717
717
|
}
|
|
718
|
-
function
|
|
719
|
-
return
|
|
718
|
+
function zn(e, t) {
|
|
719
|
+
return hr(e, this, ur, t.cache.create(), t.serializer);
|
|
720
720
|
}
|
|
721
|
-
var
|
|
721
|
+
var Xn = function() {
|
|
722
722
|
return JSON.stringify(arguments);
|
|
723
|
-
},
|
|
723
|
+
}, Wn = (
|
|
724
724
|
/** @class */
|
|
725
725
|
function() {
|
|
726
726
|
function e() {
|
|
@@ -728,22 +728,22 @@ var Xr = function() {
|
|
|
728
728
|
}
|
|
729
729
|
return e.prototype.get = function(t) {
|
|
730
730
|
return this.cache[t];
|
|
731
|
-
}, e.prototype.set = function(t,
|
|
732
|
-
this.cache[t] =
|
|
731
|
+
}, e.prototype.set = function(t, r) {
|
|
732
|
+
this.cache[t] = r;
|
|
733
733
|
}, e;
|
|
734
734
|
}()
|
|
735
|
-
),
|
|
735
|
+
), Zn = {
|
|
736
736
|
create: function() {
|
|
737
|
-
return new
|
|
737
|
+
return new Wn();
|
|
738
738
|
}
|
|
739
739
|
}, pt = {
|
|
740
|
-
variadic:
|
|
740
|
+
variadic: zn
|
|
741
741
|
}, Ye = function() {
|
|
742
742
|
return Ye = Object.assign || function(t) {
|
|
743
|
-
for (var
|
|
744
|
-
|
|
745
|
-
for (var o in
|
|
746
|
-
Object.prototype.hasOwnProperty.call(
|
|
743
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
744
|
+
r = arguments[n];
|
|
745
|
+
for (var o in r)
|
|
746
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
747
747
|
}
|
|
748
748
|
return t;
|
|
749
749
|
}, Ye.apply(this, arguments);
|
|
@@ -763,47 +763,47 @@ var Me;
|
|
|
763
763
|
function Gt(e) {
|
|
764
764
|
return e.type === L.literal;
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function qn(e) {
|
|
767
767
|
return e.type === L.argument;
|
|
768
768
|
}
|
|
769
|
-
function
|
|
769
|
+
function cr(e) {
|
|
770
770
|
return e.type === L.number;
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function fr(e) {
|
|
773
773
|
return e.type === L.date;
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function pr(e) {
|
|
776
776
|
return e.type === L.time;
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function dr(e) {
|
|
779
779
|
return e.type === L.select;
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function mr(e) {
|
|
782
782
|
return e.type === L.plural;
|
|
783
783
|
}
|
|
784
|
-
function
|
|
784
|
+
function Qn(e) {
|
|
785
785
|
return e.type === L.pound;
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function gr(e) {
|
|
788
788
|
return e.type === L.tag;
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function br(e) {
|
|
791
791
|
return !!(e && typeof e == "object" && e.type === Me.number);
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function _t(e) {
|
|
794
794
|
return !!(e && typeof e == "object" && e.type === Me.dateTime);
|
|
795
795
|
}
|
|
796
|
-
var
|
|
797
|
-
function
|
|
796
|
+
var yr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Jn = /(?:[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;
|
|
797
|
+
function Yn(e) {
|
|
798
798
|
var t = {};
|
|
799
|
-
return e.replace(
|
|
800
|
-
var
|
|
801
|
-
switch (
|
|
799
|
+
return e.replace(Jn, function(r) {
|
|
800
|
+
var n = r.length;
|
|
801
|
+
switch (r[0]) {
|
|
802
802
|
case "G":
|
|
803
|
-
t.era =
|
|
803
|
+
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
804
804
|
break;
|
|
805
805
|
case "y":
|
|
806
|
-
t.year =
|
|
806
|
+
t.year = n === 2 ? "2-digit" : "numeric";
|
|
807
807
|
break;
|
|
808
808
|
case "Y":
|
|
809
809
|
case "u":
|
|
@@ -815,30 +815,30 @@ function Yr(e) {
|
|
|
815
815
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
816
816
|
case "M":
|
|
817
817
|
case "L":
|
|
818
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
818
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
819
819
|
break;
|
|
820
820
|
case "w":
|
|
821
821
|
case "W":
|
|
822
822
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
823
823
|
case "d":
|
|
824
|
-
t.day = ["numeric", "2-digit"][
|
|
824
|
+
t.day = ["numeric", "2-digit"][n - 1];
|
|
825
825
|
break;
|
|
826
826
|
case "D":
|
|
827
827
|
case "F":
|
|
828
828
|
case "g":
|
|
829
829
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
830
830
|
case "E":
|
|
831
|
-
t.weekday =
|
|
831
|
+
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
832
832
|
break;
|
|
833
833
|
case "e":
|
|
834
|
-
if (
|
|
834
|
+
if (n < 4)
|
|
835
835
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
836
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
836
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
837
837
|
break;
|
|
838
838
|
case "c":
|
|
839
|
-
if (
|
|
839
|
+
if (n < 4)
|
|
840
840
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
841
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
841
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
842
842
|
break;
|
|
843
843
|
case "a":
|
|
844
844
|
t.hour12 = !0;
|
|
@@ -847,32 +847,32 @@ function Yr(e) {
|
|
|
847
847
|
case "B":
|
|
848
848
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
849
849
|
case "h":
|
|
850
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
850
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
851
851
|
break;
|
|
852
852
|
case "H":
|
|
853
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
853
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
854
854
|
break;
|
|
855
855
|
case "K":
|
|
856
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
856
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
857
857
|
break;
|
|
858
858
|
case "k":
|
|
859
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
859
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
860
860
|
break;
|
|
861
861
|
case "j":
|
|
862
862
|
case "J":
|
|
863
863
|
case "C":
|
|
864
864
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
865
865
|
case "m":
|
|
866
|
-
t.minute = ["numeric", "2-digit"][
|
|
866
|
+
t.minute = ["numeric", "2-digit"][n - 1];
|
|
867
867
|
break;
|
|
868
868
|
case "s":
|
|
869
|
-
t.second = ["numeric", "2-digit"][
|
|
869
|
+
t.second = ["numeric", "2-digit"][n - 1];
|
|
870
870
|
break;
|
|
871
871
|
case "S":
|
|
872
872
|
case "A":
|
|
873
873
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
874
874
|
case "z":
|
|
875
|
-
t.timeZoneName =
|
|
875
|
+
t.timeZoneName = n < 4 ? "short" : "long";
|
|
876
876
|
break;
|
|
877
877
|
case "Z":
|
|
878
878
|
case "O":
|
|
@@ -887,22 +887,22 @@ function Yr(e) {
|
|
|
887
887
|
}
|
|
888
888
|
var R = function() {
|
|
889
889
|
return R = Object.assign || function(t) {
|
|
890
|
-
for (var
|
|
891
|
-
|
|
892
|
-
for (var o in
|
|
893
|
-
Object.prototype.hasOwnProperty.call(
|
|
890
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
891
|
+
r = arguments[n];
|
|
892
|
+
for (var o in r)
|
|
893
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
894
894
|
}
|
|
895
895
|
return t;
|
|
896
896
|
}, R.apply(this, arguments);
|
|
897
897
|
};
|
|
898
|
-
var
|
|
898
|
+
var Kn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
899
899
|
function ei(e) {
|
|
900
900
|
if (e.length === 0)
|
|
901
901
|
throw new Error("Number skeleton cannot be empty");
|
|
902
|
-
for (var t = e.split(
|
|
903
|
-
return
|
|
904
|
-
}),
|
|
905
|
-
var o = i[
|
|
902
|
+
for (var t = e.split(Kn).filter(function(d) {
|
|
903
|
+
return d.length > 0;
|
|
904
|
+
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
905
|
+
var o = i[n], a = o.split("/");
|
|
906
906
|
if (a.length === 0)
|
|
907
907
|
throw new Error("Invalid number skeleton");
|
|
908
908
|
for (var s = a[0], u = a.slice(1), l = 0, h = u; l < h.length; l++) {
|
|
@@ -910,21 +910,21 @@ function ei(e) {
|
|
|
910
910
|
if (c.length === 0)
|
|
911
911
|
throw new Error("Invalid number skeleton");
|
|
912
912
|
}
|
|
913
|
-
|
|
913
|
+
r.push({ stem: s, options: u });
|
|
914
914
|
}
|
|
915
|
-
return
|
|
915
|
+
return r;
|
|
916
916
|
}
|
|
917
917
|
function ti(e) {
|
|
918
918
|
return e.replace(/^(.*?)-/, "");
|
|
919
919
|
}
|
|
920
|
-
var Ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
|
920
|
+
var Ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Er = /^(@+)?(\+|#+)?[rs]?$/g, ri = /(\*)(0+)|(#+)(0+)|(0+)/g, _r = /^(0+)$/;
|
|
921
921
|
function jt(e) {
|
|
922
922
|
var t = {};
|
|
923
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
924
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
923
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Er, function(r, n, i) {
|
|
924
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
925
925
|
}), t;
|
|
926
926
|
}
|
|
927
|
-
function
|
|
927
|
+
function vr(e) {
|
|
928
928
|
switch (e) {
|
|
929
929
|
case "sign-auto":
|
|
930
930
|
return {
|
|
@@ -964,27 +964,27 @@ function xn(e) {
|
|
|
964
964
|
};
|
|
965
965
|
}
|
|
966
966
|
}
|
|
967
|
-
function
|
|
967
|
+
function ni(e) {
|
|
968
968
|
var t;
|
|
969
969
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
970
970
|
notation: "engineering"
|
|
971
971
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
972
972
|
notation: "scientific"
|
|
973
973
|
}, e = e.slice(1)), t) {
|
|
974
|
-
var
|
|
975
|
-
if (
|
|
974
|
+
var r = e.slice(0, 2);
|
|
975
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !_r.test(e))
|
|
976
976
|
throw new Error("Malformed concise eng/scientific notation");
|
|
977
977
|
t.minimumIntegerDigits = e.length;
|
|
978
978
|
}
|
|
979
979
|
return t;
|
|
980
980
|
}
|
|
981
981
|
function Vt(e) {
|
|
982
|
-
var t = {},
|
|
983
|
-
return
|
|
982
|
+
var t = {}, r = vr(e);
|
|
983
|
+
return r || t;
|
|
984
984
|
}
|
|
985
985
|
function ii(e) {
|
|
986
|
-
for (var t = {},
|
|
987
|
-
var i = r
|
|
986
|
+
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
987
|
+
var i = n[r];
|
|
988
988
|
switch (i.stem) {
|
|
989
989
|
case "percent":
|
|
990
990
|
case "%":
|
|
@@ -1068,40 +1068,40 @@ function ii(e) {
|
|
|
1068
1068
|
case "integer-width":
|
|
1069
1069
|
if (i.options.length > 1)
|
|
1070
1070
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1071
|
-
i.options[0].replace(
|
|
1071
|
+
i.options[0].replace(ri, function(u, l, h, c, d, E) {
|
|
1072
1072
|
if (l)
|
|
1073
1073
|
t.minimumIntegerDigits = h.length;
|
|
1074
1074
|
else {
|
|
1075
|
-
if (c &&
|
|
1075
|
+
if (c && d)
|
|
1076
1076
|
throw new Error("We currently do not support maximum integer digits");
|
|
1077
|
-
if (
|
|
1077
|
+
if (E)
|
|
1078
1078
|
throw new Error("We currently do not support exact integer digits");
|
|
1079
1079
|
}
|
|
1080
1080
|
return "";
|
|
1081
1081
|
});
|
|
1082
1082
|
continue;
|
|
1083
1083
|
}
|
|
1084
|
-
if (
|
|
1084
|
+
if (_r.test(i.stem)) {
|
|
1085
1085
|
t.minimumIntegerDigits = i.stem.length;
|
|
1086
1086
|
continue;
|
|
1087
1087
|
}
|
|
1088
1088
|
if (Ft.test(i.stem)) {
|
|
1089
1089
|
if (i.options.length > 1)
|
|
1090
1090
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1091
|
-
i.stem.replace(Ft, function(u, l, h, c,
|
|
1092
|
-
return h === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length :
|
|
1091
|
+
i.stem.replace(Ft, function(u, l, h, c, d, E) {
|
|
1092
|
+
return h === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : d && E ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + E.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1093
1093
|
});
|
|
1094
1094
|
var o = i.options[0];
|
|
1095
1095
|
o === "w" ? t = R(R({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = R(R({}, t), jt(o)));
|
|
1096
1096
|
continue;
|
|
1097
1097
|
}
|
|
1098
|
-
if (
|
|
1098
|
+
if (Er.test(i.stem)) {
|
|
1099
1099
|
t = R(R({}, t), jt(i.stem));
|
|
1100
1100
|
continue;
|
|
1101
1101
|
}
|
|
1102
|
-
var a =
|
|
1102
|
+
var a = vr(i.stem);
|
|
1103
1103
|
a && (t = R(R({}, t), a));
|
|
1104
|
-
var s =
|
|
1104
|
+
var s = ni(i.stem);
|
|
1105
1105
|
s && (t = R(R({}, t), s));
|
|
1106
1106
|
}
|
|
1107
1107
|
return t;
|
|
@@ -2522,20 +2522,20 @@ var We = {
|
|
|
2522
2522
|
]
|
|
2523
2523
|
};
|
|
2524
2524
|
function oi(e, t) {
|
|
2525
|
-
for (var
|
|
2526
|
-
var i = e.charAt(
|
|
2525
|
+
for (var r = "", n = 0; n < e.length; n++) {
|
|
2526
|
+
var i = e.charAt(n);
|
|
2527
2527
|
if (i === "j") {
|
|
2528
|
-
for (var o = 0;
|
|
2529
|
-
o++,
|
|
2528
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2529
|
+
o++, n++;
|
|
2530
2530
|
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = si(t);
|
|
2531
2531
|
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
2532
|
-
|
|
2532
|
+
r += u;
|
|
2533
2533
|
for (; a-- > 0; )
|
|
2534
|
-
|
|
2534
|
+
r = l + r;
|
|
2535
2535
|
} else
|
|
2536
|
-
i === "J" ?
|
|
2536
|
+
i === "J" ? r += "H" : r += i;
|
|
2537
2537
|
}
|
|
2538
|
-
return
|
|
2538
|
+
return r;
|
|
2539
2539
|
}
|
|
2540
2540
|
function si(e) {
|
|
2541
2541
|
var t = e.hourCycle;
|
|
@@ -2554,70 +2554,70 @@ function si(e) {
|
|
|
2554
2554
|
default:
|
|
2555
2555
|
throw new Error("Invalid hourCycle");
|
|
2556
2556
|
}
|
|
2557
|
-
var
|
|
2558
|
-
|
|
2559
|
-
var i = We[
|
|
2557
|
+
var r = e.language, n;
|
|
2558
|
+
r !== "root" && (n = e.maximize().region);
|
|
2559
|
+
var i = We[n || ""] || We[r || ""] || We["".concat(r, "-001")] || We["001"];
|
|
2560
2560
|
return i[0];
|
|
2561
2561
|
}
|
|
2562
|
-
var
|
|
2562
|
+
var dt, ai = new RegExp("^".concat(yr.source, "*")), li = new RegExp("".concat(yr.source, "*$"));
|
|
2563
2563
|
function T(e, t) {
|
|
2564
2564
|
return { start: e, end: t };
|
|
2565
2565
|
}
|
|
2566
|
-
var ui = !!String.prototype.startsWith && "_a".startsWith("a", 1), hi = !!String.fromCodePoint, ci = !!Object.fromEntries, fi = !!String.prototype.codePointAt, pi = !!String.prototype.trimStart,
|
|
2566
|
+
var ui = !!String.prototype.startsWith && "_a".startsWith("a", 1), hi = !!String.fromCodePoint, ci = !!Object.fromEntries, fi = !!String.prototype.codePointAt, pi = !!String.prototype.trimStart, di = !!String.prototype.trimEnd, mi = !!Number.isSafeInteger, gi = mi ? Number.isSafeInteger : function(e) {
|
|
2567
2567
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2568
2568
|
}, vt = !0;
|
|
2569
2569
|
try {
|
|
2570
|
-
var bi =
|
|
2571
|
-
vt = ((
|
|
2570
|
+
var bi = wr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2571
|
+
vt = ((dt = bi.exec("a")) === null || dt === void 0 ? void 0 : dt[0]) === "a";
|
|
2572
2572
|
} catch (e) {
|
|
2573
2573
|
vt = !1;
|
|
2574
2574
|
}
|
|
2575
2575
|
var $t = ui ? (
|
|
2576
2576
|
// Native
|
|
2577
|
-
function(t,
|
|
2578
|
-
return t.startsWith(
|
|
2577
|
+
function(t, r, n) {
|
|
2578
|
+
return t.startsWith(r, n);
|
|
2579
2579
|
}
|
|
2580
2580
|
) : (
|
|
2581
2581
|
// For IE11
|
|
2582
|
-
function(t,
|
|
2583
|
-
return t.slice(
|
|
2582
|
+
function(t, r, n) {
|
|
2583
|
+
return t.slice(n, n + r.length) === r;
|
|
2584
2584
|
}
|
|
2585
2585
|
), xt = hi ? String.fromCodePoint : (
|
|
2586
2586
|
// IE11
|
|
2587
2587
|
function() {
|
|
2588
|
-
for (var t = [],
|
|
2589
|
-
t[
|
|
2590
|
-
for (var
|
|
2588
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2589
|
+
t[r] = arguments[r];
|
|
2590
|
+
for (var n = "", i = t.length, o = 0, a; i > o; ) {
|
|
2591
2591
|
if (a = t[o++], a > 1114111)
|
|
2592
2592
|
throw RangeError(a + " is not a valid code point");
|
|
2593
|
-
|
|
2593
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
2594
2594
|
}
|
|
2595
|
-
return
|
|
2595
|
+
return n;
|
|
2596
2596
|
}
|
|
2597
2597
|
), zt = (
|
|
2598
2598
|
// native
|
|
2599
2599
|
ci ? Object.fromEntries : (
|
|
2600
2600
|
// Ponyfill
|
|
2601
2601
|
function(t) {
|
|
2602
|
-
for (var
|
|
2603
|
-
var o = i[
|
|
2604
|
-
|
|
2602
|
+
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2603
|
+
var o = i[n], a = o[0], s = o[1];
|
|
2604
|
+
r[a] = s;
|
|
2605
2605
|
}
|
|
2606
|
-
return
|
|
2606
|
+
return r;
|
|
2607
2607
|
}
|
|
2608
2608
|
)
|
|
2609
|
-
),
|
|
2609
|
+
), xr = fi ? (
|
|
2610
2610
|
// Native
|
|
2611
|
-
function(t,
|
|
2612
|
-
return t.codePointAt(
|
|
2611
|
+
function(t, r) {
|
|
2612
|
+
return t.codePointAt(r);
|
|
2613
2613
|
}
|
|
2614
2614
|
) : (
|
|
2615
2615
|
// IE 11
|
|
2616
|
-
function(t,
|
|
2617
|
-
var
|
|
2618
|
-
if (!(
|
|
2619
|
-
var i = t.charCodeAt(
|
|
2620
|
-
return i < 55296 || i > 56319 ||
|
|
2616
|
+
function(t, r) {
|
|
2617
|
+
var n = t.length;
|
|
2618
|
+
if (!(r < 0 || r >= n)) {
|
|
2619
|
+
var i = t.charCodeAt(r), o;
|
|
2620
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2621
2621
|
}
|
|
2622
2622
|
}
|
|
2623
2623
|
), yi = pi ? (
|
|
@@ -2630,7 +2630,7 @@ var $t = ui ? (
|
|
|
2630
2630
|
function(t) {
|
|
2631
2631
|
return t.replace(ai, "");
|
|
2632
2632
|
}
|
|
2633
|
-
),
|
|
2633
|
+
), Ei = di ? (
|
|
2634
2634
|
// Native
|
|
2635
2635
|
function(t) {
|
|
2636
2636
|
return t.trimEnd();
|
|
@@ -2641,66 +2641,66 @@ var $t = ui ? (
|
|
|
2641
2641
|
return t.replace(li, "");
|
|
2642
2642
|
}
|
|
2643
2643
|
);
|
|
2644
|
-
function
|
|
2644
|
+
function wr(e, t) {
|
|
2645
2645
|
return new RegExp(e, t);
|
|
2646
2646
|
}
|
|
2647
2647
|
var wt;
|
|
2648
2648
|
if (vt) {
|
|
2649
|
-
var Xt =
|
|
2650
|
-
wt = function(t,
|
|
2651
|
-
var
|
|
2652
|
-
Xt.lastIndex =
|
|
2649
|
+
var Xt = wr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2650
|
+
wt = function(t, r) {
|
|
2651
|
+
var n;
|
|
2652
|
+
Xt.lastIndex = r;
|
|
2653
2653
|
var i = Xt.exec(t);
|
|
2654
|
-
return (
|
|
2654
|
+
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2655
2655
|
};
|
|
2656
2656
|
} else
|
|
2657
|
-
wt = function(t,
|
|
2658
|
-
for (var
|
|
2659
|
-
var i =
|
|
2660
|
-
if (i === void 0 ||
|
|
2657
|
+
wt = function(t, r) {
|
|
2658
|
+
for (var n = []; ; ) {
|
|
2659
|
+
var i = xr(t, r);
|
|
2660
|
+
if (i === void 0 || Sr(i) || wi(i))
|
|
2661
2661
|
break;
|
|
2662
|
-
|
|
2662
|
+
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2663
2663
|
}
|
|
2664
|
-
return xt.apply(void 0,
|
|
2664
|
+
return xt.apply(void 0, n);
|
|
2665
2665
|
};
|
|
2666
|
-
var
|
|
2666
|
+
var _i = (
|
|
2667
2667
|
/** @class */
|
|
2668
2668
|
function() {
|
|
2669
|
-
function e(t,
|
|
2670
|
-
|
|
2669
|
+
function e(t, r) {
|
|
2670
|
+
r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
|
|
2671
2671
|
}
|
|
2672
2672
|
return e.prototype.parse = function() {
|
|
2673
2673
|
if (this.offset() !== 0)
|
|
2674
2674
|
throw Error("parser can only be used once");
|
|
2675
2675
|
return this.parseMessage(0, "", !1);
|
|
2676
|
-
}, e.prototype.parseMessage = function(t,
|
|
2676
|
+
}, e.prototype.parseMessage = function(t, r, n) {
|
|
2677
2677
|
for (var i = []; !this.isEOF(); ) {
|
|
2678
2678
|
var o = this.char();
|
|
2679
2679
|
if (o === 123) {
|
|
2680
|
-
var a = this.parseArgument(t,
|
|
2680
|
+
var a = this.parseArgument(t, n);
|
|
2681
2681
|
if (a.err)
|
|
2682
2682
|
return a;
|
|
2683
2683
|
i.push(a.val);
|
|
2684
2684
|
} else {
|
|
2685
2685
|
if (o === 125 && t > 0)
|
|
2686
2686
|
break;
|
|
2687
|
-
if (o === 35 && (
|
|
2687
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2688
2688
|
var s = this.clonePosition();
|
|
2689
2689
|
this.bump(), i.push({
|
|
2690
2690
|
type: L.pound,
|
|
2691
2691
|
location: T(s, this.clonePosition())
|
|
2692
2692
|
});
|
|
2693
2693
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2694
|
-
if (
|
|
2694
|
+
if (n)
|
|
2695
2695
|
break;
|
|
2696
2696
|
return this.error(w.UNMATCHED_CLOSING_TAG, T(this.clonePosition(), this.clonePosition()));
|
|
2697
2697
|
} else if (o === 60 && !this.ignoreTag && St(this.peek() || 0)) {
|
|
2698
|
-
var a = this.parseTag(t,
|
|
2698
|
+
var a = this.parseTag(t, r);
|
|
2699
2699
|
if (a.err)
|
|
2700
2700
|
return a;
|
|
2701
2701
|
i.push(a.val);
|
|
2702
2702
|
} else {
|
|
2703
|
-
var a = this.parseLiteral(t,
|
|
2703
|
+
var a = this.parseLiteral(t, r);
|
|
2704
2704
|
if (a.err)
|
|
2705
2705
|
return a;
|
|
2706
2706
|
i.push(a.val);
|
|
@@ -2708,8 +2708,8 @@ var Ei = (
|
|
|
2708
2708
|
}
|
|
2709
2709
|
}
|
|
2710
2710
|
return { val: i, err: null };
|
|
2711
|
-
}, e.prototype.parseTag = function(t,
|
|
2712
|
-
var
|
|
2711
|
+
}, e.prototype.parseTag = function(t, r) {
|
|
2712
|
+
var n = this.clonePosition();
|
|
2713
2713
|
this.bump();
|
|
2714
2714
|
var i = this.parseTagName();
|
|
2715
2715
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
@@ -2717,12 +2717,12 @@ var Ei = (
|
|
|
2717
2717
|
val: {
|
|
2718
2718
|
type: L.literal,
|
|
2719
2719
|
value: "<".concat(i, "/>"),
|
|
2720
|
-
location: T(
|
|
2720
|
+
location: T(n, this.clonePosition())
|
|
2721
2721
|
},
|
|
2722
2722
|
err: null
|
|
2723
2723
|
};
|
|
2724
2724
|
if (this.bumpIf(">")) {
|
|
2725
|
-
var o = this.parseMessage(t + 1,
|
|
2725
|
+
var o = this.parseMessage(t + 1, r, !0);
|
|
2726
2726
|
if (o.err)
|
|
2727
2727
|
return o;
|
|
2728
2728
|
var a = o.val, s = this.clonePosition();
|
|
@@ -2735,27 +2735,27 @@ var Ei = (
|
|
|
2735
2735
|
type: L.tag,
|
|
2736
2736
|
value: i,
|
|
2737
2737
|
children: a,
|
|
2738
|
-
location: T(
|
|
2738
|
+
location: T(n, this.clonePosition())
|
|
2739
2739
|
},
|
|
2740
2740
|
err: null
|
|
2741
2741
|
} : this.error(w.INVALID_TAG, T(s, this.clonePosition())));
|
|
2742
2742
|
} else
|
|
2743
|
-
return this.error(w.UNCLOSED_TAG, T(
|
|
2743
|
+
return this.error(w.UNCLOSED_TAG, T(n, this.clonePosition()));
|
|
2744
2744
|
} else
|
|
2745
|
-
return this.error(w.INVALID_TAG, T(
|
|
2745
|
+
return this.error(w.INVALID_TAG, T(n, this.clonePosition()));
|
|
2746
2746
|
}, e.prototype.parseTagName = function() {
|
|
2747
2747
|
var t = this.offset();
|
|
2748
2748
|
for (this.bump(); !this.isEOF() && xi(this.char()); )
|
|
2749
2749
|
this.bump();
|
|
2750
2750
|
return this.message.slice(t, this.offset());
|
|
2751
|
-
}, e.prototype.parseLiteral = function(t,
|
|
2752
|
-
for (var
|
|
2753
|
-
var o = this.tryParseQuote(
|
|
2751
|
+
}, e.prototype.parseLiteral = function(t, r) {
|
|
2752
|
+
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
2753
|
+
var o = this.tryParseQuote(r);
|
|
2754
2754
|
if (o) {
|
|
2755
2755
|
i += o;
|
|
2756
2756
|
continue;
|
|
2757
2757
|
}
|
|
2758
|
-
var a = this.tryParseUnquoted(t,
|
|
2758
|
+
var a = this.tryParseUnquoted(t, r);
|
|
2759
2759
|
if (a) {
|
|
2760
2760
|
i += a;
|
|
2761
2761
|
continue;
|
|
@@ -2767,7 +2767,7 @@ var Ei = (
|
|
|
2767
2767
|
}
|
|
2768
2768
|
break;
|
|
2769
2769
|
}
|
|
2770
|
-
var u = T(
|
|
2770
|
+
var u = T(n, this.clonePosition());
|
|
2771
2771
|
return {
|
|
2772
2772
|
val: { type: L.literal, value: i, location: u },
|
|
2773
2773
|
err: null
|
|
@@ -2794,37 +2794,37 @@ var Ei = (
|
|
|
2794
2794
|
return null;
|
|
2795
2795
|
}
|
|
2796
2796
|
this.bump();
|
|
2797
|
-
var
|
|
2797
|
+
var r = [this.char()];
|
|
2798
2798
|
for (this.bump(); !this.isEOF(); ) {
|
|
2799
|
-
var
|
|
2800
|
-
if (
|
|
2799
|
+
var n = this.char();
|
|
2800
|
+
if (n === 39)
|
|
2801
2801
|
if (this.peek() === 39)
|
|
2802
|
-
|
|
2802
|
+
r.push(39), this.bump();
|
|
2803
2803
|
else {
|
|
2804
2804
|
this.bump();
|
|
2805
2805
|
break;
|
|
2806
2806
|
}
|
|
2807
2807
|
else
|
|
2808
|
-
|
|
2808
|
+
r.push(n);
|
|
2809
2809
|
this.bump();
|
|
2810
2810
|
}
|
|
2811
|
-
return xt.apply(void 0,
|
|
2812
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
2811
|
+
return xt.apply(void 0, r);
|
|
2812
|
+
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2813
2813
|
if (this.isEOF())
|
|
2814
2814
|
return null;
|
|
2815
|
-
var
|
|
2816
|
-
return
|
|
2817
|
-
}, e.prototype.parseArgument = function(t,
|
|
2818
|
-
var
|
|
2815
|
+
var n = this.char();
|
|
2816
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), xt(n));
|
|
2817
|
+
}, e.prototype.parseArgument = function(t, r) {
|
|
2818
|
+
var n = this.clonePosition();
|
|
2819
2819
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2820
|
-
return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(
|
|
2820
|
+
return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
|
|
2821
2821
|
if (this.char() === 125)
|
|
2822
|
-
return this.bump(), this.error(w.EMPTY_ARGUMENT, T(
|
|
2822
|
+
return this.bump(), this.error(w.EMPTY_ARGUMENT, T(n, this.clonePosition()));
|
|
2823
2823
|
var i = this.parseIdentifierIfPossible().value;
|
|
2824
2824
|
if (!i)
|
|
2825
|
-
return this.error(w.MALFORMED_ARGUMENT, T(
|
|
2825
|
+
return this.error(w.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
|
|
2826
2826
|
if (this.bumpSpace(), this.isEOF())
|
|
2827
|
-
return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(
|
|
2827
|
+
return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
|
|
2828
2828
|
switch (this.char()) {
|
|
2829
2829
|
case 125:
|
|
2830
2830
|
return this.bump(), {
|
|
@@ -2832,21 +2832,21 @@ var Ei = (
|
|
|
2832
2832
|
type: L.argument,
|
|
2833
2833
|
// value does not include the opening and closing braces.
|
|
2834
2834
|
value: i,
|
|
2835
|
-
location: T(
|
|
2835
|
+
location: T(n, this.clonePosition())
|
|
2836
2836
|
},
|
|
2837
2837
|
err: null
|
|
2838
2838
|
};
|
|
2839
2839
|
case 44:
|
|
2840
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(
|
|
2840
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2841
2841
|
default:
|
|
2842
|
-
return this.error(w.MALFORMED_ARGUMENT, T(
|
|
2842
|
+
return this.error(w.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
|
|
2843
2843
|
}
|
|
2844
2844
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2845
|
-
var t = this.clonePosition(),
|
|
2845
|
+
var t = this.clonePosition(), r = this.offset(), n = wt(this.message, r), i = r + n.length;
|
|
2846
2846
|
this.bumpTo(i);
|
|
2847
2847
|
var o = this.clonePosition(), a = T(t, o);
|
|
2848
|
-
return { value:
|
|
2849
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
2848
|
+
return { value: n, location: a };
|
|
2849
|
+
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2850
2850
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
2851
2851
|
switch (s) {
|
|
2852
2852
|
case "":
|
|
@@ -2861,22 +2861,22 @@ var Ei = (
|
|
|
2861
2861
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2862
2862
|
if (c.err)
|
|
2863
2863
|
return c;
|
|
2864
|
-
var
|
|
2865
|
-
if (
|
|
2864
|
+
var d = Ei(c.val);
|
|
2865
|
+
if (d.length === 0)
|
|
2866
2866
|
return this.error(w.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
|
|
2867
|
-
var
|
|
2868
|
-
l = { style:
|
|
2867
|
+
var E = T(h, this.clonePosition());
|
|
2868
|
+
l = { style: d, styleLocation: E };
|
|
2869
2869
|
}
|
|
2870
|
-
var
|
|
2871
|
-
if (
|
|
2872
|
-
return
|
|
2870
|
+
var m = this.tryParseArgumentClose(i);
|
|
2871
|
+
if (m.err)
|
|
2872
|
+
return m;
|
|
2873
2873
|
var g = T(i, this.clonePosition());
|
|
2874
2874
|
if (l && $t(l == null ? void 0 : l.style, "::", 0)) {
|
|
2875
2875
|
var v = yi(l.style.slice(2));
|
|
2876
2876
|
if (s === "number") {
|
|
2877
2877
|
var c = this.parseNumberSkeletonFromString(v, l.styleLocation);
|
|
2878
2878
|
return c.err ? c : {
|
|
2879
|
-
val: { type: L.number, value:
|
|
2879
|
+
val: { type: L.number, value: n, location: g, style: c.val },
|
|
2880
2880
|
err: null
|
|
2881
2881
|
};
|
|
2882
2882
|
} else {
|
|
@@ -2884,14 +2884,14 @@ var Ei = (
|
|
|
2884
2884
|
return this.error(w.EXPECT_DATE_TIME_SKELETON, g);
|
|
2885
2885
|
var S = v;
|
|
2886
2886
|
this.locale && (S = oi(v, this.locale));
|
|
2887
|
-
var
|
|
2887
|
+
var d = {
|
|
2888
2888
|
type: Me.dateTime,
|
|
2889
2889
|
pattern: S,
|
|
2890
2890
|
location: l.styleLocation,
|
|
2891
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2891
|
+
parsedOptions: this.shouldParseSkeletons ? Yn(S) : {}
|
|
2892
2892
|
}, P = s === "date" ? L.date : L.time;
|
|
2893
2893
|
return {
|
|
2894
|
-
val: { type: P, value:
|
|
2894
|
+
val: { type: P, value: n, location: g, style: d },
|
|
2895
2895
|
err: null
|
|
2896
2896
|
};
|
|
2897
2897
|
}
|
|
@@ -2899,7 +2899,7 @@ var Ei = (
|
|
|
2899
2899
|
return {
|
|
2900
2900
|
val: {
|
|
2901
2901
|
type: s === "number" ? L.number : s === "date" ? L.date : L.time,
|
|
2902
|
-
value:
|
|
2902
|
+
value: n,
|
|
2903
2903
|
location: g,
|
|
2904
2904
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
2905
2905
|
},
|
|
@@ -2923,17 +2923,17 @@ var Ei = (
|
|
|
2923
2923
|
return c;
|
|
2924
2924
|
this.bumpSpace(), D = this.parseIdentifierIfPossible(), M = c.val;
|
|
2925
2925
|
}
|
|
2926
|
-
var N = this.tryParsePluralOrSelectOptions(t, s,
|
|
2926
|
+
var N = this.tryParsePluralOrSelectOptions(t, s, r, D);
|
|
2927
2927
|
if (N.err)
|
|
2928
2928
|
return N;
|
|
2929
|
-
var
|
|
2930
|
-
if (
|
|
2931
|
-
return
|
|
2929
|
+
var m = this.tryParseArgumentClose(i);
|
|
2930
|
+
if (m.err)
|
|
2931
|
+
return m;
|
|
2932
2932
|
var te = T(i, this.clonePosition());
|
|
2933
2933
|
return s === "select" ? {
|
|
2934
2934
|
val: {
|
|
2935
2935
|
type: L.select,
|
|
2936
|
-
value:
|
|
2936
|
+
value: n,
|
|
2937
2937
|
options: zt(N.val),
|
|
2938
2938
|
location: te
|
|
2939
2939
|
},
|
|
@@ -2941,7 +2941,7 @@ var Ei = (
|
|
|
2941
2941
|
} : {
|
|
2942
2942
|
val: {
|
|
2943
2943
|
type: L.plural,
|
|
2944
|
-
value:
|
|
2944
|
+
value: n,
|
|
2945
2945
|
options: zt(N.val),
|
|
2946
2946
|
offset: M,
|
|
2947
2947
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
@@ -2956,9 +2956,9 @@ var Ei = (
|
|
|
2956
2956
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2957
2957
|
return this.isEOF() || this.char() !== 125 ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2958
2958
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2959
|
-
for (var t = 0,
|
|
2960
|
-
var
|
|
2961
|
-
switch (
|
|
2959
|
+
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2960
|
+
var n = this.char();
|
|
2961
|
+
switch (n) {
|
|
2962
2962
|
case 39: {
|
|
2963
2963
|
this.bump();
|
|
2964
2964
|
var i = this.clonePosition();
|
|
@@ -2976,7 +2976,7 @@ var Ei = (
|
|
|
2976
2976
|
t -= 1;
|
|
2977
2977
|
else
|
|
2978
2978
|
return {
|
|
2979
|
-
val: this.message.slice(
|
|
2979
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
2980
2980
|
err: null
|
|
2981
2981
|
};
|
|
2982
2982
|
break;
|
|
@@ -2987,61 +2987,61 @@ var Ei = (
|
|
|
2987
2987
|
}
|
|
2988
2988
|
}
|
|
2989
2989
|
return {
|
|
2990
|
-
val: this.message.slice(
|
|
2990
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
2991
2991
|
err: null
|
|
2992
2992
|
};
|
|
2993
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
2994
|
-
var
|
|
2993
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2994
|
+
var n = [];
|
|
2995
2995
|
try {
|
|
2996
|
-
|
|
2996
|
+
n = ei(t);
|
|
2997
2997
|
} catch (i) {
|
|
2998
|
-
return this.error(w.INVALID_NUMBER_SKELETON,
|
|
2998
|
+
return this.error(w.INVALID_NUMBER_SKELETON, r);
|
|
2999
2999
|
}
|
|
3000
3000
|
return {
|
|
3001
3001
|
val: {
|
|
3002
3002
|
type: Me.number,
|
|
3003
|
-
tokens:
|
|
3004
|
-
location:
|
|
3005
|
-
parsedOptions: this.shouldParseSkeletons ? ii(
|
|
3003
|
+
tokens: n,
|
|
3004
|
+
location: r,
|
|
3005
|
+
parsedOptions: this.shouldParseSkeletons ? ii(n) : {}
|
|
3006
3006
|
},
|
|
3007
3007
|
err: null
|
|
3008
3008
|
};
|
|
3009
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3009
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3010
3010
|
for (var o, a = !1, s = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
|
|
3011
3011
|
if (l.length === 0) {
|
|
3012
3012
|
var c = this.clonePosition();
|
|
3013
|
-
if (
|
|
3014
|
-
var
|
|
3015
|
-
if (
|
|
3016
|
-
return
|
|
3013
|
+
if (r !== "select" && this.bumpIf("=")) {
|
|
3014
|
+
var d = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_SELECTOR, w.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3015
|
+
if (d.err)
|
|
3016
|
+
return d;
|
|
3017
3017
|
h = T(c, this.clonePosition()), l = this.message.slice(c.offset, this.offset());
|
|
3018
3018
|
} else
|
|
3019
3019
|
break;
|
|
3020
3020
|
}
|
|
3021
3021
|
if (u.has(l))
|
|
3022
|
-
return this.error(
|
|
3022
|
+
return this.error(r === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3023
3023
|
l === "other" && (a = !0), this.bumpSpace();
|
|
3024
|
-
var
|
|
3024
|
+
var E = this.clonePosition();
|
|
3025
3025
|
if (!this.bumpIf("{"))
|
|
3026
|
-
return this.error(
|
|
3027
|
-
var
|
|
3028
|
-
if (
|
|
3029
|
-
return
|
|
3030
|
-
var g = this.tryParseArgumentClose(
|
|
3026
|
+
return this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
|
|
3027
|
+
var m = this.parseMessage(t + 1, r, n);
|
|
3028
|
+
if (m.err)
|
|
3029
|
+
return m;
|
|
3030
|
+
var g = this.tryParseArgumentClose(E);
|
|
3031
3031
|
if (g.err)
|
|
3032
3032
|
return g;
|
|
3033
3033
|
s.push([
|
|
3034
3034
|
l,
|
|
3035
3035
|
{
|
|
3036
|
-
value:
|
|
3037
|
-
location: T(
|
|
3036
|
+
value: m.val,
|
|
3037
|
+
location: T(E, this.clonePosition())
|
|
3038
3038
|
}
|
|
3039
3039
|
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
|
|
3040
3040
|
}
|
|
3041
|
-
return s.length === 0 ? this.error(
|
|
3042
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3043
|
-
var
|
|
3044
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3041
|
+
return s.length === 0 ? this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR : w.EXPECT_PLURAL_ARGUMENT_SELECTOR, T(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(w.MISSING_OTHER_CLAUSE, T(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3042
|
+
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3043
|
+
var n = 1, i = this.clonePosition();
|
|
3044
|
+
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3045
3045
|
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3046
3046
|
var s = this.char();
|
|
3047
3047
|
if (s >= 48 && s <= 57)
|
|
@@ -3050,7 +3050,7 @@ var Ei = (
|
|
|
3050
3050
|
break;
|
|
3051
3051
|
}
|
|
3052
3052
|
var u = T(i, this.clonePosition());
|
|
3053
|
-
return o ? (a *=
|
|
3053
|
+
return o ? (a *= n, gi(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3054
3054
|
}, e.prototype.offset = function() {
|
|
3055
3055
|
return this.position.offset;
|
|
3056
3056
|
}, e.prototype.isEOF = function() {
|
|
@@ -3065,17 +3065,17 @@ var Ei = (
|
|
|
3065
3065
|
var t = this.position.offset;
|
|
3066
3066
|
if (t >= this.message.length)
|
|
3067
3067
|
throw Error("out of bound");
|
|
3068
|
-
var
|
|
3069
|
-
if (
|
|
3068
|
+
var r = xr(this.message, t);
|
|
3069
|
+
if (r === void 0)
|
|
3070
3070
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3071
|
-
return
|
|
3072
|
-
}, e.prototype.error = function(t,
|
|
3071
|
+
return r;
|
|
3072
|
+
}, e.prototype.error = function(t, r) {
|
|
3073
3073
|
return {
|
|
3074
3074
|
val: null,
|
|
3075
3075
|
err: {
|
|
3076
3076
|
kind: t,
|
|
3077
3077
|
message: this.message,
|
|
3078
|
-
location:
|
|
3078
|
+
location: r
|
|
3079
3079
|
}
|
|
3080
3080
|
};
|
|
3081
3081
|
}, e.prototype.bump = function() {
|
|
@@ -3085,34 +3085,34 @@ var Ei = (
|
|
|
3085
3085
|
}
|
|
3086
3086
|
}, e.prototype.bumpIf = function(t) {
|
|
3087
3087
|
if ($t(this.message, t, this.offset())) {
|
|
3088
|
-
for (var
|
|
3088
|
+
for (var r = 0; r < t.length; r++)
|
|
3089
3089
|
this.bump();
|
|
3090
3090
|
return !0;
|
|
3091
3091
|
}
|
|
3092
3092
|
return !1;
|
|
3093
3093
|
}, e.prototype.bumpUntil = function(t) {
|
|
3094
|
-
var
|
|
3095
|
-
return
|
|
3094
|
+
var r = this.offset(), n = this.message.indexOf(t, r);
|
|
3095
|
+
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
3096
3096
|
}, e.prototype.bumpTo = function(t) {
|
|
3097
3097
|
if (this.offset() > t)
|
|
3098
3098
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3099
3099
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3100
|
-
var
|
|
3101
|
-
if (
|
|
3100
|
+
var r = this.offset();
|
|
3101
|
+
if (r === t)
|
|
3102
3102
|
break;
|
|
3103
|
-
if (
|
|
3103
|
+
if (r > t)
|
|
3104
3104
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3105
3105
|
if (this.bump(), this.isEOF())
|
|
3106
3106
|
break;
|
|
3107
3107
|
}
|
|
3108
3108
|
}, e.prototype.bumpSpace = function() {
|
|
3109
|
-
for (; !this.isEOF() &&
|
|
3109
|
+
for (; !this.isEOF() && Sr(this.char()); )
|
|
3110
3110
|
this.bump();
|
|
3111
3111
|
}, e.prototype.peek = function() {
|
|
3112
3112
|
if (this.isEOF())
|
|
3113
3113
|
return null;
|
|
3114
|
-
var t = this.char(),
|
|
3115
|
-
return
|
|
3114
|
+
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3115
|
+
return n != null ? n : null;
|
|
3116
3116
|
}, e;
|
|
3117
3117
|
}()
|
|
3118
3118
|
);
|
|
@@ -3125,7 +3125,7 @@ function vi(e) {
|
|
|
3125
3125
|
function xi(e) {
|
|
3126
3126
|
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;
|
|
3127
3127
|
}
|
|
3128
|
-
function
|
|
3128
|
+
function Sr(e) {
|
|
3129
3129
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3130
3130
|
}
|
|
3131
3131
|
function wi(e) {
|
|
@@ -3133,33 +3133,33 @@ function wi(e) {
|
|
|
3133
3133
|
}
|
|
3134
3134
|
function Tt(e) {
|
|
3135
3135
|
e.forEach(function(t) {
|
|
3136
|
-
if (delete t.location,
|
|
3137
|
-
for (var
|
|
3138
|
-
delete t.options[
|
|
3136
|
+
if (delete t.location, dr(t) || mr(t))
|
|
3137
|
+
for (var r in t.options)
|
|
3138
|
+
delete t.options[r].location, Tt(t.options[r].value);
|
|
3139
3139
|
else
|
|
3140
|
-
|
|
3140
|
+
cr(t) && br(t.style) || (fr(t) || pr(t)) && _t(t.style) ? delete t.style.location : gr(t) && Tt(t.children);
|
|
3141
3141
|
});
|
|
3142
3142
|
}
|
|
3143
3143
|
function Si(e, t) {
|
|
3144
3144
|
t === void 0 && (t = {}), t = Ye({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3145
|
-
var
|
|
3146
|
-
if (
|
|
3147
|
-
var
|
|
3148
|
-
throw
|
|
3145
|
+
var r = new _i(e, t).parse();
|
|
3146
|
+
if (r.err) {
|
|
3147
|
+
var n = SyntaxError(w[r.err.kind]);
|
|
3148
|
+
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3149
3149
|
}
|
|
3150
|
-
return t != null && t.captureLocation || Tt(
|
|
3150
|
+
return t != null && t.captureLocation || Tt(r.val), r.val;
|
|
3151
3151
|
}
|
|
3152
3152
|
var Le;
|
|
3153
3153
|
(function(e) {
|
|
3154
3154
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3155
3155
|
})(Le || (Le = {}));
|
|
3156
|
-
var
|
|
3156
|
+
var nt = (
|
|
3157
3157
|
/** @class */
|
|
3158
3158
|
function(e) {
|
|
3159
|
-
|
|
3160
|
-
function t(
|
|
3161
|
-
var o = e.call(this,
|
|
3162
|
-
return o.code =
|
|
3159
|
+
rt(t, e);
|
|
3160
|
+
function t(r, n, i) {
|
|
3161
|
+
var o = e.call(this, r) || this;
|
|
3162
|
+
return o.code = n, o.originalMessage = i, o;
|
|
3163
3163
|
}
|
|
3164
3164
|
return t.prototype.toString = function() {
|
|
3165
3165
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
@@ -3168,44 +3168,44 @@ var rt = (
|
|
|
3168
3168
|
), Wt = (
|
|
3169
3169
|
/** @class */
|
|
3170
3170
|
function(e) {
|
|
3171
|
-
|
|
3172
|
-
function t(
|
|
3173
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3171
|
+
rt(t, e);
|
|
3172
|
+
function t(r, n, i, o) {
|
|
3173
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Le.INVALID_VALUE, o) || this;
|
|
3174
3174
|
}
|
|
3175
3175
|
return t;
|
|
3176
|
-
}(
|
|
3176
|
+
}(nt)
|
|
3177
3177
|
), Ti = (
|
|
3178
3178
|
/** @class */
|
|
3179
3179
|
function(e) {
|
|
3180
|
-
|
|
3181
|
-
function t(
|
|
3182
|
-
return e.call(this, 'Value for "'.concat(
|
|
3180
|
+
rt(t, e);
|
|
3181
|
+
function t(r, n, i) {
|
|
3182
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Le.INVALID_VALUE, i) || this;
|
|
3183
3183
|
}
|
|
3184
3184
|
return t;
|
|
3185
|
-
}(
|
|
3185
|
+
}(nt)
|
|
3186
3186
|
), Oi = (
|
|
3187
3187
|
/** @class */
|
|
3188
3188
|
function(e) {
|
|
3189
|
-
|
|
3190
|
-
function t(
|
|
3191
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3189
|
+
rt(t, e);
|
|
3190
|
+
function t(r, n) {
|
|
3191
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Le.MISSING_VALUE, n) || this;
|
|
3192
3192
|
}
|
|
3193
3193
|
return t;
|
|
3194
|
-
}(
|
|
3194
|
+
}(nt)
|
|
3195
3195
|
), q;
|
|
3196
3196
|
(function(e) {
|
|
3197
3197
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3198
3198
|
})(q || (q = {}));
|
|
3199
3199
|
function Hi(e) {
|
|
3200
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3201
|
-
var
|
|
3202
|
-
return !
|
|
3200
|
+
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3201
|
+
var n = t[t.length - 1];
|
|
3202
|
+
return !n || n.type !== q.literal || r.type !== q.literal ? t.push(r) : n.value += r.value, t;
|
|
3203
3203
|
}, []);
|
|
3204
3204
|
}
|
|
3205
3205
|
function Ai(e) {
|
|
3206
3206
|
return typeof e == "function";
|
|
3207
3207
|
}
|
|
3208
|
-
function qe(e, t,
|
|
3208
|
+
function qe(e, t, r, n, i, o, a) {
|
|
3209
3209
|
if (e.length === 1 && Gt(e[0]))
|
|
3210
3210
|
return [
|
|
3211
3211
|
{
|
|
@@ -3222,53 +3222,53 @@ function qe(e, t, n, r, i, o, a) {
|
|
|
3222
3222
|
});
|
|
3223
3223
|
continue;
|
|
3224
3224
|
}
|
|
3225
|
-
if (
|
|
3225
|
+
if (Qn(h)) {
|
|
3226
3226
|
typeof o == "number" && s.push({
|
|
3227
3227
|
type: q.literal,
|
|
3228
|
-
value:
|
|
3228
|
+
value: r.getNumberFormat(t).format(o)
|
|
3229
3229
|
});
|
|
3230
3230
|
continue;
|
|
3231
3231
|
}
|
|
3232
3232
|
var c = h.value;
|
|
3233
3233
|
if (!(i && c in i))
|
|
3234
3234
|
throw new Oi(c, a);
|
|
3235
|
-
var
|
|
3236
|
-
if (
|
|
3237
|
-
(!
|
|
3238
|
-
type: typeof
|
|
3239
|
-
value:
|
|
3235
|
+
var d = i[c];
|
|
3236
|
+
if (qn(h)) {
|
|
3237
|
+
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
|
|
3238
|
+
type: typeof d == "string" ? q.literal : q.object,
|
|
3239
|
+
value: d
|
|
3240
3240
|
});
|
|
3241
3241
|
continue;
|
|
3242
3242
|
}
|
|
3243
|
-
if (
|
|
3244
|
-
var
|
|
3243
|
+
if (fr(h)) {
|
|
3244
|
+
var E = typeof h.style == "string" ? n.date[h.style] : _t(h.style) ? h.style.parsedOptions : void 0;
|
|
3245
3245
|
s.push({
|
|
3246
3246
|
type: q.literal,
|
|
3247
|
-
value:
|
|
3247
|
+
value: r.getDateTimeFormat(t, E).format(d)
|
|
3248
3248
|
});
|
|
3249
3249
|
continue;
|
|
3250
3250
|
}
|
|
3251
|
-
if (
|
|
3252
|
-
var
|
|
3251
|
+
if (pr(h)) {
|
|
3252
|
+
var E = typeof h.style == "string" ? n.time[h.style] : _t(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3253
3253
|
s.push({
|
|
3254
3254
|
type: q.literal,
|
|
3255
|
-
value:
|
|
3255
|
+
value: r.getDateTimeFormat(t, E).format(d)
|
|
3256
3256
|
});
|
|
3257
3257
|
continue;
|
|
3258
3258
|
}
|
|
3259
|
-
if (
|
|
3260
|
-
var
|
|
3261
|
-
|
|
3259
|
+
if (cr(h)) {
|
|
3260
|
+
var E = typeof h.style == "string" ? n.number[h.style] : br(h.style) ? h.style.parsedOptions : void 0;
|
|
3261
|
+
E && E.scale && (d = d * (E.scale || 1)), s.push({
|
|
3262
3262
|
type: q.literal,
|
|
3263
|
-
value:
|
|
3263
|
+
value: r.getNumberFormat(t, E).format(d)
|
|
3264
3264
|
});
|
|
3265
3265
|
continue;
|
|
3266
3266
|
}
|
|
3267
|
-
if (
|
|
3268
|
-
var
|
|
3267
|
+
if (gr(h)) {
|
|
3268
|
+
var m = h.children, g = h.value, v = i[g];
|
|
3269
3269
|
if (!Ai(v))
|
|
3270
3270
|
throw new Ti(g, "function", a);
|
|
3271
|
-
var S = qe(
|
|
3271
|
+
var S = qe(m, t, r, n, i, o), P = v(S.map(function(M) {
|
|
3272
3272
|
return M.value;
|
|
3273
3273
|
}));
|
|
3274
3274
|
Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(M) {
|
|
@@ -3278,50 +3278,50 @@ function qe(e, t, n, r, i, o, a) {
|
|
|
3278
3278
|
};
|
|
3279
3279
|
}));
|
|
3280
3280
|
}
|
|
3281
|
-
if (
|
|
3282
|
-
var I = h.options[
|
|
3281
|
+
if (dr(h)) {
|
|
3282
|
+
var I = h.options[d] || h.options.other;
|
|
3283
3283
|
if (!I)
|
|
3284
|
-
throw new Wt(h.value,
|
|
3285
|
-
s.push.apply(s, qe(I.value, t,
|
|
3284
|
+
throw new Wt(h.value, d, Object.keys(h.options), a);
|
|
3285
|
+
s.push.apply(s, qe(I.value, t, r, n, i));
|
|
3286
3286
|
continue;
|
|
3287
3287
|
}
|
|
3288
|
-
if (
|
|
3289
|
-
var I = h.options["=".concat(
|
|
3288
|
+
if (mr(h)) {
|
|
3289
|
+
var I = h.options["=".concat(d)];
|
|
3290
3290
|
if (!I) {
|
|
3291
3291
|
if (!Intl.PluralRules)
|
|
3292
|
-
throw new
|
|
3292
|
+
throw new nt(`Intl.PluralRules is not available in this environment.
|
|
3293
3293
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3294
3294
|
`, Le.MISSING_INTL_API, a);
|
|
3295
|
-
var D =
|
|
3295
|
+
var D = r.getPluralRules(t, { type: h.pluralType }).select(d - (h.offset || 0));
|
|
3296
3296
|
I = h.options[D] || h.options.other;
|
|
3297
3297
|
}
|
|
3298
3298
|
if (!I)
|
|
3299
|
-
throw new Wt(h.value,
|
|
3300
|
-
s.push.apply(s, qe(I.value, t,
|
|
3299
|
+
throw new Wt(h.value, d, Object.keys(h.options), a);
|
|
3300
|
+
s.push.apply(s, qe(I.value, t, r, n, i, d - (h.offset || 0)));
|
|
3301
3301
|
continue;
|
|
3302
3302
|
}
|
|
3303
3303
|
}
|
|
3304
3304
|
return Hi(s);
|
|
3305
3305
|
}
|
|
3306
3306
|
function Ci(e, t) {
|
|
3307
|
-
return t ? le(le(le({}, e || {}), t || {}), Object.keys(e).reduce(function(
|
|
3308
|
-
return n
|
|
3307
|
+
return t ? le(le(le({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3308
|
+
return r[n] = le(le({}, e[n]), t[n] || {}), r;
|
|
3309
3309
|
}, {})) : e;
|
|
3310
3310
|
}
|
|
3311
3311
|
function Bi(e, t) {
|
|
3312
|
-
return t ? Object.keys(e).reduce(function(
|
|
3313
|
-
return n
|
|
3312
|
+
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3313
|
+
return r[n] = Ci(e[n], t[n]), r;
|
|
3314
3314
|
}, le({}, e)) : e;
|
|
3315
3315
|
}
|
|
3316
|
-
function
|
|
3316
|
+
function mt(e) {
|
|
3317
3317
|
return {
|
|
3318
3318
|
create: function() {
|
|
3319
3319
|
return {
|
|
3320
3320
|
get: function(t) {
|
|
3321
3321
|
return e[t];
|
|
3322
3322
|
},
|
|
3323
|
-
set: function(t,
|
|
3324
|
-
e[t] =
|
|
3323
|
+
set: function(t, r) {
|
|
3324
|
+
e[t] = r;
|
|
3325
3325
|
}
|
|
3326
3326
|
};
|
|
3327
3327
|
}
|
|
@@ -3334,27 +3334,27 @@ function Pi(e) {
|
|
|
3334
3334
|
pluralRules: {}
|
|
3335
3335
|
}), {
|
|
3336
3336
|
getNumberFormat: ft(function() {
|
|
3337
|
-
for (var t,
|
|
3338
|
-
n
|
|
3339
|
-
return new ((t = Intl.NumberFormat).bind.apply(t, ct([void 0],
|
|
3337
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3338
|
+
r[n] = arguments[n];
|
|
3339
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ct([void 0], r, !1)))();
|
|
3340
3340
|
}, {
|
|
3341
|
-
cache:
|
|
3341
|
+
cache: mt(e.number),
|
|
3342
3342
|
strategy: pt.variadic
|
|
3343
3343
|
}),
|
|
3344
3344
|
getDateTimeFormat: ft(function() {
|
|
3345
|
-
for (var t,
|
|
3346
|
-
n
|
|
3347
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t, ct([void 0],
|
|
3345
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3346
|
+
r[n] = arguments[n];
|
|
3347
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ct([void 0], r, !1)))();
|
|
3348
3348
|
}, {
|
|
3349
|
-
cache:
|
|
3349
|
+
cache: mt(e.dateTime),
|
|
3350
3350
|
strategy: pt.variadic
|
|
3351
3351
|
}),
|
|
3352
3352
|
getPluralRules: ft(function() {
|
|
3353
|
-
for (var t,
|
|
3354
|
-
n
|
|
3355
|
-
return new ((t = Intl.PluralRules).bind.apply(t, ct([void 0],
|
|
3353
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3354
|
+
r[n] = arguments[n];
|
|
3355
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ct([void 0], r, !1)))();
|
|
3356
3356
|
}, {
|
|
3357
|
-
cache:
|
|
3357
|
+
cache: mt(e.pluralRules),
|
|
3358
3358
|
strategy: pt.variadic
|
|
3359
3359
|
})
|
|
3360
3360
|
};
|
|
@@ -3362,8 +3362,8 @@ function Pi(e) {
|
|
|
3362
3362
|
var Mi = (
|
|
3363
3363
|
/** @class */
|
|
3364
3364
|
function() {
|
|
3365
|
-
function e(t,
|
|
3366
|
-
|
|
3365
|
+
function e(t, r, n, i) {
|
|
3366
|
+
r === void 0 && (r = e.defaultLocale);
|
|
3367
3367
|
var o = this;
|
|
3368
3368
|
if (this.formatterCache = {
|
|
3369
3369
|
number: {},
|
|
@@ -3373,8 +3373,8 @@ var Mi = (
|
|
|
3373
3373
|
var l = o.formatToParts(u);
|
|
3374
3374
|
if (l.length === 1)
|
|
3375
3375
|
return l[0].value;
|
|
3376
|
-
var h = l.reduce(function(c,
|
|
3377
|
-
return !c.length ||
|
|
3376
|
+
var h = l.reduce(function(c, d) {
|
|
3377
|
+
return !c.length || d.type !== q.literal || typeof c[c.length - 1] != "string" ? c.push(d.value) : c[c.length - 1] += d.value, c;
|
|
3378
3378
|
}, []);
|
|
3379
3379
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3380
3380
|
}, this.formatToParts = function(u) {
|
|
@@ -3386,18 +3386,18 @@ var Mi = (
|
|
|
3386
3386
|
};
|
|
3387
3387
|
}, this.getAst = function() {
|
|
3388
3388
|
return o.ast;
|
|
3389
|
-
}, this.locales =
|
|
3389
|
+
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3390
3390
|
if (this.message = t, !e.__parse)
|
|
3391
3391
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3392
3392
|
var a = i || {};
|
|
3393
3393
|
a.formatters;
|
|
3394
|
-
var s =
|
|
3394
|
+
var s = Fn(a, ["formatters"]);
|
|
3395
3395
|
this.ast = e.__parse(t, le(le({}, s), { locale: this.resolvedLocale }));
|
|
3396
3396
|
} else
|
|
3397
3397
|
this.ast = t;
|
|
3398
3398
|
if (!Array.isArray(this.ast))
|
|
3399
3399
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3400
|
-
this.formats = Bi(e.formats,
|
|
3400
|
+
this.formats = Bi(e.formats, n), this.formatters = i && i.formatters || Pi(this.formatterCache);
|
|
3401
3401
|
}
|
|
3402
3402
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3403
3403
|
get: function() {
|
|
@@ -3407,8 +3407,8 @@ var Mi = (
|
|
|
3407
3407
|
configurable: !0
|
|
3408
3408
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3409
3409
|
if (typeof Intl.Locale != "undefined") {
|
|
3410
|
-
var
|
|
3411
|
-
return
|
|
3410
|
+
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3411
|
+
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3412
3412
|
}
|
|
3413
3413
|
}, e.__parse = Si, e.formats = {
|
|
3414
3414
|
number: {
|
|
@@ -3476,30 +3476,30 @@ function Li(e, t) {
|
|
|
3476
3476
|
return;
|
|
3477
3477
|
if (t in e)
|
|
3478
3478
|
return e[t];
|
|
3479
|
-
const
|
|
3480
|
-
let
|
|
3481
|
-
for (let i = 0; i <
|
|
3482
|
-
if (typeof
|
|
3479
|
+
const r = t.split(".");
|
|
3480
|
+
let n = e;
|
|
3481
|
+
for (let i = 0; i < r.length; i++)
|
|
3482
|
+
if (typeof n == "object") {
|
|
3483
3483
|
if (i > 0) {
|
|
3484
|
-
const o =
|
|
3485
|
-
if (o in
|
|
3486
|
-
|
|
3484
|
+
const o = r.slice(i, r.length).join(".");
|
|
3485
|
+
if (o in n) {
|
|
3486
|
+
n = n[o];
|
|
3487
3487
|
break;
|
|
3488
3488
|
}
|
|
3489
3489
|
}
|
|
3490
|
-
|
|
3490
|
+
n = n[r[i]];
|
|
3491
3491
|
} else
|
|
3492
|
-
|
|
3493
|
-
return
|
|
3492
|
+
n = void 0;
|
|
3493
|
+
return n;
|
|
3494
3494
|
}
|
|
3495
|
-
const
|
|
3495
|
+
const de = {}, Ii = (e, t, r) => r && (t in de || (de[t] = {}), e in de[t] || (de[t][e] = r), r), Tr = (e, t) => {
|
|
3496
3496
|
if (t == null)
|
|
3497
3497
|
return;
|
|
3498
|
-
if (t in
|
|
3499
|
-
return
|
|
3500
|
-
const
|
|
3501
|
-
for (let
|
|
3502
|
-
const i = n
|
|
3498
|
+
if (t in de && e in de[t])
|
|
3499
|
+
return de[t][e];
|
|
3500
|
+
const r = it(t);
|
|
3501
|
+
for (let n = 0; n < r.length; n++) {
|
|
3502
|
+
const i = r[n], o = Ri(i, e);
|
|
3503
3503
|
if (o)
|
|
3504
3504
|
return Ii(e, t, o);
|
|
3505
3505
|
}
|
|
@@ -3509,27 +3509,27 @@ const Ve = tt({});
|
|
|
3509
3509
|
function Ni(e) {
|
|
3510
3510
|
return Ct[e] || null;
|
|
3511
3511
|
}
|
|
3512
|
-
function
|
|
3512
|
+
function Or(e) {
|
|
3513
3513
|
return e in Ct;
|
|
3514
3514
|
}
|
|
3515
3515
|
function Ri(e, t) {
|
|
3516
|
-
if (!
|
|
3516
|
+
if (!Or(e))
|
|
3517
3517
|
return null;
|
|
3518
|
-
const
|
|
3519
|
-
return Li(
|
|
3518
|
+
const r = Ni(e);
|
|
3519
|
+
return Li(r, t);
|
|
3520
3520
|
}
|
|
3521
3521
|
function ki(e) {
|
|
3522
3522
|
if (e == null)
|
|
3523
3523
|
return;
|
|
3524
3524
|
const t = it(e);
|
|
3525
|
-
for (let
|
|
3526
|
-
const
|
|
3527
|
-
if (
|
|
3528
|
-
return
|
|
3525
|
+
for (let r = 0; r < t.length; r++) {
|
|
3526
|
+
const n = t[r];
|
|
3527
|
+
if (Or(n))
|
|
3528
|
+
return n;
|
|
3529
3529
|
}
|
|
3530
3530
|
}
|
|
3531
|
-
function
|
|
3532
|
-
delete
|
|
3531
|
+
function Hr(e, ...t) {
|
|
3532
|
+
delete de[e], Ve.update((r) => (r[e] = Gn.all([r[e] || {}, ...t]), r));
|
|
3533
3533
|
}
|
|
3534
3534
|
Ne(
|
|
3535
3535
|
[Ve],
|
|
@@ -3540,40 +3540,40 @@ const Qe = {};
|
|
|
3540
3540
|
function Di(e, t) {
|
|
3541
3541
|
Qe[e].delete(t), Qe[e].size === 0 && delete Qe[e];
|
|
3542
3542
|
}
|
|
3543
|
-
function
|
|
3543
|
+
function Ar(e) {
|
|
3544
3544
|
return Qe[e];
|
|
3545
3545
|
}
|
|
3546
3546
|
function Ui(e) {
|
|
3547
3547
|
return it(e).map((t) => {
|
|
3548
|
-
const
|
|
3549
|
-
return [t,
|
|
3548
|
+
const r = Ar(t);
|
|
3549
|
+
return [t, r ? [...r] : []];
|
|
3550
3550
|
}).filter(([, t]) => t.length > 0);
|
|
3551
3551
|
}
|
|
3552
3552
|
function Ot(e) {
|
|
3553
3553
|
return e == null ? !1 : it(e).some(
|
|
3554
3554
|
(t) => {
|
|
3555
|
-
var
|
|
3556
|
-
return (
|
|
3555
|
+
var r;
|
|
3556
|
+
return (r = Ar(t)) == null ? void 0 : r.size;
|
|
3557
3557
|
}
|
|
3558
3558
|
);
|
|
3559
3559
|
}
|
|
3560
3560
|
function Gi(e, t) {
|
|
3561
3561
|
return Promise.all(
|
|
3562
|
-
t.map((
|
|
3563
|
-
).then((
|
|
3562
|
+
t.map((n) => (Di(e, n), n().then((i) => i.default || i)))
|
|
3563
|
+
).then((n) => Hr(e, ...n));
|
|
3564
3564
|
}
|
|
3565
3565
|
const De = {};
|
|
3566
|
-
function
|
|
3566
|
+
function Cr(e) {
|
|
3567
3567
|
if (!Ot(e))
|
|
3568
3568
|
return e in De ? De[e] : Promise.resolve();
|
|
3569
3569
|
const t = Ui(e);
|
|
3570
3570
|
return De[e] = Promise.all(
|
|
3571
3571
|
t.map(
|
|
3572
|
-
([
|
|
3572
|
+
([r, n]) => Gi(r, n)
|
|
3573
3573
|
)
|
|
3574
3574
|
).then(() => {
|
|
3575
3575
|
if (Ot(e))
|
|
3576
|
-
return
|
|
3576
|
+
return Cr(e);
|
|
3577
3577
|
delete De[e];
|
|
3578
3578
|
}), De[e];
|
|
3579
3579
|
}
|
|
@@ -3618,22 +3618,22 @@ function Ie() {
|
|
|
3618
3618
|
return Vi;
|
|
3619
3619
|
}
|
|
3620
3620
|
const gt = tt(!1);
|
|
3621
|
-
var $i = Object.defineProperty, zi = Object.defineProperties, Xi = Object.getOwnPropertyDescriptors, Zt = Object.getOwnPropertySymbols, Wi = Object.prototype.hasOwnProperty, Zi = Object.prototype.propertyIsEnumerable, qt = (e, t,
|
|
3622
|
-
for (var
|
|
3623
|
-
Wi.call(t,
|
|
3621
|
+
var $i = Object.defineProperty, zi = Object.defineProperties, Xi = Object.getOwnPropertyDescriptors, Zt = Object.getOwnPropertySymbols, Wi = Object.prototype.hasOwnProperty, Zi = Object.prototype.propertyIsEnumerable, qt = (e, t, r) => t in e ? $i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qi = (e, t) => {
|
|
3622
|
+
for (var r in t || (t = {}))
|
|
3623
|
+
Wi.call(t, r) && qt(e, r, t[r]);
|
|
3624
3624
|
if (Zt)
|
|
3625
|
-
for (var
|
|
3626
|
-
Zi.call(t,
|
|
3625
|
+
for (var r of Zt(t))
|
|
3626
|
+
Zi.call(t, r) && qt(e, r, t[r]);
|
|
3627
3627
|
return e;
|
|
3628
3628
|
}, Qi = (e, t) => zi(e, Xi(t));
|
|
3629
3629
|
let Ht;
|
|
3630
3630
|
const Ke = tt(null);
|
|
3631
3631
|
function Qt(e) {
|
|
3632
|
-
return e.split("-").map((t,
|
|
3632
|
+
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3633
3633
|
}
|
|
3634
3634
|
function it(e, t = Ie().fallbackLocale) {
|
|
3635
|
-
const
|
|
3636
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
3635
|
+
const r = Qt(e);
|
|
3636
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Qt(t)])] : r;
|
|
3637
3637
|
}
|
|
3638
3638
|
function we() {
|
|
3639
3639
|
return Ht != null ? Ht : void 0;
|
|
@@ -3644,14 +3644,14 @@ Ke.subscribe((e) => {
|
|
|
3644
3644
|
const Ji = (e) => {
|
|
3645
3645
|
if (e && ki(e) && Ot(e)) {
|
|
3646
3646
|
const { loadingDelay: t } = Ie();
|
|
3647
|
-
let
|
|
3648
|
-
return typeof window != "undefined" && we() != null && t ?
|
|
3647
|
+
let r;
|
|
3648
|
+
return typeof window != "undefined" && we() != null && t ? r = window.setTimeout(
|
|
3649
3649
|
() => gt.set(!0),
|
|
3650
3650
|
t
|
|
3651
|
-
) : gt.set(!0),
|
|
3651
|
+
) : gt.set(!0), Cr(e).then(() => {
|
|
3652
3652
|
Ke.set(e);
|
|
3653
3653
|
}).finally(() => {
|
|
3654
|
-
clearTimeout(
|
|
3654
|
+
clearTimeout(r), gt.set(!1);
|
|
3655
3655
|
});
|
|
3656
3656
|
}
|
|
3657
3657
|
return Ke.set(e);
|
|
@@ -3659,83 +3659,83 @@ const Ji = (e) => {
|
|
|
3659
3659
|
set: Ji
|
|
3660
3660
|
}), ot = (e) => {
|
|
3661
3661
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3662
|
-
return (
|
|
3663
|
-
const i = JSON.stringify(
|
|
3664
|
-
return i in t ? t[i] : t[i] = e(
|
|
3662
|
+
return (n) => {
|
|
3663
|
+
const i = JSON.stringify(n);
|
|
3664
|
+
return i in t ? t[i] : t[i] = e(n);
|
|
3665
3665
|
};
|
|
3666
3666
|
};
|
|
3667
|
-
var Yi = Object.defineProperty, et = Object.getOwnPropertySymbols,
|
|
3668
|
-
for (var
|
|
3669
|
-
|
|
3667
|
+
var Yi = Object.defineProperty, et = Object.getOwnPropertySymbols, Br = Object.prototype.hasOwnProperty, Pr = Object.prototype.propertyIsEnumerable, Jt = (e, t, r) => t in e ? Yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bt = (e, t) => {
|
|
3668
|
+
for (var r in t || (t = {}))
|
|
3669
|
+
Br.call(t, r) && Jt(e, r, t[r]);
|
|
3670
3670
|
if (et)
|
|
3671
|
-
for (var
|
|
3672
|
-
|
|
3671
|
+
for (var r of et(t))
|
|
3672
|
+
Pr.call(t, r) && Jt(e, r, t[r]);
|
|
3673
3673
|
return e;
|
|
3674
3674
|
}, ke = (e, t) => {
|
|
3675
|
-
var
|
|
3676
|
-
for (var
|
|
3677
|
-
|
|
3675
|
+
var r = {};
|
|
3676
|
+
for (var n in e)
|
|
3677
|
+
Br.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3678
3678
|
if (e != null && et)
|
|
3679
|
-
for (var
|
|
3680
|
-
t.indexOf(
|
|
3681
|
-
return
|
|
3679
|
+
for (var n of et(e))
|
|
3680
|
+
t.indexOf(n) < 0 && Pr.call(e, n) && (r[n] = e[n]);
|
|
3681
|
+
return r;
|
|
3682
3682
|
};
|
|
3683
3683
|
const je = (e, t) => {
|
|
3684
|
-
const { formats:
|
|
3685
|
-
if (e in
|
|
3686
|
-
return
|
|
3684
|
+
const { formats: r } = Ie();
|
|
3685
|
+
if (e in r && t in r[e])
|
|
3686
|
+
return r[e][t];
|
|
3687
3687
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3688
3688
|
}, Ki = ot(
|
|
3689
3689
|
(e) => {
|
|
3690
|
-
var t = e, { locale:
|
|
3691
|
-
if (
|
|
3690
|
+
var t = e, { locale: r, format: n } = t, i = ke(t, ["locale", "format"]);
|
|
3691
|
+
if (r == null)
|
|
3692
3692
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3693
|
-
return
|
|
3693
|
+
return n && (i = je("number", n)), new Intl.NumberFormat(r, i);
|
|
3694
3694
|
}
|
|
3695
3695
|
), eo = ot(
|
|
3696
3696
|
(e) => {
|
|
3697
|
-
var t = e, { locale:
|
|
3698
|
-
if (
|
|
3697
|
+
var t = e, { locale: r, format: n } = t, i = ke(t, ["locale", "format"]);
|
|
3698
|
+
if (r == null)
|
|
3699
3699
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3700
|
-
return
|
|
3700
|
+
return n ? i = je("date", n) : Object.keys(i).length === 0 && (i = je("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3701
3701
|
}
|
|
3702
3702
|
), to = ot(
|
|
3703
3703
|
(e) => {
|
|
3704
|
-
var t = e, { locale:
|
|
3705
|
-
if (
|
|
3704
|
+
var t = e, { locale: r, format: n } = t, i = ke(t, ["locale", "format"]);
|
|
3705
|
+
if (r == null)
|
|
3706
3706
|
throw new Error(
|
|
3707
3707
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3708
3708
|
);
|
|
3709
|
-
return
|
|
3709
|
+
return n ? i = je("time", n) : Object.keys(i).length === 0 && (i = je("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3710
3710
|
}
|
|
3711
|
-
),
|
|
3711
|
+
), ro = (e = {}) => {
|
|
3712
3712
|
var t = e, {
|
|
3713
|
-
locale:
|
|
3714
|
-
} = t,
|
|
3713
|
+
locale: r = we()
|
|
3714
|
+
} = t, n = ke(t, [
|
|
3715
3715
|
"locale"
|
|
3716
3716
|
]);
|
|
3717
|
-
return Ki(Bt({ locale:
|
|
3718
|
-
},
|
|
3717
|
+
return Ki(Bt({ locale: r }, n));
|
|
3718
|
+
}, no = (e = {}) => {
|
|
3719
3719
|
var t = e, {
|
|
3720
|
-
locale:
|
|
3721
|
-
} = t,
|
|
3720
|
+
locale: r = we()
|
|
3721
|
+
} = t, n = ke(t, [
|
|
3722
3722
|
"locale"
|
|
3723
3723
|
]);
|
|
3724
|
-
return eo(Bt({ locale:
|
|
3724
|
+
return eo(Bt({ locale: r }, n));
|
|
3725
3725
|
}, io = (e = {}) => {
|
|
3726
3726
|
var t = e, {
|
|
3727
|
-
locale:
|
|
3728
|
-
} = t,
|
|
3727
|
+
locale: r = we()
|
|
3728
|
+
} = t, n = ke(t, [
|
|
3729
3729
|
"locale"
|
|
3730
3730
|
]);
|
|
3731
|
-
return to(Bt({ locale:
|
|
3731
|
+
return to(Bt({ locale: r }, n));
|
|
3732
3732
|
}, oo = ot(
|
|
3733
3733
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3734
3734
|
(e, t = we()) => new Mi(e, t, Ie().formats, {
|
|
3735
3735
|
ignoreTag: Ie().ignoreTag
|
|
3736
3736
|
})
|
|
3737
3737
|
), so = (e, t = {}) => {
|
|
3738
|
-
var
|
|
3738
|
+
var r, n, i, o;
|
|
3739
3739
|
let a = t;
|
|
3740
3740
|
typeof e == "object" && (a = e, e = a.id);
|
|
3741
3741
|
const {
|
|
@@ -3747,9 +3747,9 @@ const je = (e, t) => {
|
|
|
3747
3747
|
throw new Error(
|
|
3748
3748
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3749
3749
|
);
|
|
3750
|
-
let h =
|
|
3750
|
+
let h = Tr(e, u);
|
|
3751
3751
|
if (!h)
|
|
3752
|
-
h = (o = (i = (
|
|
3752
|
+
h = (o = (i = (n = (r = Ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
3753
3753
|
else if (typeof h != "string")
|
|
3754
3754
|
return console.warn(
|
|
3755
3755
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3759,20 +3759,20 @@ const je = (e, t) => {
|
|
|
3759
3759
|
let c = h;
|
|
3760
3760
|
try {
|
|
3761
3761
|
c = oo(h, u).format(s);
|
|
3762
|
-
} catch (
|
|
3763
|
-
|
|
3762
|
+
} catch (d) {
|
|
3763
|
+
d instanceof Error && console.warn(
|
|
3764
3764
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3765
|
-
|
|
3765
|
+
d.message
|
|
3766
3766
|
);
|
|
3767
3767
|
}
|
|
3768
3768
|
return c;
|
|
3769
|
-
}, ao = (e, t) => io(t).format(e), lo = (e, t) =>
|
|
3769
|
+
}, ao = (e, t) => io(t).format(e), lo = (e, t) => no(t).format(e), uo = (e, t) => ro(t).format(e), ho = (e, t = we()) => Tr(e, t), co = Ne([Re, Ve], () => so);
|
|
3770
3770
|
Ne([Re], () => ao);
|
|
3771
3771
|
Ne([Re], () => lo);
|
|
3772
3772
|
Ne([Re], () => uo);
|
|
3773
3773
|
Ne([Re, Ve], () => ho);
|
|
3774
3774
|
function Yt(e, t) {
|
|
3775
|
-
|
|
3775
|
+
Hr(e, t);
|
|
3776
3776
|
}
|
|
3777
3777
|
function fo(e) {
|
|
3778
3778
|
Re.set(e);
|
|
@@ -3823,35 +3823,58 @@ const Kt = {
|
|
|
3823
3823
|
channelEmail: "E-posta kodu",
|
|
3824
3824
|
sendCode: "Kodu gönder",
|
|
3825
3825
|
waitSeconds: "Tekrar göndermeden önce lütfen bekleyin:"
|
|
3826
|
+
},
|
|
3827
|
+
fr: {
|
|
3828
|
+
otpTitle: "La vérification par code est requise",
|
|
3829
|
+
popupMessage: "Veuillez saisir le code de sécurité reçu par SMS ou par e-mail afin d’effectuer la mise à jour.",
|
|
3830
|
+
popupMessageLastWarning: "Si la prochaine tentative de validation échoue, votre transaction échouera et vous serez redirigé vers le moyen de paiement.",
|
|
3831
|
+
minutes: "minutes",
|
|
3832
|
+
errorHeader: "Erreur",
|
|
3833
|
+
configError: "Impossible de charger les données OTP. Veuillez réessayer plus tard.",
|
|
3834
|
+
otpHeading: "Saisir le code OTP",
|
|
3835
|
+
resendOtp: "Renvoyer le code OTP",
|
|
3836
|
+
submit: "Valider",
|
|
3837
|
+
close: "Fermer",
|
|
3838
|
+
invalidOtp: "Le code que vous avez saisi n’est pas valide. Veuillez réessayer.",
|
|
3839
|
+
accountBlocked: "Trop de tentatives de code OTP. Votre compte a été bloqué pendant une heure.",
|
|
3840
|
+
submissionError: "Une erreur s’est produite. Veuillez réessayer.",
|
|
3841
|
+
otpExpiredMessage: "Le code de validation a expiré. Veuillez en demander un nouveau pour continuer.",
|
|
3842
|
+
timeRemaining: "Le code expire dans :",
|
|
3843
|
+
selectChannelTitle: "Sélectionner la méthode de vérification",
|
|
3844
|
+
selectChannelMessage: "Choisissez comment vous souhaitez recevoir votre code de vérification",
|
|
3845
|
+
channelSMS: "SMS",
|
|
3846
|
+
channelEmail: "E-mail",
|
|
3847
|
+
sendCode: "Envoyer le code",
|
|
3848
|
+
waitSeconds: "Veuillez patienter avant de renvoyer le code :"
|
|
3826
3849
|
}
|
|
3827
3850
|
};
|
|
3828
3851
|
function po(e) {
|
|
3829
|
-
|
|
3852
|
+
Yr(e, "svelte-gpy3mu", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.RadioIndicator{width:20px;height:20px;border-radius:50%;border:2px solid var(--emw--color-typography, #fff);position:relative;flex-shrink:0;margin-right:8px;transition:all 0.2s ease;opacity:0.7}.RadioIndicator.checked::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:10px;height:10px;border-radius:50%;opacity:1;background:var(--emw--color-primary, #fff)}.RadioIndicator.checked{border:2px solid var(--emw--color-primary, #fff)}.ModalCloseIcon{padding:0px;position:absolute;right:0;top:0;margin:15px 20px;z-index:20;transition:all 0.3s ease}.ModalCloseIcon svg{width:11px;height:11px;fill:var(--emw--color-primary, red);cursor:pointer}.ModalCloseIcon:hover{transform:rotate(90deg)}.OtpContent{width:100%;display:flex;flex-direction:column;gap:var(--emw--spacing-large, 20px)}.OtpFieldWrapper{display:flex;flex-direction:column;gap:10px}.OtpFieldWrapper h2{margin:0}.OtpButton{text-transform:uppercase;font-weight:var(--emw--font-weight-medium, 500);color:var(--emw--color-typography-button, #000000);text-align:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear}.OtpButton:active{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-active, #fecd1c)}.OtpButton[disabled],.OtpButton.disabled{filter:saturate(50%);opacity:0.5;cursor:not-allowed;pointer-events:none}.OtpButton:hover:not([disabled]):not(.disabled){box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-hover, #dbac03)}@container (max-width: 500px){.OtpDescription{font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-size-big, 20px)}}.OtpDescription{display:flex;color:var(--emw--color-typography, #fff);flex-direction:column;gap:12px;font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-medium, 16px);font-weight:var(--emw--font-weight-medium, 600)}.OtpError{display:flex;flex-direction:column;gap:20px;align-items:center}.OtpError .OtpErrorHeader{display:flex;justify-content:center;gap:5px;align-items:center}.OtpError h2{margin:0;color:var(--emw--color-typography, #fff)}.OtpError p{color:var(--emw--color-typography, #fff);text-align:center;font-size:var(--emw--font-size-small, 12px)}.OtpError svg{width:25px;fill:var(--emw--color-error, #dd3434)}.ChannelSelection{display:flex;flex-direction:row;justify-content:space-between}.ChannelCheckbox{display:flex;align-items:center;padding:var(--emw--spacing-medium, 16px);cursor:pointer;transition:all 0.2s ease}.ChannelCheckbox input[type=radio]{display:none}.ChannelCheckbox .ChannelContent{display:flex;align-items:center;gap:3px;width:100%;color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500)}.ChannelCheckbox .ChannelContent svg{flex-shrink:0;opacity:0.7;width:20px;height:20px}.ChannelCheckbox .ChannelContent span{text-transform:uppercase}.ChannelCheckbox.selected .ChannelContent{color:var(--emw--color-primary, #000000)}.ChannelCheckbox.selected .ChannelContent svg{stroke:var(--emw--color-primary, #000000);opacity:1}.ChannelCheckbox:hover:not(.selected){color:var(--emw--color-active, #fff)}.OtpField{display:flex;justify-content:space-between;margin:10px}.OtpField input{width:45px;font-size:32px;padding:5px;text-align:center;border-radius:5px;margin:6px;font-weight:bold;outline:none;background:var(--emw--color-background);border:0;transition:all 0.1s;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);color:var(--emw--color-typography, #fff)}.OtpField input.space{margin-right:1rem !important}.OtpField input:focus{box-shadow:0 0 1px 1px var(--emw--color-primary, #007bff)}.OtpActionButtons{display:flex;justify-content:space-between;gap:40px}.OtpErrorMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpNoticeMessage{color:var(--emw--color-primary, #f9c408);font-weight:bold}.LastWarningMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpLoaderContainer{width:100%;display:flex;justify-content:center;align-items:center;padding:20px 0}.OtpLoader{width:48px;height:48px;border:5px solid var(--emw--color-secondary, #b3d8ff);border-bottom-color:var(--emw--color-primary, #007bff);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.OtpTimer{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-small, 12px);opacity:0.8}@container (max-width: 500px){.OtpContent{padding:var(--emw--spacing-small, 10px)}.OtpField input{width:40px;font-size:28px;margin:4px}}');
|
|
3830
3853
|
}
|
|
3831
|
-
function
|
|
3832
|
-
const
|
|
3833
|
-
return
|
|
3854
|
+
function er(e, t, r) {
|
|
3855
|
+
const n = e.slice();
|
|
3856
|
+
return n[69] = t[r], n[70] = t, n[71] = r, n;
|
|
3834
3857
|
}
|
|
3835
3858
|
function mo(e) {
|
|
3836
|
-
let t,
|
|
3859
|
+
let t, r, n, i, o, a, s, u, l, h, c, d, E, m, g, v, S, P = (
|
|
3837
3860
|
/*$_*/
|
|
3838
3861
|
e[19]("channelSMS") + ""
|
|
3839
|
-
), I, D, M, N, te, Q, ue,
|
|
3862
|
+
), I, D, M, N, te, Q, ue, me, he, B, U, Z, ge, be, ye = (
|
|
3840
3863
|
/*$_*/
|
|
3841
3864
|
e[19]("channelEmail") + ""
|
|
3842
|
-
), J,
|
|
3843
|
-
function
|
|
3865
|
+
), J, re, X, ce, ne, Ee, Se;
|
|
3866
|
+
function _e(b, A) {
|
|
3844
3867
|
return (
|
|
3845
3868
|
/*showResendOtp*/
|
|
3846
|
-
b[9] ?
|
|
3869
|
+
b[9] ? Eo : (
|
|
3847
3870
|
/*showOtpInput*/
|
|
3848
3871
|
b[12] ? bo : yo
|
|
3849
3872
|
)
|
|
3850
3873
|
);
|
|
3851
3874
|
}
|
|
3852
|
-
let Te =
|
|
3875
|
+
let Te = _e(e), Y = Te(e), V = (
|
|
3853
3876
|
/*selectedChannel*/
|
|
3854
|
-
e[0] &&
|
|
3877
|
+
e[0] && rr(e)
|
|
3855
3878
|
);
|
|
3856
3879
|
function $e(b, A) {
|
|
3857
3880
|
if (
|
|
@@ -3884,7 +3907,7 @@ function mo(e) {
|
|
|
3884
3907
|
let ie = ze(e), W = ie && ie(e);
|
|
3885
3908
|
return {
|
|
3886
3909
|
c() {
|
|
3887
|
-
t = O("div"), Y.c(),
|
|
3910
|
+
t = O("div"), Y.c(), r = F(), n = O("div"), i = O("label"), o = O("div"), a = F(), s = O("input"), l = F(), h = O("div"), c = oe("svg"), d = oe("path"), E = oe("circle"), m = oe("circle"), g = oe("circle"), v = F(), S = O("span"), I = k(P), D = F(), M = O("label"), N = O("div"), te = F(), Q = O("input"), me = F(), he = O("div"), B = oe("svg"), U = oe("rect"), Z = oe("path"), ge = F(), be = O("span"), J = k(ye), re = F(), V && V.c(), X = F(), $ && $.c(), ce = F(), ne = O("div"), W && W.c(), p(t, "class", "OtpDescription"), p(o, "class", "RadioIndicator"), se(
|
|
3888
3911
|
o,
|
|
3889
3912
|
"checked",
|
|
3890
3913
|
/*selectedChannel*/
|
|
@@ -3893,7 +3916,7 @@ function mo(e) {
|
|
|
3893
3916
|
), p(s, "type", "radio"), p(s, "name", "channel"), s.value = /*channels*/
|
|
3894
3917
|
e[20].SMS, s.checked = u = /*selectedChannel*/
|
|
3895
3918
|
e[0] === /*channels*/
|
|
3896
|
-
e[20].SMS, p(
|
|
3919
|
+
e[20].SMS, p(d, "d", "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"), p(E, "cx", "9"), p(E, "cy", "11"), p(E, "r", "0.5"), p(E, "fill", "currentColor"), p(m, "cx", "12"), p(m, "cy", "11"), p(m, "r", "0.5"), p(m, "fill", "currentColor"), p(g, "cx", "15"), p(g, "cy", "11"), p(g, "r", "0.5"), p(g, "fill", "currentColor"), p(c, "xmlns", "http://www.w3.org/2000/svg"), p(c, "width", "24"), p(c, "height", "24"), p(c, "viewBox", "0 0 24 24"), p(c, "fill", "none"), p(c, "stroke", "currentColor"), p(c, "stroke-width", "2"), p(c, "stroke-linecap", "round"), p(c, "stroke-linejoin", "round"), p(h, "class", "ChannelContent"), p(i, "class", "ChannelCheckbox"), se(
|
|
3897
3920
|
i,
|
|
3898
3921
|
"selected",
|
|
3899
3922
|
/*selectedChannel*/
|
|
@@ -3914,10 +3937,10 @@ function mo(e) {
|
|
|
3914
3937
|
/*selectedChannel*/
|
|
3915
3938
|
e[0] === /*channels*/
|
|
3916
3939
|
e[20].EMAIL
|
|
3917
|
-
), p(
|
|
3940
|
+
), p(n, "class", "ChannelSelection"), p(ne, "class", "OtpActionButtons");
|
|
3918
3941
|
},
|
|
3919
3942
|
m(b, A) {
|
|
3920
|
-
C(b, t, A), Y.m(t, null), C(b,
|
|
3943
|
+
C(b, t, A), Y.m(t, null), C(b, r, A), C(b, n, A), y(n, i), y(i, o), y(i, a), y(i, s), y(i, l), y(i, h), y(h, c), y(c, d), y(c, E), y(c, m), y(c, g), y(h, v), y(h, S), y(S, I), y(n, D), y(n, M), y(M, N), y(M, te), y(M, Q), y(M, me), y(M, he), y(he, B), y(B, U), y(B, Z), y(he, ge), y(he, be), y(be, J), C(b, re, A), V && V.m(b, A), C(b, X, A), $ && $.m(b, A), C(b, ce, A), C(b, ne, A), W && W.m(ne, null), Ee || (Se = [
|
|
3921
3944
|
pe(
|
|
3922
3945
|
s,
|
|
3923
3946
|
"change",
|
|
@@ -3930,10 +3953,10 @@ function mo(e) {
|
|
|
3930
3953
|
/*change_handler_1*/
|
|
3931
3954
|
e[40]
|
|
3932
3955
|
)
|
|
3933
|
-
],
|
|
3956
|
+
], Ee = !0);
|
|
3934
3957
|
},
|
|
3935
3958
|
p(b, A) {
|
|
3936
|
-
Te === (Te =
|
|
3959
|
+
Te === (Te = _e(b)) && Y ? Y.p(b, A) : (Y.d(1), Y = Te(b), Y && (Y.c(), Y.m(t, null))), A[0] & /*selectedChannel, channels*/
|
|
3937
3960
|
1048577 && se(
|
|
3938
3961
|
o,
|
|
3939
3962
|
"checked",
|
|
@@ -3972,31 +3995,31 @@ function mo(e) {
|
|
|
3972
3995
|
b[0] === /*channels*/
|
|
3973
3996
|
b[20].EMAIL
|
|
3974
3997
|
), /*selectedChannel*/
|
|
3975
|
-
b[0] ? V ? V.p(b, A) : (V =
|
|
3998
|
+
b[0] ? V ? V.p(b, A) : (V = rr(b), V.c(), V.m(X.parentNode, X)) : V && (V.d(1), V = null), fe === (fe = $e(b)) && $ ? $.p(b, A) : ($ && $.d(1), $ = fe && fe(b), $ && ($.c(), $.m(ce.parentNode, ce))), ie === (ie = ze(b)) && W ? W.p(b, A) : (W && W.d(1), W = ie && ie(b), W && (W.c(), W.m(ne, null)));
|
|
3976
3999
|
},
|
|
3977
4000
|
d(b) {
|
|
3978
|
-
b && (H(t), H(
|
|
4001
|
+
b && (H(t), H(r), H(n), H(re), H(X), H(ce), H(ne)), Y.d(), V && V.d(b), $ && $.d(b), W && W.d(), Ee = !1, xe(Se);
|
|
3979
4002
|
}
|
|
3980
4003
|
};
|
|
3981
4004
|
}
|
|
3982
4005
|
function go(e) {
|
|
3983
|
-
let t,
|
|
4006
|
+
let t, r, n, i, o, a, s = (
|
|
3984
4007
|
/*$_*/
|
|
3985
4008
|
e[19]("errorHeader") + ""
|
|
3986
|
-
), u, l, h, c,
|
|
4009
|
+
), u, l, h, c, d, E, m = (
|
|
3987
4010
|
/*$_*/
|
|
3988
4011
|
e[19]("close") + ""
|
|
3989
4012
|
), g, v, S;
|
|
3990
4013
|
return {
|
|
3991
4014
|
c() {
|
|
3992
|
-
t = O("div"),
|
|
4015
|
+
t = O("div"), r = O("div"), n = oe("svg"), i = oe("path"), o = F(), a = O("h2"), u = k(s), l = F(), h = O("p"), c = k(
|
|
3993
4016
|
/*errorMessage*/
|
|
3994
4017
|
e[8]
|
|
3995
|
-
),
|
|
4018
|
+
), d = F(), E = O("button"), g = k(m), p(i, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), p(n, "xmlns", "http://www.w3.org/2000/svg"), p(n, "viewBox", "0 0 512 512"), p(r, "class", "OtpErrorHeader"), p(E, "class", "OtpButton error"), p(t, "class", "OtpError");
|
|
3996
4019
|
},
|
|
3997
4020
|
m(P, I) {
|
|
3998
|
-
C(P, t, I), y(t,
|
|
3999
|
-
|
|
4021
|
+
C(P, t, I), y(t, r), y(r, n), y(n, i), y(r, o), y(r, a), y(a, u), y(t, l), y(t, h), y(h, c), y(t, d), y(t, E), y(E, g), v || (S = pe(
|
|
4022
|
+
E,
|
|
4000
4023
|
"click",
|
|
4001
4024
|
/*manualClosePopup*/
|
|
4002
4025
|
e[28]
|
|
@@ -4011,8 +4034,8 @@ function go(e) {
|
|
|
4011
4034
|
/*errorMessage*/
|
|
4012
4035
|
P[8]
|
|
4013
4036
|
), I[0] & /*$_*/
|
|
4014
|
-
524288 &&
|
|
4015
|
-
P[19]("close") + "") && j(g,
|
|
4037
|
+
524288 && m !== (m = /*$_*/
|
|
4038
|
+
P[19]("close") + "") && j(g, m);
|
|
4016
4039
|
},
|
|
4017
4040
|
d(P) {
|
|
4018
4041
|
P && H(t), v = !1, S();
|
|
@@ -4020,99 +4043,99 @@ function go(e) {
|
|
|
4020
4043
|
};
|
|
4021
4044
|
}
|
|
4022
4045
|
function bo(e) {
|
|
4023
|
-
let t,
|
|
4046
|
+
let t, r, n, i;
|
|
4024
4047
|
function o(l, h) {
|
|
4025
4048
|
return (
|
|
4026
4049
|
/*isLastWarning*/
|
|
4027
|
-
l[10] ? vo :
|
|
4050
|
+
l[10] ? vo : _o
|
|
4028
4051
|
);
|
|
4029
4052
|
}
|
|
4030
4053
|
let a = o(e), s = a(e), u = (
|
|
4031
4054
|
/*hasErrors*/
|
|
4032
|
-
e[6] &&
|
|
4055
|
+
e[6] && tr(e)
|
|
4033
4056
|
);
|
|
4034
4057
|
return {
|
|
4035
4058
|
c() {
|
|
4036
|
-
t = O("p"), s.c(),
|
|
4059
|
+
t = O("p"), s.c(), n = F(), u && u.c(), i = rn(), p(t, "class", r = /*isLastWarning*/
|
|
4037
4060
|
e[10] ? "LastWarningMessage" : "");
|
|
4038
4061
|
},
|
|
4039
4062
|
m(l, h) {
|
|
4040
|
-
C(l, t, h), s.m(t, null), C(l,
|
|
4063
|
+
C(l, t, h), s.m(t, null), C(l, n, h), u && u.m(l, h), C(l, i, h);
|
|
4041
4064
|
},
|
|
4042
4065
|
p(l, h) {
|
|
4043
4066
|
a === (a = o(l)) && s ? s.p(l, h) : (s.d(1), s = a(l), s && (s.c(), s.m(t, null))), h[0] & /*isLastWarning*/
|
|
4044
|
-
1024 &&
|
|
4045
|
-
l[10] ? "LastWarningMessage" : "") && p(t, "class",
|
|
4046
|
-
l[6] ? u ? u.p(l, h) : (u =
|
|
4067
|
+
1024 && r !== (r = /*isLastWarning*/
|
|
4068
|
+
l[10] ? "LastWarningMessage" : "") && p(t, "class", r), /*hasErrors*/
|
|
4069
|
+
l[6] ? u ? u.p(l, h) : (u = tr(l), u.c(), u.m(i.parentNode, i)) : u && (u.d(1), u = null);
|
|
4047
4070
|
},
|
|
4048
4071
|
d(l) {
|
|
4049
|
-
l && (H(t), H(
|
|
4072
|
+
l && (H(t), H(n), H(i)), s.d(), u && u.d(l);
|
|
4050
4073
|
}
|
|
4051
4074
|
};
|
|
4052
4075
|
}
|
|
4053
4076
|
function yo(e) {
|
|
4054
|
-
let t,
|
|
4077
|
+
let t, r = (
|
|
4055
4078
|
/*$_*/
|
|
4056
4079
|
(e[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + ""
|
|
4057
|
-
),
|
|
4080
|
+
), n;
|
|
4058
4081
|
return {
|
|
4059
4082
|
c() {
|
|
4060
|
-
t = O("p"),
|
|
4083
|
+
t = O("p"), n = k(r);
|
|
4061
4084
|
},
|
|
4062
4085
|
m(i, o) {
|
|
4063
|
-
C(i, t, o), y(t,
|
|
4086
|
+
C(i, t, o), y(t, n);
|
|
4064
4087
|
},
|
|
4065
4088
|
p(i, o) {
|
|
4066
4089
|
o[0] & /*$_*/
|
|
4067
|
-
524288 &&
|
|
4068
|
-
(i[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && j(
|
|
4090
|
+
524288 && r !== (r = /*$_*/
|
|
4091
|
+
(i[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && j(n, r);
|
|
4069
4092
|
},
|
|
4070
4093
|
d(i) {
|
|
4071
4094
|
i && H(t);
|
|
4072
4095
|
}
|
|
4073
4096
|
};
|
|
4074
4097
|
}
|
|
4075
|
-
function
|
|
4076
|
-
let t,
|
|
4098
|
+
function Eo(e) {
|
|
4099
|
+
let t, r = (
|
|
4077
4100
|
/*$_*/
|
|
4078
4101
|
e[19]("otpExpiredMessage") + ""
|
|
4079
|
-
),
|
|
4102
|
+
), n;
|
|
4080
4103
|
return {
|
|
4081
4104
|
c() {
|
|
4082
|
-
t = O("p"),
|
|
4105
|
+
t = O("p"), n = k(r), p(t, "class", "OtpNoticeMessage"), p(t, "role", "alert");
|
|
4083
4106
|
},
|
|
4084
4107
|
m(i, o) {
|
|
4085
|
-
C(i, t, o), y(t,
|
|
4108
|
+
C(i, t, o), y(t, n);
|
|
4086
4109
|
},
|
|
4087
4110
|
p(i, o) {
|
|
4088
4111
|
o[0] & /*$_*/
|
|
4089
|
-
524288 &&
|
|
4090
|
-
i[19]("otpExpiredMessage") + "") && j(
|
|
4112
|
+
524288 && r !== (r = /*$_*/
|
|
4113
|
+
i[19]("otpExpiredMessage") + "") && j(n, r);
|
|
4091
4114
|
},
|
|
4092
4115
|
d(i) {
|
|
4093
4116
|
i && H(t);
|
|
4094
4117
|
}
|
|
4095
4118
|
};
|
|
4096
4119
|
}
|
|
4097
|
-
function
|
|
4120
|
+
function _o(e) {
|
|
4098
4121
|
let t = (
|
|
4099
4122
|
/*$_*/
|
|
4100
4123
|
e[19]("popupMessage") + ""
|
|
4101
|
-
),
|
|
4124
|
+
), r;
|
|
4102
4125
|
return {
|
|
4103
4126
|
c() {
|
|
4104
|
-
|
|
4127
|
+
r = k(t);
|
|
4105
4128
|
},
|
|
4106
|
-
m(
|
|
4107
|
-
C(
|
|
4129
|
+
m(n, i) {
|
|
4130
|
+
C(n, r, i);
|
|
4108
4131
|
},
|
|
4109
|
-
p(
|
|
4132
|
+
p(n, i) {
|
|
4110
4133
|
i[0] & /*$_*/
|
|
4111
4134
|
524288 && t !== (t = /*$_*/
|
|
4112
|
-
|
|
4135
|
+
n[19]("popupMessage") + "") && j(r, t);
|
|
4113
4136
|
},
|
|
4114
|
-
d(
|
|
4115
|
-
|
|
4137
|
+
d(n) {
|
|
4138
|
+
n && H(r);
|
|
4116
4139
|
}
|
|
4117
4140
|
};
|
|
4118
4141
|
}
|
|
@@ -4120,51 +4143,51 @@ function vo(e) {
|
|
|
4120
4143
|
let t = (
|
|
4121
4144
|
/*$_*/
|
|
4122
4145
|
e[19]("popupMessageLastWarning") + ""
|
|
4123
|
-
),
|
|
4146
|
+
), r;
|
|
4124
4147
|
return {
|
|
4125
4148
|
c() {
|
|
4126
|
-
|
|
4149
|
+
r = k(t);
|
|
4127
4150
|
},
|
|
4128
|
-
m(
|
|
4129
|
-
C(
|
|
4151
|
+
m(n, i) {
|
|
4152
|
+
C(n, r, i);
|
|
4130
4153
|
},
|
|
4131
|
-
p(
|
|
4154
|
+
p(n, i) {
|
|
4132
4155
|
i[0] & /*$_*/
|
|
4133
4156
|
524288 && t !== (t = /*$_*/
|
|
4134
|
-
|
|
4157
|
+
n[19]("popupMessageLastWarning") + "") && j(r, t);
|
|
4135
4158
|
},
|
|
4136
|
-
d(
|
|
4137
|
-
|
|
4159
|
+
d(n) {
|
|
4160
|
+
n && H(r);
|
|
4138
4161
|
}
|
|
4139
4162
|
};
|
|
4140
4163
|
}
|
|
4141
|
-
function
|
|
4142
|
-
let t,
|
|
4164
|
+
function tr(e) {
|
|
4165
|
+
let t, r;
|
|
4143
4166
|
return {
|
|
4144
4167
|
c() {
|
|
4145
|
-
t = O("p"),
|
|
4168
|
+
t = O("p"), r = k(
|
|
4146
4169
|
/*errorMessage*/
|
|
4147
4170
|
e[8]
|
|
4148
4171
|
), p(t, "class", "OtpErrorMessage"), p(t, "role", "alert");
|
|
4149
4172
|
},
|
|
4150
|
-
m(
|
|
4151
|
-
C(
|
|
4173
|
+
m(n, i) {
|
|
4174
|
+
C(n, t, i), y(t, r);
|
|
4152
4175
|
},
|
|
4153
|
-
p(
|
|
4176
|
+
p(n, i) {
|
|
4154
4177
|
i[0] & /*errorMessage*/
|
|
4155
4178
|
256 && j(
|
|
4156
|
-
|
|
4179
|
+
r,
|
|
4157
4180
|
/*errorMessage*/
|
|
4158
|
-
|
|
4181
|
+
n[8]
|
|
4159
4182
|
);
|
|
4160
4183
|
},
|
|
4161
|
-
d(
|
|
4162
|
-
|
|
4184
|
+
d(n) {
|
|
4185
|
+
n && H(t);
|
|
4163
4186
|
}
|
|
4164
4187
|
};
|
|
4165
4188
|
}
|
|
4166
|
-
function
|
|
4167
|
-
let t,
|
|
4189
|
+
function rr(e) {
|
|
4190
|
+
let t, r, n, i;
|
|
4168
4191
|
function o(u, l) {
|
|
4169
4192
|
return (
|
|
4170
4193
|
/*currentChannelTimer*/
|
|
@@ -4174,29 +4197,29 @@ function nn(e) {
|
|
|
4174
4197
|
let a = o(e), s = a(e);
|
|
4175
4198
|
return {
|
|
4176
4199
|
c() {
|
|
4177
|
-
t = O("button"), s.c(), p(t, "class", "OtpButton"), t.disabled =
|
|
4200
|
+
t = O("button"), s.c(), p(t, "class", "OtpButton"), t.disabled = r = !/*canSubmitChannel*/
|
|
4178
4201
|
e[18], se(t, "disabled", !/*canSubmitChannel*/
|
|
4179
4202
|
e[18] || /*waitingForConfig*/
|
|
4180
4203
|
e[16]);
|
|
4181
4204
|
},
|
|
4182
4205
|
m(u, l) {
|
|
4183
|
-
C(u, t, l), s.m(t, null),
|
|
4206
|
+
C(u, t, l), s.m(t, null), n || (i = pe(
|
|
4184
4207
|
t,
|
|
4185
4208
|
"click",
|
|
4186
4209
|
/*handleChannelSubmit*/
|
|
4187
4210
|
e[22]
|
|
4188
|
-
),
|
|
4211
|
+
), n = !0);
|
|
4189
4212
|
},
|
|
4190
4213
|
p(u, l) {
|
|
4191
4214
|
a === (a = o(u)) && s ? s.p(u, l) : (s.d(1), s = a(u), s && (s.c(), s.m(t, null))), l[0] & /*canSubmitChannel*/
|
|
4192
|
-
262144 &&
|
|
4193
|
-
u[18]) && (t.disabled =
|
|
4215
|
+
262144 && r !== (r = !/*canSubmitChannel*/
|
|
4216
|
+
u[18]) && (t.disabled = r), l[0] & /*canSubmitChannel, waitingForConfig*/
|
|
4194
4217
|
327680 && se(t, "disabled", !/*canSubmitChannel*/
|
|
4195
4218
|
u[18] || /*waitingForConfig*/
|
|
4196
4219
|
u[16]);
|
|
4197
4220
|
},
|
|
4198
4221
|
d(u) {
|
|
4199
|
-
u && H(t), s.d(),
|
|
4222
|
+
u && H(t), s.d(), n = !1, i();
|
|
4200
4223
|
}
|
|
4201
4224
|
};
|
|
4202
4225
|
}
|
|
@@ -4204,21 +4227,21 @@ function xo(e) {
|
|
|
4204
4227
|
let t = (
|
|
4205
4228
|
/*$_*/
|
|
4206
4229
|
e[19]("sendCode") + ""
|
|
4207
|
-
),
|
|
4230
|
+
), r;
|
|
4208
4231
|
return {
|
|
4209
4232
|
c() {
|
|
4210
|
-
|
|
4233
|
+
r = k(t);
|
|
4211
4234
|
},
|
|
4212
|
-
m(
|
|
4213
|
-
C(
|
|
4235
|
+
m(n, i) {
|
|
4236
|
+
C(n, r, i);
|
|
4214
4237
|
},
|
|
4215
|
-
p(
|
|
4238
|
+
p(n, i) {
|
|
4216
4239
|
i[0] & /*$_*/
|
|
4217
4240
|
524288 && t !== (t = /*$_*/
|
|
4218
|
-
|
|
4241
|
+
n[19]("sendCode") + "") && j(r, t);
|
|
4219
4242
|
},
|
|
4220
|
-
d(
|
|
4221
|
-
|
|
4243
|
+
d(n) {
|
|
4244
|
+
n && H(r);
|
|
4222
4245
|
}
|
|
4223
4246
|
};
|
|
4224
4247
|
}
|
|
@@ -4226,21 +4249,21 @@ function wo(e) {
|
|
|
4226
4249
|
let t = (
|
|
4227
4250
|
/*$_*/
|
|
4228
4251
|
e[19]("waitSeconds") + ""
|
|
4229
|
-
),
|
|
4252
|
+
), r, n, i, o;
|
|
4230
4253
|
return {
|
|
4231
4254
|
c() {
|
|
4232
|
-
|
|
4255
|
+
r = k(t), n = k(" ("), i = k(
|
|
4233
4256
|
/*currentChannelTimer*/
|
|
4234
4257
|
e[17]
|
|
4235
4258
|
), o = k("s)");
|
|
4236
4259
|
},
|
|
4237
4260
|
m(a, s) {
|
|
4238
|
-
C(a,
|
|
4261
|
+
C(a, r, s), C(a, n, s), C(a, i, s), C(a, o, s);
|
|
4239
4262
|
},
|
|
4240
4263
|
p(a, s) {
|
|
4241
4264
|
s[0] & /*$_*/
|
|
4242
4265
|
524288 && t !== (t = /*$_*/
|
|
4243
|
-
a[19]("waitSeconds") + "") && j(
|
|
4266
|
+
a[19]("waitSeconds") + "") && j(r, t), s[0] & /*currentChannelTimer*/
|
|
4244
4267
|
131072 && j(
|
|
4245
4268
|
i,
|
|
4246
4269
|
/*currentChannelTimer*/
|
|
@@ -4248,12 +4271,12 @@ function wo(e) {
|
|
|
4248
4271
|
);
|
|
4249
4272
|
},
|
|
4250
4273
|
d(a) {
|
|
4251
|
-
a && (H(
|
|
4274
|
+
a && (H(r), H(n), H(i), H(o));
|
|
4252
4275
|
}
|
|
4253
4276
|
};
|
|
4254
4277
|
}
|
|
4255
4278
|
function So(e) {
|
|
4256
|
-
let t,
|
|
4279
|
+
let t, r, n = (
|
|
4257
4280
|
/*$_*/
|
|
4258
4281
|
e[19]("timeRemaining") + ""
|
|
4259
4282
|
), i, o, a = (
|
|
@@ -4265,28 +4288,28 @@ function So(e) {
|
|
|
4265
4288
|
), s, u, l = (
|
|
4266
4289
|
/*$_*/
|
|
4267
4290
|
e[19]("minutes") + ""
|
|
4268
|
-
), h, c,
|
|
4291
|
+
), h, c, d, E = Dt(
|
|
4269
4292
|
/*otp*/
|
|
4270
4293
|
e[2]
|
|
4271
|
-
),
|
|
4272
|
-
for (let g = 0; g <
|
|
4273
|
-
|
|
4294
|
+
), m = [];
|
|
4295
|
+
for (let g = 0; g < E.length; g += 1)
|
|
4296
|
+
m[g] = nr(er(e, E, g));
|
|
4274
4297
|
return {
|
|
4275
4298
|
c() {
|
|
4276
|
-
t = O("div"),
|
|
4277
|
-
for (let g = 0; g <
|
|
4278
|
-
|
|
4279
|
-
p(
|
|
4299
|
+
t = O("div"), r = O("div"), i = k(n), o = F(), s = k(a), u = F(), h = k(l), c = F(), d = O("div");
|
|
4300
|
+
for (let g = 0; g < m.length; g += 1)
|
|
4301
|
+
m[g].c();
|
|
4302
|
+
p(r, "class", "OtpTimer"), p(d, "class", "OtpField"), p(t, "class", "OtpFieldWrapper");
|
|
4280
4303
|
},
|
|
4281
4304
|
m(g, v) {
|
|
4282
|
-
C(g, t, v), y(t,
|
|
4283
|
-
for (let S = 0; S <
|
|
4284
|
-
|
|
4305
|
+
C(g, t, v), y(t, r), y(r, i), y(r, o), y(r, s), y(r, u), y(r, h), y(t, c), y(t, d);
|
|
4306
|
+
for (let S = 0; S < m.length; S += 1)
|
|
4307
|
+
m[S] && m[S].m(d, null);
|
|
4285
4308
|
},
|
|
4286
4309
|
p(g, v) {
|
|
4287
4310
|
if (v[0] & /*$_*/
|
|
4288
|
-
524288 &&
|
|
4289
|
-
g[19]("timeRemaining") + "") && j(i,
|
|
4311
|
+
524288 && n !== (n = /*$_*/
|
|
4312
|
+
g[19]("timeRemaining") + "") && j(i, n), v[0] & /*timeLeft*/
|
|
4290
4313
|
32 && a !== (a = /*formatTime*/
|
|
4291
4314
|
g[23](
|
|
4292
4315
|
/*timeLeft*/
|
|
@@ -4295,22 +4318,22 @@ function So(e) {
|
|
|
4295
4318
|
524288 && l !== (l = /*$_*/
|
|
4296
4319
|
g[19]("minutes") + "") && j(h, l), v[0] & /*config, otp, inputDisabled, otpInputs, handleOtpInput, handleKeyDown, handleOnPasteOtp*/
|
|
4297
4320
|
117458964) {
|
|
4298
|
-
|
|
4321
|
+
E = Dt(
|
|
4299
4322
|
/*otp*/
|
|
4300
4323
|
g[2]
|
|
4301
4324
|
);
|
|
4302
4325
|
let S;
|
|
4303
|
-
for (S = 0; S <
|
|
4304
|
-
const P =
|
|
4305
|
-
|
|
4326
|
+
for (S = 0; S < E.length; S += 1) {
|
|
4327
|
+
const P = er(g, E, S);
|
|
4328
|
+
m[S] ? m[S].p(P, v) : (m[S] = nr(P), m[S].c(), m[S].m(d, null));
|
|
4306
4329
|
}
|
|
4307
|
-
for (; S <
|
|
4308
|
-
|
|
4309
|
-
|
|
4330
|
+
for (; S < m.length; S += 1)
|
|
4331
|
+
m[S].d(1);
|
|
4332
|
+
m.length = E.length;
|
|
4310
4333
|
}
|
|
4311
4334
|
},
|
|
4312
4335
|
d(g) {
|
|
4313
|
-
g && H(t),
|
|
4336
|
+
g && H(t), tn(m, g);
|
|
4314
4337
|
}
|
|
4315
4338
|
};
|
|
4316
4339
|
}
|
|
@@ -4320,17 +4343,17 @@ function To(e) {
|
|
|
4320
4343
|
c() {
|
|
4321
4344
|
t = O("div"), t.innerHTML = '<span class="OtpLoader"></span>', p(t, "class", "OtpLoaderContainer");
|
|
4322
4345
|
},
|
|
4323
|
-
m(
|
|
4324
|
-
C(
|
|
4346
|
+
m(r, n) {
|
|
4347
|
+
C(r, t, n);
|
|
4325
4348
|
},
|
|
4326
4349
|
p: ee,
|
|
4327
|
-
d(
|
|
4328
|
-
|
|
4350
|
+
d(r) {
|
|
4351
|
+
r && H(t);
|
|
4329
4352
|
}
|
|
4330
4353
|
};
|
|
4331
4354
|
}
|
|
4332
|
-
function
|
|
4333
|
-
let t,
|
|
4355
|
+
function nr(e) {
|
|
4356
|
+
let t, r, n, i = (
|
|
4334
4357
|
/*index*/
|
|
4335
4358
|
e[71]
|
|
4336
4359
|
), o, a;
|
|
@@ -4364,15 +4387,15 @@ function rn(e) {
|
|
|
4364
4387
|
return {
|
|
4365
4388
|
c() {
|
|
4366
4389
|
t = O("input"), p(t, "id", `otp-input-${/*index*/
|
|
4367
|
-
e[71]}`), p(t, "type", "text"), p(t, "class",
|
|
4390
|
+
e[71]}`), p(t, "type", "text"), p(t, "class", r = `otp-box ${/*config*/
|
|
4368
4391
|
e[4].inputLength % 2 === 0 && /*index*/
|
|
4369
4392
|
e[71] === /*config*/
|
|
4370
|
-
e[4].inputLength / 2 - 1 ? "space" : ""}`), p(t, "maxlength", 1), t.value =
|
|
4393
|
+
e[4].inputLength / 2 - 1 ? "space" : ""}`), p(t, "maxlength", 1), t.value = n = /*char*/
|
|
4371
4394
|
e[69], p(t, "inputmode", "numeric"), t.disabled = /*inputDisabled*/
|
|
4372
4395
|
e[11], p(t, "autocomplete", "off");
|
|
4373
4396
|
},
|
|
4374
|
-
m(c,
|
|
4375
|
-
C(c, t,
|
|
4397
|
+
m(c, d) {
|
|
4398
|
+
C(c, t, d), s(), o || (a = [
|
|
4376
4399
|
pe(t, "input", l),
|
|
4377
4400
|
pe(t, "keydown", h),
|
|
4378
4401
|
pe(
|
|
@@ -4383,14 +4406,14 @@ function rn(e) {
|
|
|
4383
4406
|
)
|
|
4384
4407
|
], o = !0);
|
|
4385
4408
|
},
|
|
4386
|
-
p(c,
|
|
4387
|
-
e = c,
|
|
4388
|
-
16 &&
|
|
4409
|
+
p(c, d) {
|
|
4410
|
+
e = c, d[0] & /*config*/
|
|
4411
|
+
16 && r !== (r = `otp-box ${/*config*/
|
|
4389
4412
|
e[4].inputLength % 2 === 0 && /*index*/
|
|
4390
4413
|
e[71] === /*config*/
|
|
4391
|
-
e[4].inputLength / 2 - 1 ? "space" : ""}`) && p(t, "class",
|
|
4392
|
-
4 &&
|
|
4393
|
-
e[69]) && t.value !==
|
|
4414
|
+
e[4].inputLength / 2 - 1 ? "space" : ""}`) && p(t, "class", r), d[0] & /*otp*/
|
|
4415
|
+
4 && n !== (n = /*char*/
|
|
4416
|
+
e[69]) && t.value !== n && (t.value = n), d[0] & /*inputDisabled*/
|
|
4394
4417
|
2048 && (t.disabled = /*inputDisabled*/
|
|
4395
4418
|
e[11]), i !== /*index*/
|
|
4396
4419
|
e[71] && (u(), i = /*index*/
|
|
@@ -4402,20 +4425,20 @@ function rn(e) {
|
|
|
4402
4425
|
};
|
|
4403
4426
|
}
|
|
4404
4427
|
function Oo(e) {
|
|
4405
|
-
let t,
|
|
4428
|
+
let t, r = (
|
|
4406
4429
|
/*$_*/
|
|
4407
4430
|
e[19]("submit") + ""
|
|
4408
|
-
),
|
|
4431
|
+
), n, i, o, a;
|
|
4409
4432
|
return {
|
|
4410
4433
|
c() {
|
|
4411
|
-
t = O("button"),
|
|
4434
|
+
t = O("button"), n = k(r), p(t, "class", "OtpButton"), t.disabled = i = /*otp*/
|
|
4412
4435
|
e[2].join("").length !== /*config*/
|
|
4413
4436
|
e[4].inputLength || /*isSubmitting*/
|
|
4414
4437
|
e[13] || /*maxAttempts*/
|
|
4415
4438
|
e[15];
|
|
4416
4439
|
},
|
|
4417
4440
|
m(s, u) {
|
|
4418
|
-
C(s, t, u), y(t,
|
|
4441
|
+
C(s, t, u), y(t, n), o || (a = pe(
|
|
4419
4442
|
t,
|
|
4420
4443
|
"click",
|
|
4421
4444
|
/*submitOtp*/
|
|
@@ -4424,8 +4447,8 @@ function Oo(e) {
|
|
|
4424
4447
|
},
|
|
4425
4448
|
p(s, u) {
|
|
4426
4449
|
u[0] & /*$_*/
|
|
4427
|
-
524288 &&
|
|
4428
|
-
s[19]("submit") + "") && j(
|
|
4450
|
+
524288 && r !== (r = /*$_*/
|
|
4451
|
+
s[19]("submit") + "") && j(n, r), u[0] & /*otp, config, isSubmitting, maxAttempts*/
|
|
4429
4452
|
40980 && i !== (i = /*otp*/
|
|
4430
4453
|
s[2].join("").length !== /*config*/
|
|
4431
4454
|
s[4].inputLength || /*isSubmitting*/
|
|
@@ -4438,16 +4461,16 @@ function Oo(e) {
|
|
|
4438
4461
|
};
|
|
4439
4462
|
}
|
|
4440
4463
|
function Ho(e) {
|
|
4441
|
-
let t,
|
|
4464
|
+
let t, r = (
|
|
4442
4465
|
/*$_*/
|
|
4443
4466
|
e[19]("resendOtp") + ""
|
|
4444
|
-
),
|
|
4467
|
+
), n, i, o;
|
|
4445
4468
|
return {
|
|
4446
4469
|
c() {
|
|
4447
|
-
t = O("button"),
|
|
4470
|
+
t = O("button"), n = k(r), p(t, "class", "OtpButton");
|
|
4448
4471
|
},
|
|
4449
4472
|
m(a, s) {
|
|
4450
|
-
C(a, t, s), y(t,
|
|
4473
|
+
C(a, t, s), y(t, n), i || (o = pe(
|
|
4451
4474
|
t,
|
|
4452
4475
|
"click",
|
|
4453
4476
|
/*handleResendOtp*/
|
|
@@ -4456,8 +4479,8 @@ function Ho(e) {
|
|
|
4456
4479
|
},
|
|
4457
4480
|
p(a, s) {
|
|
4458
4481
|
s[0] & /*$_*/
|
|
4459
|
-
524288 &&
|
|
4460
|
-
a[19]("resendOtp") + "") && j(
|
|
4482
|
+
524288 && r !== (r = /*$_*/
|
|
4483
|
+
a[19]("resendOtp") + "") && j(n, r);
|
|
4461
4484
|
},
|
|
4462
4485
|
d(a) {
|
|
4463
4486
|
a && H(t), i = !1, o();
|
|
@@ -4466,13 +4489,13 @@ function Ho(e) {
|
|
|
4466
4489
|
}
|
|
4467
4490
|
function Ao(e) {
|
|
4468
4491
|
let t;
|
|
4469
|
-
function
|
|
4492
|
+
function r(o, a) {
|
|
4470
4493
|
return (
|
|
4471
4494
|
/*hasConfigErrors*/
|
|
4472
4495
|
o[7] ? go : mo
|
|
4473
4496
|
);
|
|
4474
4497
|
}
|
|
4475
|
-
let
|
|
4498
|
+
let n = r(e), i = n(e);
|
|
4476
4499
|
return {
|
|
4477
4500
|
c() {
|
|
4478
4501
|
t = O("div"), i.c(), p(t, "class", "OtpContent");
|
|
@@ -4481,7 +4504,7 @@ function Ao(e) {
|
|
|
4481
4504
|
C(o, t, a), i.m(t, null), e[44](t);
|
|
4482
4505
|
},
|
|
4483
4506
|
p(o, a) {
|
|
4484
|
-
|
|
4507
|
+
n === (n = r(o)) && i ? i.p(o, a) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
4485
4508
|
},
|
|
4486
4509
|
i: ee,
|
|
4487
4510
|
o: ee,
|
|
@@ -4490,11 +4513,11 @@ function Ao(e) {
|
|
|
4490
4513
|
}
|
|
4491
4514
|
};
|
|
4492
4515
|
}
|
|
4493
|
-
function Co(e, t,
|
|
4494
|
-
let
|
|
4495
|
-
|
|
4496
|
-
let { clientstyling: a = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { endpoint: h } = t, { session: c } = t, { translationurl:
|
|
4497
|
-
const Se = { SMS: "sms", EMAIL: "email" },
|
|
4516
|
+
function Co(e, t, r) {
|
|
4517
|
+
let n, i, o;
|
|
4518
|
+
Jr(e, co, (f) => r(19, o = f));
|
|
4519
|
+
let { clientstyling: a = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { endpoint: h } = t, { session: c } = t, { translationurl: d } = t, { templateid: E } = t, m = [], g = !0, v = null, S = 0, P = "", I = "", D = !1, M = !1, N = "", te = "", Q = "", ue = !1, me = !1, he = !1, B = "", U = {}, Z = null, ge = !1, be = !1, ye = "", J, re = [], X = null, ce = 0, ne = !1, Ee = !1;
|
|
4520
|
+
const Se = { SMS: "sms", EMAIL: "email" }, _e = {
|
|
4498
4521
|
MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
|
|
4499
4522
|
INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
|
|
4500
4523
|
MAX_INVALIDATE: "gm.multifactorauthentication.challenge_internal_server_error"
|
|
@@ -4505,118 +4528,118 @@ function Co(e, t, n) {
|
|
|
4505
4528
|
const Te = () => {
|
|
4506
4529
|
fo(l);
|
|
4507
4530
|
}, Y = () => {
|
|
4508
|
-
fetch(
|
|
4509
|
-
Object.keys(f).forEach((
|
|
4510
|
-
Yt(
|
|
4531
|
+
fetch(d).then((f) => f.json()).then((f) => {
|
|
4532
|
+
Object.keys(f).forEach((_) => {
|
|
4533
|
+
Yt(_, f[_]);
|
|
4511
4534
|
});
|
|
4512
4535
|
}).catch((f) => {
|
|
4513
4536
|
console.log(f);
|
|
4514
4537
|
});
|
|
4515
4538
|
}, V = (f) => ve(this, null, function* () {
|
|
4516
|
-
var
|
|
4517
|
-
if ((
|
|
4518
|
-
if (
|
|
4519
|
-
|
|
4539
|
+
var _;
|
|
4540
|
+
if ((_ = f.detail) != null && _["x-step-up-required"]) {
|
|
4541
|
+
if (r(7, M = !1), r(6, D = !1), r(8, N = ""), te = f.detail["x-step-up-token"], Q = f.detail.flow, !te || !Q) {
|
|
4542
|
+
r(3, g = !1), r(7, M = !0), r(8, N = o("configError"));
|
|
4520
4543
|
return;
|
|
4521
4544
|
}
|
|
4522
|
-
|
|
4545
|
+
r(12, ge = !1), r(3, g = !1);
|
|
4523
4546
|
}
|
|
4524
4547
|
}), $e = () => {
|
|
4525
|
-
X && (clearInterval(X), X = null), Z && (clearInterval(Z), Z = null),
|
|
4548
|
+
X && (clearInterval(X), X = null), Z && (clearInterval(Z), Z = null), r(6, D = !1), r(7, M = !1), r(8, N = ""), r(10, me = !1), r(2, m = []), r(4, v = null), r(3, g = !0), r(0, B = ""), r(12, ge = !1), r(38, U = {});
|
|
4526
4549
|
}, fe = () => {
|
|
4527
4550
|
$e();
|
|
4528
|
-
}, $ = () => new Promise((f,
|
|
4551
|
+
}, $ = () => new Promise((f, _) => {
|
|
4529
4552
|
const x = new URL(`${h}/api/pam/v1/mfa/challenge/${te}`), G = new Headers();
|
|
4530
|
-
G.append("accept", "application/json"), G.append("Content-Type", "application/json"), G.append("X-SessionId", `${c}`),
|
|
4553
|
+
G.append("accept", "application/json"), G.append("Content-Type", "application/json"), G.append("X-SessionId", `${c}`), r(16, Ee = !0);
|
|
4531
4554
|
const Oe = {
|
|
4532
4555
|
method: "PATCH",
|
|
4533
4556
|
headers: G,
|
|
4534
4557
|
body: JSON.stringify({
|
|
4535
4558
|
channel: B,
|
|
4536
|
-
templateId:
|
|
4559
|
+
templateId: E
|
|
4537
4560
|
})
|
|
4538
4561
|
};
|
|
4539
4562
|
fetch(x, Oe).then((It) => It.json()).then(() => {
|
|
4540
|
-
|
|
4563
|
+
r(15, ne = !1), b(), A(), f();
|
|
4541
4564
|
}).catch((It) => {
|
|
4542
|
-
|
|
4565
|
+
_();
|
|
4543
4566
|
});
|
|
4544
4567
|
}), ze = () => {
|
|
4545
4568
|
Z && clearInterval(Z), Z = setInterval(
|
|
4546
4569
|
() => {
|
|
4547
4570
|
const f = Xe({}, U);
|
|
4548
|
-
let
|
|
4571
|
+
let _ = !1;
|
|
4549
4572
|
Object.keys(f).forEach((x) => {
|
|
4550
|
-
f[x] > 0 && (f[x]--,
|
|
4551
|
-
}),
|
|
4573
|
+
f[x] > 0 && (f[x]--, _ = !0);
|
|
4574
|
+
}), r(38, U = f), !_ && Z && (clearInterval(Z), Z = null);
|
|
4552
4575
|
},
|
|
4553
4576
|
1e3
|
|
4554
4577
|
);
|
|
4555
4578
|
}, ie = (f) => {
|
|
4556
|
-
|
|
4579
|
+
r(0, B = f);
|
|
4557
4580
|
}, W = () => ve(this, null, function* () {
|
|
4558
4581
|
if (!(!B || U[B] && U[B] > 0)) {
|
|
4559
|
-
|
|
4582
|
+
r(3, g = !0), E && E.startsWith("2fa-") && r(30, E = `2fa-${B}`);
|
|
4560
4583
|
try {
|
|
4561
|
-
yield $(), yield at(),
|
|
4584
|
+
yield $(), yield at(), r(38, U = ut(Xe({}, U), {
|
|
4562
4585
|
[B]: 30
|
|
4563
|
-
})), ze(),
|
|
4586
|
+
})), ze(), r(12, ge = !0), b(), A();
|
|
4564
4587
|
} catch (f) {
|
|
4565
|
-
console.error("Error submitting channel:", f),
|
|
4588
|
+
console.error("Error submitting channel:", f), r(6, D = !0), r(8, N = o("submissionError"));
|
|
4566
4589
|
} finally {
|
|
4567
|
-
|
|
4590
|
+
r(3, g = !1);
|
|
4568
4591
|
}
|
|
4569
4592
|
}
|
|
4570
4593
|
}), b = () => {
|
|
4571
|
-
const f = new Date(P),
|
|
4594
|
+
const f = new Date(P), _ = new Date(I), x = /* @__PURE__ */ new Date(), G = _.getTime() - x.getTime();
|
|
4572
4595
|
ce = f.getTime() - G;
|
|
4573
4596
|
const z = Date.now(), Oe = Math.max(0, Math.floor((ce - z) / 1e3));
|
|
4574
|
-
|
|
4597
|
+
r(5, S = Oe);
|
|
4575
4598
|
}, A = () => {
|
|
4576
4599
|
X && clearInterval(X), X = setInterval(
|
|
4577
4600
|
() => {
|
|
4578
|
-
const f = Date.now(),
|
|
4579
|
-
|
|
4601
|
+
const f = Date.now(), _ = Math.max(0, Math.floor((ce - f) / 1e3));
|
|
4602
|
+
r(5, S = _), r(11, he = _ <= 0), _ <= 0 && (clearInterval(X), X = null, r(9, ue = !0), r(6, D = !1), r(10, me = !1));
|
|
4580
4603
|
},
|
|
4581
4604
|
1e3
|
|
4582
4605
|
);
|
|
4583
|
-
},
|
|
4584
|
-
const
|
|
4585
|
-
return `${
|
|
4586
|
-
}, st = (f,
|
|
4587
|
-
const x = [...
|
|
4588
|
-
x[f] =
|
|
4589
|
-
},
|
|
4606
|
+
}, Mr = (f) => {
|
|
4607
|
+
const _ = Math.floor(f / 60), x = f % 60;
|
|
4608
|
+
return `${_.toString().padStart(2, "0")}:${x.toString().padStart(2, "0")}`;
|
|
4609
|
+
}, st = (f, _) => {
|
|
4610
|
+
const x = [...m];
|
|
4611
|
+
x[f] = _.toUpperCase(), r(2, m = x), x.join("") !== ye && r(13, be = !1);
|
|
4612
|
+
}, Lr = (f) => {
|
|
4590
4613
|
var G, z, Oe;
|
|
4591
4614
|
f.preventDefault();
|
|
4592
4615
|
const x = (((z = (G = f.clipboardData) == null ? void 0 : G.getData("text")) == null ? void 0 : z.trim()) || "").slice(0, v.inputLength).split("");
|
|
4593
|
-
|
|
4594
|
-
}, Pt = (f,
|
|
4616
|
+
r(2, m = [...x, ...Array(v.inputLength - x.length).fill("")]), (Oe = re[x.length]) == null || Oe.focus(), x.length === v.inputLength && Lt();
|
|
4617
|
+
}, Pt = (f, _) => {
|
|
4595
4618
|
const x = f.target, G = x.value;
|
|
4596
4619
|
if (/^[a-z0-9]$/i.test(G)) {
|
|
4597
|
-
st(
|
|
4598
|
-
const z =
|
|
4620
|
+
st(_, G);
|
|
4621
|
+
const z = re[_ + 1];
|
|
4599
4622
|
z == null || z.focus();
|
|
4600
4623
|
}
|
|
4601
4624
|
x.value = "";
|
|
4602
|
-
}, Mt = (f,
|
|
4625
|
+
}, Mt = (f, _) => {
|
|
4603
4626
|
const x = f.key, G = f.ctrlKey || f.metaKey;
|
|
4604
4627
|
if (/^[a-z0-9]$/i.test(x)) {
|
|
4605
4628
|
if (G && x.toLowerCase() === "v")
|
|
4606
4629
|
return;
|
|
4607
|
-
f.preventDefault(), st(
|
|
4608
|
-
const z =
|
|
4630
|
+
f.preventDefault(), st(_, x);
|
|
4631
|
+
const z = re[_ + 1];
|
|
4609
4632
|
z == null || z.focus();
|
|
4610
4633
|
} else if (x === "Backspace") {
|
|
4611
|
-
f.preventDefault(),
|
|
4612
|
-
const z =
|
|
4634
|
+
f.preventDefault(), m[_] !== "" && st(_, "");
|
|
4635
|
+
const z = re[_ - 1];
|
|
4613
4636
|
z == null || z.focus();
|
|
4614
4637
|
}
|
|
4615
|
-
},
|
|
4616
|
-
Q == "stateful" && ($(),
|
|
4638
|
+
}, Ir = () => {
|
|
4639
|
+
Q == "stateful" && ($(), r(9, ue = !1));
|
|
4617
4640
|
const f = new CustomEvent("otpResendRequested");
|
|
4618
4641
|
window.dispatchEvent(f);
|
|
4619
|
-
},
|
|
4642
|
+
}, Nr = (f) => {
|
|
4620
4643
|
window.dispatchEvent(new CustomEvent(
|
|
4621
4644
|
"otpSubmitted",
|
|
4622
4645
|
{
|
|
@@ -4627,19 +4650,19 @@ function Co(e, t, n) {
|
|
|
4627
4650
|
}
|
|
4628
4651
|
}
|
|
4629
4652
|
));
|
|
4630
|
-
},
|
|
4631
|
-
const
|
|
4632
|
-
|
|
4653
|
+
}, Rr = (f) => ve(this, null, function* () {
|
|
4654
|
+
const _ = new URL(`/api/nwa/api/v1/mfa/challenge/${te}/validate`, h);
|
|
4655
|
+
_.searchParams.append("input", f);
|
|
4633
4656
|
try {
|
|
4634
|
-
const x = yield fetch(
|
|
4657
|
+
const x = yield fetch(_.href, { method: "POST" });
|
|
4635
4658
|
if (x.status === 200) {
|
|
4636
|
-
|
|
4659
|
+
kr();
|
|
4637
4660
|
return;
|
|
4638
4661
|
}
|
|
4639
4662
|
const G = yield x.json();
|
|
4640
4663
|
throw new Error(G.message);
|
|
4641
4664
|
} catch (x) {
|
|
4642
|
-
if (yield at(), x.message ===
|
|
4665
|
+
if (yield at(), x.message === _e.INTERNAL_SERVER_ERROR) {
|
|
4643
4666
|
if (v.numberOfValidateAttempts === v.maxValidationAttempts - 1) {
|
|
4644
4667
|
window.dispatchEvent(new CustomEvent("otpSetTimeout")), window.postMessage(
|
|
4645
4668
|
{
|
|
@@ -4653,14 +4676,14 @@ function Co(e, t, n) {
|
|
|
4653
4676
|
), window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
4654
4677
|
return;
|
|
4655
4678
|
}
|
|
4656
|
-
|
|
4679
|
+
r(6, D = !0), r(8, N = o("invalidOtp")), at();
|
|
4657
4680
|
return;
|
|
4658
4681
|
}
|
|
4659
|
-
x.message ===
|
|
4682
|
+
x.message === _e.MAX_INVALIDATE && (r(6, D = !0), r(8, N = o("invalidOtp"))), x.details === _e.MAX_ATTEMPTS_EXCEEDED && r(15, ne = !0), console.error("OTP submission failed:", x), r(6, D = !0), r(8, N = o("submissionError"));
|
|
4660
4683
|
} finally {
|
|
4661
|
-
|
|
4684
|
+
r(3, g = !1);
|
|
4662
4685
|
}
|
|
4663
|
-
}),
|
|
4686
|
+
}), kr = () => {
|
|
4664
4687
|
window.dispatchEvent(new CustomEvent(
|
|
4665
4688
|
"otpSuccess",
|
|
4666
4689
|
{
|
|
@@ -4669,67 +4692,67 @@ function Co(e, t, n) {
|
|
|
4669
4692
|
}
|
|
4670
4693
|
}
|
|
4671
4694
|
));
|
|
4672
|
-
},
|
|
4695
|
+
}, Dr = () => {
|
|
4673
4696
|
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
4674
4697
|
}, Lt = () => ve(this, null, function* () {
|
|
4675
|
-
if (
|
|
4676
|
-
|
|
4698
|
+
if (m.join("").length !== v.inputLength) {
|
|
4699
|
+
r(6, D = !0), r(8, N = o("invalidOtp"));
|
|
4677
4700
|
return;
|
|
4678
4701
|
}
|
|
4679
|
-
const f =
|
|
4680
|
-
|
|
4702
|
+
const f = m.join("");
|
|
4703
|
+
r(13, be = !0), ye = f, r(3, g = !0), r(6, D = !1), r(8, N = ""), Q === "stateless" && Nr(f), Q === "stateful" && (yield Rr(f));
|
|
4681
4704
|
}), at = () => ve(this, null, function* () {
|
|
4682
4705
|
if (h)
|
|
4683
4706
|
try {
|
|
4684
|
-
|
|
4685
|
-
const f = new URL(`/api/nwa/api/v1/mfa/challenge/${te}/config`, h),
|
|
4686
|
-
if (
|
|
4687
|
-
|
|
4688
|
-
else if (x && x.details ===
|
|
4707
|
+
r(3, g = !0);
|
|
4708
|
+
const f = new URL(`/api/nwa/api/v1/mfa/challenge/${te}/config`, h), _ = yield fetch(f.href), x = yield _.json();
|
|
4709
|
+
if (_.ok)
|
|
4710
|
+
r(4, v = x), r(2, m = Array(v.inputLength).fill("")), r(9, ue = !1), P = v.expirationTime, I = v.serverTime, v.numberOfValidateAttempts !== 0 && (r(6, D = !0), r(8, N = o("invalidOtp"))), v.numberOfValidateAttempts === v.maxValidationAttempts - 1 && r(10, me = !0), r(3, g = !1), b(), A(), r(16, Ee = !1);
|
|
4711
|
+
else if (x && x.details === _e.MAX_ATTEMPTS_EXCEEDED)
|
|
4689
4712
|
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
4690
4713
|
else {
|
|
4691
|
-
const G = x && x.message || `Failed to load config. Status: ${
|
|
4714
|
+
const G = x && x.message || `Failed to load config. Status: ${_.status}`;
|
|
4692
4715
|
throw new Error(G);
|
|
4693
4716
|
}
|
|
4694
4717
|
} catch (f) {
|
|
4695
|
-
|
|
4718
|
+
r(3, g = !1), r(7, M = !0), r(8, N = o("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", f);
|
|
4696
4719
|
}
|
|
4697
4720
|
});
|
|
4698
|
-
|
|
4721
|
+
an(() => (window.addEventListener("stepUpAuthRequired", V, !1), window.addEventListener("closePopup", fe, !1), () => {
|
|
4699
4722
|
window.removeEventListener("stepUpAuthRequired", V), window.removeEventListener("closePopup", fe, !1), X && clearInterval(X), Z && clearInterval(Z);
|
|
4700
4723
|
}));
|
|
4701
|
-
const
|
|
4702
|
-
function
|
|
4724
|
+
const Ur = () => ie(Se.SMS), Gr = () => ie(Se.EMAIL);
|
|
4725
|
+
function Fr(f, _) {
|
|
4703
4726
|
Je[f ? "unshift" : "push"](() => {
|
|
4704
|
-
|
|
4727
|
+
re[_] = f, r(14, re);
|
|
4705
4728
|
});
|
|
4706
4729
|
}
|
|
4707
|
-
const
|
|
4708
|
-
function
|
|
4730
|
+
const jr = (f, _) => Pt(_, f), Vr = (f, _) => Mt(_, f);
|
|
4731
|
+
function $r(f) {
|
|
4709
4732
|
Je[f ? "unshift" : "push"](() => {
|
|
4710
|
-
J = f,
|
|
4733
|
+
J = f, r(1, J);
|
|
4711
4734
|
});
|
|
4712
4735
|
}
|
|
4713
4736
|
return e.$$set = (f) => {
|
|
4714
|
-
"clientstyling" in f &&
|
|
4737
|
+
"clientstyling" in f && r(31, a = f.clientstyling), "clientstylingurl" in f && r(32, s = f.clientstylingurl), "mbsource" in f && r(33, u = f.mbsource), "lang" in f && r(34, l = f.lang), "endpoint" in f && r(35, h = f.endpoint), "session" in f && r(36, c = f.session), "translationurl" in f && r(37, d = f.translationurl), "templateid" in f && r(30, E = f.templateid);
|
|
4715
4738
|
}, e.$$.update = () => {
|
|
4716
4739
|
e.$$.dirty[0] & /*customStylingContainer*/
|
|
4717
4740
|
2 | e.$$.dirty[1] & /*clientstyling*/
|
|
4718
|
-
1 && a && J &&
|
|
4741
|
+
1 && a && J && vn(J, a), e.$$.dirty[0] & /*customStylingContainer*/
|
|
4719
4742
|
2 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
4720
|
-
2 && s && J &&
|
|
4743
|
+
2 && s && J && xn(J, s), e.$$.dirty[0] & /*customStylingContainer*/
|
|
4721
4744
|
2 | e.$$.dirty[1] & /*mbsource*/
|
|
4722
|
-
4 && u && J &&
|
|
4745
|
+
4 && u && J && wn(J, `${u}.Style`), e.$$.dirty[1] & /*lang*/
|
|
4723
4746
|
8 && l && Te(), e.$$.dirty[1] & /*lang, translationurl*/
|
|
4724
|
-
72 && l &&
|
|
4747
|
+
72 && l && d && Y(), e.$$.dirty[0] & /*selectedChannel*/
|
|
4725
4748
|
1 | e.$$.dirty[1] & /*channelSubmitTimers*/
|
|
4726
|
-
128 &&
|
|
4749
|
+
128 && r(18, n = B && (!U[B] || U[B] === 0)), e.$$.dirty[0] & /*selectedChannel*/
|
|
4727
4750
|
1 | e.$$.dirty[1] & /*channelSubmitTimers*/
|
|
4728
|
-
128 &&
|
|
4751
|
+
128 && r(17, i = B && U[B] || 0);
|
|
4729
4752
|
}, [
|
|
4730
4753
|
B,
|
|
4731
4754
|
J,
|
|
4732
|
-
|
|
4755
|
+
m,
|
|
4733
4756
|
g,
|
|
4734
4757
|
v,
|
|
4735
4758
|
S,
|
|
@@ -4737,51 +4760,51 @@ function Co(e, t, n) {
|
|
|
4737
4760
|
M,
|
|
4738
4761
|
N,
|
|
4739
4762
|
ue,
|
|
4740
|
-
|
|
4763
|
+
me,
|
|
4741
4764
|
he,
|
|
4742
4765
|
ge,
|
|
4743
4766
|
be,
|
|
4744
|
-
ne,
|
|
4745
4767
|
re,
|
|
4746
|
-
|
|
4768
|
+
ne,
|
|
4769
|
+
Ee,
|
|
4747
4770
|
i,
|
|
4748
|
-
|
|
4771
|
+
n,
|
|
4749
4772
|
o,
|
|
4750
4773
|
Se,
|
|
4751
4774
|
ie,
|
|
4752
4775
|
W,
|
|
4753
|
-
|
|
4754
|
-
|
|
4776
|
+
Mr,
|
|
4777
|
+
Lr,
|
|
4755
4778
|
Pt,
|
|
4756
4779
|
Mt,
|
|
4757
|
-
|
|
4758
|
-
|
|
4780
|
+
Ir,
|
|
4781
|
+
Dr,
|
|
4759
4782
|
Lt,
|
|
4760
|
-
|
|
4783
|
+
E,
|
|
4761
4784
|
a,
|
|
4762
4785
|
s,
|
|
4763
4786
|
u,
|
|
4764
4787
|
l,
|
|
4765
4788
|
h,
|
|
4766
4789
|
c,
|
|
4767
|
-
|
|
4790
|
+
d,
|
|
4768
4791
|
U,
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4792
|
+
Ur,
|
|
4793
|
+
Gr,
|
|
4794
|
+
Fr,
|
|
4795
|
+
jr,
|
|
4796
|
+
Vr,
|
|
4797
|
+
$r
|
|
4775
4798
|
];
|
|
4776
4799
|
}
|
|
4777
|
-
class Bo extends
|
|
4800
|
+
class Bo extends En {
|
|
4778
4801
|
constructor(t) {
|
|
4779
|
-
super(),
|
|
4802
|
+
super(), bn(
|
|
4780
4803
|
this,
|
|
4781
4804
|
t,
|
|
4782
4805
|
Co,
|
|
4783
4806
|
Ao,
|
|
4784
|
-
|
|
4807
|
+
or,
|
|
4785
4808
|
{
|
|
4786
4809
|
clientstyling: 31,
|
|
4787
4810
|
clientstylingurl: 32,
|
|
@@ -4845,7 +4868,7 @@ class Bo extends _r {
|
|
|
4845
4868
|
this.$$set({ templateid: t }), ae();
|
|
4846
4869
|
}
|
|
4847
4870
|
}
|
|
4848
|
-
|
|
4871
|
+
yn(Bo, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
|
|
4849
4872
|
export {
|
|
4850
4873
|
Bo as default
|
|
4851
4874
|
};
|