@nxtedition/types 1.6.6 → 1.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,35 +1,29 @@
1
1
  import __typia from "typia";
2
2
  export const isFile = input => {
3
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
3
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
4
4
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
5
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
6
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
7
- const $io4 = input => 0 === input.minimum;
8
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
9
- const $io6 = input => Object.keys(input).every(key => {
5
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
6
+ const $io3 = input => Object.keys(input).every(key => {
10
7
  const value = input[key];
11
8
  if (undefined === value)
12
9
  return true;
13
10
  return "string" === typeof value;
14
11
  });
15
- const $io7 = input => true;
12
+ const $io4 = input => true;
16
13
  return "object" === typeof input && null !== input && $io0(input);
17
14
  };
18
15
  export const assertFile = (input, errorFactory) => {
19
16
  const __is = input => {
20
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
17
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
21
18
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
22
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
23
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
24
- const $io4 = input => 0 === input.minimum;
25
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
26
- const $io6 = input => Object.keys(input).every(key => {
19
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
20
+ const $io3 = input => Object.keys(input).every(key => {
27
21
  const value = input[key];
28
22
  if (undefined === value)
29
23
  return true;
30
24
  return "string" === typeof value;
31
25
  });
32
- const $io7 = input => true;
26
+ const $io4 = input => true;
33
27
  return "object" === typeof input && null !== input && $io0(input);
34
28
  };
35
29
  if (false === __is(input))
@@ -102,39 +96,39 @@ export const assertFile = (input, errorFactory) => {
102
96
  value: input.mimeType
103
97
  }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
104
98
  path: _path + ".ranges",
105
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
99
+ expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
106
100
  value: input.ranges
107
101
  }, errorFactory)) && input.ranges.every((elem, _index3) => (Array.isArray(elem) || $guard(_exceptionable, {
108
102
  path: _path + ".ranges[" + _index3 + "]",
109
- expected: "[start: Minimum<0>, end: Minimum<0>]",
103
+ expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
110
104
  value: elem
111
105
  }, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
112
106
  path: _path + ".ranges[" + _index3 + "]",
113
- expected: "[Minimum<0>, Minimum<0>]",
107
+ expected: "[(number & Minimum<0>), (number & Minimum<0>)]",
114
108
  value: elem
115
- }, errorFactory)) && (("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) || $guard(_exceptionable, {
109
+ }, errorFactory)) && ("number" === typeof elem[0] && (0 <= elem[0] || $guard(_exceptionable, {
116
110
  path: _path + ".ranges[" + _index3 + "][0]",
117
- expected: "Minimum<0>",
111
+ expected: "number & Minimum<0>",
118
112
  value: elem[0]
119
- }, errorFactory)) && $ao2(elem[0], _path + ".ranges[" + _index3 + "][0]", true && _exceptionable) || $guard(_exceptionable, {
113
+ }, errorFactory)) || $guard(_exceptionable, {
120
114
  path: _path + ".ranges[" + _index3 + "][0]",
121
- expected: "Minimum<0>",
115
+ expected: "(number & Minimum<0>)",
122
116
  value: elem[0]
123
- }, errorFactory)) && (("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) || $guard(_exceptionable, {
117
+ }, errorFactory)) && ("number" === typeof elem[1] && (0 <= elem[1] || $guard(_exceptionable, {
124
118
  path: _path + ".ranges[" + _index3 + "][1]",
125
- expected: "Minimum<0>",
119
+ expected: "number & Minimum<0>",
126
120
  value: elem[1]
127
- }, errorFactory)) && $ao2(elem[1], _path + ".ranges[" + _index3 + "][1]", true && _exceptionable) || $guard(_exceptionable, {
121
+ }, errorFactory)) || $guard(_exceptionable, {
128
122
  path: _path + ".ranges[" + _index3 + "][1]",
129
- expected: "Minimum<0>",
123
+ expected: "(number & Minimum<0>)",
130
124
  value: elem[1]
131
125
  }, errorFactory))) || $guard(_exceptionable, {
132
126
  path: _path + ".ranges[" + _index3 + "]",
133
- expected: "[start: Minimum<0>, end: Minimum<0>]",
127
+ expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
134
128
  value: elem
135
129
  }, errorFactory)) || $guard(_exceptionable, {
136
130
  path: _path + ".ranges",
137
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
131
+ expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
138
132
  value: input.ranges
139
133
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
140
134
  path: _path + ".hash",
@@ -168,11 +162,11 @@ export const assertFile = (input, errorFactory) => {
168
162
  path: _path + ".error[" + _index4 + "]",
169
163
  expected: "NxtError",
170
164
  value: elem
171
- }, errorFactory)) && $ao5(elem, _path + ".error[" + _index4 + "]", true && _exceptionable) || $guard(_exceptionable, {
165
+ }, errorFactory)) && $ao2(elem, _path + ".error[" + _index4 + "]", true && _exceptionable) || $guard(_exceptionable, {
172
166
  path: _path + ".error[" + _index4 + "]",
173
167
  expected: "NxtError",
174
168
  value: elem
175
- }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao5(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
169
+ }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao2(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
176
170
  path: _path + ".error",
177
171
  expected: "(Array<NxtError> | NxtError | null)",
178
172
  value: input.error
@@ -198,66 +192,7 @@ export const assertFile = (input, errorFactory) => {
198
192
  expected: "(number | undefined)",
199
193
  value: input.end
200
194
  }, errorFactory));
201
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input["typia.tag"] || ("object" === typeof input["typia.tag"] && null !== input["typia.tag"] || $guard(_exceptionable, {
202
- path: _path + "[\"typia.tag\"]",
203
- expected: "(__type.o1 | undefined)",
204
- value: input["typia.tag"]
205
- }, errorFactory)) && $ao3(input["typia.tag"], _path + "[\"typia.tag\"]", true && _exceptionable) || $guard(_exceptionable, {
206
- path: _path + "[\"typia.tag\"]",
207
- expected: "(__type.o1 | undefined)",
208
- value: input["typia.tag"]
209
- }, errorFactory);
210
- const $ao3 = (input, _path, _exceptionable = true) => ("number" === input.target || $guard(_exceptionable, {
211
- path: _path + ".target",
212
- expected: "\"number\"",
213
- value: input.target
214
- }, errorFactory)) && ("minimum" === input.kind || $guard(_exceptionable, {
215
- path: _path + ".kind",
216
- expected: "\"minimum\"",
217
- value: input.kind
218
- }, errorFactory)) && (0 === input.value || $guard(_exceptionable, {
219
- path: _path + ".value",
220
- expected: "0",
221
- value: input.value
222
- }, errorFactory)) && ("0 <= $input" === input.validate || $guard(_exceptionable, {
223
- path: _path + ".validate",
224
- expected: "\"0 <= $input\"",
225
- value: input.validate
226
- }, errorFactory)) && ((Array.isArray(input.exclusive) || $guard(_exceptionable, {
227
- path: _path + ".exclusive",
228
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
229
- value: input.exclusive
230
- }, errorFactory)) && ((input.exclusive.length === 2 || $guard(_exceptionable, {
231
- path: _path + ".exclusive",
232
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
233
- value: input.exclusive
234
- }, errorFactory)) && ("minimum" === input.exclusive[0] || $guard(_exceptionable, {
235
- path: _path + ".exclusive[0]",
236
- expected: "\"minimum\"",
237
- value: input.exclusive[0]
238
- }, errorFactory)) && ("exclusiveMinimum" === input.exclusive[1] || $guard(_exceptionable, {
239
- path: _path + ".exclusive[1]",
240
- expected: "\"exclusiveMinimum\"",
241
- value: input.exclusive[1]
242
- }, errorFactory))) || $guard(_exceptionable, {
243
- path: _path + ".exclusive",
244
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
245
- value: input.exclusive
246
- }, errorFactory)) && (("object" === typeof input.schema && null !== input.schema || $guard(_exceptionable, {
247
- path: _path + ".schema",
248
- expected: "__type.o2",
249
- value: input.schema
250
- }, errorFactory)) && $ao4(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
251
- path: _path + ".schema",
252
- expected: "__type.o2",
253
- value: input.schema
254
- }, errorFactory));
255
- const $ao4 = (input, _path, _exceptionable = true) => 0 === input.minimum || $guard(_exceptionable, {
256
- path: _path + ".minimum",
257
- expected: "0",
258
- value: input.minimum
259
- }, errorFactory);
260
- const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
195
+ const $ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
261
196
  path: _path + ".message",
262
197
  expected: "string",
263
198
  value: input.message
@@ -285,7 +220,7 @@ export const assertFile = (input, errorFactory) => {
285
220
  path: _path + ".headers",
286
221
  expected: "(Record<string, string> | undefined)",
287
222
  value: input.headers
288
- }, errorFactory)) && $ao6(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
223
+ }, errorFactory)) && $ao3(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
289
224
  path: _path + ".headers",
290
225
  expected: "(Record<string, string> | undefined)",
291
226
  value: input.headers
@@ -293,7 +228,7 @@ export const assertFile = (input, errorFactory) => {
293
228
  path: _path + ".data",
294
229
  expected: "(object | undefined)",
295
230
  value: input.data
296
- }, errorFactory)) && $ao7(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
231
+ }, errorFactory)) && $ao4(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
297
232
  path: _path + ".data",
298
233
  expected: "(object | undefined)",
299
234
  value: input.data
@@ -301,7 +236,7 @@ export const assertFile = (input, errorFactory) => {
301
236
  path: _path + ".cause",
302
237
  expected: "(NxtError | null | undefined)",
303
238
  value: input.cause
304
- }, errorFactory)) && $ao5(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
239
+ }, errorFactory)) && $ao2(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
305
240
  path: _path + ".cause",
306
241
  expected: "(NxtError | null | undefined)",
307
242
  value: input.cause
@@ -313,7 +248,7 @@ export const assertFile = (input, errorFactory) => {
313
248
  path: _path + ".errors[" + _index5 + "]",
314
249
  expected: "NxtError",
315
250
  value: elem
316
- }, errorFactory)) && $ao5(elem, _path + ".errors[" + _index5 + "]", true && _exceptionable) || $guard(_exceptionable, {
251
+ }, errorFactory)) && $ao2(elem, _path + ".errors[" + _index5 + "]", true && _exceptionable) || $guard(_exceptionable, {
317
252
  path: _path + ".errors[" + _index5 + "]",
318
253
  expected: "NxtError",
319
254
  value: elem
@@ -322,7 +257,7 @@ export const assertFile = (input, errorFactory) => {
322
257
  expected: "(Array<NxtError> | null | undefined)",
323
258
  value: input.errors
324
259
  }, errorFactory));
325
- const $ao6 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
260
+ const $ao3 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
326
261
  const value = input[key];
327
262
  if (undefined === value)
328
263
  return true;
@@ -332,7 +267,7 @@ export const assertFile = (input, errorFactory) => {
332
267
  value: value
333
268
  }, errorFactory);
334
269
  });
335
- const $ao7 = (input, _path, _exceptionable = true) => true;
270
+ const $ao4 = (input, _path, _exceptionable = true) => true;
336
271
  return ("object" === typeof input && null !== input || $guard(true, {
337
272
  path: _path + "",
338
273
  expected: "File",
@@ -378,8 +313,20 @@ export const randomFile = generator => {
378
313
  resumable: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
379
314
  mimeType: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
380
315
  ranges: (generator?.array ?? $generator.array)(() => [
381
- $ro2(_recursive, _recursive ? 1 + _depth : _depth),
382
- $ro2(_recursive, _recursive ? 1 + _depth : _depth)
316
+ (generator?.customs ?? $generator.customs)?.number?.([
317
+ {
318
+ name: "Minimum<0>",
319
+ kind: "minimum",
320
+ value: 0
321
+ }
322
+ ]) ?? (generator?.number ?? $generator.number)(0, 10),
323
+ (generator?.customs ?? $generator.customs)?.number?.([
324
+ {
325
+ name: "Minimum<0>",
326
+ kind: "minimum",
327
+ value: 0
328
+ }
329
+ ]) ?? (generator?.number ?? $generator.number)(0, 10)
383
330
  ]),
384
331
  hash: (generator?.customs ?? $generator.customs)?.string?.([
385
332
  {
@@ -403,8 +350,8 @@ export const randomFile = generator => {
403
350
  completed: (generator?.boolean ?? $generator.boolean)(),
404
351
  error: $pick([
405
352
  () => null,
406
- () => (generator?.array ?? $generator.array)(() => $ro5(_recursive, _recursive ? 1 + _depth : _depth)),
407
- () => $ro5(_recursive, _recursive ? 1 + _depth : _depth)
353
+ () => (generator?.array ?? $generator.array)(() => $ro2(_recursive, _recursive ? 1 + _depth : _depth)),
354
+ () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
408
355
  ])()
409
356
  });
410
357
  const $ro1 = (_recursive = false, _depth = 0) => ({
@@ -425,27 +372,7 @@ export const randomFile = generator => {
425
372
  () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
426
373
  ])()
427
374
  });
428
- const $ro2 = (_recursive = false, _depth = 0) => ({
429
- "typia.tag": $pick([
430
- () => undefined,
431
- () => $ro3(_recursive, _recursive ? 1 + _depth : _depth)
432
- ])()
433
- });
434
- const $ro3 = (_recursive = false, _depth = 0) => ({
435
- target: "number",
436
- kind: "minimum",
437
- value: 0,
438
- validate: "0 <= $input",
439
- exclusive: [
440
- "minimum",
441
- "exclusiveMinimum"
442
- ],
443
- schema: $ro4(_recursive, _recursive ? 1 + _depth : _depth)
444
- });
445
- const $ro4 = (_recursive = false, _depth = 0) => ({
446
- minimum: 0
447
- });
448
- const $ro5 = (_recursive = true, _depth = 0) => ({
375
+ const $ro2 = (_recursive = true, _depth = 0) => ({
449
376
  message: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
450
377
  type: $pick([
451
378
  () => undefined,
@@ -469,46 +396,43 @@ export const randomFile = generator => {
469
396
  ])(),
470
397
  headers: $pick([
471
398
  () => undefined,
472
- () => $ro6(true, _recursive ? 1 + _depth : _depth)
399
+ () => $ro3(true, _recursive ? 1 + _depth : _depth)
473
400
  ])(),
474
401
  data: $pick([
475
402
  () => undefined,
476
- () => $ro7(true, _recursive ? 1 + _depth : _depth)
403
+ () => $ro4(true, _recursive ? 1 + _depth : _depth)
477
404
  ])(),
478
405
  cause: $pick([
479
406
  () => undefined,
480
407
  () => null,
481
- () => $ro5(true, _recursive ? 1 + _depth : _depth)
408
+ () => $ro2(true, _recursive ? 1 + _depth : _depth)
482
409
  ])(),
483
410
  errors: $pick([
484
411
  () => undefined,
485
412
  () => null,
486
- () => _recursive && 5 < _depth ? [] : 5 >= _depth ? (generator?.array ?? $generator.array)(() => $ro5(true, _recursive ? 1 + _depth : _depth)) : []
413
+ () => _recursive && 5 < _depth ? [] : 5 >= _depth ? (generator?.array ?? $generator.array)(() => $ro2(true, _recursive ? 1 + _depth : _depth)) : []
487
414
  ])()
488
415
  });
489
- const $ro6 = (_recursive = false, _depth = 0) => {
416
+ const $ro3 = (_recursive = false, _depth = 0) => {
490
417
  const output = {};
491
418
  (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(), (generator?.integer ?? $generator.integer)(0, 3));
492
419
  return output;
493
420
  };
494
- const $ro7 = (_recursive = false, _depth = 0) => {};
421
+ const $ro4 = (_recursive = false, _depth = 0) => {};
495
422
  return $ro0();
496
423
  };
497
424
  export const assertGuardFile = (input, errorFactory) => {
498
425
  const __is = input => {
499
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
426
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
500
427
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
501
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
502
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
503
- const $io4 = input => 0 === input.minimum;
504
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
505
- const $io6 = input => Object.keys(input).every(key => {
428
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
429
+ const $io3 = input => Object.keys(input).every(key => {
506
430
  const value = input[key];
507
431
  if (undefined === value)
508
432
  return true;
509
433
  return "string" === typeof value;
510
434
  });
511
- const $io7 = input => true;
435
+ const $io4 = input => true;
512
436
  return "object" === typeof input && null !== input && $io0(input);
513
437
  };
514
438
  if (false === __is(input))
@@ -581,39 +505,39 @@ export const assertGuardFile = (input, errorFactory) => {
581
505
  value: input.mimeType
582
506
  }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
583
507
  path: _path + ".ranges",
584
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
508
+ expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
585
509
  value: input.ranges
586
510
  }, errorFactory)) && input.ranges.every((elem, _index3) => (Array.isArray(elem) || $guard(_exceptionable, {
587
511
  path: _path + ".ranges[" + _index3 + "]",
588
- expected: "[start: Minimum<0>, end: Minimum<0>]",
512
+ expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
589
513
  value: elem
590
514
  }, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
591
515
  path: _path + ".ranges[" + _index3 + "]",
592
- expected: "[Minimum<0>, Minimum<0>]",
516
+ expected: "[(number & Minimum<0>), (number & Minimum<0>)]",
593
517
  value: elem
594
- }, errorFactory)) && (("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) || $guard(_exceptionable, {
518
+ }, errorFactory)) && ("number" === typeof elem[0] && (0 <= elem[0] || $guard(_exceptionable, {
595
519
  path: _path + ".ranges[" + _index3 + "][0]",
596
- expected: "Minimum<0>",
520
+ expected: "number & Minimum<0>",
597
521
  value: elem[0]
598
- }, errorFactory)) && $ao2(elem[0], _path + ".ranges[" + _index3 + "][0]", true && _exceptionable) || $guard(_exceptionable, {
522
+ }, errorFactory)) || $guard(_exceptionable, {
599
523
  path: _path + ".ranges[" + _index3 + "][0]",
600
- expected: "Minimum<0>",
524
+ expected: "(number & Minimum<0>)",
601
525
  value: elem[0]
602
- }, errorFactory)) && (("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) || $guard(_exceptionable, {
526
+ }, errorFactory)) && ("number" === typeof elem[1] && (0 <= elem[1] || $guard(_exceptionable, {
603
527
  path: _path + ".ranges[" + _index3 + "][1]",
604
- expected: "Minimum<0>",
528
+ expected: "number & Minimum<0>",
605
529
  value: elem[1]
606
- }, errorFactory)) && $ao2(elem[1], _path + ".ranges[" + _index3 + "][1]", true && _exceptionable) || $guard(_exceptionable, {
530
+ }, errorFactory)) || $guard(_exceptionable, {
607
531
  path: _path + ".ranges[" + _index3 + "][1]",
608
- expected: "Minimum<0>",
532
+ expected: "(number & Minimum<0>)",
609
533
  value: elem[1]
610
534
  }, errorFactory))) || $guard(_exceptionable, {
611
535
  path: _path + ".ranges[" + _index3 + "]",
612
- expected: "[start: Minimum<0>, end: Minimum<0>]",
536
+ expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
613
537
  value: elem
614
538
  }, errorFactory)) || $guard(_exceptionable, {
615
539
  path: _path + ".ranges",
616
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
540
+ expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
617
541
  value: input.ranges
618
542
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
619
543
  path: _path + ".hash",
@@ -647,11 +571,11 @@ export const assertGuardFile = (input, errorFactory) => {
647
571
  path: _path + ".error[" + _index4 + "]",
648
572
  expected: "NxtError",
649
573
  value: elem
650
- }, errorFactory)) && $ao5(elem, _path + ".error[" + _index4 + "]", true && _exceptionable) || $guard(_exceptionable, {
574
+ }, errorFactory)) && $ao2(elem, _path + ".error[" + _index4 + "]", true && _exceptionable) || $guard(_exceptionable, {
651
575
  path: _path + ".error[" + _index4 + "]",
652
576
  expected: "NxtError",
653
577
  value: elem
654
- }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao5(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
578
+ }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao2(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
655
579
  path: _path + ".error",
656
580
  expected: "(Array<NxtError> | NxtError | null)",
657
581
  value: input.error
@@ -677,66 +601,7 @@ export const assertGuardFile = (input, errorFactory) => {
677
601
  expected: "(number | undefined)",
678
602
  value: input.end
679
603
  }, errorFactory));
680
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input["typia.tag"] || ("object" === typeof input["typia.tag"] && null !== input["typia.tag"] || $guard(_exceptionable, {
681
- path: _path + "[\"typia.tag\"]",
682
- expected: "(__type.o1 | undefined)",
683
- value: input["typia.tag"]
684
- }, errorFactory)) && $ao3(input["typia.tag"], _path + "[\"typia.tag\"]", true && _exceptionable) || $guard(_exceptionable, {
685
- path: _path + "[\"typia.tag\"]",
686
- expected: "(__type.o1 | undefined)",
687
- value: input["typia.tag"]
688
- }, errorFactory);
689
- const $ao3 = (input, _path, _exceptionable = true) => ("number" === input.target || $guard(_exceptionable, {
690
- path: _path + ".target",
691
- expected: "\"number\"",
692
- value: input.target
693
- }, errorFactory)) && ("minimum" === input.kind || $guard(_exceptionable, {
694
- path: _path + ".kind",
695
- expected: "\"minimum\"",
696
- value: input.kind
697
- }, errorFactory)) && (0 === input.value || $guard(_exceptionable, {
698
- path: _path + ".value",
699
- expected: "0",
700
- value: input.value
701
- }, errorFactory)) && ("0 <= $input" === input.validate || $guard(_exceptionable, {
702
- path: _path + ".validate",
703
- expected: "\"0 <= $input\"",
704
- value: input.validate
705
- }, errorFactory)) && ((Array.isArray(input.exclusive) || $guard(_exceptionable, {
706
- path: _path + ".exclusive",
707
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
708
- value: input.exclusive
709
- }, errorFactory)) && ((input.exclusive.length === 2 || $guard(_exceptionable, {
710
- path: _path + ".exclusive",
711
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
712
- value: input.exclusive
713
- }, errorFactory)) && ("minimum" === input.exclusive[0] || $guard(_exceptionable, {
714
- path: _path + ".exclusive[0]",
715
- expected: "\"minimum\"",
716
- value: input.exclusive[0]
717
- }, errorFactory)) && ("exclusiveMinimum" === input.exclusive[1] || $guard(_exceptionable, {
718
- path: _path + ".exclusive[1]",
719
- expected: "\"exclusiveMinimum\"",
720
- value: input.exclusive[1]
721
- }, errorFactory))) || $guard(_exceptionable, {
722
- path: _path + ".exclusive",
723
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
724
- value: input.exclusive
725
- }, errorFactory)) && (("object" === typeof input.schema && null !== input.schema || $guard(_exceptionable, {
726
- path: _path + ".schema",
727
- expected: "__type.o2",
728
- value: input.schema
729
- }, errorFactory)) && $ao4(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
730
- path: _path + ".schema",
731
- expected: "__type.o2",
732
- value: input.schema
733
- }, errorFactory));
734
- const $ao4 = (input, _path, _exceptionable = true) => 0 === input.minimum || $guard(_exceptionable, {
735
- path: _path + ".minimum",
736
- expected: "0",
737
- value: input.minimum
738
- }, errorFactory);
739
- const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
604
+ const $ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
740
605
  path: _path + ".message",
741
606
  expected: "string",
742
607
  value: input.message
@@ -764,7 +629,7 @@ export const assertGuardFile = (input, errorFactory) => {
764
629
  path: _path + ".headers",
765
630
  expected: "(Record<string, string> | undefined)",
766
631
  value: input.headers
767
- }, errorFactory)) && $ao6(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
632
+ }, errorFactory)) && $ao3(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
768
633
  path: _path + ".headers",
769
634
  expected: "(Record<string, string> | undefined)",
770
635
  value: input.headers
@@ -772,7 +637,7 @@ export const assertGuardFile = (input, errorFactory) => {
772
637
  path: _path + ".data",
773
638
  expected: "(object | undefined)",
774
639
  value: input.data
775
- }, errorFactory)) && $ao7(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
640
+ }, errorFactory)) && $ao4(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
776
641
  path: _path + ".data",
777
642
  expected: "(object | undefined)",
778
643
  value: input.data
@@ -780,7 +645,7 @@ export const assertGuardFile = (input, errorFactory) => {
780
645
  path: _path + ".cause",
781
646
  expected: "(NxtError | null | undefined)",
782
647
  value: input.cause
783
- }, errorFactory)) && $ao5(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
648
+ }, errorFactory)) && $ao2(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
784
649
  path: _path + ".cause",
785
650
  expected: "(NxtError | null | undefined)",
786
651
  value: input.cause
@@ -792,7 +657,7 @@ export const assertGuardFile = (input, errorFactory) => {
792
657
  path: _path + ".errors[" + _index5 + "]",
793
658
  expected: "NxtError",
794
659
  value: elem
795
- }, errorFactory)) && $ao5(elem, _path + ".errors[" + _index5 + "]", true && _exceptionable) || $guard(_exceptionable, {
660
+ }, errorFactory)) && $ao2(elem, _path + ".errors[" + _index5 + "]", true && _exceptionable) || $guard(_exceptionable, {
796
661
  path: _path + ".errors[" + _index5 + "]",
797
662
  expected: "NxtError",
798
663
  value: elem
@@ -801,7 +666,7 @@ export const assertGuardFile = (input, errorFactory) => {
801
666
  expected: "(Array<NxtError> | null | undefined)",
802
667
  value: input.errors
803
668
  }, errorFactory));
804
- const $ao6 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
669
+ const $ao3 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
805
670
  const value = input[key];
806
671
  if (undefined === value)
807
672
  return true;
@@ -811,7 +676,7 @@ export const assertGuardFile = (input, errorFactory) => {
811
676
  value: value
812
677
  }, errorFactory);
813
678
  });
814
- const $ao7 = (input, _path, _exceptionable = true) => true;
679
+ const $ao4 = (input, _path, _exceptionable = true) => true;
815
680
  return ("object" === typeof input && null !== input || $guard(true, {
816
681
  path: _path + "",
817
682
  expected: "File",
@@ -825,99 +690,45 @@ export const assertGuardFile = (input, errorFactory) => {
825
690
  };
826
691
  export const stringifyFile = input => {
827
692
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
828
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
829
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
830
- const $io4 = input => 0 === input.minimum;
831
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
832
- const $io6 = input => Object.keys(input).every(key => {
693
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
694
+ const $io3 = input => Object.keys(input).every(key => {
833
695
  const value = input[key];
834
696
  if (undefined === value)
835
697
  return true;
836
698
  return "string" === typeof value;
837
699
  });
838
- const $io7 = input => true;
700
+ const $io4 = input => true;
839
701
  const $string = __typia.json.createStringify.string;
840
702
  const $throws = __typia.json.createStringify.throws;
841
703
  const $tail = __typia.json.createStringify.tail;
842
- const $so0 = input => `{"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"ranges":${`[${input.ranges.map(elem => `[${$so2(elem[0])},${$so2(elem[1])}]`).join(",")}]`},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
704
+ const $so0 = input => `{"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
843
705
  if (Array.isArray(input.error))
844
- return `[${input.error.map(elem => $so5(elem)).join(",")}]`;
706
+ return `[${input.error.map(elem => $so2(elem)).join(",")}]`;
845
707
  if ("object" === typeof input.error && null !== input.error)
846
- return $so5(input.error);
708
+ return $so2(input.error);
847
709
  $throws({
848
710
  expected: "(Array<NxtError> | NxtError | null)",
849
711
  value: input.error
850
712
  });
851
713
  })() : "null"}}`;
852
714
  const $so1 = input => `{${$tail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined},`}${undefined === input.offset ? "" : `"offset":${undefined !== input.offset ? input.offset : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined}`}`)}}`;
853
- const $so2 = input => `{${$tail(`${undefined === input["typia.tag"] ? "" : `"typia.tag":${undefined !== input["typia.tag"] ? $so3(input["typia.tag"]) : undefined}`}`)}}`;
854
- const $so3 = input => `{"target":${(() => {
855
- if ("string" === typeof input.target)
856
- return $string(input.target);
857
- if ("string" === typeof input.target)
858
- return "\"" + input.target + "\"";
859
- $throws({
860
- expected: "\"number\"",
861
- value: input.target
862
- });
863
- })()},"kind":${(() => {
864
- if ("string" === typeof input.kind)
865
- return $string(input.kind);
866
- if ("string" === typeof input.kind)
867
- return "\"" + input.kind + "\"";
868
- $throws({
869
- expected: "\"minimum\"",
870
- value: input.kind
871
- });
872
- })()},"value":${input.value},"validate":${(() => {
873
- if ("string" === typeof input.validate)
874
- return $string(input.validate);
875
- if ("string" === typeof input.validate)
876
- return "\"" + input.validate + "\"";
877
- $throws({
878
- expected: "\"0 <= $input\"",
879
- value: input.validate
880
- });
881
- })()},"exclusive":${`[${(() => {
882
- if ("string" === typeof input.exclusive[0])
883
- return $string(input.exclusive[0]);
884
- if ("string" === typeof input.exclusive[0])
885
- return "\"" + input.exclusive[0] + "\"";
886
- $throws({
887
- expected: "\"minimum\"",
888
- value: input.exclusive[0]
889
- });
890
- })()},${(() => {
891
- if ("string" === typeof input.exclusive[1])
892
- return $string(input.exclusive[1]);
893
- if ("string" === typeof input.exclusive[1])
894
- return "\"" + input.exclusive[1] + "\"";
895
- $throws({
896
- expected: "\"exclusiveMinimum\"",
897
- value: input.exclusive[1]
898
- });
899
- })()}]`},"schema":${$so4(input.schema)}}`;
900
- const $so4 = input => `{"minimum":${input.minimum}}`;
901
- const $so5 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? $string(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? $so6(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? "{}" : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? $so5(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => $so5(elem)).join(",")}]` : "null" : undefined},`}"message":${$string(input.message)}}`;
902
- const $so6 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
715
+ const $so2 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? $string(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? $so3(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? "{}" : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? $so2(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => $so2(elem)).join(",")}]` : "null" : undefined},`}"message":${$string(input.message)}}`;
716
+ const $so3 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
903
717
  return ""; return `${JSON.stringify(key)}:${$string(value)}`; }).filter(str => "" !== str).join(",")}}`;
904
718
  return $so0(input);
905
719
  };
906
720
  export const assertStringifyFile = (input, errorFactory) => { const assert = (input, errorFactory) => {
907
721
  const __is = input => {
908
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
722
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && (!Number.isNaN(elem[0]) && 0 <= elem[0])) && ("number" === typeof elem[1] && (!Number.isNaN(elem[1]) && 0 <= elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
909
723
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset && !Number.isNaN(input.offset)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end));
910
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
911
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
912
- const $io4 = input => 0 === input.minimum;
913
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode && !Number.isNaN(input.exitCode)) && (undefined === input.signalCode || "number" === typeof input.signalCode && !Number.isNaN(input.signalCode)) && (undefined === input.statusCode || "number" === typeof input.statusCode && !Number.isNaN(input.statusCode)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
914
- const $io6 = input => Object.keys(input).every(key => {
724
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode && !Number.isNaN(input.exitCode)) && (undefined === input.signalCode || "number" === typeof input.signalCode && !Number.isNaN(input.signalCode)) && (undefined === input.statusCode || "number" === typeof input.statusCode && !Number.isNaN(input.statusCode)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
725
+ const $io3 = input => Object.keys(input).every(key => {
915
726
  const value = input[key];
916
727
  if (undefined === value)
917
728
  return true;
918
729
  return "string" === typeof value;
919
730
  });
920
- const $io7 = input => true;
731
+ const $io4 = input => true;
921
732
  return "object" === typeof input && null !== input && $io0(input);
922
733
  };
923
734
  if (false === __is(input))
@@ -990,39 +801,47 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
990
801
  value: input.mimeType
991
802
  }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
992
803
  path: _path + ".ranges",
993
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
804
+ expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
994
805
  value: input.ranges
995
806
  }, errorFactory)) && input.ranges.every((elem, _index3) => (Array.isArray(elem) || $guard(_exceptionable, {
996
807
  path: _path + ".ranges[" + _index3 + "]",
997
- expected: "[start: Minimum<0>, end: Minimum<0>]",
808
+ expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
998
809
  value: elem
999
810
  }, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
1000
811
  path: _path + ".ranges[" + _index3 + "]",
1001
- expected: "[Minimum<0>, Minimum<0>]",
812
+ expected: "[(number & Minimum<0>), (number & Minimum<0>)]",
1002
813
  value: elem
1003
- }, errorFactory)) && (("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) || $guard(_exceptionable, {
814
+ }, errorFactory)) && ("number" === typeof elem[0] && (!Number.isNaN(elem[0]) || $guard(_exceptionable, {
815
+ path: _path + ".ranges[" + _index3 + "][0]",
816
+ expected: "number",
817
+ value: elem[0]
818
+ }, errorFactory)) && (0 <= elem[0] || $guard(_exceptionable, {
1004
819
  path: _path + ".ranges[" + _index3 + "][0]",
1005
- expected: "Minimum<0>",
820
+ expected: "number & Minimum<0>",
1006
821
  value: elem[0]
1007
- }, errorFactory)) && $ao2(elem[0], _path + ".ranges[" + _index3 + "][0]", true && _exceptionable) || $guard(_exceptionable, {
822
+ }, errorFactory)) || $guard(_exceptionable, {
1008
823
  path: _path + ".ranges[" + _index3 + "][0]",
1009
- expected: "Minimum<0>",
824
+ expected: "(number & Minimum<0>)",
1010
825
  value: elem[0]
1011
- }, errorFactory)) && (("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) || $guard(_exceptionable, {
826
+ }, errorFactory)) && ("number" === typeof elem[1] && (!Number.isNaN(elem[1]) || $guard(_exceptionable, {
1012
827
  path: _path + ".ranges[" + _index3 + "][1]",
1013
- expected: "Minimum<0>",
828
+ expected: "number",
1014
829
  value: elem[1]
1015
- }, errorFactory)) && $ao2(elem[1], _path + ".ranges[" + _index3 + "][1]", true && _exceptionable) || $guard(_exceptionable, {
830
+ }, errorFactory)) && (0 <= elem[1] || $guard(_exceptionable, {
1016
831
  path: _path + ".ranges[" + _index3 + "][1]",
1017
- expected: "Minimum<0>",
832
+ expected: "number & Minimum<0>",
833
+ value: elem[1]
834
+ }, errorFactory)) || $guard(_exceptionable, {
835
+ path: _path + ".ranges[" + _index3 + "][1]",
836
+ expected: "(number & Minimum<0>)",
1018
837
  value: elem[1]
1019
838
  }, errorFactory))) || $guard(_exceptionable, {
1020
839
  path: _path + ".ranges[" + _index3 + "]",
1021
- expected: "[start: Minimum<0>, end: Minimum<0>]",
840
+ expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
1022
841
  value: elem
1023
842
  }, errorFactory)) || $guard(_exceptionable, {
1024
843
  path: _path + ".ranges",
1025
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
844
+ expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
1026
845
  value: input.ranges
1027
846
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
1028
847
  path: _path + ".hash",
@@ -1056,11 +875,11 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
1056
875
  path: _path + ".error[" + _index4 + "]",
1057
876
  expected: "NxtError",
1058
877
  value: elem
1059
- }, errorFactory)) && $ao5(elem, _path + ".error[" + _index4 + "]", true && _exceptionable) || $guard(_exceptionable, {
878
+ }, errorFactory)) && $ao2(elem, _path + ".error[" + _index4 + "]", true && _exceptionable) || $guard(_exceptionable, {
1060
879
  path: _path + ".error[" + _index4 + "]",
1061
880
  expected: "NxtError",
1062
881
  value: elem
1063
- }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao5(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
882
+ }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao2(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
1064
883
  path: _path + ".error",
1065
884
  expected: "(Array<NxtError> | NxtError | null)",
1066
885
  value: input.error
@@ -1086,66 +905,7 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
1086
905
  expected: "(number | undefined)",
1087
906
  value: input.end
1088
907
  }, errorFactory));
1089
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input["typia.tag"] || ("object" === typeof input["typia.tag"] && null !== input["typia.tag"] || $guard(_exceptionable, {
1090
- path: _path + "[\"typia.tag\"]",
1091
- expected: "(__type.o1 | undefined)",
1092
- value: input["typia.tag"]
1093
- }, errorFactory)) && $ao3(input["typia.tag"], _path + "[\"typia.tag\"]", true && _exceptionable) || $guard(_exceptionable, {
1094
- path: _path + "[\"typia.tag\"]",
1095
- expected: "(__type.o1 | undefined)",
1096
- value: input["typia.tag"]
1097
- }, errorFactory);
1098
- const $ao3 = (input, _path, _exceptionable = true) => ("number" === input.target || $guard(_exceptionable, {
1099
- path: _path + ".target",
1100
- expected: "\"number\"",
1101
- value: input.target
1102
- }, errorFactory)) && ("minimum" === input.kind || $guard(_exceptionable, {
1103
- path: _path + ".kind",
1104
- expected: "\"minimum\"",
1105
- value: input.kind
1106
- }, errorFactory)) && (0 === input.value || $guard(_exceptionable, {
1107
- path: _path + ".value",
1108
- expected: "0",
1109
- value: input.value
1110
- }, errorFactory)) && ("0 <= $input" === input.validate || $guard(_exceptionable, {
1111
- path: _path + ".validate",
1112
- expected: "\"0 <= $input\"",
1113
- value: input.validate
1114
- }, errorFactory)) && ((Array.isArray(input.exclusive) || $guard(_exceptionable, {
1115
- path: _path + ".exclusive",
1116
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
1117
- value: input.exclusive
1118
- }, errorFactory)) && ((input.exclusive.length === 2 || $guard(_exceptionable, {
1119
- path: _path + ".exclusive",
1120
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
1121
- value: input.exclusive
1122
- }, errorFactory)) && ("minimum" === input.exclusive[0] || $guard(_exceptionable, {
1123
- path: _path + ".exclusive[0]",
1124
- expected: "\"minimum\"",
1125
- value: input.exclusive[0]
1126
- }, errorFactory)) && ("exclusiveMinimum" === input.exclusive[1] || $guard(_exceptionable, {
1127
- path: _path + ".exclusive[1]",
1128
- expected: "\"exclusiveMinimum\"",
1129
- value: input.exclusive[1]
1130
- }, errorFactory))) || $guard(_exceptionable, {
1131
- path: _path + ".exclusive",
1132
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
1133
- value: input.exclusive
1134
- }, errorFactory)) && (("object" === typeof input.schema && null !== input.schema || $guard(_exceptionable, {
1135
- path: _path + ".schema",
1136
- expected: "__type.o2",
1137
- value: input.schema
1138
- }, errorFactory)) && $ao4(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
1139
- path: _path + ".schema",
1140
- expected: "__type.o2",
1141
- value: input.schema
1142
- }, errorFactory));
1143
- const $ao4 = (input, _path, _exceptionable = true) => 0 === input.minimum || $guard(_exceptionable, {
1144
- path: _path + ".minimum",
1145
- expected: "0",
1146
- value: input.minimum
1147
- }, errorFactory);
1148
- const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
908
+ const $ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
1149
909
  path: _path + ".message",
1150
910
  expected: "string",
1151
911
  value: input.message
@@ -1173,7 +933,7 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
1173
933
  path: _path + ".headers",
1174
934
  expected: "(Record<string, string> | undefined)",
1175
935
  value: input.headers
1176
- }, errorFactory)) && $ao6(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
936
+ }, errorFactory)) && $ao3(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
1177
937
  path: _path + ".headers",
1178
938
  expected: "(Record<string, string> | undefined)",
1179
939
  value: input.headers
@@ -1181,7 +941,7 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
1181
941
  path: _path + ".data",
1182
942
  expected: "(object | undefined)",
1183
943
  value: input.data
1184
- }, errorFactory)) && $ao7(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
944
+ }, errorFactory)) && $ao4(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
1185
945
  path: _path + ".data",
1186
946
  expected: "(object | undefined)",
1187
947
  value: input.data
@@ -1189,7 +949,7 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
1189
949
  path: _path + ".cause",
1190
950
  expected: "(NxtError | null | undefined)",
1191
951
  value: input.cause
1192
- }, errorFactory)) && $ao5(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
952
+ }, errorFactory)) && $ao2(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
1193
953
  path: _path + ".cause",
1194
954
  expected: "(NxtError | null | undefined)",
1195
955
  value: input.cause
@@ -1201,7 +961,7 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
1201
961
  path: _path + ".errors[" + _index5 + "]",
1202
962
  expected: "NxtError",
1203
963
  value: elem
1204
- }, errorFactory)) && $ao5(elem, _path + ".errors[" + _index5 + "]", true && _exceptionable) || $guard(_exceptionable, {
964
+ }, errorFactory)) && $ao2(elem, _path + ".errors[" + _index5 + "]", true && _exceptionable) || $guard(_exceptionable, {
1205
965
  path: _path + ".errors[" + _index5 + "]",
1206
966
  expected: "NxtError",
1207
967
  value: elem
@@ -1210,7 +970,7 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
1210
970
  expected: "(Array<NxtError> | null | undefined)",
1211
971
  value: input.errors
1212
972
  }, errorFactory));
1213
- const $ao6 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
973
+ const $ao3 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1214
974
  const value = input[key];
1215
975
  if (undefined === value)
1216
976
  return true;
@@ -1220,7 +980,7 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
1220
980
  value: value
1221
981
  }, errorFactory);
1222
982
  });
1223
- const $ao7 = (input, _path, _exceptionable = true) => true;
983
+ const $ao4 = (input, _path, _exceptionable = true) => true;
1224
984
  return ("object" === typeof input && null !== input || $guard(true, {
1225
985
  path: _path + "",
1226
986
  expected: "File",
@@ -1234,115 +994,58 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
1234
994
  return input;
1235
995
  }; const stringify = input => {
1236
996
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
1237
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
1238
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
1239
- const $io4 = input => 0 === input.minimum;
1240
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
1241
- const $io6 = input => Object.keys(input).every(key => {
997
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
998
+ const $io3 = input => Object.keys(input).every(key => {
1242
999
  const value = input[key];
1243
1000
  if (undefined === value)
1244
1001
  return true;
1245
1002
  return "string" === typeof value;
1246
1003
  });
1247
- const $io7 = input => true;
1004
+ const $io4 = input => true;
1248
1005
  const $string = __typia.json.createAssertStringify.string;
1249
1006
  const $throws = __typia.json.createAssertStringify.throws;
1250
1007
  const $tail = __typia.json.createAssertStringify.tail;
1251
- const $so0 = input => `{"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"ranges":${`[${input.ranges.map(elem => `[${$so2(elem[0])},${$so2(elem[1])}]`).join(",")}]`},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
1008
+ const $so0 = input => `{"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
1252
1009
  if (Array.isArray(input.error))
1253
- return `[${input.error.map(elem => $so5(elem)).join(",")}]`;
1010
+ return `[${input.error.map(elem => $so2(elem)).join(",")}]`;
1254
1011
  if ("object" === typeof input.error && null !== input.error)
1255
- return $so5(input.error);
1012
+ return $so2(input.error);
1256
1013
  $throws({
1257
1014
  expected: "(Array<NxtError> | NxtError | null)",
1258
1015
  value: input.error
1259
1016
  });
1260
1017
  })() : "null"}}`;
1261
1018
  const $so1 = input => `{${$tail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined},`}${undefined === input.offset ? "" : `"offset":${undefined !== input.offset ? input.offset : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined}`}`)}}`;
1262
- const $so2 = input => `{${$tail(`${undefined === input["typia.tag"] ? "" : `"typia.tag":${undefined !== input["typia.tag"] ? $so3(input["typia.tag"]) : undefined}`}`)}}`;
1263
- const $so3 = input => `{"target":${(() => {
1264
- if ("string" === typeof input.target)
1265
- return $string(input.target);
1266
- if ("string" === typeof input.target)
1267
- return "\"" + input.target + "\"";
1268
- $throws({
1269
- expected: "\"number\"",
1270
- value: input.target
1271
- });
1272
- })()},"kind":${(() => {
1273
- if ("string" === typeof input.kind)
1274
- return $string(input.kind);
1275
- if ("string" === typeof input.kind)
1276
- return "\"" + input.kind + "\"";
1277
- $throws({
1278
- expected: "\"minimum\"",
1279
- value: input.kind
1280
- });
1281
- })()},"value":${input.value},"validate":${(() => {
1282
- if ("string" === typeof input.validate)
1283
- return $string(input.validate);
1284
- if ("string" === typeof input.validate)
1285
- return "\"" + input.validate + "\"";
1286
- $throws({
1287
- expected: "\"0 <= $input\"",
1288
- value: input.validate
1289
- });
1290
- })()},"exclusive":${`[${(() => {
1291
- if ("string" === typeof input.exclusive[0])
1292
- return $string(input.exclusive[0]);
1293
- if ("string" === typeof input.exclusive[0])
1294
- return "\"" + input.exclusive[0] + "\"";
1295
- $throws({
1296
- expected: "\"minimum\"",
1297
- value: input.exclusive[0]
1298
- });
1299
- })()},${(() => {
1300
- if ("string" === typeof input.exclusive[1])
1301
- return $string(input.exclusive[1]);
1302
- if ("string" === typeof input.exclusive[1])
1303
- return "\"" + input.exclusive[1] + "\"";
1304
- $throws({
1305
- expected: "\"exclusiveMinimum\"",
1306
- value: input.exclusive[1]
1307
- });
1308
- })()}]`},"schema":${$so4(input.schema)}}`;
1309
- const $so4 = input => `{"minimum":${input.minimum}}`;
1310
- const $so5 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? $string(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? $so6(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? "{}" : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? $so5(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => $so5(elem)).join(",")}]` : "null" : undefined},`}"message":${$string(input.message)}}`;
1311
- const $so6 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1019
+ const $so2 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? $string(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? $so3(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? "{}" : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? $so2(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => $so2(elem)).join(",")}]` : "null" : undefined},`}"message":${$string(input.message)}}`;
1020
+ const $so3 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1312
1021
  return ""; return `${JSON.stringify(key)}:${$string(value)}`; }).filter(str => "" !== str).join(",")}}`;
1313
1022
  return $so0(input);
1314
1023
  }; return stringify(assert(input, errorFactory)); };
1315
1024
  export const isFileStats = input => {
1316
- const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
1025
+ const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
1317
1026
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
1318
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
1319
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
1320
- const $io4 = input => 0 === input.minimum;
1321
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
1322
- const $io6 = input => Object.keys(input).every(key => {
1027
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
1028
+ const $io3 = input => Object.keys(input).every(key => {
1323
1029
  const value = input[key];
1324
1030
  if (undefined === value)
1325
1031
  return true;
1326
1032
  return "string" === typeof value;
1327
1033
  });
1328
- const $io7 = input => true;
1034
+ const $io4 = input => true;
1329
1035
  return "object" === typeof input && null !== input && $io0(input);
1330
1036
  };
1331
1037
  export const assertFileStats = (input, errorFactory) => {
1332
1038
  const __is = input => {
1333
- const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
1039
+ const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
1334
1040
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
1335
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
1336
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
1337
- const $io4 = input => 0 === input.minimum;
1338
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
1339
- const $io6 = input => Object.keys(input).every(key => {
1041
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
1042
+ const $io3 = input => Object.keys(input).every(key => {
1340
1043
  const value = input[key];
1341
1044
  if (undefined === value)
1342
1045
  return true;
1343
1046
  return "string" === typeof value;
1344
1047
  });
1345
- const $io7 = input => true;
1048
+ const $io4 = input => true;
1346
1049
  return "object" === typeof input && null !== input && $io0(input);
1347
1050
  };
1348
1051
  if (false === __is(input))
@@ -1455,39 +1158,39 @@ export const assertFileStats = (input, errorFactory) => {
1455
1158
  value: input.mimeType
1456
1159
  }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
1457
1160
  path: _path + ".ranges",
1458
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
1161
+ expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
1459
1162
  value: input.ranges
1460
1163
  }, errorFactory)) && input.ranges.every((elem, _index5) => (Array.isArray(elem) || $guard(_exceptionable, {
1461
1164
  path: _path + ".ranges[" + _index5 + "]",
1462
- expected: "[start: Minimum<0>, end: Minimum<0>]",
1165
+ expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
1463
1166
  value: elem
1464
1167
  }, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
1465
1168
  path: _path + ".ranges[" + _index5 + "]",
1466
- expected: "[Minimum<0>, Minimum<0>]",
1169
+ expected: "[(number & Minimum<0>), (number & Minimum<0>)]",
1467
1170
  value: elem
1468
- }, errorFactory)) && (("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) || $guard(_exceptionable, {
1171
+ }, errorFactory)) && ("number" === typeof elem[0] && (0 <= elem[0] || $guard(_exceptionable, {
1469
1172
  path: _path + ".ranges[" + _index5 + "][0]",
1470
- expected: "Minimum<0>",
1173
+ expected: "number & Minimum<0>",
1471
1174
  value: elem[0]
1472
- }, errorFactory)) && $ao2(elem[0], _path + ".ranges[" + _index5 + "][0]", true && _exceptionable) || $guard(_exceptionable, {
1175
+ }, errorFactory)) || $guard(_exceptionable, {
1473
1176
  path: _path + ".ranges[" + _index5 + "][0]",
1474
- expected: "Minimum<0>",
1177
+ expected: "(number & Minimum<0>)",
1475
1178
  value: elem[0]
1476
- }, errorFactory)) && (("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) || $guard(_exceptionable, {
1179
+ }, errorFactory)) && ("number" === typeof elem[1] && (0 <= elem[1] || $guard(_exceptionable, {
1477
1180
  path: _path + ".ranges[" + _index5 + "][1]",
1478
- expected: "Minimum<0>",
1181
+ expected: "number & Minimum<0>",
1479
1182
  value: elem[1]
1480
- }, errorFactory)) && $ao2(elem[1], _path + ".ranges[" + _index5 + "][1]", true && _exceptionable) || $guard(_exceptionable, {
1183
+ }, errorFactory)) || $guard(_exceptionable, {
1481
1184
  path: _path + ".ranges[" + _index5 + "][1]",
1482
- expected: "Minimum<0>",
1185
+ expected: "(number & Minimum<0>)",
1483
1186
  value: elem[1]
1484
1187
  }, errorFactory))) || $guard(_exceptionable, {
1485
1188
  path: _path + ".ranges[" + _index5 + "]",
1486
- expected: "[start: Minimum<0>, end: Minimum<0>]",
1189
+ expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
1487
1190
  value: elem
1488
1191
  }, errorFactory)) || $guard(_exceptionable, {
1489
1192
  path: _path + ".ranges",
1490
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
1193
+ expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
1491
1194
  value: input.ranges
1492
1195
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
1493
1196
  path: _path + ".hash",
@@ -1521,11 +1224,11 @@ export const assertFileStats = (input, errorFactory) => {
1521
1224
  path: _path + ".error[" + _index6 + "]",
1522
1225
  expected: "NxtError",
1523
1226
  value: elem
1524
- }, errorFactory)) && $ao5(elem, _path + ".error[" + _index6 + "]", true && _exceptionable) || $guard(_exceptionable, {
1227
+ }, errorFactory)) && $ao2(elem, _path + ".error[" + _index6 + "]", true && _exceptionable) || $guard(_exceptionable, {
1525
1228
  path: _path + ".error[" + _index6 + "]",
1526
1229
  expected: "NxtError",
1527
1230
  value: elem
1528
- }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao5(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
1231
+ }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao2(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
1529
1232
  path: _path + ".error",
1530
1233
  expected: "(Array<NxtError> | NxtError | null)",
1531
1234
  value: input.error
@@ -1551,66 +1254,7 @@ export const assertFileStats = (input, errorFactory) => {
1551
1254
  expected: "(number | undefined)",
1552
1255
  value: input.end
1553
1256
  }, errorFactory));
1554
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input["typia.tag"] || ("object" === typeof input["typia.tag"] && null !== input["typia.tag"] || $guard(_exceptionable, {
1555
- path: _path + "[\"typia.tag\"]",
1556
- expected: "(__type.o1 | undefined)",
1557
- value: input["typia.tag"]
1558
- }, errorFactory)) && $ao3(input["typia.tag"], _path + "[\"typia.tag\"]", true && _exceptionable) || $guard(_exceptionable, {
1559
- path: _path + "[\"typia.tag\"]",
1560
- expected: "(__type.o1 | undefined)",
1561
- value: input["typia.tag"]
1562
- }, errorFactory);
1563
- const $ao3 = (input, _path, _exceptionable = true) => ("number" === input.target || $guard(_exceptionable, {
1564
- path: _path + ".target",
1565
- expected: "\"number\"",
1566
- value: input.target
1567
- }, errorFactory)) && ("minimum" === input.kind || $guard(_exceptionable, {
1568
- path: _path + ".kind",
1569
- expected: "\"minimum\"",
1570
- value: input.kind
1571
- }, errorFactory)) && (0 === input.value || $guard(_exceptionable, {
1572
- path: _path + ".value",
1573
- expected: "0",
1574
- value: input.value
1575
- }, errorFactory)) && ("0 <= $input" === input.validate || $guard(_exceptionable, {
1576
- path: _path + ".validate",
1577
- expected: "\"0 <= $input\"",
1578
- value: input.validate
1579
- }, errorFactory)) && ((Array.isArray(input.exclusive) || $guard(_exceptionable, {
1580
- path: _path + ".exclusive",
1581
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
1582
- value: input.exclusive
1583
- }, errorFactory)) && ((input.exclusive.length === 2 || $guard(_exceptionable, {
1584
- path: _path + ".exclusive",
1585
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
1586
- value: input.exclusive
1587
- }, errorFactory)) && ("minimum" === input.exclusive[0] || $guard(_exceptionable, {
1588
- path: _path + ".exclusive[0]",
1589
- expected: "\"minimum\"",
1590
- value: input.exclusive[0]
1591
- }, errorFactory)) && ("exclusiveMinimum" === input.exclusive[1] || $guard(_exceptionable, {
1592
- path: _path + ".exclusive[1]",
1593
- expected: "\"exclusiveMinimum\"",
1594
- value: input.exclusive[1]
1595
- }, errorFactory))) || $guard(_exceptionable, {
1596
- path: _path + ".exclusive",
1597
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
1598
- value: input.exclusive
1599
- }, errorFactory)) && (("object" === typeof input.schema && null !== input.schema || $guard(_exceptionable, {
1600
- path: _path + ".schema",
1601
- expected: "__type.o2",
1602
- value: input.schema
1603
- }, errorFactory)) && $ao4(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
1604
- path: _path + ".schema",
1605
- expected: "__type.o2",
1606
- value: input.schema
1607
- }, errorFactory));
1608
- const $ao4 = (input, _path, _exceptionable = true) => 0 === input.minimum || $guard(_exceptionable, {
1609
- path: _path + ".minimum",
1610
- expected: "0",
1611
- value: input.minimum
1612
- }, errorFactory);
1613
- const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
1257
+ const $ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
1614
1258
  path: _path + ".message",
1615
1259
  expected: "string",
1616
1260
  value: input.message
@@ -1638,7 +1282,7 @@ export const assertFileStats = (input, errorFactory) => {
1638
1282
  path: _path + ".headers",
1639
1283
  expected: "(Record<string, string> | undefined)",
1640
1284
  value: input.headers
1641
- }, errorFactory)) && $ao6(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
1285
+ }, errorFactory)) && $ao3(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
1642
1286
  path: _path + ".headers",
1643
1287
  expected: "(Record<string, string> | undefined)",
1644
1288
  value: input.headers
@@ -1646,7 +1290,7 @@ export const assertFileStats = (input, errorFactory) => {
1646
1290
  path: _path + ".data",
1647
1291
  expected: "(object | undefined)",
1648
1292
  value: input.data
1649
- }, errorFactory)) && $ao7(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
1293
+ }, errorFactory)) && $ao4(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
1650
1294
  path: _path + ".data",
1651
1295
  expected: "(object | undefined)",
1652
1296
  value: input.data
@@ -1654,7 +1298,7 @@ export const assertFileStats = (input, errorFactory) => {
1654
1298
  path: _path + ".cause",
1655
1299
  expected: "(NxtError | null | undefined)",
1656
1300
  value: input.cause
1657
- }, errorFactory)) && $ao5(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
1301
+ }, errorFactory)) && $ao2(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
1658
1302
  path: _path + ".cause",
1659
1303
  expected: "(NxtError | null | undefined)",
1660
1304
  value: input.cause
@@ -1666,7 +1310,7 @@ export const assertFileStats = (input, errorFactory) => {
1666
1310
  path: _path + ".errors[" + _index7 + "]",
1667
1311
  expected: "NxtError",
1668
1312
  value: elem
1669
- }, errorFactory)) && $ao5(elem, _path + ".errors[" + _index7 + "]", true && _exceptionable) || $guard(_exceptionable, {
1313
+ }, errorFactory)) && $ao2(elem, _path + ".errors[" + _index7 + "]", true && _exceptionable) || $guard(_exceptionable, {
1670
1314
  path: _path + ".errors[" + _index7 + "]",
1671
1315
  expected: "NxtError",
1672
1316
  value: elem
@@ -1675,7 +1319,7 @@ export const assertFileStats = (input, errorFactory) => {
1675
1319
  expected: "(Array<NxtError> | null | undefined)",
1676
1320
  value: input.errors
1677
1321
  }, errorFactory));
1678
- const $ao6 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1322
+ const $ao3 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1679
1323
  const value = input[key];
1680
1324
  if (undefined === value)
1681
1325
  return true;
@@ -1685,7 +1329,7 @@ export const assertFileStats = (input, errorFactory) => {
1685
1329
  value: value
1686
1330
  }, errorFactory);
1687
1331
  });
1688
- const $ao7 = (input, _path, _exceptionable = true) => true;
1332
+ const $ao4 = (input, _path, _exceptionable = true) => true;
1689
1333
  return ("object" === typeof input && null !== input || $guard(true, {
1690
1334
  path: _path + "",
1691
1335
  expected: "FileStats",
@@ -1749,8 +1393,20 @@ export const randomFileStats = generator => {
1749
1393
  resumable: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1750
1394
  mimeType: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1751
1395
  ranges: (generator?.array ?? $generator.array)(() => [
1752
- $ro2(_recursive, _recursive ? 1 + _depth : _depth),
1753
- $ro2(_recursive, _recursive ? 1 + _depth : _depth)
1396
+ (generator?.customs ?? $generator.customs)?.number?.([
1397
+ {
1398
+ name: "Minimum<0>",
1399
+ kind: "minimum",
1400
+ value: 0
1401
+ }
1402
+ ]) ?? (generator?.number ?? $generator.number)(0, 10),
1403
+ (generator?.customs ?? $generator.customs)?.number?.([
1404
+ {
1405
+ name: "Minimum<0>",
1406
+ kind: "minimum",
1407
+ value: 0
1408
+ }
1409
+ ]) ?? (generator?.number ?? $generator.number)(0, 10)
1754
1410
  ]),
1755
1411
  hash: (generator?.customs ?? $generator.customs)?.string?.([
1756
1412
  {
@@ -1774,8 +1430,8 @@ export const randomFileStats = generator => {
1774
1430
  completed: (generator?.boolean ?? $generator.boolean)(),
1775
1431
  error: $pick([
1776
1432
  () => null,
1777
- () => (generator?.array ?? $generator.array)(() => $ro5(_recursive, _recursive ? 1 + _depth : _depth)),
1778
- () => $ro5(_recursive, _recursive ? 1 + _depth : _depth)
1433
+ () => (generator?.array ?? $generator.array)(() => $ro2(_recursive, _recursive ? 1 + _depth : _depth)),
1434
+ () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
1779
1435
  ])()
1780
1436
  });
1781
1437
  const $ro1 = (_recursive = false, _depth = 0) => ({
@@ -1796,27 +1452,7 @@ export const randomFileStats = generator => {
1796
1452
  () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1797
1453
  ])()
1798
1454
  });
1799
- const $ro2 = (_recursive = false, _depth = 0) => ({
1800
- "typia.tag": $pick([
1801
- () => undefined,
1802
- () => $ro3(_recursive, _recursive ? 1 + _depth : _depth)
1803
- ])()
1804
- });
1805
- const $ro3 = (_recursive = false, _depth = 0) => ({
1806
- target: "number",
1807
- kind: "minimum",
1808
- value: 0,
1809
- validate: "0 <= $input",
1810
- exclusive: [
1811
- "minimum",
1812
- "exclusiveMinimum"
1813
- ],
1814
- schema: $ro4(_recursive, _recursive ? 1 + _depth : _depth)
1815
- });
1816
- const $ro4 = (_recursive = false, _depth = 0) => ({
1817
- minimum: 0
1818
- });
1819
- const $ro5 = (_recursive = true, _depth = 0) => ({
1455
+ const $ro2 = (_recursive = true, _depth = 0) => ({
1820
1456
  message: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1821
1457
  type: $pick([
1822
1458
  () => undefined,
@@ -1840,46 +1476,43 @@ export const randomFileStats = generator => {
1840
1476
  ])(),
1841
1477
  headers: $pick([
1842
1478
  () => undefined,
1843
- () => $ro6(true, _recursive ? 1 + _depth : _depth)
1479
+ () => $ro3(true, _recursive ? 1 + _depth : _depth)
1844
1480
  ])(),
1845
1481
  data: $pick([
1846
1482
  () => undefined,
1847
- () => $ro7(true, _recursive ? 1 + _depth : _depth)
1483
+ () => $ro4(true, _recursive ? 1 + _depth : _depth)
1848
1484
  ])(),
1849
1485
  cause: $pick([
1850
1486
  () => undefined,
1851
1487
  () => null,
1852
- () => $ro5(true, _recursive ? 1 + _depth : _depth)
1488
+ () => $ro2(true, _recursive ? 1 + _depth : _depth)
1853
1489
  ])(),
1854
1490
  errors: $pick([
1855
1491
  () => undefined,
1856
1492
  () => null,
1857
- () => _recursive && 5 < _depth ? [] : 5 >= _depth ? (generator?.array ?? $generator.array)(() => $ro5(true, _recursive ? 1 + _depth : _depth)) : []
1493
+ () => _recursive && 5 < _depth ? [] : 5 >= _depth ? (generator?.array ?? $generator.array)(() => $ro2(true, _recursive ? 1 + _depth : _depth)) : []
1858
1494
  ])()
1859
1495
  });
1860
- const $ro6 = (_recursive = false, _depth = 0) => {
1496
+ const $ro3 = (_recursive = false, _depth = 0) => {
1861
1497
  const output = {};
1862
1498
  (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(), (generator?.integer ?? $generator.integer)(0, 3));
1863
1499
  return output;
1864
1500
  };
1865
- const $ro7 = (_recursive = false, _depth = 0) => {};
1501
+ const $ro4 = (_recursive = false, _depth = 0) => {};
1866
1502
  return $ro0();
1867
1503
  };
1868
1504
  export const assertGuardFileStats = (input, errorFactory) => {
1869
1505
  const __is = input => {
1870
- const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
1506
+ const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
1871
1507
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
1872
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
1873
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
1874
- const $io4 = input => 0 === input.minimum;
1875
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
1876
- const $io6 = input => Object.keys(input).every(key => {
1508
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
1509
+ const $io3 = input => Object.keys(input).every(key => {
1877
1510
  const value = input[key];
1878
1511
  if (undefined === value)
1879
1512
  return true;
1880
1513
  return "string" === typeof value;
1881
1514
  });
1882
- const $io7 = input => true;
1515
+ const $io4 = input => true;
1883
1516
  return "object" === typeof input && null !== input && $io0(input);
1884
1517
  };
1885
1518
  if (false === __is(input))
@@ -1992,39 +1625,39 @@ export const assertGuardFileStats = (input, errorFactory) => {
1992
1625
  value: input.mimeType
1993
1626
  }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
1994
1627
  path: _path + ".ranges",
1995
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
1628
+ expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
1996
1629
  value: input.ranges
1997
1630
  }, errorFactory)) && input.ranges.every((elem, _index5) => (Array.isArray(elem) || $guard(_exceptionable, {
1998
1631
  path: _path + ".ranges[" + _index5 + "]",
1999
- expected: "[start: Minimum<0>, end: Minimum<0>]",
1632
+ expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
2000
1633
  value: elem
2001
1634
  }, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
2002
1635
  path: _path + ".ranges[" + _index5 + "]",
2003
- expected: "[Minimum<0>, Minimum<0>]",
1636
+ expected: "[(number & Minimum<0>), (number & Minimum<0>)]",
2004
1637
  value: elem
2005
- }, errorFactory)) && (("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) || $guard(_exceptionable, {
1638
+ }, errorFactory)) && ("number" === typeof elem[0] && (0 <= elem[0] || $guard(_exceptionable, {
2006
1639
  path: _path + ".ranges[" + _index5 + "][0]",
2007
- expected: "Minimum<0>",
1640
+ expected: "number & Minimum<0>",
2008
1641
  value: elem[0]
2009
- }, errorFactory)) && $ao2(elem[0], _path + ".ranges[" + _index5 + "][0]", true && _exceptionable) || $guard(_exceptionable, {
1642
+ }, errorFactory)) || $guard(_exceptionable, {
2010
1643
  path: _path + ".ranges[" + _index5 + "][0]",
2011
- expected: "Minimum<0>",
1644
+ expected: "(number & Minimum<0>)",
2012
1645
  value: elem[0]
2013
- }, errorFactory)) && (("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) || $guard(_exceptionable, {
1646
+ }, errorFactory)) && ("number" === typeof elem[1] && (0 <= elem[1] || $guard(_exceptionable, {
2014
1647
  path: _path + ".ranges[" + _index5 + "][1]",
2015
- expected: "Minimum<0>",
1648
+ expected: "number & Minimum<0>",
2016
1649
  value: elem[1]
2017
- }, errorFactory)) && $ao2(elem[1], _path + ".ranges[" + _index5 + "][1]", true && _exceptionable) || $guard(_exceptionable, {
1650
+ }, errorFactory)) || $guard(_exceptionable, {
2018
1651
  path: _path + ".ranges[" + _index5 + "][1]",
2019
- expected: "Minimum<0>",
1652
+ expected: "(number & Minimum<0>)",
2020
1653
  value: elem[1]
2021
1654
  }, errorFactory))) || $guard(_exceptionable, {
2022
1655
  path: _path + ".ranges[" + _index5 + "]",
2023
- expected: "[start: Minimum<0>, end: Minimum<0>]",
1656
+ expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
2024
1657
  value: elem
2025
1658
  }, errorFactory)) || $guard(_exceptionable, {
2026
1659
  path: _path + ".ranges",
2027
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
1660
+ expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
2028
1661
  value: input.ranges
2029
1662
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
2030
1663
  path: _path + ".hash",
@@ -2058,11 +1691,11 @@ export const assertGuardFileStats = (input, errorFactory) => {
2058
1691
  path: _path + ".error[" + _index6 + "]",
2059
1692
  expected: "NxtError",
2060
1693
  value: elem
2061
- }, errorFactory)) && $ao5(elem, _path + ".error[" + _index6 + "]", true && _exceptionable) || $guard(_exceptionable, {
1694
+ }, errorFactory)) && $ao2(elem, _path + ".error[" + _index6 + "]", true && _exceptionable) || $guard(_exceptionable, {
2062
1695
  path: _path + ".error[" + _index6 + "]",
2063
1696
  expected: "NxtError",
2064
1697
  value: elem
2065
- }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao5(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
1698
+ }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao2(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
2066
1699
  path: _path + ".error",
2067
1700
  expected: "(Array<NxtError> | NxtError | null)",
2068
1701
  value: input.error
@@ -2088,66 +1721,7 @@ export const assertGuardFileStats = (input, errorFactory) => {
2088
1721
  expected: "(number | undefined)",
2089
1722
  value: input.end
2090
1723
  }, errorFactory));
2091
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input["typia.tag"] || ("object" === typeof input["typia.tag"] && null !== input["typia.tag"] || $guard(_exceptionable, {
2092
- path: _path + "[\"typia.tag\"]",
2093
- expected: "(__type.o1 | undefined)",
2094
- value: input["typia.tag"]
2095
- }, errorFactory)) && $ao3(input["typia.tag"], _path + "[\"typia.tag\"]", true && _exceptionable) || $guard(_exceptionable, {
2096
- path: _path + "[\"typia.tag\"]",
2097
- expected: "(__type.o1 | undefined)",
2098
- value: input["typia.tag"]
2099
- }, errorFactory);
2100
- const $ao3 = (input, _path, _exceptionable = true) => ("number" === input.target || $guard(_exceptionable, {
2101
- path: _path + ".target",
2102
- expected: "\"number\"",
2103
- value: input.target
2104
- }, errorFactory)) && ("minimum" === input.kind || $guard(_exceptionable, {
2105
- path: _path + ".kind",
2106
- expected: "\"minimum\"",
2107
- value: input.kind
2108
- }, errorFactory)) && (0 === input.value || $guard(_exceptionable, {
2109
- path: _path + ".value",
2110
- expected: "0",
2111
- value: input.value
2112
- }, errorFactory)) && ("0 <= $input" === input.validate || $guard(_exceptionable, {
2113
- path: _path + ".validate",
2114
- expected: "\"0 <= $input\"",
2115
- value: input.validate
2116
- }, errorFactory)) && ((Array.isArray(input.exclusive) || $guard(_exceptionable, {
2117
- path: _path + ".exclusive",
2118
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
2119
- value: input.exclusive
2120
- }, errorFactory)) && ((input.exclusive.length === 2 || $guard(_exceptionable, {
2121
- path: _path + ".exclusive",
2122
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
2123
- value: input.exclusive
2124
- }, errorFactory)) && ("minimum" === input.exclusive[0] || $guard(_exceptionable, {
2125
- path: _path + ".exclusive[0]",
2126
- expected: "\"minimum\"",
2127
- value: input.exclusive[0]
2128
- }, errorFactory)) && ("exclusiveMinimum" === input.exclusive[1] || $guard(_exceptionable, {
2129
- path: _path + ".exclusive[1]",
2130
- expected: "\"exclusiveMinimum\"",
2131
- value: input.exclusive[1]
2132
- }, errorFactory))) || $guard(_exceptionable, {
2133
- path: _path + ".exclusive",
2134
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
2135
- value: input.exclusive
2136
- }, errorFactory)) && (("object" === typeof input.schema && null !== input.schema || $guard(_exceptionable, {
2137
- path: _path + ".schema",
2138
- expected: "__type.o2",
2139
- value: input.schema
2140
- }, errorFactory)) && $ao4(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
2141
- path: _path + ".schema",
2142
- expected: "__type.o2",
2143
- value: input.schema
2144
- }, errorFactory));
2145
- const $ao4 = (input, _path, _exceptionable = true) => 0 === input.minimum || $guard(_exceptionable, {
2146
- path: _path + ".minimum",
2147
- expected: "0",
2148
- value: input.minimum
2149
- }, errorFactory);
2150
- const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
1724
+ const $ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
2151
1725
  path: _path + ".message",
2152
1726
  expected: "string",
2153
1727
  value: input.message
@@ -2175,7 +1749,7 @@ export const assertGuardFileStats = (input, errorFactory) => {
2175
1749
  path: _path + ".headers",
2176
1750
  expected: "(Record<string, string> | undefined)",
2177
1751
  value: input.headers
2178
- }, errorFactory)) && $ao6(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
1752
+ }, errorFactory)) && $ao3(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
2179
1753
  path: _path + ".headers",
2180
1754
  expected: "(Record<string, string> | undefined)",
2181
1755
  value: input.headers
@@ -2183,7 +1757,7 @@ export const assertGuardFileStats = (input, errorFactory) => {
2183
1757
  path: _path + ".data",
2184
1758
  expected: "(object | undefined)",
2185
1759
  value: input.data
2186
- }, errorFactory)) && $ao7(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
1760
+ }, errorFactory)) && $ao4(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
2187
1761
  path: _path + ".data",
2188
1762
  expected: "(object | undefined)",
2189
1763
  value: input.data
@@ -2191,7 +1765,7 @@ export const assertGuardFileStats = (input, errorFactory) => {
2191
1765
  path: _path + ".cause",
2192
1766
  expected: "(NxtError | null | undefined)",
2193
1767
  value: input.cause
2194
- }, errorFactory)) && $ao5(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
1768
+ }, errorFactory)) && $ao2(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
2195
1769
  path: _path + ".cause",
2196
1770
  expected: "(NxtError | null | undefined)",
2197
1771
  value: input.cause
@@ -2203,7 +1777,7 @@ export const assertGuardFileStats = (input, errorFactory) => {
2203
1777
  path: _path + ".errors[" + _index7 + "]",
2204
1778
  expected: "NxtError",
2205
1779
  value: elem
2206
- }, errorFactory)) && $ao5(elem, _path + ".errors[" + _index7 + "]", true && _exceptionable) || $guard(_exceptionable, {
1780
+ }, errorFactory)) && $ao2(elem, _path + ".errors[" + _index7 + "]", true && _exceptionable) || $guard(_exceptionable, {
2207
1781
  path: _path + ".errors[" + _index7 + "]",
2208
1782
  expected: "NxtError",
2209
1783
  value: elem
@@ -2212,7 +1786,7 @@ export const assertGuardFileStats = (input, errorFactory) => {
2212
1786
  expected: "(Array<NxtError> | null | undefined)",
2213
1787
  value: input.errors
2214
1788
  }, errorFactory));
2215
- const $ao6 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1789
+ const $ao3 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
2216
1790
  const value = input[key];
2217
1791
  if (undefined === value)
2218
1792
  return true;
@@ -2222,7 +1796,7 @@ export const assertGuardFileStats = (input, errorFactory) => {
2222
1796
  value: value
2223
1797
  }, errorFactory);
2224
1798
  });
2225
- const $ao7 = (input, _path, _exceptionable = true) => true;
1799
+ const $ao4 = (input, _path, _exceptionable = true) => true;
2226
1800
  return ("object" === typeof input && null !== input || $guard(true, {
2227
1801
  path: _path + "",
2228
1802
  expected: "FileStats",
@@ -2236,99 +1810,45 @@ export const assertGuardFileStats = (input, errorFactory) => {
2236
1810
  };
2237
1811
  export const stringifyFileStats = input => {
2238
1812
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
2239
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
2240
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
2241
- const $io4 = input => 0 === input.minimum;
2242
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
2243
- const $io6 = input => Object.keys(input).every(key => {
1813
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
1814
+ const $io3 = input => Object.keys(input).every(key => {
2244
1815
  const value = input[key];
2245
1816
  if (undefined === value)
2246
1817
  return true;
2247
1818
  return "string" === typeof value;
2248
1819
  });
2249
- const $io7 = input => true;
1820
+ const $io4 = input => true;
2250
1821
  const $string = __typia.json.createStringify.string;
2251
1822
  const $throws = __typia.json.createStringify.throws;
2252
1823
  const $tail = __typia.json.createStringify.tail;
2253
- const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${input.uploading},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"ranges":${`[${input.ranges.map(elem => `[${$so2(elem[0])},${$so2(elem[1])}]`).join(",")}]`},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
1824
+ const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${input.uploading},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
2254
1825
  if (Array.isArray(input.error))
2255
- return `[${input.error.map(elem => $so5(elem)).join(",")}]`;
1826
+ return `[${input.error.map(elem => $so2(elem)).join(",")}]`;
2256
1827
  if ("object" === typeof input.error && null !== input.error)
2257
- return $so5(input.error);
1828
+ return $so2(input.error);
2258
1829
  $throws({
2259
1830
  expected: "(Array<NxtError> | NxtError | null)",
2260
1831
  value: input.error
2261
1832
  });
2262
1833
  })() : "null"}}`;
2263
1834
  const $so1 = input => `{${$tail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined},`}${undefined === input.offset ? "" : `"offset":${undefined !== input.offset ? input.offset : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined}`}`)}}`;
2264
- const $so2 = input => `{${$tail(`${undefined === input["typia.tag"] ? "" : `"typia.tag":${undefined !== input["typia.tag"] ? $so3(input["typia.tag"]) : undefined}`}`)}}`;
2265
- const $so3 = input => `{"target":${(() => {
2266
- if ("string" === typeof input.target)
2267
- return $string(input.target);
2268
- if ("string" === typeof input.target)
2269
- return "\"" + input.target + "\"";
2270
- $throws({
2271
- expected: "\"number\"",
2272
- value: input.target
2273
- });
2274
- })()},"kind":${(() => {
2275
- if ("string" === typeof input.kind)
2276
- return $string(input.kind);
2277
- if ("string" === typeof input.kind)
2278
- return "\"" + input.kind + "\"";
2279
- $throws({
2280
- expected: "\"minimum\"",
2281
- value: input.kind
2282
- });
2283
- })()},"value":${input.value},"validate":${(() => {
2284
- if ("string" === typeof input.validate)
2285
- return $string(input.validate);
2286
- if ("string" === typeof input.validate)
2287
- return "\"" + input.validate + "\"";
2288
- $throws({
2289
- expected: "\"0 <= $input\"",
2290
- value: input.validate
2291
- });
2292
- })()},"exclusive":${`[${(() => {
2293
- if ("string" === typeof input.exclusive[0])
2294
- return $string(input.exclusive[0]);
2295
- if ("string" === typeof input.exclusive[0])
2296
- return "\"" + input.exclusive[0] + "\"";
2297
- $throws({
2298
- expected: "\"minimum\"",
2299
- value: input.exclusive[0]
2300
- });
2301
- })()},${(() => {
2302
- if ("string" === typeof input.exclusive[1])
2303
- return $string(input.exclusive[1]);
2304
- if ("string" === typeof input.exclusive[1])
2305
- return "\"" + input.exclusive[1] + "\"";
2306
- $throws({
2307
- expected: "\"exclusiveMinimum\"",
2308
- value: input.exclusive[1]
2309
- });
2310
- })()}]`},"schema":${$so4(input.schema)}}`;
2311
- const $so4 = input => `{"minimum":${input.minimum}}`;
2312
- const $so5 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? $string(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? $so6(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? "{}" : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? $so5(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => $so5(elem)).join(",")}]` : "null" : undefined},`}"message":${$string(input.message)}}`;
2313
- const $so6 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1835
+ const $so2 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? $string(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? $so3(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? "{}" : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? $so2(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => $so2(elem)).join(",")}]` : "null" : undefined},`}"message":${$string(input.message)}}`;
1836
+ const $so3 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
2314
1837
  return ""; return `${JSON.stringify(key)}:${$string(value)}`; }).filter(str => "" !== str).join(",")}}`;
2315
1838
  return $so0(input);
2316
1839
  };
2317
1840
  export const assertStringifyFileStats = (input, errorFactory) => { const assert = (input, errorFactory) => {
2318
1841
  const __is = input => {
2319
- const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
1842
+ const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && (!Number.isNaN(elem[0]) && 0 <= elem[0])) && ("number" === typeof elem[1] && (!Number.isNaN(elem[1]) && 0 <= elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
2320
1843
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset && !Number.isNaN(input.offset)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end));
2321
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
2322
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
2323
- const $io4 = input => 0 === input.minimum;
2324
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode && !Number.isNaN(input.exitCode)) && (undefined === input.signalCode || "number" === typeof input.signalCode && !Number.isNaN(input.signalCode)) && (undefined === input.statusCode || "number" === typeof input.statusCode && !Number.isNaN(input.statusCode)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
2325
- const $io6 = input => Object.keys(input).every(key => {
1844
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode && !Number.isNaN(input.exitCode)) && (undefined === input.signalCode || "number" === typeof input.signalCode && !Number.isNaN(input.signalCode)) && (undefined === input.statusCode || "number" === typeof input.statusCode && !Number.isNaN(input.statusCode)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
1845
+ const $io3 = input => Object.keys(input).every(key => {
2326
1846
  const value = input[key];
2327
1847
  if (undefined === value)
2328
1848
  return true;
2329
1849
  return "string" === typeof value;
2330
1850
  });
2331
- const $io7 = input => true;
1851
+ const $io4 = input => true;
2332
1852
  return "object" === typeof input && null !== input && $io0(input);
2333
1853
  };
2334
1854
  if (false === __is(input))
@@ -2441,39 +1961,47 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
2441
1961
  value: input.mimeType
2442
1962
  }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
2443
1963
  path: _path + ".ranges",
2444
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
1964
+ expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
2445
1965
  value: input.ranges
2446
1966
  }, errorFactory)) && input.ranges.every((elem, _index5) => (Array.isArray(elem) || $guard(_exceptionable, {
2447
1967
  path: _path + ".ranges[" + _index5 + "]",
2448
- expected: "[start: Minimum<0>, end: Minimum<0>]",
1968
+ expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
2449
1969
  value: elem
2450
1970
  }, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
2451
1971
  path: _path + ".ranges[" + _index5 + "]",
2452
- expected: "[Minimum<0>, Minimum<0>]",
1972
+ expected: "[(number & Minimum<0>), (number & Minimum<0>)]",
2453
1973
  value: elem
2454
- }, errorFactory)) && (("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) || $guard(_exceptionable, {
1974
+ }, errorFactory)) && ("number" === typeof elem[0] && (!Number.isNaN(elem[0]) || $guard(_exceptionable, {
1975
+ path: _path + ".ranges[" + _index5 + "][0]",
1976
+ expected: "number",
1977
+ value: elem[0]
1978
+ }, errorFactory)) && (0 <= elem[0] || $guard(_exceptionable, {
2455
1979
  path: _path + ".ranges[" + _index5 + "][0]",
2456
- expected: "Minimum<0>",
1980
+ expected: "number & Minimum<0>",
2457
1981
  value: elem[0]
2458
- }, errorFactory)) && $ao2(elem[0], _path + ".ranges[" + _index5 + "][0]", true && _exceptionable) || $guard(_exceptionable, {
1982
+ }, errorFactory)) || $guard(_exceptionable, {
2459
1983
  path: _path + ".ranges[" + _index5 + "][0]",
2460
- expected: "Minimum<0>",
1984
+ expected: "(number & Minimum<0>)",
2461
1985
  value: elem[0]
2462
- }, errorFactory)) && (("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) || $guard(_exceptionable, {
1986
+ }, errorFactory)) && ("number" === typeof elem[1] && (!Number.isNaN(elem[1]) || $guard(_exceptionable, {
2463
1987
  path: _path + ".ranges[" + _index5 + "][1]",
2464
- expected: "Minimum<0>",
1988
+ expected: "number",
2465
1989
  value: elem[1]
2466
- }, errorFactory)) && $ao2(elem[1], _path + ".ranges[" + _index5 + "][1]", true && _exceptionable) || $guard(_exceptionable, {
1990
+ }, errorFactory)) && (0 <= elem[1] || $guard(_exceptionable, {
2467
1991
  path: _path + ".ranges[" + _index5 + "][1]",
2468
- expected: "Minimum<0>",
1992
+ expected: "number & Minimum<0>",
1993
+ value: elem[1]
1994
+ }, errorFactory)) || $guard(_exceptionable, {
1995
+ path: _path + ".ranges[" + _index5 + "][1]",
1996
+ expected: "(number & Minimum<0>)",
2469
1997
  value: elem[1]
2470
1998
  }, errorFactory))) || $guard(_exceptionable, {
2471
1999
  path: _path + ".ranges[" + _index5 + "]",
2472
- expected: "[start: Minimum<0>, end: Minimum<0>]",
2000
+ expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
2473
2001
  value: elem
2474
2002
  }, errorFactory)) || $guard(_exceptionable, {
2475
2003
  path: _path + ".ranges",
2476
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
2004
+ expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
2477
2005
  value: input.ranges
2478
2006
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
2479
2007
  path: _path + ".hash",
@@ -2507,11 +2035,11 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
2507
2035
  path: _path + ".error[" + _index6 + "]",
2508
2036
  expected: "NxtError",
2509
2037
  value: elem
2510
- }, errorFactory)) && $ao5(elem, _path + ".error[" + _index6 + "]", true && _exceptionable) || $guard(_exceptionable, {
2038
+ }, errorFactory)) && $ao2(elem, _path + ".error[" + _index6 + "]", true && _exceptionable) || $guard(_exceptionable, {
2511
2039
  path: _path + ".error[" + _index6 + "]",
2512
2040
  expected: "NxtError",
2513
2041
  value: elem
2514
- }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao5(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
2042
+ }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao2(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
2515
2043
  path: _path + ".error",
2516
2044
  expected: "(Array<NxtError> | NxtError | null)",
2517
2045
  value: input.error
@@ -2537,66 +2065,7 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
2537
2065
  expected: "(number | undefined)",
2538
2066
  value: input.end
2539
2067
  }, errorFactory));
2540
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input["typia.tag"] || ("object" === typeof input["typia.tag"] && null !== input["typia.tag"] || $guard(_exceptionable, {
2541
- path: _path + "[\"typia.tag\"]",
2542
- expected: "(__type.o1 | undefined)",
2543
- value: input["typia.tag"]
2544
- }, errorFactory)) && $ao3(input["typia.tag"], _path + "[\"typia.tag\"]", true && _exceptionable) || $guard(_exceptionable, {
2545
- path: _path + "[\"typia.tag\"]",
2546
- expected: "(__type.o1 | undefined)",
2547
- value: input["typia.tag"]
2548
- }, errorFactory);
2549
- const $ao3 = (input, _path, _exceptionable = true) => ("number" === input.target || $guard(_exceptionable, {
2550
- path: _path + ".target",
2551
- expected: "\"number\"",
2552
- value: input.target
2553
- }, errorFactory)) && ("minimum" === input.kind || $guard(_exceptionable, {
2554
- path: _path + ".kind",
2555
- expected: "\"minimum\"",
2556
- value: input.kind
2557
- }, errorFactory)) && (0 === input.value || $guard(_exceptionable, {
2558
- path: _path + ".value",
2559
- expected: "0",
2560
- value: input.value
2561
- }, errorFactory)) && ("0 <= $input" === input.validate || $guard(_exceptionable, {
2562
- path: _path + ".validate",
2563
- expected: "\"0 <= $input\"",
2564
- value: input.validate
2565
- }, errorFactory)) && ((Array.isArray(input.exclusive) || $guard(_exceptionable, {
2566
- path: _path + ".exclusive",
2567
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
2568
- value: input.exclusive
2569
- }, errorFactory)) && ((input.exclusive.length === 2 || $guard(_exceptionable, {
2570
- path: _path + ".exclusive",
2571
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
2572
- value: input.exclusive
2573
- }, errorFactory)) && ("minimum" === input.exclusive[0] || $guard(_exceptionable, {
2574
- path: _path + ".exclusive[0]",
2575
- expected: "\"minimum\"",
2576
- value: input.exclusive[0]
2577
- }, errorFactory)) && ("exclusiveMinimum" === input.exclusive[1] || $guard(_exceptionable, {
2578
- path: _path + ".exclusive[1]",
2579
- expected: "\"exclusiveMinimum\"",
2580
- value: input.exclusive[1]
2581
- }, errorFactory))) || $guard(_exceptionable, {
2582
- path: _path + ".exclusive",
2583
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
2584
- value: input.exclusive
2585
- }, errorFactory)) && (("object" === typeof input.schema && null !== input.schema || $guard(_exceptionable, {
2586
- path: _path + ".schema",
2587
- expected: "__type.o2",
2588
- value: input.schema
2589
- }, errorFactory)) && $ao4(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
2590
- path: _path + ".schema",
2591
- expected: "__type.o2",
2592
- value: input.schema
2593
- }, errorFactory));
2594
- const $ao4 = (input, _path, _exceptionable = true) => 0 === input.minimum || $guard(_exceptionable, {
2595
- path: _path + ".minimum",
2596
- expected: "0",
2597
- value: input.minimum
2598
- }, errorFactory);
2599
- const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
2068
+ const $ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
2600
2069
  path: _path + ".message",
2601
2070
  expected: "string",
2602
2071
  value: input.message
@@ -2624,7 +2093,7 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
2624
2093
  path: _path + ".headers",
2625
2094
  expected: "(Record<string, string> | undefined)",
2626
2095
  value: input.headers
2627
- }, errorFactory)) && $ao6(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
2096
+ }, errorFactory)) && $ao3(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
2628
2097
  path: _path + ".headers",
2629
2098
  expected: "(Record<string, string> | undefined)",
2630
2099
  value: input.headers
@@ -2632,7 +2101,7 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
2632
2101
  path: _path + ".data",
2633
2102
  expected: "(object | undefined)",
2634
2103
  value: input.data
2635
- }, errorFactory)) && $ao7(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
2104
+ }, errorFactory)) && $ao4(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
2636
2105
  path: _path + ".data",
2637
2106
  expected: "(object | undefined)",
2638
2107
  value: input.data
@@ -2640,7 +2109,7 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
2640
2109
  path: _path + ".cause",
2641
2110
  expected: "(NxtError | null | undefined)",
2642
2111
  value: input.cause
2643
- }, errorFactory)) && $ao5(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
2112
+ }, errorFactory)) && $ao2(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
2644
2113
  path: _path + ".cause",
2645
2114
  expected: "(NxtError | null | undefined)",
2646
2115
  value: input.cause
@@ -2652,7 +2121,7 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
2652
2121
  path: _path + ".errors[" + _index7 + "]",
2653
2122
  expected: "NxtError",
2654
2123
  value: elem
2655
- }, errorFactory)) && $ao5(elem, _path + ".errors[" + _index7 + "]", true && _exceptionable) || $guard(_exceptionable, {
2124
+ }, errorFactory)) && $ao2(elem, _path + ".errors[" + _index7 + "]", true && _exceptionable) || $guard(_exceptionable, {
2656
2125
  path: _path + ".errors[" + _index7 + "]",
2657
2126
  expected: "NxtError",
2658
2127
  value: elem
@@ -2661,7 +2130,7 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
2661
2130
  expected: "(Array<NxtError> | null | undefined)",
2662
2131
  value: input.errors
2663
2132
  }, errorFactory));
2664
- const $ao6 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
2133
+ const $ao3 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
2665
2134
  const value = input[key];
2666
2135
  if (undefined === value)
2667
2136
  return true;
@@ -2671,7 +2140,7 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
2671
2140
  value: value
2672
2141
  }, errorFactory);
2673
2142
  });
2674
- const $ao7 = (input, _path, _exceptionable = true) => true;
2143
+ const $ao4 = (input, _path, _exceptionable = true) => true;
2675
2144
  return ("object" === typeof input && null !== input || $guard(true, {
2676
2145
  path: _path + "",
2677
2146
  expected: "FileStats",
@@ -2685,81 +2154,30 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
2685
2154
  return input;
2686
2155
  }; const stringify = input => {
2687
2156
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
2688
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
2689
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
2690
- const $io4 = input => 0 === input.minimum;
2691
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
2692
- const $io6 = input => Object.keys(input).every(key => {
2157
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
2158
+ const $io3 = input => Object.keys(input).every(key => {
2693
2159
  const value = input[key];
2694
2160
  if (undefined === value)
2695
2161
  return true;
2696
2162
  return "string" === typeof value;
2697
2163
  });
2698
- const $io7 = input => true;
2164
+ const $io4 = input => true;
2699
2165
  const $string = __typia.json.createAssertStringify.string;
2700
2166
  const $throws = __typia.json.createAssertStringify.throws;
2701
2167
  const $tail = __typia.json.createAssertStringify.tail;
2702
- const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${input.uploading},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"ranges":${`[${input.ranges.map(elem => `[${$so2(elem[0])},${$so2(elem[1])}]`).join(",")}]`},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
2168
+ const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${input.uploading},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
2703
2169
  if (Array.isArray(input.error))
2704
- return `[${input.error.map(elem => $so5(elem)).join(",")}]`;
2170
+ return `[${input.error.map(elem => $so2(elem)).join(",")}]`;
2705
2171
  if ("object" === typeof input.error && null !== input.error)
2706
- return $so5(input.error);
2172
+ return $so2(input.error);
2707
2173
  $throws({
2708
2174
  expected: "(Array<NxtError> | NxtError | null)",
2709
2175
  value: input.error
2710
2176
  });
2711
2177
  })() : "null"}}`;
2712
2178
  const $so1 = input => `{${$tail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined},`}${undefined === input.offset ? "" : `"offset":${undefined !== input.offset ? input.offset : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined}`}`)}}`;
2713
- const $so2 = input => `{${$tail(`${undefined === input["typia.tag"] ? "" : `"typia.tag":${undefined !== input["typia.tag"] ? $so3(input["typia.tag"]) : undefined}`}`)}}`;
2714
- const $so3 = input => `{"target":${(() => {
2715
- if ("string" === typeof input.target)
2716
- return $string(input.target);
2717
- if ("string" === typeof input.target)
2718
- return "\"" + input.target + "\"";
2719
- $throws({
2720
- expected: "\"number\"",
2721
- value: input.target
2722
- });
2723
- })()},"kind":${(() => {
2724
- if ("string" === typeof input.kind)
2725
- return $string(input.kind);
2726
- if ("string" === typeof input.kind)
2727
- return "\"" + input.kind + "\"";
2728
- $throws({
2729
- expected: "\"minimum\"",
2730
- value: input.kind
2731
- });
2732
- })()},"value":${input.value},"validate":${(() => {
2733
- if ("string" === typeof input.validate)
2734
- return $string(input.validate);
2735
- if ("string" === typeof input.validate)
2736
- return "\"" + input.validate + "\"";
2737
- $throws({
2738
- expected: "\"0 <= $input\"",
2739
- value: input.validate
2740
- });
2741
- })()},"exclusive":${`[${(() => {
2742
- if ("string" === typeof input.exclusive[0])
2743
- return $string(input.exclusive[0]);
2744
- if ("string" === typeof input.exclusive[0])
2745
- return "\"" + input.exclusive[0] + "\"";
2746
- $throws({
2747
- expected: "\"minimum\"",
2748
- value: input.exclusive[0]
2749
- });
2750
- })()},${(() => {
2751
- if ("string" === typeof input.exclusive[1])
2752
- return $string(input.exclusive[1]);
2753
- if ("string" === typeof input.exclusive[1])
2754
- return "\"" + input.exclusive[1] + "\"";
2755
- $throws({
2756
- expected: "\"exclusiveMinimum\"",
2757
- value: input.exclusive[1]
2758
- });
2759
- })()}]`},"schema":${$so4(input.schema)}}`;
2760
- const $so4 = input => `{"minimum":${input.minimum}}`;
2761
- const $so5 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? $string(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? $so6(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? "{}" : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? $so5(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => $so5(elem)).join(",")}]` : "null" : undefined},`}"message":${$string(input.message)}}`;
2762
- const $so6 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
2179
+ const $so2 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? $string(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? $so3(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? "{}" : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? $so2(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => $so2(elem)).join(",")}]` : "null" : undefined},`}"message":${$string(input.message)}}`;
2180
+ const $so3 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
2763
2181
  return ""; return `${JSON.stringify(key)}:${$string(value)}`; }).filter(str => "" !== str).join(",")}}`;
2764
2182
  return $so0(input);
2765
2183
  }; return stringify(assert(input, errorFactory)); };