@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
|
@@ -1,3859 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkMO4O4UYI_cjs = require('./chunk-MO4O4UYI.cjs');
|
|
4
|
-
|
|
5
|
-
// ../../node_modules/.pnpm/is-obj@2.0.0/node_modules/is-obj/index.js
|
|
6
|
-
var require_is_obj = chunkMO4O4UYI_cjs.__commonJS({
|
|
7
|
-
"../../node_modules/.pnpm/is-obj@2.0.0/node_modules/is-obj/index.js"(exports$1, module) {
|
|
8
|
-
chunkMO4O4UYI_cjs.init_cjs_shims();
|
|
9
|
-
module.exports = (value) => {
|
|
10
|
-
const type = typeof value;
|
|
11
|
-
return value !== null && (type === "object" || type === "function");
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
// ../../node_modules/.pnpm/dot-prop@5.3.0/node_modules/dot-prop/index.js
|
|
17
|
-
var require_dot_prop = chunkMO4O4UYI_cjs.__commonJS({
|
|
18
|
-
"../../node_modules/.pnpm/dot-prop@5.3.0/node_modules/dot-prop/index.js"(exports$1, module) {
|
|
19
|
-
chunkMO4O4UYI_cjs.init_cjs_shims();
|
|
20
|
-
var isObj = require_is_obj();
|
|
21
|
-
var disallowedKeys = [
|
|
22
|
-
"__proto__",
|
|
23
|
-
"prototype",
|
|
24
|
-
"constructor"
|
|
25
|
-
];
|
|
26
|
-
var isValidPath = /* @__PURE__ */ chunkMO4O4UYI_cjs.__name((pathSegments) => !pathSegments.some((segment) => disallowedKeys.includes(segment)), "isValidPath");
|
|
27
|
-
function getPathSegments(path) {
|
|
28
|
-
const pathArray = path.split(".");
|
|
29
|
-
const parts = [];
|
|
30
|
-
for (let i = 0; i < pathArray.length; i++) {
|
|
31
|
-
let p = pathArray[i];
|
|
32
|
-
while (p[p.length - 1] === "\\" && pathArray[i + 1] !== void 0) {
|
|
33
|
-
p = p.slice(0, -1) + ".";
|
|
34
|
-
p += pathArray[++i];
|
|
35
|
-
}
|
|
36
|
-
parts.push(p);
|
|
37
|
-
}
|
|
38
|
-
if (!isValidPath(parts)) {
|
|
39
|
-
return [];
|
|
40
|
-
}
|
|
41
|
-
return parts;
|
|
42
|
-
}
|
|
43
|
-
chunkMO4O4UYI_cjs.__name(getPathSegments, "getPathSegments");
|
|
44
|
-
module.exports = {
|
|
45
|
-
get(object, path, value) {
|
|
46
|
-
if (!isObj(object) || typeof path !== "string") {
|
|
47
|
-
return value === void 0 ? object : value;
|
|
48
|
-
}
|
|
49
|
-
const pathArray = getPathSegments(path);
|
|
50
|
-
if (pathArray.length === 0) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
for (let i = 0; i < pathArray.length; i++) {
|
|
54
|
-
if (!Object.prototype.propertyIsEnumerable.call(object, pathArray[i])) {
|
|
55
|
-
return value;
|
|
56
|
-
}
|
|
57
|
-
object = object[pathArray[i]];
|
|
58
|
-
if (object === void 0 || object === null) {
|
|
59
|
-
if (i !== pathArray.length - 1) {
|
|
60
|
-
return value;
|
|
61
|
-
}
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
return object;
|
|
66
|
-
},
|
|
67
|
-
set(object, path, value) {
|
|
68
|
-
if (!isObj(object) || typeof path !== "string") {
|
|
69
|
-
return object;
|
|
70
|
-
}
|
|
71
|
-
const root = object;
|
|
72
|
-
const pathArray = getPathSegments(path);
|
|
73
|
-
for (let i = 0; i < pathArray.length; i++) {
|
|
74
|
-
const p = pathArray[i];
|
|
75
|
-
if (!isObj(object[p])) {
|
|
76
|
-
object[p] = {};
|
|
77
|
-
}
|
|
78
|
-
if (i === pathArray.length - 1) {
|
|
79
|
-
object[p] = value;
|
|
80
|
-
}
|
|
81
|
-
object = object[p];
|
|
82
|
-
}
|
|
83
|
-
return root;
|
|
84
|
-
},
|
|
85
|
-
delete(object, path) {
|
|
86
|
-
if (!isObj(object) || typeof path !== "string") {
|
|
87
|
-
return false;
|
|
88
|
-
}
|
|
89
|
-
const pathArray = getPathSegments(path);
|
|
90
|
-
for (let i = 0; i < pathArray.length; i++) {
|
|
91
|
-
const p = pathArray[i];
|
|
92
|
-
if (i === pathArray.length - 1) {
|
|
93
|
-
delete object[p];
|
|
94
|
-
return true;
|
|
95
|
-
}
|
|
96
|
-
object = object[p];
|
|
97
|
-
if (!isObj(object)) {
|
|
98
|
-
return false;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
has(object, path) {
|
|
103
|
-
if (!isObj(object) || typeof path !== "string") {
|
|
104
|
-
return false;
|
|
105
|
-
}
|
|
106
|
-
const pathArray = getPathSegments(path);
|
|
107
|
-
if (pathArray.length === 0) {
|
|
108
|
-
return false;
|
|
109
|
-
}
|
|
110
|
-
for (let i = 0; i < pathArray.length; i++) {
|
|
111
|
-
if (isObj(object)) {
|
|
112
|
-
if (!(pathArray[i] in object)) {
|
|
113
|
-
return false;
|
|
114
|
-
}
|
|
115
|
-
object = object[pathArray[i]];
|
|
116
|
-
} else {
|
|
117
|
-
return false;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
return true;
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
// ../../node_modules/.pnpm/to-fast-properties@3.0.1/node_modules/to-fast-properties/index.js
|
|
127
|
-
var require_to_fast_properties = chunkMO4O4UYI_cjs.__commonJS({
|
|
128
|
-
"../../node_modules/.pnpm/to-fast-properties@3.0.1/node_modules/to-fast-properties/index.js"(exports$1, module) {
|
|
129
|
-
chunkMO4O4UYI_cjs.init_cjs_shims();
|
|
130
|
-
var fastProto = null;
|
|
131
|
-
function FastObject(o) {
|
|
132
|
-
if (fastProto !== null && typeof fastProto.property) {
|
|
133
|
-
const result = fastProto;
|
|
134
|
-
fastProto = FastObject.prototype = null;
|
|
135
|
-
return result;
|
|
136
|
-
}
|
|
137
|
-
fastProto = FastObject.prototype = o == null ? /* @__PURE__ */ Object.create(null) : o;
|
|
138
|
-
return new FastObject();
|
|
139
|
-
}
|
|
140
|
-
chunkMO4O4UYI_cjs.__name(FastObject, "FastObject");
|
|
141
|
-
var inlineCacheCutoff = 10;
|
|
142
|
-
for (let i = 0; i <= inlineCacheCutoff; i++) {
|
|
143
|
-
FastObject();
|
|
144
|
-
}
|
|
145
|
-
module.exports = /* @__PURE__ */ chunkMO4O4UYI_cjs.__name(function toFastproperties(o) {
|
|
146
|
-
return FastObject(o);
|
|
147
|
-
}, "toFastproperties");
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
|
|
151
|
-
// ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/iterators.js
|
|
152
|
-
chunkMO4O4UYI_cjs.init_cjs_shims();
|
|
153
|
-
var __\u03A9ArrayLike = [
|
|
154
|
-
"T",
|
|
155
|
-
"length",
|
|
156
|
-
"ArrayLike",
|
|
157
|
-
`b!P'4"9'e"!LMw#y`
|
|
158
|
-
];
|
|
159
|
-
var __\u03A9IterableIterator = [
|
|
160
|
-
"T",
|
|
161
|
-
"TReturn",
|
|
162
|
-
"TNext",
|
|
163
|
-
() => __\u03A9Iterator,
|
|
164
|
-
0,
|
|
165
|
-
() => Symbol.iterator,
|
|
166
|
-
"IterableIterator",
|
|
167
|
-
`b!"c""c#Pe"!e""e"#o$$Pe#!e#"e##o%$1&Mw'y`
|
|
168
|
-
];
|
|
169
|
-
var __\u03A9Iterator = [
|
|
170
|
-
"T",
|
|
171
|
-
"TReturn",
|
|
172
|
-
"TNext",
|
|
173
|
-
"param0",
|
|
174
|
-
() => __\u03A9IteratorResult,
|
|
175
|
-
"next",
|
|
176
|
-
"value",
|
|
177
|
-
() => __\u03A9IteratorResult,
|
|
178
|
-
"return",
|
|
179
|
-
"e",
|
|
180
|
-
() => __\u03A9IteratorResult,
|
|
181
|
-
"throw",
|
|
182
|
-
"Iterator",
|
|
183
|
-
`b!"c""c#PPPPGPe%#GJ@2$e#!e#"o%#1&Pe#"2'8e#!e#"o(#1)P"2*8e#!e#"o+#1,Mw-y`
|
|
184
|
-
];
|
|
185
|
-
var __\u03A9IteratorResult = [
|
|
186
|
-
"T",
|
|
187
|
-
"TReturn",
|
|
188
|
-
() => __\u03A9IteratorYieldResult,
|
|
189
|
-
() => __\u03A9IteratorReturnResult,
|
|
190
|
-
"IteratorResult",
|
|
191
|
-
'b!"c"Pe"!o#"e""o$"Jw%y'
|
|
192
|
-
];
|
|
193
|
-
var __\u03A9IteratorYieldResult = [
|
|
194
|
-
"TYield",
|
|
195
|
-
false,
|
|
196
|
-
"done",
|
|
197
|
-
"value",
|
|
198
|
-
"IteratorYieldResult",
|
|
199
|
-
'b!P."4#8e"!4$Mw%y'
|
|
200
|
-
];
|
|
201
|
-
var __\u03A9IteratorReturnResult = [
|
|
202
|
-
"TReturn",
|
|
203
|
-
true,
|
|
204
|
-
"done",
|
|
205
|
-
"value",
|
|
206
|
-
"IteratorReturnResult",
|
|
207
|
-
'b!P."4#e"!4$Mw%y'
|
|
208
|
-
];
|
|
209
|
-
eachKey.__type = [
|
|
210
|
-
() => __\u03A9ArrayLike,
|
|
211
|
-
"object",
|
|
212
|
-
() => __\u03A9IterableIterator,
|
|
213
|
-
"eachKey",
|
|
214
|
-
`P"o!"2"'o#"/$`
|
|
215
|
-
];
|
|
216
|
-
eachKey.__type = [
|
|
217
|
-
"object",
|
|
218
|
-
() => __\u03A9IterableIterator,
|
|
219
|
-
"eachKey",
|
|
220
|
-
'P"2!&o""/#'
|
|
221
|
-
];
|
|
222
|
-
function* eachKey(object) {
|
|
223
|
-
if (Array.isArray(object)) {
|
|
224
|
-
for (let i = 0; i < object.length; i++) {
|
|
225
|
-
yield i;
|
|
226
|
-
}
|
|
227
|
-
} else {
|
|
228
|
-
for (const i in object) {
|
|
229
|
-
if (object.hasOwnProperty(i)) {
|
|
230
|
-
yield i;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
chunkMO4O4UYI_cjs.__name(eachKey, "eachKey");
|
|
236
|
-
eachKey.__type = [
|
|
237
|
-
() => __\u03A9ArrayLike,
|
|
238
|
-
"object",
|
|
239
|
-
() => __\u03A9IterableIterator,
|
|
240
|
-
"eachKey",
|
|
241
|
-
`PP""o!"J2"P&'Jo#"/$`
|
|
242
|
-
];
|
|
243
|
-
function* each(object) {
|
|
244
|
-
if (Array.isArray(object)) {
|
|
245
|
-
for (let i = 0; i < object.length; i++) {
|
|
246
|
-
yield object[i];
|
|
247
|
-
}
|
|
248
|
-
} else {
|
|
249
|
-
for (const i in object) {
|
|
250
|
-
if (object.hasOwnProperty(i)) {
|
|
251
|
-
yield object[i];
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
chunkMO4O4UYI_cjs.__name(each, "each");
|
|
257
|
-
each.__type = [
|
|
258
|
-
() => __\u03A9ArrayLike,
|
|
259
|
-
"object",
|
|
260
|
-
() => __\u03A9IterableIterator,
|
|
261
|
-
"each",
|
|
262
|
-
'PPP&"LM"o!"J2""o#"/$'
|
|
263
|
-
];
|
|
264
|
-
eachPair.__type = [
|
|
265
|
-
() => __\u03A9ArrayLike,
|
|
266
|
-
"object",
|
|
267
|
-
() => __\u03A9IterableIterator,
|
|
268
|
-
"eachPair",
|
|
269
|
-
`P"o!"2"P'"Go#"/$`
|
|
270
|
-
];
|
|
271
|
-
eachPair.__type = [
|
|
272
|
-
"object",
|
|
273
|
-
() => __\u03A9IterableIterator,
|
|
274
|
-
"eachPair",
|
|
275
|
-
'PP&"LM2!P&"Go""/#'
|
|
276
|
-
];
|
|
277
|
-
function* eachPair(object) {
|
|
278
|
-
if (Array.isArray(object)) {
|
|
279
|
-
for (let i = 0; i < object.length; i++) {
|
|
280
|
-
yield [
|
|
281
|
-
i,
|
|
282
|
-
object[i]
|
|
283
|
-
];
|
|
284
|
-
}
|
|
285
|
-
} else {
|
|
286
|
-
for (const i in object) {
|
|
287
|
-
if (object.hasOwnProperty(i)) {
|
|
288
|
-
yield [
|
|
289
|
-
i,
|
|
290
|
-
object[i]
|
|
291
|
-
];
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
chunkMO4O4UYI_cjs.__name(eachPair, "eachPair");
|
|
297
|
-
eachPair.__type = [
|
|
298
|
-
() => __\u03A9ArrayLike,
|
|
299
|
-
"object",
|
|
300
|
-
() => __\u03A9IterableIterator,
|
|
301
|
-
"eachPair",
|
|
302
|
-
`PPP&"LM"o!"J2"PP&"GP'"GJo#"/$`
|
|
303
|
-
];
|
|
304
|
-
|
|
305
|
-
// ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/core.js
|
|
306
|
-
chunkMO4O4UYI_cjs.init_cjs_shims();
|
|
307
|
-
var import_dot_prop = chunkMO4O4UYI_cjs.__toESM(require_dot_prop(), 1);
|
|
308
|
-
var __\u03A9Object = [
|
|
309
|
-
() => Function,
|
|
310
|
-
"constructor",
|
|
311
|
-
"toString",
|
|
312
|
-
"toLocaleString",
|
|
313
|
-
0,
|
|
314
|
-
"valueOf",
|
|
315
|
-
() => __\u03A9PropertyKey,
|
|
316
|
-
"v",
|
|
317
|
-
"hasOwnProperty",
|
|
318
|
-
0,
|
|
319
|
-
"isPrototypeOf",
|
|
320
|
-
() => __\u03A9PropertyKey,
|
|
321
|
-
"propertyIsEnumerable",
|
|
322
|
-
"Object",
|
|
323
|
-
`PPu!4"P&1#P&1$Pn%1&Pn'2()1)Pn*2()1+Pn,2()1-Mw.y`
|
|
324
|
-
];
|
|
325
|
-
var __\u03A9Error = [
|
|
326
|
-
"name",
|
|
327
|
-
"message",
|
|
328
|
-
"stack",
|
|
329
|
-
"Error",
|
|
330
|
-
'P&4!&4"&4#8Mw$y'
|
|
331
|
-
];
|
|
332
|
-
var __\u03A9IterableIterator2 = [
|
|
333
|
-
"T",
|
|
334
|
-
"TReturn",
|
|
335
|
-
"TNext",
|
|
336
|
-
() => __\u03A9Iterator2,
|
|
337
|
-
0,
|
|
338
|
-
() => Symbol.iterator,
|
|
339
|
-
"IterableIterator",
|
|
340
|
-
`b!"c""c#Pe"!e""e"#o$$Pe#!e#"e##o%$1&Mw'y`
|
|
341
|
-
];
|
|
342
|
-
var __\u03A9PropertyKey = [
|
|
343
|
-
"PropertyKey",
|
|
344
|
-
"P&'+Jw!y"
|
|
345
|
-
];
|
|
346
|
-
var __\u03A9Iterator2 = [
|
|
347
|
-
"T",
|
|
348
|
-
"TReturn",
|
|
349
|
-
"TNext",
|
|
350
|
-
"param0",
|
|
351
|
-
() => __\u03A9IteratorResult2,
|
|
352
|
-
"next",
|
|
353
|
-
"value",
|
|
354
|
-
() => __\u03A9IteratorResult2,
|
|
355
|
-
"return",
|
|
356
|
-
"e",
|
|
357
|
-
() => __\u03A9IteratorResult2,
|
|
358
|
-
"throw",
|
|
359
|
-
"Iterator",
|
|
360
|
-
`b!"c""c#PPPPGPe%#GJ@2$e#!e#"o%#1&Pe#"2'8e#!e#"o(#1)P"2*8e#!e#"o+#1,Mw-y`
|
|
361
|
-
];
|
|
362
|
-
var __\u03A9IteratorResult2 = [
|
|
363
|
-
"T",
|
|
364
|
-
"TReturn",
|
|
365
|
-
() => __\u03A9IteratorYieldResult2,
|
|
366
|
-
() => __\u03A9IteratorReturnResult2,
|
|
367
|
-
"IteratorResult",
|
|
368
|
-
'b!"c"Pe"!o#"e""o$"Jw%y'
|
|
369
|
-
];
|
|
370
|
-
var __\u03A9IteratorYieldResult2 = [
|
|
371
|
-
"TYield",
|
|
372
|
-
false,
|
|
373
|
-
"done",
|
|
374
|
-
"value",
|
|
375
|
-
"IteratorYieldResult",
|
|
376
|
-
'b!P."4#8e"!4$Mw%y'
|
|
377
|
-
];
|
|
378
|
-
var __\u03A9IteratorReturnResult2 = [
|
|
379
|
-
"TReturn",
|
|
380
|
-
true,
|
|
381
|
-
"done",
|
|
382
|
-
"value",
|
|
383
|
-
"IteratorReturnResult",
|
|
384
|
-
'b!P."4#e"!4$Mw%y'
|
|
385
|
-
];
|
|
386
|
-
function __assignType(fn, args) {
|
|
387
|
-
fn.__type = args;
|
|
388
|
-
return fn;
|
|
389
|
-
}
|
|
390
|
-
chunkMO4O4UYI_cjs.__name(__assignType, "__assignType");
|
|
391
|
-
var CustomError = class extends Error {
|
|
392
|
-
static {
|
|
393
|
-
chunkMO4O4UYI_cjs.__name(this, "CustomError");
|
|
394
|
-
}
|
|
395
|
-
constructor(...args) {
|
|
396
|
-
super(...args);
|
|
397
|
-
this.name = this.constructor.name;
|
|
398
|
-
}
|
|
399
|
-
};
|
|
400
|
-
CustomError.__type = [
|
|
401
|
-
() => Error,
|
|
402
|
-
"name",
|
|
403
|
-
"args",
|
|
404
|
-
"constructor",
|
|
405
|
-
"CustomError",
|
|
406
|
-
'P7!&3"P"@2#"0$5w%'
|
|
407
|
-
];
|
|
408
|
-
var __\u03A9CustomError = [
|
|
409
|
-
"cause",
|
|
410
|
-
"CustomError",
|
|
411
|
-
'P#4!8Mw"y'
|
|
412
|
-
];
|
|
413
|
-
var __\u03A9ClassType = [
|
|
414
|
-
"T",
|
|
415
|
-
"args",
|
|
416
|
-
"new",
|
|
417
|
-
"ClassType",
|
|
418
|
-
'"c!PP"@2"e#!1#Mw$y'
|
|
419
|
-
];
|
|
420
|
-
var __\u03A9AbstractClassType = [
|
|
421
|
-
"T",
|
|
422
|
-
"args",
|
|
423
|
-
"new",
|
|
424
|
-
"AbstractClassType",
|
|
425
|
-
'"c!P"@2"e"!/#w$y'
|
|
426
|
-
];
|
|
427
|
-
var __\u03A9ExtractClassType = [
|
|
428
|
-
"T",
|
|
429
|
-
() => __\u03A9AbstractClassType,
|
|
430
|
-
"ExtractClassType",
|
|
431
|
-
`l:e"!R!RPde#!h!!o""qk#'QRb!Pde"!p)w#y`
|
|
432
|
-
];
|
|
433
|
-
function getClassName(classTypeOrInstance) {
|
|
434
|
-
if (!classTypeOrInstance) return "undefined";
|
|
435
|
-
const proto = classTypeOrInstance["prototype"] ? classTypeOrInstance["prototype"] : classTypeOrInstance;
|
|
436
|
-
return proto.constructor.name || "anonymous class";
|
|
437
|
-
}
|
|
438
|
-
chunkMO4O4UYI_cjs.__name(getClassName, "getClassName");
|
|
439
|
-
getClassName.__type = [
|
|
440
|
-
() => __\u03A9ClassType,
|
|
441
|
-
() => __\u03A9Object,
|
|
442
|
-
"classTypeOrInstance",
|
|
443
|
-
"getClassName",
|
|
444
|
-
'PP"o!"n"J2#&/$'
|
|
445
|
-
];
|
|
446
|
-
function getClassPropertyName(classType, propertyName) {
|
|
447
|
-
const name = getClassName(classType);
|
|
448
|
-
return `${name}.${propertyName}`;
|
|
449
|
-
}
|
|
450
|
-
chunkMO4O4UYI_cjs.__name(getClassPropertyName, "getClassPropertyName");
|
|
451
|
-
getClassPropertyName.__type = [
|
|
452
|
-
() => __\u03A9ClassType,
|
|
453
|
-
() => __\u03A9Object,
|
|
454
|
-
"classType",
|
|
455
|
-
"propertyName",
|
|
456
|
-
"getClassPropertyName",
|
|
457
|
-
'PP"o!"n"J2#&2$&/%'
|
|
458
|
-
];
|
|
459
|
-
function applyDefaults(classType, target) {
|
|
460
|
-
const classInstance = new classType();
|
|
461
|
-
for (const [i, v] of eachPair(target)) {
|
|
462
|
-
classInstance[i] = v;
|
|
463
|
-
}
|
|
464
|
-
return classInstance;
|
|
465
|
-
}
|
|
466
|
-
chunkMO4O4UYI_cjs.__name(applyDefaults, "applyDefaults");
|
|
467
|
-
applyDefaults.__type = [
|
|
468
|
-
() => __\u03A9ClassType,
|
|
469
|
-
"classType",
|
|
470
|
-
"target",
|
|
471
|
-
"applyDefaults",
|
|
472
|
-
'P"o!"2"P&"LM2#"/$'
|
|
473
|
-
];
|
|
474
|
-
function identifyType(obj) {
|
|
475
|
-
return (({}.toString.call(obj).match(/\s([a-zA-Z]+)/) || [])[1] || "").toLowerCase();
|
|
476
|
-
}
|
|
477
|
-
chunkMO4O4UYI_cjs.__name(identifyType, "identifyType");
|
|
478
|
-
identifyType.__type = [
|
|
479
|
-
"obj",
|
|
480
|
-
"identifyType",
|
|
481
|
-
'P"2!"/"'
|
|
482
|
-
];
|
|
483
|
-
function isPlainObject(obj) {
|
|
484
|
-
return Boolean(obj && typeof obj === "object" && obj.constructor instanceof obj.constructor);
|
|
485
|
-
}
|
|
486
|
-
chunkMO4O4UYI_cjs.__name(isPlainObject, "isPlainObject");
|
|
487
|
-
isPlainObject.__type = [
|
|
488
|
-
"obj",
|
|
489
|
-
"isPlainObject",
|
|
490
|
-
'P"2!!/"'
|
|
491
|
-
];
|
|
492
|
-
function getClassTypeFromInstance(target) {
|
|
493
|
-
if (!isClassInstance(target)) {
|
|
494
|
-
throw new Error(`Value is not a class instance. Got ${stringifyValueWithType(target)}`);
|
|
495
|
-
}
|
|
496
|
-
return target["constructor"];
|
|
497
|
-
}
|
|
498
|
-
chunkMO4O4UYI_cjs.__name(getClassTypeFromInstance, "getClassTypeFromInstance");
|
|
499
|
-
getClassTypeFromInstance.__type = [
|
|
500
|
-
"target",
|
|
501
|
-
() => __\u03A9ClassType,
|
|
502
|
-
"getClassTypeFromInstance",
|
|
503
|
-
'P"2!"o""/#'
|
|
504
|
-
];
|
|
505
|
-
function isClassInstance(target) {
|
|
506
|
-
return target !== void 0 && target !== null && target["constructor"] && Object.getPrototypeOf(target) === target["constructor"].prototype && !isPlainObject(target) && isObject(target);
|
|
507
|
-
}
|
|
508
|
-
chunkMO4O4UYI_cjs.__name(isClassInstance, "isClassInstance");
|
|
509
|
-
isClassInstance.__type = [
|
|
510
|
-
"target",
|
|
511
|
-
"isClassInstance",
|
|
512
|
-
'P"2!)/"'
|
|
513
|
-
];
|
|
514
|
-
function stringifyValueWithType(value, depth = 0) {
|
|
515
|
-
if ("string" === typeof value) return `string(${value})`;
|
|
516
|
-
if ("number" === typeof value) return `number(${value})`;
|
|
517
|
-
if ("boolean" === typeof value) return `boolean(${value})`;
|
|
518
|
-
if ("bigint" === typeof value) return `bigint(${value})`;
|
|
519
|
-
if (isPlainObject(value)) return `object ${depth < 2 ? prettyPrintObject(value, depth) : ""}`;
|
|
520
|
-
if (isArray(value)) return `Array`;
|
|
521
|
-
if (isClass(value)) return `${getClassName(value)}`;
|
|
522
|
-
if (isObject(value)) return `${getClassName(getClassTypeFromInstance(value))} ${depth < 2 ? prettyPrintObject(value, depth) : ""}`;
|
|
523
|
-
if ("function" === typeof value) return `function ${value.name}`;
|
|
524
|
-
if (null === value) return `null`;
|
|
525
|
-
return "undefined";
|
|
526
|
-
}
|
|
527
|
-
chunkMO4O4UYI_cjs.__name(stringifyValueWithType, "stringifyValueWithType");
|
|
528
|
-
stringifyValueWithType.__type = [
|
|
529
|
-
"value",
|
|
530
|
-
"depth",
|
|
531
|
-
() => 0,
|
|
532
|
-
"stringifyValueWithType",
|
|
533
|
-
`P"2!'2">#&/$`
|
|
534
|
-
];
|
|
535
|
-
function changeClass(value, newClass) {
|
|
536
|
-
return Object.assign(Object.create(newClass.prototype), value);
|
|
537
|
-
}
|
|
538
|
-
chunkMO4O4UYI_cjs.__name(changeClass, "changeClass");
|
|
539
|
-
changeClass.__type = [
|
|
540
|
-
"value",
|
|
541
|
-
() => __\u03A9ClassType,
|
|
542
|
-
"newClass",
|
|
543
|
-
"changeClass",
|
|
544
|
-
'P%2!"o""2#"/$'
|
|
545
|
-
];
|
|
546
|
-
function prettyPrintObject(object, depth = 0) {
|
|
547
|
-
const res = [];
|
|
548
|
-
for (const i in object) {
|
|
549
|
-
res.push(i + ": " + stringifyValueWithType(object[i], depth + 1));
|
|
550
|
-
}
|
|
551
|
-
return "{" + res.join(",") + "}";
|
|
552
|
-
}
|
|
553
|
-
chunkMO4O4UYI_cjs.__name(prettyPrintObject, "prettyPrintObject");
|
|
554
|
-
prettyPrintObject.__type = [
|
|
555
|
-
"object",
|
|
556
|
-
"depth",
|
|
557
|
-
() => 0,
|
|
558
|
-
"prettyPrintObject",
|
|
559
|
-
`P%2!'2">#&/$`
|
|
560
|
-
];
|
|
561
|
-
function isFunction(obj) {
|
|
562
|
-
if ("function" === typeof obj) {
|
|
563
|
-
return !obj.toString().startsWith("class ") && !obj.toString().startsWith("class{");
|
|
564
|
-
}
|
|
565
|
-
return false;
|
|
566
|
-
}
|
|
567
|
-
chunkMO4O4UYI_cjs.__name(isFunction, "isFunction");
|
|
568
|
-
isFunction.__type = [
|
|
569
|
-
"obj",
|
|
570
|
-
"isFunction",
|
|
571
|
-
'P"2!!/"'
|
|
572
|
-
];
|
|
573
|
-
var AsyncFunction = (async () => {
|
|
574
|
-
}).constructor;
|
|
575
|
-
function isAsyncFunction(obj) {
|
|
576
|
-
return obj instanceof AsyncFunction;
|
|
577
|
-
}
|
|
578
|
-
chunkMO4O4UYI_cjs.__name(isAsyncFunction, "isAsyncFunction");
|
|
579
|
-
isAsyncFunction.__type = [
|
|
580
|
-
"obj",
|
|
581
|
-
"isAsyncFunction",
|
|
582
|
-
'P"2!!/"'
|
|
583
|
-
];
|
|
584
|
-
function isPromise(obj) {
|
|
585
|
-
return obj !== null && typeof obj === "object" && typeof obj.then === "function" && typeof obj.catch === "function" && typeof obj.finally === "function";
|
|
586
|
-
}
|
|
587
|
-
chunkMO4O4UYI_cjs.__name(isPromise, "isPromise");
|
|
588
|
-
isPromise.__type = [
|
|
589
|
-
"obj",
|
|
590
|
-
"isPromise",
|
|
591
|
-
'PP""`J2!!/"'
|
|
592
|
-
];
|
|
593
|
-
function isClass(obj) {
|
|
594
|
-
if ("function" === typeof obj) {
|
|
595
|
-
return obj.toString().startsWith("class ") || obj.toString().startsWith("class{");
|
|
596
|
-
}
|
|
597
|
-
return false;
|
|
598
|
-
}
|
|
599
|
-
chunkMO4O4UYI_cjs.__name(isClass, "isClass");
|
|
600
|
-
isClass.__type = [
|
|
601
|
-
"obj",
|
|
602
|
-
"isClass",
|
|
603
|
-
'P"2!!/"'
|
|
604
|
-
];
|
|
605
|
-
function isGlobalClass(obj) {
|
|
606
|
-
if ("function" !== typeof obj) return false;
|
|
607
|
-
if ("undefined" !== typeof window) {
|
|
608
|
-
return window[getClassName(obj)] === obj;
|
|
609
|
-
}
|
|
610
|
-
if ("undefined" !== typeof global) {
|
|
611
|
-
return global[getClassName(obj)] === obj;
|
|
612
|
-
}
|
|
613
|
-
return false;
|
|
614
|
-
}
|
|
615
|
-
chunkMO4O4UYI_cjs.__name(isGlobalClass, "isGlobalClass");
|
|
616
|
-
isGlobalClass.__type = [
|
|
617
|
-
"obj",
|
|
618
|
-
"isGlobalClass",
|
|
619
|
-
'P"2!!/"'
|
|
620
|
-
];
|
|
621
|
-
function isObject(obj) {
|
|
622
|
-
if (obj === null) {
|
|
623
|
-
return false;
|
|
624
|
-
}
|
|
625
|
-
return typeof obj === "object" && !isArray(obj);
|
|
626
|
-
}
|
|
627
|
-
chunkMO4O4UYI_cjs.__name(isObject, "isObject");
|
|
628
|
-
isObject.__type = [
|
|
629
|
-
"obj",
|
|
630
|
-
"isObject",
|
|
631
|
-
'P"2!!/"'
|
|
632
|
-
];
|
|
633
|
-
function isObjectLiteral(obj) {
|
|
634
|
-
return isObject(obj) && !(obj instanceof Date) && !(obj instanceof Map) && !(obj instanceof Set);
|
|
635
|
-
}
|
|
636
|
-
chunkMO4O4UYI_cjs.__name(isObjectLiteral, "isObjectLiteral");
|
|
637
|
-
isObjectLiteral.__type = [
|
|
638
|
-
"obj",
|
|
639
|
-
"isObjectLiteral",
|
|
640
|
-
'P"2!!/"'
|
|
641
|
-
];
|
|
642
|
-
var isArray = Array.isArray;
|
|
643
|
-
function isNull(obj) {
|
|
644
|
-
return null === obj;
|
|
645
|
-
}
|
|
646
|
-
chunkMO4O4UYI_cjs.__name(isNull, "isNull");
|
|
647
|
-
isNull.__type = [
|
|
648
|
-
"obj",
|
|
649
|
-
"isNull",
|
|
650
|
-
'P"2!!/"'
|
|
651
|
-
];
|
|
652
|
-
function isUndefined(obj) {
|
|
653
|
-
return void 0 === obj;
|
|
654
|
-
}
|
|
655
|
-
chunkMO4O4UYI_cjs.__name(isUndefined, "isUndefined");
|
|
656
|
-
isUndefined.__type = [
|
|
657
|
-
"obj",
|
|
658
|
-
"isUndefined",
|
|
659
|
-
'P"2!!/"'
|
|
660
|
-
];
|
|
661
|
-
function isSet(obj) {
|
|
662
|
-
return !isNull(obj) && !isUndefined(obj);
|
|
663
|
-
}
|
|
664
|
-
chunkMO4O4UYI_cjs.__name(isSet, "isSet");
|
|
665
|
-
isSet.__type = [
|
|
666
|
-
"obj",
|
|
667
|
-
"isSet",
|
|
668
|
-
'P"2!)/"'
|
|
669
|
-
];
|
|
670
|
-
function isNumber(obj) {
|
|
671
|
-
return "number" === identifyType(obj);
|
|
672
|
-
}
|
|
673
|
-
chunkMO4O4UYI_cjs.__name(isNumber, "isNumber");
|
|
674
|
-
isNumber.__type = [
|
|
675
|
-
"obj",
|
|
676
|
-
"isNumber",
|
|
677
|
-
'P"2!!/"'
|
|
678
|
-
];
|
|
679
|
-
function isNumeric(s) {
|
|
680
|
-
if ("number" === typeof s) return true;
|
|
681
|
-
let points = 0;
|
|
682
|
-
for (let i = s.length - 1; i >= 0; i--) {
|
|
683
|
-
const d = s.charCodeAt(i);
|
|
684
|
-
if (d === 46) {
|
|
685
|
-
if (points++ > 0) return false;
|
|
686
|
-
continue;
|
|
687
|
-
}
|
|
688
|
-
if (d < 48 || d > 57) return false;
|
|
689
|
-
}
|
|
690
|
-
return true;
|
|
691
|
-
}
|
|
692
|
-
chunkMO4O4UYI_cjs.__name(isNumeric, "isNumeric");
|
|
693
|
-
isNumeric.__type = [
|
|
694
|
-
"s",
|
|
695
|
-
"isNumeric",
|
|
696
|
-
`PP&'J2!)/"`
|
|
697
|
-
];
|
|
698
|
-
var isInteger = Number.isInteger || __assignType(function(obj) {
|
|
699
|
-
return obj % 1 === 0;
|
|
700
|
-
}, [
|
|
701
|
-
"obj",
|
|
702
|
-
"",
|
|
703
|
-
'P"2!"/"'
|
|
704
|
-
]);
|
|
705
|
-
function isString(obj) {
|
|
706
|
-
return "string" === identifyType(obj);
|
|
707
|
-
}
|
|
708
|
-
chunkMO4O4UYI_cjs.__name(isString, "isString");
|
|
709
|
-
isString.__type = [
|
|
710
|
-
"obj",
|
|
711
|
-
"isString",
|
|
712
|
-
'P"2!!/"'
|
|
713
|
-
];
|
|
714
|
-
function indexOf(array, item) {
|
|
715
|
-
if (!array) {
|
|
716
|
-
return -1;
|
|
717
|
-
}
|
|
718
|
-
return array.indexOf(item);
|
|
719
|
-
}
|
|
720
|
-
chunkMO4O4UYI_cjs.__name(indexOf, "indexOf");
|
|
721
|
-
indexOf.__type = [
|
|
722
|
-
"array",
|
|
723
|
-
"item",
|
|
724
|
-
"indexOf",
|
|
725
|
-
`P"F2!"2"'/#`
|
|
726
|
-
];
|
|
727
|
-
async function sleep(seconds) {
|
|
728
|
-
return Promise.\u03A9 = [
|
|
729
|
-
[
|
|
730
|
-
"$"
|
|
731
|
-
]
|
|
732
|
-
], new Promise(__assignType((resolve) => setTimeout(resolve, seconds * 1e3), [
|
|
733
|
-
"resolve",
|
|
734
|
-
"",
|
|
735
|
-
'P"2!"/"'
|
|
736
|
-
]));
|
|
737
|
-
}
|
|
738
|
-
chunkMO4O4UYI_cjs.__name(sleep, "sleep");
|
|
739
|
-
sleep.__type = [
|
|
740
|
-
"seconds",
|
|
741
|
-
"sleep",
|
|
742
|
-
"P'2!$`/\""
|
|
743
|
-
];
|
|
744
|
-
function copy(v) {
|
|
745
|
-
if (isArray(v)) {
|
|
746
|
-
return v.slice(0);
|
|
747
|
-
}
|
|
748
|
-
return v;
|
|
749
|
-
}
|
|
750
|
-
chunkMO4O4UYI_cjs.__name(copy, "copy");
|
|
751
|
-
copy.__type = [
|
|
752
|
-
"v",
|
|
753
|
-
"copy",
|
|
754
|
-
'P"F2!"F/"'
|
|
755
|
-
];
|
|
756
|
-
function empty(value) {
|
|
757
|
-
if (!value) return true;
|
|
758
|
-
if (isArray(value)) {
|
|
759
|
-
return value.length === 0;
|
|
760
|
-
} else {
|
|
761
|
-
for (const i in value) if (value.hasOwnProperty(i)) return false;
|
|
762
|
-
return true;
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
chunkMO4O4UYI_cjs.__name(empty, "empty");
|
|
766
|
-
empty.__type = [
|
|
767
|
-
"value",
|
|
768
|
-
"empty",
|
|
769
|
-
'PP"F%PMJ2!8)/"'
|
|
770
|
-
];
|
|
771
|
-
function size(array) {
|
|
772
|
-
if (!array) {
|
|
773
|
-
return 0;
|
|
774
|
-
}
|
|
775
|
-
if (isArray(array)) {
|
|
776
|
-
return array.length;
|
|
777
|
-
} else {
|
|
778
|
-
return getObjectKeysSize(array);
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
chunkMO4O4UYI_cjs.__name(size, "size");
|
|
782
|
-
size.__type = [
|
|
783
|
-
"array",
|
|
784
|
-
"size",
|
|
785
|
-
`PP"FP&"LMJ2!'/"`
|
|
786
|
-
];
|
|
787
|
-
function firstKey(v) {
|
|
788
|
-
return Object.keys(v)[0];
|
|
789
|
-
}
|
|
790
|
-
chunkMO4O4UYI_cjs.__name(firstKey, "firstKey");
|
|
791
|
-
firstKey.__type = [
|
|
792
|
-
"v",
|
|
793
|
-
"firstKey",
|
|
794
|
-
'PPP&"LM%J2!P&-J/"'
|
|
795
|
-
];
|
|
796
|
-
function lastKey(v) {
|
|
797
|
-
const keys = Object.keys(v);
|
|
798
|
-
if (keys.length) {
|
|
799
|
-
return;
|
|
800
|
-
}
|
|
801
|
-
return keys[keys.length - 1];
|
|
802
|
-
}
|
|
803
|
-
chunkMO4O4UYI_cjs.__name(lastKey, "lastKey");
|
|
804
|
-
lastKey.__type = [
|
|
805
|
-
"v",
|
|
806
|
-
"lastKey",
|
|
807
|
-
'PPP&"LM%J2!P&-J/"'
|
|
808
|
-
];
|
|
809
|
-
function first(v) {
|
|
810
|
-
if (isArray(v)) {
|
|
811
|
-
return v[0];
|
|
812
|
-
}
|
|
813
|
-
const key = firstKey(v);
|
|
814
|
-
if (key) {
|
|
815
|
-
return v[key];
|
|
816
|
-
}
|
|
817
|
-
return;
|
|
818
|
-
}
|
|
819
|
-
chunkMO4O4UYI_cjs.__name(first, "first");
|
|
820
|
-
first.__type = [
|
|
821
|
-
"v",
|
|
822
|
-
"first",
|
|
823
|
-
'PPP&"LM"FJ2!P"-J/"'
|
|
824
|
-
];
|
|
825
|
-
function last(v) {
|
|
826
|
-
if (isArray(v)) {
|
|
827
|
-
if (v.length > 0) {
|
|
828
|
-
return v[v.length - 1];
|
|
829
|
-
}
|
|
830
|
-
return;
|
|
831
|
-
}
|
|
832
|
-
const key = firstKey(v);
|
|
833
|
-
if (key) {
|
|
834
|
-
return v[key];
|
|
835
|
-
}
|
|
836
|
-
return;
|
|
837
|
-
}
|
|
838
|
-
chunkMO4O4UYI_cjs.__name(last, "last");
|
|
839
|
-
last.__type = [
|
|
840
|
-
"v",
|
|
841
|
-
"last",
|
|
842
|
-
'PPP&"LM"FJ2!P"-J/"'
|
|
843
|
-
];
|
|
844
|
-
function average(array) {
|
|
845
|
-
let sum = 0;
|
|
846
|
-
for (const n of array) {
|
|
847
|
-
sum += n;
|
|
848
|
-
}
|
|
849
|
-
return sum / array.length;
|
|
850
|
-
}
|
|
851
|
-
chunkMO4O4UYI_cjs.__name(average, "average");
|
|
852
|
-
average.__type = [
|
|
853
|
-
"array",
|
|
854
|
-
"average",
|
|
855
|
-
`P'F2!'/"`
|
|
856
|
-
];
|
|
857
|
-
function prependObjectKeys(o, prependText) {
|
|
858
|
-
const converted = {};
|
|
859
|
-
for (const i in o) {
|
|
860
|
-
if (!o.hasOwnProperty(i)) continue;
|
|
861
|
-
converted[prependText + i] = o[i];
|
|
862
|
-
}
|
|
863
|
-
return converted;
|
|
864
|
-
}
|
|
865
|
-
chunkMO4O4UYI_cjs.__name(prependObjectKeys, "prependObjectKeys");
|
|
866
|
-
prependObjectKeys.__type = [
|
|
867
|
-
"o",
|
|
868
|
-
"prependText",
|
|
869
|
-
"prependObjectKeys",
|
|
870
|
-
'PP&"LM2!&2"P&"LM/#'
|
|
871
|
-
];
|
|
872
|
-
function appendObject(origin, extend, prependKeyName = "") {
|
|
873
|
-
const no = prependObjectKeys(extend, prependKeyName);
|
|
874
|
-
for (const [i, v] of eachPair(no)) {
|
|
875
|
-
origin[i] = v;
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
|
-
chunkMO4O4UYI_cjs.__name(appendObject, "appendObject");
|
|
879
|
-
appendObject.__type = [
|
|
880
|
-
"origin",
|
|
881
|
-
"extend",
|
|
882
|
-
"prependKeyName",
|
|
883
|
-
() => "",
|
|
884
|
-
"appendObject",
|
|
885
|
-
'PP&"LM2!P&"LM2"&2#>$"/%'
|
|
886
|
-
];
|
|
887
|
-
async function asyncOperation(executor) {
|
|
888
|
-
try {
|
|
889
|
-
return await (Promise.\u03A9 = [
|
|
890
|
-
void 0
|
|
891
|
-
], new Promise(async (resolve, reject) => {
|
|
892
|
-
try {
|
|
893
|
-
await executor(resolve, reject);
|
|
894
|
-
} catch (e) {
|
|
895
|
-
reject(e);
|
|
896
|
-
}
|
|
897
|
-
}));
|
|
898
|
-
} catch (error) {
|
|
899
|
-
mergeStack(error, createStack());
|
|
900
|
-
throw error;
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
chunkMO4O4UYI_cjs.__name(asyncOperation, "asyncOperation");
|
|
904
|
-
function fixAsyncOperation(promise) {
|
|
905
|
-
return asyncOperation(__assignType(async (resolve, reject) => {
|
|
906
|
-
resolve(await promise);
|
|
907
|
-
}, [
|
|
908
|
-
"resolve",
|
|
909
|
-
"reject",
|
|
910
|
-
"",
|
|
911
|
-
'P"2!"2""/#'
|
|
912
|
-
]));
|
|
913
|
-
}
|
|
914
|
-
chunkMO4O4UYI_cjs.__name(fixAsyncOperation, "fixAsyncOperation");
|
|
915
|
-
fixAsyncOperation.__type = [
|
|
916
|
-
"promise",
|
|
917
|
-
"fixAsyncOperation",
|
|
918
|
-
'P"`2!"`/"'
|
|
919
|
-
];
|
|
920
|
-
function mergePromiseStack(promise, stack2) {
|
|
921
|
-
stack2 = stack2 || createStack();
|
|
922
|
-
promise.then(() => {
|
|
923
|
-
}, __assignType((error) => {
|
|
924
|
-
mergeStack(error, stack2 || "");
|
|
925
|
-
}, [
|
|
926
|
-
"error",
|
|
927
|
-
"",
|
|
928
|
-
'P"2!"/"'
|
|
929
|
-
]));
|
|
930
|
-
return promise;
|
|
931
|
-
}
|
|
932
|
-
chunkMO4O4UYI_cjs.__name(mergePromiseStack, "mergePromiseStack");
|
|
933
|
-
mergePromiseStack.__type = [
|
|
934
|
-
"promise",
|
|
935
|
-
"stack",
|
|
936
|
-
"mergePromiseStack",
|
|
937
|
-
'P"`2!&2"8"`/#'
|
|
938
|
-
];
|
|
939
|
-
function createStack(removeCallee = true) {
|
|
940
|
-
if (Error.stackTraceLimit === 10) Error.stackTraceLimit = 100;
|
|
941
|
-
let stack2 = new Error().stack || "";
|
|
942
|
-
stack2 = stack2.slice(stack2.indexOf(" at ") + 6);
|
|
943
|
-
stack2 = stack2.slice(stack2.indexOf(" at ") - 1);
|
|
944
|
-
if (removeCallee) {
|
|
945
|
-
stack2 = stack2.slice(stack2.indexOf(" at ") + 6);
|
|
946
|
-
stack2 = stack2.slice(stack2.indexOf(" at ") - 1);
|
|
947
|
-
}
|
|
948
|
-
return stack2;
|
|
949
|
-
}
|
|
950
|
-
chunkMO4O4UYI_cjs.__name(createStack, "createStack");
|
|
951
|
-
createStack.__type = [
|
|
952
|
-
"removeCallee",
|
|
953
|
-
() => true,
|
|
954
|
-
"createStack",
|
|
955
|
-
'P)2!>"&/#'
|
|
956
|
-
];
|
|
957
|
-
function mergeStack(error, stack2) {
|
|
958
|
-
if (error instanceof Error && error.stack) {
|
|
959
|
-
error.stack += "\n" + stack2;
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
chunkMO4O4UYI_cjs.__name(mergeStack, "mergeStack");
|
|
963
|
-
mergeStack.__type = [
|
|
964
|
-
() => __\u03A9Error,
|
|
965
|
-
"error",
|
|
966
|
-
"stack",
|
|
967
|
-
"mergeStack",
|
|
968
|
-
'Pn!2"&2#"/$'
|
|
969
|
-
];
|
|
970
|
-
function ensureError(error, classType = Error) {
|
|
971
|
-
return error instanceof Error || error instanceof AggregateError ? error : new classType(error);
|
|
972
|
-
}
|
|
973
|
-
chunkMO4O4UYI_cjs.__name(ensureError, "ensureError");
|
|
974
|
-
ensureError.__type = [
|
|
975
|
-
"error",
|
|
976
|
-
() => __\u03A9ClassType,
|
|
977
|
-
"classType",
|
|
978
|
-
() => Error,
|
|
979
|
-
() => __\u03A9Error,
|
|
980
|
-
"ensureError",
|
|
981
|
-
'P"2!8n"2#>$n%/&'
|
|
982
|
-
];
|
|
983
|
-
function collectForMicrotask(callback) {
|
|
984
|
-
let items = [];
|
|
985
|
-
let taskScheduled = false;
|
|
986
|
-
return __assignType((arg) => {
|
|
987
|
-
items.push(arg);
|
|
988
|
-
if (!taskScheduled) {
|
|
989
|
-
taskScheduled = true;
|
|
990
|
-
queueMicrotask(() => {
|
|
991
|
-
taskScheduled = false;
|
|
992
|
-
callback(items);
|
|
993
|
-
items.length = 0;
|
|
994
|
-
});
|
|
995
|
-
}
|
|
996
|
-
}, [
|
|
997
|
-
() => callback,
|
|
998
|
-
"args",
|
|
999
|
-
"",
|
|
1000
|
-
"arg",
|
|
1001
|
-
'PPdi!Ph"!F2"$/#qe!!!j2$"/#'
|
|
1002
|
-
]);
|
|
1003
|
-
}
|
|
1004
|
-
chunkMO4O4UYI_cjs.__name(collectForMicrotask, "collectForMicrotask");
|
|
1005
|
-
collectForMicrotask.__type = [
|
|
1006
|
-
"args",
|
|
1007
|
-
"",
|
|
1008
|
-
"callback",
|
|
1009
|
-
"arg",
|
|
1010
|
-
"collectForMicrotask",
|
|
1011
|
-
'PP"F2!$/"2#P"2$$/"/%'
|
|
1012
|
-
];
|
|
1013
|
-
function time() {
|
|
1014
|
-
return Date.now() / 1e3;
|
|
1015
|
-
}
|
|
1016
|
-
chunkMO4O4UYI_cjs.__name(time, "time");
|
|
1017
|
-
time.__type = [
|
|
1018
|
-
"time",
|
|
1019
|
-
"P'/!"
|
|
1020
|
-
];
|
|
1021
|
-
function getPathValue(bag, parameterPath, defaultValue) {
|
|
1022
|
-
if (parameterPath === "" || parameterPath === void 0) return bag;
|
|
1023
|
-
if (isSet(bag[parameterPath])) {
|
|
1024
|
-
return bag[parameterPath];
|
|
1025
|
-
}
|
|
1026
|
-
const result = import_dot_prop.default.get(bag, parameterPath);
|
|
1027
|
-
return isSet(result) ? result : defaultValue;
|
|
1028
|
-
}
|
|
1029
|
-
chunkMO4O4UYI_cjs.__name(getPathValue, "getPathValue");
|
|
1030
|
-
getPathValue.__type = [
|
|
1031
|
-
"bag",
|
|
1032
|
-
"parameterPath",
|
|
1033
|
-
"defaultValue",
|
|
1034
|
-
"getPathValue",
|
|
1035
|
-
'PP&"LM2!&2""2#8"/$'
|
|
1036
|
-
];
|
|
1037
|
-
function setPathValue(bag, parameterPath, value) {
|
|
1038
|
-
import_dot_prop.default.set(bag, parameterPath, value);
|
|
1039
|
-
}
|
|
1040
|
-
chunkMO4O4UYI_cjs.__name(setPathValue, "setPathValue");
|
|
1041
|
-
setPathValue.__type = [
|
|
1042
|
-
"bag",
|
|
1043
|
-
"parameterPath",
|
|
1044
|
-
"value",
|
|
1045
|
-
"setPathValue",
|
|
1046
|
-
'P%2!&2""2#"/$'
|
|
1047
|
-
];
|
|
1048
|
-
function deletePathValue(bag, parameterPath) {
|
|
1049
|
-
import_dot_prop.default.delete(bag, parameterPath);
|
|
1050
|
-
}
|
|
1051
|
-
chunkMO4O4UYI_cjs.__name(deletePathValue, "deletePathValue");
|
|
1052
|
-
deletePathValue.__type = [
|
|
1053
|
-
"bag",
|
|
1054
|
-
"parameterPath",
|
|
1055
|
-
"deletePathValue",
|
|
1056
|
-
'P%2!&2""/#'
|
|
1057
|
-
];
|
|
1058
|
-
function humanBytes(bytes, si = false) {
|
|
1059
|
-
const thresh = si ? 1e3 : 1024;
|
|
1060
|
-
if (Math.abs(bytes) < thresh) {
|
|
1061
|
-
return bytes + " B";
|
|
1062
|
-
}
|
|
1063
|
-
const units = si ? [
|
|
1064
|
-
"kB",
|
|
1065
|
-
"MB",
|
|
1066
|
-
"GB",
|
|
1067
|
-
"TB",
|
|
1068
|
-
"PB",
|
|
1069
|
-
"EB",
|
|
1070
|
-
"ZB",
|
|
1071
|
-
"YB"
|
|
1072
|
-
] : [
|
|
1073
|
-
"KiB",
|
|
1074
|
-
"MiB",
|
|
1075
|
-
"GiB",
|
|
1076
|
-
"TiB",
|
|
1077
|
-
"PiB",
|
|
1078
|
-
"EiB",
|
|
1079
|
-
"ZiB",
|
|
1080
|
-
"YiB"
|
|
1081
|
-
];
|
|
1082
|
-
let u = -1;
|
|
1083
|
-
do {
|
|
1084
|
-
bytes /= thresh;
|
|
1085
|
-
++u;
|
|
1086
|
-
} while (Math.abs(bytes) >= thresh && u < units.length - 1);
|
|
1087
|
-
return bytes.toFixed(2) + " " + units[u];
|
|
1088
|
-
}
|
|
1089
|
-
chunkMO4O4UYI_cjs.__name(humanBytes, "humanBytes");
|
|
1090
|
-
humanBytes.__type = [
|
|
1091
|
-
"bytes",
|
|
1092
|
-
"si",
|
|
1093
|
-
() => false,
|
|
1094
|
-
"humanBytes",
|
|
1095
|
-
`P'2!)2">#&/$`
|
|
1096
|
-
];
|
|
1097
|
-
function getObjectKeysSize(obj) {
|
|
1098
|
-
let size2 = 0;
|
|
1099
|
-
for (let i in obj) if (obj.hasOwnProperty(i)) size2++;
|
|
1100
|
-
return size2;
|
|
1101
|
-
}
|
|
1102
|
-
chunkMO4O4UYI_cjs.__name(getObjectKeysSize, "getObjectKeysSize");
|
|
1103
|
-
getObjectKeysSize.__type = [
|
|
1104
|
-
"obj",
|
|
1105
|
-
"getObjectKeysSize",
|
|
1106
|
-
`P%2!'/"`
|
|
1107
|
-
];
|
|
1108
|
-
function isConstructable(fn) {
|
|
1109
|
-
try {
|
|
1110
|
-
new new Proxy(fn, {
|
|
1111
|
-
construct: /* @__PURE__ */ chunkMO4O4UYI_cjs.__name(() => ({}), "construct")
|
|
1112
|
-
})();
|
|
1113
|
-
return true;
|
|
1114
|
-
} catch (err) {
|
|
1115
|
-
return false;
|
|
1116
|
-
}
|
|
1117
|
-
}
|
|
1118
|
-
chunkMO4O4UYI_cjs.__name(isConstructable, "isConstructable");
|
|
1119
|
-
isConstructable.__type = [
|
|
1120
|
-
"fn",
|
|
1121
|
-
"isConstructable",
|
|
1122
|
-
'P"2!)/"'
|
|
1123
|
-
];
|
|
1124
|
-
function isPrototypeOfBase(prototype, base) {
|
|
1125
|
-
if (!prototype) return false;
|
|
1126
|
-
if (prototype === base) return true;
|
|
1127
|
-
let currentProto = Object.getPrototypeOf(prototype);
|
|
1128
|
-
while (currentProto && currentProto !== Object.prototype) {
|
|
1129
|
-
if (currentProto === base) return true;
|
|
1130
|
-
currentProto = Object.getPrototypeOf(currentProto);
|
|
1131
|
-
}
|
|
1132
|
-
return false;
|
|
1133
|
-
}
|
|
1134
|
-
chunkMO4O4UYI_cjs.__name(isPrototypeOfBase, "isPrototypeOfBase");
|
|
1135
|
-
isPrototypeOfBase.__type = [
|
|
1136
|
-
() => __\u03A9AbstractClassType,
|
|
1137
|
-
"prototype",
|
|
1138
|
-
() => __\u03A9ClassType,
|
|
1139
|
-
"base",
|
|
1140
|
-
"isPrototypeOfBase",
|
|
1141
|
-
'PPn!-J2"n#2$)/%'
|
|
1142
|
-
];
|
|
1143
|
-
function getParentClass(classType) {
|
|
1144
|
-
const parent = Object.getPrototypeOf(classType);
|
|
1145
|
-
if (parent === Object.prototype || Object.getPrototypeOf(parent) === Object.prototype) return;
|
|
1146
|
-
return parent;
|
|
1147
|
-
}
|
|
1148
|
-
chunkMO4O4UYI_cjs.__name(getParentClass, "getParentClass");
|
|
1149
|
-
getParentClass.__type = [
|
|
1150
|
-
() => __\u03A9ClassType,
|
|
1151
|
-
"classType",
|
|
1152
|
-
() => __\u03A9ClassType,
|
|
1153
|
-
"getParentClass",
|
|
1154
|
-
'Pn!2"Pn#-J/$'
|
|
1155
|
-
];
|
|
1156
|
-
function getInheritanceChain(classType) {
|
|
1157
|
-
const chain = [
|
|
1158
|
-
classType
|
|
1159
|
-
];
|
|
1160
|
-
let current = classType;
|
|
1161
|
-
while (current = getParentClass(current)) {
|
|
1162
|
-
chain.push(current);
|
|
1163
|
-
}
|
|
1164
|
-
return chain;
|
|
1165
|
-
}
|
|
1166
|
-
chunkMO4O4UYI_cjs.__name(getInheritanceChain, "getInheritanceChain");
|
|
1167
|
-
getInheritanceChain.__type = [
|
|
1168
|
-
() => __\u03A9ClassType,
|
|
1169
|
-
"classType",
|
|
1170
|
-
() => __\u03A9ClassType,
|
|
1171
|
-
"getInheritanceChain",
|
|
1172
|
-
'Pn!2"n#F/$'
|
|
1173
|
-
];
|
|
1174
|
-
function inDebugMode() {
|
|
1175
|
-
return typeof v8debug === "object" || typeof process !== "undefined" && /--debug|--inspect/.test(process.execArgv.join(" "));
|
|
1176
|
-
}
|
|
1177
|
-
chunkMO4O4UYI_cjs.__name(inDebugMode, "inDebugMode");
|
|
1178
|
-
inDebugMode.__type = [
|
|
1179
|
-
"inDebugMode",
|
|
1180
|
-
'P"/!'
|
|
1181
|
-
];
|
|
1182
|
-
function createDynamicClass(name, base) {
|
|
1183
|
-
if (base) {
|
|
1184
|
-
let baseName = getClassName(base);
|
|
1185
|
-
if (baseName === name) baseName += "Base";
|
|
1186
|
-
return new Function(baseName, `return class ${name} extends ${baseName} {}`)(base);
|
|
1187
|
-
}
|
|
1188
|
-
return new Function(`return class ${name} {}`)();
|
|
1189
|
-
}
|
|
1190
|
-
chunkMO4O4UYI_cjs.__name(createDynamicClass, "createDynamicClass");
|
|
1191
|
-
createDynamicClass.__type = [
|
|
1192
|
-
"name",
|
|
1193
|
-
() => __\u03A9ClassType,
|
|
1194
|
-
"base",
|
|
1195
|
-
() => __\u03A9ClassType,
|
|
1196
|
-
"createDynamicClass",
|
|
1197
|
-
'P&2!n"2#8n$/%'
|
|
1198
|
-
];
|
|
1199
|
-
function isIterable(value) {
|
|
1200
|
-
return isArray(value) || value instanceof Set || value instanceof Map;
|
|
1201
|
-
}
|
|
1202
|
-
chunkMO4O4UYI_cjs.__name(isIterable, "isIterable");
|
|
1203
|
-
isIterable.__type = [
|
|
1204
|
-
"value",
|
|
1205
|
-
"isIterable",
|
|
1206
|
-
'P"2!)/"'
|
|
1207
|
-
];
|
|
1208
|
-
function iterableSize(value) {
|
|
1209
|
-
return isArray(value) ? value.length : value.size || 0;
|
|
1210
|
-
}
|
|
1211
|
-
chunkMO4O4UYI_cjs.__name(iterableSize, "iterableSize");
|
|
1212
|
-
iterableSize.__type = [
|
|
1213
|
-
"value",
|
|
1214
|
-
"iterableSize",
|
|
1215
|
-
`PP#F#D##EJ2!'/"`
|
|
1216
|
-
];
|
|
1217
|
-
function getCurrentFileName() {
|
|
1218
|
-
const e = new Error();
|
|
1219
|
-
const initiator = e.stack.split("\n").slice(2, 3)[0];
|
|
1220
|
-
let path = /(?<path>[^(\s]+):[0-9]+:[0-9]+/.exec(initiator).groups.path;
|
|
1221
|
-
if (path.indexOf("file") >= 0) {
|
|
1222
|
-
path = new URL(path).pathname;
|
|
1223
|
-
}
|
|
1224
|
-
if (path[0] === "/" && process.platform === "win32") {
|
|
1225
|
-
path = path.slice(1);
|
|
1226
|
-
}
|
|
1227
|
-
return path;
|
|
1228
|
-
}
|
|
1229
|
-
chunkMO4O4UYI_cjs.__name(getCurrentFileName, "getCurrentFileName");
|
|
1230
|
-
getCurrentFileName.__type = [
|
|
1231
|
-
"getCurrentFileName",
|
|
1232
|
-
"P&/!"
|
|
1233
|
-
];
|
|
1234
|
-
function escapeRegExp(string) {
|
|
1235
|
-
return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1236
|
-
}
|
|
1237
|
-
chunkMO4O4UYI_cjs.__name(escapeRegExp, "escapeRegExp");
|
|
1238
|
-
escapeRegExp.__type = [
|
|
1239
|
-
"string",
|
|
1240
|
-
"escapeRegExp",
|
|
1241
|
-
'P&2!&/"'
|
|
1242
|
-
];
|
|
1243
|
-
function hasProperty(object, property) {
|
|
1244
|
-
return Object.prototype.hasOwnProperty.call(object, property);
|
|
1245
|
-
}
|
|
1246
|
-
chunkMO4O4UYI_cjs.__name(hasProperty, "hasProperty");
|
|
1247
|
-
hasProperty.__type = [
|
|
1248
|
-
"object",
|
|
1249
|
-
"property",
|
|
1250
|
-
"hasProperty",
|
|
1251
|
-
'P"2!"2")/#'
|
|
1252
|
-
];
|
|
1253
|
-
function* range(startOrLength, stop = 0, step = 1) {
|
|
1254
|
-
let i = startOrLength;
|
|
1255
|
-
let end = stop;
|
|
1256
|
-
if (stop === 0) {
|
|
1257
|
-
i = 0;
|
|
1258
|
-
end = startOrLength;
|
|
1259
|
-
}
|
|
1260
|
-
for (; i < end; i += step) {
|
|
1261
|
-
yield i;
|
|
1262
|
-
}
|
|
1263
|
-
}
|
|
1264
|
-
chunkMO4O4UYI_cjs.__name(range, "range");
|
|
1265
|
-
range.__type = [
|
|
1266
|
-
"startOrLength",
|
|
1267
|
-
"stop",
|
|
1268
|
-
() => 0,
|
|
1269
|
-
"step",
|
|
1270
|
-
() => 1,
|
|
1271
|
-
() => __\u03A9IterableIterator2,
|
|
1272
|
-
"range",
|
|
1273
|
-
`P'2!'2">#'2$>%'o&"/'`
|
|
1274
|
-
];
|
|
1275
|
-
function rangeArray(startOrLength, stop = 0, step = 1) {
|
|
1276
|
-
return [
|
|
1277
|
-
...range(startOrLength, stop, step)
|
|
1278
|
-
];
|
|
1279
|
-
}
|
|
1280
|
-
chunkMO4O4UYI_cjs.__name(rangeArray, "rangeArray");
|
|
1281
|
-
rangeArray.__type = [
|
|
1282
|
-
"startOrLength",
|
|
1283
|
-
"stop",
|
|
1284
|
-
() => 0,
|
|
1285
|
-
"step",
|
|
1286
|
-
() => 1,
|
|
1287
|
-
"rangeArray",
|
|
1288
|
-
`P'2!'2">#'2$>%'F/&`
|
|
1289
|
-
];
|
|
1290
|
-
function zip(...args) {
|
|
1291
|
-
const minLength = Math.min(...args.map(__assignType((arr) => arr.length, [
|
|
1292
|
-
"arr",
|
|
1293
|
-
"",
|
|
1294
|
-
'P"2!"/"'
|
|
1295
|
-
])));
|
|
1296
|
-
return Array.from({
|
|
1297
|
-
length: minLength
|
|
1298
|
-
}).map(__assignType((_, i) => args.map(__assignType((arr) => arr[i], [
|
|
1299
|
-
"arr",
|
|
1300
|
-
"",
|
|
1301
|
-
'P"2!"/"'
|
|
1302
|
-
])), [
|
|
1303
|
-
"_",
|
|
1304
|
-
"i",
|
|
1305
|
-
"",
|
|
1306
|
-
'P"2!"2""/#'
|
|
1307
|
-
]));
|
|
1308
|
-
}
|
|
1309
|
-
chunkMO4O4UYI_cjs.__name(zip, "zip");
|
|
1310
|
-
zip.__type = [
|
|
1311
|
-
"args",
|
|
1312
|
-
"zip",
|
|
1313
|
-
`l:e"!R!RPd"e#!fh!!Fqk#'QRP"@2!Pd"gN)!F/"`
|
|
1314
|
-
];
|
|
1315
|
-
function forwardTypeArguments(x, y) {
|
|
1316
|
-
y.\u03A9 = x.\u03A9;
|
|
1317
|
-
x.\u03A9 = void 0;
|
|
1318
|
-
}
|
|
1319
|
-
chunkMO4O4UYI_cjs.__name(forwardTypeArguments, "forwardTypeArguments");
|
|
1320
|
-
forwardTypeArguments.__type = [
|
|
1321
|
-
"x",
|
|
1322
|
-
"y",
|
|
1323
|
-
"forwardTypeArguments",
|
|
1324
|
-
'P"2!"2"$/#'
|
|
1325
|
-
];
|
|
1326
|
-
function formatError(error, withStack = false) {
|
|
1327
|
-
if (error && error.name === "AggregateError" && "errors" in error) {
|
|
1328
|
-
return `${withStack && error.stack || `AggregateError: ${error.message}`}
|
|
1329
|
-
Errors:
|
|
1330
|
-
${error.errors.map(__assignType((v) => formatError(v), [
|
|
1331
|
-
"v",
|
|
1332
|
-
"",
|
|
1333
|
-
'P"2!"/"'
|
|
1334
|
-
])).join("\n")}`;
|
|
1335
|
-
}
|
|
1336
|
-
if (error instanceof Error) {
|
|
1337
|
-
let current = error.cause;
|
|
1338
|
-
let errors = [
|
|
1339
|
-
withStack && error.stack || error.message || "Error"
|
|
1340
|
-
];
|
|
1341
|
-
while (current) {
|
|
1342
|
-
errors.push(`cause by ${formatError(current)}`);
|
|
1343
|
-
current = current.cause;
|
|
1344
|
-
}
|
|
1345
|
-
return errors.join("\n");
|
|
1346
|
-
}
|
|
1347
|
-
if (withStack && error.stack) return error.stack;
|
|
1348
|
-
return String(error);
|
|
1349
|
-
}
|
|
1350
|
-
chunkMO4O4UYI_cjs.__name(formatError, "formatError");
|
|
1351
|
-
formatError.__type = [
|
|
1352
|
-
"error",
|
|
1353
|
-
"withStack",
|
|
1354
|
-
() => false,
|
|
1355
|
-
"formatError",
|
|
1356
|
-
'P"2!)2">#&/$'
|
|
1357
|
-
];
|
|
1358
|
-
function assertInstanceOf(object, constructor) {
|
|
1359
|
-
if (!(object instanceof constructor)) {
|
|
1360
|
-
throw new Error(`Object ${getClassName(object)} is not an instance of the expected class ${getClassName(constructor)}`);
|
|
1361
|
-
}
|
|
1362
|
-
}
|
|
1363
|
-
chunkMO4O4UYI_cjs.__name(assertInstanceOf, "assertInstanceOf");
|
|
1364
|
-
assertInstanceOf.__type = [
|
|
1365
|
-
"object",
|
|
1366
|
-
"args",
|
|
1367
|
-
"new",
|
|
1368
|
-
"constructor",
|
|
1369
|
-
"assertInstanceOf",
|
|
1370
|
-
'P"2!PP"@2""1#M2$!/%'
|
|
1371
|
-
];
|
|
1372
|
-
function assertDefined(value) {
|
|
1373
|
-
if (value === null || value === void 0) {
|
|
1374
|
-
throw new Error(`Value is not defined`);
|
|
1375
|
-
}
|
|
1376
|
-
}
|
|
1377
|
-
chunkMO4O4UYI_cjs.__name(assertDefined, "assertDefined");
|
|
1378
|
-
assertDefined.__type = [
|
|
1379
|
-
"value",
|
|
1380
|
-
"assertDefined",
|
|
1381
|
-
'P"2!!/"'
|
|
1382
|
-
];
|
|
1383
|
-
|
|
1384
|
-
// ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/perf.js
|
|
1385
|
-
chunkMO4O4UYI_cjs.init_cjs_shims();
|
|
1386
|
-
var import_to_fast_properties = chunkMO4O4UYI_cjs.__toESM(require_to_fast_properties(), 1);
|
|
1387
|
-
function toFastProperties(obj) {
|
|
1388
|
-
(0, import_to_fast_properties.default)(obj);
|
|
1389
|
-
}
|
|
1390
|
-
chunkMO4O4UYI_cjs.__name(toFastProperties, "toFastProperties");
|
|
1391
|
-
toFastProperties.__type = [
|
|
1392
|
-
"obj",
|
|
1393
|
-
"toFastProperties",
|
|
1394
|
-
'P"2!"/"'
|
|
1395
|
-
];
|
|
1396
|
-
|
|
1397
|
-
// ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/decorators.js
|
|
1398
|
-
chunkMO4O4UYI_cjs.init_cjs_shims();
|
|
1399
|
-
var __\u03A9PropertyDescriptor = [
|
|
1400
|
-
"configurable",
|
|
1401
|
-
"enumerable",
|
|
1402
|
-
"value",
|
|
1403
|
-
"writable",
|
|
1404
|
-
"get",
|
|
1405
|
-
"v",
|
|
1406
|
-
"set",
|
|
1407
|
-
"PropertyDescriptor",
|
|
1408
|
-
`P)4!8)4"8"4#8)4$8P"1%P"2&$1'Mw(y`
|
|
1409
|
-
];
|
|
1410
|
-
var __\u03A9TypedPropertyDescriptor = [
|
|
1411
|
-
"T",
|
|
1412
|
-
"enumerable",
|
|
1413
|
-
"configurable",
|
|
1414
|
-
"writable",
|
|
1415
|
-
"value",
|
|
1416
|
-
"",
|
|
1417
|
-
"get",
|
|
1418
|
-
"set",
|
|
1419
|
-
"TypedPropertyDescriptor",
|
|
1420
|
-
`b!P)4"8)4#8)4$8e"!4%8Pe#!/&4'8Pe#!2%$/&4(8Mw)y`
|
|
1421
|
-
];
|
|
1422
|
-
function __assignType2(fn, args) {
|
|
1423
|
-
fn.__type = args;
|
|
1424
|
-
return fn;
|
|
1425
|
-
}
|
|
1426
|
-
chunkMO4O4UYI_cjs.__name(__assignType2, "__assignType");
|
|
1427
|
-
function log() {
|
|
1428
|
-
return __assignType2(function(target, propertyKey, descriptor) {
|
|
1429
|
-
const orig = descriptor.value;
|
|
1430
|
-
descriptor.value = __assignType2(function(...args) {
|
|
1431
|
-
const a = args.map(__assignType2((v) => typeof v, [
|
|
1432
|
-
"v",
|
|
1433
|
-
"",
|
|
1434
|
-
'P"2!"/"'
|
|
1435
|
-
])).join(",");
|
|
1436
|
-
console.info(getClassName(target) + "::" + String(propertyKey) + "(" + a + ")");
|
|
1437
|
-
return orig.apply(this, args);
|
|
1438
|
-
}, [
|
|
1439
|
-
"args",
|
|
1440
|
-
"",
|
|
1441
|
-
'P"@2!"/"'
|
|
1442
|
-
]);
|
|
1443
|
-
return descriptor;
|
|
1444
|
-
}, [
|
|
1445
|
-
"target",
|
|
1446
|
-
"propertyKey",
|
|
1447
|
-
() => __\u03A9PropertyDescriptor,
|
|
1448
|
-
"descriptor",
|
|
1449
|
-
"",
|
|
1450
|
-
'P%2!P&+J2"n#2$"/%'
|
|
1451
|
-
]);
|
|
1452
|
-
}
|
|
1453
|
-
chunkMO4O4UYI_cjs.__name(log, "log");
|
|
1454
|
-
log.__type = [
|
|
1455
|
-
"log",
|
|
1456
|
-
'P"/!'
|
|
1457
|
-
];
|
|
1458
|
-
function stack() {
|
|
1459
|
-
return __assignType2(function(target, propertyKey, descriptor) {
|
|
1460
|
-
const orig = descriptor.value;
|
|
1461
|
-
descriptor.value = __assignType2(async function(...args) {
|
|
1462
|
-
const name = "__c_" + propertyKey;
|
|
1463
|
-
if (this[name] === void 0) {
|
|
1464
|
-
this[name] = null;
|
|
1465
|
-
toFastProperties(this);
|
|
1466
|
-
}
|
|
1467
|
-
while (this[name]) {
|
|
1468
|
-
await this[name];
|
|
1469
|
-
}
|
|
1470
|
-
this[name] = orig.apply(this, args);
|
|
1471
|
-
try {
|
|
1472
|
-
return await this[name];
|
|
1473
|
-
} finally {
|
|
1474
|
-
this[name] = null;
|
|
1475
|
-
}
|
|
1476
|
-
}, [
|
|
1477
|
-
"args",
|
|
1478
|
-
"",
|
|
1479
|
-
'P"@2!"/"'
|
|
1480
|
-
]);
|
|
1481
|
-
}, [
|
|
1482
|
-
"target",
|
|
1483
|
-
"propertyKey",
|
|
1484
|
-
() => __\u03A9TypedPropertyDescriptor,
|
|
1485
|
-
"args",
|
|
1486
|
-
"",
|
|
1487
|
-
"descriptor",
|
|
1488
|
-
'P%2!&2"P"@2$"`/%o#"2&"/%'
|
|
1489
|
-
]);
|
|
1490
|
-
}
|
|
1491
|
-
chunkMO4O4UYI_cjs.__name(stack, "stack");
|
|
1492
|
-
stack.__type = [
|
|
1493
|
-
"stack",
|
|
1494
|
-
'P"/!'
|
|
1495
|
-
];
|
|
1496
|
-
function singleStack() {
|
|
1497
|
-
return __assignType2(function(target, propertyKey, descriptor) {
|
|
1498
|
-
const orig = descriptor.value;
|
|
1499
|
-
descriptor.value = __assignType2(async function(...args) {
|
|
1500
|
-
const name = "__sc_" + propertyKey;
|
|
1501
|
-
if (this[name] === void 0) {
|
|
1502
|
-
this[name] = null;
|
|
1503
|
-
toFastProperties(this);
|
|
1504
|
-
}
|
|
1505
|
-
if (this[name]) {
|
|
1506
|
-
return await this[name];
|
|
1507
|
-
}
|
|
1508
|
-
this[name] = orig.apply(this, args);
|
|
1509
|
-
try {
|
|
1510
|
-
return await this[name];
|
|
1511
|
-
} finally {
|
|
1512
|
-
this[name] = null;
|
|
1513
|
-
}
|
|
1514
|
-
}, [
|
|
1515
|
-
"args",
|
|
1516
|
-
"",
|
|
1517
|
-
'P"@2!"/"'
|
|
1518
|
-
]);
|
|
1519
|
-
}, [
|
|
1520
|
-
"target",
|
|
1521
|
-
"propertyKey",
|
|
1522
|
-
() => __\u03A9TypedPropertyDescriptor,
|
|
1523
|
-
"args",
|
|
1524
|
-
"",
|
|
1525
|
-
"descriptor",
|
|
1526
|
-
'P%2!&2"P"@2$"`/%o#"2&"/%'
|
|
1527
|
-
]);
|
|
1528
|
-
}
|
|
1529
|
-
chunkMO4O4UYI_cjs.__name(singleStack, "singleStack");
|
|
1530
|
-
singleStack.__type = [
|
|
1531
|
-
"singleStack",
|
|
1532
|
-
'P"/!'
|
|
1533
|
-
];
|
|
1534
|
-
|
|
1535
|
-
// ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/enum.js
|
|
1536
|
-
chunkMO4O4UYI_cjs.init_cjs_shims();
|
|
1537
|
-
var __\u03A9Object2 = [
|
|
1538
|
-
() => Function,
|
|
1539
|
-
"constructor",
|
|
1540
|
-
"toString",
|
|
1541
|
-
"toLocaleString",
|
|
1542
|
-
0,
|
|
1543
|
-
"valueOf",
|
|
1544
|
-
() => __\u03A9PropertyKey2,
|
|
1545
|
-
"v",
|
|
1546
|
-
"hasOwnProperty",
|
|
1547
|
-
0,
|
|
1548
|
-
"isPrototypeOf",
|
|
1549
|
-
() => __\u03A9PropertyKey2,
|
|
1550
|
-
"propertyIsEnumerable",
|
|
1551
|
-
"Object",
|
|
1552
|
-
`PPu!4"P&1#P&1$Pn%1&Pn'2()1)Pn*2()1+Pn,2()1-Mw.y`
|
|
1553
|
-
];
|
|
1554
|
-
var __\u03A9PropertyKey2 = [
|
|
1555
|
-
"PropertyKey",
|
|
1556
|
-
"P&'+Jw!y"
|
|
1557
|
-
];
|
|
1558
|
-
function __assignType3(fn, args) {
|
|
1559
|
-
fn.__type = args;
|
|
1560
|
-
return fn;
|
|
1561
|
-
}
|
|
1562
|
-
chunkMO4O4UYI_cjs.__name(__assignType3, "__assignType");
|
|
1563
|
-
var cacheEnumLabels = (Map.\u03A9 = [
|
|
1564
|
-
[
|
|
1565
|
-
() => __\u03A9Object2,
|
|
1566
|
-
"n!"
|
|
1567
|
-
],
|
|
1568
|
-
[
|
|
1569
|
-
"&F"
|
|
1570
|
-
]
|
|
1571
|
-
], /* @__PURE__ */ new Map());
|
|
1572
|
-
function getEnumLabel(enumType, id) {
|
|
1573
|
-
for (const i of eachKey(enumType)) {
|
|
1574
|
-
if (id === enumType[i]) {
|
|
1575
|
-
return i;
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
1578
|
-
}
|
|
1579
|
-
chunkMO4O4UYI_cjs.__name(getEnumLabel, "getEnumLabel");
|
|
1580
|
-
getEnumLabel.__type = [
|
|
1581
|
-
"enumType",
|
|
1582
|
-
"id",
|
|
1583
|
-
"getEnumLabel",
|
|
1584
|
-
'PP&"LM2!"2""/#'
|
|
1585
|
-
];
|
|
1586
|
-
function getEnumLabels(enumDefinition) {
|
|
1587
|
-
let value = cacheEnumLabels.get(enumDefinition);
|
|
1588
|
-
if (!value) {
|
|
1589
|
-
value = Object.keys(enumDefinition).filter(__assignType3((v) => !Number.isFinite(parseInt(v, 10)), [
|
|
1590
|
-
"v",
|
|
1591
|
-
"",
|
|
1592
|
-
'P"2!"/"'
|
|
1593
|
-
]));
|
|
1594
|
-
cacheEnumLabels.set(enumDefinition, value);
|
|
1595
|
-
}
|
|
1596
|
-
return value;
|
|
1597
|
-
}
|
|
1598
|
-
chunkMO4O4UYI_cjs.__name(getEnumLabels, "getEnumLabels");
|
|
1599
|
-
getEnumLabels.__type = [
|
|
1600
|
-
"enumDefinition",
|
|
1601
|
-
"getEnumLabels",
|
|
1602
|
-
'P"2!"/"'
|
|
1603
|
-
];
|
|
1604
|
-
var cacheEnumKeys = (Map.\u03A9 = [
|
|
1605
|
-
[
|
|
1606
|
-
() => __\u03A9Object2,
|
|
1607
|
-
"n!"
|
|
1608
|
-
],
|
|
1609
|
-
[
|
|
1610
|
-
"&F"
|
|
1611
|
-
]
|
|
1612
|
-
], /* @__PURE__ */ new Map());
|
|
1613
|
-
function getEnumValues(enumDefinition) {
|
|
1614
|
-
let value = cacheEnumKeys.get(enumDefinition);
|
|
1615
|
-
if (!value) {
|
|
1616
|
-
value = Object.values(enumDefinition).filter(__assignType3((v) => {
|
|
1617
|
-
return "number" !== typeof enumDefinition[v];
|
|
1618
|
-
}, [
|
|
1619
|
-
"v",
|
|
1620
|
-
"",
|
|
1621
|
-
'P"2!"/"'
|
|
1622
|
-
]));
|
|
1623
|
-
cacheEnumKeys.set(enumDefinition, value);
|
|
1624
|
-
}
|
|
1625
|
-
return value;
|
|
1626
|
-
}
|
|
1627
|
-
chunkMO4O4UYI_cjs.__name(getEnumValues, "getEnumValues");
|
|
1628
|
-
getEnumValues.__type = [
|
|
1629
|
-
"enumDefinition",
|
|
1630
|
-
"getEnumValues",
|
|
1631
|
-
'P"2!"F/"'
|
|
1632
|
-
];
|
|
1633
|
-
function getEnumKeyLabelMap(enumDefinition) {
|
|
1634
|
-
const map = (Map.\u03A9 = [
|
|
1635
|
-
[
|
|
1636
|
-
'"'
|
|
1637
|
-
],
|
|
1638
|
-
[
|
|
1639
|
-
"&"
|
|
1640
|
-
]
|
|
1641
|
-
], /* @__PURE__ */ new Map());
|
|
1642
|
-
const keys = getEnumValues(enumDefinition);
|
|
1643
|
-
const labels = getEnumLabels(enumDefinition);
|
|
1644
|
-
for (let i = 0; i < keys.length; i++) {
|
|
1645
|
-
map.set(keys[i], labels[i]);
|
|
1646
|
-
}
|
|
1647
|
-
return map;
|
|
1648
|
-
}
|
|
1649
|
-
chunkMO4O4UYI_cjs.__name(getEnumKeyLabelMap, "getEnumKeyLabelMap");
|
|
1650
|
-
getEnumKeyLabelMap.__type = [
|
|
1651
|
-
"enumDefinition",
|
|
1652
|
-
"getEnumKeyLabelMap",
|
|
1653
|
-
'P"2!"&E/"'
|
|
1654
|
-
];
|
|
1655
|
-
function isValidEnumValue(enumDefinition, value, allowLabelsAsValue = false) {
|
|
1656
|
-
if (allowLabelsAsValue) {
|
|
1657
|
-
const labels = getEnumLabels(enumDefinition);
|
|
1658
|
-
if (-1 !== labels.indexOf(String(value))) {
|
|
1659
|
-
return true;
|
|
1660
|
-
}
|
|
1661
|
-
}
|
|
1662
|
-
const values = getEnumValues(enumDefinition);
|
|
1663
|
-
return -1 !== values.indexOf(+value) || -1 !== values.indexOf(value) || -1 !== values.indexOf(String(value));
|
|
1664
|
-
}
|
|
1665
|
-
chunkMO4O4UYI_cjs.__name(isValidEnumValue, "isValidEnumValue");
|
|
1666
|
-
isValidEnumValue.__type = [
|
|
1667
|
-
"enumDefinition",
|
|
1668
|
-
"value",
|
|
1669
|
-
"allowLabelsAsValue",
|
|
1670
|
-
"isValidEnumValue",
|
|
1671
|
-
'P"2!"2""2#"/$'
|
|
1672
|
-
];
|
|
1673
|
-
function getValidEnumValue(enumDefinition, value, allowLabelsAsValue = false) {
|
|
1674
|
-
if (allowLabelsAsValue) {
|
|
1675
|
-
const labels = getEnumLabels(enumDefinition);
|
|
1676
|
-
if (-1 !== labels.indexOf(String(value))) {
|
|
1677
|
-
return enumDefinition[String(value)];
|
|
1678
|
-
}
|
|
1679
|
-
}
|
|
1680
|
-
const values = getEnumValues(enumDefinition);
|
|
1681
|
-
if (-1 !== values.indexOf(value)) {
|
|
1682
|
-
return value;
|
|
1683
|
-
}
|
|
1684
|
-
if (-1 !== values.indexOf(+value)) {
|
|
1685
|
-
return +value;
|
|
1686
|
-
}
|
|
1687
|
-
if (-1 !== values.indexOf(String(value))) {
|
|
1688
|
-
return String(value);
|
|
1689
|
-
}
|
|
1690
|
-
}
|
|
1691
|
-
chunkMO4O4UYI_cjs.__name(getValidEnumValue, "getValidEnumValue");
|
|
1692
|
-
getValidEnumValue.__type = [
|
|
1693
|
-
"enumDefinition",
|
|
1694
|
-
"value",
|
|
1695
|
-
"allowLabelsAsValue",
|
|
1696
|
-
"getValidEnumValue",
|
|
1697
|
-
'P"2!"2""2#"/$'
|
|
1698
|
-
];
|
|
1699
|
-
|
|
1700
|
-
// ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/timer.js
|
|
1701
|
-
chunkMO4O4UYI_cjs.init_cjs_shims();
|
|
1702
|
-
var Timer = class {
|
|
1703
|
-
static {
|
|
1704
|
-
chunkMO4O4UYI_cjs.__name(this, "Timer");
|
|
1705
|
-
}
|
|
1706
|
-
constructor() {
|
|
1707
|
-
this.timeoutTimers = [];
|
|
1708
|
-
}
|
|
1709
|
-
setTimeout(cb, timeout) {
|
|
1710
|
-
const timer = setTimeout(cb, timeout);
|
|
1711
|
-
this.timeoutTimers.push(timer);
|
|
1712
|
-
return timer;
|
|
1713
|
-
}
|
|
1714
|
-
/**
|
|
1715
|
-
* Clears all timers at once.
|
|
1716
|
-
*/
|
|
1717
|
-
clear() {
|
|
1718
|
-
for (const timeout of this.timeoutTimers) {
|
|
1719
|
-
clearTimeout(timeout);
|
|
1720
|
-
}
|
|
1721
|
-
}
|
|
1722
|
-
};
|
|
1723
|
-
Timer.__type = [
|
|
1724
|
-
"timeoutTimers",
|
|
1725
|
-
function() {
|
|
1726
|
-
return [];
|
|
1727
|
-
},
|
|
1728
|
-
"",
|
|
1729
|
-
"cb",
|
|
1730
|
-
"timeout",
|
|
1731
|
-
"setTimeout",
|
|
1732
|
-
"clear",
|
|
1733
|
-
"Timer",
|
|
1734
|
-
`"F3!<>"PP$/#2$'2%"0&P"0'5w(`
|
|
1735
|
-
];
|
|
1736
|
-
|
|
1737
|
-
// ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/array.js
|
|
1738
|
-
chunkMO4O4UYI_cjs.init_cjs_shims();
|
|
1739
|
-
function arrayHasItem(array, item) {
|
|
1740
|
-
return -1 !== array.indexOf(item);
|
|
1741
|
-
}
|
|
1742
|
-
chunkMO4O4UYI_cjs.__name(arrayHasItem, "arrayHasItem");
|
|
1743
|
-
arrayHasItem.__type = [
|
|
1744
|
-
"array",
|
|
1745
|
-
"item",
|
|
1746
|
-
"arrayHasItem",
|
|
1747
|
-
'P"F2!"2")/#'
|
|
1748
|
-
];
|
|
1749
|
-
function arrayClear(array) {
|
|
1750
|
-
const found = array.length;
|
|
1751
|
-
array.length = 0;
|
|
1752
|
-
return found;
|
|
1753
|
-
}
|
|
1754
|
-
chunkMO4O4UYI_cjs.__name(arrayClear, "arrayClear");
|
|
1755
|
-
arrayClear.__type = [
|
|
1756
|
-
"array",
|
|
1757
|
-
"arrayClear",
|
|
1758
|
-
`P"F2!'/"`
|
|
1759
|
-
];
|
|
1760
|
-
function arrayRemoveItem(array, item) {
|
|
1761
|
-
const index = array.indexOf(item);
|
|
1762
|
-
if (-1 !== index) {
|
|
1763
|
-
array.splice(index, 1);
|
|
1764
|
-
return true;
|
|
1765
|
-
}
|
|
1766
|
-
return false;
|
|
1767
|
-
}
|
|
1768
|
-
chunkMO4O4UYI_cjs.__name(arrayRemoveItem, "arrayRemoveItem");
|
|
1769
|
-
arrayRemoveItem.__type = [
|
|
1770
|
-
"array",
|
|
1771
|
-
"item",
|
|
1772
|
-
"arrayRemoveItem",
|
|
1773
|
-
'P"F2!"2")/#'
|
|
1774
|
-
];
|
|
1775
|
-
function arrayMoveItem(array, item, move) {
|
|
1776
|
-
if (move === 0) return array;
|
|
1777
|
-
const index = array.indexOf(item);
|
|
1778
|
-
if (-1 !== index) {
|
|
1779
|
-
const newIndex = index + move;
|
|
1780
|
-
array.splice(index, 1);
|
|
1781
|
-
if (newIndex <= 0) {
|
|
1782
|
-
array.unshift(item);
|
|
1783
|
-
} else if (newIndex >= array.length) {
|
|
1784
|
-
array.push(item);
|
|
1785
|
-
} else {
|
|
1786
|
-
array.splice(newIndex, 0, item);
|
|
1787
|
-
}
|
|
1788
|
-
}
|
|
1789
|
-
return array;
|
|
1790
|
-
}
|
|
1791
|
-
chunkMO4O4UYI_cjs.__name(arrayMoveItem, "arrayMoveItem");
|
|
1792
|
-
arrayMoveItem.__type = [
|
|
1793
|
-
"array",
|
|
1794
|
-
"item",
|
|
1795
|
-
"move",
|
|
1796
|
-
"arrayMoveItem",
|
|
1797
|
-
`P"2!"2"'2#"/$`
|
|
1798
|
-
];
|
|
1799
|
-
|
|
1800
|
-
// ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/process-locker.js
|
|
1801
|
-
chunkMO4O4UYI_cjs.init_cjs_shims();
|
|
1802
|
-
function __assignType4(fn, args) {
|
|
1803
|
-
fn.__type = args;
|
|
1804
|
-
return fn;
|
|
1805
|
-
}
|
|
1806
|
-
chunkMO4O4UYI_cjs.__name(__assignType4, "__assignType");
|
|
1807
|
-
var LOCKS = {};
|
|
1808
|
-
var ProcessLock = class {
|
|
1809
|
-
static {
|
|
1810
|
-
chunkMO4O4UYI_cjs.__name(this, "ProcessLock");
|
|
1811
|
-
}
|
|
1812
|
-
constructor(id) {
|
|
1813
|
-
this.id = id;
|
|
1814
|
-
this.holding = false;
|
|
1815
|
-
}
|
|
1816
|
-
async acquire(ttl = 0, timeout = 0) {
|
|
1817
|
-
if (this.holding) {
|
|
1818
|
-
throw new Error("Lock already acquired");
|
|
1819
|
-
}
|
|
1820
|
-
return Promise.\u03A9 = [
|
|
1821
|
-
[
|
|
1822
|
-
"$"
|
|
1823
|
-
]
|
|
1824
|
-
], new Promise(__assignType4((resolve, reject) => {
|
|
1825
|
-
if (LOCKS[this.id]) {
|
|
1826
|
-
let timeoutId;
|
|
1827
|
-
const ourTake = /* @__PURE__ */ chunkMO4O4UYI_cjs.__name(() => {
|
|
1828
|
-
LOCKS[this.id].time = Date.now() / 1e3;
|
|
1829
|
-
clearTimeout(timeoutId);
|
|
1830
|
-
this.holding = true;
|
|
1831
|
-
resolve();
|
|
1832
|
-
if (ttl) {
|
|
1833
|
-
this.ttlTimeout = setTimeout(() => {
|
|
1834
|
-
this.unlock();
|
|
1835
|
-
}, ttl * 1e3);
|
|
1836
|
-
}
|
|
1837
|
-
}, "ourTake");
|
|
1838
|
-
if (timeout > 0) {
|
|
1839
|
-
timeoutId = setTimeout(() => {
|
|
1840
|
-
if (LOCKS[this.id]) arrayRemoveItem(LOCKS[this.id].queue, ourTake);
|
|
1841
|
-
reject("Lock timed out " + this.id);
|
|
1842
|
-
}, timeout * 1e3);
|
|
1843
|
-
}
|
|
1844
|
-
LOCKS[this.id].queue.push(ourTake);
|
|
1845
|
-
} else {
|
|
1846
|
-
LOCKS[this.id] = {
|
|
1847
|
-
time: Date.now() / 1e3,
|
|
1848
|
-
queue: []
|
|
1849
|
-
};
|
|
1850
|
-
this.holding = true;
|
|
1851
|
-
resolve();
|
|
1852
|
-
if (ttl) {
|
|
1853
|
-
this.ttlTimeout = setTimeout(() => {
|
|
1854
|
-
this.unlock();
|
|
1855
|
-
}, ttl * 1e3);
|
|
1856
|
-
}
|
|
1857
|
-
}
|
|
1858
|
-
}, [
|
|
1859
|
-
"resolve",
|
|
1860
|
-
"reject",
|
|
1861
|
-
"",
|
|
1862
|
-
'P"2!"2""/#'
|
|
1863
|
-
]));
|
|
1864
|
-
}
|
|
1865
|
-
isLocked() {
|
|
1866
|
-
return this.holding;
|
|
1867
|
-
}
|
|
1868
|
-
tryLock(ttl = 0) {
|
|
1869
|
-
this.holding = false;
|
|
1870
|
-
if (!LOCKS[this.id]) {
|
|
1871
|
-
LOCKS[this.id] = {
|
|
1872
|
-
time: Date.now() / 1e3,
|
|
1873
|
-
queue: []
|
|
1874
|
-
};
|
|
1875
|
-
this.holding = true;
|
|
1876
|
-
if (ttl) {
|
|
1877
|
-
this.ttlTimeout = setTimeout(() => {
|
|
1878
|
-
this.unlock();
|
|
1879
|
-
}, ttl * 1e3);
|
|
1880
|
-
}
|
|
1881
|
-
}
|
|
1882
|
-
return this.holding;
|
|
1883
|
-
}
|
|
1884
|
-
unlock() {
|
|
1885
|
-
clearTimeout(this.ttlTimeout);
|
|
1886
|
-
if (!this.holding) {
|
|
1887
|
-
return;
|
|
1888
|
-
}
|
|
1889
|
-
this.holding = false;
|
|
1890
|
-
if (LOCKS[this.id].queue.length) {
|
|
1891
|
-
const next = LOCKS[this.id].queue.shift();
|
|
1892
|
-
next();
|
|
1893
|
-
} else {
|
|
1894
|
-
delete LOCKS[this.id];
|
|
1895
|
-
}
|
|
1896
|
-
}
|
|
1897
|
-
};
|
|
1898
|
-
ProcessLock.__type = [
|
|
1899
|
-
"holding",
|
|
1900
|
-
function() {
|
|
1901
|
-
return false;
|
|
1902
|
-
},
|
|
1903
|
-
"ttlTimeout",
|
|
1904
|
-
"id",
|
|
1905
|
-
"constructor",
|
|
1906
|
-
"ttl",
|
|
1907
|
-
() => 0,
|
|
1908
|
-
"timeout",
|
|
1909
|
-
() => 0,
|
|
1910
|
-
"acquire",
|
|
1911
|
-
"isLocked",
|
|
1912
|
-
() => 0,
|
|
1913
|
-
"tryLock",
|
|
1914
|
-
"unlock",
|
|
1915
|
-
"ProcessLock",
|
|
1916
|
-
`)3!;>""3#<P&2$:9"0%P'2&>''2(>)"0*P"0+P'2&>,"0-P"0.5w/`
|
|
1917
|
-
];
|
|
1918
|
-
var ProcessLocker = class {
|
|
1919
|
-
static {
|
|
1920
|
-
chunkMO4O4UYI_cjs.__name(this, "ProcessLocker");
|
|
1921
|
-
}
|
|
1922
|
-
/**
|
|
1923
|
-
*
|
|
1924
|
-
* @param id
|
|
1925
|
-
* @param ttl optional defines when the times automatically unlocks.
|
|
1926
|
-
* @param timeout if after `timeout` seconds the lock isn't acquired, it throws an error.
|
|
1927
|
-
*/
|
|
1928
|
-
async acquireLock(id, ttl = 0, timeout = 0) {
|
|
1929
|
-
const lock = new ProcessLock(id);
|
|
1930
|
-
await lock.acquire(ttl, timeout);
|
|
1931
|
-
return lock;
|
|
1932
|
-
}
|
|
1933
|
-
async tryLock(id, ttl = 0) {
|
|
1934
|
-
const lock = new ProcessLock(id);
|
|
1935
|
-
if (lock.tryLock(ttl)) {
|
|
1936
|
-
return lock;
|
|
1937
|
-
}
|
|
1938
|
-
return;
|
|
1939
|
-
}
|
|
1940
|
-
isLocked(id) {
|
|
1941
|
-
return !!LOCKS[id];
|
|
1942
|
-
}
|
|
1943
|
-
};
|
|
1944
|
-
ProcessLocker.__type = [
|
|
1945
|
-
"id",
|
|
1946
|
-
"ttl",
|
|
1947
|
-
() => 0,
|
|
1948
|
-
"timeout",
|
|
1949
|
-
() => 0,
|
|
1950
|
-
() => ProcessLock,
|
|
1951
|
-
"acquireLock",
|
|
1952
|
-
() => 0,
|
|
1953
|
-
() => ProcessLock,
|
|
1954
|
-
"tryLock",
|
|
1955
|
-
"isLocked",
|
|
1956
|
-
"ProcessLocker",
|
|
1957
|
-
"P&2!'2\">#'2$>%P7&`0'P&2!'2\">(PP7)-J`0*P&2!)0+5w,"
|
|
1958
|
-
];
|
|
1959
|
-
var Mutex = class {
|
|
1960
|
-
static {
|
|
1961
|
-
chunkMO4O4UYI_cjs.__name(this, "Mutex");
|
|
1962
|
-
}
|
|
1963
|
-
unlock() {
|
|
1964
|
-
if (this.resolver) this.resolver();
|
|
1965
|
-
this.promise = void 0;
|
|
1966
|
-
}
|
|
1967
|
-
async lock() {
|
|
1968
|
-
while (this.promise) {
|
|
1969
|
-
await this.promise;
|
|
1970
|
-
}
|
|
1971
|
-
this.promise = new Promise(__assignType4((resolver) => {
|
|
1972
|
-
this.resolver = resolver;
|
|
1973
|
-
}, [
|
|
1974
|
-
"resolver",
|
|
1975
|
-
"",
|
|
1976
|
-
'P"2!"/"'
|
|
1977
|
-
]));
|
|
1978
|
-
}
|
|
1979
|
-
};
|
|
1980
|
-
Mutex.__type = [
|
|
1981
|
-
"promise",
|
|
1982
|
-
() => Function,
|
|
1983
|
-
"resolver",
|
|
1984
|
-
"unlock",
|
|
1985
|
-
"lock",
|
|
1986
|
-
"Mutex",
|
|
1987
|
-
'$`3!8<Pu"3#8<P$0$P$`0%5w&'
|
|
1988
|
-
];
|
|
1989
|
-
|
|
1990
|
-
// ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/network.js
|
|
1991
|
-
chunkMO4O4UYI_cjs.init_cjs_shims();
|
|
1992
|
-
var ParsedHost = class {
|
|
1993
|
-
static {
|
|
1994
|
-
chunkMO4O4UYI_cjs.__name(this, "ParsedHost");
|
|
1995
|
-
}
|
|
1996
|
-
constructor() {
|
|
1997
|
-
this.host = "127.0.0.1";
|
|
1998
|
-
this.port = 0;
|
|
1999
|
-
this.unixSocket = "";
|
|
2000
|
-
}
|
|
2001
|
-
get isUnixSocket() {
|
|
2002
|
-
return this.unixSocket !== "";
|
|
2003
|
-
}
|
|
2004
|
-
get isHostname() {
|
|
2005
|
-
return this.unixSocket === "";
|
|
2006
|
-
}
|
|
2007
|
-
get hostWithIp() {
|
|
2008
|
-
return this.host + (this.port ? (this.host && ":") + this.port : "");
|
|
2009
|
-
}
|
|
2010
|
-
toString() {
|
|
2011
|
-
return this.isUnixSocket ? this.unixSocket : this.hostWithIp;
|
|
2012
|
-
}
|
|
2013
|
-
getWebSocketUrl(secure = false) {
|
|
2014
|
-
const protocol = secure ? "wss" : "ws";
|
|
2015
|
-
if (this.isUnixSocket) {
|
|
2016
|
-
return `${protocol}+unix://${this.unixSocket}`;
|
|
2017
|
-
}
|
|
2018
|
-
return `${protocol}://${this.hostWithIp}`;
|
|
2019
|
-
}
|
|
2020
|
-
getHttpUrl(secure = false) {
|
|
2021
|
-
if (this.isUnixSocket) {
|
|
2022
|
-
return `file://${this.unixSocket}`;
|
|
2023
|
-
}
|
|
2024
|
-
const protocol = secure ? "https" : "http";
|
|
2025
|
-
return `${protocol}://${this.hostWithIp}`;
|
|
2026
|
-
}
|
|
2027
|
-
};
|
|
2028
|
-
ParsedHost.__type = [
|
|
2029
|
-
"host",
|
|
2030
|
-
function() {
|
|
2031
|
-
return "127.0.0.1";
|
|
2032
|
-
},
|
|
2033
|
-
"port",
|
|
2034
|
-
function() {
|
|
2035
|
-
return 0;
|
|
2036
|
-
},
|
|
2037
|
-
"unixSocket",
|
|
2038
|
-
function() {
|
|
2039
|
-
return "";
|
|
2040
|
-
},
|
|
2041
|
-
"toString",
|
|
2042
|
-
"secure",
|
|
2043
|
-
() => false,
|
|
2044
|
-
"getWebSocketUrl",
|
|
2045
|
-
() => false,
|
|
2046
|
-
"getHttpUrl",
|
|
2047
|
-
"ParsedHost",
|
|
2048
|
-
`&3!>"'3#>$&3%>&!!!P&0'P)2(>)"0*P)2(>+"0,5w-`
|
|
2049
|
-
];
|
|
2050
|
-
function parseHost(hostWithIpOrUnixPath) {
|
|
2051
|
-
const parsedHost = new ParsedHost();
|
|
2052
|
-
if (hostWithIpOrUnixPath.includes("/") || hostWithIpOrUnixPath.includes("\\") || hostWithIpOrUnixPath.endsWith(".sock")) {
|
|
2053
|
-
parsedHost.unixSocket = hostWithIpOrUnixPath;
|
|
2054
|
-
} else {
|
|
2055
|
-
if (hostWithIpOrUnixPath.includes(":")) {
|
|
2056
|
-
const [host, port] = hostWithIpOrUnixPath.split(":");
|
|
2057
|
-
if (host) parsedHost.host = host;
|
|
2058
|
-
if (port) parsedHost.port = parseInt(port, 10);
|
|
2059
|
-
} else {
|
|
2060
|
-
if (hostWithIpOrUnixPath) parsedHost.host = hostWithIpOrUnixPath;
|
|
2061
|
-
}
|
|
2062
|
-
}
|
|
2063
|
-
return parsedHost;
|
|
2064
|
-
}
|
|
2065
|
-
chunkMO4O4UYI_cjs.__name(parseHost, "parseHost");
|
|
2066
|
-
parseHost.__type = [
|
|
2067
|
-
"hostWithIpOrUnixPath",
|
|
2068
|
-
() => ParsedHost,
|
|
2069
|
-
"parseHost",
|
|
2070
|
-
'P&2!P7"/#'
|
|
2071
|
-
];
|
|
2072
|
-
|
|
2073
|
-
// ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/compiler.js
|
|
2074
|
-
chunkMO4O4UYI_cjs.init_cjs_shims();
|
|
2075
|
-
|
|
2076
|
-
// ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/indent.js
|
|
2077
|
-
chunkMO4O4UYI_cjs.init_cjs_shims();
|
|
2078
|
-
function __assignType5(fn, args) {
|
|
2079
|
-
fn.__type = args;
|
|
2080
|
-
return fn;
|
|
2081
|
-
}
|
|
2082
|
-
chunkMO4O4UYI_cjs.__name(__assignType5, "__assignType");
|
|
2083
|
-
var indent = __assignType5(function(n) {
|
|
2084
|
-
function t(n2, t2) {
|
|
2085
|
-
var e2, r2 = [];
|
|
2086
|
-
for (e2 = 0; e2 < n2.length; e2++) r2.push(t2(n2[e2], e2, n2));
|
|
2087
|
-
return r2;
|
|
2088
|
-
}
|
|
2089
|
-
chunkMO4O4UYI_cjs.__name(t, "t");
|
|
2090
|
-
t.__type = [
|
|
2091
|
-
"n",
|
|
2092
|
-
"t",
|
|
2093
|
-
'P"2!"2""/"'
|
|
2094
|
-
];
|
|
2095
|
-
function e(n2, t2) {
|
|
2096
|
-
var e2, r2;
|
|
2097
|
-
for (e2 = 0; e2 < n2.length; e2++) if (r2 = t2(n2[e2], e2, n2)) return r2;
|
|
2098
|
-
return false;
|
|
2099
|
-
}
|
|
2100
|
-
chunkMO4O4UYI_cjs.__name(e, "e");
|
|
2101
|
-
e.__type = [
|
|
2102
|
-
"n",
|
|
2103
|
-
"t",
|
|
2104
|
-
"e",
|
|
2105
|
-
'P"2!"2""/#'
|
|
2106
|
-
];
|
|
2107
|
-
function r(n2, t2, e2) {
|
|
2108
|
-
if (d[n2]) return d[n2];
|
|
2109
|
-
var r2 = [];
|
|
2110
|
-
d[n2] = r2, e2 = e2 || "";
|
|
2111
|
-
for (var a2 = 0; a2 < t2.length; a2++) t2[a2].a.indexOf(n2.toLowerCase()) !== -1 && e2.indexOf(t2[a2].b) === -1 && r2.push(t2[a2]);
|
|
2112
|
-
return r2;
|
|
2113
|
-
}
|
|
2114
|
-
chunkMO4O4UYI_cjs.__name(r, "r");
|
|
2115
|
-
r.__type = [
|
|
2116
|
-
"n",
|
|
2117
|
-
"t",
|
|
2118
|
-
"e",
|
|
2119
|
-
"r",
|
|
2120
|
-
'P"2!"2""2#"/$'
|
|
2121
|
-
];
|
|
2122
|
-
function a(n2, a2, o2) {
|
|
2123
|
-
function h2(n3) {
|
|
2124
|
-
P = n3.cursor;
|
|
2125
|
-
var t2 = n3.rule, e2 = E + 1 + (t2.c || 0);
|
|
2126
|
-
n3.line = e2, Z.push(n3), t2.d && z[e2]++, t2.e && (S = r(t2.e, g)), t2.f && F.push(null), t2.callback && t2.callback(n3, z, O);
|
|
2127
|
-
}
|
|
2128
|
-
chunkMO4O4UYI_cjs.__name(h2, "h");
|
|
2129
|
-
h2.__type = [
|
|
2130
|
-
"n",
|
|
2131
|
-
"h",
|
|
2132
|
-
'P"2!"/"'
|
|
2133
|
-
];
|
|
2134
|
-
function d2() {
|
|
2135
|
-
var n3 = Z.pop(), t2 = n3.line, e2 = n3.rule;
|
|
2136
|
-
if (e2.d) {
|
|
2137
|
-
var r2 = "function" == typeof e2.g ? e2.g(b) : e2.g, a3 = r2 || 0 !== b.matchIndex ? 1 : 0;
|
|
2138
|
-
O[E + a3] && O[E + a3].push(t2);
|
|
2139
|
-
}
|
|
2140
|
-
e2.e && (S = null), e2.f && F.pop(), F[F.length - 1] = n3;
|
|
2141
|
-
}
|
|
2142
|
-
chunkMO4O4UYI_cjs.__name(d2, "d");
|
|
2143
|
-
d2.__type = [
|
|
2144
|
-
"d",
|
|
2145
|
-
'P"/!'
|
|
2146
|
-
];
|
|
2147
|
-
function m2(n3, r2, a3) {
|
|
2148
|
-
n3 = n3.substring(a3, n3.length);
|
|
2149
|
-
for (var l2, s2, i2, c2 = null, u2 = n3.length, o3 = F[F.length - 1], h3 = o3 ? o3.rule.b : "", d3 = t(Z, __assignType5(function(n4) {
|
|
2150
|
-
return n4.rule.b;
|
|
2151
|
-
}, [
|
|
2152
|
-
"n",
|
|
2153
|
-
"",
|
|
2154
|
-
'P"2!"/"'
|
|
2155
|
-
])).join("\n"), m3 = 0; m3 < r2.length; m3++) i2 = r2[m3], i2.h && e(i2.h, __assignType5(function(n4) {
|
|
2156
|
-
return d3.indexOf(n4) != -1;
|
|
2157
|
-
}, [
|
|
2158
|
-
"n",
|
|
2159
|
-
"",
|
|
2160
|
-
'P"2!"/"'
|
|
2161
|
-
])) || (!i2.i || h3 && i2.i.indexOf(h3) !== -1) && (s2 = f(n3, i2.j, i2), s2.matchIndex != -1 && s2.matchIndex < u2 && (!i2.k || 0 === a3) && (u2 = s2.matchIndex, l2 = s2, c2 = i2));
|
|
2162
|
-
return {
|
|
2163
|
-
rule: c2,
|
|
2164
|
-
relativeIndex: c2 ? u2 : -1,
|
|
2165
|
-
matchIndex: c2 ? u2 + a3 : -1,
|
|
2166
|
-
cursor: c2 ? a3 + l2.cursor : -1,
|
|
2167
|
-
state: l2 ? l2.state : {},
|
|
2168
|
-
lastMatch: o3
|
|
2169
|
-
};
|
|
2170
|
-
}
|
|
2171
|
-
chunkMO4O4UYI_cjs.__name(m2, "m");
|
|
2172
|
-
m2.__type = [
|
|
2173
|
-
"n",
|
|
2174
|
-
"r",
|
|
2175
|
-
"a",
|
|
2176
|
-
"m",
|
|
2177
|
-
'P"2!"2""2#"/$'
|
|
2178
|
-
];
|
|
2179
|
-
function j2(n3, t2, e2, r2) {
|
|
2180
|
-
n3 = n3.substr(e2, n3.length);
|
|
2181
|
-
var a3 = t2.rule, l2 = f(n3, a3.l, a3, t2.state, r2), s2 = a3.m ? l2.cursor : l2.matchIndex;
|
|
2182
|
-
return {
|
|
2183
|
-
endPatternIndex: l2.endPatternIndex,
|
|
2184
|
-
matchIndex: l2.matchIndex === -1 ? -1 : l2.matchIndex + e2,
|
|
2185
|
-
cursor: s2 === -1 ? -1 : s2 + e2,
|
|
2186
|
-
state: l2.state
|
|
2187
|
-
};
|
|
2188
|
-
}
|
|
2189
|
-
chunkMO4O4UYI_cjs.__name(j2, "j");
|
|
2190
|
-
j2.__type = [
|
|
2191
|
-
"n",
|
|
2192
|
-
"t",
|
|
2193
|
-
"e",
|
|
2194
|
-
"r",
|
|
2195
|
-
"j",
|
|
2196
|
-
'P"2!"2""2#"2$"/%'
|
|
2197
|
-
];
|
|
2198
|
-
n2 = n2 || "";
|
|
2199
|
-
var b, x, v, p, I, y = o2 && null != o2.tabString ? o2.tabString : " ", k = n2.split(/[\r]?\n/gi), w = k.length, A = s(w), z = s(w), O = l(w), Z = [], F = [
|
|
2200
|
-
null
|
|
2201
|
-
], E = 0, P = 0, S = null;
|
|
2202
|
-
for (o2 && (o2.debug = {
|
|
2203
|
-
buffers: {
|
|
2204
|
-
ignore: A,
|
|
2205
|
-
indent: z,
|
|
2206
|
-
dedent: O,
|
|
2207
|
-
active: Z
|
|
2208
|
-
}
|
|
2209
|
-
}); E < w; ) {
|
|
2210
|
-
if (v = k[E].trim(), p = u(v) + "\r\n", I = Z[Z.length - 1], x = m2(p, S || a2, P), Z.length) {
|
|
2211
|
-
if (b = j2(p, I, P, x), b.matchIndex === -1) {
|
|
2212
|
-
if (I.rule.n) {
|
|
2213
|
-
A[E] = 1, E++, P = 0;
|
|
2214
|
-
continue;
|
|
2215
|
-
}
|
|
2216
|
-
} else if (I.rule.n || x.matchIndex === -1 || b.matchIndex <= x.matchIndex) {
|
|
2217
|
-
d2(), P = b.cursor;
|
|
2218
|
-
continue;
|
|
2219
|
-
}
|
|
2220
|
-
}
|
|
2221
|
-
x.matchIndex !== -1 ? h2(x) : (E++, P = 0);
|
|
2222
|
-
}
|
|
2223
|
-
var $, q, R, T, M, C, H = 0, L = i(z), _ = s(w), B = [];
|
|
2224
|
-
for (M = 0; M < w; M++) {
|
|
2225
|
-
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);
|
|
2226
|
-
$ = L[M], _[M] = $ > T ? 1 : $ < T ? $ - T : 0, L[M] = $ > 0 ? 1 : 0;
|
|
2227
|
-
}
|
|
2228
|
-
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()));
|
|
2229
|
-
return B.join("\r\n");
|
|
2230
|
-
}
|
|
2231
|
-
chunkMO4O4UYI_cjs.__name(a, "a");
|
|
2232
|
-
a.__type = [
|
|
2233
|
-
"n",
|
|
2234
|
-
"a",
|
|
2235
|
-
"o",
|
|
2236
|
-
'P"2!"2""2#"/"'
|
|
2237
|
-
];
|
|
2238
|
-
function l(n2) {
|
|
2239
|
-
for (var t2 = new Array(n2), e2 = 0; e2 < n2; e2++) t2[e2] = [];
|
|
2240
|
-
return t2;
|
|
2241
|
-
}
|
|
2242
|
-
chunkMO4O4UYI_cjs.__name(l, "l");
|
|
2243
|
-
l.__type = [
|
|
2244
|
-
"n",
|
|
2245
|
-
"l",
|
|
2246
|
-
'P"2!"/"'
|
|
2247
|
-
];
|
|
2248
|
-
function s(t2) {
|
|
2249
|
-
if (n.Int16Array) return new Int16Array(t2);
|
|
2250
|
-
for (var e2 = new Array(t2), r2 = 0; r2 < t2; r2++) e2[r2] = 0;
|
|
2251
|
-
return e2;
|
|
2252
|
-
}
|
|
2253
|
-
chunkMO4O4UYI_cjs.__name(s, "s");
|
|
2254
|
-
s.__type = [
|
|
2255
|
-
"t",
|
|
2256
|
-
"s",
|
|
2257
|
-
'P"2!"/"'
|
|
2258
|
-
];
|
|
2259
|
-
function i(n2) {
|
|
2260
|
-
for (var t2 = s(n2.length), e2 = 0; e2 < n2.length; e2++) t2[e2] = n2[e2];
|
|
2261
|
-
return t2;
|
|
2262
|
-
}
|
|
2263
|
-
chunkMO4O4UYI_cjs.__name(i, "i");
|
|
2264
|
-
i.__type = [
|
|
2265
|
-
"n",
|
|
2266
|
-
"i",
|
|
2267
|
-
'P"2!"/"'
|
|
2268
|
-
];
|
|
2269
|
-
function c(n2, t2) {
|
|
2270
|
-
return new Array(t2 + 1).join(n2);
|
|
2271
|
-
}
|
|
2272
|
-
chunkMO4O4UYI_cjs.__name(c, "c");
|
|
2273
|
-
c.__type = [
|
|
2274
|
-
"n",
|
|
2275
|
-
"t",
|
|
2276
|
-
"c",
|
|
2277
|
-
'P"2!"2""/#'
|
|
2278
|
-
];
|
|
2279
|
-
function u(n2) {
|
|
2280
|
-
return n2.replace(/\\(u[0-9A-Za-z]{4}|u\{[0-9A-Za-z]{1,6}]\}|x[0-9A-Za-z]{2}|.)/g, "0");
|
|
2281
|
-
}
|
|
2282
|
-
chunkMO4O4UYI_cjs.__name(u, "u");
|
|
2283
|
-
u.__type = [
|
|
2284
|
-
"n",
|
|
2285
|
-
"u",
|
|
2286
|
-
'P"2!"/"'
|
|
2287
|
-
];
|
|
2288
|
-
function o(n2, t2, e2) {
|
|
2289
|
-
var r2 = n2.lastMatch;
|
|
2290
|
-
r2 && "=" === r2.rule.b && e2[n2.line].push(-r2.line);
|
|
2291
|
-
}
|
|
2292
|
-
chunkMO4O4UYI_cjs.__name(o, "o");
|
|
2293
|
-
o.__type = [
|
|
2294
|
-
"n",
|
|
2295
|
-
"t",
|
|
2296
|
-
"e",
|
|
2297
|
-
"o",
|
|
2298
|
-
'P"2!"2""2#"/$'
|
|
2299
|
-
];
|
|
2300
|
-
function h(n2, t2, e2, r2) {
|
|
2301
|
-
var a2;
|
|
2302
|
-
if (e2.newline) {
|
|
2303
|
-
if (a2 = n2.search(/[;,=]?\r*\n/), a2 !== -1) return {
|
|
2304
|
-
matchIndex: a2,
|
|
2305
|
-
length: 1
|
|
2306
|
-
};
|
|
2307
|
-
} else a2 = n2.search(/[^\s\r\n\{\(\[]/), e2.newline = a2 !== -1 && (a2 <= r2.relativeIndex || r2.relativeIndex === -1);
|
|
2308
|
-
return null;
|
|
2309
|
-
}
|
|
2310
|
-
chunkMO4O4UYI_cjs.__name(h, "h");
|
|
2311
|
-
h.__type = [
|
|
2312
|
-
"n",
|
|
2313
|
-
"t",
|
|
2314
|
-
"e",
|
|
2315
|
-
"r",
|
|
2316
|
-
"h",
|
|
2317
|
-
'P"2!"2""2#"2$"/%'
|
|
2318
|
-
];
|
|
2319
|
-
function f(n2, t2, e2, r2, a2) {
|
|
2320
|
-
r2 = r2 || {};
|
|
2321
|
-
for (var l2, s2, i2 = -1, c2 = 0, u2 = 0; u2 < t2.length; u2++) if (s2 = t2[u2], "function" == typeof s2) {
|
|
2322
|
-
if (l2 = s2(n2, e2, r2, a2)) {
|
|
2323
|
-
i2 = l2.matchIndex, c2 = l2.length;
|
|
2324
|
-
break;
|
|
2325
|
-
}
|
|
2326
|
-
} else if (l2 = n2.match(s2)) {
|
|
2327
|
-
i2 = n2.search(s2), c2 = l2[0].length;
|
|
2328
|
-
break;
|
|
2329
|
-
}
|
|
2330
|
-
return {
|
|
2331
|
-
endPatternIndex: u2,
|
|
2332
|
-
matchIndex: i2,
|
|
2333
|
-
cursor: i2 + c2,
|
|
2334
|
-
state: r2
|
|
2335
|
-
};
|
|
2336
|
-
}
|
|
2337
|
-
chunkMO4O4UYI_cjs.__name(f, "f");
|
|
2338
|
-
f.__type = [
|
|
2339
|
-
"n",
|
|
2340
|
-
"t",
|
|
2341
|
-
"e",
|
|
2342
|
-
"r",
|
|
2343
|
-
"a",
|
|
2344
|
-
"f",
|
|
2345
|
-
'P"2!"2""2#"2$"2%"/&'
|
|
2346
|
-
];
|
|
2347
|
-
var d = {};
|
|
2348
|
-
String.prototype.trim || (String.prototype.trim = function() {
|
|
2349
|
-
return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
2350
|
-
});
|
|
2351
|
-
var m = /\r*\n/, j = [
|
|
2352
|
-
"tag",
|
|
2353
|
-
"void-tags",
|
|
2354
|
-
"html-tag"
|
|
2355
|
-
], g = [
|
|
2356
|
-
{
|
|
2357
|
-
a: "js html",
|
|
2358
|
-
b: "comment",
|
|
2359
|
-
j: [
|
|
2360
|
-
/\<\!\-\-/
|
|
2361
|
-
],
|
|
2362
|
-
l: [
|
|
2363
|
-
/\-\-\>/
|
|
2364
|
-
],
|
|
2365
|
-
n: true,
|
|
2366
|
-
m: true
|
|
2367
|
-
},
|
|
2368
|
-
{
|
|
2369
|
-
a: "html",
|
|
2370
|
-
b: "doctype",
|
|
2371
|
-
j: [
|
|
2372
|
-
/\<\!doctype html>/i
|
|
2373
|
-
],
|
|
2374
|
-
l: [
|
|
2375
|
-
m
|
|
2376
|
-
],
|
|
2377
|
-
n: true,
|
|
2378
|
-
m: true
|
|
2379
|
-
},
|
|
2380
|
-
{
|
|
2381
|
-
a: "js html",
|
|
2382
|
-
b: "void-tags",
|
|
2383
|
-
j: [
|
|
2384
|
-
/\<(area|base|br|col|command|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)/i
|
|
2385
|
-
],
|
|
2386
|
-
l: [
|
|
2387
|
-
/>/
|
|
2388
|
-
],
|
|
2389
|
-
d: true,
|
|
2390
|
-
m: true
|
|
2391
|
-
},
|
|
2392
|
-
{
|
|
2393
|
-
a: "html",
|
|
2394
|
-
b: "mode switch js",
|
|
2395
|
-
j: [
|
|
2396
|
-
__assignType5(function(n2) {
|
|
2397
|
-
var t2 = /<script[\s>].*/i, e2 = /<\/script>/i, r2 = t2.exec(n2), a2 = e2.exec(n2);
|
|
2398
|
-
return r2 && (!a2 || a2.index < r2.index) ? {
|
|
2399
|
-
matchIndex: r2.index,
|
|
2400
|
-
length: r2[0].length
|
|
2401
|
-
} : null;
|
|
2402
|
-
}, [
|
|
2403
|
-
"n",
|
|
2404
|
-
"",
|
|
2405
|
-
'P"2!"/"'
|
|
2406
|
-
])
|
|
2407
|
-
],
|
|
2408
|
-
l: [
|
|
2409
|
-
/<\/script>/i
|
|
2410
|
-
],
|
|
2411
|
-
e: "js",
|
|
2412
|
-
m: true,
|
|
2413
|
-
d: true,
|
|
2414
|
-
f: true
|
|
2415
|
-
},
|
|
2416
|
-
{
|
|
2417
|
-
a: "html",
|
|
2418
|
-
b: "mode switch css",
|
|
2419
|
-
j: [
|
|
2420
|
-
__assignType5(function(n2) {
|
|
2421
|
-
var t2 = /<style[\s>].*/i, e2 = /<\/style>/i, r2 = t2.exec(n2), a2 = e2.exec(n2);
|
|
2422
|
-
return r2 && (!a2 || a2.index < r2.index) ? {
|
|
2423
|
-
matchIndex: r2.index,
|
|
2424
|
-
length: r2[0].length
|
|
2425
|
-
} : null;
|
|
2426
|
-
}, [
|
|
2427
|
-
"n",
|
|
2428
|
-
"",
|
|
2429
|
-
'P"2!"/"'
|
|
2430
|
-
])
|
|
2431
|
-
],
|
|
2432
|
-
l: [
|
|
2433
|
-
/<\/style>/i
|
|
2434
|
-
],
|
|
2435
|
-
e: "css",
|
|
2436
|
-
m: true,
|
|
2437
|
-
d: true,
|
|
2438
|
-
f: true
|
|
2439
|
-
},
|
|
2440
|
-
{
|
|
2441
|
-
a: "html",
|
|
2442
|
-
b: "html-tag",
|
|
2443
|
-
j: [
|
|
2444
|
-
/<html[^A-Za-z0-9]/i
|
|
2445
|
-
],
|
|
2446
|
-
l: [
|
|
2447
|
-
/<\/html>/i
|
|
2448
|
-
],
|
|
2449
|
-
m: true
|
|
2450
|
-
},
|
|
2451
|
-
{
|
|
2452
|
-
a: "js html",
|
|
2453
|
-
b: "tag",
|
|
2454
|
-
j: [
|
|
2455
|
-
__assignType5(function(n2, t2, e2) {
|
|
2456
|
-
var r2 = /<([A-Za-z][A-Za-z0-9\-\.]*)/, a2 = n2.match(r2);
|
|
2457
|
-
return a2 ? (e2.openingTag = a2[1], {
|
|
2458
|
-
matchIndex: a2.index,
|
|
2459
|
-
length: a2[0].length
|
|
2460
|
-
}) : null;
|
|
2461
|
-
}, [
|
|
2462
|
-
"n",
|
|
2463
|
-
"t",
|
|
2464
|
-
"e",
|
|
2465
|
-
"",
|
|
2466
|
-
'P"2!"2""2#"/$'
|
|
2467
|
-
])
|
|
2468
|
-
],
|
|
2469
|
-
l: [
|
|
2470
|
-
__assignType5(function(n2, t2, e2) {
|
|
2471
|
-
var r2 = new RegExp("</" + e2.openingTag + ">|\\s/>", "i"), a2 = n2.match(r2);
|
|
2472
|
-
return a2 ? {
|
|
2473
|
-
matchIndex: a2.index,
|
|
2474
|
-
length: a2[0].length
|
|
2475
|
-
} : null;
|
|
2476
|
-
}, [
|
|
2477
|
-
"n",
|
|
2478
|
-
"t",
|
|
2479
|
-
"e",
|
|
2480
|
-
"",
|
|
2481
|
-
'P"2!"2""2#"/$'
|
|
2482
|
-
])
|
|
2483
|
-
],
|
|
2484
|
-
d: true,
|
|
2485
|
-
m: true
|
|
2486
|
-
},
|
|
2487
|
-
{
|
|
2488
|
-
a: "js",
|
|
2489
|
-
b: "line-comment",
|
|
2490
|
-
j: [
|
|
2491
|
-
/\/\//
|
|
2492
|
-
],
|
|
2493
|
-
l: [
|
|
2494
|
-
m
|
|
2495
|
-
],
|
|
2496
|
-
n: true
|
|
2497
|
-
},
|
|
2498
|
-
{
|
|
2499
|
-
a: "js css",
|
|
2500
|
-
b: "block-comment",
|
|
2501
|
-
j: [
|
|
2502
|
-
/\/\*/
|
|
2503
|
-
],
|
|
2504
|
-
l: [
|
|
2505
|
-
/\*\//
|
|
2506
|
-
],
|
|
2507
|
-
n: true,
|
|
2508
|
-
m: true
|
|
2509
|
-
},
|
|
2510
|
-
{
|
|
2511
|
-
a: "js",
|
|
2512
|
-
b: "regex",
|
|
2513
|
-
j: [
|
|
2514
|
-
__assignType5(function(n2, t2) {
|
|
2515
|
-
var e2 = /[(,=:[!&|?{};][\s]*\/[^\/]|^[\s]*\/[^\/]/, r2 = n2.search(e2);
|
|
2516
|
-
if (r2 != -1) {
|
|
2517
|
-
r2 = n2.indexOf("/", r2);
|
|
2518
|
-
var a2 = n2.substring(r2 + 1), l2 = f(a2, t2.l, t2);
|
|
2519
|
-
if (l2.matchIndex != -1) {
|
|
2520
|
-
a2 = a2.substring(0, l2.matchIndex);
|
|
2521
|
-
try {
|
|
2522
|
-
return new RegExp(a2), {
|
|
2523
|
-
matchIndex: r2,
|
|
2524
|
-
length: 1
|
|
2525
|
-
};
|
|
2526
|
-
} catch (s2) {
|
|
2527
|
-
return null;
|
|
2528
|
-
}
|
|
2529
|
-
}
|
|
2530
|
-
}
|
|
2531
|
-
return null;
|
|
2532
|
-
}, [
|
|
2533
|
-
"n",
|
|
2534
|
-
"t",
|
|
2535
|
-
"",
|
|
2536
|
-
'P"2!"2""/#'
|
|
2537
|
-
])
|
|
2538
|
-
],
|
|
2539
|
-
l: [
|
|
2540
|
-
__assignType5(function(n2) {
|
|
2541
|
-
for (var t2 = 0, e2 = n2.indexOf("/"); e2 != -1; ) try {
|
|
2542
|
-
new RegExp(n2.substring(0, e2));
|
|
2543
|
-
break;
|
|
2544
|
-
} catch (r2) {
|
|
2545
|
-
e2 = n2.indexOf("/", t2), t2 = e2 + 1;
|
|
2546
|
-
}
|
|
2547
|
-
return e2 === -1 ? null : {
|
|
2548
|
-
matchIndex: e2,
|
|
2549
|
-
length: 1
|
|
2550
|
-
};
|
|
2551
|
-
}, [
|
|
2552
|
-
"n",
|
|
2553
|
-
"",
|
|
2554
|
-
'P"2!"/"'
|
|
2555
|
-
])
|
|
2556
|
-
],
|
|
2557
|
-
n: true,
|
|
2558
|
-
m: true
|
|
2559
|
-
},
|
|
2560
|
-
{
|
|
2561
|
-
a: "js html",
|
|
2562
|
-
b: "quotes",
|
|
2563
|
-
h: j,
|
|
2564
|
-
j: [
|
|
2565
|
-
/"/
|
|
2566
|
-
],
|
|
2567
|
-
l: [
|
|
2568
|
-
/"/,
|
|
2569
|
-
m
|
|
2570
|
-
],
|
|
2571
|
-
n: true,
|
|
2572
|
-
m: true
|
|
2573
|
-
},
|
|
2574
|
-
{
|
|
2575
|
-
a: "js html",
|
|
2576
|
-
b: "quotes",
|
|
2577
|
-
h: j,
|
|
2578
|
-
j: [
|
|
2579
|
-
/'/
|
|
2580
|
-
],
|
|
2581
|
-
l: [
|
|
2582
|
-
/'/,
|
|
2583
|
-
m
|
|
2584
|
-
],
|
|
2585
|
-
n: true,
|
|
2586
|
-
m: true
|
|
2587
|
-
},
|
|
2588
|
-
{
|
|
2589
|
-
a: "js css",
|
|
2590
|
-
b: "string",
|
|
2591
|
-
j: [
|
|
2592
|
-
/(''|""|``)/
|
|
2593
|
-
],
|
|
2594
|
-
l: [
|
|
2595
|
-
/./,
|
|
2596
|
-
m
|
|
2597
|
-
]
|
|
2598
|
-
},
|
|
2599
|
-
{
|
|
2600
|
-
a: "js css",
|
|
2601
|
-
b: "string",
|
|
2602
|
-
j: [
|
|
2603
|
-
/\"(?=[^"])/
|
|
2604
|
-
],
|
|
2605
|
-
l: [
|
|
2606
|
-
/[^\\]\"/,
|
|
2607
|
-
m
|
|
2608
|
-
],
|
|
2609
|
-
n: true,
|
|
2610
|
-
m: true
|
|
2611
|
-
},
|
|
2612
|
-
{
|
|
2613
|
-
a: "js css",
|
|
2614
|
-
b: "string",
|
|
2615
|
-
j: [
|
|
2616
|
-
/\'(?=[^'])/
|
|
2617
|
-
],
|
|
2618
|
-
l: [
|
|
2619
|
-
/[^\\]\'/,
|
|
2620
|
-
m
|
|
2621
|
-
],
|
|
2622
|
-
n: true,
|
|
2623
|
-
m: true
|
|
2624
|
-
},
|
|
2625
|
-
{
|
|
2626
|
-
a: "js css",
|
|
2627
|
-
b: "string",
|
|
2628
|
-
j: [
|
|
2629
|
-
/\`(?=[^`])/
|
|
2630
|
-
],
|
|
2631
|
-
l: [
|
|
2632
|
-
/[^\\]\`/
|
|
2633
|
-
],
|
|
2634
|
-
n: true,
|
|
2635
|
-
m: true
|
|
2636
|
-
},
|
|
2637
|
-
{
|
|
2638
|
-
a: "js",
|
|
2639
|
-
b: "if",
|
|
2640
|
-
j: [
|
|
2641
|
-
/^if\s*(?=\()/,
|
|
2642
|
-
/[\s]+if\s*(?=\()/
|
|
2643
|
-
],
|
|
2644
|
-
l: [
|
|
2645
|
-
/else[\s]+/,
|
|
2646
|
-
h,
|
|
2647
|
-
/[{;]/
|
|
2648
|
-
],
|
|
2649
|
-
d: true
|
|
2650
|
-
},
|
|
2651
|
-
{
|
|
2652
|
-
a: "js",
|
|
2653
|
-
b: "for|while",
|
|
2654
|
-
j: [
|
|
2655
|
-
/^(for|while)\s*(?=\()/
|
|
2656
|
-
],
|
|
2657
|
-
l: [
|
|
2658
|
-
h,
|
|
2659
|
-
/[{;]/
|
|
2660
|
-
],
|
|
2661
|
-
d: true
|
|
2662
|
-
},
|
|
2663
|
-
{
|
|
2664
|
-
a: "js",
|
|
2665
|
-
b: "else",
|
|
2666
|
-
j: [
|
|
2667
|
-
/else[\s]+/
|
|
2668
|
-
],
|
|
2669
|
-
l: [
|
|
2670
|
-
/if[^\w$]/,
|
|
2671
|
-
h,
|
|
2672
|
-
/[{;]/
|
|
2673
|
-
],
|
|
2674
|
-
d: true
|
|
2675
|
-
},
|
|
2676
|
-
{
|
|
2677
|
-
a: "js css",
|
|
2678
|
-
b: "bracket",
|
|
2679
|
-
j: [
|
|
2680
|
-
/\(\s*(var|let|const)?\s*/
|
|
2681
|
-
],
|
|
2682
|
-
l: [
|
|
2683
|
-
/\)/
|
|
2684
|
-
],
|
|
2685
|
-
d: true,
|
|
2686
|
-
m: true,
|
|
2687
|
-
f: true
|
|
2688
|
-
},
|
|
2689
|
-
{
|
|
2690
|
-
a: "js",
|
|
2691
|
-
b: "dot-chain",
|
|
2692
|
-
j: [
|
|
2693
|
-
/^\.[A-Za-z$_]/
|
|
2694
|
-
],
|
|
2695
|
-
l: [
|
|
2696
|
-
/[\.;]/,
|
|
2697
|
-
m
|
|
2698
|
-
],
|
|
2699
|
-
d: true,
|
|
2700
|
-
k: true,
|
|
2701
|
-
c: -1
|
|
2702
|
-
},
|
|
2703
|
-
{
|
|
2704
|
-
a: "js",
|
|
2705
|
-
b: "dot-chain",
|
|
2706
|
-
j: [
|
|
2707
|
-
/\.\s*\r*\n/
|
|
2708
|
-
],
|
|
2709
|
-
l: [
|
|
2710
|
-
/[\.;})\]]/,
|
|
2711
|
-
/[^\s]\s*\r*\n/
|
|
2712
|
-
],
|
|
2713
|
-
d: true
|
|
2714
|
-
},
|
|
2715
|
-
{
|
|
2716
|
-
a: "js css",
|
|
2717
|
-
b: "array",
|
|
2718
|
-
j: [
|
|
2719
|
-
/\[/
|
|
2720
|
-
],
|
|
2721
|
-
l: [
|
|
2722
|
-
/\]/
|
|
2723
|
-
],
|
|
2724
|
-
d: true,
|
|
2725
|
-
m: true,
|
|
2726
|
-
f: true
|
|
2727
|
-
},
|
|
2728
|
-
{
|
|
2729
|
-
a: "js css",
|
|
2730
|
-
b: "block",
|
|
2731
|
-
j: [
|
|
2732
|
-
/\{/
|
|
2733
|
-
],
|
|
2734
|
-
l: [
|
|
2735
|
-
/\}/
|
|
2736
|
-
],
|
|
2737
|
-
d: true,
|
|
2738
|
-
m: true,
|
|
2739
|
-
f: true
|
|
2740
|
-
},
|
|
2741
|
-
{
|
|
2742
|
-
a: "js",
|
|
2743
|
-
b: "var/let/const",
|
|
2744
|
-
j: [
|
|
2745
|
-
/(var|let|const)[\s]*\r*\n/
|
|
2746
|
-
],
|
|
2747
|
-
l: [
|
|
2748
|
-
h
|
|
2749
|
-
],
|
|
2750
|
-
d: true,
|
|
2751
|
-
g: true
|
|
2752
|
-
},
|
|
2753
|
-
{
|
|
2754
|
-
a: "js",
|
|
2755
|
-
b: "var/let/const",
|
|
2756
|
-
j: [
|
|
2757
|
-
/(var|let|const)\s+(?=[\w$])/
|
|
2758
|
-
],
|
|
2759
|
-
l: [
|
|
2760
|
-
/[,;=]/,
|
|
2761
|
-
h
|
|
2762
|
-
],
|
|
2763
|
-
d: true
|
|
2764
|
-
},
|
|
2765
|
-
{
|
|
2766
|
-
a: "js",
|
|
2767
|
-
b: "var/let/const",
|
|
2768
|
-
i: [
|
|
2769
|
-
"var/let/const",
|
|
2770
|
-
"="
|
|
2771
|
-
],
|
|
2772
|
-
j: [
|
|
2773
|
-
/,[\s]*\r*\n/
|
|
2774
|
-
],
|
|
2775
|
-
l: [
|
|
2776
|
-
/[,;]/,
|
|
2777
|
-
h
|
|
2778
|
-
],
|
|
2779
|
-
d: true,
|
|
2780
|
-
callback: o
|
|
2781
|
-
},
|
|
2782
|
-
{
|
|
2783
|
-
a: "js",
|
|
2784
|
-
b: "var/let/const",
|
|
2785
|
-
i: [
|
|
2786
|
-
"var/let/const",
|
|
2787
|
-
"="
|
|
2788
|
-
],
|
|
2789
|
-
j: [
|
|
2790
|
-
/^,/
|
|
2791
|
-
],
|
|
2792
|
-
l: [
|
|
2793
|
-
/[,;]/,
|
|
2794
|
-
h
|
|
2795
|
-
],
|
|
2796
|
-
k: true,
|
|
2797
|
-
d: true,
|
|
2798
|
-
c: -1,
|
|
2799
|
-
callback: o
|
|
2800
|
-
},
|
|
2801
|
-
{
|
|
2802
|
-
a: "js",
|
|
2803
|
-
b: "equality",
|
|
2804
|
-
j: [
|
|
2805
|
-
/[=<>!]=(=)?/
|
|
2806
|
-
],
|
|
2807
|
-
l: [
|
|
2808
|
-
/./
|
|
2809
|
-
]
|
|
2810
|
-
},
|
|
2811
|
-
{
|
|
2812
|
-
a: "js",
|
|
2813
|
-
b: "=",
|
|
2814
|
-
h: j,
|
|
2815
|
-
j: [
|
|
2816
|
-
/=/
|
|
2817
|
-
],
|
|
2818
|
-
l: [
|
|
2819
|
-
/[,;\)\]}]/,
|
|
2820
|
-
m
|
|
2821
|
-
]
|
|
2822
|
-
},
|
|
2823
|
-
{
|
|
2824
|
-
a: "js",
|
|
2825
|
-
b: "?:",
|
|
2826
|
-
j: [
|
|
2827
|
-
/\?/
|
|
2828
|
-
],
|
|
2829
|
-
l: [
|
|
2830
|
-
/[:;]/
|
|
2831
|
-
],
|
|
2832
|
-
g: true,
|
|
2833
|
-
d: true
|
|
2834
|
-
},
|
|
2835
|
-
{
|
|
2836
|
-
a: "js",
|
|
2837
|
-
b: "case",
|
|
2838
|
-
j: [
|
|
2839
|
-
/^(case|default)[\s:]/
|
|
2840
|
-
],
|
|
2841
|
-
l: [
|
|
2842
|
-
/break[\s;\r\n]/,
|
|
2843
|
-
/^return[\s;\r\n]/,
|
|
2844
|
-
/^case[\s]+/,
|
|
2845
|
-
/^default[\s:]/,
|
|
2846
|
-
/}/
|
|
2847
|
-
],
|
|
2848
|
-
g: __assignType5(function(n2) {
|
|
2849
|
-
return n2.endPatternIndex <= 1;
|
|
2850
|
-
}, [
|
|
2851
|
-
"n",
|
|
2852
|
-
"",
|
|
2853
|
-
'P"2!"/"'
|
|
2854
|
-
]),
|
|
2855
|
-
d: true,
|
|
2856
|
-
f: true
|
|
2857
|
-
},
|
|
2858
|
-
{
|
|
2859
|
-
a: "js",
|
|
2860
|
-
b: "semicolon",
|
|
2861
|
-
j: [
|
|
2862
|
-
/;/
|
|
2863
|
-
],
|
|
2864
|
-
l: [
|
|
2865
|
-
/./
|
|
2866
|
-
]
|
|
2867
|
-
}
|
|
2868
|
-
];
|
|
2869
|
-
return {
|
|
2870
|
-
css: __assignType5(function(n2, t2) {
|
|
2871
|
-
return a(n2, r("css", g), t2);
|
|
2872
|
-
}, [
|
|
2873
|
-
"n",
|
|
2874
|
-
"t",
|
|
2875
|
-
"",
|
|
2876
|
-
'P"2!"2""/#'
|
|
2877
|
-
]),
|
|
2878
|
-
js: __assignType5(function(n2, t2) {
|
|
2879
|
-
return a(n2, r("js", g), t2);
|
|
2880
|
-
}, [
|
|
2881
|
-
"n",
|
|
2882
|
-
"t",
|
|
2883
|
-
"",
|
|
2884
|
-
'P"2!"2""/#'
|
|
2885
|
-
]),
|
|
2886
|
-
ts: __assignType5(function(n2, t2) {
|
|
2887
|
-
return a(n2, r("js", g), t2);
|
|
2888
|
-
}, [
|
|
2889
|
-
"n",
|
|
2890
|
-
"t",
|
|
2891
|
-
"",
|
|
2892
|
-
'P"2!"2""/#'
|
|
2893
|
-
]),
|
|
2894
|
-
html: __assignType5(function(n2, t2) {
|
|
2895
|
-
var e2 = t2 && t2.indentHtmlTag ? r("html", g, "html-tag") : r("html", g);
|
|
2896
|
-
return a(n2, e2, t2);
|
|
2897
|
-
}, [
|
|
2898
|
-
"n",
|
|
2899
|
-
"t",
|
|
2900
|
-
"",
|
|
2901
|
-
'P"2!"2""/#'
|
|
2902
|
-
])
|
|
2903
|
-
};
|
|
2904
|
-
}, [
|
|
2905
|
-
"n",
|
|
2906
|
-
"",
|
|
2907
|
-
'P"2!"/"'
|
|
2908
|
-
])(globalThis);
|
|
2909
|
-
|
|
2910
|
-
// ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/compiler.js
|
|
2911
|
-
var __\u03A9Partial = [
|
|
2912
|
-
"T",
|
|
2913
|
-
"Partial",
|
|
2914
|
-
'l+e#!e"!fRb!Pde"!gN#"w"y'
|
|
2915
|
-
];
|
|
2916
|
-
var indentCode = ("undefined" !== typeof process && process.env?.DEBUG || "").includes("deepkit");
|
|
2917
|
-
var CompilerContext = class {
|
|
2918
|
-
static {
|
|
2919
|
-
chunkMO4O4UYI_cjs.__name(this, "CompilerContext");
|
|
2920
|
-
}
|
|
2921
|
-
constructor(config = {}) {
|
|
2922
|
-
this.context = (Map.\u03A9 = [
|
|
2923
|
-
[
|
|
2924
|
-
"&"
|
|
2925
|
-
],
|
|
2926
|
-
[
|
|
2927
|
-
'"'
|
|
2928
|
-
]
|
|
2929
|
-
], /* @__PURE__ */ new Map());
|
|
2930
|
-
this.constVariables = (Map.\u03A9 = [
|
|
2931
|
-
[
|
|
2932
|
-
'"'
|
|
2933
|
-
],
|
|
2934
|
-
[
|
|
2935
|
-
"&"
|
|
2936
|
-
]
|
|
2937
|
-
], /* @__PURE__ */ new Map());
|
|
2938
|
-
this.maxReservedVariable = 1e4;
|
|
2939
|
-
this.reservedNames = (Set.\u03A9 = [
|
|
2940
|
-
[
|
|
2941
|
-
"&"
|
|
2942
|
-
]
|
|
2943
|
-
], /* @__PURE__ */ new Set());
|
|
2944
|
-
this.variableContext = {};
|
|
2945
|
-
this.preCode = "";
|
|
2946
|
-
this.initialiseVariables = [];
|
|
2947
|
-
this.config = {
|
|
2948
|
-
indent: false
|
|
2949
|
-
};
|
|
2950
|
-
Object.assign(this.config, config);
|
|
2951
|
-
this.context.set("_context", this.variableContext);
|
|
2952
|
-
}
|
|
2953
|
-
reserveName(name) {
|
|
2954
|
-
for (let i = 0; i < this.maxReservedVariable; i++) {
|
|
2955
|
-
const candidate = name + "_" + i;
|
|
2956
|
-
if (!this.reservedNames.has(candidate)) {
|
|
2957
|
-
this.reservedNames.add(candidate);
|
|
2958
|
-
return candidate;
|
|
2959
|
-
}
|
|
2960
|
-
}
|
|
2961
|
-
throw new Error(`Too many context variables (max ${this.maxReservedVariable})`);
|
|
2962
|
-
}
|
|
2963
|
-
set(values) {
|
|
2964
|
-
for (const i in values) {
|
|
2965
|
-
if (!hasProperty(values, i)) {
|
|
2966
|
-
continue;
|
|
2967
|
-
}
|
|
2968
|
-
this.context.set(i, values[i]);
|
|
2969
|
-
}
|
|
2970
|
-
}
|
|
2971
|
-
/**
|
|
2972
|
-
* Returns always the same variable name for the same value.
|
|
2973
|
-
* The variable name should not be set afterwards.
|
|
2974
|
-
*/
|
|
2975
|
-
reserveConst(value, name = "constVar") {
|
|
2976
|
-
if (value === void 0) throw new Error("Can not reserve const for undefined value");
|
|
2977
|
-
let constName = this.constVariables.get(value);
|
|
2978
|
-
if (!constName) {
|
|
2979
|
-
constName = this.reserveName(name);
|
|
2980
|
-
this.constVariables.set(value, constName);
|
|
2981
|
-
this.context.set(constName, value);
|
|
2982
|
-
}
|
|
2983
|
-
return constName;
|
|
2984
|
-
}
|
|
2985
|
-
reserveVariable(name = "var", value) {
|
|
2986
|
-
const freeName = this.reserveName(name);
|
|
2987
|
-
if (value === void 0) {
|
|
2988
|
-
return "_context." + freeName;
|
|
2989
|
-
} else {
|
|
2990
|
-
this.context.set(freeName, value);
|
|
2991
|
-
return freeName;
|
|
2992
|
-
}
|
|
2993
|
-
}
|
|
2994
|
-
raw(functionCode) {
|
|
2995
|
-
try {
|
|
2996
|
-
return new Function(...this.context.keys(), `'use strict';
|
|
2997
|
-
` + functionCode)(...this.context.values());
|
|
2998
|
-
} catch (error) {
|
|
2999
|
-
throw new Error("Could not build function: " + error + functionCode);
|
|
3000
|
-
}
|
|
3001
|
-
}
|
|
3002
|
-
format(code) {
|
|
3003
|
-
if (indentCode || this.config.indent) return indent.js(code, {
|
|
3004
|
-
tabString: " "
|
|
3005
|
-
});
|
|
3006
|
-
return code;
|
|
3007
|
-
}
|
|
3008
|
-
build(functionCode, ...args) {
|
|
3009
|
-
functionCode = this.format(`
|
|
3010
|
-
'use strict';
|
|
3011
|
-
${this.preCode}
|
|
3012
|
-
return function self(${args.join(", ")}){
|
|
3013
|
-
'use strict';
|
|
3014
|
-
${functionCode}
|
|
3015
|
-
};
|
|
3016
|
-
`);
|
|
3017
|
-
try {
|
|
3018
|
-
return new Function(...this.context.keys(), functionCode)(...this.context.values());
|
|
3019
|
-
} catch (error) {
|
|
3020
|
-
throw new Error(`Could not build function(${[
|
|
3021
|
-
...this.context.keys()
|
|
3022
|
-
].join(",")}): ` + error + functionCode);
|
|
3023
|
-
}
|
|
3024
|
-
}
|
|
3025
|
-
buildAsync(functionCode, ...args) {
|
|
3026
|
-
functionCode = `
|
|
3027
|
-
'use strict';
|
|
3028
|
-
${this.preCode}
|
|
3029
|
-
return async function self(${args.join(", ")}){
|
|
3030
|
-
'use strict';
|
|
3031
|
-
${functionCode}
|
|
3032
|
-
};
|
|
3033
|
-
`;
|
|
3034
|
-
try {
|
|
3035
|
-
return new Function(...this.context.keys(), this.format(functionCode))(...this.context.values());
|
|
3036
|
-
} catch (error) {
|
|
3037
|
-
throw new Error("Could not build function: " + error + functionCode);
|
|
3038
|
-
}
|
|
3039
|
-
}
|
|
3040
|
-
};
|
|
3041
|
-
CompilerContext.__type = [
|
|
3042
|
-
"context",
|
|
3043
|
-
function() {
|
|
3044
|
-
return Map.\u03A9 = [
|
|
3045
|
-
[
|
|
3046
|
-
"&"
|
|
3047
|
-
],
|
|
3048
|
-
[
|
|
3049
|
-
'"'
|
|
3050
|
-
]
|
|
3051
|
-
], /* @__PURE__ */ new Map();
|
|
3052
|
-
},
|
|
3053
|
-
"constVariables",
|
|
3054
|
-
function() {
|
|
3055
|
-
return Map.\u03A9 = [
|
|
3056
|
-
[
|
|
3057
|
-
'"'
|
|
3058
|
-
],
|
|
3059
|
-
[
|
|
3060
|
-
"&"
|
|
3061
|
-
]
|
|
3062
|
-
], /* @__PURE__ */ new Map();
|
|
3063
|
-
},
|
|
3064
|
-
"maxReservedVariable",
|
|
3065
|
-
function() {
|
|
3066
|
-
return 1e4;
|
|
3067
|
-
},
|
|
3068
|
-
"reservedNames",
|
|
3069
|
-
function() {
|
|
3070
|
-
return Set.\u03A9 = [
|
|
3071
|
-
[
|
|
3072
|
-
"&"
|
|
3073
|
-
]
|
|
3074
|
-
], /* @__PURE__ */ new Set();
|
|
3075
|
-
},
|
|
3076
|
-
"variableContext",
|
|
3077
|
-
function() {
|
|
3078
|
-
return {};
|
|
3079
|
-
},
|
|
3080
|
-
"preCode",
|
|
3081
|
-
function() {
|
|
3082
|
-
return "";
|
|
3083
|
-
},
|
|
3084
|
-
"initialiseVariables",
|
|
3085
|
-
function() {
|
|
3086
|
-
return [];
|
|
3087
|
-
},
|
|
3088
|
-
"indent",
|
|
3089
|
-
"config",
|
|
3090
|
-
function() {
|
|
3091
|
-
return {
|
|
3092
|
-
indent: false
|
|
3093
|
-
};
|
|
3094
|
-
},
|
|
3095
|
-
() => __\u03A9Partial,
|
|
3096
|
-
() => CompilerContext,
|
|
3097
|
-
"config",
|
|
3098
|
-
() => ({}),
|
|
3099
|
-
"constructor",
|
|
3100
|
-
"name",
|
|
3101
|
-
"reserveName",
|
|
3102
|
-
"values",
|
|
3103
|
-
"set",
|
|
3104
|
-
"value",
|
|
3105
|
-
() => "constVar",
|
|
3106
|
-
"reserveConst",
|
|
3107
|
-
() => "var",
|
|
3108
|
-
"reserveVariable",
|
|
3109
|
-
"functionCode",
|
|
3110
|
-
() => Function,
|
|
3111
|
-
"raw",
|
|
3112
|
-
"code",
|
|
3113
|
-
"format",
|
|
3114
|
-
"args",
|
|
3115
|
-
"build",
|
|
3116
|
-
() => Function,
|
|
3117
|
-
"buildAsync",
|
|
3118
|
-
"CompilerContext",
|
|
3119
|
-
`!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`
|
|
3120
|
-
];
|
|
3121
|
-
|
|
3122
|
-
// ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/string.js
|
|
3123
|
-
chunkMO4O4UYI_cjs.init_cjs_shims();
|
|
3124
|
-
function __assignType6(fn, args) {
|
|
3125
|
-
fn.__type = args;
|
|
3126
|
-
return fn;
|
|
3127
|
-
}
|
|
3128
|
-
chunkMO4O4UYI_cjs.__name(__assignType6, "__assignType");
|
|
3129
|
-
function indent2(indentation, prefix = "") {
|
|
3130
|
-
return __assignType6((str = "") => {
|
|
3131
|
-
return " ".repeat(indentation) + str.replace(/\n/g, "\n" + " ".repeat(indentation) + prefix);
|
|
3132
|
-
}, [
|
|
3133
|
-
"str",
|
|
3134
|
-
() => "",
|
|
3135
|
-
"",
|
|
3136
|
-
'P&2!>""/#'
|
|
3137
|
-
]);
|
|
3138
|
-
}
|
|
3139
|
-
chunkMO4O4UYI_cjs.__name(indent2, "indent");
|
|
3140
|
-
indent2.__type = [
|
|
3141
|
-
"indentation",
|
|
3142
|
-
"prefix",
|
|
3143
|
-
() => "",
|
|
3144
|
-
"indent",
|
|
3145
|
-
`P'2!&2">#"/$`
|
|
3146
|
-
];
|
|
3147
|
-
function capitalize(string) {
|
|
3148
|
-
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
3149
|
-
}
|
|
3150
|
-
chunkMO4O4UYI_cjs.__name(capitalize, "capitalize");
|
|
3151
|
-
capitalize.__type = [
|
|
3152
|
-
"string",
|
|
3153
|
-
"capitalize",
|
|
3154
|
-
'P&2!&/"'
|
|
3155
|
-
];
|
|
3156
|
-
|
|
3157
|
-
// ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/emitter.js
|
|
3158
|
-
chunkMO4O4UYI_cjs.init_cjs_shims();
|
|
3159
|
-
var __\u03A9AsyncSubscriber = [
|
|
3160
|
-
"T",
|
|
3161
|
-
"event",
|
|
3162
|
-
"",
|
|
3163
|
-
"AsyncSubscriber",
|
|
3164
|
-
'b!Pe"!2"P$`$J/#w$y'
|
|
3165
|
-
];
|
|
3166
|
-
var __\u03A9Subscriber = [
|
|
3167
|
-
"T",
|
|
3168
|
-
"event",
|
|
3169
|
-
"",
|
|
3170
|
-
"Subscriber",
|
|
3171
|
-
'b!Pe"!2"P$`$J/#w$y'
|
|
3172
|
-
];
|
|
3173
|
-
var __\u03A9AsyncEventSubscription = [
|
|
3174
|
-
"",
|
|
3175
|
-
"unsubscribe",
|
|
3176
|
-
"AsyncEventSubscription",
|
|
3177
|
-
'PP$/!4"Mw#y'
|
|
3178
|
-
];
|
|
3179
|
-
var __\u03A9EventSubscription = [
|
|
3180
|
-
"",
|
|
3181
|
-
"unsubscribe",
|
|
3182
|
-
"EventSubscription",
|
|
3183
|
-
'PP$/!4"Mw#y'
|
|
3184
|
-
];
|
|
3185
|
-
var asyncId = 0;
|
|
3186
|
-
var EmitterEvent = class {
|
|
3187
|
-
static {
|
|
3188
|
-
chunkMO4O4UYI_cjs.__name(this, "EmitterEvent");
|
|
3189
|
-
}
|
|
3190
|
-
constructor() {
|
|
3191
|
-
this.id = asyncId++;
|
|
3192
|
-
this.stopped = false;
|
|
3193
|
-
this.propagationStopped = false;
|
|
3194
|
-
}
|
|
3195
|
-
/**
|
|
3196
|
-
* Stop propagating the event to subsequent event listeners.
|
|
3197
|
-
*/
|
|
3198
|
-
stopPropagation() {
|
|
3199
|
-
this.propagationStopped = true;
|
|
3200
|
-
}
|
|
3201
|
-
/**
|
|
3202
|
-
* Signal the emitter that you want to abort.
|
|
3203
|
-
* Subsequent event listeners will still be called.
|
|
3204
|
-
*/
|
|
3205
|
-
stop() {
|
|
3206
|
-
this.stopped = true;
|
|
3207
|
-
}
|
|
3208
|
-
};
|
|
3209
|
-
EmitterEvent.__type = [
|
|
3210
|
-
"id",
|
|
3211
|
-
function() {
|
|
3212
|
-
return asyncId++;
|
|
3213
|
-
},
|
|
3214
|
-
"stopped",
|
|
3215
|
-
function() {
|
|
3216
|
-
return false;
|
|
3217
|
-
},
|
|
3218
|
-
"propagationStopped",
|
|
3219
|
-
function() {
|
|
3220
|
-
return false;
|
|
3221
|
-
},
|
|
3222
|
-
"stopPropagation",
|
|
3223
|
-
"stop",
|
|
3224
|
-
"EmitterEvent",
|
|
3225
|
-
`!3!9>")3#>$)3%>&P"0'P"0(5w)`
|
|
3226
|
-
];
|
|
3227
|
-
var EventEmitter = class {
|
|
3228
|
-
static {
|
|
3229
|
-
chunkMO4O4UYI_cjs.__name(this, "EventEmitter");
|
|
3230
|
-
}
|
|
3231
|
-
constructor(parent) {
|
|
3232
|
-
this.parent = parent;
|
|
3233
|
-
this.subscribers = [];
|
|
3234
|
-
}
|
|
3235
|
-
subscribe(callback) {
|
|
3236
|
-
this.subscribers.push(callback);
|
|
3237
|
-
return {
|
|
3238
|
-
unsubscribe: /* @__PURE__ */ chunkMO4O4UYI_cjs.__name(() => {
|
|
3239
|
-
arrayRemoveItem(this.subscribers, callback);
|
|
3240
|
-
}, "unsubscribe")
|
|
3241
|
-
};
|
|
3242
|
-
}
|
|
3243
|
-
emit(event) {
|
|
3244
|
-
if (this.parent) this.parent.emit(event);
|
|
3245
|
-
if (event.propagationStopped) return;
|
|
3246
|
-
for (const subscriber of this.subscribers) {
|
|
3247
|
-
subscriber(event);
|
|
3248
|
-
if (event.propagationStopped) return;
|
|
3249
|
-
}
|
|
3250
|
-
}
|
|
3251
|
-
hasSubscriptions() {
|
|
3252
|
-
return this.subscribers.length > 0;
|
|
3253
|
-
}
|
|
3254
|
-
};
|
|
3255
|
-
EventEmitter.__type = [
|
|
3256
|
-
"T",
|
|
3257
|
-
() => __\u03A9Subscriber,
|
|
3258
|
-
"subscribers",
|
|
3259
|
-
function() {
|
|
3260
|
-
return [];
|
|
3261
|
-
},
|
|
3262
|
-
() => EventEmitter,
|
|
3263
|
-
"parent",
|
|
3264
|
-
"constructor",
|
|
3265
|
-
() => __\u03A9Subscriber,
|
|
3266
|
-
"callback",
|
|
3267
|
-
() => __\u03A9EventSubscription,
|
|
3268
|
-
"subscribe",
|
|
3269
|
-
"event",
|
|
3270
|
-
"emit",
|
|
3271
|
-
"hasSubscriptions",
|
|
3272
|
-
"EventEmitter",
|
|
3273
|
-
`b!e!!o""F3#<>$PP"7%2&8<"0'Pe"!o("2)n*0+Pe"!2,$0-P)0.5w/`
|
|
3274
|
-
];
|
|
3275
|
-
var AsyncEventEmitter = class {
|
|
3276
|
-
static {
|
|
3277
|
-
chunkMO4O4UYI_cjs.__name(this, "AsyncEventEmitter");
|
|
3278
|
-
}
|
|
3279
|
-
constructor(parent) {
|
|
3280
|
-
this.parent = parent;
|
|
3281
|
-
this.subscribers = [];
|
|
3282
|
-
}
|
|
3283
|
-
subscribe(callback) {
|
|
3284
|
-
this.subscribers.push(callback);
|
|
3285
|
-
return {
|
|
3286
|
-
unsubscribe: /* @__PURE__ */ chunkMO4O4UYI_cjs.__name(() => {
|
|
3287
|
-
arrayRemoveItem(this.subscribers, callback);
|
|
3288
|
-
}, "unsubscribe")
|
|
3289
|
-
};
|
|
3290
|
-
}
|
|
3291
|
-
async emit(event) {
|
|
3292
|
-
if (this.parent) await this.parent.emit(event);
|
|
3293
|
-
if (event.propagationStopped) return;
|
|
3294
|
-
for (const subscriber of this.subscribers) {
|
|
3295
|
-
await subscriber(event);
|
|
3296
|
-
if (event.propagationStopped) return;
|
|
3297
|
-
}
|
|
3298
|
-
}
|
|
3299
|
-
hasSubscriptions() {
|
|
3300
|
-
return this.subscribers.length > 0;
|
|
3301
|
-
}
|
|
3302
|
-
};
|
|
3303
|
-
AsyncEventEmitter.__type = [
|
|
3304
|
-
"T",
|
|
3305
|
-
() => __\u03A9AsyncSubscriber,
|
|
3306
|
-
"subscribers",
|
|
3307
|
-
function() {
|
|
3308
|
-
return [];
|
|
3309
|
-
},
|
|
3310
|
-
() => AsyncEventEmitter,
|
|
3311
|
-
"parent",
|
|
3312
|
-
"constructor",
|
|
3313
|
-
() => __\u03A9AsyncSubscriber,
|
|
3314
|
-
"callback",
|
|
3315
|
-
() => __\u03A9AsyncEventSubscription,
|
|
3316
|
-
"subscribe",
|
|
3317
|
-
"event",
|
|
3318
|
-
"emit",
|
|
3319
|
-
"hasSubscriptions",
|
|
3320
|
-
"AsyncEventEmitter",
|
|
3321
|
-
'b!e!!o""F3#<>$PP"7%2&8<"0\'Pe"!o("2)n*0+Pe"!2,$`0-P)0.5w/'
|
|
3322
|
-
];
|
|
3323
|
-
|
|
3324
|
-
// ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/reactive.js
|
|
3325
|
-
chunkMO4O4UYI_cjs.init_cjs_shims();
|
|
3326
|
-
function __assignType7(fn, args) {
|
|
3327
|
-
fn.__type = args;
|
|
3328
|
-
return fn;
|
|
3329
|
-
}
|
|
3330
|
-
chunkMO4O4UYI_cjs.__name(__assignType7, "__assignType");
|
|
3331
|
-
var nextTick = typeof requestAnimationFrame !== "undefined" ? __assignType7((cb) => requestAnimationFrame(cb), [
|
|
3332
|
-
"",
|
|
3333
|
-
"cb",
|
|
3334
|
-
'PP$/!2""/!'
|
|
3335
|
-
]) : __assignType7((cb) => setTimeout(cb), [
|
|
3336
|
-
"",
|
|
3337
|
-
"cb",
|
|
3338
|
-
'PP$/!2""/!'
|
|
3339
|
-
]);
|
|
3340
|
-
var clearTick = typeof requestAnimationFrame !== "undefined" ? __assignType7((id) => cancelAnimationFrame(id), [
|
|
3341
|
-
"id",
|
|
3342
|
-
"",
|
|
3343
|
-
'P"2!"/"'
|
|
3344
|
-
]) : __assignType7((id) => clearTick(id), [
|
|
3345
|
-
"id",
|
|
3346
|
-
"",
|
|
3347
|
-
'P"2!"/"'
|
|
3348
|
-
]);
|
|
3349
|
-
function throttleTime(call, cps = 5) {
|
|
3350
|
-
let last2 = Date.now();
|
|
3351
|
-
let dirty = false;
|
|
3352
|
-
let lastArgs = [];
|
|
3353
|
-
let execution = false;
|
|
3354
|
-
function tick() {
|
|
3355
|
-
const now = Date.now();
|
|
3356
|
-
if (!execution && now - last2 > 1e3 / cps) {
|
|
3357
|
-
execution = true;
|
|
3358
|
-
call(...lastArgs);
|
|
3359
|
-
dirty = false;
|
|
3360
|
-
last2 = Date.now();
|
|
3361
|
-
execution = false;
|
|
3362
|
-
}
|
|
3363
|
-
if (dirty) {
|
|
3364
|
-
nextTick(tick);
|
|
3365
|
-
}
|
|
3366
|
-
}
|
|
3367
|
-
chunkMO4O4UYI_cjs.__name(tick, "tick");
|
|
3368
|
-
tick.__type = [
|
|
3369
|
-
"tick",
|
|
3370
|
-
'P"/!'
|
|
3371
|
-
];
|
|
3372
|
-
return __assignType7((...args) => {
|
|
3373
|
-
dirty = true;
|
|
3374
|
-
lastArgs = args;
|
|
3375
|
-
tick();
|
|
3376
|
-
}, [
|
|
3377
|
-
"args",
|
|
3378
|
-
"",
|
|
3379
|
-
'P"@2!"/"'
|
|
3380
|
-
]);
|
|
3381
|
-
}
|
|
3382
|
-
chunkMO4O4UYI_cjs.__name(throttleTime, "throttleTime");
|
|
3383
|
-
throttleTime.__type = [
|
|
3384
|
-
() => Function,
|
|
3385
|
-
"call",
|
|
3386
|
-
"cps",
|
|
3387
|
-
"args",
|
|
3388
|
-
"",
|
|
3389
|
-
"throttleTime",
|
|
3390
|
-
'PPu!2""2#P"@2$$/%/&'
|
|
3391
|
-
];
|
|
3392
|
-
function bufferedGate(callback) {
|
|
3393
|
-
const q = [];
|
|
3394
|
-
let activated = false;
|
|
3395
|
-
const throttled = throttleTime(async () => {
|
|
3396
|
-
if (q.length === 0) return;
|
|
3397
|
-
for (const t of q) {
|
|
3398
|
-
const result = callback(t);
|
|
3399
|
-
if (result instanceof Promise) {
|
|
3400
|
-
await result;
|
|
3401
|
-
}
|
|
3402
|
-
}
|
|
3403
|
-
q.splice(0, q.length);
|
|
3404
|
-
});
|
|
3405
|
-
return {
|
|
3406
|
-
activate: /* @__PURE__ */ chunkMO4O4UYI_cjs.__name(() => {
|
|
3407
|
-
activated = true;
|
|
3408
|
-
throttled();
|
|
3409
|
-
}, "activate"),
|
|
3410
|
-
call: __assignType7((i) => {
|
|
3411
|
-
q.push(i);
|
|
3412
|
-
if (activated) {
|
|
3413
|
-
throttled();
|
|
3414
|
-
}
|
|
3415
|
-
}, [
|
|
3416
|
-
() => callback,
|
|
3417
|
-
"arg",
|
|
3418
|
-
"",
|
|
3419
|
-
"i",
|
|
3420
|
-
'PPdi!Ph"!2""/#qe!!!j2$"/#'
|
|
3421
|
-
])
|
|
3422
|
-
};
|
|
3423
|
-
}
|
|
3424
|
-
chunkMO4O4UYI_cjs.__name(bufferedGate, "bufferedGate");
|
|
3425
|
-
bufferedGate.__type = [
|
|
3426
|
-
"arg",
|
|
3427
|
-
"",
|
|
3428
|
-
"callback",
|
|
3429
|
-
"bufferedGate",
|
|
3430
|
-
'PP"2!"/"2#"/$'
|
|
3431
|
-
];
|
|
3432
|
-
|
|
3433
|
-
// ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/reflection.js
|
|
3434
|
-
chunkMO4O4UYI_cjs.init_cjs_shims();
|
|
3435
|
-
var COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;
|
|
3436
|
-
var DEFAULT_PARAMS = /=[^,]+/mg;
|
|
3437
|
-
var FAT_ARROWS = /=>.*$/mg;
|
|
3438
|
-
function extractParameters(fn) {
|
|
3439
|
-
fn = typeof fn === "string" ? fn : fn.toString();
|
|
3440
|
-
fn = removeStrings(fn);
|
|
3441
|
-
if (fn.startsWith("class")) {
|
|
3442
|
-
const start = fn.match(new RegExp("[ \n{]constructor\\("));
|
|
3443
|
-
if (!start) return [];
|
|
3444
|
-
fn = fn.substr((start.index || 0) + start[0].length);
|
|
3445
|
-
fn = fn.replace(COMMENTS, "").replace(FAT_ARROWS, "").replace(DEFAULT_PARAMS, "");
|
|
3446
|
-
return fn.slice(0, fn.indexOf("{")).match(/([^\(\){\s,]+)/g) || [];
|
|
3447
|
-
} else {
|
|
3448
|
-
fn = fn.replace(COMMENTS, "").replace(FAT_ARROWS, "").replace(DEFAULT_PARAMS, "");
|
|
3449
|
-
return fn.slice(fn.indexOf("(") + 1, fn.indexOf("{")).match(/([^\(\)\{\}\s,]+)/g) || [];
|
|
3450
|
-
}
|
|
3451
|
-
}
|
|
3452
|
-
chunkMO4O4UYI_cjs.__name(extractParameters, "extractParameters");
|
|
3453
|
-
extractParameters.__type = [
|
|
3454
|
-
() => Function,
|
|
3455
|
-
() => __\u03A9ClassType,
|
|
3456
|
-
"fn",
|
|
3457
|
-
"extractParameters",
|
|
3458
|
-
'PP&Pu!n"J2#&F/$'
|
|
3459
|
-
];
|
|
3460
|
-
function extractMethodBody(classCode, name) {
|
|
3461
|
-
let methodCode = "";
|
|
3462
|
-
classCode = removeStrings(classCode);
|
|
3463
|
-
const start = classCode.match(new RegExp("[ \n]" + name + "\\("));
|
|
3464
|
-
if (!start) return "";
|
|
3465
|
-
classCode = classCode.substr((start.index || 0) + start[0].length);
|
|
3466
|
-
let blockDepth = 1;
|
|
3467
|
-
classCode = classCode.substr(classCode.indexOf("{") + 1);
|
|
3468
|
-
for (let i = 0; i < classCode.length; i++) {
|
|
3469
|
-
const char = classCode[i];
|
|
3470
|
-
if (char === "{") blockDepth++;
|
|
3471
|
-
if (char === "}") blockDepth--;
|
|
3472
|
-
if (blockDepth === 0) {
|
|
3473
|
-
return methodCode;
|
|
3474
|
-
}
|
|
3475
|
-
if (char === "\n" || char === " " || char === " ") continue;
|
|
3476
|
-
methodCode += char;
|
|
3477
|
-
}
|
|
3478
|
-
return methodCode;
|
|
3479
|
-
}
|
|
3480
|
-
chunkMO4O4UYI_cjs.__name(extractMethodBody, "extractMethodBody");
|
|
3481
|
-
extractMethodBody.__type = [
|
|
3482
|
-
"classCode",
|
|
3483
|
-
"name",
|
|
3484
|
-
"extractMethodBody",
|
|
3485
|
-
'P&2!&2"&/#'
|
|
3486
|
-
];
|
|
3487
|
-
function removeStrings(code) {
|
|
3488
|
-
let result = "";
|
|
3489
|
-
let inString = false;
|
|
3490
|
-
for (let i = 0; i < code.length; i++) {
|
|
3491
|
-
const char = code[i];
|
|
3492
|
-
if (inString && char === "\\") {
|
|
3493
|
-
i++;
|
|
3494
|
-
continue;
|
|
3495
|
-
}
|
|
3496
|
-
if (char === '"') {
|
|
3497
|
-
if (inString === '"') {
|
|
3498
|
-
inString = false;
|
|
3499
|
-
continue;
|
|
3500
|
-
}
|
|
3501
|
-
if (!inString) {
|
|
3502
|
-
inString = '"';
|
|
3503
|
-
continue;
|
|
3504
|
-
}
|
|
3505
|
-
}
|
|
3506
|
-
if (char === "'") {
|
|
3507
|
-
if (inString === "'") {
|
|
3508
|
-
inString = false;
|
|
3509
|
-
continue;
|
|
3510
|
-
}
|
|
3511
|
-
if (!inString) {
|
|
3512
|
-
inString = "'";
|
|
3513
|
-
continue;
|
|
3514
|
-
}
|
|
3515
|
-
}
|
|
3516
|
-
if (!inString) {
|
|
3517
|
-
result += char;
|
|
3518
|
-
}
|
|
3519
|
-
}
|
|
3520
|
-
return result;
|
|
3521
|
-
}
|
|
3522
|
-
chunkMO4O4UYI_cjs.__name(removeStrings, "removeStrings");
|
|
3523
|
-
removeStrings.__type = [
|
|
3524
|
-
"code",
|
|
3525
|
-
"removeStrings",
|
|
3526
|
-
'P&2!"/"'
|
|
3527
|
-
];
|
|
3528
|
-
|
|
3529
|
-
// ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/url.js
|
|
3530
|
-
chunkMO4O4UYI_cjs.init_cjs_shims();
|
|
3531
|
-
function __assignType8(fn, args) {
|
|
3532
|
-
fn.__type = args;
|
|
3533
|
-
return fn;
|
|
3534
|
-
}
|
|
3535
|
-
chunkMO4O4UYI_cjs.__name(__assignType8, "__assignType");
|
|
3536
|
-
function removeSlash(v) {
|
|
3537
|
-
return v.replace(/(^\/+)|(\/+$)/g, "");
|
|
3538
|
-
}
|
|
3539
|
-
chunkMO4O4UYI_cjs.__name(removeSlash, "removeSlash");
|
|
3540
|
-
removeSlash.__type = [
|
|
3541
|
-
"v",
|
|
3542
|
-
"removeSlash",
|
|
3543
|
-
'P&2!&/"'
|
|
3544
|
-
];
|
|
3545
|
-
function urlJoin(...path) {
|
|
3546
|
-
const leadingSlash = path[0] && path[0] !== "/" && path[0][0] === "/";
|
|
3547
|
-
const last2 = path[path.length - 1];
|
|
3548
|
-
const trailingSlash = last2 && last2 !== "/" && last2[last2.length - 1] === "/";
|
|
3549
|
-
return (leadingSlash ? "/" : "") + path.filter(__assignType8((v) => !!v, [
|
|
3550
|
-
"v",
|
|
3551
|
-
"",
|
|
3552
|
-
'P"2!"/"'
|
|
3553
|
-
])).map(__assignType8((v) => v === "/" ? "" : removeSlash(v.trim()), [
|
|
3554
|
-
"v",
|
|
3555
|
-
"",
|
|
3556
|
-
'P"2!"/"'
|
|
3557
|
-
])).join("/") + (trailingSlash ? "/" : "");
|
|
3558
|
-
}
|
|
3559
|
-
chunkMO4O4UYI_cjs.__name(urlJoin, "urlJoin");
|
|
3560
|
-
urlJoin.__type = [
|
|
3561
|
-
"path",
|
|
3562
|
-
"urlJoin",
|
|
3563
|
-
'P&@2!&/"'
|
|
3564
|
-
];
|
|
3565
|
-
|
|
3566
|
-
// ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/types.js
|
|
3567
|
-
chunkMO4O4UYI_cjs.init_cjs_shims();
|
|
3568
|
-
var __\u03A9TypeAnnotation = [
|
|
3569
|
-
"T",
|
|
3570
|
-
"Options",
|
|
3571
|
-
"TypeAnnotation",
|
|
3572
|
-
'b!!c"#w#y'
|
|
3573
|
-
];
|
|
3574
|
-
var __\u03A9InjectMeta = [
|
|
3575
|
-
"T",
|
|
3576
|
-
() => __\u03A9TypeAnnotation,
|
|
3577
|
-
"inject",
|
|
3578
|
-
"InjectMeta",
|
|
3579
|
-
'!c!.#e!!o"#w$y'
|
|
3580
|
-
];
|
|
3581
|
-
var __\u03A9Inject = [
|
|
3582
|
-
"Type",
|
|
3583
|
-
"Token",
|
|
3584
|
-
() => __\u03A9InjectMeta,
|
|
3585
|
-
"Inject",
|
|
3586
|
-
'b!!c"Pe"!e""o#"Kw$y'
|
|
3587
|
-
];
|
|
3588
|
-
|
|
3589
|
-
// ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/buffer.js
|
|
3590
|
-
chunkMO4O4UYI_cjs.init_cjs_shims();
|
|
3591
|
-
function __assignType9(fn, args) {
|
|
3592
|
-
fn.__type = args;
|
|
3593
|
-
return fn;
|
|
3594
|
-
}
|
|
3595
|
-
chunkMO4O4UYI_cjs.__name(__assignType9, "__assignType");
|
|
3596
|
-
var createBuffer = "undefined" !== typeof Buffer && "function" === typeof Buffer.allocUnsafe ? Buffer.allocUnsafe : __assignType9((size2) => new Uint8Array(size2), [
|
|
3597
|
-
"size",
|
|
3598
|
-
"",
|
|
3599
|
-
'P"2!"/"'
|
|
3600
|
-
]);
|
|
3601
|
-
function bufferConcat(chunks, length) {
|
|
3602
|
-
if (void 0 === length) {
|
|
3603
|
-
length = 0;
|
|
3604
|
-
for (const chunk of chunks) length += chunk.length;
|
|
3605
|
-
}
|
|
3606
|
-
const result = createBuffer(length);
|
|
3607
|
-
let offset = 0;
|
|
3608
|
-
for (const chunk of chunks) {
|
|
3609
|
-
result.set(chunk, offset);
|
|
3610
|
-
offset += chunk.length;
|
|
3611
|
-
}
|
|
3612
|
-
return result;
|
|
3613
|
-
}
|
|
3614
|
-
chunkMO4O4UYI_cjs.__name(bufferConcat, "bufferConcat");
|
|
3615
|
-
bufferConcat.__type = [
|
|
3616
|
-
"chunks",
|
|
3617
|
-
"length",
|
|
3618
|
-
"bufferConcat",
|
|
3619
|
-
`PWF2!'2"8W/#`
|
|
3620
|
-
];
|
|
3621
|
-
var textEncoder = new TextDecoder();
|
|
3622
|
-
var uint8ArrayToUtf8 = "undefined" !== typeof Buffer ? __assignType9((buffer) => Buffer.from(buffer).toString("utf8"), [
|
|
3623
|
-
"buffer",
|
|
3624
|
-
"",
|
|
3625
|
-
'PW2!"/"'
|
|
3626
|
-
]) : __assignType9((buffer) => textEncoder.decode(buffer), [
|
|
3627
|
-
"buffer",
|
|
3628
|
-
"",
|
|
3629
|
-
'PW2!"/"'
|
|
3630
|
-
]);
|
|
3631
|
-
function bufferToString(buffer) {
|
|
3632
|
-
if ("string" === typeof buffer) return buffer;
|
|
3633
|
-
return uint8ArrayToUtf8(buffer);
|
|
3634
|
-
}
|
|
3635
|
-
chunkMO4O4UYI_cjs.__name(bufferToString, "bufferToString");
|
|
3636
|
-
bufferToString.__type = [
|
|
3637
|
-
"buffer",
|
|
3638
|
-
"bufferToString",
|
|
3639
|
-
'PP&WJ2!&/"'
|
|
3640
|
-
];
|
|
3641
|
-
function nativeBase64ToUint8Array(base64) {
|
|
3642
|
-
const raw = atob(base64);
|
|
3643
|
-
const rawLength = raw.length;
|
|
3644
|
-
const array = createBuffer(rawLength);
|
|
3645
|
-
for (let i = 0; i < rawLength; i++) {
|
|
3646
|
-
array[i] = raw.charCodeAt(i);
|
|
3647
|
-
}
|
|
3648
|
-
return array;
|
|
3649
|
-
}
|
|
3650
|
-
chunkMO4O4UYI_cjs.__name(nativeBase64ToUint8Array, "nativeBase64ToUint8Array");
|
|
3651
|
-
nativeBase64ToUint8Array.__type = [
|
|
3652
|
-
"base64",
|
|
3653
|
-
"nativeBase64ToUint8Array",
|
|
3654
|
-
'P&2!W/"'
|
|
3655
|
-
];
|
|
3656
|
-
var base64ToUint8Array = "undefined" === typeof Buffer ? nativeBase64ToUint8Array : __assignType9((base64) => Buffer.from(base64, "base64"), [
|
|
3657
|
-
"base64",
|
|
3658
|
-
"",
|
|
3659
|
-
'P&2!"/"'
|
|
3660
|
-
]);
|
|
3661
|
-
|
|
3662
|
-
// ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/path.js
|
|
3663
|
-
chunkMO4O4UYI_cjs.init_cjs_shims();
|
|
3664
|
-
function __assignType10(fn, args) {
|
|
3665
|
-
fn.__type = args;
|
|
3666
|
-
return fn;
|
|
3667
|
-
}
|
|
3668
|
-
chunkMO4O4UYI_cjs.__name(__assignType10, "__assignType");
|
|
3669
|
-
function pathNormalize(path) {
|
|
3670
|
-
path = path[0] !== "/" ? "/" + path : path;
|
|
3671
|
-
path = path.length > 1 && path[path.length - 1] === "/" ? path.slice(0, -1) : path;
|
|
3672
|
-
return path.replace(/\/+/g, "/");
|
|
3673
|
-
}
|
|
3674
|
-
chunkMO4O4UYI_cjs.__name(pathNormalize, "pathNormalize");
|
|
3675
|
-
pathNormalize.__type = [
|
|
3676
|
-
"path",
|
|
3677
|
-
"pathNormalize",
|
|
3678
|
-
'P&2!&/"'
|
|
3679
|
-
];
|
|
3680
|
-
function pathDirectory(path) {
|
|
3681
|
-
if (path === "/") return "/";
|
|
3682
|
-
const lastSlash = path.lastIndexOf("/");
|
|
3683
|
-
return lastSlash <= 0 ? "/" : path.slice(0, lastSlash);
|
|
3684
|
-
}
|
|
3685
|
-
chunkMO4O4UYI_cjs.__name(pathDirectory, "pathDirectory");
|
|
3686
|
-
pathDirectory.__type = [
|
|
3687
|
-
"path",
|
|
3688
|
-
"pathDirectory",
|
|
3689
|
-
'P&2!&/"'
|
|
3690
|
-
];
|
|
3691
|
-
function pathBasename(path) {
|
|
3692
|
-
const lastSlash = path.lastIndexOf("/");
|
|
3693
|
-
return lastSlash === -1 ? path : path.slice(lastSlash + 1);
|
|
3694
|
-
}
|
|
3695
|
-
chunkMO4O4UYI_cjs.__name(pathBasename, "pathBasename");
|
|
3696
|
-
pathBasename.__type = [
|
|
3697
|
-
"path",
|
|
3698
|
-
"pathBasename",
|
|
3699
|
-
'P&2!&/"'
|
|
3700
|
-
];
|
|
3701
|
-
function pathExtension(path) {
|
|
3702
|
-
const basename = pathBasename(path);
|
|
3703
|
-
const lastDot = basename.lastIndexOf(".");
|
|
3704
|
-
return lastDot === -1 ? "" : basename.slice(lastDot + 1);
|
|
3705
|
-
}
|
|
3706
|
-
chunkMO4O4UYI_cjs.__name(pathExtension, "pathExtension");
|
|
3707
|
-
pathExtension.__type = [
|
|
3708
|
-
"path",
|
|
3709
|
-
"pathExtension",
|
|
3710
|
-
'P&2!&/"'
|
|
3711
|
-
];
|
|
3712
|
-
function pathJoin(...paths) {
|
|
3713
|
-
return "/" + paths.map(__assignType10((v) => pathNormalize(v).slice(1), [
|
|
3714
|
-
"v",
|
|
3715
|
-
"",
|
|
3716
|
-
'P"2!"/"'
|
|
3717
|
-
])).filter(__assignType10((v) => !!v, [
|
|
3718
|
-
"v",
|
|
3719
|
-
"",
|
|
3720
|
-
'P"2!"/"'
|
|
3721
|
-
])).join("/");
|
|
3722
|
-
}
|
|
3723
|
-
chunkMO4O4UYI_cjs.__name(pathJoin, "pathJoin");
|
|
3724
|
-
pathJoin.__type = [
|
|
3725
|
-
"paths",
|
|
3726
|
-
"pathJoin",
|
|
3727
|
-
'P&@2!&/"'
|
|
3728
|
-
];
|
|
3729
|
-
|
|
3730
|
-
// ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/index.js
|
|
3731
|
-
chunkMO4O4UYI_cjs.init_cjs_shims();
|
|
3732
|
-
|
|
3733
|
-
exports.AsyncEventEmitter = AsyncEventEmitter;
|
|
3734
|
-
exports.AsyncFunction = AsyncFunction;
|
|
3735
|
-
exports.CompilerContext = CompilerContext;
|
|
3736
|
-
exports.CustomError = CustomError;
|
|
3737
|
-
exports.EmitterEvent = EmitterEvent;
|
|
3738
|
-
exports.EventEmitter = EventEmitter;
|
|
3739
|
-
exports.Mutex = Mutex;
|
|
3740
|
-
exports.ParsedHost = ParsedHost;
|
|
3741
|
-
exports.ProcessLock = ProcessLock;
|
|
3742
|
-
exports.ProcessLocker = ProcessLocker;
|
|
3743
|
-
exports.Timer = Timer;
|
|
3744
|
-
exports.__ΩAbstractClassType = __ΩAbstractClassType;
|
|
3745
|
-
exports.__ΩAsyncEventSubscription = __ΩAsyncEventSubscription;
|
|
3746
|
-
exports.__ΩClassType = __ΩClassType;
|
|
3747
|
-
exports.__ΩCustomError = __ΩCustomError;
|
|
3748
|
-
exports.__ΩEventSubscription = __ΩEventSubscription;
|
|
3749
|
-
exports.__ΩExtractClassType = __ΩExtractClassType;
|
|
3750
|
-
exports.__ΩInject = __ΩInject;
|
|
3751
|
-
exports.__ΩInjectMeta = __ΩInjectMeta;
|
|
3752
|
-
exports.__ΩTypeAnnotation = __ΩTypeAnnotation;
|
|
3753
|
-
exports.appendObject = appendObject;
|
|
3754
|
-
exports.applyDefaults = applyDefaults;
|
|
3755
|
-
exports.arrayClear = arrayClear;
|
|
3756
|
-
exports.arrayHasItem = arrayHasItem;
|
|
3757
|
-
exports.arrayMoveItem = arrayMoveItem;
|
|
3758
|
-
exports.arrayRemoveItem = arrayRemoveItem;
|
|
3759
|
-
exports.assertDefined = assertDefined;
|
|
3760
|
-
exports.assertInstanceOf = assertInstanceOf;
|
|
3761
|
-
exports.asyncOperation = asyncOperation;
|
|
3762
|
-
exports.average = average;
|
|
3763
|
-
exports.base64ToUint8Array = base64ToUint8Array;
|
|
3764
|
-
exports.bufferConcat = bufferConcat;
|
|
3765
|
-
exports.bufferToString = bufferToString;
|
|
3766
|
-
exports.bufferedGate = bufferedGate;
|
|
3767
|
-
exports.capitalize = capitalize;
|
|
3768
|
-
exports.changeClass = changeClass;
|
|
3769
|
-
exports.clearTick = clearTick;
|
|
3770
|
-
exports.collectForMicrotask = collectForMicrotask;
|
|
3771
|
-
exports.copy = copy;
|
|
3772
|
-
exports.createBuffer = createBuffer;
|
|
3773
|
-
exports.createDynamicClass = createDynamicClass;
|
|
3774
|
-
exports.createStack = createStack;
|
|
3775
|
-
exports.deletePathValue = deletePathValue;
|
|
3776
|
-
exports.each = each;
|
|
3777
|
-
exports.eachKey = eachKey;
|
|
3778
|
-
exports.eachPair = eachPair;
|
|
3779
|
-
exports.empty = empty;
|
|
3780
|
-
exports.ensureError = ensureError;
|
|
3781
|
-
exports.escapeRegExp = escapeRegExp;
|
|
3782
|
-
exports.extractMethodBody = extractMethodBody;
|
|
3783
|
-
exports.extractParameters = extractParameters;
|
|
3784
|
-
exports.first = first;
|
|
3785
|
-
exports.firstKey = firstKey;
|
|
3786
|
-
exports.fixAsyncOperation = fixAsyncOperation;
|
|
3787
|
-
exports.formatError = formatError;
|
|
3788
|
-
exports.forwardTypeArguments = forwardTypeArguments;
|
|
3789
|
-
exports.getClassName = getClassName;
|
|
3790
|
-
exports.getClassPropertyName = getClassPropertyName;
|
|
3791
|
-
exports.getClassTypeFromInstance = getClassTypeFromInstance;
|
|
3792
|
-
exports.getCurrentFileName = getCurrentFileName;
|
|
3793
|
-
exports.getEnumKeyLabelMap = getEnumKeyLabelMap;
|
|
3794
|
-
exports.getEnumLabel = getEnumLabel;
|
|
3795
|
-
exports.getEnumLabels = getEnumLabels;
|
|
3796
|
-
exports.getEnumValues = getEnumValues;
|
|
3797
|
-
exports.getInheritanceChain = getInheritanceChain;
|
|
3798
|
-
exports.getObjectKeysSize = getObjectKeysSize;
|
|
3799
|
-
exports.getParentClass = getParentClass;
|
|
3800
|
-
exports.getPathValue = getPathValue;
|
|
3801
|
-
exports.getValidEnumValue = getValidEnumValue;
|
|
3802
|
-
exports.hasProperty = hasProperty;
|
|
3803
|
-
exports.humanBytes = humanBytes;
|
|
3804
|
-
exports.identifyType = identifyType;
|
|
3805
|
-
exports.inDebugMode = inDebugMode;
|
|
3806
|
-
exports.indent = indent2;
|
|
3807
|
-
exports.indexOf = indexOf;
|
|
3808
|
-
exports.isArray = isArray;
|
|
3809
|
-
exports.isAsyncFunction = isAsyncFunction;
|
|
3810
|
-
exports.isClass = isClass;
|
|
3811
|
-
exports.isClassInstance = isClassInstance;
|
|
3812
|
-
exports.isConstructable = isConstructable;
|
|
3813
|
-
exports.isFunction = isFunction;
|
|
3814
|
-
exports.isGlobalClass = isGlobalClass;
|
|
3815
|
-
exports.isInteger = isInteger;
|
|
3816
|
-
exports.isIterable = isIterable;
|
|
3817
|
-
exports.isNull = isNull;
|
|
3818
|
-
exports.isNumber = isNumber;
|
|
3819
|
-
exports.isNumeric = isNumeric;
|
|
3820
|
-
exports.isObject = isObject;
|
|
3821
|
-
exports.isObjectLiteral = isObjectLiteral;
|
|
3822
|
-
exports.isPlainObject = isPlainObject;
|
|
3823
|
-
exports.isPromise = isPromise;
|
|
3824
|
-
exports.isPrototypeOfBase = isPrototypeOfBase;
|
|
3825
|
-
exports.isSet = isSet;
|
|
3826
|
-
exports.isString = isString;
|
|
3827
|
-
exports.isUndefined = isUndefined;
|
|
3828
|
-
exports.isValidEnumValue = isValidEnumValue;
|
|
3829
|
-
exports.iterableSize = iterableSize;
|
|
3830
|
-
exports.last = last;
|
|
3831
|
-
exports.lastKey = lastKey;
|
|
3832
|
-
exports.log = log;
|
|
3833
|
-
exports.mergePromiseStack = mergePromiseStack;
|
|
3834
|
-
exports.mergeStack = mergeStack;
|
|
3835
|
-
exports.nativeBase64ToUint8Array = nativeBase64ToUint8Array;
|
|
3836
|
-
exports.nextTick = nextTick;
|
|
3837
|
-
exports.parseHost = parseHost;
|
|
3838
|
-
exports.pathBasename = pathBasename;
|
|
3839
|
-
exports.pathDirectory = pathDirectory;
|
|
3840
|
-
exports.pathExtension = pathExtension;
|
|
3841
|
-
exports.pathJoin = pathJoin;
|
|
3842
|
-
exports.pathNormalize = pathNormalize;
|
|
3843
|
-
exports.prependObjectKeys = prependObjectKeys;
|
|
3844
|
-
exports.prettyPrintObject = prettyPrintObject;
|
|
3845
|
-
exports.range = range;
|
|
3846
|
-
exports.rangeArray = rangeArray;
|
|
3847
|
-
exports.removeStrings = removeStrings;
|
|
3848
|
-
exports.setPathValue = setPathValue;
|
|
3849
|
-
exports.singleStack = singleStack;
|
|
3850
|
-
exports.size = size;
|
|
3851
|
-
exports.sleep = sleep;
|
|
3852
|
-
exports.stack = stack;
|
|
3853
|
-
exports.stringifyValueWithType = stringifyValueWithType;
|
|
3854
|
-
exports.throttleTime = throttleTime;
|
|
3855
|
-
exports.time = time;
|
|
3856
|
-
exports.toFastProperties = toFastProperties;
|
|
3857
|
-
exports.uint8ArrayToUtf8 = uint8ArrayToUtf8;
|
|
3858
|
-
exports.urlJoin = urlJoin;
|
|
3859
|
-
exports.zip = zip;
|