@powerlines/deepkit 0.5.0 → 0.5.1
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/dist/capnp.cjs +48 -47
- package/dist/capnp.js +3 -2
- package/dist/{chunk-TVDEXHJN.js → chunk-4V4LIAN2.js} +8 -9
- package/dist/chunk-7J3ZDT6O.cjs +30 -0
- package/dist/{chunk-U4JSDAXK.js → chunk-B6GTAZEL.js} +8 -7
- package/dist/{chunk-KYFUOGZ6.cjs → chunk-ESVH44QW.cjs} +9 -10
- package/dist/chunk-FFBZWTR7.cjs +63 -0
- package/dist/chunk-GRNJVY7I.cjs +19 -0
- package/dist/{chunk-DGXATHAN.js → chunk-I5CVIT7W.js} +41 -46
- package/dist/chunk-IRPJW6HH.js +16 -0
- package/dist/{chunk-SKYW5GV2.cjs → chunk-J2FVIV7W.cjs} +127 -132
- package/dist/chunk-J4SVRFV4.js +127 -0
- package/dist/{chunk-FEBG7WWO.js → chunk-MEMIQ5AA.js} +1 -3
- package/dist/chunk-ORA4UQMU.cjs +2 -0
- package/dist/chunk-OULCUN6I.js +1 -0
- package/dist/chunk-PKLLVKY2.cjs +193 -0
- package/dist/chunk-QLKLDV3V.cjs +135 -0
- package/dist/chunk-U5O6DHJ2.js +187 -0
- package/dist/{chunk-JHEBLHYK.cjs → chunk-VMRRVNO2.cjs} +2 -4
- package/dist/{chunk-55HOZO7D.cjs → chunk-VWKKT7CM.cjs} +5 -7
- package/dist/chunk-XGQQM64U.js +8 -0
- package/dist/{chunk-BTXPY3B4.js → chunk-YQQIT5YX.js} +2 -4
- package/dist/esbuild-plugin.cjs +5 -5
- package/dist/esbuild-plugin.d.cts +3 -2
- package/dist/esbuild-plugin.d.ts +3 -2
- package/dist/esbuild-plugin.js +4 -4
- package/dist/index.cjs +69 -69
- package/dist/index.js +10 -12
- package/dist/reflect-type.cjs +7 -6
- package/dist/reflect-type.js +6 -5
- package/dist/resolve-reflections.cjs +3 -3
- package/dist/resolve-reflections.js +2 -2
- package/dist/transformer.cjs +4 -4
- package/dist/transformer.js +2 -2
- package/dist/transpile.cjs +4 -4
- package/dist/transpile.js +3 -3
- package/dist/types.cjs +1 -2
- package/dist/types.js +1 -2
- package/dist/utilities.cjs +10 -9
- package/dist/utilities.js +3 -2
- package/dist/{chunk-YKFG2BZQ.cjs → vendor/chunk-5NPGWGPO.cjs} +0 -6
- package/dist/vendor/{chunk-BLN7QVCP.js → chunk-7LAB3COT.js} +7 -154
- package/dist/vendor/chunk-IOMA7ABE.js +359 -0
- package/dist/vendor/chunk-K5KCTNDL.cjs +2678 -0
- package/dist/vendor/chunk-L3KIZV6P.js +2664 -0
- package/dist/vendor/chunk-M3FJ3QXG.cjs +377 -0
- package/dist/vendor/chunk-SHUYVCID.js +4 -0
- package/dist/vendor/chunk-USNT2KNT.cjs +6 -0
- package/dist/{chunk-4WJJKR53.js → vendor/chunk-ZDFKNN7Y.cjs} +281 -322
- package/dist/vendor/compiler.cjs +12 -13
- package/dist/vendor/compiler.js +2 -5
- package/dist/vendor/config.cjs +9 -10
- package/dist/vendor/config.js +1 -5
- package/dist/vendor/core.cjs +130 -131
- package/dist/vendor/core.js +2 -5
- package/dist/vendor/index.cjs +14 -22
- package/dist/vendor/index.js +3 -11
- package/dist/vendor/type-spec.cjs +5 -6
- package/dist/vendor/type-spec.js +2 -5
- package/dist/vendor/type.cjs +631 -758
- package/dist/vendor/type.js +15 -138
- package/package.json +4 -4
- package/dist/chunk-2V4ET57D.js +0 -6954
- package/dist/chunk-6ETLMANX.js +0 -3472
- package/dist/chunk-6IQVU53O.cjs +0 -24
- package/dist/chunk-6OXPIOZY.cjs +0 -43
- package/dist/chunk-7WAH4JD3.js +0 -115
- package/dist/chunk-B4PTD5KQ.js +0 -4
- package/dist/chunk-ITQKPDCW.cjs +0 -3859
- package/dist/chunk-LBHO5BRF.js +0 -2251
- package/dist/chunk-OYRIJX67.cjs +0 -3487
- package/dist/chunk-PANPZ6S6.cjs +0 -6
- package/dist/chunk-QPSZUUB6.cjs +0 -2259
- package/dist/chunk-QQ7GKXIS.js +0 -43
- package/dist/chunk-SA3DCC4M.cjs +0 -6968
- package/dist/chunk-WVKPC33H.cjs +0 -49
- package/dist/chunk-YUO4MCOI.js +0 -18
- package/dist/vendor/chunk-5BKT4CS5.js +0 -28
- package/dist/vendor/chunk-BDXVTHBY.cjs +0 -3859
- package/dist/vendor/chunk-EQXMWOHO.cjs +0 -115
- package/dist/vendor/chunk-MCNMRQDT.js +0 -3513
- package/dist/vendor/chunk-MO4O4UYI.cjs +0 -42
- package/dist/vendor/chunk-RH4YMONA.js +0 -7064
- package/dist/vendor/chunk-RZKB5IQZ.cjs +0 -3531
- package/dist/vendor/chunk-WOXMCJJU.cjs +0 -7078
- package/dist/vendor/type-compiler/compiler.cjs +0 -46
- package/dist/vendor/type-compiler/compiler.d.cts +0 -1
- package/dist/vendor/type-compiler/compiler.d.ts +0 -1
- package/dist/vendor/type-compiler/compiler.js +0 -7
- package/dist/vendor/type-compiler/config.cjs +0 -36
- package/dist/vendor/type-compiler/config.d.cts +0 -6
- package/dist/vendor/type-compiler/config.d.ts +0 -6
- package/dist/vendor/type-compiler/config.js +0 -5
- package/dist/vendor/type-compiler/index.cjs +0 -108
- package/dist/vendor/type-compiler/index.d.cts +0 -1
- package/dist/vendor/type-compiler/index.d.ts +0 -1
- package/dist/vendor/type-compiler/index.js +0 -67
package/dist/vendor/type.cjs
CHANGED
|
@@ -1,26 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkZDFKNN7Y_cjs = require('./chunk-ZDFKNN7Y.cjs');
|
|
4
|
+
var chunk5NPGWGPO_cjs = require('./chunk-5NPGWGPO.cjs');
|
|
5
|
+
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
6
6
|
var buffer = require('buffer');
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
|
|
11
|
-
var crypto__default = /*#__PURE__*/_interopDefault(crypto);
|
|
12
|
-
|
|
13
|
-
// src/vendor/type.ts
|
|
14
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
15
|
-
|
|
16
|
-
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/index.js
|
|
17
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
18
|
-
|
|
19
|
-
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/change-detector.js
|
|
20
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
7
|
+
var uuid$1 = require('uuid');
|
|
21
8
|
|
|
22
9
|
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/changes.js
|
|
23
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
24
10
|
var __\u03A9Pick = [
|
|
25
11
|
"T",
|
|
26
12
|
"K",
|
|
@@ -61,15 +47,15 @@ var __\u03A9ChangesInterface = [
|
|
|
61
47
|
];
|
|
62
48
|
var Changes = class {
|
|
63
49
|
static {
|
|
64
|
-
|
|
50
|
+
chunkUSNT2KNT_cjs.__name(this, "Changes");
|
|
65
51
|
}
|
|
66
52
|
constructor(changes) {
|
|
67
53
|
this.empty = true;
|
|
68
54
|
this.fieldNames = [];
|
|
69
55
|
if (changes) {
|
|
70
|
-
this.$set =
|
|
71
|
-
this.$unset =
|
|
72
|
-
this.$inc =
|
|
56
|
+
this.$set = chunkZDFKNN7Y_cjs.empty(changes.$set) ? void 0 : changes.$set;
|
|
57
|
+
this.$unset = chunkZDFKNN7Y_cjs.empty(changes.$unset) ? void 0 : changes.$unset;
|
|
58
|
+
this.$inc = chunkZDFKNN7Y_cjs.empty(changes.$inc) ? void 0 : changes.$inc;
|
|
73
59
|
this.detectEmpty();
|
|
74
60
|
}
|
|
75
61
|
}
|
|
@@ -90,14 +76,14 @@ var Changes = class {
|
|
|
90
76
|
this.empty = this.$set === void 0 && this.$unset === void 0 && this.$inc === void 0;
|
|
91
77
|
}
|
|
92
78
|
replaceSet($set) {
|
|
93
|
-
this.$set =
|
|
79
|
+
this.$set = chunkZDFKNN7Y_cjs.empty($set) ? void 0 : $set;
|
|
94
80
|
for (const i in $set) {
|
|
95
81
|
if (!this.fieldNames.includes(i)) this.fieldNames.push(i);
|
|
96
82
|
}
|
|
97
83
|
this.detectEmpty();
|
|
98
84
|
}
|
|
99
85
|
mergeSet($set) {
|
|
100
|
-
if (
|
|
86
|
+
if (chunkZDFKNN7Y_cjs.empty($set)) return;
|
|
101
87
|
if (!this.$set) this.$set = {};
|
|
102
88
|
for (const i in $set) {
|
|
103
89
|
if (!this.fieldNames.includes(i)) this.fieldNames.push(i);
|
|
@@ -168,7 +154,7 @@ Changes.__type = [
|
|
|
168
154
|
];
|
|
169
155
|
var ItemChanges = class extends Changes {
|
|
170
156
|
static {
|
|
171
|
-
|
|
157
|
+
chunkUSNT2KNT_cjs.__name(this, "ItemChanges");
|
|
172
158
|
}
|
|
173
159
|
constructor(changes = {}, item) {
|
|
174
160
|
super(changes);
|
|
@@ -209,7 +195,7 @@ ItemChanges.__type = [
|
|
|
209
195
|
var changeSetSymbol = Symbol("changeSet");
|
|
210
196
|
var AtomicChangeInstance = class {
|
|
211
197
|
static {
|
|
212
|
-
|
|
198
|
+
chunkUSNT2KNT_cjs.__name(this, "AtomicChangeInstance");
|
|
213
199
|
}
|
|
214
200
|
constructor(object) {
|
|
215
201
|
this.object = object;
|
|
@@ -254,32 +240,19 @@ function atomicChange(object) {
|
|
|
254
240
|
]
|
|
255
241
|
], new AtomicChangeInstance(object);
|
|
256
242
|
}
|
|
257
|
-
|
|
243
|
+
chunkUSNT2KNT_cjs.__name(atomicChange, "atomicChange");
|
|
258
244
|
atomicChange.__type = [
|
|
259
245
|
"object",
|
|
260
246
|
"atomicChange",
|
|
261
247
|
'P"2!"/"'
|
|
262
248
|
];
|
|
263
249
|
|
|
264
|
-
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/snapshot.js
|
|
265
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
266
|
-
|
|
267
|
-
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/reflection/type.js
|
|
268
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
269
|
-
|
|
270
|
-
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/reflection/reflection.js
|
|
271
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
272
|
-
|
|
273
|
-
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/reflection/processor.js
|
|
274
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
275
|
-
|
|
276
250
|
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/debug.js
|
|
277
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
278
251
|
function isDebug(level = 1) {
|
|
279
252
|
const expected = "deepkit" + (level > 1 ? "+".repeat(level - 1) : "");
|
|
280
253
|
return "undefined" !== typeof process && "string" === typeof process.env.DEBUG && process.env.DEBUG.includes(expected);
|
|
281
254
|
}
|
|
282
|
-
|
|
255
|
+
chunkUSNT2KNT_cjs.__name(isDebug, "isDebug");
|
|
283
256
|
isDebug.__type = [
|
|
284
257
|
"level",
|
|
285
258
|
() => 1,
|
|
@@ -291,7 +264,7 @@ function debug(...message) {
|
|
|
291
264
|
console.debug(...message);
|
|
292
265
|
}
|
|
293
266
|
}
|
|
294
|
-
|
|
267
|
+
chunkUSNT2KNT_cjs.__name(debug, "debug");
|
|
295
268
|
debug.__type = [
|
|
296
269
|
"message",
|
|
297
270
|
"debug",
|
|
@@ -302,18 +275,14 @@ function debug2(...message) {
|
|
|
302
275
|
console.debug(...message);
|
|
303
276
|
}
|
|
304
277
|
}
|
|
305
|
-
|
|
278
|
+
chunkUSNT2KNT_cjs.__name(debug2, "debug2");
|
|
306
279
|
debug2.__type = [
|
|
307
280
|
"message",
|
|
308
281
|
"debug2",
|
|
309
282
|
'P"@2!$/"'
|
|
310
283
|
];
|
|
311
284
|
|
|
312
|
-
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/decorator.js
|
|
313
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
314
|
-
|
|
315
285
|
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/decorator-builder.js
|
|
316
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
317
286
|
var __\u03A9Omit = [
|
|
318
287
|
"T",
|
|
319
288
|
"K",
|
|
@@ -345,9 +314,9 @@ function __assignType(fn, args) {
|
|
|
345
314
|
fn.__type = args;
|
|
346
315
|
return fn;
|
|
347
316
|
}
|
|
348
|
-
|
|
317
|
+
chunkUSNT2KNT_cjs.__name(__assignType, "__assignType");
|
|
349
318
|
var __\u03A9ClassDecoratorFn = [
|
|
350
|
-
() =>
|
|
319
|
+
() => chunkZDFKNN7Y_cjs.__ΩAbstractClassType,
|
|
351
320
|
"classType",
|
|
352
321
|
"property",
|
|
353
322
|
"parameterIndexOrDescriptor",
|
|
@@ -390,7 +359,7 @@ function createFluidDecorator(api, modifier, collapse, returnCollapse = false, f
|
|
|
390
359
|
value: void 0
|
|
391
360
|
});
|
|
392
361
|
Object.defineProperty(fn, "_data", {
|
|
393
|
-
get: /* @__PURE__ */
|
|
362
|
+
get: /* @__PURE__ */ chunkUSNT2KNT_cjs.__name(() => {
|
|
394
363
|
return collapse(modifier, Object);
|
|
395
364
|
}, "get")
|
|
396
365
|
});
|
|
@@ -413,7 +382,7 @@ function createFluidDecorator(api, modifier, collapse, returnCollapse = false, f
|
|
|
413
382
|
Object.defineProperty(fn, name, {
|
|
414
383
|
configurable: true,
|
|
415
384
|
enumerable: false,
|
|
416
|
-
get: /* @__PURE__ */
|
|
385
|
+
get: /* @__PURE__ */ chunkUSNT2KNT_cjs.__name(() => {
|
|
417
386
|
return createFluidDecorator(api, [
|
|
418
387
|
...modifier,
|
|
419
388
|
{
|
|
@@ -426,7 +395,7 @@ function createFluidDecorator(api, modifier, collapse, returnCollapse = false, f
|
|
|
426
395
|
Object.defineProperty(fn, name, {
|
|
427
396
|
configurable: true,
|
|
428
397
|
enumerable: false,
|
|
429
|
-
value: __assignType(/* @__PURE__ */
|
|
398
|
+
value: __assignType(/* @__PURE__ */ chunkUSNT2KNT_cjs.__name(function fn2(...args) {
|
|
430
399
|
return createFluidDecorator(api, [
|
|
431
400
|
...modifier,
|
|
432
401
|
{
|
|
@@ -447,7 +416,7 @@ function createFluidDecorator(api, modifier, collapse, returnCollapse = false, f
|
|
|
447
416
|
}
|
|
448
417
|
return fn;
|
|
449
418
|
}
|
|
450
|
-
|
|
419
|
+
chunkUSNT2KNT_cjs.__name(createFluidDecorator, "createFluidDecorator");
|
|
451
420
|
createFluidDecorator.__type = [
|
|
452
421
|
"api",
|
|
453
422
|
"name",
|
|
@@ -506,7 +475,7 @@ function mergeDecorator(...args) {
|
|
|
506
475
|
for (const method of arg._methods) {
|
|
507
476
|
if (!dualDecorator.includes(method)) {
|
|
508
477
|
Object.defineProperty(res, method, {
|
|
509
|
-
get: __assignType(/* @__PURE__ */
|
|
478
|
+
get: __assignType(/* @__PURE__ */ chunkUSNT2KNT_cjs.__name(function get() {
|
|
510
479
|
return arg[method];
|
|
511
480
|
}, "get"), [
|
|
512
481
|
"get",
|
|
@@ -542,7 +511,7 @@ function mergeDecorator(...args) {
|
|
|
542
511
|
Object.defineProperty(fn, name, {
|
|
543
512
|
configurable: true,
|
|
544
513
|
enumerable: false,
|
|
545
|
-
get: /* @__PURE__ */
|
|
514
|
+
get: /* @__PURE__ */ chunkUSNT2KNT_cjs.__name(() => {
|
|
546
515
|
return fluid([
|
|
547
516
|
...modifier,
|
|
548
517
|
{
|
|
@@ -555,7 +524,7 @@ function mergeDecorator(...args) {
|
|
|
555
524
|
Object.defineProperty(fn, name, {
|
|
556
525
|
configurable: true,
|
|
557
526
|
enumerable: false,
|
|
558
|
-
value: __assignType(/* @__PURE__ */
|
|
527
|
+
value: __assignType(/* @__PURE__ */ chunkUSNT2KNT_cjs.__name(function fn2(...args2) {
|
|
559
528
|
return fluid([
|
|
560
529
|
...modifier,
|
|
561
530
|
{
|
|
@@ -574,7 +543,7 @@ function mergeDecorator(...args) {
|
|
|
574
543
|
}
|
|
575
544
|
return fn;
|
|
576
545
|
}
|
|
577
|
-
|
|
546
|
+
chunkUSNT2KNT_cjs.__name(fluid, "fluid");
|
|
578
547
|
fluid.__type = [
|
|
579
548
|
"name",
|
|
580
549
|
"args",
|
|
@@ -603,7 +572,7 @@ function mergeDecorator(...args) {
|
|
|
603
572
|
continue loop;
|
|
604
573
|
}
|
|
605
574
|
}
|
|
606
|
-
throw new Error(`Decorator '${mod.name}' can not be used on class property ${
|
|
575
|
+
throw new Error(`Decorator '${mod.name}' can not be used on class property ${chunkZDFKNN7Y_cjs.getClassName(target)}.${property}`);
|
|
607
576
|
}
|
|
608
577
|
} else {
|
|
609
578
|
loop: for (const mod of modifier) {
|
|
@@ -618,12 +587,12 @@ function mergeDecorator(...args) {
|
|
|
618
587
|
continue loop;
|
|
619
588
|
}
|
|
620
589
|
}
|
|
621
|
-
throw new Error(`Decorator '${mod.name}' can not be used on class ${
|
|
590
|
+
throw new Error(`Decorator '${mod.name}' can not be used on class ${chunkZDFKNN7Y_cjs.getClassName(target)}`);
|
|
622
591
|
}
|
|
623
592
|
}
|
|
624
593
|
return results;
|
|
625
594
|
}
|
|
626
|
-
|
|
595
|
+
chunkUSNT2KNT_cjs.__name(collapse, "collapse");
|
|
627
596
|
collapse.__type = [
|
|
628
597
|
"name",
|
|
629
598
|
"args",
|
|
@@ -637,7 +606,7 @@ function mergeDecorator(...args) {
|
|
|
637
606
|
];
|
|
638
607
|
return fluid([], collapse);
|
|
639
608
|
}
|
|
640
|
-
|
|
609
|
+
chunkUSNT2KNT_cjs.__name(mergeDecorator, "mergeDecorator");
|
|
641
610
|
mergeDecorator.__type = [
|
|
642
611
|
"args",
|
|
643
612
|
() => __\u03A9Merge,
|
|
@@ -651,7 +620,7 @@ mergeDecorator.__type = [
|
|
|
651
620
|
var __\u03A9ClassApiTypeInterface = [
|
|
652
621
|
"T",
|
|
653
622
|
"t",
|
|
654
|
-
() =>
|
|
623
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
655
624
|
"classType",
|
|
656
625
|
"property",
|
|
657
626
|
"parameterIndexOrDescriptor",
|
|
@@ -662,20 +631,20 @@ var __\u03A9ClassApiTypeInterface = [
|
|
|
662
631
|
];
|
|
663
632
|
var __\u03A9APIClass = [
|
|
664
633
|
"T",
|
|
665
|
-
() =>
|
|
634
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
666
635
|
() => __\u03A9ClassApiTypeInterface,
|
|
667
636
|
"APIClass",
|
|
668
637
|
'b!e!!o#"o""w$y'
|
|
669
638
|
];
|
|
670
639
|
var __\u03A9ExtractClass = [
|
|
671
640
|
"T",
|
|
672
|
-
() =>
|
|
641
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
673
642
|
"ExtractClass",
|
|
674
643
|
`l:e"!R!RPde#!h!!o""qk#'QRb!Pde"!p)w#y`
|
|
675
644
|
];
|
|
676
645
|
var __\u03A9ExtractApiDataType = [
|
|
677
646
|
"T",
|
|
678
|
-
() =>
|
|
647
|
+
() => chunkZDFKNN7Y_cjs.__ΩAbstractClassType,
|
|
679
648
|
"t",
|
|
680
649
|
"ExtractApiDataType",
|
|
681
650
|
`lte"!R!RPde#!Ph"!4#Mqk#'QRPde#!p)Re"!R!RPde#!Ph"!4#MqkCGQRPde%!pIRPde#!h!!o""qk;[QRb!Pde"!pcw$y`
|
|
@@ -715,13 +684,13 @@ function createClassDecoratorContext(apiType) {
|
|
|
715
684
|
map.set(target, api);
|
|
716
685
|
if (target === Object) return api.t;
|
|
717
686
|
}
|
|
718
|
-
|
|
687
|
+
chunkUSNT2KNT_cjs.__name(collapse, "collapse");
|
|
719
688
|
collapse.__type = [
|
|
720
689
|
"name",
|
|
721
690
|
"args",
|
|
722
691
|
"\u03A9",
|
|
723
692
|
"modifier",
|
|
724
|
-
() =>
|
|
693
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
725
694
|
"target",
|
|
726
695
|
"collapse",
|
|
727
696
|
`PP&4!"4"8"4#8MF2$n%2&"/'`
|
|
@@ -730,7 +699,7 @@ function createClassDecoratorContext(apiType) {
|
|
|
730
699
|
Object.defineProperty(fn, "_fetch", {
|
|
731
700
|
configurable: true,
|
|
732
701
|
enumerable: false,
|
|
733
|
-
get: /* @__PURE__ */
|
|
702
|
+
get: /* @__PURE__ */ chunkUSNT2KNT_cjs.__name(() => {
|
|
734
703
|
return __assignType((target) => {
|
|
735
704
|
const api = map.get(target);
|
|
736
705
|
return api ? api.t : void 0;
|
|
@@ -744,7 +713,7 @@ function createClassDecoratorContext(apiType) {
|
|
|
744
713
|
fn._type = "classDecorator";
|
|
745
714
|
return fn;
|
|
746
715
|
}
|
|
747
|
-
|
|
716
|
+
chunkUSNT2KNT_cjs.__name(createClassDecoratorContext, "createClassDecoratorContext");
|
|
748
717
|
createClassDecoratorContext.__type = [
|
|
749
718
|
"apiType",
|
|
750
719
|
() => __\u03A9ClassDecoratorResult,
|
|
@@ -754,7 +723,7 @@ createClassDecoratorContext.__type = [
|
|
|
754
723
|
var __\u03A9PropertyApiTypeInterface = [
|
|
755
724
|
"T",
|
|
756
725
|
"t",
|
|
757
|
-
() =>
|
|
726
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
758
727
|
"target",
|
|
759
728
|
"property",
|
|
760
729
|
"parameterIndexOrDescriptor",
|
|
@@ -765,7 +734,7 @@ var __\u03A9PropertyApiTypeInterface = [
|
|
|
765
734
|
];
|
|
766
735
|
var __\u03A9APIProperty = [
|
|
767
736
|
"T",
|
|
768
|
-
() =>
|
|
737
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
769
738
|
() => __\u03A9PropertyApiTypeInterface,
|
|
770
739
|
"APIProperty",
|
|
771
740
|
'b!e!!o#"o""w$y'
|
|
@@ -825,7 +794,7 @@ function createPropertyDecoratorContext(apiType) {
|
|
|
825
794
|
map.set(index, api);
|
|
826
795
|
if (target === Object) return api.t;
|
|
827
796
|
}
|
|
828
|
-
|
|
797
|
+
chunkUSNT2KNT_cjs.__name(collapse, "collapse");
|
|
829
798
|
collapse.__type = [
|
|
830
799
|
"name",
|
|
831
800
|
"args",
|
|
@@ -841,7 +810,7 @@ function createPropertyDecoratorContext(apiType) {
|
|
|
841
810
|
Object.defineProperty(fn, "_fetch", {
|
|
842
811
|
configurable: true,
|
|
843
812
|
enumerable: false,
|
|
844
|
-
get: /* @__PURE__ */
|
|
813
|
+
get: /* @__PURE__ */ chunkUSNT2KNT_cjs.__name(() => {
|
|
845
814
|
return __assignType((target, property, parameterIndexOrDescriptor) => {
|
|
846
815
|
const map = targetMap.get(target);
|
|
847
816
|
const secondIndex = "number" === typeof parameterIndexOrDescriptor ? parameterIndexOrDescriptor : "";
|
|
@@ -860,7 +829,7 @@ function createPropertyDecoratorContext(apiType) {
|
|
|
860
829
|
fn._type = "propertyDecorator";
|
|
861
830
|
return fn;
|
|
862
831
|
}
|
|
863
|
-
|
|
832
|
+
chunkUSNT2KNT_cjs.__name(createPropertyDecoratorContext, "createPropertyDecoratorContext");
|
|
864
833
|
createPropertyDecoratorContext.__type = [
|
|
865
834
|
"apiType",
|
|
866
835
|
() => __\u03A9PropertyDecoratorResult,
|
|
@@ -913,7 +882,7 @@ function createFreeDecoratorContext(apiType) {
|
|
|
913
882
|
if (api.onDecorator && target) api.onDecorator(target, property, parameterIndexOrDescriptor);
|
|
914
883
|
return api.t;
|
|
915
884
|
}
|
|
916
|
-
|
|
885
|
+
chunkUSNT2KNT_cjs.__name(collapse, "collapse");
|
|
917
886
|
collapse.__type = [
|
|
918
887
|
"name",
|
|
919
888
|
"args",
|
|
@@ -934,7 +903,7 @@ function createFreeDecoratorContext(apiType) {
|
|
|
934
903
|
});
|
|
935
904
|
return fn;
|
|
936
905
|
}
|
|
937
|
-
|
|
906
|
+
chunkUSNT2KNT_cjs.__name(createFreeDecoratorContext, "createFreeDecoratorContext");
|
|
938
907
|
createFreeDecoratorContext.__type = [
|
|
939
908
|
"apiType",
|
|
940
909
|
() => __\u03A9FreeDecoratorResult,
|
|
@@ -946,7 +915,7 @@ function isDecoratorContext(context, fn) {
|
|
|
946
915
|
if (Object.getOwnPropertyDescriptor(fn, symbol)) return true;
|
|
947
916
|
return false;
|
|
948
917
|
}
|
|
949
|
-
|
|
918
|
+
chunkUSNT2KNT_cjs.__name(isDecoratorContext, "isDecoratorContext");
|
|
950
919
|
isDecoratorContext.__type = [
|
|
951
920
|
() => __\u03A9FreeDecoratorResult,
|
|
952
921
|
"context",
|
|
@@ -955,9 +924,6 @@ isDecoratorContext.__type = [
|
|
|
955
924
|
"isDecoratorContext",
|
|
956
925
|
'P"o!"2"Pu#2$!/%'
|
|
957
926
|
];
|
|
958
|
-
|
|
959
|
-
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/core.js
|
|
960
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
961
927
|
var __\u03A9ArrayBufferLike = [
|
|
962
928
|
() => __\u03A9ArrayBufferTypes,
|
|
963
929
|
() => __\u03A9ArrayBufferTypes,
|
|
@@ -984,7 +950,7 @@ exports.UnpopulatedCheck = void 0;
|
|
|
984
950
|
})(exports.UnpopulatedCheck || (exports.UnpopulatedCheck = {}));
|
|
985
951
|
var unpopulatedSymbol = Symbol("unpopulated");
|
|
986
952
|
var __\u03A9TypeSettings = [
|
|
987
|
-
() =>
|
|
953
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
988
954
|
"registeredEntities",
|
|
989
955
|
() => __\u03A9UnpopulatedCheck,
|
|
990
956
|
"unpopulatedCheck",
|
|
@@ -1016,7 +982,7 @@ var __\u03A9TypedArray = [
|
|
|
1016
982
|
function nodeBufferToTypedArray(buf, type) {
|
|
1017
983
|
return new type(buf.buffer, buf.byteOffset, buf.length / type.BYTES_PER_ELEMENT);
|
|
1018
984
|
}
|
|
1019
|
-
|
|
985
|
+
chunkUSNT2KNT_cjs.__name(nodeBufferToTypedArray, "nodeBufferToTypedArray");
|
|
1020
986
|
nodeBufferToTypedArray.__type = [
|
|
1021
987
|
() => buffer.Buffer,
|
|
1022
988
|
"buf",
|
|
@@ -1034,7 +1000,7 @@ function base64ToUint8ArrayAtoB(base64) {
|
|
|
1034
1000
|
}
|
|
1035
1001
|
return array;
|
|
1036
1002
|
}
|
|
1037
|
-
|
|
1003
|
+
chunkUSNT2KNT_cjs.__name(base64ToUint8ArrayAtoB, "base64ToUint8ArrayAtoB");
|
|
1038
1004
|
base64ToUint8ArrayAtoB.__type = [
|
|
1039
1005
|
"base64",
|
|
1040
1006
|
"base64ToUint8ArrayAtoB",
|
|
@@ -1046,7 +1012,7 @@ function base64ToTypedArray(base64, type) {
|
|
|
1046
1012
|
}
|
|
1047
1013
|
return nodeBufferToTypedArray(buffer.Buffer.from(base64, "base64"), type);
|
|
1048
1014
|
}
|
|
1049
|
-
|
|
1015
|
+
chunkUSNT2KNT_cjs.__name(base64ToTypedArray, "base64ToTypedArray");
|
|
1050
1016
|
base64ToTypedArray.__type = [
|
|
1051
1017
|
"base64",
|
|
1052
1018
|
() => __\u03A9TypedArrayClassType,
|
|
@@ -1060,7 +1026,7 @@ function base64ToArrayBuffer(base64) {
|
|
|
1060
1026
|
}
|
|
1061
1027
|
return nodeBufferToArrayBuffer(buffer.Buffer.from(base64, "base64"));
|
|
1062
1028
|
}
|
|
1063
|
-
|
|
1029
|
+
chunkUSNT2KNT_cjs.__name(base64ToArrayBuffer, "base64ToArrayBuffer");
|
|
1064
1030
|
base64ToArrayBuffer.__type = [
|
|
1065
1031
|
"base64",
|
|
1066
1032
|
"base64ToArrayBuffer",
|
|
@@ -1070,7 +1036,7 @@ function nodeBufferToArrayBuffer(buf) {
|
|
|
1070
1036
|
if (ArrayBuffer.isView(buf)) return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
|
|
1071
1037
|
return buf;
|
|
1072
1038
|
}
|
|
1073
|
-
|
|
1039
|
+
chunkUSNT2KNT_cjs.__name(nodeBufferToArrayBuffer, "nodeBufferToArrayBuffer");
|
|
1074
1040
|
nodeBufferToArrayBuffer.__type = [
|
|
1075
1041
|
"buf",
|
|
1076
1042
|
"nodeBufferToArrayBuffer",
|
|
@@ -1080,7 +1046,7 @@ function typedArrayToBuffer(typedArray) {
|
|
|
1080
1046
|
if (typedArray instanceof buffer.Buffer) return typedArray;
|
|
1081
1047
|
return buffer.Buffer.from(typedArray.buffer, typedArray.byteOffset, typedArray.byteLength);
|
|
1082
1048
|
}
|
|
1083
|
-
|
|
1049
|
+
chunkUSNT2KNT_cjs.__name(typedArrayToBuffer, "typedArrayToBuffer");
|
|
1084
1050
|
typedArrayToBuffer.__type = [
|
|
1085
1051
|
() => __\u03A9TypedArray,
|
|
1086
1052
|
"typedArray",
|
|
@@ -1091,7 +1057,7 @@ typedArrayToBuffer.__type = [
|
|
|
1091
1057
|
function arrayBufferToBase64(arrayBuffer) {
|
|
1092
1058
|
return buffer.Buffer.from(arrayBuffer).toString("base64");
|
|
1093
1059
|
}
|
|
1094
|
-
|
|
1060
|
+
chunkUSNT2KNT_cjs.__name(arrayBufferToBase64, "arrayBufferToBase64");
|
|
1095
1061
|
arrayBufferToBase64.__type = [
|
|
1096
1062
|
"arrayBuffer",
|
|
1097
1063
|
"arrayBufferToBase64",
|
|
@@ -1100,7 +1066,7 @@ arrayBufferToBase64.__type = [
|
|
|
1100
1066
|
function typedArrayToBase64(typedArray) {
|
|
1101
1067
|
return typedArrayToBuffer(typedArray).toString("base64");
|
|
1102
1068
|
}
|
|
1103
|
-
|
|
1069
|
+
chunkUSNT2KNT_cjs.__name(typedArrayToBase64, "typedArrayToBase64");
|
|
1104
1070
|
typedArrayToBase64.__type = [
|
|
1105
1071
|
() => __\u03A9TypedArray,
|
|
1106
1072
|
"typedArray",
|
|
@@ -1110,7 +1076,7 @@ typedArrayToBase64.__type = [
|
|
|
1110
1076
|
function arrayBufferFrom(data, encoding) {
|
|
1111
1077
|
return nodeBufferToArrayBuffer(buffer.Buffer.from(data, encoding));
|
|
1112
1078
|
}
|
|
1113
|
-
|
|
1079
|
+
chunkUSNT2KNT_cjs.__name(arrayBufferFrom, "arrayBufferFrom");
|
|
1114
1080
|
arrayBufferFrom.__type = [
|
|
1115
1081
|
"data",
|
|
1116
1082
|
"encoding",
|
|
@@ -1120,7 +1086,7 @@ arrayBufferFrom.__type = [
|
|
|
1120
1086
|
function arrayBufferTo(arrayBuffer, encoding) {
|
|
1121
1087
|
return buffer.Buffer.from(arrayBuffer).toString(encoding);
|
|
1122
1088
|
}
|
|
1123
|
-
|
|
1089
|
+
chunkUSNT2KNT_cjs.__name(arrayBufferTo, "arrayBufferTo");
|
|
1124
1090
|
arrayBufferTo.__type = [
|
|
1125
1091
|
"arrayBuffer",
|
|
1126
1092
|
"utf8",
|
|
@@ -1134,7 +1100,7 @@ arrayBufferTo.__type = [
|
|
|
1134
1100
|
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/decorator.js
|
|
1135
1101
|
var TDecorator = class TDecorator2 {
|
|
1136
1102
|
static {
|
|
1137
|
-
|
|
1103
|
+
chunkUSNT2KNT_cjs.__name(this, "TDecorator");
|
|
1138
1104
|
}
|
|
1139
1105
|
constructor() {
|
|
1140
1106
|
this.t = new TData();
|
|
@@ -1210,7 +1176,7 @@ TDecorator.__type = [
|
|
|
1210
1176
|
var t = createPropertyDecoratorContext(TDecorator);
|
|
1211
1177
|
var EntityDecorator = class EntityDecorator2 {
|
|
1212
1178
|
static {
|
|
1213
|
-
|
|
1179
|
+
chunkUSNT2KNT_cjs.__name(this, "EntityDecorator");
|
|
1214
1180
|
}
|
|
1215
1181
|
constructor() {
|
|
1216
1182
|
this.t = new EntityData();
|
|
@@ -1279,9 +1245,9 @@ EntityDecorator.__type = [
|
|
|
1279
1245
|
];
|
|
1280
1246
|
var entity = createClassDecoratorContext(EntityDecorator);
|
|
1281
1247
|
function isWithDeferredDecorators(obj) {
|
|
1282
|
-
return obj && "__decorators" in obj &&
|
|
1248
|
+
return obj && "__decorators" in obj && chunkZDFKNN7Y_cjs.isArray(obj.__decorators);
|
|
1283
1249
|
}
|
|
1284
|
-
|
|
1250
|
+
chunkUSNT2KNT_cjs.__name(isWithDeferredDecorators, "isWithDeferredDecorators");
|
|
1285
1251
|
isWithDeferredDecorators.__type = [
|
|
1286
1252
|
"obj",
|
|
1287
1253
|
"isWithDeferredDecorators",
|
|
@@ -1297,7 +1263,7 @@ function addDeferredDecorator(data, target, property, parameterIndexOrDescriptor
|
|
|
1297
1263
|
data
|
|
1298
1264
|
});
|
|
1299
1265
|
}
|
|
1300
|
-
|
|
1266
|
+
chunkUSNT2KNT_cjs.__name(addDeferredDecorator, "addDeferredDecorator");
|
|
1301
1267
|
addDeferredDecorator.__type = [
|
|
1302
1268
|
"data",
|
|
1303
1269
|
"target",
|
|
@@ -1308,12 +1274,11 @@ addDeferredDecorator.__type = [
|
|
|
1308
1274
|
];
|
|
1309
1275
|
|
|
1310
1276
|
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/reflection/extends.js
|
|
1311
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
1312
1277
|
function __assignType2(fn, args) {
|
|
1313
1278
|
fn.__type = args;
|
|
1314
1279
|
return fn;
|
|
1315
1280
|
}
|
|
1316
|
-
|
|
1281
|
+
chunkUSNT2KNT_cjs.__name(__assignType2, "__assignType");
|
|
1317
1282
|
var __\u03A9AssignableType = [
|
|
1318
1283
|
"Type",
|
|
1319
1284
|
"AssignableType",
|
|
@@ -1332,7 +1297,7 @@ function hasStack(extendStack, left, right) {
|
|
|
1332
1297
|
}
|
|
1333
1298
|
return false;
|
|
1334
1299
|
}
|
|
1335
|
-
|
|
1300
|
+
chunkUSNT2KNT_cjs.__name(hasStack, "hasStack");
|
|
1336
1301
|
hasStack.__type = [
|
|
1337
1302
|
() => __\u03A9StackEntry,
|
|
1338
1303
|
"extendStack",
|
|
@@ -1353,7 +1318,7 @@ function isExtendable(leftValue, rightValue, extendStack = []) {
|
|
|
1353
1318
|
}
|
|
1354
1319
|
return valid;
|
|
1355
1320
|
}
|
|
1356
|
-
|
|
1321
|
+
chunkUSNT2KNT_cjs.__name(isExtendable, "isExtendable");
|
|
1357
1322
|
isExtendable.__type = [
|
|
1358
1323
|
() => __\u03A9AssignableType,
|
|
1359
1324
|
"leftValue",
|
|
@@ -1368,7 +1333,7 @@ isExtendable.__type = [
|
|
|
1368
1333
|
function isFunctionLike(type) {
|
|
1369
1334
|
return type.kind === exports.ReflectionKind.function || type.kind === exports.ReflectionKind.method || type.kind === exports.ReflectionKind.callSignature || type.kind === exports.ReflectionKind.methodSignature || type.kind === exports.ReflectionKind.objectLiteral || (type.kind === exports.ReflectionKind.property || type.kind === exports.ReflectionKind.propertySignature) && type.type.kind === exports.ReflectionKind.function;
|
|
1370
1335
|
}
|
|
1371
|
-
|
|
1336
|
+
chunkUSNT2KNT_cjs.__name(isFunctionLike, "isFunctionLike");
|
|
1372
1337
|
isFunctionLike.__type = [
|
|
1373
1338
|
"Type",
|
|
1374
1339
|
"type",
|
|
@@ -1387,7 +1352,7 @@ function getFunctionLikeType(type) {
|
|
|
1387
1352
|
}
|
|
1388
1353
|
return;
|
|
1389
1354
|
}
|
|
1390
|
-
|
|
1355
|
+
chunkUSNT2KNT_cjs.__name(getFunctionLikeType, "getFunctionLikeType");
|
|
1391
1356
|
getFunctionLikeType.__type = [
|
|
1392
1357
|
"Type",
|
|
1393
1358
|
"type",
|
|
@@ -1572,7 +1537,7 @@ function _isExtendable(left, right, extendStack = []) {
|
|
|
1572
1537
|
}
|
|
1573
1538
|
if (left.kind === exports.ReflectionKind.class && right.kind === exports.ReflectionKind.class && left.types.length === 0 && right.types.length === 0) {
|
|
1574
1539
|
if (left.classType === right.classType) return true;
|
|
1575
|
-
return
|
|
1540
|
+
return chunkZDFKNN7Y_cjs.isPrototypeOfBase(left.classType, right.classType);
|
|
1576
1541
|
}
|
|
1577
1542
|
return true;
|
|
1578
1543
|
}
|
|
@@ -1648,7 +1613,7 @@ function _isExtendable(left, right, extendStack = []) {
|
|
|
1648
1613
|
} finally {
|
|
1649
1614
|
}
|
|
1650
1615
|
}
|
|
1651
|
-
|
|
1616
|
+
chunkUSNT2KNT_cjs.__name(_isExtendable, "_isExtendable");
|
|
1652
1617
|
_isExtendable.__type = [
|
|
1653
1618
|
"Type",
|
|
1654
1619
|
"left",
|
|
@@ -1767,7 +1732,7 @@ function createPromiseObjectLiteral(type) {
|
|
|
1767
1732
|
});
|
|
1768
1733
|
return promise;
|
|
1769
1734
|
}
|
|
1770
|
-
|
|
1735
|
+
chunkUSNT2KNT_cjs.__name(createPromiseObjectLiteral, "createPromiseObjectLiteral");
|
|
1771
1736
|
createPromiseObjectLiteral.__type = [
|
|
1772
1737
|
() => __\u03A9TypePromise,
|
|
1773
1738
|
"type",
|
|
@@ -1791,7 +1756,7 @@ function parametersToTuple(parameters) {
|
|
|
1791
1756
|
}
|
|
1792
1757
|
return tuple;
|
|
1793
1758
|
}
|
|
1794
|
-
|
|
1759
|
+
chunkUSNT2KNT_cjs.__name(parametersToTuple, "parametersToTuple");
|
|
1795
1760
|
parametersToTuple.__type = [
|
|
1796
1761
|
() => __\u03A9TypeParameter,
|
|
1797
1762
|
"parameters",
|
|
@@ -1808,7 +1773,7 @@ function isFunctionParameterExtendable(left, right, extendStack) {
|
|
|
1808
1773
|
}
|
|
1809
1774
|
return valid;
|
|
1810
1775
|
}
|
|
1811
|
-
|
|
1776
|
+
chunkUSNT2KNT_cjs.__name(isFunctionParameterExtendable, "isFunctionParameterExtendable");
|
|
1812
1777
|
isFunctionParameterExtendable.__type = [
|
|
1813
1778
|
() => __\u03A9TypeParameter,
|
|
1814
1779
|
"parameters",
|
|
@@ -1870,7 +1835,7 @@ function extendTemplateLiteral(left, right) {
|
|
|
1870
1835
|
}
|
|
1871
1836
|
return;
|
|
1872
1837
|
}
|
|
1873
|
-
|
|
1838
|
+
chunkUSNT2KNT_cjs.__name(search, "search");
|
|
1874
1839
|
search.__type = [
|
|
1875
1840
|
"delimiter",
|
|
1876
1841
|
() => __\u03A9ReadQueueItem,
|
|
@@ -1965,7 +1930,7 @@ function extendTemplateLiteral(left, right) {
|
|
|
1965
1930
|
matchQueue = [];
|
|
1966
1931
|
return true;
|
|
1967
1932
|
}
|
|
1968
|
-
|
|
1933
|
+
chunkUSNT2KNT_cjs.__name(handleQueue, "handleQueue");
|
|
1969
1934
|
handleQueue.__type = [
|
|
1970
1935
|
() => __\u03A9ReadQueueItem,
|
|
1971
1936
|
"end",
|
|
@@ -1992,7 +1957,7 @@ function extendTemplateLiteral(left, right) {
|
|
|
1992
1957
|
if (!handleQueue()) return false;
|
|
1993
1958
|
return true;
|
|
1994
1959
|
}
|
|
1995
|
-
|
|
1960
|
+
chunkUSNT2KNT_cjs.__name(extendTemplateLiteral, "extendTemplateLiteral");
|
|
1996
1961
|
extendTemplateLiteral.__type = [
|
|
1997
1962
|
() => __\u03A9TypeLiteral,
|
|
1998
1963
|
() => __\u03A9TypeTemplateLiteral,
|
|
@@ -2040,7 +2005,7 @@ function inferFromTuple(left, right) {
|
|
|
2040
2005
|
}
|
|
2041
2006
|
}
|
|
2042
2007
|
}
|
|
2043
|
-
|
|
2008
|
+
chunkUSNT2KNT_cjs.__name(inferFromTuple, "inferFromTuple");
|
|
2044
2009
|
inferFromTuple.__type = [
|
|
2045
2010
|
() => __\u03A9TypeTuple,
|
|
2046
2011
|
"left",
|
|
@@ -2051,7 +2016,6 @@ inferFromTuple.__type = [
|
|
|
2051
2016
|
];
|
|
2052
2017
|
|
|
2053
2018
|
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/reflection/state.js
|
|
2054
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
2055
2019
|
var state = {
|
|
2056
2020
|
nominalId: 1
|
|
2057
2021
|
};
|
|
@@ -2136,11 +2100,11 @@ function __assignType3(fn, args) {
|
|
|
2136
2100
|
fn.__type = args;
|
|
2137
2101
|
return fn;
|
|
2138
2102
|
}
|
|
2139
|
-
|
|
2103
|
+
chunkUSNT2KNT_cjs.__name(__assignType3, "__assignType");
|
|
2140
2104
|
var __\u03A9RuntimeStackEntry = [
|
|
2141
2105
|
"Type",
|
|
2142
2106
|
() => __\u03A9Object,
|
|
2143
|
-
() =>
|
|
2107
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
2144
2108
|
() => __\u03A9Object,
|
|
2145
2109
|
"",
|
|
2146
2110
|
"RuntimeStackEntry",
|
|
@@ -2160,7 +2124,7 @@ var __\u03A9Packed = [
|
|
|
2160
2124
|
];
|
|
2161
2125
|
var PackStruct = class {
|
|
2162
2126
|
static {
|
|
2163
|
-
|
|
2127
|
+
chunkUSNT2KNT_cjs.__name(this, "PackStruct");
|
|
2164
2128
|
}
|
|
2165
2129
|
constructor(ops = [], stack = []) {
|
|
2166
2130
|
this.ops = ops;
|
|
@@ -2183,7 +2147,7 @@ function unpackOps(decodedOps, encodedOPs) {
|
|
|
2183
2147
|
decodedOps.push(encodedOPs.charCodeAt(i) - 33);
|
|
2184
2148
|
}
|
|
2185
2149
|
}
|
|
2186
|
-
|
|
2150
|
+
chunkUSNT2KNT_cjs.__name(unpackOps, "unpackOps");
|
|
2187
2151
|
unpackOps.__type = [
|
|
2188
2152
|
"ReflectionOp",
|
|
2189
2153
|
"decodedOps",
|
|
@@ -2198,7 +2162,7 @@ function encodeOps(ops) {
|
|
|
2198
2162
|
'P"2!"/"'
|
|
2199
2163
|
])).join("");
|
|
2200
2164
|
}
|
|
2201
|
-
|
|
2165
|
+
chunkUSNT2KNT_cjs.__name(encodeOps, "encodeOps");
|
|
2202
2166
|
encodeOps.__type = [
|
|
2203
2167
|
"ReflectionOp",
|
|
2204
2168
|
"ops",
|
|
@@ -2206,9 +2170,9 @@ encodeOps.__type = [
|
|
|
2206
2170
|
'P"w!F2"&/#'
|
|
2207
2171
|
];
|
|
2208
2172
|
function pack(packOrOps) {
|
|
2209
|
-
const ops =
|
|
2173
|
+
const ops = chunkZDFKNN7Y_cjs.isArray(packOrOps) ? packOrOps : packOrOps.ops;
|
|
2210
2174
|
const encodedOps = encodeOps(ops);
|
|
2211
|
-
if (!
|
|
2175
|
+
if (!chunkZDFKNN7Y_cjs.isArray(packOrOps)) {
|
|
2212
2176
|
if (packOrOps.stack.length) {
|
|
2213
2177
|
return [
|
|
2214
2178
|
...packOrOps.stack,
|
|
@@ -2220,7 +2184,7 @@ function pack(packOrOps) {
|
|
|
2220
2184
|
encodedOps
|
|
2221
2185
|
];
|
|
2222
2186
|
}
|
|
2223
|
-
|
|
2187
|
+
chunkUSNT2KNT_cjs.__name(pack, "pack");
|
|
2224
2188
|
pack.__type = [
|
|
2225
2189
|
() => PackStruct,
|
|
2226
2190
|
"ReflectionOp",
|
|
@@ -2242,7 +2206,7 @@ function unpack(pack2) {
|
|
|
2242
2206
|
stack: pack2.length > 1 ? pack2.slice(0, -1) : []
|
|
2243
2207
|
};
|
|
2244
2208
|
}
|
|
2245
|
-
|
|
2209
|
+
chunkUSNT2KNT_cjs.__name(unpack, "unpack");
|
|
2246
2210
|
unpack.__type = [
|
|
2247
2211
|
() => __\u03A9Packed,
|
|
2248
2212
|
"pack",
|
|
@@ -2253,7 +2217,7 @@ unpack.__type = [
|
|
|
2253
2217
|
function resolvePacked(type, args = [], options) {
|
|
2254
2218
|
return resolveRuntimeType(type, args, options);
|
|
2255
2219
|
}
|
|
2256
|
-
|
|
2220
|
+
chunkUSNT2KNT_cjs.__name(resolvePacked, "resolvePacked");
|
|
2257
2221
|
resolvePacked.__type = [
|
|
2258
2222
|
() => __\u03A9Packed,
|
|
2259
2223
|
"type",
|
|
@@ -2266,9 +2230,9 @@ resolvePacked.__type = [
|
|
|
2266
2230
|
`Pn!2""F2#>$n%2&8"w'/(`
|
|
2267
2231
|
];
|
|
2268
2232
|
function isPack(o) {
|
|
2269
|
-
return
|
|
2233
|
+
return chunkZDFKNN7Y_cjs.isArray(o);
|
|
2270
2234
|
}
|
|
2271
|
-
|
|
2235
|
+
chunkUSNT2KNT_cjs.__name(isPack, "isPack");
|
|
2272
2236
|
isPack.__type = [
|
|
2273
2237
|
"o",
|
|
2274
2238
|
"isPack",
|
|
@@ -2283,9 +2247,9 @@ function resolveRuntimeType(o, args = [], options) {
|
|
|
2283
2247
|
}
|
|
2284
2248
|
throw new Error("No type returned from runtime type program");
|
|
2285
2249
|
}
|
|
2286
|
-
|
|
2250
|
+
chunkUSNT2KNT_cjs.__name(resolveRuntimeType, "resolveRuntimeType");
|
|
2287
2251
|
resolveRuntimeType.__type = [
|
|
2288
|
-
() =>
|
|
2252
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
2289
2253
|
() => Function,
|
|
2290
2254
|
() => __\u03A9Packed,
|
|
2291
2255
|
"o",
|
|
@@ -2314,7 +2278,7 @@ var __\u03A9Frame = [
|
|
|
2314
2278
|
];
|
|
2315
2279
|
var Loop = class Loop2 {
|
|
2316
2280
|
static {
|
|
2317
|
-
|
|
2281
|
+
chunkUSNT2KNT_cjs.__name(this, "Loop");
|
|
2318
2282
|
}
|
|
2319
2283
|
constructor(fromType) {
|
|
2320
2284
|
this.fromType = fromType;
|
|
@@ -2372,7 +2336,7 @@ var __\u03A9Program = [
|
|
|
2372
2336
|
0,
|
|
2373
2337
|
"previous",
|
|
2374
2338
|
"directReturn",
|
|
2375
|
-
() =>
|
|
2339
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
2376
2340
|
() => Function,
|
|
2377
2341
|
() => __\u03A9Packed,
|
|
2378
2342
|
"object",
|
|
@@ -2394,7 +2358,7 @@ function assignResult(ref, result, assignParents) {
|
|
|
2394
2358
|
}
|
|
2395
2359
|
return ref;
|
|
2396
2360
|
}
|
|
2397
|
-
|
|
2361
|
+
chunkUSNT2KNT_cjs.__name(assignResult, "assignResult");
|
|
2398
2362
|
assignResult.__type = [
|
|
2399
2363
|
"Type",
|
|
2400
2364
|
"ref",
|
|
@@ -2407,7 +2371,7 @@ function isConditionTruthy(condition) {
|
|
|
2407
2371
|
if ("number" === typeof condition) return condition !== 0;
|
|
2408
2372
|
return !!(condition.kind === exports.ReflectionKind.literal && condition.literal);
|
|
2409
2373
|
}
|
|
2410
|
-
|
|
2374
|
+
chunkUSNT2KNT_cjs.__name(isConditionTruthy, "isConditionTruthy");
|
|
2411
2375
|
isConditionTruthy.__type = [
|
|
2412
2376
|
"Type",
|
|
2413
2377
|
"condition",
|
|
@@ -2452,7 +2416,7 @@ function createProgram(options, inputs) {
|
|
|
2452
2416
|
program.frame.startIndex = program.stackPointer;
|
|
2453
2417
|
return program;
|
|
2454
2418
|
}
|
|
2455
|
-
|
|
2419
|
+
chunkUSNT2KNT_cjs.__name(createProgram, "createProgram");
|
|
2456
2420
|
createProgram.__type = [
|
|
2457
2421
|
() => __\u03A9Partial2,
|
|
2458
2422
|
() => __\u03A9Program,
|
|
@@ -2480,11 +2444,11 @@ function isValidCacheEntry(current, object, inputs = []) {
|
|
|
2480
2444
|
}
|
|
2481
2445
|
return;
|
|
2482
2446
|
}
|
|
2483
|
-
|
|
2447
|
+
chunkUSNT2KNT_cjs.__name(isValidCacheEntry, "isValidCacheEntry");
|
|
2484
2448
|
isValidCacheEntry.__type = [
|
|
2485
2449
|
() => __\u03A9Program,
|
|
2486
2450
|
"current",
|
|
2487
|
-
() =>
|
|
2451
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
2488
2452
|
() => Function,
|
|
2489
2453
|
() => __\u03A9Packed,
|
|
2490
2454
|
"object",
|
|
@@ -2516,11 +2480,11 @@ function findExistingProgram(current, object, inputs = []) {
|
|
|
2516
2480
|
}
|
|
2517
2481
|
return;
|
|
2518
2482
|
}
|
|
2519
|
-
|
|
2483
|
+
chunkUSNT2KNT_cjs.__name(findExistingProgram, "findExistingProgram");
|
|
2520
2484
|
findExistingProgram.__type = [
|
|
2521
2485
|
() => __\u03A9Program,
|
|
2522
2486
|
"current",
|
|
2523
|
-
() =>
|
|
2487
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
2524
2488
|
() => Function,
|
|
2525
2489
|
() => __\u03A9Packed,
|
|
2526
2490
|
"object",
|
|
@@ -2538,7 +2502,7 @@ function createRef(current) {
|
|
|
2538
2502
|
current.resultTypes.push(ref);
|
|
2539
2503
|
return ref;
|
|
2540
2504
|
}
|
|
2541
|
-
|
|
2505
|
+
chunkUSNT2KNT_cjs.__name(createRef, "createRef");
|
|
2542
2506
|
createRef.__type = [
|
|
2543
2507
|
() => __\u03A9Program,
|
|
2544
2508
|
"current",
|
|
@@ -2555,7 +2519,7 @@ var __\u03A9ReflectOptions = [
|
|
|
2555
2519
|
];
|
|
2556
2520
|
var Processor = class _Processor {
|
|
2557
2521
|
static {
|
|
2558
|
-
|
|
2522
|
+
chunkUSNT2KNT_cjs.__name(this, "Processor");
|
|
2559
2523
|
}
|
|
2560
2524
|
constructor() {
|
|
2561
2525
|
this.cache = [];
|
|
@@ -2597,7 +2561,7 @@ var Processor = class _Processor {
|
|
|
2597
2561
|
_reflect(object, inputs = [], options = {}) {
|
|
2598
2562
|
const packed = isPack(object) ? object : object.__type;
|
|
2599
2563
|
if (!packed) {
|
|
2600
|
-
if (
|
|
2564
|
+
if (chunkZDFKNN7Y_cjs.isFunction(object) && object.length === 0) {
|
|
2601
2565
|
return {
|
|
2602
2566
|
kind: exports.ReflectionKind.function,
|
|
2603
2567
|
function: object,
|
|
@@ -2608,10 +2572,10 @@ var Processor = class _Processor {
|
|
|
2608
2572
|
}
|
|
2609
2573
|
};
|
|
2610
2574
|
}
|
|
2611
|
-
throw new Error(`No valid runtime type for ${
|
|
2575
|
+
throw new Error(`No valid runtime type for ${chunkZDFKNN7Y_cjs.stringifyValueWithType(object)} given. Is @deepkit/type-compiler correctly installed? Execute deepkit-type-install to check`);
|
|
2612
2576
|
}
|
|
2613
2577
|
for (let i = 0; i < inputs.length; i++) {
|
|
2614
|
-
if (
|
|
2578
|
+
if (chunkZDFKNN7Y_cjs.isClass(inputs[i])) inputs[i] = resolveRuntimeType(inputs[i]);
|
|
2615
2579
|
}
|
|
2616
2580
|
const found = findExistingProgram(this.program, object, inputs);
|
|
2617
2581
|
if (found) {
|
|
@@ -2692,74 +2656,74 @@ var Processor = class _Processor {
|
|
|
2692
2656
|
for (; program.program < program.end; program.program++) {
|
|
2693
2657
|
const op = program.ops[program.program];
|
|
2694
2658
|
switch (op) {
|
|
2695
|
-
case
|
|
2659
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.string:
|
|
2696
2660
|
this.pushType({
|
|
2697
2661
|
kind: exports.ReflectionKind.string
|
|
2698
2662
|
});
|
|
2699
2663
|
break;
|
|
2700
|
-
case
|
|
2664
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.number:
|
|
2701
2665
|
this.pushType({
|
|
2702
2666
|
kind: exports.ReflectionKind.number
|
|
2703
2667
|
});
|
|
2704
2668
|
break;
|
|
2705
|
-
case
|
|
2669
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.numberBrand:
|
|
2706
2670
|
const ref = this.eatParameter();
|
|
2707
2671
|
this.pushType({
|
|
2708
2672
|
kind: exports.ReflectionKind.number,
|
|
2709
2673
|
brand: ref
|
|
2710
2674
|
});
|
|
2711
2675
|
break;
|
|
2712
|
-
case
|
|
2676
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.boolean:
|
|
2713
2677
|
this.pushType({
|
|
2714
2678
|
kind: exports.ReflectionKind.boolean
|
|
2715
2679
|
});
|
|
2716
2680
|
break;
|
|
2717
|
-
case
|
|
2681
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.void:
|
|
2718
2682
|
this.pushType({
|
|
2719
2683
|
kind: exports.ReflectionKind.void
|
|
2720
2684
|
});
|
|
2721
2685
|
break;
|
|
2722
|
-
case
|
|
2686
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.unknown:
|
|
2723
2687
|
this.pushType({
|
|
2724
2688
|
kind: exports.ReflectionKind.unknown
|
|
2725
2689
|
});
|
|
2726
2690
|
break;
|
|
2727
|
-
case
|
|
2691
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.object:
|
|
2728
2692
|
this.pushType({
|
|
2729
2693
|
kind: exports.ReflectionKind.object
|
|
2730
2694
|
});
|
|
2731
2695
|
break;
|
|
2732
|
-
case
|
|
2696
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.never:
|
|
2733
2697
|
this.pushType({
|
|
2734
2698
|
kind: exports.ReflectionKind.never
|
|
2735
2699
|
});
|
|
2736
2700
|
break;
|
|
2737
|
-
case
|
|
2701
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.undefined:
|
|
2738
2702
|
this.pushType({
|
|
2739
2703
|
kind: exports.ReflectionKind.undefined
|
|
2740
2704
|
});
|
|
2741
2705
|
break;
|
|
2742
|
-
case
|
|
2706
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.bigint:
|
|
2743
2707
|
this.pushType({
|
|
2744
2708
|
kind: exports.ReflectionKind.bigint
|
|
2745
2709
|
});
|
|
2746
2710
|
break;
|
|
2747
|
-
case
|
|
2711
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.symbol:
|
|
2748
2712
|
this.pushType({
|
|
2749
2713
|
kind: exports.ReflectionKind.symbol
|
|
2750
2714
|
});
|
|
2751
2715
|
break;
|
|
2752
|
-
case
|
|
2716
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.null:
|
|
2753
2717
|
this.pushType({
|
|
2754
2718
|
kind: exports.ReflectionKind.null
|
|
2755
2719
|
});
|
|
2756
2720
|
break;
|
|
2757
|
-
case
|
|
2721
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.any:
|
|
2758
2722
|
this.pushType({
|
|
2759
2723
|
kind: exports.ReflectionKind.any
|
|
2760
2724
|
});
|
|
2761
2725
|
break;
|
|
2762
|
-
case
|
|
2726
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.literal: {
|
|
2763
2727
|
const ref2 = this.eatParameter();
|
|
2764
2728
|
this.pushType({
|
|
2765
2729
|
kind: exports.ReflectionKind.literal,
|
|
@@ -2767,99 +2731,99 @@ var Processor = class _Processor {
|
|
|
2767
2731
|
});
|
|
2768
2732
|
break;
|
|
2769
2733
|
}
|
|
2770
|
-
case
|
|
2734
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.templateLiteral: {
|
|
2771
2735
|
this.handleTemplateLiteral();
|
|
2772
2736
|
break;
|
|
2773
2737
|
}
|
|
2774
|
-
case
|
|
2738
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.date:
|
|
2775
2739
|
this.pushType({
|
|
2776
2740
|
kind: exports.ReflectionKind.class,
|
|
2777
2741
|
classType: Date,
|
|
2778
2742
|
types: []
|
|
2779
2743
|
});
|
|
2780
2744
|
break;
|
|
2781
|
-
case
|
|
2745
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.uint8Array:
|
|
2782
2746
|
this.pushType({
|
|
2783
2747
|
kind: exports.ReflectionKind.class,
|
|
2784
2748
|
classType: Uint8Array,
|
|
2785
2749
|
types: []
|
|
2786
2750
|
});
|
|
2787
2751
|
break;
|
|
2788
|
-
case
|
|
2752
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.int8Array:
|
|
2789
2753
|
this.pushType({
|
|
2790
2754
|
kind: exports.ReflectionKind.class,
|
|
2791
2755
|
classType: Int8Array,
|
|
2792
2756
|
types: []
|
|
2793
2757
|
});
|
|
2794
2758
|
break;
|
|
2795
|
-
case
|
|
2759
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.uint8ClampedArray:
|
|
2796
2760
|
this.pushType({
|
|
2797
2761
|
kind: exports.ReflectionKind.class,
|
|
2798
2762
|
classType: Uint8ClampedArray,
|
|
2799
2763
|
types: []
|
|
2800
2764
|
});
|
|
2801
2765
|
break;
|
|
2802
|
-
case
|
|
2766
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.uint16Array:
|
|
2803
2767
|
this.pushType({
|
|
2804
2768
|
kind: exports.ReflectionKind.class,
|
|
2805
2769
|
classType: Uint16Array,
|
|
2806
2770
|
types: []
|
|
2807
2771
|
});
|
|
2808
2772
|
break;
|
|
2809
|
-
case
|
|
2773
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.int16Array:
|
|
2810
2774
|
this.pushType({
|
|
2811
2775
|
kind: exports.ReflectionKind.class,
|
|
2812
2776
|
classType: Int16Array,
|
|
2813
2777
|
types: []
|
|
2814
2778
|
});
|
|
2815
2779
|
break;
|
|
2816
|
-
case
|
|
2780
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.uint32Array:
|
|
2817
2781
|
this.pushType({
|
|
2818
2782
|
kind: exports.ReflectionKind.class,
|
|
2819
2783
|
classType: Uint32Array,
|
|
2820
2784
|
types: []
|
|
2821
2785
|
});
|
|
2822
2786
|
break;
|
|
2823
|
-
case
|
|
2787
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.int32Array:
|
|
2824
2788
|
this.pushType({
|
|
2825
2789
|
kind: exports.ReflectionKind.class,
|
|
2826
2790
|
classType: Int32Array,
|
|
2827
2791
|
types: []
|
|
2828
2792
|
});
|
|
2829
2793
|
break;
|
|
2830
|
-
case
|
|
2794
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.float32Array:
|
|
2831
2795
|
this.pushType({
|
|
2832
2796
|
kind: exports.ReflectionKind.class,
|
|
2833
2797
|
classType: Float32Array,
|
|
2834
2798
|
types: []
|
|
2835
2799
|
});
|
|
2836
2800
|
break;
|
|
2837
|
-
case
|
|
2801
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.float64Array:
|
|
2838
2802
|
this.pushType({
|
|
2839
2803
|
kind: exports.ReflectionKind.class,
|
|
2840
2804
|
classType: Float64Array,
|
|
2841
2805
|
types: []
|
|
2842
2806
|
});
|
|
2843
2807
|
break;
|
|
2844
|
-
case
|
|
2808
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.bigInt64Array:
|
|
2845
2809
|
this.pushType({
|
|
2846
2810
|
kind: exports.ReflectionKind.class,
|
|
2847
2811
|
classType: "undefined" !== typeof BigInt64Array ? BigInt64Array : class BigInt64ArrayNotAvailable {
|
|
2848
2812
|
static {
|
|
2849
|
-
|
|
2813
|
+
chunkUSNT2KNT_cjs.__name(this, "BigInt64ArrayNotAvailable");
|
|
2850
2814
|
}
|
|
2851
2815
|
},
|
|
2852
2816
|
types: []
|
|
2853
2817
|
});
|
|
2854
2818
|
break;
|
|
2855
|
-
case
|
|
2819
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.arrayBuffer:
|
|
2856
2820
|
this.pushType({
|
|
2857
2821
|
kind: exports.ReflectionKind.class,
|
|
2858
2822
|
classType: ArrayBuffer,
|
|
2859
2823
|
types: []
|
|
2860
2824
|
});
|
|
2861
2825
|
break;
|
|
2862
|
-
case
|
|
2826
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.class: {
|
|
2863
2827
|
let add2 = function(member) {
|
|
2864
2828
|
if (member.kind === exports.ReflectionKind.propertySignature) {
|
|
2865
2829
|
member = {
|
|
@@ -2913,7 +2877,7 @@ var Processor = class _Processor {
|
|
|
2913
2877
|
}
|
|
2914
2878
|
}
|
|
2915
2879
|
};
|
|
2916
|
-
|
|
2880
|
+
chunkUSNT2KNT_cjs.__name(add2, "add");
|
|
2917
2881
|
const types = this.popFrame();
|
|
2918
2882
|
let t2 = {
|
|
2919
2883
|
kind: exports.ReflectionKind.class,
|
|
@@ -2943,14 +2907,14 @@ var Processor = class _Processor {
|
|
|
2943
2907
|
this.pushType(t2);
|
|
2944
2908
|
break;
|
|
2945
2909
|
}
|
|
2946
|
-
case
|
|
2910
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.widen: {
|
|
2947
2911
|
const current = program.stack[program.stackPointer];
|
|
2948
2912
|
if (current.kind === exports.ReflectionKind.literal) {
|
|
2949
2913
|
this.pushType(widenLiteral(this.pop()));
|
|
2950
2914
|
}
|
|
2951
2915
|
break;
|
|
2952
2916
|
}
|
|
2953
|
-
case
|
|
2917
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.classExtends: {
|
|
2954
2918
|
const argsNumber = this.eatParameter();
|
|
2955
2919
|
const typeArguments = [];
|
|
2956
2920
|
for (let i = 0; i < argsNumber; i++) {
|
|
@@ -2959,7 +2923,7 @@ var Processor = class _Processor {
|
|
|
2959
2923
|
program.stack[program.stackPointer].extendsArguments = typeArguments;
|
|
2960
2924
|
break;
|
|
2961
2925
|
}
|
|
2962
|
-
case
|
|
2926
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.implements: {
|
|
2963
2927
|
const argsNumber = this.eatParameter();
|
|
2964
2928
|
const types = [];
|
|
2965
2929
|
for (let i = 0; i < argsNumber; i++) {
|
|
@@ -2968,7 +2932,7 @@ var Processor = class _Processor {
|
|
|
2968
2932
|
program.stack[program.stackPointer].implements = types;
|
|
2969
2933
|
break;
|
|
2970
2934
|
}
|
|
2971
|
-
case
|
|
2935
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.parameter: {
|
|
2972
2936
|
const ref2 = this.eatParameter();
|
|
2973
2937
|
const t2 = {
|
|
2974
2938
|
kind: exports.ReflectionKind.parameter,
|
|
@@ -2980,8 +2944,8 @@ var Processor = class _Processor {
|
|
|
2980
2944
|
this.pushType(t2);
|
|
2981
2945
|
break;
|
|
2982
2946
|
}
|
|
2983
|
-
case
|
|
2984
|
-
case
|
|
2947
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.functionReference:
|
|
2948
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.classReference: {
|
|
2985
2949
|
const ref2 = this.eatParameter();
|
|
2986
2950
|
const classOrFunction = resolveFunction(program.stack[ref2], program.object);
|
|
2987
2951
|
const inputs = this.popFrame();
|
|
@@ -2992,14 +2956,14 @@ var Processor = class _Processor {
|
|
|
2992
2956
|
break;
|
|
2993
2957
|
}
|
|
2994
2958
|
if (!classOrFunction.__type) {
|
|
2995
|
-
if (op ===
|
|
2959
|
+
if (op === chunk5NPGWGPO_cjs.ReflectionOp.classReference) {
|
|
2996
2960
|
this.pushType({
|
|
2997
2961
|
kind: exports.ReflectionKind.class,
|
|
2998
2962
|
classType: classOrFunction,
|
|
2999
2963
|
typeArguments: inputs,
|
|
3000
2964
|
types: []
|
|
3001
2965
|
});
|
|
3002
|
-
} else if (op ===
|
|
2966
|
+
} else if (op === chunk5NPGWGPO_cjs.ReflectionOp.functionReference) {
|
|
3003
2967
|
this.pushType({
|
|
3004
2968
|
kind: exports.ReflectionKind.function,
|
|
3005
2969
|
function: classOrFunction,
|
|
@@ -3030,7 +2994,7 @@ var Processor = class _Processor {
|
|
|
3030
2994
|
}
|
|
3031
2995
|
break;
|
|
3032
2996
|
}
|
|
3033
|
-
case
|
|
2997
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.enum: {
|
|
3034
2998
|
const types = this.popFrame();
|
|
3035
2999
|
const enumType = {};
|
|
3036
3000
|
let i = 0;
|
|
@@ -3055,20 +3019,20 @@ var Processor = class _Processor {
|
|
|
3055
3019
|
this.pushType(t2);
|
|
3056
3020
|
break;
|
|
3057
3021
|
}
|
|
3058
|
-
case
|
|
3022
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.enumMember: {
|
|
3059
3023
|
const name = program.stack[this.eatParameter()];
|
|
3060
3024
|
this.pushType({
|
|
3061
3025
|
kind: exports.ReflectionKind.enumMember,
|
|
3062
3026
|
parent: void 0,
|
|
3063
|
-
name:
|
|
3027
|
+
name: chunkZDFKNN7Y_cjs.isFunction(name) ? name() : name
|
|
3064
3028
|
});
|
|
3065
3029
|
break;
|
|
3066
3030
|
}
|
|
3067
|
-
case
|
|
3031
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.tuple: {
|
|
3068
3032
|
this.handleTuple();
|
|
3069
3033
|
break;
|
|
3070
3034
|
}
|
|
3071
|
-
case
|
|
3035
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.tupleMember: {
|
|
3072
3036
|
const t2 = {
|
|
3073
3037
|
kind: exports.ReflectionKind.tupleMember,
|
|
3074
3038
|
type: this.pop(),
|
|
@@ -3078,19 +3042,19 @@ var Processor = class _Processor {
|
|
|
3078
3042
|
this.pushType(t2);
|
|
3079
3043
|
break;
|
|
3080
3044
|
}
|
|
3081
|
-
case
|
|
3045
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.namedTupleMember: {
|
|
3082
3046
|
const name = program.stack[this.eatParameter()];
|
|
3083
3047
|
const t2 = {
|
|
3084
3048
|
kind: exports.ReflectionKind.tupleMember,
|
|
3085
3049
|
type: this.pop(),
|
|
3086
3050
|
parent: void 0,
|
|
3087
|
-
name:
|
|
3051
|
+
name: chunkZDFKNN7Y_cjs.isFunction(name) ? name() : name
|
|
3088
3052
|
};
|
|
3089
3053
|
t2.type.parent = t2;
|
|
3090
3054
|
this.pushType(t2);
|
|
3091
3055
|
break;
|
|
3092
3056
|
}
|
|
3093
|
-
case
|
|
3057
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.rest: {
|
|
3094
3058
|
const t2 = {
|
|
3095
3059
|
kind: exports.ReflectionKind.rest,
|
|
3096
3060
|
parent: void 0,
|
|
@@ -3100,18 +3064,18 @@ var Processor = class _Processor {
|
|
|
3100
3064
|
this.pushType(t2);
|
|
3101
3065
|
break;
|
|
3102
3066
|
}
|
|
3103
|
-
case
|
|
3067
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.regexp: {
|
|
3104
3068
|
this.pushType({
|
|
3105
3069
|
kind: exports.ReflectionKind.regexp
|
|
3106
3070
|
});
|
|
3107
3071
|
break;
|
|
3108
3072
|
}
|
|
3109
|
-
case
|
|
3110
|
-
case
|
|
3073
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.typeParameter:
|
|
3074
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.typeParameterDefault: {
|
|
3111
3075
|
const nameRef = this.eatParameter();
|
|
3112
3076
|
program.typeParameters = program.typeParameters || [];
|
|
3113
3077
|
let type = program.frame.inputs[program.frame.variables++];
|
|
3114
|
-
if (op ===
|
|
3078
|
+
if (op === chunk5NPGWGPO_cjs.ReflectionOp.typeParameterDefault) {
|
|
3115
3079
|
const defaultValue2 = this.pop();
|
|
3116
3080
|
if (type === void 0) {
|
|
3117
3081
|
type = defaultValue2;
|
|
@@ -3132,7 +3096,7 @@ var Processor = class _Processor {
|
|
|
3132
3096
|
}
|
|
3133
3097
|
break;
|
|
3134
3098
|
}
|
|
3135
|
-
case
|
|
3099
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.set: {
|
|
3136
3100
|
const t2 = {
|
|
3137
3101
|
kind: exports.ReflectionKind.class,
|
|
3138
3102
|
classType: Set,
|
|
@@ -3145,7 +3109,7 @@ var Processor = class _Processor {
|
|
|
3145
3109
|
this.pushType(t2);
|
|
3146
3110
|
break;
|
|
3147
3111
|
}
|
|
3148
|
-
case
|
|
3112
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.map: {
|
|
3149
3113
|
const value = this.pop();
|
|
3150
3114
|
const key = this.pop();
|
|
3151
3115
|
const t2 = {
|
|
@@ -3162,7 +3126,7 @@ var Processor = class _Processor {
|
|
|
3162
3126
|
this.pushType(t2);
|
|
3163
3127
|
break;
|
|
3164
3128
|
}
|
|
3165
|
-
case
|
|
3129
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.promise: {
|
|
3166
3130
|
const type = this.pop();
|
|
3167
3131
|
const t2 = {
|
|
3168
3132
|
kind: exports.ReflectionKind.promise,
|
|
@@ -3172,7 +3136,7 @@ var Processor = class _Processor {
|
|
|
3172
3136
|
this.pushType(t2);
|
|
3173
3137
|
break;
|
|
3174
3138
|
}
|
|
3175
|
-
case
|
|
3139
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.union: {
|
|
3176
3140
|
const types = this.popFrame();
|
|
3177
3141
|
const flattened = flattenUnionTypes(types);
|
|
3178
3142
|
const t2 = unboxUnion({
|
|
@@ -3187,21 +3151,21 @@ var Processor = class _Processor {
|
|
|
3187
3151
|
this.pushType(t2);
|
|
3188
3152
|
break;
|
|
3189
3153
|
}
|
|
3190
|
-
case
|
|
3154
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.intersection: {
|
|
3191
3155
|
let t2 = this.handleIntersection();
|
|
3192
3156
|
if (t2) this.pushType(t2);
|
|
3193
3157
|
break;
|
|
3194
3158
|
}
|
|
3195
|
-
case
|
|
3196
|
-
case
|
|
3159
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.callSignature:
|
|
3160
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.function: {
|
|
3197
3161
|
const types = this.popFrame();
|
|
3198
3162
|
let name = program.stack[this.eatParameter()];
|
|
3199
3163
|
const returnType = types.length > 0 ? types[types.length - 1] : {
|
|
3200
3164
|
kind: exports.ReflectionKind.any
|
|
3201
3165
|
};
|
|
3202
3166
|
const parameters = types.length > 1 ? types.slice(0, -1) : [];
|
|
3203
|
-
if (
|
|
3204
|
-
let t2 = op ===
|
|
3167
|
+
if (chunkZDFKNN7Y_cjs.isFunction(name)) name = name();
|
|
3168
|
+
let t2 = op === chunk5NPGWGPO_cjs.ReflectionOp.callSignature ? {
|
|
3205
3169
|
kind: exports.ReflectionKind.callSignature,
|
|
3206
3170
|
return: returnType,
|
|
3207
3171
|
parameters
|
|
@@ -3216,7 +3180,7 @@ var Processor = class _Processor {
|
|
|
3216
3180
|
this.pushType(t2);
|
|
3217
3181
|
break;
|
|
3218
3182
|
}
|
|
3219
|
-
case
|
|
3183
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.array: {
|
|
3220
3184
|
const t2 = {
|
|
3221
3185
|
kind: exports.ReflectionKind.array,
|
|
3222
3186
|
type: this.pop()
|
|
@@ -3225,8 +3189,8 @@ var Processor = class _Processor {
|
|
|
3225
3189
|
this.pushType(t2);
|
|
3226
3190
|
break;
|
|
3227
3191
|
}
|
|
3228
|
-
case
|
|
3229
|
-
case
|
|
3192
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.property:
|
|
3193
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.propertySignature: {
|
|
3230
3194
|
const name = program.stack[this.eatParameter()];
|
|
3231
3195
|
let type = this.pop();
|
|
3232
3196
|
let isOptional2 = false;
|
|
@@ -3239,30 +3203,30 @@ var Processor = class _Processor {
|
|
|
3239
3203
|
}
|
|
3240
3204
|
}
|
|
3241
3205
|
const property = {
|
|
3242
|
-
kind: op ===
|
|
3206
|
+
kind: op === chunk5NPGWGPO_cjs.ReflectionOp.propertySignature ? exports.ReflectionKind.propertySignature : exports.ReflectionKind.property,
|
|
3243
3207
|
type,
|
|
3244
|
-
name:
|
|
3208
|
+
name: chunkZDFKNN7Y_cjs.isFunction(name) ? name() : name
|
|
3245
3209
|
};
|
|
3246
3210
|
if (isOptional2) {
|
|
3247
3211
|
property.optional = true;
|
|
3248
3212
|
}
|
|
3249
|
-
if (op ===
|
|
3213
|
+
if (op === chunk5NPGWGPO_cjs.ReflectionOp.property) {
|
|
3250
3214
|
property.visibility = exports.ReflectionVisibility.public;
|
|
3251
3215
|
}
|
|
3252
3216
|
property.type.parent = property;
|
|
3253
3217
|
this.pushType(property);
|
|
3254
3218
|
break;
|
|
3255
3219
|
}
|
|
3256
|
-
case
|
|
3257
|
-
case
|
|
3220
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.method:
|
|
3221
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.methodSignature: {
|
|
3258
3222
|
let name = program.stack[this.eatParameter()];
|
|
3259
3223
|
const types = this.popFrame();
|
|
3260
3224
|
const returnType = types.length > 0 ? types[types.length - 1] : {
|
|
3261
3225
|
kind: exports.ReflectionKind.any
|
|
3262
3226
|
};
|
|
3263
3227
|
const parameters = types.length > 1 ? types.slice(0, -1) : [];
|
|
3264
|
-
if (
|
|
3265
|
-
let t2 = op ===
|
|
3228
|
+
if (chunkZDFKNN7Y_cjs.isFunction(name)) name = name();
|
|
3229
|
+
let t2 = op === chunk5NPGWGPO_cjs.ReflectionOp.method ? {
|
|
3266
3230
|
kind: exports.ReflectionKind.method,
|
|
3267
3231
|
parent: void 0,
|
|
3268
3232
|
visibility: exports.ReflectionVisibility.public,
|
|
@@ -3281,40 +3245,40 @@ var Processor = class _Processor {
|
|
|
3281
3245
|
this.pushType(t2);
|
|
3282
3246
|
break;
|
|
3283
3247
|
}
|
|
3284
|
-
case
|
|
3248
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.optional:
|
|
3285
3249
|
program.stack[program.stackPointer].optional = true;
|
|
3286
3250
|
break;
|
|
3287
|
-
case
|
|
3251
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.readonly:
|
|
3288
3252
|
program.stack[program.stackPointer].readonly = true;
|
|
3289
3253
|
break;
|
|
3290
|
-
case
|
|
3254
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.public:
|
|
3291
3255
|
program.stack[program.stackPointer].visibility = exports.ReflectionVisibility.public;
|
|
3292
3256
|
break;
|
|
3293
|
-
case
|
|
3257
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.protected:
|
|
3294
3258
|
program.stack[program.stackPointer].visibility = exports.ReflectionVisibility.protected;
|
|
3295
3259
|
break;
|
|
3296
|
-
case
|
|
3260
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.private:
|
|
3297
3261
|
program.stack[program.stackPointer].visibility = exports.ReflectionVisibility.private;
|
|
3298
3262
|
break;
|
|
3299
|
-
case
|
|
3263
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.abstract:
|
|
3300
3264
|
program.stack[program.stackPointer].abstract = true;
|
|
3301
3265
|
break;
|
|
3302
|
-
case
|
|
3266
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.static:
|
|
3303
3267
|
program.stack[program.stackPointer].static = true;
|
|
3304
3268
|
break;
|
|
3305
|
-
case
|
|
3269
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.defaultValue:
|
|
3306
3270
|
const stackDefaultValue = program.stack[program.stackPointer];
|
|
3307
3271
|
stackDefaultValue.default = program.stack[this.eatParameter()];
|
|
3308
3272
|
break;
|
|
3309
|
-
case
|
|
3273
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.description:
|
|
3310
3274
|
const stackDescription = program.stack[program.stackPointer];
|
|
3311
3275
|
stackDescription.description = program.stack[this.eatParameter()];
|
|
3312
3276
|
break;
|
|
3313
|
-
case
|
|
3277
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.tags:
|
|
3314
3278
|
const stackTags = program.stack[program.stackPointer];
|
|
3315
3279
|
stackTags.tags = program.stack[this.eatParameter()];
|
|
3316
3280
|
break;
|
|
3317
|
-
case
|
|
3281
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.typeName: {
|
|
3318
3282
|
const type = program.stack[program.stackPointer];
|
|
3319
3283
|
const name = program.stack[this.eatParameter()];
|
|
3320
3284
|
if (type.typeName) {
|
|
@@ -3330,7 +3294,7 @@ var Processor = class _Processor {
|
|
|
3330
3294
|
type.typeName = name;
|
|
3331
3295
|
break;
|
|
3332
3296
|
}
|
|
3333
|
-
case
|
|
3297
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.indexSignature: {
|
|
3334
3298
|
const type = this.pop();
|
|
3335
3299
|
const index = this.pop();
|
|
3336
3300
|
const t2 = {
|
|
@@ -3344,7 +3308,7 @@ var Processor = class _Processor {
|
|
|
3344
3308
|
this.pushType(t2);
|
|
3345
3309
|
break;
|
|
3346
3310
|
}
|
|
3347
|
-
case
|
|
3311
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.objectLiteral: {
|
|
3348
3312
|
let t2 = {
|
|
3349
3313
|
kind: exports.ReflectionKind.objectLiteral,
|
|
3350
3314
|
id: state.nominalId++,
|
|
@@ -3360,11 +3324,11 @@ var Processor = class _Processor {
|
|
|
3360
3324
|
// this.push(program.stack[this.eatParameter() as number]);
|
|
3361
3325
|
// break;
|
|
3362
3326
|
// }
|
|
3363
|
-
case
|
|
3327
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.distribute: {
|
|
3364
3328
|
this.handleDistribute(program);
|
|
3365
3329
|
break;
|
|
3366
3330
|
}
|
|
3367
|
-
case
|
|
3331
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.condition: {
|
|
3368
3332
|
const right = this.pop();
|
|
3369
3333
|
const left = this.pop();
|
|
3370
3334
|
const condition = this.pop();
|
|
@@ -3372,7 +3336,7 @@ var Processor = class _Processor {
|
|
|
3372
3336
|
isConditionTruthy(condition) ? this.pushType(left) : this.pushType(right);
|
|
3373
3337
|
break;
|
|
3374
3338
|
}
|
|
3375
|
-
case
|
|
3339
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.jumpCondition: {
|
|
3376
3340
|
const leftProgram = this.eatParameter();
|
|
3377
3341
|
const rightProgram = this.eatParameter();
|
|
3378
3342
|
const condition = this.pop();
|
|
@@ -3380,7 +3344,7 @@ var Processor = class _Processor {
|
|
|
3380
3344
|
this.call(truthy ? leftProgram : rightProgram);
|
|
3381
3345
|
break;
|
|
3382
3346
|
}
|
|
3383
|
-
case
|
|
3347
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.infer: {
|
|
3384
3348
|
const frameOffset = this.eatParameter();
|
|
3385
3349
|
const stackEntryIndex = this.eatParameter();
|
|
3386
3350
|
const frame = program.frame;
|
|
@@ -3389,7 +3353,7 @@ var Processor = class _Processor {
|
|
|
3389
3353
|
};
|
|
3390
3354
|
this.push({
|
|
3391
3355
|
kind: exports.ReflectionKind.infer,
|
|
3392
|
-
set: /* @__PURE__ */
|
|
3356
|
+
set: /* @__PURE__ */ chunkUSNT2KNT_cjs.__name((type) => {
|
|
3393
3357
|
if (last.kind !== exports.ReflectionKind.unknown) {
|
|
3394
3358
|
if (last.kind === exports.ReflectionKind.union || last.kind === exports.ReflectionKind.intersection) {
|
|
3395
3359
|
if (!isTypeIncluded(last.types, type)) {
|
|
@@ -3436,7 +3400,7 @@ var Processor = class _Processor {
|
|
|
3436
3400
|
});
|
|
3437
3401
|
break;
|
|
3438
3402
|
}
|
|
3439
|
-
case
|
|
3403
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.extends: {
|
|
3440
3404
|
const right = this.pop();
|
|
3441
3405
|
const left = this.pop();
|
|
3442
3406
|
const result2 = isExtendable(left, right);
|
|
@@ -3446,11 +3410,11 @@ var Processor = class _Processor {
|
|
|
3446
3410
|
});
|
|
3447
3411
|
break;
|
|
3448
3412
|
}
|
|
3449
|
-
case
|
|
3413
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.indexAccess: {
|
|
3450
3414
|
this.handleIndexAccess();
|
|
3451
3415
|
break;
|
|
3452
3416
|
}
|
|
3453
|
-
case
|
|
3417
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.typeof: {
|
|
3454
3418
|
const param1 = this.eatParameter();
|
|
3455
3419
|
const fn = program.stack[param1];
|
|
3456
3420
|
const value = fn();
|
|
@@ -3462,11 +3426,11 @@ var Processor = class _Processor {
|
|
|
3462
3426
|
}
|
|
3463
3427
|
break;
|
|
3464
3428
|
}
|
|
3465
|
-
case
|
|
3429
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.keyof: {
|
|
3466
3430
|
this.handleKeyOf();
|
|
3467
3431
|
break;
|
|
3468
3432
|
}
|
|
3469
|
-
case
|
|
3433
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.var: {
|
|
3470
3434
|
this.push({
|
|
3471
3435
|
kind: exports.ReflectionKind.unknown,
|
|
3472
3436
|
var: true
|
|
@@ -3474,15 +3438,15 @@ var Processor = class _Processor {
|
|
|
3474
3438
|
program.frame.variables++;
|
|
3475
3439
|
break;
|
|
3476
3440
|
}
|
|
3477
|
-
case
|
|
3441
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.mappedType2: {
|
|
3478
3442
|
this.handleMappedType(program, true);
|
|
3479
3443
|
break;
|
|
3480
3444
|
}
|
|
3481
|
-
case
|
|
3445
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.mappedType: {
|
|
3482
3446
|
this.handleMappedType(program);
|
|
3483
3447
|
break;
|
|
3484
3448
|
}
|
|
3485
|
-
case
|
|
3449
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.loads: {
|
|
3486
3450
|
const frameOffset = this.eatParameter();
|
|
3487
3451
|
const stackEntryIndex = this.eatParameter();
|
|
3488
3452
|
if (frameOffset === 0) {
|
|
@@ -3502,7 +3466,7 @@ var Processor = class _Processor {
|
|
|
3502
3466
|
}
|
|
3503
3467
|
break;
|
|
3504
3468
|
}
|
|
3505
|
-
case
|
|
3469
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.arg: {
|
|
3506
3470
|
const arg = this.eatParameter();
|
|
3507
3471
|
const t2 = program.stack[arg];
|
|
3508
3472
|
if (t2 instanceof ReflectionClass) {
|
|
@@ -3520,39 +3484,39 @@ var Processor = class _Processor {
|
|
|
3520
3484
|
}
|
|
3521
3485
|
break;
|
|
3522
3486
|
}
|
|
3523
|
-
case
|
|
3487
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.return: {
|
|
3524
3488
|
this.returnFrame();
|
|
3525
3489
|
break;
|
|
3526
3490
|
}
|
|
3527
|
-
case
|
|
3491
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.frame: {
|
|
3528
3492
|
this.pushFrame();
|
|
3529
3493
|
break;
|
|
3530
3494
|
}
|
|
3531
|
-
case
|
|
3495
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.moveFrame: {
|
|
3532
3496
|
const type = this.pop();
|
|
3533
3497
|
this.popFrame();
|
|
3534
3498
|
if (type) this.push(type);
|
|
3535
3499
|
break;
|
|
3536
3500
|
}
|
|
3537
|
-
case
|
|
3501
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.jump: {
|
|
3538
3502
|
const arg = this.eatParameter();
|
|
3539
3503
|
program.program = arg - 1;
|
|
3540
3504
|
break;
|
|
3541
3505
|
}
|
|
3542
|
-
case
|
|
3506
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.call: {
|
|
3543
3507
|
const programPointer = this.eatParameter();
|
|
3544
3508
|
this.call(programPointer);
|
|
3545
3509
|
break;
|
|
3546
3510
|
}
|
|
3547
|
-
case
|
|
3511
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.nominal: {
|
|
3548
3512
|
const t2 = program.stack[program.stackPointer];
|
|
3549
3513
|
t2.id = state.nominalId++;
|
|
3550
3514
|
break;
|
|
3551
3515
|
}
|
|
3552
|
-
case
|
|
3516
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.inline: {
|
|
3553
3517
|
const pPosition = this.eatParameter();
|
|
3554
3518
|
const pOrFn = program.stack[pPosition];
|
|
3555
|
-
const p =
|
|
3519
|
+
const p = chunkZDFKNN7Y_cjs.isFunction(pOrFn) ? pOrFn() : pOrFn;
|
|
3556
3520
|
if (p === void 0) {
|
|
3557
3521
|
debug(`Failed runtime inlining of ${pOrFn.toString()}. Value is undefined, probably because of a circular reference or failed import.`);
|
|
3558
3522
|
this.push({
|
|
@@ -3575,7 +3539,7 @@ var Processor = class _Processor {
|
|
|
3575
3539
|
}
|
|
3576
3540
|
break;
|
|
3577
3541
|
}
|
|
3578
|
-
case
|
|
3542
|
+
case chunk5NPGWGPO_cjs.ReflectionOp.inlineCall: {
|
|
3579
3543
|
const pPosition = this.eatParameter();
|
|
3580
3544
|
const argumentSize = this.eatParameter();
|
|
3581
3545
|
const inputs = [];
|
|
@@ -3585,7 +3549,7 @@ var Processor = class _Processor {
|
|
|
3585
3549
|
inputs.unshift(input);
|
|
3586
3550
|
}
|
|
3587
3551
|
const pOrFn = program.stack[pPosition];
|
|
3588
|
-
const p =
|
|
3552
|
+
const p = chunkZDFKNN7Y_cjs.isFunction(pOrFn) ? pOrFn() : pOrFn;
|
|
3589
3553
|
if (p === void 0) {
|
|
3590
3554
|
debug(`Failed runtime inlining call of ${pOrFn.toString()}. Value is undefined, probably because of a circular reference or failed import.`);
|
|
3591
3555
|
this.push({
|
|
@@ -3704,7 +3668,7 @@ var Processor = class _Processor {
|
|
|
3704
3668
|
if (a.annotations) Object.assign(annotations, a.annotations);
|
|
3705
3669
|
if (a.decorators) decorators.push(...a.decorators);
|
|
3706
3670
|
}
|
|
3707
|
-
|
|
3671
|
+
chunkUSNT2KNT_cjs.__name(appendAnnotations, "appendAnnotations");
|
|
3708
3672
|
function handleUnion2(a, unionType) {
|
|
3709
3673
|
if (a.kind === exports.ReflectionKind.objectLiteral || a.kind === exports.ReflectionKind.class) {
|
|
3710
3674
|
return unboxUnion({
|
|
@@ -3717,7 +3681,7 @@ var Processor = class _Processor {
|
|
|
3717
3681
|
types: unionType.types.filter((v) => isExtendable(v, a))
|
|
3718
3682
|
});
|
|
3719
3683
|
}
|
|
3720
|
-
|
|
3684
|
+
chunkUSNT2KNT_cjs.__name(handleUnion2, "handleUnion");
|
|
3721
3685
|
function handleAndObject(a, objectType) {
|
|
3722
3686
|
if (objectType.types.length === 0) {
|
|
3723
3687
|
return isExtendable(a, objectType) ? a : {
|
|
@@ -3728,7 +3692,7 @@ var Processor = class _Processor {
|
|
|
3728
3692
|
annotations[defaultAnnotation.symbol] = defaultDecorators;
|
|
3729
3693
|
return a;
|
|
3730
3694
|
}
|
|
3731
|
-
|
|
3695
|
+
chunkUSNT2KNT_cjs.__name(handleAndObject, "handleAndObject");
|
|
3732
3696
|
function collapse(a, b) {
|
|
3733
3697
|
if (a.kind === exports.ReflectionKind.any) return a;
|
|
3734
3698
|
if (b.kind === exports.ReflectionKind.any) return b;
|
|
@@ -3779,7 +3743,7 @@ var Processor = class _Processor {
|
|
|
3779
3743
|
}
|
|
3780
3744
|
return a;
|
|
3781
3745
|
}
|
|
3782
|
-
|
|
3746
|
+
chunkUSNT2KNT_cjs.__name(collapse, "collapse");
|
|
3783
3747
|
outer: for (const type of types) {
|
|
3784
3748
|
if (type.kind === exports.ReflectionKind.never) continue;
|
|
3785
3749
|
if (type.kind === exports.ReflectionKind.objectLiteral) {
|
|
@@ -3928,7 +3892,7 @@ var Processor = class _Processor {
|
|
|
3928
3892
|
}
|
|
3929
3893
|
return false;
|
|
3930
3894
|
}
|
|
3931
|
-
|
|
3895
|
+
chunkUSNT2KNT_cjs.__name(isSimpleIndex, "isSimpleIndex");
|
|
3932
3896
|
if (program.frame.mappedType) {
|
|
3933
3897
|
let type = this.pop();
|
|
3934
3898
|
let index = program.stack[program.frame.startIndex + 1];
|
|
@@ -4148,7 +4112,7 @@ function typeInferFromContainer(container) {
|
|
|
4148
4112
|
kind: exports.ReflectionKind.any
|
|
4149
4113
|
} : union.types.length === 1 ? union.types[0] : union;
|
|
4150
4114
|
}
|
|
4151
|
-
|
|
4115
|
+
chunkUSNT2KNT_cjs.__name(typeInferFromContainer, "typeInferFromContainer");
|
|
4152
4116
|
typeInferFromContainer.__type = [
|
|
4153
4117
|
() => __\u03A9Iterable,
|
|
4154
4118
|
"container",
|
|
@@ -4176,12 +4140,12 @@ function typeInfer(value) {
|
|
|
4176
4140
|
literal: value
|
|
4177
4141
|
};
|
|
4178
4142
|
} else if ("function" === typeof value) {
|
|
4179
|
-
if (
|
|
4143
|
+
if (chunkZDFKNN7Y_cjs.isArray(value.__type)) {
|
|
4180
4144
|
return Processor.get().reflect(value, void 0, {
|
|
4181
4145
|
inline: true
|
|
4182
4146
|
});
|
|
4183
4147
|
}
|
|
4184
|
-
if (
|
|
4148
|
+
if (chunkZDFKNN7Y_cjs.isClass(value)) {
|
|
4185
4149
|
return {
|
|
4186
4150
|
kind: exports.ReflectionKind.class,
|
|
4187
4151
|
classType: value,
|
|
@@ -4197,14 +4161,14 @@ function typeInfer(value) {
|
|
|
4197
4161
|
},
|
|
4198
4162
|
parameters: []
|
|
4199
4163
|
};
|
|
4200
|
-
} else if (
|
|
4164
|
+
} else if (chunkZDFKNN7Y_cjs.isArray(value)) {
|
|
4201
4165
|
return {
|
|
4202
4166
|
kind: exports.ReflectionKind.array,
|
|
4203
4167
|
type: typeInferFromContainer(value)
|
|
4204
4168
|
};
|
|
4205
4169
|
} else if ("object" === typeof value) {
|
|
4206
4170
|
const constructor = value.constructor;
|
|
4207
|
-
if ("function" === typeof constructor && constructor !== Object &&
|
|
4171
|
+
if ("function" === typeof constructor && constructor !== Object && chunkZDFKNN7Y_cjs.isArray(constructor.__type)) {
|
|
4208
4172
|
return Processor.get().reflect(constructor, void 0, {
|
|
4209
4173
|
inline: true
|
|
4210
4174
|
});
|
|
@@ -4251,12 +4215,12 @@ function typeInfer(value) {
|
|
|
4251
4215
|
for (const i in value) {
|
|
4252
4216
|
const indexTypeOfArg = stack.length;
|
|
4253
4217
|
stack.push(() => value[i]);
|
|
4254
|
-
ops.push(
|
|
4218
|
+
ops.push(chunk5NPGWGPO_cjs.ReflectionOp.typeof, indexTypeOfArg, chunk5NPGWGPO_cjs.ReflectionOp.widen);
|
|
4255
4219
|
const indexName = stack.length;
|
|
4256
4220
|
stack.push(i);
|
|
4257
|
-
ops.push(
|
|
4221
|
+
ops.push(chunk5NPGWGPO_cjs.ReflectionOp.propertySignature, indexName);
|
|
4258
4222
|
}
|
|
4259
|
-
ops.push(
|
|
4223
|
+
ops.push(chunk5NPGWGPO_cjs.ReflectionOp.objectLiteral);
|
|
4260
4224
|
return Processor.get().runProgram(createProgram({
|
|
4261
4225
|
ops,
|
|
4262
4226
|
stack,
|
|
@@ -4267,7 +4231,7 @@ function typeInfer(value) {
|
|
|
4267
4231
|
kind: exports.ReflectionKind.any
|
|
4268
4232
|
};
|
|
4269
4233
|
}
|
|
4270
|
-
|
|
4234
|
+
chunkUSNT2KNT_cjs.__name(typeInfer, "typeInfer");
|
|
4271
4235
|
typeInfer.__type = [
|
|
4272
4236
|
"value",
|
|
4273
4237
|
"Type",
|
|
@@ -4293,7 +4257,7 @@ function applyClassDecorators(type) {
|
|
|
4293
4257
|
}
|
|
4294
4258
|
}
|
|
4295
4259
|
}
|
|
4296
|
-
|
|
4260
|
+
chunkUSNT2KNT_cjs.__name(applyClassDecorators, "applyClassDecorators");
|
|
4297
4261
|
applyClassDecorators.__type = [
|
|
4298
4262
|
() => __\u03A9TypeClass,
|
|
4299
4263
|
"type",
|
|
@@ -4320,7 +4284,7 @@ function applyPropertyDecorator(type, data) {
|
|
|
4320
4284
|
}
|
|
4321
4285
|
}
|
|
4322
4286
|
}
|
|
4323
|
-
|
|
4287
|
+
chunkUSNT2KNT_cjs.__name(applyPropertyDecorator, "applyPropertyDecorator");
|
|
4324
4288
|
applyPropertyDecorator.__type = [
|
|
4325
4289
|
"Type",
|
|
4326
4290
|
"type",
|
|
@@ -4332,7 +4296,7 @@ applyPropertyDecorator.__type = [
|
|
|
4332
4296
|
function collapseFunctionToMethod(member) {
|
|
4333
4297
|
return member.kind === exports.ReflectionKind.propertySignature && member.type.kind === exports.ReflectionKind.function && member.type.function !== Function;
|
|
4334
4298
|
}
|
|
4335
|
-
|
|
4299
|
+
chunkUSNT2KNT_cjs.__name(collapseFunctionToMethod, "collapseFunctionToMethod");
|
|
4336
4300
|
collapseFunctionToMethod.__type = [
|
|
4337
4301
|
() => __\u03A9TypePropertySignature,
|
|
4338
4302
|
() => __\u03A9TypeMethodSignature,
|
|
@@ -4389,7 +4353,7 @@ function pushObjectLiteralTypes(type, types) {
|
|
|
4389
4353
|
if (decorators.length) type.decorators = decorators;
|
|
4390
4354
|
Object.assign(type.annotations, annotations);
|
|
4391
4355
|
}
|
|
4392
|
-
|
|
4356
|
+
chunkUSNT2KNT_cjs.__name(pushObjectLiteralTypes, "pushObjectLiteralTypes");
|
|
4393
4357
|
pushObjectLiteralTypes.__type = [
|
|
4394
4358
|
() => __\u03A9TypeObjectLiteral,
|
|
4395
4359
|
"type",
|
|
@@ -4431,7 +4395,7 @@ function getEnumType(values) {
|
|
|
4431
4395
|
});
|
|
4432
4396
|
return unboxUnion(union);
|
|
4433
4397
|
}
|
|
4434
|
-
|
|
4398
|
+
chunkUSNT2KNT_cjs.__name(getEnumType, "getEnumType");
|
|
4435
4399
|
getEnumType.__type = [
|
|
4436
4400
|
"values",
|
|
4437
4401
|
"Type",
|
|
@@ -4445,7 +4409,7 @@ function resolveFunction(fn, forObject) {
|
|
|
4445
4409
|
return void 0;
|
|
4446
4410
|
}
|
|
4447
4411
|
}
|
|
4448
|
-
|
|
4412
|
+
chunkUSNT2KNT_cjs.__name(resolveFunction, "resolveFunction");
|
|
4449
4413
|
resolveFunction.__type = [
|
|
4450
4414
|
"fn",
|
|
4451
4415
|
"forObject",
|
|
@@ -4454,7 +4418,6 @@ resolveFunction.__type = [
|
|
|
4454
4418
|
];
|
|
4455
4419
|
|
|
4456
4420
|
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/inheritance.js
|
|
4457
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
4458
4421
|
function findCommonLiteral(reflectionClasses) {
|
|
4459
4422
|
const candidates = {};
|
|
4460
4423
|
for (const schema of reflectionClasses) {
|
|
@@ -4489,91 +4452,16 @@ function findCommonLiteral(reflectionClasses) {
|
|
|
4489
4452
|
}
|
|
4490
4453
|
return;
|
|
4491
4454
|
}
|
|
4492
|
-
|
|
4455
|
+
chunkUSNT2KNT_cjs.__name(findCommonLiteral, "findCommonLiteral");
|
|
4493
4456
|
findCommonLiteral.__type = [
|
|
4494
4457
|
() => ReflectionClass,
|
|
4495
4458
|
"reflectionClasses",
|
|
4496
4459
|
"findCommonLiteral",
|
|
4497
4460
|
'PP"7!F2"P&-J/#'
|
|
4498
4461
|
];
|
|
4499
|
-
|
|
4500
|
-
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/type-serialization.js
|
|
4501
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
4502
|
-
|
|
4503
|
-
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/utils.js
|
|
4504
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
4505
|
-
|
|
4506
|
-
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-node/index.js
|
|
4507
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
4508
|
-
|
|
4509
|
-
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-node/rng.js
|
|
4510
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
4511
|
-
var rnds8Pool = new Uint8Array(256);
|
|
4512
|
-
var poolPtr = rnds8Pool.length;
|
|
4513
|
-
function rng() {
|
|
4514
|
-
if (poolPtr > rnds8Pool.length - 16) {
|
|
4515
|
-
crypto__default.default.randomFillSync(rnds8Pool);
|
|
4516
|
-
poolPtr = 0;
|
|
4517
|
-
}
|
|
4518
|
-
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
|
4519
|
-
}
|
|
4520
|
-
chunkWVKPC33H_cjs.__name(rng, "rng");
|
|
4521
|
-
|
|
4522
|
-
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-node/stringify.js
|
|
4523
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
4524
|
-
|
|
4525
|
-
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-node/validate.js
|
|
4526
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
4527
|
-
|
|
4528
|
-
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-node/regex.js
|
|
4529
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
4530
|
-
var regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
4531
|
-
|
|
4532
|
-
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-node/validate.js
|
|
4533
|
-
function validate(uuid2) {
|
|
4534
|
-
return typeof uuid2 === "string" && regex_default.test(uuid2);
|
|
4535
|
-
}
|
|
4536
|
-
chunkWVKPC33H_cjs.__name(validate, "validate");
|
|
4537
|
-
var validate_default = validate;
|
|
4538
|
-
|
|
4539
|
-
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-node/stringify.js
|
|
4540
|
-
var byteToHex = [];
|
|
4541
|
-
for (let i = 0; i < 256; ++i) {
|
|
4542
|
-
byteToHex.push((i + 256).toString(16).substr(1));
|
|
4543
|
-
}
|
|
4544
|
-
function stringify(arr, offset = 0) {
|
|
4545
|
-
const uuid2 = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
4546
|
-
if (!validate_default(uuid2)) {
|
|
4547
|
-
throw TypeError("Stringified UUID is invalid");
|
|
4548
|
-
}
|
|
4549
|
-
return uuid2;
|
|
4550
|
-
}
|
|
4551
|
-
chunkWVKPC33H_cjs.__name(stringify, "stringify");
|
|
4552
|
-
var stringify_default = stringify;
|
|
4553
|
-
|
|
4554
|
-
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-node/v4.js
|
|
4555
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
4556
|
-
function v4(options, buf, offset) {
|
|
4557
|
-
options = options || {};
|
|
4558
|
-
const rnds = options.random || (options.rng || rng)();
|
|
4559
|
-
rnds[6] = rnds[6] & 15 | 64;
|
|
4560
|
-
rnds[8] = rnds[8] & 63 | 128;
|
|
4561
|
-
if (buf) {
|
|
4562
|
-
offset = offset || 0;
|
|
4563
|
-
for (let i = 0; i < 16; ++i) {
|
|
4564
|
-
buf[offset + i] = rnds[i];
|
|
4565
|
-
}
|
|
4566
|
-
return buf;
|
|
4567
|
-
}
|
|
4568
|
-
return stringify_default(rnds);
|
|
4569
|
-
}
|
|
4570
|
-
chunkWVKPC33H_cjs.__name(v4, "v4");
|
|
4571
|
-
var v4_default = v4;
|
|
4572
|
-
|
|
4573
|
-
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/utils.js
|
|
4574
4462
|
var NoTypeReceived = class extends Error {
|
|
4575
4463
|
static {
|
|
4576
|
-
|
|
4464
|
+
chunkUSNT2KNT_cjs.__name(this, "NoTypeReceived");
|
|
4577
4465
|
}
|
|
4578
4466
|
constructor(message = "No type information received. Circular import or no runtime type available.") {
|
|
4579
4467
|
super(message);
|
|
@@ -4588,18 +4476,18 @@ NoTypeReceived.__type = [
|
|
|
4588
4476
|
'P7!P&2">#"0$5w%'
|
|
4589
4477
|
];
|
|
4590
4478
|
function uuid() {
|
|
4591
|
-
return
|
|
4479
|
+
return uuid$1.v4();
|
|
4592
4480
|
}
|
|
4593
|
-
|
|
4481
|
+
chunkUSNT2KNT_cjs.__name(uuid, "uuid");
|
|
4594
4482
|
uuid.__type = [
|
|
4595
4483
|
"uuid",
|
|
4596
4484
|
"P&/!"
|
|
4597
4485
|
];
|
|
4598
4486
|
function writeUuid(buffer, offset = 0) {
|
|
4599
|
-
|
|
4487
|
+
uuid$1.v4(void 0, buffer, offset);
|
|
4600
4488
|
return buffer;
|
|
4601
4489
|
}
|
|
4602
|
-
|
|
4490
|
+
chunkUSNT2KNT_cjs.__name(writeUuid, "writeUuid");
|
|
4603
4491
|
writeUuid.__type = [
|
|
4604
4492
|
"buffer",
|
|
4605
4493
|
"offset",
|
|
@@ -4608,9 +4496,9 @@ writeUuid.__type = [
|
|
|
4608
4496
|
`PW2!'2">#W/$`
|
|
4609
4497
|
];
|
|
4610
4498
|
function stringifyUuid(buffer, offset = 0) {
|
|
4611
|
-
return
|
|
4499
|
+
return uuid$1.stringify(buffer, offset);
|
|
4612
4500
|
}
|
|
4613
|
-
|
|
4501
|
+
chunkUSNT2KNT_cjs.__name(stringifyUuid, "stringifyUuid");
|
|
4614
4502
|
stringifyUuid.__type = [
|
|
4615
4503
|
"buffer",
|
|
4616
4504
|
"offset",
|
|
@@ -4658,7 +4546,7 @@ function regExpFromString(v) {
|
|
|
4658
4546
|
}
|
|
4659
4547
|
return new RegExp(v);
|
|
4660
4548
|
}
|
|
4661
|
-
|
|
4549
|
+
chunkUSNT2KNT_cjs.__name(regExpFromString, "regExpFromString");
|
|
4662
4550
|
regExpFromString.__type = [
|
|
4663
4551
|
"v",
|
|
4664
4552
|
"regExpFromString",
|
|
@@ -4675,7 +4563,7 @@ function __assignType4(fn, args) {
|
|
|
4675
4563
|
fn.__type = args;
|
|
4676
4564
|
return fn;
|
|
4677
4565
|
}
|
|
4678
|
-
|
|
4566
|
+
chunkUSNT2KNT_cjs.__name(__assignType4, "__assignType");
|
|
4679
4567
|
var __\u03A9SerializedTypeAnnotations = [
|
|
4680
4568
|
() => __\u03A9EntityOptions,
|
|
4681
4569
|
"entityOptions",
|
|
@@ -5036,7 +4924,7 @@ var envGlobal = typeof globalThis !== "undefined" ? globalThis : typeof global !
|
|
|
5036
4924
|
function isWithSerializedAnnotations(type) {
|
|
5037
4925
|
return isWithAnnotations(type);
|
|
5038
4926
|
}
|
|
5039
|
-
|
|
4927
|
+
chunkUSNT2KNT_cjs.__name(isWithSerializedAnnotations, "isWithSerializedAnnotations");
|
|
5040
4928
|
isWithSerializedAnnotations.__type = [
|
|
5041
4929
|
"type",
|
|
5042
4930
|
"isWithSerializedAnnotations",
|
|
@@ -5055,7 +4943,7 @@ var __\u03A9SerializerState = [
|
|
|
5055
4943
|
function filterRemoveFunctions(v) {
|
|
5056
4944
|
return v.kind !== exports.ReflectionKind.function && v.kind !== exports.ReflectionKind.method && v.kind !== exports.ReflectionKind.methodSignature;
|
|
5057
4945
|
}
|
|
5058
|
-
|
|
4946
|
+
chunkUSNT2KNT_cjs.__name(filterRemoveFunctions, "filterRemoveFunctions");
|
|
5059
4947
|
filterRemoveFunctions.__type = [
|
|
5060
4948
|
"Type",
|
|
5061
4949
|
"v",
|
|
@@ -5094,7 +4982,7 @@ function exportEntityOptions(type, result) {
|
|
|
5094
4982
|
result.entityOptions = entityAttributes;
|
|
5095
4983
|
}
|
|
5096
4984
|
}
|
|
5097
|
-
|
|
4985
|
+
chunkUSNT2KNT_cjs.__name(exportEntityOptions, "exportEntityOptions");
|
|
5098
4986
|
exportEntityOptions.__type = [
|
|
5099
4987
|
() => __\u03A9TypeClass,
|
|
5100
4988
|
() => __\u03A9TypeObjectLiteral,
|
|
@@ -5117,7 +5005,7 @@ function assignEntityOptions(type, serialized) {
|
|
|
5117
5005
|
entity2
|
|
5118
5006
|
]);
|
|
5119
5007
|
}
|
|
5120
|
-
|
|
5008
|
+
chunkUSNT2KNT_cjs.__name(assignEntityOptions, "assignEntityOptions");
|
|
5121
5009
|
assignEntityOptions.__type = [
|
|
5122
5010
|
() => __\u03A9TypeClass,
|
|
5123
5011
|
() => __\u03A9TypeObjectLiteral,
|
|
@@ -5180,13 +5068,13 @@ function serialize(type, state2) {
|
|
|
5180
5068
|
}
|
|
5181
5069
|
case exports.ReflectionKind.class: {
|
|
5182
5070
|
const types = state2.disableMethods ? type.types.filter(filterRemoveFunctions) : type.types;
|
|
5183
|
-
const parent =
|
|
5071
|
+
const parent = chunkZDFKNN7Y_cjs.getParentClass(type.classType);
|
|
5184
5072
|
let superClass = void 0;
|
|
5185
5073
|
try {
|
|
5186
5074
|
superClass = parent ? serialize(reflect(parent), state2) : void 0;
|
|
5187
5075
|
} catch {
|
|
5188
5076
|
}
|
|
5189
|
-
const classType =
|
|
5077
|
+
const classType = chunkZDFKNN7Y_cjs.getClassName(type.classType);
|
|
5190
5078
|
const globalObject = envGlobal && envGlobal[classType] === type.classType;
|
|
5191
5079
|
Object.assign(result, {
|
|
5192
5080
|
kind: exports.ReflectionKind.class,
|
|
@@ -5435,7 +5323,7 @@ function serialize(type, state2) {
|
|
|
5435
5323
|
}
|
|
5436
5324
|
return index;
|
|
5437
5325
|
}
|
|
5438
|
-
|
|
5326
|
+
chunkUSNT2KNT_cjs.__name(serialize, "serialize");
|
|
5439
5327
|
serialize.__type = [
|
|
5440
5328
|
"Type",
|
|
5441
5329
|
"type",
|
|
@@ -5455,7 +5343,7 @@ function serializeType(type, state2 = {}) {
|
|
|
5455
5343
|
serialize(type, serializedState);
|
|
5456
5344
|
return types;
|
|
5457
5345
|
}
|
|
5458
|
-
|
|
5346
|
+
chunkUSNT2KNT_cjs.__name(serializeType, "serializeType");
|
|
5459
5347
|
serializeType.__type = [
|
|
5460
5348
|
"Type",
|
|
5461
5349
|
"type",
|
|
@@ -5719,7 +5607,7 @@ function deserialize(type, state2, parent) {
|
|
|
5719
5607
|
}
|
|
5720
5608
|
return result;
|
|
5721
5609
|
}
|
|
5722
|
-
|
|
5610
|
+
chunkUSNT2KNT_cjs.__name(deserialize, "deserialize");
|
|
5723
5611
|
function deserializeType(types, state2 = {}) {
|
|
5724
5612
|
if (!types || types.length === 0) return {
|
|
5725
5613
|
kind: exports.ReflectionKind.unknown
|
|
@@ -5730,7 +5618,7 @@ function deserializeType(types, state2 = {}) {
|
|
|
5730
5618
|
types
|
|
5731
5619
|
});
|
|
5732
5620
|
}
|
|
5733
|
-
|
|
5621
|
+
chunkUSNT2KNT_cjs.__name(deserializeType, "deserializeType");
|
|
5734
5622
|
deserializeType.__type = [
|
|
5735
5623
|
() => __\u03A9SerializedTypes,
|
|
5736
5624
|
"types",
|
|
@@ -5748,32 +5636,32 @@ function __assignType5(fn, args) {
|
|
|
5748
5636
|
fn.__type = args;
|
|
5749
5637
|
return fn;
|
|
5750
5638
|
}
|
|
5751
|
-
|
|
5639
|
+
chunkUSNT2KNT_cjs.__name(__assignType5, "__assignType");
|
|
5752
5640
|
var __\u03A9ReceiveType = [
|
|
5753
5641
|
"T",
|
|
5754
5642
|
() => __\u03A9Packed,
|
|
5755
5643
|
"Type",
|
|
5756
|
-
() =>
|
|
5644
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
5757
5645
|
"ReceiveType",
|
|
5758
5646
|
'b!Pn""w#e"!o$"Jw%y'
|
|
5759
5647
|
];
|
|
5760
5648
|
function resolveReceiveType(type) {
|
|
5761
5649
|
if (!type) throw new NoTypeReceived();
|
|
5762
5650
|
let typeFn = void 0;
|
|
5763
|
-
if (
|
|
5651
|
+
if (chunkZDFKNN7Y_cjs.isArray(type)) {
|
|
5764
5652
|
if (type.__type) return type.__type;
|
|
5765
5653
|
if (type[type.length - 1] === "n!" || type[type.length - 1] === "P7!") {
|
|
5766
5654
|
typeFn = type[0];
|
|
5767
|
-
type =
|
|
5655
|
+
type = chunkZDFKNN7Y_cjs.isFunction(typeFn) ? typeFn() : typeFn;
|
|
5768
5656
|
if (!type) {
|
|
5769
5657
|
throw new Error(`No type resolved for ${String(typeFn)}. Circular import or no runtime type available.`);
|
|
5770
5658
|
}
|
|
5771
5659
|
}
|
|
5772
5660
|
}
|
|
5773
5661
|
if (type instanceof ReflectionClass) return type.type;
|
|
5774
|
-
if (
|
|
5662
|
+
if (chunkZDFKNN7Y_cjs.isArray(type) && type.__type) return type.__type;
|
|
5775
5663
|
if (isType(type)) return type;
|
|
5776
|
-
if (
|
|
5664
|
+
if (chunkZDFKNN7Y_cjs.isClass(type) || chunkZDFKNN7Y_cjs.isGlobalClass(type)) {
|
|
5777
5665
|
if (!("__type" in type)) {
|
|
5778
5666
|
if (type.__cached_type) return type.__cached_type;
|
|
5779
5667
|
return type.__cached_type = {
|
|
@@ -5788,12 +5676,12 @@ function resolveReceiveType(type) {
|
|
|
5788
5676
|
reuseCached: true
|
|
5789
5677
|
});
|
|
5790
5678
|
}
|
|
5791
|
-
|
|
5679
|
+
chunkUSNT2KNT_cjs.__name(resolveReceiveType, "resolveReceiveType");
|
|
5792
5680
|
resolveReceiveType.__type = [
|
|
5793
5681
|
() => __\u03A9Packed,
|
|
5794
5682
|
"Type",
|
|
5795
|
-
() =>
|
|
5796
|
-
() =>
|
|
5683
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
5684
|
+
() => chunkZDFKNN7Y_cjs.__ΩAbstractClassType,
|
|
5797
5685
|
"ReflectionClass",
|
|
5798
5686
|
"type",
|
|
5799
5687
|
"resolveReceiveType",
|
|
@@ -5802,7 +5690,7 @@ resolveReceiveType.__type = [
|
|
|
5802
5690
|
function reflect(o, ...args) {
|
|
5803
5691
|
return resolveRuntimeType(o, args);
|
|
5804
5692
|
}
|
|
5805
|
-
|
|
5693
|
+
chunkUSNT2KNT_cjs.__name(reflect, "reflect");
|
|
5806
5694
|
reflect.__type = [
|
|
5807
5695
|
"o",
|
|
5808
5696
|
"args",
|
|
@@ -5817,7 +5705,7 @@ function reflectOrUndefined(o, ...args) {
|
|
|
5817
5705
|
return void 0;
|
|
5818
5706
|
}
|
|
5819
5707
|
}
|
|
5820
|
-
|
|
5708
|
+
chunkUSNT2KNT_cjs.__name(reflectOrUndefined, "reflectOrUndefined");
|
|
5821
5709
|
reflectOrUndefined.__type = [
|
|
5822
5710
|
"o",
|
|
5823
5711
|
"args",
|
|
@@ -5853,7 +5741,7 @@ function valuesOf(args = [], p = valuesOf.\u03A9?.[0]) {
|
|
|
5853
5741
|
}
|
|
5854
5742
|
return [];
|
|
5855
5743
|
}
|
|
5856
|
-
|
|
5744
|
+
chunkUSNT2KNT_cjs.__name(valuesOf, "valuesOf");
|
|
5857
5745
|
valuesOf.__type = [
|
|
5858
5746
|
"args",
|
|
5859
5747
|
() => [],
|
|
@@ -5881,7 +5769,7 @@ function propertiesOf(args = [], p = propertiesOf.\u03A9?.[0]) {
|
|
|
5881
5769
|
}
|
|
5882
5770
|
return [];
|
|
5883
5771
|
}
|
|
5884
|
-
|
|
5772
|
+
chunkUSNT2KNT_cjs.__name(propertiesOf, "propertiesOf");
|
|
5885
5773
|
propertiesOf.__type = [
|
|
5886
5774
|
"args",
|
|
5887
5775
|
() => [],
|
|
@@ -5897,7 +5785,7 @@ function getNominalId(args = [], p = getNominalId.\u03A9?.[0]) {
|
|
|
5897
5785
|
if (t2.kind === exports.ReflectionKind.class || t2.kind === exports.ReflectionKind.objectLiteral) return t2.id;
|
|
5898
5786
|
return;
|
|
5899
5787
|
}
|
|
5900
|
-
|
|
5788
|
+
chunkUSNT2KNT_cjs.__name(getNominalId, "getNominalId");
|
|
5901
5789
|
getNominalId.__type = [
|
|
5902
5790
|
"args",
|
|
5903
5791
|
() => [],
|
|
@@ -5913,7 +5801,7 @@ function typeOf(args = [], p = typeOf.\u03A9?.[0]) {
|
|
|
5913
5801
|
}
|
|
5914
5802
|
throw new Error("No type given");
|
|
5915
5803
|
}
|
|
5916
|
-
|
|
5804
|
+
chunkUSNT2KNT_cjs.__name(typeOf, "typeOf");
|
|
5917
5805
|
typeOf.__type = [
|
|
5918
5806
|
"args",
|
|
5919
5807
|
() => [],
|
|
@@ -5932,7 +5820,7 @@ function removeTypeName(type) {
|
|
|
5932
5820
|
o.typeArguments = void 0;
|
|
5933
5821
|
return o;
|
|
5934
5822
|
}
|
|
5935
|
-
|
|
5823
|
+
chunkUSNT2KNT_cjs.__name(removeTypeName, "removeTypeName");
|
|
5936
5824
|
removeTypeName.__type = [
|
|
5937
5825
|
"type",
|
|
5938
5826
|
"removeTypeName",
|
|
@@ -5940,7 +5828,7 @@ removeTypeName.__type = [
|
|
|
5940
5828
|
];
|
|
5941
5829
|
function removeNominal(type) {
|
|
5942
5830
|
if (!type) return type;
|
|
5943
|
-
if (
|
|
5831
|
+
if (chunkZDFKNN7Y_cjs.isArray(type)) {
|
|
5944
5832
|
return type.map(__assignType5((v) => removeNominal(v), [
|
|
5945
5833
|
"v",
|
|
5946
5834
|
"",
|
|
@@ -5956,7 +5844,7 @@ function removeNominal(type) {
|
|
|
5956
5844
|
}
|
|
5957
5845
|
return type;
|
|
5958
5846
|
}
|
|
5959
|
-
|
|
5847
|
+
chunkUSNT2KNT_cjs.__name(removeNominal, "removeNominal");
|
|
5960
5848
|
removeNominal.__type = [
|
|
5961
5849
|
"type",
|
|
5962
5850
|
"removeNominal",
|
|
@@ -5968,7 +5856,7 @@ function getProperty(type, memberName) {
|
|
|
5968
5856
|
}
|
|
5969
5857
|
return;
|
|
5970
5858
|
}
|
|
5971
|
-
|
|
5859
|
+
chunkUSNT2KNT_cjs.__name(getProperty, "getProperty");
|
|
5972
5860
|
getProperty.__type = [
|
|
5973
5861
|
() => __\u03A9TypeObjectLiteral,
|
|
5974
5862
|
() => __\u03A9TypeClass,
|
|
@@ -5994,7 +5882,7 @@ function toSignature(type) {
|
|
|
5994
5882
|
kind: exports.ReflectionKind.methodSignature
|
|
5995
5883
|
};
|
|
5996
5884
|
}
|
|
5997
|
-
|
|
5885
|
+
chunkUSNT2KNT_cjs.__name(toSignature, "toSignature");
|
|
5998
5886
|
toSignature.__type = [
|
|
5999
5887
|
() => __\u03A9TypeProperty,
|
|
6000
5888
|
() => __\u03A9TypeMethod,
|
|
@@ -6015,7 +5903,7 @@ function hasCircularReference(type) {
|
|
|
6015
5903
|
});
|
|
6016
5904
|
return jit.hasCircularReference = hasCircular;
|
|
6017
5905
|
}
|
|
6018
|
-
|
|
5906
|
+
chunkUSNT2KNT_cjs.__name(hasCircularReference, "hasCircularReference");
|
|
6019
5907
|
hasCircularReference.__type = [
|
|
6020
5908
|
"Type",
|
|
6021
5909
|
"type",
|
|
@@ -6032,7 +5920,7 @@ function extendPath(path, member) {
|
|
|
6032
5920
|
if (path) return path + "." + String(name);
|
|
6033
5921
|
return String(name);
|
|
6034
5922
|
}
|
|
6035
|
-
|
|
5923
|
+
chunkUSNT2KNT_cjs.__name(extendPath, "extendPath");
|
|
6036
5924
|
extendPath.__type = [
|
|
6037
5925
|
"path",
|
|
6038
5926
|
"Type",
|
|
@@ -6129,7 +6017,7 @@ function visit(type, visitor, onCircular) {
|
|
|
6129
6017
|
}
|
|
6130
6018
|
}
|
|
6131
6019
|
}
|
|
6132
|
-
|
|
6020
|
+
chunkUSNT2KNT_cjs.__name(visit, "visit");
|
|
6133
6021
|
visit.__type = [
|
|
6134
6022
|
"Type",
|
|
6135
6023
|
"type",
|
|
@@ -6157,7 +6045,7 @@ function hasFunctionExpression(fn) {
|
|
|
6157
6045
|
if (code[0] === "`" && code[code.length - 1] === "`") return false;
|
|
6158
6046
|
return code.includes("(");
|
|
6159
6047
|
}
|
|
6160
|
-
|
|
6048
|
+
chunkUSNT2KNT_cjs.__name(hasFunctionExpression, "hasFunctionExpression");
|
|
6161
6049
|
hasFunctionExpression.__type = [
|
|
6162
6050
|
() => Function,
|
|
6163
6051
|
"fn",
|
|
@@ -6166,7 +6054,7 @@ hasFunctionExpression.__type = [
|
|
|
6166
6054
|
];
|
|
6167
6055
|
var ReflectionParameter = class {
|
|
6168
6056
|
static {
|
|
6169
|
-
|
|
6057
|
+
chunkUSNT2KNT_cjs.__name(this, "ReflectionParameter");
|
|
6170
6058
|
}
|
|
6171
6059
|
constructor(parameter, reflectionFunction) {
|
|
6172
6060
|
this.parameter = parameter;
|
|
@@ -6273,7 +6161,7 @@ var ReflectionParameter = class {
|
|
|
6273
6161
|
};
|
|
6274
6162
|
var ReflectionFunction = class _ReflectionFunction {
|
|
6275
6163
|
static {
|
|
6276
|
-
|
|
6164
|
+
chunkUSNT2KNT_cjs.__name(this, "ReflectionFunction");
|
|
6277
6165
|
}
|
|
6278
6166
|
constructor(type) {
|
|
6279
6167
|
this.type = type;
|
|
@@ -6376,7 +6264,7 @@ var ReflectionFunction = class _ReflectionFunction {
|
|
|
6376
6264
|
};
|
|
6377
6265
|
var ReflectionMethod = class _ReflectionMethod extends ReflectionFunction {
|
|
6378
6266
|
static {
|
|
6379
|
-
|
|
6267
|
+
chunkUSNT2KNT_cjs.__name(this, "ReflectionMethod");
|
|
6380
6268
|
}
|
|
6381
6269
|
constructor(type, reflectionClass) {
|
|
6382
6270
|
super(type);
|
|
@@ -6445,7 +6333,7 @@ function resolveForeignReflectionClass(property) {
|
|
|
6445
6333
|
}
|
|
6446
6334
|
throw new Error(`Property ${property.name} is neither a Reference nor a BackReference.`);
|
|
6447
6335
|
}
|
|
6448
|
-
|
|
6336
|
+
chunkUSNT2KNT_cjs.__name(resolveForeignReflectionClass, "resolveForeignReflectionClass");
|
|
6449
6337
|
resolveForeignReflectionClass.__type = [
|
|
6450
6338
|
"ReflectionProperty",
|
|
6451
6339
|
"property",
|
|
@@ -6459,7 +6347,7 @@ function resolveClassType(type) {
|
|
|
6459
6347
|
}
|
|
6460
6348
|
return ReflectionClass.from(type);
|
|
6461
6349
|
}
|
|
6462
|
-
|
|
6350
|
+
chunkUSNT2KNT_cjs.__name(resolveClassType, "resolveClassType");
|
|
6463
6351
|
resolveClassType.__type = [
|
|
6464
6352
|
"Type",
|
|
6465
6353
|
"type",
|
|
@@ -6469,7 +6357,7 @@ resolveClassType.__type = [
|
|
|
6469
6357
|
];
|
|
6470
6358
|
var ReflectionProperty = class _ReflectionProperty {
|
|
6471
6359
|
static {
|
|
6472
|
-
|
|
6360
|
+
chunkUSNT2KNT_cjs.__name(this, "ReflectionProperty");
|
|
6473
6361
|
}
|
|
6474
6362
|
constructor(property, reflectionClass) {
|
|
6475
6363
|
this.property = property;
|
|
@@ -6737,7 +6625,7 @@ var __\u03A9SerializerFn = [
|
|
|
6737
6625
|
];
|
|
6738
6626
|
var TData = class {
|
|
6739
6627
|
static {
|
|
6740
|
-
|
|
6628
|
+
chunkUSNT2KNT_cjs.__name(this, "TData");
|
|
6741
6629
|
}
|
|
6742
6630
|
constructor() {
|
|
6743
6631
|
this.validator = false;
|
|
@@ -6757,7 +6645,7 @@ TData.__type = [
|
|
|
6757
6645
|
},
|
|
6758
6646
|
() => __\u03A9Packed,
|
|
6759
6647
|
"Type",
|
|
6760
|
-
() =>
|
|
6648
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
6761
6649
|
"type",
|
|
6762
6650
|
"data",
|
|
6763
6651
|
function() {
|
|
@@ -6772,7 +6660,7 @@ TData.__type = [
|
|
|
6772
6660
|
];
|
|
6773
6661
|
var EntityData = class {
|
|
6774
6662
|
static {
|
|
6775
|
-
|
|
6663
|
+
chunkUSNT2KNT_cjs.__name(this, "EntityData");
|
|
6776
6664
|
}
|
|
6777
6665
|
constructor() {
|
|
6778
6666
|
this.disableConstructor = false;
|
|
@@ -6812,7 +6700,7 @@ function applyEntityOptions(reflection, entityOptions) {
|
|
|
6812
6700
|
if (entityOptions.singleTableInheritance !== void 0) reflection.singleTableInheritance = entityOptions.singleTableInheritance;
|
|
6813
6701
|
if (entityOptions.indexes !== void 0) reflection.indexes = entityOptions.indexes;
|
|
6814
6702
|
}
|
|
6815
|
-
|
|
6703
|
+
chunkUSNT2KNT_cjs.__name(applyEntityOptions, "applyEntityOptions");
|
|
6816
6704
|
applyEntityOptions.__type = [
|
|
6817
6705
|
"ReflectionClass",
|
|
6818
6706
|
"reflection",
|
|
@@ -6823,7 +6711,7 @@ applyEntityOptions.__type = [
|
|
|
6823
6711
|
];
|
|
6824
6712
|
var ReflectionClass = class _ReflectionClass {
|
|
6825
6713
|
static {
|
|
6826
|
-
|
|
6714
|
+
chunkUSNT2KNT_cjs.__name(this, "ReflectionClass");
|
|
6827
6715
|
}
|
|
6828
6716
|
constructor(type, parent) {
|
|
6829
6717
|
this.type = type;
|
|
@@ -6922,7 +6810,7 @@ var ReflectionClass = class _ReflectionClass {
|
|
|
6922
6810
|
return this.type.kind === exports.ReflectionKind.class ? this.type.classType : Object;
|
|
6923
6811
|
}
|
|
6924
6812
|
getClassName() {
|
|
6925
|
-
return this.type.kind === exports.ReflectionKind.class ? this.type.typeName ||
|
|
6813
|
+
return this.type.kind === exports.ReflectionKind.class ? this.type.typeName || chunkZDFKNN7Y_cjs.getClassName(this.getClassType()) : this.type.typeName || "Object";
|
|
6926
6814
|
}
|
|
6927
6815
|
createDefaultObject() {
|
|
6928
6816
|
try {
|
|
@@ -6958,7 +6846,7 @@ var ReflectionClass = class _ReflectionClass {
|
|
|
6958
6846
|
return this.autoIncrements[0];
|
|
6959
6847
|
}
|
|
6960
6848
|
isSchemaOf(classType) {
|
|
6961
|
-
return
|
|
6849
|
+
return chunkZDFKNN7Y_cjs.isPrototypeOfBase(this.getClassType(), classType);
|
|
6962
6850
|
}
|
|
6963
6851
|
hasPrimary() {
|
|
6964
6852
|
return this.primaries.length > 0;
|
|
@@ -6976,15 +6864,15 @@ var ReflectionClass = class _ReflectionClass {
|
|
|
6976
6864
|
const property = this.properties.find((v) => v.getName() === name);
|
|
6977
6865
|
if (!property) throw new Error(`Property ${String(name)} not known in ${this.getClassName()}`);
|
|
6978
6866
|
const stringName = memberNameToString(name);
|
|
6979
|
-
|
|
6867
|
+
chunkZDFKNN7Y_cjs.arrayRemoveItem(this.propertyNames, stringName);
|
|
6980
6868
|
const indexType = this.type.types.findIndex((v) => (v.kind === exports.ReflectionKind.property || v.kind === exports.ReflectionKind.propertySignature) && v.name === name);
|
|
6981
6869
|
if (indexType !== -1) this.type.types.splice(indexType, 1);
|
|
6982
|
-
|
|
6870
|
+
chunkZDFKNN7Y_cjs.arrayRemoveItem(this.properties, property);
|
|
6983
6871
|
if (property.isReference() || property.isBackReference()) {
|
|
6984
|
-
|
|
6872
|
+
chunkZDFKNN7Y_cjs.arrayRemoveItem(this.references, property);
|
|
6985
6873
|
}
|
|
6986
|
-
if (property.isPrimaryKey())
|
|
6987
|
-
if (property.isAutoIncrement())
|
|
6874
|
+
if (property.isPrimaryKey()) chunkZDFKNN7Y_cjs.arrayRemoveItem(this.primaries, property);
|
|
6875
|
+
if (property.isAutoIncrement()) chunkZDFKNN7Y_cjs.arrayRemoveItem(this.autoIncrements, property);
|
|
6988
6876
|
const index = property.getIndex();
|
|
6989
6877
|
if (index) {
|
|
6990
6878
|
const indexFound = this.indexes.findIndex((v) => v.names.length === 0 && v.names[0] === property.name);
|
|
@@ -7115,7 +7003,7 @@ var ReflectionClass = class _ReflectionClass {
|
|
|
7115
7003
|
static from(classTypeIn = this.from.\u03A9?.[0], args = []) {
|
|
7116
7004
|
this.from.\u03A9 = void 0;
|
|
7117
7005
|
if (!classTypeIn) throw new Error(`No type given in ReflectionClass.from<T>`);
|
|
7118
|
-
if (
|
|
7006
|
+
if (chunkZDFKNN7Y_cjs.isArray(classTypeIn)) classTypeIn = resolveReceiveType(classTypeIn);
|
|
7119
7007
|
if (classTypeIn instanceof _ReflectionClass) return classTypeIn;
|
|
7120
7008
|
if (isType(classTypeIn)) {
|
|
7121
7009
|
if (classTypeIn.kind === exports.ReflectionKind.objectLiteral || classTypeIn.kind === exports.ReflectionKind.class && classTypeIn.typeArguments) {
|
|
@@ -7143,7 +7031,7 @@ var ReflectionClass = class _ReflectionClass {
|
|
|
7143
7031
|
types: []
|
|
7144
7032
|
};
|
|
7145
7033
|
if (type.kind !== exports.ReflectionKind.class) {
|
|
7146
|
-
throw new Error(`Given class is not a class but kind ${exports.ReflectionKind[type.kind]}. classType: ${
|
|
7034
|
+
throw new Error(`Given class is not a class but kind ${exports.ReflectionKind[type.kind]}. classType: ${chunkZDFKNN7Y_cjs.stringifyValueWithType(classType)}`);
|
|
7147
7035
|
}
|
|
7148
7036
|
const parentProto = Object.getPrototypeOf(classType.prototype);
|
|
7149
7037
|
const parentReflectionClass = parentProto && parentProto.constructor !== Object ? _ReflectionClass.from(parentProto, type.extendsArguments) : void 0;
|
|
@@ -7300,10 +7188,10 @@ var ReflectionClass = class _ReflectionClass {
|
|
|
7300
7188
|
candidates.push(backRef);
|
|
7301
7189
|
}
|
|
7302
7190
|
if (candidates.length > 1) {
|
|
7303
|
-
throw new Error(`Class ${this.getClassName()} has multiple potential reverse references [${candidates.map((v) => v.name).join(", ")}] for ${fromReference.name} to class ${
|
|
7191
|
+
throw new Error(`Class ${this.getClassName()} has multiple potential reverse references [${candidates.map((v) => v.name).join(", ")}] for ${fromReference.name} to class ${chunkZDFKNN7Y_cjs.getClassName(toClassType)}. Please specify each back reference by using 'mappedBy', e.g. @t.backReference({mappedBy: 'fieldNameOnTheOtherSide'} so its not ambiguous anymore.`);
|
|
7304
7192
|
}
|
|
7305
7193
|
if (candidates.length === 1) return candidates[0];
|
|
7306
|
-
throw new Error(`Class ${this.getClassName()} has no reference to class ${
|
|
7194
|
+
throw new Error(`Class ${this.getClassName()} has no reference to class ${chunkZDFKNN7Y_cjs.getClassName(toClassType)} defined.`);
|
|
7307
7195
|
}
|
|
7308
7196
|
extractPrimaryKey(item) {
|
|
7309
7197
|
const primaryKey = {};
|
|
@@ -7341,7 +7229,7 @@ function __assignType6(fn, args) {
|
|
|
7341
7229
|
fn.__type = args;
|
|
7342
7230
|
return fn;
|
|
7343
7231
|
}
|
|
7344
|
-
|
|
7232
|
+
chunkUSNT2KNT_cjs.__name(__assignType6, "__assignType");
|
|
7345
7233
|
var __\u03A9ReflectionVisibility = [
|
|
7346
7234
|
"public",
|
|
7347
7235
|
"protected",
|
|
@@ -7462,7 +7350,7 @@ function applyScheduledAnnotations(type) {
|
|
|
7462
7350
|
type.scheduleDecorators = void 0;
|
|
7463
7351
|
}
|
|
7464
7352
|
}
|
|
7465
|
-
|
|
7353
|
+
chunkUSNT2KNT_cjs.__name(applyScheduledAnnotations, "applyScheduledAnnotations");
|
|
7466
7354
|
applyScheduledAnnotations.__type = [
|
|
7467
7355
|
"Type",
|
|
7468
7356
|
"type",
|
|
@@ -7470,11 +7358,11 @@ applyScheduledAnnotations.__type = [
|
|
|
7470
7358
|
'P"w!2""/#'
|
|
7471
7359
|
];
|
|
7472
7360
|
function hasTypeInformation(object) {
|
|
7473
|
-
return "__type" in object &&
|
|
7361
|
+
return "__type" in object && chunkZDFKNN7Y_cjs.isArray(object.__type);
|
|
7474
7362
|
}
|
|
7475
|
-
|
|
7363
|
+
chunkUSNT2KNT_cjs.__name(hasTypeInformation, "hasTypeInformation");
|
|
7476
7364
|
hasTypeInformation.__type = [
|
|
7477
|
-
() =>
|
|
7365
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
7478
7366
|
() => Function,
|
|
7479
7367
|
"object",
|
|
7480
7368
|
"hasTypeInformation",
|
|
@@ -7488,7 +7376,7 @@ function getTypeJitContainer(type) {
|
|
|
7488
7376
|
if (!type.jit) type.jit = {};
|
|
7489
7377
|
return type.jit;
|
|
7490
7378
|
}
|
|
7491
|
-
|
|
7379
|
+
chunkUSNT2KNT_cjs.__name(getTypeJitContainer, "getTypeJitContainer");
|
|
7492
7380
|
getTypeJitContainer.__type = [
|
|
7493
7381
|
"Type",
|
|
7494
7382
|
"type",
|
|
@@ -7499,7 +7387,7 @@ getTypeJitContainer.__type = [
|
|
|
7499
7387
|
function clearTypeJitContainer(type) {
|
|
7500
7388
|
type.jit = {};
|
|
7501
7389
|
}
|
|
7502
|
-
|
|
7390
|
+
chunkUSNT2KNT_cjs.__name(clearTypeJitContainer, "clearTypeJitContainer");
|
|
7503
7391
|
clearTypeJitContainer.__type = [
|
|
7504
7392
|
"Type",
|
|
7505
7393
|
"type",
|
|
@@ -7573,9 +7461,9 @@ var __\u03A9TypeString = [
|
|
|
7573
7461
|
'P"w!a"4#"w$4%8Mw&y'
|
|
7574
7462
|
];
|
|
7575
7463
|
function isIntegerType(type) {
|
|
7576
|
-
return type.kind === exports.ReflectionKind.number && type.brand !== void 0 && type.brand >=
|
|
7464
|
+
return type.kind === exports.ReflectionKind.number && type.brand !== void 0 && type.brand >= chunk5NPGWGPO_cjs.TypeNumberBrand.integer && type.brand <= chunk5NPGWGPO_cjs.TypeNumberBrand.uint32;
|
|
7577
7465
|
}
|
|
7578
|
-
|
|
7466
|
+
chunkUSNT2KNT_cjs.__name(isIntegerType, "isIntegerType");
|
|
7579
7467
|
isIntegerType.__type = [
|
|
7580
7468
|
"Type",
|
|
7581
7469
|
"type",
|
|
@@ -7674,7 +7562,7 @@ var __\u03A9TypeRegexp = [
|
|
|
7674
7562
|
];
|
|
7675
7563
|
var User = class User2 {
|
|
7676
7564
|
static {
|
|
7677
|
-
|
|
7565
|
+
chunkUSNT2KNT_cjs.__name(this, "User");
|
|
7678
7566
|
}
|
|
7679
7567
|
getUserName() {
|
|
7680
7568
|
return "";
|
|
@@ -7810,7 +7698,7 @@ var __\u03A9TypeClass = [
|
|
|
7810
7698
|
"kind",
|
|
7811
7699
|
"Type",
|
|
7812
7700
|
"parent",
|
|
7813
|
-
() =>
|
|
7701
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
7814
7702
|
"classType",
|
|
7815
7703
|
"description",
|
|
7816
7704
|
"extendsArguments",
|
|
@@ -8043,7 +7931,7 @@ var __\u03A9InlineRuntimeType = [
|
|
|
8043
7931
|
function isType(entry) {
|
|
8044
7932
|
return entry && "object" === typeof entry && "number" === typeof entry.kind;
|
|
8045
7933
|
}
|
|
8046
|
-
|
|
7934
|
+
chunkUSNT2KNT_cjs.__name(isType, "isType");
|
|
8047
7935
|
isType.__type = [
|
|
8048
7936
|
"entry",
|
|
8049
7937
|
"isType",
|
|
@@ -8052,7 +7940,7 @@ isType.__type = [
|
|
|
8052
7940
|
function isBinary(type) {
|
|
8053
7941
|
return type.kind === exports.ReflectionKind.class && binaryTypes.includes(type.classType);
|
|
8054
7942
|
}
|
|
8055
|
-
|
|
7943
|
+
chunkUSNT2KNT_cjs.__name(isBinary, "isBinary");
|
|
8056
7944
|
isBinary.__type = [
|
|
8057
7945
|
"Type",
|
|
8058
7946
|
"type",
|
|
@@ -8062,7 +7950,7 @@ isBinary.__type = [
|
|
|
8062
7950
|
function isPrimitive(type) {
|
|
8063
7951
|
return type.kind === exports.ReflectionKind.string || type.kind === exports.ReflectionKind.number || type.kind === exports.ReflectionKind.bigint || type.kind === exports.ReflectionKind.boolean || type.kind === exports.ReflectionKind.literal || type.kind === exports.ReflectionKind.null || type.kind === exports.ReflectionKind.undefined;
|
|
8064
7952
|
}
|
|
8065
|
-
|
|
7953
|
+
chunkUSNT2KNT_cjs.__name(isPrimitive, "isPrimitive");
|
|
8066
7954
|
isPrimitive.__type = [
|
|
8067
7955
|
"type",
|
|
8068
7956
|
"isPrimitive",
|
|
@@ -8071,7 +7959,7 @@ isPrimitive.__type = [
|
|
|
8071
7959
|
function isPropertyType(type) {
|
|
8072
7960
|
return type.kind === exports.ReflectionKind.property || type.kind === exports.ReflectionKind.propertySignature;
|
|
8073
7961
|
}
|
|
8074
|
-
|
|
7962
|
+
chunkUSNT2KNT_cjs.__name(isPropertyType, "isPropertyType");
|
|
8075
7963
|
isPropertyType.__type = [
|
|
8076
7964
|
"Type",
|
|
8077
7965
|
"type",
|
|
@@ -8082,7 +7970,7 @@ function isPropertyMemberType(type) {
|
|
|
8082
7970
|
if (type.kind === exports.ReflectionKind.property) return !type.static;
|
|
8083
7971
|
return type.kind === exports.ReflectionKind.propertySignature;
|
|
8084
7972
|
}
|
|
8085
|
-
|
|
7973
|
+
chunkUSNT2KNT_cjs.__name(isPropertyMemberType, "isPropertyMemberType");
|
|
8086
7974
|
isPropertyMemberType.__type = [
|
|
8087
7975
|
"Type",
|
|
8088
7976
|
"type",
|
|
@@ -8108,7 +7996,7 @@ function getConstructorProperties(type) {
|
|
|
8108
7996
|
}
|
|
8109
7997
|
return result;
|
|
8110
7998
|
}
|
|
8111
|
-
|
|
7999
|
+
chunkUSNT2KNT_cjs.__name(getConstructorProperties, "getConstructorProperties");
|
|
8112
8000
|
getConstructorProperties.__type = [
|
|
8113
8001
|
() => __\u03A9TypeClass,
|
|
8114
8002
|
() => __\u03A9TypeObjectLiteral,
|
|
@@ -8145,7 +8033,7 @@ var __\u03A9WithAnnotations = [
|
|
|
8145
8033
|
function isWithAnnotations(type) {
|
|
8146
8034
|
return type.kind === exports.ReflectionKind.any || type.kind === exports.ReflectionKind.unknown || type.kind === exports.ReflectionKind.string || type.kind === exports.ReflectionKind.number || type.kind === exports.ReflectionKind.bigint || type.kind === exports.ReflectionKind.boolean || type.kind === exports.ReflectionKind.union || type.kind === exports.ReflectionKind.array || type.kind === exports.ReflectionKind.tuple || type.kind === exports.ReflectionKind.literal || type.kind === exports.ReflectionKind.null || type.kind === exports.ReflectionKind.undefined || type.kind === exports.ReflectionKind.class || type.kind === exports.ReflectionKind.objectLiteral || type.kind === exports.ReflectionKind.object || type.kind === exports.ReflectionKind.templateLiteral || type.kind === exports.ReflectionKind.regexp || type.kind === exports.ReflectionKind.symbol;
|
|
8147
8035
|
}
|
|
8148
|
-
|
|
8036
|
+
chunkUSNT2KNT_cjs.__name(isWithAnnotations, "isWithAnnotations");
|
|
8149
8037
|
isWithAnnotations.__type = [
|
|
8150
8038
|
() => __\u03A9ParentLessType,
|
|
8151
8039
|
"type",
|
|
@@ -8155,7 +8043,7 @@ isWithAnnotations.__type = [
|
|
|
8155
8043
|
function getAnnotations(type) {
|
|
8156
8044
|
return type.annotations || (type.annotations = {});
|
|
8157
8045
|
}
|
|
8158
|
-
|
|
8046
|
+
chunkUSNT2KNT_cjs.__name(getAnnotations, "getAnnotations");
|
|
8159
8047
|
getAnnotations.__type = [
|
|
8160
8048
|
() => __\u03A9WithAnnotations,
|
|
8161
8049
|
"type",
|
|
@@ -8176,7 +8064,7 @@ function hasStack2(stack, left, right) {
|
|
|
8176
8064
|
}
|
|
8177
8065
|
return false;
|
|
8178
8066
|
}
|
|
8179
|
-
|
|
8067
|
+
chunkUSNT2KNT_cjs.__name(hasStack2, "hasStack");
|
|
8180
8068
|
hasStack2.__type = [
|
|
8181
8069
|
() => __\u03A9StackEntry2,
|
|
8182
8070
|
"stack",
|
|
@@ -8302,7 +8190,7 @@ function isSameType(a, b, stack = []) {
|
|
|
8302
8190
|
} finally {
|
|
8303
8191
|
}
|
|
8304
8192
|
}
|
|
8305
|
-
|
|
8193
|
+
chunkUSNT2KNT_cjs.__name(isSameType, "isSameType");
|
|
8306
8194
|
isSameType.__type = [
|
|
8307
8195
|
"Type",
|
|
8308
8196
|
"a",
|
|
@@ -8355,7 +8243,7 @@ function addType(container, type) {
|
|
|
8355
8243
|
}
|
|
8356
8244
|
return container;
|
|
8357
8245
|
}
|
|
8358
|
-
|
|
8246
|
+
chunkUSNT2KNT_cjs.__name(addType, "addType");
|
|
8359
8247
|
addType.__type = [
|
|
8360
8248
|
"container",
|
|
8361
8249
|
"Type",
|
|
@@ -8369,7 +8257,7 @@ function isTypeIncluded(types, type, stack = []) {
|
|
|
8369
8257
|
}
|
|
8370
8258
|
return false;
|
|
8371
8259
|
}
|
|
8372
|
-
|
|
8260
|
+
chunkUSNT2KNT_cjs.__name(isTypeIncluded, "isTypeIncluded");
|
|
8373
8261
|
isTypeIncluded.__type = [
|
|
8374
8262
|
"Type",
|
|
8375
8263
|
"types",
|
|
@@ -8386,7 +8274,7 @@ function flatten(type) {
|
|
|
8386
8274
|
}
|
|
8387
8275
|
return type;
|
|
8388
8276
|
}
|
|
8389
|
-
|
|
8277
|
+
chunkUSNT2KNT_cjs.__name(flatten, "flatten");
|
|
8390
8278
|
flatten.__type = [
|
|
8391
8279
|
"type",
|
|
8392
8280
|
"flatten",
|
|
@@ -8405,7 +8293,7 @@ function flattenUnionTypes(types) {
|
|
|
8405
8293
|
}
|
|
8406
8294
|
return result;
|
|
8407
8295
|
}
|
|
8408
|
-
|
|
8296
|
+
chunkUSNT2KNT_cjs.__name(flattenUnionTypes, "flattenUnionTypes");
|
|
8409
8297
|
flattenUnionTypes.__type = [
|
|
8410
8298
|
"Type",
|
|
8411
8299
|
"types",
|
|
@@ -8419,7 +8307,7 @@ function unboxUnion(union) {
|
|
|
8419
8307
|
if (union.types.length === 1) return union.types[0];
|
|
8420
8308
|
return union;
|
|
8421
8309
|
}
|
|
8422
|
-
|
|
8310
|
+
chunkUSNT2KNT_cjs.__name(unboxUnion, "unboxUnion");
|
|
8423
8311
|
unboxUnion.__type = [
|
|
8424
8312
|
() => __\u03A9TypeUnion,
|
|
8425
8313
|
"union",
|
|
@@ -8442,7 +8330,7 @@ function findMember(index, types) {
|
|
|
8442
8330
|
}
|
|
8443
8331
|
return;
|
|
8444
8332
|
}
|
|
8445
|
-
|
|
8333
|
+
chunkUSNT2KNT_cjs.__name(findMember, "findMember");
|
|
8446
8334
|
findMember.__type = [
|
|
8447
8335
|
() => __\u03A9TypeTemplateLiteral,
|
|
8448
8336
|
"index",
|
|
@@ -8487,7 +8375,7 @@ function resolveObjectIndexType(type, index) {
|
|
|
8487
8375
|
kind: exports.ReflectionKind.never
|
|
8488
8376
|
};
|
|
8489
8377
|
}
|
|
8490
|
-
|
|
8378
|
+
chunkUSNT2KNT_cjs.__name(resolveObjectIndexType, "resolveObjectIndexType");
|
|
8491
8379
|
resolveObjectIndexType.__type = [
|
|
8492
8380
|
() => __\u03A9TypeObjectLiteral,
|
|
8493
8381
|
() => __\u03A9TypeClass,
|
|
@@ -8508,7 +8396,7 @@ var __\u03A9CStack = [
|
|
|
8508
8396
|
function emptyObject(type) {
|
|
8509
8397
|
return (type.kind === exports.ReflectionKind.objectLiteral || type.kind === exports.ReflectionKind.class) && type.types.length === 0;
|
|
8510
8398
|
}
|
|
8511
|
-
|
|
8399
|
+
chunkUSNT2KNT_cjs.__name(emptyObject, "emptyObject");
|
|
8512
8400
|
emptyObject.__type = [
|
|
8513
8401
|
"Type",
|
|
8514
8402
|
"type",
|
|
@@ -8517,7 +8405,7 @@ emptyObject.__type = [
|
|
|
8517
8405
|
];
|
|
8518
8406
|
var CartesianProduct = class {
|
|
8519
8407
|
static {
|
|
8520
|
-
|
|
8408
|
+
chunkUSNT2KNT_cjs.__name(this, "CartesianProduct");
|
|
8521
8409
|
}
|
|
8522
8410
|
constructor() {
|
|
8523
8411
|
this.stack = [];
|
|
@@ -8771,7 +8659,7 @@ function indexAccess(container, index) {
|
|
|
8771
8659
|
kind: exports.ReflectionKind.never
|
|
8772
8660
|
};
|
|
8773
8661
|
}
|
|
8774
|
-
|
|
8662
|
+
chunkUSNT2KNT_cjs.__name(indexAccess, "indexAccess");
|
|
8775
8663
|
indexAccess.__type = [
|
|
8776
8664
|
"Type",
|
|
8777
8665
|
"container",
|
|
@@ -8797,7 +8685,7 @@ function merge(types) {
|
|
|
8797
8685
|
t2.parent = type;
|
|
8798
8686
|
const existing = getMember(type, member.name);
|
|
8799
8687
|
if (existing) {
|
|
8800
|
-
|
|
8688
|
+
chunkZDFKNN7Y_cjs.arrayRemoveItem(type.types, existing);
|
|
8801
8689
|
}
|
|
8802
8690
|
type.types.push(t2);
|
|
8803
8691
|
}
|
|
@@ -8805,7 +8693,7 @@ function merge(types) {
|
|
|
8805
8693
|
}
|
|
8806
8694
|
return type;
|
|
8807
8695
|
}
|
|
8808
|
-
|
|
8696
|
+
chunkUSNT2KNT_cjs.__name(merge, "merge");
|
|
8809
8697
|
merge.__type = [
|
|
8810
8698
|
() => __\u03A9TypeObjectLiteral,
|
|
8811
8699
|
() => __\u03A9TypeClass,
|
|
@@ -8820,7 +8708,7 @@ function narrowOriginalLiteral(type) {
|
|
|
8820
8708
|
}
|
|
8821
8709
|
return type;
|
|
8822
8710
|
}
|
|
8823
|
-
|
|
8711
|
+
chunkUSNT2KNT_cjs.__name(narrowOriginalLiteral, "narrowOriginalLiteral");
|
|
8824
8712
|
narrowOriginalLiteral.__type = [
|
|
8825
8713
|
"Type",
|
|
8826
8714
|
"type",
|
|
@@ -8916,7 +8804,7 @@ function copyAndSetParent(inc, parent) {
|
|
|
8916
8804
|
}
|
|
8917
8805
|
return type;
|
|
8918
8806
|
}
|
|
8919
|
-
|
|
8807
|
+
chunkUSNT2KNT_cjs.__name(copyAndSetParent, "copyAndSetParent");
|
|
8920
8808
|
copyAndSetParent.__type = [
|
|
8921
8809
|
"inc",
|
|
8922
8810
|
"Type",
|
|
@@ -8955,7 +8843,7 @@ function widenLiteral(type) {
|
|
|
8955
8843
|
}
|
|
8956
8844
|
return type;
|
|
8957
8845
|
}
|
|
8958
|
-
|
|
8846
|
+
chunkUSNT2KNT_cjs.__name(widenLiteral, "widenLiteral");
|
|
8959
8847
|
widenLiteral.__type = [
|
|
8960
8848
|
"Type",
|
|
8961
8849
|
"type",
|
|
@@ -8965,7 +8853,7 @@ widenLiteral.__type = [
|
|
|
8965
8853
|
function assertType(t2, kind) {
|
|
8966
8854
|
if (!t2 || t2.kind !== kind) throw new Error(`Invalid type ${t2 ? exports.ReflectionKind[t2.kind] : void 0}, expected ${exports.ReflectionKind[kind]}`);
|
|
8967
8855
|
}
|
|
8968
|
-
|
|
8856
|
+
chunkUSNT2KNT_cjs.__name(assertType, "assertType");
|
|
8969
8857
|
assertType.__type = [
|
|
8970
8858
|
"Type",
|
|
8971
8859
|
"t",
|
|
@@ -8977,18 +8865,18 @@ function getClassType(type) {
|
|
|
8977
8865
|
if (type.kind !== exports.ReflectionKind.class) throw new Error(`Type needs to be TypeClass, but ${exports.ReflectionKind[type.kind]} given.`);
|
|
8978
8866
|
return type.classType;
|
|
8979
8867
|
}
|
|
8980
|
-
|
|
8868
|
+
chunkUSNT2KNT_cjs.__name(getClassType, "getClassType");
|
|
8981
8869
|
getClassType.__type = [
|
|
8982
8870
|
"Type",
|
|
8983
8871
|
"type",
|
|
8984
|
-
() =>
|
|
8872
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
8985
8873
|
"getClassType",
|
|
8986
8874
|
'P"w!2"n#/$'
|
|
8987
8875
|
];
|
|
8988
8876
|
function isMember(type) {
|
|
8989
8877
|
return type.kind === exports.ReflectionKind.propertySignature || type.kind === exports.ReflectionKind.property || type.kind === exports.ReflectionKind.methodSignature || type.kind === exports.ReflectionKind.method;
|
|
8990
8878
|
}
|
|
8991
|
-
|
|
8879
|
+
chunkUSNT2KNT_cjs.__name(isMember, "isMember");
|
|
8992
8880
|
isMember.__type = [
|
|
8993
8881
|
"Type",
|
|
8994
8882
|
"type",
|
|
@@ -9002,7 +8890,7 @@ function hasMember(type, memberName, memberType) {
|
|
|
9002
8890
|
'P"2!"/"'
|
|
9003
8891
|
]));
|
|
9004
8892
|
}
|
|
9005
|
-
|
|
8893
|
+
chunkUSNT2KNT_cjs.__name(hasMember, "hasMember");
|
|
9006
8894
|
hasMember.__type = [
|
|
9007
8895
|
() => __\u03A9TypeObjectLiteral,
|
|
9008
8896
|
() => __\u03A9TypeClass,
|
|
@@ -9020,7 +8908,7 @@ function getMember(type, memberName) {
|
|
|
9020
8908
|
'P"2!"/"'
|
|
9021
8909
|
]));
|
|
9022
8910
|
}
|
|
9023
|
-
|
|
8911
|
+
chunkUSNT2KNT_cjs.__name(getMember, "getMember");
|
|
9024
8912
|
getMember.__type = [
|
|
9025
8913
|
() => __\u03A9TypeObjectLiteral,
|
|
9026
8914
|
() => __\u03A9TypeClass,
|
|
@@ -9064,7 +8952,7 @@ function getTypeObjectLiteralFromTypeClass(type) {
|
|
|
9064
8952
|
}
|
|
9065
8953
|
return type;
|
|
9066
8954
|
}
|
|
9067
|
-
|
|
8955
|
+
chunkUSNT2KNT_cjs.__name(getTypeObjectLiteralFromTypeClass, "getTypeObjectLiteralFromTypeClass");
|
|
9068
8956
|
getTypeObjectLiteralFromTypeClass.__type = [
|
|
9069
8957
|
"type",
|
|
9070
8958
|
() => __\u03A9TypeClass,
|
|
@@ -9079,7 +8967,7 @@ function isOptional(type) {
|
|
|
9079
8967
|
if (type.kind === exports.ReflectionKind.property || type.kind === exports.ReflectionKind.propertySignature || type.kind === exports.ReflectionKind.indexSignature) return isOptional(type.type);
|
|
9080
8968
|
return type.kind === exports.ReflectionKind.any || type.kind === exports.ReflectionKind.undefined || type.kind === exports.ReflectionKind.union && type.types.some(isOptional);
|
|
9081
8969
|
}
|
|
9082
|
-
|
|
8970
|
+
chunkUSNT2KNT_cjs.__name(isOptional, "isOptional");
|
|
9083
8971
|
isOptional.__type = [
|
|
9084
8972
|
"Type",
|
|
9085
8973
|
"type",
|
|
@@ -9089,7 +8977,7 @@ isOptional.__type = [
|
|
|
9089
8977
|
function hasDefaultValue(type) {
|
|
9090
8978
|
return (type.kind === exports.ReflectionKind.property || type.kind === exports.ReflectionKind.parameter) && type.default !== void 0;
|
|
9091
8979
|
}
|
|
9092
|
-
|
|
8980
|
+
chunkUSNT2KNT_cjs.__name(hasDefaultValue, "hasDefaultValue");
|
|
9093
8981
|
hasDefaultValue.__type = [
|
|
9094
8982
|
"Type",
|
|
9095
8983
|
"type",
|
|
@@ -9100,7 +8988,7 @@ function isNullable(type) {
|
|
|
9100
8988
|
if (type.kind === exports.ReflectionKind.property || type.kind === exports.ReflectionKind.propertySignature || type.kind === exports.ReflectionKind.indexSignature) return isNullable(type.type);
|
|
9101
8989
|
return type.kind === exports.ReflectionKind.null || type.kind === exports.ReflectionKind.union && type.types.some(isNullable);
|
|
9102
8990
|
}
|
|
9103
|
-
|
|
8991
|
+
chunkUSNT2KNT_cjs.__name(isNullable, "isNullable");
|
|
9104
8992
|
isNullable.__type = [
|
|
9105
8993
|
"Type",
|
|
9106
8994
|
"type",
|
|
@@ -9125,7 +9013,7 @@ function getTags(type) {
|
|
|
9125
9013
|
}
|
|
9126
9014
|
return {};
|
|
9127
9015
|
}
|
|
9128
|
-
|
|
9016
|
+
chunkUSNT2KNT_cjs.__name(getTags, "getTags");
|
|
9129
9017
|
getTags.__type = [
|
|
9130
9018
|
"Type",
|
|
9131
9019
|
"type",
|
|
@@ -9137,7 +9025,7 @@ function isHidden(type) {
|
|
|
9137
9025
|
const tags = getTags(type);
|
|
9138
9026
|
return Boolean(tags.hidden);
|
|
9139
9027
|
}
|
|
9140
|
-
|
|
9028
|
+
chunkUSNT2KNT_cjs.__name(isHidden, "isHidden");
|
|
9141
9029
|
isHidden.__type = [
|
|
9142
9030
|
"Type",
|
|
9143
9031
|
"type",
|
|
@@ -9148,7 +9036,7 @@ function isIgnore(type) {
|
|
|
9148
9036
|
const tags = getTags(type);
|
|
9149
9037
|
return Boolean(tags.ignore);
|
|
9150
9038
|
}
|
|
9151
|
-
|
|
9039
|
+
chunkUSNT2KNT_cjs.__name(isIgnore, "isIgnore");
|
|
9152
9040
|
isIgnore.__type = [
|
|
9153
9041
|
"Type",
|
|
9154
9042
|
"type",
|
|
@@ -9159,7 +9047,7 @@ function isInternal(type) {
|
|
|
9159
9047
|
const tags = getTags(type);
|
|
9160
9048
|
return Boolean(tags.internal);
|
|
9161
9049
|
}
|
|
9162
|
-
|
|
9050
|
+
chunkUSNT2KNT_cjs.__name(isInternal, "isInternal");
|
|
9163
9051
|
isInternal.__type = [
|
|
9164
9052
|
"Type",
|
|
9165
9053
|
"type",
|
|
@@ -9170,7 +9058,7 @@ function getAlias(type) {
|
|
|
9170
9058
|
const tags = getTags(type);
|
|
9171
9059
|
return tags.alias ?? [];
|
|
9172
9060
|
}
|
|
9173
|
-
|
|
9061
|
+
chunkUSNT2KNT_cjs.__name(getAlias, "getAlias");
|
|
9174
9062
|
getAlias.__type = [
|
|
9175
9063
|
"Type",
|
|
9176
9064
|
"type",
|
|
@@ -9181,7 +9069,7 @@ function isReadonly(type) {
|
|
|
9181
9069
|
const tags = getTags(type);
|
|
9182
9070
|
return Boolean(tags.readonly);
|
|
9183
9071
|
}
|
|
9184
|
-
|
|
9072
|
+
chunkUSNT2KNT_cjs.__name(isReadonly, "isReadonly");
|
|
9185
9073
|
isReadonly.__type = [
|
|
9186
9074
|
"Type",
|
|
9187
9075
|
"type",
|
|
@@ -9192,7 +9080,7 @@ function getTitle(type) {
|
|
|
9192
9080
|
const tags = getTags(type);
|
|
9193
9081
|
return tags.title;
|
|
9194
9082
|
}
|
|
9195
|
-
|
|
9083
|
+
chunkUSNT2KNT_cjs.__name(getTitle, "getTitle");
|
|
9196
9084
|
getTitle.__type = [
|
|
9197
9085
|
"Type",
|
|
9198
9086
|
"type",
|
|
@@ -9203,7 +9091,7 @@ function getPermission(type) {
|
|
|
9203
9091
|
const tags = getTags(type);
|
|
9204
9092
|
return tags.permission ?? [];
|
|
9205
9093
|
}
|
|
9206
|
-
|
|
9094
|
+
chunkUSNT2KNT_cjs.__name(getPermission, "getPermission");
|
|
9207
9095
|
getPermission.__type = [
|
|
9208
9096
|
"Type",
|
|
9209
9097
|
"type",
|
|
@@ -9214,7 +9102,7 @@ function getDomain(type) {
|
|
|
9214
9102
|
const tags = getTags(type);
|
|
9215
9103
|
return tags.domain;
|
|
9216
9104
|
}
|
|
9217
|
-
|
|
9105
|
+
chunkUSNT2KNT_cjs.__name(getDomain, "getDomain");
|
|
9218
9106
|
getDomain.__type = [
|
|
9219
9107
|
"Type",
|
|
9220
9108
|
"type",
|
|
@@ -9263,7 +9151,7 @@ var __\u03A9float64 = [
|
|
|
9263
9151
|
];
|
|
9264
9152
|
var AnnotationDefinition = class {
|
|
9265
9153
|
static {
|
|
9266
|
-
|
|
9154
|
+
chunkUSNT2KNT_cjs.__name(this, "AnnotationDefinition");
|
|
9267
9155
|
}
|
|
9268
9156
|
constructor(id) {
|
|
9269
9157
|
this.id = id;
|
|
@@ -9363,13 +9251,13 @@ var __\u03A9EntityOptions = [
|
|
|
9363
9251
|
];
|
|
9364
9252
|
var __\u03A9Entity = [
|
|
9365
9253
|
"T",
|
|
9366
|
-
() =>
|
|
9254
|
+
() => chunkZDFKNN7Y_cjs.__ΩTypeAnnotation,
|
|
9367
9255
|
"entity",
|
|
9368
9256
|
"Entity",
|
|
9369
9257
|
'b!PPM.#e"!o"#Kw$y'
|
|
9370
9258
|
];
|
|
9371
9259
|
var __\u03A9PrimaryKey = [
|
|
9372
|
-
() =>
|
|
9260
|
+
() => chunkZDFKNN7Y_cjs.__ΩTypeAnnotation,
|
|
9373
9261
|
"primaryKey",
|
|
9374
9262
|
"PrimaryKey",
|
|
9375
9263
|
'."o!"w#y'
|
|
@@ -9399,37 +9287,37 @@ var __\u03A9ReferenceFields = [
|
|
|
9399
9287
|
`lNe'!e&!fR!RPe#!Pe$!e$!Jqk#+QRPde$!e#!fo""p-Rb!Pde"!gN?!w#y`
|
|
9400
9288
|
];
|
|
9401
9289
|
var __\u03A9AutoIncrement = [
|
|
9402
|
-
() =>
|
|
9290
|
+
() => chunkZDFKNN7Y_cjs.__ΩTypeAnnotation,
|
|
9403
9291
|
"autoIncrement",
|
|
9404
9292
|
"AutoIncrement",
|
|
9405
9293
|
'."o!"w#y'
|
|
9406
9294
|
];
|
|
9407
9295
|
var __\u03A9UUID = [
|
|
9408
|
-
() =>
|
|
9296
|
+
() => chunkZDFKNN7Y_cjs.__ΩTypeAnnotation,
|
|
9409
9297
|
"UUIDv4",
|
|
9410
9298
|
"UUID",
|
|
9411
9299
|
'P&."o!"Kw#y'
|
|
9412
9300
|
];
|
|
9413
9301
|
var __\u03A9MongoId = [
|
|
9414
|
-
() =>
|
|
9302
|
+
() => chunkZDFKNN7Y_cjs.__ΩTypeAnnotation,
|
|
9415
9303
|
"mongoId",
|
|
9416
9304
|
"MongoId",
|
|
9417
9305
|
'P&."o!"Kw#y'
|
|
9418
9306
|
];
|
|
9419
9307
|
var __\u03A9BinaryBigInt = [
|
|
9420
|
-
() =>
|
|
9308
|
+
() => chunkZDFKNN7Y_cjs.__ΩTypeAnnotation,
|
|
9421
9309
|
"binaryBigInt",
|
|
9422
9310
|
"BinaryBigInt",
|
|
9423
9311
|
'P*."o!"Kw#y'
|
|
9424
9312
|
];
|
|
9425
9313
|
var __\u03A9SignedBinaryBigInt = [
|
|
9426
|
-
() =>
|
|
9314
|
+
() => chunkZDFKNN7Y_cjs.__ΩTypeAnnotation,
|
|
9427
9315
|
"signedBinaryBigInt",
|
|
9428
9316
|
"SignedBinaryBigInt",
|
|
9429
9317
|
'P*."o!"Kw#y'
|
|
9430
9318
|
];
|
|
9431
9319
|
var __\u03A9BackReferenceOptions = [
|
|
9432
|
-
() =>
|
|
9320
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
9433
9321
|
"via",
|
|
9434
9322
|
"mappedBy",
|
|
9435
9323
|
"BackReferenceOptions",
|
|
@@ -9437,21 +9325,21 @@ var __\u03A9BackReferenceOptions = [
|
|
|
9437
9325
|
];
|
|
9438
9326
|
var __\u03A9Reference = [
|
|
9439
9327
|
"Options",
|
|
9440
|
-
() =>
|
|
9328
|
+
() => chunkZDFKNN7Y_cjs.__ΩTypeAnnotation,
|
|
9441
9329
|
"reference",
|
|
9442
9330
|
"Reference",
|
|
9443
9331
|
'PMc!.#e!!o"#w$y'
|
|
9444
9332
|
];
|
|
9445
9333
|
var __\u03A9BackReference = [
|
|
9446
9334
|
"Options",
|
|
9447
|
-
() =>
|
|
9335
|
+
() => chunkZDFKNN7Y_cjs.__ΩTypeAnnotation,
|
|
9448
9336
|
"backReference",
|
|
9449
9337
|
"BackReference",
|
|
9450
9338
|
'PMc!.#e!!o"#w$y'
|
|
9451
9339
|
];
|
|
9452
9340
|
var __\u03A9EmbeddedMeta = [
|
|
9453
9341
|
"Options",
|
|
9454
|
-
() =>
|
|
9342
|
+
() => chunkZDFKNN7Y_cjs.__ΩTypeAnnotation,
|
|
9455
9343
|
"embedded",
|
|
9456
9344
|
"EmbeddedMeta",
|
|
9457
9345
|
'b!.#e!!o"#w$y'
|
|
@@ -9467,7 +9355,7 @@ var __\u03A9MapName = [
|
|
|
9467
9355
|
"Alias",
|
|
9468
9356
|
"",
|
|
9469
9357
|
"ForSerializer",
|
|
9470
|
-
() =>
|
|
9358
|
+
() => chunkZDFKNN7Y_cjs.__ΩTypeAnnotation,
|
|
9471
9359
|
"mapName",
|
|
9472
9360
|
"MapName",
|
|
9473
9361
|
'b!."c#.%Pe"!e""Go$#w&y'
|
|
@@ -9480,7 +9368,7 @@ var referenceAnnotation = (AnnotationDefinition.\u03A9 = [
|
|
|
9480
9368
|
], new AnnotationDefinition("reference"));
|
|
9481
9369
|
var entityAnnotation = new (_a = class extends AnnotationDefinition {
|
|
9482
9370
|
static {
|
|
9483
|
-
|
|
9371
|
+
chunkUSNT2KNT_cjs.__name(this, "_a");
|
|
9484
9372
|
}
|
|
9485
9373
|
set(type, name, value) {
|
|
9486
9374
|
const data = this.getFirst(type) || {};
|
|
@@ -9522,7 +9410,7 @@ var mapNameAnnotation = (AnnotationDefinition.\u03A9 = [
|
|
|
9522
9410
|
var autoIncrementAnnotation = new AnnotationDefinition("autoIncrement");
|
|
9523
9411
|
var primaryKeyAnnotation = new (_b = class extends AnnotationDefinition {
|
|
9524
9412
|
static {
|
|
9525
|
-
|
|
9413
|
+
chunkUSNT2KNT_cjs.__name(this, "_b");
|
|
9526
9414
|
}
|
|
9527
9415
|
isPrimaryKey(type) {
|
|
9528
9416
|
return this.getAnnotations(type).length > 0;
|
|
@@ -9568,7 +9456,7 @@ var defaultAnnotation = (AnnotationDefinition.\u03A9 = [
|
|
|
9568
9456
|
function isUUIDType(type) {
|
|
9569
9457
|
return uuidAnnotation.getFirst(type) !== void 0;
|
|
9570
9458
|
}
|
|
9571
|
-
|
|
9459
|
+
chunkUSNT2KNT_cjs.__name(isUUIDType, "isUUIDType");
|
|
9572
9460
|
isUUIDType.__type = [
|
|
9573
9461
|
"Type",
|
|
9574
9462
|
"type",
|
|
@@ -9578,7 +9466,7 @@ isUUIDType.__type = [
|
|
|
9578
9466
|
function isPrimaryKeyType(type) {
|
|
9579
9467
|
return primaryKeyAnnotation.isPrimaryKey(type);
|
|
9580
9468
|
}
|
|
9581
|
-
|
|
9469
|
+
chunkUSNT2KNT_cjs.__name(isPrimaryKeyType, "isPrimaryKeyType");
|
|
9582
9470
|
isPrimaryKeyType.__type = [
|
|
9583
9471
|
"Type",
|
|
9584
9472
|
"type",
|
|
@@ -9588,7 +9476,7 @@ isPrimaryKeyType.__type = [
|
|
|
9588
9476
|
function isAutoIncrementType(type) {
|
|
9589
9477
|
return autoIncrementAnnotation.getFirst(type) !== void 0;
|
|
9590
9478
|
}
|
|
9591
|
-
|
|
9479
|
+
chunkUSNT2KNT_cjs.__name(isAutoIncrementType, "isAutoIncrementType");
|
|
9592
9480
|
isAutoIncrementType.__type = [
|
|
9593
9481
|
"Type",
|
|
9594
9482
|
"type",
|
|
@@ -9598,7 +9486,7 @@ isAutoIncrementType.__type = [
|
|
|
9598
9486
|
function isMongoIdType(type) {
|
|
9599
9487
|
return mongoIdAnnotation.getFirst(type) !== void 0;
|
|
9600
9488
|
}
|
|
9601
|
-
|
|
9489
|
+
chunkUSNT2KNT_cjs.__name(isMongoIdType, "isMongoIdType");
|
|
9602
9490
|
isMongoIdType.__type = [
|
|
9603
9491
|
"Type",
|
|
9604
9492
|
"type",
|
|
@@ -9608,7 +9496,7 @@ isMongoIdType.__type = [
|
|
|
9608
9496
|
function isBinaryBigIntType(type) {
|
|
9609
9497
|
return binaryBigIntAnnotation.getFirst(type) !== void 0;
|
|
9610
9498
|
}
|
|
9611
|
-
|
|
9499
|
+
chunkUSNT2KNT_cjs.__name(isBinaryBigIntType, "isBinaryBigIntType");
|
|
9612
9500
|
isBinaryBigIntType.__type = [
|
|
9613
9501
|
"Type",
|
|
9614
9502
|
"type",
|
|
@@ -9618,7 +9506,7 @@ isBinaryBigIntType.__type = [
|
|
|
9618
9506
|
function isReferenceType(type) {
|
|
9619
9507
|
return referenceAnnotation.getFirst(resolveProperty(type)) !== void 0;
|
|
9620
9508
|
}
|
|
9621
|
-
|
|
9509
|
+
chunkUSNT2KNT_cjs.__name(isReferenceType, "isReferenceType");
|
|
9622
9510
|
isReferenceType.__type = [
|
|
9623
9511
|
"Type",
|
|
9624
9512
|
"type",
|
|
@@ -9628,7 +9516,7 @@ isReferenceType.__type = [
|
|
|
9628
9516
|
function getReferenceType(type) {
|
|
9629
9517
|
return referenceAnnotation.getFirst(resolveProperty(type));
|
|
9630
9518
|
}
|
|
9631
|
-
|
|
9519
|
+
chunkUSNT2KNT_cjs.__name(getReferenceType, "getReferenceType");
|
|
9632
9520
|
getReferenceType.__type = [
|
|
9633
9521
|
"Type",
|
|
9634
9522
|
"type",
|
|
@@ -9639,7 +9527,7 @@ getReferenceType.__type = [
|
|
|
9639
9527
|
function isBackReferenceType(type) {
|
|
9640
9528
|
return backReferenceAnnotation.getFirst(resolveProperty(type)) !== void 0;
|
|
9641
9529
|
}
|
|
9642
|
-
|
|
9530
|
+
chunkUSNT2KNT_cjs.__name(isBackReferenceType, "isBackReferenceType");
|
|
9643
9531
|
isBackReferenceType.__type = [
|
|
9644
9532
|
"Type",
|
|
9645
9533
|
"type",
|
|
@@ -9652,7 +9540,7 @@ function resolveProperty(type) {
|
|
|
9652
9540
|
}
|
|
9653
9541
|
return type;
|
|
9654
9542
|
}
|
|
9655
|
-
|
|
9543
|
+
chunkUSNT2KNT_cjs.__name(resolveProperty, "resolveProperty");
|
|
9656
9544
|
resolveProperty.__type = [
|
|
9657
9545
|
"Type",
|
|
9658
9546
|
"type",
|
|
@@ -9664,7 +9552,7 @@ function getBackReferenceType(type) {
|
|
|
9664
9552
|
if (!options) throw new Error("No back reference");
|
|
9665
9553
|
return options;
|
|
9666
9554
|
}
|
|
9667
|
-
|
|
9555
|
+
chunkUSNT2KNT_cjs.__name(getBackReferenceType, "getBackReferenceType");
|
|
9668
9556
|
getBackReferenceType.__type = [
|
|
9669
9557
|
"Type",
|
|
9670
9558
|
"type",
|
|
@@ -9675,7 +9563,7 @@ getBackReferenceType.__type = [
|
|
|
9675
9563
|
function isDateType(type) {
|
|
9676
9564
|
return type.kind === exports.ReflectionKind.class && type.classType === Date;
|
|
9677
9565
|
}
|
|
9678
|
-
|
|
9566
|
+
chunkUSNT2KNT_cjs.__name(isDateType, "isDateType");
|
|
9679
9567
|
isDateType.__type = [
|
|
9680
9568
|
"Type",
|
|
9681
9569
|
"type",
|
|
@@ -9685,7 +9573,7 @@ isDateType.__type = [
|
|
|
9685
9573
|
function isSetType(type) {
|
|
9686
9574
|
return type.kind === exports.ReflectionKind.class && type.classType === Set;
|
|
9687
9575
|
}
|
|
9688
|
-
|
|
9576
|
+
chunkUSNT2KNT_cjs.__name(isSetType, "isSetType");
|
|
9689
9577
|
isSetType.__type = [
|
|
9690
9578
|
"Type",
|
|
9691
9579
|
"type",
|
|
@@ -9695,7 +9583,7 @@ isSetType.__type = [
|
|
|
9695
9583
|
function isMapType(type) {
|
|
9696
9584
|
return type.kind === exports.ReflectionKind.class && type.classType === Map;
|
|
9697
9585
|
}
|
|
9698
|
-
|
|
9586
|
+
chunkUSNT2KNT_cjs.__name(isMapType, "isMapType");
|
|
9699
9587
|
isMapType.__type = [
|
|
9700
9588
|
"Type",
|
|
9701
9589
|
"type",
|
|
@@ -9724,7 +9612,7 @@ function getKeyType(type) {
|
|
|
9724
9612
|
kind: exports.ReflectionKind.any
|
|
9725
9613
|
};
|
|
9726
9614
|
}
|
|
9727
|
-
|
|
9615
|
+
chunkUSNT2KNT_cjs.__name(getKeyType, "getKeyType");
|
|
9728
9616
|
getKeyType.__type = [
|
|
9729
9617
|
"Type",
|
|
9730
9618
|
"type",
|
|
@@ -9753,7 +9641,7 @@ function getValueType(type) {
|
|
|
9753
9641
|
kind: exports.ReflectionKind.any
|
|
9754
9642
|
};
|
|
9755
9643
|
}
|
|
9756
|
-
|
|
9644
|
+
chunkUSNT2KNT_cjs.__name(getValueType, "getValueType");
|
|
9757
9645
|
getValueType.__type = [
|
|
9758
9646
|
"Type",
|
|
9759
9647
|
"type",
|
|
@@ -9776,7 +9664,7 @@ function hasEmbedded(type) {
|
|
|
9776
9664
|
if (type.kind === exports.ReflectionKind.union) return type.types.some(hasEmbedded);
|
|
9777
9665
|
return embeddedAnnotation.getFirst(type) !== void 0;
|
|
9778
9666
|
}
|
|
9779
|
-
|
|
9667
|
+
chunkUSNT2KNT_cjs.__name(hasEmbedded, "hasEmbedded");
|
|
9780
9668
|
hasEmbedded.__type = [
|
|
9781
9669
|
"Type",
|
|
9782
9670
|
"type",
|
|
@@ -9785,7 +9673,7 @@ hasEmbedded.__type = [
|
|
|
9785
9673
|
];
|
|
9786
9674
|
var __\u03A9Group = [
|
|
9787
9675
|
"Name",
|
|
9788
|
-
() =>
|
|
9676
|
+
() => chunkZDFKNN7Y_cjs.__ΩTypeAnnotation,
|
|
9789
9677
|
"group",
|
|
9790
9678
|
"Group",
|
|
9791
9679
|
'b!.#e!!o"#w$y'
|
|
@@ -9793,7 +9681,7 @@ var __\u03A9Group = [
|
|
|
9793
9681
|
var __\u03A9Excluded = [
|
|
9794
9682
|
"*",
|
|
9795
9683
|
"Name",
|
|
9796
|
-
() =>
|
|
9684
|
+
() => chunkZDFKNN7Y_cjs.__ΩTypeAnnotation,
|
|
9797
9685
|
"excluded",
|
|
9798
9686
|
"Excluded",
|
|
9799
9687
|
'.!c".$e!!o##w%y'
|
|
@@ -9801,14 +9689,14 @@ var __\u03A9Excluded = [
|
|
|
9801
9689
|
var __\u03A9Data = [
|
|
9802
9690
|
"Name",
|
|
9803
9691
|
"Value",
|
|
9804
|
-
() =>
|
|
9692
|
+
() => chunkZDFKNN7Y_cjs.__ΩTypeAnnotation,
|
|
9805
9693
|
"data",
|
|
9806
9694
|
"Data",
|
|
9807
9695
|
'b!b".$Pe"!e""Go##w%y'
|
|
9808
9696
|
];
|
|
9809
9697
|
var __\u03A9ResetAnnotation = [
|
|
9810
9698
|
"Name",
|
|
9811
|
-
() =>
|
|
9699
|
+
() => chunkZDFKNN7Y_cjs.__ΩTypeAnnotation,
|
|
9812
9700
|
"reset",
|
|
9813
9701
|
"ResetAnnotation",
|
|
9814
9702
|
'b!.#e!!o"#w$y'
|
|
@@ -9827,7 +9715,7 @@ var __\u03A9IndexOptions = [
|
|
|
9827
9715
|
];
|
|
9828
9716
|
var __\u03A9Unique = [
|
|
9829
9717
|
"Options",
|
|
9830
|
-
() =>
|
|
9718
|
+
() => chunkZDFKNN7Y_cjs.__ΩTypeAnnotation,
|
|
9831
9719
|
"index",
|
|
9832
9720
|
true,
|
|
9833
9721
|
"unique",
|
|
@@ -9836,7 +9724,7 @@ var __\u03A9Unique = [
|
|
|
9836
9724
|
];
|
|
9837
9725
|
var __\u03A9Index = [
|
|
9838
9726
|
"Options",
|
|
9839
|
-
() =>
|
|
9727
|
+
() => chunkZDFKNN7Y_cjs.__ΩTypeAnnotation,
|
|
9840
9728
|
"index",
|
|
9841
9729
|
"Index",
|
|
9842
9730
|
'PMc!.#e!!o"#w$y'
|
|
@@ -9873,7 +9761,7 @@ var __\u03A9SqliteOptions = [
|
|
|
9873
9761
|
var __\u03A9Database = [
|
|
9874
9762
|
"Name",
|
|
9875
9763
|
"Options",
|
|
9876
|
-
() =>
|
|
9764
|
+
() => chunkZDFKNN7Y_cjs.__ΩTypeAnnotation,
|
|
9877
9765
|
"database",
|
|
9878
9766
|
"Database",
|
|
9879
9767
|
'b!b".$Pe"!e""Go##w%y'
|
|
@@ -9926,7 +9814,7 @@ var groupAnnotation = (AnnotationDefinition.\u03A9 = [
|
|
|
9926
9814
|
], new AnnotationDefinition("group"));
|
|
9927
9815
|
var excludedAnnotation = new (_c = class extends AnnotationDefinition {
|
|
9928
9816
|
static {
|
|
9929
|
-
|
|
9817
|
+
chunkUSNT2KNT_cjs.__name(this, "_c");
|
|
9930
9818
|
}
|
|
9931
9819
|
isExcluded(type, name) {
|
|
9932
9820
|
const excluded = this.getAnnotations(type);
|
|
@@ -9942,7 +9830,7 @@ var excludedAnnotation = new (_c = class extends AnnotationDefinition {
|
|
|
9942
9830
|
], _c)("excluded");
|
|
9943
9831
|
var dataAnnotation = new (_d = class extends AnnotationDefinition {
|
|
9944
9832
|
static {
|
|
9945
|
-
|
|
9833
|
+
chunkUSNT2KNT_cjs.__name(this, "_d");
|
|
9946
9834
|
}
|
|
9947
9835
|
set(type, key, value) {
|
|
9948
9836
|
const data = this.getFirst(type) || {};
|
|
@@ -9968,7 +9856,7 @@ var dataAnnotation = new (_d = class extends AnnotationDefinition {
|
|
|
9968
9856
|
], _d)("data");
|
|
9969
9857
|
var typeAnnotation = new (_e = class extends AnnotationDefinition {
|
|
9970
9858
|
static {
|
|
9971
|
-
|
|
9859
|
+
chunkUSNT2KNT_cjs.__name(this, "_e");
|
|
9972
9860
|
}
|
|
9973
9861
|
/**
|
|
9974
9862
|
* Returns the parsed Type to JS objects, e.g. `{name: string}` => `{name: 'xy'}`
|
|
@@ -10004,7 +9892,7 @@ var indexAnnotation = (AnnotationDefinition.\u03A9 = [
|
|
|
10004
9892
|
], new AnnotationDefinition("index"));
|
|
10005
9893
|
var databaseAnnotation = new (_f = class extends AnnotationDefinition {
|
|
10006
9894
|
static {
|
|
10007
|
-
|
|
9895
|
+
chunkUSNT2KNT_cjs.__name(this, "_f");
|
|
10008
9896
|
}
|
|
10009
9897
|
getDatabase(type, name) {
|
|
10010
9898
|
let options = void 0;
|
|
@@ -10028,7 +9916,7 @@ var databaseAnnotation = new (_f = class extends AnnotationDefinition {
|
|
|
10028
9916
|
function registerTypeDecorator(decorator) {
|
|
10029
9917
|
typeDecorators.push(decorator);
|
|
10030
9918
|
}
|
|
10031
|
-
|
|
9919
|
+
chunkUSNT2KNT_cjs.__name(registerTypeDecorator, "registerTypeDecorator");
|
|
10032
9920
|
registerTypeDecorator.__type = [
|
|
10033
9921
|
() => __\u03A9TypeDecorator,
|
|
10034
9922
|
"decorator",
|
|
@@ -10069,7 +9957,7 @@ function getAnnotationMeta(type) {
|
|
|
10069
9957
|
options: optionsMember?.type
|
|
10070
9958
|
};
|
|
10071
9959
|
}
|
|
10072
|
-
|
|
9960
|
+
chunkUSNT2KNT_cjs.__name(getAnnotationMeta, "getAnnotationMeta");
|
|
10073
9961
|
getAnnotationMeta.__type = [
|
|
10074
9962
|
() => __\u03A9TypeObjectLiteral,
|
|
10075
9963
|
"type",
|
|
@@ -10329,7 +10217,7 @@ function typeToObject(type, state2 = {
|
|
|
10329
10217
|
state2.stack.pop();
|
|
10330
10218
|
}
|
|
10331
10219
|
}
|
|
10332
|
-
|
|
10220
|
+
chunkUSNT2KNT_cjs.__name(typeToObject, "typeToObject");
|
|
10333
10221
|
typeToObject.__type = [
|
|
10334
10222
|
"Type",
|
|
10335
10223
|
"type",
|
|
@@ -10347,7 +10235,7 @@ function memberNameToString(name) {
|
|
|
10347
10235
|
}
|
|
10348
10236
|
return String(name);
|
|
10349
10237
|
}
|
|
10350
|
-
|
|
10238
|
+
chunkUSNT2KNT_cjs.__name(memberNameToString, "memberNameToString");
|
|
10351
10239
|
memberNameToString.__type = [
|
|
10352
10240
|
"name",
|
|
10353
10241
|
"memberNameToString",
|
|
@@ -10367,9 +10255,9 @@ var binaryTypes = [
|
|
|
10367
10255
|
];
|
|
10368
10256
|
function isGlobalTypeClass(type) {
|
|
10369
10257
|
if (type.kind !== exports.ReflectionKind.class) return false;
|
|
10370
|
-
return
|
|
10258
|
+
return chunkZDFKNN7Y_cjs.isGlobalClass(type.classType);
|
|
10371
10259
|
}
|
|
10372
|
-
|
|
10260
|
+
chunkUSNT2KNT_cjs.__name(isGlobalTypeClass, "isGlobalTypeClass");
|
|
10373
10261
|
isGlobalTypeClass.__type = [
|
|
10374
10262
|
"Type",
|
|
10375
10263
|
"type",
|
|
@@ -10379,7 +10267,7 @@ isGlobalTypeClass.__type = [
|
|
|
10379
10267
|
function isCustomTypeClass(type) {
|
|
10380
10268
|
return type.kind === exports.ReflectionKind.class && !isGlobalTypeClass(type);
|
|
10381
10269
|
}
|
|
10382
|
-
|
|
10270
|
+
chunkUSNT2KNT_cjs.__name(isCustomTypeClass, "isCustomTypeClass");
|
|
10383
10271
|
isCustomTypeClass.__type = [
|
|
10384
10272
|
"Type",
|
|
10385
10273
|
"type",
|
|
@@ -10395,7 +10283,7 @@ function isTypeClassOf(classType, withInheritance = true) {
|
|
|
10395
10283
|
]);
|
|
10396
10284
|
return __assignType6((type) => {
|
|
10397
10285
|
if (type.kind !== exports.ReflectionKind.class) return false;
|
|
10398
|
-
const chain =
|
|
10286
|
+
const chain = chunkZDFKNN7Y_cjs.getInheritanceChain(type.classType);
|
|
10399
10287
|
return chain.includes(classType);
|
|
10400
10288
|
}, [
|
|
10401
10289
|
"Type",
|
|
@@ -10404,9 +10292,9 @@ function isTypeClassOf(classType, withInheritance = true) {
|
|
|
10404
10292
|
'P"w!2""/#'
|
|
10405
10293
|
]);
|
|
10406
10294
|
}
|
|
10407
|
-
|
|
10295
|
+
chunkUSNT2KNT_cjs.__name(isTypeClassOf, "isTypeClassOf");
|
|
10408
10296
|
isTypeClassOf.__type = [
|
|
10409
|
-
() =>
|
|
10297
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
10410
10298
|
"classType",
|
|
10411
10299
|
"withInheritance",
|
|
10412
10300
|
() => true,
|
|
@@ -10419,7 +10307,7 @@ isTypeClassOf.__type = [
|
|
|
10419
10307
|
function resolveTypeMembers(type) {
|
|
10420
10308
|
return type.types;
|
|
10421
10309
|
}
|
|
10422
|
-
|
|
10310
|
+
chunkUSNT2KNT_cjs.__name(resolveTypeMembers, "resolveTypeMembers");
|
|
10423
10311
|
resolveTypeMembers.__type = [
|
|
10424
10312
|
() => __\u03A9TypeClass,
|
|
10425
10313
|
() => __\u03A9TypeObjectLiteral,
|
|
@@ -10439,7 +10327,7 @@ function stringifyResolvedType(type) {
|
|
|
10439
10327
|
showFullDefinition: true
|
|
10440
10328
|
});
|
|
10441
10329
|
}
|
|
10442
|
-
|
|
10330
|
+
chunkUSNT2KNT_cjs.__name(stringifyResolvedType, "stringifyResolvedType");
|
|
10443
10331
|
stringifyResolvedType.__type = [
|
|
10444
10332
|
"Type",
|
|
10445
10333
|
"type",
|
|
@@ -10453,7 +10341,7 @@ function stringifyShortResolvedType(type, stateIn = {}) {
|
|
|
10453
10341
|
showFullDefinition: false
|
|
10454
10342
|
});
|
|
10455
10343
|
}
|
|
10456
|
-
|
|
10344
|
+
chunkUSNT2KNT_cjs.__name(stringifyShortResolvedType, "stringifyShortResolvedType");
|
|
10457
10345
|
stringifyShortResolvedType.__type = [
|
|
10458
10346
|
"Type",
|
|
10459
10347
|
"type",
|
|
@@ -10465,7 +10353,7 @@ stringifyShortResolvedType.__type = [
|
|
|
10465
10353
|
`P"w!2"n$o#"2%>&&/'`
|
|
10466
10354
|
];
|
|
10467
10355
|
function getDeepConstructorProperties(type) {
|
|
10468
|
-
const chain =
|
|
10356
|
+
const chain = chunkZDFKNN7Y_cjs.getInheritanceChain(type.classType);
|
|
10469
10357
|
const res = [];
|
|
10470
10358
|
for (const classType of chain) {
|
|
10471
10359
|
const type2 = resolveReceiveType(classType);
|
|
@@ -10481,7 +10369,7 @@ function getDeepConstructorProperties(type) {
|
|
|
10481
10369
|
}
|
|
10482
10370
|
return res;
|
|
10483
10371
|
}
|
|
10484
|
-
|
|
10372
|
+
chunkUSNT2KNT_cjs.__name(getDeepConstructorProperties, "getDeepConstructorProperties");
|
|
10485
10373
|
getDeepConstructorProperties.__type = [
|
|
10486
10374
|
() => __\u03A9TypeClass,
|
|
10487
10375
|
"type",
|
|
@@ -10507,7 +10395,7 @@ function getEnumValueIndexMatcher(type) {
|
|
|
10507
10395
|
`P"2!'/"`
|
|
10508
10396
|
]);
|
|
10509
10397
|
}
|
|
10510
|
-
|
|
10398
|
+
chunkUSNT2KNT_cjs.__name(getEnumValueIndexMatcher, "getEnumValueIndexMatcher");
|
|
10511
10399
|
getEnumValueIndexMatcher.__type = [
|
|
10512
10400
|
() => __\u03A9TypeEnum,
|
|
10513
10401
|
"type",
|
|
@@ -10738,11 +10626,11 @@ function stringifyType(type, stateIn = {}) {
|
|
|
10738
10626
|
break;
|
|
10739
10627
|
}
|
|
10740
10628
|
if (binaryTypes.includes(type2.classType)) {
|
|
10741
|
-
result.push(
|
|
10629
|
+
result.push(chunkZDFKNN7Y_cjs.getClassName(type2.classType));
|
|
10742
10630
|
break;
|
|
10743
10631
|
}
|
|
10744
|
-
const typeName = type2.typeName ||
|
|
10745
|
-
const superClass =
|
|
10632
|
+
const typeName = type2.typeName || chunkZDFKNN7Y_cjs.getClassName(type2.classType);
|
|
10633
|
+
const superClass = chunkZDFKNN7Y_cjs.getParentClass(type2.classType);
|
|
10746
10634
|
if (state2.showFullDefinition) {
|
|
10747
10635
|
const types = state2.showHeritage ? type2.types : resolveTypeMembers(type2);
|
|
10748
10636
|
stack.push({
|
|
@@ -10800,7 +10688,7 @@ function stringifyType(type, stateIn = {}) {
|
|
|
10800
10688
|
});
|
|
10801
10689
|
}
|
|
10802
10690
|
if (showDescription) {
|
|
10803
|
-
const indentation =
|
|
10691
|
+
const indentation = chunkZDFKNN7Y_cjs.indent(depth * 2, " * ");
|
|
10804
10692
|
stack.push({
|
|
10805
10693
|
before: "\n" + indentation("/** " + sub.description + " */")
|
|
10806
10694
|
});
|
|
@@ -10924,7 +10812,7 @@ function stringifyType(type, stateIn = {}) {
|
|
|
10924
10812
|
});
|
|
10925
10813
|
}
|
|
10926
10814
|
if (showDescription) {
|
|
10927
|
-
const indentation =
|
|
10815
|
+
const indentation = chunkZDFKNN7Y_cjs.indent(depth * 2, " * ");
|
|
10928
10816
|
stack.push({
|
|
10929
10817
|
before: "\n" + indentation("/* " + sub.description + " */")
|
|
10930
10818
|
});
|
|
@@ -11146,7 +11034,7 @@ function stringifyType(type, stateIn = {}) {
|
|
|
11146
11034
|
}
|
|
11147
11035
|
return result.join("");
|
|
11148
11036
|
}
|
|
11149
|
-
|
|
11037
|
+
chunkUSNT2KNT_cjs.__name(stringifyType, "stringifyType");
|
|
11150
11038
|
stringifyType.__type = [
|
|
11151
11039
|
"Type",
|
|
11152
11040
|
"type",
|
|
@@ -11159,14 +11047,14 @@ stringifyType.__type = [
|
|
|
11159
11047
|
];
|
|
11160
11048
|
function annotateClass(clazz, type = annotateClass.\u03A9?.[0]) {
|
|
11161
11049
|
annotateClass.\u03A9 = void 0;
|
|
11162
|
-
clazz.__type =
|
|
11050
|
+
clazz.__type = chunkZDFKNN7Y_cjs.isClass(type) ? type.__type || [] : [];
|
|
11163
11051
|
type = resolveRuntimeType(type);
|
|
11164
11052
|
clazz.__type.__type = type;
|
|
11165
11053
|
}
|
|
11166
|
-
|
|
11054
|
+
chunkUSNT2KNT_cjs.__name(annotateClass, "annotateClass");
|
|
11167
11055
|
annotateClass.__type = [
|
|
11168
|
-
() =>
|
|
11169
|
-
() =>
|
|
11056
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
11057
|
+
() => chunkZDFKNN7Y_cjs.__ΩAbstractClassType,
|
|
11170
11058
|
"clazz",
|
|
11171
11059
|
() => __\u03A9ReceiveType,
|
|
11172
11060
|
"type",
|
|
@@ -11174,20 +11062,16 @@ annotateClass.__type = [
|
|
|
11174
11062
|
'PPn!n"J2#"o$"2%8"/&'
|
|
11175
11063
|
];
|
|
11176
11064
|
|
|
11177
|
-
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/serializer.js
|
|
11178
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
11179
|
-
|
|
11180
11065
|
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/reference.js
|
|
11181
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
11182
11066
|
function __assignType7(fn, args) {
|
|
11183
11067
|
fn.__type = args;
|
|
11184
11068
|
return fn;
|
|
11185
11069
|
}
|
|
11186
|
-
|
|
11070
|
+
chunkUSNT2KNT_cjs.__name(__assignType7, "__assignType");
|
|
11187
11071
|
function isReferenceInstance(obj) {
|
|
11188
|
-
return
|
|
11072
|
+
return chunkZDFKNN7Y_cjs.isObject(obj) && referenceSymbol in obj;
|
|
11189
11073
|
}
|
|
11190
|
-
|
|
11074
|
+
chunkUSNT2KNT_cjs.__name(isReferenceInstance, "isReferenceInstance");
|
|
11191
11075
|
isReferenceInstance.__type = [
|
|
11192
11076
|
"obj",
|
|
11193
11077
|
"isReferenceInstance",
|
|
@@ -11196,7 +11080,7 @@ isReferenceInstance.__type = [
|
|
|
11196
11080
|
function getReferenceInfo(obj) {
|
|
11197
11081
|
return obj[referenceSymbol];
|
|
11198
11082
|
}
|
|
11199
|
-
|
|
11083
|
+
chunkUSNT2KNT_cjs.__name(getReferenceInfo, "getReferenceInfo");
|
|
11200
11084
|
getReferenceInfo.__type = [
|
|
11201
11085
|
"obj",
|
|
11202
11086
|
() => __\u03A9ReferenceInfo,
|
|
@@ -11206,7 +11090,7 @@ getReferenceInfo.__type = [
|
|
|
11206
11090
|
function getReferenceItemInfo(obj) {
|
|
11207
11091
|
return obj[referenceItemSymbol];
|
|
11208
11092
|
}
|
|
11209
|
-
|
|
11093
|
+
chunkUSNT2KNT_cjs.__name(getReferenceItemInfo, "getReferenceItemInfo");
|
|
11210
11094
|
getReferenceItemInfo.__type = [
|
|
11211
11095
|
"obj",
|
|
11212
11096
|
() => __\u03A9ReferenceItemInfo,
|
|
@@ -11219,7 +11103,7 @@ function getOrCreateReferenceItemInfo(obj) {
|
|
|
11219
11103
|
};
|
|
11220
11104
|
return obj[referenceItemSymbol];
|
|
11221
11105
|
}
|
|
11222
|
-
|
|
11106
|
+
chunkUSNT2KNT_cjs.__name(getOrCreateReferenceItemInfo, "getOrCreateReferenceItemInfo");
|
|
11223
11107
|
getOrCreateReferenceItemInfo.__type = [
|
|
11224
11108
|
"obj",
|
|
11225
11109
|
() => __\u03A9ReferenceItemInfo,
|
|
@@ -11231,7 +11115,7 @@ function isReferenceHydrated(obj) {
|
|
|
11231
11115
|
const info = getReferenceItemInfo(obj);
|
|
11232
11116
|
return info ? info.hydrated : false;
|
|
11233
11117
|
}
|
|
11234
|
-
|
|
11118
|
+
chunkUSNT2KNT_cjs.__name(isReferenceHydrated, "isReferenceHydrated");
|
|
11235
11119
|
isReferenceHydrated.__type = [
|
|
11236
11120
|
"obj",
|
|
11237
11121
|
"isReferenceHydrated",
|
|
@@ -11240,7 +11124,7 @@ isReferenceHydrated.__type = [
|
|
|
11240
11124
|
function markAsHydrated(item) {
|
|
11241
11125
|
getOrCreateReferenceItemInfo(item).hydrated = true;
|
|
11242
11126
|
}
|
|
11243
|
-
|
|
11127
|
+
chunkUSNT2KNT_cjs.__name(markAsHydrated, "markAsHydrated");
|
|
11244
11128
|
markAsHydrated.__type = [
|
|
11245
11129
|
"item",
|
|
11246
11130
|
"markAsHydrated",
|
|
@@ -11273,9 +11157,9 @@ function createReference(type, pk) {
|
|
|
11273
11157
|
typeSettings.unpopulatedCheck = old;
|
|
11274
11158
|
}
|
|
11275
11159
|
}
|
|
11276
|
-
|
|
11160
|
+
chunkUSNT2KNT_cjs.__name(createReference, "createReference");
|
|
11277
11161
|
createReference.__type = [
|
|
11278
|
-
() =>
|
|
11162
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
11279
11163
|
"Type",
|
|
11280
11164
|
() => ReflectionClass,
|
|
11281
11165
|
"type",
|
|
@@ -11288,14 +11172,14 @@ function createReferenceClass(reflection) {
|
|
|
11288
11172
|
if (reflection.data.referenceClass) return reflection.data.referenceClass;
|
|
11289
11173
|
const Reference = reflection.type.kind === exports.ReflectionKind.class ? (_a3 = class extends reflection.type.classType {
|
|
11290
11174
|
static {
|
|
11291
|
-
|
|
11175
|
+
chunkUSNT2KNT_cjs.__name(this, "_a");
|
|
11292
11176
|
}
|
|
11293
11177
|
}, _a3.__type = [
|
|
11294
11178
|
() => reflection.type.classType,
|
|
11295
11179
|
"P7!5"
|
|
11296
11180
|
], _a3) : (_b3 = class {
|
|
11297
11181
|
static {
|
|
11298
|
-
|
|
11182
|
+
chunkUSNT2KNT_cjs.__name(this, "_b");
|
|
11299
11183
|
}
|
|
11300
11184
|
}, _b3.__type = [
|
|
11301
11185
|
"5"
|
|
@@ -11327,7 +11211,7 @@ function createReferenceClass(reflection) {
|
|
|
11327
11211
|
Object.defineProperty(Reference.prototype, property.name, {
|
|
11328
11212
|
enumerable: true,
|
|
11329
11213
|
configurable: true,
|
|
11330
|
-
get: __assignType7(/* @__PURE__ */
|
|
11214
|
+
get: __assignType7(/* @__PURE__ */ chunkUSNT2KNT_cjs.__name(function get() {
|
|
11331
11215
|
if (this.hasOwnProperty(property.symbol)) {
|
|
11332
11216
|
return this[property.symbol];
|
|
11333
11217
|
}
|
|
@@ -11341,7 +11225,7 @@ function createReferenceClass(reflection) {
|
|
|
11341
11225
|
"get",
|
|
11342
11226
|
'P"/!'
|
|
11343
11227
|
]),
|
|
11344
|
-
set: __assignType7(/* @__PURE__ */
|
|
11228
|
+
set: __assignType7(/* @__PURE__ */ chunkUSNT2KNT_cjs.__name(function set(v) {
|
|
11345
11229
|
if (typeSettings.unpopulatedCheck === exports.UnpopulatedCheck.None) {
|
|
11346
11230
|
return;
|
|
11347
11231
|
}
|
|
@@ -11359,25 +11243,21 @@ function createReferenceClass(reflection) {
|
|
|
11359
11243
|
}
|
|
11360
11244
|
return Reference;
|
|
11361
11245
|
}
|
|
11362
|
-
|
|
11246
|
+
chunkUSNT2KNT_cjs.__name(createReferenceClass, "createReferenceClass");
|
|
11363
11247
|
createReferenceClass.__type = [
|
|
11364
11248
|
() => ReflectionClass,
|
|
11365
11249
|
"reflection",
|
|
11366
|
-
() =>
|
|
11250
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
11367
11251
|
"createReferenceClass",
|
|
11368
11252
|
'PP"7!2""o#"/$'
|
|
11369
11253
|
];
|
|
11370
11254
|
|
|
11371
|
-
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/validator.js
|
|
11372
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
11373
|
-
|
|
11374
11255
|
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/typeguard.js
|
|
11375
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
11376
11256
|
function __assignType8(fn, args) {
|
|
11377
11257
|
fn.__type = args;
|
|
11378
11258
|
return fn;
|
|
11379
11259
|
}
|
|
11380
|
-
|
|
11260
|
+
chunkUSNT2KNT_cjs.__name(__assignType8, "__assignType");
|
|
11381
11261
|
function getValidatorFunction(serializerToUse = serializer, receiveType = getValidatorFunction.\u03A9?.[0]) {
|
|
11382
11262
|
getValidatorFunction.\u03A9 = void 0;
|
|
11383
11263
|
if (!receiveType) throw new NoTypeReceived();
|
|
@@ -11392,7 +11272,7 @@ function getValidatorFunction(serializerToUse = serializer, receiveType = getVal
|
|
|
11392
11272
|
jit.__is = fn;
|
|
11393
11273
|
return fn;
|
|
11394
11274
|
}
|
|
11395
|
-
|
|
11275
|
+
chunkUSNT2KNT_cjs.__name(getValidatorFunction, "getValidatorFunction");
|
|
11396
11276
|
getValidatorFunction.__type = [
|
|
11397
11277
|
() => Serializer,
|
|
11398
11278
|
"serializerToUse",
|
|
@@ -11410,7 +11290,7 @@ function is(data, serializerToUse = serializer, errors = [], receiveType = is.\u
|
|
|
11410
11290
|
errors
|
|
11411
11291
|
});
|
|
11412
11292
|
}
|
|
11413
|
-
|
|
11293
|
+
chunkUSNT2KNT_cjs.__name(is, "is");
|
|
11414
11294
|
is.__type = [
|
|
11415
11295
|
"data",
|
|
11416
11296
|
() => Serializer,
|
|
@@ -11435,7 +11315,7 @@ function guard(serializerToUse = serializer, receiveType = guard.\u03A9?.[0]) {
|
|
|
11435
11315
|
'P"2!"/"'
|
|
11436
11316
|
]);
|
|
11437
11317
|
}
|
|
11438
|
-
|
|
11318
|
+
chunkUSNT2KNT_cjs.__name(guard, "guard");
|
|
11439
11319
|
guard.__type = [
|
|
11440
11320
|
() => Serializer,
|
|
11441
11321
|
"serializerToUse",
|
|
@@ -11454,7 +11334,7 @@ function assert(data, serializerToUse = serializer, receiveType = assert.\u03A9?
|
|
|
11454
11334
|
throw new exports.ValidationError(errors, resolveReceiveType(receiveType));
|
|
11455
11335
|
}
|
|
11456
11336
|
}
|
|
11457
|
-
|
|
11337
|
+
chunkUSNT2KNT_cjs.__name(assert, "assert");
|
|
11458
11338
|
assert.__type = [
|
|
11459
11339
|
"data",
|
|
11460
11340
|
() => Serializer,
|
|
@@ -11481,11 +11361,11 @@ function __assignType9(fn, args) {
|
|
|
11481
11361
|
fn.__type = args;
|
|
11482
11362
|
return fn;
|
|
11483
11363
|
}
|
|
11484
|
-
|
|
11364
|
+
chunkUSNT2KNT_cjs.__name(__assignType9, "__assignType");
|
|
11485
11365
|
var __\u03A9ValidatorMeta = [
|
|
11486
11366
|
"Name",
|
|
11487
11367
|
"Args",
|
|
11488
|
-
() =>
|
|
11368
|
+
() => chunkZDFKNN7Y_cjs.__ΩTypeAnnotation,
|
|
11489
11369
|
"validator",
|
|
11490
11370
|
"ValidatorMeta",
|
|
11491
11371
|
'b!PGc".$Pe"!e""Go##w%y'
|
|
@@ -11669,7 +11549,7 @@ var __\u03A9Email = [
|
|
|
11669
11549
|
];
|
|
11670
11550
|
var ValidatorError = class {
|
|
11671
11551
|
static {
|
|
11672
|
-
|
|
11552
|
+
chunkUSNT2KNT_cjs.__name(this, "ValidatorError");
|
|
11673
11553
|
}
|
|
11674
11554
|
constructor(code, message, path) {
|
|
11675
11555
|
this.code = code;
|
|
@@ -11687,7 +11567,7 @@ ValidatorError.__type = [
|
|
|
11687
11567
|
];
|
|
11688
11568
|
var ValidationErrorItem = class {
|
|
11689
11569
|
static {
|
|
11690
|
-
|
|
11570
|
+
chunkUSNT2KNT_cjs.__name(this, "ValidationErrorItem");
|
|
11691
11571
|
}
|
|
11692
11572
|
constructor(path, code, message, value) {
|
|
11693
11573
|
this.path = path;
|
|
@@ -11718,9 +11598,9 @@ ValidationErrorItem.__type = [
|
|
|
11718
11598
|
"ValidationErrorItem",
|
|
11719
11599
|
`P&2!:9&2":9&2#:9"2$8:9"0%P&2&>'"0(5w)`
|
|
11720
11600
|
];
|
|
11721
|
-
exports.ValidationError = ValidationError_1 = class ValidationError2 extends
|
|
11601
|
+
exports.ValidationError = ValidationError_1 = class ValidationError2 extends chunkZDFKNN7Y_cjs.CustomError {
|
|
11722
11602
|
static {
|
|
11723
|
-
|
|
11603
|
+
chunkUSNT2KNT_cjs.__name(this, "ValidationError");
|
|
11724
11604
|
}
|
|
11725
11605
|
constructor(errors, type) {
|
|
11726
11606
|
super(`Validation error${type ? ` for type ${stringifyType(type)}` : ""}:
|
|
@@ -11740,7 +11620,7 @@ ${errors.map(__assignType9((v) => v.toString(), [
|
|
|
11740
11620
|
}
|
|
11741
11621
|
};
|
|
11742
11622
|
exports.ValidationError.__type = [
|
|
11743
|
-
() =>
|
|
11623
|
+
() => chunkZDFKNN7Y_cjs.CustomError,
|
|
11744
11624
|
() => ValidationErrorItem,
|
|
11745
11625
|
"errors",
|
|
11746
11626
|
"Type",
|
|
@@ -11761,14 +11641,14 @@ exports.ValidationError = ValidationError_1 = __decorate([
|
|
|
11761
11641
|
Object
|
|
11762
11642
|
])
|
|
11763
11643
|
], exports.ValidationError);
|
|
11764
|
-
function
|
|
11765
|
-
|
|
11644
|
+
function validate(data, type = validate.\u03A9?.[0]) {
|
|
11645
|
+
validate.\u03A9 = void 0;
|
|
11766
11646
|
const errors = [];
|
|
11767
11647
|
is(data, void 0, errors, type);
|
|
11768
11648
|
return errors;
|
|
11769
11649
|
}
|
|
11770
|
-
|
|
11771
|
-
|
|
11650
|
+
chunkUSNT2KNT_cjs.__name(validate, "validate");
|
|
11651
|
+
validate.__type = [
|
|
11772
11652
|
"data",
|
|
11773
11653
|
() => __\u03A9ReceiveType,
|
|
11774
11654
|
"type",
|
|
@@ -11792,7 +11672,7 @@ function validateFunction(serializerToUse = serializer, type = validateFunction.
|
|
|
11792
11672
|
'Pn!2""/#'
|
|
11793
11673
|
]);
|
|
11794
11674
|
}
|
|
11795
|
-
|
|
11675
|
+
chunkUSNT2KNT_cjs.__name(validateFunction, "validateFunction");
|
|
11796
11676
|
validateFunction.__type = [
|
|
11797
11677
|
() => Serializer,
|
|
11798
11678
|
"serializerToUse",
|
|
@@ -11807,10 +11687,10 @@ validateFunction.__type = [
|
|
|
11807
11687
|
];
|
|
11808
11688
|
function validates(data, type = validates.\u03A9?.[0]) {
|
|
11809
11689
|
validates.\u03A9 = void 0;
|
|
11810
|
-
const errors =
|
|
11690
|
+
const errors = validate(data, type);
|
|
11811
11691
|
return errors.length === 0;
|
|
11812
11692
|
}
|
|
11813
|
-
|
|
11693
|
+
chunkUSNT2KNT_cjs.__name(validates, "validates");
|
|
11814
11694
|
validates.__type = [
|
|
11815
11695
|
"data",
|
|
11816
11696
|
() => __\u03A9ReceiveType,
|
|
@@ -11820,12 +11700,11 @@ validates.__type = [
|
|
|
11820
11700
|
];
|
|
11821
11701
|
|
|
11822
11702
|
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/validators.js
|
|
11823
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
11824
11703
|
function __assignType10(fn, args) {
|
|
11825
11704
|
fn.__type = args;
|
|
11826
11705
|
return fn;
|
|
11827
11706
|
}
|
|
11828
|
-
|
|
11707
|
+
chunkUSNT2KNT_cjs.__name(__assignType10, "__assignType");
|
|
11829
11708
|
var validators = {
|
|
11830
11709
|
pattern(type) {
|
|
11831
11710
|
return __assignType10((value) => {
|
|
@@ -11913,7 +11792,7 @@ var validators = {
|
|
|
11913
11792
|
},
|
|
11914
11793
|
minLength(length) {
|
|
11915
11794
|
return __assignType10((value) => {
|
|
11916
|
-
if ("string" !== typeof value && !
|
|
11795
|
+
if ("string" !== typeof value && !chunkZDFKNN7Y_cjs.isArray(value)) return;
|
|
11917
11796
|
if (value.length >= length.literal) return;
|
|
11918
11797
|
return new ValidatorError("minLength", "Min length is " + length.literal);
|
|
11919
11798
|
}, [
|
|
@@ -11924,7 +11803,7 @@ var validators = {
|
|
|
11924
11803
|
},
|
|
11925
11804
|
maxLength(length) {
|
|
11926
11805
|
return __assignType10((value) => {
|
|
11927
|
-
if ("string" !== typeof value && !
|
|
11806
|
+
if ("string" !== typeof value && !chunkZDFKNN7Y_cjs.isArray(value)) return;
|
|
11928
11807
|
if (value.length <= length.literal) return;
|
|
11929
11808
|
return new ValidatorError("maxLength", "Max length is " + length.literal);
|
|
11930
11809
|
}, [
|
|
@@ -11935,7 +11814,7 @@ var validators = {
|
|
|
11935
11814
|
},
|
|
11936
11815
|
includes(include) {
|
|
11937
11816
|
return __assignType10((value) => {
|
|
11938
|
-
if ("string" !== typeof value && !
|
|
11817
|
+
if ("string" !== typeof value && !chunkZDFKNN7Y_cjs.isArray(value)) return;
|
|
11939
11818
|
if (value.includes(include.literal)) return;
|
|
11940
11819
|
return new ValidatorError("includes", `Needs to include '${String(include.literal)}'`);
|
|
11941
11820
|
}, [
|
|
@@ -11946,7 +11825,7 @@ var validators = {
|
|
|
11946
11825
|
},
|
|
11947
11826
|
excludes(excludes) {
|
|
11948
11827
|
return __assignType10((value) => {
|
|
11949
|
-
if ("string" !== typeof value && !
|
|
11828
|
+
if ("string" !== typeof value && !chunkZDFKNN7Y_cjs.isArray(value)) return;
|
|
11950
11829
|
if (!value.includes(excludes.literal)) return;
|
|
11951
11830
|
return new ValidatorError("excludes", `Needs to exclude '${String(excludes.literal)}'`);
|
|
11952
11831
|
}, [
|
|
@@ -12081,10 +11960,10 @@ function __assignType11(fn, args) {
|
|
|
12081
11960
|
fn.__type = args;
|
|
12082
11961
|
return fn;
|
|
12083
11962
|
}
|
|
12084
|
-
|
|
11963
|
+
chunkUSNT2KNT_cjs.__name(__assignType11, "__assignType");
|
|
12085
11964
|
var NamingStrategy = class {
|
|
12086
11965
|
static {
|
|
12087
|
-
|
|
11966
|
+
chunkUSNT2KNT_cjs.__name(this, "NamingStrategy");
|
|
12088
11967
|
}
|
|
12089
11968
|
constructor(id = "default") {
|
|
12090
11969
|
this.id = id;
|
|
@@ -12110,7 +11989,7 @@ NamingStrategy.__type = [
|
|
|
12110
11989
|
];
|
|
12111
11990
|
var underscoreNamingStrategy = new (_a2 = class extends NamingStrategy {
|
|
12112
11991
|
static {
|
|
12113
|
-
|
|
11992
|
+
chunkUSNT2KNT_cjs.__name(this, "_a");
|
|
12114
11993
|
}
|
|
12115
11994
|
constructor() {
|
|
12116
11995
|
super("underscore");
|
|
@@ -12162,7 +12041,7 @@ function isGroupAllowed(options, groupNames) {
|
|
|
12162
12041
|
}
|
|
12163
12042
|
return true;
|
|
12164
12043
|
}
|
|
12165
|
-
|
|
12044
|
+
chunkUSNT2KNT_cjs.__name(isGroupAllowed, "isGroupAllowed");
|
|
12166
12045
|
isGroupAllowed.__type = [
|
|
12167
12046
|
() => __\u03A9SerializationOptions,
|
|
12168
12047
|
"options",
|
|
@@ -12198,7 +12077,7 @@ function getPartialType(type) {
|
|
|
12198
12077
|
}
|
|
12199
12078
|
return jitContainer.partialType = getTypeObjectLiteralFromTypeClass(type);
|
|
12200
12079
|
}
|
|
12201
|
-
|
|
12080
|
+
chunkUSNT2KNT_cjs.__name(getPartialType, "getPartialType");
|
|
12202
12081
|
getPartialType.__type = [
|
|
12203
12082
|
() => __\u03A9TypeClass,
|
|
12204
12083
|
() => __\u03A9TypeObjectLiteral,
|
|
@@ -12209,7 +12088,7 @@ getPartialType.__type = [
|
|
|
12209
12088
|
function getPartialSerializeFunction(type, registry, namingStrategy = new NamingStrategy()) {
|
|
12210
12089
|
return getSerializeFunction(getPartialType(type), registry, namingStrategy);
|
|
12211
12090
|
}
|
|
12212
|
-
|
|
12091
|
+
chunkUSNT2KNT_cjs.__name(getPartialSerializeFunction, "getPartialSerializeFunction");
|
|
12213
12092
|
getPartialSerializeFunction.__type = [
|
|
12214
12093
|
() => __\u03A9TypeClass,
|
|
12215
12094
|
() => __\u03A9TypeObjectLiteral,
|
|
@@ -12227,10 +12106,10 @@ function getSerializeFunction(type, registry, namingStrategy = new NamingStrateg
|
|
|
12227
12106
|
const id = registry.id + "_" + namingStrategy.id + "_" + path;
|
|
12228
12107
|
if (jit[id]) return jit[id];
|
|
12229
12108
|
jit[id] = createSerializeFunction(type, registry, namingStrategy, path, jitStack);
|
|
12230
|
-
|
|
12109
|
+
chunkZDFKNN7Y_cjs.toFastProperties(jit);
|
|
12231
12110
|
return jit[id];
|
|
12232
12111
|
}
|
|
12233
|
-
|
|
12112
|
+
chunkUSNT2KNT_cjs.__name(getSerializeFunction, "getSerializeFunction");
|
|
12234
12113
|
getSerializeFunction.__type = [
|
|
12235
12114
|
"Type",
|
|
12236
12115
|
"type",
|
|
@@ -12247,8 +12126,8 @@ getSerializeFunction.__type = [
|
|
|
12247
12126
|
`P"w!2"P7#2$P7%2&>'&2(>)"2*n+/,`
|
|
12248
12127
|
];
|
|
12249
12128
|
function createSerializeFunction(type, registry, namingStrategy = new NamingStrategy(), path = "", jitStack = new JitStack()) {
|
|
12250
|
-
const compiler = new
|
|
12251
|
-
const state2 = new TemplateState("result", "data", compiler, registry, namingStrategy, jitStack,
|
|
12129
|
+
const compiler = new chunkZDFKNN7Y_cjs.CompilerContext();
|
|
12130
|
+
const state2 = new TemplateState("result", "data", compiler, registry, namingStrategy, jitStack, chunkZDFKNN7Y_cjs.isArray(path) ? path : path ? [
|
|
12252
12131
|
path
|
|
12253
12132
|
] : []);
|
|
12254
12133
|
if (state2.registry === state2.registry.serializer.deserializeRegistry) {
|
|
@@ -12270,7 +12149,7 @@ function createSerializeFunction(type, registry, namingStrategy = new NamingStra
|
|
|
12270
12149
|
`;
|
|
12271
12150
|
return compiler.build(code, "data", "state");
|
|
12272
12151
|
}
|
|
12273
|
-
|
|
12152
|
+
chunkUSNT2KNT_cjs.__name(createSerializeFunction, "createSerializeFunction");
|
|
12274
12153
|
createSerializeFunction.__type = [
|
|
12275
12154
|
"Type",
|
|
12276
12155
|
"type",
|
|
@@ -12299,7 +12178,7 @@ var __\u03A9Guard = [
|
|
|
12299
12178
|
`b!P"2"PP7#F4$8M2%8!/&w'y`
|
|
12300
12179
|
];
|
|
12301
12180
|
function createTypeGuardFunction(type, stateIn, serializerToUse, withLoose = true) {
|
|
12302
|
-
const compiler = new
|
|
12181
|
+
const compiler = new chunkZDFKNN7Y_cjs.CompilerContext();
|
|
12303
12182
|
let state2;
|
|
12304
12183
|
if (stateIn instanceof TemplateState) {
|
|
12305
12184
|
state2 = stateIn.fork("result");
|
|
@@ -12329,7 +12208,7 @@ function createTypeGuardFunction(type, stateIn, serializerToUse, withLoose = tru
|
|
|
12329
12208
|
`;
|
|
12330
12209
|
return compiler.build(code, "data", "state", "_path", "property");
|
|
12331
12210
|
}
|
|
12332
|
-
|
|
12211
|
+
chunkUSNT2KNT_cjs.__name(createTypeGuardFunction, "createTypeGuardFunction");
|
|
12333
12212
|
createTypeGuardFunction.__type = [
|
|
12334
12213
|
"Type",
|
|
12335
12214
|
"type",
|
|
@@ -12343,9 +12222,9 @@ createTypeGuardFunction.__type = [
|
|
|
12343
12222
|
"createTypeGuardFunction",
|
|
12344
12223
|
`P"w!2"P7$o#"2%8P7&2'8"2(P-"o)"J/*`
|
|
12345
12224
|
];
|
|
12346
|
-
var SerializationError = class extends
|
|
12225
|
+
var SerializationError = class extends chunkZDFKNN7Y_cjs.CustomError {
|
|
12347
12226
|
static {
|
|
12348
|
-
|
|
12227
|
+
chunkUSNT2KNT_cjs.__name(this, "SerializationError");
|
|
12349
12228
|
}
|
|
12350
12229
|
constructor(originalMessage, code = "", path = "") {
|
|
12351
12230
|
super(`Serialization failed. ${!path ? "" : (path && path.startsWith(".") ? path.slice(1) : path) + ": "}` + originalMessage);
|
|
@@ -12355,7 +12234,7 @@ var SerializationError = class extends chunkITQKPDCW_cjs.CustomError {
|
|
|
12355
12234
|
}
|
|
12356
12235
|
};
|
|
12357
12236
|
SerializationError.__type = [
|
|
12358
|
-
() =>
|
|
12237
|
+
() => chunkZDFKNN7Y_cjs.CustomError,
|
|
12359
12238
|
"originalMessage",
|
|
12360
12239
|
"code",
|
|
12361
12240
|
() => "",
|
|
@@ -12367,7 +12246,7 @@ SerializationError.__type = [
|
|
|
12367
12246
|
];
|
|
12368
12247
|
var RuntimeCode = class {
|
|
12369
12248
|
static {
|
|
12370
|
-
|
|
12249
|
+
chunkUSNT2KNT_cjs.__name(this, "RuntimeCode");
|
|
12371
12250
|
}
|
|
12372
12251
|
constructor(code) {
|
|
12373
12252
|
this.code = code;
|
|
@@ -12390,7 +12269,7 @@ function collapsePath(path, prefix) {
|
|
|
12390
12269
|
'P"2!"/"'
|
|
12391
12270
|
])).join(`+'.'+`) || `''`;
|
|
12392
12271
|
}
|
|
12393
|
-
|
|
12272
|
+
chunkUSNT2KNT_cjs.__name(collapsePath, "collapsePath");
|
|
12394
12273
|
collapsePath.__type = [
|
|
12395
12274
|
() => RuntimeCode,
|
|
12396
12275
|
"path",
|
|
@@ -12403,7 +12282,7 @@ function getPropertyNameString(propertyName) {
|
|
|
12403
12282
|
propertyName
|
|
12404
12283
|
]) : "";
|
|
12405
12284
|
}
|
|
12406
|
-
|
|
12285
|
+
chunkUSNT2KNT_cjs.__name(getPropertyNameString, "getPropertyNameString");
|
|
12407
12286
|
getPropertyNameString.__type = [
|
|
12408
12287
|
() => RuntimeCode,
|
|
12409
12288
|
"propertyName",
|
|
@@ -12412,7 +12291,7 @@ getPropertyNameString.__type = [
|
|
|
12412
12291
|
];
|
|
12413
12292
|
var JitStack = class {
|
|
12414
12293
|
static {
|
|
12415
|
-
|
|
12294
|
+
chunkUSNT2KNT_cjs.__name(this, "JitStack");
|
|
12416
12295
|
}
|
|
12417
12296
|
constructor() {
|
|
12418
12297
|
this.stacks = [];
|
|
@@ -12518,7 +12397,7 @@ JitStack.__type = [
|
|
|
12518
12397
|
];
|
|
12519
12398
|
var ContainerAccessor = class {
|
|
12520
12399
|
static {
|
|
12521
|
-
|
|
12400
|
+
chunkUSNT2KNT_cjs.__name(this, "ContainerAccessor");
|
|
12522
12401
|
}
|
|
12523
12402
|
constructor(container, property) {
|
|
12524
12403
|
this.container = container;
|
|
@@ -12539,7 +12418,7 @@ ContainerAccessor.__type = [
|
|
|
12539
12418
|
];
|
|
12540
12419
|
var TemplateState = class {
|
|
12541
12420
|
static {
|
|
12542
|
-
|
|
12421
|
+
chunkUSNT2KNT_cjs.__name(this, "TemplateState");
|
|
12543
12422
|
}
|
|
12544
12423
|
constructor(originalSetter, originalAccessor, compilerContext, registry, namingStrategy = new NamingStrategy(), jitStack = new JitStack(), path = []) {
|
|
12545
12424
|
this.originalSetter = originalSetter;
|
|
@@ -12636,7 +12515,7 @@ var TemplateState = class {
|
|
|
12636
12515
|
throwCode(type, error, accessor = this.originalAccessor) {
|
|
12637
12516
|
this.setContext({
|
|
12638
12517
|
ValidationError: exports.ValidationError,
|
|
12639
|
-
stringifyValueWithType:
|
|
12518
|
+
stringifyValueWithType: chunkZDFKNN7Y_cjs.stringifyValueWithType
|
|
12640
12519
|
});
|
|
12641
12520
|
const to = JSON.stringify(("string" === typeof type ? type : stringifyType(type)).replace(/\n/g, "").replace(/\s+/g, " ").trim());
|
|
12642
12521
|
return `throw ValidationError.from([{code: 'type', path: ${collapsePath(this.path)}, message: 'Cannot convert ' + ${accessor} + ' to ' + ${to} ${error ? ` + '. ' + ${error}` : ""} }])`;
|
|
@@ -12785,7 +12664,7 @@ TemplateState.__type = [
|
|
|
12785
12664
|
"originalSetter",
|
|
12786
12665
|
() => ContainerAccessor,
|
|
12787
12666
|
"originalAccessor",
|
|
12788
|
-
() =>
|
|
12667
|
+
() => chunkZDFKNN7Y_cjs.CompilerContext,
|
|
12789
12668
|
"compilerContext",
|
|
12790
12669
|
() => TemplateRegistry,
|
|
12791
12670
|
"registry",
|
|
@@ -12874,7 +12753,7 @@ var __\u03A9TemplateHook = [
|
|
|
12874
12753
|
function noopTemplate(type, state2) {
|
|
12875
12754
|
state2.addSetter(state2.accessor);
|
|
12876
12755
|
}
|
|
12877
|
-
|
|
12756
|
+
chunkUSNT2KNT_cjs.__name(noopTemplate, "noopTemplate");
|
|
12878
12757
|
noopTemplate.__type = [
|
|
12879
12758
|
"Type",
|
|
12880
12759
|
"type",
|
|
@@ -12895,7 +12774,7 @@ var __\u03A9TemplateDecorator = [
|
|
|
12895
12774
|
];
|
|
12896
12775
|
var TemplateRegistry = class _TemplateRegistry {
|
|
12897
12776
|
static {
|
|
12898
|
-
|
|
12777
|
+
chunkUSNT2KNT_cjs.__name(this, "TemplateRegistry");
|
|
12899
12778
|
}
|
|
12900
12779
|
constructor(serializer2 = new EmptySerializer()) {
|
|
12901
12780
|
this.serializer = serializer2;
|
|
@@ -12906,7 +12785,7 @@ var TemplateRegistry = class _TemplateRegistry {
|
|
|
12906
12785
|
this.postHooks = [];
|
|
12907
12786
|
this.classTemplates = (Map.\u03A9 = [
|
|
12908
12787
|
[
|
|
12909
|
-
() =>
|
|
12788
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
12910
12789
|
"n!"
|
|
12911
12790
|
],
|
|
12912
12791
|
[
|
|
@@ -13064,7 +12943,7 @@ TemplateRegistry.__type = [
|
|
|
13064
12943
|
function() {
|
|
13065
12944
|
return Map.\u03A9 = [
|
|
13066
12945
|
[
|
|
13067
|
-
() =>
|
|
12946
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
13068
12947
|
"n!"
|
|
13069
12948
|
],
|
|
13070
12949
|
[
|
|
@@ -13088,20 +12967,20 @@ TemplateRegistry.__type = [
|
|
|
13088
12967
|
() => __\u03A9TypeClass,
|
|
13089
12968
|
"template",
|
|
13090
12969
|
"registerBinary",
|
|
13091
|
-
() =>
|
|
12970
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
13092
12971
|
"classType",
|
|
13093
12972
|
() => __\u03A9Template,
|
|
13094
12973
|
() => __\u03A9TypeClass,
|
|
13095
12974
|
"registerClass",
|
|
13096
|
-
() =>
|
|
12975
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
13097
12976
|
() => __\u03A9Template,
|
|
13098
12977
|
() => __\u03A9TypeClass,
|
|
13099
12978
|
"prependClass",
|
|
13100
|
-
() =>
|
|
12979
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
13101
12980
|
() => __\u03A9Template,
|
|
13102
12981
|
() => __\u03A9TypeClass,
|
|
13103
12982
|
"appendClass",
|
|
13104
|
-
() =>
|
|
12983
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
13105
12984
|
() => __\u03A9Template,
|
|
13106
12985
|
() => __\u03A9TypeClass,
|
|
13107
12986
|
"getClassTemplates",
|
|
@@ -13143,7 +13022,7 @@ function callExtractedFunctionIfAvailable(state2, type) {
|
|
|
13143
13022
|
if (withSetter) state2.accessor = state2.setter;
|
|
13144
13023
|
return true;
|
|
13145
13024
|
}
|
|
13146
|
-
|
|
13025
|
+
chunkUSNT2KNT_cjs.__name(callExtractedFunctionIfAvailable, "callExtractedFunctionIfAvailable");
|
|
13147
13026
|
callExtractedFunctionIfAvailable.__type = [
|
|
13148
13027
|
() => TemplateState,
|
|
13149
13028
|
"state",
|
|
@@ -13163,7 +13042,7 @@ function extractStateToFunctionAndCallIt(state2, type) {
|
|
|
13163
13042
|
]).forPropertyName(state2.propertyName)
|
|
13164
13043
|
};
|
|
13165
13044
|
}
|
|
13166
|
-
|
|
13045
|
+
chunkUSNT2KNT_cjs.__name(extractStateToFunctionAndCallIt, "extractStateToFunctionAndCallIt");
|
|
13167
13046
|
extractStateToFunctionAndCallIt.__type = [
|
|
13168
13047
|
() => TemplateState,
|
|
13169
13048
|
"state",
|
|
@@ -13201,7 +13080,7 @@ function buildFunction(state2, type) {
|
|
|
13201
13080
|
`;
|
|
13202
13081
|
return state2.compilerContext.build(code, "data", "state", "_path");
|
|
13203
13082
|
}
|
|
13204
|
-
|
|
13083
|
+
chunkUSNT2KNT_cjs.__name(buildFunction, "buildFunction");
|
|
13205
13084
|
buildFunction.__type = [
|
|
13206
13085
|
() => TemplateState,
|
|
13207
13086
|
"state",
|
|
@@ -13268,7 +13147,7 @@ function executeTemplates(state2, type, withLoose = true, withCache = true) {
|
|
|
13268
13147
|
state2.parentTypes.pop();
|
|
13269
13148
|
return originalState.template;
|
|
13270
13149
|
}
|
|
13271
|
-
|
|
13150
|
+
chunkUSNT2KNT_cjs.__name(executeTemplates, "executeTemplates");
|
|
13272
13151
|
executeTemplates.__type = [
|
|
13273
13152
|
() => TemplateState,
|
|
13274
13153
|
"state",
|
|
@@ -13338,7 +13217,7 @@ function createConverterJSForMember(property, state2, undefinedSetterCode = "",
|
|
|
13338
13217
|
}
|
|
13339
13218
|
`;
|
|
13340
13219
|
}
|
|
13341
|
-
|
|
13220
|
+
chunkUSNT2KNT_cjs.__name(createConverterJSForMember, "createConverterJSForMember");
|
|
13342
13221
|
createConverterJSForMember.__type = [
|
|
13343
13222
|
() => ReflectionProperty,
|
|
13344
13223
|
() => __\u03A9TypeProperty,
|
|
@@ -13358,7 +13237,7 @@ function inAccessor(accessor) {
|
|
|
13358
13237
|
if ("string" === typeof accessor) return `${accessor} !== undefined`;
|
|
13359
13238
|
return `'object' === typeof ${accessor.container} && ${accessor.property} in ${accessor.container}`;
|
|
13360
13239
|
}
|
|
13361
|
-
|
|
13240
|
+
chunkUSNT2KNT_cjs.__name(inAccessor, "inAccessor");
|
|
13362
13241
|
inAccessor.__type = [
|
|
13363
13242
|
() => ContainerAccessor,
|
|
13364
13243
|
"accessor",
|
|
@@ -13404,7 +13283,7 @@ function deserializeEmbedded(type, state2, container) {
|
|
|
13404
13283
|
}
|
|
13405
13284
|
}
|
|
13406
13285
|
}
|
|
13407
|
-
|
|
13286
|
+
chunkUSNT2KNT_cjs.__name(loadProperty, "loadProperty");
|
|
13408
13287
|
loadProperty.__type = [
|
|
13409
13288
|
() => ContainerAccessor,
|
|
13410
13289
|
"setter",
|
|
@@ -13447,7 +13326,7 @@ function deserializeEmbedded(type, state2, container) {
|
|
|
13447
13326
|
}
|
|
13448
13327
|
`;
|
|
13449
13328
|
}
|
|
13450
|
-
|
|
13329
|
+
chunkUSNT2KNT_cjs.__name(deserializeEmbedded, "deserializeEmbedded");
|
|
13451
13330
|
deserializeEmbedded.__type = [
|
|
13452
13331
|
() => __\u03A9TypeClass,
|
|
13453
13332
|
() => __\u03A9TypeObjectLiteral,
|
|
@@ -13461,7 +13340,7 @@ deserializeEmbedded.__type = [
|
|
|
13461
13340
|
function getIndexCheck(context, i, type) {
|
|
13462
13341
|
if (type.kind === exports.ReflectionKind.number) {
|
|
13463
13342
|
context.set({
|
|
13464
|
-
isNumeric:
|
|
13343
|
+
isNumeric: chunkZDFKNN7Y_cjs.isNumeric
|
|
13465
13344
|
});
|
|
13466
13345
|
return `isNumeric(${i})`;
|
|
13467
13346
|
} else if (type.kind === exports.ReflectionKind.string || type.kind === exports.ReflectionKind.any) {
|
|
@@ -13483,9 +13362,9 @@ function getIndexCheck(context, i, type) {
|
|
|
13483
13362
|
}
|
|
13484
13363
|
return "";
|
|
13485
13364
|
}
|
|
13486
|
-
|
|
13365
|
+
chunkUSNT2KNT_cjs.__name(getIndexCheck, "getIndexCheck");
|
|
13487
13366
|
getIndexCheck.__type = [
|
|
13488
|
-
() =>
|
|
13367
|
+
() => chunkZDFKNN7Y_cjs.CompilerContext,
|
|
13489
13368
|
"context",
|
|
13490
13369
|
"i",
|
|
13491
13370
|
"Type",
|
|
@@ -13500,7 +13379,7 @@ function isLiteralType(t2) {
|
|
|
13500
13379
|
'P"2!"/"'
|
|
13501
13380
|
]));
|
|
13502
13381
|
}
|
|
13503
|
-
|
|
13382
|
+
chunkUSNT2KNT_cjs.__name(isLiteralType, "isLiteralType");
|
|
13504
13383
|
isLiteralType.__type = [
|
|
13505
13384
|
() => __\u03A9TypeIndexSignature,
|
|
13506
13385
|
"t",
|
|
@@ -13514,7 +13393,7 @@ function isNumberType(t2) {
|
|
|
13514
13393
|
'P"2!"/"'
|
|
13515
13394
|
]));
|
|
13516
13395
|
}
|
|
13517
|
-
|
|
13396
|
+
chunkUSNT2KNT_cjs.__name(isNumberType, "isNumberType");
|
|
13518
13397
|
isNumberType.__type = [
|
|
13519
13398
|
() => __\u03A9TypeIndexSignature,
|
|
13520
13399
|
"t",
|
|
@@ -13537,7 +13416,7 @@ function sortSignatures(signatures) {
|
|
|
13537
13416
|
'P"2!"2""/#'
|
|
13538
13417
|
]));
|
|
13539
13418
|
}
|
|
13540
|
-
|
|
13419
|
+
chunkUSNT2KNT_cjs.__name(sortSignatures, "sortSignatures");
|
|
13541
13420
|
sortSignatures.__type = [
|
|
13542
13421
|
() => __\u03A9TypeIndexSignature,
|
|
13543
13422
|
"signatures",
|
|
@@ -13555,7 +13434,7 @@ function getStaticDefaultCodeForProperty(member, setter, state2) {
|
|
|
13555
13434
|
}
|
|
13556
13435
|
return staticDefault;
|
|
13557
13436
|
}
|
|
13558
|
-
|
|
13437
|
+
chunkUSNT2KNT_cjs.__name(getStaticDefaultCodeForProperty, "getStaticDefaultCodeForProperty");
|
|
13559
13438
|
getStaticDefaultCodeForProperty.__type = [
|
|
13560
13439
|
() => __\u03A9TypeProperty,
|
|
13561
13440
|
() => __\u03A9TypePropertySignature,
|
|
@@ -13574,7 +13453,7 @@ function getEmbeddedProperty(type) {
|
|
|
13574
13453
|
if (resolved.kind === exports.ReflectionKind.propertySignature || resolved.kind === exports.ReflectionKind.property) return resolved;
|
|
13575
13454
|
return;
|
|
13576
13455
|
}
|
|
13577
|
-
|
|
13456
|
+
chunkUSNT2KNT_cjs.__name(getEmbeddedProperty, "getEmbeddedProperty");
|
|
13578
13457
|
getEmbeddedProperty.__type = [
|
|
13579
13458
|
() => __\u03A9TypeClass,
|
|
13580
13459
|
() => __\u03A9TypeObjectLiteral,
|
|
@@ -13600,7 +13479,7 @@ function getEmbeddedAccessor(type, autoPrefix, accessor, serializer2, namingStra
|
|
|
13600
13479
|
}
|
|
13601
13480
|
return accessor;
|
|
13602
13481
|
}
|
|
13603
|
-
|
|
13482
|
+
chunkUSNT2KNT_cjs.__name(getEmbeddedAccessor, "getEmbeddedAccessor");
|
|
13604
13483
|
getEmbeddedAccessor.__type = [
|
|
13605
13484
|
() => __\u03A9TypeClass,
|
|
13606
13485
|
() => __\u03A9TypeObjectLiteral,
|
|
@@ -13626,7 +13505,7 @@ function groupFilter(type) {
|
|
|
13626
13505
|
const groupNames = groupAnnotation.getAnnotations(type);
|
|
13627
13506
|
return `(state.groups || state.groupsExclude ? isGroupAllowed(state, ${JSON.stringify(groupNames)}) : true)`;
|
|
13628
13507
|
}
|
|
13629
|
-
|
|
13508
|
+
chunkUSNT2KNT_cjs.__name(groupFilter, "groupFilter");
|
|
13630
13509
|
groupFilter.__type = [
|
|
13631
13510
|
"Type",
|
|
13632
13511
|
"type",
|
|
@@ -13769,7 +13648,7 @@ function serializeObjectLiteral(type, state2) {
|
|
|
13769
13648
|
}`);
|
|
13770
13649
|
}
|
|
13771
13650
|
state2.setContext({
|
|
13772
|
-
hasProperty:
|
|
13651
|
+
hasProperty: chunkZDFKNN7Y_cjs.hasProperty
|
|
13773
13652
|
});
|
|
13774
13653
|
lines.push(`
|
|
13775
13654
|
for (const ${i} in ${state2.accessor}) {
|
|
@@ -13811,7 +13690,7 @@ ${v}.${memberNameToString(property.name)} = ${defaultFn}.apply(${v});`;
|
|
|
13811
13690
|
if (referenceAnnotation.hasAnnotations(type) && !state2.isAnnotationHandled(referenceAnnotation)) {
|
|
13812
13691
|
state2.annotationHandled(referenceAnnotation);
|
|
13813
13692
|
state2.setContext({
|
|
13814
|
-
isObject:
|
|
13693
|
+
isObject: chunkZDFKNN7Y_cjs.isObject,
|
|
13815
13694
|
isReferenceInstance,
|
|
13816
13695
|
isReferenceHydrated
|
|
13817
13696
|
});
|
|
@@ -13826,7 +13705,7 @@ ${v}.${memberNameToString(property.name)} = ${defaultFn}.apply(${v});`;
|
|
|
13826
13705
|
`);
|
|
13827
13706
|
}
|
|
13828
13707
|
}
|
|
13829
|
-
|
|
13708
|
+
chunkUSNT2KNT_cjs.__name(serializeObjectLiteral, "serializeObjectLiteral");
|
|
13830
13709
|
serializeObjectLiteral.__type = [
|
|
13831
13710
|
() => __\u03A9TypeObjectLiteral,
|
|
13832
13711
|
() => __\u03A9TypeClass,
|
|
@@ -13856,7 +13735,7 @@ function typeGuardEmbedded(type, state2, embedded) {
|
|
|
13856
13735
|
}
|
|
13857
13736
|
}
|
|
13858
13737
|
}
|
|
13859
|
-
|
|
13738
|
+
chunkUSNT2KNT_cjs.__name(typeGuardEmbedded, "typeGuardEmbedded");
|
|
13860
13739
|
typeGuardEmbedded.__type = [
|
|
13861
13740
|
() => __\u03A9TypeClass,
|
|
13862
13741
|
() => __\u03A9TypeObjectLiteral,
|
|
@@ -13946,7 +13825,7 @@ function typeGuardObjectLiteral(type, state2) {
|
|
|
13946
13825
|
}`);
|
|
13947
13826
|
}
|
|
13948
13827
|
state2.setContext({
|
|
13949
|
-
hasProperty:
|
|
13828
|
+
hasProperty: chunkZDFKNN7Y_cjs.hasProperty
|
|
13950
13829
|
});
|
|
13951
13830
|
lines.push(`
|
|
13952
13831
|
for (const ${i} in ${state2.accessor}) {
|
|
@@ -13977,7 +13856,7 @@ function typeGuardObjectLiteral(type, state2) {
|
|
|
13977
13856
|
}
|
|
13978
13857
|
}
|
|
13979
13858
|
state2.setContext({
|
|
13980
|
-
isObjectLiteral:
|
|
13859
|
+
isObjectLiteral: chunkZDFKNN7Y_cjs.isObjectLiteral
|
|
13981
13860
|
});
|
|
13982
13861
|
state2.addCodeForSetter(`
|
|
13983
13862
|
${state2.setter} = true;
|
|
@@ -13990,7 +13869,7 @@ function typeGuardObjectLiteral(type, state2) {
|
|
|
13990
13869
|
}
|
|
13991
13870
|
`);
|
|
13992
13871
|
}
|
|
13993
|
-
|
|
13872
|
+
chunkUSNT2KNT_cjs.__name(typeGuardObjectLiteral, "typeGuardObjectLiteral");
|
|
13994
13873
|
typeGuardObjectLiteral.__type = [
|
|
13995
13874
|
() => __\u03A9TypeObjectLiteral,
|
|
13996
13875
|
() => __\u03A9TypeClass,
|
|
@@ -14002,7 +13881,7 @@ typeGuardObjectLiteral.__type = [
|
|
|
14002
13881
|
];
|
|
14003
13882
|
function serializeArray(type, state2) {
|
|
14004
13883
|
state2.setContext({
|
|
14005
|
-
isIterable:
|
|
13884
|
+
isIterable: chunkZDFKNN7Y_cjs.isIterable
|
|
14006
13885
|
});
|
|
14007
13886
|
const v = state2.compilerContext.reserveName("v");
|
|
14008
13887
|
const tempIterable = state2.compilerContext.reserveName("tempIterable");
|
|
@@ -14022,7 +13901,7 @@ function serializeArray(type, state2) {
|
|
|
14022
13901
|
}
|
|
14023
13902
|
`);
|
|
14024
13903
|
}
|
|
14025
|
-
|
|
13904
|
+
chunkUSNT2KNT_cjs.__name(serializeArray, "serializeArray");
|
|
14026
13905
|
serializeArray.__type = [
|
|
14027
13906
|
() => __\u03A9TypeArray,
|
|
14028
13907
|
"type",
|
|
@@ -14033,8 +13912,8 @@ serializeArray.__type = [
|
|
|
14033
13912
|
];
|
|
14034
13913
|
function typeGuardArray(elementType, state2) {
|
|
14035
13914
|
state2.setContext({
|
|
14036
|
-
isIterable:
|
|
14037
|
-
iterableSize:
|
|
13915
|
+
isIterable: chunkZDFKNN7Y_cjs.isIterable,
|
|
13916
|
+
iterableSize: chunkZDFKNN7Y_cjs.iterableSize
|
|
14038
13917
|
});
|
|
14039
13918
|
const v = state2.compilerContext.reserveName("v");
|
|
14040
13919
|
const i = state2.compilerContext.reserveName("i");
|
|
@@ -14054,7 +13933,7 @@ function typeGuardArray(elementType, state2) {
|
|
|
14054
13933
|
${state2.setter} = ${v};
|
|
14055
13934
|
`);
|
|
14056
13935
|
}
|
|
14057
|
-
|
|
13936
|
+
chunkUSNT2KNT_cjs.__name(typeGuardArray, "typeGuardArray");
|
|
14058
13937
|
typeGuardArray.__type = [
|
|
14059
13938
|
"Type",
|
|
14060
13939
|
"elementType",
|
|
@@ -14107,7 +13986,7 @@ function serializeTuple(type, state2) {
|
|
|
14107
13986
|
${lines.join("\n")}
|
|
14108
13987
|
`);
|
|
14109
13988
|
}
|
|
14110
|
-
|
|
13989
|
+
chunkUSNT2KNT_cjs.__name(serializeTuple, "serializeTuple");
|
|
14111
13990
|
serializeTuple.__type = [
|
|
14112
13991
|
() => __\u03A9TypeTuple,
|
|
14113
13992
|
"type",
|
|
@@ -14148,7 +14027,7 @@ function typeGuardTuple(type, state2) {
|
|
|
14148
14027
|
}
|
|
14149
14028
|
}
|
|
14150
14029
|
state2.setContext({
|
|
14151
|
-
isArray:
|
|
14030
|
+
isArray: chunkZDFKNN7Y_cjs.isArray
|
|
14152
14031
|
});
|
|
14153
14032
|
state2.addCodeForSetter(`
|
|
14154
14033
|
if (isArray(${state2.accessor})) {
|
|
@@ -14162,7 +14041,7 @@ function typeGuardTuple(type, state2) {
|
|
|
14162
14041
|
}
|
|
14163
14042
|
`);
|
|
14164
14043
|
}
|
|
14165
|
-
|
|
14044
|
+
chunkUSNT2KNT_cjs.__name(typeGuardTuple, "typeGuardTuple");
|
|
14166
14045
|
typeGuardTuple.__type = [
|
|
14167
14046
|
() => __\u03A9TypeTuple,
|
|
14168
14047
|
"type",
|
|
@@ -14182,7 +14061,7 @@ function getSetTypeToArray(type) {
|
|
|
14182
14061
|
type: value
|
|
14183
14062
|
};
|
|
14184
14063
|
}
|
|
14185
|
-
|
|
14064
|
+
chunkUSNT2KNT_cjs.__name(getSetTypeToArray, "getSetTypeToArray");
|
|
14186
14065
|
getSetTypeToArray.__type = [
|
|
14187
14066
|
() => __\u03A9TypeClass,
|
|
14188
14067
|
"type",
|
|
@@ -14219,7 +14098,7 @@ function getMapTypeToArray(type) {
|
|
|
14219
14098
|
};
|
|
14220
14099
|
return jit.forwardMapToArray;
|
|
14221
14100
|
}
|
|
14222
|
-
|
|
14101
|
+
chunkUSNT2KNT_cjs.__name(getMapTypeToArray, "getMapTypeToArray");
|
|
14223
14102
|
getMapTypeToArray.__type = [
|
|
14224
14103
|
() => __\u03A9TypeClass,
|
|
14225
14104
|
"type",
|
|
@@ -14239,7 +14118,7 @@ function getNTypeToArray(type, n) {
|
|
|
14239
14118
|
type: value
|
|
14240
14119
|
};
|
|
14241
14120
|
}
|
|
14242
|
-
|
|
14121
|
+
chunkUSNT2KNT_cjs.__name(getNTypeToArray, "getNTypeToArray");
|
|
14243
14122
|
getNTypeToArray.__type = [
|
|
14244
14123
|
() => __\u03A9TypeClass,
|
|
14245
14124
|
"type",
|
|
@@ -14251,7 +14130,7 @@ getNTypeToArray.__type = [
|
|
|
14251
14130
|
function executeTypeArgumentAsArray(type, typeIndex, state2) {
|
|
14252
14131
|
executeTemplates(state2, getNTypeToArray(type, typeIndex), true, false);
|
|
14253
14132
|
}
|
|
14254
|
-
|
|
14133
|
+
chunkUSNT2KNT_cjs.__name(executeTypeArgumentAsArray, "executeTypeArgumentAsArray");
|
|
14255
14134
|
executeTypeArgumentAsArray.__type = [
|
|
14256
14135
|
() => __\u03A9TypeClass,
|
|
14257
14136
|
"type",
|
|
@@ -14264,7 +14143,7 @@ executeTypeArgumentAsArray.__type = [
|
|
|
14264
14143
|
function forwardSetToArray(type, state2) {
|
|
14265
14144
|
executeTemplates(state2, getSetTypeToArray(type), true, false);
|
|
14266
14145
|
}
|
|
14267
|
-
|
|
14146
|
+
chunkUSNT2KNT_cjs.__name(forwardSetToArray, "forwardSetToArray");
|
|
14268
14147
|
forwardSetToArray.__type = [
|
|
14269
14148
|
() => __\u03A9TypeClass,
|
|
14270
14149
|
"type",
|
|
@@ -14276,7 +14155,7 @@ forwardSetToArray.__type = [
|
|
|
14276
14155
|
function forwardMapToArray(type, state2) {
|
|
14277
14156
|
executeTemplates(state2, getMapTypeToArray(type), true, false);
|
|
14278
14157
|
}
|
|
14279
|
-
|
|
14158
|
+
chunkUSNT2KNT_cjs.__name(forwardMapToArray, "forwardMapToArray");
|
|
14280
14159
|
forwardMapToArray.__type = [
|
|
14281
14160
|
() => __\u03A9TypeClass,
|
|
14282
14161
|
"type",
|
|
@@ -14306,7 +14185,7 @@ function serializePropertyOrParameter(type, state2) {
|
|
|
14306
14185
|
}
|
|
14307
14186
|
state2.addCode(executeTemplates(state2.fork(), type.type));
|
|
14308
14187
|
}
|
|
14309
|
-
|
|
14188
|
+
chunkUSNT2KNT_cjs.__name(serializePropertyOrParameter, "serializePropertyOrParameter");
|
|
14310
14189
|
serializePropertyOrParameter.__type = [
|
|
14311
14190
|
() => __\u03A9TypePropertySignature,
|
|
14312
14191
|
() => __\u03A9TypeProperty,
|
|
@@ -14328,7 +14207,7 @@ function validatePropertyOrParameter(type, state2) {
|
|
|
14328
14207
|
}
|
|
14329
14208
|
`);
|
|
14330
14209
|
}
|
|
14331
|
-
|
|
14210
|
+
chunkUSNT2KNT_cjs.__name(validatePropertyOrParameter, "validatePropertyOrParameter");
|
|
14332
14211
|
validatePropertyOrParameter.__type = [
|
|
14333
14212
|
() => __\u03A9TypePropertySignature,
|
|
14334
14213
|
() => __\u03A9TypeProperty,
|
|
@@ -14382,7 +14261,7 @@ function handleUnion(type, state2) {
|
|
|
14382
14261
|
}
|
|
14383
14262
|
`);
|
|
14384
14263
|
}
|
|
14385
|
-
|
|
14264
|
+
chunkUSNT2KNT_cjs.__name(handleUnion, "handleUnion");
|
|
14386
14265
|
handleUnion.__type = [
|
|
14387
14266
|
() => __\u03A9TypeUnion,
|
|
14388
14267
|
"type",
|
|
@@ -14397,7 +14276,7 @@ function getNameExpression(name, state2) {
|
|
|
14397
14276
|
if (isType(name)) return JSON.stringify(memberNameToString(name));
|
|
14398
14277
|
return state2.compilerContext.reserveConst(name, "symbolName");
|
|
14399
14278
|
}
|
|
14400
|
-
|
|
14279
|
+
chunkUSNT2KNT_cjs.__name(getNameExpression, "getNameExpression");
|
|
14401
14280
|
getNameExpression.__type = [
|
|
14402
14281
|
"name",
|
|
14403
14282
|
() => TemplateState,
|
|
@@ -14407,7 +14286,7 @@ getNameExpression.__type = [
|
|
|
14407
14286
|
];
|
|
14408
14287
|
var TypeGuardRegistry = class {
|
|
14409
14288
|
static {
|
|
14410
|
-
|
|
14289
|
+
chunkUSNT2KNT_cjs.__name(this, "TypeGuardRegistry");
|
|
14411
14290
|
}
|
|
14412
14291
|
/**
|
|
14413
14292
|
* Lowest specificality first
|
|
@@ -14504,7 +14383,7 @@ TypeGuardRegistry.__type = [
|
|
|
14504
14383
|
"Type",
|
|
14505
14384
|
"template",
|
|
14506
14385
|
"register",
|
|
14507
|
-
() =>
|
|
14386
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
14508
14387
|
"classType",
|
|
14509
14388
|
() => __\u03A9Template,
|
|
14510
14389
|
() => __\u03A9TypeClass,
|
|
@@ -14517,7 +14396,7 @@ TypeGuardRegistry.__type = [
|
|
|
14517
14396
|
];
|
|
14518
14397
|
var Serializer = class {
|
|
14519
14398
|
static {
|
|
14520
|
-
|
|
14399
|
+
chunkUSNT2KNT_cjs.__name(this, "Serializer");
|
|
14521
14400
|
}
|
|
14522
14401
|
constructor(name = "json") {
|
|
14523
14402
|
this.name = name;
|
|
@@ -14555,7 +14434,7 @@ var Serializer = class {
|
|
|
14555
14434
|
]));
|
|
14556
14435
|
this.deserializeRegistry.register(exports.ReflectionKind.object, __assignType11((type, state2) => {
|
|
14557
14436
|
state2.setContext({
|
|
14558
|
-
isObject:
|
|
14437
|
+
isObject: chunkZDFKNN7Y_cjs.isObject
|
|
14559
14438
|
});
|
|
14560
14439
|
state2.addSetter(`isObject(${state2.accessor}) ? ${state2.accessor} : {}`);
|
|
14561
14440
|
}, [
|
|
@@ -14795,19 +14674,19 @@ var Serializer = class {
|
|
|
14795
14674
|
'P"2!"2""/#'
|
|
14796
14675
|
]));
|
|
14797
14676
|
this.deserializeRegistry.register(exports.ReflectionKind.number, __assignType11((type, state2) => {
|
|
14798
|
-
if (type.brand !== void 0 && type.brand <
|
|
14677
|
+
if (type.brand !== void 0 && type.brand < chunk5NPGWGPO_cjs.TypeNumberBrand.float) {
|
|
14799
14678
|
state2.addSetter(`Math.trunc(${state2.accessor})`);
|
|
14800
|
-
if (type.brand ===
|
|
14679
|
+
if (type.brand === chunk5NPGWGPO_cjs.TypeNumberBrand.uint8) {
|
|
14801
14680
|
state2.addSetter(`${state2.accessor} > 255 ? 255 : ${state2.accessor} < 0 ? 0 : ${state2.accessor}`);
|
|
14802
|
-
} else if (type.brand ===
|
|
14681
|
+
} else if (type.brand === chunk5NPGWGPO_cjs.TypeNumberBrand.uint16) {
|
|
14803
14682
|
state2.addSetter(`${state2.accessor} > 65535 ? 65535 : ${state2.accessor} < 0 ? 0 : ${state2.accessor}`);
|
|
14804
|
-
} else if (type.brand ===
|
|
14683
|
+
} else if (type.brand === chunk5NPGWGPO_cjs.TypeNumberBrand.uint32) {
|
|
14805
14684
|
state2.addSetter(`${state2.accessor} > 4294967295 ? 4294967295 : ${state2.accessor} < 0 ? 0 : ${state2.accessor}`);
|
|
14806
|
-
} else if (type.brand ===
|
|
14685
|
+
} else if (type.brand === chunk5NPGWGPO_cjs.TypeNumberBrand.int8) {
|
|
14807
14686
|
state2.addSetter(`${state2.accessor} > 127 ? 127 : ${state2.accessor} < -128 ? -128 : ${state2.accessor}`);
|
|
14808
|
-
} else if (type.brand ===
|
|
14687
|
+
} else if (type.brand === chunk5NPGWGPO_cjs.TypeNumberBrand.int16) {
|
|
14809
14688
|
state2.addSetter(`${state2.accessor} > 32767 ? 32767 : ${state2.accessor} < -32768 ? -32768 : ${state2.accessor}`);
|
|
14810
|
-
} else if (type.brand ===
|
|
14689
|
+
} else if (type.brand === chunk5NPGWGPO_cjs.TypeNumberBrand.int32) {
|
|
14811
14690
|
state2.addSetter(`${state2.accessor} > 2147483647 ? 2147483647 : ${state2.accessor} < -2147483648 ? -2147483648 : ${state2.accessor}`);
|
|
14812
14691
|
}
|
|
14813
14692
|
} else {
|
|
@@ -14815,7 +14694,7 @@ var Serializer = class {
|
|
|
14815
14694
|
Number
|
|
14816
14695
|
});
|
|
14817
14696
|
state2.addSetter(`'number' !== typeof ${state2.accessor} && state.loosely !== false ? Number(${state2.accessor}) : ${state2.accessor}`);
|
|
14818
|
-
if (type.brand ===
|
|
14697
|
+
if (type.brand === chunk5NPGWGPO_cjs.TypeNumberBrand.float32) {
|
|
14819
14698
|
state2.addSetter(`${state2.accessor} > 3.40282347e+38 ? 3.40282347e+38 : ${state2.accessor} < -3.40282347e+38 ? -3.40282347e+38 : ${state2.accessor}`);
|
|
14820
14699
|
}
|
|
14821
14700
|
}
|
|
@@ -14891,11 +14770,11 @@ var Serializer = class {
|
|
|
14891
14770
|
if (type.kind !== exports.ReflectionKind.class && type.kind !== exports.ReflectionKind.objectLiteral) return;
|
|
14892
14771
|
state2.annotationHandled(referenceAnnotation);
|
|
14893
14772
|
state2.setContext({
|
|
14894
|
-
isObject:
|
|
14773
|
+
isObject: chunkZDFKNN7Y_cjs.isObject,
|
|
14895
14774
|
createReference,
|
|
14896
14775
|
isReferenceHydrated,
|
|
14897
14776
|
isReferenceInstance,
|
|
14898
|
-
getObjectKeysSize:
|
|
14777
|
+
getObjectKeysSize: chunkZDFKNN7Y_cjs.getObjectKeysSize
|
|
14899
14778
|
});
|
|
14900
14779
|
const reflection = ReflectionClass.from(type);
|
|
14901
14780
|
const referenceClassTypeVar = state2.setVariable("referenceClassType", type.kind === exports.ReflectionKind.class ? type.classType : Object);
|
|
@@ -14946,7 +14825,7 @@ var Serializer = class {
|
|
|
14946
14825
|
]));
|
|
14947
14826
|
this.typeGuards.register(1, exports.ReflectionKind.object, __assignType11((type, state2) => {
|
|
14948
14827
|
state2.setContext({
|
|
14949
|
-
isObject:
|
|
14828
|
+
isObject: chunkZDFKNN7Y_cjs.isObject
|
|
14950
14829
|
});
|
|
14951
14830
|
state2.addSetter(`isObject(${state2.accessor})`);
|
|
14952
14831
|
}, [
|
|
@@ -15040,7 +14919,7 @@ var Serializer = class {
|
|
|
15040
14919
|
this.typeGuards.register(1, exports.ReflectionKind.parameter, validatePropertyOrParameter);
|
|
15041
14920
|
this.typeGuards.register(2, exports.ReflectionKind.number, __assignType11((type, state2) => {
|
|
15042
14921
|
state2.setContext({
|
|
15043
|
-
isNumeric:
|
|
14922
|
+
isNumeric: chunkZDFKNN7Y_cjs.isNumeric
|
|
15044
14923
|
});
|
|
15045
14924
|
state2.addSetter(`'bigint' === typeof ${state2.accessor} || 'number' === typeof ${state2.accessor} || ('string' === typeof ${state2.accessor} && isNumeric(${state2.accessor}))`);
|
|
15046
14925
|
}, [
|
|
@@ -15051,7 +14930,7 @@ var Serializer = class {
|
|
|
15051
14930
|
]));
|
|
15052
14931
|
this.typeGuards.register(-0.5, exports.ReflectionKind.number, __assignType11((type, state2) => {
|
|
15053
14932
|
state2.setContext({
|
|
15054
|
-
isNumeric:
|
|
14933
|
+
isNumeric: chunkZDFKNN7Y_cjs.isNumeric
|
|
15055
14934
|
});
|
|
15056
14935
|
state2.addSetter(`'string' === typeof ${state2.accessor} && isNumeric(${state2.accessor})`);
|
|
15057
14936
|
}, [
|
|
@@ -15061,31 +14940,31 @@ var Serializer = class {
|
|
|
15061
14940
|
'P"2!"2""/#'
|
|
15062
14941
|
]));
|
|
15063
14942
|
this.typeGuards.register(1, exports.ReflectionKind.number, __assignType11((type, state2) => {
|
|
15064
|
-
if (type.brand !== void 0 && type.brand >=
|
|
14943
|
+
if (type.brand !== void 0 && type.brand >= chunk5NPGWGPO_cjs.TypeNumberBrand.integer && type.brand <= chunk5NPGWGPO_cjs.TypeNumberBrand.uint32) {
|
|
15065
14944
|
state2.setContext({
|
|
15066
|
-
isInteger:
|
|
14945
|
+
isInteger: chunkZDFKNN7Y_cjs.isInteger
|
|
15067
14946
|
});
|
|
15068
14947
|
let check = `'number' === typeof ${state2.accessor} && isInteger(${state2.accessor})`;
|
|
15069
|
-
if (type.brand ===
|
|
14948
|
+
if (type.brand === chunk5NPGWGPO_cjs.TypeNumberBrand.uint8) {
|
|
15070
14949
|
check += `&& ${state2.accessor} <= 255 && ${state2.accessor} >= 0`;
|
|
15071
|
-
} else if (type.brand ===
|
|
14950
|
+
} else if (type.brand === chunk5NPGWGPO_cjs.TypeNumberBrand.uint16) {
|
|
15072
14951
|
check += `&& ${state2.accessor} <= 65535 && ${state2.accessor} >= 0`;
|
|
15073
|
-
} else if (type.brand ===
|
|
14952
|
+
} else if (type.brand === chunk5NPGWGPO_cjs.TypeNumberBrand.uint32) {
|
|
15074
14953
|
check += `&& ${state2.accessor} <= 4294967295 && ${state2.accessor} >= 0`;
|
|
15075
|
-
} else if (type.brand ===
|
|
14954
|
+
} else if (type.brand === chunk5NPGWGPO_cjs.TypeNumberBrand.int8) {
|
|
15076
14955
|
check += `&& ${state2.accessor} <= 127 && ${state2.accessor} >= -128`;
|
|
15077
|
-
} else if (type.brand ===
|
|
14956
|
+
} else if (type.brand === chunk5NPGWGPO_cjs.TypeNumberBrand.int16) {
|
|
15078
14957
|
check += `&& ${state2.accessor} <= 32767 && ${state2.accessor} >= -32768`;
|
|
15079
|
-
} else if (type.brand ===
|
|
14958
|
+
} else if (type.brand === chunk5NPGWGPO_cjs.TypeNumberBrand.int32) {
|
|
15080
14959
|
check += `&& ${state2.accessor} <= 2147483647 && ${state2.accessor} >= -2147483648`;
|
|
15081
14960
|
}
|
|
15082
|
-
state2.addSetterAndReportErrorIfInvalid("type", `Not a ${type.brand === void 0 ? "number" :
|
|
14961
|
+
state2.addSetterAndReportErrorIfInvalid("type", `Not a ${type.brand === void 0 ? "number" : chunk5NPGWGPO_cjs.TypeNumberBrand[type.brand]}`, check);
|
|
15083
14962
|
} else {
|
|
15084
14963
|
let check = `'number' === typeof ${state2.accessor}`;
|
|
15085
|
-
if (type.brand ===
|
|
14964
|
+
if (type.brand === chunk5NPGWGPO_cjs.TypeNumberBrand.float32) {
|
|
15086
14965
|
check += `&& ${state2.accessor} <= 3.40282347e+38 && ${state2.accessor} >= -3.40282347e+38`;
|
|
15087
14966
|
}
|
|
15088
|
-
state2.addSetterAndReportErrorIfInvalid("type", `Not a ${type.brand === void 0 ? "number" :
|
|
14967
|
+
state2.addSetterAndReportErrorIfInvalid("type", `Not a ${type.brand === void 0 ? "number" : chunk5NPGWGPO_cjs.TypeNumberBrand[type.brand]}`, check);
|
|
15089
14968
|
}
|
|
15090
14969
|
}, [
|
|
15091
14970
|
"type",
|
|
@@ -15095,7 +14974,7 @@ var Serializer = class {
|
|
|
15095
14974
|
]));
|
|
15096
14975
|
this.typeGuards.register(2, exports.ReflectionKind.bigint, __assignType11((type, state2) => {
|
|
15097
14976
|
state2.setContext({
|
|
15098
|
-
isNumeric:
|
|
14977
|
+
isNumeric: chunkZDFKNN7Y_cjs.isNumeric
|
|
15099
14978
|
});
|
|
15100
14979
|
state2.addSetter(`'number' === typeof ${state2.accessor} || ('string' === typeof ${state2.accessor} && isNumeric(${state2.accessor}))`);
|
|
15101
14980
|
}, [
|
|
@@ -15106,7 +14985,7 @@ var Serializer = class {
|
|
|
15106
14985
|
]));
|
|
15107
14986
|
this.typeGuards.register(-0.5, exports.ReflectionKind.bigint, __assignType11((type, state2) => {
|
|
15108
14987
|
state2.setContext({
|
|
15109
|
-
isNumeric:
|
|
14988
|
+
isNumeric: chunkZDFKNN7Y_cjs.isNumeric
|
|
15110
14989
|
});
|
|
15111
14990
|
state2.addSetter(`'string' === typeof ${state2.accessor} && isNumeric(${state2.accessor})`);
|
|
15112
14991
|
}, [
|
|
@@ -15231,7 +15110,7 @@ var Serializer = class {
|
|
|
15231
15110
|
]));
|
|
15232
15111
|
this.typeGuards.register(1, exports.ReflectionKind.function, __assignType11((type, state2) => {
|
|
15233
15112
|
state2.setContext({
|
|
15234
|
-
isFunction:
|
|
15113
|
+
isFunction: chunkZDFKNN7Y_cjs.isFunction,
|
|
15235
15114
|
isExtendable,
|
|
15236
15115
|
resolveRuntimeType
|
|
15237
15116
|
});
|
|
@@ -15282,7 +15161,7 @@ var Serializer = class {
|
|
|
15282
15161
|
if (optionParameter) {
|
|
15283
15162
|
const option = typeToObject(args[1]);
|
|
15284
15163
|
if (option === void 0 && optionParameter.optional) ; else {
|
|
15285
|
-
const errors =
|
|
15164
|
+
const errors = validate(option, optionParameter.type);
|
|
15286
15165
|
if (errors.length) {
|
|
15287
15166
|
throw new Error(`Invalid option value given to validator function ${String(args[0].name)}, expected ${stringifyType(optionParameter)}`);
|
|
15288
15167
|
}
|
|
@@ -15380,7 +15259,7 @@ Serializer.__type = [
|
|
|
15380
15259
|
function assignAccessorTemplate(type, state2) {
|
|
15381
15260
|
state2.addSetter(state2.accessor);
|
|
15382
15261
|
}
|
|
15383
|
-
|
|
15262
|
+
chunkUSNT2KNT_cjs.__name(assignAccessorTemplate, "assignAccessorTemplate");
|
|
15384
15263
|
assignAccessorTemplate.__type = [
|
|
15385
15264
|
"Type",
|
|
15386
15265
|
"type",
|
|
@@ -15416,7 +15295,7 @@ var serializableKinds = [
|
|
|
15416
15295
|
];
|
|
15417
15296
|
var EmptySerializer = class extends Serializer {
|
|
15418
15297
|
static {
|
|
15419
|
-
|
|
15298
|
+
chunkUSNT2KNT_cjs.__name(this, "EmptySerializer");
|
|
15420
15299
|
}
|
|
15421
15300
|
constructor(name = "empty") {
|
|
15422
15301
|
super(name);
|
|
@@ -15474,9 +15353,9 @@ function __assignType12(fn, args) {
|
|
|
15474
15353
|
fn.__type = args;
|
|
15475
15354
|
return fn;
|
|
15476
15355
|
}
|
|
15477
|
-
|
|
15356
|
+
chunkUSNT2KNT_cjs.__name(__assignType12, "__assignType");
|
|
15478
15357
|
function createJITConverterForSnapshot(schema, properties, registry) {
|
|
15479
|
-
const compiler = new
|
|
15358
|
+
const compiler = new chunkZDFKNN7Y_cjs.CompilerContext();
|
|
15480
15359
|
const setProperties = [];
|
|
15481
15360
|
const state2 = new TemplateState("", "", compiler, registry);
|
|
15482
15361
|
for (const property of properties) {
|
|
@@ -15540,7 +15419,7 @@ function createJITConverterForSnapshot(schema, properties, registry) {
|
|
|
15540
15419
|
compiler.context.set("UnpopulatedCheckNone", exports.UnpopulatedCheck.None);
|
|
15541
15420
|
return compiler.build(functionCode, "_value", "state");
|
|
15542
15421
|
}
|
|
15543
|
-
|
|
15422
|
+
chunkUSNT2KNT_cjs.__name(createJITConverterForSnapshot, "createJITConverterForSnapshot");
|
|
15544
15423
|
createJITConverterForSnapshot.__type = [
|
|
15545
15424
|
() => ReflectionClass,
|
|
15546
15425
|
"schema",
|
|
@@ -15573,7 +15452,7 @@ function cloneValueDeep(value) {
|
|
|
15573
15452
|
if (value instanceof BigUint64Array) return new BigUint64Array(value);
|
|
15574
15453
|
if (value instanceof DataView) return new DataView(value.buffer.slice(0));
|
|
15575
15454
|
if (value instanceof RegExp) return new RegExp(value.source, value.flags);
|
|
15576
|
-
if (
|
|
15455
|
+
if (chunkZDFKNN7Y_cjs.isObject(value)) {
|
|
15577
15456
|
const copy = {};
|
|
15578
15457
|
for (const i in value) {
|
|
15579
15458
|
copy[i] = cloneValueDeep(value[i]);
|
|
@@ -15582,7 +15461,7 @@ function cloneValueDeep(value) {
|
|
|
15582
15461
|
}
|
|
15583
15462
|
return value;
|
|
15584
15463
|
}
|
|
15585
|
-
|
|
15464
|
+
chunkUSNT2KNT_cjs.__name(cloneValueDeep, "cloneValueDeep");
|
|
15586
15465
|
cloneValueDeep.__type = [
|
|
15587
15466
|
"value",
|
|
15588
15467
|
"cloneValueDeep",
|
|
@@ -15590,7 +15469,7 @@ cloneValueDeep.__type = [
|
|
|
15590
15469
|
];
|
|
15591
15470
|
var SnapshotSerializer = class SnapshotSerializer2 extends Serializer {
|
|
15592
15471
|
static {
|
|
15593
|
-
|
|
15472
|
+
chunkUSNT2KNT_cjs.__name(this, "SnapshotSerializer");
|
|
15594
15473
|
}
|
|
15595
15474
|
constructor() {
|
|
15596
15475
|
super(...arguments);
|
|
@@ -15628,10 +15507,10 @@ function getConverterForSnapshot(reflectionClass) {
|
|
|
15628
15507
|
const jit = reflectionClass.getJitContainer();
|
|
15629
15508
|
if (jit.snapshotConverter) return jit.snapshotConverter;
|
|
15630
15509
|
jit.snapshotConverter = createJITConverterForSnapshot(reflectionClass, reflectionClass.getProperties(), snapshotSerializer.serializeRegistry);
|
|
15631
|
-
|
|
15510
|
+
chunkZDFKNN7Y_cjs.toFastProperties(jit);
|
|
15632
15511
|
return jit.snapshotConverter;
|
|
15633
15512
|
}
|
|
15634
|
-
|
|
15513
|
+
chunkUSNT2KNT_cjs.__name(getConverterForSnapshot, "getConverterForSnapshot");
|
|
15635
15514
|
getConverterForSnapshot.__type = [
|
|
15636
15515
|
() => ReflectionClass,
|
|
15637
15516
|
"reflectionClass",
|
|
@@ -15643,7 +15522,7 @@ getConverterForSnapshot.__type = [
|
|
|
15643
15522
|
function createSnapshot(reflectionClass, item) {
|
|
15644
15523
|
return getConverterForSnapshot(reflectionClass)(item);
|
|
15645
15524
|
}
|
|
15646
|
-
|
|
15525
|
+
chunkUSNT2KNT_cjs.__name(createSnapshot, "createSnapshot");
|
|
15647
15526
|
createSnapshot.__type = [
|
|
15648
15527
|
() => ReflectionClass,
|
|
15649
15528
|
"reflectionClass",
|
|
@@ -15655,10 +15534,10 @@ function getPrimaryKeyExtractor(reflectionClass) {
|
|
|
15655
15534
|
const jit = reflectionClass.getJitContainer();
|
|
15656
15535
|
if (jit.primaryKey) return jit.primaryKey;
|
|
15657
15536
|
jit.primaryKey = createJITConverterForSnapshot(reflectionClass, reflectionClass.getPrimaries(), snapshotSerializer.deserializeRegistry);
|
|
15658
|
-
|
|
15537
|
+
chunkZDFKNN7Y_cjs.toFastProperties(jit);
|
|
15659
15538
|
return jit.primaryKey;
|
|
15660
15539
|
}
|
|
15661
|
-
|
|
15540
|
+
chunkUSNT2KNT_cjs.__name(getPrimaryKeyExtractor, "getPrimaryKeyExtractor");
|
|
15662
15541
|
getPrimaryKeyExtractor.__type = [
|
|
15663
15542
|
() => ReflectionClass,
|
|
15664
15543
|
"reflectionClass",
|
|
@@ -15672,14 +15551,14 @@ function getPrimaryKeyHashGenerator(reflectionClass, serializerToUse = serialize
|
|
|
15672
15551
|
const jit = reflectionClass.getJitContainer();
|
|
15673
15552
|
if (!jit.pkHash) {
|
|
15674
15553
|
jit.pkHash = {};
|
|
15675
|
-
|
|
15554
|
+
chunkZDFKNN7Y_cjs.toFastProperties(jit);
|
|
15676
15555
|
}
|
|
15677
15556
|
if (jit.pkHash[serializerToUse.name]) return jit.pkHash[serializerToUse.name];
|
|
15678
15557
|
jit.pkHash[serializerToUse.name] = createPrimaryKeyHashGenerator(reflectionClass, serializerToUse);
|
|
15679
|
-
|
|
15558
|
+
chunkZDFKNN7Y_cjs.toFastProperties(jit.pkHash);
|
|
15680
15559
|
return jit.pkHash[serializerToUse.name];
|
|
15681
15560
|
}
|
|
15682
|
-
|
|
15561
|
+
chunkUSNT2KNT_cjs.__name(getPrimaryKeyHashGenerator, "getPrimaryKeyHashGenerator");
|
|
15683
15562
|
getPrimaryKeyHashGenerator.__type = [
|
|
15684
15563
|
() => ReflectionClass,
|
|
15685
15564
|
"reflectionClass",
|
|
@@ -15694,7 +15573,7 @@ getPrimaryKeyHashGenerator.__type = [
|
|
|
15694
15573
|
function simplePrimaryKeyHash(value) {
|
|
15695
15574
|
return "\0" + value;
|
|
15696
15575
|
}
|
|
15697
|
-
|
|
15576
|
+
chunkUSNT2KNT_cjs.__name(simplePrimaryKeyHash, "simplePrimaryKeyHash");
|
|
15698
15577
|
simplePrimaryKeyHash.__type = [
|
|
15699
15578
|
"value",
|
|
15700
15579
|
"simplePrimaryKeyHash",
|
|
@@ -15709,7 +15588,7 @@ function getSimplePrimaryKeyHashGenerator(reflectionClass) {
|
|
|
15709
15588
|
'P"o!"2""/#'
|
|
15710
15589
|
]);
|
|
15711
15590
|
}
|
|
15712
|
-
|
|
15591
|
+
chunkUSNT2KNT_cjs.__name(getSimplePrimaryKeyHashGenerator, "getSimplePrimaryKeyHashGenerator");
|
|
15713
15592
|
getSimplePrimaryKeyHashGenerator.__type = [
|
|
15714
15593
|
() => ReflectionClass,
|
|
15715
15594
|
"reflectionClass",
|
|
@@ -15717,9 +15596,9 @@ getSimplePrimaryKeyHashGenerator.__type = [
|
|
|
15717
15596
|
'PP"7!2""/#'
|
|
15718
15597
|
];
|
|
15719
15598
|
function createPrimaryKeyHashGenerator(reflectionClass, serializer2) {
|
|
15720
|
-
const context = new
|
|
15599
|
+
const context = new chunkZDFKNN7Y_cjs.CompilerContext();
|
|
15721
15600
|
const setProperties = [];
|
|
15722
|
-
context.context.set("isObject",
|
|
15601
|
+
context.context.set("isObject", chunkZDFKNN7Y_cjs.isObject);
|
|
15723
15602
|
const state2 = new TemplateState("", "", context, serializer2.serializeRegistry);
|
|
15724
15603
|
for (const property of reflectionClass.getPrimaries()) {
|
|
15725
15604
|
const accessor = new ContainerAccessor("_value", JSON.stringify(property.getNameAsString()));
|
|
@@ -15795,7 +15674,7 @@ function createPrimaryKeyHashGenerator(reflectionClass, serializer2) {
|
|
|
15795
15674
|
`;
|
|
15796
15675
|
return context.build(functionCode, "_value", "state");
|
|
15797
15676
|
}
|
|
15798
|
-
|
|
15677
|
+
chunkUSNT2KNT_cjs.__name(createPrimaryKeyHashGenerator, "createPrimaryKeyHashGenerator");
|
|
15799
15678
|
createPrimaryKeyHashGenerator.__type = [
|
|
15800
15679
|
() => ReflectionClass,
|
|
15801
15680
|
"reflectionClass",
|
|
@@ -15810,7 +15689,7 @@ function __assignType13(fn, args) {
|
|
|
15810
15689
|
fn.__type = args;
|
|
15811
15690
|
return fn;
|
|
15812
15691
|
}
|
|
15813
|
-
|
|
15692
|
+
chunkUSNT2KNT_cjs.__name(__assignType13, "__assignType");
|
|
15814
15693
|
function genericEqualArray(a, b) {
|
|
15815
15694
|
if (a.length !== b.length) return false;
|
|
15816
15695
|
for (let i = 0; i < a.length; i++) {
|
|
@@ -15818,7 +15697,7 @@ function genericEqualArray(a, b) {
|
|
|
15818
15697
|
}
|
|
15819
15698
|
return true;
|
|
15820
15699
|
}
|
|
15821
|
-
|
|
15700
|
+
chunkUSNT2KNT_cjs.__name(genericEqualArray, "genericEqualArray");
|
|
15822
15701
|
genericEqualArray.__type = [
|
|
15823
15702
|
"a",
|
|
15824
15703
|
"b",
|
|
@@ -15836,7 +15715,7 @@ function genericEqualObject(a, b) {
|
|
|
15836
15715
|
}
|
|
15837
15716
|
return true;
|
|
15838
15717
|
}
|
|
15839
|
-
|
|
15718
|
+
chunkUSNT2KNT_cjs.__name(genericEqualObject, "genericEqualObject");
|
|
15840
15719
|
genericEqualObject.__type = [
|
|
15841
15720
|
"a",
|
|
15842
15721
|
"b",
|
|
@@ -15854,7 +15733,7 @@ function genericEqual(a, b) {
|
|
|
15854
15733
|
if (aIsObject) return bIsObject ? genericEqualObject(a, b) : false;
|
|
15855
15734
|
return a === b;
|
|
15856
15735
|
}
|
|
15857
|
-
|
|
15736
|
+
chunkUSNT2KNT_cjs.__name(genericEqual, "genericEqual");
|
|
15858
15737
|
genericEqual.__type = [
|
|
15859
15738
|
"a",
|
|
15860
15739
|
"b",
|
|
@@ -15862,17 +15741,17 @@ genericEqual.__type = [
|
|
|
15862
15741
|
'P"2!"2")/#'
|
|
15863
15742
|
];
|
|
15864
15743
|
function createJITChangeDetectorForSnapshot(schema, stateIn) {
|
|
15865
|
-
const compiler = new
|
|
15744
|
+
const compiler = new chunkZDFKNN7Y_cjs.CompilerContext();
|
|
15866
15745
|
const state2 = new TemplateState("", "", compiler, stateIn ? stateIn.registry : new TemplateRegistry(), void 0, stateIn ? stateIn.jitStack : void 0);
|
|
15867
15746
|
state2.setContext({
|
|
15868
15747
|
genericEqual,
|
|
15869
|
-
empty:
|
|
15748
|
+
empty: chunkZDFKNN7Y_cjs.empty
|
|
15870
15749
|
});
|
|
15871
15750
|
const lines = [];
|
|
15872
15751
|
function has(accessor) {
|
|
15873
15752
|
return `(changeSet.$inc && ${accessor} in changeSet.$inc) || (changeSet.$unset && ${accessor} in changeSet.$unset)`;
|
|
15874
15753
|
}
|
|
15875
|
-
|
|
15754
|
+
chunkUSNT2KNT_cjs.__name(has, "has");
|
|
15876
15755
|
has.__type = [
|
|
15877
15756
|
"accessor",
|
|
15878
15757
|
"has",
|
|
@@ -15968,7 +15847,7 @@ function createJITChangeDetectorForSnapshot(schema, stateIn) {
|
|
|
15968
15847
|
`;
|
|
15969
15848
|
}
|
|
15970
15849
|
}
|
|
15971
|
-
|
|
15850
|
+
chunkUSNT2KNT_cjs.__name(getComparator, "getComparator");
|
|
15972
15851
|
getComparator.__type = [
|
|
15973
15852
|
"Type",
|
|
15974
15853
|
"type",
|
|
@@ -16052,7 +15931,7 @@ function createJITChangeDetectorForSnapshot(schema, stateIn) {
|
|
|
16052
15931
|
throw error;
|
|
16053
15932
|
}
|
|
16054
15933
|
}
|
|
16055
|
-
|
|
15934
|
+
chunkUSNT2KNT_cjs.__name(createJITChangeDetectorForSnapshot, "createJITChangeDetectorForSnapshot");
|
|
16056
15935
|
createJITChangeDetectorForSnapshot.__type = [
|
|
16057
15936
|
() => ReflectionClass,
|
|
16058
15937
|
"schema",
|
|
@@ -16070,10 +15949,10 @@ function getChangeDetector(classSchema) {
|
|
|
16070
15949
|
const jit = classSchema.getJitContainer();
|
|
16071
15950
|
if (jit[changeDetectorSymbol]) return jit[changeDetectorSymbol];
|
|
16072
15951
|
jit[changeDetectorSymbol] = createJITChangeDetectorForSnapshot(classSchema);
|
|
16073
|
-
|
|
15952
|
+
chunkZDFKNN7Y_cjs.toFastProperties(jit);
|
|
16074
15953
|
return jit[changeDetectorSymbol];
|
|
16075
15954
|
}
|
|
16076
|
-
|
|
15955
|
+
chunkUSNT2KNT_cjs.__name(getChangeDetector, "getChangeDetector");
|
|
16077
15956
|
getChangeDetector.__type = [
|
|
16078
15957
|
() => ReflectionClass,
|
|
16079
15958
|
"classSchema",
|
|
@@ -16097,7 +15976,7 @@ function buildChanges(classSchema, lastSnapshot, item) {
|
|
|
16097
15976
|
]
|
|
16098
15977
|
], new Changes());
|
|
16099
15978
|
}
|
|
16100
|
-
|
|
15979
|
+
chunkUSNT2KNT_cjs.__name(buildChanges, "buildChanges");
|
|
16101
15980
|
buildChanges.__type = [
|
|
16102
15981
|
() => ReflectionClass,
|
|
16103
15982
|
"classSchema",
|
|
@@ -16109,7 +15988,6 @@ buildChanges.__type = [
|
|
|
16109
15988
|
];
|
|
16110
15989
|
|
|
16111
15990
|
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/default.js
|
|
16112
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
16113
15991
|
function defaultValue(type) {
|
|
16114
15992
|
switch (type.kind) {
|
|
16115
15993
|
case exports.ReflectionKind.void:
|
|
@@ -16203,7 +16081,7 @@ function defaultValue(type) {
|
|
|
16203
16081
|
}
|
|
16204
16082
|
}
|
|
16205
16083
|
}
|
|
16206
|
-
|
|
16084
|
+
chunkUSNT2KNT_cjs.__name(defaultValue, "defaultValue");
|
|
16207
16085
|
defaultValue.__type = [
|
|
16208
16086
|
"Type",
|
|
16209
16087
|
"type",
|
|
@@ -16212,12 +16090,11 @@ defaultValue.__type = [
|
|
|
16212
16090
|
];
|
|
16213
16091
|
|
|
16214
16092
|
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/mixin.js
|
|
16215
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
16216
16093
|
function __assignType14(fn, args) {
|
|
16217
16094
|
fn.__type = args;
|
|
16218
16095
|
return fn;
|
|
16219
16096
|
}
|
|
16220
|
-
|
|
16097
|
+
chunkUSNT2KNT_cjs.__name(__assignType14, "__assignType");
|
|
16221
16098
|
var __\u03A9UnionToIntersection2 = [
|
|
16222
16099
|
"T",
|
|
16223
16100
|
"x",
|
|
@@ -16231,7 +16108,7 @@ function mixin(...classTypes) {
|
|
|
16231
16108
|
const constructors = [];
|
|
16232
16109
|
const newClassType = class extends base {
|
|
16233
16110
|
static {
|
|
16234
|
-
|
|
16111
|
+
chunkUSNT2KNT_cjs.__name(this, "newClassType");
|
|
16235
16112
|
}
|
|
16236
16113
|
constructor(...args) {
|
|
16237
16114
|
super();
|
|
@@ -16266,18 +16143,17 @@ function mixin(...classTypes) {
|
|
|
16266
16143
|
newClassType.__type.__type = schema.type;
|
|
16267
16144
|
return newClassType;
|
|
16268
16145
|
}
|
|
16269
|
-
|
|
16146
|
+
chunkUSNT2KNT_cjs.__name(mixin, "mixin");
|
|
16270
16147
|
mixin.__type = [
|
|
16271
16148
|
"classTypes",
|
|
16272
|
-
() =>
|
|
16149
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
16273
16150
|
() => __\u03A9UnionToIntersection2,
|
|
16274
|
-
() =>
|
|
16151
|
+
() => chunkZDFKNN7Y_cjs.__ΩExtractClassType,
|
|
16275
16152
|
"mixin",
|
|
16276
16153
|
`P"@2!"'fo$"o#"o""/%`
|
|
16277
16154
|
];
|
|
16278
16155
|
|
|
16279
16156
|
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/path.js
|
|
16280
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
16281
16157
|
var __\u03A9Resolver = [
|
|
16282
16158
|
"path",
|
|
16283
16159
|
"Type",
|
|
@@ -16330,11 +16206,11 @@ function pathResolverCode(type, compilerContext, jitStack) {
|
|
|
16330
16206
|
}
|
|
16331
16207
|
return `return ${typeVar}`;
|
|
16332
16208
|
}
|
|
16333
|
-
|
|
16209
|
+
chunkUSNT2KNT_cjs.__name(pathResolverCode, "pathResolverCode");
|
|
16334
16210
|
pathResolverCode.__type = [
|
|
16335
16211
|
"Type",
|
|
16336
16212
|
"type",
|
|
16337
|
-
() =>
|
|
16213
|
+
() => chunkZDFKNN7Y_cjs.CompilerContext,
|
|
16338
16214
|
"compilerContext",
|
|
16339
16215
|
() => JitStack,
|
|
16340
16216
|
"jitStack",
|
|
@@ -16349,7 +16225,7 @@ function resolvePath(path, type = resolvePath.\u03A9?.[0]) {
|
|
|
16349
16225
|
if (!t2) throw new Error(`No type found for path ${path} in ${type.typeName}`);
|
|
16350
16226
|
return t2;
|
|
16351
16227
|
}
|
|
16352
|
-
|
|
16228
|
+
chunkUSNT2KNT_cjs.__name(resolvePath, "resolvePath");
|
|
16353
16229
|
resolvePath.__type = [
|
|
16354
16230
|
"path",
|
|
16355
16231
|
() => __\u03A9ReceiveType,
|
|
@@ -16364,7 +16240,7 @@ function pathResolver(type = pathResolver.\u03A9?.[0], jitStack = new JitStack()
|
|
|
16364
16240
|
const jit = getTypeJitContainer(type);
|
|
16365
16241
|
if (jit.pathResolver) return jit.pathResolver;
|
|
16366
16242
|
if (type.kind === exports.ReflectionKind.objectLiteral || type.kind === exports.ReflectionKind.class) {
|
|
16367
|
-
const compilerContext = new
|
|
16243
|
+
const compilerContext = new chunkZDFKNN7Y_cjs.CompilerContext();
|
|
16368
16244
|
const lines = [];
|
|
16369
16245
|
const defaultCase = [];
|
|
16370
16246
|
for (const member of type.types) {
|
|
@@ -16400,12 +16276,12 @@ function pathResolver(type = pathResolver.\u03A9?.[0], jitStack = new JitStack()
|
|
|
16400
16276
|
}
|
|
16401
16277
|
`;
|
|
16402
16278
|
jit.pathResolver = compilerContext.build(code, "path");
|
|
16403
|
-
|
|
16279
|
+
chunkZDFKNN7Y_cjs.toFastProperties(jit);
|
|
16404
16280
|
return jit.pathResolver;
|
|
16405
16281
|
}
|
|
16406
16282
|
throw new Error(`pathResolver requires TypeClass or TypeObjectLiteral`);
|
|
16407
16283
|
}
|
|
16408
|
-
|
|
16284
|
+
chunkUSNT2KNT_cjs.__name(pathResolver, "pathResolver");
|
|
16409
16285
|
pathResolver.__type = [
|
|
16410
16286
|
() => __\u03A9ReceiveType,
|
|
16411
16287
|
"type",
|
|
@@ -16418,7 +16294,6 @@ pathResolver.__type = [
|
|
|
16418
16294
|
];
|
|
16419
16295
|
|
|
16420
16296
|
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/registry.js
|
|
16421
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
16422
16297
|
var __\u03A9RegistryDecorator = [
|
|
16423
16298
|
"T",
|
|
16424
16299
|
"Type",
|
|
@@ -16431,13 +16306,13 @@ var __\u03A9RegistryDecorator = [
|
|
|
16431
16306
|
];
|
|
16432
16307
|
var TypeRegistry = class {
|
|
16433
16308
|
static {
|
|
16434
|
-
|
|
16309
|
+
chunkUSNT2KNT_cjs.__name(this, "TypeRegistry");
|
|
16435
16310
|
}
|
|
16436
16311
|
constructor() {
|
|
16437
16312
|
this.results = {};
|
|
16438
16313
|
this.classes = (Map.\u03A9 = [
|
|
16439
16314
|
[
|
|
16440
|
-
() =>
|
|
16315
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
16441
16316
|
"n!"
|
|
16442
16317
|
],
|
|
16443
16318
|
[
|
|
@@ -16498,8 +16373,8 @@ var TypeRegistry = class {
|
|
|
16498
16373
|
* Registers a new template and replaces all existing (added via register,prepend,append).
|
|
16499
16374
|
*/
|
|
16500
16375
|
set(kind, v) {
|
|
16501
|
-
if (
|
|
16502
|
-
kind =
|
|
16376
|
+
if (chunkZDFKNN7Y_cjs.isFunction(kind)) return this.decorator(kind, v);
|
|
16377
|
+
kind = chunkZDFKNN7Y_cjs.isArray(kind) ? kind : [
|
|
16503
16378
|
kind
|
|
16504
16379
|
];
|
|
16505
16380
|
for (const k of kind) this.results[k] = v;
|
|
@@ -16516,7 +16391,7 @@ TypeRegistry.__type = [
|
|
|
16516
16391
|
function() {
|
|
16517
16392
|
return Map.\u03A9 = [
|
|
16518
16393
|
[
|
|
16519
|
-
() =>
|
|
16394
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
16520
16395
|
"n!"
|
|
16521
16396
|
],
|
|
16522
16397
|
[
|
|
@@ -16539,7 +16414,7 @@ TypeRegistry.__type = [
|
|
|
16539
16414
|
"decorator",
|
|
16540
16415
|
"setBinary",
|
|
16541
16416
|
"setNumeric",
|
|
16542
|
-
() =>
|
|
16417
|
+
() => chunkZDFKNN7Y_cjs.__ΩClassType,
|
|
16543
16418
|
"classType",
|
|
16544
16419
|
"setClass",
|
|
16545
16420
|
() => __\u03A9ReflectionKind,
|
|
@@ -16553,12 +16428,11 @@ TypeRegistry.__type = [
|
|
|
16553
16428
|
];
|
|
16554
16429
|
|
|
16555
16430
|
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/serializer-facade.js
|
|
16556
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
16557
16431
|
function __assignType15(fn, args) {
|
|
16558
16432
|
fn.__type = args;
|
|
16559
16433
|
return fn;
|
|
16560
16434
|
}
|
|
16561
|
-
|
|
16435
|
+
chunkUSNT2KNT_cjs.__name(__assignType15, "__assignType");
|
|
16562
16436
|
function cast(data, options, serializerToUse = serializer, namingStrategy, type = cast.\u03A9?.[0]) {
|
|
16563
16437
|
cast.\u03A9 = void 0;
|
|
16564
16438
|
const fn = getSerializeFunction(resolveReceiveType(type), serializerToUse.deserializeRegistry, namingStrategy);
|
|
@@ -16566,7 +16440,7 @@ function cast(data, options, serializerToUse = serializer, namingStrategy, type
|
|
|
16566
16440
|
assert(item, void 0, type);
|
|
16567
16441
|
return item;
|
|
16568
16442
|
}
|
|
16569
|
-
|
|
16443
|
+
chunkUSNT2KNT_cjs.__name(cast, "cast");
|
|
16570
16444
|
cast.__type = [
|
|
16571
16445
|
() => __\u03A9JSONPartial,
|
|
16572
16446
|
"data",
|
|
@@ -16599,7 +16473,7 @@ function castFunction(serializerToUse = serializer, namingStrategy, type = castF
|
|
|
16599
16473
|
'PPn"o!"#J2#n$2%8"/&'
|
|
16600
16474
|
]);
|
|
16601
16475
|
}
|
|
16602
|
-
|
|
16476
|
+
chunkUSNT2KNT_cjs.__name(castFunction, "castFunction");
|
|
16603
16477
|
castFunction.__type = [
|
|
16604
16478
|
() => Serializer,
|
|
16605
16479
|
"serializerToUse",
|
|
@@ -16621,7 +16495,7 @@ function deserialize2(data, options, serializerToUse = serializer, namingStrateg
|
|
|
16621
16495
|
const fn = getSerializeFunction(resolveReceiveType(type), serializerToUse.deserializeRegistry, namingStrategy);
|
|
16622
16496
|
return fn(data, options);
|
|
16623
16497
|
}
|
|
16624
|
-
|
|
16498
|
+
chunkUSNT2KNT_cjs.__name(deserialize2, "deserialize");
|
|
16625
16499
|
deserialize2.__type = [
|
|
16626
16500
|
() => __\u03A9JSONPartial,
|
|
16627
16501
|
"data",
|
|
@@ -16641,7 +16515,7 @@ function deserializeFunction(serializerToUse = serializer, namingStrategy, type
|
|
|
16641
16515
|
deserializeFunction.\u03A9 = void 0;
|
|
16642
16516
|
return getSerializeFunction(resolveReceiveType(type), serializerToUse.deserializeRegistry, namingStrategy);
|
|
16643
16517
|
}
|
|
16644
|
-
|
|
16518
|
+
chunkUSNT2KNT_cjs.__name(deserializeFunction, "deserializeFunction");
|
|
16645
16519
|
deserializeFunction.__type = [
|
|
16646
16520
|
() => Serializer,
|
|
16647
16521
|
"serializerToUse",
|
|
@@ -16660,7 +16534,7 @@ function patch(data, options, serializerToUse = serializer, namingStrategy, type
|
|
|
16660
16534
|
if (type.kind !== exports.ReflectionKind.objectLiteral && type.kind !== exports.ReflectionKind.class) throw new Error("patch() only works on object literals and classes");
|
|
16661
16535
|
return getPatchSerializeFunction(type, serializerToUse.deserializeRegistry, namingStrategy)(data, options);
|
|
16662
16536
|
}
|
|
16663
|
-
|
|
16537
|
+
chunkUSNT2KNT_cjs.__name(patch, "patch");
|
|
16664
16538
|
patch.__type = [
|
|
16665
16539
|
() => __\u03A9DeepPartial,
|
|
16666
16540
|
"data",
|
|
@@ -16741,7 +16615,7 @@ function getPatchSerializeFunction(type, registry, namingStrategy = new NamingSt
|
|
|
16741
16615
|
'P"2!n"2#8P)4$M2%8"/&'
|
|
16742
16616
|
]);
|
|
16743
16617
|
}
|
|
16744
|
-
|
|
16618
|
+
chunkUSNT2KNT_cjs.__name(getPatchSerializeFunction, "getPatchSerializeFunction");
|
|
16745
16619
|
getPatchSerializeFunction.__type = [
|
|
16746
16620
|
() => __\u03A9TypeClass,
|
|
16747
16621
|
() => __\u03A9TypeObjectLiteral,
|
|
@@ -16765,7 +16639,7 @@ function serialize2(data, options, serializerToUse = serializer, namingStrategy,
|
|
|
16765
16639
|
const fn = getSerializeFunction(resolveReceiveType(type), serializerToUse.serializeRegistry, namingStrategy);
|
|
16766
16640
|
return fn(data, options);
|
|
16767
16641
|
}
|
|
16768
|
-
|
|
16642
|
+
chunkUSNT2KNT_cjs.__name(serialize2, "serialize");
|
|
16769
16643
|
serialize2.__type = [
|
|
16770
16644
|
"data",
|
|
16771
16645
|
() => __\u03A9SerializationOptions,
|
|
@@ -16785,7 +16659,7 @@ function serializeFunction(serializerToUse = serializer, namingStrategy, type =
|
|
|
16785
16659
|
serializeFunction.\u03A9 = void 0;
|
|
16786
16660
|
return getSerializeFunction(resolveReceiveType(type), serializerToUse.serializeRegistry, namingStrategy);
|
|
16787
16661
|
}
|
|
16788
|
-
|
|
16662
|
+
chunkUSNT2KNT_cjs.__name(serializeFunction, "serializeFunction");
|
|
16789
16663
|
serializeFunction.__type = [
|
|
16790
16664
|
() => Serializer,
|
|
16791
16665
|
"serializerToUse",
|
|
@@ -16799,13 +16673,13 @@ serializeFunction.__type = [
|
|
|
16799
16673
|
`PP7!2">#P7$2%8"o&"2'8"o("/)`
|
|
16800
16674
|
];
|
|
16801
16675
|
function cloneClass(target, options) {
|
|
16802
|
-
const classType =
|
|
16676
|
+
const classType = chunkZDFKNN7Y_cjs.getClassTypeFromInstance(target);
|
|
16803
16677
|
const type = typeInfer(classType);
|
|
16804
16678
|
const serialize3 = getSerializeFunction(type, serializer.serializeRegistry);
|
|
16805
16679
|
const deserialize3 = getSerializeFunction(type, serializer.deserializeRegistry);
|
|
16806
16680
|
return deserialize3(serialize3(target, options));
|
|
16807
16681
|
}
|
|
16808
|
-
|
|
16682
|
+
chunkUSNT2KNT_cjs.__name(cloneClass, "cloneClass");
|
|
16809
16683
|
cloneClass.__type = [
|
|
16810
16684
|
"target",
|
|
16811
16685
|
() => __\u03A9SerializationOptions,
|
|
@@ -16820,7 +16694,7 @@ function validatedDeserialize(data, options, serializerToUse = serializer, namin
|
|
|
16820
16694
|
assert(item, void 0, type);
|
|
16821
16695
|
return item;
|
|
16822
16696
|
}
|
|
16823
|
-
|
|
16697
|
+
chunkUSNT2KNT_cjs.__name(validatedDeserialize, "validatedDeserialize");
|
|
16824
16698
|
validatedDeserialize.__type = [
|
|
16825
16699
|
"data",
|
|
16826
16700
|
() => __\u03A9SerializationOptions,
|
|
@@ -16837,7 +16711,6 @@ validatedDeserialize.__type = [
|
|
|
16837
16711
|
];
|
|
16838
16712
|
|
|
16839
16713
|
// ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/types.js
|
|
16840
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
16841
16714
|
var __\u03A9AutoId = [
|
|
16842
16715
|
() => __\u03A9PrimaryKey,
|
|
16843
16716
|
() => __\u03A9AutoIncrement,
|
|
@@ -16848,7 +16721,7 @@ var __\u03A9AutoId = [
|
|
|
16848
16721
|
|
|
16849
16722
|
Object.defineProperty(exports, "TypeNumberBrand", {
|
|
16850
16723
|
enumerable: true,
|
|
16851
|
-
get: function () { return
|
|
16724
|
+
get: function () { return chunk5NPGWGPO_cjs.TypeNumberBrand; }
|
|
16852
16725
|
});
|
|
16853
16726
|
exports.AnnotationDefinition = AnnotationDefinition;
|
|
16854
16727
|
exports.AtomicChangeInstance = AtomicChangeInstance;
|
|
@@ -17294,7 +17167,7 @@ exports.unpack = unpack;
|
|
|
17294
17167
|
exports.unpopulatedSymbol = unpopulatedSymbol;
|
|
17295
17168
|
exports.uuid = uuid;
|
|
17296
17169
|
exports.uuidAnnotation = uuidAnnotation;
|
|
17297
|
-
exports.validate =
|
|
17170
|
+
exports.validate = validate;
|
|
17298
17171
|
exports.validateFunction = validateFunction;
|
|
17299
17172
|
exports.validatePropertyOrParameter = validatePropertyOrParameter;
|
|
17300
17173
|
exports.validatedDeserialize = validatedDeserialize;
|