zudoku 0.0.0-ff3bc72 → 0.0.0-zuplo-api-keys.95df9e9

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 (1781) hide show
  1. package/README.md +121 -0
  2. package/cli.js +11 -2
  3. package/dist/app/ZuploBuildConfig.d.ts +155 -0
  4. package/dist/app/ZuploBuildConfig.js +29 -0
  5. package/dist/app/ZuploBuildConfig.js.map +1 -0
  6. package/dist/app/demo.js +1 -4
  7. package/dist/app/demo.js.map +1 -1
  8. package/dist/app/entry.client.d.ts +6 -0
  9. package/dist/app/entry.client.js +53 -3
  10. package/dist/app/entry.client.js.map +1 -1
  11. package/dist/app/entry.server.d.ts +9 -6
  12. package/dist/app/entry.server.js +21 -14
  13. package/dist/app/entry.server.js.map +1 -1
  14. package/dist/app/env.d.ts +33 -0
  15. package/dist/app/env.js +29 -0
  16. package/dist/app/env.js.map +1 -0
  17. package/dist/app/main.d.ts +3 -2
  18. package/dist/app/main.js +50 -61
  19. package/dist/app/main.js.map +1 -1
  20. package/dist/app/sentry.d.ts +3 -0
  21. package/dist/app/sentry.js +19 -0
  22. package/dist/app/sentry.js.map +1 -0
  23. package/dist/app/standalone.js +1 -4
  24. package/dist/app/standalone.js.map +1 -1
  25. package/dist/cli/build/handler.d.ts +1 -3
  26. package/dist/cli/build/handler.js +9 -1
  27. package/dist/cli/build/handler.js.map +1 -1
  28. package/dist/cli/cli.js +18 -5
  29. package/dist/cli/cli.js.map +1 -1
  30. package/dist/cli/cmds/build.d.ts +11 -3
  31. package/dist/cli/cmds/build.js +21 -13
  32. package/dist/cli/cmds/build.js.map +1 -1
  33. package/dist/cli/cmds/dev.d.ts +1 -1
  34. package/dist/cli/cmds/dev.js +5 -0
  35. package/dist/cli/cmds/dev.js.map +1 -1
  36. package/dist/cli/cmds/preview.d.ts +16 -0
  37. package/dist/cli/cmds/preview.js +25 -0
  38. package/dist/cli/cmds/preview.js.map +1 -0
  39. package/dist/cli/common/logger.js +9 -0
  40. package/dist/cli/common/logger.js.map +1 -1
  41. package/dist/cli/common/machine-id/lib.js +1 -0
  42. package/dist/cli/common/machine-id/lib.js.map +1 -1
  43. package/dist/cli/common/outdated.js +2 -1
  44. package/dist/cli/common/outdated.js.map +1 -1
  45. package/dist/cli/common/output.js.map +1 -1
  46. package/dist/cli/common/utils/box.js.map +1 -1
  47. package/dist/cli/common/utils/ports.d.ts +1 -1
  48. package/dist/cli/common/utils/ports.js +16 -15
  49. package/dist/cli/common/utils/ports.js.map +1 -1
  50. package/dist/cli/dev/handler.d.ts +1 -0
  51. package/dist/cli/dev/handler.js +16 -13
  52. package/dist/cli/dev/handler.js.map +1 -1
  53. package/dist/cli/preview/handler.d.ts +3 -0
  54. package/dist/cli/preview/handler.js +35 -0
  55. package/dist/cli/preview/handler.js.map +1 -0
  56. package/dist/codegen.d.ts +3 -0
  57. package/dist/codegen.js +45 -0
  58. package/dist/codegen.js.map +1 -0
  59. package/dist/config/config.d.ts +20 -16
  60. package/dist/config/file-exists.d.ts +1 -0
  61. package/dist/config/file-exists.js +5 -0
  62. package/dist/config/file-exists.js.map +1 -0
  63. package/dist/config/loader.d.ts +19 -0
  64. package/dist/config/loader.js +135 -0
  65. package/dist/config/loader.js.map +1 -0
  66. package/dist/config/validators/BuildSchema.d.ts +60 -0
  67. package/dist/config/validators/BuildSchema.js +31 -0
  68. package/dist/config/validators/BuildSchema.js.map +1 -0
  69. package/dist/config/validators/InputSidebarSchema.d.ts +63 -32
  70. package/dist/config/validators/InputSidebarSchema.js +17 -28
  71. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  72. package/dist/config/validators/SidebarSchema.d.ts +24 -1
  73. package/dist/config/validators/SidebarSchema.js +80 -44
  74. package/dist/config/validators/SidebarSchema.js.map +1 -1
  75. package/dist/config/validators/icon-types.d.ts +1 -0
  76. package/dist/config/validators/icon-types.js +2 -0
  77. package/dist/config/validators/icon-types.js.map +1 -0
  78. package/dist/config/validators/validate.d.ts +4690 -332
  79. package/dist/config/validators/validate.js +273 -82
  80. package/dist/config/validators/validate.js.map +1 -1
  81. package/dist/index.d.ts +9 -2
  82. package/dist/index.js +4 -1
  83. package/dist/index.js.map +1 -1
  84. package/dist/lib/MissingIcon.d.ts +2 -0
  85. package/dist/lib/MissingIcon.js +7 -0
  86. package/dist/lib/MissingIcon.js.map +1 -0
  87. package/dist/lib/authentication/AuthenticationPlugin.d.ts +11 -4
  88. package/dist/lib/authentication/AuthenticationPlugin.js +16 -1
  89. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  90. package/dist/lib/authentication/authentication.d.ts +4 -5
  91. package/dist/lib/authentication/components/CallbackHandler.js +25 -31
  92. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  93. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  94. package/dist/lib/authentication/components/SignIn.js +5 -2
  95. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  96. package/dist/lib/authentication/components/SignOut.js +2 -2
  97. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  98. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  99. package/dist/lib/authentication/components/SignUp.js +4 -1
  100. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  101. package/dist/lib/authentication/hook.d.ts +6 -4
  102. package/dist/lib/authentication/hook.js +12 -4
  103. package/dist/lib/authentication/hook.js.map +1 -1
  104. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  105. package/dist/lib/authentication/providers/auth0.js +15 -13
  106. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  107. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  108. package/dist/lib/authentication/providers/clerk.js +116 -47
  109. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  110. package/dist/lib/authentication/providers/openid.d.ts +21 -19
  111. package/dist/lib/authentication/providers/openid.js +62 -69
  112. package/dist/lib/authentication/providers/openid.js.map +1 -1
  113. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  114. package/dist/lib/authentication/providers/supabase.js +115 -0
  115. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  116. package/dist/lib/authentication/state.d.ts +23 -19
  117. package/dist/lib/authentication/state.js +34 -7
  118. package/dist/lib/authentication/state.js.map +1 -1
  119. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  120. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  121. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  122. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  123. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  124. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  125. package/dist/lib/components/AnchorLink.d.ts +2 -2
  126. package/dist/lib/components/AnchorLink.js +9 -5
  127. package/dist/lib/components/AnchorLink.js.map +1 -1
  128. package/dist/lib/components/Autocomplete.d.ts +13 -0
  129. package/dist/lib/components/Autocomplete.js +47 -0
  130. package/dist/lib/components/Autocomplete.js.map +1 -0
  131. package/dist/lib/components/Banner.js +1 -1
  132. package/dist/lib/components/Banner.js.map +1 -1
  133. package/dist/lib/components/Bootstrap.d.ts +5 -3
  134. package/dist/lib/components/Bootstrap.js +13 -6
  135. package/dist/lib/components/Bootstrap.js.map +1 -1
  136. package/dist/lib/components/BuildCheck.d.ts +4 -0
  137. package/dist/lib/components/BuildCheck.js +38 -0
  138. package/dist/lib/components/BuildCheck.js.map +1 -0
  139. package/dist/lib/components/ClientOnly.d.ts +4 -2
  140. package/dist/lib/components/ClientOnly.js +1 -1
  141. package/dist/lib/components/ClientOnly.js.map +1 -1
  142. package/dist/lib/components/DeveloperHint.js +2 -1
  143. package/dist/lib/components/DeveloperHint.js.map +1 -1
  144. package/dist/lib/components/ErrorPage.js +1 -1
  145. package/dist/lib/components/Footer.d.ts +1 -0
  146. package/dist/lib/components/Footer.js +32 -0
  147. package/dist/lib/components/Footer.js.map +1 -0
  148. package/dist/lib/components/Header.js +31 -12
  149. package/dist/lib/components/Header.js.map +1 -1
  150. package/dist/lib/components/Heading.d.ts +5 -5
  151. package/dist/lib/components/Heading.js +1 -1
  152. package/dist/lib/components/Heading.js.map +1 -1
  153. package/dist/lib/components/InlineCode.d.ts +2 -1
  154. package/dist/lib/components/InlineCode.js +2 -9
  155. package/dist/lib/components/InlineCode.js.map +1 -1
  156. package/dist/lib/components/Layout.js +10 -21
  157. package/dist/lib/components/Layout.js.map +1 -1
  158. package/dist/lib/components/Main.d.ts +2 -0
  159. package/dist/lib/components/Main.js +18 -0
  160. package/dist/lib/components/Main.js.map +1 -0
  161. package/dist/lib/components/Markdown.d.ts +4 -2
  162. package/dist/lib/components/Markdown.js +10 -14
  163. package/dist/lib/components/Markdown.js.map +1 -1
  164. package/dist/lib/components/MobileTopNavigation.js +14 -7
  165. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  166. package/dist/lib/components/NotFoundPage.js +2 -2
  167. package/dist/lib/components/NotFoundPage.js.map +1 -1
  168. package/dist/lib/components/Pagination.d.ts +11 -0
  169. package/dist/lib/components/Pagination.js +10 -0
  170. package/dist/lib/components/Pagination.js.map +1 -0
  171. package/dist/lib/components/PathRenderer.d.ts +11 -0
  172. package/dist/lib/components/PathRenderer.js +28 -0
  173. package/dist/lib/components/PathRenderer.js.map +1 -0
  174. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  175. package/dist/lib/components/ReactMarkdown.js +182 -0
  176. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  177. package/dist/lib/components/Search.d.ts +3 -1
  178. package/dist/lib/components/Search.js +9 -3
  179. package/dist/lib/components/Search.js.map +1 -1
  180. package/dist/lib/components/Slot.d.ts +17 -0
  181. package/dist/lib/components/Slot.js +24 -0
  182. package/dist/lib/components/Slot.js.map +1 -0
  183. package/dist/lib/components/Slot.test.js +163 -0
  184. package/dist/lib/components/Slot.test.js.map +1 -0
  185. package/dist/lib/components/StatusPage.d.ts +7 -0
  186. package/dist/lib/components/StatusPage.js +71 -0
  187. package/dist/lib/components/StatusPage.js.map +1 -0
  188. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  189. package/dist/lib/components/ThemeSwitch.js +16 -0
  190. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  191. package/dist/lib/components/TopNavigation.d.ts +3 -0
  192. package/dist/lib/components/TopNavigation.js +53 -8
  193. package/dist/lib/components/TopNavigation.js.map +1 -1
  194. package/dist/lib/components/Zudoku.d.ts +7 -0
  195. package/dist/lib/components/Zudoku.js +58 -0
  196. package/dist/lib/components/Zudoku.js.map +1 -0
  197. package/dist/lib/components/cache.d.ts +13 -0
  198. package/dist/lib/components/cache.js +20 -0
  199. package/dist/lib/components/cache.js.map +1 -0
  200. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  201. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  202. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  203. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  204. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  205. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  206. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  207. package/dist/lib/components/context/SlotProvider.js +83 -0
  208. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  209. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  210. package/dist/lib/components/context/ViewportAnchorContext.js +29 -23
  211. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  212. package/dist/lib/components/context/ZudokuContext.d.ts +10 -14
  213. package/dist/lib/components/context/ZudokuContext.js +40 -27
  214. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  215. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  216. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  217. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  218. package/dist/lib/components/index.d.ts +59 -16
  219. package/dist/lib/components/index.js +27 -6
  220. package/dist/lib/components/index.js.map +1 -1
  221. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  222. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  223. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  224. package/dist/lib/components/navigation/Sidebar.d.ts +5 -1
  225. package/dist/lib/components/navigation/Sidebar.js +4 -8
  226. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  227. package/dist/lib/components/navigation/SidebarBadge.d.ts +6 -3
  228. package/dist/lib/components/navigation/SidebarBadge.js +13 -11
  229. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  230. package/dist/lib/components/navigation/SidebarCategory.d.ts +3 -3
  231. package/dist/lib/components/navigation/SidebarCategory.js +32 -14
  232. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  233. package/dist/lib/components/navigation/SidebarItem.d.ts +3 -4
  234. package/dist/lib/components/navigation/SidebarItem.js +23 -17
  235. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  236. package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
  237. package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
  238. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  239. package/dist/lib/components/navigation/Toc.js +46 -0
  240. package/dist/lib/components/navigation/Toc.js.map +1 -0
  241. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  242. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  243. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  244. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  245. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  246. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  247. package/dist/lib/components/navigation/utils.d.ts +3 -0
  248. package/dist/lib/components/navigation/utils.js +19 -15
  249. package/dist/lib/components/navigation/utils.js.map +1 -1
  250. package/dist/lib/core/RouteGuard.d.ts +2 -0
  251. package/dist/lib/core/RouteGuard.js +52 -0
  252. package/dist/lib/core/RouteGuard.js.map +1 -0
  253. package/dist/lib/core/ZudokuContext.d.ts +112 -0
  254. package/dist/lib/core/ZudokuContext.js +70 -0
  255. package/dist/lib/core/ZudokuContext.js.map +1 -0
  256. package/dist/lib/core/plugins.d.ts +35 -17
  257. package/dist/lib/core/plugins.js +4 -0
  258. package/dist/lib/core/plugins.js.map +1 -1
  259. package/dist/lib/errors/ErrorAlert.d.ts +1 -1
  260. package/dist/lib/errors/ErrorAlert.js +13 -3
  261. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  262. package/dist/lib/errors/RouterError.js +1 -1
  263. package/dist/lib/errors/RouterError.js.map +1 -1
  264. package/dist/lib/hooks/index.d.ts +3 -0
  265. package/dist/lib/hooks/index.js +5 -0
  266. package/dist/lib/hooks/index.js.map +1 -0
  267. package/dist/lib/hooks/useEvent.d.ts +11 -0
  268. package/dist/lib/hooks/useEvent.js +19 -0
  269. package/dist/lib/hooks/useEvent.js.map +1 -0
  270. package/dist/lib/hooks/useEvent.test.js +100 -0
  271. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  272. package/dist/lib/icons.d.ts +1 -0
  273. package/dist/lib/icons.js +1 -0
  274. package/dist/lib/icons.js.map +1 -1
  275. package/dist/lib/oas/graphql/circular.d.ts +3 -0
  276. package/dist/lib/oas/graphql/circular.js +43 -0
  277. package/dist/lib/oas/graphql/circular.js.map +1 -0
  278. package/dist/lib/oas/graphql/index.d.ts +25 -1
  279. package/dist/lib/oas/graphql/index.js +216 -69
  280. package/dist/lib/oas/graphql/index.js.map +1 -1
  281. package/dist/lib/oas/parser/dereference/index.js +8 -3
  282. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  283. package/dist/lib/oas/parser/index.d.ts +8 -3
  284. package/dist/lib/oas/parser/index.js +7 -23
  285. package/dist/lib/oas/parser/index.js.map +1 -1
  286. package/dist/lib/oas/parser/upgrade/index.d.ts +3 -2
  287. package/dist/lib/oas/parser/upgrade/index.js +83 -31
  288. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  289. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
  290. package/dist/lib/plugins/api-catalog/Catalog.js +26 -0
  291. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  292. package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
  293. package/dist/lib/plugins/api-catalog/index.js +46 -0
  294. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  295. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  296. package/dist/lib/plugins/api-keys/CreateApiKey.js +16 -8
  297. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  298. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  299. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  300. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  301. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +55 -24
  302. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  303. package/dist/lib/plugins/api-keys/index.d.ts +23 -13
  304. package/dist/lib/plugins/api-keys/index.js +48 -32
  305. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  306. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +2 -0
  307. package/dist/lib/plugins/custom-pages/CustomPage.js +11 -0
  308. package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -0
  309. package/dist/lib/plugins/custom-pages/index.d.ts +10 -0
  310. package/dist/lib/plugins/custom-pages/index.js +11 -0
  311. package/dist/lib/plugins/custom-pages/index.js.map +1 -0
  312. package/dist/lib/plugins/markdown/MdxPage.d.ts +10 -2
  313. package/dist/lib/plugins/markdown/MdxPage.js +17 -4
  314. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  315. package/dist/lib/plugins/markdown/index.d.ts +8 -7
  316. package/dist/lib/plugins/markdown/index.js +31 -3
  317. package/dist/lib/plugins/markdown/index.js.map +1 -1
  318. package/dist/lib/plugins/markdown/resolver.d.ts +32 -0
  319. package/dist/lib/plugins/markdown/resolver.js +46 -0
  320. package/dist/lib/plugins/markdown/resolver.js.map +1 -0
  321. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
  322. package/dist/lib/plugins/openapi/CollapsibleCode.js +25 -0
  323. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  324. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
  325. package/dist/lib/plugins/openapi/ColorizedParam.js +29 -14
  326. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  327. package/dist/lib/plugins/openapi/Endpoint.js +13 -16
  328. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  329. package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
  330. package/dist/lib/plugins/openapi/OasProvider.js +29 -0
  331. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  332. package/dist/lib/plugins/openapi/OperationList.d.ts +6 -3
  333. package/dist/lib/plugins/openapi/OperationList.js +107 -27
  334. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  335. package/dist/lib/plugins/openapi/OperationListItem.d.ts +5 -3
  336. package/dist/lib/plugins/openapi/OperationListItem.js +12 -6
  337. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  338. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  339. package/dist/lib/plugins/openapi/ParamInfos.js +45 -0
  340. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  341. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
  342. package/dist/lib/plugins/openapi/ParameterList.js +3 -2
  343. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  344. package/dist/lib/plugins/openapi/ParameterListItem.js +19 -1
  345. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  346. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +4 -2
  347. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +12 -3
  348. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  349. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +3 -4
  350. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -9
  351. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  352. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  353. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +4 -6
  354. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  355. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  356. package/dist/lib/plugins/openapi/SchemaList.js +53 -0
  357. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  358. package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
  359. package/dist/lib/plugins/openapi/Sidecar.js +114 -65
  360. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  361. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  362. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  363. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -0
  364. package/dist/lib/plugins/openapi/SidecarExamples.js +76 -0
  365. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
  366. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  367. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  368. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  369. package/dist/lib/plugins/openapi/client/GraphQLClient.js +43 -0
  370. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  371. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  372. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  373. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  374. package/dist/lib/plugins/openapi/client/createServer.d.ts +3 -1
  375. package/dist/lib/plugins/openapi/client/createServer.js +5 -2
  376. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  377. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +14 -0
  378. package/dist/lib/plugins/openapi/client/useCreateQuery.js +20 -0
  379. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  380. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  381. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  382. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  383. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  384. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  385. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  386. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  387. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  388. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  389. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  390. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  391. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  392. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  393. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  394. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  395. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  396. package/dist/lib/plugins/openapi/graphql/gql.d.ts +8 -46
  397. package/dist/lib/plugins/openapi/graphql/gql.js +6 -13
  398. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  399. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +141 -25
  400. package/dist/lib/plugins/openapi/graphql/graphql.js +238 -662
  401. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  402. package/dist/lib/plugins/openapi/index.d.ts +11 -8
  403. package/dist/lib/plugins/openapi/index.js +74 -104
  404. package/dist/lib/plugins/openapi/index.js.map +1 -1
  405. package/dist/lib/plugins/openapi/interfaces.d.ts +57 -3
  406. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  407. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +8 -0
  408. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  409. package/dist/lib/plugins/openapi/playground/Headers.d.ts +4 -4
  410. package/dist/lib/plugins/openapi/playground/Headers.js +84 -5
  411. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  412. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  413. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
  414. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  415. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  416. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +8 -0
  417. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  418. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
  419. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
  420. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
  421. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  422. package/dist/lib/plugins/openapi/playground/PathParams.js +5 -7
  423. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  424. package/dist/lib/plugins/openapi/playground/Playground.d.ts +37 -2
  425. package/dist/lib/plugins/openapi/playground/Playground.js +133 -70
  426. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  427. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +2 -2
  428. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  429. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
  430. package/dist/lib/plugins/openapi/playground/QueryParams.js +24 -18
  431. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  432. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  433. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  434. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  435. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +7 -0
  436. package/dist/lib/plugins/openapi/playground/SubmitButton.js +22 -0
  437. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -0
  438. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  439. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  440. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  441. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +7 -0
  442. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +11 -0
  443. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -0
  444. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +8 -0
  445. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +101 -0
  446. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
  447. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +9 -0
  448. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +17 -0
  449. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
  450. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
  451. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
  452. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
  453. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
  454. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
  455. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
  456. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  457. package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
  458. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  459. package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
  460. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +194 -0
  461. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  462. package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
  463. package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
  464. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  465. package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
  466. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +159 -0
  467. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  468. package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
  469. package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
  470. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  471. package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
  472. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  473. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  474. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
  475. package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
  476. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  477. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  478. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  479. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  480. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  481. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  482. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  483. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  484. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  485. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  486. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  487. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
  488. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  489. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +11 -0
  490. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +45 -0
  491. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
  492. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -2
  493. package/dist/lib/plugins/openapi/schema/SchemaView.js +38 -49
  494. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  495. package/dist/lib/plugins/openapi/schema/utils.d.ts +8 -1
  496. package/dist/lib/plugins/openapi/schema/utils.js +15 -4
  497. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  498. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  499. package/dist/lib/plugins/openapi/state.js +18 -0
  500. package/dist/lib/plugins/openapi/state.js.map +1 -0
  501. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +9 -0
  502. package/dist/lib/plugins/openapi/util/createSidebarCategory.js +23 -0
  503. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -0
  504. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -2
  505. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +80 -39
  506. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  507. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  508. package/dist/lib/plugins/openapi/util/getRoutes.js +117 -0
  509. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  510. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  511. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  512. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  513. package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
  514. package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
  515. package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
  516. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  517. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  518. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  519. package/dist/lib/plugins/redirect/index.d.ts +4 -7
  520. package/dist/lib/plugins/redirect/index.js +2 -2
  521. package/dist/lib/plugins/redirect/index.js.map +1 -1
  522. package/dist/lib/plugins/search-inkeep/index.d.ts +24 -5
  523. package/dist/lib/plugins/search-inkeep/index.js +41 -5
  524. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  525. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
  526. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  527. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  528. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  529. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  530. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  531. package/dist/lib/plugins/search-pagefind/ResultList.js +32 -0
  532. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  533. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  534. package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
  535. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  536. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  537. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  538. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  539. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  540. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  541. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  542. package/dist/lib/shiki.d.ts +35 -0
  543. package/dist/lib/shiki.js +103 -0
  544. package/dist/lib/shiki.js.map +1 -0
  545. package/dist/lib/ui/Accordion.d.ts +7 -0
  546. package/dist/lib/ui/Accordion.js +14 -0
  547. package/dist/lib/ui/Accordion.js.map +1 -0
  548. package/dist/lib/ui/ActionButton.d.ts +4 -0
  549. package/dist/lib/ui/ActionButton.js +10 -0
  550. package/dist/lib/ui/ActionButton.js.map +1 -0
  551. package/dist/lib/ui/Alert.d.ts +8 -0
  552. package/dist/lib/ui/Alert.js +23 -0
  553. package/dist/lib/ui/Alert.js.map +1 -0
  554. package/dist/lib/ui/AlertDialog.d.ts +20 -0
  555. package/dist/lib/ui/AlertDialog.js +27 -0
  556. package/dist/lib/ui/AlertDialog.js.map +1 -0
  557. package/dist/lib/ui/AspectRatio.d.ts +3 -0
  558. package/dist/lib/ui/AspectRatio.js +4 -0
  559. package/dist/lib/ui/AspectRatio.js.map +1 -0
  560. package/dist/lib/ui/Badge.d.ts +9 -0
  561. package/dist/lib/ui/Badge.js +22 -0
  562. package/dist/lib/ui/Badge.js.map +1 -0
  563. package/dist/lib/ui/Breadcrumb.d.ts +19 -0
  564. package/dist/lib/ui/Breadcrumb.js +24 -0
  565. package/dist/lib/ui/Breadcrumb.js.map +1 -0
  566. package/dist/lib/ui/Button.d.ts +4 -5
  567. package/dist/lib/ui/Button.js +9 -6
  568. package/dist/lib/ui/Button.js.map +1 -1
  569. package/dist/lib/ui/Callout.d.ts +38 -36
  570. package/dist/lib/ui/Callout.js +3 -2
  571. package/dist/lib/ui/Callout.js.map +1 -1
  572. package/dist/lib/ui/Card.js +1 -1
  573. package/dist/lib/ui/Card.js.map +1 -1
  574. package/dist/lib/ui/Carousel.d.ts +18 -0
  575. package/dist/lib/ui/Carousel.js +99 -0
  576. package/dist/lib/ui/Carousel.js.map +1 -0
  577. package/dist/lib/ui/Checkbox.d.ts +4 -0
  578. package/dist/lib/ui/Checkbox.js +9 -0
  579. package/dist/lib/ui/Checkbox.js.map +1 -0
  580. package/dist/lib/ui/CodeBlock.d.ts +16 -0
  581. package/dist/lib/ui/CodeBlock.js +18 -0
  582. package/dist/lib/ui/CodeBlock.js.map +1 -0
  583. package/dist/lib/ui/Collapsible.d.ts +5 -0
  584. package/dist/lib/ui/Collapsible.js +6 -0
  585. package/dist/lib/ui/Collapsible.js.map +1 -0
  586. package/dist/lib/ui/Command.d.ts +94 -0
  587. package/dist/lib/ui/Command.js +35 -0
  588. package/dist/lib/ui/Command.js.map +1 -0
  589. package/dist/lib/ui/Dialog.js +23 -0
  590. package/dist/lib/ui/Dialog.js.map +1 -0
  591. package/dist/lib/ui/Drawer.d.ts +8 -10
  592. package/dist/lib/ui/Drawer.js.map +1 -1
  593. package/dist/lib/ui/DropdownMenu.js +4 -4
  594. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  595. package/dist/lib/ui/Form.d.ts +23 -0
  596. package/dist/lib/ui/Form.js +63 -0
  597. package/dist/lib/ui/Form.js.map +1 -0
  598. package/dist/lib/ui/HoverCard.d.ts +6 -0
  599. package/dist/lib/ui/HoverCard.js +10 -0
  600. package/dist/lib/ui/HoverCard.js.map +1 -0
  601. package/dist/lib/ui/Input.d.ts +1 -2
  602. package/dist/lib/ui/Input.js +1 -1
  603. package/dist/lib/ui/Input.js.map +1 -1
  604. package/dist/lib/ui/Label.d.ts +5 -0
  605. package/dist/lib/ui/Label.js +10 -0
  606. package/dist/lib/ui/Label.js.map +1 -0
  607. package/dist/lib/ui/Pagination.d.ts +28 -0
  608. package/dist/lib/ui/Pagination.js +24 -0
  609. package/dist/lib/ui/Pagination.js.map +1 -0
  610. package/dist/lib/ui/Popover.d.ts +6 -0
  611. package/dist/lib/ui/Popover.js +10 -0
  612. package/dist/lib/ui/Popover.js.map +1 -0
  613. package/dist/lib/ui/Progress.d.ts +4 -0
  614. package/dist/lib/ui/Progress.js +8 -0
  615. package/dist/lib/ui/Progress.js.map +1 -0
  616. package/dist/lib/ui/RadioGroup.d.ts +5 -0
  617. package/dist/lib/ui/RadioGroup.js +15 -0
  618. package/dist/lib/ui/RadioGroup.js.map +1 -0
  619. package/dist/lib/ui/ScrollArea.d.ts +5 -0
  620. package/dist/lib/ui/ScrollArea.js +12 -0
  621. package/dist/lib/ui/ScrollArea.js.map +1 -0
  622. package/dist/lib/ui/Select.js +27 -0
  623. package/dist/lib/ui/Select.js.map +1 -0
  624. package/dist/lib/ui/Skeleton.d.ts +2 -0
  625. package/dist/lib/ui/Skeleton.js +7 -0
  626. package/dist/lib/ui/Skeleton.js.map +1 -0
  627. package/dist/lib/ui/Slider.d.ts +4 -0
  628. package/dist/lib/ui/Slider.js +8 -0
  629. package/dist/lib/ui/Slider.js.map +1 -0
  630. package/dist/lib/ui/Stepper.d.ts +3 -0
  631. package/dist/lib/ui/Stepper.js +7 -0
  632. package/dist/lib/ui/Stepper.js.map +1 -0
  633. package/dist/lib/ui/Switch.d.ts +4 -0
  634. package/dist/lib/ui/Switch.js +8 -0
  635. package/dist/lib/ui/Switch.js.map +1 -0
  636. package/dist/lib/ui/SyntaxHighlight.d.ts +10 -0
  637. package/dist/lib/ui/SyntaxHighlight.js +14 -0
  638. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  639. package/dist/lib/ui/Tabs.js +2 -2
  640. package/dist/lib/ui/Tabs.js.map +1 -1
  641. package/dist/lib/ui/Textarea.d.ts +4 -0
  642. package/dist/lib/ui/Textarea.js +9 -0
  643. package/dist/lib/ui/Textarea.js.map +1 -0
  644. package/dist/lib/ui/Toggle.d.ts +12 -0
  645. package/dist/lib/ui/Toggle.js +26 -0
  646. package/dist/lib/ui/Toggle.js.map +1 -0
  647. package/dist/lib/ui/ToggleGroup.d.ts +12 -0
  648. package/dist/lib/ui/ToggleGroup.js +21 -0
  649. package/dist/lib/ui/ToggleGroup.js.map +1 -0
  650. package/dist/lib/ui/Tooltip.d.ts +7 -0
  651. package/dist/lib/ui/Tooltip.js +11 -0
  652. package/dist/lib/ui/Tooltip.js.map +1 -0
  653. package/dist/lib/ui/util.d.ts +2 -0
  654. package/dist/lib/ui/util.js +3 -0
  655. package/dist/lib/ui/util.js.map +1 -0
  656. package/dist/lib/util/MdxComponents.d.ts +30 -21
  657. package/dist/lib/util/MdxComponents.js +17 -15
  658. package/dist/lib/util/MdxComponents.js.map +1 -1
  659. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  660. package/dist/lib/util/detectOS.d.ts +1 -0
  661. package/dist/lib/util/detectOS.js +11 -0
  662. package/dist/lib/util/detectOS.js.map +1 -0
  663. package/dist/lib/util/ensureArray.d.ts +1 -0
  664. package/dist/lib/util/ensureArray.js +2 -0
  665. package/dist/lib/util/ensureArray.js.map +1 -0
  666. package/dist/lib/util/invariant.d.ts +9 -0
  667. package/dist/lib/util/invariant.js +7 -3
  668. package/dist/lib/util/invariant.js.map +1 -1
  669. package/dist/lib/util/joinPath.d.ts +3 -0
  670. package/dist/lib/util/joinPath.js +3 -0
  671. package/dist/lib/util/joinPath.js.map +1 -1
  672. package/dist/lib/util/joinUrl.d.ts +1 -0
  673. package/dist/lib/util/joinUrl.js +40 -0
  674. package/dist/lib/util/joinUrl.js.map +1 -0
  675. package/dist/lib/util/joinUrl.test.d.ts +1 -0
  676. package/dist/lib/util/joinUrl.test.js +43 -0
  677. package/dist/lib/util/joinUrl.test.js.map +1 -0
  678. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  679. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  680. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  681. package/dist/lib/util/traverse.d.ts +3 -0
  682. package/dist/lib/util/traverse.js +23 -0
  683. package/dist/lib/util/traverse.js.map +1 -0
  684. package/dist/lib/util/types.d.ts +7 -0
  685. package/dist/lib/util/types.js +2 -0
  686. package/dist/lib/util/types.js.map +1 -0
  687. package/dist/lib/util/url.d.ts +4 -0
  688. package/dist/lib/util/url.js +13 -0
  689. package/dist/lib/util/url.js.map +1 -0
  690. package/dist/lib/util/url.test.d.ts +1 -0
  691. package/dist/lib/util/url.test.js +26 -0
  692. package/dist/lib/util/url.test.js.map +1 -0
  693. package/dist/lib/util/useExposedProps.d.ts +9 -0
  694. package/dist/lib/util/useExposedProps.js +9 -0
  695. package/dist/lib/util/useExposedProps.js.map +1 -0
  696. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  697. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  698. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  699. package/dist/lib/util/useLatest.d.ts +1 -0
  700. package/dist/lib/util/useLatest.js +15 -0
  701. package/dist/lib/util/useLatest.js.map +1 -0
  702. package/dist/lib/util/useOnScreen.d.ts +5 -0
  703. package/dist/lib/util/useOnScreen.js +19 -0
  704. package/dist/lib/util/useOnScreen.js.map +1 -0
  705. package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
  706. package/dist/lib/util/useScrollToAnchor.js +42 -37
  707. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  708. package/dist/lib/util/useScrollToTop.js +7 -5
  709. package/dist/lib/util/useScrollToTop.js.map +1 -1
  710. package/dist/vite/api/SchemaManager.d.ts +36 -0
  711. package/dist/vite/api/SchemaManager.js +122 -0
  712. package/dist/vite/api/SchemaManager.js.map +1 -0
  713. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  714. package/dist/vite/api/SchemaManager.test.js +106 -0
  715. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  716. package/dist/vite/api/schema-codegen.d.ts +12 -0
  717. package/dist/vite/api/schema-codegen.js +85 -0
  718. package/dist/vite/api/schema-codegen.js.map +1 -0
  719. package/dist/vite/api/schema-codegen.test.d.ts +1 -0
  720. package/dist/vite/api/schema-codegen.test.js +313 -0
  721. package/dist/vite/api/schema-codegen.test.js.map +1 -0
  722. package/dist/vite/build.js +83 -12
  723. package/dist/vite/build.js.map +1 -1
  724. package/dist/vite/config.d.ts +2 -15
  725. package/dist/vite/config.js +121 -144
  726. package/dist/vite/config.js.map +1 -1
  727. package/dist/vite/config.test.js +12 -6
  728. package/dist/vite/config.test.js.map +1 -1
  729. package/dist/vite/create-pagefind-index.d.ts +4 -0
  730. package/dist/vite/create-pagefind-index.js +12 -0
  731. package/dist/vite/create-pagefind-index.js.map +1 -0
  732. package/dist/vite/css/collect.d.ts +2 -0
  733. package/dist/vite/css/collect.js +27 -0
  734. package/dist/vite/css/collect.js.map +1 -0
  735. package/dist/vite/css/plugin.d.ts +5 -0
  736. package/dist/vite/css/plugin.js +79 -0
  737. package/dist/vite/css/plugin.js.map +1 -0
  738. package/dist/vite/debug.d.ts +1 -0
  739. package/dist/vite/debug.js +10 -0
  740. package/dist/vite/debug.js.map +1 -0
  741. package/dist/vite/dev-server.d.ts +11 -4
  742. package/dist/vite/dev-server.js +83 -22
  743. package/dist/vite/dev-server.js.map +1 -1
  744. package/dist/vite/error-handler.d.ts +1 -1
  745. package/dist/vite/error-handler.js +1 -1
  746. package/dist/vite/error-handler.js.map +1 -1
  747. package/dist/vite/html.d.ts +6 -2
  748. package/dist/vite/html.js +11 -10
  749. package/dist/vite/html.js.map +1 -1
  750. package/dist/vite/output.d.ts +113 -0
  751. package/dist/vite/output.js +60 -0
  752. package/dist/vite/output.js.map +1 -0
  753. package/dist/vite/plugin-api-keys.d.ts +2 -2
  754. package/dist/vite/plugin-api-keys.js +10 -5
  755. package/dist/vite/plugin-api-keys.js.map +1 -1
  756. package/dist/vite/plugin-api.d.ts +2 -2
  757. package/dist/vite/plugin-api.js +145 -32
  758. package/dist/vite/plugin-api.js.map +1 -1
  759. package/dist/vite/plugin-auth.d.ts +2 -2
  760. package/dist/vite/plugin-auth.js +7 -4
  761. package/dist/vite/plugin-auth.js.map +1 -1
  762. package/dist/vite/plugin-component.d.ts +2 -2
  763. package/dist/vite/plugin-component.js +22 -13
  764. package/dist/vite/plugin-component.js.map +1 -1
  765. package/dist/vite/plugin-config-reload.d.ts +4 -4
  766. package/dist/vite/plugin-config-reload.js +15 -8
  767. package/dist/vite/plugin-config-reload.js.map +1 -1
  768. package/dist/vite/plugin-config.d.ts +2 -3
  769. package/dist/vite/plugin-config.js +26 -3
  770. package/dist/vite/plugin-config.js.map +1 -1
  771. package/dist/vite/plugin-configure-tailwind.d.ts +3 -0
  772. package/dist/vite/plugin-configure-tailwind.js +37 -0
  773. package/dist/vite/plugin-configure-tailwind.js.map +1 -0
  774. package/dist/vite/plugin-custom-pages.d.ts +4 -0
  775. package/dist/vite/plugin-custom-pages.js +30 -0
  776. package/dist/vite/plugin-custom-pages.js.map +1 -0
  777. package/dist/vite/plugin-docs.d.ts +3 -3
  778. package/dist/vite/plugin-docs.js +57 -29
  779. package/dist/vite/plugin-docs.js.map +1 -1
  780. package/dist/vite/plugin-docs.test.js +15 -23
  781. package/dist/vite/plugin-docs.test.js.map +1 -1
  782. package/dist/vite/plugin-frontmatter.d.ts +2 -1
  783. package/dist/vite/plugin-frontmatter.js +28 -24
  784. package/dist/vite/plugin-frontmatter.js.map +1 -1
  785. package/dist/vite/plugin-mdx.d.ts +2 -8
  786. package/dist/vite/plugin-mdx.js +96 -13
  787. package/dist/vite/plugin-mdx.js.map +1 -1
  788. package/dist/vite/plugin-redirect.d.ts +2 -2
  789. package/dist/vite/plugin-redirect.js +3 -3
  790. package/dist/vite/plugin-redirect.js.map +1 -1
  791. package/dist/vite/plugin-search.d.ts +3 -0
  792. package/dist/vite/plugin-search.js +30 -0
  793. package/dist/vite/plugin-search.js.map +1 -0
  794. package/dist/vite/plugin-shiki-register.d.ts +3 -0
  795. package/dist/vite/plugin-shiki-register.js +38 -0
  796. package/dist/vite/plugin-shiki-register.js.map +1 -0
  797. package/dist/vite/plugin-sidebar.d.ts +5 -3
  798. package/dist/vite/plugin-sidebar.js +26 -10
  799. package/dist/vite/plugin-sidebar.js.map +1 -1
  800. package/dist/vite/plugin-theme-css.d.ts +6 -0
  801. package/dist/vite/plugin-theme-css.js +118 -0
  802. package/dist/vite/plugin-theme-css.js.map +1 -0
  803. package/dist/vite/plugin.d.ts +2 -3
  804. package/dist/vite/plugin.js +18 -6
  805. package/dist/vite/plugin.js.map +1 -1
  806. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  807. package/dist/vite/prerender/FileWritingResponse.js +51 -0
  808. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  809. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  810. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  811. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  812. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  813. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  814. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  815. package/dist/vite/prerender/prerender.d.ts +15 -0
  816. package/dist/vite/prerender/prerender.js +109 -0
  817. package/dist/vite/prerender/prerender.js.map +1 -0
  818. package/dist/vite/prerender/worker.d.ts +13 -0
  819. package/dist/vite/prerender/worker.js +59 -0
  820. package/dist/vite/prerender/worker.js.map +1 -0
  821. package/dist/vite/remarkStaticGeneration.d.ts +3 -0
  822. package/dist/vite/remarkStaticGeneration.js +125 -0
  823. package/dist/vite/remarkStaticGeneration.js.map +1 -0
  824. package/dist/vite/reporter.d.ts +3 -0
  825. package/dist/vite/reporter.js +33 -0
  826. package/dist/vite/reporter.js.map +1 -0
  827. package/dist/vite/sitemap.d.ts +1 -1
  828. package/dist/vite/sitemap.js +2 -1
  829. package/dist/vite/sitemap.js.map +1 -1
  830. package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
  831. package/dist/zuplo/enrich-with-zuplo.js +185 -0
  832. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  833. package/dist/zuplo/policy-types.d.ts +33 -0
  834. package/dist/zuplo/policy-types.js +8 -0
  835. package/dist/zuplo/policy-types.js.map +1 -0
  836. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  837. package/dist/zuplo/with-zuplo-processors.js +26 -0
  838. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  839. package/dist/zuplo/with-zuplo.d.ts +6 -0
  840. package/dist/zuplo/with-zuplo.js +10 -0
  841. package/dist/zuplo/with-zuplo.js.map +1 -0
  842. package/lib/Button-u7M2QYds.js +51 -0
  843. package/lib/Button-u7M2QYds.js.map +1 -0
  844. package/lib/Callout-CtCQJ6Cc.js +230 -0
  845. package/lib/Callout-CtCQJ6Cc.js.map +1 -0
  846. package/lib/Card-DkH-AU1V.js +61 -0
  847. package/lib/Card-DkH-AU1V.js.map +1 -0
  848. package/lib/CategoryHeading-BA7lKNWz.js +10 -0
  849. package/lib/CategoryHeading-BA7lKNWz.js.map +1 -0
  850. package/lib/ClientOnly-E7hGysn1.js +11 -0
  851. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  852. package/lib/Dialog-irKZWXGg.js +99 -0
  853. package/lib/Dialog-irKZWXGg.js.map +1 -0
  854. package/lib/Drawer-DZ214i5V.js +1133 -0
  855. package/lib/Drawer-DZ214i5V.js.map +1 -0
  856. package/lib/Markdown-BNG8bTDA.js +7691 -0
  857. package/lib/Markdown-BNG8bTDA.js.map +1 -0
  858. package/lib/MdxPage-C-P_N-H3.js +84 -0
  859. package/lib/MdxPage-C-P_N-H3.js.map +1 -0
  860. package/lib/OasProvider-DjFXGgWa.js +33 -0
  861. package/lib/OasProvider-DjFXGgWa.js.map +1 -0
  862. package/lib/OperationList-CchpZz4h.js +5141 -0
  863. package/lib/OperationList-CchpZz4h.js.map +1 -0
  864. package/lib/Pagination-BbcrfwgM.js +36 -0
  865. package/lib/Pagination-BbcrfwgM.js.map +1 -0
  866. package/lib/RouteGuard-CIyGFkFD.js +55 -0
  867. package/lib/RouteGuard-CIyGFkFD.js.map +1 -0
  868. package/lib/SchemaList-CrQd3KiR.js +160 -0
  869. package/lib/SchemaList-CrQd3KiR.js.map +1 -0
  870. package/lib/SchemaView-CQ_hMc8m.js +375 -0
  871. package/lib/SchemaView-CQ_hMc8m.js.map +1 -0
  872. package/lib/SignUp-DSn8NjRS.js +63 -0
  873. package/lib/SignUp-DSn8NjRS.js.map +1 -0
  874. package/lib/Slot-Dw-g06lX.js +160 -0
  875. package/lib/Slot-Dw-g06lX.js.map +1 -0
  876. package/lib/Spinner-mNLZ6awP.js +7 -0
  877. package/lib/Spinner-mNLZ6awP.js.map +1 -0
  878. package/lib/SyntaxHighlight-DTgNHbGp.js +9107 -0
  879. package/lib/SyntaxHighlight-DTgNHbGp.js.map +1 -0
  880. package/lib/Toc-Ccycwd-T.js +92 -0
  881. package/lib/Toc-Ccycwd-T.js.map +1 -0
  882. package/lib/chunk-BAXFHI7N-C9WnHsLV.js +1839 -0
  883. package/lib/chunk-BAXFHI7N-C9WnHsLV.js.map +1 -0
  884. package/lib/circular-DdByufCW.js +14929 -0
  885. package/lib/circular-DdByufCW.js.map +1 -0
  886. package/lib/cn-BOFVZgHd.js +2744 -0
  887. package/lib/cn-BOFVZgHd.js.map +1 -0
  888. package/lib/createServer-BL0QaN9q.js +12494 -0
  889. package/lib/createServer-BL0QaN9q.js.map +1 -0
  890. package/lib/hook-BpiAQVtd.js +1446 -0
  891. package/lib/hook-BpiAQVtd.js.map +1 -0
  892. package/lib/index--oeBayMa.js +86 -0
  893. package/lib/index--oeBayMa.js.map +1 -0
  894. package/lib/index-BjB1BHZu.js +3268 -0
  895. package/lib/index-BjB1BHZu.js.map +1 -0
  896. package/lib/index-BvvmIczU.js +2094 -0
  897. package/lib/index-BvvmIczU.js.map +1 -0
  898. package/lib/index-C1S4w-gl.js +36 -0
  899. package/lib/index-C1S4w-gl.js.map +1 -0
  900. package/lib/index-CrcNWbel.js +316 -0
  901. package/lib/index-CrcNWbel.js.map +1 -0
  902. package/lib/index-rsSMIHTN.js +4977 -0
  903. package/lib/index-rsSMIHTN.js.map +1 -0
  904. package/lib/index-zddirpDj.js +4822 -0
  905. package/lib/index-zddirpDj.js.map +1 -0
  906. package/lib/index.esm-BFcSKCe-.js +683 -0
  907. package/lib/index.esm-BFcSKCe-.js.map +1 -0
  908. package/lib/index.esm-DSfX_eMP.js +1216 -0
  909. package/lib/index.esm-DSfX_eMP.js.map +1 -0
  910. package/lib/invariant-DAFpPywt.js +48 -0
  911. package/lib/invariant-DAFpPywt.js.map +1 -0
  912. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  913. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  914. package/lib/mutation-CJrIFMgY.js +196 -0
  915. package/lib/mutation-CJrIFMgY.js.map +1 -0
  916. package/lib/objectEntries-yMIkr2mI.js +5 -0
  917. package/lib/objectEntries-yMIkr2mI.js.map +1 -0
  918. package/lib/processors/removeExtensions.js +11 -0
  919. package/lib/processors/removeExtensions.js.map +1 -0
  920. package/lib/processors/removeParameters.js +47 -0
  921. package/lib/processors/removeParameters.js.map +1 -0
  922. package/lib/processors/removePaths.js +28 -0
  923. package/lib/processors/removePaths.js.map +1 -0
  924. package/lib/processors/traverse.js +17 -0
  925. package/lib/processors/traverse.js.map +1 -0
  926. package/lib/ui/Accordion.js +47 -0
  927. package/lib/ui/Accordion.js.map +1 -0
  928. package/lib/ui/ActionButton.js +25 -0
  929. package/lib/ui/ActionButton.js.map +1 -0
  930. package/lib/ui/Alert.js +51 -0
  931. package/lib/ui/Alert.js.map +1 -0
  932. package/lib/ui/AlertDialog.js +114 -0
  933. package/lib/ui/AlertDialog.js.map +1 -0
  934. package/lib/ui/AspectRatio.js +6 -0
  935. package/lib/ui/AspectRatio.js.map +1 -0
  936. package/lib/ui/Badge.js +28 -0
  937. package/lib/ui/Badge.js.map +1 -0
  938. package/lib/ui/Breadcrumb.js +94 -0
  939. package/lib/ui/Breadcrumb.js.map +1 -0
  940. package/lib/ui/Button.js +52 -0
  941. package/lib/ui/Button.js.map +1 -0
  942. package/lib/ui/Callout.js +96 -0
  943. package/lib/ui/Callout.js.map +1 -0
  944. package/lib/ui/Card.js +62 -0
  945. package/lib/ui/Card.js.map +1 -0
  946. package/lib/ui/Carousel.js +1416 -0
  947. package/lib/ui/Carousel.js.map +1 -0
  948. package/lib/ui/Checkbox.js +29 -0
  949. package/lib/ui/Checkbox.js.map +1 -0
  950. package/lib/ui/CodeBlock.js +83 -0
  951. package/lib/ui/CodeBlock.js.map +1 -0
  952. package/lib/ui/Collapsible.js +8 -0
  953. package/lib/ui/Collapsible.js.map +1 -0
  954. package/lib/ui/Command.js +156 -0
  955. package/lib/ui/Command.js.map +1 -0
  956. package/lib/ui/Dialog.js +101 -0
  957. package/lib/ui/Dialog.js.map +1 -0
  958. package/lib/ui/Drawer.js +17 -0
  959. package/lib/ui/Drawer.js.map +1 -0
  960. package/lib/ui/DropdownMenu.js +145 -0
  961. package/lib/ui/DropdownMenu.js.map +1 -0
  962. package/lib/ui/Form.js +95 -0
  963. package/lib/ui/Form.js.map +1 -0
  964. package/lib/ui/HoverCard.js +24 -0
  965. package/lib/ui/HoverCard.js.map +1 -0
  966. package/lib/ui/Input.js +22 -0
  967. package/lib/ui/Input.js.map +1 -0
  968. package/lib/ui/Label.js +20 -0
  969. package/lib/ui/Label.js.map +1 -0
  970. package/lib/ui/Pagination.js +106 -0
  971. package/lib/ui/Pagination.js.map +1 -0
  972. package/lib/ui/Popover.js +24 -0
  973. package/lib/ui/Popover.js.map +1 -0
  974. package/lib/ui/Progress.js +27 -0
  975. package/lib/ui/Progress.js.map +1 -0
  976. package/lib/ui/RadioGroup.js +32 -0
  977. package/lib/ui/RadioGroup.js.map +1 -0
  978. package/lib/ui/ScrollArea.js +39 -0
  979. package/lib/ui/ScrollArea.js.map +1 -0
  980. package/lib/ui/Select.js +122 -0
  981. package/lib/ui/Select.js.map +1 -0
  982. package/lib/ui/Skeleton.js +18 -0
  983. package/lib/ui/Skeleton.js.map +1 -0
  984. package/lib/ui/Slider.js +24 -0
  985. package/lib/ui/Slider.js.map +1 -0
  986. package/lib/ui/Stepper.js +6 -0
  987. package/lib/ui/Stepper.js.map +1 -0
  988. package/lib/ui/Switch.js +28 -0
  989. package/lib/ui/Switch.js.map +1 -0
  990. package/lib/ui/SyntaxHighlight.js +10 -0
  991. package/lib/ui/SyntaxHighlight.js.map +1 -0
  992. package/lib/ui/Tabs.js +47 -0
  993. package/lib/ui/Tabs.js.map +1 -0
  994. package/lib/ui/Textarea.js +21 -0
  995. package/lib/ui/Textarea.js.map +1 -0
  996. package/lib/ui/Toggle.js +38 -0
  997. package/lib/ui/Toggle.js.map +1 -0
  998. package/lib/ui/ToggleGroup.js +42 -0
  999. package/lib/ui/ToggleGroup.js.map +1 -0
  1000. package/lib/ui/Tooltip.js +24 -0
  1001. package/lib/ui/Tooltip.js.map +1 -0
  1002. package/lib/ui/util.js +6 -0
  1003. package/lib/ui/util.js.map +1 -0
  1004. package/lib/useExposedProps-DG8J6ewJ.js +9 -0
  1005. package/lib/useExposedProps-DG8J6ewJ.js.map +1 -0
  1006. package/lib/useLatest-hmRS46UF.js +11 -0
  1007. package/lib/useLatest-hmRS46UF.js.map +1 -0
  1008. package/lib/useMutation-B2LNwShM.js +97 -0
  1009. package/lib/useMutation-B2LNwShM.js.map +1 -0
  1010. package/lib/zudoku.auth-auth0.js +32 -30
  1011. package/lib/zudoku.auth-auth0.js.map +1 -1
  1012. package/lib/zudoku.auth-clerk.js +115 -58
  1013. package/lib/zudoku.auth-clerk.js.map +1 -1
  1014. package/lib/zudoku.auth-openid.js +628 -628
  1015. package/lib/zudoku.auth-openid.js.map +1 -1
  1016. package/lib/zudoku.components.js +34 -3364
  1017. package/lib/zudoku.components.js.map +1 -1
  1018. package/lib/zudoku.hooks.js +19 -0
  1019. package/lib/zudoku.hooks.js.map +1 -0
  1020. package/lib/zudoku.icons.js +10 -0
  1021. package/lib/zudoku.icons.js.map +1 -1
  1022. package/lib/zudoku.plugin-api-catalog.js +117 -0
  1023. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  1024. package/lib/zudoku.plugin-api-keys.js +5019 -212
  1025. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  1026. package/lib/zudoku.plugin-custom-pages.js +22 -0
  1027. package/lib/zudoku.plugin-custom-pages.js.map +1 -0
  1028. package/lib/zudoku.plugin-markdown.js +70 -27
  1029. package/lib/zudoku.plugin-markdown.js.map +1 -1
  1030. package/lib/zudoku.plugin-openapi.js +8 -12
  1031. package/lib/zudoku.plugin-openapi.js.map +1 -1
  1032. package/lib/zudoku.plugin-redirect.js +2 -2
  1033. package/lib/zudoku.plugin-redirect.js.map +1 -1
  1034. package/lib/zudoku.plugin-search-inkeep.js +52 -28
  1035. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  1036. package/lib/zudoku.plugin-search-pagefind.js +230 -0
  1037. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  1038. package/lib/zudoku.plugins.js +15 -0
  1039. package/lib/zudoku.plugins.js.map +1 -0
  1040. package/package.json +186 -105
  1041. package/src/app/ZuploBuildConfig.ts +33 -0
  1042. package/src/app/defaultTheme.css +54 -0
  1043. package/src/app/demo-cdn.html +31 -31
  1044. package/src/app/demo.html +1 -1
  1045. package/src/app/demo.tsx +1 -5
  1046. package/src/app/entry.client.tsx +71 -3
  1047. package/src/app/entry.server.tsx +81 -60
  1048. package/src/app/env.ts +35 -0
  1049. package/src/app/font.geist.css +73 -0
  1050. package/src/app/main.css +202 -131
  1051. package/src/app/main.tsx +81 -71
  1052. package/src/app/sentry.ts +24 -0
  1053. package/src/app/standalone.tsx +2 -6
  1054. package/src/lib/MissingIcon.tsx +22 -0
  1055. package/src/lib/authentication/AuthenticationPlugin.tsx +22 -5
  1056. package/src/lib/authentication/authentication.ts +5 -6
  1057. package/src/lib/authentication/components/CallbackHandler.tsx +30 -51
  1058. package/src/lib/authentication/components/SignIn.tsx +35 -2
  1059. package/src/lib/authentication/components/SignOut.tsx +3 -2
  1060. package/src/lib/authentication/components/SignUp.tsx +35 -1
  1061. package/src/lib/authentication/hook.ts +13 -4
  1062. package/src/lib/authentication/providers/auth0.tsx +28 -18
  1063. package/src/lib/authentication/providers/clerk.tsx +136 -53
  1064. package/src/lib/authentication/providers/openid.tsx +87 -84
  1065. package/src/lib/authentication/providers/supabase.tsx +157 -0
  1066. package/src/lib/authentication/state.ts +56 -25
  1067. package/src/lib/authentication/use-broadcast/LICENSE.md +9 -0
  1068. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  1069. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  1070. package/src/lib/components/AnchorLink.tsx +13 -8
  1071. package/src/lib/components/Autocomplete.tsx +113 -0
  1072. package/src/lib/components/Banner.tsx +2 -1
  1073. package/src/lib/components/Bootstrap.tsx +43 -16
  1074. package/src/lib/components/BuildCheck.tsx +75 -0
  1075. package/src/lib/components/ClientOnly.tsx +6 -3
  1076. package/src/lib/components/DeveloperHint.tsx +6 -1
  1077. package/src/lib/components/ErrorPage.tsx +1 -1
  1078. package/src/lib/components/Footer.tsx +136 -0
  1079. package/src/lib/components/Header.tsx +108 -55
  1080. package/src/lib/components/Heading.tsx +14 -14
  1081. package/src/lib/components/InlineCode.tsx +13 -16
  1082. package/src/lib/components/Layout.tsx +36 -59
  1083. package/src/lib/components/Main.tsx +51 -0
  1084. package/src/lib/components/Markdown.tsx +33 -29
  1085. package/src/lib/components/MobileTopNavigation.tsx +43 -28
  1086. package/src/lib/components/NotFoundPage.tsx +2 -2
  1087. package/src/lib/components/Pagination.tsx +44 -0
  1088. package/src/lib/components/PathRenderer.tsx +61 -0
  1089. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  1090. package/src/lib/components/ReactMarkdown.tsx +264 -0
  1091. package/src/lib/components/Search.tsx +19 -8
  1092. package/src/lib/components/Slot.test.tsx +456 -0
  1093. package/src/lib/components/Slot.tsx +64 -0
  1094. package/src/lib/components/StatusPage.tsx +91 -0
  1095. package/src/lib/components/ThemeSwitch.tsx +46 -0
  1096. package/src/lib/components/TopNavigation.tsx +95 -25
  1097. package/src/lib/components/Zudoku.tsx +119 -0
  1098. package/src/lib/components/cache.ts +23 -0
  1099. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  1100. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  1101. package/src/lib/components/context/SlotProvider.tsx +149 -0
  1102. package/src/lib/components/context/ViewportAnchorContext.tsx +34 -36
  1103. package/src/lib/components/context/ZudokuContext.ts +53 -29
  1104. package/src/lib/components/context/ZudokuProvider.tsx +4 -3
  1105. package/src/lib/components/index.ts +33 -6
  1106. package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
  1107. package/src/lib/components/navigation/Sidebar.tsx +39 -30
  1108. package/src/lib/components/navigation/SidebarBadge.tsx +17 -12
  1109. package/src/lib/components/navigation/SidebarCategory.tsx +67 -54
  1110. package/src/lib/components/navigation/SidebarItem.tsx +38 -51
  1111. package/src/lib/components/navigation/SidebarWrapper.tsx +42 -22
  1112. package/src/lib/components/navigation/Toc.tsx +126 -0
  1113. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  1114. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  1115. package/src/lib/components/navigation/utils.ts +24 -17
  1116. package/src/lib/core/RouteGuard.tsx +96 -0
  1117. package/src/lib/core/ZudokuContext.ts +198 -0
  1118. package/src/lib/core/plugins.ts +54 -22
  1119. package/src/lib/errors/ErrorAlert.tsx +36 -15
  1120. package/src/lib/errors/RouterError.tsx +1 -1
  1121. package/src/lib/hooks/index.ts +5 -0
  1122. package/src/lib/hooks/useEvent.test.tsx +149 -0
  1123. package/src/lib/hooks/useEvent.ts +41 -0
  1124. package/src/lib/icons.ts +1 -0
  1125. package/src/lib/oas/graphql/circular.ts +58 -0
  1126. package/src/lib/oas/graphql/index.ts +298 -104
  1127. package/src/lib/oas/parser/dereference/index.ts +10 -4
  1128. package/src/lib/oas/parser/index.ts +14 -30
  1129. package/src/lib/oas/parser/upgrade/index.ts +103 -38
  1130. package/src/lib/plugins/api-catalog/Catalog.tsx +73 -0
  1131. package/src/lib/plugins/api-catalog/index.tsx +115 -0
  1132. package/src/lib/plugins/api-keys/CreateApiKey.tsx +63 -47
  1133. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  1134. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +293 -113
  1135. package/src/lib/plugins/api-keys/index.tsx +107 -59
  1136. package/src/lib/plugins/custom-pages/CustomPage.tsx +18 -0
  1137. package/src/lib/plugins/custom-pages/index.tsx +24 -0
  1138. package/src/lib/plugins/markdown/MdxPage.tsx +53 -49
  1139. package/src/lib/plugins/markdown/index.tsx +53 -13
  1140. package/src/lib/plugins/markdown/resolver.ts +59 -0
  1141. package/src/lib/plugins/openapi/CollapsibleCode.tsx +86 -0
  1142. package/src/lib/plugins/openapi/ColorizedParam.tsx +49 -23
  1143. package/src/lib/plugins/openapi/Endpoint.tsx +19 -22
  1144. package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
  1145. package/src/lib/plugins/openapi/OperationList.tsx +240 -70
  1146. package/src/lib/plugins/openapi/OperationListItem.tsx +122 -93
  1147. package/src/lib/plugins/openapi/ParamInfos.tsx +90 -0
  1148. package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
  1149. package/src/lib/plugins/openapi/ParameterListItem.tsx +78 -31
  1150. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +21 -2
  1151. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +15 -33
  1152. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +36 -59
  1153. package/src/lib/plugins/openapi/SchemaList.tsx +163 -0
  1154. package/src/lib/plugins/openapi/Sidecar.tsx +181 -114
  1155. package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
  1156. package/src/lib/plugins/openapi/SidecarExamples.tsx +168 -0
  1157. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  1158. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +65 -0
  1159. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  1160. package/src/lib/plugins/openapi/client/createServer.ts +8 -2
  1161. package/src/lib/plugins/openapi/client/useCreateQuery.ts +45 -0
  1162. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  1163. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  1164. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  1165. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  1166. package/src/lib/plugins/openapi/context.tsx +2 -2
  1167. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
  1168. package/src/lib/plugins/openapi/graphql/gql.ts +38 -30
  1169. package/src/lib/plugins/openapi/graphql/graphql.ts +386 -682
  1170. package/src/lib/plugins/openapi/index.tsx +111 -138
  1171. package/src/lib/plugins/openapi/interfaces.ts +58 -3
  1172. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +52 -0
  1173. package/src/lib/plugins/openapi/playground/Headers.tsx +165 -36
  1174. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
  1175. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +41 -0
  1176. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
  1177. package/src/lib/plugins/openapi/playground/PathParams.tsx +39 -64
  1178. package/src/lib/plugins/openapi/playground/Playground.tsx +386 -245
  1179. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +7 -4
  1180. package/src/lib/plugins/openapi/playground/QueryParams.tsx +87 -89
  1181. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  1182. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +75 -0
  1183. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  1184. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +73 -0
  1185. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +230 -0
  1186. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +123 -0
  1187. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
  1188. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
  1189. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +222 -0
  1190. package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
  1191. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +182 -0
  1192. package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
  1193. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  1194. package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
  1195. package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
  1196. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  1197. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  1198. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  1199. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
  1200. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +160 -0
  1201. package/src/lib/plugins/openapi/schema/SchemaView.tsx +105 -138
  1202. package/src/lib/plugins/openapi/schema/utils.ts +32 -5
  1203. package/src/lib/plugins/openapi/state.ts +36 -0
  1204. package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +37 -0
  1205. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +95 -44
  1206. package/src/lib/plugins/openapi/util/getRoutes.tsx +198 -0
  1207. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  1208. package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
  1209. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  1210. package/src/lib/plugins/redirect/index.tsx +6 -10
  1211. package/src/lib/plugins/search-inkeep/index.tsx +80 -25
  1212. package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
  1213. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
  1214. package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -0
  1215. package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
  1216. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  1217. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  1218. package/src/lib/shiki.ts +133 -0
  1219. package/src/lib/ui/Accordion.tsx +56 -0
  1220. package/src/lib/ui/ActionButton.tsx +28 -0
  1221. package/src/lib/ui/Alert.tsx +59 -0
  1222. package/src/lib/ui/AlertDialog.tsx +139 -0
  1223. package/src/lib/ui/AspectRatio.tsx +5 -0
  1224. package/src/lib/ui/Badge.tsx +37 -0
  1225. package/src/lib/ui/Breadcrumb.tsx +115 -0
  1226. package/src/lib/ui/Button.tsx +13 -8
  1227. package/src/lib/ui/Callout.tsx +36 -16
  1228. package/src/lib/ui/Card.tsx +1 -1
  1229. package/src/lib/ui/Carousel.tsx +260 -0
  1230. package/src/lib/ui/Checkbox.tsx +29 -0
  1231. package/src/lib/ui/CodeBlock.tsx +102 -0
  1232. package/src/lib/ui/Collapsible.tsx +9 -0
  1233. package/src/lib/ui/Command.tsx +193 -0
  1234. package/src/lib/ui/Dialog.tsx +120 -0
  1235. package/src/lib/ui/Drawer.tsx +38 -36
  1236. package/src/lib/ui/DropdownMenu.tsx +4 -4
  1237. package/src/lib/ui/Form.tsx +177 -0
  1238. package/src/lib/ui/HoverCard.tsx +27 -0
  1239. package/src/lib/ui/Input.tsx +2 -3
  1240. package/src/lib/ui/Label.tsx +24 -0
  1241. package/src/lib/ui/Pagination.tsx +117 -0
  1242. package/src/lib/ui/Popover.tsx +29 -0
  1243. package/src/lib/ui/Progress.tsx +26 -0
  1244. package/src/lib/ui/RadioGroup.tsx +42 -0
  1245. package/src/lib/ui/ScrollArea.tsx +46 -0
  1246. package/src/lib/ui/Select.tsx +157 -0
  1247. package/src/lib/ui/Skeleton.tsx +15 -0
  1248. package/src/lib/ui/Slider.tsx +26 -0
  1249. package/src/lib/ui/Stepper.tsx +8 -0
  1250. package/src/lib/ui/Switch.tsx +27 -0
  1251. package/src/lib/ui/SyntaxHighlight.tsx +27 -0
  1252. package/src/lib/ui/Tabs.tsx +2 -2
  1253. package/src/lib/ui/Textarea.tsx +23 -0
  1254. package/src/lib/ui/Toggle.tsx +43 -0
  1255. package/src/lib/ui/ToggleGroup.tsx +59 -0
  1256. package/src/lib/ui/Tooltip.tsx +28 -0
  1257. package/src/lib/ui/util.tsx +3 -0
  1258. package/src/lib/util/MdxComponents.tsx +37 -24
  1259. package/src/lib/util/createVariantComponent.tsx +2 -2
  1260. package/src/lib/util/detectOS.ts +9 -0
  1261. package/src/lib/util/ensureArray.ts +3 -0
  1262. package/src/lib/util/invariant.ts +15 -3
  1263. package/src/lib/util/joinPath.tsx +3 -0
  1264. package/src/lib/util/joinUrl.test.ts +62 -0
  1265. package/src/lib/util/joinUrl.ts +57 -0
  1266. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  1267. package/src/lib/util/traverse.ts +34 -0
  1268. package/src/lib/util/types.ts +7 -0
  1269. package/src/lib/util/url.test.ts +51 -0
  1270. package/src/lib/util/url.ts +18 -0
  1271. package/src/lib/util/useExposedProps.tsx +27 -0
  1272. package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
  1273. package/src/lib/util/useLatest.ts +18 -0
  1274. package/src/lib/util/useOnScreen.ts +34 -0
  1275. package/src/lib/util/useScrollToAnchor.ts +48 -39
  1276. package/src/lib/util/useScrollToTop.ts +9 -4
  1277. package/src/shiki/langs/abap.js +1 -0
  1278. package/src/shiki/langs/actionscript-3.js +1 -0
  1279. package/src/shiki/langs/ada.js +1 -0
  1280. package/src/shiki/langs/angular-expression.js +1 -0
  1281. package/src/shiki/langs/angular-html.js +1 -0
  1282. package/src/shiki/langs/angular-inline-style.js +1 -0
  1283. package/src/shiki/langs/angular-inline-template.js +1 -0
  1284. package/src/shiki/langs/angular-let-declaration.js +1 -0
  1285. package/src/shiki/langs/angular-template-blocks.js +1 -0
  1286. package/src/shiki/langs/angular-template.js +1 -0
  1287. package/src/shiki/langs/angular-ts.js +1 -0
  1288. package/src/shiki/langs/apache.js +1 -0
  1289. package/src/shiki/langs/apex.js +1 -0
  1290. package/src/shiki/langs/apl.js +1 -0
  1291. package/src/shiki/langs/applescript.js +1 -0
  1292. package/src/shiki/langs/ara.js +1 -0
  1293. package/src/shiki/langs/asciidoc.js +1 -0
  1294. package/src/shiki/langs/asm.js +1 -0
  1295. package/src/shiki/langs/astro.js +1 -0
  1296. package/src/shiki/langs/awk.js +1 -0
  1297. package/src/shiki/langs/ballerina.js +1 -0
  1298. package/src/shiki/langs/bat.js +1 -0
  1299. package/src/shiki/langs/beancount.js +1 -0
  1300. package/src/shiki/langs/berry.js +1 -0
  1301. package/src/shiki/langs/bibtex.js +1 -0
  1302. package/src/shiki/langs/bicep.js +1 -0
  1303. package/src/shiki/langs/blade.js +1 -0
  1304. package/src/shiki/langs/bsl.js +1 -0
  1305. package/src/shiki/langs/c.js +1 -0
  1306. package/src/shiki/langs/cadence.js +1 -0
  1307. package/src/shiki/langs/cairo.js +1 -0
  1308. package/src/shiki/langs/clarity.js +1 -0
  1309. package/src/shiki/langs/clojure.js +1 -0
  1310. package/src/shiki/langs/cmake.js +1 -0
  1311. package/src/shiki/langs/cobol.js +1 -0
  1312. package/src/shiki/langs/codeowners.js +1 -0
  1313. package/src/shiki/langs/codeql.js +1 -0
  1314. package/src/shiki/langs/coffee.js +1 -0
  1315. package/src/shiki/langs/common-lisp.js +1 -0
  1316. package/src/shiki/langs/coq.js +1 -0
  1317. package/src/shiki/langs/cpp-macro.js +1 -0
  1318. package/src/shiki/langs/cpp.js +1 -0
  1319. package/src/shiki/langs/crystal.js +1 -0
  1320. package/src/shiki/langs/csharp.js +1 -0
  1321. package/src/shiki/langs/css.js +1 -0
  1322. package/src/shiki/langs/csv.js +1 -0
  1323. package/src/shiki/langs/cue.js +1 -0
  1324. package/src/shiki/langs/cypher.js +1 -0
  1325. package/src/shiki/langs/d.js +1 -0
  1326. package/src/shiki/langs/dart.js +1 -0
  1327. package/src/shiki/langs/dax.js +1 -0
  1328. package/src/shiki/langs/desktop.js +1 -0
  1329. package/src/shiki/langs/diff.js +1 -0
  1330. package/src/shiki/langs/docker.js +1 -0
  1331. package/src/shiki/langs/dotenv.js +1 -0
  1332. package/src/shiki/langs/dream-maker.js +1 -0
  1333. package/src/shiki/langs/edge.js +1 -0
  1334. package/src/shiki/langs/elixir.js +1 -0
  1335. package/src/shiki/langs/elm.js +1 -0
  1336. package/src/shiki/langs/emacs-lisp.js +1 -0
  1337. package/src/shiki/langs/erb.js +1 -0
  1338. package/src/shiki/langs/erlang.js +1 -0
  1339. package/src/shiki/langs/es-tag-css.js +1 -0
  1340. package/src/shiki/langs/es-tag-glsl.js +1 -0
  1341. package/src/shiki/langs/es-tag-html.js +1 -0
  1342. package/src/shiki/langs/es-tag-sql.js +1 -0
  1343. package/src/shiki/langs/es-tag-xml.js +1 -0
  1344. package/src/shiki/langs/fennel.js +1 -0
  1345. package/src/shiki/langs/fish.js +1 -0
  1346. package/src/shiki/langs/fluent.js +1 -0
  1347. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  1348. package/src/shiki/langs/fortran-free-form.js +1 -0
  1349. package/src/shiki/langs/fsharp.js +1 -0
  1350. package/src/shiki/langs/gdresource.js +1 -0
  1351. package/src/shiki/langs/gdscript.js +1 -0
  1352. package/src/shiki/langs/gdshader.js +1 -0
  1353. package/src/shiki/langs/genie.js +1 -0
  1354. package/src/shiki/langs/gherkin.js +1 -0
  1355. package/src/shiki/langs/git-commit.js +1 -0
  1356. package/src/shiki/langs/git-rebase.js +1 -0
  1357. package/src/shiki/langs/gleam.js +1 -0
  1358. package/src/shiki/langs/glimmer-js.js +1 -0
  1359. package/src/shiki/langs/glimmer-ts.js +1 -0
  1360. package/src/shiki/langs/glsl.js +1 -0
  1361. package/src/shiki/langs/gnuplot.js +1 -0
  1362. package/src/shiki/langs/go.js +1 -0
  1363. package/src/shiki/langs/graphql.js +1 -0
  1364. package/src/shiki/langs/groovy.js +1 -0
  1365. package/src/shiki/langs/hack.js +1 -0
  1366. package/src/shiki/langs/haml.js +1 -0
  1367. package/src/shiki/langs/handlebars.js +1 -0
  1368. package/src/shiki/langs/haskell.js +1 -0
  1369. package/src/shiki/langs/haxe.js +1 -0
  1370. package/src/shiki/langs/hcl.js +1 -0
  1371. package/src/shiki/langs/hjson.js +1 -0
  1372. package/src/shiki/langs/hlsl.js +1 -0
  1373. package/src/shiki/langs/html-derivative.js +1 -0
  1374. package/src/shiki/langs/html.js +1 -0
  1375. package/src/shiki/langs/http.js +1 -0
  1376. package/src/shiki/langs/hxml.js +1 -0
  1377. package/src/shiki/langs/hy.js +1 -0
  1378. package/src/shiki/langs/imba.js +1 -0
  1379. package/src/shiki/langs/ini.js +1 -0
  1380. package/src/shiki/langs/java.js +1 -0
  1381. package/src/shiki/langs/javascript.js +1 -0
  1382. package/src/shiki/langs/jinja-html.js +1 -0
  1383. package/src/shiki/langs/jinja.js +1 -0
  1384. package/src/shiki/langs/jison.js +1 -0
  1385. package/src/shiki/langs/json.js +1 -0
  1386. package/src/shiki/langs/json5.js +1 -0
  1387. package/src/shiki/langs/jsonc.js +1 -0
  1388. package/src/shiki/langs/jsonl.js +1 -0
  1389. package/src/shiki/langs/jsonnet.js +1 -0
  1390. package/src/shiki/langs/jssm.js +1 -0
  1391. package/src/shiki/langs/jsx.js +1 -0
  1392. package/src/shiki/langs/julia.js +1 -0
  1393. package/src/shiki/langs/kotlin.js +1 -0
  1394. package/src/shiki/langs/kusto.js +1 -0
  1395. package/src/shiki/langs/latex.js +1 -0
  1396. package/src/shiki/langs/lean.js +1 -0
  1397. package/src/shiki/langs/less.js +1 -0
  1398. package/src/shiki/langs/liquid.js +1 -0
  1399. package/src/shiki/langs/llvm.js +1 -0
  1400. package/src/shiki/langs/log.js +1 -0
  1401. package/src/shiki/langs/logo.js +1 -0
  1402. package/src/shiki/langs/lua.js +1 -0
  1403. package/src/shiki/langs/luau.js +1 -0
  1404. package/src/shiki/langs/make.js +1 -0
  1405. package/src/shiki/langs/markdown-vue.js +1 -0
  1406. package/src/shiki/langs/markdown.js +1 -0
  1407. package/src/shiki/langs/marko.js +1 -0
  1408. package/src/shiki/langs/matlab.js +1 -0
  1409. package/src/shiki/langs/mdc.js +1 -0
  1410. package/src/shiki/langs/mdx.js +1 -0
  1411. package/src/shiki/langs/mermaid.js +1 -0
  1412. package/src/shiki/langs/mipsasm.js +1 -0
  1413. package/src/shiki/langs/mojo.js +1 -0
  1414. package/src/shiki/langs/move.js +1 -0
  1415. package/src/shiki/langs/narrat.js +1 -0
  1416. package/src/shiki/langs/nextflow.js +1 -0
  1417. package/src/shiki/langs/nginx.js +1 -0
  1418. package/src/shiki/langs/nim.js +1 -0
  1419. package/src/shiki/langs/nix.js +1 -0
  1420. package/src/shiki/langs/nushell.js +1 -0
  1421. package/src/shiki/langs/objective-c.js +1 -0
  1422. package/src/shiki/langs/objective-cpp.js +1 -0
  1423. package/src/shiki/langs/ocaml.js +1 -0
  1424. package/src/shiki/langs/pascal.js +1 -0
  1425. package/src/shiki/langs/perl.js +1 -0
  1426. package/src/shiki/langs/php.js +1 -0
  1427. package/src/shiki/langs/plsql.js +1 -0
  1428. package/src/shiki/langs/po.js +1 -0
  1429. package/src/shiki/langs/polar.js +1 -0
  1430. package/src/shiki/langs/postcss.js +1 -0
  1431. package/src/shiki/langs/powerquery.js +1 -0
  1432. package/src/shiki/langs/powershell.js +1 -0
  1433. package/src/shiki/langs/prisma.js +1 -0
  1434. package/src/shiki/langs/prolog.js +1 -0
  1435. package/src/shiki/langs/proto.js +1 -0
  1436. package/src/shiki/langs/pug.js +1 -0
  1437. package/src/shiki/langs/puppet.js +1 -0
  1438. package/src/shiki/langs/purescript.js +1 -0
  1439. package/src/shiki/langs/python.js +1 -0
  1440. package/src/shiki/langs/qml.js +1 -0
  1441. package/src/shiki/langs/qmldir.js +1 -0
  1442. package/src/shiki/langs/qss.js +1 -0
  1443. package/src/shiki/langs/r.js +1 -0
  1444. package/src/shiki/langs/racket.js +1 -0
  1445. package/src/shiki/langs/raku.js +1 -0
  1446. package/src/shiki/langs/razor.js +1 -0
  1447. package/src/shiki/langs/reg.js +1 -0
  1448. package/src/shiki/langs/regexp.js +1 -0
  1449. package/src/shiki/langs/rel.js +1 -0
  1450. package/src/shiki/langs/riscv.js +1 -0
  1451. package/src/shiki/langs/rst.js +1 -0
  1452. package/src/shiki/langs/ruby.js +1 -0
  1453. package/src/shiki/langs/rust.js +1 -0
  1454. package/src/shiki/langs/sas.js +1 -0
  1455. package/src/shiki/langs/sass.js +1 -0
  1456. package/src/shiki/langs/scala.js +1 -0
  1457. package/src/shiki/langs/scheme.js +1 -0
  1458. package/src/shiki/langs/scss.js +1 -0
  1459. package/src/shiki/langs/sdbl.js +1 -0
  1460. package/src/shiki/langs/shaderlab.js +1 -0
  1461. package/src/shiki/langs/shellscript.js +1 -0
  1462. package/src/shiki/langs/shellsession.js +1 -0
  1463. package/src/shiki/langs/smalltalk.js +1 -0
  1464. package/src/shiki/langs/solidity.js +1 -0
  1465. package/src/shiki/langs/soy.js +1 -0
  1466. package/src/shiki/langs/sparql.js +1 -0
  1467. package/src/shiki/langs/splunk.js +1 -0
  1468. package/src/shiki/langs/sql.js +1 -0
  1469. package/src/shiki/langs/ssh-config.js +1 -0
  1470. package/src/shiki/langs/stata.js +1 -0
  1471. package/src/shiki/langs/stylus.js +1 -0
  1472. package/src/shiki/langs/svelte.js +1 -0
  1473. package/src/shiki/langs/swift.js +1 -0
  1474. package/src/shiki/langs/system-verilog.js +1 -0
  1475. package/src/shiki/langs/systemd.js +1 -0
  1476. package/src/shiki/langs/talonscript.js +1 -0
  1477. package/src/shiki/langs/tasl.js +1 -0
  1478. package/src/shiki/langs/tcl.js +1 -0
  1479. package/src/shiki/langs/templ.js +1 -0
  1480. package/src/shiki/langs/terraform.js +1 -0
  1481. package/src/shiki/langs/tex.js +1 -0
  1482. package/src/shiki/langs/toml.js +1 -0
  1483. package/src/shiki/langs/ts-tags.js +1 -0
  1484. package/src/shiki/langs/tsv.js +1 -0
  1485. package/src/shiki/langs/tsx.js +1 -0
  1486. package/src/shiki/langs/turtle.js +1 -0
  1487. package/src/shiki/langs/twig.js +1 -0
  1488. package/src/shiki/langs/typescript.js +1 -0
  1489. package/src/shiki/langs/typespec.js +1 -0
  1490. package/src/shiki/langs/typst.js +1 -0
  1491. package/src/shiki/langs/v.js +1 -0
  1492. package/src/shiki/langs/vala.js +1 -0
  1493. package/src/shiki/langs/vb.js +1 -0
  1494. package/src/shiki/langs/verilog.js +1 -0
  1495. package/src/shiki/langs/vhdl.js +1 -0
  1496. package/src/shiki/langs/viml.js +1 -0
  1497. package/src/shiki/langs/vue-directives.js +1 -0
  1498. package/src/shiki/langs/vue-html.js +1 -0
  1499. package/src/shiki/langs/vue-interpolations.js +1 -0
  1500. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  1501. package/src/shiki/langs/vue.js +1 -0
  1502. package/src/shiki/langs/vyper.js +1 -0
  1503. package/src/shiki/langs/wasm.js +1 -0
  1504. package/src/shiki/langs/wenyan.js +1 -0
  1505. package/src/shiki/langs/wgsl.js +1 -0
  1506. package/src/shiki/langs/wikitext.js +1 -0
  1507. package/src/shiki/langs/wit.js +1 -0
  1508. package/src/shiki/langs/wolfram.js +1 -0
  1509. package/src/shiki/langs/xml.js +1 -0
  1510. package/src/shiki/langs/xsl.js +1 -0
  1511. package/src/shiki/langs/yaml.js +1 -0
  1512. package/src/shiki/langs/zenscript.js +1 -0
  1513. package/src/shiki/langs/zig.js +1 -0
  1514. package/src/shiki/themes/andromeeda.js +1 -0
  1515. package/src/shiki/themes/aurora-x.js +1 -0
  1516. package/src/shiki/themes/ayu-dark.js +1 -0
  1517. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  1518. package/src/shiki/themes/catppuccin-latte.js +1 -0
  1519. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  1520. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  1521. package/src/shiki/themes/dark-plus.js +1 -0
  1522. package/src/shiki/themes/dracula-soft.js +1 -0
  1523. package/src/shiki/themes/dracula.js +1 -0
  1524. package/src/shiki/themes/everforest-dark.js +1 -0
  1525. package/src/shiki/themes/everforest-light.js +1 -0
  1526. package/src/shiki/themes/github-dark-default.js +1 -0
  1527. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  1528. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  1529. package/src/shiki/themes/github-dark.js +1 -0
  1530. package/src/shiki/themes/github-light-default.js +1 -0
  1531. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  1532. package/src/shiki/themes/github-light.js +1 -0
  1533. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  1534. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  1535. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  1536. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  1537. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  1538. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  1539. package/src/shiki/themes/houston.js +1 -0
  1540. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  1541. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  1542. package/src/shiki/themes/kanagawa-wave.js +1 -0
  1543. package/src/shiki/themes/laserwave.js +1 -0
  1544. package/src/shiki/themes/light-plus.js +1 -0
  1545. package/src/shiki/themes/material-theme-darker.js +1 -0
  1546. package/src/shiki/themes/material-theme-lighter.js +1 -0
  1547. package/src/shiki/themes/material-theme-ocean.js +1 -0
  1548. package/src/shiki/themes/material-theme-palenight.js +1 -0
  1549. package/src/shiki/themes/material-theme.js +1 -0
  1550. package/src/shiki/themes/min-dark.js +1 -0
  1551. package/src/shiki/themes/min-light.js +1 -0
  1552. package/src/shiki/themes/monokai.js +1 -0
  1553. package/src/shiki/themes/night-owl.js +1 -0
  1554. package/src/shiki/themes/nord.js +1 -0
  1555. package/src/shiki/themes/one-dark-pro.js +1 -0
  1556. package/src/shiki/themes/one-light.js +1 -0
  1557. package/src/shiki/themes/plastic.js +1 -0
  1558. package/src/shiki/themes/poimandres.js +1 -0
  1559. package/src/shiki/themes/red.js +1 -0
  1560. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  1561. package/src/shiki/themes/rose-pine-moon.js +1 -0
  1562. package/src/shiki/themes/rose-pine.js +1 -0
  1563. package/src/shiki/themes/slack-dark.js +1 -0
  1564. package/src/shiki/themes/slack-ochin.js +1 -0
  1565. package/src/shiki/themes/snazzy-light.js +1 -0
  1566. package/src/shiki/themes/solarized-dark.js +1 -0
  1567. package/src/shiki/themes/solarized-light.js +1 -0
  1568. package/src/shiki/themes/synthwave-84.js +1 -0
  1569. package/src/shiki/themes/tokyo-night.js +1 -0
  1570. package/src/shiki/themes/vesper.js +1 -0
  1571. package/src/shiki/themes/vitesse-black.js +1 -0
  1572. package/src/shiki/themes/vitesse-dark.js +1 -0
  1573. package/src/shiki/themes/vitesse-light.js +1 -0
  1574. package/LICENSE.md +0 -9
  1575. package/client.d.ts +0 -1
  1576. package/dist/app/tailwind.d.ts +0 -3
  1577. package/dist/app/tailwind.js +0 -65
  1578. package/dist/app/tailwind.js.map +0 -1
  1579. package/dist/internal.d.ts +0 -1
  1580. package/dist/internal.js +0 -2
  1581. package/dist/internal.js.map +0 -1
  1582. package/dist/lib/components/DevPortal.d.ts +0 -7
  1583. package/dist/lib/components/DevPortal.js +0 -54
  1584. package/dist/lib/components/DevPortal.js.map +0 -1
  1585. package/dist/lib/components/Dialog.js +0 -23
  1586. package/dist/lib/components/Dialog.js.map +0 -1
  1587. package/dist/lib/components/Select.js +0 -27
  1588. package/dist/lib/components/Select.js.map +0 -1
  1589. package/dist/lib/components/SlotletProvider.d.ts +0 -9
  1590. package/dist/lib/components/SlotletProvider.js +0 -16
  1591. package/dist/lib/components/SlotletProvider.js.map +0 -1
  1592. package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
  1593. package/dist/lib/components/SyntaxHighlight.js +0 -50
  1594. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  1595. package/dist/lib/components/context/PluginSystem.js +0 -2
  1596. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1597. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  1598. package/dist/lib/components/context/ThemeContext.js +0 -7
  1599. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  1600. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  1601. package/dist/lib/components/context/ThemeProvider.js +0 -23
  1602. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  1603. package/dist/lib/core/DevPortalContext.d.ts +0 -78
  1604. package/dist/lib/core/DevPortalContext.js +0 -49
  1605. package/dist/lib/core/DevPortalContext.js.map +0 -1
  1606. package/dist/lib/plugins/custom-page/index.d.ts +0 -8
  1607. package/dist/lib/plugins/custom-page/index.js +0 -12
  1608. package/dist/lib/plugins/custom-page/index.js.map +0 -1
  1609. package/dist/lib/plugins/markdown/Toc.js +0 -48
  1610. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  1611. package/dist/lib/plugins/markdown/generateRoutes.d.ts +0 -3
  1612. package/dist/lib/plugins/markdown/generateRoutes.js +0 -21
  1613. package/dist/lib/plugins/markdown/generateRoutes.js.map +0 -1
  1614. package/dist/lib/plugins/openapi/Route.d.ts +0 -6
  1615. package/dist/lib/plugins/openapi/Route.js +0 -8
  1616. package/dist/lib/plugins/openapi/Route.js.map +0 -1
  1617. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
  1618. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
  1619. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  1620. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  1621. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
  1622. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  1623. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  1624. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  1625. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  1626. package/dist/lib/plugins/openapi/client/worker.js +0 -20
  1627. package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
  1628. package/dist/lib/plugins/openapi/playground/Editor.d.ts +0 -1
  1629. package/dist/lib/plugins/openapi/playground/Editor.js +0 -5
  1630. package/dist/lib/plugins/openapi/playground/Editor.js.map +0 -1
  1631. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
  1632. package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
  1633. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
  1634. package/dist/lib/plugins/openapi/schema/SchemaComponents.d.ts +0 -13
  1635. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
  1636. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
  1637. package/dist/lib/plugins/openapi/util/urql.d.ts +0 -7
  1638. package/dist/lib/plugins/openapi/util/urql.js +0 -8
  1639. package/dist/lib/plugins/openapi/util/urql.js.map +0 -1
  1640. package/dist/lib/plugins/openapi-worker.d.ts +0 -1
  1641. package/dist/lib/plugins/openapi-worker.js +0 -2
  1642. package/dist/lib/plugins/openapi-worker.js.map +0 -1
  1643. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  1644. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  1645. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  1646. package/dist/lib/themeToggle.d.ts +0 -1
  1647. package/dist/lib/themeToggle.js +0 -7
  1648. package/dist/lib/themeToggle.js.map +0 -1
  1649. package/dist/lib/ui/Note.d.ts +0 -8
  1650. package/dist/lib/ui/Note.js +0 -23
  1651. package/dist/lib/ui/Note.js.map +0 -1
  1652. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  1653. package/dist/lib/util/createWaitForNotify.js +0 -15
  1654. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  1655. package/dist/vite/plugin-custom-css.d.ts +0 -6
  1656. package/dist/vite/plugin-custom-css.js +0 -55
  1657. package/dist/vite/plugin-custom-css.js.map +0 -1
  1658. package/dist/vite/plugin-html-transform.d.ts +0 -2
  1659. package/dist/vite/plugin-html-transform.js +0 -15
  1660. package/dist/vite/plugin-html-transform.js.map +0 -1
  1661. package/dist/vite/prerender.d.ts +0 -17
  1662. package/dist/vite/prerender.js +0 -87
  1663. package/dist/vite/prerender.js.map +0 -1
  1664. package/lib/AuthenticationPlugin-Bx9FK124.js +0 -55
  1665. package/lib/AuthenticationPlugin-Bx9FK124.js.map +0 -1
  1666. package/lib/CategoryHeading-ovR-zHRq.js +0 -10
  1667. package/lib/CategoryHeading-ovR-zHRq.js.map +0 -1
  1668. package/lib/DeveloperHint-YeWHKvyr.js +0 -16
  1669. package/lib/DeveloperHint-YeWHKvyr.js.map +0 -1
  1670. package/lib/ErrorPage-CsZAN_za.js +0 -16
  1671. package/lib/ErrorPage-CsZAN_za.js.map +0 -1
  1672. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  1673. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  1674. package/lib/Input-CtVUl3eT.js +0 -2198
  1675. package/lib/Input-CtVUl3eT.js.map +0 -1
  1676. package/lib/Markdown-DapSf3wG.js +0 -20281
  1677. package/lib/Markdown-DapSf3wG.js.map +0 -1
  1678. package/lib/MdxPage-BqBWsXZ1.js +0 -172
  1679. package/lib/MdxPage-BqBWsXZ1.js.map +0 -1
  1680. package/lib/OperationList-CYrmxPa8.js +0 -602
  1681. package/lib/OperationList-CYrmxPa8.js.map +0 -1
  1682. package/lib/Route-Q5mqNQrv.js +0 -14
  1683. package/lib/Route-Q5mqNQrv.js.map +0 -1
  1684. package/lib/SidebarBadge-Dx7jtnoA.js +0 -498
  1685. package/lib/SidebarBadge-Dx7jtnoA.js.map +0 -1
  1686. package/lib/SlotletProvider-D3UD5Go3.js +0 -238
  1687. package/lib/SlotletProvider-D3UD5Go3.js.map +0 -1
  1688. package/lib/Spinner-3cQDBVGr.js +0 -7
  1689. package/lib/Spinner-3cQDBVGr.js.map +0 -1
  1690. package/lib/ZudokuContext-cr-pTRY1.js +0 -1084
  1691. package/lib/ZudokuContext-cr-pTRY1.js.map +0 -1
  1692. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  1693. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  1694. package/lib/assets/index-B9EWVYfo.js +0 -4790
  1695. package/lib/assets/index-B9EWVYfo.js.map +0 -1
  1696. package/lib/assets/worker-BP8Uzflt.js +0 -17916
  1697. package/lib/assets/worker-BP8Uzflt.js.map +0 -1
  1698. package/lib/index-BG0g4WW0.js +0 -1771
  1699. package/lib/index-BG0g4WW0.js.map +0 -1
  1700. package/lib/index-BlJ2rj99.js +0 -5815
  1701. package/lib/index-BlJ2rj99.js.map +0 -1
  1702. package/lib/index-BngPzhKn.js +0 -124
  1703. package/lib/index-BngPzhKn.js.map +0 -1
  1704. package/lib/index-CLd8ycZz.js +0 -4790
  1705. package/lib/index-CLd8ycZz.js.map +0 -1
  1706. package/lib/index-Dolisrci.js +0 -2814
  1707. package/lib/index-Dolisrci.js.map +0 -1
  1708. package/lib/index-LNp6rxyU.js +0 -2094
  1709. package/lib/index-LNp6rxyU.js.map +0 -1
  1710. package/lib/joinPath-B7kNnUX4.js +0 -8
  1711. package/lib/joinPath-B7kNnUX4.js.map +0 -1
  1712. package/lib/jsx-runtime-B6kdoens.js +0 -635
  1713. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  1714. package/lib/prism-bash.min-DadFsM4Z.js +0 -7
  1715. package/lib/prism-bash.min-DadFsM4Z.js.map +0 -1
  1716. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  1717. package/lib/prism-csharp.min-Yizuc34Y.js.map +0 -1
  1718. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  1719. package/lib/prism-java.min-d5iT_mOd.js.map +0 -1
  1720. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  1721. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  1722. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  1723. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  1724. package/lib/prism-markdown.min-F3U-vPBi.js +0 -61
  1725. package/lib/prism-markdown.min-F3U-vPBi.js.map +0 -1
  1726. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  1727. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  1728. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  1729. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  1730. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  1731. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  1732. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  1733. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
  1734. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  1735. package/lib/prism-ruby.min-C7LwcKyz.js.map +0 -1
  1736. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  1737. package/lib/prism-typescript.min-oSVeWCAd.js.map +0 -1
  1738. package/lib/router-D2p7Olpn.js +0 -2971
  1739. package/lib/router-D2p7Olpn.js.map +0 -1
  1740. package/lib/state-hNe1dw4B.js +0 -548
  1741. package/lib/state-hNe1dw4B.js.map +0 -1
  1742. package/lib/urql-YhcsXYy8.js +0 -1591
  1743. package/lib/urql-YhcsXYy8.js.map +0 -1
  1744. package/lib/utils-ByIc_KIM.js +0 -749
  1745. package/lib/utils-ByIc_KIM.js.map +0 -1
  1746. package/lib/zudoku.openapi-worker.js +0 -16059
  1747. package/lib/zudoku.openapi-worker.js.map +0 -1
  1748. package/lib/zudoku.plugin-custom-page.js +0 -13
  1749. package/lib/zudoku.plugin-custom-page.js.map +0 -1
  1750. package/src/app/tailwind.ts +0 -68
  1751. package/src/lib/components/DevPortal.tsx +0 -111
  1752. package/src/lib/components/Dialog.tsx +0 -119
  1753. package/src/lib/components/Select.tsx +0 -157
  1754. package/src/lib/components/SlotletProvider.tsx +0 -30
  1755. package/src/lib/components/SyntaxHighlight.tsx +0 -122
  1756. package/src/lib/components/context/PluginSystem.ts +0 -0
  1757. package/src/lib/components/context/ThemeContext.tsx +0 -8
  1758. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  1759. package/src/lib/core/DevPortalContext.ts +0 -135
  1760. package/src/lib/plugins/custom-page/index.tsx +0 -22
  1761. package/src/lib/plugins/markdown/Toc.tsx +0 -135
  1762. package/src/lib/plugins/markdown/generateRoutes.tsx +0 -38
  1763. package/src/lib/plugins/openapi/Route.tsx +0 -21
  1764. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -56
  1765. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -80
  1766. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  1767. package/src/lib/plugins/openapi/client/worker.ts +0 -30
  1768. package/src/lib/plugins/openapi/playground/Editor.tsx +0 -4
  1769. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
  1770. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
  1771. package/src/lib/plugins/openapi/util/urql.ts +0 -8
  1772. package/src/lib/plugins/openapi-worker.ts +0 -1
  1773. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
  1774. package/src/lib/themeToggle.ts +0 -7
  1775. package/src/lib/ui/Note.tsx +0 -58
  1776. package/src/lib/util/createWaitForNotify.ts +0 -18
  1777. /package/dist/lib/components/{context/PluginSystem.d.ts → Slot.test.d.ts} +0 -0
  1778. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  1779. /package/dist/lib/{plugins/openapi/client/worker.d.ts → hooks/useEvent.test.d.ts} +0 -0
  1780. /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
  1781. /package/dist/lib/{components → ui}/Select.d.ts +0 -0
@@ -0,0 +1,4822 @@
1
+ const dt = Symbol.for("yaml.alias"), lt = Symbol.for("yaml.document"), G = Symbol.for("yaml.map"), qt = Symbol.for("yaml.pair"), R = Symbol.for("yaml.scalar"), he = Symbol.for("yaml.seq"), P = Symbol.for("yaml.node.type"), Z = (s) => !!s && typeof s == "object" && s[P] === dt, ee = (s) => !!s && typeof s == "object" && s[P] === lt, de = (s) => !!s && typeof s == "object" && s[P] === G, T = (s) => !!s && typeof s == "object" && s[P] === qt, E = (s) => !!s && typeof s == "object" && s[P] === R, pe = (s) => !!s && typeof s == "object" && s[P] === he;
2
+ function L(s) {
3
+ if (s && typeof s == "object")
4
+ switch (s[P]) {
5
+ case G:
6
+ case he:
7
+ return !0;
8
+ }
9
+ return !1;
10
+ }
11
+ function $(s) {
12
+ if (s && typeof s == "object")
13
+ switch (s[P]) {
14
+ case dt:
15
+ case G:
16
+ case R:
17
+ case he:
18
+ return !0;
19
+ }
20
+ return !1;
21
+ }
22
+ const vs = (s) => (E(s) || L(s)) && !!s.anchor, M = Symbol("break visit"), Ft = Symbol("skip children"), F = Symbol("remove node");
23
+ function Q(s, e) {
24
+ const t = Rt(e);
25
+ ee(s) ? ie(null, s.contents, t, Object.freeze([s])) === F && (s.contents = null) : ie(null, s, t, Object.freeze([]));
26
+ }
27
+ Q.BREAK = M;
28
+ Q.SKIP = Ft;
29
+ Q.REMOVE = F;
30
+ function ie(s, e, t, n) {
31
+ const i = Ut(s, e, t, n);
32
+ if ($(i) || T(i))
33
+ return Vt(s, n, i), ie(s, i, t, n);
34
+ if (typeof i != "symbol") {
35
+ if (L(e)) {
36
+ n = Object.freeze(n.concat(e));
37
+ for (let r = 0; r < e.items.length; ++r) {
38
+ const o = ie(r, e.items[r], t, n);
39
+ if (typeof o == "number")
40
+ r = o - 1;
41
+ else {
42
+ if (o === M)
43
+ return M;
44
+ o === F && (e.items.splice(r, 1), r -= 1);
45
+ }
46
+ }
47
+ } else if (T(e)) {
48
+ n = Object.freeze(n.concat(e));
49
+ const r = ie("key", e.key, t, n);
50
+ if (r === M)
51
+ return M;
52
+ r === F && (e.key = null);
53
+ const o = ie("value", e.value, t, n);
54
+ if (o === M)
55
+ return M;
56
+ o === F && (e.value = null);
57
+ }
58
+ }
59
+ return i;
60
+ }
61
+ async function Fe(s, e) {
62
+ const t = Rt(e);
63
+ ee(s) ? await re(null, s.contents, t, Object.freeze([s])) === F && (s.contents = null) : await re(null, s, t, Object.freeze([]));
64
+ }
65
+ Fe.BREAK = M;
66
+ Fe.SKIP = Ft;
67
+ Fe.REMOVE = F;
68
+ async function re(s, e, t, n) {
69
+ const i = await Ut(s, e, t, n);
70
+ if ($(i) || T(i))
71
+ return Vt(s, n, i), re(s, i, t, n);
72
+ if (typeof i != "symbol") {
73
+ if (L(e)) {
74
+ n = Object.freeze(n.concat(e));
75
+ for (let r = 0; r < e.items.length; ++r) {
76
+ const o = await re(r, e.items[r], t, n);
77
+ if (typeof o == "number")
78
+ r = o - 1;
79
+ else {
80
+ if (o === M)
81
+ return M;
82
+ o === F && (e.items.splice(r, 1), r -= 1);
83
+ }
84
+ }
85
+ } else if (T(e)) {
86
+ n = Object.freeze(n.concat(e));
87
+ const r = await re("key", e.key, t, n);
88
+ if (r === M)
89
+ return M;
90
+ r === F && (e.key = null);
91
+ const o = await re("value", e.value, t, n);
92
+ if (o === M)
93
+ return M;
94
+ o === F && (e.value = null);
95
+ }
96
+ }
97
+ return i;
98
+ }
99
+ function Rt(s) {
100
+ return typeof s == "object" && (s.Collection || s.Node || s.Value) ? Object.assign({
101
+ Alias: s.Node,
102
+ Map: s.Node,
103
+ Scalar: s.Node,
104
+ Seq: s.Node
105
+ }, s.Value && {
106
+ Map: s.Value,
107
+ Scalar: s.Value,
108
+ Seq: s.Value
109
+ }, s.Collection && {
110
+ Map: s.Collection,
111
+ Seq: s.Collection
112
+ }, s) : s;
113
+ }
114
+ function Ut(s, e, t, n) {
115
+ if (typeof t == "function")
116
+ return t(s, e, n);
117
+ if (de(e))
118
+ return t.Map?.(s, e, n);
119
+ if (pe(e))
120
+ return t.Seq?.(s, e, n);
121
+ if (T(e))
122
+ return t.Pair?.(s, e, n);
123
+ if (E(e))
124
+ return t.Scalar?.(s, e, n);
125
+ if (Z(e))
126
+ return t.Alias?.(s, e, n);
127
+ }
128
+ function Vt(s, e, t) {
129
+ const n = e[e.length - 1];
130
+ if (L(n))
131
+ n.items[s] = t;
132
+ else if (T(n))
133
+ s === "key" ? n.key = t : n.value = t;
134
+ else if (ee(n))
135
+ n.contents = t;
136
+ else {
137
+ const i = Z(n) ? "alias" : "scalar";
138
+ throw new Error(`Cannot replace node with ${i} parent`);
139
+ }
140
+ }
141
+ const Bs = {
142
+ "!": "%21",
143
+ ",": "%2C",
144
+ "[": "%5B",
145
+ "]": "%5D",
146
+ "{": "%7B",
147
+ "}": "%7D"
148
+ }, Ms = (s) => s.replace(/[!,[\]{}]/g, (e) => Bs[e]);
149
+ class B {
150
+ constructor(e, t) {
151
+ this.docStart = null, this.docEnd = !1, this.yaml = Object.assign({}, B.defaultYaml, e), this.tags = Object.assign({}, B.defaultTags, t);
152
+ }
153
+ clone() {
154
+ const e = new B(this.yaml, this.tags);
155
+ return e.docStart = this.docStart, e;
156
+ }
157
+ /**
158
+ * During parsing, get a Directives instance for the current document and
159
+ * update the stream state according to the current version's spec.
160
+ */
161
+ atDocument() {
162
+ const e = new B(this.yaml, this.tags);
163
+ switch (this.yaml.version) {
164
+ case "1.1":
165
+ this.atNextDocument = !0;
166
+ break;
167
+ case "1.2":
168
+ this.atNextDocument = !1, this.yaml = {
169
+ explicit: B.defaultYaml.explicit,
170
+ version: "1.2"
171
+ }, this.tags = Object.assign({}, B.defaultTags);
172
+ break;
173
+ }
174
+ return e;
175
+ }
176
+ /**
177
+ * @param onError - May be called even if the action was successful
178
+ * @returns `true` on success
179
+ */
180
+ add(e, t) {
181
+ this.atNextDocument && (this.yaml = { explicit: B.defaultYaml.explicit, version: "1.1" }, this.tags = Object.assign({}, B.defaultTags), this.atNextDocument = !1);
182
+ const n = e.trim().split(/[ \t]+/), i = n.shift();
183
+ switch (i) {
184
+ case "%TAG": {
185
+ if (n.length !== 2 && (t(0, "%TAG directive should contain exactly two parts"), n.length < 2))
186
+ return !1;
187
+ const [r, o] = n;
188
+ return this.tags[r] = o, !0;
189
+ }
190
+ case "%YAML": {
191
+ if (this.yaml.explicit = !0, n.length !== 1)
192
+ return t(0, "%YAML directive should contain exactly one part"), !1;
193
+ const [r] = n;
194
+ if (r === "1.1" || r === "1.2")
195
+ return this.yaml.version = r, !0;
196
+ {
197
+ const o = /^\d+\.\d+$/.test(r);
198
+ return t(6, `Unsupported YAML version ${r}`, o), !1;
199
+ }
200
+ }
201
+ default:
202
+ return t(0, `Unknown directive ${i}`, !0), !1;
203
+ }
204
+ }
205
+ /**
206
+ * Resolves a tag, matching handles to those defined in %TAG directives.
207
+ *
208
+ * @returns Resolved tag, which may also be the non-specific tag `'!'` or a
209
+ * `'!local'` tag, or `null` if unresolvable.
210
+ */
211
+ tagName(e, t) {
212
+ if (e === "!")
213
+ return "!";
214
+ if (e[0] !== "!")
215
+ return t(`Not a valid tag: ${e}`), null;
216
+ if (e[1] === "<") {
217
+ const o = e.slice(2, -1);
218
+ return o === "!" || o === "!!" ? (t(`Verbatim tags aren't resolved, so ${e} is invalid.`), null) : (e[e.length - 1] !== ">" && t("Verbatim tags must end with a >"), o);
219
+ }
220
+ const [, n, i] = e.match(/^(.*!)([^!]*)$/s);
221
+ i || t(`The ${e} tag has no suffix`);
222
+ const r = this.tags[n];
223
+ if (r)
224
+ try {
225
+ return r + decodeURIComponent(i);
226
+ } catch (o) {
227
+ return t(String(o)), null;
228
+ }
229
+ return n === "!" ? e : (t(`Could not resolve tag: ${e}`), null);
230
+ }
231
+ /**
232
+ * Given a fully resolved tag, returns its printable string form,
233
+ * taking into account current tag prefixes and defaults.
234
+ */
235
+ tagString(e) {
236
+ for (const [t, n] of Object.entries(this.tags))
237
+ if (e.startsWith(n))
238
+ return t + Ms(e.substring(n.length));
239
+ return e[0] === "!" ? e : `!<${e}>`;
240
+ }
241
+ toString(e) {
242
+ const t = this.yaml.explicit ? [`%YAML ${this.yaml.version || "1.2"}`] : [], n = Object.entries(this.tags);
243
+ let i;
244
+ if (e && n.length > 0 && $(e.contents)) {
245
+ const r = {};
246
+ Q(e.contents, (o, l) => {
247
+ $(l) && l.tag && (r[l.tag] = !0);
248
+ }), i = Object.keys(r);
249
+ } else
250
+ i = [];
251
+ for (const [r, o] of n)
252
+ r === "!!" && o === "tag:yaml.org,2002:" || (!e || i.some((l) => l.startsWith(o))) && t.push(`%TAG ${r} ${o}`);
253
+ return t.join(`
254
+ `);
255
+ }
256
+ }
257
+ B.defaultYaml = { explicit: !1, version: "1.2" };
258
+ B.defaultTags = { "!!": "tag:yaml.org,2002:" };
259
+ function Jt(s) {
260
+ if (/[\x00-\x19\s,[\]{}]/.test(s)) {
261
+ const t = `Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;
262
+ throw new Error(t);
263
+ }
264
+ return !0;
265
+ }
266
+ function Yt(s) {
267
+ const e = /* @__PURE__ */ new Set();
268
+ return Q(s, {
269
+ Value(t, n) {
270
+ n.anchor && e.add(n.anchor);
271
+ }
272
+ }), e;
273
+ }
274
+ function Gt(s, e) {
275
+ for (let t = 1; ; ++t) {
276
+ const n = `${s}${t}`;
277
+ if (!e.has(n))
278
+ return n;
279
+ }
280
+ }
281
+ function Ks(s, e) {
282
+ const t = [], n = /* @__PURE__ */ new Map();
283
+ let i = null;
284
+ return {
285
+ onAnchor: (r) => {
286
+ t.push(r), i || (i = Yt(s));
287
+ const o = Gt(e, i);
288
+ return i.add(o), o;
289
+ },
290
+ /**
291
+ * With circular references, the source node is only resolved after all
292
+ * of its child nodes are. This is why anchors are set only after all of
293
+ * the nodes have been created.
294
+ */
295
+ setAnchors: () => {
296
+ for (const r of t) {
297
+ const o = n.get(r);
298
+ if (typeof o == "object" && o.anchor && (E(o.node) || L(o.node)))
299
+ o.node.anchor = o.anchor;
300
+ else {
301
+ const l = new Error("Failed to resolve repeated object (this should not happen)");
302
+ throw l.source = r, l;
303
+ }
304
+ }
305
+ },
306
+ sourceObjects: n
307
+ };
308
+ }
309
+ function oe(s, e, t, n) {
310
+ if (n && typeof n == "object")
311
+ if (Array.isArray(n))
312
+ for (let i = 0, r = n.length; i < r; ++i) {
313
+ const o = n[i], l = oe(s, n, String(i), o);
314
+ l === void 0 ? delete n[i] : l !== o && (n[i] = l);
315
+ }
316
+ else if (n instanceof Map)
317
+ for (const i of Array.from(n.keys())) {
318
+ const r = n.get(i), o = oe(s, n, i, r);
319
+ o === void 0 ? n.delete(i) : o !== r && n.set(i, o);
320
+ }
321
+ else if (n instanceof Set)
322
+ for (const i of Array.from(n)) {
323
+ const r = oe(s, n, i, i);
324
+ r === void 0 ? n.delete(i) : r !== i && (n.delete(i), n.add(r));
325
+ }
326
+ else
327
+ for (const [i, r] of Object.entries(n)) {
328
+ const o = oe(s, n, i, r);
329
+ o === void 0 ? delete n[i] : o !== r && (n[i] = o);
330
+ }
331
+ return s.call(e, t, n);
332
+ }
333
+ function j(s, e, t) {
334
+ if (Array.isArray(s))
335
+ return s.map((n, i) => j(n, String(i), t));
336
+ if (s && typeof s.toJSON == "function") {
337
+ if (!t || !vs(s))
338
+ return s.toJSON(e, t);
339
+ const n = { aliasCount: 0, count: 1, res: void 0 };
340
+ t.anchors.set(s, n), t.onCreate = (r) => {
341
+ n.res = r, delete t.onCreate;
342
+ };
343
+ const i = s.toJSON(e, t);
344
+ return t.onCreate && t.onCreate(i), i;
345
+ }
346
+ return typeof s == "bigint" && !t?.keep ? Number(s) : s;
347
+ }
348
+ class pt {
349
+ constructor(e) {
350
+ Object.defineProperty(this, P, { value: e });
351
+ }
352
+ /** Create a copy of this node. */
353
+ clone() {
354
+ const e = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
355
+ return this.range && (e.range = this.range.slice()), e;
356
+ }
357
+ /** A plain JavaScript representation of this node. */
358
+ toJS(e, { mapAsMap: t, maxAliasCount: n, onAnchor: i, reviver: r } = {}) {
359
+ if (!ee(e))
360
+ throw new TypeError("A document argument is required");
361
+ const o = {
362
+ anchors: /* @__PURE__ */ new Map(),
363
+ doc: e,
364
+ keep: !0,
365
+ mapAsMap: t === !0,
366
+ mapKeyWarned: !1,
367
+ maxAliasCount: typeof n == "number" ? n : 100
368
+ }, l = j(this, "", o);
369
+ if (typeof i == "function")
370
+ for (const { count: a, res: c } of o.anchors.values())
371
+ i(c, a);
372
+ return typeof r == "function" ? oe(r, { "": l }, "", l) : l;
373
+ }
374
+ }
375
+ class Re extends pt {
376
+ constructor(e) {
377
+ super(dt), this.source = e, Object.defineProperty(this, "tag", {
378
+ set() {
379
+ throw new Error("Alias nodes cannot have tags");
380
+ }
381
+ });
382
+ }
383
+ /**
384
+ * Resolve the value of this alias within `doc`, finding the last
385
+ * instance of the `source` anchor before this node.
386
+ */
387
+ resolve(e) {
388
+ let t;
389
+ return Q(e, {
390
+ Node: (n, i) => {
391
+ if (i === this)
392
+ return Q.BREAK;
393
+ i.anchor === this.source && (t = i);
394
+ }
395
+ }), t;
396
+ }
397
+ toJSON(e, t) {
398
+ if (!t)
399
+ return { source: this.source };
400
+ const { anchors: n, doc: i, maxAliasCount: r } = t, o = this.resolve(i);
401
+ if (!o) {
402
+ const a = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
403
+ throw new ReferenceError(a);
404
+ }
405
+ let l = n.get(o);
406
+ if (l || (j(o, null, t), l = n.get(o)), !l || l.res === void 0) {
407
+ const a = "This should not happen: Alias anchor was not resolved?";
408
+ throw new ReferenceError(a);
409
+ }
410
+ if (r >= 0 && (l.count += 1, l.aliasCount === 0 && (l.aliasCount = ve(i, o, n)), l.count * l.aliasCount > r)) {
411
+ const a = "Excessive alias count indicates a resource exhaustion attack";
412
+ throw new ReferenceError(a);
413
+ }
414
+ return l.res;
415
+ }
416
+ toString(e, t, n) {
417
+ const i = `*${this.source}`;
418
+ if (e) {
419
+ if (Jt(this.source), e.options.verifyAliasOrder && !e.anchors.has(this.source)) {
420
+ const r = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
421
+ throw new Error(r);
422
+ }
423
+ if (e.implicitKey)
424
+ return `${i} `;
425
+ }
426
+ return i;
427
+ }
428
+ }
429
+ function ve(s, e, t) {
430
+ if (Z(e)) {
431
+ const n = e.resolve(s), i = t && n && t.get(n);
432
+ return i ? i.count * i.aliasCount : 0;
433
+ } else if (L(e)) {
434
+ let n = 0;
435
+ for (const i of e.items) {
436
+ const r = ve(s, i, t);
437
+ r > n && (n = r);
438
+ }
439
+ return n;
440
+ } else if (T(e)) {
441
+ const n = ve(s, e.key, t), i = ve(s, e.value, t);
442
+ return Math.max(n, i);
443
+ }
444
+ return 1;
445
+ }
446
+ const Qt = (s) => !s || typeof s != "function" && typeof s != "object";
447
+ class O extends pt {
448
+ constructor(e) {
449
+ super(R), this.value = e;
450
+ }
451
+ toJSON(e, t) {
452
+ return t?.keep ? this.value : j(this.value, e, t);
453
+ }
454
+ toString() {
455
+ return String(this.value);
456
+ }
457
+ }
458
+ O.BLOCK_FOLDED = "BLOCK_FOLDED";
459
+ O.BLOCK_LITERAL = "BLOCK_LITERAL";
460
+ O.PLAIN = "PLAIN";
461
+ O.QUOTE_DOUBLE = "QUOTE_DOUBLE";
462
+ O.QUOTE_SINGLE = "QUOTE_SINGLE";
463
+ const js = "tag:yaml.org,2002:";
464
+ function Ps(s, e, t) {
465
+ if (e) {
466
+ const n = t.filter((r) => r.tag === e), i = n.find((r) => !r.format) ?? n[0];
467
+ if (!i)
468
+ throw new Error(`Tag ${e} not found`);
469
+ return i;
470
+ }
471
+ return t.find((n) => n.identify?.(s) && !n.format);
472
+ }
473
+ function ke(s, e, t) {
474
+ if (ee(s) && (s = s.contents), $(s))
475
+ return s;
476
+ if (T(s)) {
477
+ const f = t.schema[G].createNode?.(t.schema, null, t);
478
+ return f.items.push(s), f;
479
+ }
480
+ (s instanceof String || s instanceof Number || s instanceof Boolean || typeof BigInt < "u" && s instanceof BigInt) && (s = s.valueOf());
481
+ const { aliasDuplicateObjects: n, onAnchor: i, onTagObj: r, schema: o, sourceObjects: l } = t;
482
+ let a;
483
+ if (n && s && typeof s == "object") {
484
+ if (a = l.get(s), a)
485
+ return a.anchor || (a.anchor = i(s)), new Re(a.anchor);
486
+ a = { anchor: null, node: null }, l.set(s, a);
487
+ }
488
+ e?.startsWith("!!") && (e = js + e.slice(2));
489
+ let c = Ps(s, e, o.tags);
490
+ if (!c) {
491
+ if (s && typeof s.toJSON == "function" && (s = s.toJSON()), !s || typeof s != "object") {
492
+ const f = new O(s);
493
+ return a && (a.node = f), f;
494
+ }
495
+ c = s instanceof Map ? o[G] : Symbol.iterator in Object(s) ? o[he] : o[G];
496
+ }
497
+ r && (r(c), delete t.onTagObj);
498
+ const d = c?.createNode ? c.createNode(t.schema, s, t) : typeof c?.nodeClass?.from == "function" ? c.nodeClass.from(t.schema, s, t) : new O(s);
499
+ return e ? d.tag = e : c.default || (d.tag = c.tag), a && (a.node = d), d;
500
+ }
501
+ function je(s, e, t) {
502
+ let n = t;
503
+ for (let i = e.length - 1; i >= 0; --i) {
504
+ const r = e[i];
505
+ if (typeof r == "number" && Number.isInteger(r) && r >= 0) {
506
+ const o = [];
507
+ o[r] = n, n = o;
508
+ } else
509
+ n = /* @__PURE__ */ new Map([[r, n]]);
510
+ }
511
+ return ke(n, void 0, {
512
+ aliasDuplicateObjects: !1,
513
+ keepUndefined: !1,
514
+ onAnchor: () => {
515
+ throw new Error("This should not happen, please report a bug.");
516
+ },
517
+ schema: s,
518
+ sourceObjects: /* @__PURE__ */ new Map()
519
+ });
520
+ }
521
+ const we = (s) => s == null || typeof s == "object" && !!s[Symbol.iterator]().next().done;
522
+ class Wt extends pt {
523
+ constructor(e, t) {
524
+ super(e), Object.defineProperty(this, "schema", {
525
+ value: t,
526
+ configurable: !0,
527
+ enumerable: !1,
528
+ writable: !0
529
+ });
530
+ }
531
+ /**
532
+ * Create a copy of this collection.
533
+ *
534
+ * @param schema - If defined, overwrites the original's schema
535
+ */
536
+ clone(e) {
537
+ const t = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
538
+ return e && (t.schema = e), t.items = t.items.map((n) => $(n) || T(n) ? n.clone(e) : n), this.range && (t.range = this.range.slice()), t;
539
+ }
540
+ /**
541
+ * Adds a value to the collection. For `!!map` and `!!omap` the value must
542
+ * be a Pair instance or a `{ key, value }` object, which may not have a key
543
+ * that already exists in the map.
544
+ */
545
+ addIn(e, t) {
546
+ if (we(e))
547
+ this.add(t);
548
+ else {
549
+ const [n, ...i] = e, r = this.get(n, !0);
550
+ if (L(r))
551
+ r.addIn(i, t);
552
+ else if (r === void 0 && this.schema)
553
+ this.set(n, je(this.schema, i, t));
554
+ else
555
+ throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`);
556
+ }
557
+ }
558
+ /**
559
+ * Removes a value from the collection.
560
+ * @returns `true` if the item was found and removed.
561
+ */
562
+ deleteIn(e) {
563
+ const [t, ...n] = e;
564
+ if (n.length === 0)
565
+ return this.delete(t);
566
+ const i = this.get(t, !0);
567
+ if (L(i))
568
+ return i.deleteIn(n);
569
+ throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`);
570
+ }
571
+ /**
572
+ * Returns item at `key`, or `undefined` if not found. By default unwraps
573
+ * scalar values from their surrounding node; to disable set `keepScalar` to
574
+ * `true` (collections are always returned intact).
575
+ */
576
+ getIn(e, t) {
577
+ const [n, ...i] = e, r = this.get(n, !0);
578
+ return i.length === 0 ? !t && E(r) ? r.value : r : L(r) ? r.getIn(i, t) : void 0;
579
+ }
580
+ hasAllNullValues(e) {
581
+ return this.items.every((t) => {
582
+ if (!T(t))
583
+ return !1;
584
+ const n = t.value;
585
+ return n == null || e && E(n) && n.value == null && !n.commentBefore && !n.comment && !n.tag;
586
+ });
587
+ }
588
+ /**
589
+ * Checks if the collection includes a value with the key `key`.
590
+ */
591
+ hasIn(e) {
592
+ const [t, ...n] = e;
593
+ if (n.length === 0)
594
+ return this.has(t);
595
+ const i = this.get(t, !0);
596
+ return L(i) ? i.hasIn(n) : !1;
597
+ }
598
+ /**
599
+ * Sets a value in this collection. For `!!set`, `value` needs to be a
600
+ * boolean to add/remove the item from the set.
601
+ */
602
+ setIn(e, t) {
603
+ const [n, ...i] = e;
604
+ if (i.length === 0)
605
+ this.set(n, t);
606
+ else {
607
+ const r = this.get(n, !0);
608
+ if (L(r))
609
+ r.setIn(i, t);
610
+ else if (r === void 0 && this.schema)
611
+ this.set(n, je(this.schema, i, t));
612
+ else
613
+ throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`);
614
+ }
615
+ }
616
+ }
617
+ const Ds = (s) => s.replace(/^(?!$)(?: $)?/gm, "#");
618
+ function U(s, e) {
619
+ return /^\n+$/.test(s) ? s.substring(1) : e ? s.replace(/^(?! *$)/gm, e) : s;
620
+ }
621
+ const H = (s, e, t) => s.endsWith(`
622
+ `) ? U(t, e) : t.includes(`
623
+ `) ? `
624
+ ` + U(t, e) : (s.endsWith(" ") ? "" : " ") + t, Ht = "flow", at = "block", Be = "quoted";
625
+ function Ue(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentWidth: r = 20, onFold: o, onOverflow: l } = {}) {
626
+ if (!i || i < 0)
627
+ return s;
628
+ i < r && (r = 0);
629
+ const a = Math.max(1 + r, 1 + i - e.length);
630
+ if (s.length <= a)
631
+ return s;
632
+ const c = [], d = {};
633
+ let f = i - e.length;
634
+ typeof n == "number" && (n > i - Math.max(2, r) ? c.push(0) : f = i - n);
635
+ let u, m, y = !1, h = -1, p = -1, b = -1;
636
+ t === at && (h = $t(s, h, e.length), h !== -1 && (f = h + a));
637
+ for (let S; S = s[h += 1]; ) {
638
+ if (t === Be && S === "\\") {
639
+ switch (p = h, s[h + 1]) {
640
+ case "x":
641
+ h += 3;
642
+ break;
643
+ case "u":
644
+ h += 5;
645
+ break;
646
+ case "U":
647
+ h += 9;
648
+ break;
649
+ default:
650
+ h += 1;
651
+ }
652
+ b = h;
653
+ }
654
+ if (S === `
655
+ `)
656
+ t === at && (h = $t(s, h, e.length)), f = h + e.length + a, u = void 0;
657
+ else {
658
+ if (S === " " && m && m !== " " && m !== `
659
+ ` && m !== " ") {
660
+ const k = s[h + 1];
661
+ k && k !== " " && k !== `
662
+ ` && k !== " " && (u = h);
663
+ }
664
+ if (h >= f)
665
+ if (u)
666
+ c.push(u), f = u + a, u = void 0;
667
+ else if (t === Be) {
668
+ for (; m === " " || m === " "; )
669
+ m = S, S = s[h += 1], y = !0;
670
+ const k = h > b + 1 ? h - 2 : p - 1;
671
+ if (d[k])
672
+ return s;
673
+ c.push(k), d[k] = !0, f = k + a, u = void 0;
674
+ } else
675
+ y = !0;
676
+ }
677
+ m = S;
678
+ }
679
+ if (y && l && l(), c.length === 0)
680
+ return s;
681
+ o && o();
682
+ let w = s.slice(0, c[0]);
683
+ for (let S = 0; S < c.length; ++S) {
684
+ const k = c[S], N = c[S + 1] || s.length;
685
+ k === 0 ? w = `
686
+ ${e}${s.slice(0, N)}` : (t === Be && d[k] && (w += `${s[k]}\\`), w += `
687
+ ${e}${s.slice(k + 1, N)}`);
688
+ }
689
+ return w;
690
+ }
691
+ function $t(s, e, t) {
692
+ let n = e, i = e + 1, r = s[i];
693
+ for (; r === " " || r === " "; )
694
+ if (e < i + t)
695
+ r = s[++e];
696
+ else {
697
+ do
698
+ r = s[++e];
699
+ while (r && r !== `
700
+ `);
701
+ n = e, i = e + 1, r = s[i];
702
+ }
703
+ return n;
704
+ }
705
+ const Ve = (s, e) => ({
706
+ indentAtStart: e ? s.indent.length : s.indentAtStart,
707
+ lineWidth: s.options.lineWidth,
708
+ minContentWidth: s.options.minContentWidth
709
+ }), Je = (s) => /^(%|---|\.\.\.)/m.test(s);
710
+ function qs(s, e, t) {
711
+ if (!e || e < 0)
712
+ return !1;
713
+ const n = e - t, i = s.length;
714
+ if (i <= n)
715
+ return !1;
716
+ for (let r = 0, o = 0; r < i; ++r)
717
+ if (s[r] === `
718
+ `) {
719
+ if (r - o > n)
720
+ return !0;
721
+ if (o = r + 1, i - o <= n)
722
+ return !1;
723
+ }
724
+ return !0;
725
+ }
726
+ function Se(s, e) {
727
+ const t = JSON.stringify(s);
728
+ if (e.options.doubleQuotedAsJSON)
729
+ return t;
730
+ const { implicitKey: n } = e, i = e.options.doubleQuotedMinMultiLineLength, r = e.indent || (Je(s) ? " " : "");
731
+ let o = "", l = 0;
732
+ for (let a = 0, c = t[a]; c; c = t[++a])
733
+ if (c === " " && t[a + 1] === "\\" && t[a + 2] === "n" && (o += t.slice(l, a) + "\\ ", a += 1, l = a, c = "\\"), c === "\\")
734
+ switch (t[a + 1]) {
735
+ case "u":
736
+ {
737
+ o += t.slice(l, a);
738
+ const d = t.substr(a + 2, 4);
739
+ switch (d) {
740
+ case "0000":
741
+ o += "\\0";
742
+ break;
743
+ case "0007":
744
+ o += "\\a";
745
+ break;
746
+ case "000b":
747
+ o += "\\v";
748
+ break;
749
+ case "001b":
750
+ o += "\\e";
751
+ break;
752
+ case "0085":
753
+ o += "\\N";
754
+ break;
755
+ case "00a0":
756
+ o += "\\_";
757
+ break;
758
+ case "2028":
759
+ o += "\\L";
760
+ break;
761
+ case "2029":
762
+ o += "\\P";
763
+ break;
764
+ default:
765
+ d.substr(0, 2) === "00" ? o += "\\x" + d.substr(2) : o += t.substr(a, 6);
766
+ }
767
+ a += 5, l = a + 1;
768
+ }
769
+ break;
770
+ case "n":
771
+ if (n || t[a + 2] === '"' || t.length < i)
772
+ a += 1;
773
+ else {
774
+ for (o += t.slice(l, a) + `
775
+
776
+ `; t[a + 2] === "\\" && t[a + 3] === "n" && t[a + 4] !== '"'; )
777
+ o += `
778
+ `, a += 2;
779
+ o += r, t[a + 2] === " " && (o += "\\"), a += 1, l = a + 1;
780
+ }
781
+ break;
782
+ default:
783
+ a += 1;
784
+ }
785
+ return o = l ? o + t.slice(l) : t, n ? o : Ue(o, r, Be, Ve(e, !1));
786
+ }
787
+ function ct(s, e) {
788
+ if (e.options.singleQuote === !1 || e.implicitKey && s.includes(`
789
+ `) || /[ \t]\n|\n[ \t]/.test(s))
790
+ return Se(s, e);
791
+ const t = e.indent || (Je(s) ? " " : ""), n = "'" + s.replace(/'/g, "''").replace(/\n+/g, `$&
792
+ ${t}`) + "'";
793
+ return e.implicitKey ? n : Ue(n, t, Ht, Ve(e, !1));
794
+ }
795
+ function le(s, e) {
796
+ const { singleQuote: t } = e.options;
797
+ let n;
798
+ if (t === !1)
799
+ n = Se;
800
+ else {
801
+ const i = s.includes('"'), r = s.includes("'");
802
+ i && !r ? n = ct : r && !i ? n = Se : n = t ? ct : Se;
803
+ }
804
+ return n(s, e);
805
+ }
806
+ let ft;
807
+ try {
808
+ ft = new RegExp(`(^|(?<!
809
+ ))
810
+ +(?!
811
+ |$)`, "g");
812
+ } catch {
813
+ ft = /\n+(?!\n|$)/g;
814
+ }
815
+ function Me({ comment: s, type: e, value: t }, n, i, r) {
816
+ const { blockQuote: o, commentString: l, lineWidth: a } = n.options;
817
+ if (!o || /\n[\t ]+$/.test(t) || /^\s*$/.test(t))
818
+ return le(t, n);
819
+ const c = n.indent || (n.forceBlockIndent || Je(t) ? " " : ""), d = o === "literal" ? !0 : o === "folded" || e === O.BLOCK_FOLDED ? !1 : e === O.BLOCK_LITERAL ? !0 : !qs(t, a, c.length);
820
+ if (!t)
821
+ return d ? `|
822
+ ` : `>
823
+ `;
824
+ let f, u;
825
+ for (u = t.length; u > 0; --u) {
826
+ const N = t[u - 1];
827
+ if (N !== `
828
+ ` && N !== " " && N !== " ")
829
+ break;
830
+ }
831
+ let m = t.substring(u);
832
+ const y = m.indexOf(`
833
+ `);
834
+ y === -1 ? f = "-" : t === m || y !== m.length - 1 ? (f = "+", r && r()) : f = "", m && (t = t.slice(0, -m.length), m[m.length - 1] === `
835
+ ` && (m = m.slice(0, -1)), m = m.replace(ft, `$&${c}`));
836
+ let h = !1, p, b = -1;
837
+ for (p = 0; p < t.length; ++p) {
838
+ const N = t[p];
839
+ if (N === " ")
840
+ h = !0;
841
+ else if (N === `
842
+ `)
843
+ b = p;
844
+ else
845
+ break;
846
+ }
847
+ let w = t.substring(0, b < p ? b + 1 : p);
848
+ w && (t = t.substring(w.length), w = w.replace(/\n+/g, `$&${c}`));
849
+ let k = (h ? c ? "2" : "1" : "") + f;
850
+ if (s && (k += " " + l(s.replace(/ ?[\r\n]+/g, " ")), i && i()), !d) {
851
+ const N = t.replace(/\n+/g, `
852
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${c}`);
853
+ let A = !1;
854
+ const I = Ve(n, !0);
855
+ o !== "folded" && e !== O.BLOCK_FOLDED && (I.onOverflow = () => {
856
+ A = !0;
857
+ });
858
+ const g = Ue(`${w}${N}${m}`, c, at, I);
859
+ if (!A)
860
+ return `>${k}
861
+ ${c}${g}`;
862
+ }
863
+ return t = t.replace(/\n+/g, `$&${c}`), `|${k}
864
+ ${c}${w}${t}${m}`;
865
+ }
866
+ function Fs(s, e, t, n) {
867
+ const { type: i, value: r } = s, { actualString: o, implicitKey: l, indent: a, indentStep: c, inFlow: d } = e;
868
+ if (l && r.includes(`
869
+ `) || d && /[[\]{},]/.test(r))
870
+ return le(r, e);
871
+ if (!r || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))
872
+ return l || d || !r.includes(`
873
+ `) ? le(r, e) : Me(s, e, t, n);
874
+ if (!l && !d && i !== O.PLAIN && r.includes(`
875
+ `))
876
+ return Me(s, e, t, n);
877
+ if (Je(r)) {
878
+ if (a === "")
879
+ return e.forceBlockIndent = !0, Me(s, e, t, n);
880
+ if (l && a === c)
881
+ return le(r, e);
882
+ }
883
+ const f = r.replace(/\n+/g, `$&
884
+ ${a}`);
885
+ if (o) {
886
+ const u = (h) => h.default && h.tag !== "tag:yaml.org,2002:str" && h.test?.test(f), { compat: m, tags: y } = e.doc.schema;
887
+ if (y.some(u) || m?.some(u))
888
+ return le(r, e);
889
+ }
890
+ return l ? f : Ue(f, a, Ht, Ve(e, !1));
891
+ }
892
+ function Ae(s, e, t, n) {
893
+ const { implicitKey: i, inFlow: r } = e, o = typeof s.value == "string" ? s : Object.assign({}, s, { value: String(s.value) });
894
+ let { type: l } = s;
895
+ l !== O.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value) && (l = O.QUOTE_DOUBLE);
896
+ const a = (d) => {
897
+ switch (d) {
898
+ case O.BLOCK_FOLDED:
899
+ case O.BLOCK_LITERAL:
900
+ return i || r ? le(o.value, e) : Me(o, e, t, n);
901
+ case O.QUOTE_DOUBLE:
902
+ return Se(o.value, e);
903
+ case O.QUOTE_SINGLE:
904
+ return ct(o.value, e);
905
+ case O.PLAIN:
906
+ return Fs(o, e, t, n);
907
+ default:
908
+ return null;
909
+ }
910
+ };
911
+ let c = a(l);
912
+ if (c === null) {
913
+ const { defaultKeyType: d, defaultStringType: f } = e.options, u = i && d || f;
914
+ if (c = a(u), c === null)
915
+ throw new Error(`Unsupported default string type ${u}`);
916
+ }
917
+ return c;
918
+ }
919
+ function Xt(s, e) {
920
+ const t = Object.assign({
921
+ blockQuote: !0,
922
+ commentString: Ds,
923
+ defaultKeyType: null,
924
+ defaultStringType: "PLAIN",
925
+ directives: null,
926
+ doubleQuotedAsJSON: !1,
927
+ doubleQuotedMinMultiLineLength: 40,
928
+ falseStr: "false",
929
+ flowCollectionPadding: !0,
930
+ indentSeq: !0,
931
+ lineWidth: 80,
932
+ minContentWidth: 20,
933
+ nullStr: "null",
934
+ simpleKeys: !1,
935
+ singleQuote: null,
936
+ trueStr: "true",
937
+ verifyAliasOrder: !0
938
+ }, s.schema.toStringOptions, e);
939
+ let n;
940
+ switch (t.collectionStyle) {
941
+ case "block":
942
+ n = !1;
943
+ break;
944
+ case "flow":
945
+ n = !0;
946
+ break;
947
+ default:
948
+ n = null;
949
+ }
950
+ return {
951
+ anchors: /* @__PURE__ */ new Set(),
952
+ doc: s,
953
+ flowCollectionPadding: t.flowCollectionPadding ? " " : "",
954
+ indent: "",
955
+ indentStep: typeof t.indent == "number" ? " ".repeat(t.indent) : " ",
956
+ inFlow: n,
957
+ options: t
958
+ };
959
+ }
960
+ function Rs(s, e) {
961
+ if (e.tag) {
962
+ const i = s.filter((r) => r.tag === e.tag);
963
+ if (i.length > 0)
964
+ return i.find((r) => r.format === e.format) ?? i[0];
965
+ }
966
+ let t, n;
967
+ if (E(e)) {
968
+ n = e.value;
969
+ let i = s.filter((r) => r.identify?.(n));
970
+ if (i.length > 1) {
971
+ const r = i.filter((o) => o.test);
972
+ r.length > 0 && (i = r);
973
+ }
974
+ t = i.find((r) => r.format === e.format) ?? i.find((r) => !r.format);
975
+ } else
976
+ n = e, t = s.find((i) => i.nodeClass && n instanceof i.nodeClass);
977
+ if (!t) {
978
+ const i = n?.constructor?.name ?? typeof n;
979
+ throw new Error(`Tag not resolved for ${i} value`);
980
+ }
981
+ return t;
982
+ }
983
+ function Us(s, e, { anchors: t, doc: n }) {
984
+ if (!n.directives)
985
+ return "";
986
+ const i = [], r = (E(s) || L(s)) && s.anchor;
987
+ r && Jt(r) && (t.add(r), i.push(`&${r}`));
988
+ const o = s.tag ? s.tag : e.default ? null : e.tag;
989
+ return o && i.push(n.directives.tagString(o)), i.join(" ");
990
+ }
991
+ function fe(s, e, t, n) {
992
+ if (T(s))
993
+ return s.toString(e, t, n);
994
+ if (Z(s)) {
995
+ if (e.doc.directives)
996
+ return s.toString(e);
997
+ if (e.resolvedAliases?.has(s))
998
+ throw new TypeError("Cannot stringify circular structure without alias nodes");
999
+ e.resolvedAliases ? e.resolvedAliases.add(s) : e.resolvedAliases = /* @__PURE__ */ new Set([s]), s = s.resolve(e.doc);
1000
+ }
1001
+ let i;
1002
+ const r = $(s) ? s : e.doc.createNode(s, { onTagObj: (a) => i = a });
1003
+ i || (i = Rs(e.doc.schema.tags, r));
1004
+ const o = Us(r, i, e);
1005
+ o.length > 0 && (e.indentAtStart = (e.indentAtStart ?? 0) + o.length + 1);
1006
+ const l = typeof i.stringify == "function" ? i.stringify(r, e, t, n) : E(r) ? Ae(r, e, t, n) : r.toString(e, t, n);
1007
+ return o ? E(r) || l[0] === "{" || l[0] === "[" ? `${o} ${l}` : `${o}
1008
+ ${e.indent}${l}` : l;
1009
+ }
1010
+ function Vs({ key: s, value: e }, t, n, i) {
1011
+ const { allNullValues: r, doc: o, indent: l, indentStep: a, options: { commentString: c, indentSeq: d, simpleKeys: f } } = t;
1012
+ let u = $(s) && s.comment || null;
1013
+ if (f) {
1014
+ if (u)
1015
+ throw new Error("With simple keys, key nodes cannot have comments");
1016
+ if (L(s) || !$(s) && typeof s == "object") {
1017
+ const I = "With simple keys, collection cannot be used as a key value";
1018
+ throw new Error(I);
1019
+ }
1020
+ }
1021
+ let m = !f && (!s || u && e == null && !t.inFlow || L(s) || (E(s) ? s.type === O.BLOCK_FOLDED || s.type === O.BLOCK_LITERAL : typeof s == "object"));
1022
+ t = Object.assign({}, t, {
1023
+ allNullValues: !1,
1024
+ implicitKey: !m && (f || !r),
1025
+ indent: l + a
1026
+ });
1027
+ let y = !1, h = !1, p = fe(s, t, () => y = !0, () => h = !0);
1028
+ if (!m && !t.inFlow && p.length > 1024) {
1029
+ if (f)
1030
+ throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
1031
+ m = !0;
1032
+ }
1033
+ if (t.inFlow) {
1034
+ if (r || e == null)
1035
+ return y && n && n(), p === "" ? "?" : m ? `? ${p}` : p;
1036
+ } else if (r && !f || e == null && m)
1037
+ return p = `? ${p}`, u && !y ? p += H(p, t.indent, c(u)) : h && i && i(), p;
1038
+ y && (u = null), m ? (u && (p += H(p, t.indent, c(u))), p = `? ${p}
1039
+ ${l}:`) : (p = `${p}:`, u && (p += H(p, t.indent, c(u))));
1040
+ let b, w, S;
1041
+ $(e) ? (b = !!e.spaceBefore, w = e.commentBefore, S = e.comment) : (b = !1, w = null, S = null, e && typeof e == "object" && (e = o.createNode(e))), t.implicitKey = !1, !m && !u && E(e) && (t.indentAtStart = p.length + 1), h = !1, !d && a.length >= 2 && !t.inFlow && !m && pe(e) && !e.flow && !e.tag && !e.anchor && (t.indent = t.indent.substring(2));
1042
+ let k = !1;
1043
+ const N = fe(e, t, () => k = !0, () => h = !0);
1044
+ let A = " ";
1045
+ if (u || b || w) {
1046
+ if (A = b ? `
1047
+ ` : "", w) {
1048
+ const I = c(w);
1049
+ A += `
1050
+ ${U(I, t.indent)}`;
1051
+ }
1052
+ N === "" && !t.inFlow ? A === `
1053
+ ` && (A = `
1054
+
1055
+ `) : A += `
1056
+ ${t.indent}`;
1057
+ } else if (!m && L(e)) {
1058
+ const I = N[0], g = N.indexOf(`
1059
+ `), _ = g !== -1, J = t.inFlow ?? e.flow ?? e.items.length === 0;
1060
+ if (_ || !J) {
1061
+ let te = !1;
1062
+ if (_ && (I === "&" || I === "!")) {
1063
+ let C = N.indexOf(" ");
1064
+ I === "&" && C !== -1 && C < g && N[C + 1] === "!" && (C = N.indexOf(" ", C + 1)), (C === -1 || g < C) && (te = !0);
1065
+ }
1066
+ te || (A = `
1067
+ ${t.indent}`);
1068
+ }
1069
+ } else (N === "" || N[0] === `
1070
+ `) && (A = "");
1071
+ return p += A + N, t.inFlow ? k && n && n() : S && !k ? p += H(p, t.indent, c(S)) : h && i && i(), p;
1072
+ }
1073
+ function zt(s, e) {
1074
+ (s === "debug" || s === "warn") && console.warn(e);
1075
+ }
1076
+ const Te = "<<", V = {
1077
+ identify: (s) => s === Te || typeof s == "symbol" && s.description === Te,
1078
+ default: "key",
1079
+ tag: "tag:yaml.org,2002:merge",
1080
+ test: /^<<$/,
1081
+ resolve: () => Object.assign(new O(Symbol(Te)), {
1082
+ addToJSMap: xt
1083
+ }),
1084
+ stringify: () => Te
1085
+ }, Js = (s, e) => (V.identify(e) || E(e) && (!e.type || e.type === O.PLAIN) && V.identify(e.value)) && s?.doc.schema.tags.some((t) => t.tag === V.tag && t.default);
1086
+ function xt(s, e, t) {
1087
+ if (t = s && Z(t) ? t.resolve(s.doc) : t, pe(t))
1088
+ for (const n of t.items)
1089
+ et(s, e, n);
1090
+ else if (Array.isArray(t))
1091
+ for (const n of t)
1092
+ et(s, e, n);
1093
+ else
1094
+ et(s, e, t);
1095
+ }
1096
+ function et(s, e, t) {
1097
+ const n = s && Z(t) ? t.resolve(s.doc) : t;
1098
+ if (!de(n))
1099
+ throw new Error("Merge sources must be maps or map aliases");
1100
+ const i = n.toJSON(null, s, Map);
1101
+ for (const [r, o] of i)
1102
+ e instanceof Map ? e.has(r) || e.set(r, o) : e instanceof Set ? e.add(r) : Object.prototype.hasOwnProperty.call(e, r) || Object.defineProperty(e, r, {
1103
+ value: o,
1104
+ writable: !0,
1105
+ enumerable: !0,
1106
+ configurable: !0
1107
+ });
1108
+ return e;
1109
+ }
1110
+ function Zt(s, e, { key: t, value: n }) {
1111
+ if ($(t) && t.addToJSMap)
1112
+ t.addToJSMap(s, e, n);
1113
+ else if (Js(s, t))
1114
+ xt(s, e, n);
1115
+ else {
1116
+ const i = j(t, "", s);
1117
+ if (e instanceof Map)
1118
+ e.set(i, j(n, i, s));
1119
+ else if (e instanceof Set)
1120
+ e.add(i);
1121
+ else {
1122
+ const r = Ys(t, i, s), o = j(n, r, s);
1123
+ r in e ? Object.defineProperty(e, r, {
1124
+ value: o,
1125
+ writable: !0,
1126
+ enumerable: !0,
1127
+ configurable: !0
1128
+ }) : e[r] = o;
1129
+ }
1130
+ }
1131
+ return e;
1132
+ }
1133
+ function Ys(s, e, t) {
1134
+ if (e === null)
1135
+ return "";
1136
+ if (typeof e != "object")
1137
+ return String(e);
1138
+ if ($(s) && t?.doc) {
1139
+ const n = Xt(t.doc, {});
1140
+ n.anchors = /* @__PURE__ */ new Set();
1141
+ for (const r of t.anchors.keys())
1142
+ n.anchors.add(r.anchor);
1143
+ n.inFlow = !0, n.inStringifyKey = !0;
1144
+ const i = s.toString(n);
1145
+ if (!t.mapKeyWarned) {
1146
+ let r = JSON.stringify(i);
1147
+ r.length > 40 && (r = r.substring(0, 36) + '..."'), zt(t.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`), t.mapKeyWarned = !0;
1148
+ }
1149
+ return i;
1150
+ }
1151
+ return JSON.stringify(e);
1152
+ }
1153
+ function mt(s, e, t) {
1154
+ const n = ke(s, void 0, t), i = ke(e, void 0, t);
1155
+ return new v(n, i);
1156
+ }
1157
+ class v {
1158
+ constructor(e, t = null) {
1159
+ Object.defineProperty(this, P, { value: qt }), this.key = e, this.value = t;
1160
+ }
1161
+ clone(e) {
1162
+ let { key: t, value: n } = this;
1163
+ return $(t) && (t = t.clone(e)), $(n) && (n = n.clone(e)), new v(t, n);
1164
+ }
1165
+ toJSON(e, t) {
1166
+ const n = t?.mapAsMap ? /* @__PURE__ */ new Map() : {};
1167
+ return Zt(t, n, this);
1168
+ }
1169
+ toString(e, t, n) {
1170
+ return e?.doc ? Vs(this, e, t, n) : JSON.stringify(this);
1171
+ }
1172
+ }
1173
+ function es(s, e, t) {
1174
+ return (e.inFlow ?? s.flow ? Qs : Gs)(s, e, t);
1175
+ }
1176
+ function Gs({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, itemIndent: r, onChompKeep: o, onComment: l }) {
1177
+ const { indent: a, options: { commentString: c } } = t, d = Object.assign({}, t, { indent: r, type: null });
1178
+ let f = !1;
1179
+ const u = [];
1180
+ for (let y = 0; y < e.length; ++y) {
1181
+ const h = e[y];
1182
+ let p = null;
1183
+ if ($(h))
1184
+ !f && h.spaceBefore && u.push(""), Pe(t, u, h.commentBefore, f), h.comment && (p = h.comment);
1185
+ else if (T(h)) {
1186
+ const w = $(h.key) ? h.key : null;
1187
+ w && (!f && w.spaceBefore && u.push(""), Pe(t, u, w.commentBefore, f));
1188
+ }
1189
+ f = !1;
1190
+ let b = fe(h, d, () => p = null, () => f = !0);
1191
+ p && (b += H(b, r, c(p))), f && p && (f = !1), u.push(n + b);
1192
+ }
1193
+ let m;
1194
+ if (u.length === 0)
1195
+ m = i.start + i.end;
1196
+ else {
1197
+ m = u[0];
1198
+ for (let y = 1; y < u.length; ++y) {
1199
+ const h = u[y];
1200
+ m += h ? `
1201
+ ${a}${h}` : `
1202
+ `;
1203
+ }
1204
+ }
1205
+ return s ? (m += `
1206
+ ` + U(c(s), a), l && l()) : f && o && o(), m;
1207
+ }
1208
+ function Qs({ items: s }, e, { flowChars: t, itemIndent: n }) {
1209
+ const { indent: i, indentStep: r, flowCollectionPadding: o, options: { commentString: l } } = e;
1210
+ n += r;
1211
+ const a = Object.assign({}, e, {
1212
+ indent: n,
1213
+ inFlow: !0,
1214
+ type: null
1215
+ });
1216
+ let c = !1, d = 0;
1217
+ const f = [];
1218
+ for (let y = 0; y < s.length; ++y) {
1219
+ const h = s[y];
1220
+ let p = null;
1221
+ if ($(h))
1222
+ h.spaceBefore && f.push(""), Pe(e, f, h.commentBefore, !1), h.comment && (p = h.comment);
1223
+ else if (T(h)) {
1224
+ const w = $(h.key) ? h.key : null;
1225
+ w && (w.spaceBefore && f.push(""), Pe(e, f, w.commentBefore, !1), w.comment && (c = !0));
1226
+ const S = $(h.value) ? h.value : null;
1227
+ S ? (S.comment && (p = S.comment), S.commentBefore && (c = !0)) : h.value == null && w?.comment && (p = w.comment);
1228
+ }
1229
+ p && (c = !0);
1230
+ let b = fe(h, a, () => p = null);
1231
+ y < s.length - 1 && (b += ","), p && (b += H(b, n, l(p))), !c && (f.length > d || b.includes(`
1232
+ `)) && (c = !0), f.push(b), d = f.length;
1233
+ }
1234
+ const { start: u, end: m } = t;
1235
+ if (f.length === 0)
1236
+ return u + m;
1237
+ if (!c) {
1238
+ const y = f.reduce((h, p) => h + p.length + 2, 2);
1239
+ c = e.options.lineWidth > 0 && y > e.options.lineWidth;
1240
+ }
1241
+ if (c) {
1242
+ let y = u;
1243
+ for (const h of f)
1244
+ y += h ? `
1245
+ ${r}${i}${h}` : `
1246
+ `;
1247
+ return `${y}
1248
+ ${i}${m}`;
1249
+ } else
1250
+ return `${u}${o}${f.join(" ")}${o}${m}`;
1251
+ }
1252
+ function Pe({ indent: s, options: { commentString: e } }, t, n, i) {
1253
+ if (n && i && (n = n.replace(/^\n+/, "")), n) {
1254
+ const r = U(e(n), s);
1255
+ t.push(r.trimStart());
1256
+ }
1257
+ }
1258
+ function X(s, e) {
1259
+ const t = E(e) ? e.value : e;
1260
+ for (const n of s)
1261
+ if (T(n) && (n.key === e || n.key === t || E(n.key) && n.key.value === t))
1262
+ return n;
1263
+ }
1264
+ class K extends Wt {
1265
+ static get tagName() {
1266
+ return "tag:yaml.org,2002:map";
1267
+ }
1268
+ constructor(e) {
1269
+ super(G, e), this.items = [];
1270
+ }
1271
+ /**
1272
+ * A generic collection parsing method that can be extended
1273
+ * to other node classes that inherit from YAMLMap
1274
+ */
1275
+ static from(e, t, n) {
1276
+ const { keepUndefined: i, replacer: r } = n, o = new this(e), l = (a, c) => {
1277
+ if (typeof r == "function")
1278
+ c = r.call(t, a, c);
1279
+ else if (Array.isArray(r) && !r.includes(a))
1280
+ return;
1281
+ (c !== void 0 || i) && o.items.push(mt(a, c, n));
1282
+ };
1283
+ if (t instanceof Map)
1284
+ for (const [a, c] of t)
1285
+ l(a, c);
1286
+ else if (t && typeof t == "object")
1287
+ for (const a of Object.keys(t))
1288
+ l(a, t[a]);
1289
+ return typeof e.sortMapEntries == "function" && o.items.sort(e.sortMapEntries), o;
1290
+ }
1291
+ /**
1292
+ * Adds a value to the collection.
1293
+ *
1294
+ * @param overwrite - If not set `true`, using a key that is already in the
1295
+ * collection will throw. Otherwise, overwrites the previous value.
1296
+ */
1297
+ add(e, t) {
1298
+ let n;
1299
+ T(e) ? n = e : !e || typeof e != "object" || !("key" in e) ? n = new v(e, e?.value) : n = new v(e.key, e.value);
1300
+ const i = X(this.items, n.key), r = this.schema?.sortMapEntries;
1301
+ if (i) {
1302
+ if (!t)
1303
+ throw new Error(`Key ${n.key} already set`);
1304
+ E(i.value) && Qt(n.value) ? i.value.value = n.value : i.value = n.value;
1305
+ } else if (r) {
1306
+ const o = this.items.findIndex((l) => r(n, l) < 0);
1307
+ o === -1 ? this.items.push(n) : this.items.splice(o, 0, n);
1308
+ } else
1309
+ this.items.push(n);
1310
+ }
1311
+ delete(e) {
1312
+ const t = X(this.items, e);
1313
+ return t ? this.items.splice(this.items.indexOf(t), 1).length > 0 : !1;
1314
+ }
1315
+ get(e, t) {
1316
+ const i = X(this.items, e)?.value;
1317
+ return (!t && E(i) ? i.value : i) ?? void 0;
1318
+ }
1319
+ has(e) {
1320
+ return !!X(this.items, e);
1321
+ }
1322
+ set(e, t) {
1323
+ this.add(new v(e, t), !0);
1324
+ }
1325
+ /**
1326
+ * @param ctx - Conversion context, originally set in Document#toJS()
1327
+ * @param {Class} Type - If set, forces the returned collection type
1328
+ * @returns Instance of Type, Map, or Object
1329
+ */
1330
+ toJSON(e, t, n) {
1331
+ const i = n ? new n() : t?.mapAsMap ? /* @__PURE__ */ new Map() : {};
1332
+ t?.onCreate && t.onCreate(i);
1333
+ for (const r of this.items)
1334
+ Zt(t, i, r);
1335
+ return i;
1336
+ }
1337
+ toString(e, t, n) {
1338
+ if (!e)
1339
+ return JSON.stringify(this);
1340
+ for (const i of this.items)
1341
+ if (!T(i))
1342
+ throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);
1343
+ return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), es(this, e, {
1344
+ blockItemPrefix: "",
1345
+ flowChars: { start: "{", end: "}" },
1346
+ itemIndent: e.indent || "",
1347
+ onChompKeep: n,
1348
+ onComment: t
1349
+ });
1350
+ }
1351
+ }
1352
+ const me = {
1353
+ collection: "map",
1354
+ default: !0,
1355
+ nodeClass: K,
1356
+ tag: "tag:yaml.org,2002:map",
1357
+ resolve(s, e) {
1358
+ return de(s) || e("Expected a mapping for this tag"), s;
1359
+ },
1360
+ createNode: (s, e, t) => K.from(s, e, t)
1361
+ };
1362
+ class W extends Wt {
1363
+ static get tagName() {
1364
+ return "tag:yaml.org,2002:seq";
1365
+ }
1366
+ constructor(e) {
1367
+ super(he, e), this.items = [];
1368
+ }
1369
+ add(e) {
1370
+ this.items.push(e);
1371
+ }
1372
+ /**
1373
+ * Removes a value from the collection.
1374
+ *
1375
+ * `key` must contain a representation of an integer for this to succeed.
1376
+ * It may be wrapped in a `Scalar`.
1377
+ *
1378
+ * @returns `true` if the item was found and removed.
1379
+ */
1380
+ delete(e) {
1381
+ const t = Le(e);
1382
+ return typeof t != "number" ? !1 : this.items.splice(t, 1).length > 0;
1383
+ }
1384
+ get(e, t) {
1385
+ const n = Le(e);
1386
+ if (typeof n != "number")
1387
+ return;
1388
+ const i = this.items[n];
1389
+ return !t && E(i) ? i.value : i;
1390
+ }
1391
+ /**
1392
+ * Checks if the collection includes a value with the key `key`.
1393
+ *
1394
+ * `key` must contain a representation of an integer for this to succeed.
1395
+ * It may be wrapped in a `Scalar`.
1396
+ */
1397
+ has(e) {
1398
+ const t = Le(e);
1399
+ return typeof t == "number" && t < this.items.length;
1400
+ }
1401
+ /**
1402
+ * Sets a value in this collection. For `!!set`, `value` needs to be a
1403
+ * boolean to add/remove the item from the set.
1404
+ *
1405
+ * If `key` does not contain a representation of an integer, this will throw.
1406
+ * It may be wrapped in a `Scalar`.
1407
+ */
1408
+ set(e, t) {
1409
+ const n = Le(e);
1410
+ if (typeof n != "number")
1411
+ throw new Error(`Expected a valid index, not ${e}.`);
1412
+ const i = this.items[n];
1413
+ E(i) && Qt(t) ? i.value = t : this.items[n] = t;
1414
+ }
1415
+ toJSON(e, t) {
1416
+ const n = [];
1417
+ t?.onCreate && t.onCreate(n);
1418
+ let i = 0;
1419
+ for (const r of this.items)
1420
+ n.push(j(r, String(i++), t));
1421
+ return n;
1422
+ }
1423
+ toString(e, t, n) {
1424
+ return e ? es(this, e, {
1425
+ blockItemPrefix: "- ",
1426
+ flowChars: { start: "[", end: "]" },
1427
+ itemIndent: (e.indent || "") + " ",
1428
+ onChompKeep: n,
1429
+ onComment: t
1430
+ }) : JSON.stringify(this);
1431
+ }
1432
+ static from(e, t, n) {
1433
+ const { replacer: i } = n, r = new this(e);
1434
+ if (t && Symbol.iterator in Object(t)) {
1435
+ let o = 0;
1436
+ for (let l of t) {
1437
+ if (typeof i == "function") {
1438
+ const a = t instanceof Set ? l : String(o++);
1439
+ l = i.call(t, a, l);
1440
+ }
1441
+ r.items.push(ke(l, void 0, n));
1442
+ }
1443
+ }
1444
+ return r;
1445
+ }
1446
+ }
1447
+ function Le(s) {
1448
+ let e = E(s) ? s.value : s;
1449
+ return e && typeof e == "string" && (e = Number(e)), typeof e == "number" && Number.isInteger(e) && e >= 0 ? e : null;
1450
+ }
1451
+ const ye = {
1452
+ collection: "seq",
1453
+ default: !0,
1454
+ nodeClass: W,
1455
+ tag: "tag:yaml.org,2002:seq",
1456
+ resolve(s, e) {
1457
+ return pe(s) || e("Expected a sequence for this tag"), s;
1458
+ },
1459
+ createNode: (s, e, t) => W.from(s, e, t)
1460
+ }, Ye = {
1461
+ identify: (s) => typeof s == "string",
1462
+ default: !0,
1463
+ tag: "tag:yaml.org,2002:str",
1464
+ resolve: (s) => s,
1465
+ stringify(s, e, t, n) {
1466
+ return e = Object.assign({ actualString: !0 }, e), Ae(s, e, t, n);
1467
+ }
1468
+ }, Ge = {
1469
+ identify: (s) => s == null,
1470
+ createNode: () => new O(null),
1471
+ default: !0,
1472
+ tag: "tag:yaml.org,2002:null",
1473
+ test: /^(?:~|[Nn]ull|NULL)?$/,
1474
+ resolve: () => new O(null),
1475
+ stringify: ({ source: s }, e) => typeof s == "string" && Ge.test.test(s) ? s : e.options.nullStr
1476
+ }, yt = {
1477
+ identify: (s) => typeof s == "boolean",
1478
+ default: !0,
1479
+ tag: "tag:yaml.org,2002:bool",
1480
+ test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
1481
+ resolve: (s) => new O(s[0] === "t" || s[0] === "T"),
1482
+ stringify({ source: s, value: e }, t) {
1483
+ if (s && yt.test.test(s)) {
1484
+ const n = s[0] === "t" || s[0] === "T";
1485
+ if (e === n)
1486
+ return s;
1487
+ }
1488
+ return e ? t.options.trueStr : t.options.falseStr;
1489
+ }
1490
+ };
1491
+ function q({ format: s, minFractionDigits: e, tag: t, value: n }) {
1492
+ if (typeof n == "bigint")
1493
+ return String(n);
1494
+ const i = typeof n == "number" ? n : Number(n);
1495
+ if (!isFinite(i))
1496
+ return isNaN(i) ? ".nan" : i < 0 ? "-.inf" : ".inf";
1497
+ let r = JSON.stringify(n);
1498
+ if (!s && e && (!t || t === "tag:yaml.org,2002:float") && /^\d/.test(r)) {
1499
+ let o = r.indexOf(".");
1500
+ o < 0 && (o = r.length, r += ".");
1501
+ let l = e - (r.length - o - 1);
1502
+ for (; l-- > 0; )
1503
+ r += "0";
1504
+ }
1505
+ return r;
1506
+ }
1507
+ const ts = {
1508
+ identify: (s) => typeof s == "number",
1509
+ default: !0,
1510
+ tag: "tag:yaml.org,2002:float",
1511
+ test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
1512
+ resolve: (s) => s.slice(-3).toLowerCase() === "nan" ? NaN : s[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
1513
+ stringify: q
1514
+ }, ss = {
1515
+ identify: (s) => typeof s == "number",
1516
+ default: !0,
1517
+ tag: "tag:yaml.org,2002:float",
1518
+ format: "EXP",
1519
+ test: /^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,
1520
+ resolve: (s) => parseFloat(s),
1521
+ stringify(s) {
1522
+ const e = Number(s.value);
1523
+ return isFinite(e) ? e.toExponential() : q(s);
1524
+ }
1525
+ }, ns = {
1526
+ identify: (s) => typeof s == "number",
1527
+ default: !0,
1528
+ tag: "tag:yaml.org,2002:float",
1529
+ test: /^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,
1530
+ resolve(s) {
1531
+ const e = new O(parseFloat(s)), t = s.indexOf(".");
1532
+ return t !== -1 && s[s.length - 1] === "0" && (e.minFractionDigits = s.length - t - 1), e;
1533
+ },
1534
+ stringify: q
1535
+ }, Qe = (s) => typeof s == "bigint" || Number.isInteger(s), gt = (s, e, t, { intAsBigInt: n }) => n ? BigInt(s) : parseInt(s.substring(e), t);
1536
+ function is(s, e, t) {
1537
+ const { value: n } = s;
1538
+ return Qe(n) && n >= 0 ? t + n.toString(e) : q(s);
1539
+ }
1540
+ const rs = {
1541
+ identify: (s) => Qe(s) && s >= 0,
1542
+ default: !0,
1543
+ tag: "tag:yaml.org,2002:int",
1544
+ format: "OCT",
1545
+ test: /^0o[0-7]+$/,
1546
+ resolve: (s, e, t) => gt(s, 2, 8, t),
1547
+ stringify: (s) => is(s, 8, "0o")
1548
+ }, os = {
1549
+ identify: Qe,
1550
+ default: !0,
1551
+ tag: "tag:yaml.org,2002:int",
1552
+ test: /^[-+]?[0-9]+$/,
1553
+ resolve: (s, e, t) => gt(s, 0, 10, t),
1554
+ stringify: q
1555
+ }, ls = {
1556
+ identify: (s) => Qe(s) && s >= 0,
1557
+ default: !0,
1558
+ tag: "tag:yaml.org,2002:int",
1559
+ format: "HEX",
1560
+ test: /^0x[0-9a-fA-F]+$/,
1561
+ resolve: (s, e, t) => gt(s, 2, 16, t),
1562
+ stringify: (s) => is(s, 16, "0x")
1563
+ }, Ws = [
1564
+ me,
1565
+ ye,
1566
+ Ye,
1567
+ Ge,
1568
+ yt,
1569
+ rs,
1570
+ os,
1571
+ ls,
1572
+ ts,
1573
+ ss,
1574
+ ns
1575
+ ];
1576
+ function _t(s) {
1577
+ return typeof s == "bigint" || Number.isInteger(s);
1578
+ }
1579
+ const $e = ({ value: s }) => JSON.stringify(s), Hs = [
1580
+ {
1581
+ identify: (s) => typeof s == "string",
1582
+ default: !0,
1583
+ tag: "tag:yaml.org,2002:str",
1584
+ resolve: (s) => s,
1585
+ stringify: $e
1586
+ },
1587
+ {
1588
+ identify: (s) => s == null,
1589
+ createNode: () => new O(null),
1590
+ default: !0,
1591
+ tag: "tag:yaml.org,2002:null",
1592
+ test: /^null$/,
1593
+ resolve: () => null,
1594
+ stringify: $e
1595
+ },
1596
+ {
1597
+ identify: (s) => typeof s == "boolean",
1598
+ default: !0,
1599
+ tag: "tag:yaml.org,2002:bool",
1600
+ test: /^true$|^false$/,
1601
+ resolve: (s) => s === "true",
1602
+ stringify: $e
1603
+ },
1604
+ {
1605
+ identify: _t,
1606
+ default: !0,
1607
+ tag: "tag:yaml.org,2002:int",
1608
+ test: /^-?(?:0|[1-9][0-9]*)$/,
1609
+ resolve: (s, e, { intAsBigInt: t }) => t ? BigInt(s) : parseInt(s, 10),
1610
+ stringify: ({ value: s }) => _t(s) ? s.toString() : JSON.stringify(s)
1611
+ },
1612
+ {
1613
+ identify: (s) => typeof s == "number",
1614
+ default: !0,
1615
+ tag: "tag:yaml.org,2002:float",
1616
+ test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,
1617
+ resolve: (s) => parseFloat(s),
1618
+ stringify: $e
1619
+ }
1620
+ ], Xs = {
1621
+ default: !0,
1622
+ tag: "",
1623
+ test: /^/,
1624
+ resolve(s, e) {
1625
+ return e(`Unresolved plain scalar ${JSON.stringify(s)}`), s;
1626
+ }
1627
+ }, zs = [me, ye].concat(Hs, Xs), bt = {
1628
+ identify: (s) => s instanceof Uint8Array,
1629
+ // Buffer inherits from Uint8Array
1630
+ default: !1,
1631
+ tag: "tag:yaml.org,2002:binary",
1632
+ /**
1633
+ * Returns a Buffer in node and an Uint8Array in browsers
1634
+ *
1635
+ * To use the resulting buffer as an image, you'll want to do something like:
1636
+ *
1637
+ * const blob = new Blob([buffer], { type: 'image/jpeg' })
1638
+ * document.querySelector('#photo').src = URL.createObjectURL(blob)
1639
+ */
1640
+ resolve(s, e) {
1641
+ if (typeof atob == "function") {
1642
+ const t = atob(s.replace(/[\n\r]/g, "")), n = new Uint8Array(t.length);
1643
+ for (let i = 0; i < t.length; ++i)
1644
+ n[i] = t.charCodeAt(i);
1645
+ return n;
1646
+ } else
1647
+ return e("This environment does not support reading binary tags; either Buffer or atob is required"), s;
1648
+ },
1649
+ stringify({ comment: s, type: e, value: t }, n, i, r) {
1650
+ if (!t)
1651
+ return "";
1652
+ const o = t;
1653
+ let l;
1654
+ if (typeof btoa == "function") {
1655
+ let a = "";
1656
+ for (let c = 0; c < o.length; ++c)
1657
+ a += String.fromCharCode(o[c]);
1658
+ l = btoa(a);
1659
+ } else
1660
+ throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");
1661
+ if (e || (e = O.BLOCK_LITERAL), e !== O.QUOTE_DOUBLE) {
1662
+ const a = Math.max(n.options.lineWidth - n.indent.length, n.options.minContentWidth), c = Math.ceil(l.length / a), d = new Array(c);
1663
+ for (let f = 0, u = 0; f < c; ++f, u += a)
1664
+ d[f] = l.substr(u, a);
1665
+ l = d.join(e === O.BLOCK_LITERAL ? `
1666
+ ` : " ");
1667
+ }
1668
+ return Ae({ comment: s, type: e, value: l }, n, i, r);
1669
+ }
1670
+ };
1671
+ function as(s, e) {
1672
+ if (pe(s))
1673
+ for (let t = 0; t < s.items.length; ++t) {
1674
+ let n = s.items[t];
1675
+ if (!T(n)) {
1676
+ if (de(n)) {
1677
+ n.items.length > 1 && e("Each pair must have its own sequence indicator");
1678
+ const i = n.items[0] || new v(new O(null));
1679
+ if (n.commentBefore && (i.key.commentBefore = i.key.commentBefore ? `${n.commentBefore}
1680
+ ${i.key.commentBefore}` : n.commentBefore), n.comment) {
1681
+ const r = i.value ?? i.key;
1682
+ r.comment = r.comment ? `${n.comment}
1683
+ ${r.comment}` : n.comment;
1684
+ }
1685
+ n = i;
1686
+ }
1687
+ s.items[t] = T(n) ? n : new v(n);
1688
+ }
1689
+ }
1690
+ else
1691
+ e("Expected a sequence for this tag");
1692
+ return s;
1693
+ }
1694
+ function cs(s, e, t) {
1695
+ const { replacer: n } = t, i = new W(s);
1696
+ i.tag = "tag:yaml.org,2002:pairs";
1697
+ let r = 0;
1698
+ if (e && Symbol.iterator in Object(e))
1699
+ for (let o of e) {
1700
+ typeof n == "function" && (o = n.call(e, String(r++), o));
1701
+ let l, a;
1702
+ if (Array.isArray(o))
1703
+ if (o.length === 2)
1704
+ l = o[0], a = o[1];
1705
+ else
1706
+ throw new TypeError(`Expected [key, value] tuple: ${o}`);
1707
+ else if (o && o instanceof Object) {
1708
+ const c = Object.keys(o);
1709
+ if (c.length === 1)
1710
+ l = c[0], a = o[l];
1711
+ else
1712
+ throw new TypeError(`Expected tuple with one key, not ${c.length} keys`);
1713
+ } else
1714
+ l = o;
1715
+ i.items.push(mt(l, a, t));
1716
+ }
1717
+ return i;
1718
+ }
1719
+ const wt = {
1720
+ collection: "seq",
1721
+ default: !1,
1722
+ tag: "tag:yaml.org,2002:pairs",
1723
+ resolve: as,
1724
+ createNode: cs
1725
+ };
1726
+ class ae extends W {
1727
+ constructor() {
1728
+ super(), this.add = K.prototype.add.bind(this), this.delete = K.prototype.delete.bind(this), this.get = K.prototype.get.bind(this), this.has = K.prototype.has.bind(this), this.set = K.prototype.set.bind(this), this.tag = ae.tag;
1729
+ }
1730
+ /**
1731
+ * If `ctx` is given, the return type is actually `Map<unknown, unknown>`,
1732
+ * but TypeScript won't allow widening the signature of a child method.
1733
+ */
1734
+ toJSON(e, t) {
1735
+ if (!t)
1736
+ return super.toJSON(e);
1737
+ const n = /* @__PURE__ */ new Map();
1738
+ t?.onCreate && t.onCreate(n);
1739
+ for (const i of this.items) {
1740
+ let r, o;
1741
+ if (T(i) ? (r = j(i.key, "", t), o = j(i.value, r, t)) : r = j(i, "", t), n.has(r))
1742
+ throw new Error("Ordered maps must not include duplicate keys");
1743
+ n.set(r, o);
1744
+ }
1745
+ return n;
1746
+ }
1747
+ static from(e, t, n) {
1748
+ const i = cs(e, t, n), r = new this();
1749
+ return r.items = i.items, r;
1750
+ }
1751
+ }
1752
+ ae.tag = "tag:yaml.org,2002:omap";
1753
+ const St = {
1754
+ collection: "seq",
1755
+ identify: (s) => s instanceof Map,
1756
+ nodeClass: ae,
1757
+ default: !1,
1758
+ tag: "tag:yaml.org,2002:omap",
1759
+ resolve(s, e) {
1760
+ const t = as(s, e), n = [];
1761
+ for (const { key: i } of t.items)
1762
+ E(i) && (n.includes(i.value) ? e(`Ordered maps must not include duplicate keys: ${i.value}`) : n.push(i.value));
1763
+ return Object.assign(new ae(), t);
1764
+ },
1765
+ createNode: (s, e, t) => ae.from(s, e, t)
1766
+ };
1767
+ function fs({ value: s, source: e }, t) {
1768
+ return e && (s ? us : hs).test.test(e) ? e : s ? t.options.trueStr : t.options.falseStr;
1769
+ }
1770
+ const us = {
1771
+ identify: (s) => s === !0,
1772
+ default: !0,
1773
+ tag: "tag:yaml.org,2002:bool",
1774
+ test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
1775
+ resolve: () => new O(!0),
1776
+ stringify: fs
1777
+ }, hs = {
1778
+ identify: (s) => s === !1,
1779
+ default: !0,
1780
+ tag: "tag:yaml.org,2002:bool",
1781
+ test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
1782
+ resolve: () => new O(!1),
1783
+ stringify: fs
1784
+ }, xs = {
1785
+ identify: (s) => typeof s == "number",
1786
+ default: !0,
1787
+ tag: "tag:yaml.org,2002:float",
1788
+ test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
1789
+ resolve: (s) => s.slice(-3).toLowerCase() === "nan" ? NaN : s[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
1790
+ stringify: q
1791
+ }, Zs = {
1792
+ identify: (s) => typeof s == "number",
1793
+ default: !0,
1794
+ tag: "tag:yaml.org,2002:float",
1795
+ format: "EXP",
1796
+ test: /^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,
1797
+ resolve: (s) => parseFloat(s.replace(/_/g, "")),
1798
+ stringify(s) {
1799
+ const e = Number(s.value);
1800
+ return isFinite(e) ? e.toExponential() : q(s);
1801
+ }
1802
+ }, en = {
1803
+ identify: (s) => typeof s == "number",
1804
+ default: !0,
1805
+ tag: "tag:yaml.org,2002:float",
1806
+ test: /^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,
1807
+ resolve(s) {
1808
+ const e = new O(parseFloat(s.replace(/_/g, ""))), t = s.indexOf(".");
1809
+ if (t !== -1) {
1810
+ const n = s.substring(t + 1).replace(/_/g, "");
1811
+ n[n.length - 1] === "0" && (e.minFractionDigits = n.length);
1812
+ }
1813
+ return e;
1814
+ },
1815
+ stringify: q
1816
+ }, Ee = (s) => typeof s == "bigint" || Number.isInteger(s);
1817
+ function We(s, e, t, { intAsBigInt: n }) {
1818
+ const i = s[0];
1819
+ if ((i === "-" || i === "+") && (e += 1), s = s.substring(e).replace(/_/g, ""), n) {
1820
+ switch (t) {
1821
+ case 2:
1822
+ s = `0b${s}`;
1823
+ break;
1824
+ case 8:
1825
+ s = `0o${s}`;
1826
+ break;
1827
+ case 16:
1828
+ s = `0x${s}`;
1829
+ break;
1830
+ }
1831
+ const o = BigInt(s);
1832
+ return i === "-" ? BigInt(-1) * o : o;
1833
+ }
1834
+ const r = parseInt(s, t);
1835
+ return i === "-" ? -1 * r : r;
1836
+ }
1837
+ function kt(s, e, t) {
1838
+ const { value: n } = s;
1839
+ if (Ee(n)) {
1840
+ const i = n.toString(e);
1841
+ return n < 0 ? "-" + t + i.substr(1) : t + i;
1842
+ }
1843
+ return q(s);
1844
+ }
1845
+ const tn = {
1846
+ identify: Ee,
1847
+ default: !0,
1848
+ tag: "tag:yaml.org,2002:int",
1849
+ format: "BIN",
1850
+ test: /^[-+]?0b[0-1_]+$/,
1851
+ resolve: (s, e, t) => We(s, 2, 2, t),
1852
+ stringify: (s) => kt(s, 2, "0b")
1853
+ }, sn = {
1854
+ identify: Ee,
1855
+ default: !0,
1856
+ tag: "tag:yaml.org,2002:int",
1857
+ format: "OCT",
1858
+ test: /^[-+]?0[0-7_]+$/,
1859
+ resolve: (s, e, t) => We(s, 1, 8, t),
1860
+ stringify: (s) => kt(s, 8, "0")
1861
+ }, nn = {
1862
+ identify: Ee,
1863
+ default: !0,
1864
+ tag: "tag:yaml.org,2002:int",
1865
+ test: /^[-+]?[0-9][0-9_]*$/,
1866
+ resolve: (s, e, t) => We(s, 0, 10, t),
1867
+ stringify: q
1868
+ }, rn = {
1869
+ identify: Ee,
1870
+ default: !0,
1871
+ tag: "tag:yaml.org,2002:int",
1872
+ format: "HEX",
1873
+ test: /^[-+]?0x[0-9a-fA-F_]+$/,
1874
+ resolve: (s, e, t) => We(s, 2, 16, t),
1875
+ stringify: (s) => kt(s, 16, "0x")
1876
+ };
1877
+ class ce extends K {
1878
+ constructor(e) {
1879
+ super(e), this.tag = ce.tag;
1880
+ }
1881
+ add(e) {
1882
+ let t;
1883
+ T(e) ? t = e : e && typeof e == "object" && "key" in e && "value" in e && e.value === null ? t = new v(e.key, null) : t = new v(e, null), X(this.items, t.key) || this.items.push(t);
1884
+ }
1885
+ /**
1886
+ * If `keepPair` is `true`, returns the Pair matching `key`.
1887
+ * Otherwise, returns the value of that Pair's key.
1888
+ */
1889
+ get(e, t) {
1890
+ const n = X(this.items, e);
1891
+ return !t && T(n) ? E(n.key) ? n.key.value : n.key : n;
1892
+ }
1893
+ set(e, t) {
1894
+ if (typeof t != "boolean")
1895
+ throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);
1896
+ const n = X(this.items, e);
1897
+ n && !t ? this.items.splice(this.items.indexOf(n), 1) : !n && t && this.items.push(new v(e));
1898
+ }
1899
+ toJSON(e, t) {
1900
+ return super.toJSON(e, t, Set);
1901
+ }
1902
+ toString(e, t, n) {
1903
+ if (!e)
1904
+ return JSON.stringify(this);
1905
+ if (this.hasAllNullValues(!0))
1906
+ return super.toString(Object.assign({}, e, { allNullValues: !0 }), t, n);
1907
+ throw new Error("Set items must all have null values");
1908
+ }
1909
+ static from(e, t, n) {
1910
+ const { replacer: i } = n, r = new this(e);
1911
+ if (t && Symbol.iterator in Object(t))
1912
+ for (let o of t)
1913
+ typeof i == "function" && (o = i.call(t, o, o)), r.items.push(mt(o, null, n));
1914
+ return r;
1915
+ }
1916
+ }
1917
+ ce.tag = "tag:yaml.org,2002:set";
1918
+ const Nt = {
1919
+ collection: "map",
1920
+ identify: (s) => s instanceof Set,
1921
+ nodeClass: ce,
1922
+ default: !1,
1923
+ tag: "tag:yaml.org,2002:set",
1924
+ createNode: (s, e, t) => ce.from(s, e, t),
1925
+ resolve(s, e) {
1926
+ if (de(s)) {
1927
+ if (s.hasAllNullValues(!0))
1928
+ return Object.assign(new ce(), s);
1929
+ e("Set items must all have null values");
1930
+ } else
1931
+ e("Expected a mapping for this tag");
1932
+ return s;
1933
+ }
1934
+ };
1935
+ function Ot(s, e) {
1936
+ const t = s[0], n = t === "-" || t === "+" ? s.substring(1) : s, i = (o) => e ? BigInt(o) : Number(o), r = n.replace(/_/g, "").split(":").reduce((o, l) => o * i(60) + i(l), i(0));
1937
+ return t === "-" ? i(-1) * r : r;
1938
+ }
1939
+ function ds(s) {
1940
+ let { value: e } = s, t = (o) => o;
1941
+ if (typeof e == "bigint")
1942
+ t = (o) => BigInt(o);
1943
+ else if (isNaN(e) || !isFinite(e))
1944
+ return q(s);
1945
+ let n = "";
1946
+ e < 0 && (n = "-", e *= t(-1));
1947
+ const i = t(60), r = [e % i];
1948
+ return e < 60 ? r.unshift(0) : (e = (e - r[0]) / i, r.unshift(e % i), e >= 60 && (e = (e - r[0]) / i, r.unshift(e))), n + r.map((o) => String(o).padStart(2, "0")).join(":").replace(/000000\d*$/, "");
1949
+ }
1950
+ const ps = {
1951
+ identify: (s) => typeof s == "bigint" || Number.isInteger(s),
1952
+ default: !0,
1953
+ tag: "tag:yaml.org,2002:int",
1954
+ format: "TIME",
1955
+ test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,
1956
+ resolve: (s, e, { intAsBigInt: t }) => Ot(s, t),
1957
+ stringify: ds
1958
+ }, ms = {
1959
+ identify: (s) => typeof s == "number",
1960
+ default: !0,
1961
+ tag: "tag:yaml.org,2002:float",
1962
+ format: "TIME",
1963
+ test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,
1964
+ resolve: (s) => Ot(s, !1),
1965
+ stringify: ds
1966
+ }, He = {
1967
+ identify: (s) => s instanceof Date,
1968
+ default: !0,
1969
+ tag: "tag:yaml.org,2002:timestamp",
1970
+ // If the time zone is omitted, the timestamp is assumed to be specified in UTC. The time part
1971
+ // may be omitted altogether, resulting in a date format. In such a case, the time part is
1972
+ // assumed to be 00:00:00Z (start of day, UTC).
1973
+ test: RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),
1974
+ resolve(s) {
1975
+ const e = s.match(He.test);
1976
+ if (!e)
1977
+ throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");
1978
+ const [, t, n, i, r, o, l] = e.map(Number), a = e[7] ? Number((e[7] + "00").substr(1, 3)) : 0;
1979
+ let c = Date.UTC(t, n - 1, i, r || 0, o || 0, l || 0, a);
1980
+ const d = e[8];
1981
+ if (d && d !== "Z") {
1982
+ let f = Ot(d, !1);
1983
+ Math.abs(f) < 30 && (f *= 60), c -= 6e4 * f;
1984
+ }
1985
+ return new Date(c);
1986
+ },
1987
+ stringify: ({ value: s }) => s?.toISOString().replace(/(T00:00:00)?\.000Z$/, "") ?? ""
1988
+ }, Ct = [
1989
+ me,
1990
+ ye,
1991
+ Ye,
1992
+ Ge,
1993
+ us,
1994
+ hs,
1995
+ tn,
1996
+ sn,
1997
+ nn,
1998
+ rn,
1999
+ xs,
2000
+ Zs,
2001
+ en,
2002
+ bt,
2003
+ V,
2004
+ St,
2005
+ wt,
2006
+ Nt,
2007
+ ps,
2008
+ ms,
2009
+ He
2010
+ ], vt = /* @__PURE__ */ new Map([
2011
+ ["core", Ws],
2012
+ ["failsafe", [me, ye, Ye]],
2013
+ ["json", zs],
2014
+ ["yaml11", Ct],
2015
+ ["yaml-1.1", Ct]
2016
+ ]), Bt = {
2017
+ binary: bt,
2018
+ bool: yt,
2019
+ float: ns,
2020
+ floatExp: ss,
2021
+ floatNaN: ts,
2022
+ floatTime: ms,
2023
+ int: os,
2024
+ intHex: ls,
2025
+ intOct: rs,
2026
+ intTime: ps,
2027
+ map: me,
2028
+ merge: V,
2029
+ null: Ge,
2030
+ omap: St,
2031
+ pairs: wt,
2032
+ seq: ye,
2033
+ set: Nt,
2034
+ timestamp: He
2035
+ }, on = {
2036
+ "tag:yaml.org,2002:binary": bt,
2037
+ "tag:yaml.org,2002:merge": V,
2038
+ "tag:yaml.org,2002:omap": St,
2039
+ "tag:yaml.org,2002:pairs": wt,
2040
+ "tag:yaml.org,2002:set": Nt,
2041
+ "tag:yaml.org,2002:timestamp": He
2042
+ };
2043
+ function tt(s, e, t) {
2044
+ const n = vt.get(e);
2045
+ if (n && !s)
2046
+ return t && !n.includes(V) ? n.concat(V) : n.slice();
2047
+ let i = n;
2048
+ if (!i)
2049
+ if (Array.isArray(s))
2050
+ i = [];
2051
+ else {
2052
+ const r = Array.from(vt.keys()).filter((o) => o !== "yaml11").map((o) => JSON.stringify(o)).join(", ");
2053
+ throw new Error(`Unknown schema "${e}"; use one of ${r} or define customTags array`);
2054
+ }
2055
+ if (Array.isArray(s))
2056
+ for (const r of s)
2057
+ i = i.concat(r);
2058
+ else typeof s == "function" && (i = s(i.slice()));
2059
+ return t && (i = i.concat(V)), i.reduce((r, o) => {
2060
+ const l = typeof o == "string" ? Bt[o] : o;
2061
+ if (!l) {
2062
+ const a = JSON.stringify(o), c = Object.keys(Bt).map((d) => JSON.stringify(d)).join(", ");
2063
+ throw new Error(`Unknown custom tag ${a}; use one of ${c}`);
2064
+ }
2065
+ return r.includes(l) || r.push(l), r;
2066
+ }, []);
2067
+ }
2068
+ const ln = (s, e) => s.key < e.key ? -1 : s.key > e.key ? 1 : 0;
2069
+ class Xe {
2070
+ constructor({ compat: e, customTags: t, merge: n, resolveKnownTags: i, schema: r, sortMapEntries: o, toStringDefaults: l }) {
2071
+ this.compat = Array.isArray(e) ? tt(e, "compat") : e ? tt(null, e) : null, this.name = typeof r == "string" && r || "core", this.knownTags = i ? on : {}, this.tags = tt(t, this.name, n), this.toStringOptions = l ?? null, Object.defineProperty(this, G, { value: me }), Object.defineProperty(this, R, { value: Ye }), Object.defineProperty(this, he, { value: ye }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? ln : null;
2072
+ }
2073
+ clone() {
2074
+ const e = Object.create(Xe.prototype, Object.getOwnPropertyDescriptors(this));
2075
+ return e.tags = this.tags.slice(), e;
2076
+ }
2077
+ }
2078
+ function an(s, e) {
2079
+ const t = [];
2080
+ let n = e.directives === !0;
2081
+ if (e.directives !== !1 && s.directives) {
2082
+ const a = s.directives.toString(s);
2083
+ a ? (t.push(a), n = !0) : s.directives.docStart && (n = !0);
2084
+ }
2085
+ n && t.push("---");
2086
+ const i = Xt(s, e), { commentString: r } = i.options;
2087
+ if (s.commentBefore) {
2088
+ t.length !== 1 && t.unshift("");
2089
+ const a = r(s.commentBefore);
2090
+ t.unshift(U(a, ""));
2091
+ }
2092
+ let o = !1, l = null;
2093
+ if (s.contents) {
2094
+ if ($(s.contents)) {
2095
+ if (s.contents.spaceBefore && n && t.push(""), s.contents.commentBefore) {
2096
+ const d = r(s.contents.commentBefore);
2097
+ t.push(U(d, ""));
2098
+ }
2099
+ i.forceBlockIndent = !!s.comment, l = s.contents.comment;
2100
+ }
2101
+ const a = l ? void 0 : () => o = !0;
2102
+ let c = fe(s.contents, i, () => l = null, a);
2103
+ l && (c += H(c, "", r(l))), (c[0] === "|" || c[0] === ">") && t[t.length - 1] === "---" ? t[t.length - 1] = `--- ${c}` : t.push(c);
2104
+ } else
2105
+ t.push(fe(s.contents, i));
2106
+ if (s.directives?.docEnd)
2107
+ if (s.comment) {
2108
+ const a = r(s.comment);
2109
+ a.includes(`
2110
+ `) ? (t.push("..."), t.push(U(a, ""))) : t.push(`... ${a}`);
2111
+ } else
2112
+ t.push("...");
2113
+ else {
2114
+ let a = s.comment;
2115
+ a && o && (a = a.replace(/^\n+/, "")), a && ((!o || l) && t[t.length - 1] !== "" && t.push(""), t.push(U(r(a), "")));
2116
+ }
2117
+ return t.join(`
2118
+ `) + `
2119
+ `;
2120
+ }
2121
+ class ge {
2122
+ constructor(e, t, n) {
2123
+ this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, P, { value: lt });
2124
+ let i = null;
2125
+ typeof t == "function" || Array.isArray(t) ? i = t : n === void 0 && t && (n = t, t = void 0);
2126
+ const r = Object.assign({
2127
+ intAsBigInt: !1,
2128
+ keepSourceTokens: !1,
2129
+ logLevel: "warn",
2130
+ prettyErrors: !0,
2131
+ strict: !0,
2132
+ stringKeys: !1,
2133
+ uniqueKeys: !0,
2134
+ version: "1.2"
2135
+ }, n);
2136
+ this.options = r;
2137
+ let { version: o } = r;
2138
+ n?._directives ? (this.directives = n._directives.atDocument(), this.directives.yaml.explicit && (o = this.directives.yaml.version)) : this.directives = new B({ version: o }), this.setSchema(o, n), this.contents = e === void 0 ? null : this.createNode(e, i, n);
2139
+ }
2140
+ /**
2141
+ * Create a deep copy of this Document and its contents.
2142
+ *
2143
+ * Custom Node values that inherit from `Object` still refer to their original instances.
2144
+ */
2145
+ clone() {
2146
+ const e = Object.create(ge.prototype, {
2147
+ [P]: { value: lt }
2148
+ });
2149
+ return e.commentBefore = this.commentBefore, e.comment = this.comment, e.errors = this.errors.slice(), e.warnings = this.warnings.slice(), e.options = Object.assign({}, this.options), this.directives && (e.directives = this.directives.clone()), e.schema = this.schema.clone(), e.contents = $(this.contents) ? this.contents.clone(e.schema) : this.contents, this.range && (e.range = this.range.slice()), e;
2150
+ }
2151
+ /** Adds a value to the document. */
2152
+ add(e) {
2153
+ se(this.contents) && this.contents.add(e);
2154
+ }
2155
+ /** Adds a value to the document. */
2156
+ addIn(e, t) {
2157
+ se(this.contents) && this.contents.addIn(e, t);
2158
+ }
2159
+ /**
2160
+ * Create a new `Alias` node, ensuring that the target `node` has the required anchor.
2161
+ *
2162
+ * If `node` already has an anchor, `name` is ignored.
2163
+ * Otherwise, the `node.anchor` value will be set to `name`,
2164
+ * or if an anchor with that name is already present in the document,
2165
+ * `name` will be used as a prefix for a new unique anchor.
2166
+ * If `name` is undefined, the generated anchor will use 'a' as a prefix.
2167
+ */
2168
+ createAlias(e, t) {
2169
+ if (!e.anchor) {
2170
+ const n = Yt(this);
2171
+ e.anchor = // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
2172
+ !t || n.has(t) ? Gt(t || "a", n) : t;
2173
+ }
2174
+ return new Re(e.anchor);
2175
+ }
2176
+ createNode(e, t, n) {
2177
+ let i;
2178
+ if (typeof t == "function")
2179
+ e = t.call({ "": e }, "", e), i = t;
2180
+ else if (Array.isArray(t)) {
2181
+ const p = (w) => typeof w == "number" || w instanceof String || w instanceof Number, b = t.filter(p).map(String);
2182
+ b.length > 0 && (t = t.concat(b)), i = t;
2183
+ } else n === void 0 && t && (n = t, t = void 0);
2184
+ const { aliasDuplicateObjects: r, anchorPrefix: o, flow: l, keepUndefined: a, onTagObj: c, tag: d } = n ?? {}, { onAnchor: f, setAnchors: u, sourceObjects: m } = Ks(
2185
+ this,
2186
+ // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
2187
+ o || "a"
2188
+ ), y = {
2189
+ aliasDuplicateObjects: r ?? !0,
2190
+ keepUndefined: a ?? !1,
2191
+ onAnchor: f,
2192
+ onTagObj: c,
2193
+ replacer: i,
2194
+ schema: this.schema,
2195
+ sourceObjects: m
2196
+ }, h = ke(e, d, y);
2197
+ return l && L(h) && (h.flow = !0), u(), h;
2198
+ }
2199
+ /**
2200
+ * Convert a key and a value into a `Pair` using the current schema,
2201
+ * recursively wrapping all values as `Scalar` or `Collection` nodes.
2202
+ */
2203
+ createPair(e, t, n = {}) {
2204
+ const i = this.createNode(e, null, n), r = this.createNode(t, null, n);
2205
+ return new v(i, r);
2206
+ }
2207
+ /**
2208
+ * Removes a value from the document.
2209
+ * @returns `true` if the item was found and removed.
2210
+ */
2211
+ delete(e) {
2212
+ return se(this.contents) ? this.contents.delete(e) : !1;
2213
+ }
2214
+ /**
2215
+ * Removes a value from the document.
2216
+ * @returns `true` if the item was found and removed.
2217
+ */
2218
+ deleteIn(e) {
2219
+ return we(e) ? this.contents == null ? !1 : (this.contents = null, !0) : se(this.contents) ? this.contents.deleteIn(e) : !1;
2220
+ }
2221
+ /**
2222
+ * Returns item at `key`, or `undefined` if not found. By default unwraps
2223
+ * scalar values from their surrounding node; to disable set `keepScalar` to
2224
+ * `true` (collections are always returned intact).
2225
+ */
2226
+ get(e, t) {
2227
+ return L(this.contents) ? this.contents.get(e, t) : void 0;
2228
+ }
2229
+ /**
2230
+ * Returns item at `path`, or `undefined` if not found. By default unwraps
2231
+ * scalar values from their surrounding node; to disable set `keepScalar` to
2232
+ * `true` (collections are always returned intact).
2233
+ */
2234
+ getIn(e, t) {
2235
+ return we(e) ? !t && E(this.contents) ? this.contents.value : this.contents : L(this.contents) ? this.contents.getIn(e, t) : void 0;
2236
+ }
2237
+ /**
2238
+ * Checks if the document includes a value with the key `key`.
2239
+ */
2240
+ has(e) {
2241
+ return L(this.contents) ? this.contents.has(e) : !1;
2242
+ }
2243
+ /**
2244
+ * Checks if the document includes a value at `path`.
2245
+ */
2246
+ hasIn(e) {
2247
+ return we(e) ? this.contents !== void 0 : L(this.contents) ? this.contents.hasIn(e) : !1;
2248
+ }
2249
+ /**
2250
+ * Sets a value in this document. For `!!set`, `value` needs to be a
2251
+ * boolean to add/remove the item from the set.
2252
+ */
2253
+ set(e, t) {
2254
+ this.contents == null ? this.contents = je(this.schema, [e], t) : se(this.contents) && this.contents.set(e, t);
2255
+ }
2256
+ /**
2257
+ * Sets a value in this document. For `!!set`, `value` needs to be a
2258
+ * boolean to add/remove the item from the set.
2259
+ */
2260
+ setIn(e, t) {
2261
+ we(e) ? this.contents = t : this.contents == null ? this.contents = je(this.schema, Array.from(e), t) : se(this.contents) && this.contents.setIn(e, t);
2262
+ }
2263
+ /**
2264
+ * Change the YAML version and schema used by the document.
2265
+ * A `null` version disables support for directives, explicit tags, anchors, and aliases.
2266
+ * It also requires the `schema` option to be given as a `Schema` instance value.
2267
+ *
2268
+ * Overrides all previously set schema options.
2269
+ */
2270
+ setSchema(e, t = {}) {
2271
+ typeof e == "number" && (e = String(e));
2272
+ let n;
2273
+ switch (e) {
2274
+ case "1.1":
2275
+ this.directives ? this.directives.yaml.version = "1.1" : this.directives = new B({ version: "1.1" }), n = { resolveKnownTags: !1, schema: "yaml-1.1" };
2276
+ break;
2277
+ case "1.2":
2278
+ case "next":
2279
+ this.directives ? this.directives.yaml.version = e : this.directives = new B({ version: e }), n = { resolveKnownTags: !0, schema: "core" };
2280
+ break;
2281
+ case null:
2282
+ this.directives && delete this.directives, n = null;
2283
+ break;
2284
+ default: {
2285
+ const i = JSON.stringify(e);
2286
+ throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`);
2287
+ }
2288
+ }
2289
+ if (t.schema instanceof Object)
2290
+ this.schema = t.schema;
2291
+ else if (n)
2292
+ this.schema = new Xe(Object.assign(n, t));
2293
+ else
2294
+ throw new Error("With a null YAML version, the { schema: Schema } option is required");
2295
+ }
2296
+ // json & jsonArg are only used from toJSON()
2297
+ toJS({ json: e, jsonArg: t, mapAsMap: n, maxAliasCount: i, onAnchor: r, reviver: o } = {}) {
2298
+ const l = {
2299
+ anchors: /* @__PURE__ */ new Map(),
2300
+ doc: this,
2301
+ keep: !e,
2302
+ mapAsMap: n === !0,
2303
+ mapKeyWarned: !1,
2304
+ maxAliasCount: typeof i == "number" ? i : 100
2305
+ }, a = j(this.contents, t ?? "", l);
2306
+ if (typeof r == "function")
2307
+ for (const { count: c, res: d } of l.anchors.values())
2308
+ r(d, c);
2309
+ return typeof o == "function" ? oe(o, { "": a }, "", a) : a;
2310
+ }
2311
+ /**
2312
+ * A JSON representation of the document `contents`.
2313
+ *
2314
+ * @param jsonArg Used by `JSON.stringify` to indicate the array index or
2315
+ * property name.
2316
+ */
2317
+ toJSON(e, t) {
2318
+ return this.toJS({ json: !0, jsonArg: e, mapAsMap: !1, onAnchor: t });
2319
+ }
2320
+ /** A YAML representation of the document. */
2321
+ toString(e = {}) {
2322
+ if (this.errors.length > 0)
2323
+ throw new Error("Document with errors cannot be stringified");
2324
+ if ("indent" in e && (!Number.isInteger(e.indent) || Number(e.indent) <= 0)) {
2325
+ const t = JSON.stringify(e.indent);
2326
+ throw new Error(`"indent" option must be a positive integer, not ${t}`);
2327
+ }
2328
+ return an(this, e);
2329
+ }
2330
+ }
2331
+ function se(s) {
2332
+ if (L(s))
2333
+ return !0;
2334
+ throw new Error("Expected a YAML collection as document contents");
2335
+ }
2336
+ class At extends Error {
2337
+ constructor(e, t, n, i) {
2338
+ super(), this.name = e, this.code = n, this.message = i, this.pos = t;
2339
+ }
2340
+ }
2341
+ class z extends At {
2342
+ constructor(e, t, n) {
2343
+ super("YAMLParseError", e, t, n);
2344
+ }
2345
+ }
2346
+ class ys extends At {
2347
+ constructor(e, t, n) {
2348
+ super("YAMLWarning", e, t, n);
2349
+ }
2350
+ }
2351
+ const De = (s, e) => (t) => {
2352
+ if (t.pos[0] === -1)
2353
+ return;
2354
+ t.linePos = t.pos.map((l) => e.linePos(l));
2355
+ const { line: n, col: i } = t.linePos[0];
2356
+ t.message += ` at line ${n}, column ${i}`;
2357
+ let r = i - 1, o = s.substring(e.lineStarts[n - 1], e.lineStarts[n]).replace(/[\n\r]+$/, "");
2358
+ if (r >= 60 && o.length > 80) {
2359
+ const l = Math.min(r - 39, o.length - 79);
2360
+ o = "…" + o.substring(l), r -= l - 1;
2361
+ }
2362
+ if (o.length > 80 && (o = o.substring(0, 79) + "…"), n > 1 && /^ *$/.test(o.substring(0, r))) {
2363
+ let l = s.substring(e.lineStarts[n - 2], e.lineStarts[n - 1]);
2364
+ l.length > 80 && (l = l.substring(0, 79) + `…
2365
+ `), o = l + o;
2366
+ }
2367
+ if (/[^ ]/.test(o)) {
2368
+ let l = 1;
2369
+ const a = t.linePos[1];
2370
+ a && a.line === n && a.col > i && (l = Math.max(1, Math.min(a.col - i, 80 - r)));
2371
+ const c = " ".repeat(r) + "^".repeat(l);
2372
+ t.message += `:
2373
+
2374
+ ${o}
2375
+ ${c}
2376
+ `;
2377
+ }
2378
+ };
2379
+ function ue(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIndent: o, startOnNewline: l }) {
2380
+ let a = !1, c = l, d = l, f = "", u = "", m = !1, y = !1, h = null, p = null, b = null, w = null, S = null, k = null, N = null;
2381
+ for (const g of s)
2382
+ switch (y && (g.type !== "space" && g.type !== "newline" && g.type !== "comma" && r(g.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), y = !1), h && (c && g.type !== "comment" && g.type !== "newline" && r(h, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), h = null), g.type) {
2383
+ case "space":
2384
+ !e && (t !== "doc-start" || n?.type !== "flow-collection") && g.source.includes(" ") && (h = g), d = !0;
2385
+ break;
2386
+ case "comment": {
2387
+ d || r(g, "MISSING_CHAR", "Comments must be separated from other tokens by white space characters");
2388
+ const _ = g.source.substring(1) || " ";
2389
+ f ? f += u + _ : f = _, u = "", c = !1;
2390
+ break;
2391
+ }
2392
+ case "newline":
2393
+ c ? f ? f += g.source : (!k || t !== "seq-item-ind") && (a = !0) : u += g.source, c = !0, m = !0, (p || b) && (w = g), d = !0;
2394
+ break;
2395
+ case "anchor":
2396
+ p && r(g, "MULTIPLE_ANCHORS", "A node can have at most one anchor"), g.source.endsWith(":") && r(g.offset + g.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", !0), p = g, N === null && (N = g.offset), c = !1, d = !1, y = !0;
2397
+ break;
2398
+ case "tag": {
2399
+ b && r(g, "MULTIPLE_TAGS", "A node can have at most one tag"), b = g, N === null && (N = g.offset), c = !1, d = !1, y = !0;
2400
+ break;
2401
+ }
2402
+ case t:
2403
+ (p || b) && r(g, "BAD_PROP_ORDER", `Anchors and tags must be after the ${g.source} indicator`), k && r(g, "UNEXPECTED_TOKEN", `Unexpected ${g.source} in ${e ?? "collection"}`), k = g, c = t === "seq-item-ind" || t === "explicit-key-ind", d = !1;
2404
+ break;
2405
+ case "comma":
2406
+ if (e) {
2407
+ S && r(g, "UNEXPECTED_TOKEN", `Unexpected , in ${e}`), S = g, c = !1, d = !1;
2408
+ break;
2409
+ }
2410
+ // else fallthrough
2411
+ default:
2412
+ r(g, "UNEXPECTED_TOKEN", `Unexpected ${g.type} token`), c = !1, d = !1;
2413
+ }
2414
+ const A = s[s.length - 1], I = A ? A.offset + A.source.length : i;
2415
+ return y && n && n.type !== "space" && n.type !== "newline" && n.type !== "comma" && (n.type !== "scalar" || n.source !== "") && r(n.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), h && (c && h.indent <= o || n?.type === "block-map" || n?.type === "block-seq") && r(h, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), {
2416
+ comma: S,
2417
+ found: k,
2418
+ spaceBefore: a,
2419
+ comment: f,
2420
+ hasNewline: m,
2421
+ anchor: p,
2422
+ tag: b,
2423
+ newlineAfterProp: w,
2424
+ end: I,
2425
+ start: N ?? I
2426
+ };
2427
+ }
2428
+ function Ne(s) {
2429
+ if (!s)
2430
+ return null;
2431
+ switch (s.type) {
2432
+ case "alias":
2433
+ case "scalar":
2434
+ case "double-quoted-scalar":
2435
+ case "single-quoted-scalar":
2436
+ if (s.source.includes(`
2437
+ `))
2438
+ return !0;
2439
+ if (s.end) {
2440
+ for (const e of s.end)
2441
+ if (e.type === "newline")
2442
+ return !0;
2443
+ }
2444
+ return !1;
2445
+ case "flow-collection":
2446
+ for (const e of s.items) {
2447
+ for (const t of e.start)
2448
+ if (t.type === "newline")
2449
+ return !0;
2450
+ if (e.sep) {
2451
+ for (const t of e.sep)
2452
+ if (t.type === "newline")
2453
+ return !0;
2454
+ }
2455
+ if (Ne(e.key) || Ne(e.value))
2456
+ return !0;
2457
+ }
2458
+ return !1;
2459
+ default:
2460
+ return !0;
2461
+ }
2462
+ }
2463
+ function ut(s, e, t) {
2464
+ if (e?.type === "flow-collection") {
2465
+ const n = e.end[0];
2466
+ n.indent === s && (n.source === "]" || n.source === "}") && Ne(e) && t(n, "BAD_INDENT", "Flow end indicator should be more indented than parent", !0);
2467
+ }
2468
+ }
2469
+ function gs(s, e, t) {
2470
+ const { uniqueKeys: n } = s.options;
2471
+ if (n === !1)
2472
+ return !1;
2473
+ const i = typeof n == "function" ? n : (r, o) => r === o || E(r) && E(o) && r.value === o.value;
2474
+ return e.some((r) => i(r.key, t));
2475
+ }
2476
+ const Mt = "All mapping items must start at the same column";
2477
+ function cn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2478
+ const o = r?.nodeClass ?? K, l = new o(t.schema);
2479
+ t.atRoot && (t.atRoot = !1);
2480
+ let a = n.offset, c = null;
2481
+ for (const d of n.items) {
2482
+ const { start: f, key: u, sep: m, value: y } = d, h = ue(f, {
2483
+ indicator: "explicit-key-ind",
2484
+ next: u ?? m?.[0],
2485
+ offset: a,
2486
+ onError: i,
2487
+ parentIndent: n.indent,
2488
+ startOnNewline: !0
2489
+ }), p = !h.found;
2490
+ if (p) {
2491
+ if (u && (u.type === "block-seq" ? i(a, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in u && u.indent !== n.indent && i(a, "BAD_INDENT", Mt)), !h.anchor && !h.tag && !m) {
2492
+ c = h.end, h.comment && (l.comment ? l.comment += `
2493
+ ` + h.comment : l.comment = h.comment);
2494
+ continue;
2495
+ }
2496
+ (h.newlineAfterProp || Ne(u)) && i(u ?? f[f.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
2497
+ } else h.found?.indent !== n.indent && i(a, "BAD_INDENT", Mt);
2498
+ t.atKey = !0;
2499
+ const b = h.end, w = u ? s(t, u, h, i) : e(t, b, f, null, h, i);
2500
+ t.schema.compat && ut(n.indent, u, i), t.atKey = !1, gs(t, l.items, w) && i(b, "DUPLICATE_KEY", "Map keys must be unique");
2501
+ const S = ue(m ?? [], {
2502
+ indicator: "map-value-ind",
2503
+ next: y,
2504
+ offset: w.range[2],
2505
+ onError: i,
2506
+ parentIndent: n.indent,
2507
+ startOnNewline: !u || u.type === "block-scalar"
2508
+ });
2509
+ if (a = S.end, S.found) {
2510
+ p && (y?.type === "block-map" && !S.hasNewline && i(a, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), t.options.strict && h.start < S.found.offset - 1024 && i(w.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
2511
+ const k = y ? s(t, y, S, i) : e(t, a, m, null, S, i);
2512
+ t.schema.compat && ut(n.indent, y, i), a = k.range[2];
2513
+ const N = new v(w, k);
2514
+ t.options.keepSourceTokens && (N.srcToken = d), l.items.push(N);
2515
+ } else {
2516
+ p && i(w.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"), S.comment && (w.comment ? w.comment += `
2517
+ ` + S.comment : w.comment = S.comment);
2518
+ const k = new v(w);
2519
+ t.options.keepSourceTokens && (k.srcToken = d), l.items.push(k);
2520
+ }
2521
+ }
2522
+ return c && c < a && i(c, "IMPOSSIBLE", "Map comment with trailing content"), l.range = [n.offset, a, c ?? a], l;
2523
+ }
2524
+ function fn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2525
+ const o = r?.nodeClass ?? W, l = new o(t.schema);
2526
+ t.atRoot && (t.atRoot = !1), t.atKey && (t.atKey = !1);
2527
+ let a = n.offset, c = null;
2528
+ for (const { start: d, value: f } of n.items) {
2529
+ const u = ue(d, {
2530
+ indicator: "seq-item-ind",
2531
+ next: f,
2532
+ offset: a,
2533
+ onError: i,
2534
+ parentIndent: n.indent,
2535
+ startOnNewline: !0
2536
+ });
2537
+ if (!u.found)
2538
+ if (u.anchor || u.tag || f)
2539
+ f && f.type === "block-seq" ? i(u.end, "BAD_INDENT", "All sequence items must start at the same column") : i(a, "MISSING_CHAR", "Sequence item without - indicator");
2540
+ else {
2541
+ c = u.end, u.comment && (l.comment = u.comment);
2542
+ continue;
2543
+ }
2544
+ const m = f ? s(t, f, u, i) : e(t, u.end, d, null, u, i);
2545
+ t.schema.compat && ut(n.indent, f, i), a = m.range[2], l.items.push(m);
2546
+ }
2547
+ return l.range = [n.offset, a, c ?? a], l;
2548
+ }
2549
+ function Ie(s, e, t, n) {
2550
+ let i = "";
2551
+ if (s) {
2552
+ let r = !1, o = "";
2553
+ for (const l of s) {
2554
+ const { source: a, type: c } = l;
2555
+ switch (c) {
2556
+ case "space":
2557
+ r = !0;
2558
+ break;
2559
+ case "comment": {
2560
+ t && !r && n(l, "MISSING_CHAR", "Comments must be separated from other tokens by white space characters");
2561
+ const d = a.substring(1) || " ";
2562
+ i ? i += o + d : i = d, o = "";
2563
+ break;
2564
+ }
2565
+ case "newline":
2566
+ i && (o += a), r = !0;
2567
+ break;
2568
+ default:
2569
+ n(l, "UNEXPECTED_TOKEN", `Unexpected ${c} at node end`);
2570
+ }
2571
+ e += a.length;
2572
+ }
2573
+ }
2574
+ return { comment: i, offset: e };
2575
+ }
2576
+ const st = "Block collections are not allowed within flow collections", nt = (s) => s && (s.type === "block-map" || s.type === "block-seq");
2577
+ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2578
+ const o = n.start.source === "{", l = o ? "flow map" : "flow sequence", a = r?.nodeClass ?? (o ? K : W), c = new a(t.schema);
2579
+ c.flow = !0;
2580
+ const d = t.atRoot;
2581
+ d && (t.atRoot = !1), t.atKey && (t.atKey = !1);
2582
+ let f = n.offset + n.start.source.length;
2583
+ for (let p = 0; p < n.items.length; ++p) {
2584
+ const b = n.items[p], { start: w, key: S, sep: k, value: N } = b, A = ue(w, {
2585
+ flow: l,
2586
+ indicator: "explicit-key-ind",
2587
+ next: S ?? k?.[0],
2588
+ offset: f,
2589
+ onError: i,
2590
+ parentIndent: n.indent,
2591
+ startOnNewline: !1
2592
+ });
2593
+ if (!A.found) {
2594
+ if (!A.anchor && !A.tag && !k && !N) {
2595
+ p === 0 && A.comma ? i(A.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${l}`) : p < n.items.length - 1 && i(A.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${l}`), A.comment && (c.comment ? c.comment += `
2596
+ ` + A.comment : c.comment = A.comment), f = A.end;
2597
+ continue;
2598
+ }
2599
+ !o && t.options.strict && Ne(S) && i(
2600
+ S,
2601
+ // checked by containsNewline()
2602
+ "MULTILINE_IMPLICIT_KEY",
2603
+ "Implicit keys of flow sequence pairs need to be on a single line"
2604
+ );
2605
+ }
2606
+ if (p === 0)
2607
+ A.comma && i(A.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${l}`);
2608
+ else if (A.comma || i(A.start, "MISSING_CHAR", `Missing , between ${l} items`), A.comment) {
2609
+ let I = "";
2610
+ e: for (const g of w)
2611
+ switch (g.type) {
2612
+ case "comma":
2613
+ case "space":
2614
+ break;
2615
+ case "comment":
2616
+ I = g.source.substring(1);
2617
+ break e;
2618
+ default:
2619
+ break e;
2620
+ }
2621
+ if (I) {
2622
+ let g = c.items[c.items.length - 1];
2623
+ T(g) && (g = g.value ?? g.key), g.comment ? g.comment += `
2624
+ ` + I : g.comment = I, A.comment = A.comment.substring(I.length + 1);
2625
+ }
2626
+ }
2627
+ if (!o && !k && !A.found) {
2628
+ const I = N ? s(t, N, A, i) : e(t, A.end, k, null, A, i);
2629
+ c.items.push(I), f = I.range[2], nt(N) && i(I.range, "BLOCK_IN_FLOW", st);
2630
+ } else {
2631
+ t.atKey = !0;
2632
+ const I = A.end, g = S ? s(t, S, A, i) : e(t, I, w, null, A, i);
2633
+ nt(S) && i(g.range, "BLOCK_IN_FLOW", st), t.atKey = !1;
2634
+ const _ = ue(k ?? [], {
2635
+ flow: l,
2636
+ indicator: "map-value-ind",
2637
+ next: N,
2638
+ offset: g.range[2],
2639
+ onError: i,
2640
+ parentIndent: n.indent,
2641
+ startOnNewline: !1
2642
+ });
2643
+ if (_.found) {
2644
+ if (!o && !A.found && t.options.strict) {
2645
+ if (k)
2646
+ for (const C of k) {
2647
+ if (C === _.found)
2648
+ break;
2649
+ if (C.type === "newline") {
2650
+ i(C, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
2651
+ break;
2652
+ }
2653
+ }
2654
+ A.start < _.found.offset - 1024 && i(_.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
2655
+ }
2656
+ } else N && ("source" in N && N.source && N.source[0] === ":" ? i(N, "MISSING_CHAR", `Missing space after : in ${l}`) : i(_.start, "MISSING_CHAR", `Missing , or : between ${l} items`));
2657
+ const J = N ? s(t, N, _, i) : _.found ? e(t, _.end, k, null, _, i) : null;
2658
+ J ? nt(N) && i(J.range, "BLOCK_IN_FLOW", st) : _.comment && (g.comment ? g.comment += `
2659
+ ` + _.comment : g.comment = _.comment);
2660
+ const te = new v(g, J);
2661
+ if (t.options.keepSourceTokens && (te.srcToken = b), o) {
2662
+ const C = c;
2663
+ gs(t, C.items, g) && i(I, "DUPLICATE_KEY", "Map keys must be unique"), C.items.push(te);
2664
+ } else {
2665
+ const C = new K(t.schema);
2666
+ C.flow = !0, C.items.push(te);
2667
+ const Lt = (J ?? g).range;
2668
+ C.range = [g.range[0], Lt[1], Lt[2]], c.items.push(C);
2669
+ }
2670
+ f = J ? J.range[2] : _.end;
2671
+ }
2672
+ }
2673
+ const u = o ? "}" : "]", [m, ...y] = n.end;
2674
+ let h = f;
2675
+ if (m && m.source === u)
2676
+ h = m.offset + m.source.length;
2677
+ else {
2678
+ const p = l[0].toUpperCase() + l.substring(1), b = d ? `${p} must end with a ${u}` : `${p} in block collection must be sufficiently indented and end with a ${u}`;
2679
+ i(f, d ? "MISSING_CHAR" : "BAD_INDENT", b), m && m.source.length !== 1 && y.unshift(m);
2680
+ }
2681
+ if (y.length > 0) {
2682
+ const p = Ie(y, h, t.options.strict, i);
2683
+ p.comment && (c.comment ? c.comment += `
2684
+ ` + p.comment : c.comment = p.comment), c.range = [n.offset, h, p.offset];
2685
+ } else
2686
+ c.range = [n.offset, h, h];
2687
+ return c;
2688
+ }
2689
+ function it(s, e, t, n, i, r) {
2690
+ const o = t.type === "block-map" ? cn(s, e, t, n, r) : t.type === "block-seq" ? fn(s, e, t, n, r) : un(s, e, t, n, r), l = o.constructor;
2691
+ return i === "!" || i === l.tagName ? (o.tag = l.tagName, o) : (i && (o.tag = i), o);
2692
+ }
2693
+ function hn(s, e, t, n, i) {
2694
+ const r = n.tag, o = r ? e.directives.tagName(r.source, (u) => i(r, "TAG_RESOLVE_FAILED", u)) : null;
2695
+ if (t.type === "block-seq") {
2696
+ const { anchor: u, newlineAfterProp: m } = n, y = u && r ? u.offset > r.offset ? u : r : u ?? r;
2697
+ y && (!m || m.offset < y.offset) && i(y, "MISSING_CHAR", "Missing newline after block sequence props");
2698
+ }
2699
+ const l = t.type === "block-map" ? "map" : t.type === "block-seq" ? "seq" : t.start.source === "{" ? "map" : "seq";
2700
+ if (!r || !o || o === "!" || o === K.tagName && l === "map" || o === W.tagName && l === "seq")
2701
+ return it(s, e, t, i, o);
2702
+ let a = e.schema.tags.find((u) => u.tag === o && u.collection === l);
2703
+ if (!a) {
2704
+ const u = e.schema.knownTags[o];
2705
+ if (u && u.collection === l)
2706
+ e.schema.tags.push(Object.assign({}, u, { default: !1 })), a = u;
2707
+ else
2708
+ return u ? i(r, "BAD_COLLECTION_TYPE", `${u.tag} used for ${l} collection, but expects ${u.collection ?? "scalar"}`, !0) : i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), it(s, e, t, i, o);
2709
+ }
2710
+ const c = it(s, e, t, i, o, a), d = a.resolve?.(c, (u) => i(r, "TAG_RESOLVE_FAILED", u), e.options) ?? c, f = $(d) ? d : new O(d);
2711
+ return f.range = c.range, f.tag = o, a?.format && (f.format = a.format), f;
2712
+ }
2713
+ function bs(s, e, t) {
2714
+ const n = e.offset, i = dn(e, s.options.strict, t);
2715
+ if (!i)
2716
+ return { value: "", type: null, comment: "", range: [n, n, n] };
2717
+ const r = i.mode === ">" ? O.BLOCK_FOLDED : O.BLOCK_LITERAL, o = e.source ? pn(e.source) : [];
2718
+ let l = o.length;
2719
+ for (let h = o.length - 1; h >= 0; --h) {
2720
+ const p = o[h][1];
2721
+ if (p === "" || p === "\r")
2722
+ l = h;
2723
+ else
2724
+ break;
2725
+ }
2726
+ if (l === 0) {
2727
+ const h = i.chomp === "+" && o.length > 0 ? `
2728
+ `.repeat(Math.max(1, o.length - 1)) : "";
2729
+ let p = n + i.length;
2730
+ return e.source && (p += e.source.length), { value: h, type: r, comment: i.comment, range: [n, p, p] };
2731
+ }
2732
+ let a = e.indent + i.indent, c = e.offset + i.length, d = 0;
2733
+ for (let h = 0; h < l; ++h) {
2734
+ const [p, b] = o[h];
2735
+ if (b === "" || b === "\r")
2736
+ i.indent === 0 && p.length > a && (a = p.length);
2737
+ else {
2738
+ p.length < a && t(c + p.length, "MISSING_CHAR", "Block scalars with more-indented leading empty lines must use an explicit indentation indicator"), i.indent === 0 && (a = p.length), d = h, a === 0 && !s.atRoot && t(c, "BAD_INDENT", "Block scalar values in collections must be indented");
2739
+ break;
2740
+ }
2741
+ c += p.length + b.length + 1;
2742
+ }
2743
+ for (let h = o.length - 1; h >= l; --h)
2744
+ o[h][0].length > a && (l = h + 1);
2745
+ let f = "", u = "", m = !1;
2746
+ for (let h = 0; h < d; ++h)
2747
+ f += o[h][0].slice(a) + `
2748
+ `;
2749
+ for (let h = d; h < l; ++h) {
2750
+ let [p, b] = o[h];
2751
+ c += p.length + b.length + 1;
2752
+ const w = b[b.length - 1] === "\r";
2753
+ if (w && (b = b.slice(0, -1)), b && p.length < a) {
2754
+ const k = `Block scalar lines must not be less indented than their ${i.indent ? "explicit indentation indicator" : "first line"}`;
2755
+ t(c - b.length - (w ? 2 : 1), "BAD_INDENT", k), p = "";
2756
+ }
2757
+ r === O.BLOCK_LITERAL ? (f += u + p.slice(a) + b, u = `
2758
+ `) : p.length > a || b[0] === " " ? (u === " " ? u = `
2759
+ ` : !m && u === `
2760
+ ` && (u = `
2761
+
2762
+ `), f += u + p.slice(a) + b, u = `
2763
+ `, m = !0) : b === "" ? u === `
2764
+ ` ? f += `
2765
+ ` : u = `
2766
+ ` : (f += u + b, u = " ", m = !1);
2767
+ }
2768
+ switch (i.chomp) {
2769
+ case "-":
2770
+ break;
2771
+ case "+":
2772
+ for (let h = l; h < o.length; ++h)
2773
+ f += `
2774
+ ` + o[h][0].slice(a);
2775
+ f[f.length - 1] !== `
2776
+ ` && (f += `
2777
+ `);
2778
+ break;
2779
+ default:
2780
+ f += `
2781
+ `;
2782
+ }
2783
+ const y = n + i.length + e.source.length;
2784
+ return { value: f, type: r, comment: i.comment, range: [n, y, y] };
2785
+ }
2786
+ function dn({ offset: s, props: e }, t, n) {
2787
+ if (e[0].type !== "block-scalar-header")
2788
+ return n(e[0], "IMPOSSIBLE", "Block scalar header not found"), null;
2789
+ const { source: i } = e[0], r = i[0];
2790
+ let o = 0, l = "", a = -1;
2791
+ for (let u = 1; u < i.length; ++u) {
2792
+ const m = i[u];
2793
+ if (!l && (m === "-" || m === "+"))
2794
+ l = m;
2795
+ else {
2796
+ const y = Number(m);
2797
+ !o && y ? o = y : a === -1 && (a = s + u);
2798
+ }
2799
+ }
2800
+ a !== -1 && n(a, "UNEXPECTED_TOKEN", `Block scalar header includes extra characters: ${i}`);
2801
+ let c = !1, d = "", f = i.length;
2802
+ for (let u = 1; u < e.length; ++u) {
2803
+ const m = e[u];
2804
+ switch (m.type) {
2805
+ case "space":
2806
+ c = !0;
2807
+ // fallthrough
2808
+ case "newline":
2809
+ f += m.source.length;
2810
+ break;
2811
+ case "comment":
2812
+ t && !c && n(m, "MISSING_CHAR", "Comments must be separated from other tokens by white space characters"), f += m.source.length, d = m.source.substring(1);
2813
+ break;
2814
+ case "error":
2815
+ n(m, "UNEXPECTED_TOKEN", m.message), f += m.source.length;
2816
+ break;
2817
+ /* istanbul ignore next should not happen */
2818
+ default: {
2819
+ const y = `Unexpected token in block scalar header: ${m.type}`;
2820
+ n(m, "UNEXPECTED_TOKEN", y);
2821
+ const h = m.source;
2822
+ h && typeof h == "string" && (f += h.length);
2823
+ }
2824
+ }
2825
+ }
2826
+ return { mode: r, indent: o, chomp: l, comment: d, length: f };
2827
+ }
2828
+ function pn(s) {
2829
+ const e = s.split(/\n( *)/), t = e[0], n = t.match(/^( *)/), r = [n?.[1] ? [n[1], t.slice(n[1].length)] : ["", t]];
2830
+ for (let o = 1; o < e.length; o += 2)
2831
+ r.push([e[o], e[o + 1]]);
2832
+ return r;
2833
+ }
2834
+ function ws(s, e, t) {
2835
+ const { offset: n, type: i, source: r, end: o } = s;
2836
+ let l, a;
2837
+ const c = (u, m, y) => t(n + u, m, y);
2838
+ switch (i) {
2839
+ case "scalar":
2840
+ l = O.PLAIN, a = mn(r, c);
2841
+ break;
2842
+ case "single-quoted-scalar":
2843
+ l = O.QUOTE_SINGLE, a = yn(r, c);
2844
+ break;
2845
+ case "double-quoted-scalar":
2846
+ l = O.QUOTE_DOUBLE, a = gn(r, c);
2847
+ break;
2848
+ /* istanbul ignore next should not happen */
2849
+ default:
2850
+ return t(s, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${i}`), {
2851
+ value: "",
2852
+ type: null,
2853
+ comment: "",
2854
+ range: [n, n + r.length, n + r.length]
2855
+ };
2856
+ }
2857
+ const d = n + r.length, f = Ie(o, d, e, t);
2858
+ return {
2859
+ value: a,
2860
+ type: l,
2861
+ comment: f.comment,
2862
+ range: [n, d, f.offset]
2863
+ };
2864
+ }
2865
+ function mn(s, e) {
2866
+ let t = "";
2867
+ switch (s[0]) {
2868
+ /* istanbul ignore next should not happen */
2869
+ case " ":
2870
+ t = "a tab character";
2871
+ break;
2872
+ case ",":
2873
+ t = "flow indicator character ,";
2874
+ break;
2875
+ case "%":
2876
+ t = "directive indicator character %";
2877
+ break;
2878
+ case "|":
2879
+ case ">": {
2880
+ t = `block scalar indicator ${s[0]}`;
2881
+ break;
2882
+ }
2883
+ case "@":
2884
+ case "`": {
2885
+ t = `reserved character ${s[0]}`;
2886
+ break;
2887
+ }
2888
+ }
2889
+ return t && e(0, "BAD_SCALAR_START", `Plain value cannot start with ${t}`), Ss(s);
2890
+ }
2891
+ function yn(s, e) {
2892
+ return (s[s.length - 1] !== "'" || s.length === 1) && e(s.length, "MISSING_CHAR", "Missing closing 'quote"), Ss(s.slice(1, -1)).replace(/''/g, "'");
2893
+ }
2894
+ function Ss(s) {
2895
+ let e, t;
2896
+ try {
2897
+ e = new RegExp(`(.*?)(?<![ ])[ ]*\r?
2898
+ `, "sy"), t = new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
2899
+ `, "sy");
2900
+ } catch {
2901
+ e = /(.*?)[ \t]*\r?\n/sy, t = /[ \t]*(.*?)[ \t]*\r?\n/sy;
2902
+ }
2903
+ let n = e.exec(s);
2904
+ if (!n)
2905
+ return s;
2906
+ let i = n[1], r = " ", o = e.lastIndex;
2907
+ for (t.lastIndex = o; n = t.exec(s); )
2908
+ n[1] === "" ? r === `
2909
+ ` ? i += r : r = `
2910
+ ` : (i += r + n[1], r = " "), o = t.lastIndex;
2911
+ const l = /[ \t]*(.*)/sy;
2912
+ return l.lastIndex = o, n = l.exec(s), i + r + (n?.[1] ?? "");
2913
+ }
2914
+ function gn(s, e) {
2915
+ let t = "";
2916
+ for (let n = 1; n < s.length - 1; ++n) {
2917
+ const i = s[n];
2918
+ if (!(i === "\r" && s[n + 1] === `
2919
+ `))
2920
+ if (i === `
2921
+ `) {
2922
+ const { fold: r, offset: o } = bn(s, n);
2923
+ t += r, n = o;
2924
+ } else if (i === "\\") {
2925
+ let r = s[++n];
2926
+ const o = wn[r];
2927
+ if (o)
2928
+ t += o;
2929
+ else if (r === `
2930
+ `)
2931
+ for (r = s[n + 1]; r === " " || r === " "; )
2932
+ r = s[++n + 1];
2933
+ else if (r === "\r" && s[n + 1] === `
2934
+ `)
2935
+ for (r = s[++n + 1]; r === " " || r === " "; )
2936
+ r = s[++n + 1];
2937
+ else if (r === "x" || r === "u" || r === "U") {
2938
+ const l = { x: 2, u: 4, U: 8 }[r];
2939
+ t += Sn(s, n + 1, l, e), n += l;
2940
+ } else {
2941
+ const l = s.substr(n - 1, 2);
2942
+ e(n - 1, "BAD_DQ_ESCAPE", `Invalid escape sequence ${l}`), t += l;
2943
+ }
2944
+ } else if (i === " " || i === " ") {
2945
+ const r = n;
2946
+ let o = s[n + 1];
2947
+ for (; o === " " || o === " "; )
2948
+ o = s[++n + 1];
2949
+ o !== `
2950
+ ` && !(o === "\r" && s[n + 2] === `
2951
+ `) && (t += n > r ? s.slice(r, n + 1) : i);
2952
+ } else
2953
+ t += i;
2954
+ }
2955
+ return (s[s.length - 1] !== '"' || s.length === 1) && e(s.length, "MISSING_CHAR", 'Missing closing "quote'), t;
2956
+ }
2957
+ function bn(s, e) {
2958
+ let t = "", n = s[e + 1];
2959
+ for (; (n === " " || n === " " || n === `
2960
+ ` || n === "\r") && !(n === "\r" && s[e + 2] !== `
2961
+ `); )
2962
+ n === `
2963
+ ` && (t += `
2964
+ `), e += 1, n = s[e + 1];
2965
+ return t || (t = " "), { fold: t, offset: e };
2966
+ }
2967
+ const wn = {
2968
+ 0: "\0",
2969
+ // null character
2970
+ a: "\x07",
2971
+ // bell character
2972
+ b: "\b",
2973
+ // backspace
2974
+ e: "\x1B",
2975
+ // escape character
2976
+ f: "\f",
2977
+ // form feed
2978
+ n: `
2979
+ `,
2980
+ // line feed
2981
+ r: "\r",
2982
+ // carriage return
2983
+ t: " ",
2984
+ // horizontal tab
2985
+ v: "\v",
2986
+ // vertical tab
2987
+ N: "…",
2988
+ // Unicode next line
2989
+ _: " ",
2990
+ // Unicode non-breaking space
2991
+ L: "\u2028",
2992
+ // Unicode line separator
2993
+ P: "\u2029",
2994
+ // Unicode paragraph separator
2995
+ " ": " ",
2996
+ '"': '"',
2997
+ "/": "/",
2998
+ "\\": "\\",
2999
+ " ": " "
3000
+ };
3001
+ function Sn(s, e, t, n) {
3002
+ const i = s.substr(e, t), o = i.length === t && /^[0-9a-fA-F]+$/.test(i) ? parseInt(i, 16) : NaN;
3003
+ if (isNaN(o)) {
3004
+ const l = s.substr(e - 2, t + 2);
3005
+ return n(e - 2, "BAD_DQ_ESCAPE", `Invalid escape sequence ${l}`), l;
3006
+ }
3007
+ return String.fromCodePoint(o);
3008
+ }
3009
+ function ks(s, e, t, n) {
3010
+ const { value: i, type: r, comment: o, range: l } = e.type === "block-scalar" ? bs(s, e, n) : ws(e, s.options.strict, n), a = t ? s.directives.tagName(t.source, (f) => n(t, "TAG_RESOLVE_FAILED", f)) : null;
3011
+ let c;
3012
+ s.options.stringKeys && s.atKey ? c = s.schema[R] : a ? c = kn(s.schema, i, a, t, n) : e.type === "scalar" ? c = Nn(s, i, e, n) : c = s.schema[R];
3013
+ let d;
3014
+ try {
3015
+ const f = c.resolve(i, (u) => n(t ?? e, "TAG_RESOLVE_FAILED", u), s.options);
3016
+ d = E(f) ? f : new O(f);
3017
+ } catch (f) {
3018
+ const u = f instanceof Error ? f.message : String(f);
3019
+ n(t ?? e, "TAG_RESOLVE_FAILED", u), d = new O(i);
3020
+ }
3021
+ return d.range = l, d.source = i, r && (d.type = r), a && (d.tag = a), c.format && (d.format = c.format), o && (d.comment = o), d;
3022
+ }
3023
+ function kn(s, e, t, n, i) {
3024
+ if (t === "!")
3025
+ return s[R];
3026
+ const r = [];
3027
+ for (const l of s.tags)
3028
+ if (!l.collection && l.tag === t)
3029
+ if (l.default && l.test)
3030
+ r.push(l);
3031
+ else
3032
+ return l;
3033
+ for (const l of r)
3034
+ if (l.test?.test(e))
3035
+ return l;
3036
+ const o = s.knownTags[t];
3037
+ return o && !o.collection ? (s.tags.push(Object.assign({}, o, { default: !1, test: void 0 })), o) : (i(n, "TAG_RESOLVE_FAILED", `Unresolved tag: ${t}`, t !== "tag:yaml.org,2002:str"), s[R]);
3038
+ }
3039
+ function Nn({ atKey: s, directives: e, schema: t }, n, i, r) {
3040
+ const o = t.tags.find((l) => (l.default === !0 || s && l.default === "key") && l.test?.test(n)) || t[R];
3041
+ if (t.compat) {
3042
+ const l = t.compat.find((a) => a.default && a.test?.test(n)) ?? t[R];
3043
+ if (o.tag !== l.tag) {
3044
+ const a = e.tagString(o.tag), c = e.tagString(l.tag), d = `Value may be parsed as either ${a} or ${c}`;
3045
+ r(i, "TAG_RESOLVE_FAILED", d, !0);
3046
+ }
3047
+ }
3048
+ return o;
3049
+ }
3050
+ function On(s, e, t) {
3051
+ if (e) {
3052
+ t === null && (t = e.length);
3053
+ for (let n = t - 1; n >= 0; --n) {
3054
+ let i = e[n];
3055
+ switch (i.type) {
3056
+ case "space":
3057
+ case "comment":
3058
+ case "newline":
3059
+ s -= i.source.length;
3060
+ continue;
3061
+ }
3062
+ for (i = e[++n]; i?.type === "space"; )
3063
+ s += i.source.length, i = e[++n];
3064
+ break;
3065
+ }
3066
+ }
3067
+ return s;
3068
+ }
3069
+ const An = { composeNode: Ns, composeEmptyNode: Et };
3070
+ function Ns(s, e, t, n) {
3071
+ const i = s.atKey, { spaceBefore: r, comment: o, anchor: l, tag: a } = t;
3072
+ let c, d = !0;
3073
+ switch (e.type) {
3074
+ case "alias":
3075
+ c = En(s, e, n), (l || a) && n(e, "ALIAS_PROPS", "An alias node must not specify any properties");
3076
+ break;
3077
+ case "scalar":
3078
+ case "single-quoted-scalar":
3079
+ case "double-quoted-scalar":
3080
+ case "block-scalar":
3081
+ c = ks(s, e, a, n), l && (c.anchor = l.source.substring(1));
3082
+ break;
3083
+ case "block-map":
3084
+ case "block-seq":
3085
+ case "flow-collection":
3086
+ c = hn(An, s, e, t, n), l && (c.anchor = l.source.substring(1));
3087
+ break;
3088
+ default: {
3089
+ const f = e.type === "error" ? e.message : `Unsupported token (type: ${e.type})`;
3090
+ n(e, "UNEXPECTED_TOKEN", f), c = Et(s, e.offset, void 0, null, t, n), d = !1;
3091
+ }
3092
+ }
3093
+ return l && c.anchor === "" && n(l, "BAD_ALIAS", "Anchor cannot be an empty string"), i && s.options.stringKeys && (!E(c) || typeof c.value != "string" || c.tag && c.tag !== "tag:yaml.org,2002:str") && n(a ?? e, "NON_STRING_KEY", "With stringKeys, all keys must be strings"), r && (c.spaceBefore = !0), o && (e.type === "scalar" && e.source === "" ? c.comment = o : c.commentBefore = o), s.options.keepSourceTokens && d && (c.srcToken = e), c;
3094
+ }
3095
+ function Et(s, e, t, n, { spaceBefore: i, comment: r, anchor: o, tag: l, end: a }, c) {
3096
+ const d = {
3097
+ type: "scalar",
3098
+ offset: On(e, t, n),
3099
+ indent: -1,
3100
+ source: ""
3101
+ }, f = ks(s, d, l, c);
3102
+ return o && (f.anchor = o.source.substring(1), f.anchor === "" && c(o, "BAD_ALIAS", "Anchor cannot be an empty string")), i && (f.spaceBefore = !0), r && (f.comment = r, f.range[2] = a), f;
3103
+ }
3104
+ function En({ options: s }, { offset: e, source: t, end: n }, i) {
3105
+ const r = new Re(t.substring(1));
3106
+ r.source === "" && i(e, "BAD_ALIAS", "Alias cannot be an empty string"), r.source.endsWith(":") && i(e + t.length - 1, "BAD_ALIAS", "Alias ending in : is ambiguous", !0);
3107
+ const o = e + t.length, l = Ie(n, o, s.strict, i);
3108
+ return r.range = [e, o, l.offset], l.comment && (r.comment = l.comment), r;
3109
+ }
3110
+ function In(s, e, { offset: t, start: n, value: i, end: r }, o) {
3111
+ const l = Object.assign({ _directives: e }, s), a = new ge(void 0, l), c = {
3112
+ atKey: !1,
3113
+ atRoot: !0,
3114
+ directives: a.directives,
3115
+ options: a.options,
3116
+ schema: a.schema
3117
+ }, d = ue(n, {
3118
+ indicator: "doc-start",
3119
+ next: i ?? r?.[0],
3120
+ offset: t,
3121
+ onError: o,
3122
+ parentIndent: 0,
3123
+ startOnNewline: !0
3124
+ });
3125
+ d.found && (a.directives.docStart = !0, i && (i.type === "block-map" || i.type === "block-seq") && !d.hasNewline && o(d.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker")), a.contents = i ? Ns(c, i, d, o) : Et(c, d.end, n, null, d, o);
3126
+ const f = a.contents.range[2], u = Ie(r, f, !1, o);
3127
+ return u.comment && (a.comment = u.comment), a.range = [t, f, u.offset], a;
3128
+ }
3129
+ function be(s) {
3130
+ if (typeof s == "number")
3131
+ return [s, s + 1];
3132
+ if (Array.isArray(s))
3133
+ return s.length === 2 ? s : [s[0], s[1]];
3134
+ const { offset: e, source: t } = s;
3135
+ return [e, e + (typeof t == "string" ? t.length : 1)];
3136
+ }
3137
+ function Kt(s) {
3138
+ let e = "", t = !1, n = !1;
3139
+ for (let i = 0; i < s.length; ++i) {
3140
+ const r = s[i];
3141
+ switch (r[0]) {
3142
+ case "#":
3143
+ e += (e === "" ? "" : n ? `
3144
+
3145
+ ` : `
3146
+ `) + (r.substring(1) || " "), t = !0, n = !1;
3147
+ break;
3148
+ case "%":
3149
+ s[i + 1]?.[0] !== "#" && (i += 1), t = !1;
3150
+ break;
3151
+ default:
3152
+ t || (n = !0), t = !1;
3153
+ }
3154
+ }
3155
+ return { comment: e, afterEmptyLine: n };
3156
+ }
3157
+ class It {
3158
+ constructor(e = {}) {
3159
+ this.doc = null, this.atDirectives = !1, this.prelude = [], this.errors = [], this.warnings = [], this.onError = (t, n, i, r) => {
3160
+ const o = be(t);
3161
+ r ? this.warnings.push(new ys(o, n, i)) : this.errors.push(new z(o, n, i));
3162
+ }, this.directives = new B({ version: e.version || "1.2" }), this.options = e;
3163
+ }
3164
+ decorate(e, t) {
3165
+ const { comment: n, afterEmptyLine: i } = Kt(this.prelude);
3166
+ if (n) {
3167
+ const r = e.contents;
3168
+ if (t)
3169
+ e.comment = e.comment ? `${e.comment}
3170
+ ${n}` : n;
3171
+ else if (i || e.directives.docStart || !r)
3172
+ e.commentBefore = n;
3173
+ else if (L(r) && !r.flow && r.items.length > 0) {
3174
+ let o = r.items[0];
3175
+ T(o) && (o = o.key);
3176
+ const l = o.commentBefore;
3177
+ o.commentBefore = l ? `${n}
3178
+ ${l}` : n;
3179
+ } else {
3180
+ const o = r.commentBefore;
3181
+ r.commentBefore = o ? `${n}
3182
+ ${o}` : n;
3183
+ }
3184
+ }
3185
+ t ? (Array.prototype.push.apply(e.errors, this.errors), Array.prototype.push.apply(e.warnings, this.warnings)) : (e.errors = this.errors, e.warnings = this.warnings), this.prelude = [], this.errors = [], this.warnings = [];
3186
+ }
3187
+ /**
3188
+ * Current stream status information.
3189
+ *
3190
+ * Mostly useful at the end of input for an empty stream.
3191
+ */
3192
+ streamInfo() {
3193
+ return {
3194
+ comment: Kt(this.prelude).comment,
3195
+ directives: this.directives,
3196
+ errors: this.errors,
3197
+ warnings: this.warnings
3198
+ };
3199
+ }
3200
+ /**
3201
+ * Compose tokens into documents.
3202
+ *
3203
+ * @param forceDoc - If the stream contains no document, still emit a final document including any comments and directives that would be applied to a subsequent document.
3204
+ * @param endOffset - Should be set if `forceDoc` is also set, to set the document range end and to indicate errors correctly.
3205
+ */
3206
+ *compose(e, t = !1, n = -1) {
3207
+ for (const i of e)
3208
+ yield* this.next(i);
3209
+ yield* this.end(t, n);
3210
+ }
3211
+ /** Advance the composer by one CST token. */
3212
+ *next(e) {
3213
+ switch (e.type) {
3214
+ case "directive":
3215
+ this.directives.add(e.source, (t, n, i) => {
3216
+ const r = be(e);
3217
+ r[0] += t, this.onError(r, "BAD_DIRECTIVE", n, i);
3218
+ }), this.prelude.push(e.source), this.atDirectives = !0;
3219
+ break;
3220
+ case "document": {
3221
+ const t = In(this.options, this.directives, e, this.onError);
3222
+ this.atDirectives && !t.directives.docStart && this.onError(e, "MISSING_CHAR", "Missing directives-end/doc-start indicator line"), this.decorate(t, !1), this.doc && (yield this.doc), this.doc = t, this.atDirectives = !1;
3223
+ break;
3224
+ }
3225
+ case "byte-order-mark":
3226
+ case "space":
3227
+ break;
3228
+ case "comment":
3229
+ case "newline":
3230
+ this.prelude.push(e.source);
3231
+ break;
3232
+ case "error": {
3233
+ const t = e.source ? `${e.message}: ${JSON.stringify(e.source)}` : e.message, n = new z(be(e), "UNEXPECTED_TOKEN", t);
3234
+ this.atDirectives || !this.doc ? this.errors.push(n) : this.doc.errors.push(n);
3235
+ break;
3236
+ }
3237
+ case "doc-end": {
3238
+ if (!this.doc) {
3239
+ const n = "Unexpected doc-end without preceding document";
3240
+ this.errors.push(new z(be(e), "UNEXPECTED_TOKEN", n));
3241
+ break;
3242
+ }
3243
+ this.doc.directives.docEnd = !0;
3244
+ const t = Ie(e.end, e.offset + e.source.length, this.doc.options.strict, this.onError);
3245
+ if (this.decorate(this.doc, !0), t.comment) {
3246
+ const n = this.doc.comment;
3247
+ this.doc.comment = n ? `${n}
3248
+ ${t.comment}` : t.comment;
3249
+ }
3250
+ this.doc.range[2] = t.offset;
3251
+ break;
3252
+ }
3253
+ default:
3254
+ this.errors.push(new z(be(e), "UNEXPECTED_TOKEN", `Unsupported token ${e.type}`));
3255
+ }
3256
+ }
3257
+ /**
3258
+ * Call at end of input to yield any remaining document.
3259
+ *
3260
+ * @param forceDoc - If the stream contains no document, still emit a final document including any comments and directives that would be applied to a subsequent document.
3261
+ * @param endOffset - Should be set if `forceDoc` is also set, to set the document range end and to indicate errors correctly.
3262
+ */
3263
+ *end(e = !1, t = -1) {
3264
+ if (this.doc)
3265
+ this.decorate(this.doc, !0), yield this.doc, this.doc = null;
3266
+ else if (e) {
3267
+ const n = Object.assign({ _directives: this.directives }, this.options), i = new ge(void 0, n);
3268
+ this.atDirectives && this.onError(t, "MISSING_CHAR", "Missing directives-end indicator line"), i.range = [0, t, t], this.decorate(i, !1), yield i;
3269
+ }
3270
+ }
3271
+ }
3272
+ function Tn(s, e = !0, t) {
3273
+ if (s) {
3274
+ const n = (i, r, o) => {
3275
+ const l = typeof i == "number" ? i : Array.isArray(i) ? i[0] : i.offset;
3276
+ if (t)
3277
+ t(l, r, o);
3278
+ else
3279
+ throw new z([l, l + 1], r, o);
3280
+ };
3281
+ switch (s.type) {
3282
+ case "scalar":
3283
+ case "single-quoted-scalar":
3284
+ case "double-quoted-scalar":
3285
+ return ws(s, e, n);
3286
+ case "block-scalar":
3287
+ return bs({ options: { strict: e } }, s, n);
3288
+ }
3289
+ }
3290
+ return null;
3291
+ }
3292
+ function Ln(s, e) {
3293
+ const { implicitKey: t = !1, indent: n, inFlow: i = !1, offset: r = -1, type: o = "PLAIN" } = e, l = Ae({ type: o, value: s }, {
3294
+ implicitKey: t,
3295
+ indent: n > 0 ? " ".repeat(n) : "",
3296
+ inFlow: i,
3297
+ options: { blockQuote: !0, lineWidth: -1 }
3298
+ }), a = e.end ?? [
3299
+ { type: "newline", offset: -1, indent: n, source: `
3300
+ ` }
3301
+ ];
3302
+ switch (l[0]) {
3303
+ case "|":
3304
+ case ">": {
3305
+ const c = l.indexOf(`
3306
+ `), d = l.substring(0, c), f = l.substring(c + 1) + `
3307
+ `, u = [
3308
+ { type: "block-scalar-header", offset: r, indent: n, source: d }
3309
+ ];
3310
+ return Os(u, a) || u.push({ type: "newline", offset: -1, indent: n, source: `
3311
+ ` }), { type: "block-scalar", offset: r, indent: n, props: u, source: f };
3312
+ }
3313
+ case '"':
3314
+ return { type: "double-quoted-scalar", offset: r, indent: n, source: l, end: a };
3315
+ case "'":
3316
+ return { type: "single-quoted-scalar", offset: r, indent: n, source: l, end: a };
3317
+ default:
3318
+ return { type: "scalar", offset: r, indent: n, source: l, end: a };
3319
+ }
3320
+ }
3321
+ function $n(s, e, t = {}) {
3322
+ let { afterKey: n = !1, implicitKey: i = !1, inFlow: r = !1, type: o } = t, l = "indent" in s ? s.indent : null;
3323
+ if (n && typeof l == "number" && (l += 2), !o)
3324
+ switch (s.type) {
3325
+ case "single-quoted-scalar":
3326
+ o = "QUOTE_SINGLE";
3327
+ break;
3328
+ case "double-quoted-scalar":
3329
+ o = "QUOTE_DOUBLE";
3330
+ break;
3331
+ case "block-scalar": {
3332
+ const c = s.props[0];
3333
+ if (c.type !== "block-scalar-header")
3334
+ throw new Error("Invalid block scalar header");
3335
+ o = c.source[0] === ">" ? "BLOCK_FOLDED" : "BLOCK_LITERAL";
3336
+ break;
3337
+ }
3338
+ default:
3339
+ o = "PLAIN";
3340
+ }
3341
+ const a = Ae({ type: o, value: e }, {
3342
+ implicitKey: i || l === null,
3343
+ indent: l !== null && l > 0 ? " ".repeat(l) : "",
3344
+ inFlow: r,
3345
+ options: { blockQuote: !0, lineWidth: -1 }
3346
+ });
3347
+ switch (a[0]) {
3348
+ case "|":
3349
+ case ">":
3350
+ _n(s, a);
3351
+ break;
3352
+ case '"':
3353
+ rt(s, a, "double-quoted-scalar");
3354
+ break;
3355
+ case "'":
3356
+ rt(s, a, "single-quoted-scalar");
3357
+ break;
3358
+ default:
3359
+ rt(s, a, "scalar");
3360
+ }
3361
+ }
3362
+ function _n(s, e) {
3363
+ const t = e.indexOf(`
3364
+ `), n = e.substring(0, t), i = e.substring(t + 1) + `
3365
+ `;
3366
+ if (s.type === "block-scalar") {
3367
+ const r = s.props[0];
3368
+ if (r.type !== "block-scalar-header")
3369
+ throw new Error("Invalid block scalar header");
3370
+ r.source = n, s.source = i;
3371
+ } else {
3372
+ const { offset: r } = s, o = "indent" in s ? s.indent : -1, l = [
3373
+ { type: "block-scalar-header", offset: r, indent: o, source: n }
3374
+ ];
3375
+ Os(l, "end" in s ? s.end : void 0) || l.push({ type: "newline", offset: -1, indent: o, source: `
3376
+ ` });
3377
+ for (const a of Object.keys(s))
3378
+ a !== "type" && a !== "offset" && delete s[a];
3379
+ Object.assign(s, { type: "block-scalar", indent: o, props: l, source: i });
3380
+ }
3381
+ }
3382
+ function Os(s, e) {
3383
+ if (e)
3384
+ for (const t of e)
3385
+ switch (t.type) {
3386
+ case "space":
3387
+ case "comment":
3388
+ s.push(t);
3389
+ break;
3390
+ case "newline":
3391
+ return s.push(t), !0;
3392
+ }
3393
+ return !1;
3394
+ }
3395
+ function rt(s, e, t) {
3396
+ switch (s.type) {
3397
+ case "scalar":
3398
+ case "double-quoted-scalar":
3399
+ case "single-quoted-scalar":
3400
+ s.type = t, s.source = e;
3401
+ break;
3402
+ case "block-scalar": {
3403
+ const n = s.props.slice(1);
3404
+ let i = e.length;
3405
+ s.props[0].type === "block-scalar-header" && (i -= s.props[0].source.length);
3406
+ for (const r of n)
3407
+ r.offset += i;
3408
+ delete s.props, Object.assign(s, { type: t, source: e, end: n });
3409
+ break;
3410
+ }
3411
+ case "block-map":
3412
+ case "block-seq": {
3413
+ const i = { type: "newline", offset: s.offset + e.length, indent: s.indent, source: `
3414
+ ` };
3415
+ delete s.items, Object.assign(s, { type: t, source: e, end: [i] });
3416
+ break;
3417
+ }
3418
+ default: {
3419
+ const n = "indent" in s ? s.indent : -1, i = "end" in s && Array.isArray(s.end) ? s.end.filter((r) => r.type === "space" || r.type === "comment" || r.type === "newline") : [];
3420
+ for (const r of Object.keys(s))
3421
+ r !== "type" && r !== "offset" && delete s[r];
3422
+ Object.assign(s, { type: t, indent: n, source: e, end: i });
3423
+ }
3424
+ }
3425
+ }
3426
+ const Cn = (s) => "type" in s ? qe(s) : Ke(s);
3427
+ function qe(s) {
3428
+ switch (s.type) {
3429
+ case "block-scalar": {
3430
+ let e = "";
3431
+ for (const t of s.props)
3432
+ e += qe(t);
3433
+ return e + s.source;
3434
+ }
3435
+ case "block-map":
3436
+ case "block-seq": {
3437
+ let e = "";
3438
+ for (const t of s.items)
3439
+ e += Ke(t);
3440
+ return e;
3441
+ }
3442
+ case "flow-collection": {
3443
+ let e = s.start.source;
3444
+ for (const t of s.items)
3445
+ e += Ke(t);
3446
+ for (const t of s.end)
3447
+ e += t.source;
3448
+ return e;
3449
+ }
3450
+ case "document": {
3451
+ let e = Ke(s);
3452
+ if (s.end)
3453
+ for (const t of s.end)
3454
+ e += t.source;
3455
+ return e;
3456
+ }
3457
+ default: {
3458
+ let e = s.source;
3459
+ if ("end" in s && s.end)
3460
+ for (const t of s.end)
3461
+ e += t.source;
3462
+ return e;
3463
+ }
3464
+ }
3465
+ }
3466
+ function Ke({ start: s, key: e, sep: t, value: n }) {
3467
+ let i = "";
3468
+ for (const r of s)
3469
+ i += r.source;
3470
+ if (e && (i += qe(e)), t)
3471
+ for (const r of t)
3472
+ i += r.source;
3473
+ return n && (i += qe(n)), i;
3474
+ }
3475
+ const ht = Symbol("break visit"), vn = Symbol("skip children"), As = Symbol("remove item");
3476
+ function x(s, e) {
3477
+ "type" in s && s.type === "document" && (s = { start: s.start, value: s.value }), Es(Object.freeze([]), s, e);
3478
+ }
3479
+ x.BREAK = ht;
3480
+ x.SKIP = vn;
3481
+ x.REMOVE = As;
3482
+ x.itemAtPath = (s, e) => {
3483
+ let t = s;
3484
+ for (const [n, i] of e) {
3485
+ const r = t?.[n];
3486
+ if (r && "items" in r)
3487
+ t = r.items[i];
3488
+ else
3489
+ return;
3490
+ }
3491
+ return t;
3492
+ };
3493
+ x.parentCollection = (s, e) => {
3494
+ const t = x.itemAtPath(s, e.slice(0, -1)), n = e[e.length - 1][0], i = t?.[n];
3495
+ if (i && "items" in i)
3496
+ return i;
3497
+ throw new Error("Parent collection not found");
3498
+ };
3499
+ function Es(s, e, t) {
3500
+ let n = t(e, s);
3501
+ if (typeof n == "symbol")
3502
+ return n;
3503
+ for (const i of ["key", "value"]) {
3504
+ const r = e[i];
3505
+ if (r && "items" in r) {
3506
+ for (let o = 0; o < r.items.length; ++o) {
3507
+ const l = Es(Object.freeze(s.concat([[i, o]])), r.items[o], t);
3508
+ if (typeof l == "number")
3509
+ o = l - 1;
3510
+ else {
3511
+ if (l === ht)
3512
+ return ht;
3513
+ l === As && (r.items.splice(o, 1), o -= 1);
3514
+ }
3515
+ }
3516
+ typeof n == "function" && i === "key" && (n = n(e, s));
3517
+ }
3518
+ }
3519
+ return typeof n == "function" ? n(e, s) : n;
3520
+ }
3521
+ const ze = "\uFEFF", xe = "", Ze = "", Oe = "", Bn = (s) => !!s && "items" in s, Mn = (s) => !!s && (s.type === "scalar" || s.type === "single-quoted-scalar" || s.type === "double-quoted-scalar" || s.type === "block-scalar");
3522
+ function Kn(s) {
3523
+ switch (s) {
3524
+ case ze:
3525
+ return "<BOM>";
3526
+ case xe:
3527
+ return "<DOC>";
3528
+ case Ze:
3529
+ return "<FLOW_END>";
3530
+ case Oe:
3531
+ return "<SCALAR>";
3532
+ default:
3533
+ return JSON.stringify(s);
3534
+ }
3535
+ }
3536
+ function Is(s) {
3537
+ switch (s) {
3538
+ case ze:
3539
+ return "byte-order-mark";
3540
+ case xe:
3541
+ return "doc-mode";
3542
+ case Ze:
3543
+ return "flow-error-end";
3544
+ case Oe:
3545
+ return "scalar";
3546
+ case "---":
3547
+ return "doc-start";
3548
+ case "...":
3549
+ return "doc-end";
3550
+ case "":
3551
+ case `
3552
+ `:
3553
+ case `\r
3554
+ `:
3555
+ return "newline";
3556
+ case "-":
3557
+ return "seq-item-ind";
3558
+ case "?":
3559
+ return "explicit-key-ind";
3560
+ case ":":
3561
+ return "map-value-ind";
3562
+ case "{":
3563
+ return "flow-map-start";
3564
+ case "}":
3565
+ return "flow-map-end";
3566
+ case "[":
3567
+ return "flow-seq-start";
3568
+ case "]":
3569
+ return "flow-seq-end";
3570
+ case ",":
3571
+ return "comma";
3572
+ }
3573
+ switch (s[0]) {
3574
+ case " ":
3575
+ case " ":
3576
+ return "space";
3577
+ case "#":
3578
+ return "comment";
3579
+ case "%":
3580
+ return "directive-line";
3581
+ case "*":
3582
+ return "alias";
3583
+ case "&":
3584
+ return "anchor";
3585
+ case "!":
3586
+ return "tag";
3587
+ case "'":
3588
+ return "single-quoted-scalar";
3589
+ case '"':
3590
+ return "double-quoted-scalar";
3591
+ case "|":
3592
+ case ">":
3593
+ return "block-scalar-header";
3594
+ }
3595
+ return null;
3596
+ }
3597
+ const jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3598
+ __proto__: null,
3599
+ BOM: ze,
3600
+ DOCUMENT: xe,
3601
+ FLOW_END: Ze,
3602
+ SCALAR: Oe,
3603
+ createScalarToken: Ln,
3604
+ isCollection: Bn,
3605
+ isScalar: Mn,
3606
+ prettyToken: Kn,
3607
+ resolveAsScalar: Tn,
3608
+ setScalarValue: $n,
3609
+ stringify: Cn,
3610
+ tokenType: Is,
3611
+ visit: x
3612
+ }, Symbol.toStringTag, { value: "Module" }));
3613
+ function D(s) {
3614
+ switch (s) {
3615
+ case void 0:
3616
+ case " ":
3617
+ case `
3618
+ `:
3619
+ case "\r":
3620
+ case " ":
3621
+ return !0;
3622
+ default:
3623
+ return !1;
3624
+ }
3625
+ }
3626
+ const jt = new Set("0123456789ABCDEFabcdef"), Pn = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), _e = new Set(",[]{}"), Dn = new Set(` ,[]{}
3627
+ \r `), ot = (s) => !s || Dn.has(s);
3628
+ class Ts {
3629
+ constructor() {
3630
+ this.atEnd = !1, this.blockScalarIndent = -1, this.blockScalarKeep = !1, this.buffer = "", this.flowKey = !1, this.flowLevel = 0, this.indentNext = 0, this.indentValue = 0, this.lineEndPos = null, this.next = null, this.pos = 0;
3631
+ }
3632
+ /**
3633
+ * Generate YAML tokens from the `source` string. If `incomplete`,
3634
+ * a part of the last line may be left as a buffer for the next call.
3635
+ *
3636
+ * @returns A generator of lexical tokens
3637
+ */
3638
+ *lex(e, t = !1) {
3639
+ if (e) {
3640
+ if (typeof e != "string")
3641
+ throw TypeError("source is not a string");
3642
+ this.buffer = this.buffer ? this.buffer + e : e, this.lineEndPos = null;
3643
+ }
3644
+ this.atEnd = !t;
3645
+ let n = this.next ?? "stream";
3646
+ for (; n && (t || this.hasChars(1)); )
3647
+ n = yield* this.parseNext(n);
3648
+ }
3649
+ atLineEnd() {
3650
+ let e = this.pos, t = this.buffer[e];
3651
+ for (; t === " " || t === " "; )
3652
+ t = this.buffer[++e];
3653
+ return !t || t === "#" || t === `
3654
+ ` ? !0 : t === "\r" ? this.buffer[e + 1] === `
3655
+ ` : !1;
3656
+ }
3657
+ charAt(e) {
3658
+ return this.buffer[this.pos + e];
3659
+ }
3660
+ continueScalar(e) {
3661
+ let t = this.buffer[e];
3662
+ if (this.indentNext > 0) {
3663
+ let n = 0;
3664
+ for (; t === " "; )
3665
+ t = this.buffer[++n + e];
3666
+ if (t === "\r") {
3667
+ const i = this.buffer[n + e + 1];
3668
+ if (i === `
3669
+ ` || !i && !this.atEnd)
3670
+ return e + n + 1;
3671
+ }
3672
+ return t === `
3673
+ ` || n >= this.indentNext || !t && !this.atEnd ? e + n : -1;
3674
+ }
3675
+ if (t === "-" || t === ".") {
3676
+ const n = this.buffer.substr(e, 3);
3677
+ if ((n === "---" || n === "...") && D(this.buffer[e + 3]))
3678
+ return -1;
3679
+ }
3680
+ return e;
3681
+ }
3682
+ getLine() {
3683
+ let e = this.lineEndPos;
3684
+ return (typeof e != "number" || e !== -1 && e < this.pos) && (e = this.buffer.indexOf(`
3685
+ `, this.pos), this.lineEndPos = e), e === -1 ? this.atEnd ? this.buffer.substring(this.pos) : null : (this.buffer[e - 1] === "\r" && (e -= 1), this.buffer.substring(this.pos, e));
3686
+ }
3687
+ hasChars(e) {
3688
+ return this.pos + e <= this.buffer.length;
3689
+ }
3690
+ setNext(e) {
3691
+ return this.buffer = this.buffer.substring(this.pos), this.pos = 0, this.lineEndPos = null, this.next = e, null;
3692
+ }
3693
+ peek(e) {
3694
+ return this.buffer.substr(this.pos, e);
3695
+ }
3696
+ *parseNext(e) {
3697
+ switch (e) {
3698
+ case "stream":
3699
+ return yield* this.parseStream();
3700
+ case "line-start":
3701
+ return yield* this.parseLineStart();
3702
+ case "block-start":
3703
+ return yield* this.parseBlockStart();
3704
+ case "doc":
3705
+ return yield* this.parseDocument();
3706
+ case "flow":
3707
+ return yield* this.parseFlowCollection();
3708
+ case "quoted-scalar":
3709
+ return yield* this.parseQuotedScalar();
3710
+ case "block-scalar":
3711
+ return yield* this.parseBlockScalar();
3712
+ case "plain-scalar":
3713
+ return yield* this.parsePlainScalar();
3714
+ }
3715
+ }
3716
+ *parseStream() {
3717
+ let e = this.getLine();
3718
+ if (e === null)
3719
+ return this.setNext("stream");
3720
+ if (e[0] === ze && (yield* this.pushCount(1), e = e.substring(1)), e[0] === "%") {
3721
+ let t = e.length, n = e.indexOf("#");
3722
+ for (; n !== -1; ) {
3723
+ const r = e[n - 1];
3724
+ if (r === " " || r === " ") {
3725
+ t = n - 1;
3726
+ break;
3727
+ } else
3728
+ n = e.indexOf("#", n + 1);
3729
+ }
3730
+ for (; ; ) {
3731
+ const r = e[t - 1];
3732
+ if (r === " " || r === " ")
3733
+ t -= 1;
3734
+ else
3735
+ break;
3736
+ }
3737
+ const i = (yield* this.pushCount(t)) + (yield* this.pushSpaces(!0));
3738
+ return yield* this.pushCount(e.length - i), this.pushNewline(), "stream";
3739
+ }
3740
+ if (this.atLineEnd()) {
3741
+ const t = yield* this.pushSpaces(!0);
3742
+ return yield* this.pushCount(e.length - t), yield* this.pushNewline(), "stream";
3743
+ }
3744
+ return yield xe, yield* this.parseLineStart();
3745
+ }
3746
+ *parseLineStart() {
3747
+ const e = this.charAt(0);
3748
+ if (!e && !this.atEnd)
3749
+ return this.setNext("line-start");
3750
+ if (e === "-" || e === ".") {
3751
+ if (!this.atEnd && !this.hasChars(4))
3752
+ return this.setNext("line-start");
3753
+ const t = this.peek(3);
3754
+ if ((t === "---" || t === "...") && D(this.charAt(3)))
3755
+ return yield* this.pushCount(3), this.indentValue = 0, this.indentNext = 0, t === "---" ? "doc" : "stream";
3756
+ }
3757
+ return this.indentValue = yield* this.pushSpaces(!1), this.indentNext > this.indentValue && !D(this.charAt(1)) && (this.indentNext = this.indentValue), yield* this.parseBlockStart();
3758
+ }
3759
+ *parseBlockStart() {
3760
+ const [e, t] = this.peek(2);
3761
+ if (!t && !this.atEnd)
3762
+ return this.setNext("block-start");
3763
+ if ((e === "-" || e === "?" || e === ":") && D(t)) {
3764
+ const n = (yield* this.pushCount(1)) + (yield* this.pushSpaces(!0));
3765
+ return this.indentNext = this.indentValue + 1, this.indentValue += n, yield* this.parseBlockStart();
3766
+ }
3767
+ return "doc";
3768
+ }
3769
+ *parseDocument() {
3770
+ yield* this.pushSpaces(!0);
3771
+ const e = this.getLine();
3772
+ if (e === null)
3773
+ return this.setNext("doc");
3774
+ let t = yield* this.pushIndicators();
3775
+ switch (e[t]) {
3776
+ case "#":
3777
+ yield* this.pushCount(e.length - t);
3778
+ // fallthrough
3779
+ case void 0:
3780
+ return yield* this.pushNewline(), yield* this.parseLineStart();
3781
+ case "{":
3782
+ case "[":
3783
+ return yield* this.pushCount(1), this.flowKey = !1, this.flowLevel = 1, "flow";
3784
+ case "}":
3785
+ case "]":
3786
+ return yield* this.pushCount(1), "doc";
3787
+ case "*":
3788
+ return yield* this.pushUntil(ot), "doc";
3789
+ case '"':
3790
+ case "'":
3791
+ return yield* this.parseQuotedScalar();
3792
+ case "|":
3793
+ case ">":
3794
+ return t += yield* this.parseBlockScalarHeader(), t += yield* this.pushSpaces(!0), yield* this.pushCount(e.length - t), yield* this.pushNewline(), yield* this.parseBlockScalar();
3795
+ default:
3796
+ return yield* this.parsePlainScalar();
3797
+ }
3798
+ }
3799
+ *parseFlowCollection() {
3800
+ let e, t, n = -1;
3801
+ do
3802
+ e = yield* this.pushNewline(), e > 0 ? (t = yield* this.pushSpaces(!1), this.indentValue = n = t) : t = 0, t += yield* this.pushSpaces(!0);
3803
+ while (e + t > 0);
3804
+ const i = this.getLine();
3805
+ if (i === null)
3806
+ return this.setNext("flow");
3807
+ if ((n !== -1 && n < this.indentNext && i[0] !== "#" || n === 0 && (i.startsWith("---") || i.startsWith("...")) && D(i[3])) && !(n === this.indentNext - 1 && this.flowLevel === 1 && (i[0] === "]" || i[0] === "}")))
3808
+ return this.flowLevel = 0, yield Ze, yield* this.parseLineStart();
3809
+ let r = 0;
3810
+ for (; i[r] === ","; )
3811
+ r += yield* this.pushCount(1), r += yield* this.pushSpaces(!0), this.flowKey = !1;
3812
+ switch (r += yield* this.pushIndicators(), i[r]) {
3813
+ case void 0:
3814
+ return "flow";
3815
+ case "#":
3816
+ return yield* this.pushCount(i.length - r), "flow";
3817
+ case "{":
3818
+ case "[":
3819
+ return yield* this.pushCount(1), this.flowKey = !1, this.flowLevel += 1, "flow";
3820
+ case "}":
3821
+ case "]":
3822
+ return yield* this.pushCount(1), this.flowKey = !0, this.flowLevel -= 1, this.flowLevel ? "flow" : "doc";
3823
+ case "*":
3824
+ return yield* this.pushUntil(ot), "flow";
3825
+ case '"':
3826
+ case "'":
3827
+ return this.flowKey = !0, yield* this.parseQuotedScalar();
3828
+ case ":": {
3829
+ const o = this.charAt(1);
3830
+ if (this.flowKey || D(o) || o === ",")
3831
+ return this.flowKey = !1, yield* this.pushCount(1), yield* this.pushSpaces(!0), "flow";
3832
+ }
3833
+ // fallthrough
3834
+ default:
3835
+ return this.flowKey = !1, yield* this.parsePlainScalar();
3836
+ }
3837
+ }
3838
+ *parseQuotedScalar() {
3839
+ const e = this.charAt(0);
3840
+ let t = this.buffer.indexOf(e, this.pos + 1);
3841
+ if (e === "'")
3842
+ for (; t !== -1 && this.buffer[t + 1] === "'"; )
3843
+ t = this.buffer.indexOf("'", t + 2);
3844
+ else
3845
+ for (; t !== -1; ) {
3846
+ let r = 0;
3847
+ for (; this.buffer[t - 1 - r] === "\\"; )
3848
+ r += 1;
3849
+ if (r % 2 === 0)
3850
+ break;
3851
+ t = this.buffer.indexOf('"', t + 1);
3852
+ }
3853
+ const n = this.buffer.substring(0, t);
3854
+ let i = n.indexOf(`
3855
+ `, this.pos);
3856
+ if (i !== -1) {
3857
+ for (; i !== -1; ) {
3858
+ const r = this.continueScalar(i + 1);
3859
+ if (r === -1)
3860
+ break;
3861
+ i = n.indexOf(`
3862
+ `, r);
3863
+ }
3864
+ i !== -1 && (t = i - (n[i - 1] === "\r" ? 2 : 1));
3865
+ }
3866
+ if (t === -1) {
3867
+ if (!this.atEnd)
3868
+ return this.setNext("quoted-scalar");
3869
+ t = this.buffer.length;
3870
+ }
3871
+ return yield* this.pushToIndex(t + 1, !1), this.flowLevel ? "flow" : "doc";
3872
+ }
3873
+ *parseBlockScalarHeader() {
3874
+ this.blockScalarIndent = -1, this.blockScalarKeep = !1;
3875
+ let e = this.pos;
3876
+ for (; ; ) {
3877
+ const t = this.buffer[++e];
3878
+ if (t === "+")
3879
+ this.blockScalarKeep = !0;
3880
+ else if (t > "0" && t <= "9")
3881
+ this.blockScalarIndent = Number(t) - 1;
3882
+ else if (t !== "-")
3883
+ break;
3884
+ }
3885
+ return yield* this.pushUntil((t) => D(t) || t === "#");
3886
+ }
3887
+ *parseBlockScalar() {
3888
+ let e = this.pos - 1, t = 0, n;
3889
+ e: for (let r = this.pos; n = this.buffer[r]; ++r)
3890
+ switch (n) {
3891
+ case " ":
3892
+ t += 1;
3893
+ break;
3894
+ case `
3895
+ `:
3896
+ e = r, t = 0;
3897
+ break;
3898
+ case "\r": {
3899
+ const o = this.buffer[r + 1];
3900
+ if (!o && !this.atEnd)
3901
+ return this.setNext("block-scalar");
3902
+ if (o === `
3903
+ `)
3904
+ break;
3905
+ }
3906
+ // fallthrough
3907
+ default:
3908
+ break e;
3909
+ }
3910
+ if (!n && !this.atEnd)
3911
+ return this.setNext("block-scalar");
3912
+ if (t >= this.indentNext) {
3913
+ this.blockScalarIndent === -1 ? this.indentNext = t : this.indentNext = this.blockScalarIndent + (this.indentNext === 0 ? 1 : this.indentNext);
3914
+ do {
3915
+ const r = this.continueScalar(e + 1);
3916
+ if (r === -1)
3917
+ break;
3918
+ e = this.buffer.indexOf(`
3919
+ `, r);
3920
+ } while (e !== -1);
3921
+ if (e === -1) {
3922
+ if (!this.atEnd)
3923
+ return this.setNext("block-scalar");
3924
+ e = this.buffer.length;
3925
+ }
3926
+ }
3927
+ let i = e + 1;
3928
+ for (n = this.buffer[i]; n === " "; )
3929
+ n = this.buffer[++i];
3930
+ if (n === " ") {
3931
+ for (; n === " " || n === " " || n === "\r" || n === `
3932
+ `; )
3933
+ n = this.buffer[++i];
3934
+ e = i - 1;
3935
+ } else if (!this.blockScalarKeep)
3936
+ do {
3937
+ let r = e - 1, o = this.buffer[r];
3938
+ o === "\r" && (o = this.buffer[--r]);
3939
+ const l = r;
3940
+ for (; o === " "; )
3941
+ o = this.buffer[--r];
3942
+ if (o === `
3943
+ ` && r >= this.pos && r + 1 + t > l)
3944
+ e = r;
3945
+ else
3946
+ break;
3947
+ } while (!0);
3948
+ return yield Oe, yield* this.pushToIndex(e + 1, !0), yield* this.parseLineStart();
3949
+ }
3950
+ *parsePlainScalar() {
3951
+ const e = this.flowLevel > 0;
3952
+ let t = this.pos - 1, n = this.pos - 1, i;
3953
+ for (; i = this.buffer[++n]; )
3954
+ if (i === ":") {
3955
+ const r = this.buffer[n + 1];
3956
+ if (D(r) || e && _e.has(r))
3957
+ break;
3958
+ t = n;
3959
+ } else if (D(i)) {
3960
+ let r = this.buffer[n + 1];
3961
+ if (i === "\r" && (r === `
3962
+ ` ? (n += 1, i = `
3963
+ `, r = this.buffer[n + 1]) : t = n), r === "#" || e && _e.has(r))
3964
+ break;
3965
+ if (i === `
3966
+ `) {
3967
+ const o = this.continueScalar(n + 1);
3968
+ if (o === -1)
3969
+ break;
3970
+ n = Math.max(n, o - 2);
3971
+ }
3972
+ } else {
3973
+ if (e && _e.has(i))
3974
+ break;
3975
+ t = n;
3976
+ }
3977
+ return !i && !this.atEnd ? this.setNext("plain-scalar") : (yield Oe, yield* this.pushToIndex(t + 1, !0), e ? "flow" : "doc");
3978
+ }
3979
+ *pushCount(e) {
3980
+ return e > 0 ? (yield this.buffer.substr(this.pos, e), this.pos += e, e) : 0;
3981
+ }
3982
+ *pushToIndex(e, t) {
3983
+ const n = this.buffer.slice(this.pos, e);
3984
+ return n ? (yield n, this.pos += n.length, n.length) : (t && (yield ""), 0);
3985
+ }
3986
+ *pushIndicators() {
3987
+ switch (this.charAt(0)) {
3988
+ case "!":
3989
+ return (yield* this.pushTag()) + (yield* this.pushSpaces(!0)) + (yield* this.pushIndicators());
3990
+ case "&":
3991
+ return (yield* this.pushUntil(ot)) + (yield* this.pushSpaces(!0)) + (yield* this.pushIndicators());
3992
+ case "-":
3993
+ // this is an error
3994
+ case "?":
3995
+ // this is an error outside flow collections
3996
+ case ":": {
3997
+ const e = this.flowLevel > 0, t = this.charAt(1);
3998
+ if (D(t) || e && _e.has(t))
3999
+ return e ? this.flowKey && (this.flowKey = !1) : this.indentNext = this.indentValue + 1, (yield* this.pushCount(1)) + (yield* this.pushSpaces(!0)) + (yield* this.pushIndicators());
4000
+ }
4001
+ }
4002
+ return 0;
4003
+ }
4004
+ *pushTag() {
4005
+ if (this.charAt(1) === "<") {
4006
+ let e = this.pos + 2, t = this.buffer[e];
4007
+ for (; !D(t) && t !== ">"; )
4008
+ t = this.buffer[++e];
4009
+ return yield* this.pushToIndex(t === ">" ? e + 1 : e, !1);
4010
+ } else {
4011
+ let e = this.pos + 1, t = this.buffer[e];
4012
+ for (; t; )
4013
+ if (Pn.has(t))
4014
+ t = this.buffer[++e];
4015
+ else if (t === "%" && jt.has(this.buffer[e + 1]) && jt.has(this.buffer[e + 2]))
4016
+ t = this.buffer[e += 3];
4017
+ else
4018
+ break;
4019
+ return yield* this.pushToIndex(e, !1);
4020
+ }
4021
+ }
4022
+ *pushNewline() {
4023
+ const e = this.buffer[this.pos];
4024
+ return e === `
4025
+ ` ? yield* this.pushCount(1) : e === "\r" && this.charAt(1) === `
4026
+ ` ? yield* this.pushCount(2) : 0;
4027
+ }
4028
+ *pushSpaces(e) {
4029
+ let t = this.pos - 1, n;
4030
+ do
4031
+ n = this.buffer[++t];
4032
+ while (n === " " || e && n === " ");
4033
+ const i = t - this.pos;
4034
+ return i > 0 && (yield this.buffer.substr(this.pos, i), this.pos = t), i;
4035
+ }
4036
+ *pushUntil(e) {
4037
+ let t = this.pos, n = this.buffer[t];
4038
+ for (; !e(n); )
4039
+ n = this.buffer[++t];
4040
+ return yield* this.pushToIndex(t, !1);
4041
+ }
4042
+ }
4043
+ class Ls {
4044
+ constructor() {
4045
+ this.lineStarts = [], this.addNewLine = (e) => this.lineStarts.push(e), this.linePos = (e) => {
4046
+ let t = 0, n = this.lineStarts.length;
4047
+ for (; t < n; ) {
4048
+ const r = t + n >> 1;
4049
+ this.lineStarts[r] < e ? t = r + 1 : n = r;
4050
+ }
4051
+ if (this.lineStarts[t] === e)
4052
+ return { line: t + 1, col: 1 };
4053
+ if (t === 0)
4054
+ return { line: 0, col: e };
4055
+ const i = this.lineStarts[t - 1];
4056
+ return { line: t, col: e - i + 1 };
4057
+ };
4058
+ }
4059
+ }
4060
+ function Y(s, e) {
4061
+ for (let t = 0; t < s.length; ++t)
4062
+ if (s[t].type === e)
4063
+ return !0;
4064
+ return !1;
4065
+ }
4066
+ function Pt(s) {
4067
+ for (let e = 0; e < s.length; ++e)
4068
+ switch (s[e].type) {
4069
+ case "space":
4070
+ case "comment":
4071
+ case "newline":
4072
+ break;
4073
+ default:
4074
+ return e;
4075
+ }
4076
+ return -1;
4077
+ }
4078
+ function $s(s) {
4079
+ switch (s?.type) {
4080
+ case "alias":
4081
+ case "scalar":
4082
+ case "single-quoted-scalar":
4083
+ case "double-quoted-scalar":
4084
+ case "flow-collection":
4085
+ return !0;
4086
+ default:
4087
+ return !1;
4088
+ }
4089
+ }
4090
+ function Ce(s) {
4091
+ switch (s.type) {
4092
+ case "document":
4093
+ return s.start;
4094
+ case "block-map": {
4095
+ const e = s.items[s.items.length - 1];
4096
+ return e.sep ?? e.start;
4097
+ }
4098
+ case "block-seq":
4099
+ return s.items[s.items.length - 1].start;
4100
+ /* istanbul ignore next should not happen */
4101
+ default:
4102
+ return [];
4103
+ }
4104
+ }
4105
+ function ne(s) {
4106
+ if (s.length === 0)
4107
+ return [];
4108
+ let e = s.length;
4109
+ e: for (; --e >= 0; )
4110
+ switch (s[e].type) {
4111
+ case "doc-start":
4112
+ case "explicit-key-ind":
4113
+ case "map-value-ind":
4114
+ case "seq-item-ind":
4115
+ case "newline":
4116
+ break e;
4117
+ }
4118
+ for (; s[++e]?.type === "space"; )
4119
+ ;
4120
+ return s.splice(e, s.length);
4121
+ }
4122
+ function Dt(s) {
4123
+ if (s.start.type === "flow-seq-start")
4124
+ for (const e of s.items)
4125
+ e.sep && !e.value && !Y(e.start, "explicit-key-ind") && !Y(e.sep, "map-value-ind") && (e.key && (e.value = e.key), delete e.key, $s(e.value) ? e.value.end ? Array.prototype.push.apply(e.value.end, e.sep) : e.value.end = e.sep : Array.prototype.push.apply(e.start, e.sep), delete e.sep);
4126
+ }
4127
+ class Tt {
4128
+ /**
4129
+ * @param onNewLine - If defined, called separately with the start position of
4130
+ * each new line (in `parse()`, including the start of input).
4131
+ */
4132
+ constructor(e) {
4133
+ this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new Ts(), this.onNewLine = e;
4134
+ }
4135
+ /**
4136
+ * Parse `source` as a YAML stream.
4137
+ * If `incomplete`, a part of the last line may be left as a buffer for the next call.
4138
+ *
4139
+ * Errors are not thrown, but yielded as `{ type: 'error', message }` tokens.
4140
+ *
4141
+ * @returns A generator of tokens representing each directive, document, and other structure.
4142
+ */
4143
+ *parse(e, t = !1) {
4144
+ this.onNewLine && this.offset === 0 && this.onNewLine(0);
4145
+ for (const n of this.lexer.lex(e, t))
4146
+ yield* this.next(n);
4147
+ t || (yield* this.end());
4148
+ }
4149
+ /**
4150
+ * Advance the parser by the `source` of one lexical token.
4151
+ */
4152
+ *next(e) {
4153
+ if (this.source = e, this.atScalar) {
4154
+ this.atScalar = !1, yield* this.step(), this.offset += e.length;
4155
+ return;
4156
+ }
4157
+ const t = Is(e);
4158
+ if (t)
4159
+ if (t === "scalar")
4160
+ this.atNewLine = !1, this.atScalar = !0, this.type = "scalar";
4161
+ else {
4162
+ switch (this.type = t, yield* this.step(), t) {
4163
+ case "newline":
4164
+ this.atNewLine = !0, this.indent = 0, this.onNewLine && this.onNewLine(this.offset + e.length);
4165
+ break;
4166
+ case "space":
4167
+ this.atNewLine && e[0] === " " && (this.indent += e.length);
4168
+ break;
4169
+ case "explicit-key-ind":
4170
+ case "map-value-ind":
4171
+ case "seq-item-ind":
4172
+ this.atNewLine && (this.indent += e.length);
4173
+ break;
4174
+ case "doc-mode":
4175
+ case "flow-error-end":
4176
+ return;
4177
+ default:
4178
+ this.atNewLine = !1;
4179
+ }
4180
+ this.offset += e.length;
4181
+ }
4182
+ else {
4183
+ const n = `Not a YAML token: ${e}`;
4184
+ yield* this.pop({ type: "error", offset: this.offset, message: n, source: e }), this.offset += e.length;
4185
+ }
4186
+ }
4187
+ /** Call at end of input to push out any remaining constructions */
4188
+ *end() {
4189
+ for (; this.stack.length > 0; )
4190
+ yield* this.pop();
4191
+ }
4192
+ get sourceToken() {
4193
+ return {
4194
+ type: this.type,
4195
+ offset: this.offset,
4196
+ indent: this.indent,
4197
+ source: this.source
4198
+ };
4199
+ }
4200
+ *step() {
4201
+ const e = this.peek(1);
4202
+ if (this.type === "doc-end" && (!e || e.type !== "doc-end")) {
4203
+ for (; this.stack.length > 0; )
4204
+ yield* this.pop();
4205
+ this.stack.push({
4206
+ type: "doc-end",
4207
+ offset: this.offset,
4208
+ source: this.source
4209
+ });
4210
+ return;
4211
+ }
4212
+ if (!e)
4213
+ return yield* this.stream();
4214
+ switch (e.type) {
4215
+ case "document":
4216
+ return yield* this.document(e);
4217
+ case "alias":
4218
+ case "scalar":
4219
+ case "single-quoted-scalar":
4220
+ case "double-quoted-scalar":
4221
+ return yield* this.scalar(e);
4222
+ case "block-scalar":
4223
+ return yield* this.blockScalar(e);
4224
+ case "block-map":
4225
+ return yield* this.blockMap(e);
4226
+ case "block-seq":
4227
+ return yield* this.blockSequence(e);
4228
+ case "flow-collection":
4229
+ return yield* this.flowCollection(e);
4230
+ case "doc-end":
4231
+ return yield* this.documentEnd(e);
4232
+ }
4233
+ yield* this.pop();
4234
+ }
4235
+ peek(e) {
4236
+ return this.stack[this.stack.length - e];
4237
+ }
4238
+ *pop(e) {
4239
+ const t = e ?? this.stack.pop();
4240
+ if (!t)
4241
+ yield { type: "error", offset: this.offset, source: "", message: "Tried to pop an empty stack" };
4242
+ else if (this.stack.length === 0)
4243
+ yield t;
4244
+ else {
4245
+ const n = this.peek(1);
4246
+ switch (t.type === "block-scalar" ? t.indent = "indent" in n ? n.indent : 0 : t.type === "flow-collection" && n.type === "document" && (t.indent = 0), t.type === "flow-collection" && Dt(t), n.type) {
4247
+ case "document":
4248
+ n.value = t;
4249
+ break;
4250
+ case "block-scalar":
4251
+ n.props.push(t);
4252
+ break;
4253
+ case "block-map": {
4254
+ const i = n.items[n.items.length - 1];
4255
+ if (i.value) {
4256
+ n.items.push({ start: [], key: t, sep: [] }), this.onKeyLine = !0;
4257
+ return;
4258
+ } else if (i.sep)
4259
+ i.value = t;
4260
+ else {
4261
+ Object.assign(i, { key: t, sep: [] }), this.onKeyLine = !i.explicitKey;
4262
+ return;
4263
+ }
4264
+ break;
4265
+ }
4266
+ case "block-seq": {
4267
+ const i = n.items[n.items.length - 1];
4268
+ i.value ? n.items.push({ start: [], value: t }) : i.value = t;
4269
+ break;
4270
+ }
4271
+ case "flow-collection": {
4272
+ const i = n.items[n.items.length - 1];
4273
+ !i || i.value ? n.items.push({ start: [], key: t, sep: [] }) : i.sep ? i.value = t : Object.assign(i, { key: t, sep: [] });
4274
+ return;
4275
+ }
4276
+ /* istanbul ignore next should not happen */
4277
+ default:
4278
+ yield* this.pop(), yield* this.pop(t);
4279
+ }
4280
+ if ((n.type === "document" || n.type === "block-map" || n.type === "block-seq") && (t.type === "block-map" || t.type === "block-seq")) {
4281
+ const i = t.items[t.items.length - 1];
4282
+ i && !i.sep && !i.value && i.start.length > 0 && Pt(i.start) === -1 && (t.indent === 0 || i.start.every((r) => r.type !== "comment" || r.indent < t.indent)) && (n.type === "document" ? n.end = i.start : n.items.push({ start: i.start }), t.items.splice(-1, 1));
4283
+ }
4284
+ }
4285
+ }
4286
+ *stream() {
4287
+ switch (this.type) {
4288
+ case "directive-line":
4289
+ yield { type: "directive", offset: this.offset, source: this.source };
4290
+ return;
4291
+ case "byte-order-mark":
4292
+ case "space":
4293
+ case "comment":
4294
+ case "newline":
4295
+ yield this.sourceToken;
4296
+ return;
4297
+ case "doc-mode":
4298
+ case "doc-start": {
4299
+ const e = {
4300
+ type: "document",
4301
+ offset: this.offset,
4302
+ start: []
4303
+ };
4304
+ this.type === "doc-start" && e.start.push(this.sourceToken), this.stack.push(e);
4305
+ return;
4306
+ }
4307
+ }
4308
+ yield {
4309
+ type: "error",
4310
+ offset: this.offset,
4311
+ message: `Unexpected ${this.type} token in YAML stream`,
4312
+ source: this.source
4313
+ };
4314
+ }
4315
+ *document(e) {
4316
+ if (e.value)
4317
+ return yield* this.lineEnd(e);
4318
+ switch (this.type) {
4319
+ case "doc-start": {
4320
+ Pt(e.start) !== -1 ? (yield* this.pop(), yield* this.step()) : e.start.push(this.sourceToken);
4321
+ return;
4322
+ }
4323
+ case "anchor":
4324
+ case "tag":
4325
+ case "space":
4326
+ case "comment":
4327
+ case "newline":
4328
+ e.start.push(this.sourceToken);
4329
+ return;
4330
+ }
4331
+ const t = this.startBlockValue(e);
4332
+ t ? this.stack.push(t) : yield {
4333
+ type: "error",
4334
+ offset: this.offset,
4335
+ message: `Unexpected ${this.type} token in YAML document`,
4336
+ source: this.source
4337
+ };
4338
+ }
4339
+ *scalar(e) {
4340
+ if (this.type === "map-value-ind") {
4341
+ const t = Ce(this.peek(2)), n = ne(t);
4342
+ let i;
4343
+ e.end ? (i = e.end, i.push(this.sourceToken), delete e.end) : i = [this.sourceToken];
4344
+ const r = {
4345
+ type: "block-map",
4346
+ offset: e.offset,
4347
+ indent: e.indent,
4348
+ items: [{ start: n, key: e, sep: i }]
4349
+ };
4350
+ this.onKeyLine = !0, this.stack[this.stack.length - 1] = r;
4351
+ } else
4352
+ yield* this.lineEnd(e);
4353
+ }
4354
+ *blockScalar(e) {
4355
+ switch (this.type) {
4356
+ case "space":
4357
+ case "comment":
4358
+ case "newline":
4359
+ e.props.push(this.sourceToken);
4360
+ return;
4361
+ case "scalar":
4362
+ if (e.source = this.source, this.atNewLine = !0, this.indent = 0, this.onNewLine) {
4363
+ let t = this.source.indexOf(`
4364
+ `) + 1;
4365
+ for (; t !== 0; )
4366
+ this.onNewLine(this.offset + t), t = this.source.indexOf(`
4367
+ `, t) + 1;
4368
+ }
4369
+ yield* this.pop();
4370
+ break;
4371
+ /* istanbul ignore next should not happen */
4372
+ default:
4373
+ yield* this.pop(), yield* this.step();
4374
+ }
4375
+ }
4376
+ *blockMap(e) {
4377
+ const t = e.items[e.items.length - 1];
4378
+ switch (this.type) {
4379
+ case "newline":
4380
+ if (this.onKeyLine = !1, t.value) {
4381
+ const n = "end" in t.value ? t.value.end : void 0;
4382
+ (Array.isArray(n) ? n[n.length - 1] : void 0)?.type === "comment" ? n?.push(this.sourceToken) : e.items.push({ start: [this.sourceToken] });
4383
+ } else t.sep ? t.sep.push(this.sourceToken) : t.start.push(this.sourceToken);
4384
+ return;
4385
+ case "space":
4386
+ case "comment":
4387
+ if (t.value)
4388
+ e.items.push({ start: [this.sourceToken] });
4389
+ else if (t.sep)
4390
+ t.sep.push(this.sourceToken);
4391
+ else {
4392
+ if (this.atIndentedComment(t.start, e.indent)) {
4393
+ const i = e.items[e.items.length - 2]?.value?.end;
4394
+ if (Array.isArray(i)) {
4395
+ Array.prototype.push.apply(i, t.start), i.push(this.sourceToken), e.items.pop();
4396
+ return;
4397
+ }
4398
+ }
4399
+ t.start.push(this.sourceToken);
4400
+ }
4401
+ return;
4402
+ }
4403
+ if (this.indent >= e.indent) {
4404
+ const n = !this.onKeyLine && this.indent === e.indent, i = n && (t.sep || t.explicitKey) && this.type !== "seq-item-ind";
4405
+ let r = [];
4406
+ if (i && t.sep && !t.value) {
4407
+ const o = [];
4408
+ for (let l = 0; l < t.sep.length; ++l) {
4409
+ const a = t.sep[l];
4410
+ switch (a.type) {
4411
+ case "newline":
4412
+ o.push(l);
4413
+ break;
4414
+ case "space":
4415
+ break;
4416
+ case "comment":
4417
+ a.indent > e.indent && (o.length = 0);
4418
+ break;
4419
+ default:
4420
+ o.length = 0;
4421
+ }
4422
+ }
4423
+ o.length >= 2 && (r = t.sep.splice(o[1]));
4424
+ }
4425
+ switch (this.type) {
4426
+ case "anchor":
4427
+ case "tag":
4428
+ i || t.value ? (r.push(this.sourceToken), e.items.push({ start: r }), this.onKeyLine = !0) : t.sep ? t.sep.push(this.sourceToken) : t.start.push(this.sourceToken);
4429
+ return;
4430
+ case "explicit-key-ind":
4431
+ !t.sep && !t.explicitKey ? (t.start.push(this.sourceToken), t.explicitKey = !0) : i || t.value ? (r.push(this.sourceToken), e.items.push({ start: r, explicitKey: !0 })) : this.stack.push({
4432
+ type: "block-map",
4433
+ offset: this.offset,
4434
+ indent: this.indent,
4435
+ items: [{ start: [this.sourceToken], explicitKey: !0 }]
4436
+ }), this.onKeyLine = !0;
4437
+ return;
4438
+ case "map-value-ind":
4439
+ if (t.explicitKey)
4440
+ if (t.sep)
4441
+ if (t.value)
4442
+ e.items.push({ start: [], key: null, sep: [this.sourceToken] });
4443
+ else if (Y(t.sep, "map-value-ind"))
4444
+ this.stack.push({
4445
+ type: "block-map",
4446
+ offset: this.offset,
4447
+ indent: this.indent,
4448
+ items: [{ start: r, key: null, sep: [this.sourceToken] }]
4449
+ });
4450
+ else if ($s(t.key) && !Y(t.sep, "newline")) {
4451
+ const o = ne(t.start), l = t.key, a = t.sep;
4452
+ a.push(this.sourceToken), delete t.key, delete t.sep, this.stack.push({
4453
+ type: "block-map",
4454
+ offset: this.offset,
4455
+ indent: this.indent,
4456
+ items: [{ start: o, key: l, sep: a }]
4457
+ });
4458
+ } else r.length > 0 ? t.sep = t.sep.concat(r, this.sourceToken) : t.sep.push(this.sourceToken);
4459
+ else if (Y(t.start, "newline"))
4460
+ Object.assign(t, { key: null, sep: [this.sourceToken] });
4461
+ else {
4462
+ const o = ne(t.start);
4463
+ this.stack.push({
4464
+ type: "block-map",
4465
+ offset: this.offset,
4466
+ indent: this.indent,
4467
+ items: [{ start: o, key: null, sep: [this.sourceToken] }]
4468
+ });
4469
+ }
4470
+ else
4471
+ t.sep ? t.value || i ? e.items.push({ start: r, key: null, sep: [this.sourceToken] }) : Y(t.sep, "map-value-ind") ? this.stack.push({
4472
+ type: "block-map",
4473
+ offset: this.offset,
4474
+ indent: this.indent,
4475
+ items: [{ start: [], key: null, sep: [this.sourceToken] }]
4476
+ }) : t.sep.push(this.sourceToken) : Object.assign(t, { key: null, sep: [this.sourceToken] });
4477
+ this.onKeyLine = !0;
4478
+ return;
4479
+ case "alias":
4480
+ case "scalar":
4481
+ case "single-quoted-scalar":
4482
+ case "double-quoted-scalar": {
4483
+ const o = this.flowScalar(this.type);
4484
+ i || t.value ? (e.items.push({ start: r, key: o, sep: [] }), this.onKeyLine = !0) : t.sep ? this.stack.push(o) : (Object.assign(t, { key: o, sep: [] }), this.onKeyLine = !0);
4485
+ return;
4486
+ }
4487
+ default: {
4488
+ const o = this.startBlockValue(e);
4489
+ if (o) {
4490
+ if (o.type === "block-seq") {
4491
+ if (!t.explicitKey && t.sep && !Y(t.sep, "newline")) {
4492
+ yield* this.pop({
4493
+ type: "error",
4494
+ offset: this.offset,
4495
+ message: "Unexpected block-seq-ind on same line with key",
4496
+ source: this.source
4497
+ });
4498
+ return;
4499
+ }
4500
+ } else n && e.items.push({ start: r });
4501
+ this.stack.push(o);
4502
+ return;
4503
+ }
4504
+ }
4505
+ }
4506
+ }
4507
+ yield* this.pop(), yield* this.step();
4508
+ }
4509
+ *blockSequence(e) {
4510
+ const t = e.items[e.items.length - 1];
4511
+ switch (this.type) {
4512
+ case "newline":
4513
+ if (t.value) {
4514
+ const n = "end" in t.value ? t.value.end : void 0;
4515
+ (Array.isArray(n) ? n[n.length - 1] : void 0)?.type === "comment" ? n?.push(this.sourceToken) : e.items.push({ start: [this.sourceToken] });
4516
+ } else
4517
+ t.start.push(this.sourceToken);
4518
+ return;
4519
+ case "space":
4520
+ case "comment":
4521
+ if (t.value)
4522
+ e.items.push({ start: [this.sourceToken] });
4523
+ else {
4524
+ if (this.atIndentedComment(t.start, e.indent)) {
4525
+ const i = e.items[e.items.length - 2]?.value?.end;
4526
+ if (Array.isArray(i)) {
4527
+ Array.prototype.push.apply(i, t.start), i.push(this.sourceToken), e.items.pop();
4528
+ return;
4529
+ }
4530
+ }
4531
+ t.start.push(this.sourceToken);
4532
+ }
4533
+ return;
4534
+ case "anchor":
4535
+ case "tag":
4536
+ if (t.value || this.indent <= e.indent)
4537
+ break;
4538
+ t.start.push(this.sourceToken);
4539
+ return;
4540
+ case "seq-item-ind":
4541
+ if (this.indent !== e.indent)
4542
+ break;
4543
+ t.value || Y(t.start, "seq-item-ind") ? e.items.push({ start: [this.sourceToken] }) : t.start.push(this.sourceToken);
4544
+ return;
4545
+ }
4546
+ if (this.indent > e.indent) {
4547
+ const n = this.startBlockValue(e);
4548
+ if (n) {
4549
+ this.stack.push(n);
4550
+ return;
4551
+ }
4552
+ }
4553
+ yield* this.pop(), yield* this.step();
4554
+ }
4555
+ *flowCollection(e) {
4556
+ const t = e.items[e.items.length - 1];
4557
+ if (this.type === "flow-error-end") {
4558
+ let n;
4559
+ do
4560
+ yield* this.pop(), n = this.peek(1);
4561
+ while (n && n.type === "flow-collection");
4562
+ } else if (e.end.length === 0) {
4563
+ switch (this.type) {
4564
+ case "comma":
4565
+ case "explicit-key-ind":
4566
+ !t || t.sep ? e.items.push({ start: [this.sourceToken] }) : t.start.push(this.sourceToken);
4567
+ return;
4568
+ case "map-value-ind":
4569
+ !t || t.value ? e.items.push({ start: [], key: null, sep: [this.sourceToken] }) : t.sep ? t.sep.push(this.sourceToken) : Object.assign(t, { key: null, sep: [this.sourceToken] });
4570
+ return;
4571
+ case "space":
4572
+ case "comment":
4573
+ case "newline":
4574
+ case "anchor":
4575
+ case "tag":
4576
+ !t || t.value ? e.items.push({ start: [this.sourceToken] }) : t.sep ? t.sep.push(this.sourceToken) : t.start.push(this.sourceToken);
4577
+ return;
4578
+ case "alias":
4579
+ case "scalar":
4580
+ case "single-quoted-scalar":
4581
+ case "double-quoted-scalar": {
4582
+ const i = this.flowScalar(this.type);
4583
+ !t || t.value ? e.items.push({ start: [], key: i, sep: [] }) : t.sep ? this.stack.push(i) : Object.assign(t, { key: i, sep: [] });
4584
+ return;
4585
+ }
4586
+ case "flow-map-end":
4587
+ case "flow-seq-end":
4588
+ e.end.push(this.sourceToken);
4589
+ return;
4590
+ }
4591
+ const n = this.startBlockValue(e);
4592
+ n ? this.stack.push(n) : (yield* this.pop(), yield* this.step());
4593
+ } else {
4594
+ const n = this.peek(2);
4595
+ if (n.type === "block-map" && (this.type === "map-value-ind" && n.indent === e.indent || this.type === "newline" && !n.items[n.items.length - 1].sep))
4596
+ yield* this.pop(), yield* this.step();
4597
+ else if (this.type === "map-value-ind" && n.type !== "flow-collection") {
4598
+ const i = Ce(n), r = ne(i);
4599
+ Dt(e);
4600
+ const o = e.end.splice(1, e.end.length);
4601
+ o.push(this.sourceToken);
4602
+ const l = {
4603
+ type: "block-map",
4604
+ offset: e.offset,
4605
+ indent: e.indent,
4606
+ items: [{ start: r, key: e, sep: o }]
4607
+ };
4608
+ this.onKeyLine = !0, this.stack[this.stack.length - 1] = l;
4609
+ } else
4610
+ yield* this.lineEnd(e);
4611
+ }
4612
+ }
4613
+ flowScalar(e) {
4614
+ if (this.onNewLine) {
4615
+ let t = this.source.indexOf(`
4616
+ `) + 1;
4617
+ for (; t !== 0; )
4618
+ this.onNewLine(this.offset + t), t = this.source.indexOf(`
4619
+ `, t) + 1;
4620
+ }
4621
+ return {
4622
+ type: e,
4623
+ offset: this.offset,
4624
+ indent: this.indent,
4625
+ source: this.source
4626
+ };
4627
+ }
4628
+ startBlockValue(e) {
4629
+ switch (this.type) {
4630
+ case "alias":
4631
+ case "scalar":
4632
+ case "single-quoted-scalar":
4633
+ case "double-quoted-scalar":
4634
+ return this.flowScalar(this.type);
4635
+ case "block-scalar-header":
4636
+ return {
4637
+ type: "block-scalar",
4638
+ offset: this.offset,
4639
+ indent: this.indent,
4640
+ props: [this.sourceToken],
4641
+ source: ""
4642
+ };
4643
+ case "flow-map-start":
4644
+ case "flow-seq-start":
4645
+ return {
4646
+ type: "flow-collection",
4647
+ offset: this.offset,
4648
+ indent: this.indent,
4649
+ start: this.sourceToken,
4650
+ items: [],
4651
+ end: []
4652
+ };
4653
+ case "seq-item-ind":
4654
+ return {
4655
+ type: "block-seq",
4656
+ offset: this.offset,
4657
+ indent: this.indent,
4658
+ items: [{ start: [this.sourceToken] }]
4659
+ };
4660
+ case "explicit-key-ind": {
4661
+ this.onKeyLine = !0;
4662
+ const t = Ce(e), n = ne(t);
4663
+ return n.push(this.sourceToken), {
4664
+ type: "block-map",
4665
+ offset: this.offset,
4666
+ indent: this.indent,
4667
+ items: [{ start: n, explicitKey: !0 }]
4668
+ };
4669
+ }
4670
+ case "map-value-ind": {
4671
+ this.onKeyLine = !0;
4672
+ const t = Ce(e), n = ne(t);
4673
+ return {
4674
+ type: "block-map",
4675
+ offset: this.offset,
4676
+ indent: this.indent,
4677
+ items: [{ start: n, key: null, sep: [this.sourceToken] }]
4678
+ };
4679
+ }
4680
+ }
4681
+ return null;
4682
+ }
4683
+ atIndentedComment(e, t) {
4684
+ return this.type !== "comment" || this.indent <= t ? !1 : e.every((n) => n.type === "newline" || n.type === "space");
4685
+ }
4686
+ *documentEnd(e) {
4687
+ this.type !== "doc-mode" && (e.end ? e.end.push(this.sourceToken) : e.end = [this.sourceToken], this.type === "newline" && (yield* this.pop()));
4688
+ }
4689
+ *lineEnd(e) {
4690
+ switch (this.type) {
4691
+ case "comma":
4692
+ case "doc-start":
4693
+ case "doc-end":
4694
+ case "flow-seq-end":
4695
+ case "flow-map-end":
4696
+ case "map-value-ind":
4697
+ yield* this.pop(), yield* this.step();
4698
+ break;
4699
+ case "newline":
4700
+ this.onKeyLine = !1;
4701
+ // fallthrough
4702
+ case "space":
4703
+ case "comment":
4704
+ default:
4705
+ e.end ? e.end.push(this.sourceToken) : e.end = [this.sourceToken], this.type === "newline" && (yield* this.pop());
4706
+ }
4707
+ }
4708
+ }
4709
+ function _s(s) {
4710
+ const e = s.prettyErrors !== !1;
4711
+ return { lineCounter: s.lineCounter || e && new Ls() || null, prettyErrors: e };
4712
+ }
4713
+ function qn(s, e = {}) {
4714
+ const { lineCounter: t, prettyErrors: n } = _s(e), i = new Tt(t?.addNewLine), r = new It(e), o = Array.from(r.compose(i.parse(s)));
4715
+ if (n && t)
4716
+ for (const l of o)
4717
+ l.errors.forEach(De(s, t)), l.warnings.forEach(De(s, t));
4718
+ return o.length > 0 ? o : Object.assign([], { empty: !0 }, r.streamInfo());
4719
+ }
4720
+ function Cs(s, e = {}) {
4721
+ const { lineCounter: t, prettyErrors: n } = _s(e), i = new Tt(t?.addNewLine), r = new It(e);
4722
+ let o = null;
4723
+ for (const l of r.compose(i.parse(s), !0, s.length))
4724
+ if (!o)
4725
+ o = l;
4726
+ else if (o.options.logLevel !== "silent") {
4727
+ o.errors.push(new z(l.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
4728
+ break;
4729
+ }
4730
+ return n && t && (o.errors.forEach(De(s, t)), o.warnings.forEach(De(s, t))), o;
4731
+ }
4732
+ function Fn(s, e, t) {
4733
+ let n;
4734
+ typeof e == "function" ? n = e : t === void 0 && e && typeof e == "object" && (t = e);
4735
+ const i = Cs(s, t);
4736
+ if (!i)
4737
+ return null;
4738
+ if (i.warnings.forEach((r) => zt(i.options.logLevel, r)), i.errors.length > 0) {
4739
+ if (i.options.logLevel !== "silent")
4740
+ throw i.errors[0];
4741
+ i.errors = [];
4742
+ }
4743
+ return i.toJS(Object.assign({ reviver: n }, t));
4744
+ }
4745
+ function Rn(s, e, t) {
4746
+ let n = null;
4747
+ if (typeof e == "function" || Array.isArray(e) ? n = e : t === void 0 && e && (t = e), typeof t == "string" && (t = t.length), typeof t == "number") {
4748
+ const i = Math.round(t);
4749
+ t = i < 1 ? void 0 : i > 8 ? { indent: 8 } : { indent: i };
4750
+ }
4751
+ if (s === void 0) {
4752
+ const { keepUndefined: i } = t ?? e ?? {};
4753
+ if (!i)
4754
+ return;
4755
+ }
4756
+ return ee(s) && !n ? s.toString(t) : new ge(s, n, t).toString(t);
4757
+ }
4758
+ const Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4759
+ __proto__: null,
4760
+ Alias: Re,
4761
+ CST: jn,
4762
+ Composer: It,
4763
+ Document: ge,
4764
+ Lexer: Ts,
4765
+ LineCounter: Ls,
4766
+ Pair: v,
4767
+ Parser: Tt,
4768
+ Scalar: O,
4769
+ Schema: Xe,
4770
+ YAMLError: At,
4771
+ YAMLMap: K,
4772
+ YAMLParseError: z,
4773
+ YAMLSeq: W,
4774
+ YAMLWarning: ys,
4775
+ isAlias: Z,
4776
+ isCollection: L,
4777
+ isDocument: ee,
4778
+ isMap: de,
4779
+ isNode: $,
4780
+ isPair: T,
4781
+ isScalar: E,
4782
+ isSeq: pe,
4783
+ parse: Fn,
4784
+ parseAllDocuments: qn,
4785
+ parseDocument: Cs,
4786
+ stringify: Rn,
4787
+ visit: Q,
4788
+ visitAsync: Fe
4789
+ }, Symbol.toStringTag, { value: "Module" }));
4790
+ export {
4791
+ Re as Alias,
4792
+ jn as CST,
4793
+ It as Composer,
4794
+ ge as Document,
4795
+ Ts as Lexer,
4796
+ Ls as LineCounter,
4797
+ v as Pair,
4798
+ Tt as Parser,
4799
+ O as Scalar,
4800
+ Xe as Schema,
4801
+ At as YAMLError,
4802
+ K as YAMLMap,
4803
+ z as YAMLParseError,
4804
+ W as YAMLSeq,
4805
+ ys as YAMLWarning,
4806
+ Un as default,
4807
+ Z as isAlias,
4808
+ L as isCollection,
4809
+ ee as isDocument,
4810
+ de as isMap,
4811
+ $ as isNode,
4812
+ T as isPair,
4813
+ E as isScalar,
4814
+ pe as isSeq,
4815
+ Fn as parse,
4816
+ qn as parseAllDocuments,
4817
+ Cs as parseDocument,
4818
+ Rn as stringify,
4819
+ Q as visit,
4820
+ Fe as visitAsync
4821
+ };
4822
+ //# sourceMappingURL=index-zddirpDj.js.map