@nxtedition/types 23.0.30 → 23.0.32

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,17 +1,19 @@
1
1
  import __typia from "typia";
2
2
  export const isRenderProfile = input => {
3
- const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
3
+ const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io4(input.subtitle)));
4
4
  const $io1 = input => "string" === typeof input.engine;
5
5
  const $io2 = input => "string" === typeof input.language;
6
6
  const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
7
+ const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
7
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 && $io0(elem))) || "object" === typeof input && null !== input && $io0(input)));
8
9
  };
9
10
  export const assertRenderProfile = (input, errorFactory) => {
10
11
  const __is = input => {
11
- const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
12
+ const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io4(input.subtitle)));
12
13
  const $io1 = input => "string" === typeof input.engine;
13
14
  const $io2 = input => "string" === typeof input.language;
14
15
  const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
16
+ const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
15
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 && $io0(elem))) || "object" === typeof input && null !== input && $io0(input)));
16
18
  };
17
19
  if (false === __is(input))
@@ -57,7 +59,19 @@ export const assertRenderProfile = (input, errorFactory) => {
57
59
  path: _path + ".pick",
58
60
  expected: "(Array<string> | undefined)",
59
61
  value: input.pick
60
- }, errorFactory));
62
+ }, errorFactory)) && ((null !== input.subtitle || $guard(_exceptionable, {
63
+ path: _path + ".subtitle",
64
+ expected: "(SubtitleProfile | string | undefined)",
65
+ value: input.subtitle
66
+ }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) || $guard(_exceptionable, {
67
+ path: _path + ".subtitle",
68
+ expected: "(SubtitleProfile | string | undefined)",
69
+ value: input.subtitle
70
+ }, errorFactory)) && $ao4(input.subtitle, _path + ".subtitle", true && _exceptionable) || $guard(_exceptionable, {
71
+ path: _path + ".subtitle",
72
+ expected: "(SubtitleProfile | string | undefined)",
73
+ value: input.subtitle
74
+ }, errorFactory)));
61
75
  const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
62
76
  path: _path + ".engine",
63
77
  expected: "string",
@@ -73,6 +87,15 @@ export const assertRenderProfile = (input, errorFactory) => {
73
87
  expected: "(string | undefined)",
74
88
  value: input.pan
75
89
  }, errorFactory);
90
+ const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
91
+ path: _path + ".lang",
92
+ expected: "(string | undefined)",
93
+ value: input.lang
94
+ }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
95
+ path: _path + ".style",
96
+ expected: "(string | undefined)",
97
+ value: input.style
98
+ }, errorFactory));
76
99
  return (null !== input || $guard(true, {
77
100
  path: _path + "",
78
101
  expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
@@ -133,6 +156,11 @@ export const randomRenderProfile = generator => {
133
156
  pick: $pick([
134
157
  () => undefined,
135
158
  () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
159
+ ])(),
160
+ subtitle: $pick([
161
+ () => undefined,
162
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
163
+ () => $ro4(_recursive, _recursive ? 1 + _depth : _depth)
136
164
  ])()
137
165
  });
138
166
  const $ro1 = (_recursive = false, _depth = 0) => ({
@@ -147,6 +175,16 @@ export const randomRenderProfile = generator => {
147
175
  () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
148
176
  ])()
149
177
  });
178
+ const $ro4 = (_recursive = false, _depth = 0) => ({
179
+ lang: $pick([
180
+ () => undefined,
181
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
182
+ ])(),
183
+ style: $pick([
184
+ () => undefined,
185
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
186
+ ])()
187
+ });
150
188
  return $pick([
151
189
  () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
152
190
  () => (generator?.array ?? $generator.array)(() => $pick([
@@ -158,10 +196,11 @@ export const randomRenderProfile = generator => {
158
196
  };
159
197
  export const assertGuardRenderProfile = (input, errorFactory) => {
160
198
  const __is = input => {
161
- const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
199
+ const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io4(input.subtitle)));
162
200
  const $io1 = input => "string" === typeof input.engine;
163
201
  const $io2 = input => "string" === typeof input.language;
164
202
  const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
203
+ const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
165
204
  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 && $io0(elem))) || "object" === typeof input && null !== input && $io0(input)));
166
205
  };
167
206
  if (false === __is(input))
@@ -207,7 +246,19 @@ export const assertGuardRenderProfile = (input, errorFactory) => {
207
246
  path: _path + ".pick",
208
247
  expected: "(Array<string> | undefined)",
209
248
  value: input.pick
210
- }, errorFactory));
249
+ }, errorFactory)) && ((null !== input.subtitle || $guard(_exceptionable, {
250
+ path: _path + ".subtitle",
251
+ expected: "(SubtitleProfile | string | undefined)",
252
+ value: input.subtitle
253
+ }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) || $guard(_exceptionable, {
254
+ path: _path + ".subtitle",
255
+ expected: "(SubtitleProfile | string | undefined)",
256
+ value: input.subtitle
257
+ }, errorFactory)) && $ao4(input.subtitle, _path + ".subtitle", true && _exceptionable) || $guard(_exceptionable, {
258
+ path: _path + ".subtitle",
259
+ expected: "(SubtitleProfile | string | undefined)",
260
+ value: input.subtitle
261
+ }, errorFactory)));
211
262
  const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
212
263
  path: _path + ".engine",
213
264
  expected: "string",
@@ -223,6 +274,15 @@ export const assertGuardRenderProfile = (input, errorFactory) => {
223
274
  expected: "(string | undefined)",
224
275
  value: input.pan
225
276
  }, errorFactory);
277
+ const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
278
+ path: _path + ".lang",
279
+ expected: "(string | undefined)",
280
+ value: input.lang
281
+ }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
282
+ path: _path + ".style",
283
+ expected: "(string | undefined)",
284
+ value: input.style
285
+ }, errorFactory));
226
286
  return (null !== input || $guard(true, {
227
287
  path: _path + "",
228
288
  expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
@@ -262,11 +322,22 @@ export const stringifyRenderProfile = input => {
262
322
  const $io1 = input => "string" === typeof input.engine;
263
323
  const $io2 = input => "string" === typeof input.language;
264
324
  const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
325
+ const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
265
326
  const $string = __typia.json.createStringify.string;
266
327
  const $throws = __typia.json.createStringify.throws;
267
328
  const $tail = __typia.json.createStringify.tail;
268
- const $so0 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? `{"engine":${$string(input.transcribe.engine)}}` : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? `{"language":${$string(input.translate.language)}}` : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? $so3(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => $string(elem)).join(",")}]` : undefined},`}"format":${$string(input.format)}}`;
329
+ const $so0 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? `{"engine":${$string(input.transcribe.engine)}}` : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? `{"language":${$string(input.translate.language)}}` : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? $so3(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? (() => {
330
+ if ("string" === typeof input.subtitle)
331
+ return $string(input.subtitle);
332
+ if ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle))
333
+ return $so4(input.subtitle);
334
+ $throws({
335
+ expected: "(SubtitleProfile | string | undefined)",
336
+ value: input.subtitle
337
+ });
338
+ })() : undefined},`}"format":${$string(input.format)}}`;
269
339
  const $so3 = input => `{${$tail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? $string(input.pan) : undefined}`}`)}}`;
340
+ const $so4 = input => `{${$tail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? $string(input.style) : undefined}`}`)}}`;
270
341
  return (() => {
271
342
  if ("string" === typeof input)
272
343
  return $string(input);
@@ -291,10 +362,11 @@ export const stringifyRenderProfile = input => {
291
362
  };
292
363
  export const assertStringifyRenderProfile = (input, errorFactory) => { const assert = (input, errorFactory) => {
293
364
  const __is = input => {
294
- const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
365
+ const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io4(input.subtitle)));
295
366
  const $io1 = input => "string" === typeof input.engine;
296
367
  const $io2 = input => "string" === typeof input.language;
297
368
  const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
369
+ const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
298
370
  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 && $io0(elem))) || "object" === typeof input && null !== input && $io0(input)));
299
371
  };
300
372
  if (false === __is(input))
@@ -340,7 +412,19 @@ export const assertStringifyRenderProfile = (input, errorFactory) => { const ass
340
412
  path: _path + ".pick",
341
413
  expected: "(Array<string> | undefined)",
342
414
  value: input.pick
343
- }, errorFactory));
415
+ }, errorFactory)) && ((null !== input.subtitle || $guard(_exceptionable, {
416
+ path: _path + ".subtitle",
417
+ expected: "(SubtitleProfile | string | undefined)",
418
+ value: input.subtitle
419
+ }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) || $guard(_exceptionable, {
420
+ path: _path + ".subtitle",
421
+ expected: "(SubtitleProfile | string | undefined)",
422
+ value: input.subtitle
423
+ }, errorFactory)) && $ao4(input.subtitle, _path + ".subtitle", true && _exceptionable) || $guard(_exceptionable, {
424
+ path: _path + ".subtitle",
425
+ expected: "(SubtitleProfile | string | undefined)",
426
+ value: input.subtitle
427
+ }, errorFactory)));
344
428
  const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
345
429
  path: _path + ".engine",
346
430
  expected: "string",
@@ -356,6 +440,15 @@ export const assertStringifyRenderProfile = (input, errorFactory) => { const ass
356
440
  expected: "(string | undefined)",
357
441
  value: input.pan
358
442
  }, errorFactory);
443
+ const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
444
+ path: _path + ".lang",
445
+ expected: "(string | undefined)",
446
+ value: input.lang
447
+ }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
448
+ path: _path + ".style",
449
+ expected: "(string | undefined)",
450
+ value: input.style
451
+ }, errorFactory));
359
452
  return (null !== input || $guard(true, {
360
453
  path: _path + "",
361
454
  expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
@@ -395,11 +488,22 @@ export const assertStringifyRenderProfile = (input, errorFactory) => { const ass
395
488
  const $io1 = input => "string" === typeof input.engine;
396
489
  const $io2 = input => "string" === typeof input.language;
397
490
  const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
491
+ const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
398
492
  const $string = __typia.json.createAssertStringify.string;
399
493
  const $throws = __typia.json.createAssertStringify.throws;
400
494
  const $tail = __typia.json.createAssertStringify.tail;
401
- const $so0 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? `{"engine":${$string(input.transcribe.engine)}}` : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? `{"language":${$string(input.translate.language)}}` : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? $so3(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => $string(elem)).join(",")}]` : undefined},`}"format":${$string(input.format)}}`;
495
+ const $so0 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? `{"engine":${$string(input.transcribe.engine)}}` : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? `{"language":${$string(input.translate.language)}}` : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? $so3(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? (() => {
496
+ if ("string" === typeof input.subtitle)
497
+ return $string(input.subtitle);
498
+ if ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle))
499
+ return $so4(input.subtitle);
500
+ $throws({
501
+ expected: "(SubtitleProfile | string | undefined)",
502
+ value: input.subtitle
503
+ });
504
+ })() : undefined},`}"format":${$string(input.format)}}`;
402
505
  const $so3 = input => `{${$tail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? $string(input.pan) : undefined}`}`)}}`;
506
+ const $so4 = input => `{${$tail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? $string(input.style) : undefined}`}`)}}`;
403
507
  return (() => {
404
508
  if ("string" === typeof input)
405
509
  return $string(input);
@@ -423,18 +527,20 @@ export const assertStringifyRenderProfile = (input, errorFactory) => { const ass
423
527
  })();
424
528
  }; return stringify(assert(input, errorFactory)); };
425
529
  export const isRenderProfileObject = input => {
426
- const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
530
+ const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io4(input.subtitle)));
427
531
  const $io1 = input => "string" === typeof input.engine;
428
532
  const $io2 = input => "string" === typeof input.language;
429
533
  const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
534
+ const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
430
535
  return "object" === typeof input && null !== input && $io0(input);
431
536
  };
432
537
  export const assertRenderProfileObject = (input, errorFactory) => {
433
538
  const __is = input => {
434
- const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
539
+ const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io4(input.subtitle)));
435
540
  const $io1 = input => "string" === typeof input.engine;
436
541
  const $io2 = input => "string" === typeof input.language;
437
542
  const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
543
+ const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
438
544
  return "object" === typeof input && null !== input && $io0(input);
439
545
  };
440
546
  if (false === __is(input))
@@ -480,7 +586,19 @@ export const assertRenderProfileObject = (input, errorFactory) => {
480
586
  path: _path + ".pick",
481
587
  expected: "(Array<string> | undefined)",
482
588
  value: input.pick
483
- }, errorFactory));
589
+ }, errorFactory)) && ((null !== input.subtitle || $guard(_exceptionable, {
590
+ path: _path + ".subtitle",
591
+ expected: "(SubtitleProfile | string | undefined)",
592
+ value: input.subtitle
593
+ }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) || $guard(_exceptionable, {
594
+ path: _path + ".subtitle",
595
+ expected: "(SubtitleProfile | string | undefined)",
596
+ value: input.subtitle
597
+ }, errorFactory)) && $ao4(input.subtitle, _path + ".subtitle", true && _exceptionable) || $guard(_exceptionable, {
598
+ path: _path + ".subtitle",
599
+ expected: "(SubtitleProfile | string | undefined)",
600
+ value: input.subtitle
601
+ }, errorFactory)));
484
602
  const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
485
603
  path: _path + ".engine",
486
604
  expected: "string",
@@ -496,6 +614,15 @@ export const assertRenderProfileObject = (input, errorFactory) => {
496
614
  expected: "(string | undefined)",
497
615
  value: input.pan
498
616
  }, errorFactory);
617
+ const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
618
+ path: _path + ".lang",
619
+ expected: "(string | undefined)",
620
+ value: input.lang
621
+ }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
622
+ path: _path + ".style",
623
+ expected: "(string | undefined)",
624
+ value: input.style
625
+ }, errorFactory));
499
626
  return ("object" === typeof input && null !== input || $guard(true, {
500
627
  path: _path + "",
501
628
  expected: "RenderProfileObject",
@@ -532,6 +659,11 @@ export const randomRenderProfileObject = generator => {
532
659
  pick: $pick([
533
660
  () => undefined,
534
661
  () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
662
+ ])(),
663
+ subtitle: $pick([
664
+ () => undefined,
665
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
666
+ () => $ro4(_recursive, _recursive ? 1 + _depth : _depth)
535
667
  ])()
536
668
  });
537
669
  const $ro1 = (_recursive = false, _depth = 0) => ({
@@ -546,14 +678,25 @@ export const randomRenderProfileObject = generator => {
546
678
  () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
547
679
  ])()
548
680
  });
681
+ const $ro4 = (_recursive = false, _depth = 0) => ({
682
+ lang: $pick([
683
+ () => undefined,
684
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
685
+ ])(),
686
+ style: $pick([
687
+ () => undefined,
688
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
689
+ ])()
690
+ });
549
691
  return $ro0();
550
692
  };
551
693
  export const assertGuardRenderProfileObject = (input, errorFactory) => {
552
694
  const __is = input => {
553
- const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
695
+ const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io4(input.subtitle)));
554
696
  const $io1 = input => "string" === typeof input.engine;
555
697
  const $io2 = input => "string" === typeof input.language;
556
698
  const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
699
+ const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
557
700
  return "object" === typeof input && null !== input && $io0(input);
558
701
  };
559
702
  if (false === __is(input))
@@ -599,7 +742,19 @@ export const assertGuardRenderProfileObject = (input, errorFactory) => {
599
742
  path: _path + ".pick",
600
743
  expected: "(Array<string> | undefined)",
601
744
  value: input.pick
602
- }, errorFactory));
745
+ }, errorFactory)) && ((null !== input.subtitle || $guard(_exceptionable, {
746
+ path: _path + ".subtitle",
747
+ expected: "(SubtitleProfile | string | undefined)",
748
+ value: input.subtitle
749
+ }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) || $guard(_exceptionable, {
750
+ path: _path + ".subtitle",
751
+ expected: "(SubtitleProfile | string | undefined)",
752
+ value: input.subtitle
753
+ }, errorFactory)) && $ao4(input.subtitle, _path + ".subtitle", true && _exceptionable) || $guard(_exceptionable, {
754
+ path: _path + ".subtitle",
755
+ expected: "(SubtitleProfile | string | undefined)",
756
+ value: input.subtitle
757
+ }, errorFactory)));
603
758
  const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
604
759
  path: _path + ".engine",
605
760
  expected: "string",
@@ -615,6 +770,15 @@ export const assertGuardRenderProfileObject = (input, errorFactory) => {
615
770
  expected: "(string | undefined)",
616
771
  value: input.pan
617
772
  }, errorFactory);
773
+ const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
774
+ path: _path + ".lang",
775
+ expected: "(string | undefined)",
776
+ value: input.lang
777
+ }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
778
+ path: _path + ".style",
779
+ expected: "(string | undefined)",
780
+ value: input.style
781
+ }, errorFactory));
618
782
  return ("object" === typeof input && null !== input || $guard(true, {
619
783
  path: _path + "",
620
784
  expected: "RenderProfileObject",
@@ -630,18 +794,31 @@ export const stringifyRenderProfileObject = input => {
630
794
  const $io1 = input => "string" === typeof input.engine;
631
795
  const $io2 = input => "string" === typeof input.language;
632
796
  const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
797
+ const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
633
798
  const $string = __typia.json.createStringify.string;
799
+ const $throws = __typia.json.createStringify.throws;
634
800
  const $tail = __typia.json.createStringify.tail;
635
- const $so0 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? `{"engine":${$string(input.transcribe.engine)}}` : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? `{"language":${$string(input.translate.language)}}` : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? $so3(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => $string(elem)).join(",")}]` : undefined},`}"format":${$string(input.format)}}`;
801
+ const $so0 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? `{"engine":${$string(input.transcribe.engine)}}` : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? `{"language":${$string(input.translate.language)}}` : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? $so3(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? (() => {
802
+ if ("string" === typeof input.subtitle)
803
+ return $string(input.subtitle);
804
+ if ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle))
805
+ return $so4(input.subtitle);
806
+ $throws({
807
+ expected: "(SubtitleProfile | string | undefined)",
808
+ value: input.subtitle
809
+ });
810
+ })() : undefined},`}"format":${$string(input.format)}}`;
636
811
  const $so3 = input => `{${$tail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? $string(input.pan) : undefined}`}`)}}`;
812
+ const $so4 = input => `{${$tail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? $string(input.style) : undefined}`}`)}}`;
637
813
  return $so0(input);
638
814
  };
639
815
  export const assertStringifyRenderProfileObject = (input, errorFactory) => { const assert = (input, errorFactory) => {
640
816
  const __is = input => {
641
- const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
817
+ const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io4(input.subtitle)));
642
818
  const $io1 = input => "string" === typeof input.engine;
643
819
  const $io2 = input => "string" === typeof input.language;
644
820
  const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
821
+ const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
645
822
  return "object" === typeof input && null !== input && $io0(input);
646
823
  };
647
824
  if (false === __is(input))
@@ -687,7 +864,19 @@ export const assertStringifyRenderProfileObject = (input, errorFactory) => { con
687
864
  path: _path + ".pick",
688
865
  expected: "(Array<string> | undefined)",
689
866
  value: input.pick
690
- }, errorFactory));
867
+ }, errorFactory)) && ((null !== input.subtitle || $guard(_exceptionable, {
868
+ path: _path + ".subtitle",
869
+ expected: "(SubtitleProfile | string | undefined)",
870
+ value: input.subtitle
871
+ }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) || $guard(_exceptionable, {
872
+ path: _path + ".subtitle",
873
+ expected: "(SubtitleProfile | string | undefined)",
874
+ value: input.subtitle
875
+ }, errorFactory)) && $ao4(input.subtitle, _path + ".subtitle", true && _exceptionable) || $guard(_exceptionable, {
876
+ path: _path + ".subtitle",
877
+ expected: "(SubtitleProfile | string | undefined)",
878
+ value: input.subtitle
879
+ }, errorFactory)));
691
880
  const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
692
881
  path: _path + ".engine",
693
882
  expected: "string",
@@ -703,6 +892,15 @@ export const assertStringifyRenderProfileObject = (input, errorFactory) => { con
703
892
  expected: "(string | undefined)",
704
893
  value: input.pan
705
894
  }, errorFactory);
895
+ const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
896
+ path: _path + ".lang",
897
+ expected: "(string | undefined)",
898
+ value: input.lang
899
+ }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
900
+ path: _path + ".style",
901
+ expected: "(string | undefined)",
902
+ value: input.style
903
+ }, errorFactory));
706
904
  return ("object" === typeof input && null !== input || $guard(true, {
707
905
  path: _path + "",
708
906
  expected: "RenderProfileObject",
@@ -718,9 +916,137 @@ export const assertStringifyRenderProfileObject = (input, errorFactory) => { con
718
916
  const $io1 = input => "string" === typeof input.engine;
719
917
  const $io2 = input => "string" === typeof input.language;
720
918
  const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
919
+ const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
721
920
  const $string = __typia.json.createAssertStringify.string;
921
+ const $throws = __typia.json.createAssertStringify.throws;
722
922
  const $tail = __typia.json.createAssertStringify.tail;
723
- const $so0 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? `{"engine":${$string(input.transcribe.engine)}}` : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? `{"language":${$string(input.translate.language)}}` : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? $so3(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => $string(elem)).join(",")}]` : undefined},`}"format":${$string(input.format)}}`;
923
+ const $so0 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? `{"engine":${$string(input.transcribe.engine)}}` : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? `{"language":${$string(input.translate.language)}}` : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? $so3(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? (() => {
924
+ if ("string" === typeof input.subtitle)
925
+ return $string(input.subtitle);
926
+ if ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle))
927
+ return $so4(input.subtitle);
928
+ $throws({
929
+ expected: "(SubtitleProfile | string | undefined)",
930
+ value: input.subtitle
931
+ });
932
+ })() : undefined},`}"format":${$string(input.format)}}`;
724
933
  const $so3 = input => `{${$tail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? $string(input.pan) : undefined}`}`)}}`;
934
+ const $so4 = input => `{${$tail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? $string(input.style) : undefined}`}`)}}`;
935
+ return $so0(input);
936
+ }; return stringify(assert(input, errorFactory)); };
937
+ export const isSubtitleProfile = input => {
938
+ const $io0 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
939
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
940
+ };
941
+ export const assertSubtitleProfile = (input, errorFactory) => {
942
+ const __is = input => {
943
+ const $io0 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
944
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
945
+ };
946
+ if (false === __is(input))
947
+ ((input, _path, _exceptionable = true) => {
948
+ const $guard = __typia.createAssert.guard;
949
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
950
+ path: _path + ".lang",
951
+ expected: "(string | undefined)",
952
+ value: input.lang
953
+ }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
954
+ path: _path + ".style",
955
+ expected: "(string | undefined)",
956
+ value: input.style
957
+ }, errorFactory));
958
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
959
+ path: _path + "",
960
+ expected: "SubtitleProfile",
961
+ value: input
962
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
963
+ path: _path + "",
964
+ expected: "SubtitleProfile",
965
+ value: input
966
+ }, errorFactory);
967
+ })(input, "$input", true);
968
+ return input;
969
+ };
970
+ export const randomSubtitleProfile = generator => {
971
+ const $generator = __typia.createRandom.generator;
972
+ const $pick = __typia.createRandom.pick;
973
+ const $ro0 = (_recursive = false, _depth = 0) => ({
974
+ lang: $pick([
975
+ () => undefined,
976
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
977
+ ])(),
978
+ style: $pick([
979
+ () => undefined,
980
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
981
+ ])()
982
+ });
983
+ return $ro0();
984
+ };
985
+ export const assertGuardSubtitleProfile = (input, errorFactory) => {
986
+ const __is = input => {
987
+ const $io0 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
988
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
989
+ };
990
+ if (false === __is(input))
991
+ ((input, _path, _exceptionable = true) => {
992
+ const $guard = __typia.createAssertGuard.guard;
993
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
994
+ path: _path + ".lang",
995
+ expected: "(string | undefined)",
996
+ value: input.lang
997
+ }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
998
+ path: _path + ".style",
999
+ expected: "(string | undefined)",
1000
+ value: input.style
1001
+ }, errorFactory));
1002
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
1003
+ path: _path + "",
1004
+ expected: "SubtitleProfile",
1005
+ value: input
1006
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1007
+ path: _path + "",
1008
+ expected: "SubtitleProfile",
1009
+ value: input
1010
+ }, errorFactory);
1011
+ })(input, "$input", true);
1012
+ };
1013
+ export const stringifySubtitleProfile = input => {
1014
+ const $string = __typia.json.createStringify.string;
1015
+ const $tail = __typia.json.createStringify.tail;
1016
+ const $so0 = input => `{${$tail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? $string(input.style) : undefined}`}`)}}`;
1017
+ return $so0(input);
1018
+ };
1019
+ export const assertStringifySubtitleProfile = (input, errorFactory) => { const assert = (input, errorFactory) => {
1020
+ const __is = input => {
1021
+ const $io0 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
1022
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1023
+ };
1024
+ if (false === __is(input))
1025
+ ((input, _path, _exceptionable = true) => {
1026
+ const $guard = __typia.json.createAssertStringify.guard;
1027
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
1028
+ path: _path + ".lang",
1029
+ expected: "(string | undefined)",
1030
+ value: input.lang
1031
+ }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
1032
+ path: _path + ".style",
1033
+ expected: "(string | undefined)",
1034
+ value: input.style
1035
+ }, errorFactory));
1036
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
1037
+ path: _path + "",
1038
+ expected: "SubtitleProfile",
1039
+ value: input
1040
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1041
+ path: _path + "",
1042
+ expected: "SubtitleProfile",
1043
+ value: input
1044
+ }, errorFactory);
1045
+ })(input, "$input", true);
1046
+ return input;
1047
+ }; const stringify = input => {
1048
+ const $string = __typia.json.createAssertStringify.string;
1049
+ const $tail = __typia.json.createAssertStringify.tail;
1050
+ const $so0 = input => `{${$tail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? $string(input.style) : undefined}`}`)}}`;
725
1051
  return $so0(input);
726
1052
  }; return stringify(assert(input, errorFactory)); };