@nxtedition/types 23.0.22 → 23.0.23

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.
@@ -0,0 +1,1116 @@
1
+ import __typia from "typia";
2
+ export const isRenderScene = input => {
3
+ const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
4
+ const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
5
+ const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
6
+ const $io3 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
7
+ const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
8
+ return null !== input && undefined !== input && ("string" === typeof input || (Array.isArray(input) && input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io0(elem))) || "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input)));
9
+ };
10
+ export const assertRenderScene = (input, errorFactory) => {
11
+ const __is = input => {
12
+ const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
13
+ const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
14
+ const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
15
+ const $io3 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
16
+ const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
17
+ return null !== input && undefined !== input && ("string" === typeof input || (Array.isArray(input) && input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io0(elem))) || "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input)));
18
+ };
19
+ if (false === __is(input))
20
+ ((input, _path, _exceptionable = true) => {
21
+ const $guard = __typia.createAssert.guard;
22
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
23
+ path: _path + ".id",
24
+ expected: "(string | undefined)",
25
+ value: input.id
26
+ }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
27
+ path: _path + ".preset",
28
+ expected: "(string | undefined)",
29
+ value: input.preset
30
+ }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
31
+ path: _path + ".input",
32
+ expected: "(__type | undefined)",
33
+ value: input.input
34
+ }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
35
+ path: _path + ".input",
36
+ expected: "(__type | undefined)",
37
+ value: input.input
38
+ }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
39
+ path: _path + ".lang",
40
+ expected: "(string | undefined)",
41
+ value: input.lang
42
+ }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
43
+ path: _path + ".subtitle",
44
+ expected: "(string | undefined)",
45
+ value: input.subtitle
46
+ }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
47
+ path: _path + ".video",
48
+ expected: "(__type.o1 | undefined)",
49
+ value: input.video
50
+ }, errorFactory)) && $ao2(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
51
+ path: _path + ".video",
52
+ expected: "(__type.o1 | undefined)",
53
+ value: input.video
54
+ }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
55
+ path: _path + ".start",
56
+ expected: "(number | undefined)",
57
+ value: input.start
58
+ }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
59
+ path: _path + ".end",
60
+ expected: "(number | undefined)",
61
+ value: input.end
62
+ }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
63
+ path: _path + ".transcribe",
64
+ expected: "(__type.o3 | undefined)",
65
+ value: input.transcribe
66
+ }, errorFactory)) && $ao4(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
67
+ path: _path + ".transcribe",
68
+ expected: "(__type.o3 | undefined)",
69
+ value: input.transcribe
70
+ }, errorFactory));
71
+ const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
72
+ path: _path + ".type",
73
+ expected: "(string | undefined)",
74
+ value: input.type
75
+ }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
76
+ path: _path + ".file",
77
+ expected: "(null | string | undefined)",
78
+ value: input.file
79
+ }, errorFactory));
80
+ const $ao2 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
81
+ path: _path + ".crop",
82
+ expected: "(__type.o2 | undefined)",
83
+ value: input.crop
84
+ }, errorFactory)) && $ao3(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
85
+ path: _path + ".crop",
86
+ expected: "(__type.o2 | undefined)",
87
+ value: input.crop
88
+ }, errorFactory);
89
+ const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
90
+ path: _path + ".x",
91
+ expected: "(number | undefined)",
92
+ value: input.x
93
+ }, errorFactory)) && (undefined === input.y || "number" === typeof input.y || $guard(_exceptionable, {
94
+ path: _path + ".y",
95
+ expected: "(number | undefined)",
96
+ value: input.y
97
+ }, errorFactory)) && (undefined === input.width || "number" === typeof input.width || $guard(_exceptionable, {
98
+ path: _path + ".width",
99
+ expected: "(number | undefined)",
100
+ value: input.width
101
+ }, errorFactory)) && (undefined === input.height || "number" === typeof input.height || $guard(_exceptionable, {
102
+ path: _path + ".height",
103
+ expected: "(number | undefined)",
104
+ value: input.height
105
+ }, errorFactory));
106
+ const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
107
+ path: _path + ".language",
108
+ expected: "(string | undefined)",
109
+ value: input.language
110
+ }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
111
+ path: _path + ".pan",
112
+ expected: "(Array<number> | undefined)",
113
+ value: input.pan
114
+ }, errorFactory)) && input.pan.every((elem, _index2) => "number" === typeof elem || $guard(_exceptionable, {
115
+ path: _path + ".pan[" + _index2 + "]",
116
+ expected: "number",
117
+ value: elem
118
+ }, errorFactory)) || $guard(_exceptionable, {
119
+ path: _path + ".pan",
120
+ expected: "(Array<number> | undefined)",
121
+ value: input.pan
122
+ }, errorFactory));
123
+ return (null !== input || $guard(true, {
124
+ path: _path + "",
125
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
126
+ value: input
127
+ }, errorFactory)) && (undefined !== input || $guard(true, {
128
+ path: _path + "",
129
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
130
+ value: input
131
+ }, errorFactory)) && ("string" === typeof input || (Array.isArray(input) && input.every((elem, _index1) => (null !== elem || $guard(true, {
132
+ path: _path + "[" + _index1 + "]",
133
+ expected: "(RenderSceneObject | string)",
134
+ value: elem
135
+ }, errorFactory)) && (undefined !== elem || $guard(true, {
136
+ path: _path + "[" + _index1 + "]",
137
+ expected: "(RenderSceneObject | string)",
138
+ value: elem
139
+ }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(true, {
140
+ path: _path + "[" + _index1 + "]",
141
+ expected: "(RenderSceneObject | string)",
142
+ value: elem
143
+ }, errorFactory)) && $ao0(elem, _path + "[" + _index1 + "]", true) || $guard(true, {
144
+ path: _path + "[" + _index1 + "]",
145
+ expected: "(RenderSceneObject | string)",
146
+ value: elem
147
+ }, errorFactory))) || "object" === typeof input && null !== input && false === Array.isArray(input) && $ao0(input, _path + "", true) || $guard(true, {
148
+ path: _path + "",
149
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
150
+ value: input
151
+ }, errorFactory)) || $guard(true, {
152
+ path: _path + "",
153
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
154
+ value: input
155
+ }, errorFactory));
156
+ })(input, "$input", true);
157
+ return input;
158
+ };
159
+ export const randomRenderScene = generator => {
160
+ const $generator = __typia.createRandom.generator;
161
+ const $pick = __typia.createRandom.pick;
162
+ const $ro0 = (_recursive = false, _depth = 0) => ({
163
+ id: $pick([
164
+ () => undefined,
165
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
166
+ ])(),
167
+ preset: $pick([
168
+ () => undefined,
169
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
170
+ ])(),
171
+ input: $pick([
172
+ () => undefined,
173
+ () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
174
+ ])(),
175
+ lang: $pick([
176
+ () => undefined,
177
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
178
+ ])(),
179
+ subtitle: $pick([
180
+ () => undefined,
181
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
182
+ ])(),
183
+ video: $pick([
184
+ () => undefined,
185
+ () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
186
+ ])(),
187
+ start: $pick([
188
+ () => undefined,
189
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
190
+ ])(),
191
+ end: $pick([
192
+ () => undefined,
193
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
194
+ ])(),
195
+ transcribe: $pick([
196
+ () => undefined,
197
+ () => $ro4(_recursive, _recursive ? 1 + _depth : _depth)
198
+ ])()
199
+ });
200
+ const $ro1 = (_recursive = false, _depth = 0) => ({
201
+ type: $pick([
202
+ () => undefined,
203
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
204
+ ])(),
205
+ file: $pick([
206
+ () => undefined,
207
+ () => null,
208
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
209
+ ])()
210
+ });
211
+ const $ro2 = (_recursive = false, _depth = 0) => ({
212
+ crop: $pick([
213
+ () => undefined,
214
+ () => $ro3(_recursive, _recursive ? 1 + _depth : _depth)
215
+ ])()
216
+ });
217
+ const $ro3 = (_recursive = false, _depth = 0) => ({
218
+ x: $pick([
219
+ () => undefined,
220
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
221
+ ])(),
222
+ y: $pick([
223
+ () => undefined,
224
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
225
+ ])(),
226
+ width: $pick([
227
+ () => undefined,
228
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
229
+ ])(),
230
+ height: $pick([
231
+ () => undefined,
232
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
233
+ ])()
234
+ });
235
+ const $ro4 = (_recursive = false, _depth = 0) => ({
236
+ language: $pick([
237
+ () => undefined,
238
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
239
+ ])(),
240
+ pan: $pick([
241
+ () => undefined,
242
+ () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100))
243
+ ])()
244
+ });
245
+ return $pick([
246
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
247
+ () => (generator?.array ?? $generator.array)(() => $pick([
248
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
249
+ () => $ro0()
250
+ ])()),
251
+ () => $ro0()
252
+ ])();
253
+ };
254
+ export const assertGuardRenderScene = (input, errorFactory) => {
255
+ const __is = input => {
256
+ const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
257
+ const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
258
+ const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
259
+ const $io3 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
260
+ const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
261
+ return null !== input && undefined !== input && ("string" === typeof input || (Array.isArray(input) && input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io0(elem))) || "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input)));
262
+ };
263
+ if (false === __is(input))
264
+ ((input, _path, _exceptionable = true) => {
265
+ const $guard = __typia.createAssertGuard.guard;
266
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
267
+ path: _path + ".id",
268
+ expected: "(string | undefined)",
269
+ value: input.id
270
+ }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
271
+ path: _path + ".preset",
272
+ expected: "(string | undefined)",
273
+ value: input.preset
274
+ }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
275
+ path: _path + ".input",
276
+ expected: "(__type | undefined)",
277
+ value: input.input
278
+ }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
279
+ path: _path + ".input",
280
+ expected: "(__type | undefined)",
281
+ value: input.input
282
+ }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
283
+ path: _path + ".lang",
284
+ expected: "(string | undefined)",
285
+ value: input.lang
286
+ }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
287
+ path: _path + ".subtitle",
288
+ expected: "(string | undefined)",
289
+ value: input.subtitle
290
+ }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
291
+ path: _path + ".video",
292
+ expected: "(__type.o1 | undefined)",
293
+ value: input.video
294
+ }, errorFactory)) && $ao2(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
295
+ path: _path + ".video",
296
+ expected: "(__type.o1 | undefined)",
297
+ value: input.video
298
+ }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
299
+ path: _path + ".start",
300
+ expected: "(number | undefined)",
301
+ value: input.start
302
+ }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
303
+ path: _path + ".end",
304
+ expected: "(number | undefined)",
305
+ value: input.end
306
+ }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
307
+ path: _path + ".transcribe",
308
+ expected: "(__type.o3 | undefined)",
309
+ value: input.transcribe
310
+ }, errorFactory)) && $ao4(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
311
+ path: _path + ".transcribe",
312
+ expected: "(__type.o3 | undefined)",
313
+ value: input.transcribe
314
+ }, errorFactory));
315
+ const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
316
+ path: _path + ".type",
317
+ expected: "(string | undefined)",
318
+ value: input.type
319
+ }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
320
+ path: _path + ".file",
321
+ expected: "(null | string | undefined)",
322
+ value: input.file
323
+ }, errorFactory));
324
+ const $ao2 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
325
+ path: _path + ".crop",
326
+ expected: "(__type.o2 | undefined)",
327
+ value: input.crop
328
+ }, errorFactory)) && $ao3(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
329
+ path: _path + ".crop",
330
+ expected: "(__type.o2 | undefined)",
331
+ value: input.crop
332
+ }, errorFactory);
333
+ const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
334
+ path: _path + ".x",
335
+ expected: "(number | undefined)",
336
+ value: input.x
337
+ }, errorFactory)) && (undefined === input.y || "number" === typeof input.y || $guard(_exceptionable, {
338
+ path: _path + ".y",
339
+ expected: "(number | undefined)",
340
+ value: input.y
341
+ }, errorFactory)) && (undefined === input.width || "number" === typeof input.width || $guard(_exceptionable, {
342
+ path: _path + ".width",
343
+ expected: "(number | undefined)",
344
+ value: input.width
345
+ }, errorFactory)) && (undefined === input.height || "number" === typeof input.height || $guard(_exceptionable, {
346
+ path: _path + ".height",
347
+ expected: "(number | undefined)",
348
+ value: input.height
349
+ }, errorFactory));
350
+ const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
351
+ path: _path + ".language",
352
+ expected: "(string | undefined)",
353
+ value: input.language
354
+ }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
355
+ path: _path + ".pan",
356
+ expected: "(Array<number> | undefined)",
357
+ value: input.pan
358
+ }, errorFactory)) && input.pan.every((elem, _index2) => "number" === typeof elem || $guard(_exceptionable, {
359
+ path: _path + ".pan[" + _index2 + "]",
360
+ expected: "number",
361
+ value: elem
362
+ }, errorFactory)) || $guard(_exceptionable, {
363
+ path: _path + ".pan",
364
+ expected: "(Array<number> | undefined)",
365
+ value: input.pan
366
+ }, errorFactory));
367
+ return (null !== input || $guard(true, {
368
+ path: _path + "",
369
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
370
+ value: input
371
+ }, errorFactory)) && (undefined !== input || $guard(true, {
372
+ path: _path + "",
373
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
374
+ value: input
375
+ }, errorFactory)) && ("string" === typeof input || (Array.isArray(input) && input.every((elem, _index1) => (null !== elem || $guard(true, {
376
+ path: _path + "[" + _index1 + "]",
377
+ expected: "(RenderSceneObject | string)",
378
+ value: elem
379
+ }, errorFactory)) && (undefined !== elem || $guard(true, {
380
+ path: _path + "[" + _index1 + "]",
381
+ expected: "(RenderSceneObject | string)",
382
+ value: elem
383
+ }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(true, {
384
+ path: _path + "[" + _index1 + "]",
385
+ expected: "(RenderSceneObject | string)",
386
+ value: elem
387
+ }, errorFactory)) && $ao0(elem, _path + "[" + _index1 + "]", true) || $guard(true, {
388
+ path: _path + "[" + _index1 + "]",
389
+ expected: "(RenderSceneObject | string)",
390
+ value: elem
391
+ }, errorFactory))) || "object" === typeof input && null !== input && false === Array.isArray(input) && $ao0(input, _path + "", true) || $guard(true, {
392
+ path: _path + "",
393
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
394
+ value: input
395
+ }, errorFactory)) || $guard(true, {
396
+ path: _path + "",
397
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
398
+ value: input
399
+ }, errorFactory));
400
+ })(input, "$input", true);
401
+ };
402
+ export const stringifyRenderScene = input => {
403
+ const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
404
+ const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
405
+ const $io3 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
406
+ const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
407
+ const $string = __typia.json.createStringify.string;
408
+ const $throws = __typia.json.createStringify.throws;
409
+ const $tail = __typia.json.createStringify.tail;
410
+ const $so0 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so1(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so2(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so4(input.transcribe) : undefined}`}`)}}`;
411
+ const $so1 = input => `{${$tail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? null !== input.file ? $string(input.file) : "null" : undefined}`}`)}}`;
412
+ const $so2 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so3(input.crop) : undefined}`}`)}}`;
413
+ const $so3 = input => `{${$tail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`;
414
+ const $so4 = input => `{${$tail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? $string(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`;
415
+ return (() => {
416
+ if ("string" === typeof input)
417
+ return $string(input);
418
+ if (Array.isArray(input))
419
+ return `[${input.map(elem => (() => {
420
+ if ("string" === typeof elem)
421
+ return $string(elem);
422
+ if ("object" === typeof elem && null !== elem && false === Array.isArray(elem))
423
+ return $so0(elem);
424
+ $throws({
425
+ expected: "(RenderSceneObject | string)",
426
+ value: elem
427
+ });
428
+ })()).join(",")}]`;
429
+ if ("object" === typeof input && null !== input && false === Array.isArray(input))
430
+ return $so0(input);
431
+ $throws({
432
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
433
+ value: input
434
+ });
435
+ })();
436
+ };
437
+ export const assertStringifyRenderScene = (input, errorFactory) => { const assert = (input, errorFactory) => {
438
+ const __is = input => {
439
+ const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end)) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
440
+ const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
441
+ const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
442
+ const $io3 = input => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x)) && (undefined === input.y || "number" === typeof input.y && !Number.isNaN(input.y)) && (undefined === input.width || "number" === typeof input.width && !Number.isNaN(input.width)) && (undefined === input.height || "number" === typeof input.height && !Number.isNaN(input.height));
443
+ const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem && !Number.isNaN(elem)));
444
+ return null !== input && undefined !== input && ("string" === typeof input || (Array.isArray(input) && input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io0(elem))) || "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input)));
445
+ };
446
+ if (false === __is(input))
447
+ ((input, _path, _exceptionable = true) => {
448
+ const $guard = __typia.json.createAssertStringify.guard;
449
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
450
+ path: _path + ".id",
451
+ expected: "(string | undefined)",
452
+ value: input.id
453
+ }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
454
+ path: _path + ".preset",
455
+ expected: "(string | undefined)",
456
+ value: input.preset
457
+ }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
458
+ path: _path + ".input",
459
+ expected: "(__type | undefined)",
460
+ value: input.input
461
+ }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
462
+ path: _path + ".input",
463
+ expected: "(__type | undefined)",
464
+ value: input.input
465
+ }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
466
+ path: _path + ".lang",
467
+ expected: "(string | undefined)",
468
+ value: input.lang
469
+ }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
470
+ path: _path + ".subtitle",
471
+ expected: "(string | undefined)",
472
+ value: input.subtitle
473
+ }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
474
+ path: _path + ".video",
475
+ expected: "(__type.o1 | undefined)",
476
+ value: input.video
477
+ }, errorFactory)) && $ao2(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
478
+ path: _path + ".video",
479
+ expected: "(__type.o1 | undefined)",
480
+ value: input.video
481
+ }, errorFactory)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start) || $guard(_exceptionable, {
482
+ path: _path + ".start",
483
+ expected: "(number | undefined)",
484
+ value: input.start
485
+ }, errorFactory)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end) || $guard(_exceptionable, {
486
+ path: _path + ".end",
487
+ expected: "(number | undefined)",
488
+ value: input.end
489
+ }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
490
+ path: _path + ".transcribe",
491
+ expected: "(__type.o3 | undefined)",
492
+ value: input.transcribe
493
+ }, errorFactory)) && $ao4(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
494
+ path: _path + ".transcribe",
495
+ expected: "(__type.o3 | undefined)",
496
+ value: input.transcribe
497
+ }, errorFactory));
498
+ const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
499
+ path: _path + ".type",
500
+ expected: "(string | undefined)",
501
+ value: input.type
502
+ }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
503
+ path: _path + ".file",
504
+ expected: "(null | string | undefined)",
505
+ value: input.file
506
+ }, errorFactory));
507
+ const $ao2 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
508
+ path: _path + ".crop",
509
+ expected: "(__type.o2 | undefined)",
510
+ value: input.crop
511
+ }, errorFactory)) && $ao3(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
512
+ path: _path + ".crop",
513
+ expected: "(__type.o2 | undefined)",
514
+ value: input.crop
515
+ }, errorFactory);
516
+ const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x) || $guard(_exceptionable, {
517
+ path: _path + ".x",
518
+ expected: "(number | undefined)",
519
+ value: input.x
520
+ }, errorFactory)) && (undefined === input.y || "number" === typeof input.y && !Number.isNaN(input.y) || $guard(_exceptionable, {
521
+ path: _path + ".y",
522
+ expected: "(number | undefined)",
523
+ value: input.y
524
+ }, errorFactory)) && (undefined === input.width || "number" === typeof input.width && !Number.isNaN(input.width) || $guard(_exceptionable, {
525
+ path: _path + ".width",
526
+ expected: "(number | undefined)",
527
+ value: input.width
528
+ }, errorFactory)) && (undefined === input.height || "number" === typeof input.height && !Number.isNaN(input.height) || $guard(_exceptionable, {
529
+ path: _path + ".height",
530
+ expected: "(number | undefined)",
531
+ value: input.height
532
+ }, errorFactory));
533
+ const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
534
+ path: _path + ".language",
535
+ expected: "(string | undefined)",
536
+ value: input.language
537
+ }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
538
+ path: _path + ".pan",
539
+ expected: "(Array<number> | undefined)",
540
+ value: input.pan
541
+ }, errorFactory)) && input.pan.every((elem, _index2) => "number" === typeof elem && !Number.isNaN(elem) || $guard(_exceptionable, {
542
+ path: _path + ".pan[" + _index2 + "]",
543
+ expected: "number",
544
+ value: elem
545
+ }, errorFactory)) || $guard(_exceptionable, {
546
+ path: _path + ".pan",
547
+ expected: "(Array<number> | undefined)",
548
+ value: input.pan
549
+ }, errorFactory));
550
+ return (null !== input || $guard(true, {
551
+ path: _path + "",
552
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
553
+ value: input
554
+ }, errorFactory)) && (undefined !== input || $guard(true, {
555
+ path: _path + "",
556
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
557
+ value: input
558
+ }, errorFactory)) && ("string" === typeof input || (Array.isArray(input) && input.every((elem, _index1) => (null !== elem || $guard(true, {
559
+ path: _path + "[" + _index1 + "]",
560
+ expected: "(RenderSceneObject | string)",
561
+ value: elem
562
+ }, errorFactory)) && (undefined !== elem || $guard(true, {
563
+ path: _path + "[" + _index1 + "]",
564
+ expected: "(RenderSceneObject | string)",
565
+ value: elem
566
+ }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(true, {
567
+ path: _path + "[" + _index1 + "]",
568
+ expected: "(RenderSceneObject | string)",
569
+ value: elem
570
+ }, errorFactory)) && $ao0(elem, _path + "[" + _index1 + "]", true) || $guard(true, {
571
+ path: _path + "[" + _index1 + "]",
572
+ expected: "(RenderSceneObject | string)",
573
+ value: elem
574
+ }, errorFactory))) || "object" === typeof input && null !== input && false === Array.isArray(input) && $ao0(input, _path + "", true) || $guard(true, {
575
+ path: _path + "",
576
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
577
+ value: input
578
+ }, errorFactory)) || $guard(true, {
579
+ path: _path + "",
580
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
581
+ value: input
582
+ }, errorFactory));
583
+ })(input, "$input", true);
584
+ return input;
585
+ }; const stringify = input => {
586
+ const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
587
+ const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
588
+ const $io3 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
589
+ const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
590
+ const $string = __typia.json.createAssertStringify.string;
591
+ const $throws = __typia.json.createAssertStringify.throws;
592
+ const $tail = __typia.json.createAssertStringify.tail;
593
+ const $so0 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so1(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so2(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so4(input.transcribe) : undefined}`}`)}}`;
594
+ const $so1 = input => `{${$tail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? null !== input.file ? $string(input.file) : "null" : undefined}`}`)}}`;
595
+ const $so2 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so3(input.crop) : undefined}`}`)}}`;
596
+ const $so3 = input => `{${$tail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`;
597
+ const $so4 = input => `{${$tail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? $string(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`;
598
+ return (() => {
599
+ if ("string" === typeof input)
600
+ return $string(input);
601
+ if (Array.isArray(input))
602
+ return `[${input.map(elem => (() => {
603
+ if ("string" === typeof elem)
604
+ return $string(elem);
605
+ if ("object" === typeof elem && null !== elem && false === Array.isArray(elem))
606
+ return $so0(elem);
607
+ $throws({
608
+ expected: "(RenderSceneObject | string)",
609
+ value: elem
610
+ });
611
+ })()).join(",")}]`;
612
+ if ("object" === typeof input && null !== input && false === Array.isArray(input))
613
+ return $so0(input);
614
+ $throws({
615
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
616
+ value: input
617
+ });
618
+ })();
619
+ }; return stringify(assert(input, errorFactory)); };
620
+ export const isRenderSceneObject = input => {
621
+ const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
622
+ const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
623
+ const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
624
+ const $io3 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
625
+ const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
626
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
627
+ };
628
+ export const assertRenderSceneObject = (input, errorFactory) => {
629
+ const __is = input => {
630
+ const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
631
+ const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
632
+ const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
633
+ const $io3 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
634
+ const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
635
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
636
+ };
637
+ if (false === __is(input))
638
+ ((input, _path, _exceptionable = true) => {
639
+ const $guard = __typia.createAssert.guard;
640
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
641
+ path: _path + ".id",
642
+ expected: "(string | undefined)",
643
+ value: input.id
644
+ }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
645
+ path: _path + ".preset",
646
+ expected: "(string | undefined)",
647
+ value: input.preset
648
+ }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
649
+ path: _path + ".input",
650
+ expected: "(__type | undefined)",
651
+ value: input.input
652
+ }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
653
+ path: _path + ".input",
654
+ expected: "(__type | undefined)",
655
+ value: input.input
656
+ }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
657
+ path: _path + ".lang",
658
+ expected: "(string | undefined)",
659
+ value: input.lang
660
+ }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
661
+ path: _path + ".subtitle",
662
+ expected: "(string | undefined)",
663
+ value: input.subtitle
664
+ }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
665
+ path: _path + ".video",
666
+ expected: "(__type.o1 | undefined)",
667
+ value: input.video
668
+ }, errorFactory)) && $ao2(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
669
+ path: _path + ".video",
670
+ expected: "(__type.o1 | undefined)",
671
+ value: input.video
672
+ }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
673
+ path: _path + ".start",
674
+ expected: "(number | undefined)",
675
+ value: input.start
676
+ }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
677
+ path: _path + ".end",
678
+ expected: "(number | undefined)",
679
+ value: input.end
680
+ }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
681
+ path: _path + ".transcribe",
682
+ expected: "(__type.o3 | undefined)",
683
+ value: input.transcribe
684
+ }, errorFactory)) && $ao4(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
685
+ path: _path + ".transcribe",
686
+ expected: "(__type.o3 | undefined)",
687
+ value: input.transcribe
688
+ }, errorFactory));
689
+ const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
690
+ path: _path + ".type",
691
+ expected: "(string | undefined)",
692
+ value: input.type
693
+ }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
694
+ path: _path + ".file",
695
+ expected: "(null | string | undefined)",
696
+ value: input.file
697
+ }, errorFactory));
698
+ const $ao2 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
699
+ path: _path + ".crop",
700
+ expected: "(__type.o2 | undefined)",
701
+ value: input.crop
702
+ }, errorFactory)) && $ao3(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
703
+ path: _path + ".crop",
704
+ expected: "(__type.o2 | undefined)",
705
+ value: input.crop
706
+ }, errorFactory);
707
+ const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
708
+ path: _path + ".x",
709
+ expected: "(number | undefined)",
710
+ value: input.x
711
+ }, errorFactory)) && (undefined === input.y || "number" === typeof input.y || $guard(_exceptionable, {
712
+ path: _path + ".y",
713
+ expected: "(number | undefined)",
714
+ value: input.y
715
+ }, errorFactory)) && (undefined === input.width || "number" === typeof input.width || $guard(_exceptionable, {
716
+ path: _path + ".width",
717
+ expected: "(number | undefined)",
718
+ value: input.width
719
+ }, errorFactory)) && (undefined === input.height || "number" === typeof input.height || $guard(_exceptionable, {
720
+ path: _path + ".height",
721
+ expected: "(number | undefined)",
722
+ value: input.height
723
+ }, errorFactory));
724
+ const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
725
+ path: _path + ".language",
726
+ expected: "(string | undefined)",
727
+ value: input.language
728
+ }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
729
+ path: _path + ".pan",
730
+ expected: "(Array<number> | undefined)",
731
+ value: input.pan
732
+ }, errorFactory)) && input.pan.every((elem, _index1) => "number" === typeof elem || $guard(_exceptionable, {
733
+ path: _path + ".pan[" + _index1 + "]",
734
+ expected: "number",
735
+ value: elem
736
+ }, errorFactory)) || $guard(_exceptionable, {
737
+ path: _path + ".pan",
738
+ expected: "(Array<number> | undefined)",
739
+ value: input.pan
740
+ }, errorFactory));
741
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
742
+ path: _path + "",
743
+ expected: "RenderSceneObject",
744
+ value: input
745
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
746
+ path: _path + "",
747
+ expected: "RenderSceneObject",
748
+ value: input
749
+ }, errorFactory);
750
+ })(input, "$input", true);
751
+ return input;
752
+ };
753
+ export const randomRenderSceneObject = generator => {
754
+ const $generator = __typia.createRandom.generator;
755
+ const $pick = __typia.createRandom.pick;
756
+ const $ro0 = (_recursive = false, _depth = 0) => ({
757
+ id: $pick([
758
+ () => undefined,
759
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
760
+ ])(),
761
+ preset: $pick([
762
+ () => undefined,
763
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
764
+ ])(),
765
+ input: $pick([
766
+ () => undefined,
767
+ () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
768
+ ])(),
769
+ lang: $pick([
770
+ () => undefined,
771
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
772
+ ])(),
773
+ subtitle: $pick([
774
+ () => undefined,
775
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
776
+ ])(),
777
+ video: $pick([
778
+ () => undefined,
779
+ () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
780
+ ])(),
781
+ start: $pick([
782
+ () => undefined,
783
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
784
+ ])(),
785
+ end: $pick([
786
+ () => undefined,
787
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
788
+ ])(),
789
+ transcribe: $pick([
790
+ () => undefined,
791
+ () => $ro4(_recursive, _recursive ? 1 + _depth : _depth)
792
+ ])()
793
+ });
794
+ const $ro1 = (_recursive = false, _depth = 0) => ({
795
+ type: $pick([
796
+ () => undefined,
797
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
798
+ ])(),
799
+ file: $pick([
800
+ () => undefined,
801
+ () => null,
802
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
803
+ ])()
804
+ });
805
+ const $ro2 = (_recursive = false, _depth = 0) => ({
806
+ crop: $pick([
807
+ () => undefined,
808
+ () => $ro3(_recursive, _recursive ? 1 + _depth : _depth)
809
+ ])()
810
+ });
811
+ const $ro3 = (_recursive = false, _depth = 0) => ({
812
+ x: $pick([
813
+ () => undefined,
814
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
815
+ ])(),
816
+ y: $pick([
817
+ () => undefined,
818
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
819
+ ])(),
820
+ width: $pick([
821
+ () => undefined,
822
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
823
+ ])(),
824
+ height: $pick([
825
+ () => undefined,
826
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
827
+ ])()
828
+ });
829
+ const $ro4 = (_recursive = false, _depth = 0) => ({
830
+ language: $pick([
831
+ () => undefined,
832
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
833
+ ])(),
834
+ pan: $pick([
835
+ () => undefined,
836
+ () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100))
837
+ ])()
838
+ });
839
+ return $ro0();
840
+ };
841
+ export const assertGuardRenderSceneObject = (input, errorFactory) => {
842
+ const __is = input => {
843
+ const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
844
+ const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
845
+ const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
846
+ const $io3 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
847
+ const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
848
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
849
+ };
850
+ if (false === __is(input))
851
+ ((input, _path, _exceptionable = true) => {
852
+ const $guard = __typia.createAssertGuard.guard;
853
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
854
+ path: _path + ".id",
855
+ expected: "(string | undefined)",
856
+ value: input.id
857
+ }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
858
+ path: _path + ".preset",
859
+ expected: "(string | undefined)",
860
+ value: input.preset
861
+ }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
862
+ path: _path + ".input",
863
+ expected: "(__type | undefined)",
864
+ value: input.input
865
+ }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
866
+ path: _path + ".input",
867
+ expected: "(__type | undefined)",
868
+ value: input.input
869
+ }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
870
+ path: _path + ".lang",
871
+ expected: "(string | undefined)",
872
+ value: input.lang
873
+ }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
874
+ path: _path + ".subtitle",
875
+ expected: "(string | undefined)",
876
+ value: input.subtitle
877
+ }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
878
+ path: _path + ".video",
879
+ expected: "(__type.o1 | undefined)",
880
+ value: input.video
881
+ }, errorFactory)) && $ao2(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
882
+ path: _path + ".video",
883
+ expected: "(__type.o1 | undefined)",
884
+ value: input.video
885
+ }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
886
+ path: _path + ".start",
887
+ expected: "(number | undefined)",
888
+ value: input.start
889
+ }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
890
+ path: _path + ".end",
891
+ expected: "(number | undefined)",
892
+ value: input.end
893
+ }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
894
+ path: _path + ".transcribe",
895
+ expected: "(__type.o3 | undefined)",
896
+ value: input.transcribe
897
+ }, errorFactory)) && $ao4(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
898
+ path: _path + ".transcribe",
899
+ expected: "(__type.o3 | undefined)",
900
+ value: input.transcribe
901
+ }, errorFactory));
902
+ const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
903
+ path: _path + ".type",
904
+ expected: "(string | undefined)",
905
+ value: input.type
906
+ }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
907
+ path: _path + ".file",
908
+ expected: "(null | string | undefined)",
909
+ value: input.file
910
+ }, errorFactory));
911
+ const $ao2 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
912
+ path: _path + ".crop",
913
+ expected: "(__type.o2 | undefined)",
914
+ value: input.crop
915
+ }, errorFactory)) && $ao3(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
916
+ path: _path + ".crop",
917
+ expected: "(__type.o2 | undefined)",
918
+ value: input.crop
919
+ }, errorFactory);
920
+ const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
921
+ path: _path + ".x",
922
+ expected: "(number | undefined)",
923
+ value: input.x
924
+ }, errorFactory)) && (undefined === input.y || "number" === typeof input.y || $guard(_exceptionable, {
925
+ path: _path + ".y",
926
+ expected: "(number | undefined)",
927
+ value: input.y
928
+ }, errorFactory)) && (undefined === input.width || "number" === typeof input.width || $guard(_exceptionable, {
929
+ path: _path + ".width",
930
+ expected: "(number | undefined)",
931
+ value: input.width
932
+ }, errorFactory)) && (undefined === input.height || "number" === typeof input.height || $guard(_exceptionable, {
933
+ path: _path + ".height",
934
+ expected: "(number | undefined)",
935
+ value: input.height
936
+ }, errorFactory));
937
+ const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
938
+ path: _path + ".language",
939
+ expected: "(string | undefined)",
940
+ value: input.language
941
+ }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
942
+ path: _path + ".pan",
943
+ expected: "(Array<number> | undefined)",
944
+ value: input.pan
945
+ }, errorFactory)) && input.pan.every((elem, _index1) => "number" === typeof elem || $guard(_exceptionable, {
946
+ path: _path + ".pan[" + _index1 + "]",
947
+ expected: "number",
948
+ value: elem
949
+ }, errorFactory)) || $guard(_exceptionable, {
950
+ path: _path + ".pan",
951
+ expected: "(Array<number> | undefined)",
952
+ value: input.pan
953
+ }, errorFactory));
954
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
955
+ path: _path + "",
956
+ expected: "RenderSceneObject",
957
+ value: input
958
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
959
+ path: _path + "",
960
+ expected: "RenderSceneObject",
961
+ value: input
962
+ }, errorFactory);
963
+ })(input, "$input", true);
964
+ };
965
+ export const stringifyRenderSceneObject = input => {
966
+ const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
967
+ const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
968
+ const $io3 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
969
+ const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
970
+ const $string = __typia.json.createStringify.string;
971
+ const $tail = __typia.json.createStringify.tail;
972
+ const $so0 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so1(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so2(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so4(input.transcribe) : undefined}`}`)}}`;
973
+ const $so1 = input => `{${$tail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? null !== input.file ? $string(input.file) : "null" : undefined}`}`)}}`;
974
+ const $so2 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so3(input.crop) : undefined}`}`)}}`;
975
+ const $so3 = input => `{${$tail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`;
976
+ const $so4 = input => `{${$tail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? $string(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`;
977
+ return $so0(input);
978
+ };
979
+ export const assertStringifyRenderSceneObject = (input, errorFactory) => { const assert = (input, errorFactory) => {
980
+ const __is = input => {
981
+ const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io2(input.video)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end)) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io4(input.transcribe));
982
+ const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
983
+ const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
984
+ const $io3 = input => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x)) && (undefined === input.y || "number" === typeof input.y && !Number.isNaN(input.y)) && (undefined === input.width || "number" === typeof input.width && !Number.isNaN(input.width)) && (undefined === input.height || "number" === typeof input.height && !Number.isNaN(input.height));
985
+ const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem && !Number.isNaN(elem)));
986
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
987
+ };
988
+ if (false === __is(input))
989
+ ((input, _path, _exceptionable = true) => {
990
+ const $guard = __typia.json.createAssertStringify.guard;
991
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
992
+ path: _path + ".id",
993
+ expected: "(string | undefined)",
994
+ value: input.id
995
+ }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
996
+ path: _path + ".preset",
997
+ expected: "(string | undefined)",
998
+ value: input.preset
999
+ }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
1000
+ path: _path + ".input",
1001
+ expected: "(__type | undefined)",
1002
+ value: input.input
1003
+ }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
1004
+ path: _path + ".input",
1005
+ expected: "(__type | undefined)",
1006
+ value: input.input
1007
+ }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
1008
+ path: _path + ".lang",
1009
+ expected: "(string | undefined)",
1010
+ value: input.lang
1011
+ }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
1012
+ path: _path + ".subtitle",
1013
+ expected: "(string | undefined)",
1014
+ value: input.subtitle
1015
+ }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
1016
+ path: _path + ".video",
1017
+ expected: "(__type.o1 | undefined)",
1018
+ value: input.video
1019
+ }, errorFactory)) && $ao2(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
1020
+ path: _path + ".video",
1021
+ expected: "(__type.o1 | undefined)",
1022
+ value: input.video
1023
+ }, errorFactory)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start) || $guard(_exceptionable, {
1024
+ path: _path + ".start",
1025
+ expected: "(number | undefined)",
1026
+ value: input.start
1027
+ }, errorFactory)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end) || $guard(_exceptionable, {
1028
+ path: _path + ".end",
1029
+ expected: "(number | undefined)",
1030
+ value: input.end
1031
+ }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
1032
+ path: _path + ".transcribe",
1033
+ expected: "(__type.o3 | undefined)",
1034
+ value: input.transcribe
1035
+ }, errorFactory)) && $ao4(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
1036
+ path: _path + ".transcribe",
1037
+ expected: "(__type.o3 | undefined)",
1038
+ value: input.transcribe
1039
+ }, errorFactory));
1040
+ const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
1041
+ path: _path + ".type",
1042
+ expected: "(string | undefined)",
1043
+ value: input.type
1044
+ }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
1045
+ path: _path + ".file",
1046
+ expected: "(null | string | undefined)",
1047
+ value: input.file
1048
+ }, errorFactory));
1049
+ const $ao2 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
1050
+ path: _path + ".crop",
1051
+ expected: "(__type.o2 | undefined)",
1052
+ value: input.crop
1053
+ }, errorFactory)) && $ao3(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
1054
+ path: _path + ".crop",
1055
+ expected: "(__type.o2 | undefined)",
1056
+ value: input.crop
1057
+ }, errorFactory);
1058
+ const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x) || $guard(_exceptionable, {
1059
+ path: _path + ".x",
1060
+ expected: "(number | undefined)",
1061
+ value: input.x
1062
+ }, errorFactory)) && (undefined === input.y || "number" === typeof input.y && !Number.isNaN(input.y) || $guard(_exceptionable, {
1063
+ path: _path + ".y",
1064
+ expected: "(number | undefined)",
1065
+ value: input.y
1066
+ }, errorFactory)) && (undefined === input.width || "number" === typeof input.width && !Number.isNaN(input.width) || $guard(_exceptionable, {
1067
+ path: _path + ".width",
1068
+ expected: "(number | undefined)",
1069
+ value: input.width
1070
+ }, errorFactory)) && (undefined === input.height || "number" === typeof input.height && !Number.isNaN(input.height) || $guard(_exceptionable, {
1071
+ path: _path + ".height",
1072
+ expected: "(number | undefined)",
1073
+ value: input.height
1074
+ }, errorFactory));
1075
+ const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
1076
+ path: _path + ".language",
1077
+ expected: "(string | undefined)",
1078
+ value: input.language
1079
+ }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
1080
+ path: _path + ".pan",
1081
+ expected: "(Array<number> | undefined)",
1082
+ value: input.pan
1083
+ }, errorFactory)) && input.pan.every((elem, _index1) => "number" === typeof elem && !Number.isNaN(elem) || $guard(_exceptionable, {
1084
+ path: _path + ".pan[" + _index1 + "]",
1085
+ expected: "number",
1086
+ value: elem
1087
+ }, errorFactory)) || $guard(_exceptionable, {
1088
+ path: _path + ".pan",
1089
+ expected: "(Array<number> | undefined)",
1090
+ value: input.pan
1091
+ }, errorFactory));
1092
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
1093
+ path: _path + "",
1094
+ expected: "RenderSceneObject",
1095
+ value: input
1096
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1097
+ path: _path + "",
1098
+ expected: "RenderSceneObject",
1099
+ value: input
1100
+ }, errorFactory);
1101
+ })(input, "$input", true);
1102
+ return input;
1103
+ }; const stringify = input => {
1104
+ const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
1105
+ const $io2 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io3(input.crop);
1106
+ const $io3 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
1107
+ const $io4 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
1108
+ const $string = __typia.json.createAssertStringify.string;
1109
+ const $tail = __typia.json.createAssertStringify.tail;
1110
+ const $so0 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so1(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so2(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so4(input.transcribe) : undefined}`}`)}}`;
1111
+ const $so1 = input => `{${$tail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? null !== input.file ? $string(input.file) : "null" : undefined}`}`)}}`;
1112
+ const $so2 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so3(input.crop) : undefined}`}`)}}`;
1113
+ const $so3 = input => `{${$tail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`;
1114
+ const $so4 = input => `{${$tail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? $string(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`;
1115
+ return $so0(input);
1116
+ }; return stringify(assert(input, errorFactory)); };