zudoku 0.0.0-e09234c → 0.0.0-e097cbb

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 (1385) hide show
  1. package/README.md +121 -0
  2. package/cli.js +3 -0
  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 +17 -1
  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 +18 -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 -3
  18. package/dist/app/main.js +33 -17
  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/app/tailwind.d.ts +2 -1
  26. package/dist/app/tailwind.js +80 -48
  27. package/dist/app/tailwind.js.map +1 -1
  28. package/dist/cli/build/handler.d.ts +1 -3
  29. package/dist/cli/build/handler.js +9 -1
  30. package/dist/cli/build/handler.js.map +1 -1
  31. package/dist/cli/cli.js +18 -5
  32. package/dist/cli/cli.js.map +1 -1
  33. package/dist/cli/cmds/build.d.ts +11 -3
  34. package/dist/cli/cmds/build.js +21 -13
  35. package/dist/cli/cmds/build.js.map +1 -1
  36. package/dist/cli/cmds/dev.d.ts +1 -1
  37. package/dist/cli/cmds/dev.js +5 -0
  38. package/dist/cli/cmds/dev.js.map +1 -1
  39. package/dist/cli/cmds/preview.d.ts +16 -0
  40. package/dist/cli/cmds/preview.js +25 -0
  41. package/dist/cli/cmds/preview.js.map +1 -0
  42. package/dist/cli/common/logger.js +9 -0
  43. package/dist/cli/common/logger.js.map +1 -1
  44. package/dist/cli/common/machine-id/lib.js +1 -0
  45. package/dist/cli/common/machine-id/lib.js.map +1 -1
  46. package/dist/cli/common/outdated.js +2 -1
  47. package/dist/cli/common/outdated.js.map +1 -1
  48. package/dist/cli/common/output.js.map +1 -1
  49. package/dist/cli/common/utils/ports.d.ts +1 -1
  50. package/dist/cli/common/utils/ports.js +16 -15
  51. package/dist/cli/common/utils/ports.js.map +1 -1
  52. package/dist/cli/dev/handler.d.ts +1 -0
  53. package/dist/cli/dev/handler.js +15 -12
  54. package/dist/cli/dev/handler.js.map +1 -1
  55. package/dist/cli/preview/handler.d.ts +3 -0
  56. package/dist/cli/preview/handler.js +35 -0
  57. package/dist/cli/preview/handler.js.map +1 -0
  58. package/dist/codegen.d.ts +3 -0
  59. package/dist/codegen.js +45 -0
  60. package/dist/codegen.js.map +1 -0
  61. package/dist/config/common.d.ts +10 -0
  62. package/dist/config/common.js +2 -0
  63. package/dist/config/common.js.map +1 -0
  64. package/dist/config/config.d.ts +20 -16
  65. package/dist/config/loader.d.ts +6 -0
  66. package/dist/config/loader.js +65 -0
  67. package/dist/config/loader.js.map +1 -0
  68. package/dist/config/validators/BuildSchema.d.ts +60 -0
  69. package/dist/config/validators/BuildSchema.js +31 -0
  70. package/dist/config/validators/BuildSchema.js.map +1 -0
  71. package/dist/config/validators/InputSidebarSchema.d.ts +50 -34
  72. package/dist/config/validators/InputSidebarSchema.js +11 -1
  73. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  74. package/dist/config/validators/SidebarSchema.d.ts +24 -1
  75. package/dist/config/validators/SidebarSchema.js +73 -32
  76. package/dist/config/validators/SidebarSchema.js.map +1 -1
  77. package/dist/config/validators/common.d.ts +7676 -0
  78. package/dist/config/validators/common.js +402 -0
  79. package/dist/config/validators/common.js.map +1 -0
  80. package/dist/config/validators/icon-types.d.ts +1 -0
  81. package/dist/config/validators/icon-types.js +2 -0
  82. package/dist/config/validators/icon-types.js.map +1 -0
  83. package/dist/config/validators/validate.d.ts +1869 -540
  84. package/dist/config/validators/validate.js +9 -213
  85. package/dist/config/validators/validate.js.map +1 -1
  86. package/dist/index.d.ts +4 -3
  87. package/dist/index.js +2 -1
  88. package/dist/index.js.map +1 -1
  89. package/dist/lib/MissingIcon.d.ts +2 -0
  90. package/dist/lib/MissingIcon.js +7 -0
  91. package/dist/lib/MissingIcon.js.map +1 -0
  92. package/dist/lib/authentication/AuthenticationPlugin.d.ts +4 -2
  93. package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
  94. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  95. package/dist/lib/authentication/authentication.d.ts +4 -3
  96. package/dist/lib/authentication/components/CallbackHandler.js +21 -31
  97. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  98. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  99. package/dist/lib/authentication/components/SignIn.js +5 -2
  100. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  101. package/dist/lib/authentication/components/SignOut.js +2 -2
  102. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  103. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  104. package/dist/lib/authentication/components/SignUp.js +4 -1
  105. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  106. package/dist/lib/authentication/hook.d.ts +6 -4
  107. package/dist/lib/authentication/hook.js +12 -4
  108. package/dist/lib/authentication/hook.js.map +1 -1
  109. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  110. package/dist/lib/authentication/providers/auth0.js +14 -12
  111. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  112. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  113. package/dist/lib/authentication/providers/clerk.js +54 -12
  114. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  115. package/dist/lib/authentication/providers/openid.d.ts +15 -5
  116. package/dist/lib/authentication/providers/openid.js +62 -46
  117. package/dist/lib/authentication/providers/openid.js.map +1 -1
  118. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  119. package/dist/lib/authentication/providers/supabase.js +117 -0
  120. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  121. package/dist/lib/authentication/state.d.ts +23 -19
  122. package/dist/lib/authentication/state.js +34 -7
  123. package/dist/lib/authentication/state.js.map +1 -1
  124. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  125. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  126. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  127. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  128. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  129. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  130. package/dist/lib/components/AnchorLink.d.ts +2 -2
  131. package/dist/lib/components/AnchorLink.js +9 -5
  132. package/dist/lib/components/AnchorLink.js.map +1 -1
  133. package/dist/lib/components/Autocomplete.d.ts +13 -0
  134. package/dist/lib/components/Autocomplete.js +47 -0
  135. package/dist/lib/components/Autocomplete.js.map +1 -0
  136. package/dist/lib/components/Banner.js +1 -1
  137. package/dist/lib/components/Banner.js.map +1 -1
  138. package/dist/lib/components/Bootstrap.d.ts +5 -3
  139. package/dist/lib/components/Bootstrap.js +13 -6
  140. package/dist/lib/components/Bootstrap.js.map +1 -1
  141. package/dist/lib/components/BuildCheck.d.ts +4 -0
  142. package/dist/lib/components/BuildCheck.js +38 -0
  143. package/dist/lib/components/BuildCheck.js.map +1 -0
  144. package/dist/lib/components/ClientOnly.d.ts +4 -2
  145. package/dist/lib/components/ClientOnly.js +1 -1
  146. package/dist/lib/components/ClientOnly.js.map +1 -1
  147. package/dist/lib/components/DeveloperHint.js +2 -1
  148. package/dist/lib/components/DeveloperHint.js.map +1 -1
  149. package/dist/lib/components/Footer.d.ts +1 -0
  150. package/dist/lib/components/Footer.js +32 -0
  151. package/dist/lib/components/Footer.js.map +1 -0
  152. package/dist/lib/components/Header.js +22 -15
  153. package/dist/lib/components/Header.js.map +1 -1
  154. package/dist/lib/components/Heading.d.ts +4 -4
  155. package/dist/lib/components/Heading.js +1 -1
  156. package/dist/lib/components/Heading.js.map +1 -1
  157. package/dist/lib/components/InlineCode.d.ts +2 -1
  158. package/dist/lib/components/InlineCode.js +2 -9
  159. package/dist/lib/components/InlineCode.js.map +1 -1
  160. package/dist/lib/components/Layout.js +9 -20
  161. package/dist/lib/components/Layout.js.map +1 -1
  162. package/dist/lib/components/Main.d.ts +2 -0
  163. package/dist/lib/components/Main.js +17 -0
  164. package/dist/lib/components/Main.js.map +1 -0
  165. package/dist/lib/components/Markdown.d.ts +2 -2
  166. package/dist/lib/components/Markdown.js +4 -2
  167. package/dist/lib/components/Markdown.js.map +1 -1
  168. package/dist/lib/components/MobileTopNavigation.js +12 -7
  169. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  170. package/dist/lib/components/NotFoundPage.js +1 -1
  171. package/dist/lib/components/NotFoundPage.js.map +1 -1
  172. package/dist/lib/components/Pagination.d.ts +11 -0
  173. package/dist/lib/components/Pagination.js +10 -0
  174. package/dist/lib/components/Pagination.js.map +1 -0
  175. package/dist/lib/components/PathRenderer.d.ts +11 -0
  176. package/dist/lib/components/PathRenderer.js +28 -0
  177. package/dist/lib/components/PathRenderer.js.map +1 -0
  178. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  179. package/dist/lib/components/ReactMarkdown.js +182 -0
  180. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  181. package/dist/lib/components/Search.d.ts +3 -1
  182. package/dist/lib/components/Search.js +9 -3
  183. package/dist/lib/components/Search.js.map +1 -1
  184. package/dist/lib/components/SlotletProvider.d.ts +3 -2
  185. package/dist/lib/components/SlotletProvider.js.map +1 -1
  186. package/dist/lib/components/StatusPage.d.ts +7 -0
  187. package/dist/lib/components/StatusPage.js +71 -0
  188. package/dist/lib/components/StatusPage.js.map +1 -0
  189. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  190. package/dist/lib/components/ThemeSwitch.js +16 -0
  191. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  192. package/dist/lib/components/TopNavigation.d.ts +6 -0
  193. package/dist/lib/components/TopNavigation.js +45 -17
  194. package/dist/lib/components/TopNavigation.js.map +1 -1
  195. package/dist/lib/components/{DevPortal.d.ts → Zudoku.d.ts} +3 -3
  196. package/dist/lib/components/{DevPortal.js → Zudoku.js} +22 -18
  197. package/dist/lib/components/Zudoku.js.map +1 -0
  198. package/dist/lib/components/cache.d.ts +13 -0
  199. package/dist/lib/components/cache.js +20 -0
  200. package/dist/lib/components/cache.js.map +1 -0
  201. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  202. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  203. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  204. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  205. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  206. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  207. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  208. package/dist/lib/components/context/ViewportAnchorContext.js +29 -23
  209. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  210. package/dist/lib/components/context/ZudokuContext.d.ts +8 -7
  211. package/dist/lib/components/context/ZudokuContext.js +28 -20
  212. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  213. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  214. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  215. package/dist/lib/components/index.d.ts +58 -17
  216. package/dist/lib/components/index.js +27 -6
  217. package/dist/lib/components/index.js.map +1 -1
  218. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  219. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  220. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  221. package/dist/lib/components/navigation/Sidebar.d.ts +5 -1
  222. package/dist/lib/components/navigation/Sidebar.js +3 -7
  223. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  224. package/dist/lib/components/navigation/SidebarBadge.d.ts +6 -3
  225. package/dist/lib/components/navigation/SidebarBadge.js +13 -11
  226. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  227. package/dist/lib/components/navigation/SidebarCategory.d.ts +3 -3
  228. package/dist/lib/components/navigation/SidebarCategory.js +26 -21
  229. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  230. package/dist/lib/components/navigation/SidebarItem.d.ts +3 -4
  231. package/dist/lib/components/navigation/SidebarItem.js +19 -17
  232. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  233. package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
  234. package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
  235. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  236. package/dist/lib/{plugins/markdown → components/navigation}/Toc.js +5 -7
  237. package/dist/lib/components/navigation/Toc.js.map +1 -0
  238. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  239. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  240. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  241. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  242. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  243. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  244. package/dist/lib/components/navigation/utils.js +3 -3
  245. package/dist/lib/components/navigation/utils.js.map +1 -1
  246. package/dist/lib/core/RouteGuard.d.ts +2 -0
  247. package/dist/lib/core/RouteGuard.js +52 -0
  248. package/dist/lib/core/RouteGuard.js.map +1 -0
  249. package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +39 -15
  250. package/dist/lib/core/ZudokuContext.js +69 -0
  251. package/dist/lib/core/ZudokuContext.js.map +1 -0
  252. package/dist/lib/core/plugins.d.ts +31 -17
  253. package/dist/lib/core/plugins.js +3 -0
  254. package/dist/lib/core/plugins.js.map +1 -1
  255. package/dist/lib/errors/ErrorAlert.d.ts +1 -1
  256. package/dist/lib/errors/ErrorAlert.js +13 -3
  257. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  258. package/dist/lib/errors/RouterError.js +1 -1
  259. package/dist/lib/errors/RouterError.js.map +1 -1
  260. package/dist/lib/hooks/index.d.ts +3 -0
  261. package/dist/lib/hooks/index.js +5 -0
  262. package/dist/lib/hooks/index.js.map +1 -0
  263. package/dist/lib/hooks/useEvent.d.ts +11 -0
  264. package/dist/lib/hooks/useEvent.js +19 -0
  265. package/dist/lib/hooks/useEvent.js.map +1 -0
  266. package/dist/lib/hooks/useEvent.test.js +100 -0
  267. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  268. package/dist/lib/icons.d.ts +1 -0
  269. package/dist/lib/icons.js +1 -0
  270. package/dist/lib/icons.js.map +1 -1
  271. package/dist/lib/oas/graphql/circular.d.ts +3 -0
  272. package/dist/lib/oas/graphql/circular.js +38 -0
  273. package/dist/lib/oas/graphql/circular.js.map +1 -0
  274. package/dist/lib/oas/graphql/index.d.ts +25 -1
  275. package/dist/lib/oas/graphql/index.js +216 -69
  276. package/dist/lib/oas/graphql/index.js.map +1 -1
  277. package/dist/lib/oas/parser/dereference/index.js +8 -3
  278. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  279. package/dist/lib/oas/parser/index.d.ts +5 -3
  280. package/dist/lib/oas/parser/index.js +2 -23
  281. package/dist/lib/oas/parser/index.js.map +1 -1
  282. package/dist/lib/oas/parser/upgrade/index.d.ts +2 -2
  283. package/dist/lib/oas/parser/upgrade/index.js +22 -22
  284. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  285. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
  286. package/dist/lib/plugins/api-catalog/Catalog.js +26 -0
  287. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  288. package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
  289. package/dist/lib/plugins/api-catalog/index.js +46 -0
  290. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  291. package/dist/lib/plugins/api-keys/CreateApiKey.js +9 -5
  292. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  293. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  294. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  295. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
  296. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  297. package/dist/lib/plugins/api-keys/index.d.ts +10 -9
  298. package/dist/lib/plugins/api-keys/index.js +4 -0
  299. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  300. package/dist/lib/plugins/custom-pages/CustomPage.js +2 -2
  301. package/dist/lib/plugins/custom-pages/index.d.ts +2 -2
  302. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  303. package/dist/lib/plugins/markdown/MdxPage.d.ts +10 -2
  304. package/dist/lib/plugins/markdown/MdxPage.js +17 -4
  305. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  306. package/dist/lib/plugins/markdown/index.d.ts +5 -3
  307. package/dist/lib/plugins/markdown/index.js +1 -1
  308. package/dist/lib/plugins/markdown/index.js.map +1 -1
  309. package/dist/lib/plugins/markdown/resolver.d.ts +0 -6
  310. package/dist/lib/plugins/markdown/resolver.js +0 -29
  311. package/dist/lib/plugins/markdown/resolver.js.map +1 -1
  312. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
  313. package/dist/lib/plugins/openapi/CollapsibleCode.js +25 -0
  314. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  315. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
  316. package/dist/lib/plugins/openapi/ColorizedParam.js +29 -14
  317. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  318. package/dist/lib/plugins/openapi/Endpoint.js +13 -16
  319. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  320. package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
  321. package/dist/lib/plugins/openapi/OasProvider.js +29 -0
  322. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  323. package/dist/lib/plugins/openapi/OperationList.d.ts +6 -3
  324. package/dist/lib/plugins/openapi/OperationList.js +107 -27
  325. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  326. package/dist/lib/plugins/openapi/OperationListItem.d.ts +5 -3
  327. package/dist/lib/plugins/openapi/OperationListItem.js +10 -5
  328. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  329. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  330. package/dist/lib/plugins/openapi/ParamInfos.js +43 -0
  331. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  332. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
  333. package/dist/lib/plugins/openapi/ParameterList.js +3 -2
  334. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  335. package/dist/lib/plugins/openapi/ParameterListItem.js +19 -1
  336. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  337. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +4 -2
  338. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +12 -3
  339. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  340. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +3 -4
  341. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -9
  342. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  343. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +7 -6
  344. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  345. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  346. package/dist/lib/plugins/openapi/SchemaList.js +52 -0
  347. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  348. package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
  349. package/dist/lib/plugins/openapi/Sidecar.js +83 -64
  350. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  351. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  352. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  353. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -0
  354. package/dist/lib/plugins/openapi/SidecarExamples.js +68 -0
  355. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
  356. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  357. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  358. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  359. package/dist/lib/plugins/openapi/client/GraphQLClient.js +43 -0
  360. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  361. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  362. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  363. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  364. package/dist/lib/plugins/openapi/client/createServer.d.ts +3 -1
  365. package/dist/lib/plugins/openapi/client/createServer.js +5 -2
  366. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  367. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +9 -0
  368. package/dist/lib/plugins/openapi/client/useCreateQuery.js +14 -0
  369. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  370. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  371. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  372. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  373. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  374. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  375. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  376. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  377. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  378. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  379. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  380. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  381. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  382. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  383. package/dist/lib/plugins/openapi/graphql/gql.d.ts +8 -46
  384. package/dist/lib/plugins/openapi/graphql/gql.js +6 -13
  385. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  386. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +141 -25
  387. package/dist/lib/plugins/openapi/graphql/graphql.js +238 -662
  388. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  389. package/dist/lib/plugins/openapi/index.d.ts +11 -7
  390. package/dist/lib/plugins/openapi/index.js +72 -104
  391. package/dist/lib/plugins/openapi/index.js.map +1 -1
  392. package/dist/lib/plugins/openapi/interfaces.d.ts +56 -3
  393. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  394. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +8 -0
  395. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  396. package/dist/lib/plugins/openapi/playground/Headers.d.ts +4 -4
  397. package/dist/lib/plugins/openapi/playground/Headers.js +84 -5
  398. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  399. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  400. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
  401. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  402. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  403. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +10 -0
  404. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  405. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
  406. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
  407. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
  408. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  409. package/dist/lib/plugins/openapi/playground/PathParams.js +5 -7
  410. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  411. package/dist/lib/plugins/openapi/playground/Playground.d.ts +37 -2
  412. package/dist/lib/plugins/openapi/playground/Playground.js +133 -70
  413. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  414. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +2 -2
  415. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  416. package/dist/lib/plugins/openapi/playground/QueryParams.js +24 -18
  417. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  418. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  419. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  420. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  421. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +7 -0
  422. package/dist/lib/plugins/openapi/playground/SubmitButton.js +22 -0
  423. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -0
  424. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  425. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  426. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  427. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +7 -0
  428. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +11 -0
  429. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -0
  430. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +8 -0
  431. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +101 -0
  432. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
  433. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +9 -0
  434. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +17 -0
  435. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
  436. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
  437. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
  438. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
  439. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
  440. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
  441. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  442. package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
  443. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  444. package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
  445. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +194 -0
  446. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  447. package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
  448. package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
  449. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  450. package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
  451. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +159 -0
  452. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  453. package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
  454. package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
  455. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  456. package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
  457. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  458. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  459. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
  460. package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
  461. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  462. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  463. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  464. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  465. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  466. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  467. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  468. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  469. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  470. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  471. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  472. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +12 -0
  473. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  474. package/dist/lib/plugins/openapi/schema/{SchemaComponents.d.ts → SchemaPropertyItem.d.ts} +2 -4
  475. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +45 -0
  476. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
  477. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -2
  478. package/dist/lib/plugins/openapi/schema/SchemaView.js +38 -48
  479. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  480. package/dist/lib/plugins/openapi/schema/utils.d.ts +3 -0
  481. package/dist/lib/plugins/openapi/schema/utils.js +8 -1
  482. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  483. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  484. package/dist/lib/plugins/openapi/state.js +18 -0
  485. package/dist/lib/plugins/openapi/state.js.map +1 -0
  486. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +9 -0
  487. package/dist/lib/plugins/openapi/util/createSidebarCategory.js +23 -0
  488. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -0
  489. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +0 -1
  490. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +73 -39
  491. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  492. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  493. package/dist/lib/plugins/openapi/util/getRoutes.js +87 -0
  494. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  495. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  496. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  497. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  498. package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
  499. package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
  500. package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
  501. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  502. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  503. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  504. package/dist/lib/plugins/redirect/index.d.ts +4 -7
  505. package/dist/lib/plugins/redirect/index.js +2 -2
  506. package/dist/lib/plugins/redirect/index.js.map +1 -1
  507. package/dist/lib/plugins/search-inkeep/index.d.ts +24 -5
  508. package/dist/lib/plugins/search-inkeep/index.js +41 -5
  509. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  510. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
  511. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  512. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  513. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  514. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  515. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  516. package/dist/lib/plugins/search-pagefind/ResultList.js +32 -0
  517. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  518. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  519. package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
  520. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  521. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  522. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  523. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  524. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  525. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  526. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  527. package/dist/lib/ui/Accordion.d.ts +7 -0
  528. package/dist/lib/ui/Accordion.js +14 -0
  529. package/dist/lib/ui/Accordion.js.map +1 -0
  530. package/dist/lib/ui/ActionButton.d.ts +4 -0
  531. package/dist/lib/ui/ActionButton.js +10 -0
  532. package/dist/lib/ui/ActionButton.js.map +1 -0
  533. package/dist/lib/ui/Alert.d.ts +8 -0
  534. package/dist/lib/ui/Alert.js +23 -0
  535. package/dist/lib/ui/Alert.js.map +1 -0
  536. package/dist/lib/ui/AlertDialog.d.ts +20 -0
  537. package/dist/lib/ui/AlertDialog.js +27 -0
  538. package/dist/lib/ui/AlertDialog.js.map +1 -0
  539. package/dist/lib/ui/AspectRatio.d.ts +3 -0
  540. package/dist/lib/ui/AspectRatio.js +4 -0
  541. package/dist/lib/ui/AspectRatio.js.map +1 -0
  542. package/dist/lib/ui/Badge.d.ts +9 -0
  543. package/dist/lib/ui/Badge.js +22 -0
  544. package/dist/lib/ui/Badge.js.map +1 -0
  545. package/dist/lib/ui/Breadcrumb.d.ts +19 -0
  546. package/dist/lib/ui/Breadcrumb.js +24 -0
  547. package/dist/lib/ui/Breadcrumb.js.map +1 -0
  548. package/dist/lib/ui/Button.d.ts +3 -4
  549. package/dist/lib/ui/Button.js +2 -1
  550. package/dist/lib/ui/Button.js.map +1 -1
  551. package/dist/lib/ui/Callout.d.ts +2 -1
  552. package/dist/lib/ui/Callout.js +3 -2
  553. package/dist/lib/ui/Callout.js.map +1 -1
  554. package/dist/lib/ui/Card.js +1 -1
  555. package/dist/lib/ui/Card.js.map +1 -1
  556. package/dist/lib/ui/Carousel.d.ts +18 -0
  557. package/dist/lib/ui/Carousel.js +99 -0
  558. package/dist/lib/ui/Carousel.js.map +1 -0
  559. package/dist/lib/ui/Checkbox.d.ts +4 -0
  560. package/dist/lib/ui/Checkbox.js +9 -0
  561. package/dist/lib/ui/Checkbox.js.map +1 -0
  562. package/dist/lib/ui/Collapsible.d.ts +5 -0
  563. package/dist/lib/ui/Collapsible.js +6 -0
  564. package/dist/lib/ui/Collapsible.js.map +1 -0
  565. package/dist/lib/ui/Command.d.ts +94 -0
  566. package/dist/lib/ui/Command.js +35 -0
  567. package/dist/lib/ui/Command.js.map +1 -0
  568. package/dist/lib/{components → ui}/Dialog.js +2 -2
  569. package/dist/lib/ui/Dialog.js.map +1 -0
  570. package/dist/lib/ui/Form.d.ts +23 -0
  571. package/dist/lib/ui/Form.js +63 -0
  572. package/dist/lib/ui/Form.js.map +1 -0
  573. package/dist/lib/ui/HoverCard.d.ts +6 -0
  574. package/dist/lib/ui/HoverCard.js +10 -0
  575. package/dist/lib/ui/HoverCard.js.map +1 -0
  576. package/dist/lib/ui/Input.d.ts +1 -2
  577. package/dist/lib/ui/Input.js.map +1 -1
  578. package/dist/lib/ui/Label.d.ts +5 -0
  579. package/dist/lib/ui/Label.js +10 -0
  580. package/dist/lib/ui/Label.js.map +1 -0
  581. package/dist/lib/ui/Pagination.d.ts +28 -0
  582. package/dist/lib/ui/Pagination.js +24 -0
  583. package/dist/lib/ui/Pagination.js.map +1 -0
  584. package/dist/lib/ui/Popover.d.ts +6 -0
  585. package/dist/lib/ui/Popover.js +10 -0
  586. package/dist/lib/ui/Popover.js.map +1 -0
  587. package/dist/lib/ui/Progress.d.ts +4 -0
  588. package/dist/lib/ui/Progress.js +8 -0
  589. package/dist/lib/ui/Progress.js.map +1 -0
  590. package/dist/lib/ui/RadioGroup.d.ts +5 -0
  591. package/dist/lib/ui/RadioGroup.js +15 -0
  592. package/dist/lib/ui/RadioGroup.js.map +1 -0
  593. package/dist/lib/ui/ScrollArea.d.ts +5 -0
  594. package/dist/lib/ui/ScrollArea.js +12 -0
  595. package/dist/lib/ui/ScrollArea.js.map +1 -0
  596. package/dist/lib/{components → ui}/Select.js +3 -3
  597. package/dist/lib/ui/Select.js.map +1 -0
  598. package/dist/lib/ui/Skeleton.d.ts +2 -0
  599. package/dist/lib/ui/Skeleton.js +7 -0
  600. package/dist/lib/ui/Skeleton.js.map +1 -0
  601. package/dist/lib/ui/Slider.d.ts +4 -0
  602. package/dist/lib/ui/Slider.js +8 -0
  603. package/dist/lib/ui/Slider.js.map +1 -0
  604. package/dist/lib/ui/Stepper.d.ts +3 -0
  605. package/dist/lib/ui/Stepper.js +7 -0
  606. package/dist/lib/ui/Stepper.js.map +1 -0
  607. package/dist/lib/ui/Switch.d.ts +4 -0
  608. package/dist/lib/ui/Switch.js +8 -0
  609. package/dist/lib/ui/Switch.js.map +1 -0
  610. package/dist/lib/ui/SyntaxHighlight.d.ts +15 -0
  611. package/dist/lib/ui/SyntaxHighlight.js +62 -0
  612. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  613. package/dist/lib/ui/Textarea.d.ts +4 -0
  614. package/dist/lib/ui/Textarea.js +9 -0
  615. package/dist/lib/ui/Textarea.js.map +1 -0
  616. package/dist/lib/ui/Toggle.d.ts +12 -0
  617. package/dist/lib/ui/Toggle.js +26 -0
  618. package/dist/lib/ui/Toggle.js.map +1 -0
  619. package/dist/lib/ui/ToggleGroup.d.ts +12 -0
  620. package/dist/lib/ui/ToggleGroup.js +21 -0
  621. package/dist/lib/ui/ToggleGroup.js.map +1 -0
  622. package/dist/lib/ui/Tooltip.d.ts +7 -0
  623. package/dist/lib/ui/Tooltip.js +11 -0
  624. package/dist/lib/ui/Tooltip.js.map +1 -0
  625. package/dist/lib/ui/util.d.ts +2 -0
  626. package/dist/lib/ui/util.js +3 -0
  627. package/dist/lib/ui/util.js.map +1 -0
  628. package/dist/lib/util/MdxComponents.d.ts +24 -21
  629. package/dist/lib/util/MdxComponents.js +10 -7
  630. package/dist/lib/util/MdxComponents.js.map +1 -1
  631. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  632. package/dist/lib/util/detectOS.d.ts +1 -0
  633. package/dist/lib/util/detectOS.js +11 -0
  634. package/dist/lib/util/detectOS.js.map +1 -0
  635. package/dist/lib/util/ensureArray.d.ts +1 -0
  636. package/dist/lib/util/ensureArray.js +2 -0
  637. package/dist/lib/util/ensureArray.js.map +1 -0
  638. package/dist/lib/util/invariant.d.ts +9 -0
  639. package/dist/lib/util/invariant.js +7 -3
  640. package/dist/lib/util/invariant.js.map +1 -1
  641. package/dist/lib/util/joinPath.d.ts +3 -0
  642. package/dist/lib/util/joinPath.js +3 -0
  643. package/dist/lib/util/joinPath.js.map +1 -1
  644. package/dist/lib/util/joinUrl.d.ts +1 -0
  645. package/dist/lib/util/joinUrl.js +40 -0
  646. package/dist/lib/util/joinUrl.js.map +1 -0
  647. package/dist/lib/util/joinUrl.test.d.ts +1 -0
  648. package/dist/lib/util/joinUrl.test.js +43 -0
  649. package/dist/lib/util/joinUrl.test.js.map +1 -0
  650. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  651. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  652. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  653. package/dist/lib/util/traverse.d.ts +3 -0
  654. package/dist/lib/util/traverse.js +22 -0
  655. package/dist/lib/util/traverse.js.map +1 -0
  656. package/dist/lib/util/types.d.ts +7 -0
  657. package/dist/lib/util/types.js +2 -0
  658. package/dist/lib/util/types.js.map +1 -0
  659. package/dist/lib/util/useExposedProps.js +3 -2
  660. package/dist/lib/util/useExposedProps.js.map +1 -1
  661. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  662. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  663. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  664. package/dist/lib/util/useLatest.d.ts +1 -0
  665. package/dist/lib/util/useLatest.js +15 -0
  666. package/dist/lib/util/useLatest.js.map +1 -0
  667. package/dist/lib/util/useOnScreen.d.ts +5 -0
  668. package/dist/lib/util/useOnScreen.js +19 -0
  669. package/dist/lib/util/useOnScreen.js.map +1 -0
  670. package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
  671. package/dist/lib/util/useScrollToAnchor.js +42 -37
  672. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  673. package/dist/lib/util/useScrollToTop.js +7 -5
  674. package/dist/lib/util/useScrollToTop.js.map +1 -1
  675. package/dist/vite/api/SchemaManager.d.ts +36 -0
  676. package/dist/vite/api/SchemaManager.js +120 -0
  677. package/dist/vite/api/SchemaManager.js.map +1 -0
  678. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  679. package/dist/vite/api/SchemaManager.test.js +106 -0
  680. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  681. package/dist/vite/api/schema-codegen.d.ts +12 -0
  682. package/dist/vite/api/schema-codegen.js +85 -0
  683. package/dist/vite/api/schema-codegen.js.map +1 -0
  684. package/dist/vite/api/schema-codegen.test.d.ts +1 -0
  685. package/dist/vite/api/schema-codegen.test.js +313 -0
  686. package/dist/vite/api/schema-codegen.test.js.map +1 -0
  687. package/dist/vite/build.js +43 -14
  688. package/dist/vite/build.js.map +1 -1
  689. package/dist/vite/config.d.ts +7 -14
  690. package/dist/vite/config.js +125 -112
  691. package/dist/vite/config.js.map +1 -1
  692. package/dist/vite/config.test.js +11 -5
  693. package/dist/vite/config.test.js.map +1 -1
  694. package/dist/vite/create-pagefind-index.d.ts +4 -0
  695. package/dist/vite/create-pagefind-index.js +12 -0
  696. package/dist/vite/create-pagefind-index.js.map +1 -0
  697. package/dist/vite/css/collect.d.ts +2 -0
  698. package/dist/vite/css/collect.js +27 -0
  699. package/dist/vite/css/collect.js.map +1 -0
  700. package/dist/vite/css/plugin.d.ts +5 -0
  701. package/dist/vite/css/plugin.js +79 -0
  702. package/dist/vite/css/plugin.js.map +1 -0
  703. package/dist/vite/dev-server.d.ts +5 -2
  704. package/dist/vite/dev-server.js +66 -16
  705. package/dist/vite/dev-server.js.map +1 -1
  706. package/dist/vite/error-handler.d.ts +1 -1
  707. package/dist/vite/error-handler.js +1 -1
  708. package/dist/vite/error-handler.js.map +1 -1
  709. package/dist/vite/html.js +0 -2
  710. package/dist/vite/html.js.map +1 -1
  711. package/dist/vite/output.d.ts +113 -0
  712. package/dist/vite/output.js +60 -0
  713. package/dist/vite/output.js.map +1 -0
  714. package/dist/vite/plugin-api-keys.d.ts +2 -2
  715. package/dist/vite/plugin-api-keys.js +5 -5
  716. package/dist/vite/plugin-api-keys.js.map +1 -1
  717. package/dist/vite/plugin-api.d.ts +2 -2
  718. package/dist/vite/plugin-api.js +145 -32
  719. package/dist/vite/plugin-api.js.map +1 -1
  720. package/dist/vite/plugin-auth.d.ts +2 -2
  721. package/dist/vite/plugin-auth.js +7 -4
  722. package/dist/vite/plugin-auth.js.map +1 -1
  723. package/dist/vite/plugin-component.d.ts +2 -2
  724. package/dist/vite/plugin-component.js +22 -12
  725. package/dist/vite/plugin-component.js.map +1 -1
  726. package/dist/vite/plugin-config-reload.d.ts +4 -4
  727. package/dist/vite/plugin-config-reload.js +13 -8
  728. package/dist/vite/plugin-config-reload.js.map +1 -1
  729. package/dist/vite/plugin-config.d.ts +2 -3
  730. package/dist/vite/plugin-config.js +26 -3
  731. package/dist/vite/plugin-config.js.map +1 -1
  732. package/dist/vite/plugin-custom-pages.d.ts +2 -2
  733. package/dist/vite/plugin-custom-pages.js +3 -3
  734. package/dist/vite/plugin-custom-pages.js.map +1 -1
  735. package/dist/vite/plugin-docs.d.ts +3 -3
  736. package/dist/vite/plugin-docs.js +23 -6
  737. package/dist/vite/plugin-docs.js.map +1 -1
  738. package/dist/vite/plugin-docs.test.js +15 -23
  739. package/dist/vite/plugin-docs.test.js.map +1 -1
  740. package/dist/vite/plugin-frontmatter.d.ts +2 -1
  741. package/dist/vite/plugin-frontmatter.js +28 -24
  742. package/dist/vite/plugin-frontmatter.js.map +1 -1
  743. package/dist/vite/plugin-mdx.d.ts +2 -8
  744. package/dist/vite/plugin-mdx.js +89 -16
  745. package/dist/vite/plugin-mdx.js.map +1 -1
  746. package/dist/vite/plugin-redirect.d.ts +2 -2
  747. package/dist/vite/plugin-redirect.js +3 -3
  748. package/dist/vite/plugin-redirect.js.map +1 -1
  749. package/dist/vite/plugin-search.d.ts +3 -0
  750. package/dist/vite/plugin-search.js +30 -0
  751. package/dist/vite/plugin-search.js.map +1 -0
  752. package/dist/vite/plugin-sidebar.d.ts +5 -3
  753. package/dist/vite/plugin-sidebar.js +24 -11
  754. package/dist/vite/plugin-sidebar.js.map +1 -1
  755. package/dist/vite/{plugin-custom-css.d.ts → plugin-theme-css.d.ts} +3 -3
  756. package/dist/vite/plugin-theme-css.js +117 -0
  757. package/dist/vite/plugin-theme-css.js.map +1 -0
  758. package/dist/vite/plugin.d.ts +2 -3
  759. package/dist/vite/plugin.js +10 -6
  760. package/dist/vite/plugin.js.map +1 -1
  761. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  762. package/dist/vite/prerender/FileWritingResponse.js +51 -0
  763. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  764. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  765. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  766. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  767. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  768. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  769. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  770. package/dist/vite/prerender/prerender.d.ts +15 -0
  771. package/dist/vite/prerender/prerender.js +109 -0
  772. package/dist/vite/prerender/prerender.js.map +1 -0
  773. package/dist/vite/prerender/worker.d.ts +13 -0
  774. package/dist/vite/prerender/worker.js +59 -0
  775. package/dist/vite/prerender/worker.js.map +1 -0
  776. package/dist/vite/remarkStaticGeneration.d.ts +3 -0
  777. package/dist/vite/remarkStaticGeneration.js +125 -0
  778. package/dist/vite/remarkStaticGeneration.js.map +1 -0
  779. package/dist/vite/reporter.d.ts +3 -0
  780. package/dist/vite/reporter.js +33 -0
  781. package/dist/vite/reporter.js.map +1 -0
  782. package/dist/vite/sitemap.d.ts +1 -1
  783. package/dist/vite/sitemap.js +2 -1
  784. package/dist/vite/sitemap.js.map +1 -1
  785. package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
  786. package/dist/zuplo/enrich-with-zuplo.js +185 -0
  787. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  788. package/dist/zuplo/policy-types.d.ts +33 -0
  789. package/dist/zuplo/policy-types.js +8 -0
  790. package/dist/zuplo/policy-types.js.map +1 -0
  791. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  792. package/dist/zuplo/with-zuplo-processors.js +26 -0
  793. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  794. package/dist/zuplo/with-zuplo.d.ts +6 -0
  795. package/dist/zuplo/with-zuplo.js +10 -0
  796. package/dist/zuplo/with-zuplo.js.map +1 -0
  797. package/lib/AuthenticationPlugin-ByDF051g.js +99 -0
  798. package/lib/AuthenticationPlugin-ByDF051g.js.map +1 -0
  799. package/lib/Button-BBNrKpQd.js +49 -0
  800. package/lib/Button-BBNrKpQd.js.map +1 -0
  801. package/lib/Callout-D3Ja4OPX.js +230 -0
  802. package/lib/Callout-D3Ja4OPX.js.map +1 -0
  803. package/lib/Card-BtheiD7j.js +61 -0
  804. package/lib/Card-BtheiD7j.js.map +1 -0
  805. package/lib/CategoryHeading-D06WK_Wo.js +10 -0
  806. package/lib/{CategoryHeading-B7TlPvuN.js.map → CategoryHeading-D06WK_Wo.js.map} +1 -1
  807. package/lib/ClientOnly-E7hGysn1.js +11 -0
  808. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  809. package/lib/Dialog-ByYz4ABw.js +98 -0
  810. package/lib/Dialog-ByYz4ABw.js.map +1 -0
  811. package/lib/Drawer-CEwbkLDb.js +1133 -0
  812. package/lib/Drawer-CEwbkLDb.js.map +1 -0
  813. package/lib/Markdown-mFpg_n9p.js +17125 -0
  814. package/lib/Markdown-mFpg_n9p.js.map +1 -0
  815. package/lib/MdxPage-Cm7atiW3.js +85 -0
  816. package/lib/MdxPage-Cm7atiW3.js.map +1 -0
  817. package/lib/OasProvider-DBJ3ZUTp.js +34 -0
  818. package/lib/OasProvider-DBJ3ZUTp.js.map +1 -0
  819. package/lib/OperationList-zUAJl5qO.js +5125 -0
  820. package/lib/OperationList-zUAJl5qO.js.map +1 -0
  821. package/lib/Pagination-DLPL5z77.js +48 -0
  822. package/lib/Pagination-DLPL5z77.js.map +1 -0
  823. package/lib/RouteGuard-DRtEu9nh.js +744 -0
  824. package/lib/RouteGuard-DRtEu9nh.js.map +1 -0
  825. package/lib/SchemaList-YsfrEmpL.js +148 -0
  826. package/lib/SchemaList-YsfrEmpL.js.map +1 -0
  827. package/lib/SchemaView-C3JbhWHn.js +367 -0
  828. package/lib/SchemaView-C3JbhWHn.js.map +1 -0
  829. package/lib/Select-CT64Ou40.js +223 -0
  830. package/lib/Select-CT64Ou40.js.map +1 -0
  831. package/lib/SlotletProvider-CS_nO-XT.js +340 -0
  832. package/lib/SlotletProvider-CS_nO-XT.js.map +1 -0
  833. package/lib/{Spinner-3cQDBVGr.js → Spinner-mNLZ6awP.js} +2 -2
  834. package/lib/{Spinner-3cQDBVGr.js.map → Spinner-mNLZ6awP.js.map} +1 -1
  835. package/lib/SyntaxHighlight-CxhyyMkF.js +2890 -0
  836. package/lib/SyntaxHighlight-CxhyyMkF.js.map +1 -0
  837. package/lib/Toc-D_tV8_Ri.js +92 -0
  838. package/lib/Toc-D_tV8_Ri.js.map +1 -0
  839. package/lib/_commonjsHelpers-B4e78b8K.js +29 -0
  840. package/lib/_commonjsHelpers-B4e78b8K.js.map +1 -0
  841. package/lib/chunk-BAXFHI7N-BVBOl9s0.js +1826 -0
  842. package/lib/chunk-BAXFHI7N-BVBOl9s0.js.map +1 -0
  843. package/lib/circular-ByJI6Mci.js +15877 -0
  844. package/lib/circular-ByJI6Mci.js.map +1 -0
  845. package/lib/cn-qaFjX9_3.js +2279 -0
  846. package/lib/cn-qaFjX9_3.js.map +1 -0
  847. package/lib/context-Lrf2Y9bR.js +22 -0
  848. package/lib/context-Lrf2Y9bR.js.map +1 -0
  849. package/lib/createServer-IW7v5hWm.js +12318 -0
  850. package/lib/createServer-IW7v5hWm.js.map +1 -0
  851. package/lib/hook-CldJlP5c.js +1478 -0
  852. package/lib/hook-CldJlP5c.js.map +1 -0
  853. package/lib/index-BBgdF7h4.js +2184 -0
  854. package/lib/index-BBgdF7h4.js.map +1 -0
  855. package/lib/index-Bn6Lc9tq.js +9 -0
  856. package/lib/{index-DJqnphbT.js.map → index-Bn6Lc9tq.js.map} +1 -1
  857. package/lib/index-CPNSgwSb.js +36 -0
  858. package/lib/index-CPNSgwSb.js.map +1 -0
  859. package/lib/index-CuBIgTKC.js +316 -0
  860. package/lib/index-CuBIgTKC.js.map +1 -0
  861. package/lib/{index-CkwDvuPt.js → index-DcHeSvkE.js} +348 -318
  862. package/lib/index-DcHeSvkE.js.map +1 -0
  863. package/lib/index-DnQftvP4.js +5031 -0
  864. package/lib/index-DnQftvP4.js.map +1 -0
  865. package/lib/index-DwT-v3zK.js +86 -0
  866. package/lib/index-DwT-v3zK.js.map +1 -0
  867. package/lib/{index-D06ATMgg.js → index-LNp6rxyU.js} +2 -2
  868. package/lib/{index-D06ATMgg.js.map → index-LNp6rxyU.js.map} +1 -1
  869. package/lib/index.esm-D2ZUREQN.js +1216 -0
  870. package/lib/index.esm-D2ZUREQN.js.map +1 -0
  871. package/lib/invariant-Caa8-XvF.js +26 -0
  872. package/lib/invariant-Caa8-XvF.js.map +1 -0
  873. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  874. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  875. package/lib/mutation-DBQh7AOZ.js +211 -0
  876. package/lib/mutation-DBQh7AOZ.js.map +1 -0
  877. package/lib/objectEntries-yMIkr2mI.js +5 -0
  878. package/lib/objectEntries-yMIkr2mI.js.map +1 -0
  879. package/lib/{prism-bash.min-DadFsM4Z.js → prism-bash.min-HHIMdNJ_.js} +4 -4
  880. package/lib/{prism-bash.min-DadFsM4Z.js.map → prism-bash.min-HHIMdNJ_.js.map} +1 -1
  881. package/lib/prism-csharp.min-C43x1RY2.js +63 -0
  882. package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-C43x1RY2.js.map} +1 -1
  883. package/lib/prism-java.min-CQzr40NQ.js +35 -0
  884. package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-CQzr40NQ.js.map} +1 -1
  885. package/lib/prism-javascript.min-CEqHqgbm.js.map +1 -1
  886. package/lib/prism-json.min-B1GJqK1k.js.map +1 -1
  887. package/lib/prism-jsstacktrace.min-BfobCF2F.js +2 -0
  888. package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +1 -0
  889. package/lib/{prism-markdown.min-F3U-vPBi.js → prism-markdown.min-C0Qn0m-5.js} +30 -30
  890. package/lib/{prism-markdown.min-F3U-vPBi.js.map → prism-markdown.min-C0Qn0m-5.js.map} +1 -1
  891. package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
  892. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -1
  893. package/lib/prism-ruby.min-L9OdQ6tU.js +38 -0
  894. package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-L9OdQ6tU.js.map} +1 -1
  895. package/lib/prism-typescript.min-qTySPvCh.js +34 -0
  896. package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-qTySPvCh.js.map} +1 -1
  897. package/lib/processors/removeExtensions.js +11 -0
  898. package/lib/processors/removeExtensions.js.map +1 -0
  899. package/lib/processors/removeParameters.js +48 -0
  900. package/lib/processors/removeParameters.js.map +1 -0
  901. package/lib/processors/removePaths.js +28 -0
  902. package/lib/processors/removePaths.js.map +1 -0
  903. package/lib/processors/traverse.js +15 -0
  904. package/lib/processors/traverse.js.map +1 -0
  905. package/lib/ui/Accordion.js +47 -0
  906. package/lib/ui/Accordion.js.map +1 -0
  907. package/lib/ui/ActionButton.js +25 -0
  908. package/lib/ui/ActionButton.js.map +1 -0
  909. package/lib/ui/Alert.js +51 -0
  910. package/lib/ui/Alert.js.map +1 -0
  911. package/lib/ui/AlertDialog.js +114 -0
  912. package/lib/ui/AlertDialog.js.map +1 -0
  913. package/lib/ui/AspectRatio.js +6 -0
  914. package/lib/ui/AspectRatio.js.map +1 -0
  915. package/lib/ui/Badge.js +28 -0
  916. package/lib/ui/Badge.js.map +1 -0
  917. package/lib/ui/Breadcrumb.js +94 -0
  918. package/lib/ui/Breadcrumb.js.map +1 -0
  919. package/lib/ui/Button.js +50 -0
  920. package/lib/ui/Button.js.map +1 -0
  921. package/lib/ui/Callout.js +96 -0
  922. package/lib/ui/Callout.js.map +1 -0
  923. package/lib/ui/Card.js +62 -0
  924. package/lib/ui/Card.js.map +1 -0
  925. package/lib/ui/Carousel.js +1416 -0
  926. package/lib/ui/Carousel.js.map +1 -0
  927. package/lib/ui/Checkbox.js +29 -0
  928. package/lib/ui/Checkbox.js.map +1 -0
  929. package/lib/ui/Collapsible.js +8 -0
  930. package/lib/ui/Collapsible.js.map +1 -0
  931. package/lib/ui/Command.js +156 -0
  932. package/lib/ui/Command.js.map +1 -0
  933. package/lib/ui/Dialog.js +101 -0
  934. package/lib/ui/Dialog.js.map +1 -0
  935. package/lib/ui/Drawer.js +17 -0
  936. package/lib/ui/Drawer.js.map +1 -0
  937. package/lib/ui/DropdownMenu.js +145 -0
  938. package/lib/ui/DropdownMenu.js.map +1 -0
  939. package/lib/ui/Form.js +95 -0
  940. package/lib/ui/Form.js.map +1 -0
  941. package/lib/ui/HoverCard.js +24 -0
  942. package/lib/ui/HoverCard.js.map +1 -0
  943. package/lib/ui/Input.js +22 -0
  944. package/lib/ui/Input.js.map +1 -0
  945. package/lib/ui/Label.js +20 -0
  946. package/lib/ui/Label.js.map +1 -0
  947. package/lib/ui/Pagination.js +106 -0
  948. package/lib/ui/Pagination.js.map +1 -0
  949. package/lib/ui/Popover.js +24 -0
  950. package/lib/ui/Popover.js.map +1 -0
  951. package/lib/ui/Progress.js +27 -0
  952. package/lib/ui/Progress.js.map +1 -0
  953. package/lib/ui/RadioGroup.js +32 -0
  954. package/lib/ui/RadioGroup.js.map +1 -0
  955. package/lib/ui/ScrollArea.js +39 -0
  956. package/lib/ui/ScrollArea.js.map +1 -0
  957. package/lib/ui/Select.js +122 -0
  958. package/lib/ui/Select.js.map +1 -0
  959. package/lib/ui/Skeleton.js +18 -0
  960. package/lib/ui/Skeleton.js.map +1 -0
  961. package/lib/ui/Slider.js +24 -0
  962. package/lib/ui/Slider.js.map +1 -0
  963. package/lib/ui/Stepper.js +6 -0
  964. package/lib/ui/Stepper.js.map +1 -0
  965. package/lib/ui/Switch.js +28 -0
  966. package/lib/ui/Switch.js.map +1 -0
  967. package/lib/ui/SyntaxHighlight.js +11 -0
  968. package/lib/ui/SyntaxHighlight.js.map +1 -0
  969. package/lib/ui/Tabs.js +47 -0
  970. package/lib/ui/Tabs.js.map +1 -0
  971. package/lib/ui/Textarea.js +21 -0
  972. package/lib/ui/Textarea.js.map +1 -0
  973. package/lib/ui/Toggle.js +38 -0
  974. package/lib/ui/Toggle.js.map +1 -0
  975. package/lib/ui/ToggleGroup.js +42 -0
  976. package/lib/ui/ToggleGroup.js.map +1 -0
  977. package/lib/ui/Tooltip.js +24 -0
  978. package/lib/ui/Tooltip.js.map +1 -0
  979. package/lib/ui/util.js +6 -0
  980. package/lib/ui/util.js.map +1 -0
  981. package/lib/useExposedProps-DbIZXspi.js +9 -0
  982. package/lib/useExposedProps-DbIZXspi.js.map +1 -0
  983. package/lib/useLatest-hmRS46UF.js +11 -0
  984. package/lib/useLatest-hmRS46UF.js.map +1 -0
  985. package/lib/zudoku.auth-auth0.js +30 -25
  986. package/lib/zudoku.auth-auth0.js.map +1 -1
  987. package/lib/zudoku.auth-clerk.js +101 -55
  988. package/lib/zudoku.auth-clerk.js.map +1 -1
  989. package/lib/zudoku.auth-openid.js +643 -679
  990. package/lib/zudoku.auth-openid.js.map +1 -1
  991. package/lib/zudoku.components.js +33 -3450
  992. package/lib/zudoku.components.js.map +1 -1
  993. package/lib/zudoku.hooks.js +19 -0
  994. package/lib/zudoku.hooks.js.map +1 -0
  995. package/lib/zudoku.icons.js +10 -0
  996. package/lib/zudoku.icons.js.map +1 -1
  997. package/lib/zudoku.plugin-api-catalog.js +117 -0
  998. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  999. package/lib/zudoku.plugin-api-keys.js +104 -108
  1000. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  1001. package/lib/zudoku.plugin-custom-pages.js +10 -9
  1002. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  1003. package/lib/zudoku.plugin-markdown.js +27 -47
  1004. package/lib/zudoku.plugin-markdown.js.map +1 -1
  1005. package/lib/zudoku.plugin-openapi.js +7 -11
  1006. package/lib/zudoku.plugin-openapi.js.map +1 -1
  1007. package/lib/zudoku.plugin-redirect.js +2 -2
  1008. package/lib/zudoku.plugin-redirect.js.map +1 -1
  1009. package/lib/zudoku.plugin-search-inkeep.js +53 -28
  1010. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  1011. package/lib/zudoku.plugin-search-pagefind.js +233 -0
  1012. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  1013. package/lib/zudoku.plugins.js +14 -0
  1014. package/lib/zudoku.plugins.js.map +1 -0
  1015. package/package.json +157 -80
  1016. package/src/app/ZuploBuildConfig.ts +33 -0
  1017. package/src/app/demo-cdn.html +31 -31
  1018. package/src/app/demo.tsx +1 -5
  1019. package/src/app/entry.client.tsx +26 -1
  1020. package/src/app/entry.server.tsx +80 -63
  1021. package/src/app/env.ts +35 -0
  1022. package/src/app/main.css +101 -40
  1023. package/src/app/main.tsx +61 -19
  1024. package/src/app/sentry.ts +24 -0
  1025. package/src/app/standalone.tsx +1 -5
  1026. package/src/app/tailwind.ts +83 -48
  1027. package/src/lib/MissingIcon.tsx +22 -0
  1028. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
  1029. package/src/lib/authentication/authentication.ts +5 -3
  1030. package/src/lib/authentication/components/CallbackHandler.tsx +20 -51
  1031. package/src/lib/authentication/components/SignIn.tsx +35 -2
  1032. package/src/lib/authentication/components/SignOut.tsx +3 -2
  1033. package/src/lib/authentication/components/SignUp.tsx +35 -1
  1034. package/src/lib/authentication/hook.ts +13 -4
  1035. package/src/lib/authentication/providers/auth0.tsx +20 -16
  1036. package/src/lib/authentication/providers/clerk.tsx +70 -15
  1037. package/src/lib/authentication/providers/openid.tsx +86 -58
  1038. package/src/lib/authentication/providers/supabase.tsx +157 -0
  1039. package/src/lib/authentication/state.ts +56 -25
  1040. package/{LICENSE.md → src/lib/authentication/use-broadcast/LICENSE.md} +2 -2
  1041. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  1042. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  1043. package/src/lib/components/AnchorLink.tsx +13 -8
  1044. package/src/lib/components/Autocomplete.tsx +113 -0
  1045. package/src/lib/components/Banner.tsx +1 -0
  1046. package/src/lib/components/Bootstrap.tsx +43 -16
  1047. package/src/lib/components/BuildCheck.tsx +75 -0
  1048. package/src/lib/components/ClientOnly.tsx +6 -3
  1049. package/src/lib/components/DeveloperHint.tsx +6 -1
  1050. package/src/lib/components/Footer.tsx +139 -0
  1051. package/src/lib/components/Header.tsx +96 -53
  1052. package/src/lib/components/Heading.tsx +13 -13
  1053. package/src/lib/components/InlineCode.tsx +13 -16
  1054. package/src/lib/components/Layout.tsx +33 -54
  1055. package/src/lib/components/Main.tsx +50 -0
  1056. package/src/lib/components/Markdown.tsx +15 -16
  1057. package/src/lib/components/MobileTopNavigation.tsx +40 -30
  1058. package/src/lib/components/NotFoundPage.tsx +1 -1
  1059. package/src/lib/components/Pagination.tsx +50 -0
  1060. package/src/lib/components/PathRenderer.tsx +61 -0
  1061. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  1062. package/src/lib/components/ReactMarkdown.tsx +264 -0
  1063. package/src/lib/components/Search.tsx +17 -6
  1064. package/src/lib/components/SlotletProvider.tsx +3 -1
  1065. package/src/lib/components/StatusPage.tsx +91 -0
  1066. package/src/lib/components/ThemeSwitch.tsx +46 -0
  1067. package/src/lib/components/TopNavigation.tsx +84 -36
  1068. package/src/lib/components/Zudoku.tsx +119 -0
  1069. package/src/lib/components/cache.ts +23 -0
  1070. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  1071. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  1072. package/src/lib/components/context/ViewportAnchorContext.tsx +34 -36
  1073. package/src/lib/components/context/ZudokuContext.ts +39 -22
  1074. package/src/lib/components/context/ZudokuProvider.tsx +2 -2
  1075. package/src/lib/components/index.ts +33 -6
  1076. package/src/lib/components/navigation/PoweredByZudoku.tsx +28 -0
  1077. package/src/lib/components/navigation/Sidebar.tsx +38 -29
  1078. package/src/lib/components/navigation/SidebarBadge.tsx +17 -12
  1079. package/src/lib/components/navigation/SidebarCategory.tsx +59 -56
  1080. package/src/lib/components/navigation/SidebarItem.tsx +30 -39
  1081. package/src/lib/components/navigation/SidebarWrapper.tsx +42 -22
  1082. package/src/lib/{plugins/markdown → components/navigation}/Toc.tsx +5 -14
  1083. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  1084. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  1085. package/src/lib/components/navigation/utils.ts +3 -3
  1086. package/src/lib/core/RouteGuard.tsx +96 -0
  1087. package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +76 -32
  1088. package/src/lib/core/plugins.ts +44 -22
  1089. package/src/lib/errors/ErrorAlert.tsx +36 -15
  1090. package/src/lib/errors/RouterError.tsx +1 -1
  1091. package/src/lib/hooks/index.ts +5 -0
  1092. package/src/lib/hooks/useEvent.test.tsx +149 -0
  1093. package/src/lib/hooks/useEvent.ts +41 -0
  1094. package/src/lib/icons.ts +1 -0
  1095. package/src/lib/oas/graphql/circular.ts +50 -0
  1096. package/src/lib/oas/graphql/index.ts +298 -104
  1097. package/src/lib/oas/parser/dereference/index.ts +10 -4
  1098. package/src/lib/oas/parser/index.ts +9 -30
  1099. package/src/lib/oas/parser/upgrade/index.ts +25 -30
  1100. package/src/lib/plugins/api-catalog/Catalog.tsx +73 -0
  1101. package/src/lib/plugins/api-catalog/index.tsx +115 -0
  1102. package/src/lib/plugins/api-keys/CreateApiKey.tsx +10 -6
  1103. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  1104. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -1
  1105. package/src/lib/plugins/api-keys/index.tsx +16 -10
  1106. package/src/lib/plugins/custom-pages/CustomPage.tsx +2 -2
  1107. package/src/lib/plugins/custom-pages/index.tsx +3 -3
  1108. package/src/lib/plugins/markdown/MdxPage.tsx +43 -41
  1109. package/src/lib/plugins/markdown/index.tsx +7 -4
  1110. package/src/lib/plugins/markdown/resolver.ts +2 -37
  1111. package/src/lib/plugins/openapi/CollapsibleCode.tsx +83 -0
  1112. package/src/lib/plugins/openapi/ColorizedParam.tsx +49 -23
  1113. package/src/lib/plugins/openapi/Endpoint.tsx +19 -22
  1114. package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
  1115. package/src/lib/plugins/openapi/OperationList.tsx +240 -70
  1116. package/src/lib/plugins/openapi/OperationListItem.tsx +136 -88
  1117. package/src/lib/plugins/openapi/ParamInfos.tsx +88 -0
  1118. package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
  1119. package/src/lib/plugins/openapi/ParameterListItem.tsx +78 -31
  1120. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +21 -2
  1121. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +15 -33
  1122. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +46 -58
  1123. package/src/lib/plugins/openapi/SchemaList.tsx +151 -0
  1124. package/src/lib/plugins/openapi/Sidecar.tsx +147 -113
  1125. package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
  1126. package/src/lib/plugins/openapi/SidecarExamples.tsx +162 -0
  1127. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  1128. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +65 -0
  1129. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  1130. package/src/lib/plugins/openapi/client/createServer.ts +8 -2
  1131. package/src/lib/plugins/openapi/client/useCreateQuery.ts +26 -0
  1132. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  1133. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  1134. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  1135. package/src/lib/plugins/openapi/context.tsx +2 -2
  1136. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
  1137. package/src/lib/plugins/openapi/graphql/gql.ts +38 -30
  1138. package/src/lib/plugins/openapi/graphql/graphql.ts +386 -682
  1139. package/src/lib/plugins/openapi/index.tsx +110 -134
  1140. package/src/lib/plugins/openapi/interfaces.ts +57 -3
  1141. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +52 -0
  1142. package/src/lib/plugins/openapi/playground/Headers.tsx +165 -36
  1143. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
  1144. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +54 -0
  1145. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
  1146. package/src/lib/plugins/openapi/playground/PathParams.tsx +39 -64
  1147. package/src/lib/plugins/openapi/playground/Playground.tsx +386 -245
  1148. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +7 -4
  1149. package/src/lib/plugins/openapi/playground/QueryParams.tsx +86 -88
  1150. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  1151. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +75 -0
  1152. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  1153. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +73 -0
  1154. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +230 -0
  1155. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +123 -0
  1156. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
  1157. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
  1158. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +222 -0
  1159. package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
  1160. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +182 -0
  1161. package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
  1162. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  1163. package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
  1164. package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
  1165. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  1166. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  1167. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  1168. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +36 -0
  1169. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +153 -0
  1170. package/src/lib/plugins/openapi/schema/SchemaView.tsx +87 -135
  1171. package/src/lib/plugins/openapi/schema/utils.ts +16 -1
  1172. package/src/lib/plugins/openapi/state.ts +36 -0
  1173. package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +37 -0
  1174. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +88 -43
  1175. package/src/lib/plugins/openapi/util/getRoutes.tsx +134 -0
  1176. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  1177. package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
  1178. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  1179. package/src/lib/plugins/redirect/index.tsx +6 -10
  1180. package/src/lib/plugins/search-inkeep/index.tsx +80 -25
  1181. package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
  1182. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
  1183. package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -0
  1184. package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
  1185. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  1186. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  1187. package/src/lib/ui/Accordion.tsx +56 -0
  1188. package/src/lib/ui/ActionButton.tsx +28 -0
  1189. package/src/lib/ui/{Note.tsx → Alert.tsx} +11 -10
  1190. package/src/lib/ui/AlertDialog.tsx +139 -0
  1191. package/src/lib/ui/AspectRatio.tsx +5 -0
  1192. package/src/lib/ui/Badge.tsx +37 -0
  1193. package/src/lib/ui/Breadcrumb.tsx +115 -0
  1194. package/src/lib/ui/Button.tsx +5 -3
  1195. package/src/lib/ui/Callout.tsx +29 -10
  1196. package/src/lib/ui/Card.tsx +1 -1
  1197. package/src/lib/ui/Carousel.tsx +260 -0
  1198. package/src/lib/ui/Checkbox.tsx +29 -0
  1199. package/src/lib/ui/Collapsible.tsx +9 -0
  1200. package/src/lib/ui/Command.tsx +193 -0
  1201. package/src/lib/{components → ui}/Dialog.tsx +4 -3
  1202. package/src/lib/ui/Form.tsx +177 -0
  1203. package/src/lib/ui/HoverCard.tsx +27 -0
  1204. package/src/lib/ui/Input.tsx +1 -2
  1205. package/src/lib/ui/Label.tsx +24 -0
  1206. package/src/lib/ui/Pagination.tsx +117 -0
  1207. package/src/lib/ui/Popover.tsx +29 -0
  1208. package/src/lib/ui/Progress.tsx +26 -0
  1209. package/src/lib/ui/RadioGroup.tsx +42 -0
  1210. package/src/lib/ui/ScrollArea.tsx +46 -0
  1211. package/src/lib/{components → ui}/Select.tsx +2 -2
  1212. package/src/lib/ui/Skeleton.tsx +15 -0
  1213. package/src/lib/ui/Slider.tsx +26 -0
  1214. package/src/lib/ui/Stepper.tsx +8 -0
  1215. package/src/lib/ui/Switch.tsx +27 -0
  1216. package/src/lib/ui/SyntaxHighlight.tsx +186 -0
  1217. package/src/lib/ui/Textarea.tsx +23 -0
  1218. package/src/lib/ui/Toggle.tsx +43 -0
  1219. package/src/lib/ui/ToggleGroup.tsx +59 -0
  1220. package/src/lib/ui/Tooltip.tsx +28 -0
  1221. package/src/lib/ui/util.tsx +3 -0
  1222. package/src/lib/util/MdxComponents.tsx +12 -12
  1223. package/src/lib/util/createVariantComponent.tsx +2 -2
  1224. package/src/lib/util/detectOS.ts +9 -0
  1225. package/src/lib/util/ensureArray.ts +3 -0
  1226. package/src/lib/util/invariant.ts +15 -3
  1227. package/src/lib/util/joinPath.tsx +3 -0
  1228. package/src/lib/util/joinUrl.test.ts +62 -0
  1229. package/src/lib/util/joinUrl.ts +57 -0
  1230. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  1231. package/src/lib/util/traverse.ts +31 -0
  1232. package/src/lib/util/types.ts +7 -0
  1233. package/src/lib/util/useExposedProps.tsx +8 -2
  1234. package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
  1235. package/src/lib/util/useLatest.ts +18 -0
  1236. package/src/lib/util/useOnScreen.ts +34 -0
  1237. package/src/lib/util/useScrollToAnchor.ts +48 -39
  1238. package/src/lib/util/useScrollToTop.ts +9 -4
  1239. package/client.d.ts +0 -1
  1240. package/dist/internal.d.ts +0 -1
  1241. package/dist/internal.js +0 -2
  1242. package/dist/internal.js.map +0 -1
  1243. package/dist/lib/components/DevPortal.js.map +0 -1
  1244. package/dist/lib/components/Dialog.js.map +0 -1
  1245. package/dist/lib/components/Select.js.map +0 -1
  1246. package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
  1247. package/dist/lib/components/SyntaxHighlight.js +0 -50
  1248. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  1249. package/dist/lib/components/context/PluginSystem.js +0 -2
  1250. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1251. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  1252. package/dist/lib/components/context/ThemeContext.js +0 -7
  1253. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  1254. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  1255. package/dist/lib/components/context/ThemeProvider.js +0 -23
  1256. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  1257. package/dist/lib/core/DevPortalContext.js +0 -49
  1258. package/dist/lib/core/DevPortalContext.js.map +0 -1
  1259. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  1260. package/dist/lib/plugins/openapi/Route.d.ts +0 -6
  1261. package/dist/lib/plugins/openapi/Route.js +0 -8
  1262. package/dist/lib/plugins/openapi/Route.js.map +0 -1
  1263. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
  1264. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
  1265. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  1266. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  1267. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
  1268. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  1269. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  1270. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  1271. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  1272. package/dist/lib/plugins/openapi/client/worker.js +0 -20
  1273. package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
  1274. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
  1275. package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
  1276. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
  1277. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
  1278. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
  1279. package/dist/lib/plugins/openapi-worker.d.ts +0 -1
  1280. package/dist/lib/plugins/openapi-worker.js +0 -2
  1281. package/dist/lib/plugins/openapi-worker.js.map +0 -1
  1282. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  1283. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  1284. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  1285. package/dist/lib/themeToggle.d.ts +0 -1
  1286. package/dist/lib/themeToggle.js +0 -7
  1287. package/dist/lib/themeToggle.js.map +0 -1
  1288. package/dist/lib/ui/Note.d.ts +0 -8
  1289. package/dist/lib/ui/Note.js +0 -23
  1290. package/dist/lib/ui/Note.js.map +0 -1
  1291. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  1292. package/dist/lib/util/createWaitForNotify.js +0 -15
  1293. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  1294. package/dist/vite/plugin-custom-css.js +0 -55
  1295. package/dist/vite/plugin-custom-css.js.map +0 -1
  1296. package/dist/vite/plugin-html-transform.d.ts +0 -2
  1297. package/dist/vite/plugin-html-transform.js +0 -15
  1298. package/dist/vite/plugin-html-transform.js.map +0 -1
  1299. package/dist/vite/prerender.d.ts +0 -21
  1300. package/dist/vite/prerender.js +0 -88
  1301. package/dist/vite/prerender.js.map +0 -1
  1302. package/lib/AnchorLink-DNsmBTRp.js +0 -705
  1303. package/lib/AnchorLink-DNsmBTRp.js.map +0 -1
  1304. package/lib/AuthenticationPlugin-CKyNe953.js +0 -55
  1305. package/lib/AuthenticationPlugin-CKyNe953.js.map +0 -1
  1306. package/lib/CategoryHeading-B7TlPvuN.js +0 -10
  1307. package/lib/DeveloperHint-B_QCCafl.js +0 -16
  1308. package/lib/DeveloperHint-B_QCCafl.js.map +0 -1
  1309. package/lib/ErrorPage-DqqAV1dr.js +0 -16
  1310. package/lib/ErrorPage-DqqAV1dr.js.map +0 -1
  1311. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  1312. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  1313. package/lib/Input-RKErK8rC.js +0 -2229
  1314. package/lib/Input-RKErK8rC.js.map +0 -1
  1315. package/lib/Markdown-Y__eLG0x.js +0 -20441
  1316. package/lib/Markdown-Y__eLG0x.js.map +0 -1
  1317. package/lib/MdxPage-Df0B_t9t.js +0 -173
  1318. package/lib/MdxPage-Df0B_t9t.js.map +0 -1
  1319. package/lib/OperationList-yuVHI6ul.js +0 -601
  1320. package/lib/OperationList-yuVHI6ul.js.map +0 -1
  1321. package/lib/Route-BaAjY0N-.js +0 -13
  1322. package/lib/Route-BaAjY0N-.js.map +0 -1
  1323. package/lib/SidebarBadge-DGTOim55.js +0 -503
  1324. package/lib/SidebarBadge-DGTOim55.js.map +0 -1
  1325. package/lib/SlotletProvider-DmqWiVFt.js +0 -239
  1326. package/lib/SlotletProvider-DmqWiVFt.js.map +0 -1
  1327. package/lib/ZudokuContext-D-TANjzJ.js +0 -1222
  1328. package/lib/ZudokuContext-D-TANjzJ.js.map +0 -1
  1329. package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
  1330. package/lib/__vite-browser-external-BYRIRx8p.js.map +0 -1
  1331. package/lib/assets/index-B_Jk_Yzp.js +0 -4820
  1332. package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
  1333. package/lib/assets/worker-DaFlmuyf.js +0 -18111
  1334. package/lib/assets/worker-DaFlmuyf.js.map +0 -1
  1335. package/lib/index-CkwDvuPt.js.map +0 -1
  1336. package/lib/index-D7tBXCIO.js +0 -124
  1337. package/lib/index-D7tBXCIO.js.map +0 -1
  1338. package/lib/index-DFN92YJN.js +0 -1782
  1339. package/lib/index-DFN92YJN.js.map +0 -1
  1340. package/lib/index-DG-VRw9t.js +0 -2867
  1341. package/lib/index-DG-VRw9t.js.map +0 -1
  1342. package/lib/index-DJqnphbT.js +0 -35
  1343. package/lib/index-vPSN3k3e.js +0 -5952
  1344. package/lib/index-vPSN3k3e.js.map +0 -1
  1345. package/lib/jsx-runtime-B6kdoens.js +0 -635
  1346. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  1347. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  1348. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  1349. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  1350. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  1351. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  1352. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
  1353. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  1354. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  1355. package/lib/router-BsfSoK2j.js +0 -3024
  1356. package/lib/router-BsfSoK2j.js.map +0 -1
  1357. package/lib/state-CsuHT8ZO.js +0 -183
  1358. package/lib/state-CsuHT8ZO.js.map +0 -1
  1359. package/lib/urql-core-KJnLL26g.js +0 -1455
  1360. package/lib/urql-core-KJnLL26g.js.map +0 -1
  1361. package/lib/useExposedProps-BWwxa-Hg.js +0 -9
  1362. package/lib/useExposedProps-BWwxa-Hg.js.map +0 -1
  1363. package/lib/zudoku.openapi-worker.js +0 -16255
  1364. package/lib/zudoku.openapi-worker.js.map +0 -1
  1365. package/src/lib/components/DevPortal.tsx +0 -111
  1366. package/src/lib/components/SyntaxHighlight.tsx +0 -122
  1367. package/src/lib/components/context/PluginSystem.ts +0 -0
  1368. package/src/lib/components/context/ThemeContext.tsx +0 -8
  1369. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  1370. package/src/lib/plugins/openapi/Route.tsx +0 -20
  1371. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
  1372. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
  1373. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  1374. package/src/lib/plugins/openapi/client/worker.ts +0 -30
  1375. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
  1376. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
  1377. package/src/lib/plugins/openapi-worker.ts +0 -1
  1378. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
  1379. package/src/lib/themeToggle.ts +0 -7
  1380. package/src/lib/util/createWaitForNotify.ts +0 -18
  1381. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  1382. /package/dist/lib/{components/context/PluginSystem.d.ts → hooks/useEvent.test.d.ts} +0 -0
  1383. /package/dist/lib/plugins/openapi/{client/worker.d.ts → playground/result-panel/convertToTypes.test.d.ts} +0 -0
  1384. /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
  1385. /package/dist/lib/{components → ui}/Select.d.ts +0 -0
@@ -1,8 +1,8 @@
1
- const dt = Symbol.for("yaml.alias"), lt = Symbol.for("yaml.document"), Y = Symbol.for("yaml.map"), qt = Symbol.for("yaml.pair"), U = Symbol.for("yaml.scalar"), he = Symbol.for("yaml.seq"), j = Symbol.for("yaml.node.type"), x = (s) => !!s && typeof s == "object" && s[j] === dt, ee = (s) => !!s && typeof s == "object" && s[j] === lt, de = (s) => !!s && typeof s == "object" && s[j] === Y, I = (s) => !!s && typeof s == "object" && s[j] === qt, E = (s) => !!s && typeof s == "object" && s[j] === U, pe = (s) => !!s && typeof s == "object" && s[j] === he;
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"), j = Symbol.for("yaml.node.type"), x = (s) => !!s && typeof s == "object" && s[j] === dt, ee = (s) => !!s && typeof s == "object" && s[j] === lt, de = (s) => !!s && typeof s == "object" && s[j] === G, T = (s) => !!s && typeof s == "object" && s[j] === qt, E = (s) => !!s && typeof s == "object" && s[j] === R, pe = (s) => !!s && typeof s == "object" && s[j] === he;
2
2
  function L(s) {
3
3
  if (s && typeof s == "object")
4
4
  switch (s[j]) {
5
- case Y:
5
+ case G:
6
6
  case he:
7
7
  return !0;
8
8
  }
@@ -12,24 +12,24 @@ function $(s) {
12
12
  if (s && typeof s == "object")
13
13
  switch (s[j]) {
14
14
  case dt:
15
- case Y:
16
- case U:
15
+ case G:
16
+ case R:
17
17
  case he:
18
18
  return !0;
19
19
  }
20
20
  return !1;
21
21
  }
22
- const Bs = (s) => (E(s) || L(s)) && !!s.anchor, M = Symbol("break visit"), Rt = Symbol("skip children"), R = Symbol("remove node");
23
- function G(s, e) {
24
- const t = Ut(e);
25
- ee(s) ? ie(null, s.contents, t, Object.freeze([s])) === R && (s.contents = null) : ie(null, s, t, Object.freeze([]));
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
26
  }
27
- G.BREAK = M;
28
- G.SKIP = Rt;
29
- G.REMOVE = R;
27
+ Q.BREAK = M;
28
+ Q.SKIP = Ft;
29
+ Q.REMOVE = F;
30
30
  function ie(s, e, t, n) {
31
- const i = Ft(s, e, t, n);
32
- if ($(i) || I(i))
31
+ const i = Ut(s, e, t, n);
32
+ if ($(i) || T(i))
33
33
  return Vt(s, n, i), ie(s, i, t, n);
34
34
  if (typeof i != "symbol") {
35
35
  if (L(e)) {
@@ -41,33 +41,33 @@ function ie(s, e, t, n) {
41
41
  else {
42
42
  if (o === M)
43
43
  return M;
44
- o === R && (e.items.splice(r, 1), r -= 1);
44
+ o === F && (e.items.splice(r, 1), r -= 1);
45
45
  }
46
46
  }
47
- } else if (I(e)) {
47
+ } else if (T(e)) {
48
48
  n = Object.freeze(n.concat(e));
49
49
  const r = ie("key", e.key, t, n);
50
50
  if (r === M)
51
51
  return M;
52
- r === R && (e.key = null);
52
+ r === F && (e.key = null);
53
53
  const o = ie("value", e.value, t, n);
54
54
  if (o === M)
55
55
  return M;
56
- o === R && (e.value = null);
56
+ o === F && (e.value = null);
57
57
  }
58
58
  }
59
59
  return i;
60
60
  }
61
- async function Re(s, e) {
62
- const t = Ut(e);
63
- ee(s) ? await re(null, s.contents, t, Object.freeze([s])) === R && (s.contents = null) : await re(null, s, t, Object.freeze([]));
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
64
  }
65
- Re.BREAK = M;
66
- Re.SKIP = Rt;
67
- Re.REMOVE = R;
65
+ Fe.BREAK = M;
66
+ Fe.SKIP = Ft;
67
+ Fe.REMOVE = F;
68
68
  async function re(s, e, t, n) {
69
- const i = await Ft(s, e, t, n);
70
- if ($(i) || I(i))
69
+ const i = await Ut(s, e, t, n);
70
+ if ($(i) || T(i))
71
71
  return Vt(s, n, i), re(s, i, t, n);
72
72
  if (typeof i != "symbol") {
73
73
  if (L(e)) {
@@ -79,24 +79,24 @@ async function re(s, e, t, n) {
79
79
  else {
80
80
  if (o === M)
81
81
  return M;
82
- o === R && (e.items.splice(r, 1), r -= 1);
82
+ o === F && (e.items.splice(r, 1), r -= 1);
83
83
  }
84
84
  }
85
- } else if (I(e)) {
85
+ } else if (T(e)) {
86
86
  n = Object.freeze(n.concat(e));
87
87
  const r = await re("key", e.key, t, n);
88
88
  if (r === M)
89
89
  return M;
90
- r === R && (e.key = null);
90
+ r === F && (e.key = null);
91
91
  const o = await re("value", e.value, t, n);
92
92
  if (o === M)
93
93
  return M;
94
- o === R && (e.value = null);
94
+ o === F && (e.value = null);
95
95
  }
96
96
  }
97
97
  return i;
98
98
  }
99
- function Ut(s) {
99
+ function Rt(s) {
100
100
  return typeof s == "object" && (s.Collection || s.Node || s.Value) ? Object.assign({
101
101
  Alias: s.Node,
102
102
  Map: s.Node,
@@ -111,7 +111,7 @@ function Ut(s) {
111
111
  Seq: s.Collection
112
112
  }, s) : s;
113
113
  }
114
- function Ft(s, e, t, n) {
114
+ function Ut(s, e, t, n) {
115
115
  var i, r, o, l, a;
116
116
  if (typeof t == "function")
117
117
  return t(s, e, n);
@@ -119,7 +119,7 @@ function Ft(s, e, t, n) {
119
119
  return (i = t.Map) == null ? void 0 : i.call(t, s, e, n);
120
120
  if (pe(e))
121
121
  return (r = t.Seq) == null ? void 0 : r.call(t, s, e, n);
122
- if (I(e))
122
+ if (T(e))
123
123
  return (o = t.Pair) == null ? void 0 : o.call(t, s, e, n);
124
124
  if (E(e))
125
125
  return (l = t.Scalar) == null ? void 0 : l.call(t, s, e, n);
@@ -130,7 +130,7 @@ function Vt(s, e, t) {
130
130
  const n = e[e.length - 1];
131
131
  if (L(n))
132
132
  n.items[s] = t;
133
- else if (I(n))
133
+ else if (T(n))
134
134
  s === "key" ? n.key = t : n.value = t;
135
135
  else if (ee(n))
136
136
  n.contents = t;
@@ -139,20 +139,20 @@ function Vt(s, e, t) {
139
139
  throw new Error(`Cannot replace node with ${i} parent`);
140
140
  }
141
141
  }
142
- const vs = {
142
+ const Bs = {
143
143
  "!": "%21",
144
144
  ",": "%2C",
145
145
  "[": "%5B",
146
146
  "]": "%5D",
147
147
  "{": "%7B",
148
148
  "}": "%7D"
149
- }, Ms = (s) => s.replace(/[!,[\]{}]/g, (e) => vs[e]);
150
- class v {
149
+ }, Ms = (s) => s.replace(/[!,[\]{}]/g, (e) => Bs[e]);
150
+ class B {
151
151
  constructor(e, t) {
152
- this.docStart = null, this.docEnd = !1, this.yaml = Object.assign({}, v.defaultYaml, e), this.tags = Object.assign({}, v.defaultTags, t);
152
+ this.docStart = null, this.docEnd = !1, this.yaml = Object.assign({}, B.defaultYaml, e), this.tags = Object.assign({}, B.defaultTags, t);
153
153
  }
154
154
  clone() {
155
- const e = new v(this.yaml, this.tags);
155
+ const e = new B(this.yaml, this.tags);
156
156
  return e.docStart = this.docStart, e;
157
157
  }
158
158
  /**
@@ -160,16 +160,16 @@ class v {
160
160
  * update the stream state according to the current version's spec.
161
161
  */
162
162
  atDocument() {
163
- const e = new v(this.yaml, this.tags);
163
+ const e = new B(this.yaml, this.tags);
164
164
  switch (this.yaml.version) {
165
165
  case "1.1":
166
166
  this.atNextDocument = !0;
167
167
  break;
168
168
  case "1.2":
169
169
  this.atNextDocument = !1, this.yaml = {
170
- explicit: v.defaultYaml.explicit,
170
+ explicit: B.defaultYaml.explicit,
171
171
  version: "1.2"
172
- }, this.tags = Object.assign({}, v.defaultTags);
172
+ }, this.tags = Object.assign({}, B.defaultTags);
173
173
  break;
174
174
  }
175
175
  return e;
@@ -179,7 +179,7 @@ class v {
179
179
  * @returns `true` on success
180
180
  */
181
181
  add(e, t) {
182
- this.atNextDocument && (this.yaml = { explicit: v.defaultYaml.explicit, version: "1.1" }, this.tags = Object.assign({}, v.defaultTags), this.atNextDocument = !1);
182
+ this.atNextDocument && (this.yaml = { explicit: B.defaultYaml.explicit, version: "1.1" }, this.tags = Object.assign({}, B.defaultTags), this.atNextDocument = !1);
183
183
  const n = e.trim().split(/[ \t]+/), i = n.shift();
184
184
  switch (i) {
185
185
  case "%TAG": {
@@ -244,7 +244,7 @@ class v {
244
244
  let i;
245
245
  if (e && n.length > 0 && $(e.contents)) {
246
246
  const r = {};
247
- G(e.contents, (o, l) => {
247
+ Q(e.contents, (o, l) => {
248
248
  $(l) && l.tag && (r[l.tag] = !0);
249
249
  }), i = Object.keys(r);
250
250
  } else
@@ -255,8 +255,8 @@ class v {
255
255
  `);
256
256
  }
257
257
  }
258
- v.defaultYaml = { explicit: !1, version: "1.2" };
259
- v.defaultTags = { "!!": "tag:yaml.org,2002:" };
258
+ B.defaultYaml = { explicit: !1, version: "1.2" };
259
+ B.defaultTags = { "!!": "tag:yaml.org,2002:" };
260
260
  function Jt(s) {
261
261
  if (/[\x00-\x19\s,[\]{}]/.test(s)) {
262
262
  const t = `Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;
@@ -266,7 +266,7 @@ function Jt(s) {
266
266
  }
267
267
  function Yt(s) {
268
268
  const e = /* @__PURE__ */ new Set();
269
- return G(s, {
269
+ return Q(s, {
270
270
  Value(t, n) {
271
271
  n.anchor && e.add(n.anchor);
272
272
  }
@@ -335,7 +335,7 @@ function P(s, e, t) {
335
335
  if (Array.isArray(s))
336
336
  return s.map((n, i) => P(n, String(i), t));
337
337
  if (s && typeof s.toJSON == "function") {
338
- if (!t || !Bs(s))
338
+ if (!t || !vs(s))
339
339
  return s.toJSON(e, t);
340
340
  const n = { aliasCount: 0, count: 1, res: void 0 };
341
341
  t.anchors.set(s, n), t.onCreate = (r) => {
@@ -373,7 +373,7 @@ class pt {
373
373
  return typeof r == "function" ? oe(r, { "": l }, "", l) : l;
374
374
  }
375
375
  }
376
- class Ue extends pt {
376
+ class Re extends pt {
377
377
  constructor(e) {
378
378
  super(dt), this.source = e, Object.defineProperty(this, "tag", {
379
379
  set() {
@@ -387,10 +387,10 @@ class Ue extends pt {
387
387
  */
388
388
  resolve(e) {
389
389
  let t;
390
- return G(e, {
390
+ return Q(e, {
391
391
  Node: (n, i) => {
392
392
  if (i === this)
393
- return G.BREAK;
393
+ return Q.BREAK;
394
394
  i.anchor === this.source && (t = i);
395
395
  }
396
396
  }), t;
@@ -408,7 +408,7 @@ class Ue extends pt {
408
408
  const a = "This should not happen: Alias anchor was not resolved?";
409
409
  throw new ReferenceError(a);
410
410
  }
411
- if (r >= 0 && (l.count += 1, l.aliasCount === 0 && (l.aliasCount = Be(i, o, n)), l.count * l.aliasCount > r)) {
411
+ if (r >= 0 && (l.count += 1, l.aliasCount === 0 && (l.aliasCount = ve(i, o, n)), l.count * l.aliasCount > r)) {
412
412
  const a = "Excessive alias count indicates a resource exhaustion attack";
413
413
  throw new ReferenceError(a);
414
414
  }
@@ -427,27 +427,27 @@ class Ue extends pt {
427
427
  return i;
428
428
  }
429
429
  }
430
- function Be(s, e, t) {
430
+ function ve(s, e, t) {
431
431
  if (x(e)) {
432
432
  const n = e.resolve(s), i = t && n && t.get(n);
433
433
  return i ? i.count * i.aliasCount : 0;
434
434
  } else if (L(e)) {
435
435
  let n = 0;
436
436
  for (const i of e.items) {
437
- const r = Be(s, i, t);
437
+ const r = ve(s, i, t);
438
438
  r > n && (n = r);
439
439
  }
440
440
  return n;
441
- } else if (I(e)) {
442
- const n = Be(s, e.key, t), i = Be(s, e.value, t);
441
+ } else if (T(e)) {
442
+ const n = ve(s, e.key, t), i = ve(s, e.value, t);
443
443
  return Math.max(n, i);
444
444
  }
445
445
  return 1;
446
446
  }
447
447
  const Qt = (s) => !s || typeof s != "function" && typeof s != "object";
448
- class O extends pt {
448
+ class A extends pt {
449
449
  constructor(e) {
450
- super(U), this.value = e;
450
+ super(R), this.value = e;
451
451
  }
452
452
  toJSON(e, t) {
453
453
  return t != null && t.keep ? this.value : P(this.value, e, t);
@@ -456,11 +456,11 @@ class O extends pt {
456
456
  return String(this.value);
457
457
  }
458
458
  }
459
- O.BLOCK_FOLDED = "BLOCK_FOLDED";
460
- O.BLOCK_LITERAL = "BLOCK_LITERAL";
461
- O.PLAIN = "PLAIN";
462
- O.QUOTE_DOUBLE = "QUOTE_DOUBLE";
463
- O.QUOTE_SINGLE = "QUOTE_SINGLE";
459
+ A.BLOCK_FOLDED = "BLOCK_FOLDED";
460
+ A.BLOCK_LITERAL = "BLOCK_LITERAL";
461
+ A.PLAIN = "PLAIN";
462
+ A.QUOTE_DOUBLE = "QUOTE_DOUBLE";
463
+ A.QUOTE_SINGLE = "QUOTE_SINGLE";
464
464
  const Ps = "tag:yaml.org,2002:";
465
465
  function js(s, e, t) {
466
466
  if (e) {
@@ -478,8 +478,8 @@ function ke(s, e, t) {
478
478
  var f, d, h;
479
479
  if (ee(s) && (s = s.contents), $(s))
480
480
  return s;
481
- if (I(s)) {
482
- const y = (d = (f = t.schema[Y]).createNode) == null ? void 0 : d.call(f, t.schema, null, t);
481
+ if (T(s)) {
482
+ const y = (d = (f = t.schema[G]).createNode) == null ? void 0 : d.call(f, t.schema, null, t);
483
483
  return y.items.push(s), y;
484
484
  }
485
485
  (s instanceof String || s instanceof Number || s instanceof Boolean || typeof BigInt < "u" && s instanceof BigInt) && (s = s.valueOf());
@@ -487,20 +487,20 @@ function ke(s, e, t) {
487
487
  let a;
488
488
  if (n && s && typeof s == "object") {
489
489
  if (a = l.get(s), a)
490
- return a.anchor || (a.anchor = i(s)), new Ue(a.anchor);
490
+ return a.anchor || (a.anchor = i(s)), new Re(a.anchor);
491
491
  a = { anchor: null, node: null }, l.set(s, a);
492
492
  }
493
493
  e != null && e.startsWith("!!") && (e = Ps + e.slice(2));
494
494
  let c = js(s, e, o.tags);
495
495
  if (!c) {
496
496
  if (s && typeof s.toJSON == "function" && (s = s.toJSON()), !s || typeof s != "object") {
497
- const y = new O(s);
497
+ const y = new A(s);
498
498
  return a && (a.node = y), y;
499
499
  }
500
- c = s instanceof Map ? o[Y] : Symbol.iterator in Object(s) ? o[he] : o[Y];
500
+ c = s instanceof Map ? o[G] : Symbol.iterator in Object(s) ? o[he] : o[G];
501
501
  }
502
502
  r && (r(c), delete t.onTagObj);
503
- const p = c != null && c.createNode ? c.createNode(t.schema, s, t) : typeof ((h = c == null ? void 0 : c.nodeClass) == null ? void 0 : h.from) == "function" ? c.nodeClass.from(t.schema, s, t) : new O(s);
503
+ const p = c != null && c.createNode ? c.createNode(t.schema, s, t) : typeof ((h = c == null ? void 0 : c.nodeClass) == null ? void 0 : h.from) == "function" ? c.nodeClass.from(t.schema, s, t) : new A(s);
504
504
  return e ? p.tag = e : c.default || (p.tag = c.tag), a && (a.node = p), p;
505
505
  }
506
506
  function Pe(s, e, t) {
@@ -540,7 +540,7 @@ class Wt extends pt {
540
540
  */
541
541
  clone(e) {
542
542
  const t = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
543
- return e && (t.schema = e), t.items = t.items.map((n) => $(n) || I(n) ? n.clone(e) : n), this.range && (t.range = this.range.slice()), t;
543
+ 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;
544
544
  }
545
545
  /**
546
546
  * Adds a value to the collection. For `!!map` and `!!omap` the value must
@@ -584,7 +584,7 @@ class Wt extends pt {
584
584
  }
585
585
  hasAllNullValues(e) {
586
586
  return this.items.every((t) => {
587
- if (!I(t))
587
+ if (!T(t))
588
588
  return !1;
589
589
  const n = t.value;
590
590
  return n == null || e && E(n) && n.value == null && !n.commentBefore && !n.comment && !n.tag;
@@ -620,14 +620,14 @@ class Wt extends pt {
620
620
  }
621
621
  }
622
622
  const Ds = (s) => s.replace(/^(?!$)(?: $)?/gm, "#");
623
- function F(s, e) {
623
+ function U(s, e) {
624
624
  return /^\n+$/.test(s) ? s.substring(1) : e ? s.replace(/^(?! *$)/gm, e) : s;
625
625
  }
626
626
  const H = (s, e, t) => s.endsWith(`
627
- `) ? F(t, e) : t.includes(`
627
+ `) ? U(t, e) : t.includes(`
628
628
  `) ? `
629
- ` + F(t, e) : (s.endsWith(" ") ? "" : " ") + t, Ht = "flow", at = "block", ve = "quoted";
630
- function Fe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentWidth: r = 20, onFold: o, onOverflow: l } = {}) {
629
+ ` + U(t, e) : (s.endsWith(" ") ? "" : " ") + t, Ht = "flow", at = "block", Be = "quoted";
630
+ function Ue(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentWidth: r = 20, onFold: o, onOverflow: l } = {}) {
631
631
  if (!i || i < 0)
632
632
  return s;
633
633
  i < r && (r = 0);
@@ -640,7 +640,7 @@ function Fe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
640
640
  let d, h, y = !1, u = -1, m = -1, b = -1;
641
641
  t === at && (u = $t(s, u, e.length), u !== -1 && (f = u + a));
642
642
  for (let N; N = s[u += 1]; ) {
643
- if (t === ve && N === "\\") {
643
+ if (t === Be && N === "\\") {
644
644
  switch (m = u, s[u + 1]) {
645
645
  case "x":
646
646
  u += 3;
@@ -662,20 +662,20 @@ function Fe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
662
662
  else {
663
663
  if (N === " " && h && h !== " " && h !== `
664
664
  ` && h !== " ") {
665
- const S = s[u + 1];
666
- S && S !== " " && S !== `
667
- ` && S !== " " && (d = u);
665
+ const w = s[u + 1];
666
+ w && w !== " " && w !== `
667
+ ` && w !== " " && (d = u);
668
668
  }
669
669
  if (u >= f)
670
670
  if (d)
671
671
  c.push(d), f = d + a, d = void 0;
672
- else if (t === ve) {
672
+ else if (t === Be) {
673
673
  for (; h === " " || h === " "; )
674
674
  h = N, N = s[u += 1], y = !0;
675
- const S = u > b + 1 ? u - 2 : m - 1;
676
- if (p[S])
675
+ const w = u > b + 1 ? u - 2 : m - 1;
676
+ if (p[w])
677
677
  return s;
678
- c.push(S), p[S] = !0, f = S + a, d = void 0;
678
+ c.push(w), p[w] = !0, f = w + a, d = void 0;
679
679
  } else
680
680
  y = !0;
681
681
  }
@@ -684,14 +684,14 @@ function Fe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
684
684
  if (y && l && l(), c.length === 0)
685
685
  return s;
686
686
  o && o();
687
- let w = s.slice(0, c[0]);
687
+ let S = s.slice(0, c[0]);
688
688
  for (let N = 0; N < c.length; ++N) {
689
- const S = c[N], A = c[N + 1] || s.length;
690
- S === 0 ? w = `
691
- ${e}${s.slice(0, A)}` : (t === ve && p[S] && (w += `${s[S]}\\`), w += `
692
- ${e}${s.slice(S + 1, A)}`);
689
+ const w = c[N], k = c[N + 1] || s.length;
690
+ w === 0 ? S = `
691
+ ${e}${s.slice(0, k)}` : (t === Be && p[w] && (S += `${s[w]}\\`), S += `
692
+ ${e}${s.slice(w + 1, k)}`);
693
693
  }
694
- return w;
694
+ return S;
695
695
  }
696
696
  function $t(s, e, t) {
697
697
  let n = e, i = e + 1, r = s[i];
@@ -787,7 +787,7 @@ function Se(s, e) {
787
787
  default:
788
788
  a += 1;
789
789
  }
790
- return o = l ? o + t.slice(l) : t, n ? o : Fe(o, r, ve, Ve(e, !1));
790
+ return o = l ? o + t.slice(l) : t, n ? o : Ue(o, r, Be, Ve(e, !1));
791
791
  }
792
792
  function ct(s, e) {
793
793
  if (e.options.singleQuote === !1 || e.implicitKey && s.includes(`
@@ -795,7 +795,7 @@ function ct(s, e) {
795
795
  return Se(s, e);
796
796
  const t = e.indent || (Je(s) ? " " : ""), n = "'" + s.replace(/'/g, "''").replace(/\n+/g, `$&
797
797
  ${t}`) + "'";
798
- return e.implicitKey ? n : Fe(n, t, Ht, Ve(e, !1));
798
+ return e.implicitKey ? n : Ue(n, t, Ht, Ve(e, !1));
799
799
  }
800
800
  function le(s, e) {
801
801
  const { singleQuote: t } = e.options;
@@ -821,7 +821,7 @@ function Me({ comment: s, type: e, value: t }, n, i, r) {
821
821
  const { blockQuote: o, commentString: l, lineWidth: a } = n.options;
822
822
  if (!o || /\n[\t ]+$/.test(t) || /^\s*$/.test(t))
823
823
  return le(t, n);
824
- const c = n.indent || (n.forceBlockIndent || Je(t) ? " " : ""), p = o === "literal" ? !0 : o === "folded" || e === O.BLOCK_FOLDED ? !1 : e === O.BLOCK_LITERAL ? !0 : !qs(t, a, c.length);
824
+ const c = n.indent || (n.forceBlockIndent || Je(t) ? " " : ""), p = o === "literal" ? !0 : o === "folded" || e === A.BLOCK_FOLDED ? !1 : e === A.BLOCK_LITERAL ? !0 : !qs(t, a, c.length);
825
825
  if (!t)
826
826
  return p ? `|
827
827
  ` : `>
@@ -849,19 +849,26 @@ function Me({ comment: s, type: e, value: t }, n, i, r) {
849
849
  else
850
850
  break;
851
851
  }
852
- let w = t.substring(0, b < m ? b + 1 : m);
853
- w && (t = t.substring(w.length), w = w.replace(/\n+/g, `$&${c}`));
854
- let S = (p ? "|" : ">") + (u ? c ? "2" : "1" : "") + f;
855
- if (s && (S += " " + l(s.replace(/ ?[\r\n]+/g, " ")), i && i()), p)
856
- return t = t.replace(/\n+/g, `$&${c}`), `${S}
857
- ${c}${w}${t}${h}`;
858
- t = t.replace(/\n+/g, `
852
+ let S = t.substring(0, b < m ? b + 1 : m);
853
+ S && (t = t.substring(S.length), S = S.replace(/\n+/g, `$&${c}`));
854
+ let w = (u ? c ? "2" : "1" : "") + f;
855
+ if (s && (w += " " + l(s.replace(/ ?[\r\n]+/g, " ")), i && i()), !p) {
856
+ const k = t.replace(/\n+/g, `
859
857
  $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${c}`);
860
- const A = Fe(`${w}${t}${h}`, c, at, Ve(n, !0));
861
- return `${S}
862
- ${c}${A}`;
858
+ let O = !1;
859
+ const I = Ve(n, !0);
860
+ o !== "folded" && e !== A.BLOCK_FOLDED && (I.onOverflow = () => {
861
+ O = !0;
862
+ });
863
+ const g = Ue(`${S}${k}${h}`, c, at, I);
864
+ if (!O)
865
+ return `>${w}
866
+ ${c}${g}`;
867
+ }
868
+ return t = t.replace(/\n+/g, `$&${c}`), `|${w}
869
+ ${c}${S}${t}${h}`;
863
870
  }
864
- function Rs(s, e, t, n) {
871
+ function Fs(s, e, t, n) {
865
872
  const { type: i, value: r } = s, { actualString: o, implicitKey: l, indent: a, indentStep: c, inFlow: p } = e;
866
873
  if (l && r.includes(`
867
874
  `) || p && /[[\]{},]/.test(r))
@@ -869,7 +876,7 @@ function Rs(s, e, t, n) {
869
876
  if (!r || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))
870
877
  return l || p || !r.includes(`
871
878
  `) ? le(r, e) : Me(s, e, t, n);
872
- if (!l && !p && i !== O.PLAIN && r.includes(`
879
+ if (!l && !p && i !== A.PLAIN && r.includes(`
873
880
  `))
874
881
  return Me(s, e, t, n);
875
882
  if (Je(r)) {
@@ -888,23 +895,23 @@ ${a}`);
888
895
  if (y.some(d) || h != null && h.some(d))
889
896
  return le(r, e);
890
897
  }
891
- return l ? f : Fe(f, a, Ht, Ve(e, !1));
898
+ return l ? f : Ue(f, a, Ht, Ve(e, !1));
892
899
  }
893
900
  function Ae(s, e, t, n) {
894
901
  const { implicitKey: i, inFlow: r } = e, o = typeof s.value == "string" ? s : Object.assign({}, s, { value: String(s.value) });
895
902
  let { type: l } = s;
896
- l !== O.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value) && (l = O.QUOTE_DOUBLE);
903
+ l !== A.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value) && (l = A.QUOTE_DOUBLE);
897
904
  const a = (p) => {
898
905
  switch (p) {
899
- case O.BLOCK_FOLDED:
900
- case O.BLOCK_LITERAL:
906
+ case A.BLOCK_FOLDED:
907
+ case A.BLOCK_LITERAL:
901
908
  return i || r ? le(o.value, e) : Me(o, e, t, n);
902
- case O.QUOTE_DOUBLE:
909
+ case A.QUOTE_DOUBLE:
903
910
  return Se(o.value, e);
904
- case O.QUOTE_SINGLE:
911
+ case A.QUOTE_SINGLE:
905
912
  return ct(o.value, e);
906
- case O.PLAIN:
907
- return Rs(o, e, t, n);
913
+ case A.PLAIN:
914
+ return Fs(o, e, t, n);
908
915
  default:
909
916
  return null;
910
917
  }
@@ -958,7 +965,7 @@ function Xt(s, e) {
958
965
  options: t
959
966
  };
960
967
  }
961
- function Us(s, e) {
968
+ function Rs(s, e) {
962
969
  var i;
963
970
  if (e.tag) {
964
971
  const r = s.filter((o) => o.tag === e.tag);
@@ -985,7 +992,7 @@ function Us(s, e) {
985
992
  }
986
993
  return t;
987
994
  }
988
- function Fs(s, e, { anchors: t, doc: n }) {
995
+ function Us(s, e, { anchors: t, doc: n }) {
989
996
  if (!n.directives)
990
997
  return "";
991
998
  const i = [], r = (E(s) || L(s)) && s.anchor;
@@ -995,7 +1002,7 @@ function Fs(s, e, { anchors: t, doc: n }) {
995
1002
  }
996
1003
  function fe(s, e, t, n) {
997
1004
  var a;
998
- if (I(s))
1005
+ if (T(s))
999
1006
  return s.toString(e, t, n);
1000
1007
  if (x(s)) {
1001
1008
  if (e.doc.directives)
@@ -1006,8 +1013,8 @@ function fe(s, e, t, n) {
1006
1013
  }
1007
1014
  let i;
1008
1015
  const r = $(s) ? s : e.doc.createNode(s, { onTagObj: (c) => i = c });
1009
- i || (i = Us(e.doc.schema.tags, r));
1010
- const o = Fs(r, i, e);
1016
+ i || (i = Rs(e.doc.schema.tags, r));
1017
+ const o = Us(r, i, e);
1011
1018
  o.length > 0 && (e.indentAtStart = (e.indentAtStart ?? 0) + o.length + 1);
1012
1019
  const l = typeof i.stringify == "function" ? i.stringify(r, e, t, n) : E(r) ? Ae(r, e, t, n) : r.toString(e, t, n);
1013
1020
  return o ? E(r) || l[0] === "{" || l[0] === "[" ? `${o} ${l}` : `${o}
@@ -1020,11 +1027,11 @@ function Vs({ key: s, value: e }, t, n, i) {
1020
1027
  if (d)
1021
1028
  throw new Error("With simple keys, key nodes cannot have comments");
1022
1029
  if (L(s) || !$(s) && typeof s == "object") {
1023
- const T = "With simple keys, collection cannot be used as a key value";
1024
- throw new Error(T);
1030
+ const I = "With simple keys, collection cannot be used as a key value";
1031
+ throw new Error(I);
1025
1032
  }
1026
1033
  }
1027
- let h = !f && (!s || d && e == null && !t.inFlow || L(s) || (E(s) ? s.type === O.BLOCK_FOLDED || s.type === O.BLOCK_LITERAL : typeof s == "object"));
1034
+ let h = !f && (!s || d && e == null && !t.inFlow || L(s) || (E(s) ? s.type === A.BLOCK_FOLDED || s.type === A.BLOCK_LITERAL : typeof s == "object"));
1028
1035
  t = Object.assign({}, t, {
1029
1036
  allNullValues: !1,
1030
1037
  implicitKey: !h && (f || !r),
@@ -1043,52 +1050,52 @@ function Vs({ key: s, value: e }, t, n, i) {
1043
1050
  return m = `? ${m}`, d && !y ? m += H(m, t.indent, c(d)) : u && i && i(), m;
1044
1051
  y && (d = null), h ? (d && (m += H(m, t.indent, c(d))), m = `? ${m}
1045
1052
  ${l}:`) : (m = `${m}:`, d && (m += H(m, t.indent, c(d))));
1046
- let b, w, N;
1047
- $(e) ? (b = !!e.spaceBefore, w = e.commentBefore, N = e.comment) : (b = !1, w = null, N = null, e && typeof e == "object" && (e = o.createNode(e))), t.implicitKey = !1, !h && !d && E(e) && (t.indentAtStart = m.length + 1), u = !1, !p && a.length >= 2 && !t.inFlow && !h && pe(e) && !e.flow && !e.tag && !e.anchor && (t.indent = t.indent.substring(2));
1048
- let S = !1;
1049
- const A = fe(e, t, () => S = !0, () => u = !0);
1050
- let k = " ";
1051
- if (d || b || w) {
1052
- if (k = b ? `
1053
- ` : "", w) {
1054
- const T = c(w);
1055
- k += `
1056
- ${F(T, t.indent)}`;
1053
+ let b, S, N;
1054
+ $(e) ? (b = !!e.spaceBefore, S = e.commentBefore, N = e.comment) : (b = !1, S = null, N = null, e && typeof e == "object" && (e = o.createNode(e))), t.implicitKey = !1, !h && !d && E(e) && (t.indentAtStart = m.length + 1), u = !1, !p && a.length >= 2 && !t.inFlow && !h && pe(e) && !e.flow && !e.tag && !e.anchor && (t.indent = t.indent.substring(2));
1055
+ let w = !1;
1056
+ const k = fe(e, t, () => w = !0, () => u = !0);
1057
+ let O = " ";
1058
+ if (d || b || S) {
1059
+ if (O = b ? `
1060
+ ` : "", S) {
1061
+ const I = c(S);
1062
+ O += `
1063
+ ${U(I, t.indent)}`;
1057
1064
  }
1058
- A === "" && !t.inFlow ? k === `
1059
- ` && (k = `
1065
+ k === "" && !t.inFlow ? O === `
1066
+ ` && (O = `
1060
1067
 
1061
- `) : k += `
1068
+ `) : O += `
1062
1069
  ${t.indent}`;
1063
1070
  } else if (!h && L(e)) {
1064
- const T = A[0], g = A.indexOf(`
1071
+ const I = k[0], g = k.indexOf(`
1065
1072
  `), _ = g !== -1, J = t.inFlow ?? e.flow ?? e.items.length === 0;
1066
1073
  if (_ || !J) {
1067
1074
  let te = !1;
1068
- if (_ && (T === "&" || T === "!")) {
1069
- let C = A.indexOf(" ");
1070
- T === "&" && C !== -1 && C < g && A[C + 1] === "!" && (C = A.indexOf(" ", C + 1)), (C === -1 || g < C) && (te = !0);
1075
+ if (_ && (I === "&" || I === "!")) {
1076
+ let C = k.indexOf(" ");
1077
+ I === "&" && C !== -1 && C < g && k[C + 1] === "!" && (C = k.indexOf(" ", C + 1)), (C === -1 || g < C) && (te = !0);
1071
1078
  }
1072
- te || (k = `
1079
+ te || (O = `
1073
1080
  ${t.indent}`);
1074
1081
  }
1075
- } else (A === "" || A[0] === `
1076
- `) && (k = "");
1077
- return m += k + A, t.inFlow ? S && n && n() : N && !S ? m += H(m, t.indent, c(N)) : u && i && i(), m;
1082
+ } else (k === "" || k[0] === `
1083
+ `) && (O = "");
1084
+ return m += O + k, t.inFlow ? w && n && n() : N && !w ? m += H(m, t.indent, c(N)) : u && i && i(), m;
1078
1085
  }
1079
1086
  function zt(s, e) {
1080
- (s === "debug" || s === "warn") && (typeof process < "u" && process.emitWarning ? process.emitWarning(e) : console.warn(e));
1087
+ (s === "debug" || s === "warn") && console.warn(e);
1081
1088
  }
1082
1089
  const Te = "<<", V = {
1083
1090
  identify: (s) => s === Te || typeof s == "symbol" && s.description === Te,
1084
1091
  default: "key",
1085
1092
  tag: "tag:yaml.org,2002:merge",
1086
1093
  test: /^<<$/,
1087
- resolve: () => Object.assign(new O(Symbol(Te)), {
1094
+ resolve: () => Object.assign(new A(Symbol(Te)), {
1088
1095
  addToJSMap: Zt
1089
1096
  }),
1090
1097
  stringify: () => Te
1091
- }, Js = (s, e) => (V.identify(e) || E(e) && (!e.type || e.type === O.PLAIN) && V.identify(e.value)) && (s == null ? void 0 : s.doc.schema.tags.some((t) => t.tag === V.tag && t.default));
1098
+ }, Js = (s, e) => (V.identify(e) || E(e) && (!e.type || e.type === A.PLAIN) && V.identify(e.value)) && (s == null ? void 0 : s.doc.schema.tags.some((t) => t.tag === V.tag && t.default));
1092
1099
  function Zt(s, e, t) {
1093
1100
  if (t = s && x(t) ? t.resolve(s.doc) : t, pe(t))
1094
1101
  for (const n of t.items)
@@ -1158,15 +1165,15 @@ function Ys(s, e, t) {
1158
1165
  }
1159
1166
  function mt(s, e, t) {
1160
1167
  const n = ke(s, void 0, t), i = ke(e, void 0, t);
1161
- return new B(n, i);
1168
+ return new v(n, i);
1162
1169
  }
1163
- class B {
1170
+ class v {
1164
1171
  constructor(e, t = null) {
1165
1172
  Object.defineProperty(this, j, { value: qt }), this.key = e, this.value = t;
1166
1173
  }
1167
1174
  clone(e) {
1168
1175
  let { key: t, value: n } = this;
1169
- return $(t) && (t = t.clone(e)), $(n) && (n = n.clone(e)), new B(t, n);
1176
+ return $(t) && (t = t.clone(e)), $(n) && (n = n.clone(e)), new v(t, n);
1170
1177
  }
1171
1178
  toJSON(e, t) {
1172
1179
  const n = t != null && t.mapAsMap ? /* @__PURE__ */ new Map() : {};
@@ -1188,9 +1195,9 @@ function Gs({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, ite
1188
1195
  let m = null;
1189
1196
  if ($(u))
1190
1197
  !f && u.spaceBefore && d.push(""), je(t, d, u.commentBefore, f), u.comment && (m = u.comment);
1191
- else if (I(u)) {
1192
- const w = $(u.key) ? u.key : null;
1193
- w && (!f && w.spaceBefore && d.push(""), je(t, d, w.commentBefore, f));
1198
+ else if (T(u)) {
1199
+ const S = $(u.key) ? u.key : null;
1200
+ S && (!f && S.spaceBefore && d.push(""), je(t, d, S.commentBefore, f));
1194
1201
  }
1195
1202
  f = !1;
1196
1203
  let b = fe(u, p, () => m = null, () => f = !0);
@@ -1209,7 +1216,7 @@ ${a}${u}` : `
1209
1216
  }
1210
1217
  }
1211
1218
  return s ? (h += `
1212
- ` + F(c(s), a), l && l()) : f && o && o(), h;
1219
+ ` + U(c(s), a), l && l()) : f && o && o(), h;
1213
1220
  }
1214
1221
  function Qs({ items: s }, e, { flowChars: t, itemIndent: n }) {
1215
1222
  const { indent: i, indentStep: r, flowCollectionPadding: o, options: { commentString: l } } = e;
@@ -1226,11 +1233,11 @@ function Qs({ items: s }, e, { flowChars: t, itemIndent: n }) {
1226
1233
  let m = null;
1227
1234
  if ($(u))
1228
1235
  u.spaceBefore && f.push(""), je(e, f, u.commentBefore, !1), u.comment && (m = u.comment);
1229
- else if (I(u)) {
1230
- const w = $(u.key) ? u.key : null;
1231
- w && (w.spaceBefore && f.push(""), je(e, f, w.commentBefore, !1), w.comment && (c = !0));
1236
+ else if (T(u)) {
1237
+ const S = $(u.key) ? u.key : null;
1238
+ S && (S.spaceBefore && f.push(""), je(e, f, S.commentBefore, !1), S.comment && (c = !0));
1232
1239
  const N = $(u.value) ? u.value : null;
1233
- N ? (N.comment && (m = N.comment), N.commentBefore && (c = !0)) : u.value == null && (w != null && w.comment) && (m = w.comment);
1240
+ N ? (N.comment && (m = N.comment), N.commentBefore && (c = !0)) : u.value == null && (S != null && S.comment) && (m = S.comment);
1234
1241
  }
1235
1242
  m && (c = !0);
1236
1243
  let b = fe(u, a, () => m = null);
@@ -1257,14 +1264,14 @@ ${i}${h}`;
1257
1264
  }
1258
1265
  function je({ indent: s, options: { commentString: e } }, t, n, i) {
1259
1266
  if (n && i && (n = n.replace(/^\n+/, "")), n) {
1260
- const r = F(e(n), s);
1267
+ const r = U(e(n), s);
1261
1268
  t.push(r.trimStart());
1262
1269
  }
1263
1270
  }
1264
1271
  function X(s, e) {
1265
1272
  const t = E(e) ? e.value : e;
1266
1273
  for (const n of s)
1267
- if (I(n) && (n.key === e || n.key === t || E(n.key) && n.key.value === t))
1274
+ if (T(n) && (n.key === e || n.key === t || E(n.key) && n.key.value === t))
1268
1275
  return n;
1269
1276
  }
1270
1277
  class K extends Wt {
@@ -1272,7 +1279,7 @@ class K extends Wt {
1272
1279
  return "tag:yaml.org,2002:map";
1273
1280
  }
1274
1281
  constructor(e) {
1275
- super(Y, e), this.items = [];
1282
+ super(G, e), this.items = [];
1276
1283
  }
1277
1284
  /**
1278
1285
  * A generic collection parsing method that can be extended
@@ -1303,7 +1310,7 @@ class K extends Wt {
1303
1310
  add(e, t) {
1304
1311
  var o;
1305
1312
  let n;
1306
- I(e) ? n = e : !e || typeof e != "object" || !("key" in e) ? n = new B(e, e == null ? void 0 : e.value) : n = new B(e.key, e.value);
1313
+ T(e) ? n = e : !e || typeof e != "object" || !("key" in e) ? n = new v(e, e == null ? void 0 : e.value) : n = new v(e.key, e.value);
1307
1314
  const i = X(this.items, n.key), r = (o = this.schema) == null ? void 0 : o.sortMapEntries;
1308
1315
  if (i) {
1309
1316
  if (!t)
@@ -1327,7 +1334,7 @@ class K extends Wt {
1327
1334
  return !!X(this.items, e);
1328
1335
  }
1329
1336
  set(e, t) {
1330
- this.add(new B(e, t), !0);
1337
+ this.add(new v(e, t), !0);
1331
1338
  }
1332
1339
  /**
1333
1340
  * @param ctx - Conversion context, originally set in Document#toJS()
@@ -1345,7 +1352,7 @@ class K extends Wt {
1345
1352
  if (!e)
1346
1353
  return JSON.stringify(this);
1347
1354
  for (const i of this.items)
1348
- if (!I(i))
1355
+ if (!T(i))
1349
1356
  throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);
1350
1357
  return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), es(this, e, {
1351
1358
  blockItemPrefix: "",
@@ -1366,7 +1373,7 @@ const me = {
1366
1373
  },
1367
1374
  createNode: (s, e, t) => K.from(s, e, t)
1368
1375
  };
1369
- class Q extends Wt {
1376
+ class W extends Wt {
1370
1377
  static get tagName() {
1371
1378
  return "tag:yaml.org,2002:seq";
1372
1379
  }
@@ -1458,12 +1465,12 @@ function Le(s) {
1458
1465
  const ye = {
1459
1466
  collection: "seq",
1460
1467
  default: !0,
1461
- nodeClass: Q,
1468
+ nodeClass: W,
1462
1469
  tag: "tag:yaml.org,2002:seq",
1463
1470
  resolve(s, e) {
1464
1471
  return pe(s) || e("Expected a sequence for this tag"), s;
1465
1472
  },
1466
- createNode: (s, e, t) => Q.from(s, e, t)
1473
+ createNode: (s, e, t) => W.from(s, e, t)
1467
1474
  }, Ye = {
1468
1475
  identify: (s) => typeof s == "string",
1469
1476
  default: !0,
@@ -1474,18 +1481,18 @@ const ye = {
1474
1481
  }
1475
1482
  }, Ge = {
1476
1483
  identify: (s) => s == null,
1477
- createNode: () => new O(null),
1484
+ createNode: () => new A(null),
1478
1485
  default: !0,
1479
1486
  tag: "tag:yaml.org,2002:null",
1480
1487
  test: /^(?:~|[Nn]ull|NULL)?$/,
1481
- resolve: () => new O(null),
1488
+ resolve: () => new A(null),
1482
1489
  stringify: ({ source: s }, e) => typeof s == "string" && Ge.test.test(s) ? s : e.options.nullStr
1483
1490
  }, yt = {
1484
1491
  identify: (s) => typeof s == "boolean",
1485
1492
  default: !0,
1486
1493
  tag: "tag:yaml.org,2002:bool",
1487
1494
  test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
1488
- resolve: (s) => new O(s[0] === "t" || s[0] === "T"),
1495
+ resolve: (s) => new A(s[0] === "t" || s[0] === "T"),
1489
1496
  stringify({ source: s, value: e }, t) {
1490
1497
  if (s && yt.test.test(s)) {
1491
1498
  const n = s[0] === "t" || s[0] === "T";
@@ -1535,7 +1542,7 @@ const ts = {
1535
1542
  tag: "tag:yaml.org,2002:float",
1536
1543
  test: /^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,
1537
1544
  resolve(s) {
1538
- const e = new O(parseFloat(s)), t = s.indexOf(".");
1545
+ const e = new A(parseFloat(s)), t = s.indexOf(".");
1539
1546
  return t !== -1 && s[s.length - 1] === "0" && (e.minFractionDigits = s.length - t - 1), e;
1540
1547
  },
1541
1548
  stringify: q
@@ -1593,7 +1600,7 @@ const $e = ({ value: s }) => JSON.stringify(s), Hs = [
1593
1600
  },
1594
1601
  {
1595
1602
  identify: (s) => s == null,
1596
- createNode: () => new O(null),
1603
+ createNode: () => new A(null),
1597
1604
  default: !0,
1598
1605
  tag: "tag:yaml.org,2002:null",
1599
1606
  test: /^null$/,
@@ -1604,7 +1611,7 @@ const $e = ({ value: s }) => JSON.stringify(s), Hs = [
1604
1611
  identify: (s) => typeof s == "boolean",
1605
1612
  default: !0,
1606
1613
  tag: "tag:yaml.org,2002:bool",
1607
- test: /^true|false$/,
1614
+ test: /^true$|^false$/,
1608
1615
  resolve: (s) => s === "true",
1609
1616
  stringify: $e
1610
1617
  },
@@ -1645,8 +1652,6 @@ const $e = ({ value: s }) => JSON.stringify(s), Hs = [
1645
1652
  * document.querySelector('#photo').src = URL.createObjectURL(blob)
1646
1653
  */
1647
1654
  resolve(s, e) {
1648
- if (typeof Buffer == "function")
1649
- return Buffer.from(s, "base64");
1650
1655
  if (typeof atob == "function") {
1651
1656
  const t = atob(s.replace(/[\n\r]/g, "")), n = new Uint8Array(t.length);
1652
1657
  for (let i = 0; i < t.length; ++i)
@@ -1656,22 +1661,22 @@ const $e = ({ value: s }) => JSON.stringify(s), Hs = [
1656
1661
  return e("This environment does not support reading binary tags; either Buffer or atob is required"), s;
1657
1662
  },
1658
1663
  stringify({ comment: s, type: e, value: t }, n, i, r) {
1664
+ if (!t)
1665
+ return "";
1659
1666
  const o = t;
1660
1667
  let l;
1661
- if (typeof Buffer == "function")
1662
- l = o instanceof Buffer ? o.toString("base64") : Buffer.from(o.buffer).toString("base64");
1663
- else if (typeof btoa == "function") {
1668
+ if (typeof btoa == "function") {
1664
1669
  let a = "";
1665
1670
  for (let c = 0; c < o.length; ++c)
1666
1671
  a += String.fromCharCode(o[c]);
1667
1672
  l = btoa(a);
1668
1673
  } else
1669
1674
  throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");
1670
- if (e || (e = O.BLOCK_LITERAL), e !== O.QUOTE_DOUBLE) {
1675
+ if (e || (e = A.BLOCK_LITERAL), e !== A.QUOTE_DOUBLE) {
1671
1676
  const a = Math.max(n.options.lineWidth - n.indent.length, n.options.minContentWidth), c = Math.ceil(l.length / a), p = new Array(c);
1672
1677
  for (let f = 0, d = 0; f < c; ++f, d += a)
1673
1678
  p[f] = l.substr(d, a);
1674
- l = p.join(e === O.BLOCK_LITERAL ? `
1679
+ l = p.join(e === A.BLOCK_LITERAL ? `
1675
1680
  ` : " ");
1676
1681
  }
1677
1682
  return Ae({ comment: s, type: e, value: l }, n, i, r);
@@ -1681,10 +1686,10 @@ function as(s, e) {
1681
1686
  if (pe(s))
1682
1687
  for (let t = 0; t < s.items.length; ++t) {
1683
1688
  let n = s.items[t];
1684
- if (!I(n)) {
1689
+ if (!T(n)) {
1685
1690
  if (de(n)) {
1686
1691
  n.items.length > 1 && e("Each pair must have its own sequence indicator");
1687
- const i = n.items[0] || new B(new O(null));
1692
+ const i = n.items[0] || new v(new A(null));
1688
1693
  if (n.commentBefore && (i.key.commentBefore = i.key.commentBefore ? `${n.commentBefore}
1689
1694
  ${i.key.commentBefore}` : n.commentBefore), n.comment) {
1690
1695
  const r = i.value ?? i.key;
@@ -1693,7 +1698,7 @@ ${r.comment}` : n.comment;
1693
1698
  }
1694
1699
  n = i;
1695
1700
  }
1696
- s.items[t] = I(n) ? n : new B(n);
1701
+ s.items[t] = T(n) ? n : new v(n);
1697
1702
  }
1698
1703
  }
1699
1704
  else
@@ -1701,7 +1706,7 @@ ${r.comment}` : n.comment;
1701
1706
  return s;
1702
1707
  }
1703
1708
  function cs(s, e, t) {
1704
- const { replacer: n } = t, i = new Q(s);
1709
+ const { replacer: n } = t, i = new W(s);
1705
1710
  i.tag = "tag:yaml.org,2002:pairs";
1706
1711
  let r = 0;
1707
1712
  if (e && Symbol.iterator in Object(e))
@@ -1732,7 +1737,7 @@ const wt = {
1732
1737
  resolve: as,
1733
1738
  createNode: cs
1734
1739
  };
1735
- class ae extends Q {
1740
+ class ae extends W {
1736
1741
  constructor() {
1737
1742
  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;
1738
1743
  }
@@ -1747,7 +1752,7 @@ class ae extends Q {
1747
1752
  t != null && t.onCreate && t.onCreate(n);
1748
1753
  for (const i of this.items) {
1749
1754
  let r, o;
1750
- if (I(i) ? (r = P(i.key, "", t), o = P(i.value, r, t)) : r = P(i, "", t), n.has(r))
1755
+ if (T(i) ? (r = P(i.key, "", t), o = P(i.value, r, t)) : r = P(i, "", t), n.has(r))
1751
1756
  throw new Error("Ordered maps must not include duplicate keys");
1752
1757
  n.set(r, o);
1753
1758
  }
@@ -1781,14 +1786,14 @@ const us = {
1781
1786
  default: !0,
1782
1787
  tag: "tag:yaml.org,2002:bool",
1783
1788
  test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
1784
- resolve: () => new O(!0),
1789
+ resolve: () => new A(!0),
1785
1790
  stringify: fs
1786
1791
  }, hs = {
1787
1792
  identify: (s) => s === !1,
1788
1793
  default: !0,
1789
1794
  tag: "tag:yaml.org,2002:bool",
1790
1795
  test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
1791
- resolve: () => new O(!1),
1796
+ resolve: () => new A(!1),
1792
1797
  stringify: fs
1793
1798
  }, Zs = {
1794
1799
  identify: (s) => typeof s == "number",
@@ -1814,7 +1819,7 @@ const us = {
1814
1819
  tag: "tag:yaml.org,2002:float",
1815
1820
  test: /^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,
1816
1821
  resolve(s) {
1817
- const e = new O(parseFloat(s.replace(/_/g, ""))), t = s.indexOf(".");
1822
+ const e = new A(parseFloat(s.replace(/_/g, ""))), t = s.indexOf(".");
1818
1823
  if (t !== -1) {
1819
1824
  const n = s.substring(t + 1).replace(/_/g, "");
1820
1825
  n[n.length - 1] === "0" && (e.minFractionDigits = n.length);
@@ -1889,7 +1894,7 @@ class ce extends K {
1889
1894
  }
1890
1895
  add(e) {
1891
1896
  let t;
1892
- I(e) ? t = e : e && typeof e == "object" && "key" in e && "value" in e && e.value === null ? t = new B(e.key, null) : t = new B(e, null), X(this.items, t.key) || this.items.push(t);
1897
+ 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);
1893
1898
  }
1894
1899
  /**
1895
1900
  * If `keepPair` is `true`, returns the Pair matching `key`.
@@ -1897,13 +1902,13 @@ class ce extends K {
1897
1902
  */
1898
1903
  get(e, t) {
1899
1904
  const n = X(this.items, e);
1900
- return !t && I(n) ? E(n.key) ? n.key.value : n.key : n;
1905
+ return !t && T(n) ? E(n.key) ? n.key.value : n.key : n;
1901
1906
  }
1902
1907
  set(e, t) {
1903
1908
  if (typeof t != "boolean")
1904
1909
  throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);
1905
1910
  const n = X(this.items, e);
1906
- n && !t ? this.items.splice(this.items.indexOf(n), 1) : !n && t && this.items.push(new B(e));
1911
+ n && !t ? this.items.splice(this.items.indexOf(n), 1) : !n && t && this.items.push(new v(e));
1907
1912
  }
1908
1913
  toJSON(e, t) {
1909
1914
  return super.toJSON(e, t, Set);
@@ -1993,7 +1998,7 @@ const ps = {
1993
1998
  }
1994
1999
  return new Date(c);
1995
2000
  },
1996
- stringify: ({ value: s }) => s.toISOString().replace(/((T00:00)?:00)?\.000Z$/, "")
2001
+ stringify: ({ value: s }) => (s == null ? void 0 : s.toISOString().replace(/(T00:00:00)?\.000Z$/, "")) ?? ""
1997
2002
  }, Ct = [
1998
2003
  me,
1999
2004
  ye,
@@ -2016,13 +2021,13 @@ const ps = {
2016
2021
  ps,
2017
2022
  ms,
2018
2023
  He
2019
- ], Bt = /* @__PURE__ */ new Map([
2024
+ ], vt = /* @__PURE__ */ new Map([
2020
2025
  ["core", Ws],
2021
2026
  ["failsafe", [me, ye, Ye]],
2022
2027
  ["json", zs],
2023
2028
  ["yaml11", Ct],
2024
2029
  ["yaml-1.1", Ct]
2025
- ]), vt = {
2030
+ ]), Bt = {
2026
2031
  binary: bt,
2027
2032
  bool: yt,
2028
2033
  float: ns,
@@ -2050,7 +2055,7 @@ const ps = {
2050
2055
  "tag:yaml.org,2002:timestamp": He
2051
2056
  };
2052
2057
  function tt(s, e, t) {
2053
- const n = Bt.get(e);
2058
+ const n = vt.get(e);
2054
2059
  if (n && !s)
2055
2060
  return t && !n.includes(V) ? n.concat(V) : n.slice();
2056
2061
  let i = n;
@@ -2058,7 +2063,7 @@ function tt(s, e, t) {
2058
2063
  if (Array.isArray(s))
2059
2064
  i = [];
2060
2065
  else {
2061
- const r = Array.from(Bt.keys()).filter((o) => o !== "yaml11").map((o) => JSON.stringify(o)).join(", ");
2066
+ const r = Array.from(vt.keys()).filter((o) => o !== "yaml11").map((o) => JSON.stringify(o)).join(", ");
2062
2067
  throw new Error(`Unknown schema "${e}"; use one of ${r} or define customTags array`);
2063
2068
  }
2064
2069
  if (Array.isArray(s))
@@ -2066,9 +2071,9 @@ function tt(s, e, t) {
2066
2071
  i = i.concat(r);
2067
2072
  else typeof s == "function" && (i = s(i.slice()));
2068
2073
  return t && (i = i.concat(V)), i.reduce((r, o) => {
2069
- const l = typeof o == "string" ? vt[o] : o;
2074
+ const l = typeof o == "string" ? Bt[o] : o;
2070
2075
  if (!l) {
2071
- const a = JSON.stringify(o), c = Object.keys(vt).map((p) => JSON.stringify(p)).join(", ");
2076
+ const a = JSON.stringify(o), c = Object.keys(Bt).map((p) => JSON.stringify(p)).join(", ");
2072
2077
  throw new Error(`Unknown custom tag ${a}; use one of ${c}`);
2073
2078
  }
2074
2079
  return r.includes(l) || r.push(l), r;
@@ -2077,7 +2082,7 @@ function tt(s, e, t) {
2077
2082
  const ln = (s, e) => s.key < e.key ? -1 : s.key > e.key ? 1 : 0;
2078
2083
  class Xe {
2079
2084
  constructor({ compat: e, customTags: t, merge: n, resolveKnownTags: i, schema: r, sortMapEntries: o, toStringDefaults: l }) {
2080
- 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, Y, { value: me }), Object.defineProperty(this, U, { value: Ye }), Object.defineProperty(this, he, { value: ye }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? ln : null;
2085
+ 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;
2081
2086
  }
2082
2087
  clone() {
2083
2088
  const e = Object.create(Xe.prototype, Object.getOwnPropertyDescriptors(this));
@@ -2097,14 +2102,14 @@ function an(s, e) {
2097
2102
  if (s.commentBefore) {
2098
2103
  t.length !== 1 && t.unshift("");
2099
2104
  const c = r(s.commentBefore);
2100
- t.unshift(F(c, ""));
2105
+ t.unshift(U(c, ""));
2101
2106
  }
2102
2107
  let o = !1, l = null;
2103
2108
  if (s.contents) {
2104
2109
  if ($(s.contents)) {
2105
2110
  if (s.contents.spaceBefore && n && t.push(""), s.contents.commentBefore) {
2106
2111
  const f = r(s.contents.commentBefore);
2107
- t.push(F(f, ""));
2112
+ t.push(U(f, ""));
2108
2113
  }
2109
2114
  i.forceBlockIndent = !!s.comment, l = s.contents.comment;
2110
2115
  }
@@ -2117,12 +2122,12 @@ function an(s, e) {
2117
2122
  if (s.comment) {
2118
2123
  const c = r(s.comment);
2119
2124
  c.includes(`
2120
- `) ? (t.push("..."), t.push(F(c, ""))) : t.push(`... ${c}`);
2125
+ `) ? (t.push("..."), t.push(U(c, ""))) : t.push(`... ${c}`);
2121
2126
  } else
2122
2127
  t.push("...");
2123
2128
  else {
2124
2129
  let c = s.comment;
2125
- c && o && (c = c.replace(/^\n+/, "")), c && ((!o || l) && t[t.length - 1] !== "" && t.push(""), t.push(F(r(c), "")));
2130
+ c && o && (c = c.replace(/^\n+/, "")), c && ((!o || l) && t[t.length - 1] !== "" && t.push(""), t.push(U(r(c), "")));
2126
2131
  }
2127
2132
  return t.join(`
2128
2133
  `) + `
@@ -2145,7 +2150,7 @@ class ge {
2145
2150
  }, n);
2146
2151
  this.options = r;
2147
2152
  let { version: o } = r;
2148
- n != null && n._directives ? (this.directives = n._directives.atDocument(), this.directives.yaml.explicit && (o = this.directives.yaml.version)) : this.directives = new v({ version: o }), this.setSchema(o, n), this.contents = e === void 0 ? null : this.createNode(e, i, n);
2153
+ n != null && 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);
2149
2154
  }
2150
2155
  /**
2151
2156
  * Create a deep copy of this Document and its contents.
@@ -2181,14 +2186,14 @@ class ge {
2181
2186
  e.anchor = // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
2182
2187
  !t || n.has(t) ? Gt(t || "a", n) : t;
2183
2188
  }
2184
- return new Ue(e.anchor);
2189
+ return new Re(e.anchor);
2185
2190
  }
2186
2191
  createNode(e, t, n) {
2187
2192
  let i;
2188
2193
  if (typeof t == "function")
2189
2194
  e = t.call({ "": e }, "", e), i = t;
2190
2195
  else if (Array.isArray(t)) {
2191
- const m = (w) => typeof w == "number" || w instanceof String || w instanceof Number, b = t.filter(m).map(String);
2196
+ const m = (S) => typeof S == "number" || S instanceof String || S instanceof Number, b = t.filter(m).map(String);
2192
2197
  b.length > 0 && (t = t.concat(b)), i = t;
2193
2198
  } else n === void 0 && t && (n = t, t = void 0);
2194
2199
  const { aliasDuplicateObjects: r, anchorPrefix: o, flow: l, keepUndefined: a, onTagObj: c, tag: p } = n ?? {}, { onAnchor: f, setAnchors: d, sourceObjects: h } = Ks(
@@ -2212,7 +2217,7 @@ class ge {
2212
2217
  */
2213
2218
  createPair(e, t, n = {}) {
2214
2219
  const i = this.createNode(e, null, n), r = this.createNode(t, null, n);
2215
- return new B(i, r);
2220
+ return new v(i, r);
2216
2221
  }
2217
2222
  /**
2218
2223
  * Removes a value from the document.
@@ -2282,11 +2287,11 @@ class ge {
2282
2287
  let n;
2283
2288
  switch (e) {
2284
2289
  case "1.1":
2285
- this.directives ? this.directives.yaml.version = "1.1" : this.directives = new v({ version: "1.1" }), n = { resolveKnownTags: !1, schema: "yaml-1.1" };
2290
+ this.directives ? this.directives.yaml.version = "1.1" : this.directives = new B({ version: "1.1" }), n = { resolveKnownTags: !1, schema: "yaml-1.1" };
2286
2291
  break;
2287
2292
  case "1.2":
2288
2293
  case "next":
2289
- this.directives ? this.directives.yaml.version = e : this.directives = new v({ version: e }), n = { resolveKnownTags: !0, schema: "core" };
2294
+ this.directives ? this.directives.yaml.version = e : this.directives = new B({ version: e }), n = { resolveKnownTags: !0, schema: "core" };
2290
2295
  break;
2291
2296
  case null:
2292
2297
  this.directives && delete this.directives, n = null;
@@ -2387,7 +2392,7 @@ ${c}
2387
2392
  }
2388
2393
  };
2389
2394
  function ue(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIndent: o, startOnNewline: l }) {
2390
- let a = !1, c = l, p = l, f = "", d = "", h = !1, y = !1, u = null, m = null, b = null, w = null, N = null, S = null, A = null;
2395
+ let a = !1, c = l, p = l, f = "", d = "", h = !1, y = !1, u = null, m = null, b = null, S = null, N = null, w = null, k = null;
2391
2396
  for (const g of s)
2392
2397
  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), u && (c && g.type !== "comment" && g.type !== "newline" && r(u, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), u = null), g.type) {
2393
2398
  case "space":
@@ -2400,38 +2405,39 @@ function ue(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIn
2400
2405
  break;
2401
2406
  }
2402
2407
  case "newline":
2403
- c ? f ? f += g.source : a = !0 : d += g.source, c = !0, h = !0, (m || b) && (w = g), p = !0;
2408
+ c ? f ? f += g.source : (!w || t !== "seq-item-ind") && (a = !0) : d += g.source, c = !0, h = !0, (m || b) && (S = g), p = !0;
2404
2409
  break;
2405
2410
  case "anchor":
2406
- m && 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), m = g, A === null && (A = g.offset), c = !1, p = !1, y = !0;
2411
+ m && 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), m = g, k === null && (k = g.offset), c = !1, p = !1, y = !0;
2407
2412
  break;
2408
2413
  case "tag": {
2409
- b && r(g, "MULTIPLE_TAGS", "A node can have at most one tag"), b = g, A === null && (A = g.offset), c = !1, p = !1, y = !0;
2414
+ b && r(g, "MULTIPLE_TAGS", "A node can have at most one tag"), b = g, k === null && (k = g.offset), c = !1, p = !1, y = !0;
2410
2415
  break;
2411
2416
  }
2412
2417
  case t:
2413
- (m || b) && r(g, "BAD_PROP_ORDER", `Anchors and tags must be after the ${g.source} indicator`), S && r(g, "UNEXPECTED_TOKEN", `Unexpected ${g.source} in ${e ?? "collection"}`), S = g, c = t === "seq-item-ind" || t === "explicit-key-ind", p = !1;
2418
+ (m || b) && r(g, "BAD_PROP_ORDER", `Anchors and tags must be after the ${g.source} indicator`), w && r(g, "UNEXPECTED_TOKEN", `Unexpected ${g.source} in ${e ?? "collection"}`), w = g, c = t === "seq-item-ind" || t === "explicit-key-ind", p = !1;
2414
2419
  break;
2415
2420
  case "comma":
2416
2421
  if (e) {
2417
2422
  N && r(g, "UNEXPECTED_TOKEN", `Unexpected , in ${e}`), N = g, c = !1, p = !1;
2418
2423
  break;
2419
2424
  }
2425
+ // else fallthrough
2420
2426
  default:
2421
2427
  r(g, "UNEXPECTED_TOKEN", `Unexpected ${g.type} token`), c = !1, p = !1;
2422
2428
  }
2423
- const k = s[s.length - 1], T = k ? k.offset + k.source.length : i;
2429
+ const O = s[s.length - 1], I = O ? O.offset + O.source.length : i;
2424
2430
  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"), u && (c && u.indent <= o || (n == null ? void 0 : n.type) === "block-map" || (n == null ? void 0 : n.type) === "block-seq") && r(u, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), {
2425
2431
  comma: N,
2426
- found: S,
2432
+ found: w,
2427
2433
  spaceBefore: a,
2428
2434
  comment: f,
2429
2435
  hasNewline: h,
2430
2436
  anchor: m,
2431
2437
  tag: b,
2432
- newlineAfterProp: w,
2433
- end: T,
2434
- start: A ?? T
2438
+ newlineAfterProp: S,
2439
+ end: I,
2440
+ start: k ?? I
2435
2441
  };
2436
2442
  }
2437
2443
  function Ne(s) {
@@ -2506,9 +2512,9 @@ function cn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2506
2512
  (m.newlineAfterProp || Ne(h)) && i(h ?? d[d.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
2507
2513
  } else ((p = m.found) == null ? void 0 : p.indent) !== n.indent && i(a, "BAD_INDENT", Mt);
2508
2514
  t.atKey = !0;
2509
- const w = m.end, N = h ? s(t, h, m, i) : e(t, w, d, null, m, i);
2510
- t.schema.compat && ut(n.indent, h, i), t.atKey = !1, gs(t, l.items, N) && i(w, "DUPLICATE_KEY", "Map keys must be unique");
2511
- const S = ue(y ?? [], {
2515
+ const S = m.end, N = h ? s(t, h, m, i) : e(t, S, d, null, m, i);
2516
+ t.schema.compat && ut(n.indent, h, i), t.atKey = !1, gs(t, l.items, N) && i(S, "DUPLICATE_KEY", "Map keys must be unique");
2517
+ const w = ue(y ?? [], {
2512
2518
  indicator: "map-value-ind",
2513
2519
  next: u,
2514
2520
  offset: N.range[2],
@@ -2516,23 +2522,23 @@ function cn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2516
2522
  parentIndent: n.indent,
2517
2523
  startOnNewline: !h || h.type === "block-scalar"
2518
2524
  });
2519
- if (a = S.end, S.found) {
2520
- b && ((u == null ? void 0 : u.type) === "block-map" && !S.hasNewline && i(a, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), t.options.strict && m.start < S.found.offset - 1024 && i(N.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
2521
- const A = u ? s(t, u, S, i) : e(t, a, y, null, S, i);
2522
- t.schema.compat && ut(n.indent, u, i), a = A.range[2];
2523
- const k = new B(N, A);
2524
- t.options.keepSourceTokens && (k.srcToken = f), l.items.push(k);
2525
+ if (a = w.end, w.found) {
2526
+ b && ((u == null ? void 0 : u.type) === "block-map" && !w.hasNewline && i(a, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), t.options.strict && m.start < w.found.offset - 1024 && i(N.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
2527
+ const k = u ? s(t, u, w, i) : e(t, a, y, null, w, i);
2528
+ t.schema.compat && ut(n.indent, u, i), a = k.range[2];
2529
+ const O = new v(N, k);
2530
+ t.options.keepSourceTokens && (O.srcToken = f), l.items.push(O);
2525
2531
  } else {
2526
- b && i(N.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"), S.comment && (N.comment ? N.comment += `
2527
- ` + S.comment : N.comment = S.comment);
2528
- const A = new B(N);
2529
- t.options.keepSourceTokens && (A.srcToken = f), l.items.push(A);
2532
+ b && i(N.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"), w.comment && (N.comment ? N.comment += `
2533
+ ` + w.comment : N.comment = w.comment);
2534
+ const k = new v(N);
2535
+ t.options.keepSourceTokens && (k.srcToken = f), l.items.push(k);
2530
2536
  }
2531
2537
  }
2532
2538
  return c && c < a && i(c, "IMPOSSIBLE", "Map comment with trailing content"), l.range = [n.offset, a, c ?? a], l;
2533
2539
  }
2534
2540
  function fn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2535
- const o = (r == null ? void 0 : r.nodeClass) ?? Q, l = new o(t.schema);
2541
+ const o = (r == null ? void 0 : r.nodeClass) ?? W, l = new o(t.schema);
2536
2542
  t.atRoot && (t.atRoot = !1), t.atKey && (t.atKey = !1);
2537
2543
  let a = n.offset, c = null;
2538
2544
  for (const { start: p, value: f } of n.items) {
@@ -2585,25 +2591,25 @@ function Ie(s, e, t, n) {
2585
2591
  }
2586
2592
  const st = "Block collections are not allowed within flow collections", nt = (s) => s && (s.type === "block-map" || s.type === "block-seq");
2587
2593
  function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2588
- const o = n.start.source === "{", l = o ? "flow map" : "flow sequence", a = (r == null ? void 0 : r.nodeClass) ?? (o ? K : Q), c = new a(t.schema);
2594
+ const o = n.start.source === "{", l = o ? "flow map" : "flow sequence", a = (r == null ? void 0 : r.nodeClass) ?? (o ? K : W), c = new a(t.schema);
2589
2595
  c.flow = !0;
2590
2596
  const p = t.atRoot;
2591
2597
  p && (t.atRoot = !1), t.atKey && (t.atKey = !1);
2592
2598
  let f = n.offset + n.start.source.length;
2593
2599
  for (let m = 0; m < n.items.length; ++m) {
2594
- const b = n.items[m], { start: w, key: N, sep: S, value: A } = b, k = ue(w, {
2600
+ const b = n.items[m], { start: S, key: N, sep: w, value: k } = b, O = ue(S, {
2595
2601
  flow: l,
2596
2602
  indicator: "explicit-key-ind",
2597
- next: N ?? (S == null ? void 0 : S[0]),
2603
+ next: N ?? (w == null ? void 0 : w[0]),
2598
2604
  offset: f,
2599
2605
  onError: i,
2600
2606
  parentIndent: n.indent,
2601
2607
  startOnNewline: !1
2602
2608
  });
2603
- if (!k.found) {
2604
- if (!k.anchor && !k.tag && !S && !A) {
2605
- m === 0 && k.comma ? i(k.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${l}`) : m < n.items.length - 1 && i(k.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${l}`), k.comment && (c.comment ? c.comment += `
2606
- ` + k.comment : c.comment = k.comment), f = k.end;
2609
+ if (!O.found) {
2610
+ if (!O.anchor && !O.tag && !w && !k) {
2611
+ m === 0 && O.comma ? i(O.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${l}`) : m < n.items.length - 1 && i(O.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${l}`), O.comment && (c.comment ? c.comment += `
2612
+ ` + O.comment : c.comment = O.comment), f = O.end;
2607
2613
  continue;
2608
2614
  }
2609
2615
  !o && t.options.strict && Ne(N) && i(
@@ -2614,46 +2620,46 @@ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2614
2620
  );
2615
2621
  }
2616
2622
  if (m === 0)
2617
- k.comma && i(k.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${l}`);
2618
- else if (k.comma || i(k.start, "MISSING_CHAR", `Missing , between ${l} items`), k.comment) {
2619
- let T = "";
2620
- e: for (const g of w)
2623
+ O.comma && i(O.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${l}`);
2624
+ else if (O.comma || i(O.start, "MISSING_CHAR", `Missing , between ${l} items`), O.comment) {
2625
+ let I = "";
2626
+ e: for (const g of S)
2621
2627
  switch (g.type) {
2622
2628
  case "comma":
2623
2629
  case "space":
2624
2630
  break;
2625
2631
  case "comment":
2626
- T = g.source.substring(1);
2632
+ I = g.source.substring(1);
2627
2633
  break e;
2628
2634
  default:
2629
2635
  break e;
2630
2636
  }
2631
- if (T) {
2637
+ if (I) {
2632
2638
  let g = c.items[c.items.length - 1];
2633
- I(g) && (g = g.value ?? g.key), g.comment ? g.comment += `
2634
- ` + T : g.comment = T, k.comment = k.comment.substring(T.length + 1);
2639
+ T(g) && (g = g.value ?? g.key), g.comment ? g.comment += `
2640
+ ` + I : g.comment = I, O.comment = O.comment.substring(I.length + 1);
2635
2641
  }
2636
2642
  }
2637
- if (!o && !S && !k.found) {
2638
- const T = A ? s(t, A, k, i) : e(t, k.end, S, null, k, i);
2639
- c.items.push(T), f = T.range[2], nt(A) && i(T.range, "BLOCK_IN_FLOW", st);
2643
+ if (!o && !w && !O.found) {
2644
+ const I = k ? s(t, k, O, i) : e(t, O.end, w, null, O, i);
2645
+ c.items.push(I), f = I.range[2], nt(k) && i(I.range, "BLOCK_IN_FLOW", st);
2640
2646
  } else {
2641
2647
  t.atKey = !0;
2642
- const T = k.end, g = N ? s(t, N, k, i) : e(t, T, w, null, k, i);
2648
+ const I = O.end, g = N ? s(t, N, O, i) : e(t, I, S, null, O, i);
2643
2649
  nt(N) && i(g.range, "BLOCK_IN_FLOW", st), t.atKey = !1;
2644
- const _ = ue(S ?? [], {
2650
+ const _ = ue(w ?? [], {
2645
2651
  flow: l,
2646
2652
  indicator: "map-value-ind",
2647
- next: A,
2653
+ next: k,
2648
2654
  offset: g.range[2],
2649
2655
  onError: i,
2650
2656
  parentIndent: n.indent,
2651
2657
  startOnNewline: !1
2652
2658
  });
2653
2659
  if (_.found) {
2654
- if (!o && !k.found && t.options.strict) {
2655
- if (S)
2656
- for (const C of S) {
2660
+ if (!o && !O.found && t.options.strict) {
2661
+ if (w)
2662
+ for (const C of w) {
2657
2663
  if (C === _.found)
2658
2664
  break;
2659
2665
  if (C.type === "newline") {
@@ -2661,16 +2667,16 @@ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2661
2667
  break;
2662
2668
  }
2663
2669
  }
2664
- k.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");
2670
+ O.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");
2665
2671
  }
2666
- } else A && ("source" in A && A.source && A.source[0] === ":" ? i(A, "MISSING_CHAR", `Missing space after : in ${l}`) : i(_.start, "MISSING_CHAR", `Missing , or : between ${l} items`));
2667
- const J = A ? s(t, A, _, i) : _.found ? e(t, _.end, S, null, _, i) : null;
2668
- J ? nt(A) && i(J.range, "BLOCK_IN_FLOW", st) : _.comment && (g.comment ? g.comment += `
2672
+ } else k && ("source" in k && k.source && k.source[0] === ":" ? i(k, "MISSING_CHAR", `Missing space after : in ${l}`) : i(_.start, "MISSING_CHAR", `Missing , or : between ${l} items`));
2673
+ const J = k ? s(t, k, _, i) : _.found ? e(t, _.end, w, null, _, i) : null;
2674
+ J ? nt(k) && i(J.range, "BLOCK_IN_FLOW", st) : _.comment && (g.comment ? g.comment += `
2669
2675
  ` + _.comment : g.comment = _.comment);
2670
- const te = new B(g, J);
2676
+ const te = new v(g, J);
2671
2677
  if (t.options.keepSourceTokens && (te.srcToken = b), o) {
2672
2678
  const C = c;
2673
- gs(t, C.items, g) && i(T, "DUPLICATE_KEY", "Map keys must be unique"), C.items.push(te);
2679
+ gs(t, C.items, g) && i(I, "DUPLICATE_KEY", "Map keys must be unique"), C.items.push(te);
2674
2680
  } else {
2675
2681
  const C = new K(t.schema);
2676
2682
  C.flow = !0, C.items.push(te);
@@ -2708,7 +2714,7 @@ function hn(s, e, t, n, i) {
2708
2714
  u && (!y || y.offset < u.offset) && i(u, "MISSING_CHAR", "Missing newline after block sequence props");
2709
2715
  }
2710
2716
  const l = t.type === "block-map" ? "map" : t.type === "block-seq" ? "seq" : t.start.source === "{" ? "map" : "seq";
2711
- if (!r || !o || o === "!" || o === K.tagName && l === "map" || o === Q.tagName && l === "seq")
2717
+ if (!r || !o || o === "!" || o === K.tagName && l === "map" || o === W.tagName && l === "seq")
2712
2718
  return it(s, e, t, i, o);
2713
2719
  let a = e.schema.tags.find((h) => h.tag === o && h.collection === l);
2714
2720
  if (!a) {
@@ -2716,16 +2722,16 @@ function hn(s, e, t, n, i) {
2716
2722
  if (h && h.collection === l)
2717
2723
  e.schema.tags.push(Object.assign({}, h, { default: !1 })), a = h;
2718
2724
  else
2719
- return h != null && h.collection ? i(r, "BAD_COLLECTION_TYPE", `${h.tag} used for ${l} collection, but expects ${h.collection}`, !0) : i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), it(s, e, t, i, o);
2725
+ return h ? i(r, "BAD_COLLECTION_TYPE", `${h.tag} used for ${l} collection, but expects ${h.collection ?? "scalar"}`, !0) : i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), it(s, e, t, i, o);
2720
2726
  }
2721
- const c = it(s, e, t, i, o, a), p = ((d = a.resolve) == null ? void 0 : d.call(a, c, (h) => i(r, "TAG_RESOLVE_FAILED", h), e.options)) ?? c, f = $(p) ? p : new O(p);
2727
+ const c = it(s, e, t, i, o, a), p = ((d = a.resolve) == null ? void 0 : d.call(a, c, (h) => i(r, "TAG_RESOLVE_FAILED", h), e.options)) ?? c, f = $(p) ? p : new A(p);
2722
2728
  return f.range = c.range, f.tag = o, a != null && a.format && (f.format = a.format), f;
2723
2729
  }
2724
2730
  function bs(s, e, t) {
2725
2731
  const n = e.offset, i = dn(e, s.options.strict, t);
2726
2732
  if (!i)
2727
2733
  return { value: "", type: null, comment: "", range: [n, n, n] };
2728
- const r = i.mode === ">" ? O.BLOCK_FOLDED : O.BLOCK_LITERAL, o = e.source ? pn(e.source) : [];
2734
+ const r = i.mode === ">" ? A.BLOCK_FOLDED : A.BLOCK_LITERAL, o = e.source ? pn(e.source) : [];
2729
2735
  let l = o.length;
2730
2736
  for (let u = o.length - 1; u >= 0; --u) {
2731
2737
  const m = o[u][1];
@@ -2760,12 +2766,12 @@ function bs(s, e, t) {
2760
2766
  for (let u = p; u < l; ++u) {
2761
2767
  let [m, b] = o[u];
2762
2768
  c += m.length + b.length + 1;
2763
- const w = b[b.length - 1] === "\r";
2764
- if (w && (b = b.slice(0, -1)), b && m.length < a) {
2765
- const S = `Block scalar lines must not be less indented than their ${i.indent ? "explicit indentation indicator" : "first line"}`;
2766
- t(c - b.length - (w ? 2 : 1), "BAD_INDENT", S), m = "";
2769
+ const S = b[b.length - 1] === "\r";
2770
+ if (S && (b = b.slice(0, -1)), b && m.length < a) {
2771
+ const w = `Block scalar lines must not be less indented than their ${i.indent ? "explicit indentation indicator" : "first line"}`;
2772
+ t(c - b.length - (S ? 2 : 1), "BAD_INDENT", w), m = "";
2767
2773
  }
2768
- r === O.BLOCK_LITERAL ? (f += d + m.slice(a) + b, d = `
2774
+ r === A.BLOCK_LITERAL ? (f += d + m.slice(a) + b, d = `
2769
2775
  `) : m.length > a || b[0] === " " ? (d === " " ? d = `
2770
2776
  ` : !h && d === `
2771
2777
  ` && (d = `
@@ -2815,6 +2821,7 @@ function dn({ offset: s, props: e }, t, n) {
2815
2821
  switch (h.type) {
2816
2822
  case "space":
2817
2823
  c = !0;
2824
+ // fallthrough
2818
2825
  case "newline":
2819
2826
  f += h.source.length;
2820
2827
  break;
@@ -2824,6 +2831,7 @@ function dn({ offset: s, props: e }, t, n) {
2824
2831
  case "error":
2825
2832
  n(h, "UNEXPECTED_TOKEN", h.message), f += h.source.length;
2826
2833
  break;
2834
+ /* istanbul ignore next should not happen */
2827
2835
  default: {
2828
2836
  const y = `Unexpected token in block scalar header: ${h.type}`;
2829
2837
  n(h, "UNEXPECTED_TOKEN", y);
@@ -2846,14 +2854,15 @@ function ws(s, e, t) {
2846
2854
  const c = (d, h, y) => t(n + d, h, y);
2847
2855
  switch (i) {
2848
2856
  case "scalar":
2849
- l = O.PLAIN, a = mn(r, c);
2857
+ l = A.PLAIN, a = mn(r, c);
2850
2858
  break;
2851
2859
  case "single-quoted-scalar":
2852
- l = O.QUOTE_SINGLE, a = yn(r, c);
2860
+ l = A.QUOTE_SINGLE, a = yn(r, c);
2853
2861
  break;
2854
2862
  case "double-quoted-scalar":
2855
- l = O.QUOTE_DOUBLE, a = gn(r, c);
2863
+ l = A.QUOTE_DOUBLE, a = gn(r, c);
2856
2864
  break;
2865
+ /* istanbul ignore next should not happen */
2857
2866
  default:
2858
2867
  return t(s, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${i}`), {
2859
2868
  value: "",
@@ -2873,6 +2882,7 @@ function ws(s, e, t) {
2873
2882
  function mn(s, e) {
2874
2883
  let t = "";
2875
2884
  switch (s[0]) {
2885
+ /* istanbul ignore next should not happen */
2876
2886
  case " ":
2877
2887
  t = "a tab character";
2878
2888
  break;
@@ -3016,21 +3026,21 @@ function Sn(s, e, t, n) {
3016
3026
  function ks(s, e, t, n) {
3017
3027
  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;
3018
3028
  let c;
3019
- s.options.stringKeys && s.atKey ? c = s.schema[U] : a ? c = kn(s.schema, i, a, t, n) : e.type === "scalar" ? c = Nn(s, i, e, n) : c = s.schema[U];
3029
+ 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];
3020
3030
  let p;
3021
3031
  try {
3022
3032
  const f = c.resolve(i, (d) => n(t ?? e, "TAG_RESOLVE_FAILED", d), s.options);
3023
- p = E(f) ? f : new O(f);
3033
+ p = E(f) ? f : new A(f);
3024
3034
  } catch (f) {
3025
3035
  const d = f instanceof Error ? f.message : String(f);
3026
- n(t ?? e, "TAG_RESOLVE_FAILED", d), p = new O(i);
3036
+ n(t ?? e, "TAG_RESOLVE_FAILED", d), p = new A(i);
3027
3037
  }
3028
3038
  return p.range = l, p.source = i, r && (p.type = r), a && (p.tag = a), c.format && (p.format = c.format), o && (p.comment = o), p;
3029
3039
  }
3030
3040
  function kn(s, e, t, n, i) {
3031
3041
  var l;
3032
3042
  if (t === "!")
3033
- return s[U];
3043
+ return s[R];
3034
3044
  const r = [];
3035
3045
  for (const a of s.tags)
3036
3046
  if (!a.collection && a.tag === t)
@@ -3042,18 +3052,18 @@ function kn(s, e, t, n, i) {
3042
3052
  if ((l = a.test) != null && l.test(e))
3043
3053
  return a;
3044
3054
  const o = s.knownTags[t];
3045
- 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[U]);
3055
+ 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]);
3046
3056
  }
3047
3057
  function Nn({ atKey: s, directives: e, schema: t }, n, i, r) {
3048
3058
  const o = t.tags.find((l) => {
3049
3059
  var a;
3050
3060
  return (l.default === !0 || s && l.default === "key") && ((a = l.test) == null ? void 0 : a.test(n));
3051
- }) || t[U];
3061
+ }) || t[R];
3052
3062
  if (t.compat) {
3053
3063
  const l = t.compat.find((a) => {
3054
3064
  var c;
3055
3065
  return a.default && ((c = a.test) == null ? void 0 : c.test(n));
3056
- }) ?? t[U];
3066
+ }) ?? t[R];
3057
3067
  if (o.tag !== l.tag) {
3058
3068
  const a = e.tagString(o.tag), c = e.tagString(l.tag), p = `Value may be parsed as either ${a} or ${c}`;
3059
3069
  r(i, "TAG_RESOLVE_FAILED", p, !0);
@@ -3116,7 +3126,7 @@ function Et(s, e, t, n, { spaceBefore: i, comment: r, anchor: o, tag: l, end: a
3116
3126
  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;
3117
3127
  }
3118
3128
  function En({ options: s }, { offset: e, source: t, end: n }, i) {
3119
- const r = new Ue(t.substring(1));
3129
+ const r = new Re(t.substring(1));
3120
3130
  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);
3121
3131
  const o = e + t.length, l = Ie(n, o, s.strict, i);
3122
3132
  return r.range = [e, o, l.offset], l.comment && (r.comment = l.comment), r;
@@ -3174,7 +3184,7 @@ class It {
3174
3184
  this.doc = null, this.atDirectives = !1, this.prelude = [], this.errors = [], this.warnings = [], this.onError = (t, n, i, r) => {
3175
3185
  const o = be(t);
3176
3186
  r ? this.warnings.push(new ys(o, n, i)) : this.errors.push(new z(o, n, i));
3177
- }, this.directives = new v({ version: e.version || "1.2" }), this.options = e;
3187
+ }, this.directives = new B({ version: e.version || "1.2" }), this.options = e;
3178
3188
  }
3179
3189
  decorate(e, t) {
3180
3190
  const { comment: n, afterEmptyLine: i } = Kt(this.prelude);
@@ -3187,7 +3197,7 @@ ${n}` : n;
3187
3197
  e.commentBefore = n;
3188
3198
  else if (L(r) && !r.flow && r.items.length > 0) {
3189
3199
  let o = r.items[0];
3190
- I(o) && (o = o.key);
3200
+ T(o) && (o = o.key);
3191
3201
  const l = o.commentBefore;
3192
3202
  o.commentBefore = l ? `${n}
3193
3203
  ${l}` : n;
@@ -3487,12 +3497,12 @@ function Ke({ start: s, key: e, sep: t, value: n }) {
3487
3497
  i += r.source;
3488
3498
  return n && (i += qe(n)), i;
3489
3499
  }
3490
- const ht = Symbol("break visit"), Bn = Symbol("skip children"), As = Symbol("remove item");
3500
+ const ht = Symbol("break visit"), vn = Symbol("skip children"), As = Symbol("remove item");
3491
3501
  function Z(s, e) {
3492
3502
  "type" in s && s.type === "document" && (s = { start: s.start, value: s.value }), Es(Object.freeze([]), s, e);
3493
3503
  }
3494
3504
  Z.BREAK = ht;
3495
- Z.SKIP = Bn;
3505
+ Z.SKIP = vn;
3496
3506
  Z.REMOVE = As;
3497
3507
  Z.itemAtPath = (s, e) => {
3498
3508
  let t = s;
@@ -3533,7 +3543,7 @@ function Es(s, e, t) {
3533
3543
  }
3534
3544
  return typeof n == "function" ? n(e, s) : n;
3535
3545
  }
3536
- const ze = "\uFEFF", Ze = "", xe = "", Oe = "", vn = (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");
3546
+ const ze = "\uFEFF", Ze = "", xe = "", 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");
3537
3547
  function Kn(s) {
3538
3548
  switch (s) {
3539
3549
  case ze:
@@ -3616,7 +3626,7 @@ const Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3616
3626
  FLOW_END: xe,
3617
3627
  SCALAR: Oe,
3618
3628
  createScalarToken: Ln,
3619
- isCollection: vn,
3629
+ isCollection: Bn,
3620
3630
  isScalar: Mn,
3621
3631
  prettyToken: Kn,
3622
3632
  resolveAsScalar: Tn,
@@ -3790,6 +3800,7 @@ class Ts {
3790
3800
  switch (e[t]) {
3791
3801
  case "#":
3792
3802
  yield* this.pushCount(e.length - t);
3803
+ // fallthrough
3793
3804
  case void 0:
3794
3805
  return yield* this.pushNewline(), yield* this.parseLineStart();
3795
3806
  case "{":
@@ -3844,6 +3855,7 @@ class Ts {
3844
3855
  if (this.flowKey || D(o) || o === ",")
3845
3856
  return this.flowKey = !1, yield* this.pushCount(1), yield* this.pushSpaces(!0), "flow";
3846
3857
  }
3858
+ // fallthrough
3847
3859
  default:
3848
3860
  return this.flowKey = !1, yield* this.parsePlainScalar();
3849
3861
  }
@@ -3916,6 +3928,7 @@ class Ts {
3916
3928
  `)
3917
3929
  break;
3918
3930
  }
3931
+ // fallthrough
3919
3932
  default:
3920
3933
  break e;
3921
3934
  }
@@ -4002,7 +4015,9 @@ class Ts {
4002
4015
  case "&":
4003
4016
  return (yield* this.pushUntil(ot)) + (yield* this.pushSpaces(!0)) + (yield* this.pushIndicators());
4004
4017
  case "-":
4018
+ // this is an error
4005
4019
  case "?":
4020
+ // this is an error outside flow collections
4006
4021
  case ":": {
4007
4022
  const e = this.flowLevel > 0, t = this.charAt(1);
4008
4023
  if (D(t) || e && _e.has(t))
@@ -4067,7 +4082,7 @@ class Ls {
4067
4082
  };
4068
4083
  }
4069
4084
  }
4070
- function W(s, e) {
4085
+ function Y(s, e) {
4071
4086
  for (let t = 0; t < s.length; ++t)
4072
4087
  if (s[t].type === e)
4073
4088
  return !0;
@@ -4107,6 +4122,7 @@ function Ce(s) {
4107
4122
  }
4108
4123
  case "block-seq":
4109
4124
  return s.items[s.items.length - 1].start;
4125
+ /* istanbul ignore next should not happen */
4110
4126
  default:
4111
4127
  return [];
4112
4128
  }
@@ -4132,7 +4148,7 @@ function ne(s) {
4132
4148
  function Dt(s) {
4133
4149
  if (s.start.type === "flow-seq-start")
4134
4150
  for (const e of s.items)
4135
- e.sep && !e.value && !W(e.start, "explicit-key-ind") && !W(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);
4151
+ 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);
4136
4152
  }
4137
4153
  class Tt {
4138
4154
  /**
@@ -4283,6 +4299,7 @@ class Tt {
4283
4299
  !i || i.value ? n.items.push({ start: [], key: t, sep: [] }) : i.sep ? i.value = t : Object.assign(i, { key: t, sep: [] });
4284
4300
  return;
4285
4301
  }
4302
+ /* istanbul ignore next should not happen */
4286
4303
  default:
4287
4304
  yield* this.pop(), yield* this.pop(t);
4288
4305
  }
@@ -4377,6 +4394,7 @@ class Tt {
4377
4394
  }
4378
4395
  yield* this.pop();
4379
4396
  break;
4397
+ /* istanbul ignore next should not happen */
4380
4398
  default:
4381
4399
  yield* this.pop(), yield* this.step();
4382
4400
  }
@@ -4449,14 +4467,14 @@ class Tt {
4449
4467
  if (t.sep)
4450
4468
  if (t.value)
4451
4469
  e.items.push({ start: [], key: null, sep: [this.sourceToken] });
4452
- else if (W(t.sep, "map-value-ind"))
4470
+ else if (Y(t.sep, "map-value-ind"))
4453
4471
  this.stack.push({
4454
4472
  type: "block-map",
4455
4473
  offset: this.offset,
4456
4474
  indent: this.indent,
4457
4475
  items: [{ start: o, key: null, sep: [this.sourceToken] }]
4458
4476
  });
4459
- else if ($s(t.key) && !W(t.sep, "newline")) {
4477
+ else if ($s(t.key) && !Y(t.sep, "newline")) {
4460
4478
  const l = ne(t.start), a = t.key, c = t.sep;
4461
4479
  c.push(this.sourceToken), delete t.key, delete t.sep, this.stack.push({
4462
4480
  type: "block-map",
@@ -4465,7 +4483,7 @@ class Tt {
4465
4483
  items: [{ start: l, key: a, sep: c }]
4466
4484
  });
4467
4485
  } else o.length > 0 ? t.sep = t.sep.concat(o, this.sourceToken) : t.sep.push(this.sourceToken);
4468
- else if (W(t.start, "newline"))
4486
+ else if (Y(t.start, "newline"))
4469
4487
  Object.assign(t, { key: null, sep: [this.sourceToken] });
4470
4488
  else {
4471
4489
  const l = ne(t.start);
@@ -4477,7 +4495,7 @@ class Tt {
4477
4495
  });
4478
4496
  }
4479
4497
  else
4480
- t.sep ? t.value || r ? e.items.push({ start: o, key: null, sep: [this.sourceToken] }) : W(t.sep, "map-value-ind") ? this.stack.push({
4498
+ t.sep ? t.value || r ? e.items.push({ start: o, key: null, sep: [this.sourceToken] }) : Y(t.sep, "map-value-ind") ? this.stack.push({
4481
4499
  type: "block-map",
4482
4500
  offset: this.offset,
4483
4501
  indent: this.indent,
@@ -4496,7 +4514,18 @@ class Tt {
4496
4514
  default: {
4497
4515
  const l = this.startBlockValue(e);
4498
4516
  if (l) {
4499
- i && l.type !== "block-seq" && e.items.push({ start: o }), this.stack.push(l);
4517
+ if (l.type === "block-seq") {
4518
+ if (!t.explicitKey && t.sep && !Y(t.sep, "newline")) {
4519
+ yield* this.pop({
4520
+ type: "error",
4521
+ offset: this.offset,
4522
+ message: "Unexpected block-seq-ind on same line with key",
4523
+ source: this.source
4524
+ });
4525
+ return;
4526
+ }
4527
+ } else i && e.items.push({ start: o });
4528
+ this.stack.push(l);
4500
4529
  return;
4501
4530
  }
4502
4531
  }
@@ -4539,7 +4568,7 @@ class Tt {
4539
4568
  case "seq-item-ind":
4540
4569
  if (this.indent !== e.indent)
4541
4570
  break;
4542
- t.value || W(t.start, "seq-item-ind") ? e.items.push({ start: [this.sourceToken] }) : t.start.push(this.sourceToken);
4571
+ t.value || Y(t.start, "seq-item-ind") ? e.items.push({ start: [this.sourceToken] }) : t.start.push(this.sourceToken);
4543
4572
  return;
4544
4573
  }
4545
4574
  if (this.indent > e.indent) {
@@ -4697,6 +4726,7 @@ class Tt {
4697
4726
  break;
4698
4727
  case "newline":
4699
4728
  this.onKeyLine = !1;
4729
+ // fallthrough
4700
4730
  case "space":
4701
4731
  case "comment":
4702
4732
  default:
@@ -4727,7 +4757,7 @@ function Cs(s, e = {}) {
4727
4757
  }
4728
4758
  return n && t && (o.errors.forEach(De(s, t)), o.warnings.forEach(De(s, t))), o;
4729
4759
  }
4730
- function Rn(s, e, t) {
4760
+ function Fn(s, e, t) {
4731
4761
  let n;
4732
4762
  typeof e == "function" ? n = e : t === void 0 && e && typeof e == "object" && (t = e);
4733
4763
  const i = Cs(s, t);
@@ -4740,7 +4770,7 @@ function Rn(s, e, t) {
4740
4770
  }
4741
4771
  return i.toJS(Object.assign({ reviver: n }, t));
4742
4772
  }
4743
- function Un(s, e, t) {
4773
+ function Rn(s, e, t) {
4744
4774
  let n = null;
4745
4775
  if (typeof e == "function" || Array.isArray(e) ? n = e : t === void 0 && e && (t = e), typeof t == "string" && (t = t.length), typeof t == "number") {
4746
4776
  const i = Math.round(t);
@@ -4753,68 +4783,68 @@ function Un(s, e, t) {
4753
4783
  }
4754
4784
  return ee(s) && !n ? s.toString(t) : new ge(s, n, t).toString(t);
4755
4785
  }
4756
- const Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4786
+ const Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4757
4787
  __proto__: null,
4758
- Alias: Ue,
4788
+ Alias: Re,
4759
4789
  CST: Pn,
4760
4790
  Composer: It,
4761
4791
  Document: ge,
4762
4792
  Lexer: Ts,
4763
4793
  LineCounter: Ls,
4764
- Pair: B,
4794
+ Pair: v,
4765
4795
  Parser: Tt,
4766
- Scalar: O,
4796
+ Scalar: A,
4767
4797
  Schema: Xe,
4768
4798
  YAMLError: At,
4769
4799
  YAMLMap: K,
4770
4800
  YAMLParseError: z,
4771
- YAMLSeq: Q,
4801
+ YAMLSeq: W,
4772
4802
  YAMLWarning: ys,
4773
4803
  isAlias: x,
4774
4804
  isCollection: L,
4775
4805
  isDocument: ee,
4776
4806
  isMap: de,
4777
4807
  isNode: $,
4778
- isPair: I,
4808
+ isPair: T,
4779
4809
  isScalar: E,
4780
4810
  isSeq: pe,
4781
- parse: Rn,
4811
+ parse: Fn,
4782
4812
  parseAllDocuments: qn,
4783
4813
  parseDocument: Cs,
4784
- stringify: Un,
4785
- visit: G,
4786
- visitAsync: Re
4814
+ stringify: Rn,
4815
+ visit: Q,
4816
+ visitAsync: Fe
4787
4817
  }, Symbol.toStringTag, { value: "Module" }));
4788
4818
  export {
4789
- Ue as Alias,
4819
+ Re as Alias,
4790
4820
  Pn as CST,
4791
4821
  It as Composer,
4792
4822
  ge as Document,
4793
4823
  Ts as Lexer,
4794
4824
  Ls as LineCounter,
4795
- B as Pair,
4825
+ v as Pair,
4796
4826
  Tt as Parser,
4797
- O as Scalar,
4827
+ A as Scalar,
4798
4828
  Xe as Schema,
4799
4829
  At as YAMLError,
4800
4830
  K as YAMLMap,
4801
4831
  z as YAMLParseError,
4802
- Q as YAMLSeq,
4832
+ W as YAMLSeq,
4803
4833
  ys as YAMLWarning,
4804
- Fn as default,
4834
+ Un as default,
4805
4835
  x as isAlias,
4806
4836
  L as isCollection,
4807
4837
  ee as isDocument,
4808
4838
  de as isMap,
4809
4839
  $ as isNode,
4810
- I as isPair,
4840
+ T as isPair,
4811
4841
  E as isScalar,
4812
4842
  pe as isSeq,
4813
- Rn as parse,
4843
+ Fn as parse,
4814
4844
  qn as parseAllDocuments,
4815
4845
  Cs as parseDocument,
4816
- Un as stringify,
4817
- G as visit,
4818
- Re as visitAsync
4846
+ Rn as stringify,
4847
+ Q as visit,
4848
+ Fe as visitAsync
4819
4849
  };
4820
- //# sourceMappingURL=index-CkwDvuPt.js.map
4850
+ //# sourceMappingURL=index-DcHeSvkE.js.map