@powerlines/deepkit 0.6.167 → 0.7.0

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.
Files changed (137) hide show
  1. package/bin/deepkit-install.cjs +55 -90
  2. package/dist/capnp-BLx1WTBU.cjs +5175 -0
  3. package/dist/capnp-BiGNkOmV.mjs +4905 -0
  4. package/dist/capnp.cjs +47 -186
  5. package/dist/capnp.d.cts +78 -77
  6. package/dist/{capnp.d.ts → capnp.d.mts} +78 -77
  7. package/dist/capnp.mjs +3 -0
  8. package/dist/chunk-C0xms8kb.cjs +34 -0
  9. package/dist/esbuild-plugin.cjs +47 -11
  10. package/dist/esbuild-plugin.d.cts +20 -18
  11. package/dist/esbuild-plugin.d.mts +35 -0
  12. package/dist/esbuild-plugin.mjs +48 -0
  13. package/dist/index.cjs +69 -250
  14. package/dist/index.d.cts +10 -19
  15. package/dist/index.d.mts +10 -0
  16. package/dist/index.mjs +11 -0
  17. package/dist/reflect-type.cjs +24 -12
  18. package/dist/reflect-type.d.cts +7 -5
  19. package/dist/{reflect-type.d.ts → reflect-type.d.mts} +7 -5
  20. package/dist/reflect-type.mjs +24 -0
  21. package/dist/{reflection-9KUpjPqV.d.cts → reflection-BwdnCwaK.d.cts} +11 -17
  22. package/dist/{reflection-9KUpjPqV.d.ts → reflection-D9R8cdSo.d.mts} +26 -32
  23. package/dist/resolve-reflections.cjs +15 -9
  24. package/dist/resolve-reflections.d.cts +4 -2
  25. package/dist/{resolve-reflections.d.ts → resolve-reflections.d.mts} +4 -2
  26. package/dist/resolve-reflections.mjs +16 -0
  27. package/dist/rolldown-plugin.cjs +44 -11
  28. package/dist/rolldown-plugin.d.cts +5 -3
  29. package/dist/{rolldown-plugin.d.ts → rolldown-plugin.d.mts} +5 -3
  30. package/dist/rolldown-plugin.mjs +45 -0
  31. package/dist/transformer.cjs +52 -13
  32. package/dist/transformer.d.cts +6 -4
  33. package/dist/{transformer.d.ts → transformer.d.mts} +6 -4
  34. package/dist/transformer.mjs +51 -0
  35. package/dist/transpile.cjs +29 -10
  36. package/dist/transpile.d.cts +6 -4
  37. package/dist/{transpile.d.ts → transpile.d.mts} +6 -4
  38. package/dist/transpile.mjs +29 -0
  39. package/dist/types.cjs +0 -4
  40. package/dist/types.d.cts +9 -9
  41. package/dist/{types.d.ts → types.d.mts} +9 -9
  42. package/dist/types.mjs +1 -0
  43. package/dist/utilities.cjs +116 -33
  44. package/dist/utilities.d.cts +4 -2
  45. package/dist/{utilities.d.ts → utilities.d.mts} +4 -2
  46. package/dist/utilities.mjs +111 -0
  47. package/dist/vendor/core.cjs +1240 -513
  48. package/dist/vendor/core.mjs +1116 -0
  49. package/dist/vendor/string-BoXo0wS7.cjs +2983 -0
  50. package/dist/vendor/string-BuMgdahD.mjs +2467 -0
  51. package/dist/vendor/type-BMLjRtLY.cjs +202 -0
  52. package/dist/vendor/type-Dgeqs-rL.mjs +190 -0
  53. package/dist/vendor/type-compiler/compiler-BUrWMhGi.cjs +6792 -0
  54. package/dist/vendor/type-compiler/compiler-Bg8jX6qU.mjs +6739 -0
  55. package/dist/vendor/type-compiler/compiler-D1z5h1MK.d.cts +578 -0
  56. package/dist/vendor/type-compiler/compiler-Nkxc4PLJ.d.mts +578 -0
  57. package/dist/vendor/type-compiler/compiler.cjs +11 -43
  58. package/dist/vendor/type-compiler/compiler.d.cts +2 -3
  59. package/dist/vendor/type-compiler/compiler.d.mts +2 -0
  60. package/dist/vendor/type-compiler/compiler.mjs +3 -0
  61. package/dist/vendor/type-compiler/config-BEX924PC.cjs +3709 -0
  62. package/dist/vendor/type-compiler/config-B_cKkYZm.d.cts +116 -0
  63. package/dist/vendor/type-compiler/config-D9DM7Du_.d.mts +116 -0
  64. package/dist/vendor/type-compiler/config-y0HNkbCH.mjs +3640 -0
  65. package/dist/vendor/type-compiler/config.cjs +9 -34
  66. package/dist/vendor/type-compiler/config.d.cts +2 -1
  67. package/dist/vendor/type-compiler/config.d.mts +2 -0
  68. package/dist/vendor/type-compiler/config.mjs +3 -0
  69. package/dist/vendor/type-compiler/index.cjs +56 -129
  70. package/dist/vendor/type-compiler/index.d.cts +22 -3
  71. package/dist/vendor/type-compiler/index.d.mts +22 -0
  72. package/dist/vendor/type-compiler/index.mjs +50 -0
  73. package/dist/vendor/type-spec.cjs +11 -12
  74. package/dist/vendor/type-spec.mjs +3 -0
  75. package/dist/vendor/type.cjs +8407 -17892
  76. package/dist/vendor/type.d.cts +10 -196
  77. package/dist/vendor/{type.d.ts → type.d.mts} +10 -196
  78. package/dist/vendor/type.mjs +9109 -0
  79. package/package.json +43 -31
  80. package/schemas/reflection.cjs +4018 -4129
  81. package/schemas/reflection.d.cts +30 -38
  82. package/schemas/{reflection.d.ts → reflection.d.mts} +30 -38
  83. package/schemas/reflection.mjs +4036 -0
  84. package/dist/capnp.js +0 -2
  85. package/dist/chunk-23YNDVRG.js +0 -34
  86. package/dist/chunk-27RKMKSF.cjs +0 -50
  87. package/dist/chunk-2XDQUCXZ.js +0 -2392
  88. package/dist/chunk-34OFD7LS.cjs +0 -68
  89. package/dist/chunk-7FXYDYVQ.cjs +0 -5246
  90. package/dist/chunk-7QZGCBH7.cjs +0 -11
  91. package/dist/chunk-ALM6UMVU.js +0 -9
  92. package/dist/chunk-BLLXF42T.cjs +0 -41
  93. package/dist/chunk-H3Q3XL3D.js +0 -19
  94. package/dist/chunk-HPVJ6OV3.cjs +0 -31
  95. package/dist/chunk-JQUKKAFM.js +0 -48
  96. package/dist/chunk-KK7TQA7L.cjs +0 -25
  97. package/dist/chunk-NPV2346T.js +0 -25
  98. package/dist/chunk-ORA4UQMU.cjs +0 -2
  99. package/dist/chunk-OUGDFUKJ.cjs +0 -2400
  100. package/dist/chunk-OULCUN6I.js +0 -1
  101. package/dist/chunk-SHUYVCID.js +0 -4
  102. package/dist/chunk-TDYIUJGY.js +0 -5180
  103. package/dist/chunk-USNT2KNT.cjs +0 -6
  104. package/dist/chunk-WYEFKIRL.js +0 -66
  105. package/dist/esbuild-plugin.d.ts +0 -33
  106. package/dist/esbuild-plugin.js +0 -4
  107. package/dist/index.d.ts +0 -19
  108. package/dist/index.js +0 -10
  109. package/dist/reflect-type.js +0 -5
  110. package/dist/resolve-reflections.js +0 -2
  111. package/dist/rolldown-plugin.js +0 -4
  112. package/dist/transformer.js +0 -2
  113. package/dist/transpile.js +0 -3
  114. package/dist/types.js +0 -1
  115. package/dist/utilities.js +0 -2
  116. package/dist/vendor/chunk-5BKT4CS5.js +0 -28
  117. package/dist/vendor/chunk-BLN7QVCP.js +0 -3704
  118. package/dist/vendor/chunk-BR2FK5K7.js +0 -109
  119. package/dist/vendor/chunk-EPQZMVJO.cjs +0 -3859
  120. package/dist/vendor/chunk-IFK6AU6M.cjs +0 -42
  121. package/dist/vendor/chunk-SHDAXCXF.cjs +0 -115
  122. package/dist/vendor/core.js +0 -2
  123. package/dist/vendor/type-compiler/chunk-3LL3TSRJ.js +0 -3762
  124. package/dist/vendor/type-compiler/chunk-CUTGHVNY.js +0 -7100
  125. package/dist/vendor/type-compiler/chunk-IAWCLVUK.cjs +0 -3780
  126. package/dist/vendor/type-compiler/chunk-UIWPG352.cjs +0 -7114
  127. package/dist/vendor/type-compiler/compiler.d.ts +0 -3
  128. package/dist/vendor/type-compiler/compiler.js +0 -5
  129. package/dist/vendor/type-compiler/config.d.ts +0 -1
  130. package/dist/vendor/type-compiler/config.js +0 -5
  131. package/dist/vendor/type-compiler/index.d.ts +0 -3
  132. package/dist/vendor/type-compiler/index.js +0 -66
  133. package/dist/vendor/type-spec.js +0 -2
  134. package/dist/vendor/type.js +0 -18359
  135. package/schemas/reflection.js +0 -4153
  136. /package/dist/vendor/{core.d.ts → core.d.mts} +0 -0
  137. /package/dist/vendor/{type-spec.d.ts → type-spec.d.mts} +0 -0
@@ -0,0 +1,2983 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
12
+ key = keys[i];
13
+ if (!__hasOwnProp.call(to, key) && key !== except) {
14
+ __defProp(to, key, {
15
+ get: ((k) => from[k]).bind(null, key),
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ }
19
+ }
20
+ }
21
+ return to;
22
+ };
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
24
+ value: mod,
25
+ enumerable: true
26
+ }) : target, mod));
27
+
28
+ //#endregion
29
+
30
+ //#region ../../node_modules/.pnpm/is-obj@2.0.0/node_modules/is-obj/index.js
31
+ var require_is_obj = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32
+ module.exports = (value) => {
33
+ const type = typeof value;
34
+ return value !== null && (type === "object" || type === "function");
35
+ };
36
+ }));
37
+
38
+ //#endregion
39
+ //#region ../../node_modules/.pnpm/dot-prop@5.3.0/node_modules/dot-prop/index.js
40
+ var require_dot_prop = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41
+ const isObj = require_is_obj();
42
+ const disallowedKeys = [
43
+ "__proto__",
44
+ "prototype",
45
+ "constructor"
46
+ ];
47
+ const isValidPath = (pathSegments) => !pathSegments.some((segment) => disallowedKeys.includes(segment));
48
+ function getPathSegments(path) {
49
+ const pathArray = path.split(".");
50
+ const parts = [];
51
+ for (let i = 0; i < pathArray.length; i++) {
52
+ let p = pathArray[i];
53
+ while (p[p.length - 1] === "\\" && pathArray[i + 1] !== void 0) {
54
+ p = p.slice(0, -1) + ".";
55
+ p += pathArray[++i];
56
+ }
57
+ parts.push(p);
58
+ }
59
+ if (!isValidPath(parts)) return [];
60
+ return parts;
61
+ }
62
+ module.exports = {
63
+ get(object, path, value) {
64
+ if (!isObj(object) || typeof path !== "string") return value === void 0 ? object : value;
65
+ const pathArray = getPathSegments(path);
66
+ if (pathArray.length === 0) return;
67
+ for (let i = 0; i < pathArray.length; i++) {
68
+ if (!Object.prototype.propertyIsEnumerable.call(object, pathArray[i])) return value;
69
+ object = object[pathArray[i]];
70
+ if (object === void 0 || object === null) {
71
+ if (i !== pathArray.length - 1) return value;
72
+ break;
73
+ }
74
+ }
75
+ return object;
76
+ },
77
+ set(object, path, value) {
78
+ if (!isObj(object) || typeof path !== "string") return object;
79
+ const root = object;
80
+ const pathArray = getPathSegments(path);
81
+ for (let i = 0; i < pathArray.length; i++) {
82
+ const p = pathArray[i];
83
+ if (!isObj(object[p])) object[p] = {};
84
+ if (i === pathArray.length - 1) object[p] = value;
85
+ object = object[p];
86
+ }
87
+ return root;
88
+ },
89
+ delete(object, path) {
90
+ if (!isObj(object) || typeof path !== "string") return false;
91
+ const pathArray = getPathSegments(path);
92
+ for (let i = 0; i < pathArray.length; i++) {
93
+ const p = pathArray[i];
94
+ if (i === pathArray.length - 1) {
95
+ delete object[p];
96
+ return true;
97
+ }
98
+ object = object[p];
99
+ if (!isObj(object)) return false;
100
+ }
101
+ },
102
+ has(object, path) {
103
+ if (!isObj(object) || typeof path !== "string") return false;
104
+ const pathArray = getPathSegments(path);
105
+ if (pathArray.length === 0) return false;
106
+ for (let i = 0; i < pathArray.length; i++) if (isObj(object)) {
107
+ if (!(pathArray[i] in object)) return false;
108
+ object = object[pathArray[i]];
109
+ } else return false;
110
+ return true;
111
+ }
112
+ };
113
+ }));
114
+
115
+ //#endregion
116
+ //#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/iterators.js
117
+ const __ΩArrayLike = [
118
+ "T",
119
+ "length",
120
+ "ArrayLike",
121
+ "b!P'4\"9'e\"!LMw#y"
122
+ ];
123
+ const __ΩIterableIterator$1 = [
124
+ "T",
125
+ "TReturn",
126
+ "TNext",
127
+ () => __ΩIterator$1,
128
+ 0,
129
+ () => Symbol.iterator,
130
+ "IterableIterator",
131
+ "b!\"c\"\"c#Pe\"!e\"\"e\"#o$$Pe#!e#\"e##o%$1&Mw'y"
132
+ ];
133
+ const __ΩIterator$1 = [
134
+ "T",
135
+ "TReturn",
136
+ "TNext",
137
+ "param0",
138
+ () => __ΩIteratorResult$1,
139
+ "next",
140
+ "value",
141
+ () => __ΩIteratorResult$1,
142
+ "return",
143
+ "e",
144
+ () => __ΩIteratorResult$1,
145
+ "throw",
146
+ "Iterator",
147
+ "b!\"c\"\"c#PPPPGPe%#GJ@2$e#!e#\"o%#1&Pe#\"2'8e#!e#\"o(#1)P\"2*8e#!e#\"o+#1,Mw-y"
148
+ ];
149
+ const __ΩIteratorResult$1 = [
150
+ "T",
151
+ "TReturn",
152
+ () => __ΩIteratorYieldResult$1,
153
+ () => __ΩIteratorReturnResult$1,
154
+ "IteratorResult",
155
+ "b!\"c\"Pe\"!o#\"e\"\"o$\"Jw%y"
156
+ ];
157
+ const __ΩIteratorYieldResult$1 = [
158
+ "TYield",
159
+ false,
160
+ "done",
161
+ "value",
162
+ "IteratorYieldResult",
163
+ "b!P.\"4#8e\"!4$Mw%y"
164
+ ];
165
+ const __ΩIteratorReturnResult$1 = [
166
+ "TReturn",
167
+ true,
168
+ "done",
169
+ "value",
170
+ "IteratorReturnResult",
171
+ "b!P.\"4#e\"!4$Mw%y"
172
+ ];
173
+ eachKey.__type = [
174
+ () => __ΩArrayLike,
175
+ "object",
176
+ () => __ΩIterableIterator$1,
177
+ "eachKey",
178
+ "P\"o!\"2\"'o#\"/$"
179
+ ];
180
+ eachKey.__type = [
181
+ "object",
182
+ () => __ΩIterableIterator$1,
183
+ "eachKey",
184
+ "P\"2!&o\"\"/#"
185
+ ];
186
+ /** @public */
187
+ function* eachKey(object) {
188
+ if (Array.isArray(object)) for (let i = 0; i < object.length; i++) yield i;
189
+ else for (const i in object) if (object.hasOwnProperty(i)) yield i;
190
+ }
191
+ eachKey.__type = [
192
+ () => __ΩArrayLike,
193
+ "object",
194
+ () => __ΩIterableIterator$1,
195
+ "eachKey",
196
+ "PP\"\"o!\"J2\"P&'Jo#\"/$"
197
+ ];
198
+ /**
199
+ * Iterator for each value of an array or object.
200
+ *
201
+ * @example
202
+ * ```
203
+ * for (const v of each(['a', 'b']) {
204
+ * console.log(v); //a, b
205
+ * }
206
+ * ```
207
+ *
208
+ * @public
209
+ * @category iterator
210
+ */
211
+ function* each(object) {
212
+ if (Array.isArray(object)) for (let i = 0; i < object.length; i++) yield object[i];
213
+ else for (const i in object) if (object.hasOwnProperty(i)) yield object[i];
214
+ }
215
+ each.__type = [
216
+ () => __ΩArrayLike,
217
+ "object",
218
+ () => __ΩIterableIterator$1,
219
+ "each",
220
+ "PPP&\"LM\"o!\"J2\"\"o#\"/$"
221
+ ];
222
+ eachPair.__type = [
223
+ () => __ΩArrayLike,
224
+ "object",
225
+ () => __ΩIterableIterator$1,
226
+ "eachPair",
227
+ "P\"o!\"2\"P'\"Go#\"/$"
228
+ ];
229
+ eachPair.__type = [
230
+ "object",
231
+ () => __ΩIterableIterator$1,
232
+ "eachPair",
233
+ "PP&\"LM2!P&\"Go\"\"/#"
234
+ ];
235
+ /** @public */
236
+ function* eachPair(object) {
237
+ if (Array.isArray(object)) for (let i = 0; i < object.length; i++) yield [i, object[i]];
238
+ else for (const i in object) if (object.hasOwnProperty(i)) yield [i, object[i]];
239
+ }
240
+ eachPair.__type = [
241
+ () => __ΩArrayLike,
242
+ "object",
243
+ () => __ΩIterableIterator$1,
244
+ "eachPair",
245
+ "PPP&\"LM\"o!\"J2\"PP&\"GP'\"GJo#\"/$"
246
+ ];
247
+
248
+ //#endregion
249
+ //#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/core.js
250
+ var import_dot_prop = /* @__PURE__ */ __toESM(require_dot_prop(), 1);
251
+ const __ΩObject = [
252
+ () => Function,
253
+ "constructor",
254
+ "toString",
255
+ "toLocaleString",
256
+ 0,
257
+ "valueOf",
258
+ () => __ΩPropertyKey,
259
+ "v",
260
+ "hasOwnProperty",
261
+ 0,
262
+ "isPrototypeOf",
263
+ () => __ΩPropertyKey,
264
+ "propertyIsEnumerable",
265
+ "Object",
266
+ "PPu!4\"P&1#P&1$Pn%1&Pn'2()1)Pn*2()1+Pn,2()1-Mw.y"
267
+ ];
268
+ const __ΩError = [
269
+ "name",
270
+ "message",
271
+ "stack",
272
+ "Error",
273
+ "P&4!&4\"&4#8Mw$y"
274
+ ];
275
+ const __ΩIterableIterator = [
276
+ "T",
277
+ "TReturn",
278
+ "TNext",
279
+ () => __ΩIterator,
280
+ 0,
281
+ () => Symbol.iterator,
282
+ "IterableIterator",
283
+ "b!\"c\"\"c#Pe\"!e\"\"e\"#o$$Pe#!e#\"e##o%$1&Mw'y"
284
+ ];
285
+ const __ΩPropertyKey = ["PropertyKey", "P&'+Jw!y"];
286
+ const __ΩIterator = [
287
+ "T",
288
+ "TReturn",
289
+ "TNext",
290
+ "param0",
291
+ () => __ΩIteratorResult,
292
+ "next",
293
+ "value",
294
+ () => __ΩIteratorResult,
295
+ "return",
296
+ "e",
297
+ () => __ΩIteratorResult,
298
+ "throw",
299
+ "Iterator",
300
+ "b!\"c\"\"c#PPPPGPe%#GJ@2$e#!e#\"o%#1&Pe#\"2'8e#!e#\"o(#1)P\"2*8e#!e#\"o+#1,Mw-y"
301
+ ];
302
+ const __ΩIteratorResult = [
303
+ "T",
304
+ "TReturn",
305
+ () => __ΩIteratorYieldResult,
306
+ () => __ΩIteratorReturnResult,
307
+ "IteratorResult",
308
+ "b!\"c\"Pe\"!o#\"e\"\"o$\"Jw%y"
309
+ ];
310
+ const __ΩIteratorYieldResult = [
311
+ "TYield",
312
+ false,
313
+ "done",
314
+ "value",
315
+ "IteratorYieldResult",
316
+ "b!P.\"4#8e\"!4$Mw%y"
317
+ ];
318
+ const __ΩIteratorReturnResult = [
319
+ "TReturn",
320
+ true,
321
+ "done",
322
+ "value",
323
+ "IteratorReturnResult",
324
+ "b!P.\"4#e\"!4$Mw%y"
325
+ ];
326
+ function __assignType$2(fn, args) {
327
+ fn.__type = args;
328
+ return fn;
329
+ }
330
+ /**
331
+ * Makes sure the error once printed using console.log contains the actual class name.
332
+ *
333
+ * @example
334
+ * ```
335
+ * class MyApiError extends CustomerError {}
336
+ *
337
+ * throw MyApiError() // prints MyApiError instead of simply "Error".
338
+ * ```
339
+ *
340
+ * @public
341
+ */
342
+ var CustomError = class extends Error {
343
+ constructor(...args) {
344
+ super(...args);
345
+ this.name = this.constructor.name;
346
+ }
347
+ };
348
+ CustomError.__type = [
349
+ () => Error,
350
+ "name",
351
+ "args",
352
+ "constructor",
353
+ "CustomError",
354
+ "P7!&3\"P\"@2#\"0$5w%"
355
+ ];
356
+ const __ΩCustomError = [
357
+ "cause",
358
+ "CustomError",
359
+ "P#4!8Mw\"y"
360
+ ];
361
+ const __ΩClassType = [
362
+ "T",
363
+ "args",
364
+ "new",
365
+ "ClassType",
366
+ "\"c!PP\"@2\"e#!1#Mw$y"
367
+ ];
368
+ const __ΩAbstractClassType = [
369
+ "T",
370
+ "args",
371
+ "new",
372
+ "AbstractClassType",
373
+ "\"c!P\"@2\"e\"!/#w$y"
374
+ ];
375
+ const __ΩExtractClassType = [
376
+ "T",
377
+ () => __ΩAbstractClassType,
378
+ "ExtractClassType",
379
+ "l:e\"!R!RPde#!h!!o\"\"qk#'QRb!Pde\"!p)w#y"
380
+ ];
381
+ /**
382
+ * Returns the class name either of the class definition or of the class of an instance.
383
+ *
384
+ * Note when code is minimized/uglified this output will change. You should disable in your compile the
385
+ * className modification.
386
+ *
387
+ * @example
388
+ * ```typescript
389
+ * class User {}
390
+ *
391
+ * expect(getClassName(User)).toBe('User');
392
+ * expect(getClassName(new User())).toBe('User');
393
+ * ```
394
+ *
395
+ * @public
396
+ */
397
+ function getClassName(classTypeOrInstance) {
398
+ if (!classTypeOrInstance) return "undefined";
399
+ return (classTypeOrInstance["prototype"] ? classTypeOrInstance["prototype"] : classTypeOrInstance).constructor.name || "anonymous class";
400
+ }
401
+ getClassName.__type = [
402
+ () => __ΩClassType,
403
+ () => __ΩObject,
404
+ "classTypeOrInstance",
405
+ "getClassName",
406
+ "PP\"o!\"n\"J2#&/$"
407
+ ];
408
+ /**
409
+ * Same as getClassName but appends the propertyName.
410
+ * @public
411
+ */
412
+ function getClassPropertyName(classType, propertyName) {
413
+ return `${getClassName(classType)}.${propertyName}`;
414
+ }
415
+ getClassPropertyName.__type = [
416
+ () => __ΩClassType,
417
+ () => __ΩObject,
418
+ "classType",
419
+ "propertyName",
420
+ "getClassPropertyName",
421
+ "PP\"o!\"n\"J2#&2$&/%"
422
+ ];
423
+ /**
424
+ * @public
425
+ */
426
+ function applyDefaults(classType, target) {
427
+ const classInstance = new classType();
428
+ for (const [i, v] of eachPair(target)) classInstance[i] = v;
429
+ return classInstance;
430
+ }
431
+ applyDefaults.__type = [
432
+ () => __ΩClassType,
433
+ "classType",
434
+ "target",
435
+ "applyDefaults",
436
+ "P\"o!\"2\"P&\"LM2#\"/$"
437
+ ];
438
+ /**
439
+ * Tries to identify the object by normalised result of Object.toString(obj).
440
+ */
441
+ function identifyType(obj) {
442
+ return (({}.toString.call(obj).match(/\s([a-zA-Z]+)/) || [])[1] || "").toLowerCase();
443
+ }
444
+ identifyType.__type = [
445
+ "obj",
446
+ "identifyType",
447
+ "P\"2!\"/\""
448
+ ];
449
+ /**
450
+ * Returns true if the given obj is a plain object, and no class instance.
451
+ *
452
+ * isPlainObject(\{\}) === true
453
+ * isPlainObject(new ClassXY) === false
454
+ *
455
+ * @public
456
+ */
457
+ function isPlainObject(obj) {
458
+ return Boolean(obj && typeof obj === "object" && obj.constructor instanceof obj.constructor);
459
+ }
460
+ isPlainObject.__type = [
461
+ "obj",
462
+ "isPlainObject",
463
+ "P\"2!!/\""
464
+ ];
465
+ /**
466
+ * Returns the ClassType for a given instance.
467
+ */
468
+ function getClassTypeFromInstance(target) {
469
+ if (!isClassInstance(target)) throw new Error(`Value is not a class instance. Got ${stringifyValueWithType(target)}`);
470
+ return target["constructor"];
471
+ }
472
+ getClassTypeFromInstance.__type = [
473
+ "target",
474
+ () => __ΩClassType,
475
+ "getClassTypeFromInstance",
476
+ "P\"2!\"o\"\"/#"
477
+ ];
478
+ /**
479
+ * Returns true when target is a class instance.
480
+ */
481
+ function isClassInstance(target) {
482
+ return target !== void 0 && target !== null && target["constructor"] && Object.getPrototypeOf(target) === target["constructor"].prototype && !isPlainObject(target) && isObject(target);
483
+ }
484
+ isClassInstance.__type = [
485
+ "target",
486
+ "isClassInstance",
487
+ "P\"2!)/\""
488
+ ];
489
+ /**
490
+ * Returns a human-readable string representation from the given value.
491
+ */
492
+ function stringifyValueWithType(value, depth = 0) {
493
+ if ("string" === typeof value) return `string(${value})`;
494
+ if ("number" === typeof value) return `number(${value})`;
495
+ if ("boolean" === typeof value) return `boolean(${value})`;
496
+ if ("bigint" === typeof value) return `bigint(${value})`;
497
+ if (isPlainObject(value)) return `object ${depth < 2 ? prettyPrintObject(value, depth) : ""}`;
498
+ if (isArray(value)) return `Array`;
499
+ if (isClass(value)) return `${getClassName(value)}`;
500
+ if (isObject(value)) return `${getClassName(getClassTypeFromInstance(value))} ${depth < 2 ? prettyPrintObject(value, depth) : ""}`;
501
+ if ("function" === typeof value) return `function ${value.name}`;
502
+ if (null === value) return `null`;
503
+ return "undefined";
504
+ }
505
+ stringifyValueWithType.__type = [
506
+ "value",
507
+ "depth",
508
+ () => 0,
509
+ "stringifyValueWithType",
510
+ "P\"2!'2\">#&/$"
511
+ ];
512
+ /**
513
+ * Changes the class of a given instance and returns the new object.
514
+ *
515
+ * @example
516
+ * ```typescript
517
+ *
518
+ * class Model1 {
519
+ * id: number = 0;
520
+ * }
521
+ *
522
+ * class Model2 {
523
+ * id: number = 0;
524
+ * }
525
+ *
526
+ * const model1 = new Model1();
527
+ * const model2 = changeClass(model1, Model2);
528
+ * model2 instanceof Model2; //true
529
+ * ```
530
+ */
531
+ function changeClass(value, newClass) {
532
+ return Object.assign(Object.create(newClass.prototype), value);
533
+ }
534
+ changeClass.__type = [
535
+ "value",
536
+ () => __ΩClassType,
537
+ "newClass",
538
+ "changeClass",
539
+ "P%2!\"o\"\"2#\"/$"
540
+ ];
541
+ function prettyPrintObject(object, depth = 0) {
542
+ const res = [];
543
+ for (const i in object) res.push(i + ": " + stringifyValueWithType(object[i], depth + 1));
544
+ return "{" + res.join(",") + "}";
545
+ }
546
+ prettyPrintObject.__type = [
547
+ "object",
548
+ "depth",
549
+ () => 0,
550
+ "prettyPrintObject",
551
+ "P%2!'2\">#&/$"
552
+ ];
553
+ /**
554
+ * Returns true if given obj is a function.
555
+ *
556
+ * @public
557
+ */
558
+ function isFunction(obj) {
559
+ if ("function" === typeof obj) return !obj.toString().startsWith("class ") && !obj.toString().startsWith("class{");
560
+ return false;
561
+ }
562
+ isFunction.__type = [
563
+ "obj",
564
+ "isFunction",
565
+ "P\"2!!/\""
566
+ ];
567
+ const AsyncFunction = (async () => {}).constructor;
568
+ /**
569
+ * Returns true if given obj is a async function.
570
+ *
571
+ * @public
572
+ */
573
+ function isAsyncFunction(obj) {
574
+ return obj instanceof AsyncFunction;
575
+ }
576
+ isAsyncFunction.__type = [
577
+ "obj",
578
+ "isAsyncFunction",
579
+ "P\"2!!/\""
580
+ ];
581
+ /**
582
+ * Returns true if given obj is a promise like object.
583
+ *
584
+ * Note: There's not way to check if it's actually a Promise using instanceof since
585
+ * there are a lot of different implementations around.
586
+ *
587
+ * @public
588
+ */
589
+ function isPromise(obj) {
590
+ return obj !== null && typeof obj === "object" && typeof obj.then === "function" && typeof obj.catch === "function" && typeof obj.finally === "function";
591
+ }
592
+ isPromise.__type = [
593
+ "obj",
594
+ "isPromise",
595
+ "PP\"\"`J2!!/\""
596
+ ];
597
+ /**
598
+ * Returns true if given obj is a ES6 class (ES5 fake classes are not supported).
599
+ *
600
+ * @public
601
+ */
602
+ function isClass(obj) {
603
+ if ("function" === typeof obj) return obj.toString().startsWith("class ") || obj.toString().startsWith("class{");
604
+ return false;
605
+ }
606
+ isClass.__type = [
607
+ "obj",
608
+ "isClass",
609
+ "P\"2!!/\""
610
+ ];
611
+ function isGlobalClass(obj) {
612
+ if ("function" !== typeof obj) return false;
613
+ if ("undefined" !== typeof window) return window[getClassName(obj)] === obj;
614
+ if ("undefined" !== typeof global) return global[getClassName(obj)] === obj;
615
+ return false;
616
+ }
617
+ isGlobalClass.__type = [
618
+ "obj",
619
+ "isGlobalClass",
620
+ "P\"2!!/\""
621
+ ];
622
+ /**
623
+ * Returns true for real objects: object literals ({}) or class instances (new MyClass).
624
+ *
625
+ * @public
626
+ */
627
+ function isObject(obj) {
628
+ if (obj === null) return false;
629
+ return typeof obj === "object" && !isArray(obj);
630
+ }
631
+ isObject.__type = [
632
+ "obj",
633
+ "isObject",
634
+ "P\"2!!/\""
635
+ ];
636
+ /**
637
+ * Returns true if given obj is a plain object, and no Date, Array, Map, Set, etc.
638
+ *
639
+ * This is different to isObject and used in the type system to differentiate
640
+ * between JS objects in general and what we define as ReflectionKind.objectLiteral.
641
+ * Since we have Date, Set, Map, etc. in the type system, we need to differentiate
642
+ * between them and all other object literals.
643
+ */
644
+ function isObjectLiteral(obj) {
645
+ return isObject(obj) && !(obj instanceof Date) && !(obj instanceof Map) && !(obj instanceof Set);
646
+ }
647
+ isObjectLiteral.__type = [
648
+ "obj",
649
+ "isObjectLiteral",
650
+ "P\"2!!/\""
651
+ ];
652
+ /**
653
+ * @public
654
+ */
655
+ const isArray = Array.isArray;
656
+ /**
657
+ * @public
658
+ */
659
+ function isNull(obj) {
660
+ return null === obj;
661
+ }
662
+ isNull.__type = [
663
+ "obj",
664
+ "isNull",
665
+ "P\"2!!/\""
666
+ ];
667
+ /**
668
+ * @public
669
+ */
670
+ function isUndefined(obj) {
671
+ return void 0 === obj;
672
+ }
673
+ isUndefined.__type = [
674
+ "obj",
675
+ "isUndefined",
676
+ "P\"2!!/\""
677
+ ];
678
+ /**
679
+ * Checks if obj is not null and not undefined.
680
+ *
681
+ * @public
682
+ */
683
+ function isSet(obj) {
684
+ return !isNull(obj) && !isUndefined(obj);
685
+ }
686
+ isSet.__type = [
687
+ "obj",
688
+ "isSet",
689
+ "P\"2!)/\""
690
+ ];
691
+ /**
692
+ * @public
693
+ */
694
+ function isNumber(obj) {
695
+ return "number" === identifyType(obj);
696
+ }
697
+ isNumber.__type = [
698
+ "obj",
699
+ "isNumber",
700
+ "P\"2!!/\""
701
+ ];
702
+ /**
703
+ * Returns true if given value is strictly a numeric string value (or a number).
704
+ *
705
+ * ```typescript
706
+ * isNumeric(12); //true
707
+ * isNumeric('12'); //true
708
+ * isNumeric('12.3'); //true
709
+ * isNumeric('12.3 '); //false
710
+ * isNumeric('12px'); //false
711
+ * ```
712
+ * @public
713
+ */
714
+ function isNumeric(s) {
715
+ if ("number" === typeof s) return true;
716
+ let points = 0;
717
+ for (let i = s.length - 1; i >= 0; i--) {
718
+ const d = s.charCodeAt(i);
719
+ if (d === 46) {
720
+ if (points++ > 0) return false;
721
+ continue;
722
+ }
723
+ if (d < 48 || d > 57) return false;
724
+ }
725
+ return true;
726
+ }
727
+ isNumeric.__type = [
728
+ "s",
729
+ "isNumeric",
730
+ "PP&'J2!)/\""
731
+ ];
732
+ const isInteger = Number.isInteger || __assignType$2(function(obj) {
733
+ return obj % 1 === 0;
734
+ }, [
735
+ "obj",
736
+ "",
737
+ "P\"2!\"/\""
738
+ ]);
739
+ /**
740
+ * @public
741
+ */
742
+ function isString(obj) {
743
+ return "string" === identifyType(obj);
744
+ }
745
+ isString.__type = [
746
+ "obj",
747
+ "isString",
748
+ "P\"2!!/\""
749
+ ];
750
+ /**
751
+ * @public
752
+ */
753
+ function indexOf(array, item) {
754
+ if (!array) return -1;
755
+ return array.indexOf(item);
756
+ }
757
+ indexOf.__type = [
758
+ "array",
759
+ "item",
760
+ "indexOf",
761
+ "P\"F2!\"2\"'/#"
762
+ ];
763
+ /**
764
+ * @public
765
+ */
766
+ async function sleep(seconds) {
767
+ return Promise.Ω = [["$"]], new Promise(__assignType$2((resolve) => setTimeout(resolve, seconds * 1e3), [
768
+ "resolve",
769
+ "",
770
+ "P\"2!\"/\""
771
+ ]));
772
+ }
773
+ sleep.__type = [
774
+ "seconds",
775
+ "sleep",
776
+ "P'2!$`/\""
777
+ ];
778
+ /**
779
+ * Creates a shallow copy of given array.
780
+ *
781
+ * @public
782
+ */
783
+ function copy(v) {
784
+ if (isArray(v)) return v.slice(0);
785
+ return v;
786
+ }
787
+ copy.__type = [
788
+ "v",
789
+ "copy",
790
+ "P\"F2!\"F/\""
791
+ ];
792
+ /**
793
+ * Checks whether given array or object is empty (no keys). If given object is falsy, returns false.
794
+ *
795
+ * @public
796
+ */
797
+ function empty(value) {
798
+ if (!value) return true;
799
+ if (isArray(value)) return value.length === 0;
800
+ else {
801
+ for (const i in value) if (value.hasOwnProperty(i)) return false;
802
+ return true;
803
+ }
804
+ }
805
+ empty.__type = [
806
+ "value",
807
+ "empty",
808
+ "PP\"F%PMJ2!8)/\""
809
+ ];
810
+ /**
811
+ * Returns the size of given array or object.
812
+ *
813
+ * @public
814
+ */
815
+ function size(array) {
816
+ if (!array) return 0;
817
+ if (isArray(array)) return array.length;
818
+ else return getObjectKeysSize(array);
819
+ }
820
+ size.__type = [
821
+ "array",
822
+ "size",
823
+ "PP\"FP&\"LMJ2!'/\""
824
+ ];
825
+ /**
826
+ * Returns the first key of a given object.
827
+ *
828
+ * @public
829
+ */
830
+ function firstKey(v) {
831
+ return Object.keys(v)[0];
832
+ }
833
+ firstKey.__type = [
834
+ "v",
835
+ "firstKey",
836
+ "PPP&\"LM%J2!P&-J/\""
837
+ ];
838
+ /**
839
+ * Returns the last key of a given object.
840
+ *
841
+ * @public
842
+ */
843
+ function lastKey(v) {
844
+ const keys = Object.keys(v);
845
+ if (keys.length) return;
846
+ return keys[keys.length - 1];
847
+ }
848
+ lastKey.__type = [
849
+ "v",
850
+ "lastKey",
851
+ "PPP&\"LM%J2!P&-J/\""
852
+ ];
853
+ /**
854
+ * Returns the first value of given array or object.
855
+ *
856
+ * @public
857
+ */
858
+ function first(v) {
859
+ if (isArray(v)) return v[0];
860
+ const key = firstKey(v);
861
+ if (key) return v[key];
862
+ }
863
+ first.__type = [
864
+ "v",
865
+ "first",
866
+ "PPP&\"LM\"FJ2!P\"-J/\""
867
+ ];
868
+ /**
869
+ * Returns the last value of given array or object.
870
+ *
871
+ * @public
872
+ */
873
+ function last(v) {
874
+ if (isArray(v)) {
875
+ if (v.length > 0) return v[v.length - 1];
876
+ return;
877
+ }
878
+ const key = firstKey(v);
879
+ if (key) return v[key];
880
+ }
881
+ last.__type = [
882
+ "v",
883
+ "last",
884
+ "PPP&\"LM\"FJ2!P\"-J/\""
885
+ ];
886
+ /**
887
+ * Returns the average of a number array.
888
+ *
889
+ * @public
890
+ */
891
+ function average(array) {
892
+ let sum = 0;
893
+ for (const n of array) sum += n;
894
+ return sum / array.length;
895
+ }
896
+ average.__type = [
897
+ "array",
898
+ "average",
899
+ "P'F2!'/\""
900
+ ];
901
+ /**
902
+ * @public
903
+ */
904
+ function prependObjectKeys(o, prependText) {
905
+ const converted = {};
906
+ for (const i in o) {
907
+ if (!o.hasOwnProperty(i)) continue;
908
+ converted[prependText + i] = o[i];
909
+ }
910
+ return converted;
911
+ }
912
+ prependObjectKeys.__type = [
913
+ "o",
914
+ "prependText",
915
+ "prependObjectKeys",
916
+ "PP&\"LM2!&2\"P&\"LM/#"
917
+ ];
918
+ /**
919
+ * @public
920
+ */
921
+ function appendObject(origin, extend, prependKeyName = "") {
922
+ const no = prependObjectKeys(extend, prependKeyName);
923
+ for (const [i, v] of eachPair(no)) origin[i] = v;
924
+ }
925
+ appendObject.__type = [
926
+ "origin",
927
+ "extend",
928
+ "prependKeyName",
929
+ () => "",
930
+ "appendObject",
931
+ "PP&\"LM2!P&\"LM2\"&2#>$\"/%"
932
+ ];
933
+ /**
934
+ * A better alternative to "new Promise()" that supports error handling and maintains the stack trace for Error.stack.
935
+ *
936
+ * When you use `new Promise()` you need to wrap your code inside a try-catch to call `reject` on error.
937
+ * asyncOperation() does this automatically.
938
+ *
939
+ * When you use `new Promise()` you will lose the stack trace when `reject(new Error())` is called.
940
+ * asyncOperation() makes sure the error stack trace is the correct one.
941
+ *
942
+ * @example
943
+ * ```typescript
944
+ * await asyncOperation(async (resolve, reject) => {
945
+ * await doSomething(); //if this fails, reject() will automatically be called
946
+ * stream.on('data', (data) => {
947
+ * resolve(data); //at some point you MUST call resolve(data)
948
+ * });
949
+ * });
950
+ * ```
951
+ *
952
+ * @public
953
+ * @reflection never
954
+ */
955
+ async function asyncOperation(executor) {
956
+ try {
957
+ return await (Promise.Ω = [void 0], new Promise(async (resolve, reject) => {
958
+ try {
959
+ await executor(resolve, reject);
960
+ } catch (e) {
961
+ reject(e);
962
+ }
963
+ }));
964
+ } catch (error) {
965
+ mergeStack(error, createStack());
966
+ throw error;
967
+ }
968
+ }
969
+ /**
970
+ * When an API is called that returns a promise that loses the stack trace on error, you can use fixAsyncOperation().
971
+ *
972
+ * ```typescript
973
+ * cons storage = new BrokenPromiseStorage();
974
+ * const files = await fixAsyncOperation(storage.files('/'));
975
+ * ```
976
+ */
977
+ function fixAsyncOperation(promise) {
978
+ return asyncOperation(__assignType$2(async (resolve, reject) => {
979
+ resolve(await promise);
980
+ }, [
981
+ "resolve",
982
+ "reject",
983
+ "",
984
+ "P\"2!\"2\"\"/#"
985
+ ]));
986
+ }
987
+ fixAsyncOperation.__type = [
988
+ "promise",
989
+ "fixAsyncOperation",
990
+ "P\"`2!\"`/\""
991
+ ];
992
+ /**
993
+ * @public
994
+ */
995
+ function mergePromiseStack(promise, stack) {
996
+ stack = stack || createStack();
997
+ promise.then(() => {}, __assignType$2((error) => {
998
+ mergeStack(error, stack || "");
999
+ }, [
1000
+ "error",
1001
+ "",
1002
+ "P\"2!\"/\""
1003
+ ]));
1004
+ return promise;
1005
+ }
1006
+ mergePromiseStack.__type = [
1007
+ "promise",
1008
+ "stack",
1009
+ "mergePromiseStack",
1010
+ "P\"`2!&2\"8\"`/#"
1011
+ ];
1012
+ /**
1013
+ * @beta
1014
+ */
1015
+ function createStack(removeCallee = true) {
1016
+ if (Error.stackTraceLimit === 10) Error.stackTraceLimit = 100;
1017
+ let stack = (/* @__PURE__ */ new Error()).stack || "";
1018
+ stack = stack.slice(stack.indexOf(" at ") + 6);
1019
+ stack = stack.slice(stack.indexOf(" at ") - 1);
1020
+ if (removeCallee) {
1021
+ stack = stack.slice(stack.indexOf(" at ") + 6);
1022
+ stack = stack.slice(stack.indexOf(" at ") - 1);
1023
+ }
1024
+ return stack;
1025
+ }
1026
+ createStack.__type = [
1027
+ "removeCallee",
1028
+ () => true,
1029
+ "createStack",
1030
+ "P)2!>\"&/#"
1031
+ ];
1032
+ /**
1033
+ * @beta
1034
+ */
1035
+ function mergeStack(error, stack) {
1036
+ if (error instanceof Error && error.stack) error.stack += "\n" + stack;
1037
+ }
1038
+ mergeStack.__type = [
1039
+ () => __ΩError,
1040
+ "error",
1041
+ "stack",
1042
+ "mergeStack",
1043
+ "Pn!2\"&2#\"/$"
1044
+ ];
1045
+ /**
1046
+ * Makes sure the given value is an error. If it's not an error, it creates a new error with the given value as message.
1047
+ */
1048
+ function ensureError(error, classType = Error) {
1049
+ return error instanceof Error || error instanceof AggregateError ? error : new classType(error);
1050
+ }
1051
+ ensureError.__type = [
1052
+ "error",
1053
+ () => __ΩClassType,
1054
+ "classType",
1055
+ () => Error,
1056
+ () => __ΩError,
1057
+ "ensureError",
1058
+ "P\"2!8n\"2#>$n%/&"
1059
+ ];
1060
+ function collectForMicrotask(callback) {
1061
+ let items = [];
1062
+ let taskScheduled = false;
1063
+ return __assignType$2((arg) => {
1064
+ items.push(arg);
1065
+ if (!taskScheduled) {
1066
+ taskScheduled = true;
1067
+ queueMicrotask(() => {
1068
+ taskScheduled = false;
1069
+ callback(items);
1070
+ items.length = 0;
1071
+ });
1072
+ }
1073
+ }, [
1074
+ () => callback,
1075
+ "args",
1076
+ "",
1077
+ "arg",
1078
+ "PPdi!Ph\"!F2\"$/#qe!!!j2$\"/#"
1079
+ ]);
1080
+ }
1081
+ collectForMicrotask.__type = [
1082
+ "args",
1083
+ "",
1084
+ "callback",
1085
+ "arg",
1086
+ "collectForMicrotask",
1087
+ "PP\"F2!$/\"2#P\"2$$/\"/%"
1088
+ ];
1089
+ /**
1090
+ * Returns the current time as seconds.
1091
+ *
1092
+ * @public
1093
+ */
1094
+ function time() {
1095
+ return Date.now() / 1e3;
1096
+ }
1097
+ time.__type = ["time", "P'/!"];
1098
+ /**
1099
+ * @public
1100
+ */
1101
+ function getPathValue(bag, parameterPath, defaultValue) {
1102
+ if (parameterPath === "" || parameterPath === void 0) return bag;
1103
+ if (isSet(bag[parameterPath])) return bag[parameterPath];
1104
+ const result = import_dot_prop.default.get(bag, parameterPath);
1105
+ return isSet(result) ? result : defaultValue;
1106
+ }
1107
+ getPathValue.__type = [
1108
+ "bag",
1109
+ "parameterPath",
1110
+ "defaultValue",
1111
+ "getPathValue",
1112
+ "PP&\"LM2!&2\"\"2#8\"/$"
1113
+ ];
1114
+ /**
1115
+ * @public
1116
+ */
1117
+ function setPathValue(bag, parameterPath, value) {
1118
+ import_dot_prop.default.set(bag, parameterPath, value);
1119
+ }
1120
+ setPathValue.__type = [
1121
+ "bag",
1122
+ "parameterPath",
1123
+ "value",
1124
+ "setPathValue",
1125
+ "P%2!&2\"\"2#\"/$"
1126
+ ];
1127
+ /**
1128
+ * @public
1129
+ */
1130
+ function deletePathValue(bag, parameterPath) {
1131
+ import_dot_prop.default.delete(bag, parameterPath);
1132
+ }
1133
+ deletePathValue.__type = [
1134
+ "bag",
1135
+ "parameterPath",
1136
+ "deletePathValue",
1137
+ "P%2!&2\"\"/#"
1138
+ ];
1139
+ /**
1140
+ * Returns the human-readable byte representation.
1141
+ *
1142
+ * @public
1143
+ */
1144
+ function humanBytes(bytes, si = false) {
1145
+ const thresh = si ? 1e3 : 1024;
1146
+ if (Math.abs(bytes) < thresh) return bytes + " B";
1147
+ const units = si ? [
1148
+ "kB",
1149
+ "MB",
1150
+ "GB",
1151
+ "TB",
1152
+ "PB",
1153
+ "EB",
1154
+ "ZB",
1155
+ "YB"
1156
+ ] : [
1157
+ "KiB",
1158
+ "MiB",
1159
+ "GiB",
1160
+ "TiB",
1161
+ "PiB",
1162
+ "EiB",
1163
+ "ZiB",
1164
+ "YiB"
1165
+ ];
1166
+ let u = -1;
1167
+ do {
1168
+ bytes /= thresh;
1169
+ ++u;
1170
+ } while (Math.abs(bytes) >= thresh && u < units.length - 1);
1171
+ return bytes.toFixed(2) + " " + units[u];
1172
+ }
1173
+ humanBytes.__type = [
1174
+ "bytes",
1175
+ "si",
1176
+ () => false,
1177
+ "humanBytes",
1178
+ "P'2!)2\">#&/$"
1179
+ ];
1180
+ /**
1181
+ * Returns the number of properties on `obj`. This is 20x faster than Object.keys(obj).length.
1182
+ */
1183
+ function getObjectKeysSize(obj) {
1184
+ let size = 0;
1185
+ for (let i in obj) if (obj.hasOwnProperty(i)) size++;
1186
+ return size;
1187
+ }
1188
+ getObjectKeysSize.__type = [
1189
+ "obj",
1190
+ "getObjectKeysSize",
1191
+ "P%2!'/\""
1192
+ ];
1193
+ function isConstructable(fn) {
1194
+ try {
1195
+ new new Proxy(fn, { construct: () => ({}) })();
1196
+ return true;
1197
+ } catch (err) {
1198
+ return false;
1199
+ }
1200
+ }
1201
+ isConstructable.__type = [
1202
+ "fn",
1203
+ "isConstructable",
1204
+ "P\"2!)/\""
1205
+ ];
1206
+ function isPrototypeOfBase(prototype, base) {
1207
+ if (!prototype) return false;
1208
+ if (prototype === base) return true;
1209
+ let currentProto = Object.getPrototypeOf(prototype);
1210
+ while (currentProto && currentProto !== Object.prototype) {
1211
+ if (currentProto === base) return true;
1212
+ currentProto = Object.getPrototypeOf(currentProto);
1213
+ }
1214
+ return false;
1215
+ }
1216
+ isPrototypeOfBase.__type = [
1217
+ () => __ΩAbstractClassType,
1218
+ "prototype",
1219
+ () => __ΩClassType,
1220
+ "base",
1221
+ "isPrototypeOfBase",
1222
+ "PPn!-J2\"n#2$)/%"
1223
+ ];
1224
+ function getParentClass(classType) {
1225
+ const parent = Object.getPrototypeOf(classType);
1226
+ if (parent === Object.prototype || Object.getPrototypeOf(parent) === Object.prototype) return;
1227
+ return parent;
1228
+ }
1229
+ getParentClass.__type = [
1230
+ () => __ΩClassType,
1231
+ "classType",
1232
+ () => __ΩClassType,
1233
+ "getParentClass",
1234
+ "Pn!2\"Pn#-J/$"
1235
+ ];
1236
+ function getInheritanceChain(classType) {
1237
+ const chain = [classType];
1238
+ let current = classType;
1239
+ while (current = getParentClass(current)) chain.push(current);
1240
+ return chain;
1241
+ }
1242
+ getInheritanceChain.__type = [
1243
+ () => __ΩClassType,
1244
+ "classType",
1245
+ () => __ΩClassType,
1246
+ "getInheritanceChain",
1247
+ "Pn!2\"n#F/$"
1248
+ ];
1249
+ function inDebugMode() {
1250
+ return typeof v8debug === "object" || typeof process !== "undefined" && /--debug|--inspect/.test(process.execArgv.join(" "));
1251
+ }
1252
+ inDebugMode.__type = ["inDebugMode", "P\"/!"];
1253
+ /**
1254
+ * Create a new class with the given name.
1255
+ * This is currently the only know way to make it workable in browsers too.
1256
+ */
1257
+ function createDynamicClass(name, base) {
1258
+ if (base) {
1259
+ let baseName = getClassName(base);
1260
+ if (baseName === name) baseName += "Base";
1261
+ return new Function(baseName, `return class ${name} extends ${baseName} {}`)(base);
1262
+ }
1263
+ return new Function(`return class ${name} {}`)();
1264
+ }
1265
+ createDynamicClass.__type = [
1266
+ "name",
1267
+ () => __ΩClassType,
1268
+ "base",
1269
+ () => __ΩClassType,
1270
+ "createDynamicClass",
1271
+ "P&2!n\"2#8n$/%"
1272
+ ];
1273
+ function isIterable(value) {
1274
+ return isArray(value) || value instanceof Set || value instanceof Map;
1275
+ }
1276
+ isIterable.__type = [
1277
+ "value",
1278
+ "isIterable",
1279
+ "P\"2!)/\""
1280
+ ];
1281
+ function iterableSize(value) {
1282
+ return isArray(value) ? value.length : value.size || 0;
1283
+ }
1284
+ iterableSize.__type = [
1285
+ "value",
1286
+ "iterableSize",
1287
+ "PP#F#D##EJ2!'/\""
1288
+ ];
1289
+ /**
1290
+ * Returns __filename, works in both cjs and esm.
1291
+ */
1292
+ function getCurrentFileName() {
1293
+ const initiator = (/* @__PURE__ */ new Error()).stack.split("\n").slice(2, 3)[0];
1294
+ let path = /(?<path>[^(\s]+):[0-9]+:[0-9]+/.exec(initiator).groups.path;
1295
+ if (path.indexOf("file") >= 0) path = new URL(path).pathname;
1296
+ if (path[0] === "/" && process.platform === "win32") path = path.slice(1);
1297
+ return path;
1298
+ }
1299
+ getCurrentFileName.__type = ["getCurrentFileName", "P&/!"];
1300
+ /**
1301
+ * Escape special characters in a regex string, so it can be used as a literal string.
1302
+ */
1303
+ function escapeRegExp(string) {
1304
+ return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1305
+ }
1306
+ escapeRegExp.__type = [
1307
+ "string",
1308
+ "escapeRegExp",
1309
+ "P&2!&/\""
1310
+ ];
1311
+ function hasProperty(object, property) {
1312
+ return Object.prototype.hasOwnProperty.call(object, property);
1313
+ }
1314
+ hasProperty.__type = [
1315
+ "object",
1316
+ "property",
1317
+ "hasProperty",
1318
+ "P\"2!\"2\")/#"
1319
+ ];
1320
+ /**
1321
+ * Returns an iterator of numbers from start (inclusive) to stop (exclusive) by step.
1322
+ */
1323
+ function* range(startOrLength, stop = 0, step = 1) {
1324
+ let i = startOrLength;
1325
+ let end = stop;
1326
+ if (stop === 0) {
1327
+ i = 0;
1328
+ end = startOrLength;
1329
+ }
1330
+ for (; i < end; i += step) yield i;
1331
+ }
1332
+ range.__type = [
1333
+ "startOrLength",
1334
+ "stop",
1335
+ () => 0,
1336
+ "step",
1337
+ () => 1,
1338
+ () => __ΩIterableIterator,
1339
+ "range",
1340
+ "P'2!'2\">#'2$>%'o&\"/'"
1341
+ ];
1342
+ /**
1343
+ * Returns an array of numbers from start (inclusive) to stop (exclusive) by step.
1344
+ *
1345
+ * Works the same as python's range function.
1346
+ */
1347
+ function rangeArray(startOrLength, stop = 0, step = 1) {
1348
+ return [...range(startOrLength, stop, step)];
1349
+ }
1350
+ rangeArray.__type = [
1351
+ "startOrLength",
1352
+ "stop",
1353
+ () => 0,
1354
+ "step",
1355
+ () => 1,
1356
+ "rangeArray",
1357
+ "P'2!'2\">#'2$>%'F/&"
1358
+ ];
1359
+ /**
1360
+ * Returns a combined array of the given arrays.
1361
+ *
1362
+ * Works the same as python's zip function.
1363
+ */
1364
+ function zip(...args) {
1365
+ const minLength = Math.min(...args.map(__assignType$2((arr) => arr.length, [
1366
+ "arr",
1367
+ "",
1368
+ "P\"2!\"/\""
1369
+ ])));
1370
+ return Array.from({ length: minLength }).map(__assignType$2((_, i) => args.map(__assignType$2((arr) => arr[i], [
1371
+ "arr",
1372
+ "",
1373
+ "P\"2!\"/\""
1374
+ ])), [
1375
+ "_",
1376
+ "i",
1377
+ "",
1378
+ "P\"2!\"2\"\"/#"
1379
+ ]));
1380
+ }
1381
+ zip.__type = [
1382
+ "args",
1383
+ "zip",
1384
+ "l:e\"!R!RPd\"e#!fh!!Fqk#'QRP\"@2!Pd\"gN)!F/\""
1385
+ ];
1386
+ /**
1387
+ * Forwards the runtime type arguments from function x to function y.
1388
+ * This is necessary when a generic function is overridden and forwarded to something else.
1389
+ *
1390
+ * ```typescript
1391
+ * let generic = <T>(type?: ReceiveType<T>) => undefined;
1392
+ *
1393
+ * let forwarded<T> = () => {
1394
+ * forwardTypeArguments(forwarded, generic); //all type arguments are forwarded to generic()
1395
+ * generic(); //call as usual
1396
+ * }
1397
+ *
1398
+ * forwarded<any>(); //generic receives any in runtime.
1399
+ * ```
1400
+ *
1401
+ * Note that generic.bind(this) will not work, as bind() creates a new function and forwarded type arguments can not
1402
+ * reach the original function anymore.
1403
+ *
1404
+ * ```typescript
1405
+ * let forwarded<T> = () => {
1406
+ * const bound = generic.bind(this);
1407
+ * forwardTypeArguments(forwarded, bound); //can not be forwarded anymore
1408
+ * bound(); //fails
1409
+ * }
1410
+ * ```
1411
+ *
1412
+ * This is a limitation of JavaScript. In this case you have to manually forward type arguments.
1413
+ *
1414
+ * ```typescript
1415
+ * let forwarded<T> = (type?: ReceiveType<T>) => {
1416
+ * const bound = generic.bind(this);
1417
+ * bound(type);
1418
+ * }
1419
+ * ```
1420
+ */
1421
+ function forwardTypeArguments(x, y) {
1422
+ y.Ω = x.Ω;
1423
+ x.Ω = void 0;
1424
+ }
1425
+ forwardTypeArguments.__type = [
1426
+ "x",
1427
+ "y",
1428
+ "forwardTypeArguments",
1429
+ "P\"2!\"2\"$/#"
1430
+ ];
1431
+ function formatError(error, withStack = false) {
1432
+ if (error && error.name === "AggregateError" && "errors" in error) return `${withStack && error.stack || `AggregateError: ${error.message}`}\nErrors:\n${error.errors.map(__assignType$2((v) => formatError(v), [
1433
+ "v",
1434
+ "",
1435
+ "P\"2!\"/\""
1436
+ ])).join("\n")}`;
1437
+ if (error instanceof Error) {
1438
+ let current = error.cause;
1439
+ let errors = [withStack && error.stack || error.message || "Error"];
1440
+ while (current) {
1441
+ errors.push(`cause by ${formatError(current)}`);
1442
+ current = current.cause;
1443
+ }
1444
+ return errors.join("\n");
1445
+ }
1446
+ if (withStack && error.stack) return error.stack;
1447
+ return String(error);
1448
+ }
1449
+ formatError.__type = [
1450
+ "error",
1451
+ "withStack",
1452
+ () => false,
1453
+ "formatError",
1454
+ "P\"2!)2\">#&/$"
1455
+ ];
1456
+ /**
1457
+ * Asserts that the given object is an instance of the given class.
1458
+ */
1459
+ function assertInstanceOf(object, constructor) {
1460
+ if (!(object instanceof constructor)) throw new Error(`Object ${getClassName(object)} is not an instance of the expected class ${getClassName(constructor)}`);
1461
+ }
1462
+ assertInstanceOf.__type = [
1463
+ "object",
1464
+ "args",
1465
+ "new",
1466
+ "constructor",
1467
+ "assertInstanceOf",
1468
+ "P\"2!PP\"@2\"\"1#M2$!/%"
1469
+ ];
1470
+ /**
1471
+ * Asserts that the given value is defined (not null and not undefined).
1472
+ */
1473
+ function assertDefined(value) {
1474
+ if (value === null || value === void 0) throw new Error(`Value is not defined`);
1475
+ }
1476
+ assertDefined.__type = [
1477
+ "value",
1478
+ "assertDefined",
1479
+ "P\"2!!/\""
1480
+ ];
1481
+
1482
+ //#endregion
1483
+ //#region ../../node_modules/.pnpm/to-fast-properties@3.0.1/node_modules/to-fast-properties/index.js
1484
+ var require_to_fast_properties = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1485
+ let fastProto = null;
1486
+ function FastObject(o) {
1487
+ if (fastProto !== null && typeof fastProto.property) {
1488
+ const result = fastProto;
1489
+ fastProto = FastObject.prototype = null;
1490
+ return result;
1491
+ }
1492
+ fastProto = FastObject.prototype = o == null ? Object.create(null) : o;
1493
+ return new FastObject();
1494
+ }
1495
+ const inlineCacheCutoff = 10;
1496
+ for (let i = 0; i <= inlineCacheCutoff; i++) FastObject();
1497
+ module.exports = function toFastproperties(o) {
1498
+ return FastObject(o);
1499
+ };
1500
+ }));
1501
+
1502
+ //#endregion
1503
+ //#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/perf.js
1504
+ var import_to_fast_properties = /* @__PURE__ */ __toESM(require_to_fast_properties(), 1);
1505
+ function toFastProperties(obj) {
1506
+ (0, import_to_fast_properties.default)(obj);
1507
+ }
1508
+ toFastProperties.__type = [
1509
+ "obj",
1510
+ "toFastProperties",
1511
+ "P\"2!\"/\""
1512
+ ];
1513
+
1514
+ //#endregion
1515
+ //#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/array.js
1516
+ /**
1517
+ * @public
1518
+ */
1519
+ function arrayHasItem(array, item) {
1520
+ return -1 !== array.indexOf(item);
1521
+ }
1522
+ arrayHasItem.__type = [
1523
+ "array",
1524
+ "item",
1525
+ "arrayHasItem",
1526
+ "P\"F2!\"2\")/#"
1527
+ ];
1528
+ /**
1529
+ * Clears the array so its empty. Returns the amount of removed items.
1530
+ *
1531
+ * @public
1532
+ */
1533
+ function arrayClear(array) {
1534
+ const found = array.length;
1535
+ array.length = 0;
1536
+ return found;
1537
+ }
1538
+ arrayClear.__type = [
1539
+ "array",
1540
+ "arrayClear",
1541
+ "P\"F2!'/\""
1542
+ ];
1543
+ /**
1544
+ * Removes on particular item by reference of an array.
1545
+ *
1546
+ * @public
1547
+ */
1548
+ function arrayRemoveItem(array, item) {
1549
+ const index = array.indexOf(item);
1550
+ if (-1 !== index) {
1551
+ array.splice(index, 1);
1552
+ return true;
1553
+ }
1554
+ return false;
1555
+ }
1556
+ arrayRemoveItem.__type = [
1557
+ "array",
1558
+ "item",
1559
+ "arrayRemoveItem",
1560
+ "P\"F2!\"2\")/#"
1561
+ ];
1562
+ /**
1563
+ * Moves a particular item in an array up or down (move>0=down, move<0=up).
1564
+ * Changes the array itself.
1565
+ *
1566
+ * ```typescript
1567
+ * const array = ['a', 'b', 'c'];
1568
+ *
1569
+ * arrayMoveItem(array, 'a', +1); //['b', 'a', 'c']
1570
+ * arrayMoveItem(array, 'a', -1); //['a', 'b', 'c']
1571
+ *
1572
+ * arrayMoveItem(array, 'b', -1); //['b', 'a', 'c']
1573
+ * arrayMoveItem(array, 'b', +1); //['a', 'c', 'b']
1574
+ *
1575
+ * arrayMoveItem(array, 'c', -1); //['b', 'c', 'b']
1576
+ * arrayMoveItem(array, 'c', +1); //['a', 'b', 'c']
1577
+ *
1578
+ * ```
1579
+ *
1580
+ * @public
1581
+ */
1582
+ function arrayMoveItem(array, item, move) {
1583
+ if (move === 0) return array;
1584
+ const index = array.indexOf(item);
1585
+ if (-1 !== index) {
1586
+ const newIndex = index + move;
1587
+ array.splice(index, 1);
1588
+ if (newIndex <= 0) array.unshift(item);
1589
+ else if (newIndex >= array.length) array.push(item);
1590
+ else array.splice(newIndex, 0, item);
1591
+ }
1592
+ return array;
1593
+ }
1594
+ arrayMoveItem.__type = [
1595
+ "array",
1596
+ "item",
1597
+ "move",
1598
+ "arrayMoveItem",
1599
+ "P\"2!\"2\"'2#\"/$"
1600
+ ];
1601
+
1602
+ //#endregion
1603
+ //#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/indent.js
1604
+ function __assignType$1(fn, args) {
1605
+ fn.__type = args;
1606
+ return fn;
1607
+ }
1608
+ /**
1609
+ * @reflection never
1610
+ */
1611
+ const indent$1 = __assignType$1(function(n) {
1612
+ function t(n, t) {
1613
+ var e, r = [];
1614
+ for (e = 0; e < n.length; e++) r.push(t(n[e], e, n));
1615
+ return r;
1616
+ }
1617
+ t.__type = [
1618
+ "n",
1619
+ "t",
1620
+ "P\"2!\"2\"\"/\""
1621
+ ];
1622
+ function e(n, t) {
1623
+ var e, r;
1624
+ for (e = 0; e < n.length; e++) if (r = t(n[e], e, n)) return r;
1625
+ return !1;
1626
+ }
1627
+ e.__type = [
1628
+ "n",
1629
+ "t",
1630
+ "e",
1631
+ "P\"2!\"2\"\"/#"
1632
+ ];
1633
+ function r(n, t, e) {
1634
+ if (d[n]) return d[n];
1635
+ var r = [];
1636
+ d[n] = r, e = e || "";
1637
+ for (var a = 0; a < t.length; a++) t[a].a.indexOf(n.toLowerCase()) !== -1 && e.indexOf(t[a].b) === -1 && r.push(t[a]);
1638
+ return r;
1639
+ }
1640
+ r.__type = [
1641
+ "n",
1642
+ "t",
1643
+ "e",
1644
+ "r",
1645
+ "P\"2!\"2\"\"2#\"/$"
1646
+ ];
1647
+ function a(n, a, o) {
1648
+ function h(n) {
1649
+ P = n.cursor;
1650
+ var t = n.rule, e = E + 1 + (t.c || 0);
1651
+ n.line = e, Z.push(n), t.d && z[e]++, t.e && (S = r(t.e, g)), t.f && F.push(null), t.callback && t.callback(n, z, O);
1652
+ }
1653
+ h.__type = [
1654
+ "n",
1655
+ "h",
1656
+ "P\"2!\"/\""
1657
+ ];
1658
+ function d() {
1659
+ var n = Z.pop(), t = n.line, e = n.rule;
1660
+ if (e.d) {
1661
+ var a = ("function" == typeof e.g ? e.g(b) : e.g) || 0 !== b.matchIndex ? 1 : 0;
1662
+ O[E + a] && O[E + a].push(t);
1663
+ }
1664
+ e.e && (S = null), e.f && F.pop(), F[F.length - 1] = n;
1665
+ }
1666
+ d.__type = ["d", "P\"/!"];
1667
+ function m(n, r, a) {
1668
+ n = n.substring(a, n.length);
1669
+ for (var l, s, i, c = null, u = n.length, o = F[F.length - 1], h = o ? o.rule.b : "", d = t(Z, __assignType$1(function(n) {
1670
+ return n.rule.b;
1671
+ }, [
1672
+ "n",
1673
+ "",
1674
+ "P\"2!\"/\""
1675
+ ])).join("\n"), m = 0; m < r.length; m++) i = r[m], i.h && e(i.h, __assignType$1(function(n) {
1676
+ return d.indexOf(n) != -1;
1677
+ }, [
1678
+ "n",
1679
+ "",
1680
+ "P\"2!\"/\""
1681
+ ])) || (!i.i || h && i.i.indexOf(h) !== -1) && (s = f(n, i.j, i), s.matchIndex != -1 && s.matchIndex < u && (!i.k || 0 === a) && (u = s.matchIndex, l = s, c = i));
1682
+ return {
1683
+ rule: c,
1684
+ relativeIndex: c ? u : -1,
1685
+ matchIndex: c ? u + a : -1,
1686
+ cursor: c ? a + l.cursor : -1,
1687
+ state: l ? l.state : {},
1688
+ lastMatch: o
1689
+ };
1690
+ }
1691
+ m.__type = [
1692
+ "n",
1693
+ "r",
1694
+ "a",
1695
+ "m",
1696
+ "P\"2!\"2\"\"2#\"/$"
1697
+ ];
1698
+ function j(n, t, e, r) {
1699
+ n = n.substr(e, n.length);
1700
+ var a = t.rule, l = f(n, a.l, a, t.state, r), s = a.m ? l.cursor : l.matchIndex;
1701
+ return {
1702
+ endPatternIndex: l.endPatternIndex,
1703
+ matchIndex: l.matchIndex === -1 ? -1 : l.matchIndex + e,
1704
+ cursor: s === -1 ? -1 : s + e,
1705
+ state: l.state
1706
+ };
1707
+ }
1708
+ j.__type = [
1709
+ "n",
1710
+ "t",
1711
+ "e",
1712
+ "r",
1713
+ "j",
1714
+ "P\"2!\"2\"\"2#\"2$\"/%"
1715
+ ];
1716
+ n = n || "";
1717
+ var b, x, v, p, I, y = o && null != o.tabString ? o.tabString : " ", k = n.split(/[\r]?\n/gi), w = k.length, A = s(w), z = s(w), O = l(w), Z = [], F = [null], E = 0, P = 0, S = null;
1718
+ for (o && (o.debug = { buffers: {
1719
+ ignore: A,
1720
+ indent: z,
1721
+ dedent: O,
1722
+ active: Z
1723
+ } }); E < w;) {
1724
+ if (v = k[E].trim(), p = u(v) + "\r\n", I = Z[Z.length - 1], x = m(p, S || a, P), Z.length) {
1725
+ if (b = j(p, I, P, x), b.matchIndex === -1) {
1726
+ if (I.rule.n) {
1727
+ A[E] = 1, E++, P = 0;
1728
+ continue;
1729
+ }
1730
+ } else if (I.rule.n || x.matchIndex === -1 || b.matchIndex <= x.matchIndex) {
1731
+ d(), P = b.cursor;
1732
+ continue;
1733
+ }
1734
+ }
1735
+ x.matchIndex !== -1 ? h(x) : (E++, P = 0);
1736
+ }
1737
+ var $, q, R, T, M, C, H = 0, L = i(z), _ = s(w), B = [];
1738
+ for (M = 0; M < w; M++) {
1739
+ for (q = O[M], T = 0, C = 0; C < q.length; C++) R = q[C], R < 0 ? -R !== M && (_[-R]++, T += 1) : L[R] > 0 && (L[R]--, T += R !== M);
1740
+ $ = L[M], _[M] = $ > T ? 1 : $ < T ? $ - T : 0, L[M] = $ > 0 ? 1 : 0;
1741
+ }
1742
+ for (M = 0; M < w; M++) 1 === A[M - 1] && 1 === A[M] ? B.push(k[M]) : (H += _[M] || 0, B.push((H > 0 ? c(y, H) : "") + k[M].trim()));
1743
+ return B.join("\r\n");
1744
+ }
1745
+ a.__type = [
1746
+ "n",
1747
+ "a",
1748
+ "o",
1749
+ "P\"2!\"2\"\"2#\"/\""
1750
+ ];
1751
+ function l(n) {
1752
+ for (var t = new Array(n), e = 0; e < n; e++) t[e] = [];
1753
+ return t;
1754
+ }
1755
+ l.__type = [
1756
+ "n",
1757
+ "l",
1758
+ "P\"2!\"/\""
1759
+ ];
1760
+ function s(t) {
1761
+ if (n.Int16Array) return new Int16Array(t);
1762
+ for (var e = new Array(t), r = 0; r < t; r++) e[r] = 0;
1763
+ return e;
1764
+ }
1765
+ s.__type = [
1766
+ "t",
1767
+ "s",
1768
+ "P\"2!\"/\""
1769
+ ];
1770
+ function i(n) {
1771
+ for (var t = s(n.length), e = 0; e < n.length; e++) t[e] = n[e];
1772
+ return t;
1773
+ }
1774
+ i.__type = [
1775
+ "n",
1776
+ "i",
1777
+ "P\"2!\"/\""
1778
+ ];
1779
+ function c(n, t) {
1780
+ return new Array(t + 1).join(n);
1781
+ }
1782
+ c.__type = [
1783
+ "n",
1784
+ "t",
1785
+ "c",
1786
+ "P\"2!\"2\"\"/#"
1787
+ ];
1788
+ function u(n) {
1789
+ return n.replace(/\\(u[0-9A-Za-z]{4}|u\{[0-9A-Za-z]{1,6}]\}|x[0-9A-Za-z]{2}|.)/g, "0");
1790
+ }
1791
+ u.__type = [
1792
+ "n",
1793
+ "u",
1794
+ "P\"2!\"/\""
1795
+ ];
1796
+ function o(n, t, e) {
1797
+ var r = n.lastMatch;
1798
+ r && "=" === r.rule.b && e[n.line].push(-r.line);
1799
+ }
1800
+ o.__type = [
1801
+ "n",
1802
+ "t",
1803
+ "e",
1804
+ "o",
1805
+ "P\"2!\"2\"\"2#\"/$"
1806
+ ];
1807
+ function h(n, t, e, r) {
1808
+ var a;
1809
+ if (e.newline) {
1810
+ if (a = n.search(/[;,=]?\r*\n/), a !== -1) return {
1811
+ matchIndex: a,
1812
+ length: 1
1813
+ };
1814
+ } else a = n.search(/[^\s\r\n\{\(\[]/), e.newline = a !== -1 && (a <= r.relativeIndex || r.relativeIndex === -1);
1815
+ return null;
1816
+ }
1817
+ h.__type = [
1818
+ "n",
1819
+ "t",
1820
+ "e",
1821
+ "r",
1822
+ "h",
1823
+ "P\"2!\"2\"\"2#\"2$\"/%"
1824
+ ];
1825
+ function f(n, t, e, r, a) {
1826
+ r = r || {};
1827
+ for (var l, s, i = -1, c = 0, u = 0; u < t.length; u++) if (s = t[u], "function" == typeof s) {
1828
+ if (l = s(n, e, r, a)) {
1829
+ i = l.matchIndex, c = l.length;
1830
+ break;
1831
+ }
1832
+ } else if (l = n.match(s)) {
1833
+ i = n.search(s), c = l[0].length;
1834
+ break;
1835
+ }
1836
+ return {
1837
+ endPatternIndex: u,
1838
+ matchIndex: i,
1839
+ cursor: i + c,
1840
+ state: r
1841
+ };
1842
+ }
1843
+ f.__type = [
1844
+ "n",
1845
+ "t",
1846
+ "e",
1847
+ "r",
1848
+ "a",
1849
+ "f",
1850
+ "P\"2!\"2\"\"2#\"2$\"2%\"/&"
1851
+ ];
1852
+ var d = {};
1853
+ String.prototype.trim || (String.prototype.trim = function() {
1854
+ return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1855
+ });
1856
+ var m = /\r*\n/, j = [
1857
+ "tag",
1858
+ "void-tags",
1859
+ "html-tag"
1860
+ ], g = [
1861
+ {
1862
+ a: "js html",
1863
+ b: "comment",
1864
+ j: [/\<\!\-\-/],
1865
+ l: [/\-\-\>/],
1866
+ n: !0,
1867
+ m: !0
1868
+ },
1869
+ {
1870
+ a: "html",
1871
+ b: "doctype",
1872
+ j: [/\<\!doctype html>/i],
1873
+ l: [m],
1874
+ n: !0,
1875
+ m: !0
1876
+ },
1877
+ {
1878
+ a: "js html",
1879
+ b: "void-tags",
1880
+ j: [/\<(area|base|br|col|command|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)/i],
1881
+ l: [/>/],
1882
+ d: !0,
1883
+ m: !0
1884
+ },
1885
+ {
1886
+ a: "html",
1887
+ b: "mode switch js",
1888
+ j: [__assignType$1(function(n) {
1889
+ var t = /<script[\s>].*/i, e = /<\/script>/i, r = t.exec(n), a = e.exec(n);
1890
+ return r && (!a || a.index < r.index) ? {
1891
+ matchIndex: r.index,
1892
+ length: r[0].length
1893
+ } : null;
1894
+ }, [
1895
+ "n",
1896
+ "",
1897
+ "P\"2!\"/\""
1898
+ ])],
1899
+ l: [/<\/script>/i],
1900
+ e: "js",
1901
+ m: !0,
1902
+ d: !0,
1903
+ f: !0
1904
+ },
1905
+ {
1906
+ a: "html",
1907
+ b: "mode switch css",
1908
+ j: [__assignType$1(function(n) {
1909
+ var t = /<style[\s>].*/i, e = /<\/style>/i, r = t.exec(n), a = e.exec(n);
1910
+ return r && (!a || a.index < r.index) ? {
1911
+ matchIndex: r.index,
1912
+ length: r[0].length
1913
+ } : null;
1914
+ }, [
1915
+ "n",
1916
+ "",
1917
+ "P\"2!\"/\""
1918
+ ])],
1919
+ l: [/<\/style>/i],
1920
+ e: "css",
1921
+ m: !0,
1922
+ d: !0,
1923
+ f: !0
1924
+ },
1925
+ {
1926
+ a: "html",
1927
+ b: "html-tag",
1928
+ j: [/<html[^A-Za-z0-9]/i],
1929
+ l: [/<\/html>/i],
1930
+ m: !0
1931
+ },
1932
+ {
1933
+ a: "js html",
1934
+ b: "tag",
1935
+ j: [__assignType$1(function(n, t, e) {
1936
+ var a = n.match(/<([A-Za-z][A-Za-z0-9\-\.]*)/);
1937
+ return a ? (e.openingTag = a[1], {
1938
+ matchIndex: a.index,
1939
+ length: a[0].length
1940
+ }) : null;
1941
+ }, [
1942
+ "n",
1943
+ "t",
1944
+ "e",
1945
+ "",
1946
+ "P\"2!\"2\"\"2#\"/$"
1947
+ ])],
1948
+ l: [__assignType$1(function(n, t, e) {
1949
+ var r = new RegExp("</" + e.openingTag + ">|\\s/>", "i"), a = n.match(r);
1950
+ return a ? {
1951
+ matchIndex: a.index,
1952
+ length: a[0].length
1953
+ } : null;
1954
+ }, [
1955
+ "n",
1956
+ "t",
1957
+ "e",
1958
+ "",
1959
+ "P\"2!\"2\"\"2#\"/$"
1960
+ ])],
1961
+ d: !0,
1962
+ m: !0
1963
+ },
1964
+ {
1965
+ a: "js",
1966
+ b: "line-comment",
1967
+ j: [/\/\//],
1968
+ l: [m],
1969
+ n: !0
1970
+ },
1971
+ {
1972
+ a: "js css",
1973
+ b: "block-comment",
1974
+ j: [/\/\*/],
1975
+ l: [/\*\//],
1976
+ n: !0,
1977
+ m: !0
1978
+ },
1979
+ {
1980
+ a: "js",
1981
+ b: "regex",
1982
+ j: [__assignType$1(function(n, t) {
1983
+ var r = n.search(/[(,=:[!&|?{};][\s]*\/[^\/]|^[\s]*\/[^\/]/);
1984
+ if (r != -1) {
1985
+ r = n.indexOf("/", r);
1986
+ var a = n.substring(r + 1), l = f(a, t.l, t);
1987
+ if (l.matchIndex != -1) {
1988
+ a = a.substring(0, l.matchIndex);
1989
+ try {
1990
+ return new RegExp(a), {
1991
+ matchIndex: r,
1992
+ length: 1
1993
+ };
1994
+ } catch (s) {
1995
+ return null;
1996
+ }
1997
+ }
1998
+ }
1999
+ return null;
2000
+ }, [
2001
+ "n",
2002
+ "t",
2003
+ "",
2004
+ "P\"2!\"2\"\"/#"
2005
+ ])],
2006
+ l: [__assignType$1(function(n) {
2007
+ for (var t = 0, e = n.indexOf("/"); e != -1;) try {
2008
+ new RegExp(n.substring(0, e));
2009
+ break;
2010
+ } catch (r) {
2011
+ e = n.indexOf("/", t), t = e + 1;
2012
+ }
2013
+ return e === -1 ? null : {
2014
+ matchIndex: e,
2015
+ length: 1
2016
+ };
2017
+ }, [
2018
+ "n",
2019
+ "",
2020
+ "P\"2!\"/\""
2021
+ ])],
2022
+ n: !0,
2023
+ m: !0
2024
+ },
2025
+ {
2026
+ a: "js html",
2027
+ b: "quotes",
2028
+ h: j,
2029
+ j: [/"/],
2030
+ l: [/"/, m],
2031
+ n: !0,
2032
+ m: !0
2033
+ },
2034
+ {
2035
+ a: "js html",
2036
+ b: "quotes",
2037
+ h: j,
2038
+ j: [/'/],
2039
+ l: [/'/, m],
2040
+ n: !0,
2041
+ m: !0
2042
+ },
2043
+ {
2044
+ a: "js css",
2045
+ b: "string",
2046
+ j: [/(''|""|``)/],
2047
+ l: [/./, m]
2048
+ },
2049
+ {
2050
+ a: "js css",
2051
+ b: "string",
2052
+ j: [/\"(?=[^"])/],
2053
+ l: [/[^\\]\"/, m],
2054
+ n: !0,
2055
+ m: !0
2056
+ },
2057
+ {
2058
+ a: "js css",
2059
+ b: "string",
2060
+ j: [/\'(?=[^'])/],
2061
+ l: [/[^\\]\'/, m],
2062
+ n: !0,
2063
+ m: !0
2064
+ },
2065
+ {
2066
+ a: "js css",
2067
+ b: "string",
2068
+ j: [/\`(?=[^`])/],
2069
+ l: [/[^\\]\`/],
2070
+ n: !0,
2071
+ m: !0
2072
+ },
2073
+ {
2074
+ a: "js",
2075
+ b: "if",
2076
+ j: [/^if\s*(?=\()/, /[\s]+if\s*(?=\()/],
2077
+ l: [
2078
+ /else[\s]+/,
2079
+ h,
2080
+ /[{;]/
2081
+ ],
2082
+ d: !0
2083
+ },
2084
+ {
2085
+ a: "js",
2086
+ b: "for|while",
2087
+ j: [/^(for|while)\s*(?=\()/],
2088
+ l: [h, /[{;]/],
2089
+ d: !0
2090
+ },
2091
+ {
2092
+ a: "js",
2093
+ b: "else",
2094
+ j: [/else[\s]+/],
2095
+ l: [
2096
+ /if[^\w$]/,
2097
+ h,
2098
+ /[{;]/
2099
+ ],
2100
+ d: !0
2101
+ },
2102
+ {
2103
+ a: "js css",
2104
+ b: "bracket",
2105
+ j: [/\(\s*(var|let|const)?\s*/],
2106
+ l: [/\)/],
2107
+ d: !0,
2108
+ m: !0,
2109
+ f: !0
2110
+ },
2111
+ {
2112
+ a: "js",
2113
+ b: "dot-chain",
2114
+ j: [/^\.[A-Za-z$_]/],
2115
+ l: [/[\.;]/, m],
2116
+ d: !0,
2117
+ k: !0,
2118
+ c: -1
2119
+ },
2120
+ {
2121
+ a: "js",
2122
+ b: "dot-chain",
2123
+ j: [/\.\s*\r*\n/],
2124
+ l: [/[\.;})\]]/, /[^\s]\s*\r*\n/],
2125
+ d: !0
2126
+ },
2127
+ {
2128
+ a: "js css",
2129
+ b: "array",
2130
+ j: [/\[/],
2131
+ l: [/\]/],
2132
+ d: !0,
2133
+ m: !0,
2134
+ f: !0
2135
+ },
2136
+ {
2137
+ a: "js css",
2138
+ b: "block",
2139
+ j: [/\{/],
2140
+ l: [/\}/],
2141
+ d: !0,
2142
+ m: !0,
2143
+ f: !0
2144
+ },
2145
+ {
2146
+ a: "js",
2147
+ b: "var/let/const",
2148
+ j: [/(var|let|const)[\s]*\r*\n/],
2149
+ l: [h],
2150
+ d: !0,
2151
+ g: !0
2152
+ },
2153
+ {
2154
+ a: "js",
2155
+ b: "var/let/const",
2156
+ j: [/(var|let|const)\s+(?=[\w$])/],
2157
+ l: [/[,;=]/, h],
2158
+ d: !0
2159
+ },
2160
+ {
2161
+ a: "js",
2162
+ b: "var/let/const",
2163
+ i: ["var/let/const", "="],
2164
+ j: [/,[\s]*\r*\n/],
2165
+ l: [/[,;]/, h],
2166
+ d: !0,
2167
+ callback: o
2168
+ },
2169
+ {
2170
+ a: "js",
2171
+ b: "var/let/const",
2172
+ i: ["var/let/const", "="],
2173
+ j: [/^,/],
2174
+ l: [/[,;]/, h],
2175
+ k: !0,
2176
+ d: !0,
2177
+ c: -1,
2178
+ callback: o
2179
+ },
2180
+ {
2181
+ a: "js",
2182
+ b: "equality",
2183
+ j: [/[=<>!]=(=)?/],
2184
+ l: [/./]
2185
+ },
2186
+ {
2187
+ a: "js",
2188
+ b: "=",
2189
+ h: j,
2190
+ j: [/=/],
2191
+ l: [/[,;\)\]}]/, m]
2192
+ },
2193
+ {
2194
+ a: "js",
2195
+ b: "?:",
2196
+ j: [/\?/],
2197
+ l: [/[:;]/],
2198
+ g: !0,
2199
+ d: !0
2200
+ },
2201
+ {
2202
+ a: "js",
2203
+ b: "case",
2204
+ j: [/^(case|default)[\s:]/],
2205
+ l: [
2206
+ /break[\s;\r\n]/,
2207
+ /^return[\s;\r\n]/,
2208
+ /^case[\s]+/,
2209
+ /^default[\s:]/,
2210
+ /}/
2211
+ ],
2212
+ g: __assignType$1(function(n) {
2213
+ return n.endPatternIndex <= 1;
2214
+ }, [
2215
+ "n",
2216
+ "",
2217
+ "P\"2!\"/\""
2218
+ ]),
2219
+ d: !0,
2220
+ f: !0
2221
+ },
2222
+ {
2223
+ a: "js",
2224
+ b: "semicolon",
2225
+ j: [/;/],
2226
+ l: [/./]
2227
+ }
2228
+ ];
2229
+ return {
2230
+ css: __assignType$1(function(n, t) {
2231
+ return a(n, r("css", g), t);
2232
+ }, [
2233
+ "n",
2234
+ "t",
2235
+ "",
2236
+ "P\"2!\"2\"\"/#"
2237
+ ]),
2238
+ js: __assignType$1(function(n, t) {
2239
+ return a(n, r("js", g), t);
2240
+ }, [
2241
+ "n",
2242
+ "t",
2243
+ "",
2244
+ "P\"2!\"2\"\"/#"
2245
+ ]),
2246
+ ts: __assignType$1(function(n, t) {
2247
+ return a(n, r("js", g), t);
2248
+ }, [
2249
+ "n",
2250
+ "t",
2251
+ "",
2252
+ "P\"2!\"2\"\"/#"
2253
+ ]),
2254
+ html: __assignType$1(function(n, t) {
2255
+ return a(n, t && t.indentHtmlTag ? r("html", g, "html-tag") : r("html", g), t);
2256
+ }, [
2257
+ "n",
2258
+ "t",
2259
+ "",
2260
+ "P\"2!\"2\"\"/#"
2261
+ ])
2262
+ };
2263
+ }, [
2264
+ "n",
2265
+ "",
2266
+ "P\"2!\"/\""
2267
+ ])(globalThis);
2268
+
2269
+ //#endregion
2270
+ //#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/compiler.js
2271
+ const __ΩPartial = [
2272
+ "T",
2273
+ "Partial",
2274
+ "l+e#!e\"!fRb!Pde\"!gN#\"w\"y"
2275
+ ];
2276
+ const indentCode = ("undefined" !== typeof process && process.env?.DEBUG || "").includes("deepkit");
2277
+ var CompilerContext = class {
2278
+ constructor(config = {}) {
2279
+ this.context = (Map.Ω = [["&"], ["\""]], /* @__PURE__ */ new Map());
2280
+ this.constVariables = (Map.Ω = [["\""], ["&"]], /* @__PURE__ */ new Map());
2281
+ this.maxReservedVariable = 1e4;
2282
+ this.reservedNames = (Set.Ω = [["&"]], /* @__PURE__ */ new Set());
2283
+ this.variableContext = {};
2284
+ /**
2285
+ * Code that is executed in the context, but before the actual function is generated.
2286
+ * This helps for example to initialize dynamically some context variables.
2287
+ */
2288
+ this.preCode = "";
2289
+ this.initialiseVariables = [];
2290
+ this.config = { indent: false };
2291
+ Object.assign(this.config, config);
2292
+ this.context.set("_context", this.variableContext);
2293
+ }
2294
+ reserveName(name) {
2295
+ for (let i = 0; i < this.maxReservedVariable; i++) {
2296
+ const candidate = name + "_" + i;
2297
+ if (!this.reservedNames.has(candidate)) {
2298
+ this.reservedNames.add(candidate);
2299
+ return candidate;
2300
+ }
2301
+ }
2302
+ throw new Error(`Too many context variables (max ${this.maxReservedVariable})`);
2303
+ }
2304
+ set(values) {
2305
+ for (const i in values) {
2306
+ if (!hasProperty(values, i)) continue;
2307
+ this.context.set(i, values[i]);
2308
+ }
2309
+ }
2310
+ /**
2311
+ * Returns always the same variable name for the same value.
2312
+ * The variable name should not be set afterwards.
2313
+ */
2314
+ reserveConst(value, name = "constVar") {
2315
+ if (value === void 0) throw new Error("Can not reserve const for undefined value");
2316
+ let constName = this.constVariables.get(value);
2317
+ if (!constName) {
2318
+ constName = this.reserveName(name);
2319
+ this.constVariables.set(value, constName);
2320
+ this.context.set(constName, value);
2321
+ }
2322
+ return constName;
2323
+ }
2324
+ reserveVariable(name = "var", value) {
2325
+ const freeName = this.reserveName(name);
2326
+ if (value === void 0) return "_context." + freeName;
2327
+ else {
2328
+ this.context.set(freeName, value);
2329
+ return freeName;
2330
+ }
2331
+ }
2332
+ raw(functionCode) {
2333
+ try {
2334
+ return new Function(...this.context.keys(), `'use strict';\n` + functionCode)(...this.context.values());
2335
+ } catch (error) {
2336
+ throw new Error("Could not build function: " + error + functionCode);
2337
+ }
2338
+ }
2339
+ format(code) {
2340
+ if (indentCode || this.config.indent) return indent$1.js(code, { tabString: " " });
2341
+ return code;
2342
+ }
2343
+ build(functionCode, ...args) {
2344
+ functionCode = this.format(`
2345
+ 'use strict';
2346
+ ${this.preCode}
2347
+ return function self(${args.join(", ")}){
2348
+ 'use strict';
2349
+ ${functionCode}
2350
+ };
2351
+ `);
2352
+ try {
2353
+ return new Function(...this.context.keys(), functionCode)(...this.context.values());
2354
+ } catch (error) {
2355
+ throw new Error(`Could not build function(${[...this.context.keys()].join(",")}): ` + error + functionCode);
2356
+ }
2357
+ }
2358
+ buildAsync(functionCode, ...args) {
2359
+ functionCode = `
2360
+ 'use strict';
2361
+ ${this.preCode}
2362
+ return async function self(${args.join(", ")}){
2363
+ 'use strict';
2364
+ ${functionCode}
2365
+ };
2366
+ `;
2367
+ try {
2368
+ return new Function(...this.context.keys(), this.format(functionCode))(...this.context.values());
2369
+ } catch (error) {
2370
+ throw new Error("Could not build function: " + error + functionCode);
2371
+ }
2372
+ }
2373
+ };
2374
+ CompilerContext.__type = [
2375
+ "context",
2376
+ function() {
2377
+ return Map.Ω = [["&"], ["\""]], /* @__PURE__ */ new Map();
2378
+ },
2379
+ "constVariables",
2380
+ function() {
2381
+ return Map.Ω = [["\""], ["&"]], /* @__PURE__ */ new Map();
2382
+ },
2383
+ "maxReservedVariable",
2384
+ function() {
2385
+ return 1e4;
2386
+ },
2387
+ "reservedNames",
2388
+ function() {
2389
+ return Set.Ω = [["&"]], /* @__PURE__ */ new Set();
2390
+ },
2391
+ "variableContext",
2392
+ function() {
2393
+ return {};
2394
+ },
2395
+ "preCode",
2396
+ function() {
2397
+ return "";
2398
+ },
2399
+ "initialiseVariables",
2400
+ function() {
2401
+ return [];
2402
+ },
2403
+ "indent",
2404
+ "config",
2405
+ function() {
2406
+ return { indent: false };
2407
+ },
2408
+ () => __ΩPartial,
2409
+ () => CompilerContext,
2410
+ "config",
2411
+ () => ({}),
2412
+ "constructor",
2413
+ "name",
2414
+ "reserveName",
2415
+ "values",
2416
+ "set",
2417
+ "value",
2418
+ () => "constVar",
2419
+ "reserveConst",
2420
+ () => "var",
2421
+ "reserveVariable",
2422
+ "functionCode",
2423
+ () => Function,
2424
+ "raw",
2425
+ "code",
2426
+ "format",
2427
+ "args",
2428
+ "build",
2429
+ () => Function,
2430
+ "buildAsync",
2431
+ "CompilerContext",
2432
+ "!3!9>\"!3#<>$'3%>&!3'<>(P&\"LM3)<>*&3+>,&F3->.P)4/M30>1PP73.4fo2\"20>5\"06P&27&08PP&\"LM29\"0:P\"2;&27><&0=P&27>>\"2;8&0?P&2@PuA0BP&2C&0D<P&2@&@2E\"0FP&2@&@2EPuG0H5wI"
2433
+ ];
2434
+
2435
+ //#endregion
2436
+ //#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/string.js
2437
+ function __assignType(fn, args) {
2438
+ fn.__type = args;
2439
+ return fn;
2440
+ }
2441
+ function indent(indentation, prefix = "") {
2442
+ return __assignType((str = "") => {
2443
+ return " ".repeat(indentation) + str.replace(/\n/g, "\n" + " ".repeat(indentation) + prefix);
2444
+ }, [
2445
+ "str",
2446
+ () => "",
2447
+ "",
2448
+ "P&2!>\"\"/#"
2449
+ ]);
2450
+ }
2451
+ indent.__type = [
2452
+ "indentation",
2453
+ "prefix",
2454
+ () => "",
2455
+ "indent",
2456
+ "P'2!&2\">#\"/$"
2457
+ ];
2458
+ function capitalize(string) {
2459
+ return string.charAt(0).toUpperCase() + string.slice(1);
2460
+ }
2461
+ capitalize.__type = [
2462
+ "string",
2463
+ "capitalize",
2464
+ "P&2!&/\""
2465
+ ];
2466
+
2467
+ //#endregion
2468
+ Object.defineProperty(exports, 'AsyncFunction', {
2469
+ enumerable: true,
2470
+ get: function () {
2471
+ return AsyncFunction;
2472
+ }
2473
+ });
2474
+ Object.defineProperty(exports, 'CompilerContext', {
2475
+ enumerable: true,
2476
+ get: function () {
2477
+ return CompilerContext;
2478
+ }
2479
+ });
2480
+ Object.defineProperty(exports, 'CustomError', {
2481
+ enumerable: true,
2482
+ get: function () {
2483
+ return CustomError;
2484
+ }
2485
+ });
2486
+ Object.defineProperty(exports, '__toESM', {
2487
+ enumerable: true,
2488
+ get: function () {
2489
+ return __toESM;
2490
+ }
2491
+ });
2492
+ Object.defineProperty(exports, '__ΩAbstractClassType', {
2493
+ enumerable: true,
2494
+ get: function () {
2495
+ return __ΩAbstractClassType;
2496
+ }
2497
+ });
2498
+ Object.defineProperty(exports, '__ΩClassType', {
2499
+ enumerable: true,
2500
+ get: function () {
2501
+ return __ΩClassType;
2502
+ }
2503
+ });
2504
+ Object.defineProperty(exports, '__ΩCustomError', {
2505
+ enumerable: true,
2506
+ get: function () {
2507
+ return __ΩCustomError;
2508
+ }
2509
+ });
2510
+ Object.defineProperty(exports, '__ΩExtractClassType', {
2511
+ enumerable: true,
2512
+ get: function () {
2513
+ return __ΩExtractClassType;
2514
+ }
2515
+ });
2516
+ Object.defineProperty(exports, 'appendObject', {
2517
+ enumerable: true,
2518
+ get: function () {
2519
+ return appendObject;
2520
+ }
2521
+ });
2522
+ Object.defineProperty(exports, 'applyDefaults', {
2523
+ enumerable: true,
2524
+ get: function () {
2525
+ return applyDefaults;
2526
+ }
2527
+ });
2528
+ Object.defineProperty(exports, 'arrayClear', {
2529
+ enumerable: true,
2530
+ get: function () {
2531
+ return arrayClear;
2532
+ }
2533
+ });
2534
+ Object.defineProperty(exports, 'arrayHasItem', {
2535
+ enumerable: true,
2536
+ get: function () {
2537
+ return arrayHasItem;
2538
+ }
2539
+ });
2540
+ Object.defineProperty(exports, 'arrayMoveItem', {
2541
+ enumerable: true,
2542
+ get: function () {
2543
+ return arrayMoveItem;
2544
+ }
2545
+ });
2546
+ Object.defineProperty(exports, 'arrayRemoveItem', {
2547
+ enumerable: true,
2548
+ get: function () {
2549
+ return arrayRemoveItem;
2550
+ }
2551
+ });
2552
+ Object.defineProperty(exports, 'assertDefined', {
2553
+ enumerable: true,
2554
+ get: function () {
2555
+ return assertDefined;
2556
+ }
2557
+ });
2558
+ Object.defineProperty(exports, 'assertInstanceOf', {
2559
+ enumerable: true,
2560
+ get: function () {
2561
+ return assertInstanceOf;
2562
+ }
2563
+ });
2564
+ Object.defineProperty(exports, 'asyncOperation', {
2565
+ enumerable: true,
2566
+ get: function () {
2567
+ return asyncOperation;
2568
+ }
2569
+ });
2570
+ Object.defineProperty(exports, 'average', {
2571
+ enumerable: true,
2572
+ get: function () {
2573
+ return average;
2574
+ }
2575
+ });
2576
+ Object.defineProperty(exports, 'capitalize', {
2577
+ enumerable: true,
2578
+ get: function () {
2579
+ return capitalize;
2580
+ }
2581
+ });
2582
+ Object.defineProperty(exports, 'changeClass', {
2583
+ enumerable: true,
2584
+ get: function () {
2585
+ return changeClass;
2586
+ }
2587
+ });
2588
+ Object.defineProperty(exports, 'collectForMicrotask', {
2589
+ enumerable: true,
2590
+ get: function () {
2591
+ return collectForMicrotask;
2592
+ }
2593
+ });
2594
+ Object.defineProperty(exports, 'copy', {
2595
+ enumerable: true,
2596
+ get: function () {
2597
+ return copy;
2598
+ }
2599
+ });
2600
+ Object.defineProperty(exports, 'createDynamicClass', {
2601
+ enumerable: true,
2602
+ get: function () {
2603
+ return createDynamicClass;
2604
+ }
2605
+ });
2606
+ Object.defineProperty(exports, 'createStack', {
2607
+ enumerable: true,
2608
+ get: function () {
2609
+ return createStack;
2610
+ }
2611
+ });
2612
+ Object.defineProperty(exports, 'deletePathValue', {
2613
+ enumerable: true,
2614
+ get: function () {
2615
+ return deletePathValue;
2616
+ }
2617
+ });
2618
+ Object.defineProperty(exports, 'each', {
2619
+ enumerable: true,
2620
+ get: function () {
2621
+ return each;
2622
+ }
2623
+ });
2624
+ Object.defineProperty(exports, 'eachKey', {
2625
+ enumerable: true,
2626
+ get: function () {
2627
+ return eachKey;
2628
+ }
2629
+ });
2630
+ Object.defineProperty(exports, 'eachPair', {
2631
+ enumerable: true,
2632
+ get: function () {
2633
+ return eachPair;
2634
+ }
2635
+ });
2636
+ Object.defineProperty(exports, 'empty', {
2637
+ enumerable: true,
2638
+ get: function () {
2639
+ return empty;
2640
+ }
2641
+ });
2642
+ Object.defineProperty(exports, 'ensureError', {
2643
+ enumerable: true,
2644
+ get: function () {
2645
+ return ensureError;
2646
+ }
2647
+ });
2648
+ Object.defineProperty(exports, 'escapeRegExp', {
2649
+ enumerable: true,
2650
+ get: function () {
2651
+ return escapeRegExp;
2652
+ }
2653
+ });
2654
+ Object.defineProperty(exports, 'first', {
2655
+ enumerable: true,
2656
+ get: function () {
2657
+ return first;
2658
+ }
2659
+ });
2660
+ Object.defineProperty(exports, 'firstKey', {
2661
+ enumerable: true,
2662
+ get: function () {
2663
+ return firstKey;
2664
+ }
2665
+ });
2666
+ Object.defineProperty(exports, 'fixAsyncOperation', {
2667
+ enumerable: true,
2668
+ get: function () {
2669
+ return fixAsyncOperation;
2670
+ }
2671
+ });
2672
+ Object.defineProperty(exports, 'formatError', {
2673
+ enumerable: true,
2674
+ get: function () {
2675
+ return formatError;
2676
+ }
2677
+ });
2678
+ Object.defineProperty(exports, 'forwardTypeArguments', {
2679
+ enumerable: true,
2680
+ get: function () {
2681
+ return forwardTypeArguments;
2682
+ }
2683
+ });
2684
+ Object.defineProperty(exports, 'getClassName', {
2685
+ enumerable: true,
2686
+ get: function () {
2687
+ return getClassName;
2688
+ }
2689
+ });
2690
+ Object.defineProperty(exports, 'getClassPropertyName', {
2691
+ enumerable: true,
2692
+ get: function () {
2693
+ return getClassPropertyName;
2694
+ }
2695
+ });
2696
+ Object.defineProperty(exports, 'getClassTypeFromInstance', {
2697
+ enumerable: true,
2698
+ get: function () {
2699
+ return getClassTypeFromInstance;
2700
+ }
2701
+ });
2702
+ Object.defineProperty(exports, 'getCurrentFileName', {
2703
+ enumerable: true,
2704
+ get: function () {
2705
+ return getCurrentFileName;
2706
+ }
2707
+ });
2708
+ Object.defineProperty(exports, 'getInheritanceChain', {
2709
+ enumerable: true,
2710
+ get: function () {
2711
+ return getInheritanceChain;
2712
+ }
2713
+ });
2714
+ Object.defineProperty(exports, 'getObjectKeysSize', {
2715
+ enumerable: true,
2716
+ get: function () {
2717
+ return getObjectKeysSize;
2718
+ }
2719
+ });
2720
+ Object.defineProperty(exports, 'getParentClass', {
2721
+ enumerable: true,
2722
+ get: function () {
2723
+ return getParentClass;
2724
+ }
2725
+ });
2726
+ Object.defineProperty(exports, 'getPathValue', {
2727
+ enumerable: true,
2728
+ get: function () {
2729
+ return getPathValue;
2730
+ }
2731
+ });
2732
+ Object.defineProperty(exports, 'hasProperty', {
2733
+ enumerable: true,
2734
+ get: function () {
2735
+ return hasProperty;
2736
+ }
2737
+ });
2738
+ Object.defineProperty(exports, 'humanBytes', {
2739
+ enumerable: true,
2740
+ get: function () {
2741
+ return humanBytes;
2742
+ }
2743
+ });
2744
+ Object.defineProperty(exports, 'identifyType', {
2745
+ enumerable: true,
2746
+ get: function () {
2747
+ return identifyType;
2748
+ }
2749
+ });
2750
+ Object.defineProperty(exports, 'inDebugMode', {
2751
+ enumerable: true,
2752
+ get: function () {
2753
+ return inDebugMode;
2754
+ }
2755
+ });
2756
+ Object.defineProperty(exports, 'indent', {
2757
+ enumerable: true,
2758
+ get: function () {
2759
+ return indent;
2760
+ }
2761
+ });
2762
+ Object.defineProperty(exports, 'indexOf', {
2763
+ enumerable: true,
2764
+ get: function () {
2765
+ return indexOf;
2766
+ }
2767
+ });
2768
+ Object.defineProperty(exports, 'isArray', {
2769
+ enumerable: true,
2770
+ get: function () {
2771
+ return isArray;
2772
+ }
2773
+ });
2774
+ Object.defineProperty(exports, 'isAsyncFunction', {
2775
+ enumerable: true,
2776
+ get: function () {
2777
+ return isAsyncFunction;
2778
+ }
2779
+ });
2780
+ Object.defineProperty(exports, 'isClass', {
2781
+ enumerable: true,
2782
+ get: function () {
2783
+ return isClass;
2784
+ }
2785
+ });
2786
+ Object.defineProperty(exports, 'isClassInstance', {
2787
+ enumerable: true,
2788
+ get: function () {
2789
+ return isClassInstance;
2790
+ }
2791
+ });
2792
+ Object.defineProperty(exports, 'isConstructable', {
2793
+ enumerable: true,
2794
+ get: function () {
2795
+ return isConstructable;
2796
+ }
2797
+ });
2798
+ Object.defineProperty(exports, 'isFunction', {
2799
+ enumerable: true,
2800
+ get: function () {
2801
+ return isFunction;
2802
+ }
2803
+ });
2804
+ Object.defineProperty(exports, 'isGlobalClass', {
2805
+ enumerable: true,
2806
+ get: function () {
2807
+ return isGlobalClass;
2808
+ }
2809
+ });
2810
+ Object.defineProperty(exports, 'isInteger', {
2811
+ enumerable: true,
2812
+ get: function () {
2813
+ return isInteger;
2814
+ }
2815
+ });
2816
+ Object.defineProperty(exports, 'isIterable', {
2817
+ enumerable: true,
2818
+ get: function () {
2819
+ return isIterable;
2820
+ }
2821
+ });
2822
+ Object.defineProperty(exports, 'isNull', {
2823
+ enumerable: true,
2824
+ get: function () {
2825
+ return isNull;
2826
+ }
2827
+ });
2828
+ Object.defineProperty(exports, 'isNumber', {
2829
+ enumerable: true,
2830
+ get: function () {
2831
+ return isNumber;
2832
+ }
2833
+ });
2834
+ Object.defineProperty(exports, 'isNumeric', {
2835
+ enumerable: true,
2836
+ get: function () {
2837
+ return isNumeric;
2838
+ }
2839
+ });
2840
+ Object.defineProperty(exports, 'isObject', {
2841
+ enumerable: true,
2842
+ get: function () {
2843
+ return isObject;
2844
+ }
2845
+ });
2846
+ Object.defineProperty(exports, 'isObjectLiteral', {
2847
+ enumerable: true,
2848
+ get: function () {
2849
+ return isObjectLiteral;
2850
+ }
2851
+ });
2852
+ Object.defineProperty(exports, 'isPlainObject', {
2853
+ enumerable: true,
2854
+ get: function () {
2855
+ return isPlainObject;
2856
+ }
2857
+ });
2858
+ Object.defineProperty(exports, 'isPromise', {
2859
+ enumerable: true,
2860
+ get: function () {
2861
+ return isPromise;
2862
+ }
2863
+ });
2864
+ Object.defineProperty(exports, 'isPrototypeOfBase', {
2865
+ enumerable: true,
2866
+ get: function () {
2867
+ return isPrototypeOfBase;
2868
+ }
2869
+ });
2870
+ Object.defineProperty(exports, 'isSet', {
2871
+ enumerable: true,
2872
+ get: function () {
2873
+ return isSet;
2874
+ }
2875
+ });
2876
+ Object.defineProperty(exports, 'isString', {
2877
+ enumerable: true,
2878
+ get: function () {
2879
+ return isString;
2880
+ }
2881
+ });
2882
+ Object.defineProperty(exports, 'isUndefined', {
2883
+ enumerable: true,
2884
+ get: function () {
2885
+ return isUndefined;
2886
+ }
2887
+ });
2888
+ Object.defineProperty(exports, 'iterableSize', {
2889
+ enumerable: true,
2890
+ get: function () {
2891
+ return iterableSize;
2892
+ }
2893
+ });
2894
+ Object.defineProperty(exports, 'last', {
2895
+ enumerable: true,
2896
+ get: function () {
2897
+ return last;
2898
+ }
2899
+ });
2900
+ Object.defineProperty(exports, 'lastKey', {
2901
+ enumerable: true,
2902
+ get: function () {
2903
+ return lastKey;
2904
+ }
2905
+ });
2906
+ Object.defineProperty(exports, 'mergePromiseStack', {
2907
+ enumerable: true,
2908
+ get: function () {
2909
+ return mergePromiseStack;
2910
+ }
2911
+ });
2912
+ Object.defineProperty(exports, 'mergeStack', {
2913
+ enumerable: true,
2914
+ get: function () {
2915
+ return mergeStack;
2916
+ }
2917
+ });
2918
+ Object.defineProperty(exports, 'prependObjectKeys', {
2919
+ enumerable: true,
2920
+ get: function () {
2921
+ return prependObjectKeys;
2922
+ }
2923
+ });
2924
+ Object.defineProperty(exports, 'prettyPrintObject', {
2925
+ enumerable: true,
2926
+ get: function () {
2927
+ return prettyPrintObject;
2928
+ }
2929
+ });
2930
+ Object.defineProperty(exports, 'range', {
2931
+ enumerable: true,
2932
+ get: function () {
2933
+ return range;
2934
+ }
2935
+ });
2936
+ Object.defineProperty(exports, 'rangeArray', {
2937
+ enumerable: true,
2938
+ get: function () {
2939
+ return rangeArray;
2940
+ }
2941
+ });
2942
+ Object.defineProperty(exports, 'setPathValue', {
2943
+ enumerable: true,
2944
+ get: function () {
2945
+ return setPathValue;
2946
+ }
2947
+ });
2948
+ Object.defineProperty(exports, 'size', {
2949
+ enumerable: true,
2950
+ get: function () {
2951
+ return size;
2952
+ }
2953
+ });
2954
+ Object.defineProperty(exports, 'sleep', {
2955
+ enumerable: true,
2956
+ get: function () {
2957
+ return sleep;
2958
+ }
2959
+ });
2960
+ Object.defineProperty(exports, 'stringifyValueWithType', {
2961
+ enumerable: true,
2962
+ get: function () {
2963
+ return stringifyValueWithType;
2964
+ }
2965
+ });
2966
+ Object.defineProperty(exports, 'time', {
2967
+ enumerable: true,
2968
+ get: function () {
2969
+ return time;
2970
+ }
2971
+ });
2972
+ Object.defineProperty(exports, 'toFastProperties', {
2973
+ enumerable: true,
2974
+ get: function () {
2975
+ return toFastProperties;
2976
+ }
2977
+ });
2978
+ Object.defineProperty(exports, 'zip', {
2979
+ enumerable: true,
2980
+ get: function () {
2981
+ return zip;
2982
+ }
2983
+ });