@everymatrix/cashier-verifications 1.74.1 → 1.74.3
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/{CashierVerifications-CNVgxinr.js → CashierVerifications-BWymI-rg.js} +954 -920
- package/components/CashierVerifications-D5u6_Riu.cjs +18 -0
- package/components/{CashierVerifications-BAf8u9ns.js → CashierVerifications-DGho0seC.js} +1039 -1005
- package/components/CashierVideoModal-BPGMPPir.js +654 -0
- package/components/CashierVideoModal-DO7SHLdt.js +654 -0
- package/components/CashierVideoModal-MFRT1gz3.cjs +3 -0
- package/es2015/cashier-verifications.cjs +1 -1
- package/es2015/cashier-verifications.js +1 -1
- package/esnext/cashier-verifications.js +1 -1
- package/package.json +1 -1
- package/components/CashierVerifications-CxzuhF7y.cjs +0 -5
- package/components/CashierVideoModal-Bix664Mn.cjs +0 -16
- package/components/CashierVideoModal-CdjPH9oY.js +0 -719
- package/components/CashierVideoModal-Dna7BzOD.js +0 -719
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var kr = Object.defineProperty, Ur = Object.defineProperties;
|
|
2
|
+
var Fr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ht = Object.getOwnPropertySymbols;
|
|
4
|
+
var Vr = Object.prototype.hasOwnProperty, Gr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ke = (e, t, r) => t in e ? kr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Pt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Vr.call(t, r) && Ke(e, r, t[r]);
|
|
8
|
+
if (Ht)
|
|
9
|
+
for (var r of Ht(t))
|
|
10
|
+
Gr.call(t, r) && Ke(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var J = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, Ot = (e, t) => Ur(e, Fr(t));
|
|
13
|
+
var J = (e, t, r) => (Ke(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var At = (e, t, r) => new Promise((i, n) => {
|
|
15
15
|
var s = (a) => {
|
|
16
16
|
try {
|
|
17
17
|
l(r.next(a));
|
|
@@ -29,29 +29,29 @@ var $t = (e, t, r) => new Promise((i, n) => {
|
|
|
29
29
|
});
|
|
30
30
|
function te() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function tr(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
35
|
function Bt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function Ne(e) {
|
|
39
|
+
e.forEach(tr);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function vt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function rr(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
let
|
|
48
|
-
function
|
|
49
|
-
return e === t ? !0 : (
|
|
47
|
+
let Ve;
|
|
48
|
+
function ys(e, t) {
|
|
49
|
+
return e === t ? !0 : (Ve || (Ve = document.createElement("a")), Ve.href = t, e === Ve.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function jr(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function ir(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const i of t)
|
|
57
57
|
i(void 0);
|
|
@@ -60,20 +60,20 @@ function nr(e, ...t) {
|
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function $t(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(ir(t, r));
|
|
65
65
|
}
|
|
66
66
|
function se(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const i =
|
|
69
|
+
function zr(e, t, r) {
|
|
70
|
+
const i = Xr(e);
|
|
71
71
|
if (!i.getElementById(t)) {
|
|
72
72
|
const n = Y("style");
|
|
73
|
-
n.id = t, n.textContent = r,
|
|
73
|
+
n.id = t, n.textContent = r, Wr(i, n);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Xr(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,20 +83,20 @@ function Wr(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function Wr(e, t) {
|
|
87
87
|
return se(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
90
90
|
t
|
|
91
91
|
), t.sheet;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function oe(e, t, r) {
|
|
94
94
|
e.insertBefore(t, r || null);
|
|
95
95
|
}
|
|
96
96
|
function ee(e) {
|
|
97
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function qr(e, t) {
|
|
100
100
|
for (let r = 0; r < e.length; r += 1)
|
|
101
101
|
e[r] && e[r].d(t);
|
|
102
102
|
}
|
|
@@ -106,16 +106,16 @@ function Y(e) {
|
|
|
106
106
|
function xs(e) {
|
|
107
107
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function yt(e) {
|
|
110
110
|
return document.createTextNode(e);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
return
|
|
112
|
+
function Ee() {
|
|
113
|
+
return yt(" ");
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
return
|
|
115
|
+
function _s() {
|
|
116
|
+
return yt("");
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function xt(e, t, r, i) {
|
|
119
119
|
return e.addEventListener(t, r, i), () => e.removeEventListener(t, r, i);
|
|
120
120
|
}
|
|
121
121
|
function re(e, t, r) {
|
|
@@ -125,17 +125,17 @@ function K(e, t, r) {
|
|
|
125
125
|
const i = t.toLowerCase();
|
|
126
126
|
i in e ? e[i] = typeof e[i] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : re(e, t, r);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Yr(e) {
|
|
129
129
|
return Array.from(e.childNodes);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Zr(e, t) {
|
|
132
132
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
133
133
|
t);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Se(e, t, r) {
|
|
136
136
|
e.classList.toggle(t, !!r);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Jr(e) {
|
|
139
139
|
const t = {};
|
|
140
140
|
return e.childNodes.forEach(
|
|
141
141
|
/** @param {Element} node */
|
|
@@ -144,90 +144,90 @@ function Qr(e) {
|
|
|
144
144
|
}
|
|
145
145
|
), t;
|
|
146
146
|
}
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
147
|
+
let De;
|
|
148
|
+
function Ce(e) {
|
|
149
|
+
De = e;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
if (!
|
|
151
|
+
function Qr() {
|
|
152
|
+
if (!De)
|
|
153
153
|
throw new Error("Function called outside component initialization");
|
|
154
|
-
return
|
|
154
|
+
return De;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
|
|
156
|
+
function Kr(e) {
|
|
157
|
+
Qr().$$.on_mount.push(e);
|
|
158
158
|
}
|
|
159
|
-
const
|
|
160
|
-
let
|
|
161
|
-
const
|
|
162
|
-
let
|
|
163
|
-
function
|
|
164
|
-
|
|
159
|
+
const _e = [], at = [];
|
|
160
|
+
let we = [];
|
|
161
|
+
const Mt = [], ei = /* @__PURE__ */ Promise.resolve();
|
|
162
|
+
let ut = !1;
|
|
163
|
+
function ti() {
|
|
164
|
+
ut || (ut = !0, ei.then(Q));
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
|
|
166
|
+
function lt(e) {
|
|
167
|
+
we.push(e);
|
|
168
168
|
}
|
|
169
|
-
const
|
|
170
|
-
let
|
|
169
|
+
const et = /* @__PURE__ */ new Set();
|
|
170
|
+
let ye = 0;
|
|
171
171
|
function Q() {
|
|
172
|
-
if (
|
|
172
|
+
if (ye !== 0)
|
|
173
173
|
return;
|
|
174
|
-
const e =
|
|
174
|
+
const e = De;
|
|
175
175
|
do {
|
|
176
176
|
try {
|
|
177
|
-
for (;
|
|
178
|
-
const t =
|
|
179
|
-
|
|
177
|
+
for (; ye < _e.length; ) {
|
|
178
|
+
const t = _e[ye];
|
|
179
|
+
ye++, Ce(t), ri(t.$$);
|
|
180
180
|
}
|
|
181
181
|
} catch (t) {
|
|
182
|
-
throw
|
|
182
|
+
throw _e.length = 0, ye = 0, t;
|
|
183
183
|
}
|
|
184
|
-
for (
|
|
185
|
-
|
|
186
|
-
for (let t = 0; t <
|
|
187
|
-
const r =
|
|
188
|
-
|
|
184
|
+
for (Ce(null), _e.length = 0, ye = 0; at.length; )
|
|
185
|
+
at.pop()();
|
|
186
|
+
for (let t = 0; t < we.length; t += 1) {
|
|
187
|
+
const r = we[t];
|
|
188
|
+
et.has(r) || (et.add(r), r());
|
|
189
189
|
}
|
|
190
|
-
|
|
191
|
-
} while (
|
|
192
|
-
for (;
|
|
193
|
-
|
|
194
|
-
|
|
190
|
+
we.length = 0;
|
|
191
|
+
} while (_e.length);
|
|
192
|
+
for (; Mt.length; )
|
|
193
|
+
Mt.pop()();
|
|
194
|
+
ut = !1, et.clear(), Ce(e);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function ri(e) {
|
|
197
197
|
if (e.fragment !== null) {
|
|
198
|
-
e.update(),
|
|
198
|
+
e.update(), Ne(e.before_update);
|
|
199
199
|
const t = e.dirty;
|
|
200
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
200
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(lt);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function ii(e) {
|
|
204
204
|
const t = [], r = [];
|
|
205
|
-
|
|
205
|
+
we.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : r.push(i)), r.forEach((i) => i()), we = t;
|
|
206
206
|
}
|
|
207
|
-
const
|
|
208
|
-
function
|
|
209
|
-
e && e.i && (
|
|
207
|
+
const ni = /* @__PURE__ */ new Set();
|
|
208
|
+
function si(e, t) {
|
|
209
|
+
e && e.i && (ni.delete(e), e.i(t));
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Ct(e) {
|
|
212
212
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function oi(e, t, r) {
|
|
215
215
|
const { fragment: i, after_update: n } = e.$$;
|
|
216
|
-
i && i.m(t, r),
|
|
217
|
-
const s = e.$$.on_mount.map(
|
|
218
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
219
|
-
}), n.forEach(
|
|
216
|
+
i && i.m(t, r), lt(() => {
|
|
217
|
+
const s = e.$$.on_mount.map(tr).filter(vt);
|
|
218
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Ne(s), e.$$.on_mount = [];
|
|
219
|
+
}), n.forEach(lt);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function ai(e, t) {
|
|
222
222
|
const r = e.$$;
|
|
223
|
-
r.fragment !== null && (
|
|
223
|
+
r.fragment !== null && (ii(r.after_update), Ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
224
224
|
}
|
|
225
|
-
function
|
|
226
|
-
e.$$.dirty[0] === -1 && (
|
|
225
|
+
function ui(e, t) {
|
|
226
|
+
e.$$.dirty[0] === -1 && (_e.push(e), ti(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
const a =
|
|
230
|
-
|
|
228
|
+
function li(e, t, r, i, n, s, o = null, l = [-1]) {
|
|
229
|
+
const a = De;
|
|
230
|
+
Ce(e);
|
|
231
231
|
const u = e.$$ = {
|
|
232
232
|
fragment: null,
|
|
233
233
|
ctx: [],
|
|
@@ -251,21 +251,21 @@ function hi(e, t, r, i, n, s, o = null, l = [-1]) {
|
|
|
251
251
|
};
|
|
252
252
|
o && o(u.root);
|
|
253
253
|
let h = !1;
|
|
254
|
-
if (u.ctx = r ? r(e, t.props || {}, (c, p, ...
|
|
255
|
-
const S =
|
|
256
|
-
return u.ctx && n(u.ctx[c], u.ctx[c] = S) && (!u.skip_bound && u.bound[c] && u.bound[c](S), h &&
|
|
257
|
-
}) : [], u.update(), h = !0,
|
|
254
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, p, ...x) => {
|
|
255
|
+
const S = x.length ? x[0] : p;
|
|
256
|
+
return u.ctx && n(u.ctx[c], u.ctx[c] = S) && (!u.skip_bound && u.bound[c] && u.bound[c](S), h && ui(e, c)), p;
|
|
257
|
+
}) : [], u.update(), h = !0, Ne(u.before_update), u.fragment = i ? i(u.ctx) : !1, t.target) {
|
|
258
258
|
if (t.hydrate) {
|
|
259
|
-
const c =
|
|
259
|
+
const c = Yr(t.target);
|
|
260
260
|
u.fragment && u.fragment.l(c), c.forEach(ee);
|
|
261
261
|
} else
|
|
262
262
|
u.fragment && u.fragment.c();
|
|
263
|
-
t.intro &&
|
|
263
|
+
t.intro && si(e.$$.fragment), oi(e, t.target, t.anchor), Q();
|
|
264
264
|
}
|
|
265
|
-
|
|
265
|
+
Ce(a);
|
|
266
266
|
}
|
|
267
|
-
let
|
|
268
|
-
typeof HTMLElement == "function" && (
|
|
267
|
+
let nr;
|
|
268
|
+
typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
269
269
|
constructor(t, r, i) {
|
|
270
270
|
super();
|
|
271
271
|
/** The Svelte component constructor */
|
|
@@ -302,7 +302,7 @@ typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
connectedCallback() {
|
|
305
|
-
return
|
|
305
|
+
return At(this, null, function* () {
|
|
306
306
|
if (this.$$cn = !0, !this.$$c) {
|
|
307
307
|
let t = function(s) {
|
|
308
308
|
return () => {
|
|
@@ -316,7 +316,7 @@ typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
|
316
316
|
* @param {HTMLElement} [anchor]
|
|
317
317
|
*/
|
|
318
318
|
m: function(u, h) {
|
|
319
|
-
|
|
319
|
+
oe(u, o, h);
|
|
320
320
|
},
|
|
321
321
|
d: function(u) {
|
|
322
322
|
u && ee(o);
|
|
@@ -326,18 +326,18 @@ typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
|
326
326
|
};
|
|
327
327
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
328
328
|
return;
|
|
329
|
-
const r = {}, i =
|
|
329
|
+
const r = {}, i = Jr(this);
|
|
330
330
|
for (const s of this.$$s)
|
|
331
331
|
s in i && (r[s] = [t(s)]);
|
|
332
332
|
for (const s of this.attributes) {
|
|
333
333
|
const o = this.$$g_p(s.name);
|
|
334
|
-
o in this.$$d || (this.$$d[o] =
|
|
334
|
+
o in this.$$d || (this.$$d[o] = je(o, s.value, this.$$p_d, "toProp"));
|
|
335
335
|
}
|
|
336
336
|
for (const s in this.$$p_d)
|
|
337
337
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
338
338
|
this.$$c = new this.$$ctor({
|
|
339
339
|
target: this.shadowRoot || this,
|
|
340
|
-
props:
|
|
340
|
+
props: Ot(Pt({}, this.$$d), {
|
|
341
341
|
$$slots: r,
|
|
342
342
|
$$scope: {
|
|
343
343
|
ctx: []
|
|
@@ -348,7 +348,7 @@ typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
|
348
348
|
this.$$r = !0;
|
|
349
349
|
for (const s in this.$$p_d)
|
|
350
350
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
351
|
-
const o =
|
|
351
|
+
const o = je(
|
|
352
352
|
s,
|
|
353
353
|
this.$$d[s],
|
|
354
354
|
this.$$p_d,
|
|
@@ -372,7 +372,7 @@ typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
|
372
372
|
// and setting attributes through setAttribute etc, this is helpful
|
|
373
373
|
attributeChangedCallback(t, r, i) {
|
|
374
374
|
var n;
|
|
375
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
375
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = je(t, i, this.$$p_d, "toProp"), (n = this.$$c) == null || n.$set({ [t]: this.$$d[t] }));
|
|
376
376
|
}
|
|
377
377
|
disconnectedCallback() {
|
|
378
378
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -385,7 +385,7 @@ typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
|
385
385
|
) || t;
|
|
386
386
|
}
|
|
387
387
|
});
|
|
388
|
-
function
|
|
388
|
+
function je(e, t, r, i) {
|
|
389
389
|
var s;
|
|
390
390
|
const n = (s = r[e]) == null ? void 0 : s.type;
|
|
391
391
|
if (t = n === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !r[e])
|
|
@@ -415,8 +415,8 @@ function ze(e, t, r, i) {
|
|
|
415
415
|
return t;
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
let o = class extends
|
|
418
|
+
function hi(e, t, r, i, n, s) {
|
|
419
|
+
let o = class extends nr {
|
|
420
420
|
constructor() {
|
|
421
421
|
super(e, r, n), this.$$p_d = t;
|
|
422
422
|
}
|
|
@@ -433,7 +433,7 @@ function fi(e, t, r, i, n, s) {
|
|
|
433
433
|
},
|
|
434
434
|
set(a) {
|
|
435
435
|
var u;
|
|
436
|
-
a =
|
|
436
|
+
a = je(l, a, t), this.$$d[l] = a, (u = this.$$c) == null || u.$set({ [l]: a });
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
439
|
}), i.forEach((l) => {
|
|
@@ -446,7 +446,7 @@ function fi(e, t, r, i, n, s) {
|
|
|
446
446
|
}), e.element = /** @type {any} */
|
|
447
447
|
o, o;
|
|
448
448
|
}
|
|
449
|
-
class
|
|
449
|
+
class fi {
|
|
450
450
|
constructor() {
|
|
451
451
|
/**
|
|
452
452
|
* ### PRIVATE API
|
|
@@ -467,7 +467,7 @@ class ci {
|
|
|
467
467
|
}
|
|
468
468
|
/** @returns {void} */
|
|
469
469
|
$destroy() {
|
|
470
|
-
|
|
470
|
+
ai(this, 1), this.$destroy = te;
|
|
471
471
|
}
|
|
472
472
|
/**
|
|
473
473
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -476,7 +476,7 @@ class ci {
|
|
|
476
476
|
* @returns {() => void}
|
|
477
477
|
*/
|
|
478
478
|
$on(t, r) {
|
|
479
|
-
if (!
|
|
479
|
+
if (!vt(r))
|
|
480
480
|
return te;
|
|
481
481
|
const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
482
482
|
return i.push(r), () => {
|
|
@@ -489,22 +489,22 @@ class ci {
|
|
|
489
489
|
* @returns {void}
|
|
490
490
|
*/
|
|
491
491
|
$set(t) {
|
|
492
|
-
this.$$set && !
|
|
492
|
+
this.$$set && !jr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
|
-
const
|
|
496
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
495
|
+
const ci = "4";
|
|
496
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ci);
|
|
497
497
|
const xe = [];
|
|
498
|
-
function
|
|
498
|
+
function di(e, t) {
|
|
499
499
|
return {
|
|
500
|
-
subscribe:
|
|
500
|
+
subscribe: Re(e, t).subscribe
|
|
501
501
|
};
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function Re(e, t = te) {
|
|
504
504
|
let r;
|
|
505
505
|
const i = /* @__PURE__ */ new Set();
|
|
506
506
|
function n(l) {
|
|
507
|
-
if (
|
|
507
|
+
if (rr(e, l) && (e = l, r)) {
|
|
508
508
|
const a = !xe.length;
|
|
509
509
|
for (const u of i)
|
|
510
510
|
u[1](), xe.push(u, e);
|
|
@@ -526,12 +526,12 @@ function ke(e, t = te) {
|
|
|
526
526
|
}
|
|
527
527
|
return { set: n, update: s, subscribe: o };
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function Ae(e, t, r) {
|
|
530
530
|
const i = !Array.isArray(e), n = i ? [e] : e;
|
|
531
531
|
if (!n.every(Boolean))
|
|
532
532
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
533
533
|
const s = t.length < 2;
|
|
534
|
-
return
|
|
534
|
+
return di(r, (o, l) => {
|
|
535
535
|
let a = !1;
|
|
536
536
|
const u = [];
|
|
537
537
|
let h = 0, c = te;
|
|
@@ -540,126 +540,140 @@ function $e(e, t, r) {
|
|
|
540
540
|
return;
|
|
541
541
|
c();
|
|
542
542
|
const S = t(i ? u[0] : u, o, l);
|
|
543
|
-
s ? o(S) : c =
|
|
544
|
-
},
|
|
545
|
-
(S,
|
|
543
|
+
s ? o(S) : c = vt(S) ? S : te;
|
|
544
|
+
}, x = n.map(
|
|
545
|
+
(S, b) => ir(
|
|
546
546
|
S,
|
|
547
|
-
(
|
|
548
|
-
u[
|
|
547
|
+
(M) => {
|
|
548
|
+
u[b] = M, h &= ~(1 << b), a && p();
|
|
549
549
|
},
|
|
550
550
|
() => {
|
|
551
|
-
h |= 1 <<
|
|
551
|
+
h |= 1 << b;
|
|
552
552
|
}
|
|
553
553
|
)
|
|
554
554
|
);
|
|
555
555
|
return a = !0, p(), function() {
|
|
556
|
-
|
|
556
|
+
Ne(x), c(), a = !1;
|
|
557
557
|
};
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
|
-
var
|
|
561
|
-
function
|
|
560
|
+
var sr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
561
|
+
function _t(e) {
|
|
562
562
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
563
563
|
}
|
|
564
|
-
var
|
|
565
|
-
return
|
|
564
|
+
var mi = function(t) {
|
|
565
|
+
return pi(t) && !gi(t);
|
|
566
566
|
};
|
|
567
|
-
function
|
|
567
|
+
function pi(e) {
|
|
568
568
|
return !!e && typeof e == "object";
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function gi(e) {
|
|
571
571
|
var t = Object.prototype.toString.call(e);
|
|
572
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
572
|
+
return t === "[object RegExp]" || t === "[object Date]" || yi(e);
|
|
573
573
|
}
|
|
574
|
-
var bi = typeof Symbol == "function" && Symbol.for,
|
|
575
|
-
function
|
|
576
|
-
return e.$$typeof ===
|
|
574
|
+
var bi = typeof Symbol == "function" && Symbol.for, vi = bi ? Symbol.for("react.element") : 60103;
|
|
575
|
+
function yi(e) {
|
|
576
|
+
return e.$$typeof === vi;
|
|
577
577
|
}
|
|
578
578
|
function xi(e) {
|
|
579
579
|
return Array.isArray(e) ? [] : {};
|
|
580
580
|
}
|
|
581
|
-
function
|
|
582
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
581
|
+
function Le(e, t) {
|
|
582
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Te(xi(e), e, t) : e;
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function _i(e, t, r) {
|
|
585
585
|
return e.concat(t).map(function(i) {
|
|
586
|
-
return
|
|
586
|
+
return Le(i, r);
|
|
587
587
|
});
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function Ei(e, t) {
|
|
590
590
|
if (!t.customMerge)
|
|
591
|
-
return
|
|
591
|
+
return Te;
|
|
592
592
|
var r = t.customMerge(e);
|
|
593
|
-
return typeof r == "function" ? r :
|
|
593
|
+
return typeof r == "function" ? r : Te;
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function wi(e) {
|
|
596
596
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
597
597
|
return Object.propertyIsEnumerable.call(e, t);
|
|
598
598
|
}) : [];
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
return Object.keys(e).concat(
|
|
600
|
+
function Dt(e) {
|
|
601
|
+
return Object.keys(e).concat(wi(e));
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function or(e, t) {
|
|
604
604
|
try {
|
|
605
605
|
return t in e;
|
|
606
606
|
} catch (r) {
|
|
607
607
|
return !1;
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
|
-
function
|
|
611
|
-
return
|
|
610
|
+
function Si(e, t) {
|
|
611
|
+
return or(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function Ti(e, t, r) {
|
|
614
614
|
var i = {};
|
|
615
|
-
return r.isMergeableObject(e) &&
|
|
616
|
-
i[n] =
|
|
617
|
-
}),
|
|
618
|
-
|
|
615
|
+
return r.isMergeableObject(e) && Dt(e).forEach(function(n) {
|
|
616
|
+
i[n] = Le(e[n], r);
|
|
617
|
+
}), Dt(t).forEach(function(n) {
|
|
618
|
+
Si(e, n) || (or(e, n) && r.isMergeableObject(t[n]) ? i[n] = Ei(n, r)(e[n], t[n], r) : i[n] = Le(t[n], r));
|
|
619
619
|
}), i;
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
621
|
+
function Te(e, t, r) {
|
|
622
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || _i, r.isMergeableObject = r.isMergeableObject || mi, r.cloneUnlessOtherwiseSpecified = Le;
|
|
623
623
|
var i = Array.isArray(t), n = Array.isArray(e), s = i === n;
|
|
624
|
-
return s ? i ? r.arrayMerge(e, t, r) :
|
|
624
|
+
return s ? i ? r.arrayMerge(e, t, r) : Ti(e, t, r) : Le(t, r);
|
|
625
625
|
}
|
|
626
|
-
|
|
626
|
+
Te.all = function(t, r) {
|
|
627
627
|
if (!Array.isArray(t))
|
|
628
628
|
throw new Error("first argument should be an array");
|
|
629
629
|
return t.reduce(function(i, n) {
|
|
630
|
-
return
|
|
630
|
+
return Te(i, n, r);
|
|
631
631
|
}, {});
|
|
632
632
|
};
|
|
633
|
-
var
|
|
634
|
-
const
|
|
635
|
-
|
|
636
|
-
|
|
633
|
+
var Hi = Te, Pi = Hi;
|
|
634
|
+
const Oi = /* @__PURE__ */ _t(Pi);
|
|
635
|
+
/*! *****************************************************************************
|
|
636
|
+
Copyright (c) Microsoft Corporation.
|
|
637
|
+
|
|
638
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
639
|
+
purpose with or without fee is hereby granted.
|
|
640
|
+
|
|
641
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
642
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
643
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
644
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
645
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
646
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
647
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
648
|
+
***************************************************************************** */
|
|
649
|
+
var ht = function(e, t) {
|
|
650
|
+
return ht = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
637
651
|
r.__proto__ = i;
|
|
638
652
|
} || function(r, i) {
|
|
639
653
|
for (var n in i)
|
|
640
654
|
Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
|
|
641
|
-
},
|
|
655
|
+
}, ht(e, t);
|
|
642
656
|
};
|
|
643
|
-
function
|
|
657
|
+
function Ze(e, t) {
|
|
644
658
|
if (typeof t != "function" && t !== null)
|
|
645
659
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
646
|
-
|
|
660
|
+
ht(e, t);
|
|
647
661
|
function r() {
|
|
648
662
|
this.constructor = e;
|
|
649
663
|
}
|
|
650
664
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
651
665
|
}
|
|
652
|
-
var
|
|
653
|
-
return
|
|
666
|
+
var A = function() {
|
|
667
|
+
return A = Object.assign || function(t) {
|
|
654
668
|
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
655
669
|
r = arguments[i];
|
|
656
670
|
for (var s in r)
|
|
657
671
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
658
672
|
}
|
|
659
673
|
return t;
|
|
660
|
-
},
|
|
674
|
+
}, A.apply(this, arguments);
|
|
661
675
|
};
|
|
662
|
-
function
|
|
676
|
+
function Ai(e, t) {
|
|
663
677
|
var r = {};
|
|
664
678
|
for (var i in e)
|
|
665
679
|
Object.prototype.hasOwnProperty.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
@@ -668,14 +682,46 @@ function $i(e, t) {
|
|
|
668
682
|
t.indexOf(i[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, i[n]) && (r[i[n]] = e[i[n]]);
|
|
669
683
|
return r;
|
|
670
684
|
}
|
|
671
|
-
function
|
|
685
|
+
function Es(e) {
|
|
686
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], i = 0;
|
|
687
|
+
if (r)
|
|
688
|
+
return r.call(e);
|
|
689
|
+
if (e && typeof e.length == "number")
|
|
690
|
+
return {
|
|
691
|
+
next: function() {
|
|
692
|
+
return e && i >= e.length && (e = void 0), { value: e && e[i++], done: !e };
|
|
693
|
+
}
|
|
694
|
+
};
|
|
695
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
696
|
+
}
|
|
697
|
+
function ws(e, t) {
|
|
698
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
699
|
+
if (!r)
|
|
700
|
+
return e;
|
|
701
|
+
var i = r.call(e), n, s = [], o;
|
|
702
|
+
try {
|
|
703
|
+
for (; (t === void 0 || t-- > 0) && !(n = i.next()).done; )
|
|
704
|
+
s.push(n.value);
|
|
705
|
+
} catch (l) {
|
|
706
|
+
o = { error: l };
|
|
707
|
+
} finally {
|
|
708
|
+
try {
|
|
709
|
+
n && !n.done && (r = i.return) && r.call(i);
|
|
710
|
+
} finally {
|
|
711
|
+
if (o)
|
|
712
|
+
throw o.error;
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
return s;
|
|
716
|
+
}
|
|
717
|
+
function tt(e, t, r) {
|
|
672
718
|
if (r || arguments.length === 2)
|
|
673
719
|
for (var i = 0, n = t.length, s; i < n; i++)
|
|
674
720
|
(s || !(i in t)) && (s || (s = Array.prototype.slice.call(t, 0, i)), s[i] = t[i]);
|
|
675
|
-
return e.concat(s ||
|
|
721
|
+
return e.concat(s || t);
|
|
676
722
|
}
|
|
677
|
-
function
|
|
678
|
-
var r = t && t.cache ? t.cache :
|
|
723
|
+
function rt(e, t) {
|
|
724
|
+
var r = t && t.cache ? t.cache : Ii, i = t && t.serializer ? t.serializer : Di, n = t && t.strategy ? t.strategy : $i;
|
|
679
725
|
return n(e, {
|
|
680
726
|
cache: r,
|
|
681
727
|
serializer: i
|
|
@@ -684,7 +730,7 @@ function nt(e, t) {
|
|
|
684
730
|
function Bi(e) {
|
|
685
731
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
686
732
|
}
|
|
687
|
-
function
|
|
733
|
+
function ar(e, t, r, i) {
|
|
688
734
|
var n = Bi(i) ? i : r(i), s = t.get(n);
|
|
689
735
|
return typeof s == "undefined" && (s = e.call(this, i), t.set(n, s)), s;
|
|
690
736
|
}
|
|
@@ -692,19 +738,22 @@ function ur(e, t, r) {
|
|
|
692
738
|
var i = Array.prototype.slice.call(arguments, 3), n = r(i), s = t.get(n);
|
|
693
739
|
return typeof s == "undefined" && (s = e.apply(this, i), t.set(n, s)), s;
|
|
694
740
|
}
|
|
695
|
-
function
|
|
741
|
+
function Et(e, t, r, i, n) {
|
|
696
742
|
return r.bind(t, e, i, n);
|
|
697
743
|
}
|
|
698
|
-
function
|
|
699
|
-
var r = e.length === 1 ?
|
|
700
|
-
return
|
|
744
|
+
function $i(e, t) {
|
|
745
|
+
var r = e.length === 1 ? ar : ur;
|
|
746
|
+
return Et(e, this, r, t.cache.create(), t.serializer);
|
|
747
|
+
}
|
|
748
|
+
function Mi(e, t) {
|
|
749
|
+
return Et(e, this, ur, t.cache.create(), t.serializer);
|
|
701
750
|
}
|
|
702
|
-
function
|
|
703
|
-
return
|
|
751
|
+
function Ci(e, t) {
|
|
752
|
+
return Et(e, this, ar, t.cache.create(), t.serializer);
|
|
704
753
|
}
|
|
705
|
-
var
|
|
754
|
+
var Di = function() {
|
|
706
755
|
return JSON.stringify(arguments);
|
|
707
|
-
},
|
|
756
|
+
}, Li = (
|
|
708
757
|
/** @class */
|
|
709
758
|
function() {
|
|
710
759
|
function e() {
|
|
@@ -716,71 +765,62 @@ var Li = function() {
|
|
|
716
765
|
this.cache[t] = r;
|
|
717
766
|
}, e;
|
|
718
767
|
}()
|
|
719
|
-
),
|
|
768
|
+
), Ii = {
|
|
720
769
|
create: function() {
|
|
721
|
-
return new
|
|
770
|
+
return new Li();
|
|
722
771
|
}
|
|
723
|
-
},
|
|
724
|
-
variadic:
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
728
|
-
r = arguments[i];
|
|
729
|
-
for (var s in r)
|
|
730
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
731
|
-
}
|
|
732
|
-
return t;
|
|
733
|
-
}, qe.apply(this, arguments);
|
|
734
|
-
};
|
|
735
|
-
var T;
|
|
772
|
+
}, it = {
|
|
773
|
+
variadic: Mi,
|
|
774
|
+
monadic: Ci
|
|
775
|
+
}, T;
|
|
736
776
|
(function(e) {
|
|
737
777
|
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";
|
|
738
778
|
})(T || (T = {}));
|
|
739
|
-
var
|
|
779
|
+
var D;
|
|
740
780
|
(function(e) {
|
|
741
781
|
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";
|
|
742
|
-
})(
|
|
743
|
-
var
|
|
782
|
+
})(D || (D = {}));
|
|
783
|
+
var He;
|
|
744
784
|
(function(e) {
|
|
745
785
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
746
|
-
})(
|
|
747
|
-
function
|
|
748
|
-
return e.type ===
|
|
786
|
+
})(He || (He = {}));
|
|
787
|
+
function Lt(e) {
|
|
788
|
+
return e.type === D.literal;
|
|
749
789
|
}
|
|
750
|
-
function
|
|
751
|
-
return e.type ===
|
|
790
|
+
function Ni(e) {
|
|
791
|
+
return e.type === D.argument;
|
|
792
|
+
}
|
|
793
|
+
function lr(e) {
|
|
794
|
+
return e.type === D.number;
|
|
752
795
|
}
|
|
753
796
|
function hr(e) {
|
|
754
|
-
return e.type ===
|
|
797
|
+
return e.type === D.date;
|
|
755
798
|
}
|
|
756
799
|
function fr(e) {
|
|
757
|
-
return e.type ===
|
|
800
|
+
return e.type === D.time;
|
|
758
801
|
}
|
|
759
802
|
function cr(e) {
|
|
760
|
-
return e.type ===
|
|
803
|
+
return e.type === D.select;
|
|
761
804
|
}
|
|
762
805
|
function dr(e) {
|
|
763
|
-
return e.type ===
|
|
806
|
+
return e.type === D.plural;
|
|
764
807
|
}
|
|
765
|
-
function
|
|
766
|
-
return e.type ===
|
|
808
|
+
function Ri(e) {
|
|
809
|
+
return e.type === D.pound;
|
|
767
810
|
}
|
|
768
|
-
function
|
|
769
|
-
return e.type ===
|
|
811
|
+
function mr(e) {
|
|
812
|
+
return e.type === D.tag;
|
|
770
813
|
}
|
|
771
814
|
function pr(e) {
|
|
772
|
-
return e.type ===
|
|
773
|
-
}
|
|
774
|
-
function gr(e) {
|
|
775
|
-
return !!(e && typeof e == "object" && e.type === Oe.number);
|
|
815
|
+
return !!(e && typeof e == "object" && e.type === He.number);
|
|
776
816
|
}
|
|
777
|
-
function
|
|
778
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
817
|
+
function ft(e) {
|
|
818
|
+
return !!(e && typeof e == "object" && e.type === He.dateTime);
|
|
779
819
|
}
|
|
780
|
-
var
|
|
781
|
-
function
|
|
820
|
+
var gr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ki = /(?:[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;
|
|
821
|
+
function Ui(e) {
|
|
782
822
|
var t = {};
|
|
783
|
-
return e.replace(
|
|
823
|
+
return e.replace(ki, function(r) {
|
|
784
824
|
var i = r.length;
|
|
785
825
|
switch (r[0]) {
|
|
786
826
|
case "G":
|
|
@@ -869,21 +909,11 @@ function Fi(e) {
|
|
|
869
909
|
return "";
|
|
870
910
|
}), t;
|
|
871
911
|
}
|
|
872
|
-
var
|
|
873
|
-
|
|
874
|
-
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
875
|
-
r = arguments[i];
|
|
876
|
-
for (var s in r)
|
|
877
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
878
|
-
}
|
|
879
|
-
return t;
|
|
880
|
-
}, L.apply(this, arguments);
|
|
881
|
-
};
|
|
882
|
-
var Vi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
883
|
-
function Gi(e) {
|
|
912
|
+
var Fi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
913
|
+
function Vi(e) {
|
|
884
914
|
if (e.length === 0)
|
|
885
915
|
throw new Error("Number skeleton cannot be empty");
|
|
886
|
-
for (var t = e.split(
|
|
916
|
+
for (var t = e.split(Fi).filter(function(p) {
|
|
887
917
|
return p.length > 0;
|
|
888
918
|
}), r = [], i = 0, n = t; i < n.length; i++) {
|
|
889
919
|
var s = n[i], o = s.split("/");
|
|
@@ -898,17 +928,17 @@ function Gi(e) {
|
|
|
898
928
|
}
|
|
899
929
|
return r;
|
|
900
930
|
}
|
|
901
|
-
function
|
|
931
|
+
function Gi(e) {
|
|
902
932
|
return e.replace(/^(.*?)-/, "");
|
|
903
933
|
}
|
|
904
|
-
var
|
|
905
|
-
function
|
|
934
|
+
var It = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, br = /^(@+)?(\+|#+)?[rs]?$/g, ji = /(\*)(0+)|(#+)(0+)|(0+)/g, vr = /^(0+)$/;
|
|
935
|
+
function Nt(e) {
|
|
906
936
|
var t = {};
|
|
907
937
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(br, function(r, i, n) {
|
|
908
938
|
return typeof n != "string" ? (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length) : n === "+" ? t.minimumSignificantDigits = i.length : i[0] === "#" ? t.maximumSignificantDigits = i.length : (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length + (typeof n == "string" ? n.length : 0)), "";
|
|
909
939
|
}), t;
|
|
910
940
|
}
|
|
911
|
-
function
|
|
941
|
+
function yr(e) {
|
|
912
942
|
switch (e) {
|
|
913
943
|
case "sign-auto":
|
|
914
944
|
return {
|
|
@@ -948,7 +978,7 @@ function _r(e) {
|
|
|
948
978
|
};
|
|
949
979
|
}
|
|
950
980
|
}
|
|
951
|
-
function
|
|
981
|
+
function zi(e) {
|
|
952
982
|
var t;
|
|
953
983
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
954
984
|
notation: "engineering"
|
|
@@ -956,17 +986,17 @@ function Xi(e) {
|
|
|
956
986
|
notation: "scientific"
|
|
957
987
|
}, e = e.slice(1)), t) {
|
|
958
988
|
var r = e.slice(0, 2);
|
|
959
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
989
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !vr.test(e))
|
|
960
990
|
throw new Error("Malformed concise eng/scientific notation");
|
|
961
991
|
t.minimumIntegerDigits = e.length;
|
|
962
992
|
}
|
|
963
993
|
return t;
|
|
964
994
|
}
|
|
965
|
-
function
|
|
966
|
-
var t = {}, r =
|
|
995
|
+
function Rt(e) {
|
|
996
|
+
var t = {}, r = yr(e);
|
|
967
997
|
return r || t;
|
|
968
998
|
}
|
|
969
|
-
function
|
|
999
|
+
function Xi(e) {
|
|
970
1000
|
for (var t = {}, r = 0, i = e; r < i.length; r++) {
|
|
971
1001
|
var n = i[r];
|
|
972
1002
|
switch (n.stem) {
|
|
@@ -990,7 +1020,7 @@ function Wi(e) {
|
|
|
990
1020
|
continue;
|
|
991
1021
|
case "measure-unit":
|
|
992
1022
|
case "unit":
|
|
993
|
-
t.style = "unit", t.unit =
|
|
1023
|
+
t.style = "unit", t.unit = Gi(n.options[0]);
|
|
994
1024
|
continue;
|
|
995
1025
|
case "compact-short":
|
|
996
1026
|
case "K":
|
|
@@ -1001,13 +1031,13 @@ function Wi(e) {
|
|
|
1001
1031
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1002
1032
|
continue;
|
|
1003
1033
|
case "scientific":
|
|
1004
|
-
t =
|
|
1005
|
-
return
|
|
1034
|
+
t = A(A(A({}, t), { notation: "scientific" }), n.options.reduce(function(a, u) {
|
|
1035
|
+
return A(A({}, a), Rt(u));
|
|
1006
1036
|
}, {}));
|
|
1007
1037
|
continue;
|
|
1008
1038
|
case "engineering":
|
|
1009
|
-
t =
|
|
1010
|
-
return
|
|
1039
|
+
t = A(A(A({}, t), { notation: "engineering" }), n.options.reduce(function(a, u) {
|
|
1040
|
+
return A(A({}, a), Rt(u));
|
|
1011
1041
|
}, {}));
|
|
1012
1042
|
continue;
|
|
1013
1043
|
case "notation-simple":
|
|
@@ -1052,45 +1082,45 @@ function Wi(e) {
|
|
|
1052
1082
|
case "integer-width":
|
|
1053
1083
|
if (n.options.length > 1)
|
|
1054
1084
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1055
|
-
n.options[0].replace(
|
|
1085
|
+
n.options[0].replace(ji, function(a, u, h, c, p, x) {
|
|
1056
1086
|
if (u)
|
|
1057
1087
|
t.minimumIntegerDigits = h.length;
|
|
1058
1088
|
else {
|
|
1059
1089
|
if (c && p)
|
|
1060
1090
|
throw new Error("We currently do not support maximum integer digits");
|
|
1061
|
-
if (
|
|
1091
|
+
if (x)
|
|
1062
1092
|
throw new Error("We currently do not support exact integer digits");
|
|
1063
1093
|
}
|
|
1064
1094
|
return "";
|
|
1065
1095
|
});
|
|
1066
1096
|
continue;
|
|
1067
1097
|
}
|
|
1068
|
-
if (
|
|
1098
|
+
if (vr.test(n.stem)) {
|
|
1069
1099
|
t.minimumIntegerDigits = n.stem.length;
|
|
1070
1100
|
continue;
|
|
1071
1101
|
}
|
|
1072
|
-
if (
|
|
1102
|
+
if (It.test(n.stem)) {
|
|
1073
1103
|
if (n.options.length > 1)
|
|
1074
1104
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1075
|
-
n.stem.replace(
|
|
1076
|
-
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : p &&
|
|
1105
|
+
n.stem.replace(It, function(a, u, h, c, p, x) {
|
|
1106
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : p && x ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + x.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1077
1107
|
});
|
|
1078
1108
|
var s = n.options[0];
|
|
1079
|
-
s === "w" ? t =
|
|
1109
|
+
s === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = A(A({}, t), Nt(s)));
|
|
1080
1110
|
continue;
|
|
1081
1111
|
}
|
|
1082
1112
|
if (br.test(n.stem)) {
|
|
1083
|
-
t =
|
|
1113
|
+
t = A(A({}, t), Nt(n.stem));
|
|
1084
1114
|
continue;
|
|
1085
1115
|
}
|
|
1086
|
-
var o =
|
|
1087
|
-
o && (t =
|
|
1088
|
-
var l =
|
|
1089
|
-
l && (t =
|
|
1116
|
+
var o = yr(n.stem);
|
|
1117
|
+
o && (t = A(A({}, t), o));
|
|
1118
|
+
var l = zi(n.stem);
|
|
1119
|
+
l && (t = A(A({}, t), l));
|
|
1090
1120
|
}
|
|
1091
1121
|
return t;
|
|
1092
1122
|
}
|
|
1093
|
-
var
|
|
1123
|
+
var Ge = {
|
|
1094
1124
|
"001": [
|
|
1095
1125
|
"H",
|
|
1096
1126
|
"h"
|
|
@@ -2505,13 +2535,13 @@ var je = {
|
|
|
2505
2535
|
"h"
|
|
2506
2536
|
]
|
|
2507
2537
|
};
|
|
2508
|
-
function
|
|
2538
|
+
function Wi(e, t) {
|
|
2509
2539
|
for (var r = "", i = 0; i < e.length; i++) {
|
|
2510
2540
|
var n = e.charAt(i);
|
|
2511
2541
|
if (n === "j") {
|
|
2512
2542
|
for (var s = 0; i + 1 < e.length && e.charAt(i + 1) === n; )
|
|
2513
2543
|
s++, i++;
|
|
2514
|
-
var o = 1 + (s & 1), l = s < 2 ? 1 : 3 + (s >> 1), a = "a", u =
|
|
2544
|
+
var o = 1 + (s & 1), l = s < 2 ? 1 : 3 + (s >> 1), a = "a", u = qi(t);
|
|
2515
2545
|
for ((u == "H" || u == "k") && (l = 0); l-- > 0; )
|
|
2516
2546
|
r += a;
|
|
2517
2547
|
for (; o-- > 0; )
|
|
@@ -2521,7 +2551,7 @@ function qi(e, t) {
|
|
|
2521
2551
|
}
|
|
2522
2552
|
return r;
|
|
2523
2553
|
}
|
|
2524
|
-
function
|
|
2554
|
+
function qi(e) {
|
|
2525
2555
|
var t = e.hourCycle;
|
|
2526
2556
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2527
2557
|
e.hourCycles && // @ts-ignore
|
|
@@ -2540,23 +2570,23 @@ function Yi(e) {
|
|
|
2540
2570
|
}
|
|
2541
2571
|
var r = e.language, i;
|
|
2542
2572
|
r !== "root" && (i = e.maximize().region);
|
|
2543
|
-
var n =
|
|
2573
|
+
var n = Ge[i || ""] || Ge[r || ""] || Ge["".concat(r, "-001")] || Ge["001"];
|
|
2544
2574
|
return n[0];
|
|
2545
2575
|
}
|
|
2546
|
-
var
|
|
2547
|
-
function
|
|
2576
|
+
var nt, Yi = new RegExp("^".concat(gr.source, "*")), Zi = new RegExp("".concat(gr.source, "*$"));
|
|
2577
|
+
function P(e, t) {
|
|
2548
2578
|
return { start: e, end: t };
|
|
2549
2579
|
}
|
|
2550
|
-
var
|
|
2580
|
+
var Ji = !!String.prototype.startsWith && "_a".startsWith("a", 1), Qi = !!String.fromCodePoint, Ki = !!Object.fromEntries, en = !!String.prototype.codePointAt, tn = !!String.prototype.trimStart, rn = !!String.prototype.trimEnd, nn = !!Number.isSafeInteger, sn = nn ? Number.isSafeInteger : function(e) {
|
|
2551
2581
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2552
|
-
},
|
|
2582
|
+
}, ct = !0;
|
|
2553
2583
|
try {
|
|
2554
|
-
var
|
|
2555
|
-
|
|
2584
|
+
var on = _r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2585
|
+
ct = ((nt = on.exec("a")) === null || nt === void 0 ? void 0 : nt[0]) === "a";
|
|
2556
2586
|
} catch (e) {
|
|
2557
|
-
|
|
2587
|
+
ct = !1;
|
|
2558
2588
|
}
|
|
2559
|
-
var
|
|
2589
|
+
var kt = Ji ? (
|
|
2560
2590
|
// Native
|
|
2561
2591
|
function(t, r, i) {
|
|
2562
2592
|
return t.startsWith(r, i);
|
|
@@ -2566,7 +2596,7 @@ var Ut = Qi ? (
|
|
|
2566
2596
|
function(t, r, i) {
|
|
2567
2597
|
return t.slice(i, i + r.length) === r;
|
|
2568
2598
|
}
|
|
2569
|
-
),
|
|
2599
|
+
), dt = Qi ? String.fromCodePoint : (
|
|
2570
2600
|
// IE11
|
|
2571
2601
|
function() {
|
|
2572
2602
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2578,9 +2608,9 @@ var Ut = Qi ? (
|
|
|
2578
2608
|
}
|
|
2579
2609
|
return i;
|
|
2580
2610
|
}
|
|
2581
|
-
),
|
|
2611
|
+
), Ut = (
|
|
2582
2612
|
// native
|
|
2583
|
-
|
|
2613
|
+
Ki ? Object.fromEntries : (
|
|
2584
2614
|
// Ponyfill
|
|
2585
2615
|
function(t) {
|
|
2586
2616
|
for (var r = {}, i = 0, n = t; i < n.length; i++) {
|
|
@@ -2590,7 +2620,7 @@ var Ut = Qi ? (
|
|
|
2590
2620
|
return r;
|
|
2591
2621
|
}
|
|
2592
2622
|
)
|
|
2593
|
-
), xr =
|
|
2623
|
+
), xr = en ? (
|
|
2594
2624
|
// Native
|
|
2595
2625
|
function(t, r) {
|
|
2596
2626
|
return t.codePointAt(r);
|
|
@@ -2604,7 +2634,7 @@ var Ut = Qi ? (
|
|
|
2604
2634
|
return n < 55296 || n > 56319 || r + 1 === i || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? n : (n - 55296 << 10) + (s - 56320) + 65536;
|
|
2605
2635
|
}
|
|
2606
2636
|
}
|
|
2607
|
-
),
|
|
2637
|
+
), an = tn ? (
|
|
2608
2638
|
// Native
|
|
2609
2639
|
function(t) {
|
|
2610
2640
|
return t.trimStart();
|
|
@@ -2612,9 +2642,9 @@ var Ut = Qi ? (
|
|
|
2612
2642
|
) : (
|
|
2613
2643
|
// Ponyfill
|
|
2614
2644
|
function(t) {
|
|
2615
|
-
return t.replace(
|
|
2645
|
+
return t.replace(Yi, "");
|
|
2616
2646
|
}
|
|
2617
|
-
),
|
|
2647
|
+
), un = rn ? (
|
|
2618
2648
|
// Native
|
|
2619
2649
|
function(t) {
|
|
2620
2650
|
return t.trimEnd();
|
|
@@ -2622,32 +2652,32 @@ var Ut = Qi ? (
|
|
|
2622
2652
|
) : (
|
|
2623
2653
|
// Ponyfill
|
|
2624
2654
|
function(t) {
|
|
2625
|
-
return t.replace(
|
|
2655
|
+
return t.replace(Zi, "");
|
|
2626
2656
|
}
|
|
2627
2657
|
);
|
|
2628
|
-
function
|
|
2658
|
+
function _r(e, t) {
|
|
2629
2659
|
return new RegExp(e, t);
|
|
2630
2660
|
}
|
|
2631
|
-
var
|
|
2632
|
-
if (
|
|
2633
|
-
var
|
|
2634
|
-
|
|
2661
|
+
var mt;
|
|
2662
|
+
if (ct) {
|
|
2663
|
+
var Ft = _r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2664
|
+
mt = function(t, r) {
|
|
2635
2665
|
var i;
|
|
2636
|
-
|
|
2637
|
-
var n =
|
|
2666
|
+
Ft.lastIndex = r;
|
|
2667
|
+
var n = Ft.exec(t);
|
|
2638
2668
|
return (i = n[1]) !== null && i !== void 0 ? i : "";
|
|
2639
2669
|
};
|
|
2640
2670
|
} else
|
|
2641
|
-
|
|
2671
|
+
mt = function(t, r) {
|
|
2642
2672
|
for (var i = []; ; ) {
|
|
2643
2673
|
var n = xr(t, r);
|
|
2644
|
-
if (n === void 0 ||
|
|
2674
|
+
if (n === void 0 || Er(n) || cn(n))
|
|
2645
2675
|
break;
|
|
2646
2676
|
i.push(n), r += n >= 65536 ? 2 : 1;
|
|
2647
2677
|
}
|
|
2648
|
-
return
|
|
2678
|
+
return dt.apply(void 0, i);
|
|
2649
2679
|
};
|
|
2650
|
-
var
|
|
2680
|
+
var ln = (
|
|
2651
2681
|
/** @class */
|
|
2652
2682
|
function() {
|
|
2653
2683
|
function e(t, r) {
|
|
@@ -2671,14 +2701,14 @@ var hn = (
|
|
|
2671
2701
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2672
2702
|
var l = this.clonePosition();
|
|
2673
2703
|
this.bump(), n.push({
|
|
2674
|
-
type:
|
|
2675
|
-
location:
|
|
2704
|
+
type: D.pound,
|
|
2705
|
+
location: P(l, this.clonePosition())
|
|
2676
2706
|
});
|
|
2677
2707
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2678
2708
|
if (i)
|
|
2679
2709
|
break;
|
|
2680
|
-
return this.error(T.UNMATCHED_CLOSING_TAG,
|
|
2681
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2710
|
+
return this.error(T.UNMATCHED_CLOSING_TAG, P(this.clonePosition(), this.clonePosition()));
|
|
2711
|
+
} else if (s === 60 && !this.ignoreTag && pt(this.peek() || 0)) {
|
|
2682
2712
|
var o = this.parseTag(t, r);
|
|
2683
2713
|
if (o.err)
|
|
2684
2714
|
return o;
|
|
@@ -2699,9 +2729,9 @@ var hn = (
|
|
|
2699
2729
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2700
2730
|
return {
|
|
2701
2731
|
val: {
|
|
2702
|
-
type:
|
|
2732
|
+
type: D.literal,
|
|
2703
2733
|
value: "<".concat(n, "/>"),
|
|
2704
|
-
location:
|
|
2734
|
+
location: P(i, this.clonePosition())
|
|
2705
2735
|
},
|
|
2706
2736
|
err: null
|
|
2707
2737
|
};
|
|
@@ -2711,25 +2741,25 @@ var hn = (
|
|
|
2711
2741
|
return s;
|
|
2712
2742
|
var o = s.val, l = this.clonePosition();
|
|
2713
2743
|
if (this.bumpIf("</")) {
|
|
2714
|
-
if (this.isEOF() || !
|
|
2715
|
-
return this.error(T.INVALID_TAG,
|
|
2744
|
+
if (this.isEOF() || !pt(this.char()))
|
|
2745
|
+
return this.error(T.INVALID_TAG, P(l, this.clonePosition()));
|
|
2716
2746
|
var a = this.clonePosition(), u = this.parseTagName();
|
|
2717
|
-
return n !== u ? this.error(T.UNMATCHED_CLOSING_TAG,
|
|
2747
|
+
return n !== u ? this.error(T.UNMATCHED_CLOSING_TAG, P(a, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2718
2748
|
val: {
|
|
2719
|
-
type:
|
|
2749
|
+
type: D.tag,
|
|
2720
2750
|
value: n,
|
|
2721
2751
|
children: o,
|
|
2722
|
-
location:
|
|
2752
|
+
location: P(i, this.clonePosition())
|
|
2723
2753
|
},
|
|
2724
2754
|
err: null
|
|
2725
|
-
} : this.error(T.INVALID_TAG,
|
|
2755
|
+
} : this.error(T.INVALID_TAG, P(l, this.clonePosition())));
|
|
2726
2756
|
} else
|
|
2727
|
-
return this.error(T.UNCLOSED_TAG,
|
|
2757
|
+
return this.error(T.UNCLOSED_TAG, P(i, this.clonePosition()));
|
|
2728
2758
|
} else
|
|
2729
|
-
return this.error(T.INVALID_TAG,
|
|
2759
|
+
return this.error(T.INVALID_TAG, P(i, this.clonePosition()));
|
|
2730
2760
|
}, e.prototype.parseTagName = function() {
|
|
2731
2761
|
var t = this.offset();
|
|
2732
|
-
for (this.bump(); !this.isEOF() &&
|
|
2762
|
+
for (this.bump(); !this.isEOF() && fn(this.char()); )
|
|
2733
2763
|
this.bump();
|
|
2734
2764
|
return this.message.slice(t, this.offset());
|
|
2735
2765
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2751,14 +2781,14 @@ var hn = (
|
|
|
2751
2781
|
}
|
|
2752
2782
|
break;
|
|
2753
2783
|
}
|
|
2754
|
-
var a =
|
|
2784
|
+
var a = P(i, this.clonePosition());
|
|
2755
2785
|
return {
|
|
2756
|
-
val: { type:
|
|
2786
|
+
val: { type: D.literal, value: n, location: a },
|
|
2757
2787
|
err: null
|
|
2758
2788
|
};
|
|
2759
2789
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2760
2790
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2761
|
-
!
|
|
2791
|
+
!hn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2762
2792
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2763
2793
|
if (this.isEOF() || this.char() !== 39)
|
|
2764
2794
|
return null;
|
|
@@ -2792,49 +2822,49 @@ var hn = (
|
|
|
2792
2822
|
r.push(i);
|
|
2793
2823
|
this.bump();
|
|
2794
2824
|
}
|
|
2795
|
-
return
|
|
2825
|
+
return dt.apply(void 0, r);
|
|
2796
2826
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2797
2827
|
if (this.isEOF())
|
|
2798
2828
|
return null;
|
|
2799
2829
|
var i = this.char();
|
|
2800
|
-
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(),
|
|
2830
|
+
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(), dt(i));
|
|
2801
2831
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2802
2832
|
var i = this.clonePosition();
|
|
2803
2833
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2804
|
-
return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2834
|
+
return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, P(i, this.clonePosition()));
|
|
2805
2835
|
if (this.char() === 125)
|
|
2806
|
-
return this.bump(), this.error(T.EMPTY_ARGUMENT,
|
|
2836
|
+
return this.bump(), this.error(T.EMPTY_ARGUMENT, P(i, this.clonePosition()));
|
|
2807
2837
|
var n = this.parseIdentifierIfPossible().value;
|
|
2808
2838
|
if (!n)
|
|
2809
|
-
return this.error(T.MALFORMED_ARGUMENT,
|
|
2839
|
+
return this.error(T.MALFORMED_ARGUMENT, P(i, this.clonePosition()));
|
|
2810
2840
|
if (this.bumpSpace(), this.isEOF())
|
|
2811
|
-
return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2841
|
+
return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, P(i, this.clonePosition()));
|
|
2812
2842
|
switch (this.char()) {
|
|
2813
2843
|
case 125:
|
|
2814
2844
|
return this.bump(), {
|
|
2815
2845
|
val: {
|
|
2816
|
-
type:
|
|
2846
|
+
type: D.argument,
|
|
2817
2847
|
// value does not include the opening and closing braces.
|
|
2818
2848
|
value: n,
|
|
2819
|
-
location:
|
|
2849
|
+
location: P(i, this.clonePosition())
|
|
2820
2850
|
},
|
|
2821
2851
|
err: null
|
|
2822
2852
|
};
|
|
2823
2853
|
case 44:
|
|
2824
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2854
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, P(i, this.clonePosition())) : this.parseArgumentOptions(t, r, n, i);
|
|
2825
2855
|
default:
|
|
2826
|
-
return this.error(T.MALFORMED_ARGUMENT,
|
|
2856
|
+
return this.error(T.MALFORMED_ARGUMENT, P(i, this.clonePosition()));
|
|
2827
2857
|
}
|
|
2828
2858
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2829
|
-
var t = this.clonePosition(), r = this.offset(), i =
|
|
2859
|
+
var t = this.clonePosition(), r = this.offset(), i = mt(this.message, r), n = r + i.length;
|
|
2830
2860
|
this.bumpTo(n);
|
|
2831
|
-
var s = this.clonePosition(), o =
|
|
2861
|
+
var s = this.clonePosition(), o = P(t, s);
|
|
2832
2862
|
return { value: i, location: o };
|
|
2833
2863
|
}, e.prototype.parseArgumentOptions = function(t, r, i, n) {
|
|
2834
2864
|
var s, o = this.clonePosition(), l = this.parseIdentifierIfPossible().value, a = this.clonePosition();
|
|
2835
2865
|
switch (l) {
|
|
2836
2866
|
case "":
|
|
2837
|
-
return this.error(T.EXPECT_ARGUMENT_TYPE,
|
|
2867
|
+
return this.error(T.EXPECT_ARGUMENT_TYPE, P(o, a));
|
|
2838
2868
|
case "number":
|
|
2839
2869
|
case "date":
|
|
2840
2870
|
case "time": {
|
|
@@ -2845,46 +2875,46 @@ var hn = (
|
|
|
2845
2875
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2846
2876
|
if (c.err)
|
|
2847
2877
|
return c;
|
|
2848
|
-
var p =
|
|
2878
|
+
var p = un(c.val);
|
|
2849
2879
|
if (p.length === 0)
|
|
2850
|
-
return this.error(T.EXPECT_ARGUMENT_STYLE,
|
|
2851
|
-
var
|
|
2852
|
-
u = { style: p, styleLocation:
|
|
2880
|
+
return this.error(T.EXPECT_ARGUMENT_STYLE, P(this.clonePosition(), this.clonePosition()));
|
|
2881
|
+
var x = P(h, this.clonePosition());
|
|
2882
|
+
u = { style: p, styleLocation: x };
|
|
2853
2883
|
}
|
|
2854
2884
|
var S = this.tryParseArgumentClose(n);
|
|
2855
2885
|
if (S.err)
|
|
2856
2886
|
return S;
|
|
2857
|
-
var
|
|
2858
|
-
if (u &&
|
|
2859
|
-
var
|
|
2887
|
+
var b = P(n, this.clonePosition());
|
|
2888
|
+
if (u && kt(u == null ? void 0 : u.style, "::", 0)) {
|
|
2889
|
+
var M = an(u.style.slice(2));
|
|
2860
2890
|
if (l === "number") {
|
|
2861
|
-
var c = this.parseNumberSkeletonFromString(
|
|
2891
|
+
var c = this.parseNumberSkeletonFromString(M, u.styleLocation);
|
|
2862
2892
|
return c.err ? c : {
|
|
2863
|
-
val: { type:
|
|
2893
|
+
val: { type: D.number, value: i, location: b, style: c.val },
|
|
2864
2894
|
err: null
|
|
2865
2895
|
};
|
|
2866
2896
|
} else {
|
|
2867
|
-
if (
|
|
2868
|
-
return this.error(T.EXPECT_DATE_TIME_SKELETON,
|
|
2869
|
-
var G =
|
|
2870
|
-
this.locale && (G =
|
|
2897
|
+
if (M.length === 0)
|
|
2898
|
+
return this.error(T.EXPECT_DATE_TIME_SKELETON, b);
|
|
2899
|
+
var G = M;
|
|
2900
|
+
this.locale && (G = Wi(M, this.locale));
|
|
2871
2901
|
var p = {
|
|
2872
|
-
type:
|
|
2902
|
+
type: He.dateTime,
|
|
2873
2903
|
pattern: G,
|
|
2874
2904
|
location: u.styleLocation,
|
|
2875
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2876
|
-
}, R = l === "date" ?
|
|
2905
|
+
parsedOptions: this.shouldParseSkeletons ? Ui(G) : {}
|
|
2906
|
+
}, R = l === "date" ? D.date : D.time;
|
|
2877
2907
|
return {
|
|
2878
|
-
val: { type: R, value: i, location:
|
|
2908
|
+
val: { type: R, value: i, location: b, style: p },
|
|
2879
2909
|
err: null
|
|
2880
2910
|
};
|
|
2881
2911
|
}
|
|
2882
2912
|
}
|
|
2883
2913
|
return {
|
|
2884
2914
|
val: {
|
|
2885
|
-
type: l === "number" ?
|
|
2915
|
+
type: l === "number" ? D.number : l === "date" ? D.date : D.time,
|
|
2886
2916
|
value: i,
|
|
2887
|
-
location:
|
|
2917
|
+
location: b,
|
|
2888
2918
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
2889
2919
|
},
|
|
2890
2920
|
err: null
|
|
@@ -2893,14 +2923,14 @@ var hn = (
|
|
|
2893
2923
|
case "plural":
|
|
2894
2924
|
case "selectordinal":
|
|
2895
2925
|
case "select": {
|
|
2896
|
-
var
|
|
2926
|
+
var B = this.clonePosition();
|
|
2897
2927
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2898
|
-
return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2928
|
+
return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS, P(B, A({}, B)));
|
|
2899
2929
|
this.bumpSpace();
|
|
2900
2930
|
var X = this.parseIdentifierIfPossible(), I = 0;
|
|
2901
2931
|
if (l !== "select" && X.value === "offset") {
|
|
2902
2932
|
if (!this.bumpIf(":"))
|
|
2903
|
-
return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2933
|
+
return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, P(this.clonePosition(), this.clonePosition()));
|
|
2904
2934
|
this.bumpSpace();
|
|
2905
2935
|
var c = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2906
2936
|
if (c.err)
|
|
@@ -2913,20 +2943,20 @@ var hn = (
|
|
|
2913
2943
|
var S = this.tryParseArgumentClose(n);
|
|
2914
2944
|
if (S.err)
|
|
2915
2945
|
return S;
|
|
2916
|
-
var q =
|
|
2946
|
+
var q = P(n, this.clonePosition());
|
|
2917
2947
|
return l === "select" ? {
|
|
2918
2948
|
val: {
|
|
2919
|
-
type:
|
|
2949
|
+
type: D.select,
|
|
2920
2950
|
value: i,
|
|
2921
|
-
options:
|
|
2951
|
+
options: Ut(F.val),
|
|
2922
2952
|
location: q
|
|
2923
2953
|
},
|
|
2924
2954
|
err: null
|
|
2925
2955
|
} : {
|
|
2926
2956
|
val: {
|
|
2927
|
-
type:
|
|
2957
|
+
type: D.plural,
|
|
2928
2958
|
value: i,
|
|
2929
|
-
options:
|
|
2959
|
+
options: Ut(F.val),
|
|
2930
2960
|
offset: I,
|
|
2931
2961
|
pluralType: l === "plural" ? "cardinal" : "ordinal",
|
|
2932
2962
|
location: q
|
|
@@ -2935,10 +2965,10 @@ var hn = (
|
|
|
2935
2965
|
};
|
|
2936
2966
|
}
|
|
2937
2967
|
default:
|
|
2938
|
-
return this.error(T.INVALID_ARGUMENT_TYPE,
|
|
2968
|
+
return this.error(T.INVALID_ARGUMENT_TYPE, P(o, a));
|
|
2939
2969
|
}
|
|
2940
2970
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2941
|
-
return this.isEOF() || this.char() !== 125 ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2971
|
+
return this.isEOF() || this.char() !== 125 ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, P(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2942
2972
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2943
2973
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2944
2974
|
var i = this.char();
|
|
@@ -2947,7 +2977,7 @@ var hn = (
|
|
|
2947
2977
|
this.bump();
|
|
2948
2978
|
var n = this.clonePosition();
|
|
2949
2979
|
if (!this.bumpUntil("'"))
|
|
2950
|
-
return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2980
|
+
return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, P(n, this.clonePosition()));
|
|
2951
2981
|
this.bump();
|
|
2952
2982
|
break;
|
|
2953
2983
|
}
|
|
@@ -2977,16 +3007,16 @@ var hn = (
|
|
|
2977
3007
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2978
3008
|
var i = [];
|
|
2979
3009
|
try {
|
|
2980
|
-
i =
|
|
3010
|
+
i = Vi(t);
|
|
2981
3011
|
} catch (n) {
|
|
2982
3012
|
return this.error(T.INVALID_NUMBER_SKELETON, r);
|
|
2983
3013
|
}
|
|
2984
3014
|
return {
|
|
2985
3015
|
val: {
|
|
2986
|
-
type:
|
|
3016
|
+
type: He.number,
|
|
2987
3017
|
tokens: i,
|
|
2988
3018
|
location: r,
|
|
2989
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3019
|
+
parsedOptions: this.shouldParseSkeletons ? Xi(i) : {}
|
|
2990
3020
|
},
|
|
2991
3021
|
err: null
|
|
2992
3022
|
};
|
|
@@ -2998,31 +3028,31 @@ var hn = (
|
|
|
2998
3028
|
var p = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR, T.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2999
3029
|
if (p.err)
|
|
3000
3030
|
return p;
|
|
3001
|
-
h =
|
|
3031
|
+
h = P(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3002
3032
|
} else
|
|
3003
3033
|
break;
|
|
3004
3034
|
}
|
|
3005
3035
|
if (a.has(u))
|
|
3006
3036
|
return this.error(r === "select" ? T.DUPLICATE_SELECT_ARGUMENT_SELECTOR : T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3007
3037
|
u === "other" && (o = !0), this.bumpSpace();
|
|
3008
|
-
var
|
|
3038
|
+
var x = this.clonePosition();
|
|
3009
3039
|
if (!this.bumpIf("{"))
|
|
3010
|
-
return this.error(r === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3040
|
+
return this.error(r === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, P(this.clonePosition(), this.clonePosition()));
|
|
3011
3041
|
var S = this.parseMessage(t + 1, r, i);
|
|
3012
3042
|
if (S.err)
|
|
3013
3043
|
return S;
|
|
3014
|
-
var
|
|
3015
|
-
if (
|
|
3016
|
-
return
|
|
3044
|
+
var b = this.tryParseArgumentClose(x);
|
|
3045
|
+
if (b.err)
|
|
3046
|
+
return b;
|
|
3017
3047
|
l.push([
|
|
3018
3048
|
u,
|
|
3019
3049
|
{
|
|
3020
3050
|
value: S.val,
|
|
3021
|
-
location:
|
|
3051
|
+
location: P(x, this.clonePosition())
|
|
3022
3052
|
}
|
|
3023
3053
|
]), a.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3024
3054
|
}
|
|
3025
|
-
return l.length === 0 ? this.error(r === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR : T.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3055
|
+
return l.length === 0 ? this.error(r === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR : T.EXPECT_PLURAL_ARGUMENT_SELECTOR, P(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(T.MISSING_OTHER_CLAUSE, P(this.clonePosition(), this.clonePosition())) : { val: l, err: null };
|
|
3026
3056
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3027
3057
|
var i = 1, n = this.clonePosition();
|
|
3028
3058
|
this.bumpIf("+") || this.bumpIf("-") && (i = -1);
|
|
@@ -3033,8 +3063,8 @@ var hn = (
|
|
|
3033
3063
|
else
|
|
3034
3064
|
break;
|
|
3035
3065
|
}
|
|
3036
|
-
var a =
|
|
3037
|
-
return s ? (o *= i,
|
|
3066
|
+
var a = P(n, this.clonePosition());
|
|
3067
|
+
return s ? (o *= i, sn(o) ? { val: o, err: null } : this.error(r, a)) : this.error(t, a);
|
|
3038
3068
|
}, e.prototype.offset = function() {
|
|
3039
3069
|
return this.position.offset;
|
|
3040
3070
|
}, e.prototype.isEOF = function() {
|
|
@@ -3068,7 +3098,7 @@ var hn = (
|
|
|
3068
3098
|
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);
|
|
3069
3099
|
}
|
|
3070
3100
|
}, e.prototype.bumpIf = function(t) {
|
|
3071
|
-
if (
|
|
3101
|
+
if (kt(this.message, t, this.offset())) {
|
|
3072
3102
|
for (var r = 0; r < t.length; r++)
|
|
3073
3103
|
this.bump();
|
|
3074
3104
|
return !0;
|
|
@@ -3090,7 +3120,7 @@ var hn = (
|
|
|
3090
3120
|
break;
|
|
3091
3121
|
}
|
|
3092
3122
|
}, e.prototype.bumpSpace = function() {
|
|
3093
|
-
for (; !this.isEOF() &&
|
|
3123
|
+
for (; !this.isEOF() && Er(this.char()); )
|
|
3094
3124
|
this.bump();
|
|
3095
3125
|
}, e.prototype.peek = function() {
|
|
3096
3126
|
if (this.isEOF())
|
|
@@ -3100,47 +3130,47 @@ var hn = (
|
|
|
3100
3130
|
}, e;
|
|
3101
3131
|
}()
|
|
3102
3132
|
);
|
|
3103
|
-
function
|
|
3133
|
+
function pt(e) {
|
|
3104
3134
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3105
3135
|
}
|
|
3106
|
-
function
|
|
3107
|
-
return
|
|
3136
|
+
function hn(e) {
|
|
3137
|
+
return pt(e) || e === 47;
|
|
3108
3138
|
}
|
|
3109
|
-
function
|
|
3139
|
+
function fn(e) {
|
|
3110
3140
|
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;
|
|
3111
3141
|
}
|
|
3112
|
-
function
|
|
3142
|
+
function Er(e) {
|
|
3113
3143
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3114
3144
|
}
|
|
3115
|
-
function
|
|
3145
|
+
function cn(e) {
|
|
3116
3146
|
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;
|
|
3117
3147
|
}
|
|
3118
|
-
function
|
|
3148
|
+
function gt(e) {
|
|
3119
3149
|
e.forEach(function(t) {
|
|
3120
|
-
if (delete t.location,
|
|
3150
|
+
if (delete t.location, cr(t) || dr(t))
|
|
3121
3151
|
for (var r in t.options)
|
|
3122
|
-
delete t.options[r].location,
|
|
3152
|
+
delete t.options[r].location, gt(t.options[r].value);
|
|
3123
3153
|
else
|
|
3124
|
-
|
|
3154
|
+
lr(t) && pr(t.style) || (hr(t) || fr(t)) && ft(t.style) ? delete t.style.location : mr(t) && gt(t.children);
|
|
3125
3155
|
});
|
|
3126
3156
|
}
|
|
3127
|
-
function
|
|
3128
|
-
t === void 0 && (t = {}), t =
|
|
3129
|
-
var r = new
|
|
3157
|
+
function dn(e, t) {
|
|
3158
|
+
t === void 0 && (t = {}), t = A({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3159
|
+
var r = new ln(e, t).parse();
|
|
3130
3160
|
if (r.err) {
|
|
3131
3161
|
var i = SyntaxError(T[r.err.kind]);
|
|
3132
3162
|
throw i.location = r.err.location, i.originalMessage = r.err.message, i;
|
|
3133
3163
|
}
|
|
3134
|
-
return t != null && t.captureLocation ||
|
|
3164
|
+
return t != null && t.captureLocation || gt(r.val), r.val;
|
|
3135
3165
|
}
|
|
3136
3166
|
var Pe;
|
|
3137
3167
|
(function(e) {
|
|
3138
3168
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3139
3169
|
})(Pe || (Pe = {}));
|
|
3140
|
-
var
|
|
3170
|
+
var Je = (
|
|
3141
3171
|
/** @class */
|
|
3142
3172
|
function(e) {
|
|
3143
|
-
|
|
3173
|
+
Ze(t, e);
|
|
3144
3174
|
function t(r, i, n) {
|
|
3145
3175
|
var s = e.call(this, r) || this;
|
|
3146
3176
|
return s.code = i, s.originalMessage = n, s;
|
|
@@ -3149,38 +3179,38 @@ var Ke = (
|
|
|
3149
3179
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3150
3180
|
}, t;
|
|
3151
3181
|
}(Error)
|
|
3152
|
-
),
|
|
3182
|
+
), Vt = (
|
|
3153
3183
|
/** @class */
|
|
3154
3184
|
function(e) {
|
|
3155
|
-
|
|
3185
|
+
Ze(t, e);
|
|
3156
3186
|
function t(r, i, n, s) {
|
|
3157
3187
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'), Pe.INVALID_VALUE, s) || this;
|
|
3158
3188
|
}
|
|
3159
3189
|
return t;
|
|
3160
|
-
}(
|
|
3161
|
-
),
|
|
3190
|
+
}(Je)
|
|
3191
|
+
), mn = (
|
|
3162
3192
|
/** @class */
|
|
3163
3193
|
function(e) {
|
|
3164
|
-
|
|
3194
|
+
Ze(t, e);
|
|
3165
3195
|
function t(r, i, n) {
|
|
3166
3196
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i), Pe.INVALID_VALUE, n) || this;
|
|
3167
3197
|
}
|
|
3168
3198
|
return t;
|
|
3169
|
-
}(
|
|
3170
|
-
),
|
|
3199
|
+
}(Je)
|
|
3200
|
+
), pn = (
|
|
3171
3201
|
/** @class */
|
|
3172
3202
|
function(e) {
|
|
3173
|
-
|
|
3203
|
+
Ze(t, e);
|
|
3174
3204
|
function t(r, i) {
|
|
3175
3205
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'), Pe.MISSING_VALUE, i) || this;
|
|
3176
3206
|
}
|
|
3177
3207
|
return t;
|
|
3178
|
-
}(
|
|
3208
|
+
}(Je)
|
|
3179
3209
|
), z;
|
|
3180
3210
|
(function(e) {
|
|
3181
3211
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3182
3212
|
})(z || (z = {}));
|
|
3183
|
-
function
|
|
3213
|
+
function gn(e) {
|
|
3184
3214
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3185
3215
|
var i = t[t.length - 1];
|
|
3186
3216
|
return !i || i.type !== z.literal || r.type !== z.literal ? t.push(r) : i.value += r.value, t;
|
|
@@ -3189,8 +3219,8 @@ function vn(e) {
|
|
|
3189
3219
|
function bn(e) {
|
|
3190
3220
|
return typeof e == "function";
|
|
3191
3221
|
}
|
|
3192
|
-
function
|
|
3193
|
-
if (e.length === 1 &&
|
|
3222
|
+
function ze(e, t, r, i, n, s, o) {
|
|
3223
|
+
if (e.length === 1 && Lt(e[0]))
|
|
3194
3224
|
return [
|
|
3195
3225
|
{
|
|
3196
3226
|
type: z.literal,
|
|
@@ -3199,14 +3229,14 @@ function Xe(e, t, r, i, n, s, o) {
|
|
|
3199
3229
|
];
|
|
3200
3230
|
for (var l = [], a = 0, u = e; a < u.length; a++) {
|
|
3201
3231
|
var h = u[a];
|
|
3202
|
-
if (
|
|
3232
|
+
if (Lt(h)) {
|
|
3203
3233
|
l.push({
|
|
3204
3234
|
type: z.literal,
|
|
3205
3235
|
value: h.value
|
|
3206
3236
|
});
|
|
3207
3237
|
continue;
|
|
3208
3238
|
}
|
|
3209
|
-
if (
|
|
3239
|
+
if (Ri(h)) {
|
|
3210
3240
|
typeof s == "number" && l.push({
|
|
3211
3241
|
type: z.literal,
|
|
3212
3242
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3215,44 +3245,44 @@ function Xe(e, t, r, i, n, s, o) {
|
|
|
3215
3245
|
}
|
|
3216
3246
|
var c = h.value;
|
|
3217
3247
|
if (!(n && c in n))
|
|
3218
|
-
throw new
|
|
3248
|
+
throw new pn(c, o);
|
|
3219
3249
|
var p = n[c];
|
|
3220
|
-
if (
|
|
3250
|
+
if (Ni(h)) {
|
|
3221
3251
|
(!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), l.push({
|
|
3222
3252
|
type: typeof p == "string" ? z.literal : z.object,
|
|
3223
3253
|
value: p
|
|
3224
3254
|
});
|
|
3225
3255
|
continue;
|
|
3226
3256
|
}
|
|
3227
|
-
if (
|
|
3228
|
-
var
|
|
3257
|
+
if (hr(h)) {
|
|
3258
|
+
var x = typeof h.style == "string" ? i.date[h.style] : ft(h.style) ? h.style.parsedOptions : void 0;
|
|
3229
3259
|
l.push({
|
|
3230
3260
|
type: z.literal,
|
|
3231
|
-
value: r.getDateTimeFormat(t,
|
|
3261
|
+
value: r.getDateTimeFormat(t, x).format(p)
|
|
3232
3262
|
});
|
|
3233
3263
|
continue;
|
|
3234
3264
|
}
|
|
3235
|
-
if (
|
|
3236
|
-
var
|
|
3265
|
+
if (fr(h)) {
|
|
3266
|
+
var x = typeof h.style == "string" ? i.time[h.style] : ft(h.style) ? h.style.parsedOptions : i.time.medium;
|
|
3237
3267
|
l.push({
|
|
3238
3268
|
type: z.literal,
|
|
3239
|
-
value: r.getDateTimeFormat(t,
|
|
3269
|
+
value: r.getDateTimeFormat(t, x).format(p)
|
|
3240
3270
|
});
|
|
3241
3271
|
continue;
|
|
3242
3272
|
}
|
|
3243
|
-
if (
|
|
3244
|
-
var
|
|
3245
|
-
|
|
3273
|
+
if (lr(h)) {
|
|
3274
|
+
var x = typeof h.style == "string" ? i.number[h.style] : pr(h.style) ? h.style.parsedOptions : void 0;
|
|
3275
|
+
x && x.scale && (p = p * (x.scale || 1)), l.push({
|
|
3246
3276
|
type: z.literal,
|
|
3247
|
-
value: r.getNumberFormat(t,
|
|
3277
|
+
value: r.getNumberFormat(t, x).format(p)
|
|
3248
3278
|
});
|
|
3249
3279
|
continue;
|
|
3250
3280
|
}
|
|
3251
|
-
if (
|
|
3252
|
-
var S = h.children,
|
|
3253
|
-
if (!bn(
|
|
3254
|
-
throw new
|
|
3255
|
-
var G =
|
|
3281
|
+
if (mr(h)) {
|
|
3282
|
+
var S = h.children, b = h.value, M = n[b];
|
|
3283
|
+
if (!bn(M))
|
|
3284
|
+
throw new mn(b, "function", o);
|
|
3285
|
+
var G = ze(S, t, r, i, n, s), R = M(G.map(function(I) {
|
|
3256
3286
|
return I.value;
|
|
3257
3287
|
}));
|
|
3258
3288
|
Array.isArray(R) || (R = [R]), l.push.apply(l, R.map(function(I) {
|
|
@@ -3262,42 +3292,42 @@ function Xe(e, t, r, i, n, s, o) {
|
|
|
3262
3292
|
};
|
|
3263
3293
|
}));
|
|
3264
3294
|
}
|
|
3265
|
-
if (
|
|
3266
|
-
var
|
|
3267
|
-
if (!
|
|
3268
|
-
throw new
|
|
3269
|
-
l.push.apply(l,
|
|
3295
|
+
if (cr(h)) {
|
|
3296
|
+
var B = h.options[p] || h.options.other;
|
|
3297
|
+
if (!B)
|
|
3298
|
+
throw new Vt(h.value, p, Object.keys(h.options), o);
|
|
3299
|
+
l.push.apply(l, ze(B.value, t, r, i, n));
|
|
3270
3300
|
continue;
|
|
3271
3301
|
}
|
|
3272
|
-
if (
|
|
3273
|
-
var
|
|
3274
|
-
if (!
|
|
3302
|
+
if (dr(h)) {
|
|
3303
|
+
var B = h.options["=".concat(p)];
|
|
3304
|
+
if (!B) {
|
|
3275
3305
|
if (!Intl.PluralRules)
|
|
3276
|
-
throw new
|
|
3306
|
+
throw new Je(`Intl.PluralRules is not available in this environment.
|
|
3277
3307
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3278
3308
|
`, Pe.MISSING_INTL_API, o);
|
|
3279
3309
|
var X = r.getPluralRules(t, { type: h.pluralType }).select(p - (h.offset || 0));
|
|
3280
|
-
|
|
3310
|
+
B = h.options[X] || h.options.other;
|
|
3281
3311
|
}
|
|
3282
|
-
if (!
|
|
3283
|
-
throw new
|
|
3284
|
-
l.push.apply(l,
|
|
3312
|
+
if (!B)
|
|
3313
|
+
throw new Vt(h.value, p, Object.keys(h.options), o);
|
|
3314
|
+
l.push.apply(l, ze(B.value, t, r, i, n, p - (h.offset || 0)));
|
|
3285
3315
|
continue;
|
|
3286
3316
|
}
|
|
3287
3317
|
}
|
|
3288
|
-
return
|
|
3318
|
+
return gn(l);
|
|
3289
3319
|
}
|
|
3290
|
-
function
|
|
3291
|
-
return t ?
|
|
3292
|
-
return r[i] =
|
|
3320
|
+
function vn(e, t) {
|
|
3321
|
+
return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, i) {
|
|
3322
|
+
return r[i] = A(A({}, e[i]), t[i] || {}), r;
|
|
3293
3323
|
}, {})) : e;
|
|
3294
3324
|
}
|
|
3295
|
-
function
|
|
3325
|
+
function yn(e, t) {
|
|
3296
3326
|
return t ? Object.keys(e).reduce(function(r, i) {
|
|
3297
|
-
return r[i] =
|
|
3298
|
-
},
|
|
3327
|
+
return r[i] = vn(e[i], t[i]), r;
|
|
3328
|
+
}, A({}, e)) : e;
|
|
3299
3329
|
}
|
|
3300
|
-
function
|
|
3330
|
+
function st(e) {
|
|
3301
3331
|
return {
|
|
3302
3332
|
create: function() {
|
|
3303
3333
|
return {
|
|
@@ -3317,33 +3347,33 @@ function xn(e) {
|
|
|
3317
3347
|
dateTime: {},
|
|
3318
3348
|
pluralRules: {}
|
|
3319
3349
|
}), {
|
|
3320
|
-
getNumberFormat:
|
|
3350
|
+
getNumberFormat: rt(function() {
|
|
3321
3351
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3322
3352
|
r[i] = arguments[i];
|
|
3323
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3353
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, tt([void 0], r, !1)))();
|
|
3324
3354
|
}, {
|
|
3325
|
-
cache:
|
|
3326
|
-
strategy:
|
|
3355
|
+
cache: st(e.number),
|
|
3356
|
+
strategy: it.variadic
|
|
3327
3357
|
}),
|
|
3328
|
-
getDateTimeFormat:
|
|
3358
|
+
getDateTimeFormat: rt(function() {
|
|
3329
3359
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3330
3360
|
r[i] = arguments[i];
|
|
3331
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3361
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, tt([void 0], r, !1)))();
|
|
3332
3362
|
}, {
|
|
3333
|
-
cache:
|
|
3334
|
-
strategy:
|
|
3363
|
+
cache: st(e.dateTime),
|
|
3364
|
+
strategy: it.variadic
|
|
3335
3365
|
}),
|
|
3336
|
-
getPluralRules:
|
|
3366
|
+
getPluralRules: rt(function() {
|
|
3337
3367
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3338
3368
|
r[i] = arguments[i];
|
|
3339
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3369
|
+
return new ((t = Intl.PluralRules).bind.apply(t, tt([void 0], r, !1)))();
|
|
3340
3370
|
}, {
|
|
3341
|
-
cache:
|
|
3342
|
-
strategy:
|
|
3371
|
+
cache: st(e.pluralRules),
|
|
3372
|
+
strategy: it.variadic
|
|
3343
3373
|
})
|
|
3344
3374
|
};
|
|
3345
3375
|
}
|
|
3346
|
-
var
|
|
3376
|
+
var wr = (
|
|
3347
3377
|
/** @class */
|
|
3348
3378
|
function() {
|
|
3349
3379
|
function e(t, r, i, n) {
|
|
@@ -3362,7 +3392,7 @@ var Sr = (
|
|
|
3362
3392
|
}, []);
|
|
3363
3393
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3364
3394
|
}, this.formatToParts = function(a) {
|
|
3365
|
-
return
|
|
3395
|
+
return ze(s.ast, s.locales, s.formatters, s.formats, a, void 0, s.message);
|
|
3366
3396
|
}, this.resolvedOptions = function() {
|
|
3367
3397
|
var a;
|
|
3368
3398
|
return {
|
|
@@ -3375,13 +3405,13 @@ var Sr = (
|
|
|
3375
3405
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3376
3406
|
var o = n || {};
|
|
3377
3407
|
o.formatters;
|
|
3378
|
-
var l =
|
|
3379
|
-
this.ast = e.__parse(t,
|
|
3408
|
+
var l = Ai(o, ["formatters"]);
|
|
3409
|
+
this.ast = e.__parse(t, A(A({}, l), { locale: this.resolvedLocale }));
|
|
3380
3410
|
} else
|
|
3381
3411
|
this.ast = t;
|
|
3382
3412
|
if (!Array.isArray(this.ast))
|
|
3383
3413
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3384
|
-
this.formats =
|
|
3414
|
+
this.formats = yn(e.formats, i), this.formatters = n && n.formatters || xn(this.formatterCache);
|
|
3385
3415
|
}
|
|
3386
3416
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3387
3417
|
get: function() {
|
|
@@ -3394,7 +3424,7 @@ var Sr = (
|
|
|
3394
3424
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3395
3425
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3396
3426
|
}
|
|
3397
|
-
}, e.__parse =
|
|
3427
|
+
}, e.__parse = dn, e.formats = {
|
|
3398
3428
|
number: {
|
|
3399
3429
|
integer: {
|
|
3400
3430
|
maximumFractionDigits: 0
|
|
@@ -3455,7 +3485,7 @@ var Sr = (
|
|
|
3455
3485
|
}, e;
|
|
3456
3486
|
}()
|
|
3457
3487
|
);
|
|
3458
|
-
function
|
|
3488
|
+
function _n(e, t) {
|
|
3459
3489
|
if (t == null)
|
|
3460
3490
|
return;
|
|
3461
3491
|
if (t in e)
|
|
@@ -3476,101 +3506,101 @@ function En(e, t) {
|
|
|
3476
3506
|
i = void 0;
|
|
3477
3507
|
return i;
|
|
3478
3508
|
}
|
|
3479
|
-
const
|
|
3509
|
+
const de = {}, En = (e, t, r) => r && (t in de || (de[t] = {}), e in de[t] || (de[t][e] = r), r), Sr = (e, t) => {
|
|
3480
3510
|
if (t == null)
|
|
3481
3511
|
return;
|
|
3482
|
-
if (t in
|
|
3483
|
-
return
|
|
3484
|
-
const r =
|
|
3512
|
+
if (t in de && e in de[t])
|
|
3513
|
+
return de[t][e];
|
|
3514
|
+
const r = Ue(t);
|
|
3485
3515
|
for (let i = 0; i < r.length; i++) {
|
|
3486
|
-
const n = r[i], s =
|
|
3516
|
+
const n = r[i], s = Sn(n, e);
|
|
3487
3517
|
if (s)
|
|
3488
|
-
return
|
|
3518
|
+
return En(e, t, s);
|
|
3489
3519
|
}
|
|
3490
3520
|
};
|
|
3491
|
-
let
|
|
3492
|
-
const
|
|
3493
|
-
function
|
|
3494
|
-
return
|
|
3521
|
+
let wt;
|
|
3522
|
+
const ke = Re({});
|
|
3523
|
+
function wn(e) {
|
|
3524
|
+
return wt[e] || null;
|
|
3495
3525
|
}
|
|
3496
|
-
function
|
|
3497
|
-
return e in
|
|
3526
|
+
function Tr(e) {
|
|
3527
|
+
return e in wt;
|
|
3498
3528
|
}
|
|
3499
|
-
function
|
|
3500
|
-
if (!
|
|
3529
|
+
function Sn(e, t) {
|
|
3530
|
+
if (!Tr(e))
|
|
3501
3531
|
return null;
|
|
3502
|
-
const r =
|
|
3503
|
-
return
|
|
3532
|
+
const r = wn(e);
|
|
3533
|
+
return _n(r, t);
|
|
3504
3534
|
}
|
|
3505
|
-
function
|
|
3535
|
+
function Tn(e) {
|
|
3506
3536
|
if (e == null)
|
|
3507
3537
|
return;
|
|
3508
|
-
const t =
|
|
3538
|
+
const t = Ue(e);
|
|
3509
3539
|
for (let r = 0; r < t.length; r++) {
|
|
3510
3540
|
const i = t[r];
|
|
3511
|
-
if (
|
|
3541
|
+
if (Tr(i))
|
|
3512
3542
|
return i;
|
|
3513
3543
|
}
|
|
3514
3544
|
}
|
|
3515
|
-
function
|
|
3516
|
-
delete
|
|
3545
|
+
function Hr(e, ...t) {
|
|
3546
|
+
delete de[e], ke.update((r) => (r[e] = Oi.all([r[e] || {}, ...t]), r));
|
|
3517
3547
|
}
|
|
3518
|
-
|
|
3519
|
-
[
|
|
3548
|
+
Ae(
|
|
3549
|
+
[ke],
|
|
3520
3550
|
([e]) => Object.keys(e)
|
|
3521
3551
|
);
|
|
3522
|
-
|
|
3523
|
-
const
|
|
3524
|
-
function
|
|
3525
|
-
|
|
3552
|
+
ke.subscribe((e) => wt = e);
|
|
3553
|
+
const Xe = {};
|
|
3554
|
+
function Hn(e, t) {
|
|
3555
|
+
Xe[e].delete(t), Xe[e].size === 0 && delete Xe[e];
|
|
3526
3556
|
}
|
|
3527
3557
|
function Pr(e) {
|
|
3528
|
-
return
|
|
3558
|
+
return Xe[e];
|
|
3529
3559
|
}
|
|
3530
3560
|
function Pn(e) {
|
|
3531
|
-
return
|
|
3561
|
+
return Ue(e).map((t) => {
|
|
3532
3562
|
const r = Pr(t);
|
|
3533
3563
|
return [t, r ? [...r] : []];
|
|
3534
3564
|
}).filter(([, t]) => t.length > 0);
|
|
3535
3565
|
}
|
|
3536
|
-
function
|
|
3537
|
-
return e == null ? !1 :
|
|
3566
|
+
function We(e) {
|
|
3567
|
+
return e == null ? !1 : Ue(e).some(
|
|
3538
3568
|
(t) => {
|
|
3539
3569
|
var r;
|
|
3540
3570
|
return (r = Pr(t)) == null ? void 0 : r.size;
|
|
3541
3571
|
}
|
|
3542
3572
|
);
|
|
3543
3573
|
}
|
|
3544
|
-
function
|
|
3574
|
+
function On(e, t) {
|
|
3545
3575
|
return Promise.all(
|
|
3546
|
-
t.map((i) => (
|
|
3547
|
-
).then((i) =>
|
|
3576
|
+
t.map((i) => (Hn(e, i), i().then((n) => n.default || n)))
|
|
3577
|
+
).then((i) => Hr(e, ...i));
|
|
3548
3578
|
}
|
|
3549
|
-
const
|
|
3550
|
-
function
|
|
3551
|
-
if (!
|
|
3552
|
-
return e in
|
|
3579
|
+
const $e = {};
|
|
3580
|
+
function Or(e) {
|
|
3581
|
+
if (!We(e))
|
|
3582
|
+
return e in $e ? $e[e] : Promise.resolve();
|
|
3553
3583
|
const t = Pn(e);
|
|
3554
|
-
return
|
|
3584
|
+
return $e[e] = Promise.all(
|
|
3555
3585
|
t.map(
|
|
3556
|
-
([r, i]) =>
|
|
3586
|
+
([r, i]) => On(r, i)
|
|
3557
3587
|
)
|
|
3558
3588
|
).then(() => {
|
|
3559
|
-
if (
|
|
3560
|
-
return
|
|
3561
|
-
delete
|
|
3562
|
-
}),
|
|
3589
|
+
if (We(e))
|
|
3590
|
+
return Or(e);
|
|
3591
|
+
delete $e[e];
|
|
3592
|
+
}), $e[e];
|
|
3563
3593
|
}
|
|
3564
|
-
var
|
|
3594
|
+
var Gt = Object.getOwnPropertySymbols, An = Object.prototype.hasOwnProperty, Bn = Object.prototype.propertyIsEnumerable, $n = (e, t) => {
|
|
3565
3595
|
var r = {};
|
|
3566
3596
|
for (var i in e)
|
|
3567
|
-
|
|
3568
|
-
if (e != null &&
|
|
3569
|
-
for (var i of
|
|
3597
|
+
An.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3598
|
+
if (e != null && Gt)
|
|
3599
|
+
for (var i of Gt(e))
|
|
3570
3600
|
t.indexOf(i) < 0 && Bn.call(e, i) && (r[i] = e[i]);
|
|
3571
3601
|
return r;
|
|
3572
3602
|
};
|
|
3573
|
-
const
|
|
3603
|
+
const Mn = {
|
|
3574
3604
|
number: {
|
|
3575
3605
|
scientific: { notation: "scientific" },
|
|
3576
3606
|
engineering: { notation: "engineering" },
|
|
@@ -3600,174 +3630,174 @@ const Cn = {
|
|
|
3600
3630
|
}
|
|
3601
3631
|
}
|
|
3602
3632
|
};
|
|
3603
|
-
function
|
|
3633
|
+
function Cn({ locale: e, id: t }) {
|
|
3604
3634
|
console.warn(
|
|
3605
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3635
|
+
`[svelte-i18n] The message "${t}" was not found in "${Ue(
|
|
3606
3636
|
e
|
|
3607
|
-
).join('", "')}".${
|
|
3637
|
+
).join('", "')}".${We(me()) ? `
|
|
3608
3638
|
|
|
3609
3639
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3610
3640
|
);
|
|
3611
3641
|
}
|
|
3612
|
-
const
|
|
3642
|
+
const Dn = {
|
|
3613
3643
|
fallbackLocale: null,
|
|
3614
3644
|
loadingDelay: 200,
|
|
3615
|
-
formats:
|
|
3645
|
+
formats: Mn,
|
|
3616
3646
|
warnOnMissingMessages: !0,
|
|
3617
3647
|
handleMissingMessage: void 0,
|
|
3618
3648
|
ignoreTag: !0
|
|
3619
|
-
},
|
|
3620
|
-
function
|
|
3621
|
-
return
|
|
3649
|
+
}, Me = Dn;
|
|
3650
|
+
function Oe() {
|
|
3651
|
+
return Me;
|
|
3622
3652
|
}
|
|
3623
|
-
function
|
|
3624
|
-
const t = e, { formats: r } = t, i =
|
|
3653
|
+
function Ln(e) {
|
|
3654
|
+
const t = e, { formats: r } = t, i = $n(t, ["formats"]);
|
|
3625
3655
|
let n = e.fallbackLocale;
|
|
3626
3656
|
if (e.initialLocale)
|
|
3627
3657
|
try {
|
|
3628
|
-
|
|
3658
|
+
wr.resolveLocale(e.initialLocale) && (n = e.initialLocale);
|
|
3629
3659
|
} catch (s) {
|
|
3630
3660
|
console.warn(
|
|
3631
3661
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3632
3662
|
);
|
|
3633
3663
|
}
|
|
3634
|
-
return i.warnOnMissingMessages && (delete i.warnOnMissingMessages, i.handleMissingMessage == null ? i.handleMissingMessage =
|
|
3664
|
+
return i.warnOnMissingMessages && (delete i.warnOnMissingMessages, i.handleMissingMessage == null ? i.handleMissingMessage = Cn : console.warn(
|
|
3635
3665
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3636
|
-
)), Object.assign(
|
|
3637
|
-
}
|
|
3638
|
-
const
|
|
3639
|
-
var
|
|
3640
|
-
for (var r in t
|
|
3641
|
-
|
|
3642
|
-
if (
|
|
3643
|
-
for (var r of
|
|
3644
|
-
|
|
3666
|
+
)), Object.assign(Me, i, { initialLocale: n }), r && ("number" in r && Object.assign(Me.formats.number, r.number), "date" in r && Object.assign(Me.formats.date, r.date), "time" in r && Object.assign(Me.formats.time, r.time)), be.set(n);
|
|
3667
|
+
}
|
|
3668
|
+
const ot = Re(!1);
|
|
3669
|
+
var In = Object.defineProperty, Nn = Object.defineProperties, Rn = Object.getOwnPropertyDescriptors, jt = Object.getOwnPropertySymbols, kn = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable, zt = (e, t, r) => t in e ? In(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fn = (e, t) => {
|
|
3670
|
+
for (var r in t)
|
|
3671
|
+
kn.call(t, r) && zt(e, r, t[r]);
|
|
3672
|
+
if (jt)
|
|
3673
|
+
for (var r of jt(t))
|
|
3674
|
+
Un.call(t, r) && zt(e, r, t[r]);
|
|
3645
3675
|
return e;
|
|
3646
|
-
},
|
|
3647
|
-
let
|
|
3648
|
-
const
|
|
3649
|
-
function
|
|
3676
|
+
}, Vn = (e, t) => Nn(e, Rn(t));
|
|
3677
|
+
let bt;
|
|
3678
|
+
const qe = Re(null);
|
|
3679
|
+
function Xt(e) {
|
|
3650
3680
|
return e.split("-").map((t, r, i) => i.slice(0, r + 1).join("-")).reverse();
|
|
3651
3681
|
}
|
|
3652
|
-
function
|
|
3653
|
-
const r =
|
|
3654
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3682
|
+
function Ue(e, t = Oe().fallbackLocale) {
|
|
3683
|
+
const r = Xt(e);
|
|
3684
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Xt(t)])] : r;
|
|
3655
3685
|
}
|
|
3656
|
-
function
|
|
3657
|
-
return
|
|
3686
|
+
function me() {
|
|
3687
|
+
return bt != null ? bt : void 0;
|
|
3658
3688
|
}
|
|
3659
|
-
|
|
3660
|
-
|
|
3689
|
+
qe.subscribe((e) => {
|
|
3690
|
+
bt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3661
3691
|
});
|
|
3662
|
-
const
|
|
3663
|
-
if (e &&
|
|
3664
|
-
const { loadingDelay: t } =
|
|
3692
|
+
const Gn = (e) => {
|
|
3693
|
+
if (e && Tn(e) && We(e)) {
|
|
3694
|
+
const { loadingDelay: t } = Oe();
|
|
3665
3695
|
let r;
|
|
3666
|
-
return typeof window != "undefined" &&
|
|
3667
|
-
() =>
|
|
3696
|
+
return typeof window != "undefined" && me() != null && t ? r = window.setTimeout(
|
|
3697
|
+
() => ot.set(!0),
|
|
3668
3698
|
t
|
|
3669
|
-
) :
|
|
3670
|
-
|
|
3699
|
+
) : ot.set(!0), Or(e).then(() => {
|
|
3700
|
+
qe.set(e);
|
|
3671
3701
|
}).finally(() => {
|
|
3672
|
-
clearTimeout(r),
|
|
3702
|
+
clearTimeout(r), ot.set(!1);
|
|
3673
3703
|
});
|
|
3674
3704
|
}
|
|
3675
|
-
return
|
|
3676
|
-
}, be =
|
|
3677
|
-
set:
|
|
3678
|
-
}),
|
|
3705
|
+
return qe.set(e);
|
|
3706
|
+
}, be = Vn(Fn({}, qe), {
|
|
3707
|
+
set: Gn
|
|
3708
|
+
}), Qe = (e) => {
|
|
3679
3709
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3680
3710
|
return (i) => {
|
|
3681
3711
|
const n = JSON.stringify(i);
|
|
3682
3712
|
return n in t ? t[n] : t[n] = e(i);
|
|
3683
3713
|
};
|
|
3684
3714
|
};
|
|
3685
|
-
var
|
|
3715
|
+
var jn = Object.defineProperty, Ye = Object.getOwnPropertySymbols, Ar = Object.prototype.hasOwnProperty, Br = Object.prototype.propertyIsEnumerable, Wt = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, St = (e, t) => {
|
|
3686
3716
|
for (var r in t || (t = {}))
|
|
3687
|
-
|
|
3688
|
-
if (
|
|
3689
|
-
for (var r of
|
|
3690
|
-
Br.call(t, r) &&
|
|
3717
|
+
Ar.call(t, r) && Wt(e, r, t[r]);
|
|
3718
|
+
if (Ye)
|
|
3719
|
+
for (var r of Ye(t))
|
|
3720
|
+
Br.call(t, r) && Wt(e, r, t[r]);
|
|
3691
3721
|
return e;
|
|
3692
3722
|
}, Be = (e, t) => {
|
|
3693
3723
|
var r = {};
|
|
3694
3724
|
for (var i in e)
|
|
3695
|
-
|
|
3696
|
-
if (e != null &&
|
|
3697
|
-
for (var i of
|
|
3725
|
+
Ar.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3726
|
+
if (e != null && Ye)
|
|
3727
|
+
for (var i of Ye(e))
|
|
3698
3728
|
t.indexOf(i) < 0 && Br.call(e, i) && (r[i] = e[i]);
|
|
3699
3729
|
return r;
|
|
3700
3730
|
};
|
|
3701
|
-
const
|
|
3702
|
-
const { formats: r } =
|
|
3731
|
+
const Ie = (e, t) => {
|
|
3732
|
+
const { formats: r } = Oe();
|
|
3703
3733
|
if (e in r && t in r[e])
|
|
3704
3734
|
return r[e][t];
|
|
3705
3735
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3706
|
-
},
|
|
3736
|
+
}, zn = Qe(
|
|
3707
3737
|
(e) => {
|
|
3708
3738
|
var t = e, { locale: r, format: i } = t, n = Be(t, ["locale", "format"]);
|
|
3709
3739
|
if (r == null)
|
|
3710
3740
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3711
|
-
return i && (n =
|
|
3741
|
+
return i && (n = Ie("number", i)), new Intl.NumberFormat(r, n);
|
|
3712
3742
|
}
|
|
3713
|
-
),
|
|
3743
|
+
), Xn = Qe(
|
|
3714
3744
|
(e) => {
|
|
3715
3745
|
var t = e, { locale: r, format: i } = t, n = Be(t, ["locale", "format"]);
|
|
3716
3746
|
if (r == null)
|
|
3717
3747
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3718
|
-
return i ? n =
|
|
3748
|
+
return i ? n = Ie("date", i) : Object.keys(n).length === 0 && (n = Ie("date", "short")), new Intl.DateTimeFormat(r, n);
|
|
3719
3749
|
}
|
|
3720
|
-
),
|
|
3750
|
+
), Wn = Qe(
|
|
3721
3751
|
(e) => {
|
|
3722
3752
|
var t = e, { locale: r, format: i } = t, n = Be(t, ["locale", "format"]);
|
|
3723
3753
|
if (r == null)
|
|
3724
3754
|
throw new Error(
|
|
3725
3755
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3726
3756
|
);
|
|
3727
|
-
return i ? n =
|
|
3757
|
+
return i ? n = Ie("time", i) : Object.keys(n).length === 0 && (n = Ie("time", "short")), new Intl.DateTimeFormat(r, n);
|
|
3728
3758
|
}
|
|
3729
|
-
),
|
|
3759
|
+
), qn = (e = {}) => {
|
|
3730
3760
|
var t = e, {
|
|
3731
|
-
locale: r =
|
|
3761
|
+
locale: r = me()
|
|
3732
3762
|
} = t, i = Be(t, [
|
|
3733
3763
|
"locale"
|
|
3734
3764
|
]);
|
|
3735
|
-
return
|
|
3736
|
-
},
|
|
3765
|
+
return zn(St({ locale: r }, i));
|
|
3766
|
+
}, Yn = (e = {}) => {
|
|
3737
3767
|
var t = e, {
|
|
3738
|
-
locale: r =
|
|
3768
|
+
locale: r = me()
|
|
3739
3769
|
} = t, i = Be(t, [
|
|
3740
3770
|
"locale"
|
|
3741
3771
|
]);
|
|
3742
|
-
return
|
|
3743
|
-
},
|
|
3772
|
+
return Xn(St({ locale: r }, i));
|
|
3773
|
+
}, Zn = (e = {}) => {
|
|
3744
3774
|
var t = e, {
|
|
3745
|
-
locale: r =
|
|
3775
|
+
locale: r = me()
|
|
3746
3776
|
} = t, i = Be(t, [
|
|
3747
3777
|
"locale"
|
|
3748
3778
|
]);
|
|
3749
|
-
return
|
|
3750
|
-
},
|
|
3779
|
+
return Wn(St({ locale: r }, i));
|
|
3780
|
+
}, Jn = Qe(
|
|
3751
3781
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3752
|
-
(e, t =
|
|
3753
|
-
ignoreTag:
|
|
3782
|
+
(e, t = me()) => new wr(e, t, Oe().formats, {
|
|
3783
|
+
ignoreTag: Oe().ignoreTag
|
|
3754
3784
|
})
|
|
3755
|
-
),
|
|
3785
|
+
), Qn = (e, t = {}) => {
|
|
3756
3786
|
var r, i, n, s;
|
|
3757
3787
|
let o = t;
|
|
3758
3788
|
typeof e == "object" && (o = e, e = o.id);
|
|
3759
3789
|
const {
|
|
3760
3790
|
values: l,
|
|
3761
|
-
locale: a =
|
|
3791
|
+
locale: a = me(),
|
|
3762
3792
|
default: u
|
|
3763
3793
|
} = o;
|
|
3764
3794
|
if (a == null)
|
|
3765
3795
|
throw new Error(
|
|
3766
3796
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3767
3797
|
);
|
|
3768
|
-
let h =
|
|
3798
|
+
let h = Sr(e, a);
|
|
3769
3799
|
if (!h)
|
|
3770
|
-
h = (s = (n = (i = (r =
|
|
3800
|
+
h = (s = (n = (i = (r = Oe()).handleMissingMessage) == null ? void 0 : i.call(r, { locale: a, id: e, defaultValue: u })) != null ? n : u) != null ? s : e;
|
|
3771
3801
|
else if (typeof h != "string")
|
|
3772
3802
|
return console.warn(
|
|
3773
3803
|
`[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.`
|
|
@@ -3776,7 +3806,7 @@ const Ne = (e, t) => {
|
|
|
3776
3806
|
return h;
|
|
3777
3807
|
let c = h;
|
|
3778
3808
|
try {
|
|
3779
|
-
c =
|
|
3809
|
+
c = Jn(h, a).format(l);
|
|
3780
3810
|
} catch (p) {
|
|
3781
3811
|
p instanceof Error && console.warn(
|
|
3782
3812
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3784,20 +3814,20 @@ const Ne = (e, t) => {
|
|
|
3784
3814
|
);
|
|
3785
3815
|
}
|
|
3786
3816
|
return c;
|
|
3787
|
-
},
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
function
|
|
3793
|
-
|
|
3794
|
-
}
|
|
3795
|
-
function
|
|
3796
|
-
|
|
3817
|
+
}, Kn = (e, t) => Zn(t).format(e), es = (e, t) => Yn(t).format(e), ts = (e, t) => qn(t).format(e), rs = (e, t = me()) => Sr(e, t), is = Ae([be, ke], () => Qn);
|
|
3818
|
+
Ae([be], () => Kn);
|
|
3819
|
+
Ae([be], () => es);
|
|
3820
|
+
Ae([be], () => ts);
|
|
3821
|
+
Ae([be, ke], () => rs);
|
|
3822
|
+
function qt(e, t) {
|
|
3823
|
+
Hr(e, t);
|
|
3824
|
+
}
|
|
3825
|
+
function ns(e) {
|
|
3826
|
+
Ln({
|
|
3797
3827
|
fallbackLocale: "en"
|
|
3798
3828
|
}), be.set(e);
|
|
3799
3829
|
}
|
|
3800
|
-
const
|
|
3830
|
+
const Yt = {
|
|
3801
3831
|
en: {
|
|
3802
3832
|
"verification.video.how-to": "How to verify yourself",
|
|
3803
3833
|
"verification.idenfy.referred-awaiting": "ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back",
|
|
@@ -3865,18 +3895,18 @@ if (typeof window != "undefined") {
|
|
|
3865
3895
|
}
|
|
3866
3896
|
};
|
|
3867
3897
|
};
|
|
3868
|
-
customElements.define = e(customElements.define), import("./CashierVideoModal-
|
|
3898
|
+
customElements.define = e(customElements.define), import("./CashierVideoModal-DO7SHLdt.js").then(({ default: t }) => {
|
|
3869
3899
|
!customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", t.element);
|
|
3870
3900
|
});
|
|
3871
3901
|
}
|
|
3872
|
-
let
|
|
3873
|
-
function
|
|
3902
|
+
let ss = Re(null);
|
|
3903
|
+
function os(e, t) {
|
|
3874
3904
|
if (e) {
|
|
3875
3905
|
const r = document.createElement("style");
|
|
3876
3906
|
r.innerHTML = t, e.appendChild(r);
|
|
3877
3907
|
}
|
|
3878
3908
|
}
|
|
3879
|
-
function
|
|
3909
|
+
function as(e, t) {
|
|
3880
3910
|
const r = new URL(t);
|
|
3881
3911
|
fetch(r.href).then((i) => i.text()).then((i) => {
|
|
3882
3912
|
const n = document.createElement("style");
|
|
@@ -3885,7 +3915,7 @@ function us(e, t) {
|
|
|
3885
3915
|
console.error("There was an error while trying to load client styling from URL", i);
|
|
3886
3916
|
});
|
|
3887
3917
|
}
|
|
3888
|
-
function
|
|
3918
|
+
function us(e, t, r) {
|
|
3889
3919
|
if (window.emMessageBus) {
|
|
3890
3920
|
const i = document.createElement("style");
|
|
3891
3921
|
window.emMessageBus.subscribe(t, (n) => {
|
|
@@ -3893,36 +3923,36 @@ function ls(e, t, r) {
|
|
|
3893
3923
|
});
|
|
3894
3924
|
}
|
|
3895
3925
|
}
|
|
3896
|
-
var
|
|
3926
|
+
var $r = { exports: {} };
|
|
3897
3927
|
(function(e, t) {
|
|
3898
3928
|
(function(r, i) {
|
|
3899
3929
|
e.exports = i();
|
|
3900
|
-
})(
|
|
3901
|
-
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", o = "second", l = "minute", a = "hour", u = "day", h = "week", c = "month", p = "quarter",
|
|
3902
|
-
var g = ["th", "st", "nd", "rd"], d =
|
|
3903
|
-
return "[" +
|
|
3904
|
-
} },
|
|
3905
|
-
var
|
|
3906
|
-
return !
|
|
3907
|
-
}, X = { s:
|
|
3908
|
-
var g = -
|
|
3909
|
-
return (g <= 0 ? "+" : "-") +
|
|
3910
|
-
}, m: function
|
|
3930
|
+
})(sr, function() {
|
|
3931
|
+
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", o = "second", l = "minute", a = "hour", u = "day", h = "week", c = "month", p = "quarter", x = "year", S = "date", b = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, G = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, R = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(_) {
|
|
3932
|
+
var g = ["th", "st", "nd", "rd"], d = _ % 100;
|
|
3933
|
+
return "[" + _ + (g[(d - 20) % 10] || g[d] || g[0]) + "]";
|
|
3934
|
+
} }, B = function(_, g, d) {
|
|
3935
|
+
var v = String(_);
|
|
3936
|
+
return !v || v.length >= g ? _ : "" + Array(g + 1 - v.length).join(d) + _;
|
|
3937
|
+
}, X = { s: B, z: function(_) {
|
|
3938
|
+
var g = -_.utcOffset(), d = Math.abs(g), v = Math.floor(d / 60), m = d % 60;
|
|
3939
|
+
return (g <= 0 ? "+" : "-") + B(v, 2, "0") + ":" + B(m, 2, "0");
|
|
3940
|
+
}, m: function _(g, d) {
|
|
3911
3941
|
if (g.date() < d.date())
|
|
3912
|
-
return -
|
|
3913
|
-
var
|
|
3914
|
-
return +(-(
|
|
3915
|
-
}, a: function(
|
|
3916
|
-
return
|
|
3917
|
-
}, p: function(
|
|
3918
|
-
return { M: c, y:
|
|
3919
|
-
}, u: function(
|
|
3920
|
-
return
|
|
3942
|
+
return -_(d, g);
|
|
3943
|
+
var v = 12 * (d.year() - g.year()) + (d.month() - g.month()), m = g.clone().add(v, c), E = d - m < 0, w = g.clone().add(v + (E ? -1 : 1), c);
|
|
3944
|
+
return +(-(v + (d - m) / (E ? m - w : w - m)) || 0);
|
|
3945
|
+
}, a: function(_) {
|
|
3946
|
+
return _ < 0 ? Math.ceil(_) || 0 : Math.floor(_);
|
|
3947
|
+
}, p: function(_) {
|
|
3948
|
+
return { M: c, y: x, w: h, d: u, D: S, h: a, m: l, s: o, ms: s, Q: p }[_] || String(_ || "").toLowerCase().replace(/s$/, "");
|
|
3949
|
+
}, u: function(_) {
|
|
3950
|
+
return _ === void 0;
|
|
3921
3951
|
} }, I = "en", F = {};
|
|
3922
3952
|
F[I] = R;
|
|
3923
|
-
var q = "$isDayjsObject",
|
|
3924
|
-
return
|
|
3925
|
-
}, Z = function
|
|
3953
|
+
var q = "$isDayjsObject", ae = function(_) {
|
|
3954
|
+
return _ instanceof k || !(!_ || !_[q]);
|
|
3955
|
+
}, Z = function _(g, d, v) {
|
|
3926
3956
|
var m;
|
|
3927
3957
|
if (!g)
|
|
3928
3958
|
return I;
|
|
@@ -3931,40 +3961,40 @@ var Mr = { exports: {} };
|
|
|
3931
3961
|
F[E] && (m = E), d && (F[E] = d, m = E);
|
|
3932
3962
|
var w = g.split("-");
|
|
3933
3963
|
if (!m && w.length > 1)
|
|
3934
|
-
return
|
|
3964
|
+
return _(w[0]);
|
|
3935
3965
|
} else {
|
|
3936
3966
|
var $ = g.name;
|
|
3937
3967
|
F[$] = g, m = $;
|
|
3938
3968
|
}
|
|
3939
|
-
return !
|
|
3940
|
-
},
|
|
3941
|
-
if (
|
|
3942
|
-
return
|
|
3969
|
+
return !v && m && (I = m), m || !v && I;
|
|
3970
|
+
}, C = function(_, g) {
|
|
3971
|
+
if (ae(_))
|
|
3972
|
+
return _.clone();
|
|
3943
3973
|
var d = typeof g == "object" ? g : {};
|
|
3944
|
-
return d.date =
|
|
3945
|
-
},
|
|
3946
|
-
|
|
3947
|
-
return
|
|
3974
|
+
return d.date = _, d.args = arguments, new k(d);
|
|
3975
|
+
}, O = X;
|
|
3976
|
+
O.l = Z, O.i = ae, O.w = function(_, g) {
|
|
3977
|
+
return C(_, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
|
|
3948
3978
|
};
|
|
3949
3979
|
var k = function() {
|
|
3950
|
-
function
|
|
3980
|
+
function _(d) {
|
|
3951
3981
|
this.$L = Z(d.locale, null, !0), this.parse(d), this.$x = this.$x || d.x || {}, this[q] = !0;
|
|
3952
3982
|
}
|
|
3953
|
-
var g =
|
|
3983
|
+
var g = _.prototype;
|
|
3954
3984
|
return g.parse = function(d) {
|
|
3955
|
-
this.$d = function(
|
|
3956
|
-
var m =
|
|
3985
|
+
this.$d = function(v) {
|
|
3986
|
+
var m = v.date, E = v.utc;
|
|
3957
3987
|
if (m === null)
|
|
3958
3988
|
return /* @__PURE__ */ new Date(NaN);
|
|
3959
|
-
if (
|
|
3989
|
+
if (O.u(m))
|
|
3960
3990
|
return /* @__PURE__ */ new Date();
|
|
3961
3991
|
if (m instanceof Date)
|
|
3962
3992
|
return new Date(m);
|
|
3963
3993
|
if (typeof m == "string" && !/Z$/i.test(m)) {
|
|
3964
|
-
var w = m.match(
|
|
3994
|
+
var w = m.match(M);
|
|
3965
3995
|
if (w) {
|
|
3966
|
-
var $ = w[2] - 1 || 0,
|
|
3967
|
-
return E ? new Date(Date.UTC(w[1], $, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0,
|
|
3996
|
+
var $ = w[2] - 1 || 0, L = (w[7] || "0").substring(0, 3);
|
|
3997
|
+
return E ? new Date(Date.UTC(w[1], $, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, L)) : new Date(w[1], $, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, L);
|
|
3968
3998
|
}
|
|
3969
3999
|
}
|
|
3970
4000
|
return new Date(m);
|
|
@@ -3973,143 +4003,143 @@ var Mr = { exports: {} };
|
|
|
3973
4003
|
var d = this.$d;
|
|
3974
4004
|
this.$y = d.getFullYear(), this.$M = d.getMonth(), this.$D = d.getDate(), this.$W = d.getDay(), this.$H = d.getHours(), this.$m = d.getMinutes(), this.$s = d.getSeconds(), this.$ms = d.getMilliseconds();
|
|
3975
4005
|
}, g.$utils = function() {
|
|
3976
|
-
return
|
|
4006
|
+
return O;
|
|
3977
4007
|
}, g.isValid = function() {
|
|
3978
|
-
return this.$d.toString() !==
|
|
3979
|
-
}, g.isSame = function(d,
|
|
3980
|
-
var m =
|
|
3981
|
-
return this.startOf(
|
|
3982
|
-
}, g.isAfter = function(d,
|
|
3983
|
-
return
|
|
3984
|
-
}, g.isBefore = function(d,
|
|
3985
|
-
return this.endOf(
|
|
3986
|
-
}, g.$g = function(d,
|
|
3987
|
-
return
|
|
4008
|
+
return this.$d.toString() !== b;
|
|
4009
|
+
}, g.isSame = function(d, v) {
|
|
4010
|
+
var m = C(d);
|
|
4011
|
+
return this.startOf(v) <= m && m <= this.endOf(v);
|
|
4012
|
+
}, g.isAfter = function(d, v) {
|
|
4013
|
+
return C(d) < this.startOf(v);
|
|
4014
|
+
}, g.isBefore = function(d, v) {
|
|
4015
|
+
return this.endOf(v) < C(d);
|
|
4016
|
+
}, g.$g = function(d, v, m) {
|
|
4017
|
+
return O.u(d) ? this[v] : this.set(m, d);
|
|
3988
4018
|
}, g.unix = function() {
|
|
3989
4019
|
return Math.floor(this.valueOf() / 1e3);
|
|
3990
4020
|
}, g.valueOf = function() {
|
|
3991
4021
|
return this.$d.getTime();
|
|
3992
|
-
}, g.startOf = function(d,
|
|
3993
|
-
var m = this, E = !!
|
|
3994
|
-
var ne =
|
|
4022
|
+
}, g.startOf = function(d, v) {
|
|
4023
|
+
var m = this, E = !!O.u(v) || v, w = O.p(d), $ = function(ue, j) {
|
|
4024
|
+
var ne = O.w(m.$u ? Date.UTC(m.$y, j, ue) : new Date(m.$y, j, ue), m);
|
|
3995
4025
|
return E ? ne : ne.endOf(u);
|
|
3996
|
-
},
|
|
3997
|
-
return
|
|
3998
|
-
}, N = this.$W, V = this.$M, W = this.$D,
|
|
4026
|
+
}, L = function(ue, j) {
|
|
4027
|
+
return O.w(m.toDate()[ue].apply(m.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(j)), m);
|
|
4028
|
+
}, N = this.$W, V = this.$M, W = this.$D, fe = "set" + (this.$u ? "UTC" : "");
|
|
3999
4029
|
switch (w) {
|
|
4000
|
-
case
|
|
4030
|
+
case x:
|
|
4001
4031
|
return E ? $(1, 0) : $(31, 11);
|
|
4002
4032
|
case c:
|
|
4003
4033
|
return E ? $(1, V) : $(0, V + 1);
|
|
4004
4034
|
case h:
|
|
4005
|
-
var ie = this.$locale().weekStart || 0,
|
|
4006
|
-
return $(E ? W -
|
|
4035
|
+
var ie = this.$locale().weekStart || 0, pe = (N < ie ? N + 7 : N) - ie;
|
|
4036
|
+
return $(E ? W - pe : W + (6 - pe), V);
|
|
4007
4037
|
case u:
|
|
4008
4038
|
case S:
|
|
4009
|
-
return
|
|
4039
|
+
return L(fe + "Hours", 0);
|
|
4010
4040
|
case a:
|
|
4011
|
-
return
|
|
4041
|
+
return L(fe + "Minutes", 1);
|
|
4012
4042
|
case l:
|
|
4013
|
-
return
|
|
4043
|
+
return L(fe + "Seconds", 2);
|
|
4014
4044
|
case o:
|
|
4015
|
-
return
|
|
4045
|
+
return L(fe + "Milliseconds", 3);
|
|
4016
4046
|
default:
|
|
4017
4047
|
return this.clone();
|
|
4018
4048
|
}
|
|
4019
4049
|
}, g.endOf = function(d) {
|
|
4020
4050
|
return this.startOf(d, !1);
|
|
4021
|
-
}, g.$set = function(d,
|
|
4022
|
-
var m, E =
|
|
4023
|
-
if (E === c || E ===
|
|
4051
|
+
}, g.$set = function(d, v) {
|
|
4052
|
+
var m, E = O.p(d), w = "set" + (this.$u ? "UTC" : ""), $ = (m = {}, m[u] = w + "Date", m[S] = w + "Date", m[c] = w + "Month", m[x] = w + "FullYear", m[a] = w + "Hours", m[l] = w + "Minutes", m[o] = w + "Seconds", m[s] = w + "Milliseconds", m)[E], L = E === u ? this.$D + (v - this.$W) : v;
|
|
4053
|
+
if (E === c || E === x) {
|
|
4024
4054
|
var N = this.clone().set(S, 1);
|
|
4025
|
-
N.$d[$](
|
|
4055
|
+
N.$d[$](L), N.init(), this.$d = N.set(S, Math.min(this.$D, N.daysInMonth())).$d;
|
|
4026
4056
|
} else
|
|
4027
|
-
$ && this.$d[$](
|
|
4057
|
+
$ && this.$d[$](L);
|
|
4028
4058
|
return this.init(), this;
|
|
4029
|
-
}, g.set = function(d,
|
|
4030
|
-
return this.clone().$set(d,
|
|
4059
|
+
}, g.set = function(d, v) {
|
|
4060
|
+
return this.clone().$set(d, v);
|
|
4031
4061
|
}, g.get = function(d) {
|
|
4032
|
-
return this[
|
|
4033
|
-
}, g.add = function(d,
|
|
4062
|
+
return this[O.p(d)]();
|
|
4063
|
+
}, g.add = function(d, v) {
|
|
4034
4064
|
var m, E = this;
|
|
4035
4065
|
d = Number(d);
|
|
4036
|
-
var w =
|
|
4037
|
-
var W =
|
|
4038
|
-
return
|
|
4066
|
+
var w = O.p(v), $ = function(V) {
|
|
4067
|
+
var W = C(E);
|
|
4068
|
+
return O.w(W.date(W.date() + Math.round(V * d)), E);
|
|
4039
4069
|
};
|
|
4040
4070
|
if (w === c)
|
|
4041
4071
|
return this.set(c, this.$M + d);
|
|
4042
|
-
if (w ===
|
|
4043
|
-
return this.set(
|
|
4072
|
+
if (w === x)
|
|
4073
|
+
return this.set(x, this.$y + d);
|
|
4044
4074
|
if (w === u)
|
|
4045
4075
|
return $(1);
|
|
4046
4076
|
if (w === h)
|
|
4047
4077
|
return $(7);
|
|
4048
|
-
var
|
|
4049
|
-
return
|
|
4050
|
-
}, g.subtract = function(d,
|
|
4051
|
-
return this.add(-1 * d,
|
|
4078
|
+
var L = (m = {}, m[l] = i, m[a] = n, m[o] = r, m)[w] || 1, N = this.$d.getTime() + d * L;
|
|
4079
|
+
return O.w(N, this);
|
|
4080
|
+
}, g.subtract = function(d, v) {
|
|
4081
|
+
return this.add(-1 * d, v);
|
|
4052
4082
|
}, g.format = function(d) {
|
|
4053
|
-
var
|
|
4083
|
+
var v = this, m = this.$locale();
|
|
4054
4084
|
if (!this.isValid())
|
|
4055
|
-
return m.invalidDate ||
|
|
4056
|
-
var E = d || "YYYY-MM-DDTHH:mm:ssZ", w =
|
|
4057
|
-
return j && (j[ne] || j(
|
|
4058
|
-
},
|
|
4059
|
-
return
|
|
4060
|
-
},
|
|
4061
|
-
var
|
|
4062
|
-
return
|
|
4085
|
+
return m.invalidDate || b;
|
|
4086
|
+
var E = d || "YYYY-MM-DDTHH:mm:ssZ", w = O.z(this), $ = this.$H, L = this.$m, N = this.$M, V = m.weekdays, W = m.months, fe = m.meridiem, ie = function(j, ne, le, ve) {
|
|
4087
|
+
return j && (j[ne] || j(v, E)) || le[ne].slice(0, ve);
|
|
4088
|
+
}, pe = function(j) {
|
|
4089
|
+
return O.s($ % 12 || 12, j, "0");
|
|
4090
|
+
}, ue = fe || function(j, ne, le) {
|
|
4091
|
+
var ve = j < 12 ? "AM" : "PM";
|
|
4092
|
+
return le ? ve.toLowerCase() : ve;
|
|
4063
4093
|
};
|
|
4064
4094
|
return E.replace(G, function(j, ne) {
|
|
4065
|
-
return ne || function(
|
|
4066
|
-
switch (
|
|
4095
|
+
return ne || function(le) {
|
|
4096
|
+
switch (le) {
|
|
4067
4097
|
case "YY":
|
|
4068
|
-
return String(
|
|
4098
|
+
return String(v.$y).slice(-2);
|
|
4069
4099
|
case "YYYY":
|
|
4070
|
-
return
|
|
4100
|
+
return O.s(v.$y, 4, "0");
|
|
4071
4101
|
case "M":
|
|
4072
4102
|
return N + 1;
|
|
4073
4103
|
case "MM":
|
|
4074
|
-
return
|
|
4104
|
+
return O.s(N + 1, 2, "0");
|
|
4075
4105
|
case "MMM":
|
|
4076
4106
|
return ie(m.monthsShort, N, W, 3);
|
|
4077
4107
|
case "MMMM":
|
|
4078
4108
|
return ie(W, N);
|
|
4079
4109
|
case "D":
|
|
4080
|
-
return
|
|
4110
|
+
return v.$D;
|
|
4081
4111
|
case "DD":
|
|
4082
|
-
return
|
|
4112
|
+
return O.s(v.$D, 2, "0");
|
|
4083
4113
|
case "d":
|
|
4084
|
-
return String(
|
|
4114
|
+
return String(v.$W);
|
|
4085
4115
|
case "dd":
|
|
4086
|
-
return ie(m.weekdaysMin,
|
|
4116
|
+
return ie(m.weekdaysMin, v.$W, V, 2);
|
|
4087
4117
|
case "ddd":
|
|
4088
|
-
return ie(m.weekdaysShort,
|
|
4118
|
+
return ie(m.weekdaysShort, v.$W, V, 3);
|
|
4089
4119
|
case "dddd":
|
|
4090
|
-
return V[
|
|
4120
|
+
return V[v.$W];
|
|
4091
4121
|
case "H":
|
|
4092
4122
|
return String($);
|
|
4093
4123
|
case "HH":
|
|
4094
|
-
return
|
|
4124
|
+
return O.s($, 2, "0");
|
|
4095
4125
|
case "h":
|
|
4096
|
-
return
|
|
4126
|
+
return pe(1);
|
|
4097
4127
|
case "hh":
|
|
4098
|
-
return
|
|
4128
|
+
return pe(2);
|
|
4099
4129
|
case "a":
|
|
4100
|
-
return
|
|
4130
|
+
return ue($, L, !0);
|
|
4101
4131
|
case "A":
|
|
4102
|
-
return
|
|
4132
|
+
return ue($, L, !1);
|
|
4103
4133
|
case "m":
|
|
4104
|
-
return String(
|
|
4134
|
+
return String(L);
|
|
4105
4135
|
case "mm":
|
|
4106
|
-
return
|
|
4136
|
+
return O.s(L, 2, "0");
|
|
4107
4137
|
case "s":
|
|
4108
|
-
return String(
|
|
4138
|
+
return String(v.$s);
|
|
4109
4139
|
case "ss":
|
|
4110
|
-
return
|
|
4140
|
+
return O.s(v.$s, 2, "0");
|
|
4111
4141
|
case "SSS":
|
|
4112
|
-
return
|
|
4142
|
+
return O.s(v.$ms, 3, "0");
|
|
4113
4143
|
case "Z":
|
|
4114
4144
|
return w;
|
|
4115
4145
|
}
|
|
@@ -4118,12 +4148,12 @@ var Mr = { exports: {} };
|
|
|
4118
4148
|
});
|
|
4119
4149
|
}, g.utcOffset = function() {
|
|
4120
4150
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4121
|
-
}, g.diff = function(d,
|
|
4122
|
-
var E, w = this, $ =
|
|
4123
|
-
return
|
|
4151
|
+
}, g.diff = function(d, v, m) {
|
|
4152
|
+
var E, w = this, $ = O.p(v), L = C(d), N = (L.utcOffset() - this.utcOffset()) * i, V = this - L, W = function() {
|
|
4153
|
+
return O.m(w, L);
|
|
4124
4154
|
};
|
|
4125
4155
|
switch ($) {
|
|
4126
|
-
case
|
|
4156
|
+
case x:
|
|
4127
4157
|
E = W() / 12;
|
|
4128
4158
|
break;
|
|
4129
4159
|
case c:
|
|
@@ -4150,18 +4180,18 @@ var Mr = { exports: {} };
|
|
|
4150
4180
|
default:
|
|
4151
4181
|
E = V;
|
|
4152
4182
|
}
|
|
4153
|
-
return m ? E :
|
|
4183
|
+
return m ? E : O.a(E);
|
|
4154
4184
|
}, g.daysInMonth = function() {
|
|
4155
4185
|
return this.endOf(c).$D;
|
|
4156
4186
|
}, g.$locale = function() {
|
|
4157
4187
|
return F[this.$L];
|
|
4158
|
-
}, g.locale = function(d,
|
|
4188
|
+
}, g.locale = function(d, v) {
|
|
4159
4189
|
if (!d)
|
|
4160
4190
|
return this.$L;
|
|
4161
|
-
var m = this.clone(), E = Z(d,
|
|
4191
|
+
var m = this.clone(), E = Z(d, v, !0);
|
|
4162
4192
|
return E && (m.$L = E), m;
|
|
4163
4193
|
}, g.clone = function() {
|
|
4164
|
-
return
|
|
4194
|
+
return O.w(this.$d, this);
|
|
4165
4195
|
}, g.toDate = function() {
|
|
4166
4196
|
return new Date(this.valueOf());
|
|
4167
4197
|
}, g.toJSON = function() {
|
|
@@ -4170,81 +4200,81 @@ var Mr = { exports: {} };
|
|
|
4170
4200
|
return this.$d.toISOString();
|
|
4171
4201
|
}, g.toString = function() {
|
|
4172
4202
|
return this.$d.toUTCString();
|
|
4173
|
-
},
|
|
4174
|
-
}(),
|
|
4175
|
-
return
|
|
4176
|
-
|
|
4177
|
-
return this.$g(g,
|
|
4203
|
+
}, _;
|
|
4204
|
+
}(), he = k.prototype;
|
|
4205
|
+
return C.prototype = he, [["$ms", s], ["$s", o], ["$m", l], ["$H", a], ["$W", u], ["$M", c], ["$y", x], ["$D", S]].forEach(function(_) {
|
|
4206
|
+
he[_[1]] = function(g) {
|
|
4207
|
+
return this.$g(g, _[0], _[1]);
|
|
4178
4208
|
};
|
|
4179
|
-
}),
|
|
4180
|
-
return
|
|
4181
|
-
},
|
|
4182
|
-
return
|
|
4183
|
-
},
|
|
4209
|
+
}), C.extend = function(_, g) {
|
|
4210
|
+
return _.$i || (_(g, k, C), _.$i = !0), C;
|
|
4211
|
+
}, C.locale = Z, C.isDayjs = ae, C.unix = function(_) {
|
|
4212
|
+
return C(1e3 * _);
|
|
4213
|
+
}, C.en = F[I], C.Ls = F, C.p = {}, C;
|
|
4184
4214
|
});
|
|
4185
|
-
})(
|
|
4186
|
-
var
|
|
4187
|
-
const
|
|
4188
|
-
var
|
|
4215
|
+
})($r);
|
|
4216
|
+
var ls = $r.exports;
|
|
4217
|
+
const Zt = /* @__PURE__ */ _t(ls);
|
|
4218
|
+
var Mr = { exports: {} };
|
|
4189
4219
|
(function(e, t) {
|
|
4190
4220
|
(function(r, i) {
|
|
4191
4221
|
e.exports = i();
|
|
4192
|
-
})(
|
|
4222
|
+
})(sr, function() {
|
|
4193
4223
|
var r = "minute", i = /[+-]\d\d(?::?\d\d)?/g, n = /([+-]|\d\d)/g;
|
|
4194
4224
|
return function(s, o, l) {
|
|
4195
4225
|
var a = o.prototype;
|
|
4196
|
-
l.utc = function(
|
|
4197
|
-
var
|
|
4198
|
-
return new o(
|
|
4199
|
-
}, a.utc = function(
|
|
4200
|
-
var
|
|
4201
|
-
return
|
|
4226
|
+
l.utc = function(b) {
|
|
4227
|
+
var M = { date: b, utc: !0, args: arguments };
|
|
4228
|
+
return new o(M);
|
|
4229
|
+
}, a.utc = function(b) {
|
|
4230
|
+
var M = l(this.toDate(), { locale: this.$L, utc: !0 });
|
|
4231
|
+
return b ? M.add(this.utcOffset(), r) : M;
|
|
4202
4232
|
}, a.local = function() {
|
|
4203
4233
|
return l(this.toDate(), { locale: this.$L, utc: !1 });
|
|
4204
4234
|
};
|
|
4205
4235
|
var u = a.parse;
|
|
4206
|
-
a.parse = function(
|
|
4207
|
-
|
|
4236
|
+
a.parse = function(b) {
|
|
4237
|
+
b.utc && (this.$u = !0), this.$utils().u(b.$offset) || (this.$offset = b.$offset), u.call(this, b);
|
|
4208
4238
|
};
|
|
4209
4239
|
var h = a.init;
|
|
4210
4240
|
a.init = function() {
|
|
4211
4241
|
if (this.$u) {
|
|
4212
|
-
var
|
|
4213
|
-
this.$y =
|
|
4242
|
+
var b = this.$d;
|
|
4243
|
+
this.$y = b.getUTCFullYear(), this.$M = b.getUTCMonth(), this.$D = b.getUTCDate(), this.$W = b.getUTCDay(), this.$H = b.getUTCHours(), this.$m = b.getUTCMinutes(), this.$s = b.getUTCSeconds(), this.$ms = b.getUTCMilliseconds();
|
|
4214
4244
|
} else
|
|
4215
4245
|
h.call(this);
|
|
4216
4246
|
};
|
|
4217
4247
|
var c = a.utcOffset;
|
|
4218
|
-
a.utcOffset = function(
|
|
4248
|
+
a.utcOffset = function(b, M) {
|
|
4219
4249
|
var G = this.$utils().u;
|
|
4220
|
-
if (G(
|
|
4250
|
+
if (G(b))
|
|
4221
4251
|
return this.$u ? 0 : G(this.$offset) ? c.call(this) : this.$offset;
|
|
4222
|
-
if (typeof
|
|
4252
|
+
if (typeof b == "string" && (b = function(I) {
|
|
4223
4253
|
I === void 0 && (I = "");
|
|
4224
4254
|
var F = I.match(i);
|
|
4225
4255
|
if (!F)
|
|
4226
4256
|
return null;
|
|
4227
|
-
var q = ("" + F[0]).match(n) || ["-", 0, 0],
|
|
4228
|
-
return Z === 0 ? 0 :
|
|
4229
|
-
}(
|
|
4257
|
+
var q = ("" + F[0]).match(n) || ["-", 0, 0], ae = q[0], Z = 60 * +q[1] + +q[2];
|
|
4258
|
+
return Z === 0 ? 0 : ae === "+" ? Z : -Z;
|
|
4259
|
+
}(b), b === null))
|
|
4230
4260
|
return this;
|
|
4231
|
-
var R = Math.abs(
|
|
4232
|
-
if (
|
|
4233
|
-
return
|
|
4234
|
-
if (
|
|
4261
|
+
var R = Math.abs(b) <= 16 ? 60 * b : b, B = this;
|
|
4262
|
+
if (M)
|
|
4263
|
+
return B.$offset = R, B.$u = b === 0, B;
|
|
4264
|
+
if (b !== 0) {
|
|
4235
4265
|
var X = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
4236
|
-
(
|
|
4266
|
+
(B = this.local().add(R + X, r)).$offset = R, B.$x.$localOffset = X;
|
|
4237
4267
|
} else
|
|
4238
|
-
|
|
4239
|
-
return
|
|
4268
|
+
B = this.utc();
|
|
4269
|
+
return B;
|
|
4240
4270
|
};
|
|
4241
4271
|
var p = a.format;
|
|
4242
|
-
a.format = function(
|
|
4243
|
-
var
|
|
4244
|
-
return p.call(this,
|
|
4272
|
+
a.format = function(b) {
|
|
4273
|
+
var M = b || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
4274
|
+
return p.call(this, M);
|
|
4245
4275
|
}, a.valueOf = function() {
|
|
4246
|
-
var
|
|
4247
|
-
return this.$d.valueOf() - 6e4 *
|
|
4276
|
+
var b = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
4277
|
+
return this.$d.valueOf() - 6e4 * b;
|
|
4248
4278
|
}, a.isUTC = function() {
|
|
4249
4279
|
return !!this.$u;
|
|
4250
4280
|
}, a.toISOString = function() {
|
|
@@ -4252,46 +4282,46 @@ var Cr = { exports: {} };
|
|
|
4252
4282
|
}, a.toString = function() {
|
|
4253
4283
|
return this.toDate().toUTCString();
|
|
4254
4284
|
};
|
|
4255
|
-
var
|
|
4256
|
-
a.toDate = function(
|
|
4257
|
-
return
|
|
4285
|
+
var x = a.toDate;
|
|
4286
|
+
a.toDate = function(b) {
|
|
4287
|
+
return b === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : x.call(this);
|
|
4258
4288
|
};
|
|
4259
4289
|
var S = a.diff;
|
|
4260
|
-
a.diff = function(
|
|
4261
|
-
if (
|
|
4262
|
-
return S.call(this,
|
|
4263
|
-
var R = this.local(),
|
|
4264
|
-
return S.call(R,
|
|
4290
|
+
a.diff = function(b, M, G) {
|
|
4291
|
+
if (b && this.$u === b.$u)
|
|
4292
|
+
return S.call(this, b, M, G);
|
|
4293
|
+
var R = this.local(), B = l(b).local();
|
|
4294
|
+
return S.call(R, B, M, G);
|
|
4265
4295
|
};
|
|
4266
4296
|
};
|
|
4267
4297
|
});
|
|
4268
|
-
})(
|
|
4269
|
-
var
|
|
4270
|
-
const
|
|
4271
|
-
function
|
|
4272
|
-
|
|
4298
|
+
})(Mr);
|
|
4299
|
+
var hs = Mr.exports;
|
|
4300
|
+
const fs = /* @__PURE__ */ _t(hs);
|
|
4301
|
+
function cs(e) {
|
|
4302
|
+
zr(e, "svelte-3ui5us", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative;box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}");
|
|
4273
4303
|
}
|
|
4274
|
-
function
|
|
4304
|
+
function Jt(e, t, r) {
|
|
4275
4305
|
const i = e.slice();
|
|
4276
4306
|
return i[54] = t[r], i[56] = r, i;
|
|
4277
4307
|
}
|
|
4278
|
-
function
|
|
4279
|
-
let t, r, i, n, s =
|
|
4308
|
+
function ds(e) {
|
|
4309
|
+
let t, r, i, n, s = Ct(
|
|
4280
4310
|
/*displayMessages*/
|
|
4281
4311
|
e[4]
|
|
4282
4312
|
), o = [];
|
|
4283
4313
|
for (let a = 0; a < s.length; a += 1)
|
|
4284
|
-
o[a] =
|
|
4314
|
+
o[a] = Kt(Jt(e, s, a));
|
|
4285
4315
|
let l = (
|
|
4286
4316
|
/*videoExists*/
|
|
4287
|
-
e[7] &&
|
|
4317
|
+
e[7] && er(e)
|
|
4288
4318
|
);
|
|
4289
4319
|
return {
|
|
4290
4320
|
c() {
|
|
4291
4321
|
t = Y("div");
|
|
4292
4322
|
for (let a = 0; a < o.length; a += 1)
|
|
4293
4323
|
o[a].c();
|
|
4294
|
-
r =
|
|
4324
|
+
r = Ee(), l && l.c(), i = Ee(), n = Y("cashier-video-modal"), re(t, "class", "CashierVerificationsWrapper"), K(
|
|
4295
4325
|
n,
|
|
4296
4326
|
"clientstylingurl",
|
|
4297
4327
|
/*clientstylingurl*/
|
|
@@ -4314,29 +4344,29 @@ function ms(e) {
|
|
|
4314
4344
|
);
|
|
4315
4345
|
},
|
|
4316
4346
|
m(a, u) {
|
|
4317
|
-
|
|
4347
|
+
oe(a, t, u);
|
|
4318
4348
|
for (let h = 0; h < o.length; h += 1)
|
|
4319
4349
|
o[h] && o[h].m(t, null);
|
|
4320
|
-
|
|
4350
|
+
oe(a, r, u), l && l.m(a, u), oe(a, i, u), oe(a, n, u);
|
|
4321
4351
|
},
|
|
4322
4352
|
p(a, u) {
|
|
4323
4353
|
if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
|
|
4324
4354
|
2096) {
|
|
4325
|
-
s =
|
|
4355
|
+
s = Ct(
|
|
4326
4356
|
/*displayMessages*/
|
|
4327
4357
|
a[4]
|
|
4328
4358
|
);
|
|
4329
4359
|
let h;
|
|
4330
4360
|
for (h = 0; h < s.length; h += 1) {
|
|
4331
|
-
const c =
|
|
4332
|
-
o[h] ? o[h].p(c, u) : (o[h] =
|
|
4361
|
+
const c = Jt(a, s, h);
|
|
4362
|
+
o[h] ? o[h].p(c, u) : (o[h] = Kt(c), o[h].c(), o[h].m(t, null));
|
|
4333
4363
|
}
|
|
4334
4364
|
for (; h < o.length; h += 1)
|
|
4335
4365
|
o[h].d(1);
|
|
4336
4366
|
o.length = s.length;
|
|
4337
4367
|
}
|
|
4338
4368
|
/*videoExists*/
|
|
4339
|
-
a[7] ? l ? l.p(a, u) : (l =
|
|
4369
|
+
a[7] ? l ? l.p(a, u) : (l = er(a), l.c(), l.m(i.parentNode, i)) : l && (l.d(1), l = null), u[0] & /*clientstylingurl*/
|
|
4340
4370
|
2 && K(
|
|
4341
4371
|
n,
|
|
4342
4372
|
"clientstylingurl",
|
|
@@ -4363,11 +4393,11 @@ function ms(e) {
|
|
|
4363
4393
|
);
|
|
4364
4394
|
},
|
|
4365
4395
|
d(a) {
|
|
4366
|
-
a && (ee(t), ee(r), ee(i), ee(n)),
|
|
4396
|
+
a && (ee(t), ee(r), ee(i), ee(n)), qr(o, a), l && l.d(a);
|
|
4367
4397
|
}
|
|
4368
4398
|
};
|
|
4369
4399
|
}
|
|
4370
|
-
function
|
|
4400
|
+
function ms(e) {
|
|
4371
4401
|
let t;
|
|
4372
4402
|
return {
|
|
4373
4403
|
c() {
|
|
@@ -4384,7 +4414,7 @@ function ps(e) {
|
|
|
4384
4414
|
);
|
|
4385
4415
|
},
|
|
4386
4416
|
m(r, i) {
|
|
4387
|
-
|
|
4417
|
+
oe(r, t, i);
|
|
4388
4418
|
},
|
|
4389
4419
|
p(r, i) {
|
|
4390
4420
|
i[0] & /*clientstylingurl*/
|
|
@@ -4406,7 +4436,7 @@ function ps(e) {
|
|
|
4406
4436
|
}
|
|
4407
4437
|
};
|
|
4408
4438
|
}
|
|
4409
|
-
function
|
|
4439
|
+
function Qt(e) {
|
|
4410
4440
|
let t, r, i;
|
|
4411
4441
|
function n(...s) {
|
|
4412
4442
|
return (
|
|
@@ -4423,7 +4453,7 @@ function Kt(e) {
|
|
|
4423
4453
|
t = Y("span"), t.innerHTML = '<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>', re(t, "class", "CashierVerificationChevron");
|
|
4424
4454
|
},
|
|
4425
4455
|
m(s, o) {
|
|
4426
|
-
|
|
4456
|
+
oe(s, t, o), r || (i = xt(t, "click", n), r = !0);
|
|
4427
4457
|
},
|
|
4428
4458
|
p(s, o) {
|
|
4429
4459
|
e = s;
|
|
@@ -4433,14 +4463,14 @@ function Kt(e) {
|
|
|
4433
4463
|
}
|
|
4434
4464
|
};
|
|
4435
4465
|
}
|
|
4436
|
-
function
|
|
4466
|
+
function Kt(e) {
|
|
4437
4467
|
let t, r, i, n, s = (
|
|
4438
4468
|
/*message*/
|
|
4439
4469
|
e[54] + ""
|
|
4440
4470
|
), o, l, a, u, h = (
|
|
4441
4471
|
/*displayMessages*/
|
|
4442
4472
|
e[4].length > 1 && /*index*/
|
|
4443
|
-
e[56] === 0 &&
|
|
4473
|
+
e[56] === 0 && Qt(e)
|
|
4444
4474
|
);
|
|
4445
4475
|
function c(...p) {
|
|
4446
4476
|
return (
|
|
@@ -4454,23 +4484,23 @@ function er(e) {
|
|
|
4454
4484
|
}
|
|
4455
4485
|
return {
|
|
4456
4486
|
c() {
|
|
4457
|
-
t = Y("div"), r = Y("div"), r.innerHTML = '<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>', i =
|
|
4487
|
+
t = Y("div"), r = Y("div"), r.innerHTML = '<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>', i = Ee(), n = Y("p"), o = Ee(), h && h.c(), l = Ee(), re(r, "class", "IconVerification"), re(n, "class", "text"), re(t, "class", "CashierVerificationMessage"), Se(
|
|
4458
4488
|
t,
|
|
4459
4489
|
"ShowAll",
|
|
4460
4490
|
/*allVerificationsVisible*/
|
|
4461
4491
|
e[5]
|
|
4462
4492
|
);
|
|
4463
4493
|
},
|
|
4464
|
-
m(p,
|
|
4465
|
-
|
|
4494
|
+
m(p, x) {
|
|
4495
|
+
oe(p, t, x), se(t, r), se(t, i), se(t, n), n.innerHTML = s, se(t, o), h && h.m(t, null), se(t, l), a || (u = xt(t, "click", c), a = !0);
|
|
4466
4496
|
},
|
|
4467
|
-
p(p,
|
|
4468
|
-
e = p,
|
|
4497
|
+
p(p, x) {
|
|
4498
|
+
e = p, x[0] & /*displayMessages*/
|
|
4469
4499
|
16 && s !== (s = /*message*/
|
|
4470
4500
|
e[54] + "") && (n.innerHTML = s), /*displayMessages*/
|
|
4471
4501
|
e[4].length > 1 && /*index*/
|
|
4472
|
-
e[56] === 0 ? h ? h.p(e,
|
|
4473
|
-
32 &&
|
|
4502
|
+
e[56] === 0 ? h ? h.p(e, x) : (h = Qt(e), h.c(), h.m(t, l)) : h && (h.d(1), h = null), x[0] & /*allVerificationsVisible*/
|
|
4503
|
+
32 && Se(
|
|
4474
4504
|
t,
|
|
4475
4505
|
"ShowAll",
|
|
4476
4506
|
/*allVerificationsVisible*/
|
|
@@ -4482,14 +4512,14 @@ function er(e) {
|
|
|
4482
4512
|
}
|
|
4483
4513
|
};
|
|
4484
4514
|
}
|
|
4485
|
-
function
|
|
4515
|
+
function er(e) {
|
|
4486
4516
|
let t, r, i, n, s = (
|
|
4487
4517
|
/*$_*/
|
|
4488
4518
|
e[10]("verification.video.how-to") + ""
|
|
4489
4519
|
), o, l, a;
|
|
4490
4520
|
return {
|
|
4491
4521
|
c() {
|
|
4492
|
-
t = Y("div"), r = Y("div"), r.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', i =
|
|
4522
|
+
t = Y("div"), r = Y("div"), r.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', i = Ee(), n = Y("div"), o = yt(s), re(r, "class", "IconVideo"), re(n, "class", "CashierVerificationVideoLink"), Se(
|
|
4493
4523
|
n,
|
|
4494
4524
|
"CashierVerificationVideoLinkDesktop",
|
|
4495
4525
|
/*desktopView*/
|
|
@@ -4497,7 +4527,7 @@ function tr(e) {
|
|
|
4497
4527
|
), re(t, "class", "CashierVerificationVideo");
|
|
4498
4528
|
},
|
|
4499
4529
|
m(u, h) {
|
|
4500
|
-
|
|
4530
|
+
oe(u, t, h), se(t, r), se(t, i), se(t, n), se(n, o), l || (a = xt(
|
|
4501
4531
|
n,
|
|
4502
4532
|
"click",
|
|
4503
4533
|
/*click_handler_2*/
|
|
@@ -4507,8 +4537,8 @@ function tr(e) {
|
|
|
4507
4537
|
p(u, h) {
|
|
4508
4538
|
h[0] & /*$_*/
|
|
4509
4539
|
1024 && s !== (s = /*$_*/
|
|
4510
|
-
u[10]("verification.video.how-to") + "") &&
|
|
4511
|
-
64 &&
|
|
4540
|
+
u[10]("verification.video.how-to") + "") && Zr(o, s), h[0] & /*desktopView*/
|
|
4541
|
+
64 && Se(
|
|
4512
4542
|
n,
|
|
4513
4543
|
"CashierVerificationVideoLinkDesktop",
|
|
4514
4544
|
/*desktopView*/
|
|
@@ -4520,24 +4550,24 @@ function tr(e) {
|
|
|
4520
4550
|
}
|
|
4521
4551
|
};
|
|
4522
4552
|
}
|
|
4523
|
-
function
|
|
4553
|
+
function ps(e) {
|
|
4524
4554
|
let t;
|
|
4525
4555
|
function r(s, o) {
|
|
4526
4556
|
if (
|
|
4527
4557
|
/*isLoading*/
|
|
4528
4558
|
s[9]
|
|
4529
4559
|
)
|
|
4530
|
-
return
|
|
4560
|
+
return ms;
|
|
4531
4561
|
if (
|
|
4532
4562
|
/*displayMessages*/
|
|
4533
4563
|
s[4]
|
|
4534
4564
|
)
|
|
4535
|
-
return
|
|
4565
|
+
return ds;
|
|
4536
4566
|
}
|
|
4537
4567
|
let i = r(e), n = i && i(e);
|
|
4538
4568
|
return {
|
|
4539
4569
|
c() {
|
|
4540
|
-
t = Y("div"), n && n.c(), re(t, "class", "CashierVerifications"),
|
|
4570
|
+
t = Y("div"), n && n.c(), re(t, "class", "CashierVerifications"), Se(
|
|
4541
4571
|
t,
|
|
4542
4572
|
"CashierVerificationsDesktop",
|
|
4543
4573
|
/*desktopView*/
|
|
@@ -4545,11 +4575,11 @@ function gs(e) {
|
|
|
4545
4575
|
);
|
|
4546
4576
|
},
|
|
4547
4577
|
m(s, o) {
|
|
4548
|
-
|
|
4578
|
+
oe(s, t, o), n && n.m(t, null), e[24](t);
|
|
4549
4579
|
},
|
|
4550
4580
|
p(s, o) {
|
|
4551
4581
|
i === (i = r(s)) && n ? n.p(s, o) : (n && n.d(1), n = i && i(s), n && (n.c(), n.m(t, null))), o[0] & /*desktopView*/
|
|
4552
|
-
64 &&
|
|
4582
|
+
64 && Se(
|
|
4553
4583
|
t,
|
|
4554
4584
|
"CashierVerificationsDesktop",
|
|
4555
4585
|
/*desktopView*/
|
|
@@ -4563,29 +4593,29 @@ function gs(e) {
|
|
|
4563
4593
|
}
|
|
4564
4594
|
};
|
|
4565
4595
|
}
|
|
4566
|
-
const
|
|
4596
|
+
const gs = "verification_explanation_video_widgets.MP4";
|
|
4567
4597
|
function bs(e, t, r) {
|
|
4568
4598
|
let i, n;
|
|
4569
|
-
|
|
4570
|
-
let { endpoint: s } = t, { lang: o = "en" } = t, { translationurl: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: u = "" } = t, { session: h = "" } = t, { customerid: c = "" } = t, { ismobileview: p = "" } = t, { playersession:
|
|
4571
|
-
var
|
|
4599
|
+
$t(e, is, (f) => r(10, i = f)), $t(e, ss, (f) => r(30, n = f)), Zt.extend(fs);
|
|
4600
|
+
let { endpoint: s } = t, { lang: o = "en" } = t, { translationurl: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: u = "" } = t, { session: h = "" } = t, { customerid: c = "" } = t, { ismobileview: p = "" } = t, { playersession: x = "" } = t, { mbsource: S = "" } = t, b, M = /* @__PURE__ */ new Set(), G = /* @__PURE__ */ new Set(), R, B, X, I = !0, F = !0, q = !1, ae = "", Z = !1;
|
|
4601
|
+
var C;
|
|
4572
4602
|
(function(f) {
|
|
4573
4603
|
f.Manual = "Manual", f.ShuftiPro = "ShuftiPro";
|
|
4574
|
-
})(
|
|
4575
|
-
var
|
|
4604
|
+
})(C || (C = {}));
|
|
4605
|
+
var O;
|
|
4576
4606
|
(function(f) {
|
|
4577
4607
|
f.Requested = "Requested";
|
|
4578
|
-
})(
|
|
4608
|
+
})(O || (O = {}));
|
|
4579
4609
|
var k;
|
|
4580
4610
|
(function(f) {
|
|
4581
4611
|
f.Unknown = "Unknown", f.Unverified = "Unverified", f.InProgress = "InProgress", f.Failed = "Failed", f.Verified = "Verified", f.Referred = "Referred", f.True = "True", f.False = "False", f.AwaitingForResponse = "AwaitingForResponse";
|
|
4582
4612
|
})(k || (k = {}));
|
|
4583
|
-
var
|
|
4613
|
+
var he;
|
|
4584
4614
|
(function(f) {
|
|
4585
4615
|
f.Unknown = "Unknown", f.Documents = "Documents", f.Age = "Age", f.Pep = "Pep", f.Sanction = "Sanction", f.Aml = "Aml", f.ProofOfAddress = "ProofOfAddress", f.SourceOfWealth = "SourceOfWealth", f.SocialMedia = "SocialMedia", f.Biometric = "Biometric";
|
|
4586
|
-
})(
|
|
4616
|
+
})(he || (he = {})), Kr(() => () => {
|
|
4587
4617
|
});
|
|
4588
|
-
const
|
|
4618
|
+
const _ = [
|
|
4589
4619
|
k.InProgress,
|
|
4590
4620
|
k.Referred,
|
|
4591
4621
|
k.AwaitingForResponse
|
|
@@ -4594,34 +4624,34 @@ function bs(e, t, r) {
|
|
|
4594
4624
|
if (f)
|
|
4595
4625
|
return fetch(f).then((y) => y.json()).then((y) => {
|
|
4596
4626
|
Object.keys(y).forEach((H) => {
|
|
4597
|
-
|
|
4627
|
+
qt(H, y[H]);
|
|
4598
4628
|
});
|
|
4599
4629
|
}).catch((y) => {
|
|
4600
4630
|
console.log(y);
|
|
4601
4631
|
});
|
|
4602
4632
|
};
|
|
4603
|
-
Object.keys(
|
|
4604
|
-
|
|
4633
|
+
Object.keys(Yt).forEach((f) => {
|
|
4634
|
+
qt(f, Yt[f]);
|
|
4605
4635
|
});
|
|
4606
4636
|
const d = () => {
|
|
4607
|
-
|
|
4608
|
-
},
|
|
4609
|
-
r(20,
|
|
4637
|
+
ns(o);
|
|
4638
|
+
}, v = () => {
|
|
4639
|
+
r(20, B = w());
|
|
4610
4640
|
const f = new URL(`${s}/v1/player/${c}/verification/GetKYCCustomerStatus?language=${o}`), y = new Headers();
|
|
4611
|
-
y.append("accept", "application/json"), y.append("Content-Type", "application/json"), y.append("x-sessionid", `${
|
|
4641
|
+
y.append("accept", "application/json"), y.append("Content-Type", "application/json"), y.append("x-sessionid", `${x}`), y.append("X-Client-Request-Timestamp", Zt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
4612
4642
|
const H = {
|
|
4613
4643
|
method: "POST",
|
|
4614
4644
|
headers: y,
|
|
4615
4645
|
body: JSON.stringify({})
|
|
4616
4646
|
};
|
|
4617
4647
|
r(9, Z = !0), fetch(f, H).then((U) => U.json()).then((U) => {
|
|
4618
|
-
const
|
|
4619
|
-
R = $(
|
|
4620
|
-
|
|
4648
|
+
const ce = m(U == null ? void 0 : U.Verifications);
|
|
4649
|
+
R = $(ce), R.VerificationStatuses.forEach((Fe) => {
|
|
4650
|
+
Fe.VerificationUrlType !== "Widget" && M.add(Fe.Vendor);
|
|
4621
4651
|
}), r(4, X = ie());
|
|
4622
4652
|
}).finally(() => r(9, Z = !1));
|
|
4623
4653
|
}, m = (f) => f ? f.sort((y, H) => new Date(H.Created).getTime() - new Date(y.Created).getTime()) : [], E = () => {
|
|
4624
|
-
n &&
|
|
4654
|
+
n && v();
|
|
4625
4655
|
}, w = () => {
|
|
4626
4656
|
let f = (h || n).split(".")[1];
|
|
4627
4657
|
if (f) {
|
|
@@ -4638,7 +4668,7 @@ function bs(e, t, r) {
|
|
|
4638
4668
|
};
|
|
4639
4669
|
const y = V(f);
|
|
4640
4670
|
if (y && y.length) {
|
|
4641
|
-
const U =
|
|
4671
|
+
const U = L(y);
|
|
4642
4672
|
return {
|
|
4643
4673
|
VerificationSummaryStatus: U.Status,
|
|
4644
4674
|
VerificationUrl: (H = U.Flags) == null ? void 0 : H.DeferredUrlKey,
|
|
@@ -4646,58 +4676,58 @@ function bs(e, t, r) {
|
|
|
4646
4676
|
};
|
|
4647
4677
|
} else
|
|
4648
4678
|
return {
|
|
4649
|
-
VerificationSummaryStatus: f.some((
|
|
4679
|
+
VerificationSummaryStatus: f.some((ce) => ce.Status === k.Failed) ? k.Failed : k.Verified,
|
|
4650
4680
|
VerificationStatuses: N(f, [k.Failed])
|
|
4651
4681
|
};
|
|
4652
|
-
},
|
|
4682
|
+
}, L = (f) => f.reduce(
|
|
4653
4683
|
(y, H) => y ? new Date(y) < new Date(H) ? H : y : H,
|
|
4654
4684
|
0
|
|
4655
4685
|
), N = (f, y) => f.filter((H) => y.includes(H.Status)).map((H) => {
|
|
4656
|
-
var U,
|
|
4686
|
+
var U, ce;
|
|
4657
4687
|
return {
|
|
4658
4688
|
Type: H.Type,
|
|
4659
4689
|
Vendor: H.VendorName,
|
|
4660
4690
|
VerificationDocuments: H.Documents ? [...H.Documents] : [],
|
|
4661
4691
|
VerificationUrlType: (U = H.FlowInfo) == null ? void 0 : U.Type,
|
|
4662
|
-
VerificationUrl: (
|
|
4692
|
+
VerificationUrl: (ce = H.FlowInfo) == null ? void 0 : ce.Url
|
|
4663
4693
|
};
|
|
4664
|
-
}), V = (f) => f.filter((y) =>
|
|
4665
|
-
const y = f.Documents && f.VendorName ===
|
|
4694
|
+
}), V = (f) => f.filter((y) => _.includes(y.Status) ? y.FlowInfo && y.FlowInfo.Url || W(y) || fe(y) : !1), W = (f) => {
|
|
4695
|
+
const y = f.Documents && f.VendorName === C.Manual, H = f.Documents && f.Documents.some((U) => U.Status === O.Requested);
|
|
4666
4696
|
return y && H;
|
|
4667
|
-
},
|
|
4697
|
+
}, fe = (f) => f.VendorName === C.ShuftiPro && f.Status === k.Referred, ie = () => {
|
|
4668
4698
|
switch (R.VerificationSummaryStatus) {
|
|
4669
4699
|
case k.InProgress:
|
|
4670
4700
|
const f = [];
|
|
4671
|
-
return
|
|
4672
|
-
f.push(
|
|
4701
|
+
return M.forEach((y) => {
|
|
4702
|
+
f.push(pe(y));
|
|
4673
4703
|
}), f;
|
|
4674
4704
|
case k.Referred:
|
|
4675
4705
|
return [i("verification.idenfy.referred-awaiting")];
|
|
4676
4706
|
case k.Failed:
|
|
4677
4707
|
return [i("verification.message.failed")];
|
|
4678
4708
|
}
|
|
4679
|
-
},
|
|
4709
|
+
}, pe = (f) => {
|
|
4680
4710
|
const y = R.VerificationStatuses.filter((H) => H.Vendor === f);
|
|
4681
|
-
if (f ===
|
|
4682
|
-
return
|
|
4711
|
+
if (f === C.ShuftiPro)
|
|
4712
|
+
return ue(y);
|
|
4683
4713
|
{
|
|
4684
4714
|
const H = i("verification.idenfy.link-name"), U = {
|
|
4685
4715
|
link: `<a href="${y[0].VerificationUrl}" target="_blank">${H}</a>`
|
|
4686
4716
|
};
|
|
4687
4717
|
return i("verification.idenfy.in-progress", { values: U });
|
|
4688
4718
|
}
|
|
4689
|
-
},
|
|
4719
|
+
}, ue = (f) => {
|
|
4690
4720
|
const y = [], H = {}, U = [
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4721
|
+
he.Biometric,
|
|
4722
|
+
he.Documents,
|
|
4723
|
+
he.ProofOfAddress
|
|
4694
4724
|
];
|
|
4695
|
-
f.forEach((
|
|
4696
|
-
U.includes(
|
|
4725
|
+
f.forEach((ge) => {
|
|
4726
|
+
U.includes(ge.Type) && (y.push(ge.Type), H[ge.Type] = j(ge, ne(ge.Type)));
|
|
4697
4727
|
});
|
|
4698
|
-
let
|
|
4699
|
-
return
|
|
4700
|
-
}, j = (f, y) => `<a class="verificationLink ${f.Type}" href=" ${f.VerificationUrl} " target="_blank">${y}</a>`, ne = (f) => i(`verification.shuftipro.link-name.${f}`),
|
|
4728
|
+
let ce = y.every((ge) => G.has(ge)), Fe = `verification.shuftipro.in-progress.${y.sort().join(".")}`;
|
|
4729
|
+
return ce ? i("verification.shuftipro.validations-started") : i(Fe, { values: H });
|
|
4730
|
+
}, j = (f, y) => `<a class="verificationLink ${f.Type}" href=" ${f.VerificationUrl} " target="_blank">${y}</a>`, ne = (f) => i(`verification.shuftipro.link-name.${f}`), le = (f, y) => {
|
|
4701
4731
|
if (f.stopPropagation(), f.target && (f.target.href || f.target.closest("a"))) {
|
|
4702
4732
|
if (f.target.closest(".verificationLink")) {
|
|
4703
4733
|
const H = f.target.className.split(" ")[1];
|
|
@@ -4706,74 +4736,74 @@ function bs(e, t, r) {
|
|
|
4706
4736
|
return;
|
|
4707
4737
|
}
|
|
4708
4738
|
y === 0 && r(5, I = !I);
|
|
4709
|
-
},
|
|
4739
|
+
}, ve = () => {
|
|
4710
4740
|
r(6, F = p === "false");
|
|
4711
|
-
},
|
|
4712
|
-
r(8,
|
|
4741
|
+
}, Dr = () => {
|
|
4742
|
+
r(8, ae = B + "/" + o + "/" + gs);
|
|
4713
4743
|
try {
|
|
4714
|
-
fetch(
|
|
4744
|
+
fetch(ae, { method: "HEAD" }).then((f) => {
|
|
4715
4745
|
r(7, q = f.ok);
|
|
4716
4746
|
});
|
|
4717
4747
|
} catch (f) {
|
|
4718
4748
|
r(7, q = !1);
|
|
4719
4749
|
}
|
|
4720
|
-
},
|
|
4750
|
+
}, Tt = () => {
|
|
4721
4751
|
window.postMessage({ type: "ShowCashierVideoModal" }, window.location.href);
|
|
4722
|
-
},
|
|
4723
|
-
function
|
|
4724
|
-
|
|
4725
|
-
|
|
4752
|
+
}, Lr = (f, y) => le(y, f), Ir = (f, y) => le(y, f), Nr = () => Tt();
|
|
4753
|
+
function Rr(f) {
|
|
4754
|
+
at[f ? "unshift" : "push"](() => {
|
|
4755
|
+
b = f, r(3, b);
|
|
4726
4756
|
});
|
|
4727
4757
|
}
|
|
4728
4758
|
return e.$$set = (f) => {
|
|
4729
|
-
"endpoint" in f && r(13, s = f.endpoint), "lang" in f && r(14, o = f.lang), "translationurl" in f && r(15, l = f.translationurl), "clientstyling" in f && r(0, a = f.clientstyling), "clientstylingurl" in f && r(1, u = f.clientstylingurl), "session" in f && r(16, h = f.session), "customerid" in f && r(17, c = f.customerid), "ismobileview" in f && r(2, p = f.ismobileview), "playersession" in f && r(18,
|
|
4759
|
+
"endpoint" in f && r(13, s = f.endpoint), "lang" in f && r(14, o = f.lang), "translationurl" in f && r(15, l = f.translationurl), "clientstyling" in f && r(0, a = f.clientstyling), "clientstylingurl" in f && r(1, u = f.clientstylingurl), "session" in f && r(16, h = f.session), "customerid" in f && r(17, c = f.customerid), "ismobileview" in f && r(2, p = f.ismobileview), "playersession" in f && r(18, x = f.playersession), "mbsource" in f && r(19, S = f.mbsource);
|
|
4730
4760
|
}, e.$$.update = () => {
|
|
4731
4761
|
e.$$.dirty[0] & /*lang*/
|
|
4732
4762
|
16384 && o && d(), e.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
4733
|
-
335872 && s && h &&
|
|
4734
|
-
335872 && s && !h &&
|
|
4763
|
+
335872 && s && h && x && v(), e.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
4764
|
+
335872 && s && !h && x && E(), e.$$.dirty[0] & /*translationurl*/
|
|
4735
4765
|
32768 && l && g(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4736
|
-
9 && a &&
|
|
4737
|
-
10 && u &&
|
|
4738
|
-
4 && p &&
|
|
4739
|
-
1048576 &&
|
|
4740
|
-
524296 && S &&
|
|
4766
|
+
9 && a && b && os(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4767
|
+
10 && u && b && as(), e.$$.dirty[0] & /*ismobileview*/
|
|
4768
|
+
4 && p && ve(), e.$$.dirty[0] & /*staticCdnUrl*/
|
|
4769
|
+
1048576 && B && Dr(), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4770
|
+
524296 && S && b && us(b, `${S}.Style`);
|
|
4741
4771
|
}, [
|
|
4742
4772
|
a,
|
|
4743
4773
|
u,
|
|
4744
4774
|
p,
|
|
4745
|
-
|
|
4775
|
+
b,
|
|
4746
4776
|
X,
|
|
4747
4777
|
I,
|
|
4748
4778
|
F,
|
|
4749
4779
|
q,
|
|
4750
|
-
|
|
4780
|
+
ae,
|
|
4751
4781
|
Z,
|
|
4752
4782
|
i,
|
|
4753
|
-
|
|
4754
|
-
|
|
4783
|
+
le,
|
|
4784
|
+
Tt,
|
|
4755
4785
|
s,
|
|
4756
4786
|
o,
|
|
4757
4787
|
l,
|
|
4758
4788
|
h,
|
|
4759
4789
|
c,
|
|
4760
|
-
|
|
4790
|
+
x,
|
|
4761
4791
|
S,
|
|
4762
|
-
|
|
4792
|
+
B,
|
|
4793
|
+
Lr,
|
|
4763
4794
|
Ir,
|
|
4764
4795
|
Nr,
|
|
4765
|
-
Rr
|
|
4766
|
-
kr
|
|
4796
|
+
Rr
|
|
4767
4797
|
];
|
|
4768
4798
|
}
|
|
4769
|
-
class
|
|
4799
|
+
class Cr extends fi {
|
|
4770
4800
|
constructor(t) {
|
|
4771
|
-
super(),
|
|
4801
|
+
super(), li(
|
|
4772
4802
|
this,
|
|
4773
4803
|
t,
|
|
4774
4804
|
bs,
|
|
4775
|
-
|
|
4776
|
-
|
|
4805
|
+
ps,
|
|
4806
|
+
rr,
|
|
4777
4807
|
{
|
|
4778
4808
|
endpoint: 13,
|
|
4779
4809
|
lang: 14,
|
|
@@ -4786,7 +4816,7 @@ class Dr extends ci {
|
|
|
4786
4816
|
playersession: 18,
|
|
4787
4817
|
mbsource: 19
|
|
4788
4818
|
},
|
|
4789
|
-
|
|
4819
|
+
cs,
|
|
4790
4820
|
[-1, -1]
|
|
4791
4821
|
);
|
|
4792
4822
|
}
|
|
@@ -4851,34 +4881,38 @@ class Dr extends ci {
|
|
|
4851
4881
|
this.$$set({ mbsource: t }), Q();
|
|
4852
4882
|
}
|
|
4853
4883
|
}
|
|
4854
|
-
|
|
4855
|
-
const
|
|
4884
|
+
hi(Cr, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {}, playersession: {}, mbsource: {} }, [], [], !0);
|
|
4885
|
+
const Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4856
4886
|
__proto__: null,
|
|
4857
|
-
default:
|
|
4887
|
+
default: Cr
|
|
4858
4888
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4859
4889
|
export {
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4890
|
+
Ss as C,
|
|
4891
|
+
fi as S,
|
|
4892
|
+
Es as _,
|
|
4893
|
+
tt as a,
|
|
4894
|
+
ws as b,
|
|
4895
|
+
Ze as c,
|
|
4896
|
+
hi as d,
|
|
4897
|
+
zr as e,
|
|
4867
4898
|
Q as f,
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4899
|
+
_s as g,
|
|
4900
|
+
oe as h,
|
|
4901
|
+
li as i,
|
|
4902
|
+
ee as j,
|
|
4903
|
+
Y as k,
|
|
4904
|
+
Ee as l,
|
|
4905
|
+
ys as m,
|
|
4875
4906
|
te as n,
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4907
|
+
Kr as o,
|
|
4908
|
+
re as p,
|
|
4909
|
+
se as q,
|
|
4910
|
+
xs as r,
|
|
4911
|
+
rr as s,
|
|
4912
|
+
Se as t,
|
|
4913
|
+
xt as u,
|
|
4914
|
+
at as v,
|
|
4915
|
+
os as w,
|
|
4916
|
+
as as x,
|
|
4917
|
+
us as y
|
|
4884
4918
|
};
|