@nxtedition/types 23.0.40 → 23.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/dist/app.d.ts +0 -33
  2. package/dist/app.js +1 -655
  3. package/dist/common/block.d.ts +6 -13
  4. package/dist/common/block.js +597 -1607
  5. package/dist/common/clone.d.ts +0 -19
  6. package/dist/common/clone.js +1 -602
  7. package/dist/common/date.d.ts +0 -7
  8. package/dist/common/date.js +1 -59
  9. package/dist/common/error.d.ts +0 -7
  10. package/dist/common/error.js +1 -404
  11. package/dist/common/file.d.ts +1 -21
  12. package/dist/common/file.js +782 -2521
  13. package/dist/common/index.d.ts +20 -26
  14. package/dist/common/index.js +20 -134
  15. package/dist/common/location.d.ts +0 -6
  16. package/dist/common/location.js +73 -238
  17. package/dist/common/lock.d.ts +1 -8
  18. package/dist/common/lock.js +1 -211
  19. package/dist/common/media.d.ts +0 -7
  20. package/dist/common/media.js +1 -83
  21. package/dist/common/nxtpression.d.ts +2 -9
  22. package/dist/common/nxtpression.js +1 -277
  23. package/dist/common/pipeline.d.ts +0 -7
  24. package/dist/common/pipeline.js +1 -97
  25. package/dist/common/promoted-tag.d.ts +0 -7
  26. package/dist/common/promoted-tag.js +1 -147
  27. package/dist/common/render-preset.d.ts +4 -17
  28. package/dist/common/render-preset.js +1 -1202
  29. package/dist/common/render-profile.d.ts +3 -19
  30. package/dist/common/render-profile.js +1 -1052
  31. package/dist/common/render-query.d.ts +2 -9
  32. package/dist/common/render-query.js +1 -1843
  33. package/dist/common/render-scene.d.ts +3 -16
  34. package/dist/common/render-scene.js +1 -2408
  35. package/dist/common/rule.d.ts +1 -7
  36. package/dist/common/rule.js +84 -254
  37. package/dist/common/search.d.ts +0 -25
  38. package/dist/common/search.js +1 -1591
  39. package/dist/common/settings.d.ts +113 -125
  40. package/dist/common/settings.js +1 -7504
  41. package/dist/common/subtitle-style.d.ts +25 -0
  42. package/dist/common/user-notification.d.ts +0 -7
  43. package/dist/common/user-notification.js +1 -85
  44. package/dist/index.d.ts +5 -108
  45. package/dist/index.js +5 -469
  46. package/dist/nxtpression.d.ts +538 -337
  47. package/dist/nxtpression.js +1 -323
  48. package/dist/records/domains/asset.d.ts +106 -0
  49. package/dist/records/domains/bundle.d.ts +12 -0
  50. package/dist/records/domains/bundle.js +1 -0
  51. package/dist/records/domains/clone.d.ts +7 -0
  52. package/dist/records/domains/clone.js +1 -0
  53. package/dist/records/domains/comment-reaction.d.ts +8 -0
  54. package/dist/records/domains/comment-reaction.js +1 -0
  55. package/dist/records/domains/comment-read-mark.d.ts +8 -0
  56. package/dist/records/domains/comment-read-mark.js +1 -0
  57. package/dist/records/domains/comment.d.ts +81 -0
  58. package/dist/records/domains/comment.js +19 -0
  59. package/dist/records/domains/connection.d.ts +77 -0
  60. package/dist/records/domains/connection.js +1 -0
  61. package/dist/records/domains/contact.d.ts +9 -0
  62. package/dist/records/domains/contact.js +1 -0
  63. package/dist/records/domains/deepstream.d.ts +8 -0
  64. package/dist/records/domains/deepstream.js +1 -0
  65. package/dist/records/domains/design.d.ts +11 -0
  66. package/dist/records/domains/design.js +1 -0
  67. package/dist/records/domains/edit.d.ts +10 -0
  68. package/dist/records/domains/edit.js +1 -0
  69. package/dist/records/domains/event.d.ts +66 -0
  70. package/dist/records/domains/event.js +1 -0
  71. package/dist/records/domains/file.d.ts +26 -0
  72. package/dist/records/domains/file.js +1 -0
  73. package/dist/records/domains/general.d.ts +41 -0
  74. package/dist/records/domains/general.js +1 -0
  75. package/dist/records/domains/index.d.ts +77 -0
  76. package/dist/records/domains/index.js +38 -0
  77. package/dist/records/domains/media.d.ts +64 -0
  78. package/dist/records/domains/media.js +1 -0
  79. package/dist/records/domains/monitor.d.ts +116 -0
  80. package/dist/records/domains/monitor.js +1 -0
  81. package/dist/records/domains/panel.d.ts +55 -0
  82. package/dist/records/domains/panel.js +1 -0
  83. package/dist/records/domains/permission.d.ts +25 -0
  84. package/dist/records/domains/permission.js +2 -0
  85. package/dist/records/domains/pipeline-preset.d.ts +10 -0
  86. package/dist/records/domains/pipeline-preset.js +1 -0
  87. package/dist/records/domains/pipeline.d.ts +17 -0
  88. package/dist/records/domains/pipeline.js +1 -0
  89. package/dist/records/domains/planning.d.ts +14 -0
  90. package/dist/records/domains/planning.js +1 -0
  91. package/dist/records/domains/prompter.d.ts +18 -0
  92. package/dist/records/domains/prompter.js +1 -0
  93. package/dist/records/domains/publish.d.ts +149 -0
  94. package/dist/records/domains/publish.js +1 -0
  95. package/dist/records/domains/published.d.ts +12 -0
  96. package/dist/records/domains/published.js +1 -0
  97. package/dist/records/domains/render-preset.d.ts +5 -0
  98. package/dist/records/domains/render-preset.js +1 -0
  99. package/dist/records/domains/render.d.ts +115 -0
  100. package/dist/records/domains/render.js +1 -0
  101. package/dist/records/domains/revs.d.ts +6 -0
  102. package/dist/records/domains/revs.js +1 -0
  103. package/dist/records/domains/role.d.ts +6 -0
  104. package/dist/records/domains/role.js +1 -0
  105. package/dist/records/domains/script.d.ts +101 -0
  106. package/dist/records/domains/script.js +1 -0
  107. package/dist/records/domains/search.d.ts +23 -0
  108. package/dist/records/domains/search.js +1 -0
  109. package/dist/records/domains/settings.d.ts +5 -0
  110. package/dist/records/domains/settings.js +1 -0
  111. package/dist/records/domains/storyboard.d.ts +10 -0
  112. package/dist/records/domains/storyboard.js +1 -0
  113. package/dist/records/domains/subtitle-style.d.ts +13 -0
  114. package/dist/records/domains/subtitle-style.js +1 -0
  115. package/dist/records/domains/subtitle.d.ts +12 -0
  116. package/dist/records/domains/subtitle.js +1 -0
  117. package/dist/records/domains/template.d.ts +11 -0
  118. package/dist/records/domains/template.js +1 -0
  119. package/dist/records/domains/user-notification-status.d.ts +30 -0
  120. package/dist/records/domains/user-notification-status.js +1 -0
  121. package/dist/records/domains/user-notification.d.ts +69 -0
  122. package/dist/records/domains/user-notification.js +1 -0
  123. package/dist/records/domains/user.d.ts +23 -0
  124. package/dist/records/domains/user.js +1 -0
  125. package/dist/records/exact/asset.d.ts +83 -0
  126. package/dist/records/exact/asset.js +1 -0
  127. package/dist/records/exact/index.d.ts +36 -0
  128. package/dist/records/exact/index.js +4 -0
  129. package/dist/records/exact/media.d.ts +52 -0
  130. package/dist/records/exact/media.js +1 -0
  131. package/dist/records/exact/monitor.d.ts +46 -0
  132. package/dist/records/exact/monitor.js +1 -0
  133. package/dist/records/exact/storage.d.ts +32 -0
  134. package/dist/records/exact/storage.js +1 -0
  135. package/dist/records/index.d.ts +10 -0
  136. package/dist/records/index.js +2 -0
  137. package/dist/records/utils.d.ts +7 -0
  138. package/dist/records/utils.js +1 -0
  139. package/dist/records/utils.tds.d.ts +1 -0
  140. package/dist/records/utils.tds.js +7 -0
  141. package/dist/records/validate/assert-guard.d.ts +4 -0
  142. package/dist/records/validate/assert-guard.js +16068 -0
  143. package/dist/records/validate/assert.d.ts +4 -0
  144. package/dist/records/validate/assert.js +16198 -0
  145. package/dist/records/validate/is.d.ts +4 -0
  146. package/dist/records/validate/is.js +1027 -0
  147. package/dist/records/validate/schemas.d.ts +9 -0
  148. package/dist/records/validate/schemas.js +12862 -0
  149. package/dist/records/validate/stringify.d.ts +4 -0
  150. package/dist/records/validate/stringify.js +1915 -0
  151. package/dist/records/validate/utils.d.ts +15 -0
  152. package/dist/records/validate/utils.js +26 -0
  153. package/dist/records/validate/validate-equals.d.ts +5 -0
  154. package/dist/records/validate/validate-equals.js +24363 -0
  155. package/dist/records/validate/validate.d.ts +5 -0
  156. package/dist/records/validate/validate.js +15127 -0
  157. package/dist/rpc.d.ts +5 -15
  158. package/dist/rpc.js +126 -511
  159. package/dist/tsdoc-metadata.json +1 -1
  160. package/package.json +25 -15
  161. package/dist/asset.d.ts +0 -72
  162. package/dist/domains/asset.d.ts +0 -227
  163. package/dist/domains/asset.js +0 -2672
  164. package/dist/domains/bundle.d.ts +0 -25
  165. package/dist/domains/bundle.js +0 -512
  166. package/dist/domains/clone.d.ts +0 -14
  167. package/dist/domains/clone.js +0 -192
  168. package/dist/domains/comment-reaction.d.ts +0 -15
  169. package/dist/domains/comment-reaction.js +0 -115
  170. package/dist/domains/comment-read-mark.d.ts +0 -15
  171. package/dist/domains/comment-read-mark.js +0 -115
  172. package/dist/domains/comment.d.ts +0 -153
  173. package/dist/domains/comment.js +0 -5906
  174. package/dist/domains/connection.d.ts +0 -141
  175. package/dist/domains/connection.js +0 -5860
  176. package/dist/domains/contact.d.ts +0 -16
  177. package/dist/domains/contact.js +0 -149
  178. package/dist/domains/deepstream.d.ts +0 -14
  179. package/dist/domains/deepstream.js +0 -139
  180. package/dist/domains/design.d.ts +0 -24
  181. package/dist/domains/design.js +0 -303
  182. package/dist/domains/edit.d.ts +0 -17
  183. package/dist/domains/edit.js +0 -224
  184. package/dist/domains/event.d.ts +0 -170
  185. package/dist/domains/event.js +0 -2779
  186. package/dist/domains/file.d.ts +0 -51
  187. package/dist/domains/file.js +0 -2506
  188. package/dist/domains/general.d.ts +0 -84
  189. package/dist/domains/general.js +0 -906
  190. package/dist/domains/index.d.ts +0 -75
  191. package/dist/domains/index.js +0 -37
  192. package/dist/domains/media.d.ts +0 -113
  193. package/dist/domains/media.js +0 -4642
  194. package/dist/domains/monitor.d.ts +0 -416
  195. package/dist/domains/monitor.js +0 -6382
  196. package/dist/domains/panel.d.ts +0 -371
  197. package/dist/domains/panel.js +0 -3198
  198. package/dist/domains/permission.d.ts +0 -61
  199. package/dist/domains/permission.js +0 -1926
  200. package/dist/domains/pipeline-preset.d.ts +0 -17
  201. package/dist/domains/pipeline-preset.js +0 -236
  202. package/dist/domains/pipeline.d.ts +0 -30
  203. package/dist/domains/pipeline.js +0 -460
  204. package/dist/domains/planning.d.ts +0 -33
  205. package/dist/domains/planning.js +0 -324
  206. package/dist/domains/publish.d.ts +0 -1452
  207. package/dist/domains/publish.js +0 -35415
  208. package/dist/domains/published.d.ts +0 -19
  209. package/dist/domains/published.js +0 -204
  210. package/dist/domains/render-preset.d.ts +0 -4
  211. package/dist/domains/render.d.ts +0 -158
  212. package/dist/domains/render.js +0 -4452
  213. package/dist/domains/revs.d.ts +0 -13
  214. package/dist/domains/revs.js +0 -125
  215. package/dist/domains/role.d.ts +0 -13
  216. package/dist/domains/role.js +0 -119
  217. package/dist/domains/script.d.ts +0 -263
  218. package/dist/domains/script.js +0 -6777
  219. package/dist/domains/search.d.ts +0 -16
  220. package/dist/domains/search.js +0 -168
  221. package/dist/domains/settings.d.ts +0 -12
  222. package/dist/domains/settings.js +0 -7180
  223. package/dist/domains/storyboard.d.ts +0 -14
  224. package/dist/domains/storyboard.js +0 -125
  225. package/dist/domains/subtitle-style.d.ts +0 -42
  226. package/dist/domains/subtitle-style.js +0 -574
  227. package/dist/domains/subtitle.d.ts +0 -19
  228. package/dist/domains/subtitle.js +0 -212
  229. package/dist/domains/template.d.ts +0 -23
  230. package/dist/domains/template.js +0 -372
  231. package/dist/domains/user-notification-status.d.ts +0 -55
  232. package/dist/domains/user-notification-status.js +0 -715
  233. package/dist/domains/user-notification.d.ts +0 -118
  234. package/dist/domains/user-notification.js +0 -3040
  235. package/dist/domains/user.d.ts +0 -48
  236. package/dist/domains/user.js +0 -481
  237. package/dist/monitor.d.ts +0 -71
  238. package/dist/monitor.js +0 -1942
  239. package/dist/schema.json +0 -9836
  240. package/dist/storage.d.ts +0 -51
  241. package/dist/storage.js +0 -1036
  242. /package/dist/{asset.js → common/subtitle-style.js} +0 -0
  243. /package/dist/{domains/render-preset.js → records/domains/asset.js} +0 -0
@@ -1,2408 +1 @@
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.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io2(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io6(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) && $io8(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 => Object.keys(input).every(key => {
6
- const value = input[key];
7
- if (undefined === value)
8
- return true;
9
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
10
- });
11
- const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
12
- const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io5(input.previewSettings));
13
- const $io5 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
14
- const $io6 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io7(input.crop);
15
- const $io7 = 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 $io8 = 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
- export const assertRenderScene = (input, errorFactory) => {
20
- const __is = input => {
21
- 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.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io2(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io6(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) && $io8(input.transcribe));
22
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
23
- const $io2 = input => Object.keys(input).every(key => {
24
- const value = input[key];
25
- if (undefined === value)
26
- return true;
27
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
28
- });
29
- const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
30
- const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io5(input.previewSettings));
31
- const $io5 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
32
- const $io6 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io7(input.crop);
33
- const $io7 = 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);
34
- const $io8 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
35
- 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)));
36
- };
37
- if (false === __is(input))
38
- ((input, _path, _exceptionable = true) => {
39
- const $guard = __typia.createAssert.guard;
40
- const $join = __typia.createAssert.join;
41
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
42
- path: _path + ".id",
43
- expected: "(string | undefined)",
44
- value: input.id
45
- }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
46
- path: _path + ".preset",
47
- expected: "(string | undefined)",
48
- value: input.preset
49
- }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
50
- path: _path + ".input",
51
- expected: "(__type | undefined)",
52
- value: input.input
53
- }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
54
- path: _path + ".input",
55
- expected: "(__type | undefined)",
56
- value: input.input
57
- }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
58
- path: _path + ".lang",
59
- expected: "(string | undefined)",
60
- value: input.lang
61
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
62
- path: _path + ".subtitle",
63
- expected: "(string | undefined)",
64
- value: input.subtitle
65
- }, errorFactory)) && (undefined === input.subtitleTracks || ("object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) || $guard(_exceptionable, {
66
- path: _path + ".subtitleTracks",
67
- expected: "(__type.o1 | undefined)",
68
- value: input.subtitleTracks
69
- }, errorFactory)) && $ao2(input.subtitleTracks, _path + ".subtitleTracks", true && _exceptionable) || $guard(_exceptionable, {
70
- path: _path + ".subtitleTracks",
71
- expected: "(__type.o1 | undefined)",
72
- value: input.subtitleTracks
73
- }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
74
- path: _path + ".video",
75
- expected: "(__type.o4 | undefined)",
76
- value: input.video
77
- }, errorFactory)) && $ao6(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
78
- path: _path + ".video",
79
- expected: "(__type.o4 | undefined)",
80
- value: input.video
81
- }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
82
- path: _path + ".start",
83
- expected: "(number | undefined)",
84
- value: input.start
85
- }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
86
- path: _path + ".end",
87
- expected: "(number | undefined)",
88
- value: input.end
89
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
90
- path: _path + ".transcribe",
91
- expected: "(__type.o6 | undefined)",
92
- value: input.transcribe
93
- }, errorFactory)) && $ao8(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
94
- path: _path + ".transcribe",
95
- expected: "(__type.o6 | undefined)",
96
- value: input.transcribe
97
- }, errorFactory));
98
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
99
- path: _path + ".type",
100
- expected: "(string | undefined)",
101
- value: input.type
102
- }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
103
- path: _path + ".file",
104
- expected: "(null | string | undefined)",
105
- value: input.file
106
- }, errorFactory));
107
- const $ao2 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
108
- const value = input[key];
109
- if (undefined === value)
110
- return true;
111
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
112
- path: _path + $join(key),
113
- expected: "__type.o2",
114
- value: value
115
- }, errorFactory)) && $ao3(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
116
- path: _path + $join(key),
117
- expected: "__type.o2",
118
- value: value
119
- }, errorFactory);
120
- });
121
- const $ao3 = (input, _path, _exceptionable = true) => (null === input.style || undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
122
- path: _path + ".style",
123
- expected: "(null | string | undefined)",
124
- value: input.style
125
- }, errorFactory)) && (undefined === input.styleOverrides || ("object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) || $guard(_exceptionable, {
126
- path: _path + ".styleOverrides",
127
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
128
- value: input.styleOverrides
129
- }, errorFactory)) && $ao4(input.styleOverrides, _path + ".styleOverrides", true && _exceptionable) || $guard(_exceptionable, {
130
- path: _path + ".styleOverrides",
131
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
132
- value: input.styleOverrides
133
- }, errorFactory));
134
- const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
135
- path: _path + ".name",
136
- expected: "(string | undefined)",
137
- value: input.name
138
- }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
139
- path: _path + ".fontname",
140
- expected: "(string | undefined)",
141
- value: input.fontname
142
- }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
143
- path: _path + ".fontsize",
144
- expected: "(string | undefined)",
145
- value: input.fontsize
146
- }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
147
- path: _path + ".primaryColour",
148
- expected: "(string | undefined)",
149
- value: input.primaryColour
150
- }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
151
- path: _path + ".secondaryColour",
152
- expected: "(string | undefined)",
153
- value: input.secondaryColour
154
- }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
155
- path: _path + ".outlineColour",
156
- expected: "(string | undefined)",
157
- value: input.outlineColour
158
- }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
159
- path: _path + ".backColour",
160
- expected: "(string | undefined)",
161
- value: input.backColour
162
- }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
163
- path: _path + ".bold",
164
- expected: "(string | undefined)",
165
- value: input.bold
166
- }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
167
- path: _path + ".italic",
168
- expected: "(string | undefined)",
169
- value: input.italic
170
- }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
171
- path: _path + ".underline",
172
- expected: "(string | undefined)",
173
- value: input.underline
174
- }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
175
- path: _path + ".strikeOut",
176
- expected: "(string | undefined)",
177
- value: input.strikeOut
178
- }, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
179
- path: _path + ".scaleX",
180
- expected: "(string | undefined)",
181
- value: input.scaleX
182
- }, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
183
- path: _path + ".scaleY",
184
- expected: "(string | undefined)",
185
- value: input.scaleY
186
- }, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
187
- path: _path + ".spacing",
188
- expected: "(string | undefined)",
189
- value: input.spacing
190
- }, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
191
- path: _path + ".angle",
192
- expected: "(string | undefined)",
193
- value: input.angle
194
- }, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
195
- path: _path + ".borderStyle",
196
- expected: "(string | undefined)",
197
- value: input.borderStyle
198
- }, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
199
- path: _path + ".outline",
200
- expected: "(string | undefined)",
201
- value: input.outline
202
- }, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
203
- path: _path + ".shadow",
204
- expected: "(string | undefined)",
205
- value: input.shadow
206
- }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
207
- path: _path + ".alignment",
208
- expected: "(string | undefined)",
209
- value: input.alignment
210
- }, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
211
- path: _path + ".marginL",
212
- expected: "(string | undefined)",
213
- value: input.marginL
214
- }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
215
- path: _path + ".marginR",
216
- expected: "(string | undefined)",
217
- value: input.marginR
218
- }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
219
- path: _path + ".marginV",
220
- expected: "(string | undefined)",
221
- value: input.marginV
222
- }, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
223
- path: _path + ".encoding",
224
- expected: "(string | undefined)",
225
- value: input.encoding
226
- }, errorFactory)) && (undefined === input.previewSettings || ("object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) || $guard(_exceptionable, {
227
- path: _path + ".previewSettings",
228
- expected: "(__type.o3 | undefined)",
229
- value: input.previewSettings
230
- }, errorFactory)) && $ao5(input.previewSettings, _path + ".previewSettings", true && _exceptionable) || $guard(_exceptionable, {
231
- path: _path + ".previewSettings",
232
- expected: "(__type.o3 | undefined)",
233
- value: input.previewSettings
234
- }, errorFactory));
235
- const $ao5 = (input, _path, _exceptionable = true) => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio || $guard(_exceptionable, {
236
- path: _path + ".aspectRatio",
237
- expected: "(string | undefined)",
238
- value: input.aspectRatio
239
- }, errorFactory)) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId || $guard(_exceptionable, {
240
- path: _path + ".backgroundAssetId",
241
- expected: "(string | undefined)",
242
- value: input.backgroundAssetId
243
- }, errorFactory)) && (undefined === input.text || "string" === typeof input.text || $guard(_exceptionable, {
244
- path: _path + ".text",
245
- expected: "(string | undefined)",
246
- value: input.text
247
- }, errorFactory));
248
- const $ao6 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
249
- path: _path + ".crop",
250
- expected: "(__type.o5 | undefined)",
251
- value: input.crop
252
- }, errorFactory)) && $ao7(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
253
- path: _path + ".crop",
254
- expected: "(__type.o5 | undefined)",
255
- value: input.crop
256
- }, errorFactory);
257
- const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
258
- path: _path + ".x",
259
- expected: "(number | undefined)",
260
- value: input.x
261
- }, errorFactory)) && (undefined === input.y || "number" === typeof input.y || $guard(_exceptionable, {
262
- path: _path + ".y",
263
- expected: "(number | undefined)",
264
- value: input.y
265
- }, errorFactory)) && (undefined === input.width || "number" === typeof input.width || $guard(_exceptionable, {
266
- path: _path + ".width",
267
- expected: "(number | undefined)",
268
- value: input.width
269
- }, errorFactory)) && (undefined === input.height || "number" === typeof input.height || $guard(_exceptionable, {
270
- path: _path + ".height",
271
- expected: "(number | undefined)",
272
- value: input.height
273
- }, errorFactory));
274
- const $ao8 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
275
- path: _path + ".language",
276
- expected: "(string | undefined)",
277
- value: input.language
278
- }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
279
- path: _path + ".pan",
280
- expected: "(Array<number> | undefined)",
281
- value: input.pan
282
- }, errorFactory)) && input.pan.every((elem, _index2) => "number" === typeof elem || $guard(_exceptionable, {
283
- path: _path + ".pan[" + _index2 + "]",
284
- expected: "number",
285
- value: elem
286
- }, errorFactory)) || $guard(_exceptionable, {
287
- path: _path + ".pan",
288
- expected: "(Array<number> | undefined)",
289
- value: input.pan
290
- }, errorFactory));
291
- return (null !== input || $guard(true, {
292
- path: _path + "",
293
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
294
- value: input
295
- }, errorFactory)) && (undefined !== input || $guard(true, {
296
- path: _path + "",
297
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
298
- value: input
299
- }, errorFactory)) && ("string" === typeof input || (Array.isArray(input) && input.every((elem, _index1) => (null !== elem || $guard(true, {
300
- path: _path + "[" + _index1 + "]",
301
- expected: "(RenderSceneObject | string)",
302
- value: elem
303
- }, errorFactory)) && (undefined !== elem || $guard(true, {
304
- path: _path + "[" + _index1 + "]",
305
- expected: "(RenderSceneObject | string)",
306
- value: elem
307
- }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(true, {
308
- path: _path + "[" + _index1 + "]",
309
- expected: "(RenderSceneObject | string)",
310
- value: elem
311
- }, errorFactory)) && $ao0(elem, _path + "[" + _index1 + "]", true) || $guard(true, {
312
- path: _path + "[" + _index1 + "]",
313
- expected: "(RenderSceneObject | string)",
314
- value: elem
315
- }, errorFactory))) || "object" === typeof input && null !== input && false === Array.isArray(input) && $ao0(input, _path + "", true) || $guard(true, {
316
- path: _path + "",
317
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
318
- value: input
319
- }, errorFactory)) || $guard(true, {
320
- path: _path + "",
321
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
322
- value: input
323
- }, errorFactory));
324
- })(input, "$input", true);
325
- return input;
326
- };
327
- export const randomRenderScene = generator => {
328
- const $generator = __typia.createRandom.generator;
329
- const $pick = __typia.createRandom.pick;
330
- const $ro0 = (_recursive = false, _depth = 0) => ({
331
- id: $pick([
332
- () => undefined,
333
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
334
- ])(),
335
- preset: $pick([
336
- () => undefined,
337
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
338
- ])(),
339
- input: $pick([
340
- () => undefined,
341
- () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
342
- ])(),
343
- lang: $pick([
344
- () => undefined,
345
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
346
- ])(),
347
- subtitle: $pick([
348
- () => undefined,
349
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
350
- ])(),
351
- subtitleTracks: $pick([
352
- () => undefined,
353
- () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
354
- ])(),
355
- video: $pick([
356
- () => undefined,
357
- () => $ro6(_recursive, _recursive ? 1 + _depth : _depth)
358
- ])(),
359
- start: $pick([
360
- () => undefined,
361
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
362
- ])(),
363
- end: $pick([
364
- () => undefined,
365
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
366
- ])(),
367
- transcribe: $pick([
368
- () => undefined,
369
- () => $ro8(_recursive, _recursive ? 1 + _depth : _depth)
370
- ])()
371
- });
372
- const $ro1 = (_recursive = false, _depth = 0) => ({
373
- type: $pick([
374
- () => undefined,
375
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
376
- ])(),
377
- file: $pick([
378
- () => undefined,
379
- () => null,
380
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
381
- ])()
382
- });
383
- const $ro2 = (_recursive = false, _depth = 0) => {
384
- const output = {};
385
- (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = $ro3(_recursive, _recursive ? 1 + _depth : _depth), (generator?.integer ?? $generator.integer)(0, 3));
386
- return output;
387
- };
388
- const $ro3 = (_recursive = false, _depth = 0) => ({
389
- style: $pick([
390
- () => undefined,
391
- () => null,
392
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
393
- ])(),
394
- styleOverrides: $pick([
395
- () => undefined,
396
- () => $ro4(_recursive, _recursive ? 1 + _depth : _depth)
397
- ])()
398
- });
399
- const $ro4 = (_recursive = false, _depth = 0) => ({
400
- name: $pick([
401
- () => undefined,
402
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
403
- ])(),
404
- fontname: $pick([
405
- () => undefined,
406
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
407
- ])(),
408
- fontsize: $pick([
409
- () => undefined,
410
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
411
- ])(),
412
- primaryColour: $pick([
413
- () => undefined,
414
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
415
- ])(),
416
- secondaryColour: $pick([
417
- () => undefined,
418
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
419
- ])(),
420
- outlineColour: $pick([
421
- () => undefined,
422
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
423
- ])(),
424
- backColour: $pick([
425
- () => undefined,
426
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
427
- ])(),
428
- bold: $pick([
429
- () => undefined,
430
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
431
- ])(),
432
- italic: $pick([
433
- () => undefined,
434
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
435
- ])(),
436
- underline: $pick([
437
- () => undefined,
438
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
439
- ])(),
440
- strikeOut: $pick([
441
- () => undefined,
442
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
443
- ])(),
444
- scaleX: $pick([
445
- () => undefined,
446
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
447
- ])(),
448
- scaleY: $pick([
449
- () => undefined,
450
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
451
- ])(),
452
- spacing: $pick([
453
- () => undefined,
454
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
455
- ])(),
456
- angle: $pick([
457
- () => undefined,
458
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
459
- ])(),
460
- borderStyle: $pick([
461
- () => undefined,
462
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
463
- ])(),
464
- outline: $pick([
465
- () => undefined,
466
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
467
- ])(),
468
- shadow: $pick([
469
- () => undefined,
470
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
471
- ])(),
472
- alignment: $pick([
473
- () => undefined,
474
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
475
- ])(),
476
- marginL: $pick([
477
- () => undefined,
478
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
479
- ])(),
480
- marginR: $pick([
481
- () => undefined,
482
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
483
- ])(),
484
- marginV: $pick([
485
- () => undefined,
486
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
487
- ])(),
488
- encoding: $pick([
489
- () => undefined,
490
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
491
- ])(),
492
- previewSettings: $pick([
493
- () => undefined,
494
- () => $ro5(_recursive, _recursive ? 1 + _depth : _depth)
495
- ])()
496
- });
497
- const $ro5 = (_recursive = false, _depth = 0) => ({
498
- aspectRatio: $pick([
499
- () => undefined,
500
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
501
- ])(),
502
- backgroundAssetId: $pick([
503
- () => undefined,
504
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
505
- ])(),
506
- text: $pick([
507
- () => undefined,
508
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
509
- ])()
510
- });
511
- const $ro6 = (_recursive = false, _depth = 0) => ({
512
- crop: $pick([
513
- () => undefined,
514
- () => $ro7(_recursive, _recursive ? 1 + _depth : _depth)
515
- ])()
516
- });
517
- const $ro7 = (_recursive = false, _depth = 0) => ({
518
- x: $pick([
519
- () => undefined,
520
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
521
- ])(),
522
- y: $pick([
523
- () => undefined,
524
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
525
- ])(),
526
- width: $pick([
527
- () => undefined,
528
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
529
- ])(),
530
- height: $pick([
531
- () => undefined,
532
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
533
- ])()
534
- });
535
- const $ro8 = (_recursive = false, _depth = 0) => ({
536
- language: $pick([
537
- () => undefined,
538
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
539
- ])(),
540
- pan: $pick([
541
- () => undefined,
542
- () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100))
543
- ])()
544
- });
545
- return $pick([
546
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
547
- () => (generator?.array ?? $generator.array)(() => $pick([
548
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
549
- () => $ro0()
550
- ])()),
551
- () => $ro0()
552
- ])();
553
- };
554
- export const assertGuardRenderScene = (input, errorFactory) => {
555
- const __is = input => {
556
- 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.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io2(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io6(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) && $io8(input.transcribe));
557
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
558
- const $io2 = input => Object.keys(input).every(key => {
559
- const value = input[key];
560
- if (undefined === value)
561
- return true;
562
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
563
- });
564
- const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
565
- const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io5(input.previewSettings));
566
- const $io5 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
567
- const $io6 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io7(input.crop);
568
- const $io7 = 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);
569
- const $io8 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
570
- 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)));
571
- };
572
- if (false === __is(input))
573
- ((input, _path, _exceptionable = true) => {
574
- const $guard = __typia.createAssertGuard.guard;
575
- const $join = __typia.createAssertGuard.join;
576
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
577
- path: _path + ".id",
578
- expected: "(string | undefined)",
579
- value: input.id
580
- }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
581
- path: _path + ".preset",
582
- expected: "(string | undefined)",
583
- value: input.preset
584
- }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
585
- path: _path + ".input",
586
- expected: "(__type | undefined)",
587
- value: input.input
588
- }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
589
- path: _path + ".input",
590
- expected: "(__type | undefined)",
591
- value: input.input
592
- }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
593
- path: _path + ".lang",
594
- expected: "(string | undefined)",
595
- value: input.lang
596
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
597
- path: _path + ".subtitle",
598
- expected: "(string | undefined)",
599
- value: input.subtitle
600
- }, errorFactory)) && (undefined === input.subtitleTracks || ("object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) || $guard(_exceptionable, {
601
- path: _path + ".subtitleTracks",
602
- expected: "(__type.o1 | undefined)",
603
- value: input.subtitleTracks
604
- }, errorFactory)) && $ao2(input.subtitleTracks, _path + ".subtitleTracks", true && _exceptionable) || $guard(_exceptionable, {
605
- path: _path + ".subtitleTracks",
606
- expected: "(__type.o1 | undefined)",
607
- value: input.subtitleTracks
608
- }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
609
- path: _path + ".video",
610
- expected: "(__type.o4 | undefined)",
611
- value: input.video
612
- }, errorFactory)) && $ao6(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
613
- path: _path + ".video",
614
- expected: "(__type.o4 | undefined)",
615
- value: input.video
616
- }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
617
- path: _path + ".start",
618
- expected: "(number | undefined)",
619
- value: input.start
620
- }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
621
- path: _path + ".end",
622
- expected: "(number | undefined)",
623
- value: input.end
624
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
625
- path: _path + ".transcribe",
626
- expected: "(__type.o6 | undefined)",
627
- value: input.transcribe
628
- }, errorFactory)) && $ao8(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
629
- path: _path + ".transcribe",
630
- expected: "(__type.o6 | undefined)",
631
- value: input.transcribe
632
- }, errorFactory));
633
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
634
- path: _path + ".type",
635
- expected: "(string | undefined)",
636
- value: input.type
637
- }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
638
- path: _path + ".file",
639
- expected: "(null | string | undefined)",
640
- value: input.file
641
- }, errorFactory));
642
- const $ao2 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
643
- const value = input[key];
644
- if (undefined === value)
645
- return true;
646
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
647
- path: _path + $join(key),
648
- expected: "__type.o2",
649
- value: value
650
- }, errorFactory)) && $ao3(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
651
- path: _path + $join(key),
652
- expected: "__type.o2",
653
- value: value
654
- }, errorFactory);
655
- });
656
- const $ao3 = (input, _path, _exceptionable = true) => (null === input.style || undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
657
- path: _path + ".style",
658
- expected: "(null | string | undefined)",
659
- value: input.style
660
- }, errorFactory)) && (undefined === input.styleOverrides || ("object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) || $guard(_exceptionable, {
661
- path: _path + ".styleOverrides",
662
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
663
- value: input.styleOverrides
664
- }, errorFactory)) && $ao4(input.styleOverrides, _path + ".styleOverrides", true && _exceptionable) || $guard(_exceptionable, {
665
- path: _path + ".styleOverrides",
666
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
667
- value: input.styleOverrides
668
- }, errorFactory));
669
- const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
670
- path: _path + ".name",
671
- expected: "(string | undefined)",
672
- value: input.name
673
- }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
674
- path: _path + ".fontname",
675
- expected: "(string | undefined)",
676
- value: input.fontname
677
- }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
678
- path: _path + ".fontsize",
679
- expected: "(string | undefined)",
680
- value: input.fontsize
681
- }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
682
- path: _path + ".primaryColour",
683
- expected: "(string | undefined)",
684
- value: input.primaryColour
685
- }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
686
- path: _path + ".secondaryColour",
687
- expected: "(string | undefined)",
688
- value: input.secondaryColour
689
- }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
690
- path: _path + ".outlineColour",
691
- expected: "(string | undefined)",
692
- value: input.outlineColour
693
- }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
694
- path: _path + ".backColour",
695
- expected: "(string | undefined)",
696
- value: input.backColour
697
- }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
698
- path: _path + ".bold",
699
- expected: "(string | undefined)",
700
- value: input.bold
701
- }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
702
- path: _path + ".italic",
703
- expected: "(string | undefined)",
704
- value: input.italic
705
- }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
706
- path: _path + ".underline",
707
- expected: "(string | undefined)",
708
- value: input.underline
709
- }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
710
- path: _path + ".strikeOut",
711
- expected: "(string | undefined)",
712
- value: input.strikeOut
713
- }, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
714
- path: _path + ".scaleX",
715
- expected: "(string | undefined)",
716
- value: input.scaleX
717
- }, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
718
- path: _path + ".scaleY",
719
- expected: "(string | undefined)",
720
- value: input.scaleY
721
- }, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
722
- path: _path + ".spacing",
723
- expected: "(string | undefined)",
724
- value: input.spacing
725
- }, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
726
- path: _path + ".angle",
727
- expected: "(string | undefined)",
728
- value: input.angle
729
- }, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
730
- path: _path + ".borderStyle",
731
- expected: "(string | undefined)",
732
- value: input.borderStyle
733
- }, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
734
- path: _path + ".outline",
735
- expected: "(string | undefined)",
736
- value: input.outline
737
- }, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
738
- path: _path + ".shadow",
739
- expected: "(string | undefined)",
740
- value: input.shadow
741
- }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
742
- path: _path + ".alignment",
743
- expected: "(string | undefined)",
744
- value: input.alignment
745
- }, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
746
- path: _path + ".marginL",
747
- expected: "(string | undefined)",
748
- value: input.marginL
749
- }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
750
- path: _path + ".marginR",
751
- expected: "(string | undefined)",
752
- value: input.marginR
753
- }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
754
- path: _path + ".marginV",
755
- expected: "(string | undefined)",
756
- value: input.marginV
757
- }, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
758
- path: _path + ".encoding",
759
- expected: "(string | undefined)",
760
- value: input.encoding
761
- }, errorFactory)) && (undefined === input.previewSettings || ("object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) || $guard(_exceptionable, {
762
- path: _path + ".previewSettings",
763
- expected: "(__type.o3 | undefined)",
764
- value: input.previewSettings
765
- }, errorFactory)) && $ao5(input.previewSettings, _path + ".previewSettings", true && _exceptionable) || $guard(_exceptionable, {
766
- path: _path + ".previewSettings",
767
- expected: "(__type.o3 | undefined)",
768
- value: input.previewSettings
769
- }, errorFactory));
770
- const $ao5 = (input, _path, _exceptionable = true) => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio || $guard(_exceptionable, {
771
- path: _path + ".aspectRatio",
772
- expected: "(string | undefined)",
773
- value: input.aspectRatio
774
- }, errorFactory)) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId || $guard(_exceptionable, {
775
- path: _path + ".backgroundAssetId",
776
- expected: "(string | undefined)",
777
- value: input.backgroundAssetId
778
- }, errorFactory)) && (undefined === input.text || "string" === typeof input.text || $guard(_exceptionable, {
779
- path: _path + ".text",
780
- expected: "(string | undefined)",
781
- value: input.text
782
- }, errorFactory));
783
- const $ao6 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
784
- path: _path + ".crop",
785
- expected: "(__type.o5 | undefined)",
786
- value: input.crop
787
- }, errorFactory)) && $ao7(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
788
- path: _path + ".crop",
789
- expected: "(__type.o5 | undefined)",
790
- value: input.crop
791
- }, errorFactory);
792
- const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
793
- path: _path + ".x",
794
- expected: "(number | undefined)",
795
- value: input.x
796
- }, errorFactory)) && (undefined === input.y || "number" === typeof input.y || $guard(_exceptionable, {
797
- path: _path + ".y",
798
- expected: "(number | undefined)",
799
- value: input.y
800
- }, errorFactory)) && (undefined === input.width || "number" === typeof input.width || $guard(_exceptionable, {
801
- path: _path + ".width",
802
- expected: "(number | undefined)",
803
- value: input.width
804
- }, errorFactory)) && (undefined === input.height || "number" === typeof input.height || $guard(_exceptionable, {
805
- path: _path + ".height",
806
- expected: "(number | undefined)",
807
- value: input.height
808
- }, errorFactory));
809
- const $ao8 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
810
- path: _path + ".language",
811
- expected: "(string | undefined)",
812
- value: input.language
813
- }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
814
- path: _path + ".pan",
815
- expected: "(Array<number> | undefined)",
816
- value: input.pan
817
- }, errorFactory)) && input.pan.every((elem, _index2) => "number" === typeof elem || $guard(_exceptionable, {
818
- path: _path + ".pan[" + _index2 + "]",
819
- expected: "number",
820
- value: elem
821
- }, errorFactory)) || $guard(_exceptionable, {
822
- path: _path + ".pan",
823
- expected: "(Array<number> | undefined)",
824
- value: input.pan
825
- }, errorFactory));
826
- return (null !== input || $guard(true, {
827
- path: _path + "",
828
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
829
- value: input
830
- }, errorFactory)) && (undefined !== input || $guard(true, {
831
- path: _path + "",
832
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
833
- value: input
834
- }, errorFactory)) && ("string" === typeof input || (Array.isArray(input) && input.every((elem, _index1) => (null !== elem || $guard(true, {
835
- path: _path + "[" + _index1 + "]",
836
- expected: "(RenderSceneObject | string)",
837
- value: elem
838
- }, errorFactory)) && (undefined !== elem || $guard(true, {
839
- path: _path + "[" + _index1 + "]",
840
- expected: "(RenderSceneObject | string)",
841
- value: elem
842
- }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(true, {
843
- path: _path + "[" + _index1 + "]",
844
- expected: "(RenderSceneObject | string)",
845
- value: elem
846
- }, errorFactory)) && $ao0(elem, _path + "[" + _index1 + "]", true) || $guard(true, {
847
- path: _path + "[" + _index1 + "]",
848
- expected: "(RenderSceneObject | string)",
849
- value: elem
850
- }, errorFactory))) || "object" === typeof input && null !== input && false === Array.isArray(input) && $ao0(input, _path + "", true) || $guard(true, {
851
- path: _path + "",
852
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
853
- value: input
854
- }, errorFactory)) || $guard(true, {
855
- path: _path + "",
856
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
857
- value: input
858
- }, errorFactory));
859
- })(input, "$input", true);
860
- };
861
- export const stringifyRenderScene = input => {
862
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
863
- const $io2 = input => Object.keys(input).every(key => {
864
- const value = input[key];
865
- if (undefined === value)
866
- return true;
867
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
868
- });
869
- const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
870
- const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io5(input.previewSettings));
871
- const $io5 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
872
- const $io6 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io7(input.crop);
873
- const $io7 = 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);
874
- const $io8 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
875
- const $string = __typia.json.createStringify.string;
876
- const $throws = __typia.json.createStringify.throws;
877
- const $tail = __typia.json.createStringify.tail;
878
- 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.subtitleTracks ? "" : `"subtitleTracks":${undefined !== input.subtitleTracks ? $so2(input.subtitleTracks) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so6(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 ? $so8(input.transcribe) : undefined}`}`)}}`;
879
- 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}`}`)}}`;
880
- const $so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
881
- return ""; return `${JSON.stringify(key)}:${$so3(value)}`; }).filter(str => "" !== str).join(",")}}`;
882
- const $so3 = input => `{${$tail(`${undefined === input.style ? "" : `"style":${undefined !== input.style ? null !== input.style ? $string(input.style) : "null" : undefined},`}${undefined === input.styleOverrides ? "" : `"styleOverrides":${undefined !== input.styleOverrides ? $so4(input.styleOverrides) : undefined}`}`)}}`;
883
- const $so4 = input => `{${$tail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? $string(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? $string(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? $string(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? $string(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? $string(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? $string(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? $string(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? $string(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? $string(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? $string(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? $string(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? $string(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? $string(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? $string(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? $string(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? $string(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? $string(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? $string(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? $string(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? $string(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? $string(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? $string(input.encoding) : undefined},`}${undefined === input.previewSettings ? "" : `"previewSettings":${undefined !== input.previewSettings ? $so5(input.previewSettings) : undefined}`}`)}}`;
884
- const $so5 = input => `{${$tail(`${undefined === input.aspectRatio ? "" : `"aspectRatio":${undefined !== input.aspectRatio ? $string(input.aspectRatio) : undefined},`}${undefined === input.backgroundAssetId ? "" : `"backgroundAssetId":${undefined !== input.backgroundAssetId ? $string(input.backgroundAssetId) : undefined},`}${undefined === input.text ? "" : `"text":${undefined !== input.text ? $string(input.text) : undefined}`}`)}}`;
885
- const $so6 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so7(input.crop) : undefined}`}`)}}`;
886
- const $so7 = 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}`}`)}}`;
887
- const $so8 = 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}`}`)}}`;
888
- return (() => {
889
- if ("string" === typeof input)
890
- return $string(input);
891
- if (Array.isArray(input))
892
- return `[${input.map(elem => (() => {
893
- if ("string" === typeof elem)
894
- return $string(elem);
895
- if ("object" === typeof elem && null !== elem && false === Array.isArray(elem))
896
- return $so0(elem);
897
- $throws({
898
- expected: "(RenderSceneObject | string)",
899
- value: elem
900
- });
901
- })()).join(",")}]`;
902
- if ("object" === typeof input && null !== input && false === Array.isArray(input))
903
- return $so0(input);
904
- $throws({
905
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
906
- value: input
907
- });
908
- })();
909
- };
910
- export const assertStringifyRenderScene = (input, errorFactory) => { const assert = (input, errorFactory) => {
911
- const __is = input => {
912
- 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.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io2(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io6(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) && $io8(input.transcribe));
913
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
914
- const $io2 = input => Object.keys(input).every(key => {
915
- const value = input[key];
916
- if (undefined === value)
917
- return true;
918
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
919
- });
920
- const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
921
- const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io5(input.previewSettings));
922
- const $io5 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
923
- const $io6 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io7(input.crop);
924
- const $io7 = 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));
925
- const $io8 = 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)));
926
- 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)));
927
- };
928
- if (false === __is(input))
929
- ((input, _path, _exceptionable = true) => {
930
- const $guard = __typia.json.createAssertStringify.guard;
931
- const $join = __typia.json.createAssertStringify.join;
932
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
933
- path: _path + ".id",
934
- expected: "(string | undefined)",
935
- value: input.id
936
- }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
937
- path: _path + ".preset",
938
- expected: "(string | undefined)",
939
- value: input.preset
940
- }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
941
- path: _path + ".input",
942
- expected: "(__type | undefined)",
943
- value: input.input
944
- }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
945
- path: _path + ".input",
946
- expected: "(__type | undefined)",
947
- value: input.input
948
- }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
949
- path: _path + ".lang",
950
- expected: "(string | undefined)",
951
- value: input.lang
952
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
953
- path: _path + ".subtitle",
954
- expected: "(string | undefined)",
955
- value: input.subtitle
956
- }, errorFactory)) && (undefined === input.subtitleTracks || ("object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) || $guard(_exceptionable, {
957
- path: _path + ".subtitleTracks",
958
- expected: "(__type.o1 | undefined)",
959
- value: input.subtitleTracks
960
- }, errorFactory)) && $ao2(input.subtitleTracks, _path + ".subtitleTracks", true && _exceptionable) || $guard(_exceptionable, {
961
- path: _path + ".subtitleTracks",
962
- expected: "(__type.o1 | undefined)",
963
- value: input.subtitleTracks
964
- }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
965
- path: _path + ".video",
966
- expected: "(__type.o4 | undefined)",
967
- value: input.video
968
- }, errorFactory)) && $ao6(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
969
- path: _path + ".video",
970
- expected: "(__type.o4 | undefined)",
971
- value: input.video
972
- }, errorFactory)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start) || $guard(_exceptionable, {
973
- path: _path + ".start",
974
- expected: "(number | undefined)",
975
- value: input.start
976
- }, errorFactory)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end) || $guard(_exceptionable, {
977
- path: _path + ".end",
978
- expected: "(number | undefined)",
979
- value: input.end
980
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
981
- path: _path + ".transcribe",
982
- expected: "(__type.o6 | undefined)",
983
- value: input.transcribe
984
- }, errorFactory)) && $ao8(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
985
- path: _path + ".transcribe",
986
- expected: "(__type.o6 | undefined)",
987
- value: input.transcribe
988
- }, errorFactory));
989
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
990
- path: _path + ".type",
991
- expected: "(string | undefined)",
992
- value: input.type
993
- }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
994
- path: _path + ".file",
995
- expected: "(null | string | undefined)",
996
- value: input.file
997
- }, errorFactory));
998
- const $ao2 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
999
- const value = input[key];
1000
- if (undefined === value)
1001
- return true;
1002
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
1003
- path: _path + $join(key),
1004
- expected: "__type.o2",
1005
- value: value
1006
- }, errorFactory)) && $ao3(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
1007
- path: _path + $join(key),
1008
- expected: "__type.o2",
1009
- value: value
1010
- }, errorFactory);
1011
- });
1012
- const $ao3 = (input, _path, _exceptionable = true) => (null === input.style || undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
1013
- path: _path + ".style",
1014
- expected: "(null | string | undefined)",
1015
- value: input.style
1016
- }, errorFactory)) && (undefined === input.styleOverrides || ("object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) || $guard(_exceptionable, {
1017
- path: _path + ".styleOverrides",
1018
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
1019
- value: input.styleOverrides
1020
- }, errorFactory)) && $ao4(input.styleOverrides, _path + ".styleOverrides", true && _exceptionable) || $guard(_exceptionable, {
1021
- path: _path + ".styleOverrides",
1022
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
1023
- value: input.styleOverrides
1024
- }, errorFactory));
1025
- const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
1026
- path: _path + ".name",
1027
- expected: "(string | undefined)",
1028
- value: input.name
1029
- }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
1030
- path: _path + ".fontname",
1031
- expected: "(string | undefined)",
1032
- value: input.fontname
1033
- }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
1034
- path: _path + ".fontsize",
1035
- expected: "(string | undefined)",
1036
- value: input.fontsize
1037
- }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
1038
- path: _path + ".primaryColour",
1039
- expected: "(string | undefined)",
1040
- value: input.primaryColour
1041
- }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
1042
- path: _path + ".secondaryColour",
1043
- expected: "(string | undefined)",
1044
- value: input.secondaryColour
1045
- }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
1046
- path: _path + ".outlineColour",
1047
- expected: "(string | undefined)",
1048
- value: input.outlineColour
1049
- }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
1050
- path: _path + ".backColour",
1051
- expected: "(string | undefined)",
1052
- value: input.backColour
1053
- }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
1054
- path: _path + ".bold",
1055
- expected: "(string | undefined)",
1056
- value: input.bold
1057
- }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
1058
- path: _path + ".italic",
1059
- expected: "(string | undefined)",
1060
- value: input.italic
1061
- }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
1062
- path: _path + ".underline",
1063
- expected: "(string | undefined)",
1064
- value: input.underline
1065
- }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
1066
- path: _path + ".strikeOut",
1067
- expected: "(string | undefined)",
1068
- value: input.strikeOut
1069
- }, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
1070
- path: _path + ".scaleX",
1071
- expected: "(string | undefined)",
1072
- value: input.scaleX
1073
- }, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
1074
- path: _path + ".scaleY",
1075
- expected: "(string | undefined)",
1076
- value: input.scaleY
1077
- }, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
1078
- path: _path + ".spacing",
1079
- expected: "(string | undefined)",
1080
- value: input.spacing
1081
- }, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
1082
- path: _path + ".angle",
1083
- expected: "(string | undefined)",
1084
- value: input.angle
1085
- }, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
1086
- path: _path + ".borderStyle",
1087
- expected: "(string | undefined)",
1088
- value: input.borderStyle
1089
- }, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
1090
- path: _path + ".outline",
1091
- expected: "(string | undefined)",
1092
- value: input.outline
1093
- }, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
1094
- path: _path + ".shadow",
1095
- expected: "(string | undefined)",
1096
- value: input.shadow
1097
- }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
1098
- path: _path + ".alignment",
1099
- expected: "(string | undefined)",
1100
- value: input.alignment
1101
- }, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
1102
- path: _path + ".marginL",
1103
- expected: "(string | undefined)",
1104
- value: input.marginL
1105
- }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
1106
- path: _path + ".marginR",
1107
- expected: "(string | undefined)",
1108
- value: input.marginR
1109
- }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
1110
- path: _path + ".marginV",
1111
- expected: "(string | undefined)",
1112
- value: input.marginV
1113
- }, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
1114
- path: _path + ".encoding",
1115
- expected: "(string | undefined)",
1116
- value: input.encoding
1117
- }, errorFactory)) && (undefined === input.previewSettings || ("object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) || $guard(_exceptionable, {
1118
- path: _path + ".previewSettings",
1119
- expected: "(__type.o3 | undefined)",
1120
- value: input.previewSettings
1121
- }, errorFactory)) && $ao5(input.previewSettings, _path + ".previewSettings", true && _exceptionable) || $guard(_exceptionable, {
1122
- path: _path + ".previewSettings",
1123
- expected: "(__type.o3 | undefined)",
1124
- value: input.previewSettings
1125
- }, errorFactory));
1126
- const $ao5 = (input, _path, _exceptionable = true) => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio || $guard(_exceptionable, {
1127
- path: _path + ".aspectRatio",
1128
- expected: "(string | undefined)",
1129
- value: input.aspectRatio
1130
- }, errorFactory)) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId || $guard(_exceptionable, {
1131
- path: _path + ".backgroundAssetId",
1132
- expected: "(string | undefined)",
1133
- value: input.backgroundAssetId
1134
- }, errorFactory)) && (undefined === input.text || "string" === typeof input.text || $guard(_exceptionable, {
1135
- path: _path + ".text",
1136
- expected: "(string | undefined)",
1137
- value: input.text
1138
- }, errorFactory));
1139
- const $ao6 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
1140
- path: _path + ".crop",
1141
- expected: "(__type.o5 | undefined)",
1142
- value: input.crop
1143
- }, errorFactory)) && $ao7(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
1144
- path: _path + ".crop",
1145
- expected: "(__type.o5 | undefined)",
1146
- value: input.crop
1147
- }, errorFactory);
1148
- const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x) || $guard(_exceptionable, {
1149
- path: _path + ".x",
1150
- expected: "(number | undefined)",
1151
- value: input.x
1152
- }, errorFactory)) && (undefined === input.y || "number" === typeof input.y && !Number.isNaN(input.y) || $guard(_exceptionable, {
1153
- path: _path + ".y",
1154
- expected: "(number | undefined)",
1155
- value: input.y
1156
- }, errorFactory)) && (undefined === input.width || "number" === typeof input.width && !Number.isNaN(input.width) || $guard(_exceptionable, {
1157
- path: _path + ".width",
1158
- expected: "(number | undefined)",
1159
- value: input.width
1160
- }, errorFactory)) && (undefined === input.height || "number" === typeof input.height && !Number.isNaN(input.height) || $guard(_exceptionable, {
1161
- path: _path + ".height",
1162
- expected: "(number | undefined)",
1163
- value: input.height
1164
- }, errorFactory));
1165
- const $ao8 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
1166
- path: _path + ".language",
1167
- expected: "(string | undefined)",
1168
- value: input.language
1169
- }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
1170
- path: _path + ".pan",
1171
- expected: "(Array<number> | undefined)",
1172
- value: input.pan
1173
- }, errorFactory)) && input.pan.every((elem, _index2) => "number" === typeof elem && !Number.isNaN(elem) || $guard(_exceptionable, {
1174
- path: _path + ".pan[" + _index2 + "]",
1175
- expected: "number",
1176
- value: elem
1177
- }, errorFactory)) || $guard(_exceptionable, {
1178
- path: _path + ".pan",
1179
- expected: "(Array<number> | undefined)",
1180
- value: input.pan
1181
- }, errorFactory));
1182
- return (null !== input || $guard(true, {
1183
- path: _path + "",
1184
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
1185
- value: input
1186
- }, errorFactory)) && (undefined !== input || $guard(true, {
1187
- path: _path + "",
1188
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
1189
- value: input
1190
- }, errorFactory)) && ("string" === typeof input || (Array.isArray(input) && input.every((elem, _index1) => (null !== elem || $guard(true, {
1191
- path: _path + "[" + _index1 + "]",
1192
- expected: "(RenderSceneObject | string)",
1193
- value: elem
1194
- }, errorFactory)) && (undefined !== elem || $guard(true, {
1195
- path: _path + "[" + _index1 + "]",
1196
- expected: "(RenderSceneObject | string)",
1197
- value: elem
1198
- }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(true, {
1199
- path: _path + "[" + _index1 + "]",
1200
- expected: "(RenderSceneObject | string)",
1201
- value: elem
1202
- }, errorFactory)) && $ao0(elem, _path + "[" + _index1 + "]", true) || $guard(true, {
1203
- path: _path + "[" + _index1 + "]",
1204
- expected: "(RenderSceneObject | string)",
1205
- value: elem
1206
- }, errorFactory))) || "object" === typeof input && null !== input && false === Array.isArray(input) && $ao0(input, _path + "", true) || $guard(true, {
1207
- path: _path + "",
1208
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
1209
- value: input
1210
- }, errorFactory)) || $guard(true, {
1211
- path: _path + "",
1212
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
1213
- value: input
1214
- }, errorFactory));
1215
- })(input, "$input", true);
1216
- return input;
1217
- }; const stringify = input => {
1218
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
1219
- const $io2 = input => Object.keys(input).every(key => {
1220
- const value = input[key];
1221
- if (undefined === value)
1222
- return true;
1223
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
1224
- });
1225
- const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
1226
- const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io5(input.previewSettings));
1227
- const $io5 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
1228
- const $io6 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io7(input.crop);
1229
- const $io7 = 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);
1230
- const $io8 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
1231
- const $string = __typia.json.createAssertStringify.string;
1232
- const $throws = __typia.json.createAssertStringify.throws;
1233
- const $tail = __typia.json.createAssertStringify.tail;
1234
- 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.subtitleTracks ? "" : `"subtitleTracks":${undefined !== input.subtitleTracks ? $so2(input.subtitleTracks) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so6(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 ? $so8(input.transcribe) : undefined}`}`)}}`;
1235
- 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}`}`)}}`;
1236
- const $so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1237
- return ""; return `${JSON.stringify(key)}:${$so3(value)}`; }).filter(str => "" !== str).join(",")}}`;
1238
- const $so3 = input => `{${$tail(`${undefined === input.style ? "" : `"style":${undefined !== input.style ? null !== input.style ? $string(input.style) : "null" : undefined},`}${undefined === input.styleOverrides ? "" : `"styleOverrides":${undefined !== input.styleOverrides ? $so4(input.styleOverrides) : undefined}`}`)}}`;
1239
- const $so4 = input => `{${$tail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? $string(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? $string(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? $string(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? $string(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? $string(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? $string(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? $string(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? $string(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? $string(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? $string(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? $string(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? $string(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? $string(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? $string(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? $string(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? $string(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? $string(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? $string(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? $string(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? $string(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? $string(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? $string(input.encoding) : undefined},`}${undefined === input.previewSettings ? "" : `"previewSettings":${undefined !== input.previewSettings ? $so5(input.previewSettings) : undefined}`}`)}}`;
1240
- const $so5 = input => `{${$tail(`${undefined === input.aspectRatio ? "" : `"aspectRatio":${undefined !== input.aspectRatio ? $string(input.aspectRatio) : undefined},`}${undefined === input.backgroundAssetId ? "" : `"backgroundAssetId":${undefined !== input.backgroundAssetId ? $string(input.backgroundAssetId) : undefined},`}${undefined === input.text ? "" : `"text":${undefined !== input.text ? $string(input.text) : undefined}`}`)}}`;
1241
- const $so6 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so7(input.crop) : undefined}`}`)}}`;
1242
- const $so7 = 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}`}`)}}`;
1243
- const $so8 = 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}`}`)}}`;
1244
- return (() => {
1245
- if ("string" === typeof input)
1246
- return $string(input);
1247
- if (Array.isArray(input))
1248
- return `[${input.map(elem => (() => {
1249
- if ("string" === typeof elem)
1250
- return $string(elem);
1251
- if ("object" === typeof elem && null !== elem && false === Array.isArray(elem))
1252
- return $so0(elem);
1253
- $throws({
1254
- expected: "(RenderSceneObject | string)",
1255
- value: elem
1256
- });
1257
- })()).join(",")}]`;
1258
- if ("object" === typeof input && null !== input && false === Array.isArray(input))
1259
- return $so0(input);
1260
- $throws({
1261
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string)",
1262
- value: input
1263
- });
1264
- })();
1265
- }; return stringify(assert(input, errorFactory)); };
1266
- export const isRenderSceneObject = input => {
1267
- 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.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io2(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io6(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) && $io8(input.transcribe));
1268
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
1269
- const $io2 = input => Object.keys(input).every(key => {
1270
- const value = input[key];
1271
- if (undefined === value)
1272
- return true;
1273
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
1274
- });
1275
- const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
1276
- const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io5(input.previewSettings));
1277
- const $io5 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
1278
- const $io6 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io7(input.crop);
1279
- const $io7 = 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);
1280
- const $io8 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
1281
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1282
- };
1283
- export const assertRenderSceneObject = (input, errorFactory) => {
1284
- const __is = input => {
1285
- 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.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io2(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io6(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) && $io8(input.transcribe));
1286
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
1287
- const $io2 = input => Object.keys(input).every(key => {
1288
- const value = input[key];
1289
- if (undefined === value)
1290
- return true;
1291
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
1292
- });
1293
- const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
1294
- const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io5(input.previewSettings));
1295
- const $io5 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
1296
- const $io6 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io7(input.crop);
1297
- const $io7 = 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);
1298
- const $io8 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
1299
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1300
- };
1301
- if (false === __is(input))
1302
- ((input, _path, _exceptionable = true) => {
1303
- const $guard = __typia.createAssert.guard;
1304
- const $join = __typia.createAssert.join;
1305
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
1306
- path: _path + ".id",
1307
- expected: "(string | undefined)",
1308
- value: input.id
1309
- }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
1310
- path: _path + ".preset",
1311
- expected: "(string | undefined)",
1312
- value: input.preset
1313
- }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
1314
- path: _path + ".input",
1315
- expected: "(__type | undefined)",
1316
- value: input.input
1317
- }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
1318
- path: _path + ".input",
1319
- expected: "(__type | undefined)",
1320
- value: input.input
1321
- }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
1322
- path: _path + ".lang",
1323
- expected: "(string | undefined)",
1324
- value: input.lang
1325
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
1326
- path: _path + ".subtitle",
1327
- expected: "(string | undefined)",
1328
- value: input.subtitle
1329
- }, errorFactory)) && (undefined === input.subtitleTracks || ("object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) || $guard(_exceptionable, {
1330
- path: _path + ".subtitleTracks",
1331
- expected: "(__type.o1 | undefined)",
1332
- value: input.subtitleTracks
1333
- }, errorFactory)) && $ao2(input.subtitleTracks, _path + ".subtitleTracks", true && _exceptionable) || $guard(_exceptionable, {
1334
- path: _path + ".subtitleTracks",
1335
- expected: "(__type.o1 | undefined)",
1336
- value: input.subtitleTracks
1337
- }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
1338
- path: _path + ".video",
1339
- expected: "(__type.o4 | undefined)",
1340
- value: input.video
1341
- }, errorFactory)) && $ao6(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
1342
- path: _path + ".video",
1343
- expected: "(__type.o4 | undefined)",
1344
- value: input.video
1345
- }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
1346
- path: _path + ".start",
1347
- expected: "(number | undefined)",
1348
- value: input.start
1349
- }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
1350
- path: _path + ".end",
1351
- expected: "(number | undefined)",
1352
- value: input.end
1353
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
1354
- path: _path + ".transcribe",
1355
- expected: "(__type.o6 | undefined)",
1356
- value: input.transcribe
1357
- }, errorFactory)) && $ao8(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
1358
- path: _path + ".transcribe",
1359
- expected: "(__type.o6 | undefined)",
1360
- value: input.transcribe
1361
- }, errorFactory));
1362
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
1363
- path: _path + ".type",
1364
- expected: "(string | undefined)",
1365
- value: input.type
1366
- }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
1367
- path: _path + ".file",
1368
- expected: "(null | string | undefined)",
1369
- value: input.file
1370
- }, errorFactory));
1371
- const $ao2 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1372
- const value = input[key];
1373
- if (undefined === value)
1374
- return true;
1375
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
1376
- path: _path + $join(key),
1377
- expected: "__type.o2",
1378
- value: value
1379
- }, errorFactory)) && $ao3(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
1380
- path: _path + $join(key),
1381
- expected: "__type.o2",
1382
- value: value
1383
- }, errorFactory);
1384
- });
1385
- const $ao3 = (input, _path, _exceptionable = true) => (null === input.style || undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
1386
- path: _path + ".style",
1387
- expected: "(null | string | undefined)",
1388
- value: input.style
1389
- }, errorFactory)) && (undefined === input.styleOverrides || ("object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) || $guard(_exceptionable, {
1390
- path: _path + ".styleOverrides",
1391
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
1392
- value: input.styleOverrides
1393
- }, errorFactory)) && $ao4(input.styleOverrides, _path + ".styleOverrides", true && _exceptionable) || $guard(_exceptionable, {
1394
- path: _path + ".styleOverrides",
1395
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
1396
- value: input.styleOverrides
1397
- }, errorFactory));
1398
- const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
1399
- path: _path + ".name",
1400
- expected: "(string | undefined)",
1401
- value: input.name
1402
- }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
1403
- path: _path + ".fontname",
1404
- expected: "(string | undefined)",
1405
- value: input.fontname
1406
- }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
1407
- path: _path + ".fontsize",
1408
- expected: "(string | undefined)",
1409
- value: input.fontsize
1410
- }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
1411
- path: _path + ".primaryColour",
1412
- expected: "(string | undefined)",
1413
- value: input.primaryColour
1414
- }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
1415
- path: _path + ".secondaryColour",
1416
- expected: "(string | undefined)",
1417
- value: input.secondaryColour
1418
- }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
1419
- path: _path + ".outlineColour",
1420
- expected: "(string | undefined)",
1421
- value: input.outlineColour
1422
- }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
1423
- path: _path + ".backColour",
1424
- expected: "(string | undefined)",
1425
- value: input.backColour
1426
- }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
1427
- path: _path + ".bold",
1428
- expected: "(string | undefined)",
1429
- value: input.bold
1430
- }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
1431
- path: _path + ".italic",
1432
- expected: "(string | undefined)",
1433
- value: input.italic
1434
- }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
1435
- path: _path + ".underline",
1436
- expected: "(string | undefined)",
1437
- value: input.underline
1438
- }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
1439
- path: _path + ".strikeOut",
1440
- expected: "(string | undefined)",
1441
- value: input.strikeOut
1442
- }, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
1443
- path: _path + ".scaleX",
1444
- expected: "(string | undefined)",
1445
- value: input.scaleX
1446
- }, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
1447
- path: _path + ".scaleY",
1448
- expected: "(string | undefined)",
1449
- value: input.scaleY
1450
- }, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
1451
- path: _path + ".spacing",
1452
- expected: "(string | undefined)",
1453
- value: input.spacing
1454
- }, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
1455
- path: _path + ".angle",
1456
- expected: "(string | undefined)",
1457
- value: input.angle
1458
- }, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
1459
- path: _path + ".borderStyle",
1460
- expected: "(string | undefined)",
1461
- value: input.borderStyle
1462
- }, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
1463
- path: _path + ".outline",
1464
- expected: "(string | undefined)",
1465
- value: input.outline
1466
- }, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
1467
- path: _path + ".shadow",
1468
- expected: "(string | undefined)",
1469
- value: input.shadow
1470
- }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
1471
- path: _path + ".alignment",
1472
- expected: "(string | undefined)",
1473
- value: input.alignment
1474
- }, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
1475
- path: _path + ".marginL",
1476
- expected: "(string | undefined)",
1477
- value: input.marginL
1478
- }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
1479
- path: _path + ".marginR",
1480
- expected: "(string | undefined)",
1481
- value: input.marginR
1482
- }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
1483
- path: _path + ".marginV",
1484
- expected: "(string | undefined)",
1485
- value: input.marginV
1486
- }, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
1487
- path: _path + ".encoding",
1488
- expected: "(string | undefined)",
1489
- value: input.encoding
1490
- }, errorFactory)) && (undefined === input.previewSettings || ("object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) || $guard(_exceptionable, {
1491
- path: _path + ".previewSettings",
1492
- expected: "(__type.o3 | undefined)",
1493
- value: input.previewSettings
1494
- }, errorFactory)) && $ao5(input.previewSettings, _path + ".previewSettings", true && _exceptionable) || $guard(_exceptionable, {
1495
- path: _path + ".previewSettings",
1496
- expected: "(__type.o3 | undefined)",
1497
- value: input.previewSettings
1498
- }, errorFactory));
1499
- const $ao5 = (input, _path, _exceptionable = true) => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio || $guard(_exceptionable, {
1500
- path: _path + ".aspectRatio",
1501
- expected: "(string | undefined)",
1502
- value: input.aspectRatio
1503
- }, errorFactory)) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId || $guard(_exceptionable, {
1504
- path: _path + ".backgroundAssetId",
1505
- expected: "(string | undefined)",
1506
- value: input.backgroundAssetId
1507
- }, errorFactory)) && (undefined === input.text || "string" === typeof input.text || $guard(_exceptionable, {
1508
- path: _path + ".text",
1509
- expected: "(string | undefined)",
1510
- value: input.text
1511
- }, errorFactory));
1512
- const $ao6 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
1513
- path: _path + ".crop",
1514
- expected: "(__type.o5 | undefined)",
1515
- value: input.crop
1516
- }, errorFactory)) && $ao7(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
1517
- path: _path + ".crop",
1518
- expected: "(__type.o5 | undefined)",
1519
- value: input.crop
1520
- }, errorFactory);
1521
- const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
1522
- path: _path + ".x",
1523
- expected: "(number | undefined)",
1524
- value: input.x
1525
- }, errorFactory)) && (undefined === input.y || "number" === typeof input.y || $guard(_exceptionable, {
1526
- path: _path + ".y",
1527
- expected: "(number | undefined)",
1528
- value: input.y
1529
- }, errorFactory)) && (undefined === input.width || "number" === typeof input.width || $guard(_exceptionable, {
1530
- path: _path + ".width",
1531
- expected: "(number | undefined)",
1532
- value: input.width
1533
- }, errorFactory)) && (undefined === input.height || "number" === typeof input.height || $guard(_exceptionable, {
1534
- path: _path + ".height",
1535
- expected: "(number | undefined)",
1536
- value: input.height
1537
- }, errorFactory));
1538
- const $ao8 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
1539
- path: _path + ".language",
1540
- expected: "(string | undefined)",
1541
- value: input.language
1542
- }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
1543
- path: _path + ".pan",
1544
- expected: "(Array<number> | undefined)",
1545
- value: input.pan
1546
- }, errorFactory)) && input.pan.every((elem, _index1) => "number" === typeof elem || $guard(_exceptionable, {
1547
- path: _path + ".pan[" + _index1 + "]",
1548
- expected: "number",
1549
- value: elem
1550
- }, errorFactory)) || $guard(_exceptionable, {
1551
- path: _path + ".pan",
1552
- expected: "(Array<number> | undefined)",
1553
- value: input.pan
1554
- }, errorFactory));
1555
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
1556
- path: _path + "",
1557
- expected: "RenderSceneObject",
1558
- value: input
1559
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1560
- path: _path + "",
1561
- expected: "RenderSceneObject",
1562
- value: input
1563
- }, errorFactory);
1564
- })(input, "$input", true);
1565
- return input;
1566
- };
1567
- export const randomRenderSceneObject = generator => {
1568
- const $generator = __typia.createRandom.generator;
1569
- const $pick = __typia.createRandom.pick;
1570
- const $ro0 = (_recursive = false, _depth = 0) => ({
1571
- id: $pick([
1572
- () => undefined,
1573
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1574
- ])(),
1575
- preset: $pick([
1576
- () => undefined,
1577
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1578
- ])(),
1579
- input: $pick([
1580
- () => undefined,
1581
- () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
1582
- ])(),
1583
- lang: $pick([
1584
- () => undefined,
1585
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1586
- ])(),
1587
- subtitle: $pick([
1588
- () => undefined,
1589
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1590
- ])(),
1591
- subtitleTracks: $pick([
1592
- () => undefined,
1593
- () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
1594
- ])(),
1595
- video: $pick([
1596
- () => undefined,
1597
- () => $ro6(_recursive, _recursive ? 1 + _depth : _depth)
1598
- ])(),
1599
- start: $pick([
1600
- () => undefined,
1601
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1602
- ])(),
1603
- end: $pick([
1604
- () => undefined,
1605
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1606
- ])(),
1607
- transcribe: $pick([
1608
- () => undefined,
1609
- () => $ro8(_recursive, _recursive ? 1 + _depth : _depth)
1610
- ])()
1611
- });
1612
- const $ro1 = (_recursive = false, _depth = 0) => ({
1613
- type: $pick([
1614
- () => undefined,
1615
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1616
- ])(),
1617
- file: $pick([
1618
- () => undefined,
1619
- () => null,
1620
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1621
- ])()
1622
- });
1623
- const $ro2 = (_recursive = false, _depth = 0) => {
1624
- const output = {};
1625
- (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = $ro3(_recursive, _recursive ? 1 + _depth : _depth), (generator?.integer ?? $generator.integer)(0, 3));
1626
- return output;
1627
- };
1628
- const $ro3 = (_recursive = false, _depth = 0) => ({
1629
- style: $pick([
1630
- () => undefined,
1631
- () => null,
1632
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1633
- ])(),
1634
- styleOverrides: $pick([
1635
- () => undefined,
1636
- () => $ro4(_recursive, _recursive ? 1 + _depth : _depth)
1637
- ])()
1638
- });
1639
- const $ro4 = (_recursive = false, _depth = 0) => ({
1640
- name: $pick([
1641
- () => undefined,
1642
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1643
- ])(),
1644
- fontname: $pick([
1645
- () => undefined,
1646
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1647
- ])(),
1648
- fontsize: $pick([
1649
- () => undefined,
1650
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1651
- ])(),
1652
- primaryColour: $pick([
1653
- () => undefined,
1654
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1655
- ])(),
1656
- secondaryColour: $pick([
1657
- () => undefined,
1658
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1659
- ])(),
1660
- outlineColour: $pick([
1661
- () => undefined,
1662
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1663
- ])(),
1664
- backColour: $pick([
1665
- () => undefined,
1666
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1667
- ])(),
1668
- bold: $pick([
1669
- () => undefined,
1670
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1671
- ])(),
1672
- italic: $pick([
1673
- () => undefined,
1674
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1675
- ])(),
1676
- underline: $pick([
1677
- () => undefined,
1678
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1679
- ])(),
1680
- strikeOut: $pick([
1681
- () => undefined,
1682
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1683
- ])(),
1684
- scaleX: $pick([
1685
- () => undefined,
1686
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1687
- ])(),
1688
- scaleY: $pick([
1689
- () => undefined,
1690
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1691
- ])(),
1692
- spacing: $pick([
1693
- () => undefined,
1694
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1695
- ])(),
1696
- angle: $pick([
1697
- () => undefined,
1698
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1699
- ])(),
1700
- borderStyle: $pick([
1701
- () => undefined,
1702
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1703
- ])(),
1704
- outline: $pick([
1705
- () => undefined,
1706
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1707
- ])(),
1708
- shadow: $pick([
1709
- () => undefined,
1710
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1711
- ])(),
1712
- alignment: $pick([
1713
- () => undefined,
1714
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1715
- ])(),
1716
- marginL: $pick([
1717
- () => undefined,
1718
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1719
- ])(),
1720
- marginR: $pick([
1721
- () => undefined,
1722
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1723
- ])(),
1724
- marginV: $pick([
1725
- () => undefined,
1726
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1727
- ])(),
1728
- encoding: $pick([
1729
- () => undefined,
1730
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1731
- ])(),
1732
- previewSettings: $pick([
1733
- () => undefined,
1734
- () => $ro5(_recursive, _recursive ? 1 + _depth : _depth)
1735
- ])()
1736
- });
1737
- const $ro5 = (_recursive = false, _depth = 0) => ({
1738
- aspectRatio: $pick([
1739
- () => undefined,
1740
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1741
- ])(),
1742
- backgroundAssetId: $pick([
1743
- () => undefined,
1744
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1745
- ])(),
1746
- text: $pick([
1747
- () => undefined,
1748
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1749
- ])()
1750
- });
1751
- const $ro6 = (_recursive = false, _depth = 0) => ({
1752
- crop: $pick([
1753
- () => undefined,
1754
- () => $ro7(_recursive, _recursive ? 1 + _depth : _depth)
1755
- ])()
1756
- });
1757
- const $ro7 = (_recursive = false, _depth = 0) => ({
1758
- x: $pick([
1759
- () => undefined,
1760
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1761
- ])(),
1762
- y: $pick([
1763
- () => undefined,
1764
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1765
- ])(),
1766
- width: $pick([
1767
- () => undefined,
1768
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1769
- ])(),
1770
- height: $pick([
1771
- () => undefined,
1772
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1773
- ])()
1774
- });
1775
- const $ro8 = (_recursive = false, _depth = 0) => ({
1776
- language: $pick([
1777
- () => undefined,
1778
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1779
- ])(),
1780
- pan: $pick([
1781
- () => undefined,
1782
- () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100))
1783
- ])()
1784
- });
1785
- return $ro0();
1786
- };
1787
- export const assertGuardRenderSceneObject = (input, errorFactory) => {
1788
- const __is = input => {
1789
- 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.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io2(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io6(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) && $io8(input.transcribe));
1790
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
1791
- const $io2 = input => Object.keys(input).every(key => {
1792
- const value = input[key];
1793
- if (undefined === value)
1794
- return true;
1795
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
1796
- });
1797
- const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
1798
- const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io5(input.previewSettings));
1799
- const $io5 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
1800
- const $io6 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io7(input.crop);
1801
- const $io7 = 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);
1802
- const $io8 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
1803
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1804
- };
1805
- if (false === __is(input))
1806
- ((input, _path, _exceptionable = true) => {
1807
- const $guard = __typia.createAssertGuard.guard;
1808
- const $join = __typia.createAssertGuard.join;
1809
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
1810
- path: _path + ".id",
1811
- expected: "(string | undefined)",
1812
- value: input.id
1813
- }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
1814
- path: _path + ".preset",
1815
- expected: "(string | undefined)",
1816
- value: input.preset
1817
- }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
1818
- path: _path + ".input",
1819
- expected: "(__type | undefined)",
1820
- value: input.input
1821
- }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
1822
- path: _path + ".input",
1823
- expected: "(__type | undefined)",
1824
- value: input.input
1825
- }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
1826
- path: _path + ".lang",
1827
- expected: "(string | undefined)",
1828
- value: input.lang
1829
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
1830
- path: _path + ".subtitle",
1831
- expected: "(string | undefined)",
1832
- value: input.subtitle
1833
- }, errorFactory)) && (undefined === input.subtitleTracks || ("object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) || $guard(_exceptionable, {
1834
- path: _path + ".subtitleTracks",
1835
- expected: "(__type.o1 | undefined)",
1836
- value: input.subtitleTracks
1837
- }, errorFactory)) && $ao2(input.subtitleTracks, _path + ".subtitleTracks", true && _exceptionable) || $guard(_exceptionable, {
1838
- path: _path + ".subtitleTracks",
1839
- expected: "(__type.o1 | undefined)",
1840
- value: input.subtitleTracks
1841
- }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
1842
- path: _path + ".video",
1843
- expected: "(__type.o4 | undefined)",
1844
- value: input.video
1845
- }, errorFactory)) && $ao6(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
1846
- path: _path + ".video",
1847
- expected: "(__type.o4 | undefined)",
1848
- value: input.video
1849
- }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
1850
- path: _path + ".start",
1851
- expected: "(number | undefined)",
1852
- value: input.start
1853
- }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
1854
- path: _path + ".end",
1855
- expected: "(number | undefined)",
1856
- value: input.end
1857
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
1858
- path: _path + ".transcribe",
1859
- expected: "(__type.o6 | undefined)",
1860
- value: input.transcribe
1861
- }, errorFactory)) && $ao8(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
1862
- path: _path + ".transcribe",
1863
- expected: "(__type.o6 | undefined)",
1864
- value: input.transcribe
1865
- }, errorFactory));
1866
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
1867
- path: _path + ".type",
1868
- expected: "(string | undefined)",
1869
- value: input.type
1870
- }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
1871
- path: _path + ".file",
1872
- expected: "(null | string | undefined)",
1873
- value: input.file
1874
- }, errorFactory));
1875
- const $ao2 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1876
- const value = input[key];
1877
- if (undefined === value)
1878
- return true;
1879
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
1880
- path: _path + $join(key),
1881
- expected: "__type.o2",
1882
- value: value
1883
- }, errorFactory)) && $ao3(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
1884
- path: _path + $join(key),
1885
- expected: "__type.o2",
1886
- value: value
1887
- }, errorFactory);
1888
- });
1889
- const $ao3 = (input, _path, _exceptionable = true) => (null === input.style || undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
1890
- path: _path + ".style",
1891
- expected: "(null | string | undefined)",
1892
- value: input.style
1893
- }, errorFactory)) && (undefined === input.styleOverrides || ("object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) || $guard(_exceptionable, {
1894
- path: _path + ".styleOverrides",
1895
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
1896
- value: input.styleOverrides
1897
- }, errorFactory)) && $ao4(input.styleOverrides, _path + ".styleOverrides", true && _exceptionable) || $guard(_exceptionable, {
1898
- path: _path + ".styleOverrides",
1899
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
1900
- value: input.styleOverrides
1901
- }, errorFactory));
1902
- const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
1903
- path: _path + ".name",
1904
- expected: "(string | undefined)",
1905
- value: input.name
1906
- }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
1907
- path: _path + ".fontname",
1908
- expected: "(string | undefined)",
1909
- value: input.fontname
1910
- }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
1911
- path: _path + ".fontsize",
1912
- expected: "(string | undefined)",
1913
- value: input.fontsize
1914
- }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
1915
- path: _path + ".primaryColour",
1916
- expected: "(string | undefined)",
1917
- value: input.primaryColour
1918
- }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
1919
- path: _path + ".secondaryColour",
1920
- expected: "(string | undefined)",
1921
- value: input.secondaryColour
1922
- }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
1923
- path: _path + ".outlineColour",
1924
- expected: "(string | undefined)",
1925
- value: input.outlineColour
1926
- }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
1927
- path: _path + ".backColour",
1928
- expected: "(string | undefined)",
1929
- value: input.backColour
1930
- }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
1931
- path: _path + ".bold",
1932
- expected: "(string | undefined)",
1933
- value: input.bold
1934
- }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
1935
- path: _path + ".italic",
1936
- expected: "(string | undefined)",
1937
- value: input.italic
1938
- }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
1939
- path: _path + ".underline",
1940
- expected: "(string | undefined)",
1941
- value: input.underline
1942
- }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
1943
- path: _path + ".strikeOut",
1944
- expected: "(string | undefined)",
1945
- value: input.strikeOut
1946
- }, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
1947
- path: _path + ".scaleX",
1948
- expected: "(string | undefined)",
1949
- value: input.scaleX
1950
- }, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
1951
- path: _path + ".scaleY",
1952
- expected: "(string | undefined)",
1953
- value: input.scaleY
1954
- }, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
1955
- path: _path + ".spacing",
1956
- expected: "(string | undefined)",
1957
- value: input.spacing
1958
- }, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
1959
- path: _path + ".angle",
1960
- expected: "(string | undefined)",
1961
- value: input.angle
1962
- }, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
1963
- path: _path + ".borderStyle",
1964
- expected: "(string | undefined)",
1965
- value: input.borderStyle
1966
- }, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
1967
- path: _path + ".outline",
1968
- expected: "(string | undefined)",
1969
- value: input.outline
1970
- }, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
1971
- path: _path + ".shadow",
1972
- expected: "(string | undefined)",
1973
- value: input.shadow
1974
- }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
1975
- path: _path + ".alignment",
1976
- expected: "(string | undefined)",
1977
- value: input.alignment
1978
- }, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
1979
- path: _path + ".marginL",
1980
- expected: "(string | undefined)",
1981
- value: input.marginL
1982
- }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
1983
- path: _path + ".marginR",
1984
- expected: "(string | undefined)",
1985
- value: input.marginR
1986
- }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
1987
- path: _path + ".marginV",
1988
- expected: "(string | undefined)",
1989
- value: input.marginV
1990
- }, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
1991
- path: _path + ".encoding",
1992
- expected: "(string | undefined)",
1993
- value: input.encoding
1994
- }, errorFactory)) && (undefined === input.previewSettings || ("object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) || $guard(_exceptionable, {
1995
- path: _path + ".previewSettings",
1996
- expected: "(__type.o3 | undefined)",
1997
- value: input.previewSettings
1998
- }, errorFactory)) && $ao5(input.previewSettings, _path + ".previewSettings", true && _exceptionable) || $guard(_exceptionable, {
1999
- path: _path + ".previewSettings",
2000
- expected: "(__type.o3 | undefined)",
2001
- value: input.previewSettings
2002
- }, errorFactory));
2003
- const $ao5 = (input, _path, _exceptionable = true) => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio || $guard(_exceptionable, {
2004
- path: _path + ".aspectRatio",
2005
- expected: "(string | undefined)",
2006
- value: input.aspectRatio
2007
- }, errorFactory)) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId || $guard(_exceptionable, {
2008
- path: _path + ".backgroundAssetId",
2009
- expected: "(string | undefined)",
2010
- value: input.backgroundAssetId
2011
- }, errorFactory)) && (undefined === input.text || "string" === typeof input.text || $guard(_exceptionable, {
2012
- path: _path + ".text",
2013
- expected: "(string | undefined)",
2014
- value: input.text
2015
- }, errorFactory));
2016
- const $ao6 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
2017
- path: _path + ".crop",
2018
- expected: "(__type.o5 | undefined)",
2019
- value: input.crop
2020
- }, errorFactory)) && $ao7(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
2021
- path: _path + ".crop",
2022
- expected: "(__type.o5 | undefined)",
2023
- value: input.crop
2024
- }, errorFactory);
2025
- const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
2026
- path: _path + ".x",
2027
- expected: "(number | undefined)",
2028
- value: input.x
2029
- }, errorFactory)) && (undefined === input.y || "number" === typeof input.y || $guard(_exceptionable, {
2030
- path: _path + ".y",
2031
- expected: "(number | undefined)",
2032
- value: input.y
2033
- }, errorFactory)) && (undefined === input.width || "number" === typeof input.width || $guard(_exceptionable, {
2034
- path: _path + ".width",
2035
- expected: "(number | undefined)",
2036
- value: input.width
2037
- }, errorFactory)) && (undefined === input.height || "number" === typeof input.height || $guard(_exceptionable, {
2038
- path: _path + ".height",
2039
- expected: "(number | undefined)",
2040
- value: input.height
2041
- }, errorFactory));
2042
- const $ao8 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
2043
- path: _path + ".language",
2044
- expected: "(string | undefined)",
2045
- value: input.language
2046
- }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
2047
- path: _path + ".pan",
2048
- expected: "(Array<number> | undefined)",
2049
- value: input.pan
2050
- }, errorFactory)) && input.pan.every((elem, _index1) => "number" === typeof elem || $guard(_exceptionable, {
2051
- path: _path + ".pan[" + _index1 + "]",
2052
- expected: "number",
2053
- value: elem
2054
- }, errorFactory)) || $guard(_exceptionable, {
2055
- path: _path + ".pan",
2056
- expected: "(Array<number> | undefined)",
2057
- value: input.pan
2058
- }, errorFactory));
2059
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
2060
- path: _path + "",
2061
- expected: "RenderSceneObject",
2062
- value: input
2063
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
2064
- path: _path + "",
2065
- expected: "RenderSceneObject",
2066
- value: input
2067
- }, errorFactory);
2068
- })(input, "$input", true);
2069
- };
2070
- export const stringifyRenderSceneObject = input => {
2071
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
2072
- const $io2 = input => Object.keys(input).every(key => {
2073
- const value = input[key];
2074
- if (undefined === value)
2075
- return true;
2076
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
2077
- });
2078
- const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
2079
- const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io5(input.previewSettings));
2080
- const $io5 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
2081
- const $io6 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io7(input.crop);
2082
- const $io7 = 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);
2083
- const $io8 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
2084
- const $string = __typia.json.createStringify.string;
2085
- const $tail = __typia.json.createStringify.tail;
2086
- 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.subtitleTracks ? "" : `"subtitleTracks":${undefined !== input.subtitleTracks ? $so2(input.subtitleTracks) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so6(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 ? $so8(input.transcribe) : undefined}`}`)}}`;
2087
- 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}`}`)}}`;
2088
- const $so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
2089
- return ""; return `${JSON.stringify(key)}:${$so3(value)}`; }).filter(str => "" !== str).join(",")}}`;
2090
- const $so3 = input => `{${$tail(`${undefined === input.style ? "" : `"style":${undefined !== input.style ? null !== input.style ? $string(input.style) : "null" : undefined},`}${undefined === input.styleOverrides ? "" : `"styleOverrides":${undefined !== input.styleOverrides ? $so4(input.styleOverrides) : undefined}`}`)}}`;
2091
- const $so4 = input => `{${$tail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? $string(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? $string(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? $string(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? $string(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? $string(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? $string(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? $string(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? $string(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? $string(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? $string(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? $string(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? $string(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? $string(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? $string(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? $string(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? $string(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? $string(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? $string(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? $string(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? $string(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? $string(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? $string(input.encoding) : undefined},`}${undefined === input.previewSettings ? "" : `"previewSettings":${undefined !== input.previewSettings ? $so5(input.previewSettings) : undefined}`}`)}}`;
2092
- const $so5 = input => `{${$tail(`${undefined === input.aspectRatio ? "" : `"aspectRatio":${undefined !== input.aspectRatio ? $string(input.aspectRatio) : undefined},`}${undefined === input.backgroundAssetId ? "" : `"backgroundAssetId":${undefined !== input.backgroundAssetId ? $string(input.backgroundAssetId) : undefined},`}${undefined === input.text ? "" : `"text":${undefined !== input.text ? $string(input.text) : undefined}`}`)}}`;
2093
- const $so6 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so7(input.crop) : undefined}`}`)}}`;
2094
- const $so7 = 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}`}`)}}`;
2095
- const $so8 = 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}`}`)}}`;
2096
- return $so0(input);
2097
- };
2098
- export const assertStringifyRenderSceneObject = (input, errorFactory) => { const assert = (input, errorFactory) => {
2099
- const __is = input => {
2100
- 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.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io2(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io6(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) && $io8(input.transcribe));
2101
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
2102
- const $io2 = input => Object.keys(input).every(key => {
2103
- const value = input[key];
2104
- if (undefined === value)
2105
- return true;
2106
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
2107
- });
2108
- const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
2109
- const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io5(input.previewSettings));
2110
- const $io5 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
2111
- const $io6 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io7(input.crop);
2112
- const $io7 = 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));
2113
- const $io8 = 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)));
2114
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
2115
- };
2116
- if (false === __is(input))
2117
- ((input, _path, _exceptionable = true) => {
2118
- const $guard = __typia.json.createAssertStringify.guard;
2119
- const $join = __typia.json.createAssertStringify.join;
2120
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
2121
- path: _path + ".id",
2122
- expected: "(string | undefined)",
2123
- value: input.id
2124
- }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
2125
- path: _path + ".preset",
2126
- expected: "(string | undefined)",
2127
- value: input.preset
2128
- }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
2129
- path: _path + ".input",
2130
- expected: "(__type | undefined)",
2131
- value: input.input
2132
- }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
2133
- path: _path + ".input",
2134
- expected: "(__type | undefined)",
2135
- value: input.input
2136
- }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
2137
- path: _path + ".lang",
2138
- expected: "(string | undefined)",
2139
- value: input.lang
2140
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
2141
- path: _path + ".subtitle",
2142
- expected: "(string | undefined)",
2143
- value: input.subtitle
2144
- }, errorFactory)) && (undefined === input.subtitleTracks || ("object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) || $guard(_exceptionable, {
2145
- path: _path + ".subtitleTracks",
2146
- expected: "(__type.o1 | undefined)",
2147
- value: input.subtitleTracks
2148
- }, errorFactory)) && $ao2(input.subtitleTracks, _path + ".subtitleTracks", true && _exceptionable) || $guard(_exceptionable, {
2149
- path: _path + ".subtitleTracks",
2150
- expected: "(__type.o1 | undefined)",
2151
- value: input.subtitleTracks
2152
- }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
2153
- path: _path + ".video",
2154
- expected: "(__type.o4 | undefined)",
2155
- value: input.video
2156
- }, errorFactory)) && $ao6(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
2157
- path: _path + ".video",
2158
- expected: "(__type.o4 | undefined)",
2159
- value: input.video
2160
- }, errorFactory)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start) || $guard(_exceptionable, {
2161
- path: _path + ".start",
2162
- expected: "(number | undefined)",
2163
- value: input.start
2164
- }, errorFactory)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end) || $guard(_exceptionable, {
2165
- path: _path + ".end",
2166
- expected: "(number | undefined)",
2167
- value: input.end
2168
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
2169
- path: _path + ".transcribe",
2170
- expected: "(__type.o6 | undefined)",
2171
- value: input.transcribe
2172
- }, errorFactory)) && $ao8(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
2173
- path: _path + ".transcribe",
2174
- expected: "(__type.o6 | undefined)",
2175
- value: input.transcribe
2176
- }, errorFactory));
2177
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
2178
- path: _path + ".type",
2179
- expected: "(string | undefined)",
2180
- value: input.type
2181
- }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
2182
- path: _path + ".file",
2183
- expected: "(null | string | undefined)",
2184
- value: input.file
2185
- }, errorFactory));
2186
- const $ao2 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
2187
- const value = input[key];
2188
- if (undefined === value)
2189
- return true;
2190
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
2191
- path: _path + $join(key),
2192
- expected: "__type.o2",
2193
- value: value
2194
- }, errorFactory)) && $ao3(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
2195
- path: _path + $join(key),
2196
- expected: "__type.o2",
2197
- value: value
2198
- }, errorFactory);
2199
- });
2200
- const $ao3 = (input, _path, _exceptionable = true) => (null === input.style || undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
2201
- path: _path + ".style",
2202
- expected: "(null | string | undefined)",
2203
- value: input.style
2204
- }, errorFactory)) && (undefined === input.styleOverrides || ("object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) || $guard(_exceptionable, {
2205
- path: _path + ".styleOverrides",
2206
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
2207
- value: input.styleOverrides
2208
- }, errorFactory)) && $ao4(input.styleOverrides, _path + ".styleOverrides", true && _exceptionable) || $guard(_exceptionable, {
2209
- path: _path + ".styleOverrides",
2210
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
2211
- value: input.styleOverrides
2212
- }, errorFactory));
2213
- const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
2214
- path: _path + ".name",
2215
- expected: "(string | undefined)",
2216
- value: input.name
2217
- }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
2218
- path: _path + ".fontname",
2219
- expected: "(string | undefined)",
2220
- value: input.fontname
2221
- }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
2222
- path: _path + ".fontsize",
2223
- expected: "(string | undefined)",
2224
- value: input.fontsize
2225
- }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
2226
- path: _path + ".primaryColour",
2227
- expected: "(string | undefined)",
2228
- value: input.primaryColour
2229
- }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
2230
- path: _path + ".secondaryColour",
2231
- expected: "(string | undefined)",
2232
- value: input.secondaryColour
2233
- }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
2234
- path: _path + ".outlineColour",
2235
- expected: "(string | undefined)",
2236
- value: input.outlineColour
2237
- }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
2238
- path: _path + ".backColour",
2239
- expected: "(string | undefined)",
2240
- value: input.backColour
2241
- }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
2242
- path: _path + ".bold",
2243
- expected: "(string | undefined)",
2244
- value: input.bold
2245
- }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
2246
- path: _path + ".italic",
2247
- expected: "(string | undefined)",
2248
- value: input.italic
2249
- }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
2250
- path: _path + ".underline",
2251
- expected: "(string | undefined)",
2252
- value: input.underline
2253
- }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
2254
- path: _path + ".strikeOut",
2255
- expected: "(string | undefined)",
2256
- value: input.strikeOut
2257
- }, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
2258
- path: _path + ".scaleX",
2259
- expected: "(string | undefined)",
2260
- value: input.scaleX
2261
- }, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
2262
- path: _path + ".scaleY",
2263
- expected: "(string | undefined)",
2264
- value: input.scaleY
2265
- }, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
2266
- path: _path + ".spacing",
2267
- expected: "(string | undefined)",
2268
- value: input.spacing
2269
- }, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
2270
- path: _path + ".angle",
2271
- expected: "(string | undefined)",
2272
- value: input.angle
2273
- }, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
2274
- path: _path + ".borderStyle",
2275
- expected: "(string | undefined)",
2276
- value: input.borderStyle
2277
- }, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
2278
- path: _path + ".outline",
2279
- expected: "(string | undefined)",
2280
- value: input.outline
2281
- }, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
2282
- path: _path + ".shadow",
2283
- expected: "(string | undefined)",
2284
- value: input.shadow
2285
- }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
2286
- path: _path + ".alignment",
2287
- expected: "(string | undefined)",
2288
- value: input.alignment
2289
- }, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
2290
- path: _path + ".marginL",
2291
- expected: "(string | undefined)",
2292
- value: input.marginL
2293
- }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
2294
- path: _path + ".marginR",
2295
- expected: "(string | undefined)",
2296
- value: input.marginR
2297
- }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
2298
- path: _path + ".marginV",
2299
- expected: "(string | undefined)",
2300
- value: input.marginV
2301
- }, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
2302
- path: _path + ".encoding",
2303
- expected: "(string | undefined)",
2304
- value: input.encoding
2305
- }, errorFactory)) && (undefined === input.previewSettings || ("object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) || $guard(_exceptionable, {
2306
- path: _path + ".previewSettings",
2307
- expected: "(__type.o3 | undefined)",
2308
- value: input.previewSettings
2309
- }, errorFactory)) && $ao5(input.previewSettings, _path + ".previewSettings", true && _exceptionable) || $guard(_exceptionable, {
2310
- path: _path + ".previewSettings",
2311
- expected: "(__type.o3 | undefined)",
2312
- value: input.previewSettings
2313
- }, errorFactory));
2314
- const $ao5 = (input, _path, _exceptionable = true) => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio || $guard(_exceptionable, {
2315
- path: _path + ".aspectRatio",
2316
- expected: "(string | undefined)",
2317
- value: input.aspectRatio
2318
- }, errorFactory)) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId || $guard(_exceptionable, {
2319
- path: _path + ".backgroundAssetId",
2320
- expected: "(string | undefined)",
2321
- value: input.backgroundAssetId
2322
- }, errorFactory)) && (undefined === input.text || "string" === typeof input.text || $guard(_exceptionable, {
2323
- path: _path + ".text",
2324
- expected: "(string | undefined)",
2325
- value: input.text
2326
- }, errorFactory));
2327
- const $ao6 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
2328
- path: _path + ".crop",
2329
- expected: "(__type.o5 | undefined)",
2330
- value: input.crop
2331
- }, errorFactory)) && $ao7(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
2332
- path: _path + ".crop",
2333
- expected: "(__type.o5 | undefined)",
2334
- value: input.crop
2335
- }, errorFactory);
2336
- const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x) || $guard(_exceptionable, {
2337
- path: _path + ".x",
2338
- expected: "(number | undefined)",
2339
- value: input.x
2340
- }, errorFactory)) && (undefined === input.y || "number" === typeof input.y && !Number.isNaN(input.y) || $guard(_exceptionable, {
2341
- path: _path + ".y",
2342
- expected: "(number | undefined)",
2343
- value: input.y
2344
- }, errorFactory)) && (undefined === input.width || "number" === typeof input.width && !Number.isNaN(input.width) || $guard(_exceptionable, {
2345
- path: _path + ".width",
2346
- expected: "(number | undefined)",
2347
- value: input.width
2348
- }, errorFactory)) && (undefined === input.height || "number" === typeof input.height && !Number.isNaN(input.height) || $guard(_exceptionable, {
2349
- path: _path + ".height",
2350
- expected: "(number | undefined)",
2351
- value: input.height
2352
- }, errorFactory));
2353
- const $ao8 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
2354
- path: _path + ".language",
2355
- expected: "(string | undefined)",
2356
- value: input.language
2357
- }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
2358
- path: _path + ".pan",
2359
- expected: "(Array<number> | undefined)",
2360
- value: input.pan
2361
- }, errorFactory)) && input.pan.every((elem, _index1) => "number" === typeof elem && !Number.isNaN(elem) || $guard(_exceptionable, {
2362
- path: _path + ".pan[" + _index1 + "]",
2363
- expected: "number",
2364
- value: elem
2365
- }, errorFactory)) || $guard(_exceptionable, {
2366
- path: _path + ".pan",
2367
- expected: "(Array<number> | undefined)",
2368
- value: input.pan
2369
- }, errorFactory));
2370
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
2371
- path: _path + "",
2372
- expected: "RenderSceneObject",
2373
- value: input
2374
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
2375
- path: _path + "",
2376
- expected: "RenderSceneObject",
2377
- value: input
2378
- }, errorFactory);
2379
- })(input, "$input", true);
2380
- return input;
2381
- }; const stringify = input => {
2382
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
2383
- const $io2 = input => Object.keys(input).every(key => {
2384
- const value = input[key];
2385
- if (undefined === value)
2386
- return true;
2387
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io3(value);
2388
- });
2389
- const $io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io4(input.styleOverrides));
2390
- const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io5(input.previewSettings));
2391
- const $io5 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
2392
- const $io6 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io7(input.crop);
2393
- const $io7 = 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);
2394
- const $io8 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
2395
- const $string = __typia.json.createAssertStringify.string;
2396
- const $tail = __typia.json.createAssertStringify.tail;
2397
- 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.subtitleTracks ? "" : `"subtitleTracks":${undefined !== input.subtitleTracks ? $so2(input.subtitleTracks) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so6(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 ? $so8(input.transcribe) : undefined}`}`)}}`;
2398
- 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}`}`)}}`;
2399
- const $so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
2400
- return ""; return `${JSON.stringify(key)}:${$so3(value)}`; }).filter(str => "" !== str).join(",")}}`;
2401
- const $so3 = input => `{${$tail(`${undefined === input.style ? "" : `"style":${undefined !== input.style ? null !== input.style ? $string(input.style) : "null" : undefined},`}${undefined === input.styleOverrides ? "" : `"styleOverrides":${undefined !== input.styleOverrides ? $so4(input.styleOverrides) : undefined}`}`)}}`;
2402
- const $so4 = input => `{${$tail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? $string(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? $string(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? $string(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? $string(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? $string(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? $string(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? $string(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? $string(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? $string(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? $string(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? $string(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? $string(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? $string(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? $string(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? $string(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? $string(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? $string(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? $string(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? $string(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? $string(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? $string(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? $string(input.encoding) : undefined},`}${undefined === input.previewSettings ? "" : `"previewSettings":${undefined !== input.previewSettings ? $so5(input.previewSettings) : undefined}`}`)}}`;
2403
- const $so5 = input => `{${$tail(`${undefined === input.aspectRatio ? "" : `"aspectRatio":${undefined !== input.aspectRatio ? $string(input.aspectRatio) : undefined},`}${undefined === input.backgroundAssetId ? "" : `"backgroundAssetId":${undefined !== input.backgroundAssetId ? $string(input.backgroundAssetId) : undefined},`}${undefined === input.text ? "" : `"text":${undefined !== input.text ? $string(input.text) : undefined}`}`)}}`;
2404
- const $so6 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so7(input.crop) : undefined}`}`)}}`;
2405
- const $so7 = 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}`}`)}}`;
2406
- const $so8 = 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}`}`)}}`;
2407
- return $so0(input);
2408
- }; return stringify(assert(input, errorFactory)); };
1
+ export {};