@everymatrix/player-email-verification 1.74.8 → 1.74.10
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/{PlayerEmailVerification-DgO_reIt.js → PlayerEmailVerification-BBi35CeE.js} +490 -488
- package/components/PlayerEmailVerification-BvFFq54H.cjs +16 -0
- package/components/{PlayerEmailVerification-BEBlzjMH.js → PlayerEmailVerification-PiRGTKmW.js} +511 -509
- package/es2015/player-email-verification.cjs +1 -1
- package/es2015/player-email-verification.js +1 -1
- package/esnext/player-email-verification.js +1 -1
- package/package.json +1 -1
- package/components/PlayerEmailVerification-D4cuMbt0.cjs +0 -16
package/components/{PlayerEmailVerification-BEBlzjMH.js → PlayerEmailVerification-PiRGTKmW.js}
RENAMED
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var It = Object.defineProperty, wt = Object.defineProperties;
|
|
2
|
+
var $t = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var $e = Object.getOwnPropertySymbols;
|
|
4
|
+
var Lt = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var oe = (e, t, r) => t in e ? It(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Le = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Lt.call(t, r) && oe(e, r, t[r]);
|
|
8
|
+
if ($e)
|
|
9
|
+
for (var r of $e(t))
|
|
10
|
+
Mt.call(t, r) && oe(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var s = (
|
|
12
|
+
}, Me = (e, t) => wt(e, $t(t));
|
|
13
|
+
var _ = (e, t, r) => (oe(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var Ce = (e, t, r) => new Promise((n, i) => {
|
|
15
|
+
var s = (h) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
17
|
+
u(r.next(h));
|
|
18
|
+
} catch (o) {
|
|
19
|
+
i(o);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, a = (h) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
23
|
+
u(r.throw(h));
|
|
24
|
+
} catch (o) {
|
|
25
|
+
i(o);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, a);
|
|
28
|
+
u((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function v() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function tt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Re() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function z(e) {
|
|
39
|
+
e.forEach(tt);
|
|
40
40
|
}
|
|
41
41
|
function Be(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function rt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Ct(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function nt(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
54
|
-
return
|
|
54
|
+
return v;
|
|
55
55
|
}
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function Rt(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(nt(t, r));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function it(e, t, r) {
|
|
63
63
|
e.insertBefore(t, r || null);
|
|
64
64
|
}
|
|
65
65
|
function Ae(e) {
|
|
66
66
|
e.parentNode && e.parentNode.removeChild(e);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function st(e) {
|
|
69
69
|
return document.createElement(e);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Ut(e, t, r) {
|
|
72
72
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Gt(e) {
|
|
75
75
|
return Array.from(e.childNodes);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Dt(e) {
|
|
78
78
|
const t = {};
|
|
79
79
|
return e.childNodes.forEach(
|
|
80
80
|
/** @param {Element} node */
|
|
@@ -87,17 +87,17 @@ let Pe;
|
|
|
87
87
|
function k(e) {
|
|
88
88
|
Pe = e;
|
|
89
89
|
}
|
|
90
|
-
const I = [],
|
|
90
|
+
const I = [], Ue = [];
|
|
91
91
|
let $ = [];
|
|
92
|
-
const
|
|
93
|
-
let
|
|
94
|
-
function
|
|
95
|
-
|
|
92
|
+
const Ge = [], Ft = /* @__PURE__ */ Promise.resolve();
|
|
93
|
+
let pe = !1;
|
|
94
|
+
function jt() {
|
|
95
|
+
pe || (pe = !0, Ft.then(w));
|
|
96
96
|
}
|
|
97
97
|
function be(e) {
|
|
98
98
|
$.push(e);
|
|
99
99
|
}
|
|
100
|
-
const
|
|
100
|
+
const ue = /* @__PURE__ */ new Set();
|
|
101
101
|
let N = 0;
|
|
102
102
|
function w() {
|
|
103
103
|
if (N !== 0)
|
|
@@ -107,113 +107,113 @@ function w() {
|
|
|
107
107
|
try {
|
|
108
108
|
for (; N < I.length; ) {
|
|
109
109
|
const t = I[N];
|
|
110
|
-
N++, k(t),
|
|
110
|
+
N++, k(t), Vt(t.$$);
|
|
111
111
|
}
|
|
112
112
|
} catch (t) {
|
|
113
113
|
throw I.length = 0, N = 0, t;
|
|
114
114
|
}
|
|
115
|
-
for (k(null), I.length = 0, N = 0;
|
|
116
|
-
|
|
115
|
+
for (k(null), I.length = 0, N = 0; Ue.length; )
|
|
116
|
+
Ue.pop()();
|
|
117
117
|
for (let t = 0; t < $.length; t += 1) {
|
|
118
118
|
const r = $[t];
|
|
119
|
-
|
|
119
|
+
ue.has(r) || (ue.add(r), r());
|
|
120
120
|
}
|
|
121
121
|
$.length = 0;
|
|
122
122
|
} while (I.length);
|
|
123
|
-
for (;
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
for (; Ge.length; )
|
|
124
|
+
Ge.pop()();
|
|
125
|
+
pe = !1, ue.clear(), k(e);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Vt(e) {
|
|
128
128
|
if (e.fragment !== null) {
|
|
129
|
-
e.update(),
|
|
129
|
+
e.update(), z(e.before_update);
|
|
130
130
|
const t = e.dirty;
|
|
131
131
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(be);
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function kt(e) {
|
|
135
135
|
const t = [], r = [];
|
|
136
136
|
$.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), $ = t;
|
|
137
137
|
}
|
|
138
|
-
const
|
|
138
|
+
const Xt = /* @__PURE__ */ new Set();
|
|
139
139
|
function Wt(e, t) {
|
|
140
|
-
e && e.i && (
|
|
140
|
+
e && e.i && (Xt.delete(e), e.i(t));
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function zt(e, t, r) {
|
|
143
143
|
const { fragment: n, after_update: i } = e.$$;
|
|
144
144
|
n && n.m(t, r), be(() => {
|
|
145
|
-
const s = e.$$.on_mount.map(
|
|
146
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
145
|
+
const s = e.$$.on_mount.map(tt).filter(Be);
|
|
146
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : z(s), e.$$.on_mount = [];
|
|
147
147
|
}), i.forEach(be);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Zt(e, t) {
|
|
150
150
|
const r = e.$$;
|
|
151
|
-
r.fragment !== null && (
|
|
151
|
+
r.fragment !== null && (kt(r.after_update), z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
e.$$.dirty[0] === -1 && (I.push(e),
|
|
153
|
+
function Qt(e, t) {
|
|
154
|
+
e.$$.dirty[0] === -1 && (I.push(e), jt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
const
|
|
156
|
+
function Jt(e, t, r, n, i, s, a = null, u = [-1]) {
|
|
157
|
+
const h = Pe;
|
|
158
158
|
k(e);
|
|
159
|
-
const
|
|
159
|
+
const o = e.$$ = {
|
|
160
160
|
fragment: null,
|
|
161
161
|
ctx: [],
|
|
162
162
|
// state
|
|
163
163
|
props: s,
|
|
164
|
-
update:
|
|
164
|
+
update: v,
|
|
165
165
|
not_equal: i,
|
|
166
|
-
bound:
|
|
166
|
+
bound: Re(),
|
|
167
167
|
// lifecycle
|
|
168
168
|
on_mount: [],
|
|
169
169
|
on_destroy: [],
|
|
170
170
|
on_disconnect: [],
|
|
171
171
|
before_update: [],
|
|
172
172
|
after_update: [],
|
|
173
|
-
context: new Map(t.context || (
|
|
173
|
+
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
174
174
|
// everything else
|
|
175
|
-
callbacks:
|
|
176
|
-
dirty:
|
|
175
|
+
callbacks: Re(),
|
|
176
|
+
dirty: u,
|
|
177
177
|
skip_bound: !1,
|
|
178
|
-
root: t.target ||
|
|
178
|
+
root: t.target || h.$$.root
|
|
179
179
|
};
|
|
180
|
-
|
|
180
|
+
a && a(o.root);
|
|
181
181
|
let l = !1;
|
|
182
|
-
if (
|
|
182
|
+
if (o.ctx = r(e, t.props || {}, (f, c, ...b) => {
|
|
183
183
|
const g = b.length ? b[0] : c;
|
|
184
|
-
return
|
|
185
|
-
})
|
|
184
|
+
return o.ctx && i(o.ctx[f], o.ctx[f] = g) && (!o.skip_bound && o.bound[f] && o.bound[f](g), l && Qt(e, f)), c;
|
|
185
|
+
}), o.update(), l = !0, z(o.before_update), o.fragment = n(o.ctx), t.target) {
|
|
186
186
|
if (t.hydrate) {
|
|
187
|
-
const f =
|
|
188
|
-
|
|
187
|
+
const f = Gt(t.target);
|
|
188
|
+
o.fragment && o.fragment.l(f), f.forEach(Ae);
|
|
189
189
|
} else
|
|
190
|
-
|
|
191
|
-
t.intro && Wt(e.$$.fragment),
|
|
190
|
+
o.fragment && o.fragment.c();
|
|
191
|
+
t.intro && Wt(e.$$.fragment), zt(e, t.target, t.anchor), w();
|
|
192
192
|
}
|
|
193
|
-
k(
|
|
193
|
+
k(h);
|
|
194
194
|
}
|
|
195
195
|
let at;
|
|
196
196
|
typeof HTMLElement == "function" && (at = class extends HTMLElement {
|
|
197
197
|
constructor(t, r, n) {
|
|
198
198
|
super();
|
|
199
199
|
/** The Svelte component constructor */
|
|
200
|
-
|
|
200
|
+
_(this, "$$ctor");
|
|
201
201
|
/** Slots */
|
|
202
|
-
|
|
202
|
+
_(this, "$$s");
|
|
203
203
|
/** The Svelte component instance */
|
|
204
|
-
|
|
204
|
+
_(this, "$$c");
|
|
205
205
|
/** Whether or not the custom element is connected */
|
|
206
|
-
|
|
206
|
+
_(this, "$$cn", !1);
|
|
207
207
|
/** Component props data */
|
|
208
|
-
|
|
208
|
+
_(this, "$$d", {});
|
|
209
209
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
210
|
-
|
|
210
|
+
_(this, "$$r", !1);
|
|
211
211
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
212
|
-
|
|
212
|
+
_(this, "$$p_d", {});
|
|
213
213
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
214
|
-
|
|
214
|
+
_(this, "$$l", {});
|
|
215
215
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
216
|
-
|
|
216
|
+
_(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
217
217
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
218
218
|
}
|
|
219
219
|
addEventListener(t, r, n) {
|
|
@@ -230,42 +230,42 @@ typeof HTMLElement == "function" && (at = class extends HTMLElement {
|
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
connectedCallback() {
|
|
233
|
-
return
|
|
233
|
+
return Ce(this, null, function* () {
|
|
234
234
|
if (this.$$cn = !0, !this.$$c) {
|
|
235
235
|
let t = function(s) {
|
|
236
236
|
return () => {
|
|
237
|
-
let
|
|
237
|
+
let a;
|
|
238
238
|
return {
|
|
239
239
|
c: function() {
|
|
240
|
-
|
|
240
|
+
a = st("slot"), s !== "default" && Ut(a, "name", s);
|
|
241
241
|
},
|
|
242
242
|
/**
|
|
243
243
|
* @param {HTMLElement} target
|
|
244
244
|
* @param {HTMLElement} [anchor]
|
|
245
245
|
*/
|
|
246
|
-
m: function(
|
|
247
|
-
|
|
246
|
+
m: function(o, l) {
|
|
247
|
+
it(o, a, l);
|
|
248
248
|
},
|
|
249
|
-
d: function(
|
|
250
|
-
|
|
249
|
+
d: function(o) {
|
|
250
|
+
o && Ae(a);
|
|
251
251
|
}
|
|
252
252
|
};
|
|
253
253
|
};
|
|
254
254
|
};
|
|
255
255
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
256
256
|
return;
|
|
257
|
-
const r = {}, n =
|
|
257
|
+
const r = {}, n = Dt(this);
|
|
258
258
|
for (const s of this.$$s)
|
|
259
259
|
s in n && (r[s] = [t(s)]);
|
|
260
260
|
for (const s of this.attributes) {
|
|
261
|
-
const
|
|
262
|
-
|
|
261
|
+
const a = this.$$g_p(s.name);
|
|
262
|
+
a in this.$$d || (this.$$d[a] = q(a, s.value, this.$$p_d, "toProp"));
|
|
263
263
|
}
|
|
264
264
|
for (const s in this.$$p_d)
|
|
265
265
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
266
266
|
this.$$c = new this.$$ctor({
|
|
267
267
|
target: this.shadowRoot || this,
|
|
268
|
-
props:
|
|
268
|
+
props: Me(Le({}, this.$$d), {
|
|
269
269
|
$$slots: r,
|
|
270
270
|
$$scope: {
|
|
271
271
|
ctx: []
|
|
@@ -276,21 +276,21 @@ typeof HTMLElement == "function" && (at = class extends HTMLElement {
|
|
|
276
276
|
this.$$r = !0;
|
|
277
277
|
for (const s in this.$$p_d)
|
|
278
278
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
279
|
-
const
|
|
279
|
+
const a = q(
|
|
280
280
|
s,
|
|
281
281
|
this.$$d[s],
|
|
282
282
|
this.$$p_d,
|
|
283
283
|
"toAttribute"
|
|
284
284
|
);
|
|
285
|
-
|
|
285
|
+
a == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, a);
|
|
286
286
|
}
|
|
287
287
|
this.$$r = !1;
|
|
288
288
|
};
|
|
289
289
|
this.$$c.$$.after_update.push(i), i();
|
|
290
290
|
for (const s in this.$$l)
|
|
291
|
-
for (const
|
|
292
|
-
const
|
|
293
|
-
this.$$l_u.set(
|
|
291
|
+
for (const a of this.$$l[s]) {
|
|
292
|
+
const u = this.$$c.$on(s, a);
|
|
293
|
+
this.$$l_u.set(a, u);
|
|
294
294
|
}
|
|
295
295
|
this.$$l = {};
|
|
296
296
|
}
|
|
@@ -343,38 +343,38 @@ function q(e, t, r, n) {
|
|
|
343
343
|
return t;
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
|
-
function
|
|
347
|
-
let
|
|
346
|
+
function qt(e, t, r, n, i, s) {
|
|
347
|
+
let a = class extends at {
|
|
348
348
|
constructor() {
|
|
349
349
|
super(e, r, i), this.$$p_d = t;
|
|
350
350
|
}
|
|
351
351
|
static get observedAttributes() {
|
|
352
352
|
return Object.keys(t).map(
|
|
353
|
-
(
|
|
353
|
+
(u) => (t[u].attribute || u).toLowerCase()
|
|
354
354
|
);
|
|
355
355
|
}
|
|
356
356
|
};
|
|
357
|
-
return Object.keys(t).forEach((
|
|
358
|
-
Object.defineProperty(
|
|
357
|
+
return Object.keys(t).forEach((u) => {
|
|
358
|
+
Object.defineProperty(a.prototype, u, {
|
|
359
359
|
get() {
|
|
360
|
-
return this.$$c &&
|
|
360
|
+
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
361
361
|
},
|
|
362
|
-
set(
|
|
363
|
-
var
|
|
364
|
-
|
|
362
|
+
set(h) {
|
|
363
|
+
var o;
|
|
364
|
+
h = q(u, h, t), this.$$d[u] = h, (o = this.$$c) == null || o.$set({ [u]: h });
|
|
365
365
|
}
|
|
366
366
|
});
|
|
367
|
-
}), n.forEach((
|
|
368
|
-
Object.defineProperty(
|
|
367
|
+
}), n.forEach((u) => {
|
|
368
|
+
Object.defineProperty(a.prototype, u, {
|
|
369
369
|
get() {
|
|
370
|
-
var
|
|
371
|
-
return (
|
|
370
|
+
var h;
|
|
371
|
+
return (h = this.$$c) == null ? void 0 : h[u];
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
374
|
}), e.element = /** @type {any} */
|
|
375
|
-
|
|
375
|
+
a, a;
|
|
376
376
|
}
|
|
377
|
-
class
|
|
377
|
+
class Yt {
|
|
378
378
|
constructor() {
|
|
379
379
|
/**
|
|
380
380
|
* ### PRIVATE API
|
|
@@ -383,7 +383,7 @@ class Kt {
|
|
|
383
383
|
*
|
|
384
384
|
* @type {any}
|
|
385
385
|
*/
|
|
386
|
-
|
|
386
|
+
_(this, "$$");
|
|
387
387
|
/**
|
|
388
388
|
* ### PRIVATE API
|
|
389
389
|
*
|
|
@@ -391,11 +391,11 @@ class Kt {
|
|
|
391
391
|
*
|
|
392
392
|
* @type {any}
|
|
393
393
|
*/
|
|
394
|
-
|
|
394
|
+
_(this, "$$set");
|
|
395
395
|
}
|
|
396
396
|
/** @returns {void} */
|
|
397
397
|
$destroy() {
|
|
398
|
-
|
|
398
|
+
Zt(this, 1), this.$destroy = v;
|
|
399
399
|
}
|
|
400
400
|
/**
|
|
401
401
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -405,7 +405,7 @@ class Kt {
|
|
|
405
405
|
*/
|
|
406
406
|
$on(t, r) {
|
|
407
407
|
if (!Be(r))
|
|
408
|
-
return
|
|
408
|
+
return v;
|
|
409
409
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
410
410
|
return n.push(r), () => {
|
|
411
411
|
const i = n.indexOf(r);
|
|
@@ -417,89 +417,89 @@ class Kt {
|
|
|
417
417
|
* @returns {void}
|
|
418
418
|
*/
|
|
419
419
|
$set(t) {
|
|
420
|
-
this.$$set && !
|
|
420
|
+
this.$$set && !Ct(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
const
|
|
424
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
423
|
+
const Kt = "4";
|
|
424
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Kt);
|
|
425
425
|
const O = [];
|
|
426
|
-
function
|
|
426
|
+
function er(e, t) {
|
|
427
427
|
return {
|
|
428
428
|
subscribe: re(e, t).subscribe
|
|
429
429
|
};
|
|
430
430
|
}
|
|
431
|
-
function re(e, t =
|
|
431
|
+
function re(e, t = v) {
|
|
432
432
|
let r;
|
|
433
433
|
const n = /* @__PURE__ */ new Set();
|
|
434
|
-
function i(
|
|
435
|
-
if (
|
|
436
|
-
const
|
|
437
|
-
for (const
|
|
438
|
-
|
|
439
|
-
if (
|
|
440
|
-
for (let
|
|
441
|
-
O[
|
|
434
|
+
function i(u) {
|
|
435
|
+
if (rt(e, u) && (e = u, r)) {
|
|
436
|
+
const h = !O.length;
|
|
437
|
+
for (const o of n)
|
|
438
|
+
o[1](), O.push(o, e);
|
|
439
|
+
if (h) {
|
|
440
|
+
for (let o = 0; o < O.length; o += 2)
|
|
441
|
+
O[o][0](O[o + 1]);
|
|
442
442
|
O.length = 0;
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
function s(
|
|
447
|
-
i(
|
|
446
|
+
function s(u) {
|
|
447
|
+
i(u(e));
|
|
448
448
|
}
|
|
449
|
-
function
|
|
450
|
-
const
|
|
451
|
-
return n.add(
|
|
452
|
-
n.delete(
|
|
449
|
+
function a(u, h = v) {
|
|
450
|
+
const o = [u, h];
|
|
451
|
+
return n.add(o), n.size === 1 && (r = t(i, s) || v), u(e), () => {
|
|
452
|
+
n.delete(o), n.size === 0 && r && (r(), r = null);
|
|
453
453
|
};
|
|
454
454
|
}
|
|
455
|
-
return { set: i, update: s, subscribe:
|
|
455
|
+
return { set: i, update: s, subscribe: a };
|
|
456
456
|
}
|
|
457
457
|
function U(e, t, r) {
|
|
458
458
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
459
459
|
if (!i.every(Boolean))
|
|
460
460
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
461
461
|
const s = t.length < 2;
|
|
462
|
-
return
|
|
463
|
-
let
|
|
464
|
-
const
|
|
465
|
-
let l = 0, f =
|
|
462
|
+
return er(r, (a, u) => {
|
|
463
|
+
let h = !1;
|
|
464
|
+
const o = [];
|
|
465
|
+
let l = 0, f = v;
|
|
466
466
|
const c = () => {
|
|
467
467
|
if (l)
|
|
468
468
|
return;
|
|
469
469
|
f();
|
|
470
|
-
const g = t(n ?
|
|
471
|
-
s ?
|
|
470
|
+
const g = t(n ? o[0] : o, a, u);
|
|
471
|
+
s ? a(g) : f = Be(g) ? g : v;
|
|
472
472
|
}, b = i.map(
|
|
473
|
-
(g, x) =>
|
|
473
|
+
(g, x) => nt(
|
|
474
474
|
g,
|
|
475
475
|
(T) => {
|
|
476
|
-
|
|
476
|
+
o[x] = T, l &= ~(1 << x), h && c();
|
|
477
477
|
},
|
|
478
478
|
() => {
|
|
479
479
|
l |= 1 << x;
|
|
480
480
|
}
|
|
481
481
|
)
|
|
482
482
|
);
|
|
483
|
-
return
|
|
484
|
-
|
|
483
|
+
return h = !0, c(), function() {
|
|
484
|
+
z(b), f(), h = !1;
|
|
485
485
|
};
|
|
486
486
|
});
|
|
487
487
|
}
|
|
488
|
-
function
|
|
489
|
-
return e
|
|
488
|
+
function tr(e) {
|
|
489
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
490
490
|
}
|
|
491
|
-
var
|
|
492
|
-
return
|
|
491
|
+
var rr = function(t) {
|
|
492
|
+
return nr(t) && !ir(t);
|
|
493
493
|
};
|
|
494
|
-
function
|
|
494
|
+
function nr(e) {
|
|
495
495
|
return !!e && typeof e == "object";
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function ir(e) {
|
|
498
498
|
var t = Object.prototype.toString.call(e);
|
|
499
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
499
|
+
return t === "[object RegExp]" || t === "[object Date]" || or(e);
|
|
500
500
|
}
|
|
501
|
-
var
|
|
502
|
-
function
|
|
501
|
+
var sr = typeof Symbol == "function" && Symbol.for, ar = sr ? Symbol.for("react.element") : 60103;
|
|
502
|
+
function or(e) {
|
|
503
503
|
return e.$$typeof === ar;
|
|
504
504
|
}
|
|
505
505
|
function ur(e) {
|
|
@@ -508,47 +508,47 @@ function ur(e) {
|
|
|
508
508
|
function X(e, t) {
|
|
509
509
|
return t.clone !== !1 && t.isMergeableObject(e) ? L(ur(e), e, t) : e;
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function hr(e, t, r) {
|
|
512
512
|
return e.concat(t).map(function(n) {
|
|
513
513
|
return X(n, r);
|
|
514
514
|
});
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function lr(e, t) {
|
|
517
517
|
if (!t.customMerge)
|
|
518
518
|
return L;
|
|
519
519
|
var r = t.customMerge(e);
|
|
520
520
|
return typeof r == "function" ? r : L;
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function fr(e) {
|
|
523
523
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
524
524
|
return Object.propertyIsEnumerable.call(e, t);
|
|
525
525
|
}) : [];
|
|
526
526
|
}
|
|
527
|
-
function
|
|
528
|
-
return Object.keys(e).concat(
|
|
527
|
+
function De(e) {
|
|
528
|
+
return Object.keys(e).concat(fr(e));
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function ot(e, t) {
|
|
531
531
|
try {
|
|
532
532
|
return t in e;
|
|
533
533
|
} catch (r) {
|
|
534
534
|
return !1;
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
function
|
|
538
|
-
return
|
|
537
|
+
function cr(e, t) {
|
|
538
|
+
return ot(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function mr(e, t, r) {
|
|
541
541
|
var n = {};
|
|
542
|
-
return r.isMergeableObject(e) &&
|
|
542
|
+
return r.isMergeableObject(e) && De(e).forEach(function(i) {
|
|
543
543
|
n[i] = X(e[i], r);
|
|
544
|
-
}),
|
|
545
|
-
|
|
544
|
+
}), De(t).forEach(function(i) {
|
|
545
|
+
cr(e, i) || (ot(e, i) && r.isMergeableObject(t[i]) ? n[i] = lr(i, r)(e[i], t[i], r) : n[i] = X(t[i], r));
|
|
546
546
|
}), n;
|
|
547
547
|
}
|
|
548
548
|
function L(e, t, r) {
|
|
549
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
549
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || hr, r.isMergeableObject = r.isMergeableObject || rr, r.cloneUnlessOtherwiseSpecified = X;
|
|
550
550
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
551
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
551
|
+
return s ? n ? r.arrayMerge(e, t, r) : mr(e, t, r) : X(t, r);
|
|
552
552
|
}
|
|
553
553
|
L.all = function(t, r) {
|
|
554
554
|
if (!Array.isArray(t))
|
|
@@ -557,8 +557,8 @@ L.all = function(t, r) {
|
|
|
557
557
|
return L(n, i, r);
|
|
558
558
|
}, {});
|
|
559
559
|
};
|
|
560
|
-
var dr = L,
|
|
561
|
-
const
|
|
560
|
+
var dr = L, pr = dr;
|
|
561
|
+
const br = /* @__PURE__ */ tr(pr);
|
|
562
562
|
/*! *****************************************************************************
|
|
563
563
|
Copyright (c) Microsoft Corporation.
|
|
564
564
|
|
|
@@ -590,17 +590,17 @@ function ne(e, t) {
|
|
|
590
590
|
}
|
|
591
591
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
592
592
|
}
|
|
593
|
-
var
|
|
594
|
-
return
|
|
593
|
+
var p = function() {
|
|
594
|
+
return p = Object.assign || function(t) {
|
|
595
595
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
596
596
|
r = arguments[n];
|
|
597
597
|
for (var s in r)
|
|
598
598
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
599
599
|
}
|
|
600
600
|
return t;
|
|
601
|
-
},
|
|
601
|
+
}, p.apply(this, arguments);
|
|
602
602
|
};
|
|
603
|
-
function
|
|
603
|
+
function gr(e, t) {
|
|
604
604
|
var r = {};
|
|
605
605
|
for (var n in e)
|
|
606
606
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -609,61 +609,63 @@ function Er(e, t) {
|
|
|
609
609
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
610
610
|
return r;
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function he(e, t, r) {
|
|
613
613
|
if (arguments.length === 2)
|
|
614
614
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
615
615
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
616
616
|
return e.concat(s || t);
|
|
617
617
|
}
|
|
618
618
|
function le(e, t) {
|
|
619
|
-
var r = t && t.cache ? t.cache : Tr, n = t && t.serializer ? t.serializer :
|
|
619
|
+
var r = t && t.cache ? t.cache : Tr, n = t && t.serializer ? t.serializer : vr, i = t && t.strategy ? t.strategy : yr;
|
|
620
620
|
return i(e, {
|
|
621
621
|
cache: r,
|
|
622
622
|
serializer: n
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function Er(e) {
|
|
626
626
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
627
627
|
}
|
|
628
628
|
function ut(e, t, r, n) {
|
|
629
|
-
var i =
|
|
629
|
+
var i = Er(n) ? n : r(n), s = t.get(i);
|
|
630
630
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function ht(e, t, r) {
|
|
633
633
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
634
634
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
635
635
|
}
|
|
636
636
|
function Ne(e, t, r, n, i) {
|
|
637
637
|
return r.bind(t, e, n, i);
|
|
638
638
|
}
|
|
639
|
-
function
|
|
640
|
-
var r = e.length === 1 ? ut :
|
|
639
|
+
function yr(e, t) {
|
|
640
|
+
var r = e.length === 1 ? ut : ht;
|
|
641
641
|
return Ne(e, this, r, t.cache.create(), t.serializer);
|
|
642
642
|
}
|
|
643
|
-
function
|
|
644
|
-
return Ne(e, this,
|
|
643
|
+
function xr(e, t) {
|
|
644
|
+
return Ne(e, this, ht, t.cache.create(), t.serializer);
|
|
645
645
|
}
|
|
646
646
|
function _r(e, t) {
|
|
647
647
|
return Ne(e, this, ut, t.cache.create(), t.serializer);
|
|
648
648
|
}
|
|
649
|
-
var
|
|
649
|
+
var vr = function() {
|
|
650
650
|
return JSON.stringify(arguments);
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
651
|
+
}, Hr = (
|
|
652
|
+
/** @class */
|
|
653
|
+
function() {
|
|
654
|
+
function e() {
|
|
655
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
656
|
+
}
|
|
657
|
+
return e.prototype.get = function(t) {
|
|
658
|
+
return this.cache[t];
|
|
659
|
+
}, e.prototype.set = function(t, r) {
|
|
660
|
+
this.cache[t] = r;
|
|
661
|
+
}, e;
|
|
662
|
+
}()
|
|
663
|
+
), Tr = {
|
|
662
664
|
create: function() {
|
|
663
|
-
return new
|
|
665
|
+
return new Hr();
|
|
664
666
|
}
|
|
665
667
|
}, fe = {
|
|
666
|
-
variadic:
|
|
668
|
+
variadic: xr,
|
|
667
669
|
monadic: _r
|
|
668
670
|
}, m;
|
|
669
671
|
(function(e) {
|
|
@@ -677,22 +679,22 @@ var M;
|
|
|
677
679
|
(function(e) {
|
|
678
680
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
679
681
|
})(M || (M = {}));
|
|
680
|
-
function
|
|
682
|
+
function Fe(e) {
|
|
681
683
|
return e.type === E.literal;
|
|
682
684
|
}
|
|
683
685
|
function Sr(e) {
|
|
684
686
|
return e.type === E.argument;
|
|
685
687
|
}
|
|
686
|
-
function
|
|
688
|
+
function lt(e) {
|
|
687
689
|
return e.type === E.number;
|
|
688
690
|
}
|
|
689
|
-
function
|
|
691
|
+
function ft(e) {
|
|
690
692
|
return e.type === E.date;
|
|
691
693
|
}
|
|
692
|
-
function
|
|
694
|
+
function ct(e) {
|
|
693
695
|
return e.type === E.time;
|
|
694
696
|
}
|
|
695
|
-
function
|
|
697
|
+
function mt(e) {
|
|
696
698
|
return e.type === E.select;
|
|
697
699
|
}
|
|
698
700
|
function dt(e) {
|
|
@@ -701,16 +703,16 @@ function dt(e) {
|
|
|
701
703
|
function Br(e) {
|
|
702
704
|
return e.type === E.pound;
|
|
703
705
|
}
|
|
704
|
-
function
|
|
706
|
+
function pt(e) {
|
|
705
707
|
return e.type === E.tag;
|
|
706
708
|
}
|
|
707
|
-
function
|
|
709
|
+
function bt(e) {
|
|
708
710
|
return !!(e && typeof e == "object" && e.type === M.number);
|
|
709
711
|
}
|
|
710
712
|
function Ee(e) {
|
|
711
713
|
return !!(e && typeof e == "object" && e.type === M.dateTime);
|
|
712
714
|
}
|
|
713
|
-
var
|
|
715
|
+
var gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ar = /(?:[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;
|
|
714
716
|
function Pr(e) {
|
|
715
717
|
var t = {};
|
|
716
718
|
return e.replace(Ar, function(r) {
|
|
@@ -809,29 +811,29 @@ function Or(e) {
|
|
|
809
811
|
for (var t = e.split(Nr).filter(function(c) {
|
|
810
812
|
return c.length > 0;
|
|
811
813
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
812
|
-
var s = i[n],
|
|
813
|
-
if (
|
|
814
|
+
var s = i[n], a = s.split("/");
|
|
815
|
+
if (a.length === 0)
|
|
814
816
|
throw new Error("Invalid number skeleton");
|
|
815
|
-
for (var
|
|
816
|
-
var f = l[
|
|
817
|
+
for (var u = a[0], h = a.slice(1), o = 0, l = h; o < l.length; o++) {
|
|
818
|
+
var f = l[o];
|
|
817
819
|
if (f.length === 0)
|
|
818
820
|
throw new Error("Invalid number skeleton");
|
|
819
821
|
}
|
|
820
|
-
r.push({ stem:
|
|
822
|
+
r.push({ stem: u, options: h });
|
|
821
823
|
}
|
|
822
824
|
return r;
|
|
823
825
|
}
|
|
824
826
|
function Ir(e) {
|
|
825
827
|
return e.replace(/^(.*?)-/, "");
|
|
826
828
|
}
|
|
827
|
-
var
|
|
828
|
-
function
|
|
829
|
+
var je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Et = /^(@+)?(\+|#+)?[rs]?$/g, wr = /(\*)(0+)|(#+)(0+)|(0+)/g, yt = /^(0+)$/;
|
|
830
|
+
function Ve(e) {
|
|
829
831
|
var t = {};
|
|
830
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
832
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Et, function(r, n, i) {
|
|
831
833
|
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)), "";
|
|
832
834
|
}), t;
|
|
833
835
|
}
|
|
834
|
-
function
|
|
836
|
+
function xt(e) {
|
|
835
837
|
switch (e) {
|
|
836
838
|
case "sign-auto":
|
|
837
839
|
return {
|
|
@@ -879,14 +881,14 @@ function $r(e) {
|
|
|
879
881
|
notation: "scientific"
|
|
880
882
|
}, e = e.slice(1)), t) {
|
|
881
883
|
var r = e.slice(0, 2);
|
|
882
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
884
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !yt.test(e))
|
|
883
885
|
throw new Error("Malformed concise eng/scientific notation");
|
|
884
886
|
t.minimumIntegerDigits = e.length;
|
|
885
887
|
}
|
|
886
888
|
return t;
|
|
887
889
|
}
|
|
888
|
-
function
|
|
889
|
-
var t = {}, r =
|
|
890
|
+
function ke(e) {
|
|
891
|
+
var t = {}, r = xt(e);
|
|
890
892
|
return r || t;
|
|
891
893
|
}
|
|
892
894
|
function Lr(e) {
|
|
@@ -924,13 +926,13 @@ function Lr(e) {
|
|
|
924
926
|
t.notation = "compact", t.compactDisplay = "long";
|
|
925
927
|
continue;
|
|
926
928
|
case "scientific":
|
|
927
|
-
t =
|
|
928
|
-
return
|
|
929
|
+
t = p(p(p({}, t), { notation: "scientific" }), i.options.reduce(function(h, o) {
|
|
930
|
+
return p(p({}, h), ke(o));
|
|
929
931
|
}, {}));
|
|
930
932
|
continue;
|
|
931
933
|
case "engineering":
|
|
932
|
-
t =
|
|
933
|
-
return
|
|
934
|
+
t = p(p(p({}, t), { notation: "engineering" }), i.options.reduce(function(h, o) {
|
|
935
|
+
return p(p({}, h), ke(o));
|
|
934
936
|
}, {}));
|
|
935
937
|
continue;
|
|
936
938
|
case "notation-simple":
|
|
@@ -975,8 +977,8 @@ function Lr(e) {
|
|
|
975
977
|
case "integer-width":
|
|
976
978
|
if (i.options.length > 1)
|
|
977
979
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
978
|
-
i.options[0].replace(wr, function(
|
|
979
|
-
if (
|
|
980
|
+
i.options[0].replace(wr, function(h, o, l, f, c, b) {
|
|
981
|
+
if (o)
|
|
980
982
|
t.minimumIntegerDigits = l.length;
|
|
981
983
|
else {
|
|
982
984
|
if (f && c)
|
|
@@ -988,28 +990,28 @@ function Lr(e) {
|
|
|
988
990
|
});
|
|
989
991
|
continue;
|
|
990
992
|
}
|
|
991
|
-
if (
|
|
993
|
+
if (yt.test(i.stem)) {
|
|
992
994
|
t.minimumIntegerDigits = i.stem.length;
|
|
993
995
|
continue;
|
|
994
996
|
}
|
|
995
|
-
if (
|
|
997
|
+
if (je.test(i.stem)) {
|
|
996
998
|
if (i.options.length > 1)
|
|
997
999
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
998
|
-
i.stem.replace(
|
|
999
|
-
return l === "*" ? t.minimumFractionDigits =
|
|
1000
|
+
i.stem.replace(je, function(h, o, l, f, c, b) {
|
|
1001
|
+
return l === "*" ? t.minimumFractionDigits = o.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = o.length, t.maximumFractionDigits = o.length), "";
|
|
1000
1002
|
});
|
|
1001
1003
|
var s = i.options[0];
|
|
1002
|
-
s === "w" ? t =
|
|
1004
|
+
s === "w" ? t = p(p({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = p(p({}, t), Ve(s)));
|
|
1003
1005
|
continue;
|
|
1004
1006
|
}
|
|
1005
|
-
if (
|
|
1006
|
-
t =
|
|
1007
|
+
if (Et.test(i.stem)) {
|
|
1008
|
+
t = p(p({}, t), Ve(i.stem));
|
|
1007
1009
|
continue;
|
|
1008
1010
|
}
|
|
1009
|
-
var
|
|
1010
|
-
|
|
1011
|
-
var
|
|
1012
|
-
|
|
1011
|
+
var a = xt(i.stem);
|
|
1012
|
+
a && (t = p(p({}, t), a));
|
|
1013
|
+
var u = $r(i.stem);
|
|
1014
|
+
u && (t = p(p({}, t), u));
|
|
1013
1015
|
}
|
|
1014
1016
|
return t;
|
|
1015
1017
|
}
|
|
@@ -2434,11 +2436,11 @@ function Mr(e, t) {
|
|
|
2434
2436
|
if (i === "j") {
|
|
2435
2437
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2436
2438
|
s++, n++;
|
|
2437
|
-
var
|
|
2438
|
-
for ((
|
|
2439
|
-
r +=
|
|
2440
|
-
for (;
|
|
2441
|
-
r =
|
|
2439
|
+
var a = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", o = Cr(t);
|
|
2440
|
+
for ((o == "H" || o == "k") && (u = 0); u-- > 0; )
|
|
2441
|
+
r += h;
|
|
2442
|
+
for (; a-- > 0; )
|
|
2443
|
+
r = o + r;
|
|
2442
2444
|
} else
|
|
2443
2445
|
i === "J" ? r += "H" : r += i;
|
|
2444
2446
|
}
|
|
@@ -2466,20 +2468,20 @@ function Cr(e) {
|
|
|
2466
2468
|
var i = J[n || ""] || J[r || ""] || J["".concat(r, "-001")] || J["001"];
|
|
2467
2469
|
return i[0];
|
|
2468
2470
|
}
|
|
2469
|
-
var ce, Rr = new RegExp("^".concat(
|
|
2470
|
-
function
|
|
2471
|
+
var ce, Rr = new RegExp("^".concat(gt.source, "*")), Ur = new RegExp("".concat(gt.source, "*$"));
|
|
2472
|
+
function d(e, t) {
|
|
2471
2473
|
return { start: e, end: t };
|
|
2472
2474
|
}
|
|
2473
|
-
var Gr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Dr = !!String.fromCodePoint, Fr = !!Object.fromEntries, jr = !!String.prototype.codePointAt, Vr = !!String.prototype.trimStart, kr = !!String.prototype.trimEnd, Xr = !!Number.isSafeInteger,
|
|
2475
|
+
var Gr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Dr = !!String.fromCodePoint, Fr = !!Object.fromEntries, jr = !!String.prototype.codePointAt, Vr = !!String.prototype.trimStart, kr = !!String.prototype.trimEnd, Xr = !!Number.isSafeInteger, Wr = Xr ? Number.isSafeInteger : function(e) {
|
|
2474
2476
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2475
2477
|
}, ye = !0;
|
|
2476
2478
|
try {
|
|
2477
|
-
var
|
|
2478
|
-
ye = ((ce =
|
|
2479
|
+
var zr = vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2480
|
+
ye = ((ce = zr.exec("a")) === null || ce === void 0 ? void 0 : ce[0]) === "a";
|
|
2479
2481
|
} catch (e) {
|
|
2480
2482
|
ye = !1;
|
|
2481
2483
|
}
|
|
2482
|
-
var
|
|
2484
|
+
var Xe = Gr ? (
|
|
2483
2485
|
// Native
|
|
2484
2486
|
function(t, r, n) {
|
|
2485
2487
|
return t.startsWith(r, n);
|
|
@@ -2494,10 +2496,10 @@ var ze = Gr ? (
|
|
|
2494
2496
|
function() {
|
|
2495
2497
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2496
2498
|
t[r] = arguments[r];
|
|
2497
|
-
for (var n = "", i = t.length, s = 0,
|
|
2498
|
-
if (
|
|
2499
|
-
throw RangeError(
|
|
2500
|
-
n +=
|
|
2499
|
+
for (var n = "", i = t.length, s = 0, a; i > s; ) {
|
|
2500
|
+
if (a = t[s++], a > 1114111)
|
|
2501
|
+
throw RangeError(a + " is not a valid code point");
|
|
2502
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
2501
2503
|
}
|
|
2502
2504
|
return n;
|
|
2503
2505
|
}
|
|
@@ -2507,8 +2509,8 @@ var ze = Gr ? (
|
|
|
2507
2509
|
// Ponyfill
|
|
2508
2510
|
function(t) {
|
|
2509
2511
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2510
|
-
var s = i[n],
|
|
2511
|
-
r[
|
|
2512
|
+
var s = i[n], a = s[0], u = s[1];
|
|
2513
|
+
r[a] = u;
|
|
2512
2514
|
}
|
|
2513
2515
|
return r;
|
|
2514
2516
|
}
|
|
@@ -2548,23 +2550,23 @@ var ze = Gr ? (
|
|
|
2548
2550
|
return t.replace(Ur, "");
|
|
2549
2551
|
}
|
|
2550
2552
|
);
|
|
2551
|
-
function
|
|
2553
|
+
function vt(e, t) {
|
|
2552
2554
|
return new RegExp(e, t);
|
|
2553
2555
|
}
|
|
2554
|
-
var
|
|
2556
|
+
var _e;
|
|
2555
2557
|
if (ye) {
|
|
2556
|
-
var
|
|
2557
|
-
|
|
2558
|
+
var ze = vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2559
|
+
_e = function(t, r) {
|
|
2558
2560
|
var n;
|
|
2559
|
-
|
|
2560
|
-
var i =
|
|
2561
|
+
ze.lastIndex = r;
|
|
2562
|
+
var i = ze.exec(t);
|
|
2561
2563
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2562
2564
|
};
|
|
2563
2565
|
} else
|
|
2564
|
-
|
|
2566
|
+
_e = function(t, r) {
|
|
2565
2567
|
for (var n = []; ; ) {
|
|
2566
2568
|
var i = _t(t, r);
|
|
2567
|
-
if (i === void 0 ||
|
|
2569
|
+
if (i === void 0 || Ht(i) || Kr(i))
|
|
2568
2570
|
break;
|
|
2569
2571
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2570
2572
|
}
|
|
@@ -2584,33 +2586,33 @@ var Jr = (
|
|
|
2584
2586
|
for (var i = []; !this.isEOF(); ) {
|
|
2585
2587
|
var s = this.char();
|
|
2586
2588
|
if (s === 123) {
|
|
2587
|
-
var
|
|
2588
|
-
if (
|
|
2589
|
-
return
|
|
2590
|
-
i.push(
|
|
2589
|
+
var a = this.parseArgument(t, n);
|
|
2590
|
+
if (a.err)
|
|
2591
|
+
return a;
|
|
2592
|
+
i.push(a.val);
|
|
2591
2593
|
} else {
|
|
2592
2594
|
if (s === 125 && t > 0)
|
|
2593
2595
|
break;
|
|
2594
2596
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2595
|
-
var
|
|
2597
|
+
var u = this.clonePosition();
|
|
2596
2598
|
this.bump(), i.push({
|
|
2597
2599
|
type: E.pound,
|
|
2598
|
-
location:
|
|
2600
|
+
location: d(u, this.clonePosition())
|
|
2599
2601
|
});
|
|
2600
2602
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2601
2603
|
if (n)
|
|
2602
2604
|
break;
|
|
2603
|
-
return this.error(m.UNMATCHED_CLOSING_TAG,
|
|
2604
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2605
|
-
var
|
|
2606
|
-
if (
|
|
2607
|
-
return
|
|
2608
|
-
i.push(
|
|
2605
|
+
return this.error(m.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
|
2606
|
+
} else if (s === 60 && !this.ignoreTag && ve(this.peek() || 0)) {
|
|
2607
|
+
var a = this.parseTag(t, r);
|
|
2608
|
+
if (a.err)
|
|
2609
|
+
return a;
|
|
2610
|
+
i.push(a.val);
|
|
2609
2611
|
} else {
|
|
2610
|
-
var
|
|
2611
|
-
if (
|
|
2612
|
-
return
|
|
2613
|
-
i.push(
|
|
2612
|
+
var a = this.parseLiteral(t, r);
|
|
2613
|
+
if (a.err)
|
|
2614
|
+
return a;
|
|
2615
|
+
i.push(a.val);
|
|
2614
2616
|
}
|
|
2615
2617
|
}
|
|
2616
2618
|
}
|
|
@@ -2624,7 +2626,7 @@ var Jr = (
|
|
|
2624
2626
|
val: {
|
|
2625
2627
|
type: E.literal,
|
|
2626
2628
|
value: "<".concat(i, "/>"),
|
|
2627
|
-
location:
|
|
2629
|
+
location: d(n, this.clonePosition())
|
|
2628
2630
|
},
|
|
2629
2631
|
err: null
|
|
2630
2632
|
};
|
|
@@ -2632,24 +2634,24 @@ var Jr = (
|
|
|
2632
2634
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2633
2635
|
if (s.err)
|
|
2634
2636
|
return s;
|
|
2635
|
-
var
|
|
2637
|
+
var a = s.val, u = this.clonePosition();
|
|
2636
2638
|
if (this.bumpIf("</")) {
|
|
2637
|
-
if (this.isEOF() || !
|
|
2638
|
-
return this.error(m.INVALID_TAG,
|
|
2639
|
-
var
|
|
2640
|
-
return i !==
|
|
2639
|
+
if (this.isEOF() || !ve(this.char()))
|
|
2640
|
+
return this.error(m.INVALID_TAG, d(u, this.clonePosition()));
|
|
2641
|
+
var h = this.clonePosition(), o = this.parseTagName();
|
|
2642
|
+
return i !== o ? this.error(m.UNMATCHED_CLOSING_TAG, d(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2641
2643
|
val: {
|
|
2642
2644
|
type: E.tag,
|
|
2643
2645
|
value: i,
|
|
2644
|
-
children:
|
|
2645
|
-
location:
|
|
2646
|
+
children: a,
|
|
2647
|
+
location: d(n, this.clonePosition())
|
|
2646
2648
|
},
|
|
2647
2649
|
err: null
|
|
2648
|
-
} : this.error(m.INVALID_TAG,
|
|
2650
|
+
} : this.error(m.INVALID_TAG, d(u, this.clonePosition())));
|
|
2649
2651
|
} else
|
|
2650
|
-
return this.error(m.UNCLOSED_TAG,
|
|
2652
|
+
return this.error(m.UNCLOSED_TAG, d(n, this.clonePosition()));
|
|
2651
2653
|
} else
|
|
2652
|
-
return this.error(m.INVALID_TAG,
|
|
2654
|
+
return this.error(m.INVALID_TAG, d(n, this.clonePosition()));
|
|
2653
2655
|
}, e.prototype.parseTagName = function() {
|
|
2654
2656
|
var t = this.offset();
|
|
2655
2657
|
for (this.bump(); !this.isEOF() && Yr(this.char()); )
|
|
@@ -2662,21 +2664,21 @@ var Jr = (
|
|
|
2662
2664
|
i += s;
|
|
2663
2665
|
continue;
|
|
2664
2666
|
}
|
|
2665
|
-
var
|
|
2666
|
-
if (
|
|
2667
|
-
i +=
|
|
2667
|
+
var a = this.tryParseUnquoted(t, r);
|
|
2668
|
+
if (a) {
|
|
2669
|
+
i += a;
|
|
2668
2670
|
continue;
|
|
2669
2671
|
}
|
|
2670
|
-
var
|
|
2671
|
-
if (
|
|
2672
|
-
i +=
|
|
2672
|
+
var u = this.tryParseLeftAngleBracket();
|
|
2673
|
+
if (u) {
|
|
2674
|
+
i += u;
|
|
2673
2675
|
continue;
|
|
2674
2676
|
}
|
|
2675
2677
|
break;
|
|
2676
2678
|
}
|
|
2677
|
-
var
|
|
2679
|
+
var h = d(n, this.clonePosition());
|
|
2678
2680
|
return {
|
|
2679
|
-
val: { type: E.literal, value: i, location:
|
|
2681
|
+
val: { type: E.literal, value: i, location: h },
|
|
2680
2682
|
err: null
|
|
2681
2683
|
};
|
|
2682
2684
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2724,14 +2726,14 @@ var Jr = (
|
|
|
2724
2726
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2725
2727
|
var n = this.clonePosition();
|
|
2726
2728
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2727
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2729
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
|
2728
2730
|
if (this.char() === 125)
|
|
2729
|
-
return this.bump(), this.error(m.EMPTY_ARGUMENT,
|
|
2731
|
+
return this.bump(), this.error(m.EMPTY_ARGUMENT, d(n, this.clonePosition()));
|
|
2730
2732
|
var i = this.parseIdentifierIfPossible().value;
|
|
2731
2733
|
if (!i)
|
|
2732
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
|
2734
|
+
return this.error(m.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
2733
2735
|
if (this.bumpSpace(), this.isEOF())
|
|
2734
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2736
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
|
2735
2737
|
switch (this.char()) {
|
|
2736
2738
|
case 125:
|
|
2737
2739
|
return this.bump(), {
|
|
@@ -2739,30 +2741,30 @@ var Jr = (
|
|
|
2739
2741
|
type: E.argument,
|
|
2740
2742
|
// value does not include the opening and closing braces.
|
|
2741
2743
|
value: i,
|
|
2742
|
-
location:
|
|
2744
|
+
location: d(n, this.clonePosition())
|
|
2743
2745
|
},
|
|
2744
2746
|
err: null
|
|
2745
2747
|
};
|
|
2746
2748
|
case 44:
|
|
2747
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2749
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2748
2750
|
default:
|
|
2749
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
|
2751
|
+
return this.error(m.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
2750
2752
|
}
|
|
2751
2753
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2752
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2754
|
+
var t = this.clonePosition(), r = this.offset(), n = _e(this.message, r), i = r + n.length;
|
|
2753
2755
|
this.bumpTo(i);
|
|
2754
|
-
var s = this.clonePosition(),
|
|
2755
|
-
return { value: n, location:
|
|
2756
|
+
var s = this.clonePosition(), a = d(t, s);
|
|
2757
|
+
return { value: n, location: a };
|
|
2756
2758
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2757
|
-
var s,
|
|
2758
|
-
switch (
|
|
2759
|
+
var s, a = this.clonePosition(), u = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2760
|
+
switch (u) {
|
|
2759
2761
|
case "":
|
|
2760
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE,
|
|
2762
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, d(a, h));
|
|
2761
2763
|
case "number":
|
|
2762
2764
|
case "date":
|
|
2763
2765
|
case "time": {
|
|
2764
2766
|
this.bumpSpace();
|
|
2765
|
-
var
|
|
2767
|
+
var o = null;
|
|
2766
2768
|
if (this.bumpIf(",")) {
|
|
2767
2769
|
this.bumpSpace();
|
|
2768
2770
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
@@ -2770,18 +2772,18 @@ var Jr = (
|
|
|
2770
2772
|
return f;
|
|
2771
2773
|
var c = Qr(f.val);
|
|
2772
2774
|
if (c.length === 0)
|
|
2773
|
-
return this.error(m.EXPECT_ARGUMENT_STYLE,
|
|
2774
|
-
var b =
|
|
2775
|
-
|
|
2775
|
+
return this.error(m.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
|
2776
|
+
var b = d(l, this.clonePosition());
|
|
2777
|
+
o = { style: c, styleLocation: b };
|
|
2776
2778
|
}
|
|
2777
2779
|
var g = this.tryParseArgumentClose(i);
|
|
2778
2780
|
if (g.err)
|
|
2779
2781
|
return g;
|
|
2780
|
-
var x =
|
|
2781
|
-
if (
|
|
2782
|
-
var T = Zr(
|
|
2783
|
-
if (
|
|
2784
|
-
var f = this.parseNumberSkeletonFromString(T,
|
|
2782
|
+
var x = d(i, this.clonePosition());
|
|
2783
|
+
if (o && Xe(o == null ? void 0 : o.style, "::", 0)) {
|
|
2784
|
+
var T = Zr(o.style.slice(2));
|
|
2785
|
+
if (u === "number") {
|
|
2786
|
+
var f = this.parseNumberSkeletonFromString(T, o.styleLocation);
|
|
2785
2787
|
return f.err ? f : {
|
|
2786
2788
|
val: { type: E.number, value: n, location: x, style: f.val },
|
|
2787
2789
|
err: null
|
|
@@ -2794,9 +2796,9 @@ var Jr = (
|
|
|
2794
2796
|
var c = {
|
|
2795
2797
|
type: M.dateTime,
|
|
2796
2798
|
pattern: F,
|
|
2797
|
-
location:
|
|
2799
|
+
location: o.styleLocation,
|
|
2798
2800
|
parsedOptions: this.shouldParseSkeletons ? Pr(F) : {}
|
|
2799
|
-
}, P =
|
|
2801
|
+
}, P = u === "date" ? E.date : E.time;
|
|
2800
2802
|
return {
|
|
2801
2803
|
val: { type: P, value: n, location: x, style: c },
|
|
2802
2804
|
err: null
|
|
@@ -2805,10 +2807,10 @@ var Jr = (
|
|
|
2805
2807
|
}
|
|
2806
2808
|
return {
|
|
2807
2809
|
val: {
|
|
2808
|
-
type:
|
|
2810
|
+
type: u === "number" ? E.number : u === "date" ? E.date : E.time,
|
|
2809
2811
|
value: n,
|
|
2810
2812
|
location: x,
|
|
2811
|
-
style: (s =
|
|
2813
|
+
style: (s = o == null ? void 0 : o.style) !== null && s !== void 0 ? s : null
|
|
2812
2814
|
},
|
|
2813
2815
|
err: null
|
|
2814
2816
|
};
|
|
@@ -2818,31 +2820,31 @@ var Jr = (
|
|
|
2818
2820
|
case "select": {
|
|
2819
2821
|
var H = this.clonePosition();
|
|
2820
2822
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2821
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2823
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, d(H, p({}, H)));
|
|
2822
2824
|
this.bumpSpace();
|
|
2823
2825
|
var j = this.parseIdentifierIfPossible(), B = 0;
|
|
2824
|
-
if (
|
|
2826
|
+
if (u !== "select" && j.value === "offset") {
|
|
2825
2827
|
if (!this.bumpIf(":"))
|
|
2826
|
-
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2828
|
+
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
|
2827
2829
|
this.bumpSpace();
|
|
2828
2830
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2829
2831
|
if (f.err)
|
|
2830
2832
|
return f;
|
|
2831
2833
|
this.bumpSpace(), j = this.parseIdentifierIfPossible(), B = f.val;
|
|
2832
2834
|
}
|
|
2833
|
-
var Q = this.tryParsePluralOrSelectOptions(t,
|
|
2835
|
+
var Q = this.tryParsePluralOrSelectOptions(t, u, r, j);
|
|
2834
2836
|
if (Q.err)
|
|
2835
2837
|
return Q;
|
|
2836
2838
|
var g = this.tryParseArgumentClose(i);
|
|
2837
2839
|
if (g.err)
|
|
2838
2840
|
return g;
|
|
2839
|
-
var
|
|
2840
|
-
return
|
|
2841
|
+
var we = d(i, this.clonePosition());
|
|
2842
|
+
return u === "select" ? {
|
|
2841
2843
|
val: {
|
|
2842
2844
|
type: E.select,
|
|
2843
2845
|
value: n,
|
|
2844
2846
|
options: We(Q.val),
|
|
2845
|
-
location:
|
|
2847
|
+
location: we
|
|
2846
2848
|
},
|
|
2847
2849
|
err: null
|
|
2848
2850
|
} : {
|
|
@@ -2851,17 +2853,17 @@ var Jr = (
|
|
|
2851
2853
|
value: n,
|
|
2852
2854
|
options: We(Q.val),
|
|
2853
2855
|
offset: B,
|
|
2854
|
-
pluralType:
|
|
2855
|
-
location:
|
|
2856
|
+
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2857
|
+
location: we
|
|
2856
2858
|
},
|
|
2857
2859
|
err: null
|
|
2858
2860
|
};
|
|
2859
2861
|
}
|
|
2860
2862
|
default:
|
|
2861
|
-
return this.error(m.INVALID_ARGUMENT_TYPE,
|
|
2863
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, d(a, h));
|
|
2862
2864
|
}
|
|
2863
2865
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2864
|
-
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2866
|
+
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2865
2867
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2866
2868
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2867
2869
|
var n = this.char();
|
|
@@ -2870,7 +2872,7 @@ var Jr = (
|
|
|
2870
2872
|
this.bump();
|
|
2871
2873
|
var i = this.clonePosition();
|
|
2872
2874
|
if (!this.bumpUntil("'"))
|
|
2873
|
-
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2875
|
+
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, d(i, this.clonePosition()));
|
|
2874
2876
|
this.bump();
|
|
2875
2877
|
break;
|
|
2876
2878
|
}
|
|
@@ -2914,50 +2916,50 @@ var Jr = (
|
|
|
2914
2916
|
err: null
|
|
2915
2917
|
};
|
|
2916
2918
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2917
|
-
for (var s,
|
|
2918
|
-
if (
|
|
2919
|
+
for (var s, a = !1, u = [], h = /* @__PURE__ */ new Set(), o = i.value, l = i.location; ; ) {
|
|
2920
|
+
if (o.length === 0) {
|
|
2919
2921
|
var f = this.clonePosition();
|
|
2920
2922
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2921
2923
|
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2922
2924
|
if (c.err)
|
|
2923
2925
|
return c;
|
|
2924
|
-
l =
|
|
2926
|
+
l = d(f, this.clonePosition()), o = this.message.slice(f.offset, this.offset());
|
|
2925
2927
|
} else
|
|
2926
2928
|
break;
|
|
2927
2929
|
}
|
|
2928
|
-
if (
|
|
2930
|
+
if (h.has(o))
|
|
2929
2931
|
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
2930
|
-
|
|
2932
|
+
o === "other" && (a = !0), this.bumpSpace();
|
|
2931
2933
|
var b = this.clonePosition();
|
|
2932
2934
|
if (!this.bumpIf("{"))
|
|
2933
|
-
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
2935
|
+
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
|
|
2934
2936
|
var g = this.parseMessage(t + 1, r, n);
|
|
2935
2937
|
if (g.err)
|
|
2936
2938
|
return g;
|
|
2937
2939
|
var x = this.tryParseArgumentClose(b);
|
|
2938
2940
|
if (x.err)
|
|
2939
2941
|
return x;
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
+
u.push([
|
|
2943
|
+
o,
|
|
2942
2944
|
{
|
|
2943
2945
|
value: g.val,
|
|
2944
|
-
location:
|
|
2946
|
+
location: d(b, this.clonePosition())
|
|
2945
2947
|
}
|
|
2946
|
-
]),
|
|
2948
|
+
]), h.add(o), this.bumpSpace(), s = this.parseIdentifierIfPossible(), o = s.value, l = s.location;
|
|
2947
2949
|
}
|
|
2948
|
-
return
|
|
2950
|
+
return u.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, d(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(m.MISSING_OTHER_CLAUSE, d(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
|
|
2949
2951
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2950
2952
|
var n = 1, i = this.clonePosition();
|
|
2951
2953
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
2952
|
-
for (var s = !1,
|
|
2953
|
-
var
|
|
2954
|
-
if (
|
|
2955
|
-
s = !0,
|
|
2954
|
+
for (var s = !1, a = 0; !this.isEOF(); ) {
|
|
2955
|
+
var u = this.char();
|
|
2956
|
+
if (u >= 48 && u <= 57)
|
|
2957
|
+
s = !0, a = a * 10 + (u - 48), this.bump();
|
|
2956
2958
|
else
|
|
2957
2959
|
break;
|
|
2958
2960
|
}
|
|
2959
|
-
var
|
|
2960
|
-
return s ? (
|
|
2961
|
+
var h = d(i, this.clonePosition());
|
|
2962
|
+
return s ? (a *= n, Wr(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
2961
2963
|
}, e.prototype.offset = function() {
|
|
2962
2964
|
return this.position.offset;
|
|
2963
2965
|
}, e.prototype.isEOF = function() {
|
|
@@ -2991,7 +2993,7 @@ var Jr = (
|
|
|
2991
2993
|
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);
|
|
2992
2994
|
}
|
|
2993
2995
|
}, e.prototype.bumpIf = function(t) {
|
|
2994
|
-
if (
|
|
2996
|
+
if (Xe(this.message, t, this.offset())) {
|
|
2995
2997
|
for (var r = 0; r < t.length; r++)
|
|
2996
2998
|
this.bump();
|
|
2997
2999
|
return !0;
|
|
@@ -3013,7 +3015,7 @@ var Jr = (
|
|
|
3013
3015
|
break;
|
|
3014
3016
|
}
|
|
3015
3017
|
}, e.prototype.bumpSpace = function() {
|
|
3016
|
-
for (; !this.isEOF() &&
|
|
3018
|
+
for (; !this.isEOF() && Ht(this.char()); )
|
|
3017
3019
|
this.bump();
|
|
3018
3020
|
}, e.prototype.peek = function() {
|
|
3019
3021
|
if (this.isEOF())
|
|
@@ -3023,16 +3025,16 @@ var Jr = (
|
|
|
3023
3025
|
}, e;
|
|
3024
3026
|
}()
|
|
3025
3027
|
);
|
|
3026
|
-
function
|
|
3028
|
+
function ve(e) {
|
|
3027
3029
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3028
3030
|
}
|
|
3029
3031
|
function qr(e) {
|
|
3030
|
-
return
|
|
3032
|
+
return ve(e) || e === 47;
|
|
3031
3033
|
}
|
|
3032
3034
|
function Yr(e) {
|
|
3033
3035
|
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;
|
|
3034
3036
|
}
|
|
3035
|
-
function
|
|
3037
|
+
function Ht(e) {
|
|
3036
3038
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3037
3039
|
}
|
|
3038
3040
|
function Kr(e) {
|
|
@@ -3040,15 +3042,15 @@ function Kr(e) {
|
|
|
3040
3042
|
}
|
|
3041
3043
|
function He(e) {
|
|
3042
3044
|
e.forEach(function(t) {
|
|
3043
|
-
if (delete t.location,
|
|
3045
|
+
if (delete t.location, mt(t) || dt(t))
|
|
3044
3046
|
for (var r in t.options)
|
|
3045
3047
|
delete t.options[r].location, He(t.options[r].value);
|
|
3046
3048
|
else
|
|
3047
|
-
|
|
3049
|
+
lt(t) && bt(t.style) || (ft(t) || ct(t)) && Ee(t.style) ? delete t.style.location : pt(t) && He(t.children);
|
|
3048
3050
|
});
|
|
3049
3051
|
}
|
|
3050
3052
|
function en(e, t) {
|
|
3051
|
-
t === void 0 && (t = {}), t =
|
|
3053
|
+
t === void 0 && (t = {}), t = p({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3052
3054
|
var r = new Jr(e, t).parse();
|
|
3053
3055
|
if (r.err) {
|
|
3054
3056
|
var n = SyntaxError(m[r.err.kind]);
|
|
@@ -3072,7 +3074,7 @@ var ie = (
|
|
|
3072
3074
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3073
3075
|
}, t;
|
|
3074
3076
|
}(Error)
|
|
3075
|
-
),
|
|
3077
|
+
), Ze = (
|
|
3076
3078
|
/** @class */
|
|
3077
3079
|
function(e) {
|
|
3078
3080
|
ne(t, e);
|
|
@@ -3112,25 +3114,25 @@ function nn(e) {
|
|
|
3112
3114
|
function sn(e) {
|
|
3113
3115
|
return typeof e == "function";
|
|
3114
3116
|
}
|
|
3115
|
-
function Y(e, t, r, n, i, s,
|
|
3116
|
-
if (e.length === 1 &&
|
|
3117
|
+
function Y(e, t, r, n, i, s, a) {
|
|
3118
|
+
if (e.length === 1 && Fe(e[0]))
|
|
3117
3119
|
return [
|
|
3118
3120
|
{
|
|
3119
3121
|
type: y.literal,
|
|
3120
3122
|
value: e[0].value
|
|
3121
3123
|
}
|
|
3122
3124
|
];
|
|
3123
|
-
for (var
|
|
3124
|
-
var l =
|
|
3125
|
-
if (
|
|
3126
|
-
|
|
3125
|
+
for (var u = [], h = 0, o = e; h < o.length; h++) {
|
|
3126
|
+
var l = o[h];
|
|
3127
|
+
if (Fe(l)) {
|
|
3128
|
+
u.push({
|
|
3127
3129
|
type: y.literal,
|
|
3128
3130
|
value: l.value
|
|
3129
3131
|
});
|
|
3130
3132
|
continue;
|
|
3131
3133
|
}
|
|
3132
3134
|
if (Br(l)) {
|
|
3133
|
-
typeof s == "number" &&
|
|
3135
|
+
typeof s == "number" && u.push({
|
|
3134
3136
|
type: y.literal,
|
|
3135
3137
|
value: r.getNumberFormat(t).format(s)
|
|
3136
3138
|
});
|
|
@@ -3138,58 +3140,58 @@ function Y(e, t, r, n, i, s, o) {
|
|
|
3138
3140
|
}
|
|
3139
3141
|
var f = l.value;
|
|
3140
3142
|
if (!(i && f in i))
|
|
3141
|
-
throw new rn(f,
|
|
3143
|
+
throw new rn(f, a);
|
|
3142
3144
|
var c = i[f];
|
|
3143
3145
|
if (Sr(l)) {
|
|
3144
|
-
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""),
|
|
3146
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), u.push({
|
|
3145
3147
|
type: typeof c == "string" ? y.literal : y.object,
|
|
3146
3148
|
value: c
|
|
3147
3149
|
});
|
|
3148
3150
|
continue;
|
|
3149
3151
|
}
|
|
3150
|
-
if (
|
|
3152
|
+
if (ft(l)) {
|
|
3151
3153
|
var b = typeof l.style == "string" ? n.date[l.style] : Ee(l.style) ? l.style.parsedOptions : void 0;
|
|
3152
|
-
|
|
3154
|
+
u.push({
|
|
3153
3155
|
type: y.literal,
|
|
3154
3156
|
value: r.getDateTimeFormat(t, b).format(c)
|
|
3155
3157
|
});
|
|
3156
3158
|
continue;
|
|
3157
3159
|
}
|
|
3158
|
-
if (
|
|
3160
|
+
if (ct(l)) {
|
|
3159
3161
|
var b = typeof l.style == "string" ? n.time[l.style] : Ee(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3160
|
-
|
|
3162
|
+
u.push({
|
|
3161
3163
|
type: y.literal,
|
|
3162
3164
|
value: r.getDateTimeFormat(t, b).format(c)
|
|
3163
3165
|
});
|
|
3164
3166
|
continue;
|
|
3165
3167
|
}
|
|
3166
|
-
if (
|
|
3167
|
-
var b = typeof l.style == "string" ? n.number[l.style] :
|
|
3168
|
-
b && b.scale && (c = c * (b.scale || 1)),
|
|
3168
|
+
if (lt(l)) {
|
|
3169
|
+
var b = typeof l.style == "string" ? n.number[l.style] : bt(l.style) ? l.style.parsedOptions : void 0;
|
|
3170
|
+
b && b.scale && (c = c * (b.scale || 1)), u.push({
|
|
3169
3171
|
type: y.literal,
|
|
3170
3172
|
value: r.getNumberFormat(t, b).format(c)
|
|
3171
3173
|
});
|
|
3172
3174
|
continue;
|
|
3173
3175
|
}
|
|
3174
|
-
if (
|
|
3176
|
+
if (pt(l)) {
|
|
3175
3177
|
var g = l.children, x = l.value, T = i[x];
|
|
3176
3178
|
if (!sn(T))
|
|
3177
|
-
throw new tn(x, "function",
|
|
3179
|
+
throw new tn(x, "function", a);
|
|
3178
3180
|
var F = Y(g, t, r, n, i, s), P = T(F.map(function(B) {
|
|
3179
3181
|
return B.value;
|
|
3180
3182
|
}));
|
|
3181
|
-
Array.isArray(P) || (P = [P]),
|
|
3183
|
+
Array.isArray(P) || (P = [P]), u.push.apply(u, P.map(function(B) {
|
|
3182
3184
|
return {
|
|
3183
3185
|
type: typeof B == "string" ? y.literal : y.object,
|
|
3184
3186
|
value: B
|
|
3185
3187
|
};
|
|
3186
3188
|
}));
|
|
3187
3189
|
}
|
|
3188
|
-
if (
|
|
3190
|
+
if (mt(l)) {
|
|
3189
3191
|
var H = l.options[c] || l.options.other;
|
|
3190
3192
|
if (!H)
|
|
3191
|
-
throw new
|
|
3192
|
-
|
|
3193
|
+
throw new Ze(l.value, c, Object.keys(l.options), a);
|
|
3194
|
+
u.push.apply(u, Y(H.value, t, r, n, i));
|
|
3193
3195
|
continue;
|
|
3194
3196
|
}
|
|
3195
3197
|
if (dt(l)) {
|
|
@@ -3198,27 +3200,27 @@ function Y(e, t, r, n, i, s, o) {
|
|
|
3198
3200
|
if (!Intl.PluralRules)
|
|
3199
3201
|
throw new ie(`Intl.PluralRules is not available in this environment.
|
|
3200
3202
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3201
|
-
`, C.MISSING_INTL_API,
|
|
3203
|
+
`, C.MISSING_INTL_API, a);
|
|
3202
3204
|
var j = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3203
3205
|
H = l.options[j] || l.options.other;
|
|
3204
3206
|
}
|
|
3205
3207
|
if (!H)
|
|
3206
|
-
throw new
|
|
3207
|
-
|
|
3208
|
+
throw new Ze(l.value, c, Object.keys(l.options), a);
|
|
3209
|
+
u.push.apply(u, Y(H.value, t, r, n, i, c - (l.offset || 0)));
|
|
3208
3210
|
continue;
|
|
3209
3211
|
}
|
|
3210
3212
|
}
|
|
3211
|
-
return nn(
|
|
3213
|
+
return nn(u);
|
|
3212
3214
|
}
|
|
3213
|
-
function
|
|
3214
|
-
return t ?
|
|
3215
|
-
return r[n] =
|
|
3215
|
+
function an(e, t) {
|
|
3216
|
+
return t ? p(p(p({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3217
|
+
return r[n] = p(p({}, e[n]), t[n] || {}), r;
|
|
3216
3218
|
}, {})) : e;
|
|
3217
3219
|
}
|
|
3218
|
-
function
|
|
3220
|
+
function on(e, t) {
|
|
3219
3221
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3220
|
-
return r[n] =
|
|
3221
|
-
},
|
|
3222
|
+
return r[n] = an(e[n], t[n]), r;
|
|
3223
|
+
}, p({}, e)) : e;
|
|
3222
3224
|
}
|
|
3223
3225
|
function me(e) {
|
|
3224
3226
|
return {
|
|
@@ -3234,7 +3236,7 @@ function me(e) {
|
|
|
3234
3236
|
}
|
|
3235
3237
|
};
|
|
3236
3238
|
}
|
|
3237
|
-
function
|
|
3239
|
+
function un(e) {
|
|
3238
3240
|
return e === void 0 && (e = {
|
|
3239
3241
|
number: {},
|
|
3240
3242
|
dateTime: {},
|
|
@@ -3243,7 +3245,7 @@ function hn(e) {
|
|
|
3243
3245
|
getNumberFormat: le(function() {
|
|
3244
3246
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3245
3247
|
r[n] = arguments[n];
|
|
3246
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3248
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, he([void 0], r, !1)))();
|
|
3247
3249
|
}, {
|
|
3248
3250
|
cache: me(e.number),
|
|
3249
3251
|
strategy: fe.variadic
|
|
@@ -3251,7 +3253,7 @@ function hn(e) {
|
|
|
3251
3253
|
getDateTimeFormat: le(function() {
|
|
3252
3254
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3253
3255
|
r[n] = arguments[n];
|
|
3254
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3256
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, he([void 0], r, !1)))();
|
|
3255
3257
|
}, {
|
|
3256
3258
|
cache: me(e.dateTime),
|
|
3257
3259
|
strategy: fe.variadic
|
|
@@ -3259,14 +3261,14 @@ function hn(e) {
|
|
|
3259
3261
|
getPluralRules: le(function() {
|
|
3260
3262
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3261
3263
|
r[n] = arguments[n];
|
|
3262
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3264
|
+
return new ((t = Intl.PluralRules).bind.apply(t, he([void 0], r, !1)))();
|
|
3263
3265
|
}, {
|
|
3264
3266
|
cache: me(e.pluralRules),
|
|
3265
3267
|
strategy: fe.variadic
|
|
3266
3268
|
})
|
|
3267
3269
|
};
|
|
3268
3270
|
}
|
|
3269
|
-
var
|
|
3271
|
+
var hn = (
|
|
3270
3272
|
/** @class */
|
|
3271
3273
|
function() {
|
|
3272
3274
|
function e(t, r, n, i) {
|
|
@@ -3276,35 +3278,35 @@ var un = (
|
|
|
3276
3278
|
number: {},
|
|
3277
3279
|
dateTime: {},
|
|
3278
3280
|
pluralRules: {}
|
|
3279
|
-
}, this.format = function(
|
|
3280
|
-
var
|
|
3281
|
-
if (
|
|
3282
|
-
return
|
|
3283
|
-
var l =
|
|
3281
|
+
}, this.format = function(h) {
|
|
3282
|
+
var o = s.formatToParts(h);
|
|
3283
|
+
if (o.length === 1)
|
|
3284
|
+
return o[0].value;
|
|
3285
|
+
var l = o.reduce(function(f, c) {
|
|
3284
3286
|
return !f.length || c.type !== y.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3285
3287
|
}, []);
|
|
3286
3288
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3287
|
-
}, this.formatToParts = function(
|
|
3288
|
-
return Y(s.ast, s.locales, s.formatters, s.formats,
|
|
3289
|
+
}, this.formatToParts = function(h) {
|
|
3290
|
+
return Y(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3289
3291
|
}, this.resolvedOptions = function() {
|
|
3290
|
-
var
|
|
3292
|
+
var h;
|
|
3291
3293
|
return {
|
|
3292
|
-
locale: ((
|
|
3294
|
+
locale: ((h = s.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
3293
3295
|
};
|
|
3294
3296
|
}, this.getAst = function() {
|
|
3295
3297
|
return s.ast;
|
|
3296
3298
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3297
3299
|
if (this.message = t, !e.__parse)
|
|
3298
3300
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3299
|
-
var
|
|
3300
|
-
|
|
3301
|
-
var
|
|
3302
|
-
this.ast = e.__parse(t,
|
|
3301
|
+
var a = i || {};
|
|
3302
|
+
a.formatters;
|
|
3303
|
+
var u = gr(a, ["formatters"]);
|
|
3304
|
+
this.ast = e.__parse(t, p(p({}, u), { locale: this.resolvedLocale }));
|
|
3303
3305
|
} else
|
|
3304
3306
|
this.ast = t;
|
|
3305
3307
|
if (!Array.isArray(this.ast))
|
|
3306
3308
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3307
|
-
this.formats =
|
|
3309
|
+
this.formats = on(e.formats, n), this.formatters = i && i.formatters || un(this.formatterCache);
|
|
3308
3310
|
}
|
|
3309
3311
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3310
3312
|
get: function() {
|
|
@@ -3399,7 +3401,7 @@ function ln(e, t) {
|
|
|
3399
3401
|
n = void 0;
|
|
3400
3402
|
return n;
|
|
3401
3403
|
}
|
|
3402
|
-
const S = {}, fn = (e, t, r) => r && (t in S || (S[t] = {}), e in S[t] || (S[t][e] = r), r),
|
|
3404
|
+
const S = {}, fn = (e, t, r) => r && (t in S || (S[t] = {}), e in S[t] || (S[t][e] = r), r), Tt = (e, t) => {
|
|
3403
3405
|
if (t == null)
|
|
3404
3406
|
return;
|
|
3405
3407
|
if (t in S && e in S[t])
|
|
@@ -3411,48 +3413,48 @@ const S = {}, fn = (e, t, r) => r && (t in S || (S[t] = {}), e in S[t] || (S[t][
|
|
|
3411
3413
|
return fn(e, t, s);
|
|
3412
3414
|
}
|
|
3413
3415
|
};
|
|
3414
|
-
let
|
|
3416
|
+
let Oe;
|
|
3415
3417
|
const Z = re({});
|
|
3416
3418
|
function cn(e) {
|
|
3417
|
-
return
|
|
3419
|
+
return Oe[e] || null;
|
|
3418
3420
|
}
|
|
3419
|
-
function
|
|
3420
|
-
return e in
|
|
3421
|
+
function St(e) {
|
|
3422
|
+
return e in Oe;
|
|
3421
3423
|
}
|
|
3422
3424
|
function mn(e, t) {
|
|
3423
|
-
if (!
|
|
3425
|
+
if (!St(e))
|
|
3424
3426
|
return null;
|
|
3425
3427
|
const r = cn(e);
|
|
3426
3428
|
return ln(r, t);
|
|
3427
3429
|
}
|
|
3428
|
-
function
|
|
3430
|
+
function dn(e) {
|
|
3429
3431
|
if (e == null)
|
|
3430
3432
|
return;
|
|
3431
3433
|
const t = se(e);
|
|
3432
3434
|
for (let r = 0; r < t.length; r++) {
|
|
3433
3435
|
const n = t[r];
|
|
3434
|
-
if (
|
|
3436
|
+
if (St(n))
|
|
3435
3437
|
return n;
|
|
3436
3438
|
}
|
|
3437
3439
|
}
|
|
3438
|
-
function
|
|
3439
|
-
delete S[e], Z.update((r) => (r[e] =
|
|
3440
|
+
function Bt(e, ...t) {
|
|
3441
|
+
delete S[e], Z.update((r) => (r[e] = br.all([r[e] || {}, ...t]), r));
|
|
3440
3442
|
}
|
|
3441
3443
|
U(
|
|
3442
3444
|
[Z],
|
|
3443
3445
|
([e]) => Object.keys(e)
|
|
3444
3446
|
);
|
|
3445
|
-
Z.subscribe((e) =>
|
|
3447
|
+
Z.subscribe((e) => Oe = e);
|
|
3446
3448
|
const K = {};
|
|
3447
|
-
function
|
|
3449
|
+
function pn(e, t) {
|
|
3448
3450
|
K[e].delete(t), K[e].size === 0 && delete K[e];
|
|
3449
3451
|
}
|
|
3450
|
-
function
|
|
3452
|
+
function At(e) {
|
|
3451
3453
|
return K[e];
|
|
3452
3454
|
}
|
|
3453
3455
|
function bn(e) {
|
|
3454
3456
|
return se(e).map((t) => {
|
|
3455
|
-
const r =
|
|
3457
|
+
const r = At(t);
|
|
3456
3458
|
return [t, r ? [...r] : []];
|
|
3457
3459
|
}).filter(([, t]) => t.length > 0);
|
|
3458
3460
|
}
|
|
@@ -3460,17 +3462,17 @@ function Te(e) {
|
|
|
3460
3462
|
return e == null ? !1 : se(e).some(
|
|
3461
3463
|
(t) => {
|
|
3462
3464
|
var r;
|
|
3463
|
-
return (r =
|
|
3465
|
+
return (r = At(t)) == null ? void 0 : r.size;
|
|
3464
3466
|
}
|
|
3465
3467
|
);
|
|
3466
3468
|
}
|
|
3467
3469
|
function gn(e, t) {
|
|
3468
3470
|
return Promise.all(
|
|
3469
|
-
t.map((n) => (
|
|
3470
|
-
).then((n) =>
|
|
3471
|
+
t.map((n) => (pn(e, n), n().then((i) => i.default || i)))
|
|
3472
|
+
).then((n) => Bt(e, ...n));
|
|
3471
3473
|
}
|
|
3472
3474
|
const V = {};
|
|
3473
|
-
function
|
|
3475
|
+
function Pt(e) {
|
|
3474
3476
|
if (!Te(e))
|
|
3475
3477
|
return e in V ? V[e] : Promise.resolve();
|
|
3476
3478
|
const t = bn(e);
|
|
@@ -3480,7 +3482,7 @@ function Nt(e) {
|
|
|
3480
3482
|
)
|
|
3481
3483
|
).then(() => {
|
|
3482
3484
|
if (Te(e))
|
|
3483
|
-
return
|
|
3485
|
+
return Pt(e);
|
|
3484
3486
|
delete V[e];
|
|
3485
3487
|
}), V[e];
|
|
3486
3488
|
}
|
|
@@ -3524,23 +3526,23 @@ const En = {
|
|
|
3524
3526
|
function R() {
|
|
3525
3527
|
return xn;
|
|
3526
3528
|
}
|
|
3527
|
-
const
|
|
3528
|
-
var
|
|
3529
|
-
for (var r in t
|
|
3530
|
-
Tn.call(t, r) &&
|
|
3531
|
-
if (
|
|
3532
|
-
for (var r of
|
|
3533
|
-
Sn.call(t, r) &&
|
|
3529
|
+
const de = re(!1);
|
|
3530
|
+
var _n = Object.defineProperty, vn = Object.defineProperties, Hn = Object.getOwnPropertyDescriptors, Qe = Object.getOwnPropertySymbols, Tn = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable, Je = (e, t, r) => t in e ? _n(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bn = (e, t) => {
|
|
3531
|
+
for (var r in t)
|
|
3532
|
+
Tn.call(t, r) && Je(e, r, t[r]);
|
|
3533
|
+
if (Qe)
|
|
3534
|
+
for (var r of Qe(t))
|
|
3535
|
+
Sn.call(t, r) && Je(e, r, t[r]);
|
|
3534
3536
|
return e;
|
|
3535
|
-
}, An = (e, t) =>
|
|
3537
|
+
}, An = (e, t) => vn(e, Hn(t));
|
|
3536
3538
|
let Se;
|
|
3537
3539
|
const ee = re(null);
|
|
3538
|
-
function
|
|
3540
|
+
function qe(e) {
|
|
3539
3541
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3540
3542
|
}
|
|
3541
3543
|
function se(e, t = R().fallbackLocale) {
|
|
3542
|
-
const r =
|
|
3543
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3544
|
+
const r = qe(e);
|
|
3545
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...qe(t)])] : r;
|
|
3544
3546
|
}
|
|
3545
3547
|
function A() {
|
|
3546
3548
|
return Se != null ? Se : void 0;
|
|
@@ -3549,71 +3551,71 @@ ee.subscribe((e) => {
|
|
|
3549
3551
|
Se = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3550
3552
|
});
|
|
3551
3553
|
const Pn = (e) => {
|
|
3552
|
-
if (e &&
|
|
3554
|
+
if (e && dn(e) && Te(e)) {
|
|
3553
3555
|
const { loadingDelay: t } = R();
|
|
3554
3556
|
let r;
|
|
3555
3557
|
return typeof window != "undefined" && A() != null && t ? r = window.setTimeout(
|
|
3556
|
-
() =>
|
|
3558
|
+
() => de.set(!0),
|
|
3557
3559
|
t
|
|
3558
|
-
) :
|
|
3560
|
+
) : de.set(!0), Pt(e).then(() => {
|
|
3559
3561
|
ee.set(e);
|
|
3560
3562
|
}).finally(() => {
|
|
3561
|
-
clearTimeout(r),
|
|
3563
|
+
clearTimeout(r), de.set(!1);
|
|
3562
3564
|
});
|
|
3563
3565
|
}
|
|
3564
3566
|
return ee.set(e);
|
|
3565
3567
|
}, G = An(Bn({}, ee), {
|
|
3566
3568
|
set: Pn
|
|
3567
|
-
}),
|
|
3569
|
+
}), ae = (e) => {
|
|
3568
3570
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3569
3571
|
return (n) => {
|
|
3570
3572
|
const i = JSON.stringify(n);
|
|
3571
3573
|
return i in t ? t[i] : t[i] = e(n);
|
|
3572
3574
|
};
|
|
3573
3575
|
};
|
|
3574
|
-
var Nn = Object.defineProperty, te = Object.getOwnPropertySymbols,
|
|
3576
|
+
var Nn = Object.defineProperty, te = Object.getOwnPropertySymbols, Nt = Object.prototype.hasOwnProperty, Ot = Object.prototype.propertyIsEnumerable, Ye = (e, t, r) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ie = (e, t) => {
|
|
3575
3577
|
for (var r in t || (t = {}))
|
|
3576
|
-
|
|
3578
|
+
Nt.call(t, r) && Ye(e, r, t[r]);
|
|
3577
3579
|
if (te)
|
|
3578
3580
|
for (var r of te(t))
|
|
3579
|
-
|
|
3581
|
+
Ot.call(t, r) && Ye(e, r, t[r]);
|
|
3580
3582
|
return e;
|
|
3581
3583
|
}, D = (e, t) => {
|
|
3582
3584
|
var r = {};
|
|
3583
3585
|
for (var n in e)
|
|
3584
|
-
|
|
3586
|
+
Nt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3585
3587
|
if (e != null && te)
|
|
3586
3588
|
for (var n of te(e))
|
|
3587
|
-
t.indexOf(n) < 0 &&
|
|
3589
|
+
t.indexOf(n) < 0 && Ot.call(e, n) && (r[n] = e[n]);
|
|
3588
3590
|
return r;
|
|
3589
3591
|
};
|
|
3590
|
-
const
|
|
3592
|
+
const W = (e, t) => {
|
|
3591
3593
|
const { formats: r } = R();
|
|
3592
3594
|
if (e in r && t in r[e])
|
|
3593
3595
|
return r[e][t];
|
|
3594
3596
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3595
|
-
}, On =
|
|
3597
|
+
}, On = ae(
|
|
3596
3598
|
(e) => {
|
|
3597
3599
|
var t = e, { locale: r, format: n } = t, i = D(t, ["locale", "format"]);
|
|
3598
3600
|
if (r == null)
|
|
3599
3601
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3600
|
-
return n && (i =
|
|
3602
|
+
return n && (i = W("number", n)), new Intl.NumberFormat(r, i);
|
|
3601
3603
|
}
|
|
3602
|
-
), In =
|
|
3604
|
+
), In = ae(
|
|
3603
3605
|
(e) => {
|
|
3604
3606
|
var t = e, { locale: r, format: n } = t, i = D(t, ["locale", "format"]);
|
|
3605
3607
|
if (r == null)
|
|
3606
3608
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3607
|
-
return n ? i =
|
|
3609
|
+
return n ? i = W("date", n) : Object.keys(i).length === 0 && (i = W("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3608
3610
|
}
|
|
3609
|
-
), wn =
|
|
3611
|
+
), wn = ae(
|
|
3610
3612
|
(e) => {
|
|
3611
3613
|
var t = e, { locale: r, format: n } = t, i = D(t, ["locale", "format"]);
|
|
3612
3614
|
if (r == null)
|
|
3613
3615
|
throw new Error(
|
|
3614
3616
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3615
3617
|
);
|
|
3616
|
-
return n ? i =
|
|
3618
|
+
return n ? i = W("time", n) : Object.keys(i).length === 0 && (i = W("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3617
3619
|
}
|
|
3618
3620
|
), $n = (e = {}) => {
|
|
3619
3621
|
var t = e, {
|
|
@@ -3621,51 +3623,51 @@ const z = (e, t) => {
|
|
|
3621
3623
|
} = t, n = D(t, [
|
|
3622
3624
|
"locale"
|
|
3623
3625
|
]);
|
|
3624
|
-
return On(
|
|
3626
|
+
return On(Ie({ locale: r }, n));
|
|
3625
3627
|
}, Ln = (e = {}) => {
|
|
3626
3628
|
var t = e, {
|
|
3627
3629
|
locale: r = A()
|
|
3628
3630
|
} = t, n = D(t, [
|
|
3629
3631
|
"locale"
|
|
3630
3632
|
]);
|
|
3631
|
-
return In(
|
|
3633
|
+
return In(Ie({ locale: r }, n));
|
|
3632
3634
|
}, Mn = (e = {}) => {
|
|
3633
3635
|
var t = e, {
|
|
3634
3636
|
locale: r = A()
|
|
3635
3637
|
} = t, n = D(t, [
|
|
3636
3638
|
"locale"
|
|
3637
3639
|
]);
|
|
3638
|
-
return wn(
|
|
3639
|
-
}, Cn =
|
|
3640
|
+
return wn(Ie({ locale: r }, n));
|
|
3641
|
+
}, Cn = ae(
|
|
3640
3642
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3641
|
-
(e, t = A()) => new
|
|
3643
|
+
(e, t = A()) => new hn(e, t, R().formats, {
|
|
3642
3644
|
ignoreTag: R().ignoreTag
|
|
3643
3645
|
})
|
|
3644
3646
|
), Rn = (e, t = {}) => {
|
|
3645
3647
|
var r, n, i, s;
|
|
3646
|
-
let
|
|
3647
|
-
typeof e == "object" && (
|
|
3648
|
+
let a = t;
|
|
3649
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
3648
3650
|
const {
|
|
3649
|
-
values:
|
|
3650
|
-
locale:
|
|
3651
|
-
default:
|
|
3652
|
-
} =
|
|
3653
|
-
if (
|
|
3651
|
+
values: u,
|
|
3652
|
+
locale: h = A(),
|
|
3653
|
+
default: o
|
|
3654
|
+
} = a;
|
|
3655
|
+
if (h == null)
|
|
3654
3656
|
throw new Error(
|
|
3655
3657
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3656
3658
|
);
|
|
3657
|
-
let l =
|
|
3659
|
+
let l = Tt(e, h);
|
|
3658
3660
|
if (!l)
|
|
3659
|
-
l = (s = (i = (n = (r = R()).handleMissingMessage) == null ? void 0 : n.call(r, { locale:
|
|
3661
|
+
l = (s = (i = (n = (r = R()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: o })) != null ? i : o) != null ? s : e;
|
|
3660
3662
|
else if (typeof l != "string")
|
|
3661
3663
|
return console.warn(
|
|
3662
3664
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3663
3665
|
), l;
|
|
3664
|
-
if (!
|
|
3666
|
+
if (!u)
|
|
3665
3667
|
return l;
|
|
3666
3668
|
let f = l;
|
|
3667
3669
|
try {
|
|
3668
|
-
f = Cn(l,
|
|
3670
|
+
f = Cn(l, h).format(u);
|
|
3669
3671
|
} catch (c) {
|
|
3670
3672
|
c instanceof Error && console.warn(
|
|
3671
3673
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3673,18 +3675,18 @@ const z = (e, t) => {
|
|
|
3673
3675
|
);
|
|
3674
3676
|
}
|
|
3675
3677
|
return f;
|
|
3676
|
-
}, Un = (e, t) => Mn(t).format(e), Gn = (e, t) => Ln(t).format(e), Dn = (e, t) => $n(t).format(e), Fn = (e, t = A()) =>
|
|
3678
|
+
}, Un = (e, t) => Mn(t).format(e), Gn = (e, t) => Ln(t).format(e), Dn = (e, t) => $n(t).format(e), Fn = (e, t = A()) => Tt(e, t), jn = U([G, Z], () => Rn);
|
|
3677
3679
|
U([G], () => Un);
|
|
3678
3680
|
U([G], () => Gn);
|
|
3679
3681
|
U([G], () => Dn);
|
|
3680
3682
|
U([G, Z], () => Fn);
|
|
3681
|
-
function
|
|
3682
|
-
|
|
3683
|
+
function Ke(e, t) {
|
|
3684
|
+
Bt(e, t);
|
|
3683
3685
|
}
|
|
3684
3686
|
function Vn(e) {
|
|
3685
3687
|
G.set(e);
|
|
3686
3688
|
}
|
|
3687
|
-
const
|
|
3689
|
+
const et = {
|
|
3688
3690
|
en: {
|
|
3689
3691
|
errServerUnavailable: "Server unavailable",
|
|
3690
3692
|
errEmailVerification: "Sorry! Your e-mail could not be verified. Please try again",
|
|
@@ -3708,14 +3710,14 @@ function kn(e) {
|
|
|
3708
3710
|
let t;
|
|
3709
3711
|
return {
|
|
3710
3712
|
c() {
|
|
3711
|
-
t =
|
|
3713
|
+
t = st("div");
|
|
3712
3714
|
},
|
|
3713
3715
|
m(r, n) {
|
|
3714
|
-
|
|
3716
|
+
it(r, t, n);
|
|
3715
3717
|
},
|
|
3716
|
-
p:
|
|
3717
|
-
i:
|
|
3718
|
-
o:
|
|
3718
|
+
p: v,
|
|
3719
|
+
i: v,
|
|
3720
|
+
o: v,
|
|
3719
3721
|
d(r) {
|
|
3720
3722
|
r && Ae(t);
|
|
3721
3723
|
}
|
|
@@ -3723,21 +3725,21 @@ function kn(e) {
|
|
|
3723
3725
|
}
|
|
3724
3726
|
function Xn(e, t, r) {
|
|
3725
3727
|
let n;
|
|
3726
|
-
|
|
3727
|
-
let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key:
|
|
3728
|
-
const
|
|
3729
|
-
fetch(
|
|
3728
|
+
Rt(e, jn, (f) => r(4, n = f));
|
|
3729
|
+
let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key: a = "" } = t, { translationurl: u = "" } = t;
|
|
3730
|
+
const h = () => {
|
|
3731
|
+
fetch(u).then((c) => c.json()).then((c) => {
|
|
3730
3732
|
Object.keys(c).forEach((b) => {
|
|
3731
|
-
|
|
3733
|
+
Ke(b, c[b]);
|
|
3732
3734
|
});
|
|
3733
3735
|
}).catch((c) => {
|
|
3734
3736
|
console.log(c);
|
|
3735
3737
|
});
|
|
3736
3738
|
};
|
|
3737
|
-
Object.keys(
|
|
3738
|
-
|
|
3739
|
+
Object.keys(et).forEach((f) => {
|
|
3740
|
+
Ke(f, et[f]);
|
|
3739
3741
|
});
|
|
3740
|
-
const
|
|
3742
|
+
const o = () => {
|
|
3741
3743
|
Vn(i);
|
|
3742
3744
|
}, l = () => {
|
|
3743
3745
|
let f = new URL(`${s}/v1/player/activatePlayerByHashKey`), b = {
|
|
@@ -3746,7 +3748,7 @@ function Xn(e, t, r) {
|
|
|
3746
3748
|
"Content-Type": "application/json",
|
|
3747
3749
|
Accept: "application/json"
|
|
3748
3750
|
},
|
|
3749
|
-
body: JSON.stringify({ hashKey:
|
|
3751
|
+
body: JSON.stringify({ hashKey: a })
|
|
3750
3752
|
};
|
|
3751
3753
|
fetch(f.href, b).then((g) => (g.status > 500 && (window.postMessage({ type: "ActivatePlayerResponseFailed" }, window.location.href), window.postMessage(
|
|
3752
3754
|
{
|
|
@@ -3789,17 +3791,17 @@ function Xn(e, t, r) {
|
|
|
3789
3791
|
});
|
|
3790
3792
|
};
|
|
3791
3793
|
return e.$$set = (f) => {
|
|
3792
|
-
"lang" in f && r(0, i = f.lang), "endpoint" in f && r(1, s = f.endpoint), "key" in f && r(2,
|
|
3794
|
+
"lang" in f && r(0, i = f.lang), "endpoint" in f && r(1, s = f.endpoint), "key" in f && r(2, a = f.key), "translationurl" in f && r(3, u = f.translationurl);
|
|
3793
3795
|
}, e.$$.update = () => {
|
|
3794
3796
|
e.$$.dirty & /*lang*/
|
|
3795
|
-
1 && i &&
|
|
3796
|
-
8 &&
|
|
3797
|
-
6 && s &&
|
|
3798
|
-
}, [i, s,
|
|
3797
|
+
1 && i && o(), e.$$.dirty & /*translationurl*/
|
|
3798
|
+
8 && u && h(), e.$$.dirty & /*endpoint, key*/
|
|
3799
|
+
6 && s && a && l();
|
|
3800
|
+
}, [i, s, a, u];
|
|
3799
3801
|
}
|
|
3800
|
-
class
|
|
3802
|
+
class Wn extends Yt {
|
|
3801
3803
|
constructor(t) {
|
|
3802
|
-
super(),
|
|
3804
|
+
super(), Jt(this, t, Xn, kn, rt, {
|
|
3803
3805
|
lang: 0,
|
|
3804
3806
|
endpoint: 1,
|
|
3805
3807
|
key: 2,
|
|
@@ -3831,7 +3833,7 @@ class zn extends Kt {
|
|
|
3831
3833
|
this.$$set({ translationurl: t }), w();
|
|
3832
3834
|
}
|
|
3833
3835
|
}
|
|
3834
|
-
|
|
3836
|
+
qt(Wn, { lang: {}, endpoint: {}, key: {}, translationurl: {} }, [], [], !0);
|
|
3835
3837
|
export {
|
|
3836
|
-
|
|
3838
|
+
Wn as default
|
|
3837
3839
|
};
|