zudoku 0.0.0-ff3bc72 → 0.0.0-zuplo-api-keys.534c6f8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1781) hide show
  1. package/README.md +121 -0
  2. package/cli.js +11 -2
  3. package/dist/app/ZuploBuildConfig.d.ts +155 -0
  4. package/dist/app/ZuploBuildConfig.js +29 -0
  5. package/dist/app/ZuploBuildConfig.js.map +1 -0
  6. package/dist/app/demo.js +1 -4
  7. package/dist/app/demo.js.map +1 -1
  8. package/dist/app/entry.client.d.ts +6 -0
  9. package/dist/app/entry.client.js +53 -3
  10. package/dist/app/entry.client.js.map +1 -1
  11. package/dist/app/entry.server.d.ts +9 -6
  12. package/dist/app/entry.server.js +21 -14
  13. package/dist/app/entry.server.js.map +1 -1
  14. package/dist/app/env.d.ts +33 -0
  15. package/dist/app/env.js +29 -0
  16. package/dist/app/env.js.map +1 -0
  17. package/dist/app/main.d.ts +3 -2
  18. package/dist/app/main.js +50 -61
  19. package/dist/app/main.js.map +1 -1
  20. package/dist/app/sentry.d.ts +3 -0
  21. package/dist/app/sentry.js +19 -0
  22. package/dist/app/sentry.js.map +1 -0
  23. package/dist/app/standalone.js +1 -4
  24. package/dist/app/standalone.js.map +1 -1
  25. package/dist/cli/build/handler.d.ts +1 -3
  26. package/dist/cli/build/handler.js +9 -1
  27. package/dist/cli/build/handler.js.map +1 -1
  28. package/dist/cli/cli.js +18 -5
  29. package/dist/cli/cli.js.map +1 -1
  30. package/dist/cli/cmds/build.d.ts +11 -3
  31. package/dist/cli/cmds/build.js +21 -13
  32. package/dist/cli/cmds/build.js.map +1 -1
  33. package/dist/cli/cmds/dev.d.ts +1 -1
  34. package/dist/cli/cmds/dev.js +5 -0
  35. package/dist/cli/cmds/dev.js.map +1 -1
  36. package/dist/cli/cmds/preview.d.ts +16 -0
  37. package/dist/cli/cmds/preview.js +25 -0
  38. package/dist/cli/cmds/preview.js.map +1 -0
  39. package/dist/cli/common/logger.js +9 -0
  40. package/dist/cli/common/logger.js.map +1 -1
  41. package/dist/cli/common/machine-id/lib.js +1 -0
  42. package/dist/cli/common/machine-id/lib.js.map +1 -1
  43. package/dist/cli/common/outdated.js +2 -1
  44. package/dist/cli/common/outdated.js.map +1 -1
  45. package/dist/cli/common/output.js.map +1 -1
  46. package/dist/cli/common/utils/box.js.map +1 -1
  47. package/dist/cli/common/utils/ports.d.ts +1 -1
  48. package/dist/cli/common/utils/ports.js +16 -15
  49. package/dist/cli/common/utils/ports.js.map +1 -1
  50. package/dist/cli/dev/handler.d.ts +1 -0
  51. package/dist/cli/dev/handler.js +16 -13
  52. package/dist/cli/dev/handler.js.map +1 -1
  53. package/dist/cli/preview/handler.d.ts +3 -0
  54. package/dist/cli/preview/handler.js +35 -0
  55. package/dist/cli/preview/handler.js.map +1 -0
  56. package/dist/codegen.d.ts +3 -0
  57. package/dist/codegen.js +45 -0
  58. package/dist/codegen.js.map +1 -0
  59. package/dist/config/config.d.ts +20 -16
  60. package/dist/config/file-exists.d.ts +1 -0
  61. package/dist/config/file-exists.js +5 -0
  62. package/dist/config/file-exists.js.map +1 -0
  63. package/dist/config/loader.d.ts +19 -0
  64. package/dist/config/loader.js +135 -0
  65. package/dist/config/loader.js.map +1 -0
  66. package/dist/config/validators/BuildSchema.d.ts +60 -0
  67. package/dist/config/validators/BuildSchema.js +31 -0
  68. package/dist/config/validators/BuildSchema.js.map +1 -0
  69. package/dist/config/validators/InputSidebarSchema.d.ts +63 -32
  70. package/dist/config/validators/InputSidebarSchema.js +17 -28
  71. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  72. package/dist/config/validators/SidebarSchema.d.ts +24 -1
  73. package/dist/config/validators/SidebarSchema.js +80 -44
  74. package/dist/config/validators/SidebarSchema.js.map +1 -1
  75. package/dist/config/validators/icon-types.d.ts +1 -0
  76. package/dist/config/validators/icon-types.js +2 -0
  77. package/dist/config/validators/icon-types.js.map +1 -0
  78. package/dist/config/validators/validate.d.ts +4690 -332
  79. package/dist/config/validators/validate.js +273 -82
  80. package/dist/config/validators/validate.js.map +1 -1
  81. package/dist/index.d.ts +9 -2
  82. package/dist/index.js +4 -1
  83. package/dist/index.js.map +1 -1
  84. package/dist/lib/MissingIcon.d.ts +2 -0
  85. package/dist/lib/MissingIcon.js +7 -0
  86. package/dist/lib/MissingIcon.js.map +1 -0
  87. package/dist/lib/authentication/AuthenticationPlugin.d.ts +11 -4
  88. package/dist/lib/authentication/AuthenticationPlugin.js +16 -1
  89. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  90. package/dist/lib/authentication/authentication.d.ts +4 -5
  91. package/dist/lib/authentication/components/CallbackHandler.js +25 -31
  92. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  93. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  94. package/dist/lib/authentication/components/SignIn.js +5 -2
  95. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  96. package/dist/lib/authentication/components/SignOut.js +2 -2
  97. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  98. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  99. package/dist/lib/authentication/components/SignUp.js +4 -1
  100. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  101. package/dist/lib/authentication/hook.d.ts +6 -4
  102. package/dist/lib/authentication/hook.js +12 -4
  103. package/dist/lib/authentication/hook.js.map +1 -1
  104. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  105. package/dist/lib/authentication/providers/auth0.js +15 -13
  106. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  107. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  108. package/dist/lib/authentication/providers/clerk.js +116 -47
  109. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  110. package/dist/lib/authentication/providers/openid.d.ts +21 -19
  111. package/dist/lib/authentication/providers/openid.js +62 -69
  112. package/dist/lib/authentication/providers/openid.js.map +1 -1
  113. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  114. package/dist/lib/authentication/providers/supabase.js +115 -0
  115. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  116. package/dist/lib/authentication/state.d.ts +23 -19
  117. package/dist/lib/authentication/state.js +34 -7
  118. package/dist/lib/authentication/state.js.map +1 -1
  119. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  120. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  121. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  122. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  123. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  124. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  125. package/dist/lib/components/AnchorLink.d.ts +2 -2
  126. package/dist/lib/components/AnchorLink.js +9 -5
  127. package/dist/lib/components/AnchorLink.js.map +1 -1
  128. package/dist/lib/components/Autocomplete.d.ts +13 -0
  129. package/dist/lib/components/Autocomplete.js +47 -0
  130. package/dist/lib/components/Autocomplete.js.map +1 -0
  131. package/dist/lib/components/Banner.js +1 -1
  132. package/dist/lib/components/Banner.js.map +1 -1
  133. package/dist/lib/components/Bootstrap.d.ts +5 -3
  134. package/dist/lib/components/Bootstrap.js +13 -6
  135. package/dist/lib/components/Bootstrap.js.map +1 -1
  136. package/dist/lib/components/BuildCheck.d.ts +4 -0
  137. package/dist/lib/components/BuildCheck.js +38 -0
  138. package/dist/lib/components/BuildCheck.js.map +1 -0
  139. package/dist/lib/components/ClientOnly.d.ts +4 -2
  140. package/dist/lib/components/ClientOnly.js +1 -1
  141. package/dist/lib/components/ClientOnly.js.map +1 -1
  142. package/dist/lib/components/DeveloperHint.js +2 -1
  143. package/dist/lib/components/DeveloperHint.js.map +1 -1
  144. package/dist/lib/components/ErrorPage.js +1 -1
  145. package/dist/lib/components/Footer.d.ts +1 -0
  146. package/dist/lib/components/Footer.js +32 -0
  147. package/dist/lib/components/Footer.js.map +1 -0
  148. package/dist/lib/components/Header.js +31 -12
  149. package/dist/lib/components/Header.js.map +1 -1
  150. package/dist/lib/components/Heading.d.ts +5 -5
  151. package/dist/lib/components/Heading.js +1 -1
  152. package/dist/lib/components/Heading.js.map +1 -1
  153. package/dist/lib/components/InlineCode.d.ts +2 -1
  154. package/dist/lib/components/InlineCode.js +2 -9
  155. package/dist/lib/components/InlineCode.js.map +1 -1
  156. package/dist/lib/components/Layout.js +10 -21
  157. package/dist/lib/components/Layout.js.map +1 -1
  158. package/dist/lib/components/Main.d.ts +2 -0
  159. package/dist/lib/components/Main.js +18 -0
  160. package/dist/lib/components/Main.js.map +1 -0
  161. package/dist/lib/components/Markdown.d.ts +4 -2
  162. package/dist/lib/components/Markdown.js +10 -14
  163. package/dist/lib/components/Markdown.js.map +1 -1
  164. package/dist/lib/components/MobileTopNavigation.js +14 -7
  165. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  166. package/dist/lib/components/NotFoundPage.js +2 -2
  167. package/dist/lib/components/NotFoundPage.js.map +1 -1
  168. package/dist/lib/components/Pagination.d.ts +11 -0
  169. package/dist/lib/components/Pagination.js +10 -0
  170. package/dist/lib/components/Pagination.js.map +1 -0
  171. package/dist/lib/components/PathRenderer.d.ts +11 -0
  172. package/dist/lib/components/PathRenderer.js +28 -0
  173. package/dist/lib/components/PathRenderer.js.map +1 -0
  174. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  175. package/dist/lib/components/ReactMarkdown.js +182 -0
  176. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  177. package/dist/lib/components/Search.d.ts +3 -1
  178. package/dist/lib/components/Search.js +9 -3
  179. package/dist/lib/components/Search.js.map +1 -1
  180. package/dist/lib/components/Slot.d.ts +17 -0
  181. package/dist/lib/components/Slot.js +24 -0
  182. package/dist/lib/components/Slot.js.map +1 -0
  183. package/dist/lib/components/Slot.test.js +163 -0
  184. package/dist/lib/components/Slot.test.js.map +1 -0
  185. package/dist/lib/components/StatusPage.d.ts +7 -0
  186. package/dist/lib/components/StatusPage.js +71 -0
  187. package/dist/lib/components/StatusPage.js.map +1 -0
  188. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  189. package/dist/lib/components/ThemeSwitch.js +16 -0
  190. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  191. package/dist/lib/components/TopNavigation.d.ts +3 -0
  192. package/dist/lib/components/TopNavigation.js +53 -8
  193. package/dist/lib/components/TopNavigation.js.map +1 -1
  194. package/dist/lib/components/Zudoku.d.ts +7 -0
  195. package/dist/lib/components/Zudoku.js +58 -0
  196. package/dist/lib/components/Zudoku.js.map +1 -0
  197. package/dist/lib/components/cache.d.ts +13 -0
  198. package/dist/lib/components/cache.js +20 -0
  199. package/dist/lib/components/cache.js.map +1 -0
  200. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  201. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  202. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  203. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  204. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  205. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  206. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  207. package/dist/lib/components/context/SlotProvider.js +83 -0
  208. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  209. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  210. package/dist/lib/components/context/ViewportAnchorContext.js +29 -23
  211. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  212. package/dist/lib/components/context/ZudokuContext.d.ts +10 -14
  213. package/dist/lib/components/context/ZudokuContext.js +40 -27
  214. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  215. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  216. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  217. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  218. package/dist/lib/components/index.d.ts +59 -16
  219. package/dist/lib/components/index.js +27 -6
  220. package/dist/lib/components/index.js.map +1 -1
  221. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  222. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  223. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  224. package/dist/lib/components/navigation/Sidebar.d.ts +5 -1
  225. package/dist/lib/components/navigation/Sidebar.js +4 -8
  226. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  227. package/dist/lib/components/navigation/SidebarBadge.d.ts +6 -3
  228. package/dist/lib/components/navigation/SidebarBadge.js +13 -11
  229. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  230. package/dist/lib/components/navigation/SidebarCategory.d.ts +3 -3
  231. package/dist/lib/components/navigation/SidebarCategory.js +32 -14
  232. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  233. package/dist/lib/components/navigation/SidebarItem.d.ts +3 -4
  234. package/dist/lib/components/navigation/SidebarItem.js +23 -17
  235. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  236. package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
  237. package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
  238. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  239. package/dist/lib/components/navigation/Toc.js +46 -0
  240. package/dist/lib/components/navigation/Toc.js.map +1 -0
  241. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  242. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  243. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  244. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  245. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  246. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  247. package/dist/lib/components/navigation/utils.d.ts +3 -0
  248. package/dist/lib/components/navigation/utils.js +19 -15
  249. package/dist/lib/components/navigation/utils.js.map +1 -1
  250. package/dist/lib/core/RouteGuard.d.ts +2 -0
  251. package/dist/lib/core/RouteGuard.js +52 -0
  252. package/dist/lib/core/RouteGuard.js.map +1 -0
  253. package/dist/lib/core/ZudokuContext.d.ts +112 -0
  254. package/dist/lib/core/ZudokuContext.js +70 -0
  255. package/dist/lib/core/ZudokuContext.js.map +1 -0
  256. package/dist/lib/core/plugins.d.ts +35 -17
  257. package/dist/lib/core/plugins.js +4 -0
  258. package/dist/lib/core/plugins.js.map +1 -1
  259. package/dist/lib/errors/ErrorAlert.d.ts +1 -1
  260. package/dist/lib/errors/ErrorAlert.js +13 -3
  261. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  262. package/dist/lib/errors/RouterError.js +1 -1
  263. package/dist/lib/errors/RouterError.js.map +1 -1
  264. package/dist/lib/hooks/index.d.ts +3 -0
  265. package/dist/lib/hooks/index.js +5 -0
  266. package/dist/lib/hooks/index.js.map +1 -0
  267. package/dist/lib/hooks/useEvent.d.ts +11 -0
  268. package/dist/lib/hooks/useEvent.js +19 -0
  269. package/dist/lib/hooks/useEvent.js.map +1 -0
  270. package/dist/lib/hooks/useEvent.test.js +100 -0
  271. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  272. package/dist/lib/icons.d.ts +1 -0
  273. package/dist/lib/icons.js +1 -0
  274. package/dist/lib/icons.js.map +1 -1
  275. package/dist/lib/oas/graphql/circular.d.ts +3 -0
  276. package/dist/lib/oas/graphql/circular.js +43 -0
  277. package/dist/lib/oas/graphql/circular.js.map +1 -0
  278. package/dist/lib/oas/graphql/index.d.ts +25 -1
  279. package/dist/lib/oas/graphql/index.js +216 -69
  280. package/dist/lib/oas/graphql/index.js.map +1 -1
  281. package/dist/lib/oas/parser/dereference/index.js +8 -3
  282. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  283. package/dist/lib/oas/parser/index.d.ts +8 -3
  284. package/dist/lib/oas/parser/index.js +7 -23
  285. package/dist/lib/oas/parser/index.js.map +1 -1
  286. package/dist/lib/oas/parser/upgrade/index.d.ts +3 -2
  287. package/dist/lib/oas/parser/upgrade/index.js +83 -31
  288. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  289. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
  290. package/dist/lib/plugins/api-catalog/Catalog.js +26 -0
  291. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  292. package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
  293. package/dist/lib/plugins/api-catalog/index.js +46 -0
  294. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  295. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  296. package/dist/lib/plugins/api-keys/CreateApiKey.js +16 -8
  297. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  298. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  299. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  300. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  301. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +55 -24
  302. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  303. package/dist/lib/plugins/api-keys/index.d.ts +23 -13
  304. package/dist/lib/plugins/api-keys/index.js +48 -32
  305. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  306. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +2 -0
  307. package/dist/lib/plugins/custom-pages/CustomPage.js +11 -0
  308. package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -0
  309. package/dist/lib/plugins/custom-pages/index.d.ts +10 -0
  310. package/dist/lib/plugins/custom-pages/index.js +11 -0
  311. package/dist/lib/plugins/custom-pages/index.js.map +1 -0
  312. package/dist/lib/plugins/markdown/MdxPage.d.ts +10 -2
  313. package/dist/lib/plugins/markdown/MdxPage.js +17 -4
  314. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  315. package/dist/lib/plugins/markdown/index.d.ts +8 -7
  316. package/dist/lib/plugins/markdown/index.js +31 -3
  317. package/dist/lib/plugins/markdown/index.js.map +1 -1
  318. package/dist/lib/plugins/markdown/resolver.d.ts +32 -0
  319. package/dist/lib/plugins/markdown/resolver.js +46 -0
  320. package/dist/lib/plugins/markdown/resolver.js.map +1 -0
  321. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
  322. package/dist/lib/plugins/openapi/CollapsibleCode.js +25 -0
  323. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  324. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
  325. package/dist/lib/plugins/openapi/ColorizedParam.js +29 -14
  326. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  327. package/dist/lib/plugins/openapi/Endpoint.js +13 -16
  328. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  329. package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
  330. package/dist/lib/plugins/openapi/OasProvider.js +29 -0
  331. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  332. package/dist/lib/plugins/openapi/OperationList.d.ts +6 -3
  333. package/dist/lib/plugins/openapi/OperationList.js +107 -27
  334. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  335. package/dist/lib/plugins/openapi/OperationListItem.d.ts +5 -3
  336. package/dist/lib/plugins/openapi/OperationListItem.js +12 -6
  337. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  338. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  339. package/dist/lib/plugins/openapi/ParamInfos.js +45 -0
  340. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  341. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
  342. package/dist/lib/plugins/openapi/ParameterList.js +3 -2
  343. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  344. package/dist/lib/plugins/openapi/ParameterListItem.js +19 -1
  345. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  346. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +4 -2
  347. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +12 -3
  348. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  349. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +3 -4
  350. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -9
  351. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  352. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  353. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +4 -6
  354. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  355. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  356. package/dist/lib/plugins/openapi/SchemaList.js +53 -0
  357. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  358. package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
  359. package/dist/lib/plugins/openapi/Sidecar.js +114 -65
  360. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  361. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  362. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  363. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -0
  364. package/dist/lib/plugins/openapi/SidecarExamples.js +76 -0
  365. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
  366. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  367. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  368. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  369. package/dist/lib/plugins/openapi/client/GraphQLClient.js +43 -0
  370. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  371. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  372. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  373. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  374. package/dist/lib/plugins/openapi/client/createServer.d.ts +3 -1
  375. package/dist/lib/plugins/openapi/client/createServer.js +5 -2
  376. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  377. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +14 -0
  378. package/dist/lib/plugins/openapi/client/useCreateQuery.js +20 -0
  379. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  380. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  381. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  382. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  383. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  384. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  385. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  386. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  387. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  388. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  389. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  390. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  391. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  392. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  393. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  394. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  395. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  396. package/dist/lib/plugins/openapi/graphql/gql.d.ts +8 -46
  397. package/dist/lib/plugins/openapi/graphql/gql.js +6 -13
  398. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  399. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +141 -25
  400. package/dist/lib/plugins/openapi/graphql/graphql.js +238 -662
  401. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  402. package/dist/lib/plugins/openapi/index.d.ts +11 -8
  403. package/dist/lib/plugins/openapi/index.js +74 -104
  404. package/dist/lib/plugins/openapi/index.js.map +1 -1
  405. package/dist/lib/plugins/openapi/interfaces.d.ts +57 -3
  406. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  407. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +8 -0
  408. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  409. package/dist/lib/plugins/openapi/playground/Headers.d.ts +4 -4
  410. package/dist/lib/plugins/openapi/playground/Headers.js +84 -5
  411. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  412. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  413. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
  414. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  415. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  416. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +8 -0
  417. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  418. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
  419. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
  420. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
  421. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  422. package/dist/lib/plugins/openapi/playground/PathParams.js +5 -7
  423. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  424. package/dist/lib/plugins/openapi/playground/Playground.d.ts +37 -2
  425. package/dist/lib/plugins/openapi/playground/Playground.js +133 -70
  426. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  427. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +2 -2
  428. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  429. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
  430. package/dist/lib/plugins/openapi/playground/QueryParams.js +24 -18
  431. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  432. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  433. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  434. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  435. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +7 -0
  436. package/dist/lib/plugins/openapi/playground/SubmitButton.js +22 -0
  437. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -0
  438. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  439. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  440. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  441. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +7 -0
  442. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +11 -0
  443. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -0
  444. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +8 -0
  445. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +101 -0
  446. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
  447. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +9 -0
  448. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +17 -0
  449. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
  450. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
  451. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
  452. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
  453. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
  454. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
  455. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
  456. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  457. package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
  458. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  459. package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
  460. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +194 -0
  461. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  462. package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
  463. package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
  464. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  465. package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
  466. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +159 -0
  467. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  468. package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
  469. package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
  470. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  471. package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
  472. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  473. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  474. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
  475. package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
  476. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  477. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  478. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  479. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  480. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  481. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  482. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  483. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  484. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  485. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  486. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  487. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
  488. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  489. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +11 -0
  490. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +45 -0
  491. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
  492. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -2
  493. package/dist/lib/plugins/openapi/schema/SchemaView.js +38 -49
  494. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  495. package/dist/lib/plugins/openapi/schema/utils.d.ts +8 -1
  496. package/dist/lib/plugins/openapi/schema/utils.js +15 -4
  497. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  498. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  499. package/dist/lib/plugins/openapi/state.js +18 -0
  500. package/dist/lib/plugins/openapi/state.js.map +1 -0
  501. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +9 -0
  502. package/dist/lib/plugins/openapi/util/createSidebarCategory.js +23 -0
  503. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -0
  504. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -2
  505. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +80 -39
  506. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  507. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  508. package/dist/lib/plugins/openapi/util/getRoutes.js +117 -0
  509. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  510. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  511. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  512. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  513. package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
  514. package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
  515. package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
  516. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  517. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  518. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  519. package/dist/lib/plugins/redirect/index.d.ts +4 -7
  520. package/dist/lib/plugins/redirect/index.js +2 -2
  521. package/dist/lib/plugins/redirect/index.js.map +1 -1
  522. package/dist/lib/plugins/search-inkeep/index.d.ts +24 -5
  523. package/dist/lib/plugins/search-inkeep/index.js +41 -5
  524. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  525. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
  526. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  527. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  528. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  529. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  530. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  531. package/dist/lib/plugins/search-pagefind/ResultList.js +32 -0
  532. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  533. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  534. package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
  535. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  536. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  537. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  538. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  539. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  540. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  541. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  542. package/dist/lib/shiki.d.ts +35 -0
  543. package/dist/lib/shiki.js +103 -0
  544. package/dist/lib/shiki.js.map +1 -0
  545. package/dist/lib/ui/Accordion.d.ts +7 -0
  546. package/dist/lib/ui/Accordion.js +14 -0
  547. package/dist/lib/ui/Accordion.js.map +1 -0
  548. package/dist/lib/ui/ActionButton.d.ts +4 -0
  549. package/dist/lib/ui/ActionButton.js +10 -0
  550. package/dist/lib/ui/ActionButton.js.map +1 -0
  551. package/dist/lib/ui/Alert.d.ts +8 -0
  552. package/dist/lib/ui/Alert.js +23 -0
  553. package/dist/lib/ui/Alert.js.map +1 -0
  554. package/dist/lib/ui/AlertDialog.d.ts +20 -0
  555. package/dist/lib/ui/AlertDialog.js +27 -0
  556. package/dist/lib/ui/AlertDialog.js.map +1 -0
  557. package/dist/lib/ui/AspectRatio.d.ts +3 -0
  558. package/dist/lib/ui/AspectRatio.js +4 -0
  559. package/dist/lib/ui/AspectRatio.js.map +1 -0
  560. package/dist/lib/ui/Badge.d.ts +9 -0
  561. package/dist/lib/ui/Badge.js +22 -0
  562. package/dist/lib/ui/Badge.js.map +1 -0
  563. package/dist/lib/ui/Breadcrumb.d.ts +19 -0
  564. package/dist/lib/ui/Breadcrumb.js +24 -0
  565. package/dist/lib/ui/Breadcrumb.js.map +1 -0
  566. package/dist/lib/ui/Button.d.ts +4 -5
  567. package/dist/lib/ui/Button.js +9 -6
  568. package/dist/lib/ui/Button.js.map +1 -1
  569. package/dist/lib/ui/Callout.d.ts +38 -36
  570. package/dist/lib/ui/Callout.js +3 -2
  571. package/dist/lib/ui/Callout.js.map +1 -1
  572. package/dist/lib/ui/Card.js +1 -1
  573. package/dist/lib/ui/Card.js.map +1 -1
  574. package/dist/lib/ui/Carousel.d.ts +18 -0
  575. package/dist/lib/ui/Carousel.js +99 -0
  576. package/dist/lib/ui/Carousel.js.map +1 -0
  577. package/dist/lib/ui/Checkbox.d.ts +4 -0
  578. package/dist/lib/ui/Checkbox.js +9 -0
  579. package/dist/lib/ui/Checkbox.js.map +1 -0
  580. package/dist/lib/ui/CodeBlock.d.ts +16 -0
  581. package/dist/lib/ui/CodeBlock.js +18 -0
  582. package/dist/lib/ui/CodeBlock.js.map +1 -0
  583. package/dist/lib/ui/Collapsible.d.ts +5 -0
  584. package/dist/lib/ui/Collapsible.js +6 -0
  585. package/dist/lib/ui/Collapsible.js.map +1 -0
  586. package/dist/lib/ui/Command.d.ts +94 -0
  587. package/dist/lib/ui/Command.js +35 -0
  588. package/dist/lib/ui/Command.js.map +1 -0
  589. package/dist/lib/ui/Dialog.js +23 -0
  590. package/dist/lib/ui/Dialog.js.map +1 -0
  591. package/dist/lib/ui/Drawer.d.ts +8 -10
  592. package/dist/lib/ui/Drawer.js.map +1 -1
  593. package/dist/lib/ui/DropdownMenu.js +4 -4
  594. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  595. package/dist/lib/ui/Form.d.ts +23 -0
  596. package/dist/lib/ui/Form.js +63 -0
  597. package/dist/lib/ui/Form.js.map +1 -0
  598. package/dist/lib/ui/HoverCard.d.ts +6 -0
  599. package/dist/lib/ui/HoverCard.js +10 -0
  600. package/dist/lib/ui/HoverCard.js.map +1 -0
  601. package/dist/lib/ui/Input.d.ts +1 -2
  602. package/dist/lib/ui/Input.js +1 -1
  603. package/dist/lib/ui/Input.js.map +1 -1
  604. package/dist/lib/ui/Label.d.ts +5 -0
  605. package/dist/lib/ui/Label.js +10 -0
  606. package/dist/lib/ui/Label.js.map +1 -0
  607. package/dist/lib/ui/Pagination.d.ts +28 -0
  608. package/dist/lib/ui/Pagination.js +24 -0
  609. package/dist/lib/ui/Pagination.js.map +1 -0
  610. package/dist/lib/ui/Popover.d.ts +6 -0
  611. package/dist/lib/ui/Popover.js +10 -0
  612. package/dist/lib/ui/Popover.js.map +1 -0
  613. package/dist/lib/ui/Progress.d.ts +4 -0
  614. package/dist/lib/ui/Progress.js +8 -0
  615. package/dist/lib/ui/Progress.js.map +1 -0
  616. package/dist/lib/ui/RadioGroup.d.ts +5 -0
  617. package/dist/lib/ui/RadioGroup.js +15 -0
  618. package/dist/lib/ui/RadioGroup.js.map +1 -0
  619. package/dist/lib/ui/ScrollArea.d.ts +5 -0
  620. package/dist/lib/ui/ScrollArea.js +12 -0
  621. package/dist/lib/ui/ScrollArea.js.map +1 -0
  622. package/dist/lib/ui/Select.js +27 -0
  623. package/dist/lib/ui/Select.js.map +1 -0
  624. package/dist/lib/ui/Skeleton.d.ts +2 -0
  625. package/dist/lib/ui/Skeleton.js +7 -0
  626. package/dist/lib/ui/Skeleton.js.map +1 -0
  627. package/dist/lib/ui/Slider.d.ts +4 -0
  628. package/dist/lib/ui/Slider.js +8 -0
  629. package/dist/lib/ui/Slider.js.map +1 -0
  630. package/dist/lib/ui/Stepper.d.ts +3 -0
  631. package/dist/lib/ui/Stepper.js +7 -0
  632. package/dist/lib/ui/Stepper.js.map +1 -0
  633. package/dist/lib/ui/Switch.d.ts +4 -0
  634. package/dist/lib/ui/Switch.js +8 -0
  635. package/dist/lib/ui/Switch.js.map +1 -0
  636. package/dist/lib/ui/SyntaxHighlight.d.ts +10 -0
  637. package/dist/lib/ui/SyntaxHighlight.js +14 -0
  638. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  639. package/dist/lib/ui/Tabs.js +2 -2
  640. package/dist/lib/ui/Tabs.js.map +1 -1
  641. package/dist/lib/ui/Textarea.d.ts +4 -0
  642. package/dist/lib/ui/Textarea.js +9 -0
  643. package/dist/lib/ui/Textarea.js.map +1 -0
  644. package/dist/lib/ui/Toggle.d.ts +12 -0
  645. package/dist/lib/ui/Toggle.js +26 -0
  646. package/dist/lib/ui/Toggle.js.map +1 -0
  647. package/dist/lib/ui/ToggleGroup.d.ts +12 -0
  648. package/dist/lib/ui/ToggleGroup.js +21 -0
  649. package/dist/lib/ui/ToggleGroup.js.map +1 -0
  650. package/dist/lib/ui/Tooltip.d.ts +7 -0
  651. package/dist/lib/ui/Tooltip.js +11 -0
  652. package/dist/lib/ui/Tooltip.js.map +1 -0
  653. package/dist/lib/ui/util.d.ts +2 -0
  654. package/dist/lib/ui/util.js +3 -0
  655. package/dist/lib/ui/util.js.map +1 -0
  656. package/dist/lib/util/MdxComponents.d.ts +30 -21
  657. package/dist/lib/util/MdxComponents.js +17 -15
  658. package/dist/lib/util/MdxComponents.js.map +1 -1
  659. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  660. package/dist/lib/util/detectOS.d.ts +1 -0
  661. package/dist/lib/util/detectOS.js +11 -0
  662. package/dist/lib/util/detectOS.js.map +1 -0
  663. package/dist/lib/util/ensureArray.d.ts +1 -0
  664. package/dist/lib/util/ensureArray.js +2 -0
  665. package/dist/lib/util/ensureArray.js.map +1 -0
  666. package/dist/lib/util/invariant.d.ts +9 -0
  667. package/dist/lib/util/invariant.js +7 -3
  668. package/dist/lib/util/invariant.js.map +1 -1
  669. package/dist/lib/util/joinPath.d.ts +3 -0
  670. package/dist/lib/util/joinPath.js +3 -0
  671. package/dist/lib/util/joinPath.js.map +1 -1
  672. package/dist/lib/util/joinUrl.d.ts +1 -0
  673. package/dist/lib/util/joinUrl.js +40 -0
  674. package/dist/lib/util/joinUrl.js.map +1 -0
  675. package/dist/lib/util/joinUrl.test.d.ts +1 -0
  676. package/dist/lib/util/joinUrl.test.js +43 -0
  677. package/dist/lib/util/joinUrl.test.js.map +1 -0
  678. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  679. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  680. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  681. package/dist/lib/util/traverse.d.ts +3 -0
  682. package/dist/lib/util/traverse.js +23 -0
  683. package/dist/lib/util/traverse.js.map +1 -0
  684. package/dist/lib/util/types.d.ts +7 -0
  685. package/dist/lib/util/types.js +2 -0
  686. package/dist/lib/util/types.js.map +1 -0
  687. package/dist/lib/util/url.d.ts +4 -0
  688. package/dist/lib/util/url.js +13 -0
  689. package/dist/lib/util/url.js.map +1 -0
  690. package/dist/lib/util/url.test.d.ts +1 -0
  691. package/dist/lib/util/url.test.js +26 -0
  692. package/dist/lib/util/url.test.js.map +1 -0
  693. package/dist/lib/util/useExposedProps.d.ts +9 -0
  694. package/dist/lib/util/useExposedProps.js +9 -0
  695. package/dist/lib/util/useExposedProps.js.map +1 -0
  696. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  697. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  698. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  699. package/dist/lib/util/useLatest.d.ts +1 -0
  700. package/dist/lib/util/useLatest.js +15 -0
  701. package/dist/lib/util/useLatest.js.map +1 -0
  702. package/dist/lib/util/useOnScreen.d.ts +5 -0
  703. package/dist/lib/util/useOnScreen.js +19 -0
  704. package/dist/lib/util/useOnScreen.js.map +1 -0
  705. package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
  706. package/dist/lib/util/useScrollToAnchor.js +42 -37
  707. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  708. package/dist/lib/util/useScrollToTop.js +7 -5
  709. package/dist/lib/util/useScrollToTop.js.map +1 -1
  710. package/dist/vite/api/SchemaManager.d.ts +36 -0
  711. package/dist/vite/api/SchemaManager.js +122 -0
  712. package/dist/vite/api/SchemaManager.js.map +1 -0
  713. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  714. package/dist/vite/api/SchemaManager.test.js +106 -0
  715. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  716. package/dist/vite/api/schema-codegen.d.ts +12 -0
  717. package/dist/vite/api/schema-codegen.js +85 -0
  718. package/dist/vite/api/schema-codegen.js.map +1 -0
  719. package/dist/vite/api/schema-codegen.test.d.ts +1 -0
  720. package/dist/vite/api/schema-codegen.test.js +313 -0
  721. package/dist/vite/api/schema-codegen.test.js.map +1 -0
  722. package/dist/vite/build.js +83 -12
  723. package/dist/vite/build.js.map +1 -1
  724. package/dist/vite/config.d.ts +2 -15
  725. package/dist/vite/config.js +121 -144
  726. package/dist/vite/config.js.map +1 -1
  727. package/dist/vite/config.test.js +12 -6
  728. package/dist/vite/config.test.js.map +1 -1
  729. package/dist/vite/create-pagefind-index.d.ts +4 -0
  730. package/dist/vite/create-pagefind-index.js +12 -0
  731. package/dist/vite/create-pagefind-index.js.map +1 -0
  732. package/dist/vite/css/collect.d.ts +2 -0
  733. package/dist/vite/css/collect.js +27 -0
  734. package/dist/vite/css/collect.js.map +1 -0
  735. package/dist/vite/css/plugin.d.ts +5 -0
  736. package/dist/vite/css/plugin.js +79 -0
  737. package/dist/vite/css/plugin.js.map +1 -0
  738. package/dist/vite/debug.d.ts +1 -0
  739. package/dist/vite/debug.js +10 -0
  740. package/dist/vite/debug.js.map +1 -0
  741. package/dist/vite/dev-server.d.ts +11 -4
  742. package/dist/vite/dev-server.js +83 -22
  743. package/dist/vite/dev-server.js.map +1 -1
  744. package/dist/vite/error-handler.d.ts +1 -1
  745. package/dist/vite/error-handler.js +1 -1
  746. package/dist/vite/error-handler.js.map +1 -1
  747. package/dist/vite/html.d.ts +6 -2
  748. package/dist/vite/html.js +11 -10
  749. package/dist/vite/html.js.map +1 -1
  750. package/dist/vite/output.d.ts +113 -0
  751. package/dist/vite/output.js +60 -0
  752. package/dist/vite/output.js.map +1 -0
  753. package/dist/vite/plugin-api-keys.d.ts +2 -2
  754. package/dist/vite/plugin-api-keys.js +10 -5
  755. package/dist/vite/plugin-api-keys.js.map +1 -1
  756. package/dist/vite/plugin-api.d.ts +2 -2
  757. package/dist/vite/plugin-api.js +145 -32
  758. package/dist/vite/plugin-api.js.map +1 -1
  759. package/dist/vite/plugin-auth.d.ts +2 -2
  760. package/dist/vite/plugin-auth.js +7 -4
  761. package/dist/vite/plugin-auth.js.map +1 -1
  762. package/dist/vite/plugin-component.d.ts +2 -2
  763. package/dist/vite/plugin-component.js +22 -13
  764. package/dist/vite/plugin-component.js.map +1 -1
  765. package/dist/vite/plugin-config-reload.d.ts +4 -4
  766. package/dist/vite/plugin-config-reload.js +15 -8
  767. package/dist/vite/plugin-config-reload.js.map +1 -1
  768. package/dist/vite/plugin-config.d.ts +2 -3
  769. package/dist/vite/plugin-config.js +26 -3
  770. package/dist/vite/plugin-config.js.map +1 -1
  771. package/dist/vite/plugin-configure-tailwind.d.ts +3 -0
  772. package/dist/vite/plugin-configure-tailwind.js +37 -0
  773. package/dist/vite/plugin-configure-tailwind.js.map +1 -0
  774. package/dist/vite/plugin-custom-pages.d.ts +4 -0
  775. package/dist/vite/plugin-custom-pages.js +30 -0
  776. package/dist/vite/plugin-custom-pages.js.map +1 -0
  777. package/dist/vite/plugin-docs.d.ts +3 -3
  778. package/dist/vite/plugin-docs.js +57 -29
  779. package/dist/vite/plugin-docs.js.map +1 -1
  780. package/dist/vite/plugin-docs.test.js +15 -23
  781. package/dist/vite/plugin-docs.test.js.map +1 -1
  782. package/dist/vite/plugin-frontmatter.d.ts +2 -1
  783. package/dist/vite/plugin-frontmatter.js +28 -24
  784. package/dist/vite/plugin-frontmatter.js.map +1 -1
  785. package/dist/vite/plugin-mdx.d.ts +2 -8
  786. package/dist/vite/plugin-mdx.js +96 -13
  787. package/dist/vite/plugin-mdx.js.map +1 -1
  788. package/dist/vite/plugin-redirect.d.ts +2 -2
  789. package/dist/vite/plugin-redirect.js +3 -3
  790. package/dist/vite/plugin-redirect.js.map +1 -1
  791. package/dist/vite/plugin-search.d.ts +3 -0
  792. package/dist/vite/plugin-search.js +30 -0
  793. package/dist/vite/plugin-search.js.map +1 -0
  794. package/dist/vite/plugin-shiki-register.d.ts +3 -0
  795. package/dist/vite/plugin-shiki-register.js +38 -0
  796. package/dist/vite/plugin-shiki-register.js.map +1 -0
  797. package/dist/vite/plugin-sidebar.d.ts +5 -3
  798. package/dist/vite/plugin-sidebar.js +26 -10
  799. package/dist/vite/plugin-sidebar.js.map +1 -1
  800. package/dist/vite/plugin-theme-css.d.ts +6 -0
  801. package/dist/vite/plugin-theme-css.js +118 -0
  802. package/dist/vite/plugin-theme-css.js.map +1 -0
  803. package/dist/vite/plugin.d.ts +2 -3
  804. package/dist/vite/plugin.js +18 -6
  805. package/dist/vite/plugin.js.map +1 -1
  806. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  807. package/dist/vite/prerender/FileWritingResponse.js +51 -0
  808. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  809. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  810. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  811. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  812. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  813. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  814. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  815. package/dist/vite/prerender/prerender.d.ts +15 -0
  816. package/dist/vite/prerender/prerender.js +109 -0
  817. package/dist/vite/prerender/prerender.js.map +1 -0
  818. package/dist/vite/prerender/worker.d.ts +13 -0
  819. package/dist/vite/prerender/worker.js +59 -0
  820. package/dist/vite/prerender/worker.js.map +1 -0
  821. package/dist/vite/remarkStaticGeneration.d.ts +3 -0
  822. package/dist/vite/remarkStaticGeneration.js +125 -0
  823. package/dist/vite/remarkStaticGeneration.js.map +1 -0
  824. package/dist/vite/reporter.d.ts +3 -0
  825. package/dist/vite/reporter.js +33 -0
  826. package/dist/vite/reporter.js.map +1 -0
  827. package/dist/vite/sitemap.d.ts +1 -1
  828. package/dist/vite/sitemap.js +2 -1
  829. package/dist/vite/sitemap.js.map +1 -1
  830. package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
  831. package/dist/zuplo/enrich-with-zuplo.js +185 -0
  832. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  833. package/dist/zuplo/policy-types.d.ts +33 -0
  834. package/dist/zuplo/policy-types.js +8 -0
  835. package/dist/zuplo/policy-types.js.map +1 -0
  836. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  837. package/dist/zuplo/with-zuplo-processors.js +26 -0
  838. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  839. package/dist/zuplo/with-zuplo.d.ts +6 -0
  840. package/dist/zuplo/with-zuplo.js +10 -0
  841. package/dist/zuplo/with-zuplo.js.map +1 -0
  842. package/lib/Button-u7M2QYds.js +51 -0
  843. package/lib/Button-u7M2QYds.js.map +1 -0
  844. package/lib/Callout-CtCQJ6Cc.js +230 -0
  845. package/lib/Callout-CtCQJ6Cc.js.map +1 -0
  846. package/lib/Card-DkH-AU1V.js +61 -0
  847. package/lib/Card-DkH-AU1V.js.map +1 -0
  848. package/lib/CategoryHeading-BA7lKNWz.js +10 -0
  849. package/lib/CategoryHeading-BA7lKNWz.js.map +1 -0
  850. package/lib/ClientOnly-E7hGysn1.js +11 -0
  851. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  852. package/lib/Dialog-irKZWXGg.js +99 -0
  853. package/lib/Dialog-irKZWXGg.js.map +1 -0
  854. package/lib/Drawer-DZ214i5V.js +1133 -0
  855. package/lib/Drawer-DZ214i5V.js.map +1 -0
  856. package/lib/Markdown-BNG8bTDA.js +7691 -0
  857. package/lib/Markdown-BNG8bTDA.js.map +1 -0
  858. package/lib/MdxPage-C-P_N-H3.js +84 -0
  859. package/lib/MdxPage-C-P_N-H3.js.map +1 -0
  860. package/lib/OasProvider-DjFXGgWa.js +33 -0
  861. package/lib/OasProvider-DjFXGgWa.js.map +1 -0
  862. package/lib/OperationList-CchpZz4h.js +5141 -0
  863. package/lib/OperationList-CchpZz4h.js.map +1 -0
  864. package/lib/Pagination-BbcrfwgM.js +36 -0
  865. package/lib/Pagination-BbcrfwgM.js.map +1 -0
  866. package/lib/RouteGuard-CIyGFkFD.js +55 -0
  867. package/lib/RouteGuard-CIyGFkFD.js.map +1 -0
  868. package/lib/SchemaList-CrQd3KiR.js +160 -0
  869. package/lib/SchemaList-CrQd3KiR.js.map +1 -0
  870. package/lib/SchemaView-CQ_hMc8m.js +375 -0
  871. package/lib/SchemaView-CQ_hMc8m.js.map +1 -0
  872. package/lib/SignUp-DSn8NjRS.js +63 -0
  873. package/lib/SignUp-DSn8NjRS.js.map +1 -0
  874. package/lib/Slot-Dw-g06lX.js +160 -0
  875. package/lib/Slot-Dw-g06lX.js.map +1 -0
  876. package/lib/Spinner-mNLZ6awP.js +7 -0
  877. package/lib/Spinner-mNLZ6awP.js.map +1 -0
  878. package/lib/SyntaxHighlight-DTgNHbGp.js +9107 -0
  879. package/lib/SyntaxHighlight-DTgNHbGp.js.map +1 -0
  880. package/lib/Toc-Ccycwd-T.js +92 -0
  881. package/lib/Toc-Ccycwd-T.js.map +1 -0
  882. package/lib/chunk-BAXFHI7N-C9WnHsLV.js +1839 -0
  883. package/lib/chunk-BAXFHI7N-C9WnHsLV.js.map +1 -0
  884. package/lib/circular-DdByufCW.js +14929 -0
  885. package/lib/circular-DdByufCW.js.map +1 -0
  886. package/lib/cn-BOFVZgHd.js +2744 -0
  887. package/lib/cn-BOFVZgHd.js.map +1 -0
  888. package/lib/createServer-BL0QaN9q.js +12494 -0
  889. package/lib/createServer-BL0QaN9q.js.map +1 -0
  890. package/lib/hook-BpiAQVtd.js +1446 -0
  891. package/lib/hook-BpiAQVtd.js.map +1 -0
  892. package/lib/index--oeBayMa.js +86 -0
  893. package/lib/index--oeBayMa.js.map +1 -0
  894. package/lib/index-BjB1BHZu.js +3268 -0
  895. package/lib/index-BjB1BHZu.js.map +1 -0
  896. package/lib/index-BvvmIczU.js +2094 -0
  897. package/lib/index-BvvmIczU.js.map +1 -0
  898. package/lib/index-C1S4w-gl.js +36 -0
  899. package/lib/index-C1S4w-gl.js.map +1 -0
  900. package/lib/index-CrcNWbel.js +316 -0
  901. package/lib/index-CrcNWbel.js.map +1 -0
  902. package/lib/index-rsSMIHTN.js +4977 -0
  903. package/lib/index-rsSMIHTN.js.map +1 -0
  904. package/lib/index-zddirpDj.js +4822 -0
  905. package/lib/index-zddirpDj.js.map +1 -0
  906. package/lib/index.esm-BFcSKCe-.js +683 -0
  907. package/lib/index.esm-BFcSKCe-.js.map +1 -0
  908. package/lib/index.esm-DSfX_eMP.js +1216 -0
  909. package/lib/index.esm-DSfX_eMP.js.map +1 -0
  910. package/lib/invariant-DAFpPywt.js +48 -0
  911. package/lib/invariant-DAFpPywt.js.map +1 -0
  912. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  913. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  914. package/lib/mutation-CJrIFMgY.js +196 -0
  915. package/lib/mutation-CJrIFMgY.js.map +1 -0
  916. package/lib/objectEntries-yMIkr2mI.js +5 -0
  917. package/lib/objectEntries-yMIkr2mI.js.map +1 -0
  918. package/lib/processors/removeExtensions.js +11 -0
  919. package/lib/processors/removeExtensions.js.map +1 -0
  920. package/lib/processors/removeParameters.js +47 -0
  921. package/lib/processors/removeParameters.js.map +1 -0
  922. package/lib/processors/removePaths.js +28 -0
  923. package/lib/processors/removePaths.js.map +1 -0
  924. package/lib/processors/traverse.js +17 -0
  925. package/lib/processors/traverse.js.map +1 -0
  926. package/lib/ui/Accordion.js +47 -0
  927. package/lib/ui/Accordion.js.map +1 -0
  928. package/lib/ui/ActionButton.js +25 -0
  929. package/lib/ui/ActionButton.js.map +1 -0
  930. package/lib/ui/Alert.js +51 -0
  931. package/lib/ui/Alert.js.map +1 -0
  932. package/lib/ui/AlertDialog.js +114 -0
  933. package/lib/ui/AlertDialog.js.map +1 -0
  934. package/lib/ui/AspectRatio.js +6 -0
  935. package/lib/ui/AspectRatio.js.map +1 -0
  936. package/lib/ui/Badge.js +28 -0
  937. package/lib/ui/Badge.js.map +1 -0
  938. package/lib/ui/Breadcrumb.js +94 -0
  939. package/lib/ui/Breadcrumb.js.map +1 -0
  940. package/lib/ui/Button.js +52 -0
  941. package/lib/ui/Button.js.map +1 -0
  942. package/lib/ui/Callout.js +96 -0
  943. package/lib/ui/Callout.js.map +1 -0
  944. package/lib/ui/Card.js +62 -0
  945. package/lib/ui/Card.js.map +1 -0
  946. package/lib/ui/Carousel.js +1416 -0
  947. package/lib/ui/Carousel.js.map +1 -0
  948. package/lib/ui/Checkbox.js +29 -0
  949. package/lib/ui/Checkbox.js.map +1 -0
  950. package/lib/ui/CodeBlock.js +83 -0
  951. package/lib/ui/CodeBlock.js.map +1 -0
  952. package/lib/ui/Collapsible.js +8 -0
  953. package/lib/ui/Collapsible.js.map +1 -0
  954. package/lib/ui/Command.js +156 -0
  955. package/lib/ui/Command.js.map +1 -0
  956. package/lib/ui/Dialog.js +101 -0
  957. package/lib/ui/Dialog.js.map +1 -0
  958. package/lib/ui/Drawer.js +17 -0
  959. package/lib/ui/Drawer.js.map +1 -0
  960. package/lib/ui/DropdownMenu.js +145 -0
  961. package/lib/ui/DropdownMenu.js.map +1 -0
  962. package/lib/ui/Form.js +95 -0
  963. package/lib/ui/Form.js.map +1 -0
  964. package/lib/ui/HoverCard.js +24 -0
  965. package/lib/ui/HoverCard.js.map +1 -0
  966. package/lib/ui/Input.js +22 -0
  967. package/lib/ui/Input.js.map +1 -0
  968. package/lib/ui/Label.js +20 -0
  969. package/lib/ui/Label.js.map +1 -0
  970. package/lib/ui/Pagination.js +106 -0
  971. package/lib/ui/Pagination.js.map +1 -0
  972. package/lib/ui/Popover.js +24 -0
  973. package/lib/ui/Popover.js.map +1 -0
  974. package/lib/ui/Progress.js +27 -0
  975. package/lib/ui/Progress.js.map +1 -0
  976. package/lib/ui/RadioGroup.js +32 -0
  977. package/lib/ui/RadioGroup.js.map +1 -0
  978. package/lib/ui/ScrollArea.js +39 -0
  979. package/lib/ui/ScrollArea.js.map +1 -0
  980. package/lib/ui/Select.js +122 -0
  981. package/lib/ui/Select.js.map +1 -0
  982. package/lib/ui/Skeleton.js +18 -0
  983. package/lib/ui/Skeleton.js.map +1 -0
  984. package/lib/ui/Slider.js +24 -0
  985. package/lib/ui/Slider.js.map +1 -0
  986. package/lib/ui/Stepper.js +6 -0
  987. package/lib/ui/Stepper.js.map +1 -0
  988. package/lib/ui/Switch.js +28 -0
  989. package/lib/ui/Switch.js.map +1 -0
  990. package/lib/ui/SyntaxHighlight.js +10 -0
  991. package/lib/ui/SyntaxHighlight.js.map +1 -0
  992. package/lib/ui/Tabs.js +47 -0
  993. package/lib/ui/Tabs.js.map +1 -0
  994. package/lib/ui/Textarea.js +21 -0
  995. package/lib/ui/Textarea.js.map +1 -0
  996. package/lib/ui/Toggle.js +38 -0
  997. package/lib/ui/Toggle.js.map +1 -0
  998. package/lib/ui/ToggleGroup.js +42 -0
  999. package/lib/ui/ToggleGroup.js.map +1 -0
  1000. package/lib/ui/Tooltip.js +24 -0
  1001. package/lib/ui/Tooltip.js.map +1 -0
  1002. package/lib/ui/util.js +6 -0
  1003. package/lib/ui/util.js.map +1 -0
  1004. package/lib/useExposedProps-DG8J6ewJ.js +9 -0
  1005. package/lib/useExposedProps-DG8J6ewJ.js.map +1 -0
  1006. package/lib/useLatest-hmRS46UF.js +11 -0
  1007. package/lib/useLatest-hmRS46UF.js.map +1 -0
  1008. package/lib/useMutation-B2LNwShM.js +97 -0
  1009. package/lib/useMutation-B2LNwShM.js.map +1 -0
  1010. package/lib/zudoku.auth-auth0.js +32 -30
  1011. package/lib/zudoku.auth-auth0.js.map +1 -1
  1012. package/lib/zudoku.auth-clerk.js +115 -58
  1013. package/lib/zudoku.auth-clerk.js.map +1 -1
  1014. package/lib/zudoku.auth-openid.js +628 -628
  1015. package/lib/zudoku.auth-openid.js.map +1 -1
  1016. package/lib/zudoku.components.js +34 -3364
  1017. package/lib/zudoku.components.js.map +1 -1
  1018. package/lib/zudoku.hooks.js +19 -0
  1019. package/lib/zudoku.hooks.js.map +1 -0
  1020. package/lib/zudoku.icons.js +10 -0
  1021. package/lib/zudoku.icons.js.map +1 -1
  1022. package/lib/zudoku.plugin-api-catalog.js +117 -0
  1023. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  1024. package/lib/zudoku.plugin-api-keys.js +5019 -212
  1025. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  1026. package/lib/zudoku.plugin-custom-pages.js +22 -0
  1027. package/lib/zudoku.plugin-custom-pages.js.map +1 -0
  1028. package/lib/zudoku.plugin-markdown.js +70 -27
  1029. package/lib/zudoku.plugin-markdown.js.map +1 -1
  1030. package/lib/zudoku.plugin-openapi.js +8 -12
  1031. package/lib/zudoku.plugin-openapi.js.map +1 -1
  1032. package/lib/zudoku.plugin-redirect.js +2 -2
  1033. package/lib/zudoku.plugin-redirect.js.map +1 -1
  1034. package/lib/zudoku.plugin-search-inkeep.js +52 -28
  1035. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  1036. package/lib/zudoku.plugin-search-pagefind.js +230 -0
  1037. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  1038. package/lib/zudoku.plugins.js +15 -0
  1039. package/lib/zudoku.plugins.js.map +1 -0
  1040. package/package.json +186 -105
  1041. package/src/app/ZuploBuildConfig.ts +33 -0
  1042. package/src/app/defaultTheme.css +54 -0
  1043. package/src/app/demo-cdn.html +31 -31
  1044. package/src/app/demo.html +1 -1
  1045. package/src/app/demo.tsx +1 -5
  1046. package/src/app/entry.client.tsx +71 -3
  1047. package/src/app/entry.server.tsx +81 -60
  1048. package/src/app/env.ts +35 -0
  1049. package/src/app/font.geist.css +73 -0
  1050. package/src/app/main.css +202 -131
  1051. package/src/app/main.tsx +81 -71
  1052. package/src/app/sentry.ts +24 -0
  1053. package/src/app/standalone.tsx +2 -6
  1054. package/src/lib/MissingIcon.tsx +22 -0
  1055. package/src/lib/authentication/AuthenticationPlugin.tsx +22 -5
  1056. package/src/lib/authentication/authentication.ts +5 -6
  1057. package/src/lib/authentication/components/CallbackHandler.tsx +30 -51
  1058. package/src/lib/authentication/components/SignIn.tsx +35 -2
  1059. package/src/lib/authentication/components/SignOut.tsx +3 -2
  1060. package/src/lib/authentication/components/SignUp.tsx +35 -1
  1061. package/src/lib/authentication/hook.ts +13 -4
  1062. package/src/lib/authentication/providers/auth0.tsx +28 -18
  1063. package/src/lib/authentication/providers/clerk.tsx +136 -53
  1064. package/src/lib/authentication/providers/openid.tsx +87 -84
  1065. package/src/lib/authentication/providers/supabase.tsx +157 -0
  1066. package/src/lib/authentication/state.ts +56 -25
  1067. package/src/lib/authentication/use-broadcast/LICENSE.md +9 -0
  1068. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  1069. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  1070. package/src/lib/components/AnchorLink.tsx +13 -8
  1071. package/src/lib/components/Autocomplete.tsx +113 -0
  1072. package/src/lib/components/Banner.tsx +2 -1
  1073. package/src/lib/components/Bootstrap.tsx +43 -16
  1074. package/src/lib/components/BuildCheck.tsx +75 -0
  1075. package/src/lib/components/ClientOnly.tsx +6 -3
  1076. package/src/lib/components/DeveloperHint.tsx +6 -1
  1077. package/src/lib/components/ErrorPage.tsx +1 -1
  1078. package/src/lib/components/Footer.tsx +136 -0
  1079. package/src/lib/components/Header.tsx +108 -55
  1080. package/src/lib/components/Heading.tsx +14 -14
  1081. package/src/lib/components/InlineCode.tsx +13 -16
  1082. package/src/lib/components/Layout.tsx +36 -59
  1083. package/src/lib/components/Main.tsx +51 -0
  1084. package/src/lib/components/Markdown.tsx +33 -29
  1085. package/src/lib/components/MobileTopNavigation.tsx +43 -28
  1086. package/src/lib/components/NotFoundPage.tsx +2 -2
  1087. package/src/lib/components/Pagination.tsx +44 -0
  1088. package/src/lib/components/PathRenderer.tsx +61 -0
  1089. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  1090. package/src/lib/components/ReactMarkdown.tsx +264 -0
  1091. package/src/lib/components/Search.tsx +19 -8
  1092. package/src/lib/components/Slot.test.tsx +456 -0
  1093. package/src/lib/components/Slot.tsx +64 -0
  1094. package/src/lib/components/StatusPage.tsx +91 -0
  1095. package/src/lib/components/ThemeSwitch.tsx +46 -0
  1096. package/src/lib/components/TopNavigation.tsx +95 -25
  1097. package/src/lib/components/Zudoku.tsx +119 -0
  1098. package/src/lib/components/cache.ts +23 -0
  1099. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  1100. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  1101. package/src/lib/components/context/SlotProvider.tsx +149 -0
  1102. package/src/lib/components/context/ViewportAnchorContext.tsx +34 -36
  1103. package/src/lib/components/context/ZudokuContext.ts +53 -29
  1104. package/src/lib/components/context/ZudokuProvider.tsx +4 -3
  1105. package/src/lib/components/index.ts +33 -6
  1106. package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
  1107. package/src/lib/components/navigation/Sidebar.tsx +39 -30
  1108. package/src/lib/components/navigation/SidebarBadge.tsx +17 -12
  1109. package/src/lib/components/navigation/SidebarCategory.tsx +67 -54
  1110. package/src/lib/components/navigation/SidebarItem.tsx +38 -51
  1111. package/src/lib/components/navigation/SidebarWrapper.tsx +42 -22
  1112. package/src/lib/components/navigation/Toc.tsx +126 -0
  1113. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  1114. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  1115. package/src/lib/components/navigation/utils.ts +24 -17
  1116. package/src/lib/core/RouteGuard.tsx +96 -0
  1117. package/src/lib/core/ZudokuContext.ts +198 -0
  1118. package/src/lib/core/plugins.ts +54 -22
  1119. package/src/lib/errors/ErrorAlert.tsx +36 -15
  1120. package/src/lib/errors/RouterError.tsx +1 -1
  1121. package/src/lib/hooks/index.ts +5 -0
  1122. package/src/lib/hooks/useEvent.test.tsx +149 -0
  1123. package/src/lib/hooks/useEvent.ts +41 -0
  1124. package/src/lib/icons.ts +1 -0
  1125. package/src/lib/oas/graphql/circular.ts +58 -0
  1126. package/src/lib/oas/graphql/index.ts +298 -104
  1127. package/src/lib/oas/parser/dereference/index.ts +10 -4
  1128. package/src/lib/oas/parser/index.ts +14 -30
  1129. package/src/lib/oas/parser/upgrade/index.ts +103 -38
  1130. package/src/lib/plugins/api-catalog/Catalog.tsx +73 -0
  1131. package/src/lib/plugins/api-catalog/index.tsx +115 -0
  1132. package/src/lib/plugins/api-keys/CreateApiKey.tsx +63 -47
  1133. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  1134. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +293 -113
  1135. package/src/lib/plugins/api-keys/index.tsx +107 -59
  1136. package/src/lib/plugins/custom-pages/CustomPage.tsx +18 -0
  1137. package/src/lib/plugins/custom-pages/index.tsx +24 -0
  1138. package/src/lib/plugins/markdown/MdxPage.tsx +53 -49
  1139. package/src/lib/plugins/markdown/index.tsx +53 -13
  1140. package/src/lib/plugins/markdown/resolver.ts +59 -0
  1141. package/src/lib/plugins/openapi/CollapsibleCode.tsx +86 -0
  1142. package/src/lib/plugins/openapi/ColorizedParam.tsx +49 -23
  1143. package/src/lib/plugins/openapi/Endpoint.tsx +19 -22
  1144. package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
  1145. package/src/lib/plugins/openapi/OperationList.tsx +240 -70
  1146. package/src/lib/plugins/openapi/OperationListItem.tsx +122 -93
  1147. package/src/lib/plugins/openapi/ParamInfos.tsx +90 -0
  1148. package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
  1149. package/src/lib/plugins/openapi/ParameterListItem.tsx +78 -31
  1150. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +21 -2
  1151. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +15 -33
  1152. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +36 -59
  1153. package/src/lib/plugins/openapi/SchemaList.tsx +163 -0
  1154. package/src/lib/plugins/openapi/Sidecar.tsx +181 -114
  1155. package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
  1156. package/src/lib/plugins/openapi/SidecarExamples.tsx +168 -0
  1157. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  1158. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +65 -0
  1159. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  1160. package/src/lib/plugins/openapi/client/createServer.ts +8 -2
  1161. package/src/lib/plugins/openapi/client/useCreateQuery.ts +45 -0
  1162. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  1163. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  1164. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  1165. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  1166. package/src/lib/plugins/openapi/context.tsx +2 -2
  1167. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
  1168. package/src/lib/plugins/openapi/graphql/gql.ts +38 -30
  1169. package/src/lib/plugins/openapi/graphql/graphql.ts +386 -682
  1170. package/src/lib/plugins/openapi/index.tsx +111 -138
  1171. package/src/lib/plugins/openapi/interfaces.ts +58 -3
  1172. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +52 -0
  1173. package/src/lib/plugins/openapi/playground/Headers.tsx +165 -36
  1174. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
  1175. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +41 -0
  1176. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
  1177. package/src/lib/plugins/openapi/playground/PathParams.tsx +39 -64
  1178. package/src/lib/plugins/openapi/playground/Playground.tsx +386 -245
  1179. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +7 -4
  1180. package/src/lib/plugins/openapi/playground/QueryParams.tsx +87 -89
  1181. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  1182. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +75 -0
  1183. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  1184. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +73 -0
  1185. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +230 -0
  1186. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +123 -0
  1187. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
  1188. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
  1189. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +222 -0
  1190. package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
  1191. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +182 -0
  1192. package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
  1193. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  1194. package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
  1195. package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
  1196. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  1197. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  1198. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  1199. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
  1200. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +160 -0
  1201. package/src/lib/plugins/openapi/schema/SchemaView.tsx +105 -138
  1202. package/src/lib/plugins/openapi/schema/utils.ts +32 -5
  1203. package/src/lib/plugins/openapi/state.ts +36 -0
  1204. package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +37 -0
  1205. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +95 -44
  1206. package/src/lib/plugins/openapi/util/getRoutes.tsx +198 -0
  1207. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  1208. package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
  1209. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  1210. package/src/lib/plugins/redirect/index.tsx +6 -10
  1211. package/src/lib/plugins/search-inkeep/index.tsx +80 -25
  1212. package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
  1213. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
  1214. package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -0
  1215. package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
  1216. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  1217. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  1218. package/src/lib/shiki.ts +133 -0
  1219. package/src/lib/ui/Accordion.tsx +56 -0
  1220. package/src/lib/ui/ActionButton.tsx +28 -0
  1221. package/src/lib/ui/Alert.tsx +59 -0
  1222. package/src/lib/ui/AlertDialog.tsx +139 -0
  1223. package/src/lib/ui/AspectRatio.tsx +5 -0
  1224. package/src/lib/ui/Badge.tsx +37 -0
  1225. package/src/lib/ui/Breadcrumb.tsx +115 -0
  1226. package/src/lib/ui/Button.tsx +13 -8
  1227. package/src/lib/ui/Callout.tsx +36 -16
  1228. package/src/lib/ui/Card.tsx +1 -1
  1229. package/src/lib/ui/Carousel.tsx +260 -0
  1230. package/src/lib/ui/Checkbox.tsx +29 -0
  1231. package/src/lib/ui/CodeBlock.tsx +102 -0
  1232. package/src/lib/ui/Collapsible.tsx +9 -0
  1233. package/src/lib/ui/Command.tsx +193 -0
  1234. package/src/lib/ui/Dialog.tsx +120 -0
  1235. package/src/lib/ui/Drawer.tsx +38 -36
  1236. package/src/lib/ui/DropdownMenu.tsx +4 -4
  1237. package/src/lib/ui/Form.tsx +177 -0
  1238. package/src/lib/ui/HoverCard.tsx +27 -0
  1239. package/src/lib/ui/Input.tsx +2 -3
  1240. package/src/lib/ui/Label.tsx +24 -0
  1241. package/src/lib/ui/Pagination.tsx +117 -0
  1242. package/src/lib/ui/Popover.tsx +29 -0
  1243. package/src/lib/ui/Progress.tsx +26 -0
  1244. package/src/lib/ui/RadioGroup.tsx +42 -0
  1245. package/src/lib/ui/ScrollArea.tsx +46 -0
  1246. package/src/lib/ui/Select.tsx +157 -0
  1247. package/src/lib/ui/Skeleton.tsx +15 -0
  1248. package/src/lib/ui/Slider.tsx +26 -0
  1249. package/src/lib/ui/Stepper.tsx +8 -0
  1250. package/src/lib/ui/Switch.tsx +27 -0
  1251. package/src/lib/ui/SyntaxHighlight.tsx +27 -0
  1252. package/src/lib/ui/Tabs.tsx +2 -2
  1253. package/src/lib/ui/Textarea.tsx +23 -0
  1254. package/src/lib/ui/Toggle.tsx +43 -0
  1255. package/src/lib/ui/ToggleGroup.tsx +59 -0
  1256. package/src/lib/ui/Tooltip.tsx +28 -0
  1257. package/src/lib/ui/util.tsx +3 -0
  1258. package/src/lib/util/MdxComponents.tsx +37 -24
  1259. package/src/lib/util/createVariantComponent.tsx +2 -2
  1260. package/src/lib/util/detectOS.ts +9 -0
  1261. package/src/lib/util/ensureArray.ts +3 -0
  1262. package/src/lib/util/invariant.ts +15 -3
  1263. package/src/lib/util/joinPath.tsx +3 -0
  1264. package/src/lib/util/joinUrl.test.ts +62 -0
  1265. package/src/lib/util/joinUrl.ts +57 -0
  1266. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  1267. package/src/lib/util/traverse.ts +34 -0
  1268. package/src/lib/util/types.ts +7 -0
  1269. package/src/lib/util/url.test.ts +51 -0
  1270. package/src/lib/util/url.ts +18 -0
  1271. package/src/lib/util/useExposedProps.tsx +27 -0
  1272. package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
  1273. package/src/lib/util/useLatest.ts +18 -0
  1274. package/src/lib/util/useOnScreen.ts +34 -0
  1275. package/src/lib/util/useScrollToAnchor.ts +48 -39
  1276. package/src/lib/util/useScrollToTop.ts +9 -4
  1277. package/src/shiki/langs/abap.js +1 -0
  1278. package/src/shiki/langs/actionscript-3.js +1 -0
  1279. package/src/shiki/langs/ada.js +1 -0
  1280. package/src/shiki/langs/angular-expression.js +1 -0
  1281. package/src/shiki/langs/angular-html.js +1 -0
  1282. package/src/shiki/langs/angular-inline-style.js +1 -0
  1283. package/src/shiki/langs/angular-inline-template.js +1 -0
  1284. package/src/shiki/langs/angular-let-declaration.js +1 -0
  1285. package/src/shiki/langs/angular-template-blocks.js +1 -0
  1286. package/src/shiki/langs/angular-template.js +1 -0
  1287. package/src/shiki/langs/angular-ts.js +1 -0
  1288. package/src/shiki/langs/apache.js +1 -0
  1289. package/src/shiki/langs/apex.js +1 -0
  1290. package/src/shiki/langs/apl.js +1 -0
  1291. package/src/shiki/langs/applescript.js +1 -0
  1292. package/src/shiki/langs/ara.js +1 -0
  1293. package/src/shiki/langs/asciidoc.js +1 -0
  1294. package/src/shiki/langs/asm.js +1 -0
  1295. package/src/shiki/langs/astro.js +1 -0
  1296. package/src/shiki/langs/awk.js +1 -0
  1297. package/src/shiki/langs/ballerina.js +1 -0
  1298. package/src/shiki/langs/bat.js +1 -0
  1299. package/src/shiki/langs/beancount.js +1 -0
  1300. package/src/shiki/langs/berry.js +1 -0
  1301. package/src/shiki/langs/bibtex.js +1 -0
  1302. package/src/shiki/langs/bicep.js +1 -0
  1303. package/src/shiki/langs/blade.js +1 -0
  1304. package/src/shiki/langs/bsl.js +1 -0
  1305. package/src/shiki/langs/c.js +1 -0
  1306. package/src/shiki/langs/cadence.js +1 -0
  1307. package/src/shiki/langs/cairo.js +1 -0
  1308. package/src/shiki/langs/clarity.js +1 -0
  1309. package/src/shiki/langs/clojure.js +1 -0
  1310. package/src/shiki/langs/cmake.js +1 -0
  1311. package/src/shiki/langs/cobol.js +1 -0
  1312. package/src/shiki/langs/codeowners.js +1 -0
  1313. package/src/shiki/langs/codeql.js +1 -0
  1314. package/src/shiki/langs/coffee.js +1 -0
  1315. package/src/shiki/langs/common-lisp.js +1 -0
  1316. package/src/shiki/langs/coq.js +1 -0
  1317. package/src/shiki/langs/cpp-macro.js +1 -0
  1318. package/src/shiki/langs/cpp.js +1 -0
  1319. package/src/shiki/langs/crystal.js +1 -0
  1320. package/src/shiki/langs/csharp.js +1 -0
  1321. package/src/shiki/langs/css.js +1 -0
  1322. package/src/shiki/langs/csv.js +1 -0
  1323. package/src/shiki/langs/cue.js +1 -0
  1324. package/src/shiki/langs/cypher.js +1 -0
  1325. package/src/shiki/langs/d.js +1 -0
  1326. package/src/shiki/langs/dart.js +1 -0
  1327. package/src/shiki/langs/dax.js +1 -0
  1328. package/src/shiki/langs/desktop.js +1 -0
  1329. package/src/shiki/langs/diff.js +1 -0
  1330. package/src/shiki/langs/docker.js +1 -0
  1331. package/src/shiki/langs/dotenv.js +1 -0
  1332. package/src/shiki/langs/dream-maker.js +1 -0
  1333. package/src/shiki/langs/edge.js +1 -0
  1334. package/src/shiki/langs/elixir.js +1 -0
  1335. package/src/shiki/langs/elm.js +1 -0
  1336. package/src/shiki/langs/emacs-lisp.js +1 -0
  1337. package/src/shiki/langs/erb.js +1 -0
  1338. package/src/shiki/langs/erlang.js +1 -0
  1339. package/src/shiki/langs/es-tag-css.js +1 -0
  1340. package/src/shiki/langs/es-tag-glsl.js +1 -0
  1341. package/src/shiki/langs/es-tag-html.js +1 -0
  1342. package/src/shiki/langs/es-tag-sql.js +1 -0
  1343. package/src/shiki/langs/es-tag-xml.js +1 -0
  1344. package/src/shiki/langs/fennel.js +1 -0
  1345. package/src/shiki/langs/fish.js +1 -0
  1346. package/src/shiki/langs/fluent.js +1 -0
  1347. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  1348. package/src/shiki/langs/fortran-free-form.js +1 -0
  1349. package/src/shiki/langs/fsharp.js +1 -0
  1350. package/src/shiki/langs/gdresource.js +1 -0
  1351. package/src/shiki/langs/gdscript.js +1 -0
  1352. package/src/shiki/langs/gdshader.js +1 -0
  1353. package/src/shiki/langs/genie.js +1 -0
  1354. package/src/shiki/langs/gherkin.js +1 -0
  1355. package/src/shiki/langs/git-commit.js +1 -0
  1356. package/src/shiki/langs/git-rebase.js +1 -0
  1357. package/src/shiki/langs/gleam.js +1 -0
  1358. package/src/shiki/langs/glimmer-js.js +1 -0
  1359. package/src/shiki/langs/glimmer-ts.js +1 -0
  1360. package/src/shiki/langs/glsl.js +1 -0
  1361. package/src/shiki/langs/gnuplot.js +1 -0
  1362. package/src/shiki/langs/go.js +1 -0
  1363. package/src/shiki/langs/graphql.js +1 -0
  1364. package/src/shiki/langs/groovy.js +1 -0
  1365. package/src/shiki/langs/hack.js +1 -0
  1366. package/src/shiki/langs/haml.js +1 -0
  1367. package/src/shiki/langs/handlebars.js +1 -0
  1368. package/src/shiki/langs/haskell.js +1 -0
  1369. package/src/shiki/langs/haxe.js +1 -0
  1370. package/src/shiki/langs/hcl.js +1 -0
  1371. package/src/shiki/langs/hjson.js +1 -0
  1372. package/src/shiki/langs/hlsl.js +1 -0
  1373. package/src/shiki/langs/html-derivative.js +1 -0
  1374. package/src/shiki/langs/html.js +1 -0
  1375. package/src/shiki/langs/http.js +1 -0
  1376. package/src/shiki/langs/hxml.js +1 -0
  1377. package/src/shiki/langs/hy.js +1 -0
  1378. package/src/shiki/langs/imba.js +1 -0
  1379. package/src/shiki/langs/ini.js +1 -0
  1380. package/src/shiki/langs/java.js +1 -0
  1381. package/src/shiki/langs/javascript.js +1 -0
  1382. package/src/shiki/langs/jinja-html.js +1 -0
  1383. package/src/shiki/langs/jinja.js +1 -0
  1384. package/src/shiki/langs/jison.js +1 -0
  1385. package/src/shiki/langs/json.js +1 -0
  1386. package/src/shiki/langs/json5.js +1 -0
  1387. package/src/shiki/langs/jsonc.js +1 -0
  1388. package/src/shiki/langs/jsonl.js +1 -0
  1389. package/src/shiki/langs/jsonnet.js +1 -0
  1390. package/src/shiki/langs/jssm.js +1 -0
  1391. package/src/shiki/langs/jsx.js +1 -0
  1392. package/src/shiki/langs/julia.js +1 -0
  1393. package/src/shiki/langs/kotlin.js +1 -0
  1394. package/src/shiki/langs/kusto.js +1 -0
  1395. package/src/shiki/langs/latex.js +1 -0
  1396. package/src/shiki/langs/lean.js +1 -0
  1397. package/src/shiki/langs/less.js +1 -0
  1398. package/src/shiki/langs/liquid.js +1 -0
  1399. package/src/shiki/langs/llvm.js +1 -0
  1400. package/src/shiki/langs/log.js +1 -0
  1401. package/src/shiki/langs/logo.js +1 -0
  1402. package/src/shiki/langs/lua.js +1 -0
  1403. package/src/shiki/langs/luau.js +1 -0
  1404. package/src/shiki/langs/make.js +1 -0
  1405. package/src/shiki/langs/markdown-vue.js +1 -0
  1406. package/src/shiki/langs/markdown.js +1 -0
  1407. package/src/shiki/langs/marko.js +1 -0
  1408. package/src/shiki/langs/matlab.js +1 -0
  1409. package/src/shiki/langs/mdc.js +1 -0
  1410. package/src/shiki/langs/mdx.js +1 -0
  1411. package/src/shiki/langs/mermaid.js +1 -0
  1412. package/src/shiki/langs/mipsasm.js +1 -0
  1413. package/src/shiki/langs/mojo.js +1 -0
  1414. package/src/shiki/langs/move.js +1 -0
  1415. package/src/shiki/langs/narrat.js +1 -0
  1416. package/src/shiki/langs/nextflow.js +1 -0
  1417. package/src/shiki/langs/nginx.js +1 -0
  1418. package/src/shiki/langs/nim.js +1 -0
  1419. package/src/shiki/langs/nix.js +1 -0
  1420. package/src/shiki/langs/nushell.js +1 -0
  1421. package/src/shiki/langs/objective-c.js +1 -0
  1422. package/src/shiki/langs/objective-cpp.js +1 -0
  1423. package/src/shiki/langs/ocaml.js +1 -0
  1424. package/src/shiki/langs/pascal.js +1 -0
  1425. package/src/shiki/langs/perl.js +1 -0
  1426. package/src/shiki/langs/php.js +1 -0
  1427. package/src/shiki/langs/plsql.js +1 -0
  1428. package/src/shiki/langs/po.js +1 -0
  1429. package/src/shiki/langs/polar.js +1 -0
  1430. package/src/shiki/langs/postcss.js +1 -0
  1431. package/src/shiki/langs/powerquery.js +1 -0
  1432. package/src/shiki/langs/powershell.js +1 -0
  1433. package/src/shiki/langs/prisma.js +1 -0
  1434. package/src/shiki/langs/prolog.js +1 -0
  1435. package/src/shiki/langs/proto.js +1 -0
  1436. package/src/shiki/langs/pug.js +1 -0
  1437. package/src/shiki/langs/puppet.js +1 -0
  1438. package/src/shiki/langs/purescript.js +1 -0
  1439. package/src/shiki/langs/python.js +1 -0
  1440. package/src/shiki/langs/qml.js +1 -0
  1441. package/src/shiki/langs/qmldir.js +1 -0
  1442. package/src/shiki/langs/qss.js +1 -0
  1443. package/src/shiki/langs/r.js +1 -0
  1444. package/src/shiki/langs/racket.js +1 -0
  1445. package/src/shiki/langs/raku.js +1 -0
  1446. package/src/shiki/langs/razor.js +1 -0
  1447. package/src/shiki/langs/reg.js +1 -0
  1448. package/src/shiki/langs/regexp.js +1 -0
  1449. package/src/shiki/langs/rel.js +1 -0
  1450. package/src/shiki/langs/riscv.js +1 -0
  1451. package/src/shiki/langs/rst.js +1 -0
  1452. package/src/shiki/langs/ruby.js +1 -0
  1453. package/src/shiki/langs/rust.js +1 -0
  1454. package/src/shiki/langs/sas.js +1 -0
  1455. package/src/shiki/langs/sass.js +1 -0
  1456. package/src/shiki/langs/scala.js +1 -0
  1457. package/src/shiki/langs/scheme.js +1 -0
  1458. package/src/shiki/langs/scss.js +1 -0
  1459. package/src/shiki/langs/sdbl.js +1 -0
  1460. package/src/shiki/langs/shaderlab.js +1 -0
  1461. package/src/shiki/langs/shellscript.js +1 -0
  1462. package/src/shiki/langs/shellsession.js +1 -0
  1463. package/src/shiki/langs/smalltalk.js +1 -0
  1464. package/src/shiki/langs/solidity.js +1 -0
  1465. package/src/shiki/langs/soy.js +1 -0
  1466. package/src/shiki/langs/sparql.js +1 -0
  1467. package/src/shiki/langs/splunk.js +1 -0
  1468. package/src/shiki/langs/sql.js +1 -0
  1469. package/src/shiki/langs/ssh-config.js +1 -0
  1470. package/src/shiki/langs/stata.js +1 -0
  1471. package/src/shiki/langs/stylus.js +1 -0
  1472. package/src/shiki/langs/svelte.js +1 -0
  1473. package/src/shiki/langs/swift.js +1 -0
  1474. package/src/shiki/langs/system-verilog.js +1 -0
  1475. package/src/shiki/langs/systemd.js +1 -0
  1476. package/src/shiki/langs/talonscript.js +1 -0
  1477. package/src/shiki/langs/tasl.js +1 -0
  1478. package/src/shiki/langs/tcl.js +1 -0
  1479. package/src/shiki/langs/templ.js +1 -0
  1480. package/src/shiki/langs/terraform.js +1 -0
  1481. package/src/shiki/langs/tex.js +1 -0
  1482. package/src/shiki/langs/toml.js +1 -0
  1483. package/src/shiki/langs/ts-tags.js +1 -0
  1484. package/src/shiki/langs/tsv.js +1 -0
  1485. package/src/shiki/langs/tsx.js +1 -0
  1486. package/src/shiki/langs/turtle.js +1 -0
  1487. package/src/shiki/langs/twig.js +1 -0
  1488. package/src/shiki/langs/typescript.js +1 -0
  1489. package/src/shiki/langs/typespec.js +1 -0
  1490. package/src/shiki/langs/typst.js +1 -0
  1491. package/src/shiki/langs/v.js +1 -0
  1492. package/src/shiki/langs/vala.js +1 -0
  1493. package/src/shiki/langs/vb.js +1 -0
  1494. package/src/shiki/langs/verilog.js +1 -0
  1495. package/src/shiki/langs/vhdl.js +1 -0
  1496. package/src/shiki/langs/viml.js +1 -0
  1497. package/src/shiki/langs/vue-directives.js +1 -0
  1498. package/src/shiki/langs/vue-html.js +1 -0
  1499. package/src/shiki/langs/vue-interpolations.js +1 -0
  1500. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  1501. package/src/shiki/langs/vue.js +1 -0
  1502. package/src/shiki/langs/vyper.js +1 -0
  1503. package/src/shiki/langs/wasm.js +1 -0
  1504. package/src/shiki/langs/wenyan.js +1 -0
  1505. package/src/shiki/langs/wgsl.js +1 -0
  1506. package/src/shiki/langs/wikitext.js +1 -0
  1507. package/src/shiki/langs/wit.js +1 -0
  1508. package/src/shiki/langs/wolfram.js +1 -0
  1509. package/src/shiki/langs/xml.js +1 -0
  1510. package/src/shiki/langs/xsl.js +1 -0
  1511. package/src/shiki/langs/yaml.js +1 -0
  1512. package/src/shiki/langs/zenscript.js +1 -0
  1513. package/src/shiki/langs/zig.js +1 -0
  1514. package/src/shiki/themes/andromeeda.js +1 -0
  1515. package/src/shiki/themes/aurora-x.js +1 -0
  1516. package/src/shiki/themes/ayu-dark.js +1 -0
  1517. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  1518. package/src/shiki/themes/catppuccin-latte.js +1 -0
  1519. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  1520. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  1521. package/src/shiki/themes/dark-plus.js +1 -0
  1522. package/src/shiki/themes/dracula-soft.js +1 -0
  1523. package/src/shiki/themes/dracula.js +1 -0
  1524. package/src/shiki/themes/everforest-dark.js +1 -0
  1525. package/src/shiki/themes/everforest-light.js +1 -0
  1526. package/src/shiki/themes/github-dark-default.js +1 -0
  1527. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  1528. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  1529. package/src/shiki/themes/github-dark.js +1 -0
  1530. package/src/shiki/themes/github-light-default.js +1 -0
  1531. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  1532. package/src/shiki/themes/github-light.js +1 -0
  1533. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  1534. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  1535. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  1536. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  1537. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  1538. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  1539. package/src/shiki/themes/houston.js +1 -0
  1540. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  1541. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  1542. package/src/shiki/themes/kanagawa-wave.js +1 -0
  1543. package/src/shiki/themes/laserwave.js +1 -0
  1544. package/src/shiki/themes/light-plus.js +1 -0
  1545. package/src/shiki/themes/material-theme-darker.js +1 -0
  1546. package/src/shiki/themes/material-theme-lighter.js +1 -0
  1547. package/src/shiki/themes/material-theme-ocean.js +1 -0
  1548. package/src/shiki/themes/material-theme-palenight.js +1 -0
  1549. package/src/shiki/themes/material-theme.js +1 -0
  1550. package/src/shiki/themes/min-dark.js +1 -0
  1551. package/src/shiki/themes/min-light.js +1 -0
  1552. package/src/shiki/themes/monokai.js +1 -0
  1553. package/src/shiki/themes/night-owl.js +1 -0
  1554. package/src/shiki/themes/nord.js +1 -0
  1555. package/src/shiki/themes/one-dark-pro.js +1 -0
  1556. package/src/shiki/themes/one-light.js +1 -0
  1557. package/src/shiki/themes/plastic.js +1 -0
  1558. package/src/shiki/themes/poimandres.js +1 -0
  1559. package/src/shiki/themes/red.js +1 -0
  1560. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  1561. package/src/shiki/themes/rose-pine-moon.js +1 -0
  1562. package/src/shiki/themes/rose-pine.js +1 -0
  1563. package/src/shiki/themes/slack-dark.js +1 -0
  1564. package/src/shiki/themes/slack-ochin.js +1 -0
  1565. package/src/shiki/themes/snazzy-light.js +1 -0
  1566. package/src/shiki/themes/solarized-dark.js +1 -0
  1567. package/src/shiki/themes/solarized-light.js +1 -0
  1568. package/src/shiki/themes/synthwave-84.js +1 -0
  1569. package/src/shiki/themes/tokyo-night.js +1 -0
  1570. package/src/shiki/themes/vesper.js +1 -0
  1571. package/src/shiki/themes/vitesse-black.js +1 -0
  1572. package/src/shiki/themes/vitesse-dark.js +1 -0
  1573. package/src/shiki/themes/vitesse-light.js +1 -0
  1574. package/LICENSE.md +0 -9
  1575. package/client.d.ts +0 -1
  1576. package/dist/app/tailwind.d.ts +0 -3
  1577. package/dist/app/tailwind.js +0 -65
  1578. package/dist/app/tailwind.js.map +0 -1
  1579. package/dist/internal.d.ts +0 -1
  1580. package/dist/internal.js +0 -2
  1581. package/dist/internal.js.map +0 -1
  1582. package/dist/lib/components/DevPortal.d.ts +0 -7
  1583. package/dist/lib/components/DevPortal.js +0 -54
  1584. package/dist/lib/components/DevPortal.js.map +0 -1
  1585. package/dist/lib/components/Dialog.js +0 -23
  1586. package/dist/lib/components/Dialog.js.map +0 -1
  1587. package/dist/lib/components/Select.js +0 -27
  1588. package/dist/lib/components/Select.js.map +0 -1
  1589. package/dist/lib/components/SlotletProvider.d.ts +0 -9
  1590. package/dist/lib/components/SlotletProvider.js +0 -16
  1591. package/dist/lib/components/SlotletProvider.js.map +0 -1
  1592. package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
  1593. package/dist/lib/components/SyntaxHighlight.js +0 -50
  1594. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  1595. package/dist/lib/components/context/PluginSystem.js +0 -2
  1596. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1597. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  1598. package/dist/lib/components/context/ThemeContext.js +0 -7
  1599. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  1600. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  1601. package/dist/lib/components/context/ThemeProvider.js +0 -23
  1602. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  1603. package/dist/lib/core/DevPortalContext.d.ts +0 -78
  1604. package/dist/lib/core/DevPortalContext.js +0 -49
  1605. package/dist/lib/core/DevPortalContext.js.map +0 -1
  1606. package/dist/lib/plugins/custom-page/index.d.ts +0 -8
  1607. package/dist/lib/plugins/custom-page/index.js +0 -12
  1608. package/dist/lib/plugins/custom-page/index.js.map +0 -1
  1609. package/dist/lib/plugins/markdown/Toc.js +0 -48
  1610. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  1611. package/dist/lib/plugins/markdown/generateRoutes.d.ts +0 -3
  1612. package/dist/lib/plugins/markdown/generateRoutes.js +0 -21
  1613. package/dist/lib/plugins/markdown/generateRoutes.js.map +0 -1
  1614. package/dist/lib/plugins/openapi/Route.d.ts +0 -6
  1615. package/dist/lib/plugins/openapi/Route.js +0 -8
  1616. package/dist/lib/plugins/openapi/Route.js.map +0 -1
  1617. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
  1618. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
  1619. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  1620. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  1621. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
  1622. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  1623. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  1624. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  1625. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  1626. package/dist/lib/plugins/openapi/client/worker.js +0 -20
  1627. package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
  1628. package/dist/lib/plugins/openapi/playground/Editor.d.ts +0 -1
  1629. package/dist/lib/plugins/openapi/playground/Editor.js +0 -5
  1630. package/dist/lib/plugins/openapi/playground/Editor.js.map +0 -1
  1631. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
  1632. package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
  1633. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
  1634. package/dist/lib/plugins/openapi/schema/SchemaComponents.d.ts +0 -13
  1635. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
  1636. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
  1637. package/dist/lib/plugins/openapi/util/urql.d.ts +0 -7
  1638. package/dist/lib/plugins/openapi/util/urql.js +0 -8
  1639. package/dist/lib/plugins/openapi/util/urql.js.map +0 -1
  1640. package/dist/lib/plugins/openapi-worker.d.ts +0 -1
  1641. package/dist/lib/plugins/openapi-worker.js +0 -2
  1642. package/dist/lib/plugins/openapi-worker.js.map +0 -1
  1643. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  1644. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  1645. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  1646. package/dist/lib/themeToggle.d.ts +0 -1
  1647. package/dist/lib/themeToggle.js +0 -7
  1648. package/dist/lib/themeToggle.js.map +0 -1
  1649. package/dist/lib/ui/Note.d.ts +0 -8
  1650. package/dist/lib/ui/Note.js +0 -23
  1651. package/dist/lib/ui/Note.js.map +0 -1
  1652. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  1653. package/dist/lib/util/createWaitForNotify.js +0 -15
  1654. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  1655. package/dist/vite/plugin-custom-css.d.ts +0 -6
  1656. package/dist/vite/plugin-custom-css.js +0 -55
  1657. package/dist/vite/plugin-custom-css.js.map +0 -1
  1658. package/dist/vite/plugin-html-transform.d.ts +0 -2
  1659. package/dist/vite/plugin-html-transform.js +0 -15
  1660. package/dist/vite/plugin-html-transform.js.map +0 -1
  1661. package/dist/vite/prerender.d.ts +0 -17
  1662. package/dist/vite/prerender.js +0 -87
  1663. package/dist/vite/prerender.js.map +0 -1
  1664. package/lib/AuthenticationPlugin-Bx9FK124.js +0 -55
  1665. package/lib/AuthenticationPlugin-Bx9FK124.js.map +0 -1
  1666. package/lib/CategoryHeading-ovR-zHRq.js +0 -10
  1667. package/lib/CategoryHeading-ovR-zHRq.js.map +0 -1
  1668. package/lib/DeveloperHint-YeWHKvyr.js +0 -16
  1669. package/lib/DeveloperHint-YeWHKvyr.js.map +0 -1
  1670. package/lib/ErrorPage-CsZAN_za.js +0 -16
  1671. package/lib/ErrorPage-CsZAN_za.js.map +0 -1
  1672. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  1673. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  1674. package/lib/Input-CtVUl3eT.js +0 -2198
  1675. package/lib/Input-CtVUl3eT.js.map +0 -1
  1676. package/lib/Markdown-DapSf3wG.js +0 -20281
  1677. package/lib/Markdown-DapSf3wG.js.map +0 -1
  1678. package/lib/MdxPage-BqBWsXZ1.js +0 -172
  1679. package/lib/MdxPage-BqBWsXZ1.js.map +0 -1
  1680. package/lib/OperationList-CYrmxPa8.js +0 -602
  1681. package/lib/OperationList-CYrmxPa8.js.map +0 -1
  1682. package/lib/Route-Q5mqNQrv.js +0 -14
  1683. package/lib/Route-Q5mqNQrv.js.map +0 -1
  1684. package/lib/SidebarBadge-Dx7jtnoA.js +0 -498
  1685. package/lib/SidebarBadge-Dx7jtnoA.js.map +0 -1
  1686. package/lib/SlotletProvider-D3UD5Go3.js +0 -238
  1687. package/lib/SlotletProvider-D3UD5Go3.js.map +0 -1
  1688. package/lib/Spinner-3cQDBVGr.js +0 -7
  1689. package/lib/Spinner-3cQDBVGr.js.map +0 -1
  1690. package/lib/ZudokuContext-cr-pTRY1.js +0 -1084
  1691. package/lib/ZudokuContext-cr-pTRY1.js.map +0 -1
  1692. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  1693. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  1694. package/lib/assets/index-B9EWVYfo.js +0 -4790
  1695. package/lib/assets/index-B9EWVYfo.js.map +0 -1
  1696. package/lib/assets/worker-BP8Uzflt.js +0 -17916
  1697. package/lib/assets/worker-BP8Uzflt.js.map +0 -1
  1698. package/lib/index-BG0g4WW0.js +0 -1771
  1699. package/lib/index-BG0g4WW0.js.map +0 -1
  1700. package/lib/index-BlJ2rj99.js +0 -5815
  1701. package/lib/index-BlJ2rj99.js.map +0 -1
  1702. package/lib/index-BngPzhKn.js +0 -124
  1703. package/lib/index-BngPzhKn.js.map +0 -1
  1704. package/lib/index-CLd8ycZz.js +0 -4790
  1705. package/lib/index-CLd8ycZz.js.map +0 -1
  1706. package/lib/index-Dolisrci.js +0 -2814
  1707. package/lib/index-Dolisrci.js.map +0 -1
  1708. package/lib/index-LNp6rxyU.js +0 -2094
  1709. package/lib/index-LNp6rxyU.js.map +0 -1
  1710. package/lib/joinPath-B7kNnUX4.js +0 -8
  1711. package/lib/joinPath-B7kNnUX4.js.map +0 -1
  1712. package/lib/jsx-runtime-B6kdoens.js +0 -635
  1713. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  1714. package/lib/prism-bash.min-DadFsM4Z.js +0 -7
  1715. package/lib/prism-bash.min-DadFsM4Z.js.map +0 -1
  1716. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  1717. package/lib/prism-csharp.min-Yizuc34Y.js.map +0 -1
  1718. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  1719. package/lib/prism-java.min-d5iT_mOd.js.map +0 -1
  1720. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  1721. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  1722. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  1723. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  1724. package/lib/prism-markdown.min-F3U-vPBi.js +0 -61
  1725. package/lib/prism-markdown.min-F3U-vPBi.js.map +0 -1
  1726. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  1727. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  1728. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  1729. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  1730. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  1731. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  1732. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  1733. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
  1734. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  1735. package/lib/prism-ruby.min-C7LwcKyz.js.map +0 -1
  1736. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  1737. package/lib/prism-typescript.min-oSVeWCAd.js.map +0 -1
  1738. package/lib/router-D2p7Olpn.js +0 -2971
  1739. package/lib/router-D2p7Olpn.js.map +0 -1
  1740. package/lib/state-hNe1dw4B.js +0 -548
  1741. package/lib/state-hNe1dw4B.js.map +0 -1
  1742. package/lib/urql-YhcsXYy8.js +0 -1591
  1743. package/lib/urql-YhcsXYy8.js.map +0 -1
  1744. package/lib/utils-ByIc_KIM.js +0 -749
  1745. package/lib/utils-ByIc_KIM.js.map +0 -1
  1746. package/lib/zudoku.openapi-worker.js +0 -16059
  1747. package/lib/zudoku.openapi-worker.js.map +0 -1
  1748. package/lib/zudoku.plugin-custom-page.js +0 -13
  1749. package/lib/zudoku.plugin-custom-page.js.map +0 -1
  1750. package/src/app/tailwind.ts +0 -68
  1751. package/src/lib/components/DevPortal.tsx +0 -111
  1752. package/src/lib/components/Dialog.tsx +0 -119
  1753. package/src/lib/components/Select.tsx +0 -157
  1754. package/src/lib/components/SlotletProvider.tsx +0 -30
  1755. package/src/lib/components/SyntaxHighlight.tsx +0 -122
  1756. package/src/lib/components/context/PluginSystem.ts +0 -0
  1757. package/src/lib/components/context/ThemeContext.tsx +0 -8
  1758. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  1759. package/src/lib/core/DevPortalContext.ts +0 -135
  1760. package/src/lib/plugins/custom-page/index.tsx +0 -22
  1761. package/src/lib/plugins/markdown/Toc.tsx +0 -135
  1762. package/src/lib/plugins/markdown/generateRoutes.tsx +0 -38
  1763. package/src/lib/plugins/openapi/Route.tsx +0 -21
  1764. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -56
  1765. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -80
  1766. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  1767. package/src/lib/plugins/openapi/client/worker.ts +0 -30
  1768. package/src/lib/plugins/openapi/playground/Editor.tsx +0 -4
  1769. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
  1770. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
  1771. package/src/lib/plugins/openapi/util/urql.ts +0 -8
  1772. package/src/lib/plugins/openapi-worker.ts +0 -1
  1773. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
  1774. package/src/lib/themeToggle.ts +0 -7
  1775. package/src/lib/ui/Note.tsx +0 -58
  1776. package/src/lib/util/createWaitForNotify.ts +0 -18
  1777. /package/dist/lib/components/{context/PluginSystem.d.ts → Slot.test.d.ts} +0 -0
  1778. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  1779. /package/dist/lib/{plugins/openapi/client/worker.d.ts → hooks/useEvent.test.d.ts} +0 -0
  1780. /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
  1781. /package/dist/lib/{components → ui}/Select.d.ts +0 -0
@@ -1,2814 +0,0 @@
1
- var wt = (e) => {
2
- throw TypeError(e);
3
- };
4
- var He = (e, t, n) => t.has(e) || wt("Cannot " + n);
5
- var L = (e, t, n) => (He(e, t, "read from private field"), n ? n.call(e) : t.get(e)), we = (e, t, n) => t.has(e) ? wt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), xe = (e, t, n, r) => (He(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), q = (e, t, n) => (He(e, t, "access private method"), n);
6
- import { j as P } from "./jsx-runtime-B6kdoens.js";
7
- import { a as Nn, e as Dn } from "./Markdown-DapSf3wG.js";
8
- import * as u from "react";
9
- import ie, { useLayoutEffect as kn, useEffect as Fn, useState as In } from "react";
10
- import { R as Wn, y as _n, n as Bn, u as jn } from "./ZudokuContext-cr-pTRY1.js";
11
- import { u as $n } from "./state-hNe1dw4B.js";
12
- import * as Ht from "react-dom";
13
- import Hn from "react-dom";
14
- function Vn(e, t) {
15
- typeof e == "function" ? e(t) : e != null && (e.current = t);
16
- }
17
- function Vt(...e) {
18
- return (t) => e.forEach((n) => Vn(n, t));
19
- }
20
- function ce(...e) {
21
- return u.useCallback(Vt(...e), e);
22
- }
23
- var be = u.forwardRef((e, t) => {
24
- const { children: n, ...r } = e, o = u.Children.toArray(n), i = o.find(Un);
25
- if (i) {
26
- const s = i.props.children, c = o.map((a) => a === i ? u.Children.count(s) > 1 ? u.Children.only(null) : u.isValidElement(s) ? s.props.children : null : a);
27
- return /* @__PURE__ */ P.jsx(Qe, { ...r, ref: t, children: u.isValidElement(s) ? u.cloneElement(s, void 0, c) : null });
28
- }
29
- return /* @__PURE__ */ P.jsx(Qe, { ...r, ref: t, children: n });
30
- });
31
- be.displayName = "Slot";
32
- var Qe = u.forwardRef((e, t) => {
33
- const { children: n, ...r } = e;
34
- if (u.isValidElement(n)) {
35
- const o = Xn(n);
36
- return u.cloneElement(n, {
37
- ...Yn(r, n.props),
38
- // @ts-ignore
39
- ref: t ? Vt(t, o) : o
40
- });
41
- }
42
- return u.Children.count(n) > 1 ? u.Children.only(null) : null;
43
- });
44
- Qe.displayName = "SlotClone";
45
- var zn = ({ children: e }) => /* @__PURE__ */ P.jsx(P.Fragment, { children: e });
46
- function Un(e) {
47
- return u.isValidElement(e) && e.type === zn;
48
- }
49
- function Yn(e, t) {
50
- const n = { ...t };
51
- for (const r in t) {
52
- const o = e[r], i = t[r];
53
- /^on[A-Z]/.test(r) ? o && i ? n[r] = (...c) => {
54
- i(...c), o(...c);
55
- } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...i } : r === "className" && (n[r] = [o, i].filter(Boolean).join(" "));
56
- }
57
- return { ...e, ...n };
58
- }
59
- function Xn(e) {
60
- var r, o;
61
- let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
62
- return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
63
- }
64
- const Kn = Dn(
65
- "not-prose inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
66
- {
67
- variants: {
68
- variant: {
69
- default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
70
- destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
71
- outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
72
- secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
73
- ghost: "hover:bg-accent hover:text-accent-foreground",
74
- link: "text-primary underline-offset-4 hover:underline"
75
- },
76
- size: {
77
- default: "h-9 px-4 py-2",
78
- sm: "h-8 rounded-md px-3 text-xs",
79
- lg: "h-10 rounded-md px-8",
80
- xl: "h-14 rounded-lg px-10 text-lg",
81
- icon: "h-9 w-9"
82
- }
83
- },
84
- defaultVariants: {
85
- variant: "default",
86
- size: "default"
87
- }
88
- }
89
- ), Gn = u.forwardRef(
90
- ({ className: e, variant: t, size: n, asChild: r = !1, ...o }, i) => {
91
- const s = r ? be : "button";
92
- return /* @__PURE__ */ P.jsx(
93
- s,
94
- {
95
- className: Nn(Kn({ variant: t, size: n, className: e })),
96
- ref: i,
97
- ...o
98
- }
99
- );
100
- }
101
- );
102
- Gn.displayName = "Button";
103
- var H, F, se, V, Q, $t, wi = ($t = class extends Wn {
104
- constructor(t) {
105
- super();
106
- we(this, V);
107
- we(this, H);
108
- we(this, F);
109
- we(this, se);
110
- this.mutationId = t.mutationId, xe(this, F, t.mutationCache), xe(this, H, []), this.state = t.state || Zn(), this.setOptions(t.options), this.scheduleGc();
111
- }
112
- setOptions(t) {
113
- this.options = t, this.updateGcTime(this.options.gcTime);
114
- }
115
- get meta() {
116
- return this.options.meta;
117
- }
118
- addObserver(t) {
119
- L(this, H).includes(t) || (L(this, H).push(t), this.clearGcTimeout(), L(this, F).notify({
120
- type: "observerAdded",
121
- mutation: this,
122
- observer: t
123
- }));
124
- }
125
- removeObserver(t) {
126
- xe(this, H, L(this, H).filter((n) => n !== t)), this.scheduleGc(), L(this, F).notify({
127
- type: "observerRemoved",
128
- mutation: this,
129
- observer: t
130
- });
131
- }
132
- optionalRemove() {
133
- L(this, H).length || (this.state.status === "pending" ? this.scheduleGc() : L(this, F).remove(this));
134
- }
135
- continue() {
136
- var t;
137
- return ((t = L(this, se)) == null ? void 0 : t.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
138
- this.execute(this.state.variables);
139
- }
140
- async execute(t) {
141
- var o, i, s, c, a, l, h, d, p, m, g, f, v, y, w, b, x, E, C, S;
142
- xe(this, se, _n({
143
- fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
144
- onFail: (A, O) => {
145
- q(this, V, Q).call(this, { type: "failed", failureCount: A, error: O });
146
- },
147
- onPause: () => {
148
- q(this, V, Q).call(this, { type: "pause" });
149
- },
150
- onContinue: () => {
151
- q(this, V, Q).call(this, { type: "continue" });
152
- },
153
- retry: this.options.retry ?? 0,
154
- retryDelay: this.options.retryDelay,
155
- networkMode: this.options.networkMode,
156
- canRun: () => L(this, F).canRun(this)
157
- }));
158
- const n = this.state.status === "pending", r = !L(this, se).canStart();
159
- try {
160
- if (!n) {
161
- q(this, V, Q).call(this, { type: "pending", variables: t, isPaused: r }), await ((i = (o = L(this, F).config).onMutate) == null ? void 0 : i.call(
162
- o,
163
- t,
164
- this
165
- ));
166
- const O = await ((c = (s = this.options).onMutate) == null ? void 0 : c.call(s, t));
167
- O !== this.state.context && q(this, V, Q).call(this, {
168
- type: "pending",
169
- context: O,
170
- variables: t,
171
- isPaused: r
172
- });
173
- }
174
- const A = await L(this, se).start();
175
- return await ((l = (a = L(this, F).config).onSuccess) == null ? void 0 : l.call(
176
- a,
177
- A,
178
- t,
179
- this.state.context,
180
- this
181
- )), await ((d = (h = this.options).onSuccess) == null ? void 0 : d.call(h, A, t, this.state.context)), await ((m = (p = L(this, F).config).onSettled) == null ? void 0 : m.call(
182
- p,
183
- A,
184
- null,
185
- this.state.variables,
186
- this.state.context,
187
- this
188
- )), await ((f = (g = this.options).onSettled) == null ? void 0 : f.call(g, A, null, t, this.state.context)), q(this, V, Q).call(this, { type: "success", data: A }), A;
189
- } catch (A) {
190
- try {
191
- throw await ((y = (v = L(this, F).config).onError) == null ? void 0 : y.call(
192
- v,
193
- A,
194
- t,
195
- this.state.context,
196
- this
197
- )), await ((b = (w = this.options).onError) == null ? void 0 : b.call(
198
- w,
199
- A,
200
- t,
201
- this.state.context
202
- )), await ((E = (x = L(this, F).config).onSettled) == null ? void 0 : E.call(
203
- x,
204
- void 0,
205
- A,
206
- this.state.variables,
207
- this.state.context,
208
- this
209
- )), await ((S = (C = this.options).onSettled) == null ? void 0 : S.call(
210
- C,
211
- void 0,
212
- A,
213
- t,
214
- this.state.context
215
- )), A;
216
- } finally {
217
- q(this, V, Q).call(this, { type: "error", error: A });
218
- }
219
- } finally {
220
- L(this, F).runNext(this);
221
- }
222
- }
223
- }, H = new WeakMap(), F = new WeakMap(), se = new WeakMap(), V = new WeakSet(), Q = function(t) {
224
- const n = (r) => {
225
- switch (t.type) {
226
- case "failed":
227
- return {
228
- ...r,
229
- failureCount: t.failureCount,
230
- failureReason: t.error
231
- };
232
- case "pause":
233
- return {
234
- ...r,
235
- isPaused: !0
236
- };
237
- case "continue":
238
- return {
239
- ...r,
240
- isPaused: !1
241
- };
242
- case "pending":
243
- return {
244
- ...r,
245
- context: t.context,
246
- data: void 0,
247
- failureCount: 0,
248
- failureReason: null,
249
- error: null,
250
- isPaused: t.isPaused,
251
- status: "pending",
252
- variables: t.variables,
253
- submittedAt: Date.now()
254
- };
255
- case "success":
256
- return {
257
- ...r,
258
- data: t.data,
259
- failureCount: 0,
260
- failureReason: null,
261
- error: null,
262
- status: "success",
263
- isPaused: !1
264
- };
265
- case "error":
266
- return {
267
- ...r,
268
- data: void 0,
269
- error: t.error,
270
- failureCount: r.failureCount + 1,
271
- failureReason: t.error,
272
- isPaused: !1,
273
- status: "error"
274
- };
275
- }
276
- };
277
- this.state = n(this.state), Bn.batch(() => {
278
- L(this, H).forEach((r) => {
279
- r.onMutationUpdate(t);
280
- }), L(this, F).notify({
281
- mutation: this,
282
- type: "updated",
283
- action: t
284
- });
285
- });
286
- }, $t);
287
- function Zn() {
288
- return {
289
- context: void 0,
290
- data: void 0,
291
- error: null,
292
- failureCount: 0,
293
- failureReason: null,
294
- isPaused: !1,
295
- status: "idle",
296
- variables: void 0,
297
- submittedAt: 0
298
- };
299
- }
300
- const xi = () => {
301
- const { authentication: e } = jn(), t = $n(), n = typeof e < "u";
302
- return {
303
- isAuthEnabled: n,
304
- isPending: t.isPending,
305
- profile: t.profile,
306
- isAuthenticated: t.profile,
307
- login: async () => {
308
- if (!n)
309
- throw new Error("Authentication is not enabled.");
310
- await e.signIn();
311
- },
312
- logout: async () => {
313
- if (!n)
314
- throw new Error("Authentication is not enabled.");
315
- await e.signOut(), window.location.href = "/";
316
- }
317
- };
318
- };
319
- function Ve(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
320
- return function(o) {
321
- if (e == null || e(o), n === !1 || !o.defaultPrevented)
322
- return t == null ? void 0 : t(o);
323
- };
324
- }
325
- function bi(e, t) {
326
- const n = u.createContext(t);
327
- function r(i) {
328
- const { children: s, ...c } = i, a = u.useMemo(() => c, Object.values(c));
329
- return /* @__PURE__ */ P.jsx(n.Provider, { value: a, children: s });
330
- }
331
- function o(i) {
332
- const s = u.useContext(n);
333
- if (s) return s;
334
- if (t !== void 0) return t;
335
- throw new Error(`\`${i}\` must be used within \`${e}\``);
336
- }
337
- return r.displayName = e + "Provider", [r, o];
338
- }
339
- function zt(e, t = []) {
340
- let n = [];
341
- function r(i, s) {
342
- const c = u.createContext(s), a = n.length;
343
- n = [...n, s];
344
- function l(d) {
345
- const { scope: p, children: m, ...g } = d, f = (p == null ? void 0 : p[e][a]) || c, v = u.useMemo(() => g, Object.values(g));
346
- return /* @__PURE__ */ P.jsx(f.Provider, { value: v, children: m });
347
- }
348
- function h(d, p) {
349
- const m = (p == null ? void 0 : p[e][a]) || c, g = u.useContext(m);
350
- if (g) return g;
351
- if (s !== void 0) return s;
352
- throw new Error(`\`${d}\` must be used within \`${i}\``);
353
- }
354
- return l.displayName = i + "Provider", [l, h];
355
- }
356
- const o = () => {
357
- const i = n.map((s) => u.createContext(s));
358
- return function(c) {
359
- const a = (c == null ? void 0 : c[e]) || i;
360
- return u.useMemo(
361
- () => ({ [`__scope${e}`]: { ...c, [e]: a } }),
362
- [c, a]
363
- );
364
- };
365
- };
366
- return o.scopeName = e, [r, qn(o, ...t)];
367
- }
368
- function qn(...e) {
369
- const t = e[0];
370
- if (e.length === 1) return t;
371
- const n = () => {
372
- const r = e.map((o) => ({
373
- useScope: o(),
374
- scopeName: o.scopeName
375
- }));
376
- return function(i) {
377
- const s = r.reduce((c, { useScope: a, scopeName: l }) => {
378
- const d = a(i)[`__scope${l}`];
379
- return { ...c, ...d };
380
- }, {});
381
- return u.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
382
- };
383
- };
384
- return n.scopeName = t.scopeName, n;
385
- }
386
- function ee(e) {
387
- const t = u.useRef(e);
388
- return u.useEffect(() => {
389
- t.current = e;
390
- }), u.useMemo(() => (...n) => {
391
- var r;
392
- return (r = t.current) == null ? void 0 : r.call(t, ...n);
393
- }, []);
394
- }
395
- function Ei({
396
- prop: e,
397
- defaultProp: t,
398
- onChange: n = () => {
399
- }
400
- }) {
401
- const [r, o] = Qn({ defaultProp: t, onChange: n }), i = e !== void 0, s = i ? e : r, c = ee(n), a = u.useCallback(
402
- (l) => {
403
- if (i) {
404
- const d = typeof l == "function" ? l(e) : l;
405
- d !== e && c(d);
406
- } else
407
- o(l);
408
- },
409
- [i, e, o, c]
410
- );
411
- return [s, a];
412
- }
413
- function Qn({
414
- defaultProp: e,
415
- onChange: t
416
- }) {
417
- const n = u.useState(e), [r] = n, o = u.useRef(r), i = ee(t);
418
- return u.useEffect(() => {
419
- o.current !== r && (i(r), o.current = r);
420
- }, [r, o, i]), n;
421
- }
422
- var Jn = [
423
- "a",
424
- "button",
425
- "div",
426
- "form",
427
- "h2",
428
- "h3",
429
- "img",
430
- "input",
431
- "label",
432
- "li",
433
- "nav",
434
- "ol",
435
- "p",
436
- "span",
437
- "svg",
438
- "ul"
439
- ], oe = Jn.reduce((e, t) => {
440
- const n = u.forwardRef((r, o) => {
441
- const { asChild: i, ...s } = r, c = i ? be : t;
442
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ P.jsx(c, { ...s, ref: o });
443
- });
444
- return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
445
- }, {});
446
- function er(e, t) {
447
- e && Ht.flushSync(() => e.dispatchEvent(t));
448
- }
449
- function Ci(e) {
450
- const t = e + "CollectionProvider", [n, r] = zt(t), [o, i] = n(
451
- t,
452
- { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
453
- ), s = (m) => {
454
- const { scope: g, children: f } = m, v = ie.useRef(null), y = ie.useRef(/* @__PURE__ */ new Map()).current;
455
- return /* @__PURE__ */ P.jsx(o, { scope: g, itemMap: y, collectionRef: v, children: f });
456
- };
457
- s.displayName = t;
458
- const c = e + "CollectionSlot", a = ie.forwardRef(
459
- (m, g) => {
460
- const { scope: f, children: v } = m, y = i(c, f), w = ce(g, y.collectionRef);
461
- return /* @__PURE__ */ P.jsx(be, { ref: w, children: v });
462
- }
463
- );
464
- a.displayName = c;
465
- const l = e + "CollectionItemSlot", h = "data-radix-collection-item", d = ie.forwardRef(
466
- (m, g) => {
467
- const { scope: f, children: v, ...y } = m, w = ie.useRef(null), b = ce(g, w), x = i(l, f);
468
- return ie.useEffect(() => (x.itemMap.set(w, { ref: w, ...y }), () => void x.itemMap.delete(w))), /* @__PURE__ */ P.jsx(be, { [h]: "", ref: b, children: v });
469
- }
470
- );
471
- d.displayName = l;
472
- function p(m) {
473
- const g = i(e + "CollectionConsumer", m);
474
- return ie.useCallback(() => {
475
- const v = g.collectionRef.current;
476
- if (!v) return [];
477
- const y = Array.from(v.querySelectorAll(`[${h}]`));
478
- return Array.from(g.itemMap.values()).sort(
479
- (x, E) => y.indexOf(x.ref.current) - y.indexOf(E.ref.current)
480
- );
481
- }, [g.collectionRef, g.itemMap]);
482
- }
483
- return [
484
- { Provider: s, Slot: a, ItemSlot: d },
485
- p,
486
- r
487
- ];
488
- }
489
- var tr = u.createContext(void 0);
490
- function Si(e) {
491
- const t = u.useContext(tr);
492
- return e || t || "ltr";
493
- }
494
- function nr(e, t = globalThis == null ? void 0 : globalThis.document) {
495
- const n = ee(e);
496
- u.useEffect(() => {
497
- const r = (o) => {
498
- o.key === "Escape" && n(o);
499
- };
500
- return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
501
- }, [n, t]);
502
- }
503
- var rr = "DismissableLayer", Je = "dismissableLayer.update", or = "dismissableLayer.pointerDownOutside", ir = "dismissableLayer.focusOutside", xt, Ut = u.createContext({
504
- layers: /* @__PURE__ */ new Set(),
505
- layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
506
- branches: /* @__PURE__ */ new Set()
507
- }), sr = u.forwardRef(
508
- (e, t) => {
509
- const {
510
- disableOutsidePointerEvents: n = !1,
511
- onEscapeKeyDown: r,
512
- onPointerDownOutside: o,
513
- onFocusOutside: i,
514
- onInteractOutside: s,
515
- onDismiss: c,
516
- ...a
517
- } = e, l = u.useContext(Ut), [h, d] = u.useState(null), p = (h == null ? void 0 : h.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = u.useState({}), g = ce(t, (S) => d(S)), f = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = f.indexOf(v), w = h ? f.indexOf(h) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, x = w >= y, E = lr((S) => {
518
- const A = S.target, O = [...l.branches].some((D) => D.contains(A));
519
- !x || O || (o == null || o(S), s == null || s(S), S.defaultPrevented || c == null || c());
520
- }, p), C = ur((S) => {
521
- const A = S.target;
522
- [...l.branches].some((D) => D.contains(A)) || (i == null || i(S), s == null || s(S), S.defaultPrevented || c == null || c());
523
- }, p);
524
- return nr((S) => {
525
- w === l.layers.size - 1 && (r == null || r(S), !S.defaultPrevented && c && (S.preventDefault(), c()));
526
- }, p), u.useEffect(() => {
527
- if (h)
528
- return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (xt = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(h)), l.layers.add(h), bt(), () => {
529
- n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = xt);
530
- };
531
- }, [h, p, n, l]), u.useEffect(() => () => {
532
- h && (l.layers.delete(h), l.layersWithOutsidePointerEventsDisabled.delete(h), bt());
533
- }, [h, l]), u.useEffect(() => {
534
- const S = () => m({});
535
- return document.addEventListener(Je, S), () => document.removeEventListener(Je, S);
536
- }, []), /* @__PURE__ */ P.jsx(
537
- oe.div,
538
- {
539
- ...a,
540
- ref: g,
541
- style: {
542
- pointerEvents: b ? x ? "auto" : "none" : void 0,
543
- ...e.style
544
- },
545
- onFocusCapture: Ve(e.onFocusCapture, C.onFocusCapture),
546
- onBlurCapture: Ve(e.onBlurCapture, C.onBlurCapture),
547
- onPointerDownCapture: Ve(
548
- e.onPointerDownCapture,
549
- E.onPointerDownCapture
550
- )
551
- }
552
- );
553
- }
554
- );
555
- sr.displayName = rr;
556
- var cr = "DismissableLayerBranch", ar = u.forwardRef((e, t) => {
557
- const n = u.useContext(Ut), r = u.useRef(null), o = ce(t, r);
558
- return u.useEffect(() => {
559
- const i = r.current;
560
- if (i)
561
- return n.branches.add(i), () => {
562
- n.branches.delete(i);
563
- };
564
- }, [n.branches]), /* @__PURE__ */ P.jsx(oe.div, { ...e, ref: o });
565
- });
566
- ar.displayName = cr;
567
- function lr(e, t = globalThis == null ? void 0 : globalThis.document) {
568
- const n = ee(e), r = u.useRef(!1), o = u.useRef(() => {
569
- });
570
- return u.useEffect(() => {
571
- const i = (c) => {
572
- if (c.target && !r.current) {
573
- let a = function() {
574
- Yt(
575
- or,
576
- n,
577
- l,
578
- { discrete: !0 }
579
- );
580
- };
581
- const l = { originalEvent: c };
582
- c.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = a, t.addEventListener("click", o.current, { once: !0 })) : a();
583
- } else
584
- t.removeEventListener("click", o.current);
585
- r.current = !1;
586
- }, s = window.setTimeout(() => {
587
- t.addEventListener("pointerdown", i);
588
- }, 0);
589
- return () => {
590
- window.clearTimeout(s), t.removeEventListener("pointerdown", i), t.removeEventListener("click", o.current);
591
- };
592
- }, [t, n]), {
593
- // ensures we check React component tree (not just DOM tree)
594
- onPointerDownCapture: () => r.current = !0
595
- };
596
- }
597
- function ur(e, t = globalThis == null ? void 0 : globalThis.document) {
598
- const n = ee(e), r = u.useRef(!1);
599
- return u.useEffect(() => {
600
- const o = (i) => {
601
- i.target && !r.current && Yt(ir, n, { originalEvent: i }, {
602
- discrete: !1
603
- });
604
- };
605
- return t.addEventListener("focusin", o), () => t.removeEventListener("focusin", o);
606
- }, [t, n]), {
607
- onFocusCapture: () => r.current = !0,
608
- onBlurCapture: () => r.current = !1
609
- };
610
- }
611
- function bt() {
612
- const e = new CustomEvent(Je);
613
- document.dispatchEvent(e);
614
- }
615
- function Yt(e, t, n, { discrete: r }) {
616
- const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
617
- t && o.addEventListener(e, t, { once: !0 }), r ? er(o, i) : o.dispatchEvent(i);
618
- }
619
- var ze = 0;
620
- function Ai() {
621
- u.useEffect(() => {
622
- const e = document.querySelectorAll("[data-radix-focus-guard]");
623
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? Et()), document.body.insertAdjacentElement("beforeend", e[1] ?? Et()), ze++, () => {
624
- ze === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), ze--;
625
- };
626
- }, []);
627
- }
628
- function Et() {
629
- const e = document.createElement("span");
630
- return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.cssText = "outline: none; opacity: 0; position: fixed; pointer-events: none", e;
631
- }
632
- var Ue = "focusScope.autoFocusOnMount", Ye = "focusScope.autoFocusOnUnmount", Ct = { bubbles: !1, cancelable: !0 }, fr = "FocusScope", dr = u.forwardRef((e, t) => {
633
- const {
634
- loop: n = !1,
635
- trapped: r = !1,
636
- onMountAutoFocus: o,
637
- onUnmountAutoFocus: i,
638
- ...s
639
- } = e, [c, a] = u.useState(null), l = ee(o), h = ee(i), d = u.useRef(null), p = ce(t, (f) => a(f)), m = u.useRef({
640
- paused: !1,
641
- pause() {
642
- this.paused = !0;
643
- },
644
- resume() {
645
- this.paused = !1;
646
- }
647
- }).current;
648
- u.useEffect(() => {
649
- if (r) {
650
- let f = function(b) {
651
- if (m.paused || !c) return;
652
- const x = b.target;
653
- c.contains(x) ? d.current = x : J(d.current, { select: !0 });
654
- }, v = function(b) {
655
- if (m.paused || !c) return;
656
- const x = b.relatedTarget;
657
- x !== null && (c.contains(x) || J(d.current, { select: !0 }));
658
- }, y = function(b) {
659
- if (document.activeElement === document.body)
660
- for (const E of b)
661
- E.removedNodes.length > 0 && J(c);
662
- };
663
- document.addEventListener("focusin", f), document.addEventListener("focusout", v);
664
- const w = new MutationObserver(y);
665
- return c && w.observe(c, { childList: !0, subtree: !0 }), () => {
666
- document.removeEventListener("focusin", f), document.removeEventListener("focusout", v), w.disconnect();
667
- };
668
- }
669
- }, [r, c, m.paused]), u.useEffect(() => {
670
- if (c) {
671
- At.add(m);
672
- const f = document.activeElement;
673
- if (!c.contains(f)) {
674
- const y = new CustomEvent(Ue, Ct);
675
- c.addEventListener(Ue, l), c.dispatchEvent(y), y.defaultPrevented || (hr(yr(Xt(c)), { select: !0 }), document.activeElement === f && J(c));
676
- }
677
- return () => {
678
- c.removeEventListener(Ue, l), setTimeout(() => {
679
- const y = new CustomEvent(Ye, Ct);
680
- c.addEventListener(Ye, h), c.dispatchEvent(y), y.defaultPrevented || J(f ?? document.body, { select: !0 }), c.removeEventListener(Ye, h), At.remove(m);
681
- }, 0);
682
- };
683
- }
684
- }, [c, l, h, m]);
685
- const g = u.useCallback(
686
- (f) => {
687
- if (!n && !r || m.paused) return;
688
- const v = f.key === "Tab" && !f.altKey && !f.ctrlKey && !f.metaKey, y = document.activeElement;
689
- if (v && y) {
690
- const w = f.currentTarget, [b, x] = mr(w);
691
- b && x ? !f.shiftKey && y === x ? (f.preventDefault(), n && J(b, { select: !0 })) : f.shiftKey && y === b && (f.preventDefault(), n && J(x, { select: !0 })) : y === w && f.preventDefault();
692
- }
693
- },
694
- [n, r, m.paused]
695
- );
696
- return /* @__PURE__ */ P.jsx(oe.div, { tabIndex: -1, ...s, ref: p, onKeyDown: g });
697
- });
698
- dr.displayName = fr;
699
- function hr(e, { select: t = !1 } = {}) {
700
- const n = document.activeElement;
701
- for (const r of e)
702
- if (J(r, { select: t }), document.activeElement !== n) return;
703
- }
704
- function mr(e) {
705
- const t = Xt(e), n = St(t, e), r = St(t.reverse(), e);
706
- return [n, r];
707
- }
708
- function Xt(e) {
709
- const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
710
- acceptNode: (r) => {
711
- const o = r.tagName === "INPUT" && r.type === "hidden";
712
- return r.disabled || r.hidden || o ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
713
- }
714
- });
715
- for (; n.nextNode(); ) t.push(n.currentNode);
716
- return t;
717
- }
718
- function St(e, t) {
719
- for (const n of e)
720
- if (!pr(n, { upTo: t })) return n;
721
- }
722
- function pr(e, { upTo: t }) {
723
- if (getComputedStyle(e).visibility === "hidden") return !0;
724
- for (; e; ) {
725
- if (t !== void 0 && e === t) return !1;
726
- if (getComputedStyle(e).display === "none") return !0;
727
- e = e.parentElement;
728
- }
729
- return !1;
730
- }
731
- function vr(e) {
732
- return e instanceof HTMLInputElement && "select" in e;
733
- }
734
- function J(e, { select: t = !1 } = {}) {
735
- if (e && e.focus) {
736
- const n = document.activeElement;
737
- e.focus({ preventScroll: !0 }), e !== n && vr(e) && t && e.select();
738
- }
739
- }
740
- var At = gr();
741
- function gr() {
742
- let e = [];
743
- return {
744
- add(t) {
745
- const n = e[0];
746
- t !== n && (n == null || n.pause()), e = Rt(e, t), e.unshift(t);
747
- },
748
- remove(t) {
749
- var n;
750
- e = Rt(e, t), (n = e[0]) == null || n.resume();
751
- }
752
- };
753
- }
754
- function Rt(e, t) {
755
- const n = [...e], r = n.indexOf(t);
756
- return r !== -1 && n.splice(r, 1), n;
757
- }
758
- function yr(e) {
759
- return e.filter((t) => t.tagName !== "A");
760
- }
761
- var Ee = globalThis != null && globalThis.document ? u.useLayoutEffect : () => {
762
- }, wr = u.useId || (() => {
763
- }), xr = 0;
764
- function Ri(e) {
765
- const [t, n] = u.useState(wr());
766
- return Ee(() => {
767
- n((r) => r ?? String(xr++));
768
- }, [e]), t ? `radix-${t}` : "";
769
- }
770
- const br = ["top", "right", "bottom", "left"], te = Math.min, _ = Math.max, Ie = Math.round, Oe = Math.floor, ne = (e) => ({
771
- x: e,
772
- y: e
773
- }), Er = {
774
- left: "right",
775
- right: "left",
776
- bottom: "top",
777
- top: "bottom"
778
- }, Cr = {
779
- start: "end",
780
- end: "start"
781
- };
782
- function et(e, t, n) {
783
- return _(e, te(t, n));
784
- }
785
- function K(e, t) {
786
- return typeof e == "function" ? e(t) : e;
787
- }
788
- function G(e) {
789
- return e.split("-")[0];
790
- }
791
- function pe(e) {
792
- return e.split("-")[1];
793
- }
794
- function rt(e) {
795
- return e === "x" ? "y" : "x";
796
- }
797
- function ot(e) {
798
- return e === "y" ? "height" : "width";
799
- }
800
- function ve(e) {
801
- return ["top", "bottom"].includes(G(e)) ? "y" : "x";
802
- }
803
- function it(e) {
804
- return rt(ve(e));
805
- }
806
- function Sr(e, t, n) {
807
- n === void 0 && (n = !1);
808
- const r = pe(e), o = it(e), i = ot(o);
809
- let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
810
- return t.reference[i] > t.floating[i] && (s = We(s)), [s, We(s)];
811
- }
812
- function Ar(e) {
813
- const t = We(e);
814
- return [tt(e), t, tt(t)];
815
- }
816
- function tt(e) {
817
- return e.replace(/start|end/g, (t) => Cr[t]);
818
- }
819
- function Rr(e, t, n) {
820
- const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
821
- switch (e) {
822
- case "top":
823
- case "bottom":
824
- return n ? t ? o : r : t ? r : o;
825
- case "left":
826
- case "right":
827
- return t ? i : s;
828
- default:
829
- return [];
830
- }
831
- }
832
- function Pr(e, t, n, r) {
833
- const o = pe(e);
834
- let i = Rr(G(e), n === "start", r);
835
- return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(tt)))), i;
836
- }
837
- function We(e) {
838
- return e.replace(/left|right|bottom|top/g, (t) => Er[t]);
839
- }
840
- function Or(e) {
841
- return {
842
- top: 0,
843
- right: 0,
844
- bottom: 0,
845
- left: 0,
846
- ...e
847
- };
848
- }
849
- function Kt(e) {
850
- return typeof e != "number" ? Or(e) : {
851
- top: e,
852
- right: e,
853
- bottom: e,
854
- left: e
855
- };
856
- }
857
- function _e(e) {
858
- const {
859
- x: t,
860
- y: n,
861
- width: r,
862
- height: o
863
- } = e;
864
- return {
865
- width: r,
866
- height: o,
867
- top: n,
868
- left: t,
869
- right: t + r,
870
- bottom: n + o,
871
- x: t,
872
- y: n
873
- };
874
- }
875
- function Pt(e, t, n) {
876
- let {
877
- reference: r,
878
- floating: o
879
- } = e;
880
- const i = ve(t), s = it(t), c = ot(s), a = G(t), l = i === "y", h = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, p = r[c] / 2 - o[c] / 2;
881
- let m;
882
- switch (a) {
883
- case "top":
884
- m = {
885
- x: h,
886
- y: r.y - o.height
887
- };
888
- break;
889
- case "bottom":
890
- m = {
891
- x: h,
892
- y: r.y + r.height
893
- };
894
- break;
895
- case "right":
896
- m = {
897
- x: r.x + r.width,
898
- y: d
899
- };
900
- break;
901
- case "left":
902
- m = {
903
- x: r.x - o.width,
904
- y: d
905
- };
906
- break;
907
- default:
908
- m = {
909
- x: r.x,
910
- y: r.y
911
- };
912
- }
913
- switch (pe(t)) {
914
- case "start":
915
- m[s] -= p * (n && l ? -1 : 1);
916
- break;
917
- case "end":
918
- m[s] += p * (n && l ? -1 : 1);
919
- break;
920
- }
921
- return m;
922
- }
923
- const Tr = async (e, t, n) => {
924
- const {
925
- placement: r = "bottom",
926
- strategy: o = "absolute",
927
- middleware: i = [],
928
- platform: s
929
- } = n, c = i.filter(Boolean), a = await (s.isRTL == null ? void 0 : s.isRTL(t));
930
- let l = await s.getElementRects({
931
- reference: e,
932
- floating: t,
933
- strategy: o
934
- }), {
935
- x: h,
936
- y: d
937
- } = Pt(l, r, a), p = r, m = {}, g = 0;
938
- for (let f = 0; f < c.length; f++) {
939
- const {
940
- name: v,
941
- fn: y
942
- } = c[f], {
943
- x: w,
944
- y: b,
945
- data: x,
946
- reset: E
947
- } = await y({
948
- x: h,
949
- y: d,
950
- initialPlacement: r,
951
- placement: p,
952
- strategy: o,
953
- middlewareData: m,
954
- rects: l,
955
- platform: s,
956
- elements: {
957
- reference: e,
958
- floating: t
959
- }
960
- });
961
- h = w ?? h, d = b ?? d, m = {
962
- ...m,
963
- [v]: {
964
- ...m[v],
965
- ...x
966
- }
967
- }, E && g <= 50 && (g++, typeof E == "object" && (E.placement && (p = E.placement), E.rects && (l = E.rects === !0 ? await s.getElementRects({
968
- reference: e,
969
- floating: t,
970
- strategy: o
971
- }) : E.rects), {
972
- x: h,
973
- y: d
974
- } = Pt(l, p, a)), f = -1);
975
- }
976
- return {
977
- x: h,
978
- y: d,
979
- placement: p,
980
- strategy: o,
981
- middlewareData: m
982
- };
983
- };
984
- async function Ce(e, t) {
985
- var n;
986
- t === void 0 && (t = {});
987
- const {
988
- x: r,
989
- y: o,
990
- platform: i,
991
- rects: s,
992
- elements: c,
993
- strategy: a
994
- } = e, {
995
- boundary: l = "clippingAncestors",
996
- rootBoundary: h = "viewport",
997
- elementContext: d = "floating",
998
- altBoundary: p = !1,
999
- padding: m = 0
1000
- } = K(t, e), g = Kt(m), v = c[p ? d === "floating" ? "reference" : "floating" : d], y = _e(await i.getClippingRect({
1001
- element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
1002
- boundary: l,
1003
- rootBoundary: h,
1004
- strategy: a
1005
- })), w = d === "floating" ? {
1006
- x: r,
1007
- y: o,
1008
- width: s.floating.width,
1009
- height: s.floating.height
1010
- } : s.reference, b = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c.floating)), x = await (i.isElement == null ? void 0 : i.isElement(b)) ? await (i.getScale == null ? void 0 : i.getScale(b)) || {
1011
- x: 1,
1012
- y: 1
1013
- } : {
1014
- x: 1,
1015
- y: 1
1016
- }, E = _e(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1017
- elements: c,
1018
- rect: w,
1019
- offsetParent: b,
1020
- strategy: a
1021
- }) : w);
1022
- return {
1023
- top: (y.top - E.top + g.top) / x.y,
1024
- bottom: (E.bottom - y.bottom + g.bottom) / x.y,
1025
- left: (y.left - E.left + g.left) / x.x,
1026
- right: (E.right - y.right + g.right) / x.x
1027
- };
1028
- }
1029
- const Mr = (e) => ({
1030
- name: "arrow",
1031
- options: e,
1032
- async fn(t) {
1033
- const {
1034
- x: n,
1035
- y: r,
1036
- placement: o,
1037
- rects: i,
1038
- platform: s,
1039
- elements: c,
1040
- middlewareData: a
1041
- } = t, {
1042
- element: l,
1043
- padding: h = 0
1044
- } = K(e, t) || {};
1045
- if (l == null)
1046
- return {};
1047
- const d = Kt(h), p = {
1048
- x: n,
1049
- y: r
1050
- }, m = it(o), g = ot(m), f = await s.getDimensions(l), v = m === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", x = i.reference[g] + i.reference[m] - p[m] - i.floating[g], E = p[m] - i.reference[m], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
1051
- let S = C ? C[b] : 0;
1052
- (!S || !await (s.isElement == null ? void 0 : s.isElement(C))) && (S = c.floating[b] || i.floating[g]);
1053
- const A = x / 2 - E / 2, O = S / 2 - f[g] / 2 - 1, D = te(d[y], O), j = te(d[w], O), M = D, I = S - f[g] - j, N = S / 2 - f[g] / 2 + A, T = et(M, N, I), k = !a.arrow && pe(o) != null && N !== T && i.reference[g] / 2 - (N < M ? D : j) - f[g] / 2 < 0, R = k ? N < M ? N - M : N - I : 0;
1054
- return {
1055
- [m]: p[m] + R,
1056
- data: {
1057
- [m]: T,
1058
- centerOffset: N - T - R,
1059
- ...k && {
1060
- alignmentOffset: R
1061
- }
1062
- },
1063
- reset: k
1064
- };
1065
- }
1066
- }), Lr = function(e) {
1067
- return e === void 0 && (e = {}), {
1068
- name: "flip",
1069
- options: e,
1070
- async fn(t) {
1071
- var n, r;
1072
- const {
1073
- placement: o,
1074
- middlewareData: i,
1075
- rects: s,
1076
- initialPlacement: c,
1077
- platform: a,
1078
- elements: l
1079
- } = t, {
1080
- mainAxis: h = !0,
1081
- crossAxis: d = !0,
1082
- fallbackPlacements: p,
1083
- fallbackStrategy: m = "bestFit",
1084
- fallbackAxisSideDirection: g = "none",
1085
- flipAlignment: f = !0,
1086
- ...v
1087
- } = K(e, t);
1088
- if ((n = i.arrow) != null && n.alignmentOffset)
1089
- return {};
1090
- const y = G(o), w = G(c) === c, b = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), x = p || (w || !f ? [We(c)] : Ar(c));
1091
- !p && g !== "none" && x.push(...Pr(c, f, g, b));
1092
- const E = [c, ...x], C = await Ce(t, v), S = [];
1093
- let A = ((r = i.flip) == null ? void 0 : r.overflows) || [];
1094
- if (h && S.push(C[y]), d) {
1095
- const M = Sr(o, s, b);
1096
- S.push(C[M[0]], C[M[1]]);
1097
- }
1098
- if (A = [...A, {
1099
- placement: o,
1100
- overflows: S
1101
- }], !S.every((M) => M <= 0)) {
1102
- var O, D;
1103
- const M = (((O = i.flip) == null ? void 0 : O.index) || 0) + 1, I = E[M];
1104
- if (I)
1105
- return {
1106
- data: {
1107
- index: M,
1108
- overflows: A
1109
- },
1110
- reset: {
1111
- placement: I
1112
- }
1113
- };
1114
- let N = (D = A.filter((T) => T.overflows[0] <= 0).sort((T, k) => T.overflows[1] - k.overflows[1])[0]) == null ? void 0 : D.placement;
1115
- if (!N)
1116
- switch (m) {
1117
- case "bestFit": {
1118
- var j;
1119
- const T = (j = A.map((k) => [k.placement, k.overflows.filter((R) => R > 0).reduce((R, W) => R + W, 0)]).sort((k, R) => k[1] - R[1])[0]) == null ? void 0 : j[0];
1120
- T && (N = T);
1121
- break;
1122
- }
1123
- case "initialPlacement":
1124
- N = c;
1125
- break;
1126
- }
1127
- if (o !== N)
1128
- return {
1129
- reset: {
1130
- placement: N
1131
- }
1132
- };
1133
- }
1134
- return {};
1135
- }
1136
- };
1137
- };
1138
- function Ot(e, t) {
1139
- return {
1140
- top: e.top - t.height,
1141
- right: e.right - t.width,
1142
- bottom: e.bottom - t.height,
1143
- left: e.left - t.width
1144
- };
1145
- }
1146
- function Tt(e) {
1147
- return br.some((t) => e[t] >= 0);
1148
- }
1149
- const Nr = function(e) {
1150
- return e === void 0 && (e = {}), {
1151
- name: "hide",
1152
- options: e,
1153
- async fn(t) {
1154
- const {
1155
- rects: n
1156
- } = t, {
1157
- strategy: r = "referenceHidden",
1158
- ...o
1159
- } = K(e, t);
1160
- switch (r) {
1161
- case "referenceHidden": {
1162
- const i = await Ce(t, {
1163
- ...o,
1164
- elementContext: "reference"
1165
- }), s = Ot(i, n.reference);
1166
- return {
1167
- data: {
1168
- referenceHiddenOffsets: s,
1169
- referenceHidden: Tt(s)
1170
- }
1171
- };
1172
- }
1173
- case "escaped": {
1174
- const i = await Ce(t, {
1175
- ...o,
1176
- altBoundary: !0
1177
- }), s = Ot(i, n.floating);
1178
- return {
1179
- data: {
1180
- escapedOffsets: s,
1181
- escaped: Tt(s)
1182
- }
1183
- };
1184
- }
1185
- default:
1186
- return {};
1187
- }
1188
- }
1189
- };
1190
- };
1191
- async function Dr(e, t) {
1192
- const {
1193
- placement: n,
1194
- platform: r,
1195
- elements: o
1196
- } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = G(n), c = pe(n), a = ve(n) === "y", l = ["left", "top"].includes(s) ? -1 : 1, h = i && a ? -1 : 1, d = K(t, e);
1197
- let {
1198
- mainAxis: p,
1199
- crossAxis: m,
1200
- alignmentAxis: g
1201
- } = typeof d == "number" ? {
1202
- mainAxis: d,
1203
- crossAxis: 0,
1204
- alignmentAxis: null
1205
- } : {
1206
- mainAxis: 0,
1207
- crossAxis: 0,
1208
- alignmentAxis: null,
1209
- ...d
1210
- };
1211
- return c && typeof g == "number" && (m = c === "end" ? g * -1 : g), a ? {
1212
- x: m * h,
1213
- y: p * l
1214
- } : {
1215
- x: p * l,
1216
- y: m * h
1217
- };
1218
- }
1219
- const kr = function(e) {
1220
- return e === void 0 && (e = 0), {
1221
- name: "offset",
1222
- options: e,
1223
- async fn(t) {
1224
- var n, r;
1225
- const {
1226
- x: o,
1227
- y: i,
1228
- placement: s,
1229
- middlewareData: c
1230
- } = t, a = await Dr(t, e);
1231
- return s === ((n = c.offset) == null ? void 0 : n.placement) && (r = c.arrow) != null && r.alignmentOffset ? {} : {
1232
- x: o + a.x,
1233
- y: i + a.y,
1234
- data: {
1235
- ...a,
1236
- placement: s
1237
- }
1238
- };
1239
- }
1240
- };
1241
- }, Fr = function(e) {
1242
- return e === void 0 && (e = {}), {
1243
- name: "shift",
1244
- options: e,
1245
- async fn(t) {
1246
- const {
1247
- x: n,
1248
- y: r,
1249
- placement: o
1250
- } = t, {
1251
- mainAxis: i = !0,
1252
- crossAxis: s = !1,
1253
- limiter: c = {
1254
- fn: (v) => {
1255
- let {
1256
- x: y,
1257
- y: w
1258
- } = v;
1259
- return {
1260
- x: y,
1261
- y: w
1262
- };
1263
- }
1264
- },
1265
- ...a
1266
- } = K(e, t), l = {
1267
- x: n,
1268
- y: r
1269
- }, h = await Ce(t, a), d = ve(G(o)), p = rt(d);
1270
- let m = l[p], g = l[d];
1271
- if (i) {
1272
- const v = p === "y" ? "top" : "left", y = p === "y" ? "bottom" : "right", w = m + h[v], b = m - h[y];
1273
- m = et(w, m, b);
1274
- }
1275
- if (s) {
1276
- const v = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", w = g + h[v], b = g - h[y];
1277
- g = et(w, g, b);
1278
- }
1279
- const f = c.fn({
1280
- ...t,
1281
- [p]: m,
1282
- [d]: g
1283
- });
1284
- return {
1285
- ...f,
1286
- data: {
1287
- x: f.x - n,
1288
- y: f.y - r
1289
- }
1290
- };
1291
- }
1292
- };
1293
- }, Ir = function(e) {
1294
- return e === void 0 && (e = {}), {
1295
- options: e,
1296
- fn(t) {
1297
- const {
1298
- x: n,
1299
- y: r,
1300
- placement: o,
1301
- rects: i,
1302
- middlewareData: s
1303
- } = t, {
1304
- offset: c = 0,
1305
- mainAxis: a = !0,
1306
- crossAxis: l = !0
1307
- } = K(e, t), h = {
1308
- x: n,
1309
- y: r
1310
- }, d = ve(o), p = rt(d);
1311
- let m = h[p], g = h[d];
1312
- const f = K(c, t), v = typeof f == "number" ? {
1313
- mainAxis: f,
1314
- crossAxis: 0
1315
- } : {
1316
- mainAxis: 0,
1317
- crossAxis: 0,
1318
- ...f
1319
- };
1320
- if (a) {
1321
- const b = p === "y" ? "height" : "width", x = i.reference[p] - i.floating[b] + v.mainAxis, E = i.reference[p] + i.reference[b] - v.mainAxis;
1322
- m < x ? m = x : m > E && (m = E);
1323
- }
1324
- if (l) {
1325
- var y, w;
1326
- const b = p === "y" ? "width" : "height", x = ["top", "left"].includes(G(o)), E = i.reference[d] - i.floating[b] + (x && ((y = s.offset) == null ? void 0 : y[d]) || 0) + (x ? 0 : v.crossAxis), C = i.reference[d] + i.reference[b] + (x ? 0 : ((w = s.offset) == null ? void 0 : w[d]) || 0) - (x ? v.crossAxis : 0);
1327
- g < E ? g = E : g > C && (g = C);
1328
- }
1329
- return {
1330
- [p]: m,
1331
- [d]: g
1332
- };
1333
- }
1334
- };
1335
- }, Wr = function(e) {
1336
- return e === void 0 && (e = {}), {
1337
- name: "size",
1338
- options: e,
1339
- async fn(t) {
1340
- const {
1341
- placement: n,
1342
- rects: r,
1343
- platform: o,
1344
- elements: i
1345
- } = t, {
1346
- apply: s = () => {
1347
- },
1348
- ...c
1349
- } = K(e, t), a = await Ce(t, c), l = G(n), h = pe(n), d = ve(n) === "y", {
1350
- width: p,
1351
- height: m
1352
- } = r.floating;
1353
- let g, f;
1354
- l === "top" || l === "bottom" ? (g = l, f = h === (await (o.isRTL == null ? void 0 : o.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (f = l, g = h === "end" ? "top" : "bottom");
1355
- const v = m - a[g], y = p - a[f], w = !t.middlewareData.shift;
1356
- let b = v, x = y;
1357
- if (d) {
1358
- const C = p - a.left - a.right;
1359
- x = h || w ? te(y, C) : C;
1360
- } else {
1361
- const C = m - a.top - a.bottom;
1362
- b = h || w ? te(v, C) : C;
1363
- }
1364
- if (w && !h) {
1365
- const C = _(a.left, 0), S = _(a.right, 0), A = _(a.top, 0), O = _(a.bottom, 0);
1366
- d ? x = p - 2 * (C !== 0 || S !== 0 ? C + S : _(a.left, a.right)) : b = m - 2 * (A !== 0 || O !== 0 ? A + O : _(a.top, a.bottom));
1367
- }
1368
- await s({
1369
- ...t,
1370
- availableWidth: x,
1371
- availableHeight: b
1372
- });
1373
- const E = await o.getDimensions(i.floating);
1374
- return p !== E.width || m !== E.height ? {
1375
- reset: {
1376
- rects: !0
1377
- }
1378
- } : {};
1379
- }
1380
- };
1381
- };
1382
- function ge(e) {
1383
- return Gt(e) ? (e.nodeName || "").toLowerCase() : "#document";
1384
- }
1385
- function B(e) {
1386
- var t;
1387
- return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1388
- }
1389
- function Z(e) {
1390
- var t;
1391
- return (t = (Gt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1392
- }
1393
- function Gt(e) {
1394
- return e instanceof Node || e instanceof B(e).Node;
1395
- }
1396
- function U(e) {
1397
- return e instanceof Element || e instanceof B(e).Element;
1398
- }
1399
- function Y(e) {
1400
- return e instanceof HTMLElement || e instanceof B(e).HTMLElement;
1401
- }
1402
- function Mt(e) {
1403
- return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof B(e).ShadowRoot;
1404
- }
1405
- function Ae(e) {
1406
- const {
1407
- overflow: t,
1408
- overflowX: n,
1409
- overflowY: r,
1410
- display: o
1411
- } = $(e);
1412
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
1413
- }
1414
- function _r(e) {
1415
- return ["table", "td", "th"].includes(ge(e));
1416
- }
1417
- function st(e) {
1418
- const t = ct(), n = $(e);
1419
- return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
1420
- }
1421
- function Br(e) {
1422
- let t = re(e);
1423
- for (; Y(t) && !me(t); ) {
1424
- if (st(t))
1425
- return t;
1426
- t = re(t);
1427
- }
1428
- return null;
1429
- }
1430
- function ct() {
1431
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1432
- }
1433
- function me(e) {
1434
- return ["html", "body", "#document"].includes(ge(e));
1435
- }
1436
- function $(e) {
1437
- return B(e).getComputedStyle(e);
1438
- }
1439
- function je(e) {
1440
- return U(e) ? {
1441
- scrollLeft: e.scrollLeft,
1442
- scrollTop: e.scrollTop
1443
- } : {
1444
- scrollLeft: e.pageXOffset,
1445
- scrollTop: e.pageYOffset
1446
- };
1447
- }
1448
- function re(e) {
1449
- if (ge(e) === "html")
1450
- return e;
1451
- const t = (
1452
- // Step into the shadow DOM of the parent of a slotted node.
1453
- e.assignedSlot || // DOM Element detected.
1454
- e.parentNode || // ShadowRoot detected.
1455
- Mt(e) && e.host || // Fallback.
1456
- Z(e)
1457
- );
1458
- return Mt(t) ? t.host : t;
1459
- }
1460
- function Zt(e) {
1461
- const t = re(e);
1462
- return me(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && Ae(t) ? t : Zt(t);
1463
- }
1464
- function Se(e, t, n) {
1465
- var r;
1466
- t === void 0 && (t = []), n === void 0 && (n = !0);
1467
- const o = Zt(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = B(o);
1468
- return i ? t.concat(s, s.visualViewport || [], Ae(o) ? o : [], s.frameElement && n ? Se(s.frameElement) : []) : t.concat(o, Se(o, [], n));
1469
- }
1470
- function qt(e) {
1471
- const t = $(e);
1472
- let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
1473
- const o = Y(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, c = Ie(n) !== i || Ie(r) !== s;
1474
- return c && (n = i, r = s), {
1475
- width: n,
1476
- height: r,
1477
- $: c
1478
- };
1479
- }
1480
- function at(e) {
1481
- return U(e) ? e : e.contextElement;
1482
- }
1483
- function de(e) {
1484
- const t = at(e);
1485
- if (!Y(t))
1486
- return ne(1);
1487
- const n = t.getBoundingClientRect(), {
1488
- width: r,
1489
- height: o,
1490
- $: i
1491
- } = qt(t);
1492
- let s = (i ? Ie(n.width) : n.width) / r, c = (i ? Ie(n.height) : n.height) / o;
1493
- return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
1494
- x: s,
1495
- y: c
1496
- };
1497
- }
1498
- const jr = /* @__PURE__ */ ne(0);
1499
- function Qt(e) {
1500
- const t = B(e);
1501
- return !ct() || !t.visualViewport ? jr : {
1502
- x: t.visualViewport.offsetLeft,
1503
- y: t.visualViewport.offsetTop
1504
- };
1505
- }
1506
- function $r(e, t, n) {
1507
- return t === void 0 && (t = !1), !n || t && n !== B(e) ? !1 : t;
1508
- }
1509
- function ae(e, t, n, r) {
1510
- t === void 0 && (t = !1), n === void 0 && (n = !1);
1511
- const o = e.getBoundingClientRect(), i = at(e);
1512
- let s = ne(1);
1513
- t && (r ? U(r) && (s = de(r)) : s = de(e));
1514
- const c = $r(i, n, r) ? Qt(i) : ne(0);
1515
- let a = (o.left + c.x) / s.x, l = (o.top + c.y) / s.y, h = o.width / s.x, d = o.height / s.y;
1516
- if (i) {
1517
- const p = B(i), m = r && U(r) ? B(r) : r;
1518
- let g = p, f = g.frameElement;
1519
- for (; f && r && m !== g; ) {
1520
- const v = de(f), y = f.getBoundingClientRect(), w = $(f), b = y.left + (f.clientLeft + parseFloat(w.paddingLeft)) * v.x, x = y.top + (f.clientTop + parseFloat(w.paddingTop)) * v.y;
1521
- a *= v.x, l *= v.y, h *= v.x, d *= v.y, a += b, l += x, g = B(f), f = g.frameElement;
1522
- }
1523
- }
1524
- return _e({
1525
- width: h,
1526
- height: d,
1527
- x: a,
1528
- y: l
1529
- });
1530
- }
1531
- const Hr = [":popover-open", ":modal"];
1532
- function lt(e) {
1533
- return Hr.some((t) => {
1534
- try {
1535
- return e.matches(t);
1536
- } catch {
1537
- return !1;
1538
- }
1539
- });
1540
- }
1541
- function Vr(e) {
1542
- let {
1543
- elements: t,
1544
- rect: n,
1545
- offsetParent: r,
1546
- strategy: o
1547
- } = e;
1548
- const i = o === "fixed", s = Z(r), c = t ? lt(t.floating) : !1;
1549
- if (r === s || c && i)
1550
- return n;
1551
- let a = {
1552
- scrollLeft: 0,
1553
- scrollTop: 0
1554
- }, l = ne(1);
1555
- const h = ne(0), d = Y(r);
1556
- if ((d || !d && !i) && ((ge(r) !== "body" || Ae(s)) && (a = je(r)), Y(r))) {
1557
- const p = ae(r);
1558
- l = de(r), h.x = p.x + r.clientLeft, h.y = p.y + r.clientTop;
1559
- }
1560
- return {
1561
- width: n.width * l.x,
1562
- height: n.height * l.y,
1563
- x: n.x * l.x - a.scrollLeft * l.x + h.x,
1564
- y: n.y * l.y - a.scrollTop * l.y + h.y
1565
- };
1566
- }
1567
- function zr(e) {
1568
- return Array.from(e.getClientRects());
1569
- }
1570
- function Jt(e) {
1571
- return ae(Z(e)).left + je(e).scrollLeft;
1572
- }
1573
- function Ur(e) {
1574
- const t = Z(e), n = je(e), r = e.ownerDocument.body, o = _(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = _(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
1575
- let s = -n.scrollLeft + Jt(e);
1576
- const c = -n.scrollTop;
1577
- return $(r).direction === "rtl" && (s += _(t.clientWidth, r.clientWidth) - o), {
1578
- width: o,
1579
- height: i,
1580
- x: s,
1581
- y: c
1582
- };
1583
- }
1584
- function Yr(e, t) {
1585
- const n = B(e), r = Z(e), o = n.visualViewport;
1586
- let i = r.clientWidth, s = r.clientHeight, c = 0, a = 0;
1587
- if (o) {
1588
- i = o.width, s = o.height;
1589
- const l = ct();
1590
- (!l || l && t === "fixed") && (c = o.offsetLeft, a = o.offsetTop);
1591
- }
1592
- return {
1593
- width: i,
1594
- height: s,
1595
- x: c,
1596
- y: a
1597
- };
1598
- }
1599
- function Xr(e, t) {
1600
- const n = ae(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Y(e) ? de(e) : ne(1), s = e.clientWidth * i.x, c = e.clientHeight * i.y, a = o * i.x, l = r * i.y;
1601
- return {
1602
- width: s,
1603
- height: c,
1604
- x: a,
1605
- y: l
1606
- };
1607
- }
1608
- function Lt(e, t, n) {
1609
- let r;
1610
- if (t === "viewport")
1611
- r = Yr(e, n);
1612
- else if (t === "document")
1613
- r = Ur(Z(e));
1614
- else if (U(t))
1615
- r = Xr(t, n);
1616
- else {
1617
- const o = Qt(e);
1618
- r = {
1619
- ...t,
1620
- x: t.x - o.x,
1621
- y: t.y - o.y
1622
- };
1623
- }
1624
- return _e(r);
1625
- }
1626
- function en(e, t) {
1627
- const n = re(e);
1628
- return n === t || !U(n) || me(n) ? !1 : $(n).position === "fixed" || en(n, t);
1629
- }
1630
- function Kr(e, t) {
1631
- const n = t.get(e);
1632
- if (n)
1633
- return n;
1634
- let r = Se(e, [], !1).filter((c) => U(c) && ge(c) !== "body"), o = null;
1635
- const i = $(e).position === "fixed";
1636
- let s = i ? re(e) : e;
1637
- for (; U(s) && !me(s); ) {
1638
- const c = $(s), a = st(s);
1639
- !a && c.position === "fixed" && (o = null), (i ? !a && !o : !a && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ae(s) && !a && en(e, s)) ? r = r.filter((h) => h !== s) : o = c, s = re(s);
1640
- }
1641
- return t.set(e, r), r;
1642
- }
1643
- function Gr(e) {
1644
- let {
1645
- element: t,
1646
- boundary: n,
1647
- rootBoundary: r,
1648
- strategy: o
1649
- } = e;
1650
- const s = [...n === "clippingAncestors" ? lt(t) ? [] : Kr(t, this._c) : [].concat(n), r], c = s[0], a = s.reduce((l, h) => {
1651
- const d = Lt(t, h, o);
1652
- return l.top = _(d.top, l.top), l.right = te(d.right, l.right), l.bottom = te(d.bottom, l.bottom), l.left = _(d.left, l.left), l;
1653
- }, Lt(t, c, o));
1654
- return {
1655
- width: a.right - a.left,
1656
- height: a.bottom - a.top,
1657
- x: a.left,
1658
- y: a.top
1659
- };
1660
- }
1661
- function Zr(e) {
1662
- const {
1663
- width: t,
1664
- height: n
1665
- } = qt(e);
1666
- return {
1667
- width: t,
1668
- height: n
1669
- };
1670
- }
1671
- function qr(e, t, n) {
1672
- const r = Y(t), o = Z(t), i = n === "fixed", s = ae(e, !0, i, t);
1673
- let c = {
1674
- scrollLeft: 0,
1675
- scrollTop: 0
1676
- };
1677
- const a = ne(0);
1678
- if (r || !r && !i)
1679
- if ((ge(t) !== "body" || Ae(o)) && (c = je(t)), r) {
1680
- const d = ae(t, !0, i, t);
1681
- a.x = d.x + t.clientLeft, a.y = d.y + t.clientTop;
1682
- } else o && (a.x = Jt(o));
1683
- const l = s.left + c.scrollLeft - a.x, h = s.top + c.scrollTop - a.y;
1684
- return {
1685
- x: l,
1686
- y: h,
1687
- width: s.width,
1688
- height: s.height
1689
- };
1690
- }
1691
- function Xe(e) {
1692
- return $(e).position === "static";
1693
- }
1694
- function Nt(e, t) {
1695
- return !Y(e) || $(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
1696
- }
1697
- function tn(e, t) {
1698
- const n = B(e);
1699
- if (lt(e))
1700
- return n;
1701
- if (!Y(e)) {
1702
- let o = re(e);
1703
- for (; o && !me(o); ) {
1704
- if (U(o) && !Xe(o))
1705
- return o;
1706
- o = re(o);
1707
- }
1708
- return n;
1709
- }
1710
- let r = Nt(e, t);
1711
- for (; r && _r(r) && Xe(r); )
1712
- r = Nt(r, t);
1713
- return r && me(r) && Xe(r) && !st(r) ? n : r || Br(e) || n;
1714
- }
1715
- const Qr = async function(e) {
1716
- const t = this.getOffsetParent || tn, n = this.getDimensions, r = await n(e.floating);
1717
- return {
1718
- reference: qr(e.reference, await t(e.floating), e.strategy),
1719
- floating: {
1720
- x: 0,
1721
- y: 0,
1722
- width: r.width,
1723
- height: r.height
1724
- }
1725
- };
1726
- };
1727
- function Jr(e) {
1728
- return $(e).direction === "rtl";
1729
- }
1730
- const eo = {
1731
- convertOffsetParentRelativeRectToViewportRelativeRect: Vr,
1732
- getDocumentElement: Z,
1733
- getClippingRect: Gr,
1734
- getOffsetParent: tn,
1735
- getElementRects: Qr,
1736
- getClientRects: zr,
1737
- getDimensions: Zr,
1738
- getScale: de,
1739
- isElement: U,
1740
- isRTL: Jr
1741
- };
1742
- function to(e, t) {
1743
- let n = null, r;
1744
- const o = Z(e);
1745
- function i() {
1746
- var c;
1747
- clearTimeout(r), (c = n) == null || c.disconnect(), n = null;
1748
- }
1749
- function s(c, a) {
1750
- c === void 0 && (c = !1), a === void 0 && (a = 1), i();
1751
- const {
1752
- left: l,
1753
- top: h,
1754
- width: d,
1755
- height: p
1756
- } = e.getBoundingClientRect();
1757
- if (c || t(), !d || !p)
1758
- return;
1759
- const m = Oe(h), g = Oe(o.clientWidth - (l + d)), f = Oe(o.clientHeight - (h + p)), v = Oe(l), w = {
1760
- rootMargin: -m + "px " + -g + "px " + -f + "px " + -v + "px",
1761
- threshold: _(0, te(1, a)) || 1
1762
- };
1763
- let b = !0;
1764
- function x(E) {
1765
- const C = E[0].intersectionRatio;
1766
- if (C !== a) {
1767
- if (!b)
1768
- return s();
1769
- C ? s(!1, C) : r = setTimeout(() => {
1770
- s(!1, 1e-7);
1771
- }, 1e3);
1772
- }
1773
- b = !1;
1774
- }
1775
- try {
1776
- n = new IntersectionObserver(x, {
1777
- ...w,
1778
- // Handle <iframe>s
1779
- root: o.ownerDocument
1780
- });
1781
- } catch {
1782
- n = new IntersectionObserver(x, w);
1783
- }
1784
- n.observe(e);
1785
- }
1786
- return s(!0), i;
1787
- }
1788
- function no(e, t, n, r) {
1789
- r === void 0 && (r = {});
1790
- const {
1791
- ancestorScroll: o = !0,
1792
- ancestorResize: i = !0,
1793
- elementResize: s = typeof ResizeObserver == "function",
1794
- layoutShift: c = typeof IntersectionObserver == "function",
1795
- animationFrame: a = !1
1796
- } = r, l = at(e), h = o || i ? [...l ? Se(l) : [], ...Se(t)] : [];
1797
- h.forEach((y) => {
1798
- o && y.addEventListener("scroll", n, {
1799
- passive: !0
1800
- }), i && y.addEventListener("resize", n);
1801
- });
1802
- const d = l && c ? to(l, n) : null;
1803
- let p = -1, m = null;
1804
- s && (m = new ResizeObserver((y) => {
1805
- let [w] = y;
1806
- w && w.target === l && m && (m.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
1807
- var b;
1808
- (b = m) == null || b.observe(t);
1809
- })), n();
1810
- }), l && !a && m.observe(l), m.observe(t));
1811
- let g, f = a ? ae(e) : null;
1812
- a && v();
1813
- function v() {
1814
- const y = ae(e);
1815
- f && (y.x !== f.x || y.y !== f.y || y.width !== f.width || y.height !== f.height) && n(), f = y, g = requestAnimationFrame(v);
1816
- }
1817
- return n(), () => {
1818
- var y;
1819
- h.forEach((w) => {
1820
- o && w.removeEventListener("scroll", n), i && w.removeEventListener("resize", n);
1821
- }), d == null || d(), (y = m) == null || y.disconnect(), m = null, a && cancelAnimationFrame(g);
1822
- };
1823
- }
1824
- const ro = kr, oo = Fr, io = Lr, so = Wr, co = Nr, Dt = Mr, ao = Ir, lo = (e, t, n) => {
1825
- const r = /* @__PURE__ */ new Map(), o = {
1826
- platform: eo,
1827
- ...n
1828
- }, i = {
1829
- ...o.platform,
1830
- _c: r
1831
- };
1832
- return Tr(e, t, {
1833
- ...o,
1834
- platform: i
1835
- });
1836
- }, uo = (e) => {
1837
- function t(n) {
1838
- return {}.hasOwnProperty.call(n, "current");
1839
- }
1840
- return {
1841
- name: "arrow",
1842
- options: e,
1843
- fn(n) {
1844
- const {
1845
- element: r,
1846
- padding: o
1847
- } = typeof e == "function" ? e(n) : e;
1848
- return r && t(r) ? r.current != null ? Dt({
1849
- element: r.current,
1850
- padding: o
1851
- }).fn(n) : {} : r ? Dt({
1852
- element: r,
1853
- padding: o
1854
- }).fn(n) : {};
1855
- }
1856
- };
1857
- };
1858
- var De = typeof document < "u" ? kn : Fn;
1859
- function Be(e, t) {
1860
- if (e === t)
1861
- return !0;
1862
- if (typeof e != typeof t)
1863
- return !1;
1864
- if (typeof e == "function" && e.toString() === t.toString())
1865
- return !0;
1866
- let n, r, o;
1867
- if (e && t && typeof e == "object") {
1868
- if (Array.isArray(e)) {
1869
- if (n = e.length, n !== t.length) return !1;
1870
- for (r = n; r-- !== 0; )
1871
- if (!Be(e[r], t[r]))
1872
- return !1;
1873
- return !0;
1874
- }
1875
- if (o = Object.keys(e), n = o.length, n !== Object.keys(t).length)
1876
- return !1;
1877
- for (r = n; r-- !== 0; )
1878
- if (!{}.hasOwnProperty.call(t, o[r]))
1879
- return !1;
1880
- for (r = n; r-- !== 0; ) {
1881
- const i = o[r];
1882
- if (!(i === "_owner" && e.$$typeof) && !Be(e[i], t[i]))
1883
- return !1;
1884
- }
1885
- return !0;
1886
- }
1887
- return e !== e && t !== t;
1888
- }
1889
- function nn(e) {
1890
- return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
1891
- }
1892
- function kt(e, t) {
1893
- const n = nn(e);
1894
- return Math.round(t * n) / n;
1895
- }
1896
- function Ft(e) {
1897
- const t = u.useRef(e);
1898
- return De(() => {
1899
- t.current = e;
1900
- }), t;
1901
- }
1902
- function fo(e) {
1903
- e === void 0 && (e = {});
1904
- const {
1905
- placement: t = "bottom",
1906
- strategy: n = "absolute",
1907
- middleware: r = [],
1908
- platform: o,
1909
- elements: {
1910
- reference: i,
1911
- floating: s
1912
- } = {},
1913
- transform: c = !0,
1914
- whileElementsMounted: a,
1915
- open: l
1916
- } = e, [h, d] = u.useState({
1917
- x: 0,
1918
- y: 0,
1919
- strategy: n,
1920
- placement: t,
1921
- middlewareData: {},
1922
- isPositioned: !1
1923
- }), [p, m] = u.useState(r);
1924
- Be(p, r) || m(r);
1925
- const [g, f] = u.useState(null), [v, y] = u.useState(null), w = u.useCallback((R) => {
1926
- R !== C.current && (C.current = R, f(R));
1927
- }, []), b = u.useCallback((R) => {
1928
- R !== S.current && (S.current = R, y(R));
1929
- }, []), x = i || g, E = s || v, C = u.useRef(null), S = u.useRef(null), A = u.useRef(h), O = a != null, D = Ft(a), j = Ft(o), M = u.useCallback(() => {
1930
- if (!C.current || !S.current)
1931
- return;
1932
- const R = {
1933
- placement: t,
1934
- strategy: n,
1935
- middleware: p
1936
- };
1937
- j.current && (R.platform = j.current), lo(C.current, S.current, R).then((W) => {
1938
- const X = {
1939
- ...W,
1940
- isPositioned: !0
1941
- };
1942
- I.current && !Be(A.current, X) && (A.current = X, Ht.flushSync(() => {
1943
- d(X);
1944
- }));
1945
- });
1946
- }, [p, t, n, j]);
1947
- De(() => {
1948
- l === !1 && A.current.isPositioned && (A.current.isPositioned = !1, d((R) => ({
1949
- ...R,
1950
- isPositioned: !1
1951
- })));
1952
- }, [l]);
1953
- const I = u.useRef(!1);
1954
- De(() => (I.current = !0, () => {
1955
- I.current = !1;
1956
- }), []), De(() => {
1957
- if (x && (C.current = x), E && (S.current = E), x && E) {
1958
- if (D.current)
1959
- return D.current(x, E, M);
1960
- M();
1961
- }
1962
- }, [x, E, M, D, O]);
1963
- const N = u.useMemo(() => ({
1964
- reference: C,
1965
- floating: S,
1966
- setReference: w,
1967
- setFloating: b
1968
- }), [w, b]), T = u.useMemo(() => ({
1969
- reference: x,
1970
- floating: E
1971
- }), [x, E]), k = u.useMemo(() => {
1972
- const R = {
1973
- position: n,
1974
- left: 0,
1975
- top: 0
1976
- };
1977
- if (!T.floating)
1978
- return R;
1979
- const W = kt(T.floating, h.x), X = kt(T.floating, h.y);
1980
- return c ? {
1981
- ...R,
1982
- transform: "translate(" + W + "px, " + X + "px)",
1983
- ...nn(T.floating) >= 1.5 && {
1984
- willChange: "transform"
1985
- }
1986
- } : {
1987
- position: n,
1988
- left: W,
1989
- top: X
1990
- };
1991
- }, [n, c, T.floating, h.x, h.y]);
1992
- return u.useMemo(() => ({
1993
- ...h,
1994
- update: M,
1995
- refs: N,
1996
- elements: T,
1997
- floatingStyles: k
1998
- }), [h, M, N, T, k]);
1999
- }
2000
- var ho = "Arrow", rn = u.forwardRef((e, t) => {
2001
- const { children: n, width: r = 10, height: o = 5, ...i } = e;
2002
- return /* @__PURE__ */ P.jsx(
2003
- oe.svg,
2004
- {
2005
- ...i,
2006
- ref: t,
2007
- width: r,
2008
- height: o,
2009
- viewBox: "0 0 30 10",
2010
- preserveAspectRatio: "none",
2011
- children: e.asChild ? n : /* @__PURE__ */ P.jsx("polygon", { points: "0,0 30,0 15,10" })
2012
- }
2013
- );
2014
- });
2015
- rn.displayName = ho;
2016
- var mo = rn;
2017
- function po(e) {
2018
- const [t, n] = u.useState(void 0);
2019
- return Ee(() => {
2020
- if (e) {
2021
- n({ width: e.offsetWidth, height: e.offsetHeight });
2022
- const r = new ResizeObserver((o) => {
2023
- if (!Array.isArray(o) || !o.length)
2024
- return;
2025
- const i = o[0];
2026
- let s, c;
2027
- if ("borderBoxSize" in i) {
2028
- const a = i.borderBoxSize, l = Array.isArray(a) ? a[0] : a;
2029
- s = l.inlineSize, c = l.blockSize;
2030
- } else
2031
- s = e.offsetWidth, c = e.offsetHeight;
2032
- n({ width: s, height: c });
2033
- });
2034
- return r.observe(e, { box: "border-box" }), () => r.unobserve(e);
2035
- } else
2036
- n(void 0);
2037
- }, [e]), t;
2038
- }
2039
- var ut = "Popper", [on, Pi] = zt(ut), [vo, sn] = on(ut), cn = (e) => {
2040
- const { __scopePopper: t, children: n } = e, [r, o] = u.useState(null);
2041
- return /* @__PURE__ */ P.jsx(vo, { scope: t, anchor: r, onAnchorChange: o, children: n });
2042
- };
2043
- cn.displayName = ut;
2044
- var an = "PopperAnchor", ln = u.forwardRef(
2045
- (e, t) => {
2046
- const { __scopePopper: n, virtualRef: r, ...o } = e, i = sn(an, n), s = u.useRef(null), c = ce(t, s);
2047
- return u.useEffect(() => {
2048
- i.onAnchorChange((r == null ? void 0 : r.current) || s.current);
2049
- }), r ? null : /* @__PURE__ */ P.jsx(oe.div, { ...o, ref: c });
2050
- }
2051
- );
2052
- ln.displayName = an;
2053
- var ft = "PopperContent", [go, yo] = on(ft), un = u.forwardRef(
2054
- (e, t) => {
2055
- var dt, ht, mt, pt, vt, gt;
2056
- const {
2057
- __scopePopper: n,
2058
- side: r = "bottom",
2059
- sideOffset: o = 0,
2060
- align: i = "center",
2061
- alignOffset: s = 0,
2062
- arrowPadding: c = 0,
2063
- avoidCollisions: a = !0,
2064
- collisionBoundary: l = [],
2065
- collisionPadding: h = 0,
2066
- sticky: d = "partial",
2067
- hideWhenDetached: p = !1,
2068
- updatePositionStrategy: m = "optimized",
2069
- onPlaced: g,
2070
- ...f
2071
- } = e, v = sn(ft, n), [y, w] = u.useState(null), b = ce(t, (ye) => w(ye)), [x, E] = u.useState(null), C = po(x), S = (C == null ? void 0 : C.width) ?? 0, A = (C == null ? void 0 : C.height) ?? 0, O = r + (i !== "center" ? "-" + i : ""), D = typeof h == "number" ? h : { top: 0, right: 0, bottom: 0, left: 0, ...h }, j = Array.isArray(l) ? l : [l], M = j.length > 0, I = {
2072
- padding: D,
2073
- boundary: j.filter(xo),
2074
- // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
2075
- altBoundary: M
2076
- }, { refs: N, floatingStyles: T, placement: k, isPositioned: R, middlewareData: W } = fo({
2077
- // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
2078
- strategy: "fixed",
2079
- placement: O,
2080
- whileElementsMounted: (...ye) => no(...ye, {
2081
- animationFrame: m === "always"
2082
- }),
2083
- elements: {
2084
- reference: v.anchor
2085
- },
2086
- middleware: [
2087
- ro({ mainAxis: o + A, alignmentAxis: s }),
2088
- a && oo({
2089
- mainAxis: !0,
2090
- crossAxis: !1,
2091
- limiter: d === "partial" ? ao() : void 0,
2092
- ...I
2093
- }),
2094
- a && io({ ...I }),
2095
- so({
2096
- ...I,
2097
- apply: ({ elements: ye, rects: yt, availableWidth: On, availableHeight: Tn }) => {
2098
- const { width: Mn, height: Ln } = yt.reference, Pe = ye.floating.style;
2099
- Pe.setProperty("--radix-popper-available-width", `${On}px`), Pe.setProperty("--radix-popper-available-height", `${Tn}px`), Pe.setProperty("--radix-popper-anchor-width", `${Mn}px`), Pe.setProperty("--radix-popper-anchor-height", `${Ln}px`);
2100
- }
2101
- }),
2102
- x && uo({ element: x, padding: c }),
2103
- bo({ arrowWidth: S, arrowHeight: A }),
2104
- p && co({ strategy: "referenceHidden", ...I })
2105
- ]
2106
- }), [X, En] = hn(k), Re = ee(g);
2107
- Ee(() => {
2108
- R && (Re == null || Re());
2109
- }, [R, Re]);
2110
- const Cn = (dt = W.arrow) == null ? void 0 : dt.x, Sn = (ht = W.arrow) == null ? void 0 : ht.y, An = ((mt = W.arrow) == null ? void 0 : mt.centerOffset) !== 0, [Rn, Pn] = u.useState();
2111
- return Ee(() => {
2112
- y && Pn(window.getComputedStyle(y).zIndex);
2113
- }, [y]), /* @__PURE__ */ P.jsx(
2114
- "div",
2115
- {
2116
- ref: N.setFloating,
2117
- "data-radix-popper-content-wrapper": "",
2118
- style: {
2119
- ...T,
2120
- transform: R ? T.transform : "translate(0, -200%)",
2121
- // keep off the page when measuring
2122
- minWidth: "max-content",
2123
- zIndex: Rn,
2124
- "--radix-popper-transform-origin": [
2125
- (pt = W.transformOrigin) == null ? void 0 : pt.x,
2126
- (vt = W.transformOrigin) == null ? void 0 : vt.y
2127
- ].join(" "),
2128
- // hide the content if using the hide middleware and should be hidden
2129
- // set visibility to hidden and disable pointer events so the UI behaves
2130
- // as if the PopperContent isn't there at all
2131
- ...((gt = W.hide) == null ? void 0 : gt.referenceHidden) && {
2132
- visibility: "hidden",
2133
- pointerEvents: "none"
2134
- }
2135
- },
2136
- dir: e.dir,
2137
- children: /* @__PURE__ */ P.jsx(
2138
- go,
2139
- {
2140
- scope: n,
2141
- placedSide: X,
2142
- onArrowChange: E,
2143
- arrowX: Cn,
2144
- arrowY: Sn,
2145
- shouldHideArrow: An,
2146
- children: /* @__PURE__ */ P.jsx(
2147
- oe.div,
2148
- {
2149
- "data-side": X,
2150
- "data-align": En,
2151
- ...f,
2152
- ref: b,
2153
- style: {
2154
- ...f.style,
2155
- // if the PopperContent hasn't been placed yet (not all measurements done)
2156
- // we prevent animations so that users's animation don't kick in too early referring wrong sides
2157
- animation: R ? void 0 : "none"
2158
- }
2159
- }
2160
- )
2161
- }
2162
- )
2163
- }
2164
- );
2165
- }
2166
- );
2167
- un.displayName = ft;
2168
- var fn = "PopperArrow", wo = {
2169
- top: "bottom",
2170
- right: "left",
2171
- bottom: "top",
2172
- left: "right"
2173
- }, dn = u.forwardRef(function(t, n) {
2174
- const { __scopePopper: r, ...o } = t, i = yo(fn, r), s = wo[i.placedSide];
2175
- return (
2176
- // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
2177
- // doesn't report size as we'd expect on SVG elements.
2178
- // it reports their bounding box which is effectively the largest path inside the SVG.
2179
- /* @__PURE__ */ P.jsx(
2180
- "span",
2181
- {
2182
- ref: i.onArrowChange,
2183
- style: {
2184
- position: "absolute",
2185
- left: i.arrowX,
2186
- top: i.arrowY,
2187
- [s]: 0,
2188
- transformOrigin: {
2189
- top: "",
2190
- right: "0 0",
2191
- bottom: "center 0",
2192
- left: "100% 0"
2193
- }[i.placedSide],
2194
- transform: {
2195
- top: "translateY(100%)",
2196
- right: "translateY(50%) rotate(90deg) translateX(-50%)",
2197
- bottom: "rotate(180deg)",
2198
- left: "translateY(50%) rotate(-90deg) translateX(50%)"
2199
- }[i.placedSide],
2200
- visibility: i.shouldHideArrow ? "hidden" : void 0
2201
- },
2202
- children: /* @__PURE__ */ P.jsx(
2203
- mo,
2204
- {
2205
- ...o,
2206
- ref: n,
2207
- style: {
2208
- ...o.style,
2209
- // ensures the element can be measured correctly (mostly for if SVG)
2210
- display: "block"
2211
- }
2212
- }
2213
- )
2214
- }
2215
- )
2216
- );
2217
- });
2218
- dn.displayName = fn;
2219
- function xo(e) {
2220
- return e !== null;
2221
- }
2222
- var bo = (e) => ({
2223
- name: "transformOrigin",
2224
- options: e,
2225
- fn(t) {
2226
- var v, y, w;
2227
- const { placement: n, rects: r, middlewareData: o } = t, s = ((v = o.arrow) == null ? void 0 : v.centerOffset) !== 0, c = s ? 0 : e.arrowWidth, a = s ? 0 : e.arrowHeight, [l, h] = hn(n), d = { start: "0%", center: "50%", end: "100%" }[h], p = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + c / 2, m = (((w = o.arrow) == null ? void 0 : w.y) ?? 0) + a / 2;
2228
- let g = "", f = "";
2229
- return l === "bottom" ? (g = s ? d : `${p}px`, f = `${-a}px`) : l === "top" ? (g = s ? d : `${p}px`, f = `${r.floating.height + a}px`) : l === "right" ? (g = `${-a}px`, f = s ? d : `${m}px`) : l === "left" && (g = `${r.floating.width + a}px`, f = s ? d : `${m}px`), { data: { x: g, y: f } };
2230
- }
2231
- });
2232
- function hn(e) {
2233
- const [t, n = "center"] = e.split("-");
2234
- return [t, n];
2235
- }
2236
- var Oi = cn, Ti = ln, Mi = un, Li = dn, Eo = "Portal", Co = u.forwardRef((e, t) => {
2237
- var c;
2238
- const { container: n, ...r } = e, [o, i] = u.useState(!1);
2239
- Ee(() => i(!0), []);
2240
- const s = n || o && ((c = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : c.body);
2241
- return s ? Hn.createPortal(/* @__PURE__ */ P.jsx(oe.div, { ...r, ref: t }), s) : null;
2242
- });
2243
- Co.displayName = Eo;
2244
- var So = function(e) {
2245
- if (typeof document > "u")
2246
- return null;
2247
- var t = Array.isArray(e) ? e[0] : e;
2248
- return t.ownerDocument.body;
2249
- }, le = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Me = {}, Ke = 0, mn = function(e) {
2250
- return e && (e.host || mn(e.parentNode));
2251
- }, Ao = function(e, t) {
2252
- return t.map(function(n) {
2253
- if (e.contains(n))
2254
- return n;
2255
- var r = mn(n);
2256
- return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
2257
- }).filter(function(n) {
2258
- return !!n;
2259
- });
2260
- }, Ro = function(e, t, n, r) {
2261
- var o = Ao(t, Array.isArray(e) ? e : [e]);
2262
- Me[n] || (Me[n] = /* @__PURE__ */ new WeakMap());
2263
- var i = Me[n], s = [], c = /* @__PURE__ */ new Set(), a = new Set(o), l = function(d) {
2264
- !d || c.has(d) || (c.add(d), l(d.parentNode));
2265
- };
2266
- o.forEach(l);
2267
- var h = function(d) {
2268
- !d || a.has(d) || Array.prototype.forEach.call(d.children, function(p) {
2269
- if (c.has(p))
2270
- h(p);
2271
- else
2272
- try {
2273
- var m = p.getAttribute(r), g = m !== null && m !== "false", f = (le.get(p) || 0) + 1, v = (i.get(p) || 0) + 1;
2274
- le.set(p, f), i.set(p, v), s.push(p), f === 1 && g && Te.set(p, !0), v === 1 && p.setAttribute(n, "true"), g || p.setAttribute(r, "true");
2275
- } catch (y) {
2276
- console.error("aria-hidden: cannot operate on ", p, y);
2277
- }
2278
- });
2279
- };
2280
- return h(t), c.clear(), Ke++, function() {
2281
- s.forEach(function(d) {
2282
- var p = le.get(d) - 1, m = i.get(d) - 1;
2283
- le.set(d, p), i.set(d, m), p || (Te.has(d) || d.removeAttribute(r), Te.delete(d)), m || d.removeAttribute(n);
2284
- }), Ke--, Ke || (le = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Me = {});
2285
- };
2286
- }, Ni = function(e, t, n) {
2287
- n === void 0 && (n = "data-aria-hidden");
2288
- var r = Array.from(Array.isArray(e) ? e : [e]), o = So(e);
2289
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Ro(r, o, n, "aria-hidden")) : function() {
2290
- return null;
2291
- };
2292
- }, z = function() {
2293
- return z = Object.assign || function(t) {
2294
- for (var n, r = 1, o = arguments.length; r < o; r++) {
2295
- n = arguments[r];
2296
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
2297
- }
2298
- return t;
2299
- }, z.apply(this, arguments);
2300
- };
2301
- function pn(e, t) {
2302
- var n = {};
2303
- for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2304
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
2305
- for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
2306
- t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
2307
- return n;
2308
- }
2309
- function Po(e, t, n) {
2310
- if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
2311
- (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
2312
- return e.concat(i || Array.prototype.slice.call(t));
2313
- }
2314
- var ke = "right-scroll-bar-position", Fe = "width-before-scroll-bar", Oo = "with-scroll-bars-hidden", To = "--removed-body-scroll-bar-size";
2315
- function Ge(e, t) {
2316
- return typeof e == "function" ? e(t) : e && (e.current = t), e;
2317
- }
2318
- function Mo(e, t) {
2319
- var n = In(function() {
2320
- return {
2321
- // value
2322
- value: e,
2323
- // last callback
2324
- callback: t,
2325
- // "memoized" public interface
2326
- facade: {
2327
- get current() {
2328
- return n.value;
2329
- },
2330
- set current(r) {
2331
- var o = n.value;
2332
- o !== r && (n.value = r, n.callback(r, o));
2333
- }
2334
- }
2335
- };
2336
- })[0];
2337
- return n.callback = t, n.facade;
2338
- }
2339
- var Lo = typeof window < "u" ? u.useLayoutEffect : u.useEffect, It = /* @__PURE__ */ new WeakMap();
2340
- function No(e, t) {
2341
- var n = Mo(null, function(r) {
2342
- return e.forEach(function(o) {
2343
- return Ge(o, r);
2344
- });
2345
- });
2346
- return Lo(function() {
2347
- var r = It.get(n);
2348
- if (r) {
2349
- var o = new Set(r), i = new Set(e), s = n.current;
2350
- o.forEach(function(c) {
2351
- i.has(c) || Ge(c, null);
2352
- }), i.forEach(function(c) {
2353
- o.has(c) || Ge(c, s);
2354
- });
2355
- }
2356
- It.set(n, e);
2357
- }, [e]), n;
2358
- }
2359
- function Do(e) {
2360
- return e;
2361
- }
2362
- function ko(e, t) {
2363
- t === void 0 && (t = Do);
2364
- var n = [], r = !1, o = {
2365
- read: function() {
2366
- if (r)
2367
- throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
2368
- return n.length ? n[n.length - 1] : e;
2369
- },
2370
- useMedium: function(i) {
2371
- var s = t(i, r);
2372
- return n.push(s), function() {
2373
- n = n.filter(function(c) {
2374
- return c !== s;
2375
- });
2376
- };
2377
- },
2378
- assignSyncMedium: function(i) {
2379
- for (r = !0; n.length; ) {
2380
- var s = n;
2381
- n = [], s.forEach(i);
2382
- }
2383
- n = {
2384
- push: function(c) {
2385
- return i(c);
2386
- },
2387
- filter: function() {
2388
- return n;
2389
- }
2390
- };
2391
- },
2392
- assignMedium: function(i) {
2393
- r = !0;
2394
- var s = [];
2395
- if (n.length) {
2396
- var c = n;
2397
- n = [], c.forEach(i), s = n;
2398
- }
2399
- var a = function() {
2400
- var h = s;
2401
- s = [], h.forEach(i);
2402
- }, l = function() {
2403
- return Promise.resolve().then(a);
2404
- };
2405
- l(), n = {
2406
- push: function(h) {
2407
- s.push(h), l();
2408
- },
2409
- filter: function(h) {
2410
- return s = s.filter(h), n;
2411
- }
2412
- };
2413
- }
2414
- };
2415
- return o;
2416
- }
2417
- function Fo(e) {
2418
- e === void 0 && (e = {});
2419
- var t = ko(null);
2420
- return t.options = z({ async: !0, ssr: !1 }, e), t;
2421
- }
2422
- var vn = function(e) {
2423
- var t = e.sideCar, n = pn(e, ["sideCar"]);
2424
- if (!t)
2425
- throw new Error("Sidecar: please provide `sideCar` property to import the right car");
2426
- var r = t.read();
2427
- if (!r)
2428
- throw new Error("Sidecar medium not found");
2429
- return u.createElement(r, z({}, n));
2430
- };
2431
- vn.isSideCarExport = !0;
2432
- function Io(e, t) {
2433
- return e.useMedium(t), vn;
2434
- }
2435
- var gn = Fo(), Ze = function() {
2436
- }, $e = u.forwardRef(function(e, t) {
2437
- var n = u.useRef(null), r = u.useState({
2438
- onScrollCapture: Ze,
2439
- onWheelCapture: Ze,
2440
- onTouchMoveCapture: Ze
2441
- }), o = r[0], i = r[1], s = e.forwardProps, c = e.children, a = e.className, l = e.removeScrollBar, h = e.enabled, d = e.shards, p = e.sideCar, m = e.noIsolation, g = e.inert, f = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, w = e.gapMode, b = pn(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = p, E = No([n, t]), C = z(z({}, b), o);
2442
- return u.createElement(
2443
- u.Fragment,
2444
- null,
2445
- h && u.createElement(x, { sideCar: gn, removeScrollBar: l, shards: d, noIsolation: m, inert: g, setCallbacks: i, allowPinchZoom: !!f, lockRef: n, gapMode: w }),
2446
- s ? u.cloneElement(u.Children.only(c), z(z({}, C), { ref: E })) : u.createElement(y, z({}, C, { className: a, ref: E }), c)
2447
- );
2448
- });
2449
- $e.defaultProps = {
2450
- enabled: !0,
2451
- removeScrollBar: !0,
2452
- inert: !1
2453
- };
2454
- $e.classNames = {
2455
- fullWidth: Fe,
2456
- zeroRight: ke
2457
- };
2458
- var Wo = function() {
2459
- if (typeof __webpack_nonce__ < "u")
2460
- return __webpack_nonce__;
2461
- };
2462
- function _o() {
2463
- if (!document)
2464
- return null;
2465
- var e = document.createElement("style");
2466
- e.type = "text/css";
2467
- var t = Wo();
2468
- return t && e.setAttribute("nonce", t), e;
2469
- }
2470
- function Bo(e, t) {
2471
- e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
2472
- }
2473
- function jo(e) {
2474
- var t = document.head || document.getElementsByTagName("head")[0];
2475
- t.appendChild(e);
2476
- }
2477
- var $o = function() {
2478
- var e = 0, t = null;
2479
- return {
2480
- add: function(n) {
2481
- e == 0 && (t = _o()) && (Bo(t, n), jo(t)), e++;
2482
- },
2483
- remove: function() {
2484
- e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
2485
- }
2486
- };
2487
- }, Ho = function() {
2488
- var e = $o();
2489
- return function(t, n) {
2490
- u.useEffect(function() {
2491
- return e.add(t), function() {
2492
- e.remove();
2493
- };
2494
- }, [t && n]);
2495
- };
2496
- }, yn = function() {
2497
- var e = Ho(), t = function(n) {
2498
- var r = n.styles, o = n.dynamic;
2499
- return e(r, o), null;
2500
- };
2501
- return t;
2502
- }, Vo = {
2503
- left: 0,
2504
- top: 0,
2505
- right: 0,
2506
- gap: 0
2507
- }, qe = function(e) {
2508
- return parseInt(e || "", 10) || 0;
2509
- }, zo = function(e) {
2510
- var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
2511
- return [qe(n), qe(r), qe(o)];
2512
- }, Uo = function(e) {
2513
- if (e === void 0 && (e = "margin"), typeof window > "u")
2514
- return Vo;
2515
- var t = zo(e), n = document.documentElement.clientWidth, r = window.innerWidth;
2516
- return {
2517
- left: t[0],
2518
- top: t[1],
2519
- right: t[2],
2520
- gap: Math.max(0, r - n + t[2] - t[0])
2521
- };
2522
- }, Yo = yn(), he = "data-scroll-locked", Xo = function(e, t, n, r) {
2523
- var o = e.left, i = e.top, s = e.right, c = e.gap;
2524
- return n === void 0 && (n = "margin"), `
2525
- .`.concat(Oo, ` {
2526
- overflow: hidden `).concat(r, `;
2527
- padding-right: `).concat(c, "px ").concat(r, `;
2528
- }
2529
- body[`).concat(he, `] {
2530
- overflow: hidden `).concat(r, `;
2531
- overscroll-behavior: contain;
2532
- `).concat([
2533
- t && "position: relative ".concat(r, ";"),
2534
- n === "margin" && `
2535
- padding-left: `.concat(o, `px;
2536
- padding-top: `).concat(i, `px;
2537
- padding-right: `).concat(s, `px;
2538
- margin-left:0;
2539
- margin-top:0;
2540
- margin-right: `).concat(c, "px ").concat(r, `;
2541
- `),
2542
- n === "padding" && "padding-right: ".concat(c, "px ").concat(r, ";")
2543
- ].filter(Boolean).join(""), `
2544
- }
2545
-
2546
- .`).concat(ke, ` {
2547
- right: `).concat(c, "px ").concat(r, `;
2548
- }
2549
-
2550
- .`).concat(Fe, ` {
2551
- margin-right: `).concat(c, "px ").concat(r, `;
2552
- }
2553
-
2554
- .`).concat(ke, " .").concat(ke, ` {
2555
- right: 0 `).concat(r, `;
2556
- }
2557
-
2558
- .`).concat(Fe, " .").concat(Fe, ` {
2559
- margin-right: 0 `).concat(r, `;
2560
- }
2561
-
2562
- body[`).concat(he, `] {
2563
- `).concat(To, ": ").concat(c, `px;
2564
- }
2565
- `);
2566
- }, Wt = function() {
2567
- var e = parseInt(document.body.getAttribute(he) || "0", 10);
2568
- return isFinite(e) ? e : 0;
2569
- }, Ko = function() {
2570
- u.useEffect(function() {
2571
- return document.body.setAttribute(he, (Wt() + 1).toString()), function() {
2572
- var e = Wt() - 1;
2573
- e <= 0 ? document.body.removeAttribute(he) : document.body.setAttribute(he, e.toString());
2574
- };
2575
- }, []);
2576
- }, Go = function(e) {
2577
- var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
2578
- Ko();
2579
- var i = u.useMemo(function() {
2580
- return Uo(o);
2581
- }, [o]);
2582
- return u.createElement(Yo, { styles: Xo(i, !t, o, n ? "" : "!important") });
2583
- }, nt = !1;
2584
- if (typeof window < "u")
2585
- try {
2586
- var Le = Object.defineProperty({}, "passive", {
2587
- get: function() {
2588
- return nt = !0, !0;
2589
- }
2590
- });
2591
- window.addEventListener("test", Le, Le), window.removeEventListener("test", Le, Le);
2592
- } catch {
2593
- nt = !1;
2594
- }
2595
- var ue = nt ? { passive: !1 } : !1, Zo = function(e) {
2596
- return e.tagName === "TEXTAREA";
2597
- }, wn = function(e, t) {
2598
- var n = window.getComputedStyle(e);
2599
- return (
2600
- // not-not-scrollable
2601
- n[t] !== "hidden" && // contains scroll inside self
2602
- !(n.overflowY === n.overflowX && !Zo(e) && n[t] === "visible")
2603
- );
2604
- }, qo = function(e) {
2605
- return wn(e, "overflowY");
2606
- }, Qo = function(e) {
2607
- return wn(e, "overflowX");
2608
- }, _t = function(e, t) {
2609
- var n = t.ownerDocument, r = t;
2610
- do {
2611
- typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
2612
- var o = xn(e, r);
2613
- if (o) {
2614
- var i = bn(e, r), s = i[1], c = i[2];
2615
- if (s > c)
2616
- return !0;
2617
- }
2618
- r = r.parentNode;
2619
- } while (r && r !== n.body);
2620
- return !1;
2621
- }, Jo = function(e) {
2622
- var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
2623
- return [
2624
- t,
2625
- n,
2626
- r
2627
- ];
2628
- }, ei = function(e) {
2629
- var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
2630
- return [
2631
- t,
2632
- n,
2633
- r
2634
- ];
2635
- }, xn = function(e, t) {
2636
- return e === "v" ? qo(t) : Qo(t);
2637
- }, bn = function(e, t) {
2638
- return e === "v" ? Jo(t) : ei(t);
2639
- }, ti = function(e, t) {
2640
- return e === "h" && t === "rtl" ? -1 : 1;
2641
- }, ni = function(e, t, n, r, o) {
2642
- var i = ti(e, window.getComputedStyle(t).direction), s = i * r, c = n.target, a = t.contains(c), l = !1, h = s > 0, d = 0, p = 0;
2643
- do {
2644
- var m = bn(e, c), g = m[0], f = m[1], v = m[2], y = f - v - i * g;
2645
- (g || y) && xn(e, c) && (d += y, p += g), c instanceof ShadowRoot ? c = c.host : c = c.parentNode;
2646
- } while (
2647
- // portaled content
2648
- !a && c !== document.body || // self content
2649
- a && (t.contains(c) || t === c)
2650
- );
2651
- return (h && (Math.abs(d) < 1 || !o) || !h && (Math.abs(p) < 1 || !o)) && (l = !0), l;
2652
- }, Ne = function(e) {
2653
- return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
2654
- }, Bt = function(e) {
2655
- return [e.deltaX, e.deltaY];
2656
- }, jt = function(e) {
2657
- return e && "current" in e ? e.current : e;
2658
- }, ri = function(e, t) {
2659
- return e[0] === t[0] && e[1] === t[1];
2660
- }, oi = function(e) {
2661
- return `
2662
- .block-interactivity-`.concat(e, ` {pointer-events: none;}
2663
- .allow-interactivity-`).concat(e, ` {pointer-events: all;}
2664
- `);
2665
- }, ii = 0, fe = [];
2666
- function si(e) {
2667
- var t = u.useRef([]), n = u.useRef([0, 0]), r = u.useRef(), o = u.useState(ii++)[0], i = u.useState(yn)[0], s = u.useRef(e);
2668
- u.useEffect(function() {
2669
- s.current = e;
2670
- }, [e]), u.useEffect(function() {
2671
- if (e.inert) {
2672
- document.body.classList.add("block-interactivity-".concat(o));
2673
- var f = Po([e.lockRef.current], (e.shards || []).map(jt), !0).filter(Boolean);
2674
- return f.forEach(function(v) {
2675
- return v.classList.add("allow-interactivity-".concat(o));
2676
- }), function() {
2677
- document.body.classList.remove("block-interactivity-".concat(o)), f.forEach(function(v) {
2678
- return v.classList.remove("allow-interactivity-".concat(o));
2679
- });
2680
- };
2681
- }
2682
- }, [e.inert, e.lockRef.current, e.shards]);
2683
- var c = u.useCallback(function(f, v) {
2684
- if ("touches" in f && f.touches.length === 2)
2685
- return !s.current.allowPinchZoom;
2686
- var y = Ne(f), w = n.current, b = "deltaX" in f ? f.deltaX : w[0] - y[0], x = "deltaY" in f ? f.deltaY : w[1] - y[1], E, C = f.target, S = Math.abs(b) > Math.abs(x) ? "h" : "v";
2687
- if ("touches" in f && S === "h" && C.type === "range")
2688
- return !1;
2689
- var A = _t(S, C);
2690
- if (!A)
2691
- return !0;
2692
- if (A ? E = S : (E = S === "v" ? "h" : "v", A = _t(S, C)), !A)
2693
- return !1;
2694
- if (!r.current && "changedTouches" in f && (b || x) && (r.current = E), !E)
2695
- return !0;
2696
- var O = r.current || E;
2697
- return ni(O, v, f, O === "h" ? b : x, !0);
2698
- }, []), a = u.useCallback(function(f) {
2699
- var v = f;
2700
- if (!(!fe.length || fe[fe.length - 1] !== i)) {
2701
- var y = "deltaY" in v ? Bt(v) : Ne(v), w = t.current.filter(function(E) {
2702
- return E.name === v.type && (E.target === v.target || v.target === E.shadowParent) && ri(E.delta, y);
2703
- })[0];
2704
- if (w && w.should) {
2705
- v.cancelable && v.preventDefault();
2706
- return;
2707
- }
2708
- if (!w) {
2709
- var b = (s.current.shards || []).map(jt).filter(Boolean).filter(function(E) {
2710
- return E.contains(v.target);
2711
- }), x = b.length > 0 ? c(v, b[0]) : !s.current.noIsolation;
2712
- x && v.cancelable && v.preventDefault();
2713
- }
2714
- }
2715
- }, []), l = u.useCallback(function(f, v, y, w) {
2716
- var b = { name: f, delta: v, target: y, should: w, shadowParent: ci(y) };
2717
- t.current.push(b), setTimeout(function() {
2718
- t.current = t.current.filter(function(x) {
2719
- return x !== b;
2720
- });
2721
- }, 1);
2722
- }, []), h = u.useCallback(function(f) {
2723
- n.current = Ne(f), r.current = void 0;
2724
- }, []), d = u.useCallback(function(f) {
2725
- l(f.type, Bt(f), f.target, c(f, e.lockRef.current));
2726
- }, []), p = u.useCallback(function(f) {
2727
- l(f.type, Ne(f), f.target, c(f, e.lockRef.current));
2728
- }, []);
2729
- u.useEffect(function() {
2730
- return fe.push(i), e.setCallbacks({
2731
- onScrollCapture: d,
2732
- onWheelCapture: d,
2733
- onTouchMoveCapture: p
2734
- }), document.addEventListener("wheel", a, ue), document.addEventListener("touchmove", a, ue), document.addEventListener("touchstart", h, ue), function() {
2735
- fe = fe.filter(function(f) {
2736
- return f !== i;
2737
- }), document.removeEventListener("wheel", a, ue), document.removeEventListener("touchmove", a, ue), document.removeEventListener("touchstart", h, ue);
2738
- };
2739
- }, []);
2740
- var m = e.removeScrollBar, g = e.inert;
2741
- return u.createElement(
2742
- u.Fragment,
2743
- null,
2744
- g ? u.createElement(i, { styles: oi(o) }) : null,
2745
- m ? u.createElement(Go, { gapMode: e.gapMode }) : null
2746
- );
2747
- }
2748
- function ci(e) {
2749
- for (var t = null; e !== null; )
2750
- e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
2751
- return t;
2752
- }
2753
- const ai = Io(gn, si);
2754
- var li = u.forwardRef(function(e, t) {
2755
- return u.createElement($e, z({}, e, { ref: t, sideCar: ai }));
2756
- });
2757
- li.classNames = $e.classNames;
2758
- var ui = "VisuallyHidden", fi = u.forwardRef(
2759
- (e, t) => /* @__PURE__ */ P.jsx(
2760
- oe.span,
2761
- {
2762
- ...e,
2763
- ref: t,
2764
- style: {
2765
- // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
2766
- position: "absolute",
2767
- border: 0,
2768
- width: 1,
2769
- height: 1,
2770
- padding: 0,
2771
- margin: -1,
2772
- overflow: "hidden",
2773
- clip: "rect(0, 0, 0, 0)",
2774
- whiteSpace: "nowrap",
2775
- wordWrap: "normal",
2776
- ...e.style
2777
- }
2778
- }
2779
- )
2780
- );
2781
- fi.displayName = ui;
2782
- export {
2783
- Ti as A,
2784
- Gn as B,
2785
- Mi as C,
2786
- sr as D,
2787
- dr as F,
2788
- wi as M,
2789
- oe as P,
2790
- li as R,
2791
- be as S,
2792
- fi as V,
2793
- Ri as a,
2794
- Ve as b,
2795
- zt as c,
2796
- ce as d,
2797
- Ee as e,
2798
- Ci as f,
2799
- Si as g,
2800
- ee as h,
2801
- Ni as i,
2802
- Ai as j,
2803
- bi as k,
2804
- Co as l,
2805
- xi as m,
2806
- Zn as n,
2807
- Pi as o,
2808
- Li as p,
2809
- Oi as q,
2810
- Vt as r,
2811
- er as s,
2812
- Ei as u
2813
- };
2814
- //# sourceMappingURL=index-Dolisrci.js.map