zudoku 0.45.1 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/main.js +4 -23
- package/dist/app/main.js.map +1 -1
- package/dist/config/config.d.ts +2 -2
- package/dist/config/file-exists.d.ts +1 -0
- package/dist/config/file-exists.js +5 -0
- package/dist/config/file-exists.js.map +1 -0
- package/dist/config/loader.d.ts +19 -4
- package/dist/config/loader.js +94 -14
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/validate.d.ts +3536 -743
- package/dist/config/validators/validate.js +396 -11
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +7 -2
- package/dist/lib/authentication/AuthenticationPlugin.js +13 -1
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +2 -4
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.js +62 -43
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +7 -12
- package/dist/lib/authentication/providers/openid.js +11 -22
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/providers/supabase.js +3 -5
- package/dist/lib/authentication/providers/supabase.js.map +1 -1
- package/dist/lib/components/Autocomplete.js +1 -1
- package/dist/lib/components/Banner.js +1 -1
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/ErrorPage.js +1 -1
- package/dist/lib/components/Footer.js +3 -3
- package/dist/lib/components/Footer.js.map +1 -1
- package/dist/lib/components/Header.js +16 -8
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.js +6 -1
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/InlineCode.js +1 -1
- package/dist/lib/components/InlineCode.js.map +1 -1
- package/dist/lib/components/Layout.js +2 -2
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Main.js +2 -2
- package/dist/lib/components/Main.js.map +1 -1
- package/dist/lib/components/Markdown.js +8 -3
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +3 -2
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/NotFoundPage.js +1 -1
- package/dist/lib/components/Pagination.js +1 -1
- package/dist/lib/components/Pagination.js.map +1 -1
- package/dist/lib/components/Search.js +1 -1
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/Slot.d.ts +17 -0
- package/dist/lib/components/Slot.js +24 -0
- package/dist/lib/components/Slot.js.map +1 -0
- package/dist/lib/components/Slot.test.js +168 -0
- package/dist/lib/components/Slot.test.js.map +1 -0
- package/dist/lib/components/TopNavigation.d.ts +1 -4
- package/dist/lib/components/TopNavigation.js +3 -11
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Zudoku.js +2 -2
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/context/SlotProvider.d.ts +26 -0
- package/dist/lib/components/context/SlotProvider.js +83 -0
- package/dist/lib/components/context/SlotProvider.js.map +1 -0
- package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
- package/dist/lib/components/context/ZudokuProvider.js +2 -1
- package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +29 -23
- package/dist/lib/components/index.js +13 -7
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/PoweredByZudoku.js +1 -1
- package/dist/lib/components/navigation/Sidebar.js +3 -3
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarBadge.js +1 -1
- package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.js +3 -3
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +0 -5
- package/dist/lib/components/navigation/SidebarItem.js +19 -23
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
- package/dist/lib/components/navigation/Toc.js +1 -1
- package/dist/lib/components/navigation/Toc.js.map +1 -1
- package/dist/lib/components/navigation/utils.d.ts +8 -0
- package/dist/lib/components/navigation/utils.js +34 -6
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +12 -8
- package/dist/lib/core/ZudokuContext.js +6 -5
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +5 -2
- package/dist/lib/core/plugins.js +1 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.js +1 -1
- package/dist/lib/hooks/index.d.ts +19 -0
- package/dist/lib/hooks/index.js +11 -0
- package/dist/lib/hooks/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.js +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
- package/dist/lib/plugins/api-keys/CreateApiKey.js +8 -4
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +54 -23
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +18 -9
- package/dist/lib/plugins/api-keys/index.js +49 -34
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/index.d.ts +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +1 -1
- package/dist/lib/plugins/markdown/resolver.d.ts +1 -1
- package/dist/lib/plugins/markdown/resolver.js.map +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +1 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +2 -3
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +5 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -4
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.js +6 -5
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.js +8 -0
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
- package/dist/lib/plugins/openapi/components/EnumValues.js +1 -1
- package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -1
- package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Playground.js +2 -0
- 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/SubmitButton.js +7 -10
- package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +2 -2
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js +3 -3
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/redirect/index.d.ts +1 -1
- package/dist/lib/ui/Badge.d.ts +2 -2
- package/dist/lib/ui/Badge.js +1 -1
- package/dist/lib/ui/Badge.js.map +1 -1
- package/dist/lib/ui/Button.d.ts +2 -2
- package/dist/lib/ui/Button.js +8 -6
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Callout.js +1 -1
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Card.js +1 -1
- package/dist/lib/ui/Checkbox.js +1 -1
- package/dist/lib/ui/Checkbox.js.map +1 -1
- package/dist/lib/ui/Command.d.ts +2 -2
- package/dist/lib/ui/Command.js +3 -3
- package/dist/lib/ui/Command.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/DropdownMenu.js +4 -4
- package/dist/lib/ui/DropdownMenu.js.map +1 -1
- package/dist/lib/ui/HoverCard.js +1 -1
- package/dist/lib/ui/HoverCard.js.map +1 -1
- package/dist/lib/ui/Input.js +1 -1
- package/dist/lib/ui/Input.js.map +1 -1
- package/dist/lib/ui/Popover.js +1 -1
- package/dist/lib/ui/Popover.js.map +1 -1
- package/dist/lib/ui/RadioGroup.js +1 -1
- package/dist/lib/ui/RadioGroup.js.map +1 -1
- package/dist/lib/ui/Select.js +2 -2
- package/dist/lib/ui/Select.js.map +1 -1
- package/dist/lib/ui/Slider.js +1 -1
- package/dist/lib/ui/Slider.js.map +1 -1
- package/dist/lib/ui/Switch.js +1 -1
- package/dist/lib/ui/Switch.js.map +1 -1
- package/dist/lib/ui/Tabs.js +2 -2
- package/dist/lib/ui/Tabs.js.map +1 -1
- package/dist/lib/ui/Textarea.js +1 -1
- package/dist/lib/ui/Textarea.js.map +1 -1
- package/dist/lib/ui/Toggle.js +1 -1
- package/dist/lib/ui/Toggle.js.map +1 -1
- package/dist/lib/ui/Tooltip.d.ts +2 -1
- package/dist/lib/ui/Tooltip.js +2 -1
- package/dist/lib/ui/Tooltip.js.map +1 -1
- package/dist/lib/util/useExposedProps.d.ts +8 -1
- package/dist/lib/util/useExposedProps.js.map +1 -1
- package/dist/vite/api/SchemaManager.js +16 -1
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/build.js +44 -6
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +2 -9
- package/dist/vite/config.js +6 -95
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +1 -1
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/css/plugin.d.ts +1 -2
- package/dist/vite/css/plugin.js +3 -2
- package/dist/vite/css/plugin.js.map +1 -1
- package/dist/vite/dev-server.d.ts +0 -1
- package/dist/vite/dev-server.js +10 -12
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/html.d.ts +2 -2
- package/dist/vite/html.js +5 -2
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/plugin-api-keys.d.ts +1 -2
- package/dist/vite/plugin-api-keys.js +9 -3
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.d.ts +1 -2
- package/dist/vite/plugin-api.js +5 -4
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +1 -2
- package/dist/vite/plugin-auth.js +3 -2
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +1 -2
- package/dist/vite/plugin-component.js +3 -2
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +1 -2
- package/dist/vite/plugin-config-reload.js +21 -22
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +1 -2
- package/dist/vite/plugin-config.js +4 -3
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-configure-tailwind.d.ts +2 -0
- package/dist/vite/plugin-configure-tailwind.js +38 -0
- package/dist/vite/plugin-configure-tailwind.js.map +1 -0
- package/dist/vite/plugin-custom-pages.d.ts +1 -2
- package/dist/vite/plugin-custom-pages.js +3 -2
- package/dist/vite/plugin-custom-pages.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +1 -2
- package/dist/vite/plugin-docs.js +4 -3
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-frontmatter.d.ts +1 -2
- package/dist/vite/plugin-frontmatter.js +3 -2
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +1 -2
- package/dist/vite/plugin-mdx.js +3 -2
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-redirect.d.ts +1 -2
- package/dist/vite/plugin-redirect.js +3 -2
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +1 -2
- package/dist/vite/plugin-search.js +3 -2
- package/dist/vite/plugin-search.js.map +1 -1
- package/dist/vite/plugin-shiki-register.d.ts +1 -2
- package/dist/vite/plugin-shiki-register.js +2 -1
- package/dist/vite/plugin-shiki-register.js.map +1 -1
- package/dist/vite/plugin-sidebar.d.ts +1 -2
- package/dist/vite/plugin-sidebar.js +3 -2
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/plugin-theme-css.d.ts +1 -2
- package/dist/vite/plugin-theme-css.js +20 -60
- package/dist/vite/plugin-theme-css.js.map +1 -1
- package/dist/vite/plugin.d.ts +1 -2
- package/dist/vite/plugin.js +22 -21
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/sitemap.d.ts +1 -1
- package/dist/zuplo/with-zuplo.d.ts +2 -2
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/Button-BE9IVkWV.js +51 -0
- package/lib/Button-BE9IVkWV.js.map +1 -0
- package/lib/{Callout-XadUe37J.js → Callout-BkgOUkoZ.js} +9 -8
- package/lib/Callout-BkgOUkoZ.js.map +1 -0
- package/lib/{Card-BlCYNw5W.js → Card-DPhGbYUM.js} +3 -3
- package/lib/{Card-BlCYNw5W.js.map → Card-DPhGbYUM.js.map} +1 -1
- package/lib/{CategoryHeading-DZi-Szor.js → CategoryHeading-Cu2RwgjC.js} +2 -2
- package/lib/{CategoryHeading-DZi-Szor.js.map → CategoryHeading-Cu2RwgjC.js.map} +1 -1
- package/lib/{Dialog-CNf2oWXG.js → Dialog-Du6WMcIA.js} +8 -7
- package/lib/Dialog-Du6WMcIA.js.map +1 -0
- package/lib/{Drawer-BPBxzel2.js → Drawer-BzkOKwgC.js} +2 -2
- package/lib/{Drawer-BPBxzel2.js.map → Drawer-BzkOKwgC.js.map} +1 -1
- package/lib/Markdown-BRAyzyUJ.js +15348 -0
- package/lib/Markdown-BRAyzyUJ.js.map +1 -0
- package/lib/{MdxPage-tTTaDsLc.js → MdxPage-B3v1BSKr.js} +11 -11
- package/lib/MdxPage-B3v1BSKr.js.map +1 -0
- package/lib/{OasProvider-DalHQixM.js → OasProvider-5jrFuhVk.js} +3 -3
- package/lib/{OasProvider-DalHQixM.js.map → OasProvider-5jrFuhVk.js.map} +1 -1
- package/lib/{OperationList-BB09ENaq.js → OperationList-BmoMLQPO.js} +1039 -1005
- package/lib/OperationList-BmoMLQPO.js.map +1 -0
- package/lib/Pagination-Cr0fWZS3.js +36 -0
- package/lib/Pagination-Cr0fWZS3.js.map +1 -0
- package/lib/RouteGuard-PrSVLbSr.js +55 -0
- package/lib/RouteGuard-PrSVLbSr.js.map +1 -0
- package/lib/{SchemaList-BH9bgMRw.js → SchemaList-B4riYLoP.js} +61 -47
- package/lib/SchemaList-B4riYLoP.js.map +1 -0
- package/lib/{SchemaView-BsB7EFRl.js → SchemaView-CPZ6RgsF.js} +100 -95
- package/lib/SchemaView-CPZ6RgsF.js.map +1 -0
- package/lib/{AuthenticationPlugin-BTJ37DKg.js → SignUp-CWaiH0tY.js} +23 -50
- package/lib/SignUp-CWaiH0tY.js.map +1 -0
- package/lib/Slot-Bo6K4tnb.js +160 -0
- package/lib/Slot-Bo6K4tnb.js.map +1 -0
- package/lib/{SyntaxHighlight-UxOF1xNb.js → SyntaxHighlight-DedRjJNr.js} +233 -212
- package/lib/{SyntaxHighlight-UxOF1xNb.js.map → SyntaxHighlight-DedRjJNr.js.map} +1 -1
- package/lib/{Toc-Ax54Pw8S.js → Toc-lL3fzNkl.js} +5 -5
- package/lib/Toc-lL3fzNkl.js.map +1 -0
- package/lib/{circular-CZaZtOBs.js → circular-oB4auIIg.js} +2 -2
- package/lib/{circular-CZaZtOBs.js.map → circular-oB4auIIg.js.map} +1 -1
- package/lib/clsx-OuTLNxxd.js +17 -0
- package/lib/clsx-OuTLNxxd.js.map +1 -0
- package/lib/{cn-CwJPJKOE.js → cn-wvCW-ho6.js} +1015 -562
- package/lib/cn-wvCW-ho6.js.map +1 -0
- package/lib/{createServer-DmqFeMgf.js → createServer-DCB82j2t.js} +81 -81
- package/lib/{createServer-DmqFeMgf.js.map → createServer-DCB82j2t.js.map} +1 -1
- package/lib/{hook-BwOB_iZo.js → hook-DawSLaZr.js} +323 -300
- package/lib/hook-DawSLaZr.js.map +1 -0
- package/lib/{index-sS7O9W-R.js → index-BXYvD5-7.js} +868 -758
- package/lib/index-BXYvD5-7.js.map +1 -0
- package/lib/{index-Z13x6tPX.js → index-DI5SPFK9.js} +2 -2
- package/lib/{index-Z13x6tPX.js.map → index-DI5SPFK9.js.map} +1 -1
- package/lib/index-QzXzw_ra.js +24 -0
- package/lib/index-QzXzw_ra.js.map +1 -0
- package/lib/{RouteGuard-lkdEJoDV.js → index.esm-BFcSKCe-.js} +232 -281
- package/lib/index.esm-BFcSKCe-.js.map +1 -0
- package/lib/{index.esm-D2ZUREQN.js → index.esm-DSfX_eMP.js} +3 -3
- package/lib/{index.esm-D2ZUREQN.js.map → index.esm-DSfX_eMP.js.map} +1 -1
- package/lib/joinPath-B7kNnUX4.js +8 -0
- package/lib/joinPath-B7kNnUX4.js.map +1 -0
- package/lib/{mutation-CL2MCRQL.js → mutation-oxMvODNQ.js} +2 -2
- package/lib/{mutation-CL2MCRQL.js.map → mutation-oxMvODNQ.js.map} +1 -1
- package/lib/ui/Accordion.js +1 -1
- package/lib/ui/ActionButton.js +2 -2
- package/lib/ui/Alert.js +2 -2
- package/lib/ui/AlertDialog.js +1 -1
- package/lib/ui/Badge.js +3 -3
- package/lib/ui/Badge.js.map +1 -1
- package/lib/ui/Breadcrumb.js +1 -1
- package/lib/ui/Button.js +20 -18
- package/lib/ui/Button.js.map +1 -1
- package/lib/ui/Callout.js +6 -5
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Card.js +8 -8
- package/lib/ui/Card.js.map +1 -1
- package/lib/ui/Carousel.js +1 -1
- package/lib/ui/Checkbox.js +7 -7
- package/lib/ui/Checkbox.js.map +1 -1
- package/lib/ui/CodeBlock.js +1 -1
- package/lib/ui/Command.js +43 -43
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +2 -2
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Drawer.js +2 -2
- package/lib/ui/DropdownMenu.js +34 -34
- package/lib/ui/DropdownMenu.js.map +1 -1
- package/lib/ui/Form.js +2 -2
- package/lib/ui/HoverCard.js +5 -5
- package/lib/ui/HoverCard.js.map +1 -1
- package/lib/ui/Input.js +2 -2
- package/lib/ui/Input.js.map +1 -1
- package/lib/ui/Label.js +2 -2
- package/lib/ui/Pagination.js +1 -1
- package/lib/ui/Popover.js +2 -2
- package/lib/ui/Popover.js.map +1 -1
- package/lib/ui/Progress.js +1 -1
- package/lib/ui/RadioGroup.js +10 -10
- package/lib/ui/RadioGroup.js.map +1 -1
- package/lib/ui/ScrollArea.js +1 -1
- package/lib/ui/Select.js +31 -31
- package/lib/ui/Select.js.map +1 -1
- package/lib/ui/Skeleton.js +1 -1
- package/lib/ui/Slider.js +5 -5
- package/lib/ui/Slider.js.map +1 -1
- package/lib/ui/Switch.js +5 -5
- package/lib/ui/Switch.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +2 -2
- package/lib/ui/Tabs.js +16 -16
- package/lib/ui/Tabs.js.map +1 -1
- package/lib/ui/Textarea.js +5 -5
- package/lib/ui/Textarea.js.map +1 -1
- package/lib/ui/Toggle.js +7 -7
- package/lib/ui/Toggle.js.map +1 -1
- package/lib/ui/ToggleGroup.js +1 -1
- package/lib/ui/Tooltip.js +15 -8
- package/lib/ui/Tooltip.js.map +1 -1
- package/lib/ui/util.js +1 -1
- package/lib/useExposedProps-DG8J6ewJ.js.map +1 -1
- package/lib/useMutation-C_j3dA_L.js +97 -0
- package/lib/useMutation-C_j3dA_L.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +99 -82
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +246 -216
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +4957 -33
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +21 -12
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +8 -8
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +5022 -214
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +2 -2
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +5 -5
- package/lib/zudoku.plugins.js +7 -6
- package/lib/zudoku.plugins.js.map +1 -1
- package/package.json +15 -15
- package/src/app/defaultTheme.css +54 -0
- package/src/app/font.geist.css +73 -0
- package/src/app/main.css +113 -156
- package/src/app/main.tsx +4 -28
- package/src/lib/authentication/AuthenticationPlugin.tsx +18 -4
- package/src/lib/authentication/authentication.ts +2 -5
- package/src/lib/authentication/providers/auth0.tsx +8 -2
- package/src/lib/authentication/providers/clerk.tsx +72 -48
- package/src/lib/authentication/providers/openid.tsx +19 -26
- package/src/lib/authentication/providers/supabase.tsx +7 -7
- package/src/lib/components/Autocomplete.tsx +1 -1
- package/src/lib/components/Banner.tsx +1 -1
- package/src/lib/components/ErrorPage.tsx +1 -1
- package/src/lib/components/Footer.tsx +4 -4
- package/src/lib/components/Header.tsx +29 -29
- package/src/lib/components/Heading.tsx +9 -5
- package/src/lib/components/InlineCode.tsx +1 -1
- package/src/lib/components/Layout.tsx +3 -3
- package/src/lib/components/Main.tsx +4 -4
- package/src/lib/components/Markdown.tsx +14 -4
- package/src/lib/components/MobileTopNavigation.tsx +3 -2
- package/src/lib/components/NotFoundPage.tsx +1 -1
- package/src/lib/components/Pagination.tsx +3 -9
- package/src/lib/components/Search.tsx +1 -1
- package/src/lib/components/Slot.test.tsx +465 -0
- package/src/lib/components/Slot.tsx +64 -0
- package/src/lib/components/TopNavigation.tsx +5 -17
- package/src/lib/components/Zudoku.tsx +9 -9
- package/src/lib/components/context/SlotProvider.tsx +149 -0
- package/src/lib/components/context/ZudokuProvider.tsx +2 -1
- package/src/lib/components/index.ts +14 -10
- package/src/lib/components/navigation/PoweredByZudoku.tsx +1 -1
- package/src/lib/components/navigation/Sidebar.tsx +3 -3
- package/src/lib/components/navigation/SidebarBadge.tsx +1 -1
- package/src/lib/components/navigation/SidebarCategory.tsx +3 -3
- package/src/lib/components/navigation/SidebarItem.tsx +57 -30
- package/src/lib/components/navigation/SidebarWrapper.tsx +2 -2
- package/src/lib/components/navigation/Toc.tsx +2 -2
- package/src/lib/components/navigation/utils.ts +42 -6
- package/src/lib/core/ZudokuContext.ts +24 -12
- package/src/lib/core/plugins.ts +10 -2
- package/src/lib/errors/ErrorAlert.tsx +1 -1
- package/src/lib/hooks/index.ts +11 -0
- package/src/lib/plugins/api-catalog/Catalog.tsx +1 -1
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +54 -42
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +292 -112
- package/src/lib/plugins/api-keys/index.tsx +101 -55
- package/src/lib/plugins/custom-pages/index.tsx +1 -1
- package/src/lib/plugins/markdown/MdxPage.tsx +2 -2
- package/src/lib/plugins/markdown/index.tsx +2 -2
- package/src/lib/plugins/markdown/resolver.ts +4 -2
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +1 -1
- package/src/lib/plugins/openapi/ColorizedParam.tsx +2 -2
- package/src/lib/plugins/openapi/OperationList.tsx +2 -2
- package/src/lib/plugins/openapi/OperationListItem.tsx +6 -34
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +7 -1
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +5 -16
- package/src/lib/plugins/openapi/SchemaList.tsx +20 -8
- package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
- package/src/lib/plugins/openapi/SidecarExamples.tsx +6 -0
- package/src/lib/plugins/openapi/components/EnumValues.tsx +1 -1
- package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
- package/src/lib/plugins/openapi/playground/Playground.tsx +7 -1
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
- package/src/lib/plugins/openapi/playground/SubmitButton.tsx +24 -29
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +2 -2
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +7 -3
- package/src/lib/plugins/redirect/index.tsx +1 -1
- package/src/lib/ui/Badge.tsx +2 -2
- package/src/lib/ui/Button.tsx +9 -6
- package/src/lib/ui/Callout.tsx +1 -0
- package/src/lib/ui/Card.tsx +1 -1
- package/src/lib/ui/Checkbox.tsx +1 -1
- package/src/lib/ui/Command.tsx +5 -5
- package/src/lib/ui/Dialog.tsx +1 -1
- package/src/lib/ui/DropdownMenu.tsx +4 -4
- package/src/lib/ui/HoverCard.tsx +1 -1
- package/src/lib/ui/Input.tsx +1 -1
- package/src/lib/ui/Popover.tsx +1 -1
- package/src/lib/ui/RadioGroup.tsx +1 -1
- package/src/lib/ui/Select.tsx +3 -3
- package/src/lib/ui/Slider.tsx +1 -1
- package/src/lib/ui/Switch.tsx +1 -1
- package/src/lib/ui/Tabs.tsx +2 -2
- package/src/lib/ui/Textarea.tsx +1 -1
- package/src/lib/ui/Toggle.tsx +1 -1
- package/src/lib/ui/Tooltip.tsx +16 -1
- package/src/lib/util/useExposedProps.tsx +12 -1
- package/dist/app/tailwind.d.ts +0 -4
- package/dist/app/tailwind.js +0 -97
- package/dist/app/tailwind.js.map +0 -1
- package/dist/config/common.d.ts +0 -10
- package/dist/config/common.js +0 -2
- package/dist/config/common.js.map +0 -1
- package/dist/config/validators/common.d.ts +0 -8001
- package/dist/config/validators/common.js +0 -414
- package/dist/config/validators/common.js.map +0 -1
- package/dist/lib/components/SlotletProvider.d.ts +0 -17
- package/dist/lib/components/SlotletProvider.js +0 -18
- package/dist/lib/components/SlotletProvider.js.map +0 -1
- package/dist/vite/plugin-docs.test.js +0 -22
- package/dist/vite/plugin-docs.test.js.map +0 -1
- package/lib/AuthenticationPlugin-BTJ37DKg.js.map +0 -1
- package/lib/Button-Bdk_Ij3U.js +0 -49
- package/lib/Button-Bdk_Ij3U.js.map +0 -1
- package/lib/Callout-XadUe37J.js.map +0 -1
- package/lib/Dialog-CNf2oWXG.js.map +0 -1
- package/lib/Markdown-D96AphCL.js +0 -7691
- package/lib/Markdown-D96AphCL.js.map +0 -1
- package/lib/MdxPage-tTTaDsLc.js.map +0 -1
- package/lib/OperationList-BB09ENaq.js.map +0 -1
- package/lib/Pagination-CtmnJOJi.js +0 -48
- package/lib/Pagination-CtmnJOJi.js.map +0 -1
- package/lib/RouteGuard-lkdEJoDV.js.map +0 -1
- package/lib/SchemaList-BH9bgMRw.js.map +0 -1
- package/lib/SchemaView-BsB7EFRl.js.map +0 -1
- package/lib/Select-HTio1oSE.js +0 -211
- package/lib/Select-HTio1oSE.js.map +0 -1
- package/lib/SlotletProvider-CTgIBRWg.js +0 -257
- package/lib/SlotletProvider-CTgIBRWg.js.map +0 -1
- package/lib/Toc-Ax54Pw8S.js.map +0 -1
- package/lib/cn-CwJPJKOE.js.map +0 -1
- package/lib/hook-BwOB_iZo.js.map +0 -1
- package/lib/index-BnT4-Efz.js +0 -4975
- package/lib/index-BnT4-Efz.js.map +0 -1
- package/lib/index-sS7O9W-R.js.map +0 -1
- package/src/app/tailwind.ts +0 -103
- package/src/lib/components/SlotletProvider.tsx +0 -55
- /package/dist/{vite/plugin-docs.test.d.ts → lib/components/Slot.test.d.ts} +0 -0
|
@@ -1,28 +1,26 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { d as
|
|
3
|
-
import { H as
|
|
4
|
-
import { ChevronsUpDownIcon as Zn, CheckIcon as
|
|
5
|
-
import { b as
|
|
6
|
-
import { u as Ze, a as De, d as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { Button as la } from "./ui/Button.js";
|
|
1
|
+
import { j as b } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { d as gr, u as Ia, m as Ua, P as La } from "./hook-DawSLaZr.js";
|
|
3
|
+
import { H as Fa } from "./index.esm-BFcSKCe-.js";
|
|
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-BAXFHI7N-C9WnHsLV.js";
|
|
6
|
+
import { u as Ze, a as De, d as Be, e as vr, f as ea, C as ta, c as ra, b as pr, P as Qa, m as na, h as Ka, S as aa, i as oa, j as ia, k as sa, l as la, U as Ya } from "./index-BXYvD5-7.js";
|
|
7
|
+
import { C as Xa } from "./CategoryHeading-Cu2RwgjC.js";
|
|
8
|
+
import { I as Za, S as ca, M as Qe, H as Le, P as dr } from "./Markdown-BRAyzyUJ.js";
|
|
9
|
+
import { P as eo } from "./Pagination-Cr0fWZS3.js";
|
|
10
|
+
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";
|
|
14
13
|
import { VisuallyHidden as hr } from "@radix-ui/react-visually-hidden";
|
|
15
|
-
import { c as ro } from "./index-
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { Card as po } from "./ui/Card.js";
|
|
14
|
+
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-CPZ6RgsF.js";
|
|
16
|
+
import { Card as lo } from "./ui/Card.js";
|
|
19
17
|
import * as pt from "@radix-ui/react-collapsible";
|
|
20
|
-
import { g as
|
|
21
|
-
import {
|
|
22
|
-
import { S as
|
|
23
|
-
import { B as Lr } from "./Button-
|
|
24
|
-
import * as
|
|
25
|
-
function
|
|
18
|
+
import { g as co, c as Ke, a as uo } from "./invariant-DAFpPywt.js";
|
|
19
|
+
import { useAuth as fo, useZudoku as po, Markdown as ho } from "./zudoku.components.js";
|
|
20
|
+
import { S as ha } from "./SyntaxHighlight-DedRjJNr.js";
|
|
21
|
+
import { B as Lr } from "./Button-BE9IVkWV.js";
|
|
22
|
+
import * as je from "@radix-ui/react-tabs";
|
|
23
|
+
function yo(e, n) {
|
|
26
24
|
return n;
|
|
27
25
|
}
|
|
28
26
|
const Ye = ({
|
|
@@ -31,8 +29,8 @@ const Ye = ({
|
|
|
31
29
|
className: t,
|
|
32
30
|
options: a,
|
|
33
31
|
showChevrons: c = !0
|
|
34
|
-
}) => /* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
32
|
+
}) => /* @__PURE__ */ b.jsxs("div", { className: "grid", children: [
|
|
33
|
+
/* @__PURE__ */ b.jsx(
|
|
36
34
|
"select",
|
|
37
35
|
{
|
|
38
36
|
className: pe(
|
|
@@ -42,20 +40,20 @@ const Ye = ({
|
|
|
42
40
|
),
|
|
43
41
|
value: e,
|
|
44
42
|
onChange: n,
|
|
45
|
-
children: a.map((s) => /* @__PURE__ */
|
|
43
|
+
children: a.map((s) => /* @__PURE__ */ b.jsx("option", { value: s.value, children: s.label }, s.value))
|
|
46
44
|
}
|
|
47
45
|
),
|
|
48
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ b.jsx(
|
|
49
47
|
"div",
|
|
50
48
|
{
|
|
51
49
|
className: pe(
|
|
52
50
|
!c && "hidden",
|
|
53
51
|
"row-start-1 col-start-1 self-center justify-self-end relative end-2 pointer-events-none"
|
|
54
52
|
),
|
|
55
|
-
children: /* @__PURE__ */
|
|
53
|
+
children: /* @__PURE__ */ b.jsx(Zn, { size: 14 })
|
|
56
54
|
}
|
|
57
55
|
)
|
|
58
|
-
] }),
|
|
56
|
+
] }), mo = Be(
|
|
59
57
|
/* GraphQL */
|
|
60
58
|
`
|
|
61
59
|
query ServersQuery($input: JSON!, $type: SchemaType!) {
|
|
@@ -68,9 +66,9 @@ const Ye = ({
|
|
|
68
66
|
}
|
|
69
67
|
`
|
|
70
68
|
), Fr = ({ url: e }) => {
|
|
71
|
-
const [n, t] =
|
|
72
|
-
return /* @__PURE__ */
|
|
73
|
-
|
|
69
|
+
const [n, t] = ge(!1);
|
|
70
|
+
return /* @__PURE__ */ b.jsx(
|
|
71
|
+
da,
|
|
74
72
|
{
|
|
75
73
|
onClick: () => {
|
|
76
74
|
navigator.clipboard.writeText(e).then(() => {
|
|
@@ -79,22 +77,22 @@ const Ye = ({
|
|
|
79
77
|
},
|
|
80
78
|
variant: "ghost",
|
|
81
79
|
size: "icon",
|
|
82
|
-
children: n ? /* @__PURE__ */
|
|
80
|
+
children: n ? /* @__PURE__ */ b.jsx(_a, { className: "text-green-600", size: 14 }) : /* @__PURE__ */ b.jsx(Ba, { size: 14, strokeWidth: 1.3 })
|
|
83
81
|
}
|
|
84
82
|
);
|
|
85
|
-
},
|
|
86
|
-
const { input: e, type: n } = Ze(), t = De(
|
|
83
|
+
}, go = () => {
|
|
84
|
+
const { input: e, type: n } = Ze(), t = De(mo, { input: e, type: n }), a = gr(t), [, c] = ua(), { selectedServer: s, setSelectedServer: r } = vr(
|
|
87
85
|
a.data.schema.servers
|
|
88
86
|
), { servers: o } = a.data.schema;
|
|
89
87
|
if (o.length === 0) return null;
|
|
90
88
|
const i = o.at(0);
|
|
91
|
-
return o.length === 1 ? /* @__PURE__ */
|
|
92
|
-
/* @__PURE__ */
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
-
] }) : /* @__PURE__ */
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
-
/* @__PURE__ */
|
|
89
|
+
return o.length === 1 ? /* @__PURE__ */ b.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
90
|
+
/* @__PURE__ */ b.jsx("span", { className: "font-medium text-sm", children: "Endpoint:" }),
|
|
91
|
+
/* @__PURE__ */ b.jsx(Za, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: i.url }),
|
|
92
|
+
/* @__PURE__ */ b.jsx(Fr, { url: i.url })
|
|
93
|
+
] }) : /* @__PURE__ */ b.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
94
|
+
/* @__PURE__ */ b.jsx("span", { className: "font-medium text-sm", children: "Endpoint" }),
|
|
95
|
+
/* @__PURE__ */ b.jsx(
|
|
98
96
|
Ye,
|
|
99
97
|
{
|
|
100
98
|
className: "font-mono text-xs bg-border/50 dark:bg-border/70 py-1.5 max-w-[450px] truncate",
|
|
@@ -107,10 +105,10 @@ const Ye = ({
|
|
|
107
105
|
}))
|
|
108
106
|
}
|
|
109
107
|
),
|
|
110
|
-
/* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ b.jsx(Fr, { url: s })
|
|
111
109
|
] });
|
|
112
|
-
},
|
|
113
|
-
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors focus:outline-
|
|
110
|
+
}, vo = ro(
|
|
111
|
+
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
114
112
|
{
|
|
115
113
|
variants: {
|
|
116
114
|
variant: {
|
|
@@ -127,19 +125,19 @@ const Ye = ({
|
|
|
127
125
|
}
|
|
128
126
|
);
|
|
129
127
|
function _r({ className: e, variant: n, ...t }) {
|
|
130
|
-
return /* @__PURE__ */
|
|
128
|
+
return /* @__PURE__ */ b.jsx("div", { className: pe(vo({ variant: n }), e), ...t });
|
|
131
129
|
}
|
|
132
|
-
const Br = (e, n) => e ? n(e) : void 0,
|
|
130
|
+
const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
|
|
133
131
|
type: "string"
|
|
134
|
-
},
|
|
132
|
+
}, xo = ({
|
|
135
133
|
parameter: e,
|
|
136
134
|
group: n,
|
|
137
135
|
id: t
|
|
138
136
|
}) => {
|
|
139
|
-
const a =
|
|
140
|
-
return /* @__PURE__ */
|
|
141
|
-
/* @__PURE__ */
|
|
142
|
-
/* @__PURE__ */
|
|
137
|
+
const a = bo(e), [c, s] = ge(!1);
|
|
138
|
+
return /* @__PURE__ */ b.jsxs("li", { className: "p-4 bg-border/20 text-sm flex flex-col gap-1.5", children: [
|
|
139
|
+
/* @__PURE__ */ b.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
140
|
+
/* @__PURE__ */ b.jsx(ca, { asChild: !0, children: /* @__PURE__ */ b.jsx("code", { children: n === "path" ? /* @__PURE__ */ b.jsx(
|
|
143
141
|
ea,
|
|
144
142
|
{
|
|
145
143
|
name: e.name,
|
|
@@ -148,40 +146,40 @@ const Br = (e, n) => e ? n(e) : void 0, wo = (e) => e.schema != null && typeof e
|
|
|
148
146
|
slug: `${t}-${e.name}`
|
|
149
147
|
}
|
|
150
148
|
) : e.name }) }),
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
-
|
|
149
|
+
/* @__PURE__ */ b.jsx(
|
|
150
|
+
ao,
|
|
153
151
|
{
|
|
154
152
|
schema: a,
|
|
155
153
|
extraItems: [
|
|
156
|
-
e.required && /* @__PURE__ */
|
|
154
|
+
e.required && /* @__PURE__ */ b.jsx("span", { className: "text-primary", children: "required" }),
|
|
157
155
|
e.style && `style: ${e.style}`,
|
|
158
156
|
e.explode && `explode: ${e.explode}`
|
|
159
157
|
]
|
|
160
158
|
}
|
|
161
159
|
)
|
|
162
160
|
] }),
|
|
163
|
-
e.description && /* @__PURE__ */
|
|
161
|
+
e.description && /* @__PURE__ */ b.jsx(
|
|
164
162
|
Qe,
|
|
165
163
|
{
|
|
166
164
|
content: e.description,
|
|
167
165
|
className: "text-sm prose-p:my-1 prose-code:whitespace-pre-line"
|
|
168
166
|
}
|
|
169
167
|
),
|
|
170
|
-
a.type === "array" && a.items.enum ? /* @__PURE__ */
|
|
171
|
-
/* @__PURE__ */
|
|
172
|
-
(a.type === "object" ||
|
|
168
|
+
a.type === "array" && a.items.enum ? /* @__PURE__ */ b.jsx(Ur, { values: a.items.enum }) : a.enum && /* @__PURE__ */ b.jsx(Ur, { values: a.enum }),
|
|
169
|
+
/* @__PURE__ */ b.jsx(oo, { schema: a }),
|
|
170
|
+
(a.type === "object" || no(a)) && /* @__PURE__ */ b.jsxs(
|
|
173
171
|
pt.Root,
|
|
174
172
|
{
|
|
175
173
|
defaultOpen: !1,
|
|
176
174
|
onOpenChange: s,
|
|
177
175
|
open: c,
|
|
178
176
|
children: [
|
|
179
|
-
/* @__PURE__ */
|
|
180
|
-
c ? /* @__PURE__ */
|
|
177
|
+
/* @__PURE__ */ b.jsx(pt.Trigger, { asChild: !0, children: /* @__PURE__ */ b.jsxs(da, { variant: "expand", size: "sm", children: [
|
|
178
|
+
c ? /* @__PURE__ */ b.jsx(Ha, { size: 12 }) : /* @__PURE__ */ b.jsx(Ma, { size: 12 }),
|
|
181
179
|
c ? "Hide properties" : "Show properties"
|
|
182
180
|
] }) }),
|
|
183
|
-
/* @__PURE__ */
|
|
184
|
-
|
|
181
|
+
/* @__PURE__ */ b.jsx(pt.Content, { children: /* @__PURE__ */ b.jsx("div", { className: "mt-2", children: /* @__PURE__ */ b.jsx(
|
|
182
|
+
xr,
|
|
185
183
|
{
|
|
186
184
|
schema: "items" in a ? a.items : a
|
|
187
185
|
}
|
|
@@ -190,21 +188,21 @@ const Br = (e, n) => e ? n(e) : void 0, wo = (e) => e.schema != null && typeof e
|
|
|
190
188
|
}
|
|
191
189
|
)
|
|
192
190
|
] });
|
|
193
|
-
},
|
|
191
|
+
}, $o = ({
|
|
194
192
|
summary: e,
|
|
195
193
|
group: n,
|
|
196
194
|
parameters: t,
|
|
197
195
|
id: a
|
|
198
|
-
}) => /* @__PURE__ */
|
|
199
|
-
/* @__PURE__ */
|
|
200
|
-
e && /* @__PURE__ */
|
|
196
|
+
}) => /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
197
|
+
/* @__PURE__ */ b.jsxs(Le, { level: 3, id: `${a}/${n}-parameters`, className: "capitalize", children: [
|
|
198
|
+
e && /* @__PURE__ */ b.jsxs(hr, { children: [
|
|
201
199
|
e,
|
|
202
200
|
" › "
|
|
203
201
|
] }),
|
|
204
202
|
n === "header" ? "Headers" : `${n} Parameters`
|
|
205
203
|
] }),
|
|
206
|
-
/* @__PURE__ */
|
|
207
|
-
|
|
204
|
+
/* @__PURE__ */ b.jsx(lo, { children: /* @__PURE__ */ b.jsx("ul", { className: "list-none m-0 px-0 divide-y ", children: t.sort((c, s) => c.required === s.required ? 0 : c.required ? -1 : 1).map((c) => /* @__PURE__ */ b.jsx(
|
|
205
|
+
xo,
|
|
208
206
|
{
|
|
209
207
|
parameter: c,
|
|
210
208
|
id: a,
|
|
@@ -217,7 +215,7 @@ var Hr = (e, n) => {
|
|
|
217
215
|
const t = e[n.name];
|
|
218
216
|
return t === void 0 ? (e[n.name] = n.value, e) : Array.isArray(t) ? (t.push(n.value), e) : (e[n.name] = [t, n.value], e);
|
|
219
217
|
}, Mr = "", zr = `
|
|
220
|
-
`,
|
|
218
|
+
`, G = class {
|
|
221
219
|
/**
|
|
222
220
|
* Helper object to format and aggragate lines of code.
|
|
223
221
|
* Lines are aggregated in a `code` array, and need to be joined to obtain a proper code snippet.
|
|
@@ -239,27 +237,27 @@ var Hr = (e, n) => {
|
|
|
239
237
|
}, this.indentationCharacter = e || Mr, this.lineJoin = n ?? zr;
|
|
240
238
|
}
|
|
241
239
|
}, dt, Wr;
|
|
242
|
-
function
|
|
240
|
+
function jo() {
|
|
243
241
|
return Wr || (Wr = 1, dt = function(e) {
|
|
244
242
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
245
243
|
}), dt;
|
|
246
244
|
}
|
|
247
245
|
var ht, Jr;
|
|
248
|
-
function
|
|
246
|
+
function wo() {
|
|
249
247
|
return Jr || (Jr = 1, ht = function(e) {
|
|
250
248
|
var n = typeof e;
|
|
251
249
|
return e !== null && (n === "object" || n === "function");
|
|
252
250
|
}), ht;
|
|
253
251
|
}
|
|
254
|
-
var
|
|
255
|
-
function
|
|
256
|
-
return
|
|
252
|
+
var Ve = {}, Vr;
|
|
253
|
+
function So() {
|
|
254
|
+
return Vr || (Vr = 1, Object.defineProperty(Ve, "__esModule", { value: !0 }), Ve.default = (e) => Object.getOwnPropertySymbols(e).filter((n) => Object.prototype.propertyIsEnumerable.call(e, n))), Ve;
|
|
257
255
|
}
|
|
258
|
-
var yt,
|
|
259
|
-
function
|
|
260
|
-
if (
|
|
261
|
-
|
|
262
|
-
const e =
|
|
256
|
+
var yt, Gr;
|
|
257
|
+
function Oo() {
|
|
258
|
+
if (Gr) return yt;
|
|
259
|
+
Gr = 1;
|
|
260
|
+
const e = jo(), n = wo(), t = So().default;
|
|
263
261
|
return yt = (a, c, s) => {
|
|
264
262
|
const r = [];
|
|
265
263
|
return function o(i, l, d) {
|
|
@@ -281,8 +279,8 @@ function Co() {
|
|
|
281
279
|
const f = (h) => {
|
|
282
280
|
if (l.inlineCharacterLimit === void 0)
|
|
283
281
|
return h;
|
|
284
|
-
const
|
|
285
|
-
return
|
|
282
|
+
const x = h.replace(new RegExp(y.newLine, "g"), "").replace(new RegExp(y.newLineOrSpace, "g"), " ").replace(new RegExp(y.pad + "|" + y.indent, "g"), "");
|
|
283
|
+
return x.length <= l.inlineCharacterLimit ? x : h.replace(new RegExp(y.newLine + "|" + y.newLineOrSpace, "g"), `
|
|
286
284
|
`).replace(new RegExp(y.pad, "g"), d).replace(new RegExp(y.indent, "g"), d + l.indent);
|
|
287
285
|
};
|
|
288
286
|
if (r.indexOf(i) !== -1)
|
|
@@ -295,38 +293,38 @@ function Co() {
|
|
|
295
293
|
if (i.length === 0)
|
|
296
294
|
return "[]";
|
|
297
295
|
r.push(i);
|
|
298
|
-
const h = "[" + y.newLine + i.map((
|
|
299
|
-
const u = i.length - 1 ===
|
|
300
|
-
let m = o(
|
|
301
|
-
return l.transform && (m = l.transform(i,
|
|
296
|
+
const h = "[" + y.newLine + i.map((x, $) => {
|
|
297
|
+
const u = i.length - 1 === $ ? y.newLine : "," + y.newLineOrSpace;
|
|
298
|
+
let m = o(x, l, d + l.indent);
|
|
299
|
+
return l.transform && (m = l.transform(i, $, m)), y.indent + m + u;
|
|
302
300
|
}).join("") + y.pad + "]";
|
|
303
301
|
return r.pop(), f(h);
|
|
304
302
|
}
|
|
305
303
|
if (n(i)) {
|
|
306
304
|
let h = Object.keys(i).concat(t(i));
|
|
307
|
-
if (l.filter && (h = h.filter((
|
|
305
|
+
if (l.filter && (h = h.filter(($) => l.filter(i, $))), h.length === 0)
|
|
308
306
|
return "{}";
|
|
309
307
|
r.push(i);
|
|
310
|
-
const
|
|
311
|
-
const m = h.length - 1 === u ? y.newLine : "," + y.newLineOrSpace, v = typeof
|
|
312
|
-
let p = o(i[
|
|
313
|
-
return l.transform && (p = l.transform(i,
|
|
308
|
+
const x = "{" + y.newLine + h.map(($, u) => {
|
|
309
|
+
const m = h.length - 1 === u ? y.newLine : "," + y.newLineOrSpace, v = typeof $ == "symbol", S = !v && /^[a-z$_][a-z$_0-9]*$/i.test($), P = v || S ? $ : o($, l);
|
|
310
|
+
let p = o(i[$], l, d + l.indent);
|
|
311
|
+
return l.transform && (p = l.transform(i, $, p)), y.indent + String(P) + ": " + p + m;
|
|
314
312
|
}).join("") + y.pad + "}";
|
|
315
|
-
return r.pop(), f(
|
|
313
|
+
return r.pop(), f(x);
|
|
316
314
|
}
|
|
317
315
|
return i = String(i).replace(/[\r\n]/g, (h) => h === `
|
|
318
316
|
` ? "\\n" : "\\r"), l.singleQuotes === !1 ? (i = i.replace(/"/g, '\\"'), `"${i}"`) : (i = i.replace(/\\?'/g, "\\'"), `'${i}'`);
|
|
319
317
|
}(a, c, s);
|
|
320
318
|
}, yt;
|
|
321
319
|
}
|
|
322
|
-
var
|
|
323
|
-
const ue = /* @__PURE__ */
|
|
324
|
-
function
|
|
320
|
+
var To = Oo();
|
|
321
|
+
const ue = /* @__PURE__ */ co(To);
|
|
322
|
+
function Fe(e, n = {}) {
|
|
325
323
|
const { delimiter: t = '"', escapeChar: a = "\\", escapeNewlines: c = !0 } = n;
|
|
326
324
|
return [...e.toString()].map((r) => r === "\b" ? `${a}b` : r === " " ? `${a}t` : r === `
|
|
327
325
|
` ? 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("");
|
|
328
326
|
}
|
|
329
|
-
var
|
|
327
|
+
var _e = (e) => Fe(e, { delimiter: "'" }), le = (e) => Fe(e, { delimiter: '"' }), Po = {
|
|
330
328
|
info: {
|
|
331
329
|
key: "libcurl",
|
|
332
330
|
title: "Libcurl",
|
|
@@ -335,14 +333,14 @@ var Fe = (e) => Le(e, { delimiter: "'" }), le = (e) => Le(e, { delimiter: '"' })
|
|
|
335
333
|
extname: ".c"
|
|
336
334
|
},
|
|
337
335
|
convert: ({ method: e, fullUrl: n, headersObj: t, allHeaders: a, postData: c }) => {
|
|
338
|
-
const { push: s, blank: r, join: o } = new
|
|
336
|
+
const { push: s, blank: r, join: o } = new G();
|
|
339
337
|
s("CURL *hnd = curl_easy_init();"), r(), s(`curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "${e.toUpperCase()}");`), s("curl_easy_setopt(hnd, CURLOPT_WRITEDATA, stdout);"), s(`curl_easy_setopt(hnd, CURLOPT_URL, "${n}");`);
|
|
340
338
|
const i = Object.keys(t);
|
|
341
339
|
return i.length && (r(), s("struct curl_slist *headers = NULL;"), i.forEach((l) => {
|
|
342
340
|
s(`headers = curl_slist_append(headers, "${l}: ${le(t[l])}");`);
|
|
343
341
|
}), s("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), a.cookie && (r(), s(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${a.cookie}");`)), c.text && (r(), s(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(c.text)});`)), r(), s("CURLcode ret = curl_easy_perform(hnd);"), o();
|
|
344
342
|
}
|
|
345
|
-
},
|
|
343
|
+
}, Co = {
|
|
346
344
|
info: {
|
|
347
345
|
key: "c",
|
|
348
346
|
title: "C",
|
|
@@ -350,30 +348,30 @@ var Fe = (e) => Le(e, { delimiter: "'" }), le = (e) => Le(e, { delimiter: '"' })
|
|
|
350
348
|
cli: "c"
|
|
351
349
|
},
|
|
352
350
|
clientsById: {
|
|
353
|
-
libcurl:
|
|
351
|
+
libcurl: Po
|
|
354
352
|
}
|
|
355
|
-
}, fe = (e, n) => Object.keys(e).find((t) => t.toLowerCase() === n.toLowerCase()),
|
|
353
|
+
}, fe = (e, n) => Object.keys(e).find((t) => t.toLowerCase() === n.toLowerCase()), ve = (e, n) => {
|
|
356
354
|
const t = fe(e, n);
|
|
357
355
|
if (t)
|
|
358
356
|
return e[t];
|
|
359
|
-
}, et = (e, n) => !!fe(e, n),
|
|
357
|
+
}, et = (e, n) => !!fe(e, n), qo = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
|
|
360
358
|
(n) => e.indexOf(n) > -1
|
|
361
359
|
), Dr = class {
|
|
362
360
|
constructor(e) {
|
|
363
361
|
this.name = "", this.toString = () => `:${this.name}`, this.name = e;
|
|
364
362
|
}
|
|
365
|
-
},
|
|
363
|
+
}, Eo = class {
|
|
366
364
|
constructor(e) {
|
|
367
365
|
this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
|
|
368
366
|
}
|
|
369
|
-
},
|
|
367
|
+
}, ya = (e) => e === void 0 ? null : e === null ? "null" : e.constructor.name.toLowerCase(), ma = (e) => e === void 0 ? !0 : ya(e) === "object" ? Object.keys(e).length === 0 : !1, Qr = (e) => (Object.keys(e).filter((n) => ma(e[n])).forEach((n) => {
|
|
370
368
|
delete e[n];
|
|
371
|
-
}), e),
|
|
369
|
+
}), e), Ge = (e, n) => {
|
|
372
370
|
const t = " ".repeat(e);
|
|
373
371
|
return n.replace(/\n/g, `
|
|
374
372
|
${t}`);
|
|
375
|
-
},
|
|
376
|
-
switch (
|
|
373
|
+
}, yr = (e) => {
|
|
374
|
+
switch (ya(e)) {
|
|
377
375
|
case "string":
|
|
378
376
|
return `"${e.replace(/"/g, '\\"')}"`;
|
|
379
377
|
case "file":
|
|
@@ -386,20 +384,20 @@ ${t}`);
|
|
|
386
384
|
return `#"${e.source}"`;
|
|
387
385
|
case "object": {
|
|
388
386
|
const n = Object.keys(e).reduce((t, a) => {
|
|
389
|
-
const c =
|
|
387
|
+
const c = Ge(a.length + 2, yr(e[a]));
|
|
390
388
|
return `${t}:${a} ${c}
|
|
391
389
|
`;
|
|
392
390
|
}, "").trim();
|
|
393
|
-
return `{${
|
|
391
|
+
return `{${Ge(1, n)}}`;
|
|
394
392
|
}
|
|
395
393
|
case "array": {
|
|
396
|
-
const n = e.reduce((t, a) => `${t} ${
|
|
397
|
-
return `[${
|
|
394
|
+
const n = e.reduce((t, a) => `${t} ${yr(a)}`, "").trim();
|
|
395
|
+
return `[${Ge(1, n)}]`;
|
|
398
396
|
}
|
|
399
397
|
default:
|
|
400
398
|
return e.toString();
|
|
401
399
|
}
|
|
402
|
-
},
|
|
400
|
+
}, Ro = {
|
|
403
401
|
info: {
|
|
404
402
|
key: "clj_http",
|
|
405
403
|
title: "clj-http",
|
|
@@ -408,7 +406,7 @@ ${t}`);
|
|
|
408
406
|
extname: ".clj"
|
|
409
407
|
},
|
|
410
408
|
convert: ({ queryObj: e, method: n, postData: t, url: a, allHeaders: c }, s) => {
|
|
411
|
-
const { push: r, join: o } = new
|
|
409
|
+
const { push: r, join: o } = new G({ indent: s?.indent }), i = ["get", "post", "put", "delete", "patch", "head", "options"];
|
|
412
410
|
if (n = n.toLowerCase(), !i.includes(n))
|
|
413
411
|
return r("Method not supported"), o();
|
|
414
412
|
const l = {
|
|
@@ -441,7 +439,7 @@ ${t}`);
|
|
|
441
439
|
if (t.params) {
|
|
442
440
|
l.multipart = t.params.map((y) => y.fileName && !y.value ? {
|
|
443
441
|
name: y.name,
|
|
444
|
-
content: new
|
|
442
|
+
content: new Eo(y.fileName)
|
|
445
443
|
} : {
|
|
446
444
|
name: y.name,
|
|
447
445
|
content: y.value
|
|
@@ -452,7 +450,7 @@ ${t}`);
|
|
|
452
450
|
break;
|
|
453
451
|
}
|
|
454
452
|
}
|
|
455
|
-
switch (
|
|
453
|
+
switch (ve(l.headers, "accept")) {
|
|
456
454
|
case "application/json":
|
|
457
455
|
{
|
|
458
456
|
l.accept = new Dr("json");
|
|
@@ -462,25 +460,25 @@ ${t}`);
|
|
|
462
460
|
break;
|
|
463
461
|
}
|
|
464
462
|
if (r(`(require '[clj-http.client :as client])
|
|
465
|
-
`),
|
|
463
|
+
`), ma(Qr(l)))
|
|
466
464
|
r(`(client/${n} "${a}")`);
|
|
467
465
|
else {
|
|
468
|
-
const d = 11 + n.length + a.length, y =
|
|
466
|
+
const d = 11 + n.length + a.length, y = Ge(d, yr(Qr(l)));
|
|
469
467
|
r(`(client/${n} "${a}" ${y})`);
|
|
470
468
|
}
|
|
471
469
|
return o();
|
|
472
470
|
}
|
|
473
|
-
},
|
|
471
|
+
}, ko = {
|
|
474
472
|
info: {
|
|
475
473
|
key: "clojure",
|
|
476
474
|
title: "Clojure",
|
|
477
475
|
default: "clj_http"
|
|
478
476
|
},
|
|
479
477
|
clientsById: {
|
|
480
|
-
clj_http:
|
|
478
|
+
clj_http: Ro
|
|
481
479
|
}
|
|
482
|
-
},
|
|
483
|
-
let n =
|
|
480
|
+
}, No = (e) => {
|
|
481
|
+
let n = ve(e, "accept-encoding");
|
|
484
482
|
if (!n)
|
|
485
483
|
return [];
|
|
486
484
|
const t = {
|
|
@@ -496,7 +494,7 @@ ${t}`);
|
|
|
496
494
|
}
|
|
497
495
|
});
|
|
498
496
|
}), a;
|
|
499
|
-
},
|
|
497
|
+
}, Ao = {
|
|
500
498
|
info: {
|
|
501
499
|
key: "httpclient",
|
|
502
500
|
title: "HttpClient",
|
|
@@ -508,10 +506,10 @@ ${t}`);
|
|
|
508
506
|
const s = {
|
|
509
507
|
indent: " ",
|
|
510
508
|
...c
|
|
511
|
-
}, { push: r, join: o } = new
|
|
509
|
+
}, { push: r, join: o } = new G({ indent: s.indent });
|
|
512
510
|
r("using System.Net.Http.Headers;");
|
|
513
511
|
let i = "";
|
|
514
|
-
const l = !!e.cookie, d =
|
|
512
|
+
const l = !!e.cookie, d = No(e);
|
|
515
513
|
(l || d.length) && (i = "clientHandler", r("var clientHandler = new HttpClientHandler"), r("{"), l && r("UseCookies = false,", 1), d.length && r(`AutomaticDecompression = ${d.join(" | ")},`, 1), r("};")), r(`var client = new HttpClient(${i});`), r("var request = new HttpRequestMessage"), r("{");
|
|
516
514
|
const y = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
|
|
517
515
|
t = t.toUpperCase(), t && y.includes(t) ? t = `HttpMethod.${t[0]}${t.substring(1).toLowerCase()}` : t = `new HttpMethod("${t}")`, r(`Method = ${t},`, 1), r(`RequestUri = new Uri("${a}"),`, 1);
|
|
@@ -531,13 +529,13 @@ ${t}`);
|
|
|
531
529
|
const h = n.mimeType;
|
|
532
530
|
switch (h) {
|
|
533
531
|
case "application/x-www-form-urlencoded":
|
|
534
|
-
r("Content = new FormUrlEncodedContent(new Dictionary<string, string>", 1), r("{", 1), n.params?.forEach((
|
|
535
|
-
r(`{ "${
|
|
532
|
+
r("Content = new FormUrlEncodedContent(new Dictionary<string, string>", 1), r("{", 1), n.params?.forEach((x) => {
|
|
533
|
+
r(`{ "${x.name}", "${x.value}" },`, 2);
|
|
536
534
|
}), r("}),", 1);
|
|
537
535
|
break;
|
|
538
536
|
case "multipart/form-data":
|
|
539
|
-
r("Content = new MultipartFormDataContent", 1), r("{", 1), n.params?.forEach((
|
|
540
|
-
r(`new StringContent(${JSON.stringify(
|
|
537
|
+
r("Content = new MultipartFormDataContent", 1), r("{", 1), n.params?.forEach((x) => {
|
|
538
|
+
r(`new StringContent(${JSON.stringify(x.value || "")})`, 2), r("{", 2), r("Headers =", 3), r("{", 3), x.contentType && r(`ContentType = new MediaTypeHeaderValue("${x.contentType}"),`, 4), r('ContentDisposition = new ContentDispositionHeaderValue("form-data")', 4), r("{", 4), r(`Name = "${x.name}",`, 5), x.fileName && r(`FileName = "${x.fileName}",`, 5), r("}", 4), r("}", 3), r("},", 2);
|
|
541
539
|
}), r("},", 1);
|
|
542
540
|
break;
|
|
543
541
|
default:
|
|
@@ -548,10 +546,10 @@ ${t}`);
|
|
|
548
546
|
return r("};"), r("using (var response = await client.SendAsync(request))"), r("{"), r("response.EnsureSuccessStatusCode();", 1), r("var body = await response.Content.ReadAsStringAsync();", 1), r("Console.WriteLine(body);", 1), r("}"), o();
|
|
549
547
|
}
|
|
550
548
|
};
|
|
551
|
-
function
|
|
549
|
+
function Io(e) {
|
|
552
550
|
return e[0].toUpperCase() + e.slice(1).toLowerCase();
|
|
553
551
|
}
|
|
554
|
-
var
|
|
552
|
+
var Uo = {
|
|
555
553
|
info: {
|
|
556
554
|
key: "restsharp",
|
|
557
555
|
title: "RestSharp",
|
|
@@ -561,7 +559,7 @@ var _o = {
|
|
|
561
559
|
installation: "dotnet add package RestSharp"
|
|
562
560
|
},
|
|
563
561
|
convert: ({ method: e, fullUrl: n, headersObj: t, cookies: a, postData: c, uriObj: s }) => {
|
|
564
|
-
const { push: r, join: o } = new
|
|
562
|
+
const { push: r, join: o } = new G();
|
|
565
563
|
if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(
|
|
566
564
|
e.toUpperCase()
|
|
567
565
|
))
|
|
@@ -601,11 +599,11 @@ var _o = {
|
|
|
601
599
|
if (!c.text) break;
|
|
602
600
|
r(`request.AddStringBody("${c.text}", "${c.mimeType}");`);
|
|
603
601
|
}
|
|
604
|
-
return r(`var response = await client.${
|
|
602
|
+
return r(`var response = await client.${Io(e)}Async(request);
|
|
605
603
|
`), r(`Console.WriteLine("{0}", response.Content);
|
|
606
604
|
`), o();
|
|
607
605
|
}
|
|
608
|
-
},
|
|
606
|
+
}, Lo = {
|
|
609
607
|
info: {
|
|
610
608
|
key: "csharp",
|
|
611
609
|
title: "C#",
|
|
@@ -613,10 +611,10 @@ var _o = {
|
|
|
613
611
|
cli: "dotnet"
|
|
614
612
|
},
|
|
615
613
|
clientsById: {
|
|
616
|
-
httpclient:
|
|
617
|
-
restsharp:
|
|
614
|
+
httpclient: Ao,
|
|
615
|
+
restsharp: Uo
|
|
618
616
|
}
|
|
619
|
-
},
|
|
617
|
+
}, Fo = {
|
|
620
618
|
info: {
|
|
621
619
|
key: "native",
|
|
622
620
|
title: "NewRequest",
|
|
@@ -625,16 +623,16 @@ var _o = {
|
|
|
625
623
|
extname: ".go"
|
|
626
624
|
},
|
|
627
625
|
convert: ({ postData: e, method: n, allHeaders: t, fullUrl: a }, c = {}) => {
|
|
628
|
-
const { blank: s, push: r, join: o } = new
|
|
626
|
+
const { blank: s, push: r, join: o } = new G({ indent: " " }), { showBoilerplate: i = !0, checkErrors: l = !1, printBody: d = !0, timeout: y = -1 } = c, f = l ? "err" : "_", h = i ? 1 : 0, x = () => {
|
|
629
627
|
l && (r("if err != nil {", h), r("panic(err)", h + 1), r("}", h));
|
|
630
628
|
};
|
|
631
629
|
i && (r("package main"), s(), r("import ("), r('"fmt"', h), y > 0 && r('"time"', h), e.text && r('"strings"', h), r('"net/http"', h), d && r('"io"', h), r(")"), s(), r("func main() {"), s());
|
|
632
|
-
const
|
|
633
|
-
return u && (r("client := http.Client{", h),
|
|
630
|
+
const $ = y > 0, u = $, m = u ? "client" : "http.DefaultClient";
|
|
631
|
+
return u && (r("client := http.Client{", h), $ && r(`Timeout: time.Duration(${y} * time.Second),`, h + 1), r("}", h), s()), r(`url := "${a}"`, h), s(), e.text ? (r(`payload := strings.NewReader(${JSON.stringify(e.text)})`, h), s(), r(`req, ${f} := http.NewRequest("${n}", url, payload)`, h), s()) : (r(`req, ${f} := http.NewRequest("${n}", url, nil)`, h), s()), x(), Object.keys(t).length && (Object.keys(t).forEach((v) => {
|
|
634
632
|
r(`req.Header.Add("${v}", "${le(t[v])}")`, h);
|
|
635
|
-
}), s()), r(`res, ${f} := ${m}.Do(req)`, h),
|
|
633
|
+
}), s()), r(`res, ${f} := ${m}.Do(req)`, h), x(), d && (s(), r("defer res.Body.Close()", h), r(`body, ${f} := io.ReadAll(res.Body)`, h), x()), s(), d && r("fmt.Println(string(body))", h), i && (s(), r("}")), o();
|
|
636
634
|
}
|
|
637
|
-
},
|
|
635
|
+
}, _o = {
|
|
638
636
|
info: {
|
|
639
637
|
key: "go",
|
|
640
638
|
title: "Go",
|
|
@@ -642,10 +640,10 @@ var _o = {
|
|
|
642
640
|
cli: "go"
|
|
643
641
|
},
|
|
644
642
|
clientsById: {
|
|
645
|
-
native:
|
|
643
|
+
native: Fo
|
|
646
644
|
}
|
|
647
645
|
}, Kr = `\r
|
|
648
|
-
`,
|
|
646
|
+
`, Bo = {
|
|
649
647
|
info: {
|
|
650
648
|
key: "http1.1",
|
|
651
649
|
title: "HTTP/1.1",
|
|
@@ -659,30 +657,30 @@ var _o = {
|
|
|
659
657
|
autoContentLength: !0,
|
|
660
658
|
autoHost: !0,
|
|
661
659
|
...r
|
|
662
|
-
}, { blank: i, push: l, join: d } = new
|
|
660
|
+
}, { blank: i, push: l, join: d } = new G({ indent: "", join: Kr }), y = o.absoluteURI ? n : t.path;
|
|
663
661
|
l(`${e} ${y} ${a}`);
|
|
664
662
|
const f = Object.keys(c);
|
|
665
|
-
if (f.forEach((
|
|
666
|
-
const u =
|
|
667
|
-
l(`${u}: ${c[
|
|
663
|
+
if (f.forEach(($) => {
|
|
664
|
+
const u = $.toLowerCase().replace(/(^|-)(\w)/g, (m) => m.toUpperCase());
|
|
665
|
+
l(`${u}: ${c[$]}`);
|
|
668
666
|
}), o.autoHost && !f.includes("host") && l(`Host: ${t.host}`), o.autoContentLength && s.text && !f.includes("content-length")) {
|
|
669
667
|
const u = new TextEncoder().encode(s.text).length.toString();
|
|
670
668
|
l(`Content-Length: ${u}`);
|
|
671
669
|
}
|
|
672
670
|
i();
|
|
673
|
-
const h = d(),
|
|
674
|
-
return `${h}${Kr}${
|
|
671
|
+
const h = d(), x = s.text || "";
|
|
672
|
+
return `${h}${Kr}${x}`;
|
|
675
673
|
}
|
|
676
|
-
},
|
|
674
|
+
}, Ho = {
|
|
677
675
|
info: {
|
|
678
676
|
key: "http",
|
|
679
677
|
title: "HTTP",
|
|
680
678
|
default: "http1.1"
|
|
681
679
|
},
|
|
682
680
|
clientsById: {
|
|
683
|
-
"http1.1":
|
|
681
|
+
"http1.1": Bo
|
|
684
682
|
}
|
|
685
|
-
},
|
|
683
|
+
}, Mo = {
|
|
686
684
|
info: {
|
|
687
685
|
key: "asynchttp",
|
|
688
686
|
title: "AsyncHttp",
|
|
@@ -694,12 +692,12 @@ var _o = {
|
|
|
694
692
|
const s = {
|
|
695
693
|
indent: " ",
|
|
696
694
|
...c
|
|
697
|
-
}, { blank: r, push: o, join: i } = new
|
|
695
|
+
}, { blank: r, push: o, join: i } = new G({ indent: s.indent });
|
|
698
696
|
return o("AsyncHttpClient client = new DefaultAsyncHttpClient();"), o(`client.prepare("${e.toUpperCase()}", "${a}")`), Object.keys(n).forEach((l) => {
|
|
699
697
|
o(`.setHeader("${l}", "${le(n[l])}")`, 1);
|
|
700
698
|
}), t.text && o(`.setBody(${JSON.stringify(t.text)})`, 1), o(".execute()", 1), o(".toCompletableFuture()", 1), o(".thenAccept(System.out::println)", 1), o(".join();", 1), r(), o("client.close();"), i();
|
|
701
699
|
}
|
|
702
|
-
},
|
|
700
|
+
}, zo = {
|
|
703
701
|
info: {
|
|
704
702
|
key: "nethttp",
|
|
705
703
|
title: "java.net.http",
|
|
@@ -711,7 +709,7 @@ var _o = {
|
|
|
711
709
|
const s = {
|
|
712
710
|
indent: " ",
|
|
713
711
|
...c
|
|
714
|
-
}, { push: r, join: o } = new
|
|
712
|
+
}, { push: r, join: o } = new G({ indent: s.indent });
|
|
715
713
|
return r("HttpRequest request = HttpRequest.newBuilder()"), r(`.uri(URI.create("${n}"))`, 2), Object.keys(e).forEach((i) => {
|
|
716
714
|
r(`.header("${i}", "${le(e[i])}")`, 2);
|
|
717
715
|
}), a.text ? r(
|
|
@@ -721,7 +719,7 @@ var _o = {
|
|
|
721
719
|
"HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
|
|
722
720
|
), r("System.out.println(response.body());"), o();
|
|
723
721
|
}
|
|
724
|
-
},
|
|
722
|
+
}, Wo = {
|
|
725
723
|
info: {
|
|
726
724
|
key: "okhttp",
|
|
727
725
|
title: "OkHttp",
|
|
@@ -733,12 +731,12 @@ var _o = {
|
|
|
733
731
|
const s = {
|
|
734
732
|
indent: " ",
|
|
735
733
|
...c
|
|
736
|
-
}, { push: r, blank: o, join: i } = new
|
|
734
|
+
}, { push: r, blank: o, join: i } = new G({ indent: s.indent }), l = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"], d = ["POST", "PUT", "DELETE", "PATCH"];
|
|
737
735
|
return r("OkHttpClient client = new OkHttpClient();"), o(), e.text && (e.boundary ? r(`MediaType mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}");`) : r(`MediaType mediaType = MediaType.parse("${e.mimeType}");`), r(`RequestBody body = RequestBody.create(mediaType, ${JSON.stringify(e.text)});`)), r("Request request = new Request.Builder()"), r(`.url("${t}")`, 1), l.includes(n.toUpperCase()) ? d.includes(n.toUpperCase()) ? e.text ? r(`.${n.toLowerCase()}(body)`, 1) : r(`.${n.toLowerCase()}(null)`, 1) : r(`.${n.toLowerCase()}()`, 1) : e.text ? r(`.method("${n.toUpperCase()}", body)`, 1) : r(`.method("${n.toUpperCase()}", null)`, 1), Object.keys(a).forEach((y) => {
|
|
738
736
|
r(`.addHeader("${y}", "${le(a[y])}")`, 1);
|
|
739
737
|
}), r(".build();", 1), o(), r("Response response = client.newCall(request).execute();"), i();
|
|
740
738
|
}
|
|
741
|
-
},
|
|
739
|
+
}, Jo = {
|
|
742
740
|
info: {
|
|
743
741
|
key: "unirest",
|
|
744
742
|
title: "Unirest",
|
|
@@ -750,24 +748,24 @@ var _o = {
|
|
|
750
748
|
const s = {
|
|
751
749
|
indent: " ",
|
|
752
750
|
...c
|
|
753
|
-
}, { join: r, push: o } = new
|
|
751
|
+
}, { join: r, push: o } = new G({ indent: s.indent });
|
|
754
752
|
return ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(e.toUpperCase()) ? o(`HttpResponse<String> response = Unirest.${e.toLowerCase()}("${a}")`) : o(`HttpResponse<String> response = Unirest.customMethod("${e.toUpperCase()}","${a}")`), Object.keys(n).forEach((l) => {
|
|
755
753
|
o(`.header("${l}", "${le(n[l])}")`, 1);
|
|
756
754
|
}), t.text && o(`.body(${JSON.stringify(t.text)})`, 1), o(".asString();", 1), r();
|
|
757
755
|
}
|
|
758
|
-
},
|
|
756
|
+
}, Vo = {
|
|
759
757
|
info: {
|
|
760
758
|
key: "java",
|
|
761
759
|
title: "Java",
|
|
762
760
|
default: "unirest"
|
|
763
761
|
},
|
|
764
762
|
clientsById: {
|
|
765
|
-
asynchttp:
|
|
766
|
-
nethttp:
|
|
767
|
-
okhttp:
|
|
768
|
-
unirest:
|
|
763
|
+
asynchttp: Mo,
|
|
764
|
+
nethttp: zo,
|
|
765
|
+
okhttp: Wo,
|
|
766
|
+
unirest: Jo
|
|
769
767
|
}
|
|
770
|
-
},
|
|
768
|
+
}, Go = {
|
|
771
769
|
info: {
|
|
772
770
|
key: "axios",
|
|
773
771
|
title: "Axios",
|
|
@@ -780,7 +778,7 @@ var _o = {
|
|
|
780
778
|
const r = {
|
|
781
779
|
indent: " ",
|
|
782
780
|
...s
|
|
783
|
-
}, { blank: o, push: i, join: l, addPostProcessor: d } = new
|
|
781
|
+
}, { blank: o, push: i, join: l, addPostProcessor: d } = new G({ indent: r.indent });
|
|
784
782
|
i("import axios from 'axios';"), o();
|
|
785
783
|
const y = {
|
|
786
784
|
method: n,
|
|
@@ -811,7 +809,7 @@ var _o = {
|
|
|
811
809
|
}).replace('"[form]"', "form");
|
|
812
810
|
return i(`const options = ${f};`), o(), i("axios"), i(".request(options)", 1), i(".then(function (response) {", 1), i("console.log(response.data);", 2), i("})", 1), i(".catch(function (error) {", 1), i("console.error(error);", 2), i("});", 1), l();
|
|
813
811
|
}
|
|
814
|
-
},
|
|
812
|
+
}, Do = {
|
|
815
813
|
info: {
|
|
816
814
|
key: "fetch",
|
|
817
815
|
title: "fetch",
|
|
@@ -824,7 +822,7 @@ var _o = {
|
|
|
824
822
|
indent: " ",
|
|
825
823
|
credentials: null,
|
|
826
824
|
...c
|
|
827
|
-
}, { blank: r, join: o, push: i } = new
|
|
825
|
+
}, { blank: r, join: o, push: i } = new G({ indent: s.indent }), l = {
|
|
828
826
|
method: e
|
|
829
827
|
};
|
|
830
828
|
switch (Object.keys(n).length && (l.headers = n), s.credentials !== null && (l.credentials = s.credentials), t.mimeType) {
|
|
@@ -864,7 +862,7 @@ var _o = {
|
|
|
864
862
|
})};`
|
|
865
863
|
), r(), t.params && t.mimeType === "multipart/form-data" && (i("options.body = form;"), r()), i(`fetch('${a}', options)`), i(".then(response => response.json())", 1), i(".then(response => console.log(response))", 1), i(".catch(err => console.error(err));", 1), o();
|
|
866
864
|
}
|
|
867
|
-
},
|
|
865
|
+
}, Qo = {
|
|
868
866
|
info: {
|
|
869
867
|
key: "jquery",
|
|
870
868
|
title: "jQuery",
|
|
@@ -876,7 +874,7 @@ var _o = {
|
|
|
876
874
|
const s = {
|
|
877
875
|
indent: " ",
|
|
878
876
|
...c
|
|
879
|
-
}, { blank: r, push: o, join: i } = new
|
|
877
|
+
}, { blank: r, push: o, join: i } = new G({ indent: s.indent }), l = {
|
|
880
878
|
async: !0,
|
|
881
879
|
crossDomain: !0,
|
|
882
880
|
url: e,
|
|
@@ -895,7 +893,7 @@ var _o = {
|
|
|
895
893
|
break;
|
|
896
894
|
if (o("const form = new FormData();"), a.params.forEach((y) => {
|
|
897
895
|
o(`form.append('${y.name}', '${y.value || y.fileName || ""}');`);
|
|
898
|
-
}), l.processData = !1, l.contentType = !1, l.mimeType = "multipart/form-data", l.data = "[form]", et(t, "content-type") &&
|
|
896
|
+
}), l.processData = !1, l.contentType = !1, l.mimeType = "multipart/form-data", l.data = "[form]", et(t, "content-type") && ve(t, "content-type")?.includes("boundary")) {
|
|
899
897
|
const y = fe(t, "content-type");
|
|
900
898
|
y && delete l.headers[y];
|
|
901
899
|
}
|
|
@@ -907,7 +905,7 @@ var _o = {
|
|
|
907
905
|
const d = ue(l, { indent: s.indent }).replace("'[form]'", "form");
|
|
908
906
|
return o(`const settings = ${d};`), r(), o("$.ajax(settings).done(function (response) {"), o("console.log(response);", 1), o("});"), i();
|
|
909
907
|
}
|
|
910
|
-
},
|
|
908
|
+
}, Ko = {
|
|
911
909
|
info: {
|
|
912
910
|
key: "xhr",
|
|
913
911
|
title: "XMLHttpRequest",
|
|
@@ -920,7 +918,7 @@ var _o = {
|
|
|
920
918
|
indent: " ",
|
|
921
919
|
cors: !0,
|
|
922
920
|
...c
|
|
923
|
-
}, { blank: r, push: o, join: i } = new
|
|
921
|
+
}, { blank: r, push: o, join: i } = new G({ indent: s.indent });
|
|
924
922
|
switch (e.mimeType) {
|
|
925
923
|
case "application/json":
|
|
926
924
|
o(
|
|
@@ -934,7 +932,7 @@ var _o = {
|
|
|
934
932
|
break;
|
|
935
933
|
if (o("const data = new FormData();"), e.params.forEach((l) => {
|
|
936
934
|
o(`data.append('${l.name}', '${l.value || l.fileName || ""}');`);
|
|
937
|
-
}), et(n, "content-type") &&
|
|
935
|
+
}), et(n, "content-type") && ve(n, "content-type")?.includes("boundary")) {
|
|
938
936
|
const l = fe(n, "content-type");
|
|
939
937
|
l && delete n[l];
|
|
940
938
|
}
|
|
@@ -944,22 +942,22 @@ var _o = {
|
|
|
944
942
|
o(`const data = ${e.text ? `'${e.text}'` : "null"};`), r();
|
|
945
943
|
}
|
|
946
944
|
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) => {
|
|
947
|
-
o(`xhr.setRequestHeader('${l}', '${
|
|
945
|
+
o(`xhr.setRequestHeader('${l}', '${_e(n[l])}');`);
|
|
948
946
|
}), r(), o("xhr.send(data);"), i();
|
|
949
947
|
}
|
|
950
|
-
},
|
|
948
|
+
}, Yo = {
|
|
951
949
|
info: {
|
|
952
950
|
key: "javascript",
|
|
953
951
|
title: "JavaScript",
|
|
954
952
|
default: "xhr"
|
|
955
953
|
},
|
|
956
954
|
clientsById: {
|
|
957
|
-
xhr:
|
|
958
|
-
axios:
|
|
959
|
-
fetch:
|
|
960
|
-
jquery:
|
|
955
|
+
xhr: Ko,
|
|
956
|
+
axios: Go,
|
|
957
|
+
fetch: Do,
|
|
958
|
+
jquery: Qo
|
|
961
959
|
}
|
|
962
|
-
},
|
|
960
|
+
}, Xo = {
|
|
963
961
|
info: {
|
|
964
962
|
key: "native",
|
|
965
963
|
title: "Native JSON",
|
|
@@ -993,16 +991,16 @@ var _o = {
|
|
|
993
991
|
}
|
|
994
992
|
return typeof a > "u" || a === "" ? "No JSON body" : JSON.stringify(a, null, t.indent);
|
|
995
993
|
}
|
|
996
|
-
},
|
|
994
|
+
}, Zo = {
|
|
997
995
|
info: {
|
|
998
996
|
key: "json",
|
|
999
997
|
title: "JSON",
|
|
1000
998
|
default: "native"
|
|
1001
999
|
},
|
|
1002
1000
|
clientsById: {
|
|
1003
|
-
native:
|
|
1001
|
+
native: Xo
|
|
1004
1002
|
}
|
|
1005
|
-
},
|
|
1003
|
+
}, ei = {
|
|
1006
1004
|
info: {
|
|
1007
1005
|
key: "okhttp",
|
|
1008
1006
|
title: "OkHttp",
|
|
@@ -1014,21 +1012,21 @@ var _o = {
|
|
|
1014
1012
|
const s = {
|
|
1015
1013
|
indent: " ",
|
|
1016
1014
|
...c
|
|
1017
|
-
}, { blank: r, join: o, push: i } = new
|
|
1015
|
+
}, { blank: r, join: o, push: i } = new G({ indent: s.indent }), l = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"], d = ["POST", "PUT", "DELETE", "PATCH"];
|
|
1018
1016
|
return i("val client = OkHttpClient()"), r(), e.text && (e.boundary ? i(`val mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}")`) : i(`val mediaType = MediaType.parse("${e.mimeType}")`), i(`val body = RequestBody.create(mediaType, ${JSON.stringify(e.text)})`)), i("val request = Request.Builder()"), i(`.url("${n}")`, 1), l.includes(t.toUpperCase()) ? d.includes(t.toUpperCase()) ? e.text ? i(`.${t.toLowerCase()}(body)`, 1) : i(`.${t.toLowerCase()}(null)`, 1) : i(`.${t.toLowerCase()}()`, 1) : e.text ? i(`.method("${t.toUpperCase()}", body)`, 1) : i(`.method("${t.toUpperCase()}", null)`, 1), Object.keys(a).forEach((y) => {
|
|
1019
1017
|
i(`.addHeader("${y}", "${le(a[y])}")`, 1);
|
|
1020
1018
|
}), i(".build()", 1), r(), i("val response = client.newCall(request).execute()"), o();
|
|
1021
1019
|
}
|
|
1022
|
-
},
|
|
1020
|
+
}, ti = {
|
|
1023
1021
|
info: {
|
|
1024
1022
|
key: "kotlin",
|
|
1025
1023
|
title: "Kotlin",
|
|
1026
1024
|
default: "okhttp"
|
|
1027
1025
|
},
|
|
1028
1026
|
clientsById: {
|
|
1029
|
-
okhttp:
|
|
1027
|
+
okhttp: ei
|
|
1030
1028
|
}
|
|
1031
|
-
},
|
|
1029
|
+
}, ri = {
|
|
1032
1030
|
info: {
|
|
1033
1031
|
key: "axios",
|
|
1034
1032
|
title: "Axios",
|
|
@@ -1041,7 +1039,7 @@ var _o = {
|
|
|
1041
1039
|
const s = {
|
|
1042
1040
|
indent: " ",
|
|
1043
1041
|
...c
|
|
1044
|
-
}, { blank: r, join: o, push: i, addPostProcessor: l } = new
|
|
1042
|
+
}, { blank: r, join: o, push: i, addPostProcessor: l } = new G({ indent: s.indent });
|
|
1045
1043
|
i("const axios = require('axios');");
|
|
1046
1044
|
const d = {
|
|
1047
1045
|
method: e,
|
|
@@ -1062,7 +1060,7 @@ var _o = {
|
|
|
1062
1060
|
const y = ue(d, { indent: " ", inlineCharacterLimit: 80 });
|
|
1063
1061
|
return i(`const options = ${y};`), r(), i("axios"), i(".request(options)", 1), i(".then(function (response) {", 1), i("console.log(response.data);", 2), i("})", 1), i(".catch(function (error) {", 1), i("console.error(error);", 2), i("});", 1), o();
|
|
1064
1062
|
}
|
|
1065
|
-
},
|
|
1063
|
+
}, ni = {
|
|
1066
1064
|
info: {
|
|
1067
1065
|
key: "fetch",
|
|
1068
1066
|
title: "Fetch",
|
|
@@ -1077,7 +1075,7 @@ var _o = {
|
|
|
1077
1075
|
...s
|
|
1078
1076
|
};
|
|
1079
1077
|
let o = !1;
|
|
1080
|
-
const { blank: i, push: l, join: d, unshift: y } = new
|
|
1078
|
+
const { blank: i, push: l, join: d, unshift: y } = new G({ indent: r.indent });
|
|
1081
1079
|
l("const fetch = require('node-fetch');");
|
|
1082
1080
|
const f = n, h = {
|
|
1083
1081
|
method: e
|
|
@@ -1094,8 +1092,8 @@ var _o = {
|
|
|
1094
1092
|
case "multipart/form-data":
|
|
1095
1093
|
if (!t.params)
|
|
1096
1094
|
break;
|
|
1097
|
-
const
|
|
1098
|
-
|
|
1095
|
+
const $ = fe(a, "content-type");
|
|
1096
|
+
$ && delete a[$], y("const FormData = require('form-data');"), l("const formData = new FormData();"), i(), t.params.forEach((u) => {
|
|
1099
1097
|
if (!u.fileName && !u.fileName && !u.contentType) {
|
|
1100
1098
|
l(`formData.append('${u.name}', '${u.value}');`);
|
|
1101
1099
|
return;
|
|
@@ -1107,21 +1105,21 @@ var _o = {
|
|
|
1107
1105
|
t.text && (h.body = t.text);
|
|
1108
1106
|
}
|
|
1109
1107
|
if (c.length) {
|
|
1110
|
-
const
|
|
1111
|
-
h.headers || (h.headers = {}), h.headers.cookie =
|
|
1108
|
+
const $ = c.map(({ name: u, value: m }) => `${encodeURIComponent(u)}=${encodeURIComponent(m)}`).join("; ");
|
|
1109
|
+
h.headers || (h.headers = {}), h.headers.cookie = $;
|
|
1112
1110
|
}
|
|
1113
1111
|
i(), l(`const url = '${f}';`), h.headers && !Object.keys(h.headers).length && delete h.headers;
|
|
1114
|
-
const
|
|
1112
|
+
const x = ue(h, {
|
|
1115
1113
|
indent: " ",
|
|
1116
1114
|
inlineCharacterLimit: 80,
|
|
1117
1115
|
// The Fetch API body only accepts string parameters, but stringified JSON can be difficult to
|
|
1118
1116
|
// read, so we keep the object as a literal and use this transform function to wrap the literal
|
|
1119
1117
|
// in a `JSON.stringify` call.
|
|
1120
|
-
transform: (
|
|
1118
|
+
transform: ($, u, m) => u === "body" && t.mimeType === "application/json" ? `JSON.stringify(${m})` : m
|
|
1121
1119
|
});
|
|
1122
|
-
return l(`const options = ${
|
|
1120
|
+
return l(`const options = ${x};`), i(), o && y("const fs = require('fs');"), t.params && t.mimeType === "multipart/form-data" && (l("options.body = formData;"), i()), l("fetch(url, options)"), l(".then(res => res.json())", 1), l(".then(json => console.log(json))", 1), l(".catch(err => console.error('error:' + err));", 1), d().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
|
|
1123
1121
|
}
|
|
1124
|
-
},
|
|
1122
|
+
}, ai = {
|
|
1125
1123
|
info: {
|
|
1126
1124
|
key: "native",
|
|
1127
1125
|
title: "HTTP",
|
|
@@ -1130,7 +1128,7 @@ var _o = {
|
|
|
1130
1128
|
extname: ".cjs"
|
|
1131
1129
|
},
|
|
1132
1130
|
convert: ({ uriObj: e, method: n, allHeaders: t, postData: a }, c = {}) => {
|
|
1133
|
-
const { indent: s = " " } = c, { blank: r, join: o, push: i, unshift: l } = new
|
|
1131
|
+
const { indent: s = " " } = c, { blank: r, join: o, push: i, unshift: l } = new G({ indent: s }), d = {
|
|
1134
1132
|
method: n,
|
|
1135
1133
|
hostname: e.hostname,
|
|
1136
1134
|
port: e.port,
|
|
@@ -1159,7 +1157,7 @@ var _o = {
|
|
|
1159
1157
|
}
|
|
1160
1158
|
return i("req.end();"), o();
|
|
1161
1159
|
}
|
|
1162
|
-
},
|
|
1160
|
+
}, oi = {
|
|
1163
1161
|
info: {
|
|
1164
1162
|
key: "request",
|
|
1165
1163
|
title: "Request",
|
|
@@ -1174,45 +1172,45 @@ var _o = {
|
|
|
1174
1172
|
...r
|
|
1175
1173
|
};
|
|
1176
1174
|
let i = !1;
|
|
1177
|
-
const { push: l, blank: d, join: y, unshift: f, addPostProcessor: h } = new
|
|
1175
|
+
const { push: l, blank: d, join: y, unshift: f, addPostProcessor: h } = new G({ indent: o.indent });
|
|
1178
1176
|
l("const request = require('request');"), d();
|
|
1179
|
-
const
|
|
1177
|
+
const x = {
|
|
1180
1178
|
method: e,
|
|
1181
1179
|
url: t
|
|
1182
1180
|
};
|
|
1183
|
-
switch (Object.keys(c).length && (
|
|
1181
|
+
switch (Object.keys(c).length && (x.headers = c), a.mimeType) {
|
|
1184
1182
|
case "application/x-www-form-urlencoded":
|
|
1185
|
-
|
|
1183
|
+
x.form = a.paramsObj;
|
|
1186
1184
|
break;
|
|
1187
1185
|
case "application/json":
|
|
1188
|
-
a.jsonObj && (
|
|
1186
|
+
a.jsonObj && (x.body = a.jsonObj, x.json = !0);
|
|
1189
1187
|
break;
|
|
1190
1188
|
case "multipart/form-data":
|
|
1191
1189
|
if (!a.params)
|
|
1192
1190
|
break;
|
|
1193
|
-
|
|
1194
|
-
if (
|
|
1195
|
-
|
|
1191
|
+
x.formData = {}, a.params.forEach(($) => {
|
|
1192
|
+
if (!$.fileName && !$.fileName && !$.contentType) {
|
|
1193
|
+
x.formData[$.name] = $.value;
|
|
1196
1194
|
return;
|
|
1197
1195
|
}
|
|
1198
1196
|
let u = {};
|
|
1199
|
-
|
|
1200
|
-
value: `fs.createReadStream(${
|
|
1197
|
+
$.fileName ? (i = !0, u = {
|
|
1198
|
+
value: `fs.createReadStream(${$.fileName})`,
|
|
1201
1199
|
options: {
|
|
1202
|
-
filename:
|
|
1203
|
-
contentType:
|
|
1200
|
+
filename: $.fileName,
|
|
1201
|
+
contentType: $.contentType ? $.contentType : null
|
|
1204
1202
|
}
|
|
1205
|
-
}) :
|
|
1206
|
-
}), h((
|
|
1203
|
+
}) : $.value && (u.value = $.value), x.formData[$.name] = u;
|
|
1204
|
+
}), h(($) => $.replace(/'fs\.createReadStream\((.*)\)'/, "fs.createReadStream('$1')"));
|
|
1207
1205
|
break;
|
|
1208
1206
|
default:
|
|
1209
|
-
a.text && (
|
|
1207
|
+
a.text && (x.body = a.text);
|
|
1210
1208
|
}
|
|
1211
|
-
return s.length && (
|
|
1212
|
-
l(`jar.setCookie(request.cookie('${encodeURIComponent(
|
|
1213
|
-
}), d(), h((
|
|
1209
|
+
return s.length && (x.jar = "JAR", l("const jar = request.jar();"), s.forEach(({ name: $, value: u }) => {
|
|
1210
|
+
l(`jar.setCookie(request.cookie('${encodeURIComponent($)}=${encodeURIComponent(u)}'), '${n}');`);
|
|
1211
|
+
}), d(), h(($) => $.replace(/'JAR'/, "jar"))), i && f("const fs = require('fs');"), l(`const options = ${ue(x, { indent: " ", inlineCharacterLimit: 80 })};`), d(), l("request(options, function (error, response, body) {"), l("if (error) throw new Error(error);", 1), d(), l("console.log(body);", 1), l("});"), y();
|
|
1214
1212
|
}
|
|
1215
|
-
},
|
|
1213
|
+
}, ii = {
|
|
1216
1214
|
info: {
|
|
1217
1215
|
key: "unirest",
|
|
1218
1216
|
title: "Unirest",
|
|
@@ -1226,11 +1224,11 @@ var _o = {
|
|
|
1226
1224
|
...r
|
|
1227
1225
|
};
|
|
1228
1226
|
let i = !1;
|
|
1229
|
-
const { addPostProcessor: l, blank: d, join: y, push: f, unshift: h } = new
|
|
1227
|
+
const { addPostProcessor: l, blank: d, join: y, push: f, unshift: h } = new G({
|
|
1230
1228
|
indent: o.indent
|
|
1231
1229
|
});
|
|
1232
|
-
switch (f("const unirest = require('unirest');"), d(), f(`const req = unirest('${e}', '${n}');`), d(), t.length && (f("const CookieJar = unirest.jar();"), t.forEach((
|
|
1233
|
-
f(`CookieJar.add('${encodeURIComponent(
|
|
1230
|
+
switch (f("const unirest = require('unirest');"), d(), f(`const req = unirest('${e}', '${n}');`), d(), t.length && (f("const CookieJar = unirest.jar();"), t.forEach((x) => {
|
|
1231
|
+
f(`CookieJar.add('${encodeURIComponent(x.name)}=${encodeURIComponent(x.value)}', '${n}');`);
|
|
1234
1232
|
}), f("req.jar(CookieJar);"), d()), Object.keys(a).length && (f(`req.query(${ue(a, { indent: o.indent })});`), d()), Object.keys(s).length && (f(`req.headers(${ue(s, { indent: o.indent })});`), d()), c.mimeType) {
|
|
1235
1233
|
case "application/x-www-form-urlencoded":
|
|
1236
1234
|
c.paramsObj && (f(`req.form(${ue(c.paramsObj, { indent: o.indent })});`), d());
|
|
@@ -1241,11 +1239,11 @@ var _o = {
|
|
|
1241
1239
|
case "multipart/form-data": {
|
|
1242
1240
|
if (!c.params)
|
|
1243
1241
|
break;
|
|
1244
|
-
const
|
|
1245
|
-
c.params.forEach((
|
|
1242
|
+
const x = [];
|
|
1243
|
+
c.params.forEach(($) => {
|
|
1246
1244
|
const u = {};
|
|
1247
|
-
|
|
1248
|
-
}), f(`req.multipart(${ue(
|
|
1245
|
+
$.fileName && !$.value ? (i = !0, u.body = `fs.createReadStream('${$.fileName}')`, l((m) => m.replace(/'fs\.createReadStream\(\\'(.+)\\'\)'/, "fs.createReadStream('$1')"))) : $.value && (u.body = $.value), u.body && ($.contentType && (u["content-type"] = $.contentType), x.push(u));
|
|
1246
|
+
}), f(`req.multipart(${ue(x, { indent: o.indent })});`), d();
|
|
1249
1247
|
break;
|
|
1250
1248
|
}
|
|
1251
1249
|
default:
|
|
@@ -1253,7 +1251,7 @@ var _o = {
|
|
|
1253
1251
|
}
|
|
1254
1252
|
return i && h("const fs = require('fs');"), f("req.end(function (res) {"), f("if (res.error) throw new Error(res.error);", 1), d(), f("console.log(res.body);", 1), f("});"), y();
|
|
1255
1253
|
}
|
|
1256
|
-
},
|
|
1254
|
+
}, si = {
|
|
1257
1255
|
info: {
|
|
1258
1256
|
key: "node",
|
|
1259
1257
|
title: "Node.js",
|
|
@@ -1261,27 +1259,27 @@ var _o = {
|
|
|
1261
1259
|
cli: "node %s"
|
|
1262
1260
|
},
|
|
1263
1261
|
clientsById: {
|
|
1264
|
-
native:
|
|
1265
|
-
request:
|
|
1266
|
-
unirest:
|
|
1267
|
-
axios:
|
|
1268
|
-
fetch:
|
|
1262
|
+
native: ai,
|
|
1263
|
+
request: oi,
|
|
1264
|
+
unirest: ii,
|
|
1265
|
+
axios: ri,
|
|
1266
|
+
fetch: ni
|
|
1269
1267
|
}
|
|
1270
1268
|
}, mt = (e, n, t, a) => {
|
|
1271
|
-
const c = `${e} *${n} = `, s =
|
|
1269
|
+
const c = `${e} *${n} = `, s = mr(t, a ? c.length : void 0);
|
|
1272
1270
|
return `${c}${s};`;
|
|
1273
|
-
},
|
|
1271
|
+
}, mr = (e, n) => {
|
|
1274
1272
|
const t = n === void 0 ? ", " : `,
|
|
1275
1273
|
${" ".repeat(n)}`;
|
|
1276
1274
|
switch (Object.prototype.toString.call(e)) {
|
|
1277
1275
|
case "[object Number]":
|
|
1278
1276
|
return `@${e}`;
|
|
1279
1277
|
case "[object Array]":
|
|
1280
|
-
return `@[ ${e.map((c) =>
|
|
1278
|
+
return `@[ ${e.map((c) => mr(c)).join(t)} ]`;
|
|
1281
1279
|
case "[object Object]": {
|
|
1282
1280
|
const a = [];
|
|
1283
1281
|
return Object.keys(e).forEach((c) => {
|
|
1284
|
-
a.push(`@"${c}": ${
|
|
1282
|
+
a.push(`@"${c}": ${mr(e[c])}`);
|
|
1285
1283
|
}), `@{ ${a.join(t)} }`;
|
|
1286
1284
|
}
|
|
1287
1285
|
case "[object Boolean]":
|
|
@@ -1289,7 +1287,7 @@ var _o = {
|
|
|
1289
1287
|
default:
|
|
1290
1288
|
return e == null ? "" : `@"${e.toString().replace(/"/g, '\\"')}"`;
|
|
1291
1289
|
}
|
|
1292
|
-
},
|
|
1290
|
+
}, li = {
|
|
1293
1291
|
info: {
|
|
1294
1292
|
key: "nsurlsession",
|
|
1295
1293
|
title: "NSURLSession",
|
|
@@ -1303,7 +1301,7 @@ var _o = {
|
|
|
1303
1301
|
pretty: !0,
|
|
1304
1302
|
timeout: 10,
|
|
1305
1303
|
...c
|
|
1306
|
-
}, { push: r, join: o, blank: i } = new
|
|
1304
|
+
}, { push: r, join: o, blank: i } = new G({ indent: s.indent }), l = {
|
|
1307
1305
|
hasHeaders: !1,
|
|
1308
1306
|
hasBody: !1
|
|
1309
1307
|
};
|
|
@@ -1345,16 +1343,16 @@ var _o = {
|
|
|
1345
1343
|
2
|
|
1346
1344
|
), r(' NSLog(@"%@", httpResponse);', 2), r(" }", 1), r(" }];"), r("[dataTask resume];"), o();
|
|
1347
1345
|
}
|
|
1348
|
-
},
|
|
1346
|
+
}, ci = {
|
|
1349
1347
|
info: {
|
|
1350
1348
|
key: "objc",
|
|
1351
1349
|
title: "Objective-C",
|
|
1352
1350
|
default: "nsurlsession"
|
|
1353
1351
|
},
|
|
1354
1352
|
clientsById: {
|
|
1355
|
-
nsurlsession:
|
|
1353
|
+
nsurlsession: li
|
|
1356
1354
|
}
|
|
1357
|
-
},
|
|
1355
|
+
}, ui = {
|
|
1358
1356
|
info: {
|
|
1359
1357
|
key: "cohttp",
|
|
1360
1358
|
title: "CoHTTP",
|
|
@@ -1367,27 +1365,27 @@ var _o = {
|
|
|
1367
1365
|
const s = {
|
|
1368
1366
|
indent: " ",
|
|
1369
1367
|
...c
|
|
1370
|
-
}, r = ["get", "post", "head", "delete", "patch", "put", "options"], { push: o, blank: i, join: l } = new
|
|
1368
|
+
}, r = ["get", "post", "head", "delete", "patch", "put", "options"], { push: o, blank: i, join: l } = new G({ indent: s.indent });
|
|
1371
1369
|
o("open Cohttp_lwt_unix"), o("open Cohttp"), o("open Lwt"), i(), o(`let uri = Uri.of_string "${e}" in`);
|
|
1372
1370
|
const d = Object.keys(n);
|
|
1373
1371
|
d.length === 1 ? o(
|
|
1374
1372
|
`let headers = Header.add (Header.init ()) "${d[0]}" "${le(
|
|
1375
1373
|
n[d[0]]
|
|
1376
1374
|
)}" in`
|
|
1377
|
-
) : d.length > 1 && (o("let headers = Header.add_list (Header.init ()) ["), d.forEach((
|
|
1378
|
-
o(`("${
|
|
1375
|
+
) : d.length > 1 && (o("let headers = Header.add_list (Header.init ()) ["), d.forEach((x) => {
|
|
1376
|
+
o(`("${x}", "${le(n[x])}");`, 1);
|
|
1379
1377
|
}), o("] in")), t.text && o(`let body = Cohttp_lwt_body.of_string ${JSON.stringify(t.text)} in`), i();
|
|
1380
1378
|
const y = d.length ? "~headers " : "", f = t.text ? "~body " : "", h = r.includes(a.toLowerCase()) ? `\`${a.toUpperCase()}` : `(Code.method_of_string "${a}")`;
|
|
1381
1379
|
return o(`Client.call ${y}${f}${h} uri`), o(">>= fun (res, body_stream) ->"), o("(* Do stuff with the result *)", 1), l();
|
|
1382
1380
|
}
|
|
1383
|
-
},
|
|
1381
|
+
}, fi = {
|
|
1384
1382
|
info: {
|
|
1385
1383
|
key: "ocaml",
|
|
1386
1384
|
title: "OCaml",
|
|
1387
1385
|
default: "cohttp"
|
|
1388
1386
|
},
|
|
1389
1387
|
clientsById: {
|
|
1390
|
-
cohttp:
|
|
1388
|
+
cohttp: ui
|
|
1391
1389
|
}
|
|
1392
1390
|
}, te = (e, n, t) => {
|
|
1393
1391
|
switch (t = t || "", n = n || "", Object.prototype.toString.call(e)) {
|
|
@@ -1398,7 +1396,7 @@ var _o = {
|
|
|
1398
1396
|
case "[object Undefined]":
|
|
1399
1397
|
return "null";
|
|
1400
1398
|
case "[object String]":
|
|
1401
|
-
return `'${
|
|
1399
|
+
return `'${Fe(e, { delimiter: "'", escapeNewlines: !1 })}'`;
|
|
1402
1400
|
case "[object Number]":
|
|
1403
1401
|
return e.toString();
|
|
1404
1402
|
case "[object Array]": {
|
|
@@ -1448,7 +1446,7 @@ ${t}]`;
|
|
|
1448
1446
|
"UNLOCK",
|
|
1449
1447
|
"UPDATE",
|
|
1450
1448
|
"VERSION_CONTROL"
|
|
1451
|
-
],
|
|
1449
|
+
], pi = {
|
|
1452
1450
|
info: {
|
|
1453
1451
|
key: "curl",
|
|
1454
1452
|
title: "cURL",
|
|
@@ -1464,9 +1462,9 @@ ${t}]`;
|
|
|
1464
1462
|
namedErrors: y = !1,
|
|
1465
1463
|
noTags: f = !1,
|
|
1466
1464
|
shortTags: h = !1,
|
|
1467
|
-
timeout:
|
|
1468
|
-
} = o, { push:
|
|
1469
|
-
f || (
|
|
1465
|
+
timeout: x = 30
|
|
1466
|
+
} = o, { push: $, blank: u, join: m } = new G({ indent: l });
|
|
1467
|
+
f || ($(h ? "<?" : "<?php"), u()), $("$curl = curl_init();"), u();
|
|
1470
1468
|
const v = [
|
|
1471
1469
|
{
|
|
1472
1470
|
escape: !0,
|
|
@@ -1496,7 +1494,7 @@ ${t}]`;
|
|
|
1496
1494
|
{
|
|
1497
1495
|
escape: !1,
|
|
1498
1496
|
name: "CURLOPT_TIMEOUT",
|
|
1499
|
-
value:
|
|
1497
|
+
value: x
|
|
1500
1498
|
},
|
|
1501
1499
|
{
|
|
1502
1500
|
escape: !1,
|
|
@@ -1514,8 +1512,8 @@ ${t}]`;
|
|
|
1514
1512
|
value: n ? n.jsonObj ? `json_encode(${te(n.jsonObj, l.repeat(2), l)})` : n.text : void 0
|
|
1515
1513
|
}
|
|
1516
1514
|
];
|
|
1517
|
-
|
|
1518
|
-
const S = new
|
|
1515
|
+
$("curl_setopt_array($curl, [");
|
|
1516
|
+
const S = new G({ indent: l, join: `
|
|
1519
1517
|
${l}` });
|
|
1520
1518
|
v.forEach(({ value: O, name: g, escape: R }) => {
|
|
1521
1519
|
O != null && S.push(`${g} => ${R ? JSON.stringify(O) : O},`);
|
|
@@ -1524,9 +1522,9 @@ ${l}` });
|
|
|
1524
1522
|
P.length && S.push(`CURLOPT_COOKIE => "${P.join("; ")}",`);
|
|
1525
1523
|
const p = Object.keys(r).sort().map((O) => `"${O}: ${le(r[O])}"`);
|
|
1526
1524
|
return p.length && (S.push("CURLOPT_HTTPHEADER => ["), S.push(p.join(`,
|
|
1527
|
-
${l}${l}`), 1), S.push("],")),
|
|
1525
|
+
${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = curl_exec($curl);"), $("$err = curl_error($curl);"), u(), $("curl_close($curl);"), u(), $("if ($err) {"), $(y ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), $("} else {"), $("echo $response;", 1), $("}"), !f && i && (u(), $("?>")), m();
|
|
1528
1526
|
}
|
|
1529
|
-
},
|
|
1527
|
+
}, di = {
|
|
1530
1528
|
info: {
|
|
1531
1529
|
key: "guzzle",
|
|
1532
1530
|
title: "Guzzle",
|
|
@@ -1542,13 +1540,13 @@ ${l}${l}`), 1), S.push("],")), x(S.join(), 1), x("]);"), u(), x("$response = cur
|
|
|
1542
1540
|
noTags: !1,
|
|
1543
1541
|
shortTags: !1,
|
|
1544
1542
|
...s
|
|
1545
|
-
}, { push: o, blank: i, join: l } = new
|
|
1543
|
+
}, { push: o, blank: i, join: l } = new G({ indent: r.indent }), { code: d, push: y, join: f } = new G({ indent: r.indent });
|
|
1546
1544
|
switch (r.noTags || o(r.shortTags ? "<?" : "<?php"), o("require_once('vendor/autoload.php');"), i(), e.mimeType) {
|
|
1547
1545
|
case "application/x-www-form-urlencoded":
|
|
1548
1546
|
y(`'form_params' => ${te(e.paramsObj, r.indent + r.indent, r.indent)},`, 1);
|
|
1549
1547
|
break;
|
|
1550
1548
|
case "multipart/form-data": {
|
|
1551
|
-
const
|
|
1549
|
+
const $ = [];
|
|
1552
1550
|
if (e.params && e.params.forEach((u) => {
|
|
1553
1551
|
if (u.fileName) {
|
|
1554
1552
|
const m = {
|
|
@@ -1556,12 +1554,12 @@ ${l}${l}`), 1), S.push("],")), x(S.join(), 1), x("]);"), u(), x("$response = cur
|
|
|
1556
1554
|
filename: u.fileName,
|
|
1557
1555
|
contents: u.value
|
|
1558
1556
|
};
|
|
1559
|
-
u.contentType && (m.headers = { "Content-Type": u.contentType }),
|
|
1560
|
-
} else u.value &&
|
|
1557
|
+
u.contentType && (m.headers = { "Content-Type": u.contentType }), $.push(m);
|
|
1558
|
+
} else u.value && $.push({
|
|
1561
1559
|
name: u.name,
|
|
1562
1560
|
contents: u.value
|
|
1563
1561
|
});
|
|
1564
|
-
}),
|
|
1562
|
+
}), $.length && (y(`'multipart' => ${te($, r.indent + r.indent, r.indent)}`, 1), et(c, "content-type") && ve(c, "content-type")?.indexOf("boundary"))) {
|
|
1565
1563
|
const u = fe(c, "content-type");
|
|
1566
1564
|
u && delete c[u];
|
|
1567
1565
|
}
|
|
@@ -1570,13 +1568,13 @@ ${l}${l}`), 1), S.push("],")), x(S.join(), 1), x("]);"), u(), x("$response = cur
|
|
|
1570
1568
|
default:
|
|
1571
1569
|
e.text && y(`'body' => ${te(e.text)},`, 1);
|
|
1572
1570
|
}
|
|
1573
|
-
const h = Object.keys(c).sort().map(function(
|
|
1574
|
-
return `${r.indent}${r.indent}'${
|
|
1575
|
-
}),
|
|
1576
|
-
return
|
|
1571
|
+
const h = Object.keys(c).sort().map(function($) {
|
|
1572
|
+
return `${r.indent}${r.indent}'${$}' => '${_e(c[$])}',`;
|
|
1573
|
+
}), x = a.map(($) => `${encodeURIComponent($.name)}=${encodeURIComponent($.value)}`).join("; ");
|
|
1574
|
+
return x.length && h.push(`${r.indent}${r.indent}'cookie' => '${_e(x)}',`), h.length && (y("'headers' => [", 1), y(h.join(`
|
|
1577
1575
|
`)), 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();
|
|
1578
1576
|
}
|
|
1579
|
-
},
|
|
1577
|
+
}, hi = {
|
|
1580
1578
|
info: {
|
|
1581
1579
|
key: "http1",
|
|
1582
1580
|
title: "HTTP v1",
|
|
@@ -1585,7 +1583,7 @@ ${l}${l}`), 1), S.push("],")), x(S.join(), 1), x("]);"), u(), x("$response = cur
|
|
|
1585
1583
|
extname: ".php"
|
|
1586
1584
|
},
|
|
1587
1585
|
convert: ({ method: e, url: n, postData: t, queryObj: a, headersObj: c, cookiesObj: s }, r = {}) => {
|
|
1588
|
-
const { closingTag: o = !1, indent: i = " ", noTags: l = !1, shortTags: d = !1 } = r, { push: y, blank: f, join: h } = new
|
|
1586
|
+
const { closingTag: o = !1, indent: i = " ", noTags: l = !1, shortTags: d = !1 } = r, { push: y, blank: f, join: h } = new G({ indent: i });
|
|
1589
1587
|
switch (l || (y(d ? "<?" : "<?php"), f()), Yr.includes(e.toUpperCase()) || y(`HttpRequest::methodRegister('${e}');`), y("$request = new HttpRequest();"), y(`$request->setUrl(${te(n)});`), Yr.includes(e.toUpperCase()) ? y(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`) : y(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`), f(), Object.keys(a).length && (y(`$request->setQueryData(${te(a, i)});`), f()), Object.keys(c).length && (y(`$request->setHeaders(${te(c, i)});`), f()), Object.keys(s).length && (y(`$request->setCookies(${te(s, i)});`), f()), t.mimeType) {
|
|
1590
1588
|
case "application/x-www-form-urlencoded":
|
|
1591
1589
|
y(`$request->setContentType(${te(t.mimeType)});`), y(`$request->setPostFields(${te(t.paramsObj, i)});`), f();
|
|
@@ -1598,7 +1596,7 @@ ${l}${l}`), 1), S.push("],")), x(S.join(), 1), x("]);"), u(), x("$response = cur
|
|
|
1598
1596
|
}
|
|
1599
1597
|
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();
|
|
1600
1598
|
}
|
|
1601
|
-
},
|
|
1599
|
+
}, yi = {
|
|
1602
1600
|
info: {
|
|
1603
1601
|
key: "http2",
|
|
1604
1602
|
title: "HTTP v2",
|
|
@@ -1607,19 +1605,19 @@ ${l}${l}`), 1), S.push("],")), x(S.join(), 1), x("]);"), u(), x("$response = cur
|
|
|
1607
1605
|
extname: ".php"
|
|
1608
1606
|
},
|
|
1609
1607
|
convert: ({ postData: e, headersObj: n, method: t, queryObj: a, cookiesObj: c, url: s }, r = {}) => {
|
|
1610
|
-
const { closingTag: o = !1, indent: i = " ", noTags: l = !1, shortTags: d = !1 } = r, { push: y, blank: f, join: h } = new
|
|
1611
|
-
let
|
|
1608
|
+
const { closingTag: o = !1, indent: i = " ", noTags: l = !1, shortTags: d = !1 } = r, { push: y, blank: f, join: h } = new G({ indent: i });
|
|
1609
|
+
let x = !1;
|
|
1612
1610
|
switch (l || (y(d ? "<?" : "<?php"), f()), y("$client = new http\\Client;"), y("$request = new http\\Client\\Request;"), f(), e.mimeType) {
|
|
1613
1611
|
case "application/x-www-form-urlencoded":
|
|
1614
|
-
y("$body = new http\\Message\\Body;"), y(`$body->append(new http\\QueryString(${te(e.paramsObj, i)}));`), f(),
|
|
1612
|
+
y("$body = new http\\Message\\Body;"), y(`$body->append(new http\\QueryString(${te(e.paramsObj, i)}));`), f(), x = !0;
|
|
1615
1613
|
break;
|
|
1616
1614
|
case "multipart/form-data": {
|
|
1617
1615
|
if (!e.params)
|
|
1618
1616
|
break;
|
|
1619
|
-
const
|
|
1617
|
+
const $ = [], u = {};
|
|
1620
1618
|
e.params.forEach(({ name: S, fileName: P, value: p, contentType: O }) => {
|
|
1621
1619
|
if (P) {
|
|
1622
|
-
|
|
1620
|
+
$.push({
|
|
1623
1621
|
name: S,
|
|
1624
1622
|
type: O,
|
|
1625
1623
|
file: P,
|
|
@@ -1629,23 +1627,23 @@ ${l}${l}`), 1), S.push("],")), x(S.join(), 1), x("]);"), u(), x("$response = cur
|
|
|
1629
1627
|
}
|
|
1630
1628
|
p && (u[S] = p);
|
|
1631
1629
|
});
|
|
1632
|
-
const m = Object.keys(u).length ? te(u, i) : "null", v =
|
|
1633
|
-
if (y("$body = new http\\Message\\Body;"), y(`$body->addForm(${m}, ${v});`), et(n, "content-type") &&
|
|
1630
|
+
const m = Object.keys(u).length ? te(u, i) : "null", v = $.length ? te($, i) : "null";
|
|
1631
|
+
if (y("$body = new http\\Message\\Body;"), y(`$body->addForm(${m}, ${v});`), et(n, "content-type") && ve(n, "content-type")?.indexOf("boundary")) {
|
|
1634
1632
|
const S = fe(n, "content-type");
|
|
1635
1633
|
S && delete n[S];
|
|
1636
1634
|
}
|
|
1637
|
-
f(),
|
|
1635
|
+
f(), x = !0;
|
|
1638
1636
|
break;
|
|
1639
1637
|
}
|
|
1640
1638
|
case "application/json":
|
|
1641
|
-
y("$body = new http\\Message\\Body;"), y(`$body->append(json_encode(${te(e.jsonObj, i)}));`),
|
|
1639
|
+
y("$body = new http\\Message\\Body;"), y(`$body->append(json_encode(${te(e.jsonObj, i)}));`), x = !0;
|
|
1642
1640
|
break;
|
|
1643
1641
|
default:
|
|
1644
|
-
e.text && (y("$body = new http\\Message\\Body;"), y(`$body->append(${te(e.text)});`), f(),
|
|
1642
|
+
e.text && (y("$body = new http\\Message\\Body;"), y(`$body->append(${te(e.text)});`), f(), x = !0);
|
|
1645
1643
|
}
|
|
1646
|
-
return y(`$request->setRequestUrl(${te(s)});`), y(`$request->setRequestMethod(${te(t)});`),
|
|
1644
|
+
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();
|
|
1647
1645
|
}
|
|
1648
|
-
},
|
|
1646
|
+
}, mi = {
|
|
1649
1647
|
info: {
|
|
1650
1648
|
key: "php",
|
|
1651
1649
|
title: "PHP",
|
|
@@ -1653,24 +1651,24 @@ ${l}${l}`), 1), S.push("],")), x(S.join(), 1), x("]);"), u(), x("$response = cur
|
|
|
1653
1651
|
cli: "php %s"
|
|
1654
1652
|
},
|
|
1655
1653
|
clientsById: {
|
|
1656
|
-
curl:
|
|
1657
|
-
guzzle:
|
|
1658
|
-
http1:
|
|
1659
|
-
http2:
|
|
1654
|
+
curl: pi,
|
|
1655
|
+
guzzle: di,
|
|
1656
|
+
http1: hi,
|
|
1657
|
+
http2: yi
|
|
1660
1658
|
}
|
|
1661
|
-
},
|
|
1662
|
-
const { push: l, join: d } = new
|
|
1659
|
+
}, ga = (e) => ({ method: t, headersObj: a, cookies: c, uriObj: s, fullUrl: r, postData: o, allHeaders: i }) => {
|
|
1660
|
+
const { push: l, join: d } = new G();
|
|
1663
1661
|
if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(t.toUpperCase()))
|
|
1664
1662
|
return "Method not supported";
|
|
1665
1663
|
const f = [], h = Object.keys(a);
|
|
1666
|
-
return h.length && (l("$headers=@{}"), h.forEach((
|
|
1667
|
-
|
|
1668
|
-
}), f.push("-Headers $headers")), c.length && (l("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"), c.forEach((
|
|
1669
|
-
l("$cookie = New-Object System.Net.Cookie"), l(`$cookie.Name = '${
|
|
1664
|
+
return h.length && (l("$headers=@{}"), h.forEach((x) => {
|
|
1665
|
+
x !== "connection" && l(`$headers.Add("${x}", "${Fe(a[x], { escapeChar: "`" })}")`);
|
|
1666
|
+
}), f.push("-Headers $headers")), c.length && (l("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"), c.forEach((x) => {
|
|
1667
|
+
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)");
|
|
1670
1668
|
}), f.push("-WebSession $session")), o.text && (f.push(
|
|
1671
|
-
`-ContentType '${
|
|
1669
|
+
`-ContentType '${Fe(ve(i, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
|
|
1672
1670
|
), f.push(`-Body '${o.text}'`)), l(`$response = ${e} -Uri '${r}' -Method ${t} ${f.join(" ")}`.trim()), d();
|
|
1673
|
-
},
|
|
1671
|
+
}, gi = {
|
|
1674
1672
|
info: {
|
|
1675
1673
|
key: "restmethod",
|
|
1676
1674
|
title: "Invoke-RestMethod",
|
|
@@ -1678,8 +1676,8 @@ ${l}${l}`), 1), S.push("],")), x(S.join(), 1), x("]);"), u(), x("$response = cur
|
|
|
1678
1676
|
description: "Powershell Invoke-RestMethod client",
|
|
1679
1677
|
extname: ".ps1"
|
|
1680
1678
|
},
|
|
1681
|
-
convert:
|
|
1682
|
-
},
|
|
1679
|
+
convert: ga("Invoke-RestMethod")
|
|
1680
|
+
}, vi = {
|
|
1683
1681
|
info: {
|
|
1684
1682
|
key: "webrequest",
|
|
1685
1683
|
title: "Invoke-WebRequest",
|
|
@@ -1687,16 +1685,16 @@ ${l}${l}`), 1), S.push("],")), x(S.join(), 1), x("]);"), u(), x("$response = cur
|
|
|
1687
1685
|
description: "Powershell Invoke-WebRequest client",
|
|
1688
1686
|
extname: ".ps1"
|
|
1689
1687
|
},
|
|
1690
|
-
convert:
|
|
1691
|
-
},
|
|
1688
|
+
convert: ga("Invoke-WebRequest")
|
|
1689
|
+
}, bi = {
|
|
1692
1690
|
info: {
|
|
1693
1691
|
key: "powershell",
|
|
1694
1692
|
title: "Powershell",
|
|
1695
1693
|
default: "webrequest"
|
|
1696
1694
|
},
|
|
1697
1695
|
clientsById: {
|
|
1698
|
-
webrequest:
|
|
1699
|
-
restmethod:
|
|
1696
|
+
webrequest: vi,
|
|
1697
|
+
restmethod: gi
|
|
1700
1698
|
}
|
|
1701
1699
|
};
|
|
1702
1700
|
function Xr(e, n, t, a, c) {
|
|
@@ -1706,19 +1704,19 @@ ${s}` : ", ", i = e === "object" ? "{" : "[", l = e === "object" ? "}" : "]";
|
|
|
1706
1704
|
${s}${n.join(o)}
|
|
1707
1705
|
${r}${l}` : e === "object" && n.length > 0 ? `${i} ${n.join(o)} ${l}` : `${i}${n.join(o)}${l}`;
|
|
1708
1706
|
}
|
|
1709
|
-
var
|
|
1707
|
+
var Ne = (e, n, t) => {
|
|
1710
1708
|
switch (t = t === void 0 ? 1 : t + 1, Object.prototype.toString.call(e)) {
|
|
1711
1709
|
case "[object Number]":
|
|
1712
1710
|
return e;
|
|
1713
1711
|
case "[object Array]": {
|
|
1714
1712
|
let a = !1;
|
|
1715
|
-
const c = e.map((s) => (Object.prototype.toString.call(s) === "[object Object]" && (a = Object.keys(s).length > 1),
|
|
1713
|
+
const c = e.map((s) => (Object.prototype.toString.call(s) === "[object Object]" && (a = Object.keys(s).length > 1), Ne(s, n, t)));
|
|
1716
1714
|
return Xr("array", c, a, n.indent, t);
|
|
1717
1715
|
}
|
|
1718
1716
|
case "[object Object]": {
|
|
1719
1717
|
const a = [];
|
|
1720
1718
|
for (const c in e)
|
|
1721
|
-
a.push(`"${c}": ${
|
|
1719
|
+
a.push(`"${c}": ${Ne(e[c], n, t)}`);
|
|
1722
1720
|
return Xr("object", a, n.pretty && a.length > 1, n.indent, t);
|
|
1723
1721
|
}
|
|
1724
1722
|
case "[object Null]":
|
|
@@ -1728,7 +1726,7 @@ var ke = (e, n, t) => {
|
|
|
1728
1726
|
default:
|
|
1729
1727
|
return e == null ? "" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
1730
1728
|
}
|
|
1731
|
-
},
|
|
1729
|
+
}, xi = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], $i = {
|
|
1732
1730
|
info: {
|
|
1733
1731
|
key: "requests",
|
|
1734
1732
|
title: "Requests",
|
|
@@ -1742,28 +1740,28 @@ var ke = (e, n, t) => {
|
|
|
1742
1740
|
indent: " ",
|
|
1743
1741
|
pretty: !0,
|
|
1744
1742
|
...c
|
|
1745
|
-
}, { push: r, blank: o, join: i, addPostProcessor: l } = new
|
|
1743
|
+
}, { push: r, blank: o, join: i, addPostProcessor: l } = new G({ indent: s.indent });
|
|
1746
1744
|
r("import requests"), o(), r(`url = "${e}"`), o();
|
|
1747
1745
|
const d = t;
|
|
1748
1746
|
let y = {};
|
|
1749
1747
|
const f = {};
|
|
1750
|
-
let h = !1,
|
|
1748
|
+
let h = !1, x = !1, $ = !1;
|
|
1751
1749
|
switch (n.mimeType) {
|
|
1752
1750
|
case "application/json":
|
|
1753
|
-
n.jsonObj && (r(`payload = ${
|
|
1751
|
+
n.jsonObj && (r(`payload = ${Ne(n.jsonObj, s)}`), $ = !0, x = !0);
|
|
1754
1752
|
break;
|
|
1755
1753
|
case "multipart/form-data":
|
|
1756
1754
|
if (!n.params)
|
|
1757
1755
|
break;
|
|
1758
1756
|
if (y = {}, n.params.forEach((v) => {
|
|
1759
|
-
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,
|
|
1757
|
+
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);
|
|
1760
1758
|
}), h) {
|
|
1761
|
-
r(`files = ${
|
|
1759
|
+
r(`files = ${Ne(f, s)}`), x && r(`payload = ${Ne(y, s)}`);
|
|
1762
1760
|
const v = fe(d, "content-type");
|
|
1763
1761
|
v && delete d[v];
|
|
1764
1762
|
} else {
|
|
1765
1763
|
const v = JSON.stringify(n.text);
|
|
1766
|
-
v && (r(`payload = ${v}`),
|
|
1764
|
+
v && (r(`payload = ${v}`), x = !0);
|
|
1767
1765
|
}
|
|
1768
1766
|
l(
|
|
1769
1767
|
(v) => v.replace(/"\('(.+)', open\('(.+)', 'rb'\)\)"/g, '("$1", open("$2", "rb"))').replace(/"\('(.+)', open\('(.+)', 'rb'\), '(.+)'\)"/g, '("$1", open("$2", "rb"), "$3")')
|
|
@@ -1771,15 +1769,15 @@ var ke = (e, n, t) => {
|
|
|
1771
1769
|
break;
|
|
1772
1770
|
default: {
|
|
1773
1771
|
if (n.mimeType === "application/x-www-form-urlencoded" && n.paramsObj) {
|
|
1774
|
-
r(`payload = ${
|
|
1772
|
+
r(`payload = ${Ne(n.paramsObj, s)}`), x = !0;
|
|
1775
1773
|
break;
|
|
1776
1774
|
}
|
|
1777
1775
|
const v = JSON.stringify(n.text);
|
|
1778
|
-
v && (r(`payload = ${v}`),
|
|
1776
|
+
v && (r(`payload = ${v}`), x = !0);
|
|
1779
1777
|
}
|
|
1780
1778
|
}
|
|
1781
1779
|
const u = Object.keys(d).length;
|
|
1782
|
-
if (u === 0 && (
|
|
1780
|
+
if (u === 0 && (x || h))
|
|
1783
1781
|
o();
|
|
1784
1782
|
else if (u === 1)
|
|
1785
1783
|
Object.keys(d).forEach((v) => {
|
|
@@ -1791,10 +1789,10 @@ var ke = (e, n, t) => {
|
|
|
1791
1789
|
r(v !== u ? `"${S}": "${le(d[S])}",` : `"${S}": "${le(d[S])}"`, 1), v += 1;
|
|
1792
1790
|
}), r("}"), o();
|
|
1793
1791
|
}
|
|
1794
|
-
let m =
|
|
1795
|
-
return
|
|
1792
|
+
let m = xi.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
|
|
1793
|
+
return x && ($ ? m += ", json=payload" : m += ", data=payload"), h && (m += ", files=files"), u > 0 && (m += ", headers=headers"), m += ")", r(m), o(), r("print(response.text)"), i();
|
|
1796
1794
|
}
|
|
1797
|
-
},
|
|
1795
|
+
}, ji = {
|
|
1798
1796
|
info: {
|
|
1799
1797
|
key: "python",
|
|
1800
1798
|
title: "Python",
|
|
@@ -1802,9 +1800,9 @@ var ke = (e, n, t) => {
|
|
|
1802
1800
|
cli: "python3 %s"
|
|
1803
1801
|
},
|
|
1804
1802
|
clientsById: {
|
|
1805
|
-
requests:
|
|
1803
|
+
requests: $i
|
|
1806
1804
|
}
|
|
1807
|
-
},
|
|
1805
|
+
}, wi = {
|
|
1808
1806
|
info: {
|
|
1809
1807
|
key: "httr",
|
|
1810
1808
|
title: "httr",
|
|
@@ -1813,7 +1811,7 @@ var ke = (e, n, t) => {
|
|
|
1813
1811
|
extname: ".r"
|
|
1814
1812
|
},
|
|
1815
1813
|
convert: ({ url: e, queryObj: n, queryString: t, postData: a, allHeaders: c, method: s }) => {
|
|
1816
|
-
const { push: r, blank: o, join: i } = new
|
|
1814
|
+
const { push: r, blank: o, join: i } = new G();
|
|
1817
1815
|
r("library(httr)"), o(), r(`url <- "${e}"`), o();
|
|
1818
1816
|
const l = n;
|
|
1819
1817
|
delete n.key;
|
|
@@ -1837,22 +1835,22 @@ var ke = (e, n, t) => {
|
|
|
1837
1835
|
r('encode <- "raw"'), o();
|
|
1838
1836
|
break;
|
|
1839
1837
|
}
|
|
1840
|
-
const f =
|
|
1838
|
+
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}' = '${_e(O)}'`).join(", "), v = m ? `add_headers(${m})` : void 0;
|
|
1841
1839
|
let S = `response <- VERB("${s}", url`;
|
|
1842
1840
|
y && (S += ", body = payload"), t.length && (S += ", query = queryString");
|
|
1843
|
-
const P = [v, u, x
|
|
1841
|
+
const P = [v, u, $, x].filter((p) => !!p).join(", ");
|
|
1844
1842
|
return P && (S += `, ${P}`), (a.text || a.jsonObj || a.params) && (S += ", encode = encode"), S += ")", r(S), o(), r('content(response, "text")'), i();
|
|
1845
1843
|
}
|
|
1846
|
-
},
|
|
1844
|
+
}, Si = {
|
|
1847
1845
|
info: {
|
|
1848
1846
|
key: "r",
|
|
1849
1847
|
title: "R",
|
|
1850
1848
|
default: "httr"
|
|
1851
1849
|
},
|
|
1852
1850
|
clientsById: {
|
|
1853
|
-
httr:
|
|
1851
|
+
httr: wi
|
|
1854
1852
|
}
|
|
1855
|
-
},
|
|
1853
|
+
}, Oi = {
|
|
1856
1854
|
info: {
|
|
1857
1855
|
key: "native",
|
|
1858
1856
|
title: "net::http",
|
|
@@ -1861,7 +1859,7 @@ var ke = (e, n, t) => {
|
|
|
1861
1859
|
extname: ".rb"
|
|
1862
1860
|
},
|
|
1863
1861
|
convert: ({ uriObj: e, method: n, fullUrl: t, postData: a, allHeaders: c }) => {
|
|
1864
|
-
const { push: s, blank: r, join: o } = new
|
|
1862
|
+
const { push: s, blank: r, join: o } = new G();
|
|
1865
1863
|
s("require 'uri'"), s("require 'net/http'"), r();
|
|
1866
1864
|
const i = n.toUpperCase(), l = [
|
|
1867
1865
|
"GET",
|
|
@@ -1880,19 +1878,19 @@ var ke = (e, n, t) => {
|
|
|
1880
1878
|
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)`);
|
|
1881
1879
|
const y = Object.keys(c);
|
|
1882
1880
|
return y.length && y.forEach((f) => {
|
|
1883
|
-
s(`request["${f}"] = '${
|
|
1881
|
+
s(`request["${f}"] = '${_e(c[f])}'`);
|
|
1884
1882
|
}), a.text && s(`request.body = ${JSON.stringify(a.text)}`), r(), s("response = http.request(request)"), s("puts response.read_body"), o();
|
|
1885
1883
|
}
|
|
1886
|
-
},
|
|
1884
|
+
}, Ti = {
|
|
1887
1885
|
info: {
|
|
1888
1886
|
key: "ruby",
|
|
1889
1887
|
title: "Ruby",
|
|
1890
1888
|
default: "native"
|
|
1891
1889
|
},
|
|
1892
1890
|
clientsById: {
|
|
1893
|
-
native:
|
|
1891
|
+
native: Oi
|
|
1894
1892
|
}
|
|
1895
|
-
}, ce = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`,
|
|
1893
|
+
}, ce = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, Pi = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), Ci = {
|
|
1896
1894
|
"http1.0": "0",
|
|
1897
1895
|
"url ": "",
|
|
1898
1896
|
cookie: "b",
|
|
@@ -1902,13 +1900,13 @@ var ke = (e, n, t) => {
|
|
|
1902
1900
|
header: "H",
|
|
1903
1901
|
insecure: "k",
|
|
1904
1902
|
request: "X"
|
|
1905
|
-
},
|
|
1903
|
+
}, qi = (e) => (n) => {
|
|
1906
1904
|
if (e) {
|
|
1907
|
-
const t =
|
|
1905
|
+
const t = Ci[n];
|
|
1908
1906
|
return t ? `-${t}` : "";
|
|
1909
1907
|
}
|
|
1910
1908
|
return `--${n}`;
|
|
1911
|
-
},
|
|
1909
|
+
}, Ei = {
|
|
1912
1910
|
info: {
|
|
1913
1911
|
key: "curl",
|
|
1914
1912
|
title: "cURL",
|
|
@@ -1917,13 +1915,13 @@ var ke = (e, n, t) => {
|
|
|
1917
1915
|
extname: ".sh"
|
|
1918
1916
|
},
|
|
1919
1917
|
convert: ({ fullUrl: e, method: n, httpVersion: t, headersObj: a, allHeaders: c, postData: s }, r = {}) => {
|
|
1920
|
-
const { indent: o = " ", short: i = !1, binary: l = !1, globOff: d = !1 } = r, y = " ", { push: f, join: h } = new
|
|
1918
|
+
const { indent: o = " ", short: i = !1, binary: l = !1, globOff: d = !1 } = r, y = " ", { push: f, join: h } = new G({
|
|
1921
1919
|
...typeof o == "string" ? { indent: o } : {},
|
|
1922
1920
|
join: o !== !1 ? ` \\
|
|
1923
1921
|
${o}` : " "
|
|
1924
|
-
}),
|
|
1925
|
-
let
|
|
1926
|
-
if (f(`curl ${
|
|
1922
|
+
}), x = qi(i);
|
|
1923
|
+
let $ = ce(e);
|
|
1924
|
+
if (f(`curl ${x("request")} ${n}`), d && ($ = unescape($), f(x("globoff"))), f(`${x("url ")}${$}`), t === "HTTP/1.0" && f(x("http1.0")), ve(c, "accept-encoding") && f("--compressed"), s.mimeType === "multipart/form-data") {
|
|
1927
1925
|
const u = fe(a, "content-type");
|
|
1928
1926
|
if (u) {
|
|
1929
1927
|
const m = a[u];
|
|
@@ -1935,29 +1933,29 @@ ${o}` : " "
|
|
|
1935
1933
|
}
|
|
1936
1934
|
switch (Object.keys(a).sort().forEach((u) => {
|
|
1937
1935
|
const m = `${u}: ${a[u]}`;
|
|
1938
|
-
f(`${
|
|
1939
|
-
}), c.cookie && f(`${
|
|
1936
|
+
f(`${x("header")} ${ce(m)}`);
|
|
1937
|
+
}), c.cookie && f(`${x("cookie")} ${ce(c.cookie)}`), s.mimeType) {
|
|
1940
1938
|
case "multipart/form-data":
|
|
1941
1939
|
s.params?.forEach((m) => {
|
|
1942
1940
|
let v = "";
|
|
1943
|
-
m.fileName ? v = `${m.name}='@${m.fileName}'` : v = ce(`${m.name}=${m.value}`), f(`${
|
|
1941
|
+
m.fileName ? v = `${m.name}='@${m.fileName}'` : v = ce(`${m.name}=${m.value}`), f(`${x("form")} ${v}`);
|
|
1944
1942
|
});
|
|
1945
1943
|
break;
|
|
1946
1944
|
case "application/x-www-form-urlencoded":
|
|
1947
1945
|
s.params ? s.params.forEach((m) => {
|
|
1948
|
-
const v = m.name, S = encodeURIComponent(m.name), P = S !== v, p = P ? S : v, O = l ? "--data-binary" : P ? "--data-urlencode" :
|
|
1946
|
+
const v = m.name, S = encodeURIComponent(m.name), P = S !== v, p = P ? S : v, O = l ? "--data-binary" : P ? "--data-urlencode" : x("data");
|
|
1949
1947
|
f(`${O} ${ce(`${p}=${m.value}`)}`);
|
|
1950
|
-
}) : f(`${l ? "--data-binary" :
|
|
1948
|
+
}) : f(`${l ? "--data-binary" : x("data")} ${ce(s.text)}`);
|
|
1951
1949
|
break;
|
|
1952
1950
|
default:
|
|
1953
1951
|
if (!s.text)
|
|
1954
1952
|
break;
|
|
1955
1953
|
let u = !1;
|
|
1956
|
-
if (
|
|
1954
|
+
if (qo(s.mimeType) && s.text.length > 20)
|
|
1957
1955
|
try {
|
|
1958
1956
|
const m = JSON.parse(s.text);
|
|
1959
1957
|
u = !0, s.text.indexOf("'") > 0 ? f(
|
|
1960
|
-
`${l ? "--data-binary" :
|
|
1958
|
+
`${l ? "--data-binary" : x("data")} @- <<EOF
|
|
1961
1959
|
${JSON.stringify(
|
|
1962
1960
|
m,
|
|
1963
1961
|
null,
|
|
@@ -1965,17 +1963,17 @@ ${JSON.stringify(
|
|
|
1965
1963
|
)}
|
|
1966
1964
|
EOF`
|
|
1967
1965
|
) : f(
|
|
1968
|
-
`${l ? "--data-binary" :
|
|
1966
|
+
`${l ? "--data-binary" : x("data")} '
|
|
1969
1967
|
${JSON.stringify(m, null, y)}
|
|
1970
1968
|
'`
|
|
1971
1969
|
);
|
|
1972
1970
|
} catch {
|
|
1973
1971
|
}
|
|
1974
|
-
u || f(`${l ? "--data-binary" :
|
|
1972
|
+
u || f(`${l ? "--data-binary" : x("data")} ${ce(s.text)}`);
|
|
1975
1973
|
}
|
|
1976
1974
|
return h();
|
|
1977
1975
|
}
|
|
1978
|
-
},
|
|
1976
|
+
}, Ri = {
|
|
1979
1977
|
info: {
|
|
1980
1978
|
key: "httpie",
|
|
1981
1979
|
title: "HTTPie",
|
|
@@ -1999,7 +1997,7 @@ ${JSON.stringify(m, null, y)}
|
|
|
1999
1997
|
verbose: !1,
|
|
2000
1998
|
verify: !1,
|
|
2001
1999
|
...r
|
|
2002
|
-
}, { push: i, join: l, unshift: d } = new
|
|
2000
|
+
}, { push: i, join: l, unshift: d } = new G({
|
|
2003
2001
|
indent: o.indent,
|
|
2004
2002
|
// @ts-expect-error SEEMS LEGIT
|
|
2005
2003
|
join: o.indent !== !1 ? ` \\
|
|
@@ -2007,24 +2005,24 @@ ${o.indent}` : " "
|
|
|
2007
2005
|
});
|
|
2008
2006
|
let y = !1;
|
|
2009
2007
|
const f = [];
|
|
2010
|
-
o.headers && f.push(o.short ? "-h" : "--headers"), o.body && f.push(o.short ? "-b" : "--body"), o.verbose && f.push(o.short ? "-v" : "--verbose"), o.print && f.push(`${o.short ? "-p" : "--print"}=${o.print}`), o.verify && f.push(`--verify=${o.verify}`), o.cert && f.push(`--cert=${o.cert}`), o.pretty && f.push(`--pretty=${o.pretty}`), o.style && f.push(`--style=${o.style}`), o.timeout && f.push(`--timeout=${o.timeout}`), o.queryParams && Object.keys(t).forEach((
|
|
2011
|
-
const
|
|
2012
|
-
Array.isArray(
|
|
2013
|
-
i(`${
|
|
2014
|
-
}) : i(`${
|
|
2015
|
-
}), Object.keys(e).sort().forEach((
|
|
2016
|
-
i(`${
|
|
2017
|
-
}), n.mimeType === "application/x-www-form-urlencoded" ? n.params && n.params.length && (f.push(o.short ? "-f" : "--form"), n.params.forEach((
|
|
2018
|
-
i(`${
|
|
2008
|
+
o.headers && f.push(o.short ? "-h" : "--headers"), o.body && f.push(o.short ? "-b" : "--body"), o.verbose && f.push(o.short ? "-v" : "--verbose"), o.print && f.push(`${o.short ? "-p" : "--print"}=${o.print}`), o.verify && f.push(`--verify=${o.verify}`), o.cert && f.push(`--cert=${o.cert}`), o.pretty && f.push(`--pretty=${o.pretty}`), o.style && f.push(`--style=${o.style}`), o.timeout && f.push(`--timeout=${o.timeout}`), o.queryParams && Object.keys(t).forEach((x) => {
|
|
2009
|
+
const $ = t[x];
|
|
2010
|
+
Array.isArray($) ? $.forEach((u) => {
|
|
2011
|
+
i(`${x}==${ce(u)}`);
|
|
2012
|
+
}) : i(`${x}==${ce($)}`);
|
|
2013
|
+
}), Object.keys(e).sort().forEach((x) => {
|
|
2014
|
+
i(`${x}:${ce(e[x])}`);
|
|
2015
|
+
}), n.mimeType === "application/x-www-form-urlencoded" ? n.params && n.params.length && (f.push(o.short ? "-f" : "--form"), n.params.forEach((x) => {
|
|
2016
|
+
i(`${x.name}=${ce(x.value)}`);
|
|
2019
2017
|
})) : y = !0;
|
|
2020
2018
|
const h = f.length ? `${f.join(" ")} ` : "";
|
|
2021
2019
|
if (s = ce(o.queryParams ? s : a), d(`http ${h}${c} ${s}`), y && n.text) {
|
|
2022
|
-
const
|
|
2023
|
-
d(`echo ${
|
|
2020
|
+
const x = ce(n.text);
|
|
2021
|
+
d(`echo ${x} | `);
|
|
2024
2022
|
}
|
|
2025
2023
|
return l();
|
|
2026
2024
|
}
|
|
2027
|
-
},
|
|
2025
|
+
}, ki = {
|
|
2028
2026
|
info: {
|
|
2029
2027
|
key: "wget",
|
|
2030
2028
|
title: "Wget",
|
|
@@ -2038,7 +2036,7 @@ ${o.indent}` : " "
|
|
|
2038
2036
|
short: !1,
|
|
2039
2037
|
verbose: !1,
|
|
2040
2038
|
...c
|
|
2041
|
-
}, { push: r, join: o } = new
|
|
2039
|
+
}, { push: r, join: o } = new G({
|
|
2042
2040
|
...typeof s.indent == "string" ? { indent: s.indent } : {},
|
|
2043
2041
|
join: s.indent !== !1 ? ` \\
|
|
2044
2042
|
${s.indent}` : " "
|
|
@@ -2046,9 +2044,9 @@ ${s.indent}` : " "
|
|
|
2046
2044
|
return s.verbose ? r(`wget ${s.short ? "-v" : "--verbose"}`) : r(`wget ${s.short ? "-q" : "--quiet"}`), r(`--method ${ce(e)}`), Object.keys(t).forEach((i) => {
|
|
2047
2045
|
const l = `${i}: ${t[i]}`;
|
|
2048
2046
|
r(`--header ${ce(l)}`);
|
|
2049
|
-
}), n.text && r(`--body-data ${
|
|
2047
|
+
}), n.text && r(`--body-data ${Pi(ce(n.text))}`), r(s.short ? "-O" : "--output-document"), r(`- ${ce(a)}`), o();
|
|
2050
2048
|
}
|
|
2051
|
-
},
|
|
2049
|
+
}, Ni = {
|
|
2052
2050
|
info: {
|
|
2053
2051
|
key: "shell",
|
|
2054
2052
|
title: "Shell",
|
|
@@ -2056,9 +2054,9 @@ ${s.indent}` : " "
|
|
|
2056
2054
|
cli: "%s"
|
|
2057
2055
|
},
|
|
2058
2056
|
clientsById: {
|
|
2059
|
-
curl:
|
|
2060
|
-
httpie:
|
|
2061
|
-
wget:
|
|
2057
|
+
curl: Ei,
|
|
2058
|
+
httpie: Ri,
|
|
2059
|
+
wget: ki
|
|
2062
2060
|
}
|
|
2063
2061
|
}, Zr = (e, n) => n.repeat(e), en = (e, n, t, a) => {
|
|
2064
2062
|
const c = Zr(a, t), s = Zr(a - 1, t), r = n ? `,
|
|
@@ -2093,7 +2091,7 @@ ${s}]` : `[${e.join(r)}]`;
|
|
|
2093
2091
|
default:
|
|
2094
2092
|
return e == null ? "nil" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
2095
2093
|
}
|
|
2096
|
-
},
|
|
2094
|
+
}, Ai = {
|
|
2097
2095
|
info: {
|
|
2098
2096
|
key: "urlsession",
|
|
2099
2097
|
title: "URLSession",
|
|
@@ -2107,7 +2105,7 @@ ${s}]` : `[${e.join(r)}]`;
|
|
|
2107
2105
|
pretty: !0,
|
|
2108
2106
|
timeout: 10,
|
|
2109
2107
|
...s
|
|
2110
|
-
}, { push: o, blank: i, join: l } = new
|
|
2108
|
+
}, { push: o, blank: i, join: l } = new G({ indent: r.indent });
|
|
2111
2109
|
o("import Foundation"), i();
|
|
2112
2110
|
const d = n.text || n.jsonObj || n.params;
|
|
2113
2111
|
if (d)
|
|
@@ -2130,57 +2128,57 @@ ${s}]` : `[${e.join(r)}]`;
|
|
|
2130
2128
|
o(`let url = URL(string: "${t.href}")!`);
|
|
2131
2129
|
const y = a ? Object.entries(a) : [];
|
|
2132
2130
|
return y.length < 1 ? o("var request = URLRequest(url: url)") : (o("var components = URLComponents(url: url, resolvingAgainstBaseURL: true)!"), o("let queryItems: [URLQueryItem] = ["), y.forEach((f) => {
|
|
2133
|
-
const h = f[0],
|
|
2134
|
-
switch (Object.prototype.toString.call(
|
|
2131
|
+
const h = f[0], x = f[1];
|
|
2132
|
+
switch (Object.prototype.toString.call(x)) {
|
|
2135
2133
|
case "[object String]":
|
|
2136
|
-
o(`URLQueryItem(name: "${h}", value: "${
|
|
2134
|
+
o(`URLQueryItem(name: "${h}", value: "${x}"),`, 1);
|
|
2137
2135
|
break;
|
|
2138
2136
|
case "[object Array]":
|
|
2139
|
-
|
|
2140
|
-
o(`URLQueryItem(name: "${h}", value: "${
|
|
2137
|
+
x.forEach(($) => {
|
|
2138
|
+
o(`URLQueryItem(name: "${h}", value: "${$}"),`, 1);
|
|
2141
2139
|
});
|
|
2142
2140
|
break;
|
|
2143
2141
|
}
|
|
2144
2142
|
}), 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 = ${Xe(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();
|
|
2145
2143
|
}
|
|
2146
|
-
},
|
|
2144
|
+
}, Ii = {
|
|
2147
2145
|
info: {
|
|
2148
2146
|
key: "swift",
|
|
2149
2147
|
title: "Swift",
|
|
2150
2148
|
default: "urlsession"
|
|
2151
2149
|
},
|
|
2152
2150
|
clientsById: {
|
|
2153
|
-
urlsession:
|
|
2151
|
+
urlsession: Ai
|
|
2154
2152
|
}
|
|
2155
|
-
},
|
|
2156
|
-
c:
|
|
2157
|
-
clojure:
|
|
2158
|
-
csharp:
|
|
2159
|
-
go:
|
|
2160
|
-
http:
|
|
2161
|
-
java:
|
|
2162
|
-
javascript:
|
|
2163
|
-
json:
|
|
2164
|
-
kotlin:
|
|
2165
|
-
node:
|
|
2166
|
-
objc:
|
|
2167
|
-
ocaml:
|
|
2168
|
-
php:
|
|
2169
|
-
powershell:
|
|
2170
|
-
python:
|
|
2171
|
-
r:
|
|
2172
|
-
ruby:
|
|
2173
|
-
shell:
|
|
2174
|
-
swift:
|
|
2175
|
-
},
|
|
2153
|
+
}, Ui = {
|
|
2154
|
+
c: Co,
|
|
2155
|
+
clojure: ko,
|
|
2156
|
+
csharp: Lo,
|
|
2157
|
+
go: _o,
|
|
2158
|
+
http: Ho,
|
|
2159
|
+
java: Vo,
|
|
2160
|
+
javascript: Yo,
|
|
2161
|
+
json: Zo,
|
|
2162
|
+
kotlin: ti,
|
|
2163
|
+
node: si,
|
|
2164
|
+
objc: ci,
|
|
2165
|
+
ocaml: fi,
|
|
2166
|
+
php: mi,
|
|
2167
|
+
powershell: bi,
|
|
2168
|
+
python: ji,
|
|
2169
|
+
r: Si,
|
|
2170
|
+
ruby: Ti,
|
|
2171
|
+
shell: Ni,
|
|
2172
|
+
swift: Ii
|
|
2173
|
+
}, Pe = {}, Ue = { exports: {} };
|
|
2176
2174
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
2177
|
-
var
|
|
2178
|
-
function
|
|
2175
|
+
var Li = Ue.exports, rn;
|
|
2176
|
+
function Fi() {
|
|
2179
2177
|
return rn || (rn = 1, function(e, n) {
|
|
2180
2178
|
(function(t) {
|
|
2181
2179
|
var a = n && !n.nodeType && n, c = e && !e.nodeType && e, s = typeof Ke == "object" && Ke;
|
|
2182
2180
|
(s.global === s || s.window === s || s.self === s) && (t = s);
|
|
2183
|
-
var r, o = 2147483647, i = 36, l = 1, d = 26, y = 38, f = 700, h = 72,
|
|
2181
|
+
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 = {
|
|
2184
2182
|
overflow: "Overflow: input needs wider integers to process",
|
|
2185
2183
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
2186
2184
|
"invalid-input": "Invalid input"
|
|
@@ -2223,26 +2221,26 @@ function Hi() {
|
|
|
2223
2221
|
return p(q + (P + 1) * E / (E + y));
|
|
2224
2222
|
}
|
|
2225
2223
|
function se(E) {
|
|
2226
|
-
var N = [], F = E.length, q, L = 0, J =
|
|
2227
|
-
for (K = E.lastIndexOf(
|
|
2224
|
+
var N = [], F = E.length, q, L = 0, J = x, z = h, K, ne, V, U, _, B, Q, W, Y;
|
|
2225
|
+
for (K = E.lastIndexOf($), K < 0 && (K = 0), ne = 0; ne < K; ++ne)
|
|
2228
2226
|
E.charCodeAt(ne) >= 128 && R("not-basic"), N.push(E.charCodeAt(ne));
|
|
2229
|
-
for (
|
|
2230
|
-
for (U = L, _ = 1, B = i;
|
|
2227
|
+
for (V = K > 0 ? K + 1 : 0; V < F; ) {
|
|
2228
|
+
for (U = L, _ = 1, B = i; V >= F && R("invalid-input"), Q = oe(E.charCodeAt(V++)), (Q >= i || Q > p((o - L) / _)) && R("overflow"), L += Q * _, W = B <= z ? l : B >= z + d ? d : B - z, !(Q < W); B += i)
|
|
2231
2229
|
Y = i - W, _ > p(o / Y) && R("overflow"), _ *= Y;
|
|
2232
2230
|
q = N.length + 1, z = D(L - U, q, U == 0), p(L / q) > o - J && R("overflow"), J += p(L / q), L %= q, N.splice(L++, 0, J);
|
|
2233
2231
|
}
|
|
2234
2232
|
return T(N);
|
|
2235
2233
|
}
|
|
2236
2234
|
function Z(E) {
|
|
2237
|
-
var N, F, q, L, J, z, K, ne,
|
|
2238
|
-
for (E = k(E), Q = E.length, N =
|
|
2235
|
+
var N, F, q, L, J, z, K, ne, V, U, _, B = [], Q, W, Y, ae;
|
|
2236
|
+
for (E = k(E), Q = E.length, N = x, F = 0, J = h, z = 0; z < Q; ++z)
|
|
2239
2237
|
_ = E[z], _ < 128 && B.push(O(_));
|
|
2240
|
-
for (q = L = B.length, L && B.push(
|
|
2238
|
+
for (q = L = B.length, L && B.push($); q < Q; ) {
|
|
2241
2239
|
for (K = o, z = 0; z < Q; ++z)
|
|
2242
2240
|
_ = E[z], _ >= N && _ < K && (K = _);
|
|
2243
2241
|
for (W = q + 1, K - N > p((o - F) / W) && R("overflow"), F += (K - N) * W, N = K, z = 0; z < Q; ++z)
|
|
2244
2242
|
if (_ = E[z], _ < N && ++F > o && R("overflow"), _ == N) {
|
|
2245
|
-
for (ne = F,
|
|
2243
|
+
for (ne = F, V = i; U = V <= J ? l : V >= J + d ? d : V - J, !(ne < U); V += i)
|
|
2246
2244
|
ae = ne - U, Y = i - U, B.push(
|
|
2247
2245
|
O(H(U + ae % Y, 0))
|
|
2248
2246
|
), ne = p(ae / Y);
|
|
@@ -2292,89 +2290,89 @@ function Hi() {
|
|
|
2292
2290
|
r.hasOwnProperty(g) && (a[g] = r[g]);
|
|
2293
2291
|
else
|
|
2294
2292
|
t.punycode = r;
|
|
2295
|
-
})(
|
|
2296
|
-
}(
|
|
2293
|
+
})(Li);
|
|
2294
|
+
}(Ue, Ue.exports)), Ue.exports;
|
|
2297
2295
|
}
|
|
2298
2296
|
var gt, nn;
|
|
2299
|
-
function
|
|
2297
|
+
function va() {
|
|
2300
2298
|
return nn || (nn = 1, gt = Object), gt;
|
|
2301
2299
|
}
|
|
2302
2300
|
var vt, an;
|
|
2303
|
-
function
|
|
2301
|
+
function _i() {
|
|
2304
2302
|
return an || (an = 1, vt = Error), vt;
|
|
2305
2303
|
}
|
|
2306
2304
|
var bt, on;
|
|
2307
|
-
function
|
|
2305
|
+
function Bi() {
|
|
2308
2306
|
return on || (on = 1, bt = EvalError), bt;
|
|
2309
2307
|
}
|
|
2310
2308
|
var xt, sn;
|
|
2311
|
-
function
|
|
2309
|
+
function Hi() {
|
|
2312
2310
|
return sn || (sn = 1, xt = RangeError), xt;
|
|
2313
2311
|
}
|
|
2314
2312
|
var $t, ln;
|
|
2315
|
-
function
|
|
2313
|
+
function Mi() {
|
|
2316
2314
|
return ln || (ln = 1, $t = ReferenceError), $t;
|
|
2317
2315
|
}
|
|
2318
|
-
var
|
|
2319
|
-
function
|
|
2320
|
-
return cn || (cn = 1,
|
|
2316
|
+
var jt, cn;
|
|
2317
|
+
function ba() {
|
|
2318
|
+
return cn || (cn = 1, jt = SyntaxError), jt;
|
|
2321
2319
|
}
|
|
2322
|
-
var
|
|
2323
|
-
function
|
|
2324
|
-
return un || (un = 1,
|
|
2320
|
+
var wt, un;
|
|
2321
|
+
function He() {
|
|
2322
|
+
return un || (un = 1, wt = TypeError), wt;
|
|
2325
2323
|
}
|
|
2326
2324
|
var St, fn;
|
|
2327
|
-
function
|
|
2325
|
+
function zi() {
|
|
2328
2326
|
return fn || (fn = 1, St = URIError), St;
|
|
2329
2327
|
}
|
|
2330
2328
|
var Ot, pn;
|
|
2331
|
-
function
|
|
2329
|
+
function Wi() {
|
|
2332
2330
|
return pn || (pn = 1, Ot = Math.abs), Ot;
|
|
2333
2331
|
}
|
|
2334
2332
|
var Tt, dn;
|
|
2335
|
-
function
|
|
2333
|
+
function Ji() {
|
|
2336
2334
|
return dn || (dn = 1, Tt = Math.floor), Tt;
|
|
2337
2335
|
}
|
|
2338
2336
|
var Pt, hn;
|
|
2339
|
-
function
|
|
2337
|
+
function Vi() {
|
|
2340
2338
|
return hn || (hn = 1, Pt = Math.max), Pt;
|
|
2341
2339
|
}
|
|
2342
2340
|
var Ct, yn;
|
|
2343
|
-
function
|
|
2341
|
+
function Gi() {
|
|
2344
2342
|
return yn || (yn = 1, Ct = Math.min), Ct;
|
|
2345
2343
|
}
|
|
2346
2344
|
var qt, mn;
|
|
2347
|
-
function
|
|
2345
|
+
function Di() {
|
|
2348
2346
|
return mn || (mn = 1, qt = Math.pow), qt;
|
|
2349
2347
|
}
|
|
2350
2348
|
var Et, gn;
|
|
2351
|
-
function
|
|
2349
|
+
function Qi() {
|
|
2352
2350
|
return gn || (gn = 1, Et = Math.round), Et;
|
|
2353
2351
|
}
|
|
2354
2352
|
var Rt, vn;
|
|
2355
|
-
function
|
|
2353
|
+
function Ki() {
|
|
2356
2354
|
return vn || (vn = 1, Rt = Number.isNaN || function(n) {
|
|
2357
2355
|
return n !== n;
|
|
2358
2356
|
}), Rt;
|
|
2359
2357
|
}
|
|
2360
2358
|
var kt, bn;
|
|
2361
|
-
function
|
|
2359
|
+
function Yi() {
|
|
2362
2360
|
if (bn) return kt;
|
|
2363
2361
|
bn = 1;
|
|
2364
|
-
var e = /* @__PURE__ */
|
|
2362
|
+
var e = /* @__PURE__ */ Ki();
|
|
2365
2363
|
return kt = function(t) {
|
|
2366
2364
|
return e(t) || t === 0 ? t : t < 0 ? -1 : 1;
|
|
2367
2365
|
}, kt;
|
|
2368
2366
|
}
|
|
2369
2367
|
var Nt, xn;
|
|
2370
|
-
function
|
|
2368
|
+
function Xi() {
|
|
2371
2369
|
return xn || (xn = 1, Nt = Object.getOwnPropertyDescriptor), Nt;
|
|
2372
2370
|
}
|
|
2373
2371
|
var At, $n;
|
|
2374
2372
|
function tt() {
|
|
2375
2373
|
if ($n) return At;
|
|
2376
2374
|
$n = 1;
|
|
2377
|
-
var e = /* @__PURE__ */
|
|
2375
|
+
var e = /* @__PURE__ */ Xi();
|
|
2378
2376
|
if (e)
|
|
2379
2377
|
try {
|
|
2380
2378
|
e([], "length");
|
|
@@ -2383,10 +2381,10 @@ function tt() {
|
|
|
2383
2381
|
}
|
|
2384
2382
|
return At = e, At;
|
|
2385
2383
|
}
|
|
2386
|
-
var It,
|
|
2384
|
+
var It, jn;
|
|
2387
2385
|
function rt() {
|
|
2388
|
-
if (
|
|
2389
|
-
|
|
2386
|
+
if (jn) return It;
|
|
2387
|
+
jn = 1;
|
|
2390
2388
|
var e = Object.defineProperty || !1;
|
|
2391
2389
|
if (e)
|
|
2392
2390
|
try {
|
|
@@ -2396,9 +2394,9 @@ function rt() {
|
|
|
2396
2394
|
}
|
|
2397
2395
|
return It = e, It;
|
|
2398
2396
|
}
|
|
2399
|
-
var Ut,
|
|
2400
|
-
function
|
|
2401
|
-
return
|
|
2397
|
+
var Ut, wn;
|
|
2398
|
+
function Zi() {
|
|
2399
|
+
return wn || (wn = 1, Ut = function() {
|
|
2402
2400
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2403
2401
|
return !1;
|
|
2404
2402
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -2427,27 +2425,27 @@ function rs() {
|
|
|
2427
2425
|
}), Ut;
|
|
2428
2426
|
}
|
|
2429
2427
|
var Lt, Sn;
|
|
2430
|
-
function
|
|
2428
|
+
function es() {
|
|
2431
2429
|
if (Sn) return Lt;
|
|
2432
2430
|
Sn = 1;
|
|
2433
|
-
var e = typeof Symbol < "u" && Symbol, n =
|
|
2431
|
+
var e = typeof Symbol < "u" && Symbol, n = Zi();
|
|
2434
2432
|
return Lt = function() {
|
|
2435
2433
|
return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : n();
|
|
2436
2434
|
}, Lt;
|
|
2437
2435
|
}
|
|
2438
2436
|
var Ft, On;
|
|
2439
|
-
function
|
|
2437
|
+
function xa() {
|
|
2440
2438
|
return On || (On = 1, Ft = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Ft;
|
|
2441
2439
|
}
|
|
2442
2440
|
var _t, Tn;
|
|
2443
|
-
function
|
|
2441
|
+
function $a() {
|
|
2444
2442
|
if (Tn) return _t;
|
|
2445
2443
|
Tn = 1;
|
|
2446
|
-
var e = /* @__PURE__ */
|
|
2444
|
+
var e = /* @__PURE__ */ va();
|
|
2447
2445
|
return _t = e.getPrototypeOf || null, _t;
|
|
2448
2446
|
}
|
|
2449
2447
|
var Bt, Pn;
|
|
2450
|
-
function
|
|
2448
|
+
function ts() {
|
|
2451
2449
|
if (Pn) return Bt;
|
|
2452
2450
|
Pn = 1;
|
|
2453
2451
|
var e = "Function.prototype.bind called on incompatible ", n = Object.prototype.toString, t = Math.max, a = "[object Function]", c = function(i, l) {
|
|
@@ -2481,9 +2479,9 @@ function as() {
|
|
|
2481
2479
|
i,
|
|
2482
2480
|
c(d, arguments)
|
|
2483
2481
|
);
|
|
2484
|
-
}, h = t(0, l.length - d.length),
|
|
2485
|
-
|
|
2486
|
-
if (y = Function("binder", "return function (" + r(
|
|
2482
|
+
}, h = t(0, l.length - d.length), x = [], $ = 0; $ < h; $++)
|
|
2483
|
+
x[$] = "$" + $;
|
|
2484
|
+
if (y = Function("binder", "return function (" + r(x, ",") + "){ return binder.apply(this,arguments); }")(f), l.prototype) {
|
|
2487
2485
|
var u = function() {
|
|
2488
2486
|
};
|
|
2489
2487
|
u.prototype = l.prototype, y.prototype = new u(), u.prototype = null;
|
|
@@ -2492,10 +2490,10 @@ function as() {
|
|
|
2492
2490
|
}, Bt;
|
|
2493
2491
|
}
|
|
2494
2492
|
var Ht, Cn;
|
|
2495
|
-
function
|
|
2493
|
+
function Me() {
|
|
2496
2494
|
if (Cn) return Ht;
|
|
2497
2495
|
Cn = 1;
|
|
2498
|
-
var e =
|
|
2496
|
+
var e = ts();
|
|
2499
2497
|
return Ht = Function.prototype.bind || e, Ht;
|
|
2500
2498
|
}
|
|
2501
2499
|
var Mt, qn;
|
|
@@ -2503,36 +2501,36 @@ function $r() {
|
|
|
2503
2501
|
return qn || (qn = 1, Mt = Function.prototype.call), Mt;
|
|
2504
2502
|
}
|
|
2505
2503
|
var zt, En;
|
|
2506
|
-
function
|
|
2504
|
+
function jr() {
|
|
2507
2505
|
return En || (En = 1, zt = Function.prototype.apply), zt;
|
|
2508
2506
|
}
|
|
2509
2507
|
var Wt, Rn;
|
|
2510
|
-
function
|
|
2508
|
+
function rs() {
|
|
2511
2509
|
return Rn || (Rn = 1, Wt = typeof Reflect < "u" && Reflect && Reflect.apply), Wt;
|
|
2512
2510
|
}
|
|
2513
2511
|
var Jt, kn;
|
|
2514
|
-
function
|
|
2512
|
+
function ja() {
|
|
2515
2513
|
if (kn) return Jt;
|
|
2516
2514
|
kn = 1;
|
|
2517
|
-
var e =
|
|
2515
|
+
var e = Me(), n = jr(), t = $r(), a = rs();
|
|
2518
2516
|
return Jt = a || e.call(t, n), Jt;
|
|
2519
2517
|
}
|
|
2520
|
-
var
|
|
2521
|
-
function
|
|
2522
|
-
if (Nn) return
|
|
2518
|
+
var Vt, Nn;
|
|
2519
|
+
function wa() {
|
|
2520
|
+
if (Nn) return Vt;
|
|
2523
2521
|
Nn = 1;
|
|
2524
|
-
var e =
|
|
2525
|
-
return
|
|
2522
|
+
var e = Me(), n = /* @__PURE__ */ He(), t = $r(), a = ja();
|
|
2523
|
+
return Vt = function(s) {
|
|
2526
2524
|
if (s.length < 1 || typeof s[0] != "function")
|
|
2527
2525
|
throw new n("a function is required");
|
|
2528
2526
|
return a(e, t, s);
|
|
2529
|
-
},
|
|
2527
|
+
}, Vt;
|
|
2530
2528
|
}
|
|
2531
|
-
var
|
|
2532
|
-
function
|
|
2533
|
-
if (An) return
|
|
2529
|
+
var Gt, An;
|
|
2530
|
+
function ns() {
|
|
2531
|
+
if (An) return Gt;
|
|
2534
2532
|
An = 1;
|
|
2535
|
-
var e =
|
|
2533
|
+
var e = wa(), n = /* @__PURE__ */ tt(), t;
|
|
2536
2534
|
try {
|
|
2537
2535
|
t = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
2538
2536
|
[].__proto__ === Array.prototype;
|
|
@@ -2545,18 +2543,18 @@ function is() {
|
|
|
2545
2543
|
/** @type {keyof typeof Object.prototype} */
|
|
2546
2544
|
"__proto__"
|
|
2547
2545
|
), c = Object, s = c.getPrototypeOf;
|
|
2548
|
-
return
|
|
2546
|
+
return Gt = a && typeof a.get == "function" ? e([a.get]) : typeof s == "function" ? (
|
|
2549
2547
|
/** @type {import('./get')} */
|
|
2550
2548
|
function(o) {
|
|
2551
2549
|
return s(o == null ? o : c(o));
|
|
2552
2550
|
}
|
|
2553
|
-
) : !1,
|
|
2551
|
+
) : !1, Gt;
|
|
2554
2552
|
}
|
|
2555
2553
|
var Dt, In;
|
|
2556
|
-
function
|
|
2554
|
+
function as() {
|
|
2557
2555
|
if (In) return Dt;
|
|
2558
2556
|
In = 1;
|
|
2559
|
-
var e =
|
|
2557
|
+
var e = xa(), n = $a(), t = /* @__PURE__ */ ns();
|
|
2560
2558
|
return Dt = e ? function(c) {
|
|
2561
2559
|
return e(c);
|
|
2562
2560
|
} : n ? function(c) {
|
|
@@ -2568,19 +2566,19 @@ function ss() {
|
|
|
2568
2566
|
} : null, Dt;
|
|
2569
2567
|
}
|
|
2570
2568
|
var Qt, Un;
|
|
2571
|
-
function
|
|
2569
|
+
function os() {
|
|
2572
2570
|
if (Un) return Qt;
|
|
2573
2571
|
Un = 1;
|
|
2574
|
-
var e = Function.prototype.call, n = Object.prototype.hasOwnProperty, t =
|
|
2572
|
+
var e = Function.prototype.call, n = Object.prototype.hasOwnProperty, t = Me();
|
|
2575
2573
|
return Qt = t.call(e, n), Qt;
|
|
2576
2574
|
}
|
|
2577
2575
|
var Kt, Ln;
|
|
2578
|
-
function
|
|
2576
|
+
function wr() {
|
|
2579
2577
|
if (Ln) return Kt;
|
|
2580
2578
|
Ln = 1;
|
|
2581
|
-
var e, n = /* @__PURE__ */
|
|
2579
|
+
var e, n = /* @__PURE__ */ va(), t = /* @__PURE__ */ _i(), a = /* @__PURE__ */ Bi(), c = /* @__PURE__ */ Hi(), s = /* @__PURE__ */ Mi(), r = /* @__PURE__ */ ba(), o = /* @__PURE__ */ He(), i = /* @__PURE__ */ zi(), l = /* @__PURE__ */ Wi(), d = /* @__PURE__ */ Ji(), y = /* @__PURE__ */ Vi(), f = /* @__PURE__ */ Gi(), h = /* @__PURE__ */ Di(), x = /* @__PURE__ */ Qi(), $ = /* @__PURE__ */ Yi(), u = Function, m = function(V) {
|
|
2582
2580
|
try {
|
|
2583
|
-
return u('"use strict"; return (' +
|
|
2581
|
+
return u('"use strict"; return (' + V + ").constructor;")();
|
|
2584
2582
|
} catch {
|
|
2585
2583
|
}
|
|
2586
2584
|
}, v = /* @__PURE__ */ tt(), S = /* @__PURE__ */ rt(), P = function() {
|
|
@@ -2595,7 +2593,7 @@ function jr() {
|
|
|
2595
2593
|
return P;
|
|
2596
2594
|
}
|
|
2597
2595
|
}
|
|
2598
|
-
}() : P, O =
|
|
2596
|
+
}() : P, O = es()(), g = as(), R = $a(), C = xa(), A = jr(), k = $r(), T = {}, oe = typeof Uint8Array > "u" || !g ? e : g(Uint8Array), H = {
|
|
2599
2597
|
__proto__: null,
|
|
2600
2598
|
"%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
|
|
2601
2599
|
"%Array%": Array,
|
|
@@ -2675,18 +2673,18 @@ function jr() {
|
|
|
2675
2673
|
"%Math.max%": y,
|
|
2676
2674
|
"%Math.min%": f,
|
|
2677
2675
|
"%Math.pow%": h,
|
|
2678
|
-
"%Math.round%":
|
|
2679
|
-
"%Math.sign%":
|
|
2676
|
+
"%Math.round%": x,
|
|
2677
|
+
"%Math.sign%": $,
|
|
2680
2678
|
"%Reflect.getPrototypeOf%": C
|
|
2681
2679
|
};
|
|
2682
2680
|
if (g)
|
|
2683
2681
|
try {
|
|
2684
2682
|
null.error;
|
|
2685
|
-
} catch (
|
|
2686
|
-
var D = g(g(
|
|
2683
|
+
} catch (V) {
|
|
2684
|
+
var D = g(g(V));
|
|
2687
2685
|
H["%Error.prototype%"] = D;
|
|
2688
2686
|
}
|
|
2689
|
-
var se = function
|
|
2687
|
+
var se = function V(U) {
|
|
2690
2688
|
var _;
|
|
2691
2689
|
if (U === "%AsyncFunction%")
|
|
2692
2690
|
_ = m("async function () {}");
|
|
@@ -2695,10 +2693,10 @@ function jr() {
|
|
|
2695
2693
|
else if (U === "%AsyncGeneratorFunction%")
|
|
2696
2694
|
_ = m("async function* () {}");
|
|
2697
2695
|
else if (U === "%AsyncGenerator%") {
|
|
2698
|
-
var B =
|
|
2696
|
+
var B = V("%AsyncGeneratorFunction%");
|
|
2699
2697
|
B && (_ = B.prototype);
|
|
2700
2698
|
} else if (U === "%AsyncIteratorPrototype%") {
|
|
2701
|
-
var Q =
|
|
2699
|
+
var Q = V("%AsyncGenerator%");
|
|
2702
2700
|
Q && g && (_ = g(Q.prototype));
|
|
2703
2701
|
}
|
|
2704
2702
|
return H[U] = _, _;
|
|
@@ -2755,7 +2753,7 @@ function jr() {
|
|
|
2755
2753
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2756
2754
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2757
2755
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2758
|
-
}, I =
|
|
2756
|
+
}, I = Me(), re = /* @__PURE__ */ os(), E = I.call(k, Array.prototype.concat), N = I.call(A, Array.prototype.splice), F = I.call(k, String.prototype.replace), q = I.call(k, String.prototype.slice), L = I.call(k, RegExp.prototype.exec), J = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, z = /\\(\\)?/g, K = function(U) {
|
|
2759
2757
|
var _ = q(U, 0, 1), B = q(U, -1);
|
|
2760
2758
|
if (_ === "%" && B !== "%")
|
|
2761
2759
|
throw new r("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -2788,11 +2786,11 @@ function jr() {
|
|
|
2788
2786
|
throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2789
2787
|
var B = K(U), Q = B.length > 0 ? B[0] : "", W = ne("%" + Q + "%", _), Y = W.name, ae = W.value, he = !1, we = W.alias;
|
|
2790
2788
|
we && (Q = we[0], N(B, E([0, 1], we)));
|
|
2791
|
-
for (var
|
|
2792
|
-
var ye = B[
|
|
2793
|
-
if ((
|
|
2789
|
+
for (var Ce = 1, Se = !0; Ce < B.length; Ce += 1) {
|
|
2790
|
+
var ye = B[Ce], qe = q(ye, 0, 1), Ee = q(ye, -1);
|
|
2791
|
+
if ((qe === '"' || qe === "'" || qe === "`" || Ee === '"' || Ee === "'" || Ee === "`") && qe !== Ee)
|
|
2794
2792
|
throw new r("property names with quotes must have matching quotes");
|
|
2795
|
-
if ((ye === "constructor" || !
|
|
2793
|
+
if ((ye === "constructor" || !Se) && (he = !0), Q += "." + ye, Y = "%" + Q + "%", re(H, Y))
|
|
2796
2794
|
ae = H[Y];
|
|
2797
2795
|
else if (ae != null) {
|
|
2798
2796
|
if (!(ye in ae)) {
|
|
@@ -2800,22 +2798,22 @@ function jr() {
|
|
|
2800
2798
|
throw new o("base intrinsic for " + U + " exists, but the property is not available.");
|
|
2801
2799
|
return;
|
|
2802
2800
|
}
|
|
2803
|
-
if (v &&
|
|
2804
|
-
var
|
|
2805
|
-
|
|
2801
|
+
if (v && Ce + 1 >= B.length) {
|
|
2802
|
+
var Oe = v(ae, ye);
|
|
2803
|
+
Se = !!Oe, Se && "get" in Oe && !("originalValue" in Oe.get) ? ae = Oe.get : ae = ae[ye];
|
|
2806
2804
|
} else
|
|
2807
|
-
|
|
2808
|
-
|
|
2805
|
+
Se = re(ae, ye), ae = ae[ye];
|
|
2806
|
+
Se && !he && (H[Y] = ae);
|
|
2809
2807
|
}
|
|
2810
2808
|
}
|
|
2811
2809
|
return ae;
|
|
2812
2810
|
}, Kt;
|
|
2813
2811
|
}
|
|
2814
2812
|
var Yt = { exports: {} }, Xt, Fn;
|
|
2815
|
-
function
|
|
2813
|
+
function is() {
|
|
2816
2814
|
if (Fn) return Xt;
|
|
2817
2815
|
Fn = 1;
|
|
2818
|
-
var e = /* @__PURE__ */ rt(), n = /* @__PURE__ */
|
|
2816
|
+
var e = /* @__PURE__ */ rt(), n = /* @__PURE__ */ ba(), t = /* @__PURE__ */ He(), a = /* @__PURE__ */ tt();
|
|
2819
2817
|
return Xt = function(s, r, o) {
|
|
2820
2818
|
if (!s || typeof s != "object" && typeof s != "function")
|
|
2821
2819
|
throw new t("`obj` must be an object or a function`");
|
|
@@ -2844,7 +2842,7 @@ function cs() {
|
|
|
2844
2842
|
}, Xt;
|
|
2845
2843
|
}
|
|
2846
2844
|
var Zt, _n;
|
|
2847
|
-
function
|
|
2845
|
+
function ss() {
|
|
2848
2846
|
if (_n) return Zt;
|
|
2849
2847
|
_n = 1;
|
|
2850
2848
|
var e = /* @__PURE__ */ rt(), n = function() {
|
|
@@ -2861,10 +2859,10 @@ function us() {
|
|
|
2861
2859
|
}, Zt = n, Zt;
|
|
2862
2860
|
}
|
|
2863
2861
|
var er, Bn;
|
|
2864
|
-
function
|
|
2862
|
+
function ls() {
|
|
2865
2863
|
if (Bn) return er;
|
|
2866
2864
|
Bn = 1;
|
|
2867
|
-
var e = /* @__PURE__ */
|
|
2865
|
+
var e = /* @__PURE__ */ wr(), n = /* @__PURE__ */ is(), t = /* @__PURE__ */ ss()(), a = /* @__PURE__ */ tt(), c = /* @__PURE__ */ He(), s = e("%Math.floor%");
|
|
2868
2866
|
return er = function(o, i) {
|
|
2869
2867
|
if (typeof o != "function")
|
|
2870
2868
|
throw new c("`fn` is not a function");
|
|
@@ -2891,18 +2889,18 @@ function fs() {
|
|
|
2891
2889
|
}, er;
|
|
2892
2890
|
}
|
|
2893
2891
|
var tr, Hn;
|
|
2894
|
-
function
|
|
2892
|
+
function cs() {
|
|
2895
2893
|
if (Hn) return tr;
|
|
2896
2894
|
Hn = 1;
|
|
2897
|
-
var e =
|
|
2895
|
+
var e = Me(), n = jr(), t = ja();
|
|
2898
2896
|
return tr = function() {
|
|
2899
2897
|
return t(e, n, arguments);
|
|
2900
2898
|
}, tr;
|
|
2901
2899
|
}
|
|
2902
2900
|
var Mn;
|
|
2903
|
-
function
|
|
2901
|
+
function us() {
|
|
2904
2902
|
return Mn || (Mn = 1, function(e) {
|
|
2905
|
-
var n = /* @__PURE__ */
|
|
2903
|
+
var n = /* @__PURE__ */ ls(), t = /* @__PURE__ */ rt(), a = wa(), c = cs();
|
|
2906
2904
|
e.exports = function(r) {
|
|
2907
2905
|
var o = a(arguments), i = r.length - (arguments.length - 1);
|
|
2908
2906
|
return n(
|
|
@@ -2914,41 +2912,41 @@ function ds() {
|
|
|
2914
2912
|
}(Yt)), Yt.exports;
|
|
2915
2913
|
}
|
|
2916
2914
|
var rr, zn;
|
|
2917
|
-
function
|
|
2915
|
+
function fs() {
|
|
2918
2916
|
if (zn) return rr;
|
|
2919
2917
|
zn = 1;
|
|
2920
|
-
var e = /* @__PURE__ */
|
|
2918
|
+
var e = /* @__PURE__ */ wr(), n = us(), t = n(e("String.prototype.indexOf"));
|
|
2921
2919
|
return rr = function(c, s) {
|
|
2922
2920
|
var r = e(c, !!s);
|
|
2923
2921
|
return typeof r == "function" && t(c, ".prototype.") > -1 ? n(r) : r;
|
|
2924
2922
|
}, rr;
|
|
2925
2923
|
}
|
|
2926
|
-
const
|
|
2924
|
+
const ps = {}, ds = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2927
2925
|
__proto__: null,
|
|
2928
|
-
default:
|
|
2929
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2926
|
+
default: ps
|
|
2927
|
+
}, Symbol.toStringTag, { value: "Module" })), hs = /* @__PURE__ */ uo(ds);
|
|
2930
2928
|
var nr, Wn;
|
|
2931
|
-
function
|
|
2929
|
+
function ys() {
|
|
2932
2930
|
if (Wn) return nr;
|
|
2933
2931
|
Wn = 1;
|
|
2934
|
-
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,
|
|
2935
|
-
return
|
|
2932
|
+
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, P = String.prototype.toUpperCase, p = String.prototype.toLowerCase, O = RegExp.prototype.test, g = Array.prototype.concat, R = Array.prototype.join, C = Array.prototype.slice, A = Math.floor, k = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, T = 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(j) {
|
|
2933
|
+
return j.__proto__;
|
|
2936
2934
|
} : null);
|
|
2937
|
-
function I(
|
|
2938
|
-
if (
|
|
2939
|
-
return
|
|
2935
|
+
function I(j, w) {
|
|
2936
|
+
if (j === 1 / 0 || j === -1 / 0 || j !== j || j && j > -1e3 && j < 1e3 || O.call(/e/, w))
|
|
2937
|
+
return w;
|
|
2940
2938
|
var X = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
2941
|
-
if (typeof
|
|
2942
|
-
var ee =
|
|
2943
|
-
if (ee !==
|
|
2944
|
-
var ie = String(ee), M = v.call(
|
|
2939
|
+
if (typeof j == "number") {
|
|
2940
|
+
var ee = j < 0 ? -A(-j) : A(j);
|
|
2941
|
+
if (ee !== j) {
|
|
2942
|
+
var ie = String(ee), M = v.call(w, ie.length + 1);
|
|
2945
2943
|
return S.call(ie, X, "$&_") + "." + S.call(S.call(M, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
2946
2944
|
}
|
|
2947
2945
|
}
|
|
2948
|
-
return S.call(
|
|
2946
|
+
return S.call(w, X, "$&_");
|
|
2949
2947
|
}
|
|
2950
|
-
var re =
|
|
2951
|
-
nr = function w
|
|
2948
|
+
var re = hs, E = re.custom, N = _(E) ? E : null;
|
|
2949
|
+
nr = function j(w, X, ee, ie) {
|
|
2952
2950
|
var M = X || {};
|
|
2953
2951
|
if (W(M, "quoteStyle") && M.quoteStyle !== "single" && M.quoteStyle !== "double")
|
|
2954
2952
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -2961,335 +2959,335 @@ function vs() {
|
|
|
2961
2959
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
2962
2960
|
if (W(M, "numericSeparator") && typeof M.numericSeparator != "boolean")
|
|
2963
2961
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
2964
|
-
var
|
|
2965
|
-
if (typeof
|
|
2962
|
+
var Te = M.numericSeparator;
|
|
2963
|
+
if (typeof w > "u")
|
|
2966
2964
|
return "undefined";
|
|
2967
|
-
if (
|
|
2965
|
+
if (w === null)
|
|
2968
2966
|
return "null";
|
|
2969
|
-
if (typeof
|
|
2970
|
-
return
|
|
2971
|
-
if (typeof
|
|
2972
|
-
return
|
|
2973
|
-
if (typeof
|
|
2974
|
-
if (
|
|
2975
|
-
return 1 / 0 /
|
|
2976
|
-
var de = String(
|
|
2977
|
-
return
|
|
2967
|
+
if (typeof w == "boolean")
|
|
2968
|
+
return w ? "true" : "false";
|
|
2969
|
+
if (typeof w == "string")
|
|
2970
|
+
return Oe(w, M);
|
|
2971
|
+
if (typeof w == "number") {
|
|
2972
|
+
if (w === 0)
|
|
2973
|
+
return 1 / 0 / w > 0 ? "0" : "-0";
|
|
2974
|
+
var de = String(w);
|
|
2975
|
+
return Te ? I(w, de) : de;
|
|
2978
2976
|
}
|
|
2979
|
-
if (typeof
|
|
2980
|
-
var xe = String(
|
|
2981
|
-
return
|
|
2977
|
+
if (typeof w == "bigint") {
|
|
2978
|
+
var xe = String(w) + "n";
|
|
2979
|
+
return Te ? I(w, xe) : xe;
|
|
2982
2980
|
}
|
|
2983
2981
|
var ot = typeof M.depth > "u" ? 5 : M.depth;
|
|
2984
|
-
if (typeof ee > "u" && (ee = 0), ee >= ot && ot > 0 && typeof
|
|
2985
|
-
return L(
|
|
2986
|
-
var
|
|
2982
|
+
if (typeof ee > "u" && (ee = 0), ee >= ot && ot > 0 && typeof w == "object")
|
|
2983
|
+
return L(w) ? "[Array]" : "[Object]";
|
|
2984
|
+
var Re = ka(M, ee);
|
|
2987
2985
|
if (typeof ie > "u")
|
|
2988
2986
|
ie = [];
|
|
2989
|
-
else if (he(ie,
|
|
2987
|
+
else if (he(ie, w) >= 0)
|
|
2990
2988
|
return "[Circular]";
|
|
2991
|
-
function me(
|
|
2992
|
-
if (
|
|
2989
|
+
function me(ke, Je, Aa) {
|
|
2990
|
+
if (Je && (ie = C.call(ie), ie.push(Je)), Aa) {
|
|
2993
2991
|
var Ir = {
|
|
2994
2992
|
depth: M.depth
|
|
2995
2993
|
};
|
|
2996
|
-
return W(M, "quoteStyle") && (Ir.quoteStyle = M.quoteStyle),
|
|
2994
|
+
return W(M, "quoteStyle") && (Ir.quoteStyle = M.quoteStyle), j(ke, Ir, ee + 1, ie);
|
|
2997
2995
|
}
|
|
2998
|
-
return
|
|
2996
|
+
return j(ke, M, ee + 1, ie);
|
|
2999
2997
|
}
|
|
3000
|
-
if (typeof
|
|
3001
|
-
var Cr = ae(
|
|
2998
|
+
if (typeof w == "function" && !z(w)) {
|
|
2999
|
+
var Cr = ae(w), qr = ze(w, me);
|
|
3002
3000
|
return "[Function" + (Cr ? ": " + Cr : " (anonymous)") + "]" + (qr.length > 0 ? " { " + R.call(qr, ", ") + " }" : "");
|
|
3003
3001
|
}
|
|
3004
|
-
if (_(
|
|
3005
|
-
var Er = H ? S.call(String(
|
|
3006
|
-
return typeof
|
|
3002
|
+
if (_(w)) {
|
|
3003
|
+
var Er = H ? S.call(String(w), /^(Symbol\(.*\))_[^)]*$/, "$1") : oe.call(w);
|
|
3004
|
+
return typeof w == "object" && !H ? Ae(Er) : Er;
|
|
3007
3005
|
}
|
|
3008
|
-
if (
|
|
3009
|
-
for (var
|
|
3010
|
-
|
|
3011
|
-
return
|
|
3006
|
+
if (Ee(w)) {
|
|
3007
|
+
for (var Ie = "<" + p.call(String(w.nodeName)), it = w.attributes || [], We = 0; We < it.length; We++)
|
|
3008
|
+
Ie += " " + it[We].name + "=" + F(q(it[We].value), "double", M);
|
|
3009
|
+
return Ie += ">", w.childNodes && w.childNodes.length && (Ie += "..."), Ie += "</" + p.call(String(w.nodeName)) + ">", Ie;
|
|
3012
3010
|
}
|
|
3013
|
-
if (L(
|
|
3014
|
-
if (
|
|
3011
|
+
if (L(w)) {
|
|
3012
|
+
if (w.length === 0)
|
|
3015
3013
|
return "[]";
|
|
3016
|
-
var st =
|
|
3017
|
-
return
|
|
3014
|
+
var st = ze(w, me);
|
|
3015
|
+
return Re && !Ra(st) ? "[" + at(st, Re) + "]" : "[ " + R.call(st, ", ") + " ]";
|
|
3018
3016
|
}
|
|
3019
|
-
if (K(
|
|
3020
|
-
var lt =
|
|
3021
|
-
return !("cause" in Error.prototype) && "cause" in
|
|
3017
|
+
if (K(w)) {
|
|
3018
|
+
var lt = ze(w, me);
|
|
3019
|
+
return !("cause" in Error.prototype) && "cause" in w && !se.call(w, "cause") ? "{ [" + String(w) + "] " + R.call(g.call("[cause]: " + me(w.cause), lt), ", ") + " }" : lt.length === 0 ? "[" + String(w) + "]" : "{ [" + String(w) + "] " + R.call(lt, ", ") + " }";
|
|
3022
3020
|
}
|
|
3023
|
-
if (typeof
|
|
3024
|
-
if (N && typeof
|
|
3025
|
-
return re(
|
|
3026
|
-
if (be !== "symbol" && typeof
|
|
3027
|
-
return
|
|
3021
|
+
if (typeof w == "object" && be) {
|
|
3022
|
+
if (N && typeof w[N] == "function" && re)
|
|
3023
|
+
return re(w, { depth: ot - ee });
|
|
3024
|
+
if (be !== "symbol" && typeof w.inspect == "function")
|
|
3025
|
+
return w.inspect();
|
|
3028
3026
|
}
|
|
3029
|
-
if (we(
|
|
3027
|
+
if (we(w)) {
|
|
3030
3028
|
var Rr = [];
|
|
3031
|
-
return a && a.call(
|
|
3032
|
-
Rr.push(me(
|
|
3033
|
-
}), Pr("Map", t.call(
|
|
3029
|
+
return a && a.call(w, function(ke, Je) {
|
|
3030
|
+
Rr.push(me(Je, w, !0) + " => " + me(ke, w));
|
|
3031
|
+
}), Pr("Map", t.call(w), Rr, Re);
|
|
3034
3032
|
}
|
|
3035
|
-
if (ye(
|
|
3033
|
+
if (ye(w)) {
|
|
3036
3034
|
var kr = [];
|
|
3037
|
-
return o && o.call(
|
|
3038
|
-
kr.push(me(
|
|
3039
|
-
}), Pr("Set", r.call(
|
|
3035
|
+
return o && o.call(w, function(ke) {
|
|
3036
|
+
kr.push(me(ke, w));
|
|
3037
|
+
}), Pr("Set", r.call(w), kr, Re);
|
|
3040
3038
|
}
|
|
3041
|
-
if (
|
|
3039
|
+
if (Ce(w))
|
|
3042
3040
|
return nt("WeakMap");
|
|
3043
|
-
if (
|
|
3041
|
+
if (qe(w))
|
|
3044
3042
|
return nt("WeakSet");
|
|
3045
|
-
if (
|
|
3043
|
+
if (Se(w))
|
|
3046
3044
|
return nt("WeakRef");
|
|
3047
|
-
if (
|
|
3048
|
-
return
|
|
3049
|
-
if (B(
|
|
3050
|
-
return
|
|
3051
|
-
if (U(
|
|
3052
|
-
return
|
|
3053
|
-
if (ne(
|
|
3054
|
-
return
|
|
3055
|
-
if (typeof window < "u" &&
|
|
3045
|
+
if (V(w))
|
|
3046
|
+
return Ae(me(Number(w)));
|
|
3047
|
+
if (B(w))
|
|
3048
|
+
return Ae(me(k.call(w)));
|
|
3049
|
+
if (U(w))
|
|
3050
|
+
return Ae(x.call(w));
|
|
3051
|
+
if (ne(w))
|
|
3052
|
+
return Ae(me(String(w)));
|
|
3053
|
+
if (typeof window < "u" && w === window)
|
|
3056
3054
|
return "{ [object Window] }";
|
|
3057
|
-
if (typeof globalThis < "u" &&
|
|
3055
|
+
if (typeof globalThis < "u" && w === globalThis || typeof Ke < "u" && w === Ke)
|
|
3058
3056
|
return "{ [object globalThis] }";
|
|
3059
|
-
if (!J(
|
|
3060
|
-
var ct =
|
|
3061
|
-
return ct.length === 0 ? ft + "{}" :
|
|
3057
|
+
if (!J(w) && !z(w)) {
|
|
3058
|
+
var ct = ze(w, me), Nr = Z ? Z(w) === Object.prototype : w instanceof Object || w.constructor === Object, ut = w instanceof Object ? "" : "null prototype", Ar = !Nr && D && Object(w) === w && D in w ? v.call(Y(w), 8, -1) : ut ? "Object" : "", Na = Nr || typeof w.constructor != "function" ? "" : w.constructor.name ? w.constructor.name + " " : "", ft = Na + (Ar || ut ? "[" + R.call(g.call([], Ar || [], ut || []), ": ") + "] " : "");
|
|
3059
|
+
return ct.length === 0 ? ft + "{}" : Re ? ft + "{" + at(ct, Re) + "}" : ft + "{ " + R.call(ct, ", ") + " }";
|
|
3062
3060
|
}
|
|
3063
|
-
return String(
|
|
3061
|
+
return String(w);
|
|
3064
3062
|
};
|
|
3065
|
-
function F(
|
|
3066
|
-
var ee = (X.quoteStyle ||
|
|
3067
|
-
return ee +
|
|
3063
|
+
function F(j, w, X) {
|
|
3064
|
+
var ee = (X.quoteStyle || w) === "double" ? '"' : "'";
|
|
3065
|
+
return ee + j + ee;
|
|
3068
3066
|
}
|
|
3069
|
-
function q(
|
|
3070
|
-
return S.call(String(
|
|
3067
|
+
function q(j) {
|
|
3068
|
+
return S.call(String(j), /"/g, """);
|
|
3071
3069
|
}
|
|
3072
|
-
function L(
|
|
3073
|
-
return Y(
|
|
3070
|
+
function L(j) {
|
|
3071
|
+
return Y(j) === "[object Array]" && (!D || !(typeof j == "object" && D in j));
|
|
3074
3072
|
}
|
|
3075
|
-
function J(
|
|
3076
|
-
return Y(
|
|
3073
|
+
function J(j) {
|
|
3074
|
+
return Y(j) === "[object Date]" && (!D || !(typeof j == "object" && D in j));
|
|
3077
3075
|
}
|
|
3078
|
-
function z(
|
|
3079
|
-
return Y(
|
|
3076
|
+
function z(j) {
|
|
3077
|
+
return Y(j) === "[object RegExp]" && (!D || !(typeof j == "object" && D in j));
|
|
3080
3078
|
}
|
|
3081
|
-
function K(
|
|
3082
|
-
return Y(
|
|
3079
|
+
function K(j) {
|
|
3080
|
+
return Y(j) === "[object Error]" && (!D || !(typeof j == "object" && D in j));
|
|
3083
3081
|
}
|
|
3084
|
-
function ne(
|
|
3085
|
-
return Y(
|
|
3082
|
+
function ne(j) {
|
|
3083
|
+
return Y(j) === "[object String]" && (!D || !(typeof j == "object" && D in j));
|
|
3086
3084
|
}
|
|
3087
|
-
function
|
|
3088
|
-
return Y(
|
|
3085
|
+
function V(j) {
|
|
3086
|
+
return Y(j) === "[object Number]" && (!D || !(typeof j == "object" && D in j));
|
|
3089
3087
|
}
|
|
3090
|
-
function U(
|
|
3091
|
-
return Y(
|
|
3088
|
+
function U(j) {
|
|
3089
|
+
return Y(j) === "[object Boolean]" && (!D || !(typeof j == "object" && D in j));
|
|
3092
3090
|
}
|
|
3093
|
-
function _(
|
|
3091
|
+
function _(j) {
|
|
3094
3092
|
if (H)
|
|
3095
|
-
return
|
|
3096
|
-
if (typeof
|
|
3093
|
+
return j && typeof j == "object" && j instanceof Symbol;
|
|
3094
|
+
if (typeof j == "symbol")
|
|
3097
3095
|
return !0;
|
|
3098
|
-
if (!
|
|
3096
|
+
if (!j || typeof j != "object" || !oe)
|
|
3099
3097
|
return !1;
|
|
3100
3098
|
try {
|
|
3101
|
-
return oe.call(
|
|
3099
|
+
return oe.call(j), !0;
|
|
3102
3100
|
} catch {
|
|
3103
3101
|
}
|
|
3104
3102
|
return !1;
|
|
3105
3103
|
}
|
|
3106
|
-
function B(
|
|
3107
|
-
if (!
|
|
3104
|
+
function B(j) {
|
|
3105
|
+
if (!j || typeof j != "object" || !k)
|
|
3108
3106
|
return !1;
|
|
3109
3107
|
try {
|
|
3110
|
-
return k.call(
|
|
3108
|
+
return k.call(j), !0;
|
|
3111
3109
|
} catch {
|
|
3112
3110
|
}
|
|
3113
3111
|
return !1;
|
|
3114
3112
|
}
|
|
3115
|
-
var Q = Object.prototype.hasOwnProperty || function(
|
|
3116
|
-
return
|
|
3113
|
+
var Q = Object.prototype.hasOwnProperty || function(j) {
|
|
3114
|
+
return j in this;
|
|
3117
3115
|
};
|
|
3118
|
-
function W(
|
|
3119
|
-
return Q.call(
|
|
3116
|
+
function W(j, w) {
|
|
3117
|
+
return Q.call(j, w);
|
|
3120
3118
|
}
|
|
3121
|
-
function Y(
|
|
3122
|
-
return
|
|
3119
|
+
function Y(j) {
|
|
3120
|
+
return $.call(j);
|
|
3123
3121
|
}
|
|
3124
|
-
function ae(
|
|
3125
|
-
if (
|
|
3126
|
-
return
|
|
3127
|
-
var
|
|
3128
|
-
return
|
|
3122
|
+
function ae(j) {
|
|
3123
|
+
if (j.name)
|
|
3124
|
+
return j.name;
|
|
3125
|
+
var w = m.call(u.call(j), /^function\s*([\w$]+)/);
|
|
3126
|
+
return w ? w[1] : null;
|
|
3129
3127
|
}
|
|
3130
|
-
function he(
|
|
3131
|
-
if (
|
|
3132
|
-
return
|
|
3133
|
-
for (var X = 0, ee =
|
|
3134
|
-
if (
|
|
3128
|
+
function he(j, w) {
|
|
3129
|
+
if (j.indexOf)
|
|
3130
|
+
return j.indexOf(w);
|
|
3131
|
+
for (var X = 0, ee = j.length; X < ee; X++)
|
|
3132
|
+
if (j[X] === w)
|
|
3135
3133
|
return X;
|
|
3136
3134
|
return -1;
|
|
3137
3135
|
}
|
|
3138
|
-
function we(
|
|
3139
|
-
if (!t || !
|
|
3136
|
+
function we(j) {
|
|
3137
|
+
if (!t || !j || typeof j != "object")
|
|
3140
3138
|
return !1;
|
|
3141
3139
|
try {
|
|
3142
|
-
t.call(
|
|
3140
|
+
t.call(j);
|
|
3143
3141
|
try {
|
|
3144
|
-
r.call(
|
|
3142
|
+
r.call(j);
|
|
3145
3143
|
} catch {
|
|
3146
3144
|
return !0;
|
|
3147
3145
|
}
|
|
3148
|
-
return
|
|
3146
|
+
return j instanceof Map;
|
|
3149
3147
|
} catch {
|
|
3150
3148
|
}
|
|
3151
3149
|
return !1;
|
|
3152
3150
|
}
|
|
3153
|
-
function
|
|
3154
|
-
if (!l || !
|
|
3151
|
+
function Ce(j) {
|
|
3152
|
+
if (!l || !j || typeof j != "object")
|
|
3155
3153
|
return !1;
|
|
3156
3154
|
try {
|
|
3157
|
-
l.call(
|
|
3155
|
+
l.call(j, l);
|
|
3158
3156
|
try {
|
|
3159
|
-
y.call(
|
|
3157
|
+
y.call(j, y);
|
|
3160
3158
|
} catch {
|
|
3161
3159
|
return !0;
|
|
3162
3160
|
}
|
|
3163
|
-
return
|
|
3161
|
+
return j instanceof WeakMap;
|
|
3164
3162
|
} catch {
|
|
3165
3163
|
}
|
|
3166
3164
|
return !1;
|
|
3167
3165
|
}
|
|
3168
|
-
function
|
|
3169
|
-
if (!h || !
|
|
3166
|
+
function Se(j) {
|
|
3167
|
+
if (!h || !j || typeof j != "object")
|
|
3170
3168
|
return !1;
|
|
3171
3169
|
try {
|
|
3172
|
-
return h.call(
|
|
3170
|
+
return h.call(j), !0;
|
|
3173
3171
|
} catch {
|
|
3174
3172
|
}
|
|
3175
3173
|
return !1;
|
|
3176
3174
|
}
|
|
3177
|
-
function ye(
|
|
3178
|
-
if (!r || !
|
|
3175
|
+
function ye(j) {
|
|
3176
|
+
if (!r || !j || typeof j != "object")
|
|
3179
3177
|
return !1;
|
|
3180
3178
|
try {
|
|
3181
|
-
r.call(
|
|
3179
|
+
r.call(j);
|
|
3182
3180
|
try {
|
|
3183
|
-
t.call(
|
|
3181
|
+
t.call(j);
|
|
3184
3182
|
} catch {
|
|
3185
3183
|
return !0;
|
|
3186
3184
|
}
|
|
3187
|
-
return
|
|
3185
|
+
return j instanceof Set;
|
|
3188
3186
|
} catch {
|
|
3189
3187
|
}
|
|
3190
3188
|
return !1;
|
|
3191
3189
|
}
|
|
3192
|
-
function
|
|
3193
|
-
if (!y || !
|
|
3190
|
+
function qe(j) {
|
|
3191
|
+
if (!y || !j || typeof j != "object")
|
|
3194
3192
|
return !1;
|
|
3195
3193
|
try {
|
|
3196
|
-
y.call(
|
|
3194
|
+
y.call(j, y);
|
|
3197
3195
|
try {
|
|
3198
|
-
l.call(
|
|
3196
|
+
l.call(j, l);
|
|
3199
3197
|
} catch {
|
|
3200
3198
|
return !0;
|
|
3201
3199
|
}
|
|
3202
|
-
return
|
|
3200
|
+
return j instanceof WeakSet;
|
|
3203
3201
|
} catch {
|
|
3204
3202
|
}
|
|
3205
3203
|
return !1;
|
|
3206
3204
|
}
|
|
3207
|
-
function
|
|
3208
|
-
return !
|
|
3205
|
+
function Ee(j) {
|
|
3206
|
+
return !j || typeof j != "object" ? !1 : typeof HTMLElement < "u" && j instanceof HTMLElement ? !0 : typeof j.nodeName == "string" && typeof j.getAttribute == "function";
|
|
3209
3207
|
}
|
|
3210
|
-
function
|
|
3211
|
-
if (
|
|
3212
|
-
var X =
|
|
3213
|
-
return
|
|
3208
|
+
function Oe(j, w) {
|
|
3209
|
+
if (j.length > w.maxStringLength) {
|
|
3210
|
+
var X = j.length - w.maxStringLength, ee = "... " + X + " more character" + (X > 1 ? "s" : "");
|
|
3211
|
+
return Oe(v.call(j, 0, w.maxStringLength), w) + ee;
|
|
3214
3212
|
}
|
|
3215
|
-
var ie = S.call(S.call(
|
|
3216
|
-
return F(ie, "single",
|
|
3213
|
+
var ie = S.call(S.call(j, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ea);
|
|
3214
|
+
return F(ie, "single", w);
|
|
3217
3215
|
}
|
|
3218
|
-
function
|
|
3219
|
-
var
|
|
3216
|
+
function Ea(j) {
|
|
3217
|
+
var w = j.charCodeAt(0), X = {
|
|
3220
3218
|
8: "b",
|
|
3221
3219
|
9: "t",
|
|
3222
3220
|
10: "n",
|
|
3223
3221
|
12: "f",
|
|
3224
3222
|
13: "r"
|
|
3225
|
-
}[
|
|
3226
|
-
return X ? "\\" + X : "\\x" + (
|
|
3223
|
+
}[w];
|
|
3224
|
+
return X ? "\\" + X : "\\x" + (w < 16 ? "0" : "") + P.call(w.toString(16));
|
|
3227
3225
|
}
|
|
3228
|
-
function
|
|
3229
|
-
return "Object(" +
|
|
3226
|
+
function Ae(j) {
|
|
3227
|
+
return "Object(" + j + ")";
|
|
3230
3228
|
}
|
|
3231
|
-
function nt(
|
|
3232
|
-
return
|
|
3229
|
+
function nt(j) {
|
|
3230
|
+
return j + " { ? }";
|
|
3233
3231
|
}
|
|
3234
|
-
function Pr(
|
|
3232
|
+
function Pr(j, w, X, ee) {
|
|
3235
3233
|
var ie = ee ? at(X, ee) : R.call(X, ", ");
|
|
3236
|
-
return
|
|
3234
|
+
return j + " (" + w + ") {" + ie + "}";
|
|
3237
3235
|
}
|
|
3238
|
-
function
|
|
3239
|
-
for (var
|
|
3240
|
-
if (he(w
|
|
3236
|
+
function Ra(j) {
|
|
3237
|
+
for (var w = 0; w < j.length; w++)
|
|
3238
|
+
if (he(j[w], `
|
|
3241
3239
|
`) >= 0)
|
|
3242
3240
|
return !1;
|
|
3243
3241
|
return !0;
|
|
3244
3242
|
}
|
|
3245
|
-
function
|
|
3243
|
+
function ka(j, w) {
|
|
3246
3244
|
var X;
|
|
3247
|
-
if (
|
|
3245
|
+
if (j.indent === " ")
|
|
3248
3246
|
X = " ";
|
|
3249
|
-
else if (typeof
|
|
3250
|
-
X = R.call(Array(
|
|
3247
|
+
else if (typeof j.indent == "number" && j.indent > 0)
|
|
3248
|
+
X = R.call(Array(j.indent + 1), " ");
|
|
3251
3249
|
else
|
|
3252
3250
|
return null;
|
|
3253
3251
|
return {
|
|
3254
3252
|
base: X,
|
|
3255
|
-
prev: R.call(Array(
|
|
3253
|
+
prev: R.call(Array(w + 1), X)
|
|
3256
3254
|
};
|
|
3257
3255
|
}
|
|
3258
|
-
function at(
|
|
3259
|
-
if (
|
|
3256
|
+
function at(j, w) {
|
|
3257
|
+
if (j.length === 0)
|
|
3260
3258
|
return "";
|
|
3261
3259
|
var X = `
|
|
3262
|
-
` +
|
|
3263
|
-
return X + R.call(
|
|
3264
|
-
` +
|
|
3260
|
+
` + w.prev + w.base;
|
|
3261
|
+
return X + R.call(j, "," + X) + `
|
|
3262
|
+
` + w.prev;
|
|
3265
3263
|
}
|
|
3266
|
-
function
|
|
3267
|
-
var X = L(
|
|
3264
|
+
function ze(j, w) {
|
|
3265
|
+
var X = L(j), ee = [];
|
|
3268
3266
|
if (X) {
|
|
3269
|
-
ee.length =
|
|
3270
|
-
for (var ie = 0; ie <
|
|
3271
|
-
ee[ie] = W(
|
|
3267
|
+
ee.length = j.length;
|
|
3268
|
+
for (var ie = 0; ie < j.length; ie++)
|
|
3269
|
+
ee[ie] = W(j, ie) ? w(j[ie], j) : "";
|
|
3272
3270
|
}
|
|
3273
|
-
var M = typeof T == "function" ? T(
|
|
3271
|
+
var M = typeof T == "function" ? T(j) : [], be;
|
|
3274
3272
|
if (H) {
|
|
3275
3273
|
be = {};
|
|
3276
|
-
for (var
|
|
3277
|
-
be["$" + M[
|
|
3274
|
+
for (var Te = 0; Te < M.length; Te++)
|
|
3275
|
+
be["$" + M[Te]] = M[Te];
|
|
3278
3276
|
}
|
|
3279
|
-
for (var de in
|
|
3280
|
-
W(
|
|
3277
|
+
for (var de in j)
|
|
3278
|
+
W(j, de) && (X && String(Number(de)) === de && de < j.length || H && be["$" + de] instanceof Symbol || (O.call(/[^\w$]/, de) ? ee.push(w(de, j) + ": " + w(j[de], j)) : ee.push(de + ": " + w(j[de], j))));
|
|
3281
3279
|
if (typeof T == "function")
|
|
3282
3280
|
for (var xe = 0; xe < M.length; xe++)
|
|
3283
|
-
se.call(
|
|
3281
|
+
se.call(j, M[xe]) && ee.push("[" + w(M[xe]) + "]: " + w(j[M[xe]], j));
|
|
3284
3282
|
return ee;
|
|
3285
3283
|
}
|
|
3286
3284
|
return nr;
|
|
3287
3285
|
}
|
|
3288
3286
|
var ar, Jn;
|
|
3289
|
-
function
|
|
3287
|
+
function ms() {
|
|
3290
3288
|
if (Jn) return ar;
|
|
3291
3289
|
Jn = 1;
|
|
3292
|
-
var e = /* @__PURE__ */
|
|
3290
|
+
var e = /* @__PURE__ */ wr(), n = fs(), t = /* @__PURE__ */ ys(), a = /* @__PURE__ */ He(), 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) {
|
|
3293
3291
|
for (var v = u, S; (S = v.next) !== null; v = S)
|
|
3294
3292
|
if (S.key === m)
|
|
3295
3293
|
return v.next = S.next, S.next = /** @type {NonNullable<typeof list.next>} */
|
|
@@ -3297,7 +3295,7 @@ function bs() {
|
|
|
3297
3295
|
}, h = function(u, m) {
|
|
3298
3296
|
var v = f(u, m);
|
|
3299
3297
|
return v && v.value;
|
|
3300
|
-
},
|
|
3298
|
+
}, x = function(u, m, v) {
|
|
3301
3299
|
var S = f(u, m);
|
|
3302
3300
|
S ? S.value = v : u.next = /** @type {import('.').ListNode<typeof value>} */
|
|
3303
3301
|
{
|
|
@@ -3306,7 +3304,7 @@ function bs() {
|
|
|
3306
3304
|
next: u.next,
|
|
3307
3305
|
value: v
|
|
3308
3306
|
};
|
|
3309
|
-
},
|
|
3307
|
+
}, $ = function(u, m) {
|
|
3310
3308
|
return !!f(u, m);
|
|
3311
3309
|
};
|
|
3312
3310
|
return ar = function() {
|
|
@@ -3333,20 +3331,20 @@ function bs() {
|
|
|
3333
3331
|
if (v)
|
|
3334
3332
|
return y(v, p);
|
|
3335
3333
|
} else if (S)
|
|
3336
|
-
return
|
|
3334
|
+
return $(S, p);
|
|
3337
3335
|
return !1;
|
|
3338
3336
|
},
|
|
3339
3337
|
set: function(p, O) {
|
|
3340
|
-
c && p && (typeof p == "object" || typeof p == "function") ? (m || (m = new c()), o(m, p, O)) : s ? (v || (v = new s()), d(v, p, O)) : (S || (S = { key: {}, next: null }),
|
|
3338
|
+
c && p && (typeof p == "object" || typeof p == "function") ? (m || (m = new c()), o(m, p, O)) : s ? (v || (v = new s()), d(v, p, O)) : (S || (S = { key: {}, next: null }), x(S, p, O));
|
|
3341
3339
|
}
|
|
3342
3340
|
};
|
|
3343
3341
|
return P;
|
|
3344
3342
|
}, ar;
|
|
3345
3343
|
}
|
|
3346
|
-
var or,
|
|
3344
|
+
var or, Vn;
|
|
3347
3345
|
function Sr() {
|
|
3348
|
-
if (
|
|
3349
|
-
|
|
3346
|
+
if (Vn) return or;
|
|
3347
|
+
Vn = 1;
|
|
3350
3348
|
var e = String.prototype.replace, n = /%20/g, t = {
|
|
3351
3349
|
RFC1738: "RFC1738",
|
|
3352
3350
|
RFC3986: "RFC3986"
|
|
@@ -3365,10 +3363,10 @@ function Sr() {
|
|
|
3365
3363
|
RFC3986: t.RFC3986
|
|
3366
3364
|
}, or;
|
|
3367
3365
|
}
|
|
3368
|
-
var ir,
|
|
3369
|
-
function
|
|
3370
|
-
if (
|
|
3371
|
-
|
|
3366
|
+
var ir, Gn;
|
|
3367
|
+
function Sa() {
|
|
3368
|
+
if (Gn) return ir;
|
|
3369
|
+
Gn = 1;
|
|
3372
3370
|
var e = /* @__PURE__ */ Sr(), n = Object.prototype.hasOwnProperty, t = Array.isArray, a = function() {
|
|
3373
3371
|
for (var u = [], m = 0; m < 256; ++m)
|
|
3374
3372
|
u.push("%" + ((m < 16 ? "0" : "") + m.toString(16)).toUpperCase());
|
|
@@ -3467,9 +3465,9 @@ function ba() {
|
|
|
3467
3465
|
return Object.prototype.toString.call(m) === "[object RegExp]";
|
|
3468
3466
|
}, h = function(m) {
|
|
3469
3467
|
return !m || typeof m != "object" ? !1 : !!(m.constructor && m.constructor.isBuffer && m.constructor.isBuffer(m));
|
|
3470
|
-
}, b = function(m, v) {
|
|
3471
|
-
return [].concat(m, v);
|
|
3472
3468
|
}, x = function(m, v) {
|
|
3469
|
+
return [].concat(m, v);
|
|
3470
|
+
}, $ = function(m, v) {
|
|
3473
3471
|
if (t(m)) {
|
|
3474
3472
|
for (var S = [], P = 0; P < m.length; P += 1)
|
|
3475
3473
|
S.push(v(m[P]));
|
|
@@ -3480,21 +3478,21 @@ function ba() {
|
|
|
3480
3478
|
return ir = {
|
|
3481
3479
|
arrayToObject: s,
|
|
3482
3480
|
assign: o,
|
|
3483
|
-
combine:
|
|
3481
|
+
combine: x,
|
|
3484
3482
|
compact: y,
|
|
3485
3483
|
decode: i,
|
|
3486
3484
|
encode: d,
|
|
3487
3485
|
isBuffer: h,
|
|
3488
3486
|
isRegExp: f,
|
|
3489
|
-
maybeMap:
|
|
3487
|
+
maybeMap: $,
|
|
3490
3488
|
merge: r
|
|
3491
3489
|
}, ir;
|
|
3492
3490
|
}
|
|
3493
3491
|
var sr, Dn;
|
|
3494
|
-
function
|
|
3492
|
+
function gs() {
|
|
3495
3493
|
if (Dn) return sr;
|
|
3496
3494
|
Dn = 1;
|
|
3497
|
-
var e =
|
|
3495
|
+
var e = ms(), n = /* @__PURE__ */ Sa(), t = /* @__PURE__ */ Sr(), a = Object.prototype.hasOwnProperty, c = {
|
|
3498
3496
|
brackets: function(u) {
|
|
3499
3497
|
return u + "[]";
|
|
3500
3498
|
},
|
|
@@ -3505,8 +3503,8 @@ function xs() {
|
|
|
3505
3503
|
repeat: function(u) {
|
|
3506
3504
|
return u;
|
|
3507
3505
|
}
|
|
3508
|
-
}, s = Array.isArray, r = Array.prototype.push, o = function(
|
|
3509
|
-
r.apply(
|
|
3506
|
+
}, s = Array.isArray, r = Array.prototype.push, o = function($, u) {
|
|
3507
|
+
r.apply($, s(u) ? u : [u]);
|
|
3510
3508
|
}, i = Date.prototype.toISOString, l = t.default, d = {
|
|
3511
3509
|
addQueryPrefix: !1,
|
|
3512
3510
|
allowDots: !1,
|
|
@@ -3530,7 +3528,7 @@ function xs() {
|
|
|
3530
3528
|
strictNullHandling: !1
|
|
3531
3529
|
}, y = function(u) {
|
|
3532
3530
|
return typeof u == "string" || typeof u == "number" || typeof u == "boolean" || typeof u == "symbol" || typeof u == "bigint";
|
|
3533
|
-
}, f = {}, h = function
|
|
3531
|
+
}, f = {}, h = function $(u, m, v, S, P, p, O, g, R, C, A, k, T, oe, H, D, se, Z) {
|
|
3534
3532
|
for (var I = u, re = Z, E = 0, N = !1; (re = re.get(f)) !== void 0 && !N; ) {
|
|
3535
3533
|
var F = re.get(u);
|
|
3536
3534
|
if (E += 1, typeof F < "u") {
|
|
@@ -3569,13 +3567,13 @@ function xs() {
|
|
|
3569
3567
|
var K = g ? m.replace(/\./g, "%2E") : m, ne = S && s(I) && I.length === 1 ? K + "[]" : K;
|
|
3570
3568
|
if (P && s(I) && I.length === 0)
|
|
3571
3569
|
return ne + "[]";
|
|
3572
|
-
for (var
|
|
3573
|
-
var U = J[
|
|
3570
|
+
for (var V = 0; V < J.length; ++V) {
|
|
3571
|
+
var U = J[V], _ = typeof U == "object" && typeof U.value < "u" ? U.value : I[U];
|
|
3574
3572
|
if (!(O && _ === null)) {
|
|
3575
3573
|
var B = k && g ? U.replace(/\./g, "%2E") : U, Q = s(I) ? typeof v == "function" ? v(ne, B) : ne : ne + (k ? "." + B : "[" + B + "]");
|
|
3576
3574
|
Z.set(u, E);
|
|
3577
3575
|
var W = e();
|
|
3578
|
-
W.set(f, Z), o(L,
|
|
3576
|
+
W.set(f, Z), o(L, $(
|
|
3579
3577
|
_,
|
|
3580
3578
|
Q,
|
|
3581
3579
|
v,
|
|
@@ -3598,7 +3596,7 @@ function xs() {
|
|
|
3598
3596
|
}
|
|
3599
3597
|
}
|
|
3600
3598
|
return L;
|
|
3601
|
-
},
|
|
3599
|
+
}, x = function(u) {
|
|
3602
3600
|
if (!u)
|
|
3603
3601
|
return d;
|
|
3604
3602
|
if (typeof u.allowEmptyArrays < "u" && typeof u.allowEmptyArrays != "boolean")
|
|
@@ -3644,8 +3642,8 @@ function xs() {
|
|
|
3644
3642
|
strictNullHandling: typeof u.strictNullHandling == "boolean" ? u.strictNullHandling : d.strictNullHandling
|
|
3645
3643
|
};
|
|
3646
3644
|
};
|
|
3647
|
-
return sr = function(
|
|
3648
|
-
var m =
|
|
3645
|
+
return sr = function($, u) {
|
|
3646
|
+
var m = $, v = x(u), S, P;
|
|
3649
3647
|
typeof v.filter == "function" ? (P = v.filter, m = P("", m)) : s(v.filter) && (P = v.filter, S = P);
|
|
3650
3648
|
var p = [];
|
|
3651
3649
|
if (typeof m != "object" || m === null)
|
|
@@ -3680,10 +3678,10 @@ function xs() {
|
|
|
3680
3678
|
}, sr;
|
|
3681
3679
|
}
|
|
3682
3680
|
var lr, Qn;
|
|
3683
|
-
function
|
|
3681
|
+
function vs() {
|
|
3684
3682
|
if (Qn) return lr;
|
|
3685
3683
|
Qn = 1;
|
|
3686
|
-
var e = /* @__PURE__ */
|
|
3684
|
+
var e = /* @__PURE__ */ Sa(), n = Object.prototype.hasOwnProperty, t = Array.isArray, a = {
|
|
3687
3685
|
allowDots: !1,
|
|
3688
3686
|
allowEmptyArrays: !1,
|
|
3689
3687
|
allowPrototypes: !1,
|
|
@@ -3705,63 +3703,63 @@ function $s() {
|
|
|
3705
3703
|
strictDepth: !1,
|
|
3706
3704
|
strictNullHandling: !1
|
|
3707
3705
|
}, c = function(f) {
|
|
3708
|
-
return f.replace(/&#(\d+);/g, function(h,
|
|
3709
|
-
return String.fromCharCode(parseInt(
|
|
3706
|
+
return f.replace(/&#(\d+);/g, function(h, x) {
|
|
3707
|
+
return String.fromCharCode(parseInt(x, 10));
|
|
3710
3708
|
});
|
|
3711
3709
|
}, s = function(f, h) {
|
|
3712
3710
|
return f && typeof f == "string" && h.comma && f.indexOf(",") > -1 ? f.split(",") : f;
|
|
3713
|
-
}, r = "utf8=%26%2310003%3B", o = "utf8=%E2%9C%93", i = function(h,
|
|
3714
|
-
var
|
|
3711
|
+
}, r = "utf8=%26%2310003%3B", o = "utf8=%E2%9C%93", i = function(h, x) {
|
|
3712
|
+
var $ = { __proto__: null }, u = x.ignoreQueryPrefix ? h.replace(/^\?/, "") : h;
|
|
3715
3713
|
u = u.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
3716
|
-
var m =
|
|
3717
|
-
if (
|
|
3714
|
+
var m = x.parameterLimit === 1 / 0 ? void 0 : x.parameterLimit, v = u.split(x.delimiter, m), S = -1, P, p = x.charset;
|
|
3715
|
+
if (x.charsetSentinel)
|
|
3718
3716
|
for (P = 0; P < v.length; ++P)
|
|
3719
3717
|
v[P].indexOf("utf8=") === 0 && (v[P] === o ? p = "utf-8" : v[P] === r && (p = "iso-8859-1"), S = P, P = v.length);
|
|
3720
3718
|
for (P = 0; P < v.length; ++P)
|
|
3721
3719
|
if (P !== S) {
|
|
3722
3720
|
var O = v[P], g = O.indexOf("]="), R = g === -1 ? O.indexOf("=") : g + 1, C, A;
|
|
3723
|
-
R === -1 ? (C =
|
|
3724
|
-
s(O.slice(R + 1),
|
|
3721
|
+
R === -1 ? (C = x.decoder(O, a.decoder, p, "key"), A = x.strictNullHandling ? null : "") : (C = x.decoder(O.slice(0, R), a.decoder, p, "key"), A = e.maybeMap(
|
|
3722
|
+
s(O.slice(R + 1), x),
|
|
3725
3723
|
function(T) {
|
|
3726
|
-
return
|
|
3724
|
+
return x.decoder(T, a.decoder, p, "value");
|
|
3727
3725
|
}
|
|
3728
|
-
)), A &&
|
|
3729
|
-
var k = n.call(
|
|
3730
|
-
k &&
|
|
3726
|
+
)), A && x.interpretNumericEntities && p === "iso-8859-1" && (A = c(A)), O.indexOf("[]=") > -1 && (A = t(A) ? [A] : A);
|
|
3727
|
+
var k = n.call($, C);
|
|
3728
|
+
k && x.duplicates === "combine" ? $[C] = e.combine($[C], A) : (!k || x.duplicates === "last") && ($[C] = A);
|
|
3731
3729
|
}
|
|
3732
|
-
return
|
|
3733
|
-
}, l = function(f, h,
|
|
3734
|
-
for (var u =
|
|
3730
|
+
return $;
|
|
3731
|
+
}, l = function(f, h, x, $) {
|
|
3732
|
+
for (var u = $ ? h : s(h, x), m = f.length - 1; m >= 0; --m) {
|
|
3735
3733
|
var v, S = f[m];
|
|
3736
|
-
if (S === "[]" &&
|
|
3737
|
-
v =
|
|
3734
|
+
if (S === "[]" && x.parseArrays)
|
|
3735
|
+
v = x.allowEmptyArrays && (u === "" || x.strictNullHandling && u === null) ? [] : [].concat(u);
|
|
3738
3736
|
else {
|
|
3739
|
-
v =
|
|
3740
|
-
var P = S.charAt(0) === "[" && S.charAt(S.length - 1) === "]" ? S.slice(1, -1) : S, p =
|
|
3741
|
-
!
|
|
3737
|
+
v = x.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
3738
|
+
var P = S.charAt(0) === "[" && S.charAt(S.length - 1) === "]" ? S.slice(1, -1) : S, p = x.decodeDotInKeys ? P.replace(/%2E/g, ".") : P, O = parseInt(p, 10);
|
|
3739
|
+
!x.parseArrays && p === "" ? v = { 0: u } : !isNaN(O) && S !== p && String(O) === p && O >= 0 && x.parseArrays && O <= x.arrayLimit ? (v = [], v[O] = u) : p !== "__proto__" && (v[p] = u);
|
|
3742
3740
|
}
|
|
3743
3741
|
u = v;
|
|
3744
3742
|
}
|
|
3745
3743
|
return u;
|
|
3746
|
-
}, d = function(h,
|
|
3744
|
+
}, d = function(h, x, $, u) {
|
|
3747
3745
|
if (h) {
|
|
3748
|
-
var m =
|
|
3746
|
+
var m = $.allowDots ? h.replace(/\.([^.[]+)/g, "[$1]") : h, v = /(\[[^[\]]*])/, S = /(\[[^[\]]*])/g, P = $.depth > 0 && v.exec(m), p = P ? m.slice(0, P.index) : m, O = [];
|
|
3749
3747
|
if (p) {
|
|
3750
|
-
if (
|
|
3748
|
+
if (!$.plainObjects && n.call(Object.prototype, p) && !$.allowPrototypes)
|
|
3751
3749
|
return;
|
|
3752
3750
|
O.push(p);
|
|
3753
3751
|
}
|
|
3754
|
-
for (var g = 0;
|
|
3755
|
-
if (g += 1,
|
|
3752
|
+
for (var g = 0; $.depth > 0 && (P = S.exec(m)) !== null && g < $.depth; ) {
|
|
3753
|
+
if (g += 1, !$.plainObjects && n.call(Object.prototype, P[1].slice(1, -1)) && !$.allowPrototypes)
|
|
3756
3754
|
return;
|
|
3757
3755
|
O.push(P[1]);
|
|
3758
3756
|
}
|
|
3759
3757
|
if (P) {
|
|
3760
|
-
if (
|
|
3761
|
-
throw new RangeError("Input depth exceeded depth option of " +
|
|
3758
|
+
if ($.strictDepth === !0)
|
|
3759
|
+
throw new RangeError("Input depth exceeded depth option of " + $.depth + " and strictDepth is true");
|
|
3762
3760
|
O.push("[" + m.slice(P.index) + "]");
|
|
3763
3761
|
}
|
|
3764
|
-
return l(O,
|
|
3762
|
+
return l(O, x, $, u);
|
|
3765
3763
|
}
|
|
3766
3764
|
}, y = function(h) {
|
|
3767
3765
|
if (!h)
|
|
@@ -3774,8 +3772,8 @@ function $s() {
|
|
|
3774
3772
|
throw new TypeError("Decoder has to be a function.");
|
|
3775
3773
|
if (typeof h.charset < "u" && h.charset !== "utf-8" && h.charset !== "iso-8859-1")
|
|
3776
3774
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
3777
|
-
var
|
|
3778
|
-
if (
|
|
3775
|
+
var x = typeof h.charset > "u" ? a.charset : h.charset, $ = typeof h.duplicates > "u" ? a.duplicates : h.duplicates;
|
|
3776
|
+
if ($ !== "combine" && $ !== "first" && $ !== "last")
|
|
3779
3777
|
throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
3780
3778
|
var u = typeof h.allowDots > "u" ? h.decodeDotInKeys === !0 ? !0 : a.allowDots : !!h.allowDots;
|
|
3781
3779
|
return {
|
|
@@ -3784,7 +3782,7 @@ function $s() {
|
|
|
3784
3782
|
allowPrototypes: typeof h.allowPrototypes == "boolean" ? h.allowPrototypes : a.allowPrototypes,
|
|
3785
3783
|
allowSparse: typeof h.allowSparse == "boolean" ? h.allowSparse : a.allowSparse,
|
|
3786
3784
|
arrayLimit: typeof h.arrayLimit == "number" ? h.arrayLimit : a.arrayLimit,
|
|
3787
|
-
charset:
|
|
3785
|
+
charset: x,
|
|
3788
3786
|
charsetSentinel: typeof h.charsetSentinel == "boolean" ? h.charsetSentinel : a.charsetSentinel,
|
|
3789
3787
|
comma: typeof h.comma == "boolean" ? h.comma : a.comma,
|
|
3790
3788
|
decodeDotInKeys: typeof h.decodeDotInKeys == "boolean" ? h.decodeDotInKeys : a.decodeDotInKeys,
|
|
@@ -3792,7 +3790,7 @@ function $s() {
|
|
|
3792
3790
|
delimiter: typeof h.delimiter == "string" || e.isRegExp(h.delimiter) ? h.delimiter : a.delimiter,
|
|
3793
3791
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
3794
3792
|
depth: typeof h.depth == "number" || h.depth === !1 ? +h.depth : a.depth,
|
|
3795
|
-
duplicates:
|
|
3793
|
+
duplicates: $,
|
|
3796
3794
|
ignoreQueryPrefix: h.ignoreQueryPrefix === !0,
|
|
3797
3795
|
interpretNumericEntities: typeof h.interpretNumericEntities == "boolean" ? h.interpretNumericEntities : a.interpretNumericEntities,
|
|
3798
3796
|
parameterLimit: typeof h.parameterLimit == "number" ? h.parameterLimit : a.parameterLimit,
|
|
@@ -3803,21 +3801,21 @@ function $s() {
|
|
|
3803
3801
|
};
|
|
3804
3802
|
};
|
|
3805
3803
|
return lr = function(f, h) {
|
|
3806
|
-
var
|
|
3804
|
+
var x = y(h);
|
|
3807
3805
|
if (f === "" || f === null || typeof f > "u")
|
|
3808
|
-
return
|
|
3809
|
-
for (var
|
|
3810
|
-
var S = m[v], P = d(S,
|
|
3811
|
-
u = e.merge(u, P,
|
|
3806
|
+
return x.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
3807
|
+
for (var $ = typeof f == "string" ? i(f, x) : f, u = x.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, m = Object.keys($), v = 0; v < m.length; ++v) {
|
|
3808
|
+
var S = m[v], P = d(S, $[S], x, typeof f == "string");
|
|
3809
|
+
u = e.merge(u, P, x);
|
|
3812
3810
|
}
|
|
3813
|
-
return
|
|
3811
|
+
return x.allowSparse === !0 ? u : e.compact(u);
|
|
3814
3812
|
}, lr;
|
|
3815
3813
|
}
|
|
3816
3814
|
var cr, Kn;
|
|
3817
|
-
function
|
|
3815
|
+
function Oa() {
|
|
3818
3816
|
if (Kn) return cr;
|
|
3819
3817
|
Kn = 1;
|
|
3820
|
-
var e = /* @__PURE__ */
|
|
3818
|
+
var e = /* @__PURE__ */ gs(), n = /* @__PURE__ */ vs(), t = /* @__PURE__ */ Sr();
|
|
3821
3819
|
return cr = {
|
|
3822
3820
|
formats: t,
|
|
3823
3821
|
parse: n,
|
|
@@ -3825,10 +3823,10 @@ function xa() {
|
|
|
3825
3823
|
}, cr;
|
|
3826
3824
|
}
|
|
3827
3825
|
var Yn;
|
|
3828
|
-
function
|
|
3829
|
-
if (Yn) return
|
|
3826
|
+
function bs() {
|
|
3827
|
+
if (Yn) return Pe;
|
|
3830
3828
|
Yn = 1;
|
|
3831
|
-
var e =
|
|
3829
|
+
var e = Fi();
|
|
3832
3830
|
function n() {
|
|
3833
3831
|
this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
|
|
3834
3832
|
}
|
|
@@ -3862,10 +3860,10 @@ function ws() {
|
|
|
3862
3860
|
], d = 255, y = /^[+a-z0-9A-Z_-]{0,63}$/, f = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, h = {
|
|
3863
3861
|
javascript: !0,
|
|
3864
3862
|
"javascript:": !0
|
|
3865
|
-
},
|
|
3863
|
+
}, x = {
|
|
3866
3864
|
javascript: !0,
|
|
3867
3865
|
"javascript:": !0
|
|
3868
|
-
},
|
|
3866
|
+
}, $ = {
|
|
3869
3867
|
http: !0,
|
|
3870
3868
|
https: !0,
|
|
3871
3869
|
ftp: !0,
|
|
@@ -3876,7 +3874,7 @@ function ws() {
|
|
|
3876
3874
|
"ftp:": !0,
|
|
3877
3875
|
"gopher:": !0,
|
|
3878
3876
|
"file:": !0
|
|
3879
|
-
}, u = /* @__PURE__ */
|
|
3877
|
+
}, u = /* @__PURE__ */ Oa();
|
|
3880
3878
|
function m(p, O, g) {
|
|
3881
3879
|
if (p && typeof p == "object" && p instanceof n)
|
|
3882
3880
|
return p;
|
|
@@ -3902,9 +3900,9 @@ function ws() {
|
|
|
3902
3900
|
}
|
|
3903
3901
|
if (g || H || T.match(/^\/\/[^@/]+@[^@/]+/)) {
|
|
3904
3902
|
var se = T.substr(0, 2) === "//";
|
|
3905
|
-
se && !(H &&
|
|
3903
|
+
se && !(H && x[H]) && (T = T.substr(2), this.slashes = !0);
|
|
3906
3904
|
}
|
|
3907
|
-
if (!
|
|
3905
|
+
if (!x[H] && (se || H && !$[H])) {
|
|
3908
3906
|
for (var Z = -1, I = 0; I < l.length; I++) {
|
|
3909
3907
|
var re = T.indexOf(l[I]);
|
|
3910
3908
|
re !== -1 && (Z === -1 || re < Z) && (Z = re);
|
|
@@ -3924,8 +3922,8 @@ function ws() {
|
|
|
3924
3922
|
for (var z = "", K = 0, ne = J.length; K < ne; K++)
|
|
3925
3923
|
J.charCodeAt(K) > 127 ? z += "x" : z += J[K];
|
|
3926
3924
|
if (!z.match(y)) {
|
|
3927
|
-
var
|
|
3928
|
-
_ && (
|
|
3925
|
+
var V = q.slice(0, I), U = q.slice(I + 1), _ = J.match(f);
|
|
3926
|
+
_ && (V.push(_[1]), U.unshift(_[2])), U.length && (T = "/" + U.join(".") + T), this.hostname = V.join(".");
|
|
3929
3927
|
break;
|
|
3930
3928
|
}
|
|
3931
3929
|
}
|
|
@@ -3945,7 +3943,7 @@ function ws() {
|
|
|
3945
3943
|
var ae = T.indexOf("#");
|
|
3946
3944
|
ae !== -1 && (this.hash = T.substr(ae), T = T.slice(0, ae));
|
|
3947
3945
|
var he = T.indexOf("?");
|
|
3948
|
-
if (he !== -1 ? (this.search = T.substr(he), this.query = T.substr(he + 1), O && (this.query = u.parse(this.query)), T = T.slice(0, he)) : O && (this.search = "", this.query = {}), T && (this.pathname = T),
|
|
3946
|
+
if (he !== -1 ? (this.search = T.substr(he), this.query = T.substr(he + 1), O && (this.query = u.parse(this.query)), T = T.slice(0, he)) : O && (this.search = "", this.query = {}), T && (this.pathname = T), $[D] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
|
|
3949
3947
|
var B = this.pathname || "", we = this.search || "";
|
|
3950
3948
|
this.path = B + we;
|
|
3951
3949
|
}
|
|
@@ -3963,7 +3961,7 @@ function ws() {
|
|
|
3963
3961
|
addQueryPrefix: !1
|
|
3964
3962
|
}));
|
|
3965
3963
|
var k = this.search || A && "?" + A || "";
|
|
3966
|
-
return O && O.substr(-1) !== ":" && (O += ":"), this.slashes || (!O ||
|
|
3964
|
+
return O && O.substr(-1) !== ":" && (O += ":"), this.slashes || (!O || $[O]) && C !== !1 ? (C = "//" + (C || ""), g && g.charAt(0) !== "/" && (g = "/" + g)) : C || (C = ""), R && R.charAt(0) !== "#" && (R = "#" + R), k && k.charAt(0) !== "?" && (k = "?" + k), g = g.replace(/[?#]/g, function(T) {
|
|
3967
3965
|
return encodeURIComponent(T);
|
|
3968
3966
|
}), k = k.replace("#", "%23"), O + C + g + k + R;
|
|
3969
3967
|
};
|
|
@@ -3992,17 +3990,17 @@ function ws() {
|
|
|
3992
3990
|
var oe = k[T];
|
|
3993
3991
|
oe !== "protocol" && (g[oe] = p[oe]);
|
|
3994
3992
|
}
|
|
3995
|
-
return
|
|
3993
|
+
return $[g.protocol] && g.hostname && !g.pathname && (g.pathname = "/", g.path = g.pathname), g.href = g.format(), g;
|
|
3996
3994
|
}
|
|
3997
3995
|
if (p.protocol && p.protocol !== g.protocol) {
|
|
3998
|
-
if (
|
|
3996
|
+
if (!$[p.protocol]) {
|
|
3999
3997
|
for (var H = Object.keys(p), D = 0; D < H.length; D++) {
|
|
4000
3998
|
var se = H[D];
|
|
4001
3999
|
g[se] = p[se];
|
|
4002
4000
|
}
|
|
4003
4001
|
return g.href = g.format(), g;
|
|
4004
4002
|
}
|
|
4005
|
-
if (g.protocol = p.protocol, !p.host && !
|
|
4003
|
+
if (g.protocol = p.protocol, !p.host && !x[p.protocol]) {
|
|
4006
4004
|
for (var L = (p.pathname || "").split("/"); L.length && !(p.host = L.shift()); )
|
|
4007
4005
|
;
|
|
4008
4006
|
p.host || (p.host = ""), p.hostname || (p.hostname = ""), L[0] !== "" && L.unshift(""), L.length < 2 && L.unshift(""), g.pathname = L.join("/");
|
|
@@ -4014,7 +4012,7 @@ function ws() {
|
|
|
4014
4012
|
}
|
|
4015
4013
|
return g.slashes = g.slashes || p.slashes, g.href = g.format(), g;
|
|
4016
4014
|
}
|
|
4017
|
-
var re = g.pathname && g.pathname.charAt(0) === "/", E = p.host || p.pathname && p.pathname.charAt(0) === "/", N = E || re || g.host && p.pathname, F = N, q = g.pathname && g.pathname.split("/") || [], L = p.pathname && p.pathname.split("/") || [], J = g.protocol &&
|
|
4015
|
+
var re = g.pathname && g.pathname.charAt(0) === "/", E = p.host || p.pathname && p.pathname.charAt(0) === "/", N = E || re || g.host && p.pathname, F = N, q = g.pathname && g.pathname.split("/") || [], L = p.pathname && p.pathname.split("/") || [], J = g.protocol && !$[g.protocol];
|
|
4018
4016
|
if (J && (g.hostname = "", g.port = null, g.host && (q[0] === "" ? q[0] = g.host : q.unshift(g.host)), g.host = "", p.protocol && (p.hostname = null, p.port = null, p.host && (L[0] === "" ? L[0] = p.host : L.unshift(p.host)), p.host = null), N = N && (L[0] === "" || q[0] === "")), E)
|
|
4019
4017
|
g.host = p.host || p.host === "" ? p.host : g.host, g.hostname = p.hostname || p.hostname === "" ? p.hostname : g.hostname, g.search = p.search, g.query = p.query, q = L;
|
|
4020
4018
|
else if (L.length)
|
|
@@ -4029,10 +4027,10 @@ function ws() {
|
|
|
4029
4027
|
}
|
|
4030
4028
|
if (!q.length)
|
|
4031
4029
|
return g.pathname = null, g.search ? g.path = "/" + g.search : g.path = null, g.href = g.format(), g;
|
|
4032
|
-
for (var K = q.slice(-1)[0], ne = (g.host || p.host || q.length > 1) && (K === "." || K === "..") || K === "",
|
|
4033
|
-
K = q[U], K === "." ? q.splice(U, 1) : K === ".." ? (q.splice(U, 1),
|
|
4030
|
+
for (var K = q.slice(-1)[0], ne = (g.host || p.host || q.length > 1) && (K === "." || K === "..") || K === "", V = 0, U = q.length; U >= 0; U--)
|
|
4031
|
+
K = q[U], K === "." ? q.splice(U, 1) : K === ".." ? (q.splice(U, 1), V++) : V && (q.splice(U, 1), V--);
|
|
4034
4032
|
if (!N && !F)
|
|
4035
|
-
for (;
|
|
4033
|
+
for (; V--; V)
|
|
4036
4034
|
q.unshift("..");
|
|
4037
4035
|
N && q[0] !== "" && (!q[0] || q[0].charAt(0) !== "/") && q.unshift(""), ne && q.join("/").substr(-1) !== "/" && q.push("");
|
|
4038
4036
|
var _ = q[0] === "" || q[0] && q[0].charAt(0) === "/";
|
|
@@ -4045,14 +4043,14 @@ function ws() {
|
|
|
4045
4043
|
}, n.prototype.parseHost = function() {
|
|
4046
4044
|
var p = this.host, O = a.exec(p);
|
|
4047
4045
|
O && (O = O[0], O !== ":" && (this.port = O.substr(1)), p = p.substr(0, p.length - O.length)), p && (this.hostname = p);
|
|
4048
|
-
},
|
|
4046
|
+
}, Pe.parse = m, Pe.resolve = S, Pe.resolveObject = P, Pe.format = v, Pe.Url = n, Pe;
|
|
4049
4047
|
}
|
|
4050
|
-
var ur =
|
|
4048
|
+
var ur = bs(), fr = /* @__PURE__ */ Oa(), xs = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), $s = class {
|
|
4051
4049
|
constructor(e, n = {}) {
|
|
4052
4050
|
this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
|
|
4053
4051
|
harIsAlreadyEncoded: !1,
|
|
4054
4052
|
...n
|
|
4055
|
-
}, this.requests = [],
|
|
4053
|
+
}, this.requests = [], xs(e) ? this.entries = e.log.entries : this.entries = [
|
|
4056
4054
|
{
|
|
4057
4055
|
request: e
|
|
4058
4056
|
}
|
|
@@ -4088,10 +4086,10 @@ var ur = ws(), fr = /* @__PURE__ */ xa(), js = (e) => typeof e == "object" && "l
|
|
|
4088
4086
|
if (t.queryString && t.queryString.length && (t.queryObj = t.queryString.reduce(Hr, {})), t.headers && t.headers.length) {
|
|
4089
4087
|
const d = /^HTTP\/2/;
|
|
4090
4088
|
t.headersObj = t.headers.reduce((y, { name: f, value: h }) => {
|
|
4091
|
-
const
|
|
4089
|
+
const x = d.exec(t.httpVersion) ? f.toLocaleLowerCase() : f;
|
|
4092
4090
|
return {
|
|
4093
4091
|
...y,
|
|
4094
|
-
[
|
|
4092
|
+
[x]: h
|
|
4095
4093
|
};
|
|
4096
4094
|
}, {});
|
|
4097
4095
|
}
|
|
@@ -4110,14 +4108,14 @@ var ur = ws(), fr = /* @__PURE__ */ xa(), js = (e) => typeof e == "object" && "l
|
|
|
4110
4108
|
case "multipart/alternative":
|
|
4111
4109
|
if (t.postData.text = "", t.postData.mimeType = "multipart/form-data", t.postData?.params) {
|
|
4112
4110
|
const d = "---011000010111000001101001", y = `${d}--`, f = `\r
|
|
4113
|
-
`, h = (m) => m.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"),
|
|
4114
|
-
`),
|
|
4111
|
+
`, h = (m) => m.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), x = (m) => m.replace(/\r?\n|\r/g, `\r
|
|
4112
|
+
`), $ = [`--${d}`];
|
|
4115
4113
|
t.postData?.params.forEach((m, v) => {
|
|
4116
4114
|
const S = m.name, P = m.value || "", p = m.fileName || null, O = m.contentType || "application/octet-stream";
|
|
4117
|
-
p ? (
|
|
4118
|
-
`Content-Disposition: form-data; name="${h(
|
|
4119
|
-
),
|
|
4120
|
-
}),
|
|
4115
|
+
p ? ($.push(
|
|
4116
|
+
`Content-Disposition: form-data; name="${h(x(S))}"; filename="${p}"`
|
|
4117
|
+
), $.push(`Content-Type: ${O}`)) : $.push(`Content-Disposition: form-data; name="${h(x(S))}"`), $.push(""), $.push(x(P)), v !== t.postData.params.length - 1 && $.push(`--${d}`);
|
|
4118
|
+
}), $.push(`--${y}`), t.postData.boundary = d, t.postData.text = $.join(f);
|
|
4121
4119
|
const u = fe(t.headersObj, "content-type") || "content-type";
|
|
4122
4120
|
t.headersObj[u] = `multipart/form-data; boundary=${d}`;
|
|
4123
4121
|
}
|
|
@@ -4175,20 +4173,20 @@ var ur = ws(), fr = /* @__PURE__ */ xa(), js = (e) => typeof e == "object" && "l
|
|
|
4175
4173
|
}
|
|
4176
4174
|
convert(e, n, t) {
|
|
4177
4175
|
this.initCalled || this.init(), !t && n && (t = n);
|
|
4178
|
-
const a =
|
|
4176
|
+
const a = Ui[e];
|
|
4179
4177
|
if (!a)
|
|
4180
4178
|
return !1;
|
|
4181
4179
|
const { convert: c } = a.clientsById[n || a.info.default];
|
|
4182
4180
|
return this.requests.map((r) => c(r, t));
|
|
4183
4181
|
}
|
|
4184
4182
|
};
|
|
4185
|
-
const
|
|
4183
|
+
const js = ({
|
|
4186
4184
|
rootMargin: e = "0px",
|
|
4187
4185
|
threshold: n,
|
|
4188
4186
|
root: t
|
|
4189
4187
|
} = {}) => {
|
|
4190
|
-
const [a, c] =
|
|
4191
|
-
return
|
|
4188
|
+
const [a, c] = ge(!1), s = fa(null);
|
|
4189
|
+
return br(() => {
|
|
4192
4190
|
const r = new IntersectionObserver(
|
|
4193
4191
|
([i]) => {
|
|
4194
4192
|
i && c(i.isIntersecting);
|
|
@@ -4198,12 +4196,12 @@ const Os = ({
|
|
|
4198
4196
|
if (o)
|
|
4199
4197
|
return r.observe(o), () => r.unobserve(o);
|
|
4200
4198
|
}, [t, e, n]), [s, a];
|
|
4201
|
-
},
|
|
4199
|
+
}, ws = typeof window < "u" ? to : br, Ta = ({
|
|
4202
4200
|
children: e,
|
|
4203
4201
|
maxHeight: n = 250
|
|
4204
4202
|
}) => {
|
|
4205
|
-
const t =
|
|
4206
|
-
return
|
|
4203
|
+
const t = fa(null), [a, c] = ge(!1), [s, r] = ge(!1);
|
|
4204
|
+
return ws(() => {
|
|
4207
4205
|
const o = t.current;
|
|
4208
4206
|
if (!o) return;
|
|
4209
4207
|
c(o.scrollHeight > n);
|
|
@@ -4211,7 +4209,7 @@ const Os = ({
|
|
|
4211
4209
|
c(o.scrollHeight > n);
|
|
4212
4210
|
});
|
|
4213
4211
|
return i.observe(o), () => i.disconnect();
|
|
4214
|
-
}, [n]), /* @__PURE__ */
|
|
4212
|
+
}, [n]), /* @__PURE__ */ b.jsxs(
|
|
4215
4213
|
ta,
|
|
4216
4214
|
{
|
|
4217
4215
|
className: "group",
|
|
@@ -4219,24 +4217,24 @@ const Os = ({
|
|
|
4219
4217
|
onOpenChange: r,
|
|
4220
4218
|
style: { "--max-height": `${n}px` },
|
|
4221
4219
|
children: [
|
|
4222
|
-
/* @__PURE__ */
|
|
4220
|
+
/* @__PURE__ */ b.jsxs(
|
|
4223
4221
|
ra,
|
|
4224
4222
|
{
|
|
4225
4223
|
forceMount: !0,
|
|
4226
4224
|
className: pe(
|
|
4227
4225
|
"relative overflow-hidden group",
|
|
4228
|
-
!s && a && "max-h-
|
|
4226
|
+
!s && a && "max-h-(--max-height)"
|
|
4229
4227
|
),
|
|
4230
4228
|
children: [
|
|
4231
|
-
!s && a && /* @__PURE__ */
|
|
4232
|
-
/* @__PURE__ */
|
|
4233
|
-
!s && a && /* @__PURE__ */
|
|
4229
|
+
!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" }),
|
|
4230
|
+
/* @__PURE__ */ b.jsx("div", { ref: t, children: e }),
|
|
4231
|
+
!s && a && /* @__PURE__ */ b.jsx(
|
|
4234
4232
|
pr,
|
|
4235
4233
|
{
|
|
4236
4234
|
className: "absolute inset-0 grid place-items-center z-10 cursor-pointer peer",
|
|
4237
4235
|
asChild: !0,
|
|
4238
|
-
children: /* @__PURE__ */
|
|
4239
|
-
/* @__PURE__ */
|
|
4236
|
+
children: /* @__PURE__ */ b.jsx("div", { children: /* @__PURE__ */ b.jsxs(Lr, { variant: "outline", className: "hidden group-hover:flex", children: [
|
|
4237
|
+
/* @__PURE__ */ b.jsx(za, { size: 14, className: "me-1.5" }),
|
|
4240
4238
|
"Click to expand"
|
|
4241
4239
|
] }) })
|
|
4242
4240
|
}
|
|
@@ -4244,29 +4242,29 @@ const Os = ({
|
|
|
4244
4242
|
]
|
|
4245
4243
|
}
|
|
4246
4244
|
),
|
|
4247
|
-
a && /* @__PURE__ */
|
|
4245
|
+
a && /* @__PURE__ */ b.jsx(
|
|
4248
4246
|
"div",
|
|
4249
4247
|
{
|
|
4250
4248
|
className: pe(
|
|
4251
4249
|
"flex justify-center w-full py-2 bg-muted/50",
|
|
4252
4250
|
!s && "hidden"
|
|
4253
4251
|
),
|
|
4254
|
-
children: /* @__PURE__ */
|
|
4252
|
+
children: /* @__PURE__ */ b.jsx(pr, { asChild: !0, children: /* @__PURE__ */ b.jsxs(Lr, { variant: "outline", size: "sm", children: [
|
|
4255
4253
|
"Collapse",
|
|
4256
|
-
/* @__PURE__ */
|
|
4254
|
+
/* @__PURE__ */ b.jsx(Wa, { size: 14, className: "ms-1.5" })
|
|
4257
4255
|
] }) })
|
|
4258
4256
|
}
|
|
4259
4257
|
)
|
|
4260
4258
|
]
|
|
4261
4259
|
}
|
|
4262
4260
|
);
|
|
4263
|
-
},
|
|
4261
|
+
}, Ss = ({
|
|
4264
4262
|
server: e,
|
|
4265
4263
|
servers: n,
|
|
4266
4264
|
operation: t,
|
|
4267
4265
|
examples: a
|
|
4268
4266
|
}) => {
|
|
4269
|
-
const { isAuthEnabled: c, login: s, signup: r, isPending: o, isAuthenticated: i } =
|
|
4267
|
+
const { isAuthEnabled: c, login: s, signup: r, isPending: o, isAuthenticated: i } = fo(), l = t.parameters?.filter((f) => f.in === "header").sort((f, h) => f.required && !h.required ? -1 : 1).map((f) => ({
|
|
4270
4268
|
name: f.name,
|
|
4271
4269
|
defaultValue: f.schema?.default ?? f.examples?.find((h) => h.value)?.value ?? "",
|
|
4272
4270
|
defaultActive: f.required ?? !1,
|
|
@@ -4278,10 +4276,14 @@ const Os = ({
|
|
|
4278
4276
|
defaultActive: f.required ?? !1,
|
|
4279
4277
|
isRequired: f.required ?? !1,
|
|
4280
4278
|
enum: f.schema?.type == "array" ? f.schema?.items?.enum : f.schema?.enum,
|
|
4281
|
-
type: f.schema?.type ?? "string"
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4279
|
+
type: f.schema?.type ?? "string",
|
|
4280
|
+
defaultValue: f.schema?.default
|
|
4281
|
+
})), y = t.parameters?.filter((f) => f.in === "path").map((f) => ({
|
|
4282
|
+
name: f.name,
|
|
4283
|
+
defaultValue: f.schema?.default
|
|
4284
|
+
}));
|
|
4285
|
+
return /* @__PURE__ */ b.jsx(
|
|
4286
|
+
Qa,
|
|
4285
4287
|
{
|
|
4286
4288
|
server: e,
|
|
4287
4289
|
servers: n,
|
|
@@ -4296,13 +4298,13 @@ const Os = ({
|
|
|
4296
4298
|
onSignUp: () => r()
|
|
4297
4299
|
}
|
|
4298
4300
|
);
|
|
4299
|
-
}, Or = ({ children: e, className: n }) => /* @__PURE__ */
|
|
4301
|
+
}, Or = ({ children: e, className: n }) => /* @__PURE__ */ b.jsx(
|
|
4300
4302
|
"div",
|
|
4301
4303
|
{
|
|
4302
4304
|
className: pe("rounded-xl overflow-hidden border border-border", n),
|
|
4303
4305
|
children: e
|
|
4304
4306
|
}
|
|
4305
|
-
), Tr = ({ children: e, className: n }) => /* @__PURE__ */
|
|
4307
|
+
), Tr = ({ children: e, className: n }) => /* @__PURE__ */ b.jsx(
|
|
4306
4308
|
"div",
|
|
4307
4309
|
{
|
|
4308
4310
|
className: pe(
|
|
@@ -4311,8 +4313,8 @@ const Os = ({
|
|
|
4311
4313
|
),
|
|
4312
4314
|
children: e
|
|
4313
4315
|
}
|
|
4314
|
-
),
|
|
4315
|
-
if (!e ||
|
|
4316
|
+
), Pa = ({ children: e, className: n }) => /* @__PURE__ */ b.jsx("div", { className: pe("bg-card overflow-auto p-2", n), children: e }), Ca = ({ children: e, className: n }) => /* @__PURE__ */ b.jsx("div", { className: pe("border-t bg-muted dark:bg-transparent p-3", n), children: e }), $e = (e, n) => {
|
|
4317
|
+
if (!e || io(e))
|
|
4316
4318
|
return null;
|
|
4317
4319
|
if (e.example !== void 0)
|
|
4318
4320
|
return e.example;
|
|
@@ -4378,31 +4380,33 @@ const Os = ({
|
|
|
4378
4380
|
default:
|
|
4379
4381
|
return {};
|
|
4380
4382
|
}
|
|
4381
|
-
},
|
|
4383
|
+
}, Os = (e) => e == null ? "No example" : typeof e == "string" ? e.trim() : JSON.stringify(e, null, 2), Ts = (e) => e ? e.endsWith("+json") ? "json" : e.endsWith("+xml") ? "xml" : e.endsWith("+yaml") ? "yaml" : {
|
|
4384
|
+
"text/html": "html",
|
|
4385
|
+
"application/x-ndjson": "json",
|
|
4382
4386
|
"application/json": "json",
|
|
4383
4387
|
"application/xml": "xml",
|
|
4384
4388
|
"application/x-yaml": "yaml",
|
|
4385
4389
|
"text/csv": "csv",
|
|
4386
4390
|
"application/javascript": "javascript",
|
|
4387
4391
|
"application/graphql": "graphql"
|
|
4388
|
-
}[e] ?? "plain" : "plain",
|
|
4392
|
+
}[e] ?? "plain" : "plain", qa = ({
|
|
4389
4393
|
content: e,
|
|
4390
4394
|
description: n,
|
|
4391
4395
|
onExampleChange: t
|
|
4392
4396
|
}) => {
|
|
4393
|
-
const [a, c] =
|
|
4397
|
+
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 = pa(() => {
|
|
4394
4398
|
if (l)
|
|
4395
4399
|
return "value" in l ? l.value : l;
|
|
4396
4400
|
if (o?.schema)
|
|
4397
4401
|
return $e(o.schema);
|
|
4398
4402
|
}, [l, o?.schema]);
|
|
4399
|
-
|
|
4403
|
+
br(() => {
|
|
4400
4404
|
d && t?.(d);
|
|
4401
4405
|
}, [d, t]);
|
|
4402
|
-
const y =
|
|
4403
|
-
return /* @__PURE__ */
|
|
4404
|
-
/* @__PURE__ */
|
|
4405
|
-
l?.externalValue ? /* @__PURE__ */
|
|
4406
|
+
const y = Os(d), f = Ts(o?.mediaType);
|
|
4407
|
+
return /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
4408
|
+
/* @__PURE__ */ b.jsxs(Pa, { className: "p-0", children: [
|
|
4409
|
+
l?.externalValue ? /* @__PURE__ */ b.jsx("div", { className: "p-2", children: /* @__PURE__ */ b.jsx(
|
|
4406
4410
|
"a",
|
|
4407
4411
|
{
|
|
4408
4412
|
href: l.externalValue,
|
|
@@ -4411,8 +4415,8 @@ const Os = ({
|
|
|
4411
4415
|
className: "text-xs text-primary hover:underline",
|
|
4412
4416
|
children: "View External Example →"
|
|
4413
4417
|
}
|
|
4414
|
-
) }) : /* @__PURE__ */
|
|
4415
|
-
|
|
4418
|
+
) }) : /* @__PURE__ */ b.jsx(Ta, { children: /* @__PURE__ */ b.jsx(
|
|
4419
|
+
ha,
|
|
4416
4420
|
{
|
|
4417
4421
|
language: f,
|
|
4418
4422
|
noBackground: !0,
|
|
@@ -4420,65 +4424,59 @@ const Os = ({
|
|
|
4420
4424
|
code: y
|
|
4421
4425
|
}
|
|
4422
4426
|
) }),
|
|
4423
|
-
l?.description && /* @__PURE__ */
|
|
4427
|
+
l?.description && /* @__PURE__ */ b.jsx("div", { className: "border-t text-xs px-3 py-1.5 text-muted-foreground", children: l.description })
|
|
4424
4428
|
] }),
|
|
4425
|
-
/* @__PURE__ */
|
|
4426
|
-
n && /* @__PURE__ */
|
|
4427
|
-
(i.length !== 0 || e.length !== 0) && /* @__PURE__ */
|
|
4428
|
-
/* @__PURE__ */
|
|
4429
|
+
/* @__PURE__ */ b.jsxs(Ca, { className: "text-xs p-0 divide-y divide-border", children: [
|
|
4430
|
+
n && /* @__PURE__ */ b.jsx("div", { className: "text-muted-foreground text-xs px-3 py-2", children: n }),
|
|
4431
|
+
(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: [
|
|
4432
|
+
/* @__PURE__ */ b.jsx("div", { className: "flex items-center gap-2 min-w-0", children: e.length > 1 ? /* @__PURE__ */ b.jsx(
|
|
4429
4433
|
Ye,
|
|
4430
4434
|
{
|
|
4431
4435
|
className: "max-w-[200px]",
|
|
4432
4436
|
value: a.toString(),
|
|
4433
4437
|
onChange: (h) => c(Number(h.target.value)),
|
|
4434
|
-
options: e.map((h,
|
|
4435
|
-
value:
|
|
4438
|
+
options: e.map((h, x) => ({
|
|
4439
|
+
value: x.toString(),
|
|
4436
4440
|
label: h.mediaType
|
|
4437
4441
|
}))
|
|
4438
4442
|
}
|
|
4439
|
-
) : /* @__PURE__ */
|
|
4440
|
-
i.length > 1 && /* @__PURE__ */
|
|
4443
|
+
) : /* @__PURE__ */ b.jsx("span", { className: "font-mono text-[11px]", children: e[0]?.mediaType }) }),
|
|
4444
|
+
i.length > 1 && /* @__PURE__ */ b.jsx("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ b.jsx(
|
|
4441
4445
|
Ye,
|
|
4442
4446
|
{
|
|
4443
4447
|
className: "max-w-[180px]",
|
|
4444
4448
|
value: s.toString(),
|
|
4445
4449
|
onChange: (h) => r(Number(h.target.value)),
|
|
4446
|
-
options: i.map((h,
|
|
4447
|
-
value:
|
|
4448
|
-
label: h.summary || h.name || h.description || `Example ${
|
|
4450
|
+
options: i.map((h, x) => ({
|
|
4451
|
+
value: x.toString(),
|
|
4452
|
+
label: h.summary || h.name || h.description || `Example ${x + 1}`
|
|
4449
4453
|
}))
|
|
4450
4454
|
}
|
|
4451
4455
|
) })
|
|
4452
4456
|
] })
|
|
4453
4457
|
] })
|
|
4454
4458
|
] });
|
|
4455
|
-
},
|
|
4459
|
+
}, Ps = ({
|
|
4456
4460
|
content: e,
|
|
4457
4461
|
onExampleChange: n
|
|
4458
|
-
}) => e.length === 0 ? null : /* @__PURE__ */
|
|
4459
|
-
/* @__PURE__ */
|
|
4460
|
-
/* @__PURE__ */
|
|
4461
|
-
] }),
|
|
4462
|
-
Sa,
|
|
4463
|
-
{
|
|
4464
|
-
content: e.content ?? [],
|
|
4465
|
-
description: e.description ?? void 0
|
|
4466
|
-
}
|
|
4467
|
-
) }), ks = ({
|
|
4462
|
+
}) => e.length === 0 ? null : /* @__PURE__ */ b.jsxs(Or, { children: [
|
|
4463
|
+
/* @__PURE__ */ b.jsx(Tr, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ b.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
|
|
4464
|
+
/* @__PURE__ */ b.jsx(qa, { content: e, onExampleChange: n })
|
|
4465
|
+
] }), Cs = ({
|
|
4468
4466
|
responses: e,
|
|
4469
4467
|
selectedResponse: n,
|
|
4470
4468
|
onSelectResponse: t
|
|
4471
|
-
}) => /* @__PURE__ */
|
|
4472
|
-
|
|
4469
|
+
}) => /* @__PURE__ */ b.jsx(Or, { children: /* @__PURE__ */ b.jsxs(
|
|
4470
|
+
je.Root,
|
|
4473
4471
|
{
|
|
4474
4472
|
defaultValue: e[0]?.statusCode,
|
|
4475
4473
|
value: n,
|
|
4476
4474
|
onValueChange: (a) => t(a),
|
|
4477
4475
|
children: [
|
|
4478
|
-
/* @__PURE__ */
|
|
4479
|
-
/* @__PURE__ */
|
|
4480
|
-
/* @__PURE__ */
|
|
4481
|
-
|
|
4476
|
+
/* @__PURE__ */ b.jsxs(Tr, { className: "text-xs flex flex-col gap-2 pb-0", children: [
|
|
4477
|
+
/* @__PURE__ */ b.jsx("span", { className: "font-mono", children: "Example Responses" }),
|
|
4478
|
+
/* @__PURE__ */ b.jsx(je.List, { className: "flex gap-2", children: e.map((a) => /* @__PURE__ */ b.jsx(
|
|
4479
|
+
je.Trigger,
|
|
4482
4480
|
{
|
|
4483
4481
|
value: a.statusCode,
|
|
4484
4482
|
className: pe(
|
|
@@ -4491,10 +4489,10 @@ const Os = ({
|
|
|
4491
4489
|
a.statusCode
|
|
4492
4490
|
)) })
|
|
4493
4491
|
] }),
|
|
4494
|
-
e.map((a) => /* @__PURE__ */
|
|
4492
|
+
e.map((a) => /* @__PURE__ */ b.jsx(je.Content, { value: a.statusCode, children: /* @__PURE__ */ b.jsx(qa, { content: a.content ?? [] }) }, a.statusCode))
|
|
4495
4493
|
]
|
|
4496
4494
|
}
|
|
4497
|
-
) }),
|
|
4495
|
+
) }), qs = (e, n) => {
|
|
4498
4496
|
let t;
|
|
4499
4497
|
switch (n) {
|
|
4500
4498
|
case "shell":
|
|
@@ -4535,7 +4533,7 @@ const Os = ({
|
|
|
4535
4533
|
break;
|
|
4536
4534
|
}
|
|
4537
4535
|
return t ? t[0] : "";
|
|
4538
|
-
},
|
|
4536
|
+
}, Es = Be(
|
|
4539
4537
|
/* GraphQL */
|
|
4540
4538
|
`
|
|
4541
4539
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
@@ -4547,7 +4545,7 @@ const Os = ({
|
|
|
4547
4545
|
}
|
|
4548
4546
|
}
|
|
4549
4547
|
`
|
|
4550
|
-
),
|
|
4548
|
+
), Rs = [
|
|
4551
4549
|
{ value: "shell", label: "cURL" },
|
|
4552
4550
|
{ value: "js", label: "JavaScript" },
|
|
4553
4551
|
{ value: "python", label: "Python" },
|
|
@@ -4559,22 +4557,22 @@ const Os = ({
|
|
|
4559
4557
|
{ value: "php", label: "PHP" },
|
|
4560
4558
|
{ value: "ruby", label: "Ruby" },
|
|
4561
4559
|
{ value: "swift", label: "Swift" }
|
|
4562
|
-
],
|
|
4560
|
+
], ks = ({
|
|
4563
4561
|
operation: e,
|
|
4564
4562
|
selectedResponse: n,
|
|
4565
4563
|
onSelectResponse: t
|
|
4566
4564
|
}) => {
|
|
4567
|
-
const { input: a, type: c, options: s } = Ze(), r =
|
|
4565
|
+
const { input: a, type: c, options: s } = Ze(), r = Ia(), o = De(Es, { input: a, type: c }), i = gr(o), l = po(), d = na(e.method), [y, f] = Va(), [, h] = ua(), [x, $] = ge(), u = y.get("lang") ?? s?.examplesLanguage ?? "shell", m = e.requestBody?.content, v = m && s?.transformExamples ? s.transformExamples({
|
|
4568
4566
|
auth: r,
|
|
4569
4567
|
type: "request",
|
|
4570
4568
|
operation: e,
|
|
4571
4569
|
content: m,
|
|
4572
4570
|
context: l
|
|
4573
|
-
}) : m, S = /* @__PURE__ */
|
|
4574
|
-
|
|
4571
|
+
}) : m, S = /* @__PURE__ */ b.jsx(
|
|
4572
|
+
Ka,
|
|
4575
4573
|
{
|
|
4576
4574
|
path: e.path,
|
|
4577
|
-
renderParam: ({ name: C }) => /* @__PURE__ */
|
|
4575
|
+
renderParam: ({ name: C }) => /* @__PURE__ */ b.jsx(
|
|
4578
4576
|
ea,
|
|
4579
4577
|
{
|
|
4580
4578
|
name: C,
|
|
@@ -4584,10 +4582,10 @@ const Os = ({
|
|
|
4584
4582
|
}
|
|
4585
4583
|
)
|
|
4586
4584
|
}
|
|
4587
|
-
), { selectedServer: P } =
|
|
4588
|
-
const C =
|
|
4585
|
+
), { selectedServer: P } = vr(i.data.schema.servers), p = pa(() => {
|
|
4586
|
+
const C = x ?? (v?.[0]?.schema ? $e(
|
|
4589
4587
|
v[0].schema
|
|
4590
|
-
) : void 0), A = new
|
|
4588
|
+
) : void 0), A = new $s({
|
|
4591
4589
|
method: e.method.toLocaleUpperCase(),
|
|
4592
4590
|
url: P + e.path.replaceAll("{", ":").replaceAll("}", ""),
|
|
4593
4591
|
postData: C ? {
|
|
@@ -4610,32 +4608,32 @@ const Os = ({
|
|
|
4610
4608
|
headersSize: 0,
|
|
4611
4609
|
bodySize: 0
|
|
4612
4610
|
});
|
|
4613
|
-
return
|
|
4611
|
+
return qs(A, u);
|
|
4614
4612
|
}, [
|
|
4615
|
-
|
|
4613
|
+
x,
|
|
4616
4614
|
v,
|
|
4617
4615
|
e.method,
|
|
4618
4616
|
e.path,
|
|
4619
4617
|
P,
|
|
4620
4618
|
u,
|
|
4621
4619
|
e.parameters
|
|
4622
|
-
]), [O, g] =
|
|
4623
|
-
return /* @__PURE__ */
|
|
4620
|
+
]), [O, g] = js({ 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);
|
|
4621
|
+
return /* @__PURE__ */ b.jsxs(
|
|
4624
4622
|
"aside",
|
|
4625
4623
|
{
|
|
4626
4624
|
ref: O,
|
|
4627
|
-
className: "flex flex-col overflow-hidden sticky top-
|
|
4625
|
+
className: "flex flex-col overflow-hidden sticky top-(--scroll-padding) gap-4",
|
|
4628
4626
|
"data-pagefind-ignore": "all",
|
|
4629
4627
|
children: [
|
|
4630
|
-
/* @__PURE__ */
|
|
4631
|
-
/* @__PURE__ */
|
|
4632
|
-
/* @__PURE__ */
|
|
4633
|
-
/* @__PURE__ */
|
|
4628
|
+
/* @__PURE__ */ b.jsxs(Or, { children: [
|
|
4629
|
+
/* @__PURE__ */ b.jsxs(Tr, { className: "flex justify-between items-center flex-nowrap py-2.5 gap-2 text-xs", children: [
|
|
4630
|
+
/* @__PURE__ */ b.jsxs("span", { className: "font-mono break-words leading-6", children: [
|
|
4631
|
+
/* @__PURE__ */ b.jsx("span", { className: pe("font-semibold", d), children: e.method.toLocaleUpperCase() }),
|
|
4634
4632
|
" ",
|
|
4635
4633
|
S
|
|
4636
4634
|
] }),
|
|
4637
|
-
R && /* @__PURE__ */
|
|
4638
|
-
|
|
4635
|
+
R && /* @__PURE__ */ b.jsx(
|
|
4636
|
+
Ss,
|
|
4639
4637
|
{
|
|
4640
4638
|
servers: i.data.schema.servers.map((C) => C.url),
|
|
4641
4639
|
operation: e,
|
|
@@ -4643,9 +4641,9 @@ const Os = ({
|
|
|
4643
4641
|
}
|
|
4644
4642
|
)
|
|
4645
4643
|
] }),
|
|
4646
|
-
g && /* @__PURE__ */
|
|
4647
|
-
/* @__PURE__ */
|
|
4648
|
-
|
|
4644
|
+
g && /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
4645
|
+
/* @__PURE__ */ b.jsx(Pa, { className: "p-0", children: /* @__PURE__ */ b.jsx(Ta, { children: /* @__PURE__ */ b.jsx(
|
|
4646
|
+
ha,
|
|
4649
4647
|
{
|
|
4650
4648
|
language: u,
|
|
4651
4649
|
noBackground: !0,
|
|
@@ -4653,9 +4651,9 @@ const Os = ({
|
|
|
4653
4651
|
code: p
|
|
4654
4652
|
}
|
|
4655
4653
|
) }) }),
|
|
4656
|
-
/* @__PURE__ */
|
|
4657
|
-
/* @__PURE__ */
|
|
4658
|
-
/* @__PURE__ */
|
|
4654
|
+
/* @__PURE__ */ b.jsxs(Ca, { className: "flex items-center text-xs gap-2 justify-end py-2.5", children: [
|
|
4655
|
+
/* @__PURE__ */ b.jsx("span", { children: "Show example in" }),
|
|
4656
|
+
/* @__PURE__ */ b.jsx(
|
|
4659
4657
|
Ye,
|
|
4660
4658
|
{
|
|
4661
4659
|
className: "self-start max-w-[150px]",
|
|
@@ -4665,21 +4663,21 @@ const Os = ({
|
|
|
4665
4663
|
f((A) => (A.set("lang", C.target.value), A));
|
|
4666
4664
|
});
|
|
4667
4665
|
},
|
|
4668
|
-
options:
|
|
4666
|
+
options: Rs
|
|
4669
4667
|
}
|
|
4670
4668
|
)
|
|
4671
4669
|
] })
|
|
4672
4670
|
] })
|
|
4673
4671
|
] }),
|
|
4674
|
-
g && v && /* @__PURE__ */
|
|
4675
|
-
|
|
4672
|
+
g && v && /* @__PURE__ */ b.jsx(
|
|
4673
|
+
Ps,
|
|
4676
4674
|
{
|
|
4677
4675
|
content: v,
|
|
4678
|
-
onExampleChange:
|
|
4676
|
+
onExampleChange: $
|
|
4679
4677
|
}
|
|
4680
4678
|
),
|
|
4681
|
-
g && e.responses.length > 0 && /* @__PURE__ */
|
|
4682
|
-
|
|
4679
|
+
g && e.responses.length > 0 && /* @__PURE__ */ b.jsx(
|
|
4680
|
+
Cs,
|
|
4683
4681
|
{
|
|
4684
4682
|
selectedResponse: n,
|
|
4685
4683
|
onSelectResponse: t,
|
|
@@ -4698,17 +4696,76 @@ const Os = ({
|
|
|
4698
4696
|
]
|
|
4699
4697
|
}
|
|
4700
4698
|
);
|
|
4701
|
-
},
|
|
4699
|
+
}, Ns = pe, As = ({
|
|
4700
|
+
responses: e,
|
|
4701
|
+
selectedResponse: n,
|
|
4702
|
+
onSelectResponse: t
|
|
4703
|
+
}) => {
|
|
4704
|
+
const [a, c] = ge(
|
|
4705
|
+
e[0]?.content?.[0]?.mediaType ?? ""
|
|
4706
|
+
), s = e.find((o) => o.statusCode === n) ?? e[0], r = /* @__PURE__ */ b.jsxs("div", { className: "flex flex-col bg-muted text-muted-foreground", children: [
|
|
4707
|
+
/* @__PURE__ */ b.jsxs("div", { className: "flex flex-row items-center gap-2 justify-between px-4 py-2", children: [
|
|
4708
|
+
/* @__PURE__ */ b.jsx(je.List, { className: "flex flex-row font-medium text-sm gap-4", children: e.map((o) => /* @__PURE__ */ b.jsx(
|
|
4709
|
+
je.Trigger,
|
|
4710
|
+
{
|
|
4711
|
+
value: o.statusCode,
|
|
4712
|
+
className: Ns(
|
|
4713
|
+
"py-1 -mx-2 px-2 rounded-md",
|
|
4714
|
+
"data-[state=active]:dark:ring-1 data-[state=active]:dark:ring-border data-[state=active]:bg-background data-[state=active]:drop-shadow",
|
|
4715
|
+
"data-[state=active]:font-semibold data-[state=active]:text-foreground"
|
|
4716
|
+
),
|
|
4717
|
+
children: o.statusCode
|
|
4718
|
+
},
|
|
4719
|
+
o.statusCode
|
|
4720
|
+
)) }),
|
|
4721
|
+
s?.content && s.content.length > 1 && /* @__PURE__ */ b.jsxs(
|
|
4722
|
+
aa,
|
|
4723
|
+
{
|
|
4724
|
+
value: a,
|
|
4725
|
+
onValueChange: c,
|
|
4726
|
+
children: [
|
|
4727
|
+
/* @__PURE__ */ b.jsx(oa, { className: "h-8 mt-0 max-w-48 text-xs truncate", children: /* @__PURE__ */ b.jsx(ia, { placeholder: "Select a type" }) }),
|
|
4728
|
+
/* @__PURE__ */ b.jsx(sa, { children: s.content.map((o) => /* @__PURE__ */ b.jsx(la, { value: o.mediaType, children: o.mediaType }, o.mediaType)) })
|
|
4729
|
+
]
|
|
4730
|
+
}
|
|
4731
|
+
)
|
|
4732
|
+
] }),
|
|
4733
|
+
s?.description && /* @__PURE__ */ b.jsx(
|
|
4734
|
+
ho,
|
|
4735
|
+
{
|
|
4736
|
+
className: "text-sm border-t px-4 py-2 text-muted-foreground",
|
|
4737
|
+
content: s.description
|
|
4738
|
+
}
|
|
4739
|
+
)
|
|
4740
|
+
] });
|
|
4741
|
+
return /* @__PURE__ */ b.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ b.jsx(
|
|
4742
|
+
je.Root,
|
|
4743
|
+
{
|
|
4744
|
+
value: n,
|
|
4745
|
+
onValueChange: (o) => {
|
|
4746
|
+
t?.(o);
|
|
4747
|
+
const i = e.find((l) => l.statusCode === o);
|
|
4748
|
+
c(i?.content?.[0]?.mediaType ?? "");
|
|
4749
|
+
},
|
|
4750
|
+
children: e.map((o) => {
|
|
4751
|
+
const i = o.content?.find(
|
|
4752
|
+
(l) => l.mediaType === a
|
|
4753
|
+
);
|
|
4754
|
+
return /* @__PURE__ */ b.jsx(je.Content, { value: o.statusCode, children: /* @__PURE__ */ b.jsx(xr, { schema: i?.schema, cardHeader: r }) }, o.statusCode);
|
|
4755
|
+
})
|
|
4756
|
+
}
|
|
4757
|
+
) });
|
|
4758
|
+
}, Is = ["path", "query", "header", "cookie"], Us = ({
|
|
4702
4759
|
operationFragment: e,
|
|
4703
4760
|
serverUrl: n
|
|
4704
4761
|
}) => {
|
|
4705
|
-
const t =
|
|
4762
|
+
const t = yo(Ls, e), a = so(
|
|
4706
4763
|
t.parameters ?? [],
|
|
4707
4764
|
(i) => i.in
|
|
4708
|
-
), { options: c } = Ze(), s = t.responses.at(0), [r, o] =
|
|
4709
|
-
return /* @__PURE__ */
|
|
4710
|
-
t.deprecated && /* @__PURE__ */
|
|
4711
|
-
/* @__PURE__ */
|
|
4765
|
+
), { options: c } = Ze(), s = t.responses.at(0), [r, o] = ge(s?.statusCode);
|
|
4766
|
+
return /* @__PURE__ */ b.jsxs("div", { children: [
|
|
4767
|
+
t.deprecated && /* @__PURE__ */ b.jsx(_r, { variant: "muted", className: "text-xs mb-4", children: "deprecated" }),
|
|
4768
|
+
/* @__PURE__ */ b.jsxs(
|
|
4712
4769
|
"div",
|
|
4713
4770
|
{
|
|
4714
4771
|
className: pe(
|
|
@@ -4716,8 +4773,8 @@ const Os = ({
|
|
|
4716
4773
|
t.deprecated && "opacity-50 transition hover:opacity-100"
|
|
4717
4774
|
),
|
|
4718
4775
|
children: [
|
|
4719
|
-
/* @__PURE__ */
|
|
4720
|
-
|
|
4776
|
+
/* @__PURE__ */ b.jsx(
|
|
4777
|
+
Le,
|
|
4721
4778
|
{
|
|
4722
4779
|
level: 2,
|
|
4723
4780
|
id: t.slug,
|
|
@@ -4726,14 +4783,14 @@ const Os = ({
|
|
|
4726
4783
|
children: t.summary
|
|
4727
4784
|
}
|
|
4728
4785
|
),
|
|
4729
|
-
/* @__PURE__ */
|
|
4730
|
-
/* @__PURE__ */
|
|
4731
|
-
/* @__PURE__ */
|
|
4732
|
-
n && /* @__PURE__ */
|
|
4733
|
-
/* @__PURE__ */
|
|
4786
|
+
/* @__PURE__ */ b.jsxs("div", { className: "text-sm flex gap-2 font-mono col-span-full", children: [
|
|
4787
|
+
/* @__PURE__ */ b.jsx("span", { className: na(t.method), children: t.method.toUpperCase() }),
|
|
4788
|
+
/* @__PURE__ */ b.jsxs(ca, { className: "max-w-full truncate flex cursor-pointer", children: [
|
|
4789
|
+
n && /* @__PURE__ */ b.jsx("div", { className: "text-neutral-400 dark:text-neutral-500 truncate", children: n.replace(/\/$/, "") }),
|
|
4790
|
+
/* @__PURE__ */ b.jsx("div", { className: "text-neutral-900 dark:text-neutral-200", children: t.path })
|
|
4734
4791
|
] })
|
|
4735
4792
|
] }),
|
|
4736
|
-
/* @__PURE__ */
|
|
4793
|
+
/* @__PURE__ */ b.jsxs(
|
|
4737
4794
|
"div",
|
|
4738
4795
|
{
|
|
4739
4796
|
className: pe(
|
|
@@ -4741,16 +4798,16 @@ const Os = ({
|
|
|
4741
4798
|
c?.disableSidecar && "col-span-full"
|
|
4742
4799
|
),
|
|
4743
4800
|
children: [
|
|
4744
|
-
t.description && /* @__PURE__ */
|
|
4801
|
+
t.description && /* @__PURE__ */ b.jsx(
|
|
4745
4802
|
Qe,
|
|
4746
4803
|
{
|
|
4747
4804
|
className: `${dr} max-w-full prose-img:max-w-prose`,
|
|
4748
4805
|
content: t.description
|
|
4749
4806
|
}
|
|
4750
4807
|
),
|
|
4751
|
-
t.parameters && t.parameters.length > 0 && /* @__PURE__ */
|
|
4752
|
-
(i) => a[i]?.length ? /* @__PURE__ */
|
|
4753
|
-
|
|
4808
|
+
t.parameters && t.parameters.length > 0 && /* @__PURE__ */ b.jsx(b.Fragment, { children: Is.flatMap(
|
|
4809
|
+
(i) => a[i]?.length ? /* @__PURE__ */ b.jsx(
|
|
4810
|
+
$o,
|
|
4754
4811
|
{
|
|
4755
4812
|
summary: t.summary ?? void 0,
|
|
4756
4813
|
id: t.slug,
|
|
@@ -4760,35 +4817,35 @@ const Os = ({
|
|
|
4760
4817
|
i
|
|
4761
4818
|
) : []
|
|
4762
4819
|
) }),
|
|
4763
|
-
Br(t.requestBody?.content?.at(0)?.schema, (i) => /* @__PURE__ */
|
|
4764
|
-
/* @__PURE__ */
|
|
4765
|
-
|
|
4820
|
+
Br(t.requestBody?.content?.at(0)?.schema, (i) => /* @__PURE__ */ b.jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
|
|
4821
|
+
/* @__PURE__ */ b.jsxs(
|
|
4822
|
+
Le,
|
|
4766
4823
|
{
|
|
4767
4824
|
level: 3,
|
|
4768
4825
|
className: "capitalize flex items-center gap-2",
|
|
4769
4826
|
id: `${t.slug}/request-body`,
|
|
4770
4827
|
children: [
|
|
4771
|
-
t.summary && /* @__PURE__ */
|
|
4828
|
+
t.summary && /* @__PURE__ */ b.jsxs(hr, { children: [
|
|
4772
4829
|
t.summary,
|
|
4773
4830
|
" › "
|
|
4774
4831
|
] }),
|
|
4775
4832
|
"Request Body",
|
|
4776
4833
|
" ",
|
|
4777
|
-
t.requestBody?.required === !1 ? /* @__PURE__ */
|
|
4834
|
+
t.requestBody?.required === !1 ? /* @__PURE__ */ b.jsx(_r, { variant: "muted", children: "optional" }) : ""
|
|
4778
4835
|
]
|
|
4779
4836
|
}
|
|
4780
4837
|
),
|
|
4781
|
-
/* @__PURE__ */
|
|
4838
|
+
/* @__PURE__ */ b.jsx(xr, { schema: i })
|
|
4782
4839
|
] })),
|
|
4783
|
-
t.responses.length > 0 && /* @__PURE__ */
|
|
4784
|
-
/* @__PURE__ */
|
|
4785
|
-
|
|
4840
|
+
t.responses.length > 0 && /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
4841
|
+
/* @__PURE__ */ b.jsxs(
|
|
4842
|
+
Le,
|
|
4786
4843
|
{
|
|
4787
4844
|
level: 3,
|
|
4788
4845
|
className: "capitalize mt-8 pt-8 border-t",
|
|
4789
4846
|
id: `${t.slug}/responses`,
|
|
4790
4847
|
children: [
|
|
4791
|
-
t.summary && /* @__PURE__ */
|
|
4848
|
+
t.summary && /* @__PURE__ */ b.jsxs(hr, { children: [
|
|
4792
4849
|
t.summary,
|
|
4793
4850
|
" › "
|
|
4794
4851
|
] }),
|
|
@@ -4796,43 +4853,20 @@ const Os = ({
|
|
|
4796
4853
|
]
|
|
4797
4854
|
}
|
|
4798
4855
|
),
|
|
4799
|
-
/* @__PURE__ */
|
|
4800
|
-
|
|
4856
|
+
/* @__PURE__ */ b.jsx(
|
|
4857
|
+
As,
|
|
4801
4858
|
{
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
t.responses.length > 1 && /* @__PURE__ */ $.jsx(ao, { children: t.responses.map((i) => /* @__PURE__ */ $.jsx(
|
|
4806
|
-
oo,
|
|
4807
|
-
{
|
|
4808
|
-
value: i.statusCode,
|
|
4809
|
-
title: i.description ?? void 0,
|
|
4810
|
-
children: i.statusCode
|
|
4811
|
-
},
|
|
4812
|
-
i.statusCode
|
|
4813
|
-
)) }),
|
|
4814
|
-
/* @__PURE__ */ $.jsx("ul", { className: "list-none m-0 px-0", children: t.responses.map((i) => /* @__PURE__ */ $.jsx(
|
|
4815
|
-
io,
|
|
4816
|
-
{
|
|
4817
|
-
value: i.statusCode,
|
|
4818
|
-
children: /* @__PURE__ */ $.jsx(
|
|
4819
|
-
yr,
|
|
4820
|
-
{
|
|
4821
|
-
schema: i.content?.find((l) => l.schema)?.schema
|
|
4822
|
-
}
|
|
4823
|
-
)
|
|
4824
|
-
},
|
|
4825
|
-
i.statusCode
|
|
4826
|
-
)) })
|
|
4827
|
-
]
|
|
4859
|
+
responses: t.responses,
|
|
4860
|
+
selectedResponse: r,
|
|
4861
|
+
onSelectResponse: o
|
|
4828
4862
|
}
|
|
4829
4863
|
)
|
|
4830
4864
|
] })
|
|
4831
4865
|
]
|
|
4832
4866
|
}
|
|
4833
4867
|
),
|
|
4834
|
-
Br(!c?.disableSidecar, () => /* @__PURE__ */
|
|
4835
|
-
|
|
4868
|
+
Br(!c?.disableSidecar, () => /* @__PURE__ */ b.jsx(
|
|
4869
|
+
ks,
|
|
4836
4870
|
{
|
|
4837
4871
|
selectedResponse: r,
|
|
4838
4872
|
onSelectResponse: o,
|
|
@@ -4848,7 +4882,7 @@ const Os = ({
|
|
|
4848
4882
|
function Xn(e, n = 160) {
|
|
4849
4883
|
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, "'") : "";
|
|
4850
4884
|
}
|
|
4851
|
-
const
|
|
4885
|
+
const Ls = Be(
|
|
4852
4886
|
/* GraphQL */
|
|
4853
4887
|
`
|
|
4854
4888
|
fragment OperationsFragment on OperationItem {
|
|
@@ -4916,7 +4950,7 @@ const _s = _e(
|
|
|
4916
4950
|
}
|
|
4917
4951
|
}
|
|
4918
4952
|
`
|
|
4919
|
-
),
|
|
4953
|
+
), Fs = Be(
|
|
4920
4954
|
/* GraphQL */
|
|
4921
4955
|
`
|
|
4922
4956
|
query SchemaWarmup($input: JSON!, $type: SchemaType!) {
|
|
@@ -4925,7 +4959,7 @@ const _s = _e(
|
|
|
4925
4959
|
}
|
|
4926
4960
|
}
|
|
4927
4961
|
`
|
|
4928
|
-
),
|
|
4962
|
+
), _s = Be(
|
|
4929
4963
|
/* GraphQL */
|
|
4930
4964
|
`
|
|
4931
4965
|
query OperationsForTag(
|
|
@@ -4962,52 +4996,52 @@ const _s = _e(
|
|
|
4962
4996
|
}
|
|
4963
4997
|
}
|
|
4964
4998
|
`
|
|
4965
|
-
),
|
|
4999
|
+
), il = ({
|
|
4966
5000
|
tag: e,
|
|
4967
5001
|
untagged: n
|
|
4968
5002
|
}) => {
|
|
4969
|
-
const { input: t, type: a, versions: c, version: s, options: r } = Ze(), { tag: o } =
|
|
5003
|
+
const { input: t, type: a, versions: c, version: s, options: r } = Ze(), { tag: o } = Ga(), i = De(_s, {
|
|
4970
5004
|
input: t,
|
|
4971
5005
|
type: a,
|
|
4972
5006
|
tag: e ?? o,
|
|
4973
5007
|
untagged: n
|
|
4974
|
-
}), l =
|
|
5008
|
+
}), l = gr(i), {
|
|
4975
5009
|
data: { schema: d }
|
|
4976
|
-
} = l, { selectedServer: y } =
|
|
4977
|
-
if (
|
|
5010
|
+
} = l, { selectedServer: y } = vr(d.servers), f = d.title, h = d.summary, x = d.description, $ = Da(), u = De(Fs, { input: t, type: a });
|
|
5011
|
+
if (Ua({
|
|
4978
5012
|
...u,
|
|
4979
5013
|
enabled: typeof window < "u",
|
|
4980
5014
|
notifyOnChangeProps: []
|
|
4981
|
-
}),
|
|
4982
|
-
return /* @__PURE__ */
|
|
4983
|
-
/* @__PURE__ */
|
|
4984
|
-
/* @__PURE__ */
|
|
5015
|
+
}), La(), !d.tag)
|
|
5016
|
+
return /* @__PURE__ */ b.jsxs("div", { className: "flex flex-col h-full items-center justify-center text-center", children: [
|
|
5017
|
+
/* @__PURE__ */ b.jsx("div", { className: "text-muted-foreground font-medium", children: "No operations found" }),
|
|
5018
|
+
/* @__PURE__ */ b.jsx("div", { className: "mt-2 text-sm text-muted-foreground", children: "This API doesn't have any operations defined yet." })
|
|
4985
5019
|
] });
|
|
4986
|
-
const { operations: m, next: v, prev: S, description: P } = d.tag, p = P ? Xn(P) : h || (
|
|
5020
|
+
const { operations: m, next: v, prev: S, description: P } = d.tag, p = P ? Xn(P) : h || (x ? Xn(x) : void 0), O = Object.entries(c).length > 1, g = r?.showVersionSelect === "always" || O && r?.showVersionSelect !== "hide", R = {
|
|
4987
5021
|
prev: S?.name ? { to: `../${S.slug}`, label: S.name } : void 0,
|
|
4988
5022
|
next: v ? {
|
|
4989
|
-
to: `../${v.slug ??
|
|
5023
|
+
to: `../${v.slug ?? Ya}`,
|
|
4990
5024
|
label: v.name ?? "Other endpoints"
|
|
4991
5025
|
} : void 0
|
|
4992
5026
|
};
|
|
4993
|
-
return /* @__PURE__ */
|
|
5027
|
+
return /* @__PURE__ */ b.jsxs(
|
|
4994
5028
|
"div",
|
|
4995
5029
|
{
|
|
4996
|
-
className: "pt-
|
|
5030
|
+
className: "pt-(--padding-content-top)",
|
|
4997
5031
|
"data-pagefind-filter": "section:openapi",
|
|
4998
5032
|
"data-pagefind-meta": "section:openapi",
|
|
4999
5033
|
children: [
|
|
5000
|
-
/* @__PURE__ */
|
|
5001
|
-
/* @__PURE__ */
|
|
5002
|
-
p && /* @__PURE__ */
|
|
5034
|
+
/* @__PURE__ */ b.jsxs(Fa, { children: [
|
|
5035
|
+
/* @__PURE__ */ b.jsx("title", { children: [d.tag.name, f].filter(Boolean).join(" - ") }),
|
|
5036
|
+
p && /* @__PURE__ */ b.jsx("meta", { name: "description", content: p })
|
|
5003
5037
|
] }),
|
|
5004
|
-
/* @__PURE__ */
|
|
5005
|
-
/* @__PURE__ */
|
|
5006
|
-
/* @__PURE__ */
|
|
5007
|
-
/* @__PURE__ */
|
|
5008
|
-
/* @__PURE__ */
|
|
5009
|
-
/* @__PURE__ */
|
|
5010
|
-
|
|
5038
|
+
/* @__PURE__ */ b.jsxs("div", { className: "mb-8", children: [
|
|
5039
|
+
/* @__PURE__ */ b.jsxs(ta, { className: "w-full", children: [
|
|
5040
|
+
/* @__PURE__ */ b.jsxs("div", { className: "flex flex-col gap-y-4 sm:flex-row justify-around items-start sm:items-end", children: [
|
|
5041
|
+
/* @__PURE__ */ b.jsxs("div", { className: "flex flex-col flex-1 gap-2", children: [
|
|
5042
|
+
/* @__PURE__ */ b.jsx(Xa, { children: f }),
|
|
5043
|
+
/* @__PURE__ */ b.jsxs(
|
|
5044
|
+
Le,
|
|
5011
5045
|
{
|
|
5012
5046
|
level: 1,
|
|
5013
5047
|
id: "description",
|
|
@@ -5015,7 +5049,7 @@ const _s = _e(
|
|
|
5015
5049
|
className: "mb-0",
|
|
5016
5050
|
children: [
|
|
5017
5051
|
d.tag.name ?? "Other endpoints",
|
|
5018
|
-
g && /* @__PURE__ */
|
|
5052
|
+
g && /* @__PURE__ */ b.jsxs("span", { className: "text-xl text-muted-foreground ms-1.5", children: [
|
|
5019
5053
|
" ",
|
|
5020
5054
|
"(",
|
|
5021
5055
|
s,
|
|
@@ -5024,32 +5058,32 @@ const _s = _e(
|
|
|
5024
5058
|
]
|
|
5025
5059
|
}
|
|
5026
5060
|
),
|
|
5027
|
-
/* @__PURE__ */
|
|
5061
|
+
/* @__PURE__ */ b.jsx(go, {})
|
|
5028
5062
|
] }),
|
|
5029
|
-
/* @__PURE__ */
|
|
5030
|
-
g && /* @__PURE__ */
|
|
5031
|
-
|
|
5063
|
+
/* @__PURE__ */ b.jsxs("div", { className: "flex flex-col gap-4 sm:items-end", children: [
|
|
5064
|
+
g && /* @__PURE__ */ b.jsxs(
|
|
5065
|
+
aa,
|
|
5032
5066
|
{
|
|
5033
|
-
onValueChange: (C) =>
|
|
5067
|
+
onValueChange: (C) => $(c[C]),
|
|
5034
5068
|
defaultValue: s,
|
|
5035
5069
|
disabled: !O,
|
|
5036
5070
|
children: [
|
|
5037
|
-
/* @__PURE__ */
|
|
5038
|
-
/* @__PURE__ */
|
|
5071
|
+
/* @__PURE__ */ b.jsx(oa, { className: "w-[180px]", children: /* @__PURE__ */ b.jsx(ia, { placeholder: "Select version" }) }),
|
|
5072
|
+
/* @__PURE__ */ b.jsx(sa, { children: Object.entries(c).map(([C]) => /* @__PURE__ */ b.jsx(la, { value: C, children: C }, C)) })
|
|
5039
5073
|
]
|
|
5040
5074
|
}
|
|
5041
5075
|
),
|
|
5042
|
-
d.description && /* @__PURE__ */
|
|
5043
|
-
/* @__PURE__ */
|
|
5044
|
-
/* @__PURE__ */
|
|
5076
|
+
d.description && /* @__PURE__ */ b.jsxs(pr, { className: "flex items-center gap-1 text-sm font-medium text-muted-foreground group", children: [
|
|
5077
|
+
/* @__PURE__ */ b.jsx("span", { children: "API information" }),
|
|
5078
|
+
/* @__PURE__ */ b.jsx(
|
|
5045
5079
|
Zn,
|
|
5046
5080
|
{
|
|
5047
5081
|
className: "group-data-[state=open]:hidden translate-y-px",
|
|
5048
5082
|
size: 14
|
|
5049
5083
|
}
|
|
5050
5084
|
),
|
|
5051
|
-
/* @__PURE__ */
|
|
5052
|
-
|
|
5085
|
+
/* @__PURE__ */ b.jsx(
|
|
5086
|
+
Ja,
|
|
5053
5087
|
{
|
|
5054
5088
|
className: "group-data-[state=closed]:hidden translate-y-px",
|
|
5055
5089
|
size: 13
|
|
@@ -5058,54 +5092,54 @@ const _s = _e(
|
|
|
5058
5092
|
] })
|
|
5059
5093
|
] })
|
|
5060
5094
|
] }),
|
|
5061
|
-
d.description && /* @__PURE__ */
|
|
5095
|
+
d.description && /* @__PURE__ */ b.jsx(ra, { className: "CollapsibleContent", children: /* @__PURE__ */ b.jsx(
|
|
5062
5096
|
"div",
|
|
5063
5097
|
{
|
|
5064
5098
|
className: pe(
|
|
5065
5099
|
dr,
|
|
5066
5100
|
"pt-4 max-w-full prose-img:max-w-prose"
|
|
5067
5101
|
),
|
|
5068
|
-
children: /* @__PURE__ */
|
|
5102
|
+
children: /* @__PURE__ */ b.jsx(
|
|
5069
5103
|
Qe,
|
|
5070
5104
|
{
|
|
5071
|
-
className: "border rounded bg-muted/25 border-border px-2.5 md:px-4",
|
|
5105
|
+
className: "border rounded-sm bg-muted/25 border-border px-2.5 md:px-4",
|
|
5072
5106
|
content: d.description
|
|
5073
5107
|
}
|
|
5074
5108
|
)
|
|
5075
5109
|
}
|
|
5076
5110
|
) })
|
|
5077
5111
|
] }),
|
|
5078
|
-
P && /* @__PURE__ */
|
|
5112
|
+
P && /* @__PURE__ */ b.jsx(
|
|
5079
5113
|
"div",
|
|
5080
5114
|
{
|
|
5081
5115
|
className: pe(
|
|
5082
5116
|
dr,
|
|
5083
5117
|
"my-4 max-w-full prose-img:max-w-prose"
|
|
5084
5118
|
),
|
|
5085
|
-
children: /* @__PURE__ */
|
|
5119
|
+
children: /* @__PURE__ */ b.jsx(Qe, { content: P })
|
|
5086
5120
|
}
|
|
5087
5121
|
)
|
|
5088
5122
|
] }),
|
|
5089
|
-
/* @__PURE__ */
|
|
5090
|
-
/* @__PURE__ */
|
|
5091
|
-
m.map((C) => /* @__PURE__ */
|
|
5092
|
-
/* @__PURE__ */
|
|
5093
|
-
|
|
5123
|
+
/* @__PURE__ */ b.jsx("hr", {}),
|
|
5124
|
+
/* @__PURE__ */ b.jsxs("div", { className: "px-6 mt-6 -mx-6 [content-visibility:auto]", children: [
|
|
5125
|
+
m.map((C) => /* @__PURE__ */ b.jsxs("div", { children: [
|
|
5126
|
+
/* @__PURE__ */ b.jsx(
|
|
5127
|
+
Us,
|
|
5094
5128
|
{
|
|
5095
5129
|
serverUrl: y,
|
|
5096
5130
|
operationFragment: C
|
|
5097
5131
|
}
|
|
5098
5132
|
),
|
|
5099
|
-
/* @__PURE__ */
|
|
5133
|
+
/* @__PURE__ */ b.jsx("hr", { className: "my-10" })
|
|
5100
5134
|
] }, C.slug)),
|
|
5101
|
-
/* @__PURE__ */
|
|
5135
|
+
/* @__PURE__ */ b.jsx(eo, { className: "mb-4", ...R })
|
|
5102
5136
|
] })
|
|
5103
5137
|
]
|
|
5104
5138
|
}
|
|
5105
5139
|
);
|
|
5106
5140
|
};
|
|
5107
5141
|
export {
|
|
5108
|
-
|
|
5109
|
-
|
|
5142
|
+
il as OperationList,
|
|
5143
|
+
Ls as OperationsFragment
|
|
5110
5144
|
};
|
|
5111
|
-
//# sourceMappingURL=OperationList-
|
|
5145
|
+
//# sourceMappingURL=OperationList-BmoMLQPO.js.map
|