@everymatrix/general-player-sms-verification-form 1.54.0 → 1.54.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralPlayerSmsVerificationForm-DDl0Iib6.js → GeneralPlayerSmsVerificationForm-ByX4Q8Ey.js} +879 -916
- package/esnext/general-player-sms-verification-form.js +14 -0
- package/package.json +10 -8
- package/components/GeneralPlayerSmsVerificationForm-DSRG5PKI.cjs +0 -3
- package/es2015/general-player-sms-verification-form.cjs +0 -1
- package/es2015/general-player-sms-verification-form.js +0 -16
|
@@ -1,75 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
var er = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var et = Object.getOwnPropertySymbols;
|
|
4
|
-
var tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Ce = (e, t, r) => t in e ? Yt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
6
|
-
for (var r in t || (t = {}))
|
|
7
|
-
tr.call(t, r) && Ce(e, r, t[r]);
|
|
8
|
-
if (et)
|
|
9
|
-
for (var r of et(t))
|
|
10
|
-
rr.call(t, r) && Ce(e, r, t[r]);
|
|
11
|
-
return e;
|
|
12
|
-
}, rt = (e, t) => Kt(e, er(t));
|
|
13
|
-
var $ = (e, t, r) => Ce(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
-
var ge = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var o = (l) => {
|
|
16
|
-
try {
|
|
17
|
-
a(r.next(l));
|
|
18
|
-
} catch (u) {
|
|
19
|
-
i(u);
|
|
20
|
-
}
|
|
21
|
-
}, s = (l) => {
|
|
22
|
-
try {
|
|
23
|
-
a(r.throw(l));
|
|
24
|
-
} catch (u) {
|
|
25
|
-
i(u);
|
|
26
|
-
}
|
|
27
|
-
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
|
|
28
|
-
a((r = r.apply(e, t)).next());
|
|
29
|
-
});
|
|
30
|
-
function U() {
|
|
1
|
+
function $() {
|
|
31
2
|
}
|
|
32
|
-
function
|
|
3
|
+
function vt(e) {
|
|
33
4
|
return e();
|
|
34
5
|
}
|
|
35
|
-
function
|
|
6
|
+
function qe() {
|
|
36
7
|
return /* @__PURE__ */ Object.create(null);
|
|
37
8
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
9
|
+
function oe(e) {
|
|
10
|
+
e.forEach(vt);
|
|
40
11
|
}
|
|
41
|
-
function
|
|
12
|
+
function We(e) {
|
|
42
13
|
return typeof e == "function";
|
|
43
14
|
}
|
|
44
|
-
function
|
|
15
|
+
function yt(e, t) {
|
|
45
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
17
|
}
|
|
47
|
-
function
|
|
18
|
+
function zt(e) {
|
|
48
19
|
return Object.keys(e).length === 0;
|
|
49
20
|
}
|
|
50
|
-
function
|
|
21
|
+
function Et(e, ...t) {
|
|
51
22
|
if (e == null) {
|
|
52
23
|
for (const n of t)
|
|
53
24
|
n(void 0);
|
|
54
|
-
return
|
|
25
|
+
return $;
|
|
55
26
|
}
|
|
56
27
|
const r = e.subscribe(...t);
|
|
57
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
29
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function Wt(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(Et(t, r));
|
|
61
32
|
}
|
|
62
33
|
function E(e, t) {
|
|
63
34
|
e.appendChild(t);
|
|
64
35
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
36
|
+
function Zt(e, t, r) {
|
|
37
|
+
const n = Jt(e);
|
|
67
38
|
if (!n.getElementById(t)) {
|
|
68
39
|
const i = M("style");
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
40
|
+
i.id = t, i.textContent = r, Qt(n, i);
|
|
70
41
|
}
|
|
71
42
|
}
|
|
72
|
-
function
|
|
43
|
+
function Jt(e) {
|
|
73
44
|
if (!e) return document;
|
|
74
45
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
75
46
|
return t && /** @type {ShadowRoot} */
|
|
@@ -78,17 +49,17 @@ function sr(e) {
|
|
|
78
49
|
t
|
|
79
50
|
) : e.ownerDocument;
|
|
80
51
|
}
|
|
81
|
-
function
|
|
52
|
+
function Qt(e, t) {
|
|
82
53
|
return E(
|
|
83
54
|
/** @type {Document} */
|
|
84
55
|
e.head || e,
|
|
85
56
|
t
|
|
86
57
|
), t.sheet;
|
|
87
58
|
}
|
|
88
|
-
function
|
|
59
|
+
function W(e, t, r) {
|
|
89
60
|
e.insertBefore(t, r || null);
|
|
90
61
|
}
|
|
91
|
-
function
|
|
62
|
+
function k(e) {
|
|
92
63
|
e.parentNode && e.parentNode.removeChild(e);
|
|
93
64
|
}
|
|
94
65
|
function M(e) {
|
|
@@ -97,26 +68,26 @@ function M(e) {
|
|
|
97
68
|
function L(e) {
|
|
98
69
|
return document.createTextNode(e);
|
|
99
70
|
}
|
|
100
|
-
function
|
|
71
|
+
function X() {
|
|
101
72
|
return L(" ");
|
|
102
73
|
}
|
|
103
|
-
function
|
|
74
|
+
function be(e, t, r, n) {
|
|
104
75
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
105
76
|
}
|
|
106
77
|
function A(e, t, r) {
|
|
107
78
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
108
79
|
}
|
|
109
|
-
function
|
|
80
|
+
function qt(e) {
|
|
110
81
|
return Array.from(e.childNodes);
|
|
111
82
|
}
|
|
112
|
-
function
|
|
83
|
+
function F(e, t) {
|
|
113
84
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
114
85
|
t);
|
|
115
86
|
}
|
|
116
|
-
function
|
|
117
|
-
e.value = t
|
|
87
|
+
function Ye(e, t) {
|
|
88
|
+
e.value = t ?? "";
|
|
118
89
|
}
|
|
119
|
-
function
|
|
90
|
+
function Yt(e) {
|
|
120
91
|
const t = {};
|
|
121
92
|
return e.childNodes.forEach(
|
|
122
93
|
/** @param {Element} node */
|
|
@@ -125,245 +96,241 @@ function lr(e) {
|
|
|
125
96
|
}
|
|
126
97
|
), t;
|
|
127
98
|
}
|
|
128
|
-
let
|
|
129
|
-
function
|
|
130
|
-
|
|
99
|
+
let ce;
|
|
100
|
+
function he(e) {
|
|
101
|
+
ce = e;
|
|
131
102
|
}
|
|
132
|
-
function
|
|
133
|
-
if (!
|
|
134
|
-
return
|
|
103
|
+
function Kt() {
|
|
104
|
+
if (!ce) throw new Error("Function called outside component initialization");
|
|
105
|
+
return ce;
|
|
135
106
|
}
|
|
136
|
-
function
|
|
137
|
-
|
|
107
|
+
function er(e) {
|
|
108
|
+
Kt().$$.on_mount.push(e);
|
|
138
109
|
}
|
|
139
|
-
const
|
|
140
|
-
let
|
|
141
|
-
const
|
|
142
|
-
let
|
|
143
|
-
function
|
|
144
|
-
|
|
110
|
+
const K = [], Le = [];
|
|
111
|
+
let ee = [];
|
|
112
|
+
const Ke = [], tr = /* @__PURE__ */ Promise.resolve();
|
|
113
|
+
let Re = !1;
|
|
114
|
+
function rr() {
|
|
115
|
+
Re || (Re = !0, tr.then(D));
|
|
145
116
|
}
|
|
146
|
-
function
|
|
147
|
-
|
|
117
|
+
function $e(e) {
|
|
118
|
+
ee.push(e);
|
|
148
119
|
}
|
|
149
|
-
const
|
|
150
|
-
let
|
|
151
|
-
function
|
|
152
|
-
if (
|
|
120
|
+
const we = /* @__PURE__ */ new Set();
|
|
121
|
+
let q = 0;
|
|
122
|
+
function D() {
|
|
123
|
+
if (q !== 0)
|
|
153
124
|
return;
|
|
154
|
-
const e =
|
|
125
|
+
const e = ce;
|
|
155
126
|
do {
|
|
156
127
|
try {
|
|
157
|
-
for (;
|
|
158
|
-
const t =
|
|
159
|
-
|
|
128
|
+
for (; q < K.length; ) {
|
|
129
|
+
const t = K[q];
|
|
130
|
+
q++, he(t), nr(t.$$);
|
|
160
131
|
}
|
|
161
132
|
} catch (t) {
|
|
162
|
-
throw
|
|
133
|
+
throw K.length = 0, q = 0, t;
|
|
163
134
|
}
|
|
164
|
-
for (
|
|
165
|
-
for (let t = 0; t <
|
|
166
|
-
const r =
|
|
167
|
-
|
|
135
|
+
for (he(null), K.length = 0, q = 0; Le.length; ) Le.pop()();
|
|
136
|
+
for (let t = 0; t < ee.length; t += 1) {
|
|
137
|
+
const r = ee[t];
|
|
138
|
+
we.has(r) || (we.add(r), r());
|
|
168
139
|
}
|
|
169
|
-
|
|
170
|
-
} while (
|
|
171
|
-
for (;
|
|
172
|
-
|
|
173
|
-
|
|
140
|
+
ee.length = 0;
|
|
141
|
+
} while (K.length);
|
|
142
|
+
for (; Ke.length; )
|
|
143
|
+
Ke.pop()();
|
|
144
|
+
Re = !1, we.clear(), he(e);
|
|
174
145
|
}
|
|
175
|
-
function
|
|
146
|
+
function nr(e) {
|
|
176
147
|
if (e.fragment !== null) {
|
|
177
|
-
e.update(),
|
|
148
|
+
e.update(), oe(e.before_update);
|
|
178
149
|
const t = e.dirty;
|
|
179
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
150
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
180
151
|
}
|
|
181
152
|
}
|
|
182
|
-
function
|
|
153
|
+
function ir(e) {
|
|
183
154
|
const t = [], r = [];
|
|
184
|
-
|
|
155
|
+
ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
|
|
185
156
|
}
|
|
186
|
-
const
|
|
187
|
-
function
|
|
188
|
-
e && e.i && (
|
|
157
|
+
const or = /* @__PURE__ */ new Set();
|
|
158
|
+
function sr(e, t) {
|
|
159
|
+
e && e.i && (or.delete(e), e.i(t));
|
|
189
160
|
}
|
|
190
|
-
function
|
|
161
|
+
function ar(e, t, r) {
|
|
191
162
|
const { fragment: n, after_update: i } = e.$$;
|
|
192
|
-
n && n.m(t, r),
|
|
193
|
-
const o = e.$$.on_mount.map(
|
|
194
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
195
|
-
}), i.forEach(
|
|
163
|
+
n && n.m(t, r), $e(() => {
|
|
164
|
+
const o = e.$$.on_mount.map(vt).filter(We);
|
|
165
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
|
|
166
|
+
}), i.forEach($e);
|
|
196
167
|
}
|
|
197
|
-
function
|
|
168
|
+
function ur(e, t) {
|
|
198
169
|
const r = e.$$;
|
|
199
|
-
r.fragment !== null && (
|
|
170
|
+
r.fragment !== null && (ir(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
200
171
|
}
|
|
201
|
-
function
|
|
202
|
-
e.$$.dirty[0] === -1 && (
|
|
172
|
+
function lr(e, t) {
|
|
173
|
+
e.$$.dirty[0] === -1 && (K.push(e), rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
203
174
|
}
|
|
204
|
-
function
|
|
205
|
-
const
|
|
206
|
-
|
|
175
|
+
function hr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
176
|
+
const h = ce;
|
|
177
|
+
he(e);
|
|
207
178
|
const u = e.$$ = {
|
|
208
179
|
fragment: null,
|
|
209
180
|
ctx: [],
|
|
210
181
|
// state
|
|
211
182
|
props: o,
|
|
212
|
-
update:
|
|
183
|
+
update: $,
|
|
213
184
|
not_equal: i,
|
|
214
|
-
bound:
|
|
185
|
+
bound: qe(),
|
|
215
186
|
// lifecycle
|
|
216
187
|
on_mount: [],
|
|
217
188
|
on_destroy: [],
|
|
218
189
|
on_disconnect: [],
|
|
219
190
|
before_update: [],
|
|
220
191
|
after_update: [],
|
|
221
|
-
context: new Map(t.context || (
|
|
192
|
+
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
222
193
|
// everything else
|
|
223
|
-
callbacks:
|
|
224
|
-
dirty:
|
|
194
|
+
callbacks: qe(),
|
|
195
|
+
dirty: s,
|
|
225
196
|
skip_bound: !1,
|
|
226
|
-
root: t.target ||
|
|
197
|
+
root: t.target || h.$$.root
|
|
227
198
|
};
|
|
228
|
-
|
|
229
|
-
let
|
|
199
|
+
a && a(u.root);
|
|
200
|
+
let l = !1;
|
|
230
201
|
if (u.ctx = r(e, t.props || {}, (f, d, ...b) => {
|
|
231
202
|
const v = b.length ? b[0] : d;
|
|
232
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v),
|
|
233
|
-
}), u.update(),
|
|
203
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), l && lr(e, f)), d;
|
|
204
|
+
}), u.update(), l = !0, oe(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
234
205
|
if (t.hydrate) {
|
|
235
|
-
const f =
|
|
236
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
206
|
+
const f = qt(t.target);
|
|
207
|
+
u.fragment && u.fragment.l(f), f.forEach(k);
|
|
237
208
|
} else
|
|
238
209
|
u.fragment && u.fragment.c();
|
|
239
|
-
t.intro &&
|
|
210
|
+
t.intro && sr(e.$$.fragment), ar(e, t.target, t.anchor), D();
|
|
240
211
|
}
|
|
241
|
-
|
|
242
|
-
}
|
|
243
|
-
let
|
|
244
|
-
typeof HTMLElement == "function" && (
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
212
|
+
he(h);
|
|
213
|
+
}
|
|
214
|
+
let xt;
|
|
215
|
+
typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
216
|
+
/** The Svelte component constructor */
|
|
217
|
+
$$ctor;
|
|
218
|
+
/** Slots */
|
|
219
|
+
$$s;
|
|
220
|
+
/** The Svelte component instance */
|
|
221
|
+
$$c;
|
|
222
|
+
/** Whether or not the custom element is connected */
|
|
223
|
+
$$cn = !1;
|
|
224
|
+
/** Component props data */
|
|
225
|
+
$$d = {};
|
|
226
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
227
|
+
$$r = !1;
|
|
228
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
229
|
+
$$p_d = {};
|
|
230
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
231
|
+
$$l = {};
|
|
232
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
233
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
234
|
+
constructor(e, t, r) {
|
|
235
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
266
236
|
}
|
|
267
|
-
addEventListener(t, r
|
|
268
|
-
if (this.$$l[
|
|
269
|
-
const
|
|
270
|
-
this.$$l_u.set(
|
|
237
|
+
addEventListener(e, t, r) {
|
|
238
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
239
|
+
const n = this.$$c.$on(e, t);
|
|
240
|
+
this.$$l_u.set(t, n);
|
|
271
241
|
}
|
|
272
|
-
super.addEventListener(t, r
|
|
242
|
+
super.addEventListener(e, t, r);
|
|
273
243
|
}
|
|
274
|
-
removeEventListener(t, r
|
|
275
|
-
if (super.removeEventListener(t, r
|
|
276
|
-
const
|
|
277
|
-
|
|
244
|
+
removeEventListener(e, t, r) {
|
|
245
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
246
|
+
const n = this.$$l_u.get(t);
|
|
247
|
+
n && (n(), this.$$l_u.delete(t));
|
|
278
248
|
}
|
|
279
249
|
}
|
|
280
|
-
connectedCallback() {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
}
|
|
300
|
-
};
|
|
250
|
+
async connectedCallback() {
|
|
251
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
252
|
+
let e = function(i) {
|
|
253
|
+
return () => {
|
|
254
|
+
let o;
|
|
255
|
+
return {
|
|
256
|
+
c: function() {
|
|
257
|
+
o = M("slot"), i !== "default" && A(o, "name", i);
|
|
258
|
+
},
|
|
259
|
+
/**
|
|
260
|
+
* @param {HTMLElement} target
|
|
261
|
+
* @param {HTMLElement} [anchor]
|
|
262
|
+
*/
|
|
263
|
+
m: function(h, u) {
|
|
264
|
+
W(h, o, u);
|
|
265
|
+
},
|
|
266
|
+
d: function(h) {
|
|
267
|
+
h && k(o);
|
|
268
|
+
}
|
|
301
269
|
};
|
|
302
270
|
};
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
271
|
+
};
|
|
272
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
273
|
+
return;
|
|
274
|
+
const t = {}, r = Yt(this);
|
|
275
|
+
for (const i of this.$$s)
|
|
276
|
+
i in r && (t[i] = [e(i)]);
|
|
277
|
+
for (const i of this.attributes) {
|
|
278
|
+
const o = this.$$g_p(i.name);
|
|
279
|
+
o in this.$$d || (this.$$d[o] = ve(o, i.value, this.$$p_d, "toProp"));
|
|
280
|
+
}
|
|
281
|
+
for (const i in this.$$p_d)
|
|
282
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
283
|
+
this.$$c = new this.$$ctor({
|
|
284
|
+
target: this.shadowRoot || this,
|
|
285
|
+
props: {
|
|
286
|
+
...this.$$d,
|
|
287
|
+
$$slots: t,
|
|
288
|
+
$$scope: {
|
|
289
|
+
ctx: []
|
|
290
|
+
}
|
|
311
291
|
}
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
this.$$
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
this.$$r = !0;
|
|
325
|
-
for (const o in this.$$p_d)
|
|
326
|
-
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
327
|
-
const s = Ee(
|
|
328
|
-
o,
|
|
329
|
-
this.$$d[o],
|
|
330
|
-
this.$$p_d,
|
|
331
|
-
"toAttribute"
|
|
332
|
-
);
|
|
333
|
-
s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
|
|
334
|
-
}
|
|
335
|
-
this.$$r = !1;
|
|
336
|
-
};
|
|
337
|
-
this.$$c.$$.after_update.push(i), i();
|
|
338
|
-
for (const o in this.$$l)
|
|
339
|
-
for (const s of this.$$l[o]) {
|
|
340
|
-
const a = this.$$c.$on(o, s);
|
|
341
|
-
this.$$l_u.set(s, a);
|
|
292
|
+
});
|
|
293
|
+
const n = () => {
|
|
294
|
+
this.$$r = !0;
|
|
295
|
+
for (const i in this.$$p_d)
|
|
296
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
297
|
+
const o = ve(
|
|
298
|
+
i,
|
|
299
|
+
this.$$d[i],
|
|
300
|
+
this.$$p_d,
|
|
301
|
+
"toAttribute"
|
|
302
|
+
);
|
|
303
|
+
o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
|
|
342
304
|
}
|
|
343
|
-
this.$$
|
|
344
|
-
}
|
|
345
|
-
|
|
305
|
+
this.$$r = !1;
|
|
306
|
+
};
|
|
307
|
+
this.$$c.$$.after_update.push(n), n();
|
|
308
|
+
for (const i in this.$$l)
|
|
309
|
+
for (const o of this.$$l[i]) {
|
|
310
|
+
const a = this.$$c.$on(i, o);
|
|
311
|
+
this.$$l_u.set(o, a);
|
|
312
|
+
}
|
|
313
|
+
this.$$l = {};
|
|
314
|
+
}
|
|
346
315
|
}
|
|
347
316
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
348
317
|
// and setting attributes through setAttribute etc, this is helpful
|
|
349
|
-
attributeChangedCallback(t, r
|
|
350
|
-
|
|
351
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Ee(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
318
|
+
attributeChangedCallback(e, t, r) {
|
|
319
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ve(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
352
320
|
}
|
|
353
321
|
disconnectedCallback() {
|
|
354
322
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
355
323
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
356
324
|
});
|
|
357
325
|
}
|
|
358
|
-
$$g_p(
|
|
326
|
+
$$g_p(e) {
|
|
359
327
|
return Object.keys(this.$$p_d).find(
|
|
360
|
-
(
|
|
361
|
-
) ||
|
|
328
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
329
|
+
) || e;
|
|
362
330
|
}
|
|
363
331
|
});
|
|
364
|
-
function
|
|
365
|
-
|
|
366
|
-
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
332
|
+
function ve(e, t, r, n) {
|
|
333
|
+
const i = r[e]?.type;
|
|
367
334
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
368
335
|
return t;
|
|
369
336
|
if (n === "toAttribute")
|
|
@@ -374,7 +341,7 @@ function Ee(e, t, r, n) {
|
|
|
374
341
|
case "Boolean":
|
|
375
342
|
return t ? "" : null;
|
|
376
343
|
case "Number":
|
|
377
|
-
return t
|
|
344
|
+
return t ?? null;
|
|
378
345
|
default:
|
|
379
346
|
return t;
|
|
380
347
|
}
|
|
@@ -391,59 +358,55 @@ function Ee(e, t, r, n) {
|
|
|
391
358
|
return t;
|
|
392
359
|
}
|
|
393
360
|
}
|
|
394
|
-
function
|
|
395
|
-
let
|
|
361
|
+
function cr(e, t, r, n, i, o) {
|
|
362
|
+
let a = class extends xt {
|
|
396
363
|
constructor() {
|
|
397
364
|
super(e, r, i), this.$$p_d = t;
|
|
398
365
|
}
|
|
399
366
|
static get observedAttributes() {
|
|
400
367
|
return Object.keys(t).map(
|
|
401
|
-
(
|
|
368
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
402
369
|
);
|
|
403
370
|
}
|
|
404
371
|
};
|
|
405
|
-
return Object.keys(t).forEach((
|
|
406
|
-
Object.defineProperty(
|
|
372
|
+
return Object.keys(t).forEach((s) => {
|
|
373
|
+
Object.defineProperty(a.prototype, s, {
|
|
407
374
|
get() {
|
|
408
|
-
return this.$$c &&
|
|
375
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
409
376
|
},
|
|
410
|
-
set(
|
|
411
|
-
|
|
412
|
-
l = Ee(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
|
|
377
|
+
set(h) {
|
|
378
|
+
h = ve(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
|
|
413
379
|
}
|
|
414
380
|
});
|
|
415
|
-
}), n.forEach((
|
|
416
|
-
Object.defineProperty(
|
|
381
|
+
}), n.forEach((s) => {
|
|
382
|
+
Object.defineProperty(a.prototype, s, {
|
|
417
383
|
get() {
|
|
418
|
-
|
|
419
|
-
return (l = this.$$c) == null ? void 0 : l[a];
|
|
384
|
+
return this.$$c?.[s];
|
|
420
385
|
}
|
|
421
386
|
});
|
|
422
387
|
}), e.element = /** @type {any} */
|
|
423
|
-
|
|
424
|
-
}
|
|
425
|
-
class
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
$(this, "$$set");
|
|
443
|
-
}
|
|
388
|
+
a, a;
|
|
389
|
+
}
|
|
390
|
+
class fr {
|
|
391
|
+
/**
|
|
392
|
+
* ### PRIVATE API
|
|
393
|
+
*
|
|
394
|
+
* Do not use, may change at any time
|
|
395
|
+
*
|
|
396
|
+
* @type {any}
|
|
397
|
+
*/
|
|
398
|
+
$$ = void 0;
|
|
399
|
+
/**
|
|
400
|
+
* ### PRIVATE API
|
|
401
|
+
*
|
|
402
|
+
* Do not use, may change at any time
|
|
403
|
+
*
|
|
404
|
+
* @type {any}
|
|
405
|
+
*/
|
|
406
|
+
$$set = void 0;
|
|
444
407
|
/** @returns {void} */
|
|
445
408
|
$destroy() {
|
|
446
|
-
|
|
409
|
+
ur(this, 1), this.$destroy = $;
|
|
447
410
|
}
|
|
448
411
|
/**
|
|
449
412
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -452,8 +415,8 @@ class Sr {
|
|
|
452
415
|
* @returns {() => void}
|
|
453
416
|
*/
|
|
454
417
|
$on(t, r) {
|
|
455
|
-
if (!
|
|
456
|
-
return
|
|
418
|
+
if (!We(r))
|
|
419
|
+
return $;
|
|
457
420
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
458
421
|
return n.push(r), () => {
|
|
459
422
|
const i = n.indexOf(r);
|
|
@@ -465,159 +428,159 @@ class Sr {
|
|
|
465
428
|
* @returns {void}
|
|
466
429
|
*/
|
|
467
430
|
$set(t) {
|
|
468
|
-
this.$$set && !
|
|
431
|
+
this.$$set && !zt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
469
432
|
}
|
|
470
433
|
}
|
|
471
|
-
const
|
|
472
|
-
typeof window
|
|
473
|
-
const
|
|
474
|
-
function
|
|
434
|
+
const dr = "4";
|
|
435
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(dr);
|
|
436
|
+
const Y = [];
|
|
437
|
+
function mr(e, t) {
|
|
475
438
|
return {
|
|
476
|
-
subscribe:
|
|
439
|
+
subscribe: Se(e, t).subscribe
|
|
477
440
|
};
|
|
478
441
|
}
|
|
479
|
-
function
|
|
442
|
+
function Se(e, t = $) {
|
|
480
443
|
let r;
|
|
481
444
|
const n = /* @__PURE__ */ new Set();
|
|
482
|
-
function i(
|
|
483
|
-
if (
|
|
484
|
-
const
|
|
445
|
+
function i(s) {
|
|
446
|
+
if (yt(e, s) && (e = s, r)) {
|
|
447
|
+
const h = !Y.length;
|
|
485
448
|
for (const u of n)
|
|
486
|
-
u[1](),
|
|
487
|
-
if (
|
|
488
|
-
for (let u = 0; u <
|
|
489
|
-
|
|
490
|
-
|
|
449
|
+
u[1](), Y.push(u, e);
|
|
450
|
+
if (h) {
|
|
451
|
+
for (let u = 0; u < Y.length; u += 2)
|
|
452
|
+
Y[u][0](Y[u + 1]);
|
|
453
|
+
Y.length = 0;
|
|
491
454
|
}
|
|
492
455
|
}
|
|
493
456
|
}
|
|
494
|
-
function o(
|
|
495
|
-
i(
|
|
457
|
+
function o(s) {
|
|
458
|
+
i(s(e));
|
|
496
459
|
}
|
|
497
|
-
function s
|
|
498
|
-
const u = [
|
|
499
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
460
|
+
function a(s, h = $) {
|
|
461
|
+
const u = [s, h];
|
|
462
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || $), s(e), () => {
|
|
500
463
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
501
464
|
};
|
|
502
465
|
}
|
|
503
|
-
return { set: i, update: o, subscribe:
|
|
466
|
+
return { set: i, update: o, subscribe: a };
|
|
504
467
|
}
|
|
505
|
-
function
|
|
468
|
+
function se(e, t, r) {
|
|
506
469
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
507
470
|
if (!i.every(Boolean))
|
|
508
471
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
509
472
|
const o = t.length < 2;
|
|
510
|
-
return
|
|
511
|
-
let
|
|
473
|
+
return mr(r, (a, s) => {
|
|
474
|
+
let h = !1;
|
|
512
475
|
const u = [];
|
|
513
|
-
let
|
|
476
|
+
let l = 0, f = $;
|
|
514
477
|
const d = () => {
|
|
515
|
-
if (
|
|
478
|
+
if (l)
|
|
516
479
|
return;
|
|
517
480
|
f();
|
|
518
|
-
const v = t(n ? u[0] : u,
|
|
519
|
-
o ?
|
|
481
|
+
const v = t(n ? u[0] : u, a, s);
|
|
482
|
+
o ? a(v) : f = We(v) ? v : $;
|
|
520
483
|
}, b = i.map(
|
|
521
|
-
(v, _) =>
|
|
484
|
+
(v, _) => Et(
|
|
522
485
|
v,
|
|
523
486
|
(S) => {
|
|
524
|
-
u[_] = S,
|
|
487
|
+
u[_] = S, l &= ~(1 << _), h && d();
|
|
525
488
|
},
|
|
526
489
|
() => {
|
|
527
|
-
|
|
490
|
+
l |= 1 << _;
|
|
528
491
|
}
|
|
529
492
|
)
|
|
530
493
|
);
|
|
531
|
-
return
|
|
532
|
-
|
|
494
|
+
return h = !0, d(), function() {
|
|
495
|
+
oe(b), f(), h = !1;
|
|
533
496
|
};
|
|
534
497
|
});
|
|
535
498
|
}
|
|
536
|
-
function
|
|
499
|
+
function pr(e) {
|
|
537
500
|
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
538
501
|
}
|
|
539
|
-
var
|
|
540
|
-
return
|
|
502
|
+
var br = function(t) {
|
|
503
|
+
return gr(t) && !vr(t);
|
|
541
504
|
};
|
|
542
|
-
function
|
|
505
|
+
function gr(e) {
|
|
543
506
|
return !!e && typeof e == "object";
|
|
544
507
|
}
|
|
545
|
-
function
|
|
508
|
+
function vr(e) {
|
|
546
509
|
var t = Object.prototype.toString.call(e);
|
|
547
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
510
|
+
return t === "[object RegExp]" || t === "[object Date]" || xr(e);
|
|
548
511
|
}
|
|
549
|
-
var
|
|
550
|
-
function
|
|
551
|
-
return e.$$typeof ===
|
|
512
|
+
var yr = typeof Symbol == "function" && Symbol.for, Er = yr ? Symbol.for("react.element") : 60103;
|
|
513
|
+
function xr(e) {
|
|
514
|
+
return e.$$typeof === Er;
|
|
552
515
|
}
|
|
553
|
-
function
|
|
516
|
+
function _r(e) {
|
|
554
517
|
return Array.isArray(e) ? [] : {};
|
|
555
518
|
}
|
|
556
|
-
function
|
|
557
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
519
|
+
function fe(e, t) {
|
|
520
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? te(_r(e), e, t) : e;
|
|
558
521
|
}
|
|
559
|
-
function
|
|
522
|
+
function Sr(e, t, r) {
|
|
560
523
|
return e.concat(t).map(function(n) {
|
|
561
|
-
return
|
|
524
|
+
return fe(n, r);
|
|
562
525
|
});
|
|
563
526
|
}
|
|
564
|
-
function
|
|
527
|
+
function Tr(e, t) {
|
|
565
528
|
if (!t.customMerge)
|
|
566
|
-
return
|
|
529
|
+
return te;
|
|
567
530
|
var r = t.customMerge(e);
|
|
568
|
-
return typeof r == "function" ? r :
|
|
531
|
+
return typeof r == "function" ? r : te;
|
|
569
532
|
}
|
|
570
|
-
function
|
|
533
|
+
function Hr(e) {
|
|
571
534
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
572
535
|
return Object.propertyIsEnumerable.call(e, t);
|
|
573
536
|
}) : [];
|
|
574
537
|
}
|
|
575
|
-
function
|
|
576
|
-
return Object.keys(e).concat(
|
|
538
|
+
function et(e) {
|
|
539
|
+
return Object.keys(e).concat(Hr(e));
|
|
577
540
|
}
|
|
578
|
-
function
|
|
541
|
+
function _t(e, t) {
|
|
579
542
|
try {
|
|
580
543
|
return t in e;
|
|
581
|
-
} catch
|
|
544
|
+
} catch {
|
|
582
545
|
return !1;
|
|
583
546
|
}
|
|
584
547
|
}
|
|
585
|
-
function
|
|
586
|
-
return
|
|
548
|
+
function Ar(e, t) {
|
|
549
|
+
return _t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
587
550
|
}
|
|
588
|
-
function
|
|
551
|
+
function Br(e, t, r) {
|
|
589
552
|
var n = {};
|
|
590
|
-
return r.isMergeableObject(e) &&
|
|
591
|
-
n[i] =
|
|
592
|
-
}),
|
|
593
|
-
|
|
553
|
+
return r.isMergeableObject(e) && et(e).forEach(function(i) {
|
|
554
|
+
n[i] = fe(e[i], r);
|
|
555
|
+
}), et(t).forEach(function(i) {
|
|
556
|
+
Ar(e, i) || (_t(e, i) && r.isMergeableObject(t[i]) ? n[i] = Tr(i, r)(e[i], t[i], r) : n[i] = fe(t[i], r));
|
|
594
557
|
}), n;
|
|
595
558
|
}
|
|
596
|
-
function
|
|
597
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
559
|
+
function te(e, t, r) {
|
|
560
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Sr, r.isMergeableObject = r.isMergeableObject || br, r.cloneUnlessOtherwiseSpecified = fe;
|
|
598
561
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
599
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
562
|
+
return o ? n ? r.arrayMerge(e, t, r) : Br(e, t, r) : fe(t, r);
|
|
600
563
|
}
|
|
601
|
-
|
|
564
|
+
te.all = function(t, r) {
|
|
602
565
|
if (!Array.isArray(t))
|
|
603
566
|
throw new Error("first argument should be an array");
|
|
604
567
|
return t.reduce(function(n, i) {
|
|
605
|
-
return
|
|
568
|
+
return te(n, i, r);
|
|
606
569
|
}, {});
|
|
607
570
|
};
|
|
608
|
-
var
|
|
609
|
-
const
|
|
610
|
-
var
|
|
611
|
-
return
|
|
571
|
+
var wr = te, Pr = wr;
|
|
572
|
+
const Cr = /* @__PURE__ */ pr(Pr);
|
|
573
|
+
var Ue = function(e, t) {
|
|
574
|
+
return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
612
575
|
r.__proto__ = n;
|
|
613
576
|
} || function(r, n) {
|
|
614
577
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
615
|
-
},
|
|
578
|
+
}, Ue(e, t);
|
|
616
579
|
};
|
|
617
|
-
function
|
|
580
|
+
function Te(e, t) {
|
|
618
581
|
if (typeof t != "function" && t !== null)
|
|
619
582
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
620
|
-
|
|
583
|
+
Ue(e, t);
|
|
621
584
|
function r() {
|
|
622
585
|
this.constructor = e;
|
|
623
586
|
}
|
|
@@ -632,7 +595,7 @@ var g = function() {
|
|
|
632
595
|
return t;
|
|
633
596
|
}, g.apply(this, arguments);
|
|
634
597
|
};
|
|
635
|
-
function
|
|
598
|
+
function Ir(e, t) {
|
|
636
599
|
var r = {};
|
|
637
600
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
638
601
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -640,45 +603,45 @@ function kr(e, t) {
|
|
|
640
603
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
641
604
|
return r;
|
|
642
605
|
}
|
|
643
|
-
function
|
|
606
|
+
function Pe(e, t, r) {
|
|
644
607
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
645
608
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
646
609
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
647
610
|
}
|
|
648
|
-
function
|
|
649
|
-
var r = t && t.cache ? t.cache :
|
|
611
|
+
function Ce(e, t) {
|
|
612
|
+
var r = t && t.cache ? t.cache : Ur, n = t && t.serializer ? t.serializer : Rr, i = t && t.strategy ? t.strategy : Or;
|
|
650
613
|
return i(e, {
|
|
651
614
|
cache: r,
|
|
652
615
|
serializer: n
|
|
653
616
|
});
|
|
654
617
|
}
|
|
655
|
-
function
|
|
618
|
+
function Nr(e) {
|
|
656
619
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
657
620
|
}
|
|
658
|
-
function
|
|
659
|
-
var i =
|
|
660
|
-
return typeof o
|
|
621
|
+
function St(e, t, r, n) {
|
|
622
|
+
var i = Nr(n) ? n : r(n), o = t.get(i);
|
|
623
|
+
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
661
624
|
}
|
|
662
|
-
function
|
|
625
|
+
function Tt(e, t, r) {
|
|
663
626
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
664
|
-
return typeof o
|
|
627
|
+
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
665
628
|
}
|
|
666
|
-
function
|
|
629
|
+
function Ze(e, t, r, n, i) {
|
|
667
630
|
return r.bind(t, e, n, i);
|
|
668
631
|
}
|
|
669
|
-
function
|
|
670
|
-
var r = e.length === 1 ?
|
|
671
|
-
return
|
|
632
|
+
function Or(e, t) {
|
|
633
|
+
var r = e.length === 1 ? St : Tt;
|
|
634
|
+
return Ze(e, this, r, t.cache.create(), t.serializer);
|
|
672
635
|
}
|
|
673
|
-
function
|
|
674
|
-
return
|
|
636
|
+
function Mr(e, t) {
|
|
637
|
+
return Ze(e, this, Tt, t.cache.create(), t.serializer);
|
|
675
638
|
}
|
|
676
|
-
function
|
|
677
|
-
return
|
|
639
|
+
function Lr(e, t) {
|
|
640
|
+
return Ze(e, this, St, t.cache.create(), t.serializer);
|
|
678
641
|
}
|
|
679
|
-
var
|
|
642
|
+
var Rr = function() {
|
|
680
643
|
return JSON.stringify(arguments);
|
|
681
|
-
},
|
|
644
|
+
}, $r = (
|
|
682
645
|
/** @class */
|
|
683
646
|
function() {
|
|
684
647
|
function e() {
|
|
@@ -690,13 +653,13 @@ var Wr = function() {
|
|
|
690
653
|
this.cache[t] = r;
|
|
691
654
|
}, e;
|
|
692
655
|
}()
|
|
693
|
-
),
|
|
656
|
+
), Ur = {
|
|
694
657
|
create: function() {
|
|
695
|
-
return new
|
|
658
|
+
return new $r();
|
|
696
659
|
}
|
|
697
|
-
},
|
|
698
|
-
variadic:
|
|
699
|
-
monadic:
|
|
660
|
+
}, Ie = {
|
|
661
|
+
variadic: Mr,
|
|
662
|
+
monadic: Lr
|
|
700
663
|
}, m;
|
|
701
664
|
(function(e) {
|
|
702
665
|
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";
|
|
@@ -705,47 +668,47 @@ var x;
|
|
|
705
668
|
(function(e) {
|
|
706
669
|
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";
|
|
707
670
|
})(x || (x = {}));
|
|
708
|
-
var
|
|
671
|
+
var re;
|
|
709
672
|
(function(e) {
|
|
710
673
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
711
|
-
})(
|
|
712
|
-
function
|
|
674
|
+
})(re || (re = {}));
|
|
675
|
+
function tt(e) {
|
|
713
676
|
return e.type === x.literal;
|
|
714
677
|
}
|
|
715
|
-
function
|
|
678
|
+
function Dr(e) {
|
|
716
679
|
return e.type === x.argument;
|
|
717
680
|
}
|
|
718
|
-
function
|
|
681
|
+
function Ht(e) {
|
|
719
682
|
return e.type === x.number;
|
|
720
683
|
}
|
|
721
|
-
function
|
|
684
|
+
function At(e) {
|
|
722
685
|
return e.type === x.date;
|
|
723
686
|
}
|
|
724
|
-
function
|
|
687
|
+
function Bt(e) {
|
|
725
688
|
return e.type === x.time;
|
|
726
689
|
}
|
|
727
|
-
function
|
|
690
|
+
function wt(e) {
|
|
728
691
|
return e.type === x.select;
|
|
729
692
|
}
|
|
730
|
-
function
|
|
693
|
+
function Pt(e) {
|
|
731
694
|
return e.type === x.plural;
|
|
732
695
|
}
|
|
733
|
-
function
|
|
696
|
+
function Fr(e) {
|
|
734
697
|
return e.type === x.pound;
|
|
735
698
|
}
|
|
736
|
-
function
|
|
699
|
+
function Ct(e) {
|
|
737
700
|
return e.type === x.tag;
|
|
738
701
|
}
|
|
739
|
-
function
|
|
740
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
702
|
+
function It(e) {
|
|
703
|
+
return !!(e && typeof e == "object" && e.type === re.number);
|
|
741
704
|
}
|
|
742
|
-
function
|
|
743
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
705
|
+
function De(e) {
|
|
706
|
+
return !!(e && typeof e == "object" && e.type === re.dateTime);
|
|
744
707
|
}
|
|
745
|
-
var
|
|
746
|
-
function
|
|
708
|
+
var Nt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Gr = /(?:[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;
|
|
709
|
+
function kr(e) {
|
|
747
710
|
var t = {};
|
|
748
|
-
return e.replace(
|
|
711
|
+
return e.replace(Gr, function(r) {
|
|
749
712
|
var n = r.length;
|
|
750
713
|
switch (r[0]) {
|
|
751
714
|
case "G":
|
|
@@ -834,36 +797,36 @@ function Kr(e) {
|
|
|
834
797
|
return "";
|
|
835
798
|
}), t;
|
|
836
799
|
}
|
|
837
|
-
var
|
|
838
|
-
function
|
|
800
|
+
var jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
801
|
+
function Vr(e) {
|
|
839
802
|
if (e.length === 0)
|
|
840
803
|
throw new Error("Number skeleton cannot be empty");
|
|
841
|
-
for (var t = e.split(
|
|
804
|
+
for (var t = e.split(jr).filter(function(d) {
|
|
842
805
|
return d.length > 0;
|
|
843
806
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
844
|
-
var o = i[n],
|
|
845
|
-
if (
|
|
807
|
+
var o = i[n], a = o.split("/");
|
|
808
|
+
if (a.length === 0)
|
|
846
809
|
throw new Error("Invalid number skeleton");
|
|
847
|
-
for (var
|
|
848
|
-
var f =
|
|
810
|
+
for (var s = a[0], h = a.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
811
|
+
var f = l[u];
|
|
849
812
|
if (f.length === 0)
|
|
850
813
|
throw new Error("Invalid number skeleton");
|
|
851
814
|
}
|
|
852
|
-
r.push({ stem:
|
|
815
|
+
r.push({ stem: s, options: h });
|
|
853
816
|
}
|
|
854
817
|
return r;
|
|
855
818
|
}
|
|
856
|
-
function
|
|
819
|
+
function Xr(e) {
|
|
857
820
|
return e.replace(/^(.*?)-/, "");
|
|
858
821
|
}
|
|
859
|
-
var
|
|
860
|
-
function
|
|
822
|
+
var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ot = /^(@+)?(\+|#+)?[rs]?$/g, zr = /(\*)(0+)|(#+)(0+)|(0+)/g, Mt = /^(0+)$/;
|
|
823
|
+
function nt(e) {
|
|
861
824
|
var t = {};
|
|
862
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
825
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ot, function(r, n, i) {
|
|
863
826
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
864
827
|
}), t;
|
|
865
828
|
}
|
|
866
|
-
function
|
|
829
|
+
function Lt(e) {
|
|
867
830
|
switch (e) {
|
|
868
831
|
case "sign-auto":
|
|
869
832
|
return {
|
|
@@ -903,7 +866,7 @@ function Gt(e) {
|
|
|
903
866
|
};
|
|
904
867
|
}
|
|
905
868
|
}
|
|
906
|
-
function
|
|
869
|
+
function Wr(e) {
|
|
907
870
|
var t;
|
|
908
871
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
909
872
|
notation: "engineering"
|
|
@@ -911,17 +874,17 @@ function on(e) {
|
|
|
911
874
|
notation: "scientific"
|
|
912
875
|
}, e = e.slice(1)), t) {
|
|
913
876
|
var r = e.slice(0, 2);
|
|
914
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
877
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Mt.test(e))
|
|
915
878
|
throw new Error("Malformed concise eng/scientific notation");
|
|
916
879
|
t.minimumIntegerDigits = e.length;
|
|
917
880
|
}
|
|
918
881
|
return t;
|
|
919
882
|
}
|
|
920
|
-
function
|
|
921
|
-
var t = {}, r =
|
|
883
|
+
function it(e) {
|
|
884
|
+
var t = {}, r = Lt(e);
|
|
922
885
|
return r || t;
|
|
923
886
|
}
|
|
924
|
-
function
|
|
887
|
+
function Zr(e) {
|
|
925
888
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
926
889
|
var i = n[r];
|
|
927
890
|
switch (i.stem) {
|
|
@@ -945,7 +908,7 @@ function sn(e) {
|
|
|
945
908
|
continue;
|
|
946
909
|
case "measure-unit":
|
|
947
910
|
case "unit":
|
|
948
|
-
t.style = "unit", t.unit =
|
|
911
|
+
t.style = "unit", t.unit = Xr(i.options[0]);
|
|
949
912
|
continue;
|
|
950
913
|
case "compact-short":
|
|
951
914
|
case "K":
|
|
@@ -956,13 +919,13 @@ function sn(e) {
|
|
|
956
919
|
t.notation = "compact", t.compactDisplay = "long";
|
|
957
920
|
continue;
|
|
958
921
|
case "scientific":
|
|
959
|
-
t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(
|
|
960
|
-
return g(g({},
|
|
922
|
+
t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
923
|
+
return g(g({}, h), it(u));
|
|
961
924
|
}, {}));
|
|
962
925
|
continue;
|
|
963
926
|
case "engineering":
|
|
964
|
-
t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(
|
|
965
|
-
return g(g({},
|
|
927
|
+
t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
928
|
+
return g(g({}, h), it(u));
|
|
966
929
|
}, {}));
|
|
967
930
|
continue;
|
|
968
931
|
case "notation-simple":
|
|
@@ -1007,9 +970,9 @@ function sn(e) {
|
|
|
1007
970
|
case "integer-width":
|
|
1008
971
|
if (i.options.length > 1)
|
|
1009
972
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1010
|
-
i.options[0].replace(
|
|
973
|
+
i.options[0].replace(zr, function(h, u, l, f, d, b) {
|
|
1011
974
|
if (u)
|
|
1012
|
-
t.minimumIntegerDigits =
|
|
975
|
+
t.minimumIntegerDigits = l.length;
|
|
1013
976
|
else {
|
|
1014
977
|
if (f && d)
|
|
1015
978
|
throw new Error("We currently do not support maximum integer digits");
|
|
@@ -1020,32 +983,32 @@ function sn(e) {
|
|
|
1020
983
|
});
|
|
1021
984
|
continue;
|
|
1022
985
|
}
|
|
1023
|
-
if (
|
|
986
|
+
if (Mt.test(i.stem)) {
|
|
1024
987
|
t.minimumIntegerDigits = i.stem.length;
|
|
1025
988
|
continue;
|
|
1026
989
|
}
|
|
1027
|
-
if (
|
|
990
|
+
if (rt.test(i.stem)) {
|
|
1028
991
|
if (i.options.length > 1)
|
|
1029
992
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1030
|
-
i.stem.replace(
|
|
1031
|
-
return
|
|
993
|
+
i.stem.replace(rt, function(h, u, l, f, d, b) {
|
|
994
|
+
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : d && b ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1032
995
|
});
|
|
1033
996
|
var o = i.options[0];
|
|
1034
|
-
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t),
|
|
997
|
+
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), nt(o)));
|
|
1035
998
|
continue;
|
|
1036
999
|
}
|
|
1037
|
-
if (
|
|
1038
|
-
t = g(g({}, t),
|
|
1000
|
+
if (Ot.test(i.stem)) {
|
|
1001
|
+
t = g(g({}, t), nt(i.stem));
|
|
1039
1002
|
continue;
|
|
1040
1003
|
}
|
|
1041
|
-
var
|
|
1042
|
-
s && (t = g(g({}, t), s));
|
|
1043
|
-
var a = on(i.stem);
|
|
1004
|
+
var a = Lt(i.stem);
|
|
1044
1005
|
a && (t = g(g({}, t), a));
|
|
1006
|
+
var s = Wr(i.stem);
|
|
1007
|
+
s && (t = g(g({}, t), s));
|
|
1045
1008
|
}
|
|
1046
1009
|
return t;
|
|
1047
1010
|
}
|
|
1048
|
-
var
|
|
1011
|
+
var ge = {
|
|
1049
1012
|
"001": [
|
|
1050
1013
|
"H",
|
|
1051
1014
|
"h"
|
|
@@ -2460,22 +2423,22 @@ var ye = {
|
|
|
2460
2423
|
"h"
|
|
2461
2424
|
]
|
|
2462
2425
|
};
|
|
2463
|
-
function
|
|
2426
|
+
function Jr(e, t) {
|
|
2464
2427
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2465
2428
|
var i = e.charAt(n);
|
|
2466
2429
|
if (i === "j") {
|
|
2467
2430
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2468
2431
|
o++, n++;
|
|
2469
|
-
var
|
|
2470
|
-
for ((u == "H" || u == "k") && (
|
|
2471
|
-
r +=
|
|
2472
|
-
for (;
|
|
2432
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Qr(t);
|
|
2433
|
+
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2434
|
+
r += h;
|
|
2435
|
+
for (; a-- > 0; )
|
|
2473
2436
|
r = u + r;
|
|
2474
2437
|
} else i === "J" ? r += "H" : r += i;
|
|
2475
2438
|
}
|
|
2476
2439
|
return r;
|
|
2477
2440
|
}
|
|
2478
|
-
function
|
|
2441
|
+
function Qr(e) {
|
|
2479
2442
|
var t = e.hourCycle;
|
|
2480
2443
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2481
2444
|
e.hourCycles && // @ts-ignore
|
|
@@ -2494,23 +2457,23 @@ function un(e) {
|
|
|
2494
2457
|
}
|
|
2495
2458
|
var r = e.language, n;
|
|
2496
2459
|
r !== "root" && (n = e.maximize().region);
|
|
2497
|
-
var i =
|
|
2460
|
+
var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
2498
2461
|
return i[0];
|
|
2499
2462
|
}
|
|
2500
|
-
var
|
|
2463
|
+
var Ne, qr = new RegExp("^".concat(Nt.source, "*")), Yr = new RegExp("".concat(Nt.source, "*$"));
|
|
2501
2464
|
function p(e, t) {
|
|
2502
2465
|
return { start: e, end: t };
|
|
2503
2466
|
}
|
|
2504
|
-
var
|
|
2467
|
+
var Kr = !!String.prototype.startsWith && "_a".startsWith("a", 1), en = !!String.fromCodePoint, tn = !!Object.fromEntries, rn = !!String.prototype.codePointAt, nn = !!String.prototype.trimStart, on = !!String.prototype.trimEnd, sn = !!Number.isSafeInteger, an = sn ? Number.isSafeInteger : function(e) {
|
|
2505
2468
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2506
|
-
},
|
|
2469
|
+
}, Fe = !0;
|
|
2507
2470
|
try {
|
|
2508
|
-
var
|
|
2509
|
-
|
|
2510
|
-
} catch
|
|
2511
|
-
|
|
2471
|
+
var un = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2472
|
+
Fe = ((Ne = un.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
|
|
2473
|
+
} catch {
|
|
2474
|
+
Fe = !1;
|
|
2512
2475
|
}
|
|
2513
|
-
var
|
|
2476
|
+
var ot = Kr ? (
|
|
2514
2477
|
// Native
|
|
2515
2478
|
function(t, r, n) {
|
|
2516
2479
|
return t.startsWith(r, n);
|
|
@@ -2520,31 +2483,31 @@ var ct = cn ? (
|
|
|
2520
2483
|
function(t, r, n) {
|
|
2521
2484
|
return t.slice(n, n + r.length) === r;
|
|
2522
2485
|
}
|
|
2523
|
-
),
|
|
2486
|
+
), Ge = en ? String.fromCodePoint : (
|
|
2524
2487
|
// IE11
|
|
2525
2488
|
function() {
|
|
2526
2489
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2527
2490
|
t[r] = arguments[r];
|
|
2528
|
-
for (var n = "", i = t.length, o = 0,
|
|
2529
|
-
if (
|
|
2530
|
-
throw RangeError(
|
|
2531
|
-
n +=
|
|
2491
|
+
for (var n = "", i = t.length, o = 0, a; i > o; ) {
|
|
2492
|
+
if (a = t[o++], a > 1114111)
|
|
2493
|
+
throw RangeError(a + " is not a valid code point");
|
|
2494
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
2532
2495
|
}
|
|
2533
2496
|
return n;
|
|
2534
2497
|
}
|
|
2535
|
-
),
|
|
2498
|
+
), st = (
|
|
2536
2499
|
// native
|
|
2537
|
-
|
|
2500
|
+
tn ? Object.fromEntries : (
|
|
2538
2501
|
// Ponyfill
|
|
2539
2502
|
function(t) {
|
|
2540
2503
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2541
|
-
var o = i[n],
|
|
2542
|
-
r[
|
|
2504
|
+
var o = i[n], a = o[0], s = o[1];
|
|
2505
|
+
r[a] = s;
|
|
2543
2506
|
}
|
|
2544
2507
|
return r;
|
|
2545
2508
|
}
|
|
2546
2509
|
)
|
|
2547
|
-
),
|
|
2510
|
+
), Rt = rn ? (
|
|
2548
2511
|
// Native
|
|
2549
2512
|
function(t, r) {
|
|
2550
2513
|
return t.codePointAt(r);
|
|
@@ -2558,7 +2521,7 @@ var ct = cn ? (
|
|
|
2558
2521
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2559
2522
|
}
|
|
2560
2523
|
}
|
|
2561
|
-
),
|
|
2524
|
+
), ln = nn ? (
|
|
2562
2525
|
// Native
|
|
2563
2526
|
function(t) {
|
|
2564
2527
|
return t.trimStart();
|
|
@@ -2566,9 +2529,9 @@ var ct = cn ? (
|
|
|
2566
2529
|
) : (
|
|
2567
2530
|
// Ponyfill
|
|
2568
2531
|
function(t) {
|
|
2569
|
-
return t.replace(
|
|
2532
|
+
return t.replace(qr, "");
|
|
2570
2533
|
}
|
|
2571
|
-
),
|
|
2534
|
+
), hn = on ? (
|
|
2572
2535
|
// Native
|
|
2573
2536
|
function(t) {
|
|
2574
2537
|
return t.trimEnd();
|
|
@@ -2576,32 +2539,32 @@ var ct = cn ? (
|
|
|
2576
2539
|
) : (
|
|
2577
2540
|
// Ponyfill
|
|
2578
2541
|
function(t) {
|
|
2579
|
-
return t.replace(
|
|
2542
|
+
return t.replace(Yr, "");
|
|
2580
2543
|
}
|
|
2581
2544
|
);
|
|
2582
|
-
function
|
|
2545
|
+
function $t(e, t) {
|
|
2583
2546
|
return new RegExp(e, t);
|
|
2584
2547
|
}
|
|
2585
|
-
var
|
|
2586
|
-
if (
|
|
2587
|
-
var
|
|
2588
|
-
|
|
2548
|
+
var ke;
|
|
2549
|
+
if (Fe) {
|
|
2550
|
+
var at = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2551
|
+
ke = function(t, r) {
|
|
2589
2552
|
var n;
|
|
2590
|
-
|
|
2591
|
-
var i =
|
|
2553
|
+
at.lastIndex = r;
|
|
2554
|
+
var i = at.exec(t);
|
|
2592
2555
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2593
2556
|
};
|
|
2594
2557
|
} else
|
|
2595
|
-
|
|
2558
|
+
ke = function(t, r) {
|
|
2596
2559
|
for (var n = []; ; ) {
|
|
2597
|
-
var i =
|
|
2598
|
-
if (i === void 0 ||
|
|
2560
|
+
var i = Rt(t, r);
|
|
2561
|
+
if (i === void 0 || Ut(i) || mn(i))
|
|
2599
2562
|
break;
|
|
2600
2563
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2601
2564
|
}
|
|
2602
|
-
return
|
|
2565
|
+
return Ge.apply(void 0, n);
|
|
2603
2566
|
};
|
|
2604
|
-
var
|
|
2567
|
+
var cn = (
|
|
2605
2568
|
/** @class */
|
|
2606
2569
|
function() {
|
|
2607
2570
|
function e(t, r) {
|
|
@@ -2615,33 +2578,33 @@ var _n = (
|
|
|
2615
2578
|
for (var i = []; !this.isEOF(); ) {
|
|
2616
2579
|
var o = this.char();
|
|
2617
2580
|
if (o === 123) {
|
|
2618
|
-
var
|
|
2619
|
-
if (
|
|
2620
|
-
return
|
|
2621
|
-
i.push(
|
|
2581
|
+
var a = this.parseArgument(t, n);
|
|
2582
|
+
if (a.err)
|
|
2583
|
+
return a;
|
|
2584
|
+
i.push(a.val);
|
|
2622
2585
|
} else {
|
|
2623
2586
|
if (o === 125 && t > 0)
|
|
2624
2587
|
break;
|
|
2625
2588
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2626
|
-
var
|
|
2589
|
+
var s = this.clonePosition();
|
|
2627
2590
|
this.bump(), i.push({
|
|
2628
2591
|
type: x.pound,
|
|
2629
|
-
location: p(
|
|
2592
|
+
location: p(s, this.clonePosition())
|
|
2630
2593
|
});
|
|
2631
2594
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2632
2595
|
if (n)
|
|
2633
2596
|
break;
|
|
2634
2597
|
return this.error(m.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
|
|
2635
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2636
|
-
var
|
|
2637
|
-
if (
|
|
2638
|
-
return
|
|
2639
|
-
i.push(
|
|
2598
|
+
} else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
|
|
2599
|
+
var a = this.parseTag(t, r);
|
|
2600
|
+
if (a.err)
|
|
2601
|
+
return a;
|
|
2602
|
+
i.push(a.val);
|
|
2640
2603
|
} else {
|
|
2641
|
-
var
|
|
2642
|
-
if (
|
|
2643
|
-
return
|
|
2644
|
-
i.push(
|
|
2604
|
+
var a = this.parseLiteral(t, r);
|
|
2605
|
+
if (a.err)
|
|
2606
|
+
return a;
|
|
2607
|
+
i.push(a.val);
|
|
2645
2608
|
}
|
|
2646
2609
|
}
|
|
2647
2610
|
}
|
|
@@ -2663,27 +2626,27 @@ var _n = (
|
|
|
2663
2626
|
var o = this.parseMessage(t + 1, r, !0);
|
|
2664
2627
|
if (o.err)
|
|
2665
2628
|
return o;
|
|
2666
|
-
var
|
|
2629
|
+
var a = o.val, s = this.clonePosition();
|
|
2667
2630
|
if (this.bumpIf("</")) {
|
|
2668
|
-
if (this.isEOF() || !
|
|
2669
|
-
return this.error(m.INVALID_TAG, p(
|
|
2670
|
-
var
|
|
2671
|
-
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, p(
|
|
2631
|
+
if (this.isEOF() || !je(this.char()))
|
|
2632
|
+
return this.error(m.INVALID_TAG, p(s, this.clonePosition()));
|
|
2633
|
+
var h = this.clonePosition(), u = this.parseTagName();
|
|
2634
|
+
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, p(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2672
2635
|
val: {
|
|
2673
2636
|
type: x.tag,
|
|
2674
2637
|
value: i,
|
|
2675
|
-
children:
|
|
2638
|
+
children: a,
|
|
2676
2639
|
location: p(n, this.clonePosition())
|
|
2677
2640
|
},
|
|
2678
2641
|
err: null
|
|
2679
|
-
} : this.error(m.INVALID_TAG, p(
|
|
2642
|
+
} : this.error(m.INVALID_TAG, p(s, this.clonePosition())));
|
|
2680
2643
|
} else
|
|
2681
2644
|
return this.error(m.UNCLOSED_TAG, p(n, this.clonePosition()));
|
|
2682
2645
|
} else
|
|
2683
2646
|
return this.error(m.INVALID_TAG, p(n, this.clonePosition()));
|
|
2684
2647
|
}, e.prototype.parseTagName = function() {
|
|
2685
2648
|
var t = this.offset();
|
|
2686
|
-
for (this.bump(); !this.isEOF() &&
|
|
2649
|
+
for (this.bump(); !this.isEOF() && dn(this.char()); )
|
|
2687
2650
|
this.bump();
|
|
2688
2651
|
return this.message.slice(t, this.offset());
|
|
2689
2652
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2693,26 +2656,26 @@ var _n = (
|
|
|
2693
2656
|
i += o;
|
|
2694
2657
|
continue;
|
|
2695
2658
|
}
|
|
2696
|
-
var
|
|
2697
|
-
if (s) {
|
|
2698
|
-
i += s;
|
|
2699
|
-
continue;
|
|
2700
|
-
}
|
|
2701
|
-
var a = this.tryParseLeftAngleBracket();
|
|
2659
|
+
var a = this.tryParseUnquoted(t, r);
|
|
2702
2660
|
if (a) {
|
|
2703
2661
|
i += a;
|
|
2704
2662
|
continue;
|
|
2705
2663
|
}
|
|
2664
|
+
var s = this.tryParseLeftAngleBracket();
|
|
2665
|
+
if (s) {
|
|
2666
|
+
i += s;
|
|
2667
|
+
continue;
|
|
2668
|
+
}
|
|
2706
2669
|
break;
|
|
2707
2670
|
}
|
|
2708
|
-
var
|
|
2671
|
+
var h = p(n, this.clonePosition());
|
|
2709
2672
|
return {
|
|
2710
|
-
val: { type: x.literal, value: i, location:
|
|
2673
|
+
val: { type: x.literal, value: i, location: h },
|
|
2711
2674
|
err: null
|
|
2712
2675
|
};
|
|
2713
2676
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2714
2677
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2715
|
-
!
|
|
2678
|
+
!fn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2716
2679
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2717
2680
|
if (this.isEOF() || this.char() !== 39)
|
|
2718
2681
|
return null;
|
|
@@ -2746,12 +2709,12 @@ var _n = (
|
|
|
2746
2709
|
r.push(n);
|
|
2747
2710
|
this.bump();
|
|
2748
2711
|
}
|
|
2749
|
-
return
|
|
2712
|
+
return Ge.apply(void 0, r);
|
|
2750
2713
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2751
2714
|
if (this.isEOF())
|
|
2752
2715
|
return null;
|
|
2753
2716
|
var n = this.char();
|
|
2754
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2717
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
|
|
2755
2718
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2756
2719
|
var n = this.clonePosition();
|
|
2757
2720
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2780,15 +2743,15 @@ var _n = (
|
|
|
2780
2743
|
return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
2781
2744
|
}
|
|
2782
2745
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2783
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2746
|
+
var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
|
|
2784
2747
|
this.bumpTo(i);
|
|
2785
|
-
var o = this.clonePosition(),
|
|
2786
|
-
return { value: n, location:
|
|
2748
|
+
var o = this.clonePosition(), a = p(t, o);
|
|
2749
|
+
return { value: n, location: a };
|
|
2787
2750
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2788
|
-
var o,
|
|
2789
|
-
switch (
|
|
2751
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2752
|
+
switch (s) {
|
|
2790
2753
|
case "":
|
|
2791
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE, p(
|
|
2754
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, p(a, h));
|
|
2792
2755
|
case "number":
|
|
2793
2756
|
case "date":
|
|
2794
2757
|
case "time": {
|
|
@@ -2796,22 +2759,22 @@ var _n = (
|
|
|
2796
2759
|
var u = null;
|
|
2797
2760
|
if (this.bumpIf(",")) {
|
|
2798
2761
|
this.bumpSpace();
|
|
2799
|
-
var
|
|
2762
|
+
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2800
2763
|
if (f.err)
|
|
2801
2764
|
return f;
|
|
2802
|
-
var d =
|
|
2765
|
+
var d = hn(f.val);
|
|
2803
2766
|
if (d.length === 0)
|
|
2804
2767
|
return this.error(m.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
|
|
2805
|
-
var b = p(
|
|
2768
|
+
var b = p(l, this.clonePosition());
|
|
2806
2769
|
u = { style: d, styleLocation: b };
|
|
2807
2770
|
}
|
|
2808
2771
|
var v = this.tryParseArgumentClose(i);
|
|
2809
2772
|
if (v.err)
|
|
2810
2773
|
return v;
|
|
2811
2774
|
var _ = p(i, this.clonePosition());
|
|
2812
|
-
if (u &&
|
|
2813
|
-
var S =
|
|
2814
|
-
if (
|
|
2775
|
+
if (u && ot(u?.style, "::", 0)) {
|
|
2776
|
+
var S = ln(u.style.slice(2));
|
|
2777
|
+
if (s === "number") {
|
|
2815
2778
|
var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
2816
2779
|
return f.err ? f : {
|
|
2817
2780
|
val: { type: x.number, value: n, location: _, style: f.val },
|
|
@@ -2821,13 +2784,13 @@ var _n = (
|
|
|
2821
2784
|
if (S.length === 0)
|
|
2822
2785
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, _);
|
|
2823
2786
|
var R = S;
|
|
2824
|
-
this.locale && (R =
|
|
2787
|
+
this.locale && (R = Jr(S, this.locale));
|
|
2825
2788
|
var d = {
|
|
2826
|
-
type:
|
|
2789
|
+
type: re.dateTime,
|
|
2827
2790
|
pattern: R,
|
|
2828
2791
|
location: u.styleLocation,
|
|
2829
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2830
|
-
}, N =
|
|
2792
|
+
parsedOptions: this.shouldParseSkeletons ? kr(R) : {}
|
|
2793
|
+
}, N = s === "date" ? x.date : x.time;
|
|
2831
2794
|
return {
|
|
2832
2795
|
val: { type: N, value: n, location: _, style: d },
|
|
2833
2796
|
err: null
|
|
@@ -2836,10 +2799,10 @@ var _n = (
|
|
|
2836
2799
|
}
|
|
2837
2800
|
return {
|
|
2838
2801
|
val: {
|
|
2839
|
-
type:
|
|
2802
|
+
type: s === "number" ? x.number : s === "date" ? x.date : x.time,
|
|
2840
2803
|
value: n,
|
|
2841
2804
|
location: _,
|
|
2842
|
-
style: (o = u
|
|
2805
|
+
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
2843
2806
|
},
|
|
2844
2807
|
err: null
|
|
2845
2808
|
};
|
|
@@ -2852,7 +2815,7 @@ var _n = (
|
|
|
2852
2815
|
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(T, g({}, T)));
|
|
2853
2816
|
this.bumpSpace();
|
|
2854
2817
|
var H = this.parseIdentifierIfPossible(), I = 0;
|
|
2855
|
-
if (
|
|
2818
|
+
if (s !== "select" && H.value === "offset") {
|
|
2856
2819
|
if (!this.bumpIf(":"))
|
|
2857
2820
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
|
|
2858
2821
|
this.bumpSpace();
|
|
@@ -2861,35 +2824,35 @@ var _n = (
|
|
|
2861
2824
|
return f;
|
|
2862
2825
|
this.bumpSpace(), H = this.parseIdentifierIfPossible(), I = f.val;
|
|
2863
2826
|
}
|
|
2864
|
-
var
|
|
2865
|
-
if (
|
|
2866
|
-
return
|
|
2827
|
+
var U = this.tryParsePluralOrSelectOptions(t, s, r, H);
|
|
2828
|
+
if (U.err)
|
|
2829
|
+
return U;
|
|
2867
2830
|
var v = this.tryParseArgumentClose(i);
|
|
2868
2831
|
if (v.err)
|
|
2869
2832
|
return v;
|
|
2870
|
-
var
|
|
2871
|
-
return
|
|
2833
|
+
var j = p(i, this.clonePosition());
|
|
2834
|
+
return s === "select" ? {
|
|
2872
2835
|
val: {
|
|
2873
2836
|
type: x.select,
|
|
2874
2837
|
value: n,
|
|
2875
|
-
options:
|
|
2876
|
-
location:
|
|
2838
|
+
options: st(U.val),
|
|
2839
|
+
location: j
|
|
2877
2840
|
},
|
|
2878
2841
|
err: null
|
|
2879
2842
|
} : {
|
|
2880
2843
|
val: {
|
|
2881
2844
|
type: x.plural,
|
|
2882
2845
|
value: n,
|
|
2883
|
-
options:
|
|
2846
|
+
options: st(U.val),
|
|
2884
2847
|
offset: I,
|
|
2885
|
-
pluralType:
|
|
2886
|
-
location:
|
|
2848
|
+
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2849
|
+
location: j
|
|
2887
2850
|
},
|
|
2888
2851
|
err: null
|
|
2889
2852
|
};
|
|
2890
2853
|
}
|
|
2891
2854
|
default:
|
|
2892
|
-
return this.error(m.INVALID_ARGUMENT_TYPE, p(
|
|
2855
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, p(a, h));
|
|
2893
2856
|
}
|
|
2894
2857
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2895
2858
|
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -2931,34 +2894,34 @@ var _n = (
|
|
|
2931
2894
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2932
2895
|
var n = [];
|
|
2933
2896
|
try {
|
|
2934
|
-
n =
|
|
2935
|
-
} catch
|
|
2897
|
+
n = Vr(t);
|
|
2898
|
+
} catch {
|
|
2936
2899
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
2937
2900
|
}
|
|
2938
2901
|
return {
|
|
2939
2902
|
val: {
|
|
2940
|
-
type:
|
|
2903
|
+
type: re.number,
|
|
2941
2904
|
tokens: n,
|
|
2942
2905
|
location: r,
|
|
2943
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2906
|
+
parsedOptions: this.shouldParseSkeletons ? Zr(n) : {}
|
|
2944
2907
|
},
|
|
2945
2908
|
err: null
|
|
2946
2909
|
};
|
|
2947
2910
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2948
|
-
for (var o,
|
|
2911
|
+
for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
2949
2912
|
if (u.length === 0) {
|
|
2950
2913
|
var f = this.clonePosition();
|
|
2951
2914
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2952
2915
|
var d = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2953
2916
|
if (d.err)
|
|
2954
2917
|
return d;
|
|
2955
|
-
|
|
2918
|
+
l = p(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
2956
2919
|
} else
|
|
2957
2920
|
break;
|
|
2958
2921
|
}
|
|
2959
|
-
if (
|
|
2960
|
-
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
2961
|
-
u === "other" && (
|
|
2922
|
+
if (h.has(u))
|
|
2923
|
+
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
2924
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
2962
2925
|
var b = this.clonePosition();
|
|
2963
2926
|
if (!this.bumpIf("{"))
|
|
2964
2927
|
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
|
|
@@ -2968,27 +2931,27 @@ var _n = (
|
|
|
2968
2931
|
var _ = this.tryParseArgumentClose(b);
|
|
2969
2932
|
if (_.err)
|
|
2970
2933
|
return _;
|
|
2971
|
-
|
|
2934
|
+
s.push([
|
|
2972
2935
|
u,
|
|
2973
2936
|
{
|
|
2974
2937
|
value: v.val,
|
|
2975
2938
|
location: p(b, this.clonePosition())
|
|
2976
2939
|
}
|
|
2977
|
-
]),
|
|
2940
|
+
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
2978
2941
|
}
|
|
2979
|
-
return
|
|
2942
|
+
return s.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(m.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
2980
2943
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2981
2944
|
var n = 1, i = this.clonePosition();
|
|
2982
2945
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
2983
|
-
for (var o = !1,
|
|
2984
|
-
var
|
|
2985
|
-
if (
|
|
2986
|
-
o = !0,
|
|
2946
|
+
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
2947
|
+
var s = this.char();
|
|
2948
|
+
if (s >= 48 && s <= 57)
|
|
2949
|
+
o = !0, a = a * 10 + (s - 48), this.bump();
|
|
2987
2950
|
else
|
|
2988
2951
|
break;
|
|
2989
2952
|
}
|
|
2990
|
-
var
|
|
2991
|
-
return o ? (
|
|
2953
|
+
var h = p(i, this.clonePosition());
|
|
2954
|
+
return o ? (a *= n, an(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
2992
2955
|
}, e.prototype.offset = function() {
|
|
2993
2956
|
return this.position.offset;
|
|
2994
2957
|
}, e.prototype.isEOF = function() {
|
|
@@ -3003,7 +2966,7 @@ var _n = (
|
|
|
3003
2966
|
var t = this.position.offset;
|
|
3004
2967
|
if (t >= this.message.length)
|
|
3005
2968
|
throw Error("out of bound");
|
|
3006
|
-
var r =
|
|
2969
|
+
var r = Rt(this.message, t);
|
|
3007
2970
|
if (r === void 0)
|
|
3008
2971
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3009
2972
|
return r;
|
|
@@ -3022,7 +2985,7 @@ var _n = (
|
|
|
3022
2985
|
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);
|
|
3023
2986
|
}
|
|
3024
2987
|
}, e.prototype.bumpIf = function(t) {
|
|
3025
|
-
if (
|
|
2988
|
+
if (ot(this.message, t, this.offset())) {
|
|
3026
2989
|
for (var r = 0; r < t.length; r++)
|
|
3027
2990
|
this.bump();
|
|
3028
2991
|
return !0;
|
|
@@ -3044,56 +3007,56 @@ var _n = (
|
|
|
3044
3007
|
break;
|
|
3045
3008
|
}
|
|
3046
3009
|
}, e.prototype.bumpSpace = function() {
|
|
3047
|
-
for (; !this.isEOF() &&
|
|
3010
|
+
for (; !this.isEOF() && Ut(this.char()); )
|
|
3048
3011
|
this.bump();
|
|
3049
3012
|
}, e.prototype.peek = function() {
|
|
3050
3013
|
if (this.isEOF())
|
|
3051
3014
|
return null;
|
|
3052
3015
|
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3053
|
-
return n
|
|
3016
|
+
return n ?? null;
|
|
3054
3017
|
}, e;
|
|
3055
3018
|
}()
|
|
3056
3019
|
);
|
|
3057
|
-
function
|
|
3020
|
+
function je(e) {
|
|
3058
3021
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3059
3022
|
}
|
|
3060
|
-
function
|
|
3061
|
-
return
|
|
3023
|
+
function fn(e) {
|
|
3024
|
+
return je(e) || e === 47;
|
|
3062
3025
|
}
|
|
3063
|
-
function
|
|
3026
|
+
function dn(e) {
|
|
3064
3027
|
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;
|
|
3065
3028
|
}
|
|
3066
|
-
function
|
|
3029
|
+
function Ut(e) {
|
|
3067
3030
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3068
3031
|
}
|
|
3069
|
-
function
|
|
3032
|
+
function mn(e) {
|
|
3070
3033
|
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;
|
|
3071
3034
|
}
|
|
3072
|
-
function
|
|
3035
|
+
function Ve(e) {
|
|
3073
3036
|
e.forEach(function(t) {
|
|
3074
|
-
if (delete t.location,
|
|
3037
|
+
if (delete t.location, wt(t) || Pt(t))
|
|
3075
3038
|
for (var r in t.options)
|
|
3076
|
-
delete t.options[r].location,
|
|
3077
|
-
else
|
|
3039
|
+
delete t.options[r].location, Ve(t.options[r].value);
|
|
3040
|
+
else Ht(t) && It(t.style) || (At(t) || Bt(t)) && De(t.style) ? delete t.style.location : Ct(t) && Ve(t.children);
|
|
3078
3041
|
});
|
|
3079
3042
|
}
|
|
3080
|
-
function
|
|
3043
|
+
function pn(e, t) {
|
|
3081
3044
|
t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3082
|
-
var r = new
|
|
3045
|
+
var r = new cn(e, t).parse();
|
|
3083
3046
|
if (r.err) {
|
|
3084
3047
|
var n = SyntaxError(m[r.err.kind]);
|
|
3085
3048
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3086
3049
|
}
|
|
3087
|
-
return t
|
|
3050
|
+
return t?.captureLocation || Ve(r.val), r.val;
|
|
3088
3051
|
}
|
|
3089
|
-
var
|
|
3052
|
+
var ne;
|
|
3090
3053
|
(function(e) {
|
|
3091
3054
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3092
|
-
})(
|
|
3093
|
-
var
|
|
3055
|
+
})(ne || (ne = {}));
|
|
3056
|
+
var He = (
|
|
3094
3057
|
/** @class */
|
|
3095
3058
|
function(e) {
|
|
3096
|
-
|
|
3059
|
+
Te(t, e);
|
|
3097
3060
|
function t(r, n, i) {
|
|
3098
3061
|
var o = e.call(this, r) || this;
|
|
3099
3062
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3102,155 +3065,155 @@ var Be = (
|
|
|
3102
3065
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3103
3066
|
}, t;
|
|
3104
3067
|
}(Error)
|
|
3105
|
-
),
|
|
3068
|
+
), ut = (
|
|
3106
3069
|
/** @class */
|
|
3107
3070
|
function(e) {
|
|
3108
|
-
|
|
3071
|
+
Te(t, e);
|
|
3109
3072
|
function t(r, n, i, o) {
|
|
3110
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3073
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ne.INVALID_VALUE, o) || this;
|
|
3111
3074
|
}
|
|
3112
3075
|
return t;
|
|
3113
|
-
}(
|
|
3114
|
-
),
|
|
3076
|
+
}(He)
|
|
3077
|
+
), bn = (
|
|
3115
3078
|
/** @class */
|
|
3116
3079
|
function(e) {
|
|
3117
|
-
|
|
3080
|
+
Te(t, e);
|
|
3118
3081
|
function t(r, n, i) {
|
|
3119
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3082
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
|
|
3120
3083
|
}
|
|
3121
3084
|
return t;
|
|
3122
|
-
}(
|
|
3123
|
-
),
|
|
3085
|
+
}(He)
|
|
3086
|
+
), gn = (
|
|
3124
3087
|
/** @class */
|
|
3125
3088
|
function(e) {
|
|
3126
|
-
|
|
3089
|
+
Te(t, e);
|
|
3127
3090
|
function t(r, n) {
|
|
3128
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3091
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ne.MISSING_VALUE, n) || this;
|
|
3129
3092
|
}
|
|
3130
3093
|
return t;
|
|
3131
|
-
}(
|
|
3094
|
+
}(He)
|
|
3132
3095
|
), C;
|
|
3133
3096
|
(function(e) {
|
|
3134
3097
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3135
3098
|
})(C || (C = {}));
|
|
3136
|
-
function
|
|
3099
|
+
function vn(e) {
|
|
3137
3100
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3138
3101
|
var n = t[t.length - 1];
|
|
3139
3102
|
return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
|
|
3140
3103
|
}, []);
|
|
3141
3104
|
}
|
|
3142
|
-
function
|
|
3105
|
+
function yn(e) {
|
|
3143
3106
|
return typeof e == "function";
|
|
3144
3107
|
}
|
|
3145
|
-
function
|
|
3146
|
-
if (e.length === 1 &&
|
|
3108
|
+
function ye(e, t, r, n, i, o, a) {
|
|
3109
|
+
if (e.length === 1 && tt(e[0]))
|
|
3147
3110
|
return [
|
|
3148
3111
|
{
|
|
3149
3112
|
type: C.literal,
|
|
3150
3113
|
value: e[0].value
|
|
3151
3114
|
}
|
|
3152
3115
|
];
|
|
3153
|
-
for (var
|
|
3154
|
-
var
|
|
3155
|
-
if (
|
|
3156
|
-
|
|
3116
|
+
for (var s = [], h = 0, u = e; h < u.length; h++) {
|
|
3117
|
+
var l = u[h];
|
|
3118
|
+
if (tt(l)) {
|
|
3119
|
+
s.push({
|
|
3157
3120
|
type: C.literal,
|
|
3158
|
-
value:
|
|
3121
|
+
value: l.value
|
|
3159
3122
|
});
|
|
3160
3123
|
continue;
|
|
3161
3124
|
}
|
|
3162
|
-
if (
|
|
3163
|
-
typeof o == "number" &&
|
|
3125
|
+
if (Fr(l)) {
|
|
3126
|
+
typeof o == "number" && s.push({
|
|
3164
3127
|
type: C.literal,
|
|
3165
3128
|
value: r.getNumberFormat(t).format(o)
|
|
3166
3129
|
});
|
|
3167
3130
|
continue;
|
|
3168
3131
|
}
|
|
3169
|
-
var f =
|
|
3132
|
+
var f = l.value;
|
|
3170
3133
|
if (!(i && f in i))
|
|
3171
|
-
throw new
|
|
3134
|
+
throw new gn(f, a);
|
|
3172
3135
|
var d = i[f];
|
|
3173
|
-
if (
|
|
3174
|
-
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""),
|
|
3136
|
+
if (Dr(l)) {
|
|
3137
|
+
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
|
|
3175
3138
|
type: typeof d == "string" ? C.literal : C.object,
|
|
3176
3139
|
value: d
|
|
3177
3140
|
});
|
|
3178
3141
|
continue;
|
|
3179
3142
|
}
|
|
3180
|
-
if (
|
|
3181
|
-
var b = typeof
|
|
3182
|
-
|
|
3143
|
+
if (At(l)) {
|
|
3144
|
+
var b = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
|
|
3145
|
+
s.push({
|
|
3183
3146
|
type: C.literal,
|
|
3184
3147
|
value: r.getDateTimeFormat(t, b).format(d)
|
|
3185
3148
|
});
|
|
3186
3149
|
continue;
|
|
3187
3150
|
}
|
|
3188
|
-
if (
|
|
3189
|
-
var b = typeof
|
|
3190
|
-
|
|
3151
|
+
if (Bt(l)) {
|
|
3152
|
+
var b = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3153
|
+
s.push({
|
|
3191
3154
|
type: C.literal,
|
|
3192
3155
|
value: r.getDateTimeFormat(t, b).format(d)
|
|
3193
3156
|
});
|
|
3194
3157
|
continue;
|
|
3195
3158
|
}
|
|
3196
|
-
if (
|
|
3197
|
-
var b = typeof
|
|
3198
|
-
b && b.scale && (d = d * (b.scale || 1)),
|
|
3159
|
+
if (Ht(l)) {
|
|
3160
|
+
var b = typeof l.style == "string" ? n.number[l.style] : It(l.style) ? l.style.parsedOptions : void 0;
|
|
3161
|
+
b && b.scale && (d = d * (b.scale || 1)), s.push({
|
|
3199
3162
|
type: C.literal,
|
|
3200
3163
|
value: r.getNumberFormat(t, b).format(d)
|
|
3201
3164
|
});
|
|
3202
3165
|
continue;
|
|
3203
3166
|
}
|
|
3204
|
-
if (
|
|
3205
|
-
var v =
|
|
3206
|
-
if (!
|
|
3207
|
-
throw new
|
|
3208
|
-
var R =
|
|
3167
|
+
if (Ct(l)) {
|
|
3168
|
+
var v = l.children, _ = l.value, S = i[_];
|
|
3169
|
+
if (!yn(S))
|
|
3170
|
+
throw new bn(_, "function", a);
|
|
3171
|
+
var R = ye(v, t, r, n, i, o), N = S(R.map(function(I) {
|
|
3209
3172
|
return I.value;
|
|
3210
3173
|
}));
|
|
3211
|
-
Array.isArray(N) || (N = [N]),
|
|
3174
|
+
Array.isArray(N) || (N = [N]), s.push.apply(s, N.map(function(I) {
|
|
3212
3175
|
return {
|
|
3213
3176
|
type: typeof I == "string" ? C.literal : C.object,
|
|
3214
3177
|
value: I
|
|
3215
3178
|
};
|
|
3216
3179
|
}));
|
|
3217
3180
|
}
|
|
3218
|
-
if (
|
|
3219
|
-
var T =
|
|
3181
|
+
if (wt(l)) {
|
|
3182
|
+
var T = l.options[d] || l.options.other;
|
|
3220
3183
|
if (!T)
|
|
3221
|
-
throw new
|
|
3222
|
-
|
|
3184
|
+
throw new ut(l.value, d, Object.keys(l.options), a);
|
|
3185
|
+
s.push.apply(s, ye(T.value, t, r, n, i));
|
|
3223
3186
|
continue;
|
|
3224
3187
|
}
|
|
3225
|
-
if (
|
|
3226
|
-
var T =
|
|
3188
|
+
if (Pt(l)) {
|
|
3189
|
+
var T = l.options["=".concat(d)];
|
|
3227
3190
|
if (!T) {
|
|
3228
3191
|
if (!Intl.PluralRules)
|
|
3229
|
-
throw new
|
|
3192
|
+
throw new He(`Intl.PluralRules is not available in this environment.
|
|
3230
3193
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3231
|
-
`,
|
|
3232
|
-
var H = r.getPluralRules(t, { type:
|
|
3233
|
-
T =
|
|
3194
|
+
`, ne.MISSING_INTL_API, a);
|
|
3195
|
+
var H = r.getPluralRules(t, { type: l.pluralType }).select(d - (l.offset || 0));
|
|
3196
|
+
T = l.options[H] || l.options.other;
|
|
3234
3197
|
}
|
|
3235
3198
|
if (!T)
|
|
3236
|
-
throw new
|
|
3237
|
-
|
|
3199
|
+
throw new ut(l.value, d, Object.keys(l.options), a);
|
|
3200
|
+
s.push.apply(s, ye(T.value, t, r, n, i, d - (l.offset || 0)));
|
|
3238
3201
|
continue;
|
|
3239
3202
|
}
|
|
3240
3203
|
}
|
|
3241
|
-
return
|
|
3204
|
+
return vn(s);
|
|
3242
3205
|
}
|
|
3243
|
-
function
|
|
3206
|
+
function En(e, t) {
|
|
3244
3207
|
return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3245
3208
|
return r[n] = g(g({}, e[n]), t[n] || {}), r;
|
|
3246
3209
|
}, {})) : e;
|
|
3247
3210
|
}
|
|
3248
|
-
function
|
|
3211
|
+
function xn(e, t) {
|
|
3249
3212
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3250
|
-
return r[n] =
|
|
3213
|
+
return r[n] = En(e[n], t[n]), r;
|
|
3251
3214
|
}, g({}, e)) : e;
|
|
3252
3215
|
}
|
|
3253
|
-
function
|
|
3216
|
+
function Oe(e) {
|
|
3254
3217
|
return {
|
|
3255
3218
|
create: function() {
|
|
3256
3219
|
return {
|
|
@@ -3264,39 +3227,39 @@ function Re(e) {
|
|
|
3264
3227
|
}
|
|
3265
3228
|
};
|
|
3266
3229
|
}
|
|
3267
|
-
function
|
|
3230
|
+
function _n(e) {
|
|
3268
3231
|
return e === void 0 && (e = {
|
|
3269
3232
|
number: {},
|
|
3270
3233
|
dateTime: {},
|
|
3271
3234
|
pluralRules: {}
|
|
3272
3235
|
}), {
|
|
3273
|
-
getNumberFormat:
|
|
3236
|
+
getNumberFormat: Ce(function() {
|
|
3274
3237
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3275
3238
|
r[n] = arguments[n];
|
|
3276
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3239
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3277
3240
|
}, {
|
|
3278
|
-
cache:
|
|
3279
|
-
strategy:
|
|
3241
|
+
cache: Oe(e.number),
|
|
3242
|
+
strategy: Ie.variadic
|
|
3280
3243
|
}),
|
|
3281
|
-
getDateTimeFormat:
|
|
3244
|
+
getDateTimeFormat: Ce(function() {
|
|
3282
3245
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3283
3246
|
r[n] = arguments[n];
|
|
3284
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3247
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3285
3248
|
}, {
|
|
3286
|
-
cache:
|
|
3287
|
-
strategy:
|
|
3249
|
+
cache: Oe(e.dateTime),
|
|
3250
|
+
strategy: Ie.variadic
|
|
3288
3251
|
}),
|
|
3289
|
-
getPluralRules:
|
|
3252
|
+
getPluralRules: Ce(function() {
|
|
3290
3253
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3291
3254
|
r[n] = arguments[n];
|
|
3292
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3255
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3293
3256
|
}, {
|
|
3294
|
-
cache:
|
|
3295
|
-
strategy:
|
|
3257
|
+
cache: Oe(e.pluralRules),
|
|
3258
|
+
strategy: Ie.variadic
|
|
3296
3259
|
})
|
|
3297
3260
|
};
|
|
3298
3261
|
}
|
|
3299
|
-
var
|
|
3262
|
+
var Sn = (
|
|
3300
3263
|
/** @class */
|
|
3301
3264
|
function() {
|
|
3302
3265
|
function e(t, r, n, i) {
|
|
@@ -3306,35 +3269,35 @@ var Mn = (
|
|
|
3306
3269
|
number: {},
|
|
3307
3270
|
dateTime: {},
|
|
3308
3271
|
pluralRules: {}
|
|
3309
|
-
}, this.format = function(
|
|
3310
|
-
var u = o.formatToParts(
|
|
3272
|
+
}, this.format = function(h) {
|
|
3273
|
+
var u = o.formatToParts(h);
|
|
3311
3274
|
if (u.length === 1)
|
|
3312
3275
|
return u[0].value;
|
|
3313
|
-
var
|
|
3276
|
+
var l = u.reduce(function(f, d) {
|
|
3314
3277
|
return !f.length || d.type !== C.literal || typeof f[f.length - 1] != "string" ? f.push(d.value) : f[f.length - 1] += d.value, f;
|
|
3315
3278
|
}, []);
|
|
3316
|
-
return
|
|
3317
|
-
}, this.formatToParts = function(
|
|
3318
|
-
return
|
|
3279
|
+
return l.length <= 1 ? l[0] || "" : l;
|
|
3280
|
+
}, this.formatToParts = function(h) {
|
|
3281
|
+
return ye(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3319
3282
|
}, this.resolvedOptions = function() {
|
|
3320
|
-
var
|
|
3283
|
+
var h;
|
|
3321
3284
|
return {
|
|
3322
|
-
locale: ((
|
|
3285
|
+
locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3323
3286
|
};
|
|
3324
3287
|
}, this.getAst = function() {
|
|
3325
3288
|
return o.ast;
|
|
3326
3289
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3327
3290
|
if (this.message = t, !e.__parse)
|
|
3328
3291
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3329
|
-
var
|
|
3330
|
-
|
|
3331
|
-
var
|
|
3332
|
-
this.ast = e.__parse(t, g(g({},
|
|
3292
|
+
var a = i || {};
|
|
3293
|
+
a.formatters;
|
|
3294
|
+
var s = Ir(a, ["formatters"]);
|
|
3295
|
+
this.ast = e.__parse(t, g(g({}, s), { locale: this.resolvedLocale }));
|
|
3333
3296
|
} else
|
|
3334
3297
|
this.ast = t;
|
|
3335
3298
|
if (!Array.isArray(this.ast))
|
|
3336
3299
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3337
|
-
this.formats =
|
|
3300
|
+
this.formats = xn(e.formats, n), this.formatters = i && i.formatters || _n(this.formatterCache);
|
|
3338
3301
|
}
|
|
3339
3302
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3340
3303
|
get: function() {
|
|
@@ -3343,11 +3306,11 @@ var Mn = (
|
|
|
3343
3306
|
enumerable: !1,
|
|
3344
3307
|
configurable: !0
|
|
3345
3308
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3346
|
-
if (typeof Intl.Locale
|
|
3309
|
+
if (!(typeof Intl.Locale > "u")) {
|
|
3347
3310
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3348
3311
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3349
3312
|
}
|
|
3350
|
-
}, e.__parse =
|
|
3313
|
+
}, e.__parse = pn, e.formats = {
|
|
3351
3314
|
number: {
|
|
3352
3315
|
integer: {
|
|
3353
3316
|
maximumFractionDigits: 0
|
|
@@ -3408,7 +3371,7 @@ var Mn = (
|
|
|
3408
3371
|
}, e;
|
|
3409
3372
|
}()
|
|
3410
3373
|
);
|
|
3411
|
-
function
|
|
3374
|
+
function Tn(e, t) {
|
|
3412
3375
|
if (t == null)
|
|
3413
3376
|
return;
|
|
3414
3377
|
if (t in e)
|
|
@@ -3429,92 +3392,92 @@ function Ln(e, t) {
|
|
|
3429
3392
|
n = void 0;
|
|
3430
3393
|
return n;
|
|
3431
3394
|
}
|
|
3432
|
-
const
|
|
3395
|
+
const G = {}, Hn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Dt = (e, t) => {
|
|
3433
3396
|
if (t == null)
|
|
3434
3397
|
return;
|
|
3435
|
-
if (t in
|
|
3436
|
-
return
|
|
3437
|
-
const r =
|
|
3398
|
+
if (t in G && e in G[t])
|
|
3399
|
+
return G[t][e];
|
|
3400
|
+
const r = Ae(t);
|
|
3438
3401
|
for (let n = 0; n < r.length; n++) {
|
|
3439
|
-
const i = r[n], o =
|
|
3402
|
+
const i = r[n], o = Bn(i, e);
|
|
3440
3403
|
if (o)
|
|
3441
|
-
return
|
|
3404
|
+
return Hn(e, t, o);
|
|
3442
3405
|
}
|
|
3443
3406
|
};
|
|
3444
|
-
let
|
|
3445
|
-
const
|
|
3446
|
-
function
|
|
3447
|
-
return
|
|
3407
|
+
let Je;
|
|
3408
|
+
const ae = Se({});
|
|
3409
|
+
function An(e) {
|
|
3410
|
+
return Je[e] || null;
|
|
3448
3411
|
}
|
|
3449
|
-
function
|
|
3450
|
-
return e in
|
|
3412
|
+
function Ft(e) {
|
|
3413
|
+
return e in Je;
|
|
3451
3414
|
}
|
|
3452
|
-
function
|
|
3453
|
-
if (!
|
|
3415
|
+
function Bn(e, t) {
|
|
3416
|
+
if (!Ft(e))
|
|
3454
3417
|
return null;
|
|
3455
|
-
const r =
|
|
3456
|
-
return
|
|
3418
|
+
const r = An(e);
|
|
3419
|
+
return Tn(r, t);
|
|
3457
3420
|
}
|
|
3458
|
-
function
|
|
3421
|
+
function wn(e) {
|
|
3459
3422
|
if (e == null)
|
|
3460
3423
|
return;
|
|
3461
|
-
const t =
|
|
3424
|
+
const t = Ae(e);
|
|
3462
3425
|
for (let r = 0; r < t.length; r++) {
|
|
3463
3426
|
const n = t[r];
|
|
3464
|
-
if (
|
|
3427
|
+
if (Ft(n))
|
|
3465
3428
|
return n;
|
|
3466
3429
|
}
|
|
3467
3430
|
}
|
|
3468
|
-
function
|
|
3469
|
-
delete
|
|
3431
|
+
function Gt(e, ...t) {
|
|
3432
|
+
delete G[e], ae.update((r) => (r[e] = Cr.all([r[e] || {}, ...t]), r));
|
|
3470
3433
|
}
|
|
3471
|
-
|
|
3472
|
-
[
|
|
3434
|
+
se(
|
|
3435
|
+
[ae],
|
|
3473
3436
|
([e]) => Object.keys(e)
|
|
3474
3437
|
);
|
|
3475
|
-
|
|
3476
|
-
const
|
|
3477
|
-
function
|
|
3478
|
-
|
|
3438
|
+
ae.subscribe((e) => Je = e);
|
|
3439
|
+
const Ee = {};
|
|
3440
|
+
function Pn(e, t) {
|
|
3441
|
+
Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
|
|
3479
3442
|
}
|
|
3480
|
-
function
|
|
3481
|
-
return
|
|
3443
|
+
function kt(e) {
|
|
3444
|
+
return Ee[e];
|
|
3482
3445
|
}
|
|
3483
|
-
function
|
|
3484
|
-
return
|
|
3485
|
-
const r =
|
|
3446
|
+
function Cn(e) {
|
|
3447
|
+
return Ae(e).map((t) => {
|
|
3448
|
+
const r = kt(t);
|
|
3486
3449
|
return [t, r ? [...r] : []];
|
|
3487
3450
|
}).filter(([, t]) => t.length > 0);
|
|
3488
3451
|
}
|
|
3489
|
-
function
|
|
3490
|
-
return e == null ? !1 :
|
|
3452
|
+
function Xe(e) {
|
|
3453
|
+
return e == null ? !1 : Ae(e).some(
|
|
3491
3454
|
(t) => {
|
|
3492
3455
|
var r;
|
|
3493
|
-
return (r =
|
|
3456
|
+
return (r = kt(t)) == null ? void 0 : r.size;
|
|
3494
3457
|
}
|
|
3495
3458
|
);
|
|
3496
3459
|
}
|
|
3497
|
-
function
|
|
3460
|
+
function In(e, t) {
|
|
3498
3461
|
return Promise.all(
|
|
3499
|
-
t.map((n) => (
|
|
3500
|
-
).then((n) =>
|
|
3501
|
-
}
|
|
3502
|
-
const
|
|
3503
|
-
function
|
|
3504
|
-
if (!
|
|
3505
|
-
return e in
|
|
3506
|
-
const t =
|
|
3507
|
-
return
|
|
3462
|
+
t.map((n) => (Pn(e, n), n().then((i) => i.default || i)))
|
|
3463
|
+
).then((n) => Gt(e, ...n));
|
|
3464
|
+
}
|
|
3465
|
+
const le = {};
|
|
3466
|
+
function jt(e) {
|
|
3467
|
+
if (!Xe(e))
|
|
3468
|
+
return e in le ? le[e] : Promise.resolve();
|
|
3469
|
+
const t = Cn(e);
|
|
3470
|
+
return le[e] = Promise.all(
|
|
3508
3471
|
t.map(
|
|
3509
|
-
([r, n]) =>
|
|
3472
|
+
([r, n]) => In(r, n)
|
|
3510
3473
|
)
|
|
3511
3474
|
).then(() => {
|
|
3512
|
-
if (
|
|
3513
|
-
return
|
|
3514
|
-
delete
|
|
3515
|
-
}),
|
|
3475
|
+
if (Xe(e))
|
|
3476
|
+
return jt(e);
|
|
3477
|
+
delete le[e];
|
|
3478
|
+
}), le[e];
|
|
3516
3479
|
}
|
|
3517
|
-
const
|
|
3480
|
+
const Nn = {
|
|
3518
3481
|
number: {
|
|
3519
3482
|
scientific: { notation: "scientific" },
|
|
3520
3483
|
engineering: { notation: "engineering" },
|
|
@@ -3543,159 +3506,159 @@ const jn = {
|
|
|
3543
3506
|
timeZoneName: "short"
|
|
3544
3507
|
}
|
|
3545
3508
|
}
|
|
3546
|
-
},
|
|
3509
|
+
}, On = {
|
|
3547
3510
|
fallbackLocale: null,
|
|
3548
3511
|
loadingDelay: 200,
|
|
3549
|
-
formats:
|
|
3512
|
+
formats: Nn,
|
|
3550
3513
|
warnOnMissingMessages: !0,
|
|
3551
3514
|
handleMissingMessage: void 0,
|
|
3552
3515
|
ignoreTag: !0
|
|
3553
|
-
},
|
|
3554
|
-
function
|
|
3555
|
-
return
|
|
3516
|
+
}, Mn = On;
|
|
3517
|
+
function ie() {
|
|
3518
|
+
return Mn;
|
|
3556
3519
|
}
|
|
3557
|
-
const
|
|
3558
|
-
var
|
|
3520
|
+
const Me = Se(!1);
|
|
3521
|
+
var Ln = Object.defineProperty, Rn = Object.defineProperties, $n = Object.getOwnPropertyDescriptors, lt = Object.getOwnPropertySymbols, Un = Object.prototype.hasOwnProperty, Dn = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? Ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fn = (e, t) => {
|
|
3559
3522
|
for (var r in t)
|
|
3560
|
-
|
|
3561
|
-
if (
|
|
3562
|
-
for (var r of
|
|
3563
|
-
|
|
3523
|
+
Un.call(t, r) && ht(e, r, t[r]);
|
|
3524
|
+
if (lt)
|
|
3525
|
+
for (var r of lt(t))
|
|
3526
|
+
Dn.call(t, r) && ht(e, r, t[r]);
|
|
3564
3527
|
return e;
|
|
3565
|
-
},
|
|
3566
|
-
let
|
|
3567
|
-
const
|
|
3568
|
-
function
|
|
3528
|
+
}, Gn = (e, t) => Rn(e, $n(t));
|
|
3529
|
+
let ze;
|
|
3530
|
+
const xe = Se(null);
|
|
3531
|
+
function ct(e) {
|
|
3569
3532
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3570
3533
|
}
|
|
3571
|
-
function
|
|
3572
|
-
const r =
|
|
3573
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3534
|
+
function Ae(e, t = ie().fallbackLocale) {
|
|
3535
|
+
const r = ct(e);
|
|
3536
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ct(t)])] : r;
|
|
3574
3537
|
}
|
|
3575
|
-
function
|
|
3576
|
-
return
|
|
3538
|
+
function Z() {
|
|
3539
|
+
return ze ?? void 0;
|
|
3577
3540
|
}
|
|
3578
|
-
|
|
3579
|
-
|
|
3541
|
+
xe.subscribe((e) => {
|
|
3542
|
+
ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3580
3543
|
});
|
|
3581
|
-
const
|
|
3582
|
-
if (e &&
|
|
3583
|
-
const { loadingDelay: t } =
|
|
3544
|
+
const kn = (e) => {
|
|
3545
|
+
if (e && wn(e) && Xe(e)) {
|
|
3546
|
+
const { loadingDelay: t } = ie();
|
|
3584
3547
|
let r;
|
|
3585
|
-
return typeof window
|
|
3586
|
-
() =>
|
|
3548
|
+
return typeof window < "u" && Z() != null && t ? r = window.setTimeout(
|
|
3549
|
+
() => Me.set(!0),
|
|
3587
3550
|
t
|
|
3588
|
-
) :
|
|
3589
|
-
|
|
3551
|
+
) : Me.set(!0), jt(e).then(() => {
|
|
3552
|
+
xe.set(e);
|
|
3590
3553
|
}).finally(() => {
|
|
3591
|
-
clearTimeout(r),
|
|
3554
|
+
clearTimeout(r), Me.set(!1);
|
|
3592
3555
|
});
|
|
3593
3556
|
}
|
|
3594
|
-
return
|
|
3595
|
-
},
|
|
3596
|
-
set:
|
|
3597
|
-
}),
|
|
3557
|
+
return xe.set(e);
|
|
3558
|
+
}, z = Gn(Fn({}, xe), {
|
|
3559
|
+
set: kn
|
|
3560
|
+
}), Be = (e) => {
|
|
3598
3561
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3599
3562
|
return (n) => {
|
|
3600
3563
|
const i = JSON.stringify(n);
|
|
3601
3564
|
return i in t ? t[i] : t[i] = e(n);
|
|
3602
3565
|
};
|
|
3603
3566
|
};
|
|
3604
|
-
var
|
|
3567
|
+
var jn = Object.defineProperty, _e = Object.getOwnPropertySymbols, Vt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
3605
3568
|
for (var r in t || (t = {}))
|
|
3606
|
-
|
|
3607
|
-
if (
|
|
3608
|
-
for (var r of
|
|
3609
|
-
|
|
3569
|
+
Vt.call(t, r) && ft(e, r, t[r]);
|
|
3570
|
+
if (_e)
|
|
3571
|
+
for (var r of _e(t))
|
|
3572
|
+
Xt.call(t, r) && ft(e, r, t[r]);
|
|
3610
3573
|
return e;
|
|
3611
|
-
},
|
|
3574
|
+
}, ue = (e, t) => {
|
|
3612
3575
|
var r = {};
|
|
3613
3576
|
for (var n in e)
|
|
3614
|
-
|
|
3615
|
-
if (e != null &&
|
|
3616
|
-
for (var n of
|
|
3617
|
-
t.indexOf(n) < 0 &&
|
|
3577
|
+
Vt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3578
|
+
if (e != null && _e)
|
|
3579
|
+
for (var n of _e(e))
|
|
3580
|
+
t.indexOf(n) < 0 && Xt.call(e, n) && (r[n] = e[n]);
|
|
3618
3581
|
return r;
|
|
3619
3582
|
};
|
|
3620
|
-
const
|
|
3621
|
-
const { formats: r } =
|
|
3583
|
+
const de = (e, t) => {
|
|
3584
|
+
const { formats: r } = ie();
|
|
3622
3585
|
if (e in r && t in r[e])
|
|
3623
3586
|
return r[e][t];
|
|
3624
3587
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3625
|
-
},
|
|
3588
|
+
}, Vn = Be(
|
|
3626
3589
|
(e) => {
|
|
3627
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3590
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
3628
3591
|
if (r == null)
|
|
3629
3592
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3630
|
-
return n && (i =
|
|
3593
|
+
return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
|
|
3631
3594
|
}
|
|
3632
|
-
),
|
|
3595
|
+
), Xn = Be(
|
|
3633
3596
|
(e) => {
|
|
3634
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3597
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
3635
3598
|
if (r == null)
|
|
3636
3599
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3637
|
-
return n ? i =
|
|
3600
|
+
return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3638
3601
|
}
|
|
3639
|
-
),
|
|
3602
|
+
), zn = Be(
|
|
3640
3603
|
(e) => {
|
|
3641
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3604
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
3642
3605
|
if (r == null)
|
|
3643
3606
|
throw new Error(
|
|
3644
3607
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3645
3608
|
);
|
|
3646
|
-
return n ? i =
|
|
3609
|
+
return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3647
3610
|
}
|
|
3648
|
-
),
|
|
3611
|
+
), Wn = (e = {}) => {
|
|
3649
3612
|
var t = e, {
|
|
3650
|
-
locale: r =
|
|
3651
|
-
} = t, n =
|
|
3613
|
+
locale: r = Z()
|
|
3614
|
+
} = t, n = ue(t, [
|
|
3652
3615
|
"locale"
|
|
3653
3616
|
]);
|
|
3654
|
-
return
|
|
3655
|
-
},
|
|
3617
|
+
return Vn(Qe({ locale: r }, n));
|
|
3618
|
+
}, Zn = (e = {}) => {
|
|
3656
3619
|
var t = e, {
|
|
3657
|
-
locale: r =
|
|
3658
|
-
} = t, n =
|
|
3620
|
+
locale: r = Z()
|
|
3621
|
+
} = t, n = ue(t, [
|
|
3659
3622
|
"locale"
|
|
3660
3623
|
]);
|
|
3661
|
-
return
|
|
3662
|
-
},
|
|
3624
|
+
return Xn(Qe({ locale: r }, n));
|
|
3625
|
+
}, Jn = (e = {}) => {
|
|
3663
3626
|
var t = e, {
|
|
3664
|
-
locale: r =
|
|
3665
|
-
} = t, n =
|
|
3627
|
+
locale: r = Z()
|
|
3628
|
+
} = t, n = ue(t, [
|
|
3666
3629
|
"locale"
|
|
3667
3630
|
]);
|
|
3668
|
-
return
|
|
3669
|
-
},
|
|
3631
|
+
return zn(Qe({ locale: r }, n));
|
|
3632
|
+
}, Qn = Be(
|
|
3670
3633
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3671
|
-
(e, t =
|
|
3672
|
-
ignoreTag:
|
|
3634
|
+
(e, t = Z()) => new Sn(e, t, ie().formats, {
|
|
3635
|
+
ignoreTag: ie().ignoreTag
|
|
3673
3636
|
})
|
|
3674
|
-
),
|
|
3637
|
+
), qn = (e, t = {}) => {
|
|
3675
3638
|
var r, n, i, o;
|
|
3676
|
-
let
|
|
3677
|
-
typeof e == "object" && (
|
|
3639
|
+
let a = t;
|
|
3640
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
3678
3641
|
const {
|
|
3679
|
-
values:
|
|
3680
|
-
locale:
|
|
3642
|
+
values: s,
|
|
3643
|
+
locale: h = Z(),
|
|
3681
3644
|
default: u
|
|
3682
|
-
} =
|
|
3683
|
-
if (
|
|
3645
|
+
} = a;
|
|
3646
|
+
if (h == null)
|
|
3684
3647
|
throw new Error(
|
|
3685
3648
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3686
3649
|
);
|
|
3687
|
-
let
|
|
3688
|
-
if (!
|
|
3689
|
-
|
|
3690
|
-
else if (typeof
|
|
3650
|
+
let l = Dt(e, h);
|
|
3651
|
+
if (!l)
|
|
3652
|
+
l = (o = (i = (n = (r = ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3653
|
+
else if (typeof l != "string")
|
|
3691
3654
|
return console.warn(
|
|
3692
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3693
|
-
),
|
|
3694
|
-
if (!
|
|
3695
|
-
return
|
|
3696
|
-
let f =
|
|
3655
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3656
|
+
), l;
|
|
3657
|
+
if (!s)
|
|
3658
|
+
return l;
|
|
3659
|
+
let f = l;
|
|
3697
3660
|
try {
|
|
3698
|
-
f =
|
|
3661
|
+
f = Qn(l, h).format(s);
|
|
3699
3662
|
} catch (d) {
|
|
3700
3663
|
d instanceof Error && console.warn(
|
|
3701
3664
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3703,20 +3666,20 @@ const me = (e, t) => {
|
|
|
3703
3666
|
);
|
|
3704
3667
|
}
|
|
3705
3668
|
return f;
|
|
3706
|
-
},
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
function
|
|
3712
|
-
|
|
3713
|
-
r == null && (
|
|
3669
|
+
}, Yn = (e, t) => Jn(t).format(e), Kn = (e, t) => Zn(t).format(e), ei = (e, t) => Wn(t).format(e), ti = (e, t = Z()) => Dt(e, t), ri = se([z, ae], () => qn);
|
|
3670
|
+
se([z], () => Yn);
|
|
3671
|
+
se([z], () => Kn);
|
|
3672
|
+
se([z], () => ei);
|
|
3673
|
+
se([z, ae], () => ti);
|
|
3674
|
+
function ni({ withLocale: e, translations: t }) {
|
|
3675
|
+
z.subscribe((r) => {
|
|
3676
|
+
r == null && (ae.set(t), z.set(e));
|
|
3714
3677
|
});
|
|
3715
3678
|
}
|
|
3716
|
-
function
|
|
3717
|
-
|
|
3679
|
+
function dt(e, t) {
|
|
3680
|
+
Gt(e, t);
|
|
3718
3681
|
}
|
|
3719
|
-
const
|
|
3682
|
+
const mt = {
|
|
3720
3683
|
en: {
|
|
3721
3684
|
title: "Please enter the verification code you received on your number",
|
|
3722
3685
|
errorTitle: "Your code was invalid, you can resend the code and try again",
|
|
@@ -3823,10 +3786,10 @@ const Et = {
|
|
|
3823
3786
|
loginSMSHint: "A new verification code has been sent to your phone number"
|
|
3824
3787
|
}
|
|
3825
3788
|
};
|
|
3826
|
-
function
|
|
3827
|
-
|
|
3789
|
+
function ii(e) {
|
|
3790
|
+
Zt(e, "svelte-uutjwi", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input,.Field select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.Field.Hidden{display:none}.LoginSMSHint{margin-top:20px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.Button{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.Button[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A))}");
|
|
3828
3791
|
}
|
|
3829
|
-
function
|
|
3792
|
+
function oi(e) {
|
|
3830
3793
|
let t = (
|
|
3831
3794
|
/*$_*/
|
|
3832
3795
|
e[5]("errorTitle") + ""
|
|
@@ -3836,19 +3799,19 @@ function bi(e) {
|
|
|
3836
3799
|
r = L(t);
|
|
3837
3800
|
},
|
|
3838
3801
|
m(n, i) {
|
|
3839
|
-
|
|
3802
|
+
W(n, r, i);
|
|
3840
3803
|
},
|
|
3841
3804
|
p(n, i) {
|
|
3842
3805
|
i & /*$_*/
|
|
3843
3806
|
32 && t !== (t = /*$_*/
|
|
3844
|
-
n[5]("errorTitle") + "") &&
|
|
3807
|
+
n[5]("errorTitle") + "") && F(r, t);
|
|
3845
3808
|
},
|
|
3846
3809
|
d(n) {
|
|
3847
|
-
n &&
|
|
3810
|
+
n && k(r);
|
|
3848
3811
|
}
|
|
3849
3812
|
};
|
|
3850
3813
|
}
|
|
3851
|
-
function
|
|
3814
|
+
function si(e) {
|
|
3852
3815
|
let t = (
|
|
3853
3816
|
/*$_*/
|
|
3854
3817
|
e[5]("title") + ""
|
|
@@ -3858,19 +3821,19 @@ function gi(e) {
|
|
|
3858
3821
|
r = L(t);
|
|
3859
3822
|
},
|
|
3860
3823
|
m(n, i) {
|
|
3861
|
-
|
|
3824
|
+
W(n, r, i);
|
|
3862
3825
|
},
|
|
3863
3826
|
p(n, i) {
|
|
3864
3827
|
i & /*$_*/
|
|
3865
3828
|
32 && t !== (t = /*$_*/
|
|
3866
|
-
n[5]("title") + "") &&
|
|
3829
|
+
n[5]("title") + "") && F(r, t);
|
|
3867
3830
|
},
|
|
3868
3831
|
d(n) {
|
|
3869
|
-
n &&
|
|
3832
|
+
n && k(r);
|
|
3870
3833
|
}
|
|
3871
3834
|
};
|
|
3872
3835
|
}
|
|
3873
|
-
function
|
|
3836
|
+
function pt(e) {
|
|
3874
3837
|
let t, r = (
|
|
3875
3838
|
/*$_*/
|
|
3876
3839
|
e[5]("smsCodeError") + ""
|
|
@@ -3880,19 +3843,19 @@ function xt(e) {
|
|
|
3880
3843
|
t = M("p"), n = L(r), A(t, "class", "InvalidInput");
|
|
3881
3844
|
},
|
|
3882
3845
|
m(i, o) {
|
|
3883
|
-
|
|
3846
|
+
W(i, t, o), E(t, n);
|
|
3884
3847
|
},
|
|
3885
3848
|
p(i, o) {
|
|
3886
3849
|
o & /*$_*/
|
|
3887
3850
|
32 && r !== (r = /*$_*/
|
|
3888
|
-
i[5]("smsCodeError") + "") &&
|
|
3851
|
+
i[5]("smsCodeError") + "") && F(n, r);
|
|
3889
3852
|
},
|
|
3890
3853
|
d(i) {
|
|
3891
|
-
i &&
|
|
3854
|
+
i && k(t);
|
|
3892
3855
|
}
|
|
3893
3856
|
};
|
|
3894
3857
|
}
|
|
3895
|
-
function
|
|
3858
|
+
function bt(e) {
|
|
3896
3859
|
let t, r = (
|
|
3897
3860
|
/*$_*/
|
|
3898
3861
|
e[5]("resendMessage") + ""
|
|
@@ -3902,161 +3865,161 @@ function _t(e) {
|
|
|
3902
3865
|
t = M("p"), n = L(r), A(t, "class", "SmsVerificationResendMessage");
|
|
3903
3866
|
},
|
|
3904
3867
|
m(i, o) {
|
|
3905
|
-
|
|
3868
|
+
W(i, t, o), E(t, n);
|
|
3906
3869
|
},
|
|
3907
3870
|
p(i, o) {
|
|
3908
3871
|
o & /*$_*/
|
|
3909
3872
|
32 && r !== (r = /*$_*/
|
|
3910
|
-
i[5]("resendMessage") + "") &&
|
|
3873
|
+
i[5]("resendMessage") + "") && F(n, r);
|
|
3911
3874
|
},
|
|
3912
3875
|
d(i) {
|
|
3913
|
-
i &&
|
|
3876
|
+
i && k(t);
|
|
3914
3877
|
}
|
|
3915
3878
|
};
|
|
3916
3879
|
}
|
|
3917
|
-
function
|
|
3880
|
+
function gt(e) {
|
|
3918
3881
|
let t, r, n = (
|
|
3919
3882
|
/*secondsLeft*/
|
|
3920
3883
|
e[4] < 10 ? "0" : ""
|
|
3921
|
-
), i, o,
|
|
3884
|
+
), i, o, a;
|
|
3922
3885
|
return {
|
|
3923
3886
|
c() {
|
|
3924
3887
|
t = M("span"), r = L("(0:"), i = L(n), o = L(
|
|
3925
3888
|
/*secondsLeft*/
|
|
3926
3889
|
e[4]
|
|
3927
|
-
),
|
|
3890
|
+
), a = L(")"), A(t, "class", "SmsVerificationResendTimer");
|
|
3928
3891
|
},
|
|
3929
|
-
m(
|
|
3930
|
-
|
|
3892
|
+
m(s, h) {
|
|
3893
|
+
W(s, t, h), E(t, r), E(t, i), E(t, o), E(t, a);
|
|
3931
3894
|
},
|
|
3932
|
-
p(
|
|
3933
|
-
|
|
3895
|
+
p(s, h) {
|
|
3896
|
+
h & /*secondsLeft*/
|
|
3934
3897
|
16 && n !== (n = /*secondsLeft*/
|
|
3935
|
-
|
|
3936
|
-
16 &&
|
|
3898
|
+
s[4] < 10 ? "0" : "") && F(i, n), h & /*secondsLeft*/
|
|
3899
|
+
16 && F(
|
|
3937
3900
|
o,
|
|
3938
3901
|
/*secondsLeft*/
|
|
3939
|
-
|
|
3902
|
+
s[4]
|
|
3940
3903
|
);
|
|
3941
3904
|
},
|
|
3942
|
-
d(
|
|
3943
|
-
|
|
3905
|
+
d(s) {
|
|
3906
|
+
s && k(t);
|
|
3944
3907
|
}
|
|
3945
3908
|
};
|
|
3946
3909
|
}
|
|
3947
|
-
function
|
|
3948
|
-
let t, r, n, i, o,
|
|
3910
|
+
function ai(e) {
|
|
3911
|
+
let t, r, n, i, o, a = (
|
|
3949
3912
|
/*$_*/
|
|
3950
3913
|
e[5]("code") + ""
|
|
3951
|
-
),
|
|
3914
|
+
), s, h, u, l, f, d, b, v, _, S, R = (
|
|
3952
3915
|
/*$_*/
|
|
3953
3916
|
e[5]("activate") + ""
|
|
3954
3917
|
), N, T, H, I = (
|
|
3955
3918
|
/*$_*/
|
|
3956
3919
|
e[5]("resend") + ""
|
|
3957
|
-
),
|
|
3958
|
-
function
|
|
3920
|
+
), U, j, J, me;
|
|
3921
|
+
function pe(c, y) {
|
|
3959
3922
|
return (
|
|
3960
3923
|
/*isSmsValid*/
|
|
3961
|
-
c[2] ?
|
|
3924
|
+
c[2] ? si : oi
|
|
3962
3925
|
);
|
|
3963
3926
|
}
|
|
3964
|
-
let
|
|
3965
|
-
e[2] &&
|
|
3927
|
+
let V = pe(e), O = V(e), B = !/*isSmsValid*/
|
|
3928
|
+
e[2] && pt(e), w = (
|
|
3966
3929
|
/*timer*/
|
|
3967
|
-
e[3] &&
|
|
3930
|
+
e[3] && bt(e)
|
|
3968
3931
|
), P = (
|
|
3969
3932
|
/*timer*/
|
|
3970
|
-
e[3] &&
|
|
3933
|
+
e[3] && gt(e)
|
|
3971
3934
|
);
|
|
3972
3935
|
return {
|
|
3973
3936
|
c() {
|
|
3974
|
-
t = M("div"), r = M("h3"), O.c(), n =
|
|
3937
|
+
t = M("div"), r = M("h3"), O.c(), n = X(), i = M("div"), o = M("label"), s = L(a), h = L(":"), u = M("span"), u.textContent = "*", l = X(), f = M("input"), d = X(), B && B.c(), v = X(), w && w.c(), _ = X(), S = M("button"), N = L(R), T = X(), H = M("button"), U = L(I), j = X(), P && P.c(), A(r, "class", "Title"), A(u, "class", "FormRequired"), A(o, "for", "SmsCode"), A(f, "type", "text"), A(f, "id", "SmsCode"), A(f, "inputmode", "numeric"), A(f, "pattern", "[0-9]*"), A(f, "maxlength", "6"), A(i, "class", b = "Field SmsVerificationField " + (/*isSmsValid*/
|
|
3975
3938
|
e[2] ? "" : "InvalidField")), A(S, "class", "Button SmsVerificationValidate"), A(H, "class", "Button SmsVerificationResend"), H.disabled = /*timer*/
|
|
3976
3939
|
e[3], A(t, "class", "Container SmsVerificationContainer");
|
|
3977
3940
|
},
|
|
3978
3941
|
m(c, y) {
|
|
3979
|
-
|
|
3942
|
+
W(c, t, y), E(t, r), O.m(r, null), E(t, n), E(t, i), E(i, o), E(o, s), E(o, h), E(o, u), E(i, l), E(i, f), Ye(
|
|
3980
3943
|
f,
|
|
3981
3944
|
/*smsCode*/
|
|
3982
3945
|
e[1]
|
|
3983
|
-
), E(i, d), B && B.m(i, null), E(t, v), w && w.m(t, null), E(t, _), E(t, S), E(S, N), E(t, T), E(t, H), E(H,
|
|
3984
|
-
|
|
3946
|
+
), E(i, d), B && B.m(i, null), E(t, v), w && w.m(t, null), E(t, _), E(t, S), E(S, N), E(t, T), E(t, H), E(H, U), E(H, j), P && P.m(H, null), e[19](t), J || (me = [
|
|
3947
|
+
be(
|
|
3985
3948
|
f,
|
|
3986
3949
|
"input",
|
|
3987
3950
|
/*input_input_handler*/
|
|
3988
3951
|
e[17]
|
|
3989
3952
|
),
|
|
3990
|
-
|
|
3953
|
+
be(
|
|
3991
3954
|
f,
|
|
3992
3955
|
"keydown",
|
|
3993
3956
|
/*keydown_handler*/
|
|
3994
3957
|
e[18]
|
|
3995
3958
|
),
|
|
3996
|
-
|
|
3959
|
+
be(
|
|
3997
3960
|
S,
|
|
3998
3961
|
"click",
|
|
3999
3962
|
/*activateUser*/
|
|
4000
3963
|
e[6]
|
|
4001
3964
|
),
|
|
4002
|
-
|
|
3965
|
+
be(
|
|
4003
3966
|
H,
|
|
4004
3967
|
"click",
|
|
4005
3968
|
/*resendCode*/
|
|
4006
3969
|
e[7]
|
|
4007
3970
|
)
|
|
4008
|
-
],
|
|
3971
|
+
], J = !0);
|
|
4009
3972
|
},
|
|
4010
3973
|
p(c, [y]) {
|
|
4011
|
-
|
|
4012
|
-
32 &&
|
|
4013
|
-
c[5]("code") + "") &&
|
|
3974
|
+
V === (V = pe(c)) && O ? O.p(c, y) : (O.d(1), O = V(c), O && (O.c(), O.m(r, null))), y & /*$_*/
|
|
3975
|
+
32 && a !== (a = /*$_*/
|
|
3976
|
+
c[5]("code") + "") && F(s, a), y & /*smsCode*/
|
|
4014
3977
|
2 && f.value !== /*smsCode*/
|
|
4015
|
-
c[1] &&
|
|
3978
|
+
c[1] && Ye(
|
|
4016
3979
|
f,
|
|
4017
3980
|
/*smsCode*/
|
|
4018
3981
|
c[1]
|
|
4019
3982
|
), /*isSmsValid*/
|
|
4020
|
-
c[2] ? B && (B.d(1), B = null) : B ? B.p(c, y) : (B =
|
|
3983
|
+
c[2] ? B && (B.d(1), B = null) : B ? B.p(c, y) : (B = pt(c), B.c(), B.m(i, null)), y & /*isSmsValid*/
|
|
4021
3984
|
4 && b !== (b = "Field SmsVerificationField " + (/*isSmsValid*/
|
|
4022
3985
|
c[2] ? "" : "InvalidField")) && A(i, "class", b), /*timer*/
|
|
4023
|
-
c[3] ? w ? w.p(c, y) : (w =
|
|
3986
|
+
c[3] ? w ? w.p(c, y) : (w = bt(c), w.c(), w.m(t, _)) : w && (w.d(1), w = null), y & /*$_*/
|
|
4024
3987
|
32 && R !== (R = /*$_*/
|
|
4025
|
-
c[5]("activate") + "") &&
|
|
3988
|
+
c[5]("activate") + "") && F(N, R), y & /*$_*/
|
|
4026
3989
|
32 && I !== (I = /*$_*/
|
|
4027
|
-
c[5]("resend") + "") &&
|
|
4028
|
-
c[3] ? P ? P.p(c, y) : (P =
|
|
3990
|
+
c[5]("resend") + "") && F(U, I), /*timer*/
|
|
3991
|
+
c[3] ? P ? P.p(c, y) : (P = gt(c), P.c(), P.m(H, null)) : P && (P.d(1), P = null), y & /*timer*/
|
|
4029
3992
|
8 && (H.disabled = /*timer*/
|
|
4030
3993
|
c[3]);
|
|
4031
3994
|
},
|
|
4032
|
-
i:
|
|
4033
|
-
o:
|
|
3995
|
+
i: $,
|
|
3996
|
+
o: $,
|
|
4034
3997
|
d(c) {
|
|
4035
|
-
c &&
|
|
3998
|
+
c && k(t), O.d(), B && B.d(), w && w.d(), P && P.d(), e[19](null), J = !1, oe(me);
|
|
4036
3999
|
}
|
|
4037
4000
|
};
|
|
4038
4001
|
}
|
|
4039
|
-
function
|
|
4002
|
+
function ui(e, t, r) {
|
|
4040
4003
|
let n;
|
|
4041
|
-
|
|
4042
|
-
let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid:
|
|
4004
|
+
Wt(e, ri, (c) => r(5, n = c));
|
|
4005
|
+
let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid: a = "" } = t, { smstemplate: s = "Please use this code {0} to activate your accout" } = t, { number: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, d, b = !0, v = !1, _, S, R = +localStorage.getItem("smsTimer") || 0, N = Date.now() / 1e3 - R, T = 60 - Math.floor(N);
|
|
4043
4006
|
const H = { numeric: /^[0-9]{0,6}$/ };
|
|
4044
|
-
|
|
4007
|
+
ni({ withLocale: "en", translations: {} });
|
|
4045
4008
|
const I = () => {
|
|
4046
4009
|
fetch(f).then((y) => y.json()).then((y) => {
|
|
4047
|
-
Object.keys(y).forEach((
|
|
4048
|
-
|
|
4010
|
+
Object.keys(y).forEach((Q) => {
|
|
4011
|
+
dt(Q, y[Q]);
|
|
4049
4012
|
});
|
|
4050
4013
|
}).catch((y) => {
|
|
4051
4014
|
console.log(y);
|
|
4052
4015
|
});
|
|
4053
4016
|
};
|
|
4054
|
-
Object.keys(
|
|
4055
|
-
|
|
4017
|
+
Object.keys(mt).forEach((c) => {
|
|
4018
|
+
dt(c, mt[c]);
|
|
4056
4019
|
});
|
|
4057
|
-
const
|
|
4020
|
+
const U = async () => {
|
|
4058
4021
|
try {
|
|
4059
|
-
if ((
|
|
4022
|
+
if ((await fetch(`${i}/v1/player/${a}/activateSMS?tokenId=${o}&validationCode=${d}`, {
|
|
4060
4023
|
headers: {
|
|
4061
4024
|
"Content-Type": "application/json",
|
|
4062
4025
|
accept: "application/json"
|
|
@@ -4077,37 +4040,37 @@ function yi(e, t, r) {
|
|
|
4077
4040
|
} catch (c) {
|
|
4078
4041
|
console.log(c);
|
|
4079
4042
|
}
|
|
4080
|
-
}
|
|
4081
|
-
localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))),
|
|
4043
|
+
}, j = async () => {
|
|
4044
|
+
localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), V();
|
|
4082
4045
|
try {
|
|
4083
|
-
const c =
|
|
4046
|
+
const c = await fetch(`${i}/v1/player/sms/token`, {
|
|
4084
4047
|
method: "POST",
|
|
4085
4048
|
headers: {
|
|
4086
4049
|
"Content-Type": "application/json",
|
|
4087
4050
|
accept: "application/json"
|
|
4088
4051
|
},
|
|
4089
4052
|
body: JSON.stringify({
|
|
4090
|
-
userId:
|
|
4091
|
-
messageTemplate:
|
|
4092
|
-
destination:
|
|
4053
|
+
userId: a,
|
|
4054
|
+
messageTemplate: s,
|
|
4055
|
+
destination: h
|
|
4093
4056
|
})
|
|
4094
|
-
}), y =
|
|
4057
|
+
}), y = await c.json();
|
|
4095
4058
|
if (c.ok)
|
|
4096
|
-
r(9, o = y.id), v = !1,
|
|
4059
|
+
r(9, o = y.id), v = !1, J();
|
|
4097
4060
|
else
|
|
4098
4061
|
throw v = !0, new Error("Failed to fetch");
|
|
4099
4062
|
} catch (c) {
|
|
4100
4063
|
v = !0, console.error(c);
|
|
4101
4064
|
}
|
|
4102
|
-
}
|
|
4065
|
+
}, J = () => {
|
|
4103
4066
|
T > 0 ? r(4, T--, T) : (clearInterval(_), r(3, _ = !1), r(4, T = 60));
|
|
4104
|
-
},
|
|
4067
|
+
}, me = () => {
|
|
4105
4068
|
let c = document.createElement("style");
|
|
4106
4069
|
c.innerHTML = u, S.appendChild(c);
|
|
4107
|
-
},
|
|
4108
|
-
let c = new URL(
|
|
4109
|
-
fetch(c.href).then((
|
|
4110
|
-
y.innerHTML =
|
|
4070
|
+
}, pe = () => {
|
|
4071
|
+
let c = new URL(l), y = document.createElement("style");
|
|
4072
|
+
fetch(c.href).then((Q) => Q.text()).then((Q) => {
|
|
4073
|
+
y.innerHTML = Q, setTimeout(
|
|
4111
4074
|
() => {
|
|
4112
4075
|
S.appendChild(y);
|
|
4113
4076
|
},
|
|
@@ -4118,39 +4081,39 @@ function yi(e, t, r) {
|
|
|
4118
4081
|
500
|
|
4119
4082
|
);
|
|
4120
4083
|
});
|
|
4121
|
-
},
|
|
4084
|
+
}, V = () => {
|
|
4122
4085
|
N < 60 && r(3, _ = setInterval(
|
|
4123
4086
|
() => {
|
|
4124
|
-
|
|
4087
|
+
J();
|
|
4125
4088
|
},
|
|
4126
4089
|
1e3
|
|
4127
4090
|
));
|
|
4128
4091
|
}, O = (c) => {
|
|
4129
4092
|
!H.numeric.test(c.key) && c.keyCode !== 8 && c.keyCode !== 9 && c.keyCode !== 46 && c.preventDefault();
|
|
4130
4093
|
};
|
|
4131
|
-
|
|
4132
|
-
if (!
|
|
4094
|
+
er(() => {
|
|
4095
|
+
if (!a || !h) {
|
|
4133
4096
|
let c = JSON.parse(localStorage.getItem("playerData"));
|
|
4134
|
-
r(10,
|
|
4097
|
+
r(10, a = c.playerid), r(11, h = c.number);
|
|
4135
4098
|
}
|
|
4136
|
-
|
|
4099
|
+
V();
|
|
4137
4100
|
});
|
|
4138
4101
|
function B() {
|
|
4139
4102
|
d = this.value, r(1, d);
|
|
4140
4103
|
}
|
|
4141
4104
|
const w = (c) => O(c);
|
|
4142
4105
|
function P(c) {
|
|
4143
|
-
|
|
4106
|
+
Le[c ? "unshift" : "push"](() => {
|
|
4144
4107
|
S = c, r(0, S);
|
|
4145
4108
|
});
|
|
4146
4109
|
}
|
|
4147
4110
|
return e.$$set = (c) => {
|
|
4148
|
-
"endpoint" in c && r(12, i = c.endpoint), "tokenid" in c && r(9, o = c.tokenid), "playerid" in c && r(10,
|
|
4111
|
+
"endpoint" in c && r(12, i = c.endpoint), "tokenid" in c && r(9, o = c.tokenid), "playerid" in c && r(10, a = c.playerid), "smstemplate" in c && r(13, s = c.smstemplate), "number" in c && r(11, h = c.number), "clientstyling" in c && r(14, u = c.clientstyling), "clientstylingurl" in c && r(15, l = c.clientstylingurl), "translationurl" in c && r(16, f = c.translationurl);
|
|
4149
4112
|
}, e.$$.update = () => {
|
|
4150
4113
|
e.$$.dirty & /*tokenid, playerid, endpoint*/
|
|
4151
4114
|
5632, e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4152
|
-
16385 && u && S &&
|
|
4153
|
-
32769 &&
|
|
4115
|
+
16385 && u && S && me(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4116
|
+
32769 && l && S && pe(), e.$$.dirty & /*translationurl*/
|
|
4154
4117
|
65536 && f && I();
|
|
4155
4118
|
}, [
|
|
4156
4119
|
S,
|
|
@@ -4159,30 +4122,30 @@ function yi(e, t, r) {
|
|
|
4159
4122
|
_,
|
|
4160
4123
|
T,
|
|
4161
4124
|
n,
|
|
4162
|
-
|
|
4163
|
-
|
|
4125
|
+
U,
|
|
4126
|
+
j,
|
|
4164
4127
|
O,
|
|
4165
4128
|
o,
|
|
4166
|
-
s,
|
|
4167
|
-
l,
|
|
4168
|
-
i,
|
|
4169
4129
|
a,
|
|
4170
|
-
u,
|
|
4171
4130
|
h,
|
|
4131
|
+
i,
|
|
4132
|
+
s,
|
|
4133
|
+
u,
|
|
4134
|
+
l,
|
|
4172
4135
|
f,
|
|
4173
4136
|
B,
|
|
4174
4137
|
w,
|
|
4175
4138
|
P
|
|
4176
4139
|
];
|
|
4177
4140
|
}
|
|
4178
|
-
class
|
|
4141
|
+
class li extends fr {
|
|
4179
4142
|
constructor(t) {
|
|
4180
|
-
super(),
|
|
4143
|
+
super(), hr(
|
|
4181
4144
|
this,
|
|
4182
4145
|
t,
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4146
|
+
ui,
|
|
4147
|
+
ai,
|
|
4148
|
+
yt,
|
|
4186
4149
|
{
|
|
4187
4150
|
endpoint: 12,
|
|
4188
4151
|
tokenid: 9,
|
|
@@ -4193,59 +4156,59 @@ class Ei extends Sr {
|
|
|
4193
4156
|
clientstylingurl: 15,
|
|
4194
4157
|
translationurl: 16
|
|
4195
4158
|
},
|
|
4196
|
-
|
|
4159
|
+
ii
|
|
4197
4160
|
);
|
|
4198
4161
|
}
|
|
4199
4162
|
get endpoint() {
|
|
4200
4163
|
return this.$$.ctx[12];
|
|
4201
4164
|
}
|
|
4202
4165
|
set endpoint(t) {
|
|
4203
|
-
this.$$set({ endpoint: t }),
|
|
4166
|
+
this.$$set({ endpoint: t }), D();
|
|
4204
4167
|
}
|
|
4205
4168
|
get tokenid() {
|
|
4206
4169
|
return this.$$.ctx[9];
|
|
4207
4170
|
}
|
|
4208
4171
|
set tokenid(t) {
|
|
4209
|
-
this.$$set({ tokenid: t }),
|
|
4172
|
+
this.$$set({ tokenid: t }), D();
|
|
4210
4173
|
}
|
|
4211
4174
|
get playerid() {
|
|
4212
4175
|
return this.$$.ctx[10];
|
|
4213
4176
|
}
|
|
4214
4177
|
set playerid(t) {
|
|
4215
|
-
this.$$set({ playerid: t }),
|
|
4178
|
+
this.$$set({ playerid: t }), D();
|
|
4216
4179
|
}
|
|
4217
4180
|
get smstemplate() {
|
|
4218
4181
|
return this.$$.ctx[13];
|
|
4219
4182
|
}
|
|
4220
4183
|
set smstemplate(t) {
|
|
4221
|
-
this.$$set({ smstemplate: t }),
|
|
4184
|
+
this.$$set({ smstemplate: t }), D();
|
|
4222
4185
|
}
|
|
4223
4186
|
get number() {
|
|
4224
4187
|
return this.$$.ctx[11];
|
|
4225
4188
|
}
|
|
4226
4189
|
set number(t) {
|
|
4227
|
-
this.$$set({ number: t }),
|
|
4190
|
+
this.$$set({ number: t }), D();
|
|
4228
4191
|
}
|
|
4229
4192
|
get clientstyling() {
|
|
4230
4193
|
return this.$$.ctx[14];
|
|
4231
4194
|
}
|
|
4232
4195
|
set clientstyling(t) {
|
|
4233
|
-
this.$$set({ clientstyling: t }),
|
|
4196
|
+
this.$$set({ clientstyling: t }), D();
|
|
4234
4197
|
}
|
|
4235
4198
|
get clientstylingurl() {
|
|
4236
4199
|
return this.$$.ctx[15];
|
|
4237
4200
|
}
|
|
4238
4201
|
set clientstylingurl(t) {
|
|
4239
|
-
this.$$set({ clientstylingurl: t }),
|
|
4202
|
+
this.$$set({ clientstylingurl: t }), D();
|
|
4240
4203
|
}
|
|
4241
4204
|
get translationurl() {
|
|
4242
4205
|
return this.$$.ctx[16];
|
|
4243
4206
|
}
|
|
4244
4207
|
set translationurl(t) {
|
|
4245
|
-
this.$$set({ translationurl: t }),
|
|
4208
|
+
this.$$set({ translationurl: t }), D();
|
|
4246
4209
|
}
|
|
4247
4210
|
}
|
|
4248
|
-
|
|
4211
|
+
cr(li, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4249
4212
|
export {
|
|
4250
|
-
|
|
4213
|
+
li as G
|
|
4251
4214
|
};
|