@everymatrix/loyalty-marketing-content 0.1.4 → 0.1.7
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/{LoyaltyMarketingContent-xy1DD0mE.js → LoyaltyMarketingContent-BHGLXaDH.js} +1265 -1197
- package/components/LoyaltyMarketingContent-C5e33WUK.cjs +8 -0
- package/components/LoyaltyMarketingContent-x1GLU_Dl.js +5939 -0
- package/es2015/loyalty-marketing-content.cjs +1 -0
- package/es2015/loyalty-marketing-content.js +16 -0
- package/package.json +9 -12
- package/components/LoyaltyMarketingContent-sNfWcHTu.cjs +0 -5
- package/svelte/loyalty-marketing-content.js +0 -4975
- package/wc/loyalty-marketing-content.cjs +0 -1
- package/wc/loyalty-marketing-content.js +0 -14
|
@@ -1,4975 +0,0 @@
|
|
|
1
|
-
var $n = Object.defineProperty;
|
|
2
|
-
var fr = (e) => {
|
|
3
|
-
throw TypeError(e);
|
|
4
|
-
};
|
|
5
|
-
var Yn = (e, t, r) => t in e ? $n(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
|
-
var ne = (e, t, r) => Yn(e, typeof t != "symbol" ? t + "" : t, r), wt = (e, t, r) => t.has(e) || fr("Cannot " + r);
|
|
7
|
-
var w = (e, t, r) => (wt(e, t, "read from private field"), r ? r.call(e) : t.get(e)), J = (e, t, r) => t.has(e) ? fr("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Se = (e, t, r, n) => (wt(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), ve = (e, t, r) => (wt(e, t, "access private method"), r);
|
|
8
|
-
const Jn = "5";
|
|
9
|
-
var Lr;
|
|
10
|
-
typeof window < "u" && ((Lr = window.__svelte ?? (window.__svelte = {})).v ?? (Lr.v = /* @__PURE__ */ new Set())).add(Jn);
|
|
11
|
-
const Kn = 1, ei = 2, ti = 16, ri = 2, O = Symbol(), ni = "http://www.w3.org/1999/xhtml", Lt = !1;
|
|
12
|
-
var Rr = Array.isArray, ii = Array.prototype.indexOf, er = Array.from, si = Object.defineProperty, St = Object.getOwnPropertyDescriptor, ai = Object.getOwnPropertyDescriptors, oi = Object.prototype, ui = Array.prototype, Dr = Object.getPrototypeOf;
|
|
13
|
-
const oe = () => {
|
|
14
|
-
};
|
|
15
|
-
function Ur(e) {
|
|
16
|
-
for (var t = 0; t < e.length; t++)
|
|
17
|
-
e[t]();
|
|
18
|
-
}
|
|
19
|
-
function Gr() {
|
|
20
|
-
var e, t, r = new Promise((n, i) => {
|
|
21
|
-
e = n, t = i;
|
|
22
|
-
});
|
|
23
|
-
return { promise: r, resolve: e, reject: t };
|
|
24
|
-
}
|
|
25
|
-
const C = 2, Rt = 4, tr = 8, Fr = 1 << 24, re = 16, ce = 32, je = 64, jr = 128, X = 512, M = 1024, j = 2048, pe = 4096, V = 8192, ue = 16384, kr = 32768, ot = 65536, hr = 1 << 17, Vr = 1 << 18, gt = 1 << 19, li = 1 << 20, se = 1 << 25, Ee = 32768, Dt = 1 << 21, rr = 1 << 22, le = 1 << 23, Ht = Symbol("$state"), Be = new class extends Error {
|
|
26
|
-
constructor() {
|
|
27
|
-
super(...arguments);
|
|
28
|
-
ne(this, "name", "StaleReactionError");
|
|
29
|
-
ne(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
30
|
-
}
|
|
31
|
-
}();
|
|
32
|
-
function fi() {
|
|
33
|
-
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
34
|
-
}
|
|
35
|
-
function hi() {
|
|
36
|
-
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
37
|
-
}
|
|
38
|
-
function ci() {
|
|
39
|
-
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
40
|
-
}
|
|
41
|
-
function pi() {
|
|
42
|
-
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
43
|
-
}
|
|
44
|
-
function vi() {
|
|
45
|
-
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
46
|
-
}
|
|
47
|
-
function qr(e) {
|
|
48
|
-
return e === this.v;
|
|
49
|
-
}
|
|
50
|
-
function Xr(e, t) {
|
|
51
|
-
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
52
|
-
}
|
|
53
|
-
function zr(e) {
|
|
54
|
-
return !Xr(e, this.v);
|
|
55
|
-
}
|
|
56
|
-
let mi = !1, te = null;
|
|
57
|
-
function ut(e) {
|
|
58
|
-
te = e;
|
|
59
|
-
}
|
|
60
|
-
function di(e, t = !1, r) {
|
|
61
|
-
te = {
|
|
62
|
-
p: te,
|
|
63
|
-
i: !1,
|
|
64
|
-
c: null,
|
|
65
|
-
e: null,
|
|
66
|
-
s: e,
|
|
67
|
-
x: null,
|
|
68
|
-
l: null
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
function _i(e) {
|
|
72
|
-
var t = (
|
|
73
|
-
/** @type {ComponentContext} */
|
|
74
|
-
te
|
|
75
|
-
), r = t.e;
|
|
76
|
-
if (r !== null) {
|
|
77
|
-
t.e = null;
|
|
78
|
-
for (var n of r)
|
|
79
|
-
Di(n);
|
|
80
|
-
}
|
|
81
|
-
return t.i = !0, te = t.p, /** @type {T} */
|
|
82
|
-
{};
|
|
83
|
-
}
|
|
84
|
-
function Wr() {
|
|
85
|
-
return !0;
|
|
86
|
-
}
|
|
87
|
-
let Ne = [];
|
|
88
|
-
function gi() {
|
|
89
|
-
var e = Ne;
|
|
90
|
-
Ne = [], Ur(e);
|
|
91
|
-
}
|
|
92
|
-
function bi(e) {
|
|
93
|
-
if (Ne.length === 0) {
|
|
94
|
-
var t = Ne;
|
|
95
|
-
queueMicrotask(() => {
|
|
96
|
-
t === Ne && gi();
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
Ne.push(e);
|
|
100
|
-
}
|
|
101
|
-
function Ei(e) {
|
|
102
|
-
var t = H;
|
|
103
|
-
if (t === null)
|
|
104
|
-
return g.f |= le, e;
|
|
105
|
-
if (t.f & kr)
|
|
106
|
-
lt(e, t);
|
|
107
|
-
else {
|
|
108
|
-
if (!(t.f & jr))
|
|
109
|
-
throw e;
|
|
110
|
-
t.b.error(e);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
function lt(e, t) {
|
|
114
|
-
for (; t !== null; ) {
|
|
115
|
-
if (t.f & jr)
|
|
116
|
-
try {
|
|
117
|
-
t.b.error(e);
|
|
118
|
-
return;
|
|
119
|
-
} catch (r) {
|
|
120
|
-
e = r;
|
|
121
|
-
}
|
|
122
|
-
t = t.parent;
|
|
123
|
-
}
|
|
124
|
-
throw e;
|
|
125
|
-
}
|
|
126
|
-
const yi = -7169;
|
|
127
|
-
function L(e, t) {
|
|
128
|
-
e.f = e.f & yi | t;
|
|
129
|
-
}
|
|
130
|
-
function nr(e) {
|
|
131
|
-
e.f & X || e.deps === null ? L(e, M) : L(e, pe);
|
|
132
|
-
}
|
|
133
|
-
function Qr(e) {
|
|
134
|
-
if (e !== null)
|
|
135
|
-
for (const t of e)
|
|
136
|
-
!(t.f & C) || !(t.f & Ee) || (t.f ^= Ee, Qr(
|
|
137
|
-
/** @type {Derived} */
|
|
138
|
-
t.deps
|
|
139
|
-
));
|
|
140
|
-
}
|
|
141
|
-
function xi(e, t, r) {
|
|
142
|
-
e.f & j ? t.add(e) : e.f & pe && r.add(e), Qr(e.deps), L(e, M);
|
|
143
|
-
}
|
|
144
|
-
const rt = /* @__PURE__ */ new Set();
|
|
145
|
-
let y = null, I = null, $ = [], ir = null, Ut = !1;
|
|
146
|
-
var Oe, Ie, de, _e, et, Ce, Me, z, Gt, Ft, Zr, $r;
|
|
147
|
-
const _t = class _t {
|
|
148
|
-
constructor() {
|
|
149
|
-
J(this, z);
|
|
150
|
-
ne(this, "committed", !1);
|
|
151
|
-
/**
|
|
152
|
-
* The current values of any sources that are updated in this batch
|
|
153
|
-
* They keys of this map are identical to `this.#previous`
|
|
154
|
-
* @type {Map<Source, any>}
|
|
155
|
-
*/
|
|
156
|
-
ne(this, "current", /* @__PURE__ */ new Map());
|
|
157
|
-
/**
|
|
158
|
-
* The values of any sources that are updated in this batch _before_ those updates took place.
|
|
159
|
-
* They keys of this map are identical to `this.#current`
|
|
160
|
-
* @type {Map<Source, any>}
|
|
161
|
-
*/
|
|
162
|
-
ne(this, "previous", /* @__PURE__ */ new Map());
|
|
163
|
-
/**
|
|
164
|
-
* When the batch is committed (and the DOM is updated), we need to remove old branches
|
|
165
|
-
* and append new ones by calling the functions added inside (if/each/key/etc) blocks
|
|
166
|
-
* @type {Set<() => void>}
|
|
167
|
-
*/
|
|
168
|
-
J(this, Oe, /* @__PURE__ */ new Set());
|
|
169
|
-
/**
|
|
170
|
-
* If a fork is discarded, we need to destroy any effects that are no longer needed
|
|
171
|
-
* @type {Set<(batch: Batch) => void>}
|
|
172
|
-
*/
|
|
173
|
-
J(this, Ie, /* @__PURE__ */ new Set());
|
|
174
|
-
/**
|
|
175
|
-
* The number of async effects that are currently in flight
|
|
176
|
-
*/
|
|
177
|
-
J(this, de, 0);
|
|
178
|
-
/**
|
|
179
|
-
* The number of async effects that are currently in flight, _not_ inside a pending boundary
|
|
180
|
-
*/
|
|
181
|
-
J(this, _e, 0);
|
|
182
|
-
/**
|
|
183
|
-
* A deferred that resolves when the batch is committed, used with `settled()`
|
|
184
|
-
* TODO replace with Promise.withResolvers once supported widely enough
|
|
185
|
-
* @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
|
|
186
|
-
*/
|
|
187
|
-
J(this, et, null);
|
|
188
|
-
/**
|
|
189
|
-
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
190
|
-
* @type {Set<Effect>}
|
|
191
|
-
*/
|
|
192
|
-
J(this, Ce, /* @__PURE__ */ new Set());
|
|
193
|
-
/**
|
|
194
|
-
* Deferred effects that are MAYBE_DIRTY
|
|
195
|
-
* @type {Set<Effect>}
|
|
196
|
-
*/
|
|
197
|
-
J(this, Me, /* @__PURE__ */ new Set());
|
|
198
|
-
/**
|
|
199
|
-
* A set of branches that still exist, but will be destroyed when this batch
|
|
200
|
-
* is committed — we skip over these during `process`
|
|
201
|
-
* @type {Set<Effect>}
|
|
202
|
-
*/
|
|
203
|
-
ne(this, "skipped_effects", /* @__PURE__ */ new Set());
|
|
204
|
-
ne(this, "is_fork", !1);
|
|
205
|
-
}
|
|
206
|
-
is_deferred() {
|
|
207
|
-
return this.is_fork || w(this, _e) > 0;
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
*
|
|
211
|
-
* @param {Effect[]} root_effects
|
|
212
|
-
*/
|
|
213
|
-
process(t) {
|
|
214
|
-
var i;
|
|
215
|
-
$ = [], this.apply();
|
|
216
|
-
var r = [], n = [];
|
|
217
|
-
for (const s of t)
|
|
218
|
-
ve(this, z, Gt).call(this, s, r, n);
|
|
219
|
-
this.is_fork || ve(this, z, Zr).call(this), this.is_deferred() ? (ve(this, z, Ft).call(this, n), ve(this, z, Ft).call(this, r)) : (y = null, cr(n), cr(r), (i = w(this, et)) == null || i.resolve()), I = null;
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* Associate a change to a given source with the current
|
|
223
|
-
* batch, noting its previous and current values
|
|
224
|
-
* @param {Source} source
|
|
225
|
-
* @param {any} value
|
|
226
|
-
*/
|
|
227
|
-
capture(t, r) {
|
|
228
|
-
r !== O && !this.previous.has(t) && this.previous.set(t, r), t.f & le || (this.current.set(t, t.v), I == null || I.set(t, t.v));
|
|
229
|
-
}
|
|
230
|
-
activate() {
|
|
231
|
-
y = this, this.apply();
|
|
232
|
-
}
|
|
233
|
-
deactivate() {
|
|
234
|
-
y === this && (y = null, I = null);
|
|
235
|
-
}
|
|
236
|
-
flush() {
|
|
237
|
-
if (this.activate(), $.length > 0) {
|
|
238
|
-
if (Ti(), y !== null && y !== this)
|
|
239
|
-
return;
|
|
240
|
-
} else w(this, de) === 0 && this.process([]);
|
|
241
|
-
this.deactivate();
|
|
242
|
-
}
|
|
243
|
-
discard() {
|
|
244
|
-
for (const t of w(this, Ie)) t(this);
|
|
245
|
-
w(this, Ie).clear();
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
*
|
|
249
|
-
* @param {boolean} blocking
|
|
250
|
-
*/
|
|
251
|
-
increment(t) {
|
|
252
|
-
Se(this, de, w(this, de) + 1), t && Se(this, _e, w(this, _e) + 1);
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
*
|
|
256
|
-
* @param {boolean} blocking
|
|
257
|
-
*/
|
|
258
|
-
decrement(t) {
|
|
259
|
-
Se(this, de, w(this, de) - 1), t && Se(this, _e, w(this, _e) - 1), this.revive();
|
|
260
|
-
}
|
|
261
|
-
revive() {
|
|
262
|
-
for (const t of w(this, Ce))
|
|
263
|
-
w(this, Me).delete(t), L(t, j), ye(t);
|
|
264
|
-
for (const t of w(this, Me))
|
|
265
|
-
L(t, pe), ye(t);
|
|
266
|
-
this.flush();
|
|
267
|
-
}
|
|
268
|
-
/** @param {() => void} fn */
|
|
269
|
-
oncommit(t) {
|
|
270
|
-
w(this, Oe).add(t);
|
|
271
|
-
}
|
|
272
|
-
/** @param {(batch: Batch) => void} fn */
|
|
273
|
-
ondiscard(t) {
|
|
274
|
-
w(this, Ie).add(t);
|
|
275
|
-
}
|
|
276
|
-
settled() {
|
|
277
|
-
return (w(this, et) ?? Se(this, et, Gr())).promise;
|
|
278
|
-
}
|
|
279
|
-
static ensure() {
|
|
280
|
-
if (y === null) {
|
|
281
|
-
const t = y = new _t();
|
|
282
|
-
rt.add(y), _t.enqueue(() => {
|
|
283
|
-
y === t && t.flush();
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
return y;
|
|
287
|
-
}
|
|
288
|
-
/** @param {() => void} task */
|
|
289
|
-
static enqueue(t) {
|
|
290
|
-
bi(t);
|
|
291
|
-
}
|
|
292
|
-
apply() {
|
|
293
|
-
}
|
|
294
|
-
};
|
|
295
|
-
Oe = new WeakMap(), Ie = new WeakMap(), de = new WeakMap(), _e = new WeakMap(), et = new WeakMap(), Ce = new WeakMap(), Me = new WeakMap(), z = new WeakSet(), /**
|
|
296
|
-
* Traverse the effect tree, executing effects or stashing
|
|
297
|
-
* them for later execution as appropriate
|
|
298
|
-
* @param {Effect} root
|
|
299
|
-
* @param {Effect[]} effects
|
|
300
|
-
* @param {Effect[]} render_effects
|
|
301
|
-
*/
|
|
302
|
-
Gt = function(t, r, n) {
|
|
303
|
-
t.f ^= M;
|
|
304
|
-
for (var i = t.first, s = null; i !== null; ) {
|
|
305
|
-
var o = i.f, u = (o & (ce | je)) !== 0, l = u && (o & M) !== 0, a = l || (o & V) !== 0 || this.skipped_effects.has(i);
|
|
306
|
-
if (!a && i.fn !== null) {
|
|
307
|
-
u ? i.f ^= M : s !== null && o & (Rt | tr | Fr) ? s.b.defer_effect(i) : o & Rt ? r.push(i) : tt(i) && (o & re && w(this, Ce).add(i), Ye(i));
|
|
308
|
-
var f = i.first;
|
|
309
|
-
if (f !== null) {
|
|
310
|
-
i = f;
|
|
311
|
-
continue;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
var h = i.parent;
|
|
315
|
-
for (i = i.next; i === null && h !== null; )
|
|
316
|
-
h === s && (s = null), i = h.next, h = h.parent;
|
|
317
|
-
}
|
|
318
|
-
}, /**
|
|
319
|
-
* @param {Effect[]} effects
|
|
320
|
-
*/
|
|
321
|
-
Ft = function(t) {
|
|
322
|
-
for (var r = 0; r < t.length; r += 1)
|
|
323
|
-
xi(t[r], w(this, Ce), w(this, Me));
|
|
324
|
-
}, Zr = function() {
|
|
325
|
-
if (w(this, _e) === 0) {
|
|
326
|
-
for (const t of w(this, Oe)) t();
|
|
327
|
-
w(this, Oe).clear();
|
|
328
|
-
}
|
|
329
|
-
w(this, de) === 0 && ve(this, z, $r).call(this);
|
|
330
|
-
}, $r = function() {
|
|
331
|
-
var i;
|
|
332
|
-
if (rt.size > 1) {
|
|
333
|
-
this.previous.clear();
|
|
334
|
-
var t = I, r = !0;
|
|
335
|
-
for (const s of rt) {
|
|
336
|
-
if (s === this) {
|
|
337
|
-
r = !1;
|
|
338
|
-
continue;
|
|
339
|
-
}
|
|
340
|
-
const o = [];
|
|
341
|
-
for (const [l, a] of this.current) {
|
|
342
|
-
if (s.current.has(l))
|
|
343
|
-
if (r && a !== s.current.get(l))
|
|
344
|
-
s.current.set(l, a);
|
|
345
|
-
else
|
|
346
|
-
continue;
|
|
347
|
-
o.push(l);
|
|
348
|
-
}
|
|
349
|
-
if (o.length === 0)
|
|
350
|
-
continue;
|
|
351
|
-
const u = [...s.current.keys()].filter((l) => !this.current.has(l));
|
|
352
|
-
if (u.length > 0) {
|
|
353
|
-
var n = $;
|
|
354
|
-
$ = [];
|
|
355
|
-
const l = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
|
|
356
|
-
for (const f of o)
|
|
357
|
-
Yr(f, u, l, a);
|
|
358
|
-
if ($.length > 0) {
|
|
359
|
-
y = s, s.apply();
|
|
360
|
-
for (const f of $)
|
|
361
|
-
ve(i = s, z, Gt).call(i, f, [], []);
|
|
362
|
-
s.deactivate();
|
|
363
|
-
}
|
|
364
|
-
$ = n;
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
y = null, I = t;
|
|
368
|
-
}
|
|
369
|
-
this.committed = !0, rt.delete(this);
|
|
370
|
-
};
|
|
371
|
-
let ft = _t;
|
|
372
|
-
function Ti() {
|
|
373
|
-
var e = ge;
|
|
374
|
-
Ut = !0;
|
|
375
|
-
var t = null;
|
|
376
|
-
try {
|
|
377
|
-
var r = 0;
|
|
378
|
-
for (ct(!0); $.length > 0; ) {
|
|
379
|
-
var n = ft.ensure();
|
|
380
|
-
if (r++ > 1e3) {
|
|
381
|
-
var i, s;
|
|
382
|
-
wi();
|
|
383
|
-
}
|
|
384
|
-
n.process($), fe.clear();
|
|
385
|
-
}
|
|
386
|
-
} finally {
|
|
387
|
-
Ut = !1, ct(e), ir = null;
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
function wi() {
|
|
391
|
-
try {
|
|
392
|
-
hi();
|
|
393
|
-
} catch (e) {
|
|
394
|
-
lt(e, ir);
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
let W = null;
|
|
398
|
-
function cr(e) {
|
|
399
|
-
var t = e.length;
|
|
400
|
-
if (t !== 0) {
|
|
401
|
-
for (var r = 0; r < t; ) {
|
|
402
|
-
var n = e[r++];
|
|
403
|
-
if (!(n.f & (ue | V)) && tt(n) && (W = /* @__PURE__ */ new Set(), Ye(n), n.deps === null && n.first === null && n.nodes === null && (n.teardown === null && n.ac === null ? cn(n) : n.fn = null), (W == null ? void 0 : W.size) > 0)) {
|
|
404
|
-
fe.clear();
|
|
405
|
-
for (const i of W) {
|
|
406
|
-
if (i.f & (ue | V)) continue;
|
|
407
|
-
const s = [i];
|
|
408
|
-
let o = i.parent;
|
|
409
|
-
for (; o !== null; )
|
|
410
|
-
W.has(o) && (W.delete(o), s.push(o)), o = o.parent;
|
|
411
|
-
for (let u = s.length - 1; u >= 0; u--) {
|
|
412
|
-
const l = s[u];
|
|
413
|
-
l.f & (ue | V) || Ye(l);
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
W.clear();
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
W = null;
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
function Yr(e, t, r, n) {
|
|
423
|
-
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
424
|
-
for (const i of e.reactions) {
|
|
425
|
-
const s = i.f;
|
|
426
|
-
s & C ? Yr(
|
|
427
|
-
/** @type {Derived} */
|
|
428
|
-
i,
|
|
429
|
-
t,
|
|
430
|
-
r,
|
|
431
|
-
n
|
|
432
|
-
) : s & (rr | re) && !(s & j) && Jr(i, t, n) && (L(i, j), ye(
|
|
433
|
-
/** @type {Effect} */
|
|
434
|
-
i
|
|
435
|
-
));
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
function Jr(e, t, r) {
|
|
439
|
-
const n = r.get(e);
|
|
440
|
-
if (n !== void 0) return n;
|
|
441
|
-
if (e.deps !== null)
|
|
442
|
-
for (const i of e.deps) {
|
|
443
|
-
if (t.includes(i))
|
|
444
|
-
return !0;
|
|
445
|
-
if (i.f & C && Jr(
|
|
446
|
-
/** @type {Derived} */
|
|
447
|
-
i,
|
|
448
|
-
t,
|
|
449
|
-
r
|
|
450
|
-
))
|
|
451
|
-
return r.set(
|
|
452
|
-
/** @type {Derived} */
|
|
453
|
-
i,
|
|
454
|
-
!0
|
|
455
|
-
), !0;
|
|
456
|
-
}
|
|
457
|
-
return r.set(e, !1), !1;
|
|
458
|
-
}
|
|
459
|
-
function ye(e) {
|
|
460
|
-
for (var t = ir = e; t.parent !== null; ) {
|
|
461
|
-
t = t.parent;
|
|
462
|
-
var r = t.f;
|
|
463
|
-
if (Ut && t === H && r & re && !(r & Vr))
|
|
464
|
-
return;
|
|
465
|
-
if (r & (je | ce)) {
|
|
466
|
-
if (!(r & M)) return;
|
|
467
|
-
t.f ^= M;
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
$.push(t);
|
|
471
|
-
}
|
|
472
|
-
function Si(e, t, r, n) {
|
|
473
|
-
const i = Kr;
|
|
474
|
-
if (r.length === 0 && e.length === 0) {
|
|
475
|
-
n(t.map(i));
|
|
476
|
-
return;
|
|
477
|
-
}
|
|
478
|
-
var s = y, o = (
|
|
479
|
-
/** @type {Effect} */
|
|
480
|
-
H
|
|
481
|
-
), u = Hi();
|
|
482
|
-
function l() {
|
|
483
|
-
Promise.all(r.map((a) => /* @__PURE__ */ Ai(a))).then((a) => {
|
|
484
|
-
u();
|
|
485
|
-
try {
|
|
486
|
-
n([...t.map(i), ...a]);
|
|
487
|
-
} catch (f) {
|
|
488
|
-
o.f & ue || lt(f, o);
|
|
489
|
-
}
|
|
490
|
-
s == null || s.deactivate(), ht();
|
|
491
|
-
}).catch((a) => {
|
|
492
|
-
lt(a, o);
|
|
493
|
-
});
|
|
494
|
-
}
|
|
495
|
-
e.length > 0 ? Promise.all(e).then(() => {
|
|
496
|
-
u();
|
|
497
|
-
try {
|
|
498
|
-
return l();
|
|
499
|
-
} finally {
|
|
500
|
-
s == null || s.deactivate(), ht();
|
|
501
|
-
}
|
|
502
|
-
}) : l();
|
|
503
|
-
}
|
|
504
|
-
function Hi() {
|
|
505
|
-
var e = H, t = g, r = te, n = y;
|
|
506
|
-
return function(s = !0) {
|
|
507
|
-
Re(e), he(t), ut(r), s && (n == null || n.activate());
|
|
508
|
-
};
|
|
509
|
-
}
|
|
510
|
-
function ht() {
|
|
511
|
-
Re(null), he(null), ut(null);
|
|
512
|
-
}
|
|
513
|
-
// @__NO_SIDE_EFFECTS__
|
|
514
|
-
function Kr(e) {
|
|
515
|
-
var t = C | j, r = g !== null && g.f & C ? (
|
|
516
|
-
/** @type {Derived} */
|
|
517
|
-
g
|
|
518
|
-
) : null;
|
|
519
|
-
return H !== null && (H.f |= gt), {
|
|
520
|
-
ctx: te,
|
|
521
|
-
deps: null,
|
|
522
|
-
effects: null,
|
|
523
|
-
equals: qr,
|
|
524
|
-
f: t,
|
|
525
|
-
fn: e,
|
|
526
|
-
reactions: null,
|
|
527
|
-
rv: 0,
|
|
528
|
-
v: (
|
|
529
|
-
/** @type {V} */
|
|
530
|
-
O
|
|
531
|
-
),
|
|
532
|
-
wv: 0,
|
|
533
|
-
parent: r ?? H,
|
|
534
|
-
ac: null
|
|
535
|
-
};
|
|
536
|
-
}
|
|
537
|
-
// @__NO_SIDE_EFFECTS__
|
|
538
|
-
function Ai(e, t, r) {
|
|
539
|
-
let n = (
|
|
540
|
-
/** @type {Effect | null} */
|
|
541
|
-
H
|
|
542
|
-
);
|
|
543
|
-
n === null && fi();
|
|
544
|
-
var i = (
|
|
545
|
-
/** @type {Boundary} */
|
|
546
|
-
n.b
|
|
547
|
-
), s = (
|
|
548
|
-
/** @type {Promise<V>} */
|
|
549
|
-
/** @type {unknown} */
|
|
550
|
-
void 0
|
|
551
|
-
), o = Ze(
|
|
552
|
-
/** @type {V} */
|
|
553
|
-
O
|
|
554
|
-
), u = !g, l = /* @__PURE__ */ new Map();
|
|
555
|
-
return Ui(() => {
|
|
556
|
-
var v;
|
|
557
|
-
var a = Gr();
|
|
558
|
-
s = a.promise;
|
|
559
|
-
try {
|
|
560
|
-
Promise.resolve(e()).then(a.resolve, a.reject).then(() => {
|
|
561
|
-
f === y && f.committed && f.deactivate(), ht();
|
|
562
|
-
});
|
|
563
|
-
} catch (p) {
|
|
564
|
-
a.reject(p), ht();
|
|
565
|
-
}
|
|
566
|
-
var f = (
|
|
567
|
-
/** @type {Batch} */
|
|
568
|
-
y
|
|
569
|
-
);
|
|
570
|
-
if (u) {
|
|
571
|
-
var h = i.is_rendered();
|
|
572
|
-
i.update_pending_count(1), f.increment(h), (v = l.get(f)) == null || v.reject(Be), l.delete(f), l.set(f, a);
|
|
573
|
-
}
|
|
574
|
-
const c = (p, m = void 0) => {
|
|
575
|
-
if (f.activate(), m)
|
|
576
|
-
m !== Be && (o.f |= le, $e(o, m));
|
|
577
|
-
else {
|
|
578
|
-
o.f & le && (o.f ^= le), $e(o, p);
|
|
579
|
-
for (const [b, T] of l) {
|
|
580
|
-
if (l.delete(b), b === f) break;
|
|
581
|
-
T.reject(Be);
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
u && (i.update_pending_count(-1), f.decrement(h));
|
|
585
|
-
};
|
|
586
|
-
a.promise.then(c, (p) => c(null, p || "unknown"));
|
|
587
|
-
}), ln(() => {
|
|
588
|
-
for (const a of l.values())
|
|
589
|
-
a.reject(Be);
|
|
590
|
-
}), new Promise((a) => {
|
|
591
|
-
function f(h) {
|
|
592
|
-
function c() {
|
|
593
|
-
h === s ? a(o) : f(s);
|
|
594
|
-
}
|
|
595
|
-
h.then(c, c);
|
|
596
|
-
}
|
|
597
|
-
f(s);
|
|
598
|
-
});
|
|
599
|
-
}
|
|
600
|
-
// @__NO_SIDE_EFFECTS__
|
|
601
|
-
function Bi(e) {
|
|
602
|
-
const t = /* @__PURE__ */ Kr(e);
|
|
603
|
-
return t.equals = zr, t;
|
|
604
|
-
}
|
|
605
|
-
function en(e) {
|
|
606
|
-
var t = e.effects;
|
|
607
|
-
if (t !== null) {
|
|
608
|
-
e.effects = null;
|
|
609
|
-
for (var r = 0; r < t.length; r += 1)
|
|
610
|
-
Ve(
|
|
611
|
-
/** @type {Effect} */
|
|
612
|
-
t[r]
|
|
613
|
-
);
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
function Ni(e) {
|
|
617
|
-
for (var t = e.parent; t !== null; ) {
|
|
618
|
-
if (!(t.f & C))
|
|
619
|
-
return t.f & ue ? null : (
|
|
620
|
-
/** @type {Effect} */
|
|
621
|
-
t
|
|
622
|
-
);
|
|
623
|
-
t = t.parent;
|
|
624
|
-
}
|
|
625
|
-
return null;
|
|
626
|
-
}
|
|
627
|
-
function sr(e) {
|
|
628
|
-
var t, r = H;
|
|
629
|
-
Re(Ni(e));
|
|
630
|
-
try {
|
|
631
|
-
e.f &= ~Ee, en(e), t = En(e);
|
|
632
|
-
} finally {
|
|
633
|
-
Re(r);
|
|
634
|
-
}
|
|
635
|
-
return t;
|
|
636
|
-
}
|
|
637
|
-
function tn(e) {
|
|
638
|
-
var t = sr(e);
|
|
639
|
-
if (!e.equals(t) && (e.wv = gn(), (!(y != null && y.is_fork) || e.deps === null) && (e.v = t, e.deps === null))) {
|
|
640
|
-
L(e, M);
|
|
641
|
-
return;
|
|
642
|
-
}
|
|
643
|
-
Le || (I !== null ? (un() || y != null && y.is_fork) && I.set(e, t) : nr(e));
|
|
644
|
-
}
|
|
645
|
-
let jt = /* @__PURE__ */ new Set();
|
|
646
|
-
const fe = /* @__PURE__ */ new Map();
|
|
647
|
-
let rn = !1;
|
|
648
|
-
function Ze(e, t) {
|
|
649
|
-
var r = {
|
|
650
|
-
f: 0,
|
|
651
|
-
// TODO ideally we could skip this altogether, but it causes type errors
|
|
652
|
-
v: e,
|
|
653
|
-
reactions: null,
|
|
654
|
-
equals: qr,
|
|
655
|
-
rv: 0,
|
|
656
|
-
wv: 0
|
|
657
|
-
};
|
|
658
|
-
return r;
|
|
659
|
-
}
|
|
660
|
-
// @__NO_SIDE_EFFECTS__
|
|
661
|
-
function K(e, t) {
|
|
662
|
-
const r = Ze(e);
|
|
663
|
-
return Vi(r), r;
|
|
664
|
-
}
|
|
665
|
-
// @__NO_SIDE_EFFECTS__
|
|
666
|
-
function nn(e, t = !1, r = !0) {
|
|
667
|
-
const n = Ze(e);
|
|
668
|
-
return t || (n.equals = zr), n;
|
|
669
|
-
}
|
|
670
|
-
function ee(e, t, r = !1) {
|
|
671
|
-
g !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
672
|
-
// to ensure we error if state is set inside an inspect effect
|
|
673
|
-
(!Q || g.f & hr) && Wr() && g.f & (C | re | rr | hr) && !(U != null && U.includes(e)) && vi();
|
|
674
|
-
let n = r ? Pe(t) : t;
|
|
675
|
-
return $e(e, n);
|
|
676
|
-
}
|
|
677
|
-
function $e(e, t) {
|
|
678
|
-
if (!e.equals(t)) {
|
|
679
|
-
var r = e.v;
|
|
680
|
-
Le ? fe.set(e, t) : fe.set(e, r), e.v = t;
|
|
681
|
-
var n = ft.ensure();
|
|
682
|
-
if (n.capture(e, r), e.f & C) {
|
|
683
|
-
const i = (
|
|
684
|
-
/** @type {Derived} */
|
|
685
|
-
e
|
|
686
|
-
);
|
|
687
|
-
e.f & j && sr(i), nr(i);
|
|
688
|
-
}
|
|
689
|
-
e.wv = gn(), sn(e, j), H !== null && H.f & M && !(H.f & (ce | je)) && (q === null ? qi([e]) : q.push(e)), !n.is_fork && jt.size > 0 && !rn && Pi();
|
|
690
|
-
}
|
|
691
|
-
return t;
|
|
692
|
-
}
|
|
693
|
-
function Pi() {
|
|
694
|
-
rn = !1;
|
|
695
|
-
var e = ge;
|
|
696
|
-
ct(!0);
|
|
697
|
-
const t = Array.from(jt);
|
|
698
|
-
try {
|
|
699
|
-
for (const r of t)
|
|
700
|
-
r.f & M && L(r, pe), tt(r) && Ye(r);
|
|
701
|
-
} finally {
|
|
702
|
-
ct(e);
|
|
703
|
-
}
|
|
704
|
-
jt.clear();
|
|
705
|
-
}
|
|
706
|
-
function At(e) {
|
|
707
|
-
ee(e, e.v + 1);
|
|
708
|
-
}
|
|
709
|
-
function sn(e, t) {
|
|
710
|
-
var r = e.reactions;
|
|
711
|
-
if (r !== null)
|
|
712
|
-
for (var n = r.length, i = 0; i < n; i++) {
|
|
713
|
-
var s = r[i], o = s.f, u = (o & j) === 0;
|
|
714
|
-
if (u && L(s, t), o & C) {
|
|
715
|
-
var l = (
|
|
716
|
-
/** @type {Derived} */
|
|
717
|
-
s
|
|
718
|
-
);
|
|
719
|
-
I == null || I.delete(l), o & Ee || (o & X && (s.f |= Ee), sn(l, pe));
|
|
720
|
-
} else u && (o & re && W !== null && W.add(
|
|
721
|
-
/** @type {Effect} */
|
|
722
|
-
s
|
|
723
|
-
), ye(
|
|
724
|
-
/** @type {Effect} */
|
|
725
|
-
s
|
|
726
|
-
));
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
function Pe(e) {
|
|
730
|
-
if (typeof e != "object" || e === null || Ht in e)
|
|
731
|
-
return e;
|
|
732
|
-
const t = Dr(e);
|
|
733
|
-
if (t !== oi && t !== ui)
|
|
734
|
-
return e;
|
|
735
|
-
var r = /* @__PURE__ */ new Map(), n = Rr(e), i = /* @__PURE__ */ K(0), s = be, o = (u) => {
|
|
736
|
-
if (be === s)
|
|
737
|
-
return u();
|
|
738
|
-
var l = g, a = be;
|
|
739
|
-
he(null), mr(s);
|
|
740
|
-
var f = u();
|
|
741
|
-
return he(l), mr(a), f;
|
|
742
|
-
};
|
|
743
|
-
return n && r.set("length", /* @__PURE__ */ K(
|
|
744
|
-
/** @type {any[]} */
|
|
745
|
-
e.length
|
|
746
|
-
)), new Proxy(
|
|
747
|
-
/** @type {any} */
|
|
748
|
-
e,
|
|
749
|
-
{
|
|
750
|
-
defineProperty(u, l, a) {
|
|
751
|
-
(!("value" in a) || a.configurable === !1 || a.enumerable === !1 || a.writable === !1) && ci();
|
|
752
|
-
var f = r.get(l);
|
|
753
|
-
return f === void 0 ? f = o(() => {
|
|
754
|
-
var h = /* @__PURE__ */ K(a.value);
|
|
755
|
-
return r.set(l, h), h;
|
|
756
|
-
}) : ee(f, a.value, !0), !0;
|
|
757
|
-
},
|
|
758
|
-
deleteProperty(u, l) {
|
|
759
|
-
var a = r.get(l);
|
|
760
|
-
if (a === void 0) {
|
|
761
|
-
if (l in u) {
|
|
762
|
-
const f = o(() => /* @__PURE__ */ K(O));
|
|
763
|
-
r.set(l, f), At(i);
|
|
764
|
-
}
|
|
765
|
-
} else
|
|
766
|
-
ee(a, O), At(i);
|
|
767
|
-
return !0;
|
|
768
|
-
},
|
|
769
|
-
get(u, l, a) {
|
|
770
|
-
var v;
|
|
771
|
-
if (l === Ht)
|
|
772
|
-
return e;
|
|
773
|
-
var f = r.get(l), h = l in u;
|
|
774
|
-
if (f === void 0 && (!h || (v = St(u, l)) != null && v.writable) && (f = o(() => {
|
|
775
|
-
var p = Pe(h ? u[l] : O), m = /* @__PURE__ */ K(p);
|
|
776
|
-
return m;
|
|
777
|
-
}), r.set(l, f)), f !== void 0) {
|
|
778
|
-
var c = D(f);
|
|
779
|
-
return c === O ? void 0 : c;
|
|
780
|
-
}
|
|
781
|
-
return Reflect.get(u, l, a);
|
|
782
|
-
},
|
|
783
|
-
getOwnPropertyDescriptor(u, l) {
|
|
784
|
-
var a = Reflect.getOwnPropertyDescriptor(u, l);
|
|
785
|
-
if (a && "value" in a) {
|
|
786
|
-
var f = r.get(l);
|
|
787
|
-
f && (a.value = D(f));
|
|
788
|
-
} else if (a === void 0) {
|
|
789
|
-
var h = r.get(l), c = h == null ? void 0 : h.v;
|
|
790
|
-
if (h !== void 0 && c !== O)
|
|
791
|
-
return {
|
|
792
|
-
enumerable: !0,
|
|
793
|
-
configurable: !0,
|
|
794
|
-
value: c,
|
|
795
|
-
writable: !0
|
|
796
|
-
};
|
|
797
|
-
}
|
|
798
|
-
return a;
|
|
799
|
-
},
|
|
800
|
-
has(u, l) {
|
|
801
|
-
var c;
|
|
802
|
-
if (l === Ht)
|
|
803
|
-
return !0;
|
|
804
|
-
var a = r.get(l), f = a !== void 0 && a.v !== O || Reflect.has(u, l);
|
|
805
|
-
if (a !== void 0 || H !== null && (!f || (c = St(u, l)) != null && c.writable)) {
|
|
806
|
-
a === void 0 && (a = o(() => {
|
|
807
|
-
var v = f ? Pe(u[l]) : O, p = /* @__PURE__ */ K(v);
|
|
808
|
-
return p;
|
|
809
|
-
}), r.set(l, a));
|
|
810
|
-
var h = D(a);
|
|
811
|
-
if (h === O)
|
|
812
|
-
return !1;
|
|
813
|
-
}
|
|
814
|
-
return f;
|
|
815
|
-
},
|
|
816
|
-
set(u, l, a, f) {
|
|
817
|
-
var A;
|
|
818
|
-
var h = r.get(l), c = l in u;
|
|
819
|
-
if (n && l === "length")
|
|
820
|
-
for (var v = a; v < /** @type {Source<number>} */
|
|
821
|
-
h.v; v += 1) {
|
|
822
|
-
var p = r.get(v + "");
|
|
823
|
-
p !== void 0 ? ee(p, O) : v in u && (p = o(() => /* @__PURE__ */ K(O)), r.set(v + "", p));
|
|
824
|
-
}
|
|
825
|
-
if (h === void 0)
|
|
826
|
-
(!c || (A = St(u, l)) != null && A.writable) && (h = o(() => /* @__PURE__ */ K(void 0)), ee(h, Pe(a)), r.set(l, h));
|
|
827
|
-
else {
|
|
828
|
-
c = h.v !== O;
|
|
829
|
-
var m = o(() => Pe(a));
|
|
830
|
-
ee(h, m);
|
|
831
|
-
}
|
|
832
|
-
var b = Reflect.getOwnPropertyDescriptor(u, l);
|
|
833
|
-
if (b != null && b.set && b.set.call(f, a), !c) {
|
|
834
|
-
if (n && typeof l == "string") {
|
|
835
|
-
var T = (
|
|
836
|
-
/** @type {Source<number>} */
|
|
837
|
-
r.get("length")
|
|
838
|
-
), E = Number(l);
|
|
839
|
-
Number.isInteger(E) && E >= T.v && ee(T, E + 1);
|
|
840
|
-
}
|
|
841
|
-
At(i);
|
|
842
|
-
}
|
|
843
|
-
return !0;
|
|
844
|
-
},
|
|
845
|
-
ownKeys(u) {
|
|
846
|
-
D(i);
|
|
847
|
-
var l = Reflect.ownKeys(u).filter((h) => {
|
|
848
|
-
var c = r.get(h);
|
|
849
|
-
return c === void 0 || c.v !== O;
|
|
850
|
-
});
|
|
851
|
-
for (var [a, f] of r)
|
|
852
|
-
f.v !== O && !(a in u) && l.push(a);
|
|
853
|
-
return l;
|
|
854
|
-
},
|
|
855
|
-
setPrototypeOf() {
|
|
856
|
-
pi();
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
);
|
|
860
|
-
}
|
|
861
|
-
var Oi, Ii, Ci;
|
|
862
|
-
function Bt(e = "") {
|
|
863
|
-
return document.createTextNode(e);
|
|
864
|
-
}
|
|
865
|
-
// @__NO_SIDE_EFFECTS__
|
|
866
|
-
function an(e) {
|
|
867
|
-
return (
|
|
868
|
-
/** @type {TemplateNode | null} */
|
|
869
|
-
Ii.call(e)
|
|
870
|
-
);
|
|
871
|
-
}
|
|
872
|
-
// @__NO_SIDE_EFFECTS__
|
|
873
|
-
function ar(e) {
|
|
874
|
-
return (
|
|
875
|
-
/** @type {TemplateNode | null} */
|
|
876
|
-
Ci.call(e)
|
|
877
|
-
);
|
|
878
|
-
}
|
|
879
|
-
function He(e, t) {
|
|
880
|
-
return /* @__PURE__ */ an(e);
|
|
881
|
-
}
|
|
882
|
-
function pr(e, t = 1, r = !1) {
|
|
883
|
-
let n = e;
|
|
884
|
-
for (; t--; )
|
|
885
|
-
n = /** @type {TemplateNode} */
|
|
886
|
-
/* @__PURE__ */ ar(n);
|
|
887
|
-
return n;
|
|
888
|
-
}
|
|
889
|
-
function Mi(e) {
|
|
890
|
-
e.textContent = "";
|
|
891
|
-
}
|
|
892
|
-
function Li() {
|
|
893
|
-
return !1;
|
|
894
|
-
}
|
|
895
|
-
function on(e) {
|
|
896
|
-
var t = g, r = H;
|
|
897
|
-
he(null), Re(null);
|
|
898
|
-
try {
|
|
899
|
-
return e();
|
|
900
|
-
} finally {
|
|
901
|
-
he(t), Re(r);
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
function Ri(e, t) {
|
|
905
|
-
var r = t.last;
|
|
906
|
-
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
907
|
-
}
|
|
908
|
-
function ke(e, t, r) {
|
|
909
|
-
var n = H;
|
|
910
|
-
n !== null && n.f & V && (e |= V);
|
|
911
|
-
var i = {
|
|
912
|
-
ctx: te,
|
|
913
|
-
deps: null,
|
|
914
|
-
nodes: null,
|
|
915
|
-
f: e | j | X,
|
|
916
|
-
first: null,
|
|
917
|
-
fn: t,
|
|
918
|
-
last: null,
|
|
919
|
-
next: null,
|
|
920
|
-
parent: n,
|
|
921
|
-
b: n && n.b,
|
|
922
|
-
prev: null,
|
|
923
|
-
teardown: null,
|
|
924
|
-
wv: 0,
|
|
925
|
-
ac: null
|
|
926
|
-
};
|
|
927
|
-
if (r)
|
|
928
|
-
try {
|
|
929
|
-
Ye(i), i.f |= kr;
|
|
930
|
-
} catch (u) {
|
|
931
|
-
throw Ve(i), u;
|
|
932
|
-
}
|
|
933
|
-
else t !== null && ye(i);
|
|
934
|
-
var s = i;
|
|
935
|
-
if (r && s.deps === null && s.teardown === null && s.nodes === null && s.first === s.last && // either `null`, or a singular child
|
|
936
|
-
!(s.f & gt) && (s = s.first, e & re && e & ot && s !== null && (s.f |= ot)), s !== null && (s.parent = n, n !== null && Ri(s, n), g !== null && g.f & C && !(e & je))) {
|
|
937
|
-
var o = (
|
|
938
|
-
/** @type {Derived} */
|
|
939
|
-
g
|
|
940
|
-
);
|
|
941
|
-
(o.effects ?? (o.effects = [])).push(s);
|
|
942
|
-
}
|
|
943
|
-
return i;
|
|
944
|
-
}
|
|
945
|
-
function un() {
|
|
946
|
-
return g !== null && !Q;
|
|
947
|
-
}
|
|
948
|
-
function ln(e) {
|
|
949
|
-
const t = ke(tr, null, !1);
|
|
950
|
-
return L(t, M), t.teardown = e, t;
|
|
951
|
-
}
|
|
952
|
-
function Di(e) {
|
|
953
|
-
return ke(Rt | li, e, !1);
|
|
954
|
-
}
|
|
955
|
-
function Ui(e) {
|
|
956
|
-
return ke(rr | gt, e, !0);
|
|
957
|
-
}
|
|
958
|
-
function Gi(e, t = [], r = [], n = []) {
|
|
959
|
-
Si(n, t, r, (i) => {
|
|
960
|
-
ke(tr, () => e(...i.map(D)), !0);
|
|
961
|
-
});
|
|
962
|
-
}
|
|
963
|
-
function Fi(e, t = 0) {
|
|
964
|
-
var r = ke(re | t, e, !0);
|
|
965
|
-
return r;
|
|
966
|
-
}
|
|
967
|
-
function kt(e) {
|
|
968
|
-
return ke(ce | gt, e, !0);
|
|
969
|
-
}
|
|
970
|
-
function fn(e) {
|
|
971
|
-
var t = e.teardown;
|
|
972
|
-
if (t !== null) {
|
|
973
|
-
const r = Le, n = g;
|
|
974
|
-
vr(!0), he(null);
|
|
975
|
-
try {
|
|
976
|
-
t.call(null);
|
|
977
|
-
} finally {
|
|
978
|
-
vr(r), he(n);
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
function hn(e, t = !1) {
|
|
983
|
-
var r = e.first;
|
|
984
|
-
for (e.first = e.last = null; r !== null; ) {
|
|
985
|
-
const i = r.ac;
|
|
986
|
-
i !== null && on(() => {
|
|
987
|
-
i.abort(Be);
|
|
988
|
-
});
|
|
989
|
-
var n = r.next;
|
|
990
|
-
r.f & je ? r.parent = null : Ve(r, t), r = n;
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
function ji(e) {
|
|
994
|
-
for (var t = e.first; t !== null; ) {
|
|
995
|
-
var r = t.next;
|
|
996
|
-
t.f & ce || Ve(t), t = r;
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
function Ve(e, t = !0) {
|
|
1000
|
-
var r = !1;
|
|
1001
|
-
(t || e.f & Vr) && e.nodes !== null && e.nodes.end !== null && (ki(
|
|
1002
|
-
e.nodes.start,
|
|
1003
|
-
/** @type {TemplateNode} */
|
|
1004
|
-
e.nodes.end
|
|
1005
|
-
), r = !0), hn(e, t && !r), pt(e, 0), L(e, ue);
|
|
1006
|
-
var n = e.nodes && e.nodes.t;
|
|
1007
|
-
if (n !== null)
|
|
1008
|
-
for (const s of n)
|
|
1009
|
-
s.stop();
|
|
1010
|
-
fn(e);
|
|
1011
|
-
var i = e.parent;
|
|
1012
|
-
i !== null && i.first !== null && cn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
|
|
1013
|
-
}
|
|
1014
|
-
function ki(e, t) {
|
|
1015
|
-
for (; e !== null; ) {
|
|
1016
|
-
var r = e === t ? null : /* @__PURE__ */ ar(e);
|
|
1017
|
-
e.remove(), e = r;
|
|
1018
|
-
}
|
|
1019
|
-
}
|
|
1020
|
-
function cn(e) {
|
|
1021
|
-
var t = e.parent, r = e.prev, n = e.next;
|
|
1022
|
-
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1023
|
-
}
|
|
1024
|
-
function pn(e, t, r = !0) {
|
|
1025
|
-
var n = [];
|
|
1026
|
-
vn(e, n, !0);
|
|
1027
|
-
var i = () => {
|
|
1028
|
-
r && Ve(e), t && t();
|
|
1029
|
-
}, s = n.length;
|
|
1030
|
-
if (s > 0) {
|
|
1031
|
-
var o = () => --s || i();
|
|
1032
|
-
for (var u of n)
|
|
1033
|
-
u.out(o);
|
|
1034
|
-
} else
|
|
1035
|
-
i();
|
|
1036
|
-
}
|
|
1037
|
-
function vn(e, t, r) {
|
|
1038
|
-
if (!(e.f & V)) {
|
|
1039
|
-
e.f ^= V;
|
|
1040
|
-
var n = e.nodes && e.nodes.t;
|
|
1041
|
-
if (n !== null)
|
|
1042
|
-
for (const u of n)
|
|
1043
|
-
(u.is_global || r) && t.push(u);
|
|
1044
|
-
for (var i = e.first; i !== null; ) {
|
|
1045
|
-
var s = i.next, o = (i.f & ot) !== 0 || // If this is a branch effect without a block effect parent,
|
|
1046
|
-
// it means the parent block effect was pruned. In that case,
|
|
1047
|
-
// transparency information was transferred to the branch effect.
|
|
1048
|
-
(i.f & ce) !== 0 && (e.f & re) !== 0;
|
|
1049
|
-
vn(i, t, o ? r : !1), i = s;
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
function mn(e) {
|
|
1054
|
-
dn(e, !0);
|
|
1055
|
-
}
|
|
1056
|
-
function dn(e, t) {
|
|
1057
|
-
if (e.f & V) {
|
|
1058
|
-
e.f ^= V, e.f & M || (L(e, j), ye(e));
|
|
1059
|
-
for (var r = e.first; r !== null; ) {
|
|
1060
|
-
var n = r.next, i = (r.f & ot) !== 0 || (r.f & ce) !== 0;
|
|
1061
|
-
dn(r, i ? t : !1), r = n;
|
|
1062
|
-
}
|
|
1063
|
-
var s = e.nodes && e.nodes.t;
|
|
1064
|
-
if (s !== null)
|
|
1065
|
-
for (const o of s)
|
|
1066
|
-
(o.is_global || t) && o.in();
|
|
1067
|
-
}
|
|
1068
|
-
}
|
|
1069
|
-
let ge = !1;
|
|
1070
|
-
function ct(e) {
|
|
1071
|
-
ge = e;
|
|
1072
|
-
}
|
|
1073
|
-
let Le = !1;
|
|
1074
|
-
function vr(e) {
|
|
1075
|
-
Le = e;
|
|
1076
|
-
}
|
|
1077
|
-
let g = null, Q = !1;
|
|
1078
|
-
function he(e) {
|
|
1079
|
-
g = e;
|
|
1080
|
-
}
|
|
1081
|
-
let H = null;
|
|
1082
|
-
function Re(e) {
|
|
1083
|
-
H = e;
|
|
1084
|
-
}
|
|
1085
|
-
let U = null;
|
|
1086
|
-
function Vi(e) {
|
|
1087
|
-
g !== null && (U === null ? U = [e] : U.push(e));
|
|
1088
|
-
}
|
|
1089
|
-
let F = null, k = 0, q = null;
|
|
1090
|
-
function qi(e) {
|
|
1091
|
-
q = e;
|
|
1092
|
-
}
|
|
1093
|
-
let _n = 1, me = 0, be = me;
|
|
1094
|
-
function mr(e) {
|
|
1095
|
-
be = e;
|
|
1096
|
-
}
|
|
1097
|
-
function gn() {
|
|
1098
|
-
return ++_n;
|
|
1099
|
-
}
|
|
1100
|
-
function tt(e) {
|
|
1101
|
-
var t = e.f;
|
|
1102
|
-
if (t & j)
|
|
1103
|
-
return !0;
|
|
1104
|
-
if (t & C && (e.f &= ~Ee), t & pe) {
|
|
1105
|
-
for (var r = (
|
|
1106
|
-
/** @type {Value[]} */
|
|
1107
|
-
e.deps
|
|
1108
|
-
), n = r.length, i = 0; i < n; i++) {
|
|
1109
|
-
var s = r[i];
|
|
1110
|
-
if (tt(
|
|
1111
|
-
/** @type {Derived} */
|
|
1112
|
-
s
|
|
1113
|
-
) && tn(
|
|
1114
|
-
/** @type {Derived} */
|
|
1115
|
-
s
|
|
1116
|
-
), s.wv > e.wv)
|
|
1117
|
-
return !0;
|
|
1118
|
-
}
|
|
1119
|
-
t & X && // During time traveling we don't want to reset the status so that
|
|
1120
|
-
// traversal of the graph in the other batches still happens
|
|
1121
|
-
I === null && L(e, M);
|
|
1122
|
-
}
|
|
1123
|
-
return !1;
|
|
1124
|
-
}
|
|
1125
|
-
function bn(e, t, r = !0) {
|
|
1126
|
-
var n = e.reactions;
|
|
1127
|
-
if (n !== null && !(U != null && U.includes(e)))
|
|
1128
|
-
for (var i = 0; i < n.length; i++) {
|
|
1129
|
-
var s = n[i];
|
|
1130
|
-
s.f & C ? bn(
|
|
1131
|
-
/** @type {Derived} */
|
|
1132
|
-
s,
|
|
1133
|
-
t,
|
|
1134
|
-
!1
|
|
1135
|
-
) : t === s && (r ? L(s, j) : s.f & M && L(s, pe), ye(
|
|
1136
|
-
/** @type {Effect} */
|
|
1137
|
-
s
|
|
1138
|
-
));
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
|
-
function En(e) {
|
|
1142
|
-
var p;
|
|
1143
|
-
var t = F, r = k, n = q, i = g, s = U, o = te, u = Q, l = be, a = e.f;
|
|
1144
|
-
F = /** @type {null | Value[]} */
|
|
1145
|
-
null, k = 0, q = null, g = a & (ce | je) ? null : e, U = null, ut(e.ctx), Q = !1, be = ++me, e.ac !== null && (on(() => {
|
|
1146
|
-
e.ac.abort(Be);
|
|
1147
|
-
}), e.ac = null);
|
|
1148
|
-
try {
|
|
1149
|
-
e.f |= Dt;
|
|
1150
|
-
var f = (
|
|
1151
|
-
/** @type {Function} */
|
|
1152
|
-
e.fn
|
|
1153
|
-
), h = f(), c = e.deps;
|
|
1154
|
-
if (F !== null) {
|
|
1155
|
-
var v;
|
|
1156
|
-
if (pt(e, k), c !== null && k > 0)
|
|
1157
|
-
for (c.length = k + F.length, v = 0; v < F.length; v++)
|
|
1158
|
-
c[k + v] = F[v];
|
|
1159
|
-
else
|
|
1160
|
-
e.deps = c = F;
|
|
1161
|
-
if (un() && e.f & X)
|
|
1162
|
-
for (v = k; v < c.length; v++)
|
|
1163
|
-
((p = c[v]).reactions ?? (p.reactions = [])).push(e);
|
|
1164
|
-
} else c !== null && k < c.length && (pt(e, k), c.length = k);
|
|
1165
|
-
if (Wr() && q !== null && !Q && c !== null && !(e.f & (C | pe | j)))
|
|
1166
|
-
for (v = 0; v < /** @type {Source[]} */
|
|
1167
|
-
q.length; v++)
|
|
1168
|
-
bn(
|
|
1169
|
-
q[v],
|
|
1170
|
-
/** @type {Effect} */
|
|
1171
|
-
e
|
|
1172
|
-
);
|
|
1173
|
-
if (i !== null && i !== e) {
|
|
1174
|
-
if (me++, i.deps !== null)
|
|
1175
|
-
for (let m = 0; m < r; m += 1)
|
|
1176
|
-
i.deps[m].rv = me;
|
|
1177
|
-
if (t !== null)
|
|
1178
|
-
for (const m of t)
|
|
1179
|
-
m.rv = me;
|
|
1180
|
-
q !== null && (n === null ? n = q : n.push(.../** @type {Source[]} */
|
|
1181
|
-
q));
|
|
1182
|
-
}
|
|
1183
|
-
return e.f & le && (e.f ^= le), h;
|
|
1184
|
-
} catch (m) {
|
|
1185
|
-
return Ei(m);
|
|
1186
|
-
} finally {
|
|
1187
|
-
e.f ^= Dt, F = t, k = r, q = n, g = i, U = s, ut(o), Q = u, be = l;
|
|
1188
|
-
}
|
|
1189
|
-
}
|
|
1190
|
-
function Xi(e, t) {
|
|
1191
|
-
let r = t.reactions;
|
|
1192
|
-
if (r !== null) {
|
|
1193
|
-
var n = ii.call(r, e);
|
|
1194
|
-
if (n !== -1) {
|
|
1195
|
-
var i = r.length - 1;
|
|
1196
|
-
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
1197
|
-
}
|
|
1198
|
-
}
|
|
1199
|
-
if (r === null && t.f & C && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1200
|
-
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1201
|
-
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1202
|
-
(F === null || !F.includes(t))) {
|
|
1203
|
-
var s = (
|
|
1204
|
-
/** @type {Derived} */
|
|
1205
|
-
t
|
|
1206
|
-
);
|
|
1207
|
-
s.f & X && (s.f ^= X, s.f &= ~Ee), nr(s), en(s), pt(s, 0);
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
function pt(e, t) {
|
|
1211
|
-
var r = e.deps;
|
|
1212
|
-
if (r !== null)
|
|
1213
|
-
for (var n = t; n < r.length; n++)
|
|
1214
|
-
Xi(e, r[n]);
|
|
1215
|
-
}
|
|
1216
|
-
function Ye(e) {
|
|
1217
|
-
var t = e.f;
|
|
1218
|
-
if (!(t & ue)) {
|
|
1219
|
-
L(e, M);
|
|
1220
|
-
var r = H, n = ge;
|
|
1221
|
-
H = e, ge = !0;
|
|
1222
|
-
try {
|
|
1223
|
-
t & (re | Fr) ? ji(e) : hn(e), fn(e);
|
|
1224
|
-
var i = En(e);
|
|
1225
|
-
e.teardown = typeof i == "function" ? i : null, e.wv = _n;
|
|
1226
|
-
var s;
|
|
1227
|
-
Lt && mi && e.f & j && e.deps;
|
|
1228
|
-
} finally {
|
|
1229
|
-
ge = n, H = r;
|
|
1230
|
-
}
|
|
1231
|
-
}
|
|
1232
|
-
}
|
|
1233
|
-
function D(e) {
|
|
1234
|
-
var t = e.f, r = (t & C) !== 0;
|
|
1235
|
-
if (g !== null && !Q) {
|
|
1236
|
-
var n = H !== null && (H.f & ue) !== 0;
|
|
1237
|
-
if (!n && !(U != null && U.includes(e))) {
|
|
1238
|
-
var i = g.deps;
|
|
1239
|
-
if (g.f & Dt)
|
|
1240
|
-
e.rv < me && (e.rv = me, F === null && i !== null && i[k] === e ? k++ : F === null ? F = [e] : F.push(e));
|
|
1241
|
-
else {
|
|
1242
|
-
(g.deps ?? (g.deps = [])).push(e);
|
|
1243
|
-
var s = e.reactions;
|
|
1244
|
-
s === null ? e.reactions = [g] : s.includes(g) || s.push(g);
|
|
1245
|
-
}
|
|
1246
|
-
}
|
|
1247
|
-
}
|
|
1248
|
-
if (Le && fe.has(e))
|
|
1249
|
-
return fe.get(e);
|
|
1250
|
-
if (r) {
|
|
1251
|
-
var o = (
|
|
1252
|
-
/** @type {Derived} */
|
|
1253
|
-
e
|
|
1254
|
-
);
|
|
1255
|
-
if (Le) {
|
|
1256
|
-
var u = o.v;
|
|
1257
|
-
return (!(o.f & M) && o.reactions !== null || xn(o)) && (u = sr(o)), fe.set(o, u), u;
|
|
1258
|
-
}
|
|
1259
|
-
var l = (o.f & X) === 0 && !Q && g !== null && (ge || (g.f & X) !== 0), a = o.deps === null;
|
|
1260
|
-
tt(o) && (l && (o.f |= X), tn(o)), l && !a && yn(o);
|
|
1261
|
-
}
|
|
1262
|
-
if (I != null && I.has(e))
|
|
1263
|
-
return I.get(e);
|
|
1264
|
-
if (e.f & le)
|
|
1265
|
-
throw e.v;
|
|
1266
|
-
return e.v;
|
|
1267
|
-
}
|
|
1268
|
-
function yn(e) {
|
|
1269
|
-
if (e.deps !== null) {
|
|
1270
|
-
e.f |= X;
|
|
1271
|
-
for (const t of e.deps)
|
|
1272
|
-
(t.reactions ?? (t.reactions = [])).push(e), t.f & C && !(t.f & X) && yn(
|
|
1273
|
-
/** @type {Derived} */
|
|
1274
|
-
t
|
|
1275
|
-
);
|
|
1276
|
-
}
|
|
1277
|
-
}
|
|
1278
|
-
function xn(e) {
|
|
1279
|
-
if (e.v === O) return !0;
|
|
1280
|
-
if (e.deps === null) return !1;
|
|
1281
|
-
for (const t of e.deps)
|
|
1282
|
-
if (fe.has(t) || t.f & C && xn(
|
|
1283
|
-
/** @type {Derived} */
|
|
1284
|
-
t
|
|
1285
|
-
))
|
|
1286
|
-
return !0;
|
|
1287
|
-
return !1;
|
|
1288
|
-
}
|
|
1289
|
-
function zi(e) {
|
|
1290
|
-
var t = Q;
|
|
1291
|
-
try {
|
|
1292
|
-
return Q = !0, e();
|
|
1293
|
-
} finally {
|
|
1294
|
-
Q = t;
|
|
1295
|
-
}
|
|
1296
|
-
}
|
|
1297
|
-
const Wi = /* @__PURE__ */ new Set(), Qi = /* @__PURE__ */ new Set();
|
|
1298
|
-
function Zi(e) {
|
|
1299
|
-
for (var t = 0; t < e.length; t++)
|
|
1300
|
-
Wi.add(e[t]);
|
|
1301
|
-
for (var r of Qi)
|
|
1302
|
-
r(e);
|
|
1303
|
-
}
|
|
1304
|
-
function $i(e) {
|
|
1305
|
-
var t = document.createElement("template");
|
|
1306
|
-
return t.innerHTML = e.replaceAll("<!>", "<!---->"), t.content;
|
|
1307
|
-
}
|
|
1308
|
-
function Yi(e, t) {
|
|
1309
|
-
var r = (
|
|
1310
|
-
/** @type {Effect} */
|
|
1311
|
-
H
|
|
1312
|
-
);
|
|
1313
|
-
r.nodes === null && (r.nodes = { start: e, end: t, a: null, t: null });
|
|
1314
|
-
}
|
|
1315
|
-
// @__NO_SIDE_EFFECTS__
|
|
1316
|
-
function Tn(e, t) {
|
|
1317
|
-
var r = (t & ri) !== 0, n, i = !e.startsWith("<!>");
|
|
1318
|
-
return () => {
|
|
1319
|
-
n === void 0 && (n = $i(i ? e : "<!>" + e), n = /** @type {TemplateNode} */
|
|
1320
|
-
/* @__PURE__ */ an(n));
|
|
1321
|
-
var s = (
|
|
1322
|
-
/** @type {TemplateNode} */
|
|
1323
|
-
r || Oi ? document.importNode(n, !0) : n.cloneNode(!0)
|
|
1324
|
-
);
|
|
1325
|
-
return Yi(s, s), s;
|
|
1326
|
-
};
|
|
1327
|
-
}
|
|
1328
|
-
function dr(e, t) {
|
|
1329
|
-
e !== null && e.before(
|
|
1330
|
-
/** @type {Node} */
|
|
1331
|
-
t
|
|
1332
|
-
);
|
|
1333
|
-
}
|
|
1334
|
-
function _r(e, t) {
|
|
1335
|
-
var r = t == null ? "" : typeof t == "object" ? t + "" : t;
|
|
1336
|
-
r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = r + "");
|
|
1337
|
-
}
|
|
1338
|
-
function Ji(e, t) {
|
|
1339
|
-
return t;
|
|
1340
|
-
}
|
|
1341
|
-
function Ki(e, t, r) {
|
|
1342
|
-
for (var n = [], i = t.length, s, o = t.length, u = 0; u < i; u++) {
|
|
1343
|
-
let h = t[u];
|
|
1344
|
-
pn(
|
|
1345
|
-
h,
|
|
1346
|
-
() => {
|
|
1347
|
-
if (s) {
|
|
1348
|
-
if (s.pending.delete(h), s.done.add(h), s.pending.size === 0) {
|
|
1349
|
-
var c = (
|
|
1350
|
-
/** @type {Set<EachOutroGroup>} */
|
|
1351
|
-
e.outrogroups
|
|
1352
|
-
);
|
|
1353
|
-
Vt(er(s.done)), c.delete(s), c.size === 0 && (e.outrogroups = null);
|
|
1354
|
-
}
|
|
1355
|
-
} else
|
|
1356
|
-
o -= 1;
|
|
1357
|
-
},
|
|
1358
|
-
!1
|
|
1359
|
-
);
|
|
1360
|
-
}
|
|
1361
|
-
if (o === 0) {
|
|
1362
|
-
var l = n.length === 0 && r !== null;
|
|
1363
|
-
if (l) {
|
|
1364
|
-
var a = (
|
|
1365
|
-
/** @type {Element} */
|
|
1366
|
-
r
|
|
1367
|
-
), f = (
|
|
1368
|
-
/** @type {Element} */
|
|
1369
|
-
a.parentNode
|
|
1370
|
-
);
|
|
1371
|
-
Mi(f), f.append(a), e.items.clear();
|
|
1372
|
-
}
|
|
1373
|
-
Vt(t, !l);
|
|
1374
|
-
} else
|
|
1375
|
-
s = {
|
|
1376
|
-
pending: new Set(t),
|
|
1377
|
-
done: /* @__PURE__ */ new Set()
|
|
1378
|
-
}, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(s);
|
|
1379
|
-
}
|
|
1380
|
-
function Vt(e, t = !0) {
|
|
1381
|
-
for (var r = 0; r < e.length; r++)
|
|
1382
|
-
Ve(e[r], t);
|
|
1383
|
-
}
|
|
1384
|
-
var gr;
|
|
1385
|
-
function es(e, t, r, n, i, s = null) {
|
|
1386
|
-
var o = e, u = /* @__PURE__ */ new Map();
|
|
1387
|
-
{
|
|
1388
|
-
var l = (
|
|
1389
|
-
/** @type {Element} */
|
|
1390
|
-
e
|
|
1391
|
-
);
|
|
1392
|
-
o = l.appendChild(Bt());
|
|
1393
|
-
}
|
|
1394
|
-
var a = null, f = /* @__PURE__ */ Bi(() => {
|
|
1395
|
-
var b = r();
|
|
1396
|
-
return Rr(b) ? b : b == null ? [] : er(b);
|
|
1397
|
-
}), h, c = !0;
|
|
1398
|
-
function v() {
|
|
1399
|
-
m.fallback = a, ts(m, h, o, t, n), a !== null && (h.length === 0 ? a.f & se ? (a.f ^= se, Qe(a, null, o)) : mn(a) : pn(a, () => {
|
|
1400
|
-
a = null;
|
|
1401
|
-
}));
|
|
1402
|
-
}
|
|
1403
|
-
var p = Fi(() => {
|
|
1404
|
-
h = /** @type {V[]} */
|
|
1405
|
-
D(f);
|
|
1406
|
-
for (var b = h.length, T = /* @__PURE__ */ new Set(), E = (
|
|
1407
|
-
/** @type {Batch} */
|
|
1408
|
-
y
|
|
1409
|
-
), A = Li(), N = 0; N < b; N += 1) {
|
|
1410
|
-
var B = h[N], G = n(B, N), P = c ? null : u.get(G);
|
|
1411
|
-
P ? (P.v && $e(P.v, B), P.i && $e(P.i, N), A && E.skipped_effects.delete(P.e)) : (P = rs(
|
|
1412
|
-
u,
|
|
1413
|
-
c ? o : gr ?? (gr = Bt()),
|
|
1414
|
-
B,
|
|
1415
|
-
G,
|
|
1416
|
-
N,
|
|
1417
|
-
i,
|
|
1418
|
-
t,
|
|
1419
|
-
r
|
|
1420
|
-
), c || (P.e.f |= se), u.set(G, P)), T.add(G);
|
|
1421
|
-
}
|
|
1422
|
-
if (b === 0 && s && !a && (c ? a = kt(() => s(o)) : (a = kt(() => s(gr ?? (gr = Bt()))), a.f |= se)), !c)
|
|
1423
|
-
if (A) {
|
|
1424
|
-
for (const [we, Z] of u)
|
|
1425
|
-
T.has(we) || E.skipped_effects.add(Z.e);
|
|
1426
|
-
E.oncommit(v), E.ondiscard(() => {
|
|
1427
|
-
});
|
|
1428
|
-
} else
|
|
1429
|
-
v();
|
|
1430
|
-
D(f);
|
|
1431
|
-
}), m = { effect: p, items: u, outrogroups: null, fallback: a };
|
|
1432
|
-
c = !1;
|
|
1433
|
-
}
|
|
1434
|
-
function ts(e, t, r, n, i) {
|
|
1435
|
-
var we;
|
|
1436
|
-
var s = t.length, o = e.items, u = e.effect.first, l, a = null, f = [], h = [], c, v, p, m;
|
|
1437
|
-
for (m = 0; m < s; m += 1) {
|
|
1438
|
-
if (c = t[m], v = i(c, m), p = /** @type {EachItem} */
|
|
1439
|
-
o.get(v).e, e.outrogroups !== null)
|
|
1440
|
-
for (const Z of e.outrogroups)
|
|
1441
|
-
Z.pending.delete(p), Z.done.delete(p);
|
|
1442
|
-
if (p.f & se)
|
|
1443
|
-
if (p.f ^= se, p === u)
|
|
1444
|
-
Qe(p, null, r);
|
|
1445
|
-
else {
|
|
1446
|
-
var b = a ? a.next : u;
|
|
1447
|
-
p === e.effect.last && (e.effect.last = p.prev), p.prev && (p.prev.next = p.next), p.next && (p.next.prev = p.prev), ie(e, a, p), ie(e, p, b), Qe(p, b, r), a = p, f = [], h = [], u = a.next;
|
|
1448
|
-
continue;
|
|
1449
|
-
}
|
|
1450
|
-
if (p.f & V && mn(p), p !== u) {
|
|
1451
|
-
if (l !== void 0 && l.has(p)) {
|
|
1452
|
-
if (f.length < h.length) {
|
|
1453
|
-
var T = h[0], E;
|
|
1454
|
-
a = T.prev;
|
|
1455
|
-
var A = f[0], N = f[f.length - 1];
|
|
1456
|
-
for (E = 0; E < f.length; E += 1)
|
|
1457
|
-
Qe(f[E], T, r);
|
|
1458
|
-
for (E = 0; E < h.length; E += 1)
|
|
1459
|
-
l.delete(h[E]);
|
|
1460
|
-
ie(e, A.prev, N.next), ie(e, a, A), ie(e, N, T), u = T, a = N, m -= 1, f = [], h = [];
|
|
1461
|
-
} else
|
|
1462
|
-
l.delete(p), Qe(p, u, r), ie(e, p.prev, p.next), ie(e, p, a === null ? e.effect.first : a.next), ie(e, a, p), a = p;
|
|
1463
|
-
continue;
|
|
1464
|
-
}
|
|
1465
|
-
for (f = [], h = []; u !== null && u !== p; )
|
|
1466
|
-
(l ?? (l = /* @__PURE__ */ new Set())).add(u), h.push(u), u = u.next;
|
|
1467
|
-
if (u === null)
|
|
1468
|
-
continue;
|
|
1469
|
-
}
|
|
1470
|
-
p.f & se || f.push(p), a = p, u = p.next;
|
|
1471
|
-
}
|
|
1472
|
-
if (e.outrogroups !== null) {
|
|
1473
|
-
for (const Z of e.outrogroups)
|
|
1474
|
-
Z.pending.size === 0 && (Vt(er(Z.done)), (we = e.outrogroups) == null || we.delete(Z));
|
|
1475
|
-
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
1476
|
-
}
|
|
1477
|
-
if (u !== null || l !== void 0) {
|
|
1478
|
-
var B = [];
|
|
1479
|
-
if (l !== void 0)
|
|
1480
|
-
for (p of l)
|
|
1481
|
-
p.f & V || B.push(p);
|
|
1482
|
-
for (; u !== null; )
|
|
1483
|
-
!(u.f & V) && u !== e.fallback && B.push(u), u = u.next;
|
|
1484
|
-
var G = B.length;
|
|
1485
|
-
if (G > 0) {
|
|
1486
|
-
var P = s === 0 ? r : null;
|
|
1487
|
-
Ki(e, B, P);
|
|
1488
|
-
}
|
|
1489
|
-
}
|
|
1490
|
-
}
|
|
1491
|
-
function rs(e, t, r, n, i, s, o, u) {
|
|
1492
|
-
var l = o & Kn ? o & ti ? Ze(r) : /* @__PURE__ */ nn(r, !1, !1) : null, a = o & ei ? Ze(i) : null;
|
|
1493
|
-
return {
|
|
1494
|
-
v: l,
|
|
1495
|
-
i: a,
|
|
1496
|
-
e: kt(() => (s(t, l ?? r, a ?? i, u), () => {
|
|
1497
|
-
e.delete(n);
|
|
1498
|
-
}))
|
|
1499
|
-
};
|
|
1500
|
-
}
|
|
1501
|
-
function Qe(e, t, r) {
|
|
1502
|
-
if (e.nodes)
|
|
1503
|
-
for (var n = e.nodes.start, i = e.nodes.end, s = t && !(t.f & se) ? (
|
|
1504
|
-
/** @type {EffectNodes} */
|
|
1505
|
-
t.nodes.start
|
|
1506
|
-
) : r; n !== null; ) {
|
|
1507
|
-
var o = (
|
|
1508
|
-
/** @type {TemplateNode} */
|
|
1509
|
-
/* @__PURE__ */ ar(n)
|
|
1510
|
-
);
|
|
1511
|
-
if (s.before(n), n === i)
|
|
1512
|
-
return;
|
|
1513
|
-
n = o;
|
|
1514
|
-
}
|
|
1515
|
-
}
|
|
1516
|
-
function ie(e, t, r) {
|
|
1517
|
-
t === null ? e.effect.first = r : t.next = r, r === null ? e.effect.last = t : r.prev = t;
|
|
1518
|
-
}
|
|
1519
|
-
const br = [...`
|
|
1520
|
-
\r\f \v\uFEFF`];
|
|
1521
|
-
function ns(e, t, r) {
|
|
1522
|
-
var n = e == null ? "" : "" + e;
|
|
1523
|
-
if (r) {
|
|
1524
|
-
for (var i in r)
|
|
1525
|
-
if (r[i])
|
|
1526
|
-
n = n ? n + " " + i : i;
|
|
1527
|
-
else if (n.length)
|
|
1528
|
-
for (var s = i.length, o = 0; (o = n.indexOf(i, o)) >= 0; ) {
|
|
1529
|
-
var u = o + s;
|
|
1530
|
-
(o === 0 || br.includes(n[o - 1])) && (u === n.length || br.includes(n[u])) ? n = (o === 0 ? "" : n.substring(0, o)) + n.substring(u + 1) : o = u;
|
|
1531
|
-
}
|
|
1532
|
-
}
|
|
1533
|
-
return n === "" ? null : n;
|
|
1534
|
-
}
|
|
1535
|
-
function Er(e, t, r, n, i, s) {
|
|
1536
|
-
var o = e.__className;
|
|
1537
|
-
if (o !== r || o === void 0) {
|
|
1538
|
-
var u = ns(r, n, s);
|
|
1539
|
-
u == null ? e.removeAttribute("class") : e.className = u, e.__className = r;
|
|
1540
|
-
} else if (s && i !== s)
|
|
1541
|
-
for (var l in s) {
|
|
1542
|
-
var a = !!s[l];
|
|
1543
|
-
(i == null || a !== !!i[l]) && e.classList.toggle(l, a);
|
|
1544
|
-
}
|
|
1545
|
-
return s;
|
|
1546
|
-
}
|
|
1547
|
-
const is = Symbol("is custom element"), ss = Symbol("is html");
|
|
1548
|
-
function as(e, t, r, n) {
|
|
1549
|
-
var i = os(e);
|
|
1550
|
-
i[t] !== (i[t] = r) && (r == null ? e.removeAttribute(t) : typeof r != "string" && us(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
1551
|
-
}
|
|
1552
|
-
function os(e) {
|
|
1553
|
-
return (
|
|
1554
|
-
/** @type {Record<string | symbol, unknown>} **/
|
|
1555
|
-
// @ts-expect-error
|
|
1556
|
-
e.__attributes ?? (e.__attributes = {
|
|
1557
|
-
[is]: e.nodeName.includes("-"),
|
|
1558
|
-
[ss]: e.namespaceURI === ni
|
|
1559
|
-
})
|
|
1560
|
-
);
|
|
1561
|
-
}
|
|
1562
|
-
var yr = /* @__PURE__ */ new Map();
|
|
1563
|
-
function us(e) {
|
|
1564
|
-
var t = e.getAttribute("is") || e.nodeName, r = yr.get(t);
|
|
1565
|
-
if (r) return r;
|
|
1566
|
-
yr.set(t, r = []);
|
|
1567
|
-
for (var n, i = e, s = Element.prototype; s !== i; ) {
|
|
1568
|
-
n = ai(i);
|
|
1569
|
-
for (var o in n)
|
|
1570
|
-
n[o].set && r.push(o);
|
|
1571
|
-
i = Dr(i);
|
|
1572
|
-
}
|
|
1573
|
-
return r;
|
|
1574
|
-
}
|
|
1575
|
-
function or(e, t, r) {
|
|
1576
|
-
if (e == null)
|
|
1577
|
-
return t(void 0), r && r(void 0), oe;
|
|
1578
|
-
const n = zi(
|
|
1579
|
-
() => e.subscribe(
|
|
1580
|
-
t,
|
|
1581
|
-
// @ts-expect-error
|
|
1582
|
-
r
|
|
1583
|
-
)
|
|
1584
|
-
);
|
|
1585
|
-
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
1586
|
-
}
|
|
1587
|
-
const Ae = [];
|
|
1588
|
-
function ls(e, t) {
|
|
1589
|
-
return {
|
|
1590
|
-
subscribe: bt(e, t).subscribe
|
|
1591
|
-
};
|
|
1592
|
-
}
|
|
1593
|
-
function bt(e, t = oe) {
|
|
1594
|
-
let r = null;
|
|
1595
|
-
const n = /* @__PURE__ */ new Set();
|
|
1596
|
-
function i(u) {
|
|
1597
|
-
if (Xr(e, u) && (e = u, r)) {
|
|
1598
|
-
const l = !Ae.length;
|
|
1599
|
-
for (const a of n)
|
|
1600
|
-
a[1](), Ae.push(a, e);
|
|
1601
|
-
if (l) {
|
|
1602
|
-
for (let a = 0; a < Ae.length; a += 2)
|
|
1603
|
-
Ae[a][0](Ae[a + 1]);
|
|
1604
|
-
Ae.length = 0;
|
|
1605
|
-
}
|
|
1606
|
-
}
|
|
1607
|
-
}
|
|
1608
|
-
function s(u) {
|
|
1609
|
-
i(u(
|
|
1610
|
-
/** @type {T} */
|
|
1611
|
-
e
|
|
1612
|
-
));
|
|
1613
|
-
}
|
|
1614
|
-
function o(u, l = oe) {
|
|
1615
|
-
const a = [u, l];
|
|
1616
|
-
return n.add(a), n.size === 1 && (r = t(i, s) || oe), u(
|
|
1617
|
-
/** @type {T} */
|
|
1618
|
-
e
|
|
1619
|
-
), () => {
|
|
1620
|
-
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
1621
|
-
};
|
|
1622
|
-
}
|
|
1623
|
-
return { set: i, update: s, subscribe: o };
|
|
1624
|
-
}
|
|
1625
|
-
function qe(e, t, r) {
|
|
1626
|
-
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1627
|
-
if (!i.every(Boolean))
|
|
1628
|
-
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1629
|
-
const s = t.length < 2;
|
|
1630
|
-
return ls(r, (o, u) => {
|
|
1631
|
-
let l = !1;
|
|
1632
|
-
const a = [];
|
|
1633
|
-
let f = 0, h = oe;
|
|
1634
|
-
const c = () => {
|
|
1635
|
-
if (f)
|
|
1636
|
-
return;
|
|
1637
|
-
h();
|
|
1638
|
-
const p = t(n ? a[0] : a, o, u);
|
|
1639
|
-
s ? o(p) : h = typeof p == "function" ? p : oe;
|
|
1640
|
-
}, v = i.map(
|
|
1641
|
-
(p, m) => or(
|
|
1642
|
-
p,
|
|
1643
|
-
(b) => {
|
|
1644
|
-
a[m] = b, f &= ~(1 << m), l && c();
|
|
1645
|
-
},
|
|
1646
|
-
() => {
|
|
1647
|
-
f |= 1 << m;
|
|
1648
|
-
}
|
|
1649
|
-
)
|
|
1650
|
-
);
|
|
1651
|
-
return l = !0, c(), function() {
|
|
1652
|
-
Ur(v), h(), l = !1;
|
|
1653
|
-
};
|
|
1654
|
-
});
|
|
1655
|
-
}
|
|
1656
|
-
function fs(e) {
|
|
1657
|
-
let t;
|
|
1658
|
-
return or(e, (r) => t = r)(), t;
|
|
1659
|
-
}
|
|
1660
|
-
let qt = Symbol();
|
|
1661
|
-
function hs(e, t, r) {
|
|
1662
|
-
const n = r[t] ?? (r[t] = {
|
|
1663
|
-
store: null,
|
|
1664
|
-
source: /* @__PURE__ */ nn(void 0),
|
|
1665
|
-
unsubscribe: oe
|
|
1666
|
-
});
|
|
1667
|
-
if (n.store !== e && !(qt in r))
|
|
1668
|
-
if (n.unsubscribe(), n.store = e ?? null, e == null)
|
|
1669
|
-
n.source.v = void 0, n.unsubscribe = oe;
|
|
1670
|
-
else {
|
|
1671
|
-
var i = !0;
|
|
1672
|
-
n.unsubscribe = or(e, (s) => {
|
|
1673
|
-
i ? n.source.v = s : ee(n.source, s);
|
|
1674
|
-
}), i = !1;
|
|
1675
|
-
}
|
|
1676
|
-
return e && qt in r ? fs(e) : D(n.source);
|
|
1677
|
-
}
|
|
1678
|
-
function cs() {
|
|
1679
|
-
const e = {};
|
|
1680
|
-
function t() {
|
|
1681
|
-
ln(() => {
|
|
1682
|
-
for (var r in e)
|
|
1683
|
-
e[r].unsubscribe();
|
|
1684
|
-
si(e, qt, {
|
|
1685
|
-
enumerable: !1,
|
|
1686
|
-
value: !0
|
|
1687
|
-
});
|
|
1688
|
-
});
|
|
1689
|
-
}
|
|
1690
|
-
return [e, t];
|
|
1691
|
-
}
|
|
1692
|
-
function nt(e, t, r, n) {
|
|
1693
|
-
var i = (
|
|
1694
|
-
/** @type {V} */
|
|
1695
|
-
n
|
|
1696
|
-
), s = !0, o = () => (s && (s = !1, i = /** @type {V} */
|
|
1697
|
-
n), i), u;
|
|
1698
|
-
u = /** @type {V} */
|
|
1699
|
-
e[t], u === void 0 && n !== void 0 && (u = o());
|
|
1700
|
-
var l;
|
|
1701
|
-
return l = () => {
|
|
1702
|
-
var a = (
|
|
1703
|
-
/** @type {V} */
|
|
1704
|
-
e[t]
|
|
1705
|
-
);
|
|
1706
|
-
return a === void 0 ? o() : (s = !0, a);
|
|
1707
|
-
}, l;
|
|
1708
|
-
}
|
|
1709
|
-
function ps(e) {
|
|
1710
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1711
|
-
}
|
|
1712
|
-
var vs = function(t) {
|
|
1713
|
-
return ms(t) && !ds(t);
|
|
1714
|
-
};
|
|
1715
|
-
function ms(e) {
|
|
1716
|
-
return !!e && typeof e == "object";
|
|
1717
|
-
}
|
|
1718
|
-
function ds(e) {
|
|
1719
|
-
var t = Object.prototype.toString.call(e);
|
|
1720
|
-
return t === "[object RegExp]" || t === "[object Date]" || bs(e);
|
|
1721
|
-
}
|
|
1722
|
-
var _s = typeof Symbol == "function" && Symbol.for, gs = _s ? Symbol.for("react.element") : 60103;
|
|
1723
|
-
function bs(e) {
|
|
1724
|
-
return e.$$typeof === gs;
|
|
1725
|
-
}
|
|
1726
|
-
function Es(e) {
|
|
1727
|
-
return Array.isArray(e) ? [] : {};
|
|
1728
|
-
}
|
|
1729
|
-
function Je(e, t) {
|
|
1730
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? De(Es(e), e, t) : e;
|
|
1731
|
-
}
|
|
1732
|
-
function ys(e, t, r) {
|
|
1733
|
-
return e.concat(t).map(function(n) {
|
|
1734
|
-
return Je(n, r);
|
|
1735
|
-
});
|
|
1736
|
-
}
|
|
1737
|
-
function xs(e, t) {
|
|
1738
|
-
if (!t.customMerge)
|
|
1739
|
-
return De;
|
|
1740
|
-
var r = t.customMerge(e);
|
|
1741
|
-
return typeof r == "function" ? r : De;
|
|
1742
|
-
}
|
|
1743
|
-
function Ts(e) {
|
|
1744
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1745
|
-
return Object.propertyIsEnumerable.call(e, t);
|
|
1746
|
-
}) : [];
|
|
1747
|
-
}
|
|
1748
|
-
function xr(e) {
|
|
1749
|
-
return Object.keys(e).concat(Ts(e));
|
|
1750
|
-
}
|
|
1751
|
-
function wn(e, t) {
|
|
1752
|
-
try {
|
|
1753
|
-
return t in e;
|
|
1754
|
-
} catch {
|
|
1755
|
-
return !1;
|
|
1756
|
-
}
|
|
1757
|
-
}
|
|
1758
|
-
function ws(e, t) {
|
|
1759
|
-
return wn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1760
|
-
}
|
|
1761
|
-
function Ss(e, t, r) {
|
|
1762
|
-
var n = {};
|
|
1763
|
-
return r.isMergeableObject(e) && xr(e).forEach(function(i) {
|
|
1764
|
-
n[i] = Je(e[i], r);
|
|
1765
|
-
}), xr(t).forEach(function(i) {
|
|
1766
|
-
ws(e, i) || (wn(e, i) && r.isMergeableObject(t[i]) ? n[i] = xs(i, r)(e[i], t[i], r) : n[i] = Je(t[i], r));
|
|
1767
|
-
}), n;
|
|
1768
|
-
}
|
|
1769
|
-
function De(e, t, r) {
|
|
1770
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || ys, r.isMergeableObject = r.isMergeableObject || vs, r.cloneUnlessOtherwiseSpecified = Je;
|
|
1771
|
-
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
1772
|
-
return s ? n ? r.arrayMerge(e, t, r) : Ss(e, t, r) : Je(t, r);
|
|
1773
|
-
}
|
|
1774
|
-
De.all = function(t, r) {
|
|
1775
|
-
if (!Array.isArray(t))
|
|
1776
|
-
throw new Error("first argument should be an array");
|
|
1777
|
-
return t.reduce(function(n, i) {
|
|
1778
|
-
return De(n, i, r);
|
|
1779
|
-
}, {});
|
|
1780
|
-
};
|
|
1781
|
-
var Hs = De, As = Hs;
|
|
1782
|
-
const Bs = /* @__PURE__ */ ps(As);
|
|
1783
|
-
var Xt = function(e, t) {
|
|
1784
|
-
return Xt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1785
|
-
r.__proto__ = n;
|
|
1786
|
-
} || function(r, n) {
|
|
1787
|
-
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1788
|
-
}, Xt(e, t);
|
|
1789
|
-
};
|
|
1790
|
-
function Et(e, t) {
|
|
1791
|
-
if (typeof t != "function" && t !== null)
|
|
1792
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1793
|
-
Xt(e, t);
|
|
1794
|
-
function r() {
|
|
1795
|
-
this.constructor = e;
|
|
1796
|
-
}
|
|
1797
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1798
|
-
}
|
|
1799
|
-
var Y = function() {
|
|
1800
|
-
return Y = Object.assign || function(t) {
|
|
1801
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1802
|
-
r = arguments[n];
|
|
1803
|
-
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1804
|
-
}
|
|
1805
|
-
return t;
|
|
1806
|
-
}, Y.apply(this, arguments);
|
|
1807
|
-
};
|
|
1808
|
-
function Ns(e, t) {
|
|
1809
|
-
var r = {};
|
|
1810
|
-
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1811
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1812
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1813
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1814
|
-
return r;
|
|
1815
|
-
}
|
|
1816
|
-
function Nt(e, t, r) {
|
|
1817
|
-
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
|
1818
|
-
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
1819
|
-
return e.concat(s || Array.prototype.slice.call(t));
|
|
1820
|
-
}
|
|
1821
|
-
function Pt(e, t) {
|
|
1822
|
-
var r = t && t.cache ? t.cache : Rs, n = t && t.serializer ? t.serializer : Ms, i = t && t.strategy ? t.strategy : Is;
|
|
1823
|
-
return i(e, {
|
|
1824
|
-
cache: r,
|
|
1825
|
-
serializer: n
|
|
1826
|
-
});
|
|
1827
|
-
}
|
|
1828
|
-
function Ps(e) {
|
|
1829
|
-
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1830
|
-
}
|
|
1831
|
-
function Os(e, t, r, n) {
|
|
1832
|
-
var i = Ps(n) ? n : r(n), s = t.get(i);
|
|
1833
|
-
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
1834
|
-
}
|
|
1835
|
-
function Sn(e, t, r) {
|
|
1836
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
1837
|
-
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
1838
|
-
}
|
|
1839
|
-
function Hn(e, t, r, n, i) {
|
|
1840
|
-
return r.bind(t, e, n, i);
|
|
1841
|
-
}
|
|
1842
|
-
function Is(e, t) {
|
|
1843
|
-
var r = e.length === 1 ? Os : Sn;
|
|
1844
|
-
return Hn(e, this, r, t.cache.create(), t.serializer);
|
|
1845
|
-
}
|
|
1846
|
-
function Cs(e, t) {
|
|
1847
|
-
return Hn(e, this, Sn, t.cache.create(), t.serializer);
|
|
1848
|
-
}
|
|
1849
|
-
var Ms = function() {
|
|
1850
|
-
return JSON.stringify(arguments);
|
|
1851
|
-
}, Ls = (
|
|
1852
|
-
/** @class */
|
|
1853
|
-
function() {
|
|
1854
|
-
function e() {
|
|
1855
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1856
|
-
}
|
|
1857
|
-
return e.prototype.get = function(t) {
|
|
1858
|
-
return this.cache[t];
|
|
1859
|
-
}, e.prototype.set = function(t, r) {
|
|
1860
|
-
this.cache[t] = r;
|
|
1861
|
-
}, e;
|
|
1862
|
-
}()
|
|
1863
|
-
), Rs = {
|
|
1864
|
-
create: function() {
|
|
1865
|
-
return new Ls();
|
|
1866
|
-
}
|
|
1867
|
-
}, Ot = {
|
|
1868
|
-
variadic: Cs
|
|
1869
|
-
}, vt = function() {
|
|
1870
|
-
return vt = Object.assign || function(t) {
|
|
1871
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1872
|
-
r = arguments[n];
|
|
1873
|
-
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1874
|
-
}
|
|
1875
|
-
return t;
|
|
1876
|
-
}, vt.apply(this, arguments);
|
|
1877
|
-
};
|
|
1878
|
-
var d;
|
|
1879
|
-
(function(e) {
|
|
1880
|
-
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";
|
|
1881
|
-
})(d || (d = {}));
|
|
1882
|
-
var x;
|
|
1883
|
-
(function(e) {
|
|
1884
|
-
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";
|
|
1885
|
-
})(x || (x = {}));
|
|
1886
|
-
var Ue;
|
|
1887
|
-
(function(e) {
|
|
1888
|
-
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1889
|
-
})(Ue || (Ue = {}));
|
|
1890
|
-
function Tr(e) {
|
|
1891
|
-
return e.type === x.literal;
|
|
1892
|
-
}
|
|
1893
|
-
function Ds(e) {
|
|
1894
|
-
return e.type === x.argument;
|
|
1895
|
-
}
|
|
1896
|
-
function An(e) {
|
|
1897
|
-
return e.type === x.number;
|
|
1898
|
-
}
|
|
1899
|
-
function Bn(e) {
|
|
1900
|
-
return e.type === x.date;
|
|
1901
|
-
}
|
|
1902
|
-
function Nn(e) {
|
|
1903
|
-
return e.type === x.time;
|
|
1904
|
-
}
|
|
1905
|
-
function Pn(e) {
|
|
1906
|
-
return e.type === x.select;
|
|
1907
|
-
}
|
|
1908
|
-
function On(e) {
|
|
1909
|
-
return e.type === x.plural;
|
|
1910
|
-
}
|
|
1911
|
-
function Us(e) {
|
|
1912
|
-
return e.type === x.pound;
|
|
1913
|
-
}
|
|
1914
|
-
function In(e) {
|
|
1915
|
-
return e.type === x.tag;
|
|
1916
|
-
}
|
|
1917
|
-
function Cn(e) {
|
|
1918
|
-
return !!(e && typeof e == "object" && e.type === Ue.number);
|
|
1919
|
-
}
|
|
1920
|
-
function zt(e) {
|
|
1921
|
-
return !!(e && typeof e == "object" && e.type === Ue.dateTime);
|
|
1922
|
-
}
|
|
1923
|
-
var Mn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Gs = /(?:[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;
|
|
1924
|
-
function Fs(e) {
|
|
1925
|
-
var t = {};
|
|
1926
|
-
return e.replace(Gs, function(r) {
|
|
1927
|
-
var n = r.length;
|
|
1928
|
-
switch (r[0]) {
|
|
1929
|
-
case "G":
|
|
1930
|
-
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1931
|
-
break;
|
|
1932
|
-
case "y":
|
|
1933
|
-
t.year = n === 2 ? "2-digit" : "numeric";
|
|
1934
|
-
break;
|
|
1935
|
-
case "Y":
|
|
1936
|
-
case "u":
|
|
1937
|
-
case "U":
|
|
1938
|
-
case "r":
|
|
1939
|
-
throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
|
|
1940
|
-
case "q":
|
|
1941
|
-
case "Q":
|
|
1942
|
-
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1943
|
-
case "M":
|
|
1944
|
-
case "L":
|
|
1945
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
1946
|
-
break;
|
|
1947
|
-
case "w":
|
|
1948
|
-
case "W":
|
|
1949
|
-
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
1950
|
-
case "d":
|
|
1951
|
-
t.day = ["numeric", "2-digit"][n - 1];
|
|
1952
|
-
break;
|
|
1953
|
-
case "D":
|
|
1954
|
-
case "F":
|
|
1955
|
-
case "g":
|
|
1956
|
-
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1957
|
-
case "E":
|
|
1958
|
-
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1959
|
-
break;
|
|
1960
|
-
case "e":
|
|
1961
|
-
if (n < 4)
|
|
1962
|
-
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1963
|
-
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1964
|
-
break;
|
|
1965
|
-
case "c":
|
|
1966
|
-
if (n < 4)
|
|
1967
|
-
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1968
|
-
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1969
|
-
break;
|
|
1970
|
-
case "a":
|
|
1971
|
-
t.hour12 = !0;
|
|
1972
|
-
break;
|
|
1973
|
-
case "b":
|
|
1974
|
-
case "B":
|
|
1975
|
-
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1976
|
-
case "h":
|
|
1977
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1978
|
-
break;
|
|
1979
|
-
case "H":
|
|
1980
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1981
|
-
break;
|
|
1982
|
-
case "K":
|
|
1983
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1984
|
-
break;
|
|
1985
|
-
case "k":
|
|
1986
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1987
|
-
break;
|
|
1988
|
-
case "j":
|
|
1989
|
-
case "J":
|
|
1990
|
-
case "C":
|
|
1991
|
-
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1992
|
-
case "m":
|
|
1993
|
-
t.minute = ["numeric", "2-digit"][n - 1];
|
|
1994
|
-
break;
|
|
1995
|
-
case "s":
|
|
1996
|
-
t.second = ["numeric", "2-digit"][n - 1];
|
|
1997
|
-
break;
|
|
1998
|
-
case "S":
|
|
1999
|
-
case "A":
|
|
2000
|
-
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
2001
|
-
case "z":
|
|
2002
|
-
t.timeZoneName = n < 4 ? "short" : "long";
|
|
2003
|
-
break;
|
|
2004
|
-
case "Z":
|
|
2005
|
-
case "O":
|
|
2006
|
-
case "v":
|
|
2007
|
-
case "V":
|
|
2008
|
-
case "X":
|
|
2009
|
-
case "x":
|
|
2010
|
-
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
|
|
2011
|
-
}
|
|
2012
|
-
return "";
|
|
2013
|
-
}), t;
|
|
2014
|
-
}
|
|
2015
|
-
var S = function() {
|
|
2016
|
-
return S = Object.assign || function(t) {
|
|
2017
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
2018
|
-
r = arguments[n];
|
|
2019
|
-
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
2020
|
-
}
|
|
2021
|
-
return t;
|
|
2022
|
-
}, S.apply(this, arguments);
|
|
2023
|
-
};
|
|
2024
|
-
var js = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
2025
|
-
function ks(e) {
|
|
2026
|
-
if (e.length === 0)
|
|
2027
|
-
throw new Error("Number skeleton cannot be empty");
|
|
2028
|
-
for (var t = e.split(js).filter(function(c) {
|
|
2029
|
-
return c.length > 0;
|
|
2030
|
-
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
2031
|
-
var s = i[n], o = s.split("/");
|
|
2032
|
-
if (o.length === 0)
|
|
2033
|
-
throw new Error("Invalid number skeleton");
|
|
2034
|
-
for (var u = o[0], l = o.slice(1), a = 0, f = l; a < f.length; a++) {
|
|
2035
|
-
var h = f[a];
|
|
2036
|
-
if (h.length === 0)
|
|
2037
|
-
throw new Error("Invalid number skeleton");
|
|
2038
|
-
}
|
|
2039
|
-
r.push({ stem: u, options: l });
|
|
2040
|
-
}
|
|
2041
|
-
return r;
|
|
2042
|
-
}
|
|
2043
|
-
function Vs(e) {
|
|
2044
|
-
return e.replace(/^(.*?)-/, "");
|
|
2045
|
-
}
|
|
2046
|
-
var wr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ln = /^(@+)?(\+|#+)?[rs]?$/g, qs = /(\*)(0+)|(#+)(0+)|(0+)/g, Rn = /^(0+)$/;
|
|
2047
|
-
function Sr(e) {
|
|
2048
|
-
var t = {};
|
|
2049
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ln, function(r, n, i) {
|
|
2050
|
-
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)), "";
|
|
2051
|
-
}), t;
|
|
2052
|
-
}
|
|
2053
|
-
function Dn(e) {
|
|
2054
|
-
switch (e) {
|
|
2055
|
-
case "sign-auto":
|
|
2056
|
-
return {
|
|
2057
|
-
signDisplay: "auto"
|
|
2058
|
-
};
|
|
2059
|
-
case "sign-accounting":
|
|
2060
|
-
case "()":
|
|
2061
|
-
return {
|
|
2062
|
-
currencySign: "accounting"
|
|
2063
|
-
};
|
|
2064
|
-
case "sign-always":
|
|
2065
|
-
case "+!":
|
|
2066
|
-
return {
|
|
2067
|
-
signDisplay: "always"
|
|
2068
|
-
};
|
|
2069
|
-
case "sign-accounting-always":
|
|
2070
|
-
case "()!":
|
|
2071
|
-
return {
|
|
2072
|
-
signDisplay: "always",
|
|
2073
|
-
currencySign: "accounting"
|
|
2074
|
-
};
|
|
2075
|
-
case "sign-except-zero":
|
|
2076
|
-
case "+?":
|
|
2077
|
-
return {
|
|
2078
|
-
signDisplay: "exceptZero"
|
|
2079
|
-
};
|
|
2080
|
-
case "sign-accounting-except-zero":
|
|
2081
|
-
case "()?":
|
|
2082
|
-
return {
|
|
2083
|
-
signDisplay: "exceptZero",
|
|
2084
|
-
currencySign: "accounting"
|
|
2085
|
-
};
|
|
2086
|
-
case "sign-never":
|
|
2087
|
-
case "+_":
|
|
2088
|
-
return {
|
|
2089
|
-
signDisplay: "never"
|
|
2090
|
-
};
|
|
2091
|
-
}
|
|
2092
|
-
}
|
|
2093
|
-
function Xs(e) {
|
|
2094
|
-
var t;
|
|
2095
|
-
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
2096
|
-
notation: "engineering"
|
|
2097
|
-
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
2098
|
-
notation: "scientific"
|
|
2099
|
-
}, e = e.slice(1)), t) {
|
|
2100
|
-
var r = e.slice(0, 2);
|
|
2101
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Rn.test(e))
|
|
2102
|
-
throw new Error("Malformed concise eng/scientific notation");
|
|
2103
|
-
t.minimumIntegerDigits = e.length;
|
|
2104
|
-
}
|
|
2105
|
-
return t;
|
|
2106
|
-
}
|
|
2107
|
-
function Hr(e) {
|
|
2108
|
-
var t = {}, r = Dn(e);
|
|
2109
|
-
return r || t;
|
|
2110
|
-
}
|
|
2111
|
-
function zs(e) {
|
|
2112
|
-
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
2113
|
-
var i = n[r];
|
|
2114
|
-
switch (i.stem) {
|
|
2115
|
-
case "percent":
|
|
2116
|
-
case "%":
|
|
2117
|
-
t.style = "percent";
|
|
2118
|
-
continue;
|
|
2119
|
-
case "%x100":
|
|
2120
|
-
t.style = "percent", t.scale = 100;
|
|
2121
|
-
continue;
|
|
2122
|
-
case "currency":
|
|
2123
|
-
t.style = "currency", t.currency = i.options[0];
|
|
2124
|
-
continue;
|
|
2125
|
-
case "group-off":
|
|
2126
|
-
case ",_":
|
|
2127
|
-
t.useGrouping = !1;
|
|
2128
|
-
continue;
|
|
2129
|
-
case "precision-integer":
|
|
2130
|
-
case ".":
|
|
2131
|
-
t.maximumFractionDigits = 0;
|
|
2132
|
-
continue;
|
|
2133
|
-
case "measure-unit":
|
|
2134
|
-
case "unit":
|
|
2135
|
-
t.style = "unit", t.unit = Vs(i.options[0]);
|
|
2136
|
-
continue;
|
|
2137
|
-
case "compact-short":
|
|
2138
|
-
case "K":
|
|
2139
|
-
t.notation = "compact", t.compactDisplay = "short";
|
|
2140
|
-
continue;
|
|
2141
|
-
case "compact-long":
|
|
2142
|
-
case "KK":
|
|
2143
|
-
t.notation = "compact", t.compactDisplay = "long";
|
|
2144
|
-
continue;
|
|
2145
|
-
case "scientific":
|
|
2146
|
-
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
2147
|
-
return S(S({}, l), Hr(a));
|
|
2148
|
-
}, {}));
|
|
2149
|
-
continue;
|
|
2150
|
-
case "engineering":
|
|
2151
|
-
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
2152
|
-
return S(S({}, l), Hr(a));
|
|
2153
|
-
}, {}));
|
|
2154
|
-
continue;
|
|
2155
|
-
case "notation-simple":
|
|
2156
|
-
t.notation = "standard";
|
|
2157
|
-
continue;
|
|
2158
|
-
case "unit-width-narrow":
|
|
2159
|
-
t.currencyDisplay = "narrowSymbol", t.unitDisplay = "narrow";
|
|
2160
|
-
continue;
|
|
2161
|
-
case "unit-width-short":
|
|
2162
|
-
t.currencyDisplay = "code", t.unitDisplay = "short";
|
|
2163
|
-
continue;
|
|
2164
|
-
case "unit-width-full-name":
|
|
2165
|
-
t.currencyDisplay = "name", t.unitDisplay = "long";
|
|
2166
|
-
continue;
|
|
2167
|
-
case "unit-width-iso-code":
|
|
2168
|
-
t.currencyDisplay = "symbol";
|
|
2169
|
-
continue;
|
|
2170
|
-
case "scale":
|
|
2171
|
-
t.scale = parseFloat(i.options[0]);
|
|
2172
|
-
continue;
|
|
2173
|
-
case "rounding-mode-floor":
|
|
2174
|
-
t.roundingMode = "floor";
|
|
2175
|
-
continue;
|
|
2176
|
-
case "rounding-mode-ceiling":
|
|
2177
|
-
t.roundingMode = "ceil";
|
|
2178
|
-
continue;
|
|
2179
|
-
case "rounding-mode-down":
|
|
2180
|
-
t.roundingMode = "trunc";
|
|
2181
|
-
continue;
|
|
2182
|
-
case "rounding-mode-up":
|
|
2183
|
-
t.roundingMode = "expand";
|
|
2184
|
-
continue;
|
|
2185
|
-
case "rounding-mode-half-even":
|
|
2186
|
-
t.roundingMode = "halfEven";
|
|
2187
|
-
continue;
|
|
2188
|
-
case "rounding-mode-half-down":
|
|
2189
|
-
t.roundingMode = "halfTrunc";
|
|
2190
|
-
continue;
|
|
2191
|
-
case "rounding-mode-half-up":
|
|
2192
|
-
t.roundingMode = "halfExpand";
|
|
2193
|
-
continue;
|
|
2194
|
-
case "integer-width":
|
|
2195
|
-
if (i.options.length > 1)
|
|
2196
|
-
throw new RangeError("integer-width stems only accept a single optional option");
|
|
2197
|
-
i.options[0].replace(qs, function(l, a, f, h, c, v) {
|
|
2198
|
-
if (a)
|
|
2199
|
-
t.minimumIntegerDigits = f.length;
|
|
2200
|
-
else {
|
|
2201
|
-
if (h && c)
|
|
2202
|
-
throw new Error("We currently do not support maximum integer digits");
|
|
2203
|
-
if (v)
|
|
2204
|
-
throw new Error("We currently do not support exact integer digits");
|
|
2205
|
-
}
|
|
2206
|
-
return "";
|
|
2207
|
-
});
|
|
2208
|
-
continue;
|
|
2209
|
-
}
|
|
2210
|
-
if (Rn.test(i.stem)) {
|
|
2211
|
-
t.minimumIntegerDigits = i.stem.length;
|
|
2212
|
-
continue;
|
|
2213
|
-
}
|
|
2214
|
-
if (wr.test(i.stem)) {
|
|
2215
|
-
if (i.options.length > 1)
|
|
2216
|
-
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
2217
|
-
i.stem.replace(wr, function(l, a, f, h, c, v) {
|
|
2218
|
-
return f === "*" ? t.minimumFractionDigits = a.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : c && v ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + v.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
2219
|
-
});
|
|
2220
|
-
var s = i.options[0];
|
|
2221
|
-
s === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = S(S({}, t), Sr(s)));
|
|
2222
|
-
continue;
|
|
2223
|
-
}
|
|
2224
|
-
if (Ln.test(i.stem)) {
|
|
2225
|
-
t = S(S({}, t), Sr(i.stem));
|
|
2226
|
-
continue;
|
|
2227
|
-
}
|
|
2228
|
-
var o = Dn(i.stem);
|
|
2229
|
-
o && (t = S(S({}, t), o));
|
|
2230
|
-
var u = Xs(i.stem);
|
|
2231
|
-
u && (t = S(S({}, t), u));
|
|
2232
|
-
}
|
|
2233
|
-
return t;
|
|
2234
|
-
}
|
|
2235
|
-
var it = {
|
|
2236
|
-
"001": [
|
|
2237
|
-
"H",
|
|
2238
|
-
"h"
|
|
2239
|
-
],
|
|
2240
|
-
419: [
|
|
2241
|
-
"h",
|
|
2242
|
-
"H",
|
|
2243
|
-
"hB",
|
|
2244
|
-
"hb"
|
|
2245
|
-
],
|
|
2246
|
-
AC: [
|
|
2247
|
-
"H",
|
|
2248
|
-
"h",
|
|
2249
|
-
"hb",
|
|
2250
|
-
"hB"
|
|
2251
|
-
],
|
|
2252
|
-
AD: [
|
|
2253
|
-
"H",
|
|
2254
|
-
"hB"
|
|
2255
|
-
],
|
|
2256
|
-
AE: [
|
|
2257
|
-
"h",
|
|
2258
|
-
"hB",
|
|
2259
|
-
"hb",
|
|
2260
|
-
"H"
|
|
2261
|
-
],
|
|
2262
|
-
AF: [
|
|
2263
|
-
"H",
|
|
2264
|
-
"hb",
|
|
2265
|
-
"hB",
|
|
2266
|
-
"h"
|
|
2267
|
-
],
|
|
2268
|
-
AG: [
|
|
2269
|
-
"h",
|
|
2270
|
-
"hb",
|
|
2271
|
-
"H",
|
|
2272
|
-
"hB"
|
|
2273
|
-
],
|
|
2274
|
-
AI: [
|
|
2275
|
-
"H",
|
|
2276
|
-
"h",
|
|
2277
|
-
"hb",
|
|
2278
|
-
"hB"
|
|
2279
|
-
],
|
|
2280
|
-
AL: [
|
|
2281
|
-
"h",
|
|
2282
|
-
"H",
|
|
2283
|
-
"hB"
|
|
2284
|
-
],
|
|
2285
|
-
AM: [
|
|
2286
|
-
"H",
|
|
2287
|
-
"hB"
|
|
2288
|
-
],
|
|
2289
|
-
AO: [
|
|
2290
|
-
"H",
|
|
2291
|
-
"hB"
|
|
2292
|
-
],
|
|
2293
|
-
AR: [
|
|
2294
|
-
"h",
|
|
2295
|
-
"H",
|
|
2296
|
-
"hB",
|
|
2297
|
-
"hb"
|
|
2298
|
-
],
|
|
2299
|
-
AS: [
|
|
2300
|
-
"h",
|
|
2301
|
-
"H"
|
|
2302
|
-
],
|
|
2303
|
-
AT: [
|
|
2304
|
-
"H",
|
|
2305
|
-
"hB"
|
|
2306
|
-
],
|
|
2307
|
-
AU: [
|
|
2308
|
-
"h",
|
|
2309
|
-
"hb",
|
|
2310
|
-
"H",
|
|
2311
|
-
"hB"
|
|
2312
|
-
],
|
|
2313
|
-
AW: [
|
|
2314
|
-
"H",
|
|
2315
|
-
"hB"
|
|
2316
|
-
],
|
|
2317
|
-
AX: [
|
|
2318
|
-
"H"
|
|
2319
|
-
],
|
|
2320
|
-
AZ: [
|
|
2321
|
-
"H",
|
|
2322
|
-
"hB",
|
|
2323
|
-
"h"
|
|
2324
|
-
],
|
|
2325
|
-
BA: [
|
|
2326
|
-
"H",
|
|
2327
|
-
"hB",
|
|
2328
|
-
"h"
|
|
2329
|
-
],
|
|
2330
|
-
BB: [
|
|
2331
|
-
"h",
|
|
2332
|
-
"hb",
|
|
2333
|
-
"H",
|
|
2334
|
-
"hB"
|
|
2335
|
-
],
|
|
2336
|
-
BD: [
|
|
2337
|
-
"h",
|
|
2338
|
-
"hB",
|
|
2339
|
-
"H"
|
|
2340
|
-
],
|
|
2341
|
-
BE: [
|
|
2342
|
-
"H",
|
|
2343
|
-
"hB"
|
|
2344
|
-
],
|
|
2345
|
-
BF: [
|
|
2346
|
-
"H",
|
|
2347
|
-
"hB"
|
|
2348
|
-
],
|
|
2349
|
-
BG: [
|
|
2350
|
-
"H",
|
|
2351
|
-
"hB",
|
|
2352
|
-
"h"
|
|
2353
|
-
],
|
|
2354
|
-
BH: [
|
|
2355
|
-
"h",
|
|
2356
|
-
"hB",
|
|
2357
|
-
"hb",
|
|
2358
|
-
"H"
|
|
2359
|
-
],
|
|
2360
|
-
BI: [
|
|
2361
|
-
"H",
|
|
2362
|
-
"h"
|
|
2363
|
-
],
|
|
2364
|
-
BJ: [
|
|
2365
|
-
"H",
|
|
2366
|
-
"hB"
|
|
2367
|
-
],
|
|
2368
|
-
BL: [
|
|
2369
|
-
"H",
|
|
2370
|
-
"hB"
|
|
2371
|
-
],
|
|
2372
|
-
BM: [
|
|
2373
|
-
"h",
|
|
2374
|
-
"hb",
|
|
2375
|
-
"H",
|
|
2376
|
-
"hB"
|
|
2377
|
-
],
|
|
2378
|
-
BN: [
|
|
2379
|
-
"hb",
|
|
2380
|
-
"hB",
|
|
2381
|
-
"h",
|
|
2382
|
-
"H"
|
|
2383
|
-
],
|
|
2384
|
-
BO: [
|
|
2385
|
-
"h",
|
|
2386
|
-
"H",
|
|
2387
|
-
"hB",
|
|
2388
|
-
"hb"
|
|
2389
|
-
],
|
|
2390
|
-
BQ: [
|
|
2391
|
-
"H"
|
|
2392
|
-
],
|
|
2393
|
-
BR: [
|
|
2394
|
-
"H",
|
|
2395
|
-
"hB"
|
|
2396
|
-
],
|
|
2397
|
-
BS: [
|
|
2398
|
-
"h",
|
|
2399
|
-
"hb",
|
|
2400
|
-
"H",
|
|
2401
|
-
"hB"
|
|
2402
|
-
],
|
|
2403
|
-
BT: [
|
|
2404
|
-
"h",
|
|
2405
|
-
"H"
|
|
2406
|
-
],
|
|
2407
|
-
BW: [
|
|
2408
|
-
"H",
|
|
2409
|
-
"h",
|
|
2410
|
-
"hb",
|
|
2411
|
-
"hB"
|
|
2412
|
-
],
|
|
2413
|
-
BY: [
|
|
2414
|
-
"H",
|
|
2415
|
-
"h"
|
|
2416
|
-
],
|
|
2417
|
-
BZ: [
|
|
2418
|
-
"H",
|
|
2419
|
-
"h",
|
|
2420
|
-
"hb",
|
|
2421
|
-
"hB"
|
|
2422
|
-
],
|
|
2423
|
-
CA: [
|
|
2424
|
-
"h",
|
|
2425
|
-
"hb",
|
|
2426
|
-
"H",
|
|
2427
|
-
"hB"
|
|
2428
|
-
],
|
|
2429
|
-
CC: [
|
|
2430
|
-
"H",
|
|
2431
|
-
"h",
|
|
2432
|
-
"hb",
|
|
2433
|
-
"hB"
|
|
2434
|
-
],
|
|
2435
|
-
CD: [
|
|
2436
|
-
"hB",
|
|
2437
|
-
"H"
|
|
2438
|
-
],
|
|
2439
|
-
CF: [
|
|
2440
|
-
"H",
|
|
2441
|
-
"h",
|
|
2442
|
-
"hB"
|
|
2443
|
-
],
|
|
2444
|
-
CG: [
|
|
2445
|
-
"H",
|
|
2446
|
-
"hB"
|
|
2447
|
-
],
|
|
2448
|
-
CH: [
|
|
2449
|
-
"H",
|
|
2450
|
-
"hB",
|
|
2451
|
-
"h"
|
|
2452
|
-
],
|
|
2453
|
-
CI: [
|
|
2454
|
-
"H",
|
|
2455
|
-
"hB"
|
|
2456
|
-
],
|
|
2457
|
-
CK: [
|
|
2458
|
-
"H",
|
|
2459
|
-
"h",
|
|
2460
|
-
"hb",
|
|
2461
|
-
"hB"
|
|
2462
|
-
],
|
|
2463
|
-
CL: [
|
|
2464
|
-
"h",
|
|
2465
|
-
"H",
|
|
2466
|
-
"hB",
|
|
2467
|
-
"hb"
|
|
2468
|
-
],
|
|
2469
|
-
CM: [
|
|
2470
|
-
"H",
|
|
2471
|
-
"h",
|
|
2472
|
-
"hB"
|
|
2473
|
-
],
|
|
2474
|
-
CN: [
|
|
2475
|
-
"H",
|
|
2476
|
-
"hB",
|
|
2477
|
-
"hb",
|
|
2478
|
-
"h"
|
|
2479
|
-
],
|
|
2480
|
-
CO: [
|
|
2481
|
-
"h",
|
|
2482
|
-
"H",
|
|
2483
|
-
"hB",
|
|
2484
|
-
"hb"
|
|
2485
|
-
],
|
|
2486
|
-
CP: [
|
|
2487
|
-
"H"
|
|
2488
|
-
],
|
|
2489
|
-
CR: [
|
|
2490
|
-
"h",
|
|
2491
|
-
"H",
|
|
2492
|
-
"hB",
|
|
2493
|
-
"hb"
|
|
2494
|
-
],
|
|
2495
|
-
CU: [
|
|
2496
|
-
"h",
|
|
2497
|
-
"H",
|
|
2498
|
-
"hB",
|
|
2499
|
-
"hb"
|
|
2500
|
-
],
|
|
2501
|
-
CV: [
|
|
2502
|
-
"H",
|
|
2503
|
-
"hB"
|
|
2504
|
-
],
|
|
2505
|
-
CW: [
|
|
2506
|
-
"H",
|
|
2507
|
-
"hB"
|
|
2508
|
-
],
|
|
2509
|
-
CX: [
|
|
2510
|
-
"H",
|
|
2511
|
-
"h",
|
|
2512
|
-
"hb",
|
|
2513
|
-
"hB"
|
|
2514
|
-
],
|
|
2515
|
-
CY: [
|
|
2516
|
-
"h",
|
|
2517
|
-
"H",
|
|
2518
|
-
"hb",
|
|
2519
|
-
"hB"
|
|
2520
|
-
],
|
|
2521
|
-
CZ: [
|
|
2522
|
-
"H"
|
|
2523
|
-
],
|
|
2524
|
-
DE: [
|
|
2525
|
-
"H",
|
|
2526
|
-
"hB"
|
|
2527
|
-
],
|
|
2528
|
-
DG: [
|
|
2529
|
-
"H",
|
|
2530
|
-
"h",
|
|
2531
|
-
"hb",
|
|
2532
|
-
"hB"
|
|
2533
|
-
],
|
|
2534
|
-
DJ: [
|
|
2535
|
-
"h",
|
|
2536
|
-
"H"
|
|
2537
|
-
],
|
|
2538
|
-
DK: [
|
|
2539
|
-
"H"
|
|
2540
|
-
],
|
|
2541
|
-
DM: [
|
|
2542
|
-
"h",
|
|
2543
|
-
"hb",
|
|
2544
|
-
"H",
|
|
2545
|
-
"hB"
|
|
2546
|
-
],
|
|
2547
|
-
DO: [
|
|
2548
|
-
"h",
|
|
2549
|
-
"H",
|
|
2550
|
-
"hB",
|
|
2551
|
-
"hb"
|
|
2552
|
-
],
|
|
2553
|
-
DZ: [
|
|
2554
|
-
"h",
|
|
2555
|
-
"hB",
|
|
2556
|
-
"hb",
|
|
2557
|
-
"H"
|
|
2558
|
-
],
|
|
2559
|
-
EA: [
|
|
2560
|
-
"H",
|
|
2561
|
-
"h",
|
|
2562
|
-
"hB",
|
|
2563
|
-
"hb"
|
|
2564
|
-
],
|
|
2565
|
-
EC: [
|
|
2566
|
-
"h",
|
|
2567
|
-
"H",
|
|
2568
|
-
"hB",
|
|
2569
|
-
"hb"
|
|
2570
|
-
],
|
|
2571
|
-
EE: [
|
|
2572
|
-
"H",
|
|
2573
|
-
"hB"
|
|
2574
|
-
],
|
|
2575
|
-
EG: [
|
|
2576
|
-
"h",
|
|
2577
|
-
"hB",
|
|
2578
|
-
"hb",
|
|
2579
|
-
"H"
|
|
2580
|
-
],
|
|
2581
|
-
EH: [
|
|
2582
|
-
"h",
|
|
2583
|
-
"hB",
|
|
2584
|
-
"hb",
|
|
2585
|
-
"H"
|
|
2586
|
-
],
|
|
2587
|
-
ER: [
|
|
2588
|
-
"h",
|
|
2589
|
-
"H"
|
|
2590
|
-
],
|
|
2591
|
-
ES: [
|
|
2592
|
-
"H",
|
|
2593
|
-
"hB",
|
|
2594
|
-
"h",
|
|
2595
|
-
"hb"
|
|
2596
|
-
],
|
|
2597
|
-
ET: [
|
|
2598
|
-
"hB",
|
|
2599
|
-
"hb",
|
|
2600
|
-
"h",
|
|
2601
|
-
"H"
|
|
2602
|
-
],
|
|
2603
|
-
FI: [
|
|
2604
|
-
"H"
|
|
2605
|
-
],
|
|
2606
|
-
FJ: [
|
|
2607
|
-
"h",
|
|
2608
|
-
"hb",
|
|
2609
|
-
"H",
|
|
2610
|
-
"hB"
|
|
2611
|
-
],
|
|
2612
|
-
FK: [
|
|
2613
|
-
"H",
|
|
2614
|
-
"h",
|
|
2615
|
-
"hb",
|
|
2616
|
-
"hB"
|
|
2617
|
-
],
|
|
2618
|
-
FM: [
|
|
2619
|
-
"h",
|
|
2620
|
-
"hb",
|
|
2621
|
-
"H",
|
|
2622
|
-
"hB"
|
|
2623
|
-
],
|
|
2624
|
-
FO: [
|
|
2625
|
-
"H",
|
|
2626
|
-
"h"
|
|
2627
|
-
],
|
|
2628
|
-
FR: [
|
|
2629
|
-
"H",
|
|
2630
|
-
"hB"
|
|
2631
|
-
],
|
|
2632
|
-
GA: [
|
|
2633
|
-
"H",
|
|
2634
|
-
"hB"
|
|
2635
|
-
],
|
|
2636
|
-
GB: [
|
|
2637
|
-
"H",
|
|
2638
|
-
"h",
|
|
2639
|
-
"hb",
|
|
2640
|
-
"hB"
|
|
2641
|
-
],
|
|
2642
|
-
GD: [
|
|
2643
|
-
"h",
|
|
2644
|
-
"hb",
|
|
2645
|
-
"H",
|
|
2646
|
-
"hB"
|
|
2647
|
-
],
|
|
2648
|
-
GE: [
|
|
2649
|
-
"H",
|
|
2650
|
-
"hB",
|
|
2651
|
-
"h"
|
|
2652
|
-
],
|
|
2653
|
-
GF: [
|
|
2654
|
-
"H",
|
|
2655
|
-
"hB"
|
|
2656
|
-
],
|
|
2657
|
-
GG: [
|
|
2658
|
-
"H",
|
|
2659
|
-
"h",
|
|
2660
|
-
"hb",
|
|
2661
|
-
"hB"
|
|
2662
|
-
],
|
|
2663
|
-
GH: [
|
|
2664
|
-
"h",
|
|
2665
|
-
"H"
|
|
2666
|
-
],
|
|
2667
|
-
GI: [
|
|
2668
|
-
"H",
|
|
2669
|
-
"h",
|
|
2670
|
-
"hb",
|
|
2671
|
-
"hB"
|
|
2672
|
-
],
|
|
2673
|
-
GL: [
|
|
2674
|
-
"H",
|
|
2675
|
-
"h"
|
|
2676
|
-
],
|
|
2677
|
-
GM: [
|
|
2678
|
-
"h",
|
|
2679
|
-
"hb",
|
|
2680
|
-
"H",
|
|
2681
|
-
"hB"
|
|
2682
|
-
],
|
|
2683
|
-
GN: [
|
|
2684
|
-
"H",
|
|
2685
|
-
"hB"
|
|
2686
|
-
],
|
|
2687
|
-
GP: [
|
|
2688
|
-
"H",
|
|
2689
|
-
"hB"
|
|
2690
|
-
],
|
|
2691
|
-
GQ: [
|
|
2692
|
-
"H",
|
|
2693
|
-
"hB",
|
|
2694
|
-
"h",
|
|
2695
|
-
"hb"
|
|
2696
|
-
],
|
|
2697
|
-
GR: [
|
|
2698
|
-
"h",
|
|
2699
|
-
"H",
|
|
2700
|
-
"hb",
|
|
2701
|
-
"hB"
|
|
2702
|
-
],
|
|
2703
|
-
GT: [
|
|
2704
|
-
"h",
|
|
2705
|
-
"H",
|
|
2706
|
-
"hB",
|
|
2707
|
-
"hb"
|
|
2708
|
-
],
|
|
2709
|
-
GU: [
|
|
2710
|
-
"h",
|
|
2711
|
-
"hb",
|
|
2712
|
-
"H",
|
|
2713
|
-
"hB"
|
|
2714
|
-
],
|
|
2715
|
-
GW: [
|
|
2716
|
-
"H",
|
|
2717
|
-
"hB"
|
|
2718
|
-
],
|
|
2719
|
-
GY: [
|
|
2720
|
-
"h",
|
|
2721
|
-
"hb",
|
|
2722
|
-
"H",
|
|
2723
|
-
"hB"
|
|
2724
|
-
],
|
|
2725
|
-
HK: [
|
|
2726
|
-
"h",
|
|
2727
|
-
"hB",
|
|
2728
|
-
"hb",
|
|
2729
|
-
"H"
|
|
2730
|
-
],
|
|
2731
|
-
HN: [
|
|
2732
|
-
"h",
|
|
2733
|
-
"H",
|
|
2734
|
-
"hB",
|
|
2735
|
-
"hb"
|
|
2736
|
-
],
|
|
2737
|
-
HR: [
|
|
2738
|
-
"H",
|
|
2739
|
-
"hB"
|
|
2740
|
-
],
|
|
2741
|
-
HU: [
|
|
2742
|
-
"H",
|
|
2743
|
-
"h"
|
|
2744
|
-
],
|
|
2745
|
-
IC: [
|
|
2746
|
-
"H",
|
|
2747
|
-
"h",
|
|
2748
|
-
"hB",
|
|
2749
|
-
"hb"
|
|
2750
|
-
],
|
|
2751
|
-
ID: [
|
|
2752
|
-
"H"
|
|
2753
|
-
],
|
|
2754
|
-
IE: [
|
|
2755
|
-
"H",
|
|
2756
|
-
"h",
|
|
2757
|
-
"hb",
|
|
2758
|
-
"hB"
|
|
2759
|
-
],
|
|
2760
|
-
IL: [
|
|
2761
|
-
"H",
|
|
2762
|
-
"hB"
|
|
2763
|
-
],
|
|
2764
|
-
IM: [
|
|
2765
|
-
"H",
|
|
2766
|
-
"h",
|
|
2767
|
-
"hb",
|
|
2768
|
-
"hB"
|
|
2769
|
-
],
|
|
2770
|
-
IN: [
|
|
2771
|
-
"h",
|
|
2772
|
-
"H"
|
|
2773
|
-
],
|
|
2774
|
-
IO: [
|
|
2775
|
-
"H",
|
|
2776
|
-
"h",
|
|
2777
|
-
"hb",
|
|
2778
|
-
"hB"
|
|
2779
|
-
],
|
|
2780
|
-
IQ: [
|
|
2781
|
-
"h",
|
|
2782
|
-
"hB",
|
|
2783
|
-
"hb",
|
|
2784
|
-
"H"
|
|
2785
|
-
],
|
|
2786
|
-
IR: [
|
|
2787
|
-
"hB",
|
|
2788
|
-
"H"
|
|
2789
|
-
],
|
|
2790
|
-
IS: [
|
|
2791
|
-
"H"
|
|
2792
|
-
],
|
|
2793
|
-
IT: [
|
|
2794
|
-
"H",
|
|
2795
|
-
"hB"
|
|
2796
|
-
],
|
|
2797
|
-
JE: [
|
|
2798
|
-
"H",
|
|
2799
|
-
"h",
|
|
2800
|
-
"hb",
|
|
2801
|
-
"hB"
|
|
2802
|
-
],
|
|
2803
|
-
JM: [
|
|
2804
|
-
"h",
|
|
2805
|
-
"hb",
|
|
2806
|
-
"H",
|
|
2807
|
-
"hB"
|
|
2808
|
-
],
|
|
2809
|
-
JO: [
|
|
2810
|
-
"h",
|
|
2811
|
-
"hB",
|
|
2812
|
-
"hb",
|
|
2813
|
-
"H"
|
|
2814
|
-
],
|
|
2815
|
-
JP: [
|
|
2816
|
-
"H",
|
|
2817
|
-
"K",
|
|
2818
|
-
"h"
|
|
2819
|
-
],
|
|
2820
|
-
KE: [
|
|
2821
|
-
"hB",
|
|
2822
|
-
"hb",
|
|
2823
|
-
"H",
|
|
2824
|
-
"h"
|
|
2825
|
-
],
|
|
2826
|
-
KG: [
|
|
2827
|
-
"H",
|
|
2828
|
-
"h",
|
|
2829
|
-
"hB",
|
|
2830
|
-
"hb"
|
|
2831
|
-
],
|
|
2832
|
-
KH: [
|
|
2833
|
-
"hB",
|
|
2834
|
-
"h",
|
|
2835
|
-
"H",
|
|
2836
|
-
"hb"
|
|
2837
|
-
],
|
|
2838
|
-
KI: [
|
|
2839
|
-
"h",
|
|
2840
|
-
"hb",
|
|
2841
|
-
"H",
|
|
2842
|
-
"hB"
|
|
2843
|
-
],
|
|
2844
|
-
KM: [
|
|
2845
|
-
"H",
|
|
2846
|
-
"h",
|
|
2847
|
-
"hB",
|
|
2848
|
-
"hb"
|
|
2849
|
-
],
|
|
2850
|
-
KN: [
|
|
2851
|
-
"h",
|
|
2852
|
-
"hb",
|
|
2853
|
-
"H",
|
|
2854
|
-
"hB"
|
|
2855
|
-
],
|
|
2856
|
-
KP: [
|
|
2857
|
-
"h",
|
|
2858
|
-
"H",
|
|
2859
|
-
"hB",
|
|
2860
|
-
"hb"
|
|
2861
|
-
],
|
|
2862
|
-
KR: [
|
|
2863
|
-
"h",
|
|
2864
|
-
"H",
|
|
2865
|
-
"hB",
|
|
2866
|
-
"hb"
|
|
2867
|
-
],
|
|
2868
|
-
KW: [
|
|
2869
|
-
"h",
|
|
2870
|
-
"hB",
|
|
2871
|
-
"hb",
|
|
2872
|
-
"H"
|
|
2873
|
-
],
|
|
2874
|
-
KY: [
|
|
2875
|
-
"h",
|
|
2876
|
-
"hb",
|
|
2877
|
-
"H",
|
|
2878
|
-
"hB"
|
|
2879
|
-
],
|
|
2880
|
-
KZ: [
|
|
2881
|
-
"H",
|
|
2882
|
-
"hB"
|
|
2883
|
-
],
|
|
2884
|
-
LA: [
|
|
2885
|
-
"H",
|
|
2886
|
-
"hb",
|
|
2887
|
-
"hB",
|
|
2888
|
-
"h"
|
|
2889
|
-
],
|
|
2890
|
-
LB: [
|
|
2891
|
-
"h",
|
|
2892
|
-
"hB",
|
|
2893
|
-
"hb",
|
|
2894
|
-
"H"
|
|
2895
|
-
],
|
|
2896
|
-
LC: [
|
|
2897
|
-
"h",
|
|
2898
|
-
"hb",
|
|
2899
|
-
"H",
|
|
2900
|
-
"hB"
|
|
2901
|
-
],
|
|
2902
|
-
LI: [
|
|
2903
|
-
"H",
|
|
2904
|
-
"hB",
|
|
2905
|
-
"h"
|
|
2906
|
-
],
|
|
2907
|
-
LK: [
|
|
2908
|
-
"H",
|
|
2909
|
-
"h",
|
|
2910
|
-
"hB",
|
|
2911
|
-
"hb"
|
|
2912
|
-
],
|
|
2913
|
-
LR: [
|
|
2914
|
-
"h",
|
|
2915
|
-
"hb",
|
|
2916
|
-
"H",
|
|
2917
|
-
"hB"
|
|
2918
|
-
],
|
|
2919
|
-
LS: [
|
|
2920
|
-
"h",
|
|
2921
|
-
"H"
|
|
2922
|
-
],
|
|
2923
|
-
LT: [
|
|
2924
|
-
"H",
|
|
2925
|
-
"h",
|
|
2926
|
-
"hb",
|
|
2927
|
-
"hB"
|
|
2928
|
-
],
|
|
2929
|
-
LU: [
|
|
2930
|
-
"H",
|
|
2931
|
-
"h",
|
|
2932
|
-
"hB"
|
|
2933
|
-
],
|
|
2934
|
-
LV: [
|
|
2935
|
-
"H",
|
|
2936
|
-
"hB",
|
|
2937
|
-
"hb",
|
|
2938
|
-
"h"
|
|
2939
|
-
],
|
|
2940
|
-
LY: [
|
|
2941
|
-
"h",
|
|
2942
|
-
"hB",
|
|
2943
|
-
"hb",
|
|
2944
|
-
"H"
|
|
2945
|
-
],
|
|
2946
|
-
MA: [
|
|
2947
|
-
"H",
|
|
2948
|
-
"h",
|
|
2949
|
-
"hB",
|
|
2950
|
-
"hb"
|
|
2951
|
-
],
|
|
2952
|
-
MC: [
|
|
2953
|
-
"H",
|
|
2954
|
-
"hB"
|
|
2955
|
-
],
|
|
2956
|
-
MD: [
|
|
2957
|
-
"H",
|
|
2958
|
-
"hB"
|
|
2959
|
-
],
|
|
2960
|
-
ME: [
|
|
2961
|
-
"H",
|
|
2962
|
-
"hB",
|
|
2963
|
-
"h"
|
|
2964
|
-
],
|
|
2965
|
-
MF: [
|
|
2966
|
-
"H",
|
|
2967
|
-
"hB"
|
|
2968
|
-
],
|
|
2969
|
-
MG: [
|
|
2970
|
-
"H",
|
|
2971
|
-
"h"
|
|
2972
|
-
],
|
|
2973
|
-
MH: [
|
|
2974
|
-
"h",
|
|
2975
|
-
"hb",
|
|
2976
|
-
"H",
|
|
2977
|
-
"hB"
|
|
2978
|
-
],
|
|
2979
|
-
MK: [
|
|
2980
|
-
"H",
|
|
2981
|
-
"h",
|
|
2982
|
-
"hb",
|
|
2983
|
-
"hB"
|
|
2984
|
-
],
|
|
2985
|
-
ML: [
|
|
2986
|
-
"H"
|
|
2987
|
-
],
|
|
2988
|
-
MM: [
|
|
2989
|
-
"hB",
|
|
2990
|
-
"hb",
|
|
2991
|
-
"H",
|
|
2992
|
-
"h"
|
|
2993
|
-
],
|
|
2994
|
-
MN: [
|
|
2995
|
-
"H",
|
|
2996
|
-
"h",
|
|
2997
|
-
"hb",
|
|
2998
|
-
"hB"
|
|
2999
|
-
],
|
|
3000
|
-
MO: [
|
|
3001
|
-
"h",
|
|
3002
|
-
"hB",
|
|
3003
|
-
"hb",
|
|
3004
|
-
"H"
|
|
3005
|
-
],
|
|
3006
|
-
MP: [
|
|
3007
|
-
"h",
|
|
3008
|
-
"hb",
|
|
3009
|
-
"H",
|
|
3010
|
-
"hB"
|
|
3011
|
-
],
|
|
3012
|
-
MQ: [
|
|
3013
|
-
"H",
|
|
3014
|
-
"hB"
|
|
3015
|
-
],
|
|
3016
|
-
MR: [
|
|
3017
|
-
"h",
|
|
3018
|
-
"hB",
|
|
3019
|
-
"hb",
|
|
3020
|
-
"H"
|
|
3021
|
-
],
|
|
3022
|
-
MS: [
|
|
3023
|
-
"H",
|
|
3024
|
-
"h",
|
|
3025
|
-
"hb",
|
|
3026
|
-
"hB"
|
|
3027
|
-
],
|
|
3028
|
-
MT: [
|
|
3029
|
-
"H",
|
|
3030
|
-
"h"
|
|
3031
|
-
],
|
|
3032
|
-
MU: [
|
|
3033
|
-
"H",
|
|
3034
|
-
"h"
|
|
3035
|
-
],
|
|
3036
|
-
MV: [
|
|
3037
|
-
"H",
|
|
3038
|
-
"h"
|
|
3039
|
-
],
|
|
3040
|
-
MW: [
|
|
3041
|
-
"h",
|
|
3042
|
-
"hb",
|
|
3043
|
-
"H",
|
|
3044
|
-
"hB"
|
|
3045
|
-
],
|
|
3046
|
-
MX: [
|
|
3047
|
-
"h",
|
|
3048
|
-
"H",
|
|
3049
|
-
"hB",
|
|
3050
|
-
"hb"
|
|
3051
|
-
],
|
|
3052
|
-
MY: [
|
|
3053
|
-
"hb",
|
|
3054
|
-
"hB",
|
|
3055
|
-
"h",
|
|
3056
|
-
"H"
|
|
3057
|
-
],
|
|
3058
|
-
MZ: [
|
|
3059
|
-
"H",
|
|
3060
|
-
"hB"
|
|
3061
|
-
],
|
|
3062
|
-
NA: [
|
|
3063
|
-
"h",
|
|
3064
|
-
"H",
|
|
3065
|
-
"hB",
|
|
3066
|
-
"hb"
|
|
3067
|
-
],
|
|
3068
|
-
NC: [
|
|
3069
|
-
"H",
|
|
3070
|
-
"hB"
|
|
3071
|
-
],
|
|
3072
|
-
NE: [
|
|
3073
|
-
"H"
|
|
3074
|
-
],
|
|
3075
|
-
NF: [
|
|
3076
|
-
"H",
|
|
3077
|
-
"h",
|
|
3078
|
-
"hb",
|
|
3079
|
-
"hB"
|
|
3080
|
-
],
|
|
3081
|
-
NG: [
|
|
3082
|
-
"H",
|
|
3083
|
-
"h",
|
|
3084
|
-
"hb",
|
|
3085
|
-
"hB"
|
|
3086
|
-
],
|
|
3087
|
-
NI: [
|
|
3088
|
-
"h",
|
|
3089
|
-
"H",
|
|
3090
|
-
"hB",
|
|
3091
|
-
"hb"
|
|
3092
|
-
],
|
|
3093
|
-
NL: [
|
|
3094
|
-
"H",
|
|
3095
|
-
"hB"
|
|
3096
|
-
],
|
|
3097
|
-
NO: [
|
|
3098
|
-
"H",
|
|
3099
|
-
"h"
|
|
3100
|
-
],
|
|
3101
|
-
NP: [
|
|
3102
|
-
"H",
|
|
3103
|
-
"h",
|
|
3104
|
-
"hB"
|
|
3105
|
-
],
|
|
3106
|
-
NR: [
|
|
3107
|
-
"H",
|
|
3108
|
-
"h",
|
|
3109
|
-
"hb",
|
|
3110
|
-
"hB"
|
|
3111
|
-
],
|
|
3112
|
-
NU: [
|
|
3113
|
-
"H",
|
|
3114
|
-
"h",
|
|
3115
|
-
"hb",
|
|
3116
|
-
"hB"
|
|
3117
|
-
],
|
|
3118
|
-
NZ: [
|
|
3119
|
-
"h",
|
|
3120
|
-
"hb",
|
|
3121
|
-
"H",
|
|
3122
|
-
"hB"
|
|
3123
|
-
],
|
|
3124
|
-
OM: [
|
|
3125
|
-
"h",
|
|
3126
|
-
"hB",
|
|
3127
|
-
"hb",
|
|
3128
|
-
"H"
|
|
3129
|
-
],
|
|
3130
|
-
PA: [
|
|
3131
|
-
"h",
|
|
3132
|
-
"H",
|
|
3133
|
-
"hB",
|
|
3134
|
-
"hb"
|
|
3135
|
-
],
|
|
3136
|
-
PE: [
|
|
3137
|
-
"h",
|
|
3138
|
-
"H",
|
|
3139
|
-
"hB",
|
|
3140
|
-
"hb"
|
|
3141
|
-
],
|
|
3142
|
-
PF: [
|
|
3143
|
-
"H",
|
|
3144
|
-
"h",
|
|
3145
|
-
"hB"
|
|
3146
|
-
],
|
|
3147
|
-
PG: [
|
|
3148
|
-
"h",
|
|
3149
|
-
"H"
|
|
3150
|
-
],
|
|
3151
|
-
PH: [
|
|
3152
|
-
"h",
|
|
3153
|
-
"hB",
|
|
3154
|
-
"hb",
|
|
3155
|
-
"H"
|
|
3156
|
-
],
|
|
3157
|
-
PK: [
|
|
3158
|
-
"h",
|
|
3159
|
-
"hB",
|
|
3160
|
-
"H"
|
|
3161
|
-
],
|
|
3162
|
-
PL: [
|
|
3163
|
-
"H",
|
|
3164
|
-
"h"
|
|
3165
|
-
],
|
|
3166
|
-
PM: [
|
|
3167
|
-
"H",
|
|
3168
|
-
"hB"
|
|
3169
|
-
],
|
|
3170
|
-
PN: [
|
|
3171
|
-
"H",
|
|
3172
|
-
"h",
|
|
3173
|
-
"hb",
|
|
3174
|
-
"hB"
|
|
3175
|
-
],
|
|
3176
|
-
PR: [
|
|
3177
|
-
"h",
|
|
3178
|
-
"H",
|
|
3179
|
-
"hB",
|
|
3180
|
-
"hb"
|
|
3181
|
-
],
|
|
3182
|
-
PS: [
|
|
3183
|
-
"h",
|
|
3184
|
-
"hB",
|
|
3185
|
-
"hb",
|
|
3186
|
-
"H"
|
|
3187
|
-
],
|
|
3188
|
-
PT: [
|
|
3189
|
-
"H",
|
|
3190
|
-
"hB"
|
|
3191
|
-
],
|
|
3192
|
-
PW: [
|
|
3193
|
-
"h",
|
|
3194
|
-
"H"
|
|
3195
|
-
],
|
|
3196
|
-
PY: [
|
|
3197
|
-
"h",
|
|
3198
|
-
"H",
|
|
3199
|
-
"hB",
|
|
3200
|
-
"hb"
|
|
3201
|
-
],
|
|
3202
|
-
QA: [
|
|
3203
|
-
"h",
|
|
3204
|
-
"hB",
|
|
3205
|
-
"hb",
|
|
3206
|
-
"H"
|
|
3207
|
-
],
|
|
3208
|
-
RE: [
|
|
3209
|
-
"H",
|
|
3210
|
-
"hB"
|
|
3211
|
-
],
|
|
3212
|
-
RO: [
|
|
3213
|
-
"H",
|
|
3214
|
-
"hB"
|
|
3215
|
-
],
|
|
3216
|
-
RS: [
|
|
3217
|
-
"H",
|
|
3218
|
-
"hB",
|
|
3219
|
-
"h"
|
|
3220
|
-
],
|
|
3221
|
-
RU: [
|
|
3222
|
-
"H"
|
|
3223
|
-
],
|
|
3224
|
-
RW: [
|
|
3225
|
-
"H",
|
|
3226
|
-
"h"
|
|
3227
|
-
],
|
|
3228
|
-
SA: [
|
|
3229
|
-
"h",
|
|
3230
|
-
"hB",
|
|
3231
|
-
"hb",
|
|
3232
|
-
"H"
|
|
3233
|
-
],
|
|
3234
|
-
SB: [
|
|
3235
|
-
"h",
|
|
3236
|
-
"hb",
|
|
3237
|
-
"H",
|
|
3238
|
-
"hB"
|
|
3239
|
-
],
|
|
3240
|
-
SC: [
|
|
3241
|
-
"H",
|
|
3242
|
-
"h",
|
|
3243
|
-
"hB"
|
|
3244
|
-
],
|
|
3245
|
-
SD: [
|
|
3246
|
-
"h",
|
|
3247
|
-
"hB",
|
|
3248
|
-
"hb",
|
|
3249
|
-
"H"
|
|
3250
|
-
],
|
|
3251
|
-
SE: [
|
|
3252
|
-
"H"
|
|
3253
|
-
],
|
|
3254
|
-
SG: [
|
|
3255
|
-
"h",
|
|
3256
|
-
"hb",
|
|
3257
|
-
"H",
|
|
3258
|
-
"hB"
|
|
3259
|
-
],
|
|
3260
|
-
SH: [
|
|
3261
|
-
"H",
|
|
3262
|
-
"h",
|
|
3263
|
-
"hb",
|
|
3264
|
-
"hB"
|
|
3265
|
-
],
|
|
3266
|
-
SI: [
|
|
3267
|
-
"H",
|
|
3268
|
-
"hB"
|
|
3269
|
-
],
|
|
3270
|
-
SJ: [
|
|
3271
|
-
"H"
|
|
3272
|
-
],
|
|
3273
|
-
SK: [
|
|
3274
|
-
"H"
|
|
3275
|
-
],
|
|
3276
|
-
SL: [
|
|
3277
|
-
"h",
|
|
3278
|
-
"hb",
|
|
3279
|
-
"H",
|
|
3280
|
-
"hB"
|
|
3281
|
-
],
|
|
3282
|
-
SM: [
|
|
3283
|
-
"H",
|
|
3284
|
-
"h",
|
|
3285
|
-
"hB"
|
|
3286
|
-
],
|
|
3287
|
-
SN: [
|
|
3288
|
-
"H",
|
|
3289
|
-
"h",
|
|
3290
|
-
"hB"
|
|
3291
|
-
],
|
|
3292
|
-
SO: [
|
|
3293
|
-
"h",
|
|
3294
|
-
"H"
|
|
3295
|
-
],
|
|
3296
|
-
SR: [
|
|
3297
|
-
"H",
|
|
3298
|
-
"hB"
|
|
3299
|
-
],
|
|
3300
|
-
SS: [
|
|
3301
|
-
"h",
|
|
3302
|
-
"hb",
|
|
3303
|
-
"H",
|
|
3304
|
-
"hB"
|
|
3305
|
-
],
|
|
3306
|
-
ST: [
|
|
3307
|
-
"H",
|
|
3308
|
-
"hB"
|
|
3309
|
-
],
|
|
3310
|
-
SV: [
|
|
3311
|
-
"h",
|
|
3312
|
-
"H",
|
|
3313
|
-
"hB",
|
|
3314
|
-
"hb"
|
|
3315
|
-
],
|
|
3316
|
-
SX: [
|
|
3317
|
-
"H",
|
|
3318
|
-
"h",
|
|
3319
|
-
"hb",
|
|
3320
|
-
"hB"
|
|
3321
|
-
],
|
|
3322
|
-
SY: [
|
|
3323
|
-
"h",
|
|
3324
|
-
"hB",
|
|
3325
|
-
"hb",
|
|
3326
|
-
"H"
|
|
3327
|
-
],
|
|
3328
|
-
SZ: [
|
|
3329
|
-
"h",
|
|
3330
|
-
"hb",
|
|
3331
|
-
"H",
|
|
3332
|
-
"hB"
|
|
3333
|
-
],
|
|
3334
|
-
TA: [
|
|
3335
|
-
"H",
|
|
3336
|
-
"h",
|
|
3337
|
-
"hb",
|
|
3338
|
-
"hB"
|
|
3339
|
-
],
|
|
3340
|
-
TC: [
|
|
3341
|
-
"h",
|
|
3342
|
-
"hb",
|
|
3343
|
-
"H",
|
|
3344
|
-
"hB"
|
|
3345
|
-
],
|
|
3346
|
-
TD: [
|
|
3347
|
-
"h",
|
|
3348
|
-
"H",
|
|
3349
|
-
"hB"
|
|
3350
|
-
],
|
|
3351
|
-
TF: [
|
|
3352
|
-
"H",
|
|
3353
|
-
"h",
|
|
3354
|
-
"hB"
|
|
3355
|
-
],
|
|
3356
|
-
TG: [
|
|
3357
|
-
"H",
|
|
3358
|
-
"hB"
|
|
3359
|
-
],
|
|
3360
|
-
TH: [
|
|
3361
|
-
"H",
|
|
3362
|
-
"h"
|
|
3363
|
-
],
|
|
3364
|
-
TJ: [
|
|
3365
|
-
"H",
|
|
3366
|
-
"h"
|
|
3367
|
-
],
|
|
3368
|
-
TL: [
|
|
3369
|
-
"H",
|
|
3370
|
-
"hB",
|
|
3371
|
-
"hb",
|
|
3372
|
-
"h"
|
|
3373
|
-
],
|
|
3374
|
-
TM: [
|
|
3375
|
-
"H",
|
|
3376
|
-
"h"
|
|
3377
|
-
],
|
|
3378
|
-
TN: [
|
|
3379
|
-
"h",
|
|
3380
|
-
"hB",
|
|
3381
|
-
"hb",
|
|
3382
|
-
"H"
|
|
3383
|
-
],
|
|
3384
|
-
TO: [
|
|
3385
|
-
"h",
|
|
3386
|
-
"H"
|
|
3387
|
-
],
|
|
3388
|
-
TR: [
|
|
3389
|
-
"H",
|
|
3390
|
-
"hB"
|
|
3391
|
-
],
|
|
3392
|
-
TT: [
|
|
3393
|
-
"h",
|
|
3394
|
-
"hb",
|
|
3395
|
-
"H",
|
|
3396
|
-
"hB"
|
|
3397
|
-
],
|
|
3398
|
-
TW: [
|
|
3399
|
-
"hB",
|
|
3400
|
-
"hb",
|
|
3401
|
-
"h",
|
|
3402
|
-
"H"
|
|
3403
|
-
],
|
|
3404
|
-
TZ: [
|
|
3405
|
-
"hB",
|
|
3406
|
-
"hb",
|
|
3407
|
-
"H",
|
|
3408
|
-
"h"
|
|
3409
|
-
],
|
|
3410
|
-
UA: [
|
|
3411
|
-
"H",
|
|
3412
|
-
"hB",
|
|
3413
|
-
"h"
|
|
3414
|
-
],
|
|
3415
|
-
UG: [
|
|
3416
|
-
"hB",
|
|
3417
|
-
"hb",
|
|
3418
|
-
"H",
|
|
3419
|
-
"h"
|
|
3420
|
-
],
|
|
3421
|
-
UM: [
|
|
3422
|
-
"h",
|
|
3423
|
-
"hb",
|
|
3424
|
-
"H",
|
|
3425
|
-
"hB"
|
|
3426
|
-
],
|
|
3427
|
-
US: [
|
|
3428
|
-
"h",
|
|
3429
|
-
"hb",
|
|
3430
|
-
"H",
|
|
3431
|
-
"hB"
|
|
3432
|
-
],
|
|
3433
|
-
UY: [
|
|
3434
|
-
"h",
|
|
3435
|
-
"H",
|
|
3436
|
-
"hB",
|
|
3437
|
-
"hb"
|
|
3438
|
-
],
|
|
3439
|
-
UZ: [
|
|
3440
|
-
"H",
|
|
3441
|
-
"hB",
|
|
3442
|
-
"h"
|
|
3443
|
-
],
|
|
3444
|
-
VA: [
|
|
3445
|
-
"H",
|
|
3446
|
-
"h",
|
|
3447
|
-
"hB"
|
|
3448
|
-
],
|
|
3449
|
-
VC: [
|
|
3450
|
-
"h",
|
|
3451
|
-
"hb",
|
|
3452
|
-
"H",
|
|
3453
|
-
"hB"
|
|
3454
|
-
],
|
|
3455
|
-
VE: [
|
|
3456
|
-
"h",
|
|
3457
|
-
"H",
|
|
3458
|
-
"hB",
|
|
3459
|
-
"hb"
|
|
3460
|
-
],
|
|
3461
|
-
VG: [
|
|
3462
|
-
"h",
|
|
3463
|
-
"hb",
|
|
3464
|
-
"H",
|
|
3465
|
-
"hB"
|
|
3466
|
-
],
|
|
3467
|
-
VI: [
|
|
3468
|
-
"h",
|
|
3469
|
-
"hb",
|
|
3470
|
-
"H",
|
|
3471
|
-
"hB"
|
|
3472
|
-
],
|
|
3473
|
-
VN: [
|
|
3474
|
-
"H",
|
|
3475
|
-
"h"
|
|
3476
|
-
],
|
|
3477
|
-
VU: [
|
|
3478
|
-
"h",
|
|
3479
|
-
"H"
|
|
3480
|
-
],
|
|
3481
|
-
WF: [
|
|
3482
|
-
"H",
|
|
3483
|
-
"hB"
|
|
3484
|
-
],
|
|
3485
|
-
WS: [
|
|
3486
|
-
"h",
|
|
3487
|
-
"H"
|
|
3488
|
-
],
|
|
3489
|
-
XK: [
|
|
3490
|
-
"H",
|
|
3491
|
-
"hB",
|
|
3492
|
-
"h"
|
|
3493
|
-
],
|
|
3494
|
-
YE: [
|
|
3495
|
-
"h",
|
|
3496
|
-
"hB",
|
|
3497
|
-
"hb",
|
|
3498
|
-
"H"
|
|
3499
|
-
],
|
|
3500
|
-
YT: [
|
|
3501
|
-
"H",
|
|
3502
|
-
"hB"
|
|
3503
|
-
],
|
|
3504
|
-
ZA: [
|
|
3505
|
-
"H",
|
|
3506
|
-
"h",
|
|
3507
|
-
"hb",
|
|
3508
|
-
"hB"
|
|
3509
|
-
],
|
|
3510
|
-
ZM: [
|
|
3511
|
-
"h",
|
|
3512
|
-
"hb",
|
|
3513
|
-
"H",
|
|
3514
|
-
"hB"
|
|
3515
|
-
],
|
|
3516
|
-
ZW: [
|
|
3517
|
-
"H",
|
|
3518
|
-
"h"
|
|
3519
|
-
],
|
|
3520
|
-
"af-ZA": [
|
|
3521
|
-
"H",
|
|
3522
|
-
"h",
|
|
3523
|
-
"hB",
|
|
3524
|
-
"hb"
|
|
3525
|
-
],
|
|
3526
|
-
"ar-001": [
|
|
3527
|
-
"h",
|
|
3528
|
-
"hB",
|
|
3529
|
-
"hb",
|
|
3530
|
-
"H"
|
|
3531
|
-
],
|
|
3532
|
-
"ca-ES": [
|
|
3533
|
-
"H",
|
|
3534
|
-
"h",
|
|
3535
|
-
"hB"
|
|
3536
|
-
],
|
|
3537
|
-
"en-001": [
|
|
3538
|
-
"h",
|
|
3539
|
-
"hb",
|
|
3540
|
-
"H",
|
|
3541
|
-
"hB"
|
|
3542
|
-
],
|
|
3543
|
-
"en-HK": [
|
|
3544
|
-
"h",
|
|
3545
|
-
"hb",
|
|
3546
|
-
"H",
|
|
3547
|
-
"hB"
|
|
3548
|
-
],
|
|
3549
|
-
"en-IL": [
|
|
3550
|
-
"H",
|
|
3551
|
-
"h",
|
|
3552
|
-
"hb",
|
|
3553
|
-
"hB"
|
|
3554
|
-
],
|
|
3555
|
-
"en-MY": [
|
|
3556
|
-
"h",
|
|
3557
|
-
"hb",
|
|
3558
|
-
"H",
|
|
3559
|
-
"hB"
|
|
3560
|
-
],
|
|
3561
|
-
"es-BR": [
|
|
3562
|
-
"H",
|
|
3563
|
-
"h",
|
|
3564
|
-
"hB",
|
|
3565
|
-
"hb"
|
|
3566
|
-
],
|
|
3567
|
-
"es-ES": [
|
|
3568
|
-
"H",
|
|
3569
|
-
"h",
|
|
3570
|
-
"hB",
|
|
3571
|
-
"hb"
|
|
3572
|
-
],
|
|
3573
|
-
"es-GQ": [
|
|
3574
|
-
"H",
|
|
3575
|
-
"h",
|
|
3576
|
-
"hB",
|
|
3577
|
-
"hb"
|
|
3578
|
-
],
|
|
3579
|
-
"fr-CA": [
|
|
3580
|
-
"H",
|
|
3581
|
-
"h",
|
|
3582
|
-
"hB"
|
|
3583
|
-
],
|
|
3584
|
-
"gl-ES": [
|
|
3585
|
-
"H",
|
|
3586
|
-
"h",
|
|
3587
|
-
"hB"
|
|
3588
|
-
],
|
|
3589
|
-
"gu-IN": [
|
|
3590
|
-
"hB",
|
|
3591
|
-
"hb",
|
|
3592
|
-
"h",
|
|
3593
|
-
"H"
|
|
3594
|
-
],
|
|
3595
|
-
"hi-IN": [
|
|
3596
|
-
"hB",
|
|
3597
|
-
"h",
|
|
3598
|
-
"H"
|
|
3599
|
-
],
|
|
3600
|
-
"it-CH": [
|
|
3601
|
-
"H",
|
|
3602
|
-
"h",
|
|
3603
|
-
"hB"
|
|
3604
|
-
],
|
|
3605
|
-
"it-IT": [
|
|
3606
|
-
"H",
|
|
3607
|
-
"h",
|
|
3608
|
-
"hB"
|
|
3609
|
-
],
|
|
3610
|
-
"kn-IN": [
|
|
3611
|
-
"hB",
|
|
3612
|
-
"h",
|
|
3613
|
-
"H"
|
|
3614
|
-
],
|
|
3615
|
-
"ml-IN": [
|
|
3616
|
-
"hB",
|
|
3617
|
-
"h",
|
|
3618
|
-
"H"
|
|
3619
|
-
],
|
|
3620
|
-
"mr-IN": [
|
|
3621
|
-
"hB",
|
|
3622
|
-
"hb",
|
|
3623
|
-
"h",
|
|
3624
|
-
"H"
|
|
3625
|
-
],
|
|
3626
|
-
"pa-IN": [
|
|
3627
|
-
"hB",
|
|
3628
|
-
"hb",
|
|
3629
|
-
"h",
|
|
3630
|
-
"H"
|
|
3631
|
-
],
|
|
3632
|
-
"ta-IN": [
|
|
3633
|
-
"hB",
|
|
3634
|
-
"h",
|
|
3635
|
-
"hb",
|
|
3636
|
-
"H"
|
|
3637
|
-
],
|
|
3638
|
-
"te-IN": [
|
|
3639
|
-
"hB",
|
|
3640
|
-
"h",
|
|
3641
|
-
"H"
|
|
3642
|
-
],
|
|
3643
|
-
"zu-ZA": [
|
|
3644
|
-
"H",
|
|
3645
|
-
"hB",
|
|
3646
|
-
"hb",
|
|
3647
|
-
"h"
|
|
3648
|
-
]
|
|
3649
|
-
};
|
|
3650
|
-
function Ws(e, t) {
|
|
3651
|
-
for (var r = "", n = 0; n < e.length; n++) {
|
|
3652
|
-
var i = e.charAt(n);
|
|
3653
|
-
if (i === "j") {
|
|
3654
|
-
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3655
|
-
s++, n++;
|
|
3656
|
-
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = Qs(t);
|
|
3657
|
-
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
3658
|
-
r += l;
|
|
3659
|
-
for (; o-- > 0; )
|
|
3660
|
-
r = a + r;
|
|
3661
|
-
} else i === "J" ? r += "H" : r += i;
|
|
3662
|
-
}
|
|
3663
|
-
return r;
|
|
3664
|
-
}
|
|
3665
|
-
function Qs(e) {
|
|
3666
|
-
var t = e.hourCycle;
|
|
3667
|
-
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3668
|
-
e.hourCycles && // @ts-ignore
|
|
3669
|
-
e.hourCycles.length && (t = e.hourCycles[0]), t)
|
|
3670
|
-
switch (t) {
|
|
3671
|
-
case "h24":
|
|
3672
|
-
return "k";
|
|
3673
|
-
case "h23":
|
|
3674
|
-
return "H";
|
|
3675
|
-
case "h12":
|
|
3676
|
-
return "h";
|
|
3677
|
-
case "h11":
|
|
3678
|
-
return "K";
|
|
3679
|
-
default:
|
|
3680
|
-
throw new Error("Invalid hourCycle");
|
|
3681
|
-
}
|
|
3682
|
-
var r = e.language, n;
|
|
3683
|
-
r !== "root" && (n = e.maximize().region);
|
|
3684
|
-
var i = it[n || ""] || it[r || ""] || it["".concat(r, "-001")] || it["001"];
|
|
3685
|
-
return i[0];
|
|
3686
|
-
}
|
|
3687
|
-
var It, Zs = new RegExp("^".concat(Mn.source, "*")), $s = new RegExp("".concat(Mn.source, "*$"));
|
|
3688
|
-
function _(e, t) {
|
|
3689
|
-
return { start: e, end: t };
|
|
3690
|
-
}
|
|
3691
|
-
var Ys = !!String.prototype.startsWith && "_a".startsWith("a", 1), Js = !!String.fromCodePoint, Ks = !!Object.fromEntries, ea = !!String.prototype.codePointAt, ta = !!String.prototype.trimStart, ra = !!String.prototype.trimEnd, na = !!Number.isSafeInteger, ia = na ? Number.isSafeInteger : function(e) {
|
|
3692
|
-
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3693
|
-
}, Wt = !0;
|
|
3694
|
-
try {
|
|
3695
|
-
var sa = Gn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3696
|
-
Wt = ((It = sa.exec("a")) === null || It === void 0 ? void 0 : It[0]) === "a";
|
|
3697
|
-
} catch {
|
|
3698
|
-
Wt = !1;
|
|
3699
|
-
}
|
|
3700
|
-
var Ar = Ys ? (
|
|
3701
|
-
// Native
|
|
3702
|
-
function(t, r, n) {
|
|
3703
|
-
return t.startsWith(r, n);
|
|
3704
|
-
}
|
|
3705
|
-
) : (
|
|
3706
|
-
// For IE11
|
|
3707
|
-
function(t, r, n) {
|
|
3708
|
-
return t.slice(n, n + r.length) === r;
|
|
3709
|
-
}
|
|
3710
|
-
), Qt = Js ? String.fromCodePoint : (
|
|
3711
|
-
// IE11
|
|
3712
|
-
function() {
|
|
3713
|
-
for (var t = [], r = 0; r < arguments.length; r++)
|
|
3714
|
-
t[r] = arguments[r];
|
|
3715
|
-
for (var n = "", i = t.length, s = 0, o; i > s; ) {
|
|
3716
|
-
if (o = t[s++], o > 1114111)
|
|
3717
|
-
throw RangeError(o + " is not a valid code point");
|
|
3718
|
-
n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
|
|
3719
|
-
}
|
|
3720
|
-
return n;
|
|
3721
|
-
}
|
|
3722
|
-
), Br = (
|
|
3723
|
-
// native
|
|
3724
|
-
Ks ? Object.fromEntries : (
|
|
3725
|
-
// Ponyfill
|
|
3726
|
-
function(t) {
|
|
3727
|
-
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
3728
|
-
var s = i[n], o = s[0], u = s[1];
|
|
3729
|
-
r[o] = u;
|
|
3730
|
-
}
|
|
3731
|
-
return r;
|
|
3732
|
-
}
|
|
3733
|
-
)
|
|
3734
|
-
), Un = ea ? (
|
|
3735
|
-
// Native
|
|
3736
|
-
function(t, r) {
|
|
3737
|
-
return t.codePointAt(r);
|
|
3738
|
-
}
|
|
3739
|
-
) : (
|
|
3740
|
-
// IE 11
|
|
3741
|
-
function(t, r) {
|
|
3742
|
-
var n = t.length;
|
|
3743
|
-
if (!(r < 0 || r >= n)) {
|
|
3744
|
-
var i = t.charCodeAt(r), s;
|
|
3745
|
-
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
3746
|
-
}
|
|
3747
|
-
}
|
|
3748
|
-
), aa = ta ? (
|
|
3749
|
-
// Native
|
|
3750
|
-
function(t) {
|
|
3751
|
-
return t.trimStart();
|
|
3752
|
-
}
|
|
3753
|
-
) : (
|
|
3754
|
-
// Ponyfill
|
|
3755
|
-
function(t) {
|
|
3756
|
-
return t.replace(Zs, "");
|
|
3757
|
-
}
|
|
3758
|
-
), oa = ra ? (
|
|
3759
|
-
// Native
|
|
3760
|
-
function(t) {
|
|
3761
|
-
return t.trimEnd();
|
|
3762
|
-
}
|
|
3763
|
-
) : (
|
|
3764
|
-
// Ponyfill
|
|
3765
|
-
function(t) {
|
|
3766
|
-
return t.replace($s, "");
|
|
3767
|
-
}
|
|
3768
|
-
);
|
|
3769
|
-
function Gn(e, t) {
|
|
3770
|
-
return new RegExp(e, t);
|
|
3771
|
-
}
|
|
3772
|
-
var Zt;
|
|
3773
|
-
if (Wt) {
|
|
3774
|
-
var Nr = Gn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3775
|
-
Zt = function(t, r) {
|
|
3776
|
-
var n;
|
|
3777
|
-
Nr.lastIndex = r;
|
|
3778
|
-
var i = Nr.exec(t);
|
|
3779
|
-
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3780
|
-
};
|
|
3781
|
-
} else
|
|
3782
|
-
Zt = function(t, r) {
|
|
3783
|
-
for (var n = []; ; ) {
|
|
3784
|
-
var i = Un(t, r);
|
|
3785
|
-
if (i === void 0 || Fn(i) || ha(i))
|
|
3786
|
-
break;
|
|
3787
|
-
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3788
|
-
}
|
|
3789
|
-
return Qt.apply(void 0, n);
|
|
3790
|
-
};
|
|
3791
|
-
var ua = (
|
|
3792
|
-
/** @class */
|
|
3793
|
-
function() {
|
|
3794
|
-
function e(t, r) {
|
|
3795
|
-
r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
|
|
3796
|
-
}
|
|
3797
|
-
return e.prototype.parse = function() {
|
|
3798
|
-
if (this.offset() !== 0)
|
|
3799
|
-
throw Error("parser can only be used once");
|
|
3800
|
-
return this.parseMessage(0, "", !1);
|
|
3801
|
-
}, e.prototype.parseMessage = function(t, r, n) {
|
|
3802
|
-
for (var i = []; !this.isEOF(); ) {
|
|
3803
|
-
var s = this.char();
|
|
3804
|
-
if (s === 123) {
|
|
3805
|
-
var o = this.parseArgument(t, n);
|
|
3806
|
-
if (o.err)
|
|
3807
|
-
return o;
|
|
3808
|
-
i.push(o.val);
|
|
3809
|
-
} else {
|
|
3810
|
-
if (s === 125 && t > 0)
|
|
3811
|
-
break;
|
|
3812
|
-
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3813
|
-
var u = this.clonePosition();
|
|
3814
|
-
this.bump(), i.push({
|
|
3815
|
-
type: x.pound,
|
|
3816
|
-
location: _(u, this.clonePosition())
|
|
3817
|
-
});
|
|
3818
|
-
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3819
|
-
if (n)
|
|
3820
|
-
break;
|
|
3821
|
-
return this.error(d.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
3822
|
-
} else if (s === 60 && !this.ignoreTag && $t(this.peek() || 0)) {
|
|
3823
|
-
var o = this.parseTag(t, r);
|
|
3824
|
-
if (o.err)
|
|
3825
|
-
return o;
|
|
3826
|
-
i.push(o.val);
|
|
3827
|
-
} else {
|
|
3828
|
-
var o = this.parseLiteral(t, r);
|
|
3829
|
-
if (o.err)
|
|
3830
|
-
return o;
|
|
3831
|
-
i.push(o.val);
|
|
3832
|
-
}
|
|
3833
|
-
}
|
|
3834
|
-
}
|
|
3835
|
-
return { val: i, err: null };
|
|
3836
|
-
}, e.prototype.parseTag = function(t, r) {
|
|
3837
|
-
var n = this.clonePosition();
|
|
3838
|
-
this.bump();
|
|
3839
|
-
var i = this.parseTagName();
|
|
3840
|
-
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3841
|
-
return {
|
|
3842
|
-
val: {
|
|
3843
|
-
type: x.literal,
|
|
3844
|
-
value: "<".concat(i, "/>"),
|
|
3845
|
-
location: _(n, this.clonePosition())
|
|
3846
|
-
},
|
|
3847
|
-
err: null
|
|
3848
|
-
};
|
|
3849
|
-
if (this.bumpIf(">")) {
|
|
3850
|
-
var s = this.parseMessage(t + 1, r, !0);
|
|
3851
|
-
if (s.err)
|
|
3852
|
-
return s;
|
|
3853
|
-
var o = s.val, u = this.clonePosition();
|
|
3854
|
-
if (this.bumpIf("</")) {
|
|
3855
|
-
if (this.isEOF() || !$t(this.char()))
|
|
3856
|
-
return this.error(d.INVALID_TAG, _(u, this.clonePosition()));
|
|
3857
|
-
var l = this.clonePosition(), a = this.parseTagName();
|
|
3858
|
-
return i !== a ? this.error(d.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3859
|
-
val: {
|
|
3860
|
-
type: x.tag,
|
|
3861
|
-
value: i,
|
|
3862
|
-
children: o,
|
|
3863
|
-
location: _(n, this.clonePosition())
|
|
3864
|
-
},
|
|
3865
|
-
err: null
|
|
3866
|
-
} : this.error(d.INVALID_TAG, _(u, this.clonePosition())));
|
|
3867
|
-
} else
|
|
3868
|
-
return this.error(d.UNCLOSED_TAG, _(n, this.clonePosition()));
|
|
3869
|
-
} else
|
|
3870
|
-
return this.error(d.INVALID_TAG, _(n, this.clonePosition()));
|
|
3871
|
-
}, e.prototype.parseTagName = function() {
|
|
3872
|
-
var t = this.offset();
|
|
3873
|
-
for (this.bump(); !this.isEOF() && fa(this.char()); )
|
|
3874
|
-
this.bump();
|
|
3875
|
-
return this.message.slice(t, this.offset());
|
|
3876
|
-
}, e.prototype.parseLiteral = function(t, r) {
|
|
3877
|
-
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
3878
|
-
var s = this.tryParseQuote(r);
|
|
3879
|
-
if (s) {
|
|
3880
|
-
i += s;
|
|
3881
|
-
continue;
|
|
3882
|
-
}
|
|
3883
|
-
var o = this.tryParseUnquoted(t, r);
|
|
3884
|
-
if (o) {
|
|
3885
|
-
i += o;
|
|
3886
|
-
continue;
|
|
3887
|
-
}
|
|
3888
|
-
var u = this.tryParseLeftAngleBracket();
|
|
3889
|
-
if (u) {
|
|
3890
|
-
i += u;
|
|
3891
|
-
continue;
|
|
3892
|
-
}
|
|
3893
|
-
break;
|
|
3894
|
-
}
|
|
3895
|
-
var l = _(n, this.clonePosition());
|
|
3896
|
-
return {
|
|
3897
|
-
val: { type: x.literal, value: i, location: l },
|
|
3898
|
-
err: null
|
|
3899
|
-
};
|
|
3900
|
-
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3901
|
-
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3902
|
-
!la(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3903
|
-
}, e.prototype.tryParseQuote = function(t) {
|
|
3904
|
-
if (this.isEOF() || this.char() !== 39)
|
|
3905
|
-
return null;
|
|
3906
|
-
switch (this.peek()) {
|
|
3907
|
-
case 39:
|
|
3908
|
-
return this.bump(), this.bump(), "'";
|
|
3909
|
-
case 123:
|
|
3910
|
-
case 60:
|
|
3911
|
-
case 62:
|
|
3912
|
-
case 125:
|
|
3913
|
-
break;
|
|
3914
|
-
case 35:
|
|
3915
|
-
if (t === "plural" || t === "selectordinal")
|
|
3916
|
-
break;
|
|
3917
|
-
return null;
|
|
3918
|
-
default:
|
|
3919
|
-
return null;
|
|
3920
|
-
}
|
|
3921
|
-
this.bump();
|
|
3922
|
-
var r = [this.char()];
|
|
3923
|
-
for (this.bump(); !this.isEOF(); ) {
|
|
3924
|
-
var n = this.char();
|
|
3925
|
-
if (n === 39)
|
|
3926
|
-
if (this.peek() === 39)
|
|
3927
|
-
r.push(39), this.bump();
|
|
3928
|
-
else {
|
|
3929
|
-
this.bump();
|
|
3930
|
-
break;
|
|
3931
|
-
}
|
|
3932
|
-
else
|
|
3933
|
-
r.push(n);
|
|
3934
|
-
this.bump();
|
|
3935
|
-
}
|
|
3936
|
-
return Qt.apply(void 0, r);
|
|
3937
|
-
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3938
|
-
if (this.isEOF())
|
|
3939
|
-
return null;
|
|
3940
|
-
var n = this.char();
|
|
3941
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Qt(n));
|
|
3942
|
-
}, e.prototype.parseArgument = function(t, r) {
|
|
3943
|
-
var n = this.clonePosition();
|
|
3944
|
-
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3945
|
-
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
|
|
3946
|
-
if (this.char() === 125)
|
|
3947
|
-
return this.bump(), this.error(d.EMPTY_ARGUMENT, _(n, this.clonePosition()));
|
|
3948
|
-
var i = this.parseIdentifierIfPossible().value;
|
|
3949
|
-
if (!i)
|
|
3950
|
-
return this.error(d.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
3951
|
-
if (this.bumpSpace(), this.isEOF())
|
|
3952
|
-
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
|
|
3953
|
-
switch (this.char()) {
|
|
3954
|
-
case 125:
|
|
3955
|
-
return this.bump(), {
|
|
3956
|
-
val: {
|
|
3957
|
-
type: x.argument,
|
|
3958
|
-
// value does not include the opening and closing braces.
|
|
3959
|
-
value: i,
|
|
3960
|
-
location: _(n, this.clonePosition())
|
|
3961
|
-
},
|
|
3962
|
-
err: null
|
|
3963
|
-
};
|
|
3964
|
-
case 44:
|
|
3965
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3966
|
-
default:
|
|
3967
|
-
return this.error(d.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
3968
|
-
}
|
|
3969
|
-
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3970
|
-
var t = this.clonePosition(), r = this.offset(), n = Zt(this.message, r), i = r + n.length;
|
|
3971
|
-
this.bumpTo(i);
|
|
3972
|
-
var s = this.clonePosition(), o = _(t, s);
|
|
3973
|
-
return { value: n, location: o };
|
|
3974
|
-
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3975
|
-
var s, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3976
|
-
switch (u) {
|
|
3977
|
-
case "":
|
|
3978
|
-
return this.error(d.EXPECT_ARGUMENT_TYPE, _(o, l));
|
|
3979
|
-
case "number":
|
|
3980
|
-
case "date":
|
|
3981
|
-
case "time": {
|
|
3982
|
-
this.bumpSpace();
|
|
3983
|
-
var a = null;
|
|
3984
|
-
if (this.bumpIf(",")) {
|
|
3985
|
-
this.bumpSpace();
|
|
3986
|
-
var f = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
|
|
3987
|
-
if (h.err)
|
|
3988
|
-
return h;
|
|
3989
|
-
var c = oa(h.val);
|
|
3990
|
-
if (c.length === 0)
|
|
3991
|
-
return this.error(d.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
3992
|
-
var v = _(f, this.clonePosition());
|
|
3993
|
-
a = { style: c, styleLocation: v };
|
|
3994
|
-
}
|
|
3995
|
-
var p = this.tryParseArgumentClose(i);
|
|
3996
|
-
if (p.err)
|
|
3997
|
-
return p;
|
|
3998
|
-
var m = _(i, this.clonePosition());
|
|
3999
|
-
if (a && Ar(a == null ? void 0 : a.style, "::", 0)) {
|
|
4000
|
-
var b = aa(a.style.slice(2));
|
|
4001
|
-
if (u === "number") {
|
|
4002
|
-
var h = this.parseNumberSkeletonFromString(b, a.styleLocation);
|
|
4003
|
-
return h.err ? h : {
|
|
4004
|
-
val: { type: x.number, value: n, location: m, style: h.val },
|
|
4005
|
-
err: null
|
|
4006
|
-
};
|
|
4007
|
-
} else {
|
|
4008
|
-
if (b.length === 0)
|
|
4009
|
-
return this.error(d.EXPECT_DATE_TIME_SKELETON, m);
|
|
4010
|
-
var T = b;
|
|
4011
|
-
this.locale && (T = Ws(b, this.locale));
|
|
4012
|
-
var c = {
|
|
4013
|
-
type: Ue.dateTime,
|
|
4014
|
-
pattern: T,
|
|
4015
|
-
location: a.styleLocation,
|
|
4016
|
-
parsedOptions: this.shouldParseSkeletons ? Fs(T) : {}
|
|
4017
|
-
}, E = u === "date" ? x.date : x.time;
|
|
4018
|
-
return {
|
|
4019
|
-
val: { type: E, value: n, location: m, style: c },
|
|
4020
|
-
err: null
|
|
4021
|
-
};
|
|
4022
|
-
}
|
|
4023
|
-
}
|
|
4024
|
-
return {
|
|
4025
|
-
val: {
|
|
4026
|
-
type: u === "number" ? x.number : u === "date" ? x.date : x.time,
|
|
4027
|
-
value: n,
|
|
4028
|
-
location: m,
|
|
4029
|
-
style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
|
|
4030
|
-
},
|
|
4031
|
-
err: null
|
|
4032
|
-
};
|
|
4033
|
-
}
|
|
4034
|
-
case "plural":
|
|
4035
|
-
case "selectordinal":
|
|
4036
|
-
case "select": {
|
|
4037
|
-
var A = this.clonePosition();
|
|
4038
|
-
if (this.bumpSpace(), !this.bumpIf(","))
|
|
4039
|
-
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, _(A, vt({}, A)));
|
|
4040
|
-
this.bumpSpace();
|
|
4041
|
-
var N = this.parseIdentifierIfPossible(), B = 0;
|
|
4042
|
-
if (u !== "select" && N.value === "offset") {
|
|
4043
|
-
if (!this.bumpIf(":"))
|
|
4044
|
-
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
4045
|
-
this.bumpSpace();
|
|
4046
|
-
var h = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
4047
|
-
if (h.err)
|
|
4048
|
-
return h;
|
|
4049
|
-
this.bumpSpace(), N = this.parseIdentifierIfPossible(), B = h.val;
|
|
4050
|
-
}
|
|
4051
|
-
var G = this.tryParsePluralOrSelectOptions(t, u, r, N);
|
|
4052
|
-
if (G.err)
|
|
4053
|
-
return G;
|
|
4054
|
-
var p = this.tryParseArgumentClose(i);
|
|
4055
|
-
if (p.err)
|
|
4056
|
-
return p;
|
|
4057
|
-
var P = _(i, this.clonePosition());
|
|
4058
|
-
return u === "select" ? {
|
|
4059
|
-
val: {
|
|
4060
|
-
type: x.select,
|
|
4061
|
-
value: n,
|
|
4062
|
-
options: Br(G.val),
|
|
4063
|
-
location: P
|
|
4064
|
-
},
|
|
4065
|
-
err: null
|
|
4066
|
-
} : {
|
|
4067
|
-
val: {
|
|
4068
|
-
type: x.plural,
|
|
4069
|
-
value: n,
|
|
4070
|
-
options: Br(G.val),
|
|
4071
|
-
offset: B,
|
|
4072
|
-
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
4073
|
-
location: P
|
|
4074
|
-
},
|
|
4075
|
-
err: null
|
|
4076
|
-
};
|
|
4077
|
-
}
|
|
4078
|
-
default:
|
|
4079
|
-
return this.error(d.INVALID_ARGUMENT_TYPE, _(o, l));
|
|
4080
|
-
}
|
|
4081
|
-
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
4082
|
-
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
4083
|
-
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
4084
|
-
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
4085
|
-
var n = this.char();
|
|
4086
|
-
switch (n) {
|
|
4087
|
-
case 39: {
|
|
4088
|
-
this.bump();
|
|
4089
|
-
var i = this.clonePosition();
|
|
4090
|
-
if (!this.bumpUntil("'"))
|
|
4091
|
-
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, _(i, this.clonePosition()));
|
|
4092
|
-
this.bump();
|
|
4093
|
-
break;
|
|
4094
|
-
}
|
|
4095
|
-
case 123: {
|
|
4096
|
-
t += 1, this.bump();
|
|
4097
|
-
break;
|
|
4098
|
-
}
|
|
4099
|
-
case 125: {
|
|
4100
|
-
if (t > 0)
|
|
4101
|
-
t -= 1;
|
|
4102
|
-
else
|
|
4103
|
-
return {
|
|
4104
|
-
val: this.message.slice(r.offset, this.offset()),
|
|
4105
|
-
err: null
|
|
4106
|
-
};
|
|
4107
|
-
break;
|
|
4108
|
-
}
|
|
4109
|
-
default:
|
|
4110
|
-
this.bump();
|
|
4111
|
-
break;
|
|
4112
|
-
}
|
|
4113
|
-
}
|
|
4114
|
-
return {
|
|
4115
|
-
val: this.message.slice(r.offset, this.offset()),
|
|
4116
|
-
err: null
|
|
4117
|
-
};
|
|
4118
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
4119
|
-
var n = [];
|
|
4120
|
-
try {
|
|
4121
|
-
n = ks(t);
|
|
4122
|
-
} catch {
|
|
4123
|
-
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
4124
|
-
}
|
|
4125
|
-
return {
|
|
4126
|
-
val: {
|
|
4127
|
-
type: Ue.number,
|
|
4128
|
-
tokens: n,
|
|
4129
|
-
location: r,
|
|
4130
|
-
parsedOptions: this.shouldParseSkeletons ? zs(n) : {}
|
|
4131
|
-
},
|
|
4132
|
-
err: null
|
|
4133
|
-
};
|
|
4134
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
4135
|
-
for (var s, o = !1, u = [], l = /* @__PURE__ */ new Set(), a = i.value, f = i.location; ; ) {
|
|
4136
|
-
if (a.length === 0) {
|
|
4137
|
-
var h = this.clonePosition();
|
|
4138
|
-
if (r !== "select" && this.bumpIf("=")) {
|
|
4139
|
-
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
4140
|
-
if (c.err)
|
|
4141
|
-
return c;
|
|
4142
|
-
f = _(h, this.clonePosition()), a = this.message.slice(h.offset, this.offset());
|
|
4143
|
-
} else
|
|
4144
|
-
break;
|
|
4145
|
-
}
|
|
4146
|
-
if (l.has(a))
|
|
4147
|
-
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
4148
|
-
a === "other" && (o = !0), this.bumpSpace();
|
|
4149
|
-
var v = this.clonePosition();
|
|
4150
|
-
if (!this.bumpIf("{"))
|
|
4151
|
-
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
|
4152
|
-
var p = this.parseMessage(t + 1, r, n);
|
|
4153
|
-
if (p.err)
|
|
4154
|
-
return p;
|
|
4155
|
-
var m = this.tryParseArgumentClose(v);
|
|
4156
|
-
if (m.err)
|
|
4157
|
-
return m;
|
|
4158
|
-
u.push([
|
|
4159
|
-
a,
|
|
4160
|
-
{
|
|
4161
|
-
value: p.val,
|
|
4162
|
-
location: _(v, this.clonePosition())
|
|
4163
|
-
}
|
|
4164
|
-
]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, f = s.location;
|
|
4165
|
-
}
|
|
4166
|
-
return u.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(d.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
|
|
4167
|
-
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
4168
|
-
var n = 1, i = this.clonePosition();
|
|
4169
|
-
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
4170
|
-
for (var s = !1, o = 0; !this.isEOF(); ) {
|
|
4171
|
-
var u = this.char();
|
|
4172
|
-
if (u >= 48 && u <= 57)
|
|
4173
|
-
s = !0, o = o * 10 + (u - 48), this.bump();
|
|
4174
|
-
else
|
|
4175
|
-
break;
|
|
4176
|
-
}
|
|
4177
|
-
var l = _(i, this.clonePosition());
|
|
4178
|
-
return s ? (o *= n, ia(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
4179
|
-
}, e.prototype.offset = function() {
|
|
4180
|
-
return this.position.offset;
|
|
4181
|
-
}, e.prototype.isEOF = function() {
|
|
4182
|
-
return this.offset() === this.message.length;
|
|
4183
|
-
}, e.prototype.clonePosition = function() {
|
|
4184
|
-
return {
|
|
4185
|
-
offset: this.position.offset,
|
|
4186
|
-
line: this.position.line,
|
|
4187
|
-
column: this.position.column
|
|
4188
|
-
};
|
|
4189
|
-
}, e.prototype.char = function() {
|
|
4190
|
-
var t = this.position.offset;
|
|
4191
|
-
if (t >= this.message.length)
|
|
4192
|
-
throw Error("out of bound");
|
|
4193
|
-
var r = Un(this.message, t);
|
|
4194
|
-
if (r === void 0)
|
|
4195
|
-
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
4196
|
-
return r;
|
|
4197
|
-
}, e.prototype.error = function(t, r) {
|
|
4198
|
-
return {
|
|
4199
|
-
val: null,
|
|
4200
|
-
err: {
|
|
4201
|
-
kind: t,
|
|
4202
|
-
message: this.message,
|
|
4203
|
-
location: r
|
|
4204
|
-
}
|
|
4205
|
-
};
|
|
4206
|
-
}, e.prototype.bump = function() {
|
|
4207
|
-
if (!this.isEOF()) {
|
|
4208
|
-
var t = this.char();
|
|
4209
|
-
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);
|
|
4210
|
-
}
|
|
4211
|
-
}, e.prototype.bumpIf = function(t) {
|
|
4212
|
-
if (Ar(this.message, t, this.offset())) {
|
|
4213
|
-
for (var r = 0; r < t.length; r++)
|
|
4214
|
-
this.bump();
|
|
4215
|
-
return !0;
|
|
4216
|
-
}
|
|
4217
|
-
return !1;
|
|
4218
|
-
}, e.prototype.bumpUntil = function(t) {
|
|
4219
|
-
var r = this.offset(), n = this.message.indexOf(t, r);
|
|
4220
|
-
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
4221
|
-
}, e.prototype.bumpTo = function(t) {
|
|
4222
|
-
if (this.offset() > t)
|
|
4223
|
-
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
4224
|
-
for (t = Math.min(t, this.message.length); ; ) {
|
|
4225
|
-
var r = this.offset();
|
|
4226
|
-
if (r === t)
|
|
4227
|
-
break;
|
|
4228
|
-
if (r > t)
|
|
4229
|
-
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
4230
|
-
if (this.bump(), this.isEOF())
|
|
4231
|
-
break;
|
|
4232
|
-
}
|
|
4233
|
-
}, e.prototype.bumpSpace = function() {
|
|
4234
|
-
for (; !this.isEOF() && Fn(this.char()); )
|
|
4235
|
-
this.bump();
|
|
4236
|
-
}, e.prototype.peek = function() {
|
|
4237
|
-
if (this.isEOF())
|
|
4238
|
-
return null;
|
|
4239
|
-
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
4240
|
-
return n ?? null;
|
|
4241
|
-
}, e;
|
|
4242
|
-
}()
|
|
4243
|
-
);
|
|
4244
|
-
function $t(e) {
|
|
4245
|
-
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
4246
|
-
}
|
|
4247
|
-
function la(e) {
|
|
4248
|
-
return $t(e) || e === 47;
|
|
4249
|
-
}
|
|
4250
|
-
function fa(e) {
|
|
4251
|
-
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;
|
|
4252
|
-
}
|
|
4253
|
-
function Fn(e) {
|
|
4254
|
-
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
4255
|
-
}
|
|
4256
|
-
function ha(e) {
|
|
4257
|
-
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;
|
|
4258
|
-
}
|
|
4259
|
-
function Yt(e) {
|
|
4260
|
-
e.forEach(function(t) {
|
|
4261
|
-
if (delete t.location, Pn(t) || On(t))
|
|
4262
|
-
for (var r in t.options)
|
|
4263
|
-
delete t.options[r].location, Yt(t.options[r].value);
|
|
4264
|
-
else An(t) && Cn(t.style) || (Bn(t) || Nn(t)) && zt(t.style) ? delete t.style.location : In(t) && Yt(t.children);
|
|
4265
|
-
});
|
|
4266
|
-
}
|
|
4267
|
-
function ca(e, t) {
|
|
4268
|
-
t === void 0 && (t = {}), t = vt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
4269
|
-
var r = new ua(e, t).parse();
|
|
4270
|
-
if (r.err) {
|
|
4271
|
-
var n = SyntaxError(d[r.err.kind]);
|
|
4272
|
-
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
4273
|
-
}
|
|
4274
|
-
return t != null && t.captureLocation || Yt(r.val), r.val;
|
|
4275
|
-
}
|
|
4276
|
-
var Ge;
|
|
4277
|
-
(function(e) {
|
|
4278
|
-
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
4279
|
-
})(Ge || (Ge = {}));
|
|
4280
|
-
var yt = (
|
|
4281
|
-
/** @class */
|
|
4282
|
-
function(e) {
|
|
4283
|
-
Et(t, e);
|
|
4284
|
-
function t(r, n, i) {
|
|
4285
|
-
var s = e.call(this, r) || this;
|
|
4286
|
-
return s.code = n, s.originalMessage = i, s;
|
|
4287
|
-
}
|
|
4288
|
-
return t.prototype.toString = function() {
|
|
4289
|
-
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
4290
|
-
}, t;
|
|
4291
|
-
}(Error)
|
|
4292
|
-
), Pr = (
|
|
4293
|
-
/** @class */
|
|
4294
|
-
function(e) {
|
|
4295
|
-
Et(t, e);
|
|
4296
|
-
function t(r, n, i, s) {
|
|
4297
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ge.INVALID_VALUE, s) || this;
|
|
4298
|
-
}
|
|
4299
|
-
return t;
|
|
4300
|
-
}(yt)
|
|
4301
|
-
), pa = (
|
|
4302
|
-
/** @class */
|
|
4303
|
-
function(e) {
|
|
4304
|
-
Et(t, e);
|
|
4305
|
-
function t(r, n, i) {
|
|
4306
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Ge.INVALID_VALUE, i) || this;
|
|
4307
|
-
}
|
|
4308
|
-
return t;
|
|
4309
|
-
}(yt)
|
|
4310
|
-
), va = (
|
|
4311
|
-
/** @class */
|
|
4312
|
-
function(e) {
|
|
4313
|
-
Et(t, e);
|
|
4314
|
-
function t(r, n) {
|
|
4315
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Ge.MISSING_VALUE, n) || this;
|
|
4316
|
-
}
|
|
4317
|
-
return t;
|
|
4318
|
-
}(yt)
|
|
4319
|
-
), R;
|
|
4320
|
-
(function(e) {
|
|
4321
|
-
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
4322
|
-
})(R || (R = {}));
|
|
4323
|
-
function ma(e) {
|
|
4324
|
-
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
4325
|
-
var n = t[t.length - 1];
|
|
4326
|
-
return !n || n.type !== R.literal || r.type !== R.literal ? t.push(r) : n.value += r.value, t;
|
|
4327
|
-
}, []);
|
|
4328
|
-
}
|
|
4329
|
-
function da(e) {
|
|
4330
|
-
return typeof e == "function";
|
|
4331
|
-
}
|
|
4332
|
-
function st(e, t, r, n, i, s, o) {
|
|
4333
|
-
if (e.length === 1 && Tr(e[0]))
|
|
4334
|
-
return [
|
|
4335
|
-
{
|
|
4336
|
-
type: R.literal,
|
|
4337
|
-
value: e[0].value
|
|
4338
|
-
}
|
|
4339
|
-
];
|
|
4340
|
-
for (var u = [], l = 0, a = e; l < a.length; l++) {
|
|
4341
|
-
var f = a[l];
|
|
4342
|
-
if (Tr(f)) {
|
|
4343
|
-
u.push({
|
|
4344
|
-
type: R.literal,
|
|
4345
|
-
value: f.value
|
|
4346
|
-
});
|
|
4347
|
-
continue;
|
|
4348
|
-
}
|
|
4349
|
-
if (Us(f)) {
|
|
4350
|
-
typeof s == "number" && u.push({
|
|
4351
|
-
type: R.literal,
|
|
4352
|
-
value: r.getNumberFormat(t).format(s)
|
|
4353
|
-
});
|
|
4354
|
-
continue;
|
|
4355
|
-
}
|
|
4356
|
-
var h = f.value;
|
|
4357
|
-
if (!(i && h in i))
|
|
4358
|
-
throw new va(h, o);
|
|
4359
|
-
var c = i[h];
|
|
4360
|
-
if (Ds(f)) {
|
|
4361
|
-
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), u.push({
|
|
4362
|
-
type: typeof c == "string" ? R.literal : R.object,
|
|
4363
|
-
value: c
|
|
4364
|
-
});
|
|
4365
|
-
continue;
|
|
4366
|
-
}
|
|
4367
|
-
if (Bn(f)) {
|
|
4368
|
-
var v = typeof f.style == "string" ? n.date[f.style] : zt(f.style) ? f.style.parsedOptions : void 0;
|
|
4369
|
-
u.push({
|
|
4370
|
-
type: R.literal,
|
|
4371
|
-
value: r.getDateTimeFormat(t, v).format(c)
|
|
4372
|
-
});
|
|
4373
|
-
continue;
|
|
4374
|
-
}
|
|
4375
|
-
if (Nn(f)) {
|
|
4376
|
-
var v = typeof f.style == "string" ? n.time[f.style] : zt(f.style) ? f.style.parsedOptions : n.time.medium;
|
|
4377
|
-
u.push({
|
|
4378
|
-
type: R.literal,
|
|
4379
|
-
value: r.getDateTimeFormat(t, v).format(c)
|
|
4380
|
-
});
|
|
4381
|
-
continue;
|
|
4382
|
-
}
|
|
4383
|
-
if (An(f)) {
|
|
4384
|
-
var v = typeof f.style == "string" ? n.number[f.style] : Cn(f.style) ? f.style.parsedOptions : void 0;
|
|
4385
|
-
v && v.scale && (c = c * (v.scale || 1)), u.push({
|
|
4386
|
-
type: R.literal,
|
|
4387
|
-
value: r.getNumberFormat(t, v).format(c)
|
|
4388
|
-
});
|
|
4389
|
-
continue;
|
|
4390
|
-
}
|
|
4391
|
-
if (In(f)) {
|
|
4392
|
-
var p = f.children, m = f.value, b = i[m];
|
|
4393
|
-
if (!da(b))
|
|
4394
|
-
throw new pa(m, "function", o);
|
|
4395
|
-
var T = st(p, t, r, n, i, s), E = b(T.map(function(B) {
|
|
4396
|
-
return B.value;
|
|
4397
|
-
}));
|
|
4398
|
-
Array.isArray(E) || (E = [E]), u.push.apply(u, E.map(function(B) {
|
|
4399
|
-
return {
|
|
4400
|
-
type: typeof B == "string" ? R.literal : R.object,
|
|
4401
|
-
value: B
|
|
4402
|
-
};
|
|
4403
|
-
}));
|
|
4404
|
-
}
|
|
4405
|
-
if (Pn(f)) {
|
|
4406
|
-
var A = f.options[c] || f.options.other;
|
|
4407
|
-
if (!A)
|
|
4408
|
-
throw new Pr(f.value, c, Object.keys(f.options), o);
|
|
4409
|
-
u.push.apply(u, st(A.value, t, r, n, i));
|
|
4410
|
-
continue;
|
|
4411
|
-
}
|
|
4412
|
-
if (On(f)) {
|
|
4413
|
-
var A = f.options["=".concat(c)];
|
|
4414
|
-
if (!A) {
|
|
4415
|
-
if (!Intl.PluralRules)
|
|
4416
|
-
throw new yt(`Intl.PluralRules is not available in this environment.
|
|
4417
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
4418
|
-
`, Ge.MISSING_INTL_API, o);
|
|
4419
|
-
var N = r.getPluralRules(t, { type: f.pluralType }).select(c - (f.offset || 0));
|
|
4420
|
-
A = f.options[N] || f.options.other;
|
|
4421
|
-
}
|
|
4422
|
-
if (!A)
|
|
4423
|
-
throw new Pr(f.value, c, Object.keys(f.options), o);
|
|
4424
|
-
u.push.apply(u, st(A.value, t, r, n, i, c - (f.offset || 0)));
|
|
4425
|
-
continue;
|
|
4426
|
-
}
|
|
4427
|
-
}
|
|
4428
|
-
return ma(u);
|
|
4429
|
-
}
|
|
4430
|
-
function _a(e, t) {
|
|
4431
|
-
return t ? Y(Y(Y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
4432
|
-
return r[n] = Y(Y({}, e[n]), t[n] || {}), r;
|
|
4433
|
-
}, {})) : e;
|
|
4434
|
-
}
|
|
4435
|
-
function ga(e, t) {
|
|
4436
|
-
return t ? Object.keys(e).reduce(function(r, n) {
|
|
4437
|
-
return r[n] = _a(e[n], t[n]), r;
|
|
4438
|
-
}, Y({}, e)) : e;
|
|
4439
|
-
}
|
|
4440
|
-
function Ct(e) {
|
|
4441
|
-
return {
|
|
4442
|
-
create: function() {
|
|
4443
|
-
return {
|
|
4444
|
-
get: function(t) {
|
|
4445
|
-
return e[t];
|
|
4446
|
-
},
|
|
4447
|
-
set: function(t, r) {
|
|
4448
|
-
e[t] = r;
|
|
4449
|
-
}
|
|
4450
|
-
};
|
|
4451
|
-
}
|
|
4452
|
-
};
|
|
4453
|
-
}
|
|
4454
|
-
function ba(e) {
|
|
4455
|
-
return e === void 0 && (e = {
|
|
4456
|
-
number: {},
|
|
4457
|
-
dateTime: {},
|
|
4458
|
-
pluralRules: {}
|
|
4459
|
-
}), {
|
|
4460
|
-
getNumberFormat: Pt(function() {
|
|
4461
|
-
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4462
|
-
r[n] = arguments[n];
|
|
4463
|
-
return new ((t = Intl.NumberFormat).bind.apply(t, Nt([void 0], r, !1)))();
|
|
4464
|
-
}, {
|
|
4465
|
-
cache: Ct(e.number),
|
|
4466
|
-
strategy: Ot.variadic
|
|
4467
|
-
}),
|
|
4468
|
-
getDateTimeFormat: Pt(function() {
|
|
4469
|
-
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4470
|
-
r[n] = arguments[n];
|
|
4471
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t, Nt([void 0], r, !1)))();
|
|
4472
|
-
}, {
|
|
4473
|
-
cache: Ct(e.dateTime),
|
|
4474
|
-
strategy: Ot.variadic
|
|
4475
|
-
}),
|
|
4476
|
-
getPluralRules: Pt(function() {
|
|
4477
|
-
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4478
|
-
r[n] = arguments[n];
|
|
4479
|
-
return new ((t = Intl.PluralRules).bind.apply(t, Nt([void 0], r, !1)))();
|
|
4480
|
-
}, {
|
|
4481
|
-
cache: Ct(e.pluralRules),
|
|
4482
|
-
strategy: Ot.variadic
|
|
4483
|
-
})
|
|
4484
|
-
};
|
|
4485
|
-
}
|
|
4486
|
-
var Ea = (
|
|
4487
|
-
/** @class */
|
|
4488
|
-
function() {
|
|
4489
|
-
function e(t, r, n, i) {
|
|
4490
|
-
r === void 0 && (r = e.defaultLocale);
|
|
4491
|
-
var s = this;
|
|
4492
|
-
if (this.formatterCache = {
|
|
4493
|
-
number: {},
|
|
4494
|
-
dateTime: {},
|
|
4495
|
-
pluralRules: {}
|
|
4496
|
-
}, this.format = function(l) {
|
|
4497
|
-
var a = s.formatToParts(l);
|
|
4498
|
-
if (a.length === 1)
|
|
4499
|
-
return a[0].value;
|
|
4500
|
-
var f = a.reduce(function(h, c) {
|
|
4501
|
-
return !h.length || c.type !== R.literal || typeof h[h.length - 1] != "string" ? h.push(c.value) : h[h.length - 1] += c.value, h;
|
|
4502
|
-
}, []);
|
|
4503
|
-
return f.length <= 1 ? f[0] || "" : f;
|
|
4504
|
-
}, this.formatToParts = function(l) {
|
|
4505
|
-
return st(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
4506
|
-
}, this.resolvedOptions = function() {
|
|
4507
|
-
var l;
|
|
4508
|
-
return {
|
|
4509
|
-
locale: ((l = s.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
4510
|
-
};
|
|
4511
|
-
}, this.getAst = function() {
|
|
4512
|
-
return s.ast;
|
|
4513
|
-
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
4514
|
-
if (this.message = t, !e.__parse)
|
|
4515
|
-
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
4516
|
-
var o = i || {};
|
|
4517
|
-
o.formatters;
|
|
4518
|
-
var u = Ns(o, ["formatters"]);
|
|
4519
|
-
this.ast = e.__parse(t, Y(Y({}, u), { locale: this.resolvedLocale }));
|
|
4520
|
-
} else
|
|
4521
|
-
this.ast = t;
|
|
4522
|
-
if (!Array.isArray(this.ast))
|
|
4523
|
-
throw new TypeError("A message must be provided as a String or AST.");
|
|
4524
|
-
this.formats = ga(e.formats, n), this.formatters = i && i.formatters || ba(this.formatterCache);
|
|
4525
|
-
}
|
|
4526
|
-
return Object.defineProperty(e, "defaultLocale", {
|
|
4527
|
-
get: function() {
|
|
4528
|
-
return e.memoizedDefaultLocale || (e.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), e.memoizedDefaultLocale;
|
|
4529
|
-
},
|
|
4530
|
-
enumerable: !1,
|
|
4531
|
-
configurable: !0
|
|
4532
|
-
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
4533
|
-
if (!(typeof Intl.Locale > "u")) {
|
|
4534
|
-
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
4535
|
-
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
4536
|
-
}
|
|
4537
|
-
}, e.__parse = ca, e.formats = {
|
|
4538
|
-
number: {
|
|
4539
|
-
integer: {
|
|
4540
|
-
maximumFractionDigits: 0
|
|
4541
|
-
},
|
|
4542
|
-
currency: {
|
|
4543
|
-
style: "currency"
|
|
4544
|
-
},
|
|
4545
|
-
percent: {
|
|
4546
|
-
style: "percent"
|
|
4547
|
-
}
|
|
4548
|
-
},
|
|
4549
|
-
date: {
|
|
4550
|
-
short: {
|
|
4551
|
-
month: "numeric",
|
|
4552
|
-
day: "numeric",
|
|
4553
|
-
year: "2-digit"
|
|
4554
|
-
},
|
|
4555
|
-
medium: {
|
|
4556
|
-
month: "short",
|
|
4557
|
-
day: "numeric",
|
|
4558
|
-
year: "numeric"
|
|
4559
|
-
},
|
|
4560
|
-
long: {
|
|
4561
|
-
month: "long",
|
|
4562
|
-
day: "numeric",
|
|
4563
|
-
year: "numeric"
|
|
4564
|
-
},
|
|
4565
|
-
full: {
|
|
4566
|
-
weekday: "long",
|
|
4567
|
-
month: "long",
|
|
4568
|
-
day: "numeric",
|
|
4569
|
-
year: "numeric"
|
|
4570
|
-
}
|
|
4571
|
-
},
|
|
4572
|
-
time: {
|
|
4573
|
-
short: {
|
|
4574
|
-
hour: "numeric",
|
|
4575
|
-
minute: "numeric"
|
|
4576
|
-
},
|
|
4577
|
-
medium: {
|
|
4578
|
-
hour: "numeric",
|
|
4579
|
-
minute: "numeric",
|
|
4580
|
-
second: "numeric"
|
|
4581
|
-
},
|
|
4582
|
-
long: {
|
|
4583
|
-
hour: "numeric",
|
|
4584
|
-
minute: "numeric",
|
|
4585
|
-
second: "numeric",
|
|
4586
|
-
timeZoneName: "short"
|
|
4587
|
-
},
|
|
4588
|
-
full: {
|
|
4589
|
-
hour: "numeric",
|
|
4590
|
-
minute: "numeric",
|
|
4591
|
-
second: "numeric",
|
|
4592
|
-
timeZoneName: "short"
|
|
4593
|
-
}
|
|
4594
|
-
}
|
|
4595
|
-
}, e;
|
|
4596
|
-
}()
|
|
4597
|
-
);
|
|
4598
|
-
function ya(e, t) {
|
|
4599
|
-
if (t == null)
|
|
4600
|
-
return;
|
|
4601
|
-
if (t in e)
|
|
4602
|
-
return e[t];
|
|
4603
|
-
const r = t.split(".");
|
|
4604
|
-
let n = e;
|
|
4605
|
-
for (let i = 0; i < r.length; i++)
|
|
4606
|
-
if (typeof n == "object") {
|
|
4607
|
-
if (i > 0) {
|
|
4608
|
-
const s = r.slice(i, r.length).join(".");
|
|
4609
|
-
if (s in n) {
|
|
4610
|
-
n = n[s];
|
|
4611
|
-
break;
|
|
4612
|
-
}
|
|
4613
|
-
}
|
|
4614
|
-
n = n[r[i]];
|
|
4615
|
-
} else
|
|
4616
|
-
n = void 0;
|
|
4617
|
-
return n;
|
|
4618
|
-
}
|
|
4619
|
-
const ae = {}, xa = (e, t, r) => r && (t in ae || (ae[t] = {}), e in ae[t] || (ae[t][e] = r), r), jn = (e, t) => {
|
|
4620
|
-
if (t == null)
|
|
4621
|
-
return;
|
|
4622
|
-
if (t in ae && e in ae[t])
|
|
4623
|
-
return ae[t][e];
|
|
4624
|
-
const r = xt(t);
|
|
4625
|
-
for (let n = 0; n < r.length; n++) {
|
|
4626
|
-
const i = r[n], s = wa(i, e);
|
|
4627
|
-
if (s)
|
|
4628
|
-
return xa(e, t, s);
|
|
4629
|
-
}
|
|
4630
|
-
};
|
|
4631
|
-
let ur;
|
|
4632
|
-
const Xe = bt({});
|
|
4633
|
-
function Ta(e) {
|
|
4634
|
-
return ur[e] || null;
|
|
4635
|
-
}
|
|
4636
|
-
function kn(e) {
|
|
4637
|
-
return e in ur;
|
|
4638
|
-
}
|
|
4639
|
-
function wa(e, t) {
|
|
4640
|
-
if (!kn(e))
|
|
4641
|
-
return null;
|
|
4642
|
-
const r = Ta(e);
|
|
4643
|
-
return ya(r, t);
|
|
4644
|
-
}
|
|
4645
|
-
function Sa(e) {
|
|
4646
|
-
if (e == null)
|
|
4647
|
-
return;
|
|
4648
|
-
const t = xt(e);
|
|
4649
|
-
for (let r = 0; r < t.length; r++) {
|
|
4650
|
-
const n = t[r];
|
|
4651
|
-
if (kn(n))
|
|
4652
|
-
return n;
|
|
4653
|
-
}
|
|
4654
|
-
}
|
|
4655
|
-
function Vn(e, ...t) {
|
|
4656
|
-
delete ae[e], Xe.update((r) => (r[e] = Bs.all([r[e] || {}, ...t]), r));
|
|
4657
|
-
}
|
|
4658
|
-
qe(
|
|
4659
|
-
[Xe],
|
|
4660
|
-
([e]) => Object.keys(e)
|
|
4661
|
-
);
|
|
4662
|
-
Xe.subscribe((e) => ur = e);
|
|
4663
|
-
const at = {};
|
|
4664
|
-
function Ha(e, t) {
|
|
4665
|
-
at[e].delete(t), at[e].size === 0 && delete at[e];
|
|
4666
|
-
}
|
|
4667
|
-
function qn(e) {
|
|
4668
|
-
return at[e];
|
|
4669
|
-
}
|
|
4670
|
-
function Aa(e) {
|
|
4671
|
-
return xt(e).map((t) => {
|
|
4672
|
-
const r = qn(t);
|
|
4673
|
-
return [t, r ? [...r] : []];
|
|
4674
|
-
}).filter(([, t]) => t.length > 0);
|
|
4675
|
-
}
|
|
4676
|
-
function Jt(e) {
|
|
4677
|
-
return e == null ? !1 : xt(e).some(
|
|
4678
|
-
(t) => {
|
|
4679
|
-
var r;
|
|
4680
|
-
return (r = qn(t)) == null ? void 0 : r.size;
|
|
4681
|
-
}
|
|
4682
|
-
);
|
|
4683
|
-
}
|
|
4684
|
-
function Ba(e, t) {
|
|
4685
|
-
return Promise.all(
|
|
4686
|
-
t.map((n) => (Ha(e, n), n().then((i) => i.default || i)))
|
|
4687
|
-
).then((n) => Vn(e, ...n));
|
|
4688
|
-
}
|
|
4689
|
-
const We = {};
|
|
4690
|
-
function Xn(e) {
|
|
4691
|
-
if (!Jt(e))
|
|
4692
|
-
return e in We ? We[e] : Promise.resolve();
|
|
4693
|
-
const t = Aa(e);
|
|
4694
|
-
return We[e] = Promise.all(
|
|
4695
|
-
t.map(
|
|
4696
|
-
([r, n]) => Ba(r, n)
|
|
4697
|
-
)
|
|
4698
|
-
).then(() => {
|
|
4699
|
-
if (Jt(e))
|
|
4700
|
-
return Xn(e);
|
|
4701
|
-
delete We[e];
|
|
4702
|
-
}), We[e];
|
|
4703
|
-
}
|
|
4704
|
-
const Na = {
|
|
4705
|
-
number: {
|
|
4706
|
-
scientific: { notation: "scientific" },
|
|
4707
|
-
engineering: { notation: "engineering" },
|
|
4708
|
-
compactLong: { notation: "compact", compactDisplay: "long" },
|
|
4709
|
-
compactShort: { notation: "compact", compactDisplay: "short" }
|
|
4710
|
-
},
|
|
4711
|
-
date: {
|
|
4712
|
-
short: { month: "numeric", day: "numeric", year: "2-digit" },
|
|
4713
|
-
medium: { month: "short", day: "numeric", year: "numeric" },
|
|
4714
|
-
long: { month: "long", day: "numeric", year: "numeric" },
|
|
4715
|
-
full: { weekday: "long", month: "long", day: "numeric", year: "numeric" }
|
|
4716
|
-
},
|
|
4717
|
-
time: {
|
|
4718
|
-
short: { hour: "numeric", minute: "numeric" },
|
|
4719
|
-
medium: { hour: "numeric", minute: "numeric", second: "numeric" },
|
|
4720
|
-
long: {
|
|
4721
|
-
hour: "numeric",
|
|
4722
|
-
minute: "numeric",
|
|
4723
|
-
second: "numeric",
|
|
4724
|
-
timeZoneName: "short"
|
|
4725
|
-
},
|
|
4726
|
-
full: {
|
|
4727
|
-
hour: "numeric",
|
|
4728
|
-
minute: "numeric",
|
|
4729
|
-
second: "numeric",
|
|
4730
|
-
timeZoneName: "short"
|
|
4731
|
-
}
|
|
4732
|
-
}
|
|
4733
|
-
}, Pa = {
|
|
4734
|
-
fallbackLocale: null,
|
|
4735
|
-
loadingDelay: 200,
|
|
4736
|
-
formats: Na,
|
|
4737
|
-
warnOnMissingMessages: !0,
|
|
4738
|
-
handleMissingMessage: void 0,
|
|
4739
|
-
ignoreTag: !0
|
|
4740
|
-
}, Oa = Pa;
|
|
4741
|
-
function Fe() {
|
|
4742
|
-
return Oa;
|
|
4743
|
-
}
|
|
4744
|
-
const Mt = bt(!1);
|
|
4745
|
-
var Ia = Object.defineProperty, Ca = Object.defineProperties, Ma = Object.getOwnPropertyDescriptors, Or = Object.getOwnPropertySymbols, La = Object.prototype.hasOwnProperty, Ra = Object.prototype.propertyIsEnumerable, Ir = (e, t, r) => t in e ? Ia(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Da = (e, t) => {
|
|
4746
|
-
for (var r in t || (t = {}))
|
|
4747
|
-
La.call(t, r) && Ir(e, r, t[r]);
|
|
4748
|
-
if (Or)
|
|
4749
|
-
for (var r of Or(t))
|
|
4750
|
-
Ra.call(t, r) && Ir(e, r, t[r]);
|
|
4751
|
-
return e;
|
|
4752
|
-
}, Ua = (e, t) => Ca(e, Ma(t));
|
|
4753
|
-
let Kt;
|
|
4754
|
-
const mt = bt(null);
|
|
4755
|
-
function Cr(e) {
|
|
4756
|
-
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4757
|
-
}
|
|
4758
|
-
function xt(e, t = Fe().fallbackLocale) {
|
|
4759
|
-
const r = Cr(e);
|
|
4760
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...Cr(t)])] : r;
|
|
4761
|
-
}
|
|
4762
|
-
function Te() {
|
|
4763
|
-
return Kt ?? void 0;
|
|
4764
|
-
}
|
|
4765
|
-
mt.subscribe((e) => {
|
|
4766
|
-
Kt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4767
|
-
});
|
|
4768
|
-
const Ga = (e) => {
|
|
4769
|
-
if (e && Sa(e) && Jt(e)) {
|
|
4770
|
-
const { loadingDelay: t } = Fe();
|
|
4771
|
-
let r;
|
|
4772
|
-
return typeof window < "u" && Te() != null && t ? r = window.setTimeout(
|
|
4773
|
-
() => Mt.set(!0),
|
|
4774
|
-
t
|
|
4775
|
-
) : Mt.set(!0), Xn(e).then(() => {
|
|
4776
|
-
mt.set(e);
|
|
4777
|
-
}).finally(() => {
|
|
4778
|
-
clearTimeout(r), Mt.set(!1);
|
|
4779
|
-
});
|
|
4780
|
-
}
|
|
4781
|
-
return mt.set(e);
|
|
4782
|
-
}, xe = Ua(Da({}, mt), {
|
|
4783
|
-
set: Ga
|
|
4784
|
-
}), Tt = (e) => {
|
|
4785
|
-
const t = /* @__PURE__ */ Object.create(null);
|
|
4786
|
-
return (n) => {
|
|
4787
|
-
const i = JSON.stringify(n);
|
|
4788
|
-
return i in t ? t[i] : t[i] = e(n);
|
|
4789
|
-
};
|
|
4790
|
-
};
|
|
4791
|
-
var Fa = Object.defineProperty, dt = Object.getOwnPropertySymbols, zn = Object.prototype.hasOwnProperty, Wn = Object.prototype.propertyIsEnumerable, Mr = (e, t, r) => t in e ? Fa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lr = (e, t) => {
|
|
4792
|
-
for (var r in t || (t = {}))
|
|
4793
|
-
zn.call(t, r) && Mr(e, r, t[r]);
|
|
4794
|
-
if (dt)
|
|
4795
|
-
for (var r of dt(t))
|
|
4796
|
-
Wn.call(t, r) && Mr(e, r, t[r]);
|
|
4797
|
-
return e;
|
|
4798
|
-
}, ze = (e, t) => {
|
|
4799
|
-
var r = {};
|
|
4800
|
-
for (var n in e)
|
|
4801
|
-
zn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4802
|
-
if (e != null && dt)
|
|
4803
|
-
for (var n of dt(e))
|
|
4804
|
-
t.indexOf(n) < 0 && Wn.call(e, n) && (r[n] = e[n]);
|
|
4805
|
-
return r;
|
|
4806
|
-
};
|
|
4807
|
-
const Ke = (e, t) => {
|
|
4808
|
-
const { formats: r } = Fe();
|
|
4809
|
-
if (e in r && t in r[e])
|
|
4810
|
-
return r[e][t];
|
|
4811
|
-
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4812
|
-
}, ja = Tt(
|
|
4813
|
-
(e) => {
|
|
4814
|
-
var t = e, { locale: r, format: n } = t, i = ze(t, ["locale", "format"]);
|
|
4815
|
-
if (r == null)
|
|
4816
|
-
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4817
|
-
return n && (i = Ke("number", n)), new Intl.NumberFormat(r, i);
|
|
4818
|
-
}
|
|
4819
|
-
), ka = Tt(
|
|
4820
|
-
(e) => {
|
|
4821
|
-
var t = e, { locale: r, format: n } = t, i = ze(t, ["locale", "format"]);
|
|
4822
|
-
if (r == null)
|
|
4823
|
-
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4824
|
-
return n ? i = Ke("date", n) : Object.keys(i).length === 0 && (i = Ke("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4825
|
-
}
|
|
4826
|
-
), Va = Tt(
|
|
4827
|
-
(e) => {
|
|
4828
|
-
var t = e, { locale: r, format: n } = t, i = ze(t, ["locale", "format"]);
|
|
4829
|
-
if (r == null)
|
|
4830
|
-
throw new Error(
|
|
4831
|
-
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4832
|
-
);
|
|
4833
|
-
return n ? i = Ke("time", n) : Object.keys(i).length === 0 && (i = Ke("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4834
|
-
}
|
|
4835
|
-
), qa = (e = {}) => {
|
|
4836
|
-
var t = e, {
|
|
4837
|
-
locale: r = Te()
|
|
4838
|
-
} = t, n = ze(t, [
|
|
4839
|
-
"locale"
|
|
4840
|
-
]);
|
|
4841
|
-
return ja(lr({ locale: r }, n));
|
|
4842
|
-
}, Xa = (e = {}) => {
|
|
4843
|
-
var t = e, {
|
|
4844
|
-
locale: r = Te()
|
|
4845
|
-
} = t, n = ze(t, [
|
|
4846
|
-
"locale"
|
|
4847
|
-
]);
|
|
4848
|
-
return ka(lr({ locale: r }, n));
|
|
4849
|
-
}, za = (e = {}) => {
|
|
4850
|
-
var t = e, {
|
|
4851
|
-
locale: r = Te()
|
|
4852
|
-
} = t, n = ze(t, [
|
|
4853
|
-
"locale"
|
|
4854
|
-
]);
|
|
4855
|
-
return Va(lr({ locale: r }, n));
|
|
4856
|
-
}, Wa = Tt(
|
|
4857
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4858
|
-
(e, t = Te()) => new Ea(e, t, Fe().formats, {
|
|
4859
|
-
ignoreTag: Fe().ignoreTag
|
|
4860
|
-
})
|
|
4861
|
-
), Qa = (e, t = {}) => {
|
|
4862
|
-
var r, n, i, s;
|
|
4863
|
-
let o = t;
|
|
4864
|
-
typeof e == "object" && (o = e, e = o.id);
|
|
4865
|
-
const {
|
|
4866
|
-
values: u,
|
|
4867
|
-
locale: l = Te(),
|
|
4868
|
-
default: a
|
|
4869
|
-
} = o;
|
|
4870
|
-
if (l == null)
|
|
4871
|
-
throw new Error(
|
|
4872
|
-
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4873
|
-
);
|
|
4874
|
-
let f = jn(e, l);
|
|
4875
|
-
if (!f)
|
|
4876
|
-
f = (s = (i = (n = (r = Fe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
4877
|
-
else if (typeof f != "string")
|
|
4878
|
-
return console.warn(
|
|
4879
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4880
|
-
), f;
|
|
4881
|
-
if (!u)
|
|
4882
|
-
return f;
|
|
4883
|
-
let h = f;
|
|
4884
|
-
try {
|
|
4885
|
-
h = Wa(f, l).format(u);
|
|
4886
|
-
} catch (c) {
|
|
4887
|
-
c instanceof Error && console.warn(
|
|
4888
|
-
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4889
|
-
c.message
|
|
4890
|
-
);
|
|
4891
|
-
}
|
|
4892
|
-
return h;
|
|
4893
|
-
}, Za = (e, t) => za(t).format(e), $a = (e, t) => Xa(t).format(e), Ya = (e, t) => qa(t).format(e), Ja = (e, t = Te()) => jn(e, t), Ka = qe([xe, Xe], () => Qa);
|
|
4894
|
-
qe([xe], () => Za);
|
|
4895
|
-
qe([xe], () => $a);
|
|
4896
|
-
qe([xe], () => Ya);
|
|
4897
|
-
qe([xe, Xe], () => Ja);
|
|
4898
|
-
function eo({ withLocale: e, translations: t }) {
|
|
4899
|
-
xe.subscribe((r) => {
|
|
4900
|
-
r == null && (Xe.set(t), xe.set(e));
|
|
4901
|
-
});
|
|
4902
|
-
}
|
|
4903
|
-
function to(e, t) {
|
|
4904
|
-
Vn(e, t);
|
|
4905
|
-
}
|
|
4906
|
-
const ro = {
|
|
4907
|
-
en: {
|
|
4908
|
-
faqBestQuestion: "Why is {operatorName}''s program the best?",
|
|
4909
|
-
faqBestAnswer: "{operatorName} offers a unique loyalty programme that rewards players with exclusive benefits, including 50 Free Spins automatically credited every Wednesday.",
|
|
4910
|
-
faqWinningsQuestion: "How can you increase your winnings at {operatorName}?",
|
|
4911
|
-
faqWinningsAnswer: "{operatorName} provides users with regular exclusive bonuses and promotions, giving them opportunities to boost their earnings.",
|
|
4912
|
-
faqGamesQuestion: "What variety of games does {operatorName} offer?",
|
|
4913
|
-
faqGamesAnswer: "{operatorName} caters to every type of player by offering a wide range of games, from slots to table games.",
|
|
4914
|
-
faqSupportQuestion: "How is {operatorName}''s customer service?",
|
|
4915
|
-
faqSupportAnswer: "{operatorName} offers 24/7 customer support, providing players with quick and effective solutions to any queries."
|
|
4916
|
-
},
|
|
4917
|
-
tr: {
|
|
4918
|
-
faqBestQuestion: "{operatorName} programı neden en iyisi?",
|
|
4919
|
-
faqBestAnswer: "{operatorName}, oyunculara her Çarşamba otomatik olarak tanımlanan 50 Ücretsiz Dönüş dahil olmak üzere özel avantajlar sunan benzersiz bir sadakat programı sunar.",
|
|
4920
|
-
faqWinningsQuestion: "{operatorName} ile kazançlarınızı nasıl artırabilirsiniz?",
|
|
4921
|
-
faqWinningsAnswer: "{operatorName}, kullanıcılarına düzenli olarak özel bonuslar ve promosyonlar sunarak kazançlarını artırma fırsatı verir.",
|
|
4922
|
-
faqGamesQuestion: "{operatorName} ne tür oyunlar sunuyor?",
|
|
4923
|
-
faqGamesAnswer: "{operatorName}, slotlardan masa oyunlarına kadar geniş bir oyun yelpazesi sunarak her tür oyuncuya hitap eder.",
|
|
4924
|
-
faqSupportQuestion: "{operatorName} müşteri hizmetleri nasıl?",
|
|
4925
|
-
faqSupportAnswer: "{operatorName}, 7/24 müşteri desteği sunarak oyunculara her türlü soruya hızlı ve etkili çözümler sağlar."
|
|
4926
|
-
}
|
|
4927
|
-
};
|
|
4928
|
-
var no = /* @__PURE__ */ Tn('<div class="faq__item svelte-1rbfe1c"><button class="faq__title svelte-1rbfe1c" type="button"><span class="faq__question svelte-1rbfe1c"> </span> <span><svg width="16" height="16" viewBox="0 0 16 16" fill="none" class="svelte-1rbfe1c"><path d="M4 6l4 4 4-4" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="svelte-1rbfe1c"></path></svg></span></button> <div><div class="faq__answer svelte-1rbfe1c"> </div></div></div>'), io = /* @__PURE__ */ Tn('<div class="faq svelte-1rbfe1c"><div class="faq__list svelte-1rbfe1c"></div></div>');
|
|
4929
|
-
function oo(e, t) {
|
|
4930
|
-
di(t, !0);
|
|
4931
|
-
const r = () => hs(Ka, "$_", n), [n, i] = cs();
|
|
4932
|
-
nt(t, "apiEndpoint", 3, "");
|
|
4933
|
-
const s = nt(t, "operatorName", 3, ""), o = nt(t, "locale", 3, "en"), u = nt(t, "isExpanded", 3, !0), l = [
|
|
4934
|
-
{ questionKey: "faqBestQuestion", answerKey: "faqBestAnswer" },
|
|
4935
|
-
{
|
|
4936
|
-
questionKey: "faqWinningsQuestion",
|
|
4937
|
-
answerKey: "faqWinningsAnswer"
|
|
4938
|
-
},
|
|
4939
|
-
{ questionKey: "faqGamesQuestion", answerKey: "faqGamesAnswer" },
|
|
4940
|
-
{
|
|
4941
|
-
questionKey: "faqSupportQuestion",
|
|
4942
|
-
answerKey: "faqSupportAnswer"
|
|
4943
|
-
}
|
|
4944
|
-
];
|
|
4945
|
-
eo({ withLocale: o(), translations: {} }), Object.entries(ro).forEach(([v, p]) => {
|
|
4946
|
-
to(v, p);
|
|
4947
|
-
});
|
|
4948
|
-
let a = /* @__PURE__ */ K(Pe(Object.fromEntries(l.map((v, p) => [p, u()]))));
|
|
4949
|
-
const f = (v) => {
|
|
4950
|
-
ee(a, { ...D(a), [v]: !D(a)[v] }, !0);
|
|
4951
|
-
};
|
|
4952
|
-
var h = io(), c = He(h);
|
|
4953
|
-
es(c, 21, () => l, Ji, (v, p, m) => {
|
|
4954
|
-
var b = no(), T = He(b);
|
|
4955
|
-
T.__click = () => f(m);
|
|
4956
|
-
var E = He(T), A = He(E), N = pr(E, 2);
|
|
4957
|
-
let B;
|
|
4958
|
-
var G = pr(T, 2);
|
|
4959
|
-
let P;
|
|
4960
|
-
var we = He(G), Z = He(we);
|
|
4961
|
-
Gi(
|
|
4962
|
-
(Qn, Zn) => {
|
|
4963
|
-
as(T, "aria-expanded", !!D(a)[m]), _r(A, Qn), B = Er(N, 1, "faq__icon svelte-1rbfe1c", null, B, { "faq__icon--open": D(a)[m] }), P = Er(G, 1, "faq__answer-wrapper svelte-1rbfe1c", null, P, { open: D(a)[m] }), _r(Z, Zn);
|
|
4964
|
-
},
|
|
4965
|
-
[
|
|
4966
|
-
() => r()(D(p).questionKey, { values: { operatorName: s() } }),
|
|
4967
|
-
() => r()(D(p).answerKey, { values: { operatorName: s() } })
|
|
4968
|
-
]
|
|
4969
|
-
), dr(v, b);
|
|
4970
|
-
}), dr(e, h), _i(), i();
|
|
4971
|
-
}
|
|
4972
|
-
Zi(["click"]);
|
|
4973
|
-
export {
|
|
4974
|
-
oo as default
|
|
4975
|
-
};
|