@everymatrix/cashier-step-up 0.6.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CashierStepUp-C7wS_ltU.cjs +3 -0
- package/components/{CashierStepUp-UCVyknjk.js → CashierStepUp-Cl0RmZrh.js} +1491 -1493
- package/components/{CashierStepUp-CTF4zkcp.js → CashierStepUp-DvXworYR.js} +1477 -1479
- 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-DiWjURI5.cjs +0 -3
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
function
|
|
1
|
+
function Y() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Yt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Bt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function _e(e) {
|
|
10
|
+
e.forEach(Yt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function wt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Kt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Ur(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function er(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
|
-
for (const
|
|
24
|
-
|
|
25
|
-
return
|
|
23
|
+
for (const n of t)
|
|
24
|
+
n(void 0);
|
|
25
|
+
return Y;
|
|
26
26
|
}
|
|
27
|
-
const
|
|
28
|
-
return
|
|
27
|
+
const r = e.subscribe(...t);
|
|
28
|
+
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function Gr(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(er(t, r));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function y(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const
|
|
38
|
-
if (!
|
|
39
|
-
const i =
|
|
40
|
-
i.id = t, i.textContent =
|
|
36
|
+
function Fr(e, t, r) {
|
|
37
|
+
const n = jr(e);
|
|
38
|
+
if (!n.getElementById(t)) {
|
|
39
|
+
const i = O("style");
|
|
40
|
+
i.id = t, i.textContent = r, Vr(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function jr(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,155 +50,155 @@ function Fn(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
53
|
+
function Vr(e, t) {
|
|
54
|
+
return y(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
58
58
|
), t.sheet;
|
|
59
59
|
}
|
|
60
|
-
function C(e, t,
|
|
61
|
-
e.insertBefore(t,
|
|
60
|
+
function C(e, t, r) {
|
|
61
|
+
e.insertBefore(t, r || null);
|
|
62
62
|
}
|
|
63
63
|
function H(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
|
-
function $
|
|
67
|
-
for (let
|
|
68
|
-
e[
|
|
66
|
+
function $r(e, t) {
|
|
67
|
+
for (let r = 0; r < e.length; r += 1)
|
|
68
|
+
e[r] && e[r].d(t);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function O(e) {
|
|
71
71
|
return document.createElement(e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function ne(e) {
|
|
74
74
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function k(e) {
|
|
77
77
|
return document.createTextNode(e);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function G() {
|
|
80
|
+
return k(" ");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
82
|
+
function zr() {
|
|
83
|
+
return k("");
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
return e.addEventListener(t,
|
|
85
|
+
function ce(e, t, r, n) {
|
|
86
|
+
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
87
87
|
}
|
|
88
|
-
function p(e, t,
|
|
89
|
-
|
|
88
|
+
function p(e, t, r) {
|
|
89
|
+
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Xr(e) {
|
|
92
92
|
return Array.from(e.childNodes);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function F(e, t) {
|
|
95
95
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
96
96
|
t);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
99
|
-
e.classList.toggle(t, !!
|
|
98
|
+
function ie(e, t, r) {
|
|
99
|
+
e.classList.toggle(t, !!r);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function Wr(e) {
|
|
102
102
|
const t = {};
|
|
103
103
|
return e.childNodes.forEach(
|
|
104
104
|
/** @param {Element} node */
|
|
105
|
-
(
|
|
106
|
-
t[
|
|
105
|
+
(r) => {
|
|
106
|
+
t[r.slot || "default"] = !0;
|
|
107
107
|
}
|
|
108
108
|
), t;
|
|
109
109
|
}
|
|
110
|
-
let
|
|
111
|
-
function
|
|
112
|
-
|
|
110
|
+
let ke;
|
|
111
|
+
function Re(e) {
|
|
112
|
+
ke = e;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
if (
|
|
114
|
+
function Zr() {
|
|
115
|
+
if (!ke)
|
|
116
116
|
throw new Error("Function called outside component initialization");
|
|
117
|
-
return
|
|
117
|
+
return ke;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
119
|
+
function qr(e) {
|
|
120
|
+
Zr().$$.on_mount.push(e);
|
|
121
121
|
}
|
|
122
|
-
const
|
|
123
|
-
let
|
|
124
|
-
const Pt = [],
|
|
125
|
-
let
|
|
126
|
-
function
|
|
127
|
-
|
|
122
|
+
const Te = [], We = [];
|
|
123
|
+
let Oe = [];
|
|
124
|
+
const Pt = [], Qr = /* @__PURE__ */ Promise.resolve();
|
|
125
|
+
let ft = !1;
|
|
126
|
+
function Jr() {
|
|
127
|
+
ft || (ft = !0, Qr.then(oe));
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
|
|
129
|
+
function pt(e) {
|
|
130
|
+
Oe.push(e);
|
|
131
131
|
}
|
|
132
|
-
const
|
|
133
|
-
let
|
|
134
|
-
function
|
|
135
|
-
if (
|
|
132
|
+
const ot = /* @__PURE__ */ new Set();
|
|
133
|
+
let we = 0;
|
|
134
|
+
function oe() {
|
|
135
|
+
if (we !== 0)
|
|
136
136
|
return;
|
|
137
|
-
const e =
|
|
137
|
+
const e = ke;
|
|
138
138
|
do {
|
|
139
139
|
try {
|
|
140
|
-
for (;
|
|
141
|
-
const t =
|
|
142
|
-
|
|
140
|
+
for (; we < Te.length; ) {
|
|
141
|
+
const t = Te[we];
|
|
142
|
+
we++, Re(t), Yr(t.$$);
|
|
143
143
|
}
|
|
144
144
|
} catch (t) {
|
|
145
|
-
throw
|
|
145
|
+
throw Te.length = 0, we = 0, t;
|
|
146
146
|
}
|
|
147
|
-
for (
|
|
148
|
-
|
|
149
|
-
for (let t = 0; t <
|
|
150
|
-
const
|
|
151
|
-
|
|
147
|
+
for (Re(null), Te.length = 0, we = 0; We.length; )
|
|
148
|
+
We.pop()();
|
|
149
|
+
for (let t = 0; t < Oe.length; t += 1) {
|
|
150
|
+
const r = Oe[t];
|
|
151
|
+
ot.has(r) || (ot.add(r), r());
|
|
152
152
|
}
|
|
153
|
-
|
|
154
|
-
} while (
|
|
153
|
+
Oe.length = 0;
|
|
154
|
+
} while (Te.length);
|
|
155
155
|
for (; Pt.length; )
|
|
156
156
|
Pt.pop()();
|
|
157
|
-
|
|
157
|
+
ft = !1, ot.clear(), Re(e);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Yr(e) {
|
|
160
160
|
if (e.fragment !== null) {
|
|
161
|
-
e.update(),
|
|
161
|
+
e.update(), _e(e.before_update);
|
|
162
162
|
const t = e.dirty;
|
|
163
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
163
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(pt);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
const t = [],
|
|
168
|
-
|
|
166
|
+
function Kr(e) {
|
|
167
|
+
const t = [], r = [];
|
|
168
|
+
Oe.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Oe = t;
|
|
169
169
|
}
|
|
170
|
-
const
|
|
171
|
-
function
|
|
172
|
-
e && e.i && (
|
|
170
|
+
const en = /* @__PURE__ */ new Set();
|
|
171
|
+
function tn(e, t) {
|
|
172
|
+
e && e.i && (en.delete(e), e.i(t));
|
|
173
173
|
}
|
|
174
174
|
function Mt(e) {
|
|
175
175
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
const { fragment:
|
|
179
|
-
|
|
180
|
-
const o = e.$$.on_mount.map(
|
|
181
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
182
|
-
}), i.forEach(
|
|
177
|
+
function rn(e, t, r) {
|
|
178
|
+
const { fragment: n, after_update: i } = e.$$;
|
|
179
|
+
n && n.m(t, r), pt(() => {
|
|
180
|
+
const o = e.$$.on_mount.map(Yt).filter(wt);
|
|
181
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : _e(o), e.$$.on_mount = [];
|
|
182
|
+
}), i.forEach(pt);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
185
|
-
const
|
|
186
|
-
|
|
184
|
+
function nn(e, t) {
|
|
185
|
+
const r = e.$$;
|
|
186
|
+
r.fragment !== null && (Kr(r.after_update), _e(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
e.$$.dirty[0] === -1 && (
|
|
188
|
+
function on(e, t) {
|
|
189
|
+
e.$$.dirty[0] === -1 && (Te.push(e), Jr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
const u =
|
|
193
|
-
|
|
194
|
-
const
|
|
191
|
+
function sn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
192
|
+
const u = ke;
|
|
193
|
+
Re(e);
|
|
194
|
+
const l = e.$$ = {
|
|
195
195
|
fragment: null,
|
|
196
196
|
ctx: [],
|
|
197
197
|
// state
|
|
198
198
|
props: o,
|
|
199
|
-
update:
|
|
199
|
+
update: Y,
|
|
200
200
|
not_equal: i,
|
|
201
|
-
bound:
|
|
201
|
+
bound: Bt(),
|
|
202
202
|
// lifecycle
|
|
203
203
|
on_mount: [],
|
|
204
204
|
on_destroy: [],
|
|
@@ -207,28 +207,28 @@ function ir(e, t, n, r, i, o, l = null, s = [-1]) {
|
|
|
207
207
|
after_update: [],
|
|
208
208
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
209
209
|
// everything else
|
|
210
|
-
callbacks:
|
|
210
|
+
callbacks: Bt(),
|
|
211
211
|
dirty: s,
|
|
212
212
|
skip_bound: !1,
|
|
213
213
|
root: t.target || u.$$.root
|
|
214
214
|
};
|
|
215
|
-
|
|
215
|
+
a && a(l.root);
|
|
216
216
|
let h = !1;
|
|
217
|
-
if (
|
|
218
|
-
const
|
|
219
|
-
return
|
|
220
|
-
}) : [],
|
|
217
|
+
if (l.ctx = r ? r(e, t.props || {}, (c, m, ..._) => {
|
|
218
|
+
const d = _.length ? _[0] : m;
|
|
219
|
+
return l.ctx && i(l.ctx[c], l.ctx[c] = d) && (!l.skip_bound && l.bound[c] && l.bound[c](d), h && on(e, c)), m;
|
|
220
|
+
}) : [], l.update(), h = !0, _e(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
221
221
|
if (t.hydrate) {
|
|
222
|
-
const c =
|
|
223
|
-
|
|
222
|
+
const c = Xr(t.target);
|
|
223
|
+
l.fragment && l.fragment.l(c), c.forEach(H);
|
|
224
224
|
} else
|
|
225
|
-
|
|
226
|
-
t.intro &&
|
|
225
|
+
l.fragment && l.fragment.c();
|
|
226
|
+
t.intro && tn(e.$$.fragment), rn(e, t.target, t.anchor), oe();
|
|
227
227
|
}
|
|
228
|
-
|
|
228
|
+
Re(u);
|
|
229
229
|
}
|
|
230
|
-
let
|
|
231
|
-
typeof HTMLElement == "function" && (
|
|
230
|
+
let tr;
|
|
231
|
+
typeof HTMLElement == "function" && (tr = class extends HTMLElement {
|
|
232
232
|
/** The Svelte component constructor */
|
|
233
233
|
$$ctor;
|
|
234
234
|
/** Slots */
|
|
@@ -247,20 +247,20 @@ typeof HTMLElement == "function" && (nn = class extends HTMLElement {
|
|
|
247
247
|
$$l = {};
|
|
248
248
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
249
249
|
$$l_u = /* @__PURE__ */ new Map();
|
|
250
|
-
constructor(e, t,
|
|
251
|
-
super(), this.$$ctor = e, this.$$s = t,
|
|
250
|
+
constructor(e, t, r) {
|
|
251
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
252
252
|
}
|
|
253
|
-
addEventListener(e, t,
|
|
253
|
+
addEventListener(e, t, r) {
|
|
254
254
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
255
|
-
const
|
|
256
|
-
this.$$l_u.set(t,
|
|
255
|
+
const n = this.$$c.$on(e, t);
|
|
256
|
+
this.$$l_u.set(t, n);
|
|
257
257
|
}
|
|
258
|
-
super.addEventListener(e, t,
|
|
258
|
+
super.addEventListener(e, t, r);
|
|
259
259
|
}
|
|
260
|
-
removeEventListener(e, t,
|
|
261
|
-
if (super.removeEventListener(e, t,
|
|
262
|
-
const
|
|
263
|
-
|
|
260
|
+
removeEventListener(e, t, r) {
|
|
261
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
262
|
+
const n = this.$$l_u.get(t);
|
|
263
|
+
n && (n(), this.$$l_u.delete(t));
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
async connectedCallback() {
|
|
@@ -270,14 +270,14 @@ typeof HTMLElement == "function" && (nn = class extends HTMLElement {
|
|
|
270
270
|
let o;
|
|
271
271
|
return {
|
|
272
272
|
c: function() {
|
|
273
|
-
o =
|
|
273
|
+
o = O("slot"), i !== "default" && p(o, "name", i);
|
|
274
274
|
},
|
|
275
275
|
/**
|
|
276
276
|
* @param {HTMLElement} target
|
|
277
277
|
* @param {HTMLElement} [anchor]
|
|
278
278
|
*/
|
|
279
|
-
m: function(u,
|
|
280
|
-
C(u, o,
|
|
279
|
+
m: function(u, l) {
|
|
280
|
+
C(u, o, l);
|
|
281
281
|
},
|
|
282
282
|
d: function(u) {
|
|
283
283
|
u && H(o);
|
|
@@ -287,12 +287,12 @@ typeof HTMLElement == "function" && (nn = class extends HTMLElement {
|
|
|
287
287
|
};
|
|
288
288
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
289
289
|
return;
|
|
290
|
-
const t = {},
|
|
290
|
+
const t = {}, r = Wr(this);
|
|
291
291
|
for (const i of this.$$s)
|
|
292
|
-
i in
|
|
292
|
+
i in r && (t[i] = [e(i)]);
|
|
293
293
|
for (const i of this.attributes) {
|
|
294
294
|
const o = this.$$g_p(i.name);
|
|
295
|
-
o in this.$$d || (this.$$d[o] =
|
|
295
|
+
o in this.$$d || (this.$$d[o] = $e(o, i.value, this.$$p_d, "toProp"));
|
|
296
296
|
}
|
|
297
297
|
for (const i in this.$$p_d)
|
|
298
298
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -306,11 +306,11 @@ typeof HTMLElement == "function" && (nn = class extends HTMLElement {
|
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
});
|
|
309
|
-
const
|
|
309
|
+
const n = () => {
|
|
310
310
|
this.$$r = !0;
|
|
311
311
|
for (const i in this.$$p_d)
|
|
312
312
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
313
|
-
const o =
|
|
313
|
+
const o = $e(
|
|
314
314
|
i,
|
|
315
315
|
this.$$d[i],
|
|
316
316
|
this.$$p_d,
|
|
@@ -320,19 +320,19 @@ typeof HTMLElement == "function" && (nn = class extends HTMLElement {
|
|
|
320
320
|
}
|
|
321
321
|
this.$$r = !1;
|
|
322
322
|
};
|
|
323
|
-
this.$$c.$$.after_update.push(
|
|
323
|
+
this.$$c.$$.after_update.push(n), n();
|
|
324
324
|
for (const i in this.$$l)
|
|
325
325
|
for (const o of this.$$l[i]) {
|
|
326
|
-
const
|
|
327
|
-
this.$$l_u.set(o,
|
|
326
|
+
const a = this.$$c.$on(i, o);
|
|
327
|
+
this.$$l_u.set(o, a);
|
|
328
328
|
}
|
|
329
329
|
this.$$l = {};
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
333
333
|
// and setting attributes through setAttribute etc, this is helpful
|
|
334
|
-
attributeChangedCallback(e, t,
|
|
335
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
334
|
+
attributeChangedCallback(e, t, r) {
|
|
335
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = $e(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
336
336
|
}
|
|
337
337
|
disconnectedCallback() {
|
|
338
338
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -345,11 +345,11 @@ typeof HTMLElement == "function" && (nn = class extends HTMLElement {
|
|
|
345
345
|
) || e;
|
|
346
346
|
}
|
|
347
347
|
});
|
|
348
|
-
function
|
|
349
|
-
const i =
|
|
350
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
348
|
+
function $e(e, t, r, n) {
|
|
349
|
+
const i = r[e]?.type;
|
|
350
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
351
351
|
return t;
|
|
352
|
-
if (
|
|
352
|
+
if (n === "toAttribute")
|
|
353
353
|
switch (i) {
|
|
354
354
|
case "Object":
|
|
355
355
|
case "Array":
|
|
@@ -374,10 +374,10 @@ function Ze(e, t, n, r) {
|
|
|
374
374
|
return t;
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
let
|
|
377
|
+
function an(e, t, r, n, i, o) {
|
|
378
|
+
let a = class extends tr {
|
|
379
379
|
constructor() {
|
|
380
|
-
super(e,
|
|
380
|
+
super(e, r, i), this.$$p_d = t;
|
|
381
381
|
}
|
|
382
382
|
static get observedAttributes() {
|
|
383
383
|
return Object.keys(t).map(
|
|
@@ -386,24 +386,24 @@ function or(e, t, n, r, i, o) {
|
|
|
386
386
|
}
|
|
387
387
|
};
|
|
388
388
|
return Object.keys(t).forEach((s) => {
|
|
389
|
-
Object.defineProperty(
|
|
389
|
+
Object.defineProperty(a.prototype, s, {
|
|
390
390
|
get() {
|
|
391
391
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
392
392
|
},
|
|
393
393
|
set(u) {
|
|
394
|
-
u =
|
|
394
|
+
u = $e(s, u, t), this.$$d[s] = u, this.$$c?.$set({ [s]: u });
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
|
-
}),
|
|
398
|
-
Object.defineProperty(
|
|
397
|
+
}), n.forEach((s) => {
|
|
398
|
+
Object.defineProperty(a.prototype, s, {
|
|
399
399
|
get() {
|
|
400
400
|
return this.$$c?.[s];
|
|
401
401
|
}
|
|
402
402
|
});
|
|
403
403
|
}), e.element = /** @type {any} */
|
|
404
|
-
|
|
404
|
+
a, a;
|
|
405
405
|
}
|
|
406
|
-
class
|
|
406
|
+
class ln {
|
|
407
407
|
/**
|
|
408
408
|
* ### PRIVATE API
|
|
409
409
|
*
|
|
@@ -422,7 +422,7 @@ class sr {
|
|
|
422
422
|
$$set = void 0;
|
|
423
423
|
/** @returns {void} */
|
|
424
424
|
$destroy() {
|
|
425
|
-
|
|
425
|
+
nn(this, 1), this.$destroy = Y;
|
|
426
426
|
}
|
|
427
427
|
/**
|
|
428
428
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -430,13 +430,13 @@ class sr {
|
|
|
430
430
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
431
431
|
* @returns {() => void}
|
|
432
432
|
*/
|
|
433
|
-
$on(t,
|
|
434
|
-
if (!
|
|
435
|
-
return
|
|
436
|
-
const
|
|
437
|
-
return
|
|
438
|
-
const i =
|
|
439
|
-
i !== -1 &&
|
|
433
|
+
$on(t, r) {
|
|
434
|
+
if (!wt(r))
|
|
435
|
+
return Y;
|
|
436
|
+
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
437
|
+
return n.push(r), () => {
|
|
438
|
+
const i = n.indexOf(r);
|
|
439
|
+
i !== -1 && n.splice(i, 1);
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
442
|
/**
|
|
@@ -444,246 +444,246 @@ class sr {
|
|
|
444
444
|
* @returns {void}
|
|
445
445
|
*/
|
|
446
446
|
$set(t) {
|
|
447
|
-
this.$$set && !
|
|
447
|
+
this.$$set && !Ur(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
const
|
|
451
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
452
|
-
function
|
|
450
|
+
const un = "4";
|
|
451
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(un);
|
|
452
|
+
function hn(e, t) {
|
|
453
453
|
if (e) {
|
|
454
|
-
const
|
|
455
|
-
|
|
454
|
+
const r = document.createElement("style");
|
|
455
|
+
r.innerHTML = t, e.appendChild(r);
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function cn(e, t) {
|
|
459
459
|
if (!e || !t)
|
|
460
460
|
return;
|
|
461
|
-
const
|
|
462
|
-
fetch(
|
|
461
|
+
const r = new URL(t);
|
|
462
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
463
463
|
const i = document.createElement("style");
|
|
464
|
-
i.innerHTML =
|
|
465
|
-
}).catch((
|
|
466
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
464
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
465
|
+
}).catch((n) => {
|
|
466
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
467
467
|
});
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function fn(e, t, r) {
|
|
470
470
|
if (window.emMessageBus) {
|
|
471
|
-
const
|
|
471
|
+
const n = document.createElement("style");
|
|
472
472
|
window.emMessageBus.subscribe(t, (i) => {
|
|
473
|
-
|
|
473
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
const
|
|
478
|
-
function
|
|
477
|
+
const Se = [];
|
|
478
|
+
function pn(e, t) {
|
|
479
479
|
return {
|
|
480
|
-
subscribe:
|
|
480
|
+
subscribe: Je(e, t).subscribe
|
|
481
481
|
};
|
|
482
482
|
}
|
|
483
|
-
function
|
|
484
|
-
let
|
|
485
|
-
const
|
|
483
|
+
function Je(e, t = Y) {
|
|
484
|
+
let r;
|
|
485
|
+
const n = /* @__PURE__ */ new Set();
|
|
486
486
|
function i(s) {
|
|
487
|
-
if (
|
|
488
|
-
const u = !
|
|
489
|
-
for (const
|
|
490
|
-
|
|
487
|
+
if (Kt(e, s) && (e = s, r)) {
|
|
488
|
+
const u = !Se.length;
|
|
489
|
+
for (const l of n)
|
|
490
|
+
l[1](), Se.push(l, e);
|
|
491
491
|
if (u) {
|
|
492
|
-
for (let
|
|
493
|
-
|
|
494
|
-
|
|
492
|
+
for (let l = 0; l < Se.length; l += 2)
|
|
493
|
+
Se[l][0](Se[l + 1]);
|
|
494
|
+
Se.length = 0;
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
function o(s) {
|
|
499
499
|
i(s(e));
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
const
|
|
503
|
-
return
|
|
504
|
-
|
|
501
|
+
function a(s, u = Y) {
|
|
502
|
+
const l = [s, u];
|
|
503
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || Y), s(e), () => {
|
|
504
|
+
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
|
-
return { set: i, update: o, subscribe:
|
|
507
|
+
return { set: i, update: o, subscribe: a };
|
|
508
508
|
}
|
|
509
|
-
function
|
|
510
|
-
const
|
|
509
|
+
function Pe(e, t, r) {
|
|
510
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
511
511
|
if (!i.every(Boolean))
|
|
512
512
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
513
513
|
const o = t.length < 2;
|
|
514
|
-
return
|
|
514
|
+
return pn(r, (a, s) => {
|
|
515
515
|
let u = !1;
|
|
516
|
-
const
|
|
517
|
-
let h = 0, c =
|
|
518
|
-
const
|
|
516
|
+
const l = [];
|
|
517
|
+
let h = 0, c = Y;
|
|
518
|
+
const m = () => {
|
|
519
519
|
if (h)
|
|
520
520
|
return;
|
|
521
521
|
c();
|
|
522
|
-
const
|
|
523
|
-
o ?
|
|
524
|
-
},
|
|
525
|
-
(
|
|
526
|
-
|
|
522
|
+
const d = t(n ? l[0] : l, a, s);
|
|
523
|
+
o ? a(d) : c = wt(d) ? d : Y;
|
|
524
|
+
}, _ = i.map(
|
|
525
|
+
(d, g) => er(
|
|
526
|
+
d,
|
|
527
527
|
(E) => {
|
|
528
|
-
|
|
528
|
+
l[g] = E, h &= ~(1 << g), u && m();
|
|
529
529
|
},
|
|
530
530
|
() => {
|
|
531
|
-
h |= 1 <<
|
|
531
|
+
h |= 1 << g;
|
|
532
532
|
}
|
|
533
533
|
)
|
|
534
534
|
);
|
|
535
|
-
return u = !0,
|
|
536
|
-
|
|
535
|
+
return u = !0, m(), function() {
|
|
536
|
+
_e(_), c(), u = !1;
|
|
537
537
|
};
|
|
538
538
|
});
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function mn(e) {
|
|
541
541
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
542
542
|
}
|
|
543
|
-
var
|
|
544
|
-
return
|
|
543
|
+
var dn = function(t) {
|
|
544
|
+
return gn(t) && !bn(t);
|
|
545
545
|
};
|
|
546
|
-
function
|
|
546
|
+
function gn(e) {
|
|
547
547
|
return !!e && typeof e == "object";
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function bn(e) {
|
|
550
550
|
var t = Object.prototype.toString.call(e);
|
|
551
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
551
|
+
return t === "[object RegExp]" || t === "[object Date]" || En(e);
|
|
552
552
|
}
|
|
553
|
-
var
|
|
554
|
-
function
|
|
555
|
-
return e.$$typeof ===
|
|
553
|
+
var yn = typeof Symbol == "function" && Symbol.for, _n = yn ? Symbol.for("react.element") : 60103;
|
|
554
|
+
function En(e) {
|
|
555
|
+
return e.$$typeof === _n;
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function vn(e) {
|
|
558
558
|
return Array.isArray(e) ? [] : {};
|
|
559
559
|
}
|
|
560
|
-
function
|
|
561
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
560
|
+
function De(e, t) {
|
|
561
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? He(vn(e), e, t) : e;
|
|
562
562
|
}
|
|
563
|
-
function
|
|
564
|
-
return e.concat(t).map(function(
|
|
565
|
-
return
|
|
563
|
+
function xn(e, t, r) {
|
|
564
|
+
return e.concat(t).map(function(n) {
|
|
565
|
+
return De(n, r);
|
|
566
566
|
});
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function wn(e, t) {
|
|
569
569
|
if (!t.customMerge)
|
|
570
|
-
return
|
|
571
|
-
var
|
|
572
|
-
return typeof
|
|
570
|
+
return He;
|
|
571
|
+
var r = t.customMerge(e);
|
|
572
|
+
return typeof r == "function" ? r : He;
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function Sn(e) {
|
|
575
575
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
576
576
|
return Object.propertyIsEnumerable.call(e, t);
|
|
577
577
|
}) : [];
|
|
578
578
|
}
|
|
579
579
|
function It(e) {
|
|
580
|
-
return Object.keys(e).concat(
|
|
580
|
+
return Object.keys(e).concat(Sn(e));
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function rr(e, t) {
|
|
583
583
|
try {
|
|
584
584
|
return t in e;
|
|
585
585
|
} catch {
|
|
586
586
|
return !1;
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
-
function
|
|
590
|
-
return
|
|
589
|
+
function Tn(e, t) {
|
|
590
|
+
return rr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
591
591
|
}
|
|
592
|
-
function
|
|
593
|
-
var
|
|
594
|
-
return
|
|
595
|
-
|
|
592
|
+
function On(e, t, r) {
|
|
593
|
+
var n = {};
|
|
594
|
+
return r.isMergeableObject(e) && It(e).forEach(function(i) {
|
|
595
|
+
n[i] = De(e[i], r);
|
|
596
596
|
}), It(t).forEach(function(i) {
|
|
597
|
-
|
|
598
|
-
}),
|
|
597
|
+
Tn(e, i) || (rr(e, i) && r.isMergeableObject(t[i]) ? n[i] = wn(i, r)(e[i], t[i], r) : n[i] = De(t[i], r));
|
|
598
|
+
}), n;
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
|
|
602
|
-
var
|
|
603
|
-
return o ?
|
|
600
|
+
function He(e, t, r) {
|
|
601
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || xn, r.isMergeableObject = r.isMergeableObject || dn, r.cloneUnlessOtherwiseSpecified = De;
|
|
602
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
603
|
+
return o ? n ? r.arrayMerge(e, t, r) : On(e, t, r) : De(t, r);
|
|
604
604
|
}
|
|
605
|
-
|
|
605
|
+
He.all = function(t, r) {
|
|
606
606
|
if (!Array.isArray(t))
|
|
607
607
|
throw new Error("first argument should be an array");
|
|
608
|
-
return t.reduce(function(
|
|
609
|
-
return
|
|
608
|
+
return t.reduce(function(n, i) {
|
|
609
|
+
return He(n, i, r);
|
|
610
610
|
}, {});
|
|
611
611
|
};
|
|
612
|
-
var
|
|
613
|
-
const
|
|
614
|
-
var
|
|
615
|
-
return
|
|
616
|
-
|
|
617
|
-
} || function(
|
|
618
|
-
for (var i in
|
|
619
|
-
Object.prototype.hasOwnProperty.call(
|
|
620
|
-
},
|
|
612
|
+
var Hn = He, An = Hn;
|
|
613
|
+
const Cn = /* @__PURE__ */ mn(An);
|
|
614
|
+
var mt = function(e, t) {
|
|
615
|
+
return mt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
616
|
+
r.__proto__ = n;
|
|
617
|
+
} || function(r, n) {
|
|
618
|
+
for (var i in n)
|
|
619
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
620
|
+
}, mt(e, t);
|
|
621
621
|
};
|
|
622
|
-
function
|
|
622
|
+
function Ye(e, t) {
|
|
623
623
|
if (typeof t != "function" && t !== null)
|
|
624
624
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
625
|
-
|
|
626
|
-
function
|
|
625
|
+
mt(e, t);
|
|
626
|
+
function r() {
|
|
627
627
|
this.constructor = e;
|
|
628
628
|
}
|
|
629
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
630
|
-
}
|
|
631
|
-
var
|
|
632
|
-
return
|
|
633
|
-
for (var
|
|
634
|
-
|
|
635
|
-
for (var o in
|
|
636
|
-
Object.prototype.hasOwnProperty.call(
|
|
629
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
630
|
+
}
|
|
631
|
+
var se = function() {
|
|
632
|
+
return se = Object.assign || function(t) {
|
|
633
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
634
|
+
r = arguments[n];
|
|
635
|
+
for (var o in r)
|
|
636
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
637
637
|
}
|
|
638
638
|
return t;
|
|
639
|
-
},
|
|
639
|
+
}, se.apply(this, arguments);
|
|
640
640
|
};
|
|
641
|
-
function
|
|
642
|
-
var
|
|
643
|
-
for (var
|
|
644
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
641
|
+
function Bn(e, t) {
|
|
642
|
+
var r = {};
|
|
643
|
+
for (var n in e)
|
|
644
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
645
645
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
646
|
-
for (var i = 0,
|
|
647
|
-
t.indexOf(
|
|
648
|
-
return
|
|
646
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
647
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
648
|
+
return r;
|
|
649
649
|
}
|
|
650
|
-
function
|
|
651
|
-
if (
|
|
652
|
-
for (var
|
|
653
|
-
(o || !(
|
|
650
|
+
function st(e, t, r) {
|
|
651
|
+
if (r || arguments.length === 2)
|
|
652
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
653
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
654
654
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
655
655
|
}
|
|
656
|
-
function
|
|
657
|
-
var
|
|
656
|
+
function at(e, t) {
|
|
657
|
+
var r = t && t.cache ? t.cache : kn, n = t && t.serializer ? t.serializer : Nn, i = t && t.strategy ? t.strategy : In;
|
|
658
658
|
return i(e, {
|
|
659
|
-
cache:
|
|
660
|
-
serializer:
|
|
659
|
+
cache: r,
|
|
660
|
+
serializer: n
|
|
661
661
|
});
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function Pn(e) {
|
|
664
664
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
665
665
|
}
|
|
666
|
-
function
|
|
667
|
-
var i =
|
|
668
|
-
return typeof o > "u" && (o = e.call(this,
|
|
666
|
+
function Mn(e, t, r, n) {
|
|
667
|
+
var i = Pn(n) ? n : r(n), o = t.get(i);
|
|
668
|
+
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
669
669
|
}
|
|
670
|
-
function
|
|
671
|
-
var
|
|
672
|
-
return typeof o > "u" && (o = e.apply(this,
|
|
670
|
+
function nr(e, t, r) {
|
|
671
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
672
|
+
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
return
|
|
674
|
+
function ir(e, t, r, n, i) {
|
|
675
|
+
return r.bind(t, e, n, i);
|
|
676
676
|
}
|
|
677
|
-
function
|
|
678
|
-
var
|
|
679
|
-
return
|
|
677
|
+
function In(e, t) {
|
|
678
|
+
var r = e.length === 1 ? Mn : nr;
|
|
679
|
+
return ir(e, this, r, t.cache.create(), t.serializer);
|
|
680
680
|
}
|
|
681
|
-
function
|
|
682
|
-
return
|
|
681
|
+
function Ln(e, t) {
|
|
682
|
+
return ir(e, this, nr, t.cache.create(), t.serializer);
|
|
683
683
|
}
|
|
684
|
-
var
|
|
684
|
+
var Nn = function() {
|
|
685
685
|
return JSON.stringify(arguments);
|
|
686
|
-
},
|
|
686
|
+
}, Rn = (
|
|
687
687
|
/** @class */
|
|
688
688
|
function() {
|
|
689
689
|
function e() {
|
|
@@ -691,82 +691,82 @@ var Mr = function() {
|
|
|
691
691
|
}
|
|
692
692
|
return e.prototype.get = function(t) {
|
|
693
693
|
return this.cache[t];
|
|
694
|
-
}, e.prototype.set = function(t,
|
|
695
|
-
this.cache[t] =
|
|
694
|
+
}, e.prototype.set = function(t, r) {
|
|
695
|
+
this.cache[t] = r;
|
|
696
696
|
}, e;
|
|
697
697
|
}()
|
|
698
|
-
),
|
|
698
|
+
), kn = {
|
|
699
699
|
create: function() {
|
|
700
|
-
return new
|
|
700
|
+
return new Rn();
|
|
701
701
|
}
|
|
702
|
-
},
|
|
703
|
-
variadic:
|
|
704
|
-
},
|
|
705
|
-
return
|
|
706
|
-
for (var
|
|
707
|
-
|
|
708
|
-
for (var o in
|
|
709
|
-
Object.prototype.hasOwnProperty.call(
|
|
702
|
+
}, lt = {
|
|
703
|
+
variadic: Ln
|
|
704
|
+
}, Ze = function() {
|
|
705
|
+
return Ze = Object.assign || function(t) {
|
|
706
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
707
|
+
r = arguments[n];
|
|
708
|
+
for (var o in r)
|
|
709
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
710
710
|
}
|
|
711
711
|
return t;
|
|
712
|
-
},
|
|
712
|
+
}, Ze.apply(this, arguments);
|
|
713
713
|
};
|
|
714
|
-
var
|
|
714
|
+
var w;
|
|
715
715
|
(function(e) {
|
|
716
716
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
717
|
-
})(
|
|
718
|
-
var
|
|
717
|
+
})(w || (w = {}));
|
|
718
|
+
var I;
|
|
719
719
|
(function(e) {
|
|
720
720
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
721
|
-
})(
|
|
722
|
-
var
|
|
721
|
+
})(I || (I = {}));
|
|
722
|
+
var Ae;
|
|
723
723
|
(function(e) {
|
|
724
724
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
725
|
-
})(
|
|
726
|
-
function
|
|
727
|
-
return e.type ===
|
|
725
|
+
})(Ae || (Ae = {}));
|
|
726
|
+
function Lt(e) {
|
|
727
|
+
return e.type === I.literal;
|
|
728
728
|
}
|
|
729
|
-
function
|
|
730
|
-
return e.type ===
|
|
729
|
+
function Dn(e) {
|
|
730
|
+
return e.type === I.argument;
|
|
731
731
|
}
|
|
732
|
-
function
|
|
733
|
-
return e.type ===
|
|
732
|
+
function or(e) {
|
|
733
|
+
return e.type === I.number;
|
|
734
734
|
}
|
|
735
|
-
function
|
|
736
|
-
return e.type ===
|
|
735
|
+
function sr(e) {
|
|
736
|
+
return e.type === I.date;
|
|
737
737
|
}
|
|
738
|
-
function
|
|
739
|
-
return e.type ===
|
|
738
|
+
function ar(e) {
|
|
739
|
+
return e.type === I.time;
|
|
740
740
|
}
|
|
741
|
-
function
|
|
742
|
-
return e.type ===
|
|
741
|
+
function lr(e) {
|
|
742
|
+
return e.type === I.select;
|
|
743
743
|
}
|
|
744
|
-
function
|
|
745
|
-
return e.type ===
|
|
744
|
+
function ur(e) {
|
|
745
|
+
return e.type === I.plural;
|
|
746
746
|
}
|
|
747
|
-
function
|
|
748
|
-
return e.type ===
|
|
747
|
+
function Un(e) {
|
|
748
|
+
return e.type === I.pound;
|
|
749
749
|
}
|
|
750
|
-
function
|
|
751
|
-
return e.type ===
|
|
750
|
+
function hr(e) {
|
|
751
|
+
return e.type === I.tag;
|
|
752
752
|
}
|
|
753
|
-
function
|
|
754
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
753
|
+
function cr(e) {
|
|
754
|
+
return !!(e && typeof e == "object" && e.type === Ae.number);
|
|
755
755
|
}
|
|
756
|
-
function
|
|
757
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
756
|
+
function dt(e) {
|
|
757
|
+
return !!(e && typeof e == "object" && e.type === Ae.dateTime);
|
|
758
758
|
}
|
|
759
|
-
var
|
|
760
|
-
function
|
|
759
|
+
var fr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Gn = /(?:[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;
|
|
760
|
+
function Fn(e) {
|
|
761
761
|
var t = {};
|
|
762
|
-
return e.replace(
|
|
763
|
-
var
|
|
764
|
-
switch (
|
|
762
|
+
return e.replace(Gn, function(r) {
|
|
763
|
+
var n = r.length;
|
|
764
|
+
switch (r[0]) {
|
|
765
765
|
case "G":
|
|
766
|
-
t.era =
|
|
766
|
+
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
767
767
|
break;
|
|
768
768
|
case "y":
|
|
769
|
-
t.year =
|
|
769
|
+
t.year = n === 2 ? "2-digit" : "numeric";
|
|
770
770
|
break;
|
|
771
771
|
case "Y":
|
|
772
772
|
case "u":
|
|
@@ -778,30 +778,30 @@ function Ur(e) {
|
|
|
778
778
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
779
779
|
case "M":
|
|
780
780
|
case "L":
|
|
781
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
781
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
782
782
|
break;
|
|
783
783
|
case "w":
|
|
784
784
|
case "W":
|
|
785
785
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
786
786
|
case "d":
|
|
787
|
-
t.day = ["numeric", "2-digit"][
|
|
787
|
+
t.day = ["numeric", "2-digit"][n - 1];
|
|
788
788
|
break;
|
|
789
789
|
case "D":
|
|
790
790
|
case "F":
|
|
791
791
|
case "g":
|
|
792
792
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
793
793
|
case "E":
|
|
794
|
-
t.weekday =
|
|
794
|
+
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
795
795
|
break;
|
|
796
796
|
case "e":
|
|
797
|
-
if (
|
|
797
|
+
if (n < 4)
|
|
798
798
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
799
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
799
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
800
800
|
break;
|
|
801
801
|
case "c":
|
|
802
|
-
if (
|
|
802
|
+
if (n < 4)
|
|
803
803
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
804
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
804
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
805
805
|
break;
|
|
806
806
|
case "a":
|
|
807
807
|
t.hour12 = !0;
|
|
@@ -810,32 +810,32 @@ function Ur(e) {
|
|
|
810
810
|
case "B":
|
|
811
811
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
812
812
|
case "h":
|
|
813
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
813
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
814
814
|
break;
|
|
815
815
|
case "H":
|
|
816
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
816
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
817
817
|
break;
|
|
818
818
|
case "K":
|
|
819
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
819
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
820
820
|
break;
|
|
821
821
|
case "k":
|
|
822
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
822
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
823
823
|
break;
|
|
824
824
|
case "j":
|
|
825
825
|
case "J":
|
|
826
826
|
case "C":
|
|
827
827
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
828
828
|
case "m":
|
|
829
|
-
t.minute = ["numeric", "2-digit"][
|
|
829
|
+
t.minute = ["numeric", "2-digit"][n - 1];
|
|
830
830
|
break;
|
|
831
831
|
case "s":
|
|
832
|
-
t.second = ["numeric", "2-digit"][
|
|
832
|
+
t.second = ["numeric", "2-digit"][n - 1];
|
|
833
833
|
break;
|
|
834
834
|
case "S":
|
|
835
835
|
case "A":
|
|
836
836
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
837
837
|
case "z":
|
|
838
|
-
t.timeZoneName =
|
|
838
|
+
t.timeZoneName = n < 4 ? "short" : "long";
|
|
839
839
|
break;
|
|
840
840
|
case "Z":
|
|
841
841
|
case "O":
|
|
@@ -850,44 +850,44 @@ function Ur(e) {
|
|
|
850
850
|
}
|
|
851
851
|
var R = function() {
|
|
852
852
|
return R = Object.assign || function(t) {
|
|
853
|
-
for (var
|
|
854
|
-
|
|
855
|
-
for (var o in
|
|
856
|
-
Object.prototype.hasOwnProperty.call(
|
|
853
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
854
|
+
r = arguments[n];
|
|
855
|
+
for (var o in r)
|
|
856
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
857
857
|
}
|
|
858
858
|
return t;
|
|
859
859
|
}, R.apply(this, arguments);
|
|
860
860
|
};
|
|
861
|
-
var
|
|
862
|
-
function
|
|
861
|
+
var jn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
862
|
+
function Vn(e) {
|
|
863
863
|
if (e.length === 0)
|
|
864
864
|
throw new Error("Number skeleton cannot be empty");
|
|
865
|
-
for (var t = e.split(
|
|
866
|
-
return
|
|
867
|
-
}),
|
|
868
|
-
var o = i[
|
|
869
|
-
if (
|
|
865
|
+
for (var t = e.split(jn).filter(function(m) {
|
|
866
|
+
return m.length > 0;
|
|
867
|
+
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
868
|
+
var o = i[n], a = o.split("/");
|
|
869
|
+
if (a.length === 0)
|
|
870
870
|
throw new Error("Invalid number skeleton");
|
|
871
|
-
for (var s =
|
|
872
|
-
var c = h[
|
|
871
|
+
for (var s = a[0], u = a.slice(1), l = 0, h = u; l < h.length; l++) {
|
|
872
|
+
var c = h[l];
|
|
873
873
|
if (c.length === 0)
|
|
874
874
|
throw new Error("Invalid number skeleton");
|
|
875
875
|
}
|
|
876
|
-
|
|
876
|
+
r.push({ stem: s, options: u });
|
|
877
877
|
}
|
|
878
|
-
return
|
|
878
|
+
return r;
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function $n(e) {
|
|
881
881
|
return e.replace(/^(.*?)-/, "");
|
|
882
882
|
}
|
|
883
|
-
var
|
|
884
|
-
function
|
|
883
|
+
var Nt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, pr = /^(@+)?(\+|#+)?[rs]?$/g, zn = /(\*)(0+)|(#+)(0+)|(0+)/g, mr = /^(0+)$/;
|
|
884
|
+
function Rt(e) {
|
|
885
885
|
var t = {};
|
|
886
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
887
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
886
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(pr, function(r, n, i) {
|
|
887
|
+
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)), "";
|
|
888
888
|
}), t;
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function dr(e) {
|
|
891
891
|
switch (e) {
|
|
892
892
|
case "sign-auto":
|
|
893
893
|
return {
|
|
@@ -927,27 +927,27 @@ function bn(e) {
|
|
|
927
927
|
};
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function Xn(e) {
|
|
931
931
|
var t;
|
|
932
932
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
933
933
|
notation: "engineering"
|
|
934
934
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
935
935
|
notation: "scientific"
|
|
936
936
|
}, e = e.slice(1)), t) {
|
|
937
|
-
var
|
|
938
|
-
if (
|
|
937
|
+
var r = e.slice(0, 2);
|
|
938
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !mr.test(e))
|
|
939
939
|
throw new Error("Malformed concise eng/scientific notation");
|
|
940
940
|
t.minimumIntegerDigits = e.length;
|
|
941
941
|
}
|
|
942
942
|
return t;
|
|
943
943
|
}
|
|
944
|
-
function
|
|
945
|
-
var t = {},
|
|
946
|
-
return
|
|
944
|
+
function kt(e) {
|
|
945
|
+
var t = {}, r = dr(e);
|
|
946
|
+
return r || t;
|
|
947
947
|
}
|
|
948
|
-
function
|
|
949
|
-
for (var t = {},
|
|
950
|
-
var i = r
|
|
948
|
+
function Wn(e) {
|
|
949
|
+
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
950
|
+
var i = n[r];
|
|
951
951
|
switch (i.stem) {
|
|
952
952
|
case "percent":
|
|
953
953
|
case "%":
|
|
@@ -969,7 +969,7 @@ function zr(e) {
|
|
|
969
969
|
continue;
|
|
970
970
|
case "measure-unit":
|
|
971
971
|
case "unit":
|
|
972
|
-
t.style = "unit", t.unit =
|
|
972
|
+
t.style = "unit", t.unit = $n(i.options[0]);
|
|
973
973
|
continue;
|
|
974
974
|
case "compact-short":
|
|
975
975
|
case "K":
|
|
@@ -980,13 +980,13 @@ function zr(e) {
|
|
|
980
980
|
t.notation = "compact", t.compactDisplay = "long";
|
|
981
981
|
continue;
|
|
982
982
|
case "scientific":
|
|
983
|
-
t = R(R(R({}, t), { notation: "scientific" }), i.options.reduce(function(u,
|
|
984
|
-
return R(R({}, u),
|
|
983
|
+
t = R(R(R({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
984
|
+
return R(R({}, u), kt(l));
|
|
985
985
|
}, {}));
|
|
986
986
|
continue;
|
|
987
987
|
case "engineering":
|
|
988
|
-
t = R(R(R({}, t), { notation: "engineering" }), i.options.reduce(function(u,
|
|
989
|
-
return R(R({}, u),
|
|
988
|
+
t = R(R(R({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
989
|
+
return R(R({}, u), kt(l));
|
|
990
990
|
}, {}));
|
|
991
991
|
continue;
|
|
992
992
|
case "notation-simple":
|
|
@@ -1031,45 +1031,45 @@ function zr(e) {
|
|
|
1031
1031
|
case "integer-width":
|
|
1032
1032
|
if (i.options.length > 1)
|
|
1033
1033
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1034
|
-
i.options[0].replace(
|
|
1035
|
-
if (
|
|
1034
|
+
i.options[0].replace(zn, function(u, l, h, c, m, _) {
|
|
1035
|
+
if (l)
|
|
1036
1036
|
t.minimumIntegerDigits = h.length;
|
|
1037
1037
|
else {
|
|
1038
|
-
if (c &&
|
|
1038
|
+
if (c && m)
|
|
1039
1039
|
throw new Error("We currently do not support maximum integer digits");
|
|
1040
|
-
if (
|
|
1040
|
+
if (_)
|
|
1041
1041
|
throw new Error("We currently do not support exact integer digits");
|
|
1042
1042
|
}
|
|
1043
1043
|
return "";
|
|
1044
1044
|
});
|
|
1045
1045
|
continue;
|
|
1046
1046
|
}
|
|
1047
|
-
if (
|
|
1047
|
+
if (mr.test(i.stem)) {
|
|
1048
1048
|
t.minimumIntegerDigits = i.stem.length;
|
|
1049
1049
|
continue;
|
|
1050
1050
|
}
|
|
1051
|
-
if (
|
|
1051
|
+
if (Nt.test(i.stem)) {
|
|
1052
1052
|
if (i.options.length > 1)
|
|
1053
1053
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1054
|
-
i.stem.replace(
|
|
1055
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1054
|
+
i.stem.replace(Nt, function(u, l, h, c, m, _) {
|
|
1055
|
+
return h === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && _ ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + _.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1056
1056
|
});
|
|
1057
1057
|
var o = i.options[0];
|
|
1058
|
-
o === "w" ? t = R(R({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = R(R({}, t),
|
|
1058
|
+
o === "w" ? t = R(R({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = R(R({}, t), Rt(o)));
|
|
1059
1059
|
continue;
|
|
1060
1060
|
}
|
|
1061
|
-
if (
|
|
1062
|
-
t = R(R({}, t),
|
|
1061
|
+
if (pr.test(i.stem)) {
|
|
1062
|
+
t = R(R({}, t), Rt(i.stem));
|
|
1063
1063
|
continue;
|
|
1064
1064
|
}
|
|
1065
|
-
var
|
|
1066
|
-
|
|
1067
|
-
var s =
|
|
1065
|
+
var a = dr(i.stem);
|
|
1066
|
+
a && (t = R(R({}, t), a));
|
|
1067
|
+
var s = Xn(i.stem);
|
|
1068
1068
|
s && (t = R(R({}, t), s));
|
|
1069
1069
|
}
|
|
1070
1070
|
return t;
|
|
1071
1071
|
}
|
|
1072
|
-
var
|
|
1072
|
+
var Ve = {
|
|
1073
1073
|
"001": [
|
|
1074
1074
|
"H",
|
|
1075
1075
|
"h"
|
|
@@ -2484,23 +2484,23 @@ var We = {
|
|
|
2484
2484
|
"h"
|
|
2485
2485
|
]
|
|
2486
2486
|
};
|
|
2487
|
-
function
|
|
2488
|
-
for (var
|
|
2489
|
-
var i = e.charAt(
|
|
2487
|
+
function Zn(e, t) {
|
|
2488
|
+
for (var r = "", n = 0; n < e.length; n++) {
|
|
2489
|
+
var i = e.charAt(n);
|
|
2490
2490
|
if (i === "j") {
|
|
2491
|
-
for (var o = 0;
|
|
2492
|
-
o++,
|
|
2493
|
-
var
|
|
2494
|
-
for ((
|
|
2495
|
-
|
|
2496
|
-
for (;
|
|
2497
|
-
|
|
2491
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2492
|
+
o++, n++;
|
|
2493
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = qn(t);
|
|
2494
|
+
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
2495
|
+
r += u;
|
|
2496
|
+
for (; a-- > 0; )
|
|
2497
|
+
r = l + r;
|
|
2498
2498
|
} else
|
|
2499
|
-
i === "J" ?
|
|
2499
|
+
i === "J" ? r += "H" : r += i;
|
|
2500
2500
|
}
|
|
2501
|
-
return
|
|
2501
|
+
return r;
|
|
2502
2502
|
}
|
|
2503
|
-
function
|
|
2503
|
+
function qn(e) {
|
|
2504
2504
|
var t = e.hourCycle;
|
|
2505
2505
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2506
2506
|
e.hourCycles && // @ts-ignore
|
|
@@ -2517,73 +2517,73 @@ function Wr(e) {
|
|
|
2517
2517
|
default:
|
|
2518
2518
|
throw new Error("Invalid hourCycle");
|
|
2519
2519
|
}
|
|
2520
|
-
var
|
|
2521
|
-
|
|
2522
|
-
var i =
|
|
2520
|
+
var r = e.language, n;
|
|
2521
|
+
r !== "root" && (n = e.maximize().region);
|
|
2522
|
+
var i = Ve[n || ""] || Ve[r || ""] || Ve["".concat(r, "-001")] || Ve["001"];
|
|
2523
2523
|
return i[0];
|
|
2524
2524
|
}
|
|
2525
|
-
var
|
|
2526
|
-
function
|
|
2525
|
+
var ut, Qn = new RegExp("^".concat(fr.source, "*")), Jn = new RegExp("".concat(fr.source, "*$"));
|
|
2526
|
+
function T(e, t) {
|
|
2527
2527
|
return { start: e, end: t };
|
|
2528
2528
|
}
|
|
2529
|
-
var
|
|
2529
|
+
var Yn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Kn = !!String.fromCodePoint, ei = !!Object.fromEntries, ti = !!String.prototype.codePointAt, ri = !!String.prototype.trimStart, ni = !!String.prototype.trimEnd, ii = !!Number.isSafeInteger, oi = ii ? Number.isSafeInteger : function(e) {
|
|
2530
2530
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2531
|
-
},
|
|
2531
|
+
}, gt = !0;
|
|
2532
2532
|
try {
|
|
2533
|
-
var
|
|
2534
|
-
|
|
2533
|
+
var si = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2534
|
+
gt = ((ut = si.exec("a")) === null || ut === void 0 ? void 0 : ut[0]) === "a";
|
|
2535
2535
|
} catch {
|
|
2536
|
-
|
|
2536
|
+
gt = !1;
|
|
2537
2537
|
}
|
|
2538
|
-
var
|
|
2538
|
+
var Dt = Yn ? (
|
|
2539
2539
|
// Native
|
|
2540
|
-
function(t,
|
|
2541
|
-
return t.startsWith(
|
|
2540
|
+
function(t, r, n) {
|
|
2541
|
+
return t.startsWith(r, n);
|
|
2542
2542
|
}
|
|
2543
2543
|
) : (
|
|
2544
2544
|
// For IE11
|
|
2545
|
-
function(t,
|
|
2546
|
-
return t.slice(
|
|
2545
|
+
function(t, r, n) {
|
|
2546
|
+
return t.slice(n, n + r.length) === r;
|
|
2547
2547
|
}
|
|
2548
|
-
),
|
|
2548
|
+
), bt = Kn ? String.fromCodePoint : (
|
|
2549
2549
|
// IE11
|
|
2550
2550
|
function() {
|
|
2551
|
-
for (var t = [],
|
|
2552
|
-
t[
|
|
2553
|
-
for (var
|
|
2554
|
-
if (
|
|
2555
|
-
throw RangeError(
|
|
2556
|
-
|
|
2551
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2552
|
+
t[r] = arguments[r];
|
|
2553
|
+
for (var n = "", i = t.length, o = 0, a; i > o; ) {
|
|
2554
|
+
if (a = t[o++], a > 1114111)
|
|
2555
|
+
throw RangeError(a + " is not a valid code point");
|
|
2556
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
2557
2557
|
}
|
|
2558
|
-
return
|
|
2558
|
+
return n;
|
|
2559
2559
|
}
|
|
2560
|
-
),
|
|
2560
|
+
), Ut = (
|
|
2561
2561
|
// native
|
|
2562
|
-
|
|
2562
|
+
ei ? Object.fromEntries : (
|
|
2563
2563
|
// Ponyfill
|
|
2564
2564
|
function(t) {
|
|
2565
|
-
for (var
|
|
2566
|
-
var o = i[
|
|
2567
|
-
|
|
2565
|
+
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2566
|
+
var o = i[n], a = o[0], s = o[1];
|
|
2567
|
+
r[a] = s;
|
|
2568
2568
|
}
|
|
2569
|
-
return
|
|
2569
|
+
return r;
|
|
2570
2570
|
}
|
|
2571
2571
|
)
|
|
2572
|
-
),
|
|
2572
|
+
), gr = ti ? (
|
|
2573
2573
|
// Native
|
|
2574
|
-
function(t,
|
|
2575
|
-
return t.codePointAt(
|
|
2574
|
+
function(t, r) {
|
|
2575
|
+
return t.codePointAt(r);
|
|
2576
2576
|
}
|
|
2577
2577
|
) : (
|
|
2578
2578
|
// IE 11
|
|
2579
|
-
function(t,
|
|
2580
|
-
var
|
|
2581
|
-
if (!(
|
|
2582
|
-
var i = t.charCodeAt(
|
|
2583
|
-
return i < 55296 || i > 56319 ||
|
|
2579
|
+
function(t, r) {
|
|
2580
|
+
var n = t.length;
|
|
2581
|
+
if (!(r < 0 || r >= n)) {
|
|
2582
|
+
var i = t.charCodeAt(r), o;
|
|
2583
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2584
2584
|
}
|
|
2585
2585
|
}
|
|
2586
|
-
),
|
|
2586
|
+
), ai = ri ? (
|
|
2587
2587
|
// Native
|
|
2588
2588
|
function(t) {
|
|
2589
2589
|
return t.trimStart();
|
|
@@ -2591,9 +2591,9 @@ var Ut = Qr ? (
|
|
|
2591
2591
|
) : (
|
|
2592
2592
|
// Ponyfill
|
|
2593
2593
|
function(t) {
|
|
2594
|
-
return t.replace(
|
|
2594
|
+
return t.replace(Qn, "");
|
|
2595
2595
|
}
|
|
2596
|
-
),
|
|
2596
|
+
), li = ni ? (
|
|
2597
2597
|
// Native
|
|
2598
2598
|
function(t) {
|
|
2599
2599
|
return t.trimEnd();
|
|
@@ -2601,126 +2601,126 @@ var Ut = Qr ? (
|
|
|
2601
2601
|
) : (
|
|
2602
2602
|
// Ponyfill
|
|
2603
2603
|
function(t) {
|
|
2604
|
-
return t.replace(
|
|
2604
|
+
return t.replace(Jn, "");
|
|
2605
2605
|
}
|
|
2606
2606
|
);
|
|
2607
|
-
function
|
|
2607
|
+
function br(e, t) {
|
|
2608
2608
|
return new RegExp(e, t);
|
|
2609
2609
|
}
|
|
2610
|
-
var
|
|
2611
|
-
if (
|
|
2612
|
-
var
|
|
2613
|
-
|
|
2614
|
-
var
|
|
2615
|
-
|
|
2616
|
-
var i =
|
|
2617
|
-
return (
|
|
2610
|
+
var yt;
|
|
2611
|
+
if (gt) {
|
|
2612
|
+
var Gt = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2613
|
+
yt = function(t, r) {
|
|
2614
|
+
var n;
|
|
2615
|
+
Gt.lastIndex = r;
|
|
2616
|
+
var i = Gt.exec(t);
|
|
2617
|
+
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2618
2618
|
};
|
|
2619
2619
|
} else
|
|
2620
|
-
|
|
2621
|
-
for (var
|
|
2622
|
-
var i =
|
|
2623
|
-
if (i === void 0 ||
|
|
2620
|
+
yt = function(t, r) {
|
|
2621
|
+
for (var n = []; ; ) {
|
|
2622
|
+
var i = gr(t, r);
|
|
2623
|
+
if (i === void 0 || yr(i) || fi(i))
|
|
2624
2624
|
break;
|
|
2625
|
-
|
|
2625
|
+
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2626
2626
|
}
|
|
2627
|
-
return
|
|
2627
|
+
return bt.apply(void 0, n);
|
|
2628
2628
|
};
|
|
2629
|
-
var
|
|
2629
|
+
var ui = (
|
|
2630
2630
|
/** @class */
|
|
2631
2631
|
function() {
|
|
2632
|
-
function e(t,
|
|
2633
|
-
|
|
2632
|
+
function e(t, r) {
|
|
2633
|
+
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;
|
|
2634
2634
|
}
|
|
2635
2635
|
return e.prototype.parse = function() {
|
|
2636
2636
|
if (this.offset() !== 0)
|
|
2637
2637
|
throw Error("parser can only be used once");
|
|
2638
2638
|
return this.parseMessage(0, "", !1);
|
|
2639
|
-
}, e.prototype.parseMessage = function(t,
|
|
2639
|
+
}, e.prototype.parseMessage = function(t, r, n) {
|
|
2640
2640
|
for (var i = []; !this.isEOF(); ) {
|
|
2641
2641
|
var o = this.char();
|
|
2642
2642
|
if (o === 123) {
|
|
2643
|
-
var
|
|
2644
|
-
if (
|
|
2645
|
-
return
|
|
2646
|
-
i.push(
|
|
2643
|
+
var a = this.parseArgument(t, n);
|
|
2644
|
+
if (a.err)
|
|
2645
|
+
return a;
|
|
2646
|
+
i.push(a.val);
|
|
2647
2647
|
} else {
|
|
2648
2648
|
if (o === 125 && t > 0)
|
|
2649
2649
|
break;
|
|
2650
|
-
if (o === 35 && (
|
|
2650
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2651
2651
|
var s = this.clonePosition();
|
|
2652
2652
|
this.bump(), i.push({
|
|
2653
|
-
type:
|
|
2654
|
-
location:
|
|
2653
|
+
type: I.pound,
|
|
2654
|
+
location: T(s, this.clonePosition())
|
|
2655
2655
|
});
|
|
2656
2656
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2657
|
-
if (
|
|
2657
|
+
if (n)
|
|
2658
2658
|
break;
|
|
2659
|
-
return this.error(
|
|
2660
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2661
|
-
var
|
|
2662
|
-
if (
|
|
2663
|
-
return
|
|
2664
|
-
i.push(
|
|
2659
|
+
return this.error(w.UNMATCHED_CLOSING_TAG, T(this.clonePosition(), this.clonePosition()));
|
|
2660
|
+
} else if (o === 60 && !this.ignoreTag && _t(this.peek() || 0)) {
|
|
2661
|
+
var a = this.parseTag(t, r);
|
|
2662
|
+
if (a.err)
|
|
2663
|
+
return a;
|
|
2664
|
+
i.push(a.val);
|
|
2665
2665
|
} else {
|
|
2666
|
-
var
|
|
2667
|
-
if (
|
|
2668
|
-
return
|
|
2669
|
-
i.push(
|
|
2666
|
+
var a = this.parseLiteral(t, r);
|
|
2667
|
+
if (a.err)
|
|
2668
|
+
return a;
|
|
2669
|
+
i.push(a.val);
|
|
2670
2670
|
}
|
|
2671
2671
|
}
|
|
2672
2672
|
}
|
|
2673
2673
|
return { val: i, err: null };
|
|
2674
|
-
}, e.prototype.parseTag = function(t,
|
|
2675
|
-
var
|
|
2674
|
+
}, e.prototype.parseTag = function(t, r) {
|
|
2675
|
+
var n = this.clonePosition();
|
|
2676
2676
|
this.bump();
|
|
2677
2677
|
var i = this.parseTagName();
|
|
2678
2678
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2679
2679
|
return {
|
|
2680
2680
|
val: {
|
|
2681
|
-
type:
|
|
2681
|
+
type: I.literal,
|
|
2682
2682
|
value: "<".concat(i, "/>"),
|
|
2683
|
-
location:
|
|
2683
|
+
location: T(n, this.clonePosition())
|
|
2684
2684
|
},
|
|
2685
2685
|
err: null
|
|
2686
2686
|
};
|
|
2687
2687
|
if (this.bumpIf(">")) {
|
|
2688
|
-
var o = this.parseMessage(t + 1,
|
|
2688
|
+
var o = this.parseMessage(t + 1, r, !0);
|
|
2689
2689
|
if (o.err)
|
|
2690
2690
|
return o;
|
|
2691
|
-
var
|
|
2691
|
+
var a = o.val, s = this.clonePosition();
|
|
2692
2692
|
if (this.bumpIf("</")) {
|
|
2693
|
-
if (this.isEOF() || !
|
|
2694
|
-
return this.error(
|
|
2695
|
-
var u = this.clonePosition(),
|
|
2696
|
-
return i !==
|
|
2693
|
+
if (this.isEOF() || !_t(this.char()))
|
|
2694
|
+
return this.error(w.INVALID_TAG, T(s, this.clonePosition()));
|
|
2695
|
+
var u = this.clonePosition(), l = this.parseTagName();
|
|
2696
|
+
return i !== l ? this.error(w.UNMATCHED_CLOSING_TAG, T(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2697
2697
|
val: {
|
|
2698
|
-
type:
|
|
2698
|
+
type: I.tag,
|
|
2699
2699
|
value: i,
|
|
2700
|
-
children:
|
|
2701
|
-
location:
|
|
2700
|
+
children: a,
|
|
2701
|
+
location: T(n, this.clonePosition())
|
|
2702
2702
|
},
|
|
2703
2703
|
err: null
|
|
2704
|
-
} : this.error(
|
|
2704
|
+
} : this.error(w.INVALID_TAG, T(s, this.clonePosition())));
|
|
2705
2705
|
} else
|
|
2706
|
-
return this.error(
|
|
2706
|
+
return this.error(w.UNCLOSED_TAG, T(n, this.clonePosition()));
|
|
2707
2707
|
} else
|
|
2708
|
-
return this.error(
|
|
2708
|
+
return this.error(w.INVALID_TAG, T(n, this.clonePosition()));
|
|
2709
2709
|
}, e.prototype.parseTagName = function() {
|
|
2710
2710
|
var t = this.offset();
|
|
2711
|
-
for (this.bump(); !this.isEOF() &&
|
|
2711
|
+
for (this.bump(); !this.isEOF() && ci(this.char()); )
|
|
2712
2712
|
this.bump();
|
|
2713
2713
|
return this.message.slice(t, this.offset());
|
|
2714
|
-
}, e.prototype.parseLiteral = function(t,
|
|
2715
|
-
for (var
|
|
2716
|
-
var o = this.tryParseQuote(
|
|
2714
|
+
}, e.prototype.parseLiteral = function(t, r) {
|
|
2715
|
+
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
2716
|
+
var o = this.tryParseQuote(r);
|
|
2717
2717
|
if (o) {
|
|
2718
2718
|
i += o;
|
|
2719
2719
|
continue;
|
|
2720
2720
|
}
|
|
2721
|
-
var
|
|
2722
|
-
if (
|
|
2723
|
-
i +=
|
|
2721
|
+
var a = this.tryParseUnquoted(t, r);
|
|
2722
|
+
if (a) {
|
|
2723
|
+
i += a;
|
|
2724
2724
|
continue;
|
|
2725
2725
|
}
|
|
2726
2726
|
var s = this.tryParseLeftAngleBracket();
|
|
@@ -2730,14 +2730,14 @@ var ai = (
|
|
|
2730
2730
|
}
|
|
2731
2731
|
break;
|
|
2732
2732
|
}
|
|
2733
|
-
var u =
|
|
2733
|
+
var u = T(n, this.clonePosition());
|
|
2734
2734
|
return {
|
|
2735
|
-
val: { type:
|
|
2735
|
+
val: { type: I.literal, value: i, location: u },
|
|
2736
2736
|
err: null
|
|
2737
2737
|
};
|
|
2738
2738
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2739
2739
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2740
|
-
!
|
|
2740
|
+
!hi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2741
2741
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2742
2742
|
if (this.isEOF() || this.char() !== 39)
|
|
2743
2743
|
return null;
|
|
@@ -2757,114 +2757,114 @@ var ai = (
|
|
|
2757
2757
|
return null;
|
|
2758
2758
|
}
|
|
2759
2759
|
this.bump();
|
|
2760
|
-
var
|
|
2760
|
+
var r = [this.char()];
|
|
2761
2761
|
for (this.bump(); !this.isEOF(); ) {
|
|
2762
|
-
var
|
|
2763
|
-
if (
|
|
2762
|
+
var n = this.char();
|
|
2763
|
+
if (n === 39)
|
|
2764
2764
|
if (this.peek() === 39)
|
|
2765
|
-
|
|
2765
|
+
r.push(39), this.bump();
|
|
2766
2766
|
else {
|
|
2767
2767
|
this.bump();
|
|
2768
2768
|
break;
|
|
2769
2769
|
}
|
|
2770
2770
|
else
|
|
2771
|
-
|
|
2771
|
+
r.push(n);
|
|
2772
2772
|
this.bump();
|
|
2773
2773
|
}
|
|
2774
|
-
return
|
|
2775
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
2774
|
+
return bt.apply(void 0, r);
|
|
2775
|
+
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2776
2776
|
if (this.isEOF())
|
|
2777
2777
|
return null;
|
|
2778
|
-
var
|
|
2779
|
-
return
|
|
2780
|
-
}, e.prototype.parseArgument = function(t,
|
|
2781
|
-
var
|
|
2778
|
+
var n = this.char();
|
|
2779
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), bt(n));
|
|
2780
|
+
}, e.prototype.parseArgument = function(t, r) {
|
|
2781
|
+
var n = this.clonePosition();
|
|
2782
2782
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2783
|
-
return this.error(
|
|
2783
|
+
return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
|
|
2784
2784
|
if (this.char() === 125)
|
|
2785
|
-
return this.bump(), this.error(
|
|
2785
|
+
return this.bump(), this.error(w.EMPTY_ARGUMENT, T(n, this.clonePosition()));
|
|
2786
2786
|
var i = this.parseIdentifierIfPossible().value;
|
|
2787
2787
|
if (!i)
|
|
2788
|
-
return this.error(
|
|
2788
|
+
return this.error(w.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
|
|
2789
2789
|
if (this.bumpSpace(), this.isEOF())
|
|
2790
|
-
return this.error(
|
|
2790
|
+
return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
|
|
2791
2791
|
switch (this.char()) {
|
|
2792
2792
|
case 125:
|
|
2793
2793
|
return this.bump(), {
|
|
2794
2794
|
val: {
|
|
2795
|
-
type:
|
|
2795
|
+
type: I.argument,
|
|
2796
2796
|
// value does not include the opening and closing braces.
|
|
2797
2797
|
value: i,
|
|
2798
|
-
location:
|
|
2798
|
+
location: T(n, this.clonePosition())
|
|
2799
2799
|
},
|
|
2800
2800
|
err: null
|
|
2801
2801
|
};
|
|
2802
2802
|
case 44:
|
|
2803
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2803
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2804
2804
|
default:
|
|
2805
|
-
return this.error(
|
|
2805
|
+
return this.error(w.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
|
|
2806
2806
|
}
|
|
2807
2807
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2808
|
-
var t = this.clonePosition(),
|
|
2808
|
+
var t = this.clonePosition(), r = this.offset(), n = yt(this.message, r), i = r + n.length;
|
|
2809
2809
|
this.bumpTo(i);
|
|
2810
|
-
var o = this.clonePosition(),
|
|
2811
|
-
return { value:
|
|
2812
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
2813
|
-
var o,
|
|
2810
|
+
var o = this.clonePosition(), a = T(t, o);
|
|
2811
|
+
return { value: n, location: a };
|
|
2812
|
+
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2813
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
2814
2814
|
switch (s) {
|
|
2815
2815
|
case "":
|
|
2816
|
-
return this.error(
|
|
2816
|
+
return this.error(w.EXPECT_ARGUMENT_TYPE, T(a, u));
|
|
2817
2817
|
case "number":
|
|
2818
2818
|
case "date":
|
|
2819
2819
|
case "time": {
|
|
2820
2820
|
this.bumpSpace();
|
|
2821
|
-
var
|
|
2821
|
+
var l = null;
|
|
2822
2822
|
if (this.bumpIf(",")) {
|
|
2823
2823
|
this.bumpSpace();
|
|
2824
2824
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2825
2825
|
if (c.err)
|
|
2826
2826
|
return c;
|
|
2827
|
-
var
|
|
2828
|
-
if (
|
|
2829
|
-
return this.error(
|
|
2830
|
-
var
|
|
2831
|
-
|
|
2827
|
+
var m = li(c.val);
|
|
2828
|
+
if (m.length === 0)
|
|
2829
|
+
return this.error(w.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
|
|
2830
|
+
var _ = T(h, this.clonePosition());
|
|
2831
|
+
l = { style: m, styleLocation: _ };
|
|
2832
2832
|
}
|
|
2833
|
-
var
|
|
2834
|
-
if (
|
|
2835
|
-
return
|
|
2836
|
-
var
|
|
2837
|
-
if (
|
|
2838
|
-
var E =
|
|
2833
|
+
var d = this.tryParseArgumentClose(i);
|
|
2834
|
+
if (d.err)
|
|
2835
|
+
return d;
|
|
2836
|
+
var g = T(i, this.clonePosition());
|
|
2837
|
+
if (l && Dt(l?.style, "::", 0)) {
|
|
2838
|
+
var E = ai(l.style.slice(2));
|
|
2839
2839
|
if (s === "number") {
|
|
2840
|
-
var c = this.parseNumberSkeletonFromString(E,
|
|
2840
|
+
var c = this.parseNumberSkeletonFromString(E, l.styleLocation);
|
|
2841
2841
|
return c.err ? c : {
|
|
2842
|
-
val: { type:
|
|
2842
|
+
val: { type: I.number, value: n, location: g, style: c.val },
|
|
2843
2843
|
err: null
|
|
2844
2844
|
};
|
|
2845
2845
|
} else {
|
|
2846
2846
|
if (E.length === 0)
|
|
2847
|
-
return this.error(
|
|
2848
|
-
var
|
|
2849
|
-
this.locale && (
|
|
2850
|
-
var
|
|
2851
|
-
type:
|
|
2852
|
-
pattern:
|
|
2853
|
-
location:
|
|
2854
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2855
|
-
},
|
|
2847
|
+
return this.error(w.EXPECT_DATE_TIME_SKELETON, g);
|
|
2848
|
+
var S = E;
|
|
2849
|
+
this.locale && (S = Zn(E, this.locale));
|
|
2850
|
+
var m = {
|
|
2851
|
+
type: Ae.dateTime,
|
|
2852
|
+
pattern: S,
|
|
2853
|
+
location: l.styleLocation,
|
|
2854
|
+
parsedOptions: this.shouldParseSkeletons ? Fn(S) : {}
|
|
2855
|
+
}, P = s === "date" ? I.date : I.time;
|
|
2856
2856
|
return {
|
|
2857
|
-
val: { type:
|
|
2857
|
+
val: { type: P, value: n, location: g, style: m },
|
|
2858
2858
|
err: null
|
|
2859
2859
|
};
|
|
2860
2860
|
}
|
|
2861
2861
|
}
|
|
2862
2862
|
return {
|
|
2863
2863
|
val: {
|
|
2864
|
-
type: s === "number" ?
|
|
2865
|
-
value:
|
|
2866
|
-
location:
|
|
2867
|
-
style: (o =
|
|
2864
|
+
type: s === "number" ? I.number : s === "date" ? I.date : I.time,
|
|
2865
|
+
value: n,
|
|
2866
|
+
location: g,
|
|
2867
|
+
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
|
2868
2868
|
},
|
|
2869
2869
|
err: null
|
|
2870
2870
|
};
|
|
@@ -2874,39 +2874,39 @@ var ai = (
|
|
|
2874
2874
|
case "select": {
|
|
2875
2875
|
var L = this.clonePosition();
|
|
2876
2876
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2877
|
-
return this.error(
|
|
2877
|
+
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, T(L, Ze({}, L)));
|
|
2878
2878
|
this.bumpSpace();
|
|
2879
|
-
var
|
|
2880
|
-
if (s !== "select" &&
|
|
2879
|
+
var D = this.parseIdentifierIfPossible(), M = 0;
|
|
2880
|
+
if (s !== "select" && D.value === "offset") {
|
|
2881
2881
|
if (!this.bumpIf(":"))
|
|
2882
|
-
return this.error(
|
|
2882
|
+
return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T(this.clonePosition(), this.clonePosition()));
|
|
2883
2883
|
this.bumpSpace();
|
|
2884
|
-
var c = this.tryParseDecimalInteger(
|
|
2884
|
+
var c = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2885
2885
|
if (c.err)
|
|
2886
2886
|
return c;
|
|
2887
|
-
this.bumpSpace(),
|
|
2887
|
+
this.bumpSpace(), D = this.parseIdentifierIfPossible(), M = c.val;
|
|
2888
2888
|
}
|
|
2889
|
-
var N = this.tryParsePluralOrSelectOptions(t, s,
|
|
2889
|
+
var N = this.tryParsePluralOrSelectOptions(t, s, r, D);
|
|
2890
2890
|
if (N.err)
|
|
2891
2891
|
return N;
|
|
2892
|
-
var
|
|
2893
|
-
if (
|
|
2894
|
-
return
|
|
2895
|
-
var K =
|
|
2892
|
+
var d = this.tryParseArgumentClose(i);
|
|
2893
|
+
if (d.err)
|
|
2894
|
+
return d;
|
|
2895
|
+
var K = T(i, this.clonePosition());
|
|
2896
2896
|
return s === "select" ? {
|
|
2897
2897
|
val: {
|
|
2898
|
-
type:
|
|
2899
|
-
value:
|
|
2900
|
-
options:
|
|
2898
|
+
type: I.select,
|
|
2899
|
+
value: n,
|
|
2900
|
+
options: Ut(N.val),
|
|
2901
2901
|
location: K
|
|
2902
2902
|
},
|
|
2903
2903
|
err: null
|
|
2904
2904
|
} : {
|
|
2905
2905
|
val: {
|
|
2906
|
-
type:
|
|
2907
|
-
value:
|
|
2908
|
-
options:
|
|
2909
|
-
offset:
|
|
2906
|
+
type: I.plural,
|
|
2907
|
+
value: n,
|
|
2908
|
+
options: Ut(N.val),
|
|
2909
|
+
offset: M,
|
|
2910
2910
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2911
2911
|
location: K
|
|
2912
2912
|
},
|
|
@@ -2914,19 +2914,19 @@ var ai = (
|
|
|
2914
2914
|
};
|
|
2915
2915
|
}
|
|
2916
2916
|
default:
|
|
2917
|
-
return this.error(
|
|
2917
|
+
return this.error(w.INVALID_ARGUMENT_TYPE, T(a, u));
|
|
2918
2918
|
}
|
|
2919
2919
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2920
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2920
|
+
return this.isEOF() || this.char() !== 125 ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2921
2921
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2922
|
-
for (var t = 0,
|
|
2923
|
-
var
|
|
2924
|
-
switch (
|
|
2922
|
+
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2923
|
+
var n = this.char();
|
|
2924
|
+
switch (n) {
|
|
2925
2925
|
case 39: {
|
|
2926
2926
|
this.bump();
|
|
2927
2927
|
var i = this.clonePosition();
|
|
2928
2928
|
if (!this.bumpUntil("'"))
|
|
2929
|
-
return this.error(
|
|
2929
|
+
return this.error(w.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, T(i, this.clonePosition()));
|
|
2930
2930
|
this.bump();
|
|
2931
2931
|
break;
|
|
2932
2932
|
}
|
|
@@ -2939,7 +2939,7 @@ var ai = (
|
|
|
2939
2939
|
t -= 1;
|
|
2940
2940
|
else
|
|
2941
2941
|
return {
|
|
2942
|
-
val: this.message.slice(
|
|
2942
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
2943
2943
|
err: null
|
|
2944
2944
|
};
|
|
2945
2945
|
break;
|
|
@@ -2950,70 +2950,70 @@ var ai = (
|
|
|
2950
2950
|
}
|
|
2951
2951
|
}
|
|
2952
2952
|
return {
|
|
2953
|
-
val: this.message.slice(
|
|
2953
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
2954
2954
|
err: null
|
|
2955
2955
|
};
|
|
2956
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
2957
|
-
var
|
|
2956
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2957
|
+
var n = [];
|
|
2958
2958
|
try {
|
|
2959
|
-
|
|
2959
|
+
n = Vn(t);
|
|
2960
2960
|
} catch {
|
|
2961
|
-
return this.error(
|
|
2961
|
+
return this.error(w.INVALID_NUMBER_SKELETON, r);
|
|
2962
2962
|
}
|
|
2963
2963
|
return {
|
|
2964
2964
|
val: {
|
|
2965
|
-
type:
|
|
2966
|
-
tokens:
|
|
2967
|
-
location:
|
|
2968
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2965
|
+
type: Ae.number,
|
|
2966
|
+
tokens: n,
|
|
2967
|
+
location: r,
|
|
2968
|
+
parsedOptions: this.shouldParseSkeletons ? Wn(n) : {}
|
|
2969
2969
|
},
|
|
2970
2970
|
err: null
|
|
2971
2971
|
};
|
|
2972
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
2973
|
-
for (var o,
|
|
2974
|
-
if (
|
|
2972
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2973
|
+
for (var o, a = !1, s = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
|
|
2974
|
+
if (l.length === 0) {
|
|
2975
2975
|
var c = this.clonePosition();
|
|
2976
|
-
if (
|
|
2977
|
-
var
|
|
2978
|
-
if (
|
|
2979
|
-
return
|
|
2980
|
-
h =
|
|
2976
|
+
if (r !== "select" && this.bumpIf("=")) {
|
|
2977
|
+
var m = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_SELECTOR, w.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2978
|
+
if (m.err)
|
|
2979
|
+
return m;
|
|
2980
|
+
h = T(c, this.clonePosition()), l = this.message.slice(c.offset, this.offset());
|
|
2981
2981
|
} else
|
|
2982
2982
|
break;
|
|
2983
2983
|
}
|
|
2984
|
-
if (u.has(
|
|
2985
|
-
return this.error(
|
|
2986
|
-
|
|
2987
|
-
var
|
|
2984
|
+
if (u.has(l))
|
|
2985
|
+
return this.error(r === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2986
|
+
l === "other" && (a = !0), this.bumpSpace();
|
|
2987
|
+
var _ = this.clonePosition();
|
|
2988
2988
|
if (!this.bumpIf("{"))
|
|
2989
|
-
return this.error(
|
|
2990
|
-
var
|
|
2991
|
-
if (
|
|
2992
|
-
return
|
|
2993
|
-
var
|
|
2994
|
-
if (
|
|
2995
|
-
return
|
|
2989
|
+
return this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
|
|
2990
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
2991
|
+
if (d.err)
|
|
2992
|
+
return d;
|
|
2993
|
+
var g = this.tryParseArgumentClose(_);
|
|
2994
|
+
if (g.err)
|
|
2995
|
+
return g;
|
|
2996
2996
|
s.push([
|
|
2997
|
-
|
|
2997
|
+
l,
|
|
2998
2998
|
{
|
|
2999
|
-
value:
|
|
3000
|
-
location:
|
|
2999
|
+
value: d.val,
|
|
3000
|
+
location: T(_, this.clonePosition())
|
|
3001
3001
|
}
|
|
3002
|
-
]), u.add(
|
|
3002
|
+
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
|
|
3003
3003
|
}
|
|
3004
|
-
return s.length === 0 ? this.error(
|
|
3005
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3006
|
-
var
|
|
3007
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3008
|
-
for (var o = !1,
|
|
3004
|
+
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 };
|
|
3005
|
+
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3006
|
+
var n = 1, i = this.clonePosition();
|
|
3007
|
+
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3008
|
+
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3009
3009
|
var s = this.char();
|
|
3010
3010
|
if (s >= 48 && s <= 57)
|
|
3011
|
-
o = !0,
|
|
3011
|
+
o = !0, a = a * 10 + (s - 48), this.bump();
|
|
3012
3012
|
else
|
|
3013
3013
|
break;
|
|
3014
3014
|
}
|
|
3015
|
-
var u =
|
|
3016
|
-
return o ? (
|
|
3015
|
+
var u = T(i, this.clonePosition());
|
|
3016
|
+
return o ? (a *= n, oi(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3017
3017
|
}, e.prototype.offset = function() {
|
|
3018
3018
|
return this.position.offset;
|
|
3019
3019
|
}, e.prototype.isEOF = function() {
|
|
@@ -3028,17 +3028,17 @@ var ai = (
|
|
|
3028
3028
|
var t = this.position.offset;
|
|
3029
3029
|
if (t >= this.message.length)
|
|
3030
3030
|
throw Error("out of bound");
|
|
3031
|
-
var
|
|
3032
|
-
if (
|
|
3031
|
+
var r = gr(this.message, t);
|
|
3032
|
+
if (r === void 0)
|
|
3033
3033
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3034
|
-
return
|
|
3035
|
-
}, e.prototype.error = function(t,
|
|
3034
|
+
return r;
|
|
3035
|
+
}, e.prototype.error = function(t, r) {
|
|
3036
3036
|
return {
|
|
3037
3037
|
val: null,
|
|
3038
3038
|
err: {
|
|
3039
3039
|
kind: t,
|
|
3040
3040
|
message: this.message,
|
|
3041
|
-
location:
|
|
3041
|
+
location: r
|
|
3042
3042
|
}
|
|
3043
3043
|
};
|
|
3044
3044
|
}, e.prototype.bump = function() {
|
|
@@ -3047,301 +3047,301 @@ var ai = (
|
|
|
3047
3047
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3048
3048
|
}
|
|
3049
3049
|
}, e.prototype.bumpIf = function(t) {
|
|
3050
|
-
if (
|
|
3051
|
-
for (var
|
|
3050
|
+
if (Dt(this.message, t, this.offset())) {
|
|
3051
|
+
for (var r = 0; r < t.length; r++)
|
|
3052
3052
|
this.bump();
|
|
3053
3053
|
return !0;
|
|
3054
3054
|
}
|
|
3055
3055
|
return !1;
|
|
3056
3056
|
}, e.prototype.bumpUntil = function(t) {
|
|
3057
|
-
var
|
|
3058
|
-
return
|
|
3057
|
+
var r = this.offset(), n = this.message.indexOf(t, r);
|
|
3058
|
+
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
3059
3059
|
}, e.prototype.bumpTo = function(t) {
|
|
3060
3060
|
if (this.offset() > t)
|
|
3061
3061
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3062
3062
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3063
|
-
var
|
|
3064
|
-
if (
|
|
3063
|
+
var r = this.offset();
|
|
3064
|
+
if (r === t)
|
|
3065
3065
|
break;
|
|
3066
|
-
if (
|
|
3066
|
+
if (r > t)
|
|
3067
3067
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3068
3068
|
if (this.bump(), this.isEOF())
|
|
3069
3069
|
break;
|
|
3070
3070
|
}
|
|
3071
3071
|
}, e.prototype.bumpSpace = function() {
|
|
3072
|
-
for (; !this.isEOF() &&
|
|
3072
|
+
for (; !this.isEOF() && yr(this.char()); )
|
|
3073
3073
|
this.bump();
|
|
3074
3074
|
}, e.prototype.peek = function() {
|
|
3075
3075
|
if (this.isEOF())
|
|
3076
3076
|
return null;
|
|
3077
|
-
var t = this.char(),
|
|
3078
|
-
return
|
|
3077
|
+
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3078
|
+
return n ?? null;
|
|
3079
3079
|
}, e;
|
|
3080
3080
|
}()
|
|
3081
3081
|
);
|
|
3082
|
-
function
|
|
3082
|
+
function _t(e) {
|
|
3083
3083
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3084
3084
|
}
|
|
3085
|
-
function
|
|
3086
|
-
return
|
|
3085
|
+
function hi(e) {
|
|
3086
|
+
return _t(e) || e === 47;
|
|
3087
3087
|
}
|
|
3088
|
-
function
|
|
3088
|
+
function ci(e) {
|
|
3089
3089
|
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;
|
|
3090
3090
|
}
|
|
3091
|
-
function
|
|
3091
|
+
function yr(e) {
|
|
3092
3092
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3093
3093
|
}
|
|
3094
|
-
function
|
|
3094
|
+
function fi(e) {
|
|
3095
3095
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3096
3096
|
}
|
|
3097
|
-
function
|
|
3097
|
+
function Et(e) {
|
|
3098
3098
|
e.forEach(function(t) {
|
|
3099
|
-
if (delete t.location,
|
|
3100
|
-
for (var
|
|
3101
|
-
delete t.options[
|
|
3099
|
+
if (delete t.location, lr(t) || ur(t))
|
|
3100
|
+
for (var r in t.options)
|
|
3101
|
+
delete t.options[r].location, Et(t.options[r].value);
|
|
3102
3102
|
else
|
|
3103
|
-
|
|
3103
|
+
or(t) && cr(t.style) || (sr(t) || ar(t)) && dt(t.style) ? delete t.style.location : hr(t) && Et(t.children);
|
|
3104
3104
|
});
|
|
3105
3105
|
}
|
|
3106
|
-
function
|
|
3107
|
-
t === void 0 && (t = {}), t =
|
|
3108
|
-
var
|
|
3109
|
-
if (
|
|
3110
|
-
var
|
|
3111
|
-
throw
|
|
3106
|
+
function pi(e, t) {
|
|
3107
|
+
t === void 0 && (t = {}), t = Ze({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3108
|
+
var r = new ui(e, t).parse();
|
|
3109
|
+
if (r.err) {
|
|
3110
|
+
var n = SyntaxError(w[r.err.kind]);
|
|
3111
|
+
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3112
3112
|
}
|
|
3113
|
-
return t?.captureLocation ||
|
|
3113
|
+
return t?.captureLocation || Et(r.val), r.val;
|
|
3114
3114
|
}
|
|
3115
|
-
var
|
|
3115
|
+
var Ce;
|
|
3116
3116
|
(function(e) {
|
|
3117
3117
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3118
|
-
})(
|
|
3119
|
-
var
|
|
3118
|
+
})(Ce || (Ce = {}));
|
|
3119
|
+
var Ke = (
|
|
3120
3120
|
/** @class */
|
|
3121
3121
|
function(e) {
|
|
3122
|
-
|
|
3123
|
-
function t(
|
|
3124
|
-
var o = e.call(this,
|
|
3125
|
-
return o.code =
|
|
3122
|
+
Ye(t, e);
|
|
3123
|
+
function t(r, n, i) {
|
|
3124
|
+
var o = e.call(this, r) || this;
|
|
3125
|
+
return o.code = n, o.originalMessage = i, o;
|
|
3126
3126
|
}
|
|
3127
3127
|
return t.prototype.toString = function() {
|
|
3128
3128
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3129
3129
|
}, t;
|
|
3130
3130
|
}(Error)
|
|
3131
|
-
),
|
|
3131
|
+
), Ft = (
|
|
3132
3132
|
/** @class */
|
|
3133
3133
|
function(e) {
|
|
3134
|
-
|
|
3135
|
-
function t(
|
|
3136
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3134
|
+
Ye(t, e);
|
|
3135
|
+
function t(r, n, i, o) {
|
|
3136
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ce.INVALID_VALUE, o) || this;
|
|
3137
3137
|
}
|
|
3138
3138
|
return t;
|
|
3139
|
-
}(
|
|
3140
|
-
),
|
|
3139
|
+
}(Ke)
|
|
3140
|
+
), mi = (
|
|
3141
3141
|
/** @class */
|
|
3142
3142
|
function(e) {
|
|
3143
|
-
|
|
3144
|
-
function t(
|
|
3145
|
-
return e.call(this, 'Value for "'.concat(
|
|
3143
|
+
Ye(t, e);
|
|
3144
|
+
function t(r, n, i) {
|
|
3145
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Ce.INVALID_VALUE, i) || this;
|
|
3146
3146
|
}
|
|
3147
3147
|
return t;
|
|
3148
|
-
}(
|
|
3149
|
-
),
|
|
3148
|
+
}(Ke)
|
|
3149
|
+
), di = (
|
|
3150
3150
|
/** @class */
|
|
3151
3151
|
function(e) {
|
|
3152
|
-
|
|
3153
|
-
function t(
|
|
3154
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3152
|
+
Ye(t, e);
|
|
3153
|
+
function t(r, n) {
|
|
3154
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Ce.MISSING_VALUE, n) || this;
|
|
3155
3155
|
}
|
|
3156
3156
|
return t;
|
|
3157
|
-
}(
|
|
3157
|
+
}(Ke)
|
|
3158
3158
|
), Z;
|
|
3159
3159
|
(function(e) {
|
|
3160
3160
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3161
3161
|
})(Z || (Z = {}));
|
|
3162
|
-
function
|
|
3163
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3164
|
-
var
|
|
3165
|
-
return !
|
|
3162
|
+
function gi(e) {
|
|
3163
|
+
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3164
|
+
var n = t[t.length - 1];
|
|
3165
|
+
return !n || n.type !== Z.literal || r.type !== Z.literal ? t.push(r) : n.value += r.value, t;
|
|
3166
3166
|
}, []);
|
|
3167
3167
|
}
|
|
3168
|
-
function
|
|
3168
|
+
function bi(e) {
|
|
3169
3169
|
return typeof e == "function";
|
|
3170
3170
|
}
|
|
3171
|
-
function
|
|
3172
|
-
if (e.length === 1 &&
|
|
3171
|
+
function ze(e, t, r, n, i, o, a) {
|
|
3172
|
+
if (e.length === 1 && Lt(e[0]))
|
|
3173
3173
|
return [
|
|
3174
3174
|
{
|
|
3175
3175
|
type: Z.literal,
|
|
3176
3176
|
value: e[0].value
|
|
3177
3177
|
}
|
|
3178
3178
|
];
|
|
3179
|
-
for (var s = [], u = 0,
|
|
3180
|
-
var h =
|
|
3181
|
-
if (
|
|
3179
|
+
for (var s = [], u = 0, l = e; u < l.length; u++) {
|
|
3180
|
+
var h = l[u];
|
|
3181
|
+
if (Lt(h)) {
|
|
3182
3182
|
s.push({
|
|
3183
3183
|
type: Z.literal,
|
|
3184
3184
|
value: h.value
|
|
3185
3185
|
});
|
|
3186
3186
|
continue;
|
|
3187
3187
|
}
|
|
3188
|
-
if (
|
|
3188
|
+
if (Un(h)) {
|
|
3189
3189
|
typeof o == "number" && s.push({
|
|
3190
3190
|
type: Z.literal,
|
|
3191
|
-
value:
|
|
3191
|
+
value: r.getNumberFormat(t).format(o)
|
|
3192
3192
|
});
|
|
3193
3193
|
continue;
|
|
3194
3194
|
}
|
|
3195
3195
|
var c = h.value;
|
|
3196
3196
|
if (!(i && c in i))
|
|
3197
|
-
throw new
|
|
3198
|
-
var
|
|
3199
|
-
if (
|
|
3200
|
-
(!
|
|
3201
|
-
type: typeof
|
|
3202
|
-
value:
|
|
3197
|
+
throw new di(c, a);
|
|
3198
|
+
var m = i[c];
|
|
3199
|
+
if (Dn(h)) {
|
|
3200
|
+
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), s.push({
|
|
3201
|
+
type: typeof m == "string" ? Z.literal : Z.object,
|
|
3202
|
+
value: m
|
|
3203
3203
|
});
|
|
3204
3204
|
continue;
|
|
3205
3205
|
}
|
|
3206
|
-
if (
|
|
3207
|
-
var
|
|
3206
|
+
if (sr(h)) {
|
|
3207
|
+
var _ = typeof h.style == "string" ? n.date[h.style] : dt(h.style) ? h.style.parsedOptions : void 0;
|
|
3208
3208
|
s.push({
|
|
3209
3209
|
type: Z.literal,
|
|
3210
|
-
value:
|
|
3210
|
+
value: r.getDateTimeFormat(t, _).format(m)
|
|
3211
3211
|
});
|
|
3212
3212
|
continue;
|
|
3213
3213
|
}
|
|
3214
|
-
if (
|
|
3215
|
-
var
|
|
3214
|
+
if (ar(h)) {
|
|
3215
|
+
var _ = typeof h.style == "string" ? n.time[h.style] : dt(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3216
3216
|
s.push({
|
|
3217
3217
|
type: Z.literal,
|
|
3218
|
-
value:
|
|
3218
|
+
value: r.getDateTimeFormat(t, _).format(m)
|
|
3219
3219
|
});
|
|
3220
3220
|
continue;
|
|
3221
3221
|
}
|
|
3222
|
-
if (
|
|
3223
|
-
var
|
|
3224
|
-
|
|
3222
|
+
if (or(h)) {
|
|
3223
|
+
var _ = typeof h.style == "string" ? n.number[h.style] : cr(h.style) ? h.style.parsedOptions : void 0;
|
|
3224
|
+
_ && _.scale && (m = m * (_.scale || 1)), s.push({
|
|
3225
3225
|
type: Z.literal,
|
|
3226
|
-
value:
|
|
3226
|
+
value: r.getNumberFormat(t, _).format(m)
|
|
3227
3227
|
});
|
|
3228
3228
|
continue;
|
|
3229
3229
|
}
|
|
3230
|
-
if (
|
|
3231
|
-
var
|
|
3232
|
-
if (!
|
|
3233
|
-
throw new
|
|
3234
|
-
var
|
|
3235
|
-
return
|
|
3230
|
+
if (hr(h)) {
|
|
3231
|
+
var d = h.children, g = h.value, E = i[g];
|
|
3232
|
+
if (!bi(E))
|
|
3233
|
+
throw new mi(g, "function", a);
|
|
3234
|
+
var S = ze(d, t, r, n, i, o), P = E(S.map(function(M) {
|
|
3235
|
+
return M.value;
|
|
3236
3236
|
}));
|
|
3237
|
-
Array.isArray(
|
|
3237
|
+
Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(M) {
|
|
3238
3238
|
return {
|
|
3239
|
-
type: typeof
|
|
3240
|
-
value:
|
|
3239
|
+
type: typeof M == "string" ? Z.literal : Z.object,
|
|
3240
|
+
value: M
|
|
3241
3241
|
};
|
|
3242
3242
|
}));
|
|
3243
3243
|
}
|
|
3244
|
-
if (
|
|
3245
|
-
var L = h.options[
|
|
3244
|
+
if (lr(h)) {
|
|
3245
|
+
var L = h.options[m] || h.options.other;
|
|
3246
3246
|
if (!L)
|
|
3247
|
-
throw new
|
|
3248
|
-
s.push.apply(s,
|
|
3247
|
+
throw new Ft(h.value, m, Object.keys(h.options), a);
|
|
3248
|
+
s.push.apply(s, ze(L.value, t, r, n, i));
|
|
3249
3249
|
continue;
|
|
3250
3250
|
}
|
|
3251
|
-
if (
|
|
3252
|
-
var L = h.options["=".concat(
|
|
3251
|
+
if (ur(h)) {
|
|
3252
|
+
var L = h.options["=".concat(m)];
|
|
3253
3253
|
if (!L) {
|
|
3254
3254
|
if (!Intl.PluralRules)
|
|
3255
|
-
throw new
|
|
3255
|
+
throw new Ke(`Intl.PluralRules is not available in this environment.
|
|
3256
3256
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3257
|
-
`,
|
|
3258
|
-
var
|
|
3259
|
-
L = h.options[
|
|
3257
|
+
`, Ce.MISSING_INTL_API, a);
|
|
3258
|
+
var D = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3259
|
+
L = h.options[D] || h.options.other;
|
|
3260
3260
|
}
|
|
3261
3261
|
if (!L)
|
|
3262
|
-
throw new
|
|
3263
|
-
s.push.apply(s,
|
|
3262
|
+
throw new Ft(h.value, m, Object.keys(h.options), a);
|
|
3263
|
+
s.push.apply(s, ze(L.value, t, r, n, i, m - (h.offset || 0)));
|
|
3264
3264
|
continue;
|
|
3265
3265
|
}
|
|
3266
3266
|
}
|
|
3267
|
-
return
|
|
3267
|
+
return gi(s);
|
|
3268
3268
|
}
|
|
3269
|
-
function
|
|
3270
|
-
return t ?
|
|
3271
|
-
return n
|
|
3269
|
+
function yi(e, t) {
|
|
3270
|
+
return t ? se(se(se({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3271
|
+
return r[n] = se(se({}, e[n]), t[n] || {}), r;
|
|
3272
3272
|
}, {})) : e;
|
|
3273
3273
|
}
|
|
3274
|
-
function
|
|
3275
|
-
return t ? Object.keys(e).reduce(function(
|
|
3276
|
-
return n
|
|
3277
|
-
},
|
|
3274
|
+
function _i(e, t) {
|
|
3275
|
+
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3276
|
+
return r[n] = yi(e[n], t[n]), r;
|
|
3277
|
+
}, se({}, e)) : e;
|
|
3278
3278
|
}
|
|
3279
|
-
function
|
|
3279
|
+
function ht(e) {
|
|
3280
3280
|
return {
|
|
3281
3281
|
create: function() {
|
|
3282
3282
|
return {
|
|
3283
3283
|
get: function(t) {
|
|
3284
3284
|
return e[t];
|
|
3285
3285
|
},
|
|
3286
|
-
set: function(t,
|
|
3287
|
-
e[t] =
|
|
3286
|
+
set: function(t, r) {
|
|
3287
|
+
e[t] = r;
|
|
3288
3288
|
}
|
|
3289
3289
|
};
|
|
3290
3290
|
}
|
|
3291
3291
|
};
|
|
3292
3292
|
}
|
|
3293
|
-
function
|
|
3293
|
+
function Ei(e) {
|
|
3294
3294
|
return e === void 0 && (e = {
|
|
3295
3295
|
number: {},
|
|
3296
3296
|
dateTime: {},
|
|
3297
3297
|
pluralRules: {}
|
|
3298
3298
|
}), {
|
|
3299
|
-
getNumberFormat:
|
|
3300
|
-
for (var t,
|
|
3301
|
-
n
|
|
3302
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3299
|
+
getNumberFormat: at(function() {
|
|
3300
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3301
|
+
r[n] = arguments[n];
|
|
3302
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, st([void 0], r, !1)))();
|
|
3303
3303
|
}, {
|
|
3304
|
-
cache:
|
|
3305
|
-
strategy:
|
|
3304
|
+
cache: ht(e.number),
|
|
3305
|
+
strategy: lt.variadic
|
|
3306
3306
|
}),
|
|
3307
|
-
getDateTimeFormat:
|
|
3308
|
-
for (var t,
|
|
3309
|
-
n
|
|
3310
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3307
|
+
getDateTimeFormat: at(function() {
|
|
3308
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3309
|
+
r[n] = arguments[n];
|
|
3310
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, st([void 0], r, !1)))();
|
|
3311
3311
|
}, {
|
|
3312
|
-
cache:
|
|
3313
|
-
strategy:
|
|
3312
|
+
cache: ht(e.dateTime),
|
|
3313
|
+
strategy: lt.variadic
|
|
3314
3314
|
}),
|
|
3315
|
-
getPluralRules:
|
|
3316
|
-
for (var t,
|
|
3317
|
-
n
|
|
3318
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3315
|
+
getPluralRules: at(function() {
|
|
3316
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3317
|
+
r[n] = arguments[n];
|
|
3318
|
+
return new ((t = Intl.PluralRules).bind.apply(t, st([void 0], r, !1)))();
|
|
3319
3319
|
}, {
|
|
3320
|
-
cache:
|
|
3321
|
-
strategy:
|
|
3320
|
+
cache: ht(e.pluralRules),
|
|
3321
|
+
strategy: lt.variadic
|
|
3322
3322
|
})
|
|
3323
3323
|
};
|
|
3324
3324
|
}
|
|
3325
|
-
var
|
|
3325
|
+
var vi = (
|
|
3326
3326
|
/** @class */
|
|
3327
3327
|
function() {
|
|
3328
|
-
function e(t,
|
|
3329
|
-
|
|
3328
|
+
function e(t, r, n, i) {
|
|
3329
|
+
r === void 0 && (r = e.defaultLocale);
|
|
3330
3330
|
var o = this;
|
|
3331
3331
|
if (this.formatterCache = {
|
|
3332
3332
|
number: {},
|
|
3333
3333
|
dateTime: {},
|
|
3334
3334
|
pluralRules: {}
|
|
3335
3335
|
}, this.format = function(u) {
|
|
3336
|
-
var
|
|
3337
|
-
if (
|
|
3338
|
-
return
|
|
3339
|
-
var h =
|
|
3340
|
-
return !c.length ||
|
|
3336
|
+
var l = o.formatToParts(u);
|
|
3337
|
+
if (l.length === 1)
|
|
3338
|
+
return l[0].value;
|
|
3339
|
+
var h = l.reduce(function(c, m) {
|
|
3340
|
+
return !c.length || m.type !== Z.literal || typeof c[c.length - 1] != "string" ? c.push(m.value) : c[c.length - 1] += m.value, c;
|
|
3341
3341
|
}, []);
|
|
3342
3342
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3343
3343
|
}, this.formatToParts = function(u) {
|
|
3344
|
-
return
|
|
3344
|
+
return ze(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
3345
3345
|
}, this.resolvedOptions = function() {
|
|
3346
3346
|
var u;
|
|
3347
3347
|
return {
|
|
@@ -3349,18 +3349,18 @@ var yi = (
|
|
|
3349
3349
|
};
|
|
3350
3350
|
}, this.getAst = function() {
|
|
3351
3351
|
return o.ast;
|
|
3352
|
-
}, this.locales =
|
|
3352
|
+
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3353
3353
|
if (this.message = t, !e.__parse)
|
|
3354
3354
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3355
|
-
var
|
|
3356
|
-
|
|
3357
|
-
var s =
|
|
3358
|
-
this.ast = e.__parse(t,
|
|
3355
|
+
var a = i || {};
|
|
3356
|
+
a.formatters;
|
|
3357
|
+
var s = Bn(a, ["formatters"]);
|
|
3358
|
+
this.ast = e.__parse(t, se(se({}, s), { locale: this.resolvedLocale }));
|
|
3359
3359
|
} else
|
|
3360
3360
|
this.ast = t;
|
|
3361
3361
|
if (!Array.isArray(this.ast))
|
|
3362
3362
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3363
|
-
this.formats =
|
|
3363
|
+
this.formats = _i(e.formats, n), this.formatters = i && i.formatters || Ei(this.formatterCache);
|
|
3364
3364
|
}
|
|
3365
3365
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3366
3366
|
get: function() {
|
|
@@ -3370,10 +3370,10 @@ var yi = (
|
|
|
3370
3370
|
configurable: !0
|
|
3371
3371
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3372
3372
|
if (!(typeof Intl.Locale > "u")) {
|
|
3373
|
-
var
|
|
3374
|
-
return
|
|
3373
|
+
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3374
|
+
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3375
3375
|
}
|
|
3376
|
-
}, e.__parse =
|
|
3376
|
+
}, e.__parse = pi, e.formats = {
|
|
3377
3377
|
number: {
|
|
3378
3378
|
integer: {
|
|
3379
3379
|
maximumFractionDigits: 0
|
|
@@ -3434,113 +3434,113 @@ var yi = (
|
|
|
3434
3434
|
}, e;
|
|
3435
3435
|
}()
|
|
3436
3436
|
);
|
|
3437
|
-
function
|
|
3437
|
+
function xi(e, t) {
|
|
3438
3438
|
if (t == null)
|
|
3439
3439
|
return;
|
|
3440
3440
|
if (t in e)
|
|
3441
3441
|
return e[t];
|
|
3442
|
-
const
|
|
3443
|
-
let
|
|
3444
|
-
for (let i = 0; i <
|
|
3445
|
-
if (typeof
|
|
3442
|
+
const r = t.split(".");
|
|
3443
|
+
let n = e;
|
|
3444
|
+
for (let i = 0; i < r.length; i++)
|
|
3445
|
+
if (typeof n == "object") {
|
|
3446
3446
|
if (i > 0) {
|
|
3447
|
-
const o =
|
|
3448
|
-
if (o in
|
|
3449
|
-
|
|
3447
|
+
const o = r.slice(i, r.length).join(".");
|
|
3448
|
+
if (o in n) {
|
|
3449
|
+
n = n[o];
|
|
3450
3450
|
break;
|
|
3451
3451
|
}
|
|
3452
3452
|
}
|
|
3453
|
-
|
|
3453
|
+
n = n[r[i]];
|
|
3454
3454
|
} else
|
|
3455
|
-
|
|
3456
|
-
return
|
|
3455
|
+
n = void 0;
|
|
3456
|
+
return n;
|
|
3457
3457
|
}
|
|
3458
|
-
const
|
|
3458
|
+
const fe = {}, wi = (e, t, r) => r && (t in fe || (fe[t] = {}), e in fe[t] || (fe[t][e] = r), r), _r = (e, t) => {
|
|
3459
3459
|
if (t == null)
|
|
3460
3460
|
return;
|
|
3461
|
-
if (t in
|
|
3462
|
-
return
|
|
3463
|
-
const
|
|
3464
|
-
for (let
|
|
3465
|
-
const i = n
|
|
3461
|
+
if (t in fe && e in fe[t])
|
|
3462
|
+
return fe[t][e];
|
|
3463
|
+
const r = et(t);
|
|
3464
|
+
for (let n = 0; n < r.length; n++) {
|
|
3465
|
+
const i = r[n], o = Ti(i, e);
|
|
3466
3466
|
if (o)
|
|
3467
|
-
return
|
|
3467
|
+
return wi(e, t, o);
|
|
3468
3468
|
}
|
|
3469
3469
|
};
|
|
3470
|
-
let
|
|
3471
|
-
const
|
|
3472
|
-
function
|
|
3473
|
-
return
|
|
3470
|
+
let St;
|
|
3471
|
+
const Ge = Je({});
|
|
3472
|
+
function Si(e) {
|
|
3473
|
+
return St[e] || null;
|
|
3474
3474
|
}
|
|
3475
|
-
function
|
|
3476
|
-
return e in
|
|
3475
|
+
function Er(e) {
|
|
3476
|
+
return e in St;
|
|
3477
3477
|
}
|
|
3478
|
-
function
|
|
3479
|
-
if (!
|
|
3478
|
+
function Ti(e, t) {
|
|
3479
|
+
if (!Er(e))
|
|
3480
3480
|
return null;
|
|
3481
|
-
const
|
|
3482
|
-
return
|
|
3481
|
+
const r = Si(e);
|
|
3482
|
+
return xi(r, t);
|
|
3483
3483
|
}
|
|
3484
|
-
function
|
|
3484
|
+
function Oi(e) {
|
|
3485
3485
|
if (e == null)
|
|
3486
3486
|
return;
|
|
3487
|
-
const t =
|
|
3488
|
-
for (let
|
|
3489
|
-
const
|
|
3490
|
-
if (
|
|
3491
|
-
return
|
|
3487
|
+
const t = et(e);
|
|
3488
|
+
for (let r = 0; r < t.length; r++) {
|
|
3489
|
+
const n = t[r];
|
|
3490
|
+
if (Er(n))
|
|
3491
|
+
return n;
|
|
3492
3492
|
}
|
|
3493
3493
|
}
|
|
3494
|
-
function
|
|
3495
|
-
delete
|
|
3494
|
+
function vr(e, ...t) {
|
|
3495
|
+
delete fe[e], Ge.update((r) => (r[e] = Cn.all([r[e] || {}, ...t]), r));
|
|
3496
3496
|
}
|
|
3497
|
-
|
|
3498
|
-
[
|
|
3497
|
+
Pe(
|
|
3498
|
+
[Ge],
|
|
3499
3499
|
([e]) => Object.keys(e)
|
|
3500
3500
|
);
|
|
3501
|
-
|
|
3502
|
-
const
|
|
3503
|
-
function
|
|
3504
|
-
|
|
3501
|
+
Ge.subscribe((e) => St = e);
|
|
3502
|
+
const Xe = {};
|
|
3503
|
+
function Hi(e, t) {
|
|
3504
|
+
Xe[e].delete(t), Xe[e].size === 0 && delete Xe[e];
|
|
3505
3505
|
}
|
|
3506
|
-
function
|
|
3507
|
-
return
|
|
3506
|
+
function xr(e) {
|
|
3507
|
+
return Xe[e];
|
|
3508
3508
|
}
|
|
3509
|
-
function
|
|
3510
|
-
return
|
|
3511
|
-
const
|
|
3512
|
-
return [t,
|
|
3509
|
+
function Ai(e) {
|
|
3510
|
+
return et(e).map((t) => {
|
|
3511
|
+
const r = xr(t);
|
|
3512
|
+
return [t, r ? [...r] : []];
|
|
3513
3513
|
}).filter(([, t]) => t.length > 0);
|
|
3514
3514
|
}
|
|
3515
|
-
function
|
|
3516
|
-
return e == null ? !1 :
|
|
3515
|
+
function vt(e) {
|
|
3516
|
+
return e == null ? !1 : et(e).some(
|
|
3517
3517
|
(t) => {
|
|
3518
|
-
var
|
|
3519
|
-
return (
|
|
3518
|
+
var r;
|
|
3519
|
+
return (r = xr(t)) == null ? void 0 : r.size;
|
|
3520
3520
|
}
|
|
3521
3521
|
);
|
|
3522
3522
|
}
|
|
3523
|
-
function
|
|
3523
|
+
function Ci(e, t) {
|
|
3524
3524
|
return Promise.all(
|
|
3525
|
-
t.map((
|
|
3526
|
-
).then((
|
|
3527
|
-
}
|
|
3528
|
-
const
|
|
3529
|
-
function
|
|
3530
|
-
if (!
|
|
3531
|
-
return e in
|
|
3532
|
-
const t =
|
|
3533
|
-
return
|
|
3525
|
+
t.map((n) => (Hi(e, n), n().then((i) => i.default || i)))
|
|
3526
|
+
).then((n) => vr(e, ...n));
|
|
3527
|
+
}
|
|
3528
|
+
const Ne = {};
|
|
3529
|
+
function wr(e) {
|
|
3530
|
+
if (!vt(e))
|
|
3531
|
+
return e in Ne ? Ne[e] : Promise.resolve();
|
|
3532
|
+
const t = Ai(e);
|
|
3533
|
+
return Ne[e] = Promise.all(
|
|
3534
3534
|
t.map(
|
|
3535
|
-
([
|
|
3535
|
+
([r, n]) => Ci(r, n)
|
|
3536
3536
|
)
|
|
3537
3537
|
).then(() => {
|
|
3538
|
-
if (
|
|
3539
|
-
return
|
|
3540
|
-
delete
|
|
3541
|
-
}),
|
|
3538
|
+
if (vt(e))
|
|
3539
|
+
return wr(e);
|
|
3540
|
+
delete Ne[e];
|
|
3541
|
+
}), Ne[e];
|
|
3542
3542
|
}
|
|
3543
|
-
const
|
|
3543
|
+
const Bi = {
|
|
3544
3544
|
number: {
|
|
3545
3545
|
scientific: { notation: "scientific" },
|
|
3546
3546
|
engineering: { notation: "engineering" },
|
|
@@ -3569,150 +3569,150 @@ const Ci = {
|
|
|
3569
3569
|
timeZoneName: "short"
|
|
3570
3570
|
}
|
|
3571
3571
|
}
|
|
3572
|
-
},
|
|
3572
|
+
}, Pi = {
|
|
3573
3573
|
fallbackLocale: null,
|
|
3574
3574
|
loadingDelay: 200,
|
|
3575
|
-
formats:
|
|
3575
|
+
formats: Bi,
|
|
3576
3576
|
warnOnMissingMessages: !0,
|
|
3577
3577
|
handleMissingMessage: void 0,
|
|
3578
3578
|
ignoreTag: !0
|
|
3579
|
-
},
|
|
3580
|
-
function
|
|
3581
|
-
return
|
|
3582
|
-
}
|
|
3583
|
-
const
|
|
3584
|
-
var
|
|
3585
|
-
for (var
|
|
3586
|
-
|
|
3587
|
-
if (
|
|
3588
|
-
for (var
|
|
3589
|
-
|
|
3579
|
+
}, Mi = Pi;
|
|
3580
|
+
function Be() {
|
|
3581
|
+
return Mi;
|
|
3582
|
+
}
|
|
3583
|
+
const ct = Je(!1);
|
|
3584
|
+
var Ii = Object.defineProperty, Li = Object.defineProperties, Ni = Object.getOwnPropertyDescriptors, jt = Object.getOwnPropertySymbols, Ri = Object.prototype.hasOwnProperty, ki = Object.prototype.propertyIsEnumerable, Vt = (e, t, r) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Di = (e, t) => {
|
|
3585
|
+
for (var r in t || (t = {}))
|
|
3586
|
+
Ri.call(t, r) && Vt(e, r, t[r]);
|
|
3587
|
+
if (jt)
|
|
3588
|
+
for (var r of jt(t))
|
|
3589
|
+
ki.call(t, r) && Vt(e, r, t[r]);
|
|
3590
3590
|
return e;
|
|
3591
|
-
},
|
|
3592
|
-
let
|
|
3593
|
-
const
|
|
3594
|
-
function
|
|
3595
|
-
return e.split("-").map((t,
|
|
3591
|
+
}, Ui = (e, t) => Li(e, Ni(t));
|
|
3592
|
+
let xt;
|
|
3593
|
+
const qe = Je(null);
|
|
3594
|
+
function $t(e) {
|
|
3595
|
+
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3596
3596
|
}
|
|
3597
|
-
function
|
|
3598
|
-
const
|
|
3599
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
3597
|
+
function et(e, t = Be().fallbackLocale) {
|
|
3598
|
+
const r = $t(e);
|
|
3599
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...$t(t)])] : r;
|
|
3600
3600
|
}
|
|
3601
|
-
function
|
|
3602
|
-
return
|
|
3601
|
+
function Ee() {
|
|
3602
|
+
return xt ?? void 0;
|
|
3603
3603
|
}
|
|
3604
|
-
|
|
3605
|
-
|
|
3604
|
+
qe.subscribe((e) => {
|
|
3605
|
+
xt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3606
3606
|
});
|
|
3607
|
-
const
|
|
3608
|
-
if (e &&
|
|
3609
|
-
const { loadingDelay: t } =
|
|
3610
|
-
let
|
|
3611
|
-
return typeof window < "u" &&
|
|
3612
|
-
() =>
|
|
3607
|
+
const Gi = (e) => {
|
|
3608
|
+
if (e && Oi(e) && vt(e)) {
|
|
3609
|
+
const { loadingDelay: t } = Be();
|
|
3610
|
+
let r;
|
|
3611
|
+
return typeof window < "u" && Ee() != null && t ? r = window.setTimeout(
|
|
3612
|
+
() => ct.set(!0),
|
|
3613
3613
|
t
|
|
3614
|
-
) :
|
|
3615
|
-
|
|
3614
|
+
) : ct.set(!0), wr(e).then(() => {
|
|
3615
|
+
qe.set(e);
|
|
3616
3616
|
}).finally(() => {
|
|
3617
|
-
clearTimeout(
|
|
3617
|
+
clearTimeout(r), ct.set(!1);
|
|
3618
3618
|
});
|
|
3619
3619
|
}
|
|
3620
|
-
return
|
|
3621
|
-
},
|
|
3622
|
-
set:
|
|
3623
|
-
}),
|
|
3620
|
+
return qe.set(e);
|
|
3621
|
+
}, Me = Ui(Di({}, qe), {
|
|
3622
|
+
set: Gi
|
|
3623
|
+
}), tt = (e) => {
|
|
3624
3624
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3625
|
-
return (
|
|
3626
|
-
const i = JSON.stringify(
|
|
3627
|
-
return i in t ? t[i] : t[i] = e(
|
|
3625
|
+
return (n) => {
|
|
3626
|
+
const i = JSON.stringify(n);
|
|
3627
|
+
return i in t ? t[i] : t[i] = e(n);
|
|
3628
3628
|
};
|
|
3629
3629
|
};
|
|
3630
|
-
var
|
|
3631
|
-
for (var
|
|
3632
|
-
|
|
3633
|
-
if (
|
|
3634
|
-
for (var
|
|
3635
|
-
|
|
3630
|
+
var Fi = Object.defineProperty, Qe = Object.getOwnPropertySymbols, Sr = Object.prototype.hasOwnProperty, Tr = Object.prototype.propertyIsEnumerable, zt = (e, t, r) => t in e ? Fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Tt = (e, t) => {
|
|
3631
|
+
for (var r in t || (t = {}))
|
|
3632
|
+
Sr.call(t, r) && zt(e, r, t[r]);
|
|
3633
|
+
if (Qe)
|
|
3634
|
+
for (var r of Qe(t))
|
|
3635
|
+
Tr.call(t, r) && zt(e, r, t[r]);
|
|
3636
3636
|
return e;
|
|
3637
|
-
},
|
|
3638
|
-
var
|
|
3639
|
-
for (var
|
|
3640
|
-
|
|
3641
|
-
if (e != null &&
|
|
3642
|
-
for (var
|
|
3643
|
-
t.indexOf(
|
|
3644
|
-
return
|
|
3637
|
+
}, Ie = (e, t) => {
|
|
3638
|
+
var r = {};
|
|
3639
|
+
for (var n in e)
|
|
3640
|
+
Sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3641
|
+
if (e != null && Qe)
|
|
3642
|
+
for (var n of Qe(e))
|
|
3643
|
+
t.indexOf(n) < 0 && Tr.call(e, n) && (r[n] = e[n]);
|
|
3644
|
+
return r;
|
|
3645
3645
|
};
|
|
3646
|
-
const
|
|
3647
|
-
const { formats:
|
|
3648
|
-
if (e in
|
|
3649
|
-
return
|
|
3646
|
+
const Ue = (e, t) => {
|
|
3647
|
+
const { formats: r } = Be();
|
|
3648
|
+
if (e in r && t in r[e])
|
|
3649
|
+
return r[e][t];
|
|
3650
3650
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3651
|
-
},
|
|
3651
|
+
}, ji = tt(
|
|
3652
3652
|
(e) => {
|
|
3653
|
-
var t = e, { locale:
|
|
3654
|
-
if (
|
|
3653
|
+
var t = e, { locale: r, format: n } = t, i = Ie(t, ["locale", "format"]);
|
|
3654
|
+
if (r == null)
|
|
3655
3655
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3656
|
-
return
|
|
3656
|
+
return n && (i = Ue("number", n)), new Intl.NumberFormat(r, i);
|
|
3657
3657
|
}
|
|
3658
|
-
),
|
|
3658
|
+
), Vi = tt(
|
|
3659
3659
|
(e) => {
|
|
3660
|
-
var t = e, { locale:
|
|
3661
|
-
if (
|
|
3660
|
+
var t = e, { locale: r, format: n } = t, i = Ie(t, ["locale", "format"]);
|
|
3661
|
+
if (r == null)
|
|
3662
3662
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3663
|
-
return
|
|
3663
|
+
return n ? i = Ue("date", n) : Object.keys(i).length === 0 && (i = Ue("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3664
3664
|
}
|
|
3665
|
-
),
|
|
3665
|
+
), $i = tt(
|
|
3666
3666
|
(e) => {
|
|
3667
|
-
var t = e, { locale:
|
|
3668
|
-
if (
|
|
3667
|
+
var t = e, { locale: r, format: n } = t, i = Ie(t, ["locale", "format"]);
|
|
3668
|
+
if (r == null)
|
|
3669
3669
|
throw new Error(
|
|
3670
3670
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3671
3671
|
);
|
|
3672
|
-
return
|
|
3672
|
+
return n ? i = Ue("time", n) : Object.keys(i).length === 0 && (i = Ue("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3673
3673
|
}
|
|
3674
|
-
),
|
|
3674
|
+
), zi = (e = {}) => {
|
|
3675
3675
|
var t = e, {
|
|
3676
|
-
locale:
|
|
3677
|
-
} = t,
|
|
3676
|
+
locale: r = Ee()
|
|
3677
|
+
} = t, n = Ie(t, [
|
|
3678
3678
|
"locale"
|
|
3679
3679
|
]);
|
|
3680
|
-
return
|
|
3681
|
-
},
|
|
3680
|
+
return ji(Tt({ locale: r }, n));
|
|
3681
|
+
}, Xi = (e = {}) => {
|
|
3682
3682
|
var t = e, {
|
|
3683
|
-
locale:
|
|
3684
|
-
} = t,
|
|
3683
|
+
locale: r = Ee()
|
|
3684
|
+
} = t, n = Ie(t, [
|
|
3685
3685
|
"locale"
|
|
3686
3686
|
]);
|
|
3687
|
-
return
|
|
3688
|
-
},
|
|
3687
|
+
return Vi(Tt({ locale: r }, n));
|
|
3688
|
+
}, Wi = (e = {}) => {
|
|
3689
3689
|
var t = e, {
|
|
3690
|
-
locale:
|
|
3691
|
-
} = t,
|
|
3690
|
+
locale: r = Ee()
|
|
3691
|
+
} = t, n = Ie(t, [
|
|
3692
3692
|
"locale"
|
|
3693
3693
|
]);
|
|
3694
|
-
return
|
|
3695
|
-
},
|
|
3694
|
+
return $i(Tt({ locale: r }, n));
|
|
3695
|
+
}, Zi = tt(
|
|
3696
3696
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3697
|
-
(e, t =
|
|
3698
|
-
ignoreTag:
|
|
3697
|
+
(e, t = Ee()) => new vi(e, t, Be().formats, {
|
|
3698
|
+
ignoreTag: Be().ignoreTag
|
|
3699
3699
|
})
|
|
3700
|
-
),
|
|
3701
|
-
var
|
|
3702
|
-
let
|
|
3703
|
-
typeof e == "object" && (
|
|
3700
|
+
), qi = (e, t = {}) => {
|
|
3701
|
+
var r, n, i, o;
|
|
3702
|
+
let a = t;
|
|
3703
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
3704
3704
|
const {
|
|
3705
3705
|
values: s,
|
|
3706
|
-
locale: u =
|
|
3707
|
-
default:
|
|
3708
|
-
} =
|
|
3706
|
+
locale: u = Ee(),
|
|
3707
|
+
default: l
|
|
3708
|
+
} = a;
|
|
3709
3709
|
if (u == null)
|
|
3710
3710
|
throw new Error(
|
|
3711
3711
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3712
3712
|
);
|
|
3713
|
-
let h =
|
|
3713
|
+
let h = _r(e, u);
|
|
3714
3714
|
if (!h)
|
|
3715
|
-
h = (o = (i = (
|
|
3715
|
+
h = (o = (i = (n = (r = Be()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
3716
3716
|
else if (typeof h != "string")
|
|
3717
3717
|
return console.warn(
|
|
3718
3718
|
`[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.`
|
|
@@ -3721,26 +3721,26 @@ const ze = (e, t) => {
|
|
|
3721
3721
|
return h;
|
|
3722
3722
|
let c = h;
|
|
3723
3723
|
try {
|
|
3724
|
-
c =
|
|
3725
|
-
} catch (
|
|
3726
|
-
|
|
3724
|
+
c = Zi(h, u).format(s);
|
|
3725
|
+
} catch (m) {
|
|
3726
|
+
m instanceof Error && console.warn(
|
|
3727
3727
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3728
|
-
|
|
3728
|
+
m.message
|
|
3729
3729
|
);
|
|
3730
3730
|
}
|
|
3731
3731
|
return c;
|
|
3732
|
-
},
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
function
|
|
3738
|
-
|
|
3739
|
-
}
|
|
3740
|
-
function
|
|
3741
|
-
|
|
3742
|
-
}
|
|
3743
|
-
const
|
|
3732
|
+
}, Qi = (e, t) => Wi(t).format(e), Ji = (e, t) => Xi(t).format(e), Yi = (e, t) => zi(t).format(e), Ki = (e, t = Ee()) => _r(e, t), eo = Pe([Me, Ge], () => qi);
|
|
3733
|
+
Pe([Me], () => Qi);
|
|
3734
|
+
Pe([Me], () => Ji);
|
|
3735
|
+
Pe([Me], () => Yi);
|
|
3736
|
+
Pe([Me, Ge], () => Ki);
|
|
3737
|
+
function Xt(e, t) {
|
|
3738
|
+
vr(e, t);
|
|
3739
|
+
}
|
|
3740
|
+
function to(e) {
|
|
3741
|
+
Me.set(e);
|
|
3742
|
+
}
|
|
3743
|
+
const Wt = {
|
|
3744
3744
|
en: {
|
|
3745
3745
|
otpTitle: "Code verification is required",
|
|
3746
3746
|
popupMessage: "Please enter the security code received on your SMS/email address to perform the update.",
|
|
@@ -3788,531 +3788,528 @@ const Zt = {
|
|
|
3788
3788
|
waitSeconds: "Tekrar göndermeden önce lütfen bekleyin:"
|
|
3789
3789
|
}
|
|
3790
3790
|
};
|
|
3791
|
-
function
|
|
3792
|
-
|
|
3791
|
+
function ro(e) {
|
|
3792
|
+
Fr(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}}');
|
|
3793
3793
|
}
|
|
3794
|
-
function
|
|
3795
|
-
const
|
|
3796
|
-
return
|
|
3794
|
+
function Zt(e, t, r) {
|
|
3795
|
+
const n = e.slice();
|
|
3796
|
+
return n[69] = t[r], n[70] = t, n[71] = r, n;
|
|
3797
3797
|
}
|
|
3798
|
-
function
|
|
3799
|
-
let t, n,
|
|
3800
|
-
/*$_*/
|
|
3801
|
-
e[17]("otpTitle") + ""
|
|
3802
|
-
), i, o, l, s, u, a, h, c, d, y, b, m, E, w, B, L, k, G, N = (
|
|
3798
|
+
function no(e) {
|
|
3799
|
+
let t, r, n, i, o, a, s, u, l, h, c, m, _, d, g, E, S, P = (
|
|
3803
3800
|
/*$_*/
|
|
3804
|
-
e[
|
|
3805
|
-
),
|
|
3801
|
+
e[19]("channelSMS") + ""
|
|
3802
|
+
), L, D, M, N, K, q, ae, pe, le, B, U, W, me, de, ge = (
|
|
3806
3803
|
/*$_*/
|
|
3807
|
-
e[
|
|
3808
|
-
),
|
|
3809
|
-
function
|
|
3804
|
+
e[19]("channelEmail") + ""
|
|
3805
|
+
), Q, ee, $, ue, te, be, ve;
|
|
3806
|
+
function ye(b, A) {
|
|
3810
3807
|
return (
|
|
3811
3808
|
/*showResendOtp*/
|
|
3812
|
-
|
|
3809
|
+
b[9] ? ao : (
|
|
3813
3810
|
/*showOtpInput*/
|
|
3814
|
-
|
|
3811
|
+
b[12] ? oo : so
|
|
3815
3812
|
)
|
|
3816
3813
|
);
|
|
3817
3814
|
}
|
|
3818
|
-
let xe =
|
|
3815
|
+
let xe = ye(e), J = xe(e), j = (
|
|
3819
3816
|
/*selectedChannel*/
|
|
3820
|
-
e[0] &&
|
|
3817
|
+
e[0] && Qt(e)
|
|
3821
3818
|
);
|
|
3822
|
-
function
|
|
3819
|
+
function Fe(b, A) {
|
|
3823
3820
|
if (
|
|
3824
3821
|
/*isLoading*/
|
|
3825
|
-
|
|
3826
|
-
|
|
3822
|
+
b[3] && /*showOtpInput*/
|
|
3823
|
+
b[12]
|
|
3827
3824
|
)
|
|
3828
|
-
return
|
|
3825
|
+
return po;
|
|
3829
3826
|
if (
|
|
3830
3827
|
/*showOtpInput*/
|
|
3831
|
-
|
|
3832
|
-
|
|
3828
|
+
b[12] && /*config*/
|
|
3829
|
+
b[4]
|
|
3833
3830
|
)
|
|
3834
|
-
return
|
|
3831
|
+
return fo;
|
|
3835
3832
|
}
|
|
3836
|
-
let
|
|
3837
|
-
function
|
|
3833
|
+
let he = Fe(e), V = he && he(e);
|
|
3834
|
+
function je(b, A) {
|
|
3838
3835
|
if (
|
|
3839
3836
|
/*showResendOtp*/
|
|
3840
|
-
|
|
3837
|
+
b[9]
|
|
3841
3838
|
)
|
|
3842
|
-
return
|
|
3839
|
+
return go;
|
|
3843
3840
|
if (
|
|
3844
3841
|
/*showOtpInput*/
|
|
3845
|
-
|
|
3846
|
-
|
|
3842
|
+
b[12] && /*config*/
|
|
3843
|
+
b[4]
|
|
3847
3844
|
)
|
|
3848
|
-
return
|
|
3845
|
+
return mo;
|
|
3849
3846
|
}
|
|
3850
|
-
let
|
|
3847
|
+
let re = je(e), z = re && re(e);
|
|
3851
3848
|
return {
|
|
3852
3849
|
c() {
|
|
3853
|
-
t =
|
|
3854
|
-
|
|
3850
|
+
t = O("div"), J.c(), r = G(), n = O("div"), i = O("label"), o = O("div"), a = G(), s = O("input"), l = G(), h = O("div"), c = ne("svg"), m = ne("path"), _ = ne("circle"), d = ne("circle"), g = ne("circle"), E = G(), S = O("span"), L = k(P), D = G(), M = O("label"), N = O("div"), K = G(), q = O("input"), pe = G(), le = O("div"), B = ne("svg"), U = ne("rect"), W = ne("path"), me = G(), de = O("span"), Q = k(ge), ee = G(), j && j.c(), $ = G(), V && V.c(), ue = G(), te = O("div"), z && z.c(), p(t, "class", "OtpDescription"), p(o, "class", "RadioIndicator"), ie(
|
|
3851
|
+
o,
|
|
3855
3852
|
"checked",
|
|
3856
3853
|
/*selectedChannel*/
|
|
3857
3854
|
e[0] === /*channels*/
|
|
3858
|
-
e[
|
|
3859
|
-
), p(
|
|
3860
|
-
e[
|
|
3855
|
+
e[20].SMS
|
|
3856
|
+
), p(s, "type", "radio"), p(s, "name", "channel"), s.value = /*channels*/
|
|
3857
|
+
e[20].SMS, s.checked = u = /*selectedChannel*/
|
|
3861
3858
|
e[0] === /*channels*/
|
|
3862
|
-
e[
|
|
3863
|
-
|
|
3859
|
+
e[20].SMS, p(m, "d", "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"), p(_, "cx", "9"), p(_, "cy", "11"), p(_, "r", "0.5"), p(_, "fill", "currentColor"), p(d, "cx", "12"), p(d, "cy", "11"), p(d, "r", "0.5"), p(d, "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"), ie(
|
|
3860
|
+
i,
|
|
3864
3861
|
"selected",
|
|
3865
3862
|
/*selectedChannel*/
|
|
3866
3863
|
e[0] === /*channels*/
|
|
3867
|
-
e[
|
|
3868
|
-
), p(
|
|
3869
|
-
|
|
3864
|
+
e[20].SMS
|
|
3865
|
+
), p(N, "class", "RadioIndicator"), ie(
|
|
3866
|
+
N,
|
|
3870
3867
|
"checked",
|
|
3871
3868
|
/*selectedChannel*/
|
|
3872
3869
|
e[0] === /*channels*/
|
|
3873
|
-
e[
|
|
3874
|
-
), p(
|
|
3875
|
-
e[
|
|
3870
|
+
e[20].EMAIL
|
|
3871
|
+
), p(q, "type", "radio"), p(q, "name", "channel"), q.value = /*channels*/
|
|
3872
|
+
e[20].EMAIL, q.checked = ae = /*selectedChannel*/
|
|
3876
3873
|
e[0] === /*channels*/
|
|
3877
|
-
e[
|
|
3878
|
-
|
|
3874
|
+
e[20].EMAIL, p(U, "x", "2"), p(U, "y", "4"), p(U, "width", "20"), p(U, "height", "16"), p(U, "rx", "2"), p(W, "d", "m2 7 10 6 10-6"), p(B, "xmlns", "http://www.w3.org/2000/svg"), p(B, "width", "24"), p(B, "height", "24"), p(B, "viewBox", "0 0 24 24"), p(B, "fill", "none"), p(B, "stroke", "currentColor"), p(B, "stroke-width", "2"), p(B, "stroke-linecap", "round"), p(B, "stroke-linejoin", "round"), p(le, "class", "ChannelContent"), p(M, "class", "ChannelCheckbox"), ie(
|
|
3875
|
+
M,
|
|
3879
3876
|
"selected",
|
|
3880
3877
|
/*selectedChannel*/
|
|
3881
3878
|
e[0] === /*channels*/
|
|
3882
|
-
e[
|
|
3883
|
-
), p(
|
|
3879
|
+
e[20].EMAIL
|
|
3880
|
+
), p(n, "class", "ChannelSelection"), p(te, "class", "OtpActionButtons");
|
|
3884
3881
|
},
|
|
3885
|
-
m(
|
|
3886
|
-
C(
|
|
3887
|
-
|
|
3888
|
-
|
|
3882
|
+
m(b, A) {
|
|
3883
|
+
C(b, t, A), J.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, m), y(c, _), y(c, d), y(c, g), y(h, E), y(h, S), y(S, L), y(n, D), y(n, M), y(M, N), y(M, K), y(M, q), y(M, pe), y(M, le), y(le, B), y(B, U), y(B, W), y(le, me), y(le, de), y(de, Q), C(b, ee, A), j && j.m(b, A), C(b, $, A), V && V.m(b, A), C(b, ue, A), C(b, te, A), z && z.m(te, null), be || (ve = [
|
|
3884
|
+
ce(
|
|
3885
|
+
s,
|
|
3889
3886
|
"change",
|
|
3890
3887
|
/*change_handler*/
|
|
3891
|
-
e[
|
|
3888
|
+
e[39]
|
|
3892
3889
|
),
|
|
3893
|
-
|
|
3894
|
-
|
|
3890
|
+
ce(
|
|
3891
|
+
q,
|
|
3895
3892
|
"change",
|
|
3896
3893
|
/*change_handler_1*/
|
|
3897
|
-
e[
|
|
3894
|
+
e[40]
|
|
3898
3895
|
)
|
|
3899
|
-
],
|
|
3896
|
+
], be = !0);
|
|
3900
3897
|
},
|
|
3901
|
-
p(
|
|
3902
|
-
A[0] &
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
262145 && ae(
|
|
3906
|
-
a,
|
|
3898
|
+
p(b, A) {
|
|
3899
|
+
xe === (xe = ye(b)) && J ? J.p(b, A) : (J.d(1), J = xe(b), J && (J.c(), J.m(t, null))), A[0] & /*selectedChannel, channels*/
|
|
3900
|
+
1048577 && ie(
|
|
3901
|
+
o,
|
|
3907
3902
|
"checked",
|
|
3908
3903
|
/*selectedChannel*/
|
|
3909
|
-
|
|
3910
|
-
|
|
3904
|
+
b[0] === /*channels*/
|
|
3905
|
+
b[20].SMS
|
|
3911
3906
|
), A[0] & /*selectedChannel*/
|
|
3912
|
-
1 &&
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3907
|
+
1 && u !== (u = /*selectedChannel*/
|
|
3908
|
+
b[0] === /*channels*/
|
|
3909
|
+
b[20].SMS) && (s.checked = u), A[0] & /*$_*/
|
|
3910
|
+
524288 && P !== (P = /*$_*/
|
|
3911
|
+
b[19]("channelSMS") + "") && F(L, P), A[0] & /*selectedChannel, channels*/
|
|
3912
|
+
1048577 && ie(
|
|
3913
|
+
i,
|
|
3919
3914
|
"selected",
|
|
3920
3915
|
/*selectedChannel*/
|
|
3921
|
-
|
|
3922
|
-
|
|
3916
|
+
b[0] === /*channels*/
|
|
3917
|
+
b[20].SMS
|
|
3923
3918
|
), A[0] & /*selectedChannel, channels*/
|
|
3924
|
-
|
|
3925
|
-
|
|
3919
|
+
1048577 && ie(
|
|
3920
|
+
N,
|
|
3926
3921
|
"checked",
|
|
3927
3922
|
/*selectedChannel*/
|
|
3928
|
-
|
|
3929
|
-
|
|
3923
|
+
b[0] === /*channels*/
|
|
3924
|
+
b[20].EMAIL
|
|
3930
3925
|
), A[0] & /*selectedChannel*/
|
|
3931
|
-
1 &&
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3926
|
+
1 && ae !== (ae = /*selectedChannel*/
|
|
3927
|
+
b[0] === /*channels*/
|
|
3928
|
+
b[20].EMAIL) && (q.checked = ae), A[0] & /*$_*/
|
|
3929
|
+
524288 && ge !== (ge = /*$_*/
|
|
3930
|
+
b[19]("channelEmail") + "") && F(Q, ge), A[0] & /*selectedChannel, channels*/
|
|
3931
|
+
1048577 && ie(
|
|
3932
|
+
M,
|
|
3938
3933
|
"selected",
|
|
3939
3934
|
/*selectedChannel*/
|
|
3940
|
-
|
|
3941
|
-
|
|
3935
|
+
b[0] === /*channels*/
|
|
3936
|
+
b[20].EMAIL
|
|
3942
3937
|
), /*selectedChannel*/
|
|
3943
|
-
|
|
3938
|
+
b[0] ? j ? j.p(b, A) : (j = Qt(b), j.c(), j.m($.parentNode, $)) : j && (j.d(1), j = null), he === (he = Fe(b)) && V ? V.p(b, A) : (V && V.d(1), V = he && he(b), V && (V.c(), V.m(ue.parentNode, ue))), re === (re = je(b)) && z ? z.p(b, A) : (z && z.d(1), z = re && re(b), z && (z.c(), z.m(te, null)));
|
|
3944
3939
|
},
|
|
3945
|
-
d(
|
|
3946
|
-
|
|
3940
|
+
d(b) {
|
|
3941
|
+
b && (H(t), H(r), H(n), H(ee), H($), H(ue), H(te)), J.d(), j && j.d(b), V && V.d(b), z && z.d(), be = !1, _e(ve);
|
|
3947
3942
|
}
|
|
3948
3943
|
};
|
|
3949
3944
|
}
|
|
3950
|
-
function
|
|
3951
|
-
let t,
|
|
3945
|
+
function io(e) {
|
|
3946
|
+
let t, r, n, i, o, a, s = (
|
|
3952
3947
|
/*$_*/
|
|
3953
|
-
e[
|
|
3954
|
-
), u,
|
|
3948
|
+
e[19]("errorHeader") + ""
|
|
3949
|
+
), u, l, h, c, m, _, d = (
|
|
3955
3950
|
/*$_*/
|
|
3956
|
-
e[
|
|
3957
|
-
),
|
|
3951
|
+
e[19]("close") + ""
|
|
3952
|
+
), g, E, S;
|
|
3958
3953
|
return {
|
|
3959
3954
|
c() {
|
|
3960
|
-
t =
|
|
3955
|
+
t = O("div"), r = O("div"), n = ne("svg"), i = ne("path"), o = G(), a = O("h2"), u = k(s), l = G(), h = O("p"), c = k(
|
|
3961
3956
|
/*errorMessage*/
|
|
3962
3957
|
e[8]
|
|
3963
|
-
),
|
|
3958
|
+
), m = G(), _ = O("button"), g = k(d), 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(_, "class", "OtpButton error"), p(t, "class", "OtpError");
|
|
3964
3959
|
},
|
|
3965
|
-
m(
|
|
3966
|
-
C(
|
|
3967
|
-
|
|
3960
|
+
m(P, L) {
|
|
3961
|
+
C(P, t, L), 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, m), y(t, _), y(_, g), E || (S = ce(
|
|
3962
|
+
_,
|
|
3968
3963
|
"click",
|
|
3969
3964
|
/*manualClosePopup*/
|
|
3970
|
-
e[
|
|
3965
|
+
e[28]
|
|
3971
3966
|
), E = !0);
|
|
3972
3967
|
},
|
|
3973
|
-
p(
|
|
3968
|
+
p(P, L) {
|
|
3974
3969
|
L[0] & /*$_*/
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
256 &&
|
|
3970
|
+
524288 && s !== (s = /*$_*/
|
|
3971
|
+
P[19]("errorHeader") + "") && F(u, s), L[0] & /*errorMessage*/
|
|
3972
|
+
256 && F(
|
|
3978
3973
|
c,
|
|
3979
3974
|
/*errorMessage*/
|
|
3980
|
-
|
|
3975
|
+
P[8]
|
|
3981
3976
|
), L[0] & /*$_*/
|
|
3982
|
-
|
|
3983
|
-
|
|
3977
|
+
524288 && d !== (d = /*$_*/
|
|
3978
|
+
P[19]("close") + "") && F(g, d);
|
|
3984
3979
|
},
|
|
3985
|
-
d(
|
|
3986
|
-
|
|
3980
|
+
d(P) {
|
|
3981
|
+
P && H(t), E = !1, S();
|
|
3987
3982
|
}
|
|
3988
3983
|
};
|
|
3989
3984
|
}
|
|
3990
|
-
function
|
|
3991
|
-
let t,
|
|
3992
|
-
function o(
|
|
3985
|
+
function oo(e) {
|
|
3986
|
+
let t, r, n, i;
|
|
3987
|
+
function o(l, h) {
|
|
3993
3988
|
return (
|
|
3994
3989
|
/*isLastWarning*/
|
|
3995
|
-
|
|
3990
|
+
l[10] ? uo : lo
|
|
3996
3991
|
);
|
|
3997
3992
|
}
|
|
3998
|
-
let
|
|
3993
|
+
let a = o(e), s = a(e), u = (
|
|
3999
3994
|
/*hasErrors*/
|
|
4000
|
-
e[6] &&
|
|
3995
|
+
e[6] && qt(e)
|
|
4001
3996
|
);
|
|
4002
3997
|
return {
|
|
4003
3998
|
c() {
|
|
4004
|
-
t =
|
|
3999
|
+
t = O("p"), s.c(), n = G(), u && u.c(), i = zr(), p(t, "class", r = /*isLastWarning*/
|
|
4005
4000
|
e[10] ? "LastWarningMessage" : "");
|
|
4006
4001
|
},
|
|
4007
|
-
m(
|
|
4008
|
-
C(
|
|
4002
|
+
m(l, h) {
|
|
4003
|
+
C(l, t, h), s.m(t, null), C(l, n, h), u && u.m(l, h), C(l, i, h);
|
|
4009
4004
|
},
|
|
4010
|
-
p(
|
|
4011
|
-
|
|
4012
|
-
1024 &&
|
|
4013
|
-
|
|
4014
|
-
|
|
4005
|
+
p(l, h) {
|
|
4006
|
+
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*/
|
|
4007
|
+
1024 && r !== (r = /*isLastWarning*/
|
|
4008
|
+
l[10] ? "LastWarningMessage" : "") && p(t, "class", r), /*hasErrors*/
|
|
4009
|
+
l[6] ? u ? u.p(l, h) : (u = qt(l), u.c(), u.m(i.parentNode, i)) : u && (u.d(1), u = null);
|
|
4015
4010
|
},
|
|
4016
|
-
d(
|
|
4017
|
-
|
|
4011
|
+
d(l) {
|
|
4012
|
+
l && (H(t), H(n), H(i)), s.d(), u && u.d(l);
|
|
4018
4013
|
}
|
|
4019
4014
|
};
|
|
4020
4015
|
}
|
|
4021
|
-
function
|
|
4022
|
-
let t,
|
|
4016
|
+
function so(e) {
|
|
4017
|
+
let t, r = (
|
|
4023
4018
|
/*$_*/
|
|
4024
|
-
(e[
|
|
4025
|
-
),
|
|
4019
|
+
(e[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + ""
|
|
4020
|
+
), n;
|
|
4026
4021
|
return {
|
|
4027
4022
|
c() {
|
|
4028
|
-
t =
|
|
4023
|
+
t = O("p"), n = k(r);
|
|
4029
4024
|
},
|
|
4030
4025
|
m(i, o) {
|
|
4031
|
-
C(i, t, o),
|
|
4026
|
+
C(i, t, o), y(t, n);
|
|
4032
4027
|
},
|
|
4033
4028
|
p(i, o) {
|
|
4034
4029
|
o[0] & /*$_*/
|
|
4035
|
-
|
|
4036
|
-
(i[
|
|
4030
|
+
524288 && r !== (r = /*$_*/
|
|
4031
|
+
(i[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && F(n, r);
|
|
4037
4032
|
},
|
|
4038
4033
|
d(i) {
|
|
4039
4034
|
i && H(t);
|
|
4040
4035
|
}
|
|
4041
4036
|
};
|
|
4042
4037
|
}
|
|
4043
|
-
function
|
|
4044
|
-
let t,
|
|
4038
|
+
function ao(e) {
|
|
4039
|
+
let t, r = (
|
|
4045
4040
|
/*$_*/
|
|
4046
|
-
e[
|
|
4047
|
-
),
|
|
4041
|
+
e[19]("otpExpiredMessage") + ""
|
|
4042
|
+
), n;
|
|
4048
4043
|
return {
|
|
4049
4044
|
c() {
|
|
4050
|
-
t =
|
|
4045
|
+
t = O("p"), n = k(r), p(t, "class", "OtpNoticeMessage"), p(t, "role", "alert");
|
|
4051
4046
|
},
|
|
4052
4047
|
m(i, o) {
|
|
4053
|
-
C(i, t, o),
|
|
4048
|
+
C(i, t, o), y(t, n);
|
|
4054
4049
|
},
|
|
4055
4050
|
p(i, o) {
|
|
4056
4051
|
o[0] & /*$_*/
|
|
4057
|
-
|
|
4058
|
-
i[
|
|
4052
|
+
524288 && r !== (r = /*$_*/
|
|
4053
|
+
i[19]("otpExpiredMessage") + "") && F(n, r);
|
|
4059
4054
|
},
|
|
4060
4055
|
d(i) {
|
|
4061
4056
|
i && H(t);
|
|
4062
4057
|
}
|
|
4063
4058
|
};
|
|
4064
4059
|
}
|
|
4065
|
-
function
|
|
4060
|
+
function lo(e) {
|
|
4066
4061
|
let t = (
|
|
4067
4062
|
/*$_*/
|
|
4068
|
-
e[
|
|
4069
|
-
),
|
|
4063
|
+
e[19]("popupMessage") + ""
|
|
4064
|
+
), r;
|
|
4070
4065
|
return {
|
|
4071
4066
|
c() {
|
|
4072
|
-
|
|
4067
|
+
r = k(t);
|
|
4073
4068
|
},
|
|
4074
|
-
m(
|
|
4075
|
-
C(
|
|
4069
|
+
m(n, i) {
|
|
4070
|
+
C(n, r, i);
|
|
4076
4071
|
},
|
|
4077
|
-
p(
|
|
4072
|
+
p(n, i) {
|
|
4078
4073
|
i[0] & /*$_*/
|
|
4079
|
-
|
|
4080
|
-
|
|
4074
|
+
524288 && t !== (t = /*$_*/
|
|
4075
|
+
n[19]("popupMessage") + "") && F(r, t);
|
|
4081
4076
|
},
|
|
4082
|
-
d(
|
|
4083
|
-
|
|
4077
|
+
d(n) {
|
|
4078
|
+
n && H(r);
|
|
4084
4079
|
}
|
|
4085
4080
|
};
|
|
4086
4081
|
}
|
|
4087
|
-
function
|
|
4082
|
+
function uo(e) {
|
|
4088
4083
|
let t = (
|
|
4089
4084
|
/*$_*/
|
|
4090
|
-
e[
|
|
4091
|
-
),
|
|
4085
|
+
e[19]("popupMessageLastWarning") + ""
|
|
4086
|
+
), r;
|
|
4092
4087
|
return {
|
|
4093
4088
|
c() {
|
|
4094
|
-
|
|
4089
|
+
r = k(t);
|
|
4095
4090
|
},
|
|
4096
|
-
m(
|
|
4097
|
-
C(
|
|
4091
|
+
m(n, i) {
|
|
4092
|
+
C(n, r, i);
|
|
4098
4093
|
},
|
|
4099
|
-
p(
|
|
4094
|
+
p(n, i) {
|
|
4100
4095
|
i[0] & /*$_*/
|
|
4101
|
-
|
|
4102
|
-
|
|
4096
|
+
524288 && t !== (t = /*$_*/
|
|
4097
|
+
n[19]("popupMessageLastWarning") + "") && F(r, t);
|
|
4103
4098
|
},
|
|
4104
|
-
d(
|
|
4105
|
-
|
|
4099
|
+
d(n) {
|
|
4100
|
+
n && H(r);
|
|
4106
4101
|
}
|
|
4107
4102
|
};
|
|
4108
4103
|
}
|
|
4109
|
-
function
|
|
4110
|
-
let t,
|
|
4104
|
+
function qt(e) {
|
|
4105
|
+
let t, r;
|
|
4111
4106
|
return {
|
|
4112
4107
|
c() {
|
|
4113
|
-
t =
|
|
4108
|
+
t = O("p"), r = k(
|
|
4114
4109
|
/*errorMessage*/
|
|
4115
4110
|
e[8]
|
|
4116
4111
|
), p(t, "class", "OtpErrorMessage"), p(t, "role", "alert");
|
|
4117
4112
|
},
|
|
4118
|
-
m(
|
|
4119
|
-
C(
|
|
4113
|
+
m(n, i) {
|
|
4114
|
+
C(n, t, i), y(t, r);
|
|
4120
4115
|
},
|
|
4121
|
-
p(
|
|
4116
|
+
p(n, i) {
|
|
4122
4117
|
i[0] & /*errorMessage*/
|
|
4123
|
-
256 &&
|
|
4124
|
-
|
|
4118
|
+
256 && F(
|
|
4119
|
+
r,
|
|
4125
4120
|
/*errorMessage*/
|
|
4126
|
-
|
|
4121
|
+
n[8]
|
|
4127
4122
|
);
|
|
4128
4123
|
},
|
|
4129
|
-
d(
|
|
4130
|
-
|
|
4124
|
+
d(n) {
|
|
4125
|
+
n && H(t);
|
|
4131
4126
|
}
|
|
4132
4127
|
};
|
|
4133
4128
|
}
|
|
4134
|
-
function
|
|
4135
|
-
let t,
|
|
4136
|
-
function o(u,
|
|
4129
|
+
function Qt(e) {
|
|
4130
|
+
let t, r, n, i;
|
|
4131
|
+
function o(u, l) {
|
|
4137
4132
|
return (
|
|
4138
4133
|
/*currentChannelTimer*/
|
|
4139
|
-
u[
|
|
4134
|
+
u[17] > 0 ? co : ho
|
|
4140
4135
|
);
|
|
4141
4136
|
}
|
|
4142
|
-
let
|
|
4137
|
+
let a = o(e), s = a(e);
|
|
4143
4138
|
return {
|
|
4144
4139
|
c() {
|
|
4145
|
-
t =
|
|
4146
|
-
e[
|
|
4140
|
+
t = O("button"), s.c(), p(t, "class", "OtpButton"), t.disabled = r = !/*canSubmitChannel*/
|
|
4141
|
+
e[18], ie(t, "disabled", !/*canSubmitChannel*/
|
|
4142
|
+
e[18] || /*waitingForConfig*/
|
|
4147
4143
|
e[16]);
|
|
4148
4144
|
},
|
|
4149
|
-
m(u,
|
|
4150
|
-
C(u, t,
|
|
4145
|
+
m(u, l) {
|
|
4146
|
+
C(u, t, l), s.m(t, null), n || (i = ce(
|
|
4151
4147
|
t,
|
|
4152
4148
|
"click",
|
|
4153
4149
|
/*handleChannelSubmit*/
|
|
4154
|
-
e[
|
|
4155
|
-
),
|
|
4150
|
+
e[22]
|
|
4151
|
+
), n = !0);
|
|
4156
4152
|
},
|
|
4157
|
-
p(u,
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
u[
|
|
4161
|
-
|
|
4153
|
+
p(u, l) {
|
|
4154
|
+
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*/
|
|
4155
|
+
262144 && r !== (r = !/*canSubmitChannel*/
|
|
4156
|
+
u[18]) && (t.disabled = r), l[0] & /*canSubmitChannel, waitingForConfig*/
|
|
4157
|
+
327680 && ie(t, "disabled", !/*canSubmitChannel*/
|
|
4158
|
+
u[18] || /*waitingForConfig*/
|
|
4162
4159
|
u[16]);
|
|
4163
4160
|
},
|
|
4164
4161
|
d(u) {
|
|
4165
|
-
u && H(t), s.d(),
|
|
4162
|
+
u && H(t), s.d(), n = !1, i();
|
|
4166
4163
|
}
|
|
4167
4164
|
};
|
|
4168
4165
|
}
|
|
4169
|
-
function
|
|
4166
|
+
function ho(e) {
|
|
4170
4167
|
let t = (
|
|
4171
4168
|
/*$_*/
|
|
4172
|
-
e[
|
|
4173
|
-
),
|
|
4169
|
+
e[19]("sendCode") + ""
|
|
4170
|
+
), r;
|
|
4174
4171
|
return {
|
|
4175
4172
|
c() {
|
|
4176
|
-
|
|
4173
|
+
r = k(t);
|
|
4177
4174
|
},
|
|
4178
|
-
m(
|
|
4179
|
-
C(
|
|
4175
|
+
m(n, i) {
|
|
4176
|
+
C(n, r, i);
|
|
4180
4177
|
},
|
|
4181
|
-
p(
|
|
4178
|
+
p(n, i) {
|
|
4182
4179
|
i[0] & /*$_*/
|
|
4183
|
-
|
|
4184
|
-
|
|
4180
|
+
524288 && t !== (t = /*$_*/
|
|
4181
|
+
n[19]("sendCode") + "") && F(r, t);
|
|
4185
4182
|
},
|
|
4186
|
-
d(
|
|
4187
|
-
|
|
4183
|
+
d(n) {
|
|
4184
|
+
n && H(r);
|
|
4188
4185
|
}
|
|
4189
4186
|
};
|
|
4190
4187
|
}
|
|
4191
|
-
function
|
|
4188
|
+
function co(e) {
|
|
4192
4189
|
let t = (
|
|
4193
4190
|
/*$_*/
|
|
4194
|
-
e[
|
|
4195
|
-
),
|
|
4191
|
+
e[19]("waitSeconds") + ""
|
|
4192
|
+
), r, n, i, o;
|
|
4196
4193
|
return {
|
|
4197
4194
|
c() {
|
|
4198
|
-
|
|
4195
|
+
r = k(t), n = k(" ("), i = k(
|
|
4199
4196
|
/*currentChannelTimer*/
|
|
4200
|
-
e[
|
|
4201
|
-
), o =
|
|
4197
|
+
e[17]
|
|
4198
|
+
), o = k("s)");
|
|
4202
4199
|
},
|
|
4203
|
-
m(
|
|
4204
|
-
C(
|
|
4200
|
+
m(a, s) {
|
|
4201
|
+
C(a, r, s), C(a, n, s), C(a, i, s), C(a, o, s);
|
|
4205
4202
|
},
|
|
4206
|
-
p(
|
|
4203
|
+
p(a, s) {
|
|
4207
4204
|
s[0] & /*$_*/
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4205
|
+
524288 && t !== (t = /*$_*/
|
|
4206
|
+
a[19]("waitSeconds") + "") && F(r, t), s[0] & /*currentChannelTimer*/
|
|
4207
|
+
131072 && F(
|
|
4211
4208
|
i,
|
|
4212
4209
|
/*currentChannelTimer*/
|
|
4213
|
-
|
|
4210
|
+
a[17]
|
|
4214
4211
|
);
|
|
4215
4212
|
},
|
|
4216
|
-
d(
|
|
4217
|
-
|
|
4213
|
+
d(a) {
|
|
4214
|
+
a && (H(r), H(n), H(i), H(o));
|
|
4218
4215
|
}
|
|
4219
4216
|
};
|
|
4220
4217
|
}
|
|
4221
|
-
function
|
|
4222
|
-
let t,
|
|
4218
|
+
function fo(e) {
|
|
4219
|
+
let t, r, n = (
|
|
4223
4220
|
/*$_*/
|
|
4224
|
-
e[
|
|
4225
|
-
), i, o,
|
|
4221
|
+
e[19]("timeRemaining") + ""
|
|
4222
|
+
), i, o, a = (
|
|
4226
4223
|
/*formatTime*/
|
|
4227
|
-
e[
|
|
4224
|
+
e[23](
|
|
4228
4225
|
/*timeLeft*/
|
|
4229
4226
|
e[5]
|
|
4230
4227
|
) + ""
|
|
4231
|
-
), s, u,
|
|
4228
|
+
), s, u, l = (
|
|
4232
4229
|
/*$_*/
|
|
4233
|
-
e[
|
|
4234
|
-
), h, c,
|
|
4230
|
+
e[19]("minutes") + ""
|
|
4231
|
+
), h, c, m, _ = Mt(
|
|
4235
4232
|
/*otp*/
|
|
4236
4233
|
e[2]
|
|
4237
|
-
),
|
|
4238
|
-
for (let
|
|
4239
|
-
|
|
4234
|
+
), d = [];
|
|
4235
|
+
for (let g = 0; g < _.length; g += 1)
|
|
4236
|
+
d[g] = Jt(Zt(e, _, g));
|
|
4240
4237
|
return {
|
|
4241
4238
|
c() {
|
|
4242
|
-
t =
|
|
4243
|
-
for (let
|
|
4244
|
-
|
|
4245
|
-
p(
|
|
4239
|
+
t = O("div"), r = O("div"), i = k(n), o = G(), s = k(a), u = G(), h = k(l), c = G(), m = O("div");
|
|
4240
|
+
for (let g = 0; g < d.length; g += 1)
|
|
4241
|
+
d[g].c();
|
|
4242
|
+
p(r, "class", "OtpTimer"), p(m, "class", "OtpField"), p(t, "class", "OtpFieldWrapper");
|
|
4246
4243
|
},
|
|
4247
|
-
m(
|
|
4248
|
-
C(
|
|
4249
|
-
for (let
|
|
4250
|
-
|
|
4244
|
+
m(g, E) {
|
|
4245
|
+
C(g, t, E), y(t, r), y(r, i), y(r, o), y(r, s), y(r, u), y(r, h), y(t, c), y(t, m);
|
|
4246
|
+
for (let S = 0; S < d.length; S += 1)
|
|
4247
|
+
d[S] && d[S].m(m, null);
|
|
4251
4248
|
},
|
|
4252
|
-
p(
|
|
4249
|
+
p(g, E) {
|
|
4253
4250
|
if (E[0] & /*$_*/
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
32 &&
|
|
4257
|
-
|
|
4251
|
+
524288 && n !== (n = /*$_*/
|
|
4252
|
+
g[19]("timeRemaining") + "") && F(i, n), E[0] & /*timeLeft*/
|
|
4253
|
+
32 && a !== (a = /*formatTime*/
|
|
4254
|
+
g[23](
|
|
4258
4255
|
/*timeLeft*/
|
|
4259
|
-
|
|
4260
|
-
) + "") &&
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4256
|
+
g[5]
|
|
4257
|
+
) + "") && F(s, a), E[0] & /*$_*/
|
|
4258
|
+
524288 && l !== (l = /*$_*/
|
|
4259
|
+
g[19]("minutes") + "") && F(h, l), E[0] & /*config, otp, inputDisabled, otpInputs, handleOtpInput, handleKeyDown, handleOnPasteOtp*/
|
|
4260
|
+
117458964) {
|
|
4261
|
+
_ = Mt(
|
|
4265
4262
|
/*otp*/
|
|
4266
|
-
|
|
4263
|
+
g[2]
|
|
4267
4264
|
);
|
|
4268
|
-
let
|
|
4269
|
-
for (
|
|
4270
|
-
const
|
|
4271
|
-
|
|
4265
|
+
let S;
|
|
4266
|
+
for (S = 0; S < _.length; S += 1) {
|
|
4267
|
+
const P = Zt(g, _, S);
|
|
4268
|
+
d[S] ? d[S].p(P, E) : (d[S] = Jt(P), d[S].c(), d[S].m(m, null));
|
|
4272
4269
|
}
|
|
4273
|
-
for (;
|
|
4274
|
-
|
|
4275
|
-
|
|
4270
|
+
for (; S < d.length; S += 1)
|
|
4271
|
+
d[S].d(1);
|
|
4272
|
+
d.length = _.length;
|
|
4276
4273
|
}
|
|
4277
4274
|
},
|
|
4278
|
-
d(
|
|
4279
|
-
|
|
4275
|
+
d(g) {
|
|
4276
|
+
g && H(t), $r(d, g);
|
|
4280
4277
|
}
|
|
4281
4278
|
};
|
|
4282
4279
|
}
|
|
4283
|
-
function
|
|
4280
|
+
function po(e) {
|
|
4284
4281
|
let t;
|
|
4285
4282
|
return {
|
|
4286
4283
|
c() {
|
|
4287
|
-
t =
|
|
4284
|
+
t = O("div"), t.innerHTML = '<span class="OtpLoader"></span>', p(t, "class", "OtpLoaderContainer");
|
|
4288
4285
|
},
|
|
4289
|
-
m(
|
|
4290
|
-
C(
|
|
4286
|
+
m(r, n) {
|
|
4287
|
+
C(r, t, n);
|
|
4291
4288
|
},
|
|
4292
|
-
p:
|
|
4293
|
-
d(
|
|
4294
|
-
|
|
4289
|
+
p: Y,
|
|
4290
|
+
d(r) {
|
|
4291
|
+
r && H(t);
|
|
4295
4292
|
}
|
|
4296
4293
|
};
|
|
4297
4294
|
}
|
|
4298
|
-
function
|
|
4299
|
-
let t,
|
|
4295
|
+
function Jt(e) {
|
|
4296
|
+
let t, r, n, i = (
|
|
4300
4297
|
/*index*/
|
|
4301
|
-
e[
|
|
4302
|
-
), o,
|
|
4298
|
+
e[71]
|
|
4299
|
+
), o, a;
|
|
4303
4300
|
const s = () => (
|
|
4304
4301
|
/*input_binding*/
|
|
4305
|
-
e[
|
|
4302
|
+
e[41](t, i)
|
|
4306
4303
|
), u = () => (
|
|
4307
4304
|
/*input_binding*/
|
|
4308
|
-
e[
|
|
4305
|
+
e[41](null, i)
|
|
4309
4306
|
);
|
|
4310
|
-
function
|
|
4307
|
+
function l(...c) {
|
|
4311
4308
|
return (
|
|
4312
4309
|
/*input_handler*/
|
|
4313
|
-
e[
|
|
4310
|
+
e[42](
|
|
4314
4311
|
/*index*/
|
|
4315
|
-
e[
|
|
4312
|
+
e[71],
|
|
4316
4313
|
...c
|
|
4317
4314
|
)
|
|
4318
4315
|
);
|
|
@@ -4320,261 +4317,258 @@ function Yt(e) {
|
|
|
4320
4317
|
function h(...c) {
|
|
4321
4318
|
return (
|
|
4322
4319
|
/*keydown_handler*/
|
|
4323
|
-
e[
|
|
4320
|
+
e[43](
|
|
4324
4321
|
/*index*/
|
|
4325
|
-
e[
|
|
4322
|
+
e[71],
|
|
4326
4323
|
...c
|
|
4327
4324
|
)
|
|
4328
4325
|
);
|
|
4329
4326
|
}
|
|
4330
4327
|
return {
|
|
4331
4328
|
c() {
|
|
4332
|
-
t =
|
|
4333
|
-
e[
|
|
4329
|
+
t = O("input"), p(t, "id", `otp-input-${/*index*/
|
|
4330
|
+
e[71]}`), p(t, "type", "text"), p(t, "class", r = `otp-box ${/*config*/
|
|
4334
4331
|
e[4].inputLength % 2 === 0 && /*index*/
|
|
4335
|
-
e[
|
|
4336
|
-
e[4].inputLength / 2 - 1 ? "space" : ""}`), p(t, "maxlength", 1), t.value =
|
|
4337
|
-
e[
|
|
4332
|
+
e[71] === /*config*/
|
|
4333
|
+
e[4].inputLength / 2 - 1 ? "space" : ""}`), p(t, "maxlength", 1), t.value = n = /*char*/
|
|
4334
|
+
e[69], p(t, "inputmode", "numeric"), t.disabled = /*inputDisabled*/
|
|
4338
4335
|
e[11], p(t, "autocomplete", "off");
|
|
4339
4336
|
},
|
|
4340
|
-
m(c,
|
|
4341
|
-
C(c, t,
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4337
|
+
m(c, m) {
|
|
4338
|
+
C(c, t, m), s(), o || (a = [
|
|
4339
|
+
ce(t, "input", l),
|
|
4340
|
+
ce(t, "keydown", h),
|
|
4341
|
+
ce(
|
|
4345
4342
|
t,
|
|
4346
4343
|
"paste",
|
|
4347
4344
|
/*handleOnPasteOtp*/
|
|
4348
|
-
e[
|
|
4345
|
+
e[24]
|
|
4349
4346
|
)
|
|
4350
4347
|
], o = !0);
|
|
4351
4348
|
},
|
|
4352
|
-
p(c,
|
|
4353
|
-
e = c,
|
|
4354
|
-
16 &&
|
|
4349
|
+
p(c, m) {
|
|
4350
|
+
e = c, m[0] & /*config*/
|
|
4351
|
+
16 && r !== (r = `otp-box ${/*config*/
|
|
4355
4352
|
e[4].inputLength % 2 === 0 && /*index*/
|
|
4356
|
-
e[
|
|
4357
|
-
e[4].inputLength / 2 - 1 ? "space" : ""}`) && p(t, "class",
|
|
4358
|
-
4 &&
|
|
4359
|
-
e[
|
|
4353
|
+
e[71] === /*config*/
|
|
4354
|
+
e[4].inputLength / 2 - 1 ? "space" : ""}`) && p(t, "class", r), m[0] & /*otp*/
|
|
4355
|
+
4 && n !== (n = /*char*/
|
|
4356
|
+
e[69]) && t.value !== n && (t.value = n), m[0] & /*inputDisabled*/
|
|
4360
4357
|
2048 && (t.disabled = /*inputDisabled*/
|
|
4361
4358
|
e[11]), i !== /*index*/
|
|
4362
|
-
e[
|
|
4363
|
-
e[
|
|
4359
|
+
e[71] && (u(), i = /*index*/
|
|
4360
|
+
e[71], s());
|
|
4364
4361
|
},
|
|
4365
4362
|
d(c) {
|
|
4366
|
-
c && H(t), u(), o = !1,
|
|
4363
|
+
c && H(t), u(), o = !1, _e(a);
|
|
4367
4364
|
}
|
|
4368
4365
|
};
|
|
4369
4366
|
}
|
|
4370
|
-
function
|
|
4371
|
-
let t,
|
|
4367
|
+
function mo(e) {
|
|
4368
|
+
let t, r = (
|
|
4372
4369
|
/*$_*/
|
|
4373
|
-
e[
|
|
4374
|
-
),
|
|
4370
|
+
e[19]("submit") + ""
|
|
4371
|
+
), n, i, o, a;
|
|
4375
4372
|
return {
|
|
4376
4373
|
c() {
|
|
4377
|
-
t =
|
|
4374
|
+
t = O("button"), n = k(r), p(t, "class", "OtpButton"), t.disabled = i = /*otp*/
|
|
4378
4375
|
e[2].join("").length !== /*config*/
|
|
4379
4376
|
e[4].inputLength || /*isSubmitting*/
|
|
4380
|
-
e[13]
|
|
4377
|
+
e[13] || /*maxAttempts*/
|
|
4378
|
+
e[15];
|
|
4381
4379
|
},
|
|
4382
4380
|
m(s, u) {
|
|
4383
|
-
C(s, t, u),
|
|
4381
|
+
C(s, t, u), y(t, n), o || (a = ce(
|
|
4384
4382
|
t,
|
|
4385
4383
|
"click",
|
|
4386
4384
|
/*submitOtp*/
|
|
4387
|
-
e[
|
|
4385
|
+
e[29]
|
|
4388
4386
|
), o = !0);
|
|
4389
4387
|
},
|
|
4390
4388
|
p(s, u) {
|
|
4391
4389
|
u[0] & /*$_*/
|
|
4392
|
-
|
|
4393
|
-
s[
|
|
4394
|
-
|
|
4390
|
+
524288 && r !== (r = /*$_*/
|
|
4391
|
+
s[19]("submit") + "") && F(n, r), u[0] & /*otp, config, isSubmitting, maxAttempts*/
|
|
4392
|
+
40980 && i !== (i = /*otp*/
|
|
4395
4393
|
s[2].join("").length !== /*config*/
|
|
4396
4394
|
s[4].inputLength || /*isSubmitting*/
|
|
4397
|
-
s[13]
|
|
4395
|
+
s[13] || /*maxAttempts*/
|
|
4396
|
+
s[15]) && (t.disabled = i);
|
|
4398
4397
|
},
|
|
4399
4398
|
d(s) {
|
|
4400
|
-
s && H(t), o = !1,
|
|
4399
|
+
s && H(t), o = !1, a();
|
|
4401
4400
|
}
|
|
4402
4401
|
};
|
|
4403
4402
|
}
|
|
4404
|
-
function
|
|
4405
|
-
let t,
|
|
4403
|
+
function go(e) {
|
|
4404
|
+
let t, r = (
|
|
4406
4405
|
/*$_*/
|
|
4407
|
-
e[
|
|
4408
|
-
),
|
|
4406
|
+
e[19]("resendOtp") + ""
|
|
4407
|
+
), n, i, o;
|
|
4409
4408
|
return {
|
|
4410
4409
|
c() {
|
|
4411
|
-
t =
|
|
4410
|
+
t = O("button"), n = k(r), p(t, "class", "OtpButton");
|
|
4412
4411
|
},
|
|
4413
|
-
m(
|
|
4414
|
-
C(
|
|
4412
|
+
m(a, s) {
|
|
4413
|
+
C(a, t, s), y(t, n), i || (o = ce(
|
|
4415
4414
|
t,
|
|
4416
4415
|
"click",
|
|
4417
4416
|
/*handleResendOtp*/
|
|
4418
|
-
e[
|
|
4417
|
+
e[27]
|
|
4419
4418
|
), i = !0);
|
|
4420
4419
|
},
|
|
4421
|
-
p(
|
|
4420
|
+
p(a, s) {
|
|
4422
4421
|
s[0] & /*$_*/
|
|
4423
|
-
|
|
4424
|
-
|
|
4422
|
+
524288 && r !== (r = /*$_*/
|
|
4423
|
+
a[19]("resendOtp") + "") && F(n, r);
|
|
4425
4424
|
},
|
|
4426
|
-
d(
|
|
4427
|
-
|
|
4425
|
+
d(a) {
|
|
4426
|
+
a && H(t), i = !1, o();
|
|
4428
4427
|
}
|
|
4429
4428
|
};
|
|
4430
4429
|
}
|
|
4431
|
-
function
|
|
4432
|
-
let t
|
|
4433
|
-
function
|
|
4430
|
+
function bo(e) {
|
|
4431
|
+
let t;
|
|
4432
|
+
function r(o, a) {
|
|
4434
4433
|
return (
|
|
4435
4434
|
/*hasConfigErrors*/
|
|
4436
|
-
|
|
4435
|
+
o[7] ? io : no
|
|
4437
4436
|
);
|
|
4438
4437
|
}
|
|
4439
|
-
let
|
|
4438
|
+
let n = r(e), i = n(e);
|
|
4440
4439
|
return {
|
|
4441
4440
|
c() {
|
|
4442
|
-
t =
|
|
4441
|
+
t = O("div"), i.c(), p(t, "class", "OtpContent");
|
|
4443
4442
|
},
|
|
4444
|
-
m(
|
|
4445
|
-
C(
|
|
4446
|
-
r,
|
|
4447
|
-
"click",
|
|
4448
|
-
/*manualClosePopup*/
|
|
4449
|
-
e[26]
|
|
4450
|
-
), l = !0);
|
|
4443
|
+
m(o, a) {
|
|
4444
|
+
C(o, t, a), i.m(t, null), e[44](t);
|
|
4451
4445
|
},
|
|
4452
|
-
p(
|
|
4453
|
-
|
|
4446
|
+
p(o, a) {
|
|
4447
|
+
n === (n = r(o)) && i ? i.p(o, a) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
4454
4448
|
},
|
|
4455
|
-
i:
|
|
4456
|
-
o:
|
|
4457
|
-
d(
|
|
4458
|
-
|
|
4449
|
+
i: Y,
|
|
4450
|
+
o: Y,
|
|
4451
|
+
d(o) {
|
|
4452
|
+
o && H(t), i.d(), e[44](null);
|
|
4459
4453
|
}
|
|
4460
4454
|
};
|
|
4461
4455
|
}
|
|
4462
|
-
function
|
|
4463
|
-
let
|
|
4464
|
-
|
|
4465
|
-
let { clientstyling:
|
|
4466
|
-
const
|
|
4456
|
+
function yo(e, t, r) {
|
|
4457
|
+
let n, i, o;
|
|
4458
|
+
Gr(e, eo, (f) => r(19, o = f));
|
|
4459
|
+
let { clientstyling: a = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { endpoint: h } = t, { session: c } = t, { translationurl: m } = t, { templateid: _ } = t, d = [], g = !0, E = null, S = 0, P = "", L = "", D = !1, M = !1, N = "", K = "", q = "", ae = !1, pe = !1, le = !1, B = "", U = {}, W = null, me = !1, de = !1, ge = "", Q, ee = [], $ = null, ue = 0, te = !1, be = !1;
|
|
4460
|
+
const ve = { SMS: "sms", EMAIL: "email" }, ye = {
|
|
4467
4461
|
MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
|
|
4468
4462
|
INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
|
|
4469
4463
|
MAX_INVALIDATE: "gm.multifactorauthentication.challenge_internal_server_error"
|
|
4470
4464
|
};
|
|
4471
|
-
Object.keys(
|
|
4472
|
-
|
|
4465
|
+
Object.keys(Wt).forEach((f) => {
|
|
4466
|
+
Xt(f, Wt[f]);
|
|
4473
4467
|
});
|
|
4474
|
-
const
|
|
4475
|
-
|
|
4476
|
-
},
|
|
4477
|
-
fetch(
|
|
4468
|
+
const xe = () => {
|
|
4469
|
+
to(l);
|
|
4470
|
+
}, J = () => {
|
|
4471
|
+
fetch(m).then((f) => f.json()).then((f) => {
|
|
4478
4472
|
Object.keys(f).forEach((v) => {
|
|
4479
|
-
|
|
4473
|
+
Xt(v, f[v]);
|
|
4480
4474
|
});
|
|
4481
4475
|
}).catch((f) => {
|
|
4482
4476
|
console.log(f);
|
|
4483
4477
|
});
|
|
4484
|
-
},
|
|
4478
|
+
}, j = async (f) => {
|
|
4485
4479
|
if (f.detail?.["x-step-up-required"]) {
|
|
4486
|
-
if (
|
|
4487
|
-
|
|
4480
|
+
if (r(7, M = !1), r(6, D = !1), r(8, N = ""), K = f.detail["x-step-up-token"], q = f.detail.flow, !K || !q) {
|
|
4481
|
+
r(3, g = !1), r(7, M = !0), r(8, N = o("configError"));
|
|
4488
4482
|
return;
|
|
4489
4483
|
}
|
|
4490
|
-
|
|
4484
|
+
r(12, me = !1), r(3, g = !1);
|
|
4491
4485
|
}
|
|
4492
|
-
},
|
|
4493
|
-
|
|
4494
|
-
},
|
|
4495
|
-
|
|
4496
|
-
},
|
|
4486
|
+
}, Fe = () => {
|
|
4487
|
+
$ && (clearInterval($), $ = null), W && (clearInterval(W), W = null), r(6, D = !1), r(7, M = !1), r(8, N = ""), r(10, pe = !1), r(2, d = []), r(4, E = null), r(3, g = !0), r(0, B = ""), r(12, me = !1), r(38, U = {});
|
|
4488
|
+
}, he = () => {
|
|
4489
|
+
Fe();
|
|
4490
|
+
}, V = () => new Promise((f, v) => {
|
|
4497
4491
|
const x = new URL(`${h}/api/pam/v1/mfa/challenge/${K}`), X = new Headers();
|
|
4498
|
-
X.append("accept", "application/json"), X.append("Content-Type", "application/json"), X.append("X-SessionId", `${c}`);
|
|
4499
|
-
const
|
|
4492
|
+
X.append("accept", "application/json"), X.append("Content-Type", "application/json"), X.append("X-SessionId", `${c}`), r(16, be = !0);
|
|
4493
|
+
const it = {
|
|
4500
4494
|
method: "PATCH",
|
|
4501
4495
|
headers: X,
|
|
4502
4496
|
body: JSON.stringify({
|
|
4503
|
-
channel:
|
|
4504
|
-
templateId:
|
|
4497
|
+
channel: B,
|
|
4498
|
+
templateId: _
|
|
4505
4499
|
})
|
|
4506
4500
|
};
|
|
4507
|
-
fetch(x,
|
|
4508
|
-
|
|
4509
|
-
}).catch((
|
|
4501
|
+
fetch(x, it).then((Ct) => Ct.json()).then(() => {
|
|
4502
|
+
r(15, te = !1), b(), A(), f();
|
|
4503
|
+
}).catch((Ct) => {
|
|
4510
4504
|
v();
|
|
4511
4505
|
});
|
|
4512
|
-
}),
|
|
4513
|
-
|
|
4506
|
+
}), je = () => {
|
|
4507
|
+
W && clearInterval(W), W = setInterval(
|
|
4514
4508
|
() => {
|
|
4515
|
-
const f = {
|
|
4509
|
+
const f = { ...U };
|
|
4516
4510
|
let v = !1;
|
|
4517
4511
|
Object.keys(f).forEach((x) => {
|
|
4518
4512
|
f[x] > 0 && (f[x]--, v = !0);
|
|
4519
|
-
}),
|
|
4513
|
+
}), r(38, U = f), !v && W && (clearInterval(W), W = null);
|
|
4520
4514
|
},
|
|
4521
4515
|
1e3
|
|
4522
4516
|
);
|
|
4523
|
-
},
|
|
4524
|
-
|
|
4525
|
-
},
|
|
4526
|
-
if (!(!
|
|
4527
|
-
|
|
4517
|
+
}, re = (f) => {
|
|
4518
|
+
r(0, B = f);
|
|
4519
|
+
}, z = async () => {
|
|
4520
|
+
if (!(!B || U[B] && U[B] > 0)) {
|
|
4521
|
+
r(3, g = !0), _ && _.startsWith("2fa-") && r(30, _ = `2fa-${B}`);
|
|
4528
4522
|
try {
|
|
4529
|
-
await
|
|
4530
|
-
|
|
4531
|
-
[
|
|
4532
|
-
}),
|
|
4523
|
+
await V(), await nt(), r(38, U = {
|
|
4524
|
+
...U,
|
|
4525
|
+
[B]: 30
|
|
4526
|
+
}), je(), r(12, me = !0), b(), A();
|
|
4533
4527
|
} catch (f) {
|
|
4534
|
-
console.error("Error submitting channel:", f),
|
|
4528
|
+
console.error("Error submitting channel:", f), r(6, D = !0), r(8, N = o("submissionError"));
|
|
4535
4529
|
} finally {
|
|
4536
|
-
|
|
4530
|
+
r(3, g = !1);
|
|
4537
4531
|
}
|
|
4538
4532
|
}
|
|
4539
|
-
},
|
|
4540
|
-
const f = new Date(
|
|
4541
|
-
|
|
4542
|
-
const
|
|
4543
|
-
|
|
4544
|
-
},
|
|
4545
|
-
|
|
4533
|
+
}, b = () => {
|
|
4534
|
+
const f = new Date(P), v = new Date(L), x = /* @__PURE__ */ new Date(), X = v.getTime() - x.getTime();
|
|
4535
|
+
ue = f.getTime() - X;
|
|
4536
|
+
const Le = Date.now(), it = Math.max(0, Math.floor((ue - Le) / 1e3));
|
|
4537
|
+
r(5, S = it);
|
|
4538
|
+
}, A = () => {
|
|
4539
|
+
$ && clearInterval($), $ = setInterval(
|
|
4546
4540
|
() => {
|
|
4547
|
-
const f = Date.now(), v = Math.max(0, Math.floor((
|
|
4548
|
-
|
|
4541
|
+
const f = Date.now(), v = Math.max(0, Math.floor((ue - f) / 1e3));
|
|
4542
|
+
r(5, S = v), r(11, le = v <= 0), v <= 0 && (clearInterval($), $ = null, r(9, ae = !0), r(6, D = !1), r(10, pe = !1));
|
|
4549
4543
|
},
|
|
4550
4544
|
1e3
|
|
4551
4545
|
);
|
|
4552
|
-
},
|
|
4546
|
+
}, Or = (f) => {
|
|
4553
4547
|
const v = Math.floor(f / 60), x = f % 60;
|
|
4554
4548
|
return `${v.toString().padStart(2, "0")}:${x.toString().padStart(2, "0")}`;
|
|
4555
|
-
},
|
|
4556
|
-
const x = [...
|
|
4557
|
-
x[f] = v.toUpperCase(),
|
|
4558
|
-
},
|
|
4549
|
+
}, rt = (f, v) => {
|
|
4550
|
+
const x = [...d];
|
|
4551
|
+
x[f] = v.toUpperCase(), r(2, d = x), x.join("") !== ge && r(13, de = !1);
|
|
4552
|
+
}, Hr = (f) => {
|
|
4559
4553
|
f.preventDefault();
|
|
4560
4554
|
const x = (f.clipboardData?.getData("text")?.trim() || "").slice(0, E.inputLength).split("");
|
|
4561
|
-
|
|
4562
|
-
},
|
|
4555
|
+
r(2, d = [...x, ...Array(E.inputLength - x.length).fill("")]), ee[x.length]?.focus(), x.length === E.inputLength && At();
|
|
4556
|
+
}, Ot = (f, v) => {
|
|
4563
4557
|
const x = f.target, X = x.value;
|
|
4564
|
-
/^[a-z0-9]$/i.test(X) && (
|
|
4565
|
-
},
|
|
4558
|
+
/^[a-z0-9]$/i.test(X) && (rt(v, X), ee[v + 1]?.focus()), x.value = "";
|
|
4559
|
+
}, Ht = (f, v) => {
|
|
4566
4560
|
const x = f.key, X = f.ctrlKey || f.metaKey;
|
|
4567
4561
|
if (/^[a-z0-9]$/i.test(x)) {
|
|
4568
4562
|
if (X && x.toLowerCase() === "v")
|
|
4569
4563
|
return;
|
|
4570
|
-
f.preventDefault(),
|
|
4564
|
+
f.preventDefault(), rt(v, x), ee[v + 1]?.focus();
|
|
4571
4565
|
} else
|
|
4572
|
-
x === "Backspace" && (f.preventDefault(),
|
|
4573
|
-
},
|
|
4574
|
-
|
|
4566
|
+
x === "Backspace" && (f.preventDefault(), d[v] !== "" && rt(v, ""), ee[v - 1]?.focus());
|
|
4567
|
+
}, Ar = () => {
|
|
4568
|
+
q == "stateful" && (V(), r(9, ae = !1));
|
|
4575
4569
|
const f = new CustomEvent("otpResendRequested");
|
|
4576
4570
|
window.dispatchEvent(f);
|
|
4577
|
-
},
|
|
4571
|
+
}, Cr = (f) => {
|
|
4578
4572
|
window.dispatchEvent(new CustomEvent(
|
|
4579
4573
|
"otpSubmitted",
|
|
4580
4574
|
{
|
|
@@ -4585,19 +4579,19 @@ function go(e, t, n) {
|
|
|
4585
4579
|
}
|
|
4586
4580
|
}
|
|
4587
4581
|
));
|
|
4588
|
-
},
|
|
4582
|
+
}, Br = async (f) => {
|
|
4589
4583
|
const v = new URL(`/api/nwa/api/v1/mfa/challenge/${K}/validate`, h);
|
|
4590
4584
|
v.searchParams.append("input", f);
|
|
4591
4585
|
try {
|
|
4592
4586
|
const x = await fetch(v.href, { method: "POST" });
|
|
4593
4587
|
if (x.status === 200) {
|
|
4594
|
-
|
|
4588
|
+
Pr();
|
|
4595
4589
|
return;
|
|
4596
4590
|
}
|
|
4597
4591
|
const X = await x.json();
|
|
4598
4592
|
throw new Error(X.message);
|
|
4599
4593
|
} catch (x) {
|
|
4600
|
-
if (x.message ===
|
|
4594
|
+
if (await nt(), x.message === ye.INTERNAL_SERVER_ERROR) {
|
|
4601
4595
|
if (E.numberOfValidateAttempts === E.maxValidationAttempts - 1) {
|
|
4602
4596
|
window.dispatchEvent(new CustomEvent("otpSetTimeout")), window.postMessage(
|
|
4603
4597
|
{
|
|
@@ -4611,14 +4605,14 @@ function go(e, t, n) {
|
|
|
4611
4605
|
), window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
4612
4606
|
return;
|
|
4613
4607
|
}
|
|
4614
|
-
|
|
4608
|
+
r(6, D = !0), r(8, N = o("invalidOtp")), nt();
|
|
4615
4609
|
return;
|
|
4616
4610
|
}
|
|
4617
|
-
x.message ===
|
|
4611
|
+
x.message === ye.MAX_INVALIDATE && (r(6, D = !0), r(8, N = o("invalidOtp"))), x.details === ye.MAX_ATTEMPTS_EXCEEDED && r(15, te = !0), console.error("OTP submission failed:", x), r(6, D = !0), r(8, N = o("submissionError"));
|
|
4618
4612
|
} finally {
|
|
4619
|
-
|
|
4613
|
+
r(3, g = !1);
|
|
4620
4614
|
}
|
|
4621
|
-
},
|
|
4615
|
+
}, Pr = () => {
|
|
4622
4616
|
window.dispatchEvent(new CustomEvent(
|
|
4623
4617
|
"otpSuccess",
|
|
4624
4618
|
{
|
|
@@ -4627,179 +4621,183 @@ function go(e, t, n) {
|
|
|
4627
4621
|
}
|
|
4628
4622
|
}
|
|
4629
4623
|
));
|
|
4630
|
-
},
|
|
4624
|
+
}, Mr = () => {
|
|
4631
4625
|
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
4632
|
-
},
|
|
4633
|
-
if (
|
|
4634
|
-
|
|
4626
|
+
}, At = async () => {
|
|
4627
|
+
if (d.join("").length !== E.inputLength) {
|
|
4628
|
+
r(6, D = !0), r(8, N = o("invalidOtp"));
|
|
4635
4629
|
return;
|
|
4636
4630
|
}
|
|
4637
|
-
const f =
|
|
4638
|
-
|
|
4639
|
-
},
|
|
4631
|
+
const f = d.join("");
|
|
4632
|
+
r(13, de = !0), ge = f, r(3, g = !0), r(6, D = !1), r(8, N = ""), q === "stateless" && Cr(f), q === "stateful" && await Br(f);
|
|
4633
|
+
}, nt = async () => {
|
|
4640
4634
|
if (h)
|
|
4641
4635
|
try {
|
|
4642
|
-
|
|
4636
|
+
r(3, g = !0);
|
|
4643
4637
|
const f = new URL(`/api/nwa/api/v1/mfa/challenge/${K}/config`, h), v = await fetch(f.href), x = await v.json();
|
|
4644
4638
|
if (v.ok)
|
|
4645
|
-
|
|
4646
|
-
else if (x && x.details ===
|
|
4639
|
+
r(4, E = x), r(2, d = Array(E.inputLength).fill("")), r(9, ae = !1), P = E.expirationTime, L = E.serverTime, E.numberOfValidateAttempts !== 0 && (r(6, D = !0), r(8, N = o("invalidOtp"))), E.numberOfValidateAttempts === E.maxValidationAttempts - 1 && r(10, pe = !0), r(3, g = !1), b(), A(), r(16, be = !1);
|
|
4640
|
+
else if (x && x.details === ye.MAX_ATTEMPTS_EXCEEDED)
|
|
4647
4641
|
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
4648
4642
|
else {
|
|
4649
4643
|
const X = x && x.message || `Failed to load config. Status: ${v.status}`;
|
|
4650
4644
|
throw new Error(X);
|
|
4651
4645
|
}
|
|
4652
4646
|
} catch (f) {
|
|
4653
|
-
|
|
4647
|
+
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);
|
|
4654
4648
|
}
|
|
4655
4649
|
};
|
|
4656
|
-
|
|
4657
|
-
window.removeEventListener("stepUpAuthRequired",
|
|
4650
|
+
qr(() => (window.addEventListener("stepUpAuthRequired", j, !1), window.addEventListener("closePopup", he, !1), () => {
|
|
4651
|
+
window.removeEventListener("stepUpAuthRequired", j), window.removeEventListener("closePopup", he, !1), $ && clearInterval($), W && clearInterval(W);
|
|
4658
4652
|
}));
|
|
4659
|
-
const
|
|
4660
|
-
function
|
|
4661
|
-
|
|
4662
|
-
|
|
4653
|
+
const Ir = () => re(ve.SMS), Lr = () => re(ve.EMAIL);
|
|
4654
|
+
function Nr(f, v) {
|
|
4655
|
+
We[f ? "unshift" : "push"](() => {
|
|
4656
|
+
ee[v] = f, r(14, ee);
|
|
4663
4657
|
});
|
|
4664
4658
|
}
|
|
4665
|
-
const
|
|
4666
|
-
function
|
|
4667
|
-
|
|
4668
|
-
|
|
4659
|
+
const Rr = (f, v) => Ot(v, f), kr = (f, v) => Ht(v, f);
|
|
4660
|
+
function Dr(f) {
|
|
4661
|
+
We[f ? "unshift" : "push"](() => {
|
|
4662
|
+
Q = f, r(1, Q);
|
|
4669
4663
|
});
|
|
4670
4664
|
}
|
|
4671
4665
|
return e.$$set = (f) => {
|
|
4672
|
-
"clientstyling" in f &&
|
|
4666
|
+
"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, m = f.translationurl), "templateid" in f && r(30, _ = f.templateid);
|
|
4673
4667
|
}, e.$$.update = () => {
|
|
4674
|
-
e.$$.dirty[0] & /*
|
|
4675
|
-
|
|
4676
|
-
|
|
4668
|
+
e.$$.dirty[0] & /*customStylingContainer*/
|
|
4669
|
+
2 | e.$$.dirty[1] & /*clientstyling*/
|
|
4670
|
+
1 && a && Q && hn(Q, a), e.$$.dirty[0] & /*customStylingContainer*/
|
|
4671
|
+
2 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
4672
|
+
2 && s && Q && cn(Q, s), e.$$.dirty[0] & /*customStylingContainer*/
|
|
4677
4673
|
2 | e.$$.dirty[1] & /*mbsource*/
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4674
|
+
4 && u && Q && fn(Q, `${u}.Style`), e.$$.dirty[1] & /*lang*/
|
|
4675
|
+
8 && l && xe(), e.$$.dirty[1] & /*lang, translationurl*/
|
|
4676
|
+
72 && l && m && J(), e.$$.dirty[0] & /*selectedChannel*/
|
|
4681
4677
|
1 | e.$$.dirty[1] & /*channelSubmitTimers*/
|
|
4682
|
-
|
|
4678
|
+
128 && r(18, n = B && (!U[B] || U[B] === 0)), e.$$.dirty[0] & /*selectedChannel*/
|
|
4683
4679
|
1 | e.$$.dirty[1] & /*channelSubmitTimers*/
|
|
4684
|
-
|
|
4680
|
+
128 && r(17, i = B && U[B] || 0);
|
|
4685
4681
|
}, [
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4682
|
+
B,
|
|
4683
|
+
Q,
|
|
4684
|
+
d,
|
|
4685
|
+
g,
|
|
4690
4686
|
E,
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4687
|
+
S,
|
|
4688
|
+
D,
|
|
4689
|
+
M,
|
|
4694
4690
|
N,
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4691
|
+
ae,
|
|
4692
|
+
pe,
|
|
4693
|
+
le,
|
|
4694
|
+
me,
|
|
4695
|
+
de,
|
|
4696
|
+
ee,
|
|
4697
|
+
te,
|
|
4698
|
+
be,
|
|
4701
4699
|
i,
|
|
4702
|
-
|
|
4700
|
+
n,
|
|
4703
4701
|
o,
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
V,
|
|
4702
|
+
ve,
|
|
4703
|
+
re,
|
|
4707
4704
|
z,
|
|
4708
|
-
|
|
4709
|
-
|
|
4705
|
+
Or,
|
|
4706
|
+
Hr,
|
|
4707
|
+
Ot,
|
|
4708
|
+
Ht,
|
|
4709
|
+
Ar,
|
|
4710
|
+
Mr,
|
|
4711
|
+
At,
|
|
4710
4712
|
_,
|
|
4711
|
-
|
|
4712
|
-
Ln,
|
|
4713
|
-
Ct,
|
|
4714
|
-
y,
|
|
4715
|
-
l,
|
|
4713
|
+
a,
|
|
4716
4714
|
s,
|
|
4717
4715
|
u,
|
|
4718
|
-
|
|
4716
|
+
l,
|
|
4719
4717
|
h,
|
|
4720
4718
|
c,
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4719
|
+
m,
|
|
4720
|
+
U,
|
|
4721
|
+
Ir,
|
|
4722
|
+
Lr,
|
|
4723
|
+
Nr,
|
|
4724
|
+
Rr,
|
|
4725
|
+
kr,
|
|
4726
|
+
Dr
|
|
4729
4727
|
];
|
|
4730
4728
|
}
|
|
4731
|
-
class
|
|
4729
|
+
class _o extends ln {
|
|
4732
4730
|
constructor(t) {
|
|
4733
|
-
super(),
|
|
4731
|
+
super(), sn(
|
|
4734
4732
|
this,
|
|
4735
4733
|
t,
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4734
|
+
yo,
|
|
4735
|
+
bo,
|
|
4736
|
+
Kt,
|
|
4739
4737
|
{
|
|
4740
|
-
clientstyling:
|
|
4741
|
-
clientstylingurl:
|
|
4742
|
-
mbsource:
|
|
4743
|
-
lang:
|
|
4744
|
-
endpoint:
|
|
4745
|
-
session:
|
|
4746
|
-
translationurl:
|
|
4747
|
-
templateid:
|
|
4738
|
+
clientstyling: 31,
|
|
4739
|
+
clientstylingurl: 32,
|
|
4740
|
+
mbsource: 33,
|
|
4741
|
+
lang: 34,
|
|
4742
|
+
endpoint: 35,
|
|
4743
|
+
session: 36,
|
|
4744
|
+
translationurl: 37,
|
|
4745
|
+
templateid: 30
|
|
4748
4746
|
},
|
|
4749
|
-
|
|
4747
|
+
ro,
|
|
4750
4748
|
[-1, -1, -1]
|
|
4751
4749
|
);
|
|
4752
4750
|
}
|
|
4753
4751
|
get clientstyling() {
|
|
4754
|
-
return this.$$.ctx[
|
|
4752
|
+
return this.$$.ctx[31];
|
|
4755
4753
|
}
|
|
4756
4754
|
set clientstyling(t) {
|
|
4757
|
-
this.$$set({ clientstyling: t }),
|
|
4755
|
+
this.$$set({ clientstyling: t }), oe();
|
|
4758
4756
|
}
|
|
4759
4757
|
get clientstylingurl() {
|
|
4760
|
-
return this.$$.ctx[
|
|
4758
|
+
return this.$$.ctx[32];
|
|
4761
4759
|
}
|
|
4762
4760
|
set clientstylingurl(t) {
|
|
4763
|
-
this.$$set({ clientstylingurl: t }),
|
|
4761
|
+
this.$$set({ clientstylingurl: t }), oe();
|
|
4764
4762
|
}
|
|
4765
4763
|
get mbsource() {
|
|
4766
|
-
return this.$$.ctx[
|
|
4764
|
+
return this.$$.ctx[33];
|
|
4767
4765
|
}
|
|
4768
4766
|
set mbsource(t) {
|
|
4769
|
-
this.$$set({ mbsource: t }),
|
|
4767
|
+
this.$$set({ mbsource: t }), oe();
|
|
4770
4768
|
}
|
|
4771
4769
|
get lang() {
|
|
4772
|
-
return this.$$.ctx[
|
|
4770
|
+
return this.$$.ctx[34];
|
|
4773
4771
|
}
|
|
4774
4772
|
set lang(t) {
|
|
4775
|
-
this.$$set({ lang: t }),
|
|
4773
|
+
this.$$set({ lang: t }), oe();
|
|
4776
4774
|
}
|
|
4777
4775
|
get endpoint() {
|
|
4778
|
-
return this.$$.ctx[
|
|
4776
|
+
return this.$$.ctx[35];
|
|
4779
4777
|
}
|
|
4780
4778
|
set endpoint(t) {
|
|
4781
|
-
this.$$set({ endpoint: t }),
|
|
4779
|
+
this.$$set({ endpoint: t }), oe();
|
|
4782
4780
|
}
|
|
4783
4781
|
get session() {
|
|
4784
|
-
return this.$$.ctx[
|
|
4782
|
+
return this.$$.ctx[36];
|
|
4785
4783
|
}
|
|
4786
4784
|
set session(t) {
|
|
4787
|
-
this.$$set({ session: t }),
|
|
4785
|
+
this.$$set({ session: t }), oe();
|
|
4788
4786
|
}
|
|
4789
4787
|
get translationurl() {
|
|
4790
|
-
return this.$$.ctx[
|
|
4788
|
+
return this.$$.ctx[37];
|
|
4791
4789
|
}
|
|
4792
4790
|
set translationurl(t) {
|
|
4793
|
-
this.$$set({ translationurl: t }),
|
|
4791
|
+
this.$$set({ translationurl: t }), oe();
|
|
4794
4792
|
}
|
|
4795
4793
|
get templateid() {
|
|
4796
|
-
return this.$$.ctx[
|
|
4794
|
+
return this.$$.ctx[30];
|
|
4797
4795
|
}
|
|
4798
4796
|
set templateid(t) {
|
|
4799
|
-
this.$$set({ templateid: t }),
|
|
4797
|
+
this.$$set({ templateid: t }), oe();
|
|
4800
4798
|
}
|
|
4801
4799
|
}
|
|
4802
|
-
|
|
4800
|
+
an(_o, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
|
|
4803
4801
|
export {
|
|
4804
|
-
|
|
4802
|
+
_o as C
|
|
4805
4803
|
};
|