@everymatrix/player-email-verification 1.53.0 → 1.53.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-NVUbXJnq.js → PlayerEmailVerification-BbO-roiI.js} +823 -858
- package/esnext/player-email-verification.js +14 -0
- package/package.json +8 -9
- package/components/PlayerEmailVerification-DsrCAa-F.cjs +0 -3
- package/es2015/player-email-verification.cjs +0 -1
- package/es2015/player-email-verification.js +0 -16
package/components/{PlayerEmailVerification-NVUbXJnq.js → PlayerEmailVerification-BbO-roiI.js}
RENAMED
|
@@ -1,53 +1,24 @@
|
|
|
1
|
-
var wt = Object.defineProperty, $t = Object.defineProperties;
|
|
2
|
-
var Lt = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var Le = Object.getOwnPropertySymbols;
|
|
4
|
-
var Mt = Object.prototype.hasOwnProperty, Ct = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var ae = (e, t, r) => t in e ? wt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Me = (e, t) => {
|
|
6
|
-
for (var r in t || (t = {}))
|
|
7
|
-
Mt.call(t, r) && ae(e, r, t[r]);
|
|
8
|
-
if (Le)
|
|
9
|
-
for (var r of Le(t))
|
|
10
|
-
Ct.call(t, r) && ae(e, r, t[r]);
|
|
11
|
-
return e;
|
|
12
|
-
}, Ce = (e, t) => $t(e, Lt(t));
|
|
13
|
-
var v = (e, t, r) => ae(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
-
var Re = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var s = (u) => {
|
|
16
|
-
try {
|
|
17
|
-
h(r.next(u));
|
|
18
|
-
} catch (a) {
|
|
19
|
-
i(a);
|
|
20
|
-
}
|
|
21
|
-
}, o = (u) => {
|
|
22
|
-
try {
|
|
23
|
-
h(r.throw(u));
|
|
24
|
-
} catch (a) {
|
|
25
|
-
i(a);
|
|
26
|
-
}
|
|
27
|
-
}, h = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(s, o);
|
|
28
|
-
h((r = r.apply(e, t)).next());
|
|
29
|
-
});
|
|
30
1
|
function _() {
|
|
31
2
|
}
|
|
32
|
-
function
|
|
3
|
+
function Qe(e) {
|
|
33
4
|
return e();
|
|
34
5
|
}
|
|
35
|
-
function
|
|
6
|
+
function Ie() {
|
|
36
7
|
return /* @__PURE__ */ Object.create(null);
|
|
37
8
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
9
|
+
function W(e) {
|
|
10
|
+
e.forEach(Qe);
|
|
40
11
|
}
|
|
41
|
-
function
|
|
12
|
+
function Te(e) {
|
|
42
13
|
return typeof e == "function";
|
|
43
14
|
}
|
|
44
|
-
function
|
|
15
|
+
function Je(e, t) {
|
|
45
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
17
|
}
|
|
47
|
-
function
|
|
18
|
+
function St(e) {
|
|
48
19
|
return Object.keys(e).length === 0;
|
|
49
20
|
}
|
|
50
|
-
function
|
|
21
|
+
function qe(e, ...t) {
|
|
51
22
|
if (e == null) {
|
|
52
23
|
for (const n of t)
|
|
53
24
|
n(void 0);
|
|
@@ -56,25 +27,25 @@ function it(e, ...t) {
|
|
|
56
27
|
const r = e.subscribe(...t);
|
|
57
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
29
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function Bt(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(qe(t, r));
|
|
61
32
|
}
|
|
62
|
-
function
|
|
33
|
+
function Ye(e, t, r) {
|
|
63
34
|
e.insertBefore(t, r || null);
|
|
64
35
|
}
|
|
65
|
-
function
|
|
36
|
+
function Se(e) {
|
|
66
37
|
e.parentNode && e.parentNode.removeChild(e);
|
|
67
38
|
}
|
|
68
|
-
function
|
|
39
|
+
function Ke(e) {
|
|
69
40
|
return document.createElement(e);
|
|
70
41
|
}
|
|
71
|
-
function
|
|
42
|
+
function At(e, t, r) {
|
|
72
43
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
73
44
|
}
|
|
74
|
-
function
|
|
45
|
+
function Pt(e) {
|
|
75
46
|
return Array.from(e.childNodes);
|
|
76
47
|
}
|
|
77
|
-
function
|
|
48
|
+
function Nt(e) {
|
|
78
49
|
const t = {};
|
|
79
50
|
return e.childNodes.forEach(
|
|
80
51
|
/** @param {Element} node */
|
|
@@ -83,78 +54,78 @@ function Ft(e) {
|
|
|
83
54
|
}
|
|
84
55
|
), t;
|
|
85
56
|
}
|
|
86
|
-
let
|
|
87
|
-
function
|
|
88
|
-
|
|
57
|
+
let Be;
|
|
58
|
+
function V(e) {
|
|
59
|
+
Be = e;
|
|
89
60
|
}
|
|
90
|
-
const
|
|
91
|
-
let
|
|
92
|
-
const
|
|
93
|
-
let
|
|
94
|
-
function
|
|
95
|
-
|
|
61
|
+
const O = [], we = [];
|
|
62
|
+
let w = [];
|
|
63
|
+
const $e = [], Ot = /* @__PURE__ */ Promise.resolve();
|
|
64
|
+
let me = !1;
|
|
65
|
+
function It() {
|
|
66
|
+
me || (me = !0, Ot.then(I));
|
|
96
67
|
}
|
|
97
|
-
function
|
|
98
|
-
|
|
68
|
+
function pe(e) {
|
|
69
|
+
w.push(e);
|
|
99
70
|
}
|
|
100
|
-
const
|
|
101
|
-
let
|
|
102
|
-
function
|
|
103
|
-
if (
|
|
71
|
+
const oe = /* @__PURE__ */ new Set();
|
|
72
|
+
let P = 0;
|
|
73
|
+
function I() {
|
|
74
|
+
if (P !== 0)
|
|
104
75
|
return;
|
|
105
|
-
const e =
|
|
76
|
+
const e = Be;
|
|
106
77
|
do {
|
|
107
78
|
try {
|
|
108
|
-
for (;
|
|
109
|
-
const t =
|
|
110
|
-
|
|
79
|
+
for (; P < O.length; ) {
|
|
80
|
+
const t = O[P];
|
|
81
|
+
P++, V(t), wt(t.$$);
|
|
111
82
|
}
|
|
112
83
|
} catch (t) {
|
|
113
|
-
throw
|
|
84
|
+
throw O.length = 0, P = 0, t;
|
|
114
85
|
}
|
|
115
|
-
for (
|
|
116
|
-
for (let t = 0; t <
|
|
117
|
-
const r =
|
|
118
|
-
|
|
86
|
+
for (V(null), O.length = 0, P = 0; we.length; ) we.pop()();
|
|
87
|
+
for (let t = 0; t < w.length; t += 1) {
|
|
88
|
+
const r = w[t];
|
|
89
|
+
oe.has(r) || (oe.add(r), r());
|
|
119
90
|
}
|
|
120
|
-
|
|
121
|
-
} while (
|
|
122
|
-
for (;
|
|
123
|
-
|
|
124
|
-
|
|
91
|
+
w.length = 0;
|
|
92
|
+
} while (O.length);
|
|
93
|
+
for (; $e.length; )
|
|
94
|
+
$e.pop()();
|
|
95
|
+
me = !1, oe.clear(), V(e);
|
|
125
96
|
}
|
|
126
|
-
function
|
|
97
|
+
function wt(e) {
|
|
127
98
|
if (e.fragment !== null) {
|
|
128
|
-
e.update(),
|
|
99
|
+
e.update(), W(e.before_update);
|
|
129
100
|
const t = e.dirty;
|
|
130
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
101
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(pe);
|
|
131
102
|
}
|
|
132
103
|
}
|
|
133
|
-
function
|
|
104
|
+
function $t(e) {
|
|
134
105
|
const t = [], r = [];
|
|
135
|
-
|
|
106
|
+
w.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), w = t;
|
|
136
107
|
}
|
|
137
|
-
const
|
|
138
|
-
function
|
|
139
|
-
e && e.i && (
|
|
108
|
+
const Lt = /* @__PURE__ */ new Set();
|
|
109
|
+
function Mt(e, t) {
|
|
110
|
+
e && e.i && (Lt.delete(e), e.i(t));
|
|
140
111
|
}
|
|
141
|
-
function
|
|
112
|
+
function Ct(e, t, r) {
|
|
142
113
|
const { fragment: n, after_update: i } = e.$$;
|
|
143
|
-
n && n.m(t, r),
|
|
144
|
-
const s = e.$$.on_mount.map(
|
|
145
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
146
|
-
}), i.forEach(
|
|
114
|
+
n && n.m(t, r), pe(() => {
|
|
115
|
+
const s = e.$$.on_mount.map(Qe).filter(Te);
|
|
116
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : W(s), e.$$.on_mount = [];
|
|
117
|
+
}), i.forEach(pe);
|
|
147
118
|
}
|
|
148
|
-
function
|
|
119
|
+
function Rt(e, t) {
|
|
149
120
|
const r = e.$$;
|
|
150
|
-
r.fragment !== null && (
|
|
121
|
+
r.fragment !== null && ($t(r.after_update), W(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
151
122
|
}
|
|
152
|
-
function
|
|
153
|
-
e.$$.dirty[0] === -1 && (
|
|
123
|
+
function Ut(e, t) {
|
|
124
|
+
e.$$.dirty[0] === -1 && (O.push(e), It(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
154
125
|
}
|
|
155
|
-
function
|
|
156
|
-
const
|
|
157
|
-
|
|
126
|
+
function Gt(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
127
|
+
const f = Be;
|
|
128
|
+
V(e);
|
|
158
129
|
const a = e.$$ = {
|
|
159
130
|
fragment: null,
|
|
160
131
|
ctx: [],
|
|
@@ -162,159 +133,155 @@ function qt(e, t, r, n, i, s, o = null, h = [-1]) {
|
|
|
162
133
|
props: s,
|
|
163
134
|
update: _,
|
|
164
135
|
not_equal: i,
|
|
165
|
-
bound:
|
|
136
|
+
bound: Ie(),
|
|
166
137
|
// lifecycle
|
|
167
138
|
on_mount: [],
|
|
168
139
|
on_destroy: [],
|
|
169
140
|
on_disconnect: [],
|
|
170
141
|
before_update: [],
|
|
171
142
|
after_update: [],
|
|
172
|
-
context: new Map(t.context || (
|
|
143
|
+
context: new Map(t.context || (f ? f.$$.context : [])),
|
|
173
144
|
// everything else
|
|
174
|
-
callbacks:
|
|
175
|
-
dirty:
|
|
145
|
+
callbacks: Ie(),
|
|
146
|
+
dirty: o,
|
|
176
147
|
skip_bound: !1,
|
|
177
|
-
root: t.target ||
|
|
148
|
+
root: t.target || f.$$.root
|
|
178
149
|
};
|
|
179
|
-
|
|
180
|
-
let
|
|
181
|
-
if (a.ctx = r
|
|
150
|
+
u && u(a.root);
|
|
151
|
+
let h = !1;
|
|
152
|
+
if (a.ctx = r(e, t.props || {}, (l, c, ...b) => {
|
|
182
153
|
const g = b.length ? b[0] : c;
|
|
183
|
-
return a.ctx && i(a.ctx[
|
|
184
|
-
})
|
|
154
|
+
return a.ctx && i(a.ctx[l], a.ctx[l] = g) && (!a.skip_bound && a.bound[l] && a.bound[l](g), h && Ut(e, l)), c;
|
|
155
|
+
}), a.update(), h = !0, W(a.before_update), a.fragment = n(a.ctx), t.target) {
|
|
185
156
|
if (t.hydrate) {
|
|
186
|
-
const
|
|
187
|
-
a.fragment && a.fragment.l(
|
|
157
|
+
const l = Pt(t.target);
|
|
158
|
+
a.fragment && a.fragment.l(l), l.forEach(Se);
|
|
188
159
|
} else
|
|
189
160
|
a.fragment && a.fragment.c();
|
|
190
|
-
t.intro &&
|
|
161
|
+
t.intro && Mt(e.$$.fragment), Ct(e, t.target, t.anchor), I();
|
|
191
162
|
}
|
|
192
|
-
|
|
193
|
-
}
|
|
194
|
-
let
|
|
195
|
-
typeof HTMLElement == "function" && (
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
163
|
+
V(f);
|
|
164
|
+
}
|
|
165
|
+
let et;
|
|
166
|
+
typeof HTMLElement == "function" && (et = class extends HTMLElement {
|
|
167
|
+
/** The Svelte component constructor */
|
|
168
|
+
$$ctor;
|
|
169
|
+
/** Slots */
|
|
170
|
+
$$s;
|
|
171
|
+
/** The Svelte component instance */
|
|
172
|
+
$$c;
|
|
173
|
+
/** Whether or not the custom element is connected */
|
|
174
|
+
$$cn = !1;
|
|
175
|
+
/** Component props data */
|
|
176
|
+
$$d = {};
|
|
177
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
178
|
+
$$r = !1;
|
|
179
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
180
|
+
$$p_d = {};
|
|
181
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
182
|
+
$$l = {};
|
|
183
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
184
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
185
|
+
constructor(e, t, r) {
|
|
186
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
217
187
|
}
|
|
218
|
-
addEventListener(t, r
|
|
219
|
-
if (this.$$l[
|
|
220
|
-
const
|
|
221
|
-
this.$$l_u.set(
|
|
188
|
+
addEventListener(e, t, r) {
|
|
189
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
190
|
+
const n = this.$$c.$on(e, t);
|
|
191
|
+
this.$$l_u.set(t, n);
|
|
222
192
|
}
|
|
223
|
-
super.addEventListener(t, r
|
|
193
|
+
super.addEventListener(e, t, r);
|
|
224
194
|
}
|
|
225
|
-
removeEventListener(t, r
|
|
226
|
-
if (super.removeEventListener(t, r
|
|
227
|
-
const
|
|
228
|
-
|
|
195
|
+
removeEventListener(e, t, r) {
|
|
196
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
197
|
+
const n = this.$$l_u.get(t);
|
|
198
|
+
n && (n(), this.$$l_u.delete(t));
|
|
229
199
|
}
|
|
230
200
|
}
|
|
231
|
-
connectedCallback() {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}
|
|
251
|
-
};
|
|
201
|
+
async connectedCallback() {
|
|
202
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
203
|
+
let e = function(i) {
|
|
204
|
+
return () => {
|
|
205
|
+
let s;
|
|
206
|
+
return {
|
|
207
|
+
c: function() {
|
|
208
|
+
s = Ke("slot"), i !== "default" && At(s, "name", i);
|
|
209
|
+
},
|
|
210
|
+
/**
|
|
211
|
+
* @param {HTMLElement} target
|
|
212
|
+
* @param {HTMLElement} [anchor]
|
|
213
|
+
*/
|
|
214
|
+
m: function(f, a) {
|
|
215
|
+
Ye(f, s, a);
|
|
216
|
+
},
|
|
217
|
+
d: function(f) {
|
|
218
|
+
f && Se(s);
|
|
219
|
+
}
|
|
252
220
|
};
|
|
253
221
|
};
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
222
|
+
};
|
|
223
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
224
|
+
return;
|
|
225
|
+
const t = {}, r = Nt(this);
|
|
226
|
+
for (const i of this.$$s)
|
|
227
|
+
i in r && (t[i] = [e(i)]);
|
|
228
|
+
for (const i of this.attributes) {
|
|
229
|
+
const s = this.$$g_p(i.name);
|
|
230
|
+
s in this.$$d || (this.$$d[s] = J(s, i.value, this.$$p_d, "toProp"));
|
|
231
|
+
}
|
|
232
|
+
for (const i in this.$$p_d)
|
|
233
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
234
|
+
this.$$c = new this.$$ctor({
|
|
235
|
+
target: this.shadowRoot || this,
|
|
236
|
+
props: {
|
|
237
|
+
...this.$$d,
|
|
238
|
+
$$slots: t,
|
|
239
|
+
$$scope: {
|
|
240
|
+
ctx: []
|
|
241
|
+
}
|
|
262
242
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
this.$$
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
this.$$r = !0;
|
|
276
|
-
for (const s in this.$$p_d)
|
|
277
|
-
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
278
|
-
const o = q(
|
|
279
|
-
s,
|
|
280
|
-
this.$$d[s],
|
|
281
|
-
this.$$p_d,
|
|
282
|
-
"toAttribute"
|
|
283
|
-
);
|
|
284
|
-
o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
|
|
285
|
-
}
|
|
286
|
-
this.$$r = !1;
|
|
287
|
-
};
|
|
288
|
-
this.$$c.$$.after_update.push(i), i();
|
|
289
|
-
for (const s in this.$$l)
|
|
290
|
-
for (const o of this.$$l[s]) {
|
|
291
|
-
const h = this.$$c.$on(s, o);
|
|
292
|
-
this.$$l_u.set(o, h);
|
|
243
|
+
});
|
|
244
|
+
const n = () => {
|
|
245
|
+
this.$$r = !0;
|
|
246
|
+
for (const i in this.$$p_d)
|
|
247
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
248
|
+
const s = J(
|
|
249
|
+
i,
|
|
250
|
+
this.$$d[i],
|
|
251
|
+
this.$$p_d,
|
|
252
|
+
"toAttribute"
|
|
253
|
+
);
|
|
254
|
+
s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
|
|
293
255
|
}
|
|
294
|
-
this.$$
|
|
295
|
-
}
|
|
296
|
-
|
|
256
|
+
this.$$r = !1;
|
|
257
|
+
};
|
|
258
|
+
this.$$c.$$.after_update.push(n), n();
|
|
259
|
+
for (const i in this.$$l)
|
|
260
|
+
for (const s of this.$$l[i]) {
|
|
261
|
+
const u = this.$$c.$on(i, s);
|
|
262
|
+
this.$$l_u.set(s, u);
|
|
263
|
+
}
|
|
264
|
+
this.$$l = {};
|
|
265
|
+
}
|
|
297
266
|
}
|
|
298
267
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
299
268
|
// and setting attributes through setAttribute etc, this is helpful
|
|
300
|
-
attributeChangedCallback(t, r
|
|
301
|
-
|
|
302
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = q(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
269
|
+
attributeChangedCallback(e, t, r) {
|
|
270
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = J(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
303
271
|
}
|
|
304
272
|
disconnectedCallback() {
|
|
305
273
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
306
274
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
307
275
|
});
|
|
308
276
|
}
|
|
309
|
-
$$g_p(
|
|
277
|
+
$$g_p(e) {
|
|
310
278
|
return Object.keys(this.$$p_d).find(
|
|
311
|
-
(
|
|
312
|
-
) ||
|
|
279
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
280
|
+
) || e;
|
|
313
281
|
}
|
|
314
282
|
});
|
|
315
|
-
function
|
|
316
|
-
|
|
317
|
-
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
283
|
+
function J(e, t, r, n) {
|
|
284
|
+
const i = r[e]?.type;
|
|
318
285
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
319
286
|
return t;
|
|
320
287
|
if (n === "toAttribute")
|
|
@@ -325,7 +292,7 @@ function q(e, t, r, n) {
|
|
|
325
292
|
case "Boolean":
|
|
326
293
|
return t ? "" : null;
|
|
327
294
|
case "Number":
|
|
328
|
-
return t
|
|
295
|
+
return t ?? null;
|
|
329
296
|
default:
|
|
330
297
|
return t;
|
|
331
298
|
}
|
|
@@ -342,59 +309,55 @@ function q(e, t, r, n) {
|
|
|
342
309
|
return t;
|
|
343
310
|
}
|
|
344
311
|
}
|
|
345
|
-
function
|
|
346
|
-
let
|
|
312
|
+
function Dt(e, t, r, n, i, s) {
|
|
313
|
+
let u = class extends et {
|
|
347
314
|
constructor() {
|
|
348
315
|
super(e, r, i), this.$$p_d = t;
|
|
349
316
|
}
|
|
350
317
|
static get observedAttributes() {
|
|
351
318
|
return Object.keys(t).map(
|
|
352
|
-
(
|
|
319
|
+
(o) => (t[o].attribute || o).toLowerCase()
|
|
353
320
|
);
|
|
354
321
|
}
|
|
355
322
|
};
|
|
356
|
-
return Object.keys(t).forEach((
|
|
357
|
-
Object.defineProperty(
|
|
323
|
+
return Object.keys(t).forEach((o) => {
|
|
324
|
+
Object.defineProperty(u.prototype, o, {
|
|
358
325
|
get() {
|
|
359
|
-
return this.$$c &&
|
|
326
|
+
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
360
327
|
},
|
|
361
|
-
set(
|
|
362
|
-
|
|
363
|
-
u = q(h, u, t), this.$$d[h] = u, (a = this.$$c) == null || a.$set({ [h]: u });
|
|
328
|
+
set(f) {
|
|
329
|
+
f = J(o, f, t), this.$$d[o] = f, this.$$c?.$set({ [o]: f });
|
|
364
330
|
}
|
|
365
331
|
});
|
|
366
|
-
}), n.forEach((
|
|
367
|
-
Object.defineProperty(
|
|
332
|
+
}), n.forEach((o) => {
|
|
333
|
+
Object.defineProperty(u.prototype, o, {
|
|
368
334
|
get() {
|
|
369
|
-
|
|
370
|
-
return (u = this.$$c) == null ? void 0 : u[h];
|
|
335
|
+
return this.$$c?.[o];
|
|
371
336
|
}
|
|
372
337
|
});
|
|
373
338
|
}), e.element = /** @type {any} */
|
|
374
|
-
|
|
375
|
-
}
|
|
376
|
-
class
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
v(this, "$$set");
|
|
394
|
-
}
|
|
339
|
+
u, u;
|
|
340
|
+
}
|
|
341
|
+
class Ft {
|
|
342
|
+
/**
|
|
343
|
+
* ### PRIVATE API
|
|
344
|
+
*
|
|
345
|
+
* Do not use, may change at any time
|
|
346
|
+
*
|
|
347
|
+
* @type {any}
|
|
348
|
+
*/
|
|
349
|
+
$$ = void 0;
|
|
350
|
+
/**
|
|
351
|
+
* ### PRIVATE API
|
|
352
|
+
*
|
|
353
|
+
* Do not use, may change at any time
|
|
354
|
+
*
|
|
355
|
+
* @type {any}
|
|
356
|
+
*/
|
|
357
|
+
$$set = void 0;
|
|
395
358
|
/** @returns {void} */
|
|
396
359
|
$destroy() {
|
|
397
|
-
|
|
360
|
+
Rt(this, 1), this.$destroy = _;
|
|
398
361
|
}
|
|
399
362
|
/**
|
|
400
363
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -403,7 +366,7 @@ class Kt {
|
|
|
403
366
|
* @returns {() => void}
|
|
404
367
|
*/
|
|
405
368
|
$on(t, r) {
|
|
406
|
-
if (!
|
|
369
|
+
if (!Te(r))
|
|
407
370
|
return _;
|
|
408
371
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
409
372
|
return n.push(r), () => {
|
|
@@ -416,159 +379,159 @@ class Kt {
|
|
|
416
379
|
* @returns {void}
|
|
417
380
|
*/
|
|
418
381
|
$set(t) {
|
|
419
|
-
this.$$set && !
|
|
382
|
+
this.$$set && !St(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
420
383
|
}
|
|
421
384
|
}
|
|
422
|
-
const
|
|
423
|
-
typeof window
|
|
424
|
-
const
|
|
425
|
-
function
|
|
385
|
+
const jt = "4";
|
|
386
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(jt);
|
|
387
|
+
const N = [];
|
|
388
|
+
function Vt(e, t) {
|
|
426
389
|
return {
|
|
427
|
-
subscribe:
|
|
390
|
+
subscribe: te(e, t).subscribe
|
|
428
391
|
};
|
|
429
392
|
}
|
|
430
|
-
function
|
|
393
|
+
function te(e, t = _) {
|
|
431
394
|
let r;
|
|
432
395
|
const n = /* @__PURE__ */ new Set();
|
|
433
|
-
function i(
|
|
434
|
-
if (
|
|
435
|
-
const
|
|
396
|
+
function i(o) {
|
|
397
|
+
if (Je(e, o) && (e = o, r)) {
|
|
398
|
+
const f = !N.length;
|
|
436
399
|
for (const a of n)
|
|
437
|
-
a[1](),
|
|
438
|
-
if (
|
|
439
|
-
for (let a = 0; a <
|
|
440
|
-
|
|
441
|
-
|
|
400
|
+
a[1](), N.push(a, e);
|
|
401
|
+
if (f) {
|
|
402
|
+
for (let a = 0; a < N.length; a += 2)
|
|
403
|
+
N[a][0](N[a + 1]);
|
|
404
|
+
N.length = 0;
|
|
442
405
|
}
|
|
443
406
|
}
|
|
444
407
|
}
|
|
445
|
-
function s(
|
|
446
|
-
i(
|
|
408
|
+
function s(o) {
|
|
409
|
+
i(o(e));
|
|
447
410
|
}
|
|
448
|
-
function o
|
|
449
|
-
const a = [
|
|
450
|
-
return n.add(a), n.size === 1 && (r = t(i, s) || _),
|
|
411
|
+
function u(o, f = _) {
|
|
412
|
+
const a = [o, f];
|
|
413
|
+
return n.add(a), n.size === 1 && (r = t(i, s) || _), o(e), () => {
|
|
451
414
|
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
452
415
|
};
|
|
453
416
|
}
|
|
454
|
-
return { set: i, update: s, subscribe:
|
|
417
|
+
return { set: i, update: s, subscribe: u };
|
|
455
418
|
}
|
|
456
|
-
function
|
|
419
|
+
function R(e, t, r) {
|
|
457
420
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
458
421
|
if (!i.every(Boolean))
|
|
459
422
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
460
423
|
const s = t.length < 2;
|
|
461
|
-
return
|
|
462
|
-
let
|
|
424
|
+
return Vt(r, (u, o) => {
|
|
425
|
+
let f = !1;
|
|
463
426
|
const a = [];
|
|
464
|
-
let
|
|
427
|
+
let h = 0, l = _;
|
|
465
428
|
const c = () => {
|
|
466
|
-
if (
|
|
429
|
+
if (h)
|
|
467
430
|
return;
|
|
468
|
-
|
|
469
|
-
const g = t(n ? a[0] : a,
|
|
470
|
-
s ?
|
|
431
|
+
l();
|
|
432
|
+
const g = t(n ? a[0] : a, u, o);
|
|
433
|
+
s ? u(g) : l = Te(g) ? g : _;
|
|
471
434
|
}, b = i.map(
|
|
472
|
-
(g, y) =>
|
|
435
|
+
(g, y) => qe(
|
|
473
436
|
g,
|
|
474
|
-
(
|
|
475
|
-
a[y] =
|
|
437
|
+
(H) => {
|
|
438
|
+
a[y] = H, h &= ~(1 << y), f && c();
|
|
476
439
|
},
|
|
477
440
|
() => {
|
|
478
|
-
|
|
441
|
+
h |= 1 << y;
|
|
479
442
|
}
|
|
480
443
|
)
|
|
481
444
|
);
|
|
482
|
-
return
|
|
483
|
-
|
|
445
|
+
return f = !0, c(), function() {
|
|
446
|
+
W(b), l(), f = !1;
|
|
484
447
|
};
|
|
485
448
|
});
|
|
486
449
|
}
|
|
487
|
-
function
|
|
488
|
-
return e
|
|
450
|
+
function kt(e) {
|
|
451
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
489
452
|
}
|
|
490
|
-
var
|
|
491
|
-
return
|
|
453
|
+
var Xt = function(t) {
|
|
454
|
+
return Wt(t) && !zt(t);
|
|
492
455
|
};
|
|
493
|
-
function
|
|
456
|
+
function Wt(e) {
|
|
494
457
|
return !!e && typeof e == "object";
|
|
495
458
|
}
|
|
496
|
-
function
|
|
459
|
+
function zt(e) {
|
|
497
460
|
var t = Object.prototype.toString.call(e);
|
|
498
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
461
|
+
return t === "[object RegExp]" || t === "[object Date]" || Jt(e);
|
|
499
462
|
}
|
|
500
|
-
var
|
|
501
|
-
function
|
|
502
|
-
return e.$$typeof ===
|
|
463
|
+
var Zt = typeof Symbol == "function" && Symbol.for, Qt = Zt ? Symbol.for("react.element") : 60103;
|
|
464
|
+
function Jt(e) {
|
|
465
|
+
return e.$$typeof === Qt;
|
|
503
466
|
}
|
|
504
|
-
function
|
|
467
|
+
function qt(e) {
|
|
505
468
|
return Array.isArray(e) ? [] : {};
|
|
506
469
|
}
|
|
507
|
-
function
|
|
508
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
470
|
+
function k(e, t) {
|
|
471
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? $(qt(e), e, t) : e;
|
|
509
472
|
}
|
|
510
|
-
function
|
|
473
|
+
function Yt(e, t, r) {
|
|
511
474
|
return e.concat(t).map(function(n) {
|
|
512
|
-
return
|
|
475
|
+
return k(n, r);
|
|
513
476
|
});
|
|
514
477
|
}
|
|
515
|
-
function
|
|
478
|
+
function Kt(e, t) {
|
|
516
479
|
if (!t.customMerge)
|
|
517
|
-
return
|
|
480
|
+
return $;
|
|
518
481
|
var r = t.customMerge(e);
|
|
519
|
-
return typeof r == "function" ? r :
|
|
482
|
+
return typeof r == "function" ? r : $;
|
|
520
483
|
}
|
|
521
|
-
function
|
|
484
|
+
function er(e) {
|
|
522
485
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
523
486
|
return Object.propertyIsEnumerable.call(e, t);
|
|
524
487
|
}) : [];
|
|
525
488
|
}
|
|
526
|
-
function
|
|
527
|
-
return Object.keys(e).concat(
|
|
489
|
+
function Le(e) {
|
|
490
|
+
return Object.keys(e).concat(er(e));
|
|
528
491
|
}
|
|
529
|
-
function
|
|
492
|
+
function tt(e, t) {
|
|
530
493
|
try {
|
|
531
494
|
return t in e;
|
|
532
|
-
} catch
|
|
495
|
+
} catch {
|
|
533
496
|
return !1;
|
|
534
497
|
}
|
|
535
498
|
}
|
|
536
|
-
function
|
|
537
|
-
return
|
|
499
|
+
function tr(e, t) {
|
|
500
|
+
return tt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
538
501
|
}
|
|
539
|
-
function
|
|
502
|
+
function rr(e, t, r) {
|
|
540
503
|
var n = {};
|
|
541
|
-
return r.isMergeableObject(e) &&
|
|
542
|
-
n[i] =
|
|
543
|
-
}),
|
|
544
|
-
|
|
504
|
+
return r.isMergeableObject(e) && Le(e).forEach(function(i) {
|
|
505
|
+
n[i] = k(e[i], r);
|
|
506
|
+
}), Le(t).forEach(function(i) {
|
|
507
|
+
tr(e, i) || (tt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Kt(i, r)(e[i], t[i], r) : n[i] = k(t[i], r));
|
|
545
508
|
}), n;
|
|
546
509
|
}
|
|
547
|
-
function
|
|
548
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
510
|
+
function $(e, t, r) {
|
|
511
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Yt, r.isMergeableObject = r.isMergeableObject || Xt, r.cloneUnlessOtherwiseSpecified = k;
|
|
549
512
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
550
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
513
|
+
return s ? n ? r.arrayMerge(e, t, r) : rr(e, t, r) : k(t, r);
|
|
551
514
|
}
|
|
552
|
-
|
|
515
|
+
$.all = function(t, r) {
|
|
553
516
|
if (!Array.isArray(t))
|
|
554
517
|
throw new Error("first argument should be an array");
|
|
555
518
|
return t.reduce(function(n, i) {
|
|
556
|
-
return
|
|
519
|
+
return $(n, i, r);
|
|
557
520
|
}, {});
|
|
558
521
|
};
|
|
559
|
-
var
|
|
560
|
-
const
|
|
561
|
-
var
|
|
562
|
-
return
|
|
522
|
+
var nr = $, ir = nr;
|
|
523
|
+
const sr = /* @__PURE__ */ kt(ir);
|
|
524
|
+
var de = function(e, t) {
|
|
525
|
+
return de = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
563
526
|
r.__proto__ = n;
|
|
564
527
|
} || function(r, n) {
|
|
565
528
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
566
|
-
},
|
|
529
|
+
}, de(e, t);
|
|
567
530
|
};
|
|
568
|
-
function
|
|
531
|
+
function re(e, t) {
|
|
569
532
|
if (typeof t != "function" && t !== null)
|
|
570
533
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
571
|
-
|
|
534
|
+
de(e, t);
|
|
572
535
|
function r() {
|
|
573
536
|
this.constructor = e;
|
|
574
537
|
}
|
|
@@ -583,7 +546,7 @@ var d = function() {
|
|
|
583
546
|
return t;
|
|
584
547
|
}, d.apply(this, arguments);
|
|
585
548
|
};
|
|
586
|
-
function
|
|
549
|
+
function or(e, t) {
|
|
587
550
|
var r = {};
|
|
588
551
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
589
552
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -591,61 +554,63 @@ function Er(e, t) {
|
|
|
591
554
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
592
555
|
return r;
|
|
593
556
|
}
|
|
594
|
-
function
|
|
557
|
+
function ae(e, t, r) {
|
|
595
558
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
|
596
559
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
597
560
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
598
561
|
}
|
|
599
|
-
function
|
|
600
|
-
var r = t && t.cache ? t.cache :
|
|
562
|
+
function ue(e, t) {
|
|
563
|
+
var r = t && t.cache ? t.cache : mr, n = t && t.serializer ? t.serializer : fr, i = t && t.strategy ? t.strategy : ur;
|
|
601
564
|
return i(e, {
|
|
602
565
|
cache: r,
|
|
603
566
|
serializer: n
|
|
604
567
|
});
|
|
605
568
|
}
|
|
606
|
-
function
|
|
569
|
+
function ar(e) {
|
|
607
570
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
608
571
|
}
|
|
609
|
-
function
|
|
610
|
-
var i =
|
|
611
|
-
return typeof s
|
|
572
|
+
function rt(e, t, r, n) {
|
|
573
|
+
var i = ar(n) ? n : r(n), s = t.get(i);
|
|
574
|
+
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
612
575
|
}
|
|
613
|
-
function
|
|
576
|
+
function nt(e, t, r) {
|
|
614
577
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
615
|
-
return typeof s
|
|
578
|
+
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
616
579
|
}
|
|
617
|
-
function
|
|
580
|
+
function Ae(e, t, r, n, i) {
|
|
618
581
|
return r.bind(t, e, n, i);
|
|
619
582
|
}
|
|
620
|
-
function
|
|
621
|
-
var r = e.length === 1 ?
|
|
622
|
-
return
|
|
583
|
+
function ur(e, t) {
|
|
584
|
+
var r = e.length === 1 ? rt : nt;
|
|
585
|
+
return Ae(e, this, r, t.cache.create(), t.serializer);
|
|
623
586
|
}
|
|
624
|
-
function
|
|
625
|
-
return
|
|
587
|
+
function hr(e, t) {
|
|
588
|
+
return Ae(e, this, nt, t.cache.create(), t.serializer);
|
|
626
589
|
}
|
|
627
|
-
function
|
|
628
|
-
return
|
|
590
|
+
function lr(e, t) {
|
|
591
|
+
return Ae(e, this, rt, t.cache.create(), t.serializer);
|
|
629
592
|
}
|
|
630
|
-
var
|
|
593
|
+
var fr = function() {
|
|
631
594
|
return JSON.stringify(arguments);
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
595
|
+
}, cr = (
|
|
596
|
+
/** @class */
|
|
597
|
+
function() {
|
|
598
|
+
function e() {
|
|
599
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
600
|
+
}
|
|
601
|
+
return e.prototype.get = function(t) {
|
|
602
|
+
return this.cache[t];
|
|
603
|
+
}, e.prototype.set = function(t, r) {
|
|
604
|
+
this.cache[t] = r;
|
|
605
|
+
}, e;
|
|
606
|
+
}()
|
|
607
|
+
), mr = {
|
|
643
608
|
create: function() {
|
|
644
|
-
return new
|
|
609
|
+
return new cr();
|
|
645
610
|
}
|
|
646
|
-
},
|
|
647
|
-
variadic:
|
|
648
|
-
monadic:
|
|
611
|
+
}, he = {
|
|
612
|
+
variadic: hr,
|
|
613
|
+
monadic: lr
|
|
649
614
|
}, m;
|
|
650
615
|
(function(e) {
|
|
651
616
|
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";
|
|
@@ -654,47 +619,47 @@ var E;
|
|
|
654
619
|
(function(e) {
|
|
655
620
|
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";
|
|
656
621
|
})(E || (E = {}));
|
|
657
|
-
var
|
|
622
|
+
var L;
|
|
658
623
|
(function(e) {
|
|
659
624
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
660
|
-
})(
|
|
661
|
-
function
|
|
625
|
+
})(L || (L = {}));
|
|
626
|
+
function Me(e) {
|
|
662
627
|
return e.type === E.literal;
|
|
663
628
|
}
|
|
664
|
-
function
|
|
629
|
+
function pr(e) {
|
|
665
630
|
return e.type === E.argument;
|
|
666
631
|
}
|
|
667
|
-
function
|
|
632
|
+
function it(e) {
|
|
668
633
|
return e.type === E.number;
|
|
669
634
|
}
|
|
670
|
-
function
|
|
635
|
+
function st(e) {
|
|
671
636
|
return e.type === E.date;
|
|
672
637
|
}
|
|
673
|
-
function
|
|
638
|
+
function ot(e) {
|
|
674
639
|
return e.type === E.time;
|
|
675
640
|
}
|
|
676
|
-
function
|
|
641
|
+
function at(e) {
|
|
677
642
|
return e.type === E.select;
|
|
678
643
|
}
|
|
679
|
-
function
|
|
644
|
+
function ut(e) {
|
|
680
645
|
return e.type === E.plural;
|
|
681
646
|
}
|
|
682
|
-
function
|
|
647
|
+
function dr(e) {
|
|
683
648
|
return e.type === E.pound;
|
|
684
649
|
}
|
|
685
|
-
function
|
|
650
|
+
function ht(e) {
|
|
686
651
|
return e.type === E.tag;
|
|
687
652
|
}
|
|
688
|
-
function
|
|
689
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
653
|
+
function lt(e) {
|
|
654
|
+
return !!(e && typeof e == "object" && e.type === L.number);
|
|
690
655
|
}
|
|
691
|
-
function
|
|
692
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
656
|
+
function be(e) {
|
|
657
|
+
return !!(e && typeof e == "object" && e.type === L.dateTime);
|
|
693
658
|
}
|
|
694
|
-
var
|
|
695
|
-
function
|
|
659
|
+
var ft = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, br = /(?:[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;
|
|
660
|
+
function gr(e) {
|
|
696
661
|
var t = {};
|
|
697
|
-
return e.replace(
|
|
662
|
+
return e.replace(br, function(r) {
|
|
698
663
|
var n = r.length;
|
|
699
664
|
switch (r[0]) {
|
|
700
665
|
case "G":
|
|
@@ -783,36 +748,36 @@ function Pr(e) {
|
|
|
783
748
|
return "";
|
|
784
749
|
}), t;
|
|
785
750
|
}
|
|
786
|
-
var
|
|
787
|
-
function
|
|
751
|
+
var Er = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
752
|
+
function xr(e) {
|
|
788
753
|
if (e.length === 0)
|
|
789
754
|
throw new Error("Number skeleton cannot be empty");
|
|
790
|
-
for (var t = e.split(
|
|
755
|
+
for (var t = e.split(Er).filter(function(c) {
|
|
791
756
|
return c.length > 0;
|
|
792
757
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
793
|
-
var s = i[n],
|
|
794
|
-
if (
|
|
758
|
+
var s = i[n], u = s.split("/");
|
|
759
|
+
if (u.length === 0)
|
|
795
760
|
throw new Error("Invalid number skeleton");
|
|
796
|
-
for (var
|
|
797
|
-
var
|
|
798
|
-
if (
|
|
761
|
+
for (var o = u[0], f = u.slice(1), a = 0, h = f; a < h.length; a++) {
|
|
762
|
+
var l = h[a];
|
|
763
|
+
if (l.length === 0)
|
|
799
764
|
throw new Error("Invalid number skeleton");
|
|
800
765
|
}
|
|
801
|
-
r.push({ stem:
|
|
766
|
+
r.push({ stem: o, options: f });
|
|
802
767
|
}
|
|
803
768
|
return r;
|
|
804
769
|
}
|
|
805
|
-
function
|
|
770
|
+
function yr(e) {
|
|
806
771
|
return e.replace(/^(.*?)-/, "");
|
|
807
772
|
}
|
|
808
|
-
var
|
|
809
|
-
function
|
|
773
|
+
var Ce = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ct = /^(@+)?(\+|#+)?[rs]?$/g, _r = /(\*)(0+)|(#+)(0+)|(0+)/g, mt = /^(0+)$/;
|
|
774
|
+
function Re(e) {
|
|
810
775
|
var t = {};
|
|
811
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
776
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ct, function(r, n, i) {
|
|
812
777
|
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)), "";
|
|
813
778
|
}), t;
|
|
814
779
|
}
|
|
815
|
-
function
|
|
780
|
+
function pt(e) {
|
|
816
781
|
switch (e) {
|
|
817
782
|
case "sign-auto":
|
|
818
783
|
return {
|
|
@@ -852,7 +817,7 @@ function vt(e) {
|
|
|
852
817
|
};
|
|
853
818
|
}
|
|
854
819
|
}
|
|
855
|
-
function
|
|
820
|
+
function vr(e) {
|
|
856
821
|
var t;
|
|
857
822
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
858
823
|
notation: "engineering"
|
|
@@ -860,17 +825,17 @@ function $r(e) {
|
|
|
860
825
|
notation: "scientific"
|
|
861
826
|
}, e = e.slice(1)), t) {
|
|
862
827
|
var r = e.slice(0, 2);
|
|
863
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
828
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !mt.test(e))
|
|
864
829
|
throw new Error("Malformed concise eng/scientific notation");
|
|
865
830
|
t.minimumIntegerDigits = e.length;
|
|
866
831
|
}
|
|
867
832
|
return t;
|
|
868
833
|
}
|
|
869
|
-
function
|
|
870
|
-
var t = {}, r =
|
|
834
|
+
function Ue(e) {
|
|
835
|
+
var t = {}, r = pt(e);
|
|
871
836
|
return r || t;
|
|
872
837
|
}
|
|
873
|
-
function
|
|
838
|
+
function Hr(e) {
|
|
874
839
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
875
840
|
var i = n[r];
|
|
876
841
|
switch (i.stem) {
|
|
@@ -894,7 +859,7 @@ function Lr(e) {
|
|
|
894
859
|
continue;
|
|
895
860
|
case "measure-unit":
|
|
896
861
|
case "unit":
|
|
897
|
-
t.style = "unit", t.unit =
|
|
862
|
+
t.style = "unit", t.unit = yr(i.options[0]);
|
|
898
863
|
continue;
|
|
899
864
|
case "compact-short":
|
|
900
865
|
case "K":
|
|
@@ -905,13 +870,13 @@ function Lr(e) {
|
|
|
905
870
|
t.notation = "compact", t.compactDisplay = "long";
|
|
906
871
|
continue;
|
|
907
872
|
case "scientific":
|
|
908
|
-
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(
|
|
909
|
-
return d(d({},
|
|
873
|
+
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(f, a) {
|
|
874
|
+
return d(d({}, f), Ue(a));
|
|
910
875
|
}, {}));
|
|
911
876
|
continue;
|
|
912
877
|
case "engineering":
|
|
913
|
-
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(
|
|
914
|
-
return d(d({},
|
|
878
|
+
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(f, a) {
|
|
879
|
+
return d(d({}, f), Ue(a));
|
|
915
880
|
}, {}));
|
|
916
881
|
continue;
|
|
917
882
|
case "notation-simple":
|
|
@@ -956,11 +921,11 @@ function Lr(e) {
|
|
|
956
921
|
case "integer-width":
|
|
957
922
|
if (i.options.length > 1)
|
|
958
923
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
959
|
-
i.options[0].replace(
|
|
924
|
+
i.options[0].replace(_r, function(f, a, h, l, c, b) {
|
|
960
925
|
if (a)
|
|
961
|
-
t.minimumIntegerDigits =
|
|
926
|
+
t.minimumIntegerDigits = h.length;
|
|
962
927
|
else {
|
|
963
|
-
if (
|
|
928
|
+
if (l && c)
|
|
964
929
|
throw new Error("We currently do not support maximum integer digits");
|
|
965
930
|
if (b)
|
|
966
931
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -969,32 +934,32 @@ function Lr(e) {
|
|
|
969
934
|
});
|
|
970
935
|
continue;
|
|
971
936
|
}
|
|
972
|
-
if (
|
|
937
|
+
if (mt.test(i.stem)) {
|
|
973
938
|
t.minimumIntegerDigits = i.stem.length;
|
|
974
939
|
continue;
|
|
975
940
|
}
|
|
976
|
-
if (
|
|
941
|
+
if (Ce.test(i.stem)) {
|
|
977
942
|
if (i.options.length > 1)
|
|
978
943
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
979
|
-
i.stem.replace(
|
|
980
|
-
return
|
|
944
|
+
i.stem.replace(Ce, function(f, a, h, l, c, b) {
|
|
945
|
+
return h === "*" ? t.minimumFractionDigits = a.length : l && l[0] === "#" ? t.maximumFractionDigits = l.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
981
946
|
});
|
|
982
947
|
var s = i.options[0];
|
|
983
|
-
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t),
|
|
948
|
+
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), Re(s)));
|
|
984
949
|
continue;
|
|
985
950
|
}
|
|
986
|
-
if (
|
|
987
|
-
t = d(d({}, t),
|
|
951
|
+
if (ct.test(i.stem)) {
|
|
952
|
+
t = d(d({}, t), Re(i.stem));
|
|
988
953
|
continue;
|
|
989
954
|
}
|
|
990
|
-
var
|
|
955
|
+
var u = pt(i.stem);
|
|
956
|
+
u && (t = d(d({}, t), u));
|
|
957
|
+
var o = vr(i.stem);
|
|
991
958
|
o && (t = d(d({}, t), o));
|
|
992
|
-
var h = $r(i.stem);
|
|
993
|
-
h && (t = d(d({}, t), h));
|
|
994
959
|
}
|
|
995
960
|
return t;
|
|
996
961
|
}
|
|
997
|
-
var
|
|
962
|
+
var Q = {
|
|
998
963
|
"001": [
|
|
999
964
|
"H",
|
|
1000
965
|
"h"
|
|
@@ -2409,22 +2374,22 @@ var J = {
|
|
|
2409
2374
|
"h"
|
|
2410
2375
|
]
|
|
2411
2376
|
};
|
|
2412
|
-
function
|
|
2377
|
+
function Tr(e, t) {
|
|
2413
2378
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2414
2379
|
var i = e.charAt(n);
|
|
2415
2380
|
if (i === "j") {
|
|
2416
2381
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2417
2382
|
s++, n++;
|
|
2418
|
-
var
|
|
2419
|
-
for ((a == "H" || a == "k") && (
|
|
2420
|
-
r +=
|
|
2421
|
-
for (;
|
|
2383
|
+
var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), f = "a", a = Sr(t);
|
|
2384
|
+
for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
|
|
2385
|
+
r += f;
|
|
2386
|
+
for (; u-- > 0; )
|
|
2422
2387
|
r = a + r;
|
|
2423
2388
|
} else i === "J" ? r += "H" : r += i;
|
|
2424
2389
|
}
|
|
2425
2390
|
return r;
|
|
2426
2391
|
}
|
|
2427
|
-
function
|
|
2392
|
+
function Sr(e) {
|
|
2428
2393
|
var t = e.hourCycle;
|
|
2429
2394
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2430
2395
|
e.hourCycles && // @ts-ignore
|
|
@@ -2443,23 +2408,23 @@ function Cr(e) {
|
|
|
2443
2408
|
}
|
|
2444
2409
|
var r = e.language, n;
|
|
2445
2410
|
r !== "root" && (n = e.maximize().region);
|
|
2446
|
-
var i =
|
|
2411
|
+
var i = Q[n || ""] || Q[r || ""] || Q["".concat(r, "-001")] || Q["001"];
|
|
2447
2412
|
return i[0];
|
|
2448
2413
|
}
|
|
2449
|
-
var
|
|
2414
|
+
var le, Br = new RegExp("^".concat(ft.source, "*")), Ar = new RegExp("".concat(ft.source, "*$"));
|
|
2450
2415
|
function p(e, t) {
|
|
2451
2416
|
return { start: e, end: t };
|
|
2452
2417
|
}
|
|
2453
|
-
var
|
|
2418
|
+
var Pr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nr = !!String.fromCodePoint, Or = !!Object.fromEntries, Ir = !!String.prototype.codePointAt, wr = !!String.prototype.trimStart, $r = !!String.prototype.trimEnd, Lr = !!Number.isSafeInteger, Mr = Lr ? Number.isSafeInteger : function(e) {
|
|
2454
2419
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2455
|
-
},
|
|
2420
|
+
}, ge = !0;
|
|
2456
2421
|
try {
|
|
2457
|
-
var
|
|
2458
|
-
|
|
2459
|
-
} catch
|
|
2460
|
-
|
|
2422
|
+
var Cr = bt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2423
|
+
ge = ((le = Cr.exec("a")) === null || le === void 0 ? void 0 : le[0]) === "a";
|
|
2424
|
+
} catch {
|
|
2425
|
+
ge = !1;
|
|
2461
2426
|
}
|
|
2462
|
-
var
|
|
2427
|
+
var Ge = Pr ? (
|
|
2463
2428
|
// Native
|
|
2464
2429
|
function(t, r, n) {
|
|
2465
2430
|
return t.startsWith(r, n);
|
|
@@ -2469,31 +2434,31 @@ var We = Gr ? (
|
|
|
2469
2434
|
function(t, r, n) {
|
|
2470
2435
|
return t.slice(n, n + r.length) === r;
|
|
2471
2436
|
}
|
|
2472
|
-
),
|
|
2437
|
+
), Ee = Nr ? String.fromCodePoint : (
|
|
2473
2438
|
// IE11
|
|
2474
2439
|
function() {
|
|
2475
2440
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2476
2441
|
t[r] = arguments[r];
|
|
2477
|
-
for (var n = "", i = t.length, s = 0,
|
|
2478
|
-
if (
|
|
2479
|
-
throw RangeError(
|
|
2480
|
-
n +=
|
|
2442
|
+
for (var n = "", i = t.length, s = 0, u; i > s; ) {
|
|
2443
|
+
if (u = t[s++], u > 1114111)
|
|
2444
|
+
throw RangeError(u + " is not a valid code point");
|
|
2445
|
+
n += u < 65536 ? String.fromCharCode(u) : String.fromCharCode(((u -= 65536) >> 10) + 55296, u % 1024 + 56320);
|
|
2481
2446
|
}
|
|
2482
2447
|
return n;
|
|
2483
2448
|
}
|
|
2484
|
-
),
|
|
2449
|
+
), De = (
|
|
2485
2450
|
// native
|
|
2486
|
-
|
|
2451
|
+
Or ? Object.fromEntries : (
|
|
2487
2452
|
// Ponyfill
|
|
2488
2453
|
function(t) {
|
|
2489
2454
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2490
|
-
var s = i[n],
|
|
2491
|
-
r[
|
|
2455
|
+
var s = i[n], u = s[0], o = s[1];
|
|
2456
|
+
r[u] = o;
|
|
2492
2457
|
}
|
|
2493
2458
|
return r;
|
|
2494
2459
|
}
|
|
2495
2460
|
)
|
|
2496
|
-
),
|
|
2461
|
+
), dt = Ir ? (
|
|
2497
2462
|
// Native
|
|
2498
2463
|
function(t, r) {
|
|
2499
2464
|
return t.codePointAt(r);
|
|
@@ -2507,7 +2472,7 @@ var We = Gr ? (
|
|
|
2507
2472
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2508
2473
|
}
|
|
2509
2474
|
}
|
|
2510
|
-
),
|
|
2475
|
+
), Rr = wr ? (
|
|
2511
2476
|
// Native
|
|
2512
2477
|
function(t) {
|
|
2513
2478
|
return t.trimStart();
|
|
@@ -2515,9 +2480,9 @@ var We = Gr ? (
|
|
|
2515
2480
|
) : (
|
|
2516
2481
|
// Ponyfill
|
|
2517
2482
|
function(t) {
|
|
2518
|
-
return t.replace(
|
|
2483
|
+
return t.replace(Br, "");
|
|
2519
2484
|
}
|
|
2520
|
-
),
|
|
2485
|
+
), Ur = $r ? (
|
|
2521
2486
|
// Native
|
|
2522
2487
|
function(t) {
|
|
2523
2488
|
return t.trimEnd();
|
|
@@ -2525,32 +2490,32 @@ var We = Gr ? (
|
|
|
2525
2490
|
) : (
|
|
2526
2491
|
// Ponyfill
|
|
2527
2492
|
function(t) {
|
|
2528
|
-
return t.replace(
|
|
2493
|
+
return t.replace(Ar, "");
|
|
2529
2494
|
}
|
|
2530
2495
|
);
|
|
2531
|
-
function
|
|
2496
|
+
function bt(e, t) {
|
|
2532
2497
|
return new RegExp(e, t);
|
|
2533
2498
|
}
|
|
2534
|
-
var
|
|
2535
|
-
if (
|
|
2536
|
-
var
|
|
2537
|
-
|
|
2499
|
+
var xe;
|
|
2500
|
+
if (ge) {
|
|
2501
|
+
var Fe = bt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2502
|
+
xe = function(t, r) {
|
|
2538
2503
|
var n;
|
|
2539
|
-
|
|
2540
|
-
var i =
|
|
2504
|
+
Fe.lastIndex = r;
|
|
2505
|
+
var i = Fe.exec(t);
|
|
2541
2506
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2542
2507
|
};
|
|
2543
2508
|
} else
|
|
2544
|
-
|
|
2509
|
+
xe = function(t, r) {
|
|
2545
2510
|
for (var n = []; ; ) {
|
|
2546
|
-
var i =
|
|
2547
|
-
if (i === void 0 ||
|
|
2511
|
+
var i = dt(t, r);
|
|
2512
|
+
if (i === void 0 || gt(i) || jr(i))
|
|
2548
2513
|
break;
|
|
2549
2514
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2550
2515
|
}
|
|
2551
|
-
return
|
|
2516
|
+
return Ee.apply(void 0, n);
|
|
2552
2517
|
};
|
|
2553
|
-
var
|
|
2518
|
+
var Gr = (
|
|
2554
2519
|
/** @class */
|
|
2555
2520
|
function() {
|
|
2556
2521
|
function e(t, r) {
|
|
@@ -2564,33 +2529,33 @@ var Jr = (
|
|
|
2564
2529
|
for (var i = []; !this.isEOF(); ) {
|
|
2565
2530
|
var s = this.char();
|
|
2566
2531
|
if (s === 123) {
|
|
2567
|
-
var
|
|
2568
|
-
if (
|
|
2569
|
-
return
|
|
2570
|
-
i.push(
|
|
2532
|
+
var u = this.parseArgument(t, n);
|
|
2533
|
+
if (u.err)
|
|
2534
|
+
return u;
|
|
2535
|
+
i.push(u.val);
|
|
2571
2536
|
} else {
|
|
2572
2537
|
if (s === 125 && t > 0)
|
|
2573
2538
|
break;
|
|
2574
2539
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2575
|
-
var
|
|
2540
|
+
var o = this.clonePosition();
|
|
2576
2541
|
this.bump(), i.push({
|
|
2577
2542
|
type: E.pound,
|
|
2578
|
-
location: p(
|
|
2543
|
+
location: p(o, this.clonePosition())
|
|
2579
2544
|
});
|
|
2580
2545
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2581
2546
|
if (n)
|
|
2582
2547
|
break;
|
|
2583
2548
|
return this.error(m.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
|
|
2584
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2585
|
-
var
|
|
2586
|
-
if (
|
|
2587
|
-
return
|
|
2588
|
-
i.push(
|
|
2549
|
+
} else if (s === 60 && !this.ignoreTag && ye(this.peek() || 0)) {
|
|
2550
|
+
var u = this.parseTag(t, r);
|
|
2551
|
+
if (u.err)
|
|
2552
|
+
return u;
|
|
2553
|
+
i.push(u.val);
|
|
2589
2554
|
} else {
|
|
2590
|
-
var
|
|
2591
|
-
if (
|
|
2592
|
-
return
|
|
2593
|
-
i.push(
|
|
2555
|
+
var u = this.parseLiteral(t, r);
|
|
2556
|
+
if (u.err)
|
|
2557
|
+
return u;
|
|
2558
|
+
i.push(u.val);
|
|
2594
2559
|
}
|
|
2595
2560
|
}
|
|
2596
2561
|
}
|
|
@@ -2612,27 +2577,27 @@ var Jr = (
|
|
|
2612
2577
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2613
2578
|
if (s.err)
|
|
2614
2579
|
return s;
|
|
2615
|
-
var
|
|
2580
|
+
var u = s.val, o = this.clonePosition();
|
|
2616
2581
|
if (this.bumpIf("</")) {
|
|
2617
|
-
if (this.isEOF() || !
|
|
2618
|
-
return this.error(m.INVALID_TAG, p(
|
|
2619
|
-
var
|
|
2620
|
-
return i !== a ? this.error(m.UNMATCHED_CLOSING_TAG, p(
|
|
2582
|
+
if (this.isEOF() || !ye(this.char()))
|
|
2583
|
+
return this.error(m.INVALID_TAG, p(o, this.clonePosition()));
|
|
2584
|
+
var f = this.clonePosition(), a = this.parseTagName();
|
|
2585
|
+
return i !== a ? this.error(m.UNMATCHED_CLOSING_TAG, p(f, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2621
2586
|
val: {
|
|
2622
2587
|
type: E.tag,
|
|
2623
2588
|
value: i,
|
|
2624
|
-
children:
|
|
2589
|
+
children: u,
|
|
2625
2590
|
location: p(n, this.clonePosition())
|
|
2626
2591
|
},
|
|
2627
2592
|
err: null
|
|
2628
|
-
} : this.error(m.INVALID_TAG, p(
|
|
2593
|
+
} : this.error(m.INVALID_TAG, p(o, this.clonePosition())));
|
|
2629
2594
|
} else
|
|
2630
2595
|
return this.error(m.UNCLOSED_TAG, p(n, this.clonePosition()));
|
|
2631
2596
|
} else
|
|
2632
2597
|
return this.error(m.INVALID_TAG, p(n, this.clonePosition()));
|
|
2633
2598
|
}, e.prototype.parseTagName = function() {
|
|
2634
2599
|
var t = this.offset();
|
|
2635
|
-
for (this.bump(); !this.isEOF() &&
|
|
2600
|
+
for (this.bump(); !this.isEOF() && Fr(this.char()); )
|
|
2636
2601
|
this.bump();
|
|
2637
2602
|
return this.message.slice(t, this.offset());
|
|
2638
2603
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2642,26 +2607,26 @@ var Jr = (
|
|
|
2642
2607
|
i += s;
|
|
2643
2608
|
continue;
|
|
2644
2609
|
}
|
|
2645
|
-
var
|
|
2646
|
-
if (
|
|
2647
|
-
i +=
|
|
2610
|
+
var u = this.tryParseUnquoted(t, r);
|
|
2611
|
+
if (u) {
|
|
2612
|
+
i += u;
|
|
2648
2613
|
continue;
|
|
2649
2614
|
}
|
|
2650
|
-
var
|
|
2651
|
-
if (
|
|
2652
|
-
i +=
|
|
2615
|
+
var o = this.tryParseLeftAngleBracket();
|
|
2616
|
+
if (o) {
|
|
2617
|
+
i += o;
|
|
2653
2618
|
continue;
|
|
2654
2619
|
}
|
|
2655
2620
|
break;
|
|
2656
2621
|
}
|
|
2657
|
-
var
|
|
2622
|
+
var f = p(n, this.clonePosition());
|
|
2658
2623
|
return {
|
|
2659
|
-
val: { type: E.literal, value: i, location:
|
|
2624
|
+
val: { type: E.literal, value: i, location: f },
|
|
2660
2625
|
err: null
|
|
2661
2626
|
};
|
|
2662
2627
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2663
2628
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2664
|
-
!
|
|
2629
|
+
!Dr(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2665
2630
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2666
2631
|
if (this.isEOF() || this.char() !== 39)
|
|
2667
2632
|
return null;
|
|
@@ -2695,12 +2660,12 @@ var Jr = (
|
|
|
2695
2660
|
r.push(n);
|
|
2696
2661
|
this.bump();
|
|
2697
2662
|
}
|
|
2698
|
-
return
|
|
2663
|
+
return Ee.apply(void 0, r);
|
|
2699
2664
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2700
2665
|
if (this.isEOF())
|
|
2701
2666
|
return null;
|
|
2702
2667
|
var n = this.char();
|
|
2703
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2668
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ee(n));
|
|
2704
2669
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2705
2670
|
var n = this.clonePosition();
|
|
2706
2671
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2729,15 +2694,15 @@ var Jr = (
|
|
|
2729
2694
|
return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
2730
2695
|
}
|
|
2731
2696
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2732
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2697
|
+
var t = this.clonePosition(), r = this.offset(), n = xe(this.message, r), i = r + n.length;
|
|
2733
2698
|
this.bumpTo(i);
|
|
2734
|
-
var s = this.clonePosition(),
|
|
2735
|
-
return { value: n, location:
|
|
2699
|
+
var s = this.clonePosition(), u = p(t, s);
|
|
2700
|
+
return { value: n, location: u };
|
|
2736
2701
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2737
|
-
var s,
|
|
2738
|
-
switch (
|
|
2702
|
+
var s, u = this.clonePosition(), o = this.parseIdentifierIfPossible().value, f = this.clonePosition();
|
|
2703
|
+
switch (o) {
|
|
2739
2704
|
case "":
|
|
2740
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE, p(
|
|
2705
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, p(u, f));
|
|
2741
2706
|
case "number":
|
|
2742
2707
|
case "date":
|
|
2743
2708
|
case "time": {
|
|
@@ -2745,50 +2710,50 @@ var Jr = (
|
|
|
2745
2710
|
var a = null;
|
|
2746
2711
|
if (this.bumpIf(",")) {
|
|
2747
2712
|
this.bumpSpace();
|
|
2748
|
-
var
|
|
2749
|
-
if (
|
|
2750
|
-
return
|
|
2751
|
-
var c =
|
|
2713
|
+
var h = this.clonePosition(), l = this.parseSimpleArgStyleIfPossible();
|
|
2714
|
+
if (l.err)
|
|
2715
|
+
return l;
|
|
2716
|
+
var c = Ur(l.val);
|
|
2752
2717
|
if (c.length === 0)
|
|
2753
2718
|
return this.error(m.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
|
|
2754
|
-
var b = p(
|
|
2719
|
+
var b = p(h, this.clonePosition());
|
|
2755
2720
|
a = { style: c, styleLocation: b };
|
|
2756
2721
|
}
|
|
2757
2722
|
var g = this.tryParseArgumentClose(i);
|
|
2758
2723
|
if (g.err)
|
|
2759
2724
|
return g;
|
|
2760
2725
|
var y = p(i, this.clonePosition());
|
|
2761
|
-
if (a &&
|
|
2762
|
-
var
|
|
2763
|
-
if (
|
|
2764
|
-
var
|
|
2765
|
-
return
|
|
2766
|
-
val: { type: E.number, value: n, location: y, style:
|
|
2726
|
+
if (a && Ge(a?.style, "::", 0)) {
|
|
2727
|
+
var H = Rr(a.style.slice(2));
|
|
2728
|
+
if (o === "number") {
|
|
2729
|
+
var l = this.parseNumberSkeletonFromString(H, a.styleLocation);
|
|
2730
|
+
return l.err ? l : {
|
|
2731
|
+
val: { type: E.number, value: n, location: y, style: l.val },
|
|
2767
2732
|
err: null
|
|
2768
2733
|
};
|
|
2769
2734
|
} else {
|
|
2770
|
-
if (
|
|
2735
|
+
if (H.length === 0)
|
|
2771
2736
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
|
|
2772
|
-
var
|
|
2773
|
-
this.locale && (
|
|
2737
|
+
var D = H;
|
|
2738
|
+
this.locale && (D = Tr(H, this.locale));
|
|
2774
2739
|
var c = {
|
|
2775
|
-
type:
|
|
2776
|
-
pattern:
|
|
2740
|
+
type: L.dateTime,
|
|
2741
|
+
pattern: D,
|
|
2777
2742
|
location: a.styleLocation,
|
|
2778
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2779
|
-
},
|
|
2743
|
+
parsedOptions: this.shouldParseSkeletons ? gr(D) : {}
|
|
2744
|
+
}, A = o === "date" ? E.date : E.time;
|
|
2780
2745
|
return {
|
|
2781
|
-
val: { type:
|
|
2746
|
+
val: { type: A, value: n, location: y, style: c },
|
|
2782
2747
|
err: null
|
|
2783
2748
|
};
|
|
2784
2749
|
}
|
|
2785
2750
|
}
|
|
2786
2751
|
return {
|
|
2787
2752
|
val: {
|
|
2788
|
-
type:
|
|
2753
|
+
type: o === "number" ? E.number : o === "date" ? E.date : E.time,
|
|
2789
2754
|
value: n,
|
|
2790
2755
|
location: y,
|
|
2791
|
-
style: (s = a
|
|
2756
|
+
style: (s = a?.style) !== null && s !== void 0 ? s : null
|
|
2792
2757
|
},
|
|
2793
2758
|
err: null
|
|
2794
2759
|
};
|
|
@@ -2796,49 +2761,49 @@ var Jr = (
|
|
|
2796
2761
|
case "plural":
|
|
2797
2762
|
case "selectordinal":
|
|
2798
2763
|
case "select": {
|
|
2799
|
-
var
|
|
2764
|
+
var v = this.clonePosition();
|
|
2800
2765
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2801
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(
|
|
2766
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(v, d({}, v)));
|
|
2802
2767
|
this.bumpSpace();
|
|
2803
|
-
var
|
|
2804
|
-
if (
|
|
2768
|
+
var F = this.parseIdentifierIfPossible(), S = 0;
|
|
2769
|
+
if (o !== "select" && F.value === "offset") {
|
|
2805
2770
|
if (!this.bumpIf(":"))
|
|
2806
2771
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
|
|
2807
2772
|
this.bumpSpace();
|
|
2808
|
-
var
|
|
2809
|
-
if (
|
|
2810
|
-
return
|
|
2811
|
-
this.bumpSpace(),
|
|
2773
|
+
var l = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2774
|
+
if (l.err)
|
|
2775
|
+
return l;
|
|
2776
|
+
this.bumpSpace(), F = this.parseIdentifierIfPossible(), S = l.val;
|
|
2812
2777
|
}
|
|
2813
|
-
var
|
|
2814
|
-
if (
|
|
2815
|
-
return
|
|
2778
|
+
var Z = this.tryParsePluralOrSelectOptions(t, o, r, F);
|
|
2779
|
+
if (Z.err)
|
|
2780
|
+
return Z;
|
|
2816
2781
|
var g = this.tryParseArgumentClose(i);
|
|
2817
2782
|
if (g.err)
|
|
2818
2783
|
return g;
|
|
2819
|
-
var
|
|
2820
|
-
return
|
|
2784
|
+
var Oe = p(i, this.clonePosition());
|
|
2785
|
+
return o === "select" ? {
|
|
2821
2786
|
val: {
|
|
2822
2787
|
type: E.select,
|
|
2823
2788
|
value: n,
|
|
2824
|
-
options:
|
|
2825
|
-
location:
|
|
2789
|
+
options: De(Z.val),
|
|
2790
|
+
location: Oe
|
|
2826
2791
|
},
|
|
2827
2792
|
err: null
|
|
2828
2793
|
} : {
|
|
2829
2794
|
val: {
|
|
2830
2795
|
type: E.plural,
|
|
2831
2796
|
value: n,
|
|
2832
|
-
options:
|
|
2833
|
-
offset:
|
|
2834
|
-
pluralType:
|
|
2835
|
-
location:
|
|
2797
|
+
options: De(Z.val),
|
|
2798
|
+
offset: S,
|
|
2799
|
+
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2800
|
+
location: Oe
|
|
2836
2801
|
},
|
|
2837
2802
|
err: null
|
|
2838
2803
|
};
|
|
2839
2804
|
}
|
|
2840
2805
|
default:
|
|
2841
|
-
return this.error(m.INVALID_ARGUMENT_TYPE, p(
|
|
2806
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, p(u, f));
|
|
2842
2807
|
}
|
|
2843
2808
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2844
2809
|
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -2880,34 +2845,34 @@ var Jr = (
|
|
|
2880
2845
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2881
2846
|
var n = [];
|
|
2882
2847
|
try {
|
|
2883
|
-
n =
|
|
2884
|
-
} catch
|
|
2848
|
+
n = xr(t);
|
|
2849
|
+
} catch {
|
|
2885
2850
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
2886
2851
|
}
|
|
2887
2852
|
return {
|
|
2888
2853
|
val: {
|
|
2889
|
-
type:
|
|
2854
|
+
type: L.number,
|
|
2890
2855
|
tokens: n,
|
|
2891
2856
|
location: r,
|
|
2892
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2857
|
+
parsedOptions: this.shouldParseSkeletons ? Hr(n) : {}
|
|
2893
2858
|
},
|
|
2894
2859
|
err: null
|
|
2895
2860
|
};
|
|
2896
2861
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2897
|
-
for (var s,
|
|
2862
|
+
for (var s, u = !1, o = [], f = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
|
|
2898
2863
|
if (a.length === 0) {
|
|
2899
|
-
var
|
|
2864
|
+
var l = this.clonePosition();
|
|
2900
2865
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2901
2866
|
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2902
2867
|
if (c.err)
|
|
2903
2868
|
return c;
|
|
2904
|
-
|
|
2869
|
+
h = p(l, this.clonePosition()), a = this.message.slice(l.offset, this.offset());
|
|
2905
2870
|
} else
|
|
2906
2871
|
break;
|
|
2907
2872
|
}
|
|
2908
|
-
if (
|
|
2909
|
-
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
2910
|
-
a === "other" && (
|
|
2873
|
+
if (f.has(a))
|
|
2874
|
+
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2875
|
+
a === "other" && (u = !0), this.bumpSpace();
|
|
2911
2876
|
var b = this.clonePosition();
|
|
2912
2877
|
if (!this.bumpIf("{"))
|
|
2913
2878
|
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
|
|
@@ -2917,27 +2882,27 @@ var Jr = (
|
|
|
2917
2882
|
var y = this.tryParseArgumentClose(b);
|
|
2918
2883
|
if (y.err)
|
|
2919
2884
|
return y;
|
|
2920
|
-
|
|
2885
|
+
o.push([
|
|
2921
2886
|
a,
|
|
2922
2887
|
{
|
|
2923
2888
|
value: g.val,
|
|
2924
2889
|
location: p(b, this.clonePosition())
|
|
2925
2890
|
}
|
|
2926
|
-
]),
|
|
2891
|
+
]), f.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
|
|
2927
2892
|
}
|
|
2928
|
-
return
|
|
2893
|
+
return o.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(m.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
2929
2894
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2930
2895
|
var n = 1, i = this.clonePosition();
|
|
2931
2896
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
2932
|
-
for (var s = !1,
|
|
2933
|
-
var
|
|
2934
|
-
if (
|
|
2935
|
-
s = !0,
|
|
2897
|
+
for (var s = !1, u = 0; !this.isEOF(); ) {
|
|
2898
|
+
var o = this.char();
|
|
2899
|
+
if (o >= 48 && o <= 57)
|
|
2900
|
+
s = !0, u = u * 10 + (o - 48), this.bump();
|
|
2936
2901
|
else
|
|
2937
2902
|
break;
|
|
2938
2903
|
}
|
|
2939
|
-
var
|
|
2940
|
-
return s ? (
|
|
2904
|
+
var f = p(i, this.clonePosition());
|
|
2905
|
+
return s ? (u *= n, Mr(u) ? { val: u, err: null } : this.error(r, f)) : this.error(t, f);
|
|
2941
2906
|
}, e.prototype.offset = function() {
|
|
2942
2907
|
return this.position.offset;
|
|
2943
2908
|
}, e.prototype.isEOF = function() {
|
|
@@ -2952,7 +2917,7 @@ var Jr = (
|
|
|
2952
2917
|
var t = this.position.offset;
|
|
2953
2918
|
if (t >= this.message.length)
|
|
2954
2919
|
throw Error("out of bound");
|
|
2955
|
-
var r =
|
|
2920
|
+
var r = dt(this.message, t);
|
|
2956
2921
|
if (r === void 0)
|
|
2957
2922
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2958
2923
|
return r;
|
|
@@ -2971,7 +2936,7 @@ var Jr = (
|
|
|
2971
2936
|
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);
|
|
2972
2937
|
}
|
|
2973
2938
|
}, e.prototype.bumpIf = function(t) {
|
|
2974
|
-
if (
|
|
2939
|
+
if (Ge(this.message, t, this.offset())) {
|
|
2975
2940
|
for (var r = 0; r < t.length; r++)
|
|
2976
2941
|
this.bump();
|
|
2977
2942
|
return !0;
|
|
@@ -2993,56 +2958,56 @@ var Jr = (
|
|
|
2993
2958
|
break;
|
|
2994
2959
|
}
|
|
2995
2960
|
}, e.prototype.bumpSpace = function() {
|
|
2996
|
-
for (; !this.isEOF() &&
|
|
2961
|
+
for (; !this.isEOF() && gt(this.char()); )
|
|
2997
2962
|
this.bump();
|
|
2998
2963
|
}, e.prototype.peek = function() {
|
|
2999
2964
|
if (this.isEOF())
|
|
3000
2965
|
return null;
|
|
3001
2966
|
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3002
|
-
return n
|
|
2967
|
+
return n ?? null;
|
|
3003
2968
|
}, e;
|
|
3004
2969
|
}()
|
|
3005
2970
|
);
|
|
3006
|
-
function
|
|
2971
|
+
function ye(e) {
|
|
3007
2972
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3008
2973
|
}
|
|
3009
|
-
function
|
|
3010
|
-
return
|
|
2974
|
+
function Dr(e) {
|
|
2975
|
+
return ye(e) || e === 47;
|
|
3011
2976
|
}
|
|
3012
|
-
function
|
|
2977
|
+
function Fr(e) {
|
|
3013
2978
|
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;
|
|
3014
2979
|
}
|
|
3015
|
-
function
|
|
2980
|
+
function gt(e) {
|
|
3016
2981
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3017
2982
|
}
|
|
3018
|
-
function
|
|
2983
|
+
function jr(e) {
|
|
3019
2984
|
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;
|
|
3020
2985
|
}
|
|
3021
|
-
function
|
|
2986
|
+
function _e(e) {
|
|
3022
2987
|
e.forEach(function(t) {
|
|
3023
|
-
if (delete t.location,
|
|
2988
|
+
if (delete t.location, at(t) || ut(t))
|
|
3024
2989
|
for (var r in t.options)
|
|
3025
|
-
delete t.options[r].location,
|
|
3026
|
-
else
|
|
2990
|
+
delete t.options[r].location, _e(t.options[r].value);
|
|
2991
|
+
else it(t) && lt(t.style) || (st(t) || ot(t)) && be(t.style) ? delete t.style.location : ht(t) && _e(t.children);
|
|
3027
2992
|
});
|
|
3028
2993
|
}
|
|
3029
|
-
function
|
|
2994
|
+
function Vr(e, t) {
|
|
3030
2995
|
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3031
|
-
var r = new
|
|
2996
|
+
var r = new Gr(e, t).parse();
|
|
3032
2997
|
if (r.err) {
|
|
3033
2998
|
var n = SyntaxError(m[r.err.kind]);
|
|
3034
2999
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3035
3000
|
}
|
|
3036
|
-
return t
|
|
3001
|
+
return t?.captureLocation || _e(r.val), r.val;
|
|
3037
3002
|
}
|
|
3038
|
-
var
|
|
3003
|
+
var M;
|
|
3039
3004
|
(function(e) {
|
|
3040
3005
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3041
|
-
})(
|
|
3042
|
-
var
|
|
3006
|
+
})(M || (M = {}));
|
|
3007
|
+
var ne = (
|
|
3043
3008
|
/** @class */
|
|
3044
3009
|
function(e) {
|
|
3045
|
-
|
|
3010
|
+
re(t, e);
|
|
3046
3011
|
function t(r, n, i) {
|
|
3047
3012
|
var s = e.call(this, r) || this;
|
|
3048
3013
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3051,155 +3016,155 @@ var ie = (
|
|
|
3051
3016
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3052
3017
|
}, t;
|
|
3053
3018
|
}(Error)
|
|
3054
|
-
),
|
|
3019
|
+
), je = (
|
|
3055
3020
|
/** @class */
|
|
3056
3021
|
function(e) {
|
|
3057
|
-
|
|
3022
|
+
re(t, e);
|
|
3058
3023
|
function t(r, n, i, s) {
|
|
3059
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3024
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), M.INVALID_VALUE, s) || this;
|
|
3060
3025
|
}
|
|
3061
3026
|
return t;
|
|
3062
|
-
}(
|
|
3063
|
-
),
|
|
3027
|
+
}(ne)
|
|
3028
|
+
), kr = (
|
|
3064
3029
|
/** @class */
|
|
3065
3030
|
function(e) {
|
|
3066
|
-
|
|
3031
|
+
re(t, e);
|
|
3067
3032
|
function t(r, n, i) {
|
|
3068
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3033
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), M.INVALID_VALUE, i) || this;
|
|
3069
3034
|
}
|
|
3070
3035
|
return t;
|
|
3071
|
-
}(
|
|
3072
|
-
),
|
|
3036
|
+
}(ne)
|
|
3037
|
+
), Xr = (
|
|
3073
3038
|
/** @class */
|
|
3074
3039
|
function(e) {
|
|
3075
|
-
|
|
3040
|
+
re(t, e);
|
|
3076
3041
|
function t(r, n) {
|
|
3077
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3042
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), M.MISSING_VALUE, n) || this;
|
|
3078
3043
|
}
|
|
3079
3044
|
return t;
|
|
3080
|
-
}(
|
|
3045
|
+
}(ne)
|
|
3081
3046
|
), x;
|
|
3082
3047
|
(function(e) {
|
|
3083
3048
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3084
3049
|
})(x || (x = {}));
|
|
3085
|
-
function
|
|
3050
|
+
function Wr(e) {
|
|
3086
3051
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3087
3052
|
var n = t[t.length - 1];
|
|
3088
3053
|
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3089
3054
|
}, []);
|
|
3090
3055
|
}
|
|
3091
|
-
function
|
|
3056
|
+
function zr(e) {
|
|
3092
3057
|
return typeof e == "function";
|
|
3093
3058
|
}
|
|
3094
|
-
function
|
|
3095
|
-
if (e.length === 1 &&
|
|
3059
|
+
function q(e, t, r, n, i, s, u) {
|
|
3060
|
+
if (e.length === 1 && Me(e[0]))
|
|
3096
3061
|
return [
|
|
3097
3062
|
{
|
|
3098
3063
|
type: x.literal,
|
|
3099
3064
|
value: e[0].value
|
|
3100
3065
|
}
|
|
3101
3066
|
];
|
|
3102
|
-
for (var
|
|
3103
|
-
var
|
|
3104
|
-
if (
|
|
3105
|
-
|
|
3067
|
+
for (var o = [], f = 0, a = e; f < a.length; f++) {
|
|
3068
|
+
var h = a[f];
|
|
3069
|
+
if (Me(h)) {
|
|
3070
|
+
o.push({
|
|
3106
3071
|
type: x.literal,
|
|
3107
|
-
value:
|
|
3072
|
+
value: h.value
|
|
3108
3073
|
});
|
|
3109
3074
|
continue;
|
|
3110
3075
|
}
|
|
3111
|
-
if (
|
|
3112
|
-
typeof s == "number" &&
|
|
3076
|
+
if (dr(h)) {
|
|
3077
|
+
typeof s == "number" && o.push({
|
|
3113
3078
|
type: x.literal,
|
|
3114
3079
|
value: r.getNumberFormat(t).format(s)
|
|
3115
3080
|
});
|
|
3116
3081
|
continue;
|
|
3117
3082
|
}
|
|
3118
|
-
var
|
|
3119
|
-
if (!(i &&
|
|
3120
|
-
throw new
|
|
3121
|
-
var c = i[
|
|
3122
|
-
if (
|
|
3123
|
-
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""),
|
|
3083
|
+
var l = h.value;
|
|
3084
|
+
if (!(i && l in i))
|
|
3085
|
+
throw new Xr(l, u);
|
|
3086
|
+
var c = i[l];
|
|
3087
|
+
if (pr(h)) {
|
|
3088
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3124
3089
|
type: typeof c == "string" ? x.literal : x.object,
|
|
3125
3090
|
value: c
|
|
3126
3091
|
});
|
|
3127
3092
|
continue;
|
|
3128
3093
|
}
|
|
3129
|
-
if (
|
|
3130
|
-
var b = typeof
|
|
3131
|
-
|
|
3094
|
+
if (st(h)) {
|
|
3095
|
+
var b = typeof h.style == "string" ? n.date[h.style] : be(h.style) ? h.style.parsedOptions : void 0;
|
|
3096
|
+
o.push({
|
|
3132
3097
|
type: x.literal,
|
|
3133
3098
|
value: r.getDateTimeFormat(t, b).format(c)
|
|
3134
3099
|
});
|
|
3135
3100
|
continue;
|
|
3136
3101
|
}
|
|
3137
|
-
if (
|
|
3138
|
-
var b = typeof
|
|
3139
|
-
|
|
3102
|
+
if (ot(h)) {
|
|
3103
|
+
var b = typeof h.style == "string" ? n.time[h.style] : be(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3104
|
+
o.push({
|
|
3140
3105
|
type: x.literal,
|
|
3141
3106
|
value: r.getDateTimeFormat(t, b).format(c)
|
|
3142
3107
|
});
|
|
3143
3108
|
continue;
|
|
3144
3109
|
}
|
|
3145
|
-
if (
|
|
3146
|
-
var b = typeof
|
|
3147
|
-
b && b.scale && (c = c * (b.scale || 1)),
|
|
3110
|
+
if (it(h)) {
|
|
3111
|
+
var b = typeof h.style == "string" ? n.number[h.style] : lt(h.style) ? h.style.parsedOptions : void 0;
|
|
3112
|
+
b && b.scale && (c = c * (b.scale || 1)), o.push({
|
|
3148
3113
|
type: x.literal,
|
|
3149
3114
|
value: r.getNumberFormat(t, b).format(c)
|
|
3150
3115
|
});
|
|
3151
3116
|
continue;
|
|
3152
3117
|
}
|
|
3153
|
-
if (
|
|
3154
|
-
var g =
|
|
3155
|
-
if (!
|
|
3156
|
-
throw new
|
|
3157
|
-
var
|
|
3158
|
-
return
|
|
3118
|
+
if (ht(h)) {
|
|
3119
|
+
var g = h.children, y = h.value, H = i[y];
|
|
3120
|
+
if (!zr(H))
|
|
3121
|
+
throw new kr(y, "function", u);
|
|
3122
|
+
var D = q(g, t, r, n, i, s), A = H(D.map(function(S) {
|
|
3123
|
+
return S.value;
|
|
3159
3124
|
}));
|
|
3160
|
-
Array.isArray(
|
|
3125
|
+
Array.isArray(A) || (A = [A]), o.push.apply(o, A.map(function(S) {
|
|
3161
3126
|
return {
|
|
3162
|
-
type: typeof
|
|
3163
|
-
value:
|
|
3127
|
+
type: typeof S == "string" ? x.literal : x.object,
|
|
3128
|
+
value: S
|
|
3164
3129
|
};
|
|
3165
3130
|
}));
|
|
3166
3131
|
}
|
|
3167
|
-
if (
|
|
3168
|
-
var
|
|
3169
|
-
if (!
|
|
3170
|
-
throw new
|
|
3171
|
-
|
|
3132
|
+
if (at(h)) {
|
|
3133
|
+
var v = h.options[c] || h.options.other;
|
|
3134
|
+
if (!v)
|
|
3135
|
+
throw new je(h.value, c, Object.keys(h.options), u);
|
|
3136
|
+
o.push.apply(o, q(v.value, t, r, n, i));
|
|
3172
3137
|
continue;
|
|
3173
3138
|
}
|
|
3174
|
-
if (
|
|
3175
|
-
var
|
|
3176
|
-
if (!
|
|
3139
|
+
if (ut(h)) {
|
|
3140
|
+
var v = h.options["=".concat(c)];
|
|
3141
|
+
if (!v) {
|
|
3177
3142
|
if (!Intl.PluralRules)
|
|
3178
|
-
throw new
|
|
3143
|
+
throw new ne(`Intl.PluralRules is not available in this environment.
|
|
3179
3144
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3180
|
-
`,
|
|
3181
|
-
var
|
|
3182
|
-
|
|
3145
|
+
`, M.MISSING_INTL_API, u);
|
|
3146
|
+
var F = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3147
|
+
v = h.options[F] || h.options.other;
|
|
3183
3148
|
}
|
|
3184
|
-
if (!
|
|
3185
|
-
throw new
|
|
3186
|
-
|
|
3149
|
+
if (!v)
|
|
3150
|
+
throw new je(h.value, c, Object.keys(h.options), u);
|
|
3151
|
+
o.push.apply(o, q(v.value, t, r, n, i, c - (h.offset || 0)));
|
|
3187
3152
|
continue;
|
|
3188
3153
|
}
|
|
3189
3154
|
}
|
|
3190
|
-
return
|
|
3155
|
+
return Wr(o);
|
|
3191
3156
|
}
|
|
3192
|
-
function
|
|
3157
|
+
function Zr(e, t) {
|
|
3193
3158
|
return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3194
3159
|
return r[n] = d(d({}, e[n]), t[n] || {}), r;
|
|
3195
3160
|
}, {})) : e;
|
|
3196
3161
|
}
|
|
3197
|
-
function
|
|
3162
|
+
function Qr(e, t) {
|
|
3198
3163
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3199
|
-
return r[n] =
|
|
3164
|
+
return r[n] = Zr(e[n], t[n]), r;
|
|
3200
3165
|
}, d({}, e)) : e;
|
|
3201
3166
|
}
|
|
3202
|
-
function
|
|
3167
|
+
function fe(e) {
|
|
3203
3168
|
return {
|
|
3204
3169
|
create: function() {
|
|
3205
3170
|
return {
|
|
@@ -3213,39 +3178,39 @@ function me(e) {
|
|
|
3213
3178
|
}
|
|
3214
3179
|
};
|
|
3215
3180
|
}
|
|
3216
|
-
function
|
|
3181
|
+
function Jr(e) {
|
|
3217
3182
|
return e === void 0 && (e = {
|
|
3218
3183
|
number: {},
|
|
3219
3184
|
dateTime: {},
|
|
3220
3185
|
pluralRules: {}
|
|
3221
3186
|
}), {
|
|
3222
|
-
getNumberFormat:
|
|
3187
|
+
getNumberFormat: ue(function() {
|
|
3223
3188
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3224
3189
|
r[n] = arguments[n];
|
|
3225
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3190
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ae([void 0], r, !1)))();
|
|
3226
3191
|
}, {
|
|
3227
|
-
cache:
|
|
3228
|
-
strategy:
|
|
3192
|
+
cache: fe(e.number),
|
|
3193
|
+
strategy: he.variadic
|
|
3229
3194
|
}),
|
|
3230
|
-
getDateTimeFormat:
|
|
3195
|
+
getDateTimeFormat: ue(function() {
|
|
3231
3196
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3232
3197
|
r[n] = arguments[n];
|
|
3233
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3198
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ae([void 0], r, !1)))();
|
|
3234
3199
|
}, {
|
|
3235
|
-
cache:
|
|
3236
|
-
strategy:
|
|
3200
|
+
cache: fe(e.dateTime),
|
|
3201
|
+
strategy: he.variadic
|
|
3237
3202
|
}),
|
|
3238
|
-
getPluralRules:
|
|
3203
|
+
getPluralRules: ue(function() {
|
|
3239
3204
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3240
3205
|
r[n] = arguments[n];
|
|
3241
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3206
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ae([void 0], r, !1)))();
|
|
3242
3207
|
}, {
|
|
3243
|
-
cache:
|
|
3244
|
-
strategy:
|
|
3208
|
+
cache: fe(e.pluralRules),
|
|
3209
|
+
strategy: he.variadic
|
|
3245
3210
|
})
|
|
3246
3211
|
};
|
|
3247
3212
|
}
|
|
3248
|
-
var
|
|
3213
|
+
var qr = (
|
|
3249
3214
|
/** @class */
|
|
3250
3215
|
function() {
|
|
3251
3216
|
function e(t, r, n, i) {
|
|
@@ -3255,35 +3220,35 @@ var un = (
|
|
|
3255
3220
|
number: {},
|
|
3256
3221
|
dateTime: {},
|
|
3257
3222
|
pluralRules: {}
|
|
3258
|
-
}, this.format = function(
|
|
3259
|
-
var a = s.formatToParts(
|
|
3223
|
+
}, this.format = function(f) {
|
|
3224
|
+
var a = s.formatToParts(f);
|
|
3260
3225
|
if (a.length === 1)
|
|
3261
3226
|
return a[0].value;
|
|
3262
|
-
var
|
|
3263
|
-
return !
|
|
3227
|
+
var h = a.reduce(function(l, c) {
|
|
3228
|
+
return !l.length || c.type !== x.literal || typeof l[l.length - 1] != "string" ? l.push(c.value) : l[l.length - 1] += c.value, l;
|
|
3264
3229
|
}, []);
|
|
3265
|
-
return
|
|
3266
|
-
}, this.formatToParts = function(
|
|
3267
|
-
return
|
|
3230
|
+
return h.length <= 1 ? h[0] || "" : h;
|
|
3231
|
+
}, this.formatToParts = function(f) {
|
|
3232
|
+
return q(s.ast, s.locales, s.formatters, s.formats, f, void 0, s.message);
|
|
3268
3233
|
}, this.resolvedOptions = function() {
|
|
3269
|
-
var
|
|
3234
|
+
var f;
|
|
3270
3235
|
return {
|
|
3271
|
-
locale: ((
|
|
3236
|
+
locale: ((f = s.resolvedLocale) === null || f === void 0 ? void 0 : f.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
3272
3237
|
};
|
|
3273
3238
|
}, this.getAst = function() {
|
|
3274
3239
|
return s.ast;
|
|
3275
3240
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3276
3241
|
if (this.message = t, !e.__parse)
|
|
3277
3242
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3278
|
-
var
|
|
3279
|
-
|
|
3280
|
-
var
|
|
3281
|
-
this.ast = e.__parse(t, d(d({},
|
|
3243
|
+
var u = i || {};
|
|
3244
|
+
u.formatters;
|
|
3245
|
+
var o = or(u, ["formatters"]);
|
|
3246
|
+
this.ast = e.__parse(t, d(d({}, o), { locale: this.resolvedLocale }));
|
|
3282
3247
|
} else
|
|
3283
3248
|
this.ast = t;
|
|
3284
3249
|
if (!Array.isArray(this.ast))
|
|
3285
3250
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3286
|
-
this.formats =
|
|
3251
|
+
this.formats = Qr(e.formats, n), this.formatters = i && i.formatters || Jr(this.formatterCache);
|
|
3287
3252
|
}
|
|
3288
3253
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3289
3254
|
get: function() {
|
|
@@ -3292,11 +3257,11 @@ var un = (
|
|
|
3292
3257
|
enumerable: !1,
|
|
3293
3258
|
configurable: !0
|
|
3294
3259
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3295
|
-
if (typeof Intl.Locale
|
|
3260
|
+
if (!(typeof Intl.Locale > "u")) {
|
|
3296
3261
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3297
3262
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3298
3263
|
}
|
|
3299
|
-
}, e.__parse =
|
|
3264
|
+
}, e.__parse = Vr, e.formats = {
|
|
3300
3265
|
number: {
|
|
3301
3266
|
integer: {
|
|
3302
3267
|
maximumFractionDigits: 0
|
|
@@ -3357,7 +3322,7 @@ var un = (
|
|
|
3357
3322
|
}, e;
|
|
3358
3323
|
}()
|
|
3359
3324
|
);
|
|
3360
|
-
function
|
|
3325
|
+
function Yr(e, t) {
|
|
3361
3326
|
if (t == null)
|
|
3362
3327
|
return;
|
|
3363
3328
|
if (t in e)
|
|
@@ -3378,92 +3343,92 @@ function ln(e, t) {
|
|
|
3378
3343
|
n = void 0;
|
|
3379
3344
|
return n;
|
|
3380
3345
|
}
|
|
3381
|
-
const
|
|
3346
|
+
const T = {}, Kr = (e, t, r) => r && (t in T || (T[t] = {}), e in T[t] || (T[t][e] = r), r), Et = (e, t) => {
|
|
3382
3347
|
if (t == null)
|
|
3383
3348
|
return;
|
|
3384
|
-
if (t in
|
|
3385
|
-
return
|
|
3386
|
-
const r =
|
|
3349
|
+
if (t in T && e in T[t])
|
|
3350
|
+
return T[t][e];
|
|
3351
|
+
const r = ie(t);
|
|
3387
3352
|
for (let n = 0; n < r.length; n++) {
|
|
3388
|
-
const i = r[n], s =
|
|
3353
|
+
const i = r[n], s = tn(i, e);
|
|
3389
3354
|
if (s)
|
|
3390
|
-
return
|
|
3355
|
+
return Kr(e, t, s);
|
|
3391
3356
|
}
|
|
3392
3357
|
};
|
|
3393
|
-
let
|
|
3394
|
-
const
|
|
3395
|
-
function
|
|
3396
|
-
return
|
|
3358
|
+
let Pe;
|
|
3359
|
+
const z = te({});
|
|
3360
|
+
function en(e) {
|
|
3361
|
+
return Pe[e] || null;
|
|
3397
3362
|
}
|
|
3398
|
-
function
|
|
3399
|
-
return e in
|
|
3363
|
+
function xt(e) {
|
|
3364
|
+
return e in Pe;
|
|
3400
3365
|
}
|
|
3401
|
-
function
|
|
3402
|
-
if (!
|
|
3366
|
+
function tn(e, t) {
|
|
3367
|
+
if (!xt(e))
|
|
3403
3368
|
return null;
|
|
3404
|
-
const r =
|
|
3405
|
-
return
|
|
3369
|
+
const r = en(e);
|
|
3370
|
+
return Yr(r, t);
|
|
3406
3371
|
}
|
|
3407
|
-
function
|
|
3372
|
+
function rn(e) {
|
|
3408
3373
|
if (e == null)
|
|
3409
3374
|
return;
|
|
3410
|
-
const t =
|
|
3375
|
+
const t = ie(e);
|
|
3411
3376
|
for (let r = 0; r < t.length; r++) {
|
|
3412
3377
|
const n = t[r];
|
|
3413
|
-
if (
|
|
3378
|
+
if (xt(n))
|
|
3414
3379
|
return n;
|
|
3415
3380
|
}
|
|
3416
3381
|
}
|
|
3417
|
-
function
|
|
3418
|
-
delete
|
|
3382
|
+
function yt(e, ...t) {
|
|
3383
|
+
delete T[e], z.update((r) => (r[e] = sr.all([r[e] || {}, ...t]), r));
|
|
3419
3384
|
}
|
|
3420
|
-
|
|
3421
|
-
[
|
|
3385
|
+
R(
|
|
3386
|
+
[z],
|
|
3422
3387
|
([e]) => Object.keys(e)
|
|
3423
3388
|
);
|
|
3424
|
-
|
|
3425
|
-
const
|
|
3426
|
-
function
|
|
3427
|
-
|
|
3389
|
+
z.subscribe((e) => Pe = e);
|
|
3390
|
+
const Y = {};
|
|
3391
|
+
function nn(e, t) {
|
|
3392
|
+
Y[e].delete(t), Y[e].size === 0 && delete Y[e];
|
|
3428
3393
|
}
|
|
3429
|
-
function
|
|
3430
|
-
return
|
|
3394
|
+
function _t(e) {
|
|
3395
|
+
return Y[e];
|
|
3431
3396
|
}
|
|
3432
|
-
function
|
|
3433
|
-
return
|
|
3434
|
-
const r =
|
|
3397
|
+
function sn(e) {
|
|
3398
|
+
return ie(e).map((t) => {
|
|
3399
|
+
const r = _t(t);
|
|
3435
3400
|
return [t, r ? [...r] : []];
|
|
3436
3401
|
}).filter(([, t]) => t.length > 0);
|
|
3437
3402
|
}
|
|
3438
|
-
function
|
|
3439
|
-
return e == null ? !1 :
|
|
3403
|
+
function ve(e) {
|
|
3404
|
+
return e == null ? !1 : ie(e).some(
|
|
3440
3405
|
(t) => {
|
|
3441
3406
|
var r;
|
|
3442
|
-
return (r =
|
|
3407
|
+
return (r = _t(t)) == null ? void 0 : r.size;
|
|
3443
3408
|
}
|
|
3444
3409
|
);
|
|
3445
3410
|
}
|
|
3446
|
-
function
|
|
3411
|
+
function on(e, t) {
|
|
3447
3412
|
return Promise.all(
|
|
3448
|
-
t.map((n) => (
|
|
3449
|
-
).then((n) =>
|
|
3413
|
+
t.map((n) => (nn(e, n), n().then((i) => i.default || i)))
|
|
3414
|
+
).then((n) => yt(e, ...n));
|
|
3450
3415
|
}
|
|
3451
|
-
const
|
|
3452
|
-
function
|
|
3453
|
-
if (!
|
|
3454
|
-
return e in
|
|
3455
|
-
const t =
|
|
3456
|
-
return
|
|
3416
|
+
const j = {};
|
|
3417
|
+
function vt(e) {
|
|
3418
|
+
if (!ve(e))
|
|
3419
|
+
return e in j ? j[e] : Promise.resolve();
|
|
3420
|
+
const t = sn(e);
|
|
3421
|
+
return j[e] = Promise.all(
|
|
3457
3422
|
t.map(
|
|
3458
|
-
([r, n]) =>
|
|
3423
|
+
([r, n]) => on(r, n)
|
|
3459
3424
|
)
|
|
3460
3425
|
).then(() => {
|
|
3461
|
-
if (
|
|
3462
|
-
return
|
|
3463
|
-
delete
|
|
3464
|
-
}),
|
|
3426
|
+
if (ve(e))
|
|
3427
|
+
return vt(e);
|
|
3428
|
+
delete j[e];
|
|
3429
|
+
}), j[e];
|
|
3465
3430
|
}
|
|
3466
|
-
const
|
|
3431
|
+
const an = {
|
|
3467
3432
|
number: {
|
|
3468
3433
|
scientific: { notation: "scientific" },
|
|
3469
3434
|
engineering: { notation: "engineering" },
|
|
@@ -3492,178 +3457,178 @@ const En = {
|
|
|
3492
3457
|
timeZoneName: "short"
|
|
3493
3458
|
}
|
|
3494
3459
|
}
|
|
3495
|
-
},
|
|
3460
|
+
}, un = {
|
|
3496
3461
|
fallbackLocale: null,
|
|
3497
3462
|
loadingDelay: 200,
|
|
3498
|
-
formats:
|
|
3463
|
+
formats: an,
|
|
3499
3464
|
warnOnMissingMessages: !0,
|
|
3500
3465
|
handleMissingMessage: void 0,
|
|
3501
3466
|
ignoreTag: !0
|
|
3502
|
-
},
|
|
3503
|
-
function
|
|
3504
|
-
return
|
|
3505
|
-
}
|
|
3506
|
-
const
|
|
3507
|
-
var
|
|
3508
|
-
for (var r in t
|
|
3509
|
-
|
|
3510
|
-
if (
|
|
3511
|
-
for (var r of
|
|
3512
|
-
|
|
3467
|
+
}, hn = un;
|
|
3468
|
+
function C() {
|
|
3469
|
+
return hn;
|
|
3470
|
+
}
|
|
3471
|
+
const ce = te(!1);
|
|
3472
|
+
var ln = Object.defineProperty, fn = Object.defineProperties, cn = Object.getOwnPropertyDescriptors, Ve = Object.getOwnPropertySymbols, mn = Object.prototype.hasOwnProperty, pn = Object.prototype.propertyIsEnumerable, ke = (e, t, r) => t in e ? ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, dn = (e, t) => {
|
|
3473
|
+
for (var r in t)
|
|
3474
|
+
mn.call(t, r) && ke(e, r, t[r]);
|
|
3475
|
+
if (Ve)
|
|
3476
|
+
for (var r of Ve(t))
|
|
3477
|
+
pn.call(t, r) && ke(e, r, t[r]);
|
|
3513
3478
|
return e;
|
|
3514
|
-
},
|
|
3515
|
-
let
|
|
3516
|
-
const
|
|
3517
|
-
function
|
|
3479
|
+
}, bn = (e, t) => fn(e, cn(t));
|
|
3480
|
+
let He;
|
|
3481
|
+
const K = te(null);
|
|
3482
|
+
function Xe(e) {
|
|
3518
3483
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3519
3484
|
}
|
|
3520
|
-
function
|
|
3521
|
-
const r =
|
|
3522
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3485
|
+
function ie(e, t = C().fallbackLocale) {
|
|
3486
|
+
const r = Xe(e);
|
|
3487
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Xe(t)])] : r;
|
|
3523
3488
|
}
|
|
3524
|
-
function
|
|
3525
|
-
return
|
|
3489
|
+
function B() {
|
|
3490
|
+
return He ?? void 0;
|
|
3526
3491
|
}
|
|
3527
|
-
|
|
3528
|
-
|
|
3492
|
+
K.subscribe((e) => {
|
|
3493
|
+
He = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3529
3494
|
});
|
|
3530
|
-
const
|
|
3531
|
-
if (e &&
|
|
3532
|
-
const { loadingDelay: t } =
|
|
3495
|
+
const gn = (e) => {
|
|
3496
|
+
if (e && rn(e) && ve(e)) {
|
|
3497
|
+
const { loadingDelay: t } = C();
|
|
3533
3498
|
let r;
|
|
3534
|
-
return typeof window
|
|
3535
|
-
() =>
|
|
3499
|
+
return typeof window < "u" && B() != null && t ? r = window.setTimeout(
|
|
3500
|
+
() => ce.set(!0),
|
|
3536
3501
|
t
|
|
3537
|
-
) :
|
|
3538
|
-
|
|
3502
|
+
) : ce.set(!0), vt(e).then(() => {
|
|
3503
|
+
K.set(e);
|
|
3539
3504
|
}).finally(() => {
|
|
3540
|
-
clearTimeout(r),
|
|
3505
|
+
clearTimeout(r), ce.set(!1);
|
|
3541
3506
|
});
|
|
3542
3507
|
}
|
|
3543
|
-
return
|
|
3544
|
-
},
|
|
3545
|
-
set:
|
|
3546
|
-
}),
|
|
3508
|
+
return K.set(e);
|
|
3509
|
+
}, U = bn(dn({}, K), {
|
|
3510
|
+
set: gn
|
|
3511
|
+
}), se = (e) => {
|
|
3547
3512
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3548
3513
|
return (n) => {
|
|
3549
3514
|
const i = JSON.stringify(n);
|
|
3550
3515
|
return i in t ? t[i] : t[i] = e(n);
|
|
3551
3516
|
};
|
|
3552
3517
|
};
|
|
3553
|
-
var
|
|
3518
|
+
var En = Object.defineProperty, ee = Object.getOwnPropertySymbols, Ht = Object.prototype.hasOwnProperty, Tt = Object.prototype.propertyIsEnumerable, We = (e, t, r) => t in e ? En(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ne = (e, t) => {
|
|
3554
3519
|
for (var r in t || (t = {}))
|
|
3555
|
-
|
|
3556
|
-
if (
|
|
3557
|
-
for (var r of
|
|
3558
|
-
|
|
3520
|
+
Ht.call(t, r) && We(e, r, t[r]);
|
|
3521
|
+
if (ee)
|
|
3522
|
+
for (var r of ee(t))
|
|
3523
|
+
Tt.call(t, r) && We(e, r, t[r]);
|
|
3559
3524
|
return e;
|
|
3560
|
-
},
|
|
3525
|
+
}, G = (e, t) => {
|
|
3561
3526
|
var r = {};
|
|
3562
3527
|
for (var n in e)
|
|
3563
|
-
|
|
3564
|
-
if (e != null &&
|
|
3565
|
-
for (var n of
|
|
3566
|
-
t.indexOf(n) < 0 &&
|
|
3528
|
+
Ht.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3529
|
+
if (e != null && ee)
|
|
3530
|
+
for (var n of ee(e))
|
|
3531
|
+
t.indexOf(n) < 0 && Tt.call(e, n) && (r[n] = e[n]);
|
|
3567
3532
|
return r;
|
|
3568
3533
|
};
|
|
3569
|
-
const
|
|
3570
|
-
const { formats: r } =
|
|
3534
|
+
const X = (e, t) => {
|
|
3535
|
+
const { formats: r } = C();
|
|
3571
3536
|
if (e in r && t in r[e])
|
|
3572
3537
|
return r[e][t];
|
|
3573
3538
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3574
|
-
},
|
|
3539
|
+
}, xn = se(
|
|
3575
3540
|
(e) => {
|
|
3576
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3541
|
+
var t = e, { locale: r, format: n } = t, i = G(t, ["locale", "format"]);
|
|
3577
3542
|
if (r == null)
|
|
3578
3543
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3579
|
-
return n && (i =
|
|
3544
|
+
return n && (i = X("number", n)), new Intl.NumberFormat(r, i);
|
|
3580
3545
|
}
|
|
3581
|
-
),
|
|
3546
|
+
), yn = se(
|
|
3582
3547
|
(e) => {
|
|
3583
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3548
|
+
var t = e, { locale: r, format: n } = t, i = G(t, ["locale", "format"]);
|
|
3584
3549
|
if (r == null)
|
|
3585
3550
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3586
|
-
return n ? i =
|
|
3551
|
+
return n ? i = X("date", n) : Object.keys(i).length === 0 && (i = X("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3587
3552
|
}
|
|
3588
|
-
),
|
|
3553
|
+
), _n = se(
|
|
3589
3554
|
(e) => {
|
|
3590
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3555
|
+
var t = e, { locale: r, format: n } = t, i = G(t, ["locale", "format"]);
|
|
3591
3556
|
if (r == null)
|
|
3592
3557
|
throw new Error(
|
|
3593
3558
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3594
3559
|
);
|
|
3595
|
-
return n ? i =
|
|
3560
|
+
return n ? i = X("time", n) : Object.keys(i).length === 0 && (i = X("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3596
3561
|
}
|
|
3597
|
-
),
|
|
3562
|
+
), vn = (e = {}) => {
|
|
3598
3563
|
var t = e, {
|
|
3599
|
-
locale: r =
|
|
3600
|
-
} = t, n =
|
|
3564
|
+
locale: r = B()
|
|
3565
|
+
} = t, n = G(t, [
|
|
3601
3566
|
"locale"
|
|
3602
3567
|
]);
|
|
3603
|
-
return
|
|
3604
|
-
},
|
|
3568
|
+
return xn(Ne({ locale: r }, n));
|
|
3569
|
+
}, Hn = (e = {}) => {
|
|
3605
3570
|
var t = e, {
|
|
3606
|
-
locale: r =
|
|
3607
|
-
} = t, n =
|
|
3571
|
+
locale: r = B()
|
|
3572
|
+
} = t, n = G(t, [
|
|
3608
3573
|
"locale"
|
|
3609
3574
|
]);
|
|
3610
|
-
return
|
|
3611
|
-
},
|
|
3575
|
+
return yn(Ne({ locale: r }, n));
|
|
3576
|
+
}, Tn = (e = {}) => {
|
|
3612
3577
|
var t = e, {
|
|
3613
|
-
locale: r =
|
|
3614
|
-
} = t, n =
|
|
3578
|
+
locale: r = B()
|
|
3579
|
+
} = t, n = G(t, [
|
|
3615
3580
|
"locale"
|
|
3616
3581
|
]);
|
|
3617
|
-
return
|
|
3618
|
-
},
|
|
3582
|
+
return _n(Ne({ locale: r }, n));
|
|
3583
|
+
}, Sn = se(
|
|
3619
3584
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3620
|
-
(e, t =
|
|
3621
|
-
ignoreTag:
|
|
3585
|
+
(e, t = B()) => new qr(e, t, C().formats, {
|
|
3586
|
+
ignoreTag: C().ignoreTag
|
|
3622
3587
|
})
|
|
3623
|
-
),
|
|
3588
|
+
), Bn = (e, t = {}) => {
|
|
3624
3589
|
var r, n, i, s;
|
|
3625
|
-
let
|
|
3626
|
-
typeof e == "object" && (
|
|
3590
|
+
let u = t;
|
|
3591
|
+
typeof e == "object" && (u = e, e = u.id);
|
|
3627
3592
|
const {
|
|
3628
|
-
values:
|
|
3629
|
-
locale:
|
|
3593
|
+
values: o,
|
|
3594
|
+
locale: f = B(),
|
|
3630
3595
|
default: a
|
|
3631
|
-
} =
|
|
3632
|
-
if (
|
|
3596
|
+
} = u;
|
|
3597
|
+
if (f == null)
|
|
3633
3598
|
throw new Error(
|
|
3634
3599
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3635
3600
|
);
|
|
3636
|
-
let
|
|
3637
|
-
if (!l)
|
|
3638
|
-
l = (s = (i = (n = (r = R()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3639
|
-
else if (typeof l != "string")
|
|
3640
|
-
return console.warn(
|
|
3641
|
-
`[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.`
|
|
3642
|
-
), l;
|
|
3601
|
+
let h = Et(e, f);
|
|
3643
3602
|
if (!h)
|
|
3644
|
-
|
|
3645
|
-
|
|
3603
|
+
h = (s = (i = (n = (r = C()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: f, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3604
|
+
else if (typeof h != "string")
|
|
3605
|
+
return console.warn(
|
|
3606
|
+
`[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.`
|
|
3607
|
+
), h;
|
|
3608
|
+
if (!o)
|
|
3609
|
+
return h;
|
|
3610
|
+
let l = h;
|
|
3646
3611
|
try {
|
|
3647
|
-
|
|
3612
|
+
l = Sn(h, f).format(o);
|
|
3648
3613
|
} catch (c) {
|
|
3649
3614
|
c instanceof Error && console.warn(
|
|
3650
3615
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3651
3616
|
c.message
|
|
3652
3617
|
);
|
|
3653
3618
|
}
|
|
3654
|
-
return
|
|
3655
|
-
},
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
function
|
|
3661
|
-
|
|
3662
|
-
}
|
|
3663
|
-
function
|
|
3664
|
-
|
|
3665
|
-
}
|
|
3666
|
-
const
|
|
3619
|
+
return l;
|
|
3620
|
+
}, An = (e, t) => Tn(t).format(e), Pn = (e, t) => Hn(t).format(e), Nn = (e, t) => vn(t).format(e), On = (e, t = B()) => Et(e, t), In = R([U, z], () => Bn);
|
|
3621
|
+
R([U], () => An);
|
|
3622
|
+
R([U], () => Pn);
|
|
3623
|
+
R([U], () => Nn);
|
|
3624
|
+
R([U, z], () => On);
|
|
3625
|
+
function ze(e, t) {
|
|
3626
|
+
yt(e, t);
|
|
3627
|
+
}
|
|
3628
|
+
function wn(e) {
|
|
3629
|
+
U.set(e);
|
|
3630
|
+
}
|
|
3631
|
+
const Ze = {
|
|
3667
3632
|
en: {
|
|
3668
3633
|
errServerUnavailable: "Server unavailable",
|
|
3669
3634
|
errEmailVerification: "Sorry! Your e-mail could not be verified. Please try again",
|
|
@@ -3677,51 +3642,51 @@ const tt = {
|
|
|
3677
3642
|
msgEmailVerificationSuccess: "Succes! E-mailul tău a fost verificat cu succes"
|
|
3678
3643
|
}
|
|
3679
3644
|
};
|
|
3680
|
-
function
|
|
3645
|
+
function $n(e) {
|
|
3681
3646
|
let t;
|
|
3682
3647
|
return {
|
|
3683
3648
|
c() {
|
|
3684
|
-
t =
|
|
3649
|
+
t = Ke("div");
|
|
3685
3650
|
},
|
|
3686
3651
|
m(r, n) {
|
|
3687
|
-
|
|
3652
|
+
Ye(r, t, n);
|
|
3688
3653
|
},
|
|
3689
3654
|
p: _,
|
|
3690
3655
|
i: _,
|
|
3691
3656
|
o: _,
|
|
3692
3657
|
d(r) {
|
|
3693
|
-
r &&
|
|
3658
|
+
r && Se(t);
|
|
3694
3659
|
}
|
|
3695
3660
|
};
|
|
3696
3661
|
}
|
|
3697
|
-
function
|
|
3662
|
+
function Ln(e, t, r) {
|
|
3698
3663
|
let n;
|
|
3699
|
-
|
|
3700
|
-
let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key:
|
|
3701
|
-
const
|
|
3702
|
-
fetch(
|
|
3664
|
+
Bt(e, In, (l) => r(4, n = l));
|
|
3665
|
+
let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key: u = "" } = t, { translationurl: o = "" } = t;
|
|
3666
|
+
const f = () => {
|
|
3667
|
+
fetch(o).then((c) => c.json()).then((c) => {
|
|
3703
3668
|
Object.keys(c).forEach((b) => {
|
|
3704
|
-
|
|
3669
|
+
ze(b, c[b]);
|
|
3705
3670
|
});
|
|
3706
3671
|
}).catch((c) => {
|
|
3707
3672
|
console.log(c);
|
|
3708
3673
|
});
|
|
3709
3674
|
};
|
|
3710
|
-
Object.keys(
|
|
3711
|
-
|
|
3675
|
+
Object.keys(Ze).forEach((l) => {
|
|
3676
|
+
ze(l, Ze[l]);
|
|
3712
3677
|
});
|
|
3713
3678
|
const a = () => {
|
|
3714
|
-
|
|
3715
|
-
},
|
|
3716
|
-
let
|
|
3679
|
+
wn(i);
|
|
3680
|
+
}, h = () => {
|
|
3681
|
+
let l = new URL(`${s}/v1/player/activatePlayerByHashKey`), b = {
|
|
3717
3682
|
method: "POST",
|
|
3718
3683
|
headers: {
|
|
3719
3684
|
"Content-Type": "application/json",
|
|
3720
3685
|
Accept: "application/json"
|
|
3721
3686
|
},
|
|
3722
|
-
body: JSON.stringify({ hashKey:
|
|
3687
|
+
body: JSON.stringify({ hashKey: u })
|
|
3723
3688
|
};
|
|
3724
|
-
fetch(
|
|
3689
|
+
fetch(l.href, b).then((g) => (g.status > 500 && (window.postMessage({ type: "ActivatePlayerResponseFailed" }, window.location.href), window.postMessage(
|
|
3725
3690
|
{
|
|
3726
3691
|
type: "WidgetNotification",
|
|
3727
3692
|
data: {
|
|
@@ -3761,18 +3726,18 @@ function Xn(e, t, r) {
|
|
|
3761
3726
|
);
|
|
3762
3727
|
});
|
|
3763
3728
|
};
|
|
3764
|
-
return e.$$set = (
|
|
3765
|
-
"lang" in
|
|
3729
|
+
return e.$$set = (l) => {
|
|
3730
|
+
"lang" in l && r(0, i = l.lang), "endpoint" in l && r(1, s = l.endpoint), "key" in l && r(2, u = l.key), "translationurl" in l && r(3, o = l.translationurl);
|
|
3766
3731
|
}, e.$$.update = () => {
|
|
3767
3732
|
e.$$.dirty & /*lang*/
|
|
3768
3733
|
1 && i && a(), e.$$.dirty & /*translationurl*/
|
|
3769
|
-
8 &&
|
|
3770
|
-
6 && s &&
|
|
3771
|
-
}, [i, s,
|
|
3734
|
+
8 && o && f(), e.$$.dirty & /*endpoint, key*/
|
|
3735
|
+
6 && s && u && h();
|
|
3736
|
+
}, [i, s, u, o];
|
|
3772
3737
|
}
|
|
3773
|
-
class
|
|
3738
|
+
class Mn extends Ft {
|
|
3774
3739
|
constructor(t) {
|
|
3775
|
-
super(),
|
|
3740
|
+
super(), Gt(this, t, Ln, $n, Je, {
|
|
3776
3741
|
lang: 0,
|
|
3777
3742
|
endpoint: 1,
|
|
3778
3743
|
key: 2,
|
|
@@ -3783,28 +3748,28 @@ class Wn extends Kt {
|
|
|
3783
3748
|
return this.$$.ctx[0];
|
|
3784
3749
|
}
|
|
3785
3750
|
set lang(t) {
|
|
3786
|
-
this.$$set({ lang: t }),
|
|
3751
|
+
this.$$set({ lang: t }), I();
|
|
3787
3752
|
}
|
|
3788
3753
|
get endpoint() {
|
|
3789
3754
|
return this.$$.ctx[1];
|
|
3790
3755
|
}
|
|
3791
3756
|
set endpoint(t) {
|
|
3792
|
-
this.$$set({ endpoint: t }),
|
|
3757
|
+
this.$$set({ endpoint: t }), I();
|
|
3793
3758
|
}
|
|
3794
3759
|
get key() {
|
|
3795
3760
|
return this.$$.ctx[2];
|
|
3796
3761
|
}
|
|
3797
3762
|
set key(t) {
|
|
3798
|
-
this.$$set({ key: t }),
|
|
3763
|
+
this.$$set({ key: t }), I();
|
|
3799
3764
|
}
|
|
3800
3765
|
get translationurl() {
|
|
3801
3766
|
return this.$$.ctx[3];
|
|
3802
3767
|
}
|
|
3803
3768
|
set translationurl(t) {
|
|
3804
|
-
this.$$set({ translationurl: t }),
|
|
3769
|
+
this.$$set({ translationurl: t }), I();
|
|
3805
3770
|
}
|
|
3806
3771
|
}
|
|
3807
|
-
|
|
3772
|
+
Dt(Mn, { lang: {}, endpoint: {}, key: {}, translationurl: {} }, [], [], !0);
|
|
3808
3773
|
export {
|
|
3809
|
-
|
|
3774
|
+
Mn as P
|
|
3810
3775
|
};
|