zudoku 0.51.0 → 0.52.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/validators/InputNavigationSchema.d.ts +152 -0
- package/dist/config/validators/NavigationSchema.js +1 -1
- package/dist/config/validators/NavigationSchema.js.map +1 -1
- 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/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/SidecarExamples.js +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.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/EmbeddedCodeBlock.js +1 -1
- package/dist/lib/ui/EmbeddedCodeBlock.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-DKB2uJU-.js} +3 -3
- package/lib/{OasProvider-BC0q5m3u.js.map → OasProvider-DKB2uJU-.js.map} +1 -1
- package/lib/{OperationList-Dpip6ozi.js → OperationList-CccIt45w.js} +579 -567
- package/lib/OperationList-CccIt45w.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-DY3FBF2U.js} +26 -37
- package/lib/SchemaList-DY3FBF2U.js.map +1 -0
- package/lib/{SchemaView-CLxthVcA.js → SchemaView-matL2maR.js} +94 -103
- package/lib/SchemaView-matL2maR.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-CqHpo7-e.js} +2 -2
- package/lib/{circular-DfOaDE_x.js.map → circular-CqHpo7-e.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-ByKo3XCG.js} +4 -4
- package/lib/{createServer-DjOMygls.js.map → createServer-ByKo3XCG.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-CEfpz8vY.js +3458 -0
- package/lib/index-CEfpz8vY.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/EmbeddedCodeBlock.js +1 -1
- package/lib/ui/EmbeddedCodeBlock.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/SidecarExamples.tsx +1 -0
- 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/EmbeddedCodeBlock.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/flat-config.d.ts +0 -320
- 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-CEfpz8vY.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-matL2maR.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,9 +452,10 @@ 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
|
{
|
|
458
|
+
embedded: !0,
|
|
452
459
|
language: f,
|
|
453
460
|
noBackground: !0,
|
|
454
461
|
className: "[--scrollbar-color:gray] rounded-none text-xs max-h-[500px] p-2",
|
|
@@ -457,11 +464,11 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
457
464
|
) }),
|
|
458
465
|
l?.description && /* @__PURE__ */ b.jsx("div", { className: "border-t text-xs px-3 py-1.5 text-muted-foreground", children: l.description })
|
|
459
466
|
] }),
|
|
460
|
-
/* @__PURE__ */ b.jsxs(
|
|
467
|
+
/* @__PURE__ */ b.jsxs(ma, { className: "text-xs p-0 divide-y divide-border", children: [
|
|
461
468
|
n && /* @__PURE__ */ b.jsx("div", { className: "text-muted-foreground text-xs px-3 py-2", children: n }),
|
|
462
469
|
(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
470
|
/* @__PURE__ */ b.jsx("div", { className: "flex items-center gap-2 min-w-0", children: e.length > 1 ? /* @__PURE__ */ b.jsx(
|
|
464
|
-
|
|
471
|
+
Xe,
|
|
465
472
|
{
|
|
466
473
|
className: "max-w-[200px]",
|
|
467
474
|
value: a.toString(),
|
|
@@ -473,7 +480,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
473
480
|
}
|
|
474
481
|
) : /* @__PURE__ */ b.jsx("span", { className: "font-mono text-[11px]", children: e[0]?.mediaType }) }),
|
|
475
482
|
i.length > 1 && /* @__PURE__ */ b.jsx("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ b.jsx(
|
|
476
|
-
|
|
483
|
+
Xe,
|
|
477
484
|
{
|
|
478
485
|
className: "max-w-[180px]",
|
|
479
486
|
value: s.toString(),
|
|
@@ -491,8 +498,8 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
491
498
|
content: e,
|
|
492
499
|
onExampleChange: n
|
|
493
500
|
}) => e.length === 0 ? null : /* @__PURE__ */ b.jsxs($r, { children: [
|
|
494
|
-
/* @__PURE__ */ b.jsx(
|
|
495
|
-
/* @__PURE__ */ b.jsx(
|
|
501
|
+
/* @__PURE__ */ b.jsx(wr, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ b.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
|
|
502
|
+
/* @__PURE__ */ b.jsx(ga, { content: e, onExampleChange: n })
|
|
496
503
|
] }), Co = ({
|
|
497
504
|
responses: e,
|
|
498
505
|
selectedResponse: n,
|
|
@@ -504,7 +511,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
504
511
|
value: n,
|
|
505
512
|
onValueChange: (a) => t(a),
|
|
506
513
|
children: [
|
|
507
|
-
/* @__PURE__ */ b.jsxs(
|
|
514
|
+
/* @__PURE__ */ b.jsxs(wr, { className: "text-xs flex flex-col gap-2 pb-0", children: [
|
|
508
515
|
/* @__PURE__ */ b.jsx("span", { className: "font-mono", children: "Example Responses" }),
|
|
509
516
|
/* @__PURE__ */ b.jsx(je.List, { className: "flex gap-2", children: e.map((a) => /* @__PURE__ */ b.jsx(
|
|
510
517
|
je.Trigger,
|
|
@@ -520,7 +527,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
520
527
|
a.statusCode
|
|
521
528
|
)) })
|
|
522
529
|
] }),
|
|
523
|
-
e.map((a) => /* @__PURE__ */ b.jsx(je.Content, { value: a.statusCode, children: /* @__PURE__ */ b.jsx(
|
|
530
|
+
e.map((a) => /* @__PURE__ */ b.jsx(je.Content, { value: a.statusCode, children: /* @__PURE__ */ b.jsx(ga, { content: a.content ?? [] }) }, a.statusCode))
|
|
524
531
|
]
|
|
525
532
|
}
|
|
526
533
|
) });
|
|
@@ -549,29 +556,29 @@ var Hr = (e, n) => {
|
|
|
549
556
|
this.postProcessors = [...this.postProcessors, t];
|
|
550
557
|
}, this.indentationCharacter = e || Mr, this.lineJoin = n ?? zr;
|
|
551
558
|
}
|
|
552
|
-
},
|
|
559
|
+
}, ht, Wr;
|
|
553
560
|
function qo() {
|
|
554
|
-
return Wr || (Wr = 1,
|
|
561
|
+
return Wr || (Wr = 1, ht = function(e) {
|
|
555
562
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
556
|
-
}),
|
|
563
|
+
}), ht;
|
|
557
564
|
}
|
|
558
|
-
var
|
|
565
|
+
var yt, Jr;
|
|
559
566
|
function Eo() {
|
|
560
|
-
return Jr || (Jr = 1,
|
|
567
|
+
return Jr || (Jr = 1, yt = function(e) {
|
|
561
568
|
var n = typeof e;
|
|
562
569
|
return e !== null && (n === "object" || n === "function");
|
|
563
|
-
}),
|
|
570
|
+
}), yt;
|
|
564
571
|
}
|
|
565
|
-
var
|
|
572
|
+
var De = {}, Vr;
|
|
566
573
|
function Ro() {
|
|
567
|
-
return Vr || (Vr = 1, Object.defineProperty(
|
|
574
|
+
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
575
|
}
|
|
569
|
-
var
|
|
576
|
+
var mt, Gr;
|
|
570
577
|
function ko() {
|
|
571
|
-
if (Gr) return
|
|
578
|
+
if (Gr) return mt;
|
|
572
579
|
Gr = 1;
|
|
573
580
|
const e = qo(), n = Eo(), t = Ro().default;
|
|
574
|
-
return
|
|
581
|
+
return mt = (a, c, s) => {
|
|
575
582
|
const r = [];
|
|
576
583
|
return function o(i, l, d) {
|
|
577
584
|
l = l || {}, l.indent = l.indent || " ", d = d || "";
|
|
@@ -628,16 +635,16 @@ function ko() {
|
|
|
628
635
|
return i = String(i).replace(/[\r\n]/g, (h) => h === `
|
|
629
636
|
` ? "\\n" : "\\r"), l.singleQuotes === !1 ? (i = i.replace(/"/g, '\\"'), `"${i}"`) : (i = i.replace(/\\?'/g, "\\'"), `'${i}'`);
|
|
630
637
|
}(a, c, s);
|
|
631
|
-
},
|
|
638
|
+
}, mt;
|
|
632
639
|
}
|
|
633
640
|
var No = ko();
|
|
634
641
|
const ue = /* @__PURE__ */ po(No);
|
|
635
|
-
function
|
|
642
|
+
function Be(e, n = {}) {
|
|
636
643
|
const { delimiter: t = '"', escapeChar: a = "\\", escapeNewlines: c = !0 } = n;
|
|
637
644
|
return [...e.toString()].map((r) => r === "\b" ? `${a}b` : r === " " ? `${a}t` : r === `
|
|
638
645
|
` ? 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
646
|
}
|
|
640
|
-
var
|
|
647
|
+
var He = (e) => Be(e, { delimiter: "'" }), le = (e) => Be(e, { delimiter: '"' }), Ao = {
|
|
641
648
|
info: {
|
|
642
649
|
key: "libcurl",
|
|
643
650
|
title: "Libcurl",
|
|
@@ -667,7 +674,7 @@ var _e = (e) => Fe(e, { delimiter: "'" }), le = (e) => Fe(e, { delimiter: '"' })
|
|
|
667
674
|
const t = fe(e, n);
|
|
668
675
|
if (t)
|
|
669
676
|
return e[t];
|
|
670
|
-
},
|
|
677
|
+
}, tt = (e, n) => !!fe(e, n), Uo = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
|
|
671
678
|
(n) => e.indexOf(n) > -1
|
|
672
679
|
), Dr = class {
|
|
673
680
|
constructor(e) {
|
|
@@ -677,14 +684,14 @@ var _e = (e) => Fe(e, { delimiter: "'" }), le = (e) => Fe(e, { delimiter: '"' })
|
|
|
677
684
|
constructor(e) {
|
|
678
685
|
this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
|
|
679
686
|
}
|
|
680
|
-
},
|
|
687
|
+
}, 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
688
|
delete e[n];
|
|
682
|
-
}), e),
|
|
689
|
+
}), e), Qe = (e, n) => {
|
|
683
690
|
const t = " ".repeat(e);
|
|
684
691
|
return n.replace(/\n/g, `
|
|
685
692
|
${t}`);
|
|
686
693
|
}, yr = (e) => {
|
|
687
|
-
switch (
|
|
694
|
+
switch (va(e)) {
|
|
688
695
|
case "string":
|
|
689
696
|
return `"${e.replace(/"/g, '\\"')}"`;
|
|
690
697
|
case "file":
|
|
@@ -697,15 +704,15 @@ ${t}`);
|
|
|
697
704
|
return `#"${e.source}"`;
|
|
698
705
|
case "object": {
|
|
699
706
|
const n = Object.keys(e).reduce((t, a) => {
|
|
700
|
-
const c =
|
|
707
|
+
const c = Qe(a.length + 2, yr(e[a]));
|
|
701
708
|
return `${t}:${a} ${c}
|
|
702
709
|
`;
|
|
703
710
|
}, "").trim();
|
|
704
|
-
return `{${
|
|
711
|
+
return `{${Qe(1, n)}}`;
|
|
705
712
|
}
|
|
706
713
|
case "array": {
|
|
707
714
|
const n = e.reduce((t, a) => `${t} ${yr(a)}`, "").trim();
|
|
708
|
-
return `[${
|
|
715
|
+
return `[${Qe(1, n)}]`;
|
|
709
716
|
}
|
|
710
717
|
default:
|
|
711
718
|
return e.toString();
|
|
@@ -773,10 +780,10 @@ ${t}`);
|
|
|
773
780
|
break;
|
|
774
781
|
}
|
|
775
782
|
if (r(`(require '[clj-http.client :as client])
|
|
776
|
-
`),
|
|
783
|
+
`), ba(Qr(l)))
|
|
777
784
|
r(`(client/${n} "${a}")`);
|
|
778
785
|
else {
|
|
779
|
-
const d = 11 + n.length + a.length, y =
|
|
786
|
+
const d = 11 + n.length + a.length, y = Qe(d, yr(Qr(l)));
|
|
780
787
|
r(`(client/${n} "${a}" ${y})`);
|
|
781
788
|
}
|
|
782
789
|
return o();
|
|
@@ -1206,7 +1213,7 @@ var zo = {
|
|
|
1206
1213
|
break;
|
|
1207
1214
|
if (o("const form = new FormData();"), a.params.forEach((y) => {
|
|
1208
1215
|
o(`form.append('${y.name}', '${y.value || y.fileName || ""}');`);
|
|
1209
|
-
}), l.processData = !1, l.contentType = !1, l.mimeType = "multipart/form-data", l.data = "[form]",
|
|
1216
|
+
}), 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
1217
|
const y = fe(t, "content-type");
|
|
1211
1218
|
y && delete l.headers[y];
|
|
1212
1219
|
}
|
|
@@ -1245,7 +1252,7 @@ var zo = {
|
|
|
1245
1252
|
break;
|
|
1246
1253
|
if (o("const data = new FormData();"), e.params.forEach((l) => {
|
|
1247
1254
|
o(`data.append('${l.name}', '${l.value || l.fileName || ""}');`);
|
|
1248
|
-
}),
|
|
1255
|
+
}), tt(n, "content-type") && ve(n, "content-type")?.includes("boundary")) {
|
|
1249
1256
|
const l = fe(n, "content-type");
|
|
1250
1257
|
l && delete n[l];
|
|
1251
1258
|
}
|
|
@@ -1255,7 +1262,7 @@ var zo = {
|
|
|
1255
1262
|
o(`const data = ${e.text ? `'${e.text}'` : "null"};`), r();
|
|
1256
1263
|
}
|
|
1257
1264
|
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}', '${
|
|
1265
|
+
o(`xhr.setRequestHeader('${l}', '${He(n[l])}');`);
|
|
1259
1266
|
}), r(), o("xhr.send(data);"), i();
|
|
1260
1267
|
}
|
|
1261
1268
|
}, ai = {
|
|
@@ -1578,7 +1585,7 @@ var zo = {
|
|
|
1578
1585
|
axios: ci,
|
|
1579
1586
|
fetch: ui
|
|
1580
1587
|
}
|
|
1581
|
-
},
|
|
1588
|
+
}, gt = (e, n, t, a) => {
|
|
1582
1589
|
const c = `${e} *${n} = `, s = mr(t, a ? c.length : void 0);
|
|
1583
1590
|
return `${c}${s};`;
|
|
1584
1591
|
}, mr = (e, n) => {
|
|
@@ -1618,7 +1625,7 @@ var zo = {
|
|
|
1618
1625
|
hasHeaders: !1,
|
|
1619
1626
|
hasBody: !1
|
|
1620
1627
|
};
|
|
1621
|
-
if (r("#import <Foundation/Foundation.h>"), Object.keys(e).length && (l.hasHeaders = !0, i(), r(
|
|
1628
|
+
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
1629
|
switch (l.hasBody = !0, n.mimeType) {
|
|
1623
1630
|
case "application/x-www-form-urlencoded":
|
|
1624
1631
|
if (n.params?.length) {
|
|
@@ -1633,10 +1640,10 @@ var zo = {
|
|
|
1633
1640
|
l.hasBody = !1;
|
|
1634
1641
|
break;
|
|
1635
1642
|
case "application/json":
|
|
1636
|
-
n.jsonObj && (r(
|
|
1643
|
+
n.jsonObj && (r(gt("NSDictionary", "parameters", n.jsonObj, s.pretty)), i(), r("NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];"));
|
|
1637
1644
|
break;
|
|
1638
1645
|
case "multipart/form-data":
|
|
1639
|
-
r(
|
|
1646
|
+
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
1647
|
'[body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"; filename=\\"%@\\"\\r\\n", param[@"name"], param[@"fileName"]];',
|
|
1641
1648
|
2
|
|
1642
1649
|
), r('[body appendFormat:@"Content-Type: %@\\r\\n\\r\\n", param[@"contentType"]];', 2), r(
|
|
@@ -1709,7 +1716,7 @@ var zo = {
|
|
|
1709
1716
|
case "[object Undefined]":
|
|
1710
1717
|
return "null";
|
|
1711
1718
|
case "[object String]":
|
|
1712
|
-
return `'${
|
|
1719
|
+
return `'${Be(e, { delimiter: "'", escapeNewlines: !1 })}'`;
|
|
1713
1720
|
case "[object Number]":
|
|
1714
1721
|
return e.toString();
|
|
1715
1722
|
case "[object Array]": {
|
|
@@ -1872,7 +1879,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1872
1879
|
name: u.name,
|
|
1873
1880
|
contents: u.value
|
|
1874
1881
|
});
|
|
1875
|
-
}), $.length && (y(`'multipart' => ${te($, r.indent + r.indent, r.indent)}`, 1),
|
|
1882
|
+
}), $.length && (y(`'multipart' => ${te($, r.indent + r.indent, r.indent)}`, 1), tt(c, "content-type") && ve(c, "content-type")?.indexOf("boundary"))) {
|
|
1876
1883
|
const u = fe(c, "content-type");
|
|
1877
1884
|
u && delete c[u];
|
|
1878
1885
|
}
|
|
@@ -1882,9 +1889,9 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1882
1889
|
e.text && y(`'body' => ${te(e.text)},`, 1);
|
|
1883
1890
|
}
|
|
1884
1891
|
const h = Object.keys(c).sort().map(function($) {
|
|
1885
|
-
return `${r.indent}${r.indent}'${$}' => '${
|
|
1892
|
+
return `${r.indent}${r.indent}'${$}' => '${He(c[$])}',`;
|
|
1886
1893
|
}), x = a.map(($) => `${encodeURIComponent($.name)}=${encodeURIComponent($.value)}`).join("; ");
|
|
1887
|
-
return x.length && h.push(`${r.indent}${r.indent}'cookie' => '${
|
|
1894
|
+
return x.length && h.push(`${r.indent}${r.indent}'cookie' => '${He(x)}',`), h.length && (y("'headers' => [", 1), y(h.join(`
|
|
1888
1895
|
`)), 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
1896
|
}
|
|
1890
1897
|
}, $i = {
|
|
@@ -1909,7 +1916,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1909
1916
|
}
|
|
1910
1917
|
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
1918
|
}
|
|
1912
|
-
},
|
|
1919
|
+
}, wi = {
|
|
1913
1920
|
info: {
|
|
1914
1921
|
key: "http2",
|
|
1915
1922
|
title: "HTTP v2",
|
|
@@ -1941,7 +1948,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1941
1948
|
p && (u[S] = p);
|
|
1942
1949
|
});
|
|
1943
1950
|
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});`),
|
|
1951
|
+
if (y("$body = new http\\Message\\Body;"), y(`$body->addForm(${m}, ${v});`), tt(n, "content-type") && ve(n, "content-type")?.indexOf("boundary")) {
|
|
1945
1952
|
const S = fe(n, "content-type");
|
|
1946
1953
|
S && delete n[S];
|
|
1947
1954
|
}
|
|
@@ -1956,7 +1963,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1956
1963
|
}
|
|
1957
1964
|
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
1965
|
}
|
|
1959
|
-
},
|
|
1966
|
+
}, ji = {
|
|
1960
1967
|
info: {
|
|
1961
1968
|
key: "php",
|
|
1962
1969
|
title: "PHP",
|
|
@@ -1967,19 +1974,19 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1967
1974
|
curl: bi,
|
|
1968
1975
|
guzzle: xi,
|
|
1969
1976
|
http1: $i,
|
|
1970
|
-
http2:
|
|
1977
|
+
http2: wi
|
|
1971
1978
|
}
|
|
1972
|
-
},
|
|
1979
|
+
}, xa = (e) => ({ method: t, headersObj: a, cookies: c, uriObj: s, fullUrl: r, postData: o, allHeaders: i }) => {
|
|
1973
1980
|
const { push: l, join: d } = new G();
|
|
1974
1981
|
if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(t.toUpperCase()))
|
|
1975
1982
|
return "Method not supported";
|
|
1976
1983
|
const f = [], h = Object.keys(a);
|
|
1977
1984
|
return h.length && (l("$headers=@{}"), h.forEach((x) => {
|
|
1978
|
-
x !== "connection" && l(`$headers.Add("${x}", "${
|
|
1985
|
+
x !== "connection" && l(`$headers.Add("${x}", "${Be(a[x], { escapeChar: "`" })}")`);
|
|
1979
1986
|
}), f.push("-Headers $headers")), c.length && (l("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"), c.forEach((x) => {
|
|
1980
1987
|
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
1988
|
}), f.push("-WebSession $session")), o.text && (f.push(
|
|
1982
|
-
`-ContentType '${
|
|
1989
|
+
`-ContentType '${Be(ve(i, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
|
|
1983
1990
|
), f.push(`-Body '${o.text}'`)), l(`$response = ${e} -Uri '${r}' -Method ${t} ${f.join(" ")}`.trim()), d();
|
|
1984
1991
|
}, Si = {
|
|
1985
1992
|
info: {
|
|
@@ -1989,7 +1996,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1989
1996
|
description: "Powershell Invoke-RestMethod client",
|
|
1990
1997
|
extname: ".ps1"
|
|
1991
1998
|
},
|
|
1992
|
-
convert:
|
|
1999
|
+
convert: xa("Invoke-RestMethod")
|
|
1993
2000
|
}, Oi = {
|
|
1994
2001
|
info: {
|
|
1995
2002
|
key: "webrequest",
|
|
@@ -1998,7 +2005,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1998
2005
|
description: "Powershell Invoke-WebRequest client",
|
|
1999
2006
|
extname: ".ps1"
|
|
2000
2007
|
},
|
|
2001
|
-
convert:
|
|
2008
|
+
convert: xa("Invoke-WebRequest")
|
|
2002
2009
|
}, Ti = {
|
|
2003
2010
|
info: {
|
|
2004
2011
|
key: "powershell",
|
|
@@ -2017,19 +2024,19 @@ ${s}` : ", ", i = e === "object" ? "{" : "[", l = e === "object" ? "}" : "]";
|
|
|
2017
2024
|
${s}${n.join(o)}
|
|
2018
2025
|
${r}${l}` : e === "object" && n.length > 0 ? `${i} ${n.join(o)} ${l}` : `${i}${n.join(o)}${l}`;
|
|
2019
2026
|
}
|
|
2020
|
-
var
|
|
2027
|
+
var Ae = (e, n, t) => {
|
|
2021
2028
|
switch (t = t === void 0 ? 1 : t + 1, Object.prototype.toString.call(e)) {
|
|
2022
2029
|
case "[object Number]":
|
|
2023
2030
|
return e;
|
|
2024
2031
|
case "[object Array]": {
|
|
2025
2032
|
let a = !1;
|
|
2026
|
-
const c = e.map((s) => (Object.prototype.toString.call(s) === "[object Object]" && (a = Object.keys(s).length > 1),
|
|
2033
|
+
const c = e.map((s) => (Object.prototype.toString.call(s) === "[object Object]" && (a = Object.keys(s).length > 1), Ae(s, n, t)));
|
|
2027
2034
|
return Xr("array", c, a, n.indent, t);
|
|
2028
2035
|
}
|
|
2029
2036
|
case "[object Object]": {
|
|
2030
2037
|
const a = [];
|
|
2031
2038
|
for (const c in e)
|
|
2032
|
-
a.push(`"${c}": ${
|
|
2039
|
+
a.push(`"${c}": ${Ae(e[c], n, t)}`);
|
|
2033
2040
|
return Xr("object", a, n.pretty && a.length > 1, n.indent, t);
|
|
2034
2041
|
}
|
|
2035
2042
|
case "[object Null]":
|
|
@@ -2061,7 +2068,7 @@ var Ne = (e, n, t) => {
|
|
|
2061
2068
|
let h = !1, x = !1, $ = !1;
|
|
2062
2069
|
switch (n.mimeType) {
|
|
2063
2070
|
case "application/json":
|
|
2064
|
-
n.jsonObj && (r(`payload = ${
|
|
2071
|
+
n.jsonObj && (r(`payload = ${Ae(n.jsonObj, s)}`), $ = !0, x = !0);
|
|
2065
2072
|
break;
|
|
2066
2073
|
case "multipart/form-data":
|
|
2067
2074
|
if (!n.params)
|
|
@@ -2069,7 +2076,7 @@ var Ne = (e, n, t) => {
|
|
|
2069
2076
|
if (y = {}, n.params.forEach((v) => {
|
|
2070
2077
|
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
2078
|
}), h) {
|
|
2072
|
-
r(`files = ${
|
|
2079
|
+
r(`files = ${Ae(f, s)}`), x && r(`payload = ${Ae(y, s)}`);
|
|
2073
2080
|
const v = fe(d, "content-type");
|
|
2074
2081
|
v && delete d[v];
|
|
2075
2082
|
} else {
|
|
@@ -2082,7 +2089,7 @@ var Ne = (e, n, t) => {
|
|
|
2082
2089
|
break;
|
|
2083
2090
|
default: {
|
|
2084
2091
|
if (n.mimeType === "application/x-www-form-urlencoded" && n.paramsObj) {
|
|
2085
|
-
r(`payload = ${
|
|
2092
|
+
r(`payload = ${Ae(n.paramsObj, s)}`), x = !0;
|
|
2086
2093
|
break;
|
|
2087
2094
|
}
|
|
2088
2095
|
const v = JSON.stringify(n.text);
|
|
@@ -2148,7 +2155,7 @@ var Ne = (e, n, t) => {
|
|
|
2148
2155
|
r('encode <- "raw"'), o();
|
|
2149
2156
|
break;
|
|
2150
2157
|
}
|
|
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}' = '${
|
|
2158
|
+
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
2159
|
let S = `response <- VERB("${s}", url`;
|
|
2153
2160
|
y && (S += ", body = payload"), t.length && (S += ", query = queryString");
|
|
2154
2161
|
const T = [v, u, $, x].filter((p) => !!p).join(", ");
|
|
@@ -2191,7 +2198,7 @@ var Ne = (e, n, t) => {
|
|
|
2191
2198
|
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
2199
|
const y = Object.keys(c);
|
|
2193
2200
|
return y.length && y.forEach((f) => {
|
|
2194
|
-
s(`request["${f}"] = '${
|
|
2201
|
+
s(`request["${f}"] = '${He(c[f])}'`);
|
|
2195
2202
|
}), a.text && s(`request.body = ${JSON.stringify(a.text)}`), r(), s("response = http.request(request)"), s("puts response.read_body"), o();
|
|
2196
2203
|
}
|
|
2197
2204
|
}, Ni = {
|
|
@@ -2377,19 +2384,19 @@ ${c}` : ", ";
|
|
|
2377
2384
|
return n ? `[
|
|
2378
2385
|
${c}${e.join(r)}
|
|
2379
2386
|
${s}]` : `[${e.join(r)}]`;
|
|
2380
|
-
}, tn = (e, n, t) => `let ${e} = ${
|
|
2387
|
+
}, tn = (e, n, t) => `let ${e} = ${Ze(n, t)}`, Ze = (e, n, t) => {
|
|
2381
2388
|
switch (t = t === void 0 ? 1 : t + 1, Object.prototype.toString.call(e)) {
|
|
2382
2389
|
case "[object Number]":
|
|
2383
2390
|
return e;
|
|
2384
2391
|
case "[object Array]": {
|
|
2385
2392
|
let a = !1;
|
|
2386
|
-
const c = e.map((s) => (Object.prototype.toString.call(s) === "[object Object]" && (a = Object.keys(s).length > 1),
|
|
2393
|
+
const c = e.map((s) => (Object.prototype.toString.call(s) === "[object Object]" && (a = Object.keys(s).length > 1), Ze(s, n, t)));
|
|
2387
2394
|
return en(c, a, n.indent, t);
|
|
2388
2395
|
}
|
|
2389
2396
|
case "[object Object]": {
|
|
2390
2397
|
const a = [];
|
|
2391
2398
|
for (const c in e)
|
|
2392
|
-
a.push(`"${c}": ${
|
|
2399
|
+
a.push(`"${c}": ${Ze(e[c], n, t)}`);
|
|
2393
2400
|
return en(
|
|
2394
2401
|
a,
|
|
2395
2402
|
// @ts-expect-error needs better types
|
|
@@ -2452,7 +2459,7 @@ ${s}]` : `[${e.join(r)}]`;
|
|
|
2452
2459
|
});
|
|
2453
2460
|
break;
|
|
2454
2461
|
}
|
|
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 = ${
|
|
2462
|
+
}), 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
2463
|
}
|
|
2457
2464
|
}, Mi = {
|
|
2458
2465
|
info: {
|
|
@@ -2476,20 +2483,20 @@ ${s}]` : `[${e.join(r)}]`;
|
|
|
2476
2483
|
node: hi,
|
|
2477
2484
|
objc: mi,
|
|
2478
2485
|
ocaml: vi,
|
|
2479
|
-
php:
|
|
2486
|
+
php: ji,
|
|
2480
2487
|
powershell: Ti,
|
|
2481
2488
|
python: qi,
|
|
2482
2489
|
r: Ri,
|
|
2483
2490
|
ruby: Ni,
|
|
2484
2491
|
shell: Bi,
|
|
2485
2492
|
swift: Mi
|
|
2486
|
-
},
|
|
2493
|
+
}, Ce = {}, Le = { exports: {} };
|
|
2487
2494
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
2488
|
-
var Wi =
|
|
2495
|
+
var Wi = Le.exports, rn;
|
|
2489
2496
|
function Ji() {
|
|
2490
2497
|
return rn || (rn = 1, function(e, n) {
|
|
2491
2498
|
(function(t) {
|
|
2492
|
-
var a = n && !n.nodeType && n, c = e && !e.nodeType && e, s = typeof
|
|
2499
|
+
var a = n && !n.nodeType && n, c = e && !e.nodeType && e, s = typeof Ye == "object" && Ye;
|
|
2493
2500
|
(s.global === s || s.window === s || s.self === s) && (t = s);
|
|
2494
2501
|
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
2502
|
overflow: "Overflow: input needs wider integers to process",
|
|
@@ -2604,86 +2611,86 @@ function Ji() {
|
|
|
2604
2611
|
else
|
|
2605
2612
|
t.punycode = r;
|
|
2606
2613
|
})(Wi);
|
|
2607
|
-
}(
|
|
2614
|
+
}(Le, Le.exports)), Le.exports;
|
|
2608
2615
|
}
|
|
2609
|
-
var
|
|
2610
|
-
function
|
|
2611
|
-
return nn || (nn = 1,
|
|
2616
|
+
var vt, nn;
|
|
2617
|
+
function $a() {
|
|
2618
|
+
return nn || (nn = 1, vt = Object), vt;
|
|
2612
2619
|
}
|
|
2613
|
-
var
|
|
2620
|
+
var bt, an;
|
|
2614
2621
|
function Vi() {
|
|
2615
|
-
return an || (an = 1,
|
|
2622
|
+
return an || (an = 1, bt = Error), bt;
|
|
2616
2623
|
}
|
|
2617
|
-
var
|
|
2624
|
+
var xt, on;
|
|
2618
2625
|
function Gi() {
|
|
2619
|
-
return on || (on = 1,
|
|
2626
|
+
return on || (on = 1, xt = EvalError), xt;
|
|
2620
2627
|
}
|
|
2621
|
-
var
|
|
2628
|
+
var $t, sn;
|
|
2622
2629
|
function Di() {
|
|
2623
|
-
return sn || (sn = 1,
|
|
2630
|
+
return sn || (sn = 1, $t = RangeError), $t;
|
|
2624
2631
|
}
|
|
2625
|
-
var
|
|
2632
|
+
var wt, ln;
|
|
2626
2633
|
function Qi() {
|
|
2627
|
-
return ln || (ln = 1,
|
|
2634
|
+
return ln || (ln = 1, wt = ReferenceError), wt;
|
|
2628
2635
|
}
|
|
2629
2636
|
var jt, cn;
|
|
2630
2637
|
function wa() {
|
|
2631
2638
|
return cn || (cn = 1, jt = SyntaxError), jt;
|
|
2632
2639
|
}
|
|
2633
|
-
var
|
|
2634
|
-
function
|
|
2635
|
-
return un || (un = 1,
|
|
2640
|
+
var St, un;
|
|
2641
|
+
function ze() {
|
|
2642
|
+
return un || (un = 1, St = TypeError), St;
|
|
2636
2643
|
}
|
|
2637
|
-
var
|
|
2644
|
+
var Ot, fn;
|
|
2638
2645
|
function Ki() {
|
|
2639
|
-
return fn || (fn = 1,
|
|
2646
|
+
return fn || (fn = 1, Ot = URIError), Ot;
|
|
2640
2647
|
}
|
|
2641
|
-
var
|
|
2648
|
+
var Tt, pn;
|
|
2642
2649
|
function Yi() {
|
|
2643
|
-
return pn || (pn = 1,
|
|
2650
|
+
return pn || (pn = 1, Tt = Math.abs), Tt;
|
|
2644
2651
|
}
|
|
2645
|
-
var
|
|
2652
|
+
var Pt, dn;
|
|
2646
2653
|
function Xi() {
|
|
2647
|
-
return dn || (dn = 1,
|
|
2654
|
+
return dn || (dn = 1, Pt = Math.floor), Pt;
|
|
2648
2655
|
}
|
|
2649
|
-
var
|
|
2656
|
+
var Ct, hn;
|
|
2650
2657
|
function Zi() {
|
|
2651
|
-
return hn || (hn = 1,
|
|
2658
|
+
return hn || (hn = 1, Ct = Math.max), Ct;
|
|
2652
2659
|
}
|
|
2653
|
-
var
|
|
2660
|
+
var qt, yn;
|
|
2654
2661
|
function es() {
|
|
2655
|
-
return yn || (yn = 1,
|
|
2662
|
+
return yn || (yn = 1, qt = Math.min), qt;
|
|
2656
2663
|
}
|
|
2657
|
-
var
|
|
2664
|
+
var Et, mn;
|
|
2658
2665
|
function ts() {
|
|
2659
|
-
return mn || (mn = 1,
|
|
2666
|
+
return mn || (mn = 1, Et = Math.pow), Et;
|
|
2660
2667
|
}
|
|
2661
|
-
var
|
|
2668
|
+
var Rt, gn;
|
|
2662
2669
|
function rs() {
|
|
2663
|
-
return gn || (gn = 1,
|
|
2670
|
+
return gn || (gn = 1, Rt = Math.round), Rt;
|
|
2664
2671
|
}
|
|
2665
|
-
var
|
|
2672
|
+
var kt, vn;
|
|
2666
2673
|
function ns() {
|
|
2667
|
-
return vn || (vn = 1,
|
|
2674
|
+
return vn || (vn = 1, kt = Number.isNaN || function(n) {
|
|
2668
2675
|
return n !== n;
|
|
2669
|
-
}),
|
|
2676
|
+
}), kt;
|
|
2670
2677
|
}
|
|
2671
|
-
var
|
|
2678
|
+
var Nt, bn;
|
|
2672
2679
|
function as() {
|
|
2673
|
-
if (bn) return
|
|
2680
|
+
if (bn) return Nt;
|
|
2674
2681
|
bn = 1;
|
|
2675
2682
|
var e = /* @__PURE__ */ ns();
|
|
2676
|
-
return
|
|
2683
|
+
return Nt = function(t) {
|
|
2677
2684
|
return e(t) || t === 0 ? t : t < 0 ? -1 : 1;
|
|
2678
|
-
},
|
|
2685
|
+
}, Nt;
|
|
2679
2686
|
}
|
|
2680
|
-
var
|
|
2687
|
+
var At, xn;
|
|
2681
2688
|
function os() {
|
|
2682
|
-
return xn || (xn = 1,
|
|
2689
|
+
return xn || (xn = 1, At = Object.getOwnPropertyDescriptor), At;
|
|
2683
2690
|
}
|
|
2684
|
-
var
|
|
2685
|
-
function
|
|
2686
|
-
if ($n) return
|
|
2691
|
+
var It, $n;
|
|
2692
|
+
function rt() {
|
|
2693
|
+
if ($n) return It;
|
|
2687
2694
|
$n = 1;
|
|
2688
2695
|
var e = /* @__PURE__ */ os();
|
|
2689
2696
|
if (e)
|
|
@@ -2692,12 +2699,12 @@ function tt() {
|
|
|
2692
2699
|
} catch {
|
|
2693
2700
|
e = null;
|
|
2694
2701
|
}
|
|
2695
|
-
return
|
|
2702
|
+
return It = e, It;
|
|
2696
2703
|
}
|
|
2697
|
-
var
|
|
2698
|
-
function
|
|
2699
|
-
if (
|
|
2700
|
-
|
|
2704
|
+
var Ut, wn;
|
|
2705
|
+
function nt() {
|
|
2706
|
+
if (wn) return Ut;
|
|
2707
|
+
wn = 1;
|
|
2701
2708
|
var e = Object.defineProperty || !1;
|
|
2702
2709
|
if (e)
|
|
2703
2710
|
try {
|
|
@@ -2705,11 +2712,11 @@ function rt() {
|
|
|
2705
2712
|
} catch {
|
|
2706
2713
|
e = !1;
|
|
2707
2714
|
}
|
|
2708
|
-
return
|
|
2715
|
+
return Ut = e, Ut;
|
|
2709
2716
|
}
|
|
2710
|
-
var
|
|
2717
|
+
var Lt, jn;
|
|
2711
2718
|
function is() {
|
|
2712
|
-
return
|
|
2719
|
+
return jn || (jn = 1, Lt = function() {
|
|
2713
2720
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2714
2721
|
return !1;
|
|
2715
2722
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -2735,31 +2742,31 @@ function is() {
|
|
|
2735
2742
|
return !1;
|
|
2736
2743
|
}
|
|
2737
2744
|
return !0;
|
|
2738
|
-
}),
|
|
2745
|
+
}), Lt;
|
|
2739
2746
|
}
|
|
2740
|
-
var
|
|
2747
|
+
var Ft, Sn;
|
|
2741
2748
|
function ss() {
|
|
2742
|
-
if (Sn) return
|
|
2749
|
+
if (Sn) return Ft;
|
|
2743
2750
|
Sn = 1;
|
|
2744
2751
|
var e = typeof Symbol < "u" && Symbol, n = is();
|
|
2745
|
-
return
|
|
2752
|
+
return Ft = function() {
|
|
2746
2753
|
return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : n();
|
|
2747
|
-
},
|
|
2754
|
+
}, Ft;
|
|
2748
2755
|
}
|
|
2749
|
-
var
|
|
2750
|
-
function
|
|
2751
|
-
return On || (On = 1,
|
|
2756
|
+
var _t, On;
|
|
2757
|
+
function ja() {
|
|
2758
|
+
return On || (On = 1, _t = typeof Reflect < "u" && Reflect.getPrototypeOf || null), _t;
|
|
2752
2759
|
}
|
|
2753
|
-
var
|
|
2754
|
-
function
|
|
2755
|
-
if (Tn) return
|
|
2760
|
+
var Bt, Tn;
|
|
2761
|
+
function Sa() {
|
|
2762
|
+
if (Tn) return Bt;
|
|
2756
2763
|
Tn = 1;
|
|
2757
|
-
var e = /* @__PURE__ */
|
|
2758
|
-
return
|
|
2764
|
+
var e = /* @__PURE__ */ $a();
|
|
2765
|
+
return Bt = e.getPrototypeOf || null, Bt;
|
|
2759
2766
|
}
|
|
2760
|
-
var
|
|
2767
|
+
var Ht, Pn;
|
|
2761
2768
|
function ls() {
|
|
2762
|
-
if (Pn) return
|
|
2769
|
+
if (Pn) return Ht;
|
|
2763
2770
|
Pn = 1;
|
|
2764
2771
|
var e = "Function.prototype.bind called on incompatible ", n = Object.prototype.toString, t = Math.max, a = "[object Function]", c = function(i, l) {
|
|
2765
2772
|
for (var d = [], y = 0; y < i.length; y += 1)
|
|
@@ -2776,7 +2783,7 @@ function ls() {
|
|
|
2776
2783
|
l += o[d], d + 1 < o.length && (l += i);
|
|
2777
2784
|
return l;
|
|
2778
2785
|
};
|
|
2779
|
-
return
|
|
2786
|
+
return Ht = function(i) {
|
|
2780
2787
|
var l = this;
|
|
2781
2788
|
if (typeof l != "function" || n.apply(l) !== a)
|
|
2782
2789
|
throw new TypeError(e + l);
|
|
@@ -2800,50 +2807,50 @@ function ls() {
|
|
|
2800
2807
|
u.prototype = l.prototype, y.prototype = new u(), u.prototype = null;
|
|
2801
2808
|
}
|
|
2802
2809
|
return y;
|
|
2803
|
-
},
|
|
2810
|
+
}, Ht;
|
|
2804
2811
|
}
|
|
2805
|
-
var
|
|
2806
|
-
function
|
|
2807
|
-
if (Cn) return
|
|
2812
|
+
var Mt, Cn;
|
|
2813
|
+
function We() {
|
|
2814
|
+
if (Cn) return Mt;
|
|
2808
2815
|
Cn = 1;
|
|
2809
2816
|
var e = ls();
|
|
2810
|
-
return
|
|
2817
|
+
return Mt = Function.prototype.bind || e, Mt;
|
|
2811
2818
|
}
|
|
2812
|
-
var
|
|
2813
|
-
function
|
|
2814
|
-
return qn || (qn = 1,
|
|
2819
|
+
var zt, qn;
|
|
2820
|
+
function jr() {
|
|
2821
|
+
return qn || (qn = 1, zt = Function.prototype.call), zt;
|
|
2815
2822
|
}
|
|
2816
|
-
var
|
|
2823
|
+
var Wt, En;
|
|
2817
2824
|
function Sr() {
|
|
2818
|
-
return En || (En = 1,
|
|
2825
|
+
return En || (En = 1, Wt = Function.prototype.apply), Wt;
|
|
2819
2826
|
}
|
|
2820
|
-
var
|
|
2827
|
+
var Jt, Rn;
|
|
2821
2828
|
function cs() {
|
|
2822
|
-
return Rn || (Rn = 1,
|
|
2829
|
+
return Rn || (Rn = 1, Jt = typeof Reflect < "u" && Reflect && Reflect.apply), Jt;
|
|
2823
2830
|
}
|
|
2824
|
-
var
|
|
2825
|
-
function
|
|
2826
|
-
if (kn) return
|
|
2831
|
+
var Vt, kn;
|
|
2832
|
+
function Oa() {
|
|
2833
|
+
if (kn) return Vt;
|
|
2827
2834
|
kn = 1;
|
|
2828
|
-
var e =
|
|
2829
|
-
return
|
|
2835
|
+
var e = We(), n = Sr(), t = jr(), a = cs();
|
|
2836
|
+
return Vt = a || e.call(t, n), Vt;
|
|
2830
2837
|
}
|
|
2831
|
-
var
|
|
2832
|
-
function
|
|
2833
|
-
if (Nn) return
|
|
2838
|
+
var Gt, Nn;
|
|
2839
|
+
function Ta() {
|
|
2840
|
+
if (Nn) return Gt;
|
|
2834
2841
|
Nn = 1;
|
|
2835
|
-
var e =
|
|
2836
|
-
return
|
|
2842
|
+
var e = We(), n = /* @__PURE__ */ ze(), t = jr(), a = Oa();
|
|
2843
|
+
return Gt = function(s) {
|
|
2837
2844
|
if (s.length < 1 || typeof s[0] != "function")
|
|
2838
2845
|
throw new n("a function is required");
|
|
2839
2846
|
return a(e, t, s);
|
|
2840
|
-
},
|
|
2847
|
+
}, Gt;
|
|
2841
2848
|
}
|
|
2842
|
-
var
|
|
2849
|
+
var Dt, An;
|
|
2843
2850
|
function us() {
|
|
2844
|
-
if (An) return
|
|
2851
|
+
if (An) return Dt;
|
|
2845
2852
|
An = 1;
|
|
2846
|
-
var e =
|
|
2853
|
+
var e = Ta(), n = /* @__PURE__ */ rt(), t;
|
|
2847
2854
|
try {
|
|
2848
2855
|
t = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
2849
2856
|
[].__proto__ === Array.prototype;
|
|
@@ -2856,19 +2863,19 @@ function us() {
|
|
|
2856
2863
|
/** @type {keyof typeof Object.prototype} */
|
|
2857
2864
|
"__proto__"
|
|
2858
2865
|
), c = Object, s = c.getPrototypeOf;
|
|
2859
|
-
return
|
|
2866
|
+
return Dt = a && typeof a.get == "function" ? e([a.get]) : typeof s == "function" ? (
|
|
2860
2867
|
/** @type {import('./get')} */
|
|
2861
2868
|
function(o) {
|
|
2862
2869
|
return s(o == null ? o : c(o));
|
|
2863
2870
|
}
|
|
2864
|
-
) : !1,
|
|
2871
|
+
) : !1, Dt;
|
|
2865
2872
|
}
|
|
2866
|
-
var
|
|
2873
|
+
var Qt, In;
|
|
2867
2874
|
function fs() {
|
|
2868
|
-
if (In) return
|
|
2875
|
+
if (In) return Qt;
|
|
2869
2876
|
In = 1;
|
|
2870
|
-
var e =
|
|
2871
|
-
return
|
|
2877
|
+
var e = ja(), n = Sa(), t = /* @__PURE__ */ us();
|
|
2878
|
+
return Qt = e ? function(c) {
|
|
2872
2879
|
return e(c);
|
|
2873
2880
|
} : n ? function(c) {
|
|
2874
2881
|
if (!c || typeof c != "object" && typeof c != "function")
|
|
@@ -2876,25 +2883,25 @@ function fs() {
|
|
|
2876
2883
|
return n(c);
|
|
2877
2884
|
} : t ? function(c) {
|
|
2878
2885
|
return t(c);
|
|
2879
|
-
} : null,
|
|
2886
|
+
} : null, Qt;
|
|
2880
2887
|
}
|
|
2881
|
-
var
|
|
2888
|
+
var Kt, Un;
|
|
2882
2889
|
function ps() {
|
|
2883
|
-
if (Un) return
|
|
2890
|
+
if (Un) return Kt;
|
|
2884
2891
|
Un = 1;
|
|
2885
|
-
var e = Function.prototype.call, n = Object.prototype.hasOwnProperty, t =
|
|
2886
|
-
return
|
|
2892
|
+
var e = Function.prototype.call, n = Object.prototype.hasOwnProperty, t = We();
|
|
2893
|
+
return Kt = t.call(e, n), Kt;
|
|
2887
2894
|
}
|
|
2888
|
-
var
|
|
2895
|
+
var Yt, Ln;
|
|
2889
2896
|
function Or() {
|
|
2890
|
-
if (Ln) return
|
|
2897
|
+
if (Ln) return Yt;
|
|
2891
2898
|
Ln = 1;
|
|
2892
|
-
var e, n = /* @__PURE__ */
|
|
2899
|
+
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
2900
|
try {
|
|
2894
2901
|
return u('"use strict"; return (' + V + ").constructor;")();
|
|
2895
2902
|
} catch {
|
|
2896
2903
|
}
|
|
2897
|
-
}, v = /* @__PURE__ */
|
|
2904
|
+
}, v = /* @__PURE__ */ rt(), S = /* @__PURE__ */ nt(), T = function() {
|
|
2898
2905
|
throw new o();
|
|
2899
2906
|
}, p = v ? function() {
|
|
2900
2907
|
try {
|
|
@@ -2906,7 +2913,7 @@ function Or() {
|
|
|
2906
2913
|
return T;
|
|
2907
2914
|
}
|
|
2908
2915
|
}
|
|
2909
|
-
}() : T, O = ss()(), g = fs(), R =
|
|
2916
|
+
}() : T, O = ss()(), g = fs(), R = Sa(), C = ja(), N = Sr(), B = jr(), P = {}, oe = typeof Uint8Array > "u" || !g ? e : g(Uint8Array), H = {
|
|
2910
2917
|
__proto__: null,
|
|
2911
2918
|
"%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
|
|
2912
2919
|
"%Array%": Array,
|
|
@@ -3066,7 +3073,7 @@ function Or() {
|
|
|
3066
3073
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
3067
3074
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
3068
3075
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
3069
|
-
}, A =
|
|
3076
|
+
}, 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
3077
|
var F = q(I, 0, 1), _ = q(I, -1);
|
|
3071
3078
|
if (F === "%" && _ !== "%")
|
|
3072
3079
|
throw new r("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -3090,20 +3097,20 @@ function Or() {
|
|
|
3090
3097
|
}
|
|
3091
3098
|
throw new r("intrinsic " + I + " does not exist!");
|
|
3092
3099
|
};
|
|
3093
|
-
return
|
|
3100
|
+
return Yt = function(I, F) {
|
|
3094
3101
|
if (typeof I != "string" || I.length === 0)
|
|
3095
3102
|
throw new o("intrinsic name must be a non-empty string");
|
|
3096
3103
|
if (arguments.length > 1 && typeof F != "boolean")
|
|
3097
3104
|
throw new o('"allowMissing" argument must be a boolean');
|
|
3098
3105
|
if (U(/^%?[^%]*%?$/, I) === null)
|
|
3099
3106
|
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 ((
|
|
3107
|
+
var _ = K(I), Q = _.length > 0 ? _[0] : "", W = ne("%" + Q + "%", F), Y = W.name, ae = W.value, he = !1, Se = W.alias;
|
|
3108
|
+
Se && (Q = Se[0], k(_, E([0, 1], Se)));
|
|
3109
|
+
for (var qe = 1, Oe = !0; qe < _.length; qe += 1) {
|
|
3110
|
+
var ye = _[qe], Ee = q(ye, 0, 1), Re = q(ye, -1);
|
|
3111
|
+
if ((Ee === '"' || Ee === "'" || Ee === "`" || Re === '"' || Re === "'" || Re === "`") && Ee !== Re)
|
|
3105
3112
|
throw new r("property names with quotes must have matching quotes");
|
|
3106
|
-
if ((ye === "constructor" || !
|
|
3113
|
+
if ((ye === "constructor" || !Oe) && (he = !0), Q += "." + ye, Y = "%" + Q + "%", re(H, Y))
|
|
3107
3114
|
ae = H[Y];
|
|
3108
3115
|
else if (ae != null) {
|
|
3109
3116
|
if (!(ye in ae)) {
|
|
@@ -3111,23 +3118,23 @@ function Or() {
|
|
|
3111
3118
|
throw new o("base intrinsic for " + I + " exists, but the property is not available.");
|
|
3112
3119
|
return;
|
|
3113
3120
|
}
|
|
3114
|
-
if (v &&
|
|
3115
|
-
var
|
|
3116
|
-
|
|
3121
|
+
if (v && qe + 1 >= _.length) {
|
|
3122
|
+
var Te = v(ae, ye);
|
|
3123
|
+
Oe = !!Te, Oe && "get" in Te && !("originalValue" in Te.get) ? ae = Te.get : ae = ae[ye];
|
|
3117
3124
|
} else
|
|
3118
|
-
|
|
3119
|
-
|
|
3125
|
+
Oe = re(ae, ye), ae = ae[ye];
|
|
3126
|
+
Oe && !he && (H[Y] = ae);
|
|
3120
3127
|
}
|
|
3121
3128
|
}
|
|
3122
3129
|
return ae;
|
|
3123
|
-
},
|
|
3130
|
+
}, Yt;
|
|
3124
3131
|
}
|
|
3125
|
-
var
|
|
3132
|
+
var Xt = { exports: {} }, Zt, Fn;
|
|
3126
3133
|
function ds() {
|
|
3127
|
-
if (Fn) return
|
|
3134
|
+
if (Fn) return Zt;
|
|
3128
3135
|
Fn = 1;
|
|
3129
|
-
var e = /* @__PURE__ */
|
|
3130
|
-
return
|
|
3136
|
+
var e = /* @__PURE__ */ nt(), n = /* @__PURE__ */ wa(), t = /* @__PURE__ */ ze(), a = /* @__PURE__ */ rt();
|
|
3137
|
+
return Zt = function(s, r, o) {
|
|
3131
3138
|
if (!s || typeof s != "object" && typeof s != "function")
|
|
3132
3139
|
throw new t("`obj` must be an object or a function`");
|
|
3133
3140
|
if (typeof r != "string" && typeof r != "symbol")
|
|
@@ -3152,13 +3159,13 @@ function ds() {
|
|
|
3152
3159
|
s[r] = o;
|
|
3153
3160
|
else
|
|
3154
3161
|
throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
3155
|
-
},
|
|
3162
|
+
}, Zt;
|
|
3156
3163
|
}
|
|
3157
|
-
var
|
|
3164
|
+
var er, _n;
|
|
3158
3165
|
function hs() {
|
|
3159
|
-
if (_n) return
|
|
3166
|
+
if (_n) return er;
|
|
3160
3167
|
_n = 1;
|
|
3161
|
-
var e = /* @__PURE__ */
|
|
3168
|
+
var e = /* @__PURE__ */ nt(), n = function() {
|
|
3162
3169
|
return !!e;
|
|
3163
3170
|
};
|
|
3164
3171
|
return n.hasArrayLengthDefineBug = function() {
|
|
@@ -3169,14 +3176,14 @@ function hs() {
|
|
|
3169
3176
|
} catch {
|
|
3170
3177
|
return !0;
|
|
3171
3178
|
}
|
|
3172
|
-
},
|
|
3179
|
+
}, er = n, er;
|
|
3173
3180
|
}
|
|
3174
|
-
var
|
|
3181
|
+
var tr, Bn;
|
|
3175
3182
|
function ys() {
|
|
3176
|
-
if (Bn) return
|
|
3183
|
+
if (Bn) return tr;
|
|
3177
3184
|
Bn = 1;
|
|
3178
|
-
var e = /* @__PURE__ */ Or(), n = /* @__PURE__ */ ds(), t = /* @__PURE__ */ hs()(), a = /* @__PURE__ */
|
|
3179
|
-
return
|
|
3185
|
+
var e = /* @__PURE__ */ Or(), n = /* @__PURE__ */ ds(), t = /* @__PURE__ */ hs()(), a = /* @__PURE__ */ rt(), c = /* @__PURE__ */ ze(), s = e("%Math.floor%");
|
|
3186
|
+
return tr = function(o, i) {
|
|
3180
3187
|
if (typeof o != "function")
|
|
3181
3188
|
throw new c("`fn` is not a function");
|
|
3182
3189
|
if (typeof i != "number" || i < 0 || i > 4294967295 || s(i) !== i)
|
|
@@ -3199,21 +3206,21 @@ function ys() {
|
|
|
3199
3206
|
"length",
|
|
3200
3207
|
i
|
|
3201
3208
|
)), o;
|
|
3202
|
-
},
|
|
3209
|
+
}, tr;
|
|
3203
3210
|
}
|
|
3204
|
-
var
|
|
3211
|
+
var rr, Hn;
|
|
3205
3212
|
function ms() {
|
|
3206
|
-
if (Hn) return
|
|
3213
|
+
if (Hn) return rr;
|
|
3207
3214
|
Hn = 1;
|
|
3208
|
-
var e =
|
|
3209
|
-
return
|
|
3215
|
+
var e = We(), n = Sr(), t = Oa();
|
|
3216
|
+
return rr = function() {
|
|
3210
3217
|
return t(e, n, arguments);
|
|
3211
|
-
},
|
|
3218
|
+
}, rr;
|
|
3212
3219
|
}
|
|
3213
3220
|
var Mn;
|
|
3214
3221
|
function gs() {
|
|
3215
3222
|
return Mn || (Mn = 1, function(e) {
|
|
3216
|
-
var n = /* @__PURE__ */ ys(), t = /* @__PURE__ */
|
|
3223
|
+
var n = /* @__PURE__ */ ys(), t = /* @__PURE__ */ nt(), a = Ta(), c = ms();
|
|
3217
3224
|
e.exports = function(r) {
|
|
3218
3225
|
var o = a(arguments), i = r.length - (arguments.length - 1);
|
|
3219
3226
|
return n(
|
|
@@ -3222,385 +3229,385 @@ function gs() {
|
|
|
3222
3229
|
!0
|
|
3223
3230
|
);
|
|
3224
3231
|
}, t ? t(e.exports, "apply", { value: c }) : e.exports.apply = c;
|
|
3225
|
-
}(
|
|
3232
|
+
}(Xt)), Xt.exports;
|
|
3226
3233
|
}
|
|
3227
|
-
var
|
|
3234
|
+
var nr, zn;
|
|
3228
3235
|
function vs() {
|
|
3229
|
-
if (zn) return
|
|
3236
|
+
if (zn) return nr;
|
|
3230
3237
|
zn = 1;
|
|
3231
3238
|
var e = /* @__PURE__ */ Or(), n = gs(), t = n(e("String.prototype.indexOf"));
|
|
3232
|
-
return
|
|
3239
|
+
return nr = function(c, s) {
|
|
3233
3240
|
var r = e(c, !!s);
|
|
3234
3241
|
return typeof r == "function" && t(c, ".prototype.") > -1 ? n(r) : r;
|
|
3235
|
-
},
|
|
3242
|
+
}, nr;
|
|
3236
3243
|
}
|
|
3237
3244
|
const bs = {}, xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3238
3245
|
__proto__: null,
|
|
3239
3246
|
default: bs
|
|
3240
3247
|
}, Symbol.toStringTag, { value: "Module" })), $s = /* @__PURE__ */ ho(xs);
|
|
3241
|
-
var
|
|
3242
|
-
function
|
|
3243
|
-
if (Wn) return
|
|
3248
|
+
var ar, Wn;
|
|
3249
|
+
function ws() {
|
|
3250
|
+
if (Wn) return ar;
|
|
3244
3251
|
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
|
|
3252
|
+
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) {
|
|
3253
|
+
return w.__proto__;
|
|
3247
3254
|
} : null);
|
|
3248
|
-
function A(
|
|
3249
|
-
if (
|
|
3250
|
-
return
|
|
3255
|
+
function A(w, j) {
|
|
3256
|
+
if (w === 1 / 0 || w === -1 / 0 || w !== w || w && w > -1e3 && w < 1e3 || O.call(/e/, j))
|
|
3257
|
+
return j;
|
|
3251
3258
|
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(
|
|
3259
|
+
if (typeof w == "number") {
|
|
3260
|
+
var ee = w < 0 ? -N(-w) : N(w);
|
|
3261
|
+
if (ee !== w) {
|
|
3262
|
+
var ie = String(ee), M = v.call(j, ie.length + 1);
|
|
3256
3263
|
return S.call(ie, X, "$&_") + "." + S.call(S.call(M, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
3257
3264
|
}
|
|
3258
3265
|
}
|
|
3259
|
-
return S.call(
|
|
3266
|
+
return S.call(j, X, "$&_");
|
|
3260
3267
|
}
|
|
3261
3268
|
var re = $s, E = re.custom, k = F(E) ? E : null;
|
|
3262
|
-
|
|
3269
|
+
ar = function w(j, X, ee, ie) {
|
|
3263
3270
|
var M = X || {};
|
|
3264
3271
|
if (W(M, "quoteStyle") && M.quoteStyle !== "single" && M.quoteStyle !== "double")
|
|
3265
3272
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
3266
3273
|
if (W(M, "maxStringLength") && (typeof M.maxStringLength == "number" ? M.maxStringLength < 0 && M.maxStringLength !== 1 / 0 : M.maxStringLength !== null))
|
|
3267
3274
|
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
3268
|
-
var
|
|
3269
|
-
if (typeof
|
|
3275
|
+
var xe = W(M, "customInspect") ? M.customInspect : !0;
|
|
3276
|
+
if (typeof xe != "boolean" && xe !== "symbol")
|
|
3270
3277
|
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
3271
3278
|
if (W(M, "indent") && M.indent !== null && M.indent !== " " && !(parseInt(M.indent, 10) === M.indent && M.indent > 0))
|
|
3272
3279
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
3273
3280
|
if (W(M, "numericSeparator") && typeof M.numericSeparator != "boolean")
|
|
3274
3281
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
3275
|
-
var
|
|
3276
|
-
if (typeof
|
|
3282
|
+
var Pe = M.numericSeparator;
|
|
3283
|
+
if (typeof j > "u")
|
|
3277
3284
|
return "undefined";
|
|
3278
|
-
if (
|
|
3285
|
+
if (j === null)
|
|
3279
3286
|
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
|
|
3287
|
+
if (typeof j == "boolean")
|
|
3288
|
+
return j ? "true" : "false";
|
|
3289
|
+
if (typeof j == "string")
|
|
3290
|
+
return Te(j, M);
|
|
3291
|
+
if (typeof j == "number") {
|
|
3292
|
+
if (j === 0)
|
|
3293
|
+
return 1 / 0 / j > 0 ? "0" : "-0";
|
|
3294
|
+
var de = String(j);
|
|
3295
|
+
return Pe ? A(j, de) : de;
|
|
3289
3296
|
}
|
|
3290
|
-
if (typeof
|
|
3291
|
-
var
|
|
3292
|
-
return
|
|
3297
|
+
if (typeof j == "bigint") {
|
|
3298
|
+
var $e = String(j) + "n";
|
|
3299
|
+
return Pe ? A(j, $e) : $e;
|
|
3293
3300
|
}
|
|
3294
|
-
var
|
|
3295
|
-
if (typeof ee > "u" && (ee = 0), ee >=
|
|
3296
|
-
return U(
|
|
3297
|
-
var
|
|
3301
|
+
var it = typeof M.depth > "u" ? 5 : M.depth;
|
|
3302
|
+
if (typeof ee > "u" && (ee = 0), ee >= it && it > 0 && typeof j == "object")
|
|
3303
|
+
return U(j) ? "[Array]" : "[Object]";
|
|
3304
|
+
var ke = ka(M, ee);
|
|
3298
3305
|
if (typeof ie > "u")
|
|
3299
3306
|
ie = [];
|
|
3300
|
-
else if (he(ie,
|
|
3307
|
+
else if (he(ie, j) >= 0)
|
|
3301
3308
|
return "[Circular]";
|
|
3302
|
-
function me(
|
|
3303
|
-
if (
|
|
3309
|
+
function me(Ne, Ge, Aa) {
|
|
3310
|
+
if (Ge && (ie = C.call(ie), ie.push(Ge)), Aa) {
|
|
3304
3311
|
var Ir = {
|
|
3305
3312
|
depth: M.depth
|
|
3306
3313
|
};
|
|
3307
|
-
return W(M, "quoteStyle") && (Ir.quoteStyle = M.quoteStyle),
|
|
3314
|
+
return W(M, "quoteStyle") && (Ir.quoteStyle = M.quoteStyle), w(Ne, Ir, ee + 1, ie);
|
|
3308
3315
|
}
|
|
3309
|
-
return
|
|
3316
|
+
return w(Ne, M, ee + 1, ie);
|
|
3310
3317
|
}
|
|
3311
|
-
if (typeof
|
|
3312
|
-
var Cr = ae(
|
|
3318
|
+
if (typeof j == "function" && !z(j)) {
|
|
3319
|
+
var Cr = ae(j), qr = Je(j, me);
|
|
3313
3320
|
return "[Function" + (Cr ? ": " + Cr : " (anonymous)") + "]" + (qr.length > 0 ? " { " + R.call(qr, ", ") + " }" : "");
|
|
3314
3321
|
}
|
|
3315
|
-
if (F(
|
|
3316
|
-
var Er = H ? S.call(String(
|
|
3317
|
-
return typeof
|
|
3322
|
+
if (F(j)) {
|
|
3323
|
+
var Er = H ? S.call(String(j), /^(Symbol\(.*\))_[^)]*$/, "$1") : oe.call(j);
|
|
3324
|
+
return typeof j == "object" && !H ? Ie(Er) : Er;
|
|
3318
3325
|
}
|
|
3319
|
-
if (
|
|
3320
|
-
for (var
|
|
3321
|
-
|
|
3322
|
-
return
|
|
3326
|
+
if (Re(j)) {
|
|
3327
|
+
for (var Ue = "<" + p.call(String(j.nodeName)), st = j.attributes || [], Ve = 0; Ve < st.length; Ve++)
|
|
3328
|
+
Ue += " " + st[Ve].name + "=" + L(q(st[Ve].value), "double", M);
|
|
3329
|
+
return Ue += ">", j.childNodes && j.childNodes.length && (Ue += "..."), Ue += "</" + p.call(String(j.nodeName)) + ">", Ue;
|
|
3323
3330
|
}
|
|
3324
|
-
if (U(
|
|
3325
|
-
if (
|
|
3331
|
+
if (U(j)) {
|
|
3332
|
+
if (j.length === 0)
|
|
3326
3333
|
return "[]";
|
|
3327
|
-
var
|
|
3328
|
-
return
|
|
3334
|
+
var lt = Je(j, me);
|
|
3335
|
+
return ke && !Ra(lt) ? "[" + ot(lt, ke) + "]" : "[ " + R.call(lt, ", ") + " ]";
|
|
3329
3336
|
}
|
|
3330
|
-
if (K(
|
|
3331
|
-
var
|
|
3332
|
-
return !("cause" in Error.prototype) && "cause" in
|
|
3337
|
+
if (K(j)) {
|
|
3338
|
+
var ct = Je(j, me);
|
|
3339
|
+
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
3340
|
}
|
|
3334
|
-
if (typeof
|
|
3335
|
-
if (k && typeof
|
|
3336
|
-
return re(
|
|
3337
|
-
if (
|
|
3338
|
-
return
|
|
3341
|
+
if (typeof j == "object" && xe) {
|
|
3342
|
+
if (k && typeof j[k] == "function" && re)
|
|
3343
|
+
return re(j, { depth: it - ee });
|
|
3344
|
+
if (xe !== "symbol" && typeof j.inspect == "function")
|
|
3345
|
+
return j.inspect();
|
|
3339
3346
|
}
|
|
3340
|
-
if (
|
|
3347
|
+
if (Se(j)) {
|
|
3341
3348
|
var Rr = [];
|
|
3342
|
-
return a && a.call(
|
|
3343
|
-
Rr.push(me(
|
|
3344
|
-
}), Pr("Map", t.call(
|
|
3349
|
+
return a && a.call(j, function(Ne, Ge) {
|
|
3350
|
+
Rr.push(me(Ge, j, !0) + " => " + me(Ne, j));
|
|
3351
|
+
}), Pr("Map", t.call(j), Rr, ke);
|
|
3345
3352
|
}
|
|
3346
|
-
if (ye(
|
|
3353
|
+
if (ye(j)) {
|
|
3347
3354
|
var kr = [];
|
|
3348
|
-
return o && o.call(
|
|
3349
|
-
kr.push(me(
|
|
3350
|
-
}), Pr("Set", r.call(
|
|
3355
|
+
return o && o.call(j, function(Ne) {
|
|
3356
|
+
kr.push(me(Ne, j));
|
|
3357
|
+
}), Pr("Set", r.call(j), kr, ke);
|
|
3351
3358
|
}
|
|
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" &&
|
|
3359
|
+
if (qe(j))
|
|
3360
|
+
return at("WeakMap");
|
|
3361
|
+
if (Ee(j))
|
|
3362
|
+
return at("WeakSet");
|
|
3363
|
+
if (Oe(j))
|
|
3364
|
+
return at("WeakRef");
|
|
3365
|
+
if (V(j))
|
|
3366
|
+
return Ie(me(Number(j)));
|
|
3367
|
+
if (_(j))
|
|
3368
|
+
return Ie(me(B.call(j)));
|
|
3369
|
+
if (I(j))
|
|
3370
|
+
return Ie(x.call(j));
|
|
3371
|
+
if (ne(j))
|
|
3372
|
+
return Ie(me(String(j)));
|
|
3373
|
+
if (typeof window < "u" && j === window)
|
|
3367
3374
|
return "{ [object Window] }";
|
|
3368
|
-
if (typeof globalThis < "u" &&
|
|
3375
|
+
if (typeof globalThis < "u" && j === globalThis || typeof Ye < "u" && j === Ye)
|
|
3369
3376
|
return "{ [object globalThis] }";
|
|
3370
|
-
if (!J(
|
|
3371
|
-
var
|
|
3372
|
-
return
|
|
3377
|
+
if (!J(j) && !z(j)) {
|
|
3378
|
+
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 || []), ": ") + "] " : "");
|
|
3379
|
+
return ut.length === 0 ? pt + "{}" : ke ? pt + "{" + ot(ut, ke) + "}" : pt + "{ " + R.call(ut, ", ") + " }";
|
|
3373
3380
|
}
|
|
3374
|
-
return String(
|
|
3381
|
+
return String(j);
|
|
3375
3382
|
};
|
|
3376
|
-
function L(
|
|
3377
|
-
var ee = (X.quoteStyle ||
|
|
3378
|
-
return ee +
|
|
3383
|
+
function L(w, j, X) {
|
|
3384
|
+
var ee = (X.quoteStyle || j) === "double" ? '"' : "'";
|
|
3385
|
+
return ee + w + ee;
|
|
3379
3386
|
}
|
|
3380
|
-
function q(
|
|
3381
|
-
return S.call(String(
|
|
3387
|
+
function q(w) {
|
|
3388
|
+
return S.call(String(w), /"/g, """);
|
|
3382
3389
|
}
|
|
3383
|
-
function U(
|
|
3384
|
-
return Y(
|
|
3390
|
+
function U(w) {
|
|
3391
|
+
return Y(w) === "[object Array]" && (!D || !(typeof w == "object" && D in w));
|
|
3385
3392
|
}
|
|
3386
|
-
function J(
|
|
3387
|
-
return Y(
|
|
3393
|
+
function J(w) {
|
|
3394
|
+
return Y(w) === "[object Date]" && (!D || !(typeof w == "object" && D in w));
|
|
3388
3395
|
}
|
|
3389
|
-
function z(
|
|
3390
|
-
return Y(
|
|
3396
|
+
function z(w) {
|
|
3397
|
+
return Y(w) === "[object RegExp]" && (!D || !(typeof w == "object" && D in w));
|
|
3391
3398
|
}
|
|
3392
|
-
function K(
|
|
3393
|
-
return Y(
|
|
3399
|
+
function K(w) {
|
|
3400
|
+
return Y(w) === "[object Error]" && (!D || !(typeof w == "object" && D in w));
|
|
3394
3401
|
}
|
|
3395
|
-
function ne(
|
|
3396
|
-
return Y(
|
|
3402
|
+
function ne(w) {
|
|
3403
|
+
return Y(w) === "[object String]" && (!D || !(typeof w == "object" && D in w));
|
|
3397
3404
|
}
|
|
3398
|
-
function V(
|
|
3399
|
-
return Y(
|
|
3405
|
+
function V(w) {
|
|
3406
|
+
return Y(w) === "[object Number]" && (!D || !(typeof w == "object" && D in w));
|
|
3400
3407
|
}
|
|
3401
|
-
function I(
|
|
3402
|
-
return Y(
|
|
3408
|
+
function I(w) {
|
|
3409
|
+
return Y(w) === "[object Boolean]" && (!D || !(typeof w == "object" && D in w));
|
|
3403
3410
|
}
|
|
3404
|
-
function F(
|
|
3411
|
+
function F(w) {
|
|
3405
3412
|
if (H)
|
|
3406
|
-
return
|
|
3407
|
-
if (typeof
|
|
3413
|
+
return w && typeof w == "object" && w instanceof Symbol;
|
|
3414
|
+
if (typeof w == "symbol")
|
|
3408
3415
|
return !0;
|
|
3409
|
-
if (!
|
|
3416
|
+
if (!w || typeof w != "object" || !oe)
|
|
3410
3417
|
return !1;
|
|
3411
3418
|
try {
|
|
3412
|
-
return oe.call(
|
|
3419
|
+
return oe.call(w), !0;
|
|
3413
3420
|
} catch {
|
|
3414
3421
|
}
|
|
3415
3422
|
return !1;
|
|
3416
3423
|
}
|
|
3417
|
-
function _(
|
|
3418
|
-
if (!
|
|
3424
|
+
function _(w) {
|
|
3425
|
+
if (!w || typeof w != "object" || !B)
|
|
3419
3426
|
return !1;
|
|
3420
3427
|
try {
|
|
3421
|
-
return B.call(
|
|
3428
|
+
return B.call(w), !0;
|
|
3422
3429
|
} catch {
|
|
3423
3430
|
}
|
|
3424
3431
|
return !1;
|
|
3425
3432
|
}
|
|
3426
|
-
var Q = Object.prototype.hasOwnProperty || function(
|
|
3427
|
-
return
|
|
3433
|
+
var Q = Object.prototype.hasOwnProperty || function(w) {
|
|
3434
|
+
return w in this;
|
|
3428
3435
|
};
|
|
3429
|
-
function W(
|
|
3430
|
-
return Q.call(
|
|
3436
|
+
function W(w, j) {
|
|
3437
|
+
return Q.call(w, j);
|
|
3431
3438
|
}
|
|
3432
|
-
function Y(
|
|
3433
|
-
return $.call(
|
|
3439
|
+
function Y(w) {
|
|
3440
|
+
return $.call(w);
|
|
3434
3441
|
}
|
|
3435
|
-
function ae(
|
|
3436
|
-
if (
|
|
3437
|
-
return
|
|
3438
|
-
var
|
|
3439
|
-
return
|
|
3442
|
+
function ae(w) {
|
|
3443
|
+
if (w.name)
|
|
3444
|
+
return w.name;
|
|
3445
|
+
var j = m.call(u.call(w), /^function\s*([\w$]+)/);
|
|
3446
|
+
return j ? j[1] : null;
|
|
3440
3447
|
}
|
|
3441
|
-
function he(
|
|
3442
|
-
if (
|
|
3443
|
-
return
|
|
3444
|
-
for (var X = 0, ee =
|
|
3445
|
-
if (
|
|
3448
|
+
function he(w, j) {
|
|
3449
|
+
if (w.indexOf)
|
|
3450
|
+
return w.indexOf(j);
|
|
3451
|
+
for (var X = 0, ee = w.length; X < ee; X++)
|
|
3452
|
+
if (w[X] === j)
|
|
3446
3453
|
return X;
|
|
3447
3454
|
return -1;
|
|
3448
3455
|
}
|
|
3449
|
-
function
|
|
3450
|
-
if (!t || !
|
|
3456
|
+
function Se(w) {
|
|
3457
|
+
if (!t || !w || typeof w != "object")
|
|
3451
3458
|
return !1;
|
|
3452
3459
|
try {
|
|
3453
|
-
t.call(
|
|
3460
|
+
t.call(w);
|
|
3454
3461
|
try {
|
|
3455
|
-
r.call(
|
|
3462
|
+
r.call(w);
|
|
3456
3463
|
} catch {
|
|
3457
3464
|
return !0;
|
|
3458
3465
|
}
|
|
3459
|
-
return
|
|
3466
|
+
return w instanceof Map;
|
|
3460
3467
|
} catch {
|
|
3461
3468
|
}
|
|
3462
3469
|
return !1;
|
|
3463
3470
|
}
|
|
3464
|
-
function
|
|
3465
|
-
if (!l || !
|
|
3471
|
+
function qe(w) {
|
|
3472
|
+
if (!l || !w || typeof w != "object")
|
|
3466
3473
|
return !1;
|
|
3467
3474
|
try {
|
|
3468
|
-
l.call(
|
|
3475
|
+
l.call(w, l);
|
|
3469
3476
|
try {
|
|
3470
|
-
y.call(
|
|
3477
|
+
y.call(w, y);
|
|
3471
3478
|
} catch {
|
|
3472
3479
|
return !0;
|
|
3473
3480
|
}
|
|
3474
|
-
return
|
|
3481
|
+
return w instanceof WeakMap;
|
|
3475
3482
|
} catch {
|
|
3476
3483
|
}
|
|
3477
3484
|
return !1;
|
|
3478
3485
|
}
|
|
3479
|
-
function
|
|
3480
|
-
if (!h || !
|
|
3486
|
+
function Oe(w) {
|
|
3487
|
+
if (!h || !w || typeof w != "object")
|
|
3481
3488
|
return !1;
|
|
3482
3489
|
try {
|
|
3483
|
-
return h.call(
|
|
3490
|
+
return h.call(w), !0;
|
|
3484
3491
|
} catch {
|
|
3485
3492
|
}
|
|
3486
3493
|
return !1;
|
|
3487
3494
|
}
|
|
3488
|
-
function ye(
|
|
3489
|
-
if (!r || !
|
|
3495
|
+
function ye(w) {
|
|
3496
|
+
if (!r || !w || typeof w != "object")
|
|
3490
3497
|
return !1;
|
|
3491
3498
|
try {
|
|
3492
|
-
r.call(
|
|
3499
|
+
r.call(w);
|
|
3493
3500
|
try {
|
|
3494
|
-
t.call(
|
|
3501
|
+
t.call(w);
|
|
3495
3502
|
} catch {
|
|
3496
3503
|
return !0;
|
|
3497
3504
|
}
|
|
3498
|
-
return
|
|
3505
|
+
return w instanceof Set;
|
|
3499
3506
|
} catch {
|
|
3500
3507
|
}
|
|
3501
3508
|
return !1;
|
|
3502
3509
|
}
|
|
3503
|
-
function
|
|
3504
|
-
if (!y || !
|
|
3510
|
+
function Ee(w) {
|
|
3511
|
+
if (!y || !w || typeof w != "object")
|
|
3505
3512
|
return !1;
|
|
3506
3513
|
try {
|
|
3507
|
-
y.call(
|
|
3514
|
+
y.call(w, y);
|
|
3508
3515
|
try {
|
|
3509
|
-
l.call(
|
|
3516
|
+
l.call(w, l);
|
|
3510
3517
|
} catch {
|
|
3511
3518
|
return !0;
|
|
3512
3519
|
}
|
|
3513
|
-
return
|
|
3520
|
+
return w instanceof WeakSet;
|
|
3514
3521
|
} catch {
|
|
3515
3522
|
}
|
|
3516
3523
|
return !1;
|
|
3517
3524
|
}
|
|
3518
|
-
function
|
|
3519
|
-
return !
|
|
3525
|
+
function Re(w) {
|
|
3526
|
+
return !w || typeof w != "object" ? !1 : typeof HTMLElement < "u" && w instanceof HTMLElement ? !0 : typeof w.nodeName == "string" && typeof w.getAttribute == "function";
|
|
3520
3527
|
}
|
|
3521
|
-
function
|
|
3522
|
-
if (
|
|
3523
|
-
var X =
|
|
3524
|
-
return
|
|
3528
|
+
function Te(w, j) {
|
|
3529
|
+
if (w.length > j.maxStringLength) {
|
|
3530
|
+
var X = w.length - j.maxStringLength, ee = "... " + X + " more character" + (X > 1 ? "s" : "");
|
|
3531
|
+
return Te(v.call(w, 0, j.maxStringLength), j) + ee;
|
|
3525
3532
|
}
|
|
3526
|
-
var ie = S.call(S.call(
|
|
3527
|
-
return L(ie, "single",
|
|
3533
|
+
var ie = S.call(S.call(w, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ea);
|
|
3534
|
+
return L(ie, "single", j);
|
|
3528
3535
|
}
|
|
3529
|
-
function Ea(
|
|
3530
|
-
var
|
|
3536
|
+
function Ea(w) {
|
|
3537
|
+
var j = w.charCodeAt(0), X = {
|
|
3531
3538
|
8: "b",
|
|
3532
3539
|
9: "t",
|
|
3533
3540
|
10: "n",
|
|
3534
3541
|
12: "f",
|
|
3535
3542
|
13: "r"
|
|
3536
|
-
}[
|
|
3537
|
-
return X ? "\\" + X : "\\x" + (
|
|
3543
|
+
}[j];
|
|
3544
|
+
return X ? "\\" + X : "\\x" + (j < 16 ? "0" : "") + T.call(j.toString(16));
|
|
3538
3545
|
}
|
|
3539
|
-
function
|
|
3540
|
-
return "Object(" +
|
|
3546
|
+
function Ie(w) {
|
|
3547
|
+
return "Object(" + w + ")";
|
|
3541
3548
|
}
|
|
3542
|
-
function
|
|
3543
|
-
return
|
|
3549
|
+
function at(w) {
|
|
3550
|
+
return w + " { ? }";
|
|
3544
3551
|
}
|
|
3545
|
-
function Pr(
|
|
3546
|
-
var ie = ee ?
|
|
3547
|
-
return
|
|
3552
|
+
function Pr(w, j, X, ee) {
|
|
3553
|
+
var ie = ee ? ot(X, ee) : R.call(X, ", ");
|
|
3554
|
+
return w + " (" + j + ") {" + ie + "}";
|
|
3548
3555
|
}
|
|
3549
|
-
function Ra(
|
|
3550
|
-
for (var
|
|
3551
|
-
if (he(j
|
|
3556
|
+
function Ra(w) {
|
|
3557
|
+
for (var j = 0; j < w.length; j++)
|
|
3558
|
+
if (he(w[j], `
|
|
3552
3559
|
`) >= 0)
|
|
3553
3560
|
return !1;
|
|
3554
3561
|
return !0;
|
|
3555
3562
|
}
|
|
3556
|
-
function ka(
|
|
3563
|
+
function ka(w, j) {
|
|
3557
3564
|
var X;
|
|
3558
|
-
if (
|
|
3565
|
+
if (w.indent === " ")
|
|
3559
3566
|
X = " ";
|
|
3560
|
-
else if (typeof
|
|
3561
|
-
X = R.call(Array(
|
|
3567
|
+
else if (typeof w.indent == "number" && w.indent > 0)
|
|
3568
|
+
X = R.call(Array(w.indent + 1), " ");
|
|
3562
3569
|
else
|
|
3563
3570
|
return null;
|
|
3564
3571
|
return {
|
|
3565
3572
|
base: X,
|
|
3566
|
-
prev: R.call(Array(
|
|
3573
|
+
prev: R.call(Array(j + 1), X)
|
|
3567
3574
|
};
|
|
3568
3575
|
}
|
|
3569
|
-
function
|
|
3570
|
-
if (
|
|
3576
|
+
function ot(w, j) {
|
|
3577
|
+
if (w.length === 0)
|
|
3571
3578
|
return "";
|
|
3572
3579
|
var X = `
|
|
3573
|
-
` +
|
|
3574
|
-
return X + R.call(
|
|
3575
|
-
` +
|
|
3580
|
+
` + j.prev + j.base;
|
|
3581
|
+
return X + R.call(w, "," + X) + `
|
|
3582
|
+
` + j.prev;
|
|
3576
3583
|
}
|
|
3577
|
-
function
|
|
3578
|
-
var X = U(
|
|
3584
|
+
function Je(w, j) {
|
|
3585
|
+
var X = U(w), ee = [];
|
|
3579
3586
|
if (X) {
|
|
3580
|
-
ee.length =
|
|
3581
|
-
for (var ie = 0; ie <
|
|
3582
|
-
ee[ie] = W(
|
|
3587
|
+
ee.length = w.length;
|
|
3588
|
+
for (var ie = 0; ie < w.length; ie++)
|
|
3589
|
+
ee[ie] = W(w, ie) ? j(w[ie], w) : "";
|
|
3583
3590
|
}
|
|
3584
|
-
var M = typeof P == "function" ? P(
|
|
3591
|
+
var M = typeof P == "function" ? P(w) : [], xe;
|
|
3585
3592
|
if (H) {
|
|
3586
|
-
|
|
3587
|
-
for (var
|
|
3588
|
-
|
|
3593
|
+
xe = {};
|
|
3594
|
+
for (var Pe = 0; Pe < M.length; Pe++)
|
|
3595
|
+
xe["$" + M[Pe]] = M[Pe];
|
|
3589
3596
|
}
|
|
3590
|
-
for (var de in
|
|
3591
|
-
W(
|
|
3597
|
+
for (var de in w)
|
|
3598
|
+
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
3599
|
if (typeof P == "function")
|
|
3593
|
-
for (var
|
|
3594
|
-
se.call(
|
|
3600
|
+
for (var $e = 0; $e < M.length; $e++)
|
|
3601
|
+
se.call(w, M[$e]) && ee.push("[" + j(M[$e]) + "]: " + j(w[M[$e]], w));
|
|
3595
3602
|
return ee;
|
|
3596
3603
|
}
|
|
3597
|
-
return
|
|
3604
|
+
return ar;
|
|
3598
3605
|
}
|
|
3599
|
-
var
|
|
3600
|
-
function
|
|
3601
|
-
if (Jn) return
|
|
3606
|
+
var or, Jn;
|
|
3607
|
+
function js() {
|
|
3608
|
+
if (Jn) return or;
|
|
3602
3609
|
Jn = 1;
|
|
3603
|
-
var e = /* @__PURE__ */ Or(), n = vs(), t = /* @__PURE__ */
|
|
3610
|
+
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
3611
|
for (var v = u, S; (S = v.next) !== null; v = S)
|
|
3605
3612
|
if (S.key === m)
|
|
3606
3613
|
return v.next = S.next, S.next = /** @type {NonNullable<typeof list.next>} */
|
|
@@ -3620,7 +3627,7 @@ function ws() {
|
|
|
3620
3627
|
}, $ = function(u, m) {
|
|
3621
3628
|
return !!f(u, m);
|
|
3622
3629
|
};
|
|
3623
|
-
return
|
|
3630
|
+
return or = function() {
|
|
3624
3631
|
var m, v, S, T = {
|
|
3625
3632
|
assert: function(p) {
|
|
3626
3633
|
if (!T.has(p))
|
|
@@ -3652,17 +3659,17 @@ function ws() {
|
|
|
3652
3659
|
}
|
|
3653
3660
|
};
|
|
3654
3661
|
return T;
|
|
3655
|
-
},
|
|
3662
|
+
}, or;
|
|
3656
3663
|
}
|
|
3657
|
-
var
|
|
3664
|
+
var ir, Vn;
|
|
3658
3665
|
function Tr() {
|
|
3659
|
-
if (Vn) return
|
|
3666
|
+
if (Vn) return ir;
|
|
3660
3667
|
Vn = 1;
|
|
3661
3668
|
var e = String.prototype.replace, n = /%20/g, t = {
|
|
3662
3669
|
RFC1738: "RFC1738",
|
|
3663
3670
|
RFC3986: "RFC3986"
|
|
3664
3671
|
};
|
|
3665
|
-
return
|
|
3672
|
+
return ir = {
|
|
3666
3673
|
default: t.RFC3986,
|
|
3667
3674
|
formatters: {
|
|
3668
3675
|
RFC1738: function(a) {
|
|
@@ -3674,11 +3681,11 @@ function Tr() {
|
|
|
3674
3681
|
},
|
|
3675
3682
|
RFC1738: t.RFC1738,
|
|
3676
3683
|
RFC3986: t.RFC3986
|
|
3677
|
-
},
|
|
3684
|
+
}, ir;
|
|
3678
3685
|
}
|
|
3679
|
-
var
|
|
3680
|
-
function
|
|
3681
|
-
if (Gn) return
|
|
3686
|
+
var sr, Gn;
|
|
3687
|
+
function Pa() {
|
|
3688
|
+
if (Gn) return sr;
|
|
3682
3689
|
Gn = 1;
|
|
3683
3690
|
var e = /* @__PURE__ */ Tr(), n = Object.prototype.hasOwnProperty, t = Array.isArray, a = function() {
|
|
3684
3691
|
for (var u = [], m = 0; m < 256; ++m)
|
|
@@ -3788,7 +3795,7 @@ function Ca() {
|
|
|
3788
3795
|
}
|
|
3789
3796
|
return v(m);
|
|
3790
3797
|
};
|
|
3791
|
-
return
|
|
3798
|
+
return sr = {
|
|
3792
3799
|
arrayToObject: s,
|
|
3793
3800
|
assign: o,
|
|
3794
3801
|
combine: x,
|
|
@@ -3799,13 +3806,13 @@ function Ca() {
|
|
|
3799
3806
|
isRegExp: f,
|
|
3800
3807
|
maybeMap: $,
|
|
3801
3808
|
merge: r
|
|
3802
|
-
},
|
|
3809
|
+
}, sr;
|
|
3803
3810
|
}
|
|
3804
|
-
var
|
|
3811
|
+
var lr, Dn;
|
|
3805
3812
|
function Ss() {
|
|
3806
|
-
if (Dn) return
|
|
3813
|
+
if (Dn) return lr;
|
|
3807
3814
|
Dn = 1;
|
|
3808
|
-
var e =
|
|
3815
|
+
var e = js(), n = /* @__PURE__ */ Pa(), t = /* @__PURE__ */ Tr(), a = Object.prototype.hasOwnProperty, c = {
|
|
3809
3816
|
brackets: function(u) {
|
|
3810
3817
|
return u + "[]";
|
|
3811
3818
|
},
|
|
@@ -3955,7 +3962,7 @@ function Ss() {
|
|
|
3955
3962
|
strictNullHandling: typeof u.strictNullHandling == "boolean" ? u.strictNullHandling : d.strictNullHandling
|
|
3956
3963
|
};
|
|
3957
3964
|
};
|
|
3958
|
-
return
|
|
3965
|
+
return lr = function($, u) {
|
|
3959
3966
|
var m = $, v = x(u), S, T;
|
|
3960
3967
|
typeof v.filter == "function" ? (T = v.filter, m = T("", m)) : s(v.filter) && (T = v.filter, S = T);
|
|
3961
3968
|
var p = [];
|
|
@@ -3988,13 +3995,13 @@ function Ss() {
|
|
|
3988
3995
|
}
|
|
3989
3996
|
var B = p.join(v.delimiter), P = v.addQueryPrefix === !0 ? "?" : "";
|
|
3990
3997
|
return v.charsetSentinel && (v.charset === "iso-8859-1" ? P += "utf8=%26%2310003%3B&" : P += "utf8=%E2%9C%93&"), B.length > 0 ? P + B : "";
|
|
3991
|
-
},
|
|
3998
|
+
}, lr;
|
|
3992
3999
|
}
|
|
3993
|
-
var
|
|
4000
|
+
var cr, Qn;
|
|
3994
4001
|
function Os() {
|
|
3995
|
-
if (Qn) return
|
|
4002
|
+
if (Qn) return cr;
|
|
3996
4003
|
Qn = 1;
|
|
3997
|
-
var e = /* @__PURE__ */
|
|
4004
|
+
var e = /* @__PURE__ */ Pa(), n = Object.prototype.hasOwnProperty, t = Array.isArray, a = {
|
|
3998
4005
|
allowDots: !1,
|
|
3999
4006
|
allowEmptyArrays: !1,
|
|
4000
4007
|
allowPrototypes: !1,
|
|
@@ -4113,7 +4120,7 @@ function Os() {
|
|
|
4113
4120
|
strictNullHandling: typeof h.strictNullHandling == "boolean" ? h.strictNullHandling : a.strictNullHandling
|
|
4114
4121
|
};
|
|
4115
4122
|
};
|
|
4116
|
-
return
|
|
4123
|
+
return cr = function(f, h) {
|
|
4117
4124
|
var x = y(h);
|
|
4118
4125
|
if (f === "" || f === null || typeof f > "u")
|
|
4119
4126
|
return x.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
@@ -4122,22 +4129,22 @@ function Os() {
|
|
|
4122
4129
|
u = e.merge(u, T, x);
|
|
4123
4130
|
}
|
|
4124
4131
|
return x.allowSparse === !0 ? u : e.compact(u);
|
|
4125
|
-
},
|
|
4132
|
+
}, cr;
|
|
4126
4133
|
}
|
|
4127
|
-
var
|
|
4128
|
-
function
|
|
4129
|
-
if (Kn) return
|
|
4134
|
+
var ur, Kn;
|
|
4135
|
+
function Ca() {
|
|
4136
|
+
if (Kn) return ur;
|
|
4130
4137
|
Kn = 1;
|
|
4131
4138
|
var e = /* @__PURE__ */ Ss(), n = /* @__PURE__ */ Os(), t = /* @__PURE__ */ Tr();
|
|
4132
|
-
return
|
|
4139
|
+
return ur = {
|
|
4133
4140
|
formats: t,
|
|
4134
4141
|
parse: n,
|
|
4135
4142
|
stringify: e
|
|
4136
|
-
},
|
|
4143
|
+
}, ur;
|
|
4137
4144
|
}
|
|
4138
4145
|
var Yn;
|
|
4139
4146
|
function Ts() {
|
|
4140
|
-
if (Yn) return
|
|
4147
|
+
if (Yn) return Ce;
|
|
4141
4148
|
Yn = 1;
|
|
4142
4149
|
var e = Ji();
|
|
4143
4150
|
function n() {
|
|
@@ -4187,7 +4194,7 @@ function Ts() {
|
|
|
4187
4194
|
"ftp:": !0,
|
|
4188
4195
|
"gopher:": !0,
|
|
4189
4196
|
"file:": !0
|
|
4190
|
-
}, u = /* @__PURE__ */
|
|
4197
|
+
}, u = /* @__PURE__ */ Ca();
|
|
4191
4198
|
function m(p, O, g) {
|
|
4192
4199
|
if (p && typeof p == "object" && p instanceof n)
|
|
4193
4200
|
return p;
|
|
@@ -4257,8 +4264,8 @@ function Ts() {
|
|
|
4257
4264
|
ae !== -1 && (this.hash = P.substr(ae), P = P.slice(0, ae));
|
|
4258
4265
|
var he = P.indexOf("?");
|
|
4259
4266
|
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 = _ +
|
|
4267
|
+
var _ = this.pathname || "", Se = this.search || "";
|
|
4268
|
+
this.path = _ + Se;
|
|
4262
4269
|
}
|
|
4263
4270
|
return this.href = this.format(), this;
|
|
4264
4271
|
};
|
|
@@ -4356,9 +4363,9 @@ function Ts() {
|
|
|
4356
4363
|
}, n.prototype.parseHost = function() {
|
|
4357
4364
|
var p = this.host, O = a.exec(p);
|
|
4358
4365
|
O && (O = O[0], O !== ":" && (this.port = O.substr(1)), p = p.substr(0, p.length - O.length)), p && (this.hostname = p);
|
|
4359
|
-
},
|
|
4366
|
+
}, Ce.parse = m, Ce.resolve = S, Ce.resolveObject = T, Ce.format = v, Ce.Url = n, Ce;
|
|
4360
4367
|
}
|
|
4361
|
-
var
|
|
4368
|
+
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
4369
|
constructor(e, n = {}) {
|
|
4363
4370
|
this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
|
|
4364
4371
|
harIsAlreadyEncoded: !1,
|
|
@@ -4434,7 +4441,7 @@ var ur = Ts(), fr = /* @__PURE__ */ qa(), Ps = (e) => typeof e == "object" && "l
|
|
|
4434
4441
|
}
|
|
4435
4442
|
break;
|
|
4436
4443
|
case "application/x-www-form-urlencoded":
|
|
4437
|
-
t.postData.params ? (t.postData.paramsObj = t.postData.params.reduce(Hr, {}), t.postData.text =
|
|
4444
|
+
t.postData.params ? (t.postData.paramsObj = t.postData.params.reduce(Hr, {}), t.postData.text = pr.stringify(t.postData.paramsObj)) : t.postData.text = "";
|
|
4438
4445
|
break;
|
|
4439
4446
|
case "text/json":
|
|
4440
4447
|
case "text/x-json":
|
|
@@ -4451,16 +4458,16 @@ var ur = Ts(), fr = /* @__PURE__ */ qa(), Ps = (e) => typeof e == "object" && "l
|
|
|
4451
4458
|
const c = {
|
|
4452
4459
|
...t.allHeaders,
|
|
4453
4460
|
...t.headersObj
|
|
4454
|
-
}, s =
|
|
4461
|
+
}, s = fr.parse(t.url, !0, !0);
|
|
4455
4462
|
t.queryObj = {
|
|
4456
4463
|
...t.queryObj,
|
|
4457
4464
|
...s.query
|
|
4458
4465
|
};
|
|
4459
4466
|
let r;
|
|
4460
|
-
n.harIsAlreadyEncoded ? r =
|
|
4467
|
+
n.harIsAlreadyEncoded ? r = pr.stringify(t.queryObj, {
|
|
4461
4468
|
encode: !1,
|
|
4462
4469
|
indices: !1
|
|
4463
|
-
}) : r =
|
|
4470
|
+
}) : r = pr.stringify(t.queryObj, {
|
|
4464
4471
|
indices: !1
|
|
4465
4472
|
});
|
|
4466
4473
|
const o = {
|
|
@@ -4468,11 +4475,11 @@ var ur = Ts(), fr = /* @__PURE__ */ qa(), Ps = (e) => typeof e == "object" && "l
|
|
|
4468
4475
|
query: t.queryObj,
|
|
4469
4476
|
search: r,
|
|
4470
4477
|
path: r ? `${s.pathname}?${r}` : s.pathname
|
|
4471
|
-
}, i =
|
|
4478
|
+
}, i = fr.format({
|
|
4472
4479
|
...s,
|
|
4473
4480
|
query: null,
|
|
4474
4481
|
search: null
|
|
4475
|
-
}), l =
|
|
4482
|
+
}), l = fr.format({
|
|
4476
4483
|
...s,
|
|
4477
4484
|
...o
|
|
4478
4485
|
});
|
|
@@ -4558,7 +4565,24 @@ const qs = ({
|
|
|
4558
4565
|
break;
|
|
4559
4566
|
}
|
|
4560
4567
|
return t ? t[0] : "";
|
|
4561
|
-
},
|
|
4568
|
+
}, be = {
|
|
4569
|
+
green: "text-green-600",
|
|
4570
|
+
blue: "text-sky-600",
|
|
4571
|
+
yellow: "text-yellow-600",
|
|
4572
|
+
red: "text-red-600",
|
|
4573
|
+
purple: "text-purple-600",
|
|
4574
|
+
indigo: "text-indigo-600",
|
|
4575
|
+
gray: "text-gray-600"
|
|
4576
|
+
}, Rs = {
|
|
4577
|
+
get: be.green,
|
|
4578
|
+
post: be.blue,
|
|
4579
|
+
put: be.yellow,
|
|
4580
|
+
delete: be.red,
|
|
4581
|
+
patch: be.purple,
|
|
4582
|
+
options: be.indigo,
|
|
4583
|
+
head: be.gray,
|
|
4584
|
+
trace: be.gray
|
|
4585
|
+
}, qa = (e) => Rs[e.toLocaleLowerCase()] ?? be.gray, ks = Me(
|
|
4562
4586
|
/* GraphQL */
|
|
4563
4587
|
`
|
|
4564
4588
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
@@ -4570,7 +4594,7 @@ const qs = ({
|
|
|
4570
4594
|
}
|
|
4571
4595
|
}
|
|
4572
4596
|
`
|
|
4573
|
-
),
|
|
4597
|
+
), Ns = [
|
|
4574
4598
|
{ value: "shell", label: "cURL" },
|
|
4575
4599
|
{ value: "js", label: "JavaScript" },
|
|
4576
4600
|
{ value: "python", label: "Python" },
|
|
@@ -4582,12 +4606,12 @@ const qs = ({
|
|
|
4582
4606
|
{ value: "php", label: "PHP" },
|
|
4583
4607
|
{ value: "ruby", label: "Ruby" },
|
|
4584
4608
|
{ value: "swift", label: "Swift" }
|
|
4585
|
-
],
|
|
4609
|
+
], As = ({
|
|
4586
4610
|
operation: e,
|
|
4587
4611
|
selectedResponse: n,
|
|
4588
4612
|
onSelectResponse: t
|
|
4589
4613
|
}) => {
|
|
4590
|
-
const { input: a, type: c, options: s } =
|
|
4614
|
+
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
4615
|
auth: r,
|
|
4592
4616
|
type: "request",
|
|
4593
4617
|
operation: e,
|
|
@@ -4607,8 +4631,8 @@ const qs = ({
|
|
|
4607
4631
|
}
|
|
4608
4632
|
)
|
|
4609
4633
|
}
|
|
4610
|
-
), { selectedServer: T } = vr(i.data.schema.servers), p =
|
|
4611
|
-
const C = x ?? (v?.[0]?.schema ?
|
|
4634
|
+
), { selectedServer: T } = vr(i.data.schema.servers), p = fa(() => {
|
|
4635
|
+
const C = x ?? (v?.[0]?.schema ? we(
|
|
4612
4636
|
v[0].schema
|
|
4613
4637
|
) : void 0), N = qs({
|
|
4614
4638
|
operation: e,
|
|
@@ -4625,7 +4649,7 @@ const qs = ({
|
|
|
4625
4649
|
e,
|
|
4626
4650
|
T,
|
|
4627
4651
|
u
|
|
4628
|
-
]), [O, g] =
|
|
4652
|
+
]), [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
4653
|
return /* @__PURE__ */ b.jsxs(
|
|
4630
4654
|
"aside",
|
|
4631
4655
|
{
|
|
@@ -4634,7 +4658,7 @@ const qs = ({
|
|
|
4634
4658
|
"data-pagefind-ignore": "all",
|
|
4635
4659
|
children: [
|
|
4636
4660
|
/* @__PURE__ */ b.jsxs($r, { children: [
|
|
4637
|
-
/* @__PURE__ */ b.jsxs(
|
|
4661
|
+
/* @__PURE__ */ b.jsxs(wr, { className: "flex justify-between items-center flex-nowrap py-2.5 gap-2 text-xs", children: [
|
|
4638
4662
|
/* @__PURE__ */ b.jsxs("span", { className: "font-mono break-words leading-6", children: [
|
|
4639
4663
|
/* @__PURE__ */ b.jsx("span", { className: pe("font-semibold", d), children: e.method.toUpperCase() }),
|
|
4640
4664
|
" ",
|
|
@@ -4650,8 +4674,8 @@ const qs = ({
|
|
|
4650
4674
|
)
|
|
4651
4675
|
] }),
|
|
4652
4676
|
g && /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
4653
|
-
/* @__PURE__ */ b.jsx(
|
|
4654
|
-
|
|
4677
|
+
/* @__PURE__ */ b.jsx(ya, { className: "p-0", children: /* @__PURE__ */ b.jsx(ha, { children: /* @__PURE__ */ b.jsx(
|
|
4678
|
+
da,
|
|
4655
4679
|
{
|
|
4656
4680
|
embedded: !0,
|
|
4657
4681
|
language: u,
|
|
@@ -4660,10 +4684,10 @@ const qs = ({
|
|
|
4660
4684
|
code: p
|
|
4661
4685
|
}
|
|
4662
4686
|
) }) }),
|
|
4663
|
-
/* @__PURE__ */ b.jsxs(
|
|
4687
|
+
/* @__PURE__ */ b.jsxs(ma, { className: "flex items-center text-xs gap-2 justify-end py-2.5", children: [
|
|
4664
4688
|
/* @__PURE__ */ b.jsx("span", { children: "Show example in" }),
|
|
4665
4689
|
/* @__PURE__ */ b.jsx(
|
|
4666
|
-
|
|
4690
|
+
Xe,
|
|
4667
4691
|
{
|
|
4668
4692
|
className: "self-start max-w-[150px]",
|
|
4669
4693
|
value: u,
|
|
@@ -4672,7 +4696,7 @@ const qs = ({
|
|
|
4672
4696
|
f((N) => (N.set("lang", C.target.value), N));
|
|
4673
4697
|
});
|
|
4674
4698
|
},
|
|
4675
|
-
options:
|
|
4699
|
+
options: Ns
|
|
4676
4700
|
}
|
|
4677
4701
|
)
|
|
4678
4702
|
] })
|
|
@@ -4705,7 +4729,7 @@ const qs = ({
|
|
|
4705
4729
|
]
|
|
4706
4730
|
}
|
|
4707
4731
|
);
|
|
4708
|
-
},
|
|
4732
|
+
}, Is = pe, Us = ({
|
|
4709
4733
|
responses: e,
|
|
4710
4734
|
selectedResponse: n,
|
|
4711
4735
|
onSelectResponse: t
|
|
@@ -4718,7 +4742,7 @@ const qs = ({
|
|
|
4718
4742
|
je.Trigger,
|
|
4719
4743
|
{
|
|
4720
4744
|
value: o.statusCode,
|
|
4721
|
-
className:
|
|
4745
|
+
className: Is(
|
|
4722
4746
|
"py-1 -mx-2 px-2 rounded-md",
|
|
4723
4747
|
"data-[state=active]:dark:ring-1 data-[state=active]:dark:ring-border data-[state=active]:bg-background data-[state=active]:drop-shadow",
|
|
4724
4748
|
"data-[state=active]:font-semibold data-[state=active]:text-foreground"
|
|
@@ -4728,13 +4752,13 @@ const qs = ({
|
|
|
4728
4752
|
o.statusCode
|
|
4729
4753
|
)) }),
|
|
4730
4754
|
s?.content && s.content.length > 1 && /* @__PURE__ */ b.jsxs(
|
|
4731
|
-
|
|
4755
|
+
na,
|
|
4732
4756
|
{
|
|
4733
4757
|
value: a,
|
|
4734
4758
|
onValueChange: c,
|
|
4735
4759
|
children: [
|
|
4736
|
-
/* @__PURE__ */ b.jsx(
|
|
4737
|
-
/* @__PURE__ */ b.jsx(
|
|
4760
|
+
/* @__PURE__ */ b.jsx(aa, { className: "h-8 mt-0 max-w-48 text-xs truncate", children: /* @__PURE__ */ b.jsx(oa, { placeholder: "Select a type" }) }),
|
|
4761
|
+
/* @__PURE__ */ b.jsx(ia, { children: s.content.map((o) => /* @__PURE__ */ b.jsx(sa, { value: o.mediaType, children: o.mediaType }, o.mediaType)) })
|
|
4738
4762
|
]
|
|
4739
4763
|
}
|
|
4740
4764
|
)
|
|
@@ -4764,14 +4788,14 @@ const qs = ({
|
|
|
4764
4788
|
})
|
|
4765
4789
|
}
|
|
4766
4790
|
) });
|
|
4767
|
-
},
|
|
4791
|
+
}, Ls = ["path", "query", "header", "cookie"], Fs = ({
|
|
4768
4792
|
operationFragment: e,
|
|
4769
4793
|
serverUrl: n
|
|
4770
4794
|
}) => {
|
|
4771
|
-
const t = yo(
|
|
4795
|
+
const t = yo(_s, e), a = so(
|
|
4772
4796
|
t.parameters ?? [],
|
|
4773
4797
|
(i) => i.in
|
|
4774
|
-
), { options: c } =
|
|
4798
|
+
), { options: c } = et(), s = t.responses.at(0), [r, o] = ge(s?.statusCode);
|
|
4775
4799
|
return /* @__PURE__ */ b.jsxs("div", { children: [
|
|
4776
4800
|
t.deprecated && /* @__PURE__ */ b.jsx(_r, { variant: "muted", className: "text-xs mb-4", children: "deprecated" }),
|
|
4777
4801
|
/* @__PURE__ */ b.jsxs(
|
|
@@ -4783,7 +4807,7 @@ const qs = ({
|
|
|
4783
4807
|
),
|
|
4784
4808
|
children: [
|
|
4785
4809
|
/* @__PURE__ */ b.jsx(
|
|
4786
|
-
|
|
4810
|
+
Fe,
|
|
4787
4811
|
{
|
|
4788
4812
|
level: 2,
|
|
4789
4813
|
id: t.slug,
|
|
@@ -4793,8 +4817,8 @@ const qs = ({
|
|
|
4793
4817
|
}
|
|
4794
4818
|
),
|
|
4795
4819
|
/* @__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(
|
|
4820
|
+
/* @__PURE__ */ b.jsx("span", { className: qa(t.method), children: t.method.toUpperCase() }),
|
|
4821
|
+
/* @__PURE__ */ b.jsxs(la, { className: "max-w-full truncate flex cursor-pointer", children: [
|
|
4798
4822
|
n && /* @__PURE__ */ b.jsx("div", { className: "text-neutral-400 dark:text-neutral-500 truncate", children: n.replace(/\/$/, "") }),
|
|
4799
4823
|
/* @__PURE__ */ b.jsx("div", { className: "text-neutral-900 dark:text-neutral-200", children: t.path })
|
|
4800
4824
|
] })
|
|
@@ -4808,13 +4832,13 @@ const qs = ({
|
|
|
4808
4832
|
),
|
|
4809
4833
|
children: [
|
|
4810
4834
|
t.description && /* @__PURE__ */ b.jsx(
|
|
4811
|
-
|
|
4835
|
+
_e,
|
|
4812
4836
|
{
|
|
4813
|
-
className:
|
|
4837
|
+
className: "max-w-full prose-img:max-w-prose",
|
|
4814
4838
|
content: t.description
|
|
4815
4839
|
}
|
|
4816
4840
|
),
|
|
4817
|
-
t.parameters && t.parameters.length > 0 && /* @__PURE__ */ b.jsx(b.Fragment, { children:
|
|
4841
|
+
t.parameters && t.parameters.length > 0 && /* @__PURE__ */ b.jsx(b.Fragment, { children: Ls.flatMap(
|
|
4818
4842
|
(i) => a[i]?.length ? /* @__PURE__ */ b.jsx(
|
|
4819
4843
|
$o,
|
|
4820
4844
|
{
|
|
@@ -4828,7 +4852,7 @@ const qs = ({
|
|
|
4828
4852
|
) }),
|
|
4829
4853
|
Br(t.requestBody?.content?.at(0)?.schema, (i) => /* @__PURE__ */ b.jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
|
|
4830
4854
|
/* @__PURE__ */ b.jsxs(
|
|
4831
|
-
|
|
4855
|
+
Fe,
|
|
4832
4856
|
{
|
|
4833
4857
|
level: 3,
|
|
4834
4858
|
className: "capitalize flex items-center gap-2",
|
|
@@ -4848,7 +4872,7 @@ const qs = ({
|
|
|
4848
4872
|
] })),
|
|
4849
4873
|
t.responses.length > 0 && /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
4850
4874
|
/* @__PURE__ */ b.jsxs(
|
|
4851
|
-
|
|
4875
|
+
Fe,
|
|
4852
4876
|
{
|
|
4853
4877
|
level: 3,
|
|
4854
4878
|
className: "capitalize mt-8 pt-8 border-t",
|
|
@@ -4863,7 +4887,7 @@ const qs = ({
|
|
|
4863
4887
|
}
|
|
4864
4888
|
),
|
|
4865
4889
|
/* @__PURE__ */ b.jsx(
|
|
4866
|
-
|
|
4890
|
+
Us,
|
|
4867
4891
|
{
|
|
4868
4892
|
responses: t.responses,
|
|
4869
4893
|
selectedResponse: r,
|
|
@@ -4875,7 +4899,7 @@ const qs = ({
|
|
|
4875
4899
|
}
|
|
4876
4900
|
),
|
|
4877
4901
|
Br(!c?.disableSidecar, () => /* @__PURE__ */ b.jsx(
|
|
4878
|
-
|
|
4902
|
+
As,
|
|
4879
4903
|
{
|
|
4880
4904
|
selectedResponse: r,
|
|
4881
4905
|
onSelectResponse: o,
|
|
@@ -4891,7 +4915,7 @@ const qs = ({
|
|
|
4891
4915
|
function Xn(e, n = 160) {
|
|
4892
4916
|
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
4917
|
}
|
|
4894
|
-
const
|
|
4918
|
+
const _s = Me(
|
|
4895
4919
|
/* GraphQL */
|
|
4896
4920
|
`
|
|
4897
4921
|
fragment OperationsFragment on OperationItem {
|
|
@@ -4959,7 +4983,7 @@ const Fs = Be(
|
|
|
4959
4983
|
}
|
|
4960
4984
|
}
|
|
4961
4985
|
`
|
|
4962
|
-
),
|
|
4986
|
+
), Bs = Me(
|
|
4963
4987
|
/* GraphQL */
|
|
4964
4988
|
`
|
|
4965
4989
|
query SchemaWarmup($input: JSON!, $type: SchemaType!) {
|
|
@@ -4968,7 +4992,7 @@ const Fs = Be(
|
|
|
4968
4992
|
}
|
|
4969
4993
|
}
|
|
4970
4994
|
`
|
|
4971
|
-
),
|
|
4995
|
+
), Hs = Me(
|
|
4972
4996
|
/* GraphQL */
|
|
4973
4997
|
`
|
|
4974
4998
|
query OperationsForTag(
|
|
@@ -5009,14 +5033,14 @@ const Fs = Be(
|
|
|
5009
5033
|
tag: e,
|
|
5010
5034
|
untagged: n
|
|
5011
5035
|
}) => {
|
|
5012
|
-
const { input: t, type: a, versions: c, version: s, options: r } =
|
|
5036
|
+
const { input: t, type: a, versions: c, version: s, options: r } = et(), { tag: o } = Ga(), i = Ke(Hs, {
|
|
5013
5037
|
input: t,
|
|
5014
5038
|
type: a,
|
|
5015
5039
|
tag: e ?? o,
|
|
5016
5040
|
untagged: n
|
|
5017
5041
|
}), l = gr(i), {
|
|
5018
5042
|
data: { schema: d }
|
|
5019
|
-
} = l, { selectedServer: y } = vr(d.servers), f = d.title, h = d.summary, x = d.description, $ = Da(), u =
|
|
5043
|
+
} = l, { selectedServer: y } = vr(d.servers), f = d.title, h = d.summary, x = d.description, $ = Da(), u = Ke(Bs, { input: t, type: a });
|
|
5020
5044
|
if (Ua({
|
|
5021
5045
|
...u,
|
|
5022
5046
|
enabled: typeof window < "u",
|
|
@@ -5048,9 +5072,9 @@ const Fs = Be(
|
|
|
5048
5072
|
/* @__PURE__ */ b.jsxs(ta, { className: "w-full", children: [
|
|
5049
5073
|
/* @__PURE__ */ b.jsxs("div", { className: "flex flex-col gap-y-4 sm:flex-row justify-around items-start sm:items-end", children: [
|
|
5050
5074
|
/* @__PURE__ */ b.jsxs("div", { className: "flex flex-col flex-1 gap-2", children: [
|
|
5051
|
-
/* @__PURE__ */ b.jsx(
|
|
5075
|
+
/* @__PURE__ */ b.jsx(Za, { children: f }),
|
|
5052
5076
|
/* @__PURE__ */ b.jsxs(
|
|
5053
|
-
|
|
5077
|
+
Fe,
|
|
5054
5078
|
{
|
|
5055
5079
|
level: 1,
|
|
5056
5080
|
id: "description",
|
|
@@ -5071,18 +5095,18 @@ const Fs = Be(
|
|
|
5071
5095
|
] }),
|
|
5072
5096
|
/* @__PURE__ */ b.jsxs("div", { className: "flex flex-col gap-4 sm:items-end", children: [
|
|
5073
5097
|
g && /* @__PURE__ */ b.jsxs(
|
|
5074
|
-
|
|
5098
|
+
na,
|
|
5075
5099
|
{
|
|
5076
5100
|
onValueChange: (C) => $(c[C]),
|
|
5077
5101
|
defaultValue: s,
|
|
5078
5102
|
disabled: !O,
|
|
5079
5103
|
children: [
|
|
5080
|
-
/* @__PURE__ */ b.jsx(
|
|
5081
|
-
/* @__PURE__ */ b.jsx(
|
|
5104
|
+
/* @__PURE__ */ b.jsx(aa, { className: "w-[180px]", children: /* @__PURE__ */ b.jsx(oa, { placeholder: "Select version" }) }),
|
|
5105
|
+
/* @__PURE__ */ b.jsx(ia, { children: Object.entries(c).map(([C]) => /* @__PURE__ */ b.jsx(sa, { value: C, children: C }, C)) })
|
|
5082
5106
|
]
|
|
5083
5107
|
}
|
|
5084
5108
|
),
|
|
5085
|
-
d.description && /* @__PURE__ */ b.jsxs(
|
|
5109
|
+
d.description && /* @__PURE__ */ b.jsxs(dr, { className: "flex items-center gap-1 text-sm font-medium text-muted-foreground group", children: [
|
|
5086
5110
|
/* @__PURE__ */ b.jsx("span", { children: "API information" }),
|
|
5087
5111
|
/* @__PURE__ */ b.jsx(
|
|
5088
5112
|
Zn,
|
|
@@ -5101,31 +5125,19 @@ const Fs = Be(
|
|
|
5101
5125
|
] })
|
|
5102
5126
|
] })
|
|
5103
5127
|
] }),
|
|
5104
|
-
d.description && /* @__PURE__ */ b.jsx(ra, { className: "CollapsibleContent", children: /* @__PURE__ */ b.jsx(
|
|
5105
|
-
|
|
5128
|
+
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(
|
|
5129
|
+
_e,
|
|
5106
5130
|
{
|
|
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
|
-
)
|
|
5131
|
+
className: "max-w-full prose-img:max-w-prose border-border p-3 lg:p-5",
|
|
5132
|
+
content: d.description
|
|
5118
5133
|
}
|
|
5119
|
-
) })
|
|
5134
|
+
) }) })
|
|
5120
5135
|
] }),
|
|
5121
5136
|
T && /* @__PURE__ */ b.jsx(
|
|
5122
|
-
|
|
5137
|
+
_e,
|
|
5123
5138
|
{
|
|
5124
|
-
className:
|
|
5125
|
-
|
|
5126
|
-
"my-4 max-w-full prose-img:max-w-prose"
|
|
5127
|
-
),
|
|
5128
|
-
children: /* @__PURE__ */ b.jsx(Qe, { content: T })
|
|
5139
|
+
className: "my-4 max-w-full prose-img:max-w-prose",
|
|
5140
|
+
content: T
|
|
5129
5141
|
}
|
|
5130
5142
|
)
|
|
5131
5143
|
] }),
|
|
@@ -5133,7 +5145,7 @@ const Fs = Be(
|
|
|
5133
5145
|
/* @__PURE__ */ b.jsxs("div", { className: "px-6 mt-6 -mx-6 [content-visibility:auto]", children: [
|
|
5134
5146
|
m.map((C) => /* @__PURE__ */ b.jsxs("div", { children: [
|
|
5135
5147
|
/* @__PURE__ */ b.jsx(
|
|
5136
|
-
|
|
5148
|
+
Fs,
|
|
5137
5149
|
{
|
|
5138
5150
|
serverUrl: y,
|
|
5139
5151
|
operationFragment: C
|
|
@@ -5149,6 +5161,6 @@ const Fs = Be(
|
|
|
5149
5161
|
};
|
|
5150
5162
|
export {
|
|
5151
5163
|
ll as OperationList,
|
|
5152
|
-
|
|
5164
|
+
_s as OperationsFragment
|
|
5153
5165
|
};
|
|
5154
|
-
//# sourceMappingURL=OperationList-
|
|
5166
|
+
//# sourceMappingURL=OperationList-CccIt45w.js.map
|