zudoku 0.0.0-monetization-standalone.z2a065bd9 → 0.0.0-money-plugin.z605c614d

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 (235) hide show
  1. package/dist/config/create-plugin.d.ts +2 -2
  2. package/dist/config/create-plugin.js.map +1 -1
  3. package/dist/config/validators/InputNavigationSchema.d.ts +103 -53
  4. package/dist/config/validators/InputNavigationSchema.js +17 -0
  5. package/dist/config/validators/InputNavigationSchema.js.map +1 -1
  6. package/dist/config/validators/NavigationSchema.d.ts +10 -2
  7. package/dist/config/validators/NavigationSchema.js +7 -0
  8. package/dist/config/validators/NavigationSchema.js.map +1 -1
  9. package/dist/config/validators/ProtectedRoutesSchema.d.ts +1 -1
  10. package/dist/config/validators/validate.d.ts +3 -3
  11. package/dist/flat-config.d.ts +35 -24
  12. package/dist/lib/components/Heading.d.ts +1 -1
  13. package/dist/lib/components/MobileTopNavigation.js +2 -1
  14. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  15. package/dist/lib/components/TopNavigation.d.ts +7 -1
  16. package/dist/lib/components/TopNavigation.js +7 -2
  17. package/dist/lib/components/TopNavigation.js.map +1 -1
  18. package/dist/lib/components/context/ZudokuContext.d.ts +8 -1
  19. package/dist/lib/components/context/ZudokuContext.js +2 -0
  20. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  21. package/dist/lib/components/index.d.ts +18 -76
  22. package/dist/lib/components/index.js +19 -36
  23. package/dist/lib/components/index.js.map +1 -1
  24. package/dist/lib/components/navigation/Navigation.js +4 -3
  25. package/dist/lib/components/navigation/Navigation.js.map +1 -1
  26. package/dist/lib/components/navigation/NavigationCategory.js +8 -0
  27. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -1
  28. package/dist/lib/components/navigation/NavigationFilterContext.d.ts +8 -0
  29. package/dist/lib/components/navigation/NavigationFilterContext.js +12 -0
  30. package/dist/lib/components/navigation/NavigationFilterContext.js.map +1 -0
  31. package/dist/lib/components/navigation/NavigationFilterInput.d.ts +3 -0
  32. package/dist/lib/components/navigation/NavigationFilterInput.js +9 -0
  33. package/dist/lib/components/navigation/NavigationFilterInput.js.map +1 -0
  34. package/dist/lib/components/navigation/NavigationItem.js +11 -1
  35. package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
  36. package/dist/lib/components/navigation/utils.d.ts +2 -1
  37. package/dist/lib/components/navigation/utils.js +22 -1
  38. package/dist/lib/components/navigation/utils.js.map +1 -1
  39. package/dist/lib/hooks/index.d.ts +7 -30
  40. package/dist/lib/hooks/index.js +7 -15
  41. package/dist/lib/hooks/index.js.map +1 -1
  42. package/dist/lib/oas/graphql/circular.d.ts +1 -1
  43. package/dist/lib/oas/graphql/circular.js +18 -35
  44. package/dist/lib/oas/graphql/circular.js.map +1 -1
  45. package/dist/lib/oas/graphql/circular.test.js +33 -2
  46. package/dist/lib/oas/graphql/circular.test.js.map +1 -1
  47. package/dist/lib/oas/parser/index.js +14 -5
  48. package/dist/lib/oas/parser/index.js.map +1 -1
  49. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +1 -0
  50. package/dist/lib/plugins/openapi/playground/fileUtils.js +3 -0
  51. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -1
  52. package/dist/lib/plugins/openapi/playground/result-panel/AudioPlayer.d.ts +6 -0
  53. package/dist/lib/plugins/openapi/playground/result-panel/AudioPlayer.js +20 -0
  54. package/dist/lib/plugins/openapi/playground/result-panel/AudioPlayer.js.map +1 -0
  55. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +7 -2
  56. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  57. package/dist/lib/ui/Alert.d.ts +3 -2
  58. package/dist/lib/ui/Alert.js +9 -5
  59. package/dist/lib/ui/Alert.js.map +1 -1
  60. package/dist/lib/ui/Command.d.ts +3 -3
  61. package/dist/lib/ui/InputGroup.d.ts +16 -0
  62. package/dist/lib/ui/InputGroup.js +65 -0
  63. package/dist/lib/ui/InputGroup.js.map +1 -0
  64. package/dist/lib/util/flattenAllOf.d.ts +0 -2
  65. package/dist/lib/util/flattenAllOf.js +0 -46
  66. package/dist/lib/util/flattenAllOf.js.map +1 -1
  67. package/dist/lib/util/flattenAllOf.test.js +2 -1
  68. package/dist/lib/util/flattenAllOf.test.js.map +1 -1
  69. package/dist/lib/util/flattenAllOfProcessor.d.ts +2 -0
  70. package/dist/lib/util/flattenAllOfProcessor.js +48 -0
  71. package/dist/lib/util/flattenAllOfProcessor.js.map +1 -0
  72. package/dist/lib/util/readFrontmatter.js +2 -1
  73. package/dist/lib/util/readFrontmatter.js.map +1 -1
  74. package/dist/vite/api/SchemaManager.js +1 -1
  75. package/dist/vite/api/SchemaManager.js.map +1 -1
  76. package/dist/vite/api/SchemaManager.test.js +1 -1
  77. package/dist/vite/api/SchemaManager.test.js.map +1 -1
  78. package/dist/vite/build.js +91 -73
  79. package/dist/vite/build.js.map +1 -1
  80. package/dist/vite/mdx/remark-inject-filepath.js +5 -1
  81. package/dist/vite/mdx/remark-inject-filepath.js.map +1 -1
  82. package/dist/vite/mdx/remark-link-rewrite.js +3 -2
  83. package/dist/vite/mdx/remark-link-rewrite.js.map +1 -1
  84. package/dist/vite/plugin-docs.js +9 -7
  85. package/dist/vite/plugin-docs.js.map +1 -1
  86. package/dist/vite/plugin-markdown-export.js +4 -2
  87. package/dist/vite/plugin-markdown-export.js.map +1 -1
  88. package/lib/{ClaudeLogo-K64Qm6gS.js → ClaudeLogo-DP6JOmz1.js} +26 -22
  89. package/lib/{ClaudeLogo-K64Qm6gS.js.map → ClaudeLogo-DP6JOmz1.js.map} +1 -1
  90. package/lib/{HydrationBoundary-CNF2ZV3E.js → HydrationBoundary-CJu4vUlG.js} +6 -6
  91. package/lib/{HydrationBoundary-CNF2ZV3E.js.map → HydrationBoundary-CJu4vUlG.js.map} +1 -1
  92. package/lib/{MdxPage-Cr99RARi.js → MdxPage-BR_7-0cT.js} +8 -8
  93. package/lib/{MdxPage-Cr99RARi.js.map → MdxPage-BR_7-0cT.js.map} +1 -1
  94. package/lib/Mermaid-DAWm9rzb.js +104 -0
  95. package/lib/Mermaid-DAWm9rzb.js.map +1 -0
  96. package/lib/{OAuthErrorPage-BRXS5AMu.js → OAuthErrorPage-l0orKh-A.js} +22 -19
  97. package/lib/{OAuthErrorPage-BRXS5AMu.js.map → OAuthErrorPage-l0orKh-A.js.map} +1 -1
  98. package/lib/{OasProvider-sP_SqSM7.js → OasProvider-DPW0x8dk.js} +3 -3
  99. package/lib/{OasProvider-sP_SqSM7.js.map → OasProvider-DPW0x8dk.js.map} +1 -1
  100. package/lib/{OperationList-DR0APPhk.js → OperationList-Dcm9TZG7.js} +952 -948
  101. package/lib/OperationList-Dcm9TZG7.js.map +1 -0
  102. package/lib/{RouteGuard-CZuPjknT.js → RouteGuard-CVs3yvEs.js} +5 -5
  103. package/lib/{RouteGuard-CZuPjknT.js.map → RouteGuard-CVs3yvEs.js.map} +1 -1
  104. package/lib/{SchemaList-DgqAAHSI.js → SchemaList-B7RzviG5.js} +8 -8
  105. package/lib/{SchemaList-DgqAAHSI.js.map → SchemaList-B7RzviG5.js.map} +1 -1
  106. package/lib/{SchemaView-7IyQYEqk.js → SchemaView-Dt5-T06r.js} +3 -3
  107. package/lib/{SchemaView-7IyQYEqk.js.map → SchemaView-Dt5-T06r.js.map} +1 -1
  108. package/lib/{Secret-BE7V0Vb5.js → Secret-DUpgv4V3.js} +4 -4
  109. package/lib/{Secret-BE7V0Vb5.js.map → Secret-DUpgv4V3.js.map} +1 -1
  110. package/lib/{SignUp-D3zhMk7q.js → SignUp-CifBTCq4.js} +31 -26
  111. package/lib/{SignUp-D3zhMk7q.js.map → SignUp-CifBTCq4.js.map} +1 -1
  112. package/lib/{SyntaxHighlight-paLQ8NP8.js → SyntaxHighlight-BMu0b_hF.js} +3 -3
  113. package/lib/{SyntaxHighlight-paLQ8NP8.js.map → SyntaxHighlight-BMu0b_hF.js.map} +1 -1
  114. package/lib/{Toc-GluXkcIk.js → Toc-CeMXYWgp.js} +2 -2
  115. package/lib/{Toc-GluXkcIk.js.map → Toc-CeMXYWgp.js.map} +1 -1
  116. package/lib/{index-DYfX9H7i.js → Zudoku-B5YsolG1.js} +2869 -2710
  117. package/lib/Zudoku-B5YsolG1.js.map +1 -0
  118. package/lib/ZudokuContext-CYyb_PB_.js +175 -0
  119. package/lib/ZudokuContext-CYyb_PB_.js.map +1 -0
  120. package/lib/ZudokuReactContext-DGJAP1sN.js +222 -0
  121. package/lib/ZudokuReactContext-DGJAP1sN.js.map +1 -0
  122. package/lib/{circular-Bunzbpsy.js → circular-BV9K7T3F.js} +1327 -1346
  123. package/lib/{circular-Bunzbpsy.js.map → circular-BV9K7T3F.js.map} +1 -1
  124. package/lib/createServer-DYUdwZG4.js +13036 -0
  125. package/lib/createServer-DYUdwZG4.js.map +1 -0
  126. package/lib/{errors-D2NINcVk.js → errors-C3XsqYso.js} +3 -3
  127. package/lib/{errors-D2NINcVk.js.map → errors-C3XsqYso.js.map} +1 -1
  128. package/lib/{firebase-BVAmGV_v.js → firebase-CL9aCRn0.js} +26 -25
  129. package/lib/firebase-CL9aCRn0.js.map +1 -0
  130. package/lib/{hook-Da8QTnPd.js → hook-Dz_n9SoE.js} +16 -15
  131. package/lib/{hook-Da8QTnPd.js.map → hook-Dz_n9SoE.js.map} +1 -1
  132. package/lib/{index-DTjrb36R.js → index-CFW_9FdI.js} +2 -2
  133. package/lib/{index-DTjrb36R.js.map → index-CFW_9FdI.js.map} +1 -1
  134. package/lib/index-DAWHN3cH.js +86 -0
  135. package/lib/index-DAWHN3cH.js.map +1 -0
  136. package/lib/{index-BfTLawvZ.js → index-DywuWe2u.js} +589 -551
  137. package/lib/index-DywuWe2u.js.map +1 -0
  138. package/lib/{index.esm-B_0dvNjB.js → index.esm-Ca5zvoff.js} +20 -20
  139. package/lib/{index.esm-B_0dvNjB.js.map → index.esm-Ca5zvoff.js.map} +1 -1
  140. package/lib/{index.esm-GMDd_9gw.js → index.esm-ld_S_9qs.js} +2 -2
  141. package/lib/index.esm-ld_S_9qs.js.map +1 -0
  142. package/lib/{invariant-BJAl77rw.js → invariant-B_t_F2s_.js} +3 -3
  143. package/lib/{invariant-BJAl77rw.js.map → invariant-B_t_F2s_.js.map} +1 -1
  144. package/lib/{mutation-BISOc7OM.js → mutation-B7eFBLZY.js} +2 -2
  145. package/lib/{mutation-BISOc7OM.js.map → mutation-B7eFBLZY.js.map} +1 -1
  146. package/lib/ui/Alert.js +36 -24
  147. package/lib/ui/Alert.js.map +1 -1
  148. package/lib/ui/InputGroup.js +155 -0
  149. package/lib/ui/InputGroup.js.map +1 -0
  150. package/lib/ui/SyntaxHighlight.js +3 -3
  151. package/lib/useExposedProps-CzTDfXfq.js +30 -0
  152. package/lib/useExposedProps-CzTDfXfq.js.map +1 -0
  153. package/lib/{useMutation-CFMGlAMW.js → useMutation-CErliDZ9.js} +5 -5
  154. package/lib/{useMutation-CFMGlAMW.js.map → useMutation-CErliDZ9.js.map} +1 -1
  155. package/lib/{useSuspenseQuery-CSB_rVek.js → useQuery-ht7aWJ3S.js} +432 -446
  156. package/lib/useQuery-ht7aWJ3S.js.map +1 -0
  157. package/lib/useSuspenseQuery-DQH4Bmc2.js +18 -0
  158. package/lib/useSuspenseQuery-DQH4Bmc2.js.map +1 -0
  159. package/lib/zudoku.__internal.js +1504 -1041
  160. package/lib/zudoku.__internal.js.map +1 -1
  161. package/lib/zudoku.auth-auth0.js +6 -5
  162. package/lib/zudoku.auth-auth0.js.map +1 -1
  163. package/lib/zudoku.auth-azureb2c.js +14 -13
  164. package/lib/zudoku.auth-azureb2c.js.map +1 -1
  165. package/lib/zudoku.auth-clerk.js +2 -2
  166. package/lib/zudoku.auth-firebase.js +5 -5
  167. package/lib/zudoku.auth-openid.js +8 -7
  168. package/lib/zudoku.auth-openid.js.map +1 -1
  169. package/lib/zudoku.auth-supabase.js +4 -4
  170. package/lib/zudoku.components.js +31 -29
  171. package/lib/zudoku.components.js.map +1 -1
  172. package/lib/zudoku.hooks.js +24 -11
  173. package/lib/zudoku.hooks.js.map +1 -1
  174. package/lib/zudoku.mermaid.js +5 -4
  175. package/lib/zudoku.mermaid.js.map +1 -1
  176. package/lib/zudoku.plugin-api-catalog.js +41 -36
  177. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  178. package/lib/zudoku.plugin-api-keys.js +156 -153
  179. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  180. package/lib/zudoku.plugin-custom-pages.js +1 -1
  181. package/lib/zudoku.plugin-markdown.js +1 -1
  182. package/lib/zudoku.plugin-openapi.js +2 -2
  183. package/lib/zudoku.plugin-search-pagefind.js +19 -18
  184. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  185. package/lib/zudoku.react-query.js +26 -25
  186. package/lib/zudoku.react-query.js.map +1 -1
  187. package/package.json +5 -4
  188. package/src/app/defaultTheme.css +4 -0
  189. package/src/app/main.css +2 -0
  190. package/src/lib/components/MobileTopNavigation.tsx +13 -8
  191. package/src/lib/components/TopNavigation.tsx +25 -7
  192. package/src/lib/components/context/ZudokuContext.ts +1 -0
  193. package/src/lib/components/index.ts +19 -39
  194. package/src/lib/components/navigation/Navigation.tsx +4 -3
  195. package/src/lib/components/navigation/NavigationCategory.tsx +9 -0
  196. package/src/lib/components/navigation/NavigationFilterContext.tsx +28 -0
  197. package/src/lib/components/navigation/NavigationFilterInput.tsx +35 -0
  198. package/src/lib/components/navigation/NavigationItem.tsx +17 -1
  199. package/src/lib/components/navigation/utils.ts +32 -1
  200. package/src/lib/hooks/index.ts +7 -16
  201. package/src/lib/oas/graphql/circular.test.ts +37 -2
  202. package/src/lib/oas/graphql/circular.ts +25 -51
  203. package/src/lib/oas/parser/index.ts +17 -6
  204. package/src/lib/plugins/openapi/playground/fileUtils.ts +4 -0
  205. package/src/lib/plugins/openapi/playground/result-panel/AudioPlayer.tsx +50 -0
  206. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +33 -17
  207. package/src/lib/ui/Alert.tsx +17 -5
  208. package/src/lib/ui/InputGroup.tsx +168 -0
  209. package/src/lib/util/flattenAllOf.test.ts +2 -1
  210. package/src/lib/util/flattenAllOf.ts +0 -57
  211. package/src/lib/util/flattenAllOfProcessor.ts +58 -0
  212. package/src/lib/util/readFrontmatter.ts +2 -1
  213. package/src/zuplo/enrich-with-zuplo-mcp.ts +168 -0
  214. package/src/zuplo/enrich-with-zuplo.ts +254 -0
  215. package/src/zuplo/policy-types.ts +46 -0
  216. package/src/zuplo/with-zuplo-processors.ts +35 -0
  217. package/src/zuplo/with-zuplo.ts +14 -0
  218. package/lib/Mermaid-DEztDKFw.js +0 -102
  219. package/lib/Mermaid-DEztDKFw.js.map +0 -1
  220. package/lib/OperationList-DR0APPhk.js.map +0 -1
  221. package/lib/Separator-BXt1LYnm.js +0 -27
  222. package/lib/Separator-BXt1LYnm.js.map +0 -1
  223. package/lib/ZudokuContext-CnEI8jPU.js +0 -389
  224. package/lib/ZudokuContext-CnEI8jPU.js.map +0 -1
  225. package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js +0 -9
  226. package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js.map +0 -1
  227. package/lib/createServer-Dl4Xwsm4.js +0 -16693
  228. package/lib/createServer-Dl4Xwsm4.js.map +0 -1
  229. package/lib/firebase-BVAmGV_v.js.map +0 -1
  230. package/lib/index-Ba6RP577.js +0 -133
  231. package/lib/index-Ba6RP577.js.map +0 -1
  232. package/lib/index-BfTLawvZ.js.map +0 -1
  233. package/lib/index-DYfX9H7i.js.map +0 -1
  234. package/lib/index.esm-GMDd_9gw.js.map +0 -1
  235. package/lib/useSuspenseQuery-CSB_rVek.js.map +0 -1
@@ -1,41 +1,41 @@
1
1
  import { j as l } from "./jsx-runtime-BzflLqGi.js";
2
- import { u as ga, e as Ja } from "./useSuspenseQuery-CSB_rVek.js";
3
- import { H as Da } from "./index.esm-B_0dvNjB.js";
4
- import { DownloadIcon as Qa, ChevronDownIcon as va, ExternalLinkIcon as Ae, CopyIcon as kr, ChevronsUpDownIcon as lt, CheckIcon as xa, MinusIcon as Ka, PlusIcon as Ya, InfoIcon as ba, ChevronsDownUpIcon as qr } from "lucide-react";
5
- import { b as Xa, d as Za, u as eo } from "./chunk-EPOLDU6W-C6C8jAwd.js";
6
- import { u as ct, a as Sr, d as Ve, e as ja, f as Or, P as to, C as Rr, b as Er, c as Ar, h as ro, U as no } from "./index-BfTLawvZ.js";
7
- import { S as $a, a as ao, b as oo, c as io, d as so, f as lo } from "./Secret-BE7V0Vb5.js";
8
- import { C as co } from "./CategoryHeading-DhmodDcq.js";
9
- import { u as uo, h as po } from "./ZudokuContext-CnEI8jPU.js";
10
- import { B as ot, I as Ce, m as fo, T as ho, M as He, H as Fe, f as wa, i as Sa, j as Oa, k as Ta, b as mo } from "./index-DYfX9H7i.js";
11
- import { S as Ir, i as yo, a as go, E as Xr, b as vo, c as xo, g as bo, P as Tr } from "./SchemaView-7IyQYEqk.js";
12
- import { C as jo, a as $o, P as wo } from "./ClaudeLogo-K64Qm6gS.js";
13
- import { Slot as So } from "@radix-ui/react-slot";
2
+ import { g as Va } from "./useQuery-ht7aWJ3S.js";
3
+ import { u as ya } from "./useSuspenseQuery-DQH4Bmc2.js";
4
+ import { H as Ja } from "./index.esm-Ca5zvoff.js";
5
+ import { DownloadIcon as Da, ChevronDownIcon as ga, ExternalLinkIcon as Ie, CopyIcon as kr, ChevronsUpDownIcon as lt, CheckIcon as va, MinusIcon as Qa, PlusIcon as Ka, InfoIcon as xa, ChevronsDownUpIcon as qr } from "lucide-react";
6
+ import { b as Ya, d as Xa, u as Za } from "./chunk-EPOLDU6W-C6C8jAwd.js";
7
+ import { u as ct, a as Sr, d as Je, e as ba, f as Or, P as eo, C as Er, b as Rr, c as Ar, h as to, U as ro } from "./index-DywuWe2u.js";
8
+ import { S as ja, a as no, b as ao, c as oo, d as io, f as so } from "./Secret-DUpgv4V3.js";
9
+ import { C as lo } from "./CategoryHeading-DhmodDcq.js";
10
+ import { a as co, e as uo } from "./ZudokuContext-CYyb_PB_.js";
11
+ import { I as Ce, M as Ue, T as po, H as Me, g as wa, j as $a, k as Sa, l as Oa, b as fo, c as Yr } from "./Zudoku-B5YsolG1.js";
12
+ import { S as Ir, i as ho, a as mo, E as Xr, b as yo, c as go, g as vo, P as Tr } from "./SchemaView-Dt5-T06r.js";
13
+ import { C as xo, a as bo, P as jo } from "./ClaudeLogo-DP6JOmz1.js";
14
+ import { Button as Ne } from "./ui/Button.js";
15
+ import { useTransition as Ta, useState as ge, Fragment as wo, useRef as $o, useEffect as Cr, useMemo as So } from "react";
16
+ import { u as Oo } from "./ZudokuReactContext-DGJAP1sN.js";
17
+ import "./index-DAWHN3cH.js";
18
+ import { Slot as To } from "@radix-ui/react-slot";
14
19
  import { c as Ca } from "./index-DI5SPFK9.js";
15
20
  import { c as fe } from "./cn-5-Gd1Dss.js";
16
21
  import "@radix-ui/react-separator";
17
- import { D as Oo, a as To, b as Co, c as Xe } from "./DropdownMenu-DN0jNrjj.js";
18
- import { u as Po } from "./useCopyToClipboard-B_085nfO.js";
19
- import { useTransition as Pa, useState as ge, Fragment as No, useRef as ko, useEffect as Cr, useMemo as qo } from "react";
20
- import { Button as Ur } from "./ui/Button.js";
21
- import { S as Zr } from "./Separator-BXt1LYnm.js";
22
- import * as Ze from "@radix-ui/react-tabs";
23
- import { Callout as en } from "./ui/Callout.js";
24
- import { Card as Ro } from "./ui/Card.js";
25
- import { S as nt } from "./SyntaxHighlight-paLQ8NP8.js";
26
- import { Tabs as Eo, TabsList as Ao, TabsTrigger as et, TabsContent as tt } from "./ui/Tabs.js";
27
- import { VisuallyHidden as Io } from "@radix-ui/react-visually-hidden";
28
- import { Frame as Uo, FramePanel as Lo } from "./ui/Frame.js";
29
- import { Item as _o, ItemContent as tn, ItemTitle as Fo, ItemActions as Ho, ItemGroup as Mo, ItemSeparator as Bo } from "./ui/Item.js";
30
- import * as rn from "@radix-ui/react-collapsible";
31
- import { c as zo } from "./index-Ba6RP577.js";
22
+ import { D as Co, a as Po, b as No, c as Ze } from "./DropdownMenu-DN0jNrjj.js";
23
+ import { u as ko } from "./useCopyToClipboard-B_085nfO.js";
24
+ import * as et from "@radix-ui/react-tabs";
25
+ import { Callout as Zr } from "./ui/Callout.js";
26
+ import { Card as qo } from "./ui/Card.js";
27
+ import { S as at } from "./SyntaxHighlight-BMu0b_hF.js";
28
+ import { Tabs as Eo, TabsList as Ro, TabsTrigger as tt, TabsContent as rt } from "./ui/Tabs.js";
29
+ import { VisuallyHidden as Ao } from "@radix-ui/react-visually-hidden";
30
+ import { Frame as Io, FramePanel as _o } from "./ui/Frame.js";
31
+ import { Item as Uo, ItemContent as en, ItemTitle as Lo, ItemActions as Fo, ItemGroup as Ho, ItemSeparator as Mo } from "./ui/Item.js";
32
+ import * as tn from "@radix-ui/react-collapsible";
32
33
  import "./Button-GUVe7pmt.js";
33
- import { a as Go, c as it } from "./invariant-BJAl77rw.js";
34
- import { r as Wo } from "./___vite-browser-external_commonjs-proxy-BttVsNON.js";
35
- function Vo(e, n) {
34
+ import { g as Bo, c as it, a as zo } from "./invariant-B_t_F2s_.js";
35
+ function Go(e, n) {
36
36
  return n;
37
37
  }
38
- const Jo = Ca(
38
+ const Wo = Ca(
39
39
  "flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2",
40
40
  {
41
41
  variants: {
@@ -49,7 +49,7 @@ const Jo = Ca(
49
49
  }
50
50
  }
51
51
  );
52
- function Do({
52
+ function Vo({
53
53
  className: e,
54
54
  orientation: n,
55
55
  ...r
@@ -60,15 +60,15 @@ function Do({
60
60
  role: "group",
61
61
  "data-slot": "button-group",
62
62
  "data-orientation": n,
63
- className: fe(Jo({ orientation: n }), e),
63
+ className: fe(Wo({ orientation: n }), e),
64
64
  ...r
65
65
  }
66
66
  );
67
67
  }
68
- const Qo = ({
68
+ const Jo = ({
69
69
  downloadUrl: e
70
70
  }) => {
71
- const [, n] = Po(), r = async (a) => {
71
+ const [, n] = ko(), r = async (a) => {
72
72
  if (e.includes("://")) {
73
73
  a.preventDefault();
74
74
  try {
@@ -82,29 +82,29 @@ const Qo = ({
82
82
  }
83
83
  }
84
84
  };
85
- return /* @__PURE__ */ l.jsxs(Do, { children: [
85
+ return /* @__PURE__ */ l.jsxs(Vo, { children: [
86
86
  /* @__PURE__ */ l.jsx(
87
- ot,
87
+ Ne,
88
88
  {
89
89
  variant: "outline",
90
90
  size: "sm",
91
91
  className: "flex items-center gap-1.5",
92
92
  asChild: !0,
93
93
  children: /* @__PURE__ */ l.jsxs("a", { href: e, download: !0, onClick: r, children: [
94
- /* @__PURE__ */ l.jsx(Qa, { size: 14 }),
94
+ /* @__PURE__ */ l.jsx(Da, { size: 14 }),
95
95
  "Download schema"
96
96
  ] })
97
97
  }
98
98
  ),
99
- /* @__PURE__ */ l.jsxs(Oo, { children: [
100
- /* @__PURE__ */ l.jsx(To, { asChild: !0, children: /* @__PURE__ */ l.jsx(ot, { size: "sm", variant: "outline", className: "px-1.5", children: /* @__PURE__ */ l.jsx(va, { size: 14 }) }) }),
101
- /* @__PURE__ */ l.jsxs(Co, { align: "end", children: [
102
- /* @__PURE__ */ l.jsx(Xe, { asChild: !0, children: /* @__PURE__ */ l.jsxs("a", { href: e, target: "_blank", rel: "noopener noreferrer", children: [
103
- /* @__PURE__ */ l.jsx(Ae, { size: 14 }),
99
+ /* @__PURE__ */ l.jsxs(Co, { children: [
100
+ /* @__PURE__ */ l.jsx(Po, { asChild: !0, children: /* @__PURE__ */ l.jsx(Ne, { size: "sm", variant: "outline", className: "px-1.5", children: /* @__PURE__ */ l.jsx(ga, { size: 14 }) }) }),
101
+ /* @__PURE__ */ l.jsxs(No, { align: "end", children: [
102
+ /* @__PURE__ */ l.jsx(Ze, { asChild: !0, children: /* @__PURE__ */ l.jsxs("a", { href: e, target: "_blank", rel: "noopener noreferrer", children: [
103
+ /* @__PURE__ */ l.jsx(Ie, { size: 14 }),
104
104
  "Open in new tab"
105
105
  ] }) }),
106
106
  /* @__PURE__ */ l.jsxs(
107
- Xe,
107
+ Ze,
108
108
  {
109
109
  onClick: async () => {
110
110
  const c = await (await fetch(e)).text();
@@ -117,7 +117,7 @@ const Qo = ({
117
117
  }
118
118
  ),
119
119
  /* @__PURE__ */ l.jsxs(
120
- Xe,
120
+ Ze,
121
121
  {
122
122
  onClick: () => {
123
123
  const a = encodeURIComponent(
@@ -126,13 +126,13 @@ const Qo = ({
126
126
  window.open(`https://claude.ai/new?q=${a}`, "_blank");
127
127
  },
128
128
  children: [
129
- /* @__PURE__ */ l.jsx(jo, { className: "size-4" }),
129
+ /* @__PURE__ */ l.jsx(xo, { className: "size-4" }),
130
130
  "Use in Claude"
131
131
  ]
132
132
  }
133
133
  ),
134
134
  /* @__PURE__ */ l.jsxs(
135
- Xe,
135
+ Ze,
136
136
  {
137
137
  onClick: () => {
138
138
  const a = encodeURIComponent(
@@ -141,7 +141,7 @@ const Qo = ({
141
141
  window.open(`https://chatgpt.com/?q=${a}`, "_blank");
142
142
  },
143
143
  children: [
144
- /* @__PURE__ */ l.jsx($o, { className: "size-4" }),
144
+ /* @__PURE__ */ l.jsx(bo, { className: "size-4" }),
145
145
  "Use in ChatGPT"
146
146
  ]
147
147
  }
@@ -149,7 +149,7 @@ const Qo = ({
149
149
  ] })
150
150
  ] })
151
151
  ] });
152
- }, Ko = ({
152
+ }, Do = ({
153
153
  value: e,
154
154
  onChange: n,
155
155
  className: r,
@@ -179,7 +179,7 @@ const Qo = ({
179
179
  children: /* @__PURE__ */ l.jsx(lt, { size: 14 })
180
180
  }
181
181
  )
182
- ] }), Yo = Ve(
182
+ ] }), Qo = Je(
183
183
  /* GraphQL */
184
184
  `
185
185
  query ServersQuery($input: JSON!, $type: SchemaType!) {
@@ -191,10 +191,10 @@ const Qo = ({
191
191
  }
192
192
  }
193
193
  `
194
- ), Xo = ({ url: e }) => {
194
+ ), Ko = ({ url: e }) => {
195
195
  const [n, r] = ge(!1);
196
196
  return /* @__PURE__ */ l.jsx(
197
- Ur,
197
+ Ne,
198
198
  {
199
199
  onClick: () => {
200
200
  navigator.clipboard.writeText(e).then(() => {
@@ -203,17 +203,17 @@ const Qo = ({
203
203
  },
204
204
  variant: "ghost",
205
205
  size: "icon-xs",
206
- children: n ? /* @__PURE__ */ l.jsx(xa, { className: "text-green-600", size: 14 }) : /* @__PURE__ */ l.jsx(kr, { size: 14, strokeWidth: 1.3 })
206
+ children: n ? /* @__PURE__ */ l.jsx(va, { className: "text-green-600", size: 14 }) : /* @__PURE__ */ l.jsx(kr, { size: 14, strokeWidth: 1.3 })
207
207
  }
208
208
  );
209
- }, Zo = () => {
210
- const { input: e, type: n } = ct(), r = Sr(Yo, { input: e, type: n }), a = ga(r), [, c] = Pa(), { selectedServer: i, setSelectedServer: t } = ja(
209
+ }, Yo = () => {
210
+ const { input: e, type: n } = ct(), r = Sr(Qo, { input: e, type: n }), a = ya(r), [, c] = Ta(), { selectedServer: i, setSelectedServer: t } = ba(
211
211
  a.data.schema.servers
212
212
  ), { servers: o } = a.data.schema, s = o.at(0);
213
213
  return s ? /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-1.5 flex-nowrap", children: [
214
214
  /* @__PURE__ */ l.jsx("span", { className: "font-medium text-sm", children: "Endpoint" }),
215
215
  o.length > 1 ? /* @__PURE__ */ l.jsx(
216
- Ko,
216
+ Do,
217
217
  {
218
218
  className: "font-mono text-xs border-input bg-transparent dark:bg-input/30 dark:hover:bg-input/50 py-1.5 max-w-[450px] truncate",
219
219
  onChange: (u) => c(() => t(u.target.value)),
@@ -225,9 +225,9 @@ const Qo = ({
225
225
  }))
226
226
  }
227
227
  ) : /* @__PURE__ */ l.jsx(Ce, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: s.url }),
228
- /* @__PURE__ */ l.jsx(Xo, { url: o.length > 1 ? i : s.url })
228
+ /* @__PURE__ */ l.jsx(Ko, { url: o.length > 1 ? i : s.url })
229
229
  ] }) : null;
230
- }, ei = Ca(
230
+ }, Xo = Ca(
231
231
  "inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
232
232
  {
233
233
  variants: {
@@ -244,24 +244,24 @@ const Qo = ({
244
244
  }
245
245
  }
246
246
  );
247
- function Me({
247
+ function Be({
248
248
  className: e,
249
249
  variant: n,
250
250
  asChild: r = !1,
251
251
  ...a
252
252
  }) {
253
- const c = r ? So : "span";
253
+ const c = r ? To : "span";
254
254
  return /* @__PURE__ */ l.jsx(
255
255
  c,
256
256
  {
257
257
  "data-slot": "badge",
258
- className: fe(ei({ variant: n }), e),
258
+ className: fe(Xo({ variant: n }), e),
259
259
  ...a
260
260
  }
261
261
  );
262
262
  }
263
263
  const St = (e, n) => e ? n(e) : void 0;
264
- function Be({ className: e, ...n }) {
264
+ function ze({ className: e, ...n }) {
265
265
  return /* @__PURE__ */ l.jsxs(
266
266
  "div",
267
267
  {
@@ -282,7 +282,7 @@ function Be({ className: e, ...n }) {
282
282
  }
283
283
  ),
284
284
  /* @__PURE__ */ l.jsx(
285
- va,
285
+ ga,
286
286
  {
287
287
  className: "text-muted-foreground pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 opacity-50 select-none",
288
288
  "aria-hidden": "true",
@@ -293,10 +293,10 @@ function Be({ className: e, ...n }) {
293
293
  }
294
294
  );
295
295
  }
296
- function ze({ ...e }) {
296
+ function Ge({ ...e }) {
297
297
  return /* @__PURE__ */ l.jsx("option", { "data-slot": "native-select-option", ...e });
298
298
  }
299
- const nn = fe, ti = ({
299
+ const rn = fe, Zo = ({
300
300
  responses: e,
301
301
  selectedResponse: n,
302
302
  onSelectResponse: r
@@ -307,16 +307,16 @@ const nn = fe, ti = ({
307
307
  /* @__PURE__ */ l.jsxs(
308
308
  "div",
309
309
  {
310
- className: nn(
310
+ className: rn(
311
311
  "flex flex-row items-center gap-2 justify-between",
312
312
  !t && "px-4 py-1.5 border-b"
313
313
  ),
314
314
  children: [
315
- !t && /* @__PURE__ */ l.jsx(Ze.List, { className: "flex flex-row font-medium text-sm gap-4", children: e.map((s) => /* @__PURE__ */ l.jsx(
316
- Ze.Trigger,
315
+ !t && /* @__PURE__ */ l.jsx(et.List, { className: "flex flex-row font-medium text-sm gap-4", children: e.map((s) => /* @__PURE__ */ l.jsx(
316
+ et.Trigger,
317
317
  {
318
318
  value: s.statusCode,
319
- className: nn(
319
+ className: rn(
320
320
  "py-0.5 h-fit -mx-2 px-2 rounded-md",
321
321
  "data-[state=active]:dark:ring-1 data-[state=active]:dark:ring-border data-[state=active]:bg-background data-[state=active]:drop-shadow",
322
322
  "data-[state=active]:font-semibold data-[state=active]:text-foreground"
@@ -326,21 +326,21 @@ const nn = fe, ti = ({
326
326
  s.statusCode
327
327
  )) }),
328
328
  i?.content && i.content.length > 1 && /* @__PURE__ */ l.jsx(
329
- Be,
329
+ ze,
330
330
  {
331
331
  value: a,
332
332
  onChange: (s) => c(s.target.value),
333
333
  className: "text-xs h-fit py-1 bg-background",
334
- children: i.content.map((s) => /* @__PURE__ */ l.jsx(ze, { value: s.mediaType, children: s.mediaType }, s.mediaType))
334
+ children: i.content.map((s) => /* @__PURE__ */ l.jsx(Ge, { value: s.mediaType, children: s.mediaType }, s.mediaType))
335
335
  }
336
336
  )
337
337
  ]
338
338
  }
339
339
  ),
340
340
  /* @__PURE__ */ l.jsxs("div", { className: "p-2 clear-both", children: [
341
- t && /* @__PURE__ */ l.jsx(Me, { variant: "outline", className: "float-start me-2", children: i?.statusCode }),
341
+ t && /* @__PURE__ */ l.jsx(Be, { variant: "outline", className: "float-start me-2", children: i?.statusCode }),
342
342
  i?.description && /* @__PURE__ */ l.jsx(
343
- fo,
343
+ Ue,
344
344
  {
345
345
  className: "text-sm text-muted-foreground max-w-none",
346
346
  content: i.description
@@ -349,7 +349,7 @@ const nn = fe, ti = ({
349
349
  ] })
350
350
  ] });
351
351
  return /* @__PURE__ */ l.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ l.jsx(
352
- Ze.Root,
352
+ et.Root,
353
353
  {
354
354
  value: n,
355
355
  onValueChange: (s) => {
@@ -357,7 +357,7 @@ const nn = fe, ti = ({
357
357
  const u = e.find((p) => p.statusCode === s);
358
358
  c(u?.content?.[0]?.mediaType ?? "");
359
359
  },
360
- children: e.map((s) => /* @__PURE__ */ l.jsx(Ze.Content, { value: s.statusCode, children: /* @__PURE__ */ l.jsx(
360
+ children: e.map((s) => /* @__PURE__ */ l.jsx(et.Content, { value: s.statusCode, children: /* @__PURE__ */ l.jsx(
361
361
  Ir,
362
362
  {
363
363
  schema: s.content?.find(
@@ -368,7 +368,7 @@ const nn = fe, ti = ({
368
368
  ) }, s.statusCode))
369
369
  }
370
370
  ) });
371
- }, ri = ({
371
+ }, ei = ({
372
372
  serverUrl: e,
373
373
  summary: n,
374
374
  data: r
@@ -404,7 +404,7 @@ const nn = fe, ti = ({
404
404
  c(!0), setTimeout(() => c(!1), 2e3);
405
405
  });
406
406
  };
407
- return /* @__PURE__ */ l.jsx(Ro, { className: "p-6 mb-6 max-w-screen-md", children: /* @__PURE__ */ l.jsxs("div", { className: "space-y-4", children: [
407
+ return /* @__PURE__ */ l.jsx(qo, { className: "p-6 mb-6 max-w-screen-md", children: /* @__PURE__ */ l.jsxs("div", { className: "space-y-4", children: [
408
408
  /* @__PURE__ */ l.jsxs("div", { children: [
409
409
  /* @__PURE__ */ l.jsx("h3", { className: "text-lg font-semibold mb-2", children: "MCP Endpoint" }),
410
410
  /* @__PURE__ */ l.jsxs("p", { className: "text-sm text-muted-foreground mb-3", children: [
@@ -431,13 +431,13 @@ const nn = fe, ti = ({
431
431
  children: [
432
432
  /* @__PURE__ */ l.jsx(Ce, { className: "bg-primary/20 px-4 py-2 flex-1 border-none", children: i }),
433
433
  /* @__PURE__ */ l.jsx(
434
- Ur,
434
+ Ne,
435
435
  {
436
436
  onClick: d,
437
437
  variant: "ghost",
438
438
  size: "icon",
439
439
  className: "h-8 w-8",
440
- children: a ? /* @__PURE__ */ l.jsx(xa, { className: "h-4 w-4 text-green-600" }) : /* @__PURE__ */ l.jsx(kr, { className: "h-4 w-4" })
440
+ children: a ? /* @__PURE__ */ l.jsx(va, { className: "h-4 w-4 text-green-600" }) : /* @__PURE__ */ l.jsx(kr, { className: "h-4 w-4" })
441
441
  }
442
442
  )
443
443
  ]
@@ -449,14 +449,14 @@ const nn = fe, ti = ({
449
449
  /* @__PURE__ */ l.jsx("p", { className: "text-sm text-muted-foreground mb-3", children: "Choose your AI tool and copy the configuration to get started." }),
450
450
  /* @__PURE__ */ l.jsx("hr", { className: "my-4" }),
451
451
  /* @__PURE__ */ l.jsxs(Eo, { defaultValue: "claude", className: "w-full", children: [
452
- /* @__PURE__ */ l.jsxs(Ao, { className: "grid w-full grid-cols-4", children: [
453
- /* @__PURE__ */ l.jsx(et, { value: "claude", children: "Claude" }),
454
- /* @__PURE__ */ l.jsx(et, { value: "chatgpt", children: "ChatGPT" }),
455
- /* @__PURE__ */ l.jsx(et, { value: "cursor", children: "Cursor" }),
456
- /* @__PURE__ */ l.jsx(et, { value: "vscode", children: "VS Code" })
452
+ /* @__PURE__ */ l.jsxs(Ro, { className: "grid w-full grid-cols-4", children: [
453
+ /* @__PURE__ */ l.jsx(tt, { value: "claude", children: "Claude" }),
454
+ /* @__PURE__ */ l.jsx(tt, { value: "chatgpt", children: "ChatGPT" }),
455
+ /* @__PURE__ */ l.jsx(tt, { value: "cursor", children: "Cursor" }),
456
+ /* @__PURE__ */ l.jsx(tt, { value: "vscode", children: "VS Code" })
457
457
  ] }),
458
- /* @__PURE__ */ l.jsxs(ho, { className: "text-sm max-w-full", children: [
459
- /* @__PURE__ */ l.jsxs(tt, { value: "claude", className: "space-y-3", children: [
458
+ /* @__PURE__ */ l.jsxs(po, { className: "text-sm max-w-full", children: [
459
+ /* @__PURE__ */ l.jsxs(rt, { value: "claude", className: "space-y-3", children: [
460
460
  /* @__PURE__ */ l.jsxs("ol", { children: [
461
461
  /* @__PURE__ */ l.jsxs("li", { children: [
462
462
  "Open Claude Desktop and click ",
@@ -475,7 +475,7 @@ const nn = fe, ti = ({
475
475
  /* @__PURE__ */ l.jsx(Ce, { children: "claude_desktop_config.json" }),
476
476
  ":",
477
477
  /* @__PURE__ */ l.jsx(
478
- nt,
478
+ at,
479
479
  {
480
480
  showLanguageIndicator: !0,
481
481
  title: "claude_desktop_config.json",
@@ -501,13 +501,13 @@ const nn = fe, ti = ({
501
501
  className: "inline-flex items-center gap-1 text-sm text-primary hover:underline",
502
502
  children: [
503
503
  "View official docs",
504
- /* @__PURE__ */ l.jsx(Ae, { className: "h-3 w-3" })
504
+ /* @__PURE__ */ l.jsx(Ie, { className: "h-3 w-3" })
505
505
  ]
506
506
  }
507
507
  )
508
508
  ] }),
509
- /* @__PURE__ */ l.jsxs(tt, { value: "chatgpt", className: "space-y-3", children: [
510
- /* @__PURE__ */ l.jsx(en, { type: "note", title: "Requirements", children: "ChatGPT Pro, Team, Enterprise, or Edu subscription. Note: MCP support is limited to read-only operations through Deep Research." }),
509
+ /* @__PURE__ */ l.jsxs(rt, { value: "chatgpt", className: "space-y-3", children: [
510
+ /* @__PURE__ */ l.jsx(Zr, { type: "note", title: "Requirements", children: "ChatGPT Pro, Team, Enterprise, or Edu subscription. Note: MCP support is limited to read-only operations through Deep Research." }),
511
511
  /* @__PURE__ */ l.jsxs("ol", { children: [
512
512
  /* @__PURE__ */ l.jsxs("li", { children: [
513
513
  "Go to ",
@@ -537,12 +537,12 @@ const nn = fe, ti = ({
537
537
  className: "inline-flex items-center gap-1 text-sm text-primary hover:underline",
538
538
  children: [
539
539
  "View official docs",
540
- /* @__PURE__ */ l.jsx(Ae, { className: "h-3 w-3" })
540
+ /* @__PURE__ */ l.jsx(Ie, { className: "h-3 w-3" })
541
541
  ]
542
542
  }
543
543
  )
544
544
  ] }),
545
- /* @__PURE__ */ l.jsxs(tt, { value: "cursor", className: "space-y-3", children: [
545
+ /* @__PURE__ */ l.jsxs(rt, { value: "cursor", className: "space-y-3", children: [
546
546
  /* @__PURE__ */ l.jsxs("ol", { children: [
547
547
  /* @__PURE__ */ l.jsxs("li", { children: [
548
548
  /* @__PURE__ */ l.jsx("span", { children: "Create or edit: " }),
@@ -551,7 +551,7 @@ const nn = fe, ti = ({
551
551
  /* @__PURE__ */ l.jsx(Ce, { children: ".cursor/mcp.json" }),
552
552
  /* @__PURE__ */ l.jsx("span", { children: " (project)" }),
553
553
  /* @__PURE__ */ l.jsx(
554
- nt,
554
+ at,
555
555
  {
556
556
  showLanguageIndicator: !0,
557
557
  title: "mcp.json",
@@ -572,20 +572,20 @@ const nn = fe, ti = ({
572
572
  className: "inline-flex items-center gap-1 text-sm text-primary hover:underline",
573
573
  children: [
574
574
  "View official docs",
575
- /* @__PURE__ */ l.jsx(Ae, { className: "h-3 w-3" })
575
+ /* @__PURE__ */ l.jsx(Ie, { className: "h-3 w-3" })
576
576
  ]
577
577
  }
578
578
  )
579
579
  ] }),
580
- /* @__PURE__ */ l.jsxs(tt, { value: "vscode", className: "space-y-3", children: [
581
- /* @__PURE__ */ l.jsx(en, { type: "note", title: "Requirements", children: "VS Code with GitHub Copilot extension" }),
580
+ /* @__PURE__ */ l.jsxs(rt, { value: "vscode", className: "space-y-3", children: [
581
+ /* @__PURE__ */ l.jsx(Zr, { type: "note", title: "Requirements", children: "VS Code with GitHub Copilot extension" }),
582
582
  /* @__PURE__ */ l.jsxs("ol", { children: [
583
583
  /* @__PURE__ */ l.jsxs("li", { children: [
584
584
  /* @__PURE__ */ l.jsx("span", { children: "Create " }),
585
585
  /* @__PURE__ */ l.jsx(Ce, { children: ".vscode/mcp.json" }),
586
586
  /* @__PURE__ */ l.jsx("span", { children: " in your workspace (or user-level mcp.json):" }),
587
587
  /* @__PURE__ */ l.jsx(
588
- nt,
588
+ at,
589
589
  {
590
590
  showLanguageIndicator: !0,
591
591
  title: "mcp.json",
@@ -607,7 +607,7 @@ const nn = fe, ti = ({
607
607
  className: "inline-flex items-center gap-1 text-sm text-primary hover:underline",
608
608
  children: [
609
609
  "View official docs",
610
- /* @__PURE__ */ l.jsx(Ae, { className: "h-3 w-3" })
610
+ /* @__PURE__ */ l.jsx(Ie, { className: "h-3 w-3" })
611
611
  ]
612
612
  }
613
613
  )
@@ -616,18 +616,18 @@ const nn = fe, ti = ({
616
616
  ] })
617
617
  ] })
618
618
  ] }) });
619
- }, ni = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
619
+ }, ti = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
620
620
  type: "string"
621
- }, ai = ({
621
+ }, ri = ({
622
622
  parameter: e,
623
623
  group: n,
624
624
  id: r
625
625
  }) => {
626
- const a = ni(e), [c, i] = ge(!1), t = a.type === "object" || yo(a) && "items" in a && a.items?.type === "object", o = !!(e.description || a.description || a.type === "array" && a.items?.enum || a.enum || a.example !== void 0 || a.default !== void 0);
627
- return /* @__PURE__ */ l.jsxs(_o, { children: [
628
- /* @__PURE__ */ l.jsxs(tn, { className: "gap-y-2", children: [
626
+ const a = ti(e), [c, i] = ge(!1), t = a.type === "object" || ho(a) && "items" in a && a.items?.type === "object", o = !!(e.description || a.description || a.type === "array" && a.items?.enum || a.enum || a.example !== void 0 || a.default !== void 0);
627
+ return /* @__PURE__ */ l.jsxs(Uo, { children: [
628
+ /* @__PURE__ */ l.jsxs(en, { className: "gap-y-2", children: [
629
629
  /* @__PURE__ */ l.jsxs("div", { children: [
630
- /* @__PURE__ */ l.jsx(Fo, { className: "inline me-2", children: t ? /* @__PURE__ */ l.jsx(
630
+ /* @__PURE__ */ l.jsx(Lo, { className: "inline me-2", children: t ? /* @__PURE__ */ l.jsx(
631
631
  "button",
632
632
  {
633
633
  onClick: () => i(!c),
@@ -653,7 +653,7 @@ const nn = fe, ti = ({
653
653
  }
654
654
  ) : e.name }) }),
655
655
  /* @__PURE__ */ l.jsx(
656
- go,
656
+ mo,
657
657
  {
658
658
  className: "inline",
659
659
  schema: a,
@@ -666,37 +666,37 @@ const nn = fe, ti = ({
666
666
  )
667
667
  ] }),
668
668
  o && /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col gap-1.5", children: [
669
- e.description && /* @__PURE__ */ l.jsx(He, { content: e.description, className: "prose-sm" }),
669
+ e.description && /* @__PURE__ */ l.jsx(Ue, { content: e.description, className: "prose-sm" }),
670
670
  a.description && /* @__PURE__ */ l.jsx(
671
- He,
671
+ Ue,
672
672
  {
673
673
  content: a.description,
674
674
  className: "prose-sm"
675
675
  }
676
676
  ),
677
677
  a.type === "array" && a.items?.enum ? /* @__PURE__ */ l.jsx(Xr, { values: a.items.enum }) : a.enum && /* @__PURE__ */ l.jsx(Xr, { values: a.enum }),
678
- /* @__PURE__ */ l.jsx(vo, { schema: a })
678
+ /* @__PURE__ */ l.jsx(yo, { schema: a })
679
679
  ] })
680
680
  ] }),
681
- t && /* @__PURE__ */ l.jsx(Ho, { className: "self-start", children: /* @__PURE__ */ l.jsx(
682
- Ur,
681
+ t && /* @__PURE__ */ l.jsx(Fo, { className: "self-start", children: /* @__PURE__ */ l.jsx(
682
+ Ne,
683
683
  {
684
684
  variant: "ghost",
685
685
  size: "icon",
686
686
  className: "rounded-full",
687
687
  onClick: () => i(!c),
688
688
  "aria-label": "Toggle parameter",
689
- children: c ? /* @__PURE__ */ l.jsx(Ka, { size: 16 }) : /* @__PURE__ */ l.jsx(Ya, { size: 16 })
689
+ children: c ? /* @__PURE__ */ l.jsx(Qa, { size: 16 }) : /* @__PURE__ */ l.jsx(Ka, { size: 16 })
690
690
  }
691
691
  ) }),
692
692
  t && /* @__PURE__ */ l.jsx(
693
- rn.Root,
693
+ tn.Root,
694
694
  {
695
695
  defaultOpen: !1,
696
696
  open: c,
697
697
  onOpenChange: i,
698
698
  className: fe("w-full", !c && "contents"),
699
- children: /* @__PURE__ */ l.jsx(rn.Content, { asChild: !0, children: /* @__PURE__ */ l.jsx(tn, { children: /* @__PURE__ */ l.jsx(
699
+ children: /* @__PURE__ */ l.jsx(tn.Content, { asChild: !0, children: /* @__PURE__ */ l.jsx(en, { children: /* @__PURE__ */ l.jsx(
700
700
  Ir,
701
701
  {
702
702
  schema: "items" in a ? a.items : a
@@ -705,7 +705,7 @@ const nn = fe, ti = ({
705
705
  }
706
706
  )
707
707
  ] });
708
- }, oi = ({
708
+ }, ni = ({
709
709
  summary: e,
710
710
  group: n,
711
711
  parameters: r,
@@ -716,13 +716,13 @@ const nn = fe, ti = ({
716
716
  );
717
717
  return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
718
718
  /* @__PURE__ */ l.jsxs(
719
- Fe,
719
+ Me,
720
720
  {
721
721
  level: 3,
722
722
  id: `${a}/${n}-parameters`,
723
723
  className: "capitalize",
724
724
  children: [
725
- e && /* @__PURE__ */ l.jsxs(Io, { children: [
725
+ e && /* @__PURE__ */ l.jsxs(Ao, { children: [
726
726
  e,
727
727
  " › "
728
728
  ] }),
@@ -730,10 +730,10 @@ const nn = fe, ti = ({
730
730
  ]
731
731
  }
732
732
  ),
733
- /* @__PURE__ */ l.jsx(Uo, { children: /* @__PURE__ */ l.jsx(Lo, { className: "p-0!", children: /* @__PURE__ */ l.jsx(Mo, { className: "overflow-clip", children: c.map((i, t) => /* @__PURE__ */ l.jsxs(No, { children: [
734
- t > 0 && /* @__PURE__ */ l.jsx(Bo, {}),
733
+ /* @__PURE__ */ l.jsx(Io, { children: /* @__PURE__ */ l.jsx(_o, { className: "p-0!", children: /* @__PURE__ */ l.jsx(Ho, { className: "overflow-clip", children: c.map((i, t) => /* @__PURE__ */ l.jsxs(wo, { children: [
734
+ t > 0 && /* @__PURE__ */ l.jsx(Mo, {}),
735
735
  /* @__PURE__ */ l.jsx(
736
- ai,
736
+ ri,
737
737
  {
738
738
  parameter: i,
739
739
  id: a,
@@ -742,12 +742,12 @@ const nn = fe, ti = ({
742
742
  )
743
743
  ] }, `${i.name}-${i.in}`)) }) }) })
744
744
  ] });
745
- }, ii = ({
745
+ }, ai = ({
746
746
  rootMargin: e = "0px",
747
747
  threshold: n,
748
748
  root: r
749
749
  } = {}) => {
750
- const [a, c] = ge(!1), i = ko(null);
750
+ const [a, c] = ge(!1), i = $o(null);
751
751
  return Cr(() => {
752
752
  const t = new IntersectionObserver(
753
753
  ([s]) => {
@@ -758,7 +758,7 @@ const nn = fe, ti = ({
758
758
  if (o)
759
759
  return t.observe(o), () => t.unobserve(o);
760
760
  }, [r, e, n]), [i, a];
761
- }, si = () => /* @__PURE__ */ l.jsx("div", { className: "absolute inset-0 bg-linear-to-b from-transparent to-zinc-50/60 dark:to-zinc-950/90 z-10 transition-all group-hover:to-transparent" }), Lr = ({
761
+ }, oi = () => /* @__PURE__ */ l.jsx("div", { className: "absolute inset-0 bg-linear-to-b from-transparent to-zinc-50/60 dark:to-zinc-950/90 z-10 transition-all group-hover:to-transparent" }), _r = ({
762
762
  code: e,
763
763
  className: n
764
764
  }) => /* @__PURE__ */ l.jsx(
@@ -770,7 +770,7 @@ const nn = fe, ti = ({
770
770
  ),
771
771
  children: /* @__PURE__ */ l.jsxs("code", { children: [
772
772
  e.split(`
773
- `).length > 13 && /* @__PURE__ */ l.jsx(si, {}),
773
+ `).length > 13 && /* @__PURE__ */ l.jsx(oi, {}),
774
774
  e
775
775
  ] })
776
776
  }
@@ -795,7 +795,7 @@ const nn = fe, ti = ({
795
795
  ),
796
796
  children: e
797
797
  }
798
- ), _r = ({ children: e, className: n }) => /* @__PURE__ */ l.jsx(
798
+ ), Ur = ({ children: e, className: n }) => /* @__PURE__ */ l.jsx(
799
799
  "div",
800
800
  {
801
801
  "data-slot": "sidecar-box-body",
@@ -807,7 +807,7 @@ const nn = fe, ti = ({
807
807
  ),
808
808
  children: e
809
809
  }
810
- ), li = ({ children: e, className: n }) => /* @__PURE__ */ l.jsx(
810
+ ), ii = ({ children: e, className: n }) => /* @__PURE__ */ l.jsx(
811
811
  "div",
812
812
  {
813
813
  "data-slot": "sidecar-box-footer",
@@ -817,20 +817,20 @@ const nn = fe, ti = ({
817
817
  ),
818
818
  children: e
819
819
  }
820
- ), ci = ({
820
+ ), si = ({
821
821
  code: e,
822
822
  isOnScreen: n,
823
823
  shouldLazyHighlight: r
824
824
  }) => /* @__PURE__ */ l.jsxs(ut, { children: [
825
825
  /* @__PURE__ */ l.jsx(pt, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-1.5", children: [
826
826
  /* @__PURE__ */ l.jsx("span", { className: "font-medium", children: "Example Request Body" }),
827
- /* @__PURE__ */ l.jsx(wa, { children: /* @__PURE__ */ l.jsxs(Sa, { children: [
828
- /* @__PURE__ */ l.jsx(Oa, { asChild: !0, children: /* @__PURE__ */ l.jsx(ba, { size: 13 }) }),
829
- /* @__PURE__ */ l.jsx(Ta, { children: "This example is auto-generated from the schema." })
827
+ /* @__PURE__ */ l.jsx(wa, { children: /* @__PURE__ */ l.jsxs($a, { children: [
828
+ /* @__PURE__ */ l.jsx(Sa, { asChild: !0, children: /* @__PURE__ */ l.jsx(xa, { size: 13 }) }),
829
+ /* @__PURE__ */ l.jsx(Oa, { children: "This example is auto-generated from the schema." })
830
830
  ] }) })
831
831
  ] }) }),
832
- /* @__PURE__ */ l.jsx(_r, { className: "p-0", children: r && !n ? /* @__PURE__ */ l.jsx(Lr, { code: e }) : /* @__PURE__ */ l.jsx(
833
- $a,
832
+ /* @__PURE__ */ l.jsx(Ur, { className: "p-0", children: r && !n ? /* @__PURE__ */ l.jsx(_r, { code: e }) : /* @__PURE__ */ l.jsx(
833
+ ja,
834
834
  {
835
835
  embedded: !0,
836
836
  language: "json",
@@ -838,7 +838,7 @@ const nn = fe, ti = ({
838
838
  className: "[--scrollbar-color:gray] rounded-none text-xs max-h-[200px]"
839
839
  }
840
840
  ) })
841
- ] }), ui = ({
841
+ ] }), li = ({
842
842
  server: e,
843
843
  servers: n,
844
844
  operation: r,
@@ -863,7 +863,7 @@ const nn = fe, ti = ({
863
863
  defaultValue: o.schema?.default
864
864
  }));
865
865
  return /* @__PURE__ */ l.jsx(
866
- to,
866
+ eo,
867
867
  {
868
868
  server: e,
869
869
  servers: n,
@@ -875,10 +875,10 @@ const nn = fe, ti = ({
875
875
  examples: a
876
876
  }
877
877
  );
878
- }, pi = (e) => {
878
+ }, ci = (e) => {
879
879
  if (e != null)
880
880
  return typeof e == "string" ? e.trim() : JSON.stringify(e, null, 2);
881
- }, fi = (e) => e ? e.endsWith("+json") ? "json" : e.endsWith("+xml") ? "xml" : e.endsWith("+yaml") ? "yaml" : {
881
+ }, ui = (e) => e ? e.endsWith("+json") ? "json" : e.endsWith("+xml") ? "xml" : e.endsWith("+yaml") ? "yaml" : {
882
882
  "text/html": "html",
883
883
  "application/x-ndjson": "json",
884
884
  "application/json": "json",
@@ -887,7 +887,7 @@ const nn = fe, ti = ({
887
887
  "text/csv": "csv",
888
888
  "application/javascript": "javascript",
889
889
  "application/graphql": "graphql"
890
- }[e] ?? "plain" : "plain", Na = ({
890
+ }[e] ?? "plain" : "plain", Pa = ({
891
891
  content: e,
892
892
  description: n,
893
893
  onExampleChange: r,
@@ -896,9 +896,9 @@ const nn = fe, ti = ({
896
896
  isOnScreen: i,
897
897
  shouldLazyHighlight: t
898
898
  }) => {
899
- const o = e[a], s = o?.examples ?? [], u = s?.[c], p = pi(u?.value), d = fi(o?.mediaType);
899
+ const o = e[a], s = o?.examples ?? [], u = s?.[c], p = ci(u?.value), d = ui(o?.mediaType);
900
900
  return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
901
- /* @__PURE__ */ l.jsxs(_r, { className: "p-0", children: [
901
+ /* @__PURE__ */ l.jsxs(Ur, { className: "p-0", children: [
902
902
  u?.externalValue ? /* @__PURE__ */ l.jsx("div", { className: "p-4", children: /* @__PURE__ */ l.jsxs(
903
903
  "a",
904
904
  {
@@ -908,11 +908,11 @@ const nn = fe, ti = ({
908
908
  className: "text-xs text-primary hover:underline",
909
909
  children: [
910
910
  "View External Example",
911
- /* @__PURE__ */ l.jsx(Ae, { className: "size-3 inline-block ms-1 align-[-0.125em]" })
911
+ /* @__PURE__ */ l.jsx(Ie, { className: "size-3 inline-block ms-1 align-[-0.125em]" })
912
912
  ]
913
913
  }
914
- ) }) : t && !i && p ? /* @__PURE__ */ l.jsx(Lr, { code: p }) : p ? /* @__PURE__ */ l.jsx(
915
- nt,
914
+ ) }) : t && !i && p ? /* @__PURE__ */ l.jsx(_r, { code: p }) : p ? /* @__PURE__ */ l.jsx(
915
+ at,
916
916
  {
917
917
  embedded: !0,
918
918
  language: d,
@@ -922,11 +922,11 @@ const nn = fe, ti = ({
922
922
  ) : /* @__PURE__ */ l.jsx("div", { className: "grid place-items-center text-xs text-muted-foreground min-h-18", children: "No example specified for this content type" }),
923
923
  u?.description && /* @__PURE__ */ l.jsx("div", { className: "border-t text-xs px-3 py-1.5 text-muted-foreground", children: u.description })
924
924
  ] }),
925
- /* @__PURE__ */ l.jsxs(li, { className: "text-xs", children: [
925
+ /* @__PURE__ */ l.jsxs(ii, { className: "text-xs", children: [
926
926
  n && /* @__PURE__ */ l.jsx("div", { className: "text-muted-foreground text-xs px-1 py-2", children: n }),
927
927
  (s.length !== 0 || e.length !== 0) && /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-2 justify-between min-w-0", children: [
928
928
  /* @__PURE__ */ l.jsx("div", { className: "flex items-center gap-2 flex-wrap", children: e.length > 1 ? /* @__PURE__ */ l.jsx(
929
- Be,
929
+ ze,
930
930
  {
931
931
  className: "text-xs h-fit py-1 truncate bg-background",
932
932
  value: a.toString(),
@@ -935,7 +935,7 @@ const nn = fe, ti = ({
935
935
  exampleIndex: 0
936
936
  }),
937
937
  children: e.map((m, y) => /* @__PURE__ */ l.jsx(
938
- ze,
938
+ Ge,
939
939
  {
940
940
  value: y.toString(),
941
941
  children: m.mediaType
@@ -944,7 +944,7 @@ const nn = fe, ti = ({
944
944
  ))
945
945
  }
946
946
  ) : /* @__PURE__ */ l.jsx(
947
- Me,
947
+ Be,
948
948
  {
949
949
  className: "text-[11px] font-mono font-normal",
950
950
  variant: "outline",
@@ -952,7 +952,7 @@ const nn = fe, ti = ({
952
952
  }
953
953
  ) }),
954
954
  s.length > 1 && /* @__PURE__ */ l.jsx(
955
- Be,
955
+ ze,
956
956
  {
957
957
  className: "text-xs h-fit py-1 truncate bg-background",
958
958
  value: c.toString(),
@@ -961,7 +961,7 @@ const nn = fe, ti = ({
961
961
  exampleIndex: Number(m.target.value)
962
962
  }),
963
963
  children: s.map((m, y) => /* @__PURE__ */ l.jsx(
964
- ze,
964
+ Ge,
965
965
  {
966
966
  value: y.toString(),
967
967
  children: m.summary || m.name || m.description || `Example ${y + 1}`
@@ -973,17 +973,17 @@ const nn = fe, ti = ({
973
973
  ] })
974
974
  ] })
975
975
  ] });
976
- }, di = ({
976
+ }, pi = ({
977
977
  content: e,
978
978
  onExampleChange: n,
979
979
  isOnScreen: r,
980
980
  shouldLazyHighlight: a,
981
981
  selectedContentIndex: c,
982
982
  selectedExampleIndex: i
983
- }) => e.length === 0 ? null : /* @__PURE__ */ l.jsx(Rr, { className: "group/collapsible", defaultOpen: !0, children: /* @__PURE__ */ l.jsxs(ut, { children: [
983
+ }) => e.length === 0 ? null : /* @__PURE__ */ l.jsx(Er, { className: "group/collapsible", defaultOpen: !0, children: /* @__PURE__ */ l.jsxs(ut, { children: [
984
984
  /* @__PURE__ */ l.jsx(pt, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ l.jsxs("span", { className: "flex items-center gap-1 font-medium", children: [
985
- /* @__PURE__ */ l.jsx(Er, { asChild: !0, children: /* @__PURE__ */ l.jsxs(
986
- ot,
985
+ /* @__PURE__ */ l.jsx(Rr, { asChild: !0, children: /* @__PURE__ */ l.jsxs(
986
+ Ne,
987
987
  {
988
988
  variant: "ghost",
989
989
  className: "size-fit px-1 py-1 -my-1",
@@ -997,7 +997,7 @@ const nn = fe, ti = ({
997
997
  "Example Request Body"
998
998
  ] }) }),
999
999
  /* @__PURE__ */ l.jsx(Ar, { children: /* @__PURE__ */ l.jsx(
1000
- Na,
1000
+ Pa,
1001
1001
  {
1002
1002
  selectedContentIndex: c,
1003
1003
  selectedExampleIndex: i,
@@ -1007,7 +1007,7 @@ const nn = fe, ti = ({
1007
1007
  shouldLazyHighlight: a
1008
1008
  }
1009
1009
  ) })
1010
- ] }) }), an = ({
1010
+ ] }) }), nn = ({
1011
1011
  responses: e,
1012
1012
  selectedResponse: n,
1013
1013
  isOnScreen: r,
@@ -1021,11 +1021,11 @@ const nn = fe, ti = ({
1021
1021
  n && t(n);
1022
1022
  }, [n]), Cr(() => {
1023
1023
  i && (s(0), p(0));
1024
- }, [i]), /* @__PURE__ */ l.jsx(Rr, { className: "group/collapsible", defaultOpen: !0, children: /* @__PURE__ */ l.jsxs(ut, { children: [
1024
+ }, [i]), /* @__PURE__ */ l.jsx(Er, { className: "group/collapsible", defaultOpen: !0, children: /* @__PURE__ */ l.jsxs(ut, { children: [
1025
1025
  /* @__PURE__ */ l.jsxs(pt, { className: "text-xs flex justify-between items-center", children: [
1026
1026
  /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-1 font-medium shrink-0", children: [
1027
- /* @__PURE__ */ l.jsx(Er, { asChild: !0, children: /* @__PURE__ */ l.jsxs(
1028
- ot,
1027
+ /* @__PURE__ */ l.jsx(Rr, { asChild: !0, children: /* @__PURE__ */ l.jsxs(
1028
+ Ne,
1029
1029
  {
1030
1030
  variant: "ghost",
1031
1031
  className: "size-fit px-1 py-1 -my-1",
@@ -1037,19 +1037,19 @@ const nn = fe, ti = ({
1037
1037
  }
1038
1038
  ) }),
1039
1039
  "Example Responses",
1040
- c && /* @__PURE__ */ l.jsx(wa, { children: /* @__PURE__ */ l.jsxs(Sa, { children: [
1041
- /* @__PURE__ */ l.jsx(Oa, { asChild: !0, children: /* @__PURE__ */ l.jsx(ba, { size: 13 }) }),
1042
- /* @__PURE__ */ l.jsx(Ta, { children: "This example is auto-generated from the schema." })
1040
+ c && /* @__PURE__ */ l.jsx(wa, { children: /* @__PURE__ */ l.jsxs($a, { children: [
1041
+ /* @__PURE__ */ l.jsx(Sa, { asChild: !0, children: /* @__PURE__ */ l.jsx(xa, { size: 13 }) }),
1042
+ /* @__PURE__ */ l.jsx(Oa, { children: "This example is auto-generated from the schema." })
1043
1043
  ] }) })
1044
1044
  ] }),
1045
1045
  /* @__PURE__ */ l.jsx("div", { className: "group-data-[state=closed]/collapsible:invisible", children: /* @__PURE__ */ l.jsx(
1046
- Be,
1046
+ ze,
1047
1047
  {
1048
1048
  className: "text-xs h-fit py-1 -my-1 bg-background",
1049
1049
  value: i,
1050
1050
  onChange: (d) => t(d.target.value),
1051
1051
  children: e.map((d) => /* @__PURE__ */ l.jsx(
1052
- ze,
1052
+ Ge,
1053
1053
  {
1054
1054
  value: d.statusCode,
1055
1055
  children: d.statusCode
@@ -1060,7 +1060,7 @@ const nn = fe, ti = ({
1060
1060
  ) })
1061
1061
  ] }),
1062
1062
  /* @__PURE__ */ l.jsx(Ar, { children: /* @__PURE__ */ l.jsx(
1063
- Na,
1063
+ Pa,
1064
1064
  {
1065
1065
  selectedContentIndex: o,
1066
1066
  selectedExampleIndex: u,
@@ -1074,17 +1074,17 @@ const nn = fe, ti = ({
1074
1074
  ) })
1075
1075
  ] }) });
1076
1076
  };
1077
- var on = (e, n) => {
1077
+ var an = (e, n) => {
1078
1078
  const r = e[n.name];
1079
1079
  return r === void 0 ? (e[n.name] = n.value, e) : Array.isArray(r) ? (r.push(n.value), e) : (e[n.name] = [r, n.value], e);
1080
- }, sn = "", ln = `
1080
+ }, on = "", sn = `
1081
1081
  `, Q = class {
1082
1082
  /**
1083
1083
  * Helper object to format and aggragate lines of code.
1084
1084
  * Lines are aggregated in a `code` array, and need to be joined to obtain a proper code snippet.
1085
1085
  */
1086
1086
  constructor({ indent: e, join: n } = {}) {
1087
- this.postProcessors = [], this.code = [], this.indentationCharacter = sn, this.lineJoin = ln, this.indentLine = (r, a = 0) => `${this.indentationCharacter.repeat(a)}${r}`, this.unshift = (r, a) => {
1087
+ this.postProcessors = [], this.code = [], this.indentationCharacter = on, this.lineJoin = sn, this.indentLine = (r, a = 0) => `${this.indentationCharacter.repeat(a)}${r}`, this.unshift = (r, a) => {
1088
1088
  const c = this.indentLine(r, a);
1089
1089
  this.code.unshift(c);
1090
1090
  }, this.push = (r, a) => {
@@ -1097,30 +1097,30 @@ var on = (e, n) => {
1097
1097
  return this.postProcessors.reduce((c, i) => i(c), r);
1098
1098
  }, this.addPostProcessor = (r) => {
1099
1099
  this.postProcessors = [...this.postProcessors, r];
1100
- }, this.indentationCharacter = e || sn, this.lineJoin = n ?? ln;
1100
+ }, this.indentationCharacter = e || on, this.lineJoin = n ?? sn;
1101
1101
  }
1102
- }, Ot, cn;
1103
- function hi() {
1104
- return cn || (cn = 1, Ot = function(e) {
1102
+ }, Ot, ln;
1103
+ function fi() {
1104
+ return ln || (ln = 1, Ot = function(e) {
1105
1105
  return Object.prototype.toString.call(e) === "[object RegExp]";
1106
1106
  }), Ot;
1107
1107
  }
1108
- var Tt, un;
1109
- function mi() {
1110
- return un || (un = 1, Tt = function(e) {
1108
+ var Tt, cn;
1109
+ function di() {
1110
+ return cn || (cn = 1, Tt = function(e) {
1111
1111
  var n = typeof e;
1112
1112
  return e !== null && (n === "object" || n === "function");
1113
1113
  }), Tt;
1114
1114
  }
1115
- var rt = {}, pn;
1116
- function yi() {
1117
- return pn || (pn = 1, Object.defineProperty(rt, "__esModule", { value: !0 }), rt.default = (e) => Object.getOwnPropertySymbols(e).filter((n) => Object.prototype.propertyIsEnumerable.call(e, n))), rt;
1115
+ var nt = {}, un;
1116
+ function hi() {
1117
+ return un || (un = 1, Object.defineProperty(nt, "__esModule", { value: !0 }), nt.default = (e) => Object.getOwnPropertySymbols(e).filter((n) => Object.prototype.propertyIsEnumerable.call(e, n))), nt;
1118
1118
  }
1119
- var Ct, fn;
1120
- function gi() {
1121
- if (fn) return Ct;
1122
- fn = 1;
1123
- const e = hi(), n = mi(), r = yi().default;
1119
+ var Ct, pn;
1120
+ function mi() {
1121
+ if (pn) return Ct;
1122
+ pn = 1;
1123
+ const e = fi(), n = di(), r = hi().default;
1124
1124
  return Ct = (a, c, i) => {
1125
1125
  const t = [];
1126
1126
  return (function o(s, u, p) {
@@ -1180,14 +1180,14 @@ function gi() {
1180
1180
  })(a, c, i);
1181
1181
  }, Ct;
1182
1182
  }
1183
- var vi = gi();
1184
- const ue = /* @__PURE__ */ Go(vi);
1185
- function Ge(e, n = {}) {
1183
+ var yi = mi();
1184
+ const ue = /* @__PURE__ */ Bo(yi);
1185
+ function We(e, n = {}) {
1186
1186
  const { delimiter: r = '"', escapeChar: a = "\\", escapeNewlines: c = !0 } = n;
1187
1187
  return [...e.toString()].map((t) => t === "\b" ? `${a}b` : t === " " ? `${a}t` : t === `
1188
1188
  ` ? c ? `${a}n` : t : t === "\f" ? `${a}f` : t === "\r" ? c ? `${a}r` : t : t === a ? a + a : t === r ? a + r : t < " " || t > "~" ? JSON.stringify(t).slice(1, -1) : t).join("");
1189
1189
  }
1190
- var We = (e) => Ge(e, { delimiter: "'" }), le = (e) => Ge(e, { delimiter: '"' }), xi = {
1190
+ var Ve = (e) => We(e, { delimiter: "'" }), le = (e) => We(e, { delimiter: '"' }), gi = {
1191
1191
  info: {
1192
1192
  key: "libcurl",
1193
1193
  title: "Libcurl",
@@ -1203,7 +1203,7 @@ var We = (e) => Ge(e, { delimiter: "'" }), le = (e) => Ge(e, { delimiter: '"' })
1203
1203
  i(`headers = curl_slist_append(headers, "${u}: ${le(r[u])}");`);
1204
1204
  }), i("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), a.cookie && (t(), i(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${a.cookie}");`)), c.text && (t(), i(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(c.text)});`)), t(), i("CURLcode ret = curl_easy_perform(hnd);"), o();
1205
1205
  }
1206
- }, bi = {
1206
+ }, vi = {
1207
1207
  info: {
1208
1208
  key: "c",
1209
1209
  title: "C",
@@ -1211,30 +1211,30 @@ var We = (e) => Ge(e, { delimiter: "'" }), le = (e) => Ge(e, { delimiter: '"' })
1211
1211
  cli: "c"
1212
1212
  },
1213
1213
  clientsById: {
1214
- libcurl: xi
1214
+ libcurl: gi
1215
1215
  }
1216
1216
  }, pe = (e, n) => Object.keys(e).find((r) => r.toLowerCase() === n.toLowerCase()), ve = (e, n) => {
1217
1217
  const r = pe(e, n);
1218
1218
  if (r)
1219
1219
  return e[r];
1220
- }, ft = (e, n) => !!pe(e, n), ji = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
1220
+ }, ft = (e, n) => !!pe(e, n), xi = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
1221
1221
  (n) => e.indexOf(n) > -1
1222
- ), dn = class {
1222
+ ), fn = class {
1223
1223
  constructor(e) {
1224
1224
  this.name = "", this.toString = () => `:${this.name}`, this.name = e;
1225
1225
  }
1226
- }, $i = class {
1226
+ }, bi = class {
1227
1227
  constructor(e) {
1228
1228
  this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
1229
1229
  }
1230
- }, ka = (e) => e === void 0 ? null : e === null ? "null" : e.constructor.name.toLowerCase(), qa = (e) => e === void 0 ? !0 : ka(e) === "object" ? Object.keys(e).length === 0 : !1, hn = (e) => (Object.keys(e).filter((n) => qa(e[n])).forEach((n) => {
1230
+ }, Na = (e) => e === void 0 ? null : e === null ? "null" : e.constructor.name.toLowerCase(), ka = (e) => e === void 0 ? !0 : Na(e) === "object" ? Object.keys(e).length === 0 : !1, dn = (e) => (Object.keys(e).filter((n) => ka(e[n])).forEach((n) => {
1231
1231
  delete e[n];
1232
- }), e), at = (e, n) => {
1232
+ }), e), ot = (e, n) => {
1233
1233
  const r = " ".repeat(e);
1234
1234
  return n.replace(/\n/g, `
1235
1235
  ${r}`);
1236
1236
  }, Pr = (e) => {
1237
- switch (ka(e)) {
1237
+ switch (Na(e)) {
1238
1238
  case "string":
1239
1239
  return `"${e.replace(/"/g, '\\"')}"`;
1240
1240
  case "file":
@@ -1247,20 +1247,20 @@ ${r}`);
1247
1247
  return `#"${e.source}"`;
1248
1248
  case "object": {
1249
1249
  const n = Object.keys(e).reduce((r, a) => {
1250
- const c = at(a.length + 2, Pr(e[a]));
1250
+ const c = ot(a.length + 2, Pr(e[a]));
1251
1251
  return `${r}:${a} ${c}
1252
1252
  `;
1253
1253
  }, "").trim();
1254
- return `{${at(1, n)}}`;
1254
+ return `{${ot(1, n)}}`;
1255
1255
  }
1256
1256
  case "array": {
1257
1257
  const n = e.reduce((r, a) => `${r} ${Pr(a)}`, "").trim();
1258
- return `[${at(1, n)}]`;
1258
+ return `[${ot(1, n)}]`;
1259
1259
  }
1260
1260
  default:
1261
1261
  return e.toString();
1262
1262
  }
1263
- }, wi = {
1263
+ }, ji = {
1264
1264
  info: {
1265
1265
  key: "clj_http",
1266
1266
  title: "clj-http",
@@ -1279,7 +1279,7 @@ ${r}`);
1279
1279
  switch (r.mimeType) {
1280
1280
  case "application/json":
1281
1281
  {
1282
- u["content-type"] = new dn("json"), u["form-params"] = r.jsonObj;
1282
+ u["content-type"] = new fn("json"), u["form-params"] = r.jsonObj;
1283
1283
  const p = pe(u.headers, "content-type");
1284
1284
  p && delete u.headers[p];
1285
1285
  }
@@ -1302,7 +1302,7 @@ ${r}`);
1302
1302
  if (r.params) {
1303
1303
  u.multipart = r.params.map((d) => d.fileName && !d.value ? {
1304
1304
  name: d.name,
1305
- content: new $i(d.fileName)
1305
+ content: new bi(d.fileName)
1306
1306
  } : {
1307
1307
  name: d.name,
1308
1308
  content: d.value
@@ -1316,31 +1316,31 @@ ${r}`);
1316
1316
  switch (ve(u.headers, "accept")) {
1317
1317
  case "application/json":
1318
1318
  {
1319
- u.accept = new dn("json");
1319
+ u.accept = new fn("json");
1320
1320
  const p = pe(u.headers, "accept");
1321
1321
  p && delete u.headers[p];
1322
1322
  }
1323
1323
  break;
1324
1324
  }
1325
1325
  if (t(`(require '[clj-http.client :as client])
1326
- `), qa(hn(u)))
1326
+ `), ka(dn(u)))
1327
1327
  t(`(client/${n} "${a}")`);
1328
1328
  else {
1329
- const p = 11 + n.length + a.length, d = at(p, Pr(hn(u)));
1329
+ const p = 11 + n.length + a.length, d = ot(p, Pr(dn(u)));
1330
1330
  t(`(client/${n} "${a}" ${d})`);
1331
1331
  }
1332
1332
  return o();
1333
1333
  }
1334
- }, Si = {
1334
+ }, wi = {
1335
1335
  info: {
1336
1336
  key: "clojure",
1337
1337
  title: "Clojure",
1338
1338
  default: "clj_http"
1339
1339
  },
1340
1340
  clientsById: {
1341
- clj_http: wi
1341
+ clj_http: ji
1342
1342
  }
1343
- }, Oi = (e) => {
1343
+ }, $i = (e) => {
1344
1344
  let n = ve(e, "accept-encoding");
1345
1345
  if (!n)
1346
1346
  return [];
@@ -1357,7 +1357,7 @@ ${r}`);
1357
1357
  }
1358
1358
  });
1359
1359
  }), a;
1360
- }, Ti = {
1360
+ }, Si = {
1361
1361
  info: {
1362
1362
  key: "httpclient",
1363
1363
  title: "HttpClient",
@@ -1372,7 +1372,7 @@ ${r}`);
1372
1372
  }, { push: t, join: o } = new Q({ indent: i.indent });
1373
1373
  t("using System.Net.Http.Headers;");
1374
1374
  let s = "";
1375
- const u = !!e.cookie, p = Oi(e);
1375
+ const u = !!e.cookie, p = $i(e);
1376
1376
  (u || p.length) && (s = "clientHandler", t("var clientHandler = new HttpClientHandler"), t("{"), u && t("UseCookies = false,", 1), p.length && t(`AutomaticDecompression = ${p.join(" | ")},`, 1), t("};")), t(`var client = new HttpClient(${s});`), t("var request = new HttpRequestMessage"), t("{");
1377
1377
  const d = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
1378
1378
  r = r.toUpperCase(), r && d.includes(r) ? r = `HttpMethod.${r[0]}${r.substring(1).toLowerCase()}` : r = `new HttpMethod("${r}")`, t(`Method = ${r},`, 1), t(`RequestUri = new Uri("${a}"),`, 1);
@@ -1409,10 +1409,10 @@ ${r}`);
1409
1409
  return t("};"), t("using (var response = await client.SendAsync(request))"), t("{"), t("response.EnsureSuccessStatusCode();", 1), t("var body = await response.Content.ReadAsStringAsync();", 1), t("Console.WriteLine(body);", 1), t("}"), o();
1410
1410
  }
1411
1411
  };
1412
- function Ci(e) {
1412
+ function Oi(e) {
1413
1413
  return e[0].toUpperCase() + e.slice(1).toLowerCase();
1414
1414
  }
1415
- var Pi = {
1415
+ var Ti = {
1416
1416
  info: {
1417
1417
  key: "restsharp",
1418
1418
  title: "RestSharp",
@@ -1462,11 +1462,11 @@ var Pi = {
1462
1462
  if (!c.text) break;
1463
1463
  t(`request.AddStringBody("${c.text}", "${c.mimeType}");`);
1464
1464
  }
1465
- return t(`var response = await client.${Ci(e)}Async(request);
1465
+ return t(`var response = await client.${Oi(e)}Async(request);
1466
1466
  `), t(`Console.WriteLine("{0}", response.Content);
1467
1467
  `), o();
1468
1468
  }
1469
- }, Ni = {
1469
+ }, Ci = {
1470
1470
  info: {
1471
1471
  key: "csharp",
1472
1472
  title: "C#",
@@ -1474,10 +1474,10 @@ var Pi = {
1474
1474
  cli: "dotnet"
1475
1475
  },
1476
1476
  clientsById: {
1477
- httpclient: Ti,
1478
- restsharp: Pi
1477
+ httpclient: Si,
1478
+ restsharp: Ti
1479
1479
  }
1480
- }, ki = {
1480
+ }, Pi = {
1481
1481
  info: {
1482
1482
  key: "native",
1483
1483
  title: "NewRequest",
@@ -1495,7 +1495,7 @@ var Pi = {
1495
1495
  t(`req.Header.Add("${v}", "${le(r[v])}")`, y);
1496
1496
  }), i()), t(`res, ${m} := ${g}.Do(req)`, y), j(), p && (i(), t("defer res.Body.Close()", y), t(`body, ${m} := io.ReadAll(res.Body)`, y), j()), i(), p && t("fmt.Println(string(body))", y), s && (i(), t("}")), o();
1497
1497
  }
1498
- }, qi = {
1498
+ }, Ni = {
1499
1499
  info: {
1500
1500
  key: "go",
1501
1501
  title: "Go",
@@ -1503,10 +1503,10 @@ var Pi = {
1503
1503
  cli: "go"
1504
1504
  },
1505
1505
  clientsById: {
1506
- native: ki
1506
+ native: Pi
1507
1507
  }
1508
- }, mn = `\r
1509
- `, Ri = {
1508
+ }, hn = `\r
1509
+ `, ki = {
1510
1510
  info: {
1511
1511
  key: "http1.1",
1512
1512
  title: "HTTP/1.1",
@@ -1520,7 +1520,7 @@ var Pi = {
1520
1520
  autoContentLength: !0,
1521
1521
  autoHost: !0,
1522
1522
  ...t
1523
- }, { blank: s, push: u, join: p } = new Q({ indent: "", join: mn }), d = o.absoluteURI ? n : r.path;
1523
+ }, { blank: s, push: u, join: p } = new Q({ indent: "", join: hn }), d = o.absoluteURI ? n : r.path;
1524
1524
  u(`${e} ${d} ${a}`);
1525
1525
  const m = Object.keys(c);
1526
1526
  if (m.forEach((b) => {
@@ -1532,18 +1532,18 @@ var Pi = {
1532
1532
  }
1533
1533
  s();
1534
1534
  const y = p(), j = i.text || "";
1535
- return `${y}${mn}${j}`;
1535
+ return `${y}${hn}${j}`;
1536
1536
  }
1537
- }, Ei = {
1537
+ }, qi = {
1538
1538
  info: {
1539
1539
  key: "http",
1540
1540
  title: "HTTP",
1541
1541
  default: "http1.1"
1542
1542
  },
1543
1543
  clientsById: {
1544
- "http1.1": Ri
1544
+ "http1.1": ki
1545
1545
  }
1546
- }, Ai = {
1546
+ }, Ei = {
1547
1547
  info: {
1548
1548
  key: "asynchttp",
1549
1549
  title: "AsyncHttp",
@@ -1560,7 +1560,7 @@ var Pi = {
1560
1560
  o(`.setHeader("${u}", "${le(n[u])}")`, 1);
1561
1561
  }), r.text && o(`.setBody(${JSON.stringify(r.text)})`, 1), o(".execute()", 1), o(".toCompletableFuture()", 1), o(".thenAccept(System.out::println)", 1), o(".join();", 1), t(), o("client.close();"), s();
1562
1562
  }
1563
- }, Ii = {
1563
+ }, Ri = {
1564
1564
  info: {
1565
1565
  key: "nethttp",
1566
1566
  title: "java.net.http",
@@ -1582,7 +1582,7 @@ var Pi = {
1582
1582
  "HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
1583
1583
  ), t("System.out.println(response.body());"), o();
1584
1584
  }
1585
- }, Ui = {
1585
+ }, Ai = {
1586
1586
  info: {
1587
1587
  key: "okhttp",
1588
1588
  title: "OkHttp",
@@ -1599,7 +1599,7 @@ var Pi = {
1599
1599
  t(`.addHeader("${d}", "${le(a[d])}")`, 1);
1600
1600
  }), t(".build();", 1), o(), t("Response response = client.newCall(request).execute();"), s();
1601
1601
  }
1602
- }, Li = {
1602
+ }, Ii = {
1603
1603
  info: {
1604
1604
  key: "unirest",
1605
1605
  title: "Unirest",
@@ -1623,12 +1623,12 @@ var Pi = {
1623
1623
  default: "unirest"
1624
1624
  },
1625
1625
  clientsById: {
1626
- asynchttp: Ai,
1627
- nethttp: Ii,
1628
- okhttp: Ui,
1629
- unirest: Li
1626
+ asynchttp: Ei,
1627
+ nethttp: Ri,
1628
+ okhttp: Ai,
1629
+ unirest: Ii
1630
1630
  }
1631
- }, Fi = {
1631
+ }, Ui = {
1632
1632
  info: {
1633
1633
  key: "axios",
1634
1634
  title: "Axios",
@@ -1672,7 +1672,7 @@ var Pi = {
1672
1672
  }).replace('"[form]"', "form");
1673
1673
  return s(`const options = ${m};`), o(), s("axios"), s(".request(options)", 1), s(".then(function (response) {", 1), s("console.log(response.data);", 2), s("})", 1), s(".catch(function (error) {", 1), s("console.error(error);", 2), s("});", 1), u();
1674
1674
  }
1675
- }, Hi = {
1675
+ }, Li = {
1676
1676
  info: {
1677
1677
  key: "fetch",
1678
1678
  title: "fetch",
@@ -1725,7 +1725,7 @@ var Pi = {
1725
1725
  })};`
1726
1726
  ), t(), r.params && r.mimeType === "multipart/form-data" && (s("options.body = form;"), t()), s(`fetch('${a}', options)`), s(".then(response => response.json())", 1), s(".then(response => console.log(response))", 1), s(".catch(err => console.error(err));", 1), o();
1727
1727
  }
1728
- }, Mi = {
1728
+ }, Fi = {
1729
1729
  info: {
1730
1730
  key: "jquery",
1731
1731
  title: "jQuery",
@@ -1768,7 +1768,7 @@ var Pi = {
1768
1768
  const p = ue(u, { indent: i.indent }).replace("'[form]'", "form");
1769
1769
  return o(`const settings = ${p};`), t(), o("$.ajax(settings).done(function (response) {"), o("console.log(response);", 1), o("});"), s();
1770
1770
  }
1771
- }, Bi = {
1771
+ }, Hi = {
1772
1772
  info: {
1773
1773
  key: "xhr",
1774
1774
  title: "XMLHttpRequest",
@@ -1805,22 +1805,22 @@ var Pi = {
1805
1805
  o(`const data = ${e.text ? `'${e.text}'` : "null"};`), t();
1806
1806
  }
1807
1807
  return o("const xhr = new XMLHttpRequest();"), i.cors && o("xhr.withCredentials = true;"), t(), o("xhr.addEventListener('readystatechange', function () {"), o("if (this.readyState === this.DONE) {", 1), o("console.log(this.responseText);", 2), o("}", 1), o("});"), t(), o(`xhr.open('${r}', '${a}');`), Object.keys(n).forEach((u) => {
1808
- o(`xhr.setRequestHeader('${u}', '${We(n[u])}');`);
1808
+ o(`xhr.setRequestHeader('${u}', '${Ve(n[u])}');`);
1809
1809
  }), t(), o("xhr.send(data);"), s();
1810
1810
  }
1811
- }, zi = {
1811
+ }, Mi = {
1812
1812
  info: {
1813
1813
  key: "javascript",
1814
1814
  title: "JavaScript",
1815
1815
  default: "xhr"
1816
1816
  },
1817
1817
  clientsById: {
1818
- xhr: Bi,
1819
- axios: Fi,
1820
- fetch: Hi,
1821
- jquery: Mi
1818
+ xhr: Hi,
1819
+ axios: Ui,
1820
+ fetch: Li,
1821
+ jquery: Fi
1822
1822
  }
1823
- }, Gi = {
1823
+ }, Bi = {
1824
1824
  info: {
1825
1825
  key: "native",
1826
1826
  title: "Native JSON",
@@ -1854,16 +1854,16 @@ var Pi = {
1854
1854
  }
1855
1855
  return typeof a > "u" || a === "" ? "No JSON body" : JSON.stringify(a, null, r.indent);
1856
1856
  }
1857
- }, Wi = {
1857
+ }, zi = {
1858
1858
  info: {
1859
1859
  key: "json",
1860
1860
  title: "JSON",
1861
1861
  default: "native"
1862
1862
  },
1863
1863
  clientsById: {
1864
- native: Gi
1864
+ native: Bi
1865
1865
  }
1866
- }, Vi = {
1866
+ }, Gi = {
1867
1867
  info: {
1868
1868
  key: "okhttp",
1869
1869
  title: "OkHttp",
@@ -1880,16 +1880,16 @@ var Pi = {
1880
1880
  s(`.addHeader("${d}", "${le(a[d])}")`, 1);
1881
1881
  }), s(".build()", 1), t(), s("val response = client.newCall(request).execute()"), o();
1882
1882
  }
1883
- }, Ji = {
1883
+ }, Wi = {
1884
1884
  info: {
1885
1885
  key: "kotlin",
1886
1886
  title: "Kotlin",
1887
1887
  default: "okhttp"
1888
1888
  },
1889
1889
  clientsById: {
1890
- okhttp: Vi
1890
+ okhttp: Gi
1891
1891
  }
1892
- }, Di = {
1892
+ }, Vi = {
1893
1893
  info: {
1894
1894
  key: "axios",
1895
1895
  title: "Axios",
@@ -1923,7 +1923,7 @@ var Pi = {
1923
1923
  const d = ue(p, { indent: " ", inlineCharacterLimit: 80 });
1924
1924
  return s(`const options = ${d};`), t(), s("axios"), s(".request(options)", 1), s(".then(function (response) {", 1), s("console.log(response.data);", 2), s("})", 1), s(".catch(function (error) {", 1), s("console.error(error);", 2), s("});", 1), o();
1925
1925
  }
1926
- }, Qi = {
1926
+ }, Ji = {
1927
1927
  info: {
1928
1928
  key: "fetch",
1929
1929
  title: "Fetch",
@@ -1982,7 +1982,7 @@ var Pi = {
1982
1982
  });
1983
1983
  return u(`const options = ${j};`), s(), o && d("const fs = require('fs');"), r.params && r.mimeType === "multipart/form-data" && (u("options.body = formData;"), s()), u("fetch(url, options)"), u(".then(res => res.json())", 1), u(".then(json => console.log(json))", 1), u(".catch(err => console.error('error:' + err));", 1), p().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
1984
1984
  }
1985
- }, Ki = {
1985
+ }, Di = {
1986
1986
  info: {
1987
1987
  key: "native",
1988
1988
  title: "HTTP",
@@ -2020,7 +2020,7 @@ var Pi = {
2020
2020
  }
2021
2021
  return s("req.end();"), o();
2022
2022
  }
2023
- }, Yi = {
2023
+ }, Qi = {
2024
2024
  info: {
2025
2025
  key: "request",
2026
2026
  title: "Request",
@@ -2073,7 +2073,7 @@ var Pi = {
2073
2073
  u(`jar.setCookie(request.cookie('${encodeURIComponent(b)}=${encodeURIComponent(f)}'), '${n}');`);
2074
2074
  }), p(), y((b) => b.replace(/'JAR'/, "jar"))), s && m("const fs = require('fs');"), u(`const options = ${ue(j, { indent: " ", inlineCharacterLimit: 80 })};`), p(), u("request(options, function (error, response, body) {"), u("if (error) throw new Error(error);", 1), p(), u("console.log(body);", 1), u("});"), d();
2075
2075
  }
2076
- }, Xi = {
2076
+ }, Ki = {
2077
2077
  info: {
2078
2078
  key: "unirest",
2079
2079
  title: "Unirest",
@@ -2114,7 +2114,7 @@ var Pi = {
2114
2114
  }
2115
2115
  return s && y("const fs = require('fs');"), m("req.end(function (res) {"), m("if (res.error) throw new Error(res.error);", 1), p(), m("console.log(res.body);", 1), m("});"), d();
2116
2116
  }
2117
- }, Zi = {
2117
+ }, Yi = {
2118
2118
  info: {
2119
2119
  key: "node",
2120
2120
  title: "Node.js",
@@ -2122,11 +2122,11 @@ var Pi = {
2122
2122
  cli: "node %s"
2123
2123
  },
2124
2124
  clientsById: {
2125
- native: Ki,
2126
- request: Yi,
2127
- unirest: Xi,
2128
- axios: Di,
2129
- fetch: Qi
2125
+ native: Di,
2126
+ request: Qi,
2127
+ unirest: Ki,
2128
+ axios: Vi,
2129
+ fetch: Ji
2130
2130
  }
2131
2131
  }, Pt = (e, n, r, a) => {
2132
2132
  const c = `${e} *${n} = `, i = Nr(r, a ? c.length : void 0);
@@ -2150,7 +2150,7 @@ var Pi = {
2150
2150
  default:
2151
2151
  return e == null ? "" : `@"${e.toString().replace(/"/g, '\\"')}"`;
2152
2152
  }
2153
- }, es = {
2153
+ }, Xi = {
2154
2154
  info: {
2155
2155
  key: "nsurlsession",
2156
2156
  title: "NSURLSession",
@@ -2206,16 +2206,16 @@ var Pi = {
2206
2206
  2
2207
2207
  ), t(' NSLog(@"%@", httpResponse);', 2), t(" }", 1), t(" }];"), t("[dataTask resume];"), o();
2208
2208
  }
2209
- }, ts = {
2209
+ }, Zi = {
2210
2210
  info: {
2211
2211
  key: "objc",
2212
2212
  title: "Objective-C",
2213
2213
  default: "nsurlsession"
2214
2214
  },
2215
2215
  clientsById: {
2216
- nsurlsession: es
2216
+ nsurlsession: Xi
2217
2217
  }
2218
- }, rs = {
2218
+ }, es = {
2219
2219
  info: {
2220
2220
  key: "cohttp",
2221
2221
  title: "CoHTTP",
@@ -2241,14 +2241,14 @@ var Pi = {
2241
2241
  const d = p.length ? "~headers " : "", m = r.text ? "~body " : "", y = t.includes(a.toLowerCase()) ? `\`${a.toUpperCase()}` : `(Code.method_of_string "${a}")`;
2242
2242
  return o(`Client.call ${d}${m}${y} uri`), o(">>= fun (res, body_stream) ->"), o("(* Do stuff with the result *)", 1), u();
2243
2243
  }
2244
- }, ns = {
2244
+ }, ts = {
2245
2245
  info: {
2246
2246
  key: "ocaml",
2247
2247
  title: "OCaml",
2248
2248
  default: "cohttp"
2249
2249
  },
2250
2250
  clientsById: {
2251
- cohttp: rs
2251
+ cohttp: es
2252
2252
  }
2253
2253
  }, re = (e, n, r) => {
2254
2254
  switch (r = r || "", n = n || "", Object.prototype.toString.call(e)) {
@@ -2259,7 +2259,7 @@ var Pi = {
2259
2259
  case "[object Undefined]":
2260
2260
  return "null";
2261
2261
  case "[object String]":
2262
- return `'${Ge(e, { delimiter: "'", escapeNewlines: !1 })}'`;
2262
+ return `'${We(e, { delimiter: "'", escapeNewlines: !1 })}'`;
2263
2263
  case "[object Number]":
2264
2264
  return e.toString();
2265
2265
  case "[object Array]": {
@@ -2281,7 +2281,7 @@ ${r}]`;
2281
2281
  default:
2282
2282
  return "null";
2283
2283
  }
2284
- }, yn = [
2284
+ }, mn = [
2285
2285
  "ACL",
2286
2286
  "BASELINE_CONTROL",
2287
2287
  "CHECKIN",
@@ -2309,7 +2309,7 @@ ${r}]`;
2309
2309
  "UNLOCK",
2310
2310
  "UPDATE",
2311
2311
  "VERSION_CONTROL"
2312
- ], as = {
2312
+ ], rs = {
2313
2313
  info: {
2314
2314
  key: "curl",
2315
2315
  title: "cURL",
@@ -2387,7 +2387,7 @@ ${u}` });
2387
2387
  return h.length && (S.push("CURLOPT_HTTPHEADER => ["), S.push(h.join(`,
2388
2388
  ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = curl_exec($curl);"), b("$err = curl_error($curl);"), f(), b("curl_close($curl);"), f(), b("if ($err) {"), b(d ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), b("} else {"), b("echo $response;", 1), b("}"), !m && s && (f(), b("?>")), g();
2389
2389
  }
2390
- }, os = {
2390
+ }, ns = {
2391
2391
  info: {
2392
2392
  key: "guzzle",
2393
2393
  title: "Guzzle",
@@ -2432,12 +2432,12 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
2432
2432
  e.text && d(`'body' => ${re(e.text)},`, 1);
2433
2433
  }
2434
2434
  const y = Object.keys(c).sort().map(function(b) {
2435
- return `${t.indent}${t.indent}'${b}' => '${We(c[b])}',`;
2435
+ return `${t.indent}${t.indent}'${b}' => '${Ve(c[b])}',`;
2436
2436
  }), j = a.map((b) => `${encodeURIComponent(b.name)}=${encodeURIComponent(b.value)}`).join("; ");
2437
- return j.length && y.push(`${t.indent}${t.indent}'cookie' => '${We(j)}',`), y.length && (d("'headers' => [", 1), d(y.join(`
2437
+ return j.length && y.push(`${t.indent}${t.indent}'cookie' => '${Ve(j)}',`), y.length && (d("'headers' => [", 1), d(y.join(`
2438
2438
  `)), d("],", 1)), o("$client = new \\GuzzleHttp\\Client();"), s(), p.length ? (o(`$response = $client->request('${r}', '${n}', [`), o(m()), o("]);")) : o(`$response = $client->request('${r}', '${n}');`), s(), o("echo $response->getBody();"), !t.noTags && t.closingTag && (s(), o("?>")), u();
2439
2439
  }
2440
- }, is = {
2440
+ }, as = {
2441
2441
  info: {
2442
2442
  key: "http1",
2443
2443
  title: "HTTP v1",
@@ -2447,7 +2447,7 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
2447
2447
  },
2448
2448
  convert: ({ method: e, url: n, postData: r, queryObj: a, headersObj: c, cookiesObj: i }, t = {}) => {
2449
2449
  const { closingTag: o = !1, indent: s = " ", noTags: u = !1, shortTags: p = !1 } = t, { push: d, blank: m, join: y } = new Q({ indent: s });
2450
- switch (u || (d(p ? "<?" : "<?php"), m()), yn.includes(e.toUpperCase()) || d(`HttpRequest::methodRegister('${e}');`), d("$request = new HttpRequest();"), d(`$request->setUrl(${re(n)});`), yn.includes(e.toUpperCase()) ? d(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`) : d(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`), m(), Object.keys(a).length && (d(`$request->setQueryData(${re(a, s)});`), m()), Object.keys(c).length && (d(`$request->setHeaders(${re(c, s)});`), m()), Object.keys(i).length && (d(`$request->setCookies(${re(i, s)});`), m()), r.mimeType) {
2450
+ switch (u || (d(p ? "<?" : "<?php"), m()), mn.includes(e.toUpperCase()) || d(`HttpRequest::methodRegister('${e}');`), d("$request = new HttpRequest();"), d(`$request->setUrl(${re(n)});`), mn.includes(e.toUpperCase()) ? d(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`) : d(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`), m(), Object.keys(a).length && (d(`$request->setQueryData(${re(a, s)});`), m()), Object.keys(c).length && (d(`$request->setHeaders(${re(c, s)});`), m()), Object.keys(i).length && (d(`$request->setCookies(${re(i, s)});`), m()), r.mimeType) {
2451
2451
  case "application/x-www-form-urlencoded":
2452
2452
  d(`$request->setContentType(${re(r.mimeType)});`), d(`$request->setPostFields(${re(r.paramsObj, s)});`), m();
2453
2453
  break;
@@ -2459,7 +2459,7 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
2459
2459
  }
2460
2460
  return d("try {"), d("$response = $request->send();", 1), m(), d("echo $response->getBody();", 1), d("} catch (HttpException $ex) {"), d("echo $ex;", 1), d("}"), !u && o && (m(), d("?>")), y();
2461
2461
  }
2462
- }, ss = {
2462
+ }, os = {
2463
2463
  info: {
2464
2464
  key: "http2",
2465
2465
  title: "HTTP v2",
@@ -2506,7 +2506,7 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
2506
2506
  }
2507
2507
  return d(`$request->setRequestUrl(${re(i)});`), d(`$request->setRequestMethod(${re(r)});`), j && (d("$request->setBody($body);"), m()), Object.keys(a).length && (d(`$request->setQuery(new http\\QueryString(${re(a, s)}));`), m()), Object.keys(n).length && (d(`$request->setHeaders(${re(n, s)});`), m()), Object.keys(c).length && (m(), d(`$client->setCookies(${re(c, s)});`), m()), d("$client->enqueue($request)->send();"), d("$response = $client->getResponse();"), m(), d("echo $response->getBody();"), !u && o && (m(), d("?>")), y();
2508
2508
  }
2509
- }, ls = {
2509
+ }, is = {
2510
2510
  info: {
2511
2511
  key: "php",
2512
2512
  title: "PHP",
@@ -2514,24 +2514,24 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
2514
2514
  cli: "php %s"
2515
2515
  },
2516
2516
  clientsById: {
2517
- curl: as,
2518
- guzzle: os,
2519
- http1: is,
2520
- http2: ss
2517
+ curl: rs,
2518
+ guzzle: ns,
2519
+ http1: as,
2520
+ http2: os
2521
2521
  }
2522
- }, Ra = (e) => ({ method: r, headersObj: a, cookies: c, uriObj: i, fullUrl: t, postData: o, allHeaders: s }) => {
2522
+ }, qa = (e) => ({ method: r, headersObj: a, cookies: c, uriObj: i, fullUrl: t, postData: o, allHeaders: s }) => {
2523
2523
  const { push: u, join: p } = new Q();
2524
2524
  if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(r.toUpperCase()))
2525
2525
  return "Method not supported";
2526
2526
  const m = [], y = Object.keys(a);
2527
2527
  return y.length && (u("$headers=@{}"), y.forEach((j) => {
2528
- j !== "connection" && u(`$headers.Add("${j}", "${Ge(a[j], { escapeChar: "`" })}")`);
2528
+ j !== "connection" && u(`$headers.Add("${j}", "${We(a[j], { escapeChar: "`" })}")`);
2529
2529
  }), m.push("-Headers $headers")), c.length && (u("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"), c.forEach((j) => {
2530
2530
  u("$cookie = New-Object System.Net.Cookie"), u(`$cookie.Name = '${j.name}'`), u(`$cookie.Value = '${j.value}'`), u(`$cookie.Domain = '${i.host}'`), u("$session.Cookies.Add($cookie)");
2531
2531
  }), m.push("-WebSession $session")), o.text && (m.push(
2532
- `-ContentType '${Ge(ve(s, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
2532
+ `-ContentType '${We(ve(s, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
2533
2533
  ), m.push(`-Body '${o.text}'`)), u(`$response = ${e} -Uri '${t}' -Method ${r} ${m.join(" ")}`.trim()), p();
2534
- }, cs = {
2534
+ }, ss = {
2535
2535
  info: {
2536
2536
  key: "restmethod",
2537
2537
  title: "Invoke-RestMethod",
@@ -2539,8 +2539,8 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
2539
2539
  description: "Powershell Invoke-RestMethod client",
2540
2540
  extname: ".ps1"
2541
2541
  },
2542
- convert: Ra("Invoke-RestMethod")
2543
- }, us = {
2542
+ convert: qa("Invoke-RestMethod")
2543
+ }, ls = {
2544
2544
  info: {
2545
2545
  key: "webrequest",
2546
2546
  title: "Invoke-WebRequest",
@@ -2548,39 +2548,39 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
2548
2548
  description: "Powershell Invoke-WebRequest client",
2549
2549
  extname: ".ps1"
2550
2550
  },
2551
- convert: Ra("Invoke-WebRequest")
2552
- }, ps = {
2551
+ convert: qa("Invoke-WebRequest")
2552
+ }, cs = {
2553
2553
  info: {
2554
2554
  key: "powershell",
2555
2555
  title: "Powershell",
2556
2556
  default: "webrequest"
2557
2557
  },
2558
2558
  clientsById: {
2559
- webrequest: us,
2560
- restmethod: cs
2559
+ webrequest: ls,
2560
+ restmethod: ss
2561
2561
  }
2562
2562
  };
2563
- function gn(e, n, r, a, c) {
2563
+ function yn(e, n, r, a, c) {
2564
2564
  const i = a.repeat(c), t = a.repeat(c - 1), o = r ? `,
2565
2565
  ${i}` : ", ", s = e === "object" ? "{" : "[", u = e === "object" ? "}" : "]";
2566
2566
  return r ? `${s}
2567
2567
  ${i}${n.join(o)}
2568
2568
  ${t}${u}` : e === "object" && n.length > 0 ? `${s} ${n.join(o)} ${u}` : `${s}${n.join(o)}${u}`;
2569
2569
  }
2570
- var Ie = (e, n, r) => {
2570
+ var _e = (e, n, r) => {
2571
2571
  switch (r = r === void 0 ? 1 : r + 1, Object.prototype.toString.call(e)) {
2572
2572
  case "[object Number]":
2573
2573
  return e;
2574
2574
  case "[object Array]": {
2575
2575
  let a = !1;
2576
- const c = e.map((i) => (Object.prototype.toString.call(i) === "[object Object]" && (a = Object.keys(i).length > 1), Ie(i, n, r)));
2577
- return gn("array", c, a, n.indent, r);
2576
+ const c = e.map((i) => (Object.prototype.toString.call(i) === "[object Object]" && (a = Object.keys(i).length > 1), _e(i, n, r)));
2577
+ return yn("array", c, a, n.indent, r);
2578
2578
  }
2579
2579
  case "[object Object]": {
2580
2580
  const a = [];
2581
2581
  for (const c in e)
2582
- a.push(`"${c}": ${Ie(e[c], n, r)}`);
2583
- return gn("object", a, n.pretty && a.length > 1, n.indent, r);
2582
+ a.push(`"${c}": ${_e(e[c], n, r)}`);
2583
+ return yn("object", a, n.pretty && a.length > 1, n.indent, r);
2584
2584
  }
2585
2585
  case "[object Null]":
2586
2586
  return "None";
@@ -2589,7 +2589,7 @@ var Ie = (e, n, r) => {
2589
2589
  default:
2590
2590
  return e == null ? "" : `"${e.toString().replace(/"/g, '\\"')}"`;
2591
2591
  }
2592
- }, fs = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], ds = {
2592
+ }, us = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], ps = {
2593
2593
  info: {
2594
2594
  key: "requests",
2595
2595
  title: "Requests",
@@ -2611,7 +2611,7 @@ var Ie = (e, n, r) => {
2611
2611
  let y = !1, j = !1, b = !1;
2612
2612
  switch (n.mimeType) {
2613
2613
  case "application/json":
2614
- n.jsonObj && (t(`payload = ${Ie(n.jsonObj, i)}`), b = !0, j = !0);
2614
+ n.jsonObj && (t(`payload = ${_e(n.jsonObj, i)}`), b = !0, j = !0);
2615
2615
  break;
2616
2616
  case "multipart/form-data":
2617
2617
  if (!n.params)
@@ -2619,7 +2619,7 @@ var Ie = (e, n, r) => {
2619
2619
  if (d = {}, n.params.forEach((v) => {
2620
2620
  v.fileName ? (v.contentType ? m[v.name] = `('${v.fileName}', open('${v.fileName}', 'rb'), '${v.contentType}')` : m[v.name] = `('${v.fileName}', open('${v.fileName}', 'rb'))`, y = !0) : (d[v.name] = v.value, j = !0);
2621
2621
  }), y) {
2622
- t(`files = ${Ie(m, i)}`), j && t(`payload = ${Ie(d, i)}`);
2622
+ t(`files = ${_e(m, i)}`), j && t(`payload = ${_e(d, i)}`);
2623
2623
  const v = pe(p, "content-type");
2624
2624
  v && delete p[v];
2625
2625
  } else {
@@ -2632,7 +2632,7 @@ var Ie = (e, n, r) => {
2632
2632
  break;
2633
2633
  default: {
2634
2634
  if (n.mimeType === "application/x-www-form-urlencoded" && n.paramsObj) {
2635
- t(`payload = ${Ie(n.paramsObj, i)}`), j = !0;
2635
+ t(`payload = ${_e(n.paramsObj, i)}`), j = !0;
2636
2636
  break;
2637
2637
  }
2638
2638
  const v = JSON.stringify(n.text);
@@ -2652,10 +2652,10 @@ var Ie = (e, n, r) => {
2652
2652
  t(v !== f ? `"${S}": "${le(p[S])}",` : `"${S}": "${le(p[S])}"`, 1), v += 1;
2653
2653
  }), t("}"), o();
2654
2654
  }
2655
- let g = fs.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
2655
+ let g = us.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
2656
2656
  return j && (b ? g += ", json=payload" : g += ", data=payload"), y && (g += ", files=files"), f > 0 && (g += ", headers=headers"), g += ")", t(g), o(), t("print(response.text)"), s();
2657
2657
  }
2658
- }, hs = {
2658
+ }, fs = {
2659
2659
  info: {
2660
2660
  key: "python",
2661
2661
  title: "Python",
@@ -2663,9 +2663,9 @@ var Ie = (e, n, r) => {
2663
2663
  cli: "python3 %s"
2664
2664
  },
2665
2665
  clientsById: {
2666
- requests: ds
2666
+ requests: ps
2667
2667
  }
2668
- }, ms = {
2668
+ }, ds = {
2669
2669
  info: {
2670
2670
  key: "httr",
2671
2671
  title: "httr",
@@ -2698,22 +2698,22 @@ var Ie = (e, n, r) => {
2698
2698
  t('encode <- "raw"'), o();
2699
2699
  break;
2700
2700
  }
2701
- const m = ve(c, "cookie"), y = ve(c, "accept"), j = m ? `set_cookies(\`${String(m).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, b = y ? `accept("${le(y)}")` : void 0, f = `content_type("${le(a.mimeType)}")`, g = Object.entries(c).filter(([h]) => !["cookie", "accept", "content-type"].includes(h.toLowerCase())).map(([h, T]) => `'${h}' = '${We(T)}'`).join(", "), v = g ? `add_headers(${g})` : void 0;
2701
+ const m = ve(c, "cookie"), y = ve(c, "accept"), j = m ? `set_cookies(\`${String(m).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, b = y ? `accept("${le(y)}")` : void 0, f = `content_type("${le(a.mimeType)}")`, g = Object.entries(c).filter(([h]) => !["cookie", "accept", "content-type"].includes(h.toLowerCase())).map(([h, T]) => `'${h}' = '${Ve(T)}'`).join(", "), v = g ? `add_headers(${g})` : void 0;
2702
2702
  let S = `response <- VERB("${i}", url`;
2703
2703
  d && (S += ", body = payload"), r.length && (S += ", query = queryString");
2704
2704
  const C = [v, f, b, j].filter((h) => !!h).join(", ");
2705
2705
  return C && (S += `, ${C}`), (a.text || a.jsonObj || a.params) && (S += ", encode = encode"), S += ")", t(S), o(), t('content(response, "text")'), s();
2706
2706
  }
2707
- }, ys = {
2707
+ }, hs = {
2708
2708
  info: {
2709
2709
  key: "r",
2710
2710
  title: "R",
2711
2711
  default: "httr"
2712
2712
  },
2713
2713
  clientsById: {
2714
- httr: ms
2714
+ httr: ds
2715
2715
  }
2716
- }, gs = {
2716
+ }, ms = {
2717
2717
  info: {
2718
2718
  key: "native",
2719
2719
  title: "net::http",
@@ -2741,19 +2741,19 @@ var Ie = (e, n, r) => {
2741
2741
  u.includes(s) || (i(`class Net::HTTP::${p} < Net::HTTPRequest`), i(` METHOD = '${s.toUpperCase()}'`), i(` REQUEST_HAS_BODY = '${a.text ? "true" : "false"}'`), i(" RESPONSE_HAS_BODY = true"), i("end"), t()), i(`url = URI("${r}")`), t(), i("http = Net::HTTP.new(url.host, url.port)"), e.protocol === "https:" && i("http.use_ssl = true"), t(), i(`request = Net::HTTP::${p}.new(url)`);
2742
2742
  const d = Object.keys(c);
2743
2743
  return d.length && d.forEach((m) => {
2744
- i(`request["${m}"] = '${We(c[m])}'`);
2744
+ i(`request["${m}"] = '${Ve(c[m])}'`);
2745
2745
  }), a.text && i(`request.body = ${JSON.stringify(a.text)}`), t(), i("response = http.request(request)"), i("puts response.read_body"), o();
2746
2746
  }
2747
- }, vs = {
2747
+ }, ys = {
2748
2748
  info: {
2749
2749
  key: "ruby",
2750
2750
  title: "Ruby",
2751
2751
  default: "native"
2752
2752
  },
2753
2753
  clientsById: {
2754
- native: gs
2754
+ native: ms
2755
2755
  }
2756
- }, ce = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, xs = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), bs = {
2756
+ }, ce = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, gs = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), vs = {
2757
2757
  "http1.0": "0",
2758
2758
  "url ": "",
2759
2759
  cookie: "b",
@@ -2763,13 +2763,13 @@ var Ie = (e, n, r) => {
2763
2763
  header: "H",
2764
2764
  insecure: "k",
2765
2765
  request: "X"
2766
- }, js = (e) => (n) => {
2766
+ }, xs = (e) => (n) => {
2767
2767
  if (e) {
2768
- const r = bs[n];
2768
+ const r = vs[n];
2769
2769
  return r ? `-${r}` : "";
2770
2770
  }
2771
2771
  return `--${n}`;
2772
- }, $s = {
2772
+ }, bs = {
2773
2773
  info: {
2774
2774
  key: "curl",
2775
2775
  title: "cURL",
@@ -2782,7 +2782,7 @@ var Ie = (e, n, r) => {
2782
2782
  ...typeof o == "string" ? { indent: o } : {},
2783
2783
  join: o !== !1 ? ` \\
2784
2784
  ${o}` : " "
2785
- }), j = js(s);
2785
+ }), j = xs(s);
2786
2786
  let b = ce(e);
2787
2787
  if (m(`curl ${j("request")} ${n}`), p && (b = unescape(b), m(j("globoff"))), m(`${j("url ")}${b}`), r === "HTTP/1.0" && m(j("http1.0")), ve(c, "accept-encoding") && m("--compressed"), i.mimeType === "multipart/form-data") {
2788
2788
  const f = pe(a, "content-type");
@@ -2814,7 +2814,7 @@ ${o}` : " "
2814
2814
  if (!i.text)
2815
2815
  break;
2816
2816
  let f = !1;
2817
- if (ji(i.mimeType) && i.text.length > 20)
2817
+ if (xi(i.mimeType) && i.text.length > 20)
2818
2818
  try {
2819
2819
  const g = JSON.parse(i.text);
2820
2820
  f = !0, i.text.indexOf("'") > 0 ? m(
@@ -2836,7 +2836,7 @@ ${JSON.stringify(g, null, d)}
2836
2836
  }
2837
2837
  return y();
2838
2838
  }
2839
- }, ws = {
2839
+ }, js = {
2840
2840
  info: {
2841
2841
  key: "httpie",
2842
2842
  title: "HTTPie",
@@ -2885,7 +2885,7 @@ ${o.indent}` : " "
2885
2885
  }
2886
2886
  return u();
2887
2887
  }
2888
- }, Ss = {
2888
+ }, ws = {
2889
2889
  info: {
2890
2890
  key: "wget",
2891
2891
  title: "Wget",
@@ -2907,9 +2907,9 @@ ${i.indent}` : " "
2907
2907
  return i.verbose ? t(`wget ${i.short ? "-v" : "--verbose"}`) : t(`wget ${i.short ? "-q" : "--quiet"}`), t(`--method ${ce(e)}`), Object.keys(r).forEach((s) => {
2908
2908
  const u = `${s}: ${r[s]}`;
2909
2909
  t(`--header ${ce(u)}`);
2910
- }), n.text && t(`--body-data ${xs(ce(n.text))}`), t(i.short ? "-O" : "--output-document"), t(`- ${ce(a)}`), o();
2910
+ }), n.text && t(`--body-data ${gs(ce(n.text))}`), t(i.short ? "-O" : "--output-document"), t(`- ${ce(a)}`), o();
2911
2911
  }
2912
- }, Os = {
2912
+ }, $s = {
2913
2913
  info: {
2914
2914
  key: "shell",
2915
2915
  title: "Shell",
@@ -2917,30 +2917,30 @@ ${i.indent}` : " "
2917
2917
  cli: "%s"
2918
2918
  },
2919
2919
  clientsById: {
2920
- curl: $s,
2921
- httpie: ws,
2922
- wget: Ss
2920
+ curl: bs,
2921
+ httpie: js,
2922
+ wget: ws
2923
2923
  }
2924
- }, vn = (e, n) => n.repeat(e), xn = (e, n, r, a) => {
2925
- const c = vn(a, r), i = vn(a - 1, r), t = n ? `,
2924
+ }, gn = (e, n) => n.repeat(e), vn = (e, n, r, a) => {
2925
+ const c = gn(a, r), i = gn(a - 1, r), t = n ? `,
2926
2926
  ${c}` : ", ";
2927
2927
  return n ? `[
2928
2928
  ${c}${e.join(t)}
2929
2929
  ${i}]` : `[${e.join(t)}]`;
2930
- }, bn = (e, n, r) => `let ${e} = ${st(n, r)}`, st = (e, n, r) => {
2930
+ }, xn = (e, n, r) => `let ${e} = ${st(n, r)}`, st = (e, n, r) => {
2931
2931
  switch (r = r === void 0 ? 1 : r + 1, Object.prototype.toString.call(e)) {
2932
2932
  case "[object Number]":
2933
2933
  return e;
2934
2934
  case "[object Array]": {
2935
2935
  let a = !1;
2936
2936
  const c = e.map((i) => (Object.prototype.toString.call(i) === "[object Object]" && (a = Object.keys(i).length > 1), st(i, n, r)));
2937
- return xn(c, a, n.indent, r);
2937
+ return vn(c, a, n.indent, r);
2938
2938
  }
2939
2939
  case "[object Object]": {
2940
2940
  const a = [];
2941
2941
  for (const c in e)
2942
2942
  a.push(`"${c}": ${st(e[c], n, r)}`);
2943
- return xn(
2943
+ return vn(
2944
2944
  a,
2945
2945
  // @ts-expect-error needs better types
2946
2946
  n.pretty && a.length > 1,
@@ -2954,7 +2954,7 @@ ${i}]` : `[${e.join(t)}]`;
2954
2954
  default:
2955
2955
  return e == null ? "nil" : `"${e.toString().replace(/"/g, '\\"')}"`;
2956
2956
  }
2957
- }, Ts = {
2957
+ }, Ss = {
2958
2958
  info: {
2959
2959
  key: "urlsession",
2960
2960
  title: "URLSession",
@@ -2980,10 +2980,10 @@ ${i}]` : `[${e.join(t)}]`;
2980
2980
  }
2981
2981
  break;
2982
2982
  case "application/json":
2983
- n.jsonObj && (o(`${bn("parameters", n.jsonObj, t)} as [String : Any?]`), s(), o("let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])"), s());
2983
+ n.jsonObj && (o(`${xn("parameters", n.jsonObj, t)} as [String : Any?]`), s(), o("let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])"), s());
2984
2984
  break;
2985
2985
  case "multipart/form-data":
2986
- o(bn("parameters", n.params, t)), s(), o(`let boundary = "${n.boundary}"`), s(), o('var body = ""'), o("for param in parameters {"), o('let paramName = param["name"]!', 1), o('body += "--\\(boundary)\\r\\n"', 1), o('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""', 1), o('if let filename = param["fileName"] {', 1), o('let contentType = param["contentType"]!', 2), o("let fileContent = try String(contentsOfFile: filename, encoding: .utf8)", 2), o('body += "; filename=\\"\\(filename)\\"\\r\\n"', 2), o('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"', 2), o("body += fileContent", 2), o('} else if let paramValue = param["value"] {', 1), o('body += "\\r\\n\\r\\n\\(paramValue)"', 2), o("}", 1), o("}"), s(), o("let postData = Data(body.utf8)"), s();
2986
+ o(xn("parameters", n.params, t)), s(), o(`let boundary = "${n.boundary}"`), s(), o('var body = ""'), o("for param in parameters {"), o('let paramName = param["name"]!', 1), o('body += "--\\(boundary)\\r\\n"', 1), o('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""', 1), o('if let filename = param["fileName"] {', 1), o('let contentType = param["contentType"]!', 2), o("let fileContent = try String(contentsOfFile: filename, encoding: .utf8)", 2), o('body += "; filename=\\"\\(filename)\\"\\r\\n"', 2), o('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"', 2), o("body += fileContent", 2), o('} else if let paramValue = param["value"] {', 1), o('body += "\\r\\n\\r\\n\\(paramValue)"', 2), o("}", 1), o("}"), s(), o("let postData = Data(body.utf8)"), s();
2987
2987
  break;
2988
2988
  default:
2989
2989
  o(`let postData = Data("${n.text}".utf8)`), s();
@@ -3004,40 +3004,40 @@ ${i}]` : `[${e.join(t)}]`;
3004
3004
  }
3005
3005
  }), o("]"), o("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), s(), o("var request = URLRequest(url: components.url!)")), o(`request.httpMethod = "${c}"`), o(`request.timeoutInterval = ${t.timeout}`), Object.keys(e).length && o(`request.allHTTPHeaderFields = ${st(e, t)}`), p && o("request.httpBody = postData"), s(), o("let (data, _) = try await URLSession.shared.data(for: request)"), o("print(String(decoding: data, as: UTF8.self))"), u();
3006
3006
  }
3007
- }, Cs = {
3007
+ }, Os = {
3008
3008
  info: {
3009
3009
  key: "swift",
3010
3010
  title: "Swift",
3011
3011
  default: "urlsession"
3012
3012
  },
3013
3013
  clientsById: {
3014
- urlsession: Ts
3014
+ urlsession: Ss
3015
3015
  }
3016
- }, Ps = {
3017
- c: bi,
3018
- clojure: Si,
3019
- csharp: Ni,
3020
- go: qi,
3021
- http: Ei,
3016
+ }, Ts = {
3017
+ c: vi,
3018
+ clojure: wi,
3019
+ csharp: Ci,
3020
+ go: Ni,
3021
+ http: qi,
3022
3022
  java: _i,
3023
- javascript: zi,
3024
- json: Wi,
3025
- kotlin: Ji,
3026
- node: Zi,
3027
- objc: ts,
3028
- ocaml: ns,
3029
- php: ls,
3030
- powershell: ps,
3031
- python: hs,
3032
- r: ys,
3033
- ruby: vs,
3034
- shell: Os,
3035
- swift: Cs
3036
- }, Te = {}, _e = { exports: {} };
3023
+ javascript: Mi,
3024
+ json: zi,
3025
+ kotlin: Wi,
3026
+ node: Yi,
3027
+ objc: Zi,
3028
+ ocaml: ts,
3029
+ php: is,
3030
+ powershell: cs,
3031
+ python: fs,
3032
+ r: hs,
3033
+ ruby: ys,
3034
+ shell: $s,
3035
+ swift: Os
3036
+ }, Te = {}, He = { exports: {} };
3037
3037
  /*! https://mths.be/punycode v1.4.1 by @mathias */
3038
- var Ns = _e.exports, jn;
3039
- function ks() {
3040
- return jn || (jn = 1, (function(e, n) {
3038
+ var Cs = He.exports, bn;
3039
+ function Ps() {
3040
+ return bn || (bn = 1, (function(e, n) {
3041
3041
  (function(r) {
3042
3042
  var a = n && !n.nodeType && n, c = e && !e.nodeType && e, i = typeof it == "object" && it;
3043
3043
  (i.global === i || i.window === i || i.self === i) && (r = i);
@@ -3054,15 +3054,15 @@ function ks() {
3054
3054
  P[F] = q(N[F]);
3055
3055
  return P;
3056
3056
  }
3057
- function R(N, q) {
3057
+ function E(N, q) {
3058
3058
  var F = N.split("@"), P = "";
3059
3059
  F.length > 1 && (P = F[0] + "@", N = F[1]), N = N.replace(v, ".");
3060
- var U = N.split("."), J = A(U, q).join(".");
3060
+ var _ = N.split("."), J = A(_, q).join(".");
3061
3061
  return P + J;
3062
3062
  }
3063
- function L(N) {
3064
- for (var q = [], F = 0, P = N.length, U, J; F < P; )
3065
- U = N.charCodeAt(F++), U >= 55296 && U <= 56319 && F < P ? (J = N.charCodeAt(F++), (J & 64512) == 56320 ? q.push(((U & 1023) << 10) + (J & 1023) + 65536) : (q.push(U), F--)) : q.push(U);
3063
+ function U(N) {
3064
+ for (var q = [], F = 0, P = N.length, _, J; F < P; )
3065
+ _ = N.charCodeAt(F++), _ >= 55296 && _ <= 56319 && F < P ? (J = N.charCodeAt(F++), (J & 64512) == 56320 ? q.push(((_ & 1023) << 10) + (J & 1023) + 65536) : (q.push(_), F--)) : q.push(_);
3066
3066
  return q;
3067
3067
  }
3068
3068
  function O(N) {
@@ -3074,7 +3074,7 @@ function ks() {
3074
3074
  function B(N) {
3075
3075
  return N - 48 < 10 ? N - 22 : N - 65 < 26 ? N - 65 : N - 97 < 26 ? N - 97 : s;
3076
3076
  }
3077
- function _(N, q) {
3077
+ function L(N, q) {
3078
3078
  return N + 22 + 75 * (N < 26) - ((q != 0) << 5);
3079
3079
  }
3080
3080
  function G(N, q, F) {
@@ -3084,42 +3084,42 @@ function ks() {
3084
3084
  return h(P + (C + 1) * N / (N + d));
3085
3085
  }
3086
3086
  function se(N) {
3087
- var q = [], F = N.length, P, U = 0, J = j, W = y, Y, ae, D, I, H, M, K, V, X;
3087
+ var q = [], F = N.length, P, _ = 0, J = j, W = y, Y, ae, D, I, H, M, K, V, X;
3088
3088
  for (Y = N.lastIndexOf(b), Y < 0 && (Y = 0), ae = 0; ae < Y; ++ae)
3089
3089
  N.charCodeAt(ae) >= 128 && k("not-basic"), q.push(N.charCodeAt(ae));
3090
3090
  for (D = Y > 0 ? Y + 1 : 0; D < F; ) {
3091
- for (I = U, H = 1, M = s; D >= F && k("invalid-input"), K = B(N.charCodeAt(D++)), (K >= s || K > h((o - U) / H)) && k("overflow"), U += K * H, V = M <= W ? u : M >= W + p ? p : M - W, !(K < V); M += s)
3091
+ for (I = _, H = 1, M = s; D >= F && k("invalid-input"), K = B(N.charCodeAt(D++)), (K >= s || K > h((o - _) / H)) && k("overflow"), _ += K * H, V = M <= W ? u : M >= W + p ? p : M - W, !(K < V); M += s)
3092
3092
  X = s - V, H > h(o / X) && k("overflow"), H *= X;
3093
- P = q.length + 1, W = G(U - I, P, I == 0), h(U / P) > o - J && k("overflow"), J += h(U / P), U %= P, q.splice(U++, 0, J);
3093
+ P = q.length + 1, W = G(_ - I, P, I == 0), h(_ / P) > o - J && k("overflow"), J += h(_ / P), _ %= P, q.splice(_++, 0, J);
3094
3094
  }
3095
3095
  return O(q);
3096
3096
  }
3097
3097
  function ee(N) {
3098
- var q, F, P, U, J, W, Y, ae, D, I, H, M = [], K, V, X, oe;
3099
- for (N = L(N), K = N.length, q = j, F = 0, J = y, W = 0; W < K; ++W)
3098
+ var q, F, P, _, J, W, Y, ae, D, I, H, M = [], K, V, X, oe;
3099
+ for (N = U(N), K = N.length, q = j, F = 0, J = y, W = 0; W < K; ++W)
3100
3100
  H = N[W], H < 128 && M.push(T(H));
3101
- for (P = U = M.length, U && M.push(b); P < K; ) {
3101
+ for (P = _ = M.length, _ && M.push(b); P < K; ) {
3102
3102
  for (Y = o, W = 0; W < K; ++W)
3103
3103
  H = N[W], H >= q && H < Y && (Y = H);
3104
3104
  for (V = P + 1, Y - q > h((o - F) / V) && k("overflow"), F += (Y - q) * V, q = Y, W = 0; W < K; ++W)
3105
3105
  if (H = N[W], H < q && ++F > o && k("overflow"), H == q) {
3106
3106
  for (ae = F, D = s; I = D <= J ? u : D >= J + p ? p : D - J, !(ae < I); D += s)
3107
3107
  oe = ae - I, X = s - I, M.push(
3108
- T(_(I + oe % X, 0))
3108
+ T(L(I + oe % X, 0))
3109
3109
  ), ae = h(oe / X);
3110
- M.push(T(_(ae, 0))), J = G(F, V, P == U), F = 0, ++P;
3110
+ M.push(T(L(ae, 0))), J = G(F, V, P == _), F = 0, ++P;
3111
3111
  }
3112
3112
  ++F, ++q;
3113
3113
  }
3114
3114
  return M.join("");
3115
3115
  }
3116
- function E(N) {
3117
- return R(N, function(q) {
3116
+ function R(N) {
3117
+ return E(N, function(q) {
3118
3118
  return f.test(q) ? se(q.slice(4).toLowerCase()) : q;
3119
3119
  });
3120
3120
  }
3121
3121
  function ne(N) {
3122
- return R(N, function(q) {
3122
+ return E(N, function(q) {
3123
3123
  return g.test(q) ? "xn--" + ee(q) : q;
3124
3124
  });
3125
3125
  }
@@ -3138,13 +3138,13 @@ function ks() {
3138
3138
  * @type Object
3139
3139
  */
3140
3140
  ucs2: {
3141
- decode: L,
3141
+ decode: U,
3142
3142
  encode: O
3143
3143
  },
3144
3144
  decode: se,
3145
3145
  encode: ee,
3146
3146
  toASCII: ne,
3147
- toUnicode: E
3147
+ toUnicode: R
3148
3148
  }, a && c)
3149
3149
  if (e.exports == a)
3150
3150
  c.exports = t;
@@ -3153,89 +3153,89 @@ function ks() {
3153
3153
  t.hasOwnProperty(x) && (a[x] = t[x]);
3154
3154
  else
3155
3155
  r.punycode = t;
3156
- })(Ns);
3157
- })(_e, _e.exports)), _e.exports;
3156
+ })(Cs);
3157
+ })(He, He.exports)), He.exports;
3158
3158
  }
3159
- var Nt, $n;
3159
+ var Nt, jn;
3160
3160
  function Ea() {
3161
- return $n || ($n = 1, Nt = Object), Nt;
3161
+ return jn || (jn = 1, Nt = Object), Nt;
3162
3162
  }
3163
3163
  var kt, wn;
3164
- function qs() {
3164
+ function Ns() {
3165
3165
  return wn || (wn = 1, kt = Error), kt;
3166
3166
  }
3167
- var qt, Sn;
3168
- function Rs() {
3169
- return Sn || (Sn = 1, qt = EvalError), qt;
3167
+ var qt, $n;
3168
+ function ks() {
3169
+ return $n || ($n = 1, qt = EvalError), qt;
3170
+ }
3171
+ var Et, Sn;
3172
+ function qs() {
3173
+ return Sn || (Sn = 1, Et = RangeError), Et;
3170
3174
  }
3171
3175
  var Rt, On;
3172
3176
  function Es() {
3173
- return On || (On = 1, Rt = RangeError), Rt;
3177
+ return On || (On = 1, Rt = ReferenceError), Rt;
3174
3178
  }
3175
- var Et, Tn;
3176
- function As() {
3177
- return Tn || (Tn = 1, Et = ReferenceError), Et;
3179
+ var At, Tn;
3180
+ function Ra() {
3181
+ return Tn || (Tn = 1, At = SyntaxError), At;
3178
3182
  }
3179
- var At, Cn;
3180
- function Aa() {
3181
- return Cn || (Cn = 1, At = SyntaxError), At;
3183
+ var It, Cn;
3184
+ function De() {
3185
+ return Cn || (Cn = 1, It = TypeError), It;
3182
3186
  }
3183
- var It, Pn;
3184
- function Je() {
3185
- return Pn || (Pn = 1, It = TypeError), It;
3187
+ var _t, Pn;
3188
+ function Rs() {
3189
+ return Pn || (Pn = 1, _t = URIError), _t;
3186
3190
  }
3187
3191
  var Ut, Nn;
3188
- function Is() {
3189
- return Nn || (Nn = 1, Ut = URIError), Ut;
3192
+ function As() {
3193
+ return Nn || (Nn = 1, Ut = Math.abs), Ut;
3190
3194
  }
3191
3195
  var Lt, kn;
3192
- function Us() {
3193
- return kn || (kn = 1, Lt = Math.abs), Lt;
3194
- }
3195
- var _t, qn;
3196
- function Ls() {
3197
- return qn || (qn = 1, _t = Math.floor), _t;
3196
+ function Is() {
3197
+ return kn || (kn = 1, Lt = Math.floor), Lt;
3198
3198
  }
3199
- var Ft, Rn;
3199
+ var Ft, qn;
3200
3200
  function _s() {
3201
- return Rn || (Rn = 1, Ft = Math.max), Ft;
3201
+ return qn || (qn = 1, Ft = Math.max), Ft;
3202
3202
  }
3203
3203
  var Ht, En;
3204
- function Fs() {
3204
+ function Us() {
3205
3205
  return En || (En = 1, Ht = Math.min), Ht;
3206
3206
  }
3207
- var Mt, An;
3208
- function Hs() {
3209
- return An || (An = 1, Mt = Math.pow), Mt;
3207
+ var Mt, Rn;
3208
+ function Ls() {
3209
+ return Rn || (Rn = 1, Mt = Math.pow), Mt;
3210
3210
  }
3211
- var Bt, In;
3212
- function Ms() {
3213
- return In || (In = 1, Bt = Math.round), Bt;
3211
+ var Bt, An;
3212
+ function Fs() {
3213
+ return An || (An = 1, Bt = Math.round), Bt;
3214
3214
  }
3215
- var zt, Un;
3216
- function Bs() {
3217
- return Un || (Un = 1, zt = Number.isNaN || function(n) {
3215
+ var zt, In;
3216
+ function Hs() {
3217
+ return In || (In = 1, zt = Number.isNaN || function(n) {
3218
3218
  return n !== n;
3219
3219
  }), zt;
3220
3220
  }
3221
- var Gt, Ln;
3222
- function zs() {
3223
- if (Ln) return Gt;
3224
- Ln = 1;
3225
- var e = /* @__PURE__ */ Bs();
3221
+ var Gt, _n;
3222
+ function Ms() {
3223
+ if (_n) return Gt;
3224
+ _n = 1;
3225
+ var e = /* @__PURE__ */ Hs();
3226
3226
  return Gt = function(r) {
3227
3227
  return e(r) || r === 0 ? r : r < 0 ? -1 : 1;
3228
3228
  }, Gt;
3229
3229
  }
3230
- var Wt, _n;
3231
- function Gs() {
3232
- return _n || (_n = 1, Wt = Object.getOwnPropertyDescriptor), Wt;
3230
+ var Wt, Un;
3231
+ function Bs() {
3232
+ return Un || (Un = 1, Wt = Object.getOwnPropertyDescriptor), Wt;
3233
3233
  }
3234
- var Vt, Fn;
3234
+ var Vt, Ln;
3235
3235
  function dt() {
3236
- if (Fn) return Vt;
3237
- Fn = 1;
3238
- var e = /* @__PURE__ */ Gs();
3236
+ if (Ln) return Vt;
3237
+ Ln = 1;
3238
+ var e = /* @__PURE__ */ Bs();
3239
3239
  if (e)
3240
3240
  try {
3241
3241
  e([], "length");
@@ -3244,10 +3244,10 @@ function dt() {
3244
3244
  }
3245
3245
  return Vt = e, Vt;
3246
3246
  }
3247
- var Jt, Hn;
3247
+ var Jt, Fn;
3248
3248
  function ht() {
3249
- if (Hn) return Jt;
3250
- Hn = 1;
3249
+ if (Fn) return Jt;
3250
+ Fn = 1;
3251
3251
  var e = Object.defineProperty || !1;
3252
3252
  if (e)
3253
3253
  try {
@@ -3257,9 +3257,9 @@ function ht() {
3257
3257
  }
3258
3258
  return Jt = e, Jt;
3259
3259
  }
3260
- var Dt, Mn;
3261
- function Ws() {
3262
- return Mn || (Mn = 1, Dt = function() {
3260
+ var Dt, Hn;
3261
+ function zs() {
3262
+ return Hn || (Hn = 1, Dt = function() {
3263
3263
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
3264
3264
  return !1;
3265
3265
  if (typeof Symbol.iterator == "symbol")
@@ -3287,30 +3287,30 @@ function Ws() {
3287
3287
  return !0;
3288
3288
  }), Dt;
3289
3289
  }
3290
- var Qt, Bn;
3291
- function Vs() {
3292
- if (Bn) return Qt;
3293
- Bn = 1;
3294
- var e = typeof Symbol < "u" && Symbol, n = Ws();
3290
+ var Qt, Mn;
3291
+ function Gs() {
3292
+ if (Mn) return Qt;
3293
+ Mn = 1;
3294
+ var e = typeof Symbol < "u" && Symbol, n = zs();
3295
3295
  return Qt = function() {
3296
3296
  return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : n();
3297
3297
  }, Qt;
3298
3298
  }
3299
- var Kt, zn;
3300
- function Ia() {
3301
- return zn || (zn = 1, Kt = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Kt;
3299
+ var Kt, Bn;
3300
+ function Aa() {
3301
+ return Bn || (Bn = 1, Kt = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Kt;
3302
3302
  }
3303
- var Yt, Gn;
3304
- function Ua() {
3305
- if (Gn) return Yt;
3306
- Gn = 1;
3303
+ var Yt, zn;
3304
+ function Ia() {
3305
+ if (zn) return Yt;
3306
+ zn = 1;
3307
3307
  var e = /* @__PURE__ */ Ea();
3308
3308
  return Yt = e.getPrototypeOf || null, Yt;
3309
3309
  }
3310
- var Xt, Wn;
3311
- function Js() {
3312
- if (Wn) return Xt;
3313
- Wn = 1;
3310
+ var Xt, Gn;
3311
+ function Ws() {
3312
+ if (Gn) return Xt;
3313
+ Gn = 1;
3314
3314
  var e = "Function.prototype.bind called on incompatible ", n = Object.prototype.toString, r = Math.max, a = "[object Function]", c = function(s, u) {
3315
3315
  for (var p = [], d = 0; d < s.length; d += 1)
3316
3316
  p[d] = s[d];
@@ -3352,48 +3352,48 @@ function Js() {
3352
3352
  return d;
3353
3353
  }, Xt;
3354
3354
  }
3355
- var Zt, Vn;
3356
- function De() {
3357
- if (Vn) return Zt;
3358
- Vn = 1;
3359
- var e = Js();
3355
+ var Zt, Wn;
3356
+ function Qe() {
3357
+ if (Wn) return Zt;
3358
+ Wn = 1;
3359
+ var e = Ws();
3360
3360
  return Zt = Function.prototype.bind || e, Zt;
3361
3361
  }
3362
- var er, Jn;
3363
- function Fr() {
3364
- return Jn || (Jn = 1, er = Function.prototype.call), er;
3362
+ var er, Vn;
3363
+ function Lr() {
3364
+ return Vn || (Vn = 1, er = Function.prototype.call), er;
3365
3365
  }
3366
- var tr, Dn;
3367
- function Hr() {
3368
- return Dn || (Dn = 1, tr = Function.prototype.apply), tr;
3366
+ var tr, Jn;
3367
+ function Fr() {
3368
+ return Jn || (Jn = 1, tr = Function.prototype.apply), tr;
3369
3369
  }
3370
- var rr, Qn;
3371
- function Ds() {
3372
- return Qn || (Qn = 1, rr = typeof Reflect < "u" && Reflect && Reflect.apply), rr;
3370
+ var rr, Dn;
3371
+ function Vs() {
3372
+ return Dn || (Dn = 1, rr = typeof Reflect < "u" && Reflect && Reflect.apply), rr;
3373
3373
  }
3374
- var nr, Kn;
3375
- function La() {
3376
- if (Kn) return nr;
3377
- Kn = 1;
3378
- var e = De(), n = Hr(), r = Fr(), a = Ds();
3374
+ var nr, Qn;
3375
+ function _a() {
3376
+ if (Qn) return nr;
3377
+ Qn = 1;
3378
+ var e = Qe(), n = Fr(), r = Lr(), a = Vs();
3379
3379
  return nr = a || e.call(r, n), nr;
3380
3380
  }
3381
- var ar, Yn;
3382
- function _a() {
3383
- if (Yn) return ar;
3384
- Yn = 1;
3385
- var e = De(), n = /* @__PURE__ */ Je(), r = Fr(), a = La();
3381
+ var ar, Kn;
3382
+ function Ua() {
3383
+ if (Kn) return ar;
3384
+ Kn = 1;
3385
+ var e = Qe(), n = /* @__PURE__ */ De(), r = Lr(), a = _a();
3386
3386
  return ar = function(i) {
3387
3387
  if (i.length < 1 || typeof i[0] != "function")
3388
3388
  throw new n("a function is required");
3389
3389
  return a(e, r, i);
3390
3390
  }, ar;
3391
3391
  }
3392
- var or, Xn;
3393
- function Qs() {
3394
- if (Xn) return or;
3395
- Xn = 1;
3396
- var e = _a(), n = /* @__PURE__ */ dt(), r;
3392
+ var or, Yn;
3393
+ function Js() {
3394
+ if (Yn) return or;
3395
+ Yn = 1;
3396
+ var e = Ua(), n = /* @__PURE__ */ dt(), r;
3397
3397
  try {
3398
3398
  r = /** @type {{ __proto__?: typeof Array.prototype }} */
3399
3399
  [].__proto__ === Array.prototype;
@@ -3413,11 +3413,11 @@ function Qs() {
3413
3413
  }
3414
3414
  ) : !1, or;
3415
3415
  }
3416
- var ir, Zn;
3417
- function Ks() {
3418
- if (Zn) return ir;
3419
- Zn = 1;
3420
- var e = Ia(), n = Ua(), r = /* @__PURE__ */ Qs();
3416
+ var ir, Xn;
3417
+ function Ds() {
3418
+ if (Xn) return ir;
3419
+ Xn = 1;
3420
+ var e = Aa(), n = Ia(), r = /* @__PURE__ */ Js();
3421
3421
  return ir = e ? function(c) {
3422
3422
  return e(c);
3423
3423
  } : n ? function(c) {
@@ -3428,18 +3428,18 @@ function Ks() {
3428
3428
  return r(c);
3429
3429
  } : null, ir;
3430
3430
  }
3431
- var sr, ea;
3432
- function Ys() {
3433
- if (ea) return sr;
3434
- ea = 1;
3435
- var e = Function.prototype.call, n = Object.prototype.hasOwnProperty, r = De();
3431
+ var sr, Zn;
3432
+ function Qs() {
3433
+ if (Zn) return sr;
3434
+ Zn = 1;
3435
+ var e = Function.prototype.call, n = Object.prototype.hasOwnProperty, r = Qe();
3436
3436
  return sr = r.call(e, n), sr;
3437
3437
  }
3438
- var lr, ta;
3439
- function Mr() {
3440
- if (ta) return lr;
3441
- ta = 1;
3442
- var e, n = /* @__PURE__ */ Ea(), r = /* @__PURE__ */ qs(), a = /* @__PURE__ */ Rs(), c = /* @__PURE__ */ Es(), i = /* @__PURE__ */ As(), t = /* @__PURE__ */ Aa(), o = /* @__PURE__ */ Je(), s = /* @__PURE__ */ Is(), u = /* @__PURE__ */ Us(), p = /* @__PURE__ */ Ls(), d = /* @__PURE__ */ _s(), m = /* @__PURE__ */ Fs(), y = /* @__PURE__ */ Hs(), j = /* @__PURE__ */ Ms(), b = /* @__PURE__ */ zs(), f = Function, g = function(D) {
3438
+ var lr, ea;
3439
+ function Hr() {
3440
+ if (ea) return lr;
3441
+ ea = 1;
3442
+ var e, n = /* @__PURE__ */ Ea(), r = /* @__PURE__ */ Ns(), a = /* @__PURE__ */ ks(), c = /* @__PURE__ */ qs(), i = /* @__PURE__ */ Es(), t = /* @__PURE__ */ Ra(), o = /* @__PURE__ */ De(), s = /* @__PURE__ */ Rs(), u = /* @__PURE__ */ As(), p = /* @__PURE__ */ Is(), d = /* @__PURE__ */ _s(), m = /* @__PURE__ */ Us(), y = /* @__PURE__ */ Ls(), j = /* @__PURE__ */ Fs(), b = /* @__PURE__ */ Ms(), f = Function, g = function(D) {
3443
3443
  try {
3444
3444
  return f('"use strict"; return (' + D + ").constructor;")();
3445
3445
  } catch {
@@ -3456,7 +3456,7 @@ function Mr() {
3456
3456
  return C;
3457
3457
  }
3458
3458
  }
3459
- })() : C, T = Vs()(), x = Ks(), k = Ua(), A = Ia(), R = Hr(), L = Fr(), O = {}, B = typeof Uint8Array > "u" || !x ? e : x(Uint8Array), _ = {
3459
+ })() : C, T = Gs()(), x = Ds(), k = Ia(), A = Aa(), E = Fr(), U = Lr(), O = {}, B = typeof Uint8Array > "u" || !x ? e : x(Uint8Array), L = {
3460
3460
  __proto__: null,
3461
3461
  "%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
3462
3462
  "%Array%": Array,
@@ -3527,8 +3527,8 @@ function Mr() {
3527
3527
  "%WeakMap%": typeof WeakMap > "u" ? e : WeakMap,
3528
3528
  "%WeakRef%": typeof WeakRef > "u" ? e : WeakRef,
3529
3529
  "%WeakSet%": typeof WeakSet > "u" ? e : WeakSet,
3530
- "%Function.prototype.call%": L,
3531
- "%Function.prototype.apply%": R,
3530
+ "%Function.prototype.call%": U,
3531
+ "%Function.prototype.apply%": E,
3532
3532
  "%Object.defineProperty%": S,
3533
3533
  "%Object.getPrototypeOf%": k,
3534
3534
  "%Math.abs%": u,
@@ -3545,7 +3545,7 @@ function Mr() {
3545
3545
  null.error;
3546
3546
  } catch (D) {
3547
3547
  var G = x(x(D));
3548
- _["%Error.prototype%"] = G;
3548
+ L["%Error.prototype%"] = G;
3549
3549
  }
3550
3550
  var se = function D(I) {
3551
3551
  var H;
@@ -3562,7 +3562,7 @@ function Mr() {
3562
3562
  var K = D("%AsyncGenerator%");
3563
3563
  K && x && (H = x(K.prototype));
3564
3564
  }
3565
- return _[I] = H, H;
3565
+ return L[I] = H, H;
3566
3566
  }, ee = {
3567
3567
  __proto__: null,
3568
3568
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
@@ -3616,7 +3616,7 @@ function Mr() {
3616
3616
  "%URIErrorPrototype%": ["URIError", "prototype"],
3617
3617
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
3618
3618
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
3619
- }, E = De(), ne = /* @__PURE__ */ Ys(), N = E.call(L, Array.prototype.concat), q = E.call(R, Array.prototype.splice), F = E.call(L, String.prototype.replace), P = E.call(L, String.prototype.slice), U = E.call(L, RegExp.prototype.exec), J = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, W = /\\(\\)?/g, Y = function(I) {
3619
+ }, R = Qe(), ne = /* @__PURE__ */ Qs(), N = R.call(U, Array.prototype.concat), q = R.call(E, Array.prototype.splice), F = R.call(U, String.prototype.replace), P = R.call(U, String.prototype.slice), _ = R.call(U, RegExp.prototype.exec), J = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, W = /\\(\\)?/g, Y = function(I) {
3620
3620
  var H = P(I, 0, 1), M = P(I, -1);
3621
3621
  if (H === "%" && M !== "%")
3622
3622
  throw new t("invalid intrinsic syntax, expected closing `%`");
@@ -3628,8 +3628,8 @@ function Mr() {
3628
3628
  }), K;
3629
3629
  }, ae = function(I, H) {
3630
3630
  var M = I, K;
3631
- if (ne(ee, M) && (K = ee[M], M = "%" + K[0] + "%"), ne(_, M)) {
3632
- var V = _[M];
3631
+ if (ne(ee, M) && (K = ee[M], M = "%" + K[0] + "%"), ne(L, M)) {
3632
+ var V = L[M];
3633
3633
  if (V === O && (V = se(M)), typeof V > "u" && !H)
3634
3634
  throw new o("intrinsic " + I + " exists, but is not available. Please file an issue!");
3635
3635
  return {
@@ -3645,38 +3645,38 @@ function Mr() {
3645
3645
  throw new o("intrinsic name must be a non-empty string");
3646
3646
  if (arguments.length > 1 && typeof H != "boolean")
3647
3647
  throw new o('"allowMissing" argument must be a boolean');
3648
- if (U(/^%?[^%]*%?$/, I) === null)
3648
+ if (_(/^%?[^%]*%?$/, I) === null)
3649
3649
  throw new t("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
3650
- var M = Y(I), K = M.length > 0 ? M[0] : "", V = ae("%" + K + "%", H), X = V.name, oe = V.value, he = !1, $e = V.alias;
3651
- $e && (K = $e[0], q(M, N([0, 1], $e)));
3652
- for (var Ne = 1, we = !0; Ne < M.length; Ne += 1) {
3653
- var me = M[Ne], ke = P(me, 0, 1), qe = P(me, -1);
3654
- if ((ke === '"' || ke === "'" || ke === "`" || qe === '"' || qe === "'" || qe === "`") && ke !== qe)
3650
+ var M = Y(I), K = M.length > 0 ? M[0] : "", V = ae("%" + K + "%", H), X = V.name, oe = V.value, he = !1, we = V.alias;
3651
+ we && (K = we[0], q(M, N([0, 1], we)));
3652
+ for (var ke = 1, $e = !0; ke < M.length; ke += 1) {
3653
+ var me = M[ke], qe = P(me, 0, 1), Ee = P(me, -1);
3654
+ if ((qe === '"' || qe === "'" || qe === "`" || Ee === '"' || Ee === "'" || Ee === "`") && qe !== Ee)
3655
3655
  throw new t("property names with quotes must have matching quotes");
3656
- if ((me === "constructor" || !we) && (he = !0), K += "." + me, X = "%" + K + "%", ne(_, X))
3657
- oe = _[X];
3656
+ if ((me === "constructor" || !$e) && (he = !0), K += "." + me, X = "%" + K + "%", ne(L, X))
3657
+ oe = L[X];
3658
3658
  else if (oe != null) {
3659
3659
  if (!(me in oe)) {
3660
3660
  if (!H)
3661
3661
  throw new o("base intrinsic for " + I + " exists, but the property is not available.");
3662
3662
  return;
3663
3663
  }
3664
- if (v && Ne + 1 >= M.length) {
3664
+ if (v && ke + 1 >= M.length) {
3665
3665
  var Se = v(oe, me);
3666
- we = !!Se, we && "get" in Se && !("originalValue" in Se.get) ? oe = Se.get : oe = oe[me];
3666
+ $e = !!Se, $e && "get" in Se && !("originalValue" in Se.get) ? oe = Se.get : oe = oe[me];
3667
3667
  } else
3668
- we = ne(oe, me), oe = oe[me];
3669
- we && !he && (_[X] = oe);
3668
+ $e = ne(oe, me), oe = oe[me];
3669
+ $e && !he && (L[X] = oe);
3670
3670
  }
3671
3671
  }
3672
3672
  return oe;
3673
3673
  }, lr;
3674
3674
  }
3675
- var cr = { exports: {} }, ur, ra;
3676
- function Xs() {
3677
- if (ra) return ur;
3678
- ra = 1;
3679
- var e = /* @__PURE__ */ ht(), n = /* @__PURE__ */ Aa(), r = /* @__PURE__ */ Je(), a = /* @__PURE__ */ dt();
3675
+ var cr = { exports: {} }, ur, ta;
3676
+ function Ks() {
3677
+ if (ta) return ur;
3678
+ ta = 1;
3679
+ var e = /* @__PURE__ */ ht(), n = /* @__PURE__ */ Ra(), r = /* @__PURE__ */ De(), a = /* @__PURE__ */ dt();
3680
3680
  return ur = function(i, t, o) {
3681
3681
  if (!i || typeof i != "object" && typeof i != "function")
3682
3682
  throw new r("`obj` must be an object or a function`");
@@ -3704,10 +3704,10 @@ function Xs() {
3704
3704
  throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
3705
3705
  }, ur;
3706
3706
  }
3707
- var pr, na;
3708
- function Zs() {
3709
- if (na) return pr;
3710
- na = 1;
3707
+ var pr, ra;
3708
+ function Ys() {
3709
+ if (ra) return pr;
3710
+ ra = 1;
3711
3711
  var e = /* @__PURE__ */ ht(), n = function() {
3712
3712
  return !!e;
3713
3713
  };
@@ -3721,11 +3721,11 @@ function Zs() {
3721
3721
  }
3722
3722
  }, pr = n, pr;
3723
3723
  }
3724
- var fr, aa;
3725
- function el() {
3726
- if (aa) return fr;
3727
- aa = 1;
3728
- var e = /* @__PURE__ */ Mr(), n = /* @__PURE__ */ Xs(), r = /* @__PURE__ */ Zs()(), a = /* @__PURE__ */ dt(), c = /* @__PURE__ */ Je(), i = e("%Math.floor%");
3724
+ var fr, na;
3725
+ function Xs() {
3726
+ if (na) return fr;
3727
+ na = 1;
3728
+ var e = /* @__PURE__ */ Hr(), n = /* @__PURE__ */ Ks(), r = /* @__PURE__ */ Ys()(), a = /* @__PURE__ */ dt(), c = /* @__PURE__ */ De(), i = e("%Math.floor%");
3729
3729
  return fr = function(o, s) {
3730
3730
  if (typeof o != "function")
3731
3731
  throw new c("`fn` is not a function");
@@ -3751,19 +3751,19 @@ function el() {
3751
3751
  )), o;
3752
3752
  }, fr;
3753
3753
  }
3754
- var dr, oa;
3755
- function tl() {
3756
- if (oa) return dr;
3757
- oa = 1;
3758
- var e = De(), n = Hr(), r = La();
3754
+ var dr, aa;
3755
+ function Zs() {
3756
+ if (aa) return dr;
3757
+ aa = 1;
3758
+ var e = Qe(), n = Fr(), r = _a();
3759
3759
  return dr = function() {
3760
3760
  return r(e, n, arguments);
3761
3761
  }, dr;
3762
3762
  }
3763
- var ia;
3764
- function rl() {
3765
- return ia || (ia = 1, (function(e) {
3766
- var n = /* @__PURE__ */ el(), r = /* @__PURE__ */ ht(), a = _a(), c = tl();
3763
+ var oa;
3764
+ function el() {
3765
+ return oa || (oa = 1, (function(e) {
3766
+ var n = /* @__PURE__ */ Xs(), r = /* @__PURE__ */ ht(), a = Ua(), c = Zs();
3767
3767
  e.exports = function(t) {
3768
3768
  var o = a(arguments), s = t.length - (arguments.length - 1);
3769
3769
  return n(
@@ -3774,38 +3774,42 @@ function rl() {
3774
3774
  }, r ? r(e.exports, "apply", { value: c }) : e.exports.apply = c;
3775
3775
  })(cr)), cr.exports;
3776
3776
  }
3777
- var hr, sa;
3778
- function nl() {
3779
- if (sa) return hr;
3780
- sa = 1;
3781
- var e = /* @__PURE__ */ Mr(), n = rl(), r = n(e("String.prototype.indexOf"));
3777
+ var hr, ia;
3778
+ function tl() {
3779
+ if (ia) return hr;
3780
+ ia = 1;
3781
+ var e = /* @__PURE__ */ Hr(), n = el(), r = n(e("String.prototype.indexOf"));
3782
3782
  return hr = function(c, i) {
3783
3783
  var t = e(c, !!i);
3784
3784
  return typeof t == "function" && r(c, ".prototype.") > -1 ? n(t) : t;
3785
3785
  }, hr;
3786
3786
  }
3787
- var mr, la;
3788
- function al() {
3789
- if (la) return mr;
3790
- la = 1;
3791
- var e = typeof Map == "function" && Map.prototype, n = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, r = e && n && typeof n.get == "function" ? n.get : null, a = e && Map.prototype.forEach, c = typeof Set == "function" && Set.prototype, i = Object.getOwnPropertyDescriptor && c ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, t = c && i && typeof i.get == "function" ? i.get : null, o = c && Set.prototype.forEach, s = typeof WeakMap == "function" && WeakMap.prototype, u = s ? WeakMap.prototype.has : null, p = typeof WeakSet == "function" && WeakSet.prototype, d = p ? WeakSet.prototype.has : null, m = typeof WeakRef == "function" && WeakRef.prototype, y = m ? WeakRef.prototype.deref : null, j = Boolean.prototype.valueOf, b = Object.prototype.toString, f = Function.prototype.toString, g = String.prototype.match, v = String.prototype.slice, S = String.prototype.replace, C = String.prototype.toUpperCase, h = String.prototype.toLowerCase, T = RegExp.prototype.test, x = Array.prototype.concat, k = Array.prototype.join, A = Array.prototype.slice, R = Math.floor, L = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, O = Object.getOwnPropertySymbols, B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, _ = typeof Symbol == "function" && typeof Symbol.iterator == "object", G = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === _ || !0) ? Symbol.toStringTag : null, se = Object.prototype.propertyIsEnumerable, ee = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function($) {
3792
- return $.__proto__;
3787
+ const rl = {}, nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3788
+ __proto__: null,
3789
+ default: rl
3790
+ }, Symbol.toStringTag, { value: "Module" })), al = /* @__PURE__ */ zo(nl);
3791
+ var mr, sa;
3792
+ function ol() {
3793
+ if (sa) return mr;
3794
+ sa = 1;
3795
+ var e = typeof Map == "function" && Map.prototype, n = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, r = e && n && typeof n.get == "function" ? n.get : null, a = e && Map.prototype.forEach, c = typeof Set == "function" && Set.prototype, i = Object.getOwnPropertyDescriptor && c ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, t = c && i && typeof i.get == "function" ? i.get : null, o = c && Set.prototype.forEach, s = typeof WeakMap == "function" && WeakMap.prototype, u = s ? WeakMap.prototype.has : null, p = typeof WeakSet == "function" && WeakSet.prototype, d = p ? WeakSet.prototype.has : null, m = typeof WeakRef == "function" && WeakRef.prototype, y = m ? WeakRef.prototype.deref : null, j = Boolean.prototype.valueOf, b = Object.prototype.toString, f = Function.prototype.toString, g = String.prototype.match, v = String.prototype.slice, S = String.prototype.replace, C = String.prototype.toUpperCase, h = String.prototype.toLowerCase, T = RegExp.prototype.test, x = Array.prototype.concat, k = Array.prototype.join, A = Array.prototype.slice, E = Math.floor, U = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, O = Object.getOwnPropertySymbols, B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, L = typeof Symbol == "function" && typeof Symbol.iterator == "object", G = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === L || !0) ? Symbol.toStringTag : null, se = Object.prototype.propertyIsEnumerable, ee = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(w) {
3796
+ return w.__proto__;
3793
3797
  } : null);
3794
- function E($, w) {
3795
- if ($ === 1 / 0 || $ === -1 / 0 || $ !== $ || $ && $ > -1e3 && $ < 1e3 || T.call(/e/, w))
3796
- return w;
3798
+ function R(w, $) {
3799
+ if (w === 1 / 0 || w === -1 / 0 || w !== w || w && w > -1e3 && w < 1e3 || T.call(/e/, $))
3800
+ return $;
3797
3801
  var Z = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
3798
- if (typeof $ == "number") {
3799
- var te = $ < 0 ? -R(-$) : R($);
3800
- if (te !== $) {
3801
- var ie = String(te), z = v.call(w, ie.length + 1);
3802
+ if (typeof w == "number") {
3803
+ var te = w < 0 ? -E(-w) : E(w);
3804
+ if (te !== w) {
3805
+ var ie = String(te), z = v.call($, ie.length + 1);
3802
3806
  return S.call(ie, Z, "$&_") + "." + S.call(S.call(z, /([0-9]{3})/g, "$&_"), /_$/, "");
3803
3807
  }
3804
3808
  }
3805
- return S.call(w, Z, "$&_");
3809
+ return S.call($, Z, "$&_");
3806
3810
  }
3807
- var ne = Wo, N = ne.custom, q = H(N) ? N : null;
3808
- mr = function $(w, Z, te, ie) {
3811
+ var ne = al, N = ne.custom, q = H(N) ? N : null;
3812
+ mr = function w($, Z, te, ie) {
3809
3813
  var z = Z || {};
3810
3814
  if (V(z, "quoteStyle") && z.quoteStyle !== "single" && z.quoteStyle !== "double")
3811
3815
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
@@ -3819,334 +3823,334 @@ function al() {
3819
3823
  if (V(z, "numericSeparator") && typeof z.numericSeparator != "boolean")
3820
3824
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
3821
3825
  var Oe = z.numericSeparator;
3822
- if (typeof w > "u")
3826
+ if (typeof $ > "u")
3823
3827
  return "undefined";
3824
- if (w === null)
3828
+ if ($ === null)
3825
3829
  return "null";
3826
- if (typeof w == "boolean")
3827
- return w ? "true" : "false";
3828
- if (typeof w == "string")
3829
- return Se(w, z);
3830
- if (typeof w == "number") {
3831
- if (w === 0)
3832
- return 1 / 0 / w > 0 ? "0" : "-0";
3833
- var de = String(w);
3834
- return Oe ? E(w, de) : de;
3830
+ if (typeof $ == "boolean")
3831
+ return $ ? "true" : "false";
3832
+ if (typeof $ == "string")
3833
+ return Se($, z);
3834
+ if (typeof $ == "number") {
3835
+ if ($ === 0)
3836
+ return 1 / 0 / $ > 0 ? "0" : "-0";
3837
+ var de = String($);
3838
+ return Oe ? R($, de) : de;
3835
3839
  }
3836
- if (typeof w == "bigint") {
3837
- var je = String(w) + "n";
3838
- return Oe ? E(w, je) : je;
3840
+ if (typeof $ == "bigint") {
3841
+ var je = String($) + "n";
3842
+ return Oe ? R($, je) : je;
3839
3843
  }
3840
3844
  var gt = typeof z.depth > "u" ? 5 : z.depth;
3841
- if (typeof te > "u" && (te = 0), te >= gt && gt > 0 && typeof w == "object")
3842
- return U(w) ? "[Array]" : "[Object]";
3843
- var Re = Ga(z, te);
3845
+ if (typeof te > "u" && (te = 0), te >= gt && gt > 0 && typeof $ == "object")
3846
+ return _($) ? "[Array]" : "[Object]";
3847
+ var Re = za(z, te);
3844
3848
  if (typeof ie > "u")
3845
3849
  ie = [];
3846
- else if (he(ie, w) >= 0)
3850
+ else if (he(ie, $) >= 0)
3847
3851
  return "[Circular]";
3848
- function ye(Ee, Ye, Va) {
3849
- if (Ye && (ie = A.call(ie), ie.push(Ye)), Va) {
3850
- var Yr = {
3852
+ function ye(Ae, Xe, Wa) {
3853
+ if (Xe && (ie = A.call(ie), ie.push(Xe)), Wa) {
3854
+ var Kr = {
3851
3855
  depth: z.depth
3852
3856
  };
3853
- return V(z, "quoteStyle") && (Yr.quoteStyle = z.quoteStyle), $(Ee, Yr, te + 1, ie);
3857
+ return V(z, "quoteStyle") && (Kr.quoteStyle = z.quoteStyle), w(Ae, Kr, te + 1, ie);
3854
3858
  }
3855
- return $(Ee, z, te + 1, ie);
3859
+ return w(Ae, z, te + 1, ie);
3856
3860
  }
3857
- if (typeof w == "function" && !W(w)) {
3858
- var Gr = oe(w), Wr = Qe(w, ye);
3859
- return "[Function" + (Gr ? ": " + Gr : " (anonymous)") + "]" + (Wr.length > 0 ? " { " + k.call(Wr, ", ") + " }" : "");
3861
+ if (typeof $ == "function" && !W($)) {
3862
+ var zr = oe($), Gr = Ke($, ye);
3863
+ return "[Function" + (zr ? ": " + zr : " (anonymous)") + "]" + (Gr.length > 0 ? " { " + k.call(Gr, ", ") + " }" : "");
3860
3864
  }
3861
- if (H(w)) {
3862
- var Vr = _ ? S.call(String(w), /^(Symbol\(.*\))_[^)]*$/, "$1") : B.call(w);
3863
- return typeof w == "object" && !_ ? Ue(Vr) : Vr;
3865
+ if (H($)) {
3866
+ var Wr = L ? S.call(String($), /^(Symbol\(.*\))_[^)]*$/, "$1") : B.call($);
3867
+ return typeof $ == "object" && !L ? Le(Wr) : Wr;
3864
3868
  }
3865
- if (qe(w)) {
3866
- for (var Le = "<" + h.call(String(w.nodeName)), vt = w.attributes || [], Ke = 0; Ke < vt.length; Ke++)
3867
- Le += " " + vt[Ke].name + "=" + F(P(vt[Ke].value), "double", z);
3868
- return Le += ">", w.childNodes && w.childNodes.length && (Le += "..."), Le += "</" + h.call(String(w.nodeName)) + ">", Le;
3869
+ if (Ee($)) {
3870
+ for (var Fe = "<" + h.call(String($.nodeName)), vt = $.attributes || [], Ye = 0; Ye < vt.length; Ye++)
3871
+ Fe += " " + vt[Ye].name + "=" + F(P(vt[Ye].value), "double", z);
3872
+ return Fe += ">", $.childNodes && $.childNodes.length && (Fe += "..."), Fe += "</" + h.call(String($.nodeName)) + ">", Fe;
3869
3873
  }
3870
- if (U(w)) {
3871
- if (w.length === 0)
3874
+ if (_($)) {
3875
+ if ($.length === 0)
3872
3876
  return "[]";
3873
- var xt = Qe(w, ye);
3874
- return Re && !za(xt) ? "[" + yt(xt, Re) + "]" : "[ " + k.call(xt, ", ") + " ]";
3877
+ var xt = Ke($, ye);
3878
+ return Re && !Ba(xt) ? "[" + yt(xt, Re) + "]" : "[ " + k.call(xt, ", ") + " ]";
3875
3879
  }
3876
- if (Y(w)) {
3877
- var bt = Qe(w, ye);
3878
- return !("cause" in Error.prototype) && "cause" in w && !se.call(w, "cause") ? "{ [" + String(w) + "] " + k.call(x.call("[cause]: " + ye(w.cause), bt), ", ") + " }" : bt.length === 0 ? "[" + String(w) + "]" : "{ [" + String(w) + "] " + k.call(bt, ", ") + " }";
3880
+ if (Y($)) {
3881
+ var bt = Ke($, ye);
3882
+ return !("cause" in Error.prototype) && "cause" in $ && !se.call($, "cause") ? "{ [" + String($) + "] " + k.call(x.call("[cause]: " + ye($.cause), bt), ", ") + " }" : bt.length === 0 ? "[" + String($) + "]" : "{ [" + String($) + "] " + k.call(bt, ", ") + " }";
3879
3883
  }
3880
- if (typeof w == "object" && be) {
3881
- if (q && typeof w[q] == "function" && ne)
3882
- return ne(w, { depth: gt - te });
3883
- if (be !== "symbol" && typeof w.inspect == "function")
3884
- return w.inspect();
3884
+ if (typeof $ == "object" && be) {
3885
+ if (q && typeof $[q] == "function" && ne)
3886
+ return ne($, { depth: gt - te });
3887
+ if (be !== "symbol" && typeof $.inspect == "function")
3888
+ return $.inspect();
3885
3889
  }
3886
- if ($e(w)) {
3887
- var Jr = [];
3888
- return a && a.call(w, function(Ee, Ye) {
3889
- Jr.push(ye(Ye, w, !0) + " => " + ye(Ee, w));
3890
- }), zr("Map", r.call(w), Jr, Re);
3890
+ if (we($)) {
3891
+ var Vr = [];
3892
+ return a && a.call($, function(Ae, Xe) {
3893
+ Vr.push(ye(Xe, $, !0) + " => " + ye(Ae, $));
3894
+ }), Br("Map", r.call($), Vr, Re);
3891
3895
  }
3892
- if (me(w)) {
3893
- var Dr = [];
3894
- return o && o.call(w, function(Ee) {
3895
- Dr.push(ye(Ee, w));
3896
- }), zr("Set", t.call(w), Dr, Re);
3896
+ if (me($)) {
3897
+ var Jr = [];
3898
+ return o && o.call($, function(Ae) {
3899
+ Jr.push(ye(Ae, $));
3900
+ }), Br("Set", t.call($), Jr, Re);
3897
3901
  }
3898
- if (Ne(w))
3902
+ if (ke($))
3899
3903
  return mt("WeakMap");
3900
- if (ke(w))
3904
+ if (qe($))
3901
3905
  return mt("WeakSet");
3902
- if (we(w))
3906
+ if ($e($))
3903
3907
  return mt("WeakRef");
3904
- if (D(w))
3905
- return Ue(ye(Number(w)));
3906
- if (M(w))
3907
- return Ue(ye(L.call(w)));
3908
- if (I(w))
3909
- return Ue(j.call(w));
3910
- if (ae(w))
3911
- return Ue(ye(String(w)));
3912
- if (typeof window < "u" && w === window)
3908
+ if (D($))
3909
+ return Le(ye(Number($)));
3910
+ if (M($))
3911
+ return Le(ye(U.call($)));
3912
+ if (I($))
3913
+ return Le(j.call($));
3914
+ if (ae($))
3915
+ return Le(ye(String($)));
3916
+ if (typeof window < "u" && $ === window)
3913
3917
  return "{ [object Window] }";
3914
- if (typeof globalThis < "u" && w === globalThis || typeof it < "u" && w === it)
3918
+ if (typeof globalThis < "u" && $ === globalThis || typeof it < "u" && $ === it)
3915
3919
  return "{ [object globalThis] }";
3916
- if (!J(w) && !W(w)) {
3917
- var jt = Qe(w, ye), Qr = ee ? ee(w) === Object.prototype : w instanceof Object || w.constructor === Object, $t = w instanceof Object ? "" : "null prototype", Kr = !Qr && G && Object(w) === w && G in w ? v.call(X(w), 8, -1) : $t ? "Object" : "", Wa = Qr || typeof w.constructor != "function" ? "" : w.constructor.name ? w.constructor.name + " " : "", wt = Wa + (Kr || $t ? "[" + k.call(x.call([], Kr || [], $t || []), ": ") + "] " : "");
3918
- return jt.length === 0 ? wt + "{}" : Re ? wt + "{" + yt(jt, Re) + "}" : wt + "{ " + k.call(jt, ", ") + " }";
3920
+ if (!J($) && !W($)) {
3921
+ var jt = Ke($, ye), Dr = ee ? ee($) === Object.prototype : $ instanceof Object || $.constructor === Object, wt = $ instanceof Object ? "" : "null prototype", Qr = !Dr && G && Object($) === $ && G in $ ? v.call(X($), 8, -1) : wt ? "Object" : "", Ga = Dr || typeof $.constructor != "function" ? "" : $.constructor.name ? $.constructor.name + " " : "", $t = Ga + (Qr || wt ? "[" + k.call(x.call([], Qr || [], wt || []), ": ") + "] " : "");
3922
+ return jt.length === 0 ? $t + "{}" : Re ? $t + "{" + yt(jt, Re) + "}" : $t + "{ " + k.call(jt, ", ") + " }";
3919
3923
  }
3920
- return String(w);
3924
+ return String($);
3921
3925
  };
3922
- function F($, w, Z) {
3923
- var te = (Z.quoteStyle || w) === "double" ? '"' : "'";
3924
- return te + $ + te;
3926
+ function F(w, $, Z) {
3927
+ var te = (Z.quoteStyle || $) === "double" ? '"' : "'";
3928
+ return te + w + te;
3925
3929
  }
3926
- function P($) {
3927
- return S.call(String($), /"/g, "&quot;");
3930
+ function P(w) {
3931
+ return S.call(String(w), /"/g, "&quot;");
3928
3932
  }
3929
- function U($) {
3930
- return X($) === "[object Array]" && (!G || !(typeof $ == "object" && G in $));
3933
+ function _(w) {
3934
+ return X(w) === "[object Array]" && (!G || !(typeof w == "object" && G in w));
3931
3935
  }
3932
- function J($) {
3933
- return X($) === "[object Date]" && (!G || !(typeof $ == "object" && G in $));
3936
+ function J(w) {
3937
+ return X(w) === "[object Date]" && (!G || !(typeof w == "object" && G in w));
3934
3938
  }
3935
- function W($) {
3936
- return X($) === "[object RegExp]" && (!G || !(typeof $ == "object" && G in $));
3939
+ function W(w) {
3940
+ return X(w) === "[object RegExp]" && (!G || !(typeof w == "object" && G in w));
3937
3941
  }
3938
- function Y($) {
3939
- return X($) === "[object Error]" && (!G || !(typeof $ == "object" && G in $));
3942
+ function Y(w) {
3943
+ return X(w) === "[object Error]" && (!G || !(typeof w == "object" && G in w));
3940
3944
  }
3941
- function ae($) {
3942
- return X($) === "[object String]" && (!G || !(typeof $ == "object" && G in $));
3945
+ function ae(w) {
3946
+ return X(w) === "[object String]" && (!G || !(typeof w == "object" && G in w));
3943
3947
  }
3944
- function D($) {
3945
- return X($) === "[object Number]" && (!G || !(typeof $ == "object" && G in $));
3948
+ function D(w) {
3949
+ return X(w) === "[object Number]" && (!G || !(typeof w == "object" && G in w));
3946
3950
  }
3947
- function I($) {
3948
- return X($) === "[object Boolean]" && (!G || !(typeof $ == "object" && G in $));
3951
+ function I(w) {
3952
+ return X(w) === "[object Boolean]" && (!G || !(typeof w == "object" && G in w));
3949
3953
  }
3950
- function H($) {
3951
- if (_)
3952
- return $ && typeof $ == "object" && $ instanceof Symbol;
3953
- if (typeof $ == "symbol")
3954
+ function H(w) {
3955
+ if (L)
3956
+ return w && typeof w == "object" && w instanceof Symbol;
3957
+ if (typeof w == "symbol")
3954
3958
  return !0;
3955
- if (!$ || typeof $ != "object" || !B)
3959
+ if (!w || typeof w != "object" || !B)
3956
3960
  return !1;
3957
3961
  try {
3958
- return B.call($), !0;
3962
+ return B.call(w), !0;
3959
3963
  } catch {
3960
3964
  }
3961
3965
  return !1;
3962
3966
  }
3963
- function M($) {
3964
- if (!$ || typeof $ != "object" || !L)
3967
+ function M(w) {
3968
+ if (!w || typeof w != "object" || !U)
3965
3969
  return !1;
3966
3970
  try {
3967
- return L.call($), !0;
3971
+ return U.call(w), !0;
3968
3972
  } catch {
3969
3973
  }
3970
3974
  return !1;
3971
3975
  }
3972
- var K = Object.prototype.hasOwnProperty || function($) {
3973
- return $ in this;
3976
+ var K = Object.prototype.hasOwnProperty || function(w) {
3977
+ return w in this;
3974
3978
  };
3975
- function V($, w) {
3976
- return K.call($, w);
3979
+ function V(w, $) {
3980
+ return K.call(w, $);
3977
3981
  }
3978
- function X($) {
3979
- return b.call($);
3982
+ function X(w) {
3983
+ return b.call(w);
3980
3984
  }
3981
- function oe($) {
3982
- if ($.name)
3983
- return $.name;
3984
- var w = g.call(f.call($), /^function\s*([\w$]+)/);
3985
- return w ? w[1] : null;
3985
+ function oe(w) {
3986
+ if (w.name)
3987
+ return w.name;
3988
+ var $ = g.call(f.call(w), /^function\s*([\w$]+)/);
3989
+ return $ ? $[1] : null;
3986
3990
  }
3987
- function he($, w) {
3988
- if ($.indexOf)
3989
- return $.indexOf(w);
3990
- for (var Z = 0, te = $.length; Z < te; Z++)
3991
- if ($[Z] === w)
3991
+ function he(w, $) {
3992
+ if (w.indexOf)
3993
+ return w.indexOf($);
3994
+ for (var Z = 0, te = w.length; Z < te; Z++)
3995
+ if (w[Z] === $)
3992
3996
  return Z;
3993
3997
  return -1;
3994
3998
  }
3995
- function $e($) {
3996
- if (!r || !$ || typeof $ != "object")
3999
+ function we(w) {
4000
+ if (!r || !w || typeof w != "object")
3997
4001
  return !1;
3998
4002
  try {
3999
- r.call($);
4003
+ r.call(w);
4000
4004
  try {
4001
- t.call($);
4005
+ t.call(w);
4002
4006
  } catch {
4003
4007
  return !0;
4004
4008
  }
4005
- return $ instanceof Map;
4009
+ return w instanceof Map;
4006
4010
  } catch {
4007
4011
  }
4008
4012
  return !1;
4009
4013
  }
4010
- function Ne($) {
4011
- if (!u || !$ || typeof $ != "object")
4014
+ function ke(w) {
4015
+ if (!u || !w || typeof w != "object")
4012
4016
  return !1;
4013
4017
  try {
4014
- u.call($, u);
4018
+ u.call(w, u);
4015
4019
  try {
4016
- d.call($, d);
4020
+ d.call(w, d);
4017
4021
  } catch {
4018
4022
  return !0;
4019
4023
  }
4020
- return $ instanceof WeakMap;
4024
+ return w instanceof WeakMap;
4021
4025
  } catch {
4022
4026
  }
4023
4027
  return !1;
4024
4028
  }
4025
- function we($) {
4026
- if (!y || !$ || typeof $ != "object")
4029
+ function $e(w) {
4030
+ if (!y || !w || typeof w != "object")
4027
4031
  return !1;
4028
4032
  try {
4029
- return y.call($), !0;
4033
+ return y.call(w), !0;
4030
4034
  } catch {
4031
4035
  }
4032
4036
  return !1;
4033
4037
  }
4034
- function me($) {
4035
- if (!t || !$ || typeof $ != "object")
4038
+ function me(w) {
4039
+ if (!t || !w || typeof w != "object")
4036
4040
  return !1;
4037
4041
  try {
4038
- t.call($);
4042
+ t.call(w);
4039
4043
  try {
4040
- r.call($);
4044
+ r.call(w);
4041
4045
  } catch {
4042
4046
  return !0;
4043
4047
  }
4044
- return $ instanceof Set;
4048
+ return w instanceof Set;
4045
4049
  } catch {
4046
4050
  }
4047
4051
  return !1;
4048
4052
  }
4049
- function ke($) {
4050
- if (!d || !$ || typeof $ != "object")
4053
+ function qe(w) {
4054
+ if (!d || !w || typeof w != "object")
4051
4055
  return !1;
4052
4056
  try {
4053
- d.call($, d);
4057
+ d.call(w, d);
4054
4058
  try {
4055
- u.call($, u);
4059
+ u.call(w, u);
4056
4060
  } catch {
4057
4061
  return !0;
4058
4062
  }
4059
- return $ instanceof WeakSet;
4063
+ return w instanceof WeakSet;
4060
4064
  } catch {
4061
4065
  }
4062
4066
  return !1;
4063
4067
  }
4064
- function qe($) {
4065
- return !$ || typeof $ != "object" ? !1 : typeof HTMLElement < "u" && $ instanceof HTMLElement ? !0 : typeof $.nodeName == "string" && typeof $.getAttribute == "function";
4068
+ function Ee(w) {
4069
+ return !w || typeof w != "object" ? !1 : typeof HTMLElement < "u" && w instanceof HTMLElement ? !0 : typeof w.nodeName == "string" && typeof w.getAttribute == "function";
4066
4070
  }
4067
- function Se($, w) {
4068
- if ($.length > w.maxStringLength) {
4069
- var Z = $.length - w.maxStringLength, te = "... " + Z + " more character" + (Z > 1 ? "s" : "");
4070
- return Se(v.call($, 0, w.maxStringLength), w) + te;
4071
+ function Se(w, $) {
4072
+ if (w.length > $.maxStringLength) {
4073
+ var Z = w.length - $.maxStringLength, te = "... " + Z + " more character" + (Z > 1 ? "s" : "");
4074
+ return Se(v.call(w, 0, $.maxStringLength), $) + te;
4071
4075
  }
4072
- var ie = S.call(S.call($, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ba);
4073
- return F(ie, "single", w);
4076
+ var ie = S.call(S.call(w, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ma);
4077
+ return F(ie, "single", $);
4074
4078
  }
4075
- function Ba($) {
4076
- var w = $.charCodeAt(0), Z = {
4079
+ function Ma(w) {
4080
+ var $ = w.charCodeAt(0), Z = {
4077
4081
  8: "b",
4078
4082
  9: "t",
4079
4083
  10: "n",
4080
4084
  12: "f",
4081
4085
  13: "r"
4082
- }[w];
4083
- return Z ? "\\" + Z : "\\x" + (w < 16 ? "0" : "") + C.call(w.toString(16));
4086
+ }[$];
4087
+ return Z ? "\\" + Z : "\\x" + ($ < 16 ? "0" : "") + C.call($.toString(16));
4084
4088
  }
4085
- function Ue($) {
4086
- return "Object(" + $ + ")";
4089
+ function Le(w) {
4090
+ return "Object(" + w + ")";
4087
4091
  }
4088
- function mt($) {
4089
- return $ + " { ? }";
4092
+ function mt(w) {
4093
+ return w + " { ? }";
4090
4094
  }
4091
- function zr($, w, Z, te) {
4095
+ function Br(w, $, Z, te) {
4092
4096
  var ie = te ? yt(Z, te) : k.call(Z, ", ");
4093
- return $ + " (" + w + ") {" + ie + "}";
4097
+ return w + " (" + $ + ") {" + ie + "}";
4094
4098
  }
4095
- function za($) {
4096
- for (var w = 0; w < $.length; w++)
4097
- if (he($[w], `
4099
+ function Ba(w) {
4100
+ for (var $ = 0; $ < w.length; $++)
4101
+ if (he(w[$], `
4098
4102
  `) >= 0)
4099
4103
  return !1;
4100
4104
  return !0;
4101
4105
  }
4102
- function Ga($, w) {
4106
+ function za(w, $) {
4103
4107
  var Z;
4104
- if ($.indent === " ")
4108
+ if (w.indent === " ")
4105
4109
  Z = " ";
4106
- else if (typeof $.indent == "number" && $.indent > 0)
4107
- Z = k.call(Array($.indent + 1), " ");
4110
+ else if (typeof w.indent == "number" && w.indent > 0)
4111
+ Z = k.call(Array(w.indent + 1), " ");
4108
4112
  else
4109
4113
  return null;
4110
4114
  return {
4111
4115
  base: Z,
4112
- prev: k.call(Array(w + 1), Z)
4116
+ prev: k.call(Array($ + 1), Z)
4113
4117
  };
4114
4118
  }
4115
- function yt($, w) {
4116
- if ($.length === 0)
4119
+ function yt(w, $) {
4120
+ if (w.length === 0)
4117
4121
  return "";
4118
4122
  var Z = `
4119
- ` + w.prev + w.base;
4120
- return Z + k.call($, "," + Z) + `
4121
- ` + w.prev;
4123
+ ` + $.prev + $.base;
4124
+ return Z + k.call(w, "," + Z) + `
4125
+ ` + $.prev;
4122
4126
  }
4123
- function Qe($, w) {
4124
- var Z = U($), te = [];
4127
+ function Ke(w, $) {
4128
+ var Z = _(w), te = [];
4125
4129
  if (Z) {
4126
- te.length = $.length;
4127
- for (var ie = 0; ie < $.length; ie++)
4128
- te[ie] = V($, ie) ? w($[ie], $) : "";
4130
+ te.length = w.length;
4131
+ for (var ie = 0; ie < w.length; ie++)
4132
+ te[ie] = V(w, ie) ? $(w[ie], w) : "";
4129
4133
  }
4130
- var z = typeof O == "function" ? O($) : [], be;
4131
- if (_) {
4134
+ var z = typeof O == "function" ? O(w) : [], be;
4135
+ if (L) {
4132
4136
  be = {};
4133
4137
  for (var Oe = 0; Oe < z.length; Oe++)
4134
4138
  be["$" + z[Oe]] = z[Oe];
4135
4139
  }
4136
- for (var de in $)
4137
- V($, de) && (Z && String(Number(de)) === de && de < $.length || _ && be["$" + de] instanceof Symbol || (T.call(/[^\w$]/, de) ? te.push(w(de, $) + ": " + w($[de], $)) : te.push(de + ": " + w($[de], $))));
4140
+ for (var de in w)
4141
+ V(w, de) && (Z && String(Number(de)) === de && de < w.length || L && be["$" + de] instanceof Symbol || (T.call(/[^\w$]/, de) ? te.push($(de, w) + ": " + $(w[de], w)) : te.push(de + ": " + $(w[de], w))));
4138
4142
  if (typeof O == "function")
4139
4143
  for (var je = 0; je < z.length; je++)
4140
- se.call($, z[je]) && te.push("[" + w(z[je]) + "]: " + w($[z[je]], $));
4144
+ se.call(w, z[je]) && te.push("[" + $(z[je]) + "]: " + $(w[z[je]], w));
4141
4145
  return te;
4142
4146
  }
4143
4147
  return mr;
4144
4148
  }
4145
- var yr, ca;
4146
- function ol() {
4147
- if (ca) return yr;
4148
- ca = 1;
4149
- var e = /* @__PURE__ */ Mr(), n = nl(), r = /* @__PURE__ */ al(), a = /* @__PURE__ */ Je(), c = e("%WeakMap%", !0), i = e("%Map%", !0), t = n("WeakMap.prototype.get", !0), o = n("WeakMap.prototype.set", !0), s = n("WeakMap.prototype.has", !0), u = n("Map.prototype.get", !0), p = n("Map.prototype.set", !0), d = n("Map.prototype.has", !0), m = function(f, g) {
4149
+ var yr, la;
4150
+ function il() {
4151
+ if (la) return yr;
4152
+ la = 1;
4153
+ var e = /* @__PURE__ */ Hr(), n = tl(), r = /* @__PURE__ */ ol(), a = /* @__PURE__ */ De(), c = e("%WeakMap%", !0), i = e("%Map%", !0), t = n("WeakMap.prototype.get", !0), o = n("WeakMap.prototype.set", !0), s = n("WeakMap.prototype.has", !0), u = n("Map.prototype.get", !0), p = n("Map.prototype.set", !0), d = n("Map.prototype.has", !0), m = function(f, g) {
4150
4154
  for (var v = f, S; (S = v.next) !== null; v = S)
4151
4155
  if (S.key === g)
4152
4156
  return v.next = S.next, S.next = /** @type {NonNullable<typeof list.next>} */
@@ -4200,10 +4204,10 @@ function ol() {
4200
4204
  return C;
4201
4205
  }, yr;
4202
4206
  }
4203
- var gr, ua;
4204
- function Br() {
4205
- if (ua) return gr;
4206
- ua = 1;
4207
+ var gr, ca;
4208
+ function Mr() {
4209
+ if (ca) return gr;
4210
+ ca = 1;
4207
4211
  var e = String.prototype.replace, n = /%20/g, r = {
4208
4212
  RFC1738: "RFC1738",
4209
4213
  RFC3986: "RFC3986"
@@ -4222,11 +4226,11 @@ function Br() {
4222
4226
  RFC3986: r.RFC3986
4223
4227
  }, gr;
4224
4228
  }
4225
- var vr, pa;
4226
- function Fa() {
4227
- if (pa) return vr;
4228
- pa = 1;
4229
- var e = /* @__PURE__ */ Br(), n = Object.prototype.hasOwnProperty, r = Array.isArray, a = (function() {
4229
+ var vr, ua;
4230
+ function La() {
4231
+ if (ua) return vr;
4232
+ ua = 1;
4233
+ var e = /* @__PURE__ */ Mr(), n = Object.prototype.hasOwnProperty, r = Array.isArray, a = (function() {
4230
4234
  for (var f = [], g = 0; g < 256; ++g)
4231
4235
  f.push("%" + ((g < 16 ? "0" : "") + g.toString(16)).toUpperCase());
4232
4236
  return f;
@@ -4290,34 +4294,34 @@ function Fa() {
4290
4294
  return "%26%23" + parseInt(B.slice(2), 16) + "%3B";
4291
4295
  });
4292
4296
  for (var x = "", k = 0; k < T.length; k += u) {
4293
- for (var A = T.length >= u ? T.slice(k, k + u) : T, R = [], L = 0; L < A.length; ++L) {
4294
- var O = A.charCodeAt(L);
4297
+ for (var A = T.length >= u ? T.slice(k, k + u) : T, E = [], U = 0; U < A.length; ++U) {
4298
+ var O = A.charCodeAt(U);
4295
4299
  if (O === 45 || O === 46 || O === 95 || O === 126 || O >= 48 && O <= 57 || O >= 65 && O <= 90 || O >= 97 && O <= 122 || h === e.RFC1738 && (O === 40 || O === 41)) {
4296
- R[R.length] = A.charAt(L);
4300
+ E[E.length] = A.charAt(U);
4297
4301
  continue;
4298
4302
  }
4299
4303
  if (O < 128) {
4300
- R[R.length] = a[O];
4304
+ E[E.length] = a[O];
4301
4305
  continue;
4302
4306
  }
4303
4307
  if (O < 2048) {
4304
- R[R.length] = a[192 | O >> 6] + a[128 | O & 63];
4308
+ E[E.length] = a[192 | O >> 6] + a[128 | O & 63];
4305
4309
  continue;
4306
4310
  }
4307
4311
  if (O < 55296 || O >= 57344) {
4308
- R[R.length] = a[224 | O >> 12] + a[128 | O >> 6 & 63] + a[128 | O & 63];
4312
+ E[E.length] = a[224 | O >> 12] + a[128 | O >> 6 & 63] + a[128 | O & 63];
4309
4313
  continue;
4310
4314
  }
4311
- L += 1, O = 65536 + ((O & 1023) << 10 | A.charCodeAt(L) & 1023), R[R.length] = a[240 | O >> 18] + a[128 | O >> 12 & 63] + a[128 | O >> 6 & 63] + a[128 | O & 63];
4315
+ U += 1, O = 65536 + ((O & 1023) << 10 | A.charCodeAt(U) & 1023), E[E.length] = a[240 | O >> 18] + a[128 | O >> 12 & 63] + a[128 | O >> 6 & 63] + a[128 | O & 63];
4312
4316
  }
4313
- x += R.join("");
4317
+ x += E.join("");
4314
4318
  }
4315
4319
  return x;
4316
4320
  }, d = function(g) {
4317
4321
  for (var v = [{ obj: { o: g }, prop: "o" }], S = [], C = 0; C < v.length; ++C)
4318
4322
  for (var h = v[C], T = h.obj[h.prop], x = Object.keys(T), k = 0; k < x.length; ++k) {
4319
- var A = x[k], R = T[A];
4320
- typeof R == "object" && R !== null && S.indexOf(R) === -1 && (v.push({ obj: T, prop: A }), S.push(R));
4323
+ var A = x[k], E = T[A];
4324
+ typeof E == "object" && E !== null && S.indexOf(E) === -1 && (v.push({ obj: T, prop: A }), S.push(E));
4321
4325
  }
4322
4326
  return c(v), g;
4323
4327
  }, m = function(g) {
@@ -4347,11 +4351,11 @@ function Fa() {
4347
4351
  merge: t
4348
4352
  }, vr;
4349
4353
  }
4350
- var xr, fa;
4351
- function il() {
4352
- if (fa) return xr;
4353
- fa = 1;
4354
- var e = ol(), n = /* @__PURE__ */ Fa(), r = /* @__PURE__ */ Br(), a = Object.prototype.hasOwnProperty, c = {
4354
+ var xr, pa;
4355
+ function sl() {
4356
+ if (pa) return xr;
4357
+ pa = 1;
4358
+ var e = il(), n = /* @__PURE__ */ La(), r = /* @__PURE__ */ Mr(), a = Object.prototype.hasOwnProperty, c = {
4355
4359
  brackets: function(f) {
4356
4360
  return f + "[]";
4357
4361
  },
@@ -4387,8 +4391,8 @@ function il() {
4387
4391
  strictNullHandling: !1
4388
4392
  }, d = function(f) {
4389
4393
  return typeof f == "string" || typeof f == "number" || typeof f == "boolean" || typeof f == "symbol" || typeof f == "bigint";
4390
- }, m = {}, y = function b(f, g, v, S, C, h, T, x, k, A, R, L, O, B, _, G, se, ee) {
4391
- for (var E = f, ne = ee, N = 0, q = !1; (ne = ne.get(m)) !== void 0 && !q; ) {
4394
+ }, m = {}, y = function b(f, g, v, S, C, h, T, x, k, A, E, U, O, B, L, G, se, ee) {
4395
+ for (var R = f, ne = ee, N = 0, q = !1; (ne = ne.get(m)) !== void 0 && !q; ) {
4392
4396
  var F = ne.get(f);
4393
4397
  if (N += 1, typeof F < "u") {
4394
4398
  if (F === N)
@@ -4397,42 +4401,42 @@ function il() {
4397
4401
  }
4398
4402
  typeof ne.get(m) > "u" && (N = 0);
4399
4403
  }
4400
- if (typeof A == "function" ? E = A(g, E) : E instanceof Date ? E = O(E) : v === "comma" && i(E) && (E = n.maybeMap(E, function(X) {
4404
+ if (typeof A == "function" ? R = A(g, R) : R instanceof Date ? R = O(R) : v === "comma" && i(R) && (R = n.maybeMap(R, function(X) {
4401
4405
  return X instanceof Date ? O(X) : X;
4402
- })), E === null) {
4406
+ })), R === null) {
4403
4407
  if (h)
4404
4408
  return k && !G ? k(g, p.encoder, se, "key", B) : g;
4405
- E = "";
4409
+ R = "";
4406
4410
  }
4407
- if (d(E) || n.isBuffer(E)) {
4411
+ if (d(R) || n.isBuffer(R)) {
4408
4412
  if (k) {
4409
4413
  var P = G ? g : k(g, p.encoder, se, "key", B);
4410
- return [_(P) + "=" + _(k(E, p.encoder, se, "value", B))];
4414
+ return [L(P) + "=" + L(k(R, p.encoder, se, "value", B))];
4411
4415
  }
4412
- return [_(g) + "=" + _(String(E))];
4416
+ return [L(g) + "=" + L(String(R))];
4413
4417
  }
4414
- var U = [];
4415
- if (typeof E > "u")
4416
- return U;
4418
+ var _ = [];
4419
+ if (typeof R > "u")
4420
+ return _;
4417
4421
  var J;
4418
- if (v === "comma" && i(E))
4419
- G && k && (E = n.maybeMap(E, k)), J = [{ value: E.length > 0 ? E.join(",") || null : void 0 }];
4422
+ if (v === "comma" && i(R))
4423
+ G && k && (R = n.maybeMap(R, k)), J = [{ value: R.length > 0 ? R.join(",") || null : void 0 }];
4420
4424
  else if (i(A))
4421
4425
  J = A;
4422
4426
  else {
4423
- var W = Object.keys(E);
4424
- J = R ? W.sort(R) : W;
4427
+ var W = Object.keys(R);
4428
+ J = E ? W.sort(E) : W;
4425
4429
  }
4426
- var Y = x ? g.replace(/\./g, "%2E") : g, ae = S && i(E) && E.length === 1 ? Y + "[]" : Y;
4427
- if (C && i(E) && E.length === 0)
4430
+ var Y = x ? g.replace(/\./g, "%2E") : g, ae = S && i(R) && R.length === 1 ? Y + "[]" : Y;
4431
+ if (C && i(R) && R.length === 0)
4428
4432
  return ae + "[]";
4429
4433
  for (var D = 0; D < J.length; ++D) {
4430
- var I = J[D], H = typeof I == "object" && typeof I.value < "u" ? I.value : E[I];
4434
+ var I = J[D], H = typeof I == "object" && typeof I.value < "u" ? I.value : R[I];
4431
4435
  if (!(T && H === null)) {
4432
- var M = L && x ? I.replace(/\./g, "%2E") : I, K = i(E) ? typeof v == "function" ? v(ae, M) : ae : ae + (L ? "." + M : "[" + M + "]");
4436
+ var M = U && x ? I.replace(/\./g, "%2E") : I, K = i(R) ? typeof v == "function" ? v(ae, M) : ae : ae + (U ? "." + M : "[" + M + "]");
4433
4437
  ee.set(f, N);
4434
4438
  var V = e();
4435
- V.set(m, ee), o(U, b(
4439
+ V.set(m, ee), o(_, b(
4436
4440
  H,
4437
4441
  K,
4438
4442
  v,
@@ -4441,20 +4445,20 @@ function il() {
4441
4445
  h,
4442
4446
  T,
4443
4447
  x,
4444
- v === "comma" && G && i(E) ? null : k,
4448
+ v === "comma" && G && i(R) ? null : k,
4445
4449
  A,
4446
- R,
4447
- L,
4450
+ E,
4451
+ U,
4448
4452
  O,
4449
4453
  B,
4450
- _,
4454
+ L,
4451
4455
  G,
4452
4456
  se,
4453
4457
  V
4454
4458
  ));
4455
4459
  }
4456
4460
  }
4457
- return U;
4461
+ return _;
4458
4462
  }, j = function(f) {
4459
4463
  if (!f)
4460
4464
  return p;
@@ -4510,10 +4514,10 @@ function il() {
4510
4514
  var T = c[v.arrayFormat], x = T === "comma" && v.commaRoundTrip;
4511
4515
  S || (S = Object.keys(g)), v.sort && S.sort(v.sort);
4512
4516
  for (var k = e(), A = 0; A < S.length; ++A) {
4513
- var R = S[A];
4514
- v.skipNulls && g[R] === null || o(h, y(
4515
- g[R],
4516
- R,
4517
+ var E = S[A];
4518
+ v.skipNulls && g[E] === null || o(h, y(
4519
+ g[E],
4520
+ E,
4517
4521
  T,
4518
4522
  x,
4519
4523
  v.allowEmptyArrays,
@@ -4532,15 +4536,15 @@ function il() {
4532
4536
  k
4533
4537
  ));
4534
4538
  }
4535
- var L = h.join(v.delimiter), O = v.addQueryPrefix === !0 ? "?" : "";
4536
- return v.charsetSentinel && (v.charset === "iso-8859-1" ? O += "utf8=%26%2310003%3B&" : O += "utf8=%E2%9C%93&"), L.length > 0 ? O + L : "";
4539
+ var U = h.join(v.delimiter), O = v.addQueryPrefix === !0 ? "?" : "";
4540
+ return v.charsetSentinel && (v.charset === "iso-8859-1" ? O += "utf8=%26%2310003%3B&" : O += "utf8=%E2%9C%93&"), U.length > 0 ? O + U : "";
4537
4541
  }, xr;
4538
4542
  }
4539
- var br, da;
4540
- function sl() {
4541
- if (da) return br;
4542
- da = 1;
4543
- var e = /* @__PURE__ */ Fa(), n = Object.prototype.hasOwnProperty, r = Array.isArray, a = {
4543
+ var br, fa;
4544
+ function ll() {
4545
+ if (fa) return br;
4546
+ fa = 1;
4547
+ var e = /* @__PURE__ */ La(), n = Object.prototype.hasOwnProperty, r = Array.isArray, a = {
4544
4548
  allowDots: !1,
4545
4549
  allowEmptyArrays: !1,
4546
4550
  allowPrototypes: !1,
@@ -4576,15 +4580,15 @@ function sl() {
4576
4580
  v[C].indexOf("utf8=") === 0 && (v[C] === o ? h = "utf-8" : v[C] === t && (h = "iso-8859-1"), S = C, C = v.length);
4577
4581
  for (C = 0; C < v.length; ++C)
4578
4582
  if (C !== S) {
4579
- var T = v[C], x = T.indexOf("]="), k = x === -1 ? T.indexOf("=") : x + 1, A, R;
4580
- k === -1 ? (A = j.decoder(T, a.decoder, h, "key"), R = j.strictNullHandling ? null : "") : (A = j.decoder(T.slice(0, k), a.decoder, h, "key"), R = e.maybeMap(
4583
+ var T = v[C], x = T.indexOf("]="), k = x === -1 ? T.indexOf("=") : x + 1, A, E;
4584
+ k === -1 ? (A = j.decoder(T, a.decoder, h, "key"), E = j.strictNullHandling ? null : "") : (A = j.decoder(T.slice(0, k), a.decoder, h, "key"), E = e.maybeMap(
4581
4585
  i(T.slice(k + 1), j),
4582
4586
  function(O) {
4583
4587
  return j.decoder(O, a.decoder, h, "value");
4584
4588
  }
4585
- )), R && j.interpretNumericEntities && h === "iso-8859-1" && (R = c(R)), T.indexOf("[]=") > -1 && (R = r(R) ? [R] : R);
4586
- var L = n.call(b, A);
4587
- L && j.duplicates === "combine" ? b[A] = e.combine(b[A], R) : (!L || j.duplicates === "last") && (b[A] = R);
4589
+ )), E && j.interpretNumericEntities && h === "iso-8859-1" && (E = c(E)), T.indexOf("[]=") > -1 && (E = r(E) ? [E] : E);
4590
+ var U = n.call(b, A);
4591
+ U && j.duplicates === "combine" ? b[A] = e.combine(b[A], E) : (!U || j.duplicates === "last") && (b[A] = E);
4588
4592
  }
4589
4593
  return b;
4590
4594
  }, u = function(m, y, j, b) {
@@ -4670,22 +4674,22 @@ function sl() {
4670
4674
  return j.allowSparse === !0 ? f : e.compact(f);
4671
4675
  }, br;
4672
4676
  }
4673
- var jr, ha;
4674
- function Ha() {
4675
- if (ha) return jr;
4676
- ha = 1;
4677
- var e = /* @__PURE__ */ il(), n = /* @__PURE__ */ sl(), r = /* @__PURE__ */ Br();
4677
+ var jr, da;
4678
+ function Fa() {
4679
+ if (da) return jr;
4680
+ da = 1;
4681
+ var e = /* @__PURE__ */ sl(), n = /* @__PURE__ */ ll(), r = /* @__PURE__ */ Mr();
4678
4682
  return jr = {
4679
4683
  formats: r,
4680
4684
  parse: n,
4681
4685
  stringify: e
4682
4686
  }, jr;
4683
4687
  }
4684
- var ma;
4685
- function ll() {
4686
- if (ma) return Te;
4687
- ma = 1;
4688
- var e = ks();
4688
+ var ha;
4689
+ function cl() {
4690
+ if (ha) return Te;
4691
+ ha = 1;
4692
+ var e = Ps();
4689
4693
  function n() {
4690
4694
  this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
4691
4695
  }
@@ -4733,7 +4737,7 @@ function ll() {
4733
4737
  "ftp:": !0,
4734
4738
  "gopher:": !0,
4735
4739
  "file:": !0
4736
- }, f = /* @__PURE__ */ Ha();
4740
+ }, f = /* @__PURE__ */ Fa();
4737
4741
  function g(h, T, x) {
4738
4742
  if (h && typeof h == "object" && h instanceof n)
4739
4743
  return h;
@@ -4743,45 +4747,45 @@ function ll() {
4743
4747
  n.prototype.parse = function(h, T, x) {
4744
4748
  if (typeof h != "string")
4745
4749
  throw new TypeError("Parameter 'url' must be a string, not " + typeof h);
4746
- var k = h.indexOf("?"), A = k !== -1 && k < h.indexOf("#") ? "?" : "#", R = h.split(A), L = /\\/g;
4747
- R[0] = R[0].replace(L, "/"), h = R.join(A);
4750
+ var k = h.indexOf("?"), A = k !== -1 && k < h.indexOf("#") ? "?" : "#", E = h.split(A), U = /\\/g;
4751
+ E[0] = E[0].replace(U, "/"), h = E.join(A);
4748
4752
  var O = h;
4749
4753
  if (O = O.trim(), !x && h.split("#").length === 1) {
4750
4754
  var B = c.exec(O);
4751
4755
  if (B)
4752
4756
  return this.path = O, this.href = O, this.pathname = B[1], B[2] ? (this.search = B[2], T ? this.query = f.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : T && (this.search = "", this.query = {}), this;
4753
4757
  }
4754
- var _ = r.exec(O);
4755
- if (_) {
4756
- _ = _[0];
4757
- var G = _.toLowerCase();
4758
- this.protocol = G, O = O.substr(_.length);
4758
+ var L = r.exec(O);
4759
+ if (L) {
4760
+ L = L[0];
4761
+ var G = L.toLowerCase();
4762
+ this.protocol = G, O = O.substr(L.length);
4759
4763
  }
4760
- if (x || _ || O.match(/^\/\/[^@/]+@[^@/]+/)) {
4764
+ if (x || L || O.match(/^\/\/[^@/]+@[^@/]+/)) {
4761
4765
  var se = O.substr(0, 2) === "//";
4762
- se && !(_ && j[_]) && (O = O.substr(2), this.slashes = !0);
4766
+ se && !(L && j[L]) && (O = O.substr(2), this.slashes = !0);
4763
4767
  }
4764
- if (!j[_] && (se || _ && !b[_])) {
4765
- for (var ee = -1, E = 0; E < u.length; E++) {
4766
- var ne = O.indexOf(u[E]);
4768
+ if (!j[L] && (se || L && !b[L])) {
4769
+ for (var ee = -1, R = 0; R < u.length; R++) {
4770
+ var ne = O.indexOf(u[R]);
4767
4771
  ne !== -1 && (ee === -1 || ne < ee) && (ee = ne);
4768
4772
  }
4769
4773
  var N, q;
4770
4774
  ee === -1 ? q = O.lastIndexOf("@") : q = O.lastIndexOf("@", ee), q !== -1 && (N = O.slice(0, q), O = O.slice(q + 1), this.auth = decodeURIComponent(N)), ee = -1;
4771
- for (var E = 0; E < s.length; E++) {
4772
- var ne = O.indexOf(s[E]);
4775
+ for (var R = 0; R < s.length; R++) {
4776
+ var ne = O.indexOf(s[R]);
4773
4777
  ne !== -1 && (ee === -1 || ne < ee) && (ee = ne);
4774
4778
  }
4775
4779
  ee === -1 && (ee = O.length), this.host = O.slice(0, ee), O = O.slice(ee), this.parseHost(), this.hostname = this.hostname || "";
4776
4780
  var F = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
4777
4781
  if (!F)
4778
- for (var P = this.hostname.split(/\./), E = 0, U = P.length; E < U; E++) {
4779
- var J = P[E];
4782
+ for (var P = this.hostname.split(/\./), R = 0, _ = P.length; R < _; R++) {
4783
+ var J = P[R];
4780
4784
  if (J && !J.match(d)) {
4781
4785
  for (var W = "", Y = 0, ae = J.length; Y < ae; Y++)
4782
4786
  J.charCodeAt(Y) > 127 ? W += "x" : W += J[Y];
4783
4787
  if (!W.match(d)) {
4784
- var D = P.slice(0, E), I = P.slice(E + 1), H = J.match(m);
4788
+ var D = P.slice(0, R), I = P.slice(R + 1), H = J.match(m);
4785
4789
  H && (D.push(H[1]), I.unshift(H[2])), I.length && (O = "/" + I.join(".") + O), this.hostname = D.join(".");
4786
4790
  break;
4787
4791
  }
@@ -4792,8 +4796,8 @@ function ll() {
4792
4796
  this.host = K + M, this.href += this.host, F && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), O[0] !== "/" && (O = "/" + O));
4793
4797
  }
4794
4798
  if (!y[G])
4795
- for (var E = 0, U = o.length; E < U; E++) {
4796
- var V = o[E];
4799
+ for (var R = 0, _ = o.length; R < _; R++) {
4800
+ var V = o[R];
4797
4801
  if (O.indexOf(V) !== -1) {
4798
4802
  var X = encodeURIComponent(V);
4799
4803
  X === V && (X = escape(V)), O = O.split(V).join(X);
@@ -4803,8 +4807,8 @@ function ll() {
4803
4807
  oe !== -1 && (this.hash = O.substr(oe), O = O.slice(0, oe));
4804
4808
  var he = O.indexOf("?");
4805
4809
  if (he !== -1 ? (this.search = O.substr(he), this.query = O.substr(he + 1), T && (this.query = f.parse(this.query)), O = O.slice(0, he)) : T && (this.search = "", this.query = {}), O && (this.pathname = O), b[G] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
4806
- var M = this.pathname || "", $e = this.search || "";
4807
- this.path = M + $e;
4810
+ var M = this.pathname || "", we = this.search || "";
4811
+ this.path = M + we;
4808
4812
  }
4809
4813
  return this.href = this.format(), this;
4810
4814
  };
@@ -4814,15 +4818,15 @@ function ll() {
4814
4818
  n.prototype.format = function() {
4815
4819
  var h = this.auth || "";
4816
4820
  h && (h = encodeURIComponent(h), h = h.replace(/%3A/i, ":"), h += "@");
4817
- var T = this.protocol || "", x = this.pathname || "", k = this.hash || "", A = !1, R = "";
4818
- this.host ? A = h + this.host : this.hostname && (A = h + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (A += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (R = f.stringify(this.query, {
4821
+ var T = this.protocol || "", x = this.pathname || "", k = this.hash || "", A = !1, E = "";
4822
+ this.host ? A = h + this.host : this.hostname && (A = h + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (A += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (E = f.stringify(this.query, {
4819
4823
  arrayFormat: "repeat",
4820
4824
  addQueryPrefix: !1
4821
4825
  }));
4822
- var L = this.search || R && "?" + R || "";
4823
- return T && T.substr(-1) !== ":" && (T += ":"), this.slashes || (!T || b[T]) && A !== !1 ? (A = "//" + (A || ""), x && x.charAt(0) !== "/" && (x = "/" + x)) : A || (A = ""), k && k.charAt(0) !== "#" && (k = "#" + k), L && L.charAt(0) !== "?" && (L = "?" + L), x = x.replace(/[?#]/g, function(O) {
4826
+ var U = this.search || E && "?" + E || "";
4827
+ return T && T.substr(-1) !== ":" && (T += ":"), this.slashes || (!T || b[T]) && A !== !1 ? (A = "//" + (A || ""), x && x.charAt(0) !== "/" && (x = "/" + x)) : A || (A = ""), k && k.charAt(0) !== "#" && (k = "#" + k), U && U.charAt(0) !== "?" && (U = "?" + U), x = x.replace(/[?#]/g, function(O) {
4824
4828
  return encodeURIComponent(O);
4825
- }), L = L.replace("#", "%23"), T + A + x + L + k;
4829
+ }), U = U.replace("#", "%23"), T + A + x + U + k;
4826
4830
  };
4827
4831
  function S(h, T) {
4828
4832
  return g(h, !1, !0).resolve(T);
@@ -4839,43 +4843,43 @@ function ll() {
4839
4843
  T.parse(h, !1, !0), h = T;
4840
4844
  }
4841
4845
  for (var x = new n(), k = Object.keys(this), A = 0; A < k.length; A++) {
4842
- var R = k[A];
4843
- x[R] = this[R];
4846
+ var E = k[A];
4847
+ x[E] = this[E];
4844
4848
  }
4845
4849
  if (x.hash = h.hash, h.href === "")
4846
4850
  return x.href = x.format(), x;
4847
4851
  if (h.slashes && !h.protocol) {
4848
- for (var L = Object.keys(h), O = 0; O < L.length; O++) {
4849
- var B = L[O];
4852
+ for (var U = Object.keys(h), O = 0; O < U.length; O++) {
4853
+ var B = U[O];
4850
4854
  B !== "protocol" && (x[B] = h[B]);
4851
4855
  }
4852
4856
  return b[x.protocol] && x.hostname && !x.pathname && (x.pathname = "/", x.path = x.pathname), x.href = x.format(), x;
4853
4857
  }
4854
4858
  if (h.protocol && h.protocol !== x.protocol) {
4855
4859
  if (!b[h.protocol]) {
4856
- for (var _ = Object.keys(h), G = 0; G < _.length; G++) {
4857
- var se = _[G];
4860
+ for (var L = Object.keys(h), G = 0; G < L.length; G++) {
4861
+ var se = L[G];
4858
4862
  x[se] = h[se];
4859
4863
  }
4860
4864
  return x.href = x.format(), x;
4861
4865
  }
4862
4866
  if (x.protocol = h.protocol, !h.host && !j[h.protocol]) {
4863
- for (var U = (h.pathname || "").split("/"); U.length && !(h.host = U.shift()); )
4867
+ for (var _ = (h.pathname || "").split("/"); _.length && !(h.host = _.shift()); )
4864
4868
  ;
4865
- h.host || (h.host = ""), h.hostname || (h.hostname = ""), U[0] !== "" && U.unshift(""), U.length < 2 && U.unshift(""), x.pathname = U.join("/");
4869
+ h.host || (h.host = ""), h.hostname || (h.hostname = ""), _[0] !== "" && _.unshift(""), _.length < 2 && _.unshift(""), x.pathname = _.join("/");
4866
4870
  } else
4867
4871
  x.pathname = h.pathname;
4868
4872
  if (x.search = h.search, x.query = h.query, x.host = h.host || "", x.auth = h.auth, x.hostname = h.hostname || h.host, x.port = h.port, x.pathname || x.search) {
4869
- var ee = x.pathname || "", E = x.search || "";
4870
- x.path = ee + E;
4873
+ var ee = x.pathname || "", R = x.search || "";
4874
+ x.path = ee + R;
4871
4875
  }
4872
4876
  return x.slashes = x.slashes || h.slashes, x.href = x.format(), x;
4873
4877
  }
4874
- var ne = x.pathname && x.pathname.charAt(0) === "/", N = h.host || h.pathname && h.pathname.charAt(0) === "/", q = N || ne || x.host && h.pathname, F = q, P = x.pathname && x.pathname.split("/") || [], U = h.pathname && h.pathname.split("/") || [], J = x.protocol && !b[x.protocol];
4875
- if (J && (x.hostname = "", x.port = null, x.host && (P[0] === "" ? P[0] = x.host : P.unshift(x.host)), x.host = "", h.protocol && (h.hostname = null, h.port = null, h.host && (U[0] === "" ? U[0] = h.host : U.unshift(h.host)), h.host = null), q = q && (U[0] === "" || P[0] === "")), N)
4876
- x.host = h.host || h.host === "" ? h.host : x.host, x.hostname = h.hostname || h.hostname === "" ? h.hostname : x.hostname, x.search = h.search, x.query = h.query, P = U;
4877
- else if (U.length)
4878
- P || (P = []), P.pop(), P = P.concat(U), x.search = h.search, x.query = h.query;
4878
+ var ne = x.pathname && x.pathname.charAt(0) === "/", N = h.host || h.pathname && h.pathname.charAt(0) === "/", q = N || ne || x.host && h.pathname, F = q, P = x.pathname && x.pathname.split("/") || [], _ = h.pathname && h.pathname.split("/") || [], J = x.protocol && !b[x.protocol];
4879
+ if (J && (x.hostname = "", x.port = null, x.host && (P[0] === "" ? P[0] = x.host : P.unshift(x.host)), x.host = "", h.protocol && (h.hostname = null, h.port = null, h.host && (_[0] === "" ? _[0] = h.host : _.unshift(h.host)), h.host = null), q = q && (_[0] === "" || P[0] === "")), N)
4880
+ x.host = h.host || h.host === "" ? h.host : x.host, x.hostname = h.hostname || h.hostname === "" ? h.hostname : x.hostname, x.search = h.search, x.query = h.query, P = _;
4881
+ else if (_.length)
4882
+ P || (P = []), P.pop(), P = P.concat(_), x.search = h.search, x.query = h.query;
4879
4883
  else if (h.search != null) {
4880
4884
  if (J) {
4881
4885
  x.host = P.shift(), x.hostname = x.host;
@@ -4904,12 +4908,12 @@ function ll() {
4904
4908
  T && (T = T[0], T !== ":" && (this.port = T.substr(1)), h = h.substr(0, h.length - T.length)), h && (this.hostname = h);
4905
4909
  }, Te.parse = g, Te.resolve = S, Te.resolveObject = C, Te.format = v, Te.Url = n, Te;
4906
4910
  }
4907
- var $r = ll(), wr = /* @__PURE__ */ Ha(), cl = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), ul = class {
4911
+ var wr = cl(), $r = /* @__PURE__ */ Fa(), ul = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), pl = class {
4908
4912
  constructor(e, n = {}) {
4909
4913
  this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
4910
4914
  harIsAlreadyEncoded: !1,
4911
4915
  ...n
4912
- }, this.requests = [], cl(e) ? this.entries = e.log.entries : this.entries = [
4916
+ }, this.requests = [], ul(e) ? this.entries = e.log.entries : this.entries = [
4913
4917
  {
4914
4918
  request: e
4915
4919
  }
@@ -4942,7 +4946,7 @@ var $r = ll(), wr = /* @__PURE__ */ Ha(), cl = (e) => typeof e == "object" && "l
4942
4946
  cookiesObj: {},
4943
4947
  allHeaders: {}
4944
4948
  };
4945
- if (r.queryString && r.queryString.length && (r.queryObj = r.queryString.reduce(on, {})), r.headers && r.headers.length) {
4949
+ if (r.queryString && r.queryString.length && (r.queryObj = r.queryString.reduce(an, {})), r.headers && r.headers.length) {
4946
4950
  const p = /^HTTP\/2/;
4947
4951
  r.headersObj = r.headers.reduce((d, { name: m, value: y }) => {
4948
4952
  const j = p.exec(r.httpVersion) ? m.toLocaleLowerCase() : m;
@@ -4980,7 +4984,7 @@ var $r = ll(), wr = /* @__PURE__ */ Ha(), cl = (e) => typeof e == "object" && "l
4980
4984
  }
4981
4985
  break;
4982
4986
  case "application/x-www-form-urlencoded":
4983
- r.postData.params ? (r.postData.paramsObj = r.postData.params.reduce(on, {}), r.postData.text = wr.stringify(r.postData.paramsObj)) : r.postData.text = "";
4987
+ r.postData.params ? (r.postData.paramsObj = r.postData.params.reduce(an, {}), r.postData.text = $r.stringify(r.postData.paramsObj)) : r.postData.text = "";
4984
4988
  break;
4985
4989
  case "text/json":
4986
4990
  case "text/x-json":
@@ -4997,16 +5001,16 @@ var $r = ll(), wr = /* @__PURE__ */ Ha(), cl = (e) => typeof e == "object" && "l
4997
5001
  const c = {
4998
5002
  ...r.allHeaders,
4999
5003
  ...r.headersObj
5000
- }, i = $r.parse(r.url, !0, !0);
5004
+ }, i = wr.parse(r.url, !0, !0);
5001
5005
  r.queryObj = {
5002
5006
  ...r.queryObj,
5003
5007
  ...i.query
5004
5008
  };
5005
5009
  let t;
5006
- n.harIsAlreadyEncoded ? t = wr.stringify(r.queryObj, {
5010
+ n.harIsAlreadyEncoded ? t = $r.stringify(r.queryObj, {
5007
5011
  encode: !1,
5008
5012
  indices: !1
5009
- }) : t = wr.stringify(r.queryObj, {
5013
+ }) : t = $r.stringify(r.queryObj, {
5010
5014
  indices: !1
5011
5015
  });
5012
5016
  const o = {
@@ -5014,11 +5018,11 @@ var $r = ll(), wr = /* @__PURE__ */ Ha(), cl = (e) => typeof e == "object" && "l
5014
5018
  query: r.queryObj,
5015
5019
  search: t,
5016
5020
  path: t ? `${i.pathname}?${t}` : i.pathname
5017
- }, s = $r.format({
5021
+ }, s = wr.format({
5018
5022
  ...i,
5019
5023
  query: null,
5020
5024
  search: null
5021
- }), u = $r.format({
5025
+ }), u = wr.format({
5022
5026
  ...i,
5023
5027
  ...o
5024
5028
  });
@@ -5032,14 +5036,14 @@ var $r = ll(), wr = /* @__PURE__ */ Ha(), cl = (e) => typeof e == "object" && "l
5032
5036
  }
5033
5037
  convert(e, n, r) {
5034
5038
  this.initCalled || this.init(), !r && n && (r = n);
5035
- const a = Ps[e];
5039
+ const a = Ts[e];
5036
5040
  if (!a)
5037
5041
  return !1;
5038
5042
  const { convert: c } = a.clientsById[n || a.info.default];
5039
5043
  return this.requests.map((t) => c(t, r));
5040
5044
  }
5041
5045
  };
5042
- const pl = (e) => {
5046
+ const fl = (e) => {
5043
5047
  const n = (r) => typeof r == "string" ? r : JSON.stringify(r);
5044
5048
  try {
5045
5049
  const r = e && JSON.parse(e);
@@ -5047,16 +5051,16 @@ const pl = (e) => {
5047
5051
  } catch {
5048
5052
  return [];
5049
5053
  }
5050
- }, fl = ({
5054
+ }, dl = ({
5051
5055
  operation: e,
5052
5056
  selectedServer: n,
5053
5057
  exampleBody: r
5054
5058
  }) => {
5055
5059
  const c = r.mimeType === "multipart/form-data" || r.mimeType === "application/x-www-form-urlencoded" ? {
5056
5060
  mimeType: r.mimeType,
5057
- params: pl(r.text)
5061
+ params: fl(r.text)
5058
5062
  } : r;
5059
- return new ul({
5063
+ return new pl({
5060
5064
  method: e.method.toUpperCase(),
5061
5065
  url: n + e.path.replaceAll("{", ":").replaceAll("}", ""),
5062
5066
  postData: c,
@@ -5076,7 +5080,7 @@ const pl = (e) => {
5076
5080
  headersSize: 0,
5077
5081
  bodySize: 0
5078
5082
  });
5079
- }, dl = (e, n) => {
5083
+ }, hl = (e, n) => {
5080
5084
  let r;
5081
5085
  switch (n) {
5082
5086
  case "shell":
@@ -5118,7 +5122,7 @@ const pl = (e) => {
5118
5122
  }
5119
5123
  return r ? r[0] : "";
5120
5124
  }, Pe = (e, n) => {
5121
- if (!e || xo(e))
5125
+ if (!e || go(e))
5122
5126
  return null;
5123
5127
  if (e.example !== void 0)
5124
5128
  return e.example;
@@ -5187,7 +5191,7 @@ const pl = (e) => {
5187
5191
  purple: "text-purple-600",
5188
5192
  indigo: "text-indigo-600",
5189
5193
  gray: "text-gray-600"
5190
- }, hl = {
5194
+ }, ml = {
5191
5195
  get: xe.green,
5192
5196
  post: xe.blue,
5193
5197
  put: xe.yellow,
@@ -5196,8 +5200,8 @@ const pl = (e) => {
5196
5200
  options: xe.indigo,
5197
5201
  head: xe.gray,
5198
5202
  trace: xe.gray
5199
- }, Ma = (e) => hl[e.toLocaleLowerCase()] ?? xe.gray;
5200
- Ve(
5203
+ }, Ha = (e) => ml[e.toLocaleLowerCase()] ?? xe.gray;
5204
+ Je(
5201
5205
  /* GraphQL */
5202
5206
  `
5203
5207
  query getServerQuery($input: JSON!, $type: SchemaType!) {
@@ -5210,7 +5214,7 @@ Ve(
5210
5214
  }
5211
5215
  `
5212
5216
  );
5213
- const ml = [
5217
+ const yl = [
5214
5218
  { value: "shell", label: "cURL" },
5215
5219
  { value: "js", label: "JavaScript" },
5216
5220
  { value: "python", label: "Python" },
@@ -5222,13 +5226,13 @@ const ml = [
5222
5226
  { value: "php", label: "PHP" },
5223
5227
  { value: "ruby", label: "Ruby" },
5224
5228
  { value: "swift", label: "Swift" }
5225
- ], yl = ({
5229
+ ], gl = ({
5226
5230
  operation: e,
5227
5231
  selectedResponse: n,
5228
5232
  globalSelectedServer: r,
5229
5233
  shouldLazyHighlight: a
5230
5234
  }) => {
5231
- const { options: c } = ct(), i = uo(), t = zo(), o = Ma(e.method), [s, u] = Xa(), [, p] = Pa(), d = c?.supportedLanguages ?? ml, m = s.get("lang") ?? c?.examplesLanguage ?? "shell", y = d.find((O) => O.value === m)?.value ?? d.at(0)?.value ?? "shell", j = e.requestBody?.content, b = j && c?.transformExamples ? c.transformExamples({
5235
+ const { options: c } = ct(), i = Oo(), t = co(), o = Ha(e.method), [s, u] = Ya(), [, p] = Ta(), d = c?.supportedLanguages ?? yl, m = s.get("lang") ?? c?.examplesLanguage ?? "shell", y = d.find((O) => O.value === m)?.value ?? d.at(0)?.value ?? "shell", j = e.requestBody?.content, b = j && c?.transformExamples ? c.transformExamples({
5232
5236
  auth: i,
5233
5237
  type: "request",
5234
5238
  operation: e,
@@ -5242,7 +5246,7 @@ const ml = [
5242
5246
  ), S = v?.examples?.at(
5243
5247
  f.exampleIndex
5244
5248
  ), C = S ? S?.value ?? S : v?.schema ? Pe(v?.schema) : void 0, h = /* @__PURE__ */ l.jsx(
5245
- ro,
5249
+ to,
5246
5250
  {
5247
5251
  path: e.path,
5248
5252
  renderParam: ({ name: O }) => /* @__PURE__ */ l.jsx(
@@ -5256,7 +5260,7 @@ const ml = [
5256
5260
  }
5257
5261
  )
5258
5262
  }
5259
- ), T = r || e.servers.at(0)?.url || "", x = qo(() => {
5263
+ ), T = r || e.servers.at(0)?.url || "", x = So(() => {
5260
5264
  const O = c?.generateCodeSnippet?.({
5261
5265
  selectedLang: y,
5262
5266
  selectedServer: T,
@@ -5266,7 +5270,7 @@ const ml = [
5266
5270
  auth: i
5267
5271
  });
5268
5272
  if (O) return O;
5269
- const B = fl({
5273
+ const B = dl({
5270
5274
  operation: e,
5271
5275
  selectedServer: T,
5272
5276
  exampleBody: C ? {
@@ -5274,7 +5278,7 @@ const ml = [
5274
5278
  text: JSON.stringify(C, null, 2)
5275
5279
  } : { mimeType: v?.mediaType ?? "application/json" }
5276
5280
  });
5277
- return dl(B, y);
5281
+ return hl(B, y);
5278
5282
  }, [
5279
5283
  C,
5280
5284
  e,
@@ -5284,7 +5288,7 @@ const ml = [
5284
5288
  c,
5285
5289
  i,
5286
5290
  t
5287
- ]), [k, A] = ii({ rootMargin: "200px 0px 200px 0px" }), R = A && (e.extensions["x-explorer-enabled"] === !0 || e.extensions["x-zudoku-playground-enabled"] === !0 || e.extensions["x-explorer-enabled"] === void 0 && e.extensions["x-zudoku-playground-enabled"] === void 0 && !c?.disablePlayground), L = e.responses.some(
5291
+ ]), [k, A] = ai({ rootMargin: "200px 0px 200px 0px" }), E = A && (e.extensions["x-explorer-enabled"] === !0 || e.extensions["x-zudoku-playground-enabled"] === !0 || e.extensions["x-explorer-enabled"] === void 0 && e.extensions["x-zudoku-playground-enabled"] === void 0 && !c?.disablePlayground), U = e.responses.some(
5288
5292
  (O) => O.content?.some((B) => (B.examples?.length ?? 0) > 0)
5289
5293
  );
5290
5294
  return /* @__PURE__ */ l.jsxs(
@@ -5298,7 +5302,7 @@ const ml = [
5298
5302
  /* @__PURE__ */ l.jsx(pt, { className: "py-1.5", children: /* @__PURE__ */ l.jsxs("div", { className: "flex items-center flex-wrap gap-2 justify-between w-full", children: [
5299
5303
  /* @__PURE__ */ l.jsxs("span", { className: "font-mono wrap-break-word leading-6 space-x-1", children: [
5300
5304
  /* @__PURE__ */ l.jsx(
5301
- Me,
5305
+ Be,
5302
5306
  {
5303
5307
  variant: "outline",
5304
5308
  className: fe(
@@ -5312,7 +5316,7 @@ const ml = [
5312
5316
  ] }),
5313
5317
  /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-1", children: [
5314
5318
  /* @__PURE__ */ l.jsx(
5315
- Be,
5319
+ ze,
5316
5320
  {
5317
5321
  className: "py-0.5 h-fit max-w-32 truncate bg-background",
5318
5322
  value: y,
@@ -5322,7 +5326,7 @@ const ml = [
5322
5326
  });
5323
5327
  },
5324
5328
  children: d.map((O) => /* @__PURE__ */ l.jsx(
5325
- ze,
5329
+ Ge,
5326
5330
  {
5327
5331
  value: O.value,
5328
5332
  children: O.label
@@ -5331,8 +5335,8 @@ const ml = [
5331
5335
  ))
5332
5336
  }
5333
5337
  ),
5334
- R && /* @__PURE__ */ l.jsx(
5335
- ui,
5338
+ E && /* @__PURE__ */ l.jsx(
5339
+ li,
5336
5340
  {
5337
5341
  servers: e.servers.map((O) => O.url),
5338
5342
  operation: e,
@@ -5341,8 +5345,8 @@ const ml = [
5341
5345
  )
5342
5346
  ] })
5343
5347
  ] }) }),
5344
- /* @__PURE__ */ l.jsx(_r, { children: a && !A ? /* @__PURE__ */ l.jsx(Lr, { code: x ?? "" }) : /* @__PURE__ */ l.jsx(
5345
- $a,
5348
+ /* @__PURE__ */ l.jsx(Ur, { children: a && !A ? /* @__PURE__ */ l.jsx(_r, { code: x ?? "" }) : /* @__PURE__ */ l.jsx(
5349
+ ja,
5346
5350
  {
5347
5351
  embedded: !0,
5348
5352
  language: y,
@@ -5352,7 +5356,7 @@ const ml = [
5352
5356
  ) })
5353
5357
  ] }),
5354
5358
  b && S ? /* @__PURE__ */ l.jsx(
5355
- di,
5359
+ pi,
5356
5360
  {
5357
5361
  content: b,
5358
5362
  onExampleChange: (O) => {
@@ -5364,15 +5368,15 @@ const ml = [
5364
5368
  shouldLazyHighlight: a
5365
5369
  }
5366
5370
  ) : b && C ? /* @__PURE__ */ l.jsx(
5367
- ci,
5371
+ si,
5368
5372
  {
5369
5373
  isOnScreen: A,
5370
5374
  shouldLazyHighlight: a,
5371
5375
  code: JSON.stringify(C, null, 2)
5372
5376
  }
5373
5377
  ) : null,
5374
- L ? /* @__PURE__ */ l.jsx(
5375
- an,
5378
+ U ? /* @__PURE__ */ l.jsx(
5379
+ nn,
5376
5380
  {
5377
5381
  isOnScreen: A,
5378
5382
  shouldLazyHighlight: a,
@@ -5389,7 +5393,7 @@ const ml = [
5389
5393
  }))
5390
5394
  }
5391
5395
  ) : /* @__PURE__ */ l.jsx(
5392
- an,
5396
+ nn,
5393
5397
  {
5394
5398
  isGenerated: !0,
5395
5399
  isOnScreen: A,
@@ -5407,17 +5411,17 @@ const ml = [
5407
5411
  ]
5408
5412
  }
5409
5413
  );
5410
- }, gl = ["path", "query", "header", "cookie"], vl = ({
5414
+ }, vl = ["path", "query", "header", "cookie"], xl = ({
5411
5415
  operationFragment: e,
5412
5416
  globalSelectedServer: n,
5413
5417
  shouldLazyHighlight: r
5414
5418
  }) => {
5415
- const a = Vo(xl, e), c = bo(
5419
+ const a = Go(bl, e), c = vo(
5416
5420
  a.parameters ?? [],
5417
5421
  (d) => d.in
5418
5422
  ), { options: i } = ct(), t = n || a.servers.at(0)?.url, o = a.responses.at(0), [s, u] = ge(o?.statusCode), p = a.extensions?.["x-mcp-server"] !== void 0;
5419
5423
  return /* @__PURE__ */ l.jsxs("div", { children: [
5420
- a.deprecated && /* @__PURE__ */ l.jsx(Me, { variant: "muted", className: "text-xs mb-4", children: "deprecated" }),
5424
+ a.deprecated && /* @__PURE__ */ l.jsx(Be, { variant: "muted", className: "text-xs mb-4", children: "deprecated" }),
5421
5425
  /* @__PURE__ */ l.jsxs(
5422
5426
  "div",
5423
5427
  {
@@ -5427,7 +5431,7 @@ const ml = [
5427
5431
  ),
5428
5432
  children: [
5429
5433
  /* @__PURE__ */ l.jsx(
5430
- Fe,
5434
+ Me,
5431
5435
  {
5432
5436
  level: 2,
5433
5437
  id: a.slug,
@@ -5437,14 +5441,14 @@ const ml = [
5437
5441
  }
5438
5442
  ),
5439
5443
  !p && /* @__PURE__ */ l.jsxs("div", { className: "text-sm flex gap-2 font-mono col-span-full", children: [
5440
- /* @__PURE__ */ l.jsx("span", { className: Ma(a.method), children: a.method.toUpperCase() }),
5441
- /* @__PURE__ */ l.jsxs(mo, { className: "max-w-full truncate flex cursor-pointer", children: [
5444
+ /* @__PURE__ */ l.jsx("span", { className: Ha(a.method), children: a.method.toUpperCase() }),
5445
+ /* @__PURE__ */ l.jsxs(fo, { className: "max-w-full truncate flex cursor-pointer", children: [
5442
5446
  t && /* @__PURE__ */ l.jsx("div", { className: "text-neutral-400 dark:text-neutral-500 truncate", children: t.replace(/\/$/, "") }),
5443
5447
  /* @__PURE__ */ l.jsx("div", { className: "text-neutral-900 dark:text-neutral-200", children: a.path })
5444
5448
  ] })
5445
5449
  ] }),
5446
5450
  p ? /* @__PURE__ */ l.jsx("div", { className: "col-span-full", children: /* @__PURE__ */ l.jsx(
5447
- ri,
5451
+ ei,
5448
5452
  {
5449
5453
  serverUrl: t,
5450
5454
  summary: a.summary ?? void 0,
@@ -5459,15 +5463,15 @@ const ml = [
5459
5463
  ),
5460
5464
  children: [
5461
5465
  a.description && /* @__PURE__ */ l.jsx(
5462
- He,
5466
+ Ue,
5463
5467
  {
5464
5468
  className: "max-w-full prose-img:max-w-prose",
5465
5469
  content: a.description
5466
5470
  }
5467
5471
  ),
5468
- a.parameters && a.parameters.length > 0 && gl.flatMap(
5472
+ a.parameters && a.parameters.length > 0 && vl.flatMap(
5469
5473
  (d) => c[d]?.length ? /* @__PURE__ */ l.jsx(
5470
- oi,
5474
+ ni,
5471
5475
  {
5472
5476
  summary: a.summary ?? void 0,
5473
5477
  id: a.slug,
@@ -5477,12 +5481,12 @@ const ml = [
5477
5481
  d
5478
5482
  ) : []
5479
5483
  ),
5480
- St(a.requestBody?.content?.at(0)?.schema, () => /* @__PURE__ */ l.jsx(Zr, { className: "my-4" })),
5484
+ St(a.requestBody?.content?.at(0)?.schema, () => /* @__PURE__ */ l.jsx(Yr, { className: "my-4" })),
5481
5485
  St(
5482
5486
  a.requestBody?.content?.at(0)?.schema,
5483
5487
  (d) => /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col gap-4", children: [
5484
5488
  /* @__PURE__ */ l.jsxs(
5485
- Fe,
5489
+ Me,
5486
5490
  {
5487
5491
  level: 3,
5488
5492
  className: "capitalize flex items-center gap-2",
@@ -5495,16 +5499,16 @@ const ml = [
5495
5499
  ] }),
5496
5500
  "Request Body",
5497
5501
  " ",
5498
- a.requestBody?.required === !1 ? /* @__PURE__ */ l.jsx(Me, { variant: "muted", children: "optional" }) : ""
5502
+ a.requestBody?.required === !1 ? /* @__PURE__ */ l.jsx(Be, { variant: "muted", children: "optional" }) : ""
5499
5503
  ]
5500
5504
  }
5501
5505
  ),
5502
5506
  /* @__PURE__ */ l.jsx(Ir, { schema: d })
5503
5507
  ] })
5504
5508
  ),
5505
- /* @__PURE__ */ l.jsx(Zr, { className: "my-4" }),
5509
+ /* @__PURE__ */ l.jsx(Yr, { className: "my-4" }),
5506
5510
  a.responses.length > 0 && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
5507
- /* @__PURE__ */ l.jsxs(Fe, { level: 3, id: `${a.slug}/responses`, children: [
5511
+ /* @__PURE__ */ l.jsxs(Me, { level: 3, id: `${a.slug}/responses`, children: [
5508
5512
  a.summary && /* @__PURE__ */ l.jsxs(Tr, { children: [
5509
5513
  a.summary,
5510
5514
  " ›",
@@ -5513,7 +5517,7 @@ const ml = [
5513
5517
  "Responses"
5514
5518
  ] }),
5515
5519
  /* @__PURE__ */ l.jsx(
5516
- ti,
5520
+ Zo,
5517
5521
  {
5518
5522
  responses: a.responses,
5519
5523
  selectedResponse: s,
@@ -5525,7 +5529,7 @@ const ml = [
5525
5529
  }
5526
5530
  ),
5527
5531
  St(!i?.disableSidecar && !p, () => /* @__PURE__ */ l.jsx(
5528
- yl,
5532
+ gl,
5529
5533
  {
5530
5534
  selectedResponse: s,
5531
5535
  operation: a,
@@ -5539,10 +5543,10 @@ const ml = [
5539
5543
  )
5540
5544
  ] });
5541
5545
  };
5542
- function ya(e, n = 160) {
5546
+ function ma(e, n = 160) {
5543
5547
  return e ? e.replace(/\[([^\]]+)\]\([^)]+\)/g, "$1").replace(/!\[.*?\]\(.*?\)/g, "").replace(/[_*`~]/g, "").replace(/^(?:>|\s*#+|-{3,}|\*{3,})/gm, "").replace(/[|>{}[\]]/g, "").replace(/\s+/g, " ").trim().substring(0, n).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;") : "";
5544
5548
  }
5545
- const xl = Ve(
5549
+ const bl = Je(
5546
5550
  /* GraphQL */
5547
5551
  `
5548
5552
  fragment OperationsFragment on OperationItem {
@@ -5614,7 +5618,7 @@ const xl = Ve(
5614
5618
  }
5615
5619
  }
5616
5620
  `
5617
- ), bl = Ve(
5621
+ ), jl = Je(
5618
5622
  /* GraphQL */
5619
5623
  `
5620
5624
  query SchemaWarmup($input: JSON!, $type: SchemaType!) {
@@ -5623,7 +5627,7 @@ const xl = Ve(
5623
5627
  }
5624
5628
  }
5625
5629
  `
5626
- ), jl = Ve(
5630
+ ), wl = Je(
5627
5631
  /* GraphQL */
5628
5632
  `
5629
5633
  query OperationsForTag(
@@ -5663,39 +5667,39 @@ const xl = Ve(
5663
5667
  }
5664
5668
  }
5665
5669
  `
5666
- ), $l = 30, tc = ({
5670
+ ), $l = 30, rc = ({
5667
5671
  tag: e,
5668
5672
  untagged: n
5669
5673
  }) => {
5670
- const { input: r, type: a, versions: c, version: i, options: t } = ct(), { tag: o } = Za(), s = Sr(jl, {
5674
+ const { input: r, type: a, versions: c, version: i, options: t } = ct(), { tag: o } = Xa(), s = Sr(wl, {
5671
5675
  input: r,
5672
5676
  type: a,
5673
5677
  tag: e ?? o,
5674
5678
  untagged: n
5675
- }), u = ga(s), {
5679
+ }), u = ya(s), {
5676
5680
  data: { schema: p }
5677
- } = u, { selectedServer: d } = ja(
5681
+ } = u, { selectedServer: d } = ba(
5678
5682
  p.servers
5679
- ), m = p.title, y = p.summary, j = p.description, b = eo(), f = Sr(bl, { input: r, type: a });
5680
- if (Ja({
5683
+ ), m = p.title, y = p.summary, j = p.description, b = Za(), f = Sr(jl, { input: r, type: a });
5684
+ if (Va({
5681
5685
  ...f,
5682
5686
  enabled: typeof window < "u",
5683
5687
  notifyOnChangeProps: []
5684
- }), po(), !p.tag)
5688
+ }), uo(), !p.tag)
5685
5689
  return /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col h-full items-center justify-center text-center", children: [
5686
5690
  /* @__PURE__ */ l.jsx("div", { className: "text-muted-foreground font-medium", children: "No operations found" }),
5687
5691
  /* @__PURE__ */ l.jsx("div", { className: "mt-2 text-sm text-muted-foreground", children: "This API doesn't have any operations defined yet." })
5688
5692
  ] });
5689
- const { operations: g, next: v, prev: S, description: C } = p.tag, h = g.length > $l, T = C ? ya(C) : y || (j ? ya(j) : void 0), x = Object.entries(c).length > 1, k = t?.showVersionSelect === "always" || x && t?.showVersionSelect !== "hide", A = {
5693
+ const { operations: g, next: v, prev: S, description: C } = p.tag, h = g.length > $l, T = C ? ma(C) : y || (j ? ma(j) : void 0), x = Object.entries(c).length > 1, k = t?.showVersionSelect === "always" || x && t?.showVersionSelect !== "hide", A = {
5690
5694
  prev: S ? {
5691
5695
  to: `../${S.slug}`,
5692
5696
  label: S.extensions?.["x-displayName"] ?? S.name
5693
5697
  } : void 0,
5694
5698
  next: v ? {
5695
- to: `../${v.slug ?? no}`,
5699
+ to: `../${v.slug ?? ro}`,
5696
5700
  label: v.extensions?.["x-displayName"] ?? v.name ?? "Other endpoints"
5697
5701
  } : void 0
5698
- }, R = p.tag.extensions?.["x-displayName"] ?? p.tag.name, L = [R, m].filter(Boolean).join(" - "), O = i != null ? c[i] : void 0, B = typeof r == "string" ? a === "url" ? r : O?.downloadUrl : void 0;
5702
+ }, E = p.tag.extensions?.["x-displayName"] ?? p.tag.name, U = [E, m].filter(Boolean).join(" - "), O = i != null ? c[i] : void 0, B = typeof r == "string" ? a === "url" ? r : O?.downloadUrl : void 0;
5699
5703
  return /* @__PURE__ */ l.jsxs(
5700
5704
  "div",
5701
5705
  {
@@ -5704,29 +5708,29 @@ const xl = Ve(
5704
5708
  "data-pagefind-meta": "section:openapi",
5705
5709
  children: [
5706
5710
  /* @__PURE__ */ l.jsx(Tr, { name: "category", children: m }),
5707
- /* @__PURE__ */ l.jsxs(Da, { children: [
5708
- L && /* @__PURE__ */ l.jsx("title", { children: L }),
5711
+ /* @__PURE__ */ l.jsxs(Ja, { children: [
5712
+ U && /* @__PURE__ */ l.jsx("title", { children: U }),
5709
5713
  T && /* @__PURE__ */ l.jsx("meta", { name: "description", content: T })
5710
5714
  ] }),
5711
5715
  /* @__PURE__ */ l.jsxs("div", { className: "mb-8", children: [
5712
5716
  /* @__PURE__ */ l.jsxs(
5713
- Rr,
5717
+ Er,
5714
5718
  {
5715
5719
  className: "w-full",
5716
5720
  defaultOpen: t?.expandApiInformation,
5717
5721
  children: [
5718
5722
  /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col gap-4 sm:flex-row justify-around items-start sm:items-end", children: [
5719
5723
  /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col flex-1 gap-2", children: [
5720
- /* @__PURE__ */ l.jsx(co, { children: m }),
5724
+ /* @__PURE__ */ l.jsx(lo, { children: m }),
5721
5725
  /* @__PURE__ */ l.jsxs(
5722
- Fe,
5726
+ Me,
5723
5727
  {
5724
5728
  level: 1,
5725
5729
  id: "description",
5726
5730
  registerNavigationAnchor: !0,
5727
5731
  className: "mb-0",
5728
5732
  children: [
5729
- R,
5733
+ E,
5730
5734
  k && /* @__PURE__ */ l.jsxs("span", { className: "text-xl text-muted-foreground ms-1.5", children: [
5731
5735
  " ",
5732
5736
  "(",
@@ -5736,28 +5740,28 @@ const xl = Ve(
5736
5740
  ]
5737
5741
  }
5738
5742
  ),
5739
- /* @__PURE__ */ l.jsx(Zo, {})
5743
+ /* @__PURE__ */ l.jsx(Yo, {})
5740
5744
  ] }),
5741
5745
  /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col gap-4 sm:items-end", children: [
5742
5746
  /* @__PURE__ */ l.jsxs("div", { className: "flex gap-2 items-center", children: [
5743
5747
  k && /* @__PURE__ */ l.jsxs(
5744
- ao,
5748
+ no,
5745
5749
  {
5746
- onValueChange: (_) => (
5750
+ onValueChange: (L) => (
5747
5751
  // biome-ignore lint/style/noNonNullAssertion: is guaranteed to be defined
5748
- b(c[_].path)
5752
+ b(c[L].path)
5749
5753
  ),
5750
5754
  defaultValue: i,
5751
5755
  disabled: !x,
5752
5756
  children: [
5753
- /* @__PURE__ */ l.jsx(oo, { className: "w-[180px]", size: "sm", children: /* @__PURE__ */ l.jsx(io, { placeholder: "Select version" }) }),
5754
- /* @__PURE__ */ l.jsx(so, { children: Object.entries(c).map(([_, { label: G }]) => /* @__PURE__ */ l.jsx(lo, { value: _, children: G }, _)) })
5757
+ /* @__PURE__ */ l.jsx(ao, { className: "w-[180px]", size: "sm", children: /* @__PURE__ */ l.jsx(oo, { placeholder: "Select version" }) }),
5758
+ /* @__PURE__ */ l.jsx(io, { children: Object.entries(c).map(([L, { label: G }]) => /* @__PURE__ */ l.jsx(so, { value: L, children: G }, L)) })
5755
5759
  ]
5756
5760
  }
5757
5761
  ),
5758
- t?.schemaDownload?.enabled && B && /* @__PURE__ */ l.jsx(Qo, { downloadUrl: B })
5762
+ t?.schemaDownload?.enabled && B && /* @__PURE__ */ l.jsx(Jo, { downloadUrl: B })
5759
5763
  ] }),
5760
- p.description && /* @__PURE__ */ l.jsxs(Er, { className: "flex items-center gap-1 text-sm font-medium text-muted-foreground group", children: [
5764
+ p.description && /* @__PURE__ */ l.jsxs(Rr, { className: "flex items-center gap-1 text-sm font-medium text-muted-foreground group", children: [
5761
5765
  /* @__PURE__ */ l.jsx("span", { children: "API information" }),
5762
5766
  /* @__PURE__ */ l.jsx(
5763
5767
  lt,
@@ -5777,7 +5781,7 @@ const xl = Ve(
5777
5781
  ] })
5778
5782
  ] }),
5779
5783
  p.description && /* @__PURE__ */ l.jsx(Ar, { className: "CollapsibleContent", children: /* @__PURE__ */ l.jsx("div", { className: "mt-4 max-w-full border rounded-sm bg-muted/25", children: /* @__PURE__ */ l.jsx(
5780
- He,
5784
+ Ue,
5781
5785
  {
5782
5786
  className: "max-w-full prose-img:max-w-prose border-border p-3 lg:p-5",
5783
5787
  content: p.description
@@ -5787,7 +5791,7 @@ const xl = Ve(
5787
5791
  }
5788
5792
  ),
5789
5793
  C && /* @__PURE__ */ l.jsx(
5790
- He,
5794
+ Ue,
5791
5795
  {
5792
5796
  className: "my-4 max-w-full prose-img:max-w-prose",
5793
5797
  content: C
@@ -5796,25 +5800,25 @@ const xl = Ve(
5796
5800
  ] }),
5797
5801
  /* @__PURE__ */ l.jsx("hr", {}),
5798
5802
  /* @__PURE__ */ l.jsxs("div", { className: "px-6 mt-6 -mx-6 [content-visibility:auto]", children: [
5799
- g.map((_) => /* @__PURE__ */ l.jsxs("div", { children: [
5803
+ g.map((L) => /* @__PURE__ */ l.jsxs("div", { children: [
5800
5804
  /* @__PURE__ */ l.jsx(
5801
- vl,
5805
+ xl,
5802
5806
  {
5803
- operationFragment: _,
5807
+ operationFragment: L,
5804
5808
  globalSelectedServer: d,
5805
5809
  shouldLazyHighlight: h
5806
5810
  }
5807
5811
  ),
5808
5812
  /* @__PURE__ */ l.jsx("hr", { className: "my-10" })
5809
- ] }, _.slug)),
5810
- /* @__PURE__ */ l.jsx(wo, { className: "mb-4", ...A })
5813
+ ] }, L.slug)),
5814
+ /* @__PURE__ */ l.jsx(jo, { className: "mb-4", ...A })
5811
5815
  ] })
5812
5816
  ]
5813
5817
  }
5814
5818
  );
5815
5819
  };
5816
5820
  export {
5817
- tc as OperationList,
5818
- xl as OperationsFragment
5821
+ rc as OperationList,
5822
+ bl as OperationsFragment
5819
5823
  };
5820
- //# sourceMappingURL=OperationList-DR0APPhk.js.map
5824
+ //# sourceMappingURL=OperationList-Dcm9TZG7.js.map