@power-plant/alloy-js 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) hide show
  1. package/dist/alert-BZRTtU1X.d.cts +52 -0
  2. package/dist/alert-BZRTtU1X.d.cts.map +1 -0
  3. package/dist/alert-BZRTtU1X.d.mts +52 -0
  4. package/dist/alert-BZRTtU1X.d.mts.map +1 -0
  5. package/dist/block-declaration-DbMuMxXx.d.cts +19 -0
  6. package/dist/block-declaration-DbMuMxXx.d.cts.map +1 -0
  7. package/dist/block-declaration-Yq4hWFFT.d.mts +19 -0
  8. package/dist/block-declaration-Yq4hWFFT.d.mts.map +1 -0
  9. package/dist/class-declaration-CL5quGqz.d.mts +139 -0
  10. package/dist/class-declaration-CL5quGqz.d.mts.map +1 -0
  11. package/dist/class-declaration-G7ncTlSj.d.cts +139 -0
  12. package/dist/class-declaration-G7ncTlSj.d.cts.map +1 -0
  13. package/dist/components-D8UkrP5Q.d.cts +11 -0
  14. package/dist/components-D8UkrP5Q.d.cts.map +1 -0
  15. package/dist/components-D8UkrP5Q.d.mts +11 -0
  16. package/dist/components-D8UkrP5Q.d.mts.map +1 -0
  17. package/dist/core/components/index.cjs +1 -1
  18. package/dist/core/components/index.d.cts +1 -1
  19. package/dist/core/components/index.d.mts +1 -1
  20. package/dist/core/components/index.mjs +1 -1
  21. package/dist/core/components/source-file.cjs +1 -1
  22. package/dist/core/components/source-file.d.cts +1 -1
  23. package/dist/core/components/source-file.d.mts +1 -1
  24. package/dist/core/components/source-file.mjs +2 -1
  25. package/dist/core/components/source-file.mjs.map +1 -0
  26. package/dist/core/helpers/header-constants.cjs +1 -0
  27. package/dist/core/helpers/header-constants.d.cts +12 -0
  28. package/dist/core/helpers/header-constants.d.cts.map +1 -0
  29. package/dist/core/helpers/header-constants.d.mts +12 -0
  30. package/dist/core/helpers/header-constants.d.mts.map +1 -0
  31. package/dist/core/helpers/header-constants.mjs +2 -0
  32. package/dist/core/helpers/header-constants.mjs.map +1 -0
  33. package/dist/core/index.cjs +1 -1
  34. package/dist/core/index.d.cts +1 -1
  35. package/dist/core/index.d.mts +1 -1
  36. package/dist/core/index.mjs +1 -1
  37. package/dist/dynamic-import-statement--GIybIf5.d.cts +30 -0
  38. package/dist/dynamic-import-statement--GIybIf5.d.cts.map +1 -0
  39. package/dist/dynamic-import-statement--GIybIf5.d.mts +30 -0
  40. package/dist/dynamic-import-statement--GIybIf5.d.mts.map +1 -0
  41. package/dist/front-matter-N6kiCG9y.d.cts +13 -0
  42. package/dist/front-matter-N6kiCG9y.d.cts.map +1 -0
  43. package/dist/front-matter-N6kiCG9y.d.mts +13 -0
  44. package/dist/front-matter-N6kiCG9y.d.mts.map +1 -0
  45. package/dist/get-call-signature-props-B1NHhswg.d.cts +13 -0
  46. package/dist/get-call-signature-props-B1NHhswg.d.cts.map +1 -0
  47. package/dist/get-call-signature-props-B1NHhswg.d.mts +13 -0
  48. package/dist/get-call-signature-props-B1NHhswg.d.mts.map +1 -0
  49. package/dist/hcl/components/block-declaration.cjs +1 -0
  50. package/dist/hcl/components/block-declaration.d.cts +2 -0
  51. package/dist/hcl/components/block-declaration.d.mts +2 -0
  52. package/dist/hcl/components/block-declaration.mjs +2 -0
  53. package/dist/hcl/components/block-declaration.mjs.map +1 -0
  54. package/dist/hcl/components/hcl-file.cjs +1 -0
  55. package/dist/hcl/components/hcl-file.d.cts +2 -0
  56. package/dist/hcl/components/hcl-file.d.mts +2 -0
  57. package/dist/hcl/components/hcl-file.mjs +2 -0
  58. package/dist/hcl/components/hcl-file.mjs.map +1 -0
  59. package/dist/hcl/components/index.cjs +1 -0
  60. package/dist/hcl/components/index.d.cts +5 -0
  61. package/dist/hcl/components/index.d.mts +5 -0
  62. package/dist/hcl/components/index.mjs +1 -0
  63. package/dist/hcl/components/packer-file.cjs +1 -0
  64. package/dist/hcl/components/packer-file.d.cts +2 -0
  65. package/dist/hcl/components/packer-file.d.mts +2 -0
  66. package/dist/hcl/components/packer-file.mjs +2 -0
  67. package/dist/hcl/components/packer-file.mjs.map +1 -0
  68. package/dist/hcl/components/terraform-file.cjs +1 -0
  69. package/dist/hcl/components/terraform-file.d.cts +2 -0
  70. package/dist/hcl/components/terraform-file.d.mts +2 -0
  71. package/dist/hcl/components/terraform-file.mjs +2 -0
  72. package/dist/hcl/components/terraform-file.mjs.map +1 -0
  73. package/dist/hcl/index.cjs +1 -0
  74. package/dist/hcl/index.d.cts +6 -0
  75. package/dist/hcl/index.d.mts +6 -0
  76. package/dist/hcl/index.mjs +1 -0
  77. package/dist/hcl-file-CDeOXiO0.d.mts +25 -0
  78. package/dist/hcl-file-CDeOXiO0.d.mts.map +1 -0
  79. package/dist/hcl-file-CxR4hw4B.d.cts +25 -0
  80. package/dist/hcl-file-CxR4hw4B.d.cts.map +1 -0
  81. package/dist/heading-CG6LmaB5.d.cts +17 -0
  82. package/dist/heading-CG6LmaB5.d.cts.map +1 -0
  83. package/dist/heading-D0he7iDI.d.mts +17 -0
  84. package/dist/heading-D0he7iDI.d.mts.map +1 -0
  85. package/dist/index.cjs +1 -47
  86. package/dist/index.d.cts.map +1 -1
  87. package/dist/index.mjs +1 -47
  88. package/dist/interface-declaration-BSo-U6IN.d.cts +78 -0
  89. package/dist/interface-declaration-BSo-U6IN.d.cts.map +1 -0
  90. package/dist/interface-declaration-DYLPeJH1.d.mts +78 -0
  91. package/dist/interface-declaration-DYLPeJH1.d.mts.map +1 -0
  92. package/dist/lexical-scope-DghPwq5Q.d.cts +12 -0
  93. package/dist/lexical-scope-DghPwq5Q.d.cts.map +1 -0
  94. package/dist/lexical-scope-DghPwq5Q.d.mts +12 -0
  95. package/dist/lexical-scope-DghPwq5Q.d.mts.map +1 -0
  96. package/dist/markdown/components/alert.cjs +1 -0
  97. package/dist/markdown/components/alert.d.cts +2 -0
  98. package/dist/markdown/components/alert.d.mts +2 -0
  99. package/dist/markdown/components/alert.mjs +2 -0
  100. package/dist/markdown/components/alert.mjs.map +1 -0
  101. package/dist/markdown/components/front-matter.cjs +1 -0
  102. package/dist/markdown/components/front-matter.d.cts +2 -0
  103. package/dist/markdown/components/front-matter.d.mts +2 -0
  104. package/dist/markdown/components/front-matter.mjs +2 -0
  105. package/dist/markdown/components/front-matter.mjs.map +1 -0
  106. package/dist/markdown/components/heading.cjs +1 -0
  107. package/dist/markdown/components/heading.d.cts +2 -0
  108. package/dist/markdown/components/heading.d.mts +2 -0
  109. package/dist/markdown/components/heading.mjs +2 -0
  110. package/dist/markdown/components/heading.mjs.map +1 -0
  111. package/dist/markdown/components/index.cjs +1 -0
  112. package/dist/markdown/components/index.d.cts +6 -0
  113. package/dist/markdown/components/index.d.mts +6 -0
  114. package/dist/markdown/components/index.mjs +1 -0
  115. package/dist/markdown/components/markdown-file.cjs +1 -0
  116. package/dist/markdown/components/markdown-file.d.cts +2 -0
  117. package/dist/markdown/components/markdown-file.d.mts +2 -0
  118. package/dist/markdown/components/markdown-file.mjs +2 -0
  119. package/dist/markdown/components/markdown-file.mjs.map +1 -0
  120. package/dist/markdown/components/markdown-table.cjs +1 -0
  121. package/dist/markdown/components/markdown-table.d.cts +2 -0
  122. package/dist/markdown/components/markdown-table.d.mts +2 -0
  123. package/dist/markdown/components/markdown-table.mjs +2 -0
  124. package/dist/markdown/components/markdown-table.mjs.map +1 -0
  125. package/dist/markdown/contexts/index.cjs +1 -0
  126. package/dist/markdown/contexts/index.d.cts +2 -0
  127. package/dist/markdown/contexts/index.d.mts +2 -0
  128. package/dist/markdown/contexts/index.mjs +1 -0
  129. package/dist/markdown/contexts/markdown-table.cjs +1 -0
  130. package/dist/markdown/contexts/markdown-table.d.cts +2 -0
  131. package/dist/markdown/contexts/markdown-table.d.mts +2 -0
  132. package/dist/markdown/contexts/markdown-table.mjs +2 -0
  133. package/dist/markdown/contexts/markdown-table.mjs.map +1 -0
  134. package/dist/markdown/index.cjs +1 -0
  135. package/dist/markdown/index.d.cts +9 -0
  136. package/dist/markdown/index.d.mts +9 -0
  137. package/dist/markdown/index.mjs +1 -0
  138. package/dist/markdown-file-BsiASIVZ.d.cts +25 -0
  139. package/dist/markdown-file-BsiASIVZ.d.cts.map +1 -0
  140. package/dist/markdown-file-CG6y_nCf.d.mts +25 -0
  141. package/dist/markdown-file-CG6y_nCf.d.mts.map +1 -0
  142. package/dist/markdown-table-BxfTr3lV.d.cts +35 -0
  143. package/dist/markdown-table-BxfTr3lV.d.cts.map +1 -0
  144. package/dist/markdown-table-BxfTr3lV.d.mts +35 -0
  145. package/dist/markdown-table-BxfTr3lV.d.mts.map +1 -0
  146. package/dist/markdown-table-H4veEJCn.d.mts +37 -0
  147. package/dist/markdown-table-H4veEJCn.d.mts.map +1 -0
  148. package/dist/markdown-table-P04wFKse.d.cts +37 -0
  149. package/dist/markdown-table-P04wFKse.d.cts.map +1 -0
  150. package/dist/object-declaration-BWJ8zDKp.d.cts +24 -0
  151. package/dist/object-declaration-BWJ8zDKp.d.cts.map +1 -0
  152. package/dist/object-declaration-DQQhQypx.d.mts +24 -0
  153. package/dist/object-declaration-DQQhQypx.d.mts.map +1 -0
  154. package/dist/packer-file-DVdUCeHH.d.cts +16 -0
  155. package/dist/packer-file-DVdUCeHH.d.cts.map +1 -0
  156. package/dist/packer-file-DeJWrlcR.d.mts +16 -0
  157. package/dist/packer-file-DeJWrlcR.d.mts.map +1 -0
  158. package/dist/property-name-bQ4hrXmQ.d.cts +21 -0
  159. package/dist/property-name-bQ4hrXmQ.d.cts.map +1 -0
  160. package/dist/property-name-bQ4hrXmQ.d.mts +21 -0
  161. package/dist/property-name-bQ4hrXmQ.d.mts.map +1 -0
  162. package/dist/record-expression-CECGDPCk.d.cts +9 -0
  163. package/dist/record-expression-CECGDPCk.d.cts.map +1 -0
  164. package/dist/record-expression-CECGDPCk.d.mts +9 -0
  165. package/dist/record-expression-CECGDPCk.d.mts.map +1 -0
  166. package/dist/render.cjs +1 -1
  167. package/dist/render.mjs +2 -1
  168. package/dist/render.mjs.map +1 -0
  169. package/dist/rolldown-runtime-CMqjfN_6.cjs +1 -0
  170. package/dist/{source-file-DVILH8rC.d.mts → source-file-BiWHfxCC.d.mts} +5 -5
  171. package/dist/source-file-BiWHfxCC.d.mts.map +1 -0
  172. package/dist/{source-file-CPJOENVo.d.cts → source-file-DfP35Z8l.d.cts} +4 -4
  173. package/dist/source-file-DfP35Z8l.d.cts.map +1 -0
  174. package/dist/terraform-file-DS0uAb5z.d.mts +17 -0
  175. package/dist/terraform-file-DS0uAb5z.d.mts.map +1 -0
  176. package/dist/terraform-file-gr1_jJWO.d.cts +17 -0
  177. package/dist/terraform-file-gr1_jJWO.d.cts.map +1 -0
  178. package/dist/tsdoc-B6Hw9jOF.d.cts +163 -0
  179. package/dist/tsdoc-B6Hw9jOF.d.cts.map +1 -0
  180. package/dist/tsdoc-CFdZtTw6.d.mts +163 -0
  181. package/dist/tsdoc-CFdZtTw6.d.mts.map +1 -0
  182. package/dist/tsdoc-schema-B4yKswI-.d.mts +21 -0
  183. package/dist/tsdoc-schema-B4yKswI-.d.mts.map +1 -0
  184. package/dist/tsdoc-schema-DJ_3JLuh.d.cts +21 -0
  185. package/dist/tsdoc-schema-DJ_3JLuh.d.cts.map +1 -0
  186. package/dist/type-declaration-BLvkozNR.d.cts +15 -0
  187. package/dist/type-declaration-BLvkozNR.d.cts.map +1 -0
  188. package/dist/type-declaration-BLvkozNR.d.mts +15 -0
  189. package/dist/type-declaration-BLvkozNR.d.mts.map +1 -0
  190. package/dist/type-parameters-BzCDG9lT.d.cts +22 -0
  191. package/dist/type-parameters-BzCDG9lT.d.cts.map +1 -0
  192. package/dist/type-parameters-BzCDG9lT.d.mts +22 -0
  193. package/dist/type-parameters-BzCDG9lT.d.mts.map +1 -0
  194. package/dist/typescript/components/class-declaration.cjs +1 -0
  195. package/dist/typescript/components/class-declaration.d.cts +2 -0
  196. package/dist/typescript/components/class-declaration.d.mts +2 -0
  197. package/dist/typescript/components/class-declaration.mjs +2 -0
  198. package/dist/typescript/components/class-declaration.mjs.map +1 -0
  199. package/dist/typescript/components/dynamic-import-statement.cjs +1 -0
  200. package/dist/typescript/components/dynamic-import-statement.d.cts +2 -0
  201. package/dist/typescript/components/dynamic-import-statement.d.mts +2 -0
  202. package/dist/typescript/components/dynamic-import-statement.mjs +2 -0
  203. package/dist/typescript/components/dynamic-import-statement.mjs.map +1 -0
  204. package/dist/typescript/components/index.cjs +1 -0
  205. package/dist/typescript/components/index.d.cts +12 -0
  206. package/dist/typescript/components/index.d.mts +12 -0
  207. package/dist/typescript/components/index.mjs +1 -0
  208. package/dist/typescript/components/interface-declaration.cjs +1 -0
  209. package/dist/typescript/components/interface-declaration.d.cts +2 -0
  210. package/dist/typescript/components/interface-declaration.d.mts +2 -0
  211. package/dist/typescript/components/interface-declaration.mjs +2 -0
  212. package/dist/typescript/components/interface-declaration.mjs.map +1 -0
  213. package/dist/typescript/components/object-declaration.cjs +1 -0
  214. package/dist/typescript/components/object-declaration.d.cts +2 -0
  215. package/dist/typescript/components/object-declaration.d.mts +2 -0
  216. package/dist/typescript/components/object-declaration.mjs +2 -0
  217. package/dist/typescript/components/object-declaration.mjs.map +1 -0
  218. package/dist/typescript/components/property-name.cjs +1 -0
  219. package/dist/typescript/components/property-name.d.cts +2 -0
  220. package/dist/typescript/components/property-name.d.mts +2 -0
  221. package/dist/typescript/components/property-name.mjs +2 -0
  222. package/dist/typescript/components/property-name.mjs.map +1 -0
  223. package/dist/typescript/components/record-expression.cjs +3 -0
  224. package/dist/typescript/components/record-expression.d.cts +2 -0
  225. package/dist/typescript/components/record-expression.d.mts +2 -0
  226. package/dist/typescript/components/record-expression.mjs +4 -0
  227. package/dist/typescript/components/record-expression.mjs.map +1 -0
  228. package/dist/typescript/components/tsdoc-schema.cjs +1 -0
  229. package/dist/typescript/components/tsdoc-schema.d.cts +2 -0
  230. package/dist/typescript/components/tsdoc-schema.d.mts +2 -0
  231. package/dist/typescript/components/tsdoc-schema.mjs +2 -0
  232. package/dist/typescript/components/tsdoc-schema.mjs.map +1 -0
  233. package/dist/typescript/components/tsdoc.cjs +1 -0
  234. package/dist/typescript/components/tsdoc.d.cts +2 -0
  235. package/dist/typescript/components/tsdoc.d.mts +2 -0
  236. package/dist/typescript/components/tsdoc.mjs +2 -0
  237. package/dist/typescript/components/tsdoc.mjs.map +1 -0
  238. package/dist/typescript/components/type-declaration.cjs +1 -0
  239. package/dist/typescript/components/type-declaration.d.cts +2 -0
  240. package/dist/typescript/components/type-declaration.d.mts +2 -0
  241. package/dist/typescript/components/type-declaration.mjs +2 -0
  242. package/dist/typescript/components/type-declaration.mjs.map +1 -0
  243. package/dist/typescript/components/type-parameters.cjs +1 -0
  244. package/dist/typescript/components/type-parameters.d.cts +2 -0
  245. package/dist/typescript/components/type-parameters.d.mts +2 -0
  246. package/dist/typescript/components/type-parameters.mjs +2 -0
  247. package/dist/typescript/components/type-parameters.mjs.map +1 -0
  248. package/dist/typescript/components/typescript-file.cjs +1 -0
  249. package/dist/typescript/components/typescript-file.d.cts +2 -0
  250. package/dist/typescript/components/typescript-file.d.mts +2 -0
  251. package/dist/typescript/components/typescript-file.mjs +2 -0
  252. package/dist/typescript/components/typescript-file.mjs.map +1 -0
  253. package/dist/typescript/contexts/index.cjs +1 -0
  254. package/dist/typescript/contexts/index.d.cts +2 -0
  255. package/dist/typescript/contexts/index.d.mts +2 -0
  256. package/dist/typescript/contexts/index.mjs +1 -0
  257. package/dist/typescript/contexts/lexical-scope.cjs +1 -0
  258. package/dist/typescript/contexts/lexical-scope.d.cts +2 -0
  259. package/dist/typescript/contexts/lexical-scope.d.mts +2 -0
  260. package/dist/typescript/contexts/lexical-scope.mjs +2 -0
  261. package/dist/typescript/contexts/lexical-scope.mjs.map +1 -0
  262. package/dist/typescript/contexts/member-scope.cjs +1 -0
  263. package/dist/typescript/contexts/member-scope.d.cts +18 -0
  264. package/dist/typescript/contexts/member-scope.d.cts.map +1 -0
  265. package/dist/typescript/contexts/member-scope.d.mts +18 -0
  266. package/dist/typescript/contexts/member-scope.d.mts.map +1 -0
  267. package/dist/typescript/contexts/member-scope.mjs +2 -0
  268. package/dist/typescript/contexts/member-scope.mjs.map +1 -0
  269. package/dist/typescript/helpers/get-call-signature-props.cjs +1 -0
  270. package/dist/typescript/helpers/get-call-signature-props.d.cts +2 -0
  271. package/dist/typescript/helpers/get-call-signature-props.d.mts +2 -0
  272. package/dist/typescript/helpers/get-call-signature-props.mjs +2 -0
  273. package/dist/typescript/helpers/get-call-signature-props.mjs.map +1 -0
  274. package/dist/typescript/helpers/index.cjs +1 -0
  275. package/dist/typescript/helpers/index.d.cts +3 -0
  276. package/dist/typescript/helpers/index.d.mts +3 -0
  277. package/dist/typescript/helpers/index.mjs +1 -0
  278. package/dist/typescript/helpers/utilities.cjs +1 -0
  279. package/dist/typescript/helpers/utilities.d.cts +2 -0
  280. package/dist/typescript/helpers/utilities.d.mts +2 -0
  281. package/dist/typescript/helpers/utilities.mjs +2 -0
  282. package/dist/typescript/helpers/utilities.mjs.map +1 -0
  283. package/dist/typescript/index.cjs +1 -0
  284. package/dist/typescript/index.d.cts +19 -0
  285. package/dist/typescript/index.d.mts +19 -0
  286. package/dist/typescript/index.mjs +1 -0
  287. package/dist/typescript/types/components.cjs +0 -0
  288. package/dist/typescript/types/components.d.cts +2 -0
  289. package/dist/typescript/types/components.d.mts +2 -0
  290. package/dist/typescript/types/components.mjs +0 -0
  291. package/dist/typescript/types/index.cjs +0 -0
  292. package/dist/typescript/types/index.d.cts +2 -0
  293. package/dist/typescript/types/index.d.mts +2 -0
  294. package/dist/typescript/types/index.mjs +0 -0
  295. package/dist/typescript-file-C0GR7QWh.d.cts +49 -0
  296. package/dist/typescript-file-C0GR7QWh.d.cts.map +1 -0
  297. package/dist/typescript-file-YdpvA2Y-.d.mts +49 -0
  298. package/dist/typescript-file-YdpvA2Y-.d.mts.map +1 -0
  299. package/dist/utilities-BtXOWwjJ.d.cts +11 -0
  300. package/dist/utilities-BtXOWwjJ.d.cts.map +1 -0
  301. package/dist/utilities-BtXOWwjJ.d.mts +11 -0
  302. package/dist/utilities-BtXOWwjJ.d.mts.map +1 -0
  303. package/dist/yaml/components/index.cjs +1 -0
  304. package/dist/yaml/components/index.d.cts +2 -0
  305. package/dist/yaml/components/index.d.mts +2 -0
  306. package/dist/yaml/components/index.mjs +1 -0
  307. package/dist/yaml/components/yaml-file.cjs +1 -0
  308. package/dist/yaml/components/yaml-file.d.cts +2 -0
  309. package/dist/yaml/components/yaml-file.d.mts +2 -0
  310. package/dist/yaml/components/yaml-file.mjs +2 -0
  311. package/dist/yaml/components/yaml-file.mjs.map +1 -0
  312. package/dist/yaml/index.cjs +1 -0
  313. package/dist/yaml/index.d.cts +3 -0
  314. package/dist/yaml/index.d.mts +3 -0
  315. package/dist/yaml/index.mjs +1 -0
  316. package/dist/yaml-file-BBXSkeRl.d.cts +31 -0
  317. package/dist/yaml-file-BBXSkeRl.d.cts.map +1 -0
  318. package/dist/yaml-file-BRSIxFdU.d.mts +31 -0
  319. package/dist/yaml-file-BRSIxFdU.d.mts.map +1 -0
  320. package/package.json +570 -11
  321. package/dist/render-Bh6nE1bo.cjs +0 -1
  322. package/dist/render-UH3hN5fr.mjs +0 -2
  323. package/dist/render-UH3hN5fr.mjs.map +0 -1
  324. package/dist/source-file-CPJOENVo.d.cts.map +0 -1
  325. package/dist/source-file-DVILH8rC.d.mts.map +0 -1
  326. package/dist/source-file-K_2P7eFP.cjs +0 -1
  327. package/dist/source-file-t3itBybg.mjs +0 -2
  328. package/dist/source-file-t3itBybg.mjs.map +0 -1
package/dist/index.mjs CHANGED
@@ -1,48 +1,2 @@
1
- import{t as e}from"./render-UH3hN5fr.mjs";import{defineGenerator as t,defineSchema as n,useExecutionContext as r}from"@power-plant/core";var i=Object.defineProperty,a=(e,t)=>{let n={};for(var r in e)i(n,r,{get:e[r],enumerable:!0});return t||i(n,Symbol.toStringTag,{value:`Module`}),n};function o(e){return s(e,[])}function s(e,t){switch(typeof e){case`string`:return JSON.stringify(e);case`function`:return e.name?`[function ${e.name}]`:`[function]`;case`object`:return c(e,t);default:return String(e)}}function c(e,t){if(e===null)return`null`;if(t.includes(e))return`[Circular]`;let n=[...t,e];if(l(e)){let t=e.toJSON();if(t!==e)return typeof t==`string`?t:s(t,n)}else if(Array.isArray(e))return d(e,n);return u(e,n)}function l(e){return typeof e.toJSON==`function`}function u(e,t){let n=Object.entries(e);return n.length===0?`{}`:t.length>2?`[`+f(e)+`]`:`{ `+n.map(([e,n])=>e+`: `+s(n,t)).join(`, `)+` }`}function d(e,t){if(e.length===0)return`[]`;if(t.length>2)return`[Array]`;let n=Math.min(10,e.length),r=e.length-n,i=[];for(let r=0;r<n;++r)i.push(s(e[r],t));return r===1?i.push(`... 1 more item`):r>1&&i.push(`... ${r} more items`),`[`+i.join(`, `)+`]`}function f(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,``).replace(/]$/,``);if(t===`Object`&&typeof e.constructor==`function`){let t=e.constructor.name;if(typeof t==`string`&&t!==``)return t}return t}function p(e,t){return e?.__kind===t}let m=p;function h(e){return typeof e==`object`&&!!e}function g(e,t){if(!e)throw Error(t??`Unexpected invariant triggered.`)}const ee=/\r\n|[\n\r]/g;function te(e,t){let n=0,r=1;for(let i of e.body.matchAll(ee)){if(typeof i.index!=`number`&&g(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function ne(e){return re(e.source,te(e.source,e.start))}function re(e,t){let n=e.locationOffset.column-1,r=``.padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=t.line===1?n:0,c=t.column+s,l=`${e.name}:${o}:${c}\n`,u=r.split(/\r\n|[\n\r]/g),d=u[i];if(d.length>120){let e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return l+ie([[`${o} |`,n[0]],...n.slice(1,e+1).map(e=>[`|`,e]),[`|`,`^`.padStart(t)],[`|`,n[e+1]]])}return l+ie([[`${o-1} |`,u[i-1]],[`${o} |`,d],[`|`,`^`.padStart(c)],[`${o+1} |`,u[i+1]]])}function ie(e){let t=e.filter(([e,t])=>t!==void 0),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?` `+t:``)).join(`
2
- `)}var _=class e extends Error{constructor(t,n={}){let{nodes:r,source:i,positions:a,path:o,originalError:s,cause:c,extensions:l}=n,u=`cause`in n;super(t,u||s!=null?{cause:u?c:s}:void 0),this.name=`GraphQLError`,this.path=o??void 0;let d=s??(c instanceof Error?c:void 0);this.originalError=d,this.nodes=ae(Array.isArray(r)?r:r?[r]:void 0);let f=ae(this.nodes?.map(e=>e.loc).filter(e=>e!=null));this.source=i??f?.[0]?.source,this.positions=a??f?.map(e=>e.start),this.locations=a&&i?a.map(e=>te(i,e)):f?.map(e=>te(e.source,e.start));let p=h(d?.extensions)?d.extensions:void 0;this.extensions=l??p??Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),s?.stack==null?Error.captureStackTrace==null?Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0}):Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:s.stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return`GraphQLError`}toString(){let e=this.message;if(this.nodes)for(let t of this.nodes)t.loc&&(e+=`
3
-
4
- `+ne(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+=`
5
-
6
- `+re(this.source,t);return e}toJSON(){let e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}};function ae(e){return e===void 0||e.length===0?void 0:e}function oe(e){return se(`or`,e)}function se(e,t){switch(t.length===0&&g(!1),t.length){case 1:return t[0];case 2:return t[0]+` `+e+` `+t[1]}let n=t.slice(0,-1),r=t.at(-1);return n.join(`, `)+`, `+e+` `+r}function ce(e){return typeof e==`object`&&typeof e?.[Symbol.iterator]==`function`}function le(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}function v(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}const ue={Name:[],Document:[`definitions`],OperationDefinition:[`description`,`name`,`variableDefinitions`,`directives`,`selectionSet`],VariableDefinition:[`description`,`variable`,`type`,`defaultValue`,`directives`],Variable:[`name`],SelectionSet:[`selections`],Field:[`alias`,`name`,`arguments`,`directives`,`selectionSet`],Argument:[`name`,`value`],FragmentArgument:[`name`,`value`],FragmentSpread:[`name`,`arguments`,`directives`],InlineFragment:[`typeCondition`,`directives`,`selectionSet`],FragmentDefinition:[`description`,`name`,`variableDefinitions`,`typeCondition`,`directives`,`selectionSet`],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:[`values`],ObjectValue:[`fields`],ObjectField:[`name`,`value`],Directive:[`name`,`arguments`],NamedType:[`name`],ListType:[`type`],NonNullType:[`type`],SchemaDefinition:[`description`,`directives`,`operationTypes`],OperationTypeDefinition:[`type`],ScalarTypeDefinition:[`description`,`name`,`directives`],ObjectTypeDefinition:[`description`,`name`,`interfaces`,`directives`,`fields`],FieldDefinition:[`description`,`name`,`arguments`,`type`,`directives`],InputValueDefinition:[`description`,`name`,`type`,`defaultValue`,`directives`],InterfaceTypeDefinition:[`description`,`name`,`interfaces`,`directives`,`fields`],UnionTypeDefinition:[`description`,`name`,`directives`,`types`],EnumTypeDefinition:[`description`,`name`,`directives`,`values`],EnumValueDefinition:[`description`,`name`,`directives`],InputObjectTypeDefinition:[`description`,`name`,`directives`,`fields`],DirectiveDefinition:[`description`,`name`,`arguments`,`directives`,`locations`],SchemaExtension:[`directives`,`operationTypes`],DirectiveExtension:[`name`,`directives`],ScalarTypeExtension:[`name`,`directives`],ObjectTypeExtension:[`name`,`interfaces`,`directives`,`fields`],InterfaceTypeExtension:[`name`,`interfaces`,`directives`,`fields`],UnionTypeExtension:[`name`,`directives`,`types`],EnumTypeExtension:[`name`,`directives`,`values`],InputObjectTypeExtension:[`name`,`directives`,`fields`],TypeCoordinate:[`name`],MemberCoordinate:[`name`,`memberName`],ArgumentCoordinate:[`name`,`fieldName`,`argumentName`],DirectiveCoordinate:[`name`],DirectiveArgumentCoordinate:[`name`,`argumentName`]},de=new Set(Object.keys(ue));function fe(e){let t=e?.kind;return typeof t==`string`&&de.has(t)}const pe={QUERY:`query`,MUTATION:`mutation`,SUBSCRIPTION:`subscription`};var me=a({ARGUMENT:()=>xe,ARGUMENT_COORDINATE:()=>rt,BOOLEAN:()=>Oe,DIRECTIVE:()=>je,DIRECTIVE_ARGUMENT_COORDINATE:()=>at,DIRECTIVE_COORDINATE:()=>it,DIRECTIVE_DEFINITION:()=>Ke,DIRECTIVE_EXTENSION:()=>Je,DOCUMENT:()=>ge,ENUM:()=>ke,ENUM_TYPE_DEFINITION:()=>Ue,ENUM_TYPE_EXTENSION:()=>$e,ENUM_VALUE_DEFINITION:()=>We,FIELD:()=>be,FIELD_DEFINITION:()=>ze,FLOAT:()=>De,FRAGMENT_ARGUMENT:()=>Se,FRAGMENT_DEFINITION:()=>Te,FRAGMENT_SPREAD:()=>Ce,INLINE_FRAGMENT:()=>we,INPUT_OBJECT_TYPE_DEFINITION:()=>Ge,INPUT_OBJECT_TYPE_EXTENSION:()=>et,INPUT_VALUE_DEFINITION:()=>Be,INT:()=>y,INTERFACE_TYPE_DEFINITION:()=>Ve,INTERFACE_TYPE_EXTENSION:()=>Ze,LIST:()=>S,LIST_TYPE:()=>Ne,MEMBER_COORDINATE:()=>nt,NAME:()=>he,NAMED_TYPE:()=>Me,NON_NULL_TYPE:()=>Pe,NULL:()=>x,OBJECT:()=>C,OBJECT_FIELD:()=>Ae,OBJECT_TYPE_DEFINITION:()=>Re,OBJECT_TYPE_EXTENSION:()=>Xe,OPERATION_DEFINITION:()=>_e,OPERATION_TYPE_DEFINITION:()=>Ie,SCALAR_TYPE_DEFINITION:()=>Le,SCALAR_TYPE_EXTENSION:()=>Ye,SCHEMA_DEFINITION:()=>Fe,SCHEMA_EXTENSION:()=>qe,SELECTION_SET:()=>ye,STRING:()=>b,TYPE_COORDINATE:()=>tt,UNION_TYPE_DEFINITION:()=>He,UNION_TYPE_EXTENSION:()=>Qe,VARIABLE:()=>Ee,VARIABLE_DEFINITION:()=>ve});const he=`Name`,ge=`Document`,_e=`OperationDefinition`,ve=`VariableDefinition`,ye=`SelectionSet`,be=`Field`,xe=`Argument`,Se=`FragmentArgument`,Ce=`FragmentSpread`,we=`InlineFragment`,Te=`FragmentDefinition`,Ee=`Variable`,y=`IntValue`,De=`FloatValue`,b=`StringValue`,Oe=`BooleanValue`,x=`NullValue`,ke=`EnumValue`,S=`ListValue`,C=`ObjectValue`,Ae=`ObjectField`,je=`Directive`,Me=`NamedType`,Ne=`ListType`,Pe=`NonNullType`,Fe=`SchemaDefinition`,Ie=`OperationTypeDefinition`,Le=`ScalarTypeDefinition`,Re=`ObjectTypeDefinition`,ze=`FieldDefinition`,Be=`InputValueDefinition`,Ve=`InterfaceTypeDefinition`,He=`UnionTypeDefinition`,Ue=`EnumTypeDefinition`,We=`EnumValueDefinition`,Ge=`InputObjectTypeDefinition`,Ke=`DirectiveDefinition`,qe=`SchemaExtension`,Je=`DirectiveExtension`,Ye=`ScalarTypeExtension`,Xe=`ObjectTypeExtension`,Ze=`InterfaceTypeExtension`,Qe=`UnionTypeExtension`,$e=`EnumTypeExtension`,et=`InputObjectTypeExtension`,tt=`TypeCoordinate`,nt=`MemberCoordinate`,rt=`ArgumentCoordinate`,it=`DirectiveCoordinate`,at=`DirectiveArgumentCoordinate`;function w(e,t){if(!e)throw Error(t)}function ot(e,t){let[n,r]=t?[e,t]:[void 0,e];if(r.length===0)return``;let i=` Did you mean `;n!=null&&(i+=n+` `);let a=oe(r.slice(0,5).map(e=>`"${e}"`));return i+a+`?`}function st(e){return e}function ct(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}function lt(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),a=t.charCodeAt(r);if(dt(i)&&dt(a)){let o=0;do++n,o=o*10+i-ut,i=e.charCodeAt(n);while(dt(i)&&o>0);let s=0;do++r,s=s*10+a-ut,a=t.charCodeAt(r);while(dt(a)&&s>0);if(o<s)return-1;if(o>s)return 1}else{if(i<a)return-1;if(i>a)return 1;++n,++r}}return e.length-t.length}const ut=48;function dt(e){return!isNaN(e)&&48<=e&&e<=57}function ft(e,t){let n=Object.create(null),r=new pt(e),i=Math.floor(e.length*.4)+1;for(let e of t){let t=r.measure(e,i);t!==void 0&&(n[e]=t)}return Object.keys(n).sort((e,t)=>{let r=n[e]-n[t];return r===0?lt(e,t):r})}var pt=class{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=mt(this._inputLowerCase),this._rows=[Array(e.length+1).fill(0),Array(e.length+1).fill(0),Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;let n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=mt(n),i=this._inputArray;if(r.length<i.length){let e=r;r=i,i=e}let a=r.length,o=i.length;if(a-o>t)return;let s=this._rows;for(let e=0;e<=o;e++)s[0][e]=e;for(let e=1;e<=a;e++){let n=s[(e-1)%3],a=s[e%3],c=a[0]=e;for(let t=1;t<=o;t++){let o=r[e-1]===i[t-1]?0:1,l=Math.min(n[t]+1,a[t-1]+1,n[t-1]+o);if(e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]){let n=s[(e-2)%3][t-2];l=Math.min(l,n+1)}l<c&&(c=l),a[t]=l}if(c>t)return}let c=s[a%3][o];return c<=t?c:void 0}};function mt(e){let t=e.length,n=Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function T(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[n,r]of Object.entries(e))t[n]=r;for(let n of Object.getOwnPropertySymbols(e))t[n]=e[n];return t}function ht(e){return e===9||e===32}function gt(e){return e>=48&&e<=57}function _t(e){return e>=97&&e<=122||e>=65&&e<=90}function vt(e){return _t(e)||e===95}function yt(e){return _t(e)||gt(e)||e===95}function bt(e,t){let n=e.replaceAll(`"""`,`\\"""`),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,a=r.length>1&&r.slice(1).every(e=>e.length===0||ht(e.charCodeAt(0))),o=n.endsWith(`\\"""`),s=e.endsWith(`"`)&&!o,c=e.endsWith(`\\`),l=s||c,u=!t?.minimize&&(!i||e.length>70||l||a||o),d=``,f=i&&ht(e.charCodeAt(0));return(u&&!f||a)&&(d+=`
7
- `),d+=n,(u||l)&&(d+=`
8
- `),`"""`+d+`"""`}function xt(e){return`"${e.replace(St,Ct)}"`}const St=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Ct(e){return wt[e.charCodeAt(0)]}const wt=`\\u0000.\\u0001.\\u0002.\\u0003.\\u0004.\\u0005.\\u0006.\\u0007.\\b.\\t.\\n.\\u000B.\\f.\\r.\\u000E.\\u000F.\\u0010.\\u0011.\\u0012.\\u0013.\\u0014.\\u0015.\\u0016.\\u0017.\\u0018.\\u0019.\\u001A.\\u001B.\\u001C.\\u001D.\\u001E.\\u001F...\\"..........................................................\\\\...................................\\u007F.\\u0080.\\u0081.\\u0082.\\u0083.\\u0084.\\u0085.\\u0086.\\u0087.\\u0088.\\u0089.\\u008A.\\u008B.\\u008C.\\u008D.\\u008E.\\u008F.\\u0090.\\u0091.\\u0092.\\u0093.\\u0094.\\u0095.\\u0096.\\u0097.\\u0098.\\u0099.\\u009A.\\u009B.\\u009C.\\u009D.\\u009E.\\u009F`.split(`.`),Tt=Object.freeze({});function Et(e,t,n=ue){let r=new Map;for(let e of Object.values(me))r.set(e,Dt(t,e));let i,a=Array.isArray(e),s=[e],c=-1,l=[],u=e,d,f,p=[],m=[];do{c++;let e=c===s.length,h=e&&l.length!==0;if(e){if(d=m.length===0?void 0:p[p.length-1],u=f,f=m.pop(),h)if(a){u=u.slice();let e=0;for(let[t,n]of l){let r=t-e;n===null?(u.splice(r,1),e++):u[r]=n}}else{u={...u};for(let[e,t]of l)u[e]=t}c=i.index,s=i.keys,l=i.edits,a=i.inArray,i=i.prev}else if(f!=null){if(d=a?c:s[c],u=f[d],u==null)continue;p.push(d)}let g;if(!Array.isArray(u)){if(fe(u)||w(!1,`Invalid AST Node: ${o(u)}.`),g=(e?r.get(u.kind)?.leave:r.get(u.kind)?.enter)?.call(t,u,d,f,p,m),g===Tt)break;if(g===!1){if(!e){p.pop();continue}}else if(g!==void 0&&(l.push([d,g]),!e))if(fe(g))u=g;else{p.pop();continue}}g===void 0&&h&&l.push([d,u]),e?p.pop():(i={inArray:a,index:c,keys:s,edits:l,prev:i},a=Array.isArray(u),s=a?u:n[u.kind]??[],c=-1,l=[],f!=null&&m.push(f),f=u)}while(i!==void 0);return l.length===0?e:l.at(-1)[1]}function Dt(e,t){let n=e[t];return typeof n==`object`?n:typeof n==`function`?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function E(e){return Et(e,Ot)}const Ot={Name:{leave:e=>e.value},Variable:{leave:e=>`$`+e.name},Document:{leave:e=>D(e.definitions,`
9
-
10
- `)},OperationDefinition:{leave(e){let t=kt(e.variableDefinitions)?k(`(
11
- `,D(e.variableDefinitions,`
12
- `),`
13
- )`):k(`(`,D(e.variableDefinitions,`, `),`)`),n=k(``,e.description,`
14
- `)+D([e.operation,D([e.name,t]),D(e.directives,` `)],` `);return(n===`query`?``:n+` `)+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:i})=>k(``,i,`
15
- `)+e+`: `+t+k(` = `,n)+k(` `,D(r,` `))},SelectionSet:{leave:({selections:e})=>O(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){return D([At(D([k(``,e,`: `),t],``),n),k(` `,D(r,` `)),k(` `,i)])}},Argument:{leave:({name:e,value:t})=>e+`: `+t},FragmentArgument:{leave:({name:e,value:t})=>e+`: `+t},FragmentSpread:{leave:({name:e,arguments:t,directives:n})=>At(`...`+e,t)+k(` `,D(n,` `))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>D([`...`,k(`on `,e),D(t,` `),n],` `)},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i,description:a})=>k(``,a,`
16
- `)+`fragment ${e}${k(`(`,D(n,`, `),`)`)} on ${t} ${k(``,D(r,` `),` `)}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t===!0?bt(e):xt(e)},BooleanValue:{leave:({value:e})=>e?`true`:`false`},NullValue:{leave:()=>`null`},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>{let t=`[`+D(e,`, `)+`]`;return t.length>80?`[
17
- `+A(D(e,`
18
- `))+`
19
- ]`:t}},ObjectValue:{leave:({fields:e})=>{let t=`{ `+D(e,`, `)+` }`;return t.length>80?O(e):t}},ObjectField:{leave:({name:e,value:t})=>e+`: `+t},Directive:{leave:({name:e,arguments:t})=>`@`+e+k(`(`,D(t,`, `),`)`)},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>`[`+e+`]`},NonNullType:{leave:({type:e})=>e+`!`},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>k(``,e,`
20
- `)+D([`schema`,D(t,` `),O(n)],` `)},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+`: `+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>k(``,e,`
21
- `)+D([`scalar`,t,D(n,` `)],` `)},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>k(``,e,`
22
- `)+D([`type`,t,k(`implements `,D(n,` & `)),D(r,` `),O(i)],` `)},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>k(``,e,`
23
- `)+t+(kt(n)?k(`(
24
- `,A(D(n,`
25
- `)),`
26
- )`):k(`(`,D(n,`, `),`)`))+`: `+r+k(` `,D(i,` `))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>k(``,e,`
27
- `)+D([t+`: `+n,k(`= `,r),D(i,` `)],` `)},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>k(``,e,`
28
- `)+D([`interface`,t,k(`implements `,D(n,` & `)),D(r,` `),O(i)],` `)},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>k(``,e,`
29
- `)+D([`union`,t,D(n,` `),k(`= `,D(r,` | `))],` `)},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>k(``,e,`
30
- `)+D([`enum`,t,D(n,` `),O(r)],` `)},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>k(``,e,`
31
- `)+D([t,D(n,` `)],` `)},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>k(``,e,`
32
- `)+D([`input`,t,D(n,` `),O(r)],` `)},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,directives:r,repeatable:i,locations:a})=>k(``,e,`
33
- `)+`directive @`+t+(kt(n)?k(`(
34
- `,A(D(n,`
35
- `)),`
36
- )`):k(`(`,D(n,`, `),`)`))+k(` `,D(r,` `))+(i?` repeatable`:``)+` on `+D(a,` | `)},SchemaExtension:{leave:({directives:e,operationTypes:t})=>D([`extend schema`,D(e,` `),O(t)],` `)},ScalarTypeExtension:{leave:({name:e,directives:t})=>D([`extend scalar`,e,D(t,` `)],` `)},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>D([`extend type`,e,k(`implements `,D(t,` & `)),D(n,` `),O(r)],` `)},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>D([`extend interface`,e,k(`implements `,D(t,` & `)),D(n,` `),O(r)],` `)},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>D([`extend union`,e,D(t,` `),k(`= `,D(n,` | `))],` `)},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>D([`extend enum`,e,D(t,` `),O(n)],` `)},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>D([`extend input`,e,D(t,` `),O(n)],` `)},DirectiveExtension:{leave:({name:e,directives:t})=>D([`extend directive @`+e,D(t,` `)],` `)},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>D([e,k(`.`,t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>D([e,k(`.`,t),k(`(`,n,`:)`)])},DirectiveCoordinate:{leave:({name:e})=>D([`@`,e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>D([`@`,e,k(`(`,t,`:)`)])}};function D(e,t=``){return e?.filter(e=>e!==void 0&&e!==``).join(t)??``}function O(e){return k(`{
37
- `,A(D(e,`
38
- `)),`
39
- }`)}function k(e,t,n=``){return t!=null&&t!==``?e+t+n:``}function A(e){return k(` `,e.replaceAll(`
40
- `,`
41
- `))}function kt(e){return e?.some(e=>e.includes(`
42
- `))??!1}function At(e,t){let n=e+k(`(`,D(t,`, `),`)`);return n.length>80&&(n=e+k(`(
43
- `,A(D(t,`
44
- `)),`
45
- )`)),n}function jt(e,t){switch(e.kind){case x:return null;case y:return parseInt(e.value,10);case De:return parseFloat(e.value);case b:case ke:case Oe:return e.value;case S:return e.values.map(e=>jt(e,t));case C:return ct(e.fields,e=>e.name.value,e=>jt(e.value,t));case Ee:return t?.[e.name.value]}}function j(e){if(e.length===0)throw new _(`Expected name to be a non-empty string.`);for(let t=1;t<e.length;++t)if(!yt(e.charCodeAt(t)))throw new _(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!vt(e.charCodeAt(0)))throw new _(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function Mt(e){if(e===`true`||e===`false`||e===`null`)throw new _(`Enum values cannot be named: ${e}`);return j(e)}const Nt=Symbol(`Scalar`);function Pt(e){return m(e,Nt,z)}const Ft=Symbol(`Object`);function M(e){return m(e,Ft,B)}const It=Symbol(`Field`),Lt=Symbol(`Argument`),Rt=Symbol(`Interface`);function N(e){return m(e,Rt,on)}const zt=Symbol(`Union`);function P(e){return m(e,zt,sn)}const Bt=Symbol(`Enum`);function Vt(e){return m(e,Bt,ln)}const Ht=Symbol(`EnumValue`),Ut=Symbol(`InputObject`);function F(e){return m(e,Ut,pn)}const Wt=Symbol(`InputField`),Gt=Symbol(`List`);function Kt(e){return m(e,Gt,L)}const qt=Symbol(`NonNull`);function I(e){return m(e,qt,R)}function Jt(e){return Pt(e)||Vt(e)}function Yt(e){if(!Jt(e))throw Error(`Expected ${o(e)} to be a GraphQL leaf type.`);return e}function Xt(e){return N(e)||P(e)}var L=class{constructor(e){this.__kind=Gt,this.ofType=e}get[Symbol.toStringTag](){return`GraphQLList`}toString(){return`[`+String(this.ofType)+`]`}toJSON(){return this.toString()}},R=class{constructor(e){this.__kind=qt,this.ofType=e}get[Symbol.toStringTag](){return`GraphQLNonNull`}toString(){return String(this.ofType)+`!`}toJSON(){return this.toString()}};function Zt(e){return Kt(e)||I(e)}function Qt(e){if(e){let t=e;for(;Zt(t);)t=t.ofType;return t}}function $t(e){return typeof e==`function`?e():e}function en(e){return typeof e==`function`?e():e}var z=class{constructor(e){this.__kind=Nt,this.name=j(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=e.serialize??e.coerceOutputValue??st,this.parseValue=e.parseValue??e.coerceInputValue??st,this.parseLiteral=e.parseLiteral??((e,t)=>this.coerceInputValue(jt(e,t))),this.coerceOutputValue=e.coerceOutputValue??this.serialize,this.coerceInputValue=e.coerceInputValue??this.parseValue,this.coerceInputLiteral=e.coerceInputLiteral,this.valueToLiteral=e.valueToLiteral,this.extensions=T(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes??[],e.parseLiteral&&(typeof e.parseValue==`function`&&typeof e.parseLiteral==`function`||w(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`)),e.coerceInputLiteral&&(typeof e.coerceInputValue==`function`&&typeof e.coerceInputLiteral==`function`||w(!1,`${this.name} must provide both "coerceInputValue" and "coerceInputLiteral" functions.`))}get[Symbol.toStringTag](){return`GraphQLScalarType`}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,coerceOutputValue:this.coerceOutputValue,coerceInputValue:this.coerceInputValue,coerceInputLiteral:this.coerceInputLiteral,valueToLiteral:this.valueToLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},B=class{constructor(e){this.__kind=Ft,this.__kind=Ft,this.name=j(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=T(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes??[],this._fields=nn.bind(void 0,this,e.fields),this._interfaces=tn.bind(void 0,e.interfaces)}get[Symbol.toStringTag](){return`GraphQLObjectType`}getFields(){return typeof this._fields==`function`&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces==`function`&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:v(this.getFields(),e=>e.toConfig()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};function tn(e){return $t(e??[])}function nn(e,t){return v(en(t),(t,n)=>new rn(e,n,t))}var rn=class{constructor(e,t,n){this.__kind=It,this.parentType=e,this.name=j(t),this.description=n.description,this.type=n.type;let r=n.args;this.args=r?Object.entries(r).map(([e,t])=>new an(this,e,t)):[],this.resolve=n.resolve,this.subscribe=n.subscribe,this.deprecationReason=n.deprecationReason,this.extensions=T(n.extensions),this.astNode=n.astNode}get[Symbol.toStringTag](){return`GraphQLField`}toConfig(){return{description:this.description,type:this.type,args:ct(this.args,e=>e.name,e=>e.toConfig()),resolve:this.resolve,subscribe:this.subscribe,deprecationReason:this.deprecationReason,extensions:this.extensions,astNode:this.astNode}}toString(){return`${this.parentType??`<meta>`}.${this.name}`}toJSON(){return this.toString()}},an=class{constructor(e,t,n){this.__kind=Lt,this.parent=e,this.name=j(t),this.description=n.description,this.type=n.type,this.defaultValue=n.defaultValue,this.default=n.default,this._memoizedCoercedDefaultValue=void 0,this.deprecationReason=n.deprecationReason,this.extensions=T(n.extensions),this.astNode=n.astNode}get[Symbol.toStringTag](){return`GraphQLArgument`}toConfig(){return{description:this.description,type:this.type,defaultValue:this.defaultValue,default:this.default,deprecationReason:this.deprecationReason,extensions:this.extensions,astNode:this.astNode}}toString(){return`${this.parent}(${this.name}:)`}toJSON(){return this.toString()}},on=class{constructor(e){this.__kind=Rt,this.name=j(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=T(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes??[],this._fields=nn.bind(void 0,this,e.fields),this._interfaces=tn.bind(void 0,e.interfaces)}get[Symbol.toStringTag](){return`GraphQLInterfaceType`}getFields(){return typeof this._fields==`function`&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces==`function`&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:v(this.getFields(),e=>e.toConfig()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},sn=class{constructor(e){this.__kind=zt,this.name=j(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=T(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes??[],this._types=cn.bind(void 0,e.types)}get[Symbol.toStringTag](){return`GraphQLUnionType`}getTypes(){return typeof this._types==`function`&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};function cn(e){return $t(e)}var ln=class{constructor(e){this.__kind=Bt,this.name=j(e.name),this.description=e.description,this.extensions=T(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes??[],this._values=un.bind(void 0,this,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return`GraphQLEnumType`}getValues(){return typeof this._values==`function`&&(this._values=this._values()),this._values}getValue(e){return this._nameLookup??=le(this.getValues(),e=>e.name),this._nameLookup[e]}serialize(e){return this.coerceOutputValue(e)}coerceOutputValue(e){this._valueLookup??=new Map(this.getValues().map(e=>[e.value,e]));let t=this._valueLookup.get(e);if(t===void 0)throw new _(`Enum "${this.name}" cannot represent value: ${o(e)}`);return t.name}parseValue(e,t){return this.coerceInputValue(e,t)}coerceInputValue(e,t){if(typeof e!=`string`){let n=o(e);throw new _(`Enum "${this.name}" cannot represent non-string value: ${n}.`+(t?``:dn(this,n)))}let n=this.getValue(e);if(n==null)throw new _(`Value "${e}" does not exist in "${this.name}" enum.`+(t?``:dn(this,e)));return n.value}parseLiteral(e,t,n){return this.coerceInputLiteral(e,n)}coerceInputLiteral(e,t){if(e.kind!==`EnumValue`){let n=E(e);throw new _(`Enum "${this.name}" cannot represent non-enum value: ${n}.`+(t?``:dn(this,n)),{nodes:e})}let n=this.getValue(e.value);if(n==null){let n=E(e);throw new _(`Value "${n}" does not exist in "${this.name}" enum.`+(t?``:dn(this,n)),{nodes:e})}return n.value}valueToLiteral(e){if(typeof e==`string`&&this.getValue(e))return{kind:ke,value:e}}toConfig(){return{name:this.name,description:this.description,values:ct(this.getValues(),e=>e.name,e=>e.toConfig()),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};function un(e,t){let n=en(t);return Object.entries(n).map(([t,n])=>new fn(e,t,n))}function dn(e,t){return ot(`the enum value`,ft(t,e.getValues().map(e=>e.name)))}var fn=class{constructor(e,t,n){this.__kind=Ht,this.parentEnum=e,this.name=Mt(t),this.description=n.description,this.value=n.value===void 0?t:n.value,this.deprecationReason=n.deprecationReason,this.extensions=T(n.extensions),this.astNode=n.astNode}get[Symbol.toStringTag](){return`GraphQLEnumValue`}toConfig(){return{description:this.description,value:this.value,deprecationReason:this.deprecationReason,extensions:this.extensions,astNode:this.astNode}}toString(){return`${this.parentEnum.name}.${this.name}`}toJSON(){return this.toString()}},pn=class{constructor(e){this.__kind=Ut,this.name=j(e.name),this.description=e.description,this.extensions=T(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes??[],this.isOneOf=e.isOneOf??!1,this._fields=mn.bind(void 0,this,e.fields)}get[Symbol.toStringTag](){return`GraphQLInputObjectType`}getFields(){return typeof this._fields==`function`&&(this._fields=this._fields()),this._fields}toConfig(){return{name:this.name,description:this.description,fields:v(this.getFields(),e=>e.toConfig()),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};function mn(e,t){return v(en(t),(t,n)=>new hn(e,n,t))}var hn=class{constructor(e,t,n){`resolve`in n&&w(!1,`${e}.${t} field has a resolve property, but Input Types cannot define resolvers.`),this.__kind=Wt,this.parentType=e,this.name=j(t),this.description=n.description,this.type=n.type,this.defaultValue=n.defaultValue,this.default=n.default,this._memoizedCoercedDefaultValue=void 0,this.deprecationReason=n.deprecationReason,this.extensions=T(n.extensions),this.astNode=n.astNode}get[Symbol.toStringTag](){return`GraphQLInputField`}toConfig(){return{description:this.description,type:this.type,defaultValue:this.defaultValue,default:this.default,deprecationReason:this.deprecationReason,extensions:this.extensions,astNode:this.astNode}}toString(){return`${this.parentType}.${this.name}`}toJSON(){return this.toString()}};function gn(e){return I(e.type)&&e.defaultValue===void 0&&e.default===void 0}function V(e,t){if(I(t))return e==null?void 0:V(e,t.ofType);if(e==null)return{kind:x};if(Kt(t)){if(!ce(e))return V(e,t.ofType);let n=[];for(let r of e){let e=V(r,t.ofType);if(!e)return;n.push(e)}return{kind:S,values:n}}if(F(t)){if(!h(e))return;let n=[],r=t.getFields();if(Object.keys(e).some(t=>e[t]!==void 0&&!Object.hasOwn(r,t)))return;for(let r of Object.values(t.getFields()))if(e[r.name]===void 0){if(gn(r))return}else{let t=V(e[r.name],r.type);if(!t)return;n.push({kind:Ae,name:{kind:he,value:r.name},value:t})}return{kind:C,fields:n}}let n=Yt(t);if(n.valueToLiteral)try{return n.valueToLiteral(e)}catch{return}return H(e)}function H(e){if(e==null)return{kind:x};switch(typeof e){case`boolean`:return{kind:Oe,value:e};case`string`:return{kind:b,value:e,block:!1};case`bigint`:return{kind:y,value:e.toString()};case`number`:{if(!Number.isFinite(e))return{kind:x};let t=String(e);return/^-?(?:0|[1-9][0-9]*)$/.test(t)?{kind:y,value:t}:{kind:De,value:t}}case`object`:{if(ce(e))return{kind:S,values:Array.from(e,H)};let t=e,n=[];for(let e of Object.keys(t)){let r=t[e];r!==void 0&&n.push({kind:Ae,name:{kind:he,value:e},value:H(r)})}return{kind:C,fields:n}}}throw TypeError(`Cannot convert value to AST: ${o(e)}.`)}const U={QUERY:`QUERY`,MUTATION:`MUTATION`,SUBSCRIPTION:`SUBSCRIPTION`,FIELD:`FIELD`,FRAGMENT_DEFINITION:`FRAGMENT_DEFINITION`,FRAGMENT_SPREAD:`FRAGMENT_SPREAD`,INLINE_FRAGMENT:`INLINE_FRAGMENT`,VARIABLE_DEFINITION:`VARIABLE_DEFINITION`,FRAGMENT_VARIABLE_DEFINITION:`FRAGMENT_VARIABLE_DEFINITION`,SCHEMA:`SCHEMA`,SCALAR:`SCALAR`,OBJECT:`OBJECT`,FIELD_DEFINITION:`FIELD_DEFINITION`,ARGUMENT_DEFINITION:`ARGUMENT_DEFINITION`,INTERFACE:`INTERFACE`,UNION:`UNION`,ENUM:`ENUM`,ENUM_VALUE:`ENUM_VALUE`,INPUT_OBJECT:`INPUT_OBJECT`,INPUT_FIELD_DEFINITION:`INPUT_FIELD_DEFINITION`,DIRECTIVE_DEFINITION:`DIRECTIVE_DEFINITION`},_n=new z({name:`Int`,description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",coerceOutputValue(e){let t=K(e);if(typeof t==`number`)return bn(t);if(typeof t==`boolean`)return+!!t;if(typeof t==`string`)return xn(t);if(typeof t==`bigint`)return Sn(t);throw new _(`Int cannot represent non-integer value: ${o(t)}`)},coerceInputValue(e){if(typeof e==`number`)return bn(e);if(typeof e==`bigint`)return Sn(e);throw new _(`Int cannot represent non-integer value: ${o(e)}`)},coerceInputLiteral(e){if(e.kind!==`IntValue`)throw new _(`Int cannot represent non-integer value: ${E(e)}`,{nodes:e});let t=parseInt(e.value,10);if(t>2147483647||t<-2147483648)throw new _(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t},valueToLiteral(e){if((typeof e==`number`&&Number.isInteger(e)||typeof e==`bigint`)&&e<=2147483647&&e>=-2147483648)return{kind:y,value:String(e)}}}),vn=new z({name:`Float`,description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",coerceOutputValue(e){let t=K(e);if(typeof t==`number`)return Cn(t);if(typeof t==`boolean`)return+!!t;if(typeof t==`string`)return wn(t);if(typeof t==`bigint`)return Tn(t);throw new _(`Float cannot represent non numeric value: ${o(t)}`)},coerceInputValue(e){if(typeof e==`number`)return Cn(e);if(typeof e==`bigint`)return Tn(e);throw new _(`Float cannot represent non numeric value: ${o(e)}`)},coerceInputLiteral(e){if(e.kind!==`FloatValue`&&e.kind!==`IntValue`)throw new _(`Float cannot represent non numeric value: ${E(e)}`,{nodes:e});return parseFloat(e.value)},valueToLiteral(e){let t=H(e);if(t.kind===`FloatValue`||t.kind===`IntValue`)return t}}),W=new z({name:`String`,description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",coerceOutputValue(e){let t=K(e);if(typeof t==`string`)return t;if(typeof t==`boolean`)return t?`true`:`false`;if(typeof t==`number`)return En(t);if(typeof t==`bigint`)return String(t);throw new _(`String cannot represent value: ${o(e)}`)},coerceInputValue(e){if(typeof e!=`string`)throw new _(`String cannot represent a non string value: ${o(e)}`);return e},coerceInputLiteral(e){if(e.kind!==`StringValue`)throw new _(`String cannot represent a non string value: ${E(e)}`,{nodes:e});return e.value},valueToLiteral(e){let t=H(e);if(t.kind===`StringValue`)return t}}),G=new z({name:`Boolean`,description:"The `Boolean` scalar type represents `true` or `false`.",coerceOutputValue(e){let t=K(e);if(typeof t==`boolean`)return t;if(typeof t==`number`)return Dn(t);if(typeof t==`bigint`)return t!==0n;throw new _(`Boolean cannot represent a non boolean value: ${o(t)}`)},coerceInputValue(e){if(typeof e!=`boolean`)throw new _(`Boolean cannot represent a non boolean value: ${o(e)}`);return e},coerceInputLiteral(e){if(e.kind!==`BooleanValue`)throw new _(`Boolean cannot represent a non boolean value: ${E(e)}`,{nodes:e});return e.value},valueToLiteral(e){let t=H(e);if(t.kind===`BooleanValue`)return t}}),yn=new z({name:`ID`,description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',coerceOutputValue(e){let t=K(e);if(typeof t==`string`)return t;if(typeof t==`number`)return On(t);if(typeof t==`bigint`)return String(t);throw new _(`ID cannot represent value: ${o(e)}`)},coerceInputValue(e){if(typeof e==`string`)return e;if(typeof e==`number`)return On(e);if(typeof e==`bigint`)return String(e);throw new _(`ID cannot represent value: ${o(e)}`)},coerceInputLiteral(e){if(e.kind!==`StringValue`&&e.kind!==`IntValue`)throw new _(`ID cannot represent a non-string and non-integer value: `+E(e),{nodes:e});return e.value},valueToLiteral(e){if(typeof e==`string`)return/^-?(?:0|[1-9][0-9]*)$/.test(e)?{kind:y,value:e}:{kind:b,value:e,block:!1};if(typeof e==`number`)return{kind:y,value:On(e)};if(typeof e==`bigint`)return{kind:y,value:String(e)}}});Object.freeze([W,_n,vn,G,yn]);function K(e){if(h(e)){if(typeof e.valueOf==`function`){let t=e.valueOf();if(!h(t))return t}if(typeof e.toJSON==`function`)return e.toJSON()}return e}function bn(e){if(!Number.isInteger(e))throw new _(`Int cannot represent non-integer value: ${o(e)}`);if(e>2147483647||e<-2147483648)throw new _(`Int cannot represent non 32-bit signed integer value: ${o(e)}`);return e}function xn(e){if(e===``)throw new _(`Int cannot represent non-integer value: ${o(e)}`);let t=Number(e);if(!Number.isInteger(t))throw new _(`Int cannot represent non-integer value: ${o(e)}`);if(t>2147483647||t<-2147483648)throw new _(`Int cannot represent non 32-bit signed integer value: ${o(e)}`);return t}function Sn(e){if(e>2147483647||e<-2147483648)throw new _(`Int cannot represent non 32-bit signed integer value: ${String(e)}`);return Number(e)}function Cn(e){if(!Number.isFinite(e))throw new _(`Float cannot represent non numeric value: ${o(e)}`);return e}function wn(e){if(e===``)throw new _(`Float cannot represent non numeric value: ${o(e)}`);let t=Number(e);if(!Number.isFinite(t))throw new _(`Float cannot represent non numeric value: ${o(e)}`);return t}function Tn(e){let t=Number(e);if(!Number.isFinite(t))throw new _(`Float cannot represent non numeric value: ${o(e)} (value is too large)`);if(BigInt(t)!==e)throw new _(`Float cannot represent non numeric value: ${o(e)} (value would lose precision)`);return t}function En(e){if(!Number.isFinite(e))throw new _(`String cannot represent value: ${o(e)}`);return String(e)}function Dn(e){if(!Number.isFinite(e))throw new _(`Boolean cannot represent a non boolean value: ${o(e)}`);return e!==0}function On(e){if(!Number.isInteger(e))throw new _(`ID cannot represent value: ${o(e)}`);return String(e)}const kn=Symbol(`Directive`);function An(e){return m(e,kn,q)}var q=class{constructor(e){this.__kind=kn,this.name=j(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=e.isRepeatable??!1,this.deprecationReason=e.deprecationReason,this.extensions=T(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes??[],Array.isArray(e.locations)||w(!1,`@${this.name} locations must be an Array.`);let t=e.args??{};h(t)&&!Array.isArray(t)||w(!1,`@${this.name} args must be an object with argument names as keys.`),this.args=Object.entries(t).map(([e,t])=>new an(this,e,t))}get[Symbol.toStringTag](){return`GraphQLDirective`}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:ct(this.args,e=>e.name,e=>e.toConfig()),isRepeatable:this.isRepeatable,deprecationReason:this.deprecationReason,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return`@`+this.name}toJSON(){return this.toString()}};const jn=new q({name:`include`,description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[U.FIELD,U.FRAGMENT_SPREAD,U.INLINE_FRAGMENT],args:{if:{type:new R(G),description:`Included when true.`}}}),Mn=new q({name:`skip`,description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[U.FIELD,U.FRAGMENT_SPREAD,U.INLINE_FRAGMENT],args:{if:{type:new R(G),description:`Skipped when true.`}}});new q({name:`defer`,description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[U.FRAGMENT_SPREAD,U.INLINE_FRAGMENT],args:{if:{type:new R(G),description:`Deferred when true or undefined.`,default:{value:!0}},label:{type:W,description:`Unique name`}}}),new q({name:`stream`,description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[U.FIELD],args:{initialCount:{default:{value:0},type:new R(_n),description:`Number of items to return immediately`},if:{type:new R(G),description:`Stream when true or undefined.`,default:{value:!0}},label:{type:W,description:`Unique name`}}});const Nn=new q({name:`deprecated`,description:`Marks an element of a GraphQL schema as no longer supported.`,locations:[U.FIELD_DEFINITION,U.ARGUMENT_DEFINITION,U.INPUT_FIELD_DEFINITION,U.ENUM_VALUE,U.DIRECTIVE_DEFINITION],args:{reason:{type:new R(W),description:`Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).`,default:{value:`No longer supported`}}}}),Pn=new q({name:`specifiedBy`,description:`Exposes a URL that specifies the behavior of this scalar.`,locations:[U.SCALAR],args:{url:{type:new R(W),description:`The URL that specifies the behavior of this scalar.`}}}),Fn=new q({name:`oneOf`,description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[U.INPUT_OBJECT],args:{}});new q({name:`experimental_disableErrorPropagation`,description:`Disables error propagation.`,locations:[U.QUERY,U.MUTATION,U.SUBSCRIPTION]});const In=Object.freeze([jn,Mn,Nn,Pn,Fn]);function J(e,t){if(I(t)){let n=J(e,t.ofType);return n?.kind===`NullValue`?null:n}if(e===null)return{kind:x};if(e===void 0)return null;if(Kt(t)){let n=t.ofType;if(ce(e)){let t=[];for(let r of e){let e=J(r,n);e!=null&&t.push(e)}return{kind:S,values:t}}return J(e,n)}if(F(t)){if(!h(e))return null;let n=[];for(let r of Object.values(t.getFields())){let t=J(e[r.name],r.type);t&&n.push({kind:Ae,name:{kind:he,value:r.name},value:t})}return{kind:C,fields:n}}if(Jt(t)){let n=t.coerceOutputValue(e);if(n==null)return null;if(typeof n==`boolean`)return{kind:Oe,value:n};if(typeof n==`number`&&Number.isFinite(n)){let e=String(n);return Ln.test(e)?{kind:y,value:e}:{kind:De,value:e}}if(typeof n==`bigint`)return{kind:y,value:String(n)};if(typeof n==`string`)return Vt(t)?{kind:ke,value:n}:t===yn&&Ln.test(n)?{kind:y,value:n}:{kind:b,value:n};throw TypeError(`Cannot convert value to AST: ${o(n)}.`)}g(!1,`Unexpected input type: `+o(t))}const Ln=/^-?(?:0|[1-9][0-9]*)$/;function Rn(e){let t=e.type,n=e.default;if(n){let e=n.literal??V(n.value,t);return e??g(!1,`Invalid default value`),e}let r=e.defaultValue;if(r!==void 0){let e=J(r,t);return e??g(!1,`Invalid default value`),e}}const zn=new B({name:`__Schema`,description:`A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.`,fields:()=>({description:{type:W,resolve:e=>e.description},types:{description:`A list of all types supported by this server.`,type:new R(new L(new R(Y))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:`The type that query operations will be rooted at.`,type:new R(Y),resolve:e=>e.getQueryType()},mutationType:{description:`If this server supports mutation, the type that mutation operations will be rooted at.`,type:Y,resolve:e=>e.getMutationType()},subscriptionType:{description:`If this server support subscription, the type that subscription operations will be rooted at.`,type:Y,resolve:e=>e.getSubscriptionType()},directives:{description:`A list of all directives supported by this server.`,type:new R(new L(new R(Bn))),args:{includeDeprecated:{type:new R(G),default:{value:!1}}},resolve:(e,{includeDeprecated:t})=>t===!0?e.getDirectives():e.getDirectives().filter(e=>e.deprecationReason==null)}})}),Bn=new B({name:`__Directive`,description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
46
-
47
- In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new R(W),resolve:e=>e.name},description:{type:W,resolve:e=>e.description},isRepeatable:{type:new R(G),resolve:e=>e.isRepeatable},locations:{type:new R(new L(new R(Vn))),resolve:e=>e.locations},args:{type:new R(new L(new R(Un))),args:{includeDeprecated:{type:new R(G),default:{value:!1}}},resolve(e,{includeDeprecated:t}){return t===!0?e.args:e.args.filter(e=>e.deprecationReason==null)}},isDeprecated:{type:new R(G),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:W,resolve:e=>e.deprecationReason}})}),Vn=new ln({name:`__DirectiveLocation`,description:`A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.`,values:{QUERY:{value:U.QUERY,description:`Location adjacent to a query operation.`},MUTATION:{value:U.MUTATION,description:`Location adjacent to a mutation operation.`},SUBSCRIPTION:{value:U.SUBSCRIPTION,description:`Location adjacent to a subscription operation.`},FIELD:{value:U.FIELD,description:`Location adjacent to a field.`},FRAGMENT_DEFINITION:{value:U.FRAGMENT_DEFINITION,description:`Location adjacent to a fragment definition.`},FRAGMENT_SPREAD:{value:U.FRAGMENT_SPREAD,description:`Location adjacent to a fragment spread.`},INLINE_FRAGMENT:{value:U.INLINE_FRAGMENT,description:`Location adjacent to an inline fragment.`},VARIABLE_DEFINITION:{value:U.VARIABLE_DEFINITION,description:`Location adjacent to an operation variable definition.`},FRAGMENT_VARIABLE_DEFINITION:{value:U.FRAGMENT_VARIABLE_DEFINITION,description:`Location adjacent to a fragment variable definition.`},SCHEMA:{value:U.SCHEMA,description:`Location adjacent to a schema definition.`},SCALAR:{value:U.SCALAR,description:`Location adjacent to a scalar definition.`},OBJECT:{value:U.OBJECT,description:`Location adjacent to an object type definition.`},FIELD_DEFINITION:{value:U.FIELD_DEFINITION,description:`Location adjacent to a field definition.`},ARGUMENT_DEFINITION:{value:U.ARGUMENT_DEFINITION,description:`Location adjacent to an argument definition.`},INTERFACE:{value:U.INTERFACE,description:`Location adjacent to an interface definition.`},UNION:{value:U.UNION,description:`Location adjacent to a union definition.`},ENUM:{value:U.ENUM,description:`Location adjacent to an enum definition.`},ENUM_VALUE:{value:U.ENUM_VALUE,description:`Location adjacent to an enum value definition.`},INPUT_OBJECT:{value:U.INPUT_OBJECT,description:`Location adjacent to an input object type definition.`},INPUT_FIELD_DEFINITION:{value:U.INPUT_FIELD_DEFINITION,description:`Location adjacent to an input object field definition.`},DIRECTIVE_DEFINITION:{value:U.DIRECTIVE_DEFINITION,description:`Location adjacent to a directive definition.`}}}),Y=new B({name:`__Type`,description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new R(Gn),resolve(e){if(Pt(e))return X.SCALAR;if(M(e))return X.OBJECT;if(N(e))return X.INTERFACE;if(P(e))return X.UNION;if(Vt(e))return X.ENUM;if(F(e))return X.INPUT_OBJECT;if(Kt(e))return X.LIST;if(I(e))return X.NON_NULL;g(!1,`Unexpected type: "${o(e)}".`)}},name:{type:W,resolve:e=>`name`in e?e.name:void 0},description:{type:W,resolve:e=>`description`in e?e.description:void 0},specifiedByURL:{type:W,resolve:e=>`specifiedByURL`in e?e.specifiedByURL:void 0},fields:{type:new L(new R(Hn)),args:{includeDeprecated:{type:new R(G),default:{value:!1}}},resolve(e,{includeDeprecated:t}){if(M(e)||N(e)){let n=Object.values(e.getFields());return t===!0?n:n.filter(e=>e.deprecationReason==null)}}},interfaces:{type:new L(new R(Y)),resolve(e){if(M(e)||N(e))return e.getInterfaces()}},possibleTypes:{type:new L(new R(Y)),resolve(e,t,n,{schema:r}){if(Xt(e))return r.getPossibleTypes(e)}},enumValues:{type:new L(new R(Wn)),args:{includeDeprecated:{type:new R(G),default:{value:!1}}},resolve(e,{includeDeprecated:t}){if(Vt(e)){let n=e.getValues();return t===!0?n:n.filter(e=>e.deprecationReason==null)}}},inputFields:{type:new L(new R(Un)),args:{includeDeprecated:{type:new R(G),default:{value:!1}}},resolve(e,{includeDeprecated:t}){if(F(e)){let n=Object.values(e.getFields());return t===!0?n:n.filter(e=>e.deprecationReason==null)}}},ofType:{type:Y,resolve:e=>`ofType`in e?e.ofType:void 0},isOneOf:{type:G,resolve:e=>{if(F(e))return e.isOneOf}}})}),Hn=new B({name:`__Field`,description:`Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.`,fields:()=>({name:{type:new R(W),resolve:e=>e.name},description:{type:W,resolve:e=>e.description},args:{type:new R(new L(new R(Un))),args:{includeDeprecated:{type:new R(G),default:{value:!1}}},resolve(e,{includeDeprecated:t}){return t===!0?e.args:e.args.filter(e=>e.deprecationReason==null)}},type:{type:new R(Y),resolve:e=>e.type},isDeprecated:{type:new R(G),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:W,resolve:e=>e.deprecationReason}})}),Un=new B({name:`__InputValue`,description:`Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.`,fields:()=>({name:{type:new R(W),resolve:e=>e.name},description:{type:W,resolve:e=>e.description},type:{type:new R(Y),resolve:e=>e.type},defaultValue:{type:W,description:`A GraphQL-formatted string representing the default value for this input value.`,resolve(e){let t=Rn(e);return t?E(t):null}},isDeprecated:{type:new R(G),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:W,resolve:e=>e.deprecationReason}})}),Wn=new B({name:`__EnumValue`,description:`One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.`,fields:()=>({name:{type:new R(W),resolve:e=>e.name},description:{type:W,resolve:e=>e.description},isDeprecated:{type:new R(G),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:W,resolve:e=>e.deprecationReason}})}),X={SCALAR:`SCALAR`,OBJECT:`OBJECT`,INTERFACE:`INTERFACE`,UNION:`UNION`,ENUM:`ENUM`,INPUT_OBJECT:`INPUT_OBJECT`,LIST:`LIST`,NON_NULL:`NON_NULL`},Gn=new ln({name:`__TypeKind`,description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:X.SCALAR,description:`Indicates this type is a scalar.`},OBJECT:{value:X.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:X.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:X.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:X.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:X.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:X.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:X.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Kn=new rn(void 0,`__schema`,{type:new R(zn),description:`Access the current type schema of this server.`,resolve:(e,t,n,{schema:r})=>r}),qn=new rn(void 0,`__type`,{type:Y,description:`Request the type information of a single type.`,args:{name:{type:new R(W)}},resolve:(e,{name:t},n,{schema:r})=>r.getType(t)}),Jn=new rn(void 0,`__typename`,{type:new R(W),description:`The name of the current Object type at runtime.`,resolve:(e,t,n,{parentType:r})=>r.name});Object.freeze([zn,Bn,Vn,Y,Hn,Un,Wn,Gn]);function Yn(e){return m(e,Xn,Zn)}const Xn=Symbol(`Schema`);var Zn=class{constructor(e){this.__kind=Xn,this.assumeValid=e.assumeValid??!1,this.__validationErrors=e.assumeValid===!0?[]:void 0,this.description=e.description,this.extensions=T(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes??[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=e.directives??In;let t=new Set(e.types);if(e.types!=null)for(let n of e.types)t.delete(n),Z(n,t);this._queryType!=null&&Z(this._queryType,t),this._mutationType!=null&&Z(this._mutationType,t),this._subscriptionType!=null&&Z(this._subscriptionType,t);for(let e of this._directives)if(An(e))for(let n of e.args)Z(n.type,t);Z(zn,t),this._typeMap=Object.create(null),this._subTypeMap=new Map,this._implementationsMap=Object.create(null);for(let e of t){if(e==null)continue;let t=e.name;if(this._typeMap[t]!==void 0)throw Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,N(e)){for(let t of e.getInterfaces())if(N(t)){let n=this._implementationsMap[t.name];n??=this._implementationsMap[t.name]={objects:[],interfaces:[]},n.interfaces.push(e)}}else if(M(e)){for(let t of e.getInterfaces())if(N(t)){let n=this._implementationsMap[t.name];n??=this._implementationsMap[t.name]={objects:[],interfaces:[]},n.objects.push(e)}}}}get[Symbol.toStringTag](){return`GraphQLSchema`}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case pe.QUERY:return this.getQueryType();case pe.MUTATION:return this.getMutationType();case pe.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return P(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){return this._implementationsMap[e.name]??{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap.get(e);if(n===void 0){if(P(e))n=new Set(e.getTypes());else{let t=this.getImplementations(e);n=new Set([...t.objects,...t.interfaces])}this._subTypeMap.set(e,n)}return n.has(t)}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}getField(e,t){switch(t){case Kn.name:return this.getQueryType()===e?Kn:void 0;case qn.name:return this.getQueryType()===e?qn:void 0;case Jn.name:return Jn}if(`getFields`in e)return e.getFields()[t]}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.assumeValid}}};function Z(e,t){let n=Qt(e);if(!t.has(n)){if(t.add(n),P(n))for(let e of n.getTypes())Z(e,t);else if(M(n)||N(n)){for(let e of n.getInterfaces())Z(e,t);for(let e of Object.values(n.getFields())){Z(e.type,t);for(let n of e.args)Z(n.type,t)}}else if(F(n))for(let e of Object.values(n.getFields()))Z(e.type,t)}return t}var Qn;function Q(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var $=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}};(Qn=globalThis).__zod_globalConfig??(Qn.__zod_globalConfig={});const $n=globalThis.__zod_globalConfig;function er(e){return e&&Object.assign($n,e),$n}function tr(e,t){return typeof t==`bigint`?t.toString():t}const nr=Symbol(`evaluating`);function rr(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==nr)return r===void 0&&(r=nr,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}const ir=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function ar(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function or(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}-Number.MAX_VALUE,Number.MAX_VALUE;function sr(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function cr(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function lr(e){return typeof e==`string`?e:e?.message}function ur(e,t,n){let r=e.message?e.message:lr(e.inst?._zod.def?.error?.(e))??lr(t?.error?.(e))??lr(n.customError?.(e))??lr(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function dr(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}const fr=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,tr,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},pr=Q(`$ZodError`,fr),mr=Q(`$ZodError`,fr,{Parent:Error}),hr=(e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new $;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>ur(e,a,er())));throw ir(t,i?.callee),t}return o.value})(mr),gr=(e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>ur(e,a,er())));throw ir(t,i?.callee),t}return o.value})(mr),_r=(e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new $;return a.issues.length?{success:!1,error:new(e??pr)(a.issues.map(e=>ur(e,i,er())))}:{success:!0,data:a.value}})(mr),vr=(e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>ur(e,i,er())))}:{success:!0,data:a.value}})(mr),yr=Q(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),br={major:4,minor:4,patch:3},xr=Q(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=br;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=sr(e),i;for(let a of t){if(a._zod.def.when){if(cr(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new $;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=sr(e,t))});else{if(e.issues.length===t)continue;r||=sr(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(sr(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new $;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new $;return o.then(e=>t(e,r,a))}return t(o,r,a)}}rr(e,`~standard`,()=>({validate:t=>{try{let n=_r(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return vr(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),Sr=Q(`$ZodCustom`,(e,t)=>{yr.init(e,t),xr.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Cr(t,n,r,e));Cr(i,n,r,e)}});function Cr(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(dr(e))}}function wr(e,t,n){let r=or(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function Tr(e,t){let n=Er(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(dr(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(dr(r))}},e(t.value,t)),t);return n}function Er(e,t){let n=new yr({check:`custom`,...or(t)});return n._zod.check=e,n}const Dr=Q(`ZodMiniType`,(e,t)=>{if(!e._zod)throw Error(`Uninitialized schema in ZodMiniType.`);xr.init(e,t),e.def=t,e.type=t.type,e.parse=(t,n)=>hr(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>_r(e,t,n),e.parseAsync=async(t,n)=>gr(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>vr(e,t,n),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]},{parent:!0}),e.with=e.check,e.clone=(t,n)=>ar(e,t,n),e.brand=()=>e,e.register=(t,n)=>(t.add(e,n),e),e.apply=t=>t(e)}),Or=Q(`ZodMiniCustom`,(e,t)=>{Sr.init(e,t),Dr.init(e,t)});function kr(e,t){return wr(Or,e??(()=>!0),t)}function Ar(e,t){return Tr(e,t)}function jr(e){return e.getQueryType()!=null||e.getMutationType()!=null||e.getSubscriptionType()!=null}var Mr=t({meta:{name:`alloy-js`,description:`A generator that uses Alloy-js to generate source code from a specification.`,version:`1.0`,tags:[`alloy-js`],links:[{description:`Alloy-js Repository`,href:`https://github.com/alloy-framework/alloy`},{description:`Alloy-js Documentation`,href:`https://alloy-framework.github.io/alloy/guides/getting-started/`}]},schema:n({meta:{name:`graphql-schema`,title:`GraphQL Schema`,version:`1.0`,description:`A GraphQL schema document used to describe a GraphQL API. This schema is compatible with the GraphQL specification and can be used to validate and generate code from the schema. Some examples of tools that can be used to generate client and/or server libraries, documentation, and other tools are: GraphQL Code Generator, GraphQL Yoga, Apollo Server, and many more.`,spec:e=>{if(e.description)return e.description;let t=[e.getQueryType()?.name,e.getMutationType()?.name,e.getSubscriptionType()?.name].filter(e=>e!=null);return t.length>0?`A GraphQL API schema with ${t.join(`, `)} root operation type${t.length===1?``:`s`}.`:`A GraphQL API schema.`},tags:e=>Object.keys(e.getTypeMap()).filter(e=>!e.startsWith(`__`)),links:e=>{let t=[];for(let n of Object.values(e.getTypeMap()))Pt(n)&&n.specifiedByURL&&t.push({href:n.specifiedByURL,description:n.description??`${n.name} scalar specification`});return t}},schema:kr(e=>Yn(e)&&jr(e),`Expected a GraphQLSchema instance with at least one root operation type`).check(Ar((e,t)=>{let n=e.getTypeMap();for(let[e,r]of Object.entries(n))r.name!==e&&t.addIssue({code:`custom`,message:`Type map entry "${e}" does not match type name "${r.name}"`,path:[`types`,e]})}))}),generator:async(t,n)=>e(r(),t,n.template)});export{Mr as default};
1
+ import{render as e}from"./render.mjs";import{defineGenerator as t,useExecutionContext as n}from"@power-plant/core";var r=t({meta:{name:`alloy-js`,description:`A generator that uses Alloy-js to generate source code from a specification.`,version:`1.0`,tags:[`alloy-js`],links:[{description:`Alloy-js Repository`,href:`https://github.com/alloy-framework/alloy`},{description:`Alloy-js Documentation`,href:`https://alloy-framework.github.io/alloy/guides/getting-started/`}]},generator:async(t,r)=>e(n(),t,r.template)});export{r as default};
48
2
  //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,78 @@
1
+ import { t as ComponentProps } from "./components-vJaCHt1A.cjs";
2
+ import { Children, Namekey, Refkey } from "@alloy-js/core";
3
+ import { JsonSchema, JsonSchemaPrimitiveType } from "@power-plant/schema";
4
+ import { PartialKeys } from "@stryke/types/base";
5
+ import { CommonDeclarationProps, TypeParameterDescriptor } from "@alloy-js/typescript";
6
+ //#region src/typescript/components/interface-declaration.d.ts
7
+ interface InterfaceDeclarationProps extends PartialKeys<CommonDeclarationProps, "name">, ComponentProps {
8
+ /**
9
+ * A base type that this interface extends. This can be used to represent inheritance
10
+ */
11
+ extends?: Children;
12
+ /**
13
+ * The generic type parameters of the interface.
14
+ */
15
+ typeParameters?: TypeParameterDescriptor[] | string[];
16
+ /**
17
+ * The JSON Schema that describes the properties of this interface.
18
+ *
19
+ * @remarks
20
+ * This is used to generate the members of the interface based on the properties of the schema.
21
+ */
22
+ schema?: JsonSchema;
23
+ /**
24
+ * Documentation for the interface. This can be a string or any Alloy component that renders documentation content (such as `TSDoc`).
25
+ */
26
+ doc?: Children;
27
+ }
28
+ type InterfaceDeclarationPropertyProps = InterfaceMemberProps & ComponentProps & {
29
+ schema: JsonSchema;
30
+ name: string;
31
+ required: boolean;
32
+ defaultValue?: unknown;
33
+ };
34
+ interface InterfaceExpressionProps {
35
+ children?: Children;
36
+ }
37
+ declare const InterfaceExpression: import("@alloy-js/core").Component<InterfaceExpressionProps>;
38
+ interface InterfaceMemberPropsBase {
39
+ children?: Children;
40
+ name: string | Namekey;
41
+ doc?: Children;
42
+ refkey?: Refkey | Refkey[];
43
+ readOnly?: boolean;
44
+ type?: Children | JsonSchemaPrimitiveType | string;
45
+ nullish?: boolean;
46
+ required?: boolean;
47
+ }
48
+ interface InterfaceIndexerMemberProps extends InterfaceMemberPropsBase {
49
+ indexer: Children;
50
+ }
51
+ interface InterfaceTypeMemberProps extends InterfaceMemberPropsBase {
52
+ type: string;
53
+ }
54
+ interface InterfaceSchemaMemberProps extends InterfaceMemberPropsBase {
55
+ schema: JsonSchema;
56
+ }
57
+ type InterfaceMemberProps = InterfaceIndexerMemberProps | InterfaceTypeMemberProps | InterfaceSchemaMemberProps;
58
+ /**
59
+ * Create a TypeScript interface member.
60
+ *
61
+ * An interface member can either provide a `name` prop to create a named
62
+ * property, or an `indexer` prop to define an indexer for the interface.
63
+ *
64
+ * The type of the member can be provided either as the `type` prop or as the
65
+ * children of the component.
66
+ */
67
+ declare function InterfaceMember(props: InterfaceMemberProps): Children;
68
+ /**
69
+ * Generates a TypeScript interface for the given schema.
70
+ */
71
+ declare function InterfaceDeclaration(props: InterfaceDeclarationProps): Children;
72
+ /**
73
+ * Generates a TypeScript interface property for the given reflection class.
74
+ */
75
+ declare function InterfaceDeclarationProperty(props: InterfaceDeclarationPropertyProps): Children;
76
+ //#endregion
77
+ export { InterfaceExpression as a, InterfaceMember as c, InterfaceSchemaMemberProps as d, InterfaceTypeMemberProps as f, InterfaceDeclarationProps as i, InterfaceMemberProps as l, InterfaceDeclarationProperty as n, InterfaceExpressionProps as o, InterfaceDeclarationPropertyProps as r, InterfaceIndexerMemberProps as s, InterfaceDeclaration as t, InterfaceMemberPropsBase as u };
78
+ //# sourceMappingURL=interface-declaration-BSo-U6IN.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interface-declaration-BSo-U6IN.d.cts","names":[],"sources":["../src/typescript/components/interface-declaration.tsx"],"mappings":";;;;;;UAsEiB,kCACP,YAAY,iCAAiC;;;;EAIrD,UAAU;;;;EAKV,iBAAiB;;;;;;;EAQjB,SAAS;;;;EAKT,MAAM;;KAGI,oCAAoC,uBAC9C;EACE,QAAQ;EACR;EACA;EACA;;UAGa;EACf,WAAW;;cAGA,8CAAmB,UAAA;UAoBf;EACf,WAAW;EACX,eAAe;EACf,MAAM;EACN,SAAS,SAAS;EAClB;EACA,OAAO,WAAW;EAClB;EACA;;UAGe,oCAAoC;EACnD,SAAS;;UAGM,iCAAiC;EAChD;;UAGe,mCAAmC;EAClD,QAAQ;;KAGE,uBACR,8BACA,2BACA;;;;;;;;;;iBAWY,gBAAgB,OAAO,uBAAoB;;;;iBAkI3C,qBAAqB,OAAO,4BAAyB;;;;iBAoErD,6BACd,OAAO,oCAAiC"}
@@ -0,0 +1,78 @@
1
+ import { t as ComponentProps } from "./components-vJaCHt1A.mjs";
2
+ import { Children, Namekey, Refkey } from "@alloy-js/core";
3
+ import { CommonDeclarationProps, TypeParameterDescriptor } from "@alloy-js/typescript";
4
+ import { JsonSchema, JsonSchemaPrimitiveType } from "@power-plant/schema";
5
+ import { PartialKeys } from "@stryke/types/base";
6
+ //#region src/typescript/components/interface-declaration.d.ts
7
+ interface InterfaceDeclarationProps extends PartialKeys<CommonDeclarationProps, "name">, ComponentProps {
8
+ /**
9
+ * A base type that this interface extends. This can be used to represent inheritance
10
+ */
11
+ extends?: Children;
12
+ /**
13
+ * The generic type parameters of the interface.
14
+ */
15
+ typeParameters?: TypeParameterDescriptor[] | string[];
16
+ /**
17
+ * The JSON Schema that describes the properties of this interface.
18
+ *
19
+ * @remarks
20
+ * This is used to generate the members of the interface based on the properties of the schema.
21
+ */
22
+ schema?: JsonSchema;
23
+ /**
24
+ * Documentation for the interface. This can be a string or any Alloy component that renders documentation content (such as `TSDoc`).
25
+ */
26
+ doc?: Children;
27
+ }
28
+ type InterfaceDeclarationPropertyProps = InterfaceMemberProps & ComponentProps & {
29
+ schema: JsonSchema;
30
+ name: string;
31
+ required: boolean;
32
+ defaultValue?: unknown;
33
+ };
34
+ interface InterfaceExpressionProps {
35
+ children?: Children;
36
+ }
37
+ declare const InterfaceExpression: import("@alloy-js/core").Component<InterfaceExpressionProps>;
38
+ interface InterfaceMemberPropsBase {
39
+ children?: Children;
40
+ name: string | Namekey;
41
+ doc?: Children;
42
+ refkey?: Refkey | Refkey[];
43
+ readOnly?: boolean;
44
+ type?: Children | JsonSchemaPrimitiveType | string;
45
+ nullish?: boolean;
46
+ required?: boolean;
47
+ }
48
+ interface InterfaceIndexerMemberProps extends InterfaceMemberPropsBase {
49
+ indexer: Children;
50
+ }
51
+ interface InterfaceTypeMemberProps extends InterfaceMemberPropsBase {
52
+ type: string;
53
+ }
54
+ interface InterfaceSchemaMemberProps extends InterfaceMemberPropsBase {
55
+ schema: JsonSchema;
56
+ }
57
+ type InterfaceMemberProps = InterfaceIndexerMemberProps | InterfaceTypeMemberProps | InterfaceSchemaMemberProps;
58
+ /**
59
+ * Create a TypeScript interface member.
60
+ *
61
+ * An interface member can either provide a `name` prop to create a named
62
+ * property, or an `indexer` prop to define an indexer for the interface.
63
+ *
64
+ * The type of the member can be provided either as the `type` prop or as the
65
+ * children of the component.
66
+ */
67
+ declare function InterfaceMember(props: InterfaceMemberProps): Children;
68
+ /**
69
+ * Generates a TypeScript interface for the given schema.
70
+ */
71
+ declare function InterfaceDeclaration(props: InterfaceDeclarationProps): Children;
72
+ /**
73
+ * Generates a TypeScript interface property for the given reflection class.
74
+ */
75
+ declare function InterfaceDeclarationProperty(props: InterfaceDeclarationPropertyProps): Children;
76
+ //#endregion
77
+ export { InterfaceExpression as a, InterfaceMember as c, InterfaceSchemaMemberProps as d, InterfaceTypeMemberProps as f, InterfaceDeclarationProps as i, InterfaceMemberProps as l, InterfaceDeclarationProperty as n, InterfaceExpressionProps as o, InterfaceDeclarationPropertyProps as r, InterfaceIndexerMemberProps as s, InterfaceDeclaration as t, InterfaceMemberPropsBase as u };
78
+ //# sourceMappingURL=interface-declaration-DYLPeJH1.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interface-declaration-DYLPeJH1.d.mts","names":[],"sources":["../src/typescript/components/interface-declaration.tsx"],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import { ScopePropsWithInfo, ScopePropsWithValue } from "@alloy-js/core";
2
+ //#region src/typescript/contexts/lexical-scope.d.ts
3
+ interface LexicalScopePropsWithScopeValue extends ScopePropsWithValue {}
4
+ interface LexicalScopePropsWithScopeInfo extends ScopePropsWithInfo {}
5
+ type LexicalScopeProps = LexicalScopePropsWithScopeValue | LexicalScopePropsWithScopeInfo;
6
+ /**
7
+ * A lexical scope for TypeScript, which contains declaration spaces for types and values. Declaration components will create symbols in this scope.
8
+ */
9
+ declare function LexicalScope(props: LexicalScopeProps): import("@alloy-js/core").Children;
10
+ //#endregion
11
+ export { LexicalScopePropsWithScopeValue as i, LexicalScopeProps as n, LexicalScopePropsWithScopeInfo as r, LexicalScope as t };
12
+ //# sourceMappingURL=lexical-scope-DghPwq5Q.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lexical-scope-DghPwq5Q.d.cts","names":[],"sources":["../src/typescript/contexts/lexical-scope.tsx"],"mappings":";;UAsBiB,wCAAwC;UACxC,uCAAuC;KAE5C,oBACV,kCAAkC;;;;iBAKpB,aAAa,OAAO,6CAAiB"}
@@ -0,0 +1,12 @@
1
+ import { ScopePropsWithInfo, ScopePropsWithValue } from "@alloy-js/core";
2
+ //#region src/typescript/contexts/lexical-scope.d.ts
3
+ interface LexicalScopePropsWithScopeValue extends ScopePropsWithValue {}
4
+ interface LexicalScopePropsWithScopeInfo extends ScopePropsWithInfo {}
5
+ type LexicalScopeProps = LexicalScopePropsWithScopeValue | LexicalScopePropsWithScopeInfo;
6
+ /**
7
+ * A lexical scope for TypeScript, which contains declaration spaces for types and values. Declaration components will create symbols in this scope.
8
+ */
9
+ declare function LexicalScope(props: LexicalScopeProps): import("@alloy-js/core").Children;
10
+ //#endregion
11
+ export { LexicalScopePropsWithScopeValue as i, LexicalScopeProps as n, LexicalScopePropsWithScopeInfo as r, LexicalScope as t };
12
+ //# sourceMappingURL=lexical-scope-DghPwq5Q.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lexical-scope-DghPwq5Q.d.mts","names":[],"sources":["../src/typescript/contexts/lexical-scope.tsx"],"mappings":""}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../core/components/spacing.cjs");let t=require("@alloy-js/core/jsx-runtime"),n=require("@alloy-js/core");function r(r){return[(0,t.memo)(()=>n.code`> [!${r.variant.toUpperCase()}]`),(0,t.createIntrinsic)(`hbr`,{}),n.code`> `,(0,t.memo)(()=>r.children),(0,t.createComponent)(e.Spacing,{})]}function i(e){return(0,t.createComponent)(r,(0,t.mergeProps)({variant:`note`},e))}function a(e){return(0,t.createComponent)(r,(0,t.mergeProps)({variant:`tip`},e))}function o(e){return(0,t.createComponent)(r,(0,t.mergeProps)({variant:`important`},e))}function s(e){return(0,t.createComponent)(r,(0,t.mergeProps)({variant:`warning`},e))}function c(e){return(0,t.createComponent)(r,(0,t.mergeProps)({variant:`caution`},e))}exports.Alert=r,exports.CautionAlert=c,exports.ImportantAlert=o,exports.NoteAlert=i,exports.TipAlert=a,exports.WarningAlert=s;
@@ -0,0 +1,2 @@
1
+ import { a as ImportantAlert, c as WarningAlert, i as CautionAlert, n as AlertProps, o as NoteAlert, r as AlertVariantProps, s as TipAlert, t as Alert } from "../../alert-BZRTtU1X.cjs";
2
+ export { Alert, AlertProps, AlertVariantProps, CautionAlert, ImportantAlert, NoteAlert, TipAlert, WarningAlert };
@@ -0,0 +1,2 @@
1
+ import { a as ImportantAlert, c as WarningAlert, i as CautionAlert, n as AlertProps, o as NoteAlert, r as AlertVariantProps, s as TipAlert, t as Alert } from "../../alert-BZRTtU1X.mjs";
2
+ export { Alert, AlertProps, AlertVariantProps, CautionAlert, ImportantAlert, NoteAlert, TipAlert, WarningAlert };
@@ -0,0 +1,2 @@
1
+ import{Spacing as e}from"../../core/components/spacing.mjs";import{createComponent as t,createIntrinsic as n,memo as r,mergeProps as i}from"@alloy-js/core/jsx-runtime";import{code as a}from"@alloy-js/core";function o(i){return[r(()=>a`> [!${i.variant.toUpperCase()}]`),n(`hbr`,{}),a`> `,r(()=>i.children),t(e,{})]}function s(e){return t(o,i({variant:`note`},e))}function c(e){return t(o,i({variant:`tip`},e))}function l(e){return t(o,i({variant:`important`},e))}function u(e){return t(o,i({variant:`warning`},e))}function d(e){return t(o,i({variant:`caution`},e))}export{o as Alert,d as CautionAlert,l as ImportantAlert,s as NoteAlert,c as TipAlert,u as WarningAlert};
2
+ //# sourceMappingURL=alert.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.mjs","names":[],"sources":[],"mappings":""}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../core/components/spacing.cjs");let t=require("@alloy-js/core/jsx-runtime"),n=require("@alloy-js/core");function r(r){return[`---`,(0,t.createIntrinsic)(`hbr`,{}),(0,t.createComponent)(n.For,{get each(){return Object.entries(r.data)},hardline:!0,children:([e,t])=>n.code`${e}: ${JSON.stringify(t)}`}),(0,t.createIntrinsic)(`hbr`,{}),`---`,(0,t.createComponent)(e.Spacing,{})]}exports.FrontMatter=r;
@@ -0,0 +1,2 @@
1
+ import { n as FrontMatterProps, t as FrontMatter } from "../../front-matter-N6kiCG9y.cjs";
2
+ export { FrontMatter, FrontMatterProps };
@@ -0,0 +1,2 @@
1
+ import { n as FrontMatterProps, t as FrontMatter } from "../../front-matter-N6kiCG9y.mjs";
2
+ export { FrontMatter, FrontMatterProps };
@@ -0,0 +1,2 @@
1
+ import{Spacing as e}from"../../core/components/spacing.mjs";import{createComponent as t,createIntrinsic as n}from"@alloy-js/core/jsx-runtime";import{For as r,code as i}from"@alloy-js/core";function a(a){return[`---`,n(`hbr`,{}),t(r,{get each(){return Object.entries(a.data)},hardline:!0,children:([e,t])=>i`${e}: ${JSON.stringify(t)}`}),n(`hbr`,{}),`---`,t(e,{})]}export{a as FrontMatter};
2
+ //# sourceMappingURL=front-matter.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"front-matter.mjs","names":[],"sources":[],"mappings":""}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../core/components/spacing.cjs");let t=require("@alloy-js/core/jsx-runtime"),n=require("@alloy-js/markdown");function r(r){let{children:i,...a}=r;return[(0,t.createComponent)(n.Heading,(0,t.mergeProps)({level:1},a,{children:i})),(0,t.createComponent)(e.Spacing,{})]}exports.Heading=r;
@@ -0,0 +1,2 @@
1
+ import { n as HeadingProps, t as Heading } from "../../heading-CG6LmaB5.cjs";
2
+ export { Heading, HeadingProps };
@@ -0,0 +1,2 @@
1
+ import { n as HeadingProps, t as Heading } from "../../heading-D0he7iDI.mjs";
2
+ export { Heading, HeadingProps };
@@ -0,0 +1,2 @@
1
+ import{Spacing as e}from"../../core/components/spacing.mjs";import{createComponent as t,mergeProps as n}from"@alloy-js/core/jsx-runtime";import{Heading as r}from"@alloy-js/markdown";function i(i){let{children:a,...o}=i;return[t(r,n({level:1},o,{children:a})),t(e,{})]}export{i as Heading};
2
+ //# sourceMappingURL=heading.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heading.mjs","names":[],"sources":[],"mappings":""}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./alert.cjs"),t=require("./front-matter.cjs"),n=require("./heading.cjs"),r=require("./markdown-file.cjs"),i=require("./markdown-table.cjs");exports.Alert=e.Alert,exports.CautionAlert=e.CautionAlert,exports.FrontMatter=t.FrontMatter,exports.Heading=n.Heading,exports.ImportantAlert=e.ImportantAlert,exports.MarkdownFile=r.MarkdownFile,exports.MarkdownFileHeader=r.MarkdownFileHeader,exports.MarkdownTable=i.MarkdownTable,exports.MarkdownTableColumn=i.MarkdownTableColumn,exports.MarkdownTableColumnHeader=i.MarkdownTableColumnHeader,exports.NoteAlert=e.NoteAlert,exports.TipAlert=e.TipAlert,exports.WarningAlert=e.WarningAlert;
@@ -0,0 +1,6 @@
1
+ import { a as ImportantAlert, c as WarningAlert, i as CautionAlert, n as AlertProps, o as NoteAlert, r as AlertVariantProps, s as TipAlert, t as Alert } from "../../alert-BZRTtU1X.cjs";
2
+ import { n as FrontMatterProps, t as FrontMatter } from "../../front-matter-N6kiCG9y.cjs";
3
+ import { n as HeadingProps, t as Heading } from "../../heading-CG6LmaB5.cjs";
4
+ import { i as MarkdownFileProps, n as MarkdownFileHeader, r as MarkdownFileHeaderProps, t as MarkdownFile } from "../../markdown-file-BsiASIVZ.cjs";
5
+ import { a as MarkdownTableProps, i as MarkdownTableColumnProps, n as MarkdownTableColumn, r as MarkdownTableColumnHeader, t as MarkdownTable } from "../../markdown-table-P04wFKse.cjs";
6
+ export { Alert, AlertProps, AlertVariantProps, CautionAlert, FrontMatter, FrontMatterProps, Heading, HeadingProps, ImportantAlert, MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, NoteAlert, TipAlert, WarningAlert };
@@ -0,0 +1,6 @@
1
+ import { a as ImportantAlert, c as WarningAlert, i as CautionAlert, n as AlertProps, o as NoteAlert, r as AlertVariantProps, s as TipAlert, t as Alert } from "../../alert-BZRTtU1X.mjs";
2
+ import { n as FrontMatterProps, t as FrontMatter } from "../../front-matter-N6kiCG9y.mjs";
3
+ import { n as HeadingProps, t as Heading } from "../../heading-D0he7iDI.mjs";
4
+ import { i as MarkdownFileProps, n as MarkdownFileHeader, r as MarkdownFileHeaderProps, t as MarkdownFile } from "../../markdown-file-CG6y_nCf.mjs";
5
+ import { a as MarkdownTableProps, i as MarkdownTableColumnProps, n as MarkdownTableColumn, r as MarkdownTableColumnHeader, t as MarkdownTable } from "../../markdown-table-H4veEJCn.mjs";
6
+ export { Alert, AlertProps, AlertVariantProps, CautionAlert, FrontMatter, FrontMatterProps, Heading, HeadingProps, ImportantAlert, MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, NoteAlert, TipAlert, WarningAlert };
@@ -0,0 +1 @@
1
+ import{Alert as e,CautionAlert as t,ImportantAlert as n,NoteAlert as r,TipAlert as i,WarningAlert as a}from"./alert.mjs";import{FrontMatter as o}from"./front-matter.mjs";import{Heading as s}from"./heading.mjs";import{MarkdownFile as c,MarkdownFileHeader as l}from"./markdown-file.mjs";import{MarkdownTable as u,MarkdownTableColumn as d,MarkdownTableColumnHeader as f}from"./markdown-table.mjs";export{e as Alert,t as CautionAlert,o as FrontMatter,s as Heading,n as ImportantAlert,c as MarkdownFile,l as MarkdownFileHeader,u as MarkdownTable,d as MarkdownTableColumn,f as MarkdownTableColumnHeader,r as NoteAlert,i as TipAlert,a as WarningAlert};
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../core/components/single-line-comment.cjs"),t=require("../../core/components/source-file.cjs"),n=require("../../core/helpers/header-constants.cjs"),r=require("./front-matter.cjs");let i=require("@alloy-js/core/jsx-runtime"),a=require("@alloy-js/core"),o=require("@stryke/type-checks"),s=require("@alloy-js/markdown");function c(e){let[{children:n,frontMatter:r},o]=(0,a.splitProps)(e,[`children`,`frontMatter`]);return(0,i.createComponent)(t.SourceFile,(0,i.mergeProps)(o,{filetype:`md`,reference:s.Link,get children(){return(0,i.createComponent)(a.Show,{get when(){return!!n},get children(){return(0,i.createComponent)(l,{frontMatter:r,children:n})}})}}))}function l(t){let[{children:s,disableEslint:c=!0,disableBiome:l=!0,disableOxlint:u=!0,disablePrettier:d=!1,frontMatter:f}]=(0,a.splitProps)(t,[`children`,`disableEslint`,`disableBiome`,`disableOxlint`,`disablePrettier`,`frontMatter`]);return[(0,i.createComponent)(a.Show,{get when(){return(0,i.memo)(()=>!!(0,o.isSetObject)(f))()&&Object.keys(f).length>0},get children(){return(0,i.createComponent)(r.FrontMatter,{data:f??{}})}}),(0,i.createComponent)(a.Show,{get when(){return!!c},get children(){return[(0,i.createComponent)(e.SingleLineComment,{variant:`markdown`,children:`eslint-disable`}),(0,i.createIntrinsic)(`hbr`,{})]}}),(0,i.createComponent)(a.Show,{get when(){return!!u},get children(){return[(0,i.createComponent)(e.SingleLineComment,{variant:`markdown`,children:`oxlint-disable`}),(0,i.createIntrinsic)(`hbr`,{})]}}),(0,i.createComponent)(a.Show,{get when(){return!!d},get children(){return[(0,i.createComponent)(e.SingleLineComment,{variant:`markdown`,children:`prettier-ignore`}),(0,i.createIntrinsic)(`hbr`,{})]}}),(0,i.createComponent)(a.Show,{get when(){return!!l},get children(){return[(0,i.createComponent)(e.SingleLineComment,{variant:`markdown`,children:`biome-ignore lint: disable`}),(0,i.createIntrinsic)(`hbr`,{})]}}),(0,i.createComponent)(a.Show,{get when(){return!!c||!!d||!!l||!!u},get children(){return(0,i.createIntrinsic)(`hbr`,{})}}),(0,i.createComponent)(a.Show,{get when(){return!!s},get children(){return[s,(0,i.createIntrinsic)(`hbr`,{})]}}),(0,i.createComponent)(e.SingleLineComment,{variant:`markdown`,children:n.HEADER_TEXT_LINE_1}),(0,i.createIntrinsic)(`hbr`,{}),(0,i.createComponent)(e.SingleLineComment,{variant:`markdown`,children:n.HEADER_TEXT_LINE_2}),(0,i.createIntrinsic)(`hbr`,{})]}exports.MarkdownFile=c,exports.MarkdownFileHeader=l;
@@ -0,0 +1,2 @@
1
+ import { i as MarkdownFileProps, n as MarkdownFileHeader, r as MarkdownFileHeaderProps, t as MarkdownFile } from "../../markdown-file-BsiASIVZ.cjs";
2
+ export { MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps };
@@ -0,0 +1,2 @@
1
+ import { i as MarkdownFileProps, n as MarkdownFileHeader, r as MarkdownFileHeaderProps, t as MarkdownFile } from "../../markdown-file-CG6y_nCf.mjs";
2
+ export { MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps };
@@ -0,0 +1,2 @@
1
+ import{SingleLineComment as e}from"../../core/components/single-line-comment.mjs";import{SourceFile as t}from"../../core/components/source-file.mjs";import{HEADER_TEXT_LINE_1 as n,HEADER_TEXT_LINE_2 as r}from"../../core/helpers/header-constants.mjs";import{FrontMatter as i}from"./front-matter.mjs";import{createComponent as a,createIntrinsic as o,memo as s,mergeProps as c}from"@alloy-js/core/jsx-runtime";import{Show as l,splitProps as u}from"@alloy-js/core";import{isSetObject as d}from"@stryke/type-checks";import{Link as f}from"@alloy-js/markdown";function p(e){let[{children:n,frontMatter:r},i]=u(e,[`children`,`frontMatter`]);return a(t,c(i,{filetype:`md`,reference:f,get children(){return a(l,{get when(){return!!n},get children(){return a(m,{frontMatter:r,children:n})}})}}))}function m(t){let[{children:c,disableEslint:f=!0,disableBiome:p=!0,disableOxlint:m=!0,disablePrettier:h=!1,frontMatter:g}]=u(t,[`children`,`disableEslint`,`disableBiome`,`disableOxlint`,`disablePrettier`,`frontMatter`]);return[a(l,{get when(){return s(()=>!!d(g))()&&Object.keys(g).length>0},get children(){return a(i,{data:g??{}})}}),a(l,{get when(){return!!f},get children(){return[a(e,{variant:`markdown`,children:`eslint-disable`}),o(`hbr`,{})]}}),a(l,{get when(){return!!m},get children(){return[a(e,{variant:`markdown`,children:`oxlint-disable`}),o(`hbr`,{})]}}),a(l,{get when(){return!!h},get children(){return[a(e,{variant:`markdown`,children:`prettier-ignore`}),o(`hbr`,{})]}}),a(l,{get when(){return!!p},get children(){return[a(e,{variant:`markdown`,children:`biome-ignore lint: disable`}),o(`hbr`,{})]}}),a(l,{get when(){return!!f||!!h||!!p||!!m},get children(){return o(`hbr`,{})}}),a(l,{get when(){return!!c},get children(){return[c,o(`hbr`,{})]}}),a(e,{variant:`markdown`,children:n}),o(`hbr`,{}),a(e,{variant:`markdown`,children:r}),o(`hbr`,{})]}export{p as MarkdownFile,m as MarkdownFileHeader};
2
+ //# sourceMappingURL=markdown-file.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown-file.mjs","names":[],"sources":[],"mappings":""}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../contexts/markdown-table.cjs");let t=require("@alloy-js/core/jsx-runtime"),n=require("@alloy-js/core"),r=require("@stryke/type-checks/is-undefined"),i=require("@stryke/string-format/title-case");function a(r){let[{children:i,columns:a,data:o}]=(0,n.splitProps)(r,[`children`,`columns`,`data`]);if(o.length===0)return null;let s=(0,n.computed)(()=>a&&a.length>0?a:Object.keys(o[0]??{}).map((e,t)=>({index:t,name:e,align:`left`,width:20})));return(0,t.createComponent)(e.MarkdownTableContext.Provider,{get value(){return{columns:s.value,data:o}},get children(){return(0,t.createComponent)(n.Show,{get when(){return!!i},children:i})}})}function o(r){let[{children:i,width:a,align:o,name:s}]=(0,n.splitProps)(r,[`children`,`width`,`align`,`name`]),c=e.useMarkdownTable(),l=(0,n.computed)(()=>c?.columns.find(e=>e.name===s)),u=(0,n.computed)(()=>l.value?.index??0),d=(0,n.computed)(()=>l.value?.align??o??`left`),f=(0,n.computed)(()=>l.value?.width??a??20),p=(0,n.computed)(()=>(i?i.toString():``).length);return(0,t.createComponent)(n.Prose,{get children(){return[(0,t.createComponent)(n.Show,{get when(){return u.value===0},children:`|`}),(0,t.createComponent)(n.Show,{get when(){return!!i},get children(){return(0,t.createComponent)(n.Prose,{get children(){return n.code`${d.value===`left`?` `.repeat(f.value-p.value-1):` `}${i}${d.value===`right`?` `.repeat(f.value-p.value-1):` `}`}})}}),`|`]}})}function s(e){let[{children:a,name:s},c]=(0,n.splitProps)(e,[`children`,`name`]);return[(0,t.createComponent)(o,(0,t.mergeProps)(c,{name:s,get children(){return(0,t.createComponent)(n.Show,{get fallback(){return(0,i.titleCase)(s,{useDescriptions:!1})},get when(){return!(0,r.isUndefined)(a)},children:a})}}))]}exports.MarkdownTable=a,exports.MarkdownTableColumn=o,exports.MarkdownTableColumnHeader=s;
@@ -0,0 +1,2 @@
1
+ import { a as MarkdownTableProps, i as MarkdownTableColumnProps, n as MarkdownTableColumn, r as MarkdownTableColumnHeader, t as MarkdownTable } from "../../markdown-table-P04wFKse.cjs";
2
+ export { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps };
@@ -0,0 +1,2 @@
1
+ import { a as MarkdownTableProps, i as MarkdownTableColumnProps, n as MarkdownTableColumn, r as MarkdownTableColumnHeader, t as MarkdownTable } from "../../markdown-table-H4veEJCn.mjs";
2
+ export { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps };
@@ -0,0 +1,2 @@
1
+ import{MarkdownTableContext as e,useMarkdownTable as t}from"../contexts/markdown-table.mjs";import{createComponent as n,mergeProps as r}from"@alloy-js/core/jsx-runtime";import{Prose as i,Show as a,code as o,computed as s,splitProps as c}from"@alloy-js/core";import{isUndefined as l}from"@stryke/type-checks/is-undefined";import{titleCase as u}from"@stryke/string-format/title-case";function d(t){let[{children:r,columns:i,data:o}]=c(t,[`children`,`columns`,`data`]);if(o.length===0)return null;let l=s(()=>i&&i.length>0?i:Object.keys(o[0]??{}).map((e,t)=>({index:t,name:e,align:`left`,width:20})));return n(e.Provider,{get value(){return{columns:l.value,data:o}},get children(){return n(a,{get when(){return!!r},children:r})}})}function f(e){let[{children:r,width:l,align:u,name:d}]=c(e,[`children`,`width`,`align`,`name`]),f=t(),p=s(()=>f?.columns.find(e=>e.name===d)),m=s(()=>p.value?.index??0),h=s(()=>p.value?.align??u??`left`),g=s(()=>p.value?.width??l??20),_=s(()=>(r?r.toString():``).length);return n(i,{get children(){return[n(a,{get when(){return m.value===0},children:`|`}),n(a,{get when(){return!!r},get children(){return n(i,{get children(){return o`${h.value===`left`?` `.repeat(g.value-_.value-1):` `}${r}${h.value===`right`?` `.repeat(g.value-_.value-1):` `}`}})}}),`|`]}})}function p(e){let[{children:t,name:i},o]=c(e,[`children`,`name`]);return[n(f,r(o,{name:i,get children(){return n(a,{get fallback(){return u(i,{useDescriptions:!1})},get when(){return!l(t)},children:t})}}))]}export{d as MarkdownTable,f as MarkdownTableColumn,p as MarkdownTableColumnHeader};
2
+ //# sourceMappingURL=markdown-table.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown-table.mjs","names":[],"sources":[],"mappings":""}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./markdown-table.cjs");exports.MarkdownTableColumnContext=e.MarkdownTableColumnContext,exports.MarkdownTableContext=e.MarkdownTableContext,exports.useMarkdownTable=e.useMarkdownTable,exports.useMarkdownTableColumn=e.useMarkdownTableColumn;
@@ -0,0 +1,2 @@
1
+ import { a as useMarkdownTable, i as MarkdownTableContextInterface, n as MarkdownTableColumnContextInterface, o as useMarkdownTableColumn, r as MarkdownTableContext, t as MarkdownTableColumnContext } from "../../markdown-table-BxfTr3lV.cjs";
2
+ export { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn };
@@ -0,0 +1,2 @@
1
+ import { a as useMarkdownTable, i as MarkdownTableContextInterface, n as MarkdownTableColumnContextInterface, o as useMarkdownTableColumn, r as MarkdownTableContext, t as MarkdownTableColumnContext } from "../../markdown-table-BxfTr3lV.mjs";
2
+ export { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn };
@@ -0,0 +1 @@
1
+ import{MarkdownTableColumnContext as e,MarkdownTableContext as t,useMarkdownTable as n,useMarkdownTableColumn as r}from"./markdown-table.mjs";export{e as MarkdownTableColumnContext,t as MarkdownTableContext,n as useMarkdownTable,r as useMarkdownTableColumn};
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@alloy-js/core");const t=(0,e.createNamedContext)(`MarkdownTableColumn`,{});function n(){return(0,e.useContext)(t)}const r=(0,e.createContext)({columns:[],data:[]});function i(){return(0,e.useContext)(r)}exports.MarkdownTableColumnContext=t,exports.MarkdownTableContext=r,exports.useMarkdownTable=i,exports.useMarkdownTableColumn=n;
@@ -0,0 +1,2 @@
1
+ import { a as useMarkdownTable, i as MarkdownTableContextInterface, n as MarkdownTableColumnContextInterface, o as useMarkdownTableColumn, r as MarkdownTableContext, t as MarkdownTableColumnContext } from "../../markdown-table-BxfTr3lV.cjs";
2
+ export { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn };
@@ -0,0 +1,2 @@
1
+ import { a as useMarkdownTable, i as MarkdownTableContextInterface, n as MarkdownTableColumnContextInterface, o as useMarkdownTableColumn, r as MarkdownTableContext, t as MarkdownTableColumnContext } from "../../markdown-table-BxfTr3lV.mjs";
2
+ export { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn };
@@ -0,0 +1,2 @@
1
+ import{createContext as e,createNamedContext as t,useContext as n}from"@alloy-js/core";const r=t(`MarkdownTableColumn`,{});function i(){return n(r)}const a=e({columns:[],data:[]});function o(){return n(a)}export{r as MarkdownTableColumnContext,a as MarkdownTableContext,o as useMarkdownTable,i as useMarkdownTableColumn};
2
+ //# sourceMappingURL=markdown-table.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown-table.mjs","names":[],"sources":[],"mappings":""}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./components/alert.cjs"),t=require("./components/front-matter.cjs"),n=require("./components/heading.cjs"),r=require("./components/markdown-file.cjs"),i=require("./contexts/markdown-table.cjs"),a=require("./components/markdown-table.cjs");require("./components/index.cjs"),require("./contexts/index.cjs"),exports.Alert=e.Alert,exports.CautionAlert=e.CautionAlert,exports.FrontMatter=t.FrontMatter,exports.Heading=n.Heading,exports.ImportantAlert=e.ImportantAlert,exports.MarkdownFile=r.MarkdownFile,exports.MarkdownFileHeader=r.MarkdownFileHeader,exports.MarkdownTable=a.MarkdownTable,exports.MarkdownTableColumn=a.MarkdownTableColumn,exports.MarkdownTableColumnContext=i.MarkdownTableColumnContext,exports.MarkdownTableColumnHeader=a.MarkdownTableColumnHeader,exports.MarkdownTableContext=i.MarkdownTableContext,exports.NoteAlert=e.NoteAlert,exports.TipAlert=e.TipAlert,exports.WarningAlert=e.WarningAlert,exports.useMarkdownTable=i.useMarkdownTable,exports.useMarkdownTableColumn=i.useMarkdownTableColumn;