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