zudoku 0.62.0 → 0.63.1

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 (392) hide show
  1. package/dist/app/entry.server.js +14 -1
  2. package/dist/app/entry.server.js.map +1 -1
  3. package/dist/cli/cli.d.ts +9 -0
  4. package/dist/cli/cli.js +4 -10
  5. package/dist/cli/cli.js.map +1 -1
  6. package/dist/cli/common/version-check.d.ts +2 -0
  7. package/dist/cli/common/version-check.js +58 -0
  8. package/dist/cli/common/version-check.js.map +1 -0
  9. package/dist/config/config.d.ts +3 -0
  10. package/dist/config/validators/InputNavigationSchema.d.ts +64 -4
  11. package/dist/config/validators/icon-types.d.ts +1 -1
  12. package/dist/config/validators/icon-types.js +15 -0
  13. package/dist/config/validators/icon-types.js.map +1 -1
  14. package/dist/config/validators/validate.d.ts +29 -9
  15. package/dist/config/validators/validate.js +22 -0
  16. package/dist/config/validators/validate.js.map +1 -1
  17. package/dist/flat-config.d.ts +21 -2
  18. package/dist/lib/assets/language-icons/c.d.ts +3 -0
  19. package/dist/lib/assets/language-icons/c.js +4 -0
  20. package/dist/lib/assets/language-icons/c.js.map +1 -0
  21. package/dist/lib/assets/language-icons/commonlisp.d.ts +3 -0
  22. package/dist/lib/assets/language-icons/commonlisp.js +4 -0
  23. package/dist/lib/assets/language-icons/commonlisp.js.map +1 -0
  24. package/dist/lib/assets/language-icons/cpp.d.ts +3 -0
  25. package/dist/lib/assets/language-icons/cpp.js +4 -0
  26. package/dist/lib/assets/language-icons/cpp.js.map +1 -0
  27. package/dist/lib/assets/language-icons/dart.d.ts +3 -0
  28. package/dist/lib/assets/language-icons/dart.js +4 -0
  29. package/dist/lib/assets/language-icons/dart.js.map +1 -0
  30. package/dist/lib/assets/language-icons/elixir.d.ts +3 -0
  31. package/dist/lib/assets/language-icons/elixir.js +4 -0
  32. package/dist/lib/assets/language-icons/elixir.js.map +1 -0
  33. package/dist/lib/assets/language-icons/ocaml.d.ts +3 -0
  34. package/dist/lib/assets/language-icons/ocaml.js +4 -0
  35. package/dist/lib/assets/language-icons/ocaml.js.map +1 -0
  36. package/dist/lib/assets/language-icons/powershell.d.ts +3 -0
  37. package/dist/lib/assets/language-icons/powershell.js +4 -0
  38. package/dist/lib/assets/language-icons/powershell.js.map +1 -0
  39. package/dist/lib/assets/language-icons/scala.d.ts +3 -0
  40. package/dist/lib/assets/language-icons/scala.js +4 -0
  41. package/dist/lib/assets/language-icons/scala.js.map +1 -0
  42. package/dist/lib/assets/language-icons/zig.d.ts +3 -0
  43. package/dist/lib/assets/language-icons/zig.js +4 -0
  44. package/dist/lib/assets/language-icons/zig.js.map +1 -0
  45. package/dist/lib/authentication/authentication.d.ts +3 -0
  46. package/dist/lib/authentication/providers/auth0.js +7 -3
  47. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  48. package/dist/lib/components/Heading.js +1 -5
  49. package/dist/lib/components/Heading.js.map +1 -1
  50. package/dist/lib/components/LanguageIcon.js +45 -0
  51. package/dist/lib/components/LanguageIcon.js.map +1 -1
  52. package/dist/lib/components/Main.js +1 -1
  53. package/dist/lib/components/Main.js.map +1 -1
  54. package/dist/lib/components/cache.d.ts +3 -1
  55. package/dist/lib/components/cache.js +3 -5
  56. package/dist/lib/components/cache.js.map +1 -1
  57. package/dist/lib/components/context/ZudokuContext.js +10 -2
  58. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  59. package/dist/lib/components/index.d.ts +1 -2
  60. package/dist/lib/core/ZudokuContext.d.ts +1 -0
  61. package/dist/lib/core/ZudokuContext.js +2 -0
  62. package/dist/lib/core/ZudokuContext.js.map +1 -1
  63. package/dist/lib/hooks/index.d.ts +1 -1
  64. package/dist/lib/oas/graphql/index.js +17 -0
  65. package/dist/lib/oas/graphql/index.js.map +1 -1
  66. package/dist/lib/plugins/markdown/MdxPage.d.ts +2 -1
  67. package/dist/lib/plugins/markdown/MdxPage.js +28 -4
  68. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  69. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.d.ts +2 -0
  70. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js +3 -0
  71. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js.map +1 -0
  72. package/dist/lib/plugins/markdown/assets/ClaudeLogo.d.ts +2 -0
  73. package/dist/lib/plugins/markdown/assets/ClaudeLogo.js +3 -0
  74. package/dist/lib/plugins/markdown/assets/ClaudeLogo.js.map +1 -0
  75. package/dist/lib/plugins/markdown/index.d.ts +3 -1
  76. package/dist/lib/plugins/markdown/index.js +1 -1
  77. package/dist/lib/plugins/markdown/index.js.map +1 -1
  78. package/dist/lib/plugins/openapi/OperationList.js +7 -2
  79. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  80. package/dist/lib/plugins/openapi/OperationListItem.d.ts +2 -2
  81. package/dist/lib/plugins/openapi/OperationListItem.js +6 -3
  82. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  83. package/dist/lib/plugins/openapi/Sidecar.d.ts +2 -1
  84. package/dist/lib/plugins/openapi/Sidecar.js +6 -9
  85. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  86. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  87. package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
  88. package/dist/lib/plugins/openapi/graphql/gql.js +2 -1
  89. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  90. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +8 -2
  91. package/dist/lib/plugins/openapi/graphql/graphql.js +8 -0
  92. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  93. package/dist/lib/plugins/openapi/index.js +5 -10
  94. package/dist/lib/plugins/openapi/index.js.map +1 -1
  95. package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
  96. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  97. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  98. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  99. package/dist/lib/shiki.js +9 -0
  100. package/dist/lib/shiki.js.map +1 -1
  101. package/dist/lib/ui/Carousel.js.map +1 -1
  102. package/dist/lib/ui/Dialog.d.ts +12 -18
  103. package/dist/lib/ui/Dialog.js +30 -17
  104. package/dist/lib/ui/Dialog.js.map +1 -1
  105. package/dist/lib/util/pastellize.js +4 -4
  106. package/dist/lib/util/pastellize.js.map +1 -1
  107. package/dist/vite/api/SchemaManager.js.map +1 -1
  108. package/dist/vite/llms.d.ts +12 -0
  109. package/dist/vite/llms.js +66 -0
  110. package/dist/vite/llms.js.map +1 -0
  111. package/dist/vite/plugin-docs.d.ts +9 -0
  112. package/dist/vite/plugin-docs.js +68 -49
  113. package/dist/vite/plugin-docs.js.map +1 -1
  114. package/dist/vite/plugin-markdown-export.d.ts +21 -0
  115. package/dist/vite/plugin-markdown-export.js +141 -0
  116. package/dist/vite/plugin-markdown-export.js.map +1 -0
  117. package/dist/vite/plugin-navigation.js +4 -0
  118. package/dist/vite/plugin-navigation.js.map +1 -1
  119. package/dist/vite/plugin.js +2 -0
  120. package/dist/vite/plugin.js.map +1 -1
  121. package/dist/vite/prerender/prerender.js +30 -0
  122. package/dist/vite/prerender/prerender.js.map +1 -1
  123. package/lib/{Button-DTDRi4CT.js → Button-DmS4u8Lj.js} +2 -2
  124. package/lib/{Button-DTDRi4CT.js.map → Button-DmS4u8Lj.js.map} +1 -1
  125. package/lib/{Card-hTy9PAnh.js → Card-KFniaZn5.js} +2 -2
  126. package/lib/{Card-hTy9PAnh.js.map → Card-KFniaZn5.js.map} +1 -1
  127. package/lib/{CategoryHeading-BGCNu3VK.js → CategoryHeading-DhmodDcq.js} +2 -2
  128. package/lib/{CategoryHeading-BGCNu3VK.js.map → CategoryHeading-DhmodDcq.js.map} +1 -1
  129. package/lib/CodeBlock-CanTUJLl.js +221 -0
  130. package/lib/CodeBlock-CanTUJLl.js.map +1 -0
  131. package/lib/{Command-TEBTONf1.js → Command-CUcrW3qs.js} +3 -3
  132. package/lib/{Command-TEBTONf1.js.map → Command-CUcrW3qs.js.map} +1 -1
  133. package/lib/Dialog-BQciPiHN.js +144 -0
  134. package/lib/Dialog-BQciPiHN.js.map +1 -0
  135. package/lib/{Drawer-DM9wJUC6.js → Drawer-Ci7XwhqT.js} +2 -2
  136. package/lib/Drawer-Ci7XwhqT.js.map +1 -0
  137. package/lib/DropdownMenu-BZ2NKQ3K.js +126 -0
  138. package/lib/DropdownMenu-BZ2NKQ3K.js.map +1 -0
  139. package/lib/{ErrorAlert-xpVkFS_n.js → ErrorAlert-VBJ8aHH7.js} +100 -103
  140. package/lib/ErrorAlert-VBJ8aHH7.js.map +1 -0
  141. package/lib/MdxPage-1xaNI6q_.js +240 -0
  142. package/lib/MdxPage-1xaNI6q_.js.map +1 -0
  143. package/lib/{OAuthErrorPage-DCjFngGS.js → OAuthErrorPage-Du_4sFER.js} +7 -7
  144. package/lib/{OAuthErrorPage-DCjFngGS.js.map → OAuthErrorPage-Du_4sFER.js.map} +1 -1
  145. package/lib/{OasProvider-B6Co-6Vj.js → OasProvider-0xiB5cKH.js} +3 -3
  146. package/lib/{OasProvider-B6Co-6Vj.js.map → OasProvider-0xiB5cKH.js.map} +1 -1
  147. package/lib/{OperationList-uu04Ezta.js → OperationList-BzWKTkNq.js} +1328 -1319
  148. package/lib/OperationList-BzWKTkNq.js.map +1 -0
  149. package/lib/{Pagination-Cdi_qiXc.js → Pagination-DOcPyfy_.js} +3 -3
  150. package/lib/{Pagination-Cdi_qiXc.js.map → Pagination-DOcPyfy_.js.map} +1 -1
  151. package/lib/{RouteGuard-dji1UEYe.js → RouteGuard-Bg0Lu0OU.js} +5 -5
  152. package/lib/{RouteGuard-dji1UEYe.js.map → RouteGuard-Bg0Lu0OU.js.map} +1 -1
  153. package/lib/{RouterError-D1I15Qyy.js → RouterError-fm21cqlj.js} +4 -4
  154. package/lib/{RouterError-D1I15Qyy.js.map → RouterError-fm21cqlj.js.map} +1 -1
  155. package/lib/{SchemaList-BExl5RED.js → SchemaList-Dea2Skqv.js} +10 -10
  156. package/lib/{SchemaList-BExl5RED.js.map → SchemaList-Dea2Skqv.js.map} +1 -1
  157. package/lib/{SchemaView-BYH_AirG.js → SchemaView-H9glU5P7.js} +5 -5
  158. package/lib/{SchemaView-BYH_AirG.js.map → SchemaView-H9glU5P7.js.map} +1 -1
  159. package/lib/{Select-CegS9OKH.js → Select-CPoGZU_V.js} +4 -4
  160. package/lib/{Select-CegS9OKH.js.map → Select-CPoGZU_V.js.map} +1 -1
  161. package/lib/{SignUp-C-YP_Rxi.js → SignUp-DUZ4yUmQ.js} +9 -9
  162. package/lib/{SignUp-C-YP_Rxi.js.map → SignUp-DUZ4yUmQ.js.map} +1 -1
  163. package/lib/{Spinner-Cf6E803I.js → Spinner-CI6bRyZw.js} +2 -2
  164. package/lib/{Spinner-Cf6E803I.js.map → Spinner-CI6bRyZw.js.map} +1 -1
  165. package/lib/{SyntaxHighlight-CPF64UHi.js → SyntaxHighlight-B0laqAqK.js} +6 -6
  166. package/lib/{SyntaxHighlight-CPF64UHi.js.map → SyntaxHighlight-B0laqAqK.js.map} +1 -1
  167. package/lib/{Toc-Cf5UojVb.js → Toc-KzXCRqrX.js} +3 -3
  168. package/lib/{Toc-Cf5UojVb.js.map → Toc-KzXCRqrX.js.map} +1 -1
  169. package/lib/ZudokuContext-BXTZApgy.js +1506 -0
  170. package/lib/ZudokuContext-BXTZApgy.js.map +1 -0
  171. package/lib/c-B-NUhs61.js +46 -0
  172. package/lib/c-B-NUhs61.js.map +1 -0
  173. package/lib/chunk-PVWAREVJ-BO6B-RAk.js.map +1 -1
  174. package/lib/{circular-06Yrxzsw.js → circular-OGtD_zFg.js} +30 -30
  175. package/lib/{circular-06Yrxzsw.js.map → circular-OGtD_zFg.js.map} +1 -1
  176. package/lib/commonlisp-De080z23.js +28 -0
  177. package/lib/commonlisp-De080z23.js.map +1 -0
  178. package/lib/cpp-79Paht7T.js +53 -0
  179. package/lib/cpp-79Paht7T.js.map +1 -0
  180. package/lib/{createServer-BA0aitmR.js → createServer-DyUc5BPr.js} +1120 -1083
  181. package/lib/createServer-DyUc5BPr.js.map +1 -0
  182. package/lib/{csharp-rrJEDRrV.js → csharp-D8MIL50B.js} +2 -2
  183. package/lib/{csharp-rrJEDRrV.js.map → csharp-D8MIL50B.js.map} +1 -1
  184. package/lib/{css-Dpk9bCql.js → css-Bt6hr1td.js} +2 -2
  185. package/lib/{css-Dpk9bCql.js.map → css-Bt6hr1td.js.map} +1 -1
  186. package/lib/dart-B0vy1jWB.js +60 -0
  187. package/lib/dart-B0vy1jWB.js.map +1 -0
  188. package/lib/elixir-Ds8r0sF8.js +25 -0
  189. package/lib/elixir-Ds8r0sF8.js.map +1 -0
  190. package/lib/{errors-ouIp07AW.js → errors-7_i0Oyw4.js} +3 -3
  191. package/lib/{errors-ouIp07AW.js.map → errors-7_i0Oyw4.js.map} +1 -1
  192. package/lib/{go-D8SJIQ0Z.js → go-D2VsmIOS.js} +2 -2
  193. package/lib/{go-D8SJIQ0Z.js.map → go-D2VsmIOS.js.map} +1 -1
  194. package/lib/{graphql-aeVKJNa2.js → graphql-BtA6M4m5.js} +2 -2
  195. package/lib/{graphql-aeVKJNa2.js.map → graphql-BtA6M4m5.js.map} +1 -1
  196. package/lib/hook-CAebs2rv.js +31 -0
  197. package/lib/hook-CAebs2rv.js.map +1 -0
  198. package/lib/{html-D_7om-nA.js → html-MGnI2uzP.js} +2 -2
  199. package/lib/{html-D_7om-nA.js.map → html-MGnI2uzP.js.map} +1 -1
  200. package/lib/{index-DhL3LhWV.js → index-C5L4favO.js} +166 -50
  201. package/lib/index-C5L4favO.js.map +1 -0
  202. package/lib/{index-CVfG8Pb4.js → index-CLJGtw_S.js} +157 -156
  203. package/lib/index-CLJGtw_S.js.map +1 -0
  204. package/lib/index-CrcNWbel.js.map +1 -1
  205. package/lib/{index-BRQDtecD.js → index-PdgTSEkk.js} +779 -896
  206. package/lib/index-PdgTSEkk.js.map +1 -0
  207. package/lib/index.esm-BYObtETB.js +1294 -0
  208. package/lib/index.esm-BYObtETB.js.map +1 -0
  209. package/lib/index.esm-BnYHxCYC.js.map +1 -1
  210. package/lib/{java-DUh-EL8n.js → java-CVLzHfb1.js} +2 -2
  211. package/lib/{java-DUh-EL8n.js.map → java-CVLzHfb1.js.map} +1 -1
  212. package/lib/{javascript-CrY8dcGu.js → javascript-CcmIpL4G.js} +2 -2
  213. package/lib/{javascript-CrY8dcGu.js.map → javascript-CcmIpL4G.js.map} +1 -1
  214. package/lib/{json-DLK2_sdf.js → json-4AyP4uiY.js} +2 -2
  215. package/lib/{json-DLK2_sdf.js.map → json-4AyP4uiY.js.map} +1 -1
  216. package/lib/{jsx-runtime-DywqP_6a.js → jsx-runtime-BzflLqGi.js} +109 -111
  217. package/lib/jsx-runtime-BzflLqGi.js.map +1 -0
  218. package/lib/{kotlin-rJMOGl7D.js → kotlin-v2plddBQ.js} +2 -2
  219. package/lib/{kotlin-rJMOGl7D.js.map → kotlin-v2plddBQ.js.map} +1 -1
  220. package/lib/{markdown-BD9bIU5J.js → markdown-DYGWCmGQ.js} +2 -2
  221. package/lib/{markdown-BD9bIU5J.js.map → markdown-DYGWCmGQ.js.map} +1 -1
  222. package/lib/{mdx-G25UCvf3.js → mdx-CHwYvXd4.js} +2 -2
  223. package/lib/{mdx-G25UCvf3.js.map → mdx-CHwYvXd4.js.map} +1 -1
  224. package/lib/{mutation-De-1gXxl.js → mutation-CdGPxHNX.js} +2 -2
  225. package/lib/{mutation-De-1gXxl.js.map → mutation-CdGPxHNX.js.map} +1 -1
  226. package/lib/{objectivec-DDpj0aWX.js → objectivec-HZY8shkd.js} +2 -2
  227. package/lib/{objectivec-DDpj0aWX.js.map → objectivec-HZY8shkd.js.map} +1 -1
  228. package/lib/ocaml-DqsdDdwb.js +52 -0
  229. package/lib/ocaml-DqsdDdwb.js.map +1 -0
  230. package/lib/{php-BeG18bSy.js → php-rQXzo7K_.js} +2 -2
  231. package/lib/{php-BeG18bSy.js.map → php-rQXzo7K_.js.map} +1 -1
  232. package/lib/powershell-CQje9pm1.js +39 -0
  233. package/lib/powershell-CQje9pm1.js.map +1 -0
  234. package/lib/{python-BaF2byD-.js → python-QIQAE5Ei.js} +2 -2
  235. package/lib/{python-BaF2byD-.js.map → python-QIQAE5Ei.js.map} +1 -1
  236. package/lib/{react-CQvDN20M.js → react-DHpVpxRv.js} +2 -2
  237. package/lib/{react-CQvDN20M.js.map → react-DHpVpxRv.js.map} +1 -1
  238. package/lib/{ruby-CmxRVHMR.js → ruby-B2dU8Ny5.js} +2 -2
  239. package/lib/{ruby-CmxRVHMR.js.map → ruby-B2dU8Ny5.js.map} +1 -1
  240. package/lib/{rust-IfSC62c5.js → rust-DYnLHAi2.js} +2 -2
  241. package/lib/{rust-IfSC62c5.js.map → rust-DYnLHAi2.js.map} +1 -1
  242. package/lib/scala-CeKInBR8.js +25 -0
  243. package/lib/scala-CeKInBR8.js.map +1 -0
  244. package/lib/{shell-BFu0M6m4.js → shell-HUv9oVtp.js} +2 -2
  245. package/lib/{shell-BFu0M6m4.js.map → shell-HUv9oVtp.js.map} +1 -1
  246. package/lib/{swift-DckbsN4v.js → swift-B4z6ig1Z.js} +2 -2
  247. package/lib/{swift-DckbsN4v.js.map → swift-B4z6ig1Z.js.map} +1 -1
  248. package/lib/{toml-BJsCc8TC.js → toml-Co9mpdct.js} +2 -2
  249. package/lib/{toml-BJsCc8TC.js.map → toml-Co9mpdct.js.map} +1 -1
  250. package/lib/{typescript-7qOVMjOC.js → typescript-C26xdBDC.js} +2 -2
  251. package/lib/{typescript-7qOVMjOC.js.map → typescript-C26xdBDC.js.map} +1 -1
  252. package/lib/ui/Accordion.js +1 -1
  253. package/lib/ui/ActionButton.js +3 -3
  254. package/lib/ui/Alert.js +1 -1
  255. package/lib/ui/AlertDialog.js +1 -1
  256. package/lib/ui/Badge.js +1 -1
  257. package/lib/ui/Breadcrumb.js +1 -1
  258. package/lib/ui/Button.js +1 -1
  259. package/lib/ui/Callout.js +1 -1
  260. package/lib/ui/Card.js +1 -1
  261. package/lib/ui/Carousel.js +1 -1
  262. package/lib/ui/Carousel.js.map +1 -1
  263. package/lib/ui/Checkbox.js +1 -1
  264. package/lib/ui/CodeBlock.js +2 -2
  265. package/lib/ui/Command.js +2 -2
  266. package/lib/ui/Dialog.js +135 -105
  267. package/lib/ui/Dialog.js.map +1 -1
  268. package/lib/ui/Drawer.js +2 -2
  269. package/lib/ui/DropdownMenu.js +1 -1
  270. package/lib/ui/EmbeddedCodeBlock.js +1 -1
  271. package/lib/ui/Form.js +2 -2
  272. package/lib/ui/HoverCard.js +1 -1
  273. package/lib/ui/Input.js +1 -1
  274. package/lib/ui/Label.js +1 -1
  275. package/lib/ui/Pagination.js +1 -1
  276. package/lib/ui/Popover.js +1 -1
  277. package/lib/ui/Progress.js +1 -1
  278. package/lib/ui/RadioGroup.js +1 -1
  279. package/lib/ui/ReactComponentDoc.js +1 -1
  280. package/lib/ui/ScrollArea.js +1 -1
  281. package/lib/ui/Secret.js +1 -1
  282. package/lib/ui/Select.js +1 -1
  283. package/lib/ui/Skeleton.js +1 -1
  284. package/lib/ui/Slider.js +1 -1
  285. package/lib/ui/Stepper.js +1 -1
  286. package/lib/ui/Switch.js +1 -1
  287. package/lib/ui/SyntaxHighlight.js +4 -4
  288. package/lib/ui/Tabs.js +1 -1
  289. package/lib/ui/Textarea.js +1 -1
  290. package/lib/ui/Toggle.js +1 -1
  291. package/lib/ui/ToggleGroup.js +1 -1
  292. package/lib/ui/Tooltip.js +1 -1
  293. package/lib/ui/Value.js +1 -1
  294. package/lib/{useExposedProps-B8NHdNRq.js → useExposedProps-Cd7Yg_uG.js} +3 -3
  295. package/lib/useExposedProps-Cd7Yg_uG.js.map +1 -0
  296. package/lib/{xml-DAaTIkBX.js → xml-BQOOC04j.js} +2 -2
  297. package/lib/{xml-DAaTIkBX.js.map → xml-BQOOC04j.js.map} +1 -1
  298. package/lib/{yaml-DUi-dbfu.js → yaml-BGsJItKv.js} +2 -2
  299. package/lib/{yaml-DUi-dbfu.js.map → yaml-BGsJItKv.js.map} +1 -1
  300. package/lib/zig-CUV2sTct.js +35 -0
  301. package/lib/zig-CUV2sTct.js.map +1 -0
  302. package/lib/zudoku.__internal.js +1040 -937
  303. package/lib/zudoku.__internal.js.map +1 -1
  304. package/lib/zudoku.auth-auth0.js +22 -21
  305. package/lib/zudoku.auth-auth0.js.map +1 -1
  306. package/lib/zudoku.auth-azureb2c.js +14 -15
  307. package/lib/zudoku.auth-azureb2c.js.map +1 -1
  308. package/lib/zudoku.auth-clerk.js +3 -3
  309. package/lib/zudoku.auth-openid.js +57 -58
  310. package/lib/zudoku.auth-openid.js.map +1 -1
  311. package/lib/zudoku.auth-supabase.js +2 -2
  312. package/lib/zudoku.components.js +6 -6
  313. package/lib/zudoku.hooks.js +6 -6
  314. package/lib/zudoku.hooks.js.map +1 -1
  315. package/lib/zudoku.icons.js +1 -1
  316. package/lib/zudoku.plugin-api-catalog.js +27 -28
  317. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  318. package/lib/zudoku.plugin-api-keys.js +89 -89
  319. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  320. package/lib/zudoku.plugin-custom-pages.js +1 -1
  321. package/lib/zudoku.plugin-markdown.js +10 -9
  322. package/lib/zudoku.plugin-markdown.js.map +1 -1
  323. package/lib/zudoku.plugin-openapi.js +6 -7
  324. package/lib/zudoku.plugin-openapi.js.map +1 -1
  325. package/lib/zudoku.plugin-search-inkeep.js +1 -1
  326. package/lib/zudoku.plugin-search-pagefind.js +27 -28
  327. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  328. package/lib/zudoku.router.js +1 -1
  329. package/lib/zudoku.router.js.map +1 -1
  330. package/package.json +40 -40
  331. package/src/app/entry.server.tsx +16 -6
  332. package/src/app/main.css +42 -0
  333. package/src/lib/assets/language-icons/c.tsx +31 -0
  334. package/src/lib/assets/language-icons/commonlisp.tsx +22 -0
  335. package/src/lib/assets/language-icons/cpp.tsx +35 -0
  336. package/src/lib/assets/language-icons/dart.tsx +39 -0
  337. package/src/lib/assets/language-icons/elixir.tsx +19 -0
  338. package/src/lib/assets/language-icons/ocaml.tsx +34 -0
  339. package/src/lib/assets/language-icons/powershell.tsx +27 -0
  340. package/src/lib/assets/language-icons/scala.tsx +19 -0
  341. package/src/lib/assets/language-icons/zig.tsx +32 -0
  342. package/src/lib/authentication/authentication.ts +3 -1
  343. package/src/lib/authentication/providers/auth0.tsx +7 -3
  344. package/src/lib/components/Heading.tsx +2 -6
  345. package/src/lib/components/LanguageIcon.tsx +45 -0
  346. package/src/lib/components/Main.tsx +1 -1
  347. package/src/lib/components/cache.ts +9 -5
  348. package/src/lib/components/context/ZudokuContext.ts +11 -2
  349. package/src/lib/core/ZudokuContext.ts +3 -0
  350. package/src/lib/oas/graphql/index.ts +19 -0
  351. package/src/lib/plugins/markdown/MdxPage.tsx +125 -8
  352. package/src/lib/plugins/markdown/assets/ChatGPTLogo.tsx +11 -0
  353. package/src/lib/plugins/markdown/assets/ClaudeLogo.tsx +19 -0
  354. package/src/lib/plugins/markdown/index.tsx +5 -7
  355. package/src/lib/plugins/openapi/OperationList.tsx +9 -2
  356. package/src/lib/plugins/openapi/OperationListItem.tsx +10 -5
  357. package/src/lib/plugins/openapi/Sidecar.tsx +8 -8
  358. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +1 -0
  359. package/src/lib/plugins/openapi/graphql/gql.ts +4 -3
  360. package/src/lib/plugins/openapi/graphql/graphql.ts +20 -3
  361. package/src/lib/plugins/openapi/index.tsx +10 -30
  362. package/src/lib/plugins/openapi/playground/Playground.tsx +1 -1
  363. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
  364. package/src/lib/shiki.ts +9 -0
  365. package/src/lib/ui/Carousel.tsx +0 -1
  366. package/src/lib/ui/Dialog.tsx +112 -106
  367. package/src/lib/util/pastellize.ts +4 -4
  368. package/src/shiki/langs/hurl.js +1 -0
  369. package/src/shiki/langs/kdl.js +1 -0
  370. package/src/shiki/langs/pkl.js +1 -0
  371. package/src/shiki/langs/rosmsg.js +1 -0
  372. package/lib/CodeBlock-i0BM_QFf.js +0 -176
  373. package/lib/CodeBlock-i0BM_QFf.js.map +0 -1
  374. package/lib/Dialog-VIMic7xI.js +0 -114
  375. package/lib/Dialog-VIMic7xI.js.map +0 -1
  376. package/lib/Drawer-DM9wJUC6.js.map +0 -1
  377. package/lib/ErrorAlert-xpVkFS_n.js.map +0 -1
  378. package/lib/MdxPage-Ud1w_GV-.js +0 -111
  379. package/lib/MdxPage-Ud1w_GV-.js.map +0 -1
  380. package/lib/OperationList-uu04Ezta.js.map +0 -1
  381. package/lib/ZudokuContext-BcqSiygJ.js +0 -1294
  382. package/lib/ZudokuContext-BcqSiygJ.js.map +0 -1
  383. package/lib/createServer-BA0aitmR.js.map +0 -1
  384. package/lib/hook-BkLXq8pm.js +0 -243
  385. package/lib/hook-BkLXq8pm.js.map +0 -1
  386. package/lib/index-BRQDtecD.js.map +0 -1
  387. package/lib/index-CVfG8Pb4.js.map +0 -1
  388. package/lib/index-DhL3LhWV.js.map +0 -1
  389. package/lib/index.esm-DpgNxKa2.js +0 -1267
  390. package/lib/index.esm-DpgNxKa2.js.map +0 -1
  391. package/lib/jsx-runtime-DywqP_6a.js.map +0 -1
  392. package/lib/useExposedProps-B8NHdNRq.js.map +0 -1
@@ -1,52 +1,51 @@
1
- import { j as n } from "./jsx-runtime-DywqP_6a.js";
2
- import { ChevronUpIcon as vn, ChevronRightIcon as bn, CheckIcon as gt, DotIcon as jn, PlusCircleIcon as he, FileInput as Cn, Check as Nn, TableOfContentsIcon as wn, LockIcon as Sn, CircleAlertIcon as Tn, XIcon as xt, Circle as An, Unlink2Icon as On, CornerDownRightIcon as Pn, CornerDownLeftIcon as Rn, DownloadIcon as Ln, EyeOffIcon as $n, EyeIcon as En, UnplugIcon as In, SendIcon as kn, CopyIcon as Dn, IdCardLanyardIcon as zn, ShapesIcon as Fn, LogInIcon as qn, CirclePlayIcon as Vn } from "lucide-react";
3
- import { r as Bn, u as _n, c as Un, N as Mn, aL as Gn, m as rt } from "./chunk-PVWAREVJ-BO6B-RAk.js";
4
- import { c as $e, p as Ee, b as yt, a as Hn } from "./hook-BkLXq8pm.js";
5
- import { Button as te } from "./ui/Button.js";
6
- import { d as Qn, f as Jn, I as Wn, j as k, b as Xn } from "./ZudokuContext-BcqSiygJ.js";
7
- import { Z as Zn, i as Yn } from "./invariant-Bm-FVUQE.js";
8
- import * as A from "react";
9
- import { createContext as vt, use as Kn, useRef as R, useEffect as z, useMemo as bt, useState as E, useCallback as jt, Fragment as Y, useLayoutEffect as es, useTransition as ts, useContext as ns } from "react";
10
- import { VisuallyHidden as ss } from "@radix-ui/react-visually-hidden";
11
- import { useAuth as rs } from "./zudoku.hooks.js";
12
- import { D as Ie, a as ke, c as De, d as Ct, e as Nt, g as as } from "./Dialog-VIMic7xI.js";
13
- import { S as os, b as is } from "./index-CVfG8Pb4.js";
14
- import { S as wt, c as St, d as Tt, e as At, g as ce, i as cs, A as ls, a as ds, b as us, u as ms } from "./Select-CegS9OKH.js";
15
- import { u as re, b as ze, C as F, a as ps, F as hs } from "./index.esm-DpgNxKa2.js";
16
- import { B as I } from "./Button-DTDRi4CT.js";
1
+ import { j as n } from "./jsx-runtime-BzflLqGi.js";
2
+ import { ChevronUpIcon as pn, PlusCircleIcon as pe, FileInput as hn, Check as fn, TableOfContentsIcon as gn, LockIcon as xn, CircleAlertIcon as yn, XIcon as ft, Circle as vn, Unlink2Icon as bn, CornerDownRightIcon as jn, CornerDownLeftIcon as Cn, DownloadIcon as wn, EyeOffIcon as Nn, EyeIcon as Sn, UnplugIcon as Tn, SendIcon as An, CheckIcon as On, CopyIcon as Pn, IdCardLanyardIcon as Ln, ShapesIcon as $n, CirclePlayIcon as En } from "lucide-react";
3
+ import { r as Rn, u as kn, c as In, N as Dn, aL as Fn, m as st } from "./chunk-PVWAREVJ-BO6B-RAk.js";
4
+ import { Button as ce } from "./ui/Button.js";
5
+ import { J as $e, K as Ee, L as gt, a as zn, e as qn, M as Vn, j as R, b as Bn } from "./ZudokuContext-BXTZApgy.js";
6
+ import { Z as _n, i as Un } from "./invariant-Bm-FVUQE.js";
7
+ import * as q from "react";
8
+ import { createContext as xt, use as Mn, useRef as O, useEffect as I, useMemo as yt, useState as $, useCallback as vt, Fragment as Z, useLayoutEffect as Gn, useTransition as Hn, useContext as Qn } from "react";
9
+ import { VisuallyHidden as Jn } from "@radix-ui/react-visually-hidden";
10
+ import { useAuth as Wn } from "./zudoku.hooks.js";
11
+ import { D as Re, a as ke, c as Ie, d as bt, e as jt, g as Xn } from "./Dialog-BQciPiHN.js";
12
+ import { S as Zn, b as Yn } from "./index-CLJGtw_S.js";
13
+ import { S as Ct, c as wt, d as Nt, e as St, g as oe, i as Kn, A as es, a as ts, b as ns, u as ss } from "./Select-CPoGZU_V.js";
14
+ import { u as ne, b as De, C as D, a as rs, F as as } from "./index.esm-BYObtETB.js";
15
+ import { B as E } from "./Button-DmS4u8Lj.js";
17
16
  import * as Fe from "@radix-ui/react-collapsible";
18
- import { g as at, h as ot, i as it, j as fs } from "./ErrorAlert-xpVkFS_n.js";
19
- import { c as j } from "./cn-dYga0KKN.js";
20
- import { u as gs } from "./useCopyToClipboard-B_085nfO.js";
21
- import { u as xs } from "./useLatest-hmRS46UF.js";
22
- import * as N from "@radix-ui/react-dropdown-menu";
23
- import * as Pe from "@radix-ui/react-checkbox";
24
- import * as de from "@radix-ui/react-popover";
25
- import { PopoverAnchor as ys } from "@radix-ui/react-popover";
26
- import { P as vs } from "./index-CrcNWbel.js";
27
- import { f as bs, g as js, C as Cs, b as Ns } from "./Command-TEBTONf1.js";
28
- import { Input as ue } from "./ui/Input.js";
29
- import { Slot as ws } from "@radix-ui/react-slot";
30
- import { C as Ss } from "./Card-hTy9PAnh.js";
31
- import * as Ot from "@radix-ui/react-label";
32
- import { c as Ts } from "./index-DI5SPFK9.js";
33
- import * as ne from "@radix-ui/react-radio-group";
34
- import { z as As } from "./useExposedProps-B8NHdNRq.js";
35
- import { h as Os } from "./SyntaxHighlight-CPF64UHi.js";
36
- let je;
37
- const Ps = (e) => {
17
+ import { g as rt, h as at, i as ot, j as os } from "./ErrorAlert-VBJ8aHH7.js";
18
+ import { c as C } from "./cn-dYga0KKN.js";
19
+ import { u as is } from "./useCopyToClipboard-B_085nfO.js";
20
+ import { u as cs } from "./useLatest-hmRS46UF.js";
21
+ import { D as ls, a as ds, b as us, d as ms, e as ps, f as hs, c as fs } from "./DropdownMenu-BZ2NKQ3K.js";
22
+ import * as Oe from "@radix-ui/react-checkbox";
23
+ import * as le from "@radix-ui/react-popover";
24
+ import { PopoverAnchor as gs } from "@radix-ui/react-popover";
25
+ import { P as xs } from "./index-CrcNWbel.js";
26
+ import { f as ys, g as vs, C as bs, b as js } from "./Command-CUcrW3qs.js";
27
+ import { Input as de } from "./ui/Input.js";
28
+ import { Slot as Cs } from "@radix-ui/react-slot";
29
+ import { C as ws } from "./Card-KFniaZn5.js";
30
+ import * as Tt from "@radix-ui/react-label";
31
+ import { c as Ns } from "./index-DI5SPFK9.js";
32
+ import * as ee from "@radix-ui/react-radio-group";
33
+ import { z as Ss } from "./useExposedProps-Cd7Yg_uG.js";
34
+ import { h as Ts } from "./SyntaxHighlight-B0laqAqK.js";
35
+ let be;
36
+ const As = (e) => {
38
37
  if (e.errors?.[0])
39
- throw new Zn(e.errors[0].message, {
38
+ throw new _n(e.errors[0].message, {
40
39
  developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
41
40
  });
42
41
  };
43
- class Rs {
42
+ class Os {
44
43
  constructor(t) {
45
44
  this.config = t;
46
45
  }
47
- #e = async () => (je || (je = import("./createServer-BA0aitmR.js").then(
46
+ #e = async () => (be || (be = import("./createServer-DyUc5BPr.js").then(
48
47
  (t) => t.createServer(this.config)
49
- )), je);
48
+ )), be);
50
49
  #t = async (t) => this.config.server ? fetch(this.config.server, t) : (await this.#e()).fetch("http://localhost/graphql", t);
51
50
  fetch = async (t, s) => {
52
51
  const a = t.match(/query (\w+)/)?.[1], r = await this.#t({
@@ -57,27 +56,27 @@ class Rs {
57
56
  if (!r.ok)
58
57
  throw new Error("Network response was not ok");
59
58
  const o = await r.json();
60
- return Ps(o), o.data;
59
+ return As(o), o.data;
61
60
  };
62
61
  }
63
- function Ce(e, t) {
62
+ function je(e, t) {
64
63
  if (!!!e)
65
64
  throw new Error(t);
66
65
  }
67
- function Ls(e) {
66
+ function Ps(e) {
68
67
  return typeof e == "object" && e !== null;
69
68
  }
70
- function $s(e, t) {
69
+ function Ls(e, t) {
71
70
  if (!!!e)
72
71
  throw new Error(
73
72
  t ?? "Unexpected invariant triggered."
74
73
  );
75
74
  }
76
- const Es = /\r\n|[\n\r]/g;
77
- function Re(e, t) {
75
+ const $s = /\r\n|[\n\r]/g;
76
+ function Pe(e, t) {
78
77
  let s = 0, a = 1;
79
- for (const r of e.body.matchAll(Es)) {
80
- if (typeof r.index == "number" || $s(!1), r.index >= t)
78
+ for (const r of e.body.matchAll($s)) {
79
+ if (typeof r.index == "number" || Ls(!1), r.index >= t)
81
80
  break;
82
81
  s = r.index + r[0].length, a += 1;
83
82
  }
@@ -86,27 +85,27 @@ function Re(e, t) {
86
85
  column: t + 1 - s
87
86
  };
88
87
  }
89
- function Is(e) {
90
- return Pt(
88
+ function Es(e) {
89
+ return At(
91
90
  e.source,
92
- Re(e.source, e.start)
91
+ Pe(e.source, e.start)
93
92
  );
94
93
  }
95
- function Pt(e, t) {
94
+ function At(e, t) {
96
95
  const s = e.locationOffset.column - 1, a = "".padStart(s) + e.body, r = t.line - 1, o = e.locationOffset.line - 1, i = t.line + o, l = t.line === 1 ? s : 0, c = t.column + l, u = `${e.name}:${i}:${c}
97
96
  `, d = a.split(/\r\n|[\n\r]/g), h = d[r];
98
97
  if (h.length > 120) {
99
98
  const g = Math.floor(c / 80), m = c % 80, v = [];
100
99
  for (let y = 0; y < h.length; y += 80)
101
100
  v.push(h.slice(y, y + 80));
102
- return u + ct([
101
+ return u + it([
103
102
  [`${i} |`, v[0]],
104
103
  ...v.slice(1, g + 1).map((y) => ["|", y]),
105
104
  ["|", "^".padStart(m)],
106
105
  ["|", v[g + 1]]
107
106
  ]);
108
107
  }
109
- return u + ct([
108
+ return u + it([
110
109
  // Lines specified like this: ["prefix", "string"],
111
110
  [`${i - 1} |`, d[r - 1]],
112
111
  [`${i} |`, h],
@@ -114,12 +113,12 @@ function Pt(e, t) {
114
113
  [`${i + 1} |`, d[r + 1]]
115
114
  ]);
116
115
  }
117
- function ct(e) {
116
+ function it(e) {
118
117
  const t = e.filter(([a, r]) => r !== void 0), s = Math.max(...t.map(([a]) => a.length));
119
118
  return t.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
120
119
  `);
121
120
  }
122
- function ks(e) {
121
+ function Rs(e) {
123
122
  const t = e[0];
124
123
  return t == null || "kind" in t || "length" in t ? {
125
124
  nodes: t,
@@ -130,7 +129,7 @@ function ks(e) {
130
129
  extensions: e[5]
131
130
  } : t;
132
131
  }
133
- class qe extends Error {
132
+ class ze extends Error {
134
133
  /**
135
134
  * An array of `{ line, column }` locations within the source GraphQL document
136
135
  * which correspond to this error.
@@ -171,15 +170,15 @@ class qe extends Error {
171
170
  */
172
171
  constructor(t, ...s) {
173
172
  var a, r, o;
174
- const { nodes: i, source: l, positions: c, path: u, originalError: d, extensions: h } = ks(s);
175
- super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = d ?? void 0, this.nodes = lt(
173
+ const { nodes: i, source: l, positions: c, path: u, originalError: d, extensions: h } = Rs(s);
174
+ super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = d ?? void 0, this.nodes = ct(
176
175
  Array.isArray(i) ? i : i ? [i] : void 0
177
176
  );
178
- const g = lt(
177
+ const g = ct(
179
178
  (a = this.nodes) === null || a === void 0 ? void 0 : a.map((v) => v.loc).filter((v) => v != null)
180
179
  );
181
- this.source = l ?? (g == null || (r = g[0]) === null || r === void 0 ? void 0 : r.source), this.positions = c ?? g?.map((v) => v.start), this.locations = c && l ? c.map((v) => Re(l, v)) : g?.map((v) => Re(v.source, v.start));
182
- const m = Ls(
180
+ this.source = l ?? (g == null || (r = g[0]) === null || r === void 0 ? void 0 : r.source), this.positions = c ?? g?.map((v) => v.start), this.locations = c && l ? c.map((v) => Pe(l, v)) : g?.map((v) => Pe(v.source, v.start));
181
+ const m = Ps(
183
182
  d?.extensions
184
183
  ) ? d?.extensions : void 0;
185
184
  this.extensions = (o = h ?? m) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
@@ -206,7 +205,7 @@ class qe extends Error {
206
205
  value: d.stack,
207
206
  writable: !0,
208
207
  configurable: !0
209
- }) : Error.captureStackTrace ? Error.captureStackTrace(this, qe) : Object.defineProperty(this, "stack", {
208
+ }) : Error.captureStackTrace ? Error.captureStackTrace(this, ze) : Object.defineProperty(this, "stack", {
210
209
  value: Error().stack,
211
210
  writable: !0,
212
211
  configurable: !0
@@ -221,12 +220,12 @@ class qe extends Error {
221
220
  for (const s of this.nodes)
222
221
  s.loc && (t += `
223
222
 
224
- ` + Is(s.loc));
223
+ ` + Es(s.loc));
225
224
  else if (this.source && this.locations)
226
225
  for (const s of this.locations)
227
226
  t += `
228
227
 
229
- ` + Pt(this.source, s);
228
+ ` + At(this.source, s);
230
229
  return t;
231
230
  }
232
231
  toJSON() {
@@ -236,16 +235,16 @@ class qe extends Error {
236
235
  return this.locations != null && (t.locations = this.locations), this.path != null && (t.path = this.path), this.extensions != null && Object.keys(this.extensions).length > 0 && (t.extensions = this.extensions), t;
237
236
  }
238
237
  }
239
- function lt(e) {
238
+ function ct(e) {
240
239
  return e === void 0 || e.length === 0 ? void 0 : e;
241
240
  }
242
- function L(e, t, s) {
243
- return new qe(`Syntax Error: ${s}`, {
241
+ function P(e, t, s) {
242
+ return new ze(`Syntax Error: ${s}`, {
244
243
  source: e,
245
244
  positions: [t]
246
245
  });
247
246
  }
248
- class Ha {
247
+ class Fa {
249
248
  /**
250
249
  * The character offset at which this Node begins.
251
250
  */
@@ -274,7 +273,7 @@ class Ha {
274
273
  };
275
274
  }
276
275
  }
277
- class Rt {
276
+ class Ot {
278
277
  /**
279
278
  * The kind of Token.
280
279
  */
@@ -316,7 +315,7 @@ class Rt {
316
315
  };
317
316
  }
318
317
  }
319
- const Ds = {
318
+ const ks = {
320
319
  Name: [],
321
320
  Document: ["definitions"],
322
321
  OperationDefinition: [
@@ -390,37 +389,37 @@ const Ds = {
390
389
  UnionTypeExtension: ["name", "directives", "types"],
391
390
  EnumTypeExtension: ["name", "directives", "values"],
392
391
  InputObjectTypeExtension: ["name", "directives", "fields"]
393
- }, zs = new Set(Object.keys(Ds));
394
- function Qa(e) {
392
+ }, Is = new Set(Object.keys(ks));
393
+ function za(e) {
395
394
  const t = e?.kind;
396
- return typeof t == "string" && zs.has(t);
395
+ return typeof t == "string" && Is.has(t);
397
396
  }
398
- var dt;
397
+ var lt;
399
398
  (function(e) {
400
399
  e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
401
- })(dt || (dt = {}));
400
+ })(lt || (lt = {}));
402
401
  function Le(e) {
403
402
  return e === 9 || e === 32;
404
403
  }
405
- function se(e) {
404
+ function te(e) {
406
405
  return e >= 48 && e <= 57;
407
406
  }
408
- function Lt(e) {
407
+ function Pt(e) {
409
408
  return e >= 97 && e <= 122 || // A-Z
410
409
  e >= 65 && e <= 90;
411
410
  }
412
- function $t(e) {
413
- return Lt(e) || e === 95;
411
+ function Lt(e) {
412
+ return Pt(e) || e === 95;
414
413
  }
415
- function Fs(e) {
416
- return Lt(e) || se(e) || e === 95;
414
+ function Ds(e) {
415
+ return Pt(e) || te(e) || e === 95;
417
416
  }
418
- function qs(e) {
417
+ function Fs(e) {
419
418
  var t;
420
419
  let s = Number.MAX_SAFE_INTEGER, a = null, r = -1;
421
420
  for (let i = 0; i < e.length; ++i) {
422
421
  var o;
423
- const l = e[i], c = Vs(l);
422
+ const l = e[i], c = zs(l);
424
423
  c !== l.length && (a = (o = a) !== null && o !== void 0 ? o : i, r = i, i !== 0 && c < s && (s = c));
425
424
  }
426
425
  return e.map((i, l) => l === 0 ? i : i.slice(s)).slice(
@@ -428,13 +427,13 @@ function qs(e) {
428
427
  r + 1
429
428
  );
430
429
  }
431
- function Vs(e) {
430
+ function zs(e) {
432
431
  let t = 0;
433
432
  for (; t < e.length && Le(e.charCodeAt(t)); )
434
433
  ++t;
435
434
  return t;
436
435
  }
437
- function Bs(e, t) {
436
+ function qs(e, t) {
438
437
  const s = e.replace(/"""/g, '\\"""'), a = s.split(/\r\n|[\n\r]/g), r = a.length === 1, o = a.length > 1 && a.slice(1).every((m) => m.length === 0 || Le(m.charCodeAt(0))), i = s.endsWith('\\"""'), l = e.endsWith('"') && !i, c = e.endsWith("\\"), u = l || c, d = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
439
438
  (!r || e.length > 70 || u || o || i);
440
439
  let h = "";
@@ -447,7 +446,7 @@ var x;
447
446
  (function(e) {
448
447
  e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
449
448
  })(x || (x = {}));
450
- class _s {
449
+ class Vs {
451
450
  /**
452
451
  * The previously focused non-ignored token.
453
452
  */
@@ -461,7 +460,7 @@ class _s {
461
460
  * The character offset at which the current line begins.
462
461
  */
463
462
  constructor(t) {
464
- const s = new Rt(x.SOF, 0, 0, 0, 0);
463
+ const s = new Ot(x.SOF, 0, 0, 0, 0);
465
464
  this.source = t, this.lastToken = s, this.token = s, this.line = 1, this.lineStart = 0;
466
465
  }
467
466
  get [Symbol.toStringTag]() {
@@ -484,29 +483,29 @@ class _s {
484
483
  if (t.next)
485
484
  t = t.next;
486
485
  else {
487
- const s = Ms(this, t.end);
486
+ const s = _s(this, t.end);
488
487
  t.next = s, s.prev = t, t = s;
489
488
  }
490
489
  while (t.kind === x.COMMENT);
491
490
  return t;
492
491
  }
493
492
  }
494
- function Us(e) {
493
+ function Bs(e) {
495
494
  return e === x.BANG || e === x.DOLLAR || e === x.AMP || e === x.PAREN_L || e === x.PAREN_R || e === x.SPREAD || e === x.COLON || e === x.EQUALS || e === x.AT || e === x.BRACKET_L || e === x.BRACKET_R || e === x.BRACE_L || e === x.PIPE || e === x.BRACE_R;
496
495
  }
497
- function X(e) {
496
+ function W(e) {
498
497
  return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
499
498
  }
500
- function fe(e, t) {
501
- return Et(e.charCodeAt(t)) && It(e.charCodeAt(t + 1));
499
+ function he(e, t) {
500
+ return $t(e.charCodeAt(t)) && Et(e.charCodeAt(t + 1));
502
501
  }
503
- function Et(e) {
502
+ function $t(e) {
504
503
  return e >= 55296 && e <= 56319;
505
504
  }
506
- function It(e) {
505
+ function Et(e) {
507
506
  return e >= 56320 && e <= 57343;
508
507
  }
509
- function U(e, t) {
508
+ function _(e, t) {
510
509
  const s = e.source.body.codePointAt(t);
511
510
  if (s === void 0)
512
511
  return x.EOF;
@@ -518,9 +517,9 @@ function U(e, t) {
518
517
  }
519
518
  function w(e, t, s, a, r) {
520
519
  const o = e.line, i = 1 + s - e.lineStart;
521
- return new Rt(t, s, a, o, i, r);
520
+ return new Ot(t, s, a, o, i, r);
522
521
  }
523
- function Ms(e, t) {
522
+ function _s(e, t) {
524
523
  const s = e.source.body, a = s.length;
525
524
  let r = t;
526
525
  for (; r < a; ) {
@@ -561,7 +560,7 @@ function Ms(e, t) {
561
560
  continue;
562
561
  // Comment
563
562
  case 35:
564
- return Gs(e, r);
563
+ return Us(e, r);
565
564
  // Token ::
566
565
  // - Punctuator
567
566
  // - Name
@@ -602,30 +601,30 @@ function Ms(e, t) {
602
601
  return w(e, x.BRACE_R, r, r + 1);
603
602
  // StringValue
604
603
  case 34:
605
- return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? Zs(e, r) : Qs(e, r);
604
+ return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? Ws(e, r) : Gs(e, r);
606
605
  }
607
- if (se(o) || o === 45)
608
- return Hs(e, r, o);
609
- if ($t(o))
610
- return Ys(e, r);
611
- throw L(
606
+ if (te(o) || o === 45)
607
+ return Ms(e, r, o);
608
+ if (Lt(o))
609
+ return Xs(e, r);
610
+ throw P(
612
611
  e.source,
613
612
  r,
614
- o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : X(o) || fe(s, r) ? `Unexpected character: ${U(e, r)}.` : `Invalid character: ${U(e, r)}.`
613
+ o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : W(o) || he(s, r) ? `Unexpected character: ${_(e, r)}.` : `Invalid character: ${_(e, r)}.`
615
614
  );
616
615
  }
617
616
  return w(e, x.EOF, a, a);
618
617
  }
619
- function Gs(e, t) {
618
+ function Us(e, t) {
620
619
  const s = e.source.body, a = s.length;
621
620
  let r = t + 1;
622
621
  for (; r < a; ) {
623
622
  const o = s.charCodeAt(r);
624
623
  if (o === 10 || o === 13)
625
624
  break;
626
- if (X(o))
625
+ if (W(o))
627
626
  ++r;
628
- else if (fe(s, r))
627
+ else if (he(s, r))
629
628
  r += 2;
630
629
  else
631
630
  break;
@@ -638,26 +637,26 @@ function Gs(e, t) {
638
637
  s.slice(t + 1, r)
639
638
  );
640
639
  }
641
- function Hs(e, t, s) {
640
+ function Ms(e, t, s) {
642
641
  const a = e.source.body;
643
642
  let r = t, o = s, i = !1;
644
643
  if (o === 45 && (o = a.charCodeAt(++r)), o === 48) {
645
- if (o = a.charCodeAt(++r), se(o))
646
- throw L(
644
+ if (o = a.charCodeAt(++r), te(o))
645
+ throw P(
647
646
  e.source,
648
647
  r,
649
- `Invalid number, unexpected digit after 0: ${U(
648
+ `Invalid number, unexpected digit after 0: ${_(
650
649
  e,
651
650
  r
652
651
  )}.`
653
652
  );
654
653
  } else
655
- r = Ne(e, r, o), o = a.charCodeAt(r);
656
- if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = Ne(e, r, o), o = a.charCodeAt(r)), (o === 69 || o === 101) && (i = !0, o = a.charCodeAt(++r), (o === 43 || o === 45) && (o = a.charCodeAt(++r)), r = Ne(e, r, o), o = a.charCodeAt(r)), o === 46 || $t(o))
657
- throw L(
654
+ r = Ce(e, r, o), o = a.charCodeAt(r);
655
+ if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = Ce(e, r, o), o = a.charCodeAt(r)), (o === 69 || o === 101) && (i = !0, o = a.charCodeAt(++r), (o === 43 || o === 45) && (o = a.charCodeAt(++r)), r = Ce(e, r, o), o = a.charCodeAt(r)), o === 46 || Lt(o))
656
+ throw P(
658
657
  e.source,
659
658
  r,
660
- `Invalid number, expected digit but got: ${U(
659
+ `Invalid number, expected digit but got: ${_(
661
660
  e,
662
661
  r
663
662
  )}.`
@@ -670,23 +669,23 @@ function Hs(e, t, s) {
670
669
  a.slice(t, r)
671
670
  );
672
671
  }
673
- function Ne(e, t, s) {
674
- if (!se(s))
675
- throw L(
672
+ function Ce(e, t, s) {
673
+ if (!te(s))
674
+ throw P(
676
675
  e.source,
677
676
  t,
678
- `Invalid number, expected digit but got: ${U(
677
+ `Invalid number, expected digit but got: ${_(
679
678
  e,
680
679
  t
681
680
  )}.`
682
681
  );
683
682
  const a = e.source.body;
684
683
  let r = t + 1;
685
- for (; se(a.charCodeAt(r)); )
684
+ for (; te(a.charCodeAt(r)); )
686
685
  ++r;
687
686
  return r;
688
687
  }
689
- function Qs(e, t) {
688
+ function Gs(e, t) {
690
689
  const s = e.source.body, a = s.length;
691
690
  let r = t + 1, o = r, i = "";
692
691
  for (; r < a; ) {
@@ -695,45 +694,45 @@ function Qs(e, t) {
695
694
  return i += s.slice(o, r), w(e, x.STRING, t, r + 1, i);
696
695
  if (l === 92) {
697
696
  i += s.slice(o, r);
698
- const c = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? Js(e, r) : Ws(e, r) : Xs(e, r);
697
+ const c = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? Hs(e, r) : Qs(e, r) : Js(e, r);
699
698
  i += c.value, r += c.size, o = r;
700
699
  continue;
701
700
  }
702
701
  if (l === 10 || l === 13)
703
702
  break;
704
- if (X(l))
703
+ if (W(l))
705
704
  ++r;
706
- else if (fe(s, r))
705
+ else if (he(s, r))
707
706
  r += 2;
708
707
  else
709
- throw L(
708
+ throw P(
710
709
  e.source,
711
710
  r,
712
- `Invalid character within String: ${U(
711
+ `Invalid character within String: ${_(
713
712
  e,
714
713
  r
715
714
  )}.`
716
715
  );
717
716
  }
718
- throw L(e.source, r, "Unterminated string.");
717
+ throw P(e.source, r, "Unterminated string.");
719
718
  }
720
- function Js(e, t) {
719
+ function Hs(e, t) {
721
720
  const s = e.source.body;
722
721
  let a = 0, r = 3;
723
722
  for (; r < 12; ) {
724
723
  const o = s.charCodeAt(t + r++);
725
724
  if (o === 125) {
726
- if (r < 5 || !X(a))
725
+ if (r < 5 || !W(a))
727
726
  break;
728
727
  return {
729
728
  value: String.fromCodePoint(a),
730
729
  size: r
731
730
  };
732
731
  }
733
- if (a = a << 4 | K(o), a < 0)
732
+ if (a = a << 4 | Y(o), a < 0)
734
733
  break;
735
734
  }
736
- throw L(
735
+ throw P(
737
736
  e.source,
738
737
  t,
739
738
  `Invalid Unicode escape sequence: "${s.slice(
@@ -742,34 +741,34 @@ function Js(e, t) {
742
741
  )}".`
743
742
  );
744
743
  }
745
- function Ws(e, t) {
746
- const s = e.source.body, a = ut(s, t + 2);
747
- if (X(a))
744
+ function Qs(e, t) {
745
+ const s = e.source.body, a = dt(s, t + 2);
746
+ if (W(a))
748
747
  return {
749
748
  value: String.fromCodePoint(a),
750
749
  size: 6
751
750
  };
752
- if (Et(a) && s.charCodeAt(t + 6) === 92 && s.charCodeAt(t + 7) === 117) {
753
- const r = ut(s, t + 8);
754
- if (It(r))
751
+ if ($t(a) && s.charCodeAt(t + 6) === 92 && s.charCodeAt(t + 7) === 117) {
752
+ const r = dt(s, t + 8);
753
+ if (Et(r))
755
754
  return {
756
755
  value: String.fromCodePoint(a, r),
757
756
  size: 12
758
757
  };
759
758
  }
760
- throw L(
759
+ throw P(
761
760
  e.source,
762
761
  t,
763
762
  `Invalid Unicode escape sequence: "${s.slice(t, t + 6)}".`
764
763
  );
765
764
  }
766
- function ut(e, t) {
767
- return K(e.charCodeAt(t)) << 12 | K(e.charCodeAt(t + 1)) << 8 | K(e.charCodeAt(t + 2)) << 4 | K(e.charCodeAt(t + 3));
765
+ function dt(e, t) {
766
+ return Y(e.charCodeAt(t)) << 12 | Y(e.charCodeAt(t + 1)) << 8 | Y(e.charCodeAt(t + 2)) << 4 | Y(e.charCodeAt(t + 3));
768
767
  }
769
- function K(e) {
768
+ function Y(e) {
770
769
  return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
771
770
  }
772
- function Xs(e, t) {
771
+ function Js(e, t) {
773
772
  const s = e.source.body;
774
773
  switch (s.charCodeAt(t + 1)) {
775
774
  case 34:
@@ -814,7 +813,7 @@ function Xs(e, t) {
814
813
  size: 2
815
814
  };
816
815
  }
817
- throw L(
816
+ throw P(
818
817
  e.source,
819
818
  t,
820
819
  `Invalid character escape sequence: "${s.slice(
@@ -823,7 +822,7 @@ function Xs(e, t) {
823
822
  )}".`
824
823
  );
825
824
  }
826
- function Zs(e, t) {
825
+ function Ws(e, t) {
827
826
  const s = e.source.body, a = s.length;
828
827
  let r = e.lineStart, o = t + 3, i = o, l = "";
829
828
  const c = [];
@@ -837,7 +836,7 @@ function Zs(e, t) {
837
836
  t,
838
837
  o + 3,
839
838
  // Return a string of the lines joined with U+000A.
840
- qs(c).join(`
839
+ Fs(c).join(`
841
840
  `)
842
841
  );
843
842
  return e.line += c.length - 1, e.lineStart = r, d;
@@ -850,28 +849,28 @@ function Zs(e, t) {
850
849
  l += s.slice(i, o), c.push(l), u === 13 && s.charCodeAt(o + 1) === 10 ? o += 2 : ++o, l = "", i = o, r = o;
851
850
  continue;
852
851
  }
853
- if (X(u))
852
+ if (W(u))
854
853
  ++o;
855
- else if (fe(s, o))
854
+ else if (he(s, o))
856
855
  o += 2;
857
856
  else
858
- throw L(
857
+ throw P(
859
858
  e.source,
860
859
  o,
861
- `Invalid character within String: ${U(
860
+ `Invalid character within String: ${_(
862
861
  e,
863
862
  o
864
863
  )}.`
865
864
  );
866
865
  }
867
- throw L(e.source, o, "Unterminated string.");
866
+ throw P(e.source, o, "Unterminated string.");
868
867
  }
869
- function Ys(e, t) {
868
+ function Xs(e, t) {
870
869
  const s = e.source.body, a = s.length;
871
870
  let r = t + 1;
872
871
  for (; r < a; ) {
873
872
  const o = s.charCodeAt(r);
874
- if (Fs(o))
873
+ if (Ds(o))
875
874
  ++r;
876
875
  else
877
876
  break;
@@ -884,56 +883,56 @@ function Ys(e, t) {
884
883
  s.slice(t, r)
885
884
  );
886
885
  }
887
- const Ks = 10, kt = 2;
888
- function Dt(e) {
889
- return ge(e, []);
886
+ const Zs = 10, Rt = 2;
887
+ function kt(e) {
888
+ return fe(e, []);
890
889
  }
891
- function ge(e, t) {
890
+ function fe(e, t) {
892
891
  switch (typeof e) {
893
892
  case "string":
894
893
  return JSON.stringify(e);
895
894
  case "function":
896
895
  return e.name ? `[function ${e.name}]` : "[function]";
897
896
  case "object":
898
- return er(e, t);
897
+ return Ys(e, t);
899
898
  default:
900
899
  return String(e);
901
900
  }
902
901
  }
903
- function er(e, t) {
902
+ function Ys(e, t) {
904
903
  if (e === null)
905
904
  return "null";
906
905
  if (t.includes(e))
907
906
  return "[Circular]";
908
907
  const s = [...t, e];
909
- if (tr(e)) {
908
+ if (Ks(e)) {
910
909
  const a = e.toJSON();
911
910
  if (a !== e)
912
- return typeof a == "string" ? a : ge(a, s);
911
+ return typeof a == "string" ? a : fe(a, s);
913
912
  } else if (Array.isArray(e))
914
- return sr(e, s);
915
- return nr(e, s);
913
+ return tr(e, s);
914
+ return er(e, s);
916
915
  }
917
- function tr(e) {
916
+ function Ks(e) {
918
917
  return typeof e.toJSON == "function";
919
918
  }
920
- function nr(e, t) {
919
+ function er(e, t) {
921
920
  const s = Object.entries(e);
922
- return s.length === 0 ? "{}" : t.length > kt ? "[" + rr(e) + "]" : "{ " + s.map(
923
- ([r, o]) => r + ": " + ge(o, t)
921
+ return s.length === 0 ? "{}" : t.length > Rt ? "[" + nr(e) + "]" : "{ " + s.map(
922
+ ([r, o]) => r + ": " + fe(o, t)
924
923
  ).join(", ") + " }";
925
924
  }
926
- function sr(e, t) {
925
+ function tr(e, t) {
927
926
  if (e.length === 0)
928
927
  return "[]";
929
- if (t.length > kt)
928
+ if (t.length > Rt)
930
929
  return "[Array]";
931
- const s = Math.min(Ks, e.length), a = e.length - s, r = [];
930
+ const s = Math.min(Zs, e.length), a = e.length - s, r = [];
932
931
  for (let o = 0; o < s; ++o)
933
- r.push(ge(e[o], t));
932
+ r.push(fe(e[o], t));
934
933
  return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
935
934
  }
936
- function rr(e) {
935
+ function nr(e) {
937
936
  const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
938
937
  if (t === "Object" && typeof e.constructor == "function") {
939
938
  const s = e.constructor.name;
@@ -942,11 +941,11 @@ function rr(e) {
942
941
  }
943
942
  return t;
944
943
  }
945
- const ar = globalThis.process && // eslint-disable-next-line no-undef
946
- process.env.NODE_ENV === "production", or = (
944
+ const sr = globalThis.process && // eslint-disable-next-line no-undef
945
+ process.env.NODE_ENV === "production", rr = (
947
946
  /* c8 ignore next 6 */
948
947
  // FIXME: https://github.com/graphql/graphql-js/issues/2317
949
- ar ? function(t, s) {
948
+ sr ? function(t, s) {
950
949
  return t instanceof s;
951
950
  } : function(t, s) {
952
951
  if (t instanceof s)
@@ -958,7 +957,7 @@ process.env.NODE_ENV === "production", or = (
958
957
  Symbol.toStringTag in t ? t[Symbol.toStringTag] : (a = t.constructor) === null || a === void 0 ? void 0 : a.name
959
958
  );
960
959
  if (r === o) {
961
- const i = Dt(t);
960
+ const i = kt(t);
962
961
  throw new Error(`Cannot use ${r} "${i}" from another module or realm.
963
962
 
964
963
  Ensure that there is only one instance of "graphql" in the node_modules
@@ -976,15 +975,15 @@ spurious results.`);
976
975
  return !1;
977
976
  }
978
977
  );
979
- class zt {
978
+ class It {
980
979
  constructor(t, s = "GraphQL request", a = {
981
980
  line: 1,
982
981
  column: 1
983
982
  }) {
984
- typeof t == "string" || Ce(!1, `Body must be a string. Received: ${Dt(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || Ce(
983
+ typeof t == "string" || je(!1, `Body must be a string. Received: ${kt(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || je(
985
984
  !1,
986
985
  "line in locationOffset is 1-indexed and must be positive."
987
- ), this.locationOffset.column > 0 || Ce(
986
+ ), this.locationOffset.column > 0 || je(
988
987
  !1,
989
988
  "column in locationOffset is 1-indexed and must be positive."
990
989
  );
@@ -993,37 +992,37 @@ class zt {
993
992
  return "Source";
994
993
  }
995
994
  }
996
- function ir(e) {
997
- return or(e, zt);
995
+ function ar(e) {
996
+ return rr(e, It);
998
997
  }
999
- function cr(e) {
1000
- const t = ir(e) ? e : new zt(e), s = t.body, a = new _s(t);
998
+ function or(e) {
999
+ const t = ar(e) ? e : new It(e), s = t.body, a = new Vs(t);
1001
1000
  let r = "", o = !1;
1002
1001
  for (; a.advance().kind !== x.EOF; ) {
1003
- const i = a.token, l = i.kind, c = !Us(i.kind);
1002
+ const i = a.token, l = i.kind, c = !Bs(i.kind);
1004
1003
  o && (c || i.kind === x.SPREAD) && (r += " ");
1005
1004
  const u = s.slice(i.start, i.end);
1006
- l === x.BLOCK_STRING ? r += Bs(i.value, {
1005
+ l === x.BLOCK_STRING ? r += qs(i.value, {
1007
1006
  minimize: !0
1008
1007
  }) : r += u, o = c;
1009
1008
  }
1010
1009
  return r;
1011
1010
  }
1012
- const Ft = vt(
1011
+ const Dt = xt(
1013
1012
  void 0
1014
- ), Ja = ({
1013
+ ), qa = ({
1015
1014
  children: e,
1016
1015
  client: t
1017
- }) => /* @__PURE__ */ n.jsx(Ft.Provider, { value: t, children: e }), qt = (e, t, ...[s]) => ({
1016
+ }) => /* @__PURE__ */ n.jsx(Dt.Provider, { value: t, children: e }), Ft = (e, t, ...[s]) => ({
1018
1017
  queryFn: () => e.fetch(t, s),
1019
- queryKey: [cr(t.toString()), s]
1020
- }), lr = (e, ...[t]) => {
1021
- const s = Kn(Ft);
1018
+ queryKey: [or(t.toString()), s]
1019
+ }), ir = (e, ...[t]) => {
1020
+ const s = Mn(Dt);
1022
1021
  if (s === void 0)
1023
1022
  throw new Error("useGraphQL must be used within a GraphQLProvider");
1024
- return qt(s, e, ...t === void 0 ? [] : [t]);
1023
+ return Ft(s, e, ...t === void 0 ? [] : [t]);
1025
1024
  };
1026
- class H extends String {
1025
+ class G extends String {
1027
1026
  __apiType;
1028
1027
  value;
1029
1028
  __meta__;
@@ -1034,7 +1033,7 @@ class H extends String {
1034
1033
  return this.value;
1035
1034
  }
1036
1035
  }
1037
- const dr = new H(
1036
+ const cr = new G(
1038
1037
  `
1039
1038
  fragment OperationsFragment on OperationItem {
1040
1039
  slug
@@ -1046,6 +1045,10 @@ const dr = new H(
1046
1045
  path
1047
1046
  deprecated
1048
1047
  extensions
1048
+ servers {
1049
+ url
1050
+ description
1051
+ }
1049
1052
  parameters {
1050
1053
  name
1051
1054
  in
@@ -1102,7 +1105,7 @@ const dr = new H(
1102
1105
  }
1103
1106
  `,
1104
1107
  { fragmentName: "OperationsFragment" }
1105
- ), ur = new H(`
1108
+ ), lr = new G(`
1106
1109
  query ServersQuery($input: JSON!, $type: SchemaType!) {
1107
1110
  schema(input: $input, type: $type) {
1108
1111
  url
@@ -1111,13 +1114,13 @@ const dr = new H(
1111
1114
  }
1112
1115
  }
1113
1116
  }
1114
- `), mr = new H(`
1117
+ `), dr = new G(`
1115
1118
  query SchemaWarmup($input: JSON!, $type: SchemaType!) {
1116
1119
  schema(input: $input, type: $type) {
1117
1120
  openapi
1118
1121
  }
1119
1122
  }
1120
- `), pr = new H(`
1123
+ `), ur = new G(`
1121
1124
  query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
1122
1125
  schema(input: $input, type: $type) {
1123
1126
  servers {
@@ -1159,6 +1162,10 @@ const dr = new H(
1159
1162
  path
1160
1163
  deprecated
1161
1164
  extensions
1165
+ servers {
1166
+ url
1167
+ description
1168
+ }
1162
1169
  parameters {
1163
1170
  name
1164
1171
  in
@@ -1212,7 +1219,7 @@ const dr = new H(
1212
1219
  schema
1213
1220
  }
1214
1221
  }
1215
- }`), hr = new H(`
1222
+ }`), mr = new G(`
1216
1223
  query GetSchemas($input: JSON!, $type: SchemaType!) {
1217
1224
  schema(input: $input, type: $type) {
1218
1225
  title
@@ -1227,7 +1234,7 @@ const dr = new H(
1227
1234
  }
1228
1235
  }
1229
1236
  }
1230
- `), fr = new H(`
1237
+ `), pr = new G(`
1231
1238
  query getServerQuery($input: JSON!, $type: SchemaType!) {
1232
1239
  schema(input: $input, type: $type) {
1233
1240
  url
@@ -1236,7 +1243,7 @@ const dr = new H(
1236
1243
  }
1237
1244
  }
1238
1245
  }
1239
- `), gr = new H(`
1246
+ `), hr = new G(`
1240
1247
  query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
1241
1248
  schema(input: $input, type: $type) {
1242
1249
  extensions
@@ -1259,20 +1266,20 @@ const dr = new H(
1259
1266
  }
1260
1267
  }
1261
1268
  }
1262
- `), xr = {
1263
- "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": ur,
1264
- "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": dr,
1265
- "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": mr,
1266
- "\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n extensions\n next {\n name\n slug\n extensions\n }\n prev {\n name\n slug\n extensions\n }\n }\n }\n }\n": pr,
1267
- "\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n": hr,
1268
- "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": fr,
1269
- "\n query GetNavigationOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n extensions\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": gr
1269
+ `), fr = {
1270
+ "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": lr,
1271
+ "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n servers {\n url\n description\n }\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": cr,
1272
+ "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": dr,
1273
+ "\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n extensions\n next {\n name\n slug\n extensions\n }\n prev {\n name\n slug\n extensions\n }\n }\n }\n }\n": ur,
1274
+ "\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n": mr,
1275
+ "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": pr,
1276
+ "\n query GetNavigationOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n extensions\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": hr
1270
1277
  };
1271
- function yr(e) {
1272
- return xr[e] ?? {};
1278
+ function gr(e) {
1279
+ return fr[e] ?? {};
1273
1280
  }
1274
- const q = Fe.Root, Vt = Fe.CollapsibleTrigger, V = Fe.CollapsibleContent;
1275
- function vr() {
1281
+ const F = Fe.Root, zt = Fe.CollapsibleTrigger, z = Fe.CollapsibleContent;
1282
+ function xr() {
1276
1283
  const t = navigator.userAgent.toLowerCase();
1277
1284
  if (t.indexOf("win") !== -1)
1278
1285
  return "windows";
@@ -1283,10 +1290,10 @@ function vr() {
1283
1290
  if (t.indexOf("x11") !== -1)
1284
1291
  return "unix";
1285
1292
  }
1286
- function br() {
1287
- return vr() === "apple";
1293
+ function yr() {
1294
+ return xr() === "apple";
1288
1295
  }
1289
- const jr = {
1296
+ const vr = {
1290
1297
  other: {
1291
1298
  alt: "Alt",
1292
1299
  meta: "Ctrl",
@@ -1301,11 +1308,11 @@ const jr = {
1301
1308
  shift: "⇧",
1302
1309
  option: "⌥"
1303
1310
  }
1304
- }, Cr = (e, t) => {
1305
- const s = e.toLowerCase().split("+"), a = s.includes("meta"), r = s.includes("shift"), o = s.includes("option") || s.includes("alt"), i = s.includes("ctrl"), l = e.split("+").pop(), c = R(t);
1306
- return z(() => {
1311
+ }, br = (e, t) => {
1312
+ const s = e.toLowerCase().split("+"), a = s.includes("meta"), r = s.includes("shift"), o = s.includes("option") || s.includes("alt"), i = s.includes("ctrl"), l = e.split("+").pop(), c = O(t);
1313
+ return I(() => {
1307
1314
  c.current = t;
1308
- }, [t]), z(() => {
1315
+ }, [t]), I(() => {
1309
1316
  const u = (d) => {
1310
1317
  (d.code === `Key${l?.toUpperCase()}` || d.code.toLowerCase() === l?.toLowerCase()) && d.metaKey === a && d.shiftKey === r && d.altKey === o && d.ctrlKey === i && (d.preventDefault(), c.current());
1311
1318
  };
@@ -1315,10 +1322,10 @@ const jr = {
1315
1322
  }, [l, a, r, o, i]), {
1316
1323
  trigger: () => c.current(),
1317
1324
  label: s.map(
1318
- (u) => u === "meta" || u === "ctrl" || u === "alt" || u === "shift" || u === "option" ? jr[br() ? "apple" : "other"][u] : u
1325
+ (u) => u === "meta" || u === "ctrl" || u === "alt" || u === "shift" || u === "option" ? vr[yr() ? "apple" : "other"][u] : u
1319
1326
  )
1320
1327
  };
1321
- }, Nr = $e()(
1328
+ }, jr = $e()(
1322
1329
  Ee(
1323
1330
  (e) => ({
1324
1331
  selectedServer: void 0,
@@ -1326,17 +1333,17 @@ const jr = {
1326
1333
  }),
1327
1334
  { name: "zudoku-selected-server" }
1328
1335
  )
1329
- ), wr = (e) => {
1330
- const { selectedServer: t, setSelectedServer: s } = Nr();
1331
- return { selectedServer: bt(
1336
+ ), Cr = (e) => {
1337
+ const { selectedServer: t, setSelectedServer: s } = jr();
1338
+ return { selectedServer: yt(
1332
1339
  () => t && e.some((r) => r.url === t) ? t : e.at(0)?.url ?? "",
1333
1340
  [t, e]
1334
1341
  ), setSelectedServer: s };
1335
- }, Bt = A.forwardRef(
1342
+ }, qt = q.forwardRef(
1336
1343
  ({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1337
1344
  "textarea",
1338
1345
  {
1339
- className: j(
1346
+ className: C(
1340
1347
  "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
1341
1348
  e
1342
1349
  ),
@@ -1345,28 +1352,28 @@ const jr = {
1345
1352
  }
1346
1353
  )
1347
1354
  );
1348
- Bt.displayName = "Textarea";
1349
- const M = ({
1355
+ qt.displayName = "Textarea";
1356
+ const U = ({
1350
1357
  children: e,
1351
1358
  className: t
1352
1359
  }) => /* @__PURE__ */ n.jsxs(
1353
1360
  "div",
1354
1361
  {
1355
- className: j(
1362
+ className: C(
1356
1363
  "grid grid-cols-[max-content_1fr_min-content_max-content] items-center gap-4 group bg-muted w-full h-10 ps-4 pe-2 border-b",
1357
1364
  t
1358
1365
  ),
1359
1366
  children: [
1360
1367
  e,
1361
1368
  /* @__PURE__ */ n.jsx(
1362
- Vt,
1369
+ zt,
1363
1370
  {
1364
- className: j(
1371
+ className: C(
1365
1372
  "flex items-center gap-4 group bg-muted w-full p-2 hover:bg-accent hover:brightness-95 rounded-md",
1366
1373
  t
1367
1374
  ),
1368
1375
  children: /* @__PURE__ */ n.jsx(
1369
- vn,
1376
+ pn,
1370
1377
  {
1371
1378
  className: "group-data-[state=open]:rotate-180 transition-transform flex-shrink-0",
1372
1379
  size: 16
@@ -1376,141 +1383,30 @@ const M = ({
1376
1383
  )
1377
1384
  ]
1378
1385
  }
1379
- ), G = ({
1386
+ ), M = ({
1380
1387
  children: e,
1381
1388
  className: t
1382
- }) => /* @__PURE__ */ n.jsx("span", { className: j("font-semibold w-full text-start", t), children: e }), Sr = N.Root, Tr = N.Trigger, Ar = N.Group, Or = A.forwardRef(({ className: e, inset: t, children: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1383
- N.SubTrigger,
1384
- {
1385
- ref: r,
1386
- className: j(
1387
- "flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden focus:bg-accent data-[state=open]:bg-accent",
1388
- t && "pl-8",
1389
- e
1390
- ),
1391
- ...a,
1392
- children: [
1393
- s,
1394
- /* @__PURE__ */ n.jsx(bn, { className: "ml-auto h-4 w-4" })
1395
- ]
1396
- }
1397
- ));
1398
- Or.displayName = N.SubTrigger.displayName;
1399
- const Pr = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1400
- N.SubContent,
1401
- {
1402
- ref: s,
1403
- className: j(
1404
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1405
- e
1406
- ),
1407
- ...t
1408
- }
1409
- ));
1410
- Pr.displayName = N.SubContent.displayName;
1411
- const _t = A.forwardRef(({ className: e, sideOffset: t = 4, ...s }, a) => /* @__PURE__ */ n.jsx(N.Portal, { children: /* @__PURE__ */ n.jsx(
1412
- N.Content,
1413
- {
1414
- ref: a,
1415
- sideOffset: t,
1416
- className: j(
1417
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1418
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1419
- e
1420
- ),
1421
- ...s
1422
- }
1423
- ) }));
1424
- _t.displayName = N.Content.displayName;
1425
- const Ut = A.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1426
- N.Item,
1427
- {
1428
- ref: a,
1429
- className: j(
1430
- "relative flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1431
- t && "pl-8",
1432
- e
1433
- ),
1434
- ...s
1435
- }
1436
- ));
1437
- Ut.displayName = N.Item.displayName;
1438
- const Rr = A.forwardRef(({ className: e, children: t, checked: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1439
- N.CheckboxItem,
1440
- {
1441
- ref: r,
1442
- className: j(
1443
- "relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1444
- e
1445
- ),
1446
- checked: s,
1447
- ...a,
1448
- children: [
1449
- /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(N.ItemIndicator, { children: /* @__PURE__ */ n.jsx(gt, { className: "h-4 w-4" }) }) }),
1450
- t
1451
- ]
1452
- }
1453
- ));
1454
- Rr.displayName = N.CheckboxItem.displayName;
1455
- const Lr = A.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1456
- N.RadioItem,
1457
- {
1458
- ref: a,
1459
- className: j(
1460
- "relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1461
- e
1462
- ),
1463
- ...s,
1464
- children: [
1465
- /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(N.ItemIndicator, { children: /* @__PURE__ */ n.jsx(jn, { className: "h-4 w-4 fill-current" }) }) }),
1466
- t
1467
- ]
1468
- }
1469
- ));
1470
- Lr.displayName = N.RadioItem.displayName;
1471
- const Mt = A.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1472
- N.Label,
1473
- {
1474
- ref: a,
1475
- className: j(
1476
- "px-2 py-1.5 text-sm font-semibold",
1477
- t && "pl-8",
1478
- e
1479
- ),
1480
- ...s
1481
- }
1482
- ));
1483
- Mt.displayName = N.Label.displayName;
1484
- const Gt = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1485
- N.Separator,
1486
- {
1487
- ref: s,
1488
- className: j("-mx-1 my-1 h-px bg-muted", e),
1489
- ...t
1490
- }
1491
- ));
1492
- Gt.displayName = N.Separator.displayName;
1493
- const $r = ({
1389
+ }) => /* @__PURE__ */ n.jsx("span", { className: C("font-semibold w-full text-start", t), children: e }), wr = ({
1494
1390
  examples: e,
1495
1391
  onSelect: t
1496
- }) => /* @__PURE__ */ n.jsxs(Sr, { children: [
1497
- /* @__PURE__ */ n.jsx(Tr, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
1498
- I,
1392
+ }) => /* @__PURE__ */ n.jsxs(ls, { children: [
1393
+ /* @__PURE__ */ n.jsx(ds, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
1394
+ E,
1499
1395
  {
1500
1396
  variant: "ghost",
1501
1397
  size: "sm",
1502
1398
  className: "hover:bg-accent hover:brightness-95",
1503
1399
  children: [
1504
1400
  "Use Example ",
1505
- /* @__PURE__ */ n.jsx(he, { size: 16, className: "ml-2" })
1401
+ /* @__PURE__ */ n.jsx(pe, { size: 16, className: "ml-2" })
1506
1402
  ]
1507
1403
  }
1508
1404
  ) }),
1509
- /* @__PURE__ */ n.jsx(_t, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ n.jsxs("div", { children: [
1510
- /* @__PURE__ */ n.jsx(Mt, { children: s.mediaType }),
1511
- /* @__PURE__ */ n.jsx(Gt, {}),
1512
- /* @__PURE__ */ n.jsx(Ar, { children: s.examples?.map((a) => /* @__PURE__ */ n.jsx(
1513
- Ut,
1405
+ /* @__PURE__ */ n.jsx(us, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ n.jsxs("div", { children: [
1406
+ /* @__PURE__ */ n.jsx(ms, { children: s.mediaType }),
1407
+ /* @__PURE__ */ n.jsx(ps, {}),
1408
+ /* @__PURE__ */ n.jsx(hs, { children: s.examples?.map((a) => /* @__PURE__ */ n.jsx(
1409
+ fs,
1514
1410
  {
1515
1411
  onSelect: () => t(a, s.mediaType),
1516
1412
  children: /* @__PURE__ */ n.jsx(
@@ -1525,14 +1421,14 @@ const $r = ({
1525
1421
  a.name
1526
1422
  )) })
1527
1423
  ] }, s.mediaType)) })
1528
- ] }), Er = ({ content: e }) => {
1529
- const { register: t, setValue: s, watch: a } = re(), r = (e ?? []).flatMap((i) => i.examples), o = a("headers");
1530
- return /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
1531
- /* @__PURE__ */ n.jsxs(M, { children: [
1532
- /* @__PURE__ */ n.jsx(Cn, { size: 16 }),
1533
- /* @__PURE__ */ n.jsx(G, { children: "Body" }),
1424
+ ] }), Nr = ({ content: e }) => {
1425
+ const { register: t, setValue: s, watch: a } = ne(), r = (e ?? []).flatMap((i) => i.examples), o = a("headers");
1426
+ return /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
1427
+ /* @__PURE__ */ n.jsxs(U, { children: [
1428
+ /* @__PURE__ */ n.jsx(hn, { size: 16 }),
1429
+ /* @__PURE__ */ n.jsx(M, { children: "Body" }),
1534
1430
  e && r.length > 0 ? /* @__PURE__ */ n.jsx(
1535
- $r,
1431
+ wr,
1536
1432
  {
1537
1433
  examples: e,
1538
1434
  onSelect: (i, l) => {
@@ -1548,18 +1444,18 @@ const $r = ({
1548
1444
  }
1549
1445
  ) : /* @__PURE__ */ n.jsx("div", {})
1550
1446
  ] }),
1551
- /* @__PURE__ */ n.jsx(V, { className: "flex flex-col gap-2 ", children: /* @__PURE__ */ n.jsx(
1552
- Bt,
1447
+ /* @__PURE__ */ n.jsx(z, { className: "flex flex-col gap-2 ", children: /* @__PURE__ */ n.jsx(
1448
+ qt,
1553
1449
  {
1554
1450
  ...t("body"),
1555
- className: j(
1451
+ className: C(
1556
1452
  "w-full p-2 h-64 font-mono md:text-xs border-none rounded-none focus-visible:ring-0"
1557
1453
  ),
1558
1454
  placeholder: "Your body here..."
1559
1455
  }
1560
1456
  ) })
1561
1457
  ] });
1562
- }, mt = (e, t, s) => {
1458
+ }, ut = (e, t, s) => {
1563
1459
  const a = t.replace(/(:\w+|\{\w+})/g, (o) => {
1564
1460
  const i = o.replace(/[:{}]/g, "");
1565
1461
  return s.pathParams.find((c) => c.name === i)?.value ?? o;
@@ -1571,12 +1467,12 @@ const $r = ({
1571
1467
  r.searchParams.set(o.name, o.value);
1572
1468
  }), r;
1573
1469
  };
1574
- function Ir(e) {
1470
+ function Sr(e) {
1575
1471
  return /^(application\/octet-stream|image\/|audio\/|video\/|font\/|application\/pdf|application\/zip|application\/x-protobuf|application\/x-binary)/i.test(
1576
1472
  e
1577
1473
  );
1578
1474
  }
1579
- const kr = (e, t) => {
1475
+ const Tr = (e, t) => {
1580
1476
  const s = e.find(
1581
1477
  ([a]) => a.toLowerCase() === "content-disposition"
1582
1478
  )?.[1];
@@ -1593,41 +1489,41 @@ const kr = (e, t) => {
1593
1489
  } catch {
1594
1490
  return "download";
1595
1491
  }
1596
- }, xe = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1597
- Pe.Root,
1492
+ }, ge = q.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1493
+ Oe.Root,
1598
1494
  {
1599
1495
  ref: s,
1600
- className: j(
1496
+ className: C(
1601
1497
  "peer h-4 w-4 shrink-0 rounded-[min(6px,var(--radius)-4px)] ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-primary",
1602
1498
  "border border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary",
1603
1499
  e
1604
1500
  ),
1605
1501
  ...t,
1606
1502
  children: /* @__PURE__ */ n.jsx(
1607
- Pe.Indicator,
1503
+ Oe.Indicator,
1608
1504
  {
1609
- className: j("flex items-center justify-center text-current"),
1610
- children: /* @__PURE__ */ n.jsx(Nn, { className: "h-4 w-4" })
1505
+ className: C("flex items-center justify-center text-current"),
1506
+ children: /* @__PURE__ */ n.jsx(fn, { className: "h-4 w-4" })
1611
1507
  }
1612
1508
  )
1613
1509
  }
1614
1510
  ));
1615
- xe.displayName = Pe.Root.displayName;
1616
- const Dr = de.Root, Ht = A.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ n.jsx(de.Portal, { children: /* @__PURE__ */ n.jsx(
1617
- de.Content,
1511
+ ge.displayName = Oe.Root.displayName;
1512
+ const Ar = le.Root, Vt = q.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ n.jsx(le.Portal, { children: /* @__PURE__ */ n.jsx(
1513
+ le.Content,
1618
1514
  {
1619
1515
  ref: r,
1620
1516
  align: t,
1621
1517
  sideOffset: s,
1622
- className: j(
1518
+ className: C(
1623
1519
  "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1624
1520
  e
1625
1521
  ),
1626
1522
  ...a
1627
1523
  }
1628
1524
  ) }));
1629
- Ht.displayName = de.Content.displayName;
1630
- const zr = ({
1525
+ Vt.displayName = le.Content.displayName;
1526
+ const Or = ({
1631
1527
  value: e,
1632
1528
  options: t,
1633
1529
  onChange: s,
@@ -1636,10 +1532,10 @@ const zr = ({
1636
1532
  onEnterPress: o,
1637
1533
  ref: i
1638
1534
  }) => {
1639
- const [l, c] = E(!1), [u, d] = E(!1), h = vs((m) => m.filtered.count), g = R(null);
1640
- return /* @__PURE__ */ n.jsxs(Dr, { open: l, children: [
1641
- /* @__PURE__ */ n.jsx(ys, { children: /* @__PURE__ */ n.jsx(
1642
- js,
1535
+ const [l, c] = $(!1), [u, d] = $(!1), h = xs((m) => m.filtered.count), g = O(null);
1536
+ return /* @__PURE__ */ n.jsxs(Ar, { open: l, children: [
1537
+ /* @__PURE__ */ n.jsx(gs, { children: /* @__PURE__ */ n.jsx(
1538
+ vs,
1643
1539
  {
1644
1540
  autoComplete: "off",
1645
1541
  ref: (m) => {
@@ -1647,7 +1543,7 @@ const zr = ({
1647
1543
  },
1648
1544
  value: e,
1649
1545
  placeholder: r,
1650
- className: j("h-9 bg-transparent", a),
1546
+ className: C("h-9 bg-transparent", a),
1651
1547
  onFocus: () => c(!0),
1652
1548
  onBlur: () => {
1653
1549
  u || c(!1);
@@ -1659,12 +1555,12 @@ const zr = ({
1659
1555
  }
1660
1556
  ) }),
1661
1557
  /* @__PURE__ */ n.jsx(
1662
- Ht,
1558
+ Vt,
1663
1559
  {
1664
1560
  onMouseEnter: () => d(!0),
1665
1561
  onMouseLeave: () => d(!1),
1666
1562
  onOpenAutoFocus: (m) => m.preventDefault(),
1667
- className: j("p-0 w-(--radix-popover-trigger-width)", {
1563
+ className: C("p-0 w-(--radix-popover-trigger-width)", {
1668
1564
  "border-0": h === 0
1669
1565
  }),
1670
1566
  align: "start",
@@ -1675,8 +1571,8 @@ const zr = ({
1675
1571
  onTouchMove: (m) => {
1676
1572
  m.stopPropagation();
1677
1573
  },
1678
- children: /* @__PURE__ */ n.jsx(Cs, { className: "max-h-[140px]", children: t.map((m) => /* @__PURE__ */ n.jsx(
1679
- Ns,
1574
+ children: /* @__PURE__ */ n.jsx(bs, { className: "max-h-[140px]", children: t.map((m) => /* @__PURE__ */ n.jsx(
1575
+ js,
1680
1576
  {
1681
1577
  value: m,
1682
1578
  onSelect: (v) => {
@@ -1690,23 +1586,23 @@ const zr = ({
1690
1586
  }
1691
1587
  )
1692
1588
  ] });
1693
- }, me = ({ shouldFilter: e, ...t }) => /* @__PURE__ */ n.jsx(bs, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ n.jsx(zr, { ...t }) }), ae = (e, t) => {
1694
- const s = A.forwardRef(({ className: a, asChild: r, ...o }, i) => {
1695
- const l = r ? ws : e;
1696
- return A.createElement(l, {
1589
+ }, ue = ({ shouldFilter: e, ...t }) => /* @__PURE__ */ n.jsx(ys, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ n.jsx(Or, { ...t }) }), se = (e, t) => {
1590
+ const s = q.forwardRef(({ className: a, asChild: r, ...o }, i) => {
1591
+ const l = r ? Cs : e;
1592
+ return q.createElement(l, {
1697
1593
  ...o,
1698
1594
  ref: i,
1699
- className: typeof t == "function" ? t({ className: a }) : j(t, a)
1595
+ className: typeof t == "function" ? t({ className: a }) : C(t, a)
1700
1596
  });
1701
1597
  });
1702
1598
  return s.displayName = `VariantComponent(${e})`, s;
1703
- }, Ve = ae(
1599
+ }, qe = se(
1704
1600
  "div",
1705
1601
  "grid grid-cols-[min-content_2fr_3fr] items-center gap-x-5"
1706
- ), pe = ae(
1602
+ ), me = se(
1707
1603
  "div",
1708
1604
  "group h-9 hover:bg-accent/75 ps-4 pe-2 grid col-span-full grid-cols-subgrid items-center border-b"
1709
- ), Fr = Object.freeze([
1605
+ ), Pr = Object.freeze([
1710
1606
  "Accept",
1711
1607
  "Accept-Encoding",
1712
1608
  "Accept-Language",
@@ -1733,40 +1629,40 @@ const zr = ({
1733
1629
  "Set-Cookie",
1734
1630
  "User-Agent",
1735
1631
  "X-Requested-With"
1736
- ]), qr = ({
1632
+ ]), Lr = ({
1737
1633
  control: e,
1738
1634
  schemaHeaders: t,
1739
1635
  lockedHeaders: s
1740
1636
  }) => {
1741
- const { fields: a, append: r, remove: o } = ze({
1637
+ const { fields: a, append: r, remove: o } = De({
1742
1638
  control: e,
1743
1639
  name: "headers"
1744
- }), { setValue: i, watch: l, formState: c } = re(), u = R([]), d = R([]), h = l("headers"), g = jt(
1640
+ }), { setValue: i, watch: l, formState: c } = ne(), u = O([]), d = O([]), h = l("headers"), g = vt(
1745
1641
  (f) => {
1746
1642
  f?.stopPropagation(), r({ name: "", value: "", active: !1 }, { shouldFocus: !0 });
1747
1643
  },
1748
1644
  [r]
1749
1645
  );
1750
- z(() => {
1646
+ I(() => {
1751
1647
  h.length === 0 && g();
1752
1648
  }, [h, g]);
1753
1649
  const m = (f) => {
1754
1650
  u.current[f]?.focus();
1755
1651
  }, v = (f) => {
1756
1652
  g(), requestAnimationFrame(() => d.current[f + 1]?.focus());
1757
- }, y = t.filter((f) => !h.some((C) => C.name === f.name)).map(({ name: f }) => f), b = a.flatMap((f, C) => !s?.map((S) => S.toLowerCase()).includes(f.name.toLowerCase()) ? [] : [C]), O = s?.map((f) => ({
1653
+ }, y = t.filter((f) => !h.some((j) => j.name === f.name)).map(({ name: f }) => f), b = a.flatMap((f, j) => !s?.map((N) => N.toLowerCase()).includes(f.name.toLowerCase()) ? [] : [j]), T = s?.map((f) => ({
1758
1654
  name: f,
1759
1655
  id: `locked-${f}`,
1760
1656
  value: "••••••••••",
1761
1657
  active: !0,
1762
1658
  locked: !0
1763
1659
  })) ?? [];
1764
- return /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
1765
- /* @__PURE__ */ n.jsxs(M, { children: [
1766
- /* @__PURE__ */ n.jsx(wn, { size: 16 }),
1767
- /* @__PURE__ */ n.jsx(G, { children: "Headers" }),
1660
+ return /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
1661
+ /* @__PURE__ */ n.jsxs(U, { children: [
1662
+ /* @__PURE__ */ n.jsx(gn, { size: 16 }),
1663
+ /* @__PURE__ */ n.jsx(M, { children: "Headers" }),
1768
1664
  /* @__PURE__ */ n.jsxs(
1769
- te,
1665
+ ce,
1770
1666
  {
1771
1667
  onClick: g,
1772
1668
  type: "button",
@@ -1775,21 +1671,21 @@ const zr = ({
1775
1671
  className: "hover:bg-accent hover:brightness-95 flex gap-2",
1776
1672
  children: [
1777
1673
  "Add header ",
1778
- /* @__PURE__ */ n.jsx(he, { size: 16 })
1674
+ /* @__PURE__ */ n.jsx(pe, { size: 16 })
1779
1675
  ]
1780
1676
  }
1781
1677
  )
1782
1678
  ] }),
1783
- /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsxs(Ve, { children: [
1784
- O.map((f) => /* @__PURE__ */ n.jsxs(at, { children: [
1785
- /* @__PURE__ */ n.jsx(ot, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
1786
- pe,
1679
+ /* @__PURE__ */ n.jsx(z, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsxs(qe, { children: [
1680
+ T.map((f) => /* @__PURE__ */ n.jsxs(rt, { children: [
1681
+ /* @__PURE__ */ n.jsx(at, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
1682
+ me,
1787
1683
  {
1788
1684
  className: "opacity-50 cursor-not-allowed font-mono text-xs min-h-10",
1789
1685
  children: [
1790
- /* @__PURE__ */ n.jsx(Sn, { size: 16 }),
1686
+ /* @__PURE__ */ n.jsx(xn, { size: 16 }),
1791
1687
  /* @__PURE__ */ n.jsx(
1792
- ue,
1688
+ de,
1793
1689
  {
1794
1690
  value: f.name,
1795
1691
  disabled: !0,
@@ -1802,7 +1698,7 @@ const zr = ({
1802
1698
  f.id
1803
1699
  ) }),
1804
1700
  /* @__PURE__ */ n.jsx(
1805
- it,
1701
+ ot,
1806
1702
  {
1807
1703
  alignOffset: 10,
1808
1704
  side: "bottom",
@@ -1811,50 +1707,50 @@ const zr = ({
1811
1707
  }
1812
1708
  )
1813
1709
  ] }, f.id)),
1814
- a.map((f, C) => {
1815
- const $ = t.find(
1816
- (S) => S.name === h.at(C)?.name
1710
+ a.map((f, j) => {
1711
+ const L = t.find(
1712
+ (N) => N.name === h.at(j)?.name
1817
1713
  );
1818
1714
  return /* @__PURE__ */ n.jsxs(
1819
- pe,
1715
+ me,
1820
1716
  {
1821
- className: j(
1822
- b.includes(C) && "text-amber-600",
1823
- b.includes(C) && !c.dirtyFields.headers?.[C]?.value && "hidden"
1717
+ className: C(
1718
+ b.includes(j) && "text-amber-600",
1719
+ b.includes(j) && !c.dirtyFields.headers?.[j]?.value && "hidden"
1824
1720
  ),
1825
1721
  children: [
1826
1722
  /* @__PURE__ */ n.jsx(
1827
- F,
1723
+ D,
1828
1724
  {
1829
1725
  control: e,
1830
- name: `headers.${C}.active`,
1831
- render: ({ field: S }) => /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1726
+ name: `headers.${j}.active`,
1727
+ render: ({ field: N }) => /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1832
1728
  /* @__PURE__ */ n.jsx(
1833
- xe,
1729
+ ge,
1834
1730
  {
1835
- id: `headers.${C}.active`,
1836
- className: j(
1837
- b.includes(C) && "hidden"
1731
+ id: `headers.${j}.active`,
1732
+ className: C(
1733
+ b.includes(j) && "hidden"
1838
1734
  ),
1839
- checked: S.value,
1840
- onCheckedChange: (D) => {
1841
- S.onChange(D);
1735
+ checked: N.value,
1736
+ onCheckedChange: (k) => {
1737
+ N.onChange(k);
1842
1738
  }
1843
1739
  }
1844
1740
  ),
1845
- /* @__PURE__ */ n.jsxs(at, { children: [
1846
- /* @__PURE__ */ n.jsx(ot, { asChild: !0, children: /* @__PURE__ */ n.jsx(
1847
- Tn,
1741
+ /* @__PURE__ */ n.jsxs(rt, { children: [
1742
+ /* @__PURE__ */ n.jsx(at, { asChild: !0, children: /* @__PURE__ */ n.jsx(
1743
+ yn,
1848
1744
  {
1849
- className: j(
1745
+ className: C(
1850
1746
  "text-amber-600",
1851
- !b.includes(C) && "hidden"
1747
+ !b.includes(j) && "hidden"
1852
1748
  ),
1853
1749
  size: 16
1854
1750
  }
1855
1751
  ) }),
1856
1752
  /* @__PURE__ */ n.jsx(
1857
- it,
1753
+ ot,
1858
1754
  {
1859
1755
  alignOffset: 10,
1860
1756
  side: "bottom",
@@ -1867,23 +1763,23 @@ const zr = ({
1867
1763
  }
1868
1764
  ),
1869
1765
  /* @__PURE__ */ n.jsx(
1870
- F,
1766
+ D,
1871
1767
  {
1872
1768
  control: e,
1873
- name: `headers.${C}.name`,
1874
- render: ({ field: S }) => /* @__PURE__ */ n.jsx(
1875
- me,
1769
+ name: `headers.${j}.name`,
1770
+ render: ({ field: N }) => /* @__PURE__ */ n.jsx(
1771
+ ue,
1876
1772
  {
1877
- ...S,
1773
+ ...N,
1878
1774
  placeholder: "Name",
1879
1775
  className: "border-0 p-0 m-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono",
1880
- options: [...y, ...Fr],
1881
- onEnterPress: () => m(C),
1882
- onChange: (D) => {
1883
- S.onChange(D), i(`headers.${C}.active`, !0);
1776
+ options: [...y, ...Pr],
1777
+ onEnterPress: () => m(j),
1778
+ onChange: (k) => {
1779
+ N.onChange(k), i(`headers.${j}.active`, !0);
1884
1780
  },
1885
- ref: (D) => {
1886
- d.current[C] = D;
1781
+ ref: (k) => {
1782
+ d.current[j] = k;
1887
1783
  }
1888
1784
  }
1889
1785
  )
@@ -1891,47 +1787,47 @@ const zr = ({
1891
1787
  ),
1892
1788
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
1893
1789
  /* @__PURE__ */ n.jsx(
1894
- F,
1790
+ D,
1895
1791
  {
1896
1792
  control: e,
1897
- name: `headers.${C}.value`,
1898
- render: ({ field: S }) => $?.enum && $.enum.length > 0 ? /* @__PURE__ */ n.jsx(
1899
- me,
1793
+ name: `headers.${j}.value`,
1794
+ render: ({ field: N }) => L?.enum && L.enum.length > 0 ? /* @__PURE__ */ n.jsx(
1795
+ ue,
1900
1796
  {
1901
1797
  shouldFilter: !1,
1902
- value: S.value,
1903
- options: $.enum ?? [],
1904
- onChange: (P) => {
1905
- S.onChange(P), i(`headers.${C}.active`, !0);
1798
+ value: N.value,
1799
+ options: L.enum ?? [],
1800
+ onChange: (A) => {
1801
+ N.onChange(A), i(`headers.${j}.active`, !0);
1906
1802
  },
1907
1803
  className: "border-0 p-0 m-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
1908
1804
  }
1909
1805
  ) : /* @__PURE__ */ n.jsx(
1910
- ue,
1806
+ de,
1911
1807
  {
1912
1808
  placeholder: "Value",
1913
1809
  className: "w-full truncate border-0 p-0 m-0 shadow-none text-xs focus-visible:ring-0 font-mono",
1914
1810
  autoComplete: "off",
1915
- ...S,
1916
- ref: (P) => {
1917
- u.current[C] = P;
1811
+ ...N,
1812
+ ref: (A) => {
1813
+ u.current[j] = A;
1918
1814
  },
1919
- onKeyDown: (P) => {
1920
- P.key === "Enter" && P.currentTarget.value.trim() && v(C);
1815
+ onKeyDown: (A) => {
1816
+ A.key === "Enter" && A.currentTarget.value.trim() && v(j);
1921
1817
  }
1922
1818
  }
1923
1819
  )
1924
1820
  }
1925
1821
  ),
1926
1822
  /* @__PURE__ */ n.jsx(
1927
- te,
1823
+ ce,
1928
1824
  {
1929
1825
  size: "icon-xs",
1930
1826
  variant: "ghost",
1931
1827
  className: "text-muted-foreground opacity-0 group-hover:brightness-95 group-hover:opacity-100",
1932
- onClick: () => o(C),
1828
+ onClick: () => o(j),
1933
1829
  type: "button",
1934
- children: /* @__PURE__ */ n.jsx(xt, { size: 16 })
1830
+ children: /* @__PURE__ */ n.jsx(ft, { size: 16 })
1935
1831
  }
1936
1832
  )
1937
1833
  ] })
@@ -1942,58 +1838,58 @@ const zr = ({
1942
1838
  })
1943
1839
  ] }) }) }) })
1944
1840
  ] });
1945
- }, Vr = Ts(
1841
+ }, $r = Ns(
1946
1842
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
1947
- ), Be = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1948
- Ot.Root,
1843
+ ), Ve = q.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1844
+ Tt.Root,
1949
1845
  {
1950
1846
  ref: s,
1951
- className: j(Vr(), e),
1847
+ className: C($r(), e),
1952
1848
  ...t
1953
1849
  }
1954
1850
  ));
1955
- Be.displayName = Ot.Root.displayName;
1956
- const Qt = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1957
- ne.Root,
1851
+ Ve.displayName = Tt.Root.displayName;
1852
+ const Bt = q.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1853
+ ee.Root,
1958
1854
  {
1959
- className: j("grid gap-2", e),
1855
+ className: C("grid gap-2", e),
1960
1856
  ...t,
1961
1857
  ref: s
1962
1858
  }
1963
1859
  ));
1964
- Qt.displayName = ne.Root.displayName;
1965
- const Jt = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1966
- ne.Item,
1860
+ Bt.displayName = ee.Root.displayName;
1861
+ const _t = q.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1862
+ ee.Item,
1967
1863
  {
1968
1864
  ref: s,
1969
- className: j(
1865
+ className: C(
1970
1866
  "aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1971
1867
  e
1972
1868
  ),
1973
1869
  ...t,
1974
- children: /* @__PURE__ */ n.jsx(ne.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ n.jsx(An, { className: "h-2.5 w-2.5 fill-current text-current" }) })
1870
+ children: /* @__PURE__ */ n.jsx(ee.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ n.jsx(vn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
1975
1871
  }
1976
1872
  ));
1977
- Jt.displayName = ne.Item.displayName;
1978
- const Wt = ({
1873
+ _t.displayName = ee.Item.displayName;
1874
+ const Ut = ({
1979
1875
  identities: e,
1980
1876
  setValue: t,
1981
1877
  value: s
1982
1878
  }) => /* @__PURE__ */ n.jsx("div", { className: "w-full overflow-hidden", children: /* @__PURE__ */ n.jsx(
1983
- Qt,
1879
+ Bt,
1984
1880
  {
1985
1881
  onValueChange: (a) => t(a),
1986
1882
  value: s,
1987
- defaultValue: ee,
1883
+ defaultValue: K,
1988
1884
  className: "gap-0",
1989
1885
  disabled: e?.length === 0,
1990
- children: [{ id: ee, label: "None" }, ...e ?? []].map(
1886
+ children: [{ id: K, label: "None" }, ...e ?? []].map(
1991
1887
  (a) => /* @__PURE__ */ n.jsxs(
1992
- Be,
1888
+ Ve,
1993
1889
  {
1994
1890
  className: "h-10 items-center border-b font-normal flex gap-4 p-4 cursor-pointer hover:bg-accent/75",
1995
1891
  children: [
1996
- /* @__PURE__ */ n.jsx(Jt, { value: a.id, id: a.id }),
1892
+ /* @__PURE__ */ n.jsx(_t, { value: a.id, id: a.id }),
1997
1893
  /* @__PURE__ */ n.jsx("span", { children: a.label })
1998
1894
  ]
1999
1895
  },
@@ -2001,28 +1897,28 @@ const Wt = ({
2001
1897
  )
2002
1898
  )
2003
1899
  }
2004
- ) }), Br = ({
1900
+ ) }), Er = ({
2005
1901
  onSubmit: e,
2006
1902
  identities: t,
2007
1903
  open: s,
2008
1904
  onOpenChange: a
2009
1905
  }) => {
2010
- const [r, o] = E(void 0), [i, l] = E(!1);
2011
- return /* @__PURE__ */ n.jsx(Ie, { open: s, onOpenChange: a, children: /* @__PURE__ */ n.jsxs(ke, { children: [
2012
- /* @__PURE__ */ n.jsx(De, { children: "Select an auth identity" }),
2013
- /* @__PURE__ */ n.jsx(Ct, { children: "Please select an identity for this request." }),
2014
- /* @__PURE__ */ n.jsx(Ss, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ n.jsx(
2015
- Wt,
1906
+ const [r, o] = $(void 0), [i, l] = $(!1);
1907
+ return /* @__PURE__ */ n.jsx(Re, { open: s, onOpenChange: a, children: /* @__PURE__ */ n.jsxs(ke, { children: [
1908
+ /* @__PURE__ */ n.jsx(Ie, { children: "Select an auth identity" }),
1909
+ /* @__PURE__ */ n.jsx(bt, { children: "Please select an identity for this request." }),
1910
+ /* @__PURE__ */ n.jsx(ws, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ n.jsx(
1911
+ Ut,
2016
1912
  {
2017
1913
  identities: t,
2018
1914
  setValue: o,
2019
1915
  value: r
2020
1916
  }
2021
1917
  ) }),
2022
- /* @__PURE__ */ n.jsxs(Nt, { className: "flex flex-col gap-2", children: [
1918
+ /* @__PURE__ */ n.jsxs(jt, { className: "flex flex-col gap-2", children: [
2023
1919
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
2024
1920
  /* @__PURE__ */ n.jsx(
2025
- xe,
1921
+ ge,
2026
1922
  {
2027
1923
  id: "remember",
2028
1924
  checked: i,
@@ -2031,10 +1927,10 @@ const Wt = ({
2031
1927
  )
2032
1928
  }
2033
1929
  ),
2034
- /* @__PURE__ */ n.jsx(Be, { htmlFor: "remember", children: "Remember my choice" })
1930
+ /* @__PURE__ */ n.jsx(Ve, { htmlFor: "remember", children: "Remember my choice" })
2035
1931
  ] }),
2036
1932
  /* @__PURE__ */ n.jsx(
2037
- I,
1933
+ E,
2038
1934
  {
2039
1935
  onClick: () => e({ identity: r, rememberedIdentity: i }),
2040
1936
  children: "Send"
@@ -2043,23 +1939,23 @@ const Wt = ({
2043
1939
  ] })
2044
1940
  ] }) });
2045
1941
  }, we = (e) => Math.abs(
2046
- Number.isNaN(parseInt(e)) ? e.toLowerCase().charCodeAt(0) - 96 : Number.isNaN(parseInt(e)) ? 0 : parseInt(e)
2047
- ), Se = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, s) => `${we(t) + we(s)}`)) : we(e), pt = (e, t = {}) => {
2048
- const s = (3 * Se(e) + 2 * Se(e) + Se(e)) % 360, { saturation: a = 75, lightness: r = 60 } = t;
1942
+ Number.isNaN(Number(e)) ? e.toLowerCase().charCodeAt(0) - 96 : Number.isNaN(Number(e)) ? 0 : Number(e)
1943
+ ), Ne = (e) => e.length > 1 ? Number(e.split("").reduce((t, s) => `${we(t) + we(s)}`)) : we(e), mt = (e, t = {}) => {
1944
+ const s = (3 * Ne(e) + 2 * Ne(e) + Ne(e)) % 360, { saturation: a = 75, lightness: r = 60 } = t;
2049
1945
  return `${s}deg ${a}% ${r}%`;
2050
- }, Te = "data-linked-param", _r = (e) => {
2051
- const { resolvedTheme: t } = As();
1946
+ }, Se = "data-linked-param", Rr = (e) => {
1947
+ const { resolvedTheme: t } = Ss();
2052
1948
  return {
2053
- text: pt(
1949
+ text: mt(
2054
1950
  e,
2055
1951
  t === "light" ? { saturation: 95, lightness: 38 } : {}
2056
1952
  ),
2057
- background: pt(
1953
+ background: mt(
2058
1954
  e,
2059
1955
  t === "light" ? { saturation: 85, lightness: 40 } : {}
2060
1956
  )
2061
1957
  };
2062
- }, Xt = ({
1958
+ }, Mt = ({
2063
1959
  name: e,
2064
1960
  className: t,
2065
1961
  slug: s,
@@ -2067,16 +1963,16 @@ const Wt = ({
2067
1963
  children: r,
2068
1964
  onClick: o
2069
1965
  }) => {
2070
- const i = R(null), l = s?.replace(/[{}]/g, ""), c = e.replace(/[{}]/g, ""), { text: u, background: d } = _r(c), h = `hsl(${u} / 100%)`, g = `hsl(${d} / 10%)`, m = `hsl(${d} / 50%)`;
2071
- return z(() => {
1966
+ const i = O(null), l = s?.replace(/[{}]/g, ""), c = e.replace(/[{}]/g, ""), { text: u, background: d } = Rr(c), h = `hsl(${u} / 100%)`, g = `hsl(${d} / 10%)`, m = `hsl(${d} / 50%)`;
1967
+ return I(() => {
2072
1968
  if (!l || !i.current) return;
2073
1969
  const v = () => {
2074
- document.querySelectorAll(`[${Te}="${l}"]`).forEach((O) => {
2075
- O instanceof HTMLElement && (O.dataset.active = "true");
1970
+ document.querySelectorAll(`[${Se}="${l}"]`).forEach((T) => {
1971
+ T instanceof HTMLElement && (T.dataset.active = "true");
2076
1972
  });
2077
1973
  }, y = () => {
2078
- document.querySelectorAll(`[${Te}="${l}"]`).forEach((O) => {
2079
- O instanceof HTMLElement && (O.dataset.active = "false");
1974
+ document.querySelectorAll(`[${Se}="${l}"]`).forEach((T) => {
1975
+ T instanceof HTMLElement && (T.dataset.active = "false");
2080
1976
  });
2081
1977
  }, b = i.current;
2082
1978
  return b.addEventListener("mouseenter", v), b.addEventListener("mouseleave", y), () => {
@@ -2087,8 +1983,8 @@ const Wt = ({
2087
1983
  /* @__PURE__ */ n.jsx(
2088
1984
  "span",
2089
1985
  {
2090
- [Te]: l,
2091
- className: j(
1986
+ [Se]: l,
1987
+ className: C(
2092
1988
  // This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
2093
1989
  "relative transition-all duration-100 rounded-lg",
2094
1990
  "border border-(--border-color) p-0.5 text-(--param-color) bg-(--background-color)",
@@ -2107,24 +2003,24 @@ const Wt = ({
2107
2003
  children: r ?? e
2108
2004
  }
2109
2005
  );
2110
- }, Ur = ({
2006
+ }, kr = ({
2111
2007
  control: e,
2112
2008
  url: t
2113
2009
  }) => {
2114
- const { fields: s } = ze({
2010
+ const { fields: s } = De({
2115
2011
  control: e,
2116
2012
  name: "pathParams"
2117
2013
  }), a = [...s].sort(
2118
2014
  (r, o) => t.indexOf(`{${r.name}}`) - t.indexOf(`{${o.name}}`)
2119
2015
  );
2120
- return /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsx(Ve, { children: a.map((r, o) => /* @__PURE__ */ n.jsxs(pe, { children: [
2016
+ return /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsx(qe, { children: a.map((r, o) => /* @__PURE__ */ n.jsxs(me, { children: [
2121
2017
  /* @__PURE__ */ n.jsx(
2122
- F,
2018
+ D,
2123
2019
  {
2124
2020
  control: e,
2125
2021
  name: `pathParams.${o}.name`,
2126
2022
  render: () => /* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(
2127
- Xt,
2023
+ Mt,
2128
2024
  {
2129
2025
  slug: r.name,
2130
2026
  name: r.name,
@@ -2134,12 +2030,12 @@ const Wt = ({
2134
2030
  }
2135
2031
  ),
2136
2032
  /* @__PURE__ */ n.jsx("div", { className: "flex justify-between items-center col-span-2", children: /* @__PURE__ */ n.jsx(
2137
- F,
2033
+ D,
2138
2034
  {
2139
2035
  control: e,
2140
2036
  name: `pathParams.${o}.value`,
2141
2037
  render: ({ field: i }) => /* @__PURE__ */ n.jsx(
2142
- ue,
2038
+ de,
2143
2039
  {
2144
2040
  ...i,
2145
2041
  required: !0,
@@ -2150,29 +2046,29 @@ const Wt = ({
2150
2046
  }
2151
2047
  ) })
2152
2048
  ] }, r.id)) }) });
2153
- }, Mr = ae(
2049
+ }, Ir = se(
2154
2050
  "input",
2155
2051
  "bg-transparent h-9 font-mono text-xs"
2156
- ), Gr = ({
2052
+ ), Dr = ({
2157
2053
  control: e,
2158
2054
  schemaQueryParams: t
2159
2055
  }) => {
2160
- const { fields: s, remove: a, append: r } = ze({
2056
+ const { fields: s, remove: a, append: r } = De({
2161
2057
  control: e,
2162
2058
  name: "queryParams"
2163
- }), { setValue: o, getValues: i, watch: l } = re(), c = l("queryParams");
2164
- z(() => {
2059
+ }), { setValue: o, getValues: i, watch: l } = ne(), c = l("queryParams");
2060
+ I(() => {
2165
2061
  c.length === 0 && r({ name: "", value: "", active: !1 }, { shouldFocus: !0 });
2166
2062
  }, [c, r]);
2167
2063
  const u = t.map(
2168
2064
  (d) => !!d.isRequired
2169
2065
  );
2170
- return /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
2171
- /* @__PURE__ */ n.jsxs(M, { children: [
2172
- /* @__PURE__ */ n.jsx(On, { size: 16 }),
2173
- /* @__PURE__ */ n.jsx(G, { children: "Query Parameters" }),
2066
+ return /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
2067
+ /* @__PURE__ */ n.jsxs(U, { children: [
2068
+ /* @__PURE__ */ n.jsx(bn, { size: 16 }),
2069
+ /* @__PURE__ */ n.jsx(M, { children: "Query Parameters" }),
2174
2070
  /* @__PURE__ */ n.jsxs(
2175
- I,
2071
+ E,
2176
2072
  {
2177
2073
  onClick: () => {
2178
2074
  o("queryParams", [
@@ -2186,23 +2082,23 @@ const Wt = ({
2186
2082
  className: "hover:bg-accent hover:brightness-95 flex gap-2",
2187
2083
  children: [
2188
2084
  "Add parameter ",
2189
- /* @__PURE__ */ n.jsx(he, { size: 16 })
2085
+ /* @__PURE__ */ n.jsx(pe, { size: 16 })
2190
2086
  ]
2191
2087
  }
2192
2088
  )
2193
2089
  ] }),
2194
- /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden w-full", children: /* @__PURE__ */ n.jsx(Ve, { children: s.map((d, h) => {
2090
+ /* @__PURE__ */ n.jsx(z, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden w-full", children: /* @__PURE__ */ n.jsx(qe, { children: s.map((d, h) => {
2195
2091
  const g = t.find(
2196
2092
  (m) => m.name === c.at(h)?.name
2197
2093
  );
2198
- return /* @__PURE__ */ n.jsxs(pe, { children: [
2094
+ return /* @__PURE__ */ n.jsxs(me, { children: [
2199
2095
  /* @__PURE__ */ n.jsx(
2200
- F,
2096
+ D,
2201
2097
  {
2202
2098
  control: e,
2203
2099
  name: `queryParams.${h}.active`,
2204
2100
  render: ({ field: m }) => /* @__PURE__ */ n.jsx(
2205
- xe,
2101
+ ge,
2206
2102
  {
2207
2103
  id: `queryParams.${h}.active`,
2208
2104
  checked: m.value,
@@ -2212,10 +2108,10 @@ const Wt = ({
2212
2108
  }
2213
2109
  ),
2214
2110
  /* @__PURE__ */ n.jsx(
2215
- F,
2111
+ D,
2216
2112
  {
2217
2113
  control: e,
2218
- render: ({ field: m }) => u[h] ? /* @__PURE__ */ n.jsx(Mr, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
2114
+ render: ({ field: m }) => u[h] ? /* @__PURE__ */ n.jsx(Ir, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
2219
2115
  "label",
2220
2116
  {
2221
2117
  className: "flex items-center cursor-pointer gap-1",
@@ -2227,7 +2123,7 @@ const Wt = ({
2227
2123
  ]
2228
2124
  }
2229
2125
  ) }) : /* @__PURE__ */ n.jsx(
2230
- me,
2126
+ ue,
2231
2127
  {
2232
2128
  placeholder: "Name",
2233
2129
  value: m.value,
@@ -2243,11 +2139,11 @@ const Wt = ({
2243
2139
  ),
2244
2140
  /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between items-center", children: [
2245
2141
  /* @__PURE__ */ n.jsx(
2246
- F,
2142
+ D,
2247
2143
  {
2248
2144
  control: e,
2249
2145
  render: ({ field: m }) => g?.enum && g.enum.length > 0 ? /* @__PURE__ */ n.jsx(
2250
- me,
2146
+ ue,
2251
2147
  {
2252
2148
  value: m.value,
2253
2149
  options: g.enum ?? [],
@@ -2257,7 +2153,7 @@ const Wt = ({
2257
2153
  className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
2258
2154
  }
2259
2155
  ) : /* @__PURE__ */ n.jsx(
2260
- ue,
2156
+ de,
2261
2157
  {
2262
2158
  ...m,
2263
2159
  onChange: (y) => {
@@ -2272,36 +2168,36 @@ const Wt = ({
2272
2168
  }
2273
2169
  ),
2274
2170
  /* @__PURE__ */ n.jsx(
2275
- I,
2171
+ E,
2276
2172
  {
2277
2173
  size: "icon-xs",
2278
2174
  variant: "ghost",
2279
2175
  className: "text-muted-foreground opacity-0 group-hover:brightness-95 group-hover:opacity-100",
2280
2176
  onClick: () => a(h),
2281
2177
  type: "button",
2282
- children: /* @__PURE__ */ n.jsx(xt, { size: 16 })
2178
+ children: /* @__PURE__ */ n.jsx(ft, { size: 16 })
2283
2179
  }
2284
2180
  )
2285
2181
  ] })
2286
2182
  ] }, d.id);
2287
2183
  }) }) }) })
2288
2184
  ] });
2289
- }, Hr = ({
2185
+ }, Fr = ({
2290
2186
  open: e,
2291
2187
  setOpen: t,
2292
2188
  onSignUp: s,
2293
2189
  onLogin: a
2294
- }) => /* @__PURE__ */ n.jsx(Ie, { open: e, onOpenChange: t, children: /* @__PURE__ */ n.jsxs(ke, { children: [
2295
- /* @__PURE__ */ n.jsx(De, { children: "Welcome to the Playground!" }),
2296
- /* @__PURE__ */ n.jsx(Ct, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
2297
- /* @__PURE__ */ n.jsxs(Nt, { className: "flex gap-2 sm:justify-between", children: [
2298
- /* @__PURE__ */ n.jsx(I, { type: "button", variant: "ghost", onClick: () => t(!1), children: "Skip" }),
2190
+ }) => /* @__PURE__ */ n.jsx(Re, { open: e, onOpenChange: t, children: /* @__PURE__ */ n.jsxs(ke, { children: [
2191
+ /* @__PURE__ */ n.jsx(Ie, { children: "Welcome to the Playground!" }),
2192
+ /* @__PURE__ */ n.jsx(bt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
2193
+ /* @__PURE__ */ n.jsxs(jt, { className: "flex gap-2 sm:justify-between", children: [
2194
+ /* @__PURE__ */ n.jsx(E, { type: "button", variant: "ghost", onClick: () => t(!1), children: "Skip" }),
2299
2195
  /* @__PURE__ */ n.jsxs("div", { className: "flex gap-2", children: [
2300
- s && /* @__PURE__ */ n.jsx(I, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
2301
- a && /* @__PURE__ */ n.jsx(I, { type: "button", variant: "default", onClick: a, children: "Login" })
2196
+ s && /* @__PURE__ */ n.jsx(E, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
2197
+ a && /* @__PURE__ */ n.jsx(E, { type: "button", variant: "default", onClick: a, children: "Login" })
2302
2198
  ] })
2303
2199
  ] })
2304
- ] }) }), Qr = $e()(
2200
+ ] }) }), zr = $e()(
2305
2201
  Ee(
2306
2202
  (e, t) => ({
2307
2203
  rememberedIdentity: null,
@@ -2312,10 +2208,10 @@ const Wt = ({
2312
2208
  }),
2313
2209
  {
2314
2210
  name: "identity-storage",
2315
- storage: yt(() => sessionStorage)
2211
+ storage: gt(() => sessionStorage)
2316
2212
  }
2317
2213
  )
2318
- ), Jr = ({
2214
+ ), qr = ({
2319
2215
  path: e,
2320
2216
  renderParam: t
2321
2217
  }) => {
@@ -2328,23 +2224,23 @@ const Wt = ({
2328
2224
  if (!h) return;
2329
2225
  const g = u.index;
2330
2226
  g > c && l.push(
2331
- /* @__PURE__ */ n.jsx(Y, { children: a.slice(c, g) }, `text-${c}-${g}`)
2227
+ /* @__PURE__ */ n.jsx(Z, { children: a.slice(c, g) }, `text-${c}-${g}`)
2332
2228
  ), l.push(
2333
- /* @__PURE__ */ n.jsx(Y, { children: t({ name: h, originalValue: d, index: s++ }) }, `param-${h}`)
2229
+ /* @__PURE__ */ n.jsx(Z, { children: t({ name: h, originalValue: d, index: s++ }) }, `param-${h}`)
2334
2230
  ), c = g + d.length;
2335
2231
  }), c < a.length && l.push(
2336
- /* @__PURE__ */ n.jsx(Y, { children: a.slice(c) }, `text-${c}-${a.length}`)
2232
+ /* @__PURE__ */ n.jsx(Z, { children: a.slice(c) }, `text-${c}-${a.length}`)
2337
2233
  ), // biome-ignore lint/suspicious/noArrayIndexKey: index should be stable
2338
- /* @__PURE__ */ n.jsxs(Y, { children: [
2234
+ /* @__PURE__ */ n.jsxs(Z, { children: [
2339
2235
  l,
2340
2236
  r < o.length - 1 && "/",
2341
2237
  /* @__PURE__ */ n.jsx("wbr", {})
2342
2238
  ] }, `${a}-${r}`);
2343
2239
  });
2344
- }, Wr = ({ url: e }) => {
2345
- const { watch: t, setFocus: s } = re(), [a] = t(["pathParams"]);
2240
+ }, Vr = ({ url: e }) => {
2241
+ const { watch: t, setFocus: s } = ne(), [a] = t(["pathParams"]);
2346
2242
  return /* @__PURE__ */ n.jsx(
2347
- Jr,
2243
+ qr,
2348
2244
  {
2349
2245
  path: e,
2350
2246
  renderParam: ({ name: r, originalValue: o, index: i }) => {
@@ -2352,7 +2248,7 @@ const Wt = ({
2352
2248
  (c) => c.name === r
2353
2249
  )?.value;
2354
2250
  return /* @__PURE__ */ n.jsx(
2355
- Xt,
2251
+ Mt,
2356
2252
  {
2357
2253
  name: r,
2358
2254
  backgroundOpacity: "0",
@@ -2364,8 +2260,8 @@ const Wt = ({
2364
2260
  }
2365
2261
  }
2366
2262
  );
2367
- }, Xr = () => {
2368
- const { watch: e } = re(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ n.jsxs(Y, { children: [
2263
+ }, Br = () => {
2264
+ const { watch: e } = ne(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ n.jsxs(Z, { children: [
2369
2265
  a.name,
2370
2266
  "=",
2371
2267
  encodeURIComponent(a.value).replaceAll("%20", "+"),
@@ -2376,12 +2272,12 @@ const Wt = ({
2376
2272
  s.length > 0 ? "?" : "",
2377
2273
  s
2378
2274
  ] });
2379
- }, Zt = (e = 0) => {
2275
+ }, Gt = (e = 0) => {
2380
2276
  if (e === 0)
2381
2277
  return "0 B";
2382
2278
  const t = Math.floor(Math.log(e) / Math.log(1e3));
2383
2279
  return `${(e / 1e3 ** t).toFixed(t ? 2 : 0)} ${t ? `${"kMGTPEZY"[t - 1]}B` : "B"}`;
2384
- }, Zr = ({ status: e }) => {
2280
+ }, _r = ({ status: e }) => {
2385
2281
  if (!e) return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
2386
2282
  switch (Number(e.toString().slice(0, 1))) {
2387
2283
  case 2:
@@ -2393,15 +2289,15 @@ const Wt = ({
2393
2289
  default:
2394
2290
  return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
2395
2291
  }
2396
- }, Yr = () => {
2397
- const e = R(null), t = R(null), s = R(Date.now()), a = R(null), r = jt(() => {
2292
+ }, Ur = () => {
2293
+ const e = O(null), t = O(null), s = O(Date.now()), a = O(null), r = vt(() => {
2398
2294
  if (t.current) {
2399
2295
  const o = Date.now() - s.current;
2400
2296
  t.current.nodeValue = o.toFixed();
2401
2297
  }
2402
2298
  a.current = requestAnimationFrame(r);
2403
2299
  }, []);
2404
- return es(() => {
2300
+ return Gn(() => {
2405
2301
  const o = e.current;
2406
2302
  if (!o) return;
2407
2303
  const i = document.createTextNode("0");
@@ -2409,7 +2305,7 @@ const Wt = ({
2409
2305
  a.current && cancelAnimationFrame(a.current), t.current && o.contains(i) && o.removeChild(i);
2410
2306
  };
2411
2307
  }, [r]), /* @__PURE__ */ n.jsx("span", { className: "inline-block text-end w-[3ch]", ref: e });
2412
- }, Kr = ({
2308
+ }, Mr = ({
2413
2309
  status: e,
2414
2310
  time: t,
2415
2311
  size: s,
@@ -2430,7 +2326,7 @@ const Wt = ({
2430
2326
  };
2431
2327
  return /* @__PURE__ */ n.jsxs("div", { className: "relative flex h-10 text-xs gap-4 px-4 items-center justify-between font-mono border-b", children: [
2432
2328
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
2433
- /* @__PURE__ */ n.jsx(Zr, { status: e }),
2329
+ /* @__PURE__ */ n.jsx(_r, { status: e }),
2434
2330
  " ",
2435
2331
  e ?? "Sending Request...",
2436
2332
  e ? ` ${o[e]}` : ""
@@ -2439,12 +2335,12 @@ const Wt = ({
2439
2335
  /* @__PURE__ */ n.jsxs("div", { children: [
2440
2336
  /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Size" }),
2441
2337
  " ",
2442
- /* @__PURE__ */ n.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? Zt(s) : "- B" })
2338
+ /* @__PURE__ */ n.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? Gt(s) : "- B" })
2443
2339
  ] }),
2444
2340
  /* @__PURE__ */ n.jsxs("div", { children: [
2445
2341
  /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Time" }),
2446
2342
  " ",
2447
- t !== void 0 ? `${t.toFixed(0)}` : /* @__PURE__ */ n.jsx(Yr, {}),
2343
+ t !== void 0 ? `${t.toFixed(0)}` : /* @__PURE__ */ n.jsx(Ur, {}),
2448
2344
  "ms"
2449
2345
  ] })
2450
2346
  ] }),
@@ -2460,42 +2356,42 @@ const Wt = ({
2460
2356
  )
2461
2357
  ] });
2462
2358
  };
2463
- function _e(e) {
2359
+ function Be(e) {
2464
2360
  if (e === null) return "null";
2465
2361
  if (Array.isArray(e)) {
2466
2362
  if (e.length === 0) return "any[]";
2467
2363
  const t = e[0];
2468
- return t === void 0 ? "any[]" : `${_e(t)}[]`;
2364
+ return t === void 0 ? "any[]" : `${Be(t)}[]`;
2469
2365
  }
2470
- return typeof e == "object" ? ea(e) : typeof e;
2366
+ return typeof e == "object" ? Gr(e) : typeof e;
2471
2367
  }
2472
- function ea(e, t = "") {
2368
+ function Gr(e, t = "") {
2473
2369
  const s = ["{"];
2474
2370
  for (const [a, r] of Object.entries(e)) {
2475
- const o = _e(r);
2371
+ const o = Be(r);
2476
2372
  s.push(` ${a}: ${o};`);
2477
2373
  }
2478
2374
  return s.push("}"), s.join(`
2479
2375
  `);
2480
2376
  }
2481
- function ta(e) {
2482
- return { lines: [`type GeneratedType = ${_e(e)};`] };
2377
+ function Hr(e) {
2378
+ return { lines: [`type GeneratedType = ${Be(e)};`] };
2483
2379
  }
2484
- const Yt = ({
2380
+ const Ht = ({
2485
2381
  code: e,
2486
2382
  language: t,
2487
2383
  children: s
2488
2384
  }) => {
2489
- const { syntaxHighlighting: a } = Qn().options;
2490
- return Yn(a?.highlighter, "Highlighter not found"), Os(
2385
+ const { syntaxHighlighting: a } = zn().options;
2386
+ return Un(a?.highlighter, "Highlighter not found"), Ts(
2491
2387
  a.highlighter,
2492
2388
  e ?? s ?? "",
2493
2389
  t,
2494
2390
  a.themes
2495
2391
  );
2496
2392
  };
2497
- Yt.displayName = "Highlight";
2498
- const na = (e) => Object.entries({
2393
+ Ht.displayName = "Highlight";
2394
+ const Qr = (e) => Object.entries({
2499
2395
  "application/json": "json",
2500
2396
  "text/json": "json",
2501
2397
  "text/html": "html",
@@ -2505,16 +2401,16 @@ const na = (e) => Object.entries({
2505
2401
  "application/xhtml+xml": "xhtml"
2506
2402
  }).find(
2507
2403
  ([s]) => e.includes(s)
2508
- )?.[1], sa = (e) => {
2404
+ )?.[1], Jr = (e) => {
2509
2405
  const t = e.find(([s]) => s.toLowerCase() === "content-type")?.[1] || "";
2510
- return na(t);
2511
- }, ra = (e) => {
2406
+ return Qr(t);
2407
+ }, Wr = (e) => {
2512
2408
  try {
2513
2409
  return JSON.stringify(JSON.parse(e), null, 2);
2514
2410
  } catch {
2515
2411
  return null;
2516
2412
  }
2517
- }, aa = (e) => {
2413
+ }, Xr = (e) => {
2518
2414
  const t = [
2519
2415
  "Content-Type",
2520
2416
  "Content-Length",
@@ -2528,25 +2424,25 @@ const na = (e) => Object.entries({
2528
2424
  const r = t.indexOf(s.toLowerCase()), o = t.indexOf(a.toLowerCase());
2529
2425
  return r === o ? 0 : r === -1 ? 1 : o === -1 ? -1 : r - o;
2530
2426
  });
2531
- }, Z = 3, Ae = ae(
2427
+ }, X = 3, Te = se(
2532
2428
  "div",
2533
2429
  "grid-cols-subgrid grid border-b col-span-full px-4 py-1.5 font-mono text-xs"
2534
- ), le = ae("div", "py-1 break-all"), Oe = ({ value: e, header: t }) => {
2535
- const a = ["authorization", "key", "secret", "token"].includes(t.toLowerCase()), [r, o] = E(!a);
2430
+ ), ie = se("div", "py-1 break-all"), Ae = ({ value: e, header: t }) => {
2431
+ const a = ["authorization", "key", "secret", "token"].includes(t.toLowerCase()), [r, o] = $(!a);
2536
2432
  return /* @__PURE__ */ n.jsxs(
2537
- le,
2433
+ ie,
2538
2434
  {
2539
- className: j(a && "cursor-pointer flex group"),
2435
+ className: C(a && "cursor-pointer flex group"),
2540
2436
  onClick: () => {
2541
2437
  a && o((i) => !i);
2542
2438
  },
2543
2439
  children: [
2544
- /* @__PURE__ */ n.jsx(cs, { secret: e, previewChars: 0, revealed: r }),
2545
- a ? r ? /* @__PURE__ */ n.jsx($n, { size: 14, className: j("hidden group-hover:block") }) : /* @__PURE__ */ n.jsx(En, { size: 14, className: j("hidden group-hover:block") }) : null
2440
+ /* @__PURE__ */ n.jsx(Kn, { secret: e, previewChars: 0, revealed: r }),
2441
+ a ? r ? /* @__PURE__ */ n.jsx(Nn, { size: 14, className: C("hidden group-hover:block") }) : /* @__PURE__ */ n.jsx(Sn, { size: 14, className: C("hidden group-hover:block") }) : null
2546
2442
  ]
2547
2443
  }
2548
2444
  );
2549
- }, oa = ({
2445
+ }, Zr = ({
2550
2446
  body: e = "",
2551
2447
  headers: t,
2552
2448
  request: s,
@@ -2555,66 +2451,66 @@ const na = (e) => Object.entries({
2555
2451
  fileName: o,
2556
2452
  blob: i
2557
2453
  }) => {
2558
- const l = sa(t), c = ra(e), u = c || e, [d, h] = E(
2454
+ const l = Jr(t), c = Wr(e), u = c || e, [d, h] = $(
2559
2455
  c ? "formatted" : "raw"
2560
- ), g = Jn({
2456
+ ), g = qn({
2561
2457
  queryKey: ["types", u],
2562
- queryFn: async () => ta(JSON.parse(u)),
2458
+ queryFn: async () => Hr(JSON.parse(u)),
2563
2459
  enabled: d === "types" && !r
2564
2460
  }), m = () => {
2565
2461
  if (i && o) {
2566
2462
  const y = URL.createObjectURL(i), b = document.createElement("a");
2567
2463
  b.href = y, b.download = o, document.body.appendChild(b), b.click(), document.body.removeChild(b), URL.revokeObjectURL(y);
2568
2464
  }
2569
- }, v = aa([...t]);
2465
+ }, v = Xr([...t]);
2570
2466
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2571
- /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
2572
- /* @__PURE__ */ n.jsxs(M, { children: [
2573
- /* @__PURE__ */ n.jsx(Pn, { size: 16 }),
2574
- /* @__PURE__ */ n.jsx(G, { className: "col-span-2", children: "Header Request" })
2467
+ /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
2468
+ /* @__PURE__ */ n.jsxs(U, { children: [
2469
+ /* @__PURE__ */ n.jsx(jn, { size: 16 }),
2470
+ /* @__PURE__ */ n.jsx(M, { className: "col-span-2", children: "Header Request" })
2575
2471
  ] }),
2576
- /* @__PURE__ */ n.jsx(V, { children: /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-2 gap-x-6 text-sm", children: s.headers.slice(0, Z).map(([y, b]) => /* @__PURE__ */ n.jsxs(Ae, { children: [
2577
- /* @__PURE__ */ n.jsx(le, { children: y }),
2578
- /* @__PURE__ */ n.jsx(Oe, { value: b, header: y })
2472
+ /* @__PURE__ */ n.jsx(z, { children: /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-2 gap-x-6 text-sm", children: s.headers.slice(0, X).map(([y, b]) => /* @__PURE__ */ n.jsxs(Te, { children: [
2473
+ /* @__PURE__ */ n.jsx(ie, { children: y }),
2474
+ /* @__PURE__ */ n.jsx(Ae, { value: b, header: y })
2579
2475
  ] }, y)) }) })
2580
2476
  ] }),
2581
- /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
2582
- /* @__PURE__ */ n.jsxs(M, { children: [
2583
- /* @__PURE__ */ n.jsx(Rn, { size: 16 }),
2584
- /* @__PURE__ */ n.jsx(G, { className: "col-span-2", children: "Header Response" })
2477
+ /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
2478
+ /* @__PURE__ */ n.jsxs(U, { children: [
2479
+ /* @__PURE__ */ n.jsx(Cn, { size: 16 }),
2480
+ /* @__PURE__ */ n.jsx(M, { className: "col-span-2", children: "Header Response" })
2585
2481
  ] }),
2586
- /* @__PURE__ */ n.jsx(V, { children: /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-2 gap-x-6 text-sm", children: [
2587
- v.slice(0, Z).map(([y, b]) => /* @__PURE__ */ n.jsxs(Ae, { children: [
2588
- /* @__PURE__ */ n.jsx(le, { children: y }),
2589
- /* @__PURE__ */ n.jsx(Oe, { value: b, header: y })
2482
+ /* @__PURE__ */ n.jsx(z, { children: /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-2 gap-x-6 text-sm", children: [
2483
+ v.slice(0, X).map(([y, b]) => /* @__PURE__ */ n.jsxs(Te, { children: [
2484
+ /* @__PURE__ */ n.jsx(ie, { children: y }),
2485
+ /* @__PURE__ */ n.jsx(Ae, { value: b, header: y })
2590
2486
  ] }, y)),
2591
- v.length > Z && /* @__PURE__ */ n.jsxs(q, { className: "col-span-full grid-cols-subgrid grid group", children: [
2592
- /* @__PURE__ */ n.jsxs(Vt, { className: "data-[state=open]:hidden justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
2487
+ v.length > X && /* @__PURE__ */ n.jsxs(F, { className: "col-span-full grid-cols-subgrid grid group", children: [
2488
+ /* @__PURE__ */ n.jsxs(zt, { className: "data-[state=open]:hidden justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
2593
2489
  /* @__PURE__ */ n.jsxs("span", { children: [
2594
2490
  "Show ",
2595
- v.length - Z,
2491
+ v.length - X,
2596
2492
  " more headers"
2597
2493
  ] }),
2598
- /* @__PURE__ */ n.jsx(he, { size: 12, className: "text-muted-foreground" })
2494
+ /* @__PURE__ */ n.jsx(pe, { size: 12, className: "text-muted-foreground" })
2599
2495
  ] }),
2600
- /* @__PURE__ */ n.jsx(V, { className: "col-span-full grid grid-cols-subgrid", children: v.slice(Z).map(([y, b]) => /* @__PURE__ */ n.jsxs(Ae, { children: [
2601
- /* @__PURE__ */ n.jsx(le, { children: y }),
2602
- /* @__PURE__ */ n.jsx(Oe, { value: b, header: y })
2496
+ /* @__PURE__ */ n.jsx(z, { className: "col-span-full grid grid-cols-subgrid", children: v.slice(X).map(([y, b]) => /* @__PURE__ */ n.jsxs(Te, { children: [
2497
+ /* @__PURE__ */ n.jsx(ie, { children: y }),
2498
+ /* @__PURE__ */ n.jsx(Ae, { value: b, header: y })
2603
2499
  ] }, y)) })
2604
2500
  ] })
2605
2501
  ] }) })
2606
2502
  ] }),
2607
2503
  /* @__PURE__ */ n.jsx("div", { className: "flex gap-2 justify-between items-center border-b h-10", children: c && !r && /* @__PURE__ */ n.jsx("div", { className: "px-2", children: /* @__PURE__ */ n.jsxs(
2608
- wt,
2504
+ Ct,
2609
2505
  {
2610
2506
  value: d,
2611
2507
  onValueChange: (y) => h(y),
2612
2508
  children: [
2613
- /* @__PURE__ */ n.jsx(St, { className: "min-w-32 border-none h-8", children: /* @__PURE__ */ n.jsx(Tt, { placeholder: "View" }) }),
2614
- /* @__PURE__ */ n.jsxs(At, { children: [
2615
- /* @__PURE__ */ n.jsx(ce, { value: "formatted", children: "Formatted" }),
2616
- /* @__PURE__ */ n.jsx(ce, { value: "raw", children: "Raw" }),
2617
- /* @__PURE__ */ n.jsx(ce, { value: "types", children: "Types" })
2509
+ /* @__PURE__ */ n.jsx(wt, { className: "min-w-32 border-none h-8", children: /* @__PURE__ */ n.jsx(Nt, { placeholder: "View" }) }),
2510
+ /* @__PURE__ */ n.jsxs(St, { children: [
2511
+ /* @__PURE__ */ n.jsx(oe, { value: "formatted", children: "Formatted" }),
2512
+ /* @__PURE__ */ n.jsx(oe, { value: "raw", children: "Raw" }),
2513
+ /* @__PURE__ */ n.jsx(oe, { value: "types", children: "Types" })
2618
2514
  ] })
2619
2515
  ]
2620
2516
  }
@@ -2623,23 +2519,23 @@ const na = (e) => Object.entries({
2623
2519
  /* @__PURE__ */ n.jsx("div", { className: "text-lg font-semibold", children: "Binary Content" }),
2624
2520
  /* @__PURE__ */ n.jsx("div", { className: "text-sm text-muted-foreground", children: "This response contains binary data that cannot be displayed as text." }),
2625
2521
  /* @__PURE__ */ n.jsxs(
2626
- I,
2522
+ E,
2627
2523
  {
2628
2524
  onClick: m,
2629
2525
  className: "flex items-center gap-2",
2630
2526
  disabled: !i,
2631
2527
  children: [
2632
- /* @__PURE__ */ n.jsx(Ln, { className: "h-4 w-4" }),
2528
+ /* @__PURE__ */ n.jsx(wn, { className: "h-4 w-4" }),
2633
2529
  "Download ",
2634
2530
  o || "file",
2635
2531
  " (",
2636
- Zt(a),
2532
+ Gt(a),
2637
2533
  ")"
2638
2534
  ]
2639
2535
  }
2640
2536
  )
2641
2537
  ] }) }) : /* @__PURE__ */ n.jsx("div", { className: "overflow-auto max-w-full p-4 text-xs max-h-[calc(83.333vh-180px)]", children: /* @__PURE__ */ n.jsx(
2642
- Yt,
2538
+ Ht,
2643
2539
  {
2644
2540
  language: d === "types" ? "typescript" : d === "raw" ? c ? "plain" : l : "json",
2645
2541
  code: (d === "raw" ? e : d === "types" ? g.data?.lines.join(`
@@ -2647,7 +2543,7 @@ const na = (e) => Object.entries({
2647
2543
  }
2648
2544
  ) }) })
2649
2545
  ] });
2650
- }, ia = ({
2546
+ }, Yr = ({
2651
2547
  queryMutation: e,
2652
2548
  showLongRunningWarning: t,
2653
2549
  onCancel: s,
@@ -2656,7 +2552,7 @@ const na = (e) => Object.entries({
2656
2552
  progress: o
2657
2553
  }) => /* @__PURE__ */ n.jsxs("div", { className: "overflow-y-auto h-[80vh] bg-muted/50", children: [
2658
2554
  (e.isPending || e.data) && /* @__PURE__ */ n.jsx(
2659
- Kr,
2555
+ Mr,
2660
2556
  {
2661
2557
  status: e.data?.status,
2662
2558
  time: e.data?.time,
@@ -2665,12 +2561,12 @@ const na = (e) => Object.entries({
2665
2561
  progress: o
2666
2562
  }
2667
2563
  ),
2668
- e.error ? /* @__PURE__ */ n.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ n.jsxs(ls, { children: [
2669
- /* @__PURE__ */ n.jsx(In, { size: 24, strokeWidth: 1.5, className: "me-5" }),
2670
- /* @__PURE__ */ n.jsx(ds, { children: "Request failed" }),
2671
- /* @__PURE__ */ n.jsx(us, { children: e.error.message || String(e.error) || "Unexpected error" })
2564
+ e.error ? /* @__PURE__ */ n.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ n.jsxs(es, { children: [
2565
+ /* @__PURE__ */ n.jsx(Tn, { size: 24, strokeWidth: 1.5, className: "me-5" }),
2566
+ /* @__PURE__ */ n.jsx(ts, { children: "Request failed" }),
2567
+ /* @__PURE__ */ n.jsx(ns, { children: e.error.message || String(e.error) || "Unexpected error" })
2672
2568
  ] }) }) : e.data ? /* @__PURE__ */ n.jsx(
2673
- oa,
2569
+ Zr,
2674
2570
  {
2675
2571
  request: e.data.request,
2676
2572
  size: e.data.size,
@@ -2681,18 +2577,18 @@ const na = (e) => Object.entries({
2681
2577
  blob: e.data.blob
2682
2578
  }
2683
2579
  ) : e.isPending ? /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
2684
- /* @__PURE__ */ n.jsx(os, {}),
2580
+ /* @__PURE__ */ n.jsx(Zn, {}),
2685
2581
  /* @__PURE__ */ n.jsxs(
2686
2582
  "div",
2687
2583
  {
2688
- className: j(
2584
+ className: C(
2689
2585
  "opacity-0 pointer-events-none transition-opacity h-20 text-sm text-muted-foreground duration-300 flex flex-col gap-2 items-center",
2690
2586
  t && "opacity-100 pointer-events-auto"
2691
2587
  ),
2692
2588
  children: [
2693
2589
  "Looks like the request is taking longer than expected.",
2694
2590
  /* @__PURE__ */ n.jsx(
2695
- te,
2591
+ ce,
2696
2592
  {
2697
2593
  type: "button",
2698
2594
  onClick: s,
@@ -2707,7 +2603,7 @@ const na = (e) => Object.entries({
2707
2603
  )
2708
2604
  ] }) }) : /* @__PURE__ */ n.jsx("div", { className: "h-full grid place-items-center", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 items-center", children: [
2709
2605
  /* @__PURE__ */ n.jsx(
2710
- kn,
2606
+ An,
2711
2607
  {
2712
2608
  size: 64,
2713
2609
  className: "text-muted-foreground",
@@ -2717,7 +2613,7 @@ const na = (e) => Object.entries({
2717
2613
  /* @__PURE__ */ n.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send your first request" }),
2718
2614
  a
2719
2615
  ] }) })
2720
- ] }), ca = $e()(
2616
+ ] }), Kr = $e()(
2721
2617
  Ee(
2722
2618
  (e) => ({
2723
2619
  skipLogin: !1,
@@ -2725,10 +2621,10 @@ const na = (e) => Object.entries({
2725
2621
  }),
2726
2622
  {
2727
2623
  name: "remember-skip-login",
2728
- storage: yt(() => sessionStorage)
2624
+ storage: gt(() => sessionStorage)
2729
2625
  }
2730
2626
  )
2731
- ), ee = "__none", la = ({
2627
+ ), K = "__none", ea = ({
2732
2628
  server: e,
2733
2629
  servers: t = [],
2734
2630
  url: s,
@@ -2742,13 +2638,13 @@ const na = (e) => Object.entries({
2742
2638
  onLogin: d,
2743
2639
  onSignUp: h
2744
2640
  }) => {
2745
- const { selectedServer: g, setSelectedServer: m } = wr(
2641
+ const { selectedServer: g, setSelectedServer: m } = Cr(
2746
2642
  t.map((p) => ({ url: p }))
2747
- ), [v, y] = E(!1), b = Wn(), { setRememberedIdentity: O, getRememberedIdentity: f } = Qr(), [, C] = ts(), { skipLogin: $, setSkipLogin: S } = ca(), [D, P] = E(!1), Q = R(void 0), Me = xs(O), Ge = R(null), { label: rn } = Cr("meta+enter", () => {
2748
- Ge.current?.requestSubmit();
2749
- }), He = s.match(/\{([^}]+)\}/g)?.map((p) => p.slice(1, -1)) ?? [], Qe = [...i].sort(
2750
- (p, W) => He.indexOf(p.name) - He.indexOf(W.name)
2751
- ), { register: an, control: oe, handleSubmit: Je, watch: We, setValue: ye, ...ve } = ps({
2643
+ ), [v, y] = $(!1), b = Vn(), { setRememberedIdentity: T, getRememberedIdentity: f } = zr(), [, j] = Hn(), { skipLogin: L, setSkipLogin: N } = Kr(), [k, A] = $(!1), H = O(void 0), Ue = cs(T), Me = O(null), { label: Yt } = br("meta+enter", () => {
2644
+ Me.current?.requestSubmit();
2645
+ }), Ge = s.match(/\{([^}]+)\}/g)?.map((p) => p.slice(1, -1)) ?? [], He = [...i].sort(
2646
+ (p, J) => Ge.indexOf(p.name) - Ge.indexOf(J.name)
2647
+ ), { register: Kt, control: re, handleSubmit: Qe, watch: Je, setValue: xe, ...ye } = rs({
2752
2648
  defaultValues: {
2753
2649
  body: l,
2754
2650
  queryParams: o.length > 0 ? o.map((p) => ({
@@ -2764,7 +2660,7 @@ const na = (e) => Object.entries({
2764
2660
  enum: []
2765
2661
  }
2766
2662
  ],
2767
- pathParams: Qe.map((p) => ({
2663
+ pathParams: He.map((p) => ({
2768
2664
  name: p.name,
2769
2665
  value: p.defaultValue ?? ""
2770
2666
  })),
@@ -2780,133 +2676,133 @@ const na = (e) => Object.entries({
2780
2676
  }
2781
2677
  ],
2782
2678
  identity: f([
2783
- ee,
2679
+ K,
2784
2680
  ...b.data?.map((p) => p.id) ?? []
2785
2681
  ])
2786
2682
  }
2787
- }), J = We("identity"), on = bt(
2788
- () => b.data?.find((p) => p.id === J)?.authorizationFields,
2789
- [b.data, J]
2683
+ }), Q = Je("identity"), en = yt(
2684
+ () => b.data?.find((p) => p.id === Q)?.authorizationFields,
2685
+ [b.data, Q]
2790
2686
  );
2791
- z(() => {
2792
- J && Me.current(J);
2793
- }, [Me, J]);
2794
- const B = ms({
2687
+ I(() => {
2688
+ Q && Ue.current(Q);
2689
+ }, [Ue, Q]);
2690
+ const V = ss({
2795
2691
  gcTime: 0,
2796
2692
  mutationFn: async (p) => {
2797
- const W = performance.now(), gn = Object.fromEntries([
2798
- ...p.headers.filter((T) => T.name && T.active).map((T) => [T.name, T.value])
2799
- ]), _ = new Request(
2800
- mt(e ?? g, s, p),
2693
+ const J = performance.now(), dn = Object.fromEntries([
2694
+ ...p.headers.filter((S) => S.name && S.active).map((S) => [S.name, S.value])
2695
+ ]), B = new Request(
2696
+ ut(e ?? g, s, p),
2801
2697
  {
2802
2698
  method: a.toUpperCase(),
2803
- headers: gn,
2699
+ headers: dn,
2804
2700
  body: p.body ? p.body : void 0
2805
2701
  }
2806
2702
  );
2807
- p.identity !== ee && await b.data?.find((T) => T.id === p.identity)?.authorizeRequest(_);
2808
- const be = setTimeout(
2809
- () => P(!0),
2703
+ p.identity !== K && await b.data?.find((S) => S.id === p.identity)?.authorizeRequest(B);
2704
+ const ve = setTimeout(
2705
+ () => A(!0),
2810
2706
  3210
2811
2707
  );
2812
- Q.current = new AbortController(), Q.current.signal.addEventListener("abort", () => {
2813
- clearTimeout(be);
2708
+ H.current = new AbortController(), H.current.signal.addEventListener("abort", () => {
2709
+ clearTimeout(ve);
2814
2710
  });
2815
2711
  try {
2816
- const T = await fetch(_, {
2712
+ const S = await fetch(B, {
2817
2713
  cache: "no-store",
2818
- signal: Q.current.signal
2714
+ signal: H.current.signal
2819
2715
  });
2820
- clearTimeout(be), P(!1);
2821
- const xn = performance.now() - W, yn = new URL(_.url), Ye = Array.from(T.headers.entries()), Ke = T.headers.get("content-type") || "", et = Ir(Ke);
2822
- let ie = "", tt, nt;
2823
- et ? (tt = await T.blob(), nt = kr(Ye, _.url), ie = `Binary content (${Ke})`) : ie = await T.text();
2824
- const st = T.headers.get("content-length");
2716
+ clearTimeout(ve), A(!1);
2717
+ const un = performance.now() - J, mn = new URL(B.url), Ze = Array.from(S.headers.entries()), Ye = S.headers.get("content-type") || "", Ke = Sr(Ye);
2718
+ let ae = "", et, tt;
2719
+ Ke ? (et = await S.blob(), tt = Tr(Ze, B.url), ae = `Binary content (${Ye})`) : ae = await S.text();
2720
+ const nt = S.headers.get("content-length");
2825
2721
  return {
2826
- status: T.status,
2827
- headers: Ye,
2828
- size: st ? parseInt(st) : ie.length,
2829
- body: ie,
2830
- time: xn,
2831
- isBinary: et,
2832
- fileName: nt,
2833
- blob: tt,
2722
+ status: S.status,
2723
+ headers: Ze,
2724
+ size: nt ? Number(nt) : ae.length,
2725
+ body: ae,
2726
+ time: un,
2727
+ isBinary: Ke,
2728
+ fileName: tt,
2729
+ blob: et,
2834
2730
  request: {
2835
- method: _.method.toUpperCase(),
2836
- url: _.url,
2731
+ method: B.method.toUpperCase(),
2732
+ url: B.url,
2837
2733
  headers: [
2838
- ["Host", yn.host],
2734
+ ["Host", mn.host],
2839
2735
  ["User-Agent", "Zudoku Playground"],
2840
- ...Array.from(_.headers.entries())
2736
+ ...Array.from(B.headers.entries())
2841
2737
  ],
2842
2738
  body: p.body ? p.body : void 0
2843
2739
  }
2844
2740
  };
2845
- } catch (T) {
2846
- throw clearTimeout(be), P(!1), T instanceof TypeError ? new Error(
2741
+ } catch (S) {
2742
+ throw clearTimeout(ve), A(!1), S instanceof TypeError ? new Error(
2847
2743
  "The request failed, possibly due to network issues or CORS policy."
2848
- ) : T;
2744
+ ) : S;
2849
2745
  }
2850
2746
  }
2851
- }), Xe = B.isPending, [cn, ln] = E(!1);
2852
- z(() => {
2853
- const p = setTimeout(() => ln(Xe), 100);
2747
+ }), We = V.isPending, [tn, nn] = $(!1);
2748
+ I(() => {
2749
+ const p = setTimeout(() => nn(We), 100);
2854
2750
  return () => clearTimeout(p);
2855
- }, [Xe]);
2856
- const { isFinished: dn, progress: un } = is({ isAnimating: cn });
2857
- z(() => () => {
2858
- Q.current?.abort();
2751
+ }, [We]);
2752
+ const { isFinished: sn, progress: rn } = Yn({ isAnimating: tn });
2753
+ I(() => () => {
2754
+ H.current?.abort();
2859
2755
  }, []);
2860
- const mn = /* @__PURE__ */ n.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: e ? /* @__PURE__ */ n.jsx("span", { children: e.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : t.length > 1 && /* @__PURE__ */ n.jsxs(
2861
- wt,
2756
+ const an = /* @__PURE__ */ n.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: e ? /* @__PURE__ */ n.jsx("span", { children: e.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : t.length > 1 && /* @__PURE__ */ n.jsxs(
2757
+ Ct,
2862
2758
  {
2863
2759
  onValueChange: (p) => {
2864
- C(() => m(p));
2760
+ j(() => m(p));
2865
2761
  },
2866
2762
  value: g,
2867
2763
  defaultValue: g,
2868
2764
  children: [
2869
- /* @__PURE__ */ n.jsx(St, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ n.jsx(Tt, {}) }),
2870
- /* @__PURE__ */ n.jsx(At, { children: t.map((p) => /* @__PURE__ */ n.jsx(ce, { value: p, children: p.replace(/^https?:\/\//, "").replace(/\/$/, "") }, p)) })
2765
+ /* @__PURE__ */ n.jsx(wt, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ n.jsx(Nt, {}) }),
2766
+ /* @__PURE__ */ n.jsx(St, { children: t.map((p) => /* @__PURE__ */ n.jsx(oe, { value: p, children: p.replace(/^https?:\/\//, "").replace(/\/$/, "") }, p)) })
2871
2767
  ]
2872
2768
  }
2873
- ) }), pn = u && !$, hn = ["POST", "PUT", "PATCH", "DELETE"].includes(
2769
+ ) }), on = u && !L, cn = ["POST", "PUT", "PATCH", "DELETE"].includes(
2874
2770
  a.toUpperCase()
2875
- ), [Ze, fn] = gs();
2771
+ ), [Xe, ln] = is();
2876
2772
  return /* @__PURE__ */ n.jsx(
2877
- hs,
2773
+ as,
2878
2774
  {
2879
- register: an,
2880
- control: oe,
2881
- handleSubmit: Je,
2882
- watch: We,
2883
- setValue: ye,
2884
- ...ve,
2885
- children: /* @__PURE__ */ n.jsx(fs, { delayDuration: 150, children: /* @__PURE__ */ n.jsxs(
2775
+ register: Kt,
2776
+ control: re,
2777
+ handleSubmit: Qe,
2778
+ watch: Je,
2779
+ setValue: xe,
2780
+ ...ye,
2781
+ children: /* @__PURE__ */ n.jsx(os, { delayDuration: 150, children: /* @__PURE__ */ n.jsxs(
2886
2782
  "form",
2887
2783
  {
2888
- ref: Ge,
2889
- onSubmit: Je((p) => {
2890
- b.data?.length === 0 || p.identity ? B.mutate(p) : y(!0);
2784
+ ref: Me,
2785
+ onSubmit: Qe((p) => {
2786
+ b.data?.length === 0 || p.identity ? V.mutate(p) : y(!0);
2891
2787
  }),
2892
2788
  className: "relative",
2893
2789
  children: [
2894
2790
  /* @__PURE__ */ n.jsx(
2895
- Br,
2791
+ Er,
2896
2792
  {
2897
2793
  identities: b.data ?? [],
2898
2794
  open: v,
2899
2795
  onOpenChange: y,
2900
- onSubmit: ({ rememberedIdentity: p, identity: W }) => {
2901
- p && ye("identity", W ?? ee), y(!1), B.mutate({ ...ve.getValues(), identity: W });
2796
+ onSubmit: ({ rememberedIdentity: p, identity: J }) => {
2797
+ p && xe("identity", J ?? K), y(!1), V.mutate({ ...ye.getValues(), identity: J });
2902
2798
  }
2903
2799
  }
2904
2800
  ),
2905
2801
  /* @__PURE__ */ n.jsx(
2906
- Hr,
2802
+ Fr,
2907
2803
  {
2908
- open: pn,
2909
- setOpen: (p) => S(!p),
2804
+ open: on,
2805
+ setOpen: (p) => N(!p),
2910
2806
  onSignUp: h,
2911
2807
  onLogin: d
2912
2808
  }
@@ -2916,100 +2812,100 @@ const na = (e) => Object.entries({
2916
2812
  /* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md relative overflow-hidden", children: [
2917
2813
  /* @__PURE__ */ n.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
2918
2814
  /* @__PURE__ */ n.jsx("div", { className: "items-center px-2 font-mono text-xs break-all leading-6 relative h-full w-full", children: /* @__PURE__ */ n.jsxs("div", { className: "h-full py-1.5", children: [
2919
- mn,
2920
- /* @__PURE__ */ n.jsx(Wr, { url: s }),
2921
- /* @__PURE__ */ n.jsx(Xr, {})
2815
+ an,
2816
+ /* @__PURE__ */ n.jsx(Vr, { url: s }),
2817
+ /* @__PURE__ */ n.jsx(Br, {})
2922
2818
  ] }) }),
2923
2819
  /* @__PURE__ */ n.jsx("div", { className: "px-1", children: /* @__PURE__ */ n.jsx(
2924
- I,
2820
+ E,
2925
2821
  {
2926
2822
  type: "button",
2927
2823
  onClick: () => {
2928
- fn(
2929
- mt(
2824
+ ln(
2825
+ ut(
2930
2826
  e ?? g,
2931
2827
  s,
2932
- ve.getValues()
2828
+ ye.getValues()
2933
2829
  ).toString()
2934
2830
  );
2935
2831
  },
2936
2832
  variant: "ghost",
2937
2833
  size: "icon-xs",
2938
- className: j(
2834
+ className: C(
2939
2835
  "hover:opacity-100 transition",
2940
- Ze ? "text-emerald-600 opacity-100" : "opacity-50"
2836
+ Xe ? "text-emerald-600 opacity-100" : "opacity-50"
2941
2837
  ),
2942
- children: Ze ? /* @__PURE__ */ n.jsx(gt, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ n.jsx(Dn, { size: 14 })
2838
+ children: Xe ? /* @__PURE__ */ n.jsx(On, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ n.jsx(Pn, { size: 14 })
2943
2839
  }
2944
2840
  ) })
2945
2841
  ] }),
2946
2842
  /* @__PURE__ */ n.jsx(
2947
- I,
2843
+ E,
2948
2844
  {
2949
2845
  type: "submit",
2950
- variant: B.isPending ? "destructive" : "default",
2846
+ variant: V.isPending ? "destructive" : "default",
2951
2847
  onClick: (p) => {
2952
- B.isPending && (Q.current?.abort(
2848
+ V.isPending && (H.current?.abort(
2953
2849
  "Request cancelled by user"
2954
2850
  ), p.preventDefault());
2955
2851
  },
2956
2852
  className: "w-18",
2957
- children: B.isPending ? "Cancel" : "Send"
2853
+ children: V.isPending ? "Cancel" : "Send"
2958
2854
  }
2959
2855
  )
2960
2856
  ] }),
2961
2857
  /* @__PURE__ */ n.jsxs("div", { className: "relative overflow-y-auto h-[80vh]", children: [
2962
- b.data?.length !== 0 && /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
2963
- /* @__PURE__ */ n.jsxs(M, { children: [
2964
- /* @__PURE__ */ n.jsx(zn, { size: 16 }),
2965
- /* @__PURE__ */ n.jsx(G, { className: "col-span-2", children: "Authentication" })
2858
+ b.data?.length !== 0 && /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
2859
+ /* @__PURE__ */ n.jsxs(U, { children: [
2860
+ /* @__PURE__ */ n.jsx(Ln, { size: 16 }),
2861
+ /* @__PURE__ */ n.jsx(M, { className: "col-span-2", children: "Authentication" })
2966
2862
  ] }),
2967
- /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(
2968
- Wt,
2863
+ /* @__PURE__ */ n.jsx(z, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(
2864
+ Ut,
2969
2865
  {
2970
- value: J,
2866
+ value: Q,
2971
2867
  identities: b.data ?? [],
2972
- setValue: (p) => ye("identity", p)
2868
+ setValue: (p) => xe("identity", p)
2973
2869
  }
2974
2870
  ) })
2975
2871
  ] }),
2976
- Qe.length > 0 && /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
2977
- /* @__PURE__ */ n.jsxs(M, { children: [
2978
- /* @__PURE__ */ n.jsx(Fn, { size: 16 }),
2979
- /* @__PURE__ */ n.jsx(G, { className: "col-span-2", children: "Path Parameters" })
2872
+ He.length > 0 && /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
2873
+ /* @__PURE__ */ n.jsxs(U, { children: [
2874
+ /* @__PURE__ */ n.jsx($n, { size: 16 }),
2875
+ /* @__PURE__ */ n.jsx(M, { className: "col-span-2", children: "Path Parameters" })
2980
2876
  ] }),
2981
- /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(Ur, { url: s, control: oe }) })
2877
+ /* @__PURE__ */ n.jsx(z, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(kr, { url: s, control: re }) })
2982
2878
  ] }),
2983
- /* @__PURE__ */ n.jsx(Gr, { control: oe, schemaQueryParams: o }),
2879
+ /* @__PURE__ */ n.jsx(Dr, { control: re, schemaQueryParams: o }),
2984
2880
  /* @__PURE__ */ n.jsx(
2985
- qr,
2881
+ Lr,
2986
2882
  {
2987
- control: oe,
2883
+ control: re,
2988
2884
  schemaHeaders: r,
2989
- lockedHeaders: on?.headers
2885
+ lockedHeaders: en?.headers
2990
2886
  }
2991
2887
  ),
2992
- hn && /* @__PURE__ */ n.jsx(Er, { content: c })
2888
+ cn && /* @__PURE__ */ n.jsx(Nr, { content: c })
2993
2889
  ] }),
2994
2890
  /* @__PURE__ */ n.jsx("div", { className: "w-full bg-muted-foreground/20" }),
2995
2891
  /* @__PURE__ */ n.jsx(
2996
- ia,
2892
+ Yr,
2997
2893
  {
2998
- queryMutation: B,
2999
- showLongRunningWarning: D,
3000
- isFinished: dn,
3001
- progress: un,
2894
+ queryMutation: V,
2895
+ showLongRunningWarning: k,
2896
+ isFinished: sn,
2897
+ progress: rn,
3002
2898
  tip: /* @__PURE__ */ n.jsx("div", { className: "text-xs w-full", children: /* @__PURE__ */ n.jsxs("span", { className: "text-muted-foreground", children: [
3003
2899
  "Press",
3004
2900
  " ",
3005
- /* @__PURE__ */ n.jsx("kbd", { className: "text-foreground border rounded m-0.5 px-1 py-0.5 capitalize", children: rn.join(" + ") }),
2901
+ /* @__PURE__ */ n.jsx("kbd", { className: "text-foreground border rounded m-0.5 px-1 py-0.5 capitalize", children: Yt.join(" + ") }),
3006
2902
  " ",
3007
2903
  "to send a request"
3008
2904
  ] }) }),
3009
2905
  onCancel: () => {
3010
- Q.current?.abort(
2906
+ H.current?.abort(
3011
2907
  "Request cancelled by the user"
3012
- ), P(!1);
2908
+ ), A(!1);
3013
2909
  }
3014
2910
  }
3015
2911
  )
@@ -3019,7 +2915,7 @@ const na = (e) => Object.entries({
3019
2915
  ) })
3020
2916
  }
3021
2917
  );
3022
- }, da = ({
2918
+ }, ta = ({
3023
2919
  className: e,
3024
2920
  size: t = 16
3025
2921
  }) => /* @__PURE__ */ n.jsx(
@@ -3040,30 +2936,30 @@ const na = (e) => Object.entries({
3040
2936
  }
3041
2937
  )
3042
2938
  }
3043
- ), ua = (e) => {
3044
- const [t, s] = E(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: l } = rs();
3045
- return /* @__PURE__ */ n.jsxs(Ie, { onOpenChange: (c) => s(c), children: [
3046
- /* @__PURE__ */ n.jsx(as, { asChild: !0, children: e.children ?? /* @__PURE__ */ n.jsxs(
2939
+ ), na = (e) => {
2940
+ const [t, s] = $(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: l } = Wn();
2941
+ return /* @__PURE__ */ n.jsxs(Re, { onOpenChange: (c) => s(c), children: [
2942
+ /* @__PURE__ */ n.jsx(Xn, { asChild: !0, children: e.children ?? /* @__PURE__ */ n.jsxs(
3047
2943
  "button",
3048
2944
  {
3049
2945
  type: "button",
3050
2946
  className: "flex gap-1 items-center px-2 py-1 rounded-md transition text-xs bg-primary text-primary-foreground shadow-xs hover:bg-primary/80",
3051
2947
  children: [
3052
2948
  "Test",
3053
- /* @__PURE__ */ n.jsx(da, { size: 14 })
2949
+ /* @__PURE__ */ n.jsx(ta, { size: 14 })
3054
2950
  ]
3055
2951
  }
3056
2952
  ) }),
3057
2953
  /* @__PURE__ */ n.jsxs(
3058
2954
  ke,
3059
2955
  {
3060
- className: "max-w-screen-xl w-full overflow-hidden p-0",
2956
+ className: "max-w-screen-xl! w-full overflow-hidden p-0",
3061
2957
  "aria-describedby": void 0,
3062
2958
  showCloseButton: !0,
3063
2959
  children: [
3064
- /* @__PURE__ */ n.jsx(ss, { children: /* @__PURE__ */ n.jsx(De, { children: "Playground" }) }),
2960
+ /* @__PURE__ */ n.jsx(Jn, { children: /* @__PURE__ */ n.jsx(Ie, { children: "Playground" }) }),
3065
2961
  t && /* @__PURE__ */ n.jsx(
3066
- la,
2962
+ ea,
3067
2963
  {
3068
2964
  requiresLogin: a && !l && !i,
3069
2965
  onLogin: () => r(),
@@ -3075,7 +2971,7 @@ const na = (e) => Object.entries({
3075
2971
  }
3076
2972
  )
3077
2973
  ] });
3078
- }, ma = {
2974
+ }, sa = {
3079
2975
  get: "green",
3080
2976
  post: "blue",
3081
2977
  put: "yellow",
@@ -3083,7 +2979,7 @@ const na = (e) => Object.entries({
3083
2979
  patch: "purple",
3084
2980
  options: "gray",
3085
2981
  head: "gray"
3086
- }, ht = ({
2982
+ }, pt = ({
3087
2983
  label: e,
3088
2984
  path: t,
3089
2985
  operations: s,
@@ -3107,21 +3003,21 @@ const na = (e) => Object.entries({
3107
3003
  badge: {
3108
3004
  label: o.method,
3109
3005
  // biome-ignore lint/style/noNonNullAssertion: is guaranteed to be defined
3110
- color: ma[o.method.toLowerCase()],
3006
+ color: sa[o.method.toLowerCase()],
3111
3007
  invert: !0
3112
3008
  }
3113
3009
  }))
3114
- }), Kt = vt(
3010
+ }), Qt = xt(
3115
3011
  void 0
3116
- ), Wa = Kt.Provider, pa = () => {
3117
- const e = ns(Kt);
3012
+ ), Va = Qt.Provider, ra = () => {
3013
+ const e = Qn(Qt);
3118
3014
  if (!e)
3119
3015
  throw new Error("useOasConfig must be used within a OasConfigProvider");
3120
3016
  return e.config;
3121
- }, ft = (e) => ({
3017
+ }, ht = (e) => ({
3122
3018
  path: e.routePath,
3123
3019
  async lazy() {
3124
- const { OasProvider: t } = await import("./OasProvider-B6Co-6Vj.js");
3020
+ const { OasProvider: t } = await import("./OasProvider-0xiB5cKH.js");
3125
3021
  return {
3126
3022
  element: /* @__PURE__ */ n.jsx(
3127
3023
  t,
@@ -3135,39 +3031,39 @@ const na = (e) => Object.entries({
3135
3031
  };
3136
3032
  },
3137
3033
  children: e.routes
3138
- }), en = ({
3034
+ }), Jt = ({
3139
3035
  path: e,
3140
3036
  tag: t,
3141
3037
  untagged: s
3142
3038
  }) => ({
3143
3039
  path: e,
3144
3040
  async lazy() {
3145
- const { OperationList: a } = await import("./OperationList-uu04Ezta.js");
3041
+ const { OperationList: a } = await import("./OperationList-BzWKTkNq.js");
3146
3042
  return { element: /* @__PURE__ */ n.jsx(a, { tag: t, untagged: s }) };
3147
3043
  }
3148
- }), ha = ({
3044
+ }), aa = ({
3149
3045
  render: e,
3150
3046
  path: t
3151
3047
  }) => {
3152
- const { type: s, input: a } = pa(), { tag: r } = _n(), o = Un(), i = lr(sn, { type: s, input: a }), {
3048
+ const { type: s, input: a } = ra(), { tag: r } = kn(), o = In(), i = ir(Zt, { type: s, input: a }), {
3153
3049
  data: { schema: l }
3154
- } = Xn(i), c = l.tags.at(0);
3050
+ } = Bn(i), c = l.tags.at(0);
3155
3051
  return !r && c?.slug ? /* @__PURE__ */ n.jsx(
3156
- Mn,
3052
+ Dn,
3157
3053
  {
3158
3054
  to: {
3159
- pathname: Gn(t, { tag: c.slug }),
3055
+ pathname: Fn(t, { tag: c.slug }),
3160
3056
  search: o.search
3161
3057
  }
3162
3058
  }
3163
3059
  ) : r && l.tags.some((u) => u.slug === r) ? e(r) : null;
3164
- }, fa = ({ path: e }) => ({
3060
+ }, oa = ({ path: e }) => ({
3165
3061
  path: e,
3166
3062
  async lazy() {
3167
- const { OperationList: t } = await import("./OperationList-uu04Ezta.js");
3063
+ const { OperationList: t } = await import("./OperationList-BzWKTkNq.js");
3168
3064
  return {
3169
3065
  element: /* @__PURE__ */ n.jsx(
3170
- ha,
3066
+ aa,
3171
3067
  {
3172
3068
  path: e,
3173
3069
  render: (s) => /* @__PURE__ */ n.jsx(t, { tag: s })
@@ -3175,35 +3071,35 @@ const na = (e) => Object.entries({
3175
3071
  )
3176
3072
  };
3177
3073
  }
3178
- }), tn = (e) => [
3074
+ }), Wt = (e) => [
3179
3075
  // Category without tagged operations
3180
- en({
3181
- path: k(e, Ue),
3076
+ Jt({
3077
+ path: R(e, _e),
3182
3078
  untagged: !0
3183
3079
  }),
3184
3080
  // Schema list route
3185
3081
  {
3186
- path: k(e, "~schemas"),
3082
+ path: R(e, "~schemas"),
3187
3083
  lazy: async () => {
3188
- const { SchemaList: t } = await import("./SchemaList-BExl5RED.js");
3084
+ const { SchemaList: t } = await import("./SchemaList-Dea2Skqv.js");
3189
3085
  return { element: /* @__PURE__ */ n.jsx(t, {}) };
3190
3086
  }
3191
3087
  }
3192
- ], ga = (e, t) => {
3193
- const s = k(e, t.at(0) ?? Ue);
3088
+ ], ia = (e, t) => {
3089
+ const s = R(e, t.at(0) ?? _e);
3194
3090
  return [
3195
3091
  // Redirect to first tag on the index route
3196
- { index: !0, loader: () => Bn(s) },
3092
+ { index: !0, loader: () => Rn(s) },
3197
3093
  // Create routes for each tag
3198
3094
  ...t.map(
3199
- (a) => en({
3200
- path: k(e, a),
3095
+ (a) => Jt({
3096
+ path: R(e, a),
3201
3097
  tag: a
3202
3098
  })
3203
3099
  ),
3204
- ...tn(e)
3100
+ ...Wt(e)
3205
3101
  ];
3206
- }, nn = (e) => e.type === "file" ? Object.keys(e.input) : [], xa = ({
3102
+ }, Xt = (e) => e.type === "file" ? Object.keys(e.input) : [], ca = ({
3207
3103
  basePath: e,
3208
3104
  config: t,
3209
3105
  client: s
@@ -3211,30 +3107,30 @@ const na = (e) => Object.entries({
3211
3107
  const a = t.tagPages;
3212
3108
  if (!a)
3213
3109
  return [
3214
- ft({
3110
+ ht({
3215
3111
  basePath: e,
3216
3112
  routePath: e,
3217
3113
  routes: [
3218
- fa({ path: `${e}/:tag?` }),
3219
- ...tn(e)
3114
+ oa({ path: `${e}/:tag?` }),
3115
+ ...Wt(e)
3220
3116
  ],
3221
3117
  client: s,
3222
3118
  config: t
3223
3119
  })
3224
3120
  ];
3225
- const r = nn(t);
3121
+ const r = Xt(t);
3226
3122
  return (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
3227
- const l = k(e, i);
3228
- return ft({
3123
+ const l = R(e, i);
3124
+ return ht({
3229
3125
  basePath: e,
3230
3126
  version: i,
3231
3127
  routePath: l,
3232
- routes: ga(l, a),
3128
+ routes: ia(l, a),
3233
3129
  client: s,
3234
3130
  config: t
3235
3131
  });
3236
3132
  });
3237
- }, sn = yr(`
3133
+ }, Zt = gr(`
3238
3134
  query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
3239
3135
  schema(input: $input, type: $type) {
3240
3136
  extensions
@@ -3257,8 +3153,8 @@ const na = (e) => Object.entries({
3257
3153
  }
3258
3154
  }
3259
3155
  }
3260
- `), Ue = "~endpoints", Xa = (e) => {
3261
- const t = k(e.path), s = new Rs(e);
3156
+ `), _e = "~endpoints", Ba = (e) => {
3157
+ const t = R(e.path), s = new Os(e);
3262
3158
  return {
3263
3159
  getHead: () => {
3264
3160
  if (e.type === "url" && !e.skipPreload)
@@ -3276,82 +3172,69 @@ const na = (e) => Object.entries({
3276
3172
  },
3277
3173
  getMdxComponents: () => ({
3278
3174
  OpenPlaygroundButton: ({
3279
- requireAuth: a,
3280
- server: r,
3281
- method: o,
3282
- url: i,
3283
- children: l,
3284
- ...c
3175
+ server: a,
3176
+ method: r = "get",
3177
+ url: o = "/",
3178
+ children: i,
3179
+ ...l
3285
3180
  }) => {
3286
- const u = Hn();
3287
- if (!r)
3181
+ if (!a)
3288
3182
  throw new Error("Server is required");
3289
- return a && !u.isAuthenticated ? /* @__PURE__ */ n.jsxs(
3290
- te,
3291
- {
3292
- className: "gap-2 items-center",
3293
- variant: "outline",
3294
- onClick: u.login,
3295
- children: [
3296
- "Login to open in Playground ",
3297
- /* @__PURE__ */ n.jsx(qn, { size: 16 })
3298
- ]
3299
- }
3300
- ) : /* @__PURE__ */ n.jsx(
3301
- ua,
3183
+ return /* @__PURE__ */ n.jsx(
3184
+ na,
3302
3185
  {
3303
- url: i ?? "/",
3304
- method: o ?? "get",
3305
- server: r,
3306
- ...c,
3307
- children: /* @__PURE__ */ n.jsx(te, { className: "gap-2 items-center", variant: "outline", children: l ?? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3308
- "Open in Playground ",
3309
- /* @__PURE__ */ n.jsx(Vn, { size: 16 })
3186
+ url: o,
3187
+ method: r,
3188
+ server: a,
3189
+ ...l,
3190
+ children: /* @__PURE__ */ n.jsx(ce, { className: "gap-2 items-center", variant: "outline", children: i ?? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3191
+ "Open in Playground",
3192
+ /* @__PURE__ */ n.jsx(En, { size: 16 })
3310
3193
  ] }) })
3311
3194
  }
3312
3195
  );
3313
3196
  }
3314
3197
  }),
3315
3198
  getNavigation: async (a, r) => {
3316
- if (!rt({ path: t, end: !1 }, a))
3199
+ if (!st({ path: t, end: !1 }, a))
3317
3200
  return [];
3318
- const o = rt(
3201
+ const o = st(
3319
3202
  { path: `${t}/:version?/:tag`, end: !0 },
3320
3203
  a
3321
3204
  );
3322
3205
  try {
3323
- const i = o?.params.version, l = i ?? nn(e).at(0), { type: c } = e, u = c === "file" ? e.input[l] : e.input, d = qt(s, sn, {
3206
+ const i = o?.params.version, l = i ?? Xt(e).at(0), { type: c } = e, u = c === "file" ? e.input[l] : e.input, d = Ft(s, Zt, {
3324
3207
  type: c,
3325
3208
  input: u
3326
3209
  }), h = await r.queryClient.ensureQueryData(d), g = new Map(
3327
3210
  h.schema.tags.filter((f) => f.name && f.operations.length > 0).map((f) => {
3328
3211
  if (!f.name)
3329
3212
  throw new Error(`Tag ${f.slug} has no name`);
3330
- const C = k(t, i, f.slug), $ = f.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, S = f.extensions?.["x-zudoku-collapsible"] ?? !0;
3213
+ const j = R(t, i, f.slug), L = f.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, N = f.extensions?.["x-zudoku-collapsible"] ?? !0;
3331
3214
  return [
3332
3215
  f.name,
3333
- ht({
3216
+ pt({
3334
3217
  label: f.extensions?.["x-displayName"] ?? f.name,
3335
- path: C,
3218
+ path: j,
3336
3219
  operations: f.operations,
3337
- collapsed: $,
3338
- collapsible: S
3220
+ collapsed: L,
3221
+ collapsible: N
3339
3222
  })
3340
3223
  ];
3341
3224
  })
3342
3225
  ), m = h.schema.extensions?.["x-tagGroups"] ?? [], v = new Set(
3343
3226
  m.flatMap(
3344
- (f) => f.tags.filter((C) => g.has(C))
3227
+ (f) => f.tags.filter((j) => g.has(j))
3345
3228
  )
3346
3229
  ), b = [
3347
3230
  ...m.flatMap(
3348
3231
  (f) => {
3349
- const C = f.tags.map(($) => g.get($)).filter(Boolean);
3350
- return C.length === 0 ? [] : [
3232
+ const j = f.tags.map((L) => g.get(L)).filter(Boolean);
3233
+ return j.length === 0 ? [] : [
3351
3234
  {
3352
3235
  type: "category",
3353
3236
  label: f.name,
3354
- items: C,
3237
+ items: j,
3355
3238
  collapsible: !0,
3356
3239
  collapsed: !e.options?.expandAllTags
3357
3240
  }
@@ -3359,63 +3242,63 @@ const na = (e) => Object.entries({
3359
3242
  }
3360
3243
  ),
3361
3244
  ...Array.from(g.entries()).filter(([f]) => !v.has(f)).map(([, f]) => f)
3362
- ], O = h.schema.tags.find(
3245
+ ], T = h.schema.tags.find(
3363
3246
  (f) => !f.name
3364
3247
  )?.operations;
3365
- return O && b.push(
3366
- ht({
3248
+ return T && T.length > 0 && b.push(
3249
+ pt({
3367
3250
  label: b.length === 0 ? "Endpoints" : "Other endpoints",
3368
- path: k(t, i, Ue),
3369
- operations: O,
3251
+ path: R(t, i, _e),
3252
+ operations: T,
3370
3253
  collapsed: !e.options?.expandAllTags
3371
3254
  })
3372
3255
  ), h.schema.components?.schemas?.length && b.push({
3373
3256
  type: "link",
3374
3257
  label: "Schemas",
3375
- to: k(t, i, "~schemas")
3258
+ to: R(t, i, "~schemas")
3376
3259
  }), b;
3377
3260
  } catch {
3378
3261
  return [];
3379
3262
  }
3380
3263
  },
3381
- getRoutes: () => xa({ basePath: t, config: e, client: s })
3264
+ getRoutes: () => ca({ basePath: t, config: e, client: s })
3382
3265
  };
3383
3266
  };
3384
3267
  export {
3385
- q as C,
3386
- Ja as G,
3387
- _s as L,
3388
- Wa as O,
3389
- ua as P,
3390
- Ds as Q,
3391
- zt as S,
3268
+ F as C,
3269
+ qa as G,
3270
+ Vs as L,
3271
+ Va as O,
3272
+ na as P,
3273
+ ks as Q,
3274
+ It as S,
3392
3275
  x as T,
3393
- Ue as U,
3394
- lr as a,
3395
- Vt as b,
3396
- V as c,
3397
- nn as d,
3398
- wr as e,
3399
- Xt as f,
3400
- yr as g,
3401
- Jr as h,
3402
- ir as i,
3403
- dt as j,
3404
- Ha as k,
3405
- Us as l,
3406
- qe as m,
3407
- Dt as n,
3408
- Ls as o,
3409
- or as p,
3410
- Ce as q,
3411
- $s as r,
3412
- L as s,
3413
- Qa as t,
3414
- pa as u,
3415
- Bs as v,
3416
- Fs as w,
3417
- $t as x,
3418
- sn as y,
3419
- Xa as z
3276
+ _e as U,
3277
+ ir as a,
3278
+ zt as b,
3279
+ z as c,
3280
+ Xt as d,
3281
+ Cr as e,
3282
+ Mt as f,
3283
+ gr as g,
3284
+ qr as h,
3285
+ ar as i,
3286
+ lt as j,
3287
+ Fa as k,
3288
+ Bs as l,
3289
+ ze as m,
3290
+ kt as n,
3291
+ Ps as o,
3292
+ rr as p,
3293
+ je as q,
3294
+ Ls as r,
3295
+ P as s,
3296
+ za as t,
3297
+ ra as u,
3298
+ qs as v,
3299
+ Ds as w,
3300
+ Lt as x,
3301
+ Zt as y,
3302
+ Ba as z
3420
3303
  };
3421
- //# sourceMappingURL=index-BRQDtecD.js.map
3304
+ //# sourceMappingURL=index-PdgTSEkk.js.map