zudoku 0.50.0 → 0.52.0
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.
- package/dist/config/validators/InputNavigationSchema.d.ts +152 -0
- package/dist/config/validators/icon-types.d.ts +1 -1
- package/dist/config/validators/icon-types.js +38 -0
- package/dist/config/validators/icon-types.js.map +1 -1
- package/dist/config/validators/validate.d.ts +10 -0
- package/dist/config/validators/validate.js +7 -0
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/flat-config.d.ts +6 -1
- package/dist/lib/components/Autocomplete.js +1 -1
- package/dist/lib/components/Autocomplete.js.map +1 -1
- package/dist/lib/components/ErrorPage.js +2 -2
- package/dist/lib/components/ErrorPage.js.map +1 -1
- package/dist/lib/components/Markdown.d.ts +0 -1
- package/dist/lib/components/Markdown.js +2 -3
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/NotFoundPage.js +2 -2
- package/dist/lib/components/NotFoundPage.js.map +1 -1
- package/dist/lib/components/Pagination.js +1 -1
- package/dist/lib/components/Pagination.js.map +1 -1
- package/dist/lib/components/Typography.d.ts +5 -0
- package/dist/lib/components/Typography.js +8 -0
- package/dist/lib/components/Typography.js.map +1 -0
- package/dist/lib/components/index.d.ts +4 -0
- package/dist/lib/components/index.js +2 -0
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.js +2 -3
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/hooks/useHotkey.d.ts +4 -0
- package/dist/lib/hooks/useHotkey.js +58 -0
- package/dist/lib/hooks/useHotkey.js.map +1 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +4 -8
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/custom-pages/index.d.ts +1 -4
- package/dist/lib/plugins/custom-pages/index.js +1 -3
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +1 -2
- package/dist/lib/plugins/markdown/MdxPage.js +22 -6
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +8 -1
- package/dist/lib/plugins/markdown/index.js +1 -1
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +2 -3
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +2 -2
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.js +2 -3
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/BodyPanel.js +14 -11
- package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -2
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +3 -2
- package/dist/lib/plugins/openapi/playground/Headers.js +52 -30
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js +2 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -2
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/InlineInput.js +1 -1
- package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js +2 -2
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js +1 -2
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +52 -34
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +2 -2
- package/dist/lib/plugins/openapi/playground/QueryParams.js +38 -23
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
- package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
- package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
- package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
- package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +6 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +66 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +7 -4
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +23 -32
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +2 -2
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +8 -10
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +3 -3
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +2 -3
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js +4 -4
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.js +3 -2
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/ui/CodeBlock.js +5 -6
- package/dist/lib/ui/CodeBlock.js.map +1 -1
- package/dist/lib/ui/Dialog.js +1 -1
- package/dist/lib/ui/Dialog.js.map +1 -1
- package/dist/lib/ui/Select.js +1 -1
- package/dist/lib/util/os.d.ts +2 -0
- package/dist/lib/util/os.js +21 -0
- package/dist/lib/util/os.js.map +1 -0
- package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
- package/dist/lib/util/useCopyToClipboard.js +11 -0
- package/dist/lib/util/useCopyToClipboard.js.map +1 -0
- package/dist/vite/api/SchemaManager.js +6 -2
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/api/schema-codegen.js +42 -11
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/api/schema-codegen.test.js +82 -0
- package/dist/vite/api/schema-codegen.test.js.map +1 -1
- package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
- package/dist/vite/mdx/remark-last-modified.js +56 -0
- package/dist/vite/mdx/remark-last-modified.js.map +1 -0
- package/dist/vite/mdx/utils.d.ts +2 -0
- package/dist/vite/mdx/utils.js +31 -0
- package/dist/vite/mdx/utils.js.map +1 -0
- package/dist/vite/plugin-frontmatter.js +4 -2
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-mdx.js +11 -33
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-theme.js +21 -9
- package/dist/vite/plugin-theme.js.map +1 -1
- package/dist/vite/plugin-theme.test.js +22 -1
- package/dist/vite/plugin-theme.test.js.map +1 -1
- package/lib/Alert-CT_ViLrJ.js +161 -0
- package/lib/Alert-CT_ViLrJ.js.map +1 -0
- package/lib/CodeBlock-DAKxs_Tu.js +85 -0
- package/lib/CodeBlock-DAKxs_Tu.js.map +1 -0
- package/lib/Command-CPtGTZAL.js +140 -0
- package/lib/Command-CPtGTZAL.js.map +1 -0
- package/lib/{Dialog-BxpuVLh9.js → Dialog-DGlrUTCS.js} +4 -4
- package/lib/Dialog-DGlrUTCS.js.map +1 -0
- package/lib/MdxPage-D-QSUlMf.js +110 -0
- package/lib/MdxPage-D-QSUlMf.js.map +1 -0
- package/lib/{OasProvider-BC0q5m3u.js → OasProvider-DS23Ds76.js} +3 -3
- package/lib/{OasProvider-BC0q5m3u.js.map → OasProvider-DS23Ds76.js.map} +1 -1
- package/lib/{OperationList-Dpip6ozi.js → OperationList-CLidyzBx.js} +578 -567
- package/lib/OperationList-CLidyzBx.js.map +1 -0
- package/lib/Pagination-ClHXydm9.js +36 -0
- package/lib/Pagination-ClHXydm9.js.map +1 -0
- package/lib/RouteGuard-Bd-ppFbi.js +737 -0
- package/lib/RouteGuard-Bd-ppFbi.js.map +1 -0
- package/lib/{SchemaList-t4BIfh6Z.js → SchemaList-AJ8eFhvU.js} +26 -37
- package/lib/SchemaList-AJ8eFhvU.js.map +1 -0
- package/lib/{SchemaView-CLxthVcA.js → SchemaView-B9MTum2V.js} +94 -103
- package/lib/SchemaView-B9MTum2V.js.map +1 -0
- package/lib/{SignUp-B6w5AwHM.js → SignUp-CfojO4Pb.js} +13 -13
- package/lib/{SignUp-B6w5AwHM.js.map → SignUp-CfojO4Pb.js.map} +1 -1
- package/lib/{Markdown-BQ8YqLsz.js → Slot-DwZlQ-vX.js} +3347 -3001
- package/lib/Slot-DwZlQ-vX.js.map +1 -0
- package/lib/{SyntaxHighlight-C5ja40ix.js → SyntaxHighlight-CrjhGEwT.js} +3 -3
- package/lib/{SyntaxHighlight-C5ja40ix.js.map → SyntaxHighlight-CrjhGEwT.js.map} +1 -1
- package/lib/{Toc-BS0f4GTe.js → Toc-WCmwFkX-.js} +2 -2
- package/lib/{Toc-BS0f4GTe.js.map → Toc-WCmwFkX-.js.map} +1 -1
- package/lib/{chunk-DQRVZFIR-BblmKnHy.js → chunk-DQRVZFIR-DHK7_Ilc.js} +7 -7
- package/lib/{chunk-DQRVZFIR-BblmKnHy.js.map → chunk-DQRVZFIR-DHK7_Ilc.js.map} +1 -1
- package/lib/{circular-DfOaDE_x.js → circular-0wOQ8KUO.js} +2 -2
- package/lib/{circular-DfOaDE_x.js.map → circular-0wOQ8KUO.js.map} +1 -1
- package/lib/clerk-BDZ31hjU.js +25190 -0
- package/lib/clerk-BDZ31hjU.js.map +1 -0
- package/lib/{createServer-DjOMygls.js → createServer-Brtv5_hp.js} +4 -4
- package/lib/{createServer-DjOMygls.js.map → createServer-Brtv5_hp.js.map} +1 -1
- package/lib/{errors-D_5vKvUq.js → errors-BsabiSKg.js} +5 -5
- package/lib/{errors-D_5vKvUq.js.map → errors-BsabiSKg.js.map} +1 -1
- package/lib/{hook-CHXroBFt.js → hook-Bd0yS8M0.js} +36 -36
- package/lib/{hook-CHXroBFt.js.map → hook-Bd0yS8M0.js.map} +1 -1
- package/lib/index-BIbCx5Fh.js +3919 -0
- package/lib/index-BIbCx5Fh.js.map +1 -0
- package/lib/index-BoBGmARR.js +3458 -0
- package/lib/index-BoBGmARR.js.map +1 -0
- package/lib/{index-BvvmIczU.js → index-CcV90rin.js} +2 -2
- package/lib/{index-BvvmIczU.js.map → index-CcV90rin.js.map} +1 -1
- package/lib/index-ClhS5TxS.js +107 -0
- package/lib/index-ClhS5TxS.js.map +1 -0
- package/lib/ui/CodeBlock.js +6 -73
- package/lib/ui/CodeBlock.js.map +1 -1
- package/lib/ui/Command.js +1 -1
- package/lib/ui/Dialog.js +1 -1
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Select.js +1 -1
- package/lib/ui/Select.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +3 -3
- package/lib/{useExposedProps-BZQkZneR.js → useExposedProps-BIYjecPD.js} +2 -2
- package/lib/{useExposedProps-BZQkZneR.js.map → useExposedProps-BIYjecPD.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-azureb2c.js +2 -2
- package/lib/zudoku.auth-clerk.js +3 -3
- package/lib/zudoku.auth-openid.js +2 -2
- package/lib/zudoku.components.js +33 -3534
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +10 -11
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +6 -6
- package/lib/zudoku.plugin-api-keys.js +268 -321
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +8 -20
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +4 -5
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +201 -111
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/package.json +5 -4
- package/src/lib/components/Autocomplete.tsx +1 -0
- package/src/lib/components/ErrorPage.tsx +3 -3
- package/src/lib/components/Markdown.tsx +3 -5
- package/src/lib/components/NotFoundPage.tsx +3 -3
- package/src/lib/components/Pagination.tsx +4 -4
- package/src/lib/components/Typography.tsx +14 -0
- package/src/lib/components/index.ts +2 -0
- package/src/lib/errors/ErrorAlert.tsx +3 -9
- package/src/lib/hooks/useHotkey.ts +70 -0
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +5 -9
- package/src/lib/plugins/custom-pages/index.tsx +2 -6
- package/src/lib/plugins/markdown/MdxPage.tsx +66 -15
- package/src/lib/plugins/markdown/index.tsx +10 -2
- package/src/lib/plugins/openapi/OperationList.tsx +7 -17
- package/src/lib/plugins/openapi/OperationListItem.tsx +2 -2
- package/src/lib/plugins/openapi/ParameterListItem.tsx +6 -0
- package/src/lib/plugins/openapi/SchemaList.tsx +3 -9
- package/src/lib/plugins/openapi/playground/BodyPanel.tsx +36 -28
- package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +47 -0
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +7 -3
- package/src/lib/plugins/openapi/playground/Headers.tsx +187 -89
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +3 -2
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +7 -12
- package/src/lib/plugins/openapi/playground/InlineInput.tsx +1 -1
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +2 -2
- package/src/lib/plugins/openapi/playground/PathParams.tsx +3 -4
- package/src/lib/plugins/openapi/playground/Playground.tsx +196 -136
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +102 -58
- package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
- package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
- package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
- package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +104 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +98 -97
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +62 -92
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +3 -3
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +2 -3
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +5 -10
- package/src/lib/plugins/openapi/schema/utils.ts +3 -2
- package/src/lib/ui/CodeBlock.tsx +5 -6
- package/src/lib/ui/Dialog.tsx +1 -1
- package/src/lib/ui/Select.tsx +1 -1
- package/src/lib/util/os.ts +18 -0
- package/src/lib/util/useCopyToClipboard.ts +17 -0
- package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
- package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
- package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
- package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +0 -7
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +0 -11
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +0 -1
- package/lib/Callout-CoVxYafP.js +0 -231
- package/lib/Callout-CoVxYafP.js.map +0 -1
- package/lib/CategoryHeading-Cu2RwgjC.js +0 -10
- package/lib/CategoryHeading-Cu2RwgjC.js.map +0 -1
- package/lib/Dialog-BxpuVLh9.js.map +0 -1
- package/lib/Markdown-BQ8YqLsz.js.map +0 -1
- package/lib/MdxPage-DJvKmI-r.js +0 -84
- package/lib/MdxPage-DJvKmI-r.js.map +0 -1
- package/lib/OperationList-Dpip6ozi.js.map +0 -1
- package/lib/Pagination-CCxhL836.js +0 -36
- package/lib/Pagination-CCxhL836.js.map +0 -1
- package/lib/RouteGuard-gV7nvzi7.js +0 -55
- package/lib/RouteGuard-gV7nvzi7.js.map +0 -1
- package/lib/SchemaList-t4BIfh6Z.js.map +0 -1
- package/lib/SchemaView-CLxthVcA.js.map +0 -1
- package/lib/Slot-CSEIvwwO.js +0 -161
- package/lib/Slot-CSEIvwwO.js.map +0 -1
- package/lib/clerk-yAKDC3Qz.js +0 -24812
- package/lib/clerk-yAKDC3Qz.js.map +0 -1
- package/lib/index--oeBayMa.js +0 -86
- package/lib/index--oeBayMa.js.map +0 -1
- package/lib/index-Bn6Lc9tq.js +0 -9
- package/lib/index-Bn6Lc9tq.js.map +0 -1
- package/lib/index-DW2qmCJa.js +0 -3227
- package/lib/index-DW2qmCJa.js.map +0 -1
- package/lib/index-QzXzw_ra.js +0 -24
- package/lib/index-QzXzw_ra.js.map +0 -1
- package/lib/index.esm-BFcSKCe-.js +0 -683
- package/lib/index.esm-BFcSKCe-.js.map +0 -1
- package/lib/mutation-BpcyTgWI.js +0 -196
- package/lib/mutation-BpcyTgWI.js.map +0 -1
- package/lib/objectEntries-yMIkr2mI.js +0 -5
- package/lib/objectEntries-yMIkr2mI.js.map +0 -1
- package/lib/react-nprogress.esm-C2MPXjiJ.js +0 -389
- package/lib/react-nprogress.esm-C2MPXjiJ.js.map +0 -1
- package/lib/useLatest-hmRS46UF.js +0 -11
- package/lib/useLatest-hmRS46UF.js.map +0 -1
- package/lib/useMutation-N4ockVKi.js +0 -97
- package/lib/useMutation-N4ockVKi.js.map +0 -1
- package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
- package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
- package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +0 -73
|
@@ -1,30 +1,29 @@
|
|
|
1
1
|
import { j as b } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import {
|
|
3
|
-
import { H as Fa } from "./
|
|
2
|
+
import { c as gr, u as Ia, l as Ua, r as La } from "./hook-Bd0yS8M0.js";
|
|
3
|
+
import { H as Fa } from "./RouteGuard-Bd-ppFbi.js";
|
|
4
4
|
import { ChevronsUpDownIcon as Zn, CheckIcon as _a, CopyIcon as Ba, MinusIcon as Ha, PlusIcon as Ma, UnfoldVerticalIcon as za, FoldVerticalIcon as Wa, ChevronsDownUpIcon as Ja } from "lucide-react";
|
|
5
|
-
import { b as Va, c as Ga, a as Da } from "./chunk-DQRVZFIR-
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { b as Va, c as Ga, a as Da } from "./chunk-DQRVZFIR-DHK7_Ilc.js";
|
|
6
|
+
import { u as et, a as Ke, g as Me, e as vr, f as ea, C as ta, c as ra, b as dr, P as Qa, h as Ka, S as na, i as aa, j as oa, k as ia, l as sa, U as Ya } from "./index-BoBGmARR.js";
|
|
7
|
+
import { I as Xa, S as la, M as _e, H as Fe, C as Za } from "./Slot-DwZlQ-vX.js";
|
|
8
|
+
import { P as eo } from "./Pagination-ClHXydm9.js";
|
|
9
|
+
import { useTransition as ca, useState as ge, useRef as ua, useEffect as br, useLayoutEffect as to, useMemo as fa } from "react";
|
|
10
|
+
import { Button as pa } from "./ui/Button.js";
|
|
10
11
|
import { c as pe } from "./cn-wvCW-ho6.js";
|
|
11
|
-
import { useTransition as ua, useState as ge, useRef as fa, useEffect as br, useLayoutEffect as to, useMemo as pa } from "react";
|
|
12
|
-
import { Button as da } from "./ui/Button.js";
|
|
13
12
|
import { VisuallyHidden as hr } from "@radix-ui/react-visually-hidden";
|
|
14
13
|
import { c as ro } from "./index-DI5SPFK9.js";
|
|
15
|
-
import { i as no, P as ao, E as Ur, a as oo, S as xr, b as io, g as so } from "./SchemaView-
|
|
14
|
+
import { i as no, P as ao, E as Ur, a as oo, S as xr, b as io, g as so } from "./SchemaView-B9MTum2V.js";
|
|
16
15
|
import { Card as lo } from "./ui/Card.js";
|
|
17
|
-
import * as
|
|
16
|
+
import * as dt from "@radix-ui/react-collapsible";
|
|
18
17
|
import { useZudoku as co } from "./zudoku.hooks.js";
|
|
19
|
-
import { S as
|
|
18
|
+
import { S as da } from "./SyntaxHighlight-CrjhGEwT.js";
|
|
20
19
|
import { B as Lr } from "./Button-BE9IVkWV.js";
|
|
21
|
-
import {
|
|
20
|
+
import { b as uo, M as fo } from "./index-BIbCx5Fh.js";
|
|
22
21
|
import * as je from "@radix-ui/react-tabs";
|
|
23
|
-
import { g as po, c as
|
|
22
|
+
import { g as po, c as Ye, a as ho } from "./invariant-DAFpPywt.js";
|
|
24
23
|
function yo(e, n) {
|
|
25
24
|
return n;
|
|
26
25
|
}
|
|
27
|
-
const
|
|
26
|
+
const Xe = ({
|
|
28
27
|
value: e,
|
|
29
28
|
onChange: n,
|
|
30
29
|
className: t,
|
|
@@ -54,7 +53,7 @@ const Ye = ({
|
|
|
54
53
|
children: /* @__PURE__ */ b.jsx(Zn, { size: 14 })
|
|
55
54
|
}
|
|
56
55
|
)
|
|
57
|
-
] }), mo =
|
|
56
|
+
] }), mo = Me(
|
|
58
57
|
/* GraphQL */
|
|
59
58
|
`
|
|
60
59
|
query ServersQuery($input: JSON!, $type: SchemaType!) {
|
|
@@ -69,7 +68,7 @@ const Ye = ({
|
|
|
69
68
|
), Fr = ({ url: e }) => {
|
|
70
69
|
const [n, t] = ge(!1);
|
|
71
70
|
return /* @__PURE__ */ b.jsx(
|
|
72
|
-
|
|
71
|
+
pa,
|
|
73
72
|
{
|
|
74
73
|
onClick: () => {
|
|
75
74
|
navigator.clipboard.writeText(e).then(() => {
|
|
@@ -82,19 +81,19 @@ const Ye = ({
|
|
|
82
81
|
}
|
|
83
82
|
);
|
|
84
83
|
}, go = () => {
|
|
85
|
-
const { input: e, type: n } =
|
|
84
|
+
const { input: e, type: n } = et(), t = Ke(mo, { input: e, type: n }), a = gr(t), [, c] = ca(), { selectedServer: s, setSelectedServer: r } = vr(
|
|
86
85
|
a.data.schema.servers
|
|
87
86
|
), { servers: o } = a.data.schema;
|
|
88
87
|
if (o.length === 0) return null;
|
|
89
88
|
const i = o.at(0);
|
|
90
89
|
return o.length === 1 ? /* @__PURE__ */ b.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
91
90
|
/* @__PURE__ */ b.jsx("span", { className: "font-medium text-sm", children: "Endpoint:" }),
|
|
92
|
-
/* @__PURE__ */ b.jsx(
|
|
91
|
+
/* @__PURE__ */ b.jsx(Xa, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: i.url }),
|
|
93
92
|
/* @__PURE__ */ b.jsx(Fr, { url: i.url })
|
|
94
93
|
] }) : /* @__PURE__ */ b.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
95
94
|
/* @__PURE__ */ b.jsx("span", { className: "font-medium text-sm", children: "Endpoint" }),
|
|
96
95
|
/* @__PURE__ */ b.jsx(
|
|
97
|
-
|
|
96
|
+
Xe,
|
|
98
97
|
{
|
|
99
98
|
className: "font-mono text-xs bg-border/50 dark:bg-border/70 py-1.5 max-w-[450px] truncate",
|
|
100
99
|
onChange: (l) => c(() => r(l.target.value)),
|
|
@@ -138,7 +137,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
138
137
|
const a = bo(e), [c, s] = ge(!1);
|
|
139
138
|
return /* @__PURE__ */ b.jsxs("li", { className: "p-4 bg-border/20 text-sm flex flex-col gap-1.5", children: [
|
|
140
139
|
/* @__PURE__ */ b.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
141
|
-
/* @__PURE__ */ b.jsx(
|
|
140
|
+
/* @__PURE__ */ b.jsx(la, { asChild: !0, children: /* @__PURE__ */ b.jsx("code", { children: n === "path" ? /* @__PURE__ */ b.jsx(
|
|
142
141
|
ea,
|
|
143
142
|
{
|
|
144
143
|
name: e.name,
|
|
@@ -160,26 +159,33 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
160
159
|
)
|
|
161
160
|
] }),
|
|
162
161
|
e.description && /* @__PURE__ */ b.jsx(
|
|
163
|
-
|
|
162
|
+
_e,
|
|
164
163
|
{
|
|
165
164
|
content: e.description,
|
|
165
|
+
className: "text-sm prose prose-p:my-1 prose-code:whitespace-pre-line"
|
|
166
|
+
}
|
|
167
|
+
),
|
|
168
|
+
a.description && /* @__PURE__ */ b.jsx(
|
|
169
|
+
_e,
|
|
170
|
+
{
|
|
171
|
+
content: a.description,
|
|
166
172
|
className: "text-sm prose-p:my-1 prose-code:whitespace-pre-line"
|
|
167
173
|
}
|
|
168
174
|
),
|
|
169
175
|
a.type === "array" && a.items.enum ? /* @__PURE__ */ b.jsx(Ur, { values: a.items.enum }) : a.enum && /* @__PURE__ */ b.jsx(Ur, { values: a.enum }),
|
|
170
176
|
/* @__PURE__ */ b.jsx(oo, { schema: a }),
|
|
171
177
|
(a.type === "object" || no(a)) && /* @__PURE__ */ b.jsxs(
|
|
172
|
-
|
|
178
|
+
dt.Root,
|
|
173
179
|
{
|
|
174
180
|
defaultOpen: !1,
|
|
175
181
|
onOpenChange: s,
|
|
176
182
|
open: c,
|
|
177
183
|
children: [
|
|
178
|
-
/* @__PURE__ */ b.jsx(
|
|
184
|
+
/* @__PURE__ */ b.jsx(dt.Trigger, { asChild: !0, children: /* @__PURE__ */ b.jsxs(pa, { variant: "expand", size: "sm", children: [
|
|
179
185
|
c ? /* @__PURE__ */ b.jsx(Ha, { size: 12 }) : /* @__PURE__ */ b.jsx(Ma, { size: 12 }),
|
|
180
186
|
c ? "Hide properties" : "Show properties"
|
|
181
187
|
] }) }),
|
|
182
|
-
/* @__PURE__ */ b.jsx(
|
|
188
|
+
/* @__PURE__ */ b.jsx(dt.Content, { children: /* @__PURE__ */ b.jsx("div", { className: "mt-2", children: /* @__PURE__ */ b.jsx(
|
|
183
189
|
xr,
|
|
184
190
|
{
|
|
185
191
|
schema: "items" in a ? a.items : a
|
|
@@ -195,7 +201,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
195
201
|
parameters: t,
|
|
196
202
|
id: a
|
|
197
203
|
}) => /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
198
|
-
/* @__PURE__ */ b.jsxs(
|
|
204
|
+
/* @__PURE__ */ b.jsxs(Fe, { level: 3, id: `${a}/${n}-parameters`, className: "capitalize", children: [
|
|
199
205
|
e && /* @__PURE__ */ b.jsxs(hr, { children: [
|
|
200
206
|
e,
|
|
201
207
|
" › "
|
|
@@ -211,12 +217,12 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
211
217
|
},
|
|
212
218
|
`${c.name}-${c.in}`
|
|
213
219
|
)) }) })
|
|
214
|
-
] }),
|
|
220
|
+
] }), wo = ({
|
|
215
221
|
rootMargin: e = "0px",
|
|
216
222
|
threshold: n,
|
|
217
223
|
root: t
|
|
218
224
|
} = {}) => {
|
|
219
|
-
const [a, c] = ge(!1), s =
|
|
225
|
+
const [a, c] = ge(!1), s = ua(null);
|
|
220
226
|
return br(() => {
|
|
221
227
|
const r = new IntersectionObserver(
|
|
222
228
|
([i]) => {
|
|
@@ -227,12 +233,12 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
227
233
|
if (o)
|
|
228
234
|
return r.observe(o), () => r.unobserve(o);
|
|
229
235
|
}, [t, e, n]), [s, a];
|
|
230
|
-
},
|
|
236
|
+
}, jo = typeof window < "u" ? to : br, ha = ({
|
|
231
237
|
children: e,
|
|
232
238
|
maxHeight: n = 250
|
|
233
239
|
}) => {
|
|
234
|
-
const t =
|
|
235
|
-
return
|
|
240
|
+
const t = ua(null), [a, c] = ge(!1), [s, r] = ge(!1);
|
|
241
|
+
return jo(() => {
|
|
236
242
|
const o = t.current;
|
|
237
243
|
if (!o) return;
|
|
238
244
|
c(o.scrollHeight > n);
|
|
@@ -260,7 +266,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
260
266
|
!s && a && /* @__PURE__ */ b.jsx("div", { className: " absolute inset-0 bg-gradient-to-b from-transparent to-zinc-50/60 dark:to-zinc-950/90 z-10 transition-all group-hover:to-transparent" }),
|
|
261
267
|
/* @__PURE__ */ b.jsx("div", { ref: t, children: e }),
|
|
262
268
|
!s && a && /* @__PURE__ */ b.jsx(
|
|
263
|
-
|
|
269
|
+
dr,
|
|
264
270
|
{
|
|
265
271
|
className: "absolute inset-0 grid place-items-center z-10 cursor-pointer peer",
|
|
266
272
|
asChild: !0,
|
|
@@ -280,7 +286,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
280
286
|
"flex justify-center w-full py-2 bg-muted/50",
|
|
281
287
|
!s && "hidden"
|
|
282
288
|
),
|
|
283
|
-
children: /* @__PURE__ */ b.jsx(
|
|
289
|
+
children: /* @__PURE__ */ b.jsx(dr, { asChild: !0, children: /* @__PURE__ */ b.jsxs(Lr, { variant: "outline", size: "sm", children: [
|
|
284
290
|
"Collapse",
|
|
285
291
|
/* @__PURE__ */ b.jsx(Wa, { size: 14, className: "ms-1.5" })
|
|
286
292
|
] }) })
|
|
@@ -335,7 +341,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
335
341
|
className: pe("rounded-xl overflow-hidden border border-border", n),
|
|
336
342
|
children: e
|
|
337
343
|
}
|
|
338
|
-
),
|
|
344
|
+
), wr = ({ children: e, className: n }) => /* @__PURE__ */ b.jsx(
|
|
339
345
|
"div",
|
|
340
346
|
{
|
|
341
347
|
className: pe(
|
|
@@ -344,7 +350,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
344
350
|
),
|
|
345
351
|
children: e
|
|
346
352
|
}
|
|
347
|
-
),
|
|
353
|
+
), ya = ({ children: e, className: n }) => /* @__PURE__ */ b.jsx("div", { className: pe("bg-card overflow-auto p-2", n), children: e }), ma = ({ children: e, className: n }) => /* @__PURE__ */ b.jsx("div", { className: pe("border-t bg-muted dark:bg-transparent p-3", n), children: e }), we = (e, n) => {
|
|
348
354
|
if (!e || io(e))
|
|
349
355
|
return null;
|
|
350
356
|
if (e.example !== void 0)
|
|
@@ -359,13 +365,13 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
359
365
|
if (e.type === "object" && e.properties) {
|
|
360
366
|
const t = {};
|
|
361
367
|
for (const [a, c] of Object.entries(e.properties))
|
|
362
|
-
typeof c == "object" && (t[a] =
|
|
368
|
+
typeof c == "object" && (t[a] = we(c, a));
|
|
363
369
|
return t;
|
|
364
370
|
}
|
|
365
371
|
if (e.type === "array")
|
|
366
372
|
return Array.isArray(e.items) ? e.items.map(
|
|
367
|
-
(t) =>
|
|
368
|
-
) : e.items ? [
|
|
373
|
+
(t) => we(t)
|
|
374
|
+
) : e.items ? [we(e.items)] : [];
|
|
369
375
|
if (e.format !== void 0)
|
|
370
376
|
switch (e.format) {
|
|
371
377
|
case "date-time":
|
|
@@ -387,14 +393,14 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
387
393
|
return e.enum[0];
|
|
388
394
|
if (e.oneOf) {
|
|
389
395
|
const t = Math.floor(Math.random() * e.oneOf.length);
|
|
390
|
-
return
|
|
396
|
+
return we(e.oneOf[t]);
|
|
391
397
|
}
|
|
392
398
|
if (e.anyOf) {
|
|
393
399
|
const t = Math.floor(Math.random() * e.anyOf.length);
|
|
394
|
-
return
|
|
400
|
+
return we(e.anyOf[t]);
|
|
395
401
|
}
|
|
396
402
|
if (e.allOf)
|
|
397
|
-
return e.allOf.reduce((t, a) => ({ ...t,
|
|
403
|
+
return e.allOf.reduce((t, a) => ({ ...t, ...we(a) }), {});
|
|
398
404
|
switch (e.type) {
|
|
399
405
|
case "string":
|
|
400
406
|
return n || "string";
|
|
@@ -420,23 +426,23 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
420
426
|
"text/csv": "csv",
|
|
421
427
|
"application/javascript": "javascript",
|
|
422
428
|
"application/graphql": "graphql"
|
|
423
|
-
}[e] ?? "plain" : "plain",
|
|
429
|
+
}[e] ?? "plain" : "plain", ga = ({
|
|
424
430
|
content: e,
|
|
425
431
|
description: n,
|
|
426
432
|
onExampleChange: t
|
|
427
433
|
}) => {
|
|
428
|
-
const [a, c] = ge(0), [s, r] = ge(0), o = Array.isArray(e) && e.length === 1 ? e[0] : e[a], i = o?.examples ?? [], l = i[s], d =
|
|
434
|
+
const [a, c] = ge(0), [s, r] = ge(0), o = Array.isArray(e) && e.length === 1 ? e[0] : e[a], i = o?.examples ?? [], l = i[s], d = fa(() => {
|
|
429
435
|
if (l)
|
|
430
436
|
return "value" in l ? l.value : l;
|
|
431
437
|
if (o?.schema)
|
|
432
|
-
return
|
|
438
|
+
return we(o.schema);
|
|
433
439
|
}, [l, o?.schema]);
|
|
434
440
|
br(() => {
|
|
435
441
|
d && t?.(d);
|
|
436
442
|
}, [d, t]);
|
|
437
443
|
const y = Oo(d), f = To(o?.mediaType);
|
|
438
444
|
return /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
439
|
-
/* @__PURE__ */ b.jsxs(
|
|
445
|
+
/* @__PURE__ */ b.jsxs(ya, { className: "p-0", children: [
|
|
440
446
|
l?.externalValue ? /* @__PURE__ */ b.jsx("div", { className: "p-2", children: /* @__PURE__ */ b.jsx(
|
|
441
447
|
"a",
|
|
442
448
|
{
|
|
@@ -446,8 +452,8 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
446
452
|
className: "text-xs text-primary hover:underline",
|
|
447
453
|
children: "View External Example →"
|
|
448
454
|
}
|
|
449
|
-
) }) : /* @__PURE__ */ b.jsx(
|
|
450
|
-
|
|
455
|
+
) }) : /* @__PURE__ */ b.jsx(ha, { children: /* @__PURE__ */ b.jsx(
|
|
456
|
+
da,
|
|
451
457
|
{
|
|
452
458
|
language: f,
|
|
453
459
|
noBackground: !0,
|
|
@@ -457,11 +463,11 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
457
463
|
) }),
|
|
458
464
|
l?.description && /* @__PURE__ */ b.jsx("div", { className: "border-t text-xs px-3 py-1.5 text-muted-foreground", children: l.description })
|
|
459
465
|
] }),
|
|
460
|
-
/* @__PURE__ */ b.jsxs(
|
|
466
|
+
/* @__PURE__ */ b.jsxs(ma, { className: "text-xs p-0 divide-y divide-border", children: [
|
|
461
467
|
n && /* @__PURE__ */ b.jsx("div", { className: "text-muted-foreground text-xs px-3 py-2", children: n }),
|
|
462
468
|
(i.length !== 0 || e.length !== 0) && /* @__PURE__ */ b.jsxs("div", { className: "flex items-center gap-2 justify-between min-w-0 px-3 py-2", children: [
|
|
463
469
|
/* @__PURE__ */ b.jsx("div", { className: "flex items-center gap-2 min-w-0", children: e.length > 1 ? /* @__PURE__ */ b.jsx(
|
|
464
|
-
|
|
470
|
+
Xe,
|
|
465
471
|
{
|
|
466
472
|
className: "max-w-[200px]",
|
|
467
473
|
value: a.toString(),
|
|
@@ -473,7 +479,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
473
479
|
}
|
|
474
480
|
) : /* @__PURE__ */ b.jsx("span", { className: "font-mono text-[11px]", children: e[0]?.mediaType }) }),
|
|
475
481
|
i.length > 1 && /* @__PURE__ */ b.jsx("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ b.jsx(
|
|
476
|
-
|
|
482
|
+
Xe,
|
|
477
483
|
{
|
|
478
484
|
className: "max-w-[180px]",
|
|
479
485
|
value: s.toString(),
|
|
@@ -491,8 +497,8 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
491
497
|
content: e,
|
|
492
498
|
onExampleChange: n
|
|
493
499
|
}) => e.length === 0 ? null : /* @__PURE__ */ b.jsxs($r, { children: [
|
|
494
|
-
/* @__PURE__ */ b.jsx(
|
|
495
|
-
/* @__PURE__ */ b.jsx(
|
|
500
|
+
/* @__PURE__ */ b.jsx(wr, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ b.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
|
|
501
|
+
/* @__PURE__ */ b.jsx(ga, { content: e, onExampleChange: n })
|
|
496
502
|
] }), Co = ({
|
|
497
503
|
responses: e,
|
|
498
504
|
selectedResponse: n,
|
|
@@ -504,7 +510,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
504
510
|
value: n,
|
|
505
511
|
onValueChange: (a) => t(a),
|
|
506
512
|
children: [
|
|
507
|
-
/* @__PURE__ */ b.jsxs(
|
|
513
|
+
/* @__PURE__ */ b.jsxs(wr, { className: "text-xs flex flex-col gap-2 pb-0", children: [
|
|
508
514
|
/* @__PURE__ */ b.jsx("span", { className: "font-mono", children: "Example Responses" }),
|
|
509
515
|
/* @__PURE__ */ b.jsx(je.List, { className: "flex gap-2", children: e.map((a) => /* @__PURE__ */ b.jsx(
|
|
510
516
|
je.Trigger,
|
|
@@ -520,7 +526,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
520
526
|
a.statusCode
|
|
521
527
|
)) })
|
|
522
528
|
] }),
|
|
523
|
-
e.map((a) => /* @__PURE__ */ b.jsx(je.Content, { value: a.statusCode, children: /* @__PURE__ */ b.jsx(
|
|
529
|
+
e.map((a) => /* @__PURE__ */ b.jsx(je.Content, { value: a.statusCode, children: /* @__PURE__ */ b.jsx(ga, { content: a.content ?? [] }) }, a.statusCode))
|
|
524
530
|
]
|
|
525
531
|
}
|
|
526
532
|
) });
|
|
@@ -549,29 +555,29 @@ var Hr = (e, n) => {
|
|
|
549
555
|
this.postProcessors = [...this.postProcessors, t];
|
|
550
556
|
}, this.indentationCharacter = e || Mr, this.lineJoin = n ?? zr;
|
|
551
557
|
}
|
|
552
|
-
},
|
|
558
|
+
}, ht, Wr;
|
|
553
559
|
function qo() {
|
|
554
|
-
return Wr || (Wr = 1,
|
|
560
|
+
return Wr || (Wr = 1, ht = function(e) {
|
|
555
561
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
556
|
-
}),
|
|
562
|
+
}), ht;
|
|
557
563
|
}
|
|
558
|
-
var
|
|
564
|
+
var yt, Jr;
|
|
559
565
|
function Eo() {
|
|
560
|
-
return Jr || (Jr = 1,
|
|
566
|
+
return Jr || (Jr = 1, yt = function(e) {
|
|
561
567
|
var n = typeof e;
|
|
562
568
|
return e !== null && (n === "object" || n === "function");
|
|
563
|
-
}),
|
|
569
|
+
}), yt;
|
|
564
570
|
}
|
|
565
|
-
var
|
|
571
|
+
var De = {}, Vr;
|
|
566
572
|
function Ro() {
|
|
567
|
-
return Vr || (Vr = 1, Object.defineProperty(
|
|
573
|
+
return Vr || (Vr = 1, Object.defineProperty(De, "__esModule", { value: !0 }), De.default = (e) => Object.getOwnPropertySymbols(e).filter((n) => Object.prototype.propertyIsEnumerable.call(e, n))), De;
|
|
568
574
|
}
|
|
569
|
-
var
|
|
575
|
+
var mt, Gr;
|
|
570
576
|
function ko() {
|
|
571
|
-
if (Gr) return
|
|
577
|
+
if (Gr) return mt;
|
|
572
578
|
Gr = 1;
|
|
573
579
|
const e = qo(), n = Eo(), t = Ro().default;
|
|
574
|
-
return
|
|
580
|
+
return mt = (a, c, s) => {
|
|
575
581
|
const r = [];
|
|
576
582
|
return function o(i, l, d) {
|
|
577
583
|
l = l || {}, l.indent = l.indent || " ", d = d || "";
|
|
@@ -628,16 +634,16 @@ function ko() {
|
|
|
628
634
|
return i = String(i).replace(/[\r\n]/g, (h) => h === `
|
|
629
635
|
` ? "\\n" : "\\r"), l.singleQuotes === !1 ? (i = i.replace(/"/g, '\\"'), `"${i}"`) : (i = i.replace(/\\?'/g, "\\'"), `'${i}'`);
|
|
630
636
|
}(a, c, s);
|
|
631
|
-
},
|
|
637
|
+
}, mt;
|
|
632
638
|
}
|
|
633
639
|
var No = ko();
|
|
634
640
|
const ue = /* @__PURE__ */ po(No);
|
|
635
|
-
function
|
|
641
|
+
function Be(e, n = {}) {
|
|
636
642
|
const { delimiter: t = '"', escapeChar: a = "\\", escapeNewlines: c = !0 } = n;
|
|
637
643
|
return [...e.toString()].map((r) => r === "\b" ? `${a}b` : r === " " ? `${a}t` : r === `
|
|
638
644
|
` ? c ? `${a}n` : r : r === "\f" ? `${a}f` : r === "\r" ? c ? `${a}r` : r : r === a ? a + a : r === t ? a + t : r < " " || r > "~" ? JSON.stringify(r).slice(1, -1) : r).join("");
|
|
639
645
|
}
|
|
640
|
-
var
|
|
646
|
+
var He = (e) => Be(e, { delimiter: "'" }), le = (e) => Be(e, { delimiter: '"' }), Ao = {
|
|
641
647
|
info: {
|
|
642
648
|
key: "libcurl",
|
|
643
649
|
title: "Libcurl",
|
|
@@ -667,7 +673,7 @@ var _e = (e) => Fe(e, { delimiter: "'" }), le = (e) => Fe(e, { delimiter: '"' })
|
|
|
667
673
|
const t = fe(e, n);
|
|
668
674
|
if (t)
|
|
669
675
|
return e[t];
|
|
670
|
-
},
|
|
676
|
+
}, tt = (e, n) => !!fe(e, n), Uo = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
|
|
671
677
|
(n) => e.indexOf(n) > -1
|
|
672
678
|
), Dr = class {
|
|
673
679
|
constructor(e) {
|
|
@@ -677,14 +683,14 @@ var _e = (e) => Fe(e, { delimiter: "'" }), le = (e) => Fe(e, { delimiter: '"' })
|
|
|
677
683
|
constructor(e) {
|
|
678
684
|
this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
|
|
679
685
|
}
|
|
680
|
-
},
|
|
686
|
+
}, va = (e) => e === void 0 ? null : e === null ? "null" : e.constructor.name.toLowerCase(), ba = (e) => e === void 0 ? !0 : va(e) === "object" ? Object.keys(e).length === 0 : !1, Qr = (e) => (Object.keys(e).filter((n) => ba(e[n])).forEach((n) => {
|
|
681
687
|
delete e[n];
|
|
682
|
-
}), e),
|
|
688
|
+
}), e), Qe = (e, n) => {
|
|
683
689
|
const t = " ".repeat(e);
|
|
684
690
|
return n.replace(/\n/g, `
|
|
685
691
|
${t}`);
|
|
686
692
|
}, yr = (e) => {
|
|
687
|
-
switch (
|
|
693
|
+
switch (va(e)) {
|
|
688
694
|
case "string":
|
|
689
695
|
return `"${e.replace(/"/g, '\\"')}"`;
|
|
690
696
|
case "file":
|
|
@@ -697,15 +703,15 @@ ${t}`);
|
|
|
697
703
|
return `#"${e.source}"`;
|
|
698
704
|
case "object": {
|
|
699
705
|
const n = Object.keys(e).reduce((t, a) => {
|
|
700
|
-
const c =
|
|
706
|
+
const c = Qe(a.length + 2, yr(e[a]));
|
|
701
707
|
return `${t}:${a} ${c}
|
|
702
708
|
`;
|
|
703
709
|
}, "").trim();
|
|
704
|
-
return `{${
|
|
710
|
+
return `{${Qe(1, n)}}`;
|
|
705
711
|
}
|
|
706
712
|
case "array": {
|
|
707
713
|
const n = e.reduce((t, a) => `${t} ${yr(a)}`, "").trim();
|
|
708
|
-
return `[${
|
|
714
|
+
return `[${Qe(1, n)}]`;
|
|
709
715
|
}
|
|
710
716
|
default:
|
|
711
717
|
return e.toString();
|
|
@@ -773,10 +779,10 @@ ${t}`);
|
|
|
773
779
|
break;
|
|
774
780
|
}
|
|
775
781
|
if (r(`(require '[clj-http.client :as client])
|
|
776
|
-
`),
|
|
782
|
+
`), ba(Qr(l)))
|
|
777
783
|
r(`(client/${n} "${a}")`);
|
|
778
784
|
else {
|
|
779
|
-
const d = 11 + n.length + a.length, y =
|
|
785
|
+
const d = 11 + n.length + a.length, y = Qe(d, yr(Qr(l)));
|
|
780
786
|
r(`(client/${n} "${a}" ${y})`);
|
|
781
787
|
}
|
|
782
788
|
return o();
|
|
@@ -1206,7 +1212,7 @@ var zo = {
|
|
|
1206
1212
|
break;
|
|
1207
1213
|
if (o("const form = new FormData();"), a.params.forEach((y) => {
|
|
1208
1214
|
o(`form.append('${y.name}', '${y.value || y.fileName || ""}');`);
|
|
1209
|
-
}), l.processData = !1, l.contentType = !1, l.mimeType = "multipart/form-data", l.data = "[form]",
|
|
1215
|
+
}), l.processData = !1, l.contentType = !1, l.mimeType = "multipart/form-data", l.data = "[form]", tt(t, "content-type") && ve(t, "content-type")?.includes("boundary")) {
|
|
1210
1216
|
const y = fe(t, "content-type");
|
|
1211
1217
|
y && delete l.headers[y];
|
|
1212
1218
|
}
|
|
@@ -1245,7 +1251,7 @@ var zo = {
|
|
|
1245
1251
|
break;
|
|
1246
1252
|
if (o("const data = new FormData();"), e.params.forEach((l) => {
|
|
1247
1253
|
o(`data.append('${l.name}', '${l.value || l.fileName || ""}');`);
|
|
1248
|
-
}),
|
|
1254
|
+
}), tt(n, "content-type") && ve(n, "content-type")?.includes("boundary")) {
|
|
1249
1255
|
const l = fe(n, "content-type");
|
|
1250
1256
|
l && delete n[l];
|
|
1251
1257
|
}
|
|
@@ -1255,7 +1261,7 @@ var zo = {
|
|
|
1255
1261
|
o(`const data = ${e.text ? `'${e.text}'` : "null"};`), r();
|
|
1256
1262
|
}
|
|
1257
1263
|
return o("const xhr = new XMLHttpRequest();"), s.cors && o("xhr.withCredentials = true;"), r(), o("xhr.addEventListener('readystatechange', function () {"), o("if (this.readyState === this.DONE) {", 1), o("console.log(this.responseText);", 2), o("}", 1), o("});"), r(), o(`xhr.open('${t}', '${a}');`), Object.keys(n).forEach((l) => {
|
|
1258
|
-
o(`xhr.setRequestHeader('${l}', '${
|
|
1264
|
+
o(`xhr.setRequestHeader('${l}', '${He(n[l])}');`);
|
|
1259
1265
|
}), r(), o("xhr.send(data);"), i();
|
|
1260
1266
|
}
|
|
1261
1267
|
}, ai = {
|
|
@@ -1578,7 +1584,7 @@ var zo = {
|
|
|
1578
1584
|
axios: ci,
|
|
1579
1585
|
fetch: ui
|
|
1580
1586
|
}
|
|
1581
|
-
},
|
|
1587
|
+
}, gt = (e, n, t, a) => {
|
|
1582
1588
|
const c = `${e} *${n} = `, s = mr(t, a ? c.length : void 0);
|
|
1583
1589
|
return `${c}${s};`;
|
|
1584
1590
|
}, mr = (e, n) => {
|
|
@@ -1618,7 +1624,7 @@ var zo = {
|
|
|
1618
1624
|
hasHeaders: !1,
|
|
1619
1625
|
hasBody: !1
|
|
1620
1626
|
};
|
|
1621
|
-
if (r("#import <Foundation/Foundation.h>"), Object.keys(e).length && (l.hasHeaders = !0, i(), r(
|
|
1627
|
+
if (r("#import <Foundation/Foundation.h>"), Object.keys(e).length && (l.hasHeaders = !0, i(), r(gt("NSDictionary", "headers", e, s.pretty))), n.text || n.jsonObj || n.params)
|
|
1622
1628
|
switch (l.hasBody = !0, n.mimeType) {
|
|
1623
1629
|
case "application/x-www-form-urlencoded":
|
|
1624
1630
|
if (n.params?.length) {
|
|
@@ -1633,10 +1639,10 @@ var zo = {
|
|
|
1633
1639
|
l.hasBody = !1;
|
|
1634
1640
|
break;
|
|
1635
1641
|
case "application/json":
|
|
1636
|
-
n.jsonObj && (r(
|
|
1642
|
+
n.jsonObj && (r(gt("NSDictionary", "parameters", n.jsonObj, s.pretty)), i(), r("NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];"));
|
|
1637
1643
|
break;
|
|
1638
1644
|
case "multipart/form-data":
|
|
1639
|
-
r(
|
|
1645
|
+
r(gt("NSArray", "parameters", n.params || [], s.pretty)), r(`NSString *boundary = @"${n.boundary}";`), i(), r("NSError *error;"), r("NSMutableString *body = [NSMutableString string];"), r("for (NSDictionary *param in parameters) {"), r('[body appendFormat:@"--%@\\r\\n", boundary];', 1), r('if (param[@"fileName"]) {', 1), r(
|
|
1640
1646
|
'[body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"; filename=\\"%@\\"\\r\\n", param[@"name"], param[@"fileName"]];',
|
|
1641
1647
|
2
|
|
1642
1648
|
), r('[body appendFormat:@"Content-Type: %@\\r\\n\\r\\n", param[@"contentType"]];', 2), r(
|
|
@@ -1709,7 +1715,7 @@ var zo = {
|
|
|
1709
1715
|
case "[object Undefined]":
|
|
1710
1716
|
return "null";
|
|
1711
1717
|
case "[object String]":
|
|
1712
|
-
return `'${
|
|
1718
|
+
return `'${Be(e, { delimiter: "'", escapeNewlines: !1 })}'`;
|
|
1713
1719
|
case "[object Number]":
|
|
1714
1720
|
return e.toString();
|
|
1715
1721
|
case "[object Array]": {
|
|
@@ -1872,7 +1878,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1872
1878
|
name: u.name,
|
|
1873
1879
|
contents: u.value
|
|
1874
1880
|
});
|
|
1875
|
-
}), $.length && (y(`'multipart' => ${te($, r.indent + r.indent, r.indent)}`, 1),
|
|
1881
|
+
}), $.length && (y(`'multipart' => ${te($, r.indent + r.indent, r.indent)}`, 1), tt(c, "content-type") && ve(c, "content-type")?.indexOf("boundary"))) {
|
|
1876
1882
|
const u = fe(c, "content-type");
|
|
1877
1883
|
u && delete c[u];
|
|
1878
1884
|
}
|
|
@@ -1882,9 +1888,9 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1882
1888
|
e.text && y(`'body' => ${te(e.text)},`, 1);
|
|
1883
1889
|
}
|
|
1884
1890
|
const h = Object.keys(c).sort().map(function($) {
|
|
1885
|
-
return `${r.indent}${r.indent}'${$}' => '${
|
|
1891
|
+
return `${r.indent}${r.indent}'${$}' => '${He(c[$])}',`;
|
|
1886
1892
|
}), x = a.map(($) => `${encodeURIComponent($.name)}=${encodeURIComponent($.value)}`).join("; ");
|
|
1887
|
-
return x.length && h.push(`${r.indent}${r.indent}'cookie' => '${
|
|
1893
|
+
return x.length && h.push(`${r.indent}${r.indent}'cookie' => '${He(x)}',`), h.length && (y("'headers' => [", 1), y(h.join(`
|
|
1888
1894
|
`)), y("],", 1)), o("$client = new \\GuzzleHttp\\Client();"), i(), d.length ? (o(`$response = $client->request('${t}', '${n}', [`), o(f()), o("]);")) : o(`$response = $client->request('${t}', '${n}');`), i(), o("echo $response->getBody();"), !r.noTags && r.closingTag && (i(), o("?>")), l();
|
|
1889
1895
|
}
|
|
1890
1896
|
}, $i = {
|
|
@@ -1909,7 +1915,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1909
1915
|
}
|
|
1910
1916
|
return y("try {"), y("$response = $request->send();", 1), f(), y("echo $response->getBody();", 1), y("} catch (HttpException $ex) {"), y("echo $ex;", 1), y("}"), !l && o && (f(), y("?>")), h();
|
|
1911
1917
|
}
|
|
1912
|
-
},
|
|
1918
|
+
}, wi = {
|
|
1913
1919
|
info: {
|
|
1914
1920
|
key: "http2",
|
|
1915
1921
|
title: "HTTP v2",
|
|
@@ -1941,7 +1947,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1941
1947
|
p && (u[S] = p);
|
|
1942
1948
|
});
|
|
1943
1949
|
const m = Object.keys(u).length ? te(u, i) : "null", v = $.length ? te($, i) : "null";
|
|
1944
|
-
if (y("$body = new http\\Message\\Body;"), y(`$body->addForm(${m}, ${v});`),
|
|
1950
|
+
if (y("$body = new http\\Message\\Body;"), y(`$body->addForm(${m}, ${v});`), tt(n, "content-type") && ve(n, "content-type")?.indexOf("boundary")) {
|
|
1945
1951
|
const S = fe(n, "content-type");
|
|
1946
1952
|
S && delete n[S];
|
|
1947
1953
|
}
|
|
@@ -1956,7 +1962,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1956
1962
|
}
|
|
1957
1963
|
return y(`$request->setRequestUrl(${te(s)});`), y(`$request->setRequestMethod(${te(t)});`), x && (y("$request->setBody($body);"), f()), Object.keys(a).length && (y(`$request->setQuery(new http\\QueryString(${te(a, i)}));`), f()), Object.keys(n).length && (y(`$request->setHeaders(${te(n, i)});`), f()), Object.keys(c).length && (f(), y(`$client->setCookies(${te(c, i)});`), f()), y("$client->enqueue($request)->send();"), y("$response = $client->getResponse();"), f(), y("echo $response->getBody();"), !l && o && (f(), y("?>")), h();
|
|
1958
1964
|
}
|
|
1959
|
-
},
|
|
1965
|
+
}, ji = {
|
|
1960
1966
|
info: {
|
|
1961
1967
|
key: "php",
|
|
1962
1968
|
title: "PHP",
|
|
@@ -1967,19 +1973,19 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1967
1973
|
curl: bi,
|
|
1968
1974
|
guzzle: xi,
|
|
1969
1975
|
http1: $i,
|
|
1970
|
-
http2:
|
|
1976
|
+
http2: wi
|
|
1971
1977
|
}
|
|
1972
|
-
},
|
|
1978
|
+
}, xa = (e) => ({ method: t, headersObj: a, cookies: c, uriObj: s, fullUrl: r, postData: o, allHeaders: i }) => {
|
|
1973
1979
|
const { push: l, join: d } = new G();
|
|
1974
1980
|
if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(t.toUpperCase()))
|
|
1975
1981
|
return "Method not supported";
|
|
1976
1982
|
const f = [], h = Object.keys(a);
|
|
1977
1983
|
return h.length && (l("$headers=@{}"), h.forEach((x) => {
|
|
1978
|
-
x !== "connection" && l(`$headers.Add("${x}", "${
|
|
1984
|
+
x !== "connection" && l(`$headers.Add("${x}", "${Be(a[x], { escapeChar: "`" })}")`);
|
|
1979
1985
|
}), f.push("-Headers $headers")), c.length && (l("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"), c.forEach((x) => {
|
|
1980
1986
|
l("$cookie = New-Object System.Net.Cookie"), l(`$cookie.Name = '${x.name}'`), l(`$cookie.Value = '${x.value}'`), l(`$cookie.Domain = '${s.host}'`), l("$session.Cookies.Add($cookie)");
|
|
1981
1987
|
}), f.push("-WebSession $session")), o.text && (f.push(
|
|
1982
|
-
`-ContentType '${
|
|
1988
|
+
`-ContentType '${Be(ve(i, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
|
|
1983
1989
|
), f.push(`-Body '${o.text}'`)), l(`$response = ${e} -Uri '${r}' -Method ${t} ${f.join(" ")}`.trim()), d();
|
|
1984
1990
|
}, Si = {
|
|
1985
1991
|
info: {
|
|
@@ -1989,7 +1995,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1989
1995
|
description: "Powershell Invoke-RestMethod client",
|
|
1990
1996
|
extname: ".ps1"
|
|
1991
1997
|
},
|
|
1992
|
-
convert:
|
|
1998
|
+
convert: xa("Invoke-RestMethod")
|
|
1993
1999
|
}, Oi = {
|
|
1994
2000
|
info: {
|
|
1995
2001
|
key: "webrequest",
|
|
@@ -1998,7 +2004,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1998
2004
|
description: "Powershell Invoke-WebRequest client",
|
|
1999
2005
|
extname: ".ps1"
|
|
2000
2006
|
},
|
|
2001
|
-
convert:
|
|
2007
|
+
convert: xa("Invoke-WebRequest")
|
|
2002
2008
|
}, Ti = {
|
|
2003
2009
|
info: {
|
|
2004
2010
|
key: "powershell",
|
|
@@ -2017,19 +2023,19 @@ ${s}` : ", ", i = e === "object" ? "{" : "[", l = e === "object" ? "}" : "]";
|
|
|
2017
2023
|
${s}${n.join(o)}
|
|
2018
2024
|
${r}${l}` : e === "object" && n.length > 0 ? `${i} ${n.join(o)} ${l}` : `${i}${n.join(o)}${l}`;
|
|
2019
2025
|
}
|
|
2020
|
-
var
|
|
2026
|
+
var Ae = (e, n, t) => {
|
|
2021
2027
|
switch (t = t === void 0 ? 1 : t + 1, Object.prototype.toString.call(e)) {
|
|
2022
2028
|
case "[object Number]":
|
|
2023
2029
|
return e;
|
|
2024
2030
|
case "[object Array]": {
|
|
2025
2031
|
let a = !1;
|
|
2026
|
-
const c = e.map((s) => (Object.prototype.toString.call(s) === "[object Object]" && (a = Object.keys(s).length > 1),
|
|
2032
|
+
const c = e.map((s) => (Object.prototype.toString.call(s) === "[object Object]" && (a = Object.keys(s).length > 1), Ae(s, n, t)));
|
|
2027
2033
|
return Xr("array", c, a, n.indent, t);
|
|
2028
2034
|
}
|
|
2029
2035
|
case "[object Object]": {
|
|
2030
2036
|
const a = [];
|
|
2031
2037
|
for (const c in e)
|
|
2032
|
-
a.push(`"${c}": ${
|
|
2038
|
+
a.push(`"${c}": ${Ae(e[c], n, t)}`);
|
|
2033
2039
|
return Xr("object", a, n.pretty && a.length > 1, n.indent, t);
|
|
2034
2040
|
}
|
|
2035
2041
|
case "[object Null]":
|
|
@@ -2061,7 +2067,7 @@ var Ne = (e, n, t) => {
|
|
|
2061
2067
|
let h = !1, x = !1, $ = !1;
|
|
2062
2068
|
switch (n.mimeType) {
|
|
2063
2069
|
case "application/json":
|
|
2064
|
-
n.jsonObj && (r(`payload = ${
|
|
2070
|
+
n.jsonObj && (r(`payload = ${Ae(n.jsonObj, s)}`), $ = !0, x = !0);
|
|
2065
2071
|
break;
|
|
2066
2072
|
case "multipart/form-data":
|
|
2067
2073
|
if (!n.params)
|
|
@@ -2069,7 +2075,7 @@ var Ne = (e, n, t) => {
|
|
|
2069
2075
|
if (y = {}, n.params.forEach((v) => {
|
|
2070
2076
|
v.fileName ? (v.contentType ? f[v.name] = `('${v.fileName}', open('${v.fileName}', 'rb'), '${v.contentType}')` : f[v.name] = `('${v.fileName}', open('${v.fileName}', 'rb'))`, h = !0) : (y[v.name] = v.value, x = !0);
|
|
2071
2077
|
}), h) {
|
|
2072
|
-
r(`files = ${
|
|
2078
|
+
r(`files = ${Ae(f, s)}`), x && r(`payload = ${Ae(y, s)}`);
|
|
2073
2079
|
const v = fe(d, "content-type");
|
|
2074
2080
|
v && delete d[v];
|
|
2075
2081
|
} else {
|
|
@@ -2082,7 +2088,7 @@ var Ne = (e, n, t) => {
|
|
|
2082
2088
|
break;
|
|
2083
2089
|
default: {
|
|
2084
2090
|
if (n.mimeType === "application/x-www-form-urlencoded" && n.paramsObj) {
|
|
2085
|
-
r(`payload = ${
|
|
2091
|
+
r(`payload = ${Ae(n.paramsObj, s)}`), x = !0;
|
|
2086
2092
|
break;
|
|
2087
2093
|
}
|
|
2088
2094
|
const v = JSON.stringify(n.text);
|
|
@@ -2148,7 +2154,7 @@ var Ne = (e, n, t) => {
|
|
|
2148
2154
|
r('encode <- "raw"'), o();
|
|
2149
2155
|
break;
|
|
2150
2156
|
}
|
|
2151
|
-
const f = ve(c, "cookie"), h = ve(c, "accept"), x = f ? `set_cookies(\`${String(f).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, $ = h ? `accept("${le(h)}")` : void 0, u = `content_type("${le(a.mimeType)}")`, m = Object.entries(c).filter(([p]) => !["cookie", "accept", "content-type"].includes(p.toLowerCase())).map(([p, O]) => `'${p}' = '${
|
|
2157
|
+
const f = ve(c, "cookie"), h = ve(c, "accept"), x = f ? `set_cookies(\`${String(f).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, $ = h ? `accept("${le(h)}")` : void 0, u = `content_type("${le(a.mimeType)}")`, m = Object.entries(c).filter(([p]) => !["cookie", "accept", "content-type"].includes(p.toLowerCase())).map(([p, O]) => `'${p}' = '${He(O)}'`).join(", "), v = m ? `add_headers(${m})` : void 0;
|
|
2152
2158
|
let S = `response <- VERB("${s}", url`;
|
|
2153
2159
|
y && (S += ", body = payload"), t.length && (S += ", query = queryString");
|
|
2154
2160
|
const T = [v, u, $, x].filter((p) => !!p).join(", ");
|
|
@@ -2191,7 +2197,7 @@ var Ne = (e, n, t) => {
|
|
|
2191
2197
|
l.includes(i) || (s(`class Net::HTTP::${d} < Net::HTTPRequest`), s(` METHOD = '${i.toUpperCase()}'`), s(` REQUEST_HAS_BODY = '${a.text ? "true" : "false"}'`), s(" RESPONSE_HAS_BODY = true"), s("end"), r()), s(`url = URI("${t}")`), r(), s("http = Net::HTTP.new(url.host, url.port)"), e.protocol === "https:" && s("http.use_ssl = true"), r(), s(`request = Net::HTTP::${d}.new(url)`);
|
|
2192
2198
|
const y = Object.keys(c);
|
|
2193
2199
|
return y.length && y.forEach((f) => {
|
|
2194
|
-
s(`request["${f}"] = '${
|
|
2200
|
+
s(`request["${f}"] = '${He(c[f])}'`);
|
|
2195
2201
|
}), a.text && s(`request.body = ${JSON.stringify(a.text)}`), r(), s("response = http.request(request)"), s("puts response.read_body"), o();
|
|
2196
2202
|
}
|
|
2197
2203
|
}, Ni = {
|
|
@@ -2377,19 +2383,19 @@ ${c}` : ", ";
|
|
|
2377
2383
|
return n ? `[
|
|
2378
2384
|
${c}${e.join(r)}
|
|
2379
2385
|
${s}]` : `[${e.join(r)}]`;
|
|
2380
|
-
}, tn = (e, n, t) => `let ${e} = ${
|
|
2386
|
+
}, tn = (e, n, t) => `let ${e} = ${Ze(n, t)}`, Ze = (e, n, t) => {
|
|
2381
2387
|
switch (t = t === void 0 ? 1 : t + 1, Object.prototype.toString.call(e)) {
|
|
2382
2388
|
case "[object Number]":
|
|
2383
2389
|
return e;
|
|
2384
2390
|
case "[object Array]": {
|
|
2385
2391
|
let a = !1;
|
|
2386
|
-
const c = e.map((s) => (Object.prototype.toString.call(s) === "[object Object]" && (a = Object.keys(s).length > 1),
|
|
2392
|
+
const c = e.map((s) => (Object.prototype.toString.call(s) === "[object Object]" && (a = Object.keys(s).length > 1), Ze(s, n, t)));
|
|
2387
2393
|
return en(c, a, n.indent, t);
|
|
2388
2394
|
}
|
|
2389
2395
|
case "[object Object]": {
|
|
2390
2396
|
const a = [];
|
|
2391
2397
|
for (const c in e)
|
|
2392
|
-
a.push(`"${c}": ${
|
|
2398
|
+
a.push(`"${c}": ${Ze(e[c], n, t)}`);
|
|
2393
2399
|
return en(
|
|
2394
2400
|
a,
|
|
2395
2401
|
// @ts-expect-error needs better types
|
|
@@ -2452,7 +2458,7 @@ ${s}]` : `[${e.join(r)}]`;
|
|
|
2452
2458
|
});
|
|
2453
2459
|
break;
|
|
2454
2460
|
}
|
|
2455
|
-
}), o("]"), o("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), i(), o("var request = URLRequest(url: components.url!)")), o(`request.httpMethod = "${c}"`), o(`request.timeoutInterval = ${r.timeout}`), Object.keys(e).length && o(`request.allHTTPHeaderFields = ${
|
|
2461
|
+
}), o("]"), o("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), i(), o("var request = URLRequest(url: components.url!)")), o(`request.httpMethod = "${c}"`), o(`request.timeoutInterval = ${r.timeout}`), Object.keys(e).length && o(`request.allHTTPHeaderFields = ${Ze(e, r)}`), d && o("request.httpBody = postData"), i(), o("let (data, _) = try await URLSession.shared.data(for: request)"), o("print(String(decoding: data, as: UTF8.self))"), l();
|
|
2456
2462
|
}
|
|
2457
2463
|
}, Mi = {
|
|
2458
2464
|
info: {
|
|
@@ -2476,20 +2482,20 @@ ${s}]` : `[${e.join(r)}]`;
|
|
|
2476
2482
|
node: hi,
|
|
2477
2483
|
objc: mi,
|
|
2478
2484
|
ocaml: vi,
|
|
2479
|
-
php:
|
|
2485
|
+
php: ji,
|
|
2480
2486
|
powershell: Ti,
|
|
2481
2487
|
python: qi,
|
|
2482
2488
|
r: Ri,
|
|
2483
2489
|
ruby: Ni,
|
|
2484
2490
|
shell: Bi,
|
|
2485
2491
|
swift: Mi
|
|
2486
|
-
},
|
|
2492
|
+
}, Ce = {}, Le = { exports: {} };
|
|
2487
2493
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
2488
|
-
var Wi =
|
|
2494
|
+
var Wi = Le.exports, rn;
|
|
2489
2495
|
function Ji() {
|
|
2490
2496
|
return rn || (rn = 1, function(e, n) {
|
|
2491
2497
|
(function(t) {
|
|
2492
|
-
var a = n && !n.nodeType && n, c = e && !e.nodeType && e, s = typeof
|
|
2498
|
+
var a = n && !n.nodeType && n, c = e && !e.nodeType && e, s = typeof Ye == "object" && Ye;
|
|
2493
2499
|
(s.global === s || s.window === s || s.self === s) && (t = s);
|
|
2494
2500
|
var r, o = 2147483647, i = 36, l = 1, d = 26, y = 38, f = 700, h = 72, x = 128, $ = "-", u = /^xn--/, m = /[^\x20-\x7E]/, v = /[\x2E\u3002\uFF0E\uFF61]/g, S = {
|
|
2495
2501
|
overflow: "Overflow: input needs wider integers to process",
|
|
@@ -2604,86 +2610,86 @@ function Ji() {
|
|
|
2604
2610
|
else
|
|
2605
2611
|
t.punycode = r;
|
|
2606
2612
|
})(Wi);
|
|
2607
|
-
}(
|
|
2613
|
+
}(Le, Le.exports)), Le.exports;
|
|
2608
2614
|
}
|
|
2609
|
-
var
|
|
2610
|
-
function
|
|
2611
|
-
return nn || (nn = 1,
|
|
2615
|
+
var vt, nn;
|
|
2616
|
+
function $a() {
|
|
2617
|
+
return nn || (nn = 1, vt = Object), vt;
|
|
2612
2618
|
}
|
|
2613
|
-
var
|
|
2619
|
+
var bt, an;
|
|
2614
2620
|
function Vi() {
|
|
2615
|
-
return an || (an = 1,
|
|
2621
|
+
return an || (an = 1, bt = Error), bt;
|
|
2616
2622
|
}
|
|
2617
|
-
var
|
|
2623
|
+
var xt, on;
|
|
2618
2624
|
function Gi() {
|
|
2619
|
-
return on || (on = 1,
|
|
2625
|
+
return on || (on = 1, xt = EvalError), xt;
|
|
2620
2626
|
}
|
|
2621
|
-
var
|
|
2627
|
+
var $t, sn;
|
|
2622
2628
|
function Di() {
|
|
2623
|
-
return sn || (sn = 1,
|
|
2629
|
+
return sn || (sn = 1, $t = RangeError), $t;
|
|
2624
2630
|
}
|
|
2625
|
-
var
|
|
2631
|
+
var wt, ln;
|
|
2626
2632
|
function Qi() {
|
|
2627
|
-
return ln || (ln = 1,
|
|
2633
|
+
return ln || (ln = 1, wt = ReferenceError), wt;
|
|
2628
2634
|
}
|
|
2629
2635
|
var jt, cn;
|
|
2630
2636
|
function wa() {
|
|
2631
2637
|
return cn || (cn = 1, jt = SyntaxError), jt;
|
|
2632
2638
|
}
|
|
2633
|
-
var
|
|
2634
|
-
function
|
|
2635
|
-
return un || (un = 1,
|
|
2639
|
+
var St, un;
|
|
2640
|
+
function ze() {
|
|
2641
|
+
return un || (un = 1, St = TypeError), St;
|
|
2636
2642
|
}
|
|
2637
|
-
var
|
|
2643
|
+
var Ot, fn;
|
|
2638
2644
|
function Ki() {
|
|
2639
|
-
return fn || (fn = 1,
|
|
2645
|
+
return fn || (fn = 1, Ot = URIError), Ot;
|
|
2640
2646
|
}
|
|
2641
|
-
var
|
|
2647
|
+
var Tt, pn;
|
|
2642
2648
|
function Yi() {
|
|
2643
|
-
return pn || (pn = 1,
|
|
2649
|
+
return pn || (pn = 1, Tt = Math.abs), Tt;
|
|
2644
2650
|
}
|
|
2645
|
-
var
|
|
2651
|
+
var Pt, dn;
|
|
2646
2652
|
function Xi() {
|
|
2647
|
-
return dn || (dn = 1,
|
|
2653
|
+
return dn || (dn = 1, Pt = Math.floor), Pt;
|
|
2648
2654
|
}
|
|
2649
|
-
var
|
|
2655
|
+
var Ct, hn;
|
|
2650
2656
|
function Zi() {
|
|
2651
|
-
return hn || (hn = 1,
|
|
2657
|
+
return hn || (hn = 1, Ct = Math.max), Ct;
|
|
2652
2658
|
}
|
|
2653
|
-
var
|
|
2659
|
+
var qt, yn;
|
|
2654
2660
|
function es() {
|
|
2655
|
-
return yn || (yn = 1,
|
|
2661
|
+
return yn || (yn = 1, qt = Math.min), qt;
|
|
2656
2662
|
}
|
|
2657
|
-
var
|
|
2663
|
+
var Et, mn;
|
|
2658
2664
|
function ts() {
|
|
2659
|
-
return mn || (mn = 1,
|
|
2665
|
+
return mn || (mn = 1, Et = Math.pow), Et;
|
|
2660
2666
|
}
|
|
2661
|
-
var
|
|
2667
|
+
var Rt, gn;
|
|
2662
2668
|
function rs() {
|
|
2663
|
-
return gn || (gn = 1,
|
|
2669
|
+
return gn || (gn = 1, Rt = Math.round), Rt;
|
|
2664
2670
|
}
|
|
2665
|
-
var
|
|
2671
|
+
var kt, vn;
|
|
2666
2672
|
function ns() {
|
|
2667
|
-
return vn || (vn = 1,
|
|
2673
|
+
return vn || (vn = 1, kt = Number.isNaN || function(n) {
|
|
2668
2674
|
return n !== n;
|
|
2669
|
-
}),
|
|
2675
|
+
}), kt;
|
|
2670
2676
|
}
|
|
2671
|
-
var
|
|
2677
|
+
var Nt, bn;
|
|
2672
2678
|
function as() {
|
|
2673
|
-
if (bn) return
|
|
2679
|
+
if (bn) return Nt;
|
|
2674
2680
|
bn = 1;
|
|
2675
2681
|
var e = /* @__PURE__ */ ns();
|
|
2676
|
-
return
|
|
2682
|
+
return Nt = function(t) {
|
|
2677
2683
|
return e(t) || t === 0 ? t : t < 0 ? -1 : 1;
|
|
2678
|
-
},
|
|
2684
|
+
}, Nt;
|
|
2679
2685
|
}
|
|
2680
|
-
var
|
|
2686
|
+
var At, xn;
|
|
2681
2687
|
function os() {
|
|
2682
|
-
return xn || (xn = 1,
|
|
2688
|
+
return xn || (xn = 1, At = Object.getOwnPropertyDescriptor), At;
|
|
2683
2689
|
}
|
|
2684
|
-
var
|
|
2685
|
-
function
|
|
2686
|
-
if ($n) return
|
|
2690
|
+
var It, $n;
|
|
2691
|
+
function rt() {
|
|
2692
|
+
if ($n) return It;
|
|
2687
2693
|
$n = 1;
|
|
2688
2694
|
var e = /* @__PURE__ */ os();
|
|
2689
2695
|
if (e)
|
|
@@ -2692,12 +2698,12 @@ function tt() {
|
|
|
2692
2698
|
} catch {
|
|
2693
2699
|
e = null;
|
|
2694
2700
|
}
|
|
2695
|
-
return
|
|
2701
|
+
return It = e, It;
|
|
2696
2702
|
}
|
|
2697
|
-
var
|
|
2698
|
-
function
|
|
2699
|
-
if (
|
|
2700
|
-
|
|
2703
|
+
var Ut, wn;
|
|
2704
|
+
function nt() {
|
|
2705
|
+
if (wn) return Ut;
|
|
2706
|
+
wn = 1;
|
|
2701
2707
|
var e = Object.defineProperty || !1;
|
|
2702
2708
|
if (e)
|
|
2703
2709
|
try {
|
|
@@ -2705,11 +2711,11 @@ function rt() {
|
|
|
2705
2711
|
} catch {
|
|
2706
2712
|
e = !1;
|
|
2707
2713
|
}
|
|
2708
|
-
return
|
|
2714
|
+
return Ut = e, Ut;
|
|
2709
2715
|
}
|
|
2710
|
-
var
|
|
2716
|
+
var Lt, jn;
|
|
2711
2717
|
function is() {
|
|
2712
|
-
return
|
|
2718
|
+
return jn || (jn = 1, Lt = function() {
|
|
2713
2719
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2714
2720
|
return !1;
|
|
2715
2721
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -2735,31 +2741,31 @@ function is() {
|
|
|
2735
2741
|
return !1;
|
|
2736
2742
|
}
|
|
2737
2743
|
return !0;
|
|
2738
|
-
}),
|
|
2744
|
+
}), Lt;
|
|
2739
2745
|
}
|
|
2740
|
-
var
|
|
2746
|
+
var Ft, Sn;
|
|
2741
2747
|
function ss() {
|
|
2742
|
-
if (Sn) return
|
|
2748
|
+
if (Sn) return Ft;
|
|
2743
2749
|
Sn = 1;
|
|
2744
2750
|
var e = typeof Symbol < "u" && Symbol, n = is();
|
|
2745
|
-
return
|
|
2751
|
+
return Ft = function() {
|
|
2746
2752
|
return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : n();
|
|
2747
|
-
},
|
|
2753
|
+
}, Ft;
|
|
2748
2754
|
}
|
|
2749
|
-
var
|
|
2750
|
-
function
|
|
2751
|
-
return On || (On = 1,
|
|
2755
|
+
var _t, On;
|
|
2756
|
+
function ja() {
|
|
2757
|
+
return On || (On = 1, _t = typeof Reflect < "u" && Reflect.getPrototypeOf || null), _t;
|
|
2752
2758
|
}
|
|
2753
|
-
var
|
|
2754
|
-
function
|
|
2755
|
-
if (Tn) return
|
|
2759
|
+
var Bt, Tn;
|
|
2760
|
+
function Sa() {
|
|
2761
|
+
if (Tn) return Bt;
|
|
2756
2762
|
Tn = 1;
|
|
2757
|
-
var e = /* @__PURE__ */
|
|
2758
|
-
return
|
|
2763
|
+
var e = /* @__PURE__ */ $a();
|
|
2764
|
+
return Bt = e.getPrototypeOf || null, Bt;
|
|
2759
2765
|
}
|
|
2760
|
-
var
|
|
2766
|
+
var Ht, Pn;
|
|
2761
2767
|
function ls() {
|
|
2762
|
-
if (Pn) return
|
|
2768
|
+
if (Pn) return Ht;
|
|
2763
2769
|
Pn = 1;
|
|
2764
2770
|
var e = "Function.prototype.bind called on incompatible ", n = Object.prototype.toString, t = Math.max, a = "[object Function]", c = function(i, l) {
|
|
2765
2771
|
for (var d = [], y = 0; y < i.length; y += 1)
|
|
@@ -2776,7 +2782,7 @@ function ls() {
|
|
|
2776
2782
|
l += o[d], d + 1 < o.length && (l += i);
|
|
2777
2783
|
return l;
|
|
2778
2784
|
};
|
|
2779
|
-
return
|
|
2785
|
+
return Ht = function(i) {
|
|
2780
2786
|
var l = this;
|
|
2781
2787
|
if (typeof l != "function" || n.apply(l) !== a)
|
|
2782
2788
|
throw new TypeError(e + l);
|
|
@@ -2800,50 +2806,50 @@ function ls() {
|
|
|
2800
2806
|
u.prototype = l.prototype, y.prototype = new u(), u.prototype = null;
|
|
2801
2807
|
}
|
|
2802
2808
|
return y;
|
|
2803
|
-
},
|
|
2809
|
+
}, Ht;
|
|
2804
2810
|
}
|
|
2805
|
-
var
|
|
2806
|
-
function
|
|
2807
|
-
if (Cn) return
|
|
2811
|
+
var Mt, Cn;
|
|
2812
|
+
function We() {
|
|
2813
|
+
if (Cn) return Mt;
|
|
2808
2814
|
Cn = 1;
|
|
2809
2815
|
var e = ls();
|
|
2810
|
-
return
|
|
2816
|
+
return Mt = Function.prototype.bind || e, Mt;
|
|
2811
2817
|
}
|
|
2812
|
-
var
|
|
2813
|
-
function
|
|
2814
|
-
return qn || (qn = 1,
|
|
2818
|
+
var zt, qn;
|
|
2819
|
+
function jr() {
|
|
2820
|
+
return qn || (qn = 1, zt = Function.prototype.call), zt;
|
|
2815
2821
|
}
|
|
2816
|
-
var
|
|
2822
|
+
var Wt, En;
|
|
2817
2823
|
function Sr() {
|
|
2818
|
-
return En || (En = 1,
|
|
2824
|
+
return En || (En = 1, Wt = Function.prototype.apply), Wt;
|
|
2819
2825
|
}
|
|
2820
|
-
var
|
|
2826
|
+
var Jt, Rn;
|
|
2821
2827
|
function cs() {
|
|
2822
|
-
return Rn || (Rn = 1,
|
|
2828
|
+
return Rn || (Rn = 1, Jt = typeof Reflect < "u" && Reflect && Reflect.apply), Jt;
|
|
2823
2829
|
}
|
|
2824
|
-
var
|
|
2825
|
-
function
|
|
2826
|
-
if (kn) return
|
|
2830
|
+
var Vt, kn;
|
|
2831
|
+
function Oa() {
|
|
2832
|
+
if (kn) return Vt;
|
|
2827
2833
|
kn = 1;
|
|
2828
|
-
var e =
|
|
2829
|
-
return
|
|
2834
|
+
var e = We(), n = Sr(), t = jr(), a = cs();
|
|
2835
|
+
return Vt = a || e.call(t, n), Vt;
|
|
2830
2836
|
}
|
|
2831
|
-
var
|
|
2832
|
-
function
|
|
2833
|
-
if (Nn) return
|
|
2837
|
+
var Gt, Nn;
|
|
2838
|
+
function Ta() {
|
|
2839
|
+
if (Nn) return Gt;
|
|
2834
2840
|
Nn = 1;
|
|
2835
|
-
var e =
|
|
2836
|
-
return
|
|
2841
|
+
var e = We(), n = /* @__PURE__ */ ze(), t = jr(), a = Oa();
|
|
2842
|
+
return Gt = function(s) {
|
|
2837
2843
|
if (s.length < 1 || typeof s[0] != "function")
|
|
2838
2844
|
throw new n("a function is required");
|
|
2839
2845
|
return a(e, t, s);
|
|
2840
|
-
},
|
|
2846
|
+
}, Gt;
|
|
2841
2847
|
}
|
|
2842
|
-
var
|
|
2848
|
+
var Dt, An;
|
|
2843
2849
|
function us() {
|
|
2844
|
-
if (An) return
|
|
2850
|
+
if (An) return Dt;
|
|
2845
2851
|
An = 1;
|
|
2846
|
-
var e =
|
|
2852
|
+
var e = Ta(), n = /* @__PURE__ */ rt(), t;
|
|
2847
2853
|
try {
|
|
2848
2854
|
t = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
2849
2855
|
[].__proto__ === Array.prototype;
|
|
@@ -2856,19 +2862,19 @@ function us() {
|
|
|
2856
2862
|
/** @type {keyof typeof Object.prototype} */
|
|
2857
2863
|
"__proto__"
|
|
2858
2864
|
), c = Object, s = c.getPrototypeOf;
|
|
2859
|
-
return
|
|
2865
|
+
return Dt = a && typeof a.get == "function" ? e([a.get]) : typeof s == "function" ? (
|
|
2860
2866
|
/** @type {import('./get')} */
|
|
2861
2867
|
function(o) {
|
|
2862
2868
|
return s(o == null ? o : c(o));
|
|
2863
2869
|
}
|
|
2864
|
-
) : !1,
|
|
2870
|
+
) : !1, Dt;
|
|
2865
2871
|
}
|
|
2866
|
-
var
|
|
2872
|
+
var Qt, In;
|
|
2867
2873
|
function fs() {
|
|
2868
|
-
if (In) return
|
|
2874
|
+
if (In) return Qt;
|
|
2869
2875
|
In = 1;
|
|
2870
|
-
var e =
|
|
2871
|
-
return
|
|
2876
|
+
var e = ja(), n = Sa(), t = /* @__PURE__ */ us();
|
|
2877
|
+
return Qt = e ? function(c) {
|
|
2872
2878
|
return e(c);
|
|
2873
2879
|
} : n ? function(c) {
|
|
2874
2880
|
if (!c || typeof c != "object" && typeof c != "function")
|
|
@@ -2876,25 +2882,25 @@ function fs() {
|
|
|
2876
2882
|
return n(c);
|
|
2877
2883
|
} : t ? function(c) {
|
|
2878
2884
|
return t(c);
|
|
2879
|
-
} : null,
|
|
2885
|
+
} : null, Qt;
|
|
2880
2886
|
}
|
|
2881
|
-
var
|
|
2887
|
+
var Kt, Un;
|
|
2882
2888
|
function ps() {
|
|
2883
|
-
if (Un) return
|
|
2889
|
+
if (Un) return Kt;
|
|
2884
2890
|
Un = 1;
|
|
2885
|
-
var e = Function.prototype.call, n = Object.prototype.hasOwnProperty, t =
|
|
2886
|
-
return
|
|
2891
|
+
var e = Function.prototype.call, n = Object.prototype.hasOwnProperty, t = We();
|
|
2892
|
+
return Kt = t.call(e, n), Kt;
|
|
2887
2893
|
}
|
|
2888
|
-
var
|
|
2894
|
+
var Yt, Ln;
|
|
2889
2895
|
function Or() {
|
|
2890
|
-
if (Ln) return
|
|
2896
|
+
if (Ln) return Yt;
|
|
2891
2897
|
Ln = 1;
|
|
2892
|
-
var e, n = /* @__PURE__ */
|
|
2898
|
+
var e, n = /* @__PURE__ */ $a(), t = /* @__PURE__ */ Vi(), a = /* @__PURE__ */ Gi(), c = /* @__PURE__ */ Di(), s = /* @__PURE__ */ Qi(), r = /* @__PURE__ */ wa(), o = /* @__PURE__ */ ze(), i = /* @__PURE__ */ Ki(), l = /* @__PURE__ */ Yi(), d = /* @__PURE__ */ Xi(), y = /* @__PURE__ */ Zi(), f = /* @__PURE__ */ es(), h = /* @__PURE__ */ ts(), x = /* @__PURE__ */ rs(), $ = /* @__PURE__ */ as(), u = Function, m = function(V) {
|
|
2893
2899
|
try {
|
|
2894
2900
|
return u('"use strict"; return (' + V + ").constructor;")();
|
|
2895
2901
|
} catch {
|
|
2896
2902
|
}
|
|
2897
|
-
}, v = /* @__PURE__ */
|
|
2903
|
+
}, v = /* @__PURE__ */ rt(), S = /* @__PURE__ */ nt(), T = function() {
|
|
2898
2904
|
throw new o();
|
|
2899
2905
|
}, p = v ? function() {
|
|
2900
2906
|
try {
|
|
@@ -2906,7 +2912,7 @@ function Or() {
|
|
|
2906
2912
|
return T;
|
|
2907
2913
|
}
|
|
2908
2914
|
}
|
|
2909
|
-
}() : T, O = ss()(), g = fs(), R =
|
|
2915
|
+
}() : T, O = ss()(), g = fs(), R = Sa(), C = ja(), N = Sr(), B = jr(), P = {}, oe = typeof Uint8Array > "u" || !g ? e : g(Uint8Array), H = {
|
|
2910
2916
|
__proto__: null,
|
|
2911
2917
|
"%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
|
|
2912
2918
|
"%Array%": Array,
|
|
@@ -3066,7 +3072,7 @@ function Or() {
|
|
|
3066
3072
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
3067
3073
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
3068
3074
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
3069
|
-
}, A =
|
|
3075
|
+
}, A = We(), re = /* @__PURE__ */ ps(), E = A.call(B, Array.prototype.concat), k = A.call(N, Array.prototype.splice), L = A.call(B, String.prototype.replace), q = A.call(B, String.prototype.slice), U = A.call(B, RegExp.prototype.exec), J = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, z = /\\(\\)?/g, K = function(I) {
|
|
3070
3076
|
var F = q(I, 0, 1), _ = q(I, -1);
|
|
3071
3077
|
if (F === "%" && _ !== "%")
|
|
3072
3078
|
throw new r("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -3090,20 +3096,20 @@ function Or() {
|
|
|
3090
3096
|
}
|
|
3091
3097
|
throw new r("intrinsic " + I + " does not exist!");
|
|
3092
3098
|
};
|
|
3093
|
-
return
|
|
3099
|
+
return Yt = function(I, F) {
|
|
3094
3100
|
if (typeof I != "string" || I.length === 0)
|
|
3095
3101
|
throw new o("intrinsic name must be a non-empty string");
|
|
3096
3102
|
if (arguments.length > 1 && typeof F != "boolean")
|
|
3097
3103
|
throw new o('"allowMissing" argument must be a boolean');
|
|
3098
3104
|
if (U(/^%?[^%]*%?$/, I) === null)
|
|
3099
3105
|
throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
3100
|
-
var _ = K(I), Q = _.length > 0 ? _[0] : "", W = ne("%" + Q + "%", F), Y = W.name, ae = W.value, he = !1,
|
|
3101
|
-
|
|
3102
|
-
for (var
|
|
3103
|
-
var ye = _[
|
|
3104
|
-
if ((
|
|
3106
|
+
var _ = K(I), Q = _.length > 0 ? _[0] : "", W = ne("%" + Q + "%", F), Y = W.name, ae = W.value, he = !1, Se = W.alias;
|
|
3107
|
+
Se && (Q = Se[0], k(_, E([0, 1], Se)));
|
|
3108
|
+
for (var qe = 1, Oe = !0; qe < _.length; qe += 1) {
|
|
3109
|
+
var ye = _[qe], Ee = q(ye, 0, 1), Re = q(ye, -1);
|
|
3110
|
+
if ((Ee === '"' || Ee === "'" || Ee === "`" || Re === '"' || Re === "'" || Re === "`") && Ee !== Re)
|
|
3105
3111
|
throw new r("property names with quotes must have matching quotes");
|
|
3106
|
-
if ((ye === "constructor" || !
|
|
3112
|
+
if ((ye === "constructor" || !Oe) && (he = !0), Q += "." + ye, Y = "%" + Q + "%", re(H, Y))
|
|
3107
3113
|
ae = H[Y];
|
|
3108
3114
|
else if (ae != null) {
|
|
3109
3115
|
if (!(ye in ae)) {
|
|
@@ -3111,23 +3117,23 @@ function Or() {
|
|
|
3111
3117
|
throw new o("base intrinsic for " + I + " exists, but the property is not available.");
|
|
3112
3118
|
return;
|
|
3113
3119
|
}
|
|
3114
|
-
if (v &&
|
|
3115
|
-
var
|
|
3116
|
-
|
|
3120
|
+
if (v && qe + 1 >= _.length) {
|
|
3121
|
+
var Te = v(ae, ye);
|
|
3122
|
+
Oe = !!Te, Oe && "get" in Te && !("originalValue" in Te.get) ? ae = Te.get : ae = ae[ye];
|
|
3117
3123
|
} else
|
|
3118
|
-
|
|
3119
|
-
|
|
3124
|
+
Oe = re(ae, ye), ae = ae[ye];
|
|
3125
|
+
Oe && !he && (H[Y] = ae);
|
|
3120
3126
|
}
|
|
3121
3127
|
}
|
|
3122
3128
|
return ae;
|
|
3123
|
-
},
|
|
3129
|
+
}, Yt;
|
|
3124
3130
|
}
|
|
3125
|
-
var
|
|
3131
|
+
var Xt = { exports: {} }, Zt, Fn;
|
|
3126
3132
|
function ds() {
|
|
3127
|
-
if (Fn) return
|
|
3133
|
+
if (Fn) return Zt;
|
|
3128
3134
|
Fn = 1;
|
|
3129
|
-
var e = /* @__PURE__ */
|
|
3130
|
-
return
|
|
3135
|
+
var e = /* @__PURE__ */ nt(), n = /* @__PURE__ */ wa(), t = /* @__PURE__ */ ze(), a = /* @__PURE__ */ rt();
|
|
3136
|
+
return Zt = function(s, r, o) {
|
|
3131
3137
|
if (!s || typeof s != "object" && typeof s != "function")
|
|
3132
3138
|
throw new t("`obj` must be an object or a function`");
|
|
3133
3139
|
if (typeof r != "string" && typeof r != "symbol")
|
|
@@ -3152,13 +3158,13 @@ function ds() {
|
|
|
3152
3158
|
s[r] = o;
|
|
3153
3159
|
else
|
|
3154
3160
|
throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
3155
|
-
},
|
|
3161
|
+
}, Zt;
|
|
3156
3162
|
}
|
|
3157
|
-
var
|
|
3163
|
+
var er, _n;
|
|
3158
3164
|
function hs() {
|
|
3159
|
-
if (_n) return
|
|
3165
|
+
if (_n) return er;
|
|
3160
3166
|
_n = 1;
|
|
3161
|
-
var e = /* @__PURE__ */
|
|
3167
|
+
var e = /* @__PURE__ */ nt(), n = function() {
|
|
3162
3168
|
return !!e;
|
|
3163
3169
|
};
|
|
3164
3170
|
return n.hasArrayLengthDefineBug = function() {
|
|
@@ -3169,14 +3175,14 @@ function hs() {
|
|
|
3169
3175
|
} catch {
|
|
3170
3176
|
return !0;
|
|
3171
3177
|
}
|
|
3172
|
-
},
|
|
3178
|
+
}, er = n, er;
|
|
3173
3179
|
}
|
|
3174
|
-
var
|
|
3180
|
+
var tr, Bn;
|
|
3175
3181
|
function ys() {
|
|
3176
|
-
if (Bn) return
|
|
3182
|
+
if (Bn) return tr;
|
|
3177
3183
|
Bn = 1;
|
|
3178
|
-
var e = /* @__PURE__ */ Or(), n = /* @__PURE__ */ ds(), t = /* @__PURE__ */ hs()(), a = /* @__PURE__ */
|
|
3179
|
-
return
|
|
3184
|
+
var e = /* @__PURE__ */ Or(), n = /* @__PURE__ */ ds(), t = /* @__PURE__ */ hs()(), a = /* @__PURE__ */ rt(), c = /* @__PURE__ */ ze(), s = e("%Math.floor%");
|
|
3185
|
+
return tr = function(o, i) {
|
|
3180
3186
|
if (typeof o != "function")
|
|
3181
3187
|
throw new c("`fn` is not a function");
|
|
3182
3188
|
if (typeof i != "number" || i < 0 || i > 4294967295 || s(i) !== i)
|
|
@@ -3199,21 +3205,21 @@ function ys() {
|
|
|
3199
3205
|
"length",
|
|
3200
3206
|
i
|
|
3201
3207
|
)), o;
|
|
3202
|
-
},
|
|
3208
|
+
}, tr;
|
|
3203
3209
|
}
|
|
3204
|
-
var
|
|
3210
|
+
var rr, Hn;
|
|
3205
3211
|
function ms() {
|
|
3206
|
-
if (Hn) return
|
|
3212
|
+
if (Hn) return rr;
|
|
3207
3213
|
Hn = 1;
|
|
3208
|
-
var e =
|
|
3209
|
-
return
|
|
3214
|
+
var e = We(), n = Sr(), t = Oa();
|
|
3215
|
+
return rr = function() {
|
|
3210
3216
|
return t(e, n, arguments);
|
|
3211
|
-
},
|
|
3217
|
+
}, rr;
|
|
3212
3218
|
}
|
|
3213
3219
|
var Mn;
|
|
3214
3220
|
function gs() {
|
|
3215
3221
|
return Mn || (Mn = 1, function(e) {
|
|
3216
|
-
var n = /* @__PURE__ */ ys(), t = /* @__PURE__ */
|
|
3222
|
+
var n = /* @__PURE__ */ ys(), t = /* @__PURE__ */ nt(), a = Ta(), c = ms();
|
|
3217
3223
|
e.exports = function(r) {
|
|
3218
3224
|
var o = a(arguments), i = r.length - (arguments.length - 1);
|
|
3219
3225
|
return n(
|
|
@@ -3222,385 +3228,385 @@ function gs() {
|
|
|
3222
3228
|
!0
|
|
3223
3229
|
);
|
|
3224
3230
|
}, t ? t(e.exports, "apply", { value: c }) : e.exports.apply = c;
|
|
3225
|
-
}(
|
|
3231
|
+
}(Xt)), Xt.exports;
|
|
3226
3232
|
}
|
|
3227
|
-
var
|
|
3233
|
+
var nr, zn;
|
|
3228
3234
|
function vs() {
|
|
3229
|
-
if (zn) return
|
|
3235
|
+
if (zn) return nr;
|
|
3230
3236
|
zn = 1;
|
|
3231
3237
|
var e = /* @__PURE__ */ Or(), n = gs(), t = n(e("String.prototype.indexOf"));
|
|
3232
|
-
return
|
|
3238
|
+
return nr = function(c, s) {
|
|
3233
3239
|
var r = e(c, !!s);
|
|
3234
3240
|
return typeof r == "function" && t(c, ".prototype.") > -1 ? n(r) : r;
|
|
3235
|
-
},
|
|
3241
|
+
}, nr;
|
|
3236
3242
|
}
|
|
3237
3243
|
const bs = {}, xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3238
3244
|
__proto__: null,
|
|
3239
3245
|
default: bs
|
|
3240
3246
|
}, Symbol.toStringTag, { value: "Module" })), $s = /* @__PURE__ */ ho(xs);
|
|
3241
|
-
var
|
|
3242
|
-
function
|
|
3243
|
-
if (Wn) return
|
|
3247
|
+
var ar, Wn;
|
|
3248
|
+
function ws() {
|
|
3249
|
+
if (Wn) return ar;
|
|
3244
3250
|
Wn = 1;
|
|
3245
|
-
var e = typeof Map == "function" && Map.prototype, n = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = e && n && typeof n.get == "function" ? n.get : null, a = e && Map.prototype.forEach, c = typeof Set == "function" && Set.prototype, s = Object.getOwnPropertyDescriptor && c ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, r = c && s && typeof s.get == "function" ? s.get : null, o = c && Set.prototype.forEach, i = typeof WeakMap == "function" && WeakMap.prototype, l = i ? WeakMap.prototype.has : null, d = typeof WeakSet == "function" && WeakSet.prototype, y = d ? WeakSet.prototype.has : null, f = typeof WeakRef == "function" && WeakRef.prototype, h = f ? WeakRef.prototype.deref : null, x = Boolean.prototype.valueOf, $ = Object.prototype.toString, u = Function.prototype.toString, m = String.prototype.match, v = String.prototype.slice, S = String.prototype.replace, T = String.prototype.toUpperCase, p = String.prototype.toLowerCase, O = RegExp.prototype.test, g = Array.prototype.concat, R = Array.prototype.join, C = Array.prototype.slice, N = Math.floor, B = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, P = Object.getOwnPropertySymbols, oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, H = typeof Symbol == "function" && typeof Symbol.iterator == "object", D = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === H || !0) ? Symbol.toStringTag : null, se = Object.prototype.propertyIsEnumerable, Z = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(
|
|
3246
|
-
return
|
|
3251
|
+
var e = typeof Map == "function" && Map.prototype, n = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = e && n && typeof n.get == "function" ? n.get : null, a = e && Map.prototype.forEach, c = typeof Set == "function" && Set.prototype, s = Object.getOwnPropertyDescriptor && c ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, r = c && s && typeof s.get == "function" ? s.get : null, o = c && Set.prototype.forEach, i = typeof WeakMap == "function" && WeakMap.prototype, l = i ? WeakMap.prototype.has : null, d = typeof WeakSet == "function" && WeakSet.prototype, y = d ? WeakSet.prototype.has : null, f = typeof WeakRef == "function" && WeakRef.prototype, h = f ? WeakRef.prototype.deref : null, x = Boolean.prototype.valueOf, $ = Object.prototype.toString, u = Function.prototype.toString, m = String.prototype.match, v = String.prototype.slice, S = String.prototype.replace, T = String.prototype.toUpperCase, p = String.prototype.toLowerCase, O = RegExp.prototype.test, g = Array.prototype.concat, R = Array.prototype.join, C = Array.prototype.slice, N = Math.floor, B = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, P = Object.getOwnPropertySymbols, oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, H = typeof Symbol == "function" && typeof Symbol.iterator == "object", D = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === H || !0) ? Symbol.toStringTag : null, se = Object.prototype.propertyIsEnumerable, Z = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(w) {
|
|
3252
|
+
return w.__proto__;
|
|
3247
3253
|
} : null);
|
|
3248
|
-
function A(
|
|
3249
|
-
if (
|
|
3250
|
-
return
|
|
3254
|
+
function A(w, j) {
|
|
3255
|
+
if (w === 1 / 0 || w === -1 / 0 || w !== w || w && w > -1e3 && w < 1e3 || O.call(/e/, j))
|
|
3256
|
+
return j;
|
|
3251
3257
|
var X = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
3252
|
-
if (typeof
|
|
3253
|
-
var ee =
|
|
3254
|
-
if (ee !==
|
|
3255
|
-
var ie = String(ee), M = v.call(
|
|
3258
|
+
if (typeof w == "number") {
|
|
3259
|
+
var ee = w < 0 ? -N(-w) : N(w);
|
|
3260
|
+
if (ee !== w) {
|
|
3261
|
+
var ie = String(ee), M = v.call(j, ie.length + 1);
|
|
3256
3262
|
return S.call(ie, X, "$&_") + "." + S.call(S.call(M, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
3257
3263
|
}
|
|
3258
3264
|
}
|
|
3259
|
-
return S.call(
|
|
3265
|
+
return S.call(j, X, "$&_");
|
|
3260
3266
|
}
|
|
3261
3267
|
var re = $s, E = re.custom, k = F(E) ? E : null;
|
|
3262
|
-
|
|
3268
|
+
ar = function w(j, X, ee, ie) {
|
|
3263
3269
|
var M = X || {};
|
|
3264
3270
|
if (W(M, "quoteStyle") && M.quoteStyle !== "single" && M.quoteStyle !== "double")
|
|
3265
3271
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
3266
3272
|
if (W(M, "maxStringLength") && (typeof M.maxStringLength == "number" ? M.maxStringLength < 0 && M.maxStringLength !== 1 / 0 : M.maxStringLength !== null))
|
|
3267
3273
|
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
3268
|
-
var
|
|
3269
|
-
if (typeof
|
|
3274
|
+
var xe = W(M, "customInspect") ? M.customInspect : !0;
|
|
3275
|
+
if (typeof xe != "boolean" && xe !== "symbol")
|
|
3270
3276
|
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
3271
3277
|
if (W(M, "indent") && M.indent !== null && M.indent !== " " && !(parseInt(M.indent, 10) === M.indent && M.indent > 0))
|
|
3272
3278
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
3273
3279
|
if (W(M, "numericSeparator") && typeof M.numericSeparator != "boolean")
|
|
3274
3280
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
3275
|
-
var
|
|
3276
|
-
if (typeof
|
|
3281
|
+
var Pe = M.numericSeparator;
|
|
3282
|
+
if (typeof j > "u")
|
|
3277
3283
|
return "undefined";
|
|
3278
|
-
if (
|
|
3284
|
+
if (j === null)
|
|
3279
3285
|
return "null";
|
|
3280
|
-
if (typeof
|
|
3281
|
-
return
|
|
3282
|
-
if (typeof
|
|
3283
|
-
return
|
|
3284
|
-
if (typeof
|
|
3285
|
-
if (
|
|
3286
|
-
return 1 / 0 /
|
|
3287
|
-
var de = String(
|
|
3288
|
-
return
|
|
3286
|
+
if (typeof j == "boolean")
|
|
3287
|
+
return j ? "true" : "false";
|
|
3288
|
+
if (typeof j == "string")
|
|
3289
|
+
return Te(j, M);
|
|
3290
|
+
if (typeof j == "number") {
|
|
3291
|
+
if (j === 0)
|
|
3292
|
+
return 1 / 0 / j > 0 ? "0" : "-0";
|
|
3293
|
+
var de = String(j);
|
|
3294
|
+
return Pe ? A(j, de) : de;
|
|
3289
3295
|
}
|
|
3290
|
-
if (typeof
|
|
3291
|
-
var
|
|
3292
|
-
return
|
|
3296
|
+
if (typeof j == "bigint") {
|
|
3297
|
+
var $e = String(j) + "n";
|
|
3298
|
+
return Pe ? A(j, $e) : $e;
|
|
3293
3299
|
}
|
|
3294
|
-
var
|
|
3295
|
-
if (typeof ee > "u" && (ee = 0), ee >=
|
|
3296
|
-
return U(
|
|
3297
|
-
var
|
|
3300
|
+
var it = typeof M.depth > "u" ? 5 : M.depth;
|
|
3301
|
+
if (typeof ee > "u" && (ee = 0), ee >= it && it > 0 && typeof j == "object")
|
|
3302
|
+
return U(j) ? "[Array]" : "[Object]";
|
|
3303
|
+
var ke = ka(M, ee);
|
|
3298
3304
|
if (typeof ie > "u")
|
|
3299
3305
|
ie = [];
|
|
3300
|
-
else if (he(ie,
|
|
3306
|
+
else if (he(ie, j) >= 0)
|
|
3301
3307
|
return "[Circular]";
|
|
3302
|
-
function me(
|
|
3303
|
-
if (
|
|
3308
|
+
function me(Ne, Ge, Aa) {
|
|
3309
|
+
if (Ge && (ie = C.call(ie), ie.push(Ge)), Aa) {
|
|
3304
3310
|
var Ir = {
|
|
3305
3311
|
depth: M.depth
|
|
3306
3312
|
};
|
|
3307
|
-
return W(M, "quoteStyle") && (Ir.quoteStyle = M.quoteStyle),
|
|
3313
|
+
return W(M, "quoteStyle") && (Ir.quoteStyle = M.quoteStyle), w(Ne, Ir, ee + 1, ie);
|
|
3308
3314
|
}
|
|
3309
|
-
return
|
|
3315
|
+
return w(Ne, M, ee + 1, ie);
|
|
3310
3316
|
}
|
|
3311
|
-
if (typeof
|
|
3312
|
-
var Cr = ae(
|
|
3317
|
+
if (typeof j == "function" && !z(j)) {
|
|
3318
|
+
var Cr = ae(j), qr = Je(j, me);
|
|
3313
3319
|
return "[Function" + (Cr ? ": " + Cr : " (anonymous)") + "]" + (qr.length > 0 ? " { " + R.call(qr, ", ") + " }" : "");
|
|
3314
3320
|
}
|
|
3315
|
-
if (F(
|
|
3316
|
-
var Er = H ? S.call(String(
|
|
3317
|
-
return typeof
|
|
3321
|
+
if (F(j)) {
|
|
3322
|
+
var Er = H ? S.call(String(j), /^(Symbol\(.*\))_[^)]*$/, "$1") : oe.call(j);
|
|
3323
|
+
return typeof j == "object" && !H ? Ie(Er) : Er;
|
|
3318
3324
|
}
|
|
3319
|
-
if (
|
|
3320
|
-
for (var
|
|
3321
|
-
|
|
3322
|
-
return
|
|
3325
|
+
if (Re(j)) {
|
|
3326
|
+
for (var Ue = "<" + p.call(String(j.nodeName)), st = j.attributes || [], Ve = 0; Ve < st.length; Ve++)
|
|
3327
|
+
Ue += " " + st[Ve].name + "=" + L(q(st[Ve].value), "double", M);
|
|
3328
|
+
return Ue += ">", j.childNodes && j.childNodes.length && (Ue += "..."), Ue += "</" + p.call(String(j.nodeName)) + ">", Ue;
|
|
3323
3329
|
}
|
|
3324
|
-
if (U(
|
|
3325
|
-
if (
|
|
3330
|
+
if (U(j)) {
|
|
3331
|
+
if (j.length === 0)
|
|
3326
3332
|
return "[]";
|
|
3327
|
-
var
|
|
3328
|
-
return
|
|
3333
|
+
var lt = Je(j, me);
|
|
3334
|
+
return ke && !Ra(lt) ? "[" + ot(lt, ke) + "]" : "[ " + R.call(lt, ", ") + " ]";
|
|
3329
3335
|
}
|
|
3330
|
-
if (K(
|
|
3331
|
-
var
|
|
3332
|
-
return !("cause" in Error.prototype) && "cause" in
|
|
3336
|
+
if (K(j)) {
|
|
3337
|
+
var ct = Je(j, me);
|
|
3338
|
+
return !("cause" in Error.prototype) && "cause" in j && !se.call(j, "cause") ? "{ [" + String(j) + "] " + R.call(g.call("[cause]: " + me(j.cause), ct), ", ") + " }" : ct.length === 0 ? "[" + String(j) + "]" : "{ [" + String(j) + "] " + R.call(ct, ", ") + " }";
|
|
3333
3339
|
}
|
|
3334
|
-
if (typeof
|
|
3335
|
-
if (k && typeof
|
|
3336
|
-
return re(
|
|
3337
|
-
if (
|
|
3338
|
-
return
|
|
3340
|
+
if (typeof j == "object" && xe) {
|
|
3341
|
+
if (k && typeof j[k] == "function" && re)
|
|
3342
|
+
return re(j, { depth: it - ee });
|
|
3343
|
+
if (xe !== "symbol" && typeof j.inspect == "function")
|
|
3344
|
+
return j.inspect();
|
|
3339
3345
|
}
|
|
3340
|
-
if (
|
|
3346
|
+
if (Se(j)) {
|
|
3341
3347
|
var Rr = [];
|
|
3342
|
-
return a && a.call(
|
|
3343
|
-
Rr.push(me(
|
|
3344
|
-
}), Pr("Map", t.call(
|
|
3348
|
+
return a && a.call(j, function(Ne, Ge) {
|
|
3349
|
+
Rr.push(me(Ge, j, !0) + " => " + me(Ne, j));
|
|
3350
|
+
}), Pr("Map", t.call(j), Rr, ke);
|
|
3345
3351
|
}
|
|
3346
|
-
if (ye(
|
|
3352
|
+
if (ye(j)) {
|
|
3347
3353
|
var kr = [];
|
|
3348
|
-
return o && o.call(
|
|
3349
|
-
kr.push(me(
|
|
3350
|
-
}), Pr("Set", r.call(
|
|
3354
|
+
return o && o.call(j, function(Ne) {
|
|
3355
|
+
kr.push(me(Ne, j));
|
|
3356
|
+
}), Pr("Set", r.call(j), kr, ke);
|
|
3351
3357
|
}
|
|
3352
|
-
if (
|
|
3353
|
-
return
|
|
3354
|
-
if (
|
|
3355
|
-
return
|
|
3356
|
-
if (
|
|
3357
|
-
return
|
|
3358
|
-
if (V(
|
|
3359
|
-
return
|
|
3360
|
-
if (_(
|
|
3361
|
-
return
|
|
3362
|
-
if (I(
|
|
3363
|
-
return
|
|
3364
|
-
if (ne(
|
|
3365
|
-
return
|
|
3366
|
-
if (typeof window < "u" &&
|
|
3358
|
+
if (qe(j))
|
|
3359
|
+
return at("WeakMap");
|
|
3360
|
+
if (Ee(j))
|
|
3361
|
+
return at("WeakSet");
|
|
3362
|
+
if (Oe(j))
|
|
3363
|
+
return at("WeakRef");
|
|
3364
|
+
if (V(j))
|
|
3365
|
+
return Ie(me(Number(j)));
|
|
3366
|
+
if (_(j))
|
|
3367
|
+
return Ie(me(B.call(j)));
|
|
3368
|
+
if (I(j))
|
|
3369
|
+
return Ie(x.call(j));
|
|
3370
|
+
if (ne(j))
|
|
3371
|
+
return Ie(me(String(j)));
|
|
3372
|
+
if (typeof window < "u" && j === window)
|
|
3367
3373
|
return "{ [object Window] }";
|
|
3368
|
-
if (typeof globalThis < "u" &&
|
|
3374
|
+
if (typeof globalThis < "u" && j === globalThis || typeof Ye < "u" && j === Ye)
|
|
3369
3375
|
return "{ [object globalThis] }";
|
|
3370
|
-
if (!J(
|
|
3371
|
-
var
|
|
3372
|
-
return
|
|
3376
|
+
if (!J(j) && !z(j)) {
|
|
3377
|
+
var ut = Je(j, me), Nr = Z ? Z(j) === Object.prototype : j instanceof Object || j.constructor === Object, ft = j instanceof Object ? "" : "null prototype", Ar = !Nr && D && Object(j) === j && D in j ? v.call(Y(j), 8, -1) : ft ? "Object" : "", Na = Nr || typeof j.constructor != "function" ? "" : j.constructor.name ? j.constructor.name + " " : "", pt = Na + (Ar || ft ? "[" + R.call(g.call([], Ar || [], ft || []), ": ") + "] " : "");
|
|
3378
|
+
return ut.length === 0 ? pt + "{}" : ke ? pt + "{" + ot(ut, ke) + "}" : pt + "{ " + R.call(ut, ", ") + " }";
|
|
3373
3379
|
}
|
|
3374
|
-
return String(
|
|
3380
|
+
return String(j);
|
|
3375
3381
|
};
|
|
3376
|
-
function L(
|
|
3377
|
-
var ee = (X.quoteStyle ||
|
|
3378
|
-
return ee +
|
|
3382
|
+
function L(w, j, X) {
|
|
3383
|
+
var ee = (X.quoteStyle || j) === "double" ? '"' : "'";
|
|
3384
|
+
return ee + w + ee;
|
|
3379
3385
|
}
|
|
3380
|
-
function q(
|
|
3381
|
-
return S.call(String(
|
|
3386
|
+
function q(w) {
|
|
3387
|
+
return S.call(String(w), /"/g, """);
|
|
3382
3388
|
}
|
|
3383
|
-
function U(
|
|
3384
|
-
return Y(
|
|
3389
|
+
function U(w) {
|
|
3390
|
+
return Y(w) === "[object Array]" && (!D || !(typeof w == "object" && D in w));
|
|
3385
3391
|
}
|
|
3386
|
-
function J(
|
|
3387
|
-
return Y(
|
|
3392
|
+
function J(w) {
|
|
3393
|
+
return Y(w) === "[object Date]" && (!D || !(typeof w == "object" && D in w));
|
|
3388
3394
|
}
|
|
3389
|
-
function z(
|
|
3390
|
-
return Y(
|
|
3395
|
+
function z(w) {
|
|
3396
|
+
return Y(w) === "[object RegExp]" && (!D || !(typeof w == "object" && D in w));
|
|
3391
3397
|
}
|
|
3392
|
-
function K(
|
|
3393
|
-
return Y(
|
|
3398
|
+
function K(w) {
|
|
3399
|
+
return Y(w) === "[object Error]" && (!D || !(typeof w == "object" && D in w));
|
|
3394
3400
|
}
|
|
3395
|
-
function ne(
|
|
3396
|
-
return Y(
|
|
3401
|
+
function ne(w) {
|
|
3402
|
+
return Y(w) === "[object String]" && (!D || !(typeof w == "object" && D in w));
|
|
3397
3403
|
}
|
|
3398
|
-
function V(
|
|
3399
|
-
return Y(
|
|
3404
|
+
function V(w) {
|
|
3405
|
+
return Y(w) === "[object Number]" && (!D || !(typeof w == "object" && D in w));
|
|
3400
3406
|
}
|
|
3401
|
-
function I(
|
|
3402
|
-
return Y(
|
|
3407
|
+
function I(w) {
|
|
3408
|
+
return Y(w) === "[object Boolean]" && (!D || !(typeof w == "object" && D in w));
|
|
3403
3409
|
}
|
|
3404
|
-
function F(
|
|
3410
|
+
function F(w) {
|
|
3405
3411
|
if (H)
|
|
3406
|
-
return
|
|
3407
|
-
if (typeof
|
|
3412
|
+
return w && typeof w == "object" && w instanceof Symbol;
|
|
3413
|
+
if (typeof w == "symbol")
|
|
3408
3414
|
return !0;
|
|
3409
|
-
if (!
|
|
3415
|
+
if (!w || typeof w != "object" || !oe)
|
|
3410
3416
|
return !1;
|
|
3411
3417
|
try {
|
|
3412
|
-
return oe.call(
|
|
3418
|
+
return oe.call(w), !0;
|
|
3413
3419
|
} catch {
|
|
3414
3420
|
}
|
|
3415
3421
|
return !1;
|
|
3416
3422
|
}
|
|
3417
|
-
function _(
|
|
3418
|
-
if (!
|
|
3423
|
+
function _(w) {
|
|
3424
|
+
if (!w || typeof w != "object" || !B)
|
|
3419
3425
|
return !1;
|
|
3420
3426
|
try {
|
|
3421
|
-
return B.call(
|
|
3427
|
+
return B.call(w), !0;
|
|
3422
3428
|
} catch {
|
|
3423
3429
|
}
|
|
3424
3430
|
return !1;
|
|
3425
3431
|
}
|
|
3426
|
-
var Q = Object.prototype.hasOwnProperty || function(
|
|
3427
|
-
return
|
|
3432
|
+
var Q = Object.prototype.hasOwnProperty || function(w) {
|
|
3433
|
+
return w in this;
|
|
3428
3434
|
};
|
|
3429
|
-
function W(
|
|
3430
|
-
return Q.call(
|
|
3435
|
+
function W(w, j) {
|
|
3436
|
+
return Q.call(w, j);
|
|
3431
3437
|
}
|
|
3432
|
-
function Y(
|
|
3433
|
-
return $.call(
|
|
3438
|
+
function Y(w) {
|
|
3439
|
+
return $.call(w);
|
|
3434
3440
|
}
|
|
3435
|
-
function ae(
|
|
3436
|
-
if (
|
|
3437
|
-
return
|
|
3438
|
-
var
|
|
3439
|
-
return
|
|
3441
|
+
function ae(w) {
|
|
3442
|
+
if (w.name)
|
|
3443
|
+
return w.name;
|
|
3444
|
+
var j = m.call(u.call(w), /^function\s*([\w$]+)/);
|
|
3445
|
+
return j ? j[1] : null;
|
|
3440
3446
|
}
|
|
3441
|
-
function he(
|
|
3442
|
-
if (
|
|
3443
|
-
return
|
|
3444
|
-
for (var X = 0, ee =
|
|
3445
|
-
if (
|
|
3447
|
+
function he(w, j) {
|
|
3448
|
+
if (w.indexOf)
|
|
3449
|
+
return w.indexOf(j);
|
|
3450
|
+
for (var X = 0, ee = w.length; X < ee; X++)
|
|
3451
|
+
if (w[X] === j)
|
|
3446
3452
|
return X;
|
|
3447
3453
|
return -1;
|
|
3448
3454
|
}
|
|
3449
|
-
function
|
|
3450
|
-
if (!t || !
|
|
3455
|
+
function Se(w) {
|
|
3456
|
+
if (!t || !w || typeof w != "object")
|
|
3451
3457
|
return !1;
|
|
3452
3458
|
try {
|
|
3453
|
-
t.call(
|
|
3459
|
+
t.call(w);
|
|
3454
3460
|
try {
|
|
3455
|
-
r.call(
|
|
3461
|
+
r.call(w);
|
|
3456
3462
|
} catch {
|
|
3457
3463
|
return !0;
|
|
3458
3464
|
}
|
|
3459
|
-
return
|
|
3465
|
+
return w instanceof Map;
|
|
3460
3466
|
} catch {
|
|
3461
3467
|
}
|
|
3462
3468
|
return !1;
|
|
3463
3469
|
}
|
|
3464
|
-
function
|
|
3465
|
-
if (!l || !
|
|
3470
|
+
function qe(w) {
|
|
3471
|
+
if (!l || !w || typeof w != "object")
|
|
3466
3472
|
return !1;
|
|
3467
3473
|
try {
|
|
3468
|
-
l.call(
|
|
3474
|
+
l.call(w, l);
|
|
3469
3475
|
try {
|
|
3470
|
-
y.call(
|
|
3476
|
+
y.call(w, y);
|
|
3471
3477
|
} catch {
|
|
3472
3478
|
return !0;
|
|
3473
3479
|
}
|
|
3474
|
-
return
|
|
3480
|
+
return w instanceof WeakMap;
|
|
3475
3481
|
} catch {
|
|
3476
3482
|
}
|
|
3477
3483
|
return !1;
|
|
3478
3484
|
}
|
|
3479
|
-
function
|
|
3480
|
-
if (!h || !
|
|
3485
|
+
function Oe(w) {
|
|
3486
|
+
if (!h || !w || typeof w != "object")
|
|
3481
3487
|
return !1;
|
|
3482
3488
|
try {
|
|
3483
|
-
return h.call(
|
|
3489
|
+
return h.call(w), !0;
|
|
3484
3490
|
} catch {
|
|
3485
3491
|
}
|
|
3486
3492
|
return !1;
|
|
3487
3493
|
}
|
|
3488
|
-
function ye(
|
|
3489
|
-
if (!r || !
|
|
3494
|
+
function ye(w) {
|
|
3495
|
+
if (!r || !w || typeof w != "object")
|
|
3490
3496
|
return !1;
|
|
3491
3497
|
try {
|
|
3492
|
-
r.call(
|
|
3498
|
+
r.call(w);
|
|
3493
3499
|
try {
|
|
3494
|
-
t.call(
|
|
3500
|
+
t.call(w);
|
|
3495
3501
|
} catch {
|
|
3496
3502
|
return !0;
|
|
3497
3503
|
}
|
|
3498
|
-
return
|
|
3504
|
+
return w instanceof Set;
|
|
3499
3505
|
} catch {
|
|
3500
3506
|
}
|
|
3501
3507
|
return !1;
|
|
3502
3508
|
}
|
|
3503
|
-
function
|
|
3504
|
-
if (!y || !
|
|
3509
|
+
function Ee(w) {
|
|
3510
|
+
if (!y || !w || typeof w != "object")
|
|
3505
3511
|
return !1;
|
|
3506
3512
|
try {
|
|
3507
|
-
y.call(
|
|
3513
|
+
y.call(w, y);
|
|
3508
3514
|
try {
|
|
3509
|
-
l.call(
|
|
3515
|
+
l.call(w, l);
|
|
3510
3516
|
} catch {
|
|
3511
3517
|
return !0;
|
|
3512
3518
|
}
|
|
3513
|
-
return
|
|
3519
|
+
return w instanceof WeakSet;
|
|
3514
3520
|
} catch {
|
|
3515
3521
|
}
|
|
3516
3522
|
return !1;
|
|
3517
3523
|
}
|
|
3518
|
-
function
|
|
3519
|
-
return !
|
|
3524
|
+
function Re(w) {
|
|
3525
|
+
return !w || typeof w != "object" ? !1 : typeof HTMLElement < "u" && w instanceof HTMLElement ? !0 : typeof w.nodeName == "string" && typeof w.getAttribute == "function";
|
|
3520
3526
|
}
|
|
3521
|
-
function
|
|
3522
|
-
if (
|
|
3523
|
-
var X =
|
|
3524
|
-
return
|
|
3527
|
+
function Te(w, j) {
|
|
3528
|
+
if (w.length > j.maxStringLength) {
|
|
3529
|
+
var X = w.length - j.maxStringLength, ee = "... " + X + " more character" + (X > 1 ? "s" : "");
|
|
3530
|
+
return Te(v.call(w, 0, j.maxStringLength), j) + ee;
|
|
3525
3531
|
}
|
|
3526
|
-
var ie = S.call(S.call(
|
|
3527
|
-
return L(ie, "single",
|
|
3532
|
+
var ie = S.call(S.call(w, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ea);
|
|
3533
|
+
return L(ie, "single", j);
|
|
3528
3534
|
}
|
|
3529
|
-
function Ea(
|
|
3530
|
-
var
|
|
3535
|
+
function Ea(w) {
|
|
3536
|
+
var j = w.charCodeAt(0), X = {
|
|
3531
3537
|
8: "b",
|
|
3532
3538
|
9: "t",
|
|
3533
3539
|
10: "n",
|
|
3534
3540
|
12: "f",
|
|
3535
3541
|
13: "r"
|
|
3536
|
-
}[
|
|
3537
|
-
return X ? "\\" + X : "\\x" + (
|
|
3542
|
+
}[j];
|
|
3543
|
+
return X ? "\\" + X : "\\x" + (j < 16 ? "0" : "") + T.call(j.toString(16));
|
|
3538
3544
|
}
|
|
3539
|
-
function
|
|
3540
|
-
return "Object(" +
|
|
3545
|
+
function Ie(w) {
|
|
3546
|
+
return "Object(" + w + ")";
|
|
3541
3547
|
}
|
|
3542
|
-
function
|
|
3543
|
-
return
|
|
3548
|
+
function at(w) {
|
|
3549
|
+
return w + " { ? }";
|
|
3544
3550
|
}
|
|
3545
|
-
function Pr(
|
|
3546
|
-
var ie = ee ?
|
|
3547
|
-
return
|
|
3551
|
+
function Pr(w, j, X, ee) {
|
|
3552
|
+
var ie = ee ? ot(X, ee) : R.call(X, ", ");
|
|
3553
|
+
return w + " (" + j + ") {" + ie + "}";
|
|
3548
3554
|
}
|
|
3549
|
-
function Ra(
|
|
3550
|
-
for (var
|
|
3551
|
-
if (he(j
|
|
3555
|
+
function Ra(w) {
|
|
3556
|
+
for (var j = 0; j < w.length; j++)
|
|
3557
|
+
if (he(w[j], `
|
|
3552
3558
|
`) >= 0)
|
|
3553
3559
|
return !1;
|
|
3554
3560
|
return !0;
|
|
3555
3561
|
}
|
|
3556
|
-
function ka(
|
|
3562
|
+
function ka(w, j) {
|
|
3557
3563
|
var X;
|
|
3558
|
-
if (
|
|
3564
|
+
if (w.indent === " ")
|
|
3559
3565
|
X = " ";
|
|
3560
|
-
else if (typeof
|
|
3561
|
-
X = R.call(Array(
|
|
3566
|
+
else if (typeof w.indent == "number" && w.indent > 0)
|
|
3567
|
+
X = R.call(Array(w.indent + 1), " ");
|
|
3562
3568
|
else
|
|
3563
3569
|
return null;
|
|
3564
3570
|
return {
|
|
3565
3571
|
base: X,
|
|
3566
|
-
prev: R.call(Array(
|
|
3572
|
+
prev: R.call(Array(j + 1), X)
|
|
3567
3573
|
};
|
|
3568
3574
|
}
|
|
3569
|
-
function
|
|
3570
|
-
if (
|
|
3575
|
+
function ot(w, j) {
|
|
3576
|
+
if (w.length === 0)
|
|
3571
3577
|
return "";
|
|
3572
3578
|
var X = `
|
|
3573
|
-
` +
|
|
3574
|
-
return X + R.call(
|
|
3575
|
-
` +
|
|
3579
|
+
` + j.prev + j.base;
|
|
3580
|
+
return X + R.call(w, "," + X) + `
|
|
3581
|
+
` + j.prev;
|
|
3576
3582
|
}
|
|
3577
|
-
function
|
|
3578
|
-
var X = U(
|
|
3583
|
+
function Je(w, j) {
|
|
3584
|
+
var X = U(w), ee = [];
|
|
3579
3585
|
if (X) {
|
|
3580
|
-
ee.length =
|
|
3581
|
-
for (var ie = 0; ie <
|
|
3582
|
-
ee[ie] = W(
|
|
3586
|
+
ee.length = w.length;
|
|
3587
|
+
for (var ie = 0; ie < w.length; ie++)
|
|
3588
|
+
ee[ie] = W(w, ie) ? j(w[ie], w) : "";
|
|
3583
3589
|
}
|
|
3584
|
-
var M = typeof P == "function" ? P(
|
|
3590
|
+
var M = typeof P == "function" ? P(w) : [], xe;
|
|
3585
3591
|
if (H) {
|
|
3586
|
-
|
|
3587
|
-
for (var
|
|
3588
|
-
|
|
3592
|
+
xe = {};
|
|
3593
|
+
for (var Pe = 0; Pe < M.length; Pe++)
|
|
3594
|
+
xe["$" + M[Pe]] = M[Pe];
|
|
3589
3595
|
}
|
|
3590
|
-
for (var de in
|
|
3591
|
-
W(
|
|
3596
|
+
for (var de in w)
|
|
3597
|
+
W(w, de) && (X && String(Number(de)) === de && de < w.length || H && xe["$" + de] instanceof Symbol || (O.call(/[^\w$]/, de) ? ee.push(j(de, w) + ": " + j(w[de], w)) : ee.push(de + ": " + j(w[de], w))));
|
|
3592
3598
|
if (typeof P == "function")
|
|
3593
|
-
for (var
|
|
3594
|
-
se.call(
|
|
3599
|
+
for (var $e = 0; $e < M.length; $e++)
|
|
3600
|
+
se.call(w, M[$e]) && ee.push("[" + j(M[$e]) + "]: " + j(w[M[$e]], w));
|
|
3595
3601
|
return ee;
|
|
3596
3602
|
}
|
|
3597
|
-
return
|
|
3603
|
+
return ar;
|
|
3598
3604
|
}
|
|
3599
|
-
var
|
|
3600
|
-
function
|
|
3601
|
-
if (Jn) return
|
|
3605
|
+
var or, Jn;
|
|
3606
|
+
function js() {
|
|
3607
|
+
if (Jn) return or;
|
|
3602
3608
|
Jn = 1;
|
|
3603
|
-
var e = /* @__PURE__ */ Or(), n = vs(), t = /* @__PURE__ */
|
|
3609
|
+
var e = /* @__PURE__ */ Or(), n = vs(), t = /* @__PURE__ */ ws(), a = /* @__PURE__ */ ze(), c = e("%WeakMap%", !0), s = e("%Map%", !0), r = n("WeakMap.prototype.get", !0), o = n("WeakMap.prototype.set", !0), i = n("WeakMap.prototype.has", !0), l = n("Map.prototype.get", !0), d = n("Map.prototype.set", !0), y = n("Map.prototype.has", !0), f = function(u, m) {
|
|
3604
3610
|
for (var v = u, S; (S = v.next) !== null; v = S)
|
|
3605
3611
|
if (S.key === m)
|
|
3606
3612
|
return v.next = S.next, S.next = /** @type {NonNullable<typeof list.next>} */
|
|
@@ -3620,7 +3626,7 @@ function ws() {
|
|
|
3620
3626
|
}, $ = function(u, m) {
|
|
3621
3627
|
return !!f(u, m);
|
|
3622
3628
|
};
|
|
3623
|
-
return
|
|
3629
|
+
return or = function() {
|
|
3624
3630
|
var m, v, S, T = {
|
|
3625
3631
|
assert: function(p) {
|
|
3626
3632
|
if (!T.has(p))
|
|
@@ -3652,17 +3658,17 @@ function ws() {
|
|
|
3652
3658
|
}
|
|
3653
3659
|
};
|
|
3654
3660
|
return T;
|
|
3655
|
-
},
|
|
3661
|
+
}, or;
|
|
3656
3662
|
}
|
|
3657
|
-
var
|
|
3663
|
+
var ir, Vn;
|
|
3658
3664
|
function Tr() {
|
|
3659
|
-
if (Vn) return
|
|
3665
|
+
if (Vn) return ir;
|
|
3660
3666
|
Vn = 1;
|
|
3661
3667
|
var e = String.prototype.replace, n = /%20/g, t = {
|
|
3662
3668
|
RFC1738: "RFC1738",
|
|
3663
3669
|
RFC3986: "RFC3986"
|
|
3664
3670
|
};
|
|
3665
|
-
return
|
|
3671
|
+
return ir = {
|
|
3666
3672
|
default: t.RFC3986,
|
|
3667
3673
|
formatters: {
|
|
3668
3674
|
RFC1738: function(a) {
|
|
@@ -3674,11 +3680,11 @@ function Tr() {
|
|
|
3674
3680
|
},
|
|
3675
3681
|
RFC1738: t.RFC1738,
|
|
3676
3682
|
RFC3986: t.RFC3986
|
|
3677
|
-
},
|
|
3683
|
+
}, ir;
|
|
3678
3684
|
}
|
|
3679
|
-
var
|
|
3680
|
-
function
|
|
3681
|
-
if (Gn) return
|
|
3685
|
+
var sr, Gn;
|
|
3686
|
+
function Pa() {
|
|
3687
|
+
if (Gn) return sr;
|
|
3682
3688
|
Gn = 1;
|
|
3683
3689
|
var e = /* @__PURE__ */ Tr(), n = Object.prototype.hasOwnProperty, t = Array.isArray, a = function() {
|
|
3684
3690
|
for (var u = [], m = 0; m < 256; ++m)
|
|
@@ -3788,7 +3794,7 @@ function Ca() {
|
|
|
3788
3794
|
}
|
|
3789
3795
|
return v(m);
|
|
3790
3796
|
};
|
|
3791
|
-
return
|
|
3797
|
+
return sr = {
|
|
3792
3798
|
arrayToObject: s,
|
|
3793
3799
|
assign: o,
|
|
3794
3800
|
combine: x,
|
|
@@ -3799,13 +3805,13 @@ function Ca() {
|
|
|
3799
3805
|
isRegExp: f,
|
|
3800
3806
|
maybeMap: $,
|
|
3801
3807
|
merge: r
|
|
3802
|
-
},
|
|
3808
|
+
}, sr;
|
|
3803
3809
|
}
|
|
3804
|
-
var
|
|
3810
|
+
var lr, Dn;
|
|
3805
3811
|
function Ss() {
|
|
3806
|
-
if (Dn) return
|
|
3812
|
+
if (Dn) return lr;
|
|
3807
3813
|
Dn = 1;
|
|
3808
|
-
var e =
|
|
3814
|
+
var e = js(), n = /* @__PURE__ */ Pa(), t = /* @__PURE__ */ Tr(), a = Object.prototype.hasOwnProperty, c = {
|
|
3809
3815
|
brackets: function(u) {
|
|
3810
3816
|
return u + "[]";
|
|
3811
3817
|
},
|
|
@@ -3955,7 +3961,7 @@ function Ss() {
|
|
|
3955
3961
|
strictNullHandling: typeof u.strictNullHandling == "boolean" ? u.strictNullHandling : d.strictNullHandling
|
|
3956
3962
|
};
|
|
3957
3963
|
};
|
|
3958
|
-
return
|
|
3964
|
+
return lr = function($, u) {
|
|
3959
3965
|
var m = $, v = x(u), S, T;
|
|
3960
3966
|
typeof v.filter == "function" ? (T = v.filter, m = T("", m)) : s(v.filter) && (T = v.filter, S = T);
|
|
3961
3967
|
var p = [];
|
|
@@ -3988,13 +3994,13 @@ function Ss() {
|
|
|
3988
3994
|
}
|
|
3989
3995
|
var B = p.join(v.delimiter), P = v.addQueryPrefix === !0 ? "?" : "";
|
|
3990
3996
|
return v.charsetSentinel && (v.charset === "iso-8859-1" ? P += "utf8=%26%2310003%3B&" : P += "utf8=%E2%9C%93&"), B.length > 0 ? P + B : "";
|
|
3991
|
-
},
|
|
3997
|
+
}, lr;
|
|
3992
3998
|
}
|
|
3993
|
-
var
|
|
3999
|
+
var cr, Qn;
|
|
3994
4000
|
function Os() {
|
|
3995
|
-
if (Qn) return
|
|
4001
|
+
if (Qn) return cr;
|
|
3996
4002
|
Qn = 1;
|
|
3997
|
-
var e = /* @__PURE__ */
|
|
4003
|
+
var e = /* @__PURE__ */ Pa(), n = Object.prototype.hasOwnProperty, t = Array.isArray, a = {
|
|
3998
4004
|
allowDots: !1,
|
|
3999
4005
|
allowEmptyArrays: !1,
|
|
4000
4006
|
allowPrototypes: !1,
|
|
@@ -4113,7 +4119,7 @@ function Os() {
|
|
|
4113
4119
|
strictNullHandling: typeof h.strictNullHandling == "boolean" ? h.strictNullHandling : a.strictNullHandling
|
|
4114
4120
|
};
|
|
4115
4121
|
};
|
|
4116
|
-
return
|
|
4122
|
+
return cr = function(f, h) {
|
|
4117
4123
|
var x = y(h);
|
|
4118
4124
|
if (f === "" || f === null || typeof f > "u")
|
|
4119
4125
|
return x.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
@@ -4122,22 +4128,22 @@ function Os() {
|
|
|
4122
4128
|
u = e.merge(u, T, x);
|
|
4123
4129
|
}
|
|
4124
4130
|
return x.allowSparse === !0 ? u : e.compact(u);
|
|
4125
|
-
},
|
|
4131
|
+
}, cr;
|
|
4126
4132
|
}
|
|
4127
|
-
var
|
|
4128
|
-
function
|
|
4129
|
-
if (Kn) return
|
|
4133
|
+
var ur, Kn;
|
|
4134
|
+
function Ca() {
|
|
4135
|
+
if (Kn) return ur;
|
|
4130
4136
|
Kn = 1;
|
|
4131
4137
|
var e = /* @__PURE__ */ Ss(), n = /* @__PURE__ */ Os(), t = /* @__PURE__ */ Tr();
|
|
4132
|
-
return
|
|
4138
|
+
return ur = {
|
|
4133
4139
|
formats: t,
|
|
4134
4140
|
parse: n,
|
|
4135
4141
|
stringify: e
|
|
4136
|
-
},
|
|
4142
|
+
}, ur;
|
|
4137
4143
|
}
|
|
4138
4144
|
var Yn;
|
|
4139
4145
|
function Ts() {
|
|
4140
|
-
if (Yn) return
|
|
4146
|
+
if (Yn) return Ce;
|
|
4141
4147
|
Yn = 1;
|
|
4142
4148
|
var e = Ji();
|
|
4143
4149
|
function n() {
|
|
@@ -4187,7 +4193,7 @@ function Ts() {
|
|
|
4187
4193
|
"ftp:": !0,
|
|
4188
4194
|
"gopher:": !0,
|
|
4189
4195
|
"file:": !0
|
|
4190
|
-
}, u = /* @__PURE__ */
|
|
4196
|
+
}, u = /* @__PURE__ */ Ca();
|
|
4191
4197
|
function m(p, O, g) {
|
|
4192
4198
|
if (p && typeof p == "object" && p instanceof n)
|
|
4193
4199
|
return p;
|
|
@@ -4257,8 +4263,8 @@ function Ts() {
|
|
|
4257
4263
|
ae !== -1 && (this.hash = P.substr(ae), P = P.slice(0, ae));
|
|
4258
4264
|
var he = P.indexOf("?");
|
|
4259
4265
|
if (he !== -1 ? (this.search = P.substr(he), this.query = P.substr(he + 1), O && (this.query = u.parse(this.query)), P = P.slice(0, he)) : O && (this.search = "", this.query = {}), P && (this.pathname = P), $[D] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
|
|
4260
|
-
var _ = this.pathname || "",
|
|
4261
|
-
this.path = _ +
|
|
4266
|
+
var _ = this.pathname || "", Se = this.search || "";
|
|
4267
|
+
this.path = _ + Se;
|
|
4262
4268
|
}
|
|
4263
4269
|
return this.href = this.format(), this;
|
|
4264
4270
|
};
|
|
@@ -4356,9 +4362,9 @@ function Ts() {
|
|
|
4356
4362
|
}, n.prototype.parseHost = function() {
|
|
4357
4363
|
var p = this.host, O = a.exec(p);
|
|
4358
4364
|
O && (O = O[0], O !== ":" && (this.port = O.substr(1)), p = p.substr(0, p.length - O.length)), p && (this.hostname = p);
|
|
4359
|
-
},
|
|
4365
|
+
}, Ce.parse = m, Ce.resolve = S, Ce.resolveObject = T, Ce.format = v, Ce.Url = n, Ce;
|
|
4360
4366
|
}
|
|
4361
|
-
var
|
|
4367
|
+
var fr = Ts(), pr = /* @__PURE__ */ Ca(), Ps = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), Cs = class {
|
|
4362
4368
|
constructor(e, n = {}) {
|
|
4363
4369
|
this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
|
|
4364
4370
|
harIsAlreadyEncoded: !1,
|
|
@@ -4434,7 +4440,7 @@ var ur = Ts(), fr = /* @__PURE__ */ qa(), Ps = (e) => typeof e == "object" && "l
|
|
|
4434
4440
|
}
|
|
4435
4441
|
break;
|
|
4436
4442
|
case "application/x-www-form-urlencoded":
|
|
4437
|
-
t.postData.params ? (t.postData.paramsObj = t.postData.params.reduce(Hr, {}), t.postData.text =
|
|
4443
|
+
t.postData.params ? (t.postData.paramsObj = t.postData.params.reduce(Hr, {}), t.postData.text = pr.stringify(t.postData.paramsObj)) : t.postData.text = "";
|
|
4438
4444
|
break;
|
|
4439
4445
|
case "text/json":
|
|
4440
4446
|
case "text/x-json":
|
|
@@ -4451,16 +4457,16 @@ var ur = Ts(), fr = /* @__PURE__ */ qa(), Ps = (e) => typeof e == "object" && "l
|
|
|
4451
4457
|
const c = {
|
|
4452
4458
|
...t.allHeaders,
|
|
4453
4459
|
...t.headersObj
|
|
4454
|
-
}, s =
|
|
4460
|
+
}, s = fr.parse(t.url, !0, !0);
|
|
4455
4461
|
t.queryObj = {
|
|
4456
4462
|
...t.queryObj,
|
|
4457
4463
|
...s.query
|
|
4458
4464
|
};
|
|
4459
4465
|
let r;
|
|
4460
|
-
n.harIsAlreadyEncoded ? r =
|
|
4466
|
+
n.harIsAlreadyEncoded ? r = pr.stringify(t.queryObj, {
|
|
4461
4467
|
encode: !1,
|
|
4462
4468
|
indices: !1
|
|
4463
|
-
}) : r =
|
|
4469
|
+
}) : r = pr.stringify(t.queryObj, {
|
|
4464
4470
|
indices: !1
|
|
4465
4471
|
});
|
|
4466
4472
|
const o = {
|
|
@@ -4468,11 +4474,11 @@ var ur = Ts(), fr = /* @__PURE__ */ qa(), Ps = (e) => typeof e == "object" && "l
|
|
|
4468
4474
|
query: t.queryObj,
|
|
4469
4475
|
search: r,
|
|
4470
4476
|
path: r ? `${s.pathname}?${r}` : s.pathname
|
|
4471
|
-
}, i =
|
|
4477
|
+
}, i = fr.format({
|
|
4472
4478
|
...s,
|
|
4473
4479
|
query: null,
|
|
4474
4480
|
search: null
|
|
4475
|
-
}), l =
|
|
4481
|
+
}), l = fr.format({
|
|
4476
4482
|
...s,
|
|
4477
4483
|
...o
|
|
4478
4484
|
});
|
|
@@ -4558,7 +4564,24 @@ const qs = ({
|
|
|
4558
4564
|
break;
|
|
4559
4565
|
}
|
|
4560
4566
|
return t ? t[0] : "";
|
|
4561
|
-
},
|
|
4567
|
+
}, be = {
|
|
4568
|
+
green: "text-green-600",
|
|
4569
|
+
blue: "text-sky-600",
|
|
4570
|
+
yellow: "text-yellow-600",
|
|
4571
|
+
red: "text-red-600",
|
|
4572
|
+
purple: "text-purple-600",
|
|
4573
|
+
indigo: "text-indigo-600",
|
|
4574
|
+
gray: "text-gray-600"
|
|
4575
|
+
}, Rs = {
|
|
4576
|
+
get: be.green,
|
|
4577
|
+
post: be.blue,
|
|
4578
|
+
put: be.yellow,
|
|
4579
|
+
delete: be.red,
|
|
4580
|
+
patch: be.purple,
|
|
4581
|
+
options: be.indigo,
|
|
4582
|
+
head: be.gray,
|
|
4583
|
+
trace: be.gray
|
|
4584
|
+
}, qa = (e) => Rs[e.toLocaleLowerCase()] ?? be.gray, ks = Me(
|
|
4562
4585
|
/* GraphQL */
|
|
4563
4586
|
`
|
|
4564
4587
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
@@ -4570,7 +4593,7 @@ const qs = ({
|
|
|
4570
4593
|
}
|
|
4571
4594
|
}
|
|
4572
4595
|
`
|
|
4573
|
-
),
|
|
4596
|
+
), Ns = [
|
|
4574
4597
|
{ value: "shell", label: "cURL" },
|
|
4575
4598
|
{ value: "js", label: "JavaScript" },
|
|
4576
4599
|
{ value: "python", label: "Python" },
|
|
@@ -4582,12 +4605,12 @@ const qs = ({
|
|
|
4582
4605
|
{ value: "php", label: "PHP" },
|
|
4583
4606
|
{ value: "ruby", label: "Ruby" },
|
|
4584
4607
|
{ value: "swift", label: "Swift" }
|
|
4585
|
-
],
|
|
4608
|
+
], As = ({
|
|
4586
4609
|
operation: e,
|
|
4587
4610
|
selectedResponse: n,
|
|
4588
4611
|
onSelectResponse: t
|
|
4589
4612
|
}) => {
|
|
4590
|
-
const { input: a, type: c, options: s } =
|
|
4613
|
+
const { input: a, type: c, options: s } = et(), r = Ia(), o = Ke(ks, { input: a, type: c }), i = gr(o), l = co(), d = qa(e.method), [y, f] = Va(), [, h] = ca(), [x, $] = ge(), u = y.get("lang") ?? s?.examplesLanguage ?? "shell", m = e.requestBody?.content, v = m && s?.transformExamples ? s.transformExamples({
|
|
4591
4614
|
auth: r,
|
|
4592
4615
|
type: "request",
|
|
4593
4616
|
operation: e,
|
|
@@ -4607,8 +4630,8 @@ const qs = ({
|
|
|
4607
4630
|
}
|
|
4608
4631
|
)
|
|
4609
4632
|
}
|
|
4610
|
-
), { selectedServer: T } = vr(i.data.schema.servers), p =
|
|
4611
|
-
const C = x ?? (v?.[0]?.schema ?
|
|
4633
|
+
), { selectedServer: T } = vr(i.data.schema.servers), p = fa(() => {
|
|
4634
|
+
const C = x ?? (v?.[0]?.schema ? we(
|
|
4612
4635
|
v[0].schema
|
|
4613
4636
|
) : void 0), N = qs({
|
|
4614
4637
|
operation: e,
|
|
@@ -4625,7 +4648,7 @@ const qs = ({
|
|
|
4625
4648
|
e,
|
|
4626
4649
|
T,
|
|
4627
4650
|
u
|
|
4628
|
-
]), [O, g] =
|
|
4651
|
+
]), [O, g] = wo({ rootMargin: "200px 0px 200px 0px" }), R = g && (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 && !s?.disablePlayground);
|
|
4629
4652
|
return /* @__PURE__ */ b.jsxs(
|
|
4630
4653
|
"aside",
|
|
4631
4654
|
{
|
|
@@ -4634,7 +4657,7 @@ const qs = ({
|
|
|
4634
4657
|
"data-pagefind-ignore": "all",
|
|
4635
4658
|
children: [
|
|
4636
4659
|
/* @__PURE__ */ b.jsxs($r, { children: [
|
|
4637
|
-
/* @__PURE__ */ b.jsxs(
|
|
4660
|
+
/* @__PURE__ */ b.jsxs(wr, { className: "flex justify-between items-center flex-nowrap py-2.5 gap-2 text-xs", children: [
|
|
4638
4661
|
/* @__PURE__ */ b.jsxs("span", { className: "font-mono break-words leading-6", children: [
|
|
4639
4662
|
/* @__PURE__ */ b.jsx("span", { className: pe("font-semibold", d), children: e.method.toUpperCase() }),
|
|
4640
4663
|
" ",
|
|
@@ -4650,8 +4673,8 @@ const qs = ({
|
|
|
4650
4673
|
)
|
|
4651
4674
|
] }),
|
|
4652
4675
|
g && /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
4653
|
-
/* @__PURE__ */ b.jsx(
|
|
4654
|
-
|
|
4676
|
+
/* @__PURE__ */ b.jsx(ya, { className: "p-0", children: /* @__PURE__ */ b.jsx(ha, { children: /* @__PURE__ */ b.jsx(
|
|
4677
|
+
da,
|
|
4655
4678
|
{
|
|
4656
4679
|
embedded: !0,
|
|
4657
4680
|
language: u,
|
|
@@ -4660,10 +4683,10 @@ const qs = ({
|
|
|
4660
4683
|
code: p
|
|
4661
4684
|
}
|
|
4662
4685
|
) }) }),
|
|
4663
|
-
/* @__PURE__ */ b.jsxs(
|
|
4686
|
+
/* @__PURE__ */ b.jsxs(ma, { className: "flex items-center text-xs gap-2 justify-end py-2.5", children: [
|
|
4664
4687
|
/* @__PURE__ */ b.jsx("span", { children: "Show example in" }),
|
|
4665
4688
|
/* @__PURE__ */ b.jsx(
|
|
4666
|
-
|
|
4689
|
+
Xe,
|
|
4667
4690
|
{
|
|
4668
4691
|
className: "self-start max-w-[150px]",
|
|
4669
4692
|
value: u,
|
|
@@ -4672,7 +4695,7 @@ const qs = ({
|
|
|
4672
4695
|
f((N) => (N.set("lang", C.target.value), N));
|
|
4673
4696
|
});
|
|
4674
4697
|
},
|
|
4675
|
-
options:
|
|
4698
|
+
options: Ns
|
|
4676
4699
|
}
|
|
4677
4700
|
)
|
|
4678
4701
|
] })
|
|
@@ -4705,7 +4728,7 @@ const qs = ({
|
|
|
4705
4728
|
]
|
|
4706
4729
|
}
|
|
4707
4730
|
);
|
|
4708
|
-
},
|
|
4731
|
+
}, Is = pe, Us = ({
|
|
4709
4732
|
responses: e,
|
|
4710
4733
|
selectedResponse: n,
|
|
4711
4734
|
onSelectResponse: t
|
|
@@ -4718,7 +4741,7 @@ const qs = ({
|
|
|
4718
4741
|
je.Trigger,
|
|
4719
4742
|
{
|
|
4720
4743
|
value: o.statusCode,
|
|
4721
|
-
className:
|
|
4744
|
+
className: Is(
|
|
4722
4745
|
"py-1 -mx-2 px-2 rounded-md",
|
|
4723
4746
|
"data-[state=active]:dark:ring-1 data-[state=active]:dark:ring-border data-[state=active]:bg-background data-[state=active]:drop-shadow",
|
|
4724
4747
|
"data-[state=active]:font-semibold data-[state=active]:text-foreground"
|
|
@@ -4728,13 +4751,13 @@ const qs = ({
|
|
|
4728
4751
|
o.statusCode
|
|
4729
4752
|
)) }),
|
|
4730
4753
|
s?.content && s.content.length > 1 && /* @__PURE__ */ b.jsxs(
|
|
4731
|
-
|
|
4754
|
+
na,
|
|
4732
4755
|
{
|
|
4733
4756
|
value: a,
|
|
4734
4757
|
onValueChange: c,
|
|
4735
4758
|
children: [
|
|
4736
|
-
/* @__PURE__ */ b.jsx(
|
|
4737
|
-
/* @__PURE__ */ b.jsx(
|
|
4759
|
+
/* @__PURE__ */ b.jsx(aa, { className: "h-8 mt-0 max-w-48 text-xs truncate", children: /* @__PURE__ */ b.jsx(oa, { placeholder: "Select a type" }) }),
|
|
4760
|
+
/* @__PURE__ */ b.jsx(ia, { children: s.content.map((o) => /* @__PURE__ */ b.jsx(sa, { value: o.mediaType, children: o.mediaType }, o.mediaType)) })
|
|
4738
4761
|
]
|
|
4739
4762
|
}
|
|
4740
4763
|
)
|
|
@@ -4764,14 +4787,14 @@ const qs = ({
|
|
|
4764
4787
|
})
|
|
4765
4788
|
}
|
|
4766
4789
|
) });
|
|
4767
|
-
},
|
|
4790
|
+
}, Ls = ["path", "query", "header", "cookie"], Fs = ({
|
|
4768
4791
|
operationFragment: e,
|
|
4769
4792
|
serverUrl: n
|
|
4770
4793
|
}) => {
|
|
4771
|
-
const t = yo(
|
|
4794
|
+
const t = yo(_s, e), a = so(
|
|
4772
4795
|
t.parameters ?? [],
|
|
4773
4796
|
(i) => i.in
|
|
4774
|
-
), { options: c } =
|
|
4797
|
+
), { options: c } = et(), s = t.responses.at(0), [r, o] = ge(s?.statusCode);
|
|
4775
4798
|
return /* @__PURE__ */ b.jsxs("div", { children: [
|
|
4776
4799
|
t.deprecated && /* @__PURE__ */ b.jsx(_r, { variant: "muted", className: "text-xs mb-4", children: "deprecated" }),
|
|
4777
4800
|
/* @__PURE__ */ b.jsxs(
|
|
@@ -4783,7 +4806,7 @@ const qs = ({
|
|
|
4783
4806
|
),
|
|
4784
4807
|
children: [
|
|
4785
4808
|
/* @__PURE__ */ b.jsx(
|
|
4786
|
-
|
|
4809
|
+
Fe,
|
|
4787
4810
|
{
|
|
4788
4811
|
level: 2,
|
|
4789
4812
|
id: t.slug,
|
|
@@ -4793,8 +4816,8 @@ const qs = ({
|
|
|
4793
4816
|
}
|
|
4794
4817
|
),
|
|
4795
4818
|
/* @__PURE__ */ b.jsxs("div", { className: "text-sm flex gap-2 font-mono col-span-full", children: [
|
|
4796
|
-
/* @__PURE__ */ b.jsx("span", { className:
|
|
4797
|
-
/* @__PURE__ */ b.jsxs(
|
|
4819
|
+
/* @__PURE__ */ b.jsx("span", { className: qa(t.method), children: t.method.toUpperCase() }),
|
|
4820
|
+
/* @__PURE__ */ b.jsxs(la, { className: "max-w-full truncate flex cursor-pointer", children: [
|
|
4798
4821
|
n && /* @__PURE__ */ b.jsx("div", { className: "text-neutral-400 dark:text-neutral-500 truncate", children: n.replace(/\/$/, "") }),
|
|
4799
4822
|
/* @__PURE__ */ b.jsx("div", { className: "text-neutral-900 dark:text-neutral-200", children: t.path })
|
|
4800
4823
|
] })
|
|
@@ -4808,13 +4831,13 @@ const qs = ({
|
|
|
4808
4831
|
),
|
|
4809
4832
|
children: [
|
|
4810
4833
|
t.description && /* @__PURE__ */ b.jsx(
|
|
4811
|
-
|
|
4834
|
+
_e,
|
|
4812
4835
|
{
|
|
4813
|
-
className:
|
|
4836
|
+
className: "max-w-full prose-img:max-w-prose",
|
|
4814
4837
|
content: t.description
|
|
4815
4838
|
}
|
|
4816
4839
|
),
|
|
4817
|
-
t.parameters && t.parameters.length > 0 && /* @__PURE__ */ b.jsx(b.Fragment, { children:
|
|
4840
|
+
t.parameters && t.parameters.length > 0 && /* @__PURE__ */ b.jsx(b.Fragment, { children: Ls.flatMap(
|
|
4818
4841
|
(i) => a[i]?.length ? /* @__PURE__ */ b.jsx(
|
|
4819
4842
|
$o,
|
|
4820
4843
|
{
|
|
@@ -4828,7 +4851,7 @@ const qs = ({
|
|
|
4828
4851
|
) }),
|
|
4829
4852
|
Br(t.requestBody?.content?.at(0)?.schema, (i) => /* @__PURE__ */ b.jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
|
|
4830
4853
|
/* @__PURE__ */ b.jsxs(
|
|
4831
|
-
|
|
4854
|
+
Fe,
|
|
4832
4855
|
{
|
|
4833
4856
|
level: 3,
|
|
4834
4857
|
className: "capitalize flex items-center gap-2",
|
|
@@ -4848,7 +4871,7 @@ const qs = ({
|
|
|
4848
4871
|
] })),
|
|
4849
4872
|
t.responses.length > 0 && /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
4850
4873
|
/* @__PURE__ */ b.jsxs(
|
|
4851
|
-
|
|
4874
|
+
Fe,
|
|
4852
4875
|
{
|
|
4853
4876
|
level: 3,
|
|
4854
4877
|
className: "capitalize mt-8 pt-8 border-t",
|
|
@@ -4863,7 +4886,7 @@ const qs = ({
|
|
|
4863
4886
|
}
|
|
4864
4887
|
),
|
|
4865
4888
|
/* @__PURE__ */ b.jsx(
|
|
4866
|
-
|
|
4889
|
+
Us,
|
|
4867
4890
|
{
|
|
4868
4891
|
responses: t.responses,
|
|
4869
4892
|
selectedResponse: r,
|
|
@@ -4875,7 +4898,7 @@ const qs = ({
|
|
|
4875
4898
|
}
|
|
4876
4899
|
),
|
|
4877
4900
|
Br(!c?.disableSidecar, () => /* @__PURE__ */ b.jsx(
|
|
4878
|
-
|
|
4901
|
+
As,
|
|
4879
4902
|
{
|
|
4880
4903
|
selectedResponse: r,
|
|
4881
4904
|
onSelectResponse: o,
|
|
@@ -4891,7 +4914,7 @@ const qs = ({
|
|
|
4891
4914
|
function Xn(e, n = 160) {
|
|
4892
4915
|
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, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'") : "";
|
|
4893
4916
|
}
|
|
4894
|
-
const
|
|
4917
|
+
const _s = Me(
|
|
4895
4918
|
/* GraphQL */
|
|
4896
4919
|
`
|
|
4897
4920
|
fragment OperationsFragment on OperationItem {
|
|
@@ -4959,7 +4982,7 @@ const Fs = Be(
|
|
|
4959
4982
|
}
|
|
4960
4983
|
}
|
|
4961
4984
|
`
|
|
4962
|
-
),
|
|
4985
|
+
), Bs = Me(
|
|
4963
4986
|
/* GraphQL */
|
|
4964
4987
|
`
|
|
4965
4988
|
query SchemaWarmup($input: JSON!, $type: SchemaType!) {
|
|
@@ -4968,7 +4991,7 @@ const Fs = Be(
|
|
|
4968
4991
|
}
|
|
4969
4992
|
}
|
|
4970
4993
|
`
|
|
4971
|
-
),
|
|
4994
|
+
), Hs = Me(
|
|
4972
4995
|
/* GraphQL */
|
|
4973
4996
|
`
|
|
4974
4997
|
query OperationsForTag(
|
|
@@ -5009,14 +5032,14 @@ const Fs = Be(
|
|
|
5009
5032
|
tag: e,
|
|
5010
5033
|
untagged: n
|
|
5011
5034
|
}) => {
|
|
5012
|
-
const { input: t, type: a, versions: c, version: s, options: r } =
|
|
5035
|
+
const { input: t, type: a, versions: c, version: s, options: r } = et(), { tag: o } = Ga(), i = Ke(Hs, {
|
|
5013
5036
|
input: t,
|
|
5014
5037
|
type: a,
|
|
5015
5038
|
tag: e ?? o,
|
|
5016
5039
|
untagged: n
|
|
5017
5040
|
}), l = gr(i), {
|
|
5018
5041
|
data: { schema: d }
|
|
5019
|
-
} = l, { selectedServer: y } = vr(d.servers), f = d.title, h = d.summary, x = d.description, $ = Da(), u =
|
|
5042
|
+
} = l, { selectedServer: y } = vr(d.servers), f = d.title, h = d.summary, x = d.description, $ = Da(), u = Ke(Bs, { input: t, type: a });
|
|
5020
5043
|
if (Ua({
|
|
5021
5044
|
...u,
|
|
5022
5045
|
enabled: typeof window < "u",
|
|
@@ -5048,9 +5071,9 @@ const Fs = Be(
|
|
|
5048
5071
|
/* @__PURE__ */ b.jsxs(ta, { className: "w-full", children: [
|
|
5049
5072
|
/* @__PURE__ */ b.jsxs("div", { className: "flex flex-col gap-y-4 sm:flex-row justify-around items-start sm:items-end", children: [
|
|
5050
5073
|
/* @__PURE__ */ b.jsxs("div", { className: "flex flex-col flex-1 gap-2", children: [
|
|
5051
|
-
/* @__PURE__ */ b.jsx(
|
|
5074
|
+
/* @__PURE__ */ b.jsx(Za, { children: f }),
|
|
5052
5075
|
/* @__PURE__ */ b.jsxs(
|
|
5053
|
-
|
|
5076
|
+
Fe,
|
|
5054
5077
|
{
|
|
5055
5078
|
level: 1,
|
|
5056
5079
|
id: "description",
|
|
@@ -5071,18 +5094,18 @@ const Fs = Be(
|
|
|
5071
5094
|
] }),
|
|
5072
5095
|
/* @__PURE__ */ b.jsxs("div", { className: "flex flex-col gap-4 sm:items-end", children: [
|
|
5073
5096
|
g && /* @__PURE__ */ b.jsxs(
|
|
5074
|
-
|
|
5097
|
+
na,
|
|
5075
5098
|
{
|
|
5076
5099
|
onValueChange: (C) => $(c[C]),
|
|
5077
5100
|
defaultValue: s,
|
|
5078
5101
|
disabled: !O,
|
|
5079
5102
|
children: [
|
|
5080
|
-
/* @__PURE__ */ b.jsx(
|
|
5081
|
-
/* @__PURE__ */ b.jsx(
|
|
5103
|
+
/* @__PURE__ */ b.jsx(aa, { className: "w-[180px]", children: /* @__PURE__ */ b.jsx(oa, { placeholder: "Select version" }) }),
|
|
5104
|
+
/* @__PURE__ */ b.jsx(ia, { children: Object.entries(c).map(([C]) => /* @__PURE__ */ b.jsx(sa, { value: C, children: C }, C)) })
|
|
5082
5105
|
]
|
|
5083
5106
|
}
|
|
5084
5107
|
),
|
|
5085
|
-
d.description && /* @__PURE__ */ b.jsxs(
|
|
5108
|
+
d.description && /* @__PURE__ */ b.jsxs(dr, { className: "flex items-center gap-1 text-sm font-medium text-muted-foreground group", children: [
|
|
5086
5109
|
/* @__PURE__ */ b.jsx("span", { children: "API information" }),
|
|
5087
5110
|
/* @__PURE__ */ b.jsx(
|
|
5088
5111
|
Zn,
|
|
@@ -5101,31 +5124,19 @@ const Fs = Be(
|
|
|
5101
5124
|
] })
|
|
5102
5125
|
] })
|
|
5103
5126
|
] }),
|
|
5104
|
-
d.description && /* @__PURE__ */ b.jsx(ra, { className: "CollapsibleContent", children: /* @__PURE__ */ b.jsx(
|
|
5105
|
-
|
|
5127
|
+
d.description && /* @__PURE__ */ b.jsx(ra, { className: "CollapsibleContent", children: /* @__PURE__ */ b.jsx("div", { className: "mt-4 max-w-full border rounded-sm bg-muted/25", children: /* @__PURE__ */ b.jsx(
|
|
5128
|
+
_e,
|
|
5106
5129
|
{
|
|
5107
|
-
className:
|
|
5108
|
-
|
|
5109
|
-
"pt-4 max-w-full prose-img:max-w-prose"
|
|
5110
|
-
),
|
|
5111
|
-
children: /* @__PURE__ */ b.jsx(
|
|
5112
|
-
Qe,
|
|
5113
|
-
{
|
|
5114
|
-
className: "border rounded-sm bg-muted/25 border-border px-2.5 md:px-4",
|
|
5115
|
-
content: d.description
|
|
5116
|
-
}
|
|
5117
|
-
)
|
|
5130
|
+
className: "max-w-full prose-img:max-w-prose border-border p-3 lg:p-5",
|
|
5131
|
+
content: d.description
|
|
5118
5132
|
}
|
|
5119
|
-
) })
|
|
5133
|
+
) }) })
|
|
5120
5134
|
] }),
|
|
5121
5135
|
T && /* @__PURE__ */ b.jsx(
|
|
5122
|
-
|
|
5136
|
+
_e,
|
|
5123
5137
|
{
|
|
5124
|
-
className:
|
|
5125
|
-
|
|
5126
|
-
"my-4 max-w-full prose-img:max-w-prose"
|
|
5127
|
-
),
|
|
5128
|
-
children: /* @__PURE__ */ b.jsx(Qe, { content: T })
|
|
5138
|
+
className: "my-4 max-w-full prose-img:max-w-prose",
|
|
5139
|
+
content: T
|
|
5129
5140
|
}
|
|
5130
5141
|
)
|
|
5131
5142
|
] }),
|
|
@@ -5133,7 +5144,7 @@ const Fs = Be(
|
|
|
5133
5144
|
/* @__PURE__ */ b.jsxs("div", { className: "px-6 mt-6 -mx-6 [content-visibility:auto]", children: [
|
|
5134
5145
|
m.map((C) => /* @__PURE__ */ b.jsxs("div", { children: [
|
|
5135
5146
|
/* @__PURE__ */ b.jsx(
|
|
5136
|
-
|
|
5147
|
+
Fs,
|
|
5137
5148
|
{
|
|
5138
5149
|
serverUrl: y,
|
|
5139
5150
|
operationFragment: C
|
|
@@ -5149,6 +5160,6 @@ const Fs = Be(
|
|
|
5149
5160
|
};
|
|
5150
5161
|
export {
|
|
5151
5162
|
ll as OperationList,
|
|
5152
|
-
|
|
5163
|
+
_s as OperationsFragment
|
|
5153
5164
|
};
|
|
5154
|
-
//# sourceMappingURL=OperationList-
|
|
5165
|
+
//# sourceMappingURL=OperationList-CLidyzBx.js.map
|