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