@flemist/simple-utils 2.1.3 → 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/browser/index.cjs +1 -1
- package/build/browser/index.mjs +148 -115
- package/build/common/index.cjs +1 -1
- package/build/common/index.mjs +148 -115
- package/build/common/string/format/index.d.ts +1 -0
- package/build/common/test/match/index.d.ts +6 -2
- package/build/common/test/match/matchers/index.d.ts +17 -0
- package/build/node/index.cjs +8 -8
- package/build/node/index.mjs +862 -668
- package/build/node/test/helpers/common.d.ts +2 -0
- package/build/node/test/helpers/createTestE2e.d.ts +30 -0
- package/build/node/test/helpers/index.d.ts +3 -0
- package/build/node/test/helpers/waitPageStable.d.ts +35 -0
- package/build/node/test/index.d.ts +1 -0
- package/build/urlGet-CerQ1cKh.js +17 -0
- package/build/{urlGet-BCW9jvAm.mjs → urlGet-DZEwtNXt.mjs} +614 -561
- package/package.json +1 -1
- package/build/urlGet-BOGFUahf.js +0 -17
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { AbortControllerFast as
|
|
2
|
-
import { isPromiseLike as
|
|
3
|
-
import { timeControllerDefault as
|
|
4
|
-
let
|
|
5
|
-
function
|
|
6
|
-
if (!
|
|
7
|
-
|
|
1
|
+
import { AbortControllerFast as At, toAbortSignal as Xt, AbortError as Yt } from "@flemist/abort-controller-fast";
|
|
2
|
+
import { isPromiseLike as B, EMPTY_FUNC as Qt, delay as Zt, ValueState as te } from "@flemist/async-utils";
|
|
3
|
+
import { timeControllerDefault as Mt } from "@flemist/time-controller";
|
|
4
|
+
let G = null;
|
|
5
|
+
function ee() {
|
|
6
|
+
if (!G) {
|
|
7
|
+
G = new Array(256);
|
|
8
8
|
for (let t = 0; t < 256; t++)
|
|
9
|
-
|
|
9
|
+
G[t] = t.toString(16).padStart(2, "0");
|
|
10
10
|
}
|
|
11
|
-
return
|
|
11
|
+
return G;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
const e =
|
|
13
|
+
function re(t) {
|
|
14
|
+
const e = ee(), r = new Uint8Array(t.buffer, t.byteOffset, t.byteLength);
|
|
15
15
|
let n = "";
|
|
16
16
|
for (let s = 0, i = r.length; s < i; s++)
|
|
17
17
|
n += e[r[s]];
|
|
18
18
|
return n;
|
|
19
19
|
}
|
|
20
|
-
let
|
|
21
|
-
function
|
|
22
|
-
|
|
20
|
+
let dt = null, Tt = null, Q = null, Ct = null;
|
|
21
|
+
function ne() {
|
|
22
|
+
dt || (dt = new Uint32Array([
|
|
23
23
|
1116352408,
|
|
24
24
|
1899447441,
|
|
25
25
|
3049323471,
|
|
@@ -84,17 +84,17 @@ function ee() {
|
|
|
84
84
|
2756734187,
|
|
85
85
|
3204031479,
|
|
86
86
|
3329325298
|
|
87
|
-
]),
|
|
87
|
+
]), Tt = new Uint32Array(64), Ct = new TextEncoder(), Q = new Uint8Array(65536));
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function se(t) {
|
|
90
90
|
if (t == null)
|
|
91
91
|
return null;
|
|
92
|
-
|
|
93
|
-
const e =
|
|
94
|
-
let s =
|
|
92
|
+
ne();
|
|
93
|
+
const e = dt, r = Tt, n = Ct;
|
|
94
|
+
let s = Q, i;
|
|
95
95
|
if (typeof t == "string") {
|
|
96
96
|
const g = t.length * 3;
|
|
97
|
-
s.length < g + 128 && (s =
|
|
97
|
+
s.length < g + 128 && (s = Q = new Uint8Array(g + 128));
|
|
98
98
|
const d = n.encodeInto(t, s);
|
|
99
99
|
i = s.subarray(0, d.written);
|
|
100
100
|
} else if (t instanceof Uint8Array)
|
|
@@ -110,72 +110,72 @@ function re(t) {
|
|
|
110
110
|
`[sha256Buffer] Unsupported content type: ${typeof t}`
|
|
111
111
|
);
|
|
112
112
|
const o = i.length, u = o + 72 >>> 6 << 6;
|
|
113
|
-
s.length < u && (s =
|
|
113
|
+
s.length < u && (s = Q = new Uint8Array(u)), i !== s && s.set(i), s[o] = 128;
|
|
114
114
|
for (let g = o + 1; g < u; g++)
|
|
115
115
|
s[g] = 0;
|
|
116
|
-
const a = o * 8,
|
|
117
|
-
s[u - 8] =
|
|
118
|
-
let
|
|
116
|
+
const a = o * 8, c = a / 4294967296 | 0, f = a | 0;
|
|
117
|
+
s[u - 8] = c >>> 24, s[u - 7] = c >>> 16, s[u - 6] = c >>> 8, s[u - 5] = c, s[u - 4] = f >>> 24, s[u - 3] = f >>> 16, s[u - 2] = f >>> 8, s[u - 1] = f;
|
|
118
|
+
let b = 1779033703, y = -1150833019, h = 1013904242, l = -1521486534, m = 1359893119, $ = -1694144372, _ = 528734635, O = 1541459225;
|
|
119
119
|
for (let g = 0; g < u; g += 64) {
|
|
120
|
-
for (let
|
|
121
|
-
const x = g + (
|
|
122
|
-
r[
|
|
120
|
+
for (let w = 0; w < 16; w++) {
|
|
121
|
+
const x = g + (w << 2);
|
|
122
|
+
r[w] = s[x] << 24 | s[x + 1] << 16 | s[x + 2] << 8 | s[x + 3];
|
|
123
123
|
}
|
|
124
|
-
for (let
|
|
125
|
-
const x = r[
|
|
126
|
-
r[
|
|
124
|
+
for (let w = 16; w < 64; w++) {
|
|
125
|
+
const x = r[w - 15], C = r[w - 2], ct = (x >>> 7 | x << 25) ^ (x >>> 18 | x << 14) ^ x >>> 3, H = (C >>> 17 | C << 15) ^ (C >>> 19 | C << 13) ^ C >>> 10;
|
|
126
|
+
r[w] = r[w - 16] + ct + r[w - 7] + H | 0;
|
|
127
127
|
}
|
|
128
|
-
let d =
|
|
129
|
-
for (let
|
|
128
|
+
let d = b, E = y, q = h, ot = l, A = m, W = $, V = _, at = O;
|
|
129
|
+
for (let w = 0; w < 64; w += 4)
|
|
130
130
|
for (let x = 0; x < 4; x++) {
|
|
131
|
-
const C =
|
|
132
|
-
|
|
131
|
+
const C = w + x, ct = (A >>> 6 | A << 26) ^ (A >>> 11 | A << 21) ^ (A >>> 25 | A << 7), H = at + ct + (V ^ A & (W ^ V)) + e[C] + r[C] | 0, Jt = ((d >>> 2 | d << 30) ^ (d >>> 13 | d << 19) ^ (d >>> 22 | d << 10)) + (d & E ^ q & (d ^ E)) | 0;
|
|
132
|
+
at = V, V = W, W = A, A = ot + H | 0, ot = q, q = E, E = d, d = H + Jt | 0;
|
|
133
133
|
}
|
|
134
|
-
|
|
134
|
+
b = b + d | 0, y = y + E | 0, h = h + q | 0, l = l + ot | 0, m = m + A | 0, $ = $ + W | 0, _ = _ + V | 0, O = O + at | 0;
|
|
135
135
|
}
|
|
136
|
-
const S = new Uint8Array(32), K = [
|
|
136
|
+
const S = new Uint8Array(32), K = [b, y, h, l, m, $, _, O];
|
|
137
137
|
for (let g = 0; g < 8; g++) {
|
|
138
138
|
const d = K[g], E = g << 2;
|
|
139
139
|
S[E] = d >>> 24, S[E + 1] = d >>> 16 & 255, S[E + 2] = d >>> 8 & 255, S[E + 3] = d & 255;
|
|
140
140
|
}
|
|
141
141
|
return S;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
const e =
|
|
145
|
-
return e ?
|
|
143
|
+
function Ze(t) {
|
|
144
|
+
const e = se(t);
|
|
145
|
+
return e ? re(e) : null;
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function ie(t, e) {
|
|
148
148
|
return t == null ? e : e == null ? t : Math.min(t, e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function ue(t, e) {
|
|
151
151
|
return t == null ? e : e == null ? t : Math.max(t, e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
return
|
|
153
|
+
function tr(t, e, r) {
|
|
154
|
+
return ue(ie(t, e), r);
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function er(t, e) {
|
|
157
157
|
return (t % e + e) % e;
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function oe(t) {
|
|
160
160
|
return function() {
|
|
161
161
|
let r = t += 1831565813;
|
|
162
162
|
return r = Math.imul(r ^ r >>> 15, r | 1), r ^= r + Math.imul(r ^ r >>> 7, r | 61), (r ^ r >>> 14) / 4294967296 + 0.5;
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function ae() {
|
|
166
166
|
return Math.random();
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function rr() {
|
|
169
169
|
return Math.random() * 2 ** 32 >>> 0;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
return t != null ?
|
|
171
|
+
function ce(t) {
|
|
172
|
+
return t != null ? oe(t) : ae;
|
|
173
173
|
}
|
|
174
|
-
class
|
|
174
|
+
class yt {
|
|
175
175
|
_seed;
|
|
176
176
|
_rnd;
|
|
177
177
|
constructor(e) {
|
|
178
|
-
this._seed = e, this._rnd =
|
|
178
|
+
this._seed = e, this._rnd = ce(e);
|
|
179
179
|
}
|
|
180
180
|
get seed() {
|
|
181
181
|
return this._seed;
|
|
@@ -184,29 +184,29 @@ class dt {
|
|
|
184
184
|
return this.next() * 2 ** 32 >>> 0;
|
|
185
185
|
}
|
|
186
186
|
nextRandom() {
|
|
187
|
-
return new
|
|
187
|
+
return new yt(this.nextSeed());
|
|
188
188
|
}
|
|
189
189
|
next() {
|
|
190
190
|
return this._rnd();
|
|
191
191
|
}
|
|
192
192
|
clone() {
|
|
193
|
-
return new
|
|
193
|
+
return new yt(this._seed);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function It(t, e, r) {
|
|
197
197
|
if (r == null && (r = e, e = 0), r <= e)
|
|
198
198
|
throw new Error(
|
|
199
199
|
`[random][randomFloat] toExclusive (${r}) must be greater than from (${e})`
|
|
200
200
|
);
|
|
201
201
|
return t.next() * (r - e) + e;
|
|
202
202
|
}
|
|
203
|
-
function
|
|
204
|
-
return Math.floor(
|
|
203
|
+
function le(t, e, r) {
|
|
204
|
+
return Math.floor(It(t, e, r));
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function nr(t, e) {
|
|
207
207
|
return t.next() < (e ?? 0.5);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function sr(t, e, r) {
|
|
210
210
|
if (Array.isArray(e)) {
|
|
211
211
|
const i = e;
|
|
212
212
|
e = i.length, r = (o) => i[o];
|
|
@@ -218,32 +218,32 @@ function nr(t, e, r) {
|
|
|
218
218
|
n += r(i);
|
|
219
219
|
if (n === 0)
|
|
220
220
|
return -1;
|
|
221
|
-
let s =
|
|
221
|
+
let s = It(t, n);
|
|
222
222
|
for (let i = 0; i < e; i++)
|
|
223
223
|
if (s -= r(i), s < 0)
|
|
224
224
|
return i;
|
|
225
225
|
return e - 1;
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function kt(t, e) {
|
|
228
228
|
if (e.length === 0)
|
|
229
229
|
throw new Error("[random][randomItem] items is empty");
|
|
230
|
-
const r =
|
|
230
|
+
const r = le(t, e.length);
|
|
231
231
|
return e[r];
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function ir(t, e, r) {
|
|
234
234
|
if (e.length === 0)
|
|
235
235
|
throw new Error("[random][randomItems] items is empty");
|
|
236
236
|
const n = [];
|
|
237
237
|
for (let s = 0; s < r; s++)
|
|
238
|
-
n.push(
|
|
238
|
+
n.push(kt(t, e));
|
|
239
239
|
return n;
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function ur(t, e, r) {
|
|
242
242
|
let n = Object.values(e);
|
|
243
|
-
return r && (n = n.filter(r)),
|
|
243
|
+
return r && (n = n.filter(r)), kt(t, n);
|
|
244
244
|
}
|
|
245
245
|
const Nt = 1073741789, lt = (Nt >> 2) - 1;
|
|
246
|
-
function
|
|
246
|
+
function or(t = lt, e) {
|
|
247
247
|
if (t <= 0)
|
|
248
248
|
throw new Error(`[random][PseudoRandom] count(${t}) must be > 0`);
|
|
249
249
|
if (t > lt)
|
|
@@ -260,24 +260,24 @@ function ur(t = lt, e) {
|
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
262
|
let F = null;
|
|
263
|
-
function
|
|
263
|
+
function ar() {
|
|
264
264
|
const t = Date.now();
|
|
265
265
|
return F == null || t > F ? (F = t, t) : (F++, F);
|
|
266
266
|
}
|
|
267
|
-
async function
|
|
267
|
+
async function cr({
|
|
268
268
|
url: t,
|
|
269
269
|
timeout: e
|
|
270
270
|
} = {}) {
|
|
271
271
|
t || (t = typeof window < "u" ? "/" : "https://google.com");
|
|
272
272
|
let r;
|
|
273
273
|
try {
|
|
274
|
-
const n = new
|
|
274
|
+
const n = new At();
|
|
275
275
|
r = e ? setTimeout(() => {
|
|
276
276
|
n.abort();
|
|
277
277
|
}, e) : null;
|
|
278
278
|
const s = await fetch(t, {
|
|
279
279
|
method: "HEAD",
|
|
280
|
-
signal:
|
|
280
|
+
signal: Xt(n.signal)
|
|
281
281
|
}), i = s.headers.get("date");
|
|
282
282
|
if (!i)
|
|
283
283
|
throw new Error(
|
|
@@ -302,20 +302,20 @@ function Dt(t, e, r) {
|
|
|
302
302
|
t.getTime() + s.getTime() - n.getTime()
|
|
303
303
|
);
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function fe(t, e) {
|
|
306
306
|
t = Dt(t, "UTC", e);
|
|
307
307
|
const r = t.getUTCFullYear().toString().padStart(4, "0"), n = (t.getUTCMonth() + 1).toString().padStart(2, "0"), s = t.getUTCDate().toString().padStart(2, "0"), i = t.getUTCHours().toString().padStart(2, "0"), o = t.getUTCMinutes().toString().padStart(2, "0"), u = t.getUTCSeconds().toString().padStart(2, "0");
|
|
308
308
|
return `${r}-${n}-${s} ${i}:${o}:${u}`;
|
|
309
309
|
}
|
|
310
|
-
let
|
|
311
|
-
const
|
|
310
|
+
let he = 0;
|
|
311
|
+
const ft = /* @__PURE__ */ new WeakMap();
|
|
312
312
|
function P(t) {
|
|
313
|
-
if (
|
|
314
|
-
return
|
|
315
|
-
const e =
|
|
316
|
-
return
|
|
313
|
+
if (ft.has(t))
|
|
314
|
+
return ft.get(t);
|
|
315
|
+
const e = he++;
|
|
316
|
+
return ft.set(t, e), e;
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function J(t, e, r) {
|
|
319
319
|
if (t == null)
|
|
320
320
|
return null;
|
|
321
321
|
if (e == null || t.length <= e)
|
|
@@ -337,83 +337,83 @@ function U(t, e, r, n) {
|
|
|
337
337
|
maxDepth: o,
|
|
338
338
|
maxItems: u,
|
|
339
339
|
maxStringLength: a,
|
|
340
|
-
showObjectId:
|
|
340
|
+
showObjectId: c,
|
|
341
341
|
showArrayIndex: f,
|
|
342
|
-
customToString:
|
|
342
|
+
customToString: b
|
|
343
343
|
} = e ?? {};
|
|
344
|
-
if (r == null && (r = []), n == null && (n = /* @__PURE__ */ new Set()),
|
|
345
|
-
const h =
|
|
344
|
+
if (r == null && (r = []), n == null && (n = /* @__PURE__ */ new Set()), b) {
|
|
345
|
+
const h = b(
|
|
346
346
|
t,
|
|
347
347
|
r,
|
|
348
|
-
(
|
|
348
|
+
(l) => U(l, e, r, n)
|
|
349
349
|
);
|
|
350
350
|
if (h != null)
|
|
351
|
-
return
|
|
351
|
+
return J(h, a, e?.truncateOptions);
|
|
352
352
|
}
|
|
353
353
|
const y = r.length;
|
|
354
354
|
if (typeof t == "string")
|
|
355
|
-
return t =
|
|
355
|
+
return t = J(t, a, e?.truncateOptions), n.size > 0 && (t = JSON.stringify(t)), t;
|
|
356
356
|
if (t == null || typeof t != "object")
|
|
357
357
|
return String(t);
|
|
358
358
|
if (t instanceof ArrayBuffer || ArrayBuffer.isView(t))
|
|
359
359
|
return `${t.constructor?.name ?? ""}#${P(t)}[${t.byteLength}]`;
|
|
360
360
|
if (t instanceof RegExp)
|
|
361
|
-
return
|
|
361
|
+
return J(
|
|
362
362
|
String(t),
|
|
363
363
|
a,
|
|
364
364
|
e?.truncateOptions
|
|
365
365
|
);
|
|
366
366
|
if (t instanceof Date)
|
|
367
|
-
return
|
|
367
|
+
return fe(t);
|
|
368
368
|
if (t instanceof Object) {
|
|
369
369
|
if (n.has(t) || o != null && y >= o)
|
|
370
370
|
return `${t.constructor === Object ? "" : t.constructor?.name ?? ""}#${P(t)}`;
|
|
371
371
|
n.add(t);
|
|
372
372
|
}
|
|
373
373
|
if (t instanceof Error)
|
|
374
|
-
return
|
|
374
|
+
return J(
|
|
375
375
|
t.stack || t.message || String(t),
|
|
376
376
|
a,
|
|
377
377
|
e?.truncateOptions
|
|
378
378
|
);
|
|
379
379
|
if (Array.isArray(t)) {
|
|
380
380
|
const h = s ? " ".repeat(y) : "";
|
|
381
|
-
let
|
|
382
|
-
|
|
381
|
+
let l = "";
|
|
382
|
+
c && (l += `#${P(t)} `), l += "[";
|
|
383
383
|
let m = 0, $ = !1;
|
|
384
|
-
for (let
|
|
384
|
+
for (let _ = 0; _ < t.length; _++) {
|
|
385
385
|
if (u != null && m >= u) {
|
|
386
386
|
$ = !0;
|
|
387
387
|
break;
|
|
388
388
|
}
|
|
389
|
-
const O = [...r, String(
|
|
389
|
+
const O = [...r, String(_)], S = _t(t, _);
|
|
390
390
|
if (i != null && !i(O, S))
|
|
391
391
|
continue;
|
|
392
392
|
const K = U(S, e, O, n);
|
|
393
|
-
m > 0 && (
|
|
394
|
-
`), s && (
|
|
393
|
+
m > 0 && (l += ","), s && (l += `
|
|
394
|
+
`), s && (l += `${h} `), f && (l += `${_}: `), l += `${K}`, m++;
|
|
395
395
|
}
|
|
396
|
-
return $ ? (m > 0 && (
|
|
397
|
-
`,
|
|
398
|
-
`) :
|
|
399
|
-
${h}`),
|
|
396
|
+
return $ ? (m > 0 && (l += ","), s ? (l += `
|
|
397
|
+
`, l += `${h} ...
|
|
398
|
+
`) : l += "...", l += h, l += "]") : (m > 0 && s && (l += `
|
|
399
|
+
${h}`), l += "]"), l;
|
|
400
400
|
}
|
|
401
401
|
if (t instanceof Map) {
|
|
402
402
|
let h = "";
|
|
403
|
-
return
|
|
403
|
+
return c && (h += `#${P(t)} `), h += "Map", h += U(Array.from(t.entries()), e, r, n), h;
|
|
404
404
|
}
|
|
405
405
|
if (t instanceof Set) {
|
|
406
406
|
let h = "";
|
|
407
|
-
return
|
|
407
|
+
return c && (h += `#${P(t)} `), h += "Set", h += U(Array.from(t.values()), e, r, n), h;
|
|
408
408
|
}
|
|
409
409
|
{
|
|
410
|
-
const h = t.constructor === Object ? "" : t.constructor?.name ?? "",
|
|
410
|
+
const h = t.constructor === Object ? "" : t.constructor?.name ?? "", l = s ? " ".repeat(y) : "";
|
|
411
411
|
let m = h ? `${h} ` : "";
|
|
412
|
-
|
|
413
|
-
let $ = 0,
|
|
412
|
+
c && (m += `#${P(t)} `), m += "{";
|
|
413
|
+
let $ = 0, _ = !1;
|
|
414
414
|
for (const O in t) {
|
|
415
415
|
if (u != null && $ >= u) {
|
|
416
|
-
|
|
416
|
+
_ = !0;
|
|
417
417
|
break;
|
|
418
418
|
}
|
|
419
419
|
const S = [...r, O], K = _t(t, O);
|
|
@@ -421,15 +421,15 @@ ${h}`), c += "]"), c;
|
|
|
421
421
|
continue;
|
|
422
422
|
const g = U(K, e, S, n);
|
|
423
423
|
$ > 0 && (m += ","), s && (m += `
|
|
424
|
-
`), s && (m += `${
|
|
424
|
+
`), s && (m += `${l} `), m += `${O}: ${g}`, $++;
|
|
425
425
|
}
|
|
426
|
-
return
|
|
427
|
-
`, m += `${
|
|
428
|
-
`) : m += "...", m +=
|
|
429
|
-
${
|
|
426
|
+
return _ && ($ > 0 && (m += ","), s ? (m += `
|
|
427
|
+
`, m += `${l} ...
|
|
428
|
+
`) : m += "...", m += l), $ > 0 && s && !_ && (m += `
|
|
429
|
+
${l}`), m += "}", m;
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function me(t, e) {
|
|
433
433
|
t = Dt(t, "UTC", e);
|
|
434
434
|
const r = t.getUTCFullYear().toString().padStart(4, "0"), n = (t.getUTCMonth() + 1).toString().padStart(2, "0"), s = t.getUTCDate().toString().padStart(2, "0"), i = t.getUTCHours().toString().padStart(2, "0"), o = t.getUTCMinutes().toString().padStart(2, "0"), u = t.getUTCSeconds().toString().padStart(2, "0");
|
|
435
435
|
return `${r}-${n}-${s}_${i}-${o}-${u}`;
|
|
@@ -450,16 +450,16 @@ function lr(t) {
|
|
|
450
450
|
}
|
|
451
451
|
});
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function fr(t) {
|
|
454
454
|
return t == null ? null : t?.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function xt(t) {
|
|
457
457
|
if (t == null)
|
|
458
458
|
return null;
|
|
459
459
|
if (Array.isArray(t)) {
|
|
460
460
|
const e = t.length, r = [];
|
|
461
461
|
for (let n = 0; n < e; n++)
|
|
462
|
-
r.push(
|
|
462
|
+
r.push(xt(t[n]));
|
|
463
463
|
return r;
|
|
464
464
|
}
|
|
465
465
|
if (typeof t == "object") {
|
|
@@ -467,12 +467,12 @@ function bt(t) {
|
|
|
467
467
|
return t;
|
|
468
468
|
const e = {};
|
|
469
469
|
for (const r in t)
|
|
470
|
-
Object.prototype.hasOwnProperty.call(t, r) && (e[r] =
|
|
470
|
+
Object.prototype.hasOwnProperty.call(t, r) && (e[r] = xt(t[r]));
|
|
471
471
|
return e;
|
|
472
472
|
}
|
|
473
473
|
return t;
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function Z(t, e) {
|
|
476
476
|
if (t === e)
|
|
477
477
|
return !0;
|
|
478
478
|
if (t == null)
|
|
@@ -486,7 +486,7 @@ function Y(t, e) {
|
|
|
486
486
|
if (r !== e.length)
|
|
487
487
|
return !1;
|
|
488
488
|
for (let n = 0; n < r; n++)
|
|
489
|
-
if (!
|
|
489
|
+
if (!Z(t[n], e[n]))
|
|
490
490
|
return !1;
|
|
491
491
|
return !0;
|
|
492
492
|
}
|
|
@@ -494,29 +494,29 @@ function Y(t, e) {
|
|
|
494
494
|
if (typeof e != "object" || t.constructor && t.constructor !== Object || e.constructor && e.constructor !== Object)
|
|
495
495
|
return !1;
|
|
496
496
|
for (const r in t)
|
|
497
|
-
if (Object.prototype.hasOwnProperty.call(t, r) && !
|
|
497
|
+
if (Object.prototype.hasOwnProperty.call(t, r) && !Z(
|
|
498
498
|
t[r],
|
|
499
499
|
Object.prototype.hasOwnProperty.call(e, r) ? e[r] : null
|
|
500
500
|
))
|
|
501
501
|
return !1;
|
|
502
502
|
for (const r in e)
|
|
503
|
-
if (Object.prototype.hasOwnProperty.call(e, r) && !Object.prototype.hasOwnProperty.call(t, r) && !
|
|
503
|
+
if (Object.prototype.hasOwnProperty.call(e, r) && !Object.prototype.hasOwnProperty.call(t, r) && !Z(e[r], null))
|
|
504
504
|
return !1;
|
|
505
505
|
return !0;
|
|
506
506
|
}
|
|
507
507
|
return !1;
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function hr(t, e) {
|
|
510
510
|
if (t == null || e == null)
|
|
511
511
|
return t == null == (e == null);
|
|
512
512
|
if (t.size !== e.size)
|
|
513
513
|
return !1;
|
|
514
514
|
for (const [r, n] of t)
|
|
515
|
-
if (!
|
|
515
|
+
if (!Z(n, e.get(r)))
|
|
516
516
|
return !1;
|
|
517
517
|
return !0;
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function mr(t, e) {
|
|
520
520
|
const r = t.length;
|
|
521
521
|
if (r !== e.length)
|
|
522
522
|
return !1;
|
|
@@ -525,54 +525,54 @@ function hr(t, e) {
|
|
|
525
525
|
return !1;
|
|
526
526
|
return !0;
|
|
527
527
|
}
|
|
528
|
-
function
|
|
529
|
-
return !t || typeof t != "object" ? t : Array.isArray(t) ? t.map(
|
|
530
|
-
const n =
|
|
528
|
+
function $t(t) {
|
|
529
|
+
return !t || typeof t != "object" ? t : Array.isArray(t) ? t.map($t) : t && Object.keys(t).sort().reduce((e, r) => {
|
|
530
|
+
const n = $t(t[r]);
|
|
531
531
|
return n != null && (e[r] = n), e;
|
|
532
532
|
}, {});
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function pr(t, e) {
|
|
535
535
|
return Object.defineProperty(t, "name", { value: e, configurable: !0 }), t;
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function dr(t) {
|
|
538
538
|
const e = alert;
|
|
539
539
|
return window.alert = (r) => t(e, r), () => {
|
|
540
540
|
window.alert = e;
|
|
541
541
|
};
|
|
542
542
|
}
|
|
543
543
|
var v = /* @__PURE__ */ ((t) => (t.log = "log", t.warn = "warn", t.error = "error", t.info = "info", t.debug = "debug", t.trace = "trace", t.assert = "assert", t))(v || {});
|
|
544
|
-
const
|
|
545
|
-
function
|
|
544
|
+
const Ot = Object.values(v);
|
|
545
|
+
function N(t) {
|
|
546
546
|
return function() {
|
|
547
547
|
t.apply(console, arguments);
|
|
548
548
|
};
|
|
549
549
|
}
|
|
550
|
-
const
|
|
551
|
-
log:
|
|
552
|
-
warn:
|
|
553
|
-
error:
|
|
554
|
-
info:
|
|
555
|
-
debug:
|
|
556
|
-
trace:
|
|
557
|
-
assert:
|
|
550
|
+
const St = {
|
|
551
|
+
log: N(console.log),
|
|
552
|
+
warn: N(console.warn),
|
|
553
|
+
error: N(console.error),
|
|
554
|
+
info: N(console.info),
|
|
555
|
+
debug: N(console.debug),
|
|
556
|
+
trace: N(console.trace),
|
|
557
|
+
assert: N(console.assert)
|
|
558
558
|
};
|
|
559
|
-
function
|
|
560
|
-
return
|
|
559
|
+
function Ut(t) {
|
|
560
|
+
return Ot.forEach((e) => {
|
|
561
561
|
console[e] = (...r) => {
|
|
562
|
-
t(
|
|
562
|
+
t(St, e, r);
|
|
563
563
|
};
|
|
564
564
|
}), () => {
|
|
565
|
-
|
|
566
|
-
console[e] =
|
|
565
|
+
Ot.forEach((e) => {
|
|
566
|
+
console[e] = St[e];
|
|
567
567
|
});
|
|
568
568
|
};
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function yr(t) {
|
|
571
571
|
return function(r) {
|
|
572
572
|
let n = null;
|
|
573
|
-
const i =
|
|
573
|
+
const i = Ut((u, a, c) => {
|
|
574
574
|
try {
|
|
575
|
-
t(u, a,
|
|
575
|
+
t(u, a, c);
|
|
576
576
|
} catch (f) {
|
|
577
577
|
throw n || (n = f), f;
|
|
578
578
|
}
|
|
@@ -582,7 +582,7 @@ function dr(t) {
|
|
|
582
582
|
};
|
|
583
583
|
try {
|
|
584
584
|
const u = r();
|
|
585
|
-
return
|
|
585
|
+
return B(u) ? u.then(
|
|
586
586
|
(a) => (o(), a),
|
|
587
587
|
(a) => {
|
|
588
588
|
throw o(), a;
|
|
@@ -593,7 +593,7 @@ function dr(t) {
|
|
|
593
593
|
}
|
|
594
594
|
};
|
|
595
595
|
}
|
|
596
|
-
class
|
|
596
|
+
class Rt {
|
|
597
597
|
_listeners = /* @__PURE__ */ new Map();
|
|
598
598
|
_listenersAdd = /* @__PURE__ */ new Map();
|
|
599
599
|
_startStopNotifier;
|
|
@@ -658,7 +658,7 @@ class Ut {
|
|
|
658
658
|
let n;
|
|
659
659
|
if (this._listeners.forEach((s) => {
|
|
660
660
|
const i = s(e);
|
|
661
|
-
|
|
661
|
+
B(i) && (n || (n = []), n.push(i));
|
|
662
662
|
}), n)
|
|
663
663
|
return Promise.all(n).then(r, (s) => {
|
|
664
664
|
throw r(), s;
|
|
@@ -677,34 +677,34 @@ class Ut {
|
|
|
677
677
|
return this.emit(r);
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function pe(t, e) {
|
|
681
681
|
return U(t, {
|
|
682
682
|
maxDepth: 5,
|
|
683
683
|
maxItems: 10,
|
|
684
684
|
...e
|
|
685
685
|
});
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function de(t) {
|
|
688
688
|
return t.map(
|
|
689
|
-
(e) => e && typeof e == "object" ?
|
|
689
|
+
(e) => e && typeof e == "object" ? pe(e) : e
|
|
690
690
|
);
|
|
691
691
|
}
|
|
692
|
-
function
|
|
693
|
-
return `${
|
|
692
|
+
function gr(t) {
|
|
693
|
+
return `${me(/* @__PURE__ */ new Date())} [${t.level.toUpperCase()}] ${de(
|
|
694
694
|
t.args
|
|
695
695
|
).join(" ")}`;
|
|
696
696
|
}
|
|
697
|
-
let
|
|
698
|
-
function
|
|
699
|
-
return
|
|
700
|
-
startStopNotifier: (t) => (
|
|
701
|
-
|
|
697
|
+
let tt = null, ht = null;
|
|
698
|
+
function ye() {
|
|
699
|
+
return ht || (ht = new Rt({
|
|
700
|
+
startStopNotifier: (t) => (tt = t, () => {
|
|
701
|
+
tt = null;
|
|
702
702
|
})
|
|
703
|
-
})),
|
|
703
|
+
})), ht;
|
|
704
704
|
}
|
|
705
|
-
function
|
|
706
|
-
return
|
|
707
|
-
e === "assert" && r[0] === !0 || (e === v.error || e === v.warn || e === v.assert) && (
|
|
705
|
+
function br() {
|
|
706
|
+
return Ut((t, e, r) => {
|
|
707
|
+
e === "assert" && r[0] === !0 || (e === v.error || e === v.warn || e === v.assert) && (tt && tt({
|
|
708
708
|
date: Date.now(),
|
|
709
709
|
level: e,
|
|
710
710
|
args: r
|
|
@@ -713,9 +713,9 @@ function gr() {
|
|
|
713
713
|
}
|
|
714
714
|
function wr(t) {
|
|
715
715
|
if (typeof window > "u")
|
|
716
|
-
return
|
|
716
|
+
return Qt;
|
|
717
717
|
const { levels: e, predicate: r } = t;
|
|
718
|
-
return
|
|
718
|
+
return ye().subscribe((n) => {
|
|
719
719
|
if (e && !e.includes(n.level))
|
|
720
720
|
return;
|
|
721
721
|
const s = n.args.join(`
|
|
@@ -723,8 +723,8 @@ function wr(t) {
|
|
|
723
723
|
r && !r({ text: s, message: n }) || alert(s);
|
|
724
724
|
});
|
|
725
725
|
}
|
|
726
|
-
var
|
|
727
|
-
function
|
|
726
|
+
var jt = /* @__PURE__ */ ((t) => (t[t.none = 0] = "none", t[t.error = 1] = "error", t[t.warn = 2] = "warn", t[t.debug = 3] = "debug", t))(jt || {});
|
|
727
|
+
function ge() {
|
|
728
728
|
let t = new Error().stack;
|
|
729
729
|
if (t != null) {
|
|
730
730
|
const e = t.indexOf(`
|
|
@@ -735,7 +735,7 @@ function de() {
|
|
|
735
735
|
}
|
|
736
736
|
function _r(t) {
|
|
737
737
|
return function(...e) {
|
|
738
|
-
const r =
|
|
738
|
+
const r = ge();
|
|
739
739
|
try {
|
|
740
740
|
return t.apply(this, e);
|
|
741
741
|
} catch (n) {
|
|
@@ -744,14 +744,14 @@ function _r(t) {
|
|
|
744
744
|
}
|
|
745
745
|
};
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function be(t) {
|
|
748
748
|
if (!t || t.timeout == null)
|
|
749
749
|
return null;
|
|
750
|
-
const e = new
|
|
750
|
+
const e = new At(), r = t.timeController ?? Mt;
|
|
751
751
|
if (t.timeout) {
|
|
752
752
|
const n = r.setTimeout(() => {
|
|
753
753
|
e.abort(
|
|
754
|
-
new
|
|
754
|
+
new Yt(
|
|
755
755
|
`[timeoutAbortController] Timeout error: ${t.timeout}ms`
|
|
756
756
|
)
|
|
757
757
|
);
|
|
@@ -764,15 +764,15 @@ function ye(t) {
|
|
|
764
764
|
e.abort(n);
|
|
765
765
|
}), e;
|
|
766
766
|
}
|
|
767
|
-
async function
|
|
768
|
-
const r =
|
|
767
|
+
async function xr(t, e) {
|
|
768
|
+
const r = be(e);
|
|
769
769
|
try {
|
|
770
770
|
return await t(r?.signal ?? e?.abortSignal ?? null);
|
|
771
771
|
} finally {
|
|
772
772
|
r?.abort();
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
|
-
class
|
|
775
|
+
class $r {
|
|
776
776
|
_options;
|
|
777
777
|
_hasValue = !1;
|
|
778
778
|
_promiseOrValue = null;
|
|
@@ -785,7 +785,7 @@ class xr {
|
|
|
785
785
|
const r = (s) => (this._options.persist ? this._promiseOrValue = s : (this._promiseOrValue = null, this._hasValue = !1), s), n = (s) => {
|
|
786
786
|
throw this._options.persist || (this._promiseOrValue = null, this._hasValue = !1), s;
|
|
787
787
|
};
|
|
788
|
-
if (
|
|
788
|
+
if (B(e))
|
|
789
789
|
e = e.then(r, n);
|
|
790
790
|
else if (!this._options.persist)
|
|
791
791
|
return e;
|
|
@@ -799,7 +799,7 @@ class xr {
|
|
|
799
799
|
this._hasValue = !0, this._promiseOrValue = e;
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
class
|
|
802
|
+
class Or {
|
|
803
803
|
_options;
|
|
804
804
|
_promiseOrValues = /* @__PURE__ */ new Map();
|
|
805
805
|
constructor(e) {
|
|
@@ -812,7 +812,7 @@ class $r {
|
|
|
812
812
|
const n = (i) => (this._options.persist ? this._promiseOrValues.set(e, i) : this._promiseOrValues.delete(e), i), s = (i) => {
|
|
813
813
|
throw this._options.persist || this._promiseOrValues.delete(e), i;
|
|
814
814
|
};
|
|
815
|
-
if (
|
|
815
|
+
if (B(r))
|
|
816
816
|
r = r.then(n, s);
|
|
817
817
|
else if (!this._options.persist)
|
|
818
818
|
return r;
|
|
@@ -826,25 +826,25 @@ class $r {
|
|
|
826
826
|
this._promiseOrValues.set(e, r);
|
|
827
827
|
}
|
|
828
828
|
}
|
|
829
|
-
async function
|
|
830
|
-
const e = t.abortSignal ?? null, r = t.timeController ??
|
|
829
|
+
async function Sr(t) {
|
|
830
|
+
const e = t.abortSignal ?? null, r = t.timeController ?? Mt;
|
|
831
831
|
let n = 0;
|
|
832
832
|
for (; ; )
|
|
833
833
|
try {
|
|
834
834
|
return await t.func({ abortSignal: e });
|
|
835
835
|
} catch (s) {
|
|
836
|
-
if ((t.logLevel == null || t.logLevel >=
|
|
836
|
+
if ((t.logLevel == null || t.logLevel >= jt.error) && console.error("[withRetry] error", s), e?.aborted)
|
|
837
837
|
throw s;
|
|
838
838
|
const i = t.delay({
|
|
839
839
|
error: s,
|
|
840
840
|
retryCount: n++,
|
|
841
841
|
abortSignal: e
|
|
842
842
|
});
|
|
843
|
-
if (i == null || (typeof i == "number" ? await
|
|
843
|
+
if (i == null || (typeof i == "number" ? await Zt(i, e ?? void 0, r) : await i(), e?.aborted))
|
|
844
844
|
throw s;
|
|
845
845
|
}
|
|
846
846
|
}
|
|
847
|
-
function
|
|
847
|
+
function Er({
|
|
848
848
|
maxRetries: t,
|
|
849
849
|
delays: e,
|
|
850
850
|
isRetriableError: r
|
|
@@ -863,10 +863,10 @@ function Sr({
|
|
|
863
863
|
return null;
|
|
864
864
|
};
|
|
865
865
|
}
|
|
866
|
-
function
|
|
866
|
+
function Ar(t) {
|
|
867
867
|
return t != null && typeof t == "object" && typeof t.subscribe == "function";
|
|
868
868
|
}
|
|
869
|
-
class
|
|
869
|
+
class Mr {
|
|
870
870
|
_subjects = /* @__PURE__ */ new Map();
|
|
871
871
|
_getLastEvent;
|
|
872
872
|
constructor({
|
|
@@ -876,7 +876,7 @@ class Ar {
|
|
|
876
876
|
}
|
|
877
877
|
subscribe(e, r) {
|
|
878
878
|
let n = this._subjects.get(e);
|
|
879
|
-
n || (n = new
|
|
879
|
+
n || (n = new Rt(), this._subjects.set(e, n));
|
|
880
880
|
const s = n.subscribe(r);
|
|
881
881
|
if (this._getLastEvent) {
|
|
882
882
|
const i = this._getLastEvent(e);
|
|
@@ -911,7 +911,7 @@ class Ar {
|
|
|
911
911
|
};
|
|
912
912
|
}
|
|
913
913
|
}
|
|
914
|
-
function
|
|
914
|
+
function Tr(t, e, r) {
|
|
915
915
|
return new Promise((n) => {
|
|
916
916
|
let s = !1, i;
|
|
917
917
|
function o(f) {
|
|
@@ -921,13 +921,13 @@ function Mr(t, e, r) {
|
|
|
921
921
|
a?.(), i?.(), s = !0, n(Promise.reject(f));
|
|
922
922
|
}
|
|
923
923
|
const a = r?.subscribe(u);
|
|
924
|
-
let
|
|
924
|
+
let c = !0;
|
|
925
925
|
i = t.subscribe((f) => {
|
|
926
|
-
(!e || e(f,
|
|
926
|
+
(!e || e(f, c)) && o(f), c = !1;
|
|
927
927
|
}), s && i?.();
|
|
928
928
|
});
|
|
929
929
|
}
|
|
930
|
-
class
|
|
930
|
+
class D extends Error {
|
|
931
931
|
constructor(e) {
|
|
932
932
|
super(e);
|
|
933
933
|
}
|
|
@@ -951,7 +951,7 @@ class p {
|
|
|
951
951
|
return r ? typeof r == "string" ? r : r(e) : this.nameDefault(e);
|
|
952
952
|
}
|
|
953
953
|
}
|
|
954
|
-
function
|
|
954
|
+
function Kt(t, e) {
|
|
955
955
|
return U(t, {
|
|
956
956
|
maxDepth: 1,
|
|
957
957
|
maxItems: 5,
|
|
@@ -961,13 +961,13 @@ function jt(t, e) {
|
|
|
961
961
|
function R(t) {
|
|
962
962
|
return t instanceof p;
|
|
963
963
|
}
|
|
964
|
-
function
|
|
965
|
-
return
|
|
964
|
+
function nt(t) {
|
|
965
|
+
return Kt(t);
|
|
966
966
|
}
|
|
967
|
-
function
|
|
967
|
+
function gt(t, ...e) {
|
|
968
968
|
if (t == null)
|
|
969
969
|
return "";
|
|
970
|
-
const r =
|
|
970
|
+
const r = Kt(t, {
|
|
971
971
|
filter: (n, s) => {
|
|
972
972
|
if (n.length === 0)
|
|
973
973
|
return !0;
|
|
@@ -979,43 +979,43 @@ function yt(t, ...e) {
|
|
|
979
979
|
});
|
|
980
980
|
return /^(#\d+\s*)\{}$/.test(r) ? "" : `(${r})`;
|
|
981
981
|
}
|
|
982
|
-
function
|
|
982
|
+
function et(t) {
|
|
983
983
|
const { result: e, cause: r, nested: n, error: s } = t;
|
|
984
984
|
if (s) {
|
|
985
985
|
if (!(s instanceof Error))
|
|
986
|
-
throw new
|
|
986
|
+
throw new D(
|
|
987
987
|
`[test][validateMatchResult] error must be an instance of Error, but it is: ${s}`
|
|
988
988
|
);
|
|
989
989
|
if (e != null)
|
|
990
|
-
throw new
|
|
990
|
+
throw new D(
|
|
991
991
|
`[test][validateMatchResult] result must be null if error is set, but it is: ${e}`
|
|
992
992
|
);
|
|
993
993
|
if (r != null)
|
|
994
|
-
throw new
|
|
994
|
+
throw new D(
|
|
995
995
|
`[test][validateMatchResult] cause must be null if error is set, but it is: ${r}`
|
|
996
996
|
);
|
|
997
997
|
if (n != null)
|
|
998
|
-
throw new
|
|
998
|
+
throw new D(
|
|
999
999
|
`[test][validateMatchResult] nested must be null if error is set, but it is: ${n}`
|
|
1000
1000
|
);
|
|
1001
1001
|
return t;
|
|
1002
1002
|
}
|
|
1003
1003
|
if (typeof e != "boolean")
|
|
1004
|
-
throw new
|
|
1004
|
+
throw new D(
|
|
1005
1005
|
`[test][validateMatchResult] result must be a boolean, but it is: ${e}`
|
|
1006
1006
|
);
|
|
1007
1007
|
if (typeof r != "string" && r != null)
|
|
1008
|
-
throw new
|
|
1008
|
+
throw new D(
|
|
1009
1009
|
`[test][validateMatchResult] cause must be a string or null, but it is: ${r}`
|
|
1010
1010
|
);
|
|
1011
1011
|
if (n != null && !(n instanceof Array))
|
|
1012
|
-
throw new
|
|
1012
|
+
throw new D(
|
|
1013
1013
|
`[test][validateMatchResult] nested must be an array or null, but it is: ${n}`
|
|
1014
1014
|
);
|
|
1015
1015
|
return t;
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1018
|
-
return
|
|
1017
|
+
function we(t, e, r) {
|
|
1018
|
+
return et({
|
|
1019
1019
|
actual: t,
|
|
1020
1020
|
expected: e,
|
|
1021
1021
|
result: null,
|
|
@@ -1024,8 +1024,8 @@ function ge(t, e, r) {
|
|
|
1024
1024
|
error: r
|
|
1025
1025
|
});
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1028
|
-
return
|
|
1027
|
+
function Pt(t, e, r) {
|
|
1028
|
+
return et({
|
|
1029
1029
|
actual: t,
|
|
1030
1030
|
expected: e,
|
|
1031
1031
|
result: r,
|
|
@@ -1034,8 +1034,8 @@ function Kt(t, e, r) {
|
|
|
1034
1034
|
error: null
|
|
1035
1035
|
});
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1038
|
-
return typeof r == "boolean" ?
|
|
1037
|
+
function Lt(t, e, r) {
|
|
1038
|
+
return typeof r == "boolean" ? Pt(t, e, r) : et(typeof r == "string" ? {
|
|
1039
1039
|
actual: t,
|
|
1040
1040
|
expected: e,
|
|
1041
1041
|
result: !1,
|
|
@@ -1055,15 +1055,113 @@ function M(t, e) {
|
|
|
1055
1055
|
try {
|
|
1056
1056
|
if (R(e)) {
|
|
1057
1057
|
const r = e.match(t);
|
|
1058
|
-
return
|
|
1058
|
+
return Lt(t, e, r);
|
|
1059
1059
|
}
|
|
1060
|
-
return
|
|
1060
|
+
return Pt(t, e, t === e);
|
|
1061
1061
|
} catch (r) {
|
|
1062
|
-
return
|
|
1062
|
+
return we(t, e, r);
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
class Vt extends p {
|
|
1066
|
+
match(e) {
|
|
1067
|
+
const r = this._args.expected, n = M(e, r);
|
|
1068
|
+
return {
|
|
1069
|
+
result: !n.result,
|
|
1070
|
+
nested: [
|
|
1071
|
+
{
|
|
1072
|
+
actualKey: null,
|
|
1073
|
+
result: n
|
|
1074
|
+
}
|
|
1075
|
+
]
|
|
1076
|
+
};
|
|
1077
|
+
}
|
|
1078
|
+
nameDefault() {
|
|
1079
|
+
return "not";
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
function _e(t, e) {
|
|
1083
|
+
const r = Ft(t.result, e);
|
|
1084
|
+
return r ? {
|
|
1085
|
+
actualKey: t.actualKey,
|
|
1086
|
+
expectedKey: t.expectedKey,
|
|
1087
|
+
result: r
|
|
1088
|
+
} : null;
|
|
1089
|
+
}
|
|
1090
|
+
function Ft(t, e) {
|
|
1091
|
+
if (e ? !t.result : t.result)
|
|
1092
|
+
return null;
|
|
1093
|
+
t.expected instanceof Vt && (e = !e);
|
|
1094
|
+
let r = null;
|
|
1095
|
+
return t.nested && t.nested.forEach((n) => {
|
|
1096
|
+
const s = _e(n, e);
|
|
1097
|
+
s && (r || (r = []), r.push(s));
|
|
1098
|
+
}), {
|
|
1099
|
+
actual: t.actual,
|
|
1100
|
+
expected: t.expected,
|
|
1101
|
+
result: t.result,
|
|
1102
|
+
cause: t.cause,
|
|
1103
|
+
nested: r,
|
|
1104
|
+
error: t.error
|
|
1105
|
+
};
|
|
1106
|
+
}
|
|
1107
|
+
function xe(t, e) {
|
|
1108
|
+
const r = vt(t.result, e + " ");
|
|
1109
|
+
return `${e}${t.actualKey == null ? "| " : t.actualKey + ": "}${r}`;
|
|
1110
|
+
}
|
|
1111
|
+
function vt(t, e) {
|
|
1112
|
+
if (t.result)
|
|
1113
|
+
return t.expected.toString();
|
|
1114
|
+
let r = "";
|
|
1115
|
+
t.nested && (r = t.nested.map((s) => xe(s, e)).join(`
|
|
1116
|
+
`));
|
|
1117
|
+
let n = t.cause || "";
|
|
1118
|
+
return r ? (n || (n = R(t.expected) ? t.expected.toString(t.actual) : ""), `${n}
|
|
1119
|
+
${r}`) : `${n}
|
|
1120
|
+
${e}expected: ${R(t.expected) ? t.expected.toString(t.actual) : t.expected}
|
|
1121
|
+
${e}actual: ${nt(t.actual)}`;
|
|
1122
|
+
}
|
|
1123
|
+
class zt extends Error {
|
|
1124
|
+
constructor(e) {
|
|
1125
|
+
super(e);
|
|
1063
1126
|
}
|
|
1064
1127
|
}
|
|
1065
|
-
|
|
1066
|
-
|
|
1128
|
+
function X(t) {
|
|
1129
|
+
return function(r, n) {
|
|
1130
|
+
const s = M(t, r);
|
|
1131
|
+
if (s.error)
|
|
1132
|
+
throw s.error;
|
|
1133
|
+
const i = Ft(s, !1);
|
|
1134
|
+
if (!i)
|
|
1135
|
+
return;
|
|
1136
|
+
const o = vt(i, "");
|
|
1137
|
+
console.log(`[test][check] CheckError:
|
|
1138
|
+
` + o);
|
|
1139
|
+
const u = new zt(o);
|
|
1140
|
+
throw n?.(u), u;
|
|
1141
|
+
};
|
|
1142
|
+
}
|
|
1143
|
+
function Cr(t) {
|
|
1144
|
+
return function(r, n) {
|
|
1145
|
+
let s;
|
|
1146
|
+
try {
|
|
1147
|
+
s = t();
|
|
1148
|
+
} catch (i) {
|
|
1149
|
+
X(i)(n);
|
|
1150
|
+
return;
|
|
1151
|
+
}
|
|
1152
|
+
return B(s) ? s.then((i) => (X(i)(r), i)).catch((i) => {
|
|
1153
|
+
if (i instanceof zt)
|
|
1154
|
+
throw i;
|
|
1155
|
+
try {
|
|
1156
|
+
X(i)(n);
|
|
1157
|
+
} catch (o) {
|
|
1158
|
+
throw console.error("[test][check] error", o), i;
|
|
1159
|
+
}
|
|
1160
|
+
}) : (X(s)(r), s);
|
|
1161
|
+
};
|
|
1162
|
+
}
|
|
1163
|
+
const st = 10;
|
|
1164
|
+
class Bt extends p {
|
|
1067
1165
|
match(e) {
|
|
1068
1166
|
if (e == null)
|
|
1069
1167
|
return `Expected array, got "${e}"`;
|
|
@@ -1074,21 +1172,21 @@ class Lt extends p {
|
|
|
1074
1172
|
const r = this._args?.expected;
|
|
1075
1173
|
if (r == null)
|
|
1076
1174
|
return !0;
|
|
1077
|
-
const n = this._args?.maxReportItems ??
|
|
1175
|
+
const n = this._args?.maxReportItems ?? st, s = this._args?.matchType || "equals";
|
|
1078
1176
|
if (s === "equals") {
|
|
1079
1177
|
if (e.length !== r.length)
|
|
1080
1178
|
return `Expected array length to be ${r.length}, got ${e.length}`;
|
|
1081
1179
|
let i = !0, o = 0, u = 0;
|
|
1082
1180
|
const a = [];
|
|
1083
|
-
for (let
|
|
1084
|
-
const f = e[
|
|
1181
|
+
for (let c = 0; c < r.length; c++) {
|
|
1182
|
+
const f = e[c], b = r[c], y = M(f, b);
|
|
1085
1183
|
if (y.result ? (o < n && a.push({
|
|
1086
|
-
actualKey:
|
|
1087
|
-
expectedKey:
|
|
1184
|
+
actualKey: c,
|
|
1185
|
+
expectedKey: c,
|
|
1088
1186
|
result: y
|
|
1089
1187
|
}), o++) : (u < n && a.push({
|
|
1090
|
-
actualKey:
|
|
1091
|
-
expectedKey:
|
|
1188
|
+
actualKey: c,
|
|
1189
|
+
expectedKey: c,
|
|
1092
1190
|
result: y
|
|
1093
1191
|
}), u++, i = !1), !i && o >= n && u >= n)
|
|
1094
1192
|
break;
|
|
@@ -1102,22 +1200,22 @@ class Lt extends p {
|
|
|
1102
1200
|
let i = !0;
|
|
1103
1201
|
const o = [];
|
|
1104
1202
|
let u = 0, a = 0;
|
|
1105
|
-
for (let
|
|
1106
|
-
const f = r[
|
|
1107
|
-
let
|
|
1203
|
+
for (let c = 0; c < r.length; c++) {
|
|
1204
|
+
const f = r[c];
|
|
1205
|
+
let b = !1;
|
|
1108
1206
|
for (let y = 0; y < e.length; y++) {
|
|
1109
|
-
const h = e[y],
|
|
1110
|
-
if (
|
|
1111
|
-
|
|
1207
|
+
const h = e[y], l = M(h, f);
|
|
1208
|
+
if (l.result) {
|
|
1209
|
+
b = !0, u < n && o.push({
|
|
1112
1210
|
actualKey: y,
|
|
1113
|
-
expectedKey:
|
|
1114
|
-
result:
|
|
1211
|
+
expectedKey: c,
|
|
1212
|
+
result: l
|
|
1115
1213
|
}), u++;
|
|
1116
1214
|
break;
|
|
1117
1215
|
}
|
|
1118
1216
|
}
|
|
1119
|
-
if (
|
|
1120
|
-
expectedKey:
|
|
1217
|
+
if (b || (i = !1, a < n && o.push({
|
|
1218
|
+
expectedKey: c,
|
|
1121
1219
|
result: {
|
|
1122
1220
|
result: !1,
|
|
1123
1221
|
actual: void 0,
|
|
@@ -1134,10 +1232,10 @@ class Lt extends p {
|
|
|
1134
1232
|
return `Unknown matchType "${s}"`;
|
|
1135
1233
|
}
|
|
1136
1234
|
nameDefault() {
|
|
1137
|
-
return `array ${this._args?.matchType || "equals"} ${
|
|
1235
|
+
return `array ${this._args?.matchType || "equals"} ${nt(this._args?.expected)}`;
|
|
1138
1236
|
}
|
|
1139
1237
|
}
|
|
1140
|
-
class
|
|
1238
|
+
class $e extends p {
|
|
1141
1239
|
match() {
|
|
1142
1240
|
return !0;
|
|
1143
1241
|
}
|
|
@@ -1145,7 +1243,7 @@ class we extends p {
|
|
|
1145
1243
|
return "any";
|
|
1146
1244
|
}
|
|
1147
1245
|
}
|
|
1148
|
-
class
|
|
1246
|
+
class Oe extends p {
|
|
1149
1247
|
match(e) {
|
|
1150
1248
|
if (typeof e != "object")
|
|
1151
1249
|
return `Expected array, got "${typeof e}"`;
|
|
@@ -1153,10 +1251,10 @@ class _e extends p {
|
|
|
1153
1251
|
return "Expected array";
|
|
1154
1252
|
const r = this._args.expected;
|
|
1155
1253
|
let n = !0;
|
|
1156
|
-
const s = [], i = this._args?.maxReportItems ??
|
|
1254
|
+
const s = [], i = this._args?.maxReportItems ?? st;
|
|
1157
1255
|
let o = 0, u = 0;
|
|
1158
1256
|
for (let a = 0; a < e.length; a++) {
|
|
1159
|
-
const
|
|
1257
|
+
const c = e[a], f = M(c, r);
|
|
1160
1258
|
if (f.result ? (o < i && s.push({
|
|
1161
1259
|
actualKey: a,
|
|
1162
1260
|
expectedKey: a,
|
|
@@ -1177,7 +1275,7 @@ class _e extends p {
|
|
|
1177
1275
|
return "array item";
|
|
1178
1276
|
}
|
|
1179
1277
|
}
|
|
1180
|
-
class
|
|
1278
|
+
class Se extends p {
|
|
1181
1279
|
match(e) {
|
|
1182
1280
|
const { expected: r, convert: n } = this._args, s = M(n(e), r), i = [
|
|
1183
1281
|
{
|
|
@@ -1193,16 +1291,16 @@ class be extends p {
|
|
|
1193
1291
|
return "convert";
|
|
1194
1292
|
}
|
|
1195
1293
|
}
|
|
1196
|
-
class
|
|
1294
|
+
class qt extends p {
|
|
1197
1295
|
match(e) {
|
|
1198
1296
|
const { expected: r, nonStrict: n } = this._args;
|
|
1199
1297
|
return n ? e == r : e === r;
|
|
1200
1298
|
}
|
|
1201
1299
|
nameDefault() {
|
|
1202
|
-
return `is(${
|
|
1300
|
+
return `is(${nt(this._args.expected)})`;
|
|
1203
1301
|
}
|
|
1204
1302
|
}
|
|
1205
|
-
class
|
|
1303
|
+
class Ee extends p {
|
|
1206
1304
|
match(e) {
|
|
1207
1305
|
if (e == null)
|
|
1208
1306
|
return `Expected number, got "${e}"`;
|
|
@@ -1218,10 +1316,10 @@ class xe extends p {
|
|
|
1218
1316
|
return !s && !Number.isInteger(e) ? `Expected integer, got "${e}"` : r != null && e < r ? `Expected number to be >= ${r}, got ${e}` : n != null && e > n ? `Expected number to be <= ${n}, got ${e}` : !0;
|
|
1219
1317
|
}
|
|
1220
1318
|
nameDefault() {
|
|
1221
|
-
return `number(${
|
|
1319
|
+
return `number(${gt(this._args)})`;
|
|
1222
1320
|
}
|
|
1223
1321
|
}
|
|
1224
|
-
class
|
|
1322
|
+
class Ae extends p {
|
|
1225
1323
|
match(e) {
|
|
1226
1324
|
if (e == null)
|
|
1227
1325
|
return `Expected object, got "${e}"`;
|
|
@@ -1233,20 +1331,20 @@ class $e extends p {
|
|
|
1233
1331
|
if (r == null)
|
|
1234
1332
|
return !0;
|
|
1235
1333
|
let n = !0;
|
|
1236
|
-
const s = [], i = this._args?.maxReportItems ??
|
|
1334
|
+
const s = [], i = this._args?.maxReportItems ?? st;
|
|
1237
1335
|
let o = 0, u = 0;
|
|
1238
1336
|
for (const a in r) {
|
|
1239
1337
|
if (!Object.prototype.hasOwnProperty.call(r, a))
|
|
1240
1338
|
continue;
|
|
1241
|
-
const
|
|
1242
|
-
if (
|
|
1339
|
+
const c = e[a], f = r[a], b = M(c, f);
|
|
1340
|
+
if (b.result ? (o < i && s.push({
|
|
1243
1341
|
actualKey: a,
|
|
1244
1342
|
expectedKey: a,
|
|
1245
|
-
result:
|
|
1343
|
+
result: b
|
|
1246
1344
|
}), o++) : (u < i && s.push({
|
|
1247
1345
|
actualKey: a,
|
|
1248
1346
|
expectedKey: a,
|
|
1249
|
-
result:
|
|
1347
|
+
result: b
|
|
1250
1348
|
}), u++, n = !1), !n && o >= i && u >= i)
|
|
1251
1349
|
break;
|
|
1252
1350
|
}
|
|
@@ -1254,11 +1352,11 @@ class $e extends p {
|
|
|
1254
1352
|
for (const a in e) {
|
|
1255
1353
|
if (!Object.prototype.hasOwnProperty.call(e, a) || Object.prototype.hasOwnProperty.call(r, a))
|
|
1256
1354
|
continue;
|
|
1257
|
-
const
|
|
1355
|
+
const c = e[a];
|
|
1258
1356
|
if (u < i && s.push({
|
|
1259
1357
|
actualKey: a,
|
|
1260
1358
|
expectedKey: a,
|
|
1261
|
-
result:
|
|
1359
|
+
result: Lt(c, void 0, "Unexpected key")
|
|
1262
1360
|
}), u++, n = !1, u >= i)
|
|
1263
1361
|
break;
|
|
1264
1362
|
}
|
|
@@ -1268,10 +1366,10 @@ class $e extends p {
|
|
|
1268
1366
|
};
|
|
1269
1367
|
}
|
|
1270
1368
|
nameDefault() {
|
|
1271
|
-
return "object" +
|
|
1369
|
+
return "object" + gt(this._args);
|
|
1272
1370
|
}
|
|
1273
1371
|
}
|
|
1274
|
-
class
|
|
1372
|
+
class Me extends p {
|
|
1275
1373
|
match(e) {
|
|
1276
1374
|
if (e == null)
|
|
1277
1375
|
return `Expected string, got ${e}`;
|
|
@@ -1292,7 +1390,7 @@ class Oe extends p {
|
|
|
1292
1390
|
return this._args?.pattern ? `string(${this._args.pattern})` : "string";
|
|
1293
1391
|
}
|
|
1294
1392
|
}
|
|
1295
|
-
class
|
|
1393
|
+
class Te extends p {
|
|
1296
1394
|
match(e) {
|
|
1297
1395
|
const r = this._args.expected;
|
|
1298
1396
|
return e instanceof r ? !0 : `Expected instance of "${r}", got "${e}"`;
|
|
@@ -1301,7 +1399,7 @@ class Se extends p {
|
|
|
1301
1399
|
return `instanceOf(${this._args.expected.name})`;
|
|
1302
1400
|
}
|
|
1303
1401
|
}
|
|
1304
|
-
class
|
|
1402
|
+
class Ce extends p {
|
|
1305
1403
|
constructor(e) {
|
|
1306
1404
|
super({
|
|
1307
1405
|
...e,
|
|
@@ -1312,25 +1410,25 @@ class Ee extends p {
|
|
|
1312
1410
|
return !!this._args.expected.has(e);
|
|
1313
1411
|
}
|
|
1314
1412
|
nameDefault() {
|
|
1315
|
-
return `in(${
|
|
1413
|
+
return `in(${nt(this._args.expected)})`;
|
|
1316
1414
|
}
|
|
1317
1415
|
}
|
|
1318
|
-
class
|
|
1416
|
+
class it extends p {
|
|
1319
1417
|
match(e) {
|
|
1320
1418
|
const { type: r, expecteds: n, pipe: s } = this._args;
|
|
1321
1419
|
let i = r === "and";
|
|
1322
1420
|
const o = [];
|
|
1323
1421
|
for (let u = 0; u < n.length; u++) {
|
|
1324
|
-
const a = n[u],
|
|
1422
|
+
const a = n[u], c = M(e, a);
|
|
1325
1423
|
if (o.push({
|
|
1326
1424
|
actualKey: `<${r} ${u}>`,
|
|
1327
1425
|
expectedKey: `<${r} ${u}>`,
|
|
1328
|
-
result:
|
|
1426
|
+
result: c
|
|
1329
1427
|
}), r === "or") {
|
|
1330
|
-
if (
|
|
1428
|
+
if (c.result && (i = !0, s))
|
|
1331
1429
|
break;
|
|
1332
1430
|
} else if (r === "and") {
|
|
1333
|
-
if (!
|
|
1431
|
+
if (!c.result && (i = !1, s))
|
|
1334
1432
|
break;
|
|
1335
1433
|
} else
|
|
1336
1434
|
throw new Error(`[test][MatcherFew] Unknown type "${r}"`);
|
|
@@ -1344,7 +1442,7 @@ class st extends p {
|
|
|
1344
1442
|
return this._args.type;
|
|
1345
1443
|
}
|
|
1346
1444
|
}
|
|
1347
|
-
class
|
|
1445
|
+
class Ie extends p {
|
|
1348
1446
|
match(e) {
|
|
1349
1447
|
const r = this._args.matcher;
|
|
1350
1448
|
return R(r) ? r.match(e) : r(e);
|
|
@@ -1354,24 +1452,7 @@ class Ae extends p {
|
|
|
1354
1452
|
return typeof r == "string" ? r : r ? r(e) : "custom";
|
|
1355
1453
|
}
|
|
1356
1454
|
}
|
|
1357
|
-
class
|
|
1358
|
-
match(e) {
|
|
1359
|
-
const r = this._args.expected, n = M(e, r);
|
|
1360
|
-
return {
|
|
1361
|
-
result: !n.result,
|
|
1362
|
-
nested: [
|
|
1363
|
-
{
|
|
1364
|
-
actualKey: null,
|
|
1365
|
-
result: n
|
|
1366
|
-
}
|
|
1367
|
-
]
|
|
1368
|
-
};
|
|
1369
|
-
}
|
|
1370
|
-
nameDefault() {
|
|
1371
|
-
return "not";
|
|
1372
|
-
}
|
|
1373
|
-
}
|
|
1374
|
-
class Me extends p {
|
|
1455
|
+
class ke extends p {
|
|
1375
1456
|
match() {
|
|
1376
1457
|
return !1;
|
|
1377
1458
|
}
|
|
@@ -1379,7 +1460,7 @@ class Me extends p {
|
|
|
1379
1460
|
return "never";
|
|
1380
1461
|
}
|
|
1381
1462
|
}
|
|
1382
|
-
class
|
|
1463
|
+
class Ne extends p {
|
|
1383
1464
|
match(e) {
|
|
1384
1465
|
if (e == null)
|
|
1385
1466
|
return `Expected object, got "${e}"`;
|
|
@@ -1391,12 +1472,12 @@ class Te extends p {
|
|
|
1391
1472
|
if (r == null)
|
|
1392
1473
|
return !0;
|
|
1393
1474
|
let n = !0;
|
|
1394
|
-
const s = [], i = this._args?.maxReportItems ??
|
|
1475
|
+
const s = [], i = this._args?.maxReportItems ?? st;
|
|
1395
1476
|
let o = 0, u = 0;
|
|
1396
1477
|
for (const a in e) {
|
|
1397
1478
|
if (!Object.prototype.hasOwnProperty.call(e, a))
|
|
1398
1479
|
continue;
|
|
1399
|
-
const
|
|
1480
|
+
const c = [a, e[a]], f = M(c, r);
|
|
1400
1481
|
if (f.result ? (o < i && s.push({
|
|
1401
1482
|
actualKey: a,
|
|
1402
1483
|
expectedKey: a,
|
|
@@ -1414,10 +1495,10 @@ class Te extends p {
|
|
|
1414
1495
|
};
|
|
1415
1496
|
}
|
|
1416
1497
|
nameDefault() {
|
|
1417
|
-
return "object entries" +
|
|
1498
|
+
return "object entries" + gt(this._args);
|
|
1418
1499
|
}
|
|
1419
1500
|
}
|
|
1420
|
-
class
|
|
1501
|
+
class De extends p {
|
|
1421
1502
|
_hasExpected = !1;
|
|
1422
1503
|
_expected = void 0;
|
|
1423
1504
|
get expected() {
|
|
@@ -1442,166 +1523,166 @@ class Ce extends p {
|
|
|
1442
1523
|
}
|
|
1443
1524
|
}
|
|
1444
1525
|
function j(t) {
|
|
1445
|
-
return new
|
|
1526
|
+
return new Bt({ expected: t });
|
|
1446
1527
|
}
|
|
1447
|
-
function
|
|
1448
|
-
return new
|
|
1528
|
+
function Ir(t) {
|
|
1529
|
+
return new Bt({ expected: t, matchType: "includes" });
|
|
1449
1530
|
}
|
|
1450
1531
|
function z() {
|
|
1451
|
-
return new
|
|
1532
|
+
return new $e();
|
|
1452
1533
|
}
|
|
1453
|
-
function
|
|
1454
|
-
return new
|
|
1534
|
+
function kr() {
|
|
1535
|
+
return new De();
|
|
1455
1536
|
}
|
|
1456
|
-
function
|
|
1457
|
-
return new
|
|
1537
|
+
function Nr(t) {
|
|
1538
|
+
return new ke({ name: t });
|
|
1458
1539
|
}
|
|
1459
|
-
function
|
|
1460
|
-
const r = new
|
|
1540
|
+
function Dr(t, e) {
|
|
1541
|
+
const r = new Oe({ expected: e });
|
|
1461
1542
|
return t == null ? r : T(
|
|
1462
|
-
|
|
1463
|
-
R(t) || typeof t == "number" ? t :
|
|
1543
|
+
Pe(
|
|
1544
|
+
R(t) || typeof t == "number" ? t : ut(t)
|
|
1464
1545
|
),
|
|
1465
1546
|
r
|
|
1466
1547
|
).name("array item");
|
|
1467
1548
|
}
|
|
1468
1549
|
function I(t, e, r) {
|
|
1469
|
-
return new
|
|
1550
|
+
return new Se({ name: t, convert: e, expected: r });
|
|
1470
1551
|
}
|
|
1471
|
-
function
|
|
1472
|
-
return new
|
|
1552
|
+
function Ue(t) {
|
|
1553
|
+
return new qt({ expected: t, nonStrict: !0 });
|
|
1473
1554
|
}
|
|
1474
|
-
function
|
|
1475
|
-
return new
|
|
1555
|
+
function Re(t) {
|
|
1556
|
+
return new qt({ expected: t, nonStrict: !1 });
|
|
1476
1557
|
}
|
|
1477
|
-
function
|
|
1478
|
-
return new
|
|
1558
|
+
function Wt(t) {
|
|
1559
|
+
return new Ee(t);
|
|
1479
1560
|
}
|
|
1480
|
-
function
|
|
1481
|
-
return
|
|
1561
|
+
function ut(t) {
|
|
1562
|
+
return Wt({
|
|
1482
1563
|
...t,
|
|
1483
1564
|
float: !1
|
|
1484
1565
|
});
|
|
1485
1566
|
}
|
|
1486
|
-
function
|
|
1487
|
-
return
|
|
1567
|
+
function Ur(t) {
|
|
1568
|
+
return Wt({
|
|
1488
1569
|
...t,
|
|
1489
1570
|
float: !0
|
|
1490
1571
|
});
|
|
1491
1572
|
}
|
|
1492
|
-
function
|
|
1493
|
-
return new
|
|
1573
|
+
function k(t) {
|
|
1574
|
+
return new Ae({ expected: t });
|
|
1494
1575
|
}
|
|
1495
|
-
function
|
|
1576
|
+
function mt(t, e, r = null) {
|
|
1496
1577
|
if (t instanceof p || e && (t = e(t, r), t instanceof p))
|
|
1497
1578
|
return t;
|
|
1498
1579
|
if (t == null)
|
|
1499
|
-
return
|
|
1580
|
+
return rt();
|
|
1500
1581
|
if (Array.isArray(t)) {
|
|
1501
|
-
const n = t.map((s, i) =>
|
|
1582
|
+
const n = t.map((s, i) => mt(s, e, i));
|
|
1502
1583
|
return j(n);
|
|
1503
1584
|
}
|
|
1504
1585
|
if (t.constructor === Object) {
|
|
1505
1586
|
const n = {};
|
|
1506
1587
|
for (const s in t)
|
|
1507
|
-
Object.prototype.hasOwnProperty.call(t, s) && (n[s] =
|
|
1508
|
-
return
|
|
1588
|
+
Object.prototype.hasOwnProperty.call(t, s) && (n[s] = mt(t[s], e, s));
|
|
1589
|
+
return k(n);
|
|
1509
1590
|
}
|
|
1510
|
-
return t instanceof
|
|
1591
|
+
return t instanceof te ? Be({
|
|
1511
1592
|
...t,
|
|
1512
|
-
value:
|
|
1513
|
-
}) :
|
|
1593
|
+
value: mt(t.value, e, "value")
|
|
1594
|
+
}) : Re(t);
|
|
1514
1595
|
}
|
|
1515
|
-
function
|
|
1516
|
-
return
|
|
1596
|
+
function Rr(t) {
|
|
1597
|
+
return k(t).set({
|
|
1517
1598
|
ignoreExtraKeys: !0
|
|
1518
1599
|
});
|
|
1519
1600
|
}
|
|
1520
|
-
function
|
|
1521
|
-
return new
|
|
1601
|
+
function Ht(t) {
|
|
1602
|
+
return new Me({
|
|
1522
1603
|
pattern: t
|
|
1523
1604
|
});
|
|
1524
1605
|
}
|
|
1525
|
-
function
|
|
1526
|
-
return new
|
|
1606
|
+
function jr(t) {
|
|
1607
|
+
return new Te({ expected: t });
|
|
1527
1608
|
}
|
|
1528
|
-
function
|
|
1609
|
+
function je(t) {
|
|
1529
1610
|
return I(
|
|
1530
1611
|
"typeof",
|
|
1531
1612
|
(e) => e === null ? "null" : typeof e,
|
|
1532
1613
|
t
|
|
1533
1614
|
);
|
|
1534
1615
|
}
|
|
1535
|
-
function
|
|
1616
|
+
function Kr(t) {
|
|
1536
1617
|
return I(
|
|
1537
1618
|
"constructor",
|
|
1538
1619
|
(e) => e.constructor,
|
|
1539
1620
|
t
|
|
1540
1621
|
);
|
|
1541
1622
|
}
|
|
1542
|
-
function
|
|
1543
|
-
return
|
|
1623
|
+
function pt() {
|
|
1624
|
+
return je("boolean");
|
|
1544
1625
|
}
|
|
1545
|
-
function
|
|
1546
|
-
return
|
|
1626
|
+
function rt() {
|
|
1627
|
+
return Ue(null);
|
|
1547
1628
|
}
|
|
1548
|
-
function
|
|
1549
|
-
return
|
|
1629
|
+
function Pr() {
|
|
1630
|
+
return ze(rt());
|
|
1550
1631
|
}
|
|
1551
|
-
function
|
|
1552
|
-
return new
|
|
1632
|
+
function Lr(...t) {
|
|
1633
|
+
return new it({
|
|
1553
1634
|
expecteds: t,
|
|
1554
1635
|
type: "or",
|
|
1555
1636
|
pipe: !1
|
|
1556
1637
|
});
|
|
1557
1638
|
}
|
|
1558
|
-
function
|
|
1559
|
-
return new
|
|
1639
|
+
function Vr(...t) {
|
|
1640
|
+
return new it({
|
|
1560
1641
|
expecteds: t,
|
|
1561
1642
|
type: "and",
|
|
1562
1643
|
pipe: !1
|
|
1563
1644
|
});
|
|
1564
1645
|
}
|
|
1565
|
-
function
|
|
1566
|
-
return new
|
|
1646
|
+
function Ke(...t) {
|
|
1647
|
+
return new it({
|
|
1567
1648
|
expecteds: t,
|
|
1568
1649
|
type: "or",
|
|
1569
1650
|
pipe: !0
|
|
1570
1651
|
});
|
|
1571
1652
|
}
|
|
1572
1653
|
function T(...t) {
|
|
1573
|
-
return new
|
|
1654
|
+
return new it({
|
|
1574
1655
|
expecteds: t,
|
|
1575
1656
|
type: "and",
|
|
1576
1657
|
pipe: !0
|
|
1577
1658
|
});
|
|
1578
1659
|
}
|
|
1579
1660
|
function L(t, e) {
|
|
1580
|
-
return e == null ?
|
|
1661
|
+
return e == null ? Ke(rt(), t) : e ? t : rt();
|
|
1581
1662
|
}
|
|
1582
|
-
function
|
|
1583
|
-
const e = typeof t == "number" || R(t) ? t :
|
|
1663
|
+
function Pe(t) {
|
|
1664
|
+
const e = typeof t == "number" || R(t) ? t : ut(t ?? { min: 1 });
|
|
1584
1665
|
return T(
|
|
1585
1666
|
j(),
|
|
1586
1667
|
I("length", (r) => r.length, e)
|
|
1587
1668
|
).name("array length");
|
|
1588
1669
|
}
|
|
1589
|
-
function
|
|
1590
|
-
const e = typeof t == "number" || R(t) ? t :
|
|
1670
|
+
function Fr(t) {
|
|
1671
|
+
const e = typeof t == "number" || R(t) ? t : ut(t ?? { min: 1 });
|
|
1591
1672
|
return T(
|
|
1592
|
-
|
|
1673
|
+
Ht(),
|
|
1593
1674
|
I("length", (r) => r.length, e)
|
|
1594
1675
|
).name("string length");
|
|
1595
1676
|
}
|
|
1596
|
-
function
|
|
1597
|
-
return T(
|
|
1677
|
+
function vr(t) {
|
|
1678
|
+
return T(k(), t);
|
|
1598
1679
|
}
|
|
1599
|
-
function
|
|
1680
|
+
function zr(t) {
|
|
1600
1681
|
return T(j(), t);
|
|
1601
1682
|
}
|
|
1602
|
-
function
|
|
1683
|
+
function Br(t) {
|
|
1603
1684
|
return T(
|
|
1604
|
-
|
|
1685
|
+
k(),
|
|
1605
1686
|
I(
|
|
1606
1687
|
"keys",
|
|
1607
1688
|
(e) => Object.keys(e),
|
|
@@ -1609,9 +1690,9 @@ function vr(t) {
|
|
|
1609
1690
|
)
|
|
1610
1691
|
);
|
|
1611
1692
|
}
|
|
1612
|
-
function
|
|
1693
|
+
function qr(t) {
|
|
1613
1694
|
return T(
|
|
1614
|
-
|
|
1695
|
+
k(),
|
|
1615
1696
|
I(
|
|
1616
1697
|
"values",
|
|
1617
1698
|
(e) => Object.values(e),
|
|
@@ -1619,9 +1700,9 @@ function zr(t) {
|
|
|
1619
1700
|
)
|
|
1620
1701
|
);
|
|
1621
1702
|
}
|
|
1622
|
-
function
|
|
1703
|
+
function Wr(t) {
|
|
1623
1704
|
return T(
|
|
1624
|
-
|
|
1705
|
+
k(),
|
|
1625
1706
|
I(
|
|
1626
1707
|
"entries",
|
|
1627
1708
|
(e) => Object.entries(e),
|
|
@@ -1629,21 +1710,21 @@ function Br(t) {
|
|
|
1629
1710
|
)
|
|
1630
1711
|
);
|
|
1631
1712
|
}
|
|
1632
|
-
function
|
|
1633
|
-
return new
|
|
1713
|
+
function bt(t) {
|
|
1714
|
+
return new Ne({ expected: t });
|
|
1634
1715
|
}
|
|
1635
|
-
function
|
|
1636
|
-
return
|
|
1716
|
+
function Hr(t) {
|
|
1717
|
+
return bt(j([t, z()]));
|
|
1637
1718
|
}
|
|
1638
|
-
function
|
|
1639
|
-
return
|
|
1719
|
+
function Gr(t) {
|
|
1720
|
+
return bt(j([z(), t]));
|
|
1640
1721
|
}
|
|
1641
|
-
function
|
|
1642
|
-
return
|
|
1722
|
+
function Jr(t, e) {
|
|
1723
|
+
return bt(j([t, e]));
|
|
1643
1724
|
}
|
|
1644
|
-
function
|
|
1725
|
+
function Xr(t) {
|
|
1645
1726
|
return T(
|
|
1646
|
-
|
|
1727
|
+
k(),
|
|
1647
1728
|
I(
|
|
1648
1729
|
"keys not null",
|
|
1649
1730
|
(e) => Object.keys(e).filter((r) => e[r] != null),
|
|
@@ -1651,24 +1732,24 @@ function Gr(t) {
|
|
|
1651
1732
|
)
|
|
1652
1733
|
);
|
|
1653
1734
|
}
|
|
1654
|
-
function
|
|
1655
|
-
return new
|
|
1735
|
+
function Le(t) {
|
|
1736
|
+
return new Ce({ expected: t });
|
|
1656
1737
|
}
|
|
1657
|
-
function
|
|
1658
|
-
return
|
|
1738
|
+
function Yr(t) {
|
|
1739
|
+
return Le(Object.values(t));
|
|
1659
1740
|
}
|
|
1660
|
-
function
|
|
1661
|
-
return new
|
|
1741
|
+
function Gt(t, e) {
|
|
1742
|
+
return new Ie({ matcher: e, name: t });
|
|
1662
1743
|
}
|
|
1663
|
-
const
|
|
1664
|
-
function
|
|
1665
|
-
return
|
|
1744
|
+
const Ve = Math.ceil(Date.now() - 10 * 365.25 * 24 * 60 * 60 * 1e3), Fe = Math.ceil(Date.now() + 10 * 365.25 * 24 * 60 * 60 * 1e3);
|
|
1745
|
+
function Y(t) {
|
|
1746
|
+
return ut({
|
|
1666
1747
|
...t,
|
|
1667
|
-
min: t?.min ??
|
|
1668
|
-
max: t?.max ??
|
|
1748
|
+
min: t?.min ?? Ve,
|
|
1749
|
+
max: t?.max ?? Fe
|
|
1669
1750
|
}).name("int date");
|
|
1670
1751
|
}
|
|
1671
|
-
function
|
|
1752
|
+
function ve(t) {
|
|
1672
1753
|
const e = {
|
|
1673
1754
|
min: t?.from?.min ?? t?.common?.min,
|
|
1674
1755
|
max: t?.from?.max ?? t?.common?.max,
|
|
@@ -1682,14 +1763,14 @@ function Pe(t) {
|
|
|
1682
1763
|
};
|
|
1683
1764
|
return T(
|
|
1684
1765
|
j([
|
|
1685
|
-
e.optional ? L(
|
|
1686
|
-
r.optional ? L(
|
|
1766
|
+
e.optional ? L(Y()) : Y(),
|
|
1767
|
+
r.optional ? L(Y()) : Y()
|
|
1687
1768
|
]),
|
|
1688
|
-
|
|
1769
|
+
Gt("min <= max", (n) => n[0] != null && n[1] != null && n[0] > n[1] ? `Expected range to be [min, max], got [${n.join(", ")}]` : !0)
|
|
1689
1770
|
).name("range");
|
|
1690
1771
|
}
|
|
1691
|
-
function
|
|
1692
|
-
return
|
|
1772
|
+
function Qr(t) {
|
|
1773
|
+
return ve({
|
|
1693
1774
|
...t,
|
|
1694
1775
|
common: {
|
|
1695
1776
|
min: new Date(2020, 0, 1).getTime(),
|
|
@@ -1698,25 +1779,25 @@ function Xr(t) {
|
|
|
1698
1779
|
}
|
|
1699
1780
|
}).name("range date");
|
|
1700
1781
|
}
|
|
1701
|
-
function
|
|
1702
|
-
return new
|
|
1782
|
+
function ze(t) {
|
|
1783
|
+
return new Vt({ expected: t });
|
|
1703
1784
|
}
|
|
1704
|
-
function
|
|
1705
|
-
return
|
|
1785
|
+
function Zr() {
|
|
1786
|
+
return Ht(/^[\da-f-]{36}|[\da-f]{32}$/i).name("uuid");
|
|
1706
1787
|
}
|
|
1707
|
-
function
|
|
1708
|
-
return
|
|
1788
|
+
function Be(t) {
|
|
1789
|
+
return k({
|
|
1709
1790
|
[Symbol.toStringTag]: L(z()),
|
|
1710
|
-
loading: L(
|
|
1711
|
-
hasValue: L(
|
|
1791
|
+
loading: L(pt()),
|
|
1792
|
+
hasValue: L(pt()),
|
|
1712
1793
|
value: z(),
|
|
1713
|
-
hasError: L(
|
|
1794
|
+
hasError: L(pt()),
|
|
1714
1795
|
error: z(),
|
|
1715
1796
|
...t
|
|
1716
1797
|
});
|
|
1717
1798
|
}
|
|
1718
|
-
function
|
|
1719
|
-
return t != null && typeof t == "string" && (t = new TextEncoder().encode(t).buffer),
|
|
1799
|
+
function tn(t) {
|
|
1800
|
+
return t != null && typeof t == "string" && (t = new TextEncoder().encode(t).buffer), Gt("array buffer", (e) => {
|
|
1720
1801
|
if (e == null || typeof e != "object" || typeof e.byteLength != "number")
|
|
1721
1802
|
return `Expected array buffer, got "${e}"`;
|
|
1722
1803
|
if (t == null)
|
|
@@ -1729,84 +1810,23 @@ function Qr(t) {
|
|
|
1729
1810
|
return !0;
|
|
1730
1811
|
});
|
|
1731
1812
|
}
|
|
1732
|
-
function
|
|
1733
|
-
const r = qt(t.result, e);
|
|
1734
|
-
return r ? {
|
|
1735
|
-
actualKey: t.actualKey,
|
|
1736
|
-
expectedKey: t.expectedKey,
|
|
1737
|
-
result: r
|
|
1738
|
-
} : null;
|
|
1739
|
-
}
|
|
1740
|
-
function qt(t, e) {
|
|
1741
|
-
if (e ? !t.result : t.result)
|
|
1742
|
-
return null;
|
|
1743
|
-
t.expected instanceof Ft && (e = !e);
|
|
1744
|
-
let r = null;
|
|
1745
|
-
return t.nested && t.nested.forEach((n) => {
|
|
1746
|
-
const s = Fe(n, e);
|
|
1747
|
-
s && (r || (r = []), r.push(s));
|
|
1748
|
-
}), {
|
|
1749
|
-
actual: t.actual,
|
|
1750
|
-
expected: t.expected,
|
|
1751
|
-
result: t.result,
|
|
1752
|
-
cause: t.cause,
|
|
1753
|
-
nested: r,
|
|
1754
|
-
error: t.error
|
|
1755
|
-
};
|
|
1756
|
-
}
|
|
1757
|
-
function ve(t, e) {
|
|
1758
|
-
const r = Wt(t.result, e + " ");
|
|
1759
|
-
return `${e}${t.actualKey == null ? "| " : t.actualKey + ": "}${r}`;
|
|
1760
|
-
}
|
|
1761
|
-
function Wt(t, e) {
|
|
1762
|
-
if (t.result)
|
|
1763
|
-
return t.expected.toString();
|
|
1764
|
-
let r = "";
|
|
1765
|
-
t.nested && (r = t.nested.map((s) => ve(s, e)).join(`
|
|
1766
|
-
`));
|
|
1767
|
-
let n = t.cause || "";
|
|
1768
|
-
return r ? (n || (n = R(t.expected) ? t.expected.toString(t.actual) : ""), `${n}
|
|
1769
|
-
${r}`) : `${n}
|
|
1770
|
-
${e}expected: ${R(t.expected) ? t.expected.toString(t.actual) : t.expected}
|
|
1771
|
-
${e}actual: ${rt(t.actual)}`;
|
|
1772
|
-
}
|
|
1773
|
-
class ze extends Error {
|
|
1774
|
-
constructor(e) {
|
|
1775
|
-
super(e);
|
|
1776
|
-
}
|
|
1777
|
-
}
|
|
1778
|
-
function Zr(t) {
|
|
1779
|
-
return function(r, n) {
|
|
1780
|
-
const s = M(t, r);
|
|
1781
|
-
if (s.error)
|
|
1782
|
-
throw s.error;
|
|
1783
|
-
const i = qt(s, !1);
|
|
1784
|
-
if (!i)
|
|
1785
|
-
return;
|
|
1786
|
-
const o = Wt(i, "");
|
|
1787
|
-
console.log(`[test][check] CheckError:
|
|
1788
|
-
` + o);
|
|
1789
|
-
const u = new ze(o);
|
|
1790
|
-
throw n?.(u), u;
|
|
1791
|
-
};
|
|
1792
|
-
}
|
|
1793
|
-
function St(t) {
|
|
1813
|
+
function Et(t) {
|
|
1794
1814
|
return t.replace(/\W/g, "").toLowerCase();
|
|
1795
1815
|
}
|
|
1796
|
-
function
|
|
1816
|
+
function qe(t) {
|
|
1797
1817
|
return t instanceof URL ? t.searchParams : t instanceof URLSearchParams ? t : typeof t == "string" ? new URL(t).searchParams : typeof window < "u" ? new URL(window.location.href).searchParams : new URLSearchParams();
|
|
1798
1818
|
}
|
|
1799
|
-
function
|
|
1819
|
+
function We(t) {
|
|
1800
1820
|
return t == null ? null : (t = t.toLowerCase().trim(), t === "true" || t === "1" || t === "yes" ? !0 : t === "false" || t === "0" || t === "no" ? !1 : null);
|
|
1801
1821
|
}
|
|
1802
|
-
function
|
|
1822
|
+
function He(t) {
|
|
1803
1823
|
if (t == null)
|
|
1804
1824
|
return null;
|
|
1805
1825
|
t = t.trim();
|
|
1806
1826
|
const e = parseInt(t, 10);
|
|
1807
1827
|
return isNaN(e) ? null : e;
|
|
1808
1828
|
}
|
|
1809
|
-
function
|
|
1829
|
+
function Ge(t) {
|
|
1810
1830
|
if (t == null)
|
|
1811
1831
|
return null;
|
|
1812
1832
|
t = t.trim();
|
|
@@ -1814,134 +1834,167 @@ function He(t) {
|
|
|
1814
1834
|
return isNaN(e) ? null : e;
|
|
1815
1835
|
}
|
|
1816
1836
|
function wt(t, e) {
|
|
1817
|
-
const r =
|
|
1837
|
+
const r = qe(e), n = Et(t);
|
|
1818
1838
|
for (const [s, i] of r.entries())
|
|
1819
|
-
if (
|
|
1839
|
+
if (Et(s) === n)
|
|
1820
1840
|
return i;
|
|
1821
1841
|
return null;
|
|
1822
1842
|
}
|
|
1823
|
-
function tn(t, e) {
|
|
1824
|
-
return qe(wt(t, e));
|
|
1825
|
-
}
|
|
1826
1843
|
function en(t, e) {
|
|
1827
1844
|
return We(wt(t, e));
|
|
1828
1845
|
}
|
|
1829
1846
|
function rn(t, e) {
|
|
1830
1847
|
return He(wt(t, e));
|
|
1831
1848
|
}
|
|
1849
|
+
function nn(t, e) {
|
|
1850
|
+
return Ge(wt(t, e));
|
|
1851
|
+
}
|
|
1832
1852
|
export {
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1853
|
+
Rt as $,
|
|
1854
|
+
fr as A,
|
|
1855
|
+
xt as B,
|
|
1856
|
+
Z as C,
|
|
1837
1857
|
hr as D,
|
|
1838
|
-
|
|
1839
|
-
|
|
1858
|
+
mr as E,
|
|
1859
|
+
$t as F,
|
|
1840
1860
|
pr as G,
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1861
|
+
dr as H,
|
|
1862
|
+
gr as I,
|
|
1863
|
+
ye as J,
|
|
1864
|
+
br as K,
|
|
1865
|
+
wr as L,
|
|
1866
|
+
v as M,
|
|
1867
|
+
Ut as N,
|
|
1868
|
+
yr as O,
|
|
1869
|
+
jt as P,
|
|
1870
|
+
_r as Q,
|
|
1871
|
+
yt as R,
|
|
1872
|
+
ge as S,
|
|
1873
|
+
be as T,
|
|
1854
1874
|
lt as U,
|
|
1855
1875
|
xr as V,
|
|
1856
1876
|
$r as W,
|
|
1857
1877
|
Or as X,
|
|
1858
1878
|
Sr as Y,
|
|
1859
1879
|
Er as Z,
|
|
1860
|
-
|
|
1861
|
-
|
|
1880
|
+
Ar as _,
|
|
1881
|
+
Ze as a,
|
|
1882
|
+
ve as a$,
|
|
1862
1883
|
Mr as a0,
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
Ue as
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1884
|
+
Tr as a1,
|
|
1885
|
+
D as a2,
|
|
1886
|
+
p as a3,
|
|
1887
|
+
R as a4,
|
|
1888
|
+
nt as a5,
|
|
1889
|
+
gt as a6,
|
|
1890
|
+
et as a7,
|
|
1891
|
+
we as a8,
|
|
1892
|
+
Pt as a9,
|
|
1893
|
+
jr as aA,
|
|
1894
|
+
je as aB,
|
|
1895
|
+
Kr as aC,
|
|
1896
|
+
pt as aD,
|
|
1897
|
+
rt as aE,
|
|
1898
|
+
Pr as aF,
|
|
1899
|
+
Lr as aG,
|
|
1900
|
+
Vr as aH,
|
|
1901
|
+
Ke as aI,
|
|
1902
|
+
T as aJ,
|
|
1903
|
+
L as aK,
|
|
1904
|
+
Pe as aL,
|
|
1905
|
+
Fr as aM,
|
|
1906
|
+
vr as aN,
|
|
1907
|
+
zr as aO,
|
|
1908
|
+
Br as aP,
|
|
1909
|
+
qr as aQ,
|
|
1910
|
+
Wr as aR,
|
|
1911
|
+
bt as aS,
|
|
1912
|
+
Hr as aT,
|
|
1913
|
+
Gr as aU,
|
|
1914
|
+
Jr as aV,
|
|
1915
|
+
Xr as aW,
|
|
1916
|
+
Le as aX,
|
|
1917
|
+
Yr as aY,
|
|
1918
|
+
Gt as aZ,
|
|
1919
|
+
Y as a_,
|
|
1920
|
+
Lt as aa,
|
|
1921
|
+
M as ab,
|
|
1922
|
+
zt as ac,
|
|
1923
|
+
X as ad,
|
|
1924
|
+
Cr as ae,
|
|
1925
|
+
_e as af,
|
|
1926
|
+
Ft as ag,
|
|
1927
|
+
xe as ah,
|
|
1928
|
+
vt as ai,
|
|
1929
|
+
st as aj,
|
|
1930
|
+
j as ak,
|
|
1931
|
+
Ir as al,
|
|
1932
|
+
z as am,
|
|
1933
|
+
kr as an,
|
|
1934
|
+
Nr as ao,
|
|
1935
|
+
Dr as ap,
|
|
1936
|
+
I as aq,
|
|
1937
|
+
Ue as ar,
|
|
1938
|
+
Re as as,
|
|
1939
|
+
Wt as at,
|
|
1940
|
+
ut as au,
|
|
1941
|
+
Ur as av,
|
|
1942
|
+
k as aw,
|
|
1943
|
+
mt as ax,
|
|
1944
|
+
Rr as ay,
|
|
1945
|
+
Ht as az,
|
|
1946
|
+
ue as b,
|
|
1947
|
+
Qr as b0,
|
|
1948
|
+
ze as b1,
|
|
1949
|
+
Zr as b2,
|
|
1950
|
+
Be as b3,
|
|
1951
|
+
tn as b4,
|
|
1952
|
+
$e as b5,
|
|
1953
|
+
Bt as b6,
|
|
1954
|
+
Oe as b7,
|
|
1955
|
+
Se as b8,
|
|
1956
|
+
Ie as b9,
|
|
1957
|
+
it as ba,
|
|
1958
|
+
Ce as bb,
|
|
1959
|
+
qt as bc,
|
|
1960
|
+
ke as bd,
|
|
1961
|
+
Vt as be,
|
|
1962
|
+
Ee as bf,
|
|
1963
|
+
Ae as bg,
|
|
1964
|
+
Ne as bh,
|
|
1965
|
+
De as bi,
|
|
1966
|
+
Me as bj,
|
|
1967
|
+
Te as bk,
|
|
1968
|
+
qe as bl,
|
|
1969
|
+
We as bm,
|
|
1970
|
+
He as bn,
|
|
1971
|
+
Ge as bo,
|
|
1972
|
+
wt as bp,
|
|
1973
|
+
en as bq,
|
|
1974
|
+
rn as br,
|
|
1975
|
+
nn as bs,
|
|
1976
|
+
tr as c,
|
|
1977
|
+
ce as d,
|
|
1978
|
+
le as e,
|
|
1979
|
+
nr as f,
|
|
1980
|
+
rr as g,
|
|
1981
|
+
sr as h,
|
|
1982
|
+
kt as i,
|
|
1983
|
+
ir as j,
|
|
1984
|
+
ur as k,
|
|
1985
|
+
or as l,
|
|
1986
|
+
ie as m,
|
|
1987
|
+
er as n,
|
|
1988
|
+
ar as o,
|
|
1989
|
+
cr as p,
|
|
1937
1990
|
Dt as q,
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1991
|
+
It as r,
|
|
1992
|
+
se as s,
|
|
1993
|
+
re as t,
|
|
1941
1994
|
U as u,
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1995
|
+
fe as v,
|
|
1996
|
+
me as w,
|
|
1997
|
+
P as x,
|
|
1998
|
+
J as y,
|
|
1999
|
+
lr as z
|
|
1947
2000
|
};
|