zudoku 0.42.0 → 0.42.2

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 (552) hide show
  1. package/dist/app/main.js +0 -6
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/config/validators/common.d.ts +288 -420
  4. package/dist/config/validators/common.js +0 -10
  5. package/dist/config/validators/common.js.map +1 -1
  6. package/dist/config/validators/validate.d.ts +108 -161
  7. package/dist/index.d.ts +0 -1
  8. package/dist/index.js +0 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  11. package/dist/lib/authentication/components/SignIn.js +5 -2
  12. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  13. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  14. package/dist/lib/authentication/components/SignUp.js +4 -1
  15. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  16. package/dist/lib/components/Markdown.d.ts +1 -3
  17. package/dist/lib/components/Markdown.js +14 -8
  18. package/dist/lib/components/Markdown.js.map +1 -1
  19. package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
  20. package/dist/lib/components/index.d.ts +1 -2
  21. package/dist/lib/core/ZudokuContext.d.ts +0 -7
  22. package/dist/lib/core/ZudokuContext.js.map +1 -1
  23. package/dist/lib/errors/ErrorAlert.js +1 -1
  24. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  25. package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
  26. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  27. package/dist/lib/plugins/openapi/ParameterListItem.js +8 -1
  28. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  29. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  30. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  31. package/dist/lib/plugins/openapi/SidecarExamples.js +1 -1
  32. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  33. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +5 -3
  34. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  35. package/dist/lib/plugins/openapi/schema/SchemaView.js +1 -1
  36. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  37. package/dist/lib/plugins/openapi/schema/utils.d.ts +1 -0
  38. package/dist/lib/plugins/openapi/schema/utils.js +3 -0
  39. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  40. package/dist/lib/ui/Callout.js +1 -1
  41. package/dist/lib/ui/Callout.js.map +1 -1
  42. package/dist/lib/ui/SyntaxHighlight.d.ts +15 -10
  43. package/dist/lib/ui/SyntaxHighlight.js +60 -10
  44. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  45. package/dist/lib/util/MdxComponents.d.ts +3 -9
  46. package/dist/lib/util/MdxComponents.js +10 -9
  47. package/dist/lib/util/MdxComponents.js.map +1 -1
  48. package/dist/vite/config.js +0 -34
  49. package/dist/vite/config.js.map +1 -1
  50. package/dist/vite/plugin-mdx.js +11 -4
  51. package/dist/vite/plugin-mdx.js.map +1 -1
  52. package/dist/vite/plugin.js +0 -2
  53. package/dist/vite/plugin.js.map +1 -1
  54. package/lib/AuthenticationPlugin-ByDF051g.js +99 -0
  55. package/lib/AuthenticationPlugin-ByDF051g.js.map +1 -0
  56. package/lib/{Button-Bdk_Ij3U.js → Button-BBNrKpQd.js} +3 -3
  57. package/lib/{Button-Bdk_Ij3U.js.map → Button-BBNrKpQd.js.map} +1 -1
  58. package/lib/{Callout-XadUe37J.js → Callout-D3Ja4OPX.js} +12 -12
  59. package/lib/{Callout-XadUe37J.js.map → Callout-D3Ja4OPX.js.map} +1 -1
  60. package/lib/Card-BtheiD7j.js +61 -0
  61. package/lib/Card-BtheiD7j.js.map +1 -0
  62. package/lib/{CategoryHeading-DZi-Szor.js → CategoryHeading-D06WK_Wo.js} +2 -2
  63. package/lib/{CategoryHeading-DZi-Szor.js.map → CategoryHeading-D06WK_Wo.js.map} +1 -1
  64. package/lib/{Dialog-CNf2oWXG.js → Dialog-ByYz4ABw.js} +2 -2
  65. package/lib/{Dialog-CNf2oWXG.js.map → Dialog-ByYz4ABw.js.map} +1 -1
  66. package/lib/{Drawer-BPBxzel2.js → Drawer-CEwbkLDb.js} +25 -25
  67. package/lib/{Drawer-BPBxzel2.js.map → Drawer-CEwbkLDb.js.map} +1 -1
  68. package/lib/Markdown-mFpg_n9p.js +17125 -0
  69. package/lib/Markdown-mFpg_n9p.js.map +1 -0
  70. package/lib/MdxPage-Cm7atiW3.js +85 -0
  71. package/lib/{MdxPage-Dxbq6lFr.js.map → MdxPage-Cm7atiW3.js.map} +1 -1
  72. package/lib/{OasProvider-DKpTJMH2.js → OasProvider-CDtbrUG_.js} +4 -4
  73. package/lib/{OasProvider-DKpTJMH2.js.map → OasProvider-CDtbrUG_.js.map} +1 -1
  74. package/lib/{OperationList-DVOyNeno.js → OperationList-DTyJIxKW.js} +1967 -1914
  75. package/lib/OperationList-DTyJIxKW.js.map +1 -0
  76. package/lib/{Pagination-COMmV-g9.js → Pagination-DLPL5z77.js} +4 -4
  77. package/lib/{Pagination-COMmV-g9.js.map → Pagination-DLPL5z77.js.map} +1 -1
  78. package/lib/RouteGuard-DRtEu9nh.js +744 -0
  79. package/lib/{RouteGuard-CGqivwrh.js.map → RouteGuard-DRtEu9nh.js.map} +1 -1
  80. package/lib/{SchemaList-BTWzXyYQ.js → SchemaList-B9lvArDe.js} +44 -43
  81. package/lib/{SchemaList-BTWzXyYQ.js.map → SchemaList-B9lvArDe.js.map} +1 -1
  82. package/lib/{SchemaView-DNKKW3nB.js → SchemaView-DXjql-Bl.js} +111 -108
  83. package/lib/SchemaView-DXjql-Bl.js.map +1 -0
  84. package/lib/Select-CT64Ou40.js +223 -0
  85. package/lib/{Select-m-ITdvFa.js.map → Select-CT64Ou40.js.map} +1 -1
  86. package/lib/SlotletProvider-CS_nO-XT.js +340 -0
  87. package/lib/SlotletProvider-CS_nO-XT.js.map +1 -0
  88. package/lib/SyntaxHighlight-CxhyyMkF.js +2890 -0
  89. package/lib/SyntaxHighlight-CxhyyMkF.js.map +1 -0
  90. package/lib/{Toc-CzMOgcPS.js → Toc-D_tV8_Ri.js} +3 -3
  91. package/lib/{Toc-CzMOgcPS.js.map → Toc-D_tV8_Ri.js.map} +1 -1
  92. package/lib/{chunk-BAXFHI7N-CFrZQ7Oh.js → chunk-BAXFHI7N-BVBOl9s0.js} +264 -257
  93. package/lib/{chunk-BAXFHI7N-CFrZQ7Oh.js.map → chunk-BAXFHI7N-BVBOl9s0.js.map} +1 -1
  94. package/lib/{circular-D__GEK2G.js → circular-ByJI6Mci.js} +47 -47
  95. package/lib/{circular-D__GEK2G.js.map → circular-ByJI6Mci.js.map} +1 -1
  96. package/lib/{cn-CwJPJKOE.js → cn-qaFjX9_3.js} +29 -28
  97. package/lib/{cn-CwJPJKOE.js.map → cn-qaFjX9_3.js.map} +1 -1
  98. package/lib/{createServer-B4l2NSkt.js → createServer-IW7v5hWm.js} +3868 -3724
  99. package/lib/{createServer-B4l2NSkt.js.map → createServer-IW7v5hWm.js.map} +1 -1
  100. package/lib/hook-CldJlP5c.js +1478 -0
  101. package/lib/{hook-CyNmcNr8.js.map → hook-CldJlP5c.js.map} +1 -1
  102. package/lib/{index-Z13x6tPX.js → index-CPNSgwSb.js} +5 -5
  103. package/lib/{index-Z13x6tPX.js.map → index-CPNSgwSb.js.map} +1 -1
  104. package/lib/{index-CCS3ifKs.js → index-Ckl3s_w-.js} +763 -769
  105. package/lib/index-Ckl3s_w-.js.map +1 -0
  106. package/lib/{index-CrcNWbel.js → index-CuBIgTKC.js} +9 -9
  107. package/lib/{index-CrcNWbel.js.map → index-CuBIgTKC.js.map} +1 -1
  108. package/lib/{index-zddirpDj.js → index-DcHeSvkE.js} +609 -581
  109. package/lib/{index-zddirpDj.js.map → index-DcHeSvkE.js.map} +1 -1
  110. package/lib/index-DnQftvP4.js +5031 -0
  111. package/lib/{index-BcMPFdRU.js.map → index-DnQftvP4.js.map} +1 -1
  112. package/lib/{index--oeBayMa.js → index-DwT-v3zK.js} +2 -2
  113. package/lib/{index--oeBayMa.js.map → index-DwT-v3zK.js.map} +1 -1
  114. package/lib/{index-BvvmIczU.js → index-LNp6rxyU.js} +2 -2
  115. package/lib/{index-BvvmIczU.js.map → index-LNp6rxyU.js.map} +1 -1
  116. package/lib/invariant-Caa8-XvF.js +26 -0
  117. package/lib/{invariant-D3QcI9fa.js.map → invariant-Caa8-XvF.js.map} +1 -1
  118. package/lib/mutation-DBQh7AOZ.js +211 -0
  119. package/lib/{mutation-narTVsCe.js.map → mutation-DBQh7AOZ.js.map} +1 -1
  120. package/lib/prism-bash.min-HHIMdNJ_.js +7 -0
  121. package/lib/prism-bash.min-HHIMdNJ_.js.map +1 -0
  122. package/lib/prism-csharp.min-C43x1RY2.js +63 -0
  123. package/lib/prism-csharp.min-C43x1RY2.js.map +1 -0
  124. package/lib/prism-java.min-CQzr40NQ.js +35 -0
  125. package/lib/prism-java.min-CQzr40NQ.js.map +1 -0
  126. package/lib/prism-javascript.min-CEqHqgbm.js +9 -0
  127. package/lib/prism-javascript.min-CEqHqgbm.js.map +1 -0
  128. package/lib/prism-json.min-B1GJqK1k.js +2 -0
  129. package/lib/prism-json.min-B1GJqK1k.js.map +1 -0
  130. package/lib/prism-jsstacktrace.min-BfobCF2F.js +2 -0
  131. package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +1 -0
  132. package/lib/prism-markdown.min-C0Qn0m-5.js +61 -0
  133. package/lib/prism-markdown.min-C0Qn0m-5.js.map +1 -0
  134. package/lib/prism-markup-BNGj0Tvm.js +174 -0
  135. package/lib/prism-markup-BNGj0Tvm.js.map +1 -0
  136. package/lib/prism-objectivec.min-BXSWqpJJ.js +2 -0
  137. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -0
  138. package/lib/prism-ruby.min-L9OdQ6tU.js +38 -0
  139. package/lib/prism-ruby.min-L9OdQ6tU.js.map +1 -0
  140. package/lib/prism-typescript.min-qTySPvCh.js +34 -0
  141. package/lib/prism-typescript.min-qTySPvCh.js.map +1 -0
  142. package/lib/processors/removeParameters.js +28 -27
  143. package/lib/processors/removeParameters.js.map +1 -1
  144. package/lib/processors/removePaths.js +17 -17
  145. package/lib/processors/removePaths.js.map +1 -1
  146. package/lib/ui/Accordion.js +1 -1
  147. package/lib/ui/ActionButton.js +2 -2
  148. package/lib/ui/Alert.js +2 -2
  149. package/lib/ui/AlertDialog.js +1 -1
  150. package/lib/ui/Badge.js +2 -2
  151. package/lib/ui/Breadcrumb.js +1 -1
  152. package/lib/ui/Button.js +2 -2
  153. package/lib/ui/Callout.js +7 -7
  154. package/lib/ui/Callout.js.map +1 -1
  155. package/lib/ui/Card.js +1 -1
  156. package/lib/ui/Carousel.js +175 -175
  157. package/lib/ui/Carousel.js.map +1 -1
  158. package/lib/ui/Checkbox.js +1 -1
  159. package/lib/ui/Command.js +58 -58
  160. package/lib/ui/Command.js.map +1 -1
  161. package/lib/ui/Dialog.js +1 -1
  162. package/lib/ui/Drawer.js +2 -2
  163. package/lib/ui/DropdownMenu.js +1 -1
  164. package/lib/ui/Form.js +1 -1
  165. package/lib/ui/HoverCard.js +1 -1
  166. package/lib/ui/Input.js +1 -1
  167. package/lib/ui/Label.js +2 -2
  168. package/lib/ui/Pagination.js +1 -1
  169. package/lib/ui/Popover.js +1 -1
  170. package/lib/ui/Progress.js +1 -1
  171. package/lib/ui/RadioGroup.js +1 -1
  172. package/lib/ui/ScrollArea.js +1 -1
  173. package/lib/ui/Select.js +1 -1
  174. package/lib/ui/Skeleton.js +1 -1
  175. package/lib/ui/Slider.js +1 -1
  176. package/lib/ui/Switch.js +1 -1
  177. package/lib/ui/SyntaxHighlight.js +6 -4
  178. package/lib/ui/SyntaxHighlight.js.map +1 -1
  179. package/lib/ui/Tabs.js +1 -1
  180. package/lib/ui/Textarea.js +1 -1
  181. package/lib/ui/Toggle.js +2 -2
  182. package/lib/ui/ToggleGroup.js +1 -1
  183. package/lib/ui/Tooltip.js +1 -1
  184. package/lib/ui/util.js +1 -1
  185. package/lib/{useExposedProps-n1u49409.js → useExposedProps-DbIZXspi.js} +2 -2
  186. package/lib/{useExposedProps-n1u49409.js.map → useExposedProps-DbIZXspi.js.map} +1 -1
  187. package/lib/zudoku.auth-auth0.js +31 -28
  188. package/lib/zudoku.auth-auth0.js.map +1 -1
  189. package/lib/zudoku.auth-clerk.js +68 -62
  190. package/lib/zudoku.auth-clerk.js.map +1 -1
  191. package/lib/zudoku.auth-openid.js +483 -475
  192. package/lib/zudoku.auth-openid.js.map +1 -1
  193. package/lib/zudoku.components.js +7 -7
  194. package/lib/zudoku.hooks.js +2 -2
  195. package/lib/zudoku.plugin-api-catalog.js +45 -45
  196. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  197. package/lib/zudoku.plugin-api-keys.js +6 -6
  198. package/lib/zudoku.plugin-custom-pages.js +3 -3
  199. package/lib/zudoku.plugin-markdown.js +28 -25
  200. package/lib/zudoku.plugin-markdown.js.map +1 -1
  201. package/lib/zudoku.plugin-openapi.js +3 -3
  202. package/lib/zudoku.plugin-redirect.js +1 -1
  203. package/lib/zudoku.plugin-search-inkeep.js +27 -26
  204. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  205. package/lib/zudoku.plugin-search-pagefind.js +110 -107
  206. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  207. package/package.json +7 -17
  208. package/src/app/main.css +3 -53
  209. package/src/app/main.tsx +0 -7
  210. package/src/lib/authentication/components/SignIn.tsx +35 -2
  211. package/src/lib/authentication/components/SignUp.tsx +35 -1
  212. package/src/lib/components/Markdown.tsx +24 -29
  213. package/src/lib/core/ZudokuContext.ts +0 -4
  214. package/src/lib/errors/ErrorAlert.tsx +1 -1
  215. package/src/lib/plugins/openapi/CollapsibleCode.tsx +2 -5
  216. package/src/lib/plugins/openapi/ParameterListItem.tsx +30 -0
  217. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  218. package/src/lib/plugins/openapi/SidecarExamples.tsx +2 -2
  219. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +7 -4
  220. package/src/lib/plugins/openapi/schema/SchemaView.tsx +1 -6
  221. package/src/lib/plugins/openapi/schema/utils.ts +5 -0
  222. package/src/lib/ui/Callout.tsx +1 -1
  223. package/src/lib/ui/SyntaxHighlight.tsx +182 -18
  224. package/src/lib/util/MdxComponents.tsx +14 -27
  225. package/dist/lib/shiki.d.ts +0 -35
  226. package/dist/lib/shiki.js +0 -103
  227. package/dist/lib/shiki.js.map +0 -1
  228. package/dist/lib/ui/CodeBlock.d.ts +0 -16
  229. package/dist/lib/ui/CodeBlock.js +0 -18
  230. package/dist/lib/ui/CodeBlock.js.map +0 -1
  231. package/dist/vite/plugin-shiki-register.d.ts +0 -3
  232. package/dist/vite/plugin-shiki-register.js +0 -38
  233. package/dist/vite/plugin-shiki-register.js.map +0 -1
  234. package/lib/AuthenticationPlugin-EeQpQI3D.js +0 -55
  235. package/lib/AuthenticationPlugin-EeQpQI3D.js.map +0 -1
  236. package/lib/Markdown-1l-DtDbF.js +0 -7688
  237. package/lib/Markdown-1l-DtDbF.js.map +0 -1
  238. package/lib/MdxPage-Dxbq6lFr.js +0 -84
  239. package/lib/OperationList-DVOyNeno.js.map +0 -1
  240. package/lib/RouteGuard-CGqivwrh.js +0 -733
  241. package/lib/SchemaView-DNKKW3nB.js.map +0 -1
  242. package/lib/Select-m-ITdvFa.js +0 -211
  243. package/lib/SlotletProvider-DhK1Fmm9.js +0 -254
  244. package/lib/SlotletProvider-DhK1Fmm9.js.map +0 -1
  245. package/lib/SyntaxHighlight-CJ6FoYvt.js +0 -9104
  246. package/lib/SyntaxHighlight-CJ6FoYvt.js.map +0 -1
  247. package/lib/hook-CyNmcNr8.js +0 -1443
  248. package/lib/index-BcMPFdRU.js +0 -4975
  249. package/lib/index-CCS3ifKs.js.map +0 -1
  250. package/lib/invariant-D3QcI9fa.js +0 -22
  251. package/lib/mutation-narTVsCe.js +0 -196
  252. package/lib/ui/CodeBlock.js +0 -83
  253. package/lib/ui/CodeBlock.js.map +0 -1
  254. package/src/lib/shiki.ts +0 -129
  255. package/src/lib/ui/CodeBlock.tsx +0 -102
  256. package/src/shiki/langs/abap.js +0 -1
  257. package/src/shiki/langs/actionscript-3.js +0 -1
  258. package/src/shiki/langs/ada.js +0 -1
  259. package/src/shiki/langs/angular-expression.js +0 -1
  260. package/src/shiki/langs/angular-html.js +0 -1
  261. package/src/shiki/langs/angular-inline-style.js +0 -1
  262. package/src/shiki/langs/angular-inline-template.js +0 -1
  263. package/src/shiki/langs/angular-let-declaration.js +0 -1
  264. package/src/shiki/langs/angular-template-blocks.js +0 -1
  265. package/src/shiki/langs/angular-template.js +0 -1
  266. package/src/shiki/langs/angular-ts.js +0 -1
  267. package/src/shiki/langs/apache.js +0 -1
  268. package/src/shiki/langs/apex.js +0 -1
  269. package/src/shiki/langs/apl.js +0 -1
  270. package/src/shiki/langs/applescript.js +0 -1
  271. package/src/shiki/langs/ara.js +0 -1
  272. package/src/shiki/langs/asciidoc.js +0 -1
  273. package/src/shiki/langs/asm.js +0 -1
  274. package/src/shiki/langs/astro.js +0 -1
  275. package/src/shiki/langs/awk.js +0 -1
  276. package/src/shiki/langs/ballerina.js +0 -1
  277. package/src/shiki/langs/bat.js +0 -1
  278. package/src/shiki/langs/beancount.js +0 -1
  279. package/src/shiki/langs/berry.js +0 -1
  280. package/src/shiki/langs/bibtex.js +0 -1
  281. package/src/shiki/langs/bicep.js +0 -1
  282. package/src/shiki/langs/blade.js +0 -1
  283. package/src/shiki/langs/bsl.js +0 -1
  284. package/src/shiki/langs/c.js +0 -1
  285. package/src/shiki/langs/cadence.js +0 -1
  286. package/src/shiki/langs/cairo.js +0 -1
  287. package/src/shiki/langs/clarity.js +0 -1
  288. package/src/shiki/langs/clojure.js +0 -1
  289. package/src/shiki/langs/cmake.js +0 -1
  290. package/src/shiki/langs/cobol.js +0 -1
  291. package/src/shiki/langs/codeowners.js +0 -1
  292. package/src/shiki/langs/codeql.js +0 -1
  293. package/src/shiki/langs/coffee.js +0 -1
  294. package/src/shiki/langs/common-lisp.js +0 -1
  295. package/src/shiki/langs/coq.js +0 -1
  296. package/src/shiki/langs/cpp-macro.js +0 -1
  297. package/src/shiki/langs/cpp.js +0 -1
  298. package/src/shiki/langs/crystal.js +0 -1
  299. package/src/shiki/langs/csharp.js +0 -1
  300. package/src/shiki/langs/css.js +0 -1
  301. package/src/shiki/langs/csv.js +0 -1
  302. package/src/shiki/langs/cue.js +0 -1
  303. package/src/shiki/langs/cypher.js +0 -1
  304. package/src/shiki/langs/d.js +0 -1
  305. package/src/shiki/langs/dart.js +0 -1
  306. package/src/shiki/langs/dax.js +0 -1
  307. package/src/shiki/langs/desktop.js +0 -1
  308. package/src/shiki/langs/diff.js +0 -1
  309. package/src/shiki/langs/docker.js +0 -1
  310. package/src/shiki/langs/dotenv.js +0 -1
  311. package/src/shiki/langs/dream-maker.js +0 -1
  312. package/src/shiki/langs/edge.js +0 -1
  313. package/src/shiki/langs/elixir.js +0 -1
  314. package/src/shiki/langs/elm.js +0 -1
  315. package/src/shiki/langs/emacs-lisp.js +0 -1
  316. package/src/shiki/langs/erb.js +0 -1
  317. package/src/shiki/langs/erlang.js +0 -1
  318. package/src/shiki/langs/es-tag-css.js +0 -1
  319. package/src/shiki/langs/es-tag-glsl.js +0 -1
  320. package/src/shiki/langs/es-tag-html.js +0 -1
  321. package/src/shiki/langs/es-tag-sql.js +0 -1
  322. package/src/shiki/langs/es-tag-xml.js +0 -1
  323. package/src/shiki/langs/fennel.js +0 -1
  324. package/src/shiki/langs/fish.js +0 -1
  325. package/src/shiki/langs/fluent.js +0 -1
  326. package/src/shiki/langs/fortran-fixed-form.js +0 -1
  327. package/src/shiki/langs/fortran-free-form.js +0 -1
  328. package/src/shiki/langs/fsharp.js +0 -1
  329. package/src/shiki/langs/gdresource.js +0 -1
  330. package/src/shiki/langs/gdscript.js +0 -1
  331. package/src/shiki/langs/gdshader.js +0 -1
  332. package/src/shiki/langs/genie.js +0 -1
  333. package/src/shiki/langs/gherkin.js +0 -1
  334. package/src/shiki/langs/git-commit.js +0 -1
  335. package/src/shiki/langs/git-rebase.js +0 -1
  336. package/src/shiki/langs/gleam.js +0 -1
  337. package/src/shiki/langs/glimmer-js.js +0 -1
  338. package/src/shiki/langs/glimmer-ts.js +0 -1
  339. package/src/shiki/langs/glsl.js +0 -1
  340. package/src/shiki/langs/gnuplot.js +0 -1
  341. package/src/shiki/langs/go.js +0 -1
  342. package/src/shiki/langs/graphql.js +0 -1
  343. package/src/shiki/langs/groovy.js +0 -1
  344. package/src/shiki/langs/hack.js +0 -1
  345. package/src/shiki/langs/haml.js +0 -1
  346. package/src/shiki/langs/handlebars.js +0 -1
  347. package/src/shiki/langs/haskell.js +0 -1
  348. package/src/shiki/langs/haxe.js +0 -1
  349. package/src/shiki/langs/hcl.js +0 -1
  350. package/src/shiki/langs/hjson.js +0 -1
  351. package/src/shiki/langs/hlsl.js +0 -1
  352. package/src/shiki/langs/html-derivative.js +0 -1
  353. package/src/shiki/langs/html.js +0 -1
  354. package/src/shiki/langs/http.js +0 -1
  355. package/src/shiki/langs/hxml.js +0 -1
  356. package/src/shiki/langs/hy.js +0 -1
  357. package/src/shiki/langs/imba.js +0 -1
  358. package/src/shiki/langs/ini.js +0 -1
  359. package/src/shiki/langs/java.js +0 -1
  360. package/src/shiki/langs/javascript.js +0 -1
  361. package/src/shiki/langs/jinja-html.js +0 -1
  362. package/src/shiki/langs/jinja.js +0 -1
  363. package/src/shiki/langs/jison.js +0 -1
  364. package/src/shiki/langs/json.js +0 -1
  365. package/src/shiki/langs/json5.js +0 -1
  366. package/src/shiki/langs/jsonc.js +0 -1
  367. package/src/shiki/langs/jsonl.js +0 -1
  368. package/src/shiki/langs/jsonnet.js +0 -1
  369. package/src/shiki/langs/jssm.js +0 -1
  370. package/src/shiki/langs/jsx.js +0 -1
  371. package/src/shiki/langs/julia.js +0 -1
  372. package/src/shiki/langs/kotlin.js +0 -1
  373. package/src/shiki/langs/kusto.js +0 -1
  374. package/src/shiki/langs/latex.js +0 -1
  375. package/src/shiki/langs/lean.js +0 -1
  376. package/src/shiki/langs/less.js +0 -1
  377. package/src/shiki/langs/liquid.js +0 -1
  378. package/src/shiki/langs/llvm.js +0 -1
  379. package/src/shiki/langs/log.js +0 -1
  380. package/src/shiki/langs/logo.js +0 -1
  381. package/src/shiki/langs/lua.js +0 -1
  382. package/src/shiki/langs/luau.js +0 -1
  383. package/src/shiki/langs/make.js +0 -1
  384. package/src/shiki/langs/markdown-vue.js +0 -1
  385. package/src/shiki/langs/markdown.js +0 -1
  386. package/src/shiki/langs/marko.js +0 -1
  387. package/src/shiki/langs/matlab.js +0 -1
  388. package/src/shiki/langs/mdc.js +0 -1
  389. package/src/shiki/langs/mdx.js +0 -1
  390. package/src/shiki/langs/mermaid.js +0 -1
  391. package/src/shiki/langs/mipsasm.js +0 -1
  392. package/src/shiki/langs/mojo.js +0 -1
  393. package/src/shiki/langs/move.js +0 -1
  394. package/src/shiki/langs/narrat.js +0 -1
  395. package/src/shiki/langs/nextflow.js +0 -1
  396. package/src/shiki/langs/nginx.js +0 -1
  397. package/src/shiki/langs/nim.js +0 -1
  398. package/src/shiki/langs/nix.js +0 -1
  399. package/src/shiki/langs/nushell.js +0 -1
  400. package/src/shiki/langs/objective-c.js +0 -1
  401. package/src/shiki/langs/objective-cpp.js +0 -1
  402. package/src/shiki/langs/ocaml.js +0 -1
  403. package/src/shiki/langs/pascal.js +0 -1
  404. package/src/shiki/langs/perl.js +0 -1
  405. package/src/shiki/langs/php.js +0 -1
  406. package/src/shiki/langs/plsql.js +0 -1
  407. package/src/shiki/langs/po.js +0 -1
  408. package/src/shiki/langs/polar.js +0 -1
  409. package/src/shiki/langs/postcss.js +0 -1
  410. package/src/shiki/langs/powerquery.js +0 -1
  411. package/src/shiki/langs/powershell.js +0 -1
  412. package/src/shiki/langs/prisma.js +0 -1
  413. package/src/shiki/langs/prolog.js +0 -1
  414. package/src/shiki/langs/proto.js +0 -1
  415. package/src/shiki/langs/pug.js +0 -1
  416. package/src/shiki/langs/puppet.js +0 -1
  417. package/src/shiki/langs/purescript.js +0 -1
  418. package/src/shiki/langs/python.js +0 -1
  419. package/src/shiki/langs/qml.js +0 -1
  420. package/src/shiki/langs/qmldir.js +0 -1
  421. package/src/shiki/langs/qss.js +0 -1
  422. package/src/shiki/langs/r.js +0 -1
  423. package/src/shiki/langs/racket.js +0 -1
  424. package/src/shiki/langs/raku.js +0 -1
  425. package/src/shiki/langs/razor.js +0 -1
  426. package/src/shiki/langs/reg.js +0 -1
  427. package/src/shiki/langs/regexp.js +0 -1
  428. package/src/shiki/langs/rel.js +0 -1
  429. package/src/shiki/langs/riscv.js +0 -1
  430. package/src/shiki/langs/rst.js +0 -1
  431. package/src/shiki/langs/ruby.js +0 -1
  432. package/src/shiki/langs/rust.js +0 -1
  433. package/src/shiki/langs/sas.js +0 -1
  434. package/src/shiki/langs/sass.js +0 -1
  435. package/src/shiki/langs/scala.js +0 -1
  436. package/src/shiki/langs/scheme.js +0 -1
  437. package/src/shiki/langs/scss.js +0 -1
  438. package/src/shiki/langs/sdbl.js +0 -1
  439. package/src/shiki/langs/shaderlab.js +0 -1
  440. package/src/shiki/langs/shellscript.js +0 -1
  441. package/src/shiki/langs/shellsession.js +0 -1
  442. package/src/shiki/langs/smalltalk.js +0 -1
  443. package/src/shiki/langs/solidity.js +0 -1
  444. package/src/shiki/langs/soy.js +0 -1
  445. package/src/shiki/langs/sparql.js +0 -1
  446. package/src/shiki/langs/splunk.js +0 -1
  447. package/src/shiki/langs/sql.js +0 -1
  448. package/src/shiki/langs/ssh-config.js +0 -1
  449. package/src/shiki/langs/stata.js +0 -1
  450. package/src/shiki/langs/stylus.js +0 -1
  451. package/src/shiki/langs/svelte.js +0 -1
  452. package/src/shiki/langs/swift.js +0 -1
  453. package/src/shiki/langs/system-verilog.js +0 -1
  454. package/src/shiki/langs/systemd.js +0 -1
  455. package/src/shiki/langs/talonscript.js +0 -1
  456. package/src/shiki/langs/tasl.js +0 -1
  457. package/src/shiki/langs/tcl.js +0 -1
  458. package/src/shiki/langs/templ.js +0 -1
  459. package/src/shiki/langs/terraform.js +0 -1
  460. package/src/shiki/langs/tex.js +0 -1
  461. package/src/shiki/langs/toml.js +0 -1
  462. package/src/shiki/langs/ts-tags.js +0 -1
  463. package/src/shiki/langs/tsv.js +0 -1
  464. package/src/shiki/langs/tsx.js +0 -1
  465. package/src/shiki/langs/turtle.js +0 -1
  466. package/src/shiki/langs/twig.js +0 -1
  467. package/src/shiki/langs/typescript.js +0 -1
  468. package/src/shiki/langs/typespec.js +0 -1
  469. package/src/shiki/langs/typst.js +0 -1
  470. package/src/shiki/langs/v.js +0 -1
  471. package/src/shiki/langs/vala.js +0 -1
  472. package/src/shiki/langs/vb.js +0 -1
  473. package/src/shiki/langs/verilog.js +0 -1
  474. package/src/shiki/langs/vhdl.js +0 -1
  475. package/src/shiki/langs/viml.js +0 -1
  476. package/src/shiki/langs/vue-directives.js +0 -1
  477. package/src/shiki/langs/vue-html.js +0 -1
  478. package/src/shiki/langs/vue-interpolations.js +0 -1
  479. package/src/shiki/langs/vue-sfc-style-variable-injection.js +0 -1
  480. package/src/shiki/langs/vue.js +0 -1
  481. package/src/shiki/langs/vyper.js +0 -1
  482. package/src/shiki/langs/wasm.js +0 -1
  483. package/src/shiki/langs/wenyan.js +0 -1
  484. package/src/shiki/langs/wgsl.js +0 -1
  485. package/src/shiki/langs/wikitext.js +0 -1
  486. package/src/shiki/langs/wit.js +0 -1
  487. package/src/shiki/langs/wolfram.js +0 -1
  488. package/src/shiki/langs/xml.js +0 -1
  489. package/src/shiki/langs/xsl.js +0 -1
  490. package/src/shiki/langs/yaml.js +0 -1
  491. package/src/shiki/langs/zenscript.js +0 -1
  492. package/src/shiki/langs/zig.js +0 -1
  493. package/src/shiki/themes/andromeeda.js +0 -1
  494. package/src/shiki/themes/aurora-x.js +0 -1
  495. package/src/shiki/themes/ayu-dark.js +0 -1
  496. package/src/shiki/themes/catppuccin-frappe.js +0 -1
  497. package/src/shiki/themes/catppuccin-latte.js +0 -1
  498. package/src/shiki/themes/catppuccin-macchiato.js +0 -1
  499. package/src/shiki/themes/catppuccin-mocha.js +0 -1
  500. package/src/shiki/themes/dark-plus.js +0 -1
  501. package/src/shiki/themes/dracula-soft.js +0 -1
  502. package/src/shiki/themes/dracula.js +0 -1
  503. package/src/shiki/themes/everforest-dark.js +0 -1
  504. package/src/shiki/themes/everforest-light.js +0 -1
  505. package/src/shiki/themes/github-dark-default.js +0 -1
  506. package/src/shiki/themes/github-dark-dimmed.js +0 -1
  507. package/src/shiki/themes/github-dark-high-contrast.js +0 -1
  508. package/src/shiki/themes/github-dark.js +0 -1
  509. package/src/shiki/themes/github-light-default.js +0 -1
  510. package/src/shiki/themes/github-light-high-contrast.js +0 -1
  511. package/src/shiki/themes/github-light.js +0 -1
  512. package/src/shiki/themes/gruvbox-dark-hard.js +0 -1
  513. package/src/shiki/themes/gruvbox-dark-medium.js +0 -1
  514. package/src/shiki/themes/gruvbox-dark-soft.js +0 -1
  515. package/src/shiki/themes/gruvbox-light-hard.js +0 -1
  516. package/src/shiki/themes/gruvbox-light-medium.js +0 -1
  517. package/src/shiki/themes/gruvbox-light-soft.js +0 -1
  518. package/src/shiki/themes/houston.js +0 -1
  519. package/src/shiki/themes/kanagawa-dragon.js +0 -1
  520. package/src/shiki/themes/kanagawa-lotus.js +0 -1
  521. package/src/shiki/themes/kanagawa-wave.js +0 -1
  522. package/src/shiki/themes/laserwave.js +0 -1
  523. package/src/shiki/themes/light-plus.js +0 -1
  524. package/src/shiki/themes/material-theme-darker.js +0 -1
  525. package/src/shiki/themes/material-theme-lighter.js +0 -1
  526. package/src/shiki/themes/material-theme-ocean.js +0 -1
  527. package/src/shiki/themes/material-theme-palenight.js +0 -1
  528. package/src/shiki/themes/material-theme.js +0 -1
  529. package/src/shiki/themes/min-dark.js +0 -1
  530. package/src/shiki/themes/min-light.js +0 -1
  531. package/src/shiki/themes/monokai.js +0 -1
  532. package/src/shiki/themes/night-owl.js +0 -1
  533. package/src/shiki/themes/nord.js +0 -1
  534. package/src/shiki/themes/one-dark-pro.js +0 -1
  535. package/src/shiki/themes/one-light.js +0 -1
  536. package/src/shiki/themes/plastic.js +0 -1
  537. package/src/shiki/themes/poimandres.js +0 -1
  538. package/src/shiki/themes/red.js +0 -1
  539. package/src/shiki/themes/rose-pine-dawn.js +0 -1
  540. package/src/shiki/themes/rose-pine-moon.js +0 -1
  541. package/src/shiki/themes/rose-pine.js +0 -1
  542. package/src/shiki/themes/slack-dark.js +0 -1
  543. package/src/shiki/themes/slack-ochin.js +0 -1
  544. package/src/shiki/themes/snazzy-light.js +0 -1
  545. package/src/shiki/themes/solarized-dark.js +0 -1
  546. package/src/shiki/themes/solarized-light.js +0 -1
  547. package/src/shiki/themes/synthwave-84.js +0 -1
  548. package/src/shiki/themes/tokyo-night.js +0 -1
  549. package/src/shiki/themes/vesper.js +0 -1
  550. package/src/shiki/themes/vitesse-black.js +0 -1
  551. package/src/shiki/themes/vitesse-dark.js +0 -1
  552. package/src/shiki/themes/vitesse-light.js +0 -1
@@ -1,77 +1,90 @@
1
+ var Ft = Object.defineProperty;
2
+ var tt = (t) => {
3
+ throw TypeError(t);
4
+ };
5
+ var zt = (t, n, s) => n in t ? Ft(t, n, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[n] = s;
6
+ var J = (t, n, s) => zt(t, typeof n != "symbol" ? n + "" : n, s), Mt = (t, n, s) => n.has(t) || tt("Cannot " + s);
7
+ var pe = (t, n, s) => (Mt(t, n, "read from private field"), s ? s.call(t) : n.get(t)), he = (t, n, s) => n.has(t) ? tt("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(t) : n.set(t, s);
1
8
  import { j as e } from "./jsx-runtime-C5mzlN2N.js";
2
- import { ChevronRightIcon as B, CheckIcon as Rt, DotIcon as kt, Check as It, XIcon as Ot, Circle as qt, ChevronDownIcon as Et, InfoIcon as _e, LogInIcon as Lt, CirclePlayIcon as At } from "lucide-react";
3
- import { r as Dt, m as Be } from "./chunk-BAXFHI7N-CFrZQ7Oh.js";
4
- import { p as nt, q as st, r as Vt, m as Ft, t as zt, f as R, l as Ht } from "./hook-CyNmcNr8.js";
5
- import { Button as G } from "./ui/Button.js";
6
- import { Z as Mt } from "./invariant-D3QcI9fa.js";
7
- import { VisuallyHidden as _t } from "@radix-ui/react-visually-hidden";
8
- import * as g from "react";
9
- import { Fragment as q, useRef as M, useEffect as Y, useMemo as Bt, useState as $, useCallback as Gt, useTransition as Jt } from "react";
10
- import { D as ve, a as je, b as be, d as at, e as rt, f as Ut } from "./Dialog-CNf2oWXG.js";
11
- import { S as me, a as ue, b as pe, c as he, e as _, u as Qt } from "./Select-m-ITdvFa.js";
12
- import { b as Ne, u as we, C as E, a as Wt, F as Zt } from "./index.esm-D2ZUREQN.js";
13
- import { c as ot } from "./index-Z13x6tPX.js";
14
- import { c as u } from "./cn-CwJPJKOE.js";
15
- import { Tabs as it, TabsList as lt, TabsTrigger as V, TabsContent as F } from "./ui/Tabs.js";
16
- import { o as Xt } from "./objectEntries-yMIkr2mI.js";
17
- import { u as Kt } from "./useLatest-hmRS46UF.js";
18
- import { z as Yt } from "./index--oeBayMa.js";
19
- import { B as L } from "./Button-Bdk_Ij3U.js";
20
- import * as v from "@radix-ui/react-dropdown-menu";
21
- import * as xe from "@radix-ui/react-checkbox";
22
- import * as ee from "@radix-ui/react-popover";
23
- import { PopoverAnchor as en } from "@radix-ui/react-popover";
24
- import { P as tn } from "./index-CrcNWbel.js";
25
- import { g as nn, h as sn, C as an, b as rn, f as on } from "./Callout-XadUe37J.js";
26
- import { Input as Ce } from "./ui/Input.js";
27
- import { Slot as ln } from "@radix-ui/react-slot";
28
- import * as dt from "@radix-ui/react-label";
29
- import * as J from "@radix-ui/react-radio-group";
30
- import { S as dn } from "./Spinner-mNLZ6awP.js";
31
- import { Callout as cn } from "./ui/Callout.js";
32
- import { Card as ct, CardHeader as mn, CardTitle as un, CardContent as pn } from "./ui/Card.js";
33
- import { Collapsible as Ge, CollapsibleTrigger as Je, CollapsibleContent as Ue } from "./ui/Collapsible.js";
34
- import * as Se from "@radix-ui/react-collapsible";
35
- import { S as hn } from "./SyntaxHighlight-CJ6FoYvt.js";
36
- let oe;
37
- const xn = (t) => {
38
- if (t.errors?.[0])
39
- throw new Mt(t.errors[0].message, {
9
+ import { ChevronRightIcon as Q, CheckIcon as Ht, DotIcon as _t, Check as Bt, XIcon as Gt, Circle as Jt, ChevronDownIcon as Ut, InfoIcon as nt, LogInIcon as Qt, CirclePlayIcon as Wt } from "lucide-react";
10
+ import { r as Zt, m as st } from "./chunk-BAXFHI7N-BVBOl9s0.js";
11
+ import { p as xt, q as gt, r as Xt, m as Kt, t as Yt, f as R, l as en } from "./hook-CldJlP5c.js";
12
+ import { Button as W } from "./ui/Button.js";
13
+ import { Z as tn } from "./invariant-Caa8-XvF.js";
14
+ import { VisuallyHidden as nn } from "@radix-ui/react-visually-hidden";
15
+ import * as b from "react";
16
+ import { Fragment as q, useRef as G, useEffect as ne, useMemo as sn, useState as k, useCallback as an, useTransition as rn } from "react";
17
+ import { D as Pe, a as ke, b as Ie, d as ft, e as yt, f as on } from "./Dialog-ByYz4ABw.js";
18
+ import { S as je, a as be, b as Ne, c as we, e as U, u as ln } from "./Select-CT64Ou40.js";
19
+ import { b as Re, u as Oe, C as L, a as cn, F as dn } from "./index.esm-D2ZUREQN.js";
20
+ import { c as vt } from "./index-CPNSgwSb.js";
21
+ import { c as g } from "./cn-qaFjX9_3.js";
22
+ import { Tabs as jt, TabsList as bt, TabsTrigger as M, TabsContent as H } from "./ui/Tabs.js";
23
+ import { o as mn } from "./objectEntries-yMIkr2mI.js";
24
+ import { u as un } from "./useLatest-hmRS46UF.js";
25
+ import { z as pn } from "./index-DwT-v3zK.js";
26
+ import { B as A } from "./Button-BBNrKpQd.js";
27
+ import * as j from "@radix-ui/react-dropdown-menu";
28
+ import { C as le } from "./Card-BtheiD7j.js";
29
+ import * as Ce from "@radix-ui/react-checkbox";
30
+ import * as se from "@radix-ui/react-popover";
31
+ import { PopoverAnchor as hn } from "@radix-ui/react-popover";
32
+ import { P as xn } from "./index-CuBIgTKC.js";
33
+ import { g as gn, h as fn, C as yn, b as vn, f as jn } from "./Callout-D3Ja4OPX.js";
34
+ import { Input as qe } from "./ui/Input.js";
35
+ import { Slot as bn } from "@radix-ui/react-slot";
36
+ import * as Nt from "@radix-ui/react-label";
37
+ import * as Z from "@radix-ui/react-radio-group";
38
+ import { S as Nn } from "./Spinner-mNLZ6awP.js";
39
+ import { Callout as wn } from "./ui/Callout.js";
40
+ import { Card as wt, CardHeader as Cn, CardTitle as Sn, CardContent as Tn } from "./ui/Card.js";
41
+ import { Collapsible as at, CollapsibleTrigger as rt, CollapsibleContent as ot } from "./ui/Collapsible.js";
42
+ import * as Le from "@radix-ui/react-collapsible";
43
+ import { S as $n } from "./SyntaxHighlight-CxhyyMkF.js";
44
+ let xe;
45
+ const Pn = (t) => {
46
+ var n;
47
+ if ((n = t.errors) != null && n[0])
48
+ throw new tn(t.errors[0].message, {
40
49
  developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
41
50
  });
42
51
  };
43
- class fn {
52
+ var oe, ie;
53
+ class kn {
44
54
  constructor(n) {
55
+ he(this, oe, async () => (xe || (xe = import("./createServer-IW7v5hWm.js").then(
56
+ (n) => n.createServer(this.config)
57
+ )), xe));
58
+ he(this, ie, async (n) => this.config.server ? fetch(this.config.server, n) : (await pe(this, oe).call(this)).fetch("http://localhost/graphql", n));
59
+ J(this, "fetch", async (n, s) => {
60
+ var l;
61
+ const a = (l = n.match(/query (\w+)/)) == null ? void 0 : l[1], r = await pe(this, ie).call(this, {
62
+ method: "POST",
63
+ body: JSON.stringify({ query: n, variables: s, operationName: a }),
64
+ headers: { "Content-Type": "application/json" }
65
+ });
66
+ if (!r.ok)
67
+ throw new Error("Network response was not ok");
68
+ const i = await r.json();
69
+ return Pn(i), i.data;
70
+ });
45
71
  this.config = n;
46
72
  }
47
- #e = async () => (oe || (oe = import("./createServer-B4l2NSkt.js").then(
48
- (n) => n.createServer(this.config)
49
- )), oe);
50
- #t = async (n) => this.config.server ? fetch(this.config.server, n) : (await this.#e()).fetch("http://localhost/graphql", n);
51
- fetch = async (n, s) => {
52
- const a = n.match(/query (\w+)/)?.[1], r = await this.#t({
53
- method: "POST",
54
- body: JSON.stringify({ query: n, variables: s, operationName: a }),
55
- headers: { "Content-Type": "application/json" }
56
- });
57
- if (!r.ok)
58
- throw new Error("Network response was not ok");
59
- const i = await r.json();
60
- return xn(i), i.data;
61
- };
62
73
  }
63
- class A extends String {
64
- __apiType;
65
- value;
66
- __meta__;
67
- constructor(n, s) {
68
- super(n), this.value = n, this.__meta__ = s;
74
+ oe = new WeakMap(), ie = new WeakMap();
75
+ class D extends String {
76
+ constructor(s, a) {
77
+ super(s);
78
+ J(this, "__apiType");
79
+ J(this, "value");
80
+ J(this, "__meta__");
81
+ this.value = s, this.__meta__ = a;
69
82
  }
70
83
  toString() {
71
84
  return this.value;
72
85
  }
73
86
  }
74
- const gn = new A(
87
+ const In = new D(
75
88
  `
76
89
  fragment OperationsFragment on OperationItem {
77
90
  slug
@@ -139,7 +152,7 @@ const gn = new A(
139
152
  }
140
153
  `,
141
154
  { fragmentName: "OperationsFragment" }
142
- ), yn = new A(`
155
+ ), Rn = new D(`
143
156
  query ServersQuery($input: JSON!, $type: SchemaType!) {
144
157
  schema(input: $input, type: $type) {
145
158
  url
@@ -148,13 +161,13 @@ const gn = new A(
148
161
  }
149
162
  }
150
163
  }
151
- `), vn = new A(`
164
+ `), On = new D(`
152
165
  query SchemaWarmup($input: JSON!, $type: SchemaType!) {
153
166
  schema(input: $input, type: $type) {
154
167
  openapi
155
168
  }
156
169
  }
157
- `), jn = new A(`
170
+ `), qn = new D(`
158
171
  query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
159
172
  schema(input: $input, type: $type) {
160
173
  servers {
@@ -246,7 +259,7 @@ const gn = new A(
246
259
  schema
247
260
  }
248
261
  }
249
- }`), bn = new A(`
262
+ }`), Ln = new D(`
250
263
  query GetSchemas($input: JSON!, $type: SchemaType!) {
251
264
  schema(input: $input, type: $type) {
252
265
  title
@@ -261,7 +274,7 @@ const gn = new A(
261
274
  }
262
275
  }
263
276
  }
264
- `), Nn = new A(`
277
+ `), An = new D(`
265
278
  query getServerQuery($input: JSON!, $type: SchemaType!) {
266
279
  schema(input: $input, type: $type) {
267
280
  url
@@ -270,7 +283,7 @@ const gn = new A(
270
283
  }
271
284
  }
272
285
  }
273
- `), wn = new A(`
286
+ `), En = new D(`
274
287
  query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
275
288
  schema(input: $input, type: $type) {
276
289
  tags {
@@ -292,19 +305,19 @@ const gn = new A(
292
305
  }
293
306
  }
294
307
  }
295
- `), Cn = {
296
- "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": yn,
297
- "\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": gn,
298
- "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": vn,
299
- "\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 next {\n name\n slug\n }\n prev {\n name\n slug\n }\n }\n }\n }\n": jn,
300
- "\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": bn,
301
- "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Nn,
302
- "\n query GetSidebarOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\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": wn
308
+ `), Dn = {
309
+ "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Rn,
310
+ "\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": In,
311
+ "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": On,
312
+ "\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 next {\n name\n slug\n }\n prev {\n name\n slug\n }\n }\n }\n }\n": qn,
313
+ "\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": Ln,
314
+ "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": An,
315
+ "\n query GetSidebarOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\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": En
303
316
  };
304
- function Sn(t) {
305
- return Cn[t] ?? {};
317
+ function Vn(t) {
318
+ return Dn[t] ?? {};
306
319
  }
307
- const Tn = ot(
320
+ const Fn = vt(
308
321
  "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
309
322
  {
310
323
  variants: {
@@ -317,65 +330,65 @@ const Tn = ot(
317
330
  variant: "default"
318
331
  }
319
332
  }
320
- ), fe = g.forwardRef(({ className: t, variant: n, ...s }, a) => /* @__PURE__ */ e.jsx(
333
+ ), Se = b.forwardRef(({ className: t, variant: n, ...s }, a) => /* @__PURE__ */ e.jsx(
321
334
  "div",
322
335
  {
323
336
  ref: a,
324
337
  role: "alert",
325
- className: u(Tn({ variant: n }), t),
338
+ className: g(Fn({ variant: n }), t),
326
339
  ...s
327
340
  }
328
341
  ));
329
- fe.displayName = "Alert";
330
- const ge = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
342
+ Se.displayName = "Alert";
343
+ const Te = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
331
344
  "h5",
332
345
  {
333
346
  ref: s,
334
- className: u("mb-1 font-medium leading-none tracking-tight", t),
347
+ className: g("mb-1 font-medium leading-none tracking-tight", t),
335
348
  ...n
336
349
  }
337
350
  ));
338
- ge.displayName = "AlertTitle";
339
- const ye = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
351
+ Te.displayName = "AlertTitle";
352
+ const $e = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
340
353
  "div",
341
354
  {
342
355
  ref: s,
343
- className: u("text-sm [&_p]:leading-relaxed", t),
356
+ className: g("text-sm [&_p]:leading-relaxed", t),
344
357
  ...n
345
358
  }
346
359
  ));
347
- ye.displayName = "AlertDescription";
348
- const $n = ({
360
+ $e.displayName = "AlertDescription";
361
+ const zn = ({
349
362
  path: t,
350
363
  renderParam: n
351
364
  }) => {
352
365
  let s = 0;
353
366
  return t.split("/").map((a, r, i) => {
354
- const l = Array.from(a.matchAll(/{([^}]+)}/g)), m = [];
355
- let d = 0;
356
- return l.forEach((p) => {
357
- const [x, N] = p;
358
- if (!N) return;
359
- const y = p.index;
360
- y > d && m.push(
361
- /* @__PURE__ */ e.jsx(q, { children: a.slice(d, y) }, `text-${d}-${y}`)
362
- ), m.push(
363
- /* @__PURE__ */ e.jsx(q, { children: n({ name: N, originalValue: x, index: s++ }) }, `param-${N}`)
364
- ), d = y + x.length;
365
- }), d < a.length && m.push(
366
- /* @__PURE__ */ e.jsx(q, { children: a.slice(d) }, `text-${d}-${a.length}`)
367
+ const l = Array.from(a.matchAll(/{([^}]+)}/g)), d = [];
368
+ let c = 0;
369
+ return l.forEach((u) => {
370
+ const [x, w] = u;
371
+ if (!w) return;
372
+ const v = u.index;
373
+ v > c && d.push(
374
+ /* @__PURE__ */ e.jsx(q, { children: a.slice(c, v) }, `text-${c}-${v}`)
375
+ ), d.push(
376
+ /* @__PURE__ */ e.jsx(q, { children: n({ name: w, originalValue: x, index: s++ }) }, `param-${w}`)
377
+ ), c = v + x.length;
378
+ }), c < a.length && d.push(
379
+ /* @__PURE__ */ e.jsx(q, { children: a.slice(c) }, `text-${c}-${a.length}`)
367
380
  ), // eslint-disable-next-line react/no-array-index-key
368
381
  /* @__PURE__ */ e.jsxs(q, { children: [
369
- m,
382
+ d,
370
383
  r < i.length - 1 && "/",
371
384
  /* @__PURE__ */ e.jsx("wbr", {})
372
385
  ] }, `${a}-${r}`);
373
386
  });
374
- }, mt = g.forwardRef(
387
+ }, Ct = b.forwardRef(
375
388
  ({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
376
389
  "textarea",
377
390
  {
378
- className: u(
391
+ className: g(
379
392
  "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-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
380
393
  t
381
394
  ),
@@ -384,25 +397,25 @@ const $n = ({
384
397
  }
385
398
  )
386
399
  );
387
- mt.displayName = "Textarea";
388
- const ie = (t) => Math.abs(
400
+ Ct.displayName = "Textarea";
401
+ const ge = (t) => Math.abs(
389
402
  isNaN(parseInt(t)) ? t.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(t)) ? 0 : parseInt(t)
390
- ), le = (t) => t.length > 1 ? parseInt(t.split("").reduce((n, s) => `${ie(n) + ie(s)}`)) : ie(t), Qe = (t, n = {}) => {
391
- const s = (3 * le(t) + 2 * le(t) + le(t)) % 360, { saturation: a = 75, lightness: r = 60 } = n;
403
+ ), fe = (t) => t.length > 1 ? parseInt(t.split("").reduce((n, s) => `${ge(n) + ge(s)}`)) : ge(t), it = (t, n = {}) => {
404
+ const s = (3 * fe(t) + 2 * fe(t) + fe(t)) % 360, { saturation: a = 75, lightness: r = 60 } = n;
392
405
  return `${s}deg ${a}% ${r}%`;
393
- }, de = "data-linked-param", Pn = (t) => {
394
- const { resolvedTheme: n } = Yt();
406
+ }, ye = "data-linked-param", Mn = (t) => {
407
+ const { resolvedTheme: n } = pn();
395
408
  return {
396
- text: Qe(
409
+ text: it(
397
410
  t,
398
411
  n === "light" ? { saturation: 95, lightness: 38 } : {}
399
412
  ),
400
- background: Qe(
413
+ background: it(
401
414
  t,
402
415
  n === "light" ? { saturation: 85, lightness: 40 } : {}
403
416
  )
404
417
  };
405
- }, ut = ({
418
+ }, St = ({
406
419
  name: t,
407
420
  className: n,
408
421
  slug: s,
@@ -410,26 +423,26 @@ const ie = (t) => Math.abs(
410
423
  children: r,
411
424
  onClick: i
412
425
  }) => {
413
- const l = M(null), m = s?.replace(/[{}]/g, ""), d = t.replace(/[{}]/g, ""), { text: p, background: x } = Pn(d), N = `hsl(${p} / 100%)`, y = `hsl(${x} / 10%)`, c = `hsl(${x} / 50%)`;
414
- return Y(() => {
415
- if (!m || !l.current) return;
426
+ const l = G(null), d = s == null ? void 0 : s.replace(/[{}]/g, ""), c = t.replace(/[{}]/g, ""), { text: u, background: x } = Mn(c), w = `hsl(${u} / 100%)`, v = `hsl(${x} / 10%)`, p = `hsl(${x} / 50%)`;
427
+ return ne(() => {
428
+ if (!d || !l.current) return;
416
429
  const f = () => {
417
- document.querySelectorAll(`[${de}="${m}"]`).forEach((b) => {
418
- b instanceof HTMLElement && (b.dataset.active = "true");
430
+ document.querySelectorAll(`[${ye}="${d}"]`).forEach((h) => {
431
+ h instanceof HTMLElement && (h.dataset.active = "true");
419
432
  });
420
- }, h = () => {
421
- document.querySelectorAll(`[${de}="${m}"]`).forEach((b) => {
422
- b instanceof HTMLElement && (b.dataset.active = "false");
433
+ }, m = () => {
434
+ document.querySelectorAll(`[${ye}="${d}"]`).forEach((h) => {
435
+ h instanceof HTMLElement && (h.dataset.active = "false");
423
436
  });
424
- }, j = l.current;
425
- return j.addEventListener("mouseenter", f), j.addEventListener("mouseleave", h), () => {
426
- j.removeEventListener("mouseenter", f), j.removeEventListener("mouseleave", h);
437
+ }, y = l.current;
438
+ return y.addEventListener("mouseenter", f), y.addEventListener("mouseleave", m), () => {
439
+ y.removeEventListener("mouseenter", f), y.removeEventListener("mouseleave", m);
427
440
  };
428
- }, [m]), /* @__PURE__ */ e.jsx(
441
+ }, [d]), /* @__PURE__ */ e.jsx(
429
442
  "span",
430
443
  {
431
- [de]: m,
432
- className: u(
444
+ [ye]: d,
445
+ className: g(
433
446
  // This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
434
447
  "relative transition-all duration-100 rounded-lg",
435
448
  "border border-[--border-color] p-0.5 text-[--param-color] bg-[--background-color]",
@@ -441,31 +454,35 @@ const ie = (t) => Math.abs(
441
454
  ref: l,
442
455
  onClick: i,
443
456
  style: {
444
- "--param-color": N,
445
- "--border-color": c,
446
- "--background-color": y
457
+ "--param-color": w,
458
+ "--border-color": p,
459
+ "--background-color": v
447
460
  },
448
461
  children: r ?? t
449
462
  }
450
463
  );
451
- }, Rn = nt()(
452
- st(
464
+ }, Hn = xt()(
465
+ gt(
453
466
  (t) => ({
454
467
  selectedServer: void 0,
455
468
  setSelectedServer: (n) => t({ selectedServer: n })
456
469
  }),
457
470
  { name: "zudoku-selected-server" }
458
471
  )
459
- ), kn = (t) => {
460
- const { selectedServer: n, setSelectedServer: s } = Rn();
461
- return { selectedServer: Bt(
462
- () => n && t.some((r) => r.url === n) ? n : t.at(0)?.url ?? "",
472
+ ), _n = (t) => {
473
+ const { selectedServer: n, setSelectedServer: s } = Hn();
474
+ return { selectedServer: sn(
475
+ () => {
476
+ var r;
477
+ return n && t.some((i) => i.url === n) ? n : ((r = t.at(0)) == null ? void 0 : r.url) ?? "";
478
+ },
463
479
  [n, t]
464
480
  ), setSelectedServer: s };
465
- }, In = (t, n, s) => {
481
+ }, Bn = (t, n, s) => {
466
482
  const a = n.replace(/(:\w+|\{\w+})/g, (i) => {
483
+ var c;
467
484
  const l = i.replace(/[:{}]/g, "");
468
- return s.pathParams.find((d) => d.name === l)?.value ?? i;
485
+ return ((c = s.pathParams.find((u) => u.name === l)) == null ? void 0 : c.value) ?? i;
469
486
  }), r = new URL(
470
487
  a.replace(/^\//, ""),
471
488
  t.endsWith("/") ? t : `${t}/`
@@ -473,11 +490,11 @@ const ie = (t) => Math.abs(
473
490
  return s.queryParams.filter((i) => i.active).forEach((i) => {
474
491
  r.searchParams.set(i.name, i.value);
475
492
  }), r;
476
- }, pt = v.Root, ht = v.Trigger, On = v.Group, qn = g.forwardRef(({ className: t, inset: n, children: s, ...a }, r) => /* @__PURE__ */ e.jsxs(
477
- v.SubTrigger,
493
+ }, Tt = j.Root, $t = j.Trigger, Gn = j.Group, Jn = b.forwardRef(({ className: t, inset: n, children: s, ...a }, r) => /* @__PURE__ */ e.jsxs(
494
+ j.SubTrigger,
478
495
  {
479
496
  ref: r,
480
- className: u(
497
+ className: g(
481
498
  "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
482
499
  n && "pl-8",
483
500
  t
@@ -485,29 +502,29 @@ const ie = (t) => Math.abs(
485
502
  ...a,
486
503
  children: [
487
504
  s,
488
- /* @__PURE__ */ e.jsx(B, { className: "ml-auto h-4 w-4" })
505
+ /* @__PURE__ */ e.jsx(Q, { className: "ml-auto h-4 w-4" })
489
506
  ]
490
507
  }
491
508
  ));
492
- qn.displayName = v.SubTrigger.displayName;
493
- const En = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
494
- v.SubContent,
509
+ Jn.displayName = j.SubTrigger.displayName;
510
+ const Un = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
511
+ j.SubContent,
495
512
  {
496
513
  ref: s,
497
- className: u(
514
+ className: g(
498
515
  "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",
499
516
  t
500
517
  ),
501
518
  ...n
502
519
  }
503
520
  ));
504
- En.displayName = v.SubContent.displayName;
505
- const Te = g.forwardRef(({ className: t, sideOffset: n = 4, ...s }, a) => /* @__PURE__ */ e.jsx(v.Portal, { children: /* @__PURE__ */ e.jsx(
506
- v.Content,
521
+ Un.displayName = j.SubContent.displayName;
522
+ const Ae = b.forwardRef(({ className: t, sideOffset: n = 4, ...s }, a) => /* @__PURE__ */ e.jsx(j.Portal, { children: /* @__PURE__ */ e.jsx(
523
+ j.Content,
507
524
  {
508
525
  ref: a,
509
526
  sideOffset: n,
510
- className: u(
527
+ className: g(
511
528
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
512
529
  "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",
513
530
  t
@@ -515,12 +532,12 @@ const Te = g.forwardRef(({ className: t, sideOffset: n = 4, ...s }, a) => /* @__
515
532
  ...s
516
533
  }
517
534
  ) }));
518
- Te.displayName = v.Content.displayName;
519
- const $e = g.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */ e.jsx(
520
- v.Item,
535
+ Ae.displayName = j.Content.displayName;
536
+ const Ee = b.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */ e.jsx(
537
+ j.Item,
521
538
  {
522
539
  ref: a,
523
- className: u(
540
+ className: g(
524
541
  "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
525
542
  n && "pl-8",
526
543
  t
@@ -528,45 +545,45 @@ const $e = g.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */
528
545
  ...s
529
546
  }
530
547
  ));
531
- $e.displayName = v.Item.displayName;
532
- const Ln = g.forwardRef(({ className: t, children: n, checked: s, ...a }, r) => /* @__PURE__ */ e.jsxs(
533
- v.CheckboxItem,
548
+ Ee.displayName = j.Item.displayName;
549
+ const Qn = b.forwardRef(({ className: t, children: n, checked: s, ...a }, r) => /* @__PURE__ */ e.jsxs(
550
+ j.CheckboxItem,
534
551
  {
535
552
  ref: r,
536
- className: u(
553
+ className: g(
537
554
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
538
555
  t
539
556
  ),
540
557
  checked: s,
541
558
  ...a,
542
559
  children: [
543
- /* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(v.ItemIndicator, { children: /* @__PURE__ */ e.jsx(Rt, { className: "h-4 w-4" }) }) }),
560
+ /* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(j.ItemIndicator, { children: /* @__PURE__ */ e.jsx(Ht, { className: "h-4 w-4" }) }) }),
544
561
  n
545
562
  ]
546
563
  }
547
564
  ));
548
- Ln.displayName = v.CheckboxItem.displayName;
549
- const An = g.forwardRef(({ className: t, children: n, ...s }, a) => /* @__PURE__ */ e.jsxs(
550
- v.RadioItem,
565
+ Qn.displayName = j.CheckboxItem.displayName;
566
+ const Wn = b.forwardRef(({ className: t, children: n, ...s }, a) => /* @__PURE__ */ e.jsxs(
567
+ j.RadioItem,
551
568
  {
552
569
  ref: a,
553
- className: u(
570
+ className: g(
554
571
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
555
572
  t
556
573
  ),
557
574
  ...s,
558
575
  children: [
559
- /* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(v.ItemIndicator, { children: /* @__PURE__ */ e.jsx(kt, { className: "h-4 w-4 fill-current" }) }) }),
576
+ /* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(j.ItemIndicator, { children: /* @__PURE__ */ e.jsx(_t, { className: "h-4 w-4 fill-current" }) }) }),
560
577
  n
561
578
  ]
562
579
  }
563
580
  ));
564
- An.displayName = v.RadioItem.displayName;
565
- const xt = g.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */ e.jsx(
566
- v.Label,
581
+ Wn.displayName = j.RadioItem.displayName;
582
+ const Pt = b.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */ e.jsx(
583
+ j.Label,
567
584
  {
568
585
  ref: a,
569
- className: u(
586
+ className: g(
570
587
  "px-2 py-1.5 text-sm font-semibold",
571
588
  n && "pl-8",
572
589
  t
@@ -574,125 +591,78 @@ const xt = g.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */
574
591
  ...s
575
592
  }
576
593
  ));
577
- xt.displayName = v.Label.displayName;
578
- const ft = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
579
- v.Separator,
594
+ Pt.displayName = j.Label.displayName;
595
+ const kt = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
596
+ j.Separator,
580
597
  {
581
598
  ref: s,
582
- className: u("-mx-1 my-1 h-px bg-muted", t),
599
+ className: g("-mx-1 my-1 h-px bg-muted", t),
583
600
  ...n
584
601
  }
585
602
  ));
586
- ft.displayName = v.Separator.displayName;
587
- const Dn = ({
603
+ kt.displayName = j.Separator.displayName;
604
+ const Zn = ({
588
605
  examples: t,
589
606
  onSelect: n
590
- }) => /* @__PURE__ */ e.jsxs(pt, { children: [
591
- /* @__PURE__ */ e.jsx(ht, { asChild: !0, children: /* @__PURE__ */ e.jsx(L, { variant: "outline", children: "Use Example" }) }),
592
- /* @__PURE__ */ e.jsx(Te, { className: "max-w-72", children: t.map((s) => /* @__PURE__ */ e.jsxs("div", { children: [
593
- /* @__PURE__ */ e.jsx(xt, { children: s.mediaType }),
594
- /* @__PURE__ */ e.jsx(ft, {}),
595
- /* @__PURE__ */ e.jsx(On, { children: s.examples?.map((a) => /* @__PURE__ */ e.jsx(
596
- $e,
597
- {
598
- onSelect: () => n(a, s.mediaType),
599
- children: /* @__PURE__ */ e.jsx(
600
- "span",
601
- {
602
- className: "line-clamp-1",
603
- title: a.summary ?? a.name,
604
- children: a.summary ?? a.name
605
- }
606
- )
607
- },
608
- a.name
609
- )) })
610
- ] }, s.mediaType)) })
611
- ] }), U = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
612
- "div",
613
- {
614
- ref: s,
615
- className: u(
616
- "rounded-xl border bg-card text-card-foreground shadow-sm",
617
- t
618
- ),
619
- ...n
620
- }
621
- ));
622
- U.displayName = "Card";
623
- const Vn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
624
- "div",
625
- {
626
- ref: s,
627
- className: u("flex flex-col space-y-1.5 p-6", t),
628
- ...n
629
- }
630
- ));
631
- Vn.displayName = "CardHeader";
632
- const Fn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
633
- "h3",
634
- {
635
- ref: s,
636
- className: u("font-semibold leading-none tracking-tight", t),
637
- ...n
638
- }
639
- ));
640
- Fn.displayName = "CardTitle";
641
- const zn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
642
- "p",
643
- {
644
- ref: s,
645
- className: u("text-sm text-muted-foreground", t),
646
- ...n
647
- }
648
- ));
649
- zn.displayName = "CardDescription";
650
- const Hn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx("div", { ref: s, className: u("p-6 pt-0", t), ...n }));
651
- Hn.displayName = "CardContent";
652
- const Mn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
653
- "div",
654
- {
655
- ref: s,
656
- className: u("flex items-center p-6 pt-0", t),
657
- ...n
658
- }
659
- ));
660
- Mn.displayName = "CardFooter";
661
- const se = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
662
- xe.Root,
607
+ }) => /* @__PURE__ */ e.jsxs(Tt, { children: [
608
+ /* @__PURE__ */ e.jsx($t, { asChild: !0, children: /* @__PURE__ */ e.jsx(A, { variant: "outline", children: "Use Example" }) }),
609
+ /* @__PURE__ */ e.jsx(Ae, { className: "max-w-72", children: t.map((s) => {
610
+ var a;
611
+ return /* @__PURE__ */ e.jsxs("div", { children: [
612
+ /* @__PURE__ */ e.jsx(Pt, { children: s.mediaType }),
613
+ /* @__PURE__ */ e.jsx(kt, {}),
614
+ /* @__PURE__ */ e.jsx(Gn, { children: (a = s.examples) == null ? void 0 : a.map((r) => /* @__PURE__ */ e.jsx(
615
+ Ee,
616
+ {
617
+ onSelect: () => n(r, s.mediaType),
618
+ children: /* @__PURE__ */ e.jsx(
619
+ "span",
620
+ {
621
+ className: "line-clamp-1",
622
+ title: r.summary ?? r.name,
623
+ children: r.summary ?? r.name
624
+ }
625
+ )
626
+ },
627
+ r.name
628
+ )) })
629
+ ] }, s.mediaType);
630
+ }) })
631
+ ] }), ce = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
632
+ Ce.Root,
663
633
  {
664
634
  ref: s,
665
- className: u(
635
+ className: g(
666
636
  "peer h-4 w-4 shrink-0 rounded-[min(6px,var(--radius)-4px)] ring-offset-background focus-visible:outline-none 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",
667
637
  "border border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary",
668
638
  t
669
639
  ),
670
640
  ...n,
671
641
  children: /* @__PURE__ */ e.jsx(
672
- xe.Indicator,
642
+ Ce.Indicator,
673
643
  {
674
- className: u("flex items-center justify-center text-current"),
675
- children: /* @__PURE__ */ e.jsx(It, { className: "h-4 w-4" })
644
+ className: g("flex items-center justify-center text-current"),
645
+ children: /* @__PURE__ */ e.jsx(Bt, { className: "h-4 w-4" })
676
646
  }
677
647
  )
678
648
  }
679
649
  ));
680
- se.displayName = xe.Root.displayName;
681
- const _n = ee.Root, gt = g.forwardRef(({ className: t, align: n = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ e.jsx(ee.Portal, { children: /* @__PURE__ */ e.jsx(
682
- ee.Content,
650
+ ce.displayName = Ce.Root.displayName;
651
+ const Xn = se.Root, It = b.forwardRef(({ className: t, align: n = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ e.jsx(se.Portal, { children: /* @__PURE__ */ e.jsx(
652
+ se.Content,
683
653
  {
684
654
  ref: r,
685
655
  align: n,
686
656
  sideOffset: s,
687
- className: u(
657
+ className: g(
688
658
  "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",
689
659
  t
690
660
  ),
691
661
  ...a
692
662
  }
693
663
  ) }));
694
- gt.displayName = ee.Content.displayName;
695
- const Bn = ({
664
+ It.displayName = se.Content.displayName;
665
+ const Kn = ({
696
666
  value: t,
697
667
  options: n,
698
668
  onChange: s,
@@ -701,76 +671,77 @@ const Bn = ({
701
671
  onEnterPress: i,
702
672
  ref: l
703
673
  }) => {
704
- const [m, d] = $(!1), [p, x] = $(!1), N = tn((c) => c.filtered.count), y = M(null);
705
- return /* @__PURE__ */ e.jsxs(_n, { open: m, children: [
706
- /* @__PURE__ */ e.jsx(en, { children: /* @__PURE__ */ e.jsx(
707
- sn,
674
+ const [d, c] = k(!1), [u, x] = k(!1), w = xn((p) => p.filtered.count), v = G(null);
675
+ return /* @__PURE__ */ e.jsxs(Xn, { open: d, children: [
676
+ /* @__PURE__ */ e.jsx(hn, { children: /* @__PURE__ */ e.jsx(
677
+ fn,
708
678
  {
709
- ref: (c) => {
710
- y.current = c, typeof l == "function" ? l(c) : l && (l.current = c);
679
+ ref: (p) => {
680
+ v.current = p, typeof l == "function" ? l(p) : l && (l.current = p);
711
681
  },
712
682
  value: t,
713
683
  placeholder: r,
714
- className: u("h-9 bg-transparent", a),
715
- onFocus: () => d(!0),
684
+ className: g("h-9 bg-transparent", a),
685
+ onFocus: () => c(!0),
716
686
  onBlur: () => {
717
- p || d(!1);
687
+ u || c(!1);
718
688
  },
719
- onKeyDown: (c) => {
720
- c.key === "Enter" && (d(!1), y.current?.blur(), i?.(c));
689
+ onKeyDown: (p) => {
690
+ var f;
691
+ p.key === "Enter" && (c(!1), (f = v.current) == null || f.blur(), i == null || i(p));
721
692
  },
722
- onValueChange: (c) => s(c)
693
+ onValueChange: (p) => s(p)
723
694
  }
724
695
  ) }),
725
696
  /* @__PURE__ */ e.jsx(
726
- gt,
697
+ It,
727
698
  {
728
699
  onMouseEnter: () => x(!0),
729
700
  onMouseLeave: () => x(!1),
730
- onOpenAutoFocus: (c) => c.preventDefault(),
731
- className: u("p-0 w-[--radix-popover-trigger-width]", {
732
- "border-0": N === 0
701
+ onOpenAutoFocus: (p) => p.preventDefault(),
702
+ className: g("p-0 w-[--radix-popover-trigger-width]", {
703
+ "border-0": w === 0
733
704
  }),
734
705
  align: "start",
735
706
  side: "bottom",
736
- onWheel: (c) => {
737
- c.stopPropagation();
707
+ onWheel: (p) => {
708
+ p.stopPropagation();
738
709
  },
739
- onTouchMove: (c) => {
740
- c.stopPropagation();
710
+ onTouchMove: (p) => {
711
+ p.stopPropagation();
741
712
  },
742
- children: /* @__PURE__ */ e.jsx(an, { className: "max-h-[140px]", children: n.map((c) => /* @__PURE__ */ e.jsx(
743
- rn,
713
+ children: /* @__PURE__ */ e.jsx(yn, { className: "max-h-[140px]", children: n.map((p) => /* @__PURE__ */ e.jsx(
714
+ vn,
744
715
  {
745
- value: c,
716
+ value: p,
746
717
  onSelect: (f) => {
747
- s(f), d(!1);
718
+ s(f), c(!1);
748
719
  },
749
720
  className: "cursor-pointer",
750
- children: c
721
+ children: p
751
722
  },
752
- c
723
+ p
753
724
  )) })
754
725
  }
755
726
  )
756
727
  ] });
757
- }, te = ({ shouldFilter: t, ...n }) => /* @__PURE__ */ e.jsx(nn, { className: "bg-transparent", shouldFilter: t, children: /* @__PURE__ */ e.jsx(Bn, { ...n }) }), Pe = (t, n) => {
758
- const s = g.forwardRef(({ className: a, asChild: r, ...i }, l) => {
759
- const m = r ? ln : t;
760
- return g.createElement(m, {
728
+ }, ae = ({ shouldFilter: t, ...n }) => /* @__PURE__ */ e.jsx(gn, { className: "bg-transparent", shouldFilter: t, children: /* @__PURE__ */ e.jsx(Kn, { ...n }) }), De = (t, n) => {
729
+ const s = b.forwardRef(({ className: a, asChild: r, ...i }, l) => {
730
+ const d = r ? bn : t;
731
+ return b.createElement(d, {
761
732
  ...i,
762
733
  ref: l,
763
- className: typeof n == "function" ? n({ className: a }) : u(n, a)
734
+ className: typeof n == "function" ? n({ className: a }) : g(n, a)
764
735
  });
765
736
  });
766
737
  return s.displayName = `VariantComponent(${t})`, s;
767
- }, Re = Pe(
738
+ }, Ve = De(
768
739
  "div",
769
740
  "grid grid-cols-[2fr_3fr] gap-2 items-center"
770
- ), ke = Pe(
741
+ ), Fe = De(
771
742
  "div",
772
743
  "group hover:bg-accent px-3 grid col-span-full grid-cols-subgrid"
773
- ), Gn = Object.freeze([
744
+ ), Yn = Object.freeze([
774
745
  "Accept",
775
746
  "Accept-Encoding",
776
747
  "Accept-Language",
@@ -797,66 +768,70 @@ const Bn = ({
797
768
  "Set-Cookie",
798
769
  "User-Agent",
799
770
  "X-Requested-With"
800
- ]), Jn = ({
771
+ ]), es = ({
801
772
  control: t,
802
773
  headers: n
803
774
  }) => {
804
- const { fields: s, append: a, remove: r } = Ne({
775
+ const { fields: s, append: a, remove: r } = Re({
805
776
  control: t,
806
777
  name: "headers"
807
- }), { setValue: i, watch: l } = we(), m = M([]), d = M([]), p = l("headers"), x = Gt(() => {
778
+ }), { setValue: i, watch: l } = Oe(), d = G([]), c = G([]), u = l("headers"), x = an(() => {
808
779
  a({ name: "", value: "", active: !1 });
809
780
  }, [a]);
810
- Y(() => {
811
- p.length === 0 && x();
812
- }, [p, x]);
813
- const N = (f) => {
814
- m.current[f]?.focus();
815
- }, y = (f) => {
816
- x(), requestAnimationFrame(() => d.current[f + 1]?.focus());
817
- }, c = n.filter((f) => !p.some((h) => h.name === f.name)).map(({ name: f }) => f);
781
+ ne(() => {
782
+ u.length === 0 && x();
783
+ }, [u, x]);
784
+ const w = (f) => {
785
+ var m;
786
+ (m = d.current[f]) == null || m.focus();
787
+ }, v = (f) => {
788
+ x(), requestAnimationFrame(() => {
789
+ var m;
790
+ return (m = c.current[f + 1]) == null ? void 0 : m.focus();
791
+ });
792
+ }, p = n.filter((f) => !u.some((m) => m.name === f.name)).map(({ name: f }) => f);
818
793
  return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
819
- /* @__PURE__ */ e.jsx(U, { className: "overflow-hidden", children: /* @__PURE__ */ e.jsx(Re, { children: s.map((f, h) => {
820
- const j = n.find(
821
- (b) => b.name === l(`headers.${h}.name`)
794
+ /* @__PURE__ */ e.jsx(le, { className: "overflow-hidden", children: /* @__PURE__ */ e.jsx(Ve, { children: s.map((f, m) => {
795
+ const y = n.find(
796
+ (h) => h.name === l(`headers.${m}.name`)
822
797
  );
823
- return /* @__PURE__ */ e.jsxs(ke, { children: [
798
+ return /* @__PURE__ */ e.jsxs(Fe, { children: [
824
799
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 ", children: [
825
800
  /* @__PURE__ */ e.jsx(
826
- E,
801
+ L,
827
802
  {
828
803
  control: t,
829
- name: `headers.${h}.active`,
830
- render: ({ field: b }) => /* @__PURE__ */ e.jsx(
831
- se,
804
+ name: `headers.${m}.active`,
805
+ render: ({ field: h }) => /* @__PURE__ */ e.jsx(
806
+ ce,
832
807
  {
833
- id: `headers.${h}.active`,
834
- checked: b.value,
835
- onCheckedChange: (k) => {
836
- b.onChange(k);
808
+ id: `headers.${m}.active`,
809
+ checked: h.value,
810
+ onCheckedChange: (T) => {
811
+ h.onChange(T);
837
812
  }
838
813
  }
839
814
  )
840
815
  }
841
816
  ),
842
817
  /* @__PURE__ */ e.jsx(
843
- E,
818
+ L,
844
819
  {
845
820
  control: t,
846
- name: `headers.${h}.name`,
847
- render: ({ field: b }) => /* @__PURE__ */ e.jsx(
848
- te,
821
+ name: `headers.${m}.name`,
822
+ render: ({ field: h }) => /* @__PURE__ */ e.jsx(
823
+ ae,
849
824
  {
850
- ...b,
825
+ ...h,
851
826
  placeholder: "Name",
852
827
  className: "border-0 shadow-none bg-transparent text-xs font-mono",
853
- options: [...c, ...Gn],
854
- onEnterPress: () => N(h),
855
- onChange: (k) => {
856
- b.onChange(k), i(`headers.${h}.active`, !0);
828
+ options: [...p, ...Yn],
829
+ onEnterPress: () => w(m),
830
+ onChange: (T) => {
831
+ h.onChange(T), i(`headers.${m}.active`, !0);
857
832
  },
858
- ref: (k) => {
859
- d.current[h] = k;
833
+ ref: (T) => {
834
+ c.current[m] = T;
860
835
  }
861
836
  }
862
837
  )
@@ -865,32 +840,32 @@ const Bn = ({
865
840
  ] }),
866
841
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
867
842
  /* @__PURE__ */ e.jsx(
868
- E,
843
+ L,
869
844
  {
870
845
  control: t,
871
- name: `headers.${h}.value`,
872
- render: ({ field: b }) => j?.enum && j.enum.length > 0 ? /* @__PURE__ */ e.jsx(
873
- te,
846
+ name: `headers.${m}.value`,
847
+ render: ({ field: h }) => (y == null ? void 0 : y.enum) && y.enum.length > 0 ? /* @__PURE__ */ e.jsx(
848
+ ae,
874
849
  {
875
850
  shouldFilter: !1,
876
- value: b.value,
877
- options: j.enum ?? [],
878
- onChange: (I) => {
879
- b.onChange(I), i(`headers.${h}.active`, !0);
851
+ value: h.value,
852
+ options: y.enum ?? [],
853
+ onChange: ($) => {
854
+ h.onChange($), i(`headers.${m}.active`, !0);
880
855
  },
881
856
  className: "font-mono text-xs border-0"
882
857
  }
883
858
  ) : /* @__PURE__ */ e.jsx(
884
- Ce,
859
+ qe,
885
860
  {
886
861
  placeholder: "Value",
887
862
  className: "w-full border-0 shadow-none text-xs font-mono focus-visible:ring-0",
888
- ...b,
889
- ref: (I) => {
890
- m.current[h] = I;
863
+ ...h,
864
+ ref: ($) => {
865
+ d.current[m] = $;
891
866
  },
892
- onKeyDown: (I) => {
893
- I.key === "Enter" && I.currentTarget.value.trim() && y(h);
867
+ onKeyDown: ($) => {
868
+ $.key === "Enter" && $.currentTarget.value.trim() && v(m);
894
869
  },
895
870
  autoComplete: "off"
896
871
  }
@@ -898,21 +873,21 @@ const Bn = ({
898
873
  }
899
874
  ),
900
875
  /* @__PURE__ */ e.jsx(
901
- G,
876
+ W,
902
877
  {
903
878
  size: "icon",
904
879
  variant: "ghost",
905
880
  className: "text-muted-foreground opacity-0 group-hover:opacity-100 rounded-full w-8 h-7",
906
- onClick: () => r(h),
881
+ onClick: () => r(m),
907
882
  type: "button",
908
- children: /* @__PURE__ */ e.jsx(Ot, { size: 16 })
883
+ children: /* @__PURE__ */ e.jsx(Gt, { size: 16 })
909
884
  }
910
885
  )
911
886
  ] })
912
887
  ] }, f.id);
913
888
  }) }) }),
914
889
  /* @__PURE__ */ e.jsx("div", { className: "text-end", children: /* @__PURE__ */ e.jsx(
915
- G,
890
+ W,
916
891
  {
917
892
  className: "",
918
893
  onClick: x,
@@ -922,110 +897,110 @@ const Bn = ({
922
897
  }
923
898
  ) })
924
899
  ] });
925
- }, Un = ot(
900
+ }, ts = vt(
926
901
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
927
- ), z = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
928
- dt.Root,
902
+ ), _ = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
903
+ Nt.Root,
929
904
  {
930
905
  ref: s,
931
- className: u(Un(), t),
906
+ className: g(ts(), t),
932
907
  ...n
933
908
  }
934
909
  ));
935
- z.displayName = dt.Root.displayName;
936
- const Ie = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
937
- J.Root,
910
+ _.displayName = Nt.Root.displayName;
911
+ const ze = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
912
+ Z.Root,
938
913
  {
939
- className: u("grid gap-2", t),
914
+ className: g("grid gap-2", t),
940
915
  ...n,
941
916
  ref: s
942
917
  }
943
918
  ));
944
- Ie.displayName = J.Root.displayName;
945
- const ne = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
946
- J.Item,
919
+ ze.displayName = Z.Root.displayName;
920
+ const re = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
921
+ Z.Item,
947
922
  {
948
923
  ref: s,
949
- className: u(
924
+ className: g(
950
925
  "aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
951
926
  t
952
927
  ),
953
928
  ...n,
954
- children: /* @__PURE__ */ e.jsx(J.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(qt, { className: "h-2.5 w-2.5 fill-current text-current" }) })
929
+ children: /* @__PURE__ */ e.jsx(Z.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(Jt, { className: "h-2.5 w-2.5 fill-current text-current" }) })
955
930
  }
956
931
  ));
957
- ne.displayName = J.Item.displayName;
958
- const yt = ({
932
+ re.displayName = Z.Item.displayName;
933
+ const Rt = ({
959
934
  identities: t,
960
935
  setValue: n,
961
936
  value: s
962
- }) => /* @__PURE__ */ e.jsx(U, { className: "w-full overflow-hidden", children: /* @__PURE__ */ e.jsxs(
963
- Ie,
937
+ }) => /* @__PURE__ */ e.jsx(le, { className: "w-full overflow-hidden", children: /* @__PURE__ */ e.jsxs(
938
+ ze,
964
939
  {
965
940
  onValueChange: (a) => n(a),
966
941
  value: s,
967
- defaultValue: H,
942
+ defaultValue: B,
968
943
  className: "gap-0",
969
- disabled: t?.length === 0,
944
+ disabled: (t == null ? void 0 : t.length) === 0,
970
945
  children: [
971
946
  /* @__PURE__ */ e.jsxs(
972
- z,
947
+ _,
973
948
  {
974
949
  className: "h-12 border-b items-center flex p-4 cursor-pointer hover:bg-accent",
975
950
  htmlFor: "none",
976
951
  children: [
977
- /* @__PURE__ */ e.jsx(ne, { value: H, id: "none", children: "None" }),
978
- /* @__PURE__ */ e.jsx(z, { htmlFor: "none", className: "ml-2", children: "None" })
952
+ /* @__PURE__ */ e.jsx(re, { value: B, id: "none", children: "None" }),
953
+ /* @__PURE__ */ e.jsx(_, { htmlFor: "none", className: "ml-2", children: "None" })
979
954
  ]
980
955
  }
981
956
  ),
982
- t?.map((a) => /* @__PURE__ */ e.jsxs(
983
- z,
957
+ t == null ? void 0 : t.map((a) => /* @__PURE__ */ e.jsxs(
958
+ _,
984
959
  {
985
960
  className: "h-12 border-b items-center flex p-4 cursor-pointer hover:bg-accent",
986
961
  children: [
987
- /* @__PURE__ */ e.jsx(ne, { value: a.id, id: a.id, children: a.label }),
988
- /* @__PURE__ */ e.jsx(z, { htmlFor: a.id, className: "ml-2", children: a.label })
962
+ /* @__PURE__ */ e.jsx(re, { value: a.id, id: a.id, children: a.label }),
963
+ /* @__PURE__ */ e.jsx(_, { htmlFor: a.id, className: "ml-2", children: a.label })
989
964
  ]
990
965
  },
991
966
  a.id
992
967
  ))
993
968
  ]
994
969
  }
995
- ) }), Qn = ({
970
+ ) }), ns = ({
996
971
  onSubmit: t,
997
972
  identities: n,
998
973
  open: s,
999
974
  onOpenChange: a
1000
975
  }) => {
1001
- const [r, i] = $(void 0), [l, m] = $(!1);
1002
- return /* @__PURE__ */ e.jsx(ve, { open: s, onOpenChange: a, children: /* @__PURE__ */ e.jsxs(je, { children: [
1003
- /* @__PURE__ */ e.jsx(be, { children: "Select an auth identity" }),
1004
- /* @__PURE__ */ e.jsx(at, { children: "Please select an identity for this request." }),
976
+ const [r, i] = k(void 0), [l, d] = k(!1);
977
+ return /* @__PURE__ */ e.jsx(Pe, { open: s, onOpenChange: a, children: /* @__PURE__ */ e.jsxs(ke, { children: [
978
+ /* @__PURE__ */ e.jsx(Ie, { children: "Select an auth identity" }),
979
+ /* @__PURE__ */ e.jsx(ft, { children: "Please select an identity for this request." }),
1005
980
  /* @__PURE__ */ e.jsx("div", { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ e.jsx(
1006
- yt,
981
+ Rt,
1007
982
  {
1008
983
  identities: n,
1009
984
  setValue: i,
1010
985
  value: r
1011
986
  }
1012
987
  ) }),
1013
- /* @__PURE__ */ e.jsxs(rt, { className: "flex flex-col gap-2", children: [
988
+ /* @__PURE__ */ e.jsxs(yt, { className: "flex flex-col gap-2", children: [
1014
989
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
1015
990
  /* @__PURE__ */ e.jsx(
1016
- se,
991
+ ce,
1017
992
  {
1018
993
  id: "remember",
1019
994
  checked: l,
1020
- onCheckedChange: (d) => m(
1021
- d === "indeterminate" ? !1 : !!d
995
+ onCheckedChange: (c) => d(
996
+ c === "indeterminate" ? !1 : !!c
1022
997
  )
1023
998
  }
1024
999
  ),
1025
- /* @__PURE__ */ e.jsx(z, { htmlFor: "remember", children: "Remember my choice" })
1000
+ /* @__PURE__ */ e.jsx(_, { htmlFor: "remember", children: "Remember my choice" })
1026
1001
  ] }),
1027
1002
  /* @__PURE__ */ e.jsx(
1028
- L,
1003
+ A,
1029
1004
  {
1030
1005
  onClick: () => t({ identity: r, rememberedIdentity: l }),
1031
1006
  children: "Send"
@@ -1033,24 +1008,24 @@ const yt = ({
1033
1008
  )
1034
1009
  ] })
1035
1010
  ] }) });
1036
- }, Wn = ({
1011
+ }, ss = ({
1037
1012
  control: t,
1038
1013
  url: n
1039
1014
  }) => {
1040
- const { fields: s } = Ne({
1015
+ const { fields: s } = Re({
1041
1016
  control: t,
1042
1017
  name: "pathParams"
1043
1018
  }), a = [...s].sort(
1044
1019
  (r, i) => n.indexOf(`{${r.name}}`) - n.indexOf(`{${i.name}}`)
1045
1020
  );
1046
- return /* @__PURE__ */ e.jsx(U, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx(Re, { children: a.map((r, i) => /* @__PURE__ */ e.jsxs(ke, { children: [
1021
+ return /* @__PURE__ */ e.jsx(le, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx(Ve, { children: a.map((r, i) => /* @__PURE__ */ e.jsxs(Fe, { children: [
1047
1022
  /* @__PURE__ */ e.jsx(
1048
- E,
1023
+ L,
1049
1024
  {
1050
1025
  control: t,
1051
1026
  name: `pathParams.${i}.name`,
1052
1027
  render: () => /* @__PURE__ */ e.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ e.jsx(
1053
- ut,
1028
+ St,
1054
1029
  {
1055
1030
  slug: r.name,
1056
1031
  name: r.name,
@@ -1060,12 +1035,12 @@ const yt = ({
1060
1035
  }
1061
1036
  ),
1062
1037
  /* @__PURE__ */ e.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ e.jsx(
1063
- E,
1038
+ L,
1064
1039
  {
1065
1040
  control: t,
1066
1041
  name: `pathParams.${i}.value`,
1067
1042
  render: ({ field: l }) => /* @__PURE__ */ e.jsx(
1068
- Ce,
1043
+ qe,
1069
1044
  {
1070
1045
  ...l,
1071
1046
  required: !0,
@@ -1076,61 +1051,61 @@ const yt = ({
1076
1051
  }
1077
1052
  ) })
1078
1053
  ] }, r.id)) }) });
1079
- }, Zn = Pe(
1054
+ }, as = De(
1080
1055
  "input",
1081
1056
  "px-2 bg-transparent h-6 font-mono text-xs m-2"
1082
- ), Xn = ({
1057
+ ), rs = ({
1083
1058
  control: t,
1084
1059
  queryParams: n
1085
1060
  }) => {
1086
- const { fields: s } = Ne({
1061
+ const { fields: s } = Re({
1087
1062
  control: t,
1088
1063
  name: "queryParams"
1089
- }), a = we(), r = n.map((i) => !!i.isRequired);
1090
- return /* @__PURE__ */ e.jsx(U, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx("div", { className: "w-full ", children: /* @__PURE__ */ e.jsx(Re, { children: s.map((i, l) => {
1091
- const m = n.find(
1092
- (d) => d.name === a.watch(`queryParams.${l}.name`)
1064
+ }), a = Oe(), r = n.map((i) => !!i.isRequired);
1065
+ return /* @__PURE__ */ e.jsx(le, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx("div", { className: "w-full ", children: /* @__PURE__ */ e.jsx(Ve, { children: s.map((i, l) => {
1066
+ const d = n.find(
1067
+ (c) => c.name === a.watch(`queryParams.${l}.name`)
1093
1068
  );
1094
- return /* @__PURE__ */ e.jsxs(ke, { children: [
1069
+ return /* @__PURE__ */ e.jsxs(Fe, { children: [
1095
1070
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
1096
1071
  /* @__PURE__ */ e.jsx(
1097
- E,
1072
+ L,
1098
1073
  {
1099
1074
  control: t,
1100
1075
  name: `queryParams.${l}.active`,
1101
- render: ({ field: d }) => /* @__PURE__ */ e.jsx(
1102
- se,
1076
+ render: ({ field: c }) => /* @__PURE__ */ e.jsx(
1077
+ ce,
1103
1078
  {
1104
1079
  id: `queryParams.${l}.active`,
1105
1080
  className: "mr-2",
1106
- checked: d.value,
1107
- onCheckedChange: d.onChange
1081
+ checked: c.value,
1082
+ onCheckedChange: c.onChange
1108
1083
  }
1109
1084
  )
1110
1085
  }
1111
1086
  ),
1112
1087
  /* @__PURE__ */ e.jsx(
1113
- E,
1088
+ L,
1114
1089
  {
1115
1090
  control: t,
1116
- render: ({ field: d }) => r[l] ? /* @__PURE__ */ e.jsx(Zn, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
1091
+ render: ({ field: c }) => r[l] ? /* @__PURE__ */ e.jsx(as, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
1117
1092
  "label",
1118
1093
  {
1119
1094
  className: "flex items-center cursor-pointer gap-1",
1120
1095
  htmlFor: `queryParams.${l}.active`,
1121
1096
  title: r[l] ? "Required field" : void 0,
1122
1097
  children: [
1123
- d.value,
1098
+ c.value,
1124
1099
  r[l] && /* @__PURE__ */ e.jsx("sup", { children: " *" })
1125
1100
  ]
1126
1101
  }
1127
1102
  ) }) : /* @__PURE__ */ e.jsx(
1128
- te,
1103
+ ae,
1129
1104
  {
1130
- value: d.value,
1131
- options: n.map((p) => p.name),
1132
- onChange: (p) => {
1133
- d.onChange(p);
1105
+ value: c.value,
1106
+ options: n.map((u) => u.name),
1107
+ onChange: (u) => {
1108
+ c.onChange(u);
1134
1109
  },
1135
1110
  className: "border-0 font-mono text-xs bg-transparent hover:bg-transparent"
1136
1111
  }
@@ -1140,25 +1115,25 @@ const yt = ({
1140
1115
  )
1141
1116
  ] }, i.id),
1142
1117
  /* @__PURE__ */ e.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ e.jsx(
1143
- E,
1118
+ L,
1144
1119
  {
1145
1120
  control: t,
1146
- render: ({ field: d }) => m?.enum && m.enum.length > 0 ? /* @__PURE__ */ e.jsx(
1147
- te,
1121
+ render: ({ field: c }) => (d == null ? void 0 : d.enum) && d.enum.length > 0 ? /* @__PURE__ */ e.jsx(
1122
+ ae,
1148
1123
  {
1149
- value: d.value,
1150
- options: m.enum ?? [],
1124
+ value: c.value,
1125
+ options: d.enum ?? [],
1151
1126
  onChange: (x) => {
1152
- d.onChange(x), a.setValue(`queryParams.${l}.active`, !0);
1127
+ c.onChange(x), a.setValue(`queryParams.${l}.active`, !0);
1153
1128
  },
1154
1129
  className: "font-mono text-xs border-0 ring-1 ring-ring"
1155
1130
  }
1156
1131
  ) : /* @__PURE__ */ e.jsx(
1157
- Ce,
1132
+ qe,
1158
1133
  {
1159
- ...d,
1134
+ ...c,
1160
1135
  onChange: (x) => {
1161
- d.onChange(x.target.value), x.target.value.length > 0 && a.setValue(`queryParams.${l}.active`, !0);
1136
+ c.onChange(x.target.value), x.target.value.length > 0 && a.setValue(`queryParams.${l}.active`, !0);
1162
1137
  },
1163
1138
  placeholder: "Enter value",
1164
1139
  className: "w-full border-0 shadow-none focus-visible:ring-0 text-xs font-mono"
@@ -1169,8 +1144,8 @@ const yt = ({
1169
1144
  ) })
1170
1145
  ] }, i.id);
1171
1146
  }) }) }) });
1172
- }, Kn = nt()(
1173
- st(
1147
+ }, os = xt()(
1148
+ gt(
1174
1149
  (t, n) => ({
1175
1150
  rememberedIdentity: null,
1176
1151
  setRememberedIdentity: (s) => t({ rememberedIdentity: s }),
@@ -1180,25 +1155,25 @@ const yt = ({
1180
1155
  }),
1181
1156
  {
1182
1157
  name: "identity-storage",
1183
- storage: Vt(() => sessionStorage)
1158
+ storage: Xt(() => sessionStorage)
1184
1159
  }
1185
1160
  )
1186
- ), Yn = ({
1161
+ ), is = ({
1187
1162
  open: t,
1188
1163
  setOpen: n,
1189
1164
  onSignUp: s,
1190
1165
  onLogin: a
1191
- }) => /* @__PURE__ */ e.jsx(ve, { open: t, onOpenChange: n, children: /* @__PURE__ */ e.jsxs(je, { children: [
1192
- /* @__PURE__ */ e.jsx(be, { children: "Welcome to the Playground!" }),
1193
- /* @__PURE__ */ e.jsx(at, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
1194
- /* @__PURE__ */ e.jsxs(rt, { className: "flex gap-2 sm:justify-between", children: [
1195
- /* @__PURE__ */ e.jsx(L, { type: "button", variant: "ghost", onClick: () => n(!1), children: "Skip" }),
1166
+ }) => /* @__PURE__ */ e.jsx(Pe, { open: t, onOpenChange: n, children: /* @__PURE__ */ e.jsxs(ke, { children: [
1167
+ /* @__PURE__ */ e.jsx(Ie, { children: "Welcome to the Playground!" }),
1168
+ /* @__PURE__ */ e.jsx(ft, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
1169
+ /* @__PURE__ */ e.jsxs(yt, { className: "flex gap-2 sm:justify-between", children: [
1170
+ /* @__PURE__ */ e.jsx(A, { type: "button", variant: "ghost", onClick: () => n(!1), children: "Skip" }),
1196
1171
  /* @__PURE__ */ e.jsxs("div", { className: "flex gap-2", children: [
1197
- s && /* @__PURE__ */ e.jsx(L, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
1198
- a && /* @__PURE__ */ e.jsx(L, { type: "button", variant: "default", onClick: a, children: "Login" })
1172
+ s && /* @__PURE__ */ e.jsx(A, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
1173
+ a && /* @__PURE__ */ e.jsx(A, { type: "button", variant: "default", onClick: a, children: "Login" })
1199
1174
  ] })
1200
1175
  ] })
1201
- ] }) }), P = {
1176
+ ] }) }), I = {
1202
1177
  green: "text-green-600",
1203
1178
  blue: "text-sky-600",
1204
1179
  yellow: "text-yellow-600",
@@ -1206,48 +1181,48 @@ const yt = ({
1206
1181
  purple: "text-purple-600",
1207
1182
  indigo: "text-indigo-600",
1208
1183
  gray: "text-gray-600"
1209
- }, es = {
1210
- get: P.green,
1211
- post: P.blue,
1212
- put: P.yellow,
1213
- delete: P.red,
1214
- patch: P.purple,
1215
- options: P.indigo,
1216
- head: P.gray,
1217
- trace: P.gray
1218
- }, ts = (t) => es[t.toLocaleLowerCase()] ?? P.gray, ns = ({
1184
+ }, ls = {
1185
+ get: I.green,
1186
+ post: I.blue,
1187
+ put: I.yellow,
1188
+ delete: I.red,
1189
+ patch: I.purple,
1190
+ options: I.indigo,
1191
+ head: I.gray,
1192
+ trace: I.gray
1193
+ }, cs = (t) => ls[t.toLocaleLowerCase()] ?? I.gray, ds = ({
1219
1194
  method: t,
1220
1195
  url: n,
1221
1196
  headers: s,
1222
1197
  body: a
1223
1198
  }) => /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 font-mono text-xs", children: [
1224
1199
  /* @__PURE__ */ e.jsxs("div", { className: "gap-2 p-2 bg-muted rounded-md", children: [
1225
- /* @__PURE__ */ e.jsx("span", { className: u(ts(t), "font-semibold"), children: t }),
1200
+ /* @__PURE__ */ e.jsx("span", { className: g(cs(t), "font-semibold"), children: t }),
1226
1201
  " ",
1227
1202
  /* @__PURE__ */ e.jsx("span", { className: "break-all", children: n }),
1228
1203
  " ",
1229
1204
  /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: "HTTP/1.1" })
1230
1205
  ] }),
1231
1206
  /* @__PURE__ */ e.jsxs("div", { className: "mx-1.5 flex flex-col gap-3", children: [
1232
- /* @__PURE__ */ e.jsxs(Ge, { defaultOpen: !0, children: [
1233
- /* @__PURE__ */ e.jsxs(Je, { className: "flex items-center gap-2 hover:text-primary group", children: [
1234
- /* @__PURE__ */ e.jsx(B, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1207
+ /* @__PURE__ */ e.jsxs(at, { defaultOpen: !0, children: [
1208
+ /* @__PURE__ */ e.jsxs(rt, { className: "flex items-center gap-2 hover:text-primary group", children: [
1209
+ /* @__PURE__ */ e.jsx(Q, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1235
1210
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Headers" })
1236
1211
  ] }),
1237
- /* @__PURE__ */ e.jsx(Ue, { children: /* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 pl-1.5 pt-2", children: s.map(([r, i]) => /* @__PURE__ */ e.jsxs(q, { children: [
1212
+ /* @__PURE__ */ e.jsx(ot, { children: /* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 pl-1.5 pt-2", children: s.map(([r, i]) => /* @__PURE__ */ e.jsxs(q, { children: [
1238
1213
  /* @__PURE__ */ e.jsx("div", { className: "text-primary", children: r }),
1239
1214
  /* @__PURE__ */ e.jsx("div", { className: "break-all", children: i })
1240
1215
  ] }, r)) }) })
1241
1216
  ] }),
1242
- /* @__PURE__ */ e.jsxs(Ge, { defaultOpen: !0, children: [
1243
- /* @__PURE__ */ e.jsxs(Je, { className: "flex items-center gap-2 hover:text-primary group", children: [
1244
- /* @__PURE__ */ e.jsx(B, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1217
+ /* @__PURE__ */ e.jsxs(at, { defaultOpen: !0, children: [
1218
+ /* @__PURE__ */ e.jsxs(rt, { className: "flex items-center gap-2 hover:text-primary group", children: [
1219
+ /* @__PURE__ */ e.jsx(Q, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1245
1220
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Body" })
1246
1221
  ] }),
1247
- /* @__PURE__ */ e.jsx(Ue, { children: /* @__PURE__ */ e.jsx("div", { className: "pl-0 pt-2", children: /* @__PURE__ */ e.jsx(
1222
+ /* @__PURE__ */ e.jsx(ot, { children: /* @__PURE__ */ e.jsx("div", { className: "pl-0 pt-2", children: /* @__PURE__ */ e.jsx(
1248
1223
  "div",
1249
1224
  {
1250
- className: u(
1225
+ className: g(
1251
1226
  "whitespace-pre-wrap break-all bg-muted p-2 rounded-md",
1252
1227
  !a && "text-muted-foreground"
1253
1228
  ),
@@ -1256,29 +1231,29 @@ const yt = ({
1256
1231
  ) }) })
1257
1232
  ] })
1258
1233
  ] })
1259
- ] }), We = Se.Root, Ze = Se.CollapsibleTrigger, Xe = Se.CollapsibleContent;
1260
- function Oe(t) {
1234
+ ] }), lt = Le.Root, ct = Le.CollapsibleTrigger, dt = Le.CollapsibleContent;
1235
+ function Me(t) {
1261
1236
  if (t === null) return "null";
1262
1237
  if (Array.isArray(t)) {
1263
1238
  if (t.length === 0) return "any[]";
1264
1239
  const n = t[0];
1265
- return n === void 0 ? "any[]" : `${Oe(n)}[]`;
1240
+ return n === void 0 ? "any[]" : `${Me(n)}[]`;
1266
1241
  }
1267
- return typeof t == "object" ? ss(t) : typeof t;
1242
+ return typeof t == "object" ? ms(t) : typeof t;
1268
1243
  }
1269
- function ss(t, n = "") {
1244
+ function ms(t, n = "") {
1270
1245
  const s = ["{"];
1271
1246
  for (const [a, r] of Object.entries(t)) {
1272
- const i = Oe(r);
1247
+ const i = Me(r);
1273
1248
  s.push(` ${a}: ${i};`);
1274
1249
  }
1275
1250
  return s.push("}"), s.join(`
1276
1251
  `);
1277
1252
  }
1278
- function as(t) {
1279
- return { lines: [`type GeneratedType = ${Oe(t)};`] };
1253
+ function us(t) {
1254
+ return { lines: [`type GeneratedType = ${Me(t)};`] };
1280
1255
  }
1281
- const rs = {
1256
+ const ps = {
1282
1257
  200: "OK",
1283
1258
  201: "Created",
1284
1259
  202: "Accepted",
@@ -1289,31 +1264,35 @@ const rs = {
1289
1264
  404: "Not Found",
1290
1265
  405: "Method Not Allowed",
1291
1266
  500: "Internal Server Error"
1292
- }, Ke = (t) => {
1267
+ }, mt = (t) => {
1293
1268
  const n = Math.floor(Math.log(t) / Math.log(1e3));
1294
1269
  return `${(t / Math.pow(1e3, n)).toFixed(
1295
1270
  n ? 2 : 0
1296
1271
  )} ${n ? `${"kMGTPEZY"[n - 1]}B` : "B"}`;
1297
- }, os = (t) => Object.entries({
1298
- "application/json": "json",
1299
- "text/json": "json",
1300
- "text/html": "html",
1301
- "text/css": "css",
1302
- "text/javascript": "javascript",
1303
- "application/xml": "xml",
1304
- "application/xhtml+xml": "xhtml"
1305
- }).find(
1306
- ([s]) => t.includes(s)
1307
- )?.[1], is = (t) => {
1308
- const n = t.find(([s, a]) => s === "Content-Type")?.[1] || "";
1309
- return os(n);
1310
- }, ls = (t) => {
1272
+ }, hs = (t) => {
1273
+ var s;
1274
+ return (s = Object.entries({
1275
+ "application/json": "json",
1276
+ "text/json": "json",
1277
+ "text/html": "html",
1278
+ "text/css": "css",
1279
+ "text/javascript": "javascript",
1280
+ "application/xml": "xml",
1281
+ "application/xhtml+xml": "xhtml"
1282
+ }).find(
1283
+ ([a]) => t.includes(a)
1284
+ )) == null ? void 0 : s[1];
1285
+ }, xs = (t) => {
1286
+ var s;
1287
+ const n = ((s = t.find(([a, r]) => a === "Content-Type")) == null ? void 0 : s[1]) || "";
1288
+ return hs(n);
1289
+ }, gs = (t) => {
1311
1290
  try {
1312
1291
  return JSON.stringify(JSON.parse(t), null, 2);
1313
1292
  } catch {
1314
1293
  return null;
1315
1294
  }
1316
- }, ds = (t) => {
1295
+ }, fs = (t) => {
1317
1296
  const n = [
1318
1297
  "Content-Type",
1319
1298
  "Content-Length",
@@ -1327,7 +1306,7 @@ const rs = {
1327
1306
  const r = n.indexOf(s.toLowerCase()), i = n.indexOf(a.toLowerCase());
1328
1307
  return r === i ? 0 : r === -1 ? 1 : i === -1 ? -1 : r - i;
1329
1308
  });
1330
- }, Ye = 64e3, cs = ({
1309
+ }, ut = 64e3, ys = ({
1331
1310
  body: t = "",
1332
1311
  headers: n,
1333
1312
  status: s,
@@ -1335,54 +1314,55 @@ const rs = {
1335
1314
  size: r,
1336
1315
  url: i
1337
1316
  }) => {
1338
- const l = is(n), m = ls(t), d = m || t, [p, x] = $(
1339
- m ? "formatted" : "raw"
1340
- ), N = Ft({
1341
- queryKey: ["types", d],
1342
- queryFn: async () => as(JSON.parse(d)),
1343
- enabled: p === "types"
1344
- }), y = ds([...n]), c = r > Ye;
1317
+ var f;
1318
+ const l = xs(n), d = gs(t), c = d || t, [u, x] = k(
1319
+ d ? "formatted" : "raw"
1320
+ ), w = Kt({
1321
+ queryKey: ["types", c],
1322
+ queryFn: async () => us(JSON.parse(c)),
1323
+ enabled: u === "types"
1324
+ }), v = fs([...n]), p = r > ut;
1345
1325
  return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 h-full overflow-auto max-h-[calc(100vh-220px)] ", children: [
1346
- /* @__PURE__ */ e.jsxs(We, { defaultOpen: !0, children: [
1347
- /* @__PURE__ */ e.jsxs(Ze, { className: "flex items-center gap-2 hover:text-primary group", children: [
1348
- /* @__PURE__ */ e.jsx(B, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1326
+ /* @__PURE__ */ e.jsxs(lt, { defaultOpen: !0, children: [
1327
+ /* @__PURE__ */ e.jsxs(ct, { className: "flex items-center gap-2 hover:text-primary group", children: [
1328
+ /* @__PURE__ */ e.jsx(Q, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1349
1329
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Headers" })
1350
1330
  ] }),
1351
- /* @__PURE__ */ e.jsx(Xe, { children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 pl-1.5 pt-2 font-mono text-xs", children: [
1352
- y.slice(0, 5).map(([f, h]) => /* @__PURE__ */ e.jsxs(q, { children: [
1353
- /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: f }),
1354
- /* @__PURE__ */ e.jsx("div", { className: "break-all", children: h })
1355
- ] }, f)),
1356
- y.length > 5 && /* @__PURE__ */ e.jsxs(We, { className: "col-span-full grid-cols-subgrid grid", children: [
1357
- /* @__PURE__ */ e.jsxs(Ze, { className: "col-span-2 text-xs text-muted-foreground hover:text-primary flex items-center gap-1 py-1", children: [
1358
- /* @__PURE__ */ e.jsx(B, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1331
+ /* @__PURE__ */ e.jsx(dt, { children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 pl-1.5 pt-2 font-mono text-xs", children: [
1332
+ v.slice(0, 5).map(([m, y]) => /* @__PURE__ */ e.jsxs(q, { children: [
1333
+ /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: m }),
1334
+ /* @__PURE__ */ e.jsx("div", { className: "break-all", children: y })
1335
+ ] }, m)),
1336
+ v.length > 5 && /* @__PURE__ */ e.jsxs(lt, { className: "col-span-full grid-cols-subgrid grid", children: [
1337
+ /* @__PURE__ */ e.jsxs(ct, { className: "col-span-2 text-xs text-muted-foreground hover:text-primary flex items-center gap-1 py-1", children: [
1338
+ /* @__PURE__ */ e.jsx(Q, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1359
1339
  "Show ",
1360
- y.length - 5,
1340
+ v.length - 5,
1361
1341
  " more headers"
1362
1342
  ] }),
1363
- /* @__PURE__ */ e.jsx(Xe, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: y.slice(5).map(([f, h]) => /* @__PURE__ */ e.jsxs(q, { children: [
1364
- /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: f }),
1365
- /* @__PURE__ */ e.jsx("div", { className: "break-all", children: h })
1366
- ] }, f)) })
1343
+ /* @__PURE__ */ e.jsx(dt, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: v.slice(5).map(([m, y]) => /* @__PURE__ */ e.jsxs(q, { children: [
1344
+ /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: m }),
1345
+ /* @__PURE__ */ e.jsx("div", { className: "break-all", children: y })
1346
+ ] }, m)) })
1367
1347
  ] })
1368
1348
  ] }) })
1369
1349
  ] }),
1370
- /* @__PURE__ */ e.jsxs(ct, { className: "shadow-none", children: [
1371
- c && /* @__PURE__ */ e.jsxs(on, { type: "info", className: "my-0 p-2", children: [
1350
+ /* @__PURE__ */ e.jsxs(wt, { className: "shadow-none", children: [
1351
+ p && /* @__PURE__ */ e.jsxs(jn, { type: "info", className: "my-0 p-2", children: [
1372
1352
  "Code highlight is disabled for responses larger than",
1373
1353
  " ",
1374
- Ke(Ye)
1354
+ mt(ut)
1375
1355
  ] }),
1376
1356
  /* @__PURE__ */ e.jsx(
1377
- hn,
1357
+ $n,
1378
1358
  {
1379
- language: p === "types" ? "typescript" : p === "raw" ? m ? "plain" : l : "json",
1359
+ language: u === "types" ? "typescript" : u === "raw" ? d ? "plain" : l : "json",
1380
1360
  showCopy: "always",
1381
- disabled: c,
1361
+ disabled: p,
1382
1362
  noBackground: !0,
1383
1363
  className: "overflow-x-auto p-4 text-xs max-h-[calc(83.333vh-180px)]",
1384
- code: (p === "raw" ? t : p === "types" ? N.data?.lines.join(`
1385
- `) : d) ?? ""
1364
+ code: (u === "raw" ? t : u === "types" ? (f = w.data) == null ? void 0 : f.lines.join(`
1365
+ `) : c) ?? ""
1386
1366
  }
1387
1367
  )
1388
1368
  ] }),
@@ -1393,7 +1373,7 @@ const rs = {
1393
1373
  " ",
1394
1374
  s,
1395
1375
  " ",
1396
- rs[s] ?? ""
1376
+ ps[s] ?? ""
1397
1377
  ] }),
1398
1378
  /* @__PURE__ */ e.jsxs("div", { children: [
1399
1379
  /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: "Time" }),
@@ -1404,52 +1384,53 @@ const rs = {
1404
1384
  /* @__PURE__ */ e.jsxs("div", { children: [
1405
1385
  /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: "Size" }),
1406
1386
  " ",
1407
- Ke(r)
1387
+ mt(r)
1408
1388
  ] })
1409
1389
  ] }),
1410
- m && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
1411
- me,
1390
+ d && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
1391
+ je,
1412
1392
  {
1413
- value: p,
1414
- onValueChange: (f) => x(f),
1393
+ value: u,
1394
+ onValueChange: (m) => x(m),
1415
1395
  children: [
1416
- /* @__PURE__ */ e.jsx(ue, { className: "min-w-32", children: /* @__PURE__ */ e.jsx(pe, { placeholder: "View" }) }),
1417
- /* @__PURE__ */ e.jsxs(he, { children: [
1418
- /* @__PURE__ */ e.jsx(_, { value: "formatted", children: "Formatted" }),
1419
- /* @__PURE__ */ e.jsx(_, { value: "raw", children: "Raw" }),
1420
- /* @__PURE__ */ e.jsx(_, { value: "types", children: "Types" })
1396
+ /* @__PURE__ */ e.jsx(be, { className: "min-w-32", children: /* @__PURE__ */ e.jsx(Ne, { placeholder: "View" }) }),
1397
+ /* @__PURE__ */ e.jsxs(we, { children: [
1398
+ /* @__PURE__ */ e.jsx(U, { value: "formatted", children: "Formatted" }),
1399
+ /* @__PURE__ */ e.jsx(U, { value: "raw", children: "Raw" }),
1400
+ /* @__PURE__ */ e.jsx(U, { value: "types", children: "Types" })
1421
1401
  ] })
1422
1402
  ]
1423
1403
  }
1424
1404
  ) })
1425
1405
  ] })
1426
1406
  ] });
1427
- }, ms = ({
1407
+ }, vs = ({
1428
1408
  queryMutation: t,
1429
1409
  showPathParamsWarning: n,
1430
1410
  showLongRunningWarning: s,
1431
1411
  onCancel: a
1432
1412
  }) => {
1433
- const r = ((t.data?.status ?? 0) / 100).toFixed(0);
1413
+ var i;
1414
+ const r = ((((i = t.data) == null ? void 0 : i.status) ?? 0) / 100).toFixed(0);
1434
1415
  return /* @__PURE__ */ e.jsx("div", { className: "min-w-0 p-4 py-8 bg-muted/50", children: t.error ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
1435
- n && /* @__PURE__ */ e.jsx(cn, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
1436
- /* @__PURE__ */ e.jsxs(ct, { children: [
1437
- /* @__PURE__ */ e.jsx(mn, { children: /* @__PURE__ */ e.jsx(un, { children: "Request failed" }) }),
1438
- /* @__PURE__ */ e.jsxs(pn, { children: [
1416
+ n && /* @__PURE__ */ e.jsx(wn, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
1417
+ /* @__PURE__ */ e.jsxs(wt, { children: [
1418
+ /* @__PURE__ */ e.jsx(Cn, { children: /* @__PURE__ */ e.jsx(Sn, { children: "Request failed" }) }),
1419
+ /* @__PURE__ */ e.jsxs(Tn, { children: [
1439
1420
  "Error:",
1440
1421
  " ",
1441
1422
  t.error.message || String(t.error) || "Unexpected error"
1442
1423
  ] })
1443
1424
  ] })
1444
- ] }) : t.data ? /* @__PURE__ */ e.jsxs(it, { defaultValue: "response", children: [
1445
- /* @__PURE__ */ e.jsxs(lt, { children: [
1446
- /* @__PURE__ */ e.jsx(V, { value: "request", children: "Request" }),
1447
- /* @__PURE__ */ e.jsxs(V, { value: "response", children: [
1425
+ ] }) : t.data ? /* @__PURE__ */ e.jsxs(jt, { defaultValue: "response", children: [
1426
+ /* @__PURE__ */ e.jsxs(bt, { children: [
1427
+ /* @__PURE__ */ e.jsx(M, { value: "request", children: "Request" }),
1428
+ /* @__PURE__ */ e.jsxs(M, { value: "response", children: [
1448
1429
  "Response",
1449
1430
  /* @__PURE__ */ e.jsxs(
1450
1431
  "span",
1451
1432
  {
1452
- className: u(
1433
+ className: g(
1453
1434
  "text-xs font-mono ml-1",
1454
1435
  r === "2" && "text-green-500",
1455
1436
  r === "3" && "text-blue-500",
@@ -1465,9 +1446,9 @@ const rs = {
1465
1446
  )
1466
1447
  ] })
1467
1448
  ] }),
1468
- /* @__PURE__ */ e.jsx(F, { value: "request", children: /* @__PURE__ */ e.jsx(ns, { ...t.data.request }) }),
1469
- /* @__PURE__ */ e.jsx(F, { value: "response", children: /* @__PURE__ */ e.jsx(
1470
- cs,
1449
+ /* @__PURE__ */ e.jsx(H, { value: "request", children: /* @__PURE__ */ e.jsx(ds, { ...t.data.request }) }),
1450
+ /* @__PURE__ */ e.jsx(H, { value: "response", children: /* @__PURE__ */ e.jsx(
1451
+ ys,
1471
1452
  {
1472
1453
  status: t.data.status,
1473
1454
  time: t.data.time,
@@ -1478,18 +1459,18 @@ const rs = {
1478
1459
  }
1479
1460
  ) })
1480
1461
  ] }) : /* @__PURE__ */ e.jsx("div", { className: "grid place-items-center h-full", children: t.isPending ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
1481
- /* @__PURE__ */ e.jsx(dn, { size: 20 }),
1462
+ /* @__PURE__ */ e.jsx(Nn, { size: 20 }),
1482
1463
  /* @__PURE__ */ e.jsxs(
1483
1464
  "div",
1484
1465
  {
1485
- className: u(
1466
+ className: g(
1486
1467
  "opacity-0 pointer-events-none transition-opacity h-20 text-sm text-muted-foreground duration-300 flex flex-col gap-2 items-center",
1487
1468
  s && "opacity-100 pointer-events-auto"
1488
1469
  ),
1489
1470
  children: [
1490
1471
  "Looks like the request is taking longer than expected.",
1491
1472
  /* @__PURE__ */ e.jsx(
1492
- G,
1473
+ W,
1493
1474
  {
1494
1475
  type: "button",
1495
1476
  onClick: a,
@@ -1503,43 +1484,47 @@ const rs = {
1503
1484
  }
1504
1485
  )
1505
1486
  ] }) : /* @__PURE__ */ e.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send a request first to see the response here" }) }) });
1506
- }, us = ({
1487
+ }, js = ({
1507
1488
  identities: t,
1508
1489
  formRef: n,
1509
1490
  disabled: s
1510
1491
  }) => {
1511
- const { setValue: a } = we(), [r, i] = $();
1512
- return t.length === 0 ? /* @__PURE__ */ e.jsx(L, { disabled: s, children: "Send" }) : /* @__PURE__ */ e.jsxs("div", { className: "flex", children: [
1492
+ const { setValue: a } = Oe(), [r, i] = k();
1493
+ return t.length === 0 ? /* @__PURE__ */ e.jsx(A, { disabled: s, children: "Send" }) : /* @__PURE__ */ e.jsxs("div", { className: "flex", children: [
1513
1494
  /* @__PURE__ */ e.jsx(
1514
- L,
1495
+ A,
1515
1496
  {
1516
1497
  className: "rounded-r-none inset-shadow-sm",
1517
1498
  disabled: s,
1518
- onClick: () => n?.current?.requestSubmit(),
1499
+ onClick: () => {
1500
+ var l;
1501
+ return (l = n == null ? void 0 : n.current) == null ? void 0 : l.requestSubmit();
1502
+ },
1519
1503
  children: "Send"
1520
1504
  }
1521
1505
  ),
1522
- /* @__PURE__ */ e.jsxs(pt, { children: [
1523
- /* @__PURE__ */ e.jsx(ht, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1524
- L,
1506
+ /* @__PURE__ */ e.jsxs(Tt, { children: [
1507
+ /* @__PURE__ */ e.jsx($t, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1508
+ A,
1525
1509
  {
1526
1510
  disabled: s,
1527
1511
  className: "rounded-l-none border-l border-border/40 inset-shadow-sm w-6",
1528
1512
  size: "icon",
1529
- children: /* @__PURE__ */ e.jsx(Et, { className: "w-4 h-4" })
1513
+ children: /* @__PURE__ */ e.jsx(Ut, { className: "w-4 h-4" })
1530
1514
  }
1531
1515
  ) }),
1532
- /* @__PURE__ */ e.jsx(Ie, { value: r, children: /* @__PURE__ */ e.jsx(Te, { className: "w-56", align: "end", alignOffset: -150, children: [{ id: H, label: "None" }, ...t].map(
1516
+ /* @__PURE__ */ e.jsx(ze, { value: r, children: /* @__PURE__ */ e.jsx(Ae, { className: "w-56", align: "end", alignOffset: -150, children: [{ id: B, label: "None" }, ...t].map(
1533
1517
  (l) => /* @__PURE__ */ e.jsxs(
1534
- $e,
1518
+ Ee,
1535
1519
  {
1536
1520
  onClick: () => {
1537
- i(l.id), a("identity", l.id), n?.current?.requestSubmit();
1521
+ var d;
1522
+ i(l.id), a("identity", l.id), (d = n == null ? void 0 : n.current) == null || d.requestSubmit();
1538
1523
  },
1539
1524
  onMouseEnter: () => i(l.id),
1540
1525
  onMouseLeave: () => i(void 0),
1541
1526
  children: [
1542
- /* @__PURE__ */ e.jsx(ne, { value: l.id, className: "mr-2" }),
1527
+ /* @__PURE__ */ e.jsx(re, { value: l.id, className: "mr-2" }),
1543
1528
  l.label
1544
1529
  ]
1545
1530
  },
@@ -1548,13 +1533,13 @@ const rs = {
1548
1533
  ) }) })
1549
1534
  ] })
1550
1535
  ] });
1551
- }, H = "__none", ce = {
1536
+ }, B = "__none", ve = {
1552
1537
  Plain: "text/plain",
1553
1538
  JSON: "application/json",
1554
1539
  XML: "application/xml",
1555
1540
  YAML: "application/yaml",
1556
1541
  CSV: "text/csv"
1557
- }, ps = ({
1542
+ }, bs = ({
1558
1543
  server: t,
1559
1544
  servers: n = [],
1560
1545
  url: s,
@@ -1562,17 +1547,18 @@ const rs = {
1562
1547
  headers: r = [],
1563
1548
  queryParams: i = [],
1564
1549
  pathParams: l = [],
1565
- defaultBody: m = "",
1566
- examples: d,
1567
- requiresLogin: p = !1,
1550
+ defaultBody: d = "",
1551
+ examples: c,
1552
+ requiresLogin: u = !1,
1568
1553
  onLogin: x,
1569
- onSignUp: N
1554
+ onSignUp: w
1570
1555
  }) => {
1571
- const { selectedServer: y, setSelectedServer: c } = kn(
1556
+ var Ze, Xe;
1557
+ const { selectedServer: v, setSelectedServer: p } = _n(
1572
1558
  n.map((o) => ({ url: o }))
1573
- ), [f, h] = $(!1), j = zt(), { setRememberedIdentity: b, getRememberedIdentity: k } = Kn(), [, I] = Jt(), [bt, Nt] = $(!1), [wt, Q] = $(!1), W = M(void 0), Le = Kt(b), { register: Ae, control: Z, handleSubmit: De, watch: Ve, setValue: D, ...ae } = Wt({
1559
+ ), [f, m] = k(!1), y = Yt(), { setRememberedIdentity: h, getRememberedIdentity: T } = os(), [, $] = rn(), [de, X] = k(!1), [K, E] = k(!1), Y = G(void 0), Be = un(h), { register: Ge, control: ee, handleSubmit: Je, watch: Ue, setValue: V, ...me } = cn({
1574
1560
  defaultValues: {
1575
- body: m,
1561
+ body: d,
1576
1562
  bodyContentType: "JSON",
1577
1563
  queryParams: i.map((o) => ({
1578
1564
  name: o.name,
@@ -1602,145 +1588,149 @@ const rs = {
1602
1588
  active: !1
1603
1589
  }
1604
1590
  ]),
1605
- identity: k(
1606
- j.data?.map((o) => o.id) ?? []
1591
+ identity: T(
1592
+ ((Ze = y.data) == null ? void 0 : Ze.map((o) => o.id)) ?? []
1607
1593
  )
1608
1594
  }
1609
- }), C = Ve(), Fe = M(null);
1610
- Y(() => {
1611
- C.identity && Le.current(C.identity);
1612
- }, [Le, C.identity]);
1613
- const re = Qt({
1595
+ }), C = Ue(), Qe = G(null);
1596
+ ne(() => {
1597
+ C.identity && Be.current(C.identity);
1598
+ }, [Be, C.identity]);
1599
+ const ue = ln({
1614
1600
  mutationFn: async (o) => {
1601
+ var Ke, Ye;
1615
1602
  const S = performance.now(), O = !o.headers.some(
1616
- (w) => w.active && w.name.toLowerCase() === "content-type"
1617
- ), K = Object.fromEntries([
1618
- ...o.headers.filter((w) => w.name && w.active).map((w) => [w.name, w.value]),
1619
- ...O ? [["content-type", ce[o.bodyContentType]]] : []
1620
- ]), T = new Request(
1621
- In(t ?? y, s, o),
1603
+ (N) => N.active && N.name.toLowerCase() === "content-type"
1604
+ ), F = Object.fromEntries([
1605
+ ...o.headers.filter((N) => N.name && N.active).map((N) => [N.name, N.value]),
1606
+ ...O ? [["content-type", ve[o.bodyContentType]]] : []
1607
+ ]), P = new Request(
1608
+ Bn(t ?? v, s, o),
1622
1609
  {
1623
1610
  method: a.toUpperCase(),
1624
- headers: K,
1611
+ headers: F,
1625
1612
  body: o.body ? o.body : void 0
1626
1613
  }
1627
1614
  );
1628
- o.identity !== H && await j.data?.find((w) => w.id === o.identity)?.authorizeRequest(T);
1629
- const He = setTimeout(
1630
- () => Q(!0),
1615
+ o.identity !== B && await ((Ye = (Ke = y.data) == null ? void 0 : Ke.find((N) => N.id === o.identity)) == null ? void 0 : Ye.authorizeRequest(P));
1616
+ const z = setTimeout(
1617
+ () => E(!0),
1631
1618
  3210
1632
1619
  );
1633
- W.current = new AbortController();
1620
+ Y.current = new AbortController();
1634
1621
  try {
1635
- const w = await fetch(T, {
1636
- signal: W.current.signal
1622
+ const N = await fetch(P, {
1623
+ signal: Y.current.signal
1637
1624
  });
1638
- clearTimeout(He), Q(!1);
1639
- const $t = performance.now() - S, Me = await w.text(), Pt = new URL(T.url);
1625
+ clearTimeout(z), E(!1);
1626
+ const Dt = performance.now() - S, et = await N.text(), Vt = new URL(P.url);
1640
1627
  return {
1641
- status: w.status,
1642
- headers: Array.from(w.headers.entries()),
1643
- size: Me.length,
1644
- body: Me,
1645
- time: $t,
1628
+ status: N.status,
1629
+ headers: Array.from(N.headers.entries()),
1630
+ size: et.length,
1631
+ body: et,
1632
+ time: Dt,
1646
1633
  request: {
1647
- method: T.method.toUpperCase(),
1648
- url: T.url,
1634
+ method: P.method.toUpperCase(),
1635
+ url: P.url,
1649
1636
  headers: [
1650
- ["Host", Pt.host],
1637
+ ["Host", Vt.host],
1651
1638
  ["User-Agent", "Zudoku Playground"],
1652
- ...Array.from(T.headers.entries())
1639
+ ...Array.from(P.headers.entries())
1653
1640
  ],
1654
1641
  body: o.body ? o.body : void 0
1655
1642
  }
1656
1643
  };
1657
- } catch (w) {
1658
- throw clearTimeout(He), Q(!1), w instanceof TypeError ? new Error(
1644
+ } catch (N) {
1645
+ throw clearTimeout(z), E(!1), N instanceof TypeError ? new Error(
1659
1646
  "The request failed, possibly due to network issues or CORS policy."
1660
- ) : w;
1647
+ ) : N;
1661
1648
  }
1662
1649
  }
1663
1650
  });
1664
- Y(() => () => {
1665
- W.current?.abort();
1651
+ ne(() => () => {
1652
+ var o;
1653
+ (o = Y.current) == null || o.abort();
1666
1654
  }, []);
1667
- const Ct = /* @__PURE__ */ e.jsx(
1668
- $n,
1655
+ const Lt = /* @__PURE__ */ e.jsx(
1656
+ zn,
1669
1657
  {
1670
1658
  path: s,
1671
1659
  renderParam: ({ name: o, originalValue: S, index: O }) => {
1672
- const K = C.pathParams.find(
1673
- (T) => T.name === o
1674
- )?.value;
1660
+ var P;
1661
+ const F = (P = C.pathParams.find(
1662
+ (z) => z.name === o
1663
+ )) == null ? void 0 : P.value;
1675
1664
  return /* @__PURE__ */ e.jsx(
1676
- ut,
1665
+ St,
1677
1666
  {
1678
1667
  name: o,
1679
1668
  backgroundOpacity: "0",
1680
1669
  slug: o,
1681
- onClick: () => ae.setFocus(`pathParams.${O}.value`),
1682
- children: K || S
1670
+ onClick: () => me.setFocus(`pathParams.${O}.value`),
1671
+ children: F || S
1683
1672
  }
1684
1673
  );
1685
1674
  }
1686
1675
  }
1687
- ), ze = C.queryParams.filter((o) => o.active).map((o, S, O) => /* @__PURE__ */ e.jsxs(q, { children: [
1676
+ ), We = C.queryParams.filter((o) => o.active).map((o, S, O) => /* @__PURE__ */ e.jsxs(q, { children: [
1688
1677
  o.name,
1689
1678
  "=",
1690
1679
  encodeURIComponent(o.value).replaceAll("%20", "+"),
1691
1680
  S < O.length - 1 && "&",
1692
1681
  /* @__PURE__ */ e.jsx("wbr", {})
1693
- ] }, o.name)), St = /* @__PURE__ */ e.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: t ? /* @__PURE__ */ e.jsx("span", { children: t.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : n.length > 1 && /* @__PURE__ */ e.jsxs(
1694
- me,
1682
+ ] }, o.name)), At = /* @__PURE__ */ e.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: t ? /* @__PURE__ */ e.jsx("span", { children: t.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : n.length > 1 && /* @__PURE__ */ e.jsxs(
1683
+ je,
1695
1684
  {
1696
1685
  onValueChange: (o) => {
1697
- I(() => c(o));
1686
+ $(() => p(o));
1698
1687
  },
1699
- value: y,
1700
- defaultValue: y,
1688
+ value: v,
1689
+ defaultValue: v,
1701
1690
  children: [
1702
- /* @__PURE__ */ e.jsx(ue, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ e.jsx(pe, {}) }),
1703
- /* @__PURE__ */ e.jsx(he, { children: n.map((o) => /* @__PURE__ */ e.jsx(_, { value: o, children: o.replace(/^https?:\/\//, "").replace(/\/$/, "") }, o)) })
1691
+ /* @__PURE__ */ e.jsx(be, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ e.jsx(Ne, {}) }),
1692
+ /* @__PURE__ */ e.jsx(we, { children: n.map((o) => /* @__PURE__ */ e.jsx(U, { value: o, children: o.replace(/^https?:\/\//, "").replace(/\/$/, "") }, o)) })
1704
1693
  ]
1705
1694
  }
1706
- ) }), Tt = p && !bt, X = ["POST", "PUT", "PATCH", "DELETE"].includes(
1695
+ ) }), Et = u && !de, te = ["POST", "PUT", "PATCH", "DELETE"].includes(
1707
1696
  a.toUpperCase()
1708
1697
  );
1709
1698
  return /* @__PURE__ */ e.jsx(
1710
- Zt,
1699
+ dn,
1711
1700
  {
1712
- register: Ae,
1713
- control: Z,
1714
- handleSubmit: De,
1715
- watch: Ve,
1716
- setValue: D,
1717
- ...ae,
1701
+ register: Ge,
1702
+ control: ee,
1703
+ handleSubmit: Je,
1704
+ watch: Ue,
1705
+ setValue: V,
1706
+ ...me,
1718
1707
  children: /* @__PURE__ */ e.jsxs(
1719
1708
  "form",
1720
1709
  {
1721
- onSubmit: De((o) => {
1722
- j.data?.length === 0 || o.identity ? re.mutate(o) : h(!0);
1710
+ onSubmit: Je((o) => {
1711
+ var S;
1712
+ ((S = y.data) == null ? void 0 : S.length) === 0 || o.identity ? ue.mutate(o) : m(!0);
1723
1713
  }),
1724
- ref: Fe,
1714
+ ref: Qe,
1725
1715
  className: "relative",
1726
1716
  children: [
1727
1717
  /* @__PURE__ */ e.jsx(
1728
- Qn,
1718
+ ns,
1729
1719
  {
1730
- identities: j.data ?? [],
1720
+ identities: y.data ?? [],
1731
1721
  open: f,
1732
- onOpenChange: h,
1722
+ onOpenChange: m,
1733
1723
  onSubmit: ({ rememberedIdentity: o, identity: S }) => {
1734
- o && D("identity", S ?? H), h(!1), re.mutate({ ...C, identity: S });
1724
+ o && V("identity", S ?? B), m(!1), ue.mutate({ ...C, identity: S });
1735
1725
  }
1736
1726
  }
1737
1727
  ),
1738
1728
  /* @__PURE__ */ e.jsx(
1739
- Yn,
1729
+ is,
1740
1730
  {
1741
- open: Tt,
1742
- setOpen: (o) => Nt(!o),
1743
- onSignUp: N,
1731
+ open: Et,
1732
+ setOpen: (o) => X(!o),
1733
+ onSignUp: w,
1744
1734
  onLogin: x
1745
1735
  }
1746
1736
  ),
@@ -1750,133 +1740,135 @@ const rs = {
1750
1740
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md", children: [
1751
1741
  /* @__PURE__ */ e.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
1752
1742
  /* @__PURE__ */ e.jsxs("div", { className: "items-center px-2 py-0.5 font-mono text-xs break-all leading-6", children: [
1753
- St,
1754
- Ct,
1755
- ze.length > 0 ? "?" : "",
1756
- ze
1743
+ At,
1744
+ Lt,
1745
+ We.length > 0 ? "?" : "",
1746
+ We
1757
1747
  ] })
1758
1748
  ] }),
1759
1749
  /* @__PURE__ */ e.jsx(
1760
- us,
1750
+ js,
1761
1751
  {
1762
- identities: j.data ?? [],
1763
- formRef: Fe,
1764
- disabled: j.isLoading || ae.formState.isSubmitting
1752
+ identities: y.data ?? [],
1753
+ formRef: Qe,
1754
+ disabled: y.isLoading || me.formState.isSubmitting
1765
1755
  }
1766
1756
  )
1767
1757
  ] }),
1768
- /* @__PURE__ */ e.jsxs(it, { defaultValue: "parameters", children: [
1769
- /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-1 justify-between", children: /* @__PURE__ */ e.jsxs(lt, { children: [
1770
- /* @__PURE__ */ e.jsxs(V, { value: "parameters", children: [
1758
+ /* @__PURE__ */ e.jsxs(jt, { defaultValue: "parameters", children: [
1759
+ /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-1 justify-between", children: /* @__PURE__ */ e.jsxs(bt, { children: [
1760
+ /* @__PURE__ */ e.jsxs(M, { value: "parameters", children: [
1771
1761
  "Parameters",
1772
1762
  (C.pathParams.some((o) => o.value !== "") || C.queryParams.some((o) => o.active)) && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
1773
1763
  ] }),
1774
- /* @__PURE__ */ e.jsxs(V, { value: "headers", children: [
1764
+ /* @__PURE__ */ e.jsxs(M, { value: "headers", children: [
1775
1765
  "Headers",
1776
1766
  C.headers.filter((o) => o.active).length > 0 && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
1777
1767
  ] }),
1778
- /* @__PURE__ */ e.jsxs(V, { value: "auth", children: [
1768
+ /* @__PURE__ */ e.jsxs(M, { value: "auth", children: [
1779
1769
  "Auth",
1780
- C.identity !== H && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
1770
+ C.identity !== B && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
1781
1771
  ] }),
1782
- /* @__PURE__ */ e.jsxs(V, { value: "body", children: [
1772
+ /* @__PURE__ */ e.jsxs(M, { value: "body", children: [
1783
1773
  "Body",
1784
1774
  C.body && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
1785
1775
  ] })
1786
1776
  ] }) }),
1787
- /* @__PURE__ */ e.jsx(F, { value: "headers", children: /* @__PURE__ */ e.jsx(Jn, { control: Z, headers: r }) }),
1788
- /* @__PURE__ */ e.jsxs(F, { value: "parameters", children: [
1777
+ /* @__PURE__ */ e.jsx(H, { value: "headers", children: /* @__PURE__ */ e.jsx(es, { control: ee, headers: r }) }),
1778
+ /* @__PURE__ */ e.jsxs(H, { value: "parameters", children: [
1789
1779
  l.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1790
1780
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
1791
- /* @__PURE__ */ e.jsx(Wn, { url: s, control: Z })
1781
+ /* @__PURE__ */ e.jsx(ss, { url: s, control: ee })
1792
1782
  ] }),
1793
1783
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1794
1784
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
1795
- /* @__PURE__ */ e.jsx(Xn, { control: Z, queryParams: i })
1785
+ /* @__PURE__ */ e.jsx(rs, { control: ee, queryParams: i })
1796
1786
  ] })
1797
1787
  ] }),
1798
- /* @__PURE__ */ e.jsxs(F, { value: "body", children: [
1788
+ /* @__PURE__ */ e.jsxs(H, { value: "body", children: [
1799
1789
  !["POST", "PUT", "PATCH", "DELETE"].includes(
1800
1790
  a.toUpperCase()
1801
- ) && /* @__PURE__ */ e.jsxs(fe, { className: "mb-2", children: [
1802
- /* @__PURE__ */ e.jsx(_e, { className: "w-4 h-4" }),
1803
- /* @__PURE__ */ e.jsx(ge, { children: "Body" }),
1804
- /* @__PURE__ */ e.jsx(ye, { children: "Body is only supported for POST, PUT, PATCH, and DELETE requests" })
1791
+ ) && /* @__PURE__ */ e.jsxs(Se, { className: "mb-2", children: [
1792
+ /* @__PURE__ */ e.jsx(nt, { className: "w-4 h-4" }),
1793
+ /* @__PURE__ */ e.jsx(Te, { children: "Body" }),
1794
+ /* @__PURE__ */ e.jsx($e, { children: "Body is only supported for POST, PUT, PATCH, and DELETE requests" })
1805
1795
  ] }),
1806
1796
  /* @__PURE__ */ e.jsx(
1807
- mt,
1797
+ Ct,
1808
1798
  {
1809
- ...Ae("body"),
1810
- className: u(
1799
+ ...Ge("body"),
1800
+ className: g(
1811
1801
  "border w-full rounded-lg bg-muted/40 p-2 h-64 font-mono text-[13px]",
1812
- !X && "h-20 bg-muted"
1802
+ !te && "h-20 bg-muted"
1813
1803
  ),
1814
- placeholder: X ? void 0 : "This request does not support a body",
1815
- disabled: !X
1804
+ placeholder: te ? void 0 : "This request does not support a body",
1805
+ disabled: !te
1816
1806
  }
1817
1807
  ),
1818
- X && /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 mt-2 justify-between", children: [
1808
+ te && /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 mt-2 justify-between", children: [
1819
1809
  /* @__PURE__ */ e.jsxs(
1820
- me,
1810
+ je,
1821
1811
  {
1822
1812
  value: C.bodyContentType,
1823
- onValueChange: (o) => D(
1813
+ onValueChange: (o) => V(
1824
1814
  "bodyContentType",
1825
1815
  o
1826
1816
  ),
1827
1817
  children: [
1828
- /* @__PURE__ */ e.jsx(ue, { className: "w-[100px]", children: /* @__PURE__ */ e.jsx(pe, {}) }),
1829
- /* @__PURE__ */ e.jsx(he, { children: Object.keys(ce).map((o) => /* @__PURE__ */ e.jsx(_, { value: o, children: o }, o)) })
1818
+ /* @__PURE__ */ e.jsx(be, { className: "w-[100px]", children: /* @__PURE__ */ e.jsx(Ne, {}) }),
1819
+ /* @__PURE__ */ e.jsx(we, { children: Object.keys(ve).map((o) => /* @__PURE__ */ e.jsx(U, { value: o, children: o }, o)) })
1830
1820
  ]
1831
1821
  }
1832
1822
  ),
1833
- d && d.length > 0 && /* @__PURE__ */ e.jsx(
1834
- Dn,
1823
+ c && c.length > 0 && /* @__PURE__ */ e.jsx(
1824
+ Zn,
1835
1825
  {
1836
- examples: d,
1826
+ examples: c,
1837
1827
  onSelect: (o, S) => {
1838
- D(
1828
+ var F;
1829
+ V(
1839
1830
  "body",
1840
1831
  JSON.stringify(o.value, null, 2)
1841
1832
  );
1842
- const O = Xt(ce).find(
1843
- ([K, T]) => T === S
1844
- )?.[0];
1845
- O && D("bodyContentType", O);
1833
+ const O = (F = mn(ve).find(
1834
+ ([P, z]) => z === S
1835
+ )) == null ? void 0 : F[0];
1836
+ O && V("bodyContentType", O);
1846
1837
  }
1847
1838
  }
1848
1839
  )
1849
1840
  ] })
1850
1841
  ] }),
1851
- /* @__PURE__ */ e.jsx(F, { value: "auth", children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1852
- j.data?.length === 0 && /* @__PURE__ */ e.jsxs(fe, { children: [
1853
- /* @__PURE__ */ e.jsx(_e, { className: "w-4 h-4" }),
1854
- /* @__PURE__ */ e.jsx(ge, { children: "Authentication" }),
1855
- /* @__PURE__ */ e.jsx(ye, { children: "No identities found. Please create an identity first." })
1842
+ /* @__PURE__ */ e.jsx(H, { value: "auth", children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1843
+ ((Xe = y.data) == null ? void 0 : Xe.length) === 0 && /* @__PURE__ */ e.jsxs(Se, { children: [
1844
+ /* @__PURE__ */ e.jsx(nt, { className: "w-4 h-4" }),
1845
+ /* @__PURE__ */ e.jsx(Te, { children: "Authentication" }),
1846
+ /* @__PURE__ */ e.jsx($e, { children: "No identities found. Please create an identity first." })
1856
1847
  ] }),
1857
1848
  /* @__PURE__ */ e.jsx("div", { className: "flex flex-col items-center gap-2", children: /* @__PURE__ */ e.jsx(
1858
- yt,
1849
+ Rt,
1859
1850
  {
1860
1851
  value: C.identity,
1861
- identities: j.data ?? [],
1862
- setValue: (o) => D("identity", o)
1852
+ identities: y.data ?? [],
1853
+ setValue: (o) => V("identity", o)
1863
1854
  }
1864
1855
  ) })
1865
1856
  ] }) })
1866
1857
  ] })
1867
1858
  ] }),
1868
1859
  /* @__PURE__ */ e.jsx(
1869
- ms,
1860
+ vs,
1870
1861
  {
1871
- queryMutation: re,
1862
+ queryMutation: ue,
1872
1863
  showPathParamsWarning: C.pathParams.some(
1873
1864
  (o) => o.value === ""
1874
1865
  ),
1875
- showLongRunningWarning: wt,
1866
+ showLongRunningWarning: K,
1876
1867
  onCancel: () => {
1877
- W.current?.abort(
1868
+ var o;
1869
+ (o = Y.current) == null || o.abort(
1878
1870
  "Request cancelled by the user"
1879
- ), Q(!1);
1871
+ ), E(!1);
1880
1872
  }
1881
1873
  }
1882
1874
  )
@@ -1886,7 +1878,7 @@ const rs = {
1886
1878
  )
1887
1879
  }
1888
1880
  );
1889
- }, hs = ({
1881
+ }, Ns = ({
1890
1882
  className: t,
1891
1883
  size: n = 16
1892
1884
  }) => /* @__PURE__ */ e.jsx(
@@ -1907,33 +1899,33 @@ const rs = {
1907
1899
  }
1908
1900
  )
1909
1901
  }
1910
- ), xs = (t) => {
1911
- const [n, s] = $(!1);
1912
- return /* @__PURE__ */ e.jsxs(ve, { onOpenChange: (a) => s(a), children: [
1913
- /* @__PURE__ */ e.jsx(Ut, { asChild: !0, children: t.children ?? /* @__PURE__ */ e.jsxs(
1902
+ ), ws = (t) => {
1903
+ const [n, s] = k(!1);
1904
+ return /* @__PURE__ */ e.jsxs(Pe, { onOpenChange: (a) => s(a), children: [
1905
+ /* @__PURE__ */ e.jsx(on, { asChild: !0, children: t.children ?? /* @__PURE__ */ e.jsxs(
1914
1906
  "button",
1915
1907
  {
1916
1908
  type: "button",
1917
1909
  className: "flex gap-1 items-center px-2 py-1 rounded-md transition text-xs bg-primary text-primary-foreground shadow-sm hover:bg-primary/80",
1918
1910
  children: [
1919
1911
  "Test",
1920
- /* @__PURE__ */ e.jsx(hs, { size: 14 })
1912
+ /* @__PURE__ */ e.jsx(Ns, { size: 14 })
1921
1913
  ]
1922
1914
  }
1923
1915
  ) }),
1924
1916
  /* @__PURE__ */ e.jsxs(
1925
- je,
1917
+ ke,
1926
1918
  {
1927
1919
  className: "max-w-screen-xl w-full h-5/6 overflow-hidden p-0",
1928
1920
  "aria-describedby": void 0,
1929
1921
  children: [
1930
- /* @__PURE__ */ e.jsx(_t, { children: /* @__PURE__ */ e.jsx(be, { children: "Playground" }) }),
1931
- n && /* @__PURE__ */ e.jsx(ps, { ...t })
1922
+ /* @__PURE__ */ e.jsx(nn, { children: /* @__PURE__ */ e.jsx(Ie, { children: "Playground" }) }),
1923
+ n && /* @__PURE__ */ e.jsx(bs, { ...t })
1932
1924
  ]
1933
1925
  }
1934
1926
  )
1935
1927
  ] });
1936
- }, fs = {
1928
+ }, Cs = {
1937
1929
  get: "green",
1938
1930
  post: "blue",
1939
1931
  put: "yellow",
@@ -1941,7 +1933,7 @@ const rs = {
1941
1933
  patch: "purple",
1942
1934
  options: "gray",
1943
1935
  head: "gray"
1944
- }, et = ({
1936
+ }, pt = ({
1945
1937
  label: t,
1946
1938
  path: n,
1947
1939
  operations: s,
@@ -1963,14 +1955,14 @@ const rs = {
1963
1955
  href: `${n}#${i.slug}`,
1964
1956
  badge: {
1965
1957
  label: i.method,
1966
- color: fs[i.method.toLowerCase()],
1958
+ color: Cs[i.method.toLowerCase()],
1967
1959
  invert: !0
1968
1960
  }
1969
1961
  }))
1970
- }), tt = (t) => ({
1962
+ }), ht = (t) => ({
1971
1963
  path: t.routePath,
1972
1964
  async lazy() {
1973
- const { OasProvider: n } = await import("./OasProvider-DKpTJMH2.js");
1965
+ const { OasProvider: n } = await import("./OasProvider-CDtbrUG_.js");
1974
1966
  return {
1975
1967
  element: /* @__PURE__ */ e.jsx(
1976
1968
  n,
@@ -1984,45 +1976,45 @@ const rs = {
1984
1976
  };
1985
1977
  },
1986
1978
  children: t.routes
1987
- }), qe = ({
1979
+ }), He = ({
1988
1980
  path: t,
1989
1981
  tag: n,
1990
1982
  untagged: s
1991
1983
  }) => ({
1992
1984
  path: t,
1993
1985
  async lazy() {
1994
- const { OperationList: a } = await import("./OperationList-DVOyNeno.js");
1986
+ const { OperationList: a } = await import("./OperationList-DTyJIxKW.js");
1995
1987
  return { element: /* @__PURE__ */ e.jsx(a, { tag: n, untagged: s }) };
1996
1988
  }
1997
- }), vt = (t) => [
1989
+ }), Ot = (t) => [
1998
1990
  // Category without tagged operations
1999
- qe({
2000
- path: R(t, Ee),
1991
+ He({
1992
+ path: R(t, _e),
2001
1993
  untagged: !0
2002
1994
  }),
2003
1995
  // Schema list route
2004
1996
  {
2005
1997
  path: R(t, "~schemas"),
2006
1998
  lazy: async () => {
2007
- const { SchemaList: n } = await import("./SchemaList-BTWzXyYQ.js");
1999
+ const { SchemaList: n } = await import("./SchemaList-B9lvArDe.js");
2008
2000
  return { element: /* @__PURE__ */ e.jsx(n, {}) };
2009
2001
  }
2010
2002
  }
2011
- ], gs = (t, n) => {
2012
- const s = R(t, n.at(0) ?? Ee);
2003
+ ], Ss = (t, n) => {
2004
+ const s = R(t, n.at(0) ?? _e);
2013
2005
  return [
2014
2006
  // Redirect to first tag on the index route
2015
- { index: !0, loader: () => Dt(s) },
2007
+ { index: !0, loader: () => Zt(s) },
2016
2008
  // Create routes for each tag
2017
2009
  ...n.map(
2018
- (a) => qe({
2010
+ (a) => He({
2019
2011
  path: R(t, a),
2020
2012
  tag: a
2021
2013
  })
2022
2014
  ),
2023
- ...vt(t)
2015
+ ...Ot(t)
2024
2016
  ];
2025
- }, jt = (t) => t.type === "file" ? Object.keys(t.input) : [], ys = ({
2017
+ }, qt = (t) => t.type === "file" ? Object.keys(t.input) : [], Ts = ({
2026
2018
  basePath: t,
2027
2019
  config: n,
2028
2020
  client: s
@@ -2030,30 +2022,30 @@ const rs = {
2030
2022
  const a = n.tagPages;
2031
2023
  if (!a)
2032
2024
  return [
2033
- tt({
2025
+ ht({
2034
2026
  basePath: t,
2035
2027
  routePath: t,
2036
2028
  routes: [
2037
- qe({ path: t + "/:tag?" }),
2038
- ...vt(t)
2029
+ He({ path: t + "/:tag?" }),
2030
+ ...Ot(t)
2039
2031
  ],
2040
2032
  client: s,
2041
2033
  config: n
2042
2034
  })
2043
2035
  ];
2044
- const r = jt(n);
2036
+ const r = qt(n);
2045
2037
  return (r.length > 1 ? [void 0, ...r] : [void 0]).map((l) => {
2046
- const m = R(t, l);
2047
- return tt({
2038
+ const d = R(t, l);
2039
+ return ht({
2048
2040
  basePath: t,
2049
2041
  version: l,
2050
- routePath: m,
2051
- routes: gs(m, a),
2042
+ routePath: d,
2043
+ routes: Ss(d, a),
2052
2044
  client: s,
2053
2045
  config: n
2054
2046
  });
2055
2047
  });
2056
- }, vs = Sn(`
2048
+ }, $s = Vn(`
2057
2049
  query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
2058
2050
  schema(input: $input, type: $type) {
2059
2051
  tags {
@@ -2075,8 +2067,8 @@ const rs = {
2075
2067
  }
2076
2068
  }
2077
2069
  }
2078
- `), Ee = "~endpoints", Qs = (t) => {
2079
- const n = R(t.navigationId ?? "/reference"), s = new fn(t);
2070
+ `), _e = "~endpoints", aa = (t) => {
2071
+ const n = R(t.navigationId ?? "/reference"), s = new kn(t);
2080
2072
  return {
2081
2073
  getHead: () => {
2082
2074
  if (t.type === "url" && !t.skipPreload)
@@ -2098,93 +2090,95 @@ const rs = {
2098
2090
  server: r,
2099
2091
  method: i,
2100
2092
  url: l,
2101
- children: m,
2102
- ...d
2093
+ children: d,
2094
+ ...c
2103
2095
  }) => {
2104
- const p = Ht();
2096
+ const u = en();
2105
2097
  if (!r)
2106
2098
  throw new Error("Server is required");
2107
- return a && !p.isAuthenticated ? /* @__PURE__ */ e.jsxs(
2108
- G,
2099
+ return a && !u.isAuthenticated ? /* @__PURE__ */ e.jsxs(
2100
+ W,
2109
2101
  {
2110
2102
  className: "gap-2 items-center",
2111
2103
  variant: "outline",
2112
- onClick: p.login,
2104
+ onClick: u.login,
2113
2105
  children: [
2114
2106
  "Login to open in Playground ",
2115
- /* @__PURE__ */ e.jsx(Lt, { size: 16 })
2107
+ /* @__PURE__ */ e.jsx(Qt, { size: 16 })
2116
2108
  ]
2117
2109
  }
2118
2110
  ) : /* @__PURE__ */ e.jsx(
2119
- xs,
2111
+ ws,
2120
2112
  {
2121
2113
  url: l ?? "/",
2122
2114
  method: i ?? "get",
2123
2115
  server: r,
2124
- ...d,
2125
- children: /* @__PURE__ */ e.jsx(G, { className: "gap-2 items-center", variant: "outline", children: m ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2116
+ ...c,
2117
+ children: /* @__PURE__ */ e.jsx(W, { className: "gap-2 items-center", variant: "outline", children: d ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2126
2118
  "Open in Playground ",
2127
- /* @__PURE__ */ e.jsx(At, { size: 16 })
2119
+ /* @__PURE__ */ e.jsx(Wt, { size: 16 })
2128
2120
  ] }) })
2129
2121
  }
2130
2122
  );
2131
2123
  }
2132
2124
  }),
2133
2125
  getSidebar: async (a, r) => {
2134
- if (!Be({ path: n, end: !1 }, a))
2126
+ var l, d, c, u;
2127
+ if (!st({ path: n, end: !1 }, a))
2135
2128
  return [];
2136
- const i = Be(
2129
+ const i = st(
2137
2130
  { path: `${n}/:version?/:tag`, end: !0 },
2138
2131
  a
2139
2132
  );
2140
2133
  try {
2141
- const l = i?.params.version, m = l ?? jt(t).at(0), { type: d } = t, p = d === "file" ? t.input[m] : t.input, x = await r.queryClient.ensureQueryData({
2134
+ const x = i == null ? void 0 : i.params.version, w = x ?? qt(t).at(0), { type: v } = t, p = v === "file" ? t.input[w] : t.input, f = await r.queryClient.ensureQueryData({
2142
2135
  queryKey: ["sidebar-operations-query", p],
2143
- queryFn: () => s.fetch(vs, { type: d, input: p })
2144
- }), N = x.schema.tags.flatMap((c) => {
2145
- if (!c.name || c.operations.length === 0) return [];
2146
- const f = R(n, l, c.slug), h = c.extensions?.["x-zudoku-collapsed"] ?? !t.options?.expandAllTags, j = c.extensions?.["x-zudoku-collapsible"] ?? !0;
2147
- return et({
2148
- label: c.name,
2149
- path: f,
2150
- operations: c.operations,
2151
- collapsed: h,
2152
- collapsible: j
2136
+ queryFn: () => s.fetch($s, { type: v, input: p })
2137
+ }), m = f.schema.tags.flatMap((h) => {
2138
+ var X, K, E;
2139
+ if (!h.name || h.operations.length === 0) return [];
2140
+ const T = R(n, x, h.slug), $ = ((X = h.extensions) == null ? void 0 : X["x-zudoku-collapsed"]) ?? !((K = t.options) != null && K.expandAllTags), de = ((E = h.extensions) == null ? void 0 : E["x-zudoku-collapsible"]) ?? !0;
2141
+ return pt({
2142
+ label: h.name,
2143
+ path: T,
2144
+ operations: h.operations,
2145
+ collapsed: $,
2146
+ collapsible: de
2153
2147
  });
2154
- }), y = x.schema.tags.find(
2155
- (c) => !c.name
2156
- )?.operations;
2157
- return y && N.push(
2158
- et({
2148
+ }), y = (l = f.schema.tags.find(
2149
+ (h) => !h.name
2150
+ )) == null ? void 0 : l.operations;
2151
+ return y && m.push(
2152
+ pt({
2159
2153
  label: "Other endpoints",
2160
- path: R(n, l, Ee),
2154
+ path: R(n, x, _e),
2161
2155
  operations: y,
2162
- collapsed: !t.options?.expandAllTags
2156
+ collapsed: !((d = t.options) != null && d.expandAllTags)
2163
2157
  })
2164
- ), x.schema.components?.schemas?.length && N.push({
2158
+ ), (u = (c = f.schema.components) == null ? void 0 : c.schemas) != null && u.length && m.push({
2165
2159
  type: "link",
2166
2160
  label: "Schemas",
2167
- href: R(n, l, "~schemas")
2168
- }), N;
2161
+ href: R(n, x, "~schemas")
2162
+ }), m;
2169
2163
  } catch {
2170
2164
  return [];
2171
2165
  }
2172
2166
  },
2173
- getRoutes: () => ys({ basePath: n, config: t, client: s })
2167
+ getRoutes: () => Ts({ basePath: n, config: t, client: s })
2174
2168
  };
2175
2169
  };
2176
2170
  export {
2177
- We as C,
2178
- xs as P,
2179
- Ee as U,
2180
- Ze as a,
2181
- Xe as b,
2182
- Sn as c,
2183
- ut as d,
2184
- $n as e,
2185
- jt as g,
2186
- ts as m,
2187
- Qs as o,
2188
- kn as u
2171
+ lt as C,
2172
+ ws as P,
2173
+ _e as U,
2174
+ ct as a,
2175
+ dt as b,
2176
+ Vn as c,
2177
+ St as d,
2178
+ zn as e,
2179
+ qt as g,
2180
+ cs as m,
2181
+ aa as o,
2182
+ _n as u
2189
2183
  };
2190
- //# sourceMappingURL=index-CCS3ifKs.js.map
2184
+ //# sourceMappingURL=index-Ckl3s_w-.js.map