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