@littlepress/renderer-web 0.0.0-stage → 1.0.0

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 (187) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +20 -0
  3. package/README.md +229 -2
  4. package/dist/answer/answerComponents.d.ts +107 -0
  5. package/dist/answer/answerComponents.js +637 -0
  6. package/dist/answer/download.d.ts +63 -0
  7. package/dist/answer/download.js +109 -0
  8. package/dist/answer/downloadExport.d.ts +44 -0
  9. package/dist/answer/downloadExport.js +266 -0
  10. package/dist/answer/hostValues.d.ts +28 -0
  11. package/dist/answer/hostValues.js +379 -0
  12. package/dist/answer/mapComponent.d.ts +6 -0
  13. package/dist/answer/mapComponent.js +213 -0
  14. package/dist/answer/math.d.ts +57 -0
  15. package/dist/answer/math.js +168 -0
  16. package/dist/answer/surfaceStream.d.ts +51 -0
  17. package/dist/answer/surfaceStream.js +260 -0
  18. package/dist/answer/tableLayout.d.ts +42 -0
  19. package/dist/answer/tableLayout.js +89 -0
  20. package/dist/controls/ActionFeedback.d.ts +5 -0
  21. package/dist/controls/ActionFeedback.js +43 -0
  22. package/dist/controls/actionDispatch.d.ts +51 -0
  23. package/dist/controls/actionDispatch.js +211 -0
  24. package/dist/controls/actionOutcome.generated.d.ts +64 -0
  25. package/dist/controls/actionOutcome.generated.js +64 -0
  26. package/dist/controls/calculationPublisher.d.ts +14 -0
  27. package/dist/controls/calculationPublisher.js +6 -0
  28. package/dist/controls/calculations.d.ts +20 -0
  29. package/dist/controls/calculations.generated.d.ts +73 -0
  30. package/dist/controls/calculations.generated.js +85 -0
  31. package/dist/controls/calculations.js +208 -0
  32. package/dist/controls/controlState.d.ts +84 -0
  33. package/dist/controls/controlState.js +256 -0
  34. package/dist/controls/fieldMessages.d.ts +41 -0
  35. package/dist/controls/fieldMessages.js +81 -0
  36. package/dist/controls/fieldValidation.d.ts +19 -0
  37. package/dist/controls/fieldValidation.js +98 -0
  38. package/dist/controls/formComponents.d.ts +23 -0
  39. package/dist/controls/formComponents.js +738 -0
  40. package/dist/controls/formProgress.d.ts +63 -0
  41. package/dist/controls/formProgress.js +122 -0
  42. package/dist/controls/inputDrafts.d.ts +55 -0
  43. package/dist/controls/inputDrafts.js +183 -0
  44. package/dist/controls/inputValidation.d.ts +33 -0
  45. package/dist/controls/inputValidation.js +119 -0
  46. package/dist/controls/localWrites.d.ts +9 -0
  47. package/dist/controls/localWrites.js +29 -0
  48. package/dist/core/A2uiSurface.d.ts +13 -0
  49. package/dist/core/A2uiSurface.js +15 -0
  50. package/dist/core/AtlasIcon.d.ts +18 -0
  51. package/dist/core/AtlasIcon.js +22 -0
  52. package/dist/core/AtlasMedia.d.ts +22 -0
  53. package/dist/core/AtlasMedia.js +45 -0
  54. package/dist/core/Carousel.d.ts +61 -0
  55. package/dist/core/Carousel.js +183 -0
  56. package/dist/core/CoreMedia.d.ts +19 -0
  57. package/dist/core/CoreMedia.js +25 -0
  58. package/dist/core/FoundationA2uiSurface.d.ts +86 -0
  59. package/dist/core/FoundationA2uiSurface.js +440 -0
  60. package/dist/core/ImagePreview.d.ts +42 -0
  61. package/dist/core/ImagePreview.js +73 -0
  62. package/dist/core/LucideIcon.d.ts +19 -0
  63. package/dist/core/LucideIcon.js +42 -0
  64. package/dist/core/SurfaceLink.d.ts +35 -0
  65. package/dist/core/SurfaceLink.js +60 -0
  66. package/dist/core/appearance/aegis.d.ts +49 -0
  67. package/dist/core/appearance/aegis.js +34 -0
  68. package/dist/core/appearance/colour.d.ts +24 -0
  69. package/dist/core/appearance/colour.js +103 -0
  70. package/dist/core/appearance/css.d.ts +17 -0
  71. package/dist/core/appearance/css.js +153 -0
  72. package/dist/core/appearance/presets.generated.d.ts +4 -0
  73. package/dist/core/appearance/presets.generated.js +1184 -0
  74. package/dist/core/appearance/react.d.ts +29 -0
  75. package/dist/core/appearance/react.js +110 -0
  76. package/dist/core/appearance/resolve.d.ts +76 -0
  77. package/dist/core/appearance/resolve.js +127 -0
  78. package/dist/core/appearance/textScale.d.ts +11 -0
  79. package/dist/core/appearance/textScale.js +51 -0
  80. package/dist/core/appearance/theme.d.ts +138 -0
  81. package/dist/core/appearance/theme.js +274 -0
  82. package/dist/core/baseComponents.d.ts +53 -0
  83. package/dist/core/baseComponents.js +480 -0
  84. package/dist/core/binding.d.ts +46 -0
  85. package/dist/core/binding.js +118 -0
  86. package/dist/core/bundle.d.ts +23 -0
  87. package/dist/core/bundle.js +75 -0
  88. package/dist/core/catalog/catalog-index.generated.d.ts +44 -0
  89. package/dist/core/catalog/catalog-index.generated.js +79 -0
  90. package/dist/core/catalog/icons.generated.d.ts +6 -0
  91. package/dist/core/catalog/icons.generated.js +1788 -0
  92. package/dist/core/catalog.d.ts +6 -0
  93. package/dist/core/catalog.generated.d.ts +50 -0
  94. package/dist/core/catalog.generated.js +2174 -0
  95. package/dist/core/catalog.js +8 -0
  96. package/dist/core/chartRows.d.ts +7 -0
  97. package/dist/core/chartRows.js +38 -0
  98. package/dist/core/component-support.d.ts +39 -0
  99. package/dist/core/component-support.js +127 -0
  100. package/dist/core/components/actions.d.ts +4 -0
  101. package/dist/core/components/actions.js +21 -0
  102. package/dist/core/components/cards.d.ts +9 -0
  103. package/dist/core/components/cards.js +227 -0
  104. package/dist/core/components/charts.d.ts +18 -0
  105. package/dist/core/components/charts.js +412 -0
  106. package/dist/core/components/comparisonTable.d.ts +50 -0
  107. package/dist/core/components/comparisonTable.js +89 -0
  108. package/dist/core/components/content.d.ts +13 -0
  109. package/dist/core/components/content.js +108 -0
  110. package/dist/core/components/seriesCharts.d.ts +531 -0
  111. package/dist/core/components/seriesCharts.js +1053 -0
  112. package/dist/core/components/stepFlow.d.ts +7 -0
  113. package/dist/core/components/stepFlow.js +13 -0
  114. package/dist/core/components.full.d.ts +10 -0
  115. package/dist/core/components.full.js +41 -0
  116. package/dist/core/context.d.ts +207 -0
  117. package/dist/core/context.js +172 -0
  118. package/dist/core/coverage.d.ts +30 -0
  119. package/dist/core/coverage.js +93 -0
  120. package/dist/core/foundation.d.ts +21 -0
  121. package/dist/core/foundation.js +22 -0
  122. package/dist/core/fullTheme.d.ts +5 -0
  123. package/dist/core/fullTheme.js +9 -0
  124. package/dist/core/iconNodes.generated.d.ts +7 -0
  125. package/dist/core/iconNodes.generated.js +5 -0
  126. package/dist/core/lucideIcons.d.ts +5 -0
  127. package/dist/core/lucideIcons.js +7 -0
  128. package/dist/core/messages.d.ts +111 -0
  129. package/dist/core/messages.js +134 -0
  130. package/dist/core/pointer.d.ts +17 -0
  131. package/dist/core/pointer.js +104 -0
  132. package/dist/core/registry.d.ts +12 -0
  133. package/dist/core/registry.js +114 -0
  134. package/dist/core/runtime.d.ts +8 -0
  135. package/dist/core/runtime.js +6 -0
  136. package/dist/core/state.d.ts +73 -0
  137. package/dist/core/state.js +274 -0
  138. package/dist/core/surfaceMotion.d.ts +5 -0
  139. package/dist/core/surfaceMotion.js +46 -0
  140. package/dist/core/theme.d.ts +5 -0
  141. package/dist/core/theme.js +7 -0
  142. package/dist/core/useSurfaceImage.d.ts +20 -0
  143. package/dist/core/useSurfaceImage.js +65 -0
  144. package/dist/graph/RelationshipGraph.d.ts +14 -0
  145. package/dist/graph/RelationshipGraph.js +206 -0
  146. package/dist/graph/model.d.ts +20 -0
  147. package/dist/graph/model.js +36 -0
  148. package/dist/graph/program/assets.d.ts +3 -0
  149. package/dist/graph/program/assets.js +3 -0
  150. package/dist/graph/program/bridge.d.ts +6 -0
  151. package/dist/graph/program/bridge.generated.d.ts +136 -0
  152. package/dist/graph/program/bridge.generated.js +1 -0
  153. package/dist/graph/program/bridge.js +24 -0
  154. package/dist/graph/program/bridge.schema.json +717 -0
  155. package/dist/graph/program/bridgeValidator.cjs +2 -0
  156. package/dist/graph/program/bridgeValidator.d.cts +4 -0
  157. package/dist/graph/program/runner.d.ts +1 -0
  158. package/dist/graph/program/runner.html +2193 -0
  159. package/dist/graph/program/runner.js +157 -0
  160. package/dist/graph/program/runtime-manifest.json +1 -0
  161. package/dist/graph/program/view.d.ts +11 -0
  162. package/dist/graph/program/view.js +210 -0
  163. package/dist/graph/program/worker.d.ts +1 -0
  164. package/dist/graph/program/worker.js +2186 -0
  165. package/dist/index.d.ts +20 -0
  166. package/dist/index.js +45 -0
  167. package/dist/internal/dsh.d.ts +4 -0
  168. package/dist/internal/dsh.js +3 -0
  169. package/dist/internal/relationship-graph.d.ts +4 -0
  170. package/dist/internal/relationship-graph.js +7202 -0
  171. package/dist/page/layoutComponents.d.ts +6 -0
  172. package/dist/page/layoutComponents.js +123 -0
  173. package/dist/page/layoutGeometry.d.ts +68 -0
  174. package/dist/page/layoutGeometry.js +174 -0
  175. package/dist/page/pageFormat.d.ts +34 -0
  176. package/dist/page/pageFormat.js +119 -0
  177. package/dist/page/printFit.d.ts +81 -0
  178. package/dist/page/printFit.js +338 -0
  179. package/dist/react/index.d.ts +5 -0
  180. package/dist/react/index.js +2 -0
  181. package/dist/report/locate.d.ts +42 -0
  182. package/dist/report/locate.js +34 -0
  183. package/dist/styles/renderer.css +4580 -0
  184. package/licenses/LUCIDE-LICENSE.txt +43 -0
  185. package/licenses/QUICKJS-EMSCRIPTEN-LICENSE.txt +21 -0
  186. package/licenses/QUICKJS-VARIANT-LICENSE.txt +47 -0
  187. package/package.json +68 -3
@@ -0,0 +1,2 @@
1
+ /* Generated from program-graph-bridge.json. Do not edit. */
2
+ "use strict";module.exports = validate20;module.exports.default = validate20;const schema31 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://littlepress.ai/schemas/program-graph-bridge-v1.json","description":"Foundation-owned relationship graph runtime bridge v1; not a general Canvas protocol.","$defs":{"GraphData":{"type":"object","properties":{"nodes":{"type":"array","minItems":1,"maxItems":24,"items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"label":{"type":"string","minLength":1,"maxLength":160}},"required":["id","label"],"additionalProperties":false}},"edges":{"type":"array","maxItems":64,"items":{"type":"object","properties":{"from":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"to":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"required":["from","to"],"additionalProperties":false}}},"required":["nodes","edges"],"additionalProperties":false},"GraphPoint":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"x":{"type":"number","minimum":0,"maximum":10000},"y":{"type":"number","minimum":0,"maximum":10000}},"required":["id","x","y"],"additionalProperties":false},"GraphConnectedMessage":{"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"connected"}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind"],"additionalProperties":false},"GraphInitializeMessage":{"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"initialize"},"body":{"type":"object","properties":{"graph":{"$ref":"#/$defs/GraphData"},"selectedId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},{"type":"null"}]},"sourceText":{"type":"string","minLength":1,"maxLength":1048576},"locale":{"enum":["en","zh"]}},"required":["graph","selectedId","sourceText","locale"],"additionalProperties":false}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind","body"],"additionalProperties":false},"GraphStateMessage":{"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"state"},"body":{"type":"object","properties":{"selectedId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},{"type":"null"}]}},"required":["selectedId"],"additionalProperties":false}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind","body"],"additionalProperties":false},"GraphInputMessage":{"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"input"},"body":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"required":["id"],"additionalProperties":false}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind","body"],"additionalProperties":false},"GraphSceneMessage":{"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"scene"},"body":{"type":"object","properties":{"positions":{"type":"array","minItems":1,"maxItems":24,"items":{"$ref":"#/$defs/GraphPoint"}}},"required":["positions"],"additionalProperties":false}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind","body"],"additionalProperties":false},"GraphSelectMessage":{"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"select"},"body":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"required":["id"],"additionalProperties":false}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind","body"],"additionalProperties":false},"GraphReadyMessage":{"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"ready"}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind"],"additionalProperties":false},"GraphFailedMessage":{"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"failed"},"body":{"type":"object","properties":{"code":{"enum":["engine_init","execution","budget","invalid_scene","protocol","worker_timeout","first_frame_timeout"]}},"required":["code"],"additionalProperties":false}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind","body"],"additionalProperties":false},"GraphSuspendMessage":{"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"suspend"}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind"],"additionalProperties":false},"GraphResumeMessage":{"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"resume"},"body":{"type":"object","properties":{"selectedId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},{"type":"null"}]}},"required":["selectedId"],"additionalProperties":false}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind","body"],"additionalProperties":false},"GraphSettledMessage":{"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"settled"}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind"],"additionalProperties":false},"GraphDisposeMessage":{"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"dispose"}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind"],"additionalProperties":false}},"anyOf":[{"$ref":"#/$defs/GraphConnectedMessage"},{"$ref":"#/$defs/GraphInitializeMessage"},{"$ref":"#/$defs/GraphStateMessage"},{"$ref":"#/$defs/GraphInputMessage"},{"$ref":"#/$defs/GraphSceneMessage"},{"$ref":"#/$defs/GraphSelectMessage"},{"$ref":"#/$defs/GraphReadyMessage"},{"$ref":"#/$defs/GraphFailedMessage"},{"$ref":"#/$defs/GraphSuspendMessage"},{"$ref":"#/$defs/GraphResumeMessage"},{"$ref":"#/$defs/GraphSettledMessage"},{"$ref":"#/$defs/GraphDisposeMessage"}]};const schema32 = {"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"connected"}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind"],"additionalProperties":false};const schema35 = {"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"state"},"body":{"type":"object","properties":{"selectedId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},{"type":"null"}]}},"required":["selectedId"],"additionalProperties":false}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind","body"],"additionalProperties":false};const schema36 = {"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"input"},"body":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"required":["id"],"additionalProperties":false}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind","body"],"additionalProperties":false};const schema39 = {"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"select"},"body":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"required":["id"],"additionalProperties":false}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind","body"],"additionalProperties":false};const schema40 = {"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"ready"}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind"],"additionalProperties":false};const schema41 = {"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"failed"},"body":{"type":"object","properties":{"code":{"enum":["engine_init","execution","budget","invalid_scene","protocol","worker_timeout","first_frame_timeout"]}},"required":["code"],"additionalProperties":false}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind","body"],"additionalProperties":false};const schema42 = {"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"suspend"}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind"],"additionalProperties":false};const schema43 = {"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"resume"},"body":{"type":"object","properties":{"selectedId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},{"type":"null"}]}},"required":["selectedId"],"additionalProperties":false}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind","body"],"additionalProperties":false};const schema44 = {"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"settled"}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind"],"additionalProperties":false};const schema45 = {"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"dispose"}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind"],"additionalProperties":false};const func0 = Object.prototype.hasOwnProperty;const pattern4 = new RegExp("^[a-f0-9-]{36}$", "u");const pattern10 = new RegExp("^[A-Za-z0-9_-]{1,64}$", "u");const schema33 = {"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"initialize"},"body":{"type":"object","properties":{"graph":{"$ref":"#/$defs/GraphData"},"selectedId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},{"type":"null"}]},"sourceText":{"type":"string","minLength":1,"maxLength":1048576},"locale":{"enum":["en","zh"]}},"required":["graph","selectedId","sourceText","locale"],"additionalProperties":false}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind","body"],"additionalProperties":false};const schema34 = {"type":"object","properties":{"nodes":{"type":"array","minItems":1,"maxItems":24,"items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"label":{"type":"string","minLength":1,"maxLength":160}},"required":["id","label"],"additionalProperties":false}},"edges":{"type":"array","maxItems":64,"items":{"type":"object","properties":{"from":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"to":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"required":["from","to"],"additionalProperties":false}}},"required":["nodes","edges"],"additionalProperties":false};const func98 = require("ajv/dist/runtime/ucs2length").default;function validate21(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate21.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((((((data.bridge_version === undefined) || (!(func0.call(data, "bridge_version")))) && (missing0 = "bridge_version")) || (((data.instance_id === undefined) || (!(func0.call(data, "instance_id")))) && (missing0 = "instance_id"))) || (((data.session_id === undefined) || (!(func0.call(data, "session_id")))) && (missing0 = "session_id"))) || (((data.execution_id === undefined) || (!(func0.call(data, "execution_id")))) && (missing0 = "execution_id"))) || (((data.state_revision === undefined) || (!(func0.call(data, "state_revision")))) && (missing0 = "state_revision"))) || (((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing0 = "kind"))) || (((data.body === undefined) || (!(func0.call(data, "body")))) && (missing0 = "body"))){validate21.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 of Object.keys(data)){if(!(((((((key0 === "bridge_version") || (key0 === "instance_id")) || (key0 === "session_id")) || (key0 === "execution_id")) || (key0 === "state_revision")) || (key0 === "kind")) || (key0 === "body"))){validate21.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.bridge_version !== undefined && func0.call(data, "bridge_version")){const _errs2 = errors;if(1 !== data.bridge_version){validate21.errors = [{instancePath:instancePath+"/bridge_version",schemaPath:"#/properties/bridge_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.instance_id !== undefined && func0.call(data, "instance_id")){let data1 = data.instance_id;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(!pattern4.test(data1)){validate21.errors = [{instancePath:instancePath+"/instance_id",schemaPath:"#/properties/instance_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""}];return false;}}else {validate21.errors = [{instancePath:instancePath+"/instance_id",schemaPath:"#/properties/instance_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.session_id !== undefined && func0.call(data, "session_id")){let data2 = data.session_id;const _errs5 = errors;if(errors === _errs5){if(typeof data2 === "string"){if(!pattern4.test(data2)){validate21.errors = [{instancePath:instancePath+"/session_id",schemaPath:"#/properties/session_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""}];return false;}}else {validate21.errors = [{instancePath:instancePath+"/session_id",schemaPath:"#/properties/session_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.execution_id !== undefined && func0.call(data, "execution_id")){let data3 = data.execution_id;const _errs7 = errors;if(errors === _errs7){if(typeof data3 === "string"){if(!pattern4.test(data3)){validate21.errors = [{instancePath:instancePath+"/execution_id",schemaPath:"#/properties/execution_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""}];return false;}}else {validate21.errors = [{instancePath:instancePath+"/execution_id",schemaPath:"#/properties/execution_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.state_revision !== undefined && func0.call(data, "state_revision")){let data4 = data.state_revision;const _errs9 = errors;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){validate21.errors = [{instancePath:instancePath+"/state_revision",schemaPath:"#/properties/state_revision/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs9){if((typeof data4 == "number") && (isFinite(data4))){if(data4 > 9007199254740991 || isNaN(data4)){validate21.errors = [{instancePath:instancePath+"/state_revision",schemaPath:"#/properties/state_revision/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"}];return false;}else {if(data4 < 0 || isNaN(data4)){validate21.errors = [{instancePath:instancePath+"/state_revision",schemaPath:"#/properties/state_revision/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.kind !== undefined && func0.call(data, "kind")){const _errs11 = errors;if("initialize" !== data.kind){validate21.errors = [{instancePath:instancePath+"/kind",schemaPath:"#/properties/kind/const",keyword:"const",params:{allowedValue: "initialize"},message:"must be equal to constant"}];return false;}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.body !== undefined && func0.call(data, "body")){let data6 = data.body;const _errs12 = errors;if(errors === _errs12){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing1;if((((((data6.graph === undefined) || (!(func0.call(data6, "graph")))) && (missing1 = "graph")) || (((data6.selectedId === undefined) || (!(func0.call(data6, "selectedId")))) && (missing1 = "selectedId"))) || (((data6.sourceText === undefined) || (!(func0.call(data6, "sourceText")))) && (missing1 = "sourceText"))) || (((data6.locale === undefined) || (!(func0.call(data6, "locale")))) && (missing1 = "locale"))){validate21.errors = [{instancePath:instancePath+"/body",schemaPath:"#/properties/body/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs14 = errors;for(const key1 of Object.keys(data6)){if(!((((key1 === "graph") || (key1 === "selectedId")) || (key1 === "sourceText")) || (key1 === "locale"))){validate21.errors = [{instancePath:instancePath+"/body",schemaPath:"#/properties/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs14 === errors){if(data6.graph !== undefined && func0.call(data6, "graph")){let data7 = data6.graph;const _errs15 = errors;const _errs16 = errors;if(errors === _errs16){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing2;if((((data7.nodes === undefined) || (!(func0.call(data7, "nodes")))) && (missing2 = "nodes")) || (((data7.edges === undefined) || (!(func0.call(data7, "edges")))) && (missing2 = "edges"))){validate21.errors = [{instancePath:instancePath+"/body/graph",schemaPath:"#/$defs/GraphData/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {const _errs18 = errors;for(const key2 of Object.keys(data7)){if(!((key2 === "nodes") || (key2 === "edges"))){validate21.errors = [{instancePath:instancePath+"/body/graph",schemaPath:"#/$defs/GraphData/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"}];return false;break;}}if(_errs18 === errors){if(data7.nodes !== undefined && func0.call(data7, "nodes")){let data8 = data7.nodes;const _errs19 = errors;if(errors === _errs19){if(Array.isArray(data8)){if(data8.length > 24){validate21.errors = [{instancePath:instancePath+"/body/graph/nodes",schemaPath:"#/$defs/GraphData/properties/nodes/maxItems",keyword:"maxItems",params:{limit: 24},message:"must NOT have more than 24 items"}];return false;}else {if(data8.length < 1){validate21.errors = [{instancePath:instancePath+"/body/graph/nodes",schemaPath:"#/$defs/GraphData/properties/nodes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid4 = true;const len0 = data8.length;for(let i0=0; i0<len0; i0++){let data9 = data8[i0];const _errs21 = errors;if(errors === _errs21){if(data9 && typeof data9 == "object" && !Array.isArray(data9)){let missing3;if((((data9.id === undefined) || (!(func0.call(data9, "id")))) && (missing3 = "id")) || (((data9.label === undefined) || (!(func0.call(data9, "label")))) && (missing3 = "label"))){validate21.errors = [{instancePath:instancePath+"/body/graph/nodes/" + i0,schemaPath:"#/$defs/GraphData/properties/nodes/items/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"}];return false;}else {const _errs23 = errors;for(const key3 of Object.keys(data9)){if(!((key3 === "id") || (key3 === "label"))){validate21.errors = [{instancePath:instancePath+"/body/graph/nodes/" + i0,schemaPath:"#/$defs/GraphData/properties/nodes/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"}];return false;break;}}if(_errs23 === errors){if(data9.id !== undefined && func0.call(data9, "id")){let data10 = data9.id;const _errs24 = errors;if(errors === _errs24){if(typeof data10 === "string"){if(!pattern10.test(data10)){validate21.errors = [{instancePath:instancePath+"/body/graph/nodes/" + i0+"/id",schemaPath:"#/$defs/GraphData/properties/nodes/items/properties/id/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z0-9_-]{1,64}$"},message:"must match pattern \""+"^[A-Za-z0-9_-]{1,64}$"+"\""}];return false;}}else {validate21.errors = [{instancePath:instancePath+"/body/graph/nodes/" + i0+"/id",schemaPath:"#/$defs/GraphData/properties/nodes/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs24 === errors;}else {var valid5 = true;}if(valid5){if(data9.label !== undefined && func0.call(data9, "label")){let data11 = data9.label;const _errs26 = errors;if(errors === _errs26){if(typeof data11 === "string"){if(func98(data11) > 160){validate21.errors = [{instancePath:instancePath+"/body/graph/nodes/" + i0+"/label",schemaPath:"#/$defs/GraphData/properties/nodes/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 160},message:"must NOT have more than 160 characters"}];return false;}else {if(func98(data11) < 1){validate21.errors = [{instancePath:instancePath+"/body/graph/nodes/" + i0+"/label",schemaPath:"#/$defs/GraphData/properties/nodes/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate21.errors = [{instancePath:instancePath+"/body/graph/nodes/" + i0+"/label",schemaPath:"#/$defs/GraphData/properties/nodes/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs26 === errors;}else {var valid5 = true;}}}}}else {validate21.errors = [{instancePath:instancePath+"/body/graph/nodes/" + i0,schemaPath:"#/$defs/GraphData/properties/nodes/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid4 = _errs21 === errors;if(!valid4){break;}}}}}else {validate21.errors = [{instancePath:instancePath+"/body/graph/nodes",schemaPath:"#/$defs/GraphData/properties/nodes/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid3 = _errs19 === errors;}else {var valid3 = true;}if(valid3){if(data7.edges !== undefined && func0.call(data7, "edges")){let data12 = data7.edges;const _errs28 = errors;if(errors === _errs28){if(Array.isArray(data12)){if(data12.length > 64){validate21.errors = [{instancePath:instancePath+"/body/graph/edges",schemaPath:"#/$defs/GraphData/properties/edges/maxItems",keyword:"maxItems",params:{limit: 64},message:"must NOT have more than 64 items"}];return false;}else {var valid6 = true;const len1 = data12.length;for(let i1=0; i1<len1; i1++){let data13 = data12[i1];const _errs30 = errors;if(errors === _errs30){if(data13 && typeof data13 == "object" && !Array.isArray(data13)){let missing4;if((((data13.from === undefined) || (!(func0.call(data13, "from")))) && (missing4 = "from")) || (((data13.to === undefined) || (!(func0.call(data13, "to")))) && (missing4 = "to"))){validate21.errors = [{instancePath:instancePath+"/body/graph/edges/" + i1,schemaPath:"#/$defs/GraphData/properties/edges/items/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"}];return false;}else {const _errs32 = errors;for(const key4 of Object.keys(data13)){if(!((key4 === "from") || (key4 === "to"))){validate21.errors = [{instancePath:instancePath+"/body/graph/edges/" + i1,schemaPath:"#/$defs/GraphData/properties/edges/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"}];return false;break;}}if(_errs32 === errors){if(data13.from !== undefined && func0.call(data13, "from")){let data14 = data13.from;const _errs33 = errors;if(errors === _errs33){if(typeof data14 === "string"){if(!pattern10.test(data14)){validate21.errors = [{instancePath:instancePath+"/body/graph/edges/" + i1+"/from",schemaPath:"#/$defs/GraphData/properties/edges/items/properties/from/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z0-9_-]{1,64}$"},message:"must match pattern \""+"^[A-Za-z0-9_-]{1,64}$"+"\""}];return false;}}else {validate21.errors = [{instancePath:instancePath+"/body/graph/edges/" + i1+"/from",schemaPath:"#/$defs/GraphData/properties/edges/items/properties/from/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid7 = _errs33 === errors;}else {var valid7 = true;}if(valid7){if(data13.to !== undefined && func0.call(data13, "to")){let data15 = data13.to;const _errs35 = errors;if(errors === _errs35){if(typeof data15 === "string"){if(!pattern10.test(data15)){validate21.errors = [{instancePath:instancePath+"/body/graph/edges/" + i1+"/to",schemaPath:"#/$defs/GraphData/properties/edges/items/properties/to/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z0-9_-]{1,64}$"},message:"must match pattern \""+"^[A-Za-z0-9_-]{1,64}$"+"\""}];return false;}}else {validate21.errors = [{instancePath:instancePath+"/body/graph/edges/" + i1+"/to",schemaPath:"#/$defs/GraphData/properties/edges/items/properties/to/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid7 = _errs35 === errors;}else {var valid7 = true;}}}}}else {validate21.errors = [{instancePath:instancePath+"/body/graph/edges/" + i1,schemaPath:"#/$defs/GraphData/properties/edges/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid6 = _errs30 === errors;if(!valid6){break;}}}}else {validate21.errors = [{instancePath:instancePath+"/body/graph/edges",schemaPath:"#/$defs/GraphData/properties/edges/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid3 = _errs28 === errors;}else {var valid3 = true;}}}}}else {validate21.errors = [{instancePath:instancePath+"/body/graph",schemaPath:"#/$defs/GraphData/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs15 === errors;}else {var valid1 = true;}if(valid1){if(data6.selectedId !== undefined && func0.call(data6, "selectedId")){let data16 = data6.selectedId;const _errs37 = errors;const _errs38 = errors;let valid8 = false;const _errs39 = errors;if(errors === _errs39){if(typeof data16 === "string"){if(!pattern10.test(data16)){const err0 = {instancePath:instancePath+"/body/selectedId",schemaPath:"#/properties/body/properties/selectedId/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z0-9_-]{1,64}$"},message:"must match pattern \""+"^[A-Za-z0-9_-]{1,64}$"+"\""};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}else {const err1 = {instancePath:instancePath+"/body/selectedId",schemaPath:"#/properties/body/properties/selectedId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var _valid0 = _errs39 === errors;valid8 = valid8 || _valid0;const _errs41 = errors;if(data16 !== null){const err2 = {instancePath:instancePath+"/body/selectedId",schemaPath:"#/properties/body/properties/selectedId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var _valid0 = _errs41 === errors;valid8 = valid8 || _valid0;if(!valid8){const err3 = {instancePath:instancePath+"/body/selectedId",schemaPath:"#/properties/body/properties/selectedId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;validate21.errors = vErrors;return false;}else {errors = _errs38;if(vErrors !== null){if(_errs38){vErrors.length = _errs38;}else {vErrors = null;}}}var valid1 = _errs37 === errors;}else {var valid1 = true;}if(valid1){if(data6.sourceText !== undefined && func0.call(data6, "sourceText")){let data17 = data6.sourceText;const _errs43 = errors;if(errors === _errs43){if(typeof data17 === "string"){if(func98(data17) > 1048576){validate21.errors = [{instancePath:instancePath+"/body/sourceText",schemaPath:"#/properties/body/properties/sourceText/maxLength",keyword:"maxLength",params:{limit: 1048576},message:"must NOT have more than 1048576 characters"}];return false;}else {if(func98(data17) < 1){validate21.errors = [{instancePath:instancePath+"/body/sourceText",schemaPath:"#/properties/body/properties/sourceText/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate21.errors = [{instancePath:instancePath+"/body/sourceText",schemaPath:"#/properties/body/properties/sourceText/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs43 === errors;}else {var valid1 = true;}if(valid1){if(data6.locale !== undefined && func0.call(data6, "locale")){let data18 = data6.locale;const _errs45 = errors;if(!((data18 === "en") || (data18 === "zh"))){validate21.errors = [{instancePath:instancePath+"/body/locale",schemaPath:"#/properties/body/properties/locale/enum",keyword:"enum",params:{allowedValues: schema33.properties.body.properties.locale.enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs45 === errors;}else {var valid1 = true;}}}}}}}else {validate21.errors = [{instancePath:instancePath+"/body",schemaPath:"#/properties/body/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs12 === errors;}else {var valid0 = true;}}}}}}}}}}else {validate21.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate21.errors = vErrors;return errors === 0;}validate21.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema37 = {"type":"object","properties":{"bridge_version":{"const":1},"instance_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"session_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"execution_id":{"type":"string","pattern":"^[a-f0-9-]{36}$"},"state_revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"const":"scene"},"body":{"type":"object","properties":{"positions":{"type":"array","minItems":1,"maxItems":24,"items":{"$ref":"#/$defs/GraphPoint"}}},"required":["positions"],"additionalProperties":false}},"required":["bridge_version","instance_id","session_id","execution_id","state_revision","kind","body"],"additionalProperties":false};const schema38 = {"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"x":{"type":"number","minimum":0,"maximum":10000},"y":{"type":"number","minimum":0,"maximum":10000}},"required":["id","x","y"],"additionalProperties":false};function validate23(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate23.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((((((data.bridge_version === undefined) || (!(func0.call(data, "bridge_version")))) && (missing0 = "bridge_version")) || (((data.instance_id === undefined) || (!(func0.call(data, "instance_id")))) && (missing0 = "instance_id"))) || (((data.session_id === undefined) || (!(func0.call(data, "session_id")))) && (missing0 = "session_id"))) || (((data.execution_id === undefined) || (!(func0.call(data, "execution_id")))) && (missing0 = "execution_id"))) || (((data.state_revision === undefined) || (!(func0.call(data, "state_revision")))) && (missing0 = "state_revision"))) || (((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing0 = "kind"))) || (((data.body === undefined) || (!(func0.call(data, "body")))) && (missing0 = "body"))){validate23.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 of Object.keys(data)){if(!(((((((key0 === "bridge_version") || (key0 === "instance_id")) || (key0 === "session_id")) || (key0 === "execution_id")) || (key0 === "state_revision")) || (key0 === "kind")) || (key0 === "body"))){validate23.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.bridge_version !== undefined && func0.call(data, "bridge_version")){const _errs2 = errors;if(1 !== data.bridge_version){validate23.errors = [{instancePath:instancePath+"/bridge_version",schemaPath:"#/properties/bridge_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.instance_id !== undefined && func0.call(data, "instance_id")){let data1 = data.instance_id;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(!pattern4.test(data1)){validate23.errors = [{instancePath:instancePath+"/instance_id",schemaPath:"#/properties/instance_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""}];return false;}}else {validate23.errors = [{instancePath:instancePath+"/instance_id",schemaPath:"#/properties/instance_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.session_id !== undefined && func0.call(data, "session_id")){let data2 = data.session_id;const _errs5 = errors;if(errors === _errs5){if(typeof data2 === "string"){if(!pattern4.test(data2)){validate23.errors = [{instancePath:instancePath+"/session_id",schemaPath:"#/properties/session_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""}];return false;}}else {validate23.errors = [{instancePath:instancePath+"/session_id",schemaPath:"#/properties/session_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.execution_id !== undefined && func0.call(data, "execution_id")){let data3 = data.execution_id;const _errs7 = errors;if(errors === _errs7){if(typeof data3 === "string"){if(!pattern4.test(data3)){validate23.errors = [{instancePath:instancePath+"/execution_id",schemaPath:"#/properties/execution_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""}];return false;}}else {validate23.errors = [{instancePath:instancePath+"/execution_id",schemaPath:"#/properties/execution_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.state_revision !== undefined && func0.call(data, "state_revision")){let data4 = data.state_revision;const _errs9 = errors;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){validate23.errors = [{instancePath:instancePath+"/state_revision",schemaPath:"#/properties/state_revision/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs9){if((typeof data4 == "number") && (isFinite(data4))){if(data4 > 9007199254740991 || isNaN(data4)){validate23.errors = [{instancePath:instancePath+"/state_revision",schemaPath:"#/properties/state_revision/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"}];return false;}else {if(data4 < 0 || isNaN(data4)){validate23.errors = [{instancePath:instancePath+"/state_revision",schemaPath:"#/properties/state_revision/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.kind !== undefined && func0.call(data, "kind")){const _errs11 = errors;if("scene" !== data.kind){validate23.errors = [{instancePath:instancePath+"/kind",schemaPath:"#/properties/kind/const",keyword:"const",params:{allowedValue: "scene"},message:"must be equal to constant"}];return false;}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.body !== undefined && func0.call(data, "body")){let data6 = data.body;const _errs12 = errors;if(errors === _errs12){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing1;if(((data6.positions === undefined) || (!(func0.call(data6, "positions")))) && (missing1 = "positions")){validate23.errors = [{instancePath:instancePath+"/body",schemaPath:"#/properties/body/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs14 = errors;for(const key1 of Object.keys(data6)){if(!(key1 === "positions")){validate23.errors = [{instancePath:instancePath+"/body",schemaPath:"#/properties/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs14 === errors){if(data6.positions !== undefined && func0.call(data6, "positions")){let data7 = data6.positions;const _errs15 = errors;if(errors === _errs15){if(Array.isArray(data7)){if(data7.length > 24){validate23.errors = [{instancePath:instancePath+"/body/positions",schemaPath:"#/properties/body/properties/positions/maxItems",keyword:"maxItems",params:{limit: 24},message:"must NOT have more than 24 items"}];return false;}else {if(data7.length < 1){validate23.errors = [{instancePath:instancePath+"/body/positions",schemaPath:"#/properties/body/properties/positions/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid2 = true;const len0 = data7.length;for(let i0=0; i0<len0; i0++){let data8 = data7[i0];const _errs17 = errors;const _errs18 = errors;if(errors === _errs18){if(data8 && typeof data8 == "object" && !Array.isArray(data8)){let missing2;if(((((data8.id === undefined) || (!(func0.call(data8, "id")))) && (missing2 = "id")) || (((data8.x === undefined) || (!(func0.call(data8, "x")))) && (missing2 = "x"))) || (((data8.y === undefined) || (!(func0.call(data8, "y")))) && (missing2 = "y"))){validate23.errors = [{instancePath:instancePath+"/body/positions/" + i0,schemaPath:"#/$defs/GraphPoint/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {const _errs20 = errors;for(const key2 of Object.keys(data8)){if(!(((key2 === "id") || (key2 === "x")) || (key2 === "y"))){validate23.errors = [{instancePath:instancePath+"/body/positions/" + i0,schemaPath:"#/$defs/GraphPoint/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"}];return false;break;}}if(_errs20 === errors){if(data8.id !== undefined && func0.call(data8, "id")){let data9 = data8.id;const _errs21 = errors;if(errors === _errs21){if(typeof data9 === "string"){if(!pattern10.test(data9)){validate23.errors = [{instancePath:instancePath+"/body/positions/" + i0+"/id",schemaPath:"#/$defs/GraphPoint/properties/id/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z0-9_-]{1,64}$"},message:"must match pattern \""+"^[A-Za-z0-9_-]{1,64}$"+"\""}];return false;}}else {validate23.errors = [{instancePath:instancePath+"/body/positions/" + i0+"/id",schemaPath:"#/$defs/GraphPoint/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs21 === errors;}else {var valid4 = true;}if(valid4){if(data8.x !== undefined && func0.call(data8, "x")){let data10 = data8.x;const _errs23 = errors;if(errors === _errs23){if((typeof data10 == "number") && (isFinite(data10))){if(data10 > 10000 || isNaN(data10)){validate23.errors = [{instancePath:instancePath+"/body/positions/" + i0+"/x",schemaPath:"#/$defs/GraphPoint/properties/x/maximum",keyword:"maximum",params:{comparison: "<=", limit: 10000},message:"must be <= 10000"}];return false;}else {if(data10 < 0 || isNaN(data10)){validate23.errors = [{instancePath:instancePath+"/body/positions/" + i0+"/x",schemaPath:"#/$defs/GraphPoint/properties/x/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}else {validate23.errors = [{instancePath:instancePath+"/body/positions/" + i0+"/x",schemaPath:"#/$defs/GraphPoint/properties/x/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid4 = _errs23 === errors;}else {var valid4 = true;}if(valid4){if(data8.y !== undefined && func0.call(data8, "y")){let data11 = data8.y;const _errs25 = errors;if(errors === _errs25){if((typeof data11 == "number") && (isFinite(data11))){if(data11 > 10000 || isNaN(data11)){validate23.errors = [{instancePath:instancePath+"/body/positions/" + i0+"/y",schemaPath:"#/$defs/GraphPoint/properties/y/maximum",keyword:"maximum",params:{comparison: "<=", limit: 10000},message:"must be <= 10000"}];return false;}else {if(data11 < 0 || isNaN(data11)){validate23.errors = [{instancePath:instancePath+"/body/positions/" + i0+"/y",schemaPath:"#/$defs/GraphPoint/properties/y/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}else {validate23.errors = [{instancePath:instancePath+"/body/positions/" + i0+"/y",schemaPath:"#/$defs/GraphPoint/properties/y/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid4 = _errs25 === errors;}else {var valid4 = true;}}}}}}else {validate23.errors = [{instancePath:instancePath+"/body/positions/" + i0,schemaPath:"#/$defs/GraphPoint/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid2 = _errs17 === errors;if(!valid2){break;}}}}}else {validate23.errors = [{instancePath:instancePath+"/body/positions",schemaPath:"#/properties/body/properties/positions/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}}else {validate23.errors = [{instancePath:instancePath+"/body",schemaPath:"#/properties/body/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs12 === errors;}else {var valid0 = true;}}}}}}}}}}else {validate23.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate23.errors = vErrors;return errors === 0;}validate23.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://littlepress.ai/schemas/program-graph-bridge-v1.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate20.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;const _errs1 = errors;const _errs2 = errors;if(errors === _errs2){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((((data.bridge_version === undefined) || (!(func0.call(data, "bridge_version")))) && (missing0 = "bridge_version")) || (((data.instance_id === undefined) || (!(func0.call(data, "instance_id")))) && (missing0 = "instance_id"))) || (((data.session_id === undefined) || (!(func0.call(data, "session_id")))) && (missing0 = "session_id"))) || (((data.execution_id === undefined) || (!(func0.call(data, "execution_id")))) && (missing0 = "execution_id"))) || (((data.state_revision === undefined) || (!(func0.call(data, "state_revision")))) && (missing0 = "state_revision"))) || (((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing0 = "kind"))){const err0 = {instancePath,schemaPath:"#/$defs/GraphConnectedMessage/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {const _errs4 = errors;for(const key0 of Object.keys(data)){if(!((((((key0 === "bridge_version") || (key0 === "instance_id")) || (key0 === "session_id")) || (key0 === "execution_id")) || (key0 === "state_revision")) || (key0 === "kind"))){const err1 = {instancePath,schemaPath:"#/$defs/GraphConnectedMessage/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;break;}}if(_errs4 === errors){if(data.bridge_version !== undefined && func0.call(data, "bridge_version")){const _errs5 = errors;if(1 !== data.bridge_version){const err2 = {instancePath:instancePath+"/bridge_version",schemaPath:"#/$defs/GraphConnectedMessage/properties/bridge_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid2 = _errs5 === errors;}else {var valid2 = true;}if(valid2){if(data.instance_id !== undefined && func0.call(data, "instance_id")){let data1 = data.instance_id;const _errs6 = errors;if(errors === _errs6){if(typeof data1 === "string"){if(!pattern4.test(data1)){const err3 = {instancePath:instancePath+"/instance_id",schemaPath:"#/$defs/GraphConnectedMessage/properties/instance_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/instance_id",schemaPath:"#/$defs/GraphConnectedMessage/properties/instance_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}var valid2 = _errs6 === errors;}else {var valid2 = true;}if(valid2){if(data.session_id !== undefined && func0.call(data, "session_id")){let data2 = data.session_id;const _errs8 = errors;if(errors === _errs8){if(typeof data2 === "string"){if(!pattern4.test(data2)){const err5 = {instancePath:instancePath+"/session_id",schemaPath:"#/$defs/GraphConnectedMessage/properties/session_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/session_id",schemaPath:"#/$defs/GraphConnectedMessage/properties/session_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var valid2 = _errs8 === errors;}else {var valid2 = true;}if(valid2){if(data.execution_id !== undefined && func0.call(data, "execution_id")){let data3 = data.execution_id;const _errs10 = errors;if(errors === _errs10){if(typeof data3 === "string"){if(!pattern4.test(data3)){const err7 = {instancePath:instancePath+"/execution_id",schemaPath:"#/$defs/GraphConnectedMessage/properties/execution_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/execution_id",schemaPath:"#/$defs/GraphConnectedMessage/properties/execution_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var valid2 = _errs10 === errors;}else {var valid2 = true;}if(valid2){if(data.state_revision !== undefined && func0.call(data, "state_revision")){let data4 = data.state_revision;const _errs12 = errors;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){const err9 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphConnectedMessage/properties/state_revision/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(errors === _errs12){if((typeof data4 == "number") && (isFinite(data4))){if(data4 > 9007199254740991 || isNaN(data4)){const err10 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphConnectedMessage/properties/state_revision/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {if(data4 < 0 || isNaN(data4)){const err11 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphConnectedMessage/properties/state_revision/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}}var valid2 = _errs12 === errors;}else {var valid2 = true;}if(valid2){if(data.kind !== undefined && func0.call(data, "kind")){const _errs14 = errors;if("connected" !== data.kind){const err12 = {instancePath:instancePath+"/kind",schemaPath:"#/$defs/GraphConnectedMessage/properties/kind/const",keyword:"const",params:{allowedValue: "connected"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs14 === errors;}else {var valid2 = true;}}}}}}}}}else {const err13 = {instancePath,schemaPath:"#/$defs/GraphConnectedMessage/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(_valid0){var props0 = true;}const _errs15 = errors;if(!(validate21(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}var _valid0 = _errs15 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = true;}}const _errs16 = errors;const _errs17 = errors;if(errors === _errs17){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((((((data.bridge_version === undefined) || (!(func0.call(data, "bridge_version")))) && (missing1 = "bridge_version")) || (((data.instance_id === undefined) || (!(func0.call(data, "instance_id")))) && (missing1 = "instance_id"))) || (((data.session_id === undefined) || (!(func0.call(data, "session_id")))) && (missing1 = "session_id"))) || (((data.execution_id === undefined) || (!(func0.call(data, "execution_id")))) && (missing1 = "execution_id"))) || (((data.state_revision === undefined) || (!(func0.call(data, "state_revision")))) && (missing1 = "state_revision"))) || (((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing1 = "kind"))) || (((data.body === undefined) || (!(func0.call(data, "body")))) && (missing1 = "body"))){const err14 = {instancePath,schemaPath:"#/$defs/GraphStateMessage/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}else {const _errs19 = errors;for(const key1 of Object.keys(data)){if(!(((((((key1 === "bridge_version") || (key1 === "instance_id")) || (key1 === "session_id")) || (key1 === "execution_id")) || (key1 === "state_revision")) || (key1 === "kind")) || (key1 === "body"))){const err15 = {instancePath,schemaPath:"#/$defs/GraphStateMessage/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;break;}}if(_errs19 === errors){if(data.bridge_version !== undefined && func0.call(data, "bridge_version")){const _errs20 = errors;if(1 !== data.bridge_version){const err16 = {instancePath:instancePath+"/bridge_version",schemaPath:"#/$defs/GraphStateMessage/properties/bridge_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid4 = _errs20 === errors;}else {var valid4 = true;}if(valid4){if(data.instance_id !== undefined && func0.call(data, "instance_id")){let data7 = data.instance_id;const _errs21 = errors;if(errors === _errs21){if(typeof data7 === "string"){if(!pattern4.test(data7)){const err17 = {instancePath:instancePath+"/instance_id",schemaPath:"#/$defs/GraphStateMessage/properties/instance_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}else {const err18 = {instancePath:instancePath+"/instance_id",schemaPath:"#/$defs/GraphStateMessage/properties/instance_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var valid4 = _errs21 === errors;}else {var valid4 = true;}if(valid4){if(data.session_id !== undefined && func0.call(data, "session_id")){let data8 = data.session_id;const _errs23 = errors;if(errors === _errs23){if(typeof data8 === "string"){if(!pattern4.test(data8)){const err19 = {instancePath:instancePath+"/session_id",schemaPath:"#/$defs/GraphStateMessage/properties/session_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}else {const err20 = {instancePath:instancePath+"/session_id",schemaPath:"#/$defs/GraphStateMessage/properties/session_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}var valid4 = _errs23 === errors;}else {var valid4 = true;}if(valid4){if(data.execution_id !== undefined && func0.call(data, "execution_id")){let data9 = data.execution_id;const _errs25 = errors;if(errors === _errs25){if(typeof data9 === "string"){if(!pattern4.test(data9)){const err21 = {instancePath:instancePath+"/execution_id",schemaPath:"#/$defs/GraphStateMessage/properties/execution_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/execution_id",schemaPath:"#/$defs/GraphStateMessage/properties/execution_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}var valid4 = _errs25 === errors;}else {var valid4 = true;}if(valid4){if(data.state_revision !== undefined && func0.call(data, "state_revision")){let data10 = data.state_revision;const _errs27 = errors;if(!(((typeof data10 == "number") && (!(data10 % 1) && !isNaN(data10))) && (isFinite(data10)))){const err23 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphStateMessage/properties/state_revision/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(errors === _errs27){if((typeof data10 == "number") && (isFinite(data10))){if(data10 > 9007199254740991 || isNaN(data10)){const err24 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphStateMessage/properties/state_revision/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}else {if(data10 < 0 || isNaN(data10)){const err25 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphStateMessage/properties/state_revision/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}}}var valid4 = _errs27 === errors;}else {var valid4 = true;}if(valid4){if(data.kind !== undefined && func0.call(data, "kind")){const _errs29 = errors;if("state" !== data.kind){const err26 = {instancePath:instancePath+"/kind",schemaPath:"#/$defs/GraphStateMessage/properties/kind/const",keyword:"const",params:{allowedValue: "state"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid4 = _errs29 === errors;}else {var valid4 = true;}if(valid4){if(data.body !== undefined && func0.call(data, "body")){let data12 = data.body;const _errs30 = errors;if(errors === _errs30){if(data12 && typeof data12 == "object" && !Array.isArray(data12)){let missing2;if(((data12.selectedId === undefined) || (!(func0.call(data12, "selectedId")))) && (missing2 = "selectedId")){const err27 = {instancePath:instancePath+"/body",schemaPath:"#/$defs/GraphStateMessage/properties/body/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}else {const _errs32 = errors;for(const key2 of Object.keys(data12)){if(!(key2 === "selectedId")){const err28 = {instancePath:instancePath+"/body",schemaPath:"#/$defs/GraphStateMessage/properties/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;break;}}if(_errs32 === errors){if(data12.selectedId !== undefined && func0.call(data12, "selectedId")){let data13 = data12.selectedId;const _errs34 = errors;let valid6 = false;const _errs35 = errors;if(errors === _errs35){if(typeof data13 === "string"){if(!pattern10.test(data13)){const err29 = {instancePath:instancePath+"/body/selectedId",schemaPath:"#/$defs/GraphStateMessage/properties/body/properties/selectedId/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z0-9_-]{1,64}$"},message:"must match pattern \""+"^[A-Za-z0-9_-]{1,64}$"+"\""};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}else {const err30 = {instancePath:instancePath+"/body/selectedId",schemaPath:"#/$defs/GraphStateMessage/properties/body/properties/selectedId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var _valid1 = _errs35 === errors;valid6 = valid6 || _valid1;const _errs37 = errors;if(data13 !== null){const err31 = {instancePath:instancePath+"/body/selectedId",schemaPath:"#/$defs/GraphStateMessage/properties/body/properties/selectedId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var _valid1 = _errs37 === errors;valid6 = valid6 || _valid1;if(!valid6){const err32 = {instancePath:instancePath+"/body/selectedId",schemaPath:"#/$defs/GraphStateMessage/properties/body/properties/selectedId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {errors = _errs34;if(vErrors !== null){if(_errs34){vErrors.length = _errs34;}else {vErrors = null;}}}}}}}else {const err33 = {instancePath:instancePath+"/body",schemaPath:"#/$defs/GraphStateMessage/properties/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var valid4 = _errs30 === errors;}else {var valid4 = true;}}}}}}}}}}else {const err34 = {instancePath,schemaPath:"#/$defs/GraphStateMessage/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}var _valid0 = _errs16 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = true;}}const _errs39 = errors;const _errs40 = errors;if(errors === _errs40){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((((((data.bridge_version === undefined) || (!(func0.call(data, "bridge_version")))) && (missing3 = "bridge_version")) || (((data.instance_id === undefined) || (!(func0.call(data, "instance_id")))) && (missing3 = "instance_id"))) || (((data.session_id === undefined) || (!(func0.call(data, "session_id")))) && (missing3 = "session_id"))) || (((data.execution_id === undefined) || (!(func0.call(data, "execution_id")))) && (missing3 = "execution_id"))) || (((data.state_revision === undefined) || (!(func0.call(data, "state_revision")))) && (missing3 = "state_revision"))) || (((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing3 = "kind"))) || (((data.body === undefined) || (!(func0.call(data, "body")))) && (missing3 = "body"))){const err35 = {instancePath,schemaPath:"#/$defs/GraphInputMessage/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}else {const _errs42 = errors;for(const key3 of Object.keys(data)){if(!(((((((key3 === "bridge_version") || (key3 === "instance_id")) || (key3 === "session_id")) || (key3 === "execution_id")) || (key3 === "state_revision")) || (key3 === "kind")) || (key3 === "body"))){const err36 = {instancePath,schemaPath:"#/$defs/GraphInputMessage/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;break;}}if(_errs42 === errors){if(data.bridge_version !== undefined && func0.call(data, "bridge_version")){const _errs43 = errors;if(1 !== data.bridge_version){const err37 = {instancePath:instancePath+"/bridge_version",schemaPath:"#/$defs/GraphInputMessage/properties/bridge_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid8 = _errs43 === errors;}else {var valid8 = true;}if(valid8){if(data.instance_id !== undefined && func0.call(data, "instance_id")){let data15 = data.instance_id;const _errs44 = errors;if(errors === _errs44){if(typeof data15 === "string"){if(!pattern4.test(data15)){const err38 = {instancePath:instancePath+"/instance_id",schemaPath:"#/$defs/GraphInputMessage/properties/instance_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}else {const err39 = {instancePath:instancePath+"/instance_id",schemaPath:"#/$defs/GraphInputMessage/properties/instance_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}var valid8 = _errs44 === errors;}else {var valid8 = true;}if(valid8){if(data.session_id !== undefined && func0.call(data, "session_id")){let data16 = data.session_id;const _errs46 = errors;if(errors === _errs46){if(typeof data16 === "string"){if(!pattern4.test(data16)){const err40 = {instancePath:instancePath+"/session_id",schemaPath:"#/$defs/GraphInputMessage/properties/session_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}else {const err41 = {instancePath:instancePath+"/session_id",schemaPath:"#/$defs/GraphInputMessage/properties/session_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}var valid8 = _errs46 === errors;}else {var valid8 = true;}if(valid8){if(data.execution_id !== undefined && func0.call(data, "execution_id")){let data17 = data.execution_id;const _errs48 = errors;if(errors === _errs48){if(typeof data17 === "string"){if(!pattern4.test(data17)){const err42 = {instancePath:instancePath+"/execution_id",schemaPath:"#/$defs/GraphInputMessage/properties/execution_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}else {const err43 = {instancePath:instancePath+"/execution_id",schemaPath:"#/$defs/GraphInputMessage/properties/execution_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}var valid8 = _errs48 === errors;}else {var valid8 = true;}if(valid8){if(data.state_revision !== undefined && func0.call(data, "state_revision")){let data18 = data.state_revision;const _errs50 = errors;if(!(((typeof data18 == "number") && (!(data18 % 1) && !isNaN(data18))) && (isFinite(data18)))){const err44 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphInputMessage/properties/state_revision/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if(errors === _errs50){if((typeof data18 == "number") && (isFinite(data18))){if(data18 > 9007199254740991 || isNaN(data18)){const err45 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphInputMessage/properties/state_revision/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}else {if(data18 < 0 || isNaN(data18)){const err46 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphInputMessage/properties/state_revision/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}}var valid8 = _errs50 === errors;}else {var valid8 = true;}if(valid8){if(data.kind !== undefined && func0.call(data, "kind")){const _errs52 = errors;if("input" !== data.kind){const err47 = {instancePath:instancePath+"/kind",schemaPath:"#/$defs/GraphInputMessage/properties/kind/const",keyword:"const",params:{allowedValue: "input"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid8 = _errs52 === errors;}else {var valid8 = true;}if(valid8){if(data.body !== undefined && func0.call(data, "body")){let data20 = data.body;const _errs53 = errors;if(errors === _errs53){if(data20 && typeof data20 == "object" && !Array.isArray(data20)){let missing4;if(((data20.id === undefined) || (!(func0.call(data20, "id")))) && (missing4 = "id")){const err48 = {instancePath:instancePath+"/body",schemaPath:"#/$defs/GraphInputMessage/properties/body/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}else {const _errs55 = errors;for(const key4 of Object.keys(data20)){if(!(key4 === "id")){const err49 = {instancePath:instancePath+"/body",schemaPath:"#/$defs/GraphInputMessage/properties/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;break;}}if(_errs55 === errors){if(data20.id !== undefined && func0.call(data20, "id")){let data21 = data20.id;const _errs56 = errors;if(errors === _errs56){if(typeof data21 === "string"){if(!pattern10.test(data21)){const err50 = {instancePath:instancePath+"/body/id",schemaPath:"#/$defs/GraphInputMessage/properties/body/properties/id/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z0-9_-]{1,64}$"},message:"must match pattern \""+"^[A-Za-z0-9_-]{1,64}$"+"\""};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}else {const err51 = {instancePath:instancePath+"/body/id",schemaPath:"#/$defs/GraphInputMessage/properties/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}}}}else {const err52 = {instancePath:instancePath+"/body",schemaPath:"#/$defs/GraphInputMessage/properties/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}var valid8 = _errs53 === errors;}else {var valid8 = true;}}}}}}}}}}else {const err53 = {instancePath,schemaPath:"#/$defs/GraphInputMessage/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}var _valid0 = _errs39 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = true;}}const _errs58 = errors;if(!(validate23(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate23.errors : vErrors.concat(validate23.errors);errors = vErrors.length;}var _valid0 = _errs58 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = true;}}const _errs59 = errors;const _errs60 = errors;if(errors === _errs60){if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if(((((((((data.bridge_version === undefined) || (!(func0.call(data, "bridge_version")))) && (missing5 = "bridge_version")) || (((data.instance_id === undefined) || (!(func0.call(data, "instance_id")))) && (missing5 = "instance_id"))) || (((data.session_id === undefined) || (!(func0.call(data, "session_id")))) && (missing5 = "session_id"))) || (((data.execution_id === undefined) || (!(func0.call(data, "execution_id")))) && (missing5 = "execution_id"))) || (((data.state_revision === undefined) || (!(func0.call(data, "state_revision")))) && (missing5 = "state_revision"))) || (((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing5 = "kind"))) || (((data.body === undefined) || (!(func0.call(data, "body")))) && (missing5 = "body"))){const err54 = {instancePath,schemaPath:"#/$defs/GraphSelectMessage/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}else {const _errs62 = errors;for(const key5 of Object.keys(data)){if(!(((((((key5 === "bridge_version") || (key5 === "instance_id")) || (key5 === "session_id")) || (key5 === "execution_id")) || (key5 === "state_revision")) || (key5 === "kind")) || (key5 === "body"))){const err55 = {instancePath,schemaPath:"#/$defs/GraphSelectMessage/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;break;}}if(_errs62 === errors){if(data.bridge_version !== undefined && func0.call(data, "bridge_version")){const _errs63 = errors;if(1 !== data.bridge_version){const err56 = {instancePath:instancePath+"/bridge_version",schemaPath:"#/$defs/GraphSelectMessage/properties/bridge_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}var valid11 = _errs63 === errors;}else {var valid11 = true;}if(valid11){if(data.instance_id !== undefined && func0.call(data, "instance_id")){let data23 = data.instance_id;const _errs64 = errors;if(errors === _errs64){if(typeof data23 === "string"){if(!pattern4.test(data23)){const err57 = {instancePath:instancePath+"/instance_id",schemaPath:"#/$defs/GraphSelectMessage/properties/instance_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}else {const err58 = {instancePath:instancePath+"/instance_id",schemaPath:"#/$defs/GraphSelectMessage/properties/instance_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}var valid11 = _errs64 === errors;}else {var valid11 = true;}if(valid11){if(data.session_id !== undefined && func0.call(data, "session_id")){let data24 = data.session_id;const _errs66 = errors;if(errors === _errs66){if(typeof data24 === "string"){if(!pattern4.test(data24)){const err59 = {instancePath:instancePath+"/session_id",schemaPath:"#/$defs/GraphSelectMessage/properties/session_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}else {const err60 = {instancePath:instancePath+"/session_id",schemaPath:"#/$defs/GraphSelectMessage/properties/session_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}var valid11 = _errs66 === errors;}else {var valid11 = true;}if(valid11){if(data.execution_id !== undefined && func0.call(data, "execution_id")){let data25 = data.execution_id;const _errs68 = errors;if(errors === _errs68){if(typeof data25 === "string"){if(!pattern4.test(data25)){const err61 = {instancePath:instancePath+"/execution_id",schemaPath:"#/$defs/GraphSelectMessage/properties/execution_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}else {const err62 = {instancePath:instancePath+"/execution_id",schemaPath:"#/$defs/GraphSelectMessage/properties/execution_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}var valid11 = _errs68 === errors;}else {var valid11 = true;}if(valid11){if(data.state_revision !== undefined && func0.call(data, "state_revision")){let data26 = data.state_revision;const _errs70 = errors;if(!(((typeof data26 == "number") && (!(data26 % 1) && !isNaN(data26))) && (isFinite(data26)))){const err63 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphSelectMessage/properties/state_revision/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if(errors === _errs70){if((typeof data26 == "number") && (isFinite(data26))){if(data26 > 9007199254740991 || isNaN(data26)){const err64 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphSelectMessage/properties/state_revision/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {if(data26 < 0 || isNaN(data26)){const err65 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphSelectMessage/properties/state_revision/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}}}var valid11 = _errs70 === errors;}else {var valid11 = true;}if(valid11){if(data.kind !== undefined && func0.call(data, "kind")){const _errs72 = errors;if("select" !== data.kind){const err66 = {instancePath:instancePath+"/kind",schemaPath:"#/$defs/GraphSelectMessage/properties/kind/const",keyword:"const",params:{allowedValue: "select"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var valid11 = _errs72 === errors;}else {var valid11 = true;}if(valid11){if(data.body !== undefined && func0.call(data, "body")){let data28 = data.body;const _errs73 = errors;if(errors === _errs73){if(data28 && typeof data28 == "object" && !Array.isArray(data28)){let missing6;if(((data28.id === undefined) || (!(func0.call(data28, "id")))) && (missing6 = "id")){const err67 = {instancePath:instancePath+"/body",schemaPath:"#/$defs/GraphSelectMessage/properties/body/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}else {const _errs75 = errors;for(const key6 of Object.keys(data28)){if(!(key6 === "id")){const err68 = {instancePath:instancePath+"/body",schemaPath:"#/$defs/GraphSelectMessage/properties/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;break;}}if(_errs75 === errors){if(data28.id !== undefined && func0.call(data28, "id")){let data29 = data28.id;const _errs76 = errors;if(errors === _errs76){if(typeof data29 === "string"){if(!pattern10.test(data29)){const err69 = {instancePath:instancePath+"/body/id",schemaPath:"#/$defs/GraphSelectMessage/properties/body/properties/id/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z0-9_-]{1,64}$"},message:"must match pattern \""+"^[A-Za-z0-9_-]{1,64}$"+"\""};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}else {const err70 = {instancePath:instancePath+"/body/id",schemaPath:"#/$defs/GraphSelectMessage/properties/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}}}}else {const err71 = {instancePath:instancePath+"/body",schemaPath:"#/$defs/GraphSelectMessage/properties/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}var valid11 = _errs73 === errors;}else {var valid11 = true;}}}}}}}}}}else {const err72 = {instancePath,schemaPath:"#/$defs/GraphSelectMessage/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}var _valid0 = _errs59 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = true;}}const _errs78 = errors;const _errs79 = errors;if(errors === _errs79){if(data && typeof data == "object" && !Array.isArray(data)){let missing7;if((((((((data.bridge_version === undefined) || (!(func0.call(data, "bridge_version")))) && (missing7 = "bridge_version")) || (((data.instance_id === undefined) || (!(func0.call(data, "instance_id")))) && (missing7 = "instance_id"))) || (((data.session_id === undefined) || (!(func0.call(data, "session_id")))) && (missing7 = "session_id"))) || (((data.execution_id === undefined) || (!(func0.call(data, "execution_id")))) && (missing7 = "execution_id"))) || (((data.state_revision === undefined) || (!(func0.call(data, "state_revision")))) && (missing7 = "state_revision"))) || (((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing7 = "kind"))){const err73 = {instancePath,schemaPath:"#/$defs/GraphReadyMessage/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}else {const _errs81 = errors;for(const key7 of Object.keys(data)){if(!((((((key7 === "bridge_version") || (key7 === "instance_id")) || (key7 === "session_id")) || (key7 === "execution_id")) || (key7 === "state_revision")) || (key7 === "kind"))){const err74 = {instancePath,schemaPath:"#/$defs/GraphReadyMessage/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;break;}}if(_errs81 === errors){if(data.bridge_version !== undefined && func0.call(data, "bridge_version")){const _errs82 = errors;if(1 !== data.bridge_version){const err75 = {instancePath:instancePath+"/bridge_version",schemaPath:"#/$defs/GraphReadyMessage/properties/bridge_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}var valid14 = _errs82 === errors;}else {var valid14 = true;}if(valid14){if(data.instance_id !== undefined && func0.call(data, "instance_id")){let data31 = data.instance_id;const _errs83 = errors;if(errors === _errs83){if(typeof data31 === "string"){if(!pattern4.test(data31)){const err76 = {instancePath:instancePath+"/instance_id",schemaPath:"#/$defs/GraphReadyMessage/properties/instance_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}else {const err77 = {instancePath:instancePath+"/instance_id",schemaPath:"#/$defs/GraphReadyMessage/properties/instance_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}var valid14 = _errs83 === errors;}else {var valid14 = true;}if(valid14){if(data.session_id !== undefined && func0.call(data, "session_id")){let data32 = data.session_id;const _errs85 = errors;if(errors === _errs85){if(typeof data32 === "string"){if(!pattern4.test(data32)){const err78 = {instancePath:instancePath+"/session_id",schemaPath:"#/$defs/GraphReadyMessage/properties/session_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}else {const err79 = {instancePath:instancePath+"/session_id",schemaPath:"#/$defs/GraphReadyMessage/properties/session_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}var valid14 = _errs85 === errors;}else {var valid14 = true;}if(valid14){if(data.execution_id !== undefined && func0.call(data, "execution_id")){let data33 = data.execution_id;const _errs87 = errors;if(errors === _errs87){if(typeof data33 === "string"){if(!pattern4.test(data33)){const err80 = {instancePath:instancePath+"/execution_id",schemaPath:"#/$defs/GraphReadyMessage/properties/execution_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}else {const err81 = {instancePath:instancePath+"/execution_id",schemaPath:"#/$defs/GraphReadyMessage/properties/execution_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}var valid14 = _errs87 === errors;}else {var valid14 = true;}if(valid14){if(data.state_revision !== undefined && func0.call(data, "state_revision")){let data34 = data.state_revision;const _errs89 = errors;if(!(((typeof data34 == "number") && (!(data34 % 1) && !isNaN(data34))) && (isFinite(data34)))){const err82 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphReadyMessage/properties/state_revision/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if(errors === _errs89){if((typeof data34 == "number") && (isFinite(data34))){if(data34 > 9007199254740991 || isNaN(data34)){const err83 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphReadyMessage/properties/state_revision/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}else {if(data34 < 0 || isNaN(data34)){const err84 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphReadyMessage/properties/state_revision/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}}var valid14 = _errs89 === errors;}else {var valid14 = true;}if(valid14){if(data.kind !== undefined && func0.call(data, "kind")){const _errs91 = errors;if("ready" !== data.kind){const err85 = {instancePath:instancePath+"/kind",schemaPath:"#/$defs/GraphReadyMessage/properties/kind/const",keyword:"const",params:{allowedValue: "ready"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}var valid14 = _errs91 === errors;}else {var valid14 = true;}}}}}}}}}else {const err86 = {instancePath,schemaPath:"#/$defs/GraphReadyMessage/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}var _valid0 = _errs78 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = true;}}const _errs92 = errors;const _errs93 = errors;if(errors === _errs93){if(data && typeof data == "object" && !Array.isArray(data)){let missing8;if(((((((((data.bridge_version === undefined) || (!(func0.call(data, "bridge_version")))) && (missing8 = "bridge_version")) || (((data.instance_id === undefined) || (!(func0.call(data, "instance_id")))) && (missing8 = "instance_id"))) || (((data.session_id === undefined) || (!(func0.call(data, "session_id")))) && (missing8 = "session_id"))) || (((data.execution_id === undefined) || (!(func0.call(data, "execution_id")))) && (missing8 = "execution_id"))) || (((data.state_revision === undefined) || (!(func0.call(data, "state_revision")))) && (missing8 = "state_revision"))) || (((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing8 = "kind"))) || (((data.body === undefined) || (!(func0.call(data, "body")))) && (missing8 = "body"))){const err87 = {instancePath,schemaPath:"#/$defs/GraphFailedMessage/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {const _errs95 = errors;for(const key8 of Object.keys(data)){if(!(((((((key8 === "bridge_version") || (key8 === "instance_id")) || (key8 === "session_id")) || (key8 === "execution_id")) || (key8 === "state_revision")) || (key8 === "kind")) || (key8 === "body"))){const err88 = {instancePath,schemaPath:"#/$defs/GraphFailedMessage/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;break;}}if(_errs95 === errors){if(data.bridge_version !== undefined && func0.call(data, "bridge_version")){const _errs96 = errors;if(1 !== data.bridge_version){const err89 = {instancePath:instancePath+"/bridge_version",schemaPath:"#/$defs/GraphFailedMessage/properties/bridge_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}var valid16 = _errs96 === errors;}else {var valid16 = true;}if(valid16){if(data.instance_id !== undefined && func0.call(data, "instance_id")){let data37 = data.instance_id;const _errs97 = errors;if(errors === _errs97){if(typeof data37 === "string"){if(!pattern4.test(data37)){const err90 = {instancePath:instancePath+"/instance_id",schemaPath:"#/$defs/GraphFailedMessage/properties/instance_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}else {const err91 = {instancePath:instancePath+"/instance_id",schemaPath:"#/$defs/GraphFailedMessage/properties/instance_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}var valid16 = _errs97 === errors;}else {var valid16 = true;}if(valid16){if(data.session_id !== undefined && func0.call(data, "session_id")){let data38 = data.session_id;const _errs99 = errors;if(errors === _errs99){if(typeof data38 === "string"){if(!pattern4.test(data38)){const err92 = {instancePath:instancePath+"/session_id",schemaPath:"#/$defs/GraphFailedMessage/properties/session_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}else {const err93 = {instancePath:instancePath+"/session_id",schemaPath:"#/$defs/GraphFailedMessage/properties/session_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}var valid16 = _errs99 === errors;}else {var valid16 = true;}if(valid16){if(data.execution_id !== undefined && func0.call(data, "execution_id")){let data39 = data.execution_id;const _errs101 = errors;if(errors === _errs101){if(typeof data39 === "string"){if(!pattern4.test(data39)){const err94 = {instancePath:instancePath+"/execution_id",schemaPath:"#/$defs/GraphFailedMessage/properties/execution_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}else {const err95 = {instancePath:instancePath+"/execution_id",schemaPath:"#/$defs/GraphFailedMessage/properties/execution_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}var valid16 = _errs101 === errors;}else {var valid16 = true;}if(valid16){if(data.state_revision !== undefined && func0.call(data, "state_revision")){let data40 = data.state_revision;const _errs103 = errors;if(!(((typeof data40 == "number") && (!(data40 % 1) && !isNaN(data40))) && (isFinite(data40)))){const err96 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphFailedMessage/properties/state_revision/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if(errors === _errs103){if((typeof data40 == "number") && (isFinite(data40))){if(data40 > 9007199254740991 || isNaN(data40)){const err97 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphFailedMessage/properties/state_revision/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}else {if(data40 < 0 || isNaN(data40)){const err98 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphFailedMessage/properties/state_revision/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}}}var valid16 = _errs103 === errors;}else {var valid16 = true;}if(valid16){if(data.kind !== undefined && func0.call(data, "kind")){const _errs105 = errors;if("failed" !== data.kind){const err99 = {instancePath:instancePath+"/kind",schemaPath:"#/$defs/GraphFailedMessage/properties/kind/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}var valid16 = _errs105 === errors;}else {var valid16 = true;}if(valid16){if(data.body !== undefined && func0.call(data, "body")){let data42 = data.body;const _errs106 = errors;if(errors === _errs106){if(data42 && typeof data42 == "object" && !Array.isArray(data42)){let missing9;if(((data42.code === undefined) || (!(func0.call(data42, "code")))) && (missing9 = "code")){const err100 = {instancePath:instancePath+"/body",schemaPath:"#/$defs/GraphFailedMessage/properties/body/required",keyword:"required",params:{missingProperty: missing9},message:"must have required property '"+missing9+"'"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}else {const _errs108 = errors;for(const key9 of Object.keys(data42)){if(!(key9 === "code")){const err101 = {instancePath:instancePath+"/body",schemaPath:"#/$defs/GraphFailedMessage/properties/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;break;}}if(_errs108 === errors){if(data42.code !== undefined && func0.call(data42, "code")){let data43 = data42.code;if(!(((((((data43 === "engine_init") || (data43 === "execution")) || (data43 === "budget")) || (data43 === "invalid_scene")) || (data43 === "protocol")) || (data43 === "worker_timeout")) || (data43 === "first_frame_timeout"))){const err102 = {instancePath:instancePath+"/body/code",schemaPath:"#/$defs/GraphFailedMessage/properties/body/properties/code/enum",keyword:"enum",params:{allowedValues: schema41.properties.body.properties.code.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}}}}else {const err103 = {instancePath:instancePath+"/body",schemaPath:"#/$defs/GraphFailedMessage/properties/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}var valid16 = _errs106 === errors;}else {var valid16 = true;}}}}}}}}}}else {const err104 = {instancePath,schemaPath:"#/$defs/GraphFailedMessage/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}var _valid0 = _errs92 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = true;}}const _errs110 = errors;const _errs111 = errors;if(errors === _errs111){if(data && typeof data == "object" && !Array.isArray(data)){let missing10;if((((((((data.bridge_version === undefined) || (!(func0.call(data, "bridge_version")))) && (missing10 = "bridge_version")) || (((data.instance_id === undefined) || (!(func0.call(data, "instance_id")))) && (missing10 = "instance_id"))) || (((data.session_id === undefined) || (!(func0.call(data, "session_id")))) && (missing10 = "session_id"))) || (((data.execution_id === undefined) || (!(func0.call(data, "execution_id")))) && (missing10 = "execution_id"))) || (((data.state_revision === undefined) || (!(func0.call(data, "state_revision")))) && (missing10 = "state_revision"))) || (((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing10 = "kind"))){const err105 = {instancePath,schemaPath:"#/$defs/GraphSuspendMessage/required",keyword:"required",params:{missingProperty: missing10},message:"must have required property '"+missing10+"'"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}else {const _errs113 = errors;for(const key10 of Object.keys(data)){if(!((((((key10 === "bridge_version") || (key10 === "instance_id")) || (key10 === "session_id")) || (key10 === "execution_id")) || (key10 === "state_revision")) || (key10 === "kind"))){const err106 = {instancePath,schemaPath:"#/$defs/GraphSuspendMessage/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;break;}}if(_errs113 === errors){if(data.bridge_version !== undefined && func0.call(data, "bridge_version")){const _errs114 = errors;if(1 !== data.bridge_version){const err107 = {instancePath:instancePath+"/bridge_version",schemaPath:"#/$defs/GraphSuspendMessage/properties/bridge_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}var valid19 = _errs114 === errors;}else {var valid19 = true;}if(valid19){if(data.instance_id !== undefined && func0.call(data, "instance_id")){let data45 = data.instance_id;const _errs115 = errors;if(errors === _errs115){if(typeof data45 === "string"){if(!pattern4.test(data45)){const err108 = {instancePath:instancePath+"/instance_id",schemaPath:"#/$defs/GraphSuspendMessage/properties/instance_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}else {const err109 = {instancePath:instancePath+"/instance_id",schemaPath:"#/$defs/GraphSuspendMessage/properties/instance_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}var valid19 = _errs115 === errors;}else {var valid19 = true;}if(valid19){if(data.session_id !== undefined && func0.call(data, "session_id")){let data46 = data.session_id;const _errs117 = errors;if(errors === _errs117){if(typeof data46 === "string"){if(!pattern4.test(data46)){const err110 = {instancePath:instancePath+"/session_id",schemaPath:"#/$defs/GraphSuspendMessage/properties/session_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}else {const err111 = {instancePath:instancePath+"/session_id",schemaPath:"#/$defs/GraphSuspendMessage/properties/session_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}var valid19 = _errs117 === errors;}else {var valid19 = true;}if(valid19){if(data.execution_id !== undefined && func0.call(data, "execution_id")){let data47 = data.execution_id;const _errs119 = errors;if(errors === _errs119){if(typeof data47 === "string"){if(!pattern4.test(data47)){const err112 = {instancePath:instancePath+"/execution_id",schemaPath:"#/$defs/GraphSuspendMessage/properties/execution_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}else {const err113 = {instancePath:instancePath+"/execution_id",schemaPath:"#/$defs/GraphSuspendMessage/properties/execution_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}var valid19 = _errs119 === errors;}else {var valid19 = true;}if(valid19){if(data.state_revision !== undefined && func0.call(data, "state_revision")){let data48 = data.state_revision;const _errs121 = errors;if(!(((typeof data48 == "number") && (!(data48 % 1) && !isNaN(data48))) && (isFinite(data48)))){const err114 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphSuspendMessage/properties/state_revision/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}if(errors === _errs121){if((typeof data48 == "number") && (isFinite(data48))){if(data48 > 9007199254740991 || isNaN(data48)){const err115 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphSuspendMessage/properties/state_revision/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}else {if(data48 < 0 || isNaN(data48)){const err116 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphSuspendMessage/properties/state_revision/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}}}var valid19 = _errs121 === errors;}else {var valid19 = true;}if(valid19){if(data.kind !== undefined && func0.call(data, "kind")){const _errs123 = errors;if("suspend" !== data.kind){const err117 = {instancePath:instancePath+"/kind",schemaPath:"#/$defs/GraphSuspendMessage/properties/kind/const",keyword:"const",params:{allowedValue: "suspend"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}var valid19 = _errs123 === errors;}else {var valid19 = true;}}}}}}}}}else {const err118 = {instancePath,schemaPath:"#/$defs/GraphSuspendMessage/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}var _valid0 = _errs110 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = true;}}const _errs124 = errors;const _errs125 = errors;if(errors === _errs125){if(data && typeof data == "object" && !Array.isArray(data)){let missing11;if(((((((((data.bridge_version === undefined) || (!(func0.call(data, "bridge_version")))) && (missing11 = "bridge_version")) || (((data.instance_id === undefined) || (!(func0.call(data, "instance_id")))) && (missing11 = "instance_id"))) || (((data.session_id === undefined) || (!(func0.call(data, "session_id")))) && (missing11 = "session_id"))) || (((data.execution_id === undefined) || (!(func0.call(data, "execution_id")))) && (missing11 = "execution_id"))) || (((data.state_revision === undefined) || (!(func0.call(data, "state_revision")))) && (missing11 = "state_revision"))) || (((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing11 = "kind"))) || (((data.body === undefined) || (!(func0.call(data, "body")))) && (missing11 = "body"))){const err119 = {instancePath,schemaPath:"#/$defs/GraphResumeMessage/required",keyword:"required",params:{missingProperty: missing11},message:"must have required property '"+missing11+"'"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}else {const _errs127 = errors;for(const key11 of Object.keys(data)){if(!(((((((key11 === "bridge_version") || (key11 === "instance_id")) || (key11 === "session_id")) || (key11 === "execution_id")) || (key11 === "state_revision")) || (key11 === "kind")) || (key11 === "body"))){const err120 = {instancePath,schemaPath:"#/$defs/GraphResumeMessage/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;break;}}if(_errs127 === errors){if(data.bridge_version !== undefined && func0.call(data, "bridge_version")){const _errs128 = errors;if(1 !== data.bridge_version){const err121 = {instancePath:instancePath+"/bridge_version",schemaPath:"#/$defs/GraphResumeMessage/properties/bridge_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}var valid21 = _errs128 === errors;}else {var valid21 = true;}if(valid21){if(data.instance_id !== undefined && func0.call(data, "instance_id")){let data51 = data.instance_id;const _errs129 = errors;if(errors === _errs129){if(typeof data51 === "string"){if(!pattern4.test(data51)){const err122 = {instancePath:instancePath+"/instance_id",schemaPath:"#/$defs/GraphResumeMessage/properties/instance_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}else {const err123 = {instancePath:instancePath+"/instance_id",schemaPath:"#/$defs/GraphResumeMessage/properties/instance_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}var valid21 = _errs129 === errors;}else {var valid21 = true;}if(valid21){if(data.session_id !== undefined && func0.call(data, "session_id")){let data52 = data.session_id;const _errs131 = errors;if(errors === _errs131){if(typeof data52 === "string"){if(!pattern4.test(data52)){const err124 = {instancePath:instancePath+"/session_id",schemaPath:"#/$defs/GraphResumeMessage/properties/session_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}else {const err125 = {instancePath:instancePath+"/session_id",schemaPath:"#/$defs/GraphResumeMessage/properties/session_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}var valid21 = _errs131 === errors;}else {var valid21 = true;}if(valid21){if(data.execution_id !== undefined && func0.call(data, "execution_id")){let data53 = data.execution_id;const _errs133 = errors;if(errors === _errs133){if(typeof data53 === "string"){if(!pattern4.test(data53)){const err126 = {instancePath:instancePath+"/execution_id",schemaPath:"#/$defs/GraphResumeMessage/properties/execution_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}else {const err127 = {instancePath:instancePath+"/execution_id",schemaPath:"#/$defs/GraphResumeMessage/properties/execution_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}var valid21 = _errs133 === errors;}else {var valid21 = true;}if(valid21){if(data.state_revision !== undefined && func0.call(data, "state_revision")){let data54 = data.state_revision;const _errs135 = errors;if(!(((typeof data54 == "number") && (!(data54 % 1) && !isNaN(data54))) && (isFinite(data54)))){const err128 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphResumeMessage/properties/state_revision/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(errors === _errs135){if((typeof data54 == "number") && (isFinite(data54))){if(data54 > 9007199254740991 || isNaN(data54)){const err129 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphResumeMessage/properties/state_revision/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}else {if(data54 < 0 || isNaN(data54)){const err130 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphResumeMessage/properties/state_revision/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}}}var valid21 = _errs135 === errors;}else {var valid21 = true;}if(valid21){if(data.kind !== undefined && func0.call(data, "kind")){const _errs137 = errors;if("resume" !== data.kind){const err131 = {instancePath:instancePath+"/kind",schemaPath:"#/$defs/GraphResumeMessage/properties/kind/const",keyword:"const",params:{allowedValue: "resume"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}var valid21 = _errs137 === errors;}else {var valid21 = true;}if(valid21){if(data.body !== undefined && func0.call(data, "body")){let data56 = data.body;const _errs138 = errors;if(errors === _errs138){if(data56 && typeof data56 == "object" && !Array.isArray(data56)){let missing12;if(((data56.selectedId === undefined) || (!(func0.call(data56, "selectedId")))) && (missing12 = "selectedId")){const err132 = {instancePath:instancePath+"/body",schemaPath:"#/$defs/GraphResumeMessage/properties/body/required",keyword:"required",params:{missingProperty: missing12},message:"must have required property '"+missing12+"'"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}else {const _errs140 = errors;for(const key12 of Object.keys(data56)){if(!(key12 === "selectedId")){const err133 = {instancePath:instancePath+"/body",schemaPath:"#/$defs/GraphResumeMessage/properties/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;break;}}if(_errs140 === errors){if(data56.selectedId !== undefined && func0.call(data56, "selectedId")){let data57 = data56.selectedId;const _errs142 = errors;let valid23 = false;const _errs143 = errors;if(errors === _errs143){if(typeof data57 === "string"){if(!pattern10.test(data57)){const err134 = {instancePath:instancePath+"/body/selectedId",schemaPath:"#/$defs/GraphResumeMessage/properties/body/properties/selectedId/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z0-9_-]{1,64}$"},message:"must match pattern \""+"^[A-Za-z0-9_-]{1,64}$"+"\""};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}else {const err135 = {instancePath:instancePath+"/body/selectedId",schemaPath:"#/$defs/GraphResumeMessage/properties/body/properties/selectedId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}var _valid2 = _errs143 === errors;valid23 = valid23 || _valid2;const _errs145 = errors;if(data57 !== null){const err136 = {instancePath:instancePath+"/body/selectedId",schemaPath:"#/$defs/GraphResumeMessage/properties/body/properties/selectedId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}var _valid2 = _errs145 === errors;valid23 = valid23 || _valid2;if(!valid23){const err137 = {instancePath:instancePath+"/body/selectedId",schemaPath:"#/$defs/GraphResumeMessage/properties/body/properties/selectedId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}else {errors = _errs142;if(vErrors !== null){if(_errs142){vErrors.length = _errs142;}else {vErrors = null;}}}}}}}else {const err138 = {instancePath:instancePath+"/body",schemaPath:"#/$defs/GraphResumeMessage/properties/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}var valid21 = _errs138 === errors;}else {var valid21 = true;}}}}}}}}}}else {const err139 = {instancePath,schemaPath:"#/$defs/GraphResumeMessage/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}var _valid0 = _errs124 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = true;}}const _errs147 = errors;const _errs148 = errors;if(errors === _errs148){if(data && typeof data == "object" && !Array.isArray(data)){let missing13;if((((((((data.bridge_version === undefined) || (!(func0.call(data, "bridge_version")))) && (missing13 = "bridge_version")) || (((data.instance_id === undefined) || (!(func0.call(data, "instance_id")))) && (missing13 = "instance_id"))) || (((data.session_id === undefined) || (!(func0.call(data, "session_id")))) && (missing13 = "session_id"))) || (((data.execution_id === undefined) || (!(func0.call(data, "execution_id")))) && (missing13 = "execution_id"))) || (((data.state_revision === undefined) || (!(func0.call(data, "state_revision")))) && (missing13 = "state_revision"))) || (((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing13 = "kind"))){const err140 = {instancePath,schemaPath:"#/$defs/GraphSettledMessage/required",keyword:"required",params:{missingProperty: missing13},message:"must have required property '"+missing13+"'"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}else {const _errs150 = errors;for(const key13 of Object.keys(data)){if(!((((((key13 === "bridge_version") || (key13 === "instance_id")) || (key13 === "session_id")) || (key13 === "execution_id")) || (key13 === "state_revision")) || (key13 === "kind"))){const err141 = {instancePath,schemaPath:"#/$defs/GraphSettledMessage/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;break;}}if(_errs150 === errors){if(data.bridge_version !== undefined && func0.call(data, "bridge_version")){const _errs151 = errors;if(1 !== data.bridge_version){const err142 = {instancePath:instancePath+"/bridge_version",schemaPath:"#/$defs/GraphSettledMessage/properties/bridge_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}var valid25 = _errs151 === errors;}else {var valid25 = true;}if(valid25){if(data.instance_id !== undefined && func0.call(data, "instance_id")){let data59 = data.instance_id;const _errs152 = errors;if(errors === _errs152){if(typeof data59 === "string"){if(!pattern4.test(data59)){const err143 = {instancePath:instancePath+"/instance_id",schemaPath:"#/$defs/GraphSettledMessage/properties/instance_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}else {const err144 = {instancePath:instancePath+"/instance_id",schemaPath:"#/$defs/GraphSettledMessage/properties/instance_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}var valid25 = _errs152 === errors;}else {var valid25 = true;}if(valid25){if(data.session_id !== undefined && func0.call(data, "session_id")){let data60 = data.session_id;const _errs154 = errors;if(errors === _errs154){if(typeof data60 === "string"){if(!pattern4.test(data60)){const err145 = {instancePath:instancePath+"/session_id",schemaPath:"#/$defs/GraphSettledMessage/properties/session_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}else {const err146 = {instancePath:instancePath+"/session_id",schemaPath:"#/$defs/GraphSettledMessage/properties/session_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}var valid25 = _errs154 === errors;}else {var valid25 = true;}if(valid25){if(data.execution_id !== undefined && func0.call(data, "execution_id")){let data61 = data.execution_id;const _errs156 = errors;if(errors === _errs156){if(typeof data61 === "string"){if(!pattern4.test(data61)){const err147 = {instancePath:instancePath+"/execution_id",schemaPath:"#/$defs/GraphSettledMessage/properties/execution_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}else {const err148 = {instancePath:instancePath+"/execution_id",schemaPath:"#/$defs/GraphSettledMessage/properties/execution_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}var valid25 = _errs156 === errors;}else {var valid25 = true;}if(valid25){if(data.state_revision !== undefined && func0.call(data, "state_revision")){let data62 = data.state_revision;const _errs158 = errors;if(!(((typeof data62 == "number") && (!(data62 % 1) && !isNaN(data62))) && (isFinite(data62)))){const err149 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphSettledMessage/properties/state_revision/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if(errors === _errs158){if((typeof data62 == "number") && (isFinite(data62))){if(data62 > 9007199254740991 || isNaN(data62)){const err150 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphSettledMessage/properties/state_revision/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}else {if(data62 < 0 || isNaN(data62)){const err151 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphSettledMessage/properties/state_revision/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}}}var valid25 = _errs158 === errors;}else {var valid25 = true;}if(valid25){if(data.kind !== undefined && func0.call(data, "kind")){const _errs160 = errors;if("settled" !== data.kind){const err152 = {instancePath:instancePath+"/kind",schemaPath:"#/$defs/GraphSettledMessage/properties/kind/const",keyword:"const",params:{allowedValue: "settled"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}var valid25 = _errs160 === errors;}else {var valid25 = true;}}}}}}}}}else {const err153 = {instancePath,schemaPath:"#/$defs/GraphSettledMessage/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}var _valid0 = _errs147 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = true;}}const _errs161 = errors;const _errs162 = errors;if(errors === _errs162){if(data && typeof data == "object" && !Array.isArray(data)){let missing14;if((((((((data.bridge_version === undefined) || (!(func0.call(data, "bridge_version")))) && (missing14 = "bridge_version")) || (((data.instance_id === undefined) || (!(func0.call(data, "instance_id")))) && (missing14 = "instance_id"))) || (((data.session_id === undefined) || (!(func0.call(data, "session_id")))) && (missing14 = "session_id"))) || (((data.execution_id === undefined) || (!(func0.call(data, "execution_id")))) && (missing14 = "execution_id"))) || (((data.state_revision === undefined) || (!(func0.call(data, "state_revision")))) && (missing14 = "state_revision"))) || (((data.kind === undefined) || (!(func0.call(data, "kind")))) && (missing14 = "kind"))){const err154 = {instancePath,schemaPath:"#/$defs/GraphDisposeMessage/required",keyword:"required",params:{missingProperty: missing14},message:"must have required property '"+missing14+"'"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}else {const _errs164 = errors;for(const key14 of Object.keys(data)){if(!((((((key14 === "bridge_version") || (key14 === "instance_id")) || (key14 === "session_id")) || (key14 === "execution_id")) || (key14 === "state_revision")) || (key14 === "kind"))){const err155 = {instancePath,schemaPath:"#/$defs/GraphDisposeMessage/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;break;}}if(_errs164 === errors){if(data.bridge_version !== undefined && func0.call(data, "bridge_version")){const _errs165 = errors;if(1 !== data.bridge_version){const err156 = {instancePath:instancePath+"/bridge_version",schemaPath:"#/$defs/GraphDisposeMessage/properties/bridge_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}var valid27 = _errs165 === errors;}else {var valid27 = true;}if(valid27){if(data.instance_id !== undefined && func0.call(data, "instance_id")){let data65 = data.instance_id;const _errs166 = errors;if(errors === _errs166){if(typeof data65 === "string"){if(!pattern4.test(data65)){const err157 = {instancePath:instancePath+"/instance_id",schemaPath:"#/$defs/GraphDisposeMessage/properties/instance_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}else {const err158 = {instancePath:instancePath+"/instance_id",schemaPath:"#/$defs/GraphDisposeMessage/properties/instance_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}var valid27 = _errs166 === errors;}else {var valid27 = true;}if(valid27){if(data.session_id !== undefined && func0.call(data, "session_id")){let data66 = data.session_id;const _errs168 = errors;if(errors === _errs168){if(typeof data66 === "string"){if(!pattern4.test(data66)){const err159 = {instancePath:instancePath+"/session_id",schemaPath:"#/$defs/GraphDisposeMessage/properties/session_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}else {const err160 = {instancePath:instancePath+"/session_id",schemaPath:"#/$defs/GraphDisposeMessage/properties/session_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}var valid27 = _errs168 === errors;}else {var valid27 = true;}if(valid27){if(data.execution_id !== undefined && func0.call(data, "execution_id")){let data67 = data.execution_id;const _errs170 = errors;if(errors === _errs170){if(typeof data67 === "string"){if(!pattern4.test(data67)){const err161 = {instancePath:instancePath+"/execution_id",schemaPath:"#/$defs/GraphDisposeMessage/properties/execution_id/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9-]{36}$"},message:"must match pattern \""+"^[a-f0-9-]{36}$"+"\""};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}else {const err162 = {instancePath:instancePath+"/execution_id",schemaPath:"#/$defs/GraphDisposeMessage/properties/execution_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}var valid27 = _errs170 === errors;}else {var valid27 = true;}if(valid27){if(data.state_revision !== undefined && func0.call(data, "state_revision")){let data68 = data.state_revision;const _errs172 = errors;if(!(((typeof data68 == "number") && (!(data68 % 1) && !isNaN(data68))) && (isFinite(data68)))){const err163 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphDisposeMessage/properties/state_revision/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if(errors === _errs172){if((typeof data68 == "number") && (isFinite(data68))){if(data68 > 9007199254740991 || isNaN(data68)){const err164 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphDisposeMessage/properties/state_revision/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}else {if(data68 < 0 || isNaN(data68)){const err165 = {instancePath:instancePath+"/state_revision",schemaPath:"#/$defs/GraphDisposeMessage/properties/state_revision/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}}}var valid27 = _errs172 === errors;}else {var valid27 = true;}if(valid27){if(data.kind !== undefined && func0.call(data, "kind")){const _errs174 = errors;if("dispose" !== data.kind){const err166 = {instancePath:instancePath+"/kind",schemaPath:"#/$defs/GraphDisposeMessage/properties/kind/const",keyword:"const",params:{allowedValue: "dispose"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}var valid27 = _errs174 === errors;}else {var valid27 = true;}}}}}}}}}else {const err167 = {instancePath,schemaPath:"#/$defs/GraphDisposeMessage/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}var _valid0 = _errs161 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = true;}}if(!valid0){const err168 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;validate20.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate20.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate20.evaluated = {"dynamicProps":true,"dynamicItems":false};
@@ -0,0 +1,4 @@
1
+ /* Generated. Do not edit. */
2
+ import type { GraphBridgeMessage } from "./bridge.generated.js";
3
+ declare function validate(value: unknown): value is GraphBridgeMessage;
4
+ export = validate;
@@ -0,0 +1 @@
1
+ export {};