@redocly/openapi-docs 3.0.0-alpha.10
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/LICENSE.md +1 -0
- package/README.md +3 -0
- package/bin/cli/assets/redoc-fast-scroll.js +22 -0
- package/bin/cli/assets/template.hbs +24 -0
- package/bin/cli/commands/redocly-docs-cli.min.js +5949 -0
- package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +325 -0
- package/bin.js +4 -0
- package/dist/console.redocly-reference-docs.min.js +507 -0
- package/dist/oauth2-redirect.html +7 -0
- package/dist/oauth2-redirect.js +9 -0
- package/dist/redocly-reference-docs.min.js +6005 -0
- package/lib/cli/assets/redoc-fast-scroll.d.ts +0 -0
- package/lib/cli/assets/redoc-fast-scroll.js +2 -0
- package/lib/cli/cli.d.ts +2 -0
- package/lib/cli/cli.js +3 -0
- package/lib/cli/commands/bundle.d.ts +1 -0
- package/lib/cli/commands/bundle.js +2 -0
- package/lib/cli/commands/index.d.ts +1 -0
- package/lib/cli/commands/index.js +2 -0
- package/lib/cli/constants.d.ts +3 -0
- package/lib/cli/constants.js +2 -0
- package/lib/cli/utils.d.ts +16 -0
- package/lib/cli/utils.js +2 -0
- package/lib/components/Endpoint/Endpoint.d.ts +3 -0
- package/lib/components/Endpoint/Endpoint.js +2 -0
- package/lib/components/Endpoint/ServerList.d.ts +3 -0
- package/lib/components/Endpoint/ServerList.js +2 -0
- package/lib/components/Endpoint/Summary.d.ts +3 -0
- package/lib/components/Endpoint/Summary.js +2 -0
- package/lib/components/Endpoint/index.d.ts +2 -0
- package/lib/components/Endpoint/index.js +2 -0
- package/lib/components/Endpoint/styled.d.ts +8 -0
- package/lib/components/Endpoint/styled.js +48 -0
- package/lib/components/Endpoint/types.d.ts +21 -0
- package/lib/components/Endpoint/types.js +2 -0
- package/lib/components/NextSectionButton.d.ts +13 -0
- package/lib/components/NextSectionButton.js +8 -0
- package/lib/components/OperationParameters/OperationParameters.d.ts +2 -0
- package/lib/components/OperationParameters/OperationParameters.js +2 -0
- package/lib/components/OperationParameters/index.d.ts +1 -0
- package/lib/components/OperationParameters/index.js +2 -0
- package/lib/components/OperationParameters/types.d.ts +14 -0
- package/lib/components/OperationParameters/types.js +2 -0
- package/lib/components/OperationParameters/utils.d.ts +7 -0
- package/lib/components/OperationParameters/utils.js +2 -0
- package/lib/components/Overlay.d.ts +10 -0
- package/lib/components/Overlay.js +43 -0
- package/lib/components/Panel/Accordion.d.ts +5 -0
- package/lib/components/Panel/Accordion.js +2 -0
- package/lib/components/Panel/CodeHeader.d.ts +6 -0
- package/lib/components/Panel/CodeHeader.js +12 -0
- package/lib/components/Panel/CodePanel.d.ts +4 -0
- package/lib/components/Panel/CodePanel.js +6 -0
- package/lib/components/Panel/ContentPanel.d.ts +4 -0
- package/lib/components/Panel/ContentPanel.js +21 -0
- package/lib/components/Panel/Description.d.ts +1 -0
- package/lib/components/Panel/Description.js +8 -0
- package/lib/components/Panel/ResponsePanel.d.ts +8 -0
- package/lib/components/Panel/ResponsePanel.js +26 -0
- package/lib/components/Panel/Trigger.d.ts +1 -0
- package/lib/components/Panel/Trigger.js +8 -0
- package/lib/components/Panel/index.d.ts +7 -0
- package/lib/components/Panel/index.js +2 -0
- package/lib/components/ProProviders.d.ts +9 -0
- package/lib/components/ProProviders.js +2 -0
- package/lib/components/RedoclyReferenceDocs.d.ts +40 -0
- package/lib/components/RedoclyReferenceDocs.js +54 -0
- package/lib/components/RedoclyReferenceDocsMultiStandalone.d.ts +7 -0
- package/lib/components/RedoclyReferenceDocsMultiStandalone.js +2 -0
- package/lib/components/Samples/ExampleSwitch.d.ts +13 -0
- package/lib/components/Samples/ExampleSwitch.js +2 -0
- package/lib/components/Samples/LoadingWrapper.d.ts +1 -0
- package/lib/components/Samples/LoadingWrapper.js +8 -0
- package/lib/components/Samples/SamplesTabs.d.ts +13 -0
- package/lib/components/Samples/SamplesTabs.js +2 -0
- package/lib/components/Samples/index.d.ts +4 -0
- package/lib/components/Samples/index.js +2 -0
- package/lib/components/Samples/use-example-key.d.ts +7 -0
- package/lib/components/Samples/use-example-key.js +2 -0
- package/lib/components/Search/MenuItemProSearch.d.ts +23 -0
- package/lib/components/Search/MenuItemProSearch.js +10 -0
- package/lib/components/Search/ProSearchBox.d.ts +52 -0
- package/lib/components/Search/ProSearchBox.js +2 -0
- package/lib/components/Search/SearchField.d.ts +9 -0
- package/lib/components/Search/SearchField.js +2 -0
- package/lib/components/Search/index.d.ts +2 -0
- package/lib/components/Search/index.js +2 -0
- package/lib/components/Search/styled.d.ts +21 -0
- package/lib/components/Search/styled.js +135 -0
- package/lib/components/StoreProvider.d.ts +23 -0
- package/lib/components/StoreProvider.js +2 -0
- package/lib/components/Tabs/CollapsingTabs/CollapsingTab.d.ts +1 -0
- package/lib/components/Tabs/CollapsingTabs/CollapsingTab.js +11 -0
- package/lib/components/Tabs/CollapsingTabs/CollapsingTabList.d.ts +1 -0
- package/lib/components/Tabs/CollapsingTabs/CollapsingTabList.js +4 -0
- package/lib/components/Tabs/CollapsingTabs/CollapsingTabs.d.ts +2 -0
- package/lib/components/Tabs/CollapsingTabs/CollapsingTabs.js +2 -0
- package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +19 -0
- package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +2 -0
- package/lib/components/Tabs/CollapsingTabs/index.d.ts +4 -0
- package/lib/components/Tabs/CollapsingTabs/index.js +2 -0
- package/lib/components/Tabs/Tab.d.ts +2 -0
- package/lib/components/Tabs/Tab.js +32 -0
- package/lib/components/Tabs/TabList.d.ts +2 -0
- package/lib/components/Tabs/TabList.js +7 -0
- package/lib/components/Tabs/TabPanel.d.ts +2 -0
- package/lib/components/Tabs/TabPanel.js +11 -0
- package/lib/components/Tabs/index.d.ts +5 -0
- package/lib/components/Tabs/index.js +2 -0
- package/lib/components/VersionSwitcher.d.ts +7 -0
- package/lib/components/VersionSwitcher.js +7 -0
- package/lib/components/common/Checkbox.d.ts +10 -0
- package/lib/components/common/Checkbox.js +31 -0
- package/lib/components/common/CheckboxList.d.ts +25 -0
- package/lib/components/common/CheckboxList.js +7 -0
- package/lib/components/common/ClearButton/ClearButton.d.ts +3 -0
- package/lib/components/common/ClearButton/ClearButton.js +2 -0
- package/lib/components/common/ClearButton/index.d.ts +2 -0
- package/lib/components/common/ClearButton/index.js +2 -0
- package/lib/components/common/ClearButton/styled.d.ts +2 -0
- package/lib/components/common/ClearButton/styled.js +16 -0
- package/lib/components/common/ClearButton/types.d.ts +6 -0
- package/lib/components/common/ClearButton/types.js +2 -0
- package/lib/components/common/Dropdown/Dropdown.d.ts +3 -0
- package/lib/components/common/Dropdown/Dropdown.js +16 -0
- package/lib/components/common/Dropdown/index.d.ts +2 -0
- package/lib/components/common/Dropdown/index.js +2 -0
- package/lib/components/common/Dropdown/styled.d.ts +28 -0
- package/lib/components/common/Dropdown/styled.js +145 -0
- package/lib/components/common/Dropdown/types.d.ts +26 -0
- package/lib/components/common/Dropdown/types.js +2 -0
- package/lib/components/common/FileUpload/FileUpload.d.ts +10 -0
- package/lib/components/common/FileUpload/FileUpload.js +2 -0
- package/lib/components/common/FileUpload/helper.d.ts +12 -0
- package/lib/components/common/FileUpload/helper.js +2 -0
- package/lib/components/common/FileUpload/index.d.ts +1 -0
- package/lib/components/common/FileUpload/index.js +2 -0
- package/lib/components/common/LinearProgress.d.ts +1 -0
- package/lib/components/common/LinearProgress.js +104 -0
- package/lib/components/common/TextField.d.ts +28 -0
- package/lib/components/common/TextField.js +50 -0
- package/lib/components/common/form.d.ts +17 -0
- package/lib/components/common/form.js +65 -0
- package/lib/components/console/ActionPanel.d.ts +12 -0
- package/lib/components/console/ActionPanel.js +4 -0
- package/lib/components/console/AuthPanel/AuthPanel.d.ts +13 -0
- package/lib/components/console/AuthPanel/AuthPanel.js +2 -0
- package/lib/components/console/AuthPanel/index.d.ts +2 -0
- package/lib/components/console/AuthPanel/index.js +2 -0
- package/lib/components/console/AuthPanel/types.d.ts +14 -0
- package/lib/components/console/AuthPanel/types.js +2 -0
- package/lib/components/console/CodemirrorInput.d.ts +39 -0
- package/lib/components/console/CodemirrorInput.js +50 -0
- package/lib/components/console/Console.d.ts +47 -0
- package/lib/components/console/Console.js +2 -0
- package/lib/components/console/ConsoleLazy.d.ts +2 -0
- package/lib/components/console/ConsoleLazy.js +2 -0
- package/lib/components/console/ConsoleTabs/ConsoleTabs.d.ts +6 -0
- package/lib/components/console/ConsoleTabs/ConsoleTabs.js +2 -0
- package/lib/components/console/ConsoleTabs/index.d.ts +2 -0
- package/lib/components/console/ConsoleTabs/index.js +2 -0
- package/lib/components/console/ConsoleTabs/styled.d.ts +5 -0
- package/lib/components/console/ConsoleTabs/styled.js +48 -0
- package/lib/components/console/OAuth2Flow.d.ts +57 -0
- package/lib/components/console/OAuth2Flow.js +14 -0
- package/lib/components/console/OAuth2TokenInput.d.ts +35 -0
- package/lib/components/console/OAuth2TokenInput.js +2 -0
- package/lib/components/console/OpenIDConnect.d.ts +17 -0
- package/lib/components/console/OpenIDConnect.js +2 -0
- package/lib/components/console/ParameterArray.d.ts +9 -0
- package/lib/components/console/ParameterArray.js +28 -0
- package/lib/components/console/ParameterDropdown.d.ts +6 -0
- package/lib/components/console/ParameterDropdown.js +2 -0
- package/lib/components/console/RequestBody/RequestBody.d.ts +3 -0
- package/lib/components/console/RequestBody/RequestBody.js +2 -0
- package/lib/components/console/RequestBody/index.d.ts +2 -0
- package/lib/components/console/RequestBody/index.js +2 -0
- package/lib/components/console/RequestBody/types.d.ts +10 -0
- package/lib/components/console/RequestBody/types.js +2 -0
- package/lib/components/console/RequestBodyForm.d.ts +9 -0
- package/lib/components/console/RequestBodyForm.js +10 -0
- package/lib/components/console/RequestMimeLabel.d.ts +1 -0
- package/lib/components/console/RequestMimeLabel.js +5 -0
- package/lib/components/console/ResponseBody.d.ts +4 -0
- package/lib/components/console/ResponseBody.js +2 -0
- package/lib/components/console/ResponseHeadersList.d.ts +3 -0
- package/lib/components/console/ResponseHeadersList.js +10 -0
- package/lib/components/console/ResponsePanel.d.ts +21 -0
- package/lib/components/console/ResponsePanel.js +18 -0
- package/lib/components/console/Scope.d.ts +6 -0
- package/lib/components/console/Scope.js +2 -0
- package/lib/components/console/ServerVariable.d.ts +10 -0
- package/lib/components/console/ServerVariable.js +5 -0
- package/lib/components/console/ServersDropdown/ServersDropdown.d.ts +2 -0
- package/lib/components/console/ServersDropdown/ServersDropdown.js +4 -0
- package/lib/components/console/ServersDropdown/index.d.ts +1 -0
- package/lib/components/console/ServersDropdown/index.js +2 -0
- package/lib/components/console/ServersDropdown/types.d.ts +5 -0
- package/lib/components/console/ServersDropdown/types.js +2 -0
- package/lib/components/console/TryItPanel.d.ts +7 -0
- package/lib/components/console/TryItPanel.js +14 -0
- package/lib/components/console/codemirror-helpers.d.ts +10 -0
- package/lib/components/console/codemirror-helpers.js +2 -0
- package/lib/components/console/styled.d.ts +20 -0
- package/lib/components/console/styled.js +99 -0
- package/lib/components/console/utils.d.ts +27 -0
- package/lib/components/console/utils.js +2 -0
- package/lib/components/index.d.ts +14 -0
- package/lib/components/index.js +2 -0
- package/lib/components/pluggable/PullRight.d.ts +2 -0
- package/lib/components/pluggable/PullRight.js +61 -0
- package/lib/components/pluggable/RedocExample.d.ts +15 -0
- package/lib/components/pluggable/RedocExample.js +2 -0
- package/lib/components/pluggable/RedocRequestBody.d.ts +11 -0
- package/lib/components/pluggable/RedocRequestBody.js +2 -0
- package/lib/components/pluggable/RedocResponse.d.ts +10 -0
- package/lib/components/pluggable/RedocResponse.js +2 -0
- package/lib/components/pluggable/RedocSchema.d.ts +12 -0
- package/lib/components/pluggable/RedocSchema.js +2 -0
- package/lib/components/pluggable/index.d.ts +5 -0
- package/lib/components/pluggable/index.js +2 -0
- package/lib/components/pluggable/styled.components.d.ts +6 -0
- package/lib/components/pluggable/styled.components.js +12 -0
- package/lib/components/shared/HttpVerb.d.ts +6 -0
- package/lib/components/shared/HttpVerb.js +5 -0
- package/lib/components/shared/MimeLabel.d.ts +1 -0
- package/lib/components/shared/MimeLabel.js +13 -0
- package/lib/components/shared/NoSampleLabel.d.ts +2 -0
- package/lib/components/shared/NoSampleLabel.js +13 -0
- package/lib/components/shared/index.d.ts +3 -0
- package/lib/components/shared/index.js +2 -0
- package/lib/components/styled.elements.d.ts +19 -0
- package/lib/components/styled.elements.js +166 -0
- package/lib/components/types.d.ts +15 -0
- package/lib/components/types.js +2 -0
- package/lib/constants.d.ts +2 -0
- package/lib/constants.js +2 -0
- package/lib/empty.d.ts +1 -0
- package/lib/empty.js +2 -0
- package/lib/events/codeSampleCopy.d.ts +2 -0
- package/lib/events/codeSampleCopy.js +2 -0
- package/lib/events/creator.d.ts +2 -0
- package/lib/events/creator.js +2 -0
- package/lib/events/index.d.ts +5 -0
- package/lib/events/index.js +2 -0
- package/lib/events/languageSwitch.d.ts +2 -0
- package/lib/events/languageSwitch.js +2 -0
- package/lib/events/panelToggle.d.ts +2 -0
- package/lib/events/panelToggle.js +2 -0
- package/lib/events/types.d.ts +63 -0
- package/lib/events/types.js +2 -0
- package/lib/hooks/index.d.ts +3 -0
- package/lib/hooks/index.js +2 -0
- package/lib/hooks/useDimensions.d.ts +1 -0
- package/lib/hooks/useDimensions.js +2 -0
- package/lib/hooks/useMount.d.ts +1 -0
- package/lib/hooks/useMount.js +2 -0
- package/lib/hooks/useUnmount.d.ts +1 -0
- package/lib/hooks/useUnmount.js +2 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.js +2 -0
- package/lib/models/code-sample-options.d.ts +11 -0
- package/lib/models/code-sample-options.js +2 -0
- package/lib/models/file-upload.d.ts +11 -0
- package/lib/models/file-upload.js +2 -0
- package/lib/models/index.d.ts +2 -0
- package/lib/models/index.js +2 -0
- package/lib/oauth2-redirect-page/handler/helpers.d.ts +6 -0
- package/lib/oauth2-redirect-page/handler/helpers.js +2 -0
- package/lib/oauth2-redirect-page/handler/oauth2-redirect-handler.d.ts +1 -0
- package/lib/oauth2-redirect-page/handler/oauth2-redirect-handler.js +2 -0
- package/lib/oauth2-redirect-page/index.d.ts +1 -0
- package/lib/oauth2-redirect-page/index.js +2 -0
- package/lib/redoc-lib/index.d.ts +1 -0
- package/lib/redoc-lib/index.js +2 -0
- package/lib/redoc-lib/src/common-elements/Download.d.ts +7 -0
- package/lib/redoc-lib/src/common-elements/Download.js +4 -0
- package/lib/redoc-lib/src/common-elements/LinkToField.d.ts +9 -0
- package/lib/redoc-lib/src/common-elements/LinkToField.js +27 -0
- package/lib/redoc-lib/src/common-elements/fields-layout.d.ts +15 -0
- package/lib/redoc-lib/src/common-elements/fields-layout.js +228 -0
- package/lib/redoc-lib/src/common-elements/fields.d.ts +21 -0
- package/lib/redoc-lib/src/common-elements/fields.js +103 -0
- package/lib/redoc-lib/src/common-elements/headers.d.ts +8 -0
- package/lib/redoc-lib/src/common-elements/headers.js +36 -0
- package/lib/redoc-lib/src/common-elements/icons.d.ts +41 -0
- package/lib/redoc-lib/src/common-elements/icons.js +55 -0
- package/lib/redoc-lib/src/common-elements/index.d.ts +9 -0
- package/lib/redoc-lib/src/common-elements/index.js +2 -0
- package/lib/redoc-lib/src/common-elements/linkify.d.ts +13 -0
- package/lib/redoc-lib/src/common-elements/linkify.js +55 -0
- package/lib/redoc-lib/src/common-elements/mixins.d.ts +1 -0
- package/lib/redoc-lib/src/common-elements/mixins.js +5 -0
- package/lib/redoc-lib/src/common-elements/panels.d.ts +13 -0
- package/lib/redoc-lib/src/common-elements/panels.js +95 -0
- package/lib/redoc-lib/src/common-elements/perfect-scrollbar.d.ts +18 -0
- package/lib/redoc-lib/src/common-elements/perfect-scrollbar.js +4 -0
- package/lib/redoc-lib/src/common-elements/schema.d.ts +11 -0
- package/lib/redoc-lib/src/common-elements/schema.js +68 -0
- package/lib/redoc-lib/src/common-elements/shelfs.d.ts +3 -0
- package/lib/redoc-lib/src/common-elements/shelfs.js +23 -0
- package/lib/redoc-lib/src/components/ApiInfo/ApiInfo.d.ts +5 -0
- package/lib/redoc-lib/src/components/ApiInfo/ApiInfo.js +2 -0
- package/lib/redoc-lib/src/components/ApiInfo/index.d.ts +1 -0
- package/lib/redoc-lib/src/components/ApiInfo/index.js +2 -0
- package/lib/redoc-lib/src/components/ApiInfo/styled.elements.d.ts +8 -0
- package/lib/redoc-lib/src/components/ApiInfo/styled.elements.js +24 -0
- package/lib/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.d.ts +11 -0
- package/lib/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.js +4 -0
- package/lib/redoc-lib/src/components/CallbackSamples/CallbackSamples.d.ts +12 -0
- package/lib/redoc-lib/src/components/CallbackSamples/CallbackSamples.js +2 -0
- package/lib/redoc-lib/src/components/Callbacks/CallbackDetails.d.ts +8 -0
- package/lib/redoc-lib/src/components/Callbacks/CallbackDetails.js +4 -0
- package/lib/redoc-lib/src/components/Callbacks/CallbackOperation.d.ts +5 -0
- package/lib/redoc-lib/src/components/Callbacks/CallbackOperation.js +2 -0
- package/lib/redoc-lib/src/components/Callbacks/CallbackSummary.d.ts +6 -0
- package/lib/redoc-lib/src/components/Callbacks/CallbackSummary.js +2 -0
- package/lib/redoc-lib/src/components/Callbacks/CallbackTitle.d.ts +5 -0
- package/lib/redoc-lib/src/components/Callbacks/CallbackTitle.js +7 -0
- package/lib/redoc-lib/src/components/Callbacks/CallbacksList.d.ts +8 -0
- package/lib/redoc-lib/src/components/Callbacks/CallbacksList.js +2 -0
- package/lib/redoc-lib/src/components/Callbacks/index.d.ts +3 -0
- package/lib/redoc-lib/src/components/Callbacks/index.js +2 -0
- package/lib/redoc-lib/src/components/ContentItem/ContentItem.d.ts +9 -0
- package/lib/redoc-lib/src/components/ContentItem/ContentItem.js +2 -0
- package/lib/redoc-lib/src/components/ContentItem/index.d.ts +1 -0
- package/lib/redoc-lib/src/components/ContentItem/index.js +2 -0
- package/lib/redoc-lib/src/components/ContentItems/ContentItems.d.ts +8 -0
- package/lib/redoc-lib/src/components/ContentItems/ContentItems.js +2 -0
- package/lib/redoc-lib/src/components/ContentItems/Skeleton.d.ts +1 -0
- package/lib/redoc-lib/src/components/ContentItems/Skeleton.js +31 -0
- package/lib/redoc-lib/src/components/ContentItems/index.d.ts +1 -0
- package/lib/redoc-lib/src/components/ContentItems/index.js +2 -0
- package/lib/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +10 -0
- package/lib/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.js +2 -0
- package/lib/redoc-lib/src/components/DiscriminatorDropdown/index.d.ts +1 -0
- package/lib/redoc-lib/src/components/DiscriminatorDropdown/index.js +2 -0
- package/lib/redoc-lib/src/components/DownloadButton/DownloadButton.d.ts +4 -0
- package/lib/redoc-lib/src/components/DownloadButton/DownloadButton.js +21 -0
- package/lib/redoc-lib/src/components/DownloadButton/index.d.ts +1 -0
- package/lib/redoc-lib/src/components/DownloadButton/index.js +2 -0
- package/lib/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.d.ts +7 -0
- package/lib/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.js +8 -0
- package/lib/redoc-lib/src/components/ErrorBoundary.d.ts +9 -0
- package/lib/redoc-lib/src/components/ErrorBoundary.js +5 -0
- package/lib/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.d.ts +8 -0
- package/lib/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.js +5 -0
- package/lib/redoc-lib/src/components/Fields/EnumValues.d.ts +17 -0
- package/lib/redoc-lib/src/components/Fields/EnumValues.js +13 -0
- package/lib/redoc-lib/src/components/Fields/Extensions.d.ts +9 -0
- package/lib/redoc-lib/src/components/Fields/Extensions.js +6 -0
- package/lib/redoc-lib/src/components/Fields/Field.d.ts +20 -0
- package/lib/redoc-lib/src/components/Fields/Field.js +2 -0
- package/lib/redoc-lib/src/components/Fields/FieldContstraints.d.ts +5 -0
- package/lib/redoc-lib/src/components/Fields/FieldContstraints.js +2 -0
- package/lib/redoc-lib/src/components/Fields/FieldDetail.d.ts +10 -0
- package/lib/redoc-lib/src/components/Fields/FieldDetail.js +2 -0
- package/lib/redoc-lib/src/components/Fields/FieldDetails.d.ts +12 -0
- package/lib/redoc-lib/src/components/Fields/FieldDetails.js +15 -0
- package/lib/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +22 -0
- package/lib/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +2 -0
- package/lib/redoc-lib/src/components/Loading/Loading.d.ts +5 -0
- package/lib/redoc-lib/src/components/Loading/Loading.js +9 -0
- package/lib/redoc-lib/src/components/Loading/Spinner.d.ts +6 -0
- package/lib/redoc-lib/src/components/Loading/Spinner.js +19 -0
- package/lib/redoc-lib/src/components/Markdown/AdvancedMarkdown.d.ts +2 -0
- package/lib/redoc-lib/src/components/Markdown/AdvancedMarkdown.js +2 -0
- package/lib/redoc-lib/src/components/Markdown/Markdown.d.ts +2 -0
- package/lib/redoc-lib/src/components/Markdown/Markdown.js +2 -0
- package/lib/redoc-lib/src/components/Markdown/SanitizedMarkdownHTML.d.ts +6 -0
- package/lib/redoc-lib/src/components/Markdown/SanitizedMarkdownHTML.js +2 -0
- package/lib/redoc-lib/src/components/Markdown/index.d.ts +5 -0
- package/lib/redoc-lib/src/components/Markdown/index.js +2 -0
- package/lib/redoc-lib/src/components/Markdown/styled.d.ts +16 -0
- package/lib/redoc-lib/src/components/Markdown/styled.js +257 -0
- package/lib/redoc-lib/src/components/Markdown/types.d.ts +16 -0
- package/lib/redoc-lib/src/components/Markdown/types.js +2 -0
- package/lib/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +13 -0
- package/lib/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.js +2 -0
- package/lib/redoc-lib/src/components/Operation/Operation.d.ts +7 -0
- package/lib/redoc-lib/src/components/Operation/Operation.js +8 -0
- package/lib/redoc-lib/src/components/Operation/index.d.ts +2 -0
- package/lib/redoc-lib/src/components/Operation/index.js +2 -0
- package/lib/redoc-lib/src/components/OptionsProvider.d.ts +6 -0
- package/lib/redoc-lib/src/components/OptionsProvider.js +2 -0
- package/lib/redoc-lib/src/components/Parameters/Parameters.d.ts +10 -0
- package/lib/redoc-lib/src/components/Parameters/Parameters.js +4 -0
- package/lib/redoc-lib/src/components/Parameters/ParametersGroup.d.ts +10 -0
- package/lib/redoc-lib/src/components/Parameters/ParametersGroup.js +16 -0
- package/lib/redoc-lib/src/components/PayloadSamples/Example.d.ts +3 -0
- package/lib/redoc-lib/src/components/PayloadSamples/Example.js +2 -0
- package/lib/redoc-lib/src/components/PayloadSamples/ExampleValue.d.ts +2 -0
- package/lib/redoc-lib/src/components/PayloadSamples/ExampleValue.js +2 -0
- package/lib/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.d.ts +2 -0
- package/lib/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +2 -0
- package/lib/redoc-lib/src/components/PayloadSamples/PayloadSamples.d.ts +2 -0
- package/lib/redoc-lib/src/components/PayloadSamples/PayloadSamples.js +2 -0
- package/lib/redoc-lib/src/components/PayloadSamples/index.d.ts +5 -0
- package/lib/redoc-lib/src/components/PayloadSamples/index.js +2 -0
- package/lib/redoc-lib/src/components/PayloadSamples/styled.d.ts +3 -0
- package/lib/redoc-lib/src/components/PayloadSamples/styled.js +17 -0
- package/lib/redoc-lib/src/components/PayloadSamples/types.d.ts +25 -0
- package/lib/redoc-lib/src/components/PayloadSamples/types.js +2 -0
- package/lib/redoc-lib/src/components/PayloadSamples/useExternalExample.d.ts +2 -0
- package/lib/redoc-lib/src/components/PayloadSamples/useExternalExample.js +2 -0
- package/lib/redoc-lib/src/components/RenderHook.d.ts +6 -0
- package/lib/redoc-lib/src/components/RenderHook.js +2 -0
- package/lib/redoc-lib/src/components/RequestSamples/CodeSample.d.ts +16 -0
- package/lib/redoc-lib/src/components/RequestSamples/CodeSample.js +2 -0
- package/lib/redoc-lib/src/components/RequestSamples/RequestSamples.d.ts +12 -0
- package/lib/redoc-lib/src/components/RequestSamples/RequestSamples.js +2 -0
- package/lib/redoc-lib/src/components/RequestSamples/useCodeSamples.d.ts +9 -0
- package/lib/redoc-lib/src/components/RequestSamples/useCodeSamples.js +2 -0
- package/lib/redoc-lib/src/components/ResponseSamples/ResponseSamples.d.ts +5 -0
- package/lib/redoc-lib/src/components/ResponseSamples/ResponseSamples.js +2 -0
- package/lib/redoc-lib/src/components/Responses/Response.d.ts +2 -0
- package/lib/redoc-lib/src/components/Responses/Response.js +2 -0
- package/lib/redoc-lib/src/components/Responses/ResponseDetails.d.ts +5 -0
- package/lib/redoc-lib/src/components/Responses/ResponseDetails.js +4 -0
- package/lib/redoc-lib/src/components/Responses/ResponseHeaders.d.ts +3 -0
- package/lib/redoc-lib/src/components/Responses/ResponseHeaders.js +2 -0
- package/lib/redoc-lib/src/components/Responses/ResponseSummary.d.ts +2 -0
- package/lib/redoc-lib/src/components/Responses/ResponseSummary.js +2 -0
- package/lib/redoc-lib/src/components/Responses/ResponsesList.d.ts +3 -0
- package/lib/redoc-lib/src/components/Responses/ResponsesList.js +2 -0
- package/lib/redoc-lib/src/components/Responses/index.d.ts +1 -0
- package/lib/redoc-lib/src/components/Responses/index.js +2 -0
- package/lib/redoc-lib/src/components/Responses/styled.d.ts +3 -0
- package/lib/redoc-lib/src/components/Responses/styled.js +14 -0
- package/lib/redoc-lib/src/components/Responses/types.d.ts +12 -0
- package/lib/redoc-lib/src/components/Responses/types.js +2 -0
- package/lib/redoc-lib/src/components/Schema/ArraySchema.d.ts +3 -0
- package/lib/redoc-lib/src/components/Schema/ArraySchema.js +4 -0
- package/lib/redoc-lib/src/components/Schema/ObjectSchema.d.ts +2 -0
- package/lib/redoc-lib/src/components/Schema/ObjectSchema.js +2 -0
- package/lib/redoc-lib/src/components/Schema/OneOfSchema.d.ts +2 -0
- package/lib/redoc-lib/src/components/Schema/OneOfSchema.js +2 -0
- package/lib/redoc-lib/src/components/Schema/RecursiveSchema.d.ts +2 -0
- package/lib/redoc-lib/src/components/Schema/RecursiveSchema.js +2 -0
- package/lib/redoc-lib/src/components/Schema/Schema.d.ts +2 -0
- package/lib/redoc-lib/src/components/Schema/Schema.js +2 -0
- package/lib/redoc-lib/src/components/Schema/index.d.ts +4 -0
- package/lib/redoc-lib/src/components/Schema/index.js +2 -0
- package/lib/redoc-lib/src/components/Schema/types.d.ts +22 -0
- package/lib/redoc-lib/src/components/Schema/types.js +2 -0
- package/lib/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.d.ts +21 -0
- package/lib/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.js +7 -0
- package/lib/redoc-lib/src/components/SearchBox/SearchBox.d.ts +30 -0
- package/lib/redoc-lib/src/components/SearchBox/SearchBox.js +2 -0
- package/lib/redoc-lib/src/components/SearchBox/styled.d.ts +6 -0
- package/lib/redoc-lib/src/components/SearchBox/styled.js +53 -0
- package/lib/redoc-lib/src/components/SectionItem/SectionItem.d.ts +6 -0
- package/lib/redoc-lib/src/components/SectionItem/SectionItem.js +2 -0
- package/lib/redoc-lib/src/components/SectionItem/index.d.ts +1 -0
- package/lib/redoc-lib/src/components/SectionItem/index.js +2 -0
- package/lib/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.d.ts +3 -0
- package/lib/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.js +2 -0
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityDefs.d.ts +8 -0
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityDefs.js +4 -0
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.d.ts +12 -0
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.js +26 -0
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.d.ts +7 -0
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.js +24 -0
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.d.ts +7 -0
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.js +2 -0
- package/lib/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.d.ts +3 -0
- package/lib/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.js +2 -0
- package/lib/redoc-lib/src/components/SecuritySchemes/helpers.d.ts +34 -0
- package/lib/redoc-lib/src/components/SecuritySchemes/helpers.js +2 -0
- package/lib/redoc-lib/src/components/SecuritySchemes/index.d.ts +2 -0
- package/lib/redoc-lib/src/components/SecuritySchemes/index.js +2 -0
- package/lib/redoc-lib/src/components/SecuritySchemes/types.d.ts +6 -0
- package/lib/redoc-lib/src/components/SecuritySchemes/types.js +2 -0
- package/lib/redoc-lib/src/components/SeeMore/SeeMore.d.ts +7 -0
- package/lib/redoc-lib/src/components/SeeMore/SeeMore.js +10 -0
- package/lib/redoc-lib/src/components/SideMenu/MenuItem.d.ts +17 -0
- package/lib/redoc-lib/src/components/SideMenu/MenuItem.js +19 -0
- package/lib/redoc-lib/src/components/SideMenu/MenuItems.d.ts +17 -0
- package/lib/redoc-lib/src/components/SideMenu/MenuItems.js +2 -0
- package/lib/redoc-lib/src/components/SideMenu/SideMenu.d.ts +15 -0
- package/lib/redoc-lib/src/components/SideMenu/SideMenu.js +2 -0
- package/lib/redoc-lib/src/components/SideMenu/index.d.ts +4 -0
- package/lib/redoc-lib/src/components/SideMenu/index.js +2 -0
- package/lib/redoc-lib/src/components/SideMenu/styled.elements.d.ts +25 -0
- package/lib/redoc-lib/src/components/SideMenu/styled.elements.js +86 -0
- package/lib/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +2 -0
- package/lib/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.js +2 -0
- package/lib/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts +25 -0
- package/lib/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.js +40 -0
- package/lib/redoc-lib/src/components/StoreBuilder.d.ts +6 -0
- package/lib/redoc-lib/src/components/StoreBuilder.js +2 -0
- package/lib/redoc-lib/src/components/index.d.ts +31 -0
- package/lib/redoc-lib/src/components/index.js +2 -0
- package/lib/redoc-lib/src/empty.d.ts +1 -0
- package/lib/redoc-lib/src/empty.js +2 -0
- package/lib/redoc-lib/src/index.d.ts +7 -0
- package/lib/redoc-lib/src/index.js +2 -0
- package/lib/redoc-lib/src/services/HistoryService.d.ts +15 -0
- package/lib/redoc-lib/src/services/HistoryService.js +2 -0
- package/lib/redoc-lib/src/services/Labels.d.ts +3 -0
- package/lib/redoc-lib/src/services/Labels.js +2 -0
- package/lib/redoc-lib/src/services/MarkdownRenderer.d.ts +23 -0
- package/lib/redoc-lib/src/services/MarkdownRenderer.js +2 -0
- package/lib/redoc-lib/src/services/MarkerService.d.ts +11 -0
- package/lib/redoc-lib/src/services/MarkerService.js +2 -0
- package/lib/redoc-lib/src/services/MenuBuilder.d.ts +62 -0
- package/lib/redoc-lib/src/services/MenuBuilder.js +2 -0
- package/lib/redoc-lib/src/services/OpenAPIParser.d.ts +51 -0
- package/lib/redoc-lib/src/services/OpenAPIParser.js +2 -0
- package/lib/redoc-lib/src/services/RedocNormalizedOptions.d.ts +84 -0
- package/lib/redoc-lib/src/services/RedocNormalizedOptions.js +2 -0
- package/lib/redoc-lib/src/services/ScrollService.d.ts +18 -0
- package/lib/redoc-lib/src/services/ScrollService.js +2 -0
- package/lib/redoc-lib/src/services/SearchStore.d.ts +13 -0
- package/lib/redoc-lib/src/services/SearchStore.js +2 -0
- package/lib/redoc-lib/src/services/SearchWorker.worker.d.ts +17 -0
- package/lib/redoc-lib/src/services/SearchWorker.worker.js +2 -0
- package/lib/redoc-lib/src/services/SpecStore.d.ts +18 -0
- package/lib/redoc-lib/src/services/SpecStore.js +2 -0
- package/lib/redoc-lib/src/services/constants.d.ts +6 -0
- package/lib/redoc-lib/src/services/constants.js +2 -0
- package/lib/redoc-lib/src/services/index.d.ts +12 -0
- package/lib/redoc-lib/src/services/index.js +2 -0
- package/lib/redoc-lib/src/services/models/ApiInfo.d.ts +17 -0
- package/lib/redoc-lib/src/services/models/ApiInfo.js +2 -0
- package/lib/redoc-lib/src/services/models/Callback.d.ts +11 -0
- package/lib/redoc-lib/src/services/models/Callback.js +2 -0
- package/lib/redoc-lib/src/services/models/Example.d.ts +17 -0
- package/lib/redoc-lib/src/services/models/Example.js +2 -0
- package/lib/redoc-lib/src/services/models/Field.d.ts +35 -0
- package/lib/redoc-lib/src/services/models/Field.js +2 -0
- package/lib/redoc-lib/src/services/models/Group.model.d.ts +25 -0
- package/lib/redoc-lib/src/services/models/Group.model.js +2 -0
- package/lib/redoc-lib/src/services/models/MediaContent.d.ts +31 -0
- package/lib/redoc-lib/src/services/models/MediaContent.js +2 -0
- package/lib/redoc-lib/src/services/models/MediaType.d.ts +27 -0
- package/lib/redoc-lib/src/services/models/MediaType.js +2 -0
- package/lib/redoc-lib/src/services/models/Operation.d.ts +93 -0
- package/lib/redoc-lib/src/services/models/Operation.js +2 -0
- package/lib/redoc-lib/src/services/models/RequestBody.d.ts +19 -0
- package/lib/redoc-lib/src/services/models/RequestBody.js +2 -0
- package/lib/redoc-lib/src/services/models/Response.d.ts +28 -0
- package/lib/redoc-lib/src/services/models/Response.js +2 -0
- package/lib/redoc-lib/src/services/models/Schema.d.ts +78 -0
- package/lib/redoc-lib/src/services/models/Schema.js +2 -0
- package/lib/redoc-lib/src/services/models/SecurityRequirement.d.ts +12 -0
- package/lib/redoc-lib/src/services/models/SecurityRequirement.js +2 -0
- package/lib/redoc-lib/src/services/models/SecuritySchemes.d.ts +25 -0
- package/lib/redoc-lib/src/services/models/SecuritySchemes.js +2 -0
- package/lib/redoc-lib/src/services/models/Webhook.d.ts +9 -0
- package/lib/redoc-lib/src/services/models/Webhook.js +2 -0
- package/lib/redoc-lib/src/services/models/index.d.ts +14 -0
- package/lib/redoc-lib/src/services/models/index.js +2 -0
- package/lib/redoc-lib/src/services/types.d.ts +226 -0
- package/lib/redoc-lib/src/services/types.js +2 -0
- package/lib/redoc-lib/src/theme.d.ts +10 -0
- package/lib/redoc-lib/src/theme.js +2 -0
- package/lib/redoc-lib/src/types/index.d.ts +3 -0
- package/lib/redoc-lib/src/types/index.js +2 -0
- package/lib/redoc-lib/src/types/open-api.d.ts +338 -0
- package/lib/redoc-lib/src/types/open-api.js +2 -0
- package/lib/redoc-lib/src/types/server.d.ts +7 -0
- package/lib/redoc-lib/src/types/server.js +2 -0
- package/lib/redoc-lib/src/utils/JsonPointer.d.ts +51 -0
- package/lib/redoc-lib/src/utils/JsonPointer.js +2 -0
- package/lib/redoc-lib/src/utils/argValuesHelpers.d.ts +4 -0
- package/lib/redoc-lib/src/utils/argValuesHelpers.js +2 -0
- package/lib/redoc-lib/src/utils/css-variables.d.ts +2 -0
- package/lib/redoc-lib/src/utils/css-variables.js +2 -0
- package/lib/redoc-lib/src/utils/debug.d.ts +2 -0
- package/lib/redoc-lib/src/utils/debug.js +2 -0
- package/lib/redoc-lib/src/utils/decorators.d.ts +1 -0
- package/lib/redoc-lib/src/utils/decorators.js +2 -0
- package/lib/redoc-lib/src/utils/dom.d.ts +8 -0
- package/lib/redoc-lib/src/utils/dom.js +2 -0
- package/lib/redoc-lib/src/utils/helpers.d.ts +46 -0
- package/lib/redoc-lib/src/utils/helpers.js +2 -0
- package/lib/redoc-lib/src/utils/highlight.d.ts +31 -0
- package/lib/redoc-lib/src/utils/highlight.js +2 -0
- package/lib/redoc-lib/src/utils/index.d.ts +14 -0
- package/lib/redoc-lib/src/utils/index.js +2 -0
- package/lib/redoc-lib/src/utils/loadAndBundleSpec.d.ts +5 -0
- package/lib/redoc-lib/src/utils/loadAndBundleSpec.js +2 -0
- package/lib/redoc-lib/src/utils/media-css.d.ts +13 -0
- package/lib/redoc-lib/src/utils/media-css.js +2 -0
- package/lib/redoc-lib/src/utils/memoize.d.ts +1 -0
- package/lib/redoc-lib/src/utils/memoize.js +2 -0
- package/lib/redoc-lib/src/utils/object.d.ts +2 -0
- package/lib/redoc-lib/src/utils/object.js +2 -0
- package/lib/redoc-lib/src/utils/openapi.d.ts +41 -0
- package/lib/redoc-lib/src/utils/openapi.js +2 -0
- package/lib/redoc-lib/src/utils/sort.d.ts +6 -0
- package/lib/redoc-lib/src/utils/sort.js +2 -0
- package/lib/redoc-lib/src/utils/string.d.ts +1 -0
- package/lib/redoc-lib/src/utils/string.js +2 -0
- package/lib/redoc-lib/src/utils/test-utils.d.ts +1 -0
- package/lib/redoc-lib/src/utils/test-utils.js +2 -0
- package/lib/redoc-lib/src/utils/theme-helpers.d.ts +3 -0
- package/lib/redoc-lib/src/utils/theme-helpers.js +4 -0
- package/lib/services/OAuth2.d.ts +43 -0
- package/lib/services/OAuth2.js +2 -0
- package/lib/services/OpenIDConnect.d.ts +38 -0
- package/lib/services/OpenIDConnect.js +2 -0
- package/lib/services/ProMenu.d.ts +105 -0
- package/lib/services/ProMenu.js +2 -0
- package/lib/services/ProStore.d.ts +153 -0
- package/lib/services/ProStore.js +2 -0
- package/lib/services/SearchStore.d.ts +37 -0
- package/lib/services/SearchStore.js +2 -0
- package/lib/services/VersionedSpecStore.d.ts +40 -0
- package/lib/services/VersionedSpecStore.js +2 -0
- package/lib/services/check.d.ts +13 -0
- package/lib/services/check.js +2 -0
- package/lib/services/code-samples/generator.d.ts +25 -0
- package/lib/services/code-samples/generator.js +2 -0
- package/lib/services/code-samples/httpsnippet/helpers/code-builder.d.ts +82 -0
- package/lib/services/code-samples/httpsnippet/helpers/code-builder.js +2 -0
- package/lib/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +28 -0
- package/lib/services/code-samples/httpsnippet/helpers/code-helpers.js +2 -0
- package/lib/services/code-samples/httpsnippet/helpers/constants.d.ts +23 -0
- package/lib/services/code-samples/httpsnippet/helpers/constants.js +2 -0
- package/lib/services/code-samples/httpsnippet/helpers/lodash-int.d.ts +5 -0
- package/lib/services/code-samples/httpsnippet/helpers/lodash-int.js +2 -0
- package/lib/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.d.ts +28 -0
- package/lib/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.js +2 -0
- package/lib/services/code-samples/httpsnippet/helpers/reducer.d.ts +1 -0
- package/lib/services/code-samples/httpsnippet/helpers/reducer.js +2 -0
- package/lib/services/code-samples/httpsnippet/helpers/shell.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/helpers/shell.js +2 -0
- package/lib/services/code-samples/httpsnippet/helpers/string-utility.d.ts +7 -0
- package/lib/services/code-samples/httpsnippet/helpers/string-utility.js +2 -0
- package/lib/services/code-samples/httpsnippet/index.d.ts +47 -0
- package/lib/services/code-samples/httpsnippet/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/__mocks__/mock.d.ts +3519 -0
- package/lib/services/code-samples/httpsnippet/targets/__mocks__/mock.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/csharp/index.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/csharp/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/go/index.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/go/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/go/native.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/go/native.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/index.d.ts +106 -0
- package/lib/services/code-samples/httpsnippet/targets/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/java/httpclient.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/java/httpclient.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/java/index.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/java/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/java8/apachehttp.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/java8/apachehttp.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/java8/index.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/java8/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/javascript/fetch.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/javascript/fetch.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/javascript/index.d.ts +12 -0
- package/lib/services/code-samples/httpsnippet/targets/javascript/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/node/fetch.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/node/fetch.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/node/index.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/node/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/php/curl.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/php/curl.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/php/index.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/php/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/php/types.d.ts +11 -0
- package/lib/services/code-samples/httpsnippet/targets/php/types.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/php/utils.d.ts +2 -0
- package/lib/services/code-samples/httpsnippet/targets/php/utils.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/python/index.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/python/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/python/requests.d.ts +4 -0
- package/lib/services/code-samples/httpsnippet/targets/python/requests.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/r/httr.d.ts +4 -0
- package/lib/services/code-samples/httpsnippet/targets/r/httr.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/r/index.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/r/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/r/utils.d.ts +5 -0
- package/lib/services/code-samples/httpsnippet/targets/r/utils.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/ruby/index.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/ruby/index.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/ruby/native.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/ruby/native.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/shell/curl.d.ts +10 -0
- package/lib/services/code-samples/httpsnippet/targets/shell/curl.js +2 -0
- package/lib/services/code-samples/httpsnippet/targets/shell/index.d.ts +12 -0
- package/lib/services/code-samples/httpsnippet/targets/shell/index.js +2 -0
- package/lib/services/code-samples/index.d.ts +2 -0
- package/lib/services/code-samples/index.js +2 -0
- package/lib/services/code-samples/types.d.ts +63 -0
- package/lib/services/code-samples/types.js +2 -0
- package/lib/services/history/FakeHistoryService.d.ts +20 -0
- package/lib/services/history/FakeHistoryService.js +2 -0
- package/lib/services/history/ProHashHistoryService.d.ts +25 -0
- package/lib/services/history/ProHashHistoryService.js +2 -0
- package/lib/services/history/PushStateHistoryService.d.ts +24 -0
- package/lib/services/history/PushStateHistoryService.js +2 -0
- package/lib/services/history/helpers.d.ts +4 -0
- package/lib/services/history/helpers.js +2 -0
- package/lib/services/history/index.d.ts +3 -0
- package/lib/services/history/index.js +2 -0
- package/lib/services/index.d.ts +5 -0
- package/lib/services/index.js +2 -0
- package/lib/services/store-types.d.ts +4 -0
- package/lib/services/store-types.js +2 -0
- package/lib/services/types.d.ts +21 -0
- package/lib/services/types.js +2 -0
- package/lib/services/utils.d.ts +25 -0
- package/lib/services/utils.js +2 -0
- package/lib/setupTests.d.ts +4 -0
- package/lib/setupTests.js +2 -0
- package/lib/standalone.d.ts +27 -0
- package/lib/standalone.js +2 -0
- package/lib/testProviders.d.ts +4 -0
- package/lib/testProviders.js +2 -0
- package/lib/types.d.ts +25 -0
- package/lib/types.js +2 -0
- package/lib/utils.d.ts +30 -0
- package/lib/utils.js +2 -0
- package/lib-esm/cli/assets/redoc-fast-scroll.d.ts +0 -0
- package/lib-esm/cli/assets/redoc-fast-scroll.js +2 -0
- package/lib-esm/cli/cli.d.ts +2 -0
- package/lib-esm/cli/cli.js +3 -0
- package/lib-esm/cli/commands/bundle.d.ts +1 -0
- package/lib-esm/cli/commands/bundle.js +2 -0
- package/lib-esm/cli/commands/index.d.ts +1 -0
- package/lib-esm/cli/commands/index.js +2 -0
- package/lib-esm/cli/constants.d.ts +3 -0
- package/lib-esm/cli/constants.js +2 -0
- package/lib-esm/cli/utils.d.ts +16 -0
- package/lib-esm/cli/utils.js +2 -0
- package/lib-esm/components/Endpoint/Endpoint.d.ts +3 -0
- package/lib-esm/components/Endpoint/Endpoint.js +2 -0
- package/lib-esm/components/Endpoint/ServerList.d.ts +3 -0
- package/lib-esm/components/Endpoint/ServerList.js +2 -0
- package/lib-esm/components/Endpoint/Summary.d.ts +3 -0
- package/lib-esm/components/Endpoint/Summary.js +2 -0
- package/lib-esm/components/Endpoint/index.d.ts +2 -0
- package/lib-esm/components/Endpoint/index.js +2 -0
- package/lib-esm/components/Endpoint/styled.d.ts +8 -0
- package/lib-esm/components/Endpoint/styled.js +48 -0
- package/lib-esm/components/Endpoint/types.d.ts +21 -0
- package/lib-esm/components/Endpoint/types.js +2 -0
- package/lib-esm/components/NextSectionButton.d.ts +13 -0
- package/lib-esm/components/NextSectionButton.js +8 -0
- package/lib-esm/components/OperationParameters/OperationParameters.d.ts +2 -0
- package/lib-esm/components/OperationParameters/OperationParameters.js +2 -0
- package/lib-esm/components/OperationParameters/index.d.ts +1 -0
- package/lib-esm/components/OperationParameters/index.js +2 -0
- package/lib-esm/components/OperationParameters/types.d.ts +14 -0
- package/lib-esm/components/OperationParameters/types.js +2 -0
- package/lib-esm/components/OperationParameters/utils.d.ts +7 -0
- package/lib-esm/components/OperationParameters/utils.js +2 -0
- package/lib-esm/components/Overlay.d.ts +10 -0
- package/lib-esm/components/Overlay.js +43 -0
- package/lib-esm/components/Panel/Accordion.d.ts +5 -0
- package/lib-esm/components/Panel/Accordion.js +2 -0
- package/lib-esm/components/Panel/CodeHeader.d.ts +6 -0
- package/lib-esm/components/Panel/CodeHeader.js +12 -0
- package/lib-esm/components/Panel/CodePanel.d.ts +4 -0
- package/lib-esm/components/Panel/CodePanel.js +6 -0
- package/lib-esm/components/Panel/ContentPanel.d.ts +4 -0
- package/lib-esm/components/Panel/ContentPanel.js +21 -0
- package/lib-esm/components/Panel/Description.d.ts +1 -0
- package/lib-esm/components/Panel/Description.js +8 -0
- package/lib-esm/components/Panel/ResponsePanel.d.ts +8 -0
- package/lib-esm/components/Panel/ResponsePanel.js +26 -0
- package/lib-esm/components/Panel/Trigger.d.ts +1 -0
- package/lib-esm/components/Panel/Trigger.js +8 -0
- package/lib-esm/components/Panel/index.d.ts +7 -0
- package/lib-esm/components/Panel/index.js +2 -0
- package/lib-esm/components/ProProviders.d.ts +9 -0
- package/lib-esm/components/ProProviders.js +2 -0
- package/lib-esm/components/RedoclyReferenceDocs.d.ts +40 -0
- package/lib-esm/components/RedoclyReferenceDocs.js +54 -0
- package/lib-esm/components/RedoclyReferenceDocsMultiStandalone.d.ts +7 -0
- package/lib-esm/components/RedoclyReferenceDocsMultiStandalone.js +2 -0
- package/lib-esm/components/Samples/ExampleSwitch.d.ts +13 -0
- package/lib-esm/components/Samples/ExampleSwitch.js +2 -0
- package/lib-esm/components/Samples/LoadingWrapper.d.ts +1 -0
- package/lib-esm/components/Samples/LoadingWrapper.js +8 -0
- package/lib-esm/components/Samples/SamplesTabs.d.ts +13 -0
- package/lib-esm/components/Samples/SamplesTabs.js +2 -0
- package/lib-esm/components/Samples/index.d.ts +4 -0
- package/lib-esm/components/Samples/index.js +2 -0
- package/lib-esm/components/Samples/use-example-key.d.ts +7 -0
- package/lib-esm/components/Samples/use-example-key.js +2 -0
- package/lib-esm/components/Search/MenuItemProSearch.d.ts +23 -0
- package/lib-esm/components/Search/MenuItemProSearch.js +10 -0
- package/lib-esm/components/Search/ProSearchBox.d.ts +52 -0
- package/lib-esm/components/Search/ProSearchBox.js +2 -0
- package/lib-esm/components/Search/SearchField.d.ts +9 -0
- package/lib-esm/components/Search/SearchField.js +2 -0
- package/lib-esm/components/Search/index.d.ts +2 -0
- package/lib-esm/components/Search/index.js +2 -0
- package/lib-esm/components/Search/styled.d.ts +21 -0
- package/lib-esm/components/Search/styled.js +135 -0
- package/lib-esm/components/StoreProvider.d.ts +23 -0
- package/lib-esm/components/StoreProvider.js +2 -0
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTab.d.ts +1 -0
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTab.js +11 -0
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabList.d.ts +1 -0
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabList.js +4 -0
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabs.d.ts +2 -0
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabs.js +2 -0
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +19 -0
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +2 -0
- package/lib-esm/components/Tabs/CollapsingTabs/index.d.ts +4 -0
- package/lib-esm/components/Tabs/CollapsingTabs/index.js +2 -0
- package/lib-esm/components/Tabs/Tab.d.ts +2 -0
- package/lib-esm/components/Tabs/Tab.js +32 -0
- package/lib-esm/components/Tabs/TabList.d.ts +2 -0
- package/lib-esm/components/Tabs/TabList.js +7 -0
- package/lib-esm/components/Tabs/TabPanel.d.ts +2 -0
- package/lib-esm/components/Tabs/TabPanel.js +11 -0
- package/lib-esm/components/Tabs/index.d.ts +5 -0
- package/lib-esm/components/Tabs/index.js +2 -0
- package/lib-esm/components/VersionSwitcher.d.ts +7 -0
- package/lib-esm/components/VersionSwitcher.js +7 -0
- package/lib-esm/components/common/Checkbox.d.ts +10 -0
- package/lib-esm/components/common/Checkbox.js +31 -0
- package/lib-esm/components/common/CheckboxList.d.ts +25 -0
- package/lib-esm/components/common/CheckboxList.js +7 -0
- package/lib-esm/components/common/ClearButton/ClearButton.d.ts +3 -0
- package/lib-esm/components/common/ClearButton/ClearButton.js +2 -0
- package/lib-esm/components/common/ClearButton/index.d.ts +2 -0
- package/lib-esm/components/common/ClearButton/index.js +2 -0
- package/lib-esm/components/common/ClearButton/styled.d.ts +2 -0
- package/lib-esm/components/common/ClearButton/styled.js +16 -0
- package/lib-esm/components/common/ClearButton/types.d.ts +6 -0
- package/lib-esm/components/common/ClearButton/types.js +2 -0
- package/lib-esm/components/common/Dropdown/Dropdown.d.ts +3 -0
- package/lib-esm/components/common/Dropdown/Dropdown.js +16 -0
- package/lib-esm/components/common/Dropdown/index.d.ts +2 -0
- package/lib-esm/components/common/Dropdown/index.js +2 -0
- package/lib-esm/components/common/Dropdown/styled.d.ts +28 -0
- package/lib-esm/components/common/Dropdown/styled.js +145 -0
- package/lib-esm/components/common/Dropdown/types.d.ts +26 -0
- package/lib-esm/components/common/Dropdown/types.js +2 -0
- package/lib-esm/components/common/FileUpload/FileUpload.d.ts +10 -0
- package/lib-esm/components/common/FileUpload/FileUpload.js +2 -0
- package/lib-esm/components/common/FileUpload/helper.d.ts +12 -0
- package/lib-esm/components/common/FileUpload/helper.js +2 -0
- package/lib-esm/components/common/FileUpload/index.d.ts +1 -0
- package/lib-esm/components/common/FileUpload/index.js +2 -0
- package/lib-esm/components/common/LinearProgress.d.ts +1 -0
- package/lib-esm/components/common/LinearProgress.js +104 -0
- package/lib-esm/components/common/TextField.d.ts +28 -0
- package/lib-esm/components/common/TextField.js +79 -0
- package/lib-esm/components/common/form.d.ts +17 -0
- package/lib-esm/components/common/form.js +65 -0
- package/lib-esm/components/console/ActionPanel.d.ts +12 -0
- package/lib-esm/components/console/ActionPanel.js +4 -0
- package/lib-esm/components/console/AuthPanel/AuthPanel.d.ts +13 -0
- package/lib-esm/components/console/AuthPanel/AuthPanel.js +2 -0
- package/lib-esm/components/console/AuthPanel/index.d.ts +2 -0
- package/lib-esm/components/console/AuthPanel/index.js +2 -0
- package/lib-esm/components/console/AuthPanel/types.d.ts +14 -0
- package/lib-esm/components/console/AuthPanel/types.js +2 -0
- package/lib-esm/components/console/CodemirrorInput.d.ts +39 -0
- package/lib-esm/components/console/CodemirrorInput.js +50 -0
- package/lib-esm/components/console/Console.d.ts +47 -0
- package/lib-esm/components/console/Console.js +2 -0
- package/lib-esm/components/console/ConsoleLazy.d.ts +2 -0
- package/lib-esm/components/console/ConsoleLazy.js +2 -0
- package/lib-esm/components/console/ConsoleTabs/ConsoleTabs.d.ts +6 -0
- package/lib-esm/components/console/ConsoleTabs/ConsoleTabs.js +2 -0
- package/lib-esm/components/console/ConsoleTabs/index.d.ts +2 -0
- package/lib-esm/components/console/ConsoleTabs/index.js +2 -0
- package/lib-esm/components/console/ConsoleTabs/styled.d.ts +5 -0
- package/lib-esm/components/console/ConsoleTabs/styled.js +48 -0
- package/lib-esm/components/console/OAuth2Flow.d.ts +57 -0
- package/lib-esm/components/console/OAuth2Flow.js +14 -0
- package/lib-esm/components/console/OAuth2TokenInput.d.ts +35 -0
- package/lib-esm/components/console/OAuth2TokenInput.js +2 -0
- package/lib-esm/components/console/OpenIDConnect.d.ts +17 -0
- package/lib-esm/components/console/OpenIDConnect.js +2 -0
- package/lib-esm/components/console/ParameterArray.d.ts +9 -0
- package/lib-esm/components/console/ParameterArray.js +28 -0
- package/lib-esm/components/console/ParameterDropdown.d.ts +6 -0
- package/lib-esm/components/console/ParameterDropdown.js +2 -0
- package/lib-esm/components/console/RequestBody/RequestBody.d.ts +3 -0
- package/lib-esm/components/console/RequestBody/RequestBody.js +2 -0
- package/lib-esm/components/console/RequestBody/index.d.ts +2 -0
- package/lib-esm/components/console/RequestBody/index.js +2 -0
- package/lib-esm/components/console/RequestBody/types.d.ts +10 -0
- package/lib-esm/components/console/RequestBody/types.js +2 -0
- package/lib-esm/components/console/RequestBodyForm.d.ts +9 -0
- package/lib-esm/components/console/RequestBodyForm.js +10 -0
- package/lib-esm/components/console/RequestMimeLabel.d.ts +1 -0
- package/lib-esm/components/console/RequestMimeLabel.js +5 -0
- package/lib-esm/components/console/ResponseBody.d.ts +4 -0
- package/lib-esm/components/console/ResponseBody.js +2 -0
- package/lib-esm/components/console/ResponseHeadersList.d.ts +3 -0
- package/lib-esm/components/console/ResponseHeadersList.js +10 -0
- package/lib-esm/components/console/ResponsePanel.d.ts +21 -0
- package/lib-esm/components/console/ResponsePanel.js +18 -0
- package/lib-esm/components/console/Scope.d.ts +6 -0
- package/lib-esm/components/console/Scope.js +2 -0
- package/lib-esm/components/console/ServerVariable.d.ts +10 -0
- package/lib-esm/components/console/ServerVariable.js +5 -0
- package/lib-esm/components/console/ServersDropdown/ServersDropdown.d.ts +2 -0
- package/lib-esm/components/console/ServersDropdown/ServersDropdown.js +4 -0
- package/lib-esm/components/console/ServersDropdown/index.d.ts +1 -0
- package/lib-esm/components/console/ServersDropdown/index.js +2 -0
- package/lib-esm/components/console/ServersDropdown/types.d.ts +5 -0
- package/lib-esm/components/console/ServersDropdown/types.js +2 -0
- package/lib-esm/components/console/TryItPanel.d.ts +7 -0
- package/lib-esm/components/console/TryItPanel.js +14 -0
- package/lib-esm/components/console/codemirror-helpers.d.ts +10 -0
- package/lib-esm/components/console/codemirror-helpers.js +2 -0
- package/lib-esm/components/console/styled.d.ts +20 -0
- package/lib-esm/components/console/styled.js +99 -0
- package/lib-esm/components/console/utils.d.ts +27 -0
- package/lib-esm/components/console/utils.js +2 -0
- package/lib-esm/components/index.d.ts +14 -0
- package/lib-esm/components/index.js +2 -0
- package/lib-esm/components/pluggable/PullRight.d.ts +2 -0
- package/lib-esm/components/pluggable/PullRight.js +61 -0
- package/lib-esm/components/pluggable/RedocExample.d.ts +15 -0
- package/lib-esm/components/pluggable/RedocExample.js +2 -0
- package/lib-esm/components/pluggable/RedocRequestBody.d.ts +11 -0
- package/lib-esm/components/pluggable/RedocRequestBody.js +2 -0
- package/lib-esm/components/pluggable/RedocResponse.d.ts +10 -0
- package/lib-esm/components/pluggable/RedocResponse.js +2 -0
- package/lib-esm/components/pluggable/RedocSchema.d.ts +12 -0
- package/lib-esm/components/pluggable/RedocSchema.js +2 -0
- package/lib-esm/components/pluggable/index.d.ts +5 -0
- package/lib-esm/components/pluggable/index.js +2 -0
- package/lib-esm/components/pluggable/styled.components.d.ts +6 -0
- package/lib-esm/components/pluggable/styled.components.js +12 -0
- package/lib-esm/components/shared/HttpVerb.d.ts +6 -0
- package/lib-esm/components/shared/HttpVerb.js +5 -0
- package/lib-esm/components/shared/MimeLabel.d.ts +1 -0
- package/lib-esm/components/shared/MimeLabel.js +13 -0
- package/lib-esm/components/shared/NoSampleLabel.d.ts +2 -0
- package/lib-esm/components/shared/NoSampleLabel.js +13 -0
- package/lib-esm/components/shared/index.d.ts +3 -0
- package/lib-esm/components/shared/index.js +2 -0
- package/lib-esm/components/styled.elements.d.ts +19 -0
- package/lib-esm/components/styled.elements.js +166 -0
- package/lib-esm/components/types.d.ts +15 -0
- package/lib-esm/components/types.js +2 -0
- package/lib-esm/constants.d.ts +2 -0
- package/lib-esm/constants.js +2 -0
- package/lib-esm/empty.d.ts +1 -0
- package/lib-esm/empty.js +2 -0
- package/lib-esm/events/codeSampleCopy.d.ts +2 -0
- package/lib-esm/events/codeSampleCopy.js +2 -0
- package/lib-esm/events/creator.d.ts +2 -0
- package/lib-esm/events/creator.js +2 -0
- package/lib-esm/events/index.d.ts +5 -0
- package/lib-esm/events/index.js +2 -0
- package/lib-esm/events/languageSwitch.d.ts +2 -0
- package/lib-esm/events/languageSwitch.js +2 -0
- package/lib-esm/events/panelToggle.d.ts +2 -0
- package/lib-esm/events/panelToggle.js +2 -0
- package/lib-esm/events/types.d.ts +63 -0
- package/lib-esm/events/types.js +2 -0
- package/lib-esm/hooks/index.d.ts +3 -0
- package/lib-esm/hooks/index.js +2 -0
- package/lib-esm/hooks/useDimensions.d.ts +1 -0
- package/lib-esm/hooks/useDimensions.js +2 -0
- package/lib-esm/hooks/useMount.d.ts +1 -0
- package/lib-esm/hooks/useMount.js +2 -0
- package/lib-esm/hooks/useUnmount.d.ts +1 -0
- package/lib-esm/hooks/useUnmount.js +2 -0
- package/lib-esm/index.d.ts +8 -0
- package/lib-esm/index.js +2 -0
- package/lib-esm/models/code-sample-options.d.ts +11 -0
- package/lib-esm/models/code-sample-options.js +2 -0
- package/lib-esm/models/file-upload.d.ts +11 -0
- package/lib-esm/models/file-upload.js +2 -0
- package/lib-esm/models/index.d.ts +2 -0
- package/lib-esm/models/index.js +2 -0
- package/lib-esm/oauth2-redirect-page/handler/helpers.d.ts +6 -0
- package/lib-esm/oauth2-redirect-page/handler/helpers.js +2 -0
- package/lib-esm/oauth2-redirect-page/handler/oauth2-redirect-handler.d.ts +1 -0
- package/lib-esm/oauth2-redirect-page/handler/oauth2-redirect-handler.js +2 -0
- package/lib-esm/oauth2-redirect-page/index.d.ts +1 -0
- package/lib-esm/oauth2-redirect-page/index.js +2 -0
- package/lib-esm/redoc-lib/index.d.ts +1 -0
- package/lib-esm/redoc-lib/index.js +2 -0
- package/lib-esm/redoc-lib/src/common-elements/Download.d.ts +7 -0
- package/lib-esm/redoc-lib/src/common-elements/Download.js +4 -0
- package/lib-esm/redoc-lib/src/common-elements/LinkToField.d.ts +9 -0
- package/lib-esm/redoc-lib/src/common-elements/LinkToField.js +27 -0
- package/lib-esm/redoc-lib/src/common-elements/fields-layout.d.ts +15 -0
- package/lib-esm/redoc-lib/src/common-elements/fields-layout.js +228 -0
- package/lib-esm/redoc-lib/src/common-elements/fields.d.ts +21 -0
- package/lib-esm/redoc-lib/src/common-elements/fields.js +103 -0
- package/lib-esm/redoc-lib/src/common-elements/headers.d.ts +8 -0
- package/lib-esm/redoc-lib/src/common-elements/headers.js +36 -0
- package/lib-esm/redoc-lib/src/common-elements/icons.d.ts +41 -0
- package/lib-esm/redoc-lib/src/common-elements/icons.js +55 -0
- package/lib-esm/redoc-lib/src/common-elements/index.d.ts +9 -0
- package/lib-esm/redoc-lib/src/common-elements/index.js +2 -0
- package/lib-esm/redoc-lib/src/common-elements/linkify.d.ts +13 -0
- package/lib-esm/redoc-lib/src/common-elements/linkify.js +55 -0
- package/lib-esm/redoc-lib/src/common-elements/mixins.d.ts +1 -0
- package/lib-esm/redoc-lib/src/common-elements/mixins.js +5 -0
- package/lib-esm/redoc-lib/src/common-elements/panels.d.ts +13 -0
- package/lib-esm/redoc-lib/src/common-elements/panels.js +95 -0
- package/lib-esm/redoc-lib/src/common-elements/perfect-scrollbar.d.ts +18 -0
- package/lib-esm/redoc-lib/src/common-elements/perfect-scrollbar.js +4 -0
- package/lib-esm/redoc-lib/src/common-elements/schema.d.ts +11 -0
- package/lib-esm/redoc-lib/src/common-elements/schema.js +68 -0
- package/lib-esm/redoc-lib/src/common-elements/shelfs.d.ts +3 -0
- package/lib-esm/redoc-lib/src/common-elements/shelfs.js +23 -0
- package/lib-esm/redoc-lib/src/components/ApiInfo/ApiInfo.d.ts +5 -0
- package/lib-esm/redoc-lib/src/components/ApiInfo/ApiInfo.js +2 -0
- package/lib-esm/redoc-lib/src/components/ApiInfo/index.d.ts +1 -0
- package/lib-esm/redoc-lib/src/components/ApiInfo/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/ApiInfo/styled.elements.d.ts +8 -0
- package/lib-esm/redoc-lib/src/components/ApiInfo/styled.elements.js +24 -0
- package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.d.ts +11 -0
- package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.js +4 -0
- package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackSamples.d.ts +12 -0
- package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackSamples.js +2 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackDetails.d.ts +8 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackDetails.js +4 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackOperation.d.ts +5 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackOperation.js +2 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackSummary.d.ts +6 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackSummary.js +2 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackTitle.d.ts +5 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackTitle.js +7 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbacksList.d.ts +8 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbacksList.js +2 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/index.d.ts +3 -0
- package/lib-esm/redoc-lib/src/components/Callbacks/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/ContentItem/ContentItem.d.ts +9 -0
- package/lib-esm/redoc-lib/src/components/ContentItem/ContentItem.js +2 -0
- package/lib-esm/redoc-lib/src/components/ContentItem/index.d.ts +1 -0
- package/lib-esm/redoc-lib/src/components/ContentItem/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/ContentItems/ContentItems.d.ts +8 -0
- package/lib-esm/redoc-lib/src/components/ContentItems/ContentItems.js +2 -0
- package/lib-esm/redoc-lib/src/components/ContentItems/Skeleton.d.ts +1 -0
- package/lib-esm/redoc-lib/src/components/ContentItems/Skeleton.js +31 -0
- package/lib-esm/redoc-lib/src/components/ContentItems/index.d.ts +1 -0
- package/lib-esm/redoc-lib/src/components/ContentItems/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +10 -0
- package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.js +2 -0
- package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/index.d.ts +1 -0
- package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/DownloadButton/DownloadButton.d.ts +4 -0
- package/lib-esm/redoc-lib/src/components/DownloadButton/DownloadButton.js +21 -0
- package/lib-esm/redoc-lib/src/components/DownloadButton/index.d.ts +1 -0
- package/lib-esm/redoc-lib/src/components/DownloadButton/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.d.ts +7 -0
- package/lib-esm/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.js +8 -0
- package/lib-esm/redoc-lib/src/components/ErrorBoundary.d.ts +9 -0
- package/lib-esm/redoc-lib/src/components/ErrorBoundary.js +5 -0
- package/lib-esm/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.d.ts +8 -0
- package/lib-esm/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.js +5 -0
- package/lib-esm/redoc-lib/src/components/Fields/EnumValues.d.ts +17 -0
- package/lib-esm/redoc-lib/src/components/Fields/EnumValues.js +13 -0
- package/lib-esm/redoc-lib/src/components/Fields/Extensions.d.ts +9 -0
- package/lib-esm/redoc-lib/src/components/Fields/Extensions.js +6 -0
- package/lib-esm/redoc-lib/src/components/Fields/Field.d.ts +20 -0
- package/lib-esm/redoc-lib/src/components/Fields/Field.js +2 -0
- package/lib-esm/redoc-lib/src/components/Fields/FieldContstraints.d.ts +5 -0
- package/lib-esm/redoc-lib/src/components/Fields/FieldContstraints.js +2 -0
- package/lib-esm/redoc-lib/src/components/Fields/FieldDetail.d.ts +10 -0
- package/lib-esm/redoc-lib/src/components/Fields/FieldDetail.js +2 -0
- package/lib-esm/redoc-lib/src/components/Fields/FieldDetails.d.ts +12 -0
- package/lib-esm/redoc-lib/src/components/Fields/FieldDetails.js +15 -0
- package/lib-esm/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +22 -0
- package/lib-esm/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +2 -0
- package/lib-esm/redoc-lib/src/components/Loading/Loading.d.ts +5 -0
- package/lib-esm/redoc-lib/src/components/Loading/Loading.js +9 -0
- package/lib-esm/redoc-lib/src/components/Loading/Spinner.d.ts +6 -0
- package/lib-esm/redoc-lib/src/components/Loading/Spinner.js +19 -0
- package/lib-esm/redoc-lib/src/components/Markdown/AdvancedMarkdown.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/Markdown/AdvancedMarkdown.js +2 -0
- package/lib-esm/redoc-lib/src/components/Markdown/Markdown.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/Markdown/Markdown.js +2 -0
- package/lib-esm/redoc-lib/src/components/Markdown/SanitizedMarkdownHTML.d.ts +6 -0
- package/lib-esm/redoc-lib/src/components/Markdown/SanitizedMarkdownHTML.js +2 -0
- package/lib-esm/redoc-lib/src/components/Markdown/index.d.ts +5 -0
- package/lib-esm/redoc-lib/src/components/Markdown/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/Markdown/styled.d.ts +16 -0
- package/lib-esm/redoc-lib/src/components/Markdown/styled.js +257 -0
- package/lib-esm/redoc-lib/src/components/Markdown/types.d.ts +16 -0
- package/lib-esm/redoc-lib/src/components/Markdown/types.js +2 -0
- package/lib-esm/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +13 -0
- package/lib-esm/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.js +2 -0
- package/lib-esm/redoc-lib/src/components/Operation/Operation.d.ts +7 -0
- package/lib-esm/redoc-lib/src/components/Operation/Operation.js +8 -0
- package/lib-esm/redoc-lib/src/components/Operation/index.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/Operation/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/OptionsProvider.d.ts +6 -0
- package/lib-esm/redoc-lib/src/components/OptionsProvider.js +2 -0
- package/lib-esm/redoc-lib/src/components/Parameters/Parameters.d.ts +10 -0
- package/lib-esm/redoc-lib/src/components/Parameters/Parameters.js +4 -0
- package/lib-esm/redoc-lib/src/components/Parameters/ParametersGroup.d.ts +10 -0
- package/lib-esm/redoc-lib/src/components/Parameters/ParametersGroup.js +16 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/Example.d.ts +3 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/Example.js +2 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/ExampleValue.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/ExampleValue.js +2 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +2 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/PayloadSamples.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/PayloadSamples.js +2 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/index.d.ts +5 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/styled.d.ts +3 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/styled.js +17 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/types.d.ts +25 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/types.js +2 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/useExternalExample.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/useExternalExample.js +2 -0
- package/lib-esm/redoc-lib/src/components/RenderHook.d.ts +6 -0
- package/lib-esm/redoc-lib/src/components/RenderHook.js +2 -0
- package/lib-esm/redoc-lib/src/components/RequestSamples/CodeSample.d.ts +16 -0
- package/lib-esm/redoc-lib/src/components/RequestSamples/CodeSample.js +2 -0
- package/lib-esm/redoc-lib/src/components/RequestSamples/RequestSamples.d.ts +12 -0
- package/lib-esm/redoc-lib/src/components/RequestSamples/RequestSamples.js +2 -0
- package/lib-esm/redoc-lib/src/components/RequestSamples/useCodeSamples.d.ts +9 -0
- package/lib-esm/redoc-lib/src/components/RequestSamples/useCodeSamples.js +2 -0
- package/lib-esm/redoc-lib/src/components/ResponseSamples/ResponseSamples.d.ts +5 -0
- package/lib-esm/redoc-lib/src/components/ResponseSamples/ResponseSamples.js +2 -0
- package/lib-esm/redoc-lib/src/components/Responses/Response.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/Responses/Response.js +2 -0
- package/lib-esm/redoc-lib/src/components/Responses/ResponseDetails.d.ts +5 -0
- package/lib-esm/redoc-lib/src/components/Responses/ResponseDetails.js +4 -0
- package/lib-esm/redoc-lib/src/components/Responses/ResponseHeaders.d.ts +3 -0
- package/lib-esm/redoc-lib/src/components/Responses/ResponseHeaders.js +2 -0
- package/lib-esm/redoc-lib/src/components/Responses/ResponseSummary.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/Responses/ResponseSummary.js +2 -0
- package/lib-esm/redoc-lib/src/components/Responses/ResponsesList.d.ts +3 -0
- package/lib-esm/redoc-lib/src/components/Responses/ResponsesList.js +2 -0
- package/lib-esm/redoc-lib/src/components/Responses/index.d.ts +1 -0
- package/lib-esm/redoc-lib/src/components/Responses/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/Responses/styled.d.ts +3 -0
- package/lib-esm/redoc-lib/src/components/Responses/styled.js +14 -0
- package/lib-esm/redoc-lib/src/components/Responses/types.d.ts +12 -0
- package/lib-esm/redoc-lib/src/components/Responses/types.js +2 -0
- package/lib-esm/redoc-lib/src/components/Schema/ArraySchema.d.ts +3 -0
- package/lib-esm/redoc-lib/src/components/Schema/ArraySchema.js +4 -0
- package/lib-esm/redoc-lib/src/components/Schema/ObjectSchema.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/Schema/ObjectSchema.js +2 -0
- package/lib-esm/redoc-lib/src/components/Schema/OneOfSchema.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/Schema/OneOfSchema.js +2 -0
- package/lib-esm/redoc-lib/src/components/Schema/RecursiveSchema.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/Schema/RecursiveSchema.js +2 -0
- package/lib-esm/redoc-lib/src/components/Schema/Schema.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/Schema/Schema.js +2 -0
- package/lib-esm/redoc-lib/src/components/Schema/index.d.ts +4 -0
- package/lib-esm/redoc-lib/src/components/Schema/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/Schema/types.d.ts +22 -0
- package/lib-esm/redoc-lib/src/components/Schema/types.js +2 -0
- package/lib-esm/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.d.ts +21 -0
- package/lib-esm/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.js +7 -0
- package/lib-esm/redoc-lib/src/components/SearchBox/SearchBox.d.ts +30 -0
- package/lib-esm/redoc-lib/src/components/SearchBox/SearchBox.js +2 -0
- package/lib-esm/redoc-lib/src/components/SearchBox/styled.d.ts +6 -0
- package/lib-esm/redoc-lib/src/components/SearchBox/styled.js +53 -0
- package/lib-esm/redoc-lib/src/components/SectionItem/SectionItem.d.ts +6 -0
- package/lib-esm/redoc-lib/src/components/SectionItem/SectionItem.js +2 -0
- package/lib-esm/redoc-lib/src/components/SectionItem/index.d.ts +1 -0
- package/lib-esm/redoc-lib/src/components/SectionItem/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.d.ts +3 -0
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.js +2 -0
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityDefs.d.ts +8 -0
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityDefs.js +4 -0
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.d.ts +12 -0
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.js +26 -0
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.d.ts +7 -0
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.js +24 -0
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.d.ts +7 -0
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.js +2 -0
- package/lib-esm/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.d.ts +3 -0
- package/lib-esm/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.js +2 -0
- package/lib-esm/redoc-lib/src/components/SecuritySchemes/helpers.d.ts +34 -0
- package/lib-esm/redoc-lib/src/components/SecuritySchemes/helpers.js +2 -0
- package/lib-esm/redoc-lib/src/components/SecuritySchemes/index.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/SecuritySchemes/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/SecuritySchemes/types.d.ts +6 -0
- package/lib-esm/redoc-lib/src/components/SecuritySchemes/types.js +2 -0
- package/lib-esm/redoc-lib/src/components/SeeMore/SeeMore.d.ts +7 -0
- package/lib-esm/redoc-lib/src/components/SeeMore/SeeMore.js +10 -0
- package/lib-esm/redoc-lib/src/components/SideMenu/MenuItem.d.ts +17 -0
- package/lib-esm/redoc-lib/src/components/SideMenu/MenuItem.js +19 -0
- package/lib-esm/redoc-lib/src/components/SideMenu/MenuItems.d.ts +17 -0
- package/lib-esm/redoc-lib/src/components/SideMenu/MenuItems.js +2 -0
- package/lib-esm/redoc-lib/src/components/SideMenu/SideMenu.d.ts +15 -0
- package/lib-esm/redoc-lib/src/components/SideMenu/SideMenu.js +2 -0
- package/lib-esm/redoc-lib/src/components/SideMenu/index.d.ts +4 -0
- package/lib-esm/redoc-lib/src/components/SideMenu/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/SideMenu/styled.elements.d.ts +25 -0
- package/lib-esm/redoc-lib/src/components/SideMenu/styled.elements.js +86 -0
- package/lib-esm/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.js +2 -0
- package/lib-esm/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts +25 -0
- package/lib-esm/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.js +40 -0
- package/lib-esm/redoc-lib/src/components/StoreBuilder.d.ts +6 -0
- package/lib-esm/redoc-lib/src/components/StoreBuilder.js +2 -0
- package/lib-esm/redoc-lib/src/components/index.d.ts +31 -0
- package/lib-esm/redoc-lib/src/components/index.js +2 -0
- package/lib-esm/redoc-lib/src/empty.d.ts +1 -0
- package/lib-esm/redoc-lib/src/empty.js +2 -0
- package/lib-esm/redoc-lib/src/index.d.ts +7 -0
- package/lib-esm/redoc-lib/src/index.js +2 -0
- package/lib-esm/redoc-lib/src/services/HistoryService.d.ts +15 -0
- package/lib-esm/redoc-lib/src/services/HistoryService.js +2 -0
- package/lib-esm/redoc-lib/src/services/Labels.d.ts +3 -0
- package/lib-esm/redoc-lib/src/services/Labels.js +2 -0
- package/lib-esm/redoc-lib/src/services/MarkdownRenderer.d.ts +23 -0
- package/lib-esm/redoc-lib/src/services/MarkdownRenderer.js +2 -0
- package/lib-esm/redoc-lib/src/services/MarkerService.d.ts +11 -0
- package/lib-esm/redoc-lib/src/services/MarkerService.js +2 -0
- package/lib-esm/redoc-lib/src/services/MenuBuilder.d.ts +62 -0
- package/lib-esm/redoc-lib/src/services/MenuBuilder.js +2 -0
- package/lib-esm/redoc-lib/src/services/OpenAPIParser.d.ts +51 -0
- package/lib-esm/redoc-lib/src/services/OpenAPIParser.js +2 -0
- package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.d.ts +84 -0
- package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.js +2 -0
- package/lib-esm/redoc-lib/src/services/ScrollService.d.ts +18 -0
- package/lib-esm/redoc-lib/src/services/ScrollService.js +2 -0
- package/lib-esm/redoc-lib/src/services/SearchStore.d.ts +13 -0
- package/lib-esm/redoc-lib/src/services/SearchStore.js +2 -0
- package/lib-esm/redoc-lib/src/services/SearchWorker.worker.d.ts +17 -0
- package/lib-esm/redoc-lib/src/services/SearchWorker.worker.js +2 -0
- package/lib-esm/redoc-lib/src/services/SpecStore.d.ts +18 -0
- package/lib-esm/redoc-lib/src/services/SpecStore.js +2 -0
- package/lib-esm/redoc-lib/src/services/constants.d.ts +6 -0
- package/lib-esm/redoc-lib/src/services/constants.js +2 -0
- package/lib-esm/redoc-lib/src/services/index.d.ts +12 -0
- package/lib-esm/redoc-lib/src/services/index.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/ApiInfo.d.ts +17 -0
- package/lib-esm/redoc-lib/src/services/models/ApiInfo.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/Callback.d.ts +11 -0
- package/lib-esm/redoc-lib/src/services/models/Callback.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/Example.d.ts +17 -0
- package/lib-esm/redoc-lib/src/services/models/Example.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/Field.d.ts +35 -0
- package/lib-esm/redoc-lib/src/services/models/Field.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/Group.model.d.ts +25 -0
- package/lib-esm/redoc-lib/src/services/models/Group.model.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/MediaContent.d.ts +31 -0
- package/lib-esm/redoc-lib/src/services/models/MediaContent.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/MediaType.d.ts +27 -0
- package/lib-esm/redoc-lib/src/services/models/MediaType.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/Operation.d.ts +93 -0
- package/lib-esm/redoc-lib/src/services/models/Operation.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/RequestBody.d.ts +19 -0
- package/lib-esm/redoc-lib/src/services/models/RequestBody.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/Response.d.ts +28 -0
- package/lib-esm/redoc-lib/src/services/models/Response.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/Schema.d.ts +78 -0
- package/lib-esm/redoc-lib/src/services/models/Schema.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/SecurityRequirement.d.ts +12 -0
- package/lib-esm/redoc-lib/src/services/models/SecurityRequirement.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/SecuritySchemes.d.ts +25 -0
- package/lib-esm/redoc-lib/src/services/models/SecuritySchemes.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/Webhook.d.ts +9 -0
- package/lib-esm/redoc-lib/src/services/models/Webhook.js +2 -0
- package/lib-esm/redoc-lib/src/services/models/index.d.ts +14 -0
- package/lib-esm/redoc-lib/src/services/models/index.js +2 -0
- package/lib-esm/redoc-lib/src/services/types.d.ts +226 -0
- package/lib-esm/redoc-lib/src/services/types.js +2 -0
- package/lib-esm/redoc-lib/src/theme.d.ts +10 -0
- package/lib-esm/redoc-lib/src/theme.js +2 -0
- package/lib-esm/redoc-lib/src/types/index.d.ts +3 -0
- package/lib-esm/redoc-lib/src/types/index.js +2 -0
- package/lib-esm/redoc-lib/src/types/open-api.d.ts +338 -0
- package/lib-esm/redoc-lib/src/types/open-api.js +2 -0
- package/lib-esm/redoc-lib/src/types/server.d.ts +7 -0
- package/lib-esm/redoc-lib/src/types/server.js +2 -0
- package/lib-esm/redoc-lib/src/utils/JsonPointer.d.ts +51 -0
- package/lib-esm/redoc-lib/src/utils/JsonPointer.js +2 -0
- package/lib-esm/redoc-lib/src/utils/argValuesHelpers.d.ts +4 -0
- package/lib-esm/redoc-lib/src/utils/argValuesHelpers.js +2 -0
- package/lib-esm/redoc-lib/src/utils/css-variables.d.ts +2 -0
- package/lib-esm/redoc-lib/src/utils/css-variables.js +2 -0
- package/lib-esm/redoc-lib/src/utils/debug.d.ts +2 -0
- package/lib-esm/redoc-lib/src/utils/debug.js +2 -0
- package/lib-esm/redoc-lib/src/utils/decorators.d.ts +1 -0
- package/lib-esm/redoc-lib/src/utils/decorators.js +2 -0
- package/lib-esm/redoc-lib/src/utils/dom.d.ts +8 -0
- package/lib-esm/redoc-lib/src/utils/dom.js +2 -0
- package/lib-esm/redoc-lib/src/utils/helpers.d.ts +46 -0
- package/lib-esm/redoc-lib/src/utils/helpers.js +2 -0
- package/lib-esm/redoc-lib/src/utils/highlight.d.ts +31 -0
- package/lib-esm/redoc-lib/src/utils/highlight.js +2 -0
- package/lib-esm/redoc-lib/src/utils/index.d.ts +14 -0
- package/lib-esm/redoc-lib/src/utils/index.js +2 -0
- package/lib-esm/redoc-lib/src/utils/loadAndBundleSpec.d.ts +5 -0
- package/lib-esm/redoc-lib/src/utils/loadAndBundleSpec.js +2 -0
- package/lib-esm/redoc-lib/src/utils/media-css.d.ts +13 -0
- package/lib-esm/redoc-lib/src/utils/media-css.js +2 -0
- package/lib-esm/redoc-lib/src/utils/memoize.d.ts +1 -0
- package/lib-esm/redoc-lib/src/utils/memoize.js +2 -0
- package/lib-esm/redoc-lib/src/utils/object.d.ts +2 -0
- package/lib-esm/redoc-lib/src/utils/object.js +2 -0
- package/lib-esm/redoc-lib/src/utils/openapi.d.ts +41 -0
- package/lib-esm/redoc-lib/src/utils/openapi.js +2 -0
- package/lib-esm/redoc-lib/src/utils/sort.d.ts +6 -0
- package/lib-esm/redoc-lib/src/utils/sort.js +2 -0
- package/lib-esm/redoc-lib/src/utils/string.d.ts +1 -0
- package/lib-esm/redoc-lib/src/utils/string.js +2 -0
- package/lib-esm/redoc-lib/src/utils/test-utils.d.ts +1 -0
- package/lib-esm/redoc-lib/src/utils/test-utils.js +2 -0
- package/lib-esm/redoc-lib/src/utils/theme-helpers.d.ts +3 -0
- package/lib-esm/redoc-lib/src/utils/theme-helpers.js +4 -0
- package/lib-esm/services/OAuth2.d.ts +43 -0
- package/lib-esm/services/OAuth2.js +2 -0
- package/lib-esm/services/OpenIDConnect.d.ts +38 -0
- package/lib-esm/services/OpenIDConnect.js +2 -0
- package/lib-esm/services/ProMenu.d.ts +105 -0
- package/lib-esm/services/ProMenu.js +2 -0
- package/lib-esm/services/ProStore.d.ts +153 -0
- package/lib-esm/services/ProStore.js +2 -0
- package/lib-esm/services/SearchStore.d.ts +37 -0
- package/lib-esm/services/SearchStore.js +2 -0
- package/lib-esm/services/VersionedSpecStore.d.ts +40 -0
- package/lib-esm/services/VersionedSpecStore.js +2 -0
- package/lib-esm/services/check.d.ts +13 -0
- package/lib-esm/services/check.js +2 -0
- package/lib-esm/services/code-samples/generator.d.ts +25 -0
- package/lib-esm/services/code-samples/generator.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/code-builder.d.ts +82 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/code-builder.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +28 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/code-helpers.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/constants.d.ts +23 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/constants.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/lodash-int.d.ts +5 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/lodash-int.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.d.ts +28 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/reducer.d.ts +1 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/reducer.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/shell.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/shell.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/string-utility.d.ts +7 -0
- package/lib-esm/services/code-samples/httpsnippet/helpers/string-utility.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/index.d.ts +47 -0
- package/lib-esm/services/code-samples/httpsnippet/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/__mocks__/mock.d.ts +3519 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/__mocks__/mock.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/csharp/index.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/csharp/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/go/index.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/go/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/go/native.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/go/native.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/index.d.ts +106 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/java/httpclient.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/java/httpclient.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/java/index.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/java/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/java8/apachehttp.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/java8/apachehttp.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/java8/index.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/java8/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/javascript/fetch.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/javascript/fetch.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/javascript/index.d.ts +12 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/javascript/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/node/fetch.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/node/fetch.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/node/index.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/node/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/php/curl.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/php/curl.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/php/index.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/php/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/php/types.d.ts +11 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/php/types.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/php/utils.d.ts +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/php/utils.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/python/index.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/python/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.d.ts +4 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/r/httr.d.ts +4 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/r/httr.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/r/index.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/r/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/r/utils.d.ts +5 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/r/utils.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/ruby/index.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/ruby/index.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/ruby/native.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/ruby/native.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/shell/curl.d.ts +10 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/shell/curl.js +2 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/shell/index.d.ts +12 -0
- package/lib-esm/services/code-samples/httpsnippet/targets/shell/index.js +2 -0
- package/lib-esm/services/code-samples/index.d.ts +2 -0
- package/lib-esm/services/code-samples/index.js +2 -0
- package/lib-esm/services/code-samples/types.d.ts +63 -0
- package/lib-esm/services/code-samples/types.js +2 -0
- package/lib-esm/services/history/FakeHistoryService.d.ts +20 -0
- package/lib-esm/services/history/FakeHistoryService.js +2 -0
- package/lib-esm/services/history/ProHashHistoryService.d.ts +25 -0
- package/lib-esm/services/history/ProHashHistoryService.js +2 -0
- package/lib-esm/services/history/PushStateHistoryService.d.ts +24 -0
- package/lib-esm/services/history/PushStateHistoryService.js +2 -0
- package/lib-esm/services/history/helpers.d.ts +4 -0
- package/lib-esm/services/history/helpers.js +2 -0
- package/lib-esm/services/history/index.d.ts +3 -0
- package/lib-esm/services/history/index.js +2 -0
- package/lib-esm/services/index.d.ts +5 -0
- package/lib-esm/services/index.js +2 -0
- package/lib-esm/services/store-types.d.ts +4 -0
- package/lib-esm/services/store-types.js +2 -0
- package/lib-esm/services/types.d.ts +21 -0
- package/lib-esm/services/types.js +2 -0
- package/lib-esm/services/utils.d.ts +25 -0
- package/lib-esm/services/utils.js +2 -0
- package/lib-esm/setupTests.d.ts +4 -0
- package/lib-esm/setupTests.js +2 -0
- package/lib-esm/standalone.d.ts +27 -0
- package/lib-esm/standalone.js +2 -0
- package/lib-esm/testProviders.d.ts +4 -0
- package/lib-esm/testProviders.js +2 -0
- package/lib-esm/types.d.ts +25 -0
- package/lib-esm/types.js +2 -0
- package/lib-esm/utils.d.ts +30 -0
- package/lib-esm/utils.js +2 -0
- package/package.json +172 -0
|
@@ -0,0 +1,507 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Redocly Reference Docs
|
|
3
|
+
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
|
+
* -------------------------------------------------------------
|
|
5
|
+
* Version: "3.0.0-alpha.10"
|
|
6
|
+
*/(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[290],{62680:(v,T,s)=>{"use strict";var p=s(67286),S=s(89429),A=S(p("String.prototype.indexOf"));v.exports=function(E,F){var U=p(E,!!F);return typeof U=="function"&&A(E,".prototype.")>-1?S(U):U}},89429:(v,T,s)=>{"use strict";var p=s(4090),S=s(67286),A=S("%Function.prototype.apply%"),h=S("%Function.prototype.call%"),E=S("%Reflect.apply%",!0)||p.call(h,A),F=S("%Object.getOwnPropertyDescriptor%",!0),U=S("%Object.defineProperty%",!0),_=S("%Math.max%");if(U)try{U({},"a",{value:1})}catch(le){U=null}v.exports=function(K){var ne=E(p,h,arguments);if(F&&U){var $=F(ne,"length");$.configurable&&U(ne,"length",{value:1+_(0,K.length-(arguments.length-1))})}return ne};var Q=function(){return E(p,A,arguments)};U?U(v.exports,"apply",{value:Q}):v.exports.apply=Q},61682:(v,T,s)=>{(function(p){p(s(23326))})(function(p){var S={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},A=p.Pos;p.defineOption("autoCloseBrackets",!1,function(L,C,k){k&&k!=p.Init&&(L.removeKeyMap(E),L.state.closeBrackets=null),C&&(F(h(C,"pairs")),L.state.closeBrackets=C,L.addKeyMap(E))});function h(L,C){return C=="pairs"&&typeof L=="string"?L:typeof L=="object"&&L[C]!=null?L[C]:S[C]}var E={Backspace:Q,Enter:le};function F(L){for(var C=0;C<L.length;C++){var k=L.charAt(C),B="'"+k+"'";E[B]||(E[B]=U(k))}}F(S.pairs+"`");function U(L){return function(C){return $(C,L)}}function _(L){var C=L.state.closeBrackets;if(!C||C.override)return C;var k=L.getModeAt(L.getCursor());return k.closeBrackets||C}function Q(L){var C=_(L);if(!C||L.getOption("disableInput"))return p.Pass;for(var k=h(C,"pairs"),B=L.listSelections(),X=0;X<B.length;X++){if(!B[X].empty())return p.Pass;var H=P(L,B[X].head);if(!H||k.indexOf(H)%2!=0)return p.Pass}for(var X=B.length-1;X>=0;X--){var D=B[X].head;L.replaceRange("",A(D.line,D.ch-1),A(D.line,D.ch+1),"+delete")}}function le(L){var C=_(L),k=C&&h(C,"explode");if(!k||L.getOption("disableInput"))return p.Pass;for(var B=L.listSelections(),X=0;X<B.length;X++){if(!B[X].empty())return p.Pass;var H=P(L,B[X].head);if(!H||k.indexOf(H)%2!=0)return p.Pass}L.operation(function(){var D=L.lineSeparator()||`
|
|
7
|
+
`;L.replaceSelection(D+D,null),K(L,-1),B=L.listSelections();for(var re=0;re<B.length;re++){var J=B[re].head.line;L.indentLine(J,null,!0),L.indentLine(J+1,null,!0)}})}function K(L,C){for(var k=[],B=L.listSelections(),X=0,H=0;H<B.length;H++){var D=B[H];D.head==L.getCursor()&&(X=H);var re=D.head.ch||C>0?{line:D.head.line,ch:D.head.ch+C}:{line:D.head.line-1};k.push({anchor:re,head:re})}L.setSelections(k,X)}function ne(L){var C=p.cmpPos(L.anchor,L.head)>0;return{anchor:new A(L.anchor.line,L.anchor.ch+(C?-1:1)),head:new A(L.head.line,L.head.ch+(C?1:-1))}}function $(L,C){var k=_(L);if(!k||L.getOption("disableInput"))return p.Pass;var B=h(k,"pairs"),X=B.indexOf(C);if(X==-1)return p.Pass;for(var H=h(k,"closeBefore"),D=h(k,"triples"),re=B.charAt(X+1)==C,J=L.listSelections(),z=X%2==0,fe,pe=0;pe<J.length;pe++){var q=J[pe],Z=q.head,G,ve=L.getRange(Z,A(Z.line,Z.ch+1));if(z&&!q.empty())G="surround";else if((re||!z)&&ve==C)re&&Y(L,Z)?G="both":D.indexOf(C)>=0&&L.getRange(Z,A(Z.line,Z.ch+3))==C+C+C?G="skipThree":G="skip";else if(re&&Z.ch>1&&D.indexOf(C)>=0&&L.getRange(A(Z.line,Z.ch-2),Z)==C+C){if(Z.ch>2&&/\bstring/.test(L.getTokenTypeAt(A(Z.line,Z.ch-2))))return p.Pass;G="addFour"}else if(re){var Ie=Z.ch==0?" ":L.getRange(A(Z.line,Z.ch-1),Z);if(!p.isWordChar(ve)&&Ie!=C&&!p.isWordChar(Ie))G="both";else return p.Pass}else if(z&&(ve.length===0||/\s/.test(ve)||H.indexOf(ve)>-1))G="both";else return p.Pass;if(!fe)fe=G;else if(fe!=G)return p.Pass}var Ne=X%2?B.charAt(X-1):C,je=X%2?C:B.charAt(X+1);L.operation(function(){if(fe=="skip")K(L,1);else if(fe=="skipThree")K(L,3);else if(fe=="surround"){for(var tt=L.getSelections(),_e=0;_e<tt.length;_e++)tt[_e]=Ne+tt[_e]+je;L.replaceSelections(tt,"around"),tt=L.listSelections().slice();for(var _e=0;_e<tt.length;_e++)tt[_e]=ne(tt[_e]);L.setSelections(tt)}else fe=="both"?(L.replaceSelection(Ne+je,null),L.triggerElectric(Ne+je),K(L,-1)):fe=="addFour"&&(L.replaceSelection(Ne+Ne+Ne+Ne,"before"),K(L,1))})}function P(L,C){var k=L.getRange(A(C.line,C.ch-1),A(C.line,C.ch+1));return k.length==2?k:null}function Y(L,C){var k=L.getTokenAt(A(C.line,C.ch+1));return/\bstring/.test(k.type)&&k.start==C.ch&&(C.ch==0||!/\bstring/.test(L.getTokenTypeAt(C)))}})},32407:(v,T,s)=>{(function(p){p(s(23326))})(function(p){var S=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),A=p.Pos,h={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function E(K){return K&&K.bracketRegex||/[(){}[\]]/}function F(K,ne,$){var P=K.getLineHandle(ne.line),Y=ne.ch-1,L=$&&$.afterCursor;L==null&&(L=/(^| )cm-fat-cursor($| )/.test(K.getWrapperElement().className));var C=E($),k=!L&&Y>=0&&C.test(P.text.charAt(Y))&&h[P.text.charAt(Y)]||C.test(P.text.charAt(Y+1))&&h[P.text.charAt(++Y)];if(!k)return null;var B=k.charAt(1)==">"?1:-1;if($&&$.strict&&B>0!=(Y==ne.ch))return null;var X=K.getTokenTypeAt(A(ne.line,Y+1)),H=U(K,A(ne.line,Y+(B>0?1:0)),B,X,$);return H==null?null:{from:A(ne.line,Y),to:H&&H.pos,match:H&&H.ch==k.charAt(0),forward:B>0}}function U(K,ne,$,P,Y){for(var L=Y&&Y.maxScanLineLength||1e4,C=Y&&Y.maxScanLines||1e3,k=[],B=E(Y),X=$>0?Math.min(ne.line+C,K.lastLine()+1):Math.max(K.firstLine()-1,ne.line-C),H=ne.line;H!=X;H+=$){var D=K.getLine(H);if(!!D){var re=$>0?0:D.length-1,J=$>0?D.length:-1;if(!(D.length>L))for(H==ne.line&&(re=ne.ch-($<0?1:0));re!=J;re+=$){var z=D.charAt(re);if(B.test(z)&&(P===void 0||(K.getTokenTypeAt(A(H,re+1))||"")==(P||""))){var fe=h[z];if(fe&&fe.charAt(1)==">"==$>0)k.push(z);else if(k.length)k.pop();else return{pos:A(H,re),ch:z}}}}}return H-$==($>0?K.lastLine():K.firstLine())?!1:null}function _(K,ne,$){for(var P=K.state.matchBrackets.maxHighlightLineLength||1e3,Y=$&&$.highlightNonMatching,L=[],C=K.listSelections(),k=0;k<C.length;k++){var B=C[k].empty()&&F(K,C[k].head,$);if(B&&(B.match||Y!==!1)&&K.getLine(B.from.line).length<=P){var X=B.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";L.push(K.markText(B.from,A(B.from.line,B.from.ch+1),{className:X})),B.to&&K.getLine(B.to.line).length<=P&&L.push(K.markText(B.to,A(B.to.line,B.to.ch+1),{className:X}))}}if(L.length){S&&K.state.focused&&K.focus();var H=function(){K.operation(function(){for(var D=0;D<L.length;D++)L[D].clear()})};if(ne)setTimeout(H,800);else return H}}function Q(K){K.operation(function(){K.state.matchBrackets.currentlyHighlighted&&(K.state.matchBrackets.currentlyHighlighted(),K.state.matchBrackets.currentlyHighlighted=null),K.state.matchBrackets.currentlyHighlighted=_(K,!1,K.state.matchBrackets)})}function le(K){K.state.matchBrackets&&K.state.matchBrackets.currentlyHighlighted&&(K.state.matchBrackets.currentlyHighlighted(),K.state.matchBrackets.currentlyHighlighted=null)}p.defineOption("matchBrackets",!1,function(K,ne,$){$&&$!=p.Init&&(K.off("cursorActivity",Q),K.off("focus",Q),K.off("blur",le),le(K)),ne&&(K.state.matchBrackets=typeof ne=="object"?ne:{},K.on("cursorActivity",Q),K.on("focus",Q),K.on("blur",le))}),p.defineExtension("matchBrackets",function(){_(this,!0)}),p.defineExtension("findMatchingBracket",function(K,ne,$){return($||typeof ne=="boolean")&&($?($.strict=ne,ne=$):ne=ne?{strict:!0}:null),F(this,K,ne)}),p.defineExtension("scanForBracket",function(K,ne,$,P){return U(this,K,ne,$,P)})})},22130:(v,T,s)=>{(function(p){p(s(23326))})(function(p){"use strict";var S="CodeMirror-hint",A="CodeMirror-hint-active";p.showHint=function(L,C,k){if(!C)return L.showHint(k);k&&k.async&&(C.async=!0);var B={hint:C};if(k)for(var X in k)B[X]=k[X];return L.showHint(B)},p.defineExtension("showHint",function(L){L=U(this,this.getCursor("start"),L);var C=this.listSelections();if(!(C.length>1)){if(this.somethingSelected()){if(!L.hint.supportsSelection)return;for(var k=0;k<C.length;k++)if(C[k].head.line!=C[k].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var B=this.state.completionActive=new h(this,L);!B.options.hint||(p.signal(this,"startCompletion",this),B.update(!0))}}),p.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function h(L,C){if(this.cm=L,this.options=C,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var k=this;L.on("cursorActivity",this.activityFunc=function(){k.cursorActivity()})}}var E=window.requestAnimationFrame||function(L){return setTimeout(L,1e3/60)},F=window.cancelAnimationFrame||clearTimeout;h.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&p.signal(this.data,"close"),this.widget&&this.widget.close(),p.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(L,C){var k=L.list[C],B=this;this.cm.operation(function(){k.hint?k.hint(B.cm,L,k):B.cm.replaceRange(_(k),k.from||L.from,k.to||L.to,"complete"),p.signal(L,"pick",k),B.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(F(this.debounce),this.debounce=0);var L=this.startPos;this.data&&(L=this.data.from);var C=this.cm.getCursor(),k=this.cm.getLine(C.line);if(C.line!=this.startPos.line||k.length-C.ch!=this.startLen-this.startPos.ch||C.ch<L.ch||this.cm.somethingSelected()||!C.ch||this.options.closeCharacters.test(k.charAt(C.ch-1)))this.close();else{var B=this;this.debounce=E(function(){B.update()}),this.widget&&this.widget.disable()}},update:function(L){if(this.tick!=null){var C=this,k=++this.tick;$(this.options.hint,this.cm,this.options,function(B){C.tick==k&&C.finishUpdate(B,L)})}},finishUpdate:function(L,C){this.data&&p.signal(this.data,"update");var k=this.widget&&this.widget.picked||C&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=L,L&&L.list.length&&(k&&L.list.length==1?this.pick(L,0):(this.widget=new K(this,L),p.signal(L,"shown")))}};function U(L,C,k){var B=L.options.hintOptions,X={};for(var H in Y)X[H]=Y[H];if(B)for(var H in B)B[H]!==void 0&&(X[H]=B[H]);if(k)for(var H in k)k[H]!==void 0&&(X[H]=k[H]);return X.hint.resolve&&(X.hint=X.hint.resolve(L,C)),X}function _(L){return typeof L=="string"?L:L.text}function Q(L,C){var k={Up:function(){C.moveFocus(-1)},Down:function(){C.moveFocus(1)},PageUp:function(){C.moveFocus(-C.menuSize()+1,!0)},PageDown:function(){C.moveFocus(C.menuSize()-1,!0)},Home:function(){C.setFocus(0)},End:function(){C.setFocus(C.length-1)},Enter:C.pick,Tab:C.pick,Esc:C.close},B=/Mac/.test(navigator.platform);B&&(k["Ctrl-P"]=function(){C.moveFocus(-1)},k["Ctrl-N"]=function(){C.moveFocus(1)});var X=L.options.customKeys,H=X?{}:k;function D(z,fe){var pe;typeof fe!="string"?pe=function(q){return fe(q,C)}:k.hasOwnProperty(fe)?pe=k[fe]:pe=fe,H[z]=pe}if(X)for(var re in X)X.hasOwnProperty(re)&&D(re,X[re]);var J=L.options.extraKeys;if(J)for(var re in J)J.hasOwnProperty(re)&&D(re,J[re]);return H}function le(L,C){for(;C&&C!=L;){if(C.nodeName.toUpperCase()==="LI"&&C.parentNode==L)return C;C=C.parentNode}}function K(L,C){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=L,this.data=C,this.picked=!1;var k=this,B=L.cm,X=B.getInputField().ownerDocument,H=X.defaultView||X.parentWindow,D=this.hints=X.createElement("ul");D.setAttribute("role","listbox"),D.setAttribute("aria-expanded","true"),D.id=this.id;var re=L.cm.options.theme;D.className="CodeMirror-hints "+re,this.selectedHint=C.selectedHint||0;for(var J=C.list,z=0;z<J.length;++z){var fe=D.appendChild(X.createElement("li")),pe=J[z],q=S+(z!=this.selectedHint?"":" "+A);pe.className!=null&&(q=pe.className+" "+q),fe.className=q,z==this.selectedHint&&fe.setAttribute("aria-selected","true"),fe.id=this.id+"-"+z,fe.setAttribute("role","option"),pe.render?pe.render(fe,C,pe):fe.appendChild(X.createTextNode(pe.displayText||_(pe))),fe.hintId=z}var Z=L.options.container||X.body,G=B.cursorCoords(L.options.alignWithWord?C.from:null),ve=G.left,Ie=G.bottom,Ne=!0,je=0,tt=0;if(Z!==X.body){var _e=["absolute","relative","fixed"].indexOf(H.getComputedStyle(Z).position)!==-1,mt=_e?Z:Z.offsetParent,De=mt.getBoundingClientRect(),Oe=X.body.getBoundingClientRect();je=De.left-Oe.left-mt.scrollLeft,tt=De.top-Oe.top-mt.scrollTop}D.style.left=ve-je+"px",D.style.top=Ie-tt+"px";var Ue=H.innerWidth||Math.max(X.body.offsetWidth,X.documentElement.offsetWidth),Pe=H.innerHeight||Math.max(X.body.offsetHeight,X.documentElement.offsetHeight);Z.appendChild(D),B.getInputField().setAttribute("aria-autocomplete","list"),B.getInputField().setAttribute("aria-owns",this.id),B.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var Ce=L.options.moveOnOverlap?D.getBoundingClientRect():new DOMRect,Ge=L.options.paddingForScrollbar?D.scrollHeight>D.clientHeight+1:!1,rt;setTimeout(function(){rt=B.getScrollInfo()});var $e=Ce.bottom-Pe;if($e>0){var et=Ce.bottom-Ce.top,Ze=Ce.top-(G.bottom-G.top)-2;Pe-Ce.top<Ze?(et>Ze&&(D.style.height=(et=Ze)+"px"),D.style.top=(Ie=G.top-et)+tt+"px",Ne=!1):D.style.height=Pe-Ce.top-2+"px"}var Ct=Ce.right-Ue;if(Ge&&(Ct+=B.display.nativeBarWidth),Ct>0&&(Ce.right-Ce.left>Ue&&(D.style.width=Ue-5+"px",Ct-=Ce.right-Ce.left-Ue),D.style.left=(ve=Math.max(G.left-Ct-je,0))+"px"),Ge)for(var kt=D.firstChild;kt;kt=kt.nextSibling)kt.style.paddingRight=B.display.nativeBarWidth+"px";if(B.addKeyMap(this.keyMap=Q(L,{moveFocus:function(xt,Ft){k.changeActive(k.selectedHint+xt,Ft)},setFocus:function(xt){k.changeActive(xt)},menuSize:function(){return k.screenAmount()},length:J.length,close:function(){L.close()},pick:function(){k.pick()},data:C})),L.options.closeOnUnfocus){var Zt;B.on("blur",this.onBlur=function(){Zt=setTimeout(function(){L.close()},100)}),B.on("focus",this.onFocus=function(){clearTimeout(Zt)})}B.on("scroll",this.onScroll=function(){var xt=B.getScrollInfo(),Ft=B.getWrapperElement().getBoundingClientRect();rt||(rt=B.getScrollInfo());var Kr=Ie+rt.top-xt.top,br=Kr-(H.pageYOffset||(X.documentElement||X.body).scrollTop);if(Ne||(br+=D.offsetHeight),br<=Ft.top||br>=Ft.bottom)return L.close();D.style.top=Kr+"px",D.style.left=ve+rt.left-xt.left+"px"}),p.on(D,"dblclick",function(xt){var Ft=le(D,xt.target||xt.srcElement);Ft&&Ft.hintId!=null&&(k.changeActive(Ft.hintId),k.pick())}),p.on(D,"click",function(xt){var Ft=le(D,xt.target||xt.srcElement);Ft&&Ft.hintId!=null&&(k.changeActive(Ft.hintId),L.options.completeOnSingleClick&&k.pick())}),p.on(D,"mousedown",function(){setTimeout(function(){B.focus()},20)});var lt=this.getSelectedHintRange();return(lt.from!==0||lt.to!==0)&&this.scrollToActive(),p.signal(C,"select",J[this.selectedHint],D.childNodes[this.selectedHint]),!0}K.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var L=this.completion.cm.getInputField();L.removeAttribute("aria-activedescendant"),L.removeAttribute("aria-owns");var C=this.completion.cm;this.completion.options.closeOnUnfocus&&(C.off("blur",this.onBlur),C.off("focus",this.onFocus)),C.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var L=this;this.keyMap={Enter:function(){L.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(L,C){if(L>=this.data.list.length?L=C?this.data.list.length-1:0:L<0&&(L=C?0:this.data.list.length-1),this.selectedHint!=L){var k=this.hints.childNodes[this.selectedHint];k&&(k.className=k.className.replace(" "+A,""),k.removeAttribute("aria-selected")),k=this.hints.childNodes[this.selectedHint=L],k.className+=" "+A,k.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",k.id),this.scrollToActive(),p.signal(this.data,"select",this.data.list[this.selectedHint],k)}},scrollToActive:function(){var L=this.getSelectedHintRange(),C=this.hints.childNodes[L.from],k=this.hints.childNodes[L.to],B=this.hints.firstChild;C.offsetTop<this.hints.scrollTop?this.hints.scrollTop=C.offsetTop-B.offsetTop:k.offsetTop+k.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=k.offsetTop+k.offsetHeight-this.hints.clientHeight+B.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var L=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-L),to:Math.min(this.data.list.length-1,this.selectedHint+L)}}};function ne(L,C){if(!L.somethingSelected())return C;for(var k=[],B=0;B<C.length;B++)C[B].supportsSelection&&k.push(C[B]);return k}function $(L,C,k,B){if(L.async)L(C,B,k);else{var X=L(C,k);X&&X.then?X.then(B):B(X)}}function P(L,C){var k=L.getHelpers(C,"hint"),B;if(k.length){var X=function(H,D,re){var J=ne(H,k);function z(fe){if(fe==J.length)return D(null);$(J[fe],H,re,function(pe){pe&&pe.list.length>0?D(pe):z(fe+1)})}z(0)};return X.async=!0,X.supportsSelection=!0,X}else return(B=L.getHelper(L.getCursor(),"hintWords"))?function(H){return p.hint.fromList(H,{words:B})}:p.hint.anyword?function(H,D){return p.hint.anyword(H,D)}:function(){}}p.registerHelper("hint","auto",{resolve:P}),p.registerHelper("hint","fromList",function(L,C){var k=L.getCursor(),B=L.getTokenAt(k),X,H=p.Pos(k.line,B.start),D=k;B.start<k.ch&&/\w/.test(B.string.charAt(k.ch-B.start-1))?X=B.string.substr(0,k.ch-B.start):(X="",H=k);for(var re=[],J=0;J<C.words.length;J++){var z=C.words[J];z.slice(0,X.length)==X&&re.push(z)}if(re.length)return{list:re,from:H,to:D}}),p.commands.autocomplete=p.showHint;var Y={hint:p.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};p.defineOption("hintOptions",null)})},29387:(v,T,s)=>{(function(p){p(s(23326))})(function(p){"use strict";var S="CodeMirror-lint-markers",A="CodeMirror-lint-line-";function h(D,re,J){var z=document.createElement("div");z.className="CodeMirror-lint-tooltip cm-s-"+D.options.theme,z.appendChild(J.cloneNode(!0)),D.state.lint.options.selfContain?D.getWrapperElement().appendChild(z):document.body.appendChild(z);function fe(pe){if(!z.parentNode)return p.off(document,"mousemove",fe);z.style.top=Math.max(0,pe.clientY-z.offsetHeight-5)+"px",z.style.left=pe.clientX+5+"px"}return p.on(document,"mousemove",fe),fe(re),z.style.opacity!=null&&(z.style.opacity=1),z}function E(D){D.parentNode&&D.parentNode.removeChild(D)}function F(D){!D.parentNode||(D.style.opacity==null&&E(D),D.style.opacity=0,setTimeout(function(){E(D)},600))}function U(D,re,J,z){var fe=h(D,re,J);function pe(){p.off(z,"mouseout",pe),fe&&(F(fe),fe=null)}var q=setInterval(function(){if(fe)for(var Z=z;;Z=Z.parentNode){if(Z&&Z.nodeType==11&&(Z=Z.host),Z==document.body)return;if(!Z){pe();break}}if(!fe)return clearInterval(q)},400);p.on(z,"mouseout",pe)}function _(D,re,J){this.marked=[],re instanceof Function&&(re={getAnnotations:re}),(!re||re===!0)&&(re={}),this.options={},this.linterOptions=re.options||{};for(var z in Q)this.options[z]=Q[z];for(var z in re)Q.hasOwnProperty(z)?re[z]!=null&&(this.options[z]=re[z]):re.options||(this.linterOptions[z]=re[z]);this.timeout=null,this.hasGutter=J,this.onMouseOver=function(fe){H(D,fe)},this.waitingFor=0}var Q={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function le(D){var re=D.state.lint;re.hasGutter&&D.clearGutter(S),re.options.highlightLines&&K(D);for(var J=0;J<re.marked.length;++J)re.marked[J].clear();re.marked.length=0}function K(D){D.eachLine(function(re){var J=re.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(re.wrapClass);J&&D.removeLineClass(re,"wrap",J[0])})}function ne(D,re,J,z,fe){var pe=document.createElement("div"),q=pe;return pe.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+J,z&&(q=pe.appendChild(document.createElement("div")),q.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),fe!=!1&&p.on(q,"mouseover",function(Z){U(D,Z,re,q)}),pe}function $(D,re){return D=="error"?D:re}function P(D){for(var re=[],J=0;J<D.length;++J){var z=D[J],fe=z.from.line;(re[fe]||(re[fe]=[])).push(z)}return re}function Y(D){var re=D.severity;re||(re="error");var J=document.createElement("div");return J.className="CodeMirror-lint-message CodeMirror-lint-message-"+re,typeof D.messageHTML!="undefined"?J.innerHTML=D.messageHTML:J.appendChild(document.createTextNode(D.message)),J}function L(D,re){var J=D.state.lint,z=++J.waitingFor;function fe(){z=-1,D.off("change",fe)}D.on("change",fe),re(D.getValue(),function(pe,q){D.off("change",fe),J.waitingFor==z&&(q&&pe instanceof p&&(pe=q),D.operation(function(){k(D,pe)}))},J.linterOptions,D)}function C(D){var re=D.state.lint;if(!!re){var J=re.options,z=J.getAnnotations||D.getHelper(p.Pos(0,0),"lint");if(!!z)if(J.async||z.async)L(D,z);else{var fe=z(D.getValue(),re.linterOptions,D);if(!fe)return;fe.then?fe.then(function(pe){D.operation(function(){k(D,pe)})}):D.operation(function(){k(D,fe)})}}}function k(D,re){var J=D.state.lint;if(!!J){var z=J.options;le(D);for(var fe=P(re),pe=0;pe<fe.length;++pe){var q=fe[pe];if(!!q){var Z=[];q=q.filter(function(tt){return Z.indexOf(tt.message)>-1?!1:Z.push(tt.message)});for(var G=null,ve=J.hasGutter&&document.createDocumentFragment(),Ie=0;Ie<q.length;++Ie){var Ne=q[Ie],je=Ne.severity;je||(je="error"),G=$(G,je),z.formatAnnotation&&(Ne=z.formatAnnotation(Ne)),J.hasGutter&&ve.appendChild(Y(Ne)),Ne.to&&J.marked.push(D.markText(Ne.from,Ne.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+je,__annotation:Ne}))}J.hasGutter&&D.setGutterMarker(pe,S,ne(D,ve,G,fe[pe].length>1,z.tooltips)),z.highlightLines&&D.addLineClass(pe,"wrap",A+G)}}z.onUpdateLinting&&z.onUpdateLinting(re,fe,D)}}function B(D){var re=D.state.lint;!re||(clearTimeout(re.timeout),re.timeout=setTimeout(function(){C(D)},re.options.delay))}function X(D,re,J){for(var z=J.target||J.srcElement,fe=document.createDocumentFragment(),pe=0;pe<re.length;pe++){var q=re[pe];fe.appendChild(Y(q))}U(D,J,fe,z)}function H(D,re){var J=re.target||re.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(J.className)){for(var z=J.getBoundingClientRect(),fe=(z.left+z.right)/2,pe=(z.top+z.bottom)/2,q=D.findMarksAt(D.coordsChar({left:fe,top:pe},"client")),Z=[],G=0;G<q.length;++G){var ve=q[G].__annotation;ve&&Z.push(ve)}Z.length&&X(D,Z,re)}}p.defineOption("lint",!1,function(D,re,J){if(J&&J!=p.Init&&(le(D),D.state.lint.options.lintOnChange!==!1&&D.off("change",B),p.off(D.getWrapperElement(),"mouseover",D.state.lint.onMouseOver),clearTimeout(D.state.lint.timeout),delete D.state.lint),re){for(var z=D.getOption("gutters"),fe=!1,pe=0;pe<z.length;++pe)z[pe]==S&&(fe=!0);var q=D.state.lint=new _(D,re,fe);q.options.lintOnChange&&D.on("change",B),q.options.tooltips!=!1&&q.options.tooltips!="gutter"&&p.on(D.getWrapperElement(),"mouseover",q.onMouseOver),C(D)}}),p.defineExtension("performLint",function(){C(this)})})},19757:(v,T,s)=>{(function(p){p(s(23326))})(function(p){"use strict";var S=p.Pos;function A(C){var k=C.flags;return k!=null?k:(C.ignoreCase?"i":"")+(C.global?"g":"")+(C.multiline?"m":"")}function h(C,k){for(var B=A(C),X=B,H=0;H<k.length;H++)X.indexOf(k.charAt(H))==-1&&(X+=k.charAt(H));return B==X?C:new RegExp(C.source,X)}function E(C){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(C.source)}function F(C,k,B){k=h(k,"g");for(var X=B.line,H=B.ch,D=C.lastLine();X<=D;X++,H=0){k.lastIndex=H;var re=C.getLine(X),J=k.exec(re);if(J)return{from:S(X,J.index),to:S(X,J.index+J[0].length),match:J}}}function U(C,k,B){if(!E(k))return F(C,k,B);k=h(k,"gm");for(var X,H=1,D=B.line,re=C.lastLine();D<=re;){for(var J=0;J<H&&!(D>re);J++){var z=C.getLine(D++);X=X==null?z:X+`
|
|
8
|
+
`+z}H=H*2,k.lastIndex=B.ch;var fe=k.exec(X);if(fe){var pe=X.slice(0,fe.index).split(`
|
|
9
|
+
`),q=fe[0].split(`
|
|
10
|
+
`),Z=B.line+pe.length-1,G=pe[pe.length-1].length;return{from:S(Z,G),to:S(Z+q.length-1,q.length==1?G+q[0].length:q[q.length-1].length),match:fe}}}}function _(C,k,B){for(var X,H=0;H<=C.length;){k.lastIndex=H;var D=k.exec(C);if(!D)break;var re=D.index+D[0].length;if(re>C.length-B)break;(!X||re>X.index+X[0].length)&&(X=D),H=D.index+1}return X}function Q(C,k,B){k=h(k,"g");for(var X=B.line,H=B.ch,D=C.firstLine();X>=D;X--,H=-1){var re=C.getLine(X),J=_(re,k,H<0?0:re.length-H);if(J)return{from:S(X,J.index),to:S(X,J.index+J[0].length),match:J}}}function le(C,k,B){if(!E(k))return Q(C,k,B);k=h(k,"gm");for(var X,H=1,D=C.getLine(B.line).length-B.ch,re=B.line,J=C.firstLine();re>=J;){for(var z=0;z<H&&re>=J;z++){var fe=C.getLine(re--);X=X==null?fe:fe+`
|
|
11
|
+
`+X}H*=2;var pe=_(X,k,D);if(pe){var q=X.slice(0,pe.index).split(`
|
|
12
|
+
`),Z=pe[0].split(`
|
|
13
|
+
`),G=re+q.length,ve=q[q.length-1].length;return{from:S(G,ve),to:S(G+Z.length-1,Z.length==1?ve+Z[0].length:Z[Z.length-1].length),match:pe}}}}var K,ne;String.prototype.normalize?(K=function(C){return C.normalize("NFD").toLowerCase()},ne=function(C){return C.normalize("NFD")}):(K=function(C){return C.toLowerCase()},ne=function(C){return C});function $(C,k,B,X){if(C.length==k.length)return B;for(var H=0,D=B+Math.max(0,C.length-k.length);;){if(H==D)return H;var re=H+D>>1,J=X(C.slice(0,re)).length;if(J==B)return re;J>B?D=re:H=re+1}}function P(C,k,B,X){if(!k.length)return null;var H=X?K:ne,D=H(k).split(/\r|\n\r?/);e:for(var re=B.line,J=B.ch,z=C.lastLine()+1-D.length;re<=z;re++,J=0){var fe=C.getLine(re).slice(J),pe=H(fe);if(D.length==1){var q=pe.indexOf(D[0]);if(q==-1)continue e;var B=$(fe,pe,q,H)+J;return{from:S(re,$(fe,pe,q,H)+J),to:S(re,$(fe,pe,q+D[0].length,H)+J)}}else{var Z=pe.length-D[0].length;if(pe.slice(Z)!=D[0])continue e;for(var G=1;G<D.length-1;G++)if(H(C.getLine(re+G))!=D[G])continue e;var ve=C.getLine(re+D.length-1),Ie=H(ve),Ne=D[D.length-1];if(Ie.slice(0,Ne.length)!=Ne)continue e;return{from:S(re,$(fe,pe,Z,H)+J),to:S(re+D.length-1,$(ve,Ie,Ne.length,H))}}}}function Y(C,k,B,X){if(!k.length)return null;var H=X?K:ne,D=H(k).split(/\r|\n\r?/);e:for(var re=B.line,J=B.ch,z=C.firstLine()-1+D.length;re>=z;re--,J=-1){var fe=C.getLine(re);J>-1&&(fe=fe.slice(0,J));var pe=H(fe);if(D.length==1){var q=pe.lastIndexOf(D[0]);if(q==-1)continue e;return{from:S(re,$(fe,pe,q,H)),to:S(re,$(fe,pe,q+D[0].length,H))}}else{var Z=D[D.length-1];if(pe.slice(0,Z.length)!=Z)continue e;for(var G=1,B=re-D.length+1;G<D.length-1;G++)if(H(C.getLine(B+G))!=D[G])continue e;var ve=C.getLine(re+1-D.length),Ie=H(ve);if(Ie.slice(Ie.length-D[0].length)!=D[0])continue e;return{from:S(re+1-D.length,$(ve,Ie,ve.length-D[0].length,H)),to:S(re,$(fe,pe,Z.length,H))}}}}function L(C,k,B,X){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=C,B=B?C.clipPos(B):S(0,0),this.pos={from:B,to:B};var H;typeof X=="object"?H=X.caseFold:(H=X,X=null),typeof k=="string"?(H==null&&(H=!1),this.matches=function(D,re){return(D?Y:P)(C,k,re,H)}):(k=h(k,"gm"),!X||X.multiline!==!1?this.matches=function(D,re){return(D?le:U)(C,k,re)}:this.matches=function(D,re){return(D?Q:F)(C,k,re)})}L.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(C){var k=this.doc.clipPos(C?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(k=S(k.line,k.ch),C?(k.ch--,k.ch<0&&(k.line--,k.ch=(this.doc.getLine(k.line)||"").length)):(k.ch++,k.ch>(this.doc.getLine(k.line)||"").length&&(k.ch=0,k.line++)),p.cmpPos(k,this.doc.clipPos(k))!=0))return this.atOccurrence=!1;var B=this.matches(C,k);if(this.afterEmptyMatch=B&&p.cmpPos(B.from,B.to)==0,B)return this.pos=B,this.atOccurrence=!0,this.pos.match||!0;var X=S(C?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:X,to:X},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(C,k){if(!!this.atOccurrence){var B=p.splitLines(C);this.doc.replaceRange(B,this.pos.from,this.pos.to,k),this.pos.to=S(this.pos.from.line+B.length-1,B[B.length-1].length+(B.length==1?this.pos.from.ch:0))}}},p.defineExtension("getSearchCursor",function(C,k,B){return new L(this.doc,C,k,B)}),p.defineDocExtension("getSearchCursor",function(C,k,B){return new L(this,C,k,B)}),p.defineExtension("selectMatches",function(C,k){for(var B=[],X=this.getSearchCursor(C,this.getCursor("from"),k);X.findNext()&&!(p.cmpPos(X.to(),this.getCursor("to"))>0);)B.push({anchor:X.from(),head:X.to()});B.length&&this.setSelections(B,0)})})},23326:function(v){(function(T,s){v.exports=s()})(this,function(){"use strict";var T=navigator.userAgent,s=navigator.platform,p=/gecko\/\d/i.test(T),S=/MSIE \d/.test(T),A=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(T),h=/Edge\/(\d+)/.exec(T),E=S||A||h,F=E&&(S?document.documentMode||6:+(h||A)[1]),U=!h&&/WebKit\//.test(T),_=U&&/Qt\/\d+\.\d+/.test(T),Q=!h&&/Chrome\/(\d+)/.exec(T),le=Q&&+Q[1],K=/Opera\//.test(T),ne=/Apple Computer/.test(navigator.vendor),$=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(T),P=/PhantomJS/.test(T),Y=ne&&(/Mobile\/\w+/.test(T)||navigator.maxTouchPoints>2),L=/Android/.test(T),C=Y||L||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(T),k=Y||/Mac/.test(s),B=/\bCrOS\b/.test(T),X=/win/i.test(s),H=K&&T.match(/Version\/(\d*\.\d*)/);H&&(H=Number(H[1])),H&&H>=15&&(K=!1,U=!0);var D=k&&(_||K&&(H==null||H<12.11)),re=p||E&&F>=9;function J(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var z=function(t,i){var u=t.className,l=J(i).exec(u);if(l){var c=u.slice(l.index+l[0].length);t.className=u.slice(0,l.index)+(c?l[1]+c:"")}};function fe(t){for(var i=t.childNodes.length;i>0;--i)t.removeChild(t.firstChild);return t}function pe(t,i){return fe(t).appendChild(i)}function q(t,i,u,l){var c=document.createElement(t);if(u&&(c.className=u),l&&(c.style.cssText=l),typeof i=="string")c.appendChild(document.createTextNode(i));else if(i)for(var y=0;y<i.length;++y)c.appendChild(i[y]);return c}function Z(t,i,u,l){var c=q(t,i,u,l);return c.setAttribute("role","presentation"),c}var G;document.createRange?G=function(t,i,u,l){var c=document.createRange();return c.setEnd(l||t,u),c.setStart(t,i),c}:G=function(t,i,u){var l=document.body.createTextRange();try{l.moveToElementText(t.parentNode)}catch(c){return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",i),l};function ve(t,i){if(i.nodeType==3&&(i=i.parentNode),t.contains)return t.contains(i);do if(i.nodeType==11&&(i=i.host),i==t)return!0;while(i=i.parentNode)}function Ie(t){var i;try{i=t.activeElement}catch(u){i=t.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Ne(t,i){var u=t.className;J(i).test(u)||(t.className+=(u?" ":"")+i)}function je(t,i){for(var u=t.split(" "),l=0;l<u.length;l++)u[l]&&!J(u[l]).test(i)&&(i+=" "+u[l]);return i}var tt=function(t){t.select()};Y?tt=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:E&&(tt=function(t){try{t.select()}catch(i){}});function _e(t){return t.display.wrapper.ownerDocument}function mt(t){return _e(t).defaultView}function De(t){var i=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,i)}}function Oe(t,i,u){i||(i={});for(var l in t)t.hasOwnProperty(l)&&(u!==!1||!i.hasOwnProperty(l))&&(i[l]=t[l]);return i}function Ue(t,i,u,l,c){i==null&&(i=t.search(/[^\s\u00a0]/),i==-1&&(i=t.length));for(var y=l||0,w=c||0;;){var O=t.indexOf(" ",y);if(O<0||O>=i)return w+(i-y);w+=O-y,w+=u-w%u,y=O+1}}var Pe=function(){this.id=null,this.f=null,this.time=0,this.handler=De(this.onTimeout,this)};Pe.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Pe.prototype.set=function(t,i){this.f=i;var u=+new Date+t;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=u)};function Ce(t,i){for(var u=0;u<t.length;++u)if(t[u]==i)return u;return-1}var Ge=50,rt={toString:function(){return"CodeMirror.Pass"}},$e={scroll:!1},et={origin:"*mouse"},Ze={origin:"+move"};function Ct(t,i,u){for(var l=0,c=0;;){var y=t.indexOf(" ",l);y==-1&&(y=t.length);var w=y-l;if(y==t.length||c+w>=i)return l+Math.min(w,i-c);if(c+=y-l,c+=u-c%u,l=y+1,c>=i)return l}}var kt=[""];function Zt(t){for(;kt.length<=t;)kt.push(lt(kt)+" ");return kt[t]}function lt(t){return t[t.length-1]}function xt(t,i){for(var u=[],l=0;l<t.length;l++)u[l]=i(t[l],l);return u}function Ft(t,i,u){for(var l=0,c=u(i);l<t.length&&u(t[l])<=c;)l++;t.splice(l,0,i)}function Kr(){}function br(t,i){var u;return Object.create?u=Object.create(t):(Kr.prototype=t,u=new Kr),i&&Oe(i,u),u}var qr=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function xr(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||qr.test(t))}function Yt(t,i){return i?i.source.indexOf("\\w")>-1&&xr(t)?!0:i.test(t):xr(t)}function dr(t){for(var i in t)if(t.hasOwnProperty(i)&&t[i])return!1;return!0}var Xe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function gt(t){return t.charCodeAt(0)>=768&&Xe.test(t)}function Tt(t,i,u){for(;(u<0?i>0:i<t.length)&>(t.charAt(i));)i+=u;return i}function At(t,i,u){for(var l=i>u?-1:1;;){if(i==u)return i;var c=(i+u)/2,y=l<0?Math.ceil(c):Math.floor(c);if(y==i)return t(y)?i:u;t(y)?u=y:i=y+l}}function Ot(t,i,u,l){if(!t)return l(i,u,"ltr",0);for(var c=!1,y=0;y<t.length;++y){var w=t[y];(w.from<u&&w.to>i||i==u&&w.to==i)&&(l(Math.max(w.from,i),Math.min(w.to,u),w.level==1?"rtl":"ltr",y),c=!0)}c||l(i,u,"ltr")}var ct=null;function it(t,i,u){var l;ct=null;for(var c=0;c<t.length;++c){var y=t[c];if(y.from<i&&y.to>i)return c;y.to==i&&(y.from!=y.to&&u=="before"?l=c:ct=c),y.from==i&&(y.from!=y.to&&u!="before"?l=c:ct=c)}return l!=null?l:ct}var Et=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(V){return V<=247?t.charAt(V):1424<=V&&V<=1524?"R":1536<=V&&V<=1785?i.charAt(V-1536):1774<=V&&V<=2220?"r":8192<=V&&V<=8203?"w":V==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,y=/[LRr]/,w=/[Lb1n]/,O=/[1n]/;function R(V,oe,ce){this.level=V,this.from=oe,this.to=ce}return function(V,oe){var ce=oe=="ltr"?"L":"R";if(V.length==0||oe=="ltr"&&!l.test(V))return!1;for(var me=V.length,he=[],Te=0;Te<me;++Te)he.push(u(V.charCodeAt(Te)));for(var Le=0,ze=ce;Le<me;++Le){var Ye=he[Le];Ye=="m"?he[Le]=ze:ze=Ye}for(var Qe=0,Je=ce;Qe<me;++Qe){var qe=he[Qe];qe=="1"&&Je=="r"?he[Qe]="n":y.test(qe)&&(Je=qe,qe=="r"&&(he[Qe]="R"))}for(var ht=1,dt=he[0];ht<me-1;++ht){var Mt=he[ht];Mt=="+"&&dt=="1"&&he[ht+1]=="1"?he[ht]="1":Mt==","&&dt==he[ht+1]&&(dt=="1"||dt=="n")&&(he[ht]=dt),dt=Mt}for(var tr=0;tr<me;++tr){var Tr=he[tr];if(Tr==",")he[tr]="N";else if(Tr=="%"){var wt=void 0;for(wt=tr+1;wt<me&&he[wt]=="%";++wt);for(var xn=tr&&he[tr-1]=="!"||wt<me&&he[wt]=="1"?"1":"N",sn=tr;sn<wt;++sn)he[sn]=xn;tr=wt-1}}for(var Ar=0,Hr=ce;Ar<me;++Ar){var zr=he[Ar];Hr=="L"&&zr=="1"?he[Ar]="L":y.test(zr)&&(Hr=zr)}for(var Pr=0;Pr<me;++Pr)if(c.test(he[Pr])){var Cr=void 0;for(Cr=Pr+1;Cr<me&&c.test(he[Cr]);++Cr);for(var gr=(Pr?he[Pr-1]:ce)=="L",hn=(Cr<me?he[Cr]:ce)=="L",Ba=gr==hn?gr?"L":"R":ce,Si=Pr;Si<Cr;++Si)he[Si]=Ba;Pr=Cr-1}for(var Nr=[],Mn,Dr=0;Dr<me;)if(w.test(he[Dr])){var Nl=Dr;for(++Dr;Dr<me&&w.test(he[Dr]);++Dr);Nr.push(new R(0,Nl,Dr))}else{var wi=Dr,ji=Nr.length,Jn=oe=="rtl"?1:0;for(++Dr;Dr<me&&he[Dr]!="L";++Dr);for(var Qr=wi;Qr<Dr;)if(O.test(he[Qr])){wi<Qr&&(Nr.splice(ji,0,new R(1,wi,Qr)),ji+=Jn);var Nn=Qr;for(++Qr;Qr<Dr&&O.test(he[Qr]);++Qr);Nr.splice(ji,0,new R(2,Nn,Qr)),ji+=Jn,wi=Qr}else++Qr;wi<Dr&&Nr.splice(ji,0,new R(1,wi,Dr))}return oe=="ltr"&&(Nr[0].level==1&&(Mn=V.match(/^\s+/))&&(Nr[0].from=Mn[0].length,Nr.unshift(new R(0,0,Mn[0].length))),lt(Nr).level==1&&(Mn=V.match(/\s+$/))&&(lt(Nr).to-=Mn[0].length,Nr.push(new R(0,me-Mn[0].length,me)))),oe=="rtl"?Nr.reverse():Nr}}();function nt(t,i){var u=t.order;return u==null&&(u=t.order=Et(t.text,i)),u}var Ve=[],ue=function(t,i,u){if(t.addEventListener)t.addEventListener(i,u,!1);else if(t.attachEvent)t.attachEvent("on"+i,u);else{var l=t._handlers||(t._handlers={});l[i]=(l[i]||Ve).concat(u)}};function ge(t,i){return t._handlers&&t._handlers[i]||Ve}function Be(t,i,u){if(t.removeEventListener)t.removeEventListener(i,u,!1);else if(t.detachEvent)t.detachEvent("on"+i,u);else{var l=t._handlers,c=l&&l[i];if(c){var y=Ce(c,u);y>-1&&(l[i]=c.slice(0,y).concat(c.slice(y+1)))}}}function Ke(t,i){var u=ge(t,i);if(!!u.length)for(var l=Array.prototype.slice.call(arguments,2),c=0;c<u.length;++c)u[c].apply(null,l)}function at(t,i,u){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Ke(t,u||i.type,t,i),_n(i)||i.codemirrorIgnore}function bt(t){var i=t._handlers&&t._handlers.cursorActivity;if(!!i)for(var u=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)Ce(u,i[l])==-1&&u.push(i[l])}function Rt(t,i){return ge(t,i).length>0}function pr(t){t.prototype.on=function(i,u){ue(this,i,u)},t.prototype.off=function(i,u){Be(this,i,u)}}function Lt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function jt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function _n(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Yr(t){Lt(t),jt(t)}function Jr(t){return t.target||t.srcElement}function si(t){var i=t.which;return i==null&&(t.button&1?i=1:t.button&2?i=3:t.button&4&&(i=2)),k&&t.ctrlKey&&i==1&&(i=3),i}var en=function(){if(E&&F<9)return!1;var t=q("div");return"draggable"in t||"dragDrop"in t}(),li;function ui(t){if(li==null){var i=q("span","\u200B");pe(t,q("span",[i,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(li=i.offsetWidth<=1&&i.offsetHeight>2&&!(E&&F<8))}var u=li?q("span","\u200B"):q("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var tn;function Pn(t){if(tn!=null)return tn;var i=pe(t,document.createTextNode("A\u062EA")),u=G(i,0,1).getBoundingClientRect(),l=G(i,1,2).getBoundingClientRect();return fe(t),!u||u.left==u.right?!1:tn=l.right-u.right<3}var Vr=`
|
|
14
|
+
|
|
15
|
+
b`.split(/\n/).length!=3?function(t){for(var i=0,u=[],l=t.length;i<=l;){var c=t.indexOf(`
|
|
16
|
+
`,i);c==-1&&(c=t.length);var y=t.slice(i,t.charAt(c-1)=="\r"?c-1:c),w=y.indexOf("\r");w!=-1?(u.push(y.slice(0,w)),i+=w+1):(u.push(y),i=c+1)}return u}:function(t){return t.split(/\r\n?|\n/)},Oi=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(i){return!1}}:function(t){var i;try{i=t.ownerDocument.selection.createRange()}catch(u){}return!i||i.parentElement()!=t?!1:i.compareEndPoints("StartToEnd",i)!=0},ha=function(){var t=q("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),An=null;function mn(t){if(An!=null)return An;var i=pe(t,q("span","x")),u=i.getBoundingClientRect(),l=G(i,0,1).getBoundingClientRect();return An=Math.abs(u.left-l.left)>1}var Cn={},En={};function In(t,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Cn[t]=i}function Ha(t,i){En[t]=i}function zn(t){if(typeof t=="string"&&En.hasOwnProperty(t))t=En[t];else if(t&&typeof t.name=="string"&&En.hasOwnProperty(t.name)){var i=En[t.name];typeof i=="string"&&(i={name:i}),t=br(i,t),t.name=i.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return zn("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return zn("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function fn(t,i){i=zn(i);var u=Cn[i.name];if(!u)return fn(t,"text/plain");var l=u(t,i);if(Sr.hasOwnProperty(i.name)){var c=Sr[i.name];for(var y in c)!c.hasOwnProperty(y)||(l.hasOwnProperty(y)&&(l["_"+y]=l[y]),l[y]=c[y])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var w in i.modeProps)l[w]=i.modeProps[w];return l}var Sr={};function fi(t,i){var u=Sr.hasOwnProperty(t)?Sr[t]:Sr[t]={};Oe(i,u)}function kn(t,i){if(i===!0)return i;if(t.copyState)return t.copyState(i);var u={};for(var l in i){var c=i[l];c instanceof Array&&(c=c.concat([])),u[l]=c}return u}function va(t,i){for(var u;t.innerMode&&(u=t.innerMode(i),!(!u||u.mode==t));)i=u.state,t=u.mode;return u||{mode:t,state:i}}function No(t,i,u){return t.startState?t.startState(i,u):!0}var sr=function(t,i,u){this.pos=this.start=0,this.string=t,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};sr.prototype.eol=function(){return this.pos>=this.string.length},sr.prototype.sol=function(){return this.pos==this.lineStart},sr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},sr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},sr.prototype.eat=function(t){var i=this.string.charAt(this.pos),u;if(typeof t=="string"?u=i==t:u=i&&(t.test?t.test(i):t(i)),u)return++this.pos,i},sr.prototype.eatWhile=function(t){for(var i=this.pos;this.eat(t););return this.pos>i},sr.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},sr.prototype.skipToEnd=function(){this.pos=this.string.length},sr.prototype.skipTo=function(t){var i=this.string.indexOf(t,this.pos);if(i>-1)return this.pos=i,!0},sr.prototype.backUp=function(t){this.pos-=t},sr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ue(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ue(this.string,this.lineStart,this.tabSize):0)},sr.prototype.indentation=function(){return Ue(this.string,null,this.tabSize)-(this.lineStart?Ue(this.string,this.lineStart,this.tabSize):0)},sr.prototype.match=function(t,i,u){if(typeof t=="string"){var l=function(w){return u?w.toLowerCase():w},c=this.string.substr(this.pos,t.length);if(l(c)==l(t))return i!==!1&&(this.pos+=t.length),!0}else{var y=this.string.slice(this.pos).match(t);return y&&y.index>0?null:(y&&i!==!1&&(this.pos+=y[0].length),y)}},sr.prototype.current=function(){return this.string.slice(this.start,this.pos)},sr.prototype.hideFirstChars=function(t,i){this.lineStart+=t;try{return i()}finally{this.lineStart-=t}},sr.prototype.lookAhead=function(t){var i=this.lineOracle;return i&&i.lookAhead(t)},sr.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function ot(t,i){if(i-=t.first,i<0||i>=t.size)throw new Error("There is no line "+(i+t.first)+" in the document.");for(var u=t;!u.lines;)for(var l=0;;++l){var c=u.children[l],y=c.chunkSize();if(i<y){u=c;break}i-=y}return u.lines[i]}function ci(t,i,u){var l=[],c=i.line;return t.iter(i.line,u.line+1,function(y){var w=y.text;c==u.line&&(w=w.slice(0,u.ch)),c==i.line&&(w=w.slice(i.ch)),l.push(w),++c}),l}function zi(t,i,u){var l=[];return t.iter(i,u,function(c){l.push(c.text)}),l}function cn(t,i){var u=i-t.height;if(u)for(var l=t;l;l=l.parent)l.height+=u}function zt(t){if(t.parent==null)return null;for(var i=t.parent,u=Ce(i.lines,t),l=i.parent;l;i=l,l=l.parent)for(var c=0;l.children[c]!=i;++c)u+=l.children[c].chunkSize();return u+i.first}function di(t,i){var u=t.first;e:do{for(var l=0;l<t.children.length;++l){var c=t.children[l],y=c.height;if(i<y){t=c;continue e}i-=y,u+=c.chunkSize()}return u}while(!t.lines);for(var w=0;w<t.lines.length;++w){var O=t.lines[w],R=O.height;if(i<R)break;i-=R}return u+w}function Gi(t,i){return i>=t.first&&i<t.first+t.size}function pi(t,i){return String(t.lineNumberFormatter(i+t.firstLineNumber))}function M(t,i,u){if(u===void 0&&(u=null),!(this instanceof M))return new M(t,i,u);this.line=t,this.ch=i,this.sticky=u}function ae(t,i){return t.line-i.line||t.ch-i.ch}function Fe(t,i){return t.sticky==i.sticky&&ae(t,i)==0}function He(t){return M(t.line,t.ch)}function St(t,i){return ae(t,i)<0?i:t}function Nt(t,i){return ae(t,i)<0?t:i}function Gt(t,i){return Math.max(t.first,Math.min(i,t.first+t.size-1))}function st(t,i){if(i.line<t.first)return M(t.first,0);var u=t.first+t.size-1;return i.line>u?M(u,ot(t,u).text.length):Fn(i,ot(t,i.line).text.length)}function Fn(t,i){var u=t.ch;return u==null||u>i?M(t.line,i):u<0?M(t.line,0):t}function Jt(t,i){for(var u=[],l=0;l<i.length;l++)u[l]=st(t,i[l]);return u}var Do=function(t,i){this.state=t,this.lookAhead=i},wr=function(t,i,u,l){this.state=i,this.doc=t,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};wr.prototype.lookAhead=function(t){var i=this.doc.getLine(this.line+t);return i!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),i},wr.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},wr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},wr.fromSaved=function(t,i,u){return i instanceof Do?new wr(t,kn(t.mode,i.state),u,i.lookAhead):new wr(t,kn(t.mode,i),u)},wr.prototype.save=function(t){var i=t!==!1?kn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Do(i,this.maxLookAhead):i};function uu(t,i,u,l){var c=[t.state.modeGen],y={};wc(t,i.text,t.doc.mode,u,function(V,oe){return c.push(V,oe)},y,l);for(var w=u.state,O=function(V){u.baseTokens=c;var oe=t.state.overlays[V],ce=1,me=0;u.state=!0,wc(t,i.text,oe.mode,u,function(he,Te){for(var Le=ce;me<he;){var ze=c[ce];ze>he&&c.splice(ce,1,he,c[ce+1],ze),ce+=2,me=Math.min(he,ze)}if(!!Te)if(oe.opaque)c.splice(Le,ce-Le,he,"overlay "+Te),ce=Le+2;else for(;Le<ce;Le+=2){var Ye=c[Le+1];c[Le+1]=(Ye?Ye+" ":"")+"overlay "+Te}},y),u.state=w,u.baseTokens=null,u.baseTokenPos=1},R=0;R<t.state.overlays.length;++R)O(R);return{styles:c,classes:y.bgClass||y.textClass?y:null}}function Bo(t,i,u){if(!i.styles||i.styles[0]!=t.state.modeGen){var l=za(t,zt(i)),c=i.text.length>t.options.maxHighlightLength&&kn(t.doc.mode,l.state),y=uu(t,i,l);c&&(l.state=c),i.stateAfter=l.save(!c),i.styles=y.styles,y.classes?i.styleClasses=y.classes:i.styleClasses&&(i.styleClasses=null),u===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return i.styles}function za(t,i,u){var l=t.doc,c=t.display;if(!l.mode.startState)return new wr(l,!0,i);var y=gp(t,i,u),w=y>l.first&&ot(l,y-1).stateAfter,O=w?wr.fromSaved(l,w,y):new wr(l,No(l.mode),y);return l.iter(y,i,function(R){jo(t,R.text,O);var V=O.line;R.stateAfter=V==i-1||V%5==0||V>=c.viewFrom&&V<c.viewTo?O.save():null,O.nextLine()}),u&&(l.modeFrontier=O.line),O}function jo(t,i,u,l){var c=t.doc.mode,y=new sr(i,t.options.tabSize,u);for(y.start=y.pos=l||0,i==""&&ks(c,u.state);!y.eol();)Fs(c,y,u.state),y.start=y.pos}function ks(t,i){if(t.blankLine)return t.blankLine(i);if(!!t.innerMode){var u=va(t,i);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function Fs(t,i,u,l){for(var c=0;c<10;c++){l&&(l[0]=va(t,u).mode);var y=t.token(i,u);if(i.pos>i.start)return y}throw new Error("Mode "+t.name+" failed to advance stream.")}var fu=function(t,i,u){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=i||null,this.state=u};function cu(t,i,u,l){var c=t.doc,y=c.mode,w;i=st(c,i);var O=ot(c,i.line),R=za(t,i.line,u),V=new sr(O.text,t.options.tabSize,R),oe;for(l&&(oe=[]);(l||V.pos<i.ch)&&!V.eol();)V.start=V.pos,w=Fs(y,V,R.state),l&&oe.push(new fu(V,w,kn(c.mode,R.state)));return l?oe:new fu(V,w,R.state)}function du(t,i){if(t)for(;;){var u=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;t=t.slice(0,u.index)+t.slice(u.index+u[0].length);var l=u[1]?"bgClass":"textClass";i[l]==null?i[l]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+u[2])}return t}function wc(t,i,u,l,c,y,w){var O=u.flattenSpans;O==null&&(O=t.options.flattenSpans);var R=0,V=null,oe=new sr(i,t.options.tabSize,l),ce,me=t.options.addModeClass&&[null];for(i==""&&du(ks(u,l.state),y);!oe.eol();){if(oe.pos>t.options.maxHighlightLength?(O=!1,w&&jo(t,i,l,oe.pos),oe.pos=i.length,ce=null):ce=du(Fs(u,oe,l.state,me),y),me){var he=me[0].name;he&&(ce="m-"+(ce?he+" "+ce:he))}if(!O||V!=ce){for(;R<oe.start;)R=Math.min(oe.start,R+5e3),c(R,V);V=ce}oe.start=oe.pos}for(;R<oe.pos;){var Te=Math.min(oe.pos,R+5e3);c(Te,V),R=Te}}function gp(t,i,u){for(var l,c,y=t.doc,w=u?-1:i-(t.doc.mode.innerMode?1e3:100),O=i;O>w;--O){if(O<=y.first)return y.first;var R=ot(y,O-1),V=R.stateAfter;if(V&&(!u||O+(V instanceof Do?V.lookAhead:0)<=y.modeFrontier))return O;var oe=Ue(R.text,null,t.options.tabSize);(c==null||l>oe)&&(c=O-1,l=oe)}return c}function Ac(t,i){if(t.modeFrontier=Math.min(t.modeFrontier,i),!(t.highlightFrontier<i-10)){for(var u=t.first,l=i-1;l>u;l--){var c=ot(t,l).stateAfter;if(c&&(!(c instanceof Do)||l+c.lookAhead<i)){u=l+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,u)}}var pu=!1,hi=!1;function Cc(){pu=!0}function Ec(){hi=!0}function Rs(t,i,u){this.marker=t,this.from=i,this.to=u}function Vo(t,i){if(t)for(var u=0;u<t.length;++u){var l=t[u];if(l.marker==i)return l}}function mp(t,i){for(var u,l=0;l<t.length;++l)t[l]!=i&&(u||(u=[])).push(t[l]);return u}function yp(t,i,u){var l=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));l&&t.markedSpans&&l.has(t.markedSpans)?t.markedSpans.push(i):(t.markedSpans=t.markedSpans?t.markedSpans.concat([i]):[i],l&&l.add(t.markedSpans)),i.marker.attachLine(t)}function Oc(t,i,u){var l;if(t)for(var c=0;c<t.length;++c){var y=t[c],w=y.marker,O=y.from==null||(w.inclusiveLeft?y.from<=i:y.from<i);if(O||y.from==i&&w.type=="bookmark"&&(!u||!y.marker.insertLeft)){var R=y.to==null||(w.inclusiveRight?y.to>=i:y.to>i);(l||(l=[])).push(new Rs(w,y.from,R?null:y.to))}}return l}function hu(t,i,u){var l;if(t)for(var c=0;c<t.length;++c){var y=t[c],w=y.marker,O=y.to==null||(w.inclusiveRight?y.to>=i:y.to>i);if(O||y.from==i&&w.type=="bookmark"&&(!u||y.marker.insertLeft)){var R=y.from==null||(w.inclusiveLeft?y.from<=i:y.from<i);(l||(l=[])).push(new Rs(w,R?null:y.from-i,y.to==null?null:y.to-i))}}return l}function Ls(t,i){if(i.full)return null;var u=Gi(t,i.from.line)&&ot(t,i.from.line).markedSpans,l=Gi(t,i.to.line)&&ot(t,i.to.line).markedSpans;if(!u&&!l)return null;var c=i.from.ch,y=i.to.ch,w=ae(i.from,i.to)==0,O=Oc(u,c,w),R=hu(l,y,w),V=i.text.length==1,oe=lt(i.text).length+(V?c:0);if(O)for(var ce=0;ce<O.length;++ce){var me=O[ce];if(me.to==null){var he=Vo(R,me.marker);he?V&&(me.to=he.to==null?null:he.to+oe):me.to=c}}if(R)for(var Te=0;Te<R.length;++Te){var Le=R[Te];if(Le.to!=null&&(Le.to+=oe),Le.from==null){var ze=Vo(O,Le.marker);ze||(Le.from=oe,V&&(O||(O=[])).push(Le))}else Le.from+=oe,V&&(O||(O=[])).push(Le)}O&&(O=Tc(O)),R&&R!=O&&(R=Tc(R));var Ye=[O];if(!V){var Qe=i.text.length-2,Je;if(Qe>0&&O)for(var qe=0;qe<O.length;++qe)O[qe].to==null&&(Je||(Je=[])).push(new Rs(O[qe].marker,null,null));for(var ht=0;ht<Qe;++ht)Ye.push(Je);Ye.push(R)}return Ye}function Tc(t){for(var i=0;i<t.length;++i){var u=t[i];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&t.splice(i--,1)}return t.length?t:null}function bp(t,i,u){var l=null;if(t.iter(i.line,u.line+1,function(he){if(he.markedSpans)for(var Te=0;Te<he.markedSpans.length;++Te){var Le=he.markedSpans[Te].marker;Le.readOnly&&(!l||Ce(l,Le)==-1)&&(l||(l=[])).push(Le)}}),!l)return null;for(var c=[{from:i,to:u}],y=0;y<l.length;++y)for(var w=l[y],O=w.find(0),R=0;R<c.length;++R){var V=c[R];if(!(ae(V.to,O.from)<0||ae(V.from,O.to)>0)){var oe=[R,1],ce=ae(V.from,O.from),me=ae(V.to,O.to);(ce<0||!w.inclusiveLeft&&!ce)&&oe.push({from:V.from,to:O.from}),(me>0||!w.inclusiveRight&&!me)&&oe.push({from:O.to,to:V.to}),c.splice.apply(c,oe),R+=oe.length-3}}return c}function Pc(t){var i=t.markedSpans;if(!!i){for(var u=0;u<i.length;++u)i[u].marker.detachLine(t);t.markedSpans=null}}function Ic(t,i){if(!!i){for(var u=0;u<i.length;++u)i[u].marker.attachLine(t);t.markedSpans=i}}function $i(t){return t.inclusiveLeft?-1:0}function Ga(t){return t.inclusiveRight?1:0}function ga(t,i){var u=t.lines.length-i.lines.length;if(u!=0)return u;var l=t.find(),c=i.find(),y=ae(l.from,c.from)||$i(t)-$i(i);if(y)return-y;var w=ae(l.to,c.to)||Ga(t)-Ga(i);return w||i.id-t.id}function vu(t,i){var u=hi&&t.markedSpans,l;if(u)for(var c=void 0,y=0;y<u.length;++y)c=u[y],c.marker.collapsed&&(i?c.from:c.to)==null&&(!l||ga(l,c.marker)<0)&&(l=c.marker);return l}function Ms(t){return vu(t,!0)}function $a(t){return vu(t,!1)}function gu(t,i){var u=hi&&t.markedSpans,l;if(u)for(var c=0;c<u.length;++c){var y=u[c];y.marker.collapsed&&(y.from==null||y.from<i)&&(y.to==null||y.to>i)&&(!l||ga(l,y.marker)<0)&&(l=y.marker)}return l}function mu(t,i,u,l,c){var y=ot(t,i),w=hi&&y.markedSpans;if(w)for(var O=0;O<w.length;++O){var R=w[O];if(!!R.marker.collapsed){var V=R.marker.find(0),oe=ae(V.from,u)||$i(R.marker)-$i(c),ce=ae(V.to,l)||Ga(R.marker)-Ga(c);if(!(oe>=0&&ce<=0||oe<=0&&ce>=0)&&(oe<=0&&(R.marker.inclusiveRight&&c.inclusiveLeft?ae(V.to,u)>=0:ae(V.to,u)>0)||oe>=0&&(R.marker.inclusiveRight&&c.inclusiveLeft?ae(V.from,l)<=0:ae(V.from,l)<0)))return!0}}}function yn(t){for(var i;i=Ms(t);)t=i.find(-1,!0).line;return t}function kc(t){for(var i;i=$a(t);)t=i.find(1,!0).line;return t}function yu(t){for(var i,u;i=$a(t);)t=i.find(1,!0).line,(u||(u=[])).push(t);return u}function lr(t,i){var u=ot(t,i),l=yn(u);return u==l?i:zt(l)}function bu(t,i){if(i>t.lastLine())return i;var u=ot(t,i),l;if(!Fr(t,u))return i;for(;l=$a(u);)u=l.find(1,!0).line;return zt(u)+1}function Fr(t,i){var u=hi&&i.markedSpans;if(u){for(var l=void 0,c=0;c<u.length;++c)if(l=u[c],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&Ns(t,i,l))return!0}}}function Ns(t,i,u){if(u.to==null){var l=u.marker.find(1,!0);return Ns(t,l.line,Vo(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==i.text.length)return!0;for(var c=void 0,y=0;y<i.markedSpans.length;++y)if(c=i.markedSpans[y],c.marker.collapsed&&!c.marker.widgetNode&&c.from==u.to&&(c.to==null||c.to!=u.from)&&(c.marker.inclusiveLeft||u.marker.inclusiveRight)&&Ns(t,i,c))return!0}function qn(t){t=yn(t);for(var i=0,u=t.parent,l=0;l<u.lines.length;++l){var c=u.lines[l];if(c==t)break;i+=c.height}for(var y=u.parent;y;u=y,y=u.parent)for(var w=0;w<y.children.length;++w){var O=y.children[w];if(O==u)break;i+=O.height}return i}function Gn(t){if(t.height==0)return 0;for(var i=t.text.length,u,l=t;u=Ms(l);){var c=u.find(0,!0);l=c.from.line,i+=c.from.ch-c.to.ch}for(l=t;u=$a(l);){var y=u.find(0,!0);i-=l.text.length-y.from.ch,l=y.to.line,i+=l.text.length-y.to.ch}return i}function vi(t){var i=t.display,u=t.doc;i.maxLine=ot(u,u.first),i.maxLineLength=Gn(i.maxLine),i.maxLineChanged=!0,u.iter(function(l){var c=Gn(l);c>i.maxLineLength&&(i.maxLineLength=c,i.maxLine=l)})}var Ti=function(t,i,u){this.text=t,Ic(this,i),this.height=u?u(this):1};Ti.prototype.lineNo=function(){return zt(this)},pr(Ti);function Ds(t,i,u,l){t.text=i,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),Pc(t),Ic(t,u);var c=l?l(t):1;c!=t.height&&cn(t,c)}function Fc(t){t.parent=null,Pc(t)}var xu={},Bs={};function Uo(t,i){if(!t||/^\s*$/.test(t))return null;var u=i.addModeClass?Bs:xu;return u[t]||(u[t]=t.replace(/\S+/g,"cm-$&"))}function Pi(t,i){var u=Z("span",null,null,U?"padding-right: .1px":null),l={pre:Z("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};i.measure={};for(var c=0;c<=(i.rest?i.rest.length:0);c++){var y=c?i.rest[c-1]:i.line,w=void 0;l.pos=0,l.addToken=ar,Pn(t.display.measure)&&(w=nt(y,t.doc.direction))&&(l.addToken=Mc(l.addToken,w)),l.map=[];var O=i!=t.display.externalMeasured&&zt(y);$n(y,l,Bo(t,y,O)),y.styleClasses&&(y.styleClasses.bgClass&&(l.bgClass=je(y.styleClasses.bgClass,l.bgClass||"")),y.styleClasses.textClass&&(l.textClass=je(y.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(ui(t.display.measure))),c==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(U){var R=l.content.lastChild;(/\bcm-tab\b/.test(R.className)||R.querySelector&&R.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Ke(t,"renderLine",t,i.line,l.pre),l.pre.className&&(l.textClass=je(l.pre.className,l.textClass||"")),l}function Rc(t){var i=q("span","\u2022","cm-invalidchar");return i.title="\\u"+t.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function ar(t,i,u,l,c,y,w){if(!!i){var O=t.splitSpaces?Lc(i,t.trailingSpace):i,R=t.cm.state.specialChars,V=!1,oe;if(!R.test(i))t.col+=i.length,oe=document.createTextNode(O),t.map.push(t.pos,t.pos+i.length,oe),E&&F<9&&(V=!0),t.pos+=i.length;else{oe=document.createDocumentFragment();for(var ce=0;;){R.lastIndex=ce;var me=R.exec(i),he=me?me.index-ce:i.length-ce;if(he){var Te=document.createTextNode(O.slice(ce,ce+he));E&&F<9?oe.appendChild(q("span",[Te])):oe.appendChild(Te),t.map.push(t.pos,t.pos+he,Te),t.col+=he,t.pos+=he}if(!me)break;ce+=he+1;var Le=void 0;if(me[0]==" "){var ze=t.cm.options.tabSize,Ye=ze-t.col%ze;Le=oe.appendChild(q("span",Zt(Ye),"cm-tab")),Le.setAttribute("role","presentation"),Le.setAttribute("cm-text"," "),t.col+=Ye}else me[0]=="\r"||me[0]==`
|
|
17
|
+
`?(Le=oe.appendChild(q("span",me[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Le.setAttribute("cm-text",me[0]),t.col+=1):(Le=t.cm.options.specialCharPlaceholder(me[0]),Le.setAttribute("cm-text",me[0]),E&&F<9?oe.appendChild(q("span",[Le])):oe.appendChild(Le),t.col+=1);t.map.push(t.pos,t.pos+1,Le),t.pos++}}if(t.trailingSpace=O.charCodeAt(i.length-1)==32,u||l||c||V||y||w){var Qe=u||"";l&&(Qe+=l),c&&(Qe+=c);var Je=q("span",[oe],Qe,y);if(w)for(var qe in w)w.hasOwnProperty(qe)&&qe!="style"&&qe!="class"&&Je.setAttribute(qe,w[qe]);return t.content.appendChild(Je)}t.content.appendChild(oe)}}function Lc(t,i){if(t.length>1&&!/ /.test(t))return t;for(var u=i,l="",c=0;c<t.length;c++){var y=t.charAt(c);y==" "&&u&&(c==t.length-1||t.charCodeAt(c+1)==32)&&(y="\xA0"),l+=y,u=y==" "}return l}function Mc(t,i){return function(u,l,c,y,w,O,R){c=c?c+" cm-force-border":"cm-force-border";for(var V=u.pos,oe=V+l.length;;){for(var ce=void 0,me=0;me<i.length&&(ce=i[me],!(ce.to>V&&ce.from<=V));me++);if(ce.to>=oe)return t(u,l,c,y,w,O,R);t(u,l.slice(0,ce.to-V),c,y,null,O,R),y=null,l=l.slice(ce.to-V),V=ce.to}}}function Su(t,i,u,l){var c=!l&&u.widgetNode;c&&t.map.push(t.pos,t.pos+i,c),!l&&t.cm.display.input.needsContentAttribute&&(c||(c=t.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",u.id)),c&&(t.cm.display.input.setUneditable(c),t.content.appendChild(c)),t.pos+=i,t.trailingSpace=!1}function $n(t,i,u){var l=t.markedSpans,c=t.text,y=0;if(!l){for(var w=1;w<u.length;w+=2)i.addToken(i,c.slice(y,y=u[w]),Uo(u[w+1],i.cm.options));return}for(var O=c.length,R=0,V=1,oe="",ce,me,he=0,Te,Le,ze,Ye,Qe;;){if(he==R){Te=Le=ze=me="",Qe=null,Ye=null,he=1/0;for(var Je=[],qe=void 0,ht=0;ht<l.length;++ht){var dt=l[ht],Mt=dt.marker;if(Mt.type=="bookmark"&&dt.from==R&&Mt.widgetNode)Je.push(Mt);else if(dt.from<=R&&(dt.to==null||dt.to>R||Mt.collapsed&&dt.to==R&&dt.from==R)){if(dt.to!=null&&dt.to!=R&&he>dt.to&&(he=dt.to,Le=""),Mt.className&&(Te+=" "+Mt.className),Mt.css&&(me=(me?me+";":"")+Mt.css),Mt.startStyle&&dt.from==R&&(ze+=" "+Mt.startStyle),Mt.endStyle&&dt.to==he&&(qe||(qe=[])).push(Mt.endStyle,dt.to),Mt.title&&((Qe||(Qe={})).title=Mt.title),Mt.attributes)for(var tr in Mt.attributes)(Qe||(Qe={}))[tr]=Mt.attributes[tr];Mt.collapsed&&(!Ye||ga(Ye.marker,Mt)<0)&&(Ye=dt)}else dt.from>R&&he>dt.from&&(he=dt.from)}if(qe)for(var Tr=0;Tr<qe.length;Tr+=2)qe[Tr+1]==he&&(Le+=" "+qe[Tr]);if(!Ye||Ye.from==R)for(var wt=0;wt<Je.length;++wt)Su(i,0,Je[wt]);if(Ye&&(Ye.from||0)==R){if(Su(i,(Ye.to==null?O+1:Ye.to)-R,Ye.marker,Ye.from==null),Ye.to==null)return;Ye.to==R&&(Ye=!1)}}if(R>=O)break;for(var xn=Math.min(O,he);;){if(oe){var sn=R+oe.length;if(!Ye){var Ar=sn>xn?oe.slice(0,xn-R):oe;i.addToken(i,Ar,ce?ce+Te:Te,ze,R+Ar.length==he?Le:"",me,Qe)}if(sn>=xn){oe=oe.slice(xn-R),R=xn;break}R=sn,ze=""}oe=c.slice(y,y=u[V++]),ce=Uo(u[V++],i.cm.options)}}}function js(t,i,u){this.line=i,this.rest=yu(i),this.size=this.rest?zt(lt(this.rest))-u+1:1,this.node=this.text=null,this.hidden=Fr(t,i)}function Ka(t,i,u){for(var l=[],c,y=i;y<u;y=c){var w=new js(t.doc,ot(t.doc,y),y);c=y+w.size,l.push(w)}return l}var Ii=null;function Nc(t){Ii?Ii.ops.push(t):t.ownsGroup=Ii={ops:[t],delayedCallbacks:[]}}function ei(t){var i=t.delayedCallbacks,u=0;do{for(;u<i.length;u++)i[u].call(null);for(var l=0;l<t.ops.length;l++){var c=t.ops[l];if(c.cursorActivityHandlers)for(;c.cursorActivityCalled<c.cursorActivityHandlers.length;)c.cursorActivityHandlers[c.cursorActivityCalled++].call(null,c.cm)}}while(u<i.length)}function Dc(t,i){var u=t.ownsGroup;if(!!u)try{ei(u)}finally{Ii=null,i(u)}}var gi=null;function Rr(t,i){var u=ge(t,i);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),c;Ii?c=Ii.delayedCallbacks:gi?c=gi:(c=gi=[],setTimeout(wu,0));for(var y=function(O){c.push(function(){return u[O].apply(null,l)})},w=0;w<u.length;++w)y(w)}}function wu(){var t=gi;gi=null;for(var i=0;i<t.length;++i)t[i]()}function Au(t,i,u,l){for(var c=0;c<i.changes.length;c++){var y=i.changes[c];y=="text"?jc(t,i):y=="gutter"?Cu(t,i,u,l):y=="class"?$t(t,i):y=="widget"&&Kt(t,i,l)}i.changes=null}function ma(t){return t.node==t.text&&(t.node=q("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),E&&F<8&&(t.node.style.zIndex=2)),t.node}function Bc(t,i){var u=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),i.background)u?i.background.className=u:(i.background.parentNode.removeChild(i.background),i.background=null);else if(u){var l=ma(i);i.background=l.insertBefore(q("div",null,u),l.firstChild),t.display.input.setUneditable(i.background)}}function Ya(t,i){var u=t.display.externalMeasured;return u&&u.line==i.line?(t.display.externalMeasured=null,i.measure=u.measure,u.built):Pi(t,i)}function jc(t,i){var u=i.text.className,l=Ya(t,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,$t(t,i)):u&&(i.text.className=u)}function $t(t,i){Bc(t,i),i.line.wrapClass?ma(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var u=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=u||""}function Cu(t,i,u,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var c=ma(i);i.gutterBackground=q("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(t.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),t.display.input.setUneditable(i.gutterBackground),c.insertBefore(i.gutterBackground,i.text)}var y=i.line.gutterMarkers;if(t.options.lineNumbers||y){var w=ma(i),O=i.gutter=q("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(O.setAttribute("aria-hidden","true"),t.display.input.setUneditable(O),w.insertBefore(O,i.text),i.line.gutterClass&&(O.className+=" "+i.line.gutterClass),t.options.lineNumbers&&(!y||!y["CodeMirror-linenumbers"])&&(i.lineNumber=O.appendChild(q("div",pi(t.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),y)for(var R=0;R<t.display.gutterSpecs.length;++R){var V=t.display.gutterSpecs[R].className,oe=y.hasOwnProperty(V)&&y[V];oe&&O.appendChild(q("div",[oe],"CodeMirror-gutter-elt","left: "+l.gutterLeft[V]+"px; width: "+l.gutterWidth[V]+"px"))}}}function Kt(t,i,u){i.alignable&&(i.alignable=null);for(var l=J("CodeMirror-linewidget"),c=i.node.firstChild,y=void 0;c;c=y)y=c.nextSibling,l.test(c.className)&&i.node.removeChild(c);ut(t,i,u)}function Vc(t,i,u,l){var c=Ya(t,i);return i.text=i.node=c.pre,c.bgClass&&(i.bgClass=c.bgClass),c.textClass&&(i.textClass=c.textClass),$t(t,i),Cu(t,i,u,l),ut(t,i,l),i.node}function ut(t,i,u){if(Eu(t,i.line,i,u,!0),i.rest)for(var l=0;l<i.rest.length;l++)Eu(t,i.rest[l],i,u,!1)}function Eu(t,i,u,l,c){if(!!i.widgets)for(var y=ma(u),w=0,O=i.widgets;w<O.length;++w){var R=O[w],V=q("div",[R.node],"CodeMirror-linewidget"+(R.className?" "+R.className:""));R.handleMouseEvents||V.setAttribute("cm-ignore-events","true"),Ou(R,V,u,l),t.display.input.setUneditable(V),c&&R.above?y.insertBefore(V,u.gutter||u.text):y.appendChild(V),Rr(R,"redraw")}}function Ou(t,i,u,l){if(t.noHScroll){(u.alignable||(u.alignable=[])).push(i);var c=l.wrapperWidth;i.style.left=l.fixedPos+"px",t.coverGutter||(c-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=c+"px"}t.coverGutter&&(i.style.zIndex=5,i.style.position="relative",t.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function Ja(t){if(t.height!=null)return t.height;var i=t.doc.cm;if(!i)return 0;if(!ve(document.body,t.node)){var u="position: relative;";t.coverGutter&&(u+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),t.noHScroll&&(u+="width: "+i.display.wrapper.clientWidth+"px;"),pe(i.display.measure,q("div",[t.node],null,u))}return t.height=t.node.parentNode.offsetHeight}function Er(t,i){for(var u=Jr(i);u!=t.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==t.sizer&&u!=t.mover)return!0}function Vs(t){return t.lineSpace.offsetTop}function Us(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function Wo(t){if(t.cachedPaddingH)return t.cachedPaddingH;var i=pe(t.measure,q("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(t.cachedPaddingH=l),l}function Kn(t){return Ge-t.display.nativeBarWidth}function Ki(t){return t.display.scroller.clientWidth-Kn(t)-t.display.barWidth}function Ws(t){return t.display.scroller.clientHeight-Kn(t)-t.display.barHeight}function Uc(t,i,u){var l=t.options.lineWrapping,c=l&&Ki(t);if(!i.measure.heights||l&&i.measure.width!=c){var y=i.measure.heights=[];if(l){i.measure.width=c;for(var w=i.text.firstChild.getClientRects(),O=0;O<w.length-1;O++){var R=w[O],V=w[O+1];Math.abs(R.bottom-V.bottom)>2&&y.push((R.bottom+V.top)/2-u.top)}}y.push(u.bottom-u.top)}}function Tu(t,i,u){if(t.line==i)return{map:t.measure.map,cache:t.measure.cache};if(t.rest){for(var l=0;l<t.rest.length;l++)if(t.rest[l]==i)return{map:t.measure.maps[l],cache:t.measure.caches[l]};for(var c=0;c<t.rest.length;c++)if(zt(t.rest[c])>u)return{map:t.measure.maps[c],cache:t.measure.caches[c],before:!0}}}function Wc(t,i){i=yn(i);var u=zt(i),l=t.display.externalMeasured=new js(t.doc,i,u);l.lineN=u;var c=l.built=Pi(t,l);return l.text=c.pre,pe(t.display.lineMeasure,c.pre),l}function Pu(t,i,u,l){return ti(t,ya(t,i),u,l)}function Hs(t,i){if(i>=t.display.viewFrom&&i<t.display.viewTo)return t.display.view[Zi(t,i)];var u=t.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size)return u}function ya(t,i){var u=zt(i),l=Hs(t,u);l&&!l.text?l=null:l&&l.changes&&(Au(t,l,u,Js(t)),t.curOp.forceUpdate=!0),l||(l=Wc(t,i));var c=Tu(l,i,u);return{line:i,view:l,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function ti(t,i,u,l,c){i.before&&(u=-1);var y=u+(l||""),w;return i.cache.hasOwnProperty(y)?w=i.cache[y]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(Uc(t,i.view,i.rect),i.hasHeights=!0),w=Fu(t,i,u,l),w.bogus||(i.cache[y]=w)),{left:w.left,right:w.right,top:c?w.rtop:w.top,bottom:c?w.rbottom:w.bottom}}var Iu={left:0,right:0,top:0,bottom:0};function ku(t,i,u){for(var l,c,y,w,O,R,V=0;V<t.length;V+=3)if(O=t[V],R=t[V+1],i<O?(c=0,y=1,w="left"):i<R?(c=i-O,y=c+1):(V==t.length-3||i==R&&t[V+3]>i)&&(y=R-O,c=y-1,i>=R&&(w="right")),c!=null){if(l=t[V+2],O==R&&u==(l.insertLeft?"left":"right")&&(w=u),u=="left"&&c==0)for(;V&&t[V-2]==t[V-3]&&t[V-1].insertLeft;)l=t[(V-=3)+2],w="left";if(u=="right"&&c==R-O)for(;V<t.length-3&&t[V+3]==t[V+4]&&!t[V+5].insertLeft;)l=t[(V+=3)+2],w="right";break}return{node:l,start:c,end:y,collapse:w,coverStart:O,coverEnd:R}}function Lr(t,i){var u=Iu;if(i=="left")for(var l=0;l<t.length&&(u=t[l]).left==u.right;l++);else for(var c=t.length-1;c>=0&&(u=t[c]).left==u.right;c--);return u}function Fu(t,i,u,l){var c=ku(i.map,u,l),y=c.node,w=c.start,O=c.end,R=c.collapse,V;if(y.nodeType==3){for(var oe=0;oe<4;oe++){for(;w&>(i.line.text.charAt(c.coverStart+w));)--w;for(;c.coverStart+O<c.coverEnd&>(i.line.text.charAt(c.coverStart+O));)++O;if(E&&F<9&&w==0&&O==c.coverEnd-c.coverStart?V=y.parentNode.getBoundingClientRect():V=Lr(G(y,w,O).getClientRects(),l),V.left||V.right||w==0)break;O=w,w=w-1,R="right"}E&&F<11&&(V=Xa(t.display.measure,V))}else{w>0&&(R=l="right");var ce;t.options.lineWrapping&&(ce=y.getClientRects()).length>1?V=ce[l=="right"?ce.length-1:0]:V=y.getBoundingClientRect()}if(E&&F<9&&!w&&(!V||!V.left&&!V.right)){var me=y.parentNode.getClientRects()[0];me?V={left:me.left,right:me.left+Xi(t.display),top:me.top,bottom:me.bottom}:V=Iu}for(var he=V.top-i.rect.top,Te=V.bottom-i.rect.top,Le=(he+Te)/2,ze=i.view.measure.heights,Ye=0;Ye<ze.length-1&&!(Le<ze[Ye]);Ye++);var Qe=Ye?ze[Ye-1]:0,Je=ze[Ye],qe={left:(R=="right"?V.right:V.left)-i.rect.left,right:(R=="left"?V.left:V.right)-i.rect.left,top:Qe,bottom:Je};return!V.left&&!V.right&&(qe.bogus=!0),t.options.singleCursorHeightPerLine||(qe.rtop=he,qe.rbottom=Te),qe}function Xa(t,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!mn(t))return i;var u=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*u,right:i.right*u,top:i.top*l,bottom:i.bottom*l}}function rn(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var i=0;i<t.rest.length;i++)t.measure.caches[i]={}}function Ho(t){t.display.externalMeasure=null,fe(t.display.lineMeasure);for(var i=0;i<t.display.view.length;i++)rn(t.display.view[i])}function Yi(t){Ho(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Ru(t){return Q&&L?-(t.body.getBoundingClientRect().left-parseInt(getComputedStyle(t.body).marginLeft)):t.defaultView.pageXOffset||(t.documentElement||t.body).scrollLeft}function Lu(t){return Q&&L?-(t.body.getBoundingClientRect().top-parseInt(getComputedStyle(t.body).marginTop)):t.defaultView.pageYOffset||(t.documentElement||t.body).scrollTop}function zs(t){var i=yn(t),u=i.widgets,l=0;if(u)for(var c=0;c<u.length;++c)u[c].above&&(l+=Ja(u[c]));return l}function zo(t,i,u,l,c){if(!c){var y=zs(i);u.top+=y,u.bottom+=y}if(l=="line")return u;l||(l="local");var w=qn(i);if(l=="local"?w+=Vs(t.display):w-=t.display.viewOffset,l=="page"||l=="window"){var O=t.display.lineSpace.getBoundingClientRect();w+=O.top+(l=="window"?0:Lu(_e(t)));var R=O.left+(l=="window"?0:Ru(_e(t)));u.left+=R,u.right+=R}return u.top+=w,u.bottom+=w,u}function Mu(t,i,u){if(u=="div")return i;var l=i.left,c=i.top;if(u=="page")l-=Ru(_e(t)),c-=Lu(_e(t));else if(u=="local"||!u){var y=t.display.sizer.getBoundingClientRect();l+=y.left,c+=y.top}var w=t.display.lineSpace.getBoundingClientRect();return{left:l-w.left,top:c-w.top}}function Go(t,i,u,l,c){return l||(l=ot(t.doc,i.line)),zo(t,l,Pu(t,l,i.ch,c),u)}function or(t,i,u,l,c,y){l=l||ot(t.doc,i.line),c||(c=ya(t,l));function w(Te,Le){var ze=ti(t,c,Te,Le?"right":"left",y);return Le?ze.left=ze.right:ze.right=ze.left,zo(t,l,ze,u)}var O=nt(l,t.doc.direction),R=i.ch,V=i.sticky;if(R>=l.text.length?(R=l.text.length,V="before"):R<=0&&(R=0,V="after"),!O)return w(V=="before"?R-1:R,V=="before");function oe(Te,Le,ze){var Ye=O[Le],Qe=Ye.level==1;return w(ze?Te-1:Te,Qe!=ze)}var ce=it(O,R,V),me=ct,he=oe(R,ce,V=="before");return me!=null&&(he.other=oe(R,me,V!="before")),he}function Gs(t,i){var u=0;i=st(t.doc,i),t.options.lineWrapping||(u=Xi(t.display)*i.ch);var l=ot(t.doc,i.line),c=qn(l)+Vs(t.display);return{left:u,right:u,top:c,bottom:c+l.height}}function $s(t,i,u,l,c){var y=M(t,i,u);return y.xRel=c,l&&(y.outside=l),y}function Qa(t,i,u){var l=t.doc;if(u+=t.display.viewOffset,u<0)return $s(l.first,0,null,-1,-1);var c=di(l,u),y=l.first+l.size-1;if(c>y)return $s(l.first+l.size-1,ot(l,y).text.length,null,1,1);i<0&&(i=0);for(var w=ot(l,c);;){var O=Nu(t,w,c,i,u),R=gu(w,O.ch+(O.xRel>0||O.outside>0?1:0));if(!R)return O;var V=R.find(1);if(V.line==c)return V;w=ot(l,c=V.line)}}function Ks(t,i,u,l){l-=zs(i);var c=i.text.length,y=At(function(w){return ti(t,u,w-1).bottom<=l},c,0);return c=At(function(w){return ti(t,u,w).top>l},y,c),{begin:y,end:c}}function Ys(t,i,u,l){u||(u=ya(t,i));var c=zo(t,i,ti(t,u,l),"line").top;return Ks(t,i,u,c)}function $o(t,i,u,l){return t.bottom<=u?!1:t.top>u?!0:(l?t.left:t.right)>i}function Nu(t,i,u,l,c){c-=qn(i);var y=ya(t,i),w=zs(i),O=0,R=i.text.length,V=!0,oe=nt(i,t.doc.direction);if(oe){var ce=(t.options.lineWrapping?Hc:Du)(t,i,u,y,oe,l,c);V=ce.level!=1,O=V?ce.from:ce.to-1,R=V?ce.to:ce.from-1}var me=null,he=null,Te=At(function(ht){var dt=ti(t,y,ht);return dt.top+=w,dt.bottom+=w,$o(dt,l,c,!1)?(dt.top<=c&&dt.left<=l&&(me=ht,he=dt),!0):!1},O,R),Le,ze,Ye=!1;if(he){var Qe=l-he.left<he.right-l,Je=Qe==V;Te=me+(Je?0:1),ze=Je?"after":"before",Le=Qe?he.left:he.right}else{!V&&(Te==R||Te==O)&&Te++,ze=Te==0?"after":Te==i.text.length?"before":ti(t,y,Te-(V?1:0)).bottom+w<=c==V?"after":"before";var qe=or(t,M(u,Te,ze),"line",i,y);Le=qe.left,Ye=c<qe.top?-1:c>=qe.bottom?1:0}return Te=Tt(i.text,Te,1),$s(u,Te,ze,Ye,l-Le)}function Du(t,i,u,l,c,y,w){var O=At(function(ce){var me=c[ce],he=me.level!=1;return $o(or(t,M(u,he?me.to:me.from,he?"before":"after"),"line",i,l),y,w,!0)},0,c.length-1),R=c[O];if(O>0){var V=R.level!=1,oe=or(t,M(u,V?R.from:R.to,V?"after":"before"),"line",i,l);$o(oe,y,w,!0)&&oe.top>w&&(R=c[O-1])}return R}function Hc(t,i,u,l,c,y,w){var O=Ks(t,i,l,w),R=O.begin,V=O.end;/\s/.test(i.text.charAt(V-1))&&V--;for(var oe=null,ce=null,me=0;me<c.length;me++){var he=c[me];if(!(he.from>=V||he.to<=R)){var Te=he.level!=1,Le=ti(t,l,Te?Math.min(V,he.to)-1:Math.max(R,he.from)).right,ze=Le<y?y-Le+1e9:Le-y;(!oe||ce>ze)&&(oe=he,ce=ze)}}return oe||(oe=c[c.length-1]),oe.from<R&&(oe={from:R,to:oe.to,level:oe.level}),oe.to>V&&(oe={from:oe.from,to:V,level:oe.level}),oe}var Ji;function ba(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(Ji==null){Ji=q("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Ji.appendChild(document.createTextNode("x")),Ji.appendChild(q("br"));Ji.appendChild(document.createTextNode("x"))}pe(t.measure,Ji);var u=Ji.offsetHeight/50;return u>3&&(t.cachedTextHeight=u),fe(t.measure),u||1}function Xi(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var i=q("span","xxxxxxxxxx"),u=q("pre",[i],"CodeMirror-line-like");pe(t.measure,u);var l=i.getBoundingClientRect(),c=(l.right-l.left)/10;return c>2&&(t.cachedCharWidth=c),c||10}function Js(t){for(var i=t.display,u={},l={},c=i.gutters.clientLeft,y=i.gutters.firstChild,w=0;y;y=y.nextSibling,++w){var O=t.display.gutterSpecs[w].className;u[O]=y.offsetLeft+y.clientLeft+c,l[O]=y.clientWidth}return{fixedPos:Xs(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function Xs(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Bu(t){var i=ba(t.display),u=t.options.lineWrapping,l=u&&Math.max(5,t.display.scroller.clientWidth/Xi(t.display)-3);return function(c){if(Fr(t.doc,c))return 0;var y=0;if(c.widgets)for(var w=0;w<c.widgets.length;w++)c.widgets[w].height&&(y+=c.widgets[w].height);return u?y+(Math.ceil(c.text.length/l)||1)*i:y+i}}function Ko(t){var i=t.doc,u=Bu(t);i.iter(function(l){var c=u(l);c!=l.height&&cn(l,c)})}function Qi(t,i,u,l){var c=t.display;if(!u&&Jr(i).getAttribute("cm-not-content")=="true")return null;var y,w,O=c.lineSpace.getBoundingClientRect();try{y=i.clientX-O.left,w=i.clientY-O.top}catch(ce){return null}var R=Qa(t,y,w),V;if(l&&R.xRel>0&&(V=ot(t.doc,R.line).text).length==R.ch){var oe=Ue(V,V.length,t.options.tabSize)-V.length;R=M(R.line,Math.max(0,Math.round((y-Wo(t.display).left)/Xi(t.display))-oe))}return R}function Zi(t,i){if(i>=t.display.viewTo||(i-=t.display.viewFrom,i<0))return null;for(var u=t.display.view,l=0;l<u.length;l++)if(i-=u[l].size,i<0)return l}function dn(t,i,u,l){i==null&&(i=t.doc.first),u==null&&(u=t.doc.first+t.doc.size),l||(l=0);var c=t.display;if(l&&u<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>i)&&(c.updateLineNumbers=i),t.curOp.viewChanged=!0,i>=c.viewTo)hi&&lr(t.doc,i)<c.viewTo&&Fi(t);else if(u<=c.viewFrom)hi&&bu(t.doc,u+l)>c.viewFrom?Fi(t):(c.viewFrom+=l,c.viewTo+=l);else if(i<=c.viewFrom&&u>=c.viewTo)Fi(t);else if(i<=c.viewFrom){var y=Yo(t,u,u+l,1);y?(c.view=c.view.slice(y.index),c.viewFrom=y.lineN,c.viewTo+=l):Fi(t)}else if(u>=c.viewTo){var w=Yo(t,i,i,-1);w?(c.view=c.view.slice(0,w.index),c.viewTo=w.lineN):Fi(t)}else{var O=Yo(t,i,i,-1),R=Yo(t,u,u+l,1);O&&R?(c.view=c.view.slice(0,O.index).concat(Ka(t,O.lineN,R.lineN)).concat(c.view.slice(R.index)),c.viewTo+=l):Fi(t)}var V=c.externalMeasured;V&&(u<V.lineN?V.lineN+=l:i<V.lineN+V.size&&(c.externalMeasured=null))}function ki(t,i,u){t.curOp.viewChanged=!0;var l=t.display,c=t.display.externalMeasured;if(c&&i>=c.lineN&&i<c.lineN+c.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var y=l.view[Zi(t,i)];if(y.node!=null){var w=y.changes||(y.changes=[]);Ce(w,u)==-1&&w.push(u)}}}function Fi(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function Yo(t,i,u,l){var c=Zi(t,i),y,w=t.display.view;if(!hi||u==t.doc.first+t.doc.size)return{index:c,lineN:u};for(var O=t.display.viewFrom,R=0;R<c;R++)O+=w[R].size;if(O!=i){if(l>0){if(c==w.length-1)return null;y=O+w[c].size-i,c++}else y=O-i;i+=y,u+=y}for(;lr(t.doc,u)!=u;){if(c==(l<0?0:w.length-1))return null;u+=l*w[c-(l<0?1:0)].size,c+=l}return{index:c,lineN:u}}function ju(t,i,u){var l=t.display,c=l.view;c.length==0||i>=l.viewTo||u<=l.viewFrom?(l.view=Ka(t,i,u),l.viewFrom=i):(l.viewFrom>i?l.view=Ka(t,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(Zi(t,i))),l.viewFrom=i,l.viewTo<u?l.view=l.view.concat(Ka(t,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Zi(t,u)))),l.viewTo=u}function Vu(t){for(var i=t.display.view,u=0,l=0;l<i.length;l++){var c=i[l];!c.hidden&&(!c.node||c.changes)&&++u}return u}function Za(t){t.display.input.showSelection(t.display.input.prepareSelection())}function Uu(t,i){i===void 0&&(i=!0);var u=t.doc,l={},c=l.cursors=document.createDocumentFragment(),y=l.selection=document.createDocumentFragment(),w=t.options.$customCursor;w&&(i=!0);for(var O=0;O<u.sel.ranges.length;O++)if(!(!i&&O==u.sel.primIndex)){var R=u.sel.ranges[O];if(!(R.from().line>=t.display.viewTo||R.to().line<t.display.viewFrom)){var V=R.empty();if(w){var oe=w(t,R);oe&&Qs(t,oe,c)}else(V||t.options.showCursorWhenSelecting)&&Qs(t,R.head,c);V||zc(t,R,y)}}return l}function Qs(t,i,u){var l=or(t,i,"div",null,null,!t.options.singleCursorHeightPerLine),c=u.appendChild(q("div","\xA0","CodeMirror-cursor"));if(c.style.left=l.left+"px",c.style.top=l.top+"px",c.style.height=Math.max(0,l.bottom-l.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var y=Go(t,i,"div",null,null),w=y.right-y.left;c.style.width=(w>0?w:t.defaultCharWidth())+"px"}if(l.other){var O=u.appendChild(q("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));O.style.display="",O.style.left=l.other.left+"px",O.style.top=l.other.top+"px",O.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function Jo(t,i){return t.top-i.top||t.left-i.left}function zc(t,i,u){var l=t.display,c=t.doc,y=document.createDocumentFragment(),w=Wo(t.display),O=w.left,R=Math.max(l.sizerWidth,Ki(t)-l.sizer.offsetLeft)-w.right,V=c.direction=="ltr";function oe(Je,qe,ht,dt){qe<0&&(qe=0),qe=Math.round(qe),dt=Math.round(dt),y.appendChild(q("div",null,"CodeMirror-selected","position: absolute; left: "+Je+`px;
|
|
18
|
+
top: `+qe+"px; width: "+(ht==null?R-Je:ht)+`px;
|
|
19
|
+
height: `+(dt-qe)+"px"))}function ce(Je,qe,ht){var dt=ot(c,Je),Mt=dt.text.length,tr,Tr;function wt(Ar,Hr){return Go(t,M(Je,Ar),"div",dt,Hr)}function xn(Ar,Hr,zr){var Pr=Ys(t,dt,null,Ar),Cr=Hr=="ltr"==(zr=="after")?"left":"right",gr=zr=="after"?Pr.begin:Pr.end-(/\s/.test(dt.text.charAt(Pr.end-1))?2:1);return wt(gr,Cr)[Cr]}var sn=nt(dt,c.direction);return Ot(sn,qe||0,ht==null?Mt:ht,function(Ar,Hr,zr,Pr){var Cr=zr=="ltr",gr=wt(Ar,Cr?"left":"right"),hn=wt(Hr-1,Cr?"right":"left"),Ba=qe==null&&Ar==0,Si=ht==null&&Hr==Mt,Nr=Pr==0,Mn=!sn||Pr==sn.length-1;if(hn.top-gr.top<=3){var Dr=(V?Ba:Si)&&Nr,Nl=(V?Si:Ba)&&Mn,wi=Dr?O:(Cr?gr:hn).left,ji=Nl?R:(Cr?hn:gr).right;oe(wi,gr.top,ji-wi,gr.bottom)}else{var Jn,Qr,Nn,Dl;Cr?(Jn=V&&Ba&&Nr?O:gr.left,Qr=V?R:xn(Ar,zr,"before"),Nn=V?O:xn(Hr,zr,"after"),Dl=V&&Si&&Mn?R:hn.right):(Jn=V?xn(Ar,zr,"before"):O,Qr=!V&&Ba&&Nr?R:gr.right,Nn=!V&&Si&&Mn?O:hn.left,Dl=V?xn(Hr,zr,"after"):R),oe(Jn,gr.top,Qr-Jn,gr.bottom),gr.bottom<hn.top&&oe(O,gr.bottom,null,hn.top),oe(Nn,hn.top,Dl-Nn,hn.bottom)}(!tr||Jo(gr,tr)<0)&&(tr=gr),Jo(hn,tr)<0&&(tr=hn),(!Tr||Jo(gr,Tr)<0)&&(Tr=gr),Jo(hn,Tr)<0&&(Tr=hn)}),{start:tr,end:Tr}}var me=i.from(),he=i.to();if(me.line==he.line)ce(me.line,me.ch,he.ch);else{var Te=ot(c,me.line),Le=ot(c,he.line),ze=yn(Te)==yn(Le),Ye=ce(me.line,me.ch,ze?Te.text.length+1:null).end,Qe=ce(he.line,ze?0:null,he.ch).start;ze&&(Ye.top<Qe.top-2?(oe(Ye.right,Ye.top,null,Ye.bottom),oe(O,Qe.top,Qe.left,Qe.bottom)):oe(Ye.right,Ye.top,Qe.left-Ye.right,Ye.bottom)),Ye.bottom<Qe.top&&oe(O,Ye.bottom,null,Qe.top)}u.appendChild(y)}function Xo(t){if(!!t.state.focused){var i=t.display;clearInterval(i.blinker);var u=!0;i.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?i.blinker=setInterval(function(){t.hasFocus()||_i(t),i.cursorDiv.style.visibility=(u=!u)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Zs(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||Zo(t))}function Qo(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&_i(t))},100)}function Zo(t,i){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),t.options.readOnly!="nocursor"&&(t.state.focused||(Ke(t,"focus",t,i),t.state.focused=!0,Ne(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),U&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),Xo(t))}function _i(t,i){t.state.delayingBlurEvent||(t.state.focused&&(Ke(t,"blur",t,i),t.state.focused=!1,z(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function _o(t){for(var i=t.display,u=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),c=i.lineDiv.getBoundingClientRect().top,y=0,w=0;w<i.view.length;w++){var O=i.view[w],R=t.options.lineWrapping,V=void 0,oe=0;if(!O.hidden){if(c+=O.line.height,E&&F<8){var ce=O.node.offsetTop+O.node.offsetHeight;V=ce-u,u=ce}else{var me=O.node.getBoundingClientRect();V=me.bottom-me.top,!R&&O.text.firstChild&&(oe=O.text.firstChild.getBoundingClientRect().right-me.left-1)}var he=O.line.height-V;if((he>.005||he<-.005)&&(c<l&&(y-=he),cn(O.line,V),Wu(O.line),O.rest))for(var Te=0;Te<O.rest.length;Te++)Wu(O.rest[Te]);if(oe>t.display.sizerWidth){var Le=Math.ceil(oe/Xi(t.display));Le>t.display.maxLineLength&&(t.display.maxLineLength=Le,t.display.maxLine=O.line,t.display.maxLineChanged=!0)}}}Math.abs(y)>2&&(i.scroller.scrollTop+=y)}function Wu(t){if(t.widgets)for(var i=0;i<t.widgets.length;++i){var u=t.widgets[i],l=u.node.parentNode;l&&(u.height=l.offsetHeight)}}function qo(t,i,u){var l=u&&u.top!=null?Math.max(0,u.top):t.scroller.scrollTop;l=Math.floor(l-Vs(t));var c=u&&u.bottom!=null?u.bottom:l+t.wrapper.clientHeight,y=di(i,l),w=di(i,c);if(u&&u.ensure){var O=u.ensure.from.line,R=u.ensure.to.line;O<y?(y=O,w=di(i,qn(ot(i,O))+t.wrapper.clientHeight)):Math.min(R,i.lastLine())>=w&&(y=di(i,qn(ot(i,R))-t.wrapper.clientHeight),w=R)}return{from:y,to:Math.max(w,y+1)}}function Hu(t,i){if(!at(t,"scrollCursorIntoView")){var u=t.display,l=u.sizer.getBoundingClientRect(),c=null,y=u.wrapper.ownerDocument;if(i.top+l.top<0?c=!0:i.bottom+l.top>(y.defaultView.innerHeight||y.documentElement.clientHeight)&&(c=!1),c!=null&&!P){var w=q("div","\u200B",null,`position: absolute;
|
|
20
|
+
top: `+(i.top-u.viewOffset-Vs(t.display))+`px;
|
|
21
|
+
height: `+(i.bottom-i.top+Kn(t)+u.barHeight)+`px;
|
|
22
|
+
left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");t.display.lineSpace.appendChild(w),w.scrollIntoView(c),t.display.lineSpace.removeChild(w)}}}function Gc(t,i,u,l){l==null&&(l=0);var c;!t.options.lineWrapping&&i==u&&(u=i.sticky=="before"?M(i.line,i.ch+1,"before"):i,i=i.ch?M(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var y=0;y<5;y++){var w=!1,O=or(t,i),R=!u||u==i?O:or(t,u);c={left:Math.min(O.left,R.left),top:Math.min(O.top,R.top)-l,right:Math.max(O.left,R.left),bottom:Math.max(O.bottom,R.bottom)+l};var V=_a(t,c),oe=t.doc.scrollTop,ce=t.doc.scrollLeft;if(V.scrollTop!=null&&(to(t,V.scrollTop),Math.abs(t.doc.scrollTop-oe)>1&&(w=!0)),V.scrollLeft!=null&&(qi(t,V.scrollLeft),Math.abs(t.doc.scrollLeft-ce)>1&&(w=!0)),!w)break}return c}function zu(t,i){var u=_a(t,i);u.scrollTop!=null&&to(t,u.scrollTop),u.scrollLeft!=null&&qi(t,u.scrollLeft)}function _a(t,i){var u=t.display,l=ba(t.display);i.top<0&&(i.top=0);var c=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:u.scroller.scrollTop,y=Ws(t),w={};i.bottom-i.top>y&&(i.bottom=i.top+y);var O=t.doc.height+Us(u),R=i.top<l,V=i.bottom>O-l;if(i.top<c)w.scrollTop=R?0:i.top;else if(i.bottom>c+y){var oe=Math.min(i.top,(V?O:i.bottom)-y);oe!=c&&(w.scrollTop=oe)}var ce=t.options.fixedGutter?0:u.gutters.offsetWidth,me=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:u.scroller.scrollLeft-ce,he=Ki(t)-u.gutters.offsetWidth,Te=i.right-i.left>he;return Te&&(i.right=i.left+he),i.left<10?w.scrollLeft=0:i.left<me?w.scrollLeft=Math.max(0,i.left+ce-(Te?0:10)):i.right>he+me-3&&(w.scrollLeft=i.right+(Te?0:10)-he),w}function _s(t,i){i!=null&&(eo(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+i)}function xa(t){eo(t);var i=t.getCursor();t.curOp.scrollToPos={from:i,to:i,margin:t.options.cursorScrollMargin}}function qa(t,i,u){(i!=null||u!=null)&&eo(t),i!=null&&(t.curOp.scrollLeft=i),u!=null&&(t.curOp.scrollTop=u)}function $c(t,i){eo(t),t.curOp.scrollToPos=i}function eo(t){var i=t.curOp.scrollToPos;if(i){t.curOp.scrollToPos=null;var u=Gs(t,i.from),l=Gs(t,i.to);Gu(t,u,l,i.margin)}}function Gu(t,i,u,l){var c=_a(t,{left:Math.min(i.left,u.left),top:Math.min(i.top,u.top)-l,right:Math.max(i.right,u.right),bottom:Math.max(i.bottom,u.bottom)+l});qa(t,c.scrollLeft,c.scrollTop)}function to(t,i){Math.abs(t.doc.scrollTop-i)<2||(p||tl(t,{top:i}),$u(t,i,!0),p&&tl(t),no(t,100))}function $u(t,i,u){i=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,i)),!(t.display.scroller.scrollTop==i&&!u)&&(t.doc.scrollTop=i,t.display.scrollbars.setScrollTop(i),t.display.scroller.scrollTop!=i&&(t.display.scroller.scrollTop=i))}function qi(t,i,u,l){i=Math.max(0,Math.min(i,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),!((u?i==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-i)<2)&&!l)&&(t.doc.scrollLeft=i,_u(t),t.display.scroller.scrollLeft!=i&&(t.display.scroller.scrollLeft=i),t.display.scrollbars.setScrollLeft(i))}function Sa(t){var i=t.display,u=i.gutters.offsetWidth,l=Math.round(t.doc.height+Us(t.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:t.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+Kn(t)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:u}}var ea=function(t,i,u){this.cm=u;var l=this.vert=q("div",[q("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=q("div",[q("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=c.tabIndex=-1,t(l),t(c),ue(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),ue(c,"scroll",function(){c.clientWidth&&i(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,E&&F<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ea.prototype.update=function(t){var i=t.scrollWidth>t.clientWidth+1,u=t.scrollHeight>t.clientHeight+1,l=t.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var c=t.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+c)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=t.barLeft+"px";var y=t.viewWidth-t.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+y)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:i?l:0}},ea.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ea.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ea.prototype.zeroWidthHack=function(){var t=k&&!$?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Pe,this.disableVert=new Pe},ea.prototype.enableZeroWidthBar=function(t,i,u){t.style.visibility="";function l(){var c=t.getBoundingClientRect(),y=u=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);y!=t?t.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},ea.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var ro=function(){};ro.prototype.update=function(){return{bottom:0,right:0}},ro.prototype.setScrollLeft=function(){},ro.prototype.setScrollTop=function(){},ro.prototype.clear=function(){};function wa(t,i){i||(i=Sa(t));var u=t.display.barWidth,l=t.display.barHeight;qs(t,i);for(var c=0;c<4&&u!=t.display.barWidth||l!=t.display.barHeight;c++)u!=t.display.barWidth&&t.options.lineWrapping&&_o(t),qs(t,Sa(t)),u=t.display.barWidth,l=t.display.barHeight}function qs(t,i){var u=t.display,l=u.scrollbars.update(i);u.sizer.style.paddingRight=(u.barWidth=l.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=l.bottom)+"px",u.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=l.bottom+"px",u.scrollbarFiller.style.width=l.right+"px"):u.scrollbarFiller.style.display="",l.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=l.bottom+"px",u.gutterFiller.style.width=i.gutterWidth+"px"):u.gutterFiller.style.display=""}var Ku={native:ea,null:ro};function Yu(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&z(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Ku[t.options.scrollbarStyle](function(i){t.display.wrapper.insertBefore(i,t.display.scrollbarFiller),ue(i,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,u){u=="horizontal"?qi(t,i):to(t,i)},t),t.display.scrollbars.addClass&&Ne(t.display.wrapper,t.display.scrollbars.addClass)}var Kc=0;function Ri(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Kc,markArrays:null},Nc(t.curOp)}function mi(t){var i=t.curOp;i&&Dc(i,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;Li(u)})}function Li(t){for(var i=t.ops,u=0;u<i.length;u++)es(i[u]);for(var l=0;l<i.length;l++)Ju(i[l]);for(var c=0;c<i.length;c++)Xu(i[c]);for(var y=0;y<i.length;y++)ts(i[y]);for(var w=0;w<i.length;w++)el(i[w])}function es(t){var i=t.cm,u=i.display;Zu(i),t.updateMaxLine&&vi(i),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<u.viewFrom||t.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&i.options.lineWrapping,t.update=t.mustUpdate&&new io(i,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Ju(t){t.updatedDisplay=t.mustUpdate&&an(t.cm,t.update)}function Xu(t){var i=t.cm,u=i.display;t.updatedDisplay&&_o(i),t.barMeasure=Sa(i),u.maxLineChanged&&!i.options.lineWrapping&&(t.adjustWidthTo=Pu(i,u.maxLine,u.maxLine.text.length).left+3,i.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+t.adjustWidthTo+Kn(i)+i.display.barWidth),t.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+t.adjustWidthTo-Ki(i))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=u.input.prepareSelection())}function ts(t){var i=t.cm;t.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<i.doc.scrollLeft&&qi(i,Math.min(i.display.scroller.scrollLeft,t.maxScrollLeft),!0),i.display.maxLineChanged=!1);var u=t.focus&&t.focus==Ie(_e(i));t.preparedSelection&&i.display.input.showSelection(t.preparedSelection,u),(t.updatedDisplay||t.startHeight!=i.doc.height)&&wa(i,t.barMeasure),t.updatedDisplay&&rs(i,t.barMeasure),t.selectionChanged&&Xo(i),i.state.focused&&t.updateInput&&i.display.input.reset(t.typing),u&&Zs(t.cm)}function el(t){var i=t.cm,u=i.display,l=i.doc;if(t.updatedDisplay&&ra(i,t.update),u.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),t.scrollTop!=null&&$u(i,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&qi(i,t.scrollLeft,!0,!0),t.scrollToPos){var c=Gc(i,st(l,t.scrollToPos.from),st(l,t.scrollToPos.to),t.scrollToPos.margin);Hu(i,c)}var y=t.maybeHiddenMarkers,w=t.maybeUnhiddenMarkers;if(y)for(var O=0;O<y.length;++O)y[O].lines.length||Ke(y[O],"hide");if(w)for(var R=0;R<w.length;++R)w[R].lines.length&&Ke(w[R],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),t.changeObjs&&Ke(i,"changes",i,t.changeObjs),t.update&&t.update.finish()}function bn(t,i){if(t.curOp)return i();Ri(t);try{return i()}finally{mi(t)}}function Or(t,i){return function(){if(t.curOp)return i.apply(t,arguments);Ri(t);try{return i.apply(t,arguments)}finally{mi(t)}}}function nn(t){return function(){if(this.curOp)return t.apply(this,arguments);Ri(this);try{return t.apply(this,arguments)}finally{mi(this)}}}function Mr(t){return function(){var i=this.cm;if(!i||i.curOp)return t.apply(this,arguments);Ri(i);try{return t.apply(this,arguments)}finally{mi(i)}}}function no(t,i){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(i,De(Qu,t))}function Qu(t){var i=t.doc;if(!(i.highlightFrontier>=t.display.viewTo)){var u=+new Date+t.options.workTime,l=za(t,i.highlightFrontier),c=[];i.iter(l.line,Math.min(i.first+i.size,t.display.viewTo+500),function(y){if(l.line>=t.display.viewFrom){var w=y.styles,O=y.text.length>t.options.maxHighlightLength?kn(i.mode,l.state):null,R=uu(t,y,l,!0);O&&(l.state=O),y.styles=R.styles;var V=y.styleClasses,oe=R.classes;oe?y.styleClasses=oe:V&&(y.styleClasses=null);for(var ce=!w||w.length!=y.styles.length||V!=oe&&(!V||!oe||V.bgClass!=oe.bgClass||V.textClass!=oe.textClass),me=0;!ce&&me<w.length;++me)ce=w[me]!=y.styles[me];ce&&c.push(l.line),y.stateAfter=l.save(),l.nextLine()}else y.text.length<=t.options.maxHighlightLength&&jo(t,y.text,l),y.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return no(t,t.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),c.length&&bn(t,function(){for(var y=0;y<c.length;y++)ki(t,c[y],"text")})}}var io=function(t,i,u){var l=t.display;this.viewport=i,this.visible=qo(l,t.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Ki(t),this.force=u,this.dims=Js(t),this.events=[]};io.prototype.signal=function(t,i){Rt(t,i)&&this.events.push(arguments)},io.prototype.finish=function(){for(var t=0;t<this.events.length;t++)Ke.apply(null,this.events[t])};function Zu(t){var i=t.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Kn(t)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Kn(t)+"px",i.scrollbarsClipped=!0)}function ri(t){if(t.hasFocus())return null;var i=Ie(_e(t));if(!i||!ve(t.display.lineDiv,i))return null;var u={activeElt:i};if(window.getSelection){var l=mt(t).getSelection();l.anchorNode&&l.extend&&ve(t.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function ta(t){if(!(!t||!t.activeElt||t.activeElt==Ie(t.activeElt.ownerDocument))&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&ve(document.body,t.anchorNode)&&ve(document.body,t.focusNode))){var i=t.activeElt.ownerDocument,u=i.defaultView.getSelection(),l=i.createRange();l.setEnd(t.anchorNode,t.anchorOffset),l.collapse(!1),u.removeAllRanges(),u.addRange(l),u.extend(t.focusNode,t.focusOffset)}}function an(t,i){var u=t.display,l=t.doc;if(i.editorIsHidden)return Fi(t),!1;if(!i.force&&i.visible.from>=u.viewFrom&&i.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&Vu(t)==0)return!1;nl(t)&&(Fi(t),i.dims=Js(t));var c=l.first+l.size,y=Math.max(i.visible.from-t.options.viewportMargin,l.first),w=Math.min(c,i.visible.to+t.options.viewportMargin);u.viewFrom<y&&y-u.viewFrom<20&&(y=Math.max(l.first,u.viewFrom)),u.viewTo>w&&u.viewTo-w<20&&(w=Math.min(c,u.viewTo)),hi&&(y=lr(t.doc,y),w=bu(t.doc,w));var O=y!=u.viewFrom||w!=u.viewTo||u.lastWrapHeight!=i.wrapperHeight||u.lastWrapWidth!=i.wrapperWidth;ju(t,y,w),u.viewOffset=qn(ot(t.doc,u.viewFrom)),t.display.mover.style.top=u.viewOffset+"px";var R=Vu(t);if(!O&&R==0&&!i.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var V=ri(t);return R>4&&(u.lineDiv.style.display="none"),Yc(t,u.updateLineNumbers,i.dims),R>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,ta(V),fe(u.cursorDiv),fe(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,O&&(u.lastWrapHeight=i.wrapperHeight,u.lastWrapWidth=i.wrapperWidth,no(t,400)),u.updateLineNumbers=null,!0}function ra(t,i){for(var u=i.viewport,l=!0;;l=!1){if(!l||!t.options.lineWrapping||i.oldDisplayWidth==Ki(t)){if(u&&u.top!=null&&(u={top:Math.min(t.doc.height+Us(t.display)-Ws(t),u.top)}),i.visible=qo(t.display,t.doc,u),i.visible.from>=t.display.viewFrom&&i.visible.to<=t.display.viewTo)break}else l&&(i.visible=qo(t.display,t.doc,u));if(!an(t,i))break;_o(t);var c=Sa(t);Za(t),wa(t,c),rs(t,c),i.force=!1}i.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(i.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function tl(t,i){var u=new io(t,i);if(an(t,u)){_o(t),ra(t,u);var l=Sa(t);Za(t),wa(t,l),rs(t,l),u.finish()}}function Yc(t,i,u){var l=t.display,c=t.options.lineNumbers,y=l.lineDiv,w=y.firstChild;function O(Te){var Le=Te.nextSibling;return U&&k&&t.display.currentWheelTarget==Te?Te.style.display="none":Te.parentNode.removeChild(Te),Le}for(var R=l.view,V=l.viewFrom,oe=0;oe<R.length;oe++){var ce=R[oe];if(!ce.hidden)if(!ce.node||ce.node.parentNode!=y){var me=Vc(t,ce,V,u);y.insertBefore(me,w)}else{for(;w!=ce.node;)w=O(w);var he=c&&i!=null&&i<=V&&ce.lineNumber;ce.changes&&(Ce(ce.changes,"gutter")>-1&&(he=!1),Au(t,ce,V,u)),he&&(fe(ce.lineNumber),ce.lineNumber.appendChild(document.createTextNode(pi(t.options,V)))),w=ce.node.nextSibling}V+=ce.size}for(;w;)w=O(w)}function rl(t){var i=t.gutters.offsetWidth;t.sizer.style.marginLeft=i+"px",Rr(t,"gutterChanged",t)}function rs(t,i){t.display.sizer.style.minHeight=i.docHeight+"px",t.display.heightForcer.style.top=i.docHeight+"px",t.display.gutters.style.height=i.docHeight+t.display.barHeight+Kn(t)+"px"}function _u(t){var i=t.display,u=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!t.options.fixedGutter))){for(var l=Xs(i)-i.scroller.scrollLeft+t.doc.scrollLeft,c=i.gutters.offsetWidth,y=l+"px",w=0;w<u.length;w++)if(!u[w].hidden){t.options.fixedGutter&&(u[w].gutter&&(u[w].gutter.style.left=y),u[w].gutterBackground&&(u[w].gutterBackground.style.left=y));var O=u[w].alignable;if(O)for(var R=0;R<O.length;R++)O[R].style.left=y}t.options.fixedGutter&&(i.gutters.style.left=l+c+"px")}}function nl(t){if(!t.options.lineNumbers)return!1;var i=t.doc,u=pi(t.options,i.first+i.size-1),l=t.display;if(u.length!=l.lineNumChars){var c=l.measure.appendChild(q("div",[q("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),y=c.firstChild.offsetWidth,w=c.offsetWidth-y;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(y,l.lineGutter.offsetWidth-w)+1,l.lineNumWidth=l.lineNumInnerWidth+w,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",rl(t.display),!0}return!1}function ns(t,i){for(var u=[],l=!1,c=0;c<t.length;c++){var y=t[c],w=null;if(typeof y!="string"&&(w=y.style,y=y.className),y=="CodeMirror-linenumbers")if(i)l=!0;else continue;u.push({className:y,style:w})}return i&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function na(t){var i=t.gutters,u=t.gutterSpecs;fe(i),t.lineGutter=null;for(var l=0;l<u.length;++l){var c=u[l],y=c.className,w=c.style,O=i.appendChild(q("div",null,"CodeMirror-gutter "+y));w&&(O.style.cssText=w),y=="CodeMirror-linenumbers"&&(t.lineGutter=O,O.style.width=(t.lineNumWidth||1)+"px")}i.style.display=u.length?"":"none",rl(t)}function ao(t){na(t.display),dn(t),_u(t)}function qu(t,i,u,l){var c=this;this.input=u,c.scrollbarFiller=q("div",null,"CodeMirror-scrollbar-filler"),c.scrollbarFiller.setAttribute("cm-not-content","true"),c.gutterFiller=q("div",null,"CodeMirror-gutter-filler"),c.gutterFiller.setAttribute("cm-not-content","true"),c.lineDiv=Z("div",null,"CodeMirror-code"),c.selectionDiv=q("div",null,null,"position: relative; z-index: 1"),c.cursorDiv=q("div",null,"CodeMirror-cursors"),c.measure=q("div",null,"CodeMirror-measure"),c.lineMeasure=q("div",null,"CodeMirror-measure"),c.lineSpace=Z("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var y=Z("div",[c.lineSpace],"CodeMirror-lines");c.mover=q("div",[y],null,"position: relative"),c.sizer=q("div",[c.mover],"CodeMirror-sizer"),c.sizerWidth=null,c.heightForcer=q("div",null,null,"position: absolute; height: "+Ge+"px; width: 1px;"),c.gutters=q("div",null,"CodeMirror-gutters"),c.lineGutter=null,c.scroller=q("div",[c.sizer,c.heightForcer,c.gutters],"CodeMirror-scroll"),c.scroller.setAttribute("tabIndex","-1"),c.wrapper=q("div",[c.scrollbarFiller,c.gutterFiller,c.scroller],"CodeMirror"),Q&&le>=105&&(c.wrapper.style.clipPath="inset(0px)"),c.wrapper.setAttribute("translate","no"),E&&F<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!U&&!(p&&C)&&(c.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(c.wrapper):t(c.wrapper)),c.viewFrom=c.viewTo=i.first,c.reportedViewFrom=c.reportedViewTo=i.first,c.view=[],c.renderedView=null,c.externalMeasured=null,c.viewOffset=0,c.lastWrapHeight=c.lastWrapWidth=0,c.updateLineNumbers=null,c.nativeBarWidth=c.barHeight=c.barWidth=0,c.scrollbarsClipped=!1,c.lineNumWidth=c.lineNumInnerWidth=c.lineNumChars=null,c.alignWidgets=!1,c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.maxLine=null,c.maxLineLength=0,c.maxLineChanged=!1,c.wheelDX=c.wheelDY=c.wheelStartX=c.wheelStartY=null,c.shift=!1,c.selForContextMenu=null,c.activeTouch=null,c.gutterSpecs=ns(l.gutters,l.lineNumbers),na(c),u.init(c)}var pt=0,Rn=null;E?Rn=-.53:p?Rn=15:Q?Rn=-.7:ne&&(Rn=-1/3);function il(t){var i=t.wheelDeltaX,u=t.wheelDeltaY;return i==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(i=t.detail),u==null&&t.detail&&t.axis==t.VERTICAL_AXIS?u=t.detail:u==null&&(u=t.wheelDelta),{x:i,y:u}}function Mi(t){var i=il(t);return i.x*=Rn,i.y*=Rn,i}function al(t,i){Q&&le==102&&(t.display.chromeScrollHack==null?t.display.sizer.style.pointerEvents="none":clearTimeout(t.display.chromeScrollHack),t.display.chromeScrollHack=setTimeout(function(){t.display.chromeScrollHack=null,t.display.sizer.style.pointerEvents=""},100));var u=il(i),l=u.x,c=u.y,y=Rn;i.deltaMode===0&&(l=i.deltaX,c=i.deltaY,y=1);var w=t.display,O=w.scroller,R=O.scrollWidth>O.clientWidth,V=O.scrollHeight>O.clientHeight;if(!!(l&&R||c&&V)){if(c&&k&&U){e:for(var oe=i.target,ce=w.view;oe!=O;oe=oe.parentNode)for(var me=0;me<ce.length;me++)if(ce[me].node==oe){t.display.currentWheelTarget=oe;break e}}if(l&&!p&&!K&&y!=null){c&&V&&to(t,Math.max(0,O.scrollTop+c*y)),qi(t,Math.max(0,O.scrollLeft+l*y)),(!c||c&&V)&&Lt(i),w.wheelStartX=null;return}if(c&&y!=null){var he=c*y,Te=t.doc.scrollTop,Le=Te+w.wrapper.clientHeight;he<0?Te=Math.max(0,Te+he-50):Le=Math.min(t.doc.height,Le+he+50),tl(t,{top:Te,bottom:Le})}pt<20&&i.deltaMode!==0&&(w.wheelStartX==null?(w.wheelStartX=O.scrollLeft,w.wheelStartY=O.scrollTop,w.wheelDX=l,w.wheelDY=c,setTimeout(function(){if(w.wheelStartX!=null){var ze=O.scrollLeft-w.wheelStartX,Ye=O.scrollTop-w.wheelStartY,Qe=Ye&&w.wheelDY&&Ye/w.wheelDY||ze&&w.wheelDX&&ze/w.wheelDX;w.wheelStartX=w.wheelStartY=null,Qe&&(Rn=(Rn*pt+Qe)/(pt+1),++pt)}},200)):(w.wheelDX+=l,w.wheelDY+=c))}}var Ur=function(t,i){this.ranges=t,this.primIndex=i};Ur.prototype.primary=function(){return this.ranges[this.primIndex]},Ur.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var u=this.ranges[i],l=t.ranges[i];if(!Fe(u.anchor,l.anchor)||!Fe(u.head,l.head))return!1}return!0},Ur.prototype.deepCopy=function(){for(var t=[],i=0;i<this.ranges.length;i++)t[i]=new Vt(He(this.ranges[i].anchor),He(this.ranges[i].head));return new Ur(t,this.primIndex)},Ur.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},Ur.prototype.contains=function(t,i){i||(i=t);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(ae(i,l.from())>=0&&ae(t,l.to())<=0)return u}return-1};var Vt=function(t,i){this.anchor=t,this.head=i};Vt.prototype.from=function(){return Nt(this.anchor,this.head)},Vt.prototype.to=function(){return St(this.anchor,this.head)},Vt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function qt(t,i,u){var l=t&&t.options.selectionsMayTouch,c=i[u];i.sort(function(me,he){return ae(me.from(),he.from())}),u=Ce(i,c);for(var y=1;y<i.length;y++){var w=i[y],O=i[y-1],R=ae(O.to(),w.from());if(l&&!w.empty()?R>0:R>=0){var V=Nt(O.from(),w.from()),oe=St(O.to(),w.to()),ce=O.empty()?w.from()==w.head:O.from()==O.head;y<=u&&--u,i.splice(--y,2,new Vt(ce?oe:V,ce?V:oe))}}return new Ur(i,u)}function Yn(t,i){return new Ur([new Vt(t,i||t)],0)}function ni(t){return t.text?M(t.from.line+t.text.length-1,lt(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function ef(t,i){if(ae(t,i.from)<0)return t;if(ae(t,i.to)<=0)return ni(i);var u=t.line+i.text.length-(i.to.line-i.from.line)-1,l=t.ch;return t.line==i.to.line&&(l+=ni(i).ch-i.to.ch),M(u,l)}function ol(t,i){for(var u=[],l=0;l<t.sel.ranges.length;l++){var c=t.sel.ranges[l];u.push(new Vt(ef(c.anchor,i),ef(c.head,i)))}return qt(t.cm,u,t.sel.primIndex)}function tf(t,i,u){return t.line==i.line?M(u.line,t.ch-i.ch+u.ch):M(u.line+(t.line-i.line),t.ch)}function Jc(t,i,u){for(var l=[],c=M(t.first,0),y=c,w=0;w<i.length;w++){var O=i[w],R=tf(O.from,c,y),V=tf(ni(O),c,y);if(c=O.to,y=V,u=="around"){var oe=t.sel.ranges[w],ce=ae(oe.head,oe.anchor)<0;l[w]=new Vt(ce?V:R,ce?R:V)}else l[w]=new Vt(R,R)}return new Ur(l,t.sel.primIndex)}function sl(t){t.doc.mode=fn(t.options,t.doc.modeOption),Aa(t)}function Aa(t){t.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,no(t,100),t.state.modeGen++,t.curOp&&dn(t)}function rf(t,i){return i.from.ch==0&&i.to.ch==0&<(i.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function ll(t,i,u,l){function c(Qe){return u?u[Qe]:null}function y(Qe,Je,qe){Ds(Qe,Je,qe,l),Rr(Qe,"change",Qe,i)}function w(Qe,Je){for(var qe=[],ht=Qe;ht<Je;++ht)qe.push(new Ti(V[ht],c(ht),l));return qe}var O=i.from,R=i.to,V=i.text,oe=ot(t,O.line),ce=ot(t,R.line),me=lt(V),he=c(V.length-1),Te=R.line-O.line;if(i.full)t.insert(0,w(0,V.length)),t.remove(V.length,t.size-V.length);else if(rf(t,i)){var Le=w(0,V.length-1);y(ce,ce.text,he),Te&&t.remove(O.line,Te),Le.length&&t.insert(O.line,Le)}else if(oe==ce)if(V.length==1)y(oe,oe.text.slice(0,O.ch)+me+oe.text.slice(R.ch),he);else{var ze=w(1,V.length-1);ze.push(new Ti(me+oe.text.slice(R.ch),he,l)),y(oe,oe.text.slice(0,O.ch)+V[0],c(0)),t.insert(O.line+1,ze)}else if(V.length==1)y(oe,oe.text.slice(0,O.ch)+V[0]+ce.text.slice(R.ch),c(0)),t.remove(O.line+1,Te);else{y(oe,oe.text.slice(0,O.ch)+V[0],c(0)),y(ce,me+ce.text.slice(R.ch),he);var Ye=w(1,V.length-1);Te>1&&t.remove(O.line+1,Te-1),t.insert(O.line+1,Ye)}Rr(t,"change",t,i)}function Ni(t,i,u){function l(c,y,w){if(c.linked)for(var O=0;O<c.linked.length;++O){var R=c.linked[O];if(R.doc!=y){var V=w&&R.sharedHist;u&&!V||(i(R.doc,V),l(R.doc,c,V))}}}l(t,null,!0)}function nf(t,i){if(i.cm)throw new Error("This document is already in use.");t.doc=i,i.cm=t,Ko(t),sl(t),ia(t),t.options.direction=i.direction,t.options.lineWrapping||vi(t),t.options.mode=i.modeOption,dn(t)}function ia(t){(t.doc.direction=="rtl"?Ne:z)(t.display.lineDiv,"CodeMirror-rtl")}function Xc(t){bn(t,function(){ia(t),dn(t)})}function oo(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function ul(t,i){var u={from:He(i.from),to:ni(i),text:ci(t,i.from,i.to)};return is(t,u,i.from.line,i.to.line+1),Ni(t,function(l){return is(l,u,i.from.line,i.to.line+1)},!0),u}function af(t){for(;t.length;){var i=lt(t);if(i.ranges)t.pop();else break}}function Qc(t,i){if(i)return af(t.done),lt(t.done);if(t.done.length&&!lt(t.done).ranges)return lt(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),lt(t.done)}function of(t,i,u,l){var c=t.history;c.undone.length=0;var y=+new Date,w,O;if((c.lastOp==l||c.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&c.lastModTime>y-(t.cm?t.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(w=Qc(c,c.lastOp==l)))O=lt(w.changes),ae(i.from,i.to)==0&&ae(i.from,O.to)==0?O.to=ni(i):w.changes.push(ul(t,i));else{var R=lt(c.done);for((!R||!R.ranges)&&so(t.sel,c.done),w={changes:[ul(t,i)],generation:c.generation},c.done.push(w);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(u),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=y,c.lastOp=c.lastSelOp=l,c.lastOrigin=c.lastSelOrigin=i.origin,O||Ke(t,"historyAdded")}function sf(t,i,u,l){var c=i.charAt(0);return c=="*"||c=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function lf(t,i,u,l){var c=t.history,y=l&&l.origin;u==c.lastSelOp||y&&c.lastSelOrigin==y&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==y||sf(t,y,lt(c.done),i))?c.done[c.done.length-1]=i:so(i,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=y,c.lastSelOp=u,l&&l.clearRedo!==!1&&af(c.undone)}function so(t,i){var u=lt(i);u&&u.ranges&&u.equals(t)||i.push(t)}function is(t,i,u,l){var c=i["spans_"+t.id],y=0;t.iter(Math.max(t.first,u),Math.min(t.first+t.size,l),function(w){w.markedSpans&&((c||(c=i["spans_"+t.id]={}))[y]=w.markedSpans),++y})}function Zc(t){if(!t)return null;for(var i,u=0;u<t.length;++u)t[u].marker.explicitlyCleared?i||(i=t.slice(0,u)):i&&i.push(t[u]);return i?i.length?i:null:t}function lo(t,i){var u=i["spans_"+t.id];if(!u)return null;for(var l=[],c=0;c<i.text.length;++c)l.push(Zc(u[c]));return l}function uf(t,i){var u=lo(t,i),l=Ls(t,i);if(!u)return l;if(!l)return u;for(var c=0;c<u.length;++c){var y=u[c],w=l[c];if(y&&w){e:for(var O=0;O<w.length;++O){for(var R=w[O],V=0;V<y.length;++V)if(y[V].marker==R.marker)continue e;y.push(R)}}else w&&(u[c]=w)}return u}function Ca(t,i,u){for(var l=[],c=0;c<t.length;++c){var y=t[c];if(y.ranges){l.push(u?Ur.prototype.deepCopy.call(y):y);continue}var w=y.changes,O=[];l.push({changes:O});for(var R=0;R<w.length;++R){var V=w[R],oe=void 0;if(O.push({from:V.from,to:V.to,text:V.text}),i)for(var ce in V)(oe=ce.match(/^spans_(\d+)$/))&&Ce(i,Number(oe[1]))>-1&&(lt(O)[ce]=V[ce],delete V[ce])}}return l}function fl(t,i,u,l){if(l){var c=t.anchor;if(u){var y=ae(i,c)<0;y!=ae(u,c)<0?(c=i,i=u):y!=ae(i,u)<0&&(i=u)}return new Vt(c,i)}else return new Vt(u||i,i)}function as(t,i,u,l,c){c==null&&(c=t.cm&&(t.cm.display.shift||t.extend)),Wr(t,new Ur([fl(t.sel.primary(),i,u,c)],0),l)}function os(t,i,u){for(var l=[],c=t.cm&&(t.cm.display.shift||t.extend),y=0;y<t.sel.ranges.length;y++)l[y]=fl(t.sel.ranges[y],i[y],null,c);var w=qt(t.cm,l,t.sel.primIndex);Wr(t,w,u)}function cl(t,i,u,l){var c=t.sel.ranges.slice(0);c[i]=u,Wr(t,qt(t.cm,c,t.sel.primIndex),l)}function ff(t,i,u,l){Wr(t,Yn(i,u),l)}function _c(t,i,u){var l={ranges:i.ranges,update:function(c){this.ranges=[];for(var y=0;y<c.length;y++)this.ranges[y]=new Vt(st(t,c[y].anchor),st(t,c[y].head))},origin:u&&u.origin};return Ke(t,"beforeSelectionChange",t,l),t.cm&&Ke(t.cm,"beforeSelectionChange",t.cm,l),l.ranges!=i.ranges?qt(t.cm,l.ranges,l.ranges.length-1):i}function cf(t,i,u){var l=t.history.done,c=lt(l);c&&c.ranges?(l[l.length-1]=i,ss(t,i,u)):Wr(t,i,u)}function Wr(t,i,u){ss(t,i,u),lf(t,t.sel,t.cm?t.cm.curOp.id:NaN,u)}function ss(t,i,u){(Rt(t,"beforeSelectionChange")||t.cm&&Rt(t.cm,"beforeSelectionChange"))&&(i=_c(t,i,u));var l=u&&u.bias||(ae(i.primary().head,t.sel.primary().head)<0?-1:1);uo(t,pf(t,i,l,!0)),!(u&&u.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&xa(t.cm)}function uo(t,i){i.equals(t.sel)||(t.sel=i,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,bt(t.cm)),Rr(t,"cursorActivity",t))}function df(t){uo(t,pf(t,t.sel,null,!1))}function pf(t,i,u,l){for(var c,y=0;y<i.ranges.length;y++){var w=i.ranges[y],O=i.ranges.length==t.sel.ranges.length&&t.sel.ranges[y],R=ls(t,w.anchor,O&&O.anchor,u,l),V=w.head==w.anchor?R:ls(t,w.head,O&&O.head,u,l);(c||R!=w.anchor||V!=w.head)&&(c||(c=i.ranges.slice(0,y)),c[y]=new Vt(R,V))}return c?qt(t.cm,c,i.primIndex):i}function Ea(t,i,u,l,c){var y=ot(t,i.line);if(y.markedSpans)for(var w=0;w<y.markedSpans.length;++w){var O=y.markedSpans[w],R=O.marker,V="selectLeft"in R?!R.selectLeft:R.inclusiveLeft,oe="selectRight"in R?!R.selectRight:R.inclusiveRight;if((O.from==null||(V?O.from<=i.ch:O.from<i.ch))&&(O.to==null||(oe?O.to>=i.ch:O.to>i.ch))){if(c&&(Ke(R,"beforeCursorEnter"),R.explicitlyCleared))if(y.markedSpans){--w;continue}else break;if(!R.atomic)continue;if(u){var ce=R.find(l<0?1:-1),me=void 0;if((l<0?oe:V)&&(ce=dl(t,ce,-l,ce&&ce.line==i.line?y:null)),ce&&ce.line==i.line&&(me=ae(ce,u))&&(l<0?me<0:me>0))return Ea(t,ce,i,l,c)}var he=R.find(l<0?-1:1);return(l<0?V:oe)&&(he=dl(t,he,l,he.line==i.line?y:null)),he?Ea(t,he,i,l,c):null}}return i}function ls(t,i,u,l,c){var y=l||1,w=Ea(t,i,u,y,c)||!c&&Ea(t,i,u,y,!0)||Ea(t,i,u,-y,c)||!c&&Ea(t,i,u,-y,!0);return w||(t.cantEdit=!0,M(t.first,0))}function dl(t,i,u,l){return u<0&&i.ch==0?i.line>t.first?st(t,M(i.line-1)):null:u>0&&i.ch==(l||ot(t,i.line)).text.length?i.line<t.first+t.size-1?M(i.line+1,0):null:new M(i.line,i.ch+u)}function pl(t){t.setSelection(M(t.firstLine(),0),M(t.lastLine()),$e)}function hf(t,i,u){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return u&&(l.update=function(c,y,w,O){c&&(l.from=st(t,c)),y&&(l.to=st(t,y)),w&&(l.text=w),O!==void 0&&(l.origin=O)}),Ke(t,"beforeChange",t,l),t.cm&&Ke(t.cm,"beforeChange",t.cm,l),l.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function aa(t,i,u){if(t.cm){if(!t.cm.curOp)return Or(t.cm,aa)(t,i,u);if(t.cm.state.suppressEdits)return}if(!((Rt(t,"beforeChange")||t.cm&&Rt(t.cm,"beforeChange"))&&(i=hf(t,i,!0),!i))){var l=pu&&!u&&bp(t,i.from,i.to);if(l)for(var c=l.length-1;c>=0;--c)vf(t,{from:l[c].from,to:l[c].to,text:c?[""]:i.text,origin:i.origin});else vf(t,i)}}function vf(t,i){if(!(i.text.length==1&&i.text[0]==""&&ae(i.from,i.to)==0)){var u=ol(t,i);of(t,i,u,t.cm?t.cm.curOp.id:NaN),co(t,i,u,Ls(t,i));var l=[];Ni(t,function(c,y){!y&&Ce(l,c.history)==-1&&(Ta(c.history,i),l.push(c.history)),co(c,i,null,Ls(c,i))})}}function fo(t,i,u){var l=t.cm&&t.cm.state.suppressEdits;if(!(l&&!u)){for(var c=t.history,y,w=t.sel,O=i=="undo"?c.done:c.undone,R=i=="undo"?c.undone:c.done,V=0;V<O.length&&(y=O[V],!(u?y.ranges&&!y.equals(t.sel):!y.ranges));V++);if(V!=O.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(y=O.pop(),y.ranges){if(so(y,R),u&&!y.equals(t.sel)){Wr(t,y,{clearRedo:!1});return}w=y}else if(l){O.push(y);return}else break;var oe=[];so(w,R),R.push({changes:oe,generation:c.generation}),c.generation=y.generation||++c.maxGeneration;for(var ce=Rt(t,"beforeChange")||t.cm&&Rt(t.cm,"beforeChange"),me=function(Le){var ze=y.changes[Le];if(ze.origin=i,ce&&!hf(t,ze,!1))return O.length=0,{};oe.push(ul(t,ze));var Ye=Le?ol(t,ze):lt(O);co(t,ze,Ye,uf(t,ze)),!Le&&t.cm&&t.cm.scrollIntoView({from:ze.from,to:ni(ze)});var Qe=[];Ni(t,function(Je,qe){!qe&&Ce(Qe,Je.history)==-1&&(Ta(Je.history,ze),Qe.push(Je.history)),co(Je,ze,null,uf(Je,ze))})},he=y.changes.length-1;he>=0;--he){var Te=me(he);if(Te)return Te.v}}}}function Xr(t,i){if(i!=0&&(t.first+=i,t.sel=new Ur(xt(t.sel.ranges,function(c){return new Vt(M(c.anchor.line+i,c.anchor.ch),M(c.head.line+i,c.head.ch))}),t.sel.primIndex),t.cm)){dn(t.cm,t.first,t.first-i,i);for(var u=t.cm.display,l=u.viewFrom;l<u.viewTo;l++)ki(t.cm,l,"gutter")}}function co(t,i,u,l){if(t.cm&&!t.cm.curOp)return Or(t.cm,co)(t,i,u,l);if(i.to.line<t.first){Xr(t,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>t.lastLine())){if(i.from.line<t.first){var c=i.text.length-1-(t.first-i.from.line);Xr(t,c),i={from:M(t.first,0),to:M(i.to.line+c,i.to.ch),text:[lt(i.text)],origin:i.origin}}var y=t.lastLine();i.to.line>y&&(i={from:i.from,to:M(y,ot(t,y).text.length),text:[i.text[0]],origin:i.origin}),i.removed=ci(t,i.from,i.to),u||(u=ol(t,i)),t.cm?qc(t.cm,i,l):ll(t,i,l),ss(t,u,$e),t.cantEdit&&ls(t,M(t.firstLine(),0))&&(t.cantEdit=!1)}}function qc(t,i,u){var l=t.doc,c=t.display,y=i.from,w=i.to,O=!1,R=y.line;t.options.lineWrapping||(R=zt(yn(ot(l,y.line))),l.iter(R,w.line+1,function(he){if(he==c.maxLine)return O=!0,!0})),l.sel.contains(i.from,i.to)>-1&&bt(t),ll(l,i,u,Bu(t)),t.options.lineWrapping||(l.iter(R,y.line+i.text.length,function(he){var Te=Gn(he);Te>c.maxLineLength&&(c.maxLine=he,c.maxLineLength=Te,c.maxLineChanged=!0,O=!1)}),O&&(t.curOp.updateMaxLine=!0)),Ac(l,y.line),no(t,400);var V=i.text.length-(w.line-y.line)-1;i.full?dn(t):y.line==w.line&&i.text.length==1&&!rf(t.doc,i)?ki(t,y.line,"text"):dn(t,y.line,w.line+1,V);var oe=Rt(t,"changes"),ce=Rt(t,"change");if(ce||oe){var me={from:y,to:w,text:i.text,removed:i.removed,origin:i.origin};ce&&Rr(t,"change",t,me),oe&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(me)}t.display.selForContextMenu=null}function Oa(t,i,u,l,c){var y;l||(l=u),ae(l,u)<0&&(y=[l,u],u=y[0],l=y[1]),typeof i=="string"&&(i=t.splitLines(i)),aa(t,{from:u,to:l,text:i,origin:c})}function gf(t,i,u,l){u<t.line?t.line+=l:i<t.line&&(t.line=i,t.ch=0)}function mf(t,i,u,l){for(var c=0;c<t.length;++c){var y=t[c],w=!0;if(y.ranges){y.copied||(y=t[c]=y.deepCopy(),y.copied=!0);for(var O=0;O<y.ranges.length;O++)gf(y.ranges[O].anchor,i,u,l),gf(y.ranges[O].head,i,u,l);continue}for(var R=0;R<y.changes.length;++R){var V=y.changes[R];if(u<V.from.line)V.from=M(V.from.line+l,V.from.ch),V.to=M(V.to.line+l,V.to.ch);else if(i<=V.to.line){w=!1;break}}w||(t.splice(0,c+1),c=0)}}function Ta(t,i){var u=i.from.line,l=i.to.line,c=i.text.length-(l-u)-1;mf(t.done,u,l,c),mf(t.undone,u,l,c)}function po(t,i,u,l){var c=i,y=i;return typeof i=="number"?y=ot(t,Gt(t,i)):c=zt(i),c==null?null:(l(y,c)&&t.cm&&ki(t.cm,c,u),y)}function Pa(t){this.lines=t,this.parent=null;for(var i=0,u=0;u<t.length;++u)t[u].parent=this,i+=t[u].height;this.height=i}Pa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,i){for(var u=t,l=t+i;u<l;++u){var c=this.lines[u];this.height-=c.height,Fc(c),Rr(c,"delete")}this.lines.splice(t,i)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,i,u){this.height+=u,this.lines=this.lines.slice(0,t).concat(i).concat(this.lines.slice(t));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(t,i,u){for(var l=t+i;t<l;++t)if(u(this.lines[t]))return!0}};function oa(t){this.children=t;for(var i=0,u=0,l=0;l<t.length;++l){var c=t[l];i+=c.chunkSize(),u+=c.height,c.parent=this}this.size=i,this.height=u,this.parent=null}oa.prototype={chunkSize:function(){return this.size},removeInner:function(t,i){this.size-=i;for(var u=0;u<this.children.length;++u){var l=this.children[u],c=l.chunkSize();if(t<c){var y=Math.min(i,c-t),w=l.height;if(l.removeInner(t,y),this.height-=w-l.height,c==y&&(this.children.splice(u--,1),l.parent=null),(i-=y)==0)break;t=0}else t-=c}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Pa))){var O=[];this.collapse(O),this.children=[new Pa(O)],this.children[0].parent=this}},collapse:function(t){for(var i=0;i<this.children.length;++i)this.children[i].collapse(t)},insertInner:function(t,i,u){this.size+=i.length,this.height+=u;for(var l=0;l<this.children.length;++l){var c=this.children[l],y=c.chunkSize();if(t<=y){if(c.insertInner(t,i,u),c.lines&&c.lines.length>50){for(var w=c.lines.length%25+25,O=w;O<c.lines.length;){var R=new Pa(c.lines.slice(O,O+=25));c.height-=R.height,this.children.splice(++l,0,R),R.parent=this}c.lines=c.lines.slice(0,w),this.maybeSpill()}break}t-=y}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var i=t.children.splice(t.children.length-5,5),u=new oa(i);if(t.parent){t.size-=u.size,t.height-=u.height;var c=Ce(t.parent.children,t);t.parent.children.splice(c+1,0,u)}else{var l=new oa(t.children);l.parent=t,t.children=[l,u],t=l}u.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,i,u){for(var l=0;l<this.children.length;++l){var c=this.children[l],y=c.chunkSize();if(t<y){var w=Math.min(i,y-t);if(c.iterN(t,w,u))return!0;if((i-=w)==0)break;t=0}else t-=y}}};var ho=function(t,i,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=t,this.node=i};ho.prototype.clear=function(){var t=this.doc.cm,i=this.line.widgets,u=this.line,l=zt(u);if(!(l==null||!i)){for(var c=0;c<i.length;++c)i[c]==this&&i.splice(c--,1);i.length||(u.widgets=null);var y=Ja(this);cn(u,Math.max(0,u.height-y)),t&&(bn(t,function(){vo(t,u,-y),ki(t,l,"widget")}),Rr(t,"lineWidgetCleared",t,this,l))}},ho.prototype.changed=function(){var t=this,i=this.height,u=this.doc.cm,l=this.line;this.height=null;var c=Ja(this)-i;!c||(Fr(this.doc,l)||cn(l,l.height+c),u&&bn(u,function(){u.curOp.forceUpdate=!0,vo(u,l,c),Rr(u,"lineWidgetChanged",u,t,zt(l))}))},pr(ho);function vo(t,i,u){qn(i)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&_s(t,u)}function go(t,i,u,l){var c=new ho(t,u,l),y=t.cm;return y&&c.noHScroll&&(y.display.alignWidgets=!0),po(t,i,"widget",function(w){var O=w.widgets||(w.widgets=[]);if(c.insertAt==null?O.push(c):O.splice(Math.min(O.length,Math.max(0,c.insertAt)),0,c),c.line=w,y&&!Fr(t,w)){var R=qn(w)<t.scrollTop;cn(w,w.height+Ja(c)),R&&_s(y,c.height),y.curOp.forceUpdate=!0}return!0}),y&&Rr(y,"lineWidgetAdded",y,c,typeof i=="number"?i:zt(i)),c}var hl=0,yi=function(t,i){this.lines=[],this.type=i,this.doc=t,this.id=++hl};yi.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,i=t&&!t.curOp;if(i&&Ri(t),Rt(this,"clear")){var u=this.find();u&&Rr(this,"clear",u.from,u.to)}for(var l=null,c=null,y=0;y<this.lines.length;++y){var w=this.lines[y],O=Vo(w.markedSpans,this);t&&!this.collapsed?ki(t,zt(w),"text"):t&&(O.to!=null&&(c=zt(w)),O.from!=null&&(l=zt(w))),w.markedSpans=mp(w.markedSpans,O),O.from==null&&this.collapsed&&!Fr(this.doc,w)&&t&&cn(w,ba(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var R=0;R<this.lines.length;++R){var V=yn(this.lines[R]),oe=Gn(V);oe>t.display.maxLineLength&&(t.display.maxLine=V,t.display.maxLineLength=oe,t.display.maxLineChanged=!0)}l!=null&&t&&this.collapsed&&dn(t,l,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&df(t.doc)),t&&Rr(t,"markerCleared",t,this,l,c),i&&mi(t),this.parent&&this.parent.clear()}},yi.prototype.find=function(t,i){t==null&&this.type=="bookmark"&&(t=1);for(var u,l,c=0;c<this.lines.length;++c){var y=this.lines[c],w=Vo(y.markedSpans,this);if(w.from!=null&&(u=M(i?y:zt(y),w.from),t==-1))return u;if(w.to!=null&&(l=M(i?y:zt(y),w.to),t==1))return l}return u&&{from:u,to:l}},yi.prototype.changed=function(){var t=this,i=this.find(-1,!0),u=this,l=this.doc.cm;!i||!l||bn(l,function(){var c=i.line,y=zt(i.line),w=Hs(l,y);if(w&&(rn(w),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Fr(u.doc,c)&&u.height!=null){var O=u.height;u.height=null;var R=Ja(u)-O;R&&cn(c,c.height+R)}Rr(l,"markerChanged",l,t)})},yi.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Ce(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},yi.prototype.detachLine=function(t){if(this.lines.splice(Ce(this.lines,t),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},pr(yi);function Ia(t,i,u,l,c){if(l&&l.shared)return yo(t,i,u,l,c);if(t.cm&&!t.cm.curOp)return Or(t.cm,Ia)(t,i,u,l,c);var y=new yi(t,c),w=ae(i,u);if(l&&Oe(l,y,!1),w>0||w==0&&y.clearWhenEmpty!==!1)return y;if(y.replacedWith&&(y.collapsed=!0,y.widgetNode=Z("span",[y.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||y.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(y.widgetNode.insertLeft=!0)),y.collapsed){if(mu(t,i.line,i,u,y)||i.line!=u.line&&mu(t,u.line,i,u,y))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ec()}y.addToHistory&&of(t,{from:i,to:u,origin:"markText"},t.sel,NaN);var O=i.line,R=t.cm,V;if(t.iter(O,u.line+1,function(ce){R&&y.collapsed&&!R.options.lineWrapping&&yn(ce)==R.display.maxLine&&(V=!0),y.collapsed&&O!=i.line&&cn(ce,0),yp(ce,new Rs(y,O==i.line?i.ch:null,O==u.line?u.ch:null),t.cm&&t.cm.curOp),++O}),y.collapsed&&t.iter(i.line,u.line+1,function(ce){Fr(t,ce)&&cn(ce,0)}),y.clearOnEnter&&ue(y,"beforeCursorEnter",function(){return y.clear()}),y.readOnly&&(Cc(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),y.collapsed&&(y.id=++hl,y.atomic=!0),R){if(V&&(R.curOp.updateMaxLine=!0),y.collapsed)dn(R,i.line,u.line+1);else if(y.className||y.startStyle||y.endStyle||y.css||y.attributes||y.title)for(var oe=i.line;oe<=u.line;oe++)ki(R,oe,"text");y.atomic&&df(R.doc),Rr(R,"markerAdded",R,y)}return y}var mo=function(t,i){this.markers=t,this.primary=i;for(var u=0;u<t.length;++u)t[u].parent=this};mo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();Rr(this,"clear")}},mo.prototype.find=function(t,i){return this.primary.find(t,i)},pr(mo);function yo(t,i,u,l,c){l=Oe(l),l.shared=!1;var y=[Ia(t,i,u,l,c)],w=y[0],O=l.widgetNode;return Ni(t,function(R){O&&(l.widgetNode=O.cloneNode(!0)),y.push(Ia(R,st(R,i),st(R,u),l,c));for(var V=0;V<R.linked.length;++V)if(R.linked[V].isParent)return;w=lt(y)}),new mo(y,w)}function vl(t){return t.findMarks(M(t.first,0),t.clipPos(M(t.lastLine())),function(i){return i.parent})}function yf(t,i){for(var u=0;u<i.length;u++){var l=i[u],c=l.find(),y=t.clipPos(c.from),w=t.clipPos(c.to);if(ae(y,w)){var O=Ia(t,y,w,l.primary,l.primary.type);l.markers.push(O),O.parent=l}}}function gl(t){for(var i=function(l){var c=t[l],y=[c.primary.doc];Ni(c.primary.doc,function(R){return y.push(R)});for(var w=0;w<c.markers.length;w++){var O=c.markers[w];Ce(y,O.doc)==-1&&(O.parent=null,c.markers.splice(w--,1))}},u=0;u<t.length;u++)i(u)}var bf=0,on=function(t,i,u,l,c){if(!(this instanceof on))return new on(t,i,u,l,c);u==null&&(u=0),oa.call(this,[new Pa([new Ti("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var y=M(u,0);this.sel=Yn(y),this.history=new oo(null),this.id=++bf,this.modeOption=i,this.lineSep=l,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),ll(this,{from:y,to:y,text:t}),Wr(this,Yn(y),$e)};on.prototype=br(oa.prototype,{constructor:on,iter:function(t,i,u){u?this.iterN(t-this.first,i-t,u):this.iterN(this.first,this.first+this.size,t)},insert:function(t,i){for(var u=0,l=0;l<i.length;++l)u+=i[l].height;this.insertInner(t-this.first,i,u)},remove:function(t,i){this.removeInner(t-this.first,i)},getValue:function(t){var i=zi(this,this.first,this.first+this.size);return t===!1?i:i.join(t||this.lineSeparator())},setValue:Mr(function(t){var i=M(this.first,0),u=this.first+this.size-1;aa(this,{from:i,to:M(u,ot(this,u).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&qa(this.cm,0,0),Wr(this,Yn(i),$e)}),replaceRange:function(t,i,u,l){i=st(this,i),u=u?st(this,u):i,Oa(this,t,i,u,l)},getRange:function(t,i,u){var l=ci(this,st(this,t),st(this,i));return u===!1?l:u===""?l.join(""):l.join(u||this.lineSeparator())},getLine:function(t){var i=this.getLineHandle(t);return i&&i.text},getLineHandle:function(t){if(Gi(this,t))return ot(this,t)},getLineNumber:function(t){return zt(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=ot(this,t)),yn(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return st(this,t)},getCursor:function(t){var i=this.sel.primary(),u;return t==null||t=="head"?u=i.head:t=="anchor"?u=i.anchor:t=="end"||t=="to"||t===!1?u=i.to():u=i.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Mr(function(t,i,u){ff(this,st(this,typeof t=="number"?M(t,i||0):t),null,u)}),setSelection:Mr(function(t,i,u){ff(this,st(this,t),st(this,i||t),u)}),extendSelection:Mr(function(t,i,u){as(this,st(this,t),i&&st(this,i),u)}),extendSelections:Mr(function(t,i){os(this,Jt(this,t),i)}),extendSelectionsBy:Mr(function(t,i){var u=xt(this.sel.ranges,t);os(this,Jt(this,u),i)}),setSelections:Mr(function(t,i,u){if(!!t.length){for(var l=[],c=0;c<t.length;c++)l[c]=new Vt(st(this,t[c].anchor),st(this,t[c].head||t[c].anchor));i==null&&(i=Math.min(t.length-1,this.sel.primIndex)),Wr(this,qt(this.cm,l,i),u)}}),addSelection:Mr(function(t,i,u){var l=this.sel.ranges.slice(0);l.push(new Vt(st(this,t),st(this,i||t))),Wr(this,qt(this.cm,l,l.length-1),u)}),getSelection:function(t){for(var i=this.sel.ranges,u,l=0;l<i.length;l++){var c=ci(this,i[l].from(),i[l].to());u=u?u.concat(c):c}return t===!1?u:u.join(t||this.lineSeparator())},getSelections:function(t){for(var i=[],u=this.sel.ranges,l=0;l<u.length;l++){var c=ci(this,u[l].from(),u[l].to());t!==!1&&(c=c.join(t||this.lineSeparator())),i[l]=c}return i},replaceSelection:function(t,i,u){for(var l=[],c=0;c<this.sel.ranges.length;c++)l[c]=t;this.replaceSelections(l,i,u||"+input")},replaceSelections:Mr(function(t,i,u){for(var l=[],c=this.sel,y=0;y<c.ranges.length;y++){var w=c.ranges[y];l[y]={from:w.from(),to:w.to(),text:this.splitLines(t[y]),origin:u}}for(var O=i&&i!="end"&&Jc(this,l,i),R=l.length-1;R>=0;R--)aa(this,l[R]);O?cf(this,O):this.cm&&xa(this.cm)}),undo:Mr(function(){fo(this,"undo")}),redo:Mr(function(){fo(this,"redo")}),undoSelection:Mr(function(){fo(this,"undo",!0)}),redoSelection:Mr(function(){fo(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,i=0,u=0,l=0;l<t.done.length;l++)t.done[l].ranges||++i;for(var c=0;c<t.undone.length;c++)t.undone[c].ranges||++u;return{undo:i,redo:u}},clearHistory:function(){var t=this;this.history=new oo(this.history),Ni(this,function(i){return i.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Ca(this.history.done),undone:Ca(this.history.undone)}},setHistory:function(t){var i=this.history=new oo(this.history);i.done=Ca(t.done.slice(0),null,!0),i.undone=Ca(t.undone.slice(0),null,!0)},setGutterMarker:Mr(function(t,i,u){return po(this,t,"gutter",function(l){var c=l.gutterMarkers||(l.gutterMarkers={});return c[i]=u,!u&&dr(c)&&(l.gutterMarkers=null),!0})}),clearGutter:Mr(function(t){var i=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[t]&&po(i,u,"gutter",function(){return u.gutterMarkers[t]=null,dr(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(t){var i;if(typeof t=="number"){if(!Gi(this,t)||(i=t,t=ot(this,t),!t))return null}else if(i=zt(t),i==null)return null;return{line:i,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Mr(function(t,i,u){return po(this,t,i=="gutter"?"gutter":"class",function(l){var c=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[c])l[c]=u;else{if(J(u).test(l[c]))return!1;l[c]+=" "+u}return!0})}),removeLineClass:Mr(function(t,i,u){return po(this,t,i=="gutter"?"gutter":"class",function(l){var c=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",y=l[c];if(y)if(u==null)l[c]=null;else{var w=y.match(J(u));if(!w)return!1;var O=w.index+w[0].length;l[c]=y.slice(0,w.index)+(!w.index||O==y.length?"":" ")+y.slice(O)||null}else return!1;return!0})}),addLineWidget:Mr(function(t,i,u){return go(this,t,i,u)}),removeLineWidget:function(t){t.clear()},markText:function(t,i,u){return Ia(this,st(this,t),st(this,i),u,u&&u.type||"range")},setBookmark:function(t,i){var u={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return t=st(this,t),Ia(this,t,t,u,"bookmark")},findMarksAt:function(t){t=st(this,t);var i=[],u=ot(this,t.line).markedSpans;if(u)for(var l=0;l<u.length;++l){var c=u[l];(c.from==null||c.from<=t.ch)&&(c.to==null||c.to>=t.ch)&&i.push(c.marker.parent||c.marker)}return i},findMarks:function(t,i,u){t=st(this,t),i=st(this,i);var l=[],c=t.line;return this.iter(t.line,i.line+1,function(y){var w=y.markedSpans;if(w)for(var O=0;O<w.length;O++){var R=w[O];!(R.to!=null&&c==t.line&&t.ch>=R.to||R.from==null&&c!=t.line||R.from!=null&&c==i.line&&R.from>=i.ch)&&(!u||u(R.marker))&&l.push(R.marker.parent||R.marker)}++c}),l},getAllMarks:function(){var t=[];return this.iter(function(i){var u=i.markedSpans;if(u)for(var l=0;l<u.length;++l)u[l].from!=null&&t.push(u[l].marker)}),t},posFromIndex:function(t){var i,u=this.first,l=this.lineSeparator().length;return this.iter(function(c){var y=c.text.length+l;if(y>t)return i=t,!0;t-=y,++u}),st(this,M(u,i))},indexFromPos:function(t){t=st(this,t);var i=t.ch;if(t.line<this.first||t.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,t.line,function(l){i+=l.text.length+u}),i},copy:function(t){var i=new on(zi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,t&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(t){t||(t={});var i=this.first,u=this.first+this.size;t.from!=null&&t.from>i&&(i=t.from),t.to!=null&&t.to<u&&(u=t.to);var l=new on(zi(this,i,u),t.mode||this.modeOption,i,this.lineSep,this.direction);return t.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:t.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],yf(l,vl(this)),l},unlinkDoc:function(t){if(t instanceof ur&&(t=t.doc),this.linked)for(var i=0;i<this.linked.length;++i){var u=this.linked[i];if(u.doc==t){this.linked.splice(i,1),t.unlinkDoc(this),gl(vl(this));break}}if(t.history==this.history){var l=[t.id];Ni(t,function(c){return l.push(c.id)},!0),t.history=new oo(null),t.history.done=Ca(this.history.done,l),t.history.undone=Ca(this.history.undone,l)}},iterLinkedDocs:function(t){Ni(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Vr(t)},lineSeparator:function(){return this.lineSep||`
|
|
23
|
+
`},setDirection:Mr(function(t){t!="rtl"&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(i){return i.order=null}),this.cm&&Xc(this.cm))})}),on.prototype.eachLine=on.prototype.iter;var sa=0;function ed(t){var i=this;if(ml(i),!(at(i,t)||Er(i.display,t))){Lt(t),E&&(sa=+new Date);var u=Qi(i,t,!0),l=t.dataTransfer.files;if(!(!u||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var c=l.length,y=Array(c),w=0,O=function(){++w==c&&Or(i,function(){u=st(i.doc,u);var he={from:u,to:u,text:i.doc.splitLines(y.filter(function(Te){return Te!=null}).join(i.doc.lineSeparator())),origin:"paste"};aa(i.doc,he),cf(i.doc,Yn(st(i.doc,u),st(i.doc,ni(he))))})()},R=function(he,Te){if(i.options.allowDropFileTypes&&Ce(i.options.allowDropFileTypes,he.type)==-1){O();return}var Le=new FileReader;Le.onerror=function(){return O()},Le.onload=function(){var ze=Le.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ze)){O();return}y[Te]=ze,O()},Le.readAsText(he)},V=0;V<l.length;V++)R(l[V],V);else{if(i.state.draggingText&&i.doc.sel.contains(u)>-1){i.state.draggingText(t),setTimeout(function(){return i.display.input.focus()},20);return}try{var oe=t.dataTransfer.getData("Text");if(oe){var ce;if(i.state.draggingText&&!i.state.draggingText.copy&&(ce=i.listSelections()),ss(i.doc,Yn(u,u)),ce)for(var me=0;me<ce.length;++me)Oa(i.doc,"",ce[me].anchor,ce[me].head,"drag");i.replaceSelection(oe,"around","paste"),i.display.input.focus()}}catch(he){}}}}function td(t,i){if(E&&(!t.state.draggingText||+new Date-sa<100)){Yr(i);return}if(!(at(t,i)||Er(t.display,i))&&(i.dataTransfer.setData("Text",t.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!ne)){var u=q("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",K&&(u.width=u.height=1,t.display.wrapper.appendChild(u),u._top=u.offsetTop),i.dataTransfer.setDragImage(u,0,0),K&&u.parentNode.removeChild(u)}}function xf(t,i){var u=Qi(t,i);if(!!u){var l=document.createDocumentFragment();Qs(t,u,l),t.display.dragCursor||(t.display.dragCursor=q("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),pe(t.display.dragCursor,l)}}function ml(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Sf(t){if(!!document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),u=[],l=0;l<i.length;l++){var c=i[l].CodeMirror;c&&u.push(c)}u.length&&u[0].operation(function(){for(var y=0;y<u.length;y++)t(u[y])})}}var yl=!1;function rd(){yl||(nd(),yl=!0)}function nd(){var t;ue(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,Sf(wf)},100))}),ue(window,"blur",function(){return Sf(_i)})}function wf(t){var i=t.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,t.setSize()}for(var Di={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},bo=0;bo<10;bo++)Di[bo+48]=Di[bo+96]=String(bo);for(var xo=65;xo<=90;xo++)Di[xo]=String.fromCharCode(xo);for(var On=1;On<=12;On++)Di[On+111]=Di[On+63235]="F"+On;var bi={};bi.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},bi.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},bi.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},bi.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},bi.default=k?bi.macDefault:bi.pcDefault;function bl(t){var i=t.split(/-(?!$)/);t=i[i.length-1];for(var u,l,c,y,w=0;w<i.length-1;w++){var O=i[w];if(/^(cmd|meta|m)$/i.test(O))y=!0;else if(/^a(lt)?$/i.test(O))u=!0;else if(/^(c|ctrl|control)$/i.test(O))l=!0;else if(/^s(hift)?$/i.test(O))c=!0;else throw new Error("Unrecognized modifier name: "+O)}return u&&(t="Alt-"+t),l&&(t="Ctrl-"+t),y&&(t="Cmd-"+t),c&&(t="Shift-"+t),t}function id(t){var i={};for(var u in t)if(t.hasOwnProperty(u)){var l=t[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(l=="..."){delete t[u];continue}for(var c=xt(u.split(" "),bl),y=0;y<c.length;y++){var w=void 0,O=void 0;y==c.length-1?(O=c.join(" "),w=l):(O=c.slice(0,y+1).join(" "),w="...");var R=i[O];if(!R)i[O]=w;else if(R!=w)throw new Error("Inconsistent bindings for "+O)}delete t[u]}for(var V in i)t[V]=i[V];return t}function ka(t,i,u,l){i=fs(i);var c=i.call?i.call(t,l):i[t];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&u(c))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return ka(t,i.fallthrough,u,l);for(var y=0;y<i.fallthrough.length;y++){var w=ka(t,i.fallthrough[y],u,l);if(w)return w}}}function Af(t){var i=typeof t=="string"?t:Di[t.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function us(t,i,u){var l=t;return i.altKey&&l!="Alt"&&(t="Alt-"+t),(D?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(t="Ctrl-"+t),(D?i.ctrlKey:i.metaKey)&&l!="Mod"&&(t="Cmd-"+t),!u&&i.shiftKey&&l!="Shift"&&(t="Shift-"+t),t}function Cf(t,i){if(K&&t.keyCode==34&&t.char)return!1;var u=Di[t.keyCode];return u==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(u=t.code),us(u,t,i))}function fs(t){return typeof t=="string"?bi[t]:t}function Fa(t,i){for(var u=t.doc.sel.ranges,l=[],c=0;c<u.length;c++){for(var y=i(u[c]);l.length&&ae(y.from,lt(l).to)<=0;){var w=l.pop();if(ae(w.from,y.from)<0){y.from=w.from;break}}l.push(y)}bn(t,function(){for(var O=l.length-1;O>=0;O--)Oa(t.doc,"",l[O].from,l[O].to,"+delete");xa(t)})}function xl(t,i,u){var l=Tt(t.text,i+u,u);return l<0||l>t.text.length?null:l}function Sl(t,i,u){var l=xl(t,i.ch,u);return l==null?null:new M(i.line,l,u<0?"after":"before")}function wl(t,i,u,l,c){if(t){i.doc.direction=="rtl"&&(c=-c);var y=nt(u,i.doc.direction);if(y){var w=c<0?lt(y):y[0],O=c<0==(w.level==1),R=O?"after":"before",V;if(w.level>0||i.doc.direction=="rtl"){var oe=ya(i,u);V=c<0?u.text.length-1:0;var ce=ti(i,oe,V).top;V=At(function(me){return ti(i,oe,me).top==ce},c<0==(w.level==1)?w.from:w.to-1,V),R=="before"&&(V=xl(u,V,1))}else V=c<0?w.to:w.from;return new M(l,V,R)}}return new M(l,c<0?u.text.length:0,c<0?"before":"after")}function ad(t,i,u,l){var c=nt(i,t.doc.direction);if(!c)return Sl(i,u,l);u.ch>=i.text.length?(u.ch=i.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var y=it(c,u.ch,u.sticky),w=c[y];if(t.doc.direction=="ltr"&&w.level%2==0&&(l>0?w.to>u.ch:w.from<u.ch))return Sl(i,u,l);var O=function(Ye,Qe){return xl(i,Ye instanceof M?Ye.ch:Ye,Qe)},R,V=function(Ye){return t.options.lineWrapping?(R=R||ya(t,i),Ys(t,i,R,Ye)):{begin:0,end:i.text.length}},oe=V(u.sticky=="before"?O(u,-1):u.ch);if(t.doc.direction=="rtl"||w.level==1){var ce=w.level==1==l<0,me=O(u,ce?1:-1);if(me!=null&&(ce?me<=w.to&&me<=oe.end:me>=w.from&&me>=oe.begin)){var he=ce?"before":"after";return new M(u.line,me,he)}}var Te=function(Ye,Qe,Je){for(var qe=function(tr,Tr){return Tr?new M(u.line,O(tr,1),"before"):new M(u.line,tr,"after")};Ye>=0&&Ye<c.length;Ye+=Qe){var ht=c[Ye],dt=Qe>0==(ht.level!=1),Mt=dt?Je.begin:O(Je.end,-1);if(ht.from<=Mt&&Mt<ht.to||(Mt=dt?ht.from:O(ht.to,-1),Je.begin<=Mt&&Mt<Je.end))return qe(Mt,dt)}},Le=Te(y+l,l,oe);if(Le)return Le;var ze=l>0?oe.end:O(oe.begin,-1);return ze!=null&&!(l>0&&ze==i.text.length)&&(Le=Te(l>0?0:c.length-1,l,V(ze)),Le)?Le:null}var So={selectAll:pl,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),$e)},killLine:function(t){return Fa(t,function(i){if(i.empty()){var u=ot(t.doc,i.head.line).text.length;return i.head.ch==u&&i.head.line<t.lastLine()?{from:i.head,to:M(i.head.line+1,0)}:{from:i.head,to:M(i.head.line,u)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(t){return Fa(t,function(i){return{from:M(i.from().line,0),to:st(t.doc,M(i.to().line+1,0))}})},delLineLeft:function(t){return Fa(t,function(i){return{from:M(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(t){return Fa(t,function(i){var u=t.charCoords(i.head,"div").top+5,l=t.coordsChar({left:0,top:u},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(t){return Fa(t,function(i){var u=t.charCoords(i.head,"div").top+5,l=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:u},"div");return{from:i.from(),to:l}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(M(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(M(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(i){return Ef(t,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(i){return Of(t,i.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(i){return od(t,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:u},"div")},Ze)},goLineLeft:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5;return t.coordsChar({left:0,top:u},"div")},Ze)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5,l=t.coordsChar({left:0,top:u},"div");return l.ch<t.getLine(l.line).search(/\S/)?Of(t,i.head):l},Ze)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var i=[],u=t.listSelections(),l=t.options.tabSize,c=0;c<u.length;c++){var y=u[c].from(),w=Ue(t.getLine(y.line),y.ch,l);i.push(Zt(l-w%l))}t.replaceSelections(i)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return bn(t,function(){for(var i=t.listSelections(),u=[],l=0;l<i.length;l++)if(!!i[l].empty()){var c=i[l].head,y=ot(t.doc,c.line).text;if(y){if(c.ch==y.length&&(c=new M(c.line,c.ch-1)),c.ch>0)c=new M(c.line,c.ch+1),t.replaceRange(y.charAt(c.ch-1)+y.charAt(c.ch-2),M(c.line,c.ch-2),c,"+transpose");else if(c.line>t.doc.first){var w=ot(t.doc,c.line-1).text;w&&(c=new M(c.line,1),t.replaceRange(y.charAt(0)+t.doc.lineSeparator()+w.charAt(w.length-1),M(c.line-1,w.length-1),c,"+transpose"))}}u.push(new Vt(c,c))}t.setSelections(u)})},newlineAndIndent:function(t){return bn(t,function(){for(var i=t.listSelections(),u=i.length-1;u>=0;u--)t.replaceRange(t.doc.lineSeparator(),i[u].anchor,i[u].head,"+input");i=t.listSelections();for(var l=0;l<i.length;l++)t.indentLine(i[l].from().line,null,!0);xa(t)})},openLine:function(t){return t.replaceSelection(`
|
|
24
|
+
`,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function Ef(t,i){var u=ot(t.doc,i),l=yn(u);return l!=u&&(i=zt(l)),wl(!0,t,l,i,1)}function od(t,i){var u=ot(t.doc,i),l=kc(u);return l!=u&&(i=zt(l)),wl(!0,t,u,i,-1)}function Of(t,i){var u=Ef(t,i.line),l=ot(t.doc,u.line),c=nt(l,t.doc.direction);if(!c||c[0].level==0){var y=Math.max(u.ch,l.text.search(/\S/)),w=i.line==u.line&&i.ch<=y&&i.ch;return M(u.line,w?0:y,u.sticky)}return u}function cs(t,i,u){if(typeof i=="string"&&(i=So[i],!i))return!1;t.display.input.ensurePolled();var l=t.display.shift,c=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),u&&(t.display.shift=!1),c=i(t)!=rt}finally{t.display.shift=l,t.state.suppressEdits=!1}return c}function sd(t,i,u){for(var l=0;l<t.state.keyMaps.length;l++){var c=ka(i,t.state.keyMaps[l],u,t);if(c)return c}return t.options.extraKeys&&ka(i,t.options.extraKeys,u,t)||ka(i,t.options.keyMap,u,t)}var ld=new Pe;function wo(t,i,u,l){var c=t.state.keySeq;if(c){if(Af(i))return"handled";if(/\'$/.test(i)?t.state.keySeq=null:ld.set(50,function(){t.state.keySeq==c&&(t.state.keySeq=null,t.display.input.reset())}),Al(t,c+" "+i,u,l))return!0}return Al(t,i,u,l)}function Al(t,i,u,l){var c=sd(t,i,l);return c=="multi"&&(t.state.keySeq=i),c=="handled"&&Rr(t,"keyHandled",t,i,u),(c=="handled"||c=="multi")&&(Lt(u),Xo(t)),!!c}function Tf(t,i){var u=Cf(i,!0);return u?i.shiftKey&&!t.state.keySeq?wo(t,"Shift-"+u,i,function(l){return cs(t,l,!0)})||wo(t,u,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return cs(t,l)}):wo(t,u,i,function(l){return cs(t,l)}):!1}function Pf(t,i,u){return wo(t,"'"+u+"'",i,function(l){return cs(t,l,!0)})}var Ra=null;function Cl(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&(i.curOp.focus=Ie(_e(i)),!at(i,t))){E&&F<11&&t.keyCode==27&&(t.returnValue=!1);var u=t.keyCode;i.display.shift=u==16||t.shiftKey;var l=Tf(i,t);K&&(Ra=l?u:null,!l&&u==88&&!ha&&(k?t.metaKey:t.ctrlKey)&&i.replaceSelection("",null,"cut")),p&&!k&&!l&&u==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&ud(i)}}function ud(t){var i=t.display.lineDiv;Ne(i,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(z(i,"CodeMirror-crosshair"),Be(document,"keyup",u),Be(document,"mouseover",u))}ue(document,"keyup",u),ue(document,"mouseover",u)}function If(t){t.keyCode==16&&(this.doc.sel.shift=!1),at(this,t)}function kf(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&!(Er(i.display,t)||at(i,t)||t.ctrlKey&&!t.altKey||k&&t.metaKey)){var u=t.keyCode,l=t.charCode;if(K&&u==Ra){Ra=null,Lt(t);return}if(!(K&&(!t.which||t.which<10)&&Tf(i,t))){var c=String.fromCharCode(l==null?u:l);c!="\b"&&(Pf(i,t,c)||i.display.input.onKeyPress(t))}}}var la=400,El=function(t,i,u){this.time=t,this.pos=i,this.button=u};El.prototype.compare=function(t,i,u){return this.time+la>t&&ae(i,this.pos)==0&&u==this.button};var pn,Ao;function fd(t,i){var u=+new Date;return Ao&&Ao.compare(u,t,i)?(pn=Ao=null,"triple"):pn&&pn.compare(u,t,i)?(Ao=new El(u,t,i),pn=null,"double"):(pn=new El(u,t,i),Ao=null,"single")}function ua(t){var i=this,u=i.display;if(!(at(i,t)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=t.shiftKey,Er(u,t)){U||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!Eo(i,t)){var l=Qi(i,t),c=si(t),y=l?fd(l,c):"single";mt(i).focus(),c==1&&i.state.selectingText&&i.state.selectingText(t),!(l&&Ol(i,c,l,y,t))&&(c==1?l?dd(i,l,y,t):Jr(t)==u.scroller&&Lt(t):c==2?(l&&as(i.doc,l),setTimeout(function(){return u.input.focus()},20)):c==3&&(re?i.display.input.onContextMenu(t):Qo(i)))}}}function Ol(t,i,u,l,c){var y="Click";return l=="double"?y="Double"+y:l=="triple"&&(y="Triple"+y),y=(i==1?"Left":i==2?"Middle":"Right")+y,wo(t,us(y,c),c,function(w){if(typeof w=="string"&&(w=So[w]),!w)return!1;var O=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),O=w(t,u)!=rt}finally{t.state.suppressEdits=!1}return O})}function cd(t,i,u){var l=t.getOption("configureMouse"),c=l?l(t,i,u):{};if(c.unit==null){var y=B?u.shiftKey&&u.metaKey:u.altKey;c.unit=y?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(c.extend==null||t.doc.extend)&&(c.extend=t.doc.extend||u.shiftKey),c.addNew==null&&(c.addNew=k?u.metaKey:u.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(k?u.altKey:u.ctrlKey)),c}function dd(t,i,u,l){E?setTimeout(De(Zs,t),0):t.curOp.focus=Ie(_e(t));var c=cd(t,u,l),y=t.doc.sel,w;t.options.dragDrop&&en&&!t.isReadOnly()&&u=="single"&&(w=y.contains(i))>-1&&(ae((w=y.ranges[w]).from(),i)<0||i.xRel>0)&&(ae(w.to(),i)>0||i.xRel<0)?pd(t,l,i,c):hd(t,l,i,c)}function pd(t,i,u,l){var c=t.display,y=!1,w=Or(t,function(V){U&&(c.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:Qo(t)),Be(c.wrapper.ownerDocument,"mouseup",w),Be(c.wrapper.ownerDocument,"mousemove",O),Be(c.scroller,"dragstart",R),Be(c.scroller,"drop",w),y||(Lt(V),l.addNew||as(t.doc,u,null,null,l.extend),U&&!ne||E&&F==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),O=function(V){y=y||Math.abs(i.clientX-V.clientX)+Math.abs(i.clientY-V.clientY)>=10},R=function(){return y=!0};U&&(c.scroller.draggable=!0),t.state.draggingText=w,w.copy=!l.moveOnDrag,ue(c.wrapper.ownerDocument,"mouseup",w),ue(c.wrapper.ownerDocument,"mousemove",O),ue(c.scroller,"dragstart",R),ue(c.scroller,"drop",w),t.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function Ff(t,i,u){if(u=="char")return new Vt(i,i);if(u=="word")return t.findWordAt(i);if(u=="line")return new Vt(M(i.line,0),st(t.doc,M(i.line+1,0)));var l=u(t,i);return new Vt(l.from,l.to)}function hd(t,i,u,l){E&&Qo(t);var c=t.display,y=t.doc;Lt(i);var w,O,R=y.sel,V=R.ranges;if(l.addNew&&!l.extend?(O=y.sel.contains(u),O>-1?w=V[O]:w=new Vt(u,u)):(w=y.sel.primary(),O=y.sel.primIndex),l.unit=="rectangle")l.addNew||(w=new Vt(u,u)),u=Qi(t,i,!0,!0),O=-1;else{var oe=Ff(t,u,l.unit);l.extend?w=fl(w,oe.anchor,oe.head,l.extend):w=oe}l.addNew?O==-1?(O=V.length,Wr(y,qt(t,V.concat([w]),O),{scroll:!1,origin:"*mouse"})):V.length>1&&V[O].empty()&&l.unit=="char"&&!l.extend?(Wr(y,qt(t,V.slice(0,O).concat(V.slice(O+1)),0),{scroll:!1,origin:"*mouse"}),R=y.sel):cl(y,O,w,et):(O=0,Wr(y,new Ur([w],0),et),R=y.sel);var ce=u;function me(Je){if(ae(ce,Je)!=0)if(ce=Je,l.unit=="rectangle"){for(var qe=[],ht=t.options.tabSize,dt=Ue(ot(y,u.line).text,u.ch,ht),Mt=Ue(ot(y,Je.line).text,Je.ch,ht),tr=Math.min(dt,Mt),Tr=Math.max(dt,Mt),wt=Math.min(u.line,Je.line),xn=Math.min(t.lastLine(),Math.max(u.line,Je.line));wt<=xn;wt++){var sn=ot(y,wt).text,Ar=Ct(sn,tr,ht);tr==Tr?qe.push(new Vt(M(wt,Ar),M(wt,Ar))):sn.length>Ar&&qe.push(new Vt(M(wt,Ar),M(wt,Ct(sn,Tr,ht))))}qe.length||qe.push(new Vt(u,u)),Wr(y,qt(t,R.ranges.slice(0,O).concat(qe),O),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Je)}else{var Hr=w,zr=Ff(t,Je,l.unit),Pr=Hr.anchor,Cr;ae(zr.anchor,Pr)>0?(Cr=zr.head,Pr=Nt(Hr.from(),zr.anchor)):(Cr=zr.anchor,Pr=St(Hr.to(),zr.head));var gr=R.ranges.slice(0);gr[O]=Tl(t,new Vt(st(y,Pr),Cr)),Wr(y,qt(t,gr,O),et)}}var he=c.wrapper.getBoundingClientRect(),Te=0;function Le(Je){var qe=++Te,ht=Qi(t,Je,!0,l.unit=="rectangle");if(!!ht)if(ae(ht,ce)!=0){t.curOp.focus=Ie(_e(t)),me(ht);var dt=qo(c,y);(ht.line>=dt.to||ht.line<dt.from)&&setTimeout(Or(t,function(){Te==qe&&Le(Je)}),150)}else{var Mt=Je.clientY<he.top?-20:Je.clientY>he.bottom?20:0;Mt&&setTimeout(Or(t,function(){Te==qe&&(c.scroller.scrollTop+=Mt,Le(Je))}),50)}}function ze(Je){t.state.selectingText=!1,Te=1/0,Je&&(Lt(Je),c.input.focus()),Be(c.wrapper.ownerDocument,"mousemove",Ye),Be(c.wrapper.ownerDocument,"mouseup",Qe),y.history.lastSelOrigin=null}var Ye=Or(t,function(Je){Je.buttons===0||!si(Je)?ze(Je):Le(Je)}),Qe=Or(t,ze);t.state.selectingText=Qe,ue(c.wrapper.ownerDocument,"mousemove",Ye),ue(c.wrapper.ownerDocument,"mouseup",Qe)}function Tl(t,i){var u=i.anchor,l=i.head,c=ot(t.doc,u.line);if(ae(u,l)==0&&u.sticky==l.sticky)return i;var y=nt(c);if(!y)return i;var w=it(y,u.ch,u.sticky),O=y[w];if(O.from!=u.ch&&O.to!=u.ch)return i;var R=w+(O.from==u.ch==(O.level!=1)?0:1);if(R==0||R==y.length)return i;var V;if(l.line!=u.line)V=(l.line-u.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var oe=it(y,l.ch,l.sticky),ce=oe-w||(l.ch-u.ch)*(O.level==1?-1:1);oe==R-1||oe==R?V=ce<0:V=ce>0}var me=y[R+(V?-1:0)],he=V==(me.level==1),Te=he?me.from:me.to,Le=he?"after":"before";return u.ch==Te&&u.sticky==Le?i:new Vt(new M(u.line,Te,Le),l)}function Co(t,i,u,l){var c,y;if(i.touches)c=i.touches[0].clientX,y=i.touches[0].clientY;else try{c=i.clientX,y=i.clientY}catch(me){return!1}if(c>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;l&&Lt(i);var w=t.display,O=w.lineDiv.getBoundingClientRect();if(y>O.bottom||!Rt(t,u))return _n(i);y-=O.top-w.viewOffset;for(var R=0;R<t.display.gutterSpecs.length;++R){var V=w.gutters.childNodes[R];if(V&&V.getBoundingClientRect().right>=c){var oe=di(t.doc,y),ce=t.display.gutterSpecs[R];return Ke(t,u,t,oe,ce.className,i),_n(i)}}}function Eo(t,i){return Co(t,i,"gutterClick",!0)}function Rf(t,i){Er(t.display,i)||vd(t,i)||at(t,i,"contextmenu")||re||t.display.input.onContextMenu(i)}function vd(t,i){return Rt(t,"gutterContextMenu")?Co(t,i,"gutterContextMenu",!1):!1}function Pl(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Yi(t)}var La={toString:function(){return"CodeMirror.Init"}},Il={},Ma={};function Lf(t){var i=t.optionHandlers;function u(l,c,y,w){t.defaults[l]=c,y&&(i[l]=w?function(O,R,V){V!=La&&y(O,R,V)}:y)}t.defineOption=u,t.Init=La,u("value","",function(l,c){return l.setValue(c)},!0),u("mode",null,function(l,c){l.doc.modeOption=c,sl(l)},!0),u("indentUnit",2,sl,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){Aa(l),Yi(l),dn(l)},!0),u("lineSeparator",null,function(l,c){if(l.doc.lineSep=c,!!c){var y=[],w=l.doc.first;l.doc.iter(function(R){for(var V=0;;){var oe=R.text.indexOf(c,V);if(oe==-1)break;V=oe+c.length,y.push(M(w,oe))}w++});for(var O=y.length-1;O>=0;O--)Oa(l.doc,c,y[O],M(y[O].line,y[O].ch+c.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,c,y){l.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),y!=La&&l.refresh()}),u("specialCharPlaceholder",Rc,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",C?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(l,c){return l.getInputField().spellcheck=c},!0),u("autocorrect",!1,function(l,c){return l.getInputField().autocorrect=c},!0),u("autocapitalize",!1,function(l,c){return l.getInputField().autocapitalize=c},!0),u("rtlMoveVisually",!X),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){Pl(l),ao(l)},!0),u("keyMap","default",function(l,c,y){var w=fs(c),O=y!=La&&fs(y);O&&O.detach&&O.detach(l,w),w.attach&&w.attach(l,O||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,md,!0),u("gutters",[],function(l,c){l.display.gutterSpecs=ns(c,l.options.lineNumbers),ao(l)},!0),u("fixedGutter",!0,function(l,c){l.display.gutters.style.left=c?Xs(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return wa(l)},!0),u("scrollbarStyle","native",function(l){Yu(l),wa(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),u("lineNumbers",!1,function(l,c){l.display.gutterSpecs=ns(l.options.gutters,c),ao(l)},!0),u("firstLineNumber",1,ao,!0),u("lineNumberFormatter",function(l){return l},ao,!0),u("showCursorWhenSelecting",!1,Za,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,c){c=="nocursor"&&(_i(l),l.display.input.blur()),l.display.input.readOnlyChanged(c)}),u("screenReaderLabel",null,function(l,c){c=c===""?null:c,l.display.input.screenReaderLabelChanged(c)}),u("disableInput",!1,function(l,c){c||l.display.input.reset()},!0),u("dragDrop",!0,gd),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Za,!0),u("singleCursorHeightPerLine",!0,Za,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,Aa,!0),u("addModeClass",!1,Aa,!0),u("pollInterval",100),u("undoDepth",200,function(l,c){return l.doc.history.undoDepth=c}),u("historyEventDelay",1250),u("viewportMargin",10,function(l){return l.refresh()},!0),u("maxHighlightLength",1e4,Aa,!0),u("moveInputWithCursor",!0,function(l,c){c||l.display.input.resetPosition()}),u("tabindex",null,function(l,c){return l.display.input.getField().tabIndex=c||""}),u("autofocus",null),u("direction","ltr",function(l,c){return l.doc.setDirection(c)},!0),u("phrases",null)}function gd(t,i,u){var l=u&&u!=La;if(!i!=!l){var c=t.display.dragFunctions,y=i?ue:Be;y(t.display.scroller,"dragstart",c.start),y(t.display.scroller,"dragenter",c.enter),y(t.display.scroller,"dragover",c.over),y(t.display.scroller,"dragleave",c.leave),y(t.display.scroller,"drop",c.drop)}}function md(t){t.options.lineWrapping?(Ne(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(z(t.display.wrapper,"CodeMirror-wrap"),vi(t)),Ko(t),dn(t),Yi(t),setTimeout(function(){return wa(t)},100)}function ur(t,i){var u=this;if(!(this instanceof ur))return new ur(t,i);this.options=i=i?Oe(i):{},Oe(Il,i,!1);var l=i.value;typeof l=="string"?l=new on(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var c=new ur.inputStyles[i.inputStyle](this),y=this.display=new qu(t,l,c,i);y.wrapper.CodeMirror=this,Pl(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Yu(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Pe,keySeq:null,specialChars:null},i.autofocus&&!C&&y.input.focus(),E&&F<11&&setTimeout(function(){return u.display.input.reset(!0)},20),Mf(this),rd(),Ri(this),this.curOp.forceUpdate=!0,nf(this,l),i.autofocus&&!C||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&Zo(u)},20):_i(this);for(var w in Ma)Ma.hasOwnProperty(w)&&Ma[w](this,i[w],La);nl(this),i.finishInit&&i.finishInit(this);for(var O=0;O<kl.length;++O)kl[O](this);mi(this),U&&i.lineWrapping&&getComputedStyle(y.lineDiv).textRendering=="optimizelegibility"&&(y.lineDiv.style.textRendering="auto")}ur.defaults=Il,ur.optionHandlers=Ma;function Mf(t){var i=t.display;ue(i.scroller,"mousedown",Or(t,ua)),E&&F<11?ue(i.scroller,"dblclick",Or(t,function(R){if(!at(t,R)){var V=Qi(t,R);if(!(!V||Eo(t,R)||Er(t.display,R))){Lt(R);var oe=t.findWordAt(V);as(t.doc,oe.anchor,oe.head)}}})):ue(i.scroller,"dblclick",function(R){return at(t,R)||Lt(R)}),ue(i.scroller,"contextmenu",function(R){return Rf(t,R)}),ue(i.input.getField(),"contextmenu",function(R){i.scroller.contains(R.target)||Rf(t,R)});var u,l={end:0};function c(){i.activeTouch&&(u=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function y(R){if(R.touches.length!=1)return!1;var V=R.touches[0];return V.radiusX<=1&&V.radiusY<=1}function w(R,V){if(V.left==null)return!0;var oe=V.left-R.left,ce=V.top-R.top;return oe*oe+ce*ce>20*20}ue(i.scroller,"touchstart",function(R){if(!at(t,R)&&!y(R)&&!Eo(t,R)){i.input.ensurePolled(),clearTimeout(u);var V=+new Date;i.activeTouch={start:V,moved:!1,prev:V-l.end<=300?l:null},R.touches.length==1&&(i.activeTouch.left=R.touches[0].pageX,i.activeTouch.top=R.touches[0].pageY)}}),ue(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),ue(i.scroller,"touchend",function(R){var V=i.activeTouch;if(V&&!Er(i,R)&&V.left!=null&&!V.moved&&new Date-V.start<300){var oe=t.coordsChar(i.activeTouch,"page"),ce;!V.prev||w(V,V.prev)?ce=new Vt(oe,oe):!V.prev.prev||w(V,V.prev.prev)?ce=t.findWordAt(oe):ce=new Vt(M(oe.line,0),st(t.doc,M(oe.line+1,0))),t.setSelection(ce.anchor,ce.head),t.focus(),Lt(R)}c()}),ue(i.scroller,"touchcancel",c),ue(i.scroller,"scroll",function(){i.scroller.clientHeight&&(to(t,i.scroller.scrollTop),qi(t,i.scroller.scrollLeft,!0),Ke(t,"scroll",t))}),ue(i.scroller,"mousewheel",function(R){return al(t,R)}),ue(i.scroller,"DOMMouseScroll",function(R){return al(t,R)}),ue(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(R){at(t,R)||Yr(R)},over:function(R){at(t,R)||(xf(t,R),Yr(R))},start:function(R){return td(t,R)},drop:Or(t,ed),leave:function(R){at(t,R)||ml(t)}};var O=i.input.getField();ue(O,"keyup",function(R){return If.call(t,R)}),ue(O,"keydown",Or(t,Cl)),ue(O,"keypress",Or(t,kf)),ue(O,"focus",function(R){return Zo(t,R)}),ue(O,"blur",function(R){return _i(t,R)})}var kl=[];ur.defineInitHook=function(t){return kl.push(t)};function Na(t,i,u,l){var c=t.doc,y;u==null&&(u="add"),u=="smart"&&(c.mode.indent?y=za(t,i).state:u="prev");var w=t.options.tabSize,O=ot(c,i),R=Ue(O.text,null,w);O.stateAfter&&(O.stateAfter=null);var V=O.text.match(/^\s*/)[0],oe;if(!l&&!/\S/.test(O.text))oe=0,u="not";else if(u=="smart"&&(oe=c.mode.indent(y,O.text.slice(V.length),O.text),oe==rt||oe>150)){if(!l)return;u="prev"}u=="prev"?i>c.first?oe=Ue(ot(c,i-1).text,null,w):oe=0:u=="add"?oe=R+t.options.indentUnit:u=="subtract"?oe=R-t.options.indentUnit:typeof u=="number"&&(oe=R+u),oe=Math.max(0,oe);var ce="",me=0;if(t.options.indentWithTabs)for(var he=Math.floor(oe/w);he;--he)me+=w,ce+=" ";if(me<oe&&(ce+=Zt(oe-me)),ce!=V)return Oa(c,ce,M(i,0),M(i,V.length),"+input"),O.stateAfter=null,!0;for(var Te=0;Te<c.sel.ranges.length;Te++){var Le=c.sel.ranges[Te];if(Le.head.line==i&&Le.head.ch<V.length){var ze=M(i,V.length);cl(c,Te,new Vt(ze,ze));break}}}var Ln=null;function ds(t){Ln=t}function ps(t,i,u,l,c){var y=t.doc;t.display.shift=!1,l||(l=y.sel);var w=+new Date-200,O=c=="paste"||t.state.pasteIncoming>w,R=Vr(i),V=null;if(O&&l.ranges.length>1)if(Ln&&Ln.text.join(`
|
|
25
|
+
`)==i){if(l.ranges.length%Ln.text.length==0){V=[];for(var oe=0;oe<Ln.text.length;oe++)V.push(y.splitLines(Ln.text[oe]))}}else R.length==l.ranges.length&&t.options.pasteLinesPerSelection&&(V=xt(R,function(Ye){return[Ye]}));for(var ce=t.curOp.updateInput,me=l.ranges.length-1;me>=0;me--){var he=l.ranges[me],Te=he.from(),Le=he.to();he.empty()&&(u&&u>0?Te=M(Te.line,Te.ch-u):t.state.overwrite&&!O?Le=M(Le.line,Math.min(ot(y,Le.line).text.length,Le.ch+lt(R).length)):O&&Ln&&Ln.lineWise&&Ln.text.join(`
|
|
26
|
+
`)==R.join(`
|
|
27
|
+
`)&&(Te=Le=M(Te.line,0)));var ze={from:Te,to:Le,text:V?V[me%V.length]:R,origin:c||(O?"paste":t.state.cutIncoming>w?"cut":"+input")};aa(t.doc,ze),Rr(t,"inputRead",t,ze)}i&&!O&&Rl(t,i),xa(t),t.curOp.updateInput<2&&(t.curOp.updateInput=ce),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Fl(t,i){var u=t.clipboardData&&t.clipboardData.getData("Text");if(u)return t.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&bn(i,function(){return ps(i,u,0,null,"paste")}),!0}function Rl(t,i){if(!(!t.options.electricChars||!t.options.smartIndent))for(var u=t.doc.sel,l=u.ranges.length-1;l>=0;l--){var c=u.ranges[l];if(!(c.head.ch>100||l&&u.ranges[l-1].head.line==c.head.line)){var y=t.getModeAt(c.head),w=!1;if(y.electricChars){for(var O=0;O<y.electricChars.length;O++)if(i.indexOf(y.electricChars.charAt(O))>-1){w=Na(t,c.head.line,"smart");break}}else y.electricInput&&y.electricInput.test(ot(t.doc,c.head.line).text.slice(0,c.head.ch))&&(w=Na(t,c.head.line,"smart"));w&&Rr(t,"electricInput",t,c.head.line)}}}function Nf(t){for(var i=[],u=[],l=0;l<t.doc.sel.ranges.length;l++){var c=t.doc.sel.ranges[l].head.line,y={anchor:M(c,0),head:M(c+1,0)};u.push(y),i.push(t.getRange(y.anchor,y.head))}return{text:i,ranges:u}}function Df(t,i,u,l){t.setAttribute("autocorrect",u?"":"off"),t.setAttribute("autocapitalize",l?"":"off"),t.setAttribute("spellcheck",!!i)}function Bf(){var t=q("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=q("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return U?t.style.width="1000px":t.setAttribute("wrap","off"),Y&&(t.style.border="1px solid black"),Df(t),i}function fa(t){var i=t.optionHandlers,u=t.helpers={};t.prototype={constructor:t,focus:function(){mt(this).focus(),this.display.input.focus()},setOption:function(l,c){var y=this.options,w=y[l];y[l]==c&&l!="mode"||(y[l]=c,i.hasOwnProperty(l)&&Or(this,i[l])(this,c,w),Ke(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,c){this.state.keyMaps[c?"push":"unshift"](fs(l))},removeKeyMap:function(l){for(var c=this.state.keyMaps,y=0;y<c.length;++y)if(c[y]==l||c[y].name==l)return c.splice(y,1),!0},addOverlay:nn(function(l,c){var y=l.token?l:t.getMode(this.options,l);if(y.startState)throw new Error("Overlays may not be stateful.");Ft(this.state.overlays,{mode:y,modeSpec:l,opaque:c&&c.opaque,priority:c&&c.priority||0},function(w){return w.priority}),this.state.modeGen++,dn(this)}),removeOverlay:nn(function(l){for(var c=this.state.overlays,y=0;y<c.length;++y){var w=c[y].modeSpec;if(w==l||typeof l=="string"&&w.name==l){c.splice(y,1),this.state.modeGen++,dn(this);return}}}),indentLine:nn(function(l,c,y){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),Gi(this.doc,l)&&Na(this,l,c,y)}),indentSelection:nn(function(l){for(var c=this.doc.sel.ranges,y=-1,w=0;w<c.length;w++){var O=c[w];if(O.empty())O.head.line>y&&(Na(this,O.head.line,l,!0),y=O.head.line,w==this.doc.sel.primIndex&&xa(this));else{var R=O.from(),V=O.to(),oe=Math.max(y,R.line);y=Math.min(this.lastLine(),V.line-(V.ch?0:1))+1;for(var ce=oe;ce<y;++ce)Na(this,ce,l);var me=this.doc.sel.ranges;R.ch==0&&c.length==me.length&&me[w].from().ch>0&&cl(this.doc,w,new Vt(R,me[w].to()),$e)}}}),getTokenAt:function(l,c){return cu(this,l,c)},getLineTokens:function(l,c){return cu(this,M(l),c,!0)},getTokenTypeAt:function(l){l=st(this.doc,l);var c=Bo(this,ot(this.doc,l.line)),y=0,w=(c.length-1)/2,O=l.ch,R;if(O==0)R=c[2];else for(;;){var V=y+w>>1;if((V?c[V*2-1]:0)>=O)w=V;else if(c[V*2+1]<O)y=V+1;else{R=c[V*2+2];break}}var oe=R?R.indexOf("overlay "):-1;return oe<0?R:oe==0?null:R.slice(0,oe-1)},getModeAt:function(l){var c=this.doc.mode;return c.innerMode?t.innerMode(c,this.getTokenAt(l).state).mode:c},getHelper:function(l,c){return this.getHelpers(l,c)[0]},getHelpers:function(l,c){var y=[];if(!u.hasOwnProperty(c))return y;var w=u[c],O=this.getModeAt(l);if(typeof O[c]=="string")w[O[c]]&&y.push(w[O[c]]);else if(O[c])for(var R=0;R<O[c].length;R++){var V=w[O[c][R]];V&&y.push(V)}else O.helperType&&w[O.helperType]?y.push(w[O.helperType]):w[O.name]&&y.push(w[O.name]);for(var oe=0;oe<w._global.length;oe++){var ce=w._global[oe];ce.pred(O,this)&&Ce(y,ce.val)==-1&&y.push(ce.val)}return y},getStateAfter:function(l,c){var y=this.doc;return l=Gt(y,l==null?y.first+y.size-1:l),za(this,l+1,c).state},cursorCoords:function(l,c){var y,w=this.doc.sel.primary();return l==null?y=w.head:typeof l=="object"?y=st(this.doc,l):y=l?w.from():w.to(),or(this,y,c||"page")},charCoords:function(l,c){return Go(this,st(this.doc,l),c||"page")},coordsChar:function(l,c){return l=Mu(this,l,c||"page"),Qa(this,l.left,l.top)},lineAtHeight:function(l,c){return l=Mu(this,{top:l,left:0},c||"page").top,di(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,c,y){var w=!1,O;if(typeof l=="number"){var R=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>R&&(l=R,w=!0),O=ot(this.doc,l)}else O=l;return zo(this,O,{top:0,left:0},c||"page",y||w).top+(w?this.doc.height-qn(O):0)},defaultTextHeight:function(){return ba(this.display)},defaultCharWidth:function(){return Xi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,c,y,w,O){var R=this.display;l=or(this,st(this.doc,l));var V=l.bottom,oe=l.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),R.sizer.appendChild(c),w=="over")V=l.top;else if(w=="above"||w=="near"){var ce=Math.max(R.wrapper.clientHeight,this.doc.height),me=Math.max(R.sizer.clientWidth,R.lineSpace.clientWidth);(w=="above"||l.bottom+c.offsetHeight>ce)&&l.top>c.offsetHeight?V=l.top-c.offsetHeight:l.bottom+c.offsetHeight<=ce&&(V=l.bottom),oe+c.offsetWidth>me&&(oe=me-c.offsetWidth)}c.style.top=V+"px",c.style.left=c.style.right="",O=="right"?(oe=R.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(O=="left"?oe=0:O=="middle"&&(oe=(R.sizer.clientWidth-c.offsetWidth)/2),c.style.left=oe+"px"),y&&zu(this,{left:oe,top:V,right:oe+c.offsetWidth,bottom:V+c.offsetHeight})},triggerOnKeyDown:nn(Cl),triggerOnKeyPress:nn(kf),triggerOnKeyUp:If,triggerOnMouseDown:nn(ua),execCommand:function(l){if(So.hasOwnProperty(l))return So[l].call(null,this)},triggerElectric:nn(function(l){Rl(this,l)}),findPosH:function(l,c,y,w){var O=1;c<0&&(O=-1,c=-c);for(var R=st(this.doc,l),V=0;V<c&&(R=Ll(this.doc,R,O,y,w),!R.hitSide);++V);return R},moveH:nn(function(l,c){var y=this;this.extendSelectionsBy(function(w){return y.display.shift||y.doc.extend||w.empty()?Ll(y.doc,w.head,l,c,y.options.rtlMoveVisually):l<0?w.from():w.to()},Ze)}),deleteH:nn(function(l,c){var y=this.doc.sel,w=this.doc;y.somethingSelected()?w.replaceSelection("",null,"+delete"):Fa(this,function(O){var R=Ll(w,O.head,l,c,!1);return l<0?{from:R,to:O.head}:{from:O.head,to:R}})}),findPosV:function(l,c,y,w){var O=1,R=w;c<0&&(O=-1,c=-c);for(var V=st(this.doc,l),oe=0;oe<c;++oe){var ce=or(this,V,"div");if(R==null?R=ce.left:ce.left=R,V=jf(this,ce,O,y),V.hitSide)break}return V},moveV:nn(function(l,c){var y=this,w=this.doc,O=[],R=!this.display.shift&&!w.extend&&w.sel.somethingSelected();if(w.extendSelectionsBy(function(oe){if(R)return l<0?oe.from():oe.to();var ce=or(y,oe.head,"div");oe.goalColumn!=null&&(ce.left=oe.goalColumn),O.push(ce.left);var me=jf(y,ce,l,c);return c=="page"&&oe==w.sel.primary()&&_s(y,Go(y,me,"div").top-ce.top),me},Ze),O.length)for(var V=0;V<w.sel.ranges.length;V++)w.sel.ranges[V].goalColumn=O[V]}),findWordAt:function(l){var c=this.doc,y=ot(c,l.line).text,w=l.ch,O=l.ch;if(y){var R=this.getHelper(l,"wordChars");(l.sticky=="before"||O==y.length)&&w?--w:++O;for(var V=y.charAt(w),oe=Yt(V,R)?function(ce){return Yt(ce,R)}:/\s/.test(V)?function(ce){return/\s/.test(ce)}:function(ce){return!/\s/.test(ce)&&!Yt(ce)};w>0&&oe(y.charAt(w-1));)--w;for(;O<y.length&&oe(y.charAt(O));)++O}return new Vt(M(l.line,w),M(l.line,O))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ne(this.display.cursorDiv,"CodeMirror-overwrite"):z(this.display.cursorDiv,"CodeMirror-overwrite"),Ke(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ie(_e(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:nn(function(l,c){qa(this,l,c)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Kn(this)-this.display.barHeight,width:l.scrollWidth-Kn(this)-this.display.barWidth,clientHeight:Ws(this),clientWidth:Ki(this)}},scrollIntoView:nn(function(l,c){l==null?(l={from:this.doc.sel.primary().head,to:null},c==null&&(c=this.options.cursorScrollMargin)):typeof l=="number"?l={from:M(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=c||0,l.from.line!=null?$c(this,l):Gu(this,l.from,l.to,l.margin)}),setSize:nn(function(l,c){var y=this,w=function(R){return typeof R=="number"||/^\d+$/.test(String(R))?R+"px":R};l!=null&&(this.display.wrapper.style.width=w(l)),c!=null&&(this.display.wrapper.style.height=w(c)),this.options.lineWrapping&&Ho(this);var O=this.display.viewFrom;this.doc.iter(O,this.display.viewTo,function(R){if(R.widgets){for(var V=0;V<R.widgets.length;V++)if(R.widgets[V].noHScroll){ki(y,O,"widget");break}}++O}),this.curOp.forceUpdate=!0,Ke(this,"refresh",this)}),operation:function(l){return bn(this,l)},startOperation:function(){return Ri(this)},endOperation:function(){return mi(this)},refresh:nn(function(){var l=this.display.cachedTextHeight;dn(this),this.curOp.forceUpdate=!0,Yi(this),qa(this,this.doc.scrollLeft,this.doc.scrollTop),rl(this.display),(l==null||Math.abs(l-ba(this.display))>.5||this.options.lineWrapping)&&Ko(this),Ke(this,"refresh",this)}),swapDoc:nn(function(l){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),nf(this,l),Yi(this),this.display.input.reset(),qa(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Rr(this,"swapDoc",this,c),c}),phrase:function(l){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,l)?c[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},pr(t),t.registerHelper=function(l,c,y){u.hasOwnProperty(l)||(u[l]=t[l]={_global:[]}),u[l][c]=y},t.registerGlobalHelper=function(l,c,y,w){t.registerHelper(l,c,w),u[l]._global.push({pred:y,val:w})}}function Ll(t,i,u,l,c){var y=i,w=u,O=ot(t,i.line),R=c&&t.direction=="rtl"?-u:u;function V(){var Qe=i.line+R;return Qe<t.first||Qe>=t.first+t.size?!1:(i=new M(Qe,i.ch,i.sticky),O=ot(t,Qe))}function oe(Qe){var Je;if(l=="codepoint"){var qe=O.text.charCodeAt(i.ch+(u>0?0:-1));if(isNaN(qe))Je=null;else{var ht=u>0?qe>=55296&&qe<56320:qe>=56320&&qe<57343;Je=new M(i.line,Math.max(0,Math.min(O.text.length,i.ch+u*(ht?2:1))),-u)}}else c?Je=ad(t.cm,O,i,u):Je=Sl(O,i,u);if(Je==null)if(!Qe&&V())i=wl(c,t.cm,O,i.line,R);else return!1;else i=Je;return!0}if(l=="char"||l=="codepoint")oe();else if(l=="column")oe(!0);else if(l=="word"||l=="group")for(var ce=null,me=l=="group",he=t.cm&&t.cm.getHelper(i,"wordChars"),Te=!0;!(u<0&&!oe(!Te));Te=!1){var Le=O.text.charAt(i.ch)||`
|
|
28
|
+
`,ze=Yt(Le,he)?"w":me&&Le==`
|
|
29
|
+
`?"n":!me||/\s/.test(Le)?null:"p";if(me&&!Te&&!ze&&(ze="s"),ce&&ce!=ze){u<0&&(u=1,oe(),i.sticky="after");break}if(ze&&(ce=ze),u>0&&!oe(!Te))break}var Ye=ls(t,i,y,w,!0);return Fe(y,Ye)&&(Ye.hitSide=!0),Ye}function jf(t,i,u,l){var c=t.doc,y=i.left,w;if(l=="page"){var O=Math.min(t.display.wrapper.clientHeight,mt(t).innerHeight||c(t).documentElement.clientHeight),R=Math.max(O-.5*ba(t.display),3);w=(u>0?i.bottom:i.top)+u*R}else l=="line"&&(w=u>0?i.bottom+3:i.top-3);for(var V;V=Qa(t,y,w),!!V.outside;){if(u<0?w<=0:w>=c.height){V.hitSide=!0;break}w+=u*5}return V}var er=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Pe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};er.prototype.init=function(t){var i=this,u=this,l=u.cm,c=u.div=t.lineDiv;c.contentEditable=!0,Df(c,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function y(O){for(var R=O.target;R;R=R.parentNode){if(R==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(R.className))break}return!1}ue(c,"paste",function(O){!y(O)||at(l,O)||Fl(O,l)||F<=11&&setTimeout(Or(l,function(){return i.updateFromDOM()}),20)}),ue(c,"compositionstart",function(O){i.composing={data:O.data,done:!1}}),ue(c,"compositionupdate",function(O){i.composing||(i.composing={data:O.data,done:!1})}),ue(c,"compositionend",function(O){i.composing&&(O.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),ue(c,"touchstart",function(){return u.forceCompositionEnd()}),ue(c,"input",function(){i.composing||i.readFromDOMSoon()});function w(O){if(!(!y(O)||at(l,O))){if(l.somethingSelected())ds({lineWise:!1,text:l.getSelections()}),O.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var R=Nf(l);ds({lineWise:!0,text:R.text}),O.type=="cut"&&l.operation(function(){l.setSelections(R.ranges,0,$e),l.replaceSelection("",null,"cut")})}else return;if(O.clipboardData){O.clipboardData.clearData();var V=Ln.text.join(`
|
|
30
|
+
`);if(O.clipboardData.setData("Text",V),O.clipboardData.getData("Text")==V){O.preventDefault();return}}var oe=Bf(),ce=oe.firstChild;l.display.lineSpace.insertBefore(oe,l.display.lineSpace.firstChild),ce.value=Ln.text.join(`
|
|
31
|
+
`);var me=Ie(c.ownerDocument);tt(ce),setTimeout(function(){l.display.lineSpace.removeChild(oe),me.focus(),me==c&&u.showPrimarySelection()},50)}}ue(c,"copy",w),ue(c,"cut",w)},er.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},er.prototype.prepareSelection=function(){var t=Uu(this.cm,!1);return t.focus=Ie(this.div.ownerDocument)==this.div,t},er.prototype.showSelection=function(t,i){!t||!this.cm.display.view.length||((t.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(t))},er.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},er.prototype.showPrimarySelection=function(){var t=this.getSelection(),i=this.cm,u=i.doc.sel.primary(),l=u.from(),c=u.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||c.line<i.display.viewFrom){t.removeAllRanges();return}var y=Da(i,t.anchorNode,t.anchorOffset),w=Da(i,t.focusNode,t.focusOffset);if(!(y&&!y.bad&&w&&!w.bad&&ae(Nt(y,w),l)==0&&ae(St(y,w),c)==0)){var O=i.display.view,R=l.line>=i.display.viewFrom&&Vf(i,l)||{node:O[0].measure.map[2],offset:0},V=c.line<i.display.viewTo&&Vf(i,c);if(!V){var oe=O[O.length-1].measure,ce=oe.maps?oe.maps[oe.maps.length-1]:oe.map;V={node:ce[ce.length-1],offset:ce[ce.length-2]-ce[ce.length-3]}}if(!R||!V){t.removeAllRanges();return}var me=t.rangeCount&&t.getRangeAt(0),he;try{he=G(R.node,R.offset,V.offset,V.node)}catch(Te){}he&&(!p&&i.state.focused?(t.collapse(R.node,R.offset),he.collapsed||(t.removeAllRanges(),t.addRange(he))):(t.removeAllRanges(),t.addRange(he)),me&&t.anchorNode==null?t.addRange(me):p&&this.startGracePeriod()),this.rememberSelection()}},er.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},er.prototype.showMultipleSelections=function(t){pe(this.cm.display.cursorDiv,t.cursors),pe(this.cm.display.selectionDiv,t.selection)},er.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},er.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var i=t.getRangeAt(0).commonAncestorContainer;return ve(this.div,i)},er.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Ie(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},er.prototype.blur=function(){this.div.blur()},er.prototype.getField=function(){return this.div},er.prototype.supportsTouch=function(){return!0},er.prototype.receivedFocus=function(){var t=this,i=this;this.selectionInEditor()?setTimeout(function(){return t.pollSelection()},20):bn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function u(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,u))}this.polling.set(this.cm.options.pollInterval,u)},er.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},er.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var t=this.getSelection(),i=this.cm;if(L&&Q&&this.cm.display.gutterSpecs.length&&hs(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=Da(i,t.anchorNode,t.anchorOffset),l=Da(i,t.focusNode,t.focusOffset);u&&l&&bn(i,function(){Wr(i.doc,Yn(u,l),$e),(u.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},er.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,i=t.display,u=t.doc.sel.primary(),l=u.from(),c=u.to();if(l.ch==0&&l.line>t.firstLine()&&(l=M(l.line-1,ot(t.doc,l.line-1).length)),c.ch==ot(t.doc,c.line).text.length&&c.line<t.lastLine()&&(c=M(c.line+1,0)),l.line<i.viewFrom||c.line>i.viewTo-1)return!1;var y,w,O;l.line==i.viewFrom||(y=Zi(t,l.line))==0?(w=zt(i.view[0].line),O=i.view[0].node):(w=zt(i.view[y].line),O=i.view[y-1].node.nextSibling);var R=Zi(t,c.line),V,oe;if(R==i.view.length-1?(V=i.viewTo-1,oe=i.lineDiv.lastChild):(V=zt(i.view[R+1].line)-1,oe=i.view[R+1].node.previousSibling),!O)return!1;for(var ce=t.doc.splitLines(Tn(t,O,oe,w,V)),me=ci(t.doc,M(w,0),M(V,ot(t.doc,V).text.length));ce.length>1&&me.length>1;)if(lt(ce)==lt(me))ce.pop(),me.pop(),V--;else if(ce[0]==me[0])ce.shift(),me.shift(),w++;else break;for(var he=0,Te=0,Le=ce[0],ze=me[0],Ye=Math.min(Le.length,ze.length);he<Ye&&Le.charCodeAt(he)==ze.charCodeAt(he);)++he;for(var Qe=lt(ce),Je=lt(me),qe=Math.min(Qe.length-(ce.length==1?he:0),Je.length-(me.length==1?he:0));Te<qe&&Qe.charCodeAt(Qe.length-Te-1)==Je.charCodeAt(Je.length-Te-1);)++Te;if(ce.length==1&&me.length==1&&w==l.line)for(;he&&he>l.ch&&Qe.charCodeAt(Qe.length-Te-1)==Je.charCodeAt(Je.length-Te-1);)he--,Te++;ce[ce.length-1]=Qe.slice(0,Qe.length-Te).replace(/^\u200b+/,""),ce[0]=ce[0].slice(he).replace(/\u200b+$/,"");var ht=M(w,he),dt=M(V,me.length?lt(me).length-Te:0);if(ce.length>1||ce[0]||ae(ht,dt))return Oa(t.doc,ce,ht,dt,"+input"),!0},er.prototype.ensurePolled=function(){this.forceCompositionEnd()},er.prototype.reset=function(){this.forceCompositionEnd()},er.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},er.prototype.readFromDOMSoon=function(){var t=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80))},er.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&bn(this.cm,function(){return dn(t.cm)})},er.prototype.setUneditable=function(t){t.contentEditable="false"},er.prototype.onKeyPress=function(t){t.charCode==0||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Or(this.cm,ps)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0))},er.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},er.prototype.onContextMenu=function(){},er.prototype.resetPosition=function(){},er.prototype.needsContentAttribute=!0;function Vf(t,i){var u=Hs(t,i.line);if(!u||u.hidden)return null;var l=ot(t.doc,i.line),c=Tu(u,l,i.line),y=nt(l,t.doc.direction),w="left";if(y){var O=it(y,i.ch);w=O%2?"right":"left"}var R=ku(c.map,i.ch,w);return R.offset=R.collapse=="right"?R.end:R.start,R}function hs(t){for(var i=t;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function Bi(t,i){return i&&(t.bad=!0),t}function Tn(t,i,u,l,c){var y="",w=!1,O=t.doc.lineSeparator(),R=!1;function V(he){return function(Te){return Te.id==he}}function oe(){w&&(y+=O,R&&(y+=O),w=R=!1)}function ce(he){he&&(oe(),y+=he)}function me(he){if(he.nodeType==1){var Te=he.getAttribute("cm-text");if(Te){ce(Te);return}var Le=he.getAttribute("cm-marker"),ze;if(Le){var Ye=t.findMarks(M(l,0),M(c+1,0),V(+Le));Ye.length&&(ze=Ye[0].find(0))&&ce(ci(t.doc,ze.from,ze.to).join(O));return}if(he.getAttribute("contenteditable")=="false")return;var Qe=/^(pre|div|p|li|table|br)$/i.test(he.nodeName);if(!/^br$/i.test(he.nodeName)&&he.textContent.length==0)return;Qe&&oe();for(var Je=0;Je<he.childNodes.length;Je++)me(he.childNodes[Je]);/^(pre|p)$/i.test(he.nodeName)&&(R=!0),Qe&&(w=!0)}else he.nodeType==3&&ce(he.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;me(i),i!=u;)i=i.nextSibling,R=!1;return y}function Da(t,i,u){var l;if(i==t.display.lineDiv){if(l=t.display.lineDiv.childNodes[u],!l)return Bi(t.clipPos(M(t.display.viewTo-1)),!0);i=null,u=0}else for(l=i;;l=l.parentNode){if(!l||l==t.display.lineDiv)return null;if(l.parentNode&&l.parentNode==t.display.lineDiv)break}for(var c=0;c<t.display.view.length;c++){var y=t.display.view[c];if(y.node==l)return xi(y,i,u)}}function xi(t,i,u){var l=t.text.firstChild,c=!1;if(!i||!ve(l,i))return Bi(M(zt(t.line),0),!0);if(i==l&&(c=!0,i=l.childNodes[u],u=0,!i)){var y=t.rest?lt(t.rest):t.line;return Bi(M(zt(y),y.text.length),c)}var w=i.nodeType==3?i:null,O=i;for(!w&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(w=i.firstChild,u&&(u=w.nodeValue.length));O.parentNode!=l;)O=O.parentNode;var R=t.measure,V=R.maps;function oe(ze,Ye,Qe){for(var Je=-1;Je<(V?V.length:0);Je++)for(var qe=Je<0?R.map:V[Je],ht=0;ht<qe.length;ht+=3){var dt=qe[ht+2];if(dt==ze||dt==Ye){var Mt=zt(Je<0?t.line:t.rest[Je]),tr=qe[ht]+Qe;return(Qe<0||dt!=ze)&&(tr=qe[ht+(Qe?1:0)]),M(Mt,tr)}}}var ce=oe(w,O,u);if(ce)return Bi(ce,c);for(var me=O.nextSibling,he=w?w.nodeValue.length-u:0;me;me=me.nextSibling){if(ce=oe(me,me.firstChild,0),ce)return Bi(M(ce.line,ce.ch-he),c);he+=me.textContent.length}for(var Te=O.previousSibling,Le=u;Te;Te=Te.previousSibling){if(ce=oe(Te,Te.firstChild,-1),ce)return Bi(M(ce.line,ce.ch+Le),c);Le+=Te.textContent.length}}var vr=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Pe,this.hasSelection=!1,this.composing=null,this.resetting=!1};vr.prototype.init=function(t){var i=this,u=this,l=this.cm;this.createField(t);var c=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),Y&&(c.style.width="0px"),ue(c,"input",function(){E&&F>=9&&i.hasSelection&&(i.hasSelection=null),u.poll()}),ue(c,"paste",function(w){at(l,w)||Fl(w,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function y(w){if(!at(l,w)){if(l.somethingSelected())ds({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var O=Nf(l);ds({lineWise:!0,text:O.text}),w.type=="cut"?l.setSelections(O.ranges,null,$e):(u.prevInput="",c.value=O.text.join(`
|
|
32
|
+
`),tt(c))}else return;w.type=="cut"&&(l.state.cutIncoming=+new Date)}}ue(c,"cut",y),ue(c,"copy",y),ue(t.scroller,"paste",function(w){if(!(Er(t,w)||at(l,w))){if(!c.dispatchEvent){l.state.pasteIncoming=+new Date,u.focus();return}var O=new Event("paste");O.clipboardData=w.clipboardData,c.dispatchEvent(O)}}),ue(t.lineSpace,"selectstart",function(w){Er(t,w)||Lt(w)}),ue(c,"compositionstart",function(){var w=l.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:w,range:l.markText(w,l.getCursor("to"),{className:"CodeMirror-composing"})}}),ue(c,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},vr.prototype.createField=function(t){this.wrapper=Bf(),this.textarea=this.wrapper.firstChild},vr.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},vr.prototype.prepareSelection=function(){var t=this.cm,i=t.display,u=t.doc,l=Uu(t);if(t.options.moveInputWithCursor){var c=or(t,u.sel.primary().head,"div"),y=i.wrapper.getBoundingClientRect(),w=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,c.top+w.top-y.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,c.left+w.left-y.left))}return l},vr.prototype.showSelection=function(t){var i=this.cm,u=i.display;pe(u.cursorDiv,t.cursors),pe(u.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},vr.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing&&t)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var u=i.getSelection();this.textarea.value=u,i.state.focused&&tt(this.textarea),E&&F>=9&&(this.hasSelection=u)}else t||(this.prevInput=this.textarea.value="",E&&F>=9&&(this.hasSelection=null));this.resetting=!1}},vr.prototype.getField=function(){return this.textarea},vr.prototype.supportsTouch=function(){return!1},vr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!C||Ie(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(t){}},vr.prototype.blur=function(){this.textarea.blur()},vr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},vr.prototype.receivedFocus=function(){this.slowPoll()},vr.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},vr.prototype.fastPoll=function(){var t=!1,i=this;i.pollingFast=!0;function u(){var l=i.poll();!l&&!t?(t=!0,i.polling.set(60,u)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,u)},vr.prototype.poll=function(){var t=this,i=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Oi(u)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var c=u.value;if(c==l&&!i.somethingSelected())return!1;if(E&&F>=9&&this.hasSelection===c||k&&/[\uf700-\uf7ff]/.test(c))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var y=c.charCodeAt(0);if(y==8203&&!l&&(l="\u200B"),y==8666)return this.reset(),this.cm.execCommand("undo")}for(var w=0,O=Math.min(l.length,c.length);w<O&&l.charCodeAt(w)==c.charCodeAt(w);)++w;return bn(i,function(){ps(i,c.slice(w),l.length-w,null,t.composing?"*compose":null),c.length>1e3||c.indexOf(`
|
|
33
|
+
`)>-1?u.value=t.prevInput="":t.prevInput=c,t.composing&&(t.composing.range.clear(),t.composing.range=i.markText(t.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},vr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},vr.prototype.onKeyPress=function(){E&&F>=9&&(this.hasSelection=null),this.fastPoll()},vr.prototype.onContextMenu=function(t){var i=this,u=i.cm,l=u.display,c=i.textarea;i.contextMenuPending&&i.contextMenuPending();var y=Qi(u,t),w=l.scroller.scrollTop;if(!y||K)return;var O=u.options.resetSelectionOnContextMenu;O&&u.doc.sel.contains(y)==-1&&Or(u,Wr)(u.doc,Yn(y),$e);var R=c.style.cssText,V=i.wrapper.style.cssText,oe=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
34
|
+
top: `+(t.clientY-oe.top-5)+"px; left: "+(t.clientX-oe.left-5)+`px;
|
|
35
|
+
z-index: 1000; background: `+(E?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
36
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ce;U&&(ce=c.ownerDocument.defaultView.scrollY),l.input.focus(),U&&c.ownerDocument.defaultView.scrollTo(null,ce),l.input.reset(),u.somethingSelected()||(c.value=i.prevInput=" "),i.contextMenuPending=he,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function me(){if(c.selectionStart!=null){var Le=u.somethingSelected(),ze="\u200B"+(Le?c.value:"");c.value="\u21DA",c.value=ze,i.prevInput=Le?"":"\u200B",c.selectionStart=1,c.selectionEnd=ze.length,l.selForContextMenu=u.doc.sel}}function he(){if(i.contextMenuPending==he&&(i.contextMenuPending=!1,i.wrapper.style.cssText=V,c.style.cssText=R,E&&F<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=w),c.selectionStart!=null)){(!E||E&&F<9)&&me();var Le=0,ze=function(){l.selForContextMenu==u.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&i.prevInput=="\u200B"?Or(u,pl)(u):Le++<10?l.detectingSelectAll=setTimeout(ze,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ze,200)}}if(E&&F>=9&&me(),re){Yr(t);var Te=function(){Be(window,"mouseup",Te),setTimeout(he,20)};ue(window,"mouseup",Te)}else setTimeout(he,50)},vr.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},vr.prototype.setUneditable=function(){},vr.prototype.needsContentAttribute=!1;function Uf(t,i){if(i=i?Oe(i):{},i.value=t.value,!i.tabindex&&t.tabIndex&&(i.tabindex=t.tabIndex),!i.placeholder&&t.placeholder&&(i.placeholder=t.placeholder),i.autofocus==null){var u=Ie(t.ownerDocument);i.autofocus=u==t||t.getAttribute("autofocus")!=null&&u==document.body}function l(){t.value=O.getValue()}var c;if(t.form&&(ue(t.form,"submit",l),!i.leaveSubmitMethodAlone)){var y=t.form;c=y.submit;try{var w=y.submit=function(){l(),y.submit=c,y.submit(),y.submit=w}}catch(R){}}i.finishInit=function(R){R.save=l,R.getTextArea=function(){return t},R.toTextArea=function(){R.toTextArea=isNaN,l(),t.parentNode.removeChild(R.getWrapperElement()),t.style.display="",t.form&&(Be(t.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=c))}},t.style.display="none";var O=ur(function(R){return t.parentNode.insertBefore(R,t.nextSibling)},i);return O}function xp(t){t.off=Be,t.on=ue,t.wheelEventPixels=Mi,t.Doc=on,t.splitLines=Vr,t.countColumn=Ue,t.findColumn=Ct,t.isWordChar=xr,t.Pass=rt,t.signal=Ke,t.Line=Ti,t.changeEnd=ni,t.scrollbarModel=Ku,t.Pos=M,t.cmpPos=ae,t.modes=Cn,t.mimeModes=En,t.resolveMode=zn,t.getMode=fn,t.modeExtensions=Sr,t.extendMode=fi,t.copyState=kn,t.startState=No,t.innerMode=va,t.commands=So,t.keyMap=bi,t.keyName=Cf,t.isModifierKey=Af,t.lookupKey=ka,t.normalizeKeyMap=id,t.StringStream=sr,t.SharedTextMarker=mo,t.TextMarker=yi,t.LineWidget=ho,t.e_preventDefault=Lt,t.e_stopPropagation=jt,t.e_stop=Yr,t.addClass=Ne,t.contains=ve,t.rmClass=z,t.keyNames=Di}Lf(ur),fa(ur);var Ml="iter insert remove copy getEditor constructor".split(" ");for(var Oo in on.prototype)on.prototype.hasOwnProperty(Oo)&&Ce(Ml,Oo)<0&&(ur.prototype[Oo]=function(t){return function(){return t.apply(this.doc,arguments)}}(on.prototype[Oo]));return pr(on),ur.inputStyles={textarea:vr,contenteditable:er},ur.defineMode=function(t){!ur.defaults.mode&&t!="null"&&(ur.defaults.mode=t),In.apply(this,arguments)},ur.defineMIME=Ha,ur.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),ur.defineMIME("text/plain","null"),ur.defineExtension=function(t,i){ur.prototype[t]=i},ur.defineDocExtension=function(t,i){on.prototype[t]=i},ur.fromTextArea=Uf,xp(ur),ur.version="5.65.9",ur})},49055:(v,T,s)=>{(function(p){p(s(23326))})(function(p){"use strict";p.defineMode("javascript",function(S,A){var h=S.indentUnit,E=A.statementIndent,F=A.jsonld,U=A.json||F,_=A.trackScope!==!1,Q=A.typescript,le=A.wordCharacters||/[\w$\xa1-\uffff]/,K=function(){function M(st){return{type:st,style:"keyword"}}var ae=M("keyword a"),Fe=M("keyword b"),He=M("keyword c"),St=M("keyword d"),Nt=M("operator"),Gt={type:"atom",style:"atom"};return{if:M("if"),while:ae,with:ae,else:Fe,do:Fe,try:Fe,finally:Fe,return:St,break:St,continue:St,new:M("new"),delete:He,void:He,throw:He,debugger:M("debugger"),var:M("var"),const:M("var"),let:M("var"),function:M("function"),catch:M("catch"),for:M("for"),switch:M("switch"),case:M("case"),default:M("default"),in:Nt,typeof:Nt,instanceof:Nt,true:Gt,false:Gt,null:Gt,undefined:Gt,NaN:Gt,Infinity:Gt,this:M("this"),class:M("class"),super:M("atom"),yield:He,export:M("export"),import:M("import"),extends:He,await:He}}(),ne=/[+\-*&%=<>!?|~^@]/,$=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function P(M){for(var ae=!1,Fe,He=!1;(Fe=M.next())!=null;){if(!ae){if(Fe=="/"&&!He)return;Fe=="["?He=!0:He&&Fe=="]"&&(He=!1)}ae=!ae&&Fe=="\\"}}var Y,L;function C(M,ae,Fe){return Y=M,L=Fe,ae}function k(M,ae){var Fe=M.next();if(Fe=='"'||Fe=="'")return ae.tokenize=B(Fe),ae.tokenize(M,ae);if(Fe=="."&&M.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(Fe=="."&&M.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Fe))return C(Fe);if(Fe=="="&&M.eat(">"))return C("=>","operator");if(Fe=="0"&&M.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(Fe))return M.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(Fe=="/")return M.eat("*")?(ae.tokenize=X,X(M,ae)):M.eat("/")?(M.skipToEnd(),C("comment","comment")):pi(M,ae,1)?(P(M),M.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(M.eat("="),C("operator","operator",M.current()));if(Fe=="`")return ae.tokenize=H,H(M,ae);if(Fe=="#"&&M.peek()=="!")return M.skipToEnd(),C("meta","meta");if(Fe=="#"&&M.eatWhile(le))return C("variable","property");if(Fe=="<"&&M.match("!--")||Fe=="-"&&M.match("->")&&!/\S/.test(M.string.slice(0,M.start)))return M.skipToEnd(),C("comment","comment");if(ne.test(Fe))return(Fe!=">"||!ae.lexical||ae.lexical.type!=">")&&(M.eat("=")?(Fe=="!"||Fe=="=")&&M.eat("="):/[<>*+\-|&?]/.test(Fe)&&(M.eat(Fe),Fe==">"&&M.eat(Fe))),Fe=="?"&&M.eat(".")?C("."):C("operator","operator",M.current());if(le.test(Fe)){M.eatWhile(le);var He=M.current();if(ae.lastType!="."){if(K.propertyIsEnumerable(He)){var St=K[He];return C(St.type,St.style,He)}if(He=="async"&&M.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",He)}return C("variable","variable",He)}}function B(M){return function(ae,Fe){var He=!1,St;if(F&&ae.peek()=="@"&&ae.match($))return Fe.tokenize=k,C("jsonld-keyword","meta");for(;(St=ae.next())!=null&&!(St==M&&!He);)He=!He&&St=="\\";return He||(Fe.tokenize=k),C("string","string")}}function X(M,ae){for(var Fe=!1,He;He=M.next();){if(He=="/"&&Fe){ae.tokenize=k;break}Fe=He=="*"}return C("comment","comment")}function H(M,ae){for(var Fe=!1,He;(He=M.next())!=null;){if(!Fe&&(He=="`"||He=="$"&&M.eat("{"))){ae.tokenize=k;break}Fe=!Fe&&He=="\\"}return C("quasi","string-2",M.current())}var D="([{}])";function re(M,ae){ae.fatArrowAt&&(ae.fatArrowAt=null);var Fe=M.string.indexOf("=>",M.start);if(!(Fe<0)){if(Q){var He=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(M.string.slice(M.start,Fe));He&&(Fe=He.index)}for(var St=0,Nt=!1,Gt=Fe-1;Gt>=0;--Gt){var st=M.string.charAt(Gt),Fn=D.indexOf(st);if(Fn>=0&&Fn<3){if(!St){++Gt;break}if(--St==0){st=="("&&(Nt=!0);break}}else if(Fn>=3&&Fn<6)++St;else if(le.test(st))Nt=!0;else if(/["'\/`]/.test(st))for(;;--Gt){if(Gt==0)return;var Jt=M.string.charAt(Gt-1);if(Jt==st&&M.string.charAt(Gt-2)!="\\"){Gt--;break}}else if(Nt&&!St){++Gt;break}}Nt&&!St&&(ae.fatArrowAt=Gt)}}var J={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function z(M,ae,Fe,He,St,Nt){this.indented=M,this.column=ae,this.type=Fe,this.prev=St,this.info=Nt,He!=null&&(this.align=He)}function fe(M,ae){if(!_)return!1;for(var Fe=M.localVars;Fe;Fe=Fe.next)if(Fe.name==ae)return!0;for(var He=M.context;He;He=He.prev)for(var Fe=He.vars;Fe;Fe=Fe.next)if(Fe.name==ae)return!0}function pe(M,ae,Fe,He,St){var Nt=M.cc;for(q.state=M,q.stream=St,q.marked=null,q.cc=Nt,q.style=ae,M.lexical.hasOwnProperty("align")||(M.lexical.align=!0);;){var Gt=Nt.length?Nt.pop():U?et:rt;if(Gt(Fe,He)){for(;Nt.length&&Nt[Nt.length-1].lex;)Nt.pop()();return q.marked?q.marked:Fe=="variable"&&fe(M,He)?"variable-2":ae}}}var q={state:null,column:null,marked:null,cc:null};function Z(){for(var M=arguments.length-1;M>=0;M--)q.cc.push(arguments[M])}function G(){return Z.apply(null,arguments),!0}function ve(M,ae){for(var Fe=ae;Fe;Fe=Fe.next)if(Fe.name==M)return!0;return!1}function Ie(M){var ae=q.state;if(q.marked="def",!!_){if(ae.context){if(ae.lexical.info=="var"&&ae.context&&ae.context.block){var Fe=Ne(M,ae.context);if(Fe!=null){ae.context=Fe;return}}else if(!ve(M,ae.localVars)){ae.localVars=new _e(M,ae.localVars);return}}A.globalVars&&!ve(M,ae.globalVars)&&(ae.globalVars=new _e(M,ae.globalVars))}}function Ne(M,ae){if(ae)if(ae.block){var Fe=Ne(M,ae.prev);return Fe?Fe==ae.prev?ae:new tt(Fe,ae.vars,!0):null}else return ve(M,ae.vars)?ae:new tt(ae.prev,new _e(M,ae.vars),!1);else return null}function je(M){return M=="public"||M=="private"||M=="protected"||M=="abstract"||M=="readonly"}function tt(M,ae,Fe){this.prev=M,this.vars=ae,this.block=Fe}function _e(M,ae){this.name=M,this.next=ae}var mt=new _e("this",new _e("arguments",null));function De(){q.state.context=new tt(q.state.context,q.state.localVars,!1),q.state.localVars=mt}function Oe(){q.state.context=new tt(q.state.context,q.state.localVars,!0),q.state.localVars=null}De.lex=Oe.lex=!0;function Ue(){q.state.localVars=q.state.context.vars,q.state.context=q.state.context.prev}Ue.lex=!0;function Pe(M,ae){var Fe=function(){var He=q.state,St=He.indented;if(He.lexical.type=="stat")St=He.lexical.indented;else for(var Nt=He.lexical;Nt&&Nt.type==")"&&Nt.align;Nt=Nt.prev)St=Nt.indented;He.lexical=new z(St,q.stream.column(),M,null,He.lexical,ae)};return Fe.lex=!0,Fe}function Ce(){var M=q.state;M.lexical.prev&&(M.lexical.type==")"&&(M.indented=M.lexical.indented),M.lexical=M.lexical.prev)}Ce.lex=!0;function Ge(M){function ae(Fe){return Fe==M?G():M==";"||Fe=="}"||Fe==")"||Fe=="]"?Z():G(ae)}return ae}function rt(M,ae){return M=="var"?G(Pe("vardef",ae),si,Ge(";"),Ce):M=="keyword a"?G(Pe("form"),Ct,rt,Ce):M=="keyword b"?G(Pe("form"),rt,Ce):M=="keyword d"?q.stream.match(/^\s*$/,!1)?G():G(Pe("stat"),Zt,Ge(";"),Ce):M=="debugger"?G(Ge(";")):M=="{"?G(Pe("}"),Oe,Et,Ce,Ue):M==";"?G():M=="if"?(q.state.lexical.info=="else"&&q.state.cc[q.state.cc.length-1]==Ce&&q.state.cc.pop()(),G(Pe("form"),Ct,rt,Ce,Vr)):M=="function"?G(mn):M=="for"?G(Pe("form"),Oe,Oi,rt,Ue,Ce):M=="class"||Q&&ae=="interface"?(q.marked="keyword",G(Pe("form",M=="class"?M:ae),zn,Ce)):M=="variable"?Q&&ae=="declare"?(q.marked="keyword",G(rt)):Q&&(ae=="module"||ae=="enum"||ae=="type")&&q.stream.match(/^\s*\w/,!1)?(q.marked="keyword",ae=="enum"?G(zt):ae=="type"?G(En,Ge("operator"),Be,Ge(";")):G(Pe("form"),en,Ge("{"),Pe("}"),Et,Ce,Ce)):Q&&ae=="namespace"?(q.marked="keyword",G(Pe("form"),et,rt,Ce)):Q&&ae=="abstract"?(q.marked="keyword",G(rt)):G(Pe("stat"),Xe):M=="switch"?G(Pe("form"),Ct,Ge("{"),Pe("}","switch"),Oe,Et,Ce,Ce,Ue):M=="case"?G(et,Ge(":")):M=="default"?G(Ge(":")):M=="catch"?G(Pe("form"),De,$e,rt,Ce,Ue):M=="export"?G(Pe("stat"),kn,Ce):M=="import"?G(Pe("stat"),No,Ce):M=="async"?G(rt):ae=="@"?G(et,rt):Z(Pe("stat"),et,Ge(";"),Ce)}function $e(M){if(M=="(")return G(In,Ge(")"))}function et(M,ae){return kt(M,ae,!1)}function Ze(M,ae){return kt(M,ae,!0)}function Ct(M){return M!="("?Z():G(Pe(")"),Zt,Ge(")"),Ce)}function kt(M,ae,Fe){if(q.state.fatArrowAt==q.stream.start){var He=Fe?qr:br;if(M=="(")return G(De,Pe(")"),ct(In,")"),Ce,Ge("=>"),He,Ue);if(M=="variable")return Z(De,en,Ge("=>"),He,Ue)}var St=Fe?xt:lt;return J.hasOwnProperty(M)?G(St):M=="function"?G(mn,St):M=="class"||Q&&ae=="interface"?(q.marked="keyword",G(Pe("form"),Ha,Ce)):M=="keyword c"||M=="async"?G(Fe?Ze:et):M=="("?G(Pe(")"),Zt,Ge(")"),Ce,St):M=="operator"||M=="spread"?G(Fe?Ze:et):M=="["?G(Pe("]"),cn,Ce,St):M=="{"?it(Tt,"}",null,St):M=="quasi"?Z(Ft,St):M=="new"?G(xr(Fe)):G()}function Zt(M){return M.match(/[;\}\)\],]/)?Z():Z(et)}function lt(M,ae){return M==","?G(Zt):xt(M,ae,!1)}function xt(M,ae,Fe){var He=Fe==!1?lt:xt,St=Fe==!1?et:Ze;if(M=="=>")return G(De,Fe?qr:br,Ue);if(M=="operator")return/\+\+|--/.test(ae)||Q&&ae=="!"?G(He):Q&&ae=="<"&&q.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?G(Pe(">"),ct(Be,">"),Ce,He):ae=="?"?G(et,Ge(":"),St):G(St);if(M=="quasi")return Z(Ft,He);if(M!=";"){if(M=="(")return it(Ze,")","call",He);if(M==".")return G(gt,He);if(M=="[")return G(Pe("]"),Zt,Ge("]"),Ce,He);if(Q&&ae=="as")return q.marked="keyword",G(Be,He);if(M=="regexp")return q.state.lastType=q.marked="operator",q.stream.backUp(q.stream.pos-q.stream.start-1),G(St)}}function Ft(M,ae){return M!="quasi"?Z():ae.slice(ae.length-2)!="${"?G(Ft):G(Zt,Kr)}function Kr(M){if(M=="}")return q.marked="string-2",q.state.tokenize=H,G(Ft)}function br(M){return re(q.stream,q.state),Z(M=="{"?rt:et)}function qr(M){return re(q.stream,q.state),Z(M=="{"?rt:Ze)}function xr(M){return function(ae){return ae=="."?G(M?dr:Yt):ae=="variable"&&Q?G(_n,M?xt:lt):Z(M?Ze:et)}}function Yt(M,ae){if(ae=="target")return q.marked="keyword",G(lt)}function dr(M,ae){if(ae=="target")return q.marked="keyword",G(xt)}function Xe(M){return M==":"?G(Ce,rt):Z(lt,Ge(";"),Ce)}function gt(M){if(M=="variable")return q.marked="property",G()}function Tt(M,ae){if(M=="async")return q.marked="property",G(Tt);if(M=="variable"||q.style=="keyword"){if(q.marked="property",ae=="get"||ae=="set")return G(At);var Fe;return Q&&q.state.fatArrowAt==q.stream.start&&(Fe=q.stream.match(/^\s*:\s*/,!1))&&(q.state.fatArrowAt=q.stream.pos+Fe[0].length),G(Ot)}else{if(M=="number"||M=="string")return q.marked=F?"property":q.style+" property",G(Ot);if(M=="jsonld-keyword")return G(Ot);if(Q&&je(ae))return q.marked="keyword",G(Tt);if(M=="[")return G(et,nt,Ge("]"),Ot);if(M=="spread")return G(Ze,Ot);if(ae=="*")return q.marked="keyword",G(Tt);if(M==":")return Z(Ot)}}function At(M){return M!="variable"?Z(Ot):(q.marked="property",G(mn))}function Ot(M){if(M==":")return G(Ze);if(M=="(")return Z(mn)}function ct(M,ae,Fe){function He(St,Nt){if(Fe?Fe.indexOf(St)>-1:St==","){var Gt=q.state.lexical;return Gt.info=="call"&&(Gt.pos=(Gt.pos||0)+1),G(function(st,Fn){return st==ae||Fn==ae?Z():Z(M)},He)}return St==ae||Nt==ae?G():Fe&&Fe.indexOf(";")>-1?Z(M):G(Ge(ae))}return function(St,Nt){return St==ae||Nt==ae?G():Z(M,He)}}function it(M,ae,Fe){for(var He=3;He<arguments.length;He++)q.cc.push(arguments[He]);return G(Pe(ae,Fe),ct(M,ae),Ce)}function Et(M){return M=="}"?G():Z(rt,Et)}function nt(M,ae){if(Q){if(M==":")return G(Be);if(ae=="?")return G(nt)}}function Ve(M,ae){if(Q&&(M==":"||ae=="in"))return G(Be)}function ue(M){if(Q&&M==":")return q.stream.match(/^\s*\w+\s+is\b/,!1)?G(et,ge,Be):G(Be)}function ge(M,ae){if(ae=="is")return q.marked="keyword",G()}function Be(M,ae){if(ae=="keyof"||ae=="typeof"||ae=="infer"||ae=="readonly")return q.marked="keyword",G(ae=="typeof"?Ze:Be);if(M=="variable"||ae=="void")return q.marked="type",G(jt);if(ae=="|"||ae=="&")return G(Be);if(M=="string"||M=="number"||M=="atom")return G(jt);if(M=="[")return G(Pe("]"),ct(Be,"]",","),Ce,jt);if(M=="{")return G(Pe("}"),at,Ce,jt);if(M=="(")return G(ct(Lt,")"),Ke,jt);if(M=="<")return G(ct(Be,">"),Be);if(M=="quasi")return Z(Rt,jt)}function Ke(M){if(M=="=>")return G(Be)}function at(M){return M.match(/[\}\)\]]/)?G():M==","||M==";"?G(at):Z(bt,at)}function bt(M,ae){if(M=="variable"||q.style=="keyword")return q.marked="property",G(bt);if(ae=="?"||M=="number"||M=="string")return G(bt);if(M==":")return G(Be);if(M=="[")return G(Ge("variable"),Ve,Ge("]"),bt);if(M=="(")return Z(Cn,bt);if(!M.match(/[;\}\)\],]/))return G()}function Rt(M,ae){return M!="quasi"?Z():ae.slice(ae.length-2)!="${"?G(Rt):G(Be,pr)}function pr(M){if(M=="}")return q.marked="string-2",q.state.tokenize=H,G(Rt)}function Lt(M,ae){return M=="variable"&&q.stream.match(/^\s*[?:]/,!1)||ae=="?"?G(Lt):M==":"?G(Be):M=="spread"?G(Lt):Z(Be)}function jt(M,ae){if(ae=="<")return G(Pe(">"),ct(Be,">"),Ce,jt);if(ae=="|"||M=="."||ae=="&")return G(Be);if(M=="[")return G(Be,Ge("]"),jt);if(ae=="extends"||ae=="implements")return q.marked="keyword",G(Be);if(ae=="?")return G(Be,Ge(":"),Be)}function _n(M,ae){if(ae=="<")return G(Pe(">"),ct(Be,">"),Ce,jt)}function Yr(){return Z(Be,Jr)}function Jr(M,ae){if(ae=="=")return G(Be)}function si(M,ae){return ae=="enum"?(q.marked="keyword",G(zt)):Z(en,nt,tn,Pn)}function en(M,ae){if(Q&&je(ae))return q.marked="keyword",G(en);if(M=="variable")return Ie(ae),G();if(M=="spread")return G(en);if(M=="[")return it(ui,"]");if(M=="{")return it(li,"}")}function li(M,ae){return M=="variable"&&!q.stream.match(/^\s*:/,!1)?(Ie(ae),G(tn)):(M=="variable"&&(q.marked="property"),M=="spread"?G(en):M=="}"?Z():M=="["?G(et,Ge("]"),Ge(":"),li):G(Ge(":"),en,tn))}function ui(){return Z(en,tn)}function tn(M,ae){if(ae=="=")return G(Ze)}function Pn(M){if(M==",")return G(si)}function Vr(M,ae){if(M=="keyword b"&&ae=="else")return G(Pe("form","else"),rt,Ce)}function Oi(M,ae){if(ae=="await")return G(Oi);if(M=="(")return G(Pe(")"),ha,Ce)}function ha(M){return M=="var"?G(si,An):M=="variable"?G(An):Z(An)}function An(M,ae){return M==")"?G():M==";"?G(An):ae=="in"||ae=="of"?(q.marked="keyword",G(et,An)):Z(et,An)}function mn(M,ae){if(ae=="*")return q.marked="keyword",G(mn);if(M=="variable")return Ie(ae),G(mn);if(M=="(")return G(De,Pe(")"),ct(In,")"),Ce,ue,rt,Ue);if(Q&&ae=="<")return G(Pe(">"),ct(Yr,">"),Ce,mn)}function Cn(M,ae){if(ae=="*")return q.marked="keyword",G(Cn);if(M=="variable")return Ie(ae),G(Cn);if(M=="(")return G(De,Pe(")"),ct(In,")"),Ce,ue,Ue);if(Q&&ae=="<")return G(Pe(">"),ct(Yr,">"),Ce,Cn)}function En(M,ae){if(M=="keyword"||M=="variable")return q.marked="type",G(En);if(ae=="<")return G(Pe(">"),ct(Yr,">"),Ce)}function In(M,ae){return ae=="@"&&G(et,In),M=="spread"?G(In):Q&&je(ae)?(q.marked="keyword",G(In)):Q&&M=="this"?G(nt,tn):Z(en,nt,tn)}function Ha(M,ae){return M=="variable"?zn(M,ae):fn(M,ae)}function zn(M,ae){if(M=="variable")return Ie(ae),G(fn)}function fn(M,ae){if(ae=="<")return G(Pe(">"),ct(Yr,">"),Ce,fn);if(ae=="extends"||ae=="implements"||Q&&M==",")return ae=="implements"&&(q.marked="keyword"),G(Q?Be:et,fn);if(M=="{")return G(Pe("}"),Sr,Ce)}function Sr(M,ae){if(M=="async"||M=="variable"&&(ae=="static"||ae=="get"||ae=="set"||Q&&je(ae))&&q.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return q.marked="keyword",G(Sr);if(M=="variable"||q.style=="keyword")return q.marked="property",G(fi,Sr);if(M=="number"||M=="string")return G(fi,Sr);if(M=="[")return G(et,nt,Ge("]"),fi,Sr);if(ae=="*")return q.marked="keyword",G(Sr);if(Q&&M=="(")return Z(Cn,Sr);if(M==";"||M==",")return G(Sr);if(M=="}")return G();if(ae=="@")return G(et,Sr)}function fi(M,ae){if(ae=="!"||ae=="?")return G(fi);if(M==":")return G(Be,tn);if(ae=="=")return G(Ze);var Fe=q.state.lexical.prev,He=Fe&&Fe.info=="interface";return Z(He?Cn:mn)}function kn(M,ae){return ae=="*"?(q.marked="keyword",G(zi,Ge(";"))):ae=="default"?(q.marked="keyword",G(et,Ge(";"))):M=="{"?G(ct(va,"}"),zi,Ge(";")):Z(rt)}function va(M,ae){if(ae=="as")return q.marked="keyword",G(Ge("variable"));if(M=="variable")return Z(Ze,va)}function No(M){return M=="string"?G():M=="("?Z(et):M=="."?Z(lt):Z(sr,ot,zi)}function sr(M,ae){return M=="{"?it(sr,"}"):(M=="variable"&&Ie(ae),ae=="*"&&(q.marked="keyword"),G(ci))}function ot(M){if(M==",")return G(sr,ot)}function ci(M,ae){if(ae=="as")return q.marked="keyword",G(sr)}function zi(M,ae){if(ae=="from")return q.marked="keyword",G(et)}function cn(M){return M=="]"?G():Z(ct(Ze,"]"))}function zt(){return Z(Pe("form"),en,Ge("{"),Pe("}"),ct(di,"}"),Ce,Ce)}function di(){return Z(en,tn)}function Gi(M,ae){return M.lastType=="operator"||M.lastType==","||ne.test(ae.charAt(0))||/[,.]/.test(ae.charAt(0))}function pi(M,ae,Fe){return ae.tokenize==k&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(ae.lastType)||ae.lastType=="quasi"&&/\{\s*$/.test(M.string.slice(0,M.pos-(Fe||0)))}return{startState:function(M){var ae={tokenize:k,lastType:"sof",cc:[],lexical:new z((M||0)-h,0,"block",!1),localVars:A.localVars,context:A.localVars&&new tt(null,null,!1),indented:M||0};return A.globalVars&&typeof A.globalVars=="object"&&(ae.globalVars=A.globalVars),ae},token:function(M,ae){if(M.sol()&&(ae.lexical.hasOwnProperty("align")||(ae.lexical.align=!1),ae.indented=M.indentation(),re(M,ae)),ae.tokenize!=X&&M.eatSpace())return null;var Fe=ae.tokenize(M,ae);return Y=="comment"?Fe:(ae.lastType=Y=="operator"&&(L=="++"||L=="--")?"incdec":Y,pe(ae,Fe,Y,L,M))},indent:function(M,ae){if(M.tokenize==X||M.tokenize==H)return p.Pass;if(M.tokenize!=k)return 0;var Fe=ae&&ae.charAt(0),He=M.lexical,St;if(!/^\s*else\b/.test(ae))for(var Nt=M.cc.length-1;Nt>=0;--Nt){var Gt=M.cc[Nt];if(Gt==Ce)He=He.prev;else if(Gt!=Vr&&Gt!=Ue)break}for(;(He.type=="stat"||He.type=="form")&&(Fe=="}"||(St=M.cc[M.cc.length-1])&&(St==lt||St==xt)&&!/^[,\.=+\-*:?[\(]/.test(ae));)He=He.prev;E&&He.type==")"&&He.prev.type=="stat"&&(He=He.prev);var st=He.type,Fn=Fe==st;return st=="vardef"?He.indented+(M.lastType=="operator"||M.lastType==","?He.info.length+1:0):st=="form"&&Fe=="{"?He.indented:st=="form"?He.indented+h:st=="stat"?He.indented+(Gi(M,ae)?E||h:0):He.info=="switch"&&!Fn&&A.doubleIndentSwitch!=!1?He.indented+(/^(?:case|default)\b/.test(ae)?h:2*h):He.align?He.column+(Fn?0:1):He.indented+(Fn?0:h)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:U?null:"/*",blockCommentEnd:U?null:"*/",blockCommentContinue:U?null:" * ",lineComment:U?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:U?"json":"javascript",jsonldMode:F,jsonMode:U,expressionAllowed:pi,skipExpression:function(M){pe(M,"atom","atom","true",new p.StringStream("",2,null))}}}),p.registerHelper("wordChars","javascript",/[\w$]/),p.defineMIME("text/javascript","javascript"),p.defineMIME("text/ecmascript","javascript"),p.defineMIME("application/javascript","javascript"),p.defineMIME("application/x-javascript","javascript"),p.defineMIME("application/ecmascript","javascript"),p.defineMIME("application/json",{name:"javascript",json:!0}),p.defineMIME("application/x-json",{name:"javascript",json:!0}),p.defineMIME("application/manifest+json",{name:"javascript",json:!0}),p.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),p.defineMIME("text/typescript",{name:"javascript",typescript:!0}),p.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},13421:(v,T)=>{"use strict";/*!
|
|
37
|
+
* cookie
|
|
38
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
39
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
40
|
+
* MIT Licensed
|
|
41
|
+
*/T.parse=S,T.serialize=A;var s=Object.prototype.toString,p=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function S(_,Q){if(typeof _!="string")throw new TypeError("argument str must be a string");for(var le={},K=Q||{},ne=K.decode||h,$=0;$<_.length;){var P=_.indexOf("=",$);if(P===-1)break;var Y=_.indexOf(";",$);if(Y===-1)Y=_.length;else if(Y<P){$=_.lastIndexOf(";",P-1)+1;continue}var L=_.slice($,P).trim();if(le[L]===void 0){var C=_.slice(P+1,Y).trim();C.charCodeAt(0)===34&&(C=C.slice(1,-1)),le[L]=U(C,ne)}$=Y+1}return le}function A(_,Q,le){var K=le||{},ne=K.encode||E;if(typeof ne!="function")throw new TypeError("option encode is invalid");if(!p.test(_))throw new TypeError("argument name is invalid");var $=ne(Q);if($&&!p.test($))throw new TypeError("argument val is invalid");var P=_+"="+$;if(K.maxAge!=null){var Y=K.maxAge-0;if(isNaN(Y)||!isFinite(Y))throw new TypeError("option maxAge is invalid");P+="; Max-Age="+Math.floor(Y)}if(K.domain){if(!p.test(K.domain))throw new TypeError("option domain is invalid");P+="; Domain="+K.domain}if(K.path){if(!p.test(K.path))throw new TypeError("option path is invalid");P+="; Path="+K.path}if(K.expires){var L=K.expires;if(!F(L)||isNaN(L.valueOf()))throw new TypeError("option expires is invalid");P+="; Expires="+L.toUTCString()}if(K.httpOnly&&(P+="; HttpOnly"),K.secure&&(P+="; Secure"),K.priority){var C=typeof K.priority=="string"?K.priority.toLowerCase():K.priority;switch(C){case"low":P+="; Priority=Low";break;case"medium":P+="; Priority=Medium";break;case"high":P+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(K.sameSite){var k=typeof K.sameSite=="string"?K.sameSite.toLowerCase():K.sameSite;switch(k){case!0:P+="; SameSite=Strict";break;case"lax":P+="; SameSite=Lax";break;case"strict":P+="; SameSite=Strict";break;case"none":P+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return P}function h(_){return _.indexOf("%")!==-1?decodeURIComponent(_):_}function E(_){return encodeURIComponent(_)}function F(_){return s.call(_)==="[object Date]"||_ instanceof Date}function U(_,Q){try{return Q(_)}catch(le){return _}}},27129:(v,T,s)=>{var p=s(53822);v.exports=p},86250:(v,T,s)=>{var p=s(21434);v.exports=p},61347:(v,T,s)=>{var p=s(27710);v.exports=p},42142:(v,T,s)=>{var p=s(31585);v.exports=p},21106:(v,T,s)=>{var p=s(55603);v.exports=p},97497:(v,T,s)=>{var p=s(31206);v.exports=p},28385:(v,T,s)=>{var p=s(26174);v.exports=p},85874:(v,T,s)=>{var p=s(87511);v.exports=p},86843:(v,T,s)=>{var p=s(24741);v.exports=p},37528:(v,T,s)=>{var p=s(4963);v.exports=p},81471:(v,T,s)=>{var p=s(21025);v.exports=p},5271:(v,T,s)=>{var p=s(27820);v.exports=p},87275:(v,T,s)=>{var p=s(74194);v.exports=p},13772:(v,T,s)=>{var p=s(32854);v.exports=p},97574:(v,T,s)=>{var p=s(60002);v.exports=p},69373:(v,T,s)=>{var p=s(28980);v.exports=p},70033:(v,T,s)=>{var p=s(45636);v.exports=p},77443:(v,T,s)=>{var p=s(66672);v.exports=p},88362:(v,T,s)=>{var p=s(46618);v.exports=p},89821:(v,T,s)=>{var p=s(42285);v.exports=p},8008:(v,T,s)=>{var p=s(58535);v.exports=p},52221:(v,T,s)=>{s(5454),s(19173);var p=s(57545);v.exports=p.Array.from},75078:(v,T,s)=>{s(8118);var p=s(57545);v.exports=p.Array.isArray},66135:(v,T,s)=>{s(59106);var p=s(45607);v.exports=p("Array").concat},77237:(v,T,s)=>{s(98939),s(46663);var p=s(45607);v.exports=p("Array").entries},83971:(v,T,s)=>{s(73436);var p=s(45607);v.exports=p("Array").filter},42087:(v,T,s)=>{s(10880);var p=s(45607);v.exports=p("Array").find},60098:(v,T,s)=>{s(9823);var p=s(45607);v.exports=p("Array").forEach},54216:(v,T,s)=>{s(70024);var p=s(45607);v.exports=p("Array").includes},92089:(v,T,s)=>{s(62276);var p=s(45607);v.exports=p("Array").indexOf},6209:(v,T,s)=>{s(63838);var p=s(45607);v.exports=p("Array").map},49922:(v,T,s)=>{s(99523);var p=s(45607);v.exports=p("Array").reverse},52671:(v,T,s)=>{s(65818);var p=s(45607);v.exports=p("Array").slice},51375:(v,T,s)=>{s(12178);var p=s(45607);v.exports=p("Array").splice},65739:(v,T,s)=>{s(98939),s(5454);var p=s(78703);v.exports=p},74030:(v,T,s)=>{s(25067),v.exports=s(98576)},41484:(v,T,s)=>{var p=s(8902),S=s(66135),A=Array.prototype;v.exports=function(h){var E=h.concat;return h===A||p(A,h)&&E===A.concat?S:E}},53669:(v,T,s)=>{var p=s(8902),S=s(83971),A=Array.prototype;v.exports=function(h){var E=h.filter;return h===A||p(A,h)&&E===A.filter?S:E}},37506:(v,T,s)=>{var p=s(8902),S=s(42087),A=Array.prototype;v.exports=function(h){var E=h.find;return h===A||p(A,h)&&E===A.find?S:E}},13173:(v,T,s)=>{var p=s(8902),S=s(54216),A=s(62840),h=Array.prototype,E=String.prototype;v.exports=function(F){var U=F.includes;return F===h||p(h,F)&&U===h.includes?S:typeof F=="string"||F===E||p(E,F)&&U===E.includes?A:U}},92604:(v,T,s)=>{var p=s(8902),S=s(92089),A=Array.prototype;v.exports=function(h){var E=h.indexOf;return h===A||p(A,h)&&E===A.indexOf?S:E}},263:(v,T,s)=>{var p=s(8902),S=s(6209),A=Array.prototype;v.exports=function(h){var E=h.map;return h===A||p(A,h)&&E===A.map?S:E}},80432:(v,T,s)=>{var p=s(8902),S=s(49922),A=Array.prototype;v.exports=function(h){var E=h.reverse;return h===A||p(A,h)&&E===A.reverse?S:E}},77663:(v,T,s)=>{var p=s(8902),S=s(52671),A=Array.prototype;v.exports=function(h){var E=h.slice;return h===A||p(A,h)&&E===A.slice?S:E}},45063:(v,T,s)=>{var p=s(8902),S=s(51375),A=Array.prototype;v.exports=function(h){var E=h.splice;return h===A||p(A,h)&&E===A.splice?S:E}},7769:(v,T,s)=>{var p=s(8902),S=s(14820),A=String.prototype;v.exports=function(h){var E=h.startsWith;return typeof h=="string"||h===A||p(A,h)&&E===A.startsWith?S:E}},96056:(v,T,s)=>{s(59704);var p=s(57545),S=s(86298);p.JSON||(p.JSON={stringify:JSON.stringify}),v.exports=function(h,E,F){return S(p.JSON.stringify,null,arguments)}},99936:(v,T,s)=>{s(93582);var p=s(57545);v.exports=p.Object.assign},23213:(v,T,s)=>{s(73113);var p=s(57545),S=p.Object;v.exports=function(h,E){return S.create(h,E)}},38724:(v,T,s)=>{s(57585);var p=s(57545),S=p.Object,A=v.exports=function(E,F){return S.defineProperties(E,F)};S.defineProperties.sham&&(A.sham=!0)},63512:(v,T,s)=>{s(20297);var p=s(57545),S=p.Object,A=v.exports=function(E,F,U){return S.defineProperty(E,F,U)};S.defineProperty.sham&&(A.sham=!0)},2335:(v,T,s)=>{s(27442);var p=s(57545);v.exports=p.Object.entries},60632:(v,T,s)=>{s(89189);var p=s(57545),S=p.Object,A=v.exports=function(E,F){return S.getOwnPropertyDescriptor(E,F)};S.getOwnPropertyDescriptor.sham&&(A.sham=!0)},81056:(v,T,s)=>{s(62509);var p=s(57545);v.exports=p.Object.getOwnPropertyDescriptors},12921:(v,T,s)=>{s(36187);var p=s(57545);v.exports=p.Object.getOwnPropertySymbols},8168:(v,T,s)=>{s(19234);var p=s(57545);v.exports=p.Object.getPrototypeOf},38651:(v,T,s)=>{s(92647);var p=s(57545);v.exports=p.Object.keys},33083:(v,T,s)=>{s(13222);var p=s(57545);v.exports=p.Object.setPrototypeOf},93154:(v,T,s)=>{s(4242),s(98939),s(46663),s(59021),s(97884),s(78885),s(91868),s(5454);var p=s(57545);v.exports=p.Promise},62840:(v,T,s)=>{s(39247);var p=s(45607);v.exports=p("String").includes},14820:(v,T,s)=>{s(32991);var p=s(45607);v.exports=p("String").startsWith},85008:(v,T,s)=>{s(59106),s(46663),s(36187),s(19781),s(50492),s(66681),s(29594),s(63665),s(29017),s(11250),s(79786),s(90503),s(16565),s(69322),s(13610),s(36886),s(33514),s(68671),s(58556),s(71367);var p=s(57545);v.exports=p.Symbol},994:(v,T,s)=>{s(98939),s(46663),s(5454),s(63665);var p=s(89207);v.exports=p.f("iterator")},31293:(v,T,s)=>{s(98939),s(46663),s(33983);var p=s(57545);v.exports=p.WeakMap},62813:(v,T,s)=>{v.exports=s(52708)},68664:(v,T,s)=>{v.exports=s(58541)},21457:(v,T,s)=>{v.exports=s(37020)},36516:(v,T,s)=>{v.exports=s(79987)},87611:(v,T,s)=>{v.exports=s(86812)},4161:(v,T,s)=>{v.exports=s(51024)},75159:(v,T,s)=>{v.exports=s(32747)},87708:(v,T,s)=>{v.exports=s(85918)},42937:(v,T,s)=>{v.exports=s(21626)},69297:(v,T,s)=>{v.exports=s(77021)},10353:(v,T,s)=>{v.exports=s(18281)},8026:(v,T,s)=>{v.exports=s(90229)},67362:(v,T,s)=>{v.exports=s(53949)},57532:(v,T,s)=>{v.exports=s(11795)},61903:(v,T,s)=>{v.exports=s(75090)},42044:(v,T,s)=>{v.exports=s(27994)},60902:(v,T,s)=>{v.exports=s(45483)},2214:(v,T,s)=>{v.exports=s(35796)},983:(v,T,s)=>{v.exports=s(79918)},59256:(v,T,s)=>{v.exports=s(82185)},95659:(v,T,s)=>{v.exports=s(39982)},52708:(v,T,s)=>{var p=s(27129);v.exports=p},58541:(v,T,s)=>{var p=s(86250);v.exports=p},37020:(v,T,s)=>{var p=s(61347);v.exports=p},79987:(v,T,s)=>{s(5363);var p=s(42142);v.exports=p},86812:(v,T,s)=>{var p=s(21106);v.exports=p},51024:(v,T,s)=>{var p=s(97497);v.exports=p},32747:(v,T,s)=>{var p=s(28385);v.exports=p},85918:(v,T,s)=>{var p=s(85874);v.exports=p},21626:(v,T,s)=>{var p=s(86843);v.exports=p},77021:(v,T,s)=>{var p=s(37528);v.exports=p},18281:(v,T,s)=>{var p=s(81471);v.exports=p},90229:(v,T,s)=>{var p=s(5271);v.exports=p},53949:(v,T,s)=>{var p=s(87275);v.exports=p},11795:(v,T,s)=>{var p=s(13772);v.exports=p},75090:(v,T,s)=>{var p=s(97574);v.exports=p},27994:(v,T,s)=>{var p=s(69373);v.exports=p},45483:(v,T,s)=>{var p=s(70033);v.exports=p},35796:(v,T,s)=>{var p=s(77443);v.exports=p},79918:(v,T,s)=>{var p=s(88362);s(12752),s(14562),s(25363),s(69355),v.exports=p},82185:(v,T,s)=>{var p=s(89821);s(60177),s(9031),s(96658),s(54212),s(18658),s(71875),s(54592),s(26680),v.exports=p},39982:(v,T,s)=>{var p=s(8008);v.exports=p},66235:(v,T,s)=>{var p=s(16447),S=s(79288),A=TypeError;v.exports=function(h){if(p(h))return h;throw A(S(h)+" is not a function")}},71404:(v,T,s)=>{var p=s(22091),S=s(79288),A=TypeError;v.exports=function(h){if(p(h))return h;throw A(S(h)+" is not a constructor")}},7757:(v,T,s)=>{var p=s(16447),S=String,A=TypeError;v.exports=function(h){if(typeof h=="object"||p(h))return h;throw A("Can't set "+S(h)+" as a prototype")}},67423:v=>{v.exports=function(){}},46961:(v,T,s)=>{var p=s(8902),S=TypeError;v.exports=function(A,h){if(p(h,A))return A;throw S("Incorrect invocation")}},31138:(v,T,s)=>{var p=s(35744),S=String,A=TypeError;v.exports=function(h){if(p(h))return h;throw A(S(h)+" is not an object")}},80410:(v,T,s)=>{var p=s(76192);v.exports=p(function(){if(typeof ArrayBuffer=="function"){var S=new ArrayBuffer(8);Object.isExtensible(S)&&Object.defineProperty(S,"a",{value:8})}})},87397:(v,T,s)=>{"use strict";var p=s(50454).forEach,S=s(10424),A=S("forEach");v.exports=A?[].forEach:function(E){return p(this,E,arguments.length>1?arguments[1]:void 0)}},20841:(v,T,s)=>{"use strict";var p=s(8043),S=s(18922),A=s(71795),h=s(21635),E=s(96109),F=s(22091),U=s(84104),_=s(49361),Q=s(61669),le=s(78703),K=Array;v.exports=function($){var P=A($),Y=F(this),L=arguments.length,C=L>1?arguments[1]:void 0,k=C!==void 0;k&&(C=p(C,L>2?arguments[2]:void 0));var B=le(P),X=0,H,D,re,J,z,fe;if(B&&!(this===K&&E(B)))for(J=Q(P,B),z=J.next,D=Y?new this:[];!(re=S(z,J)).done;X++)fe=k?h(J,C,[re.value,X],!0):re.value,_(D,X,fe);else for(H=U(P),D=Y?new this(H):K(H);H>X;X++)fe=k?C(P[X],X):P[X],_(D,X,fe);return D.length=X,D}},48180:(v,T,s)=>{var p=s(20101),S=s(97739),A=s(84104),h=function(E){return function(F,U,_){var Q=p(F),le=A(Q),K=S(_,le),ne;if(E&&U!=U){for(;le>K;)if(ne=Q[K++],ne!=ne)return!0}else for(;le>K;K++)if((E||K in Q)&&Q[K]===U)return E||K||0;return!E&&-1}};v.exports={includes:h(!0),indexOf:h(!1)}},50454:(v,T,s)=>{var p=s(8043),S=s(84120),A=s(2202),h=s(71795),E=s(84104),F=s(71321),U=S([].push),_=function(Q){var le=Q==1,K=Q==2,ne=Q==3,$=Q==4,P=Q==6,Y=Q==7,L=Q==5||P;return function(C,k,B,X){for(var H=h(C),D=A(H),re=p(k,B),J=E(D),z=0,fe=X||F,pe=le?fe(C,J):K||Y?fe(C,0):void 0,q,Z;J>z;z++)if((L||z in D)&&(q=D[z],Z=re(q,z,H),Q))if(le)pe[z]=Z;else if(Z)switch(Q){case 3:return!0;case 5:return q;case 6:return z;case 2:U(pe,q)}else switch(Q){case 4:return!1;case 7:U(pe,q)}return P?-1:ne||$?$:pe}};v.exports={forEach:_(0),map:_(1),filter:_(2),some:_(3),every:_(4),find:_(5),findIndex:_(6),filterReject:_(7)}},90242:(v,T,s)=>{var p=s(76192),S=s(18182),A=s(14218),h=S("species");v.exports=function(E){return A>=51||!p(function(){var F=[],U=F.constructor={};return U[h]=function(){return{foo:1}},F[E](Boolean).foo!==1})}},10424:(v,T,s)=>{"use strict";var p=s(76192);v.exports=function(S,A){var h=[][S];return!!h&&p(function(){h.call(null,A||function(){return 1},1)})}},95072:(v,T,s)=>{"use strict";var p=s(50069),S=s(34770),A=TypeError,h=Object.getOwnPropertyDescriptor,E=p&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(F){return F instanceof TypeError}}();v.exports=E?function(F,U){if(S(F)&&!h(F,"length").writable)throw A("Cannot set read only .length");return F.length=U}:function(F,U){return F.length=U}},1923:(v,T,s)=>{var p=s(97739),S=s(84104),A=s(49361),h=Array,E=Math.max;v.exports=function(F,U,_){for(var Q=S(F),le=p(U,Q),K=p(_===void 0?Q:_,Q),ne=h(E(K-le,0)),$=0;le<K;le++,$++)A(ne,$,F[le]);return ne.length=$,ne}},93096:(v,T,s)=>{var p=s(84120);v.exports=p([].slice)},6614:(v,T,s)=>{var p=s(1923),S=Math.floor,A=function(F,U){var _=F.length,Q=S(_/2);return _<8?h(F,U):E(F,A(p(F,0,Q),U),A(p(F,Q),U),U)},h=function(F,U){for(var _=F.length,Q=1,le,K;Q<_;){for(K=Q,le=F[Q];K&&U(F[K-1],le)>0;)F[K]=F[--K];K!==Q++&&(F[K]=le)}return F},E=function(F,U,_,Q){for(var le=U.length,K=_.length,ne=0,$=0;ne<le||$<K;)F[ne+$]=ne<le&&$<K?Q(U[ne],_[$])<=0?U[ne++]:_[$++]:ne<le?U[ne++]:_[$++];return F};v.exports=A},83712:(v,T,s)=>{var p=s(34770),S=s(22091),A=s(35744),h=s(18182),E=h("species"),F=Array;v.exports=function(U){var _;return p(U)&&(_=U.constructor,S(_)&&(_===F||p(_.prototype))?_=void 0:A(_)&&(_=_[E],_===null&&(_=void 0))),_===void 0?F:_}},71321:(v,T,s)=>{var p=s(83712);v.exports=function(S,A){return new(p(S))(A===0?0:A)}},21635:(v,T,s)=>{var p=s(31138),S=s(66639);v.exports=function(A,h,E,F){try{return F?h(p(E)[0],E[1]):h(E)}catch(U){S(A,"throw",U)}}},19770:(v,T,s)=>{var p=s(18182),S=p("iterator"),A=!1;try{var h=0,E={next:function(){return{done:!!h++}},return:function(){A=!0}};E[S]=function(){return this},Array.from(E,function(){throw 2})}catch(F){}v.exports=function(F,U){if(!U&&!A)return!1;var _=!1;try{var Q={};Q[S]=function(){return{next:function(){return{done:_=!0}}}},F(Q)}catch(le){}return _}},29272:(v,T,s)=>{var p=s(41258),S=p({}.toString),A=p("".slice);v.exports=function(h){return A(S(h),8,-1)}},4696:(v,T,s)=>{var p=s(83471),S=s(16447),A=s(29272),h=s(18182),E=h("toStringTag"),F=Object,U=A(function(){return arguments}())=="Arguments",_=function(Q,le){try{return Q[le]}catch(K){}};v.exports=p?A:function(Q){var le,K,ne;return Q===void 0?"Undefined":Q===null?"Null":typeof(K=_(le=F(Q),E))=="string"?K:U?A(le):(ne=A(le))=="Object"&&S(le.callee)?"Arguments":ne}},51057:(v,T,s)=>{"use strict";var p=s(84120),S=s(35090),A=s(32861).getWeakData,h=s(46961),E=s(31138),F=s(75646),U=s(35744),_=s(33442),Q=s(50454),le=s(64500),K=s(73326),ne=K.set,$=K.getterFor,P=Q.find,Y=Q.findIndex,L=p([].splice),C=0,k=function(H){return H.frozen||(H.frozen=new B)},B=function(){this.entries=[]},X=function(H,D){return P(H.entries,function(re){return re[0]===D})};B.prototype={get:function(H){var D=X(this,H);if(D)return D[1]},has:function(H){return!!X(this,H)},set:function(H,D){var re=X(this,H);re?re[1]=D:this.entries.push([H,D])},delete:function(H){var D=Y(this.entries,function(re){return re[0]===H});return~D&&L(this.entries,D,1),!!~D}},v.exports={getConstructor:function(H,D,re,J){var z=H(function(Z,G){h(Z,fe),ne(Z,{type:D,id:C++,frozen:void 0}),F(G)||_(G,Z[J],{that:Z,AS_ENTRIES:re})}),fe=z.prototype,pe=$(D),q=function(Z,G,ve){var Ie=pe(Z),Ne=A(E(G),!0);return Ne===!0?k(Ie).set(G,ve):Ne[Ie.id]=ve,Z};return S(fe,{delete:function(Z){var G=pe(this);if(!U(Z))return!1;var ve=A(Z);return ve===!0?k(G).delete(Z):ve&&le(ve,G.id)&&delete ve[G.id]},has:function(G){var ve=pe(this);if(!U(G))return!1;var Ie=A(G);return Ie===!0?k(ve).has(G):Ie&&le(Ie,ve.id)}}),S(fe,re?{get:function(G){var ve=pe(this);if(U(G)){var Ie=A(G);return Ie===!0?k(ve).get(G):Ie?Ie[ve.id]:void 0}},set:function(G,ve){return q(this,G,ve)}}:{add:function(G){return q(this,G,!0)}}),z}}},34535:(v,T,s)=>{"use strict";var p=s(93085),S=s(98576),A=s(32861),h=s(76192),E=s(98711),F=s(33442),U=s(46961),_=s(16447),Q=s(35744),le=s(11284),K=s(42760).f,ne=s(50454).forEach,$=s(50069),P=s(73326),Y=P.set,L=P.getterFor;v.exports=function(C,k,B){var X=C.indexOf("Map")!==-1,H=C.indexOf("Weak")!==-1,D=X?"set":"add",re=S[C],J=re&&re.prototype,z={},fe;if(!$||!_(re)||!(H||J.forEach&&!h(function(){new re().entries().next()})))fe=B.getConstructor(k,C,X,D),A.enable();else{fe=k(function(Z,G){Y(U(Z,pe),{type:C,collection:new re}),G!=null&&F(G,Z[D],{that:Z,AS_ENTRIES:X})});var pe=fe.prototype,q=L(C);ne(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(Z){var G=Z=="add"||Z=="set";Z in J&&!(H&&Z=="clear")&&E(pe,Z,function(ve,Ie){var Ne=q(this).collection;if(!G&&H&&!Q(ve))return Z=="get"?void 0:!1;var je=Ne[Z](ve===0?0:ve,Ie);return G?this:je})}),H||K(pe,"size",{configurable:!0,get:function(){return q(this).collection.size}})}return le(fe,C,!1,!0),z[C]=fe,p({global:!0,forced:!0},z),H||B.setStrong(fe,C,X),fe}},97987:(v,T,s)=>{var p=s(64500),S=s(93011),A=s(5141),h=s(42760);v.exports=function(E,F,U){for(var _=S(F),Q=h.f,le=A.f,K=0;K<_.length;K++){var ne=_[K];!p(E,ne)&&!(U&&p(U,ne))&&Q(E,ne,le(F,ne))}}},83519:(v,T,s)=>{var p=s(18182),S=p("match");v.exports=function(A){var h=/./;try{"/./"[A](h)}catch(E){try{return h[S]=!1,"/./"[A](h)}catch(F){}}return!1}},4635:(v,T,s)=>{var p=s(76192);v.exports=!p(function(){function S(){}return S.prototype.constructor=null,Object.getPrototypeOf(new S)!==S.prototype})},87271:v=>{v.exports=function(T,s){return{value:T,done:s}}},98711:(v,T,s)=>{var p=s(50069),S=s(42760),A=s(90774);v.exports=p?function(h,E,F){return S.f(h,E,A(1,F))}:function(h,E,F){return h[E]=F,h}},90774:v=>{v.exports=function(T,s){return{enumerable:!(T&1),configurable:!(T&2),writable:!(T&4),value:s}}},49361:(v,T,s)=>{"use strict";var p=s(40077),S=s(42760),A=s(90774);v.exports=function(h,E,F){var U=p(E);U in h?S.f(h,U,A(0,F)):h[U]=F}},59362:(v,T,s)=>{var p=s(98711);v.exports=function(S,A,h,E){return E&&E.enumerable?S[A]=h:p(S,A,h),S}},35090:(v,T,s)=>{var p=s(59362);v.exports=function(S,A,h){for(var E in A)h&&h.unsafe&&S[E]?S[E]=A[E]:p(S,E,A[E],h);return S}},65098:(v,T,s)=>{var p=s(98576),S=Object.defineProperty;v.exports=function(A,h){try{S(p,A,{value:h,configurable:!0,writable:!0})}catch(E){p[A]=h}return h}},29970:(v,T,s)=>{"use strict";var p=s(79288),S=TypeError;v.exports=function(A,h){if(!delete A[h])throw S("Cannot delete property "+p(h)+" of "+p(A))}},50069:(v,T,s)=>{var p=s(76192);v.exports=!p(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},58382:v=>{var T=typeof document=="object"&&document.all,s=typeof T=="undefined"&&T!==void 0;v.exports={all:T,IS_HTMLDDA:s}},67449:(v,T,s)=>{var p=s(98576),S=s(35744),A=p.document,h=S(A)&&S(A.createElement);v.exports=function(E){return h?A.createElement(E):{}}},29425:v=>{var T=TypeError,s=9007199254740991;v.exports=function(p){if(p>s)throw T("Maximum allowed index exceeded");return p}},17365:v=>{v.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},82957:(v,T,s)=>{var p=s(60659),S=s(58189);v.exports=!p&&!S&&typeof window=="object"&&typeof document=="object"},60659:v=>{v.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},29347:(v,T,s)=>{var p=s(78989),S=s(98576);v.exports=/ipad|iphone|ipod/i.test(p)&&S.Pebble!==void 0},69536:(v,T,s)=>{var p=s(78989);v.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(p)},58189:(v,T,s)=>{var p=s(29272),S=s(98576);v.exports=p(S.process)=="process"},5914:(v,T,s)=>{var p=s(78989);v.exports=/web0s(?!.*chrome)/i.test(p)},78989:(v,T,s)=>{var p=s(10150);v.exports=p("navigator","userAgent")||""},14218:(v,T,s)=>{var p=s(98576),S=s(78989),A=p.process,h=p.Deno,E=A&&A.versions||h&&h.version,F=E&&E.v8,U,_;F&&(U=F.split("."),_=U[0]>0&&U[0]<4?1:+(U[0]+U[1])),!_&&S&&(U=S.match(/Edge\/(\d+)/),(!U||U[1]>=74)&&(U=S.match(/Chrome\/(\d+)/),U&&(_=+U[1]))),v.exports=_},45607:(v,T,s)=>{var p=s(57545);v.exports=function(S){return p[S+"Prototype"]}},82952:v=>{v.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},14503:(v,T,s)=>{var p=s(84120),S=Error,A=p("".replace),h=function(U){return String(S(U).stack)}("zxcasd"),E=/\n\s*at [^:]*:[^\n]*/,F=E.test(h);v.exports=function(U,_){if(F&&typeof U=="string"&&!S.prepareStackTrace)for(;_--;)U=A(U,E,"");return U}},50274:(v,T,s)=>{var p=s(76192),S=s(90774);v.exports=!p(function(){var A=Error("a");return"stack"in A?(Object.defineProperty(A,"stack",S(1,7)),A.stack!==7):!0})},93085:(v,T,s)=>{"use strict";var p=s(98576),S=s(86298),A=s(84120),h=s(16447),E=s(5141).f,F=s(89245),U=s(57545),_=s(8043),Q=s(98711),le=s(64500),K=function(ne){var $=function(P,Y,L){if(this instanceof $){switch(arguments.length){case 0:return new ne;case 1:return new ne(P);case 2:return new ne(P,Y)}return new ne(P,Y,L)}return S(ne,this,arguments)};return $.prototype=ne.prototype,$};v.exports=function(ne,$){var P=ne.target,Y=ne.global,L=ne.stat,C=ne.proto,k=Y?p:L?p[P]:(p[P]||{}).prototype,B=Y?U:U[P]||Q(U,P,{})[P],X=B.prototype,H,D,re,J,z,fe,pe,q,Z;for(J in $)H=F(Y?J:P+(L?".":"#")+J,ne.forced),D=!H&&k&&le(k,J),fe=B[J],D&&(ne.dontCallGetSet?(Z=E(k,J),pe=Z&&Z.value):pe=k[J]),z=D&&pe?pe:$[J],!(D&&typeof fe==typeof z)&&(ne.bind&&D?q=_(z,p):ne.wrap&&D?q=K(z):C&&h(z)?q=A(z):q=z,(ne.sham||z&&z.sham||fe&&fe.sham)&&Q(q,"sham",!0),Q(B,J,q),C&&(re=P+"Prototype",le(U,re)||Q(U,re,{}),Q(U[re],J,z),ne.real&&X&&!X[J]&&Q(X,J,z)))}},76192:v=>{v.exports=function(T){try{return!!T()}catch(s){return!0}}},47636:(v,T,s)=>{var p=s(76192);v.exports=!p(function(){return Object.isExtensible(Object.preventExtensions({}))})},86298:(v,T,s)=>{var p=s(22784),S=Function.prototype,A=S.apply,h=S.call;v.exports=typeof Reflect=="object"&&Reflect.apply||(p?h.bind(A):function(){return h.apply(A,arguments)})},8043:(v,T,s)=>{var p=s(84120),S=s(66235),A=s(22784),h=p(p.bind);v.exports=function(E,F){return S(E),F===void 0?E:A?h(E,F):function(){return E.apply(F,arguments)}}},22784:(v,T,s)=>{var p=s(76192);v.exports=!p(function(){var S=function(){}.bind();return typeof S!="function"||S.hasOwnProperty("prototype")})},18922:(v,T,s)=>{var p=s(22784),S=Function.prototype.call;v.exports=p?S.bind(S):function(){return S.apply(S,arguments)}},22282:(v,T,s)=>{var p=s(50069),S=s(64500),A=Function.prototype,h=p&&Object.getOwnPropertyDescriptor,E=S(A,"name"),F=E&&function(){}.name==="something",U=E&&(!p||p&&h(A,"name").configurable);v.exports={EXISTS:E,PROPER:F,CONFIGURABLE:U}},41258:(v,T,s)=>{var p=s(22784),S=Function.prototype,A=S.call,h=p&&S.bind.bind(A,A);v.exports=function(E){return p?h(E):function(){return A.apply(E,arguments)}}},84120:(v,T,s)=>{var p=s(29272),S=s(41258);v.exports=function(A){if(p(A)==="Function")return S(A)}},10150:(v,T,s)=>{var p=s(57545),S=s(98576),A=s(16447),h=function(E){return A(E)?E:void 0};v.exports=function(E,F){return arguments.length<2?h(p[E])||h(S[E]):p[E]&&p[E][F]||S[E]&&S[E][F]}},78703:(v,T,s)=>{var p=s(4696),S=s(75037),A=s(75646),h=s(47771),E=s(18182),F=E("iterator");v.exports=function(U){if(!A(U))return S(U,F)||S(U,"@@iterator")||h[p(U)]}},61669:(v,T,s)=>{var p=s(18922),S=s(66235),A=s(31138),h=s(79288),E=s(78703),F=TypeError;v.exports=function(U,_){var Q=arguments.length<2?E(U):_;if(S(Q))return A(p(Q,U));throw F(h(U)+" is not iterable")}},75037:(v,T,s)=>{var p=s(66235),S=s(75646);v.exports=function(A,h){var E=A[h];return S(E)?void 0:p(E)}},98576:(v,T,s)=>{var p=function(S){return S&&S.Math==Math&&S};v.exports=p(typeof globalThis=="object"&&globalThis)||p(typeof window=="object"&&window)||p(typeof self=="object"&&self)||p(typeof s.g=="object"&&s.g)||function(){return this}()||Function("return this")()},64500:(v,T,s)=>{var p=s(84120),S=s(71795),A=p({}.hasOwnProperty);v.exports=Object.hasOwn||function(E,F){return A(S(E),F)}},14535:v=>{v.exports={}},63681:(v,T,s)=>{var p=s(98576);v.exports=function(S,A){var h=p.console;h&&h.error&&(arguments.length==1?h.error(S):h.error(S,A))}},47403:(v,T,s)=>{var p=s(10150);v.exports=p("document","documentElement")},80188:(v,T,s)=>{var p=s(50069),S=s(76192),A=s(67449);v.exports=!p&&!S(function(){return Object.defineProperty(A("div"),"a",{get:function(){return 7}}).a!=7})},2202:(v,T,s)=>{var p=s(84120),S=s(76192),A=s(29272),h=Object,E=p("".split);v.exports=S(function(){return!h("z").propertyIsEnumerable(0)})?function(F){return A(F)=="String"?E(F,""):h(F)}:h},19516:(v,T,s)=>{var p=s(84120),S=s(16447),A=s(46434),h=p(Function.toString);S(A.inspectSource)||(A.inspectSource=function(E){return h(E)}),v.exports=A.inspectSource},10273:(v,T,s)=>{var p=s(35744),S=s(98711);v.exports=function(A,h){p(h)&&"cause"in h&&S(A,"cause",h.cause)}},32861:(v,T,s)=>{var p=s(93085),S=s(84120),A=s(14535),h=s(35744),E=s(64500),F=s(42760).f,U=s(92092),_=s(24052),Q=s(4532),le=s(42759),K=s(47636),ne=!1,$=le("meta"),P=0,Y=function(H){F(H,$,{value:{objectID:"O"+P++,weakData:{}}})},L=function(H,D){if(!h(H))return typeof H=="symbol"?H:(typeof H=="string"?"S":"P")+H;if(!E(H,$)){if(!Q(H))return"F";if(!D)return"E";Y(H)}return H[$].objectID},C=function(H,D){if(!E(H,$)){if(!Q(H))return!0;if(!D)return!1;Y(H)}return H[$].weakData},k=function(H){return K&&ne&&Q(H)&&!E(H,$)&&Y(H),H},B=function(){X.enable=function(){},ne=!0;var H=U.f,D=S([].splice),re={};re[$]=1,H(re).length&&(U.f=function(J){for(var z=H(J),fe=0,pe=z.length;fe<pe;fe++)if(z[fe]===$){D(z,fe,1);break}return z},p({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:_.f}))},X=v.exports={enable:B,fastKey:L,getWeakData:C,onFreeze:k};A[$]=!0},73326:(v,T,s)=>{var p=s(55278),S=s(98576),A=s(35744),h=s(98711),E=s(64500),F=s(46434),U=s(69766),_=s(14535),Q="Object already initialized",le=S.TypeError,K=S.WeakMap,ne,$,P,Y=function(B){return P(B)?$(B):ne(B,{})},L=function(B){return function(X){var H;if(!A(X)||(H=$(X)).type!==B)throw le("Incompatible receiver, "+B+" required");return H}};if(p||F.state){var C=F.state||(F.state=new K);C.get=C.get,C.has=C.has,C.set=C.set,ne=function(B,X){if(C.has(B))throw le(Q);return X.facade=B,C.set(B,X),X},$=function(B){return C.get(B)||{}},P=function(B){return C.has(B)}}else{var k=U("state");_[k]=!0,ne=function(B,X){if(E(B,k))throw le(Q);return X.facade=B,h(B,k,X),X},$=function(B){return E(B,k)?B[k]:{}},P=function(B){return E(B,k)}}v.exports={set:ne,get:$,has:P,enforce:Y,getterFor:L}},96109:(v,T,s)=>{var p=s(18182),S=s(47771),A=p("iterator"),h=Array.prototype;v.exports=function(E){return E!==void 0&&(S.Array===E||h[A]===E)}},34770:(v,T,s)=>{var p=s(29272);v.exports=Array.isArray||function(A){return p(A)=="Array"}},16447:(v,T,s)=>{var p=s(58382),S=p.all;v.exports=p.IS_HTMLDDA?function(A){return typeof A=="function"||A===S}:function(A){return typeof A=="function"}},22091:(v,T,s)=>{var p=s(84120),S=s(76192),A=s(16447),h=s(4696),E=s(10150),F=s(19516),U=function(){},_=[],Q=E("Reflect","construct"),le=/^\s*(?:class|function)\b/,K=p(le.exec),ne=!le.exec(U),$=function(L){if(!A(L))return!1;try{return Q(U,_,L),!0}catch(C){return!1}},P=function(L){if(!A(L))return!1;switch(h(L)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ne||!!K(le,F(L))}catch(C){return!0}};P.sham=!0,v.exports=!Q||S(function(){var Y;return $($.call)||!$(Object)||!$(function(){Y=!0})||Y})?P:$},89245:(v,T,s)=>{var p=s(76192),S=s(16447),A=/#|\.prototype\./,h=function(Q,le){var K=F[E(Q)];return K==_?!0:K==U?!1:S(le)?p(le):!!le},E=h.normalize=function(Q){return String(Q).replace(A,".").toLowerCase()},F=h.data={},U=h.NATIVE="N",_=h.POLYFILL="P";v.exports=h},75646:v=>{v.exports=function(T){return T==null}},35744:(v,T,s)=>{var p=s(16447),S=s(58382),A=S.all;v.exports=S.IS_HTMLDDA?function(h){return typeof h=="object"?h!==null:p(h)||h===A}:function(h){return typeof h=="object"?h!==null:p(h)}},85546:v=>{v.exports=!0},94352:(v,T,s)=>{var p=s(35744),S=s(29272),A=s(18182),h=A("match");v.exports=function(E){var F;return p(E)&&((F=E[h])!==void 0?!!F:S(E)=="RegExp")}},23236:(v,T,s)=>{var p=s(10150),S=s(16447),A=s(8902),h=s(50615),E=Object;v.exports=h?function(F){return typeof F=="symbol"}:function(F){var U=p("Symbol");return S(U)&&A(U.prototype,E(F))}},33442:(v,T,s)=>{var p=s(8043),S=s(18922),A=s(31138),h=s(79288),E=s(96109),F=s(84104),U=s(8902),_=s(61669),Q=s(78703),le=s(66639),K=TypeError,ne=function(P,Y){this.stopped=P,this.result=Y},$=ne.prototype;v.exports=function(P,Y,L){var C=L&&L.that,k=!!(L&&L.AS_ENTRIES),B=!!(L&&L.IS_RECORD),X=!!(L&&L.IS_ITERATOR),H=!!(L&&L.INTERRUPTED),D=p(Y,C),re,J,z,fe,pe,q,Z,G=function(Ie){return re&&le(re,"normal",Ie),new ne(!0,Ie)},ve=function(Ie){return k?(A(Ie),H?D(Ie[0],Ie[1],G):D(Ie[0],Ie[1])):H?D(Ie,G):D(Ie)};if(B)re=P.iterator;else if(X)re=P;else{if(J=Q(P),!J)throw K(h(P)+" is not iterable");if(E(J)){for(z=0,fe=F(P);fe>z;z++)if(pe=ve(P[z]),pe&&U($,pe))return pe;return new ne(!1)}re=_(P,J)}for(q=B?P.next:re.next;!(Z=S(q,re)).done;){try{pe=ve(Z.value)}catch(Ie){le(re,"throw",Ie)}if(typeof pe=="object"&&pe&&U($,pe))return pe}return new ne(!1)}},66639:(v,T,s)=>{var p=s(18922),S=s(31138),A=s(75037);v.exports=function(h,E,F){var U,_;S(h);try{if(U=A(h,"return"),!U){if(E==="throw")throw F;return F}U=p(U,h)}catch(Q){_=!0,U=Q}if(E==="throw")throw F;if(_)throw U;return S(U),F}},25695:(v,T,s)=>{"use strict";var p=s(54413).IteratorPrototype,S=s(52853),A=s(90774),h=s(11284),E=s(47771),F=function(){return this};v.exports=function(U,_,Q,le){var K=_+" Iterator";return U.prototype=S(p,{next:A(+!le,Q)}),h(U,K,!1,!0),E[K]=F,U}},65297:(v,T,s)=>{"use strict";var p=s(93085),S=s(18922),A=s(85546),h=s(22282),E=s(16447),F=s(25695),U=s(89341),_=s(24469),Q=s(11284),le=s(98711),K=s(59362),ne=s(18182),$=s(47771),P=s(54413),Y=h.PROPER,L=h.CONFIGURABLE,C=P.IteratorPrototype,k=P.BUGGY_SAFARI_ITERATORS,B=ne("iterator"),X="keys",H="values",D="entries",re=function(){return this};v.exports=function(J,z,fe,pe,q,Z,G){F(fe,z,pe);var ve=function(Pe){if(Pe===q&&_e)return _e;if(!k&&Pe in je)return je[Pe];switch(Pe){case X:return function(){return new fe(this,Pe)};case H:return function(){return new fe(this,Pe)};case D:return function(){return new fe(this,Pe)}}return function(){return new fe(this)}},Ie=z+" Iterator",Ne=!1,je=J.prototype,tt=je[B]||je["@@iterator"]||q&&je[q],_e=!k&&tt||ve(q),mt=z=="Array"&&je.entries||tt,De,Oe,Ue;if(mt&&(De=U(mt.call(new J)),De!==Object.prototype&&De.next&&(!A&&U(De)!==C&&(_?_(De,C):E(De[B])||K(De,B,re)),Q(De,Ie,!0,!0),A&&($[Ie]=re))),Y&&q==H&&tt&&tt.name!==H&&(!A&&L?le(je,"name",H):(Ne=!0,_e=function(){return S(tt,this)})),q)if(Oe={values:ve(H),keys:Z?_e:ve(X),entries:ve(D)},G)for(Ue in Oe)(k||Ne||!(Ue in je))&&K(je,Ue,Oe[Ue]);else p({target:z,proto:!0,forced:k||Ne},Oe);return(!A||G)&&je[B]!==_e&&K(je,B,_e,{name:q}),$[z]=_e,Oe}},54413:(v,T,s)=>{"use strict";var p=s(76192),S=s(16447),A=s(35744),h=s(52853),E=s(89341),F=s(59362),U=s(18182),_=s(85546),Q=U("iterator"),le=!1,K,ne,$;[].keys&&($=[].keys(),"next"in $?(ne=E(E($)),ne!==Object.prototype&&(K=ne)):le=!0);var P=!A(K)||p(function(){var Y={};return K[Q].call(Y)!==Y});P?K={}:_&&(K=h(K)),S(K[Q])||F(K,Q,function(){return this}),v.exports={IteratorPrototype:K,BUGGY_SAFARI_ITERATORS:le}},47771:v=>{v.exports={}},84104:(v,T,s)=>{var p=s(8445);v.exports=function(S){return p(S.length)}},77679:v=>{var T=Math.ceil,s=Math.floor;v.exports=Math.trunc||function(S){var A=+S;return(A>0?s:T)(A)}},12950:(v,T,s)=>{var p=s(98576),S=s(8043),A=s(5141).f,h=s(67160).set,E=s(69536),F=s(29347),U=s(5914),_=s(58189),Q=p.MutationObserver||p.WebKitMutationObserver,le=p.document,K=p.process,ne=p.Promise,$=A(p,"queueMicrotask"),P=$&&$.value,Y,L,C,k,B,X,H,D;P||(Y=function(){var re,J;for(_&&(re=K.domain)&&re.exit();L;){J=L.fn,L=L.next;try{J()}catch(z){throw L?k():C=void 0,z}}C=void 0,re&&re.enter()},!E&&!_&&!U&&Q&&le?(B=!0,X=le.createTextNode(""),new Q(Y).observe(X,{characterData:!0}),k=function(){X.data=B=!B}):!F&&ne&&ne.resolve?(H=ne.resolve(void 0),H.constructor=ne,D=S(H.then,H),k=function(){D(Y)}):_?k=function(){K.nextTick(Y)}:(h=S(h,p),k=function(){h(Y)})),v.exports=P||function(re){var J={fn:re,next:void 0};C&&(C.next=J),L||(L=J,k()),C=J}},99438:(v,T,s)=>{"use strict";var p=s(66235),S=TypeError,A=function(h){var E,F;this.promise=new h(function(U,_){if(E!==void 0||F!==void 0)throw S("Bad Promise constructor");E=U,F=_}),this.resolve=p(E),this.reject=p(F)};v.exports.f=function(h){return new A(h)}},36016:(v,T,s)=>{var p=s(44845);v.exports=function(S,A){return S===void 0?arguments.length<2?"":A:p(S)}},9703:(v,T,s)=>{var p=s(94352),S=TypeError;v.exports=function(A){if(p(A))throw S("The method doesn't accept regular expressions");return A}},52503:(v,T,s)=>{"use strict";var p=s(50069),S=s(84120),A=s(18922),h=s(76192),E=s(57653),F=s(84750),U=s(56007),_=s(71795),Q=s(2202),le=Object.assign,K=Object.defineProperty,ne=S([].concat);v.exports=!le||h(function(){if(p&&le({b:1},le(K({},"a",{enumerable:!0,get:function(){K(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var $={},P={},Y=Symbol(),L="abcdefghijklmnopqrst";return $[Y]=7,L.split("").forEach(function(C){P[C]=C}),le({},$)[Y]!=7||E(le({},P)).join("")!=L})?function(P,Y){for(var L=_(P),C=arguments.length,k=1,B=F.f,X=U.f;C>k;)for(var H=Q(arguments[k++]),D=B?ne(E(H),B(H)):E(H),re=D.length,J=0,z;re>J;)z=D[J++],(!p||A(X,H,z))&&(L[z]=H[z]);return L}:le},52853:(v,T,s)=>{var p=s(31138),S=s(11187),A=s(82952),h=s(14535),E=s(47403),F=s(67449),U=s(69766),_=">",Q="<",le="prototype",K="script",ne=U("IE_PROTO"),$=function(){},P=function(B){return Q+K+_+B+Q+"/"+K+_},Y=function(B){B.write(P("")),B.close();var X=B.parentWindow.Object;return B=null,X},L=function(){var B=F("iframe"),X="java"+K+":",H;return B.style.display="none",E.appendChild(B),B.src=String(X),H=B.contentWindow.document,H.open(),H.write(P("document.F=Object")),H.close(),H.F},C,k=function(){try{C=new ActiveXObject("htmlfile")}catch(X){}k=typeof document!="undefined"?document.domain&&C?Y(C):L():Y(C);for(var B=A.length;B--;)delete k[le][A[B]];return k()};h[ne]=!0,v.exports=Object.create||function(X,H){var D;return X!==null?($[le]=p(X),D=new $,$[le]=null,D[ne]=X):D=k(),H===void 0?D:S.f(D,H)}},11187:(v,T,s)=>{var p=s(50069),S=s(69600),A=s(42760),h=s(31138),E=s(20101),F=s(57653);T.f=p&&!S?Object.defineProperties:function(_,Q){h(_);for(var le=E(Q),K=F(Q),ne=K.length,$=0,P;ne>$;)A.f(_,P=K[$++],le[P]);return _}},42760:(v,T,s)=>{var p=s(50069),S=s(80188),A=s(69600),h=s(31138),E=s(40077),F=TypeError,U=Object.defineProperty,_=Object.getOwnPropertyDescriptor,Q="enumerable",le="configurable",K="writable";T.f=p?A?function($,P,Y){if(h($),P=E(P),h(Y),typeof $=="function"&&P==="prototype"&&"value"in Y&&K in Y&&!Y[K]){var L=_($,P);L&&L[K]&&($[P]=Y.value,Y={configurable:le in Y?Y[le]:L[le],enumerable:Q in Y?Y[Q]:L[Q],writable:!1})}return U($,P,Y)}:U:function($,P,Y){if(h($),P=E(P),h(Y),S)try{return U($,P,Y)}catch(L){}if("get"in Y||"set"in Y)throw F("Accessors not supported");return"value"in Y&&($[P]=Y.value),$}},5141:(v,T,s)=>{var p=s(50069),S=s(18922),A=s(56007),h=s(90774),E=s(20101),F=s(40077),U=s(64500),_=s(80188),Q=Object.getOwnPropertyDescriptor;T.f=p?Q:function(K,ne){if(K=E(K),ne=F(ne),_)try{return Q(K,ne)}catch($){}if(U(K,ne))return h(!S(A.f,K,ne),K[ne])}},24052:(v,T,s)=>{var p=s(29272),S=s(20101),A=s(92092).f,h=s(1923),E=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],F=function(U){try{return A(U)}catch(_){return h(E)}};v.exports.f=function(_){return E&&p(_)=="Window"?F(_):A(S(_))}},92092:(v,T,s)=>{var p=s(57934),S=s(82952),A=S.concat("length","prototype");T.f=Object.getOwnPropertyNames||function(E){return p(E,A)}},84750:(v,T)=>{T.f=Object.getOwnPropertySymbols},89341:(v,T,s)=>{var p=s(64500),S=s(16447),A=s(71795),h=s(69766),E=s(4635),F=h("IE_PROTO"),U=Object,_=U.prototype;v.exports=E?U.getPrototypeOf:function(Q){var le=A(Q);if(p(le,F))return le[F];var K=le.constructor;return S(K)&&le instanceof K?K.prototype:le instanceof U?_:null}},4532:(v,T,s)=>{var p=s(76192),S=s(35744),A=s(29272),h=s(80410),E=Object.isExtensible,F=p(function(){E(1)});v.exports=F||h?function(_){return!S(_)||h&&A(_)=="ArrayBuffer"?!1:E?E(_):!0}:E},8902:(v,T,s)=>{var p=s(84120);v.exports=p({}.isPrototypeOf)},57934:(v,T,s)=>{var p=s(84120),S=s(64500),A=s(20101),h=s(48180).indexOf,E=s(14535),F=p([].push);v.exports=function(U,_){var Q=A(U),le=0,K=[],ne;for(ne in Q)!S(E,ne)&&S(Q,ne)&&F(K,ne);for(;_.length>le;)S(Q,ne=_[le++])&&(~h(K,ne)||F(K,ne));return K}},57653:(v,T,s)=>{var p=s(57934),S=s(82952);v.exports=Object.keys||function(h){return p(h,S)}},56007:(v,T)=>{"use strict";var s={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,S=p&&!s.call({1:2},1);T.f=S?function(h){var E=p(this,h);return!!E&&E.enumerable}:s},24469:(v,T,s)=>{var p=s(84120),S=s(31138),A=s(7757);v.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var h=!1,E={},F;try{F=p(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),F(E,[]),h=E instanceof Array}catch(U){}return function(_,Q){return S(_),A(Q),h?F(_,Q):_.__proto__=Q,_}}():void 0)},75370:(v,T,s)=>{var p=s(50069),S=s(84120),A=s(57653),h=s(20101),E=s(56007).f,F=S(E),U=S([].push),_=function(Q){return function(le){for(var K=h(le),ne=A(K),$=ne.length,P=0,Y=[],L;$>P;)L=ne[P++],(!p||F(K,L))&&U(Y,Q?[L,K[L]]:K[L]);return Y}};v.exports={entries:_(!0),values:_(!1)}},40158:(v,T,s)=>{"use strict";var p=s(83471),S=s(4696);v.exports=p?{}.toString:function(){return"[object "+S(this)+"]"}},380:(v,T,s)=>{var p=s(18922),S=s(16447),A=s(35744),h=TypeError;v.exports=function(E,F){var U,_;if(F==="string"&&S(U=E.toString)&&!A(_=p(U,E))||S(U=E.valueOf)&&!A(_=p(U,E))||F!=="string"&&S(U=E.toString)&&!A(_=p(U,E)))return _;throw h("Can't convert object to primitive value")}},93011:(v,T,s)=>{var p=s(10150),S=s(84120),A=s(92092),h=s(84750),E=s(31138),F=S([].concat);v.exports=p("Reflect","ownKeys")||function(_){var Q=A.f(E(_)),le=h.f;return le?F(Q,le(_)):Q}},57545:v=>{v.exports={}},70892:v=>{v.exports=function(T){try{return{error:!1,value:T()}}catch(s){return{error:!0,value:s}}}},30511:(v,T,s)=>{var p=s(98576),S=s(15813),A=s(16447),h=s(89245),E=s(19516),F=s(18182),U=s(82957),_=s(60659),Q=s(85546),le=s(14218),K=S&&S.prototype,ne=F("species"),$=!1,P=A(p.PromiseRejectionEvent),Y=h("Promise",function(){var L=E(S),C=L!==String(S);if(!C&&le===66||Q&&!(K.catch&&K.finally))return!0;if(!le||le<51||!/native code/.test(L)){var k=new S(function(H){H(1)}),B=function(H){H(function(){},function(){})},X=k.constructor={};if(X[ne]=B,$=k.then(function(){})instanceof B,!$)return!0}return!C&&(U||_)&&!P});v.exports={CONSTRUCTOR:Y,REJECTION_EVENT:P,SUBCLASSING:$}},15813:(v,T,s)=>{var p=s(98576);v.exports=p.Promise},19126:(v,T,s)=>{var p=s(31138),S=s(35744),A=s(99438);v.exports=function(h,E){if(p(h),S(E)&&E.constructor===h)return E;var F=A.f(h),U=F.resolve;return U(E),F.promise}},52775:(v,T,s)=>{var p=s(15813),S=s(19770),A=s(30511).CONSTRUCTOR;v.exports=A||!S(function(h){p.all(h).then(void 0,function(){})})},6412:v=>{var T=function(){this.head=null,this.tail=null};T.prototype={add:function(s){var p={item:s,next:null};this.head?this.tail.next=p:this.head=p,this.tail=p},get:function(){var s=this.head;if(s)return this.head=s.next,this.tail===s&&(this.tail=null),s.item}},v.exports=T},13209:(v,T,s)=>{var p=s(75646),S=TypeError;v.exports=function(A){if(p(A))throw S("Can't call method on "+A);return A}},63656:(v,T,s)=>{"use strict";var p=s(10150),S=s(42760),A=s(18182),h=s(50069),E=A("species");v.exports=function(F){var U=p(F),_=S.f;h&&U&&!U[E]&&_(U,E,{configurable:!0,get:function(){return this}})}},11284:(v,T,s)=>{var p=s(83471),S=s(42760).f,A=s(98711),h=s(64500),E=s(40158),F=s(18182),U=F("toStringTag");v.exports=function(_,Q,le,K){if(_){var ne=le?_:_.prototype;h(ne,U)||S(ne,U,{configurable:!0,value:Q}),K&&!p&&A(ne,"toString",E)}}},69766:(v,T,s)=>{var p=s(98717),S=s(42759),A=p("keys");v.exports=function(h){return A[h]||(A[h]=S(h))}},46434:(v,T,s)=>{var p=s(98576),S=s(65098),A="__core-js_shared__",h=p[A]||S(A,{});v.exports=h},98717:(v,T,s)=>{var p=s(85546),S=s(46434);(v.exports=function(A,h){return S[A]||(S[A]=h!==void 0?h:{})})("versions",[]).push({version:"3.25.5",mode:p?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"})},84743:(v,T,s)=>{var p=s(31138),S=s(71404),A=s(75646),h=s(18182),E=h("species");v.exports=function(F,U){var _=p(F).constructor,Q;return _===void 0||A(Q=p(_)[E])?U:S(Q)}},863:(v,T,s)=>{var p=s(84120),S=s(41941),A=s(44845),h=s(13209),E=p("".charAt),F=p("".charCodeAt),U=p("".slice),_=function(Q){return function(le,K){var ne=A(h(le)),$=S(K),P=ne.length,Y,L;return $<0||$>=P?Q?"":void 0:(Y=F(ne,$),Y<55296||Y>56319||$+1===P||(L=F(ne,$+1))<56320||L>57343?Q?E(ne,$):Y:Q?U(ne,$,$+2):(Y-55296<<10)+(L-56320)+65536)}};v.exports={codeAt:_(!1),charAt:_(!0)}},36770:(v,T,s)=>{var p=s(14218),S=s(76192);v.exports=!!Object.getOwnPropertySymbols&&!S(function(){var A=Symbol();return!String(A)||!(Object(A)instanceof Symbol)||!Symbol.sham&&p&&p<41})},93407:(v,T,s)=>{var p=s(18922),S=s(10150),A=s(18182),h=s(59362);v.exports=function(){var E=S("Symbol"),F=E&&E.prototype,U=F&&F.valueOf,_=A("toPrimitive");F&&!F[_]&&h(F,_,function(Q){return p(U,this)},{arity:1})}},20031:(v,T,s)=>{var p=s(36770);v.exports=p&&!!Symbol.for&&!!Symbol.keyFor},67160:(v,T,s)=>{var p=s(98576),S=s(86298),A=s(8043),h=s(16447),E=s(64500),F=s(76192),U=s(47403),_=s(93096),Q=s(67449),le=s(67822),K=s(69536),ne=s(58189),$=p.setImmediate,P=p.clearImmediate,Y=p.process,L=p.Dispatch,C=p.Function,k=p.MessageChannel,B=p.String,X=0,H={},D="onreadystatechange",re,J,z,fe;try{re=p.location}catch(ve){}var pe=function(ve){if(E(H,ve)){var Ie=H[ve];delete H[ve],Ie()}},q=function(ve){return function(){pe(ve)}},Z=function(ve){pe(ve.data)},G=function(ve){p.postMessage(B(ve),re.protocol+"//"+re.host)};(!$||!P)&&($=function(Ie){le(arguments.length,1);var Ne=h(Ie)?Ie:C(Ie),je=_(arguments,1);return H[++X]=function(){S(Ne,void 0,je)},J(X),X},P=function(Ie){delete H[Ie]},ne?J=function(ve){Y.nextTick(q(ve))}:L&&L.now?J=function(ve){L.now(q(ve))}:k&&!K?(z=new k,fe=z.port2,z.port1.onmessage=Z,J=A(fe.postMessage,fe)):p.addEventListener&&h(p.postMessage)&&!p.importScripts&&re&&re.protocol!=="file:"&&!F(G)?(J=G,p.addEventListener("message",Z,!1)):D in Q("script")?J=function(ve){U.appendChild(Q("script"))[D]=function(){U.removeChild(this),pe(ve)}}:J=function(ve){setTimeout(q(ve),0)}),v.exports={set:$,clear:P}},97739:(v,T,s)=>{var p=s(41941),S=Math.max,A=Math.min;v.exports=function(h,E){var F=p(h);return F<0?S(F+E,0):A(F,E)}},20101:(v,T,s)=>{var p=s(2202),S=s(13209);v.exports=function(A){return p(S(A))}},41941:(v,T,s)=>{var p=s(77679);v.exports=function(S){var A=+S;return A!==A||A===0?0:p(A)}},8445:(v,T,s)=>{var p=s(41941),S=Math.min;v.exports=function(A){return A>0?S(p(A),9007199254740991):0}},71795:(v,T,s)=>{var p=s(13209),S=Object;v.exports=function(A){return S(p(A))}},97888:(v,T,s)=>{var p=s(18922),S=s(35744),A=s(23236),h=s(75037),E=s(380),F=s(18182),U=TypeError,_=F("toPrimitive");v.exports=function(Q,le){if(!S(Q)||A(Q))return Q;var K=h(Q,_),ne;if(K){if(le===void 0&&(le="default"),ne=p(K,Q,le),!S(ne)||A(ne))return ne;throw U("Can't convert object to primitive value")}return le===void 0&&(le="number"),E(Q,le)}},40077:(v,T,s)=>{var p=s(97888),S=s(23236);v.exports=function(A){var h=p(A,"string");return S(h)?h:h+""}},83471:(v,T,s)=>{var p=s(18182),S=p("toStringTag"),A={};A[S]="z",v.exports=String(A)==="[object z]"},44845:(v,T,s)=>{var p=s(4696),S=String;v.exports=function(A){if(p(A)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return S(A)}},79288:v=>{var T=String;v.exports=function(s){try{return T(s)}catch(p){return"Object"}}},42759:(v,T,s)=>{var p=s(84120),S=0,A=Math.random(),h=p(1 .toString);v.exports=function(E){return"Symbol("+(E===void 0?"":E)+")_"+h(++S+A,36)}},58552:(v,T,s)=>{var p=s(76192),S=s(18182),A=s(85546),h=S("iterator");v.exports=!p(function(){var E=new URL("b?a=1&b=2&c=3","http://a"),F=E.searchParams,U="";return E.pathname="c%20d",F.forEach(function(_,Q){F.delete("b"),U+=Q+_}),A&&!E.toJSON||!F.sort||E.href!=="http://a/c%20d?a=1&c=3"||F.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!F[h]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||U!=="a1c3"||new URL("http://x",void 0).host!=="x"})},50615:(v,T,s)=>{var p=s(36770);v.exports=p&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},69600:(v,T,s)=>{var p=s(50069),S=s(76192);v.exports=p&&S(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},67822:v=>{var T=TypeError;v.exports=function(s,p){if(s<p)throw T("Not enough arguments");return s}},55278:(v,T,s)=>{var p=s(98576),S=s(16447),A=p.WeakMap;v.exports=S(A)&&/native code/.test(String(A))},48332:(v,T,s)=>{var p=s(57545),S=s(64500),A=s(89207),h=s(42760).f;v.exports=function(E){var F=p.Symbol||(p.Symbol={});S(F,E)||h(F,E,{value:A.f(E)})}},89207:(v,T,s)=>{var p=s(18182);T.f=p},18182:(v,T,s)=>{var p=s(98576),S=s(98717),A=s(64500),h=s(42759),E=s(36770),F=s(50615),U=S("wks"),_=p.Symbol,Q=_&&_.for,le=F?_:_&&_.withoutSetter||h;v.exports=function(K){if(!A(U,K)||!(E||typeof U[K]=="string")){var ne="Symbol."+K;E&&A(_,K)?U[K]=_[K]:F&&Q?U[K]=Q(ne):U[K]=le(ne)}return U[K]}},93820:(v,T,s)=>{"use strict";var p=s(93085),S=s(8902),A=s(89341),h=s(24469),E=s(97987),F=s(52853),U=s(98711),_=s(90774),Q=s(14503),le=s(10273),K=s(33442),ne=s(36016),$=s(18182),P=s(50274),Y=$("toStringTag"),L=Error,C=[].push,k=function(H,D){var re=arguments.length>2?arguments[2]:void 0,J=S(B,this),z;h?z=h(L(),J?A(this):B):(z=J?this:F(B),U(z,Y,"Error")),D!==void 0&&U(z,"message",ne(D)),P&&U(z,"stack",Q(z.stack,1)),le(z,re);var fe=[];return K(H,C,{that:fe}),U(z,"errors",fe),z};h?h(k,L):E(k,L,{name:!0});var B=k.prototype=F(L.prototype,{constructor:_(1,k),message:_(1,""),name:_(1,"AggregateError")});p({global:!0,constructor:!0,arity:2},{AggregateError:k})},4242:(v,T,s)=>{s(93820)},59106:(v,T,s)=>{"use strict";var p=s(93085),S=s(76192),A=s(34770),h=s(35744),E=s(71795),F=s(84104),U=s(29425),_=s(49361),Q=s(71321),le=s(90242),K=s(18182),ne=s(14218),$=K("isConcatSpreadable"),P=ne>=51||!S(function(){var k=[];return k[$]=!1,k.concat()[0]!==k}),Y=le("concat"),L=function(k){if(!h(k))return!1;var B=k[$];return B!==void 0?!!B:A(k)},C=!P||!Y;p({target:"Array",proto:!0,arity:1,forced:C},{concat:function(B){var X=E(this),H=Q(X,0),D=0,re,J,z,fe,pe;for(re=-1,z=arguments.length;re<z;re++)if(pe=re===-1?X:arguments[re],L(pe))for(fe=F(pe),U(D+fe),J=0;J<fe;J++,D++)J in pe&&_(H,D,pe[J]);else U(D+1),_(H,D++,pe);return H.length=D,H}})},73436:(v,T,s)=>{"use strict";var p=s(93085),S=s(50454).filter,A=s(90242),h=A("filter");p({target:"Array",proto:!0,forced:!h},{filter:function(F){return S(this,F,arguments.length>1?arguments[1]:void 0)}})},10880:(v,T,s)=>{"use strict";var p=s(93085),S=s(50454).find,A=s(67423),h="find",E=!0;h in[]&&Array(1)[h](function(){E=!1}),p({target:"Array",proto:!0,forced:E},{find:function(U){return S(this,U,arguments.length>1?arguments[1]:void 0)}}),A(h)},9823:(v,T,s)=>{"use strict";var p=s(93085),S=s(87397);p({target:"Array",proto:!0,forced:[].forEach!=S},{forEach:S})},19173:(v,T,s)=>{var p=s(93085),S=s(20841),A=s(19770),h=!A(function(E){Array.from(E)});p({target:"Array",stat:!0,forced:h},{from:S})},70024:(v,T,s)=>{"use strict";var p=s(93085),S=s(48180).includes,A=s(76192),h=s(67423),E=A(function(){return!Array(1).includes()});p({target:"Array",proto:!0,forced:E},{includes:function(U){return S(this,U,arguments.length>1?arguments[1]:void 0)}}),h("includes")},62276:(v,T,s)=>{"use strict";var p=s(93085),S=s(84120),A=s(48180).indexOf,h=s(10424),E=S([].indexOf),F=!!E&&1/E([1],1,-0)<0,U=h("indexOf");p({target:"Array",proto:!0,forced:F||!U},{indexOf:function(Q){var le=arguments.length>1?arguments[1]:void 0;return F?E(this,Q,le)||0:A(this,Q,le)}})},8118:(v,T,s)=>{var p=s(93085),S=s(34770);p({target:"Array",stat:!0},{isArray:S})},98939:(v,T,s)=>{"use strict";var p=s(20101),S=s(67423),A=s(47771),h=s(73326),E=s(42760).f,F=s(65297),U=s(87271),_=s(85546),Q=s(50069),le="Array Iterator",K=h.set,ne=h.getterFor(le);v.exports=F(Array,"Array",function(P,Y){K(this,{type:le,target:p(P),index:0,kind:Y})},function(){var P=ne(this),Y=P.target,L=P.kind,C=P.index++;return!Y||C>=Y.length?(P.target=void 0,U(void 0,!0)):L=="keys"?U(C,!1):L=="values"?U(Y[C],!1):U([C,Y[C]],!1)},"values");var $=A.Arguments=A.Array;if(S("keys"),S("values"),S("entries"),!_&&Q&&$.name!=="values")try{E($,"name",{value:"values"})}catch(P){}},63838:(v,T,s)=>{"use strict";var p=s(93085),S=s(50454).map,A=s(90242),h=A("map");p({target:"Array",proto:!0,forced:!h},{map:function(F){return S(this,F,arguments.length>1?arguments[1]:void 0)}})},99523:(v,T,s)=>{"use strict";var p=s(93085),S=s(84120),A=s(34770),h=S([].reverse),E=[1,2];p({target:"Array",proto:!0,forced:String(E)===String(E.reverse())},{reverse:function(){return A(this)&&(this.length=this.length),h(this)}})},65818:(v,T,s)=>{"use strict";var p=s(93085),S=s(34770),A=s(22091),h=s(35744),E=s(97739),F=s(84104),U=s(20101),_=s(49361),Q=s(18182),le=s(90242),K=s(93096),ne=le("slice"),$=Q("species"),P=Array,Y=Math.max;p({target:"Array",proto:!0,forced:!ne},{slice:function(C,k){var B=U(this),X=F(B),H=E(C,X),D=E(k===void 0?X:k,X),re,J,z;if(S(B)&&(re=B.constructor,A(re)&&(re===P||S(re.prototype))?re=void 0:h(re)&&(re=re[$],re===null&&(re=void 0)),re===P||re===void 0))return K(B,H,D);for(J=new(re===void 0?P:re)(Y(D-H,0)),z=0;H<D;H++,z++)H in B&&_(J,z,B[H]);return J.length=z,J}})},12178:(v,T,s)=>{"use strict";var p=s(93085),S=s(71795),A=s(97739),h=s(41941),E=s(84104),F=s(95072),U=s(29425),_=s(71321),Q=s(49361),le=s(29970),K=s(90242),ne=K("splice"),$=Math.max,P=Math.min;p({target:"Array",proto:!0,forced:!ne},{splice:function(L,C){var k=S(this),B=E(k),X=A(L,B),H=arguments.length,D,re,J,z,fe,pe;for(H===0?D=re=0:H===1?(D=0,re=B-X):(D=H-2,re=P($(h(C),0),B-X)),U(B+D-re),J=_(k,re),z=0;z<re;z++)fe=X+z,fe in k&&Q(J,z,k[fe]);if(J.length=re,D<re){for(z=X;z<B-re;z++)fe=z+re,pe=z+D,fe in k?k[pe]=k[fe]:le(k,pe);for(z=B;z>B-re+D;z--)le(k,z-1)}else if(D>re)for(z=B-re;z>X;z--)fe=z+re-1,pe=z+D-1,fe in k?k[pe]=k[fe]:le(k,pe);for(z=0;z<D;z++)k[z+X]=arguments[z+2];return F(k,B-re+D),J}})},25067:(v,T,s)=>{var p=s(93085),S=s(98576);p({global:!0,forced:S.globalThis!==S},{globalThis:S})},59704:(v,T,s)=>{var p=s(93085),S=s(10150),A=s(86298),h=s(18922),E=s(84120),F=s(76192),U=s(34770),_=s(16447),Q=s(35744),le=s(23236),K=s(93096),ne=s(36770),$=S("JSON","stringify"),P=E(/./.exec),Y=E("".charAt),L=E("".charCodeAt),C=E("".replace),k=E(1 .toString),B=/[\uD800-\uDFFF]/g,X=/^[\uD800-\uDBFF]$/,H=/^[\uDC00-\uDFFF]$/,D=!ne||F(function(){var fe=S("Symbol")();return $([fe])!="[null]"||$({a:fe})!="{}"||$(Object(fe))!="{}"}),re=F(function(){return $("\uDF06\uD834")!=='"\\udf06\\ud834"'||$("\uDEAD")!=='"\\udead"'}),J=function(fe,pe){var q=K(arguments),Z=pe;if(!(!Q(pe)&&fe===void 0||le(fe)))return U(pe)||(pe=function(G,ve){if(_(Z)&&(ve=h(Z,this,G,ve)),!le(ve))return ve}),q[1]=pe,A($,null,q)},z=function(fe,pe,q){var Z=Y(q,pe-1),G=Y(q,pe+1);return P(X,fe)&&!P(H,G)||P(H,fe)&&!P(X,Z)?"\\u"+k(L(fe,0),16):fe};$&&p({target:"JSON",stat:!0,arity:3,forced:D||re},{stringify:function(pe,q,Z){var G=K(arguments),ve=A(D?J:$,null,G);return re&&typeof ve=="string"?C(ve,B,z):ve}})},68671:(v,T,s)=>{var p=s(98576),S=s(11284);S(p.JSON,"JSON",!0)},58556:()=>{},93582:(v,T,s)=>{var p=s(93085),S=s(52503);p({target:"Object",stat:!0,arity:2,forced:Object.assign!==S},{assign:S})},73113:(v,T,s)=>{var p=s(93085),S=s(50069),A=s(52853);p({target:"Object",stat:!0,sham:!S},{create:A})},57585:(v,T,s)=>{var p=s(93085),S=s(50069),A=s(11187).f;p({target:"Object",stat:!0,forced:Object.defineProperties!==A,sham:!S},{defineProperties:A})},20297:(v,T,s)=>{var p=s(93085),S=s(50069),A=s(42760).f;p({target:"Object",stat:!0,forced:Object.defineProperty!==A,sham:!S},{defineProperty:A})},27442:(v,T,s)=>{var p=s(93085),S=s(75370).entries;p({target:"Object",stat:!0},{entries:function(h){return S(h)}})},89189:(v,T,s)=>{var p=s(93085),S=s(76192),A=s(20101),h=s(5141).f,E=s(50069),F=S(function(){h(1)}),U=!E||F;p({target:"Object",stat:!0,forced:U,sham:!E},{getOwnPropertyDescriptor:function(Q,le){return h(A(Q),le)}})},62509:(v,T,s)=>{var p=s(93085),S=s(50069),A=s(93011),h=s(20101),E=s(5141),F=s(49361);p({target:"Object",stat:!0,sham:!S},{getOwnPropertyDescriptors:function(_){for(var Q=h(_),le=E.f,K=A(Q),ne={},$=0,P,Y;K.length>$;)Y=le(Q,P=K[$++]),Y!==void 0&&F(ne,P,Y);return ne}})},17895:(v,T,s)=>{var p=s(93085),S=s(36770),A=s(76192),h=s(84750),E=s(71795),F=!S||A(function(){h.f(1)});p({target:"Object",stat:!0,forced:F},{getOwnPropertySymbols:function(_){var Q=h.f;return Q?Q(E(_)):[]}})},19234:(v,T,s)=>{var p=s(93085),S=s(76192),A=s(71795),h=s(89341),E=s(4635),F=S(function(){h(1)});p({target:"Object",stat:!0,forced:F,sham:!E},{getPrototypeOf:function(_){return h(A(_))}})},92647:(v,T,s)=>{var p=s(93085),S=s(71795),A=s(57653),h=s(76192),E=h(function(){A(1)});p({target:"Object",stat:!0,forced:E},{keys:function(U){return A(S(U))}})},13222:(v,T,s)=>{var p=s(93085),S=s(24469);p({target:"Object",stat:!0},{setPrototypeOf:S})},46663:()=>{},97884:(v,T,s)=>{"use strict";var p=s(93085),S=s(18922),A=s(66235),h=s(99438),E=s(70892),F=s(33442);p({target:"Promise",stat:!0},{allSettled:function(_){var Q=this,le=h.f(Q),K=le.resolve,ne=le.reject,$=E(function(){var P=A(Q.resolve),Y=[],L=0,C=1;F(_,function(k){var B=L++,X=!1;C++,S(P,Q,k).then(function(H){X||(X=!0,Y[B]={status:"fulfilled",value:H},--C||K(Y))},function(H){X||(X=!0,Y[B]={status:"rejected",reason:H},--C||K(Y))})}),--C||K(Y)});return $.error&&ne($.value),le.promise}})},89701:(v,T,s)=>{"use strict";var p=s(93085),S=s(18922),A=s(66235),h=s(99438),E=s(70892),F=s(33442),U=s(52775);p({target:"Promise",stat:!0,forced:U},{all:function(Q){var le=this,K=h.f(le),ne=K.resolve,$=K.reject,P=E(function(){var Y=A(le.resolve),L=[],C=0,k=1;F(Q,function(B){var X=C++,H=!1;k++,S(Y,le,B).then(function(D){H||(H=!0,L[X]=D,--k||ne(L))},$)}),--k||ne(L)});return P.error&&$(P.value),K.promise}})},78885:(v,T,s)=>{"use strict";var p=s(93085),S=s(18922),A=s(66235),h=s(10150),E=s(99438),F=s(70892),U=s(33442),_="No one promise resolved";p({target:"Promise",stat:!0},{any:function(le){var K=this,ne=h("AggregateError"),$=E.f(K),P=$.resolve,Y=$.reject,L=F(function(){var C=A(K.resolve),k=[],B=0,X=1,H=!1;U(le,function(D){var re=B++,J=!1;X++,S(C,K,D).then(function(z){J||H||(H=!0,P(z))},function(z){J||H||(J=!0,k[re]=z,--X||Y(new ne(k,_)))})}),--X||Y(new ne(k,_))});return L.error&&Y(L.value),$.promise}})},34025:(v,T,s)=>{"use strict";var p=s(93085),S=s(85546),A=s(30511).CONSTRUCTOR,h=s(15813),E=s(10150),F=s(16447),U=s(59362),_=h&&h.prototype;if(p({target:"Promise",proto:!0,forced:A,real:!0},{catch:function(le){return this.then(void 0,le)}}),!S&&F(h)){var Q=E("Promise").prototype.catch;_.catch!==Q&&U(_,"catch",Q,{unsafe:!0})}},60268:(v,T,s)=>{"use strict";var p=s(93085),S=s(85546),A=s(58189),h=s(98576),E=s(18922),F=s(59362),U=s(24469),_=s(11284),Q=s(63656),le=s(66235),K=s(16447),ne=s(35744),$=s(46961),P=s(84743),Y=s(67160).set,L=s(12950),C=s(63681),k=s(70892),B=s(6412),X=s(73326),H=s(15813),D=s(30511),re=s(99438),J="Promise",z=D.CONSTRUCTOR,fe=D.REJECTION_EVENT,pe=D.SUBCLASSING,q=X.getterFor(J),Z=X.set,G=H&&H.prototype,ve=H,Ie=G,Ne=h.TypeError,je=h.document,tt=h.process,_e=re.f,mt=_e,De=!!(je&&je.createEvent&&h.dispatchEvent),Oe="unhandledrejection",Ue="rejectionhandled",Pe=0,Ce=1,Ge=2,rt=1,$e=2,et,Ze,Ct,kt,Zt=function(Xe){var gt;return ne(Xe)&&K(gt=Xe.then)?gt:!1},lt=function(Xe,gt){var Tt=gt.value,At=gt.state==Ce,Ot=At?Xe.ok:Xe.fail,ct=Xe.resolve,it=Xe.reject,Et=Xe.domain,nt,Ve,ue;try{Ot?(At||(gt.rejection===$e&&qr(gt),gt.rejection=rt),Ot===!0?nt=Tt:(Et&&Et.enter(),nt=Ot(Tt),Et&&(Et.exit(),ue=!0)),nt===Xe.promise?it(Ne("Promise-chain cycle")):(Ve=Zt(nt))?E(Ve,nt,ct,it):ct(nt)):it(Tt)}catch(ge){Et&&!ue&&Et.exit(),it(ge)}},xt=function(Xe,gt){Xe.notified||(Xe.notified=!0,L(function(){for(var Tt=Xe.reactions,At;At=Tt.get();)lt(At,Xe);Xe.notified=!1,gt&&!Xe.rejection&&Kr(Xe)}))},Ft=function(Xe,gt,Tt){var At,Ot;De?(At=je.createEvent("Event"),At.promise=gt,At.reason=Tt,At.initEvent(Xe,!1,!0),h.dispatchEvent(At)):At={promise:gt,reason:Tt},!fe&&(Ot=h["on"+Xe])?Ot(At):Xe===Oe&&C("Unhandled promise rejection",Tt)},Kr=function(Xe){E(Y,h,function(){var gt=Xe.facade,Tt=Xe.value,At=br(Xe),Ot;if(At&&(Ot=k(function(){A?tt.emit("unhandledRejection",Tt,gt):Ft(Oe,gt,Tt)}),Xe.rejection=A||br(Xe)?$e:rt,Ot.error))throw Ot.value})},br=function(Xe){return Xe.rejection!==rt&&!Xe.parent},qr=function(Xe){E(Y,h,function(){var gt=Xe.facade;A?tt.emit("rejectionHandled",gt):Ft(Ue,gt,Xe.value)})},xr=function(Xe,gt,Tt){return function(At){Xe(gt,At,Tt)}},Yt=function(Xe,gt,Tt){Xe.done||(Xe.done=!0,Tt&&(Xe=Tt),Xe.value=gt,Xe.state=Ge,xt(Xe,!0))},dr=function(Xe,gt,Tt){if(!Xe.done){Xe.done=!0,Tt&&(Xe=Tt);try{if(Xe.facade===gt)throw Ne("Promise can't be resolved itself");var At=Zt(gt);At?L(function(){var Ot={done:!1};try{E(At,gt,xr(dr,Ot,Xe),xr(Yt,Ot,Xe))}catch(ct){Yt(Ot,ct,Xe)}}):(Xe.value=gt,Xe.state=Ce,xt(Xe,!1))}catch(Ot){Yt({done:!1},Ot,Xe)}}};if(z&&(ve=function(gt){$(this,Ie),le(gt),E(et,this);var Tt=q(this);try{gt(xr(dr,Tt),xr(Yt,Tt))}catch(At){Yt(Tt,At)}},Ie=ve.prototype,et=function(gt){Z(this,{type:J,done:!1,notified:!1,parent:!1,reactions:new B,rejection:!1,state:Pe,value:void 0})},et.prototype=F(Ie,"then",function(gt,Tt){var At=q(this),Ot=_e(P(this,ve));return At.parent=!0,Ot.ok=K(gt)?gt:!0,Ot.fail=K(Tt)&&Tt,Ot.domain=A?tt.domain:void 0,At.state==Pe?At.reactions.add(Ot):L(function(){lt(Ot,At)}),Ot.promise}),Ze=function(){var Xe=new et,gt=q(Xe);this.promise=Xe,this.resolve=xr(dr,gt),this.reject=xr(Yt,gt)},re.f=_e=function(Xe){return Xe===ve||Xe===Ct?new Ze(Xe):mt(Xe)},!S&&K(H)&&G!==Object.prototype)){kt=G.then,pe||F(G,"then",function(gt,Tt){var At=this;return new ve(function(Ot,ct){E(kt,At,Ot,ct)}).then(gt,Tt)},{unsafe:!0});try{delete G.constructor}catch(Xe){}U&&U(G,Ie)}p({global:!0,constructor:!0,wrap:!0,forced:z},{Promise:ve}),_(ve,J,!1,!0),Q(J)},91868:(v,T,s)=>{"use strict";var p=s(93085),S=s(85546),A=s(15813),h=s(76192),E=s(10150),F=s(16447),U=s(84743),_=s(19126),Q=s(59362),le=A&&A.prototype,K=!!A&&h(function(){le.finally.call({then:function(){}},function(){})});if(p({target:"Promise",proto:!0,real:!0,forced:K},{finally:function($){var P=U(this,E("Promise")),Y=F($);return this.then(Y?function(L){return _(P,$()).then(function(){return L})}:$,Y?function(L){return _(P,$()).then(function(){throw L})}:$)}}),!S&&F(A)){var ne=E("Promise").prototype.finally;le.finally!==ne&&Q(le,"finally",ne,{unsafe:!0})}},59021:(v,T,s)=>{s(60268),s(89701),s(34025),s(67196),s(85873),s(22931)},67196:(v,T,s)=>{"use strict";var p=s(93085),S=s(18922),A=s(66235),h=s(99438),E=s(70892),F=s(33442),U=s(52775);p({target:"Promise",stat:!0,forced:U},{race:function(Q){var le=this,K=h.f(le),ne=K.reject,$=E(function(){var P=A(le.resolve);F(Q,function(Y){S(P,le,Y).then(K.resolve,ne)})});return $.error&&ne($.value),K.promise}})},85873:(v,T,s)=>{"use strict";var p=s(93085),S=s(18922),A=s(99438),h=s(30511).CONSTRUCTOR;p({target:"Promise",stat:!0,forced:h},{reject:function(F){var U=A.f(this);return S(U.reject,void 0,F),U.promise}})},22931:(v,T,s)=>{"use strict";var p=s(93085),S=s(10150),A=s(85546),h=s(15813),E=s(30511).CONSTRUCTOR,F=s(19126),U=S("Promise"),_=A&&!E;p({target:"Promise",stat:!0,forced:A||E},{resolve:function(le){return F(_&&this===U?h:this,le)}})},71367:()=>{},39247:(v,T,s)=>{"use strict";var p=s(93085),S=s(84120),A=s(9703),h=s(13209),E=s(44845),F=s(83519),U=S("".indexOf);p({target:"String",proto:!0,forced:!F("includes")},{includes:function(Q){return!!~U(E(h(this)),E(A(Q)),arguments.length>1?arguments[1]:void 0)}})},5454:(v,T,s)=>{"use strict";var p=s(863).charAt,S=s(44845),A=s(73326),h=s(65297),E=s(87271),F="String Iterator",U=A.set,_=A.getterFor(F);h(String,"String",function(Q){U(this,{type:F,string:S(Q),index:0})},function(){var le=_(this),K=le.string,ne=le.index,$;return ne>=K.length?E(void 0,!0):($=p(K,ne),le.index+=$.length,E($,!1))})},32991:(v,T,s)=>{"use strict";var p=s(93085),S=s(84120),A=s(5141).f,h=s(8445),E=s(44845),F=s(9703),U=s(13209),_=s(83519),Q=s(85546),le=S("".startsWith),K=S("".slice),ne=Math.min,$=_("startsWith"),P=!Q&&!$&&!!function(){var Y=A(String.prototype,"startsWith");return Y&&!Y.writable}();p({target:"String",proto:!0,forced:!P&&!$},{startsWith:function(L){var C=E(U(this));F(L);var k=h(ne(arguments.length>1?arguments[1]:void 0,C.length)),B=E(L);return le?le(C,B,k):K(C,k,k+B.length)===B}})},19781:(v,T,s)=>{var p=s(48332);p("asyncIterator")},49351:(v,T,s)=>{"use strict";var p=s(93085),S=s(98576),A=s(18922),h=s(84120),E=s(85546),F=s(50069),U=s(36770),_=s(76192),Q=s(64500),le=s(8902),K=s(31138),ne=s(20101),$=s(40077),P=s(44845),Y=s(90774),L=s(52853),C=s(57653),k=s(92092),B=s(24052),X=s(84750),H=s(5141),D=s(42760),re=s(11187),J=s(56007),z=s(59362),fe=s(98717),pe=s(69766),q=s(14535),Z=s(42759),G=s(18182),ve=s(89207),Ie=s(48332),Ne=s(93407),je=s(11284),tt=s(73326),_e=s(50454).forEach,mt=pe("hidden"),De="Symbol",Oe="prototype",Ue=tt.set,Pe=tt.getterFor(De),Ce=Object[Oe],Ge=S.Symbol,rt=Ge&&Ge[Oe],$e=S.TypeError,et=S.QObject,Ze=H.f,Ct=D.f,kt=B.f,Zt=J.f,lt=h([].push),xt=fe("symbols"),Ft=fe("op-symbols"),Kr=fe("wks"),br=!et||!et[Oe]||!et[Oe].findChild,qr=F&&_(function(){return L(Ct({},"a",{get:function(){return Ct(this,"a",{value:7}).a}})).a!=7})?function(ct,it,Et){var nt=Ze(Ce,it);nt&&delete Ce[it],Ct(ct,it,Et),nt&&ct!==Ce&&Ct(Ce,it,nt)}:Ct,xr=function(ct,it){var Et=xt[ct]=L(rt);return Ue(Et,{type:De,tag:ct,description:it}),F||(Et.description=it),Et},Yt=function(it,Et,nt){it===Ce&&Yt(Ft,Et,nt),K(it);var Ve=$(Et);return K(nt),Q(xt,Ve)?(nt.enumerable?(Q(it,mt)&&it[mt][Ve]&&(it[mt][Ve]=!1),nt=L(nt,{enumerable:Y(0,!1)})):(Q(it,mt)||Ct(it,mt,Y(1,{})),it[mt][Ve]=!0),qr(it,Ve,nt)):Ct(it,Ve,nt)},dr=function(it,Et){K(it);var nt=ne(Et),Ve=C(nt).concat(Ot(nt));return _e(Ve,function(ue){(!F||A(gt,nt,ue))&&Yt(it,ue,nt[ue])}),it},Xe=function(it,Et){return Et===void 0?L(it):dr(L(it),Et)},gt=function(it){var Et=$(it),nt=A(Zt,this,Et);return this===Ce&&Q(xt,Et)&&!Q(Ft,Et)?!1:nt||!Q(this,Et)||!Q(xt,Et)||Q(this,mt)&&this[mt][Et]?nt:!0},Tt=function(it,Et){var nt=ne(it),Ve=$(Et);if(!(nt===Ce&&Q(xt,Ve)&&!Q(Ft,Ve))){var ue=Ze(nt,Ve);return ue&&Q(xt,Ve)&&!(Q(nt,mt)&&nt[mt][Ve])&&(ue.enumerable=!0),ue}},At=function(it){var Et=kt(ne(it)),nt=[];return _e(Et,function(Ve){!Q(xt,Ve)&&!Q(q,Ve)&<(nt,Ve)}),nt},Ot=function(ct){var it=ct===Ce,Et=kt(it?Ft:ne(ct)),nt=[];return _e(Et,function(Ve){Q(xt,Ve)&&(!it||Q(Ce,Ve))&<(nt,xt[Ve])}),nt};U||(Ge=function(){if(le(rt,this))throw $e("Symbol is not a constructor");var it=!arguments.length||arguments[0]===void 0?void 0:P(arguments[0]),Et=Z(it),nt=function(Ve){this===Ce&&A(nt,Ft,Ve),Q(this,mt)&&Q(this[mt],Et)&&(this[mt][Et]=!1),qr(this,Et,Y(1,Ve))};return F&&br&&qr(Ce,Et,{configurable:!0,set:nt}),xr(Et,it)},rt=Ge[Oe],z(rt,"toString",function(){return Pe(this).tag}),z(Ge,"withoutSetter",function(ct){return xr(Z(ct),ct)}),J.f=gt,D.f=Yt,re.f=dr,H.f=Tt,k.f=B.f=At,X.f=Ot,ve.f=function(ct){return xr(G(ct),ct)},F&&(Ct(rt,"description",{configurable:!0,get:function(){return Pe(this).description}}),E||z(Ce,"propertyIsEnumerable",gt,{unsafe:!0}))),p({global:!0,constructor:!0,wrap:!0,forced:!U,sham:!U},{Symbol:Ge}),_e(C(Kr),function(ct){Ie(ct)}),p({target:De,stat:!0,forced:!U},{useSetter:function(){br=!0},useSimple:function(){br=!1}}),p({target:"Object",stat:!0,forced:!U,sham:!F},{create:Xe,defineProperty:Yt,defineProperties:dr,getOwnPropertyDescriptor:Tt}),p({target:"Object",stat:!0,forced:!U},{getOwnPropertyNames:At}),Ne(),je(Ge,De),q[mt]=!0},50492:()=>{},19148:(v,T,s)=>{var p=s(93085),S=s(10150),A=s(64500),h=s(44845),E=s(98717),F=s(20031),U=E("string-to-symbol-registry"),_=E("symbol-to-string-registry");p({target:"Symbol",stat:!0,forced:!F},{for:function(Q){var le=h(Q);if(A(U,le))return U[le];var K=S("Symbol")(le);return U[le]=K,_[K]=le,K}})},66681:(v,T,s)=>{var p=s(48332);p("hasInstance")},29594:(v,T,s)=>{var p=s(48332);p("isConcatSpreadable")},63665:(v,T,s)=>{var p=s(48332);p("iterator")},36187:(v,T,s)=>{s(49351),s(19148),s(15991),s(59704),s(17895)},15991:(v,T,s)=>{var p=s(93085),S=s(64500),A=s(23236),h=s(79288),E=s(98717),F=s(20031),U=E("symbol-to-string-registry");p({target:"Symbol",stat:!0,forced:!F},{keyFor:function(Q){if(!A(Q))throw TypeError(h(Q)+" is not a symbol");if(S(U,Q))return U[Q]}})},11250:(v,T,s)=>{var p=s(48332);p("matchAll")},29017:(v,T,s)=>{var p=s(48332);p("match")},79786:(v,T,s)=>{var p=s(48332);p("replace")},90503:(v,T,s)=>{var p=s(48332);p("search")},16565:(v,T,s)=>{var p=s(48332);p("species")},69322:(v,T,s)=>{var p=s(48332);p("split")},13610:(v,T,s)=>{var p=s(48332),S=s(93407);p("toPrimitive"),S()},36886:(v,T,s)=>{var p=s(10150),S=s(48332),A=s(11284);S("toStringTag"),A(p("Symbol"),"Symbol")},33514:(v,T,s)=>{var p=s(48332);p("unscopables")},10572:(v,T,s)=>{"use strict";var p=s(98576),S=s(84120),A=s(35090),h=s(32861),E=s(34535),F=s(51057),U=s(35744),_=s(4532),Q=s(73326).enforce,le=s(55278),K=!p.ActiveXObject&&"ActiveXObject"in p,ne,$=function(X){return function(){return X(this,arguments.length?arguments[0]:void 0)}},P=E("WeakMap",$,F);if(le&&K){ne=F.getConstructor($,"WeakMap",!0),h.enable();var Y=P.prototype,L=S(Y.delete),C=S(Y.has),k=S(Y.get),B=S(Y.set);A(Y,{delete:function(X){if(U(X)&&!_(X)){var H=Q(this);return H.frozen||(H.frozen=new ne),L(this,X)||H.frozen.delete(X)}return L(this,X)},has:function(H){if(U(H)&&!_(H)){var D=Q(this);return D.frozen||(D.frozen=new ne),C(this,H)||D.frozen.has(H)}return C(this,H)},get:function(H){if(U(H)&&!_(H)){var D=Q(this);return D.frozen||(D.frozen=new ne),C(this,H)?k(this,H):D.frozen.get(H)}return k(this,H)},set:function(H,D){if(U(H)&&!_(H)){var re=Q(this);re.frozen||(re.frozen=new ne),C(this,H)?B(this,H,D):re.frozen.set(H,D)}else B(this,H,D);return this}})}},33983:(v,T,s)=>{s(10572)},12752:(v,T,s)=>{s(4242)},5363:(v,T,s)=>{s(25067)},14562:(v,T,s)=>{s(97884)},69355:(v,T,s)=>{s(78885)},25363:(v,T,s)=>{"use strict";var p=s(93085),S=s(99438),A=s(70892);p({target:"Promise",stat:!0,forced:!0},{try:function(h){var E=S.f(this),F=A(h);return(F.error?E.reject:E.resolve)(F.value),E.promise}})},60177:(v,T,s)=>{var p=s(48332);p("asyncDispose")},9031:(v,T,s)=>{var p=s(48332);p("dispose")},96658:(v,T,s)=>{var p=s(48332);p("matcher")},54212:(v,T,s)=>{var p=s(48332);p("metadataKey")},71875:(v,T,s)=>{var p=s(48332);p("metadata")},18658:(v,T,s)=>{var p=s(48332);p("observable")},54592:(v,T,s)=>{var p=s(48332);p("patternMatch")},26680:(v,T,s)=>{var p=s(48332);p("replaceAll")},80162:(v,T,s)=>{s(98939);var p=s(17365),S=s(98576),A=s(4696),h=s(98711),E=s(47771),F=s(18182),U=F("toStringTag");for(var _ in p){var Q=S[_],le=Q&&Q.prototype;le&&A(le)!==U&&h(le,U,_),E[_]=E.Array}},67054:(v,T,s)=>{"use strict";s(98939);var p=s(93085),S=s(98576),A=s(18922),h=s(84120),E=s(50069),F=s(58552),U=s(59362),_=s(35090),Q=s(11284),le=s(25695),K=s(73326),ne=s(46961),$=s(16447),P=s(64500),Y=s(8043),L=s(4696),C=s(31138),k=s(35744),B=s(44845),X=s(52853),H=s(90774),D=s(61669),re=s(78703),J=s(67822),z=s(18182),fe=s(6614),pe=z("iterator"),q="URLSearchParams",Z=q+"Iterator",G=K.set,ve=K.getterFor(q),Ie=K.getterFor(Z),Ne=Object.getOwnPropertyDescriptor,je=function(Ve){if(!E)return S[Ve];var ue=Ne(S,Ve);return ue&&ue.value},tt=je("fetch"),_e=je("Request"),mt=je("Headers"),De=_e&&_e.prototype,Oe=mt&&mt.prototype,Ue=S.RegExp,Pe=S.TypeError,Ce=S.decodeURIComponent,Ge=S.encodeURIComponent,rt=h("".charAt),$e=h([].join),et=h([].push),Ze=h("".replace),Ct=h([].shift),kt=h([].splice),Zt=h("".split),lt=h("".slice),xt=/\+/g,Ft=Array(4),Kr=function(Ve){return Ft[Ve-1]||(Ft[Ve-1]=Ue("((?:%[\\da-f]{2}){"+Ve+"})","gi"))},br=function(Ve){try{return Ce(Ve)}catch(ue){return Ve}},qr=function(Ve){var ue=Ze(Ve,xt," "),ge=4;try{return Ce(ue)}catch(Be){for(;ge;)ue=Ze(ue,Kr(ge--),br);return ue}},xr=/[!'()~]|%20/g,Yt={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},dr=function(Ve){return Yt[Ve]},Xe=function(Ve){return Ze(Ge(Ve),xr,dr)},gt=le(function(ue,ge){G(this,{type:Z,iterator:D(ve(ue).entries),kind:ge})},"Iterator",function(){var ue=Ie(this),ge=ue.kind,Be=ue.iterator.next(),Ke=Be.value;return Be.done||(Be.value=ge==="keys"?Ke.key:ge==="values"?Ke.value:[Ke.key,Ke.value]),Be},!0),Tt=function(Ve){this.entries=[],this.url=null,Ve!==void 0&&(k(Ve)?this.parseObject(Ve):this.parseQuery(typeof Ve=="string"?rt(Ve,0)==="?"?lt(Ve,1):Ve:B(Ve)))};Tt.prototype={type:q,bindURL:function(Ve){this.url=Ve,this.update()},parseObject:function(Ve){var ue=re(Ve),ge,Be,Ke,at,bt,Rt,pr;if(ue)for(ge=D(Ve,ue),Be=ge.next;!(Ke=A(Be,ge)).done;){if(at=D(C(Ke.value)),bt=at.next,(Rt=A(bt,at)).done||(pr=A(bt,at)).done||!A(bt,at).done)throw Pe("Expected sequence with length 2");et(this.entries,{key:B(Rt.value),value:B(pr.value)})}else for(var Lt in Ve)P(Ve,Lt)&&et(this.entries,{key:Lt,value:B(Ve[Lt])})},parseQuery:function(Ve){if(Ve)for(var ue=Zt(Ve,"&"),ge=0,Be,Ke;ge<ue.length;)Be=ue[ge++],Be.length&&(Ke=Zt(Be,"="),et(this.entries,{key:qr(Ct(Ke)),value:qr($e(Ke,"="))}))},serialize:function(){for(var Ve=this.entries,ue=[],ge=0,Be;ge<Ve.length;)Be=Ve[ge++],et(ue,Xe(Be.key)+"="+Xe(Be.value));return $e(ue,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var At=function(){ne(this,Ot);var ue=arguments.length>0?arguments[0]:void 0;G(this,new Tt(ue))},Ot=At.prototype;if(_(Ot,{append:function(ue,ge){J(arguments.length,2);var Be=ve(this);et(Be.entries,{key:B(ue),value:B(ge)}),Be.updateURL()},delete:function(Ve){J(arguments.length,1);for(var ue=ve(this),ge=ue.entries,Be=B(Ve),Ke=0;Ke<ge.length;)ge[Ke].key===Be?kt(ge,Ke,1):Ke++;ue.updateURL()},get:function(ue){J(arguments.length,1);for(var ge=ve(this).entries,Be=B(ue),Ke=0;Ke<ge.length;Ke++)if(ge[Ke].key===Be)return ge[Ke].value;return null},getAll:function(ue){J(arguments.length,1);for(var ge=ve(this).entries,Be=B(ue),Ke=[],at=0;at<ge.length;at++)ge[at].key===Be&&et(Ke,ge[at].value);return Ke},has:function(ue){J(arguments.length,1);for(var ge=ve(this).entries,Be=B(ue),Ke=0;Ke<ge.length;)if(ge[Ke++].key===Be)return!0;return!1},set:function(ue,ge){J(arguments.length,1);for(var Be=ve(this),Ke=Be.entries,at=!1,bt=B(ue),Rt=B(ge),pr=0,Lt;pr<Ke.length;pr++)Lt=Ke[pr],Lt.key===bt&&(at?kt(Ke,pr--,1):(at=!0,Lt.value=Rt));at||et(Ke,{key:bt,value:Rt}),Be.updateURL()},sort:function(){var ue=ve(this);fe(ue.entries,function(ge,Be){return ge.key>Be.key?1:-1}),ue.updateURL()},forEach:function(ue){for(var ge=ve(this).entries,Be=Y(ue,arguments.length>1?arguments[1]:void 0),Ke=0,at;Ke<ge.length;)at=ge[Ke++],Be(at.value,at.key,this)},keys:function(){return new gt(this,"keys")},values:function(){return new gt(this,"values")},entries:function(){return new gt(this,"entries")}},{enumerable:!0}),U(Ot,pe,Ot.entries,{name:"entries"}),U(Ot,"toString",function(){return ve(this).serialize()},{enumerable:!0}),Q(At,q),p({global:!0,constructor:!0,forced:!F},{URLSearchParams:At}),!F&&$(mt)){var ct=h(Oe.has),it=h(Oe.set),Et=function(Ve){if(k(Ve)){var ue=Ve.body,ge;if(L(ue)===q)return ge=Ve.headers?new mt(Ve.headers):new mt,ct(ge,"content-type")||it(ge,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),X(Ve,{body:H(0,B(ue)),headers:H(0,ge)})}return Ve};if($(tt)&&p({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(ue){return tt(ue,arguments.length>1?Et(arguments[1]):{})}}),$(_e)){var nt=function(ue){return ne(this,De),new _e(ue,arguments.length>1?Et(arguments[1]):{})};De.constructor=nt,nt.prototype=De,p({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:nt})}}v.exports={URLSearchParams:At,getState:ve}},69336:(v,T,s)=>{s(67054)},53822:(v,T,s)=>{var p=s(52221);v.exports=p},21434:(v,T,s)=>{var p=s(75078);v.exports=p},51629:(v,T,s)=>{var p=s(77237);v.exports=p},46899:(v,T,s)=>{var p=s(60098);v.exports=p},27710:(v,T,s)=>{var p=s(65739);s(80162),v.exports=p},31585:(v,T,s)=>{var p=s(74030);v.exports=p},44877:(v,T,s)=>{var p=s(41484);v.exports=p},10140:(v,T,s)=>{s(80162);var p=s(4696),S=s(64500),A=s(8902),h=s(51629),E=Array.prototype,F={DOMTokenList:!0,NodeList:!0};v.exports=function(U){var _=U.entries;return U===E||A(E,U)&&_===E.entries||S(F,p(U))?h:_}},55603:(v,T,s)=>{var p=s(53669);v.exports=p},76237:(v,T,s)=>{var p=s(37506);v.exports=p},31206:(v,T,s)=>{s(80162);var p=s(4696),S=s(64500),A=s(8902),h=s(46899),E=Array.prototype,F={DOMTokenList:!0,NodeList:!0};v.exports=function(U){var _=U.forEach;return U===E||A(E,U)&&_===E.forEach||S(F,p(U))?h:_}},56515:(v,T,s)=>{var p=s(13173);v.exports=p},26174:(v,T,s)=>{var p=s(92604);v.exports=p},20057:(v,T,s)=>{var p=s(263);v.exports=p},87511:(v,T,s)=>{var p=s(80432);v.exports=p},24741:(v,T,s)=>{var p=s(77663);v.exports=p},8368:(v,T,s)=>{var p=s(45063);v.exports=p},342:(v,T,s)=>{var p=s(7769);v.exports=p},392:(v,T,s)=>{var p=s(96056);v.exports=p},28478:(v,T,s)=>{var p=s(99936);v.exports=p},4963:(v,T,s)=>{var p=s(23213);v.exports=p},21025:(v,T,s)=>{var p=s(38724);v.exports=p},27820:(v,T,s)=>{var p=s(63512);v.exports=p},58202:(v,T,s)=>{var p=s(2335);v.exports=p},74194:(v,T,s)=>{var p=s(60632);v.exports=p},32854:(v,T,s)=>{var p=s(81056);v.exports=p},60002:(v,T,s)=>{var p=s(12921);v.exports=p},28980:(v,T,s)=>{var p=s(8168);v.exports=p},45636:(v,T,s)=>{var p=s(38651);v.exports=p},66672:(v,T,s)=>{var p=s(33083);v.exports=p},46618:(v,T,s)=>{var p=s(93154);s(80162),v.exports=p},42285:(v,T,s)=>{var p=s(85008);s(80162),v.exports=p},58535:(v,T,s)=>{var p=s(994);s(80162),v.exports=p},72946:(v,T,s)=>{var p=s(32004);s(80162),v.exports=p},11235:(v,T,s)=>{var p=s(31293);s(80162),v.exports=p},32004:(v,T,s)=>{s(69336);var p=s(57545);v.exports=p.URLSearchParams},43616:function(){(function(v){var T=function(s){var p={searchParams:"URLSearchParams"in v,iterable:"Symbol"in v&&"iterator"in Symbol,blob:"FileReader"in v&&"Blob"in v&&function(){try{return new Blob,!0}catch(J){return!1}}(),formData:"FormData"in v,arrayBuffer:"ArrayBuffer"in v};function S(J){return J&&DataView.prototype.isPrototypeOf(J)}if(p.arrayBuffer)var A=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(J){return J&&A.indexOf(Object.prototype.toString.call(J))>-1};function E(J){if(typeof J!="string"&&(J=String(J)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(J))throw new TypeError("Invalid character in header field name");return J.toLowerCase()}function F(J){return typeof J!="string"&&(J=String(J)),J}function U(J){var z={next:function(){var fe=J.shift();return{done:fe===void 0,value:fe}}};return p.iterable&&(z[Symbol.iterator]=function(){return z}),z}function _(J){this.map={},J instanceof _?J.forEach(function(z,fe){this.append(fe,z)},this):Array.isArray(J)?J.forEach(function(z){this.append(z[0],z[1])},this):J&&Object.getOwnPropertyNames(J).forEach(function(z){this.append(z,J[z])},this)}_.prototype.append=function(J,z){J=E(J),z=F(z);var fe=this.map[J];this.map[J]=fe?fe+", "+z:z},_.prototype.delete=function(J){delete this.map[E(J)]},_.prototype.get=function(J){return J=E(J),this.has(J)?this.map[J]:null},_.prototype.has=function(J){return this.map.hasOwnProperty(E(J))},_.prototype.set=function(J,z){this.map[E(J)]=F(z)},_.prototype.forEach=function(J,z){for(var fe in this.map)this.map.hasOwnProperty(fe)&&J.call(z,this.map[fe],fe,this)},_.prototype.keys=function(){var J=[];return this.forEach(function(z,fe){J.push(fe)}),U(J)},_.prototype.values=function(){var J=[];return this.forEach(function(z){J.push(z)}),U(J)},_.prototype.entries=function(){var J=[];return this.forEach(function(z,fe){J.push([fe,z])}),U(J)},p.iterable&&(_.prototype[Symbol.iterator]=_.prototype.entries);function Q(J){if(J.bodyUsed)return Promise.reject(new TypeError("Already read"));J.bodyUsed=!0}function le(J){return new Promise(function(z,fe){J.onload=function(){z(J.result)},J.onerror=function(){fe(J.error)}})}function K(J){var z=new FileReader,fe=le(z);return z.readAsArrayBuffer(J),fe}function ne(J){var z=new FileReader,fe=le(z);return z.readAsText(J),fe}function $(J){for(var z=new Uint8Array(J),fe=new Array(z.length),pe=0;pe<z.length;pe++)fe[pe]=String.fromCharCode(z[pe]);return fe.join("")}function P(J){if(J.slice)return J.slice(0);var z=new Uint8Array(J.byteLength);return z.set(new Uint8Array(J)),z.buffer}function Y(){return this.bodyUsed=!1,this._initBody=function(J){this._bodyInit=J,J?typeof J=="string"?this._bodyText=J:p.blob&&Blob.prototype.isPrototypeOf(J)?this._bodyBlob=J:p.formData&&FormData.prototype.isPrototypeOf(J)?this._bodyFormData=J:p.searchParams&&URLSearchParams.prototype.isPrototypeOf(J)?this._bodyText=J.toString():p.arrayBuffer&&p.blob&&S(J)?(this._bodyArrayBuffer=P(J.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):p.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(J)||h(J))?this._bodyArrayBuffer=P(J):this._bodyText=J=Object.prototype.toString.call(J):this._bodyText="",this.headers.get("content-type")||(typeof J=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):p.searchParams&&URLSearchParams.prototype.isPrototypeOf(J)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},p.blob&&(this.blob=function(){var J=Q(this);if(J)return J;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?Q(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(K)}),this.text=function(){var J=Q(this);if(J)return J;if(this._bodyBlob)return ne(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve($(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(B)}),this.json=function(){return this.text().then(JSON.parse)},this}var L=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(J){var z=J.toUpperCase();return L.indexOf(z)>-1?z:J}function k(J,z){z=z||{};var fe=z.body;if(J instanceof k){if(J.bodyUsed)throw new TypeError("Already read");this.url=J.url,this.credentials=J.credentials,z.headers||(this.headers=new _(J.headers)),this.method=J.method,this.mode=J.mode,this.signal=J.signal,!fe&&J._bodyInit!=null&&(fe=J._bodyInit,J.bodyUsed=!0)}else this.url=String(J);if(this.credentials=z.credentials||this.credentials||"same-origin",(z.headers||!this.headers)&&(this.headers=new _(z.headers)),this.method=C(z.method||this.method||"GET"),this.mode=z.mode||this.mode||null,this.signal=z.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&fe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(fe)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})};function B(J){var z=new FormData;return J.trim().split("&").forEach(function(fe){if(fe){var pe=fe.split("="),q=pe.shift().replace(/\+/g," "),Z=pe.join("=").replace(/\+/g," ");z.append(decodeURIComponent(q),decodeURIComponent(Z))}}),z}function X(J){var z=new _,fe=J.replace(/\r?\n[\t ]+/g," ");return fe.split(/\r?\n/).forEach(function(pe){var q=pe.split(":"),Z=q.shift().trim();if(Z){var G=q.join(":").trim();z.append(Z,G)}}),z}Y.call(k.prototype);function H(J,z){z||(z={}),this.type="default",this.status=z.status===void 0?200:z.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in z?z.statusText:"OK",this.headers=new _(z.headers),this.url=z.url||"",this._initBody(J)}Y.call(H.prototype),H.prototype.clone=function(){return new H(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new _(this.headers),url:this.url})},H.error=function(){var J=new H(null,{status:0,statusText:""});return J.type="error",J};var D=[301,302,303,307,308];H.redirect=function(J,z){if(D.indexOf(z)===-1)throw new RangeError("Invalid status code");return new H(null,{status:z,headers:{location:J}})},s.DOMException=v.DOMException;try{new s.DOMException}catch(J){s.DOMException=function(z,fe){this.message=z,this.name=fe;var pe=Error(z);this.stack=pe.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function re(J,z){return new Promise(function(fe,pe){var q=new k(J,z);if(q.signal&&q.signal.aborted)return pe(new s.DOMException("Aborted","AbortError"));var Z=new XMLHttpRequest;function G(){Z.abort()}Z.onload=function(){var ve={status:Z.status,statusText:Z.statusText,headers:X(Z.getAllResponseHeaders()||"")};ve.url="responseURL"in Z?Z.responseURL:ve.headers.get("X-Request-URL");var Ie="response"in Z?Z.response:Z.responseText;fe(new H(Ie,ve))},Z.onerror=function(){pe(new TypeError("Network request failed"))},Z.ontimeout=function(){pe(new TypeError("Network request failed"))},Z.onabort=function(){pe(new s.DOMException("Aborted","AbortError"))},Z.open(q.method,q.url,!0),q.credentials==="include"?Z.withCredentials=!0:q.credentials==="omit"&&(Z.withCredentials=!1),"responseType"in Z&&p.blob&&(Z.responseType="blob"),q.headers.forEach(function(ve,Ie){Z.setRequestHeader(Ie,ve)}),q.signal&&(q.signal.addEventListener("abort",G),Z.onreadystatechange=function(){Z.readyState===4&&q.signal.removeEventListener("abort",G)}),Z.send(typeof q._bodyInit=="undefined"?null:q._bodyInit)})}return re.polyfill=!0,v.fetch||(v.fetch=re,v.Headers=_,v.Request=k,v.Response=H),s.Headers=_,s.Request=k,s.Response=H,s.fetch=re,Object.defineProperty(s,"__esModule",{value:!0}),s}({})})(typeof self!="undefined"?self:this)},96279:function(v,T){var s=typeof self!="undefined"?self:this,p=function(){function A(){this.fetch=!1,this.DOMException=s.DOMException}return A.prototype=s,new A}();(function(A){var h=function(E){var F={searchParams:"URLSearchParams"in A,iterable:"Symbol"in A&&"iterator"in Symbol,blob:"FileReader"in A&&"Blob"in A&&function(){try{return new Blob,!0}catch(Z){return!1}}(),formData:"FormData"in A,arrayBuffer:"ArrayBuffer"in A};function U(Z){return Z&&DataView.prototype.isPrototypeOf(Z)}if(F.arrayBuffer)var _=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Q=ArrayBuffer.isView||function(Z){return Z&&_.indexOf(Object.prototype.toString.call(Z))>-1};function le(Z){if(typeof Z!="string"&&(Z=String(Z)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(Z))throw new TypeError("Invalid character in header field name");return Z.toLowerCase()}function K(Z){return typeof Z!="string"&&(Z=String(Z)),Z}function ne(Z){var G={next:function(){var ve=Z.shift();return{done:ve===void 0,value:ve}}};return F.iterable&&(G[Symbol.iterator]=function(){return G}),G}function $(Z){this.map={},Z instanceof $?Z.forEach(function(G,ve){this.append(ve,G)},this):Array.isArray(Z)?Z.forEach(function(G){this.append(G[0],G[1])},this):Z&&Object.getOwnPropertyNames(Z).forEach(function(G){this.append(G,Z[G])},this)}$.prototype.append=function(Z,G){Z=le(Z),G=K(G);var ve=this.map[Z];this.map[Z]=ve?ve+", "+G:G},$.prototype.delete=function(Z){delete this.map[le(Z)]},$.prototype.get=function(Z){return Z=le(Z),this.has(Z)?this.map[Z]:null},$.prototype.has=function(Z){return this.map.hasOwnProperty(le(Z))},$.prototype.set=function(Z,G){this.map[le(Z)]=K(G)},$.prototype.forEach=function(Z,G){for(var ve in this.map)this.map.hasOwnProperty(ve)&&Z.call(G,this.map[ve],ve,this)},$.prototype.keys=function(){var Z=[];return this.forEach(function(G,ve){Z.push(ve)}),ne(Z)},$.prototype.values=function(){var Z=[];return this.forEach(function(G){Z.push(G)}),ne(Z)},$.prototype.entries=function(){var Z=[];return this.forEach(function(G,ve){Z.push([ve,G])}),ne(Z)},F.iterable&&($.prototype[Symbol.iterator]=$.prototype.entries);function P(Z){if(Z.bodyUsed)return Promise.reject(new TypeError("Already read"));Z.bodyUsed=!0}function Y(Z){return new Promise(function(G,ve){Z.onload=function(){G(Z.result)},Z.onerror=function(){ve(Z.error)}})}function L(Z){var G=new FileReader,ve=Y(G);return G.readAsArrayBuffer(Z),ve}function C(Z){var G=new FileReader,ve=Y(G);return G.readAsText(Z),ve}function k(Z){for(var G=new Uint8Array(Z),ve=new Array(G.length),Ie=0;Ie<G.length;Ie++)ve[Ie]=String.fromCharCode(G[Ie]);return ve.join("")}function B(Z){if(Z.slice)return Z.slice(0);var G=new Uint8Array(Z.byteLength);return G.set(new Uint8Array(Z)),G.buffer}function X(){return this.bodyUsed=!1,this._initBody=function(Z){this._bodyInit=Z,Z?typeof Z=="string"?this._bodyText=Z:F.blob&&Blob.prototype.isPrototypeOf(Z)?this._bodyBlob=Z:F.formData&&FormData.prototype.isPrototypeOf(Z)?this._bodyFormData=Z:F.searchParams&&URLSearchParams.prototype.isPrototypeOf(Z)?this._bodyText=Z.toString():F.arrayBuffer&&F.blob&&U(Z)?(this._bodyArrayBuffer=B(Z.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):F.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(Z)||Q(Z))?this._bodyArrayBuffer=B(Z):this._bodyText=Z=Object.prototype.toString.call(Z):this._bodyText="",this.headers.get("content-type")||(typeof Z=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):F.searchParams&&URLSearchParams.prototype.isPrototypeOf(Z)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},F.blob&&(this.blob=function(){var Z=P(this);if(Z)return Z;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?P(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(L)}),this.text=function(){var Z=P(this);if(Z)return Z;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(k(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},F.formData&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}var H=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function D(Z){var G=Z.toUpperCase();return H.indexOf(G)>-1?G:Z}function re(Z,G){G=G||{};var ve=G.body;if(Z instanceof re){if(Z.bodyUsed)throw new TypeError("Already read");this.url=Z.url,this.credentials=Z.credentials,G.headers||(this.headers=new $(Z.headers)),this.method=Z.method,this.mode=Z.mode,this.signal=Z.signal,!ve&&Z._bodyInit!=null&&(ve=Z._bodyInit,Z.bodyUsed=!0)}else this.url=String(Z);if(this.credentials=G.credentials||this.credentials||"same-origin",(G.headers||!this.headers)&&(this.headers=new $(G.headers)),this.method=D(G.method||this.method||"GET"),this.mode=G.mode||this.mode||null,this.signal=G.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ve)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ve)}re.prototype.clone=function(){return new re(this,{body:this._bodyInit})};function J(Z){var G=new FormData;return Z.trim().split("&").forEach(function(ve){if(ve){var Ie=ve.split("="),Ne=Ie.shift().replace(/\+/g," "),je=Ie.join("=").replace(/\+/g," ");G.append(decodeURIComponent(Ne),decodeURIComponent(je))}}),G}function z(Z){var G=new $,ve=Z.replace(/\r?\n[\t ]+/g," ");return ve.split(/\r?\n/).forEach(function(Ie){var Ne=Ie.split(":"),je=Ne.shift().trim();if(je){var tt=Ne.join(":").trim();G.append(je,tt)}}),G}X.call(re.prototype);function fe(Z,G){G||(G={}),this.type="default",this.status=G.status===void 0?200:G.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in G?G.statusText:"OK",this.headers=new $(G.headers),this.url=G.url||"",this._initBody(Z)}X.call(fe.prototype),fe.prototype.clone=function(){return new fe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new $(this.headers),url:this.url})},fe.error=function(){var Z=new fe(null,{status:0,statusText:""});return Z.type="error",Z};var pe=[301,302,303,307,308];fe.redirect=function(Z,G){if(pe.indexOf(G)===-1)throw new RangeError("Invalid status code");return new fe(null,{status:G,headers:{location:Z}})},E.DOMException=A.DOMException;try{new E.DOMException}catch(Z){E.DOMException=function(G,ve){this.message=G,this.name=ve;var Ie=Error(G);this.stack=Ie.stack},E.DOMException.prototype=Object.create(Error.prototype),E.DOMException.prototype.constructor=E.DOMException}function q(Z,G){return new Promise(function(ve,Ie){var Ne=new re(Z,G);if(Ne.signal&&Ne.signal.aborted)return Ie(new E.DOMException("Aborted","AbortError"));var je=new XMLHttpRequest;function tt(){je.abort()}je.onload=function(){var _e={status:je.status,statusText:je.statusText,headers:z(je.getAllResponseHeaders()||"")};_e.url="responseURL"in je?je.responseURL:_e.headers.get("X-Request-URL");var mt="response"in je?je.response:je.responseText;ve(new fe(mt,_e))},je.onerror=function(){Ie(new TypeError("Network request failed"))},je.ontimeout=function(){Ie(new TypeError("Network request failed"))},je.onabort=function(){Ie(new E.DOMException("Aborted","AbortError"))},je.open(Ne.method,Ne.url,!0),Ne.credentials==="include"?je.withCredentials=!0:Ne.credentials==="omit"&&(je.withCredentials=!1),"responseType"in je&&F.blob&&(je.responseType="blob"),Ne.headers.forEach(function(_e,mt){je.setRequestHeader(mt,_e)}),Ne.signal&&(Ne.signal.addEventListener("abort",tt),je.onreadystatechange=function(){je.readyState===4&&Ne.signal.removeEventListener("abort",tt)}),je.send(typeof Ne._bodyInit=="undefined"?null:Ne._bodyInit)})}return q.polyfill=!0,A.fetch||(A.fetch=q,A.Headers=$,A.Request=re,A.Response=fe),E.Headers=$,E.Request=re,E.Response=fe,E.fetch=q,Object.defineProperty(E,"__esModule",{value:!0}),E}({})})(p),p.fetch.ponyfill=!0,delete p.fetch.polyfill;var S=p;T=S.fetch,T.default=S.fetch,T.fetch=S.fetch,T.Headers=S.Headers,T.Request=S.Request,T.Response=S.Response,v.exports=T},6511:(v,T,s)=>{"use strict";s.r(T),s.d(T,{Console:()=>ep});var p={};s.r(p),s.d(p,{JsonPatchError:()=>i,_areEquals:()=>ce,applyOperation:()=>w,applyPatch:()=>O,applyReducer:()=>R,deepClone:()=>u,getValueByPointer:()=>y,validate:()=>oe,validator:()=>V});var S={};s.r(S),s.d(S,{compare:()=>dt,generate:()=>qe,observe:()=>Je,unobserve:()=>Qe});var A={};s.r(A),s.d(A,{cookie:()=>Rm,header:()=>Fm,path:()=>Pm,query:()=>Im});var h=s(2784);function E(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function F(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function U(e,r,n){return r&&F(e.prototype,r),n&&F(e,n),e}function _(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Q(){return Q=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Q.apply(this,arguments)}function le(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,a)}return n}function K(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?le(Object(n),!0).forEach(function(a){_(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function ne(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&P(e,r)}function $(e){return $=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},$(e)}function P(e,r){return P=Object.setPrototypeOf||function(a,o){return a.__proto__=o,a},P(e,r)}function Y(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function L(e,r){if(e==null)return{};var n={},a=Object.keys(e),o,f;for(f=0;f<a.length;f++)o=a[f],!(r.indexOf(o)>=0)&&(n[o]=e[o]);return n}function C(e,r){if(e==null)return{};var n=L(e,r),a,o;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(e);for(o=0;o<f.length;o++)a=f[o],!(r.indexOf(a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,a)||(n[a]=e[a]))}return n}function k(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B(e,r){return r&&(typeof r=="object"||typeof r=="function")?r:k(e)}function X(e){var r=Y();return function(){var a=$(e),o;if(r){var f=$(this).constructor;o=Reflect.construct(a,arguments,f)}else o=a.apply(this,arguments);return B(this,o)}}function H(e,r){return J(e)||fe(e,r)||pe(e,r)||G()}function D(e){return re(e)||z(e)||pe(e)||Z()}function re(e){if(Array.isArray(e))return q(e)}function J(e){if(Array.isArray(e))return e}function z(e){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(e))return Array.from(e)}function fe(e,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(e)))){var n=[],a=!0,o=!1,f=void 0;try{for(var d=e[Symbol.iterator](),m;!(a=(m=d.next()).done)&&(n.push(m.value),!(r&&n.length===r));a=!0);}catch(g){o=!0,f=g}finally{try{!a&&d.return!=null&&d.return()}finally{if(o)throw f}}return n}}function pe(e,r){if(!!e){if(typeof e=="string")return q(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q(e,r)}}function q(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=e[n];return a}function Z(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
42
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
43
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ve(e,r){var n;if(typeof Symbol=="undefined"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=pe(e))||r&&e&&typeof e.length=="number"){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(g){throw g},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
44
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f=!0,d=!1,m;return{s:function(){n=e[Symbol.iterator]()},n:function(){var g=n.next();return f=g.done,g},e:function(g){d=!0,m=g},f:function(){try{!f&&n.return!=null&&n.return()}finally{if(d)throw m}}}}function Ie(e,r){return r={exports:{}},e(r,r.exports),r.exports}var Ne=Ie(function(e){function r(x,I){for(var N=0,j=0;j<x.length;j++)N=(N<<5)-N+x.charCodeAt(j),N|=0;return I[Math.abs(N)%I.length]}function n(x,I){var N=I.namespace;if(I.useColors){var j=I.color,W="\x1B[3"+(j<8?j:"8;5;"+j),ee=" ".concat(W,";1m").concat(N," \x1B[0m");x[0]=ee+x[0].split(`
|
|
45
|
+
`).join(`
|
|
46
|
+
`+ee)}else x[0]=N+" "+x[0]}function a(x,I){if(x[0]=(I.useColors?"%c":"")+I.namespace,!!I.useColors){var N="color: "+I.color,j=0,W=0;x[0].replace(/%[a-zA-Z%]/g,function(ee){ee!=="%%"&&(j++,ee==="%c"&&(W=j))}),x.splice(W,0,N)}}var o=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function f(){var x;try{x=localStorage.getItem("debug")}catch(I){}return!x&&typeof process!="undefined"&&"env"in process&&(x={}.DEBUG),{namespaces:x||"",colors:o,useColors:!0,formatArgs:a}}function d(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:n}}function m(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,I=arguments.length>1?arguments[1]:void 0;return function(){for(var N=arguments.length,j=new Array(N),W=0;W<N;W++)j[W]=arguments[W];x&&j.unshift(x);var ee=I.namespaces.split(",").map(function(de){return de[de.length-1]==="*"?new RegExp("^"+de.slice(0,de.length-1)+".*$"):new RegExp("^"+de+"$")}),te=ee.some(function(de){return de.test(x)}),se={color:r(x,I.colors),namespace:x,useColors:I.useColors};if(!1)var ie}}function g(x){return m(x,d())}function b(x){return m(x,f())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?e.exports=b:e.exports=g}),je=Ne("informed:ObjMap "),tt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},_e=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,o=String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(f,d){return f!=null?f[d]:f},r);return o===void 0||o===r?a:o},mt=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},De=function(r){return r.replace(mt(r),"").replace(/\./,"")},Oe=function(r,n){var a=mt(n),o=De(n),f=a?_e(r,a):r;return!!(f&&Object.hasOwnProperty.call(f,o.replace(/\[(.*)\]/,"$1")))},Ue=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(o,f,d,m){return d===m.length-1?(o[f]=a,o[f]):o[f]===void 0?(Number.isInteger(+m[d+1])?o[f]=[]:o[f]={},o[f]):(Number.isInteger(+m[d+1])&&!Array.isArray(o[f])&&(o[f]=[]),o[f])},r)},Pe=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=!1;return String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(o,f,d,m){return o===void 0?o:(d===m.length-1&&(delete o[f],a=!0),o[f])},r),a},Ce=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a;return String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(o,f,d,m){return o===void 0?o:(d===m.length-1&&Array.isArray(o)&&(a=o.splice(f,1)),o[f])},r),a},Ge=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=Object.keys(r);return n.map(function(a){return r[a]})},rt=function(r){var n=tt(r);return Number.isInteger(+n[n.length-1])},$e=function(){function e(){E(this,e)}return U(e,null,[{key:"empty",value:function(n){return Ge(n).length===0}},{key:"get",value:function(n,a){var o=_e(n,a);return o}},{key:"has",value:function(n,a){return Oe(n,a)}},{key:"set",value:function(n,a,o){if(o!==void 0)je("SETTING",a,o),Ue(n,a,o);else if(rt(a)&&e.get(n,a)!==void 0){je("Special case SETTING",a,"to undefined"),Ue(n,a,void 0);var f=tt(a);f=f.slice(0,f.length-1),et(n,f)}else!rt(a)&&e.get(n,a)!==void 0&&(je("Special case REMOVING",a,"from object completley"),e.delete(n,a))}},{key:"delete",value:function(n,a){je("DELETE",a),rt(a)?(je("ARRAY",a),this.pullOut(n,a)):Pe(n,a);var o=tt(a);o=o.slice(0,o.length-1),et(n,o)}},{key:"pullOut",value:function(n,a){var o=tt(a),f=o[o.length-1];o=o.slice(0,o.length-1),je("Pulling out:",o,"index",f);var d=_e(n,o);je("Array",d),Array.isArray(d)&&Ce(d,f),et(n,o)}}]),e}();function et(e,r){if(r.length!==0){var n=_e(e,r);(Array.isArray(n)?n.every(function(a){return a==null}):JSON.stringify(n)==="{}")&&Pe(e,r),et(e,r.slice(0,r.length-1))}}var Ze=h.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),Ct=h.createContext({}),kt=h.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),Zt=h.createContext(),lt=h.createContext(),xt=h.createContext(),Ft=h.createContext(),Kr=h.createContext(),br=h.createContext(),qr=h.createContext(),xr=h.createContext();function Yt(){var e=(0,h.useContext)(kt);return e}function dr(e){var r=(0,h.useRef)(),n=(0,h.useRef)(!0),a=(0,h.useState)(e),o=H(a,2),f=o[0],d=o[1];r.current=f;var m=function(x){r.current=x,n.current&&d(x)},g=function(){return r.current};return(0,h.useEffect)(function(){return function(){n.current=!1}},[]),[f,m,g]}var Xe=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},gt=function(r){var n={};if(r.inner){if(r.inner.length===0){$e.set(n,r.path,r.message);return}var a=ve(r.inner),o;try{for(a.s();!(o=a.n()).done;){var f=o.value;$e.get(n,f.path)||$e.set(n,f.path,f.message)}}catch(d){a.e(d)}finally{a.f()}}return n},Tt=function(r,n){try{r.validateSync(n,{abortEarly:!1})}catch(o){var a=gt(o);return a}},At=function(r){if(r.inner){if(r.inner.length===0)return;var n=r.inner[0];return n.message}},Ot=function(r,n){try{r.validateSync(n,{abortEarly:!1})}catch(a){return At(a)}},ct=function(r,n){r(n);var a={};return r.errors&&r.errors.forEach(function(o){var f=o.message,d=o.dataPath,m=o.keyword,g=o.params,b=d;m==="required"&&(b="".concat(b,".").concat(g.missingProperty)),b=b.replace(".",""),$e.set(a,b,f)}),a},it=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var n=Math.random()*16|0,a=r=="x"?n:n&3|8;return a.toString(16)})},Et=function(r,n){var a;return function(){for(var f=arguments.length,d=new Array(f),m=0;m<f;m++)d[m]=arguments[m];var g=function(){clearTimeout(a),r.apply(void 0,d)};clearTimeout(a),a=setTimeout(g,n)}},nt=function(r,n,a){var o=n["ui:control"],f=n["informed:props"],d=n["input:props"],m=n["ui:before"],g=n["ui:after"],b=n.oneOf,x=n.items,I=n.enum,N=n.title,j=n.minimum,W=n.maximum,ee=n.minLength,te=n.maxLength,se=n.pattern,ie=n.type,de=n.properties,we=it();d&&d.id&&(we=d.id);var xe={componentType:o,field:a?"".concat(a,".").concat(r):r,type:ie,uiBefore:m,uiAfter:g,properties:ie==="object"?de:void 0,items:ie==="array"?x:void 0,props:K(K({label:N,id:we,min:j,max:W,minLength:ee,maxLength:te,pattern:se},f),d)};if(b){var Ee=n.oneOf.map(function(Se){var ke=Se["input:props"],Me=ke===void 0?{}:ke;return K({value:Se.const,label:Se.title},Me)});xe.props.options=Ee}if(I){var ye=n.enum.map(function(Se){return{value:Se,label:Se}});xe.props.options=ye}if(x&&x.oneOf){var be=x.oneOf.map(function(Se){var ke=Se["input:props"],Me=ke===void 0?{}:ke;return K({value:Se.const,label:Se.title},Me)});xe.props.options=be}return xe},Ve=function(r,n,a){if(!r||n)return[];var o=r.properties,f=o===void 0?{}:o,d=r.allOf,m=r.propertyOrder,g=m===void 0?[]:m;if(Object.keys(f).length>0){var b=Object.keys(f).sort(function(x,I){var N=g.indexOf(x),j=g.indexOf(I);return(N>-1?N:g.length+1)-(j>-1?j:g.length+1)}).map(function(x){var I=f[x],N=nt(x,I,a);return N});return d&&b.push({componentType:"conditionals",allOf:d}),b}return[]},ue=function(r){var n=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return n="properties.".concat(n),n},ge=function(r,n){if(typeof r=="string")return r.split("").map(function(a){return a==="#"?/\d/:a==="*"?/[\w]/:a});if(typeof r=="function")return r(n);if(Array.isArray(r))return r;throw new Error("Formatter must be string, array, or function")},Be=function(r,n){for(var a=0,o=-1,f=!0;f&&a<r.length;)r[a]==n[a]?o=a:f=!1,a=a+1;return o},Ke=function(r,n){if(!r)return{val:r,offset:0};var a="".concat(r),o=ge(n,a),f=o.findIndex(function(te){return typeof te!="string"}),d=o.length-D(o).reverse().findIndex(function(te){return typeof te!="string"}),m=[],g=a.split(""),b=0,x=0,I=Be(o.slice(0,f),g.slice(0,f));I>-1&&(b=I+1,m=m.concat(o.slice(0,I+1)),x=I+1),I<0&&(m=m.concat(o.slice(0,f)),x=f);for(var N=x;N<o.length;N++){var j=o[N];if(b!=g.length){var W=g[b];if(typeof j=="function")m.push(j(W)),b=b+1;else{var ee=typeof j=="string"?j===W:j.test(W);ee&&typeof j=="string"?(m.push(j),b=b+1):!ee&&typeof j=="string"?b!=g.length&&m.push(j):ee&&typeof j!="string"?(m.push(W),b=b+1):!ee&&typeof j!="string"&&(b=b+1,N=N-1)}}else if(typeof j=="string"&&N>=d)m.push(j);else break}return{value:m.join(""),offset:a?m.length-a.length:0}},at=function(r,n){var a,o,f=new Intl.NumberFormat(r,n),d=new Intl.NumberFormat(r),m=(a=(o=d.formatToParts(.1).find(function(te){var se=te.type;return se==="decimal"}))===null||o===void 0?void 0:o.value)!==null&&a!==void 0?a:".";function g(te,se){return te instanceof RegExp&&se instanceof RegExp&&te.source===se.source&&te.global===se.global&&te.ignoreCase===se.ignoreCase&&te.multiline===se.multiline}function b(te,se){for(var ie=te.length;ie--;)if(se(te[ie]))return ie;return-1}function x(te,se,ie){var de=D(te);return Array.isArray(ie)?de.splice.apply(de,[se,0].concat(D(ie))):de.splice(se,0,ie),de}function I(te){return"".concat(te).replace(/\D/g,"")}function N(te){return"".concat(te).split(m).map(function(se){return I(se)}).join(".")}function j(te){if(typeof te=="number")return te;var se=parseFloat(N(te));return Number.isNaN(se)?void 0:se}function W(te){var se=N(te),ie="".concat(se).split(".")[1],de=f.formatToParts(Number(se));ie==="0"&&de.push({type:"decimal",value:m},{type:"fraction",value:ie});var we=de.reduce(function(ye,be){var Se=be.type,ke=be.value;return["decimal","fraction"].includes(Se)&&ie==null?ye:["integer","fraction"].includes(Se)?[].concat(D(ye),D(ke.split("").filter(function(Me,Re){return Se==="fraction"?Re<ie.length:!0}).map(function(){return/\d/}))):Se==="currency"?[].concat(D(ye),D(ke.split(""))):[].concat(D(ye),[ke])},[]),xe=b(we,function(ye){return g(ye,/\d/)});we.indexOf(m)===-1&&"".concat(te).indexOf(m)!==-1&&(we=x(we,xe+1,[m,"[]"]),xe+=2);var Ee=we.slice(xe+1).join("");return we=[].concat(D(we.slice(0,xe+1)),[Ee]),we}var ee=function(se){if(se!=null)return j(se)};return{formatter:W,parser:ee}},bt=Object.freeze({__proto__:null,getChildDisplayName:Xe,yupToFormErrors:gt,validateYupSchema:Tt,yupToFormError:At,validateYupField:Ot,validateAjvSchema:ct,uuidv4:it,debounce:Et,computeFieldFromProperty:nt,computeFieldsFromSchema:Ve,getSchemaPathFromJsonPath:ue,informedFormat:Ke,createIntlNumberFormatter:at}),Rt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?h.useLayoutEffect:h.useEffect,pr=function(r){var n=r.value,a=r.inputRef,o=r.maintainCursor,f=o===void 0?!0:o,d=dr(0),m=H(d,3),g=m[0],b=m[1],x=m[2],I=dr(0),N=H(I,3),j=N[0],W=N[1],ee=N[2];return Rt(function(){if(a.current!=null&&x()){var te=x()+ee();ee()!=0&&f?a.current.setSelectionRange(te+1,te+1):f&&a.current.setSelectionRange(te,te)}},[n]),{setCursorOffset:W,setCursor:b,cursor:g,getCursor:x,cursorOffset:j}},Lt=function(r,n){var a=(0,h.useRef)(!0),o=a.current;(0,h.useEffect)(function(){if(o)a.current=!1;else return r()},n)},jt=Ne("informed:useField "),_n=function(r,n,a,o,f){if(r!=null){if(f)return f(r);if(n)return n(r);if(a&&!o){var d=Ke(r,a);return d.value}return r}},Yr=function(r,n,a,o){if(n&&a)return n(r);if(o){var f=Ke(r,o);return f.value}return r},Jr=function(r,n,a){var o=a.required;if(r||n)return function(f,d){if(n)return Ot(n,f);if(r)return r(f,d)};if(o)return function(f){return tn(f,o)}},si=function(r){var n=r.fieldType,a=r.setValue,o=r.onChange,f=r.multiple,d=r.ref,m=function(b){return a(b)};return(n==="text"||n==="textArea"||n==="number")&&(m=function(b){return a(b.target.value,b)}),n==="select"&&(m=function(){var b=Array.from(d.current).filter(function(x){return x.selected}).map(function(x){return x.value});a(f?b:b[0]||"")}),n==="checkbox"&&(m=function(b){a(b.target.checked),o&&o(b)}),function(g){m(g)}},en=function(r){var n=r.setTouched,a=r.onBlur;return function(o){n(!0),a&&a(o)}},li=function(r){var n=r.fieldType,a=r.maskedValue,o=r.multiple,f=r.value;switch(n){case"text":case"number":return!a&&a!==0?"":a;case"textArea":return a||"";case"select":return f||(o?[]:"");case"checkbox":return!!f;default:return f}},ui=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},tn=function(r,n){if(n&&(r==null||r===""))return typeof n=="string"?n:"This field is required"};function Pn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=e.field,a=e.validate,o=e.asyncValidate,f=e.validationSchema,d=e.mask,m=e.maskWithCursorOffset,g=e.format,b=e.parse,x=e.formatter,I=e.parser,N=e.initialValue,j=e.validateOnChange,W=e.validateOnBlur,ee=e.validateOnMount,te=e.asyncValidateOnBlur,se=e.maskOnBlur,ie=e.allowEmptyString,de=e.onValueChange,we=e.notify,xe=e.keepState,Ee=e.maintainCursor,ye=e.debug,be=e.shadow,Se=e.step,ke=e.fieldType,Me=e.multiple,Re=e.onChange,We=e.onBlur,It=e.formController,vt=e.relevant,rr=e.required,cr=e.keepStateIfRelevant,mr=e.initialize,$r=e.formatterDependencies,yr=$r===void 0?[]:$r,kr=C(e,["field","validate","asyncValidate","validationSchema","mask","maskWithCursorOffset","format","parse","formatter","parser","initialValue","validateOnChange","validateOnBlur","validateOnMount","asyncValidateOnBlur","maskOnBlur","allowEmptyString","onValueChange","notify","keepState","maintainCursor","debug","shadow","step","fieldType","multiple","onChange","onBlur","formController","relevant","required","keepStateIfRelevant","initialize","formatterDependencies"]),wn=(0,h.useState)(it()),Wt=H(wn,1),yt=Wt[0],Pt=(0,h.useContext)(Ze),nr=(0,h.useContext)(xr),ln=nr||cr,hr=Yt(),Is=(0,h.useRef)(),ru=(0,h.useRef)(!0),Ro=(0,h.useRef)(),Wi=(0,h.useRef)(!1),nu=function(){return!Wi.current},yc=function(){return Wi.current};It&&(Pt=It.updater,hr=It.getFormApi());var Ei=Jr(a,f,{required:rr}),iu=(0,h.useState)(function(){return Pt.getInitialValue(n)}),Lx=H(iu,1),Mx=Lx[0],bc=Pt.getSavedValue(n),xc,Sg;(xe||ln)&&bc?(jt("Setting field ".concat(vp,"'s kept state"),bc),xc=bc.value,Sg=bc.touched,hr.removeSavedState(vp)):N!=null?xc=N:xc=Mx;var Nx=dr(_n(xc,d,x,I,mr)),tp=H(Nx,3),au=tp[0],rp=tp[1],Dx=tp[2],Bx=dr(ee?Ei(au):void 0),np=H(Bx,3),wg=np[0],Ag=np[1],jx=np[2],Vx=dr(Sg),ip=H(Vx,3),Cg=ip[0],Ux=ip[1],Eg=ip[2],Wx=(0,h.useState)(function(){return Yr(au,g,b,x)}),Og=H(Wx,2),ap=Og[0],op=Og[1],Tg=(0,h.useRef)();Tg.current=ap;var Pg=(0,h.useRef)(N),Lo=(0,h.useRef)(n),Ig=(0,h.useRef)();Pg.current=N,Lo.current=n;var Hx=(0,h.useRef)(null),Hi=h.useMemo(function(){return r||Hx},[]),sp=pr({value:au,inputRef:Hi,maintainCursor:!!Ee}),lp=sp.getCursor,zx=sp.setCursor,up=sp.setCursorOffset,Gx=function(){return!0},fp=function(ir){var un=vt||Gx,Wn=hr.getFullField(Lo.current)||Lo.current,Ht={path:Wn,parentPath:Wn.replace(/(.*)[.[].*/,"$1"),get:function(Hn,lu){return $e.get(Hn,lu)}};return nr&&nr.relevant?un(ir,Ht)&&nr.relevant(ir,Ht):un(ir,Ht)},$x=dr(fp(hr.getValues())),cp=H($x,3),Sc=cp[0],Kx=cp[1],kg=cp[2],Yx=function(ir){return nr&&nr.relevant?nr.relevant(ir):!0},Jx=function(){var ir=fp(hr.getValues()),un=kg();return ir!=un&&Kx(ir),ir};(0,h.useEffect)(function(){!Sc&&!xe&&Is.current.reset()},[Sc]);var oi=function(){return be?hr.getDerrivedValue(n):Dx()},ou=function(ir){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Wn=un.preventUpdate;Se&&hr.getStep()<Se?(jt("Setting ".concat(n,"'s error to undefined as we are not at that step")),Ag(void 0),Pt.setError(yt,void 0,!Wn)):(jt("Setting ".concat(n,"'s error to ").concat(ir)),Ag(ir),Pt.setError(yt,ir,!Wn))},dp=function(ir,un){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ht=ir;Wi.current=!0,jt("Setting ".concat(n," to ").concat(Ht)),mr&&(Ht=mr(Ht));var Mo=hr.getOptions(),Hn=Ht;if(Ht===""&&!ie&&!Wn.allowEmptyString&&!Mo.allowEmptyStrings&&(Ht=void 0),(e.type==="number"||ke==="number")&&Ht!==void 0&&(Ht=+Ht),un&&un.target&&un.target.selectionStart&&zx(un.target.selectionStart),d&&!se&&(Hn=d(Ht,lp()),Ht=d(Ht,lp())),m&&!se){var lu=m(Ht,lp());Hn=lu.value,Ht=lu.value,up(lu.offset)}if(g&&b&&(Ht=b(Ht),Hn=g(Ht)),x){var Fg=Ke(Ht,x);up(Fg.offset),Hn=Fg.value,Ht=Hn}I&&(Ht=Ht!=null?I(Ht):Ht),Ei&&j&&!Wn.initial&&(jt("Validating after change ".concat(n," ").concat(Ht)),ou(Ei(Ht,hr.getValues()))),rp(Ht),op(Hn),de&&de(Ht),Pt.setValue(yt,Ht,!Wn.preventUpdate)};Lt(function(){Is.current.setValue(Tg.current)},D(yr));var pp=function(ir,un){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ht=Wn.preventUpdate;if(jt("Field ".concat(n," has been touched")),Ei&&W&&!un&&ir&&(jt("Validating after blur ".concat(n," ").concat(oi())),ou(Ei(oi(),hr.getValues()))),o&&te&&!un&&ir&&(jt("Validating async after blur ".concat(n," ").concat(oi())),o(oi(),hr.getValues())),d&&se){var Mo=d(oi());rp(Mo),op(Mo),de&&de(Mo),Pt.setValue(yt,Mo,!Ht)}if(m&&se){var Hn=m(oi());up(Hn.offset),rp(Hn.value),op(Hn.value),de&&de(Hn.value),Pt.setValue(yt,Hn.value,!Ht)}Ux(ir),Pt.setTouched(yt,ir,!Ht)},Xx=function(){var ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},un=ir.preventUpdate,Wn=_n(Pg.current||Pt.getInitialValue(Lo.current),d,x,I,mr);dp(Wn,null,{initial:!0,preventUpdate:un}),ou(ee?Ei(Wn):void 0,{preventUpdate:un}),pp(void 0,!0,{preventUpdate:un}),Wi.current=!1},Qx=function(ir){Ei&&(jt("Field validating ".concat(n," ").concat(oi())),ou(Ei(oi(),ir||hr.getValues())))},Zx=function(ir){o&&(jt("Field async validating ".concat(n," ").concat(oi())),o(oi(),ir||hr.getValues()))},hp={setValue:dp,setTouched:pp,setError:ou,reset:Xx,validate:Qx,asyncValidate:Zx,getValue:oi,getTouched:Eg,getError:jx,getIsRelevant:kg,getDirty:yc,getPristine:nu,getFieldState:function(){return{value:oi(),touched:Eg(),dirty:yc(),pristine:nu()}},relevant:fp,multistepRelevant:Yx,checkRelevant:Jx};Is.current=hp;var su={value:au,error:wg,touched:Cg,maskedValue:ap,isRelevant:Sc,dirty:Wi.current,pristine:!Wi.current};be&&(su={error:wg,touched:Cg}),jt("Render",hr.getFullField(n),su),Rt(function(){var _r=hr.getFullField(Lo.current);return jt("Register",yt,Lo.current),Ro.current={field:_r,fieldId:yt,fieldApi:hp,fieldState:su,notify:we,keepState:xe,inMultistep:ln,shadow:be},Pt.register(yt,Ro.current),function(){var ir=hr.getFullField(Lo.current);jt("Deregister",yt,ir),Pt.deregister(yt)}},[]),(0,h.useEffect)(function(){var _r=hr.getFullField(n);return ru.current?ru.current=!1:(jt("Update",n,ln),Ro.current.field=_r,Pt.update(yt,Ro.current,Ig.current)),function(){Ig.current=_r}},[n]),Rt(function(){ye&&Hi&&(Hi.current.style.border="5px solid orange",setTimeout(function(){Hi.current.style.borderWidth="2px",Hi.current.style.borderStyle="inset",Hi.current.style.borderColor="initial",Hi.current.style.borderImage="initial"},500))});var _x=[].concat(D(Object.values(su)),D(Object.values(e)),D(Object.values(kr))),qx=function(ir){return(0,h.useMemo)(function(){return Sc?ir:null},D(_x))},vp=n,e1=si({fieldType:ke,setValue:dp,onChange:Re,multiple:Me,ref:Hi}),t1=en({setTouched:pp,onBlur:We}),r1=li({fieldType:ke,maskedValue:ap,multiple:Me,value:au}),n1=ui(ke);return{fieldState:su,fieldApi:hp,render:qx,ref:Hi,userProps:K(K({},kr),{},{multiple:Me,onChange:Re,onBlur:We,id:kr.id||yt}),informed:K({name:vp,multiple:Me,onChange:e1,onBlur:t1,value:r1,ref:Hi,type:n1,id:kr.id||yt},kr)}}var Vr=function(r){var n=h.forwardRef(function(a,o){var f=Pn(a,o),d=f.fieldState,m=f.fieldApi,g=f.render,b=f.ref,x=f.userProps;return g(h.createElement(r,Q({fieldApi:m,fieldState:d,field:a.field,forwardedRef:b,debug:a.debug,type:a.type},x)))});return n.displayName="asField(".concat(Xe(r),")"),n},Oi=Ne("informed:Text "),ha=function(r){var n=r.fieldApi,a=r.fieldState,o=C(r,["fieldApi","fieldState"]),f=a.maskedValue,d=n.setValue,m=n.setTouched,g=o.onChange,b=o.onBlur,x=o.field,I=o.initialValue,N=o.forwardedRef,j=o.debug,W=o.label,ee=o.title,te=o.id,se=C(o,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return Oi("Render",x),Rt(function(){j&&N&&(N.current.style.background="red",setTimeout(function(){N.current.style.background="white"},500))}),h.createElement(h.Fragment,null,W?h.createElement("label",{htmlFor:te}," ",W," "):null,h.createElement("input",Q({},se,{id:te,name:x,ref:N,value:!f&&f!==0?"":f,onChange:function(de){d(de.target.value,de),g&&g(de)},onBlur:function(de){m(!0),b&&b(de)}})))},An=Vr(ha),mn=function(r){var n=r.fieldApi,a=r.fieldState,o=C(r,["fieldApi","fieldState"]),f=a.maskedValue,d=n.setValue,m=n.setTouched,g=o.onChange,b=o.onBlur,x=o.field,I=o.initialValue,N=o.forwardedRef,j=o.debug,W=o.label,ee=o.id,te=C(o,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return Rt(function(){j&&N&&(N.current.style.background="red",setTimeout(function(){N.current.style.background="white"},500))}),h.createElement(h.Fragment,null,W?h.createElement("label",{htmlFor:ee}," ",W," "):null,h.createElement("textarea",Q({},te,{id:ee,name:x,ref:N,value:f||"",onChange:function(ie){d(ie.target.value,ie),g&&g(ie)},onBlur:function(ie){m(!0),b&&b(ie)}})))},Cn=Vr(mn),En=Ne("informed:Select "),In=function(r){var n=r.fieldApi,a=r.fieldState,o=C(r,["fieldApi","fieldState"]),f=a.value,d=n.setTouched,m=o.onChange,g=o.onBlur,b=o.field,x=o.initialValue,I=o.options,N=o.children,j=o.forwardedRef,W=o.debug,ee=o.multiple,te=o.label,se=o.id,ie=C(o,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),de=(0,h.useRef)(),we=function(Ee){var ye=Array.from((j||de).current).filter(function(be){return be.selected}).map(function(be){return be.value});n.setValue(ee?ye:ye[0]||""),m&&Ee&&m(Ee)};return Rt(function(){W&&j&&(j.current.style.background="red",setTimeout(function(){j.current.style.background="white"},500))}),En("Render",b,f),h.createElement(h.Fragment,null,te?h.createElement("label",{htmlFor:se}," ",te," "):null,h.createElement("select",Q({},ie,{id:se,multiple:ee,name:b,ref:j||de,value:f||(ee?[]:""),onChange:we,onBlur:function(Ee){d(!0),g&&g(Ee)}}),I?I.map(function(xe){return h.createElement("option",{key:xe.value,value:xe.value,disabled:xe.disabled},xe.label)}):N))},Ha=Vr(In),zn=function(r){var n=r.fieldApi,a=r.fieldState,o=C(r,["fieldApi","fieldState"]),f=a.value,d=n.setValue,m=n.setTouched,g=o.onChange,b=o.onBlur,x=o.field,I=o.initialValue,N=o.debug,j=o.forwardedRef,W=o.id,ee=o.label,te=C(o,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return h.createElement(h.Fragment,null,ee?h.createElement("label",{htmlFor:W}," ",ee," "):null,h.createElement("input",Q({},te,{id:W,name:x,ref:j,checked:!!f,onChange:function(ie){d(ie.target.checked),g&&g(ie)},onBlur:function(ie){m(!0),b&&b(ie)},type:"checkbox"})))},fn=Vr(zn),Sr=function(r){return h.forwardRef(function(n,a){return h.createElement(Zt.Consumer,null,function(o){var f=o.radioGroupApi,d=o.radioGroupState;return h.createElement(r,Q({radioGroupApi:f,radioGroupState:d,ref:a},n))})})},fi=function(r){var n=r.radioGroupApi,a=r.radioGroupState,o=C(r,["radioGroupApi","radioGroupState"]),f=a.value,d=n.setValue,m=n.setTouched,g=n.onChange,b=n.onBlur,x=o.value,I=o.onChange,N=o.onBlur,j=o.field,W=o.initialValue,ee=o.forwardedRef,te=C(o,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return h.createElement("input",Q({},te,{name:j,ref:ee,value:x,checked:f===x,onChange:function(ie){!ie.target.checked||(d(x),I&&I(ie),g&&g(ie))},onBlur:function(ie){m(!0),N&&N(ie),b&&b(ie)},type:"radio"}))},kn=Sr(fi),va=function(e){ne(n,e);var r=X(n);function n(){return E(this,n),r.apply(this,arguments)}return U(n,[{key:"render",value:function(){var o=this.props,f=o.options,d=o.children;return h.createElement(Zt.Provider,{value:this.groupContext},f?f.map(function(m){return h.createElement("label",{key:m.value},m.label," ",h.createElement(kn,{value:m.value}))}):d)}},{key:"groupContext",get:function(){return{radioGroupApi:K(K({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),n}(h.Component),No=Vr(va);function sr(){return(0,h.useContext)(xt)}var ot=function(){var r=sr(),n=r.add;return h.createElement("button",{onClick:function(){n()},type:"button"},"Add")};function ci(){return(0,h.useContext)(Ft)}var zi=function(){var r=ci(),n=r.remove;return h.createElement("button",{onClick:function(){n()},type:"button"},"Remove")},cn=Ne("informed:useArrayField "),zt=function(r){var n=r.field,a=r.initialValue,o=r.validate,f=r.arrayFieldApiRef,d=C(r,["field","initialValue","validate","arrayFieldApiRef"]),m=Yt(),g=(0,h.useState)(new Map),b=H(g,1),x=b[0],I=(0,h.useContext)(Ze),N=m.getFullField(n),j=I.getInitialValue(n)||a||[],W=m.getSavedValue(N)&&m.getSavedValue(N).value,ee=dr(W||j),te=H(ee,3),se=te[0],ie=te[1],de=te[2],we=se?se.map(function(){return it()}):[],xe=dr(we),Ee=H(xe,3),ye=Ee[0],be=Ee[1],Se=Ee[2],ke=(0,h.useMemo)(function(){return function(Wt,yt){var Pt=Se()==null?0:Se().length;return o?o(Wt,Pt,yt):void 0}}),Me=Pn(K({field:n,validate:o?ke:void 0,shadow:!0},d)),Re=Me.fieldApi;Rt(function(){var Wt=function(Pt){Pt!==N&&(cn("".concat(N," changed")),RegExp("".concat(N,"\\[[0-9]+\\]")).test(Pt)&&Re.validate())};return m.emitter.on("value",Wt),function(){m.emitter.removeListener("value",Wt)}},[n]);var We=function(yt){cn("EXPECTING REMOVAL OF","".concat(n,"[").concat(yt,"] and ").concat(n,"[").concat(ye.length-1,"]")),I.expectRemoval("".concat(n,"[").concat(yt,"]")),I.expectRemoval("".concat(n,"[").concat(ye.length-1,"]"));var Pt=ye.slice(0,yt).concat(ye.slice(yt+1,ye.length));be(Pt);var nr=de(),ln=nr.slice(0,yt).concat(nr.slice(yt+1,nr.length));ie(ln)},It=function(yt,Pt){cn("Swapping","".concat(n,"[").concat(yt,"] and ").concat(n,"[").concat(Pt,"]"));var nr=D(ye);ye[yt]&&ye[Pt]?(nr[yt]=ye[Pt],nr[Pt]=ye[yt]):console.warn("Attempted to swap ".concat(yt," with ").concat(Pt," but one of them does not exist :(")),be(nr)},vt=function(){ye.push(it()),be(D(ye))},rr=function(yt){ye.push(it()),be(D(ye));var Pt=D(de());Pt[ye.length-1]=yt,ie(Pt)},cr=function(){var yt=I.getInitialValue(n)||a||[];ie(yt);var Pt=yt?yt.map(function(){return it()}):[];be(Pt)},mr=ye.map(function(Wt,yt){var Pt={remove:function(){return We(yt)}},nr={initialValue:se&&se[yt],key:Wt,field:"".concat(n,"[").concat(yt,"]"),index:yt};return K(K({arrayFieldItemApi:Pt,arrayFieldItemState:nr},Pt),nr)}),$r={add:vt,swap:It,addWithInitialValue:rr,reset:cr};f&&(f.current=$r);var yr={fields:mr,field:n},kr=K(K({},I),{},{register:function(yt,Pt){x.set(yt,Pt);for(var nr=arguments.length,ln=new Array(nr>2?nr-2:0),hr=2;hr<nr;hr++)ln[hr-2]=arguments[hr];I.register.apply(I,[yt,Pt].concat(ln))},deregister:function(yt){x.delete(yt);for(var Pt=arguments.length,nr=new Array(Pt>1?Pt-1:0),ln=1;ln<Pt;ln++)nr[ln-1]=arguments[ln];I.deregister.apply(I,[yt].concat(nr))},getInitialValue:function(yt){if(RegExp("".concat(N,"\\[[0-9]+\\]")).test(yt)){var Pt=yt.replace(n,""),nr=$e.get(de(),Pt);return cn("Resetting ".concat(Pt," to ").concat(nr)),nr}return I.getInitialValue(yt)}}),wn=function(yt){return h.createElement(Ze.Provider,{value:kr},h.createElement(xt.Provider,{value:$r},h.createElement(lt.Provider,{value:yr},yt)))};return{render:wn,add:vt,swap:It,addWithInitialValue:rr,fields:mr,arrayFieldState:yr,arrayFieldApi:$r,field:n}},di=function(r,n){return K(K({},n),{},{getValue:function(o){return n.getValue("".concat(r,".").concat(o))},getTouched:function(o){return n.getTouched("".concat(r,".").concat(o))},getError:function(o){return n.getError("".concat(r,".").concat(o))},setValue:function(o,f){return n.setValue("".concat(r,".").concat(o),f)},setTouched:function(o,f){return n.setTouched("".concat(r,".").concat(o),f)},setError:function(o,f){return n.setError("".concat(r,".").concat(o),f)},getInitialValue:function(o){return n.getInitialValue("".concat(r,".").concat(o))},getSavedValue:function(o){return n.getSavedValue("".concat(r,".").concat(o))},getFullField:function(o){return"".concat(n.getFullField(r),".").concat(o)}})};function Gi(e){var r=Yt(),n=(0,h.useMemo)(function(){return di(e,r)},[e]);return n}function pi(){var e=(0,h.useContext)(Ct);return e}var M=function(r){var n=r.when,a=r.children,o=pi(),f=n(o);return f?a:null},ae=function(r){var n=r.relevant,a=r.field,o=C(r,["relevant","field"]),f=Yt();if(n){var d=f.getFullField(a),m={path:d,parentPath:d.replace(/(.*)[.[].*/,"$1"),get:function(x,I){return $e.get(x,I)}},g=function(x){var I=x.values;return n(I,m)};return h.createElement(M,{when:g},h.createElement(Fe,Q({field:a},o)))}else return h.createElement(Fe,Q({field:a},o))},Fe=function(r){var n=r.children,a=C(r,["children"]),o=zt(a),f=o.render,d=o.arrayFieldState,m=o.arrayFieldApi,g=o.field;return f(typeof n=="function"?n(K(K({field:g,arrayFieldApi:m,arrayFieldState:d},m),d)):n)},He=function(r){var n=r.arrayFieldItemState,a=r.arrayFieldItemApi,o=r.children,f=(0,h.useContext)(Ze),d=Yt(),m=(0,h.useState)(0),g=H(m,2),b=g[0],x=g[1],I=(0,h.useState)(new Map),N=H(I,1),j=N[0],W=n.field,ee=Gi(W),te=function(){var ye=d.getState(),be=ye.values,Se=ye.errors,ke=ye.touched,Me={values:$e.get(be,W),errors:$e.get(Se,W),touched:$e.get(ke,W)};return Me};(0,h.useEffect)(function(){var Ee=function(be){var Se=be.slice(0,be.lastIndexOf("[")!=-1?be.lastIndexOf("]")+1:be.length);Se===W&&x(Math.random())};return d.emitter.on("value",Ee),function(){d.emitter.removeListener("value",Ee)}},[W]);var se=function(){j.forEach(function(ye){ye.fieldApi.reset()})},ie=te(),de=K(K({},f),{},{register:function(ye,be,Se){j.set(ye,be),f.register(ye,be,Se)},deregister:function(ye){j.delete(ye);for(var be=arguments.length,Se=new Array(be>1?be-1:0),ke=1;ke<be;ke++)Se[ke-1]=arguments[ke];f.deregister.apply(f,[ye].concat(Se))}}),we=K(K(K({},a),ee),{},{reset:se}),xe=K(K({},n),ie);return typeof o=="function"?h.createElement(Ze.Provider,{value:de},h.createElement(Ft.Provider,{value:we},h.createElement(Kr.Provider,{value:xe},o(K(K({arrayFieldItemApi:we,arrayFieldItemState:xe},we),xe))))):h.createElement(Ze.Provider,{value:de},h.createElement(Ft.Provider,{value:we},h.createElement(Kr.Provider,{value:xe},o)))};ae.Items=function(e){var r=e.children,n=(0,h.useContext)(lt),a=n.fields;return a.map(function(o){var f=o.arrayFieldItemState,d=o.arrayFieldItemApi,m=f.key;return h.createElement(He,{key:m,arrayFieldItemApi:d,arrayFieldItemState:f},r)})};var St=function(r){var n=r.components,a=(0,h.useContext)(Ze),o=a.fieldMap;return n?n.map(function(f,d){var m=f["ui:control"],g=o[m];return h.createElement(g,{key:"ui-comp-".concat(d)})}):null},Nt=Ne("informed:FormFields "),Gt=function e(r){var n=r.schema,a=r.prefix,o=r.onlyValidateSchema,f=(0,h.useContext)(Ze),d=f.fieldMap,m=(0,h.useMemo)(function(){var g=Ve(n,o,a),b=g.map(function(x,I){var N=x.field,j=x.props,W=x.type,ee=x.properties,te=x.items,se=x.componentType,ie=x.uiBefore,de=x.uiAfter,we=x.allOf,xe=d[se];return Nt("Rendering Field",N,x),!xe&&W==="object"&&ee?h.createElement(e,{schema:x,prefix:N,key:"ScheamField-".concat(I)}):!xe&&W==="array"&&te?h.createElement(st,Q({key:"ScheamField-".concat(I),field:N,items:te,uiBefore:ie,uiAfter:de},j)):xe&&se==="array"&&te&&W==="array"?h.createElement(xe,Q({key:"ScheamField-".concat(I),field:N,items:te,uiBefore:ie,uiAfter:de},j)):se==="conditionals"?we.map(function(Ee){var ye=Ee.then,be=Ee.if.properties,Se=function(Me){var Re=Me.values;return Object.keys(be).every(function(We){var It=be[We];return Re[We]===It.const})};return h.createElement(M,{key:"ScheamField-".concat(I),when:Se},h.createElement(e,{schema:ye}))}):xe?h.createElement(xe,Q({key:"ScheamField-".concat(I),field:N},j)):null});return b},[n,a]);return m},st=function(r){var n=r.field,a=r.items,o=r.uiBefore,f=r.uiAfter,d=C(r,["field","items","uiBefore","uiAfter"]);return h.createElement(ae,Q({field:n},d),h.createElement(St,{components:o}),h.createElement(ae.Items,null,function(m){var g=m.field;return h.createElement(h.Fragment,null,h.createElement(St,{components:a["ui:before"]}),h.createElement(Gt,{schema:a,prefix:g}),h.createElement(St,{components:a["ui:after"]}))}),h.createElement(St,{components:f}))},Fn={select:Ha,input:An,textarea:Cn,checkbox:fn,radio:No,add:ot,remove:zi,array:st},Jt=Ne("informed:Controller "),Do=function(r,n){var a=Object.keys(n).find(function(f){return r.includes(f)});if(!!a){var o=r.slice(0,a.length);return o===a}},wr=function(){},uu=function(){function e(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};E(this,e),this.options=n,this.subscriptions=new Map;var a=n.ajv,o=n.schema,f=n.fieldMap;this.ajv=a?new a({allErrors:!0}):null,this.ajvValidate=a?this.ajv.compile(o):null,this.fieldMap=f||Fn,this.fieldsById=new Map,this.fieldsByName={get:function(m){var g;return r.fieldsById.forEach(function(b){b&&b.field===m&&(g=b)}),g}},this.onScreen={},this.expectedRemovals={},this.pulledOut={},this.savedValues={},this.state={pristine:!0,dirty:!1,invalid:!1,submits:0,step:0,validating:0,submitting:!1,values:{},errors:{},touched:{}},this.dummyField={fieldApi:{setValue:wr,setTouched:wr,setError:wr,reset:wr,validate:wr,getValue:wr,getTouched:wr,getError:wr,getFieldState:wr,checkRelevant:wr,getPristine:wr,getDirty:wr}},this.deregister=this.deregister.bind(this),this.register=this.register.bind(this),this.getValue=this.getValue.bind(this),this.getTouched=this.getTouched.bind(this),this.getError=this.getError.bind(this),this.getErrors=this.getErrors.bind(this),this.setValue=this.setValue.bind(this),this.getValues=this.getValues.bind(this),this.getStep=this.getStep.bind(this),this.setStep=this.setStep.bind(this),this.back=this.back.bind(this),this.next=this.next.bind(this),this.setCurrent=this.setCurrent.bind(this),this.setTouched=this.setTouched.bind(this),this.setError=this.setError.bind(this),this.setFormError=this.setFormError.bind(this),this.submitForm=this.submitForm.bind(this),this.reset=this.reset.bind(this),this.update=this.update.bind(this),this.validate=this.validate.bind(this),this.screenValid=this.screenValid.bind(this),this.keyDown=this.keyDown.bind(this),this.getField=this.getField.bind(this),this.getInitialValue=this.getInitialValue.bind(this),this.setInitialValue=this.setInitialValue.bind(this),this.getOptions=this.getOptions.bind(this),this.getFormState=this.getFormState.bind(this),this.expectRemoval=this.expectRemoval.bind(this),this.getSavedValue=this.getSavedValue.bind(this),this.removeSavedState=this.removeSavedState.bind(this),this.getDerrivedValue=this.getDerrivedValue.bind(this),this.setValues=this.setValues.bind(this),this.resetField=this.resetField.bind(this),this.fieldExists=this.fieldExists.bind(this),this.validateField=this.validateField.bind(this),this.notify=this.notify.bind(this),this.validating=this.validating.bind(this),this.validated=this.validated.bind(this),this.getDirty=this.getDirty.bind(this),this.getPristine=this.getPristine.bind(this),this.on=this.on.bind(this),this.emit=this.emit.bind(this),this.removeListener=this.removeListener.bind(this),this.updater={register:this.register,deregister:this.deregister,getField:this.getField,update:this.update,fieldMap:this.fieldMap,setValue:function(m,g){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,x=r.fieldsById.get(m);x.shadow||$e.set(r.state.values,x.field,x.fieldApi.getValue()),x.fieldApi.relevant(r.state.values)||$e.delete(r.state.values,x.field),r.fieldsById.forEach(function(I){var N=I.fieldApi.checkRelevant();(!I.fieldApi.multistepRelevant(r.state.values)||!N&&!I.keepState)&&($e.delete(r.state.values,I.field),$e.delete(r.state.touched,I.field),$e.delete(r.state.errors,I.field))}),b&&(r.emit("change"),r.emit("field",x.field),r.emit("value",x.field,g))},setTouched:function(m,g){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,x=r.fieldsById.get(m);!x.shadow&&x.fieldApi.getIsRelevant()&&$e.set(r.state.touched,x.field,x.fieldApi.getTouched()),x.shadow&&x.fieldApi.getError()!=null&&x.fieldApi.relevant(r.state.values)&&$e.set(r.state.touched,x.field,x.fieldApi.getTouched()),b&&(r.emit("change"),r.emit("field",x.field))},setError:function(m,g){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,x=r.fieldsById.get(m);!x.shadow&&x.fieldApi.getIsRelevant()&&$e.set(r.state.errors,x.field,x.fieldApi.getError());var I=$e.get(r.state.errors,x.field);(x.shadow&&x.fieldApi.getError()!=null&&x.fieldApi.relevant(r.state.values)||x.shadow&&x.fieldApi.getError()===void 0&&x.fieldApi.relevant(r.state.values)&&typeof I=="string")&&$e.set(r.state.errors,x.field,x.fieldApi.getError()),b&&(r.emit("change"),r.emit("field",x.field))},expectRemoval:this.expectRemoval,getInitialValue:this.getInitialValue,getSavedValue:this.getSavedValue},this.formApi={setValue:this.setValue,setTouched:this.setTouched,setError:this.setError,setFormError:this.setFormError,setValues:this.setValues,setInitialValue:this.setInitialValue,getValue:this.getValue,getTouched:this.getTouched,getError:this.getError,reset:this.reset,submitForm:this.submitForm,getState:this.getFormState,getValues:this.getValues,getFullField:this.getFullField,fieldExists:this.fieldExists,getInitialValue:this.getInitialValue,validate:this.validate,validateField:this.validateField,screenValid:this.screenValid,resetField:this.resetField,getOptions:this.getOptions,emitter:this,getSavedValue:this.getSavedValue,removeSavedState:this.removeSavedState,getDerrivedValue:this.getDerrivedValue,getStep:this.getStep,setStep:this.setStep,next:this.next,back:this.back,setCurrent:this.setCurrent,validated:this.validated,validating:this.validating,getDirty:this.getDirty,getPristine:this.getPristine,getField:this.getField},this.on("value",function(d){delete r.state.error,r.notify(d)})}return U(e,[{key:"emit",value:function(n){for(var a=arguments.length,o=new Array(a>1?a-1:0),f=1;f<a;f++)o[f-1]=arguments[f];var d=this.subscriptions.get(n);d&&d.forEach(function(m){return m.apply(void 0,o)})}},{key:"on",value:function(n,a){this.subscriptions.get(n)||this.subscriptions.set(n,new Set);var o=this.subscriptions.get(n);o.add(a)}},{key:"removeListener",value:function(n,a){var o=this.subscriptions.get(n);o.delete(a)}},{key:"setOptions",value:function(n){this.options=n}},{key:"setValue",value:function(n,a,o){this.getField(n).fieldApi.setValue(a,null,K({allowEmptyString:this.options.allowEmptyStrings},o))}},{key:"setTouched",value:function(n,a){this.getField(n).fieldApi.setTouched(a)}},{key:"setError",value:function(n,a){this.getField(n).fieldApi.setError(a)}},{key:"setFormError",value:function(n){this.state.error=n,this.emit("change")}},{key:"validating",value:function(){this.state.validating=this.state.validating+1,this.emit("change")}},{key:"validated",value:function(n,a){if(this.state.validating=this.state.validating-1,this.getError(n)||this.setError(n,a),this.state.validating>0){this.emit("change");return}this.state.submitting&&(this.valid()?(Jt("Submit",this.state),this.emit("submit")):(Jt("Submit",this.state),this.emit("failure")),this.state.submitting=!1),this.emit("change")}},{key:"setStep",value:function(n){this.state.step=n,this.emit("change")}},{key:"setCurrent",value:function(n){this.state.Current=n,this.emit("change")}},{key:"back",value:function(n){this.state.step=this.state.step-1,this.state.Current=n,this.emit("change")}},{key:"next",value:function(n){this.validate(),this.screenValid()&&(this.state.step=this.state.step+1,this.state.Current=n),this.emit("change")}},{key:"setInitialValue",value:function(n,a){$e.set(this.options.initialValues,n,a)}},{key:"getFormState",value:function(){return Jt("Returning form state"),K(K({},this.state),{},{pristine:this.pristine(),dirty:this.dirty(),invalid:this.invalid()})}},{key:"getFormApi",value:function(){return this.formApi}},{key:"getDerrivedValue",value:function(n){var a=this.getValues();return $e.get(a,n)}},{key:"getValue",value:function(n){var a=this.getField(n).fieldApi.getValue();return Jt("Getting value for",n,a),a}},{key:"getTouched",value:function(n){var a=this.getField(n).fieldApi.getTouched();return Jt("Getting touched for",n,a),a}},{key:"getError",value:function(n){var a=this.getField(n).fieldApi.getError();return Jt("Getting error for",n,a),a}},{key:"getDirty",value:function(n){var a=this.getField(n).fieldApi.getDirty();return Jt("Getting dirty for",n,a),a}},{key:"getPristine",value:function(n){var a=this.getField(n).fieldApi.getPristine();return Jt("Getting pristine for",n,a),a}},{key:"getValues",value:function(){return Jt("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return Jt("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return Jt("Gettings errors"),this.state.errors}},{key:"getOptions",value:function(){return this.options}},{key:"getStep",value:function(){return this.state.step}},{key:"getSavedValue",value:function(n){var a=this.fieldsByName.get(n);return a&&a.shadow?$e.get(this.savedValues,"shadow-".concat(n)):$e.get(this.savedValues,n)}},{key:"removeSavedState",value:function(n){var a=this.fieldsByName.get(n);return a&&a.shadow?$e.delete(this.savedValues,"shadow-".concat(n)):$e.delete(this.savedValues,n)}},{key:"getFullField",value:function(n){return n}},{key:"getInitialValue",value:function(n){return $e.get(this.options.initialValues,n)}},{key:"getField",value:function(n){Jt("Getting Field",n);var a=this.fieldsByName.get(n);return a||(console.warn("Attempting to get field ".concat(n," but it does not exist")),this.dummyField)}},{key:"notify",value:function(n){var a=this,o=this.getField(n);o&&o.notify&&o.notify.forEach(function(f){var d=".".concat(n),m="".concat(d.replace(/(.*)[.[].*/,"$1"),".").concat(f).slice(1),g=a.getField(m);g&&(Jt("Notifying",g.field),g.fieldApi.validate(),g.fieldApi.checkRelevant())})}},{key:"validateField",value:function(n){this.getField(n).fieldApi.validate()}},{key:"resetField",value:function(n){this.getField(n).fieldApi.reset()}},{key:"fieldExists",value:function(n){return this.fieldsByName.get(n)!=null}},{key:"valid",value:function(){var n=this.getErrors();return!!($e.empty(n)&&!this.state.error)}},{key:"screenValid",value:function(){var n=Object.entries(this.onScreen).some(function(a){var o=H(a,2),f=o[1];return f.fieldApi.getError()});return!n}},{key:"invalid",value:function(){var n=this.getErrors();return!!(!$e.empty(n)||this.state.error)}},{key:"pristine",value:function(){var n=!0;return this.fieldsById.forEach(function(a){a.fieldApi.getPristine()||(n=!1)}),n}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){Jt("Resetting"),this.fieldsById.forEach(function(n){n.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(n){Jt("Setting values"),this.fieldsById.forEach(function(a){var o=$e.get(n,a.field);o!==void 0&&a.fieldApi.setValue(o,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var n=this;Jt("Validating all fields");var a=this.getValues();if(this.options.validationSchema){var o=Tt(this.options.validationSchema,a);this.fieldsById.forEach(function(g){if($e.has(o,g.field)){var b=$e.get(o,g.field);n.setError(g.field,b)}else n.setError(g.field,void 0)})}if(this.options.schema&&this.options.ajv){var f=ct(this.ajvValidate,a);this.fieldsById.forEach(function(g){if($e.has(f,g.field)){var b=$e.get(f,g.field);n.setError(g.field,b)}else n.setError(g.field,void 0)})}if(this.fieldsById.forEach(function(g){g.fieldApi.validate(a),g.fieldApi.setTouched(!0,!0)}),this.options.validate){var d=this.options.validate(a);this.setFormError(d)}if(this.options.validateFields){var m=this.options.validateFields(a);this.fieldsById.forEach(function(g){if($e.has(m,g.field)){var b=$e.get(m,g.field);n.setError(g.field,b)}})}}},{key:"asyncValidate",value:function(){Jt("Async Validating all fields");var n=this.getValues();this.fieldsById.forEach(function(a){a.fieldApi.asyncValidate(n)})}},{key:"keyDown",value:function(n){if(n.keyCode==13&&this.options.preventEnter)return n.preventDefault(n),!1}},{key:"submitForm",value:function(n){this.state.submits=this.state.submits+1,this.state.submitting=!0,!this.options.dontPreventDefault&&n&&n.preventDefault(n),this.validate(),this.emit("change"),this.asyncValidate(),!(this.state.validating>0)&&(this.valid()?(Jt("Submit",this.state),this.emit("submit")):(Jt("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var n=this;this.fieldsById.forEach(function(a){n.emit("field",a.field)})}},{key:"register",value:function(n,a,o){var f=a.field,d=a.state;Jt("Register ID:",n,"Name:",f,d,"Initial",o);var m=f.slice(0,f.lastIndexOf("[")!=-1?f.lastIndexOf("]")+1:f.length),g;this.fieldsById.forEach(function(b,x){b&&b.field===f&&(g=x)}),g&&(a.keepState||a.inMultistep)?(Jt("Already Registered",f),this.fieldsById.delete(g)):g&&(!a.keepState||!a.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",f),Jt("Fields Registered",this.fieldsById.size),this.onScreen[n]=a,this.fieldsById.set(n,a),Jt("clearing expected removal",m),delete this.expectedRemovals[m],delete this.pulledOut[m],!a.shadow&&(this.updater.setValue(n,a.fieldApi.getValue(),!1),this.updater.setError(n,a.fieldApi.getError(),!1),this.updater.setTouched(n,a.fieldApi.getTouched(),!1),o||this.emit("change"),this.emit("field",f))}},{key:"deregister",value:function(n){var a=this.fieldsById.get(n),o=a.field;Jt("Deregister",n,o),delete this.onScreen[n];var f=Do(o,this.expectedRemovals),d=o.slice(0,o.lastIndexOf("[")!=-1?o.lastIndexOf("]")+1:o.length);(a.keepState||a.inMultistep)&&!f&&(Jt("Saving field ".concat(o,"'s value"),a.fieldApi.getFieldState()),a.shadow?$e.set(this.savedValues,"shadow-".concat(o),a.fieldApi.getFieldState()):$e.set(this.savedValues,o,a.fieldApi.getFieldState())),(f||!a.keepState&&!a.inMultistep||!a.fieldApi.getIsRelevant()&&!a.keepState)&&(Jt("Removing field",o),this.fieldsById.delete(n),f||($e.delete(this.state.values,o),$e.delete(this.state.touched,o),$e.delete(this.state.errors,o),a.shadow?$e.delete(this.savedValues,"shadow-".concat(o)):$e.delete(this.savedValues,o)),f&&this.pulledOut[d]&&(Jt("Pulling out",o,"with magic value",d),$e.pullOut(this.state.values,d),$e.pullOut(this.state.touched,d),$e.pullOut(this.state.errors,d),$e.pullOut(this.savedValues,d),delete this.pulledOut[d])),this.emit("change")}},{key:"expectRemoval",value:function(n){Jt("Expecting removal of",n),this.expectedRemovals[n]=!0,this.pulledOut[n]=!0}},{key:"update",value:function(n,a,o){Jt("Update",n,a.field,o,a.fieldState.value);var f=a.fieldApi.getValue(),d=a.fieldApi.getError(),m=a.fieldApi.getTouched(),g=this.fieldsByName.get(o);o&&!g&&($e.set(this.state.values,o),$e.set(this.state.errors,o),$e.set(this.state.touched,o)),$e.set(this.state.values,a.field,f),$e.set(this.state.errors,a.field,d),$e.set(this.state.touched,a.field,m),this.emit("change")}}]),e}(),Bo=Ne("informed:FormProvider "),za=function(r){var n=r.children,a=r.formApi,o=r.formController,f=r.formState,d=C(r,["children","formApi","formController","formState"]);if(Bo("Render FormProvider"),a)return Bo("Render FormProvider with given values"),h.createElement(Ze.Provider,{value:o.updater},h.createElement(kt.Provider,{value:a},h.createElement(Ct.Provider,{value:f},n)));Bo("Render FormProvider with generated values");var m=ks(d);return h.createElement(Ze.Provider,{value:m.formController.updater},h.createElement(kt.Provider,{value:m.formApi},h.createElement(Ct.Provider,{value:m.formState},n)))},jo=Ne("informed:useForm "),ks=function(r){var n=r.dontPreventDefault,a=r.initialValues,o=r.validate,f=r.validateFields,d=r.allowEmptyStrings,m=r.preventEnter,g=r.getApi,b=r.apiRef,x=r.onChange,I=r.onReset,N=r.onSubmit,j=r.onValueChange,W=r.onSubmitFailure,ee=r.validationSchema,te=r.schema,se=r.ajv,ie=r.fieldMap,de=r.onlyValidateSchema,we=C(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);jo("Render useForm");var xe=(0,h.useMemo)(function(){return{dontPreventDefault:n,initialValues:a,validate:o,validateFields:f,allowEmptyStrings:d,preventEnter:m,validationSchema:ee,schema:te,ajv:se,fieldMap:ie}},[n,a,o,f,d,m,ee,te,se,ie]),Ee=(0,h.useState)(function(){return new uu(xe)}),ye=H(Ee,1),be=ye[0];(0,h.useEffect)(function(){be.setOptions(xe)},[xe]),Rt(function(){be.mount()},[]);var Se=(0,h.useState)(function(){return be.getFormState()}),ke=H(Se,2),Me=ke[0],Re=ke[1];Rt(function(){var cr=function(){return x&&x(be.getFormState())},mr=function(){return I&&I()},$r=function(){return N&&N(be.getFormState().values)},yr=function(){return j&&j(be.getFormState().values)},kr=function(){return W&&W(be.getFormState().errors)};return be.on("change",cr),be.on("reset",mr),be.on("submit",$r),be.on("value",yr),be.on("failure",kr),function(){be.removeListener("change",cr),be.removeListener("reset",mr),be.removeListener("submit",$r),be.removeListener("value",yr),be.removeListener("failure",kr)}},[x,I,N,j,W]),(0,h.useState)(function(){var cr=function(){jo("Setting form state"),Re(be.getFormState())};be.on("change",cr),g&&g(be.getFormApi()),b&&(b.current=be.getFormApi())});var We=(0,h.useState)(function(){return be.getFormApi()}),It=H(We,1),vt=It[0],rr=function(mr){return h.createElement(za,{formApi:vt,formState:Me,formController:be},h.createElement(h.Fragment,null,mr||h.createElement(Gt,{schema:te,onlyValidateSchema:de})))};return{formApi:vt,formState:Me,formController:be,render:rr,userProps:we}},Fs=Ne("informed:Form "),fu=function(r){var n=r.children,a=r.render,o=r.component,f=C(r,["children","render","component"]);Fs("Render FORM");var d=ks(f),m=d.formApi,g=d.formController,b=d.formState,x=d.render,I=d.userProps,N=function(){var W={formState:b,formApi:m};return o?h.createElement(o,W,n):a?a(W):typeof n=="function"?n(W):n};return x(h.createElement("form",Q({},I,{onReset:g.reset,onSubmit:g.submitForm,onKeyDown:g.keyDown}),N()))},cu=function(r,n){return K(K({},n),{},{getValue:function(o){return n.getValue("".concat(r,".").concat(o))},getTouched:function(o){return n.getTouched("".concat(r,".").concat(o))},getError:function(o){return n.getError("".concat(r,".").concat(o))},setValue:function(o,f){return n.setValue("".concat(r,".").concat(o),f)},setTouched:function(o,f){return n.setTouched("".concat(r,".").concat(o),f)},setError:function(o,f){return n.setError("".concat(r,".").concat(o),f)},getInitialValue:function(o){return n.getInitialValue("".concat(r,".").concat(o))},getFullField:function(o){return"".concat(n.getFullField(r),".").concat(o)}})},du=function(r,n){var a=n.register,o=n.deregister,f=n.setValue,d=n.setTouched,m=n.setError,g=n.update,b=n.getField,x=n.expectRemoval,I=n.getInitialValue,N=n.fieldMap,j=n.getSavedValue;return{register:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return a.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},deregister:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return o.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},update:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return g.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},setValue:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return f.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},setTouched:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return d.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},setError:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return m.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},getField:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return b.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},expectRemoval:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return x.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},getInitialValue:function(ee){return I("".concat(r,".").concat(ee))},getSavedValue:function(ee){return j("".concat(r,".").concat(ee))},fieldMap:N}},wc=function(r){var n=r.scope,a=r.children,o=useContext(Ze),f=Yt(),d=pi(),m=useMemo(function(){return cu(n,f)},[n]),g=useMemo(function(){return du(n,o)},[n]);return React.createElement(Ze.Provider,{value:g},React.createElement(kt.Provider,{value:m},React.createElement(Ct.Provider,{value:d},a)))},gp=function(r){var n=pi(),a={};Object.keys(r).length>0?Object.keys(r).forEach(function(j){a[j]=n[j]}):a=n;var o=a,f=o.pristine,d=o.dirty,m=o.invalid,g=o.values,b=o.errors,x=o.touched,I=o.validating,N=o.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:f,dirty:d,invalid:m,values:g,errors:b,touched:x,validating:I,submitting:N},null,2)))},Ac=function(r){var n=r.initialStep,a=r.multistepApiRef,o=Yt(),f=o.getValues,d=o.validate,m=o.screenValid,g=(0,h.useState)(new Map),b=H(g,1),x=b[0],I=(0,h.useRef)(0),N=dr({current:n,steps:[],goal:null}),j=H(N,3),W=j[0],ee=j[1],te=j[2],se=(0,h.useState)(function(){var xe=function(){var be=te(),Se=be.current,ke=x.get(Se);return ke},Ee={getState:function(){return te()},getCurrentStep:xe,getStep:function(be){return x.get(be)},getNumberOfSteps:function(){return x.size},next:function(){if(d(),m()){var be=xe(),Se=be.getNext,ke=Se(),Me=typeof ke=="function"?ke(f()):ke;Me&&ee(function(Re){return K(K({},Re),{},{current:Me})})}},back:function(){var be=xe(),Se=be.getPrevious,ke=Se(),Me=typeof ke=="function"?ke(f()):ke;Me&&ee(function(Re){return K(K({},Re),{},{current:Me})})},setCurrent:function(be){if(be){var Se=x.get(be).index;Se<xe().index?ee(function(ke){return K(K({},ke),{},{current:be,goal:null})}):ee(function(ke){return K(K({},ke),{},{goal:be})})}},register:function(be,Se,ke){ke?(I.current=I.current+1,x.set(be,K(K({},Se),{},{index:I.current}))):ee(function(Me){return K(K({},Me),{},{steps:Array.from(x.keys())})})},deregister:function(be){x.delete(be),I.current=I.current-1,ee(function(Se){return K(K({},Se),{},{steps:Array.from(x.keys())})})}};return a&&(a.current=Ee),Ee}),ie=H(se,1),de=ie[0],we=function(Ee){return h.createElement(qr.Provider,{value:de},h.createElement(br.Provider,{value:W},Ee))};return K(K(K({},de),W),{},{render:we})};function pu(){return(0,h.useContext)(br)}function hi(){return(0,h.useContext)(qr)}var Cc=function(r){var n=r.step,a=r.next,o=r.previous,f=r.relevant,d=pi(),m=d.values,g=pu(),b=g.current,x=g.goal,I=hi(),N=I.register,j=I.deregister,W=I.next,ee=n===b,te=f?f(m):!0,se=(0,h.useRef)(a),ie=(0,h.useRef)(o),de=(0,h.useRef)();se.current=a,ie.current=o,de.current=f,(0,h.useState)(function(){N(n,{name:n,getNext:function(){return se.current},getPrevious:function(){return ie.current}},!0)}),(0,h.useEffect)(function(){return N(n,{name:n,getNext:function(){return se.current},getPrevious:function(){return ie.current}}),function(){j(n)}},[n]),(0,h.useEffect)(function(){x&&ee&&x!==n&&W()},[x,ee]);var we=function(Ee){return h.createElement(xr.Provider,{value:{relevant:function(be){return de.current?de.current(be):!0},multistep:!0}},ee&&te?Ee:null)};return{isCurrent:ee,isRelevant:te,step:n,render:we}};function Ec(e){var r=e.children,n=C(e,["children"]),a=Ac(n),o=a.render,f=C(a,["render"]);return o(typeof r=="function"?r(f):r)}Ec.Step=function(r){var n=r.children,a=C(r,["children"]),o=Cc(a),f=o.render;return f(n)};var Rs=function(r){var n=r.field,a=useContext(Ze),o=a.fieldMap,f=Yt(),d=f.getFullField,m=f.getOptions,g=d(n),b=m(),x=b.schema,I=ue(g),N=$e.get(x,I);if(!N)return null;var j=nt(n,N),W=j.props,ee=j.componentType,te=o[ee];return React.createElement(te,Q({field:n},W))},Vo=function(){var r=Yt(),n=r.getOptions,a=n(),o=a.schema;return React.createElement(Gt,{schema:o})},mp=function(r){return React.forwardRef(function(n,a){return React.createElement(kt.Consumer,null,function(o){return React.createElement(r,Q({formApi:o,ref:a},n))})})},yp=function(r){return React.forwardRef(function(n,a){return React.createElement(Ct.Consumer,null,function(o){return React.createElement(r,Q({formState:o,ref:a},n))})})},Oc=function(r,n){return{getValue:function(){return r.getValue(n)},setValue:function(o){return r.setValue(n,o)},getTouched:function(){return r.getTouched(n)},setTouched:function(o){return r.setTouched(n,o)},getError:function(){return r.getError(n)},setError:function(o){return r.setError(n,o)},reset:function(){return r.resetField(n)},validate:function(){return r.validateField(n)},exists:function(){return r.fieldExists(n)},getDirty:function(){return r.getDirty(n)},getPristine:function(){return r.getPristine(n)},getFieldState:function(){return r.getField(n).fieldApi.getFieldState()}}};function hu(e){var r=Yt(),n=useMemo(function(){return Oc(r,e)},[e]);return n}function Ls(e){var r=hu(e),n=Yt(),a=React.useState(),o=H(a,2),f=o[1],d=React.useCallback(function(){return f({})},[]);return Rt(function(){var m=function(b){b===e&&d()};return n.emitter.on("field",m),function(){n.emitter.removeListener("field",m)}},[]),Rt(function(){d()},[]),r.getFieldState()||{}}var Tc=function(r){return function(n){return function(a){var o=Ls(r);return React.createElement(n,Q({fieldState:o},a))}}},bp=function(r){return function(n){return function(a){var o=hu(r);return React.createElement(n,Q({fieldApi:o},a))}}},Pc=function(r){var n=r.value,a=r.forwardedRef,o=r.children,f=C(r,["value","forwardedRef","children"]);return React.createElement("option",Q({ref:a,value:n,key:n},f),o)},Ic=null,$i=s(49086),Ga=s(25575),ga=s(24463),vu=s(84870),Ms=s(79494),$a=s(48145),gu=s(11807),mu=s(45055),yn=s(49800);function kc(e,r,n){return r in e?yn(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function yu(e,r){var n=Ga(e);if(ga){var a=ga(e);r&&(a=vu(a).call(a,function(o){return Ms(e,o).enumerable})),n.push.apply(n,a)}return n}function lr(e){for(var r=1;r<arguments.length;r++){var n,a,o=arguments[r]!=null?arguments[r]:{};r%2?$a(n=yu(Object(o),!0)).call(n,function(f){kc(e,f,o[f])}):gu?mu(e,gu(o)):$a(a=yu(Object(o))).call(a,function(f){yn(e,f,Ms(o,f))})}return e}var bu=s(45932),Fr=s.n(bu),Ns=s(51661),qn=s.n(Ns),Gn=s(883),vi=s(57829),Ti=s(5490),Ds=s(72010),Fc=s(72383),xu=s(50557);function Bs(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=e[n];return a}function Uo(e,r){var n;if(!!e){if(typeof e=="string")return Bs(e,r);var a=Fc(n=Object.prototype.toString.call(e)).call(n,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return xu(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Bs(e,r)}}function Pi(e,r){var n=typeof vi!="undefined"&&Ti(e)||e["@@iterator"];if(!n){if(Ds(e)||(n=Uo(e))||r&&e&&typeof e.length=="number"){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(b){throw b},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
47
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f=!0,d=!1,m;return{s:function(){n=n.call(e)},n:function(){var b=n.next();return f=b.done,b},e:function(b){d=!0,m=b},f:function(){try{!f&&n.return!=null&&n.return()}finally{if(d)throw m}}}}var Rc=s(92876);function ar(e){return ar=typeof vi=="function"&&typeof Rc=="symbol"?function(r){return typeof r}:function(r){return r&&typeof vi=="function"&&r.constructor===vi&&r!==vi.prototype?"symbol":typeof r},ar(e)}function Lc(e){if(Ds(e))return e}function Mc(e,r){var n=e==null?null:typeof vi!="undefined"&&Ti(e)||e["@@iterator"];if(n!=null){var a=[],o=!0,f=!1,d,m;try{for(n=n.call(e);!(o=(d=n.next()).done)&&(a.push(d.value),!(r&&a.length===r));o=!0);}catch(g){f=!0,m=g}finally{try{!o&&n.return!=null&&n.return()}finally{if(f)throw m}}return a}}function Su(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
48
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $n(e,r){return Lc(e)||Mc(e,r)||Uo(e,r)||Su()}var js=s(64772);function Ka(e,r,n,a,o,f,d){try{var m=e[f](d),g=m.value}catch(b){n(b);return}m.done?r(g):js.resolve(g).then(a,o)}function Ii(e){return function(){var r=this,n=arguments;return new js(function(a,o){var f=e.apply(r,n);function d(g){Ka(f,a,o,d,m,"next",g)}function m(g){Ka(f,a,o,d,m,"throw",g)}d(void 0)})}}var Nc=s(99732),ei=s.n(Nc),Dc=s(82985),gi=s.n(Dc),Rr=s(42126),wu=s.n(Rr),Au=s(48621),ma=s.n(Au),Bc=s(85337),Ya=s.n(Bc),jc=s(14903),$t=s.n(jc),Cu=s(2921),Kt=s.n(Cu),Vc=s(40192),ut=s.n(Vc),Eu=s(31175),Ou=s.n(Eu),Ja=s(40453),Er=s.n(Ja),Vs=s(43616),Us=s(37794),Wo=s.n(Us);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Kn(e){return typeof e=="undefined"||e===null}function Ki(e){return typeof e=="object"&&e!==null}function Ws(e){return Array.isArray(e)?e:Kn(e)?[]:[e]}function Uc(e,r){var n,a,o,f;if(r)for(f=Object.keys(r),n=0,a=f.length;n<a;n+=1)o=f[n],e[o]=r[o];return e}function Tu(e,r){var n="",a;for(a=0;a<r;a+=1)n+=e;return n}function Wc(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Pu=Kn,Hs=Ki,ya=Ws,ti=Tu,Iu=Wc,ku=Uc,Lr={isNothing:Pu,isObject:Hs,toArray:ya,repeat:ti,isNegativeZero:Iu,extend:ku};function Fu(e,r){var n="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(n+=`
|
|
49
|
+
|
|
50
|
+
`+e.mark.snippet),a+" "+n):a}function Xa(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=Fu(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Xa.prototype=Object.create(Error.prototype),Xa.prototype.constructor=Xa,Xa.prototype.toString=function(r){return this.name+": "+Fu(this,r)};var rn=Xa;function Ho(e,r,n,a,o){var f="",d="",m=Math.floor(o/2)-1;return a-r>m&&(f=" ... ",r=a-m+f.length),n-a>m&&(d=" ...",n=a+m-d.length),{str:f+e.slice(r,n).replace(/\t/g,"\u2192")+d,pos:a-r+f.length}}function Yi(e,r){return Lr.repeat(" ",r-e.length)+e}function Ru(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var n=/\r?\n|\r|\0/g,a=[0],o=[],f,d=-1;f=n.exec(e.buffer);)o.push(f.index),a.push(f.index+f[0].length),e.position<=f.index&&d<0&&(d=a.length-2);d<0&&(d=a.length-1);var m="",g,b,x=Math.min(e.line+r.linesAfter,o.length).toString().length,I=r.maxLength-(r.indent+x+3);for(g=1;g<=r.linesBefore&&!(d-g<0);g++)b=Ho(e.buffer,a[d-g],o[d-g],e.position-(a[d]-a[d-g]),I),m=Lr.repeat(" ",r.indent)+Yi((e.line-g+1).toString(),x)+" | "+b.str+`
|
|
51
|
+
`+m;for(b=Ho(e.buffer,a[d],o[d],e.position,I),m+=Lr.repeat(" ",r.indent)+Yi((e.line+1).toString(),x)+" | "+b.str+`
|
|
52
|
+
`,m+=Lr.repeat("-",r.indent+x+3+b.pos)+`^
|
|
53
|
+
`,g=1;g<=r.linesAfter&&!(d+g>=o.length);g++)b=Ho(e.buffer,a[d+g],o[d+g],e.position-(a[d]-a[d+g]),I),m+=Lr.repeat(" ",r.indent)+Yi((e.line+g+1).toString(),x)+" | "+b.str+`
|
|
54
|
+
`;return m.replace(/\n$/,"")}var Lu=Ru,zs=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],zo=["scalar","sequence","mapping"];function Mu(e){var r={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(a){r[String(a)]=n})}),r}function Go(e,r){if(r=r||{},Object.keys(r).forEach(function(n){if(zs.indexOf(n)===-1)throw new rn('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=Mu(r.styleAliases||null),zo.indexOf(this.kind)===-1)throw new rn('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var or=Go;function Gs(e,r){var n=[];return e[r].forEach(function(a){var o=n.length;n.forEach(function(f,d){f.tag===a.tag&&f.kind===a.kind&&f.multi===a.multi&&(o=d)}),n[o]=a}),n}function $s(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,n;function a(o){o.multi?(e.multi[o.kind].push(o),e.multi.fallback.push(o)):e[o.kind][o.tag]=e.fallback[o.tag]=o}for(r=0,n=arguments.length;r<n;r+=1)arguments[r].forEach(a);return e}function Qa(e){return this.extend(e)}Qa.prototype.extend=function(r){var n=[],a=[];if(r instanceof or)a.push(r);else if(Array.isArray(r))a=a.concat(r);else if(r&&(Array.isArray(r.implicit)||Array.isArray(r.explicit)))r.implicit&&(n=n.concat(r.implicit)),r.explicit&&(a=a.concat(r.explicit));else throw new rn("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(f){if(!(f instanceof or))throw new rn("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(f.loadKind&&f.loadKind!=="scalar")throw new rn("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(f.multi)throw new rn("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),a.forEach(function(f){if(!(f instanceof or))throw new rn("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var o=Object.create(Qa.prototype);return o.implicit=(this.implicit||[]).concat(n),o.explicit=(this.explicit||[]).concat(a),o.compiledImplicit=Gs(o,"implicit"),o.compiledExplicit=Gs(o,"explicit"),o.compiledTypeMap=$s(o.compiledImplicit,o.compiledExplicit),o};var Ks=Qa,Ys=new or("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),$o=new or("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Nu=new or("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Du=new Ks({explicit:[Ys,$o,Nu]});function Hc(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function Ji(){return null}function ba(e){return e===null}var Xi=new or("tag:yaml.org,2002:null",{kind:"scalar",resolve:Hc,construct:Ji,predicate:ba,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Js(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function Xs(e){return e==="true"||e==="True"||e==="TRUE"}function Bu(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Ko=new or("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Js,construct:Xs,predicate:Bu,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Qi(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Zi(e){return 48<=e&&e<=55}function dn(e){return 48<=e&&e<=57}function ki(e){if(e===null)return!1;var r=e.length,n=0,a=!1,o;if(!r)return!1;if(o=e[n],(o==="-"||o==="+")&&(o=e[++n]),o==="0"){if(n+1===r)return!0;if(o=e[++n],o==="b"){for(n++;n<r;n++)if(o=e[n],o!=="_"){if(o!=="0"&&o!=="1")return!1;a=!0}return a&&o!=="_"}if(o==="x"){for(n++;n<r;n++)if(o=e[n],o!=="_"){if(!Qi(e.charCodeAt(n)))return!1;a=!0}return a&&o!=="_"}if(o==="o"){for(n++;n<r;n++)if(o=e[n],o!=="_"){if(!Zi(e.charCodeAt(n)))return!1;a=!0}return a&&o!=="_"}}if(o==="_")return!1;for(;n<r;n++)if(o=e[n],o!=="_"){if(!dn(e.charCodeAt(n)))return!1;a=!0}return!(!a||o==="_")}function Fi(e){var r=e,n=1,a;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),a=r[0],(a==="-"||a==="+")&&(a==="-"&&(n=-1),r=r.slice(1),a=r[0]),r==="0")return 0;if(a==="0"){if(r[1]==="b")return n*parseInt(r.slice(2),2);if(r[1]==="x")return n*parseInt(r.slice(2),16);if(r[1]==="o")return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)}function Yo(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Lr.isNegativeZero(e)}var ju=new or("tag:yaml.org,2002:int",{kind:"scalar",resolve:ki,construct:Fi,predicate:Yo,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Vu=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Za(e){return!(e===null||!Vu.test(e)||e[e.length-1]==="_")}function Uu(e){var r,n;return r=e.replace(/_/g,"").toLowerCase(),n=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:n*parseFloat(r,10)}var Qs=/^[-+]?[0-9]+e/;function Jo(e,r){var n;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Lr.isNegativeZero(e))return"-0.0";return n=e.toString(10),Qs.test(n)?n.replace("e",".e"):n}function zc(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Lr.isNegativeZero(e))}var Xo=new or("tag:yaml.org,2002:float",{kind:"scalar",resolve:Za,construct:Uu,predicate:zc,represent:Jo,defaultStyle:"lowercase"}),Zs=Du.extend({implicit:[Xi,Ko,ju,Xo]}),Qo=Zs,Zo=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),_i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function _o(e){return e===null?!1:Zo.exec(e)!==null||_i.exec(e)!==null}function Wu(e){var r,n,a,o,f,d,m,g=0,b=null,x,I,N;if(r=Zo.exec(e),r===null&&(r=_i.exec(e)),r===null)throw new Error("Date resolve error");if(n=+r[1],a=+r[2]-1,o=+r[3],!r[4])return new Date(Date.UTC(n,a,o));if(f=+r[4],d=+r[5],m=+r[6],r[7]){for(g=r[7].slice(0,3);g.length<3;)g+="0";g=+g}return r[9]&&(x=+r[10],I=+(r[11]||0),b=(x*60+I)*6e4,r[9]==="-"&&(b=-b)),N=new Date(Date.UTC(n,a,o,f,d,m,g)),b&&N.setTime(N.getTime()-b),N}function qo(e){return e.toISOString()}var Hu=new or("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:_o,construct:Wu,instanceOf:Date,represent:qo});function Gc(e){return e==="<<"||e===null}var zu=new or("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Gc}),_a=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
55
|
+
\r`;function _s(e){if(e===null)return!1;var r,n,a=0,o=e.length,f=_a;for(n=0;n<o;n++)if(r=f.indexOf(e.charAt(n)),!(r>64)){if(r<0)return!1;a+=6}return a%8===0}function xa(e){var r,n,a=e.replace(/[\r\n=]/g,""),o=a.length,f=_a,d=0,m=[];for(r=0;r<o;r++)r%4===0&&r&&(m.push(d>>16&255),m.push(d>>8&255),m.push(d&255)),d=d<<6|f.indexOf(a.charAt(r));return n=o%4*6,n===0?(m.push(d>>16&255),m.push(d>>8&255),m.push(d&255)):n===18?(m.push(d>>10&255),m.push(d>>2&255)):n===12&&m.push(d>>4&255),new Uint8Array(m)}function qa(e){var r="",n=0,a,o,f=e.length,d=_a;for(a=0;a<f;a++)a%3===0&&a&&(r+=d[n>>18&63],r+=d[n>>12&63],r+=d[n>>6&63],r+=d[n&63]),n=(n<<8)+e[a];return o=f%3,o===0?(r+=d[n>>18&63],r+=d[n>>12&63],r+=d[n>>6&63],r+=d[n&63]):o===2?(r+=d[n>>10&63],r+=d[n>>4&63],r+=d[n<<2&63],r+=d[64]):o===1&&(r+=d[n>>2&63],r+=d[n<<4&63],r+=d[64],r+=d[64]),r}function $c(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var eo=new or("tag:yaml.org,2002:binary",{kind:"scalar",resolve:_s,construct:xa,predicate:$c,represent:qa}),Gu=Object.prototype.hasOwnProperty,to=Object.prototype.toString;function $u(e){if(e===null)return!0;var r=[],n,a,o,f,d,m=e;for(n=0,a=m.length;n<a;n+=1){if(o=m[n],d=!1,to.call(o)!=="[object Object]")return!1;for(f in o)if(Gu.call(o,f))if(!d)d=!0;else return!1;if(!d)return!1;if(r.indexOf(f)===-1)r.push(f);else return!1}return!0}function qi(e){return e!==null?e:[]}var Sa=new or("tag:yaml.org,2002:omap",{kind:"sequence",resolve:$u,construct:qi}),ea=Object.prototype.toString;function ro(e){if(e===null)return!0;var r,n,a,o,f,d=e;for(f=new Array(d.length),r=0,n=d.length;r<n;r+=1){if(a=d[r],ea.call(a)!=="[object Object]"||(o=Object.keys(a),o.length!==1))return!1;f[r]=[o[0],a[o[0]]]}return!0}function wa(e){if(e===null)return[];var r,n,a,o,f,d=e;for(f=new Array(d.length),r=0,n=d.length;r<n;r+=1)a=d[r],o=Object.keys(a),f[r]=[o[0],a[o[0]]];return f}var qs=new or("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ro,construct:wa}),Ku=Object.prototype.hasOwnProperty;function Yu(e){if(e===null)return!0;var r,n=e;for(r in n)if(Ku.call(n,r)&&n[r]!==null)return!1;return!0}function Kc(e){return e!==null?e:{}}var Ri=new or("tag:yaml.org,2002:set",{kind:"mapping",resolve:Yu,construct:Kc}),mi=Qo.extend({implicit:[Hu,zu],explicit:[eo,Sa,qs,Ri]}),Li=Object.prototype.hasOwnProperty,es=1,Ju=2,Xu=3,ts=4,el=1,bn=2,Or=3,nn=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Mr=/[\x85\u2028\u2029]/,no=/[,\[\]\{\}]/,Qu=/^(?:!|!!|![a-z\-]+!)$/i,io=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Zu(e){return Object.prototype.toString.call(e)}function ri(e){return e===10||e===13}function ta(e){return e===9||e===32}function an(e){return e===9||e===32||e===10||e===13}function ra(e){return e===44||e===91||e===93||e===123||e===125}function tl(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function Yc(e){return e===120?2:e===117?4:e===85?8:0}function rl(e){return 48<=e&&e<=57?e-48:-1}function rs(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
56
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function _u(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}for(var nl=new Array(256),ns=new Array(256),na=0;na<256;na++)nl[na]=rs(na)?1:0,ns[na]=rs(na);function ao(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||mi,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function qu(e,r){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=Lu(n),new rn(r,n)}function pt(e,r){throw qu(e,r)}function Rn(e,r){e.onWarning&&e.onWarning.call(null,qu(e,r))}var il={YAML:function(r,n,a){var o,f,d;r.version!==null&&pt(r,"duplication of %YAML directive"),a.length!==1&&pt(r,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(a[0]),o===null&&pt(r,"ill-formed argument of the YAML directive"),f=parseInt(o[1],10),d=parseInt(o[2],10),f!==1&&pt(r,"unacceptable YAML version of the document"),r.version=a[0],r.checkLineBreaks=d<2,d!==1&&d!==2&&Rn(r,"unsupported YAML version of the document")},TAG:function(r,n,a){var o,f;a.length!==2&&pt(r,"TAG directive accepts exactly two arguments"),o=a[0],f=a[1],Qu.test(o)||pt(r,"ill-formed tag handle (first argument) of the TAG directive"),Li.call(r.tagMap,o)&&pt(r,'there is a previously declared suffix for "'+o+'" tag handle'),io.test(f)||pt(r,"ill-formed tag prefix (second argument) of the TAG directive");try{f=decodeURIComponent(f)}catch(d){pt(r,"tag prefix is malformed: "+f)}r.tagMap[o]=f}};function Mi(e,r,n,a){var o,f,d,m;if(r<n){if(m=e.input.slice(r,n),a)for(o=0,f=m.length;o<f;o+=1)d=m.charCodeAt(o),d===9||32<=d&&d<=1114111||pt(e,"expected valid JSON character");else nn.test(m)&&pt(e,"the stream contains non-printable characters");e.result+=m}}function al(e,r,n,a){var o,f,d,m;for(Lr.isObject(n)||pt(e,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(n),d=0,m=o.length;d<m;d+=1)f=o[d],Li.call(r,f)||(r[f]=n[f],a[f]=!0)}function Ur(e,r,n,a,o,f,d,m,g){var b,x;if(Array.isArray(o))for(o=Array.prototype.slice.call(o),b=0,x=o.length;b<x;b+=1)Array.isArray(o[b])&&pt(e,"nested arrays are not supported inside keys"),typeof o=="object"&&Zu(o[b])==="[object Object]"&&(o[b]="[object Object]");if(typeof o=="object"&&Zu(o)==="[object Object]"&&(o="[object Object]"),o=String(o),r===null&&(r={}),a==="tag:yaml.org,2002:merge")if(Array.isArray(f))for(b=0,x=f.length;b<x;b+=1)al(e,r,f[b],n);else al(e,r,f,n);else!e.json&&!Li.call(n,o)&&Li.call(r,o)&&(e.line=d||e.line,e.lineStart=m||e.lineStart,e.position=g||e.position,pt(e,"duplicated mapping key")),o==="__proto__"?Object.defineProperty(r,o,{configurable:!0,enumerable:!0,writable:!0,value:f}):r[o]=f,delete n[o];return r}function Vt(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):pt(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function qt(e,r,n){for(var a=0,o=e.input.charCodeAt(e.position);o!==0;){for(;ta(o);)o===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(r&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(ri(o))for(Vt(e),o=e.input.charCodeAt(e.position),a++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return n!==-1&&a!==0&&e.lineIndent<n&&Rn(e,"deficient indentation"),a}function Yn(e){var r=e.position,n;return n=e.input.charCodeAt(r),!!((n===45||n===46)&&n===e.input.charCodeAt(r+1)&&n===e.input.charCodeAt(r+2)&&(r+=3,n=e.input.charCodeAt(r),n===0||an(n)))}function ni(e,r){r===1?e.result+=" ":r>1&&(e.result+=Lr.repeat(`
|
|
57
|
+
`,r-1))}function ef(e,r,n){var a,o,f,d,m,g,b,x,I=e.kind,N=e.result,j;if(j=e.input.charCodeAt(e.position),an(j)||ra(j)||j===35||j===38||j===42||j===33||j===124||j===62||j===39||j===34||j===37||j===64||j===96||(j===63||j===45)&&(o=e.input.charCodeAt(e.position+1),an(o)||n&&ra(o)))return!1;for(e.kind="scalar",e.result="",f=d=e.position,m=!1;j!==0;){if(j===58){if(o=e.input.charCodeAt(e.position+1),an(o)||n&&ra(o))break}else if(j===35){if(a=e.input.charCodeAt(e.position-1),an(a))break}else{if(e.position===e.lineStart&&Yn(e)||n&&ra(j))break;if(ri(j))if(g=e.line,b=e.lineStart,x=e.lineIndent,qt(e,!1,-1),e.lineIndent>=r){m=!0,j=e.input.charCodeAt(e.position);continue}else{e.position=d,e.line=g,e.lineStart=b,e.lineIndent=x;break}}m&&(Mi(e,f,d,!1),ni(e,e.line-g),f=d=e.position,m=!1),ta(j)||(d=e.position+1),j=e.input.charCodeAt(++e.position)}return Mi(e,f,d,!1),e.result?!0:(e.kind=I,e.result=N,!1)}function ol(e,r){var n,a,o;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,a=o=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Mi(e,a,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)a=e.position,e.position++,o=e.position;else return!0;else ri(n)?(Mi(e,a,o,!0),ni(e,qt(e,!1,r)),a=o=e.position):e.position===e.lineStart&&Yn(e)?pt(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);pt(e,"unexpected end of the stream within a single quoted scalar")}function tf(e,r){var n,a,o,f,d,m;if(m=e.input.charCodeAt(e.position),m!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;(m=e.input.charCodeAt(e.position))!==0;){if(m===34)return Mi(e,n,e.position,!0),e.position++,!0;if(m===92){if(Mi(e,n,e.position,!0),m=e.input.charCodeAt(++e.position),ri(m))qt(e,!1,r);else if(m<256&&nl[m])e.result+=ns[m],e.position++;else if((d=Yc(m))>0){for(o=d,f=0;o>0;o--)m=e.input.charCodeAt(++e.position),(d=tl(m))>=0?f=(f<<4)+d:pt(e,"expected hexadecimal character");e.result+=_u(f),e.position++}else pt(e,"unknown escape sequence");n=a=e.position}else ri(m)?(Mi(e,n,a,!0),ni(e,qt(e,!1,r)),n=a=e.position):e.position===e.lineStart&&Yn(e)?pt(e,"unexpected end of the document within a double quoted scalar"):(e.position++,a=e.position)}pt(e,"unexpected end of the stream within a double quoted scalar")}function Jc(e,r){var n=!0,a,o,f,d=e.tag,m,g=e.anchor,b,x,I,N,j,W=Object.create(null),ee,te,se,ie;if(ie=e.input.charCodeAt(e.position),ie===91)x=93,j=!1,m=[];else if(ie===123)x=125,j=!0,m={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=m),ie=e.input.charCodeAt(++e.position);ie!==0;){if(qt(e,!0,r),ie=e.input.charCodeAt(e.position),ie===x)return e.position++,e.tag=d,e.anchor=g,e.kind=j?"mapping":"sequence",e.result=m,!0;n?ie===44&&pt(e,"expected the node content, but found ','"):pt(e,"missed comma between flow collection entries"),te=ee=se=null,I=N=!1,ie===63&&(b=e.input.charCodeAt(e.position+1),an(b)&&(I=N=!0,e.position++,qt(e,!0,r))),a=e.line,o=e.lineStart,f=e.position,ia(e,r,es,!1,!0),te=e.tag,ee=e.result,qt(e,!0,r),ie=e.input.charCodeAt(e.position),(N||e.line===a)&&ie===58&&(I=!0,ie=e.input.charCodeAt(++e.position),qt(e,!0,r),ia(e,r,es,!1,!0),se=e.result),j?Ur(e,m,W,te,ee,se,a,o,f):I?m.push(Ur(e,null,W,te,ee,se,a,o,f)):m.push(ee),qt(e,!0,r),ie=e.input.charCodeAt(e.position),ie===44?(n=!0,ie=e.input.charCodeAt(++e.position)):n=!1}pt(e,"unexpected end of the stream within a flow collection")}function sl(e,r){var n,a,o=el,f=!1,d=!1,m=r,g=0,b=!1,x,I;if(I=e.input.charCodeAt(e.position),I===124)a=!1;else if(I===62)a=!0;else return!1;for(e.kind="scalar",e.result="";I!==0;)if(I=e.input.charCodeAt(++e.position),I===43||I===45)el===o?o=I===43?Or:bn:pt(e,"repeat of a chomping mode identifier");else if((x=rl(I))>=0)x===0?pt(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):d?pt(e,"repeat of an indentation width identifier"):(m=r+x-1,d=!0);else break;if(ta(I)){do I=e.input.charCodeAt(++e.position);while(ta(I));if(I===35)do I=e.input.charCodeAt(++e.position);while(!ri(I)&&I!==0)}for(;I!==0;){for(Vt(e),e.lineIndent=0,I=e.input.charCodeAt(e.position);(!d||e.lineIndent<m)&&I===32;)e.lineIndent++,I=e.input.charCodeAt(++e.position);if(!d&&e.lineIndent>m&&(m=e.lineIndent),ri(I)){g++;continue}if(e.lineIndent<m){o===Or?e.result+=Lr.repeat(`
|
|
58
|
+
`,f?1+g:g):o===el&&f&&(e.result+=`
|
|
59
|
+
`);break}for(a?ta(I)?(b=!0,e.result+=Lr.repeat(`
|
|
60
|
+
`,f?1+g:g)):b?(b=!1,e.result+=Lr.repeat(`
|
|
61
|
+
`,g+1)):g===0?f&&(e.result+=" "):e.result+=Lr.repeat(`
|
|
62
|
+
`,g):e.result+=Lr.repeat(`
|
|
63
|
+
`,f?1+g:g),f=!0,d=!0,g=0,n=e.position;!ri(I)&&I!==0;)I=e.input.charCodeAt(++e.position);Mi(e,n,e.position,!1)}return!0}function Aa(e,r){var n,a=e.tag,o=e.anchor,f=[],d,m=!1,g;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),g=e.input.charCodeAt(e.position);g!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,pt(e,"tab characters must not be used in indentation")),!(g!==45||(d=e.input.charCodeAt(e.position+1),!an(d))));){if(m=!0,e.position++,qt(e,!0,-1)&&e.lineIndent<=r){f.push(null),g=e.input.charCodeAt(e.position);continue}if(n=e.line,ia(e,r,Xu,!1,!0),f.push(e.result),qt(e,!0,-1),g=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>r)&&g!==0)pt(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return m?(e.tag=a,e.anchor=o,e.kind="sequence",e.result=f,!0):!1}function rf(e,r,n){var a,o,f,d,m,g,b=e.tag,x=e.anchor,I={},N=Object.create(null),j=null,W=null,ee=null,te=!1,se=!1,ie;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=I),ie=e.input.charCodeAt(e.position);ie!==0;){if(!te&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,pt(e,"tab characters must not be used in indentation")),a=e.input.charCodeAt(e.position+1),f=e.line,(ie===63||ie===58)&&an(a))ie===63?(te&&(Ur(e,I,N,j,W,null,d,m,g),j=W=ee=null),se=!0,te=!0,o=!0):te?(te=!1,o=!0):pt(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,ie=a;else{if(d=e.line,m=e.lineStart,g=e.position,!ia(e,n,Ju,!1,!0))break;if(e.line===f){for(ie=e.input.charCodeAt(e.position);ta(ie);)ie=e.input.charCodeAt(++e.position);if(ie===58)ie=e.input.charCodeAt(++e.position),an(ie)||pt(e,"a whitespace character is expected after the key-value separator within a block mapping"),te&&(Ur(e,I,N,j,W,null,d,m,g),j=W=ee=null),se=!0,te=!1,o=!1,j=e.tag,W=e.result;else if(se)pt(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=b,e.anchor=x,!0}else if(se)pt(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=b,e.anchor=x,!0}if((e.line===f||e.lineIndent>r)&&(te&&(d=e.line,m=e.lineStart,g=e.position),ia(e,r,ts,!0,o)&&(te?W=e.result:ee=e.result),te||(Ur(e,I,N,j,W,ee,d,m,g),j=W=ee=null),qt(e,!0,-1),ie=e.input.charCodeAt(e.position)),(e.line===f||e.lineIndent>r)&&ie!==0)pt(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return te&&Ur(e,I,N,j,W,null,d,m,g),se&&(e.tag=b,e.anchor=x,e.kind="mapping",e.result=I),se}function ll(e){var r,n=!1,a=!1,o,f,d;if(d=e.input.charCodeAt(e.position),d!==33)return!1;if(e.tag!==null&&pt(e,"duplication of a tag property"),d=e.input.charCodeAt(++e.position),d===60?(n=!0,d=e.input.charCodeAt(++e.position)):d===33?(a=!0,o="!!",d=e.input.charCodeAt(++e.position)):o="!",r=e.position,n){do d=e.input.charCodeAt(++e.position);while(d!==0&&d!==62);e.position<e.length?(f=e.input.slice(r,e.position),d=e.input.charCodeAt(++e.position)):pt(e,"unexpected end of the stream within a verbatim tag")}else{for(;d!==0&&!an(d);)d===33&&(a?pt(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(r-1,e.position+1),Qu.test(o)||pt(e,"named tag handle cannot contain such characters"),a=!0,r=e.position+1)),d=e.input.charCodeAt(++e.position);f=e.input.slice(r,e.position),no.test(f)&&pt(e,"tag suffix cannot contain flow indicator characters")}f&&!io.test(f)&&pt(e,"tag name cannot contain such characters: "+f);try{f=decodeURIComponent(f)}catch(m){pt(e,"tag name is malformed: "+f)}return n?e.tag=f:Li.call(e.tagMap,o)?e.tag=e.tagMap[o]+f:o==="!"?e.tag="!"+f:o==="!!"?e.tag="tag:yaml.org,2002:"+f:pt(e,'undeclared tag handle "'+o+'"'),!0}function Ni(e){var r,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&pt(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!an(n)&&!ra(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&pt(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function nf(e){var r,n,a;if(a=e.input.charCodeAt(e.position),a!==42)return!1;for(a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!an(a)&&!ra(a);)a=e.input.charCodeAt(++e.position);return e.position===r&&pt(e,"name of an alias node must contain at least one character"),n=e.input.slice(r,e.position),Li.call(e.anchorMap,n)||pt(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],qt(e,!0,-1),!0}function ia(e,r,n,a,o){var f,d,m,g=1,b=!1,x=!1,I,N,j,W,ee,te;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,f=d=m=ts===n||Xu===n,a&&qt(e,!0,-1)&&(b=!0,e.lineIndent>r?g=1:e.lineIndent===r?g=0:e.lineIndent<r&&(g=-1)),g===1)for(;ll(e)||Ni(e);)qt(e,!0,-1)?(b=!0,m=f,e.lineIndent>r?g=1:e.lineIndent===r?g=0:e.lineIndent<r&&(g=-1)):m=!1;if(m&&(m=b||o),(g===1||ts===n)&&(es===n||Ju===n?ee=r:ee=r+1,te=e.position-e.lineStart,g===1?m&&(Aa(e,te)||rf(e,te,ee))||Jc(e,ee)?x=!0:(d&&sl(e,ee)||ol(e,ee)||tf(e,ee)?x=!0:nf(e)?(x=!0,(e.tag!==null||e.anchor!==null)&&pt(e,"alias node should not have any properties")):ef(e,ee,es===n)&&(x=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):g===0&&(x=m&&Aa(e,te))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&pt(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),I=0,N=e.implicitTypes.length;I<N;I+=1)if(W=e.implicitTypes[I],W.resolve(e.result)){e.result=W.construct(e.result),e.tag=W.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Li.call(e.typeMap[e.kind||"fallback"],e.tag))W=e.typeMap[e.kind||"fallback"][e.tag];else for(W=null,j=e.typeMap.multi[e.kind||"fallback"],I=0,N=j.length;I<N;I+=1)if(e.tag.slice(0,j[I].tag.length)===j[I].tag){W=j[I];break}W||pt(e,"unknown tag !<"+e.tag+">"),e.result!==null&&W.kind!==e.kind&&pt(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+W.kind+'", not "'+e.kind+'"'),W.resolve(e.result,e.tag)?(e.result=W.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):pt(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||x}function Xc(e){var r=e.position,n,a,o,f=!1,d;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(d=e.input.charCodeAt(e.position))!==0&&(qt(e,!0,-1),d=e.input.charCodeAt(e.position),!(e.lineIndent>0||d!==37));){for(f=!0,d=e.input.charCodeAt(++e.position),n=e.position;d!==0&&!an(d);)d=e.input.charCodeAt(++e.position);for(a=e.input.slice(n,e.position),o=[],a.length<1&&pt(e,"directive name must not be less than one character in length");d!==0;){for(;ta(d);)d=e.input.charCodeAt(++e.position);if(d===35){do d=e.input.charCodeAt(++e.position);while(d!==0&&!ri(d));break}if(ri(d))break;for(n=e.position;d!==0&&!an(d);)d=e.input.charCodeAt(++e.position);o.push(e.input.slice(n,e.position))}d!==0&&Vt(e),Li.call(il,a)?il[a](e,a,o):Rn(e,'unknown document directive "'+a+'"')}if(qt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,qt(e,!0,-1)):f&&pt(e,"directives end mark is expected"),ia(e,e.lineIndent-1,ts,!1,!0),qt(e,!0,-1),e.checkLineBreaks&&Mr.test(e.input.slice(r,e.position))&&Rn(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Yn(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,qt(e,!0,-1));return}if(e.position<e.length-1)pt(e,"end of the stream or a document separator is expected");else return}function oo(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
64
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new ao(e,r),a=e.indexOf("\0");for(a!==-1&&(n.position=a,pt(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Xc(n);return n.documents}function ul(e,r,n){r!==null&&typeof r=="object"&&typeof n=="undefined"&&(n=r,r=null);var a=oo(e,n);if(typeof r!="function")return a;for(var o=0,f=a.length;o<f;o+=1)r(a[o])}function af(e,r){var n=oo(e,r);if(n.length!==0){if(n.length===1)return n[0];throw new rn("expected a single document in the stream, but found more")}}var Qc=ul,of=af,sf={loadAll:Qc,load:of},lf=Object.prototype.toString,so=Object.prototype.hasOwnProperty,is=65279,Zc=9,lo=10,uf=13,Ca=32,fl=33,as=34,os=35,cl=37,ff=38,_c=39,cf=42,Wr=44,ss=45,uo=58,df=61,pf=62,Ea=63,ls=64,dl=91,pl=93,hf=96,aa=123,vf=124,fo=125,Xr={};Xr[0]="\\0",Xr[7]="\\a",Xr[8]="\\b",Xr[9]="\\t",Xr[10]="\\n",Xr[11]="\\v",Xr[12]="\\f",Xr[13]="\\r",Xr[27]="\\e",Xr[34]='\\"',Xr[92]="\\\\",Xr[133]="\\N",Xr[160]="\\_",Xr[8232]="\\L",Xr[8233]="\\P";var co=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],qc=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Oa(e,r){var n,a,o,f,d,m,g;if(r===null)return{};for(n={},a=Object.keys(r),o=0,f=a.length;o<f;o+=1)d=a[o],m=String(r[d]),d.slice(0,2)==="!!"&&(d="tag:yaml.org,2002:"+d.slice(2)),g=e.compiledTypeMap.fallback[d],g&&so.call(g.styleAliases,m)&&(m=g.styleAliases[m]),n[d]=m;return n}function gf(e){var r,n,a;if(r=e.toString(16).toUpperCase(),e<=255)n="x",a=2;else if(e<=65535)n="u",a=4;else if(e<=4294967295)n="U",a=8;else throw new rn("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Lr.repeat("0",a-r.length)+r}var mf=1,Ta=2;function po(e){this.schema=e.schema||mi,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Lr.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Oa(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Ta:mf,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Pa(e,r){for(var n=Lr.repeat(" ",r),a=0,o=-1,f="",d,m=e.length;a<m;)o=e.indexOf(`
|
|
65
|
+
`,a),o===-1?(d=e.slice(a),a=m):(d=e.slice(a,o+1),a=o+1),d.length&&d!==`
|
|
66
|
+
`&&(f+=n),f+=d;return f}function oa(e,r){return`
|
|
67
|
+
`+Lr.repeat(" ",e.indent*r)}function ho(e,r){var n,a,o;for(n=0,a=e.implicitTypes.length;n<a;n+=1)if(o=e.implicitTypes[n],o.resolve(r))return!0;return!1}function vo(e){return e===Ca||e===Zc}function go(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==is||65536<=e&&e<=1114111}function hl(e){return go(e)&&e!==is&&e!==uf&&e!==lo}function yi(e,r,n){var a=hl(e),o=a&&!vo(e);return(n?a:a&&e!==Wr&&e!==dl&&e!==pl&&e!==aa&&e!==fo)&&e!==os&&!(r===uo&&!o)||hl(r)&&!vo(r)&&e===os||r===uo&&o}function Ia(e){return go(e)&&e!==is&&!vo(e)&&e!==ss&&e!==Ea&&e!==uo&&e!==Wr&&e!==dl&&e!==pl&&e!==aa&&e!==fo&&e!==os&&e!==ff&&e!==cf&&e!==fl&&e!==vf&&e!==df&&e!==pf&&e!==_c&&e!==as&&e!==cl&&e!==ls&&e!==hf}function mo(e){return!vo(e)&&e!==uo}function yo(e,r){var n=e.charCodeAt(r),a;return n>=55296&&n<=56319&&r+1<e.length&&(a=e.charCodeAt(r+1),a>=56320&&a<=57343)?(n-55296)*1024+a-56320+65536:n}function vl(e){var r=/^\n* /;return r.test(e)}var yf=1,gl=2,bf=3,on=4,sa=5;function ed(e,r,n,a,o,f,d,m){var g,b=0,x=null,I=!1,N=!1,j=a!==-1,W=-1,ee=Ia(yo(e,0))&&mo(yo(e,e.length-1));if(r||d)for(g=0;g<e.length;b>=65536?g+=2:g++){if(b=yo(e,g),!go(b))return sa;ee=ee&&yi(b,x,m),x=b}else{for(g=0;g<e.length;b>=65536?g+=2:g++){if(b=yo(e,g),b===lo)I=!0,j&&(N=N||g-W-1>a&&e[W+1]!==" ",W=g);else if(!go(b))return sa;ee=ee&&yi(b,x,m),x=b}N=N||j&&g-W-1>a&&e[W+1]!==" "}return!I&&!N?ee&&!d&&!o(e)?yf:f===Ta?sa:gl:n>9&&vl(e)?sa:d?f===Ta?sa:gl:N?on:bf}function td(e,r,n,a,o){e.dump=function(){if(r.length===0)return e.quotingType===Ta?'""':"''";if(!e.noCompatMode&&(co.indexOf(r)!==-1||qc.test(r)))return e.quotingType===Ta?'"'+r+'"':"'"+r+"'";var f=e.indent*Math.max(1,n),d=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-f),m=a||e.flowLevel>-1&&n>=e.flowLevel;function g(b){return ho(e,b)}switch(ed(r,m,e.indent,d,g,e.quotingType,e.forceQuotes&&!a,o)){case yf:return r;case gl:return"'"+r.replace(/'/g,"''")+"'";case bf:return"|"+xf(r,e.indent)+ml(Pa(r,f));case on:return">"+xf(r,e.indent)+ml(Pa(Sf(r,d),f));case sa:return'"'+rd(r)+'"';default:throw new rn("impossible error: invalid scalar style")}}()}function xf(e,r){var n=vl(e)?String(r):"",a=e[e.length-1]===`
|
|
68
|
+
`,o=a&&(e[e.length-2]===`
|
|
69
|
+
`||e===`
|
|
70
|
+
`),f=o?"+":a?"":"-";return n+f+`
|
|
71
|
+
`}function ml(e){return e[e.length-1]===`
|
|
72
|
+
`?e.slice(0,-1):e}function Sf(e,r){for(var n=/(\n+)([^\n]*)/g,a=function(){var b=e.indexOf(`
|
|
73
|
+
`);return b=b!==-1?b:e.length,n.lastIndex=b,yl(e.slice(0,b),r)}(),o=e[0]===`
|
|
74
|
+
`||e[0]===" ",f,d;d=n.exec(e);){var m=d[1],g=d[2];f=g[0]===" ",a+=m+(!o&&!f&&g!==""?`
|
|
75
|
+
`:"")+yl(g,r),o=f}return a}function yl(e,r){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,a,o=0,f,d=0,m=0,g="";a=n.exec(e);)m=a.index,m-o>r&&(f=d>o?d:m,g+=`
|
|
76
|
+
`+e.slice(o,f),o=f+1),d=m;return g+=`
|
|
77
|
+
`,e.length-o>r&&d>o?g+=e.slice(o,d)+`
|
|
78
|
+
`+e.slice(d+1):g+=e.slice(o),g.slice(1)}function rd(e){for(var r="",n=0,a,o=0;o<e.length;n>=65536?o+=2:o++)n=yo(e,o),a=Xr[n],!a&&go(n)?(r+=e[o],n>=65536&&(r+=e[o+1])):r+=a||gf(n);return r}function nd(e,r,n){var a="",o=e.tag,f,d,m;for(f=0,d=n.length;f<d;f+=1)m=n[f],e.replacer&&(m=e.replacer.call(n,String(f),m)),(On(e,r,m,!1,!1)||typeof m=="undefined"&&On(e,r,null,!1,!1))&&(a!==""&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=o,e.dump="["+a+"]"}function wf(e,r,n,a){var o="",f=e.tag,d,m,g;for(d=0,m=n.length;d<m;d+=1)g=n[d],e.replacer&&(g=e.replacer.call(n,String(d),g)),(On(e,r+1,g,!0,!0,!1,!0)||typeof g=="undefined"&&On(e,r+1,null,!0,!0,!1,!0))&&((!a||o!=="")&&(o+=oa(e,r)),e.dump&&lo===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=f,e.dump=o||"[]"}function Di(e,r,n){var a="",o=e.tag,f=Object.keys(n),d,m,g,b,x;for(d=0,m=f.length;d<m;d+=1)x="",a!==""&&(x+=", "),e.condenseFlow&&(x+='"'),g=f[d],b=n[g],e.replacer&&(b=e.replacer.call(n,g,b)),On(e,r,g,!1,!1)&&(e.dump.length>1024&&(x+="? "),x+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),On(e,r,b,!1,!1)&&(x+=e.dump,a+=x));e.tag=o,e.dump="{"+a+"}"}function bo(e,r,n,a){var o="",f=e.tag,d=Object.keys(n),m,g,b,x,I,N;if(e.sortKeys===!0)d.sort();else if(typeof e.sortKeys=="function")d.sort(e.sortKeys);else if(e.sortKeys)throw new rn("sortKeys must be a boolean or a function");for(m=0,g=d.length;m<g;m+=1)N="",(!a||o!=="")&&(N+=oa(e,r)),b=d[m],x=n[b],e.replacer&&(x=e.replacer.call(n,b,x)),On(e,r+1,b,!0,!0,!0)&&(I=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,I&&(e.dump&&lo===e.dump.charCodeAt(0)?N+="?":N+="? "),N+=e.dump,I&&(N+=oa(e,r)),On(e,r+1,x,!0,I)&&(e.dump&&lo===e.dump.charCodeAt(0)?N+=":":N+=": ",N+=e.dump,o+=N));e.tag=f,e.dump=o||"{}"}function xo(e,r,n){var a,o,f,d,m,g;for(o=n?e.explicitTypes:e.implicitTypes,f=0,d=o.length;f<d;f+=1)if(m=o[f],(m.instanceOf||m.predicate)&&(!m.instanceOf||typeof r=="object"&&r instanceof m.instanceOf)&&(!m.predicate||m.predicate(r))){if(n?m.multi&&m.representName?e.tag=m.representName(r):e.tag=m.tag:e.tag="?",m.represent){if(g=e.styleMap[m.tag]||m.defaultStyle,lf.call(m.represent)==="[object Function]")a=m.represent(r,g);else if(so.call(m.represent,g))a=m.represent[g](r,g);else throw new rn("!<"+m.tag+'> tag resolver accepts not "'+g+'" style');e.dump=a}return!0}return!1}function On(e,r,n,a,o,f,d){e.tag=null,e.dump=n,xo(e,n,!1)||xo(e,n,!0);var m=lf.call(e.dump),g=a,b;a&&(a=e.flowLevel<0||e.flowLevel>r);var x=m==="[object Object]"||m==="[object Array]",I,N;if(x&&(I=e.duplicates.indexOf(n),N=I!==-1),(e.tag!==null&&e.tag!=="?"||N||e.indent!==2&&r>0)&&(o=!1),N&&e.usedDuplicates[I])e.dump="*ref_"+I;else{if(x&&N&&!e.usedDuplicates[I]&&(e.usedDuplicates[I]=!0),m==="[object Object]")a&&Object.keys(e.dump).length!==0?(bo(e,r,e.dump,o),N&&(e.dump="&ref_"+I+e.dump)):(Di(e,r,e.dump),N&&(e.dump="&ref_"+I+" "+e.dump));else if(m==="[object Array]")a&&e.dump.length!==0?(e.noArrayIndent&&!d&&r>0?wf(e,r-1,e.dump,o):wf(e,r,e.dump,o),N&&(e.dump="&ref_"+I+e.dump)):(nd(e,r,e.dump),N&&(e.dump="&ref_"+I+" "+e.dump));else if(m==="[object String]")e.tag!=="?"&&td(e,e.dump,r,f,g);else{if(m==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new rn("unacceptable kind of an object to dump "+m)}e.tag!==null&&e.tag!=="?"&&(b=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?b="!"+b:b.slice(0,18)==="tag:yaml.org,2002:"?b="!!"+b.slice(18):b="!<"+b+">",e.dump=b+" "+e.dump)}return!0}function bi(e,r){var n=[],a=[],o,f;for(bl(e,n,a),o=0,f=a.length;o<f;o+=1)r.duplicates.push(n[a[o]]);r.usedDuplicates=new Array(f)}function bl(e,r,n){var a,o,f;if(e!==null&&typeof e=="object")if(o=r.indexOf(e),o!==-1)n.indexOf(o)===-1&&n.push(o);else if(r.push(e),Array.isArray(e))for(o=0,f=e.length;o<f;o+=1)bl(e[o],r,n);else for(a=Object.keys(e),o=0,f=a.length;o<f;o+=1)bl(e[a[o]],r,n)}function id(e,r){r=r||{};var n=new po(r);n.noRefs||bi(e,n);var a=e;return n.replacer&&(a=n.replacer.call({"":a},"",a)),On(n,0,a,!0,!0)?n.dump+`
|
|
79
|
+
`:""}var ka=id,Af={dump:ka};function us(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var Cf=or,fs=Ks,Fa=Du,xl=Zs,Sl=Qo,wl=mi,ad=sf.load,So=sf.loadAll,Ef=Af.dump,od=rn,Of={binary:eo,float:Xo,map:Nu,null:Xi,pairs:qs,set:Ri,timestamp:Hu,bool:Ko,int:ju,merge:zu,omap:Sa,seq:$o,str:Ys},cs=us("safeLoad","load"),sd=us("safeLoadAll","loadAll"),ld=us("safeDump","dump"),wo={Type:Cf,Schema:fs,FAILSAFE_SCHEMA:Fa,JSON_SCHEMA:xl,CORE_SCHEMA:Sl,DEFAULT_SCHEMA:wl,load:ad,loadAll:So,dump:Ef,YAMLException:od,types:Of,safeLoad:cs,safeLoadAll:sd,safeDump:ld};const Al=wo,Tf=function(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:window}(),{FormData:Pf,Blob:Ra,File:Cl}=Tf;function ud(e){if(Ds(e))return Bs(e)}function If(e){if(typeof vi!="undefined"&&Ti(e)!=null||e["@@iterator"]!=null)return xu(e)}function kf(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
80
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function la(e){return ud(e)||If(e)||Uo(e)||kf()}var El=s(71488),pn=s.n(El),Ao=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},fd=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function ua(e){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.escape,o=arguments.length>2?arguments[2]:void 0;return typeof e=="number"&&(e=e.toString()),typeof e!="string"||!e.length||!a?e:o?JSON.parse(e):$t()(r=la(e)).call(r,function(f){var d,m;if(fd(f)||Ao(f)&&a==="unsafe")return f;var g=new TextEncoder,b=$t()(d=$t()(m=ma()(g.encode(f))).call(m,function(x){var I;return pn()(I="0".concat(x.toString(16).toUpperCase())).call(I,-2)})).call(d,function(x){return"%".concat(x)}).join("");return b}).join("")}function Ol(e){var r=e.value;return Array.isArray(r)?cd(e):ar(r)==="object"?dd(e):pd(e)}function cd(e){var r=e.key,n=e.value,a=e.style,o=e.explode,f=e.escape,d=function(I){return ua(I,{escape:f})};if(a==="simple")return $t()(n).call(n,function(x){return d(x)}).join(",");if(a==="label")return".".concat($t()(n).call(n,function(x){return d(x)}).join("."));if(a==="matrix")return $t()(n).call(n,function(x){return d(x)}).reduce(function(x,I){var N;if(!x||o){var j,W;return ut()(j=ut()(W="".concat(x||"",";")).call(W,r,"=")).call(j,I)}return ut()(N="".concat(x,",")).call(N,I)},"");if(a==="form"){var m=o?"&".concat(r,"="):",";return $t()(n).call(n,function(x){return d(x)}).join(m)}if(a==="spaceDelimited"){var g=o?"".concat(r,"="):"";return $t()(n).call(n,function(x){return d(x)}).join(" ".concat(g))}if(a==="pipeDelimited"){var b=o?"".concat(r,"="):"";return $t()(n).call(n,function(x){return d(x)}).join("|".concat(b))}}function dd(e){var r=e.key,n=e.value,a=e.style,o=e.explode,f=e.escape,d=function(b){return ua(b,{escape:f})},m=Kt()(n);if(a==="simple")return m.reduce(function(g,b){var x,I,N,j=d(n[b]),W=o?"=":",",ee=g?"".concat(g,","):"";return ut()(x=ut()(I=ut()(N="".concat(ee)).call(N,b)).call(I,W)).call(x,j)},"");if(a==="label")return m.reduce(function(g,b){var x,I,N,j=d(n[b]),W=o?"=":".",ee=g?"".concat(g,"."):".";return ut()(x=ut()(I=ut()(N="".concat(ee)).call(N,b)).call(I,W)).call(x,j)},"");if(a==="matrix"&&o)return m.reduce(function(g,b){var x,I,N=d(n[b]),j=g?"".concat(g,";"):";";return ut()(x=ut()(I="".concat(j)).call(I,b,"=")).call(x,N)},"");if(a==="matrix")return m.reduce(function(g,b){var x,I,N=d(n[b]),j=g?"".concat(g,","):";".concat(r,"=");return ut()(x=ut()(I="".concat(j)).call(I,b,",")).call(x,N)},"");if(a==="form")return m.reduce(function(g,b){var x,I,N,j,W=d(n[b]),ee=g?ut()(x="".concat(g)).call(x,o?"&":","):"",te=o?"=":",";return ut()(I=ut()(N=ut()(j="".concat(ee)).call(j,b)).call(N,te)).call(I,W)},"")}function pd(e){var r=e.key,n=e.value,a=e.style,o=e.escape,f=function(g){return ua(g,{escape:o})};if(a==="simple")return f(n);if(a==="label")return".".concat(f(n));if(a==="matrix"){var d;return ut()(d=";".concat(r,"=")).call(d,f(n))}if(a==="form")return f(n);if(a==="deepObject")return f(n,{},!0)}var Ff=function(r,n){n.body=r};const hd=Ff;var Tl={serializeRes:Pl,mergeInQueryOrForm:Ln};function Co(e){return Eo.apply(this,arguments)}function Eo(){return Eo=Ii(ei().mark(function e(r){var n,a,o,f,d,m=arguments;return ei().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(n=m.length>1&&m[1]!==void 0?m[1]:{},ar(r)==="object"&&(n=r,r=n.url),n.headers=n.headers||{},Tl.mergeInQueryOrForm(n),n.headers&&Kt()(n.headers).forEach(function(x){var I=n.headers[x];typeof I=="string"&&(n.headers[x]=I.replace(/\n+/g," "))}),!n.requestInterceptor){b.next=12;break}return b.next=8,n.requestInterceptor(n);case 8:if(b.t0=b.sent,b.t0){b.next=11;break}b.t0=n;case 11:n=b.t0;case 12:return a=n.headers["content-type"]||n.headers["Content-Type"],/multipart\/form-data/i.test(a)&&n.body instanceof Pf&&(delete n.headers["content-type"],delete n.headers["Content-Type"]),b.prev=14,b.next=17,(n.userFetch||fetch)(n.url,n);case 17:return o=b.sent,b.next=20,Tl.serializeRes(o,r,n);case 20:if(o=b.sent,!n.responseInterceptor){b.next=28;break}return b.next=24,n.responseInterceptor(o);case 24:if(b.t1=b.sent,b.t1){b.next=27;break}b.t1=o;case 27:o=b.t1;case 28:b.next=39;break;case 30:if(b.prev=30,b.t2=b.catch(14),o){b.next=34;break}throw b.t2;case 34:throw f=new Error(o.statusText||"response status is ".concat(o.status)),f.status=o.status,f.statusCode=o.status,f.responseError=b.t2,f;case 39:if(o.ok){b.next=45;break}throw d=new Error(o.statusText||"response status is ".concat(o.status)),d.status=o.status,d.statusCode=o.status,d.response=o,d;case 45:return b.abrupt("return",o);case 46:case"end":return b.stop()}},e,null,[[14,30]])})),Eo.apply(this,arguments)}var Rf=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(r)};function vd(e,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(e):Al.load(e)}function Pl(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.loadSpec,o=a===void 0?!1:a,f={ok:e.ok,url:e.url||r,status:e.status,statusText:e.statusText,headers:Il(e.headers)},d=f.headers["content-type"],m=o||Rf(d),g=m?e.text:e.blob||e.buffer;return g.call(e).then(function(b){if(f.text=b,f.data=b,m)try{var x=vd(b,d);f.body=x,f.obj=x}catch(I){f.parseError=I}return f})}function La(e){var r=gi()(e).call(e,", ");return r?e.split(", "):e}function Il(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return typeof wu()(e)!="function"?{}:ma()(wu()(e).call(e)).reduce(function(r,n){var a=$n(n,2),o=a[0],f=a[1];return r[o]=La(f),r},{})}function Ma(e,r){return!r&&typeof navigator!="undefined"&&(r=navigator),r&&r.product==="ReactNative"?!!(e&&ar(e)==="object"&&typeof e.uri=="string"):typeof Cl!="undefined"&&e instanceof Cl||typeof Ra!="undefined"&&e instanceof Ra||ArrayBuffer.isView(e)?!0:e!==null&&ar(e)==="object"&&typeof e.pipe=="function"}function Lf(e,r){return Array.isArray(e)&&e.some(function(n){return Ma(n,r)})}var gd={form:",",spaceDelimited:"%20",pipeDelimited:"|"},md={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function ur(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=r.collectionFormat,o=r.allowEmptyValue,f=r.serializationOption,d=r.encoding,m=ar(r)==="object"&&!Array.isArray(r)?r.value:r,g=n?function(W){return W.toString()}:function(W){return encodeURIComponent(W)},b=g(e);if(typeof m=="undefined"&&o)return[[b,""]];if(Ma(m)||Lf(m))return[[b,m]];if(f)return Mf(e,m,n,f);if(d){if([ar(d.style),ar(d.explode),ar(d.allowReserved)].some(function(W){return W!=="undefined"})){var x=d.style,I=d.explode,N=d.allowReserved;return Mf(e,m,n,{style:x,explode:I,allowReserved:N})}if(d.contentType){if(d.contentType==="application/json"){var j=typeof m=="string"?m:Ya()(m);return[[b,g(j)]]}return[[b,g(m.toString())]]}return ar(m)!=="object"?[[b,g(m)]]:Array.isArray(m)&&m.every(function(W){return ar(W)!=="object"})?[[b,$t()(m).call(m,g).join(",")]]:[[b,g(Ya()(m))]]}return ar(m)!=="object"?[[b,g(m)]]:Array.isArray(m)?a==="multi"?[[b,$t()(m).call(m,g)]]:[[b,$t()(m).call(m,g).join(md[a||"csv"])]]:[[b,""]]}function Mf(e,r,n,a){var o,f=a.style||"form",d=typeof a.explode=="undefined"?f==="form":a.explode,m=n?!1:a&&a.allowReserved?"unsafe":"reserved",g=function(j){return ua(j,{escape:m})},b=n?function(N){return N}:function(N){return ua(N,{escape:m})};if(ar(r)!=="object")return[[b(e),g(r)]];if(Array.isArray(r))return d?[[b(e),$t()(r).call(r,g)]]:[[b(e),$t()(r).call(r,g).join(gd[f])]];if(f==="deepObject"){var x;return $t()(x=Kt()(r)).call(x,function(N){var j;return[b(ut()(j="".concat(e,"[")).call(j,N,"]")),g(r[N])]})}if(d){var I;return $t()(I=Kt()(r)).call(I,function(N){return[b(N),g(r[N])]})}return[[b(e),$t()(o=Kt()(r)).call(o,function(N){var j;return[ut()(j="".concat(b(N),",")).call(j,g(r[N]))]}).join(",")]]}function kl(e){return Ou()(e).reduce(function(r,n){var a=$n(n,2),o=a[0],f=a[1],d=Pi(ur(o,f,!0)),m;try{for(d.s();!(m=d.n()).done;){var g=$n(m.value,2),b=g[0],x=g[1];if(Array.isArray(x)){var I=Pi(x),N;try{for(I.s();!(N=I.n()).done;){var j=N.value;if(ArrayBuffer.isView(j)){var W=new Ra([j]);r.append(b,W)}else r.append(b,j)}}catch(te){I.e(te)}finally{I.f()}}else if(ArrayBuffer.isView(x)){var ee=new Ra([x]);r.append(b,ee)}else r.append(b,x)}}catch(te){d.e(te)}finally{d.f()}return r},new Pf)}function Na(e){var r=Kt()(e).reduce(function(n,a){var o=Pi(ur(a,e[a])),f;try{for(o.s();!(f=o.n()).done;){var d=$n(f.value,2),m=d[0],g=d[1];n[m]=g}}catch(b){o.e(b)}finally{o.f()}return n},{});return Wo().stringify(r,{encode:!1,indices:!1})||""}function Ln(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.url,n=r===void 0?"":r,a=e.query,o=e.form,f=function(){for(var ie=arguments.length,de=new Array(ie),we=0;we<ie;we++)de[we]=arguments[we];var xe=Er()(de).call(de,function(Ee){return Ee}).join("&");return xe?"?".concat(xe):""};if(o){var d=Kt()(o).some(function(se){var ie=o[se].value;return Ma(ie)||Lf(ie)}),m=e.headers["content-type"]||e.headers["Content-Type"];if(d||/multipart\/form-data/i.test(m)){var g=kl(e.form);hd(g,e)}else e.body=Na(o);delete e.form}if(a){var b=n.split("?"),x=$n(b,2),I=x[0],N=x[1],j="";if(N){var W=Wo().parse(N),ee=Kt()(a);ee.forEach(function(se){return delete W[se]}),j=Wo().stringify(W,{encode:!0})}var te=f(j,Na(a));e.url=I+te,delete e.query}return e}function ds(e,r,n){return n=n||function(a){return a},r=r||function(a){return a},function(a){return typeof a=="string"&&(a={url:a}),Tl.mergeInQueryOrForm(a),a=r(a),n(e(a))}}function ps(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Fl(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),yn(e,a.key,a)}}function Rl(e,r,n){return r&&Fl(e.prototype,r),n&&Fl(e,n),yn(e,"prototype",{writable:!1}),e}var Nf=s(35784),Df=s.n(Nf),Bf=s(22583),fa=s.n(Bf),Ll=s(93963),jf=s.n(Ll);/*!
|
|
81
|
+
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
82
|
+
* (c) 2017-2022 Joachim Wester
|
|
83
|
+
* MIT licensed
|
|
84
|
+
*/var er=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,o){a.__proto__=o}||function(a,o){for(var f in o)o.hasOwnProperty(f)&&(a[f]=o[f])},e(r,n)};return function(r,n){e(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Vf=Object.prototype.hasOwnProperty;function hs(e,r){return Vf.call(e,r)}function Bi(e){if(Array.isArray(e)){for(var r=new Array(e.length),n=0;n<r.length;n++)r[n]=""+n;return r}if(Object.keys)return Object.keys(e);var a=[];for(var o in e)hs(e,o)&&a.push(o);return a}function Tn(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Da(e){for(var r=0,n=e.length,a;r<n;){if(a=e.charCodeAt(r),a>=48&&a<=57){r++;continue}return!1}return!0}function xi(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function vr(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Uf(e,r){var n;for(var a in e)if(hs(e,a)){if(e[a]===r)return xi(a)+"/";if(typeof e[a]=="object"&&(n=Uf(e[a],r),n!=""))return xi(a)+"/"+n}return""}function xp(e,r){if(e===r)return"/";var n=Uf(e,r);if(n==="")throw new Error("Object not found in root");return"/"+n}function Ml(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var r=0,n=e.length;r<n;r++)if(Ml(e[r]))return!0}else if(typeof e=="object"){for(var a=Bi(e),o=a.length,f=0;f<o;f++)if(Ml(e[a[f]]))return!0}}return!1}function Oo(e,r){var n=[e];for(var a in r){var o=typeof r[a]=="object"?JSON.stringify(r[a],null,2):r[a];typeof o!="undefined"&&n.push(a+": "+o)}return n.join(`
|
|
85
|
+
`)}var t=function(e){er(r,e);function r(n,a,o,f,d){var m=this.constructor,g=e.call(this,Oo(n,{name:a,index:o,operation:f,tree:d}))||this;return g.name=a,g.index=o,g.operation=f,g.tree=d,Object.setPrototypeOf(g,m.prototype),g.message=Oo(n,{name:a,index:o,operation:f,tree:d}),g}return r}(Error),i=t,u=Tn,l={add:function(e,r,n){return e[r]=this.value,{newDocument:n}},remove:function(e,r,n){var a=e[r];return delete e[r],{newDocument:n,removed:a}},replace:function(e,r,n){var a=e[r];return e[r]=this.value,{newDocument:n,removed:a}},move:function(e,r,n){var a=y(n,this.path);a&&(a=Tn(a));var o=w(n,{op:"remove",path:this.from}).removed;return w(n,{op:"add",path:this.path,value:o}),{newDocument:n,removed:a}},copy:function(e,r,n){var a=y(n,this.from);return w(n,{op:"add",path:this.path,value:Tn(a)}),{newDocument:n}},test:function(e,r,n){return{newDocument:n,test:ce(e[r],this.value)}},_get:function(e,r,n){return this.value=e[r],{newDocument:n}}},c={add:function(e,r,n){return Da(r)?e.splice(r,0,this.value):e[r]=this.value,{newDocument:n,index:r}},remove:function(e,r,n){var a=e.splice(r,1);return{newDocument:n,removed:a[0]}},replace:function(e,r,n){var a=e[r];return e[r]=this.value,{newDocument:n,removed:a}},move:l.move,copy:l.copy,test:l.test,_get:l._get};function y(e,r){if(r=="")return e;var n={op:"_get",path:r};return w(e,n),n.value}function w(e,r,n,a,o,f){if(n===void 0&&(n=!1),a===void 0&&(a=!0),o===void 0&&(o=!0),f===void 0&&(f=0),n&&(typeof n=="function"?n(r,0,e,r.path):V(r,0)),r.path===""){var d={newDocument:e};if(r.op==="add")return d.newDocument=r.value,d;if(r.op==="replace")return d.newDocument=r.value,d.removed=e,d;if(r.op==="move"||r.op==="copy")return d.newDocument=y(e,r.from),r.op==="move"&&(d.removed=e),d;if(r.op==="test"){if(d.test=ce(e,r.value),d.test===!1)throw new i("Test operation failed","TEST_OPERATION_FAILED",f,r,e);return d.newDocument=e,d}else{if(r.op==="remove")return d.removed=e,d.newDocument=null,d;if(r.op==="_get")return r.value=e,d;if(n)throw new i("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",f,r,e);return d}}else{a||(e=Tn(e));var m=r.path||"",g=m.split("/"),b=e,x=1,I=g.length,N=void 0,j=void 0,W=void 0;for(typeof n=="function"?W=n:W=V;;){if(j=g[x],j&&j.indexOf("~")!=-1&&(j=vr(j)),o&&(j=="__proto__"||j=="prototype"&&x>0&&g[x-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&N===void 0&&(b[j]===void 0?N=g.slice(0,x).join("/"):x==I-1&&(N=r.path),N!==void 0&&W(r,0,e,N)),x++,Array.isArray(b)){if(j==="-")j=b.length;else{if(n&&!Da(j))throw new i("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",f,r,e);Da(j)&&(j=~~j)}if(x>=I){if(n&&r.op==="add"&&j>b.length)throw new i("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",f,r,e);var d=c[r.op].call(r,b,j,e);if(d.test===!1)throw new i("Test operation failed","TEST_OPERATION_FAILED",f,r,e);return d}}else if(x>=I){var d=l[r.op].call(r,b,j,e);if(d.test===!1)throw new i("Test operation failed","TEST_OPERATION_FAILED",f,r,e);return d}if(b=b[j],n&&x<I&&(!b||typeof b!="object"))throw new i("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",f,r,e)}}}function O(e,r,n,a,o){if(a===void 0&&(a=!0),o===void 0&&(o=!0),n&&!Array.isArray(r))throw new i("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");a||(e=Tn(e));for(var f=new Array(r.length),d=0,m=r.length;d<m;d++)f[d]=w(e,r[d],n,!0,o,d),e=f[d].newDocument;return f.newDocument=e,f}function R(e,r,n){var a=w(e,r);if(a.test===!1)throw new i("Test operation failed","TEST_OPERATION_FAILED",n,r,e);return a.newDocument}function V(e,r,n,a){if(typeof e!="object"||e===null||Array.isArray(e))throw new i("Operation is not an object","OPERATION_NOT_AN_OBJECT",r,e,n);if(l[e.op]){if(typeof e.path!="string")throw new i("Operation `path` property is not a string","OPERATION_PATH_INVALID",r,e,n);if(e.path.indexOf("/")!==0&&e.path.length>0)throw new i('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",r,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new i("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",r,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new i("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",r,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&Ml(e.value))throw new i("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",r,e,n);if(n){if(e.op=="add"){var o=e.path.split("/").length,f=a.split("/").length;if(o!==f+1&&o!==f)throw new i("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",r,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==a)throw new i("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",r,e,n)}else if(e.op==="move"||e.op==="copy"){var d={op:"_get",path:e.from,value:void 0},m=oe([d],n);if(m&&m.name==="OPERATION_PATH_UNRESOLVABLE")throw new i("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",r,e,n)}}}else throw new i("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",r,e,n)}function oe(e,r,n){try{if(!Array.isArray(e))throw new i("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(r)O(Tn(r),Tn(e),n||!0);else{n=n||V;for(var a=0;a<e.length;a++)n(e[a],a,r,void 0)}}catch(o){if(o instanceof i)return o;throw o}}function ce(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){var n=Array.isArray(e),a=Array.isArray(r),o,f,d;if(n&&a){if(f=e.length,f!=r.length)return!1;for(o=f;o--!==0;)if(!ce(e[o],r[o]))return!1;return!0}if(n!=a)return!1;var m=Object.keys(e);if(f=m.length,f!==Object.keys(r).length)return!1;for(o=f;o--!==0;)if(!r.hasOwnProperty(m[o]))return!1;for(o=f;o--!==0;)if(d=m[o],!ce(e[d],r[d]))return!1;return!0}return e!==e&&r!==r}/*!
|
|
86
|
+
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
87
|
+
* (c) 2017-2021 Joachim Wester
|
|
88
|
+
* MIT license
|
|
89
|
+
*/var me=new WeakMap,he=function(){function e(r){this.observers=new Map,this.obj=r}return e}(),Te=function(){function e(r,n){this.callback=r,this.observer=n}return e}();function Le(e){return me.get(e)}function ze(e,r){return e.observers.get(r)}function Ye(e,r){e.observers.delete(r.callback)}function Qe(e,r){r.unobserve()}function Je(e,r){var n=[],a,o=Le(e);if(!o)o=new he(e),me.set(e,o);else{var f=ze(o,r);a=f&&f.observer}if(a)return a;if(a={},o.value=Tn(e),r){a.callback=r,a.next=null;var d=function(){qe(a)},m=function(){clearTimeout(a.next),a.next=setTimeout(d)};typeof window!="undefined"&&(window.addEventListener("mouseup",m),window.addEventListener("keyup",m),window.addEventListener("mousedown",m),window.addEventListener("keydown",m),window.addEventListener("change",m))}return a.patches=n,a.object=e,a.unobserve=function(){qe(a),clearTimeout(a.next),Ye(o,a),typeof window!="undefined"&&(window.removeEventListener("mouseup",m),window.removeEventListener("keyup",m),window.removeEventListener("mousedown",m),window.removeEventListener("keydown",m),window.removeEventListener("change",m))},o.observers.set(r,new Te(r,a)),a}function qe(e,r){r===void 0&&(r=!1);var n=me.get(e.object);ht(n.value,e.object,e.patches,"",r),e.patches.length&&O(n.value,e.patches);var a=e.patches;return a.length>0&&(e.patches=[],e.callback&&e.callback(a)),a}function ht(e,r,n,a,o){if(r!==e){typeof r.toJSON=="function"&&(r=r.toJSON());for(var f=Bi(r),d=Bi(e),m=!1,g=!1,b=d.length-1;b>=0;b--){var x=d[b],I=e[x];if(hs(r,x)&&!(r[x]===void 0&&I!==void 0&&Array.isArray(r)===!1)){var N=r[x];typeof I=="object"&&I!=null&&typeof N=="object"&&N!=null&&Array.isArray(I)===Array.isArray(N)?ht(I,N,n,a+"/"+xi(x),o):I!==N&&(m=!0,o&&n.push({op:"test",path:a+"/"+xi(x),value:Tn(I)}),n.push({op:"replace",path:a+"/"+xi(x),value:Tn(N)}))}else Array.isArray(e)===Array.isArray(r)?(o&&n.push({op:"test",path:a+"/"+xi(x),value:Tn(I)}),n.push({op:"remove",path:a+"/"+xi(x)}),g=!0):(o&&n.push({op:"test",path:a,value:e}),n.push({op:"replace",path:a,value:r}),m=!0)}if(!(!g&&f.length==d.length))for(var b=0;b<f.length;b++){var x=f[b];!hs(e,x)&&r[x]!==void 0&&n.push({op:"add",path:a+"/"+xi(x),value:Tn(r[x])})}}}function dt(e,r,n){n===void 0&&(n=!1);var a=[];return ht(e,r,a,"",n),a}const Mt=Object.assign({},p,S,{JsonPatchError:t,deepClone:Tn,escapePathComponent:xi,unescapePathComponent:vr});var tr=s(39714),Tr=s.n(tr);const wt={add:Ar,replace:Hr,remove:zr,merge:Pr,mergeDeep:Cr,context:gr,getIn:Nl,applyPatch:xn,parentPathMatch:Dr,flatten:Jn,fullyNormalizeArray:wi,normalizeArray:ji,isPromise:Dl,forEachNew:hn,forEachNewPrimitive:Ba,isJsonPatch:wp,isContextPatch:Mg,isPatch:Hf,isMutation:Ap,isAdditiveMutation:Wf,isGenerator:Lg,isFunction:Sp,isObject:Nn,isError:Rg};function xn(e,r,n){if(n=n||{},r=lr(lr({},r),{},{path:r.path&&sn(r.path)}),r.op==="merge"){var a=yd(e,r.path);Fr()(a,r.value),O(e,[Hr(r.path,a)])}else if(r.op==="mergeDeep"){var o=yd(e,r.path),f=Tr()(o,r.value);e=O(e,[Hr(r.path,f)]).newDocument}else if(r.op==="add"&&r.path===""&&Nn(r.value)){var d=Kt()(r.value).reduce(function(I,N){return I.push({op:"add",path:"/".concat(sn(N)),value:r.value[N]}),I},[]);O(e,d)}else if(r.op==="replace"&&r.path===""){var m=r,g=m.value;n.allowMetaPatches&&r.meta&&Wf(r)&&(Array.isArray(r.value)||Nn(r.value))&&(g=lr(lr({},g),r.meta)),e=g}else if(O(e,[r]),n.allowMetaPatches&&r.meta&&Wf(r)&&(Array.isArray(r.value)||Nn(r.value))){var b=yd(e,r.path),x=lr(lr({},b),r.meta);O(e,[Hr(r.path,x)])}return e}function sn(e){return Array.isArray(e)?e.length<1?"":"/".concat($t()(e).call(e,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):e}function Ar(e,r){return{op:"add",path:e,value:r}}function Hr(e,r,n){return{op:"replace",path:e,value:r,meta:n}}function zr(e){return{op:"remove",path:e}}function Pr(e,r){return{type:"mutation",op:"merge",path:e,value:r}}function Cr(e,r){return{type:"mutation",op:"mergeDeep",path:e,value:r}}function gr(e,r){return{type:"context",path:e,value:r}}function hn(e,r){try{return Si(e,Mn,r)}catch(n){return n}}function Ba(e,r){try{return Si(e,Nr,r)}catch(n){return n}}function Si(e,r,n){var a,o=$t()(a=Er()(e).call(e,Wf)).call(a,function(m){return r(m.value,n,m.path)})||[],f=Jn(o),d=Qr(f);return d}function Nr(e,r,n){if(n=n||[],Array.isArray(e))return $t()(e).call(e,function(o,f){return Nr(o,r,ut()(n).call(n,f))});if(Nn(e)){var a;return $t()(a=Kt()(e)).call(a,function(o){return Nr(e[o],r,ut()(n).call(n,o))})}return r(e,n[n.length-1],n)}function Mn(e,r,n){n=n||[];var a=[];if(n.length>0){var o=r(e,n[n.length-1],n);o&&(a=ut()(a).call(a,o))}if(Array.isArray(e)){var f=$t()(e).call(e,function(g,b){return Mn(g,r,ut()(n).call(n,b))});f&&(a=ut()(a).call(a,f))}else if(Nn(e)){var d,m=$t()(d=Kt()(e)).call(d,function(g){return Mn(e[g],r,ut()(n).call(n,g))});m&&(a=ut()(a).call(a,m))}return a=Jn(a),a}function Dr(e,r){if(!Array.isArray(r))return!1;for(var n=0,a=r.length;n<a;n+=1)if(r[n]!==e[n])return!1;return!0}function Nl(e,r){return r.reduce(function(n,a){return typeof a!="undefined"&&n?n[a]:n},e)}function wi(e){return Qr(Jn(ji(e)))}function ji(e){return Array.isArray(e)?e:[e]}function Jn(e){var r;return ut()(r=[]).apply(r,la($t()(e).call(e,function(n){return Array.isArray(n)?Jn(n):n})))}function Qr(e){return Er()(e).call(e,function(r){return typeof r!="undefined"})}function Nn(e){return e&&ar(e)==="object"}function Dl(e){return Nn(e)&&Sp(e.then)}function Sp(e){return e&&typeof e=="function"}function Rg(e){return e instanceof Error}function wp(e){if(Hf(e)){var r=e.op;return r==="add"||r==="remove"||r==="replace"}return!1}function Lg(e){return Object.prototype.toString.call(e)==="[object GeneratorFunction]"}function Ap(e){return wp(e)||Hf(e)&&e.type==="mutation"}function Wf(e){return Ap(e)&&(e.op==="add"||e.op==="replace"||e.op==="merge"||e.op==="mergeDeep")}function Mg(e){return Hf(e)&&e.type==="context"}function Hf(e){return e&&ar(e)==="object"}function yd(e,r){try{return y(e,r)}catch(n){return console.error(n),{}}}var Ng=s(36394),Dg=s.n(Ng),Bg=s(8304),Cp=s.n(Bg);function Ep(e,r){function n(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var a=arguments.length,o=new Array(a),f=0;f<a;f++)o[f]=arguments[f];this.message=o[0],r&&r.apply(this,o)}return n.prototype=new Error,n.prototype.name=e,n.prototype.constructor=n,n}var jg=s(56855),Vg=s.n(jg),Ug=["properties"],Wg=["properties"],Hg=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],zg=["schema/example","items/example"];function Op(e){var r=e[e.length-1],n=e[e.length-2],a=e.join("/");return Ug.indexOf(r)>-1&&Wg.indexOf(n)===-1||Hg.indexOf(a)>-1||zg.some(function(o){return a.indexOf(o)>-1})}function Gg(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.specmap,o=n.getBaseUrlForNodePath,f=o===void 0?function(b){var x;return a.getContext(ut()(x=[]).call(x,la(r),la(b))).baseDoc}:o,d=n.targetKeys,m=d===void 0?["$ref","$$ref"]:d,g=[];return Vg()(e).forEach(function(){if(gi()(m).call(m,this.key)&&typeof this.node=="string"){var x=this.path,I=ut()(r).call(r,this.path),N=bd(this.node,f(x));g.push(a.replace(I,N))}}),g}function bd(e,r){var n,a=e.split("#"),o=$n(a,2),f=o[0],d=o[1],m=Gn.resolve(f||"",r||"");return d?ut()(n="".concat(m,"#")).call(n,d):m}var Tp="application/json, application/yaml",$g=/^([a-z]+:\/\/|\/\/)/i,vs=Ep("JSONRefError",function(r,n,a){this.originalError=a,Fr()(this,n||{})}),ca={},Pp=new(Dg()),Kg=[function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="examples"},function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="example"},function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value"},function(e){return e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="example"},function(e){return e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="example"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="example"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="examples"&&e[6]==="value"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="examples"&&e[7]==="value"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="example"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[4]==="content"&&e[7]==="example"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value"}],Yg=function(r){return Kg.some(function(n){return n(r)})},Jg={key:"$ref",plugin:function(r,n,a,o){var f=o.getInstance(),d=pn()(a).call(a,0,-1);if(!(Op(d)||Yg(d))){var m=o.getContext(a),g=m.baseDoc;if(typeof r!="string")return new vs("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:g,fullPath:a});var b=Fp(r),x=b[0],I=b[1]||"",N;try{N=g||x?kp(x,g):null}catch(ie){return xd(ie,{pointer:I,$ref:r,basePath:N,fullPath:a})}var j,W;if(em(I,N,d,o)&&!f.useCircularStructures){var ee=bd(r,N);return r===ee?null:wt.replace(a,ee)}if(N==null?(W=wd(I),j=o.get(W),typeof j=="undefined"&&(j=new vs("Could not resolve reference: ".concat(r),{pointer:I,$ref:r,baseDoc:g,fullPath:a}))):(j=Rp(N,I),j.__value!=null?j=j.__value:j=j.catch(function(ie){throw xd(ie,{pointer:I,$ref:r,baseDoc:g,fullPath:a})})),j instanceof Error)return[wt.remove(a),j];var te=bd(r,N),se=wt.replace(d,j,{$$ref:te});if(N&&N!==g)return[se,wt.context(d,{baseDoc:N})];try{if(!tm(o.state,se)||f.useCircularStructures)return se}catch(ie){return null}}}},Ip=Fr()(Jg,{docCache:ca,absoluteify:kp,clearCache:Qg,JSONRefError:vs,wrapError:xd,getDoc:Lp,split:Fp,extractFromDoc:Rp,fetchJSON:Zg,extract:Sd,jsonPointerToArray:wd,unescapeJsonPointerToken:Mp});const Xg=Ip;function kp(e,r){if(!$g.test(e)){if(!r){var n;throw new vs(ut()(n="Tried to resolve a relative URL, without having a basePath. path: '".concat(e,"' basePath: '")).call(n,r,"'"))}return Gn.resolve(r,e)}return e}function xd(e,r){var n;if(e&&e.response&&e.response.body){var a;n=ut()(a="".concat(e.response.body.code," ")).call(a,e.response.body.message)}else n=e.message;return new vs("Could not resolve reference: ".concat(n),r,e)}function Fp(e){return(e+"").split("#")}function Rp(e,r){var n=ca[e];if(n&&!wt.isPromise(n))try{var a=Sd(r,n);return Fr()(fa().resolve(a),{__value:a})}catch(o){return fa().reject(o)}return Lp(e).then(function(o){return Sd(r,o)})}function Qg(e){typeof e!="undefined"?delete ca[e]:Kt()(ca).forEach(function(r){delete ca[r]})}function Lp(e){var r=ca[e];return r?wt.isPromise(r)?r:fa().resolve(r):(ca[e]=Ip.fetchJSON(e).then(function(n){return ca[e]=n,n}),ca[e])}function Zg(e){return fetch(e,{headers:{Accept:Tp},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Al.load(r)})}function Sd(e,r){var n=wd(e);if(n.length<1)return r;var a=wt.getIn(r,n);if(typeof a=="undefined")throw new vs("Could not resolve pointer: ".concat(e," does not exist in document"),{pointer:e});return a}function wd(e){var r;if(typeof e!="string")throw new TypeError("Expected a string, got a ".concat(ar(e)));return e[0]==="/"&&(e=e.substr(1)),e===""?[]:$t()(r=e.split("/")).call(r,Mp)}function Mp(e){if(typeof e!="string")return e;var r=new(Cp())("=".concat(e.replace(/~1/g,"/").replace(/~0/g,"~")));return r.get("")}function Np(e){var r,n=new(Cp())([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]);return pn()(r=n.toString()).call(r,1)}function _g(e){return e.length===0?"":"/".concat($t()(e).call(e,Np).join("/"))}var qg=function(r){return!r||r==="/"||r==="#"};function Ad(e,r){if(qg(r))return!0;var n=e.charAt(r.length),a=pn()(r).call(r,-1);return e.indexOf(r)===0&&(!n||n==="/"||n==="#")&&a!=="#"}function em(e,r,n,a){var o,f,d=Pp.get(a);d||(d={},Pp.set(a,d));var m=_g(n),g=ut()(o="".concat(r||"<specmap-base>","#")).call(o,e),b=m.replace(/allOf\/\d+\/?/g,""),x=a.contextTree.get([]).baseDoc;if(r===x&&Ad(b,e))return!0;var I="",N=n.some(function(j){var W;return I=ut()(W="".concat(I,"/")).call(W,Np(j)),d[I]&&d[I].some(function(ee){return Ad(ee,g)||Ad(g,ee)})});if(N)return!0;d[b]=ut()(f=d[b]||[]).call(f,g)}function tm(e,r){var n=[e];return r.path.reduce(function(o,f){return n.push(o[f]),o[f]},e),a(r.value);function a(o){return wt.isObject(o)&&(n.indexOf(o)>=0||Kt()(o).some(function(f){return a(o[f])}))}}const rm={key:"allOf",plugin:function(r,n,a,o,f){if(!(f.meta&&f.meta.$$ref)){var d=pn()(a).call(a,0,-1);if(!Op(d)){if(!Array.isArray(r)){var m=new TypeError("allOf must be an array");return m.fullPath=a,m}var g=!1,b=f.value;if(d.forEach(function(j){!b||(b=b[j])}),b=lr({},b),Kt()(b).length!==0){delete b.allOf;var x=[];if(x.push(o.replace(d,{})),r.forEach(function(j,W){if(!o.isObject(j)){if(g)return null;g=!0;var ee=new TypeError("Elements in allOf must be objects");return ee.fullPath=a,x.push(ee)}x.push(o.mergeDeep(d,j));var te=pn()(a).call(a,0,-1),se=Gg(j,te,{getBaseUrlForNodePath:function(de){var we;return o.getContext(ut()(we=[]).call(we,la(a),[W],la(de))).baseDoc},specmap:o});x.push.apply(x,la(se))}),b.example){var I;x.push(o.remove(ut()(I=[]).call(I,d,"example")))}if(x.push(o.mergeDeep(d,b)),!b.$$ref){var N;x.push(o.remove(ut()(N=[]).call(N,d,"$$ref")))}return x}}}}},nm={key:"parameters",plugin:function(r,n,a,o){if(Array.isArray(r)&&r.length){var f=Fr()([],r),d=pn()(a).call(a,0,-1),m=lr({},wt.getIn(o.spec,d));return r.forEach(function(g,b){try{f[b].default=o.parameterMacro(m,g)}catch(I){var x=new Error(I);return x.fullPath=a,x}}),wt.replace(a,f)}return wt.replace(a,r)}},im={key:"properties",plugin:function(r,n,a,o){var f=lr({},r);for(var d in r)try{f[d].default=o.modelPropertyMacro(f[d])}catch(b){var m=new Error(b);return m.fullPath=a,m}var g=wt.replace(a,f);return g}};var am=function(){function e(r){ps(this,e),this.root=Cd(r||{})}return Rl(e,[{key:"set",value:function(n,a){var o=this.getParent(n,!0);if(!o){zf(this.root,a,null);return}var f=n[n.length-1],d=o.children;if(d[f]){zf(d[f],a,o);return}d[f]=Cd(a,o)}},{key:"get",value:function(n){if(n=n||[],n.length<1)return this.root.value;for(var a=this.root,o,f,d=0;d<n.length&&(f=n[d],o=a.children,!!o[f]);d+=1)a=o[f];return a&&a.protoValue}},{key:"getParent",value:function(n,a){return!n||n.length<1?null:n.length<2?this.root:pn()(n).call(n,0,-1).reduce(function(o,f){if(!o)return o;var d=o.children;return!d[f]&&a&&(d[f]=Cd(null,o)),d[f]},this.root)}}]),e}();function Cd(e,r){return zf({children:{}},e,r)}function zf(e,r,n){return e.value=r||{},e.protoValue=n?lr(lr({},n.protoValue),e.value):e.value,Kt()(e.children).forEach(function(a){var o=e.children[a];e.children[a]=zf(o,o.value,e)}),e}var Dp=100,Bp=function(){},om=function(){function e(r){var n=this,a,o;ps(this,e),Fr()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new am,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Fr()(Object.create(this),wt,{getInstance:function(){return n}}),allowMetaPatches:!1},r),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=Er()(a=$t()(o=this.plugins).call(o,this.wrapPlugin.bind(this))).call(a,wt.isFunction),this.patches.push(wt.add([],this.spec)),this.patches.push(wt.context([],this.context)),this.updatePatches(this.patches)}return Rl(e,[{key:"debug",value:function(n){if(this.debugLevel===n){for(var a,o=arguments.length,f=new Array(o>1?o-1:0),d=1;d<o;d++)f[d-1]=arguments[d];(a=console).log.apply(a,f)}}},{key:"verbose",value:function(n){if(this.debugLevel==="verbose"){for(var a,o,f=arguments.length,d=new Array(f>1?f-1:0),m=1;m<f;m++)d[m-1]=arguments[m];(a=console).log.apply(a,ut()(o=["[".concat(n,"] ")]).call(o,d))}}},{key:"wrapPlugin",value:function(n,a){var o=this.pathDiscriminator,f=null,d;return n[this.pluginProp]?(f=n,d=n[this.pluginProp]):wt.isFunction(n)?d=n:wt.isObject(n)&&(d=m(n)),Fr()(d.bind(f),{pluginName:n.name||a,isGenerator:wt.isGenerator(d)});function m(g){var b=function(I,N){return Array.isArray(I)?I.every(function(j,W){return j===N[W]}):!0};return ei().mark(function x(I,N){var j,W,ee,te,se,ie;return ei().wrap(function(we){for(;;)switch(we.prev=we.next){case 0:ie=function(Ee,ye,be){var Se,ke,Me,Re,We,It,vt,rr,cr,mr,$r,yr,kr;return ei().wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:if(wt.isObject(Ee)){Wt.next=6;break}if(g.key!==ye[ye.length-1]){Wt.next=4;break}return Wt.next=4,g.plugin(Ee,g.key,ye,N);case 4:Wt.next=30;break;case 6:Se=ye.length-1,ke=ye[Se],Me=ye.indexOf("properties"),Re=ke==="properties"&&Se===Me,We=N.allowMetaPatches&&W[Ee.$$ref],It=0,vt=Kt()(Ee);case 12:if(!(It<vt.length)){Wt.next=30;break}if(rr=vt[It],cr=Ee[rr],mr=ut()(ye).call(ye,rr),$r=wt.isObject(cr),yr=Ee.$$ref,We){Wt.next=22;break}if(!$r){Wt.next=22;break}return N.allowMetaPatches&&yr&&(W[yr]=!0),Wt.delegateYield(ie(cr,mr,be),"t0",22);case 22:if(!(!Re&&rr===g.key)){Wt.next=27;break}if(kr=b(o,ye),!(!o||kr)){Wt.next=27;break}return Wt.next=27,g.plugin(cr,rr,mr,N,be);case 27:It++,Wt.next=12;break;case 30:case"end":return Wt.stop()}},j)},j=ei().mark(ie),W={},ee=Pi(Er()(I).call(I,wt.isAdditiveMutation)),we.prev=4,ee.s();case 6:if((te=ee.n()).done){we.next=11;break}return se=te.value,we.delegateYield(ie(se.value,se.path,se),"t0",9);case 9:we.next=6;break;case 11:we.next=16;break;case 13:we.prev=13,we.t1=we.catch(4),ee.e(we.t1);case 16:return we.prev=16,ee.f(),we.finish(16);case 19:case"end":return we.stop()}},x,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var n,a=this;return Df()(n=this.wrappedPlugins).call(n,function(o){var f=a.getMutationsForPlugin(o);return f.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var n;return fa().race($t()(n=this.promisedPatches).call(n,function(a){return a.value}))}}},{key:"getPluginHistory",value:function(n){var a=this.constructor.getPluginName(n);return this.pluginHistory[a]||[]}},{key:"getPluginRunCount",value:function(n){return this.getPluginHistory(n).length}},{key:"getPluginHistoryTip",value:function(n){var a=this.getPluginHistory(n),o=a&&a[a.length-1];return o||{}}},{key:"getPluginMutationIndex",value:function(n){var a=this.getPluginHistoryTip(n).mutationIndex;return typeof a!="number"?-1:a}},{key:"updatePluginHistory",value:function(n,a){var o=this.constructor.getPluginName(n);this.pluginHistory[o]=this.pluginHistory[o]||[],this.pluginHistory[o].push(a)}},{key:"updatePatches",value:function(n){var a=this;wt.normalizeArray(n).forEach(function(o){if(o instanceof Error){a.errors.push(o);return}try{if(!wt.isObject(o)){a.debug("updatePatches","Got a non-object patch",o);return}if(a.showDebug&&a.allPatches.push(o),wt.isPromise(o.value)){a.promisedPatches.push(o),a.promisedPatchThen(o);return}if(wt.isContextPatch(o)){a.setContext(o.path,o.value);return}if(wt.isMutation(o)){a.updateMutations(o);return}}catch(f){console.error(f),a.errors.push(f)}})}},{key:"updateMutations",value:function(n){ar(n.value)==="object"&&!Array.isArray(n.value)&&this.allowMetaPatches&&(n.value=lr({},n.value));var a=wt.applyPatch(this.state,n,{allowMetaPatches:this.allowMetaPatches});a&&(this.mutations.push(n),this.state=a)}},{key:"removePromisedPatch",value:function(n){var a,o=this.promisedPatches.indexOf(n);if(o<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}jf()(a=this.promisedPatches).call(a,o,1)}},{key:"promisedPatchThen",value:function(n){var a=this;return n.value=n.value.then(function(o){var f=lr(lr({},n),{},{value:o});a.removePromisedPatch(n),a.updatePatches(f)}).catch(function(o){a.removePromisedPatch(n),a.updatePatches(o)}),n.value}},{key:"getMutations",value:function(n,a){var o;return n=n||0,typeof a!="number"&&(a=this.mutations.length),pn()(o=this.mutations).call(o,n,a)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(n){var a=this.getPluginMutationIndex(n);return this.getMutations(a+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(n){return wt.getIn(this.state,n)}},{key:"_getContext",value:function(n){return this.contextTree.get(n)}},{key:"setContext",value:function(n,a){return this.contextTree.set(n,a)}},{key:"_hasRun",value:function(n){var a=this.getPluginRunCount(this.getCurrentPlugin());return a>(n||0)}},{key:"dispatch",value:function(){var n=this,a=this,o=this.nextPlugin();if(!o){var f=this.nextPromisedPatch();if(f)return f.then(function(){return n.dispatch()}).catch(function(){return n.dispatch()});var d={spec:this.state,errors:this.errors};return this.showDebug&&(d.patches=this.allPatches),fa().resolve(d)}if(a.pluginCount=a.pluginCount||{},a.pluginCount[o]=(a.pluginCount[o]||0)+1,a.pluginCount[o]>Dp){var m;return fa().resolve({spec:a.state,errors:ut()(m=a.errors).call(m,new Error("We've reached a hard limit of ".concat(Dp," plugin runs")))})}if(o!==this.currentPlugin&&this.promisedPatches.length){var g,b=$t()(g=this.promisedPatches).call(g,function(N){return N.value});return fa().all($t()(b).call(b,function(N){return N.then(Bp,Bp)})).then(function(){return n.dispatch()})}return x();function x(){a.currentPlugin=o;var N=a.getCurrentMutations(),j=a.mutations.length-1;try{if(o.isGenerator){var W=Pi(o(N,a.getLib())),ee;try{for(W.s();!(ee=W.n()).done;){var te=ee.value;I(te)}}catch(ie){W.e(ie)}finally{W.f()}}else{var se=o(N,a.getLib());I(se)}}catch(ie){console.error(ie),I([Fr()(Object.create(ie),{plugin:o})])}finally{a.updatePluginHistory(o,{mutationIndex:j})}return a.dispatch()}function I(N){N&&(N=wt.fullyNormalizeArray(N),a.updatePatches(N,o))}}}],[{key:"getPluginName",value:function(n){return n.pluginName}},{key:"getPatchesOfType",value:function(n,a){return Er()(n).call(n,a)}}]),e}();function sm(e){return new om(e).dispatch()}var To={refs:Xg,allOf:rm,parameters:nm,properties:im},jp=function(r){return String.prototype.toLowerCase.call(r)},Vp=function(r){return r.replace(/[^\w]/gi,"_")};function Up(e){var r=e.openapi;return r?qn()(r).call(r,"3"):!1}function i1(e){var r=e.swagger;return r?_startsWithInstanceProperty(r).call(r,"2"):!1}function Gf(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=a.v2OperationIdCompatibilityMode;if(!e||ar(e)!=="object")return null;var f=(e.operationId||"").replace(/\s/g,"");return f.length?Vp(e.operationId):lm(r,n,{v2OperationIdCompatibilityMode:o})}function lm(e,r){var n,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=a.v2OperationIdCompatibilityMode;if(o){var f,d,m=ut()(f="".concat(r.toLowerCase(),"_")).call(f,e).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return m=m||ut()(d="".concat(e.substring(1),"_")).call(d,r),m.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return ut()(n="".concat(jp(r))).call(n,Vp(e))}function Wp(e,r){var n;return ut()(n="".concat(jp(r),"-")).call(n,e)}function um(e,r){return!e||!e.paths?null:fm(e,function(n){var a=n.pathName,o=n.method,f=n.operation;if(!f||ar(f)!=="object")return!1;var d=f.operationId,m=Gf(f,a,o),g=Wp(a,o);return[m,g,d].some(function(b){return b&&b===r})})}function fm(e,r){return Hp(e,r,!0)||null}function Hp(e,r,n){if(!e||ar(e)!=="object"||!e.paths||ar(e.paths)!=="object")return null;var a=e.paths;for(var o in a)for(var f in a[o])if(f.toUpperCase()!=="PARAMETERS"){var d=a[o][f];if(!(!d||ar(d)!=="object")){var m={spec:e,pathName:o,method:f.toUpperCase(),operation:d},g=r(m);if(n&&g)return m}}}function zp(e){var r=e.spec,n=r.paths,a={};if(!n||r.$$normalized)return e;for(var o in n){var f,d=n[o];if(!(d==null||!gi()(f=["object","function"]).call(f,ar(d)))){var m=d.parameters,g=function(N){var j,W=d[N];if(W==null||!gi()(j=["object","function"]).call(j,ar(W)))return"continue";var ee=Gf(W,o,N);if(ee){a[ee]?a[ee].push(W):a[ee]=[W];var te=a[ee];if(te.length>1)te.forEach(function(Re,We){var It;Re.__originalOperationId=Re.__originalOperationId||Re.operationId,Re.operationId=ut()(It="".concat(ee)).call(It,We+1)});else if(typeof W.operationId!="undefined"){var se=te[0];se.__originalOperationId=se.__originalOperationId||W.operationId,se.operationId=ee}}if(N!=="parameters"){var ie=[],de={};for(var we in r)(we==="produces"||we==="consumes"||we==="security")&&(de[we]=r[we],ie.push(de));if(m&&(de.parameters=m,ie.push(de)),ie.length){var xe=Pi(ie),Ee;try{for(xe.s();!(Ee=xe.n()).done;){var ye=Ee.value;for(var be in ye)if(!W[be])W[be]=ye[be];else if(be==="parameters"){var Se=Pi(ye[be]),ke;try{var Me=function(){var We=ke.value,It=W[be].some(function(vt){return vt.name&&vt.name===We.name||vt.$ref&&vt.$ref===We.$ref||vt.$$ref&&vt.$$ref===We.$$ref||vt===We});It||W[be].push(We)};for(Se.s();!(ke=Se.n()).done;)Me()}catch(Re){Se.e(Re)}finally{Se.f()}}}}catch(Re){xe.e(Re)}finally{xe.f()}}}};for(var b in d)var x=g(b)}}return r.$$normalized=!0,e}function Gp(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.requestInterceptor,a=r.responseInterceptor,o=e.withCredentials?"include":"same-origin";return function(f){return e({url:f,loadSpec:!0,requestInterceptor:n,responseInterceptor:a,headers:{Accept:Tp},credentials:o}).then(function(d){return d.body})}}function cm(){To.refs.clearCache()}function $p(e){var r=e.fetch,n=e.spec,a=e.url,o=e.mode,f=e.allowMetaPatches,d=f===void 0?!0:f,m=e.pathDiscriminator,g=e.modelPropertyMacro,b=e.parameterMacro,x=e.requestInterceptor,I=e.responseInterceptor,N=e.skipNormalization,j=e.useCircularStructures,W=e.http,ee=e.baseDoc;if(ee=ee||a,W=r||W||Co,!n)return Gp(W,{requestInterceptor:x,responseInterceptor:I})(ee).then(te);return te(n);function te(se){ee&&(To.refs.docCache[ee]=se),To.refs.fetchJSON=Gp(W,{requestInterceptor:x,responseInterceptor:I});var ie=[To.refs];return typeof b=="function"&&ie.push(To.parameters),typeof g=="function"&&ie.push(To.properties),o!=="strict"&&ie.push(To.allOf),sm({spec:se,context:{baseDoc:ee},plugins:ie,allowMetaPatches:d,pathDiscriminator:m,parameterMacro:b,modelPropertyMacro:g,useCircularStructures:j}).then(N?function(){var de=Ii(ei().mark(function we(xe){return ei().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",xe);case 1:case"end":return ye.stop()}},we)}));return function(we){return de.apply(this,arguments)}}():zp)}}var dm=s(72579),Bl=s.n(dm);function pm(e,r){return Ed.apply(this,arguments)}function Ed(){return Ed=Ii(ei().mark(function e(r,n){var a,o,f,d,m,g,b,x,I,N,j,W,ee=arguments;return ei().wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return a=ee.length>2&&ee[2]!==void 0?ee[2]:{},o=a.returnEntireTree,f=a.baseDoc,d=a.requestInterceptor,m=a.responseInterceptor,g=a.parameterMacro,b=a.modelPropertyMacro,x=a.useCircularStructures,I={pathDiscriminator:n,baseDoc:f,requestInterceptor:d,responseInterceptor:m,parameterMacro:g,modelPropertyMacro:b,useCircularStructures:x},N=zp({spec:r}),j=N.spec,se.next=6,$p(lr(lr({},I),{},{spec:j,allowMetaPatches:!0,skipNormalization:!0}));case 6:return W=se.sent,!o&&Array.isArray(n)&&n.length&&(W.spec=Bl()(W.spec,n)||null),se.abrupt("return",W);case 9:case"end":return se.stop()}},e)})),Ed.apply(this,arguments)}var hm=function(){return null},vm=function(r){return Array.isArray(r)?r:[r]},$f={mapTagOperations:ym,makeExecute:gm};function gm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var n=r.pathName,a=r.method,o=r.operationId;return function(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=e.requestInterceptor,g=e.responseInterceptor,b=e.userFetch;return e.execute(lr({spec:e.spec,requestInterceptor:m,responseInterceptor:g,userFetch:b,pathName:n,method:a,parameters:f,operationId:o},d))}}}function a1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=$f.makeExecute(e),n=$f.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:r}),a={};for(var o in n){a[o]={operations:{}};for(var f in n[o])a[o].operations[f]={execute:n[o][f]}}return{apis:a}}function mm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=$f.makeExecute(e);return{apis:$f.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:r})}}function ym(e){var r=e.spec,n=e.cb,a=n===void 0?hm:n,o=e.defaultTag,f=o===void 0?"default":o,d=e.v2OperationIdCompatibilityMode,m={},g={};return Hp(r,function(b){var x=b.pathName,I=b.method,N=b.operation,j=N.tags?vm(N.tags):[f];j.forEach(function(W){if(typeof W=="string"){g[W]=g[W]||{};var ee=g[W],te=Gf(N,x,I,{v2OperationIdCompatibilityMode:d}),se=a({spec:r,pathName:x,method:I,operation:N,operationId:te});if(m[te]){var ie;m[te]+=1,ee[ut()(ie="".concat(te)).call(ie,m[te])]=se}else if(typeof ee[te]!="undefined"){var de,we,xe=m[te]||1;m[te]=xe+1,ee[ut()(de="".concat(te)).call(de,m[te])]=se;var Ee=ee[te];delete ee[te],ee[ut()(we="".concat(te)).call(we,xe)]=Ee}else ee[te]=se}})}),g}var Kp=s(26405);function bm(e,r){if(e==null)return{};var n={},a=Ga(e),o,f;for(f=0;f<a.length;f++)o=a[f],!(Kp(r).call(r,o)>=0)&&(n[o]=e[o]);return n}function xm(e,r){if(e==null)return{};var n=bm(e,r),a,o;if(ga){var f=ga(e);for(o=0;o<f.length;o++)a=f[o],!(Kp(r).call(r,a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,a)||(n[a]=e[a]))}return n}var Sm=s(13421);/*!
|
|
90
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
91
|
+
*
|
|
92
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
93
|
+
* Released under the MIT License.
|
|
94
|
+
*/function Yp(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jp(e){var r,n;return Yp(e)===!1?!1:(r=e.constructor,r===void 0?!0:(n=r.prototype,!(Yp(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}const wm={body:Am,header:Em,query:Tm,path:Om,formData:Cm};function Am(e){var r=e.req,n=e.value;r.body=n}function Cm(e){var r=e.req,n=e.value,a=e.parameter;(n||a.allowEmptyValue)&&(r.form=r.form||{},r.form[a.name]={value:n,allowEmptyValue:a.allowEmptyValue,collectionFormat:a.collectionFormat})}function Em(e){var r=e.req,n=e.parameter,a=e.value;r.headers=r.headers||{},typeof a!="undefined"&&(r.headers[n.name]=a)}function Om(e){var r=e.req,n=e.value,a=e.parameter;r.url=r.url.split("{".concat(a.name,"}")).join(encodeURIComponent(n))}function Tm(e){var r=e.req,n=e.value,a=e.parameter;if(r.query=r.query||{},n===!1&&a.type==="boolean"&&(n="false"),n===0&&["number","integer"].indexOf(a.type)>-1&&(n="0"),n)r.query[a.name]={collectionFormat:a.collectionFormat,value:n};else if(a.allowEmptyValue&&n!==void 0){var o=a.name;r.query[o]=r.query[o]||{},r.query[o].allowEmptyValue=!0}}function Kf(e,r){return gi()(r).call(r,"application/json")?typeof e=="string"?e:Ya()(e):e.toString()}function Pm(e){var r=e.req,n=e.value,a=e.parameter,o=a.name,f=a.style,d=a.explode,m=a.content;if(m){var g=Kt()(m)[0];r.url=r.url.split("{".concat(o,"}")).join(ua(Kf(n,g),{escape:!0}));return}var b=Ol({key:a.name,value:n,style:f||"simple",explode:d||!1,escape:!0});r.url=r.url.split("{".concat(o,"}")).join(b)}function Im(e){var r=e.req,n=e.value,a=e.parameter;if(r.query=r.query||{},a.content){var o=Kt()(a.content)[0];r.query[a.name]=Kf(n,o);return}if(n===!1&&(n="false"),n===0&&(n="0"),n){var f=a.style,d=a.explode,m=a.allowReserved;r.query[a.name]={value:n,serializationOption:{style:f,explode:d,allowReserved:m}}}else if(a.allowEmptyValue&&n!==void 0){var g=a.name;r.query[g]=r.query[g]||{},r.query[g].allowEmptyValue=!0}}var km=["accept","authorization","content-type"];function Fm(e){var r=e.req,n=e.parameter,a=e.value;if(r.headers=r.headers||{},!(km.indexOf(n.name.toLowerCase())>-1)){if(n.content){var o=Kt()(n.content)[0];r.headers[n.name]=Kf(a,o);return}typeof a!="undefined"&&(r.headers[n.name]=Ol({key:n.name,value:a,style:n.style||"simple",explode:typeof n.explode=="undefined"?!1:n.explode,escape:!1}))}}function Rm(e){var r=e.req,n=e.parameter,a=e.value;r.headers=r.headers||{};var o=ar(a);if(n.content){var f,d=Kt()(n.content)[0];r.headers.Cookie=ut()(f="".concat(n.name,"=")).call(f,Kf(a,d));return}if(o!=="undefined"){var m=o==="object"&&!Array.isArray(a)&&n.explode?"":"".concat(n.name,"=");r.headers.Cookie=m+Ol({key:n.name,value:a,escape:!1,style:n.style||"form",explode:typeof n.explode=="undefined"?!1:n.explode})}}var Lm=s(1858),Xp=s.n(Lm),Mm=function(){return typeof Xp()!="undefined"?Xp():typeof self!="undefined"?self:window}(),Nm=Mm.btoa;const Qp=Nm;function Dm(e,r){var n=e.operation,a=e.requestBody,o=e.securities,f=e.spec,d=e.attachContentTypeForEmptyPayload,m=e.requestContentType;r=Bm({request:r,securities:o,operation:n,spec:f});var g=n.requestBody||{},b=Kt()(g.content||{}),x=m&&b.indexOf(m)>-1;if(a||d){if(m&&x)r.headers["Content-Type"]=m;else if(!m){var I=b[0];I&&(r.headers["Content-Type"]=I,m=I)}}else m&&x&&(r.headers["Content-Type"]=m);if(!e.responseContentType&&n.responses){var N,j=Er()(N=Ou()(n.responses)).call(N,function(ee){var te=$n(ee,2),se=te[0],ie=te[1],de=parseInt(se,10);return de>=200&&de<300&&Jp(ie.content)}).reduce(function(ee,te){var se=$n(te,2),ie=se[1];return ut()(ee).call(ee,Kt()(ie.content))},[]);j.length>0&&(r.headers.accept=j.join(", "))}if(a)if(m){if(b.indexOf(m)>-1)if(m==="application/x-www-form-urlencoded"||m==="multipart/form-data")if(ar(a)==="object"){var W=(g.content[m]||{}).encoding||{};r.form={},Kt()(a).forEach(function(ee){r.form[ee]={value:a[ee],encoding:W[ee]||{}}})}else r.form=a;else r.body=a}else r.body=a;return r}function Bm(e){var r=e.request,n=e.securities,a=n===void 0?{}:n,o=e.operation,f=o===void 0?{}:o,d=e.spec,m=lr({},r),g=a.authorized,b=g===void 0?{}:g,x=f.security||d.security||[],I=b&&!!Kt()(b).length,N=Bl()(d,["components","securitySchemes"])||{};return m.headers=m.headers||{},m.query=m.query||{},!Kt()(a).length||!I||!x||Array.isArray(f.security)&&!f.security.length?r:(x.forEach(function(j){Kt()(j).forEach(function(W){var ee=b[W],te=N[W];if(!!ee){var se=ee.value||ee,ie=te.type;if(ee){if(ie==="apiKey")te.in==="query"&&(m.query[te.name]=se),te.in==="header"&&(m.headers[te.name]=se),te.in==="cookie"&&(m.cookies[te.name]=se);else if(ie==="http"){if(/^basic$/i.test(te.scheme)){var de,we=se.username||"",xe=se.password||"",Ee=Qp(ut()(de="".concat(we,":")).call(de,xe));m.headers.Authorization="Basic ".concat(Ee)}/^bearer$/i.test(te.scheme)&&(m.headers.Authorization="Bearer ".concat(se))}else if(ie==="oauth2"||ie==="openIdConnect"){var ye,be=ee.token||{},Se=te["x-tokenName"]||"access_token",ke=be[Se],Me=be.token_type;(!Me||Me.toLowerCase()==="bearer")&&(Me="Bearer"),m.headers.Authorization=ut()(ye="".concat(Me," ")).call(ye,ke)}}}})}),m)}function jm(e,r){var n=e.spec,a=e.operation,o=e.securities,f=e.requestContentType,d=e.responseContentType,m=e.attachContentTypeForEmptyPayload;if(r=Vm({request:r,securities:o,operation:a,spec:n}),r.body||r.form||m){var g,b;if(f)r.headers["Content-Type"]=f;else if(Array.isArray(a.consumes)){var x=$n(a.consumes,1);r.headers["Content-Type"]=x[0]}else if(Array.isArray(n.consumes)){var I=$n(n.consumes,1);r.headers["Content-Type"]=I[0]}else a.parameters&&Er()(g=a.parameters).call(g,function(te){return te.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":a.parameters&&Er()(b=a.parameters).call(b,function(te){return te.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(f){var N,j,W=a.parameters&&Er()(N=a.parameters).call(N,function(te){return te.in==="body"}).length>0,ee=a.parameters&&Er()(j=a.parameters).call(j,function(te){return te.in==="formData"}).length>0;(W||ee)&&(r.headers["Content-Type"]=f)}return!d&&Array.isArray(a.produces)&&a.produces.length>0&&(r.headers.accept=a.produces.join(", ")),r}function Vm(e){var r=e.request,n=e.securities,a=n===void 0?{}:n,o=e.operation,f=o===void 0?{}:o,d=e.spec,m=lr({},r),g=a.authorized,b=g===void 0?{}:g,x=a.specSecurity,I=x===void 0?[]:x,N=f.security||I,j=b&&!!Kt()(b).length,W=d.securityDefinitions;return m.headers=m.headers||{},m.query=m.query||{},!Kt()(a).length||!j||!N||Array.isArray(f.security)&&!f.security.length?r:(N.forEach(function(ee){Kt()(ee).forEach(function(te){var se=b[te];if(!!se){var ie=se.token,de=se.value||se,we=W[te],xe=we.type,Ee=we["x-tokenName"]||"access_token",ye=ie&&ie[Ee],be=ie&&ie.token_type;if(se){if(xe==="apiKey"){var Se=we.in==="query"?"query":"headers";m[Se]=m[Se]||{},m[Se][we.name]=de}else if(xe==="basic")if(de.header)m.headers.authorization=de.header;else{var ke,Me=de.username||"",Re=de.password||"";de.base64=Qp(ut()(ke="".concat(Me,":")).call(ke,Re)),m.headers.authorization="Basic ".concat(de.base64)}else if(xe==="oauth2"&&ye){var We;be=!be||be.toLowerCase()==="bearer"?"Bearer":be,m.headers.authorization=ut()(We="".concat(be," ")).call(We,ye)}}}})}),m)}var Um=["http","fetch","spec","operationId","pathName","method","parameters","securities"],Zp=function(r){return Array.isArray(r)?r:[]},Wm=Ep("OperationNotFoundError",function(r,n,a){this.originalError=a,Fr()(this,n||{})}),Hm=function(r,n){return Er()(n).call(n,function(a){return a.name===r})},zm=function(r){var n={};r.forEach(function(o){n[o.in]||(n[o.in]={}),n[o.in][o.name]=o});var a=[];return Kt()(n).forEach(function(o){Kt()(n[o]).forEach(function(f){a.push(n[o][f])})}),a},Gm={buildRequest:_p};function $m(e){var r=e.http,n=e.fetch,a=e.spec,o=e.operationId,f=e.pathName,d=e.method,m=e.parameters,g=e.securities,b=xm(e,Um),x=r||n||Co;f&&d&&!o&&(o=Wp(f,d));var I=Gm.buildRequest(lr({spec:a,operationId:o,parameters:m,securities:g,http:x},b));return I.body&&(Jp(I.body)||Array.isArray(I.body))&&(I.body=Ya()(I.body)),x(I)}function _p(e){var r,n,a=e.spec,o=e.operationId,f=e.responseContentType,d=e.scheme,m=e.requestInterceptor,g=e.responseInterceptor,b=e.contextUrl,x=e.userFetch,I=e.server,N=e.serverVariables,j=e.http,W=e.signal,ee=e.parameters,te=e.parameterBuilders,se=Up(a);te||(se?te=A:te=wm);var ie=j&&j.withCredentials?"include":"same-origin",de={url:"",credentials:ie,headers:{},cookies:{}};W&&(de.signal=W),m&&(de.requestInterceptor=m),g&&(de.responseInterceptor=g),x&&(de.userFetch=x);var we=um(a,o);if(!we)throw new Wm("Operation ".concat(o," not found"));var xe=we.operation,Ee=xe===void 0?{}:xe,ye=we.method,be=we.pathName;if(de.url+=qp({spec:a,scheme:d,contextUrl:b,server:I,serverVariables:N,pathName:be,method:ye}),!o)return delete de.cookies,de;de.url+=be,de.method="".concat(ye).toUpperCase(),ee=ee||{};var Se=a.paths[be]||{};f&&(de.headers.accept=f);var ke=zm(ut()(r=ut()(n=[]).call(n,Zp(Ee.parameters))).call(r,Zp(Se.parameters)));ke.forEach(function(We){var It=te[We.in],vt;if(We.in==="body"&&We.schema&&We.schema.properties&&(vt=ee),vt=We&&We.name&&ee[We.name],typeof vt=="undefined"){var rr;vt=We&&We.name&&ee[ut()(rr="".concat(We.in,".")).call(rr,We.name)]}else if(Hm(We.name,ke).length>1){var cr;console.warn(ut()(cr="Parameter '".concat(We.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(cr,We.name,"' and the passed-in parameter values did not define an 'in' value."))}if(vt!==null){if(typeof We.default!="undefined"&&typeof vt=="undefined"&&(vt=We.default),typeof vt=="undefined"&&We.required&&!We.allowEmptyValue)throw new Error("Required parameter ".concat(We.name," is not provided"));if(se&&We.schema&&We.schema.type==="object"&&typeof vt=="string")try{vt=JSON.parse(vt)}catch(mr){throw new Error("Could not parse object parameter value string as JSON")}It&&It({req:de,parameter:We,value:vt,operation:Ee,spec:a})}});var Me=lr(lr({},e),{},{operation:Ee});if(se?de=Dm(Me,de):de=jm(Me,de),de.cookies&&Kt()(de.cookies).length){var Re=Kt()(de.cookies).reduce(function(We,It){var vt=de.cookies[It],rr=We?"&":"",cr=Sm.serialize(It,vt);return We+rr+cr},"");de.headers.Cookie=Re}return de.cookies&&delete de.cookies,Ln(de),de}var Od=function(r){return r?r.replace(/\W/g,""):null};function qp(e){var r=Up(e.spec);return r?Km(e):Xm(e)}function Km(e){var r=e.spec,n=e.pathName,a=e.method,o=e.server,f=e.contextUrl,d=e.serverVariables,m=d===void 0?{}:d,g=Bl()(r,["paths",n,(a||"").toLowerCase(),"servers"])||Bl()(r,["paths",n,"servers"])||Bl()(r,["servers"]),b="",x=null;if(o&&g&&g.length){var I=$t()(g).call(g,function(W){return W.url});I.indexOf(o)>-1&&(b=o,x=g[I.indexOf(o)])}if(!b&&g&&g.length){b=g[0].url;var N=$n(g,1);x=N[0]}if(b.indexOf("{")>-1){var j=Jm(b);j.forEach(function(W){if(x.variables&&x.variables[W]){var ee=x.variables[W],te=m[W]||ee.default,se=new RegExp("{".concat(W,"}"),"g");b=b.replace(se,te)}})}return Ym(b,f)}function Ym(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e&&r?Gn.parse(Gn.resolve(r,e)):Gn.parse(e),a=Gn.parse(r),o=Od(n.protocol)||Od(a.protocol)||"",f=n.host||a.host,d=n.pathname||"",m;if(o&&f){var g;m=ut()(g="".concat(o,"://")).call(g,f+d)}else m=d;return m[m.length-1]==="/"?pn()(m).call(m,0,-1):m}function Jm(e){for(var r=[],n=/{([^}]+)}/g,a;a=n.exec(e);)r.push(a[1]);return r}function Xm(e){var r=e.spec,n=e.scheme,a=e.contextUrl,o=a===void 0?"":a,f=Gn.parse(o),d=Array.isArray(r.schemes)?r.schemes[0]:null,m=n||d||Od(f.protocol)||"http",g=r.host||f.host||"",b=r.basePath||"",x;if(m&&g){var I;x=ut()(I="".concat(m,"://")).call(I,g+b)}else x=b;return x[x.length-1]==="/"?pn()(x).call(x,0,-1):x}Ir.http=Co,Ir.makeHttp=ds.bind(null,Ir.http),Ir.resolve=$p,Ir.resolveSubtree=pm,Ir.execute=$m,Ir.serializeRes=Pl,Ir.serializeHeaders=Il,Ir.clearCache=cm,Ir.makeApisTagOperation=mm,Ir.buildRequest=_p,Ir.helpers={opId:Gf},Ir.getBaseUrl=qp;function Ir(e){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string"?n.url=e:n=e,!(this instanceof Ir))return new Ir(n);Fr()(this,n);var a=this.resolve().then(function(){return r.disableInterfaces||Fr()(r,Ir.makeApisTagOperation(r)),r});return a.client=this,a}Ir.prototype={http:Co,execute:function(r){return this.applyDefaults(),Ir.execute(lr({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:typeof this.url=="string"?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},r))},resolve:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Ir.resolve(lr({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,skipNormalization:this.skipNormalization||!1},n)).then(function(a){return r.originalSpec=r.spec,r.spec=a.spec,r.errors=a.errors,r})}},Ir.prototype.applyDefaults=function(){var r=this.spec,n=this.url;if(n&&qn()(n).call(n,"http")){var a=Gn.parse(n);r.host||(r.host=a.host),r.schemes||(r.schemes=[a.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var o1=Ir.helpers;const Qm=Ir;var Bt=s(10400),Xn=s(8136),Zm=s(99561),jl=s(89519),Yf=s(91419),eh=s(56642),ja=s(67262),_m=Object.defineProperty,qm=Object.defineProperties,ey=Object.getOwnPropertyDescriptors,th=Object.getOwnPropertySymbols,ty=Object.prototype.hasOwnProperty,ry=Object.prototype.propertyIsEnumerable,rh=(e,r,n)=>r in e?_m(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Vl=(e,r)=>{for(var n in r||(r={}))ty.call(r,n)&&rh(e,n,r[n]);if(th)for(var n of th(r))ry.call(r,n)&&rh(e,n,r[n]);return e},ny=(e,r)=>qm(e,ey(r)),Jf=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});const nh="/oauth2-redirect.html";class Ai{static authorizeImplicit({authorizationUrl:r,clientId:n,scopes:a,extraParams:o={},routingBasePath:f,redirectUri:d,successCallback:m,errorCallback:g}){const b=(0,ja.p8)({date:new Date().toString()}),x=new URL(r),I=f==="/"?"":f,N=`${window.location.origin}${I}${nh}`;x.searchParams.set("client_id",n),x.searchParams.set("redirect_uri",d||N),x.searchParams.set("response_type","token"),x.searchParams.set("state",b),Array.isArray(a)&&x.searchParams.set("scope",a.join(" "));for(const j in o)x.searchParams.set(j,o[j]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:n,scopes:a},state:b,successCallback:j=>{m(j),Ai.clearRedirectData("implicit")},errorCallback:j=>{g(j),Ai.clearRedirectData("implicit")}},window.open(x.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:n,clientId:a,clientSecret:o,codeVerifier:f,codeChallenge:d,scopes:m,extraParams:g={},extraHeaders:b={},routingBasePath:x,redirectUri:I,successCallback:N,errorCallback:j}){const W=new URL(r),ee=x==="/"?"":x,te=`${window.location.origin}${ee}${nh}`,se=(0,ja.p8)({date:new Date().toString()});W.searchParams.set("client_id",a),W.searchParams.set("redirect_uri",I||te),W.searchParams.set("response_type","code"),W.searchParams.set("state",se),Array.isArray(m)&&W.searchParams.set("scope",m.join(" ")),d&&(W.searchParams.set("code_challenge",d),W.searchParams.set("code_challenge_method","S256"));for(const ie in g)W.searchParams.set(ie,g[ie]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:a,scopes:m},state:se,successCallback:ie=>Jf(this,[ie],function*({auth_code:de}){try{const we=yield fetch(n,{method:"POST",headers:Vl({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},b),body:eh.stringify(Vl(ny(Vl({client_id:a,client_secret:o},f&&{code_verifier:f}),{code:de,grant_type:"authorization_code",redirect_uri:I||te}),g))});yield ih(we,N,j)}catch(we){j(we)}Ai.clearRedirectData("authorizationCode")}),errorCallback:ie=>{j(ie),Ai.clearRedirectData("authorizationCode")}},window.open(W.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return Jf(this,arguments,function*({tokenUrl:n,clientId:a,clientSecret:o,scopes:f=[],extraParams:d={},extraHeaders:m={},successCallback:g,errorCallback:b}){try{const x=JSON.parse(JSON.stringify(Vl({client_id:a,client_secret:o,grant_type:"client_credentials",scope:Array.isArray(f)&&f.length?f.join(" "):void 0},d))),I=yield fetch(n,{method:"POST",headers:Vl({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},m),body:eh.stringify(x)});yield ih(I,g,b)}catch(x){b(x)}})}}const s1=new Ai;function ih(e,r,n){return Jf(this,null,function*(){if(e.ok){const a=yield e.json();r(a)}else n(new Error((e.headers.get("Content-Type")||"").indexOf("json")>-1?JSON.stringify(yield e.json()):yield e.text()))})}function ah(e){return Jf(this,null,function*(){return(0,ja.rS)(yield(0,ja.JQ)(e))})}var l1=s(20340),gs=(e=>(e.STRING="string",e.ARRAY="array",e.OBJECT="object",e))(gs||{}),Td=(e=>(e.BYTE="byte",e.BASE64="base64",e.BINARY="binary",e))(Td||{}),oh=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});const sh=Object.values(Td),iy=["application/octet-stream","application/pdf","application/gzip","application/zip"],lh=["image/","audio/","video/"];function uh(e){if(lh.some(r=>e.startsWith(r)))return e}function Xf(e){return iy.includes(e)?!0:lh.some(r=>e.startsWith(r))}function ay(e){const r=e.type==="array"?e.items:e;if(!r||!r.type||(r==null?void 0:r.type)==="any")return!0;const n=r.contentMediaType||"",a=r.format||r.contentEncoding||(Xf(n)?"binary":"");return r.type===gs.STRING&&sh.includes(a)}function fh(e,r){if(!e||!e.type||e.type==="any")return Xf(r);const n=e.format||e.contentEncoding||"";return e.type===gs.STRING&&sh.includes(n)}function ch(e){return new Promise((r,n)=>{const a=new FileReader;a.onload=()=>{const f=a.result.replace(/data:.*\/.*;base64,/g,"");r(f)},a.onerror=()=>n(a.error),a.readAsDataURL(e)})}function dh({format:e,contentEncoding:r,contentMediaType:n}){return[e,r,n].includes(Td.BASE64)}function oy(e,r){return oh(this,null,function*(){const n=Object.values(e);let a=n.length===1?n[0]:n;return r.type===gs.STRING&&dh(r)?a=yield ch(n[0]):r.type===gs.ARRAY&&r.items&&(dh(r.items)?a=yield Promise.all(n.map(f=>oh(this,null,function*(){return yield ch(f)}))):a=n),a})}var ft=s(45091),Ut=s(41195),Qf=s(88635),ph=s(54302),sy=Object.defineProperty,ly=Object.defineProperties,uy=Object.getOwnPropertyDescriptors,Zf=Object.getOwnPropertySymbols,hh=Object.prototype.hasOwnProperty,vh=Object.prototype.propertyIsEnumerable,gh=(e,r,n)=>r in e?sy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,_f=(e,r)=>{for(var n in r||(r={}))hh.call(r,n)&&gh(e,n,r[n]);if(Zf)for(var n of Zf(r))vh.call(r,n)&&gh(e,n,r[n]);return e},fy=(e,r)=>ly(e,uy(r)),cy=(e,r)=>{var n={};for(var a in e)hh.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Zf)for(var a of Zf(e))r.indexOf(a)<0&&vh.call(e,a)&&(n[a]=e[a]);return n};const mh=e=>Ut.iv`
|
|
95
|
+
border: var(--input-border);
|
|
96
|
+
outline: none;
|
|
97
|
+
padding: var(--input-padding);
|
|
98
|
+
border-radius: var(--input-border-radius);
|
|
99
|
+
background-color: var(--panel-${e}-input-background-color);
|
|
100
|
+
color: var(--input-text-color);
|
|
101
|
+
font-family: var(--input-font-family);
|
|
102
|
+
font-size: var(--input-font-size);
|
|
103
|
+
line-height: var(--input-line-height);
|
|
104
|
+
|
|
105
|
+
&::placeholder {
|
|
106
|
+
opacity: 0.6;
|
|
107
|
+
color: var(--input-placeholder-text-color);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&:hover {
|
|
111
|
+
color: var(--input-hover-text-color);
|
|
112
|
+
border: var(--input-hover-border);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&:focus {
|
|
116
|
+
color: var(--input-focus-text-color);
|
|
117
|
+
border: var(--input-focus-border);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&:-webkit-autofill {
|
|
121
|
+
background-color: var(--panel-${e}-input-background-color);
|
|
122
|
+
}
|
|
123
|
+
`,yh=Ut.ZP.div`
|
|
124
|
+
display: ${({type:e})=>e==="hidden"?"none":"inline-block"};
|
|
125
|
+
${({fullWidth:e})=>e?"width: 100%;":""}
|
|
126
|
+
`,dy=Ut.ZP.div`
|
|
127
|
+
position: relative;
|
|
128
|
+
`,py=Ut.ZP.input`
|
|
129
|
+
${({panel:e})=>mh(e)}
|
|
130
|
+
${({inputType:e,inputActionButton:r})=>e==="password"||r?"padding-right: 40px;":""};
|
|
131
|
+
${({fullWidth:e})=>e?"width: 100%;":""}
|
|
132
|
+
`,bh=Ut.ZP.span`
|
|
133
|
+
position: absolute;
|
|
134
|
+
right: 0;
|
|
135
|
+
line-height: normal;
|
|
136
|
+
|
|
137
|
+
font-size: 0.8em;
|
|
138
|
+
padding: calc(8px / 0.8);
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
text-align: center;
|
|
141
|
+
color: var(--panel-samples-text-color);
|
|
142
|
+
`;function hy(e,r){var n=e,{fullWidth:a,errorMessage:o,type:f,inputActionButton:d,panel:m="samples"}=n,g=cy(n,["fullWidth","errorMessage","type","inputActionButton","panel"]);const[b,x]=(0,h.useState)(f==="password"),I=(0,h.useCallback)(()=>{x(!b)},[b]);return h.createElement(yh,{fullWidth:a,type:f},h.createElement(dy,null,h.createElement(py,_f({fullWidth:a,inputActionButton:d,type:b?"password":"text",inputType:f,ref:r,panel:m},g)),d?h.createElement(bh,{onClick:d.onClick},d.label):f==="password"?h.createElement(bh,{onClick:I},b?"show":"hide"):null),o?h.createElement(ft.Xq,null,o):null)}const Ul=(0,h.forwardRef)(hy);function Dn(e){const r=Pn(_f({fieldType:"text"},e)),{userProps:n,render:a,fieldState:o}=r,f=r.informed;return a(h.createElement(Ul,fy(_f(_f({},n),f),{errorMessage:o.error})))}const Wl=Vr(({initValue:e,options:r,fieldApi:n,fieldState:a})=>{const o=r.map((b,x)=>({value:b.title||b.value,idx:x,origValue:b.value})),f=o.find(b=>b.origValue===e),[d,m]=(0,h.useState)(f==null?void 0:f.value);(0,Qf.b6)(()=>{e&&n.setValue(e)});const g=(0,h.useCallback)(b=>{n.setValue(o[b.idx].origValue),m(o[b.idx].value)},[n,o]);return h.createElement(yh,{fullWidth:!0},h.createElement(ph.Dropdown,{fullWidth:!0,variant:"dark",value:d,options:o,onChange:g}),a.error?h.createElement(ft.Xq,null,a.error):null)});var Bn=s(55158);const vy=Vr(({initValue:e,paramEnum:r,fieldApi:n})=>{const[a,o]=(0,h.useState)(),f=r.map((g,b)=>({idx:b,value:g})),d=g=>{n.setValue(g.value),o(g.value)};(0,Qf.b6)(()=>{if(!!e)if(Array.isArray(e)){const g=e.length?e[0]:"";o(g),n.setValue(g)}else o(e),n.setValue(e)});const m=()=>{n.setValue(""),o("")};return h.createElement(Bn.VD,{clearable:!0,fullWidth:!0,variant:"dark",value:a,options:f,handleClear:m,onChange:d})}),gy=({name:e,param:r,place:n,renderParameter:a})=>{var o,f,d,m,g;const[b,x]=h.useState([]),I=()=>{x([...b,b.length?b[b.length-1]+1:0])},N=W=>{x(b.filter(ee=>ee!==W))},j=(o=r.schema.items)!=null&&o.fields?(f=r.schema.items)==null?void 0:f.fields:[{schema:((d=r.schema.items)==null?void 0:d.schema)||r.schema.items,name:"",required:r.required,description:(m=r.schema.items)==null?void 0:m.description,externalDocs:(g=r.schema.items)==null?void 0:g.externalDocs,deprecated:!1,toggle:()=>null,expanded:!1}];return h.createElement(h.Fragment,null,h.createElement(xh,null,h.createElement(ft.lX,{required:r.required},e,"(",b.length," items)"),h.createElement("span",{onClick:I},"Add item +")),b==null?void 0:b.map((W,ee)=>h.createElement(xh,{key:W},h.createElement(my,{onClick:()=>N(W)},"delete"),j.map(te=>a(te,n,`${e}.[${W}]`,`[${ee}]${te.name&&"."+te.name}`)))))},xh=Ut.ZP.div`
|
|
143
|
+
display: flex;
|
|
144
|
+
width: 100%;
|
|
145
|
+
align-items: center;
|
|
146
|
+
justify-content: space-between;
|
|
147
|
+
flex-wrap: wrap;
|
|
148
|
+
margin-bottom: 10px;
|
|
149
|
+
label {
|
|
150
|
+
padding-bottom: 0;
|
|
151
|
+
overflow: hidden;
|
|
152
|
+
text-overflow: ellipsis;
|
|
153
|
+
line-height: 1.5;
|
|
154
|
+
}
|
|
155
|
+
span {
|
|
156
|
+
cursor: pointer;
|
|
157
|
+
margin-left: auto;
|
|
158
|
+
color: var(--text-color-secondary);
|
|
159
|
+
&:hover {
|
|
160
|
+
color: #fff;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
`,my=Ut.ZP.span`
|
|
164
|
+
background: transparent;
|
|
165
|
+
border: none;
|
|
166
|
+
cursor: pointer;
|
|
167
|
+
position: relative;
|
|
168
|
+
`;var Hl=(e=>(e.ARRAY="array",e.OBJECT="object",e))(Hl||{});function yy({schema:e,example:r}){return`(${e.type})`+(r?` ${r}`:"")}function by(e){const r={};return e.forEach(n=>{n.in&&(r[n.in]||(r[n.in]=[]),r[n.in].push(n))}),r}function xy({schema:e,required:r}){return n=>{if(r&&!n)return"Field is required";if(r&&e.type===Hl.ARRAY&&Array.isArray(n)){if(n.length>(e.rawSchema&&e.rawSchema.maxItems||1/0))return`Too many items selected, maximum ${e.rawSchema.maxItems}`;if(n.length<(e.rawSchema&&e.rawSchema.minItems||0)){const a=e.rawSchema.minItems;return`You should select at least ${a===1?`${a} item`:`${a} items`}`}}}}function Sy(e){if(e.type===Hl.ARRAY){const r=e.default||e.example;if(!r&&typeof e.rawSchema.items!="boolean"&&Array.isArray(e.rawSchema.items)){if(e.rawSchema.items[0].default)return[e.rawSchema.items[0].default];if(e.rawSchema.items[0].example)return[e.rawSchema.items[0].example]}if(!r&&typeof e.rawSchema.items!="boolean"&&!Array.isArray(e.rawSchema.items)&&(0,Xn.isObject)(e.rawSchema.items)){if(e.rawSchema.items.default)return[e.rawSchema.items.default];if(e.rawSchema.items.example)return[e.rawSchema.items.example]}return r||[]}else return(Number.isInteger(e.default)?e.default.toString():e.default)||e.example}function wy({oneOfType:e}){return e}const Ay=["path","query","cookie","header"];function Cy({id:e,param:r,values:n}){const a=(0,h.useMemo)(()=>xy(r),[r]),o=Array.isArray(r.schema.enum)&&r.schema.enum.length?r.schema.enum:void 0,f=Sy(r.schema),d=e.split(".").map(m=>(0,Bt.dw)(m));return o?h.createElement(ft.NI,null,h.createElement(vy,{initValue:f,paramEnum:o,field:e})):h.createElement(Dn,{fullWidth:!0,"data-cy":"parameter-input",id:e,field:e,placeholder:yy(r),validate:a,initialValue:f||(0,Bt.U2)(n,d),validateOnBlur:!0,validateOnChange:!0})}function Ey({values:e,operation:r}){const n=(0,h.useMemo)(()=>by(r.parameters||[]),[r]),a=(f,d,m,g)=>{var b;const x=m?(0,Bt.s1)(m,f.name):f.name,I=wy(f.schema),N=m?[d,m]:[f.in],j=(0,Bt.s1)(...N,(0,Bt.A8)(f.name));return I&&console.warn(`Unsupported parameter definition: "${I}"`),f.schema.type===Hl.ARRAY?h.createElement(gy,{key:j,name:x,param:f,place:d,renderParameter:a}):f.schema.type===Hl.OBJECT?(b=f.schema.fields)==null?void 0:b.map(W=>a(W,d,x)):h.createElement(ft.NI,{key:j},h.createElement(ft.lX,{required:f.required},g||x,":"),I?h.createElement(ft.GE,null,"Unsupported field schema definition"):h.createElement(Cy,{id:j,param:f,values:e}))},o=f=>{const d=n[f];return!d||!d.length?null:h.createElement(h.Fragment,{key:f},h.createElement(ft.NI,null,h.createElement(ft.iG,null," # ",f," parameters "),h.createElement("span",null,"\xA0")),d.map(m=>a(m,f)))};return h.createElement(ft.iA,null,Ay.map(o))}var Sh=s(93892),Xt=s(34469),Oy=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});function Ty(e){return Oy(this,null,function*(){return(yield fetch(e)).json()})}const Py=Ut.ZP.div`
|
|
169
|
+
position: relative;
|
|
170
|
+
height: 4px;
|
|
171
|
+
display: block;
|
|
172
|
+
width: 100%;
|
|
173
|
+
background-color: var(--linear-progress-background-color);
|
|
174
|
+
border-radius: var(--border-radius);
|
|
175
|
+
background-clip: padding-box;
|
|
176
|
+
margin: 0.5rem 0 1rem 0;
|
|
177
|
+
overflow: hidden;
|
|
178
|
+
|
|
179
|
+
.determinate {
|
|
180
|
+
position: absolute;
|
|
181
|
+
top: 0;
|
|
182
|
+
bottom: 0;
|
|
183
|
+
background-color: var(--linear-progress-color);
|
|
184
|
+
transition: width 0.3s linear;
|
|
185
|
+
}
|
|
186
|
+
.indeterminate {
|
|
187
|
+
background-color: var(--linear-progress-color);
|
|
188
|
+
}
|
|
189
|
+
.indeterminate:before {
|
|
190
|
+
content: '';
|
|
191
|
+
position: absolute;
|
|
192
|
+
background-color: inherit;
|
|
193
|
+
top: 0;
|
|
194
|
+
left: 0;
|
|
195
|
+
bottom: 0;
|
|
196
|
+
will-change: left, right;
|
|
197
|
+
-webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
198
|
+
animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
199
|
+
}
|
|
200
|
+
.indeterminate:after {
|
|
201
|
+
content: '';
|
|
202
|
+
position: absolute;
|
|
203
|
+
background-color: inherit;
|
|
204
|
+
top: 0;
|
|
205
|
+
left: 0;
|
|
206
|
+
bottom: 0;
|
|
207
|
+
will-change: left, right;
|
|
208
|
+
-webkit-animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
|
|
209
|
+
animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
|
|
210
|
+
-webkit-animation-delay: 1.15s;
|
|
211
|
+
animation-delay: 1.15s;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@-webkit-keyframes indeterminate {
|
|
215
|
+
0% {
|
|
216
|
+
left: -35%;
|
|
217
|
+
right: 100%;
|
|
218
|
+
}
|
|
219
|
+
60% {
|
|
220
|
+
left: 100%;
|
|
221
|
+
right: -90%;
|
|
222
|
+
}
|
|
223
|
+
100% {
|
|
224
|
+
left: 100%;
|
|
225
|
+
right: -90%;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
@keyframes indeterminate {
|
|
229
|
+
0% {
|
|
230
|
+
left: -35%;
|
|
231
|
+
right: 100%;
|
|
232
|
+
}
|
|
233
|
+
60% {
|
|
234
|
+
left: 100%;
|
|
235
|
+
right: -90%;
|
|
236
|
+
}
|
|
237
|
+
100% {
|
|
238
|
+
left: 100%;
|
|
239
|
+
right: -90%;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
@-webkit-keyframes indeterminate-short {
|
|
243
|
+
0% {
|
|
244
|
+
left: -200%;
|
|
245
|
+
right: 100%;
|
|
246
|
+
}
|
|
247
|
+
60% {
|
|
248
|
+
left: 107%;
|
|
249
|
+
right: -8%;
|
|
250
|
+
}
|
|
251
|
+
100% {
|
|
252
|
+
left: 107%;
|
|
253
|
+
right: -8%;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
@keyframes indeterminate-short {
|
|
257
|
+
0% {
|
|
258
|
+
left: -200%;
|
|
259
|
+
right: 100%;
|
|
260
|
+
}
|
|
261
|
+
60% {
|
|
262
|
+
left: 107%;
|
|
263
|
+
right: -8%;
|
|
264
|
+
}
|
|
265
|
+
100% {
|
|
266
|
+
left: 107%;
|
|
267
|
+
right: -8%;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
`,wh=()=>h.createElement(Py,null,h.createElement("div",{className:"indeterminate"}));var vn=s(81804),Iy=Object.defineProperty,ky=Object.defineProperties,Fy=Object.getOwnPropertyDescriptors,Ah=Object.getOwnPropertySymbols,Ry=Object.prototype.hasOwnProperty,Ly=Object.prototype.propertyIsEnumerable,Ch=(e,r,n)=>r in e?Iy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,My=(e,r)=>{for(var n in r||(r={}))Ry.call(r,n)&&Ch(e,n,r[n]);if(Ah)for(var n of Ah(r))Ly.call(r,n)&&Ch(e,n,r[n]);return e},Ny=(e,r)=>ky(e,Fy(r));const Dy=Ut.ZP.input`
|
|
271
|
+
cursor: pointer;
|
|
272
|
+
margin-left: 0;
|
|
273
|
+
margin-right: 5px;
|
|
274
|
+
height: 20px;
|
|
275
|
+
|
|
276
|
+
align-self: baseline;
|
|
277
|
+
margin-top: 0;
|
|
278
|
+
margin-bottom: 0;
|
|
279
|
+
`,By=Ut.ZP.label`
|
|
280
|
+
display: inline-block;
|
|
281
|
+
cursor: pointer;
|
|
282
|
+
vertical-align: middle;
|
|
283
|
+
position: relative;
|
|
284
|
+
text-overflow: ellipsis;
|
|
285
|
+
overflow: hidden;
|
|
286
|
+
|
|
287
|
+
overflow-wrap: break-word;
|
|
288
|
+
line-height: 20px;
|
|
289
|
+
`,jy=Ut.ZP.div`
|
|
290
|
+
width: ${({fullWidth:e})=>e?"100%":"50%"};
|
|
291
|
+
display: inline-flex;
|
|
292
|
+
align-items: center;
|
|
293
|
+
|
|
294
|
+
& > label {
|
|
295
|
+
white-space: ${({nowrap:e})=>e?"nowrap":"normal"};
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
${({nowrap:e})=>e?"":`
|
|
299
|
+
:not(:first-child) {
|
|
300
|
+
margin-top: 5px;
|
|
301
|
+
}
|
|
302
|
+
`}
|
|
303
|
+
`;function Vy(e,r){const{fullWidth:n,id:a,label:o,nowrap:f}=e;return h.createElement(jy,{fullWidth:n,nowrap:f},h.createElement(Dy,Ny(My({},e),{type:"checkbox",ref:r})),h.createElement(By,{htmlFor:a},o))}const Eh=(0,h.forwardRef)(Vy);var Uy=Object.defineProperty,Wy=(e,r,n)=>r in e?Uy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Hy=(e,r,n)=>(Wy(e,typeof r!="symbol"?r+"":r,n),n);const zy=11;class Gy extends h.Component{constructor(){super(...arguments),Hy(this,"state",{collapsed:!0})}onCheckBoxClick(r){const n=r.target.value,a=r.target.checked;this.props.fieldApi.setTouched(!0);const o=this.props.fieldApi.getValue()||[];let f;if(a)f=[...o,n];else{const d=o.indexOf(n);f=[...o.slice(0,d),...o.slice(d+1)]}this.props.fieldApi.setValue(f)}isFieldChecked(r){return this.props.fieldApi.getValue().includes(r)}toggle(){this.setState({collapsed:!this.state.collapsed})}selectAll(){this.props.fieldApi.setValue(this.props.items)}clearAll(){this.props.fieldApi.setValue([])}render(){const{items:r,fieldApi:n,validateOnChange:a,maxDisplayedItems:o,showControls:f,trimItemsLength:d}=this.props,{collapsed:m}=this.state,g=n.getError(),b=o||zy,x=d&&this.state.collapsed?r.slice(0,b):r;return h.createElement("div",null,f?h.createElement(Ky,null,h.createElement(vn.SamplesControlButton,{onClick:()=>{this.selectAll()}},"Select all"),h.createElement(vn.SamplesControlButton,{onClick:()=>{this.clearAll()}},"Clear")):null,h.createElement("div",null,x.map(I=>h.createElement(Eh,{fullWidth:!0,id:I,value:I,checked:this.isFieldChecked(I),label:I,key:I,onChange:N=>{this.onCheckBoxClick(N),a&&n.validate()}})),r.length>b&&d?h.createElement(Yy,{onClick:()=>{this.toggle()}},m?"Show all":"Collapse"):null),g?h.createElement(ft.Xq,null,g):"")}}const $y=Vr(Gy),Ky=(0,Ut.ZP)(vn.SampleControls)`
|
|
304
|
+
opacity: 1;
|
|
305
|
+
text-align: left;
|
|
306
|
+
`,Yy=(0,Ut.ZP)(vn.SamplesControlButton)`
|
|
307
|
+
float: right;
|
|
308
|
+
`;function Oh(e){const{scopes:r,id:n}=e;let a=[];try{a=JSON.parse((0,Bt.YQ)(`auth.${n}.scopes`))}catch(o){}return!r||!r.length?h.createElement(h.Fragment,null):h.createElement(ft.NI,null,h.createElement(ft.lX,null," Scopes: "),h.createElement($y,{field:`auth.${n}.scopes`,initialValue:a,items:r,showControls:!0,trimItemsLength:!0}))}var Jy=Object.defineProperty,Xy=Object.defineProperties,Qy=Object.getOwnPropertyDescriptors,Th=Object.getOwnPropertySymbols,Zy=Object.prototype.hasOwnProperty,_y=Object.prototype.propertyIsEnumerable,Pd=(e,r,n)=>r in e?Jy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,qf=(e,r)=>{for(var n in r||(r={}))Zy.call(r,n)&&Pd(e,n,r[n]);if(Th)for(var n of Th(r))_y.call(r,n)&&Pd(e,n,r[n]);return e},Id=(e,r)=>Xy(e,Qy(r)),zl=(e,r,n)=>(Pd(e,typeof r!="symbol"?r+"":r,n),n),qy=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});function e0(e){if(!e)return"Field is required"}class Gl extends h.Component{constructor(){super(...arguments),zl(this,"state",{error:null,loading:!1,showPkceOptions:!1}),zl(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,"")}),zl(this,"togglePkceOptions",()=>{this.setState(({showPkceOptions:r})=>({showPkceOptions:!r}))}),zl(this,"handleCodeVerifierChange",r=>qy(this,[r],function*({target:{value:n}}){const a=yield ah(n);this.setState({codeVerifier:n,validCodeChallenge:a})}))}get values(){var r,n;return((n=(r=this.props.form.values)==null?void 0:r.auth)==null?void 0:n[this.props.id])||{}}get errors(){var r,n;return((n=(r=this.props.form.errors)==null?void 0:r.auth)==null?void 0:n[this.props.id])||{}}get pkceInputActionButtonProps(){if(this.state.codeVerifier!==void 0&&this.state.codeChallenge!==this.state.validCodeChallenge)return{label:"sync",onClick:()=>{this.state.codeVerifier&&this.setState({codeChallenge:this.state.validCodeChallenge})}}}componentDidMount(){if(this.props.usePkce){const r=(0,ja.CY)(43);ah(r).then(n=>{this.setState({codeVerifier:r,codeChallenge:n,validCodeChallenge:n})})}}handleAuthorize(r){if(!r)return;this.props.formApi.validate();const{flow:n,usePkce:a,id:o,tokenUrl:f,authCorsProxyUrl:d,tokenEndpointAuthMethod:m}=this.props;if(!(0,ja.Qr)(this.errors))return;this.setState({loading:!0,error:null});const g=d?d+(0,Xt.jg)(r):r,b=d&&f?d+(0,Xt.jg)(f):f,x=this.props.formApi.getValue(`auth.${o}.scopes`),I={authorizationUrl:g.startsWith("http")?g:this.props.server+g,clientId:this.values.client_id,scopes:x,redirectUri:this.context.oAuth2RedirectURI,routingBasePath:this.context.routingBasePath,successCallback:N=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,N),this.setState({loading:!1,error:null})},errorCallback:N=>{this.setState({loading:!1,error:(N==null?void 0:N.message)||"Failed to retrieve the access token"})}};if(n==="implicit"&&Ai.authorizeImplicit(I),!(0,Xt.xl)(m)){console.log(`Unsupported token endpoint auth method: ${m}`);return}n==="authorizationCode"&&Ai.authorizeAuthorizationCode(qf(Id(qf({},I),{tokenUrl:b!=null&&b.startsWith("http")?b:this.props.server+b,clientSecret:this.values.client_secret,extraHeaders:(0,Xt.Or)({authMethod:m,clientId:this.values.client_id,clientSecret:this.values.client_secret})}),a&&{codeVerifier:this.state.codeVerifier,codeChallenge:this.state.codeChallenge}))}handleLogout(){this.clearToken(),this.setState({error:null})}handleCancel(){this.setState({loading:!1,error:null}),Ai.clearRedirectData(this.props.flow)}render(){const{error:r,loading:n}=this.state,{id:a,scopes:o,authorizationUrl:f,flow:d,usePkce:m,defaultValues:g}=this.props;if(!f)return h.createElement(ft.Xq,null,"No flow info");let b=(0,Bt.YQ)(`auth.${a}.token`)||JSON.stringify(g==null?void 0:g.token);b=b?JSON.parse(b):"";const x=(0,Bt.Al)(a,"client_id"),I={field:`auth.${a}.client_id`,fullWidth:!0,initialValue:(0,Bt.YQ)(`auth.${a}.client_id`)||this.props.clientId||(g==null?void 0:g.client_id),initValue:(0,Bt.YQ)(`auth.${a}.client_id`)||this.props.clientId||(g==null?void 0:g.client_id),placeholder:"Your OAuth2 app Client ID",validate:e0,validateOnBlur:!0,validateOnChange:!0};return h.createElement("div",null,h.createElement(ft.n5,null,h.createElement(ft.NI,null,h.createElement(ft.lX,null," Client ID: "),x?h.createElement(Wl,Id(qf({},I),{options:x})):h.createElement(Dn,Id(qf({},I),{"data-cy":"client-id-input",panel:"try-it"}))),d==="authorizationCode"&&h.createElement(h.Fragment,null,(!(m!=null&&m.hideClientSecretInput)||!m)&&h.createElement(ft.NI,null,h.createElement(ft.lX,null,"Client Secret:"),h.createElement(Dn,{type:"password",fullWidth:!0,field:`auth.${a}.client_secret`,initialValue:(0,Bt.YQ)(`auth.${a}.client_secret`)||(g==null?void 0:g.client_secret),validateOnBlur:!0,validateOnChange:!0,panel:"try-it","data-cy":"client-secret-input"})),m&&!m.disableManualConfiguration&&h.createElement(n0,null,h.createElement(Eh,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:this.state.showPkceOptions,onChange:this.togglePkceOptions,"data-cy":"pkce-options-toggle"}),this.state.showPkceOptions&&h.createElement(i0,null,h.createElement(ft.NI,null,h.createElement(ft.lX,null,"Code Verifier"),h.createElement(Ul,{fullWidth:!0,value:this.state.codeVerifier,onChange:this.handleCodeVerifierChange,panel:"try-it","data-cy":"code-verifier-input"})),h.createElement(ft.NI,null,h.createElement(ft.lX,null,"Code Challenge"),h.createElement(Ul,{fullWidth:!0,value:this.state.codeChallenge,onChange:({target:{value:N}})=>{this.setState({codeChallenge:N})},inputActionButton:this.pkceInputActionButtonProps,panel:"try-it","data-cy":"code-challenge-input"}))))),h.createElement(Dn,{fullWidth:!0,field:`auth.${a}.token`,type:"hidden",initialValue:b,panel:"try-it"}),h.createElement(Oh,{id:a,scopes:o}),this.values.token&&this.values.token.access_token?h.createElement(ft.NI,null,h.createElement(ft.lX,null," Access Token: "),h.createElement(Ul,{disabled:!0,type:"password",fullWidth:!0,value:this.values.token.access_token,panel:"try-it"})):null),h.createElement(r0,null,this.values.token&&this.values.token.access_token?h.createElement(vn.Button,{fullWidth:!0,onClick:()=>{this.handleLogout()}},"Log out"):n?h.createElement(h.Fragment,null,h.createElement(vn.Button,{fullWidth:!0,onClick:()=>{this.handleCancel()}},"Cancel"),h.createElement(wh,null)):h.createElement(vn.Button,{fullWidth:!0,disabled:!(0,ja.Qr)(this.errors),onClick:()=>{this.handleAuthorize(f)}},"Authorize")),n||r||!this.values.token||!this.values.token.access_token&&h.createElement(ft.n5,null,h.createElement(ft.NI,null,n?h.createElement(ft.GE,null,"Please, finish your authorization flow or cancel authorization."):r?h.createElement(h.Fragment,null,h.createElement(t0,null,h.createElement(ft.Xq,null,r))):!this.values.token||!this.values.token.access_token?h.createElement(ft.GE,null," No Access Token. Please, Authorize. "):null)))}}zl(Gl,"contextType",Xn.OptionsContext);const t0=Ut.ZP.div`
|
|
309
|
+
font-family: var(--font-family-monospaced);
|
|
310
|
+
margin-top: 10px;
|
|
311
|
+
line-height: 1;
|
|
312
|
+
padding-left: 10px;
|
|
313
|
+
border-left: 1px solid gray;
|
|
314
|
+
`,r0=Ut.ZP.div`
|
|
315
|
+
margin-bottom: 15px;
|
|
316
|
+
`,n0=Ut.ZP.div`
|
|
317
|
+
padding: 8px 0 20px;
|
|
318
|
+
`,i0=Ut.ZP.div`
|
|
319
|
+
padding: 4px 0;
|
|
320
|
+
`;var a0=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});function o0(e){var r,n;const{scheme:a,defaultValues:o}=e,[f,d]=(0,h.useState)({}),[m,g]=(0,h.useState)(),[b,x]=(0,h.useState)(!1);(0,h.useEffect)(()=>{I(a.openIdConnectUrl)},[a.openIdConnectUrl]);const I=N=>a0(this,null,function*(){x(!0),g("");try{const j=yield Ty(N);d(j)}catch(j){g(j.message)}x(!1)});return b?h.createElement(s0,null):m?h.createElement(Ph,{message:m}):h.createElement("div",null,h.createElement("div",null,(r=f==null?void 0:f.response_types_supported)!=null&&r.includes("token")?h.createElement(h.Fragment,null,h.createElement(Bn.S6,null,"OAuth2 Implicit Flow"),h.createElement(Gl,{key:e.id,authorizationUrl:f.authorization_endpoint,authCorsProxyUrl:e.authCorsProxyUrl,scopes:f.scopes_supported,server:e.server,id:e.id,form:e.form,formApi:e.formApi,clientId:e.clientId,flow:"implicit",defaultValues:o})):(n=f==null?void 0:f.response_types_supported)!=null&&n.includes("code")?h.createElement(h.Fragment,null,h.createElement(Bn.S6,null,"OAuth2 Authorization Flow"),h.createElement(Gl,{key:e.id,authorizationUrl:f.authorization_endpoint,tokenUrl:f.token_endpoint,authCorsProxyUrl:e.authCorsProxyUrl,scopes:f.scopes_supported,server:e.server,id:e.id,form:e.form,formApi:e.formApi,clientId:e.clientId,tokenEndpointAuthMethod:f==null?void 0:f.token_endpoint_auth_methods_supported,flow:"authorizationCode",defaultValues:o})):h.createElement("div",null,"Unsupported flow")))}function s0(){return h.createElement("div",null,h.createElement("div",null,h.createElement("div",null,"Fetching OpenID Connect metadata..."),h.createElement(wh,null)))}function Ph({message:e}){return h.createElement("div",null,h.createElement("div",null,h.createElement(ft.Xq,null,e)))}var l0=Object.defineProperty,u0=Object.defineProperties,f0=Object.getOwnPropertyDescriptors,Ih=Object.getOwnPropertySymbols,c0=Object.prototype.hasOwnProperty,d0=Object.prototype.propertyIsEnumerable,kd=(e,r,n)=>r in e?l0(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,kh=(e,r)=>{for(var n in r||(r={}))c0.call(r,n)&&kd(e,n,r[n]);if(Ih)for(var n of Ih(r))d0.call(r,n)&&kd(e,n,r[n]);return e},Fh=(e,r)=>u0(e,f0(r)),ec=(e,r,n)=>(kd(e,typeof r!="symbol"?r+"":r,n),n),p0=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});function h0(e){if(!e)return"Token is required"}class v0 extends h.Component{constructor(){super(...arguments),ec(this,"state",{error:"",loading:!1,tokenMasked:!0}),ec(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,""),(0,Bt.WW)(`auth.${this.props.id}.token`,"")}),ec(this,"toggleTokenMask",()=>{this.setState({tokenMasked:!this.state.tokenMasked})}),ec(this,"requestToken",()=>p0(this,null,function*(){if(this.state.loading)return;const{server:r,flow:n,authCorsProxyUrl:a}=this.props,o=a&&n.tokenUrl?a+(0,Xt.jg)(n.tokenUrl):n.tokenUrl;if(this.errors.client_id||this.errors.client_secret){console.log("Provide client_id and client_secret");return}const f=this.values.client_id,d=this.values.client_secret;if(!f||!d){console.log("Provide client_id and client_secret");return}this.setState({loading:!0});const m=n["x-tokenEndpointAuthMethod"];if(!(0,Xt.xl)(m)){console.log(`Unsupported token endpoint auth method: ${m}`);return}yield Ai.authorizeClientCredentials({tokenUrl:o.startsWith("http")?o:r+o,clientId:f,clientSecret:d,scopes:this.values.scopes,extraHeaders:(0,Xt.Or)({authMethod:m,clientId:f,clientSecret:d}),successCallback:g=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,g),this.setState({loading:!1})},errorCallback:g=>{this.clearToken(),this.setState({error:g.message,loading:!1})}})}))}get values(){var r,n,a;return((a=(n=(r=this.props.form)==null?void 0:r.values)==null?void 0:n.auth)==null?void 0:a[this.props.id])||{}}get errors(){var r,n;return((n=(r=this.props.form.errors)==null?void 0:r.auth)==null?void 0:n[this.props.id])||{}}render(){const{loading:r,error:n,tokenMasked:a}=this.state,{id:o,defaultValues:f}=this.props,d=Object.keys(this.props.flow.scopes);let m=(0,Bt.YQ)(`auth.${o}.token`)||JSON.stringify(f==null?void 0:f.token);m=m?JSON.parse(m):"";const g=(0,Bt.Al)(o,"client_id"),b={field:`auth.${o}.client_id`,fullWidth:!0,initialValue:(0,Bt.YQ)(`auth.${o}.client_id`)||this.props.clientId||(f==null?void 0:f.client_id),initValue:(0,Bt.YQ)(`auth.${o}.client_id`)||this.props.clientId||(f==null?void 0:f.client_id),placeholder:"Your OAuth2 app Client ID"};return h.createElement(h.Fragment,null,h.createElement(ft.n5,null,h.createElement(ft.NI,null,h.createElement(ft.lX,null,"Client ID:"),g?h.createElement(Wl,Fh(kh({},b),{options:g})):h.createElement(Dn,Fh(kh({},b),{type:"password",panel:"try-it"}))),h.createElement(ft.NI,null,h.createElement(ft.lX,null,"Client Secret:"),h.createElement(Dn,{type:"password",fullWidth:!0,field:`auth.${o}.client_secret`,initialValue:(0,Bt.YQ)(`auth.${o}.client_secret`)||(f==null?void 0:f.client_secret),panel:"try-it"})),h.createElement(Dn,{fullWidth:!0,field:`auth.${o}.token`,type:"hidden",initialValue:m,validate:h0}),h.createElement(Oh,{id:o,scopes:d})),h.createElement(vn.Button,{color:"primary",onClick:this.requestToken,blinking:r},r?"Loading...":"Request Token"),h.createElement(ft.ph,null," Access Token "),n?h.createElement(ft.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",h.createElement("pre",null,n)," "):this.values.token&&this.values.token.access_token?h.createElement(ft.TR,null,h.createElement(ft.WA,{length:this.values.token.access_token.length,masked:a},this.values.token.access_token),h.createElement(ft.lf,{onClick:this.toggleTokenMask},a?"Show":"Hide"," "),h.createElement(ft.h,{onClick:this.clearToken}," Clear ")):h.createElement(ft.Xq,{style:{marginBottom:"1em"}},"No token"))}}const g0=v0;var m0=Object.defineProperty,y0=Object.defineProperties,b0=Object.getOwnPropertyDescriptors,Rh=Object.getOwnPropertySymbols,x0=Object.prototype.hasOwnProperty,S0=Object.prototype.propertyIsEnumerable,Fd=(e,r,n)=>r in e?m0(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,ms=(e,r)=>{for(var n in r||(r={}))x0.call(r,n)&&Fd(e,n,r[n]);if(Rh)for(var n of Rh(r))S0.call(r,n)&&Fd(e,n,r[n]);return e},ys=(e,r)=>y0(e,b0(r)),Lh=(e,r,n)=>(Fd(e,typeof r!="symbol"?r+"":r,n),n);class w0 extends h.Component{constructor(){super(...arguments),Lh(this,"state",{activeScheme:0}),Lh(this,"handleSchemeChange",r=>{this.setState({activeScheme:r.idx}),(0,Bt.WW)("securityRequirementName",r.value)})}static getDerivedStateFromProps(r){const a=r.operation.security.map(d=>d.schemes.map(m=>m.id).join(" and ")),o=(0,Bt.YQ)("securityRequirementName"),f=a.findIndex(d=>d===o);return{activeScheme:f<0?0:f}}render(){const{securityDefaults:r}=this.props,{activeScheme:n}=this.state,a=this.props.operation.security,f=a.map(d=>d.schemes.map(m=>m.id).join(" and ")).filter(Boolean).map((d,m)=>({value:d,idx:m}));return f.length===0?h.createElement(Ph,{message:"Cannot find security schema in the definition"}):h.createElement(h.Fragment,null,h.createElement(ft.n5,null,f.length>1&&h.createElement(ft.NI,null,h.createElement(ft.lX,null," Security scheme: "),h.createElement(Bn.VD,{variant:"dark",fullWidth:!0,options:f,value:f[n].value,onChange:this.handleSchemeChange}))||null,a[n].schemes.map(d=>{var m,g,b,x,I,N,j;const W=(0,Bt.A8)(d.id);if(d.type==="apiKey"){const ee=(0,Bt.Al)(W,""),te={field:`auth.${W}`,fullWidth:!0,initialValue:(0,Xt.NG)(d)||(0,Bt.YQ)(`auth.${W}`)||(r==null?void 0:r[W]),initValue:(0,Xt.NG)(d)||(0,Bt.YQ)(`auth.${W}`)||(r==null?void 0:r[W]),validate:Xt.np,validateOnBlur:!0,validateOnChange:!0};return h.createElement(ft.NI,{key:W},h.createElement(ft.lX,null," ",d.name,": "),ee?h.createElement(Wl,ys(ms({},te),{options:ee})):h.createElement(Dn,ys(ms({},te),{type:"password",panel:"try-it","data-cy":"apiKey-auth-password"})))}else if(d.type==="http"){if(d.scheme==="basic"){const ee=(0,Bt.Al)(W,"username"),te={field:`auth.${W}.username`,fullWidth:!0,initialValue:(0,Bt.YQ)(`auth.${W}.username`)||((m=r==null?void 0:r[W])==null?void 0:m.username),initValue:(0,Bt.YQ)(`auth.${W}.username`)||((g=r==null?void 0:r[W])==null?void 0:g.username),validate:Xt.np,validateOnBlur:!0,validateOnChange:!0};return h.createElement(h.Fragment,{key:W},h.createElement(ft.NI,null,h.createElement(ft.lX,null," ",(0,jl.l)("tryItAuthBasicUsername"),": "),ee?h.createElement(Wl,ys(ms({},te),{options:ee})):h.createElement(Dn,ys(ms({},te),{panel:"try-it"}))),h.createElement(ft.NI,null,h.createElement(ft.lX,null," ",(0,jl.l)("tryItAuthBasicPassword"),": "),h.createElement(Dn,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${W}.password`,initialValue:(0,Bt.YQ)(`auth.${W}.password`)||((b=r==null?void 0:r[W])==null?void 0:b.password)||"",validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(d.scheme==="bearer"){const ee=(0,Bt.Al)(W,""),te={field:`auth.${W}`,fullWidth:!0,initialValue:(0,Bt.YQ)(`auth.${W}`)||(r==null?void 0:r[W]),initValue:(0,Bt.YQ)(`auth.${W}`)||(r==null?void 0:r[W]),validate:Xt.np,validateOnBlur:!0,validateOnChange:!0};return h.createElement(h.Fragment,{key:W},h.createElement(ft.NI,null,h.createElement(ft.lX,null," Bearer Token: "),ee?h.createElement(Wl,ys(ms({},te),{options:ee})):h.createElement(Dn,ys(ms({},te),{type:"password",placeholder:"(without 'Bearer')",panel:"try-it"}))))}}else{if(d.type==="oauth2"&&d.flows&&d.flows.clientCredentials)return h.createElement(g0,{key:W,flow:d.flows.clientCredentials,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:W,form:this.props.form,formApi:this.props.formApi,clientId:d.flows.clientCredentials["x-defaultClientId"]||d["x-defaultClientId"],defaultValues:r==null?void 0:r[W]});if(d.type==="oauth2"&&d.flows&&d.flows.implicit)return h.createElement(Gl,{key:W,authorizationUrl:d.flows.implicit.authorizationUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((I=(x=d==null?void 0:d.flows)==null?void 0:x.implicit)==null?void 0:I.scopes)||{}),server:this.props.activeServer,id:W,form:this.props.form,formApi:this.props.formApi,clientId:d.flows.implicit["x-defaultClientId"]||d["x-defaultClientId"],flow:"implicit",defaultValues:r==null?void 0:r[W]});if(d.type==="oauth2"&&d.flows&&d.flows.authorizationCode)return h.createElement(Gl,{key:W,authorizationUrl:d.flows.authorizationCode.authorizationUrl,tokenUrl:d.flows.authorizationCode.tokenUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((N=d.flows.authorizationCode)==null?void 0:N.scopes)||{}),server:this.props.activeServer,id:W,form:this.props.form,formApi:this.props.formApi,clientId:d.flows.authorizationCode["x-defaultClientId"]||d["x-defaultClientId"],flow:"authorizationCode",tokenEndpointAuthMethod:d.flows.authorizationCode["x-tokenEndpointAuthMethod"],usePkce:d.flows.authorizationCode["x-usePkce"],defaultValues:r==null?void 0:r[W]});if(d.type==="oauth2"){let ee=(0,Bt.YQ)(`auth.${W}.token`)||JSON.stringify((j=r==null?void 0:r[W])==null?void 0:j.token);return ee=ee?JSON.parse(ee):{},h.createElement(h.Fragment,{key:W},h.createElement(ft.NI,null,h.createElement(ft.lX,null," Access Token Type: "),h.createElement(Dn,{fullWidth:!0,field:`auth.${W}.token.token_type`,initialValue:ee.token_type||"Bearer",panel:"try-it"})),h.createElement(ft.NI,null,h.createElement(ft.lX,null," Access Token: "),h.createElement(Dn,{type:"password",fullWidth:!0,field:`auth.${W}.token.access_token`,validate:Xt.np,initialValue:ee.access_token,validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(d.type==="openIdConnect")return h.createElement(o0,{key:W,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:W,form:this.props.form,formApi:this.props.formApi,scheme:d,clientId:d["x-defaultClientId"],defaultValues:r==null?void 0:r[W]})}})),h.createElement("small",null,h.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))}}var Rd=s(74032),tc=s(43940),A0=Object.defineProperty,rc=Object.getOwnPropertySymbols,Mh=Object.prototype.hasOwnProperty,Nh=Object.prototype.propertyIsEnumerable,Dh=(e,r,n)=>r in e?A0(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,C0=(e,r)=>{for(var n in r||(r={}))Mh.call(r,n)&&Dh(e,n,r[n]);if(rc)for(var n of rc(r))Nh.call(r,n)&&Dh(e,n,r[n]);return e},Bh=(e,r)=>{var n={};for(var a in e)Mh.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&rc)for(var a of rc(e))r.indexOf(a)<0&&Nh.call(e,a)&&(n[a]=e[a]);return n},E0=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});const jh=(0,h.forwardRef)((e,r)=>{var n=Bh(e,[]);const a=n,{schema:o,contentName:f,onChange:d,name:m}=a,g=Bh(a,["schema","contentName","onChange","name"]),{render:b}=Pn(C0({field:m},g)),x=I=>E0(void 0,null,function*(){const N=yield oy(I.target.files,o);d(f,N)});return b(h.createElement("input",{"data-cy":"file-upload-input",type:"file",id:n.id,className:n.className,name:n.name,onChange:x,multiple:n.multiple,accept:n.accept,ref:r}))});jh.displayName="FileUpload";const O0=(0,$i.Pi)(e=>{var r;const{mediaType:n,onChange:a,formApi:o}=e,f=n.examples||{},{exampleKey:d}=(0,Rd.C6)(n.operation,f),m=(r=f[d])==null?void 0:r.rawValue,g=T0(n);(0,h.useEffect)(()=>o&&g.forEach(x=>{var I,N;const j=m==null?void 0:m[x.name],W=(N=(I=x.example)!=null?I:j==null?void 0:j.example)!=null?N:j,ee=typeof W=="object"?JSON.stringify(W):W;W!==void 0&&o.setValue("body."+x.name,`${ee}`)}),[d]);const b=n.schema||{};return fh(b,n.name)?h.createElement(Vh,null,h.createElement(ft.NI,null,h.createElement(Uh,{fullWidth:!0,id:`body.${n.name}`,name:`body.${n.name}`,accept:uh(n.name),schema:b,contentName:n.name,onChange:a}))):b.type!==gs.OBJECT&&!g?(console.warn(`Invalid schema for request body and mime type: "${n.name}"`,b),null):h.createElement(Vh,null,g.map(x=>{const I=x.schema||{contentMediaType:"",type:"",description:""},N=n.name===tc.T.MULTIPART&&ay(I),j=I.contentMediaType||"",W=N?h.createElement(Uh,{fullWidth:!0,id:"body."+x.name,name:"body."+x.name,accept:uh(j),multiple:I.type==="array",schema:I,contentName:x.name,onChange:a}):h.createElement(Dn,{fullWidth:!0,id:"body."+x.name,field:"body."+x.name,placeholder:I.description||x.name,panel:"try-it"});return h.createElement(ft.NI,{key:x.name},h.createElement(ft.lX,null,x.name,":"),W)}))});function T0(e){var r,n,a,o,f;return((n=(r=e.schema)==null?void 0:r.oneOf)!=null&&n.length?((o=e.schema)==null?void 0:o.oneOf[(a=e.schema)==null?void 0:a.activeOneOf].fields)||[]:((f=e.schema)==null?void 0:f.fields)||[]).filter(d=>!d.schema.readOnly)}const Vh=Ut.ZP.div`
|
|
321
|
+
> div {
|
|
322
|
+
margin-top: 10px;
|
|
323
|
+
}
|
|
324
|
+
`,Uh=(0,Ut.ZP)(jh)`
|
|
325
|
+
${mh("try-it")};
|
|
326
|
+
${({inputType:e})=>e==="password"?"padding-right: 40px;":""};
|
|
327
|
+
${({fullWidth:e})=>e?"width: 100%;":""}
|
|
328
|
+
`;var Wh=s(50397);const P0=(0,Ut.ZP)(Wh.A3)`
|
|
329
|
+
border-radius: var(--panel-border-radius);
|
|
330
|
+
margin-bottom: 10px;
|
|
331
|
+
`;var I0=s(63277),bs=s(23326);function nc(e,r){r===void 0&&(r=!1);var n=e.length,a=0,o="",f=0,d=16,m=0,g=0,b=0,x=0,I=0;function N(de,we){for(var xe=0,Ee=0;xe<de||!we;){var ye=e.charCodeAt(a);if(ye>=48&&ye<=57)Ee=Ee*16+ye-48;else if(ye>=65&&ye<=70)Ee=Ee*16+ye-65+10;else if(ye>=97&&ye<=102)Ee=Ee*16+ye-97+10;else break;a++,xe++}return xe<de&&(Ee=-1),Ee}function j(de){a=de,o="",f=0,d=16,I=0}function W(){var de=a;if(e.charCodeAt(a)===48)a++;else for(a++;a<e.length&&xs(e.charCodeAt(a));)a++;if(a<e.length&&e.charCodeAt(a)===46)if(a++,a<e.length&&xs(e.charCodeAt(a)))for(a++;a<e.length&&xs(e.charCodeAt(a));)a++;else return I=3,e.substring(de,a);var we=a;if(a<e.length&&(e.charCodeAt(a)===69||e.charCodeAt(a)===101))if(a++,(a<e.length&&e.charCodeAt(a)===43||e.charCodeAt(a)===45)&&a++,a<e.length&&xs(e.charCodeAt(a))){for(a++;a<e.length&&xs(e.charCodeAt(a));)a++;we=a}else I=3;return e.substring(de,we)}function ee(){for(var de="",we=a;;){if(a>=n){de+=e.substring(we,a),I=2;break}var xe=e.charCodeAt(a);if(xe===34){de+=e.substring(we,a),a++;break}if(xe===92){if(de+=e.substring(we,a),a++,a>=n){I=2;break}var Ee=e.charCodeAt(a++);switch(Ee){case 34:de+='"';break;case 92:de+="\\";break;case 47:de+="/";break;case 98:de+="\b";break;case 102:de+="\f";break;case 110:de+=`
|
|
332
|
+
`;break;case 114:de+="\r";break;case 116:de+=" ";break;case 117:var ye=N(4,!0);ye>=0?de+=String.fromCharCode(ye):I=4;break;default:I=5}we=a;continue}if(xe>=0&&xe<=31)if($l(xe)){de+=e.substring(we,a),I=2;break}else I=6;a++}return de}function te(){if(o="",I=0,f=a,g=m,x=b,a>=n)return f=n,d=17;var de=e.charCodeAt(a);if(Ld(de)){do a++,o+=String.fromCharCode(de),de=e.charCodeAt(a);while(Ld(de));return d=15}if($l(de))return a++,o+=String.fromCharCode(de),de===13&&e.charCodeAt(a)===10&&(a++,o+=`
|
|
333
|
+
`),m++,b=a,d=14;switch(de){case 123:return a++,d=1;case 125:return a++,d=2;case 91:return a++,d=3;case 93:return a++,d=4;case 58:return a++,d=6;case 44:return a++,d=5;case 34:return a++,o=ee(),d=10;case 47:var we=a-1;if(e.charCodeAt(a+1)===47){for(a+=2;a<n&&!$l(e.charCodeAt(a));)a++;return o=e.substring(we,a),d=12}if(e.charCodeAt(a+1)===42){a+=2;for(var xe=n-1,Ee=!1;a<xe;){var ye=e.charCodeAt(a);if(ye===42&&e.charCodeAt(a+1)===47){a+=2,Ee=!0;break}a++,$l(ye)&&(ye===13&&e.charCodeAt(a)===10&&a++,m++,b=a)}return Ee||(a++,I=1),o=e.substring(we,a),d=13}return o+=String.fromCharCode(de),a++,d=16;case 45:if(o+=String.fromCharCode(de),a++,a===n||!xs(e.charCodeAt(a)))return d=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=W(),d=11;default:for(;a<n&&se(de);)a++,de=e.charCodeAt(a);if(f!==a){switch(o=e.substring(f,a),o){case"true":return d=8;case"false":return d=9;case"null":return d=7}return d=16}return o+=String.fromCharCode(de),a++,d=16}}function se(de){if(Ld(de)||$l(de))return!1;switch(de){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function ie(){var de;do de=te();while(de>=12&&de<=15);return de}return{setPosition:j,getPosition:function(){return a},scan:r?ie:te,getToken:function(){return d},getTokenValue:function(){return o},getTokenOffset:function(){return f},getTokenLength:function(){return a-f},getTokenStartLine:function(){return g},getTokenStartCharacter:function(){return f-x},getTokenError:function(){return I}}}function Ld(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function $l(e){return e===10||e===13||e===8232||e===8233}function xs(e){return e>=48&&e<=57}function k0(e,r,n){var a,o,f,d,m;if(r){for(d=r.offset,m=d+r.length,f=d;f>0&&!Hh(e,f-1);)f--;for(var g=m;g<e.length&&!Hh(e,g);)g++;o=e.substring(f,g),a=F0(o,n)}else o=e,a=0,f=0,d=0,m=e.length;var b=R0(n,e),x=!1,I=0,N;n.insertSpaces?N=Md(" ",n.tabSize||4):N=" ";var j=nc(o,!1),W=!1;function ee(){return b+Md(N,a+I)}function te(){var Me=j.scan();for(x=!1;Me===15||Me===14;)x=x||Me===14,Me=j.scan();return W=Me===16||j.getTokenError()!==0,Me}var se=[];function ie(Me,Re,We){!W&&Re<m&&We>d&&e.substring(Re,We)!==Me&&se.push({offset:Re,length:We-Re,content:Me})}var de=te();if(de!==17){var we=j.getTokenOffset()+f,xe=Md(N,a);ie(xe,f,we)}for(;de!==17;){for(var Ee=j.getTokenOffset()+j.getTokenLength()+f,ye=te(),be="";!x&&(ye===12||ye===13);){var Se=j.getTokenOffset()+f;ie(" ",Ee,Se),Ee=j.getTokenOffset()+j.getTokenLength()+f,be=ye===12?ee():"",ye=te()}if(ye===2)de!==1&&(I--,be=ee());else if(ye===4)de!==3&&(I--,be=ee());else{switch(de){case 3:case 1:I++,be=ee();break;case 5:case 12:be=ee();break;case 13:x?be=ee():be=" ";break;case 6:be=" ";break;case 10:if(ye===6){be="";break}case 7:case 8:case 9:case 11:case 2:case 4:ye===12||ye===13?be=" ":ye!==5&&ye!==17&&(W=!0);break;case 16:W=!0;break}x&&(ye===12||ye===13)&&(be=ee())}var ke=j.getTokenOffset()+f;ie(be,Ee,ke),de=ye}return se}function Md(e,r){for(var n="",a=0;a<r;a++)n+=e;return n}function F0(e,r){for(var n=0,a=0,o=r.tabSize||4;n<e.length;){var f=e.charAt(n);if(f===" ")a++;else if(f===" ")a+=o;else break;n++}return Math.floor(a/o)}function R0(e,r){for(var n=0;n<r.length;n++){var a=r.charAt(n);if(a==="\r")return n+1<r.length&&r.charAt(n+1)===`
|
|
334
|
+
`?`\r
|
|
335
|
+
`:"\r";if(a===`
|
|
336
|
+
`)return`
|
|
337
|
+
`}return e&&e.eol||`
|
|
338
|
+
`}function Hh(e,r){return`\r
|
|
339
|
+
`.indexOf(e.charAt(r))!==-1}var Kl;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Kl||(Kl={}));function L0(e,r){var n=[],a=new Object,o=void 0,f={value:{},offset:0,length:0,type:"object",parent:void 0},d=!1;function m(g,b,x,I){f.value=g,f.offset=b,f.length=x,f.type=I,f.colonOffset=void 0,o=f}try{ic(e,{onObjectBegin:function(g,b){if(r<=g)throw a;o=void 0,d=r>g,n.push("")},onObjectProperty:function(g,b,x){if(r<b||(m(g,b,x,"property"),n[n.length-1]=g,r<=b+x))throw a},onObjectEnd:function(g,b){if(r<=g)throw a;o=void 0,n.pop()},onArrayBegin:function(g,b){if(r<=g)throw a;o=void 0,n.push(0)},onArrayEnd:function(g,b){if(r<=g)throw a;o=void 0,n.pop()},onLiteralValue:function(g,b,x){if(r<b||(m(g,b,x,$h(g)),r<=b+x))throw a},onSeparator:function(g,b,x){if(r<=b)throw a;if(g===":"&&o&&o.type==="property")o.colonOffset=b,d=!1,o=void 0;else if(g===","){var I=n[n.length-1];typeof I=="number"?n[n.length-1]=I+1:(d=!0,n[n.length-1]=""),o=void 0}}})}catch(g){if(g!==a)throw g}return{path:n,previousNode:o,isAtPropertyKey:d,matches:function(g){for(var b=0,x=0;b<g.length&&x<n.length;x++)if(g[b]===n[x]||g[b]==="*")b++;else if(g[b]!=="**")return!1;return b===g.length}}}function M0(e,r,n){r===void 0&&(r=[]),n===void 0&&(n=Kl.DEFAULT);var a=null,o=[],f=[];function d(g){Array.isArray(o)?o.push(g):a!==null&&(o[a]=g)}var m={onObjectBegin:function(){var g={};d(g),f.push(o),o=g,a=null},onObjectProperty:function(g){a=g},onObjectEnd:function(){o=f.pop()},onArrayBegin:function(){var g=[];d(g),f.push(o),o=g,a=null},onArrayEnd:function(){o=f.pop()},onLiteralValue:d,onError:function(g,b,x){r.push({error:g,offset:b,length:x})}};return ic(e,m,n),o[0]}function N0(e,r,n){r===void 0&&(r=[]),n===void 0&&(n=Kl.DEFAULT);var a={type:"array",offset:-1,length:-1,children:[],parent:void 0};function o(g){a.type==="property"&&(a.length=g-a.offset,a=a.parent)}function f(g){return a.children.push(g),g}var d={onObjectBegin:function(g){a=f({type:"object",offset:g,length:-1,parent:a,children:[]})},onObjectProperty:function(g,b,x){a=f({type:"property",offset:b,length:-1,parent:a,children:[]}),a.children.push({type:"string",value:g,offset:b,length:x,parent:a})},onObjectEnd:function(g,b){o(g+b),a.length=g+b-a.offset,a=a.parent,o(g+b)},onArrayBegin:function(g,b){a=f({type:"array",offset:g,length:-1,parent:a,children:[]})},onArrayEnd:function(g,b){a.length=g+b-a.offset,a=a.parent,o(g+b)},onLiteralValue:function(g,b,x){f({type:$h(g),offset:b,length:x,parent:a,value:g}),o(b+x)},onSeparator:function(g,b,x){a.type==="property"&&(g===":"?a.colonOffset=b:g===","&&o(b))},onError:function(g,b,x){r.push({error:g,offset:b,length:x})}};ic(e,d,n);var m=a.children[0];return m&&delete m.parent,m}function D0(e,r){if(!!e){for(var n=e,a=0,o=r;a<o.length;a++){var f=o[a];if(typeof f=="string"){if(n.type!=="object"||!Array.isArray(n.children))return;for(var d=!1,m=0,g=n.children;m<g.length;m++){var b=g[m];if(Array.isArray(b.children)&&b.children[0].value===f){n=b.children[1],d=!0;break}}if(!d)return}else{var x=f;if(n.type!=="array"||x<0||!Array.isArray(n.children)||x>=n.children.length)return;n=n.children[x]}}return n}}function zh(e){if(!e.parent||!e.parent.children)return[];var r=zh(e.parent);if(e.parent.type==="property"){var n=e.parent.children[0].value;r.push(n)}else if(e.parent.type==="array"){var a=e.parent.children.indexOf(e);a!==-1&&r.push(a)}return r}function Nd(e){switch(e.type){case"array":return e.children.map(Nd);case"object":for(var r=Object.create(null),n=0,a=e.children;n<a.length;n++){var o=a[n],f=o.children[1];f&&(r[o.children[0].value]=Nd(f))}return r;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function B0(e,r,n){return n===void 0&&(n=!1),r>=e.offset&&r<e.offset+e.length||n&&r===e.offset+e.length}function Gh(e,r,n){if(n===void 0&&(n=!1),B0(e,r,n)){var a=e.children;if(Array.isArray(a))for(var o=0;o<a.length&&a[o].offset<=r;o++){var f=Gh(a[o],r,n);if(f)return f}return e}}function ic(e,r,n){n===void 0&&(n=Kl.DEFAULT);var a=nc(e,!1);function o(Se){return Se?function(){return Se(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}function f(Se){return Se?function(ke){return Se(ke,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}var d=o(r.onObjectBegin),m=f(r.onObjectProperty),g=o(r.onObjectEnd),b=o(r.onArrayBegin),x=o(r.onArrayEnd),I=f(r.onLiteralValue),N=f(r.onSeparator),j=o(r.onComment),W=f(r.onError),ee=n&&n.disallowComments,te=n&&n.allowTrailingComma;function se(){for(;;){var Se=a.scan();switch(a.getTokenError()){case 4:ie(14);break;case 5:ie(15);break;case 3:ie(13);break;case 1:ee||ie(11);break;case 2:ie(12);break;case 6:ie(16);break}switch(Se){case 12:case 13:ee?ie(10):j();break;case 16:ie(1);break;case 15:case 14:break;default:return Se}}}function ie(Se,ke,Me){if(ke===void 0&&(ke=[]),Me===void 0&&(Me=[]),W(Se),ke.length+Me.length>0)for(var Re=a.getToken();Re!==17;){if(ke.indexOf(Re)!==-1){se();break}else if(Me.indexOf(Re)!==-1)break;Re=se()}}function de(Se){var ke=a.getTokenValue();return Se?I(ke):m(ke),se(),!0}function we(){switch(a.getToken()){case 11:var Se=a.getTokenValue(),ke=Number(Se);isNaN(ke)&&(ie(2),ke=0),I(ke);break;case 7:I(null);break;case 8:I(!0);break;case 9:I(!1);break;default:return!1}return se(),!0}function xe(){return a.getToken()!==10?(ie(3,[],[2,5]),!1):(de(!1),a.getToken()===6?(N(":"),se(),be()||ie(4,[],[2,5])):ie(5,[],[2,5]),!0)}function Ee(){d(),se();for(var Se=!1;a.getToken()!==2&&a.getToken()!==17;){if(a.getToken()===5){if(Se||ie(4,[],[]),N(","),se(),a.getToken()===2&&te)break}else Se&&ie(6,[],[]);xe()||ie(4,[],[2,5]),Se=!0}return g(),a.getToken()!==2?ie(7,[2],[]):se(),!0}function ye(){b(),se();for(var Se=!1;a.getToken()!==4&&a.getToken()!==17;){if(a.getToken()===5){if(Se||ie(4,[],[]),N(","),se(),a.getToken()===4&&te)break}else Se&&ie(6,[],[]);be()||ie(4,[],[4,5]),Se=!0}return x(),a.getToken()!==4?ie(8,[4],[]):se(),!0}function be(){switch(a.getToken()){case 3:return ye();case 1:return Ee();case 10:return de(!0);default:return we()}}return se(),a.getToken()===17?n.allowEmptyContent?!0:(ie(4,[],[]),!1):be()?(a.getToken()!==17&&ie(9,[],[]),!0):(ie(4,[],[]),!1)}function j0(e,r){var n=nc(e),a=[],o,f=0,d;do switch(d=n.getPosition(),o=n.scan(),o){case 12:case 13:case 17:f!==d&&a.push(e.substring(f,d)),r!==void 0&&a.push(n.getTokenValue().replace(/[^\r\n]/g,r)),f=n.getPosition();break}while(o!==17);return a.join("")}function $h(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(e){if(Array.isArray(e))return"array"}else return"null";return"object"}default:return"null"}}function c1(e,r,n){return V0(e,r,void 0,n)}function V0(e,r,n,a){for(var o,f=r.slice(),d=[],m=parseTree(e,d),g=void 0,b=void 0;f.length>0&&(b=f.pop(),g=findNodeAtLocation(m,f),g===void 0&&n!==void 0);)typeof b=="string"?n=(o={},o[b]=n,o):n=[n];if(g)if(g.type==="object"&&typeof b=="string"&&Array.isArray(g.children)){var x=findNodeAtLocation(g,[b]);if(x!==void 0)if(n===void 0){if(!x.parent)throw new Error("Malformed AST");var I=g.children.indexOf(x.parent),N=void 0,j=x.parent.offset+x.parent.length;if(I>0){var W=g.children[I-1];N=W.offset+W.length}else if(N=g.offset+1,g.children.length>1){var ee=g.children[1];j=ee.offset}return Po(e,{offset:N,length:j-N,content:""},a)}else return Po(e,{offset:x.offset,length:x.length,content:JSON.stringify(n)},a);else{if(n===void 0)return[];var te=JSON.stringify(b)+": "+JSON.stringify(n),se=a.getInsertionIndex?a.getInsertionIndex(g.children.map(function(Se){return Se.children[0].value})):g.children.length,ie=void 0;if(se>0){var W=g.children[se-1];ie={offset:W.offset+W.length,length:0,content:","+te}}else g.children.length===0?ie={offset:g.offset+1,length:0,content:te}:ie={offset:g.offset+1,length:0,content:te+","};return Po(e,ie,a)}}else if(g.type==="array"&&typeof b=="number"&&Array.isArray(g.children)){var de=b;if(de===-1){var te=""+JSON.stringify(n),ie=void 0;if(g.children.length===0)ie={offset:g.offset+1,length:0,content:te};else{var W=g.children[g.children.length-1];ie={offset:W.offset+W.length,length:0,content:","+te}}return Po(e,ie,a)}else if(n===void 0&&g.children.length>=0){var we=b,xe=g.children[we],ie=void 0;if(g.children.length===1)ie={offset:g.offset+1,length:g.length-2,content:""};else if(g.children.length-1===we){var W=g.children[we-1],Ee=W.offset+W.length,ye=g.offset+g.length;ie={offset:Ee,length:ye-2-Ee,content:""}}else ie={offset:xe.offset,length:g.children[we+1].offset-xe.offset,content:""};return Po(e,ie,a)}else if(n!==void 0){var ie=void 0,te=""+JSON.stringify(n);if(!a.isArrayInsertion&&g.children.length>b){var be=g.children[b];ie={offset:be.offset,length:be.length,content:te}}else if(g.children.length===0||b===0)ie={offset:g.offset+1,length:0,content:g.children.length===0?te:te+","};else{var se=b>g.children.length?g.children.length:b,W=g.children[se-1];ie={offset:W.offset+W.length,length:0,content:","+te}}return Po(e,ie,a)}else throw new Error("Can not "+(n===void 0?"remove":a.isArrayInsertion?"insert":"modify")+" Array index "+de+" as length is not sufficient")}else throw new Error("Can not add "+(typeof b!="number"?"index":"property")+" to parent of type "+g.type);else{if(n===void 0)throw new Error("Can not delete in empty document");return Po(e,{offset:m?m.offset:0,length:m?m.length:0,content:JSON.stringify(n)},a)}}function Po(e,r,n){if(!n.formattingOptions)return[r];var a=Kh(e,r),o=r.offset,f=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;o>0&&!isEOL(a,o-1);)o--;for(;f<a.length&&!isEOL(a,f);)f++}for(var d=format(a,{offset:o,length:f-o},n.formattingOptions),m=d.length-1;m>=0;m--){var g=d[m];a=Kh(a,g),o=Math.min(o,g.offset),f=Math.max(f,g.offset+g.length),f+=g.content.length-g.length}var b=e.length-(a.length-f)-o;return[{offset:o,length:b,content:a.substring(o,f)}]}function Kh(e,r){return e.substring(0,r.offset)+r.content+e.substring(r.offset+r.length)}function d1(e,r){return`\r
|
|
340
|
+
`.indexOf(e.charAt(r))!==-1}var Ss=nc,p1=L0,U0=M0,h1=N0,v1=D0,W0=Gh,H0=zh,z0=Nd,g1=ic,m1=j0;function y1(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function G0(e,r,n){return k0(e,r,n)}function b1(e,r,n,a){return edit.setProperty(e,r,n,a)}function x1(e,r){for(var n=r.length-1;n>=0;n--)e=edit.applyEdit(e,r[n]);return e}function Yl(e,r){if(e===r)return!0;if(e==null||r===null||r===void 0||typeof e!=typeof r||typeof e!="object"||Array.isArray(e)!==Array.isArray(r))return!1;var n,a;if(Array.isArray(e)){if(e.length!==r.length)return!1;for(n=0;n<e.length;n++)if(!Yl(e[n],r[n]))return!1}else{var o=[];for(a in e)o.push(a);o.sort();var f=[];for(a in r)f.push(a);if(f.sort(),!Yl(o,f))return!1;for(n=0;n<o.length;n++)if(!Yl(e[o[n]],r[o[n]]))return!1}return!0}function Qn(e){return typeof e=="number"}function da(e){return typeof e!="undefined"}function Vi(e){return typeof e=="boolean"}function $0(e){return typeof e=="string"}var Yh;(function(e){function r(n){return typeof n=="string"}e.is=r})(Yh||(Yh={}));var Dd;(function(e){function r(n){return typeof n=="string"}e.is=r})(Dd||(Dd={}));var Jh;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function r(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=r})(Jh||(Jh={}));var ac;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function r(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=r})(ac||(ac={}));var ii;(function(e){function r(a,o){return a===Number.MAX_VALUE&&(a=ac.MAX_VALUE),o===Number.MAX_VALUE&&(o=ac.MAX_VALUE),{line:a,character:o}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&Ae.uinteger(o.line)&&Ae.uinteger(o.character)}e.is=n})(ii||(ii={}));var _t;(function(e){function r(a,o,f,d){if(Ae.uinteger(a)&&Ae.uinteger(o)&&Ae.uinteger(f)&&Ae.uinteger(d))return{start:ii.create(a,o),end:ii.create(f,d)};if(ii.is(a)&&ii.is(o))return{start:a,end:o};throw new Error("Range#create called with invalid arguments[".concat(a,", ").concat(o,", ").concat(f,", ").concat(d,"]"))}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&ii.is(o.start)&&ii.is(o.end)}e.is=n})(_t||(_t={}));var ws;(function(e){function r(a,o){return{uri:a,range:o}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&_t.is(o.range)&&(Ae.string(o.uri)||Ae.undefined(o.uri))}e.is=n})(ws||(ws={}));var Xh;(function(e){function r(a,o,f,d){return{targetUri:a,targetRange:o,targetSelectionRange:f,originSelectionRange:d}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&_t.is(o.targetRange)&&Ae.string(o.targetUri)&&_t.is(o.targetSelectionRange)&&(_t.is(o.originSelectionRange)||Ae.undefined(o.originSelectionRange))}e.is=n})(Xh||(Xh={}));var Bd;(function(e){function r(a,o,f,d){return{red:a,green:o,blue:f,alpha:d}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&Ae.numberRange(o.red,0,1)&&Ae.numberRange(o.green,0,1)&&Ae.numberRange(o.blue,0,1)&&Ae.numberRange(o.alpha,0,1)}e.is=n})(Bd||(Bd={}));var Qh;(function(e){function r(a,o){return{range:a,color:o}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&_t.is(o.range)&&Bd.is(o.color)}e.is=n})(Qh||(Qh={}));var Zh;(function(e){function r(a,o,f){return{label:a,textEdit:o,additionalTextEdits:f}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&Ae.string(o.label)&&(Ae.undefined(o.textEdit)||ai.is(o))&&(Ae.undefined(o.additionalTextEdits)||Ae.typedArray(o.additionalTextEdits,ai.is))}e.is=n})(Zh||(Zh={}));var Jl;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Jl||(Jl={}));var _h;(function(e){function r(a,o,f,d,m,g){var b={startLine:a,endLine:o};return Ae.defined(f)&&(b.startCharacter=f),Ae.defined(d)&&(b.endCharacter=d),Ae.defined(m)&&(b.kind=m),Ae.defined(g)&&(b.collapsedText=g),b}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&Ae.uinteger(o.startLine)&&Ae.uinteger(o.startLine)&&(Ae.undefined(o.startCharacter)||Ae.uinteger(o.startCharacter))&&(Ae.undefined(o.endCharacter)||Ae.uinteger(o.endCharacter))&&(Ae.undefined(o.kind)||Ae.string(o.kind))}e.is=n})(_h||(_h={}));var jd;(function(e){function r(a,o){return{location:a,message:o}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&ws.is(o.location)&&Ae.string(o.message)}e.is=n})(jd||(jd={}));var Dt;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Dt||(Dt={}));var qh;(function(e){e.Unnecessary=1,e.Deprecated=2})(qh||(qh={}));var ev;(function(e){function r(n){var a=n;return Ae.objectLiteral(a)&&Ae.string(a.href)}e.is=r})(ev||(ev={}));var pa;(function(e){function r(a,o,f,d,m,g){var b={range:a,message:o};return Ae.defined(f)&&(b.severity=f),Ae.defined(d)&&(b.code=d),Ae.defined(m)&&(b.source=m),Ae.defined(g)&&(b.relatedInformation=g),b}e.create=r;function n(a){var o,f=a;return Ae.defined(f)&&_t.is(f.range)&&Ae.string(f.message)&&(Ae.number(f.severity)||Ae.undefined(f.severity))&&(Ae.integer(f.code)||Ae.string(f.code)||Ae.undefined(f.code))&&(Ae.undefined(f.codeDescription)||Ae.string((o=f.codeDescription)===null||o===void 0?void 0:o.href))&&(Ae.string(f.source)||Ae.undefined(f.source))&&(Ae.undefined(f.relatedInformation)||Ae.typedArray(f.relatedInformation,jd.is))}e.is=n})(pa||(pa={}));var As;(function(e){function r(a,o){for(var f=[],d=2;d<arguments.length;d++)f[d-2]=arguments[d];var m={title:a,command:o};return Ae.defined(f)&&f.length>0&&(m.arguments=f),m}e.create=r;function n(a){var o=a;return Ae.defined(o)&&Ae.string(o.title)&&Ae.string(o.command)}e.is=n})(As||(As={}));var ai;(function(e){function r(f,d){return{range:f,newText:d}}e.replace=r;function n(f,d){return{range:{start:f,end:f},newText:d}}e.insert=n;function a(f){return{range:f,newText:""}}e.del=a;function o(f){var d=f;return Ae.objectLiteral(d)&&Ae.string(d.newText)&&_t.is(d.range)}e.is=o})(ai||(ai={}));var Cs;(function(e){function r(a,o,f){var d={label:a};return o!==void 0&&(d.needsConfirmation=o),f!==void 0&&(d.description=f),d}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&Ae.string(o.label)&&(Ae.boolean(o.needsConfirmation)||o.needsConfirmation===void 0)&&(Ae.string(o.description)||o.description===void 0)}e.is=n})(Cs||(Cs={}));var Sn;(function(e){function r(n){var a=n;return Ae.string(a)}e.is=r})(Sn||(Sn={}));var Va;(function(e){function r(f,d,m){return{range:f,newText:d,annotationId:m}}e.replace=r;function n(f,d,m){return{range:{start:f,end:f},newText:d,annotationId:m}}e.insert=n;function a(f,d){return{range:f,newText:"",annotationId:d}}e.del=a;function o(f){var d=f;return ai.is(d)&&(Cs.is(d.annotationId)||Sn.is(d.annotationId))}e.is=o})(Va||(Va={}));var oc;(function(e){function r(a,o){return{textDocument:a,edits:o}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&lc.is(o.textDocument)&&Array.isArray(o.edits)}e.is=n})(oc||(oc={}));var Xl;(function(e){function r(a,o,f){var d={kind:"create",uri:a};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(d.options=o),f!==void 0&&(d.annotationId=f),d}e.create=r;function n(a){var o=a;return o&&o.kind==="create"&&Ae.string(o.uri)&&(o.options===void 0||(o.options.overwrite===void 0||Ae.boolean(o.options.overwrite))&&(o.options.ignoreIfExists===void 0||Ae.boolean(o.options.ignoreIfExists)))&&(o.annotationId===void 0||Sn.is(o.annotationId))}e.is=n})(Xl||(Xl={}));var Ql;(function(e){function r(a,o,f,d){var m={kind:"rename",oldUri:a,newUri:o};return f!==void 0&&(f.overwrite!==void 0||f.ignoreIfExists!==void 0)&&(m.options=f),d!==void 0&&(m.annotationId=d),m}e.create=r;function n(a){var o=a;return o&&o.kind==="rename"&&Ae.string(o.oldUri)&&Ae.string(o.newUri)&&(o.options===void 0||(o.options.overwrite===void 0||Ae.boolean(o.options.overwrite))&&(o.options.ignoreIfExists===void 0||Ae.boolean(o.options.ignoreIfExists)))&&(o.annotationId===void 0||Sn.is(o.annotationId))}e.is=n})(Ql||(Ql={}));var Zl;(function(e){function r(a,o,f){var d={kind:"delete",uri:a};return o!==void 0&&(o.recursive!==void 0||o.ignoreIfNotExists!==void 0)&&(d.options=o),f!==void 0&&(d.annotationId=f),d}e.create=r;function n(a){var o=a;return o&&o.kind==="delete"&&Ae.string(o.uri)&&(o.options===void 0||(o.options.recursive===void 0||Ae.boolean(o.options.recursive))&&(o.options.ignoreIfNotExists===void 0||Ae.boolean(o.options.ignoreIfNotExists)))&&(o.annotationId===void 0||Sn.is(o.annotationId))}e.is=n})(Zl||(Zl={}));var Vd;(function(e){function r(n){var a=n;return a&&(a.changes!==void 0||a.documentChanges!==void 0)&&(a.documentChanges===void 0||a.documentChanges.every(function(o){return Ae.string(o.kind)?Xl.is(o)||Ql.is(o)||Zl.is(o):oc.is(o)}))}e.is=r})(Vd||(Vd={}));var sc=function(){function e(r,n){this.edits=r,this.changeAnnotations=n}return e.prototype.insert=function(r,n,a){var o,f;if(a===void 0?o=ai.insert(r,n):Sn.is(a)?(f=a,o=Va.insert(r,n,a)):(this.assertChangeAnnotations(this.changeAnnotations),f=this.changeAnnotations.manage(a),o=Va.insert(r,n,f)),this.edits.push(o),f!==void 0)return f},e.prototype.replace=function(r,n,a){var o,f;if(a===void 0?o=ai.replace(r,n):Sn.is(a)?(f=a,o=Va.replace(r,n,a)):(this.assertChangeAnnotations(this.changeAnnotations),f=this.changeAnnotations.manage(a),o=Va.replace(r,n,f)),this.edits.push(o),f!==void 0)return f},e.prototype.delete=function(r,n){var a,o;if(n===void 0?a=ai.del(r):Sn.is(n)?(o=n,a=Va.del(r,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),a=Va.del(r,o)),this.edits.push(a),o!==void 0)return o},e.prototype.add=function(r){this.edits.push(r)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),tv=function(){function e(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(r,n){var a;if(Sn.is(r)?a=r:(a=this.nextId(),n=r),this._annotations[a]!==void 0)throw new Error("Id ".concat(a," is already in use."));if(n===void 0)throw new Error("No annotation provided for id ".concat(a));return this._annotations[a]=n,this._size++,a},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),S1=function(){function e(r){var n=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new tv(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(a){if(oc.is(a)){var o=new sc(a.edits,n._changeAnnotations);n._textEditChanges[a.textDocument.uri]=o}})):r.changes&&Object.keys(r.changes).forEach(function(a){var o=new sc(r.changes[a]);n._textEditChanges[a]=o})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(r){if(lc.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:r.uri,version:r.version},a=this._textEditChanges[n.uri];if(!a){var o=[],f={textDocument:n,edits:o};this._workspaceEdit.documentChanges.push(f),a=new sc(o,this._changeAnnotations),this._textEditChanges[n.uri]=a}return a}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var a=this._textEditChanges[r];if(!a){var o=[];this._workspaceEdit.changes[r]=o,a=new sc(o),this._textEditChanges[r]=a}return a}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new tv,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(r,n,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;Cs.is(n)||Sn.is(n)?o=n:a=n;var f,d;if(o===void 0?f=Xl.create(r,a):(d=Sn.is(o)?o:this._changeAnnotations.manage(o),f=Xl.create(r,a,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d},e.prototype.renameFile=function(r,n,a,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var f;Cs.is(a)||Sn.is(a)?f=a:o=a;var d,m;if(f===void 0?d=Ql.create(r,n,o):(m=Sn.is(f)?f:this._changeAnnotations.manage(f),d=Ql.create(r,n,o,m)),this._workspaceEdit.documentChanges.push(d),m!==void 0)return m},e.prototype.deleteFile=function(r,n,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;Cs.is(n)||Sn.is(n)?o=n:a=n;var f,d;if(o===void 0?f=Zl.create(r,a):(d=Sn.is(o)?o:this._changeAnnotations.manage(o),f=Zl.create(r,a,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d},e}(),rv;(function(e){function r(a){return{uri:a}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&Ae.string(o.uri)}e.is=n})(rv||(rv={}));var nv;(function(e){function r(a,o){return{uri:a,version:o}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&Ae.string(o.uri)&&Ae.integer(o.version)}e.is=n})(nv||(nv={}));var lc;(function(e){function r(a,o){return{uri:a,version:o}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&Ae.string(o.uri)&&(o.version===null||Ae.integer(o.version))}e.is=n})(lc||(lc={}));var iv;(function(e){function r(a,o,f,d){return{uri:a,languageId:o,version:f,text:d}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&Ae.string(o.uri)&&Ae.string(o.languageId)&&Ae.integer(o.version)&&Ae.string(o.text)}e.is=n})(iv||(iv={}));var Io;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function r(n){var a=n;return a===e.PlainText||a===e.Markdown}e.is=r})(Io||(Io={}));var _l;(function(e){function r(n){var a=n;return Ae.objectLiteral(n)&&Io.is(a.kind)&&Ae.string(a.value)}e.is=r})(_l||(_l={}));var Zn;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Zn||(Zn={}));var Zr;(function(e){e.PlainText=1,e.Snippet=2})(Zr||(Zr={}));var av;(function(e){e.Deprecated=1})(av||(av={}));var ov;(function(e){function r(a,o,f){return{newText:a,insert:o,replace:f}}e.create=r;function n(a){var o=a;return o&&Ae.string(o.newText)&&_t.is(o.insert)&&_t.is(o.replace)}e.is=n})(ov||(ov={}));var sv;(function(e){e.asIs=1,e.adjustIndentation=2})(sv||(sv={}));var lv;(function(e){function r(n){var a=n;return a&&(Ae.string(a.detail)||a.detail===void 0)&&(Ae.string(a.description)||a.description===void 0)}e.is=r})(lv||(lv={}));var Ud;(function(e){function r(n){return{label:n}}e.create=r})(Ud||(Ud={}));var uv;(function(e){function r(n,a){return{items:n||[],isIncomplete:!!a}}e.create=r})(uv||(uv={}));var uc;(function(e){function r(a){return a.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=r;function n(a){var o=a;return Ae.string(o)||Ae.objectLiteral(o)&&Ae.string(o.language)&&Ae.string(o.value)}e.is=n})(uc||(uc={}));var fv;(function(e){function r(n){var a=n;return!!a&&Ae.objectLiteral(a)&&(_l.is(a.contents)||uc.is(a.contents)||Ae.typedArray(a.contents,uc.is))&&(n.range===void 0||_t.is(n.range))}e.is=r})(fv||(fv={}));var cv;(function(e){function r(n,a){return a?{label:n,documentation:a}:{label:n}}e.create=r})(cv||(cv={}));var dv;(function(e){function r(n,a){for(var o=[],f=2;f<arguments.length;f++)o[f-2]=arguments[f];var d={label:n};return Ae.defined(a)&&(d.documentation=a),Ae.defined(o)?d.parameters=o:d.parameters=[],d}e.create=r})(dv||(dv={}));var pv;(function(e){e.Text=1,e.Read=2,e.Write=3})(pv||(pv={}));var hv;(function(e){function r(n,a){var o={range:n};return Ae.number(a)&&(o.kind=a),o}e.create=r})(hv||(hv={}));var Ui;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Ui||(Ui={}));var vv;(function(e){e.Deprecated=1})(vv||(vv={}));var gv;(function(e){function r(n,a,o,f,d){var m={name:n,kind:a,location:{uri:f,range:o}};return d&&(m.containerName=d),m}e.create=r})(gv||(gv={}));var mv;(function(e){function r(n,a,o,f){return f!==void 0?{name:n,kind:a,location:{uri:o,range:f}}:{name:n,kind:a,location:{uri:o}}}e.create=r})(mv||(mv={}));var yv;(function(e){function r(a,o,f,d,m,g){var b={name:a,detail:o,kind:f,range:d,selectionRange:m};return g!==void 0&&(b.children=g),b}e.create=r;function n(a){var o=a;return o&&Ae.string(o.name)&&Ae.number(o.kind)&&_t.is(o.range)&&_t.is(o.selectionRange)&&(o.detail===void 0||Ae.string(o.detail))&&(o.deprecated===void 0||Ae.boolean(o.deprecated))&&(o.children===void 0||Array.isArray(o.children))&&(o.tags===void 0||Array.isArray(o.tags))}e.is=n})(yv||(yv={}));var bv;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(bv||(bv={}));var fc;(function(e){e.Invoked=1,e.Automatic=2})(fc||(fc={}));var xv;(function(e){function r(a,o,f){var d={diagnostics:a};return o!=null&&(d.only=o),f!=null&&(d.triggerKind=f),d}e.create=r;function n(a){var o=a;return Ae.defined(o)&&Ae.typedArray(o.diagnostics,pa.is)&&(o.only===void 0||Ae.typedArray(o.only,Ae.string))&&(o.triggerKind===void 0||o.triggerKind===fc.Invoked||o.triggerKind===fc.Automatic)}e.is=n})(xv||(xv={}));var Sv;(function(e){function r(a,o,f){var d={title:a},m=!0;return typeof o=="string"?(m=!1,d.kind=o):As.is(o)?d.command=o:d.edit=o,m&&f!==void 0&&(d.kind=f),d}e.create=r;function n(a){var o=a;return o&&Ae.string(o.title)&&(o.diagnostics===void 0||Ae.typedArray(o.diagnostics,pa.is))&&(o.kind===void 0||Ae.string(o.kind))&&(o.edit!==void 0||o.command!==void 0)&&(o.command===void 0||As.is(o.command))&&(o.isPreferred===void 0||Ae.boolean(o.isPreferred))&&(o.edit===void 0||Vd.is(o.edit))}e.is=n})(Sv||(Sv={}));var wv;(function(e){function r(a,o){var f={range:a};return Ae.defined(o)&&(f.data=o),f}e.create=r;function n(a){var o=a;return Ae.defined(o)&&_t.is(o.range)&&(Ae.undefined(o.command)||As.is(o.command))}e.is=n})(wv||(wv={}));var Av;(function(e){function r(a,o){return{tabSize:a,insertSpaces:o}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&Ae.uinteger(o.tabSize)&&Ae.boolean(o.insertSpaces)}e.is=n})(Av||(Av={}));var Cv;(function(e){function r(a,o,f){return{range:a,target:o,data:f}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&_t.is(o.range)&&(Ae.undefined(o.target)||Ae.string(o.target))}e.is=n})(Cv||(Cv={}));var cc;(function(e){function r(a,o){return{range:a,parent:o}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&_t.is(o.range)&&(o.parent===void 0||e.is(o.parent))}e.is=n})(cc||(cc={}));var Ev;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Ev||(Ev={}));var Ov;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Ov||(Ov={}));var Tv;(function(e){function r(n){var a=n;return Ae.objectLiteral(a)&&(a.resultId===void 0||typeof a.resultId=="string")&&Array.isArray(a.data)&&(a.data.length===0||typeof a.data[0]=="number")}e.is=r})(Tv||(Tv={}));var Pv;(function(e){function r(a,o){return{range:a,text:o}}e.create=r;function n(a){var o=a;return o!=null&&_t.is(o.range)&&Ae.string(o.text)}e.is=n})(Pv||(Pv={}));var Iv;(function(e){function r(a,o,f){return{range:a,variableName:o,caseSensitiveLookup:f}}e.create=r;function n(a){var o=a;return o!=null&&_t.is(o.range)&&Ae.boolean(o.caseSensitiveLookup)&&(Ae.string(o.variableName)||o.variableName===void 0)}e.is=n})(Iv||(Iv={}));var kv;(function(e){function r(a,o){return{range:a,expression:o}}e.create=r;function n(a){var o=a;return o!=null&&_t.is(o.range)&&(Ae.string(o.expression)||o.expression===void 0)}e.is=n})(kv||(kv={}));var Fv;(function(e){function r(a,o){return{frameId:a,stoppedLocation:o}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&_t.is(a.stoppedLocation)}e.is=n})(Fv||(Fv={}));var Wd;(function(e){e.Type=1,e.Parameter=2;function r(n){return n===1||n===2}e.is=r})(Wd||(Wd={}));var Hd;(function(e){function r(a){return{value:a}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&(o.tooltip===void 0||Ae.string(o.tooltip)||_l.is(o.tooltip))&&(o.location===void 0||ws.is(o.location))&&(o.command===void 0||As.is(o.command))}e.is=n})(Hd||(Hd={}));var Rv;(function(e){function r(a,o,f){var d={position:a,label:o};return f!==void 0&&(d.kind=f),d}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&ii.is(o.position)&&(Ae.string(o.label)||Ae.typedArray(o.label,Hd.is))&&(o.kind===void 0||Wd.is(o.kind))&&o.textEdits===void 0||Ae.typedArray(o.textEdits,ai.is)&&(o.tooltip===void 0||Ae.string(o.tooltip)||_l.is(o.tooltip))&&(o.paddingLeft===void 0||Ae.boolean(o.paddingLeft))&&(o.paddingRight===void 0||Ae.boolean(o.paddingRight))}e.is=n})(Rv||(Rv={}));var Lv;(function(e){function r(n){var a=n;return Ae.objectLiteral(a)&&Dd.is(a.uri)&&Ae.string(a.name)}e.is=r})(Lv||(Lv={}));var w1=null,Mv;(function(e){function r(f,d,m,g){return new K0(f,d,m,g)}e.create=r;function n(f){var d=f;return!!(Ae.defined(d)&&Ae.string(d.uri)&&(Ae.undefined(d.languageId)||Ae.string(d.languageId))&&Ae.uinteger(d.lineCount)&&Ae.func(d.getText)&&Ae.func(d.positionAt)&&Ae.func(d.offsetAt))}e.is=n;function a(f,d){for(var m=f.getText(),g=o(d,function(W,ee){var te=W.range.start.line-ee.range.start.line;return te===0?W.range.start.character-ee.range.start.character:te}),b=m.length,x=g.length-1;x>=0;x--){var I=g[x],N=f.offsetAt(I.range.start),j=f.offsetAt(I.range.end);if(j<=b)m=m.substring(0,N)+I.newText+m.substring(j,m.length);else throw new Error("Overlapping edit");b=N}return m}e.applyEdits=a;function o(f,d){if(f.length<=1)return f;var m=f.length/2|0,g=f.slice(0,m),b=f.slice(m);o(g,d),o(b,d);for(var x=0,I=0,N=0;x<g.length&&I<b.length;){var j=d(g[x],b[I]);j<=0?f[N++]=g[x++]:f[N++]=b[I++]}for(;x<g.length;)f[N++]=g[x++];for(;I<b.length;)f[N++]=b[I++];return f}})(Mv||(Mv={}));var K0=function(){function e(r,n,a,o){this._uri=r,this._languageId=n,this._version=a,this._content=o,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(r){if(r){var n=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(n,a)}return this._content},e.prototype.update=function(r,n){this._content=r.text,this._version=n,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var r=[],n=this._content,a=!0,o=0;o<n.length;o++){a&&(r.push(o),a=!1);var f=n.charAt(o);a=f==="\r"||f===`
|
|
341
|
+
`,f==="\r"&&o+1<n.length&&n.charAt(o+1)===`
|
|
342
|
+
`&&o++}a&&n.length>0&&r.push(n.length),this._lineOffsets=r}return this._lineOffsets},e.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var n=this.getLineOffsets(),a=0,o=n.length;if(o===0)return ii.create(0,r);for(;a<o;){var f=Math.floor((a+o)/2);n[f]>r?o=f:a=f+1}var d=a-1;return ii.create(d,r-n[d])},e.prototype.offsetAt=function(r){var n=this.getLineOffsets();if(r.line>=n.length)return this._content.length;if(r.line<0)return 0;var a=n[r.line],o=r.line+1<n.length?n[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,o),a)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}(),Ae;(function(e){var r=Object.prototype.toString;function n(j){return typeof j!="undefined"}e.defined=n;function a(j){return typeof j=="undefined"}e.undefined=a;function o(j){return j===!0||j===!1}e.boolean=o;function f(j){return r.call(j)==="[object String]"}e.string=f;function d(j){return r.call(j)==="[object Number]"}e.number=d;function m(j,W,ee){return r.call(j)==="[object Number]"&&W<=j&&j<=ee}e.numberRange=m;function g(j){return r.call(j)==="[object Number]"&&-2147483648<=j&&j<=2147483647}e.integer=g;function b(j){return r.call(j)==="[object Number]"&&0<=j&&j<=2147483647}e.uinteger=b;function x(j){return r.call(j)==="[object Function]"}e.func=x;function I(j){return j!==null&&typeof j=="object"}e.objectLiteral=I;function N(j,W){return Array.isArray(j)&&j.every(W)}e.typedArray=N})(Ae||(Ae={}));class ql{constructor(r,n,a,o){this._uri=r,this._languageId=n,this._version=a,this._content=o,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(r){if(r){const n=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(n,a)}return this._content}update(r,n){for(let a of r)if(ql.isIncremental(a)){const o=Dv(a.range),f=this.offsetAt(o.start),d=this.offsetAt(o.end);this._content=this._content.substring(0,f)+a.text+this._content.substring(d,this._content.length);const m=Math.max(o.start.line,0),g=Math.max(o.end.line,0);let b=this._lineOffsets;const x=Nv(a.text,!1,f);if(g-m===x.length)for(let N=0,j=x.length;N<j;N++)b[N+m+1]=x[N];else x.length<1e4?b.splice(m+1,g-m,...x):this._lineOffsets=b=b.slice(0,m+1).concat(x,b.slice(g+1));const I=a.text.length-(d-f);if(I!==0)for(let N=m+1+x.length,j=b.length;N<j;N++)b[N]=b[N]+I}else if(ql.isFull(a))this._content=a.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Nv(this._content,!0)),this._lineOffsets}positionAt(r){r=Math.max(Math.min(r,this._content.length),0);let n=this.getLineOffsets(),a=0,o=n.length;if(o===0)return{line:0,character:r};for(;a<o;){let d=Math.floor((a+o)/2);n[d]>r?o=d:a=d+1}let f=a-1;return{line:f,character:r-n[f]}}offsetAt(r){let n=this.getLineOffsets();if(r.line>=n.length)return this._content.length;if(r.line<0)return 0;let a=n[r.line],o=r.line+1<n.length?n[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,o),a)}get lineCount(){return this.getLineOffsets().length}static isIncremental(r){let n=r;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(r){let n=r;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}}var dc;(function(e){function r(o,f,d,m){return new ql(o,f,d,m)}e.create=r;function n(o,f,d){if(o instanceof ql)return o.update(f,d),o;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function a(o,f){let d=o.getText(),m=zd(f.map(Y0),(x,I)=>{let N=x.range.start.line-I.range.start.line;return N===0?x.range.start.character-I.range.start.character:N}),g=0;const b=[];for(const x of m){let I=o.offsetAt(x.range.start);if(I<g)throw new Error("Overlapping edit");I>g&&b.push(d.substring(g,I)),x.newText.length&&b.push(x.newText),g=o.offsetAt(x.range.end)}return b.push(d.substr(g)),b.join("")}e.applyEdits=a})(dc||(dc={}));function zd(e,r){if(e.length<=1)return e;const n=e.length/2|0,a=e.slice(0,n),o=e.slice(n);zd(a,r),zd(o,r);let f=0,d=0,m=0;for(;f<a.length&&d<o.length;)r(a[f],o[d])<=0?e[m++]=a[f++]:e[m++]=o[d++];for(;f<a.length;)e[m++]=a[f++];for(;d<o.length;)e[m++]=o[d++];return e}function Nv(e,r,n=0){const a=r?[n]:[];for(let o=0;o<e.length;o++){let f=e.charCodeAt(o);(f===13||f===10)&&(f===13&&o+1<e.length&&e.charCodeAt(o+1)===10&&o++,a.push(n+o+1))}return a}function Dv(e){const r=e.start,n=e.end;return r.line>n.line||r.line===n.line&&r.character>n.character?{start:n,end:r}:e}function Y0(e){const r=Dv(e.range);return r!==e.range?{newText:e.newText,range:r}:e}var Qt;(function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.SchemaResolveError=768]="SchemaResolveError"})(Qt||(Qt={}));var Bv;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Io.Markdown,Io.PlainText],commitCharactersSupport:!0}}}}})(Bv||(Bv={}));var ko=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,o){a.__proto__=o}||function(a,o){for(var f in o)o.hasOwnProperty(f)&&(a[f]=o[f])},e(r,n)};return function(r,n){e(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),J0={"color-hex":{errorMessage:"Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.",pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:"String is not a RFC3339 date-time.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:"String is not a RFC3339 date.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:"String is not a RFC3339 time.",pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:"String is not an e-mail address.",pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},Fo=function(){function e(r,n,a){this.offset=n,this.length=a,this.parent=r}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}(),X0=function(e){ko(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="null",o.value=null,o}return r}(Fo),jv=function(e){ko(r,e);function r(n,a,o){var f=e.call(this,n,o)||this;return f.type="boolean",f.value=a,f}return r}(Fo),Q0=function(e){ko(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="array",o.items=[],o}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}(Fo),Z0=function(e){ko(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="number",o.isInteger=!0,o.value=Number.NaN,o}return r}(Fo),Vv=function(e){ko(r,e);function r(n,a,o){var f=e.call(this,n,a,o)||this;return f.type="string",f.value="",f}return r}(Fo),_0=function(e){ko(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="property",o.colonOffset=-1,o}return Object.defineProperty(r.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),r}(Fo),q0=function(e){ko(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="object",o.properties=[],o}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}(Fo);function jn(e){return Vi(e)?e?{}:{not:{}}:e}var Uv;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(Uv||(Uv={}));var eb=function(){function e(r,n){r===void 0&&(r=-1),n===void 0&&(n=null),this.focusOffset=r,this.exclude=n,this.schemas=[]}return e.prototype.add=function(r){this.schemas.push(r)},e.prototype.merge=function(r){var n;(n=this.schemas).push.apply(n,r.schemas)},e.prototype.include=function(r){return(this.focusOffset===-1||Wv(r,this.focusOffset))&&r!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),Gd=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.add=function(r){},e.prototype.merge=function(r){},e.prototype.include=function(r){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),Vn=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(r){for(var n=0,a=r;n<a.length;n++){var o=a[n];this.merge(o)}},e.prototype.merge=function(r){this.problems=this.problems.concat(r.problems)},e.prototype.mergeEnumValues=function(r){if(!this.enumValueMatch&&!r.enumValueMatch&&this.enumValues&&r.enumValues){this.enumValues=this.enumValues.concat(r.enumValues);for(var n=0,a=this.problems;n<a.length;n++){var o=a[n];o.code===Qt.EnumValueMismatch&&(o.message="Value is not accepted. Valid values: "+this.enumValues.map(function(f){return JSON.stringify(f)}).join(", ")+".")}}},e.prototype.mergePropertyMatch=function(r){this.merge(r),this.propertiesMatches++,(r.enumValueMatch||!r.hasProblems()&&r.propertiesMatches)&&this.propertiesValueMatches++,r.enumValueMatch&&r.enumValues&&r.enumValues.length===1&&this.primaryValueMatches++},e.prototype.compare=function(r){var n=this.hasProblems();return n!==r.hasProblems()?n?-1:1:this.enumValueMatch!==r.enumValueMatch?r.enumValueMatch?-1:1:this.primaryValueMatches!==r.primaryValueMatches?this.primaryValueMatches-r.primaryValueMatches:this.propertiesValueMatches!==r.propertiesValueMatches?this.propertiesValueMatches-r.propertiesValueMatches:this.propertiesMatches-r.propertiesMatches},e}();function tb(e,r){return r===void 0&&(r=[]),new Hv(e,r,[])}function Ua(e){return z0(e)}function $d(e){return H0(e)}function Wv(e,r,n){return n===void 0&&(n=!1),r>=e.offset&&r<e.offset+e.length||n&&r===e.offset+e.length}var Hv=function(){function e(r,n,a){n===void 0&&(n=[]),a===void 0&&(a=[]),this.root=r,this.syntaxErrors=n,this.comments=a}return e.prototype.getNodeFromOffset=function(r,n){if(n===void 0&&(n=!1),this.root)return W0(this.root,r,n)},e.prototype.visit=function(r){if(this.root){var n=function(a){var o=r(a),f=a.children;if(Array.isArray(f))for(var d=0;d<f.length&&o;d++)o=n(f[d]);return o};n(this.root)}},e.prototype.validate=function(r,n){if(this.root&&n){var a=new Vn;return gn(this.root,n,a,Gd.instance),a.problems.map(function(o){var f=_t.create(r.positionAt(o.location.offset),r.positionAt(o.location.offset+o.location.length));return pa.create(f,o.message,o.severity,o.code)})}return null},e.prototype.getMatchingSchemas=function(r,n,a){n===void 0&&(n=-1),a===void 0&&(a=null);var o=new eb(n,a);return this.root&&r&&gn(this.root,r,new Vn,o),o.schemas},e}();function gn(e,r,n,a){if(!e||!a.include(e))return;switch(e.type){case"object":g(e,r,n,a);break;case"array":m(e,r,n,a);break;case"string":d(e,r,n,a);break;case"number":f(e,r,n,a);break;case"property":return gn(e.valueNode,r,n,a)}o(),a.add({node:e,schema:r});function o(){function b(Re){return e.type===Re||Re==="integer"&&e.type==="number"&&e.isInteger||r.nullable&&e.value===null}if(Array.isArray(r.type)?r.type.some(b)||n.problems.push({location:{offset:e.offset,length:e.length},severity:Dt.Warning,message:r.errorMessage||"Incorrect type. Expected one of "+r.type.join(", ")+"."}):r.type&&(b(r.type)||n.problems.push({location:{offset:e.offset,length:e.length},severity:Dt.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var x=0,I=r.allOf;x<I.length;x++){var N=I[x];gn(e,jn(N),n,a)}var j=jn(r.not);if(j){var W=new Vn,ee=a.newSub();gn(e,j,W,ee),W.hasProblems()||n.problems.push({location:{offset:e.offset,length:e.length},severity:Dt.Warning,message:"Matches a schema that is not allowed."});for(var te=0,se=ee.schemas;te<se.length;te++){var ie=se[te];ie.inverted=!ie.inverted,a.add(ie)}}var de=function(Re,We){for(var It=[],vt=null,rr=0,cr=Re;rr<cr.length;rr++){var mr=cr[rr],$r=jn(mr),yr=new Vn,kr=a.newSub();if(gn(e,$r,yr,kr),yr.hasProblems()||It.push($r),!vt)vt={schema:$r,validationResult:yr,matchingSchemas:kr};else if(!We&&!yr.hasProblems()&&!vt.validationResult.hasProblems())vt.matchingSchemas.merge(kr),vt.validationResult.propertiesMatches+=yr.propertiesMatches,vt.validationResult.propertiesValueMatches+=yr.propertiesValueMatches;else{var wn=yr.compare(vt.validationResult);wn>0?vt={schema:$r,validationResult:yr,matchingSchemas:kr}:wn===0&&(vt.matchingSchemas.merge(kr),vt.validationResult.mergeEnumValues(yr))}}return It.length>1&&We&&n.problems.push({location:{offset:e.offset,length:1},severity:Dt.Warning,message:"Matches multiple schemas when only one must validate."}),vt!==null&&(n.merge(vt.validationResult),n.propertiesMatches+=vt.validationResult.propertiesMatches,n.propertiesValueMatches+=vt.validationResult.propertiesValueMatches,a.merge(vt.matchingSchemas)),It.length};Array.isArray(r.anyOf)&&de(r.anyOf,!1),Array.isArray(r.oneOf)&&de(r.oneOf,!0);var we=function(Re){var We=new Vn,It=a.newSub();gn(e,jn(Re),We,It),n.merge(We),n.propertiesMatches+=We.propertiesMatches,n.propertiesValueMatches+=We.propertiesValueMatches,a.merge(It)},xe=function(Re,We,It){var vt=jn(Re),rr=new Vn,cr=a.newSub();gn(e,vt,rr,cr),a.merge(cr),rr.hasProblems()?It&&we(It):We&&we(We)},Ee=jn(r.if);if(Ee&&xe(Ee,jn(r.then),jn(r.else)),Array.isArray(r.enum)){for(var ye=Ua(e),be=!1,Se=0,ke=r.enum;Se<ke.length;Se++){var Me=ke[Se];if(Yl(ye,Me)){be=!0;break}}n.enumValues=r.enum,n.enumValueMatch=be,be||n.problems.push({location:{offset:e.offset,length:e.length},severity:Dt.Warning,code:Qt.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(Re){return JSON.stringify(Re)}).join(", ")+"."})}if(da(r.const)){var ye=Ua(e);Yl(ye,r.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:e.offset,length:e.length},severity:Dt.Warning,code:Qt.EnumValueMismatch,message:r.errorMessage||"Value must be "+JSON.stringify(r.const)+"."}),n.enumValueMatch=!1),n.enumValues=[r.const]}r.deprecationMessage&&e.parent&&n.problems.push({location:{offset:e.parent.offset,length:e.parent.length},severity:Dt.Warning,message:r.deprecationMessage})}function f(b,x,I,N){var j=b.value;Qn(x.multipleOf)&&j%x.multipleOf!==0&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Value is not divisible by "+x.multipleOf+"."});function W(we,xe){if(Qn(xe))return xe;if(Vi(xe)&&xe)return we}function ee(we,xe){if(!Vi(xe)||!xe)return we}var te=W(x.minimum,x.exclusiveMinimum);Qn(te)&&j<=te&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Value is below the exclusive minimum of "+te+"."});var se=W(x.maximum,x.exclusiveMaximum);Qn(se)&&j>=se&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Value is above the exclusive maximum of "+se+"."});var ie=ee(x.minimum,x.exclusiveMinimum);Qn(ie)&&j<ie&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Value is below the minimum of "+ie+"."});var de=ee(x.maximum,x.exclusiveMaximum);Qn(de)&&j>de&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Value is above the maximum of "+de+"."})}function d(b,x,I,N){if(Qn(x.minLength)&&b.value.length<x.minLength&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"String is shorter than the minimum length of "+x.minLength+"."}),Qn(x.maxLength)&&b.value.length>x.maxLength&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"String is longer than the maximum length of "+x.maxLength+"."}),$0(x.pattern)){var j=new RegExp(x.pattern);j.test(b.value)||I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:x.patternErrorMessage||x.errorMessage||'String does not match the pattern of "'+x.pattern+'".'})}if(x.format)switch(x.format){case"uri":case"uri-reference":{var W=void 0;if(!b.value)W="URI expected.";else{var ee=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(b.value);ee?!ee[2]&&x.format==="uri"&&(W="URI with a scheme is expected."):W="URI is expected."}W&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:x.patternErrorMessage||x.errorMessage||"String is not a URI: "+W})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var te=J0[x.format];(!b.value||!te.pattern.exec(b.value))&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:x.patternErrorMessage||x.errorMessage||te.errorMessage});break;default:}}function m(b,x,I,N){if(Array.isArray(x.items)){for(var j=x.items,W=0;W<j.length;W++){var ee=j[W],te=jn(ee),se=new Vn,ie=b.items[W];ie?(gn(ie,te,se,N),I.mergePropertyMatch(se)):b.items.length>=j.length&&I.propertiesValueMatches++}if(b.items.length>j.length)if(typeof x.additionalItems=="object")for(var de=j.length;de<b.items.length;de++){var se=new Vn;gn(b.items[de],x.additionalItems,se,N),I.mergePropertyMatch(se)}else x.additionalItems===!1&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Array has too many items according to schema. Expected "+j.length+" or fewer."})}else{var we=jn(x.items);if(we)for(var xe=0,Ee=b.items;xe<Ee.length;xe++){var ie=Ee[xe],se=new Vn;gn(ie,we,se,N),I.mergePropertyMatch(se)}}var ye=jn(x.contains);if(ye){var be=b.items.some(function(Me){var Re=new Vn;return gn(Me,ye,Re,Gd.instance),!Re.hasProblems()});be||I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:x.errorMessage||"Array does not contain required item."})}if(Qn(x.minItems)&&b.items.length<x.minItems&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Array has too few items. Expected "+x.minItems+" or more."}),Qn(x.maxItems)&&b.items.length>x.maxItems&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Array has too many items. Expected "+x.maxItems+" or fewer."}),x.uniqueItems===!0){var Se=Ua(b),ke=Se.some(function(Me,Re){return Re!==Se.lastIndexOf(Me)});ke&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Array has duplicate items."})}}function g(b,x,I,N){for(var j=Object.create(null),W=[],ee=0,te=b.properties;ee<te.length;ee++){var se=te[ee],ie=se.keyNode.value;j[ie]=se.valueNode,W.push(ie)}if(Array.isArray(x.required))for(var de=0,we=x.required;de<we.length;de++){var xe=we[de];if(!j[xe]){var Ee=b.parent&&b.parent.type==="property"&&b.parent.keyNode,ye=Ee?{offset:Ee.offset,length:Ee.length}:{offset:b.offset,length:1};I.problems.push({location:ye,severity:Dt.Warning,message:'Missing property "'+xe+'".'})}}var be=function(Ei){for(var iu=W.indexOf(Ei);iu>=0;)W.splice(iu,1),iu=W.indexOf(Ei)};if(x.properties)for(var Se=0,ke=Object.keys(x.properties);Se<ke.length;Se++){var xe=ke[Se];be(xe);var Me=x.properties[xe],Re=j[xe];if(Re)if(Vi(Me))if(Me)I.propertiesMatches++,I.propertiesValueMatches++;else{var se=Re.parent;I.problems.push({location:{offset:se.keyNode.offset,length:se.keyNode.length},severity:Dt.Warning,message:x.errorMessage||"Property "+xe+" is not allowed."})}else{var We=new Vn;gn(Re,Me,We,N),I.mergePropertyMatch(We)}}if(x.patternProperties)for(var It=0,vt=Object.keys(x.patternProperties);It<vt.length;It++)for(var rr=vt[It],cr=new RegExp(rr),mr=0,$r=W.slice(0);mr<$r.length;mr++){var xe=$r[mr];if(cr.test(xe)){be(xe);var Re=j[xe];if(Re){var Me=x.patternProperties[rr];if(Vi(Me))if(Me)I.propertiesMatches++,I.propertiesValueMatches++;else{var se=Re.parent;I.problems.push({location:{offset:se.keyNode.offset,length:se.keyNode.length},severity:Dt.Warning,message:x.errorMessage||"Property "+xe+" is not allowed."})}else{var We=new Vn;gn(Re,Me,We,N),I.mergePropertyMatch(We)}}}}if(typeof x.additionalProperties=="object")for(var yr=0,kr=W;yr<kr.length;yr++){var xe=kr[yr],Re=j[xe];if(Re){var We=new Vn;gn(Re,x.additionalProperties,We,N),I.mergePropertyMatch(We)}}else if(x.additionalProperties===!1&&W.length>0)for(var wn=0,Wt=W;wn<Wt.length;wn++){var xe=Wt[wn],Re=j[xe];if(Re){var se=Re.parent;I.problems.push({location:{offset:se.keyNode.offset,length:se.keyNode.length},severity:Dt.Warning,message:x.errorMessage||"Property "+xe+" is not allowed."})}}if(Qn(x.maxProperties)&&b.properties.length>x.maxProperties&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Object has more properties than limit of "+x.maxProperties+"."}),Qn(x.minProperties)&&b.properties.length<x.minProperties&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Object has fewer properties than the required number of "+x.minProperties}),x.dependencies)for(var yt=0,Pt=Object.keys(x.dependencies);yt<Pt.length;yt++){var ie=Pt[yt],nr=j[ie];if(nr){var ln=x.dependencies[ie];if(Array.isArray(ln))for(var hr=0,Is=ln;hr<Is.length;hr++){var ru=Is[hr];j[ru]?I.propertiesValueMatches++:I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Object is missing property "+ru+" required by property {$key}."})}else{var Me=jn(ln);if(Me){var We=new Vn;gn(b,Me,We,N),I.mergePropertyMatch(We)}}}}var Ro=jn(x.propertyNames);if(Ro)for(var Wi=0,nu=b.properties;Wi<nu.length;Wi++){var yc=nu[Wi],ie=yc.keyNode;ie&&gn(ie,Ro,I,Gd.instance)}}}function rb(e,r){var n=[],a=-1,o=e.getText(),f=Ss(o,!1),d=r&&r.collectComments?[]:void 0;function m(){for(;;){var Ee=f.scan();switch(I(),Ee){case 12:case 13:Array.isArray(d)&&d.push(_t.create(e.positionAt(f.getTokenOffset()),e.positionAt(f.getTokenOffset()+f.getTokenLength())));break;case 15:case 14:break;default:return Ee}}}function g(Ee){return f.getToken()===Ee?(m(),!0):!1}function b(Ee,ye,be,Se,ke){if(ke===void 0&&(ke=Dt.Error),n.length===0||be!==a){var Me=_t.create(e.positionAt(be),e.positionAt(Se));n.push(pa.create(Me,Ee,ke,ye,e.languageId)),a=be}}function x(Ee,ye,be,Se,ke){be===void 0&&(be=null),Se===void 0&&(Se=[]),ke===void 0&&(ke=[]);var Me=f.getTokenOffset(),Re=f.getTokenOffset()+f.getTokenLength();if(Me===Re&&Me>0){for(Me--;Me>0&&/\s/.test(o.charAt(Me));)Me--;Re=Me+1}if(b(Ee,ye,Me,Re),be&&N(be,!1),Se.length+ke.length>0)for(var We=f.getToken();We!==17;){if(Se.indexOf(We)!==-1){m();break}else if(ke.indexOf(We)!==-1)break;We=m()}return be}function I(){switch(f.getTokenError()){case 4:return x("Invalid unicode sequence in string.",Qt.InvalidUnicode),!0;case 5:return x("Invalid escape character in string.",Qt.InvalidEscapeCharacter),!0;case 3:return x("Unexpected end of number.",Qt.UnexpectedEndOfNumber),!0;case 1:return x("Unexpected end of comment.",Qt.UnexpectedEndOfComment),!0;case 2:return x("Unexpected end of string.",Qt.UnexpectedEndOfString),!0;case 6:return x("Invalid characters in string. Control characters must be escaped.",Qt.InvalidCharacter),!0}return!1}function N(Ee,ye){return Ee.length=f.getTokenOffset()+f.getTokenLength()-Ee.offset,ye&&m(),Ee}function j(Ee){if(f.getToken()!==3)return null;var ye=new Q0(Ee,f.getTokenOffset());m();for(var be=0,Se=!1;f.getToken()!==4&&f.getToken()!==17;){if(f.getToken()===5){Se||x("Value expected",Qt.ValueExpected);var ke=f.getTokenOffset();if(m(),f.getToken()===4){Se&&b("Trailing comma",Qt.TrailingComma,ke,ke+1);continue}}else Se&&x("Expected comma",Qt.CommaExpected);var Me=de(ye,be++);Me?ye.items.push(Me):x("Value expected",Qt.ValueExpected,null,[],[4,5]),Se=!0}return f.getToken()!==4?x("Expected comma or closing bracket",Qt.CommaOrCloseBacketExpected,ye):N(ye,!0)}function W(Ee,ye){var be=new _0(Ee,f.getTokenOffset()),Se=te(be);if(!Se)if(f.getToken()===16){x("Property keys must be doublequoted",Qt.Undefined);var ke=new Vv(be,f.getTokenOffset(),f.getTokenLength());ke.value=f.getTokenValue(),Se=ke,m()}else return null;be.keyNode=Se;var Me=ye[Se.value];if(Me?(b("Duplicate object key",Qt.DuplicateKey,be.keyNode.offset,be.keyNode.offset+be.keyNode.length,Dt.Warning),typeof Me=="object"&&b("DuplicateKeyWarning",Qt.DuplicateKey,Me.keyNode.offset,Me.keyNode.offset+Me.keyNode.length,Dt.Warning),ye[Se.value]=!0):ye[Se.value]=be,f.getToken()===6)be.colonOffset=f.getTokenOffset(),m();else if(x("Colon expected",Qt.ColonExpected),f.getToken()===10&&e.positionAt(Se.offset+Se.length).line<e.positionAt(f.getTokenOffset()).line)return be.length=Se.length,be;var Re=de(be,Se.value);return Re?(be.valueNode=Re,be.length=Re.offset+Re.length-be.offset,be):x("Value expected",Qt.ValueExpected,be,[],[2,5])}function ee(Ee){if(f.getToken()!==1)return null;var ye=new q0(Ee,f.getTokenOffset()),be=Object.create(null);m();for(var Se=!1;f.getToken()!==2&&f.getToken()!==17;){if(f.getToken()===5){Se||x("Property expected",Qt.PropertyExpected);var ke=f.getTokenOffset();if(m(),f.getToken()===2){Se&&b("Trailing comma",Qt.TrailingComma,ke,ke+1);continue}}else Se&&x("Expected comma",Qt.CommaExpected);var Me=W(ye,be);Me?ye.properties.push(Me):x("Property expected",Qt.PropertyExpected,null,[],[2,5]),Se=!0}return f.getToken()!==2?x("Expected comma or closing brace",Qt.CommaOrCloseBraceExpected,ye):N(ye,!0)}function te(Ee){if(f.getToken()!==10)return null;var ye=new Vv(Ee,f.getTokenOffset());return ye.value=f.getTokenValue(),N(ye,!0)}function se(Ee){if(f.getToken()!==11)return null;var ye=new Z0(Ee,f.getTokenOffset());if(f.getTokenError()===0){var be=f.getTokenValue();try{var Se=JSON.parse(be);if(!Qn(Se))return x("Invalid number format.",Qt.Undefined,ye);ye.value=Se}catch(ke){return x("Invalid number format.",Qt.Undefined,ye)}ye.isInteger=be.indexOf(".")===-1}return N(ye,!0)}function ie(Ee){var ye;switch(f.getToken()){case 7:return N(new X0(Ee,f.getTokenOffset()),!0);case 8:return N(new jv(Ee,!0,f.getTokenOffset()),!0);case 9:return N(new jv(Ee,!1,f.getTokenOffset()),!0);default:return null}}function de(Ee,ye){return j(Ee)||ee(Ee)||te(Ee)||se(Ee)||ie(Ee)}var we=null,xe=m();return xe!==17&&(we=de(null,null),we?f.getToken()!==17&&x("End of file expected.",Qt.Undefined):x("Expected a JSON object, array or literal.",Qt.Undefined)),new Hv(we,n,d)}function Kd(e,r,n){if(e!==null&&typeof e=="object"){var a=r+" ";if(Array.isArray(e)){if(e.length===0)return"[]";for(var o=`[
|
|
343
|
+
`,f=0;f<e.length;f++)o+=a+Kd(e[f],a,n),f<e.length-1&&(o+=","),o+=`
|
|
344
|
+
`;return o+=r+"]",o}else{var d=Object.keys(e);if(d.length===0)return"{}";for(var o=`{
|
|
345
|
+
`,f=0;f<d.length;f++){var m=d[f];o+=a+JSON.stringify(m)+": "+Kd(e[m],a,n),f<d.length-1&&(o+=","),o+=`
|
|
346
|
+
`}return o+=r+"}",o}}return n(e)}function nb(e,r){if(e.length<r.length)return!1;for(var n=0;n<r.length;n++)if(e[n]!==r[n])return!1;return!0}function Yd(e,r){var n=e.length-r.length;return n>0?e.lastIndexOf(r)===n:n===0?e===r:!1}function ib(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function A1(e,r){for(var n="";r>0;)(r&1)===1&&(n+=e),e+=e,r=r>>>1;return n}var ab=[",","}","]"],ob=[":"],sb=function(){function e(r,n,a,o){n===void 0&&(n=[]),a===void 0&&(a=Promise),o===void 0&&(o={}),this.schemaService=r,this.contributions=n,this.promiseConstructor=a,this.clientCapabilities=o,this.templateVarIdCounter=0}return e.prototype.doResolve=function(r){for(var n=this.contributions.length-1;n>=0;n--)if(this.contributions[n].resolveCompletion){var a=this.contributions[n].resolveCompletion(r);if(a)return a}return this.promiseConstructor.resolve(r)},e.prototype.doComplete=function(r,n,a){var o=this,f={items:[],isIncomplete:!1},d=r.getText(),m=r.offsetAt(n),g=a.getNodeFromOffset(m,!0);if(this.isInComment(r,g?g.offset:0,m))return Promise.resolve(f);if(g&&m===g.offset+g.length&&m>0){var b=d[m-1];(g.type==="object"&&b==="}"||g.type==="array"&&b==="]")&&(g=g.parent)}var x=this.getCurrentWord(r,m),I=null;if(g&&(g.type==="string"||g.type==="number"||g.type==="boolean"||g.type==="null"))I=_t.create(r.positionAt(g.offset),r.positionAt(g.offset+g.length));else{var N=m-x.length;N>0&&d[N-1]==='"'&&N--,I=_t.create(r.positionAt(N),n)}var j=this.doesSupportsCommitCharacters(),W={},ee={add:function(te){var se=W[te.label];se?se.documentation||(se.documentation=te.documentation):(W[te.label]=te,I&&(te.textEdit=ai.replace(I,te.insertText)),j&&(te.commitCharacters=te.kind===Zn.Property?ob:ab),f.items.push(te))},setAsIncomplete:function(){f.isIncomplete=!0},error:function(te){console.error(te)},log:function(te){console.log(te)},getNumberOfProposals:function(){return f.items.length}};return this.schemaService.getSchemaForResource(r.uri,a).then(function(te){var se=[],ie=!0,de="",we=null;if(g&&g.type==="string"){var xe=g.parent;xe&&xe.type==="property"&&xe.keyNode===g&&(ie=!xe.valueNode,we=xe,de=d.substr(g.offset+1,g.length-2),xe&&(g=xe.parent))}if(g&&g.type==="object"){if(g.offset===m)return f;var Ee=g.properties;Ee.forEach(function(ke){(!we||we!==ke)&&(W[ke.keyNode.value]=Ud.create("__"))});var ye="";ie&&(ye=o.evaluateSeparatorAfter(r,r.offsetAt(I.end))),te?o.getPropertyCompletions(te,a,g,ie,ye,ee):o.getSchemaLessPropertyCompletions(a,g,de,ee);var be=$d(g);o.contributions.forEach(function(ke){var Me=ke.collectPropertyCompletions(r.uri,be,x,ie,ye==="",ee);Me&&se.push(Me)}),!te&&x.length>0&&d.charAt(m-x.length-1)!=='"'&&(ee.add({kind:Zn.Property,label:o.getLabelForValue(x),insertText:o.getInsertTextForProperty(x,null,!1,ye),insertTextFormat:Zr.Snippet,documentation:""}),ee.setAsIncomplete())}var Se={};return te?o.getValueCompletions(te,a,g,m,r,ee,Se):o.getSchemaLessValueCompletions(a,g,m,r,ee),o.contributions.length>0&&o.getContributedValueCompletions(a,g,m,r,ee,se),o.promiseConstructor.all(se).then(function(){if(ee.getNumberOfProposals()===0){var ke=m;g&&(g.type==="string"||g.type==="number"||g.type==="boolean"||g.type==="null")&&(ke=g.offset+g.length);var Me=o.evaluateSeparatorAfter(r,ke);o.addFillerValueCompletions(Se,Me,ee)}return f})})},e.prototype.getPropertyCompletions=function(r,n,a,o,f,d){var m=this,g=n.getMatchingSchemas(r.schema,a.offset);g.forEach(function(b){if(b.node===a&&!b.inverted){var x=b.schema.properties;x&&Object.keys(x).forEach(function(I){var N=x[I],j=!1;if(typeof N=="object"&&N.allOf)for(var W=0,ee=N.allOf;W<ee.length;W++){var te=ee[W];if(te.readOnly){j=!0;break}}if(typeof N=="object"&&!N.deprecationMessage&&!N.doNotSuggest&&!j){var se={kind:Zn.Property,label:m.sanitizeLabel(I),insertText:m.getInsertTextForProperty(I,N,o,f),insertTextFormat:Zr.Snippet,filterText:m.getFilterTextForValue(I),documentation:m.fromMarkup(N.markdownDescription)||N.description||""};Yd(se.insertText,"$1"+f)&&(se.command={title:"Suggest",command:"editor.action.triggerSuggest"}),d.add(se)}})}})},e.prototype.getSchemaLessPropertyCompletions=function(r,n,a,o){var f=this,d=function(g){g.properties.forEach(function(b){var x=b.keyNode.value;o.add({kind:Zn.Property,label:f.sanitizeLabel(x),insertText:f.getInsertTextForValue(x,""),insertTextFormat:Zr.Snippet,filterText:f.getFilterTextForValue(x),documentation:""})})};if(n.parent)if(n.parent.type==="property"){var m=n.parent.keyNode.value;r.visit(function(g){return g.type==="property"&&g!==n.parent&&g.keyNode.value===m&&g.valueNode&&g.valueNode.type==="object"&&d(g.valueNode),!0})}else n.parent.type==="array"&&n.parent.items.forEach(function(g){g.type==="object"&&g!==n&&d(g)});else n.type==="object"&&o.add({kind:Zn.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:Zr.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},e.prototype.getSchemaLessValueCompletions=function(r,n,a,o,f){var d=this,m=a;if(n&&(n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(m=n.offset+n.length,n=n.parent),!n){f.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Zr.Snippet,documentation:""}),f.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Zr.Snippet,documentation:""});return}var g=this.evaluateSeparatorAfter(o,m),b=function(j){Wv(j.parent,a,!0)||f.add({kind:d.getSuggestionKind(j.type),label:d.getLabelTextForMatchingNode(j,o),insertText:d.getInsertTextForMatchingNode(j,o,g),insertTextFormat:Zr.Snippet,documentation:""}),j.type==="boolean"&&d.addBooleanValueCompletion(!j.value,g,f)};if(n.type==="property"&&a>n.colonOffset){var x=n.valueNode;if(x&&(a>x.offset+x.length||x.type==="object"||x.type==="array"))return;var I=n.keyNode.value;r.visit(function(j){return j.type==="property"&&j.keyNode.value===I&&j.valueNode&&b(j.valueNode),!0}),I==="$schema"&&n.parent&&!n.parent.parent&&this.addDollarSchemaCompletions(g,f)}if(n.type==="array")if(n.parent&&n.parent.type==="property"){var N=n.parent.keyNode.value;r.visit(function(j){return j.type==="property"&&j.keyNode.value===N&&j.valueNode&&j.valueNode.type==="array"&&j.valueNode.items.forEach(b),!0})}else n.items.forEach(b)},e.prototype.getValueCompletions=function(r,n,a,o,f,d,m){var g=this,b=o,x=null,I=null;if(a&&(a.type==="string"||a.type==="number"||a.type==="boolean"||a.type==="null")&&(b=a.offset+a.length,I=a,a=a.parent),!a){this.addSchemaValueCompletions(r.schema,"",d,m);return}if(a.type==="property"&&o>a.colonOffset){var N=a.valueNode;if(N&&o>N.offset+N.length)return;x=a.keyNode.value,a=a.parent}if(a&&(x!==null||a.type==="array")){var j=this.evaluateSeparatorAfter(f,b),W=n.getMatchingSchemas(r.schema,a.offset,I);W.forEach(function(ee){if(ee.node===a&&!ee.inverted&&ee.schema){if(a.type==="array"&&ee.schema.items)if(Array.isArray(ee.schema.items)){var te=g.findItemAtOffset(a,f,o);te<ee.schema.items.length&&g.addSchemaValueCompletions(ee.schema.items[te],j,d,m)}else g.addSchemaValueCompletions(ee.schema.items,j,d,m);if(ee.schema.properties){var se=ee.schema.properties[x];se&&g.addSchemaValueCompletions(se,j,d,m)}}}),x==="$schema"&&!a.parent&&this.addDollarSchemaCompletions(j,d),m.boolean&&(this.addBooleanValueCompletion(!0,j,d),this.addBooleanValueCompletion(!1,j,d)),m.null&&this.addNullValueCompletion(j,d)}},e.prototype.getContributedValueCompletions=function(r,n,a,o,f,d){if(!n)this.contributions.forEach(function(x){var I=x.collectDefaultCompletions(o.uri,f);I&&d.push(I)});else if((n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(n=n.parent),n.type==="property"&&a>n.colonOffset){var m=n.keyNode.value,g=n.valueNode;if(!g||a<=g.offset+g.length){var b=$d(n.parent);this.contributions.forEach(function(x){var I=x.collectValueCompletions(o.uri,b,m,f);I&&d.push(I)})}}},e.prototype.addSchemaValueCompletions=function(r,n,a,o){var f=this;typeof r=="object"&&(this.addEnumValueCompletions(r,n,a),this.addDefaultValueCompletions(r,n,a),this.collectTypes(r,o),Array.isArray(r.allOf)&&r.allOf.forEach(function(d){return f.addSchemaValueCompletions(d,n,a,o)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(d){return f.addSchemaValueCompletions(d,n,a,o)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(d){return f.addSchemaValueCompletions(d,n,a,o)}))},e.prototype.addDefaultValueCompletions=function(r,n,a,o){var f=this;o===void 0&&(o=0);var d=!1;if(da(r.default)){for(var m=r.type,g=r.default,b=o;b>0;b--)g=[g],m="array";a.add({kind:this.getSuggestionKind(m),label:this.getLabelForValue(g),insertText:this.getInsertTextForValue(g,n),insertTextFormat:Zr.Snippet}),d=!0}Array.isArray(r.examples)&&r.examples.forEach(function(x){for(var I=r.type,N=x,j=o;j>0;j--)N=[N],I="array";a.add({kind:f.getSuggestionKind(I),label:f.getLabelForValue(N),insertText:f.getInsertTextForValue(N,n),insertTextFormat:Zr.Snippet}),d=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(x){var I=r.type,N=x.body,j=x.label,W,ee;if(da(N)){for(var te=r.type,se=o;se>0;se--)N=[N],te="array";W=f.getInsertTextForSnippetValue(N,n),ee=f.getFilterTextForSnippetValue(N),j=j||f.getLabelForSnippetValue(N)}else if(typeof x.bodyText=="string"){for(var ie="",de="",we="",se=o;se>0;se--)ie=ie+we+`[
|
|
347
|
+
`,de=de+`
|
|
348
|
+
`+we+"]",we+=" ",I="array";W=ie+we+x.bodyText.split(`
|
|
349
|
+
`).join(`
|
|
350
|
+
`+we)+de+n,j=j||f.sanitizeLabel(W),ee=W.replace(/[\n]/g,"")}a.add({kind:f.getSuggestionKind(I),label:j,documentation:f.fromMarkup(x.markdownDescription)||x.description,insertText:W,insertTextFormat:Zr.Snippet,filterText:ee}),d=!0}),!d&&typeof r.items=="object"&&!Array.isArray(r.items)&&this.addDefaultValueCompletions(r.items,n,a,o+1)},e.prototype.addEnumValueCompletions=function(r,n,a){if(da(r.const)&&a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(r.const),insertText:this.getInsertTextForValue(r.const,n),insertTextFormat:Zr.Snippet,documentation:this.fromMarkup(r.markdownDescription)||r.description}),Array.isArray(r.enum))for(var o=0,f=r.enum.length;o<f;o++){var d=r.enum[o],m=this.fromMarkup(r.markdownDescription)||r.description;r.markdownEnumDescriptions&&o<r.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?m=this.fromMarkup(r.markdownEnumDescriptions[o]):r.enumDescriptions&&o<r.enumDescriptions.length&&(m=r.enumDescriptions[o]),a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(d),insertText:this.getInsertTextForValue(d,n),insertTextFormat:Zr.Snippet,documentation:m})}},e.prototype.collectTypes=function(r,n){if(!(Array.isArray(r.enum)||da(r.const))){var a=r.type;Array.isArray(a)?a.forEach(function(o){return n[o]=!0}):n[a]=!0}},e.prototype.addFillerValueCompletions=function(r,n,a){r.object&&a.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},n),insertTextFormat:Zr.Snippet,detail:"New object",documentation:""}),r.array&&a.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],n),insertTextFormat:Zr.Snippet,detail:"New array",documentation:""})},e.prototype.addBooleanValueCompletion=function(r,n,a){a.add({kind:this.getSuggestionKind("boolean"),label:r?"true":"false",insertText:this.getInsertTextForValue(r,n),insertTextFormat:Zr.Snippet,documentation:""})},e.prototype.addNullValueCompletion=function(r,n){n.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+r,insertTextFormat:Zr.Snippet,documentation:""})},e.prototype.addDollarSchemaCompletions=function(r,n){var a=this,o=this.schemaService.getRegisteredSchemaIds(function(f){return f==="http"||f==="https"});o.forEach(function(f){return n.add({kind:Zn.Module,label:a.getLabelForValue(f),filterText:a.getFilterTextForValue(f),insertText:a.getInsertTextForValue(f,r),insertTextFormat:Zr.Snippet,documentation:""})})},e.prototype.sanitizeLabel=function(r){return r=r.replace(/[\n]/g,"\u21B5"),r.length>57&&(r=r.substr(0,57).trim()+"..."),r},e.prototype.getLabelForValue=function(r){return this.sanitizeLabel(JSON.stringify(r))},e.prototype.getFilterTextForValue=function(r){return JSON.stringify(r)},e.prototype.getFilterTextForSnippetValue=function(r){return JSON.stringify(r).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getLabelForSnippetValue=function(r){var n=JSON.stringify(r);return n=n.replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1"),this.sanitizeLabel(n)},e.prototype.getInsertTextForPlainText=function(r){return r.replace(/[\\\$\}]/g,"\\$&")},e.prototype.getInsertTextForValue=function(r,n){var a=JSON.stringify(r,null," ");return a==="{}"?"{$1}"+n:a==="[]"?"[$1]"+n:this.getInsertTextForPlainText(a+n)},e.prototype.getInsertTextForSnippetValue=function(r,n){var a=function(o){return typeof o=="string"&&o[0]==="^"?o.substr(1):JSON.stringify(o)};return Kd(r,"",a)+n},e.prototype.getInsertTextForGuessedValue=function(r,n){switch(typeof r){case"object":return r===null?"${1:null}"+n:this.getInsertTextForValue(r,n);case"string":var a=JSON.stringify(r);return a=a.substr(1,a.length-2),a=this.getInsertTextForPlainText(a),'"${1:'+a+'}"'+n;case"number":case"boolean":return"${1:"+JSON.stringify(r)+"}"+n}return this.getInsertTextForValue(r,n)},e.prototype.getSuggestionKind=function(r){if(Array.isArray(r)){var n=r;r=n.length>0?n[0]:null}if(!r)return Zn.Value;switch(r){case"string":return Zn.Value;case"object":return Zn.Module;case"property":return Zn.Property;default:return Zn.Value}},e.prototype.getLabelTextForMatchingNode=function(r,n){switch(r.type){case"array":return"[]";case"object":return"{}";default:var a=n.getText().substr(r.offset,r.length);return a}},e.prototype.getInsertTextForMatchingNode=function(r,n,a){switch(r.type){case"array":return this.getInsertTextForValue([],a);case"object":return this.getInsertTextForValue({},a);default:var o=n.getText().substr(r.offset,r.length)+a;return this.getInsertTextForPlainText(o)}},e.prototype.getInsertTextForProperty=function(r,n,a,o){var f=this.getInsertTextForValue(r,"");if(!a)return f;var d=f+": ",m,g=0;if(n){if(Array.isArray(n.defaultSnippets)){if(n.defaultSnippets.length===1){var b=n.defaultSnippets[0].body;da(b)&&(m=this.getInsertTextForSnippetValue(b,""))}g+=n.defaultSnippets.length}if(n.enum&&(!m&&n.enum.length===1&&(m=this.getInsertTextForGuessedValue(n.enum[0],"")),g+=n.enum.length),da(n.default)&&(m||(m=this.getInsertTextForGuessedValue(n.default,"")),g++),g===0){var x=Array.isArray(n.type)?n.type[0]:n.type;switch(x||(n.properties?x="object":n.items&&(x="array")),x){case"boolean":m="$1";break;case"string":m='"$1"';break;case"object":m="{$1}";break;case"array":m="[$1]";break;case"number":case"integer":m="${1:0}";break;case"null":m="${1:null}";break;default:return f}}}return(!m||g>1)&&(m="$1"),d+m+o},e.prototype.getCurrentWord=function(r,n){for(var a=n-1,o=r.getText();a>=0&&`
|
|
351
|
+
\r\v":{[,]}`.indexOf(o.charAt(a))===-1;)a--;return o.substring(a+1,n)},e.prototype.evaluateSeparatorAfter=function(r,n){var a=Ss(r.getText(),!0);a.setPosition(n);var o=a.scan();switch(o){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(r,n,a){for(var o=Ss(n.getText(),!0),f=r.items,d=f.length-1;d>=0;d--){var m=f[d];if(a>m.offset+m.length){o.setPosition(m.offset+m.length);var g=o.scan();return g===5&&a>=o.getTokenOffset()+o.getTokenLength()?d+1:d}else if(a>=m.offset)return d}return 0},e.prototype.isInComment=function(r,n,a){var o=Ss(r.getText(),!1);o.setPosition(n);for(var f=o.scan();f!==17&&o.getTokenOffset()+o.getTokenLength()<a;)f=o.scan();return(f===12||f===13)&&o.getTokenOffset()<=a},e.prototype.fromMarkup=function(r){if(r&&this.doesSupportMarkdown())return{kind:Io.Markdown,value:r}},e.prototype.doesSupportMarkdown=function(){if(!da(this.supportsMarkdown)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=r&&r.completionItem&&Array.isArray(r.completionItem.documentationFormat)&&r.completionItem.documentationFormat.indexOf(Io.Markdown)!==-1}return this.supportsMarkdown},e.prototype.doesSupportsCommitCharacters=function(){if(!da(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},e}(),lb=function(){function e(r,n,a){n===void 0&&(n=[]),this.schemaService=r,this.contributions=n,this.promise=a||Promise}return e.prototype.doHover=function(r,n,a){var o=r.offsetAt(n),f=a.getNodeFromOffset(o);if(!f||(f.type==="object"||f.type==="array")&&o>f.offset+1&&o<f.offset+f.length-1)return this.promise.resolve(null);var d=f;if(f.type==="string"){var m=f.parent;if(m&&m.type==="property"&&m.keyNode===f&&(f=m.valueNode,!f))return this.promise.resolve(null)}for(var g=_t.create(r.positionAt(d.offset),r.positionAt(d.offset+d.length)),b=function(W){var ee={contents:W,range:g};return ee},x=$d(f),I=this.contributions.length-1;I>=0;I--){var N=this.contributions[I],j=N.getInfoContribution(r.uri,x);if(j)return j.then(function(W){return b(W)})}return this.schemaService.getSchemaForResource(r.uri,a).then(function(W){if(W){var ee=a.getMatchingSchemas(W.schema,f.offset),te=null,se=null,ie=null,de=null;ee.every(function(xe){if(xe.node===f&&!xe.inverted&&xe.schema&&(te=te||xe.schema.title,se=se||xe.schema.markdownDescription||Jd(xe.schema.description),xe.schema.enum)){var Ee=xe.schema.enum.indexOf(Ua(f));xe.schema.markdownEnumDescriptions?ie=xe.schema.markdownEnumDescriptions[Ee]:xe.schema.enumDescriptions&&(ie=Jd(xe.schema.enumDescriptions[Ee])),ie&&(de=xe.schema.enum[Ee],typeof de!="string"&&(de=JSON.stringify(de)))}return!0});var we="";return te&&(we=Jd(te)),se&&(we.length>0&&(we+=`
|
|
352
|
+
|
|
353
|
+
`),we+=se),ie&&(we.length>0&&(we+=`
|
|
354
|
+
|
|
355
|
+
`),we+="`"+ub(de)+"`: "+ie),b([we])}return null})},e}();function Jd(e){if(e){var r=e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
|
|
356
|
+
|
|
357
|
+
$3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function ub(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}var fb=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,o){a.__proto__=o}||function(a,o){for(var f in o)o.hasOwnProperty(f)&&(a[f]=o[f])},e(r,n)};return function(r,n){e(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Br,eu;if(typeof process=="object")eu=!1;else if(typeof navigator=="object"){var cb=navigator.userAgent;eu=cb.indexOf("Windows")>=0}function C1(e){return 55296<=e&&e<=56319}function E1(e){return 56320<=e&&e<=57343}function O1(e){return e>=97&&e<=102}function db(e){return e>=97&&e<=122}function pb(e){return e>=65&&e<=90}function T1(e){return db(e)||pb(e)}var hb=/^\w[\w\d+.-]*$/,vb=/^\//,gb=/^\/\//;function mb(e,r){if(!e.scheme&&r)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!hb.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!vb.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(gb.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function yb(e,r){return!e&&!r?"file":e}function bb(e,r){switch(e){case"https":case"http":case"file":r?r[0]!==Ci&&(r=Ci+r):r=Ci;break}return r}var fr="",Ci="/",xb=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Xd=function(){function e(r,n,a,o,f,d){d===void 0&&(d=!1),typeof r=="object"?(this.scheme=r.scheme||fr,this.authority=r.authority||fr,this.path=r.path||fr,this.query=r.query||fr,this.fragment=r.fragment||fr):(this.scheme=yb(r,d),this.authority=n||fr,this.path=bb(this.scheme,a||fr),this.query=o||fr,this.fragment=f||fr,mb(this,d))}return e.isUri=function(r){return r instanceof e?!0:r?typeof r.authority=="string"&&typeof r.fragment=="string"&&typeof r.path=="string"&&typeof r.query=="string"&&typeof r.scheme=="string"&&typeof r.fsPath=="function"&&typeof r.with=="function"&&typeof r.toString=="function":!1},Object.defineProperty(e.prototype,"fsPath",{get:function(){return Kv(this,!1)},enumerable:!0,configurable:!0}),e.prototype.with=function(r){if(!r)return this;var n=r.scheme,a=r.authority,o=r.path,f=r.query,d=r.fragment;return n===void 0?n=this.scheme:n===null&&(n=fr),a===void 0?a=this.authority:a===null&&(a=fr),o===void 0?o=this.path:o===null&&(o=fr),f===void 0?f=this.query:f===null&&(f=fr),d===void 0?d=this.fragment:d===null&&(d=fr),n===this.scheme&&a===this.authority&&o===this.path&&f===this.query&&d===this.fragment?this:new Es(n,a,o,f,d)},e.parse=function(r,n){n===void 0&&(n=!1);var a=xb.exec(r);return a?new Es(a[2]||fr,pc(a[4]||fr),pc(a[5]||fr),pc(a[7]||fr),pc(a[9]||fr),n):new Es(fr,fr,fr,fr,fr)},e.file=function(r){var n=fr;if(eu&&(r=r.replace(/\\/g,Ci)),r[0]===Ci&&r[1]===Ci){var a=r.indexOf(Ci,2);a===-1?(n=r.substring(2),r=Ci):(n=r.substring(2,a),r=r.substring(a)||Ci)}return new Es("file",n,r,fr,fr)},e.from=function(r){return new Es(r.scheme,r.authority,r.path,r.query,r.fragment)},e.prototype.toString=function(r){return r===void 0&&(r=!1),Qd(this,r)},e.prototype.toJSON=function(){return this},e.revive=function(r){if(r){if(r instanceof e)return r;var n=new Es(r);return n._formatted=r.external,n._fsPath=r._sep===zv?r.fsPath:null,n}else return r},e}(),zv=eu?1:void 0,Es=function(e){fb(r,e);function r(){var n=e!==null&&e.apply(this,arguments)||this;return n._formatted=null,n._fsPath=null,n}return Object.defineProperty(r.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=Kv(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(n){return n===void 0&&(n=!1),n?Qd(this,!0):(this._formatted||(this._formatted=Qd(this,!1)),this._formatted)},r.prototype.toJSON=function(){var n={$mid:1};return this._fsPath&&(n.fsPath=this._fsPath,n._sep=zv),this._formatted&&(n.external=this._formatted),this.path&&(n.path=this.path),this.scheme&&(n.scheme=this.scheme),this.authority&&(n.authority=this.authority),this.query&&(n.query=this.query),this.fragment&&(n.fragment=this.fragment),n},r}(Xd),Gv=(Br={},Br[58]="%3A",Br[47]="%2F",Br[63]="%3F",Br[35]="%23",Br[91]="%5B",Br[93]="%5D",Br[64]="%40",Br[33]="%21",Br[36]="%24",Br[38]="%26",Br[39]="%27",Br[40]="%28",Br[41]="%29",Br[42]="%2A",Br[43]="%2B",Br[44]="%2C",Br[59]="%3B",Br[61]="%3D",Br[32]="%20",Br);function $v(e,r){for(var n=void 0,a=-1,o=0;o<e.length;o++){var f=e.charCodeAt(o);if(f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===45||f===46||f===95||f===126||r&&f===47)a!==-1&&(n+=encodeURIComponent(e.substring(a,o)),a=-1),n!==void 0&&(n+=e.charAt(o));else{n===void 0&&(n=e.substr(0,o));var d=Gv[f];d!==void 0?(a!==-1&&(n+=encodeURIComponent(e.substring(a,o)),a=-1),n+=d):a===-1&&(a=o)}}return a!==-1&&(n+=encodeURIComponent(e.substring(a))),n!==void 0?n:e}function Sb(e){for(var r=void 0,n=0;n<e.length;n++){var a=e.charCodeAt(n);a===35||a===63?(r===void 0&&(r=e.substr(0,n)),r+=Gv[a]):r!==void 0&&(r+=e[n])}return r!==void 0?r:e}function Kv(e,r){var n;return e.authority&&e.path.length>1&&e.scheme==="file"?n="//"+e.authority+e.path:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?r?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,eu&&(n=n.replace(/\//g,"\\")),n}function Qd(e,r){var n=r?Sb:$v,a="",o=e.scheme,f=e.authority,d=e.path,m=e.query,g=e.fragment;if(o&&(a+=o,a+=":"),(f||o==="file")&&(a+=Ci,a+=Ci),f){var b=f.indexOf("@");if(b!==-1){var x=f.substr(0,b);f=f.substr(b+1),b=x.indexOf(":"),b===-1?a+=n(x,!1):(a+=n(x.substr(0,b),!1),a+=":",a+=n(x.substr(b+1),!1)),a+="@"}f=f.toLowerCase(),b=f.indexOf(":"),b===-1?a+=n(f,!1):(a+=n(f.substr(0,b),!1),a+=f.substr(b))}if(d){if(d.length>=3&&d.charCodeAt(0)===47&&d.charCodeAt(2)===58){var I=d.charCodeAt(1);I>=65&&I<=90&&(d="/"+String.fromCharCode(I+32)+":"+d.substr(3))}else if(d.length>=2&&d.charCodeAt(1)===58){var I=d.charCodeAt(0);I>=65&&I<=90&&(d=String.fromCharCode(I+32)+":"+d.substr(2))}a+=n(d,!0)}return m&&(a+="?",a+=n(m,!1)),g&&(a+="#",a+=r?g:$v(g,!1)),a}function Yv(e){try{return decodeURIComponent(e)}catch(r){return e.length>3?e.substr(0,3)+Yv(e.substr(3)):e}}var Jv=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function pc(e){return e.match(Jv)?e.replace(Jv,function(r){return Yv(r)}):e}var wb=function(){function e(r){try{this.patternRegExp=new RegExp(ib(r)+"$")}catch(n){this.patternRegExp=null}this.schemas=[]}return e.prototype.addSchema=function(r){this.schemas.push(r)},e.prototype.matchesPattern=function(r){return this.patternRegExp&&this.patternRegExp.test(r)},e.prototype.getSchemas=function(){return this.schemas},e}(),Ab=function(){function e(r,n,a){this.service=r,this.url=n,this.dependencies={},a&&(this.unresolvedSchema=this.service.promise.resolve(new Os(a)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},e.prototype.getResolvedSchema=function(){var r=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(n){return r.service.resolveSchemaContent(n,r.url,r.dependencies)})),this.resolvedSchema},e.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},e}(),Os=function(){function e(r,n){n===void 0&&(n=[]),this.schema=r,this.errors=n}return e}(),Xv=function(){function e(r,n){n===void 0&&(n=[]),this.schema=r,this.errors=n}return e.prototype.getSection=function(r){return jn(this.getSectionRecursive(r,this.schema))},e.prototype.getSectionRecursive=function(r,n){if(!n||typeof n=="boolean"||r.length===0)return n;var a=r.shift();if(n.properties&&typeof n.properties[a])return this.getSectionRecursive(r,n.properties[a]);if(n.patternProperties)for(var o=0,f=Object.keys(n.patternProperties);o<f.length;o++){var d=f[o],m=new RegExp(d);if(m.test(a))return this.getSectionRecursive(r,n.patternProperties[d])}else{if(typeof n.additionalProperties=="object")return this.getSectionRecursive(r,n.additionalProperties);if(a.match("[0-9]+")){if(Array.isArray(n.items)){var g=parseInt(a,10);if(!isNaN(g)&&n.items[g])return this.getSectionRecursive(r,n.items[g])}else if(n.items)return this.getSectionRecursive(r,n.items)}}return null},e}(),Cb=function(){function e(r,n,a){this.contextService=n,this.requestService=r,this.promiseConstructor=a||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(r){return Object.keys(this.registeredSchemasIds).filter(function(n){var a=Xd.parse(n).scheme;return a!=="schemaservice"&&(!r||r(a))})},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(r){var n=this,a=!1;r=this.normalizeId(r);for(var o=[r],f=Object.keys(this.schemasById).map(function(b){return n.schemasById[b]});o.length;)for(var d=o.pop(),m=0;m<f.length;m++){var g=f[m];g&&(g.url===d||g.dependencies[d])&&(g.url!==d&&o.push(g.url),g.clearSchema(),f[m]=void 0,a=!0)}return a},e.prototype.normalizeId=function(r){try{return Xd.parse(r).toString()}catch(n){return r}},e.prototype.setSchemaContributions=function(r){if(r.schemas){var n=r.schemas;for(var a in n){var o=this.normalizeId(a);this.contributionSchemas[o]=this.addSchemaHandle(o,n[a])}}if(r.schemaAssociations){var f=r.schemaAssociations;for(var d in f){var m=f[d];this.contributionAssociations[d]=m;for(var g=this.getOrAddFilePatternAssociation(d),b=0,x=m;b<x.length;b++){var I=x[b],a=this.normalizeId(I);g.addSchema(a)}}}},e.prototype.addSchemaHandle=function(r,n){var a=new Ab(this,r,n);return this.schemasById[r]=a,a},e.prototype.getOrAddSchemaHandle=function(r,n){return this.schemasById[r]||this.addSchemaHandle(r,n)},e.prototype.getOrAddFilePatternAssociation=function(r){var n=this.filePatternAssociationById[r];return n||(n=new wb(r),this.filePatternAssociationById[r]=n,this.filePatternAssociations.push(n)),n},e.prototype.registerExternalSchema=function(r,n,a){n===void 0&&(n=null);var o=this.normalizeId(r);if(this.registeredSchemasIds[o]=!0,n)for(var f=0,d=n;f<d.length;f++){var m=d[f];this.getOrAddFilePatternAssociation(m).addSchema(o)}return a?this.addSchemaHandle(o,a):this.getOrAddSchemaHandle(o)},e.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={};for(var r in this.contributionSchemas)this.schemasById[r]=this.contributionSchemas[r],this.registeredSchemasIds[r]=!0;for(var n in this.contributionAssociations)for(var a=this.getOrAddFilePatternAssociation(n),o=0,f=this.contributionAssociations[n];o<f.length;o++){var d=f[o],r=this.normalizeId(d);a.addSchema(r)}},e.prototype.getResolvedSchema=function(r){var n=this.normalizeId(r),a=this.schemasById[n];return a?a.getResolvedSchema():this.promise.resolve(null)},e.prototype.loadSchema=function(r){if(!this.requestService){var n="Unable to load schema from '"+hc(r)+"'. No schema request service available";return this.promise.resolve(new Os({},[n]))}return this.requestService(r).then(function(a){if(!a){var o="Unable to load schema from '"+hc(r)+"': No content.";return new Os({},[o])}var f={},d=[];f=U0(a,d);var m=d.length?["Unable to parse content from '"+hc(r)+"': Parse error at offset "+d[0].offset]:[];return new Os(f,m)},function(a){var o="Unable to load schema from '"+hc(r)+"': "+a.toString();return new Os({},[o])})},e.prototype.resolveSchemaContent=function(r,n,a){var o=this,f=r.errors.slice(0),d=r.schema;if(d.$schema){var m=this.normalizeId(d.$schema);if(m==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Xv({},["Draft-03 schemas are not supported."]));m==="https://json-schema.org/draft/2019-09/schema"&&r.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var g=this.contextService,b=function(j,W){if(!W)return j;var ee=j;return W[0]==="/"&&(W=W.substr(1)),W.split("/").some(function(te){return ee=ee[te],!ee}),ee},x=function(j,W,ee,te){var se=b(W,te);if(se)for(var ie in se)se.hasOwnProperty(ie)&&!j.hasOwnProperty(ie)&&(j[ie]=se[ie]);else f.push("$ref '"+te+"' in '"+ee+"' can not be resolved.")},I=function(j,W,ee,te,se){g&&!/^\w+:\/\/.*/.test(W)&&(W=g.resolveRelativePath(W,te)),W=o.normalizeId(W);var ie=o.getOrAddSchemaHandle(W);return ie.getUnresolvedSchema().then(function(de){if(se[W]=!0,de.errors.length){var we=ee?W+"#"+ee:W;f.push("Problems loading reference '"+we+"': "+de.errors[0]+".")}return x(j,de.schema,W,ee),N(j,de.schema,W,ie.dependencies)})},N=function(j,W,ee,te){if(!j||typeof j!="object")return Promise.resolve(null);for(var se=[j],ie=[],de=[],we=function(){for(var Se=[],ke=0;ke<arguments.length;ke++)Se[ke]=arguments[ke];for(var Me=0,Re=Se;Me<Re.length;Me++){var We=Re[Me];typeof We=="object"&&se.push(We)}},xe=function(){for(var Se=[],ke=0;ke<arguments.length;ke++)Se[ke]=arguments[ke];for(var Me=0,Re=Se;Me<Re.length;Me++){var We=Re[Me];if(typeof We=="object")for(var It in We){var vt=We[It];typeof vt=="object"&&se.push(vt)}}},Ee=function(){for(var Se=[],ke=0;ke<arguments.length;ke++)Se[ke]=arguments[ke];for(var Me=0,Re=Se;Me<Re.length;Me++){var We=Re[Me];if(Array.isArray(We))for(var It=0,vt=We;It<vt.length;It++){var rr=vt[It];typeof rr=="object"&&se.push(rr)}}},ye=function(Se){for(var ke=[];Se.$ref;){var Me=Se.$ref,Re=Me.split("#",2);if(delete Se.$ref,Re[0].length>0){de.push(I(Se,Re[0],Re[1],ee,te));return}else ke.indexOf(Me)===-1&&(x(Se,W,ee,Re[1]),ke.push(Me))}we(Se.items,Se.additionalProperties,Se.not,Se.contains,Se.propertyNames,Se.if,Se.then,Se.else),xe(Se.definitions,Se.properties,Se.patternProperties,Se.dependencies),Ee(Se.anyOf,Se.allOf,Se.oneOf,Se.items)};se.length;){var be=se.pop();ie.indexOf(be)>=0||(ie.push(be),ye(be))}return o.promise.all(de)};return N(d,d,n,a).then(function(j){return new Xv(d,f)})},e.prototype.getSchemaForResource=function(r,n){if(n&&n.root&&n.root.type==="object"){var a=n.root.properties.filter(function(W){return W.keyNode.value==="$schema"&&W.valueNode&&W.valueNode.type==="string"});if(a.length>0){var o=Ua(a[0].valueNode);if(o&&nb(o,".")&&this.contextService&&(o=this.contextService.resolveRelativePath(o,r)),o){var f=this.normalizeId(o);return this.getOrAddSchemaHandle(f).getResolvedSchema()}}}for(var d=Object.create(null),m=[],g=0,b=this.filePatternAssociations;g<b.length;g++){var x=b[g];if(x.matchesPattern(r))for(var I=0,N=x.getSchemas();I<N.length;I++){var j=N[I];d[j]||(m.push(j),d[j]=!0)}}return m.length>0?this.createCombinedSchema(r,m).getResolvedSchema():this.promise.resolve(null)},e.prototype.createCombinedSchema=function(r,n){if(n.length===1)return this.getOrAddSchemaHandle(n[0]);var a="schemaservice://combinedSchema/"+encodeURIComponent(r),o={allOf:n.map(function(f){return{$ref:f}})};return this.addSchemaHandle(a,o)},e}();function hc(e){try{}catch(r){}return e}var Eb=function(){function e(r,n){this.jsonSchemaService=r,this.promise=n,this.validationEnabled=!0}return e.prototype.configure=function(r){r&&(this.validationEnabled=r.validate,this.commentSeverity=r.allowComments?void 0:Dt.Error)},e.prototype.doValidation=function(r,n,a,o){var f=this;if(!this.validationEnabled)return this.promise.resolve([]);var d=[],m={},g=function(I){var N=I.range.start.line+" "+I.range.start.character+" "+I.message;m[N]||(m[N]=!0,d.push(I))},b=function(I){var N=a?_v(a.trailingCommas):Dt.Error,j=a?_v(a.comments):f.commentSeverity;if(I){if(I.errors.length&&n.root){var W=n.root,ee=W.type==="object"?W.properties[0]:null;if(ee&&ee.keyNode.value==="$schema"){var te=ee.valueNode||ee,se=_t.create(r.positionAt(te.offset),r.positionAt(te.offset+te.length));g(pa.create(se,I.errors[0],Dt.Warning,Qt.SchemaResolveError))}else{var se=_t.create(r.positionAt(W.offset),r.positionAt(W.offset+1));g(pa.create(se,I.errors[0],Dt.Warning,Qt.SchemaResolveError))}}else{var ie=n.validate(r,I.schema);ie&&ie.forEach(g)}Qv(I.schema)&&(j=void 0),Zv(I.schema)&&(N=void 0)}for(var de=0,we=n.syntaxErrors;de<we.length;de++){var xe=we[de];if(xe.code===Qt.TrailingComma){if(typeof N!="number")continue;xe.severity=N}g(xe)}if(typeof j=="number"){var Ee="Comments are not permitted in JSON.";n.comments.forEach(function(ye){g(pa.create(ye,Ee,j,Qt.CommentNotPermitted))})}return d};if(o){var x=o.id||"schemaservice://untitled/"+Ob++;return this.jsonSchemaService.resolveSchemaContent(new Os(o),x,{}).then(function(I){return b(I)})}return this.jsonSchemaService.getSchemaForResource(r.uri,n).then(function(I){return b(I)})},e}(),Ob=0;function Qv(e){if(e&&typeof e=="object"){if(Vi(e.allowComments))return e.allowComments;if(e.allOf)for(var r=0,n=e.allOf;r<n.length;r++){var a=n[r],o=Qv(a);if(Vi(o))return o}}}function Zv(e){if(e&&typeof e=="object"){if(Vi(e.allowTrailingCommas))return e.allowTrailingCommas;if(Vi(e.allowsTrailingCommas))return e.allowsTrailingCommas;if(e.allOf)for(var r=0,n=e.allOf;r<n.length;r++){var a=n[r],o=Zv(a);if(Vi(o))return o}}}function _v(e){switch(e){case"error":return Dt.Error;case"warning":return Dt.Warning;case"ignore":return}}var qv=48,Tb=57,Pb=65,vc=97,Ib=102;function jr(e){return e<qv?0:e<=Tb?e-qv:(e<vc&&(e+=vc-Pb),e>=vc&&e<=Ib?e-vc+10:0)}function kb(e){if(e[0]!=="#")return null;switch(e.length){case 4:return{red:jr(e.charCodeAt(1))*17/255,green:jr(e.charCodeAt(2))*17/255,blue:jr(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:jr(e.charCodeAt(1))*17/255,green:jr(e.charCodeAt(2))*17/255,blue:jr(e.charCodeAt(3))*17/255,alpha:jr(e.charCodeAt(4))*17/255};case 7:return{red:(jr(e.charCodeAt(1))*16+jr(e.charCodeAt(2)))/255,green:(jr(e.charCodeAt(3))*16+jr(e.charCodeAt(4)))/255,blue:(jr(e.charCodeAt(5))*16+jr(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(jr(e.charCodeAt(1))*16+jr(e.charCodeAt(2)))/255,green:(jr(e.charCodeAt(3))*16+jr(e.charCodeAt(4)))/255,blue:(jr(e.charCodeAt(5))*16+jr(e.charCodeAt(6)))/255,alpha:(jr(e.charCodeAt(7))*16+jr(e.charCodeAt(8)))/255}}return null}function P1(e,r,n,a){return a===void 0&&(a=1),{red:e/255,green:r/255,blue:n/255,alpha:a}}var Fb=function(){function e(r){this.schemaService=r}return e.prototype.findDocumentSymbols=function(r,n,a){var o=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var f=n.root;if(!f)return null;var d=a.resultLimit,m=r.uri;if((m==="vscode://defaultsettings/keybindings.json"||Yd(m.toLowerCase(),"/user/keybindings.json"))&&f.type==="array"){for(var g=[],b=0,x=f.items;b<x.length;b++){var I=x[b];if(I.type==="object")for(var N=0,j=I.properties;N<j.length;N++){var W=j[N];if(W.keyNode.value==="key"&&W.valueNode){var ee=ws.create(r.uri,Wa(r,I));if(g.push({name:Ua(W.valueNode),kind:Ui.Function,location:ee}),d--,d<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m),g}}}return g}var te=function(ie,de,we){return d>=0&&(de.type==="array"?de.items.forEach(function(xe){return te(ie,xe,we)}):de.type==="object"&&de.properties.forEach(function(xe){if(d>=0){var Ee=xe.valueNode;if(Ee){d--;var ye=ws.create(r.uri,Wa(r,xe)),be=we?we+"."+xe.keyNode.value:xe.keyNode.value;ie.push({name:o.getKeyLabel(xe),kind:o.getSymbolKind(Ee.type),location:ye,containerName:we}),te(ie,Ee,be)}}})),ie},se=te([],f,void 0);return d<0&&(se.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m)),se},e.prototype.findDocumentSymbols2=function(r,n,a){var o=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var f=n.root;if(!f)return null;var d=a.resultLimit,m=r.uri;if((m==="vscode://defaultsettings/keybindings.json"||Yd(m.toLowerCase(),"/user/keybindings.json"))&&f.type==="array"){for(var g=[],b=0,x=f.items;b<x.length;b++){var I=x[b];if(I.type==="object")for(var N=0,j=I.properties;N<j.length;N++){var W=j[N];if(W.keyNode.value==="key"&&W.valueNode){var ee=Wa(r,I),te=Wa(r,W.keyNode);if(g.push({name:Ua(W.valueNode),kind:Ui.Function,range:ee,selectionRange:te}),d--,d<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m),g}}}return g}var se=function(de,we){return d>=0&&(we.type==="array"?we.items.forEach(function(xe,Ee){if(xe&&d>=0){d--;var ye=Wa(r,xe),be=ye,Se=String(Ee),ke=se([],xe);de.push({name:Se,kind:o.getSymbolKind(xe.type),range:ye,selectionRange:be,children:ke})}}):we.type==="object"&&we.properties.forEach(function(xe){var Ee=xe.valueNode;if(Ee&&d>=0){d--;var ye=Wa(r,xe),be=Wa(r,xe.keyNode),Se=se([],Ee);de.push({name:o.getKeyLabel(xe),kind:o.getSymbolKind(Ee.type),range:ye,selectionRange:be,children:Se})}})),de},ie=se([],f);return d<0&&(ie.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m)),ie},e.prototype.getSymbolKind=function(r){switch(r){case"object":return Ui.Module;case"string":return Ui.String;case"number":return Ui.Number;case"array":return Ui.Array;case"boolean":return Ui.Boolean;default:return Ui.Variable}},e.prototype.getKeyLabel=function(r){var n=r.keyNode.value;return n&&(n=n.replace(/[\n]/g,"\u21B5")),n&&n.trim()?n:'"'+n+'"'},e.prototype.findDocumentColors=function(r,n,a){return this.schemaService.getSchemaForResource(r.uri,n).then(function(o){var f=[];if(o)for(var d=a&&typeof a.resultLimit=="number"?a.resultLimit:Number.MAX_VALUE,m=n.getMatchingSchemas(o.schema),g={},b=0,x=m;b<x.length;b++){var I=x[b];if(!I.inverted&&I.schema&&(I.schema.format==="color"||I.schema.format==="color-hex")&&I.node&&I.node.type==="string"){var N=String(I.node.offset);if(!g[N]){var j=kb(Ua(I.node));if(j){var W=Wa(r,I.node);f.push({color:j,range:W})}if(g[N]=!0,d--,d<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(r.uri),f}}}return f})},e.prototype.getColorPresentations=function(r,n,a,o){var f=[],d=Math.round(a.red*255),m=Math.round(a.green*255),g=Math.round(a.blue*255);function b(I){var N=I.toString(16);return N.length!==2?"0"+N:N}var x;return a.alpha===1?x="#"+b(d)+b(m)+b(g):x="#"+b(d)+b(m)+b(g)+b(Math.round(a.alpha*255)),f.push({label:x,textEdit:ai.replace(o,JSON.stringify(x))}),f},e}();function Wa(e,r){return _t.create(e.positionAt(r.offset),e.positionAt(r.offset+r.length))}var Rb={schemaAssociations:{},schemas:{}};function Lb(e,r){var n=[],a=[],o=[],f=-1,d=Ss(e.getText(),!1),m=d.scan();function g(ke){n.push(ke),a.push(o.length)}for(;m!==17;){switch(m){case 1:case 3:{var b=e.positionAt(d.getTokenOffset()).line,x={startLine:b,endLine:b,kind:m===1?"object":"array"};o.push(x);break}case 2:case 4:{var I=m===2?"object":"array";if(o.length>0&&o[o.length-1].kind===I){var x=o.pop(),N=e.positionAt(d.getTokenOffset()).line;x&&N>x.startLine+1&&f!==x.startLine&&(x.endLine=N-1,g(x),f=x.startLine)}break}case 13:{var b=e.positionAt(d.getTokenOffset()).line,j=e.positionAt(d.getTokenOffset()+d.getTokenLength()).line;d.getTokenError()===1&&b+1<e.lineCount?d.setPosition(e.offsetAt(ii.create(b+1,0))):b<j&&(g({startLine:b,endLine:j,kind:Jl.Comment}),f=b);break}case 12:{var W=e.getText().substr(d.getTokenOffset(),d.getTokenLength()),ee=W.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(ee){var N=e.positionAt(d.getTokenOffset()).line;if(ee[1]){var x={startLine:N,endLine:N,kind:Jl.Region};o.push(x)}else{for(var te=o.length-1;te>=0&&o[te].kind!==Jl.Region;)te--;if(te>=0){var x=o[te];o.length=te,N>x.startLine&&f!==x.startLine&&(x.endLine=N,g(x),f=x.startLine)}}}break}}m=d.scan()}var se=r&&r.rangeLimit;if(typeof se!="number"||n.length<=se)return n;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(e.uri);for(var ie=[],de=0,we=a;de<we.length;de++){var xe=we[de];xe<30&&(ie[xe]=(ie[xe]||0)+1)}for(var Ee=0,ye=0,te=0;te<ie.length;te++){var be=ie[te];if(be){if(be+Ee>se){ye=te;break}Ee+=be}}for(var Se=[],te=0;te<n.length;te++){var xe=a[te];typeof xe=="number"&&(xe<ye||xe===ye&&Ee++<se)&&Se.push(n[te])}return Se}function Mb(e,r,n){function a(m){for(var g=e.offsetAt(m),b=n.getNodeFromOffset(g,!0),x=[];b;){switch(b.type){case"string":case"object":case"array":var I=b.offset+1,N=b.offset+b.length-1;I<N&&g>=I&&g<=N&&x.push(o(I,N)),x.push(o(b.offset,b.offset+b.length));break;case"number":case"boolean":case"null":case"property":x.push(o(b.offset,b.offset+b.length));break}if(b.type==="property"||b.parent&&b.parent.type==="array"){var j=d(b.offset+b.length,5);j!==-1&&x.push(o(b.offset,j))}b=b.parent}for(var W=void 0,ee=x.length-1;ee>=0;ee--)W=cc.create(x[ee],W);return W||(W=cc.create(_t.create(m,m))),W}function o(m,g){return _t.create(e.positionAt(m),e.positionAt(g))}var f=Ss(e.getText(),!0);function d(m,g){f.setPosition(m);var b=f.scan();return b===g?f.getTokenOffset()+f.getTokenLength():-1}return r.map(a)}function Nb(e){var r=e.promiseConstructor||Promise,n=new Cb(e.schemaRequestService,e.workspaceContext,r);n.setSchemaContributions(Rb);var a=new sb(n,e.contributions,r,e.clientCapabilities),o=new lb(n,e.contributions,r),f=new Fb(n),d=new Eb(n,r);return{configure:function(m){n.clearExternalSchemas(),m.schemas&&m.schemas.forEach(function(g){n.registerExternalSchema(g.uri,g.fileMatch,g.schema)}),d.configure(m)},resetSchema:function(m){return n.onResourceChange(m)},doValidation:d.doValidation.bind(d),parseJSONDocument:function(m){return rb(m,{collectComments:!0})},newJSONDocument:function(m,g){return tb(m,g)},doComplete:a.doComplete.bind(a),findDocumentSymbols:f.findDocumentSymbols.bind(f),findDocumentSymbols2:f.findDocumentSymbols2.bind(f),findColorSymbols:function(m,g){return f.findDocumentColors(m,g).then(function(b){return b.map(function(x){return x.range})})},findDocumentColors:f.findDocumentColors.bind(f),getColorPresentations:f.getColorPresentations.bind(f),doHover:o.doHover.bind(o),getFoldingRanges:Lb,getSelectionRanges:Mb,format:function(m,g,b){var x=void 0;if(g){var I=m.offsetAt(g.start),N=m.offsetAt(g.end)-I;x={offset:I,length:N}}var j={tabSize:b?b.tabSize:4,insertSpaces:b?b.insertSpaces:!0,eol:`
|
|
358
|
+
`};return G0(m.getText(),x,j).map(function(W){return ai.replace(_t.create(m.positionAt(W.offset),m.positionAt(W.offset+W.length)),W.content)})}}}var I1=s(49055),k1=s(32407),F1=s(29387),R1=s(22130),L1=s(61682),M1=s(19757),N1=s(46830),D1=s(59176),B1=s(6364),j1=s(53513),eg=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});const Ts=Nb({});bs.registerHelper("lint","json",function(e,r){return eg(this,null,function*(){const{schema:n,setError:a}=r;Ts.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:n}]});const o=dc.create(r.id+".json","json",0,e),f=Ts.parseJSONDocument(o),d=yield Ts.doValidation(o,f);return d.length?a&&a(d[0].message):a&&a(void 0),d.map(m=>({from:bs.Pos(m.range.start.line,m.range.start.character),to:bs.Pos(m.range.end.line,m.range.end.character),message:m.message}))})}),bs.registerHelper("hint","json",(e,r)=>eg(void 0,null,function*(){const n=r.schema;if(!n)return;Ts.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:n}]});const a=e.getDoc().getCursor(),o=e.getTokenAt(a),f=dc.create(r.id+".json","json",0,e.getValue()),d=Ts.parseJSONDocument(f),m=yield Ts.doComplete(f,{line:a.line,character:a.ch},d),g=x=>{let I="";for(;x--;)I+=" ";return I};let b=m?m.items.map(x=>({text:x.insertText,displayText:x.label,filter:x.filterText||x.label,from:{line:x.textEdit.range.start.line,ch:x.textEdit.range.start.character},to:{line:x.textEdit.range.end.line,ch:x.textEdit.range.end.character},hint:(I,N,j)=>{const W="_$__REDOC_CURSOR_HERE";let ee=j.text.replace(/(\$1|\${1:[^}]+})/,W)||"";if(ee=ee.replace(/(\$\d+|\${[^}]+})/g,"")||"",I.setSelection(j.from,j.to),ee.indexOf(`
|
|
359
|
+
`)>-1){const se=I.getLine(I.getCursor().line).search(/(\S|$)/);ee=ee.replace(/\n/g,`
|
|
360
|
+
`+g(se))}I.replaceSelection(ee);const te=I.getSearchCursor(W,j.from);te.findNext()&&(I.setCursor(te.from()),te.replace(""))}})):[];return/(property|string)/.test(o.type||"")&&(b=b.filter(x=>x.filter.replace(/(^"|"$)/g,"").startsWith(o.string.replace(/(^"|"$)/g,"")))),{from:bs.Pos(a.line,o.start),to:bs.Pos(a.line,a.ch),list:b}}));var Db=Object.defineProperty,Bb=(e,r,n)=>r in e?Db(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,tu=(e,r,n)=>(Bb(e,typeof r!="symbol"?r+"":r,n),n);const jb=Ut.vJ`
|
|
361
|
+
.cm-s-material.CodeMirror {
|
|
362
|
+
background-color: var(--panel-samples-controls-background-color)!important;
|
|
363
|
+
color: var(--text-color-inverse)!important;
|
|
364
|
+
font-family: var(--code-font-family);
|
|
365
|
+
line-height: 18px;
|
|
366
|
+
padding: 10px;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.CodeMirror-lint-mark-error {
|
|
370
|
+
background-size: 4px;
|
|
371
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAAVUlEQVR42mNgQAL/GRjigPg/EP8FYntkCX4gtoVKgvE/BoabcEVAhj6S5DUgfgFl/wFJ2gPxL6iuT1DF+kD2R5AYA5KRj6CS/FAMYvszIBltz4AFAAD9fz0YtLg13wAAAABJRU5ErkJggg==') !important;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.cm-s-material.CodeMirror-focused div.CodeMirror-selected {
|
|
375
|
+
background: rgba(255, 255, 255, 0.3) !important;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.cm-s-material .CodeMirror-code .cm-string.cm-property {
|
|
379
|
+
color: var(--code-block-tokens-property-string-color);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.cm-s-material .CodeMirror-code .cm-string {
|
|
383
|
+
color: var(--code-block-tokens-string-color);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.cm-s-material .CodeMirror-code .cm-atom {
|
|
387
|
+
color: var(--text-color-inverse);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
div .cm-s-material .CodeMirror-matchingbracket {
|
|
391
|
+
outline: 1px solid grey;
|
|
392
|
+
text-decoration: none;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.react-codemirror2 {
|
|
396
|
+
display: flex;
|
|
397
|
+
flex-direction: column;
|
|
398
|
+
justify-content: flex-start;
|
|
399
|
+
overflow: hidden;
|
|
400
|
+
|
|
401
|
+
flex: 1;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.CodeMirror {
|
|
405
|
+
flex: 1;
|
|
406
|
+
border-radius: var(--panel-border-radius);
|
|
407
|
+
}
|
|
408
|
+
`;class Vb extends h.PureComponent{constructor(){super(...arguments),tu(this,"editor"),tu(this,"_onKeyUp",(r,n)=>{/^[a-zA-Z0-9_":]$/.test(n.key)&&this.editor.execCommand("autocomplete")}),tu(this,"initEditor",r=>{this.editor=r,r.on("keyup",this._onKeyUp)}),tu(this,"refreshEditor",()=>{this.editor.refresh()}),tu(this,"showHintHandler",()=>this.editor.showHint({completeSingle:!0}))}componentDidMount(){setTimeout(()=>{this.editor.refresh()},0),document.addEventListener("click",this.refreshEditor)}componentWillUnmount(){document.removeEventListener("click",this.refreshEditor)}render(){const{value:r}=this.props.fieldState,{setValue:n,setTouched:a,setError:o}=this.props.fieldApi,{onChange:f,onBlur:d,forwardedRef:m}=this.props;return h.createElement(h.Fragment,null,h.createElement(jb,null),h.createElement(I0.fk,{editorDidMount:this.initEditor,value:r||"",ref:m,onBeforeChange:(g,b,x)=>{n(x),f&&f(x)},onBlur:g=>{a(!1),d&&d(g)},options:{mode:this.props.mode||tc.T.JSON,theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":this.showHintHandler,"Ctrl-Space":this.showHintHandler},hintOptions:{id:this.props.id,completeSingle:!1,schema:this.props.schema},lint:{id:this.props.id,schema:this.props.schema,setError:o}}}))}}const Ub=Vr(Vb);var Wb=Object.defineProperty,Hb=Object.defineProperties,zb=Object.getOwnPropertyDescriptors,tg=Object.getOwnPropertySymbols,Gb=Object.prototype.hasOwnProperty,$b=Object.prototype.propertyIsEnumerable,rg=(e,r,n)=>r in e?Wb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Kb=(e,r)=>{for(var n in r||(r={}))Gb.call(r,n)&&rg(e,n,r[n]);if(tg)for(var n of tg(r))$b.call(r,n)&&rg(e,n,r[n]);return e},Yb=(e,r)=>Hb(e,zb(r));const Jb=(0,$i.Pi)(({body:e,formApi:r,resolvedBody:n,properties:a,id:o,validate:f})=>{var d,m;const g=e.content,b=ee=>{var te;if(!g||!g.hasSample)return"";const se=(te=g.active)==null?void 0:te.examples;if(!(se!=null&&se[ee]))return"";const ie=se==null?void 0:se[ee].value,de=a?Tr()(ie,a,{arrayMerge:ja.lN}):ie;return JSON.stringify(de,null,2)},x=(d=g==null?void 0:g.operation)==null?void 0:d.activeExampleName,I=ee=>{g==null||g.activateExampleName(ee),r.setValue("body",b(ee))},N=(ee,te)=>{r.setValue(`body.${ee}`,te)};(0,h.useEffect)(()=>{var ee,te;if((ee=g==null?void 0:g.operation)!=null&&ee.activeMimeName){const se=(0,Xt.P6)(o,g.operation.activeMimeName,x,(te=g==null?void 0:g.active)==null?void 0:te.examples);r.setValue("body",(0,Bt.YQ)(se)||b(x||""))}else r.setValue("body",JSON.stringify(a||{},null,2))},[x,(m=g==null?void 0:g.operation)==null?void 0:m.activeMimeName,g==null?void 0:g.active]);const j=ee=>h.createElement(Xn.DropdownOrLabel,Yb(Kb({},ee),{variant:"dark",fullWidth:!0,Label:P0,Dropdown:ph.Dropdown})),W=(0,h.useCallback)((ee="",te="",se=[])=>ie=>{(0,Bt.WW)((0,Xt.P6)(o,ee,te,se),ie)},[o]);return h.createElement(h.Fragment,null,h.createElement(Xn.MediaTypesSwitch,{content:e.content,renderDropdown:j},ee=>{const te=ee.examples||{},se=Object.keys(te),ie=ee.schema,de=fh(ie||{},ee.name)||ee.name===tc.T.MULTIPART||ee.name===tc.T.URL_ENCODED,{exampleKey:we}=(0,Rd.C6)(ee.operation,te),xe=(0,Bt.YQ)((0,Xt.P6)(o,ee.name,we,te))||(0,Xt.oY)(te[we],a);return h.createElement(h.Fragment,null,se.length&&se.length!==1&&h.createElement(Rd.b_,{examples:te,onChange:I,exampleKey:we,panel:"try-it"})||null,de?h.createElement(O0,{mediaType:ee,formApi:r,onChange:N}):h.createElement(Ub,{id:"body"+o,field:"body",initialValue:xe,schema:((n==null?void 0:n.content[ee.name])||{}).schema,mode:ee.name,validate:f,onChange:W(ee.name,we,te)}))}))}),Xb=(0,h.memo)(Jb);function Qb({response:e}){return h.createElement(h.Fragment,null,h.createElement(Bn.EE,null," Body: "),Zb(e))}function Zb(e){return e.body?h.createElement(vn.JsonViewer,{data:e.body,jsonSampleExpandLevel:1}):e.fileInfo?h.createElement(Xn.SourceCodeWithFile,{fileInfo:e.fileInfo}):e.data!==null?e.data?h.createElement(vn.SourceCode,{lang:(0,Xn.langFromMime)(e.headers["Content-Type"]||"text/plain"),source:e.data,withCopyButton:!0}):h.createElement(Bn.w3,null,h.createElement("i",null,"(no content)")):null}function _b({headers:e}){const r=(0,h.useContext)(Xn.OptionsContext),[n,a]=(0,h.useState)(!0),{maxResponseHeadersToShowInTryIt:o}=r,f=Object.keys(e),d=!!o&&f.length>o,m=d&&n?[...f].splice(0,o):[...f],g=()=>{a(!n)};return h.createElement(h.Fragment,null,h.createElement(Bn.EE,null," Headers: "),h.createElement(Bn.w3,null,m.map(b=>h.createElement("div",{key:b},h.createElement(ng,null,b,":"),h.createElement("code",null,e[b]))),d&&h.createElement(ig,{onClick:g},n?"Show more...":"Hide headers")))}const ng=Ut.ZP.strong`
|
|
409
|
+
text-transform: capitalize;
|
|
410
|
+
display: inline-block;
|
|
411
|
+
padding-right: 5px;
|
|
412
|
+
`,ig=Ut.ZP.div`
|
|
413
|
+
cursor: pointer;
|
|
414
|
+
margin-top: 5px;
|
|
415
|
+
font-size: 14px;
|
|
416
|
+
`;ng.displayName="HeaderName",ig.displayName="StyledShowMoreLabel";const qb=Ut.ZP.div`
|
|
417
|
+
margin-bottom: 10px;
|
|
418
|
+
`,Zd=Ut.ZP.div`
|
|
419
|
+
display: inline-block;
|
|
420
|
+
margin-right: 20px;
|
|
421
|
+
padding: 2px 0;
|
|
422
|
+
text-align: center;
|
|
423
|
+
color: var(--text-color-inverse);
|
|
424
|
+
`,ex=(0,Ut.ZP)(Zd)`
|
|
425
|
+
color: ${({code:e})=>e>=200&&e<300?"var(--response-success-text-color)":e>=300&&e<400?"var(--response-redirect-text-color)":e>400?"var(--response-error-text-color)":"var(--response-info-text-color)"};
|
|
426
|
+
`,ag=Ut.ZP.header`
|
|
427
|
+
font-weight: bold;
|
|
428
|
+
margin-bottom: 10px;
|
|
429
|
+
`,tx=Ut.ZP.code`
|
|
430
|
+
border-left: 3px solid #ff4040;
|
|
431
|
+
padding-left: 5px;
|
|
432
|
+
`;class rx extends h.PureComponent{render(){const{error:r,response:n,time:a}=this.props,o=n||r&&r.response,f=o&&o.data&&o.data.length||0;let d;return f>1e6?d=(f/1e6).toFixed(2)+" MB":f>1e3?d=(f/1e3).toFixed(2)+" KB":d=f+" B",r&&!r.response||!o?h.createElement(h.Fragment,null,h.createElement(ag,null," Could not get any response "),h.createElement(tx,null,r&&r.message||"Unknown error"),h.createElement("br",null),h.createElement(ag,null," Why this might have happened:"),h.createElement("div",null," - CORS is misconfigured on the server"),h.createElement("div",null," - The server couldn't send a response"),h.createElement("div",null," - No internet access"),h.createElement("div",null," - Documentation issue - contact API owner"),h.createElement("div",null," - Misconfigured security definition")):o?h.createElement(h.Fragment,null,h.createElement(qb,null,h.createElement(ex,{code:o.status},h.createElement("span",null," Status: "),o.status," ",o.statusText),h.createElement(Zd,null,h.createElement("span",null," Time: "),a,"ms"),h.createElement(Zd,null,h.createElement("span",null," Size: "),d)),h.createElement("div",null,h.createElement(_b,{headers:o.headers}),h.createElement(Qb,{response:o}))):h.createElement(h.Fragment,null,"Something went wrong")}}var og=s(46521);function nx(e,r,n){const a=r.path||{},o=r.query||{},f=Object.keys(o);let d=(0,Xt.v5)(e,a);const m=g=>n.find(b=>b.name===g&&b.in==="query");return f.length&&(d+="?"+f.map(g=>{if(!o[g])return"";const b=m(g);return b?(0,Xn.serializeParameterValue)(b,o[g]):`${g}=${encodeURIComponent(o[g])}`}).filter(Boolean).join("&")),d}const ix=({loading:e,operation:r,hasResponse:n,execute:a,params:o={}})=>h.createElement(Yf.k1,null,h.createElement(og.__,null,h.createElement(Wh.FH,{type:r.httpVerb},r.httpVerb),h.createElement(og.y$,{wrap:"true"},nx(r.path,o,r.parameters))),h.createElement(ax,{"data-cy":"send-button",color:"primary",blinking:e,onClick:()=>!e&&a()},e?"Sending...":n?"Resend":"Send")),ax=(0,Ut.ZP)(vn.Button)`
|
|
433
|
+
width: var(--panel-try-it-action-button-width);
|
|
434
|
+
`,ox=(0,h.memo)(ix);function sx({name:e,value:r,description:n,variableEnum:a,onChange:o,defaultValue:f}){const d=(0,h.useCallback)(b=>o(b.target.value),[o]),m=(0,h.useCallback)(b=>o(b.value),[o]),g=a?a.map((b,x)=>({value:b,idx:x})):[];return h.createElement(ft.NI,null,h.createElement(ft.lX,null,e,":"),g&&g.length?h.createElement(Bn.VD,{fullWidth:!0,variant:"dark",value:r,options:g,onChange:m}):h.createElement(Ul,{fullWidth:!0,value:r,onChange:d,placeholder:f,panel:"try-it"}),n&&h.createElement(lx,{compact:!0,source:n}))}const lx=(0,Ut.ZP)(Xn.Markdown)`
|
|
435
|
+
margin-top: 5px;
|
|
436
|
+
color: #d0d0d0;
|
|
437
|
+
`;var ux=Object.defineProperty,fx=Object.defineProperties,cx=Object.getOwnPropertyDescriptors,sg=Object.getOwnPropertySymbols,dx=Object.prototype.hasOwnProperty,px=Object.prototype.propertyIsEnumerable,lg=(e,r,n)=>r in e?ux(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,ug=(e,r)=>{for(var n in r||(r={}))dx.call(r,n)&&lg(e,n,r[n]);if(sg)for(var n of sg(r))px.call(r,n)&&lg(e,n,r[n]);return e},fg=(e,r)=>fx(e,cx(r));const hx=(0,$i.Pi)(({operation:e,onChange:r})=>{const n=(0,Bt.YQ)("serverUrl"),a=e.servers.findIndex(N=>N.url===n),[o,f]=(0,h.useState)(a<0?0:a),[d,m]=(0,h.useState)({});(0,Qf.b6)(()=>{const N=(0,Xt.fz)(e.servers,o);r(N),m(N.variables)});const g=N=>{const j=e.servers.find(te=>te.url===N.serverUrl),W=e.servers.findIndex(te=>te.url===N.serverUrl),ee=(0,Xt.mj)(j);r({url:N.serverUrl||"",variables:ee}),(0,Bt.WW)("serverUrl",N.serverUrl||""),f(W),m(ee)},b=(N,j)=>{const W=e.servers[o],ee=j||j===""?j:(0,Xt.mj)(W)[N],te=fg(ug({},d),{[N]:ee});m(te),(0,Xt.UY)(N,ee),r(fg(ug({},W),{variables:te}))},x=e.servers.map((N,j)=>({idx:j,serverUrl:N.url,value:`
|
|
438
|
+
${(0,Xt.nq)((0,Xt.v5)(N.url,d),N.variables)}
|
|
439
|
+
- ${N.description||"Default"}
|
|
440
|
+
`})),I=Object.keys(d);return h.createElement(vx,{"data-cy":"console-target-server"},h.createElement(ft.lX,{htmlFor:"server"},"Target server: "),h.createElement(ft.NI,null,h.createElement(Bn.VD,{variant:"dark",value:x[o].value,options:x,fullWidth:!0,onChange:g})),I==null?void 0:I.map(N=>{var j;const W=(j=e.servers[o].variables)==null?void 0:j[N];if(W)return h.createElement(sx,{key:N,name:N,value:d[N],defaultValue:W.default,onChange:ee=>b(N,ee),variableEnum:W.enum,description:W.description})}))}),vx=Ut.ZP.div`
|
|
441
|
+
margin-bottom: 20px;
|
|
442
|
+
`;var gx=Object.defineProperty,mx=Object.defineProperties,yx=Object.getOwnPropertyDescriptors,gc=Object.getOwnPropertySymbols,cg=Object.prototype.hasOwnProperty,dg=Object.prototype.propertyIsEnumerable,pg=(e,r,n)=>r in e?gx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,bx=(e,r)=>{for(var n in r||(r={}))cg.call(r,n)&&pg(e,n,r[n]);if(gc)for(var n of gc(r))dg.call(r,n)&&pg(e,n,r[n]);return e},xx=(e,r)=>mx(e,yx(r)),Sx=(e,r)=>{var n={};for(var a in e)cg.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&gc)for(var a of gc(e))r.indexOf(a)<0&&dg.call(e,a)&&(n[a]=e[a]);return n};function _d(e){var r=e,{header:n,error:a,success:o}=r,f=Sx(r,["header","error","success"]);const d=({toggle:m,expanded:g=!1})=>h.createElement(vn.PanelHeader,{onClick:m,expanded:g,"data-cy":f["data-cy"]},h.createElement(Yf.xz,null,h.createElement(vn.PanelHeaderTitle,null,n),h.createElement(vn.ShelfIcon,{direction:g?"down":"right"})),a&&h.createElement(Xn.CrossIcon,{size:"14px",color:"--color-error-500"})||null,o&&h.createElement(Xn.LockIcon,{size:"14px",color:"--color-success-500"})||null);return h.createElement(wx,xx(bx({className:"panel-try-it-nested"},f),{header:d}))}const wx=(0,Ut.ZP)(vn.Panel)`
|
|
443
|
+
${vn.PanelHeader} {
|
|
444
|
+
border: 1px solid
|
|
445
|
+
${({error:e})=>e?"var(--color-error-300)":"var(--panel-try-it-nested-heading-border-color)"};
|
|
446
|
+
padding: 10px;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
${vn.PanelBody} {
|
|
450
|
+
border: 1px solid
|
|
451
|
+
${({error:e})=>e?"var(--color-error-300)":"var(--panel-try-it-nested-body-border-color)"};
|
|
452
|
+
border-top: 0;
|
|
453
|
+
}
|
|
454
|
+
`,Ax=Ut.ZP.div`
|
|
455
|
+
display: flex;
|
|
456
|
+
font-size: 12px;
|
|
457
|
+
button {
|
|
458
|
+
margin: 0;
|
|
459
|
+
}
|
|
460
|
+
`,hg=Ut.ZP.button`
|
|
461
|
+
outline: none;
|
|
462
|
+
border: none;
|
|
463
|
+
background-color: var(--panel-try-it-tabs-background-color);
|
|
464
|
+
text-align: center;
|
|
465
|
+
cursor: pointer;
|
|
466
|
+
color: var(--panel-try-it-tabs-text-color);
|
|
467
|
+
min-width: 80px;
|
|
468
|
+
min-height: 30px;
|
|
469
|
+
border-radius: var(--border-radius);
|
|
470
|
+
font-size: var(--panel-try-it-tabs-font-size);
|
|
471
|
+
font-family: var(--panel-try-it-tabs-font-family);
|
|
472
|
+
font-weight: var(--panel-try-it-tabs-font-weight);
|
|
473
|
+
padding: 0 10px;
|
|
474
|
+
border-bottom: 4px solid var(--panel-try-it-tabs-border-color);
|
|
475
|
+
|
|
476
|
+
&:first-child {
|
|
477
|
+
border-radius: var(--border-radius) 0 0 var(--border-radius);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
&:last-child {
|
|
481
|
+
border-radius: 0 var(--border-radius) var(--border-radius) 0;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
&:hover:not(:disabled) {
|
|
485
|
+
border-color: var(--panel-try-it-tabs-hover-border-color);
|
|
486
|
+
background-color: var(--panel-try-it-tabs-hover-background-color);
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
${({active:e})=>e&&Ut.iv`
|
|
490
|
+
border-color: var(--panel-try-it-tabs-active-border-color);
|
|
491
|
+
background-color: var(--panel-try-it-tabs-active-background-color);
|
|
492
|
+
`||""}
|
|
493
|
+
|
|
494
|
+
${({disabled:e})=>e&&Ut.iv`
|
|
495
|
+
cursor: default;
|
|
496
|
+
border-color: var(--panel-try-it-tabs-disables-border-color)
|
|
497
|
+
background-color: var(--panel-try-it-tabs-disabled-background-color);
|
|
498
|
+
color: var(--panel-try-it-tabs-disabled-text-color);
|
|
499
|
+
`||""}
|
|
500
|
+
`;function Cx({onChange:e,active:r,hasResponse:n}){return h.createElement(Ax,null,h.createElement(hg,{onClick:()=>e(0),active:r===0},n?"Edit Request":"Request"),h.createElement(hg,{onClick:()=>n&&e(1),active:r===1,disabled:!n}," ","Response"," "))}var vg=Object.defineProperty,Ex=Object.defineProperties,Ox=Object.getOwnPropertyDescriptor,Tx=Object.getOwnPropertyDescriptors,mc=Object.getOwnPropertySymbols,gg=Object.prototype.hasOwnProperty,mg=Object.prototype.propertyIsEnumerable,qd=(e,r,n)=>r in e?vg(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Gr=(e,r)=>{for(var n in r||(r={}))gg.call(r,n)&&qd(e,n,r[n]);if(mc)for(var n of mc(r))mg.call(r,n)&&qd(e,n,r[n]);return e},Un=(e,r)=>Ex(e,Tx(r)),yg=(e,r)=>{var n={};for(var a in e)gg.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&mc)for(var a of mc(e))r.indexOf(a)<0&&mg.call(e,a)&&(n[a]=e[a]);return n},Px=(e,r,n,a)=>{for(var o=a>1?void 0:a?Ox(r,n):r,f=e.length-1,d;f>=0;f--)(d=e[f])&&(o=(a?d(r,n,o):d(o))||o);return a&&o&&vg(r,n,o),o},Ps=(e,r,n)=>(qd(e,typeof r!="symbol"?r+"":r,n),n),bg=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});function xg(e){return e.startsWith("//")?"https:"+e:e}const Ix={flex:1,display:"flex",flexDirection:"column"};let ep=class extends h.Component{constructor(e){super(e),Ps(this,"formApi"),Ps(this,"setFormApi",(r,n=r.getState())=>{var a=n,{values:o}=a,f=yg(a,["values"]);this.formApi=r,setTimeout(()=>{const d=Un(Gr({},f),{values:Un(Gr({},o),{query:(0,Xt.FU)(o.query||{})})});this.setState({form:d})},0)}),Ps(this,"handleChange",r=>{var n=r,{values:a}=n,o=yg(n,["values"]);const f=Un(Gr({},o),{values:Un(Gr({},a),{query:(0,Xt.FU)(a.query||{})})});this.setState({form:f}),(0,Xt.Hc)(f),this.props.operation.setRequestValues(a)}),Ps(this,"handleTabChange",r=>{this.setState({activeTab:r})}),Ps(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),Ps(this,"handleExecute",()=>bg(this,null,function*(){var r,n,a,o,f,d,m,g;const{store:b,operation:x,onResponse:I}=this.props,{values:N,invalid:j}=this.state.form;if((r=this.formApi)==null||r.submitForm(),j){this.setState({shaking:!0}),setTimeout(()=>this.setState({shaking:!1}),1e3),(a=(n=b==null?void 0:b.options.events)==null?void 0:n.tryItSent)==null||a.call(n,{eventType:Sh.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:x.operationId,operationPath:x.path,operationHttpVerb:x.httpVerb,operationSummary:x.description});return}const{servers:W,requestBody:ee}=this.props.operation,te=ee&&ee.content&&ee.content.active&&ee.content.active.name||"";let se=N.body;if(/json/.test(te))try{se=JSON.parse(se)}catch(Re){console.error(Re)}this.setState({loading:!0});const ie=this.state.resolvedRawSpec,de=(x.httpVerb||"").toLowerCase();if(!W)throw console.error("Servers are not specified in your OpenAPI file. You can't use Try It Out console without specifying servers. If you use OpenAPI 2, make sure you configured host and basepath"),new Error("Servers are not specified");const we=W.find(Re=>this.state.server.url.endsWith(Re.url.endsWith("/")?Re.url.substring(0,Re.url.length-1):Re.url)),xe=Date.now(),Ee=!!window.document.documentMode;let ye,be=N.auth;if(N.auth){const Re=Object.keys(N.auth)[0],We=(0,Bt.dw)(Re);ye=Un(Gr({},ie),{components:Un(Gr({},ie==null?void 0:ie.components),{securitySchemes:Un(Gr({},ie==null?void 0:ie.components.securitySchemes),{[We]:Un(Gr({},ie==null?void 0:ie.components.securitySchemes[We]),{type:(ie==null?void 0:ie.components.securitySchemes[We].type)==="openIdConnect"?"oauth2":ie==null?void 0:ie.components.securitySchemes[We].type})})})}),be=Un(Gr({},be),{[We]:be[Re]})}else ye=Gr({},ie);ye.servers=W;const Se=b.options.corsProxyUrl;Se&&W.length&&(ye.servers=W.map(Re=>Un(Gr({},Re),{url:Se+xg(Re.url)})),ye.paths=Un(Gr({},ye.paths),{[x.path]:Un(Gr({},ye.paths[x.path]),{[de]:Un(Gr({},ye.paths[x.path][de]),{servers:void 0}),servers:void 0})}));const ke=((f=(o=ee==null?void 0:ee.content)==null?void 0:o.active)==null?void 0:f.name)||null;if(ke&&se&&Xf(ke)){const Re=Object.values(se);se=Re.length>1?Re:Re[0]}const Me={userFetch:Ee&&s(96279).fetch,server:Se?Se+xg(we.url):we.url,serverVariables:this.state.server.variables,spec:ye,pathName:x.path,method:x.httpVerb,parameters:Gr(Gr(Gr(Gr({},N.path),N.query),N.header),N.cookie),securities:{authorized:be},requestBody:se,requestContentType:ke,responseContentType:((d=N.header)==null?void 0:d.Accept)||null,requestInterceptor:(0,Xt.Tz)(b.options,x,be==null?void 0:be.Authorization)};try{const Re=yield Qm.execute(Me),We=Re==null?void 0:Re.data;We instanceof Blob&&(Xf(We.type)&&(Re.fileInfo={rawData:We,fileName:(0,Xt.AM)(Re.headers)}),Re.data=yield We.text()),I==null||I({request:Me,response:Re}),this.setState({response:Re,error:void 0})}catch(Re){Re&&Re.response&&Re.response.data instanceof Blob&&(Re.response.data=yield Re.response.data.text(),I==null||I({request:Me,response:Re.response})),this.setState({response:void 0,error:Re})}finally{this.setState({loading:!1,activeTab:1,time:Date.now()-xe}),(g=(m=b==null?void 0:b.options.events)==null?void 0:m.tryItSent)==null||g.call(m,{eventType:Sh.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:x.operationId,operationPath:x.path,operationHttpVerb:x.httpVerb,operationSummary:x.description})}})),this.state={form:{values:{path:(0,Xt.ZS)(e.operation.parameters,"path"),cookie:(0,Xt.ZS)(e.operation.parameters,"cookie"),header:(0,Xt.ZS)(e.operation.parameters,"header"),query:(0,Xt.ZS)(e.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return bg(this,null,function*(){var e;const{store:r,operation:n}=this.props,a=yield r.dereferenceSpecForTryIt(n);this.setState({resolvedRawSpec:a}),(e=this.formApi)==null||e.setValues({})})}componentDidUpdate(e){e.operation!==this.props.operation&&this.setState({response:void 0,error:void 0,activeTab:0})}render(){const{operation:e,className:r,rootElement:n}=this.props,{shaking:a,activeTab:o,form:f,response:d,loading:m,error:g}=this.state,b=!!(d||g);return h.createElement(Fx,{shaking:a,className:r,rootElement:n},h.createElement(Yf.Hc,null,h.createElement(Cx,{active:o,hasResponse:b,onChange:this.handleTabChange}),this.props.onClose&&h.createElement(Bn.PZ,{onClick:this.props.onClose}," \u2715 ")),h.createElement(Bn.RE,{hidden:o!==0,"data-cy":"console-request-body"},this.renderRequest()),h.createElement(Bn.RE,{hidden:o!==1,"data-cy":"console-response-body"},this.renderResponse()),h.createElement(ox,{hasResponse:b,params:f.values,operation:e,loading:m,execute:this.handleExecute}))}renderRequest(){var e;const{operation:r,store:n,properties:a,securityDefaults:o}=this.props,{form:f,resolvedRawSpec:d,server:m}=this.state,g=f.errors||{},b=g.path||g.cookie||g.header||g.query,x=d&&Xn.JsonPointer.get(d,r.pointer);let I=f.values&&f.values.auth&&Object.keys(f.values.auth)[0];(!I||!f.values.auth[I])&&(I=void 0),I&&(f.values.auth[I].token!==void 0||f.values.auth[I].client_id!==void 0||f.values.auth[I].client_secret!==void 0)&&(!f.values.auth[I].token||!f.values.auth[I].token.access_token)&&(I=void 0),I&&f.values.auth[I].username!=null&&(!f.values.auth[I].username||!f.values.auth[I].password)&&(I=void 0);const N=r.parameters||[],j=(e=n==null?void 0:n.options.hooks)==null?void 0:e.ReplaceTryItSecurityPanel;return!d&&h.createElement(h.Fragment,null,"Loading...")||h.createElement(fu,{onChange:this.handleChange,getApi:this.setFormApi,style:Un(Gr({},Ix),{margin:0})},h.createElement(hx,{operation:r,onChange:this.handleServerChange}),h.createElement(Yf.UQ,{initialActiveIdx:r.security.length&&I?1:0},r.security.length&&this.formApi&&h.createElement(_d,{header:(0,jl.l)("tryItAuth"),"data-cy":"security-trigger",error:!I&&!!g.auth,success:!!I,renderChildrenHidden:!0},j?h.createElement(Rx,{field:"auth",validate:Xt.np},W=>h.createElement(Zm.Q,{Hook:j,props:{server:m,operation:r,onChange:W,OAuth2:Ai}})):h.createElement(w0,{formApi:this.formApi,form:f,operation:r,activeServer:m.url,authCorsProxyUrl:n.options.authCorsProxyUrl,securityDefaults:o}))||null,r.requestBody&&this.formApi&&h.createElement(_d,{header:(0,jl.l)("tryItBody"),"data-cy":"body-trigger",error:!!g.body,renderChildrenHidden:!0},h.createElement(Xb,{validate:kx,formApi:this.formApi,body:r.requestBody,id:r.id,resolvedBody:x==null?void 0:x.requestBody,properties:a}))||null,N.length&&h.createElement(_d,{header:(0,jl.l)("tryItParameters"),"data-cy":"parameters-trigger",error:b,renderChildrenHidden:!0},h.createElement(Ey,{operation:r,values:f.values,errors:f.errors||{}}))||null))}renderResponse(){const{response:e,error:r,time:n}=this.state;return h.createElement(rx,{response:e,error:r,time:n})}};ep=Px([$i.Pi],ep);function kx(){}function Fx(e){const{shaking:r,className:n,children:a,rootElement:o}=e,[f]=(0,Qf.Bs)(o),d=(0,h.useContext)(Xn.StoreContext);return h.createElement(Bn.q2,{scrollYOffset:d==null?void 0:d.options.scrollYOffset,shaking:r,className:n,"data-cy":"console",fullWidth:f==null?void 0:f.width},a)}function Rx(e){const{fieldApi:r,render:n,userProps:a}=Pn(Gr({},e)),{setValue:o}=r,{children:f}=a;return n(h.createElement(h.Fragment,null,f(o)))}},20340:()=>{},37795:v=>{"use strict";var T="Function.prototype.bind called on incompatible ",s=Array.prototype.slice,p=Object.prototype.toString,S="[object Function]";v.exports=function(h){var E=this;if(typeof E!="function"||p.call(E)!==S)throw new TypeError(T+E);for(var F=s.call(arguments,1),U,_=function(){if(this instanceof U){var $=E.apply(this,F.concat(s.call(arguments)));return Object($)===$?$:this}else return E.apply(h,F.concat(s.call(arguments)))},Q=Math.max(0,E.length-F.length),le=[],K=0;K<Q;K++)le.push("$"+K);if(U=Function("binder","return function ("+le.join(",")+"){ return binder.apply(this,arguments); }")(_),E.prototype){var ne=function(){};ne.prototype=E.prototype,U.prototype=new ne,ne.prototype=null}return U}},4090:(v,T,s)=>{"use strict";var p=s(37795);v.exports=Function.prototype.bind||p},67286:(v,T,s)=>{"use strict";var p,S=SyntaxError,A=Function,h=TypeError,E=function(pe){try{return A('"use strict"; return ('+pe+").constructor;")()}catch(q){}},F=Object.getOwnPropertyDescriptor;if(F)try{F({},"")}catch(pe){F=null}var U=function(){throw new h},_=F?function(){try{return arguments.callee,U}catch(pe){try{return F(arguments,"callee").get}catch(q){return U}}}():U,Q=s(32636)(),le=Object.getPrototypeOf||function(pe){return pe.__proto__},K={},ne=typeof Uint8Array=="undefined"?p:le(Uint8Array),$={"%AggregateError%":typeof AggregateError=="undefined"?p:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?p:ArrayBuffer,"%ArrayIteratorPrototype%":Q?le([][Symbol.iterator]()):p,"%AsyncFromSyncIteratorPrototype%":p,"%AsyncFunction%":K,"%AsyncGenerator%":K,"%AsyncGeneratorFunction%":K,"%AsyncIteratorPrototype%":K,"%Atomics%":typeof Atomics=="undefined"?p:Atomics,"%BigInt%":typeof BigInt=="undefined"?p:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?p:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?p:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?p:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?p:FinalizationRegistry,"%Function%":A,"%GeneratorFunction%":K,"%Int8Array%":typeof Int8Array=="undefined"?p:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?p:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?p:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Q?le(le([][Symbol.iterator]())):p,"%JSON%":typeof JSON=="object"?JSON:p,"%Map%":typeof Map=="undefined"?p:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Q?p:le(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?p:Promise,"%Proxy%":typeof Proxy=="undefined"?p:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?p:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?p:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Q?p:le(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?p:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Q?le(""[Symbol.iterator]()):p,"%Symbol%":Q?Symbol:p,"%SyntaxError%":S,"%ThrowTypeError%":_,"%TypedArray%":ne,"%TypeError%":h,"%Uint8Array%":typeof Uint8Array=="undefined"?p:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?p:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?p:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?p:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?p:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?p:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?p:WeakSet},P=function pe(q){var Z;if(q==="%AsyncFunction%")Z=E("async function () {}");else if(q==="%GeneratorFunction%")Z=E("function* () {}");else if(q==="%AsyncGeneratorFunction%")Z=E("async function* () {}");else if(q==="%AsyncGenerator%"){var G=pe("%AsyncGeneratorFunction%");G&&(Z=G.prototype)}else if(q==="%AsyncIteratorPrototype%"){var ve=pe("%AsyncGenerator%");ve&&(Z=le(ve.prototype))}return $[q]=Z,Z},Y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=s(4090),C=s(23198),k=L.call(Function.call,Array.prototype.concat),B=L.call(Function.apply,Array.prototype.splice),X=L.call(Function.call,String.prototype.replace),H=L.call(Function.call,String.prototype.slice),D=L.call(Function.call,RegExp.prototype.exec),re=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,J=/\\(\\)?/g,z=function(q){var Z=H(q,0,1),G=H(q,-1);if(Z==="%"&&G!=="%")throw new S("invalid intrinsic syntax, expected closing `%`");if(G==="%"&&Z!=="%")throw new S("invalid intrinsic syntax, expected opening `%`");var ve=[];return X(q,re,function(Ie,Ne,je,tt){ve[ve.length]=je?X(tt,J,"$1"):Ne||Ie}),ve},fe=function(q,Z){var G=q,ve;if(C(Y,G)&&(ve=Y[G],G="%"+ve[0]+"%"),C($,G)){var Ie=$[G];if(Ie===K&&(Ie=P(G)),typeof Ie=="undefined"&&!Z)throw new h("intrinsic "+q+" exists, but is not available. Please file an issue!");return{alias:ve,name:G,value:Ie}}throw new S("intrinsic "+q+" does not exist!")};v.exports=function(q,Z){if(typeof q!="string"||q.length===0)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Z!="boolean")throw new h('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,q)===null)throw new S("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var G=z(q),ve=G.length>0?G[0]:"",Ie=fe("%"+ve+"%",Z),Ne=Ie.name,je=Ie.value,tt=!1,_e=Ie.alias;_e&&(ve=_e[0],B(G,k([0,1],_e)));for(var mt=1,De=!0;mt<G.length;mt+=1){var Oe=G[mt],Ue=H(Oe,0,1),Pe=H(Oe,-1);if((Ue==='"'||Ue==="'"||Ue==="`"||Pe==='"'||Pe==="'"||Pe==="`")&&Ue!==Pe)throw new S("property names with quotes must have matching quotes");if((Oe==="constructor"||!De)&&(tt=!0),ve+="."+Oe,Ne="%"+ve+"%",C($,Ne))je=$[Ne];else if(je!=null){if(!(Oe in je)){if(!Z)throw new h("base intrinsic for "+q+" exists, but the property is not available.");return}if(F&&mt+1>=G.length){var Ce=F(je,Oe);De=!!Ce,De&&"get"in Ce&&!("originalValue"in Ce.get)?je=Ce.get:je=je[Oe]}else De=C(je,Oe),je=je[Oe];De&&!tt&&($[Ne]=je)}}return je}},32636:(v,T,s)=>{"use strict";var p=typeof Symbol!="undefined"&&Symbol,S=s(66679);v.exports=function(){return typeof p!="function"||typeof Symbol!="function"||typeof p("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:S()}},66679:v=>{"use strict";v.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var s={},p=Symbol("test"),S=Object(p);if(typeof p=="string"||Object.prototype.toString.call(p)!=="[object Symbol]"||Object.prototype.toString.call(S)!=="[object Symbol]")return!1;var A=42;s[p]=A;for(p in s)return!1;if(typeof Object.keys=="function"&&Object.keys(s).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(s).length!==0)return!1;var h=Object.getOwnPropertySymbols(s);if(h.length!==1||h[0]!==p||!Object.prototype.propertyIsEnumerable.call(s,p))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var E=Object.getOwnPropertyDescriptor(s,p);if(E.value!==A||E.enumerable!==!0)return!1}return!0}},23198:(v,T,s)=>{"use strict";var p=s(4090);v.exports=p.call(Function.call,Object.prototype.hasOwnProperty)},89612:(v,T,s)=>{var p=s(52118),S=s(96909),A=s(98138),h=s(4174),E=s(7942);function F(U){var _=-1,Q=U==null?0:U.length;for(this.clear();++_<Q;){var le=U[_];this.set(le[0],le[1])}}F.prototype.clear=p,F.prototype.delete=S,F.prototype.get=A,F.prototype.has=h,F.prototype.set=E,v.exports=F},80235:(v,T,s)=>{var p=s(3945),S=s(21846),A=s(88028),h=s(72344),E=s(94769);function F(U){var _=-1,Q=U==null?0:U.length;for(this.clear();++_<Q;){var le=U[_];this.set(le[0],le[1])}}F.prototype.clear=p,F.prototype.delete=S,F.prototype.get=A,F.prototype.has=h,F.prototype.set=E,v.exports=F},10326:(v,T,s)=>{var p=s(38761),S=s(37772),A=p(S,"Map");v.exports=A},96738:(v,T,s)=>{var p=s(92411),S=s(36417),A=s(86928),h=s(79493),E=s(24150);function F(U){var _=-1,Q=U==null?0:U.length;for(this.clear();++_<Q;){var le=U[_];this.set(le[0],le[1])}}F.prototype.clear=p,F.prototype.delete=S,F.prototype.get=A,F.prototype.has=h,F.prototype.set=E,v.exports=F},50857:(v,T,s)=>{var p=s(37772),S=p.Symbol;v.exports=S},50343:v=>{function T(s,p){for(var S=-1,A=s==null?0:s.length,h=Array(A);++S<A;)h[S]=p(s[S],S,s);return h}v.exports=T},22218:(v,T,s)=>{var p=s(41225);function S(A,h){for(var E=A.length;E--;)if(p(A[E][0],h))return E;return-1}v.exports=S},13324:(v,T,s)=>{var p=s(17297),S=s(33812);function A(h,E){E=p(E,h);for(var F=0,U=E.length;h!=null&&F<U;)h=h[S(E[F++])];return F&&F==U?h:void 0}v.exports=A},53366:(v,T,s)=>{var p=s(50857),S=s(62107),A=s(37157),h="[object Null]",E="[object Undefined]",F=p?p.toStringTag:void 0;function U(_){return _==null?_===void 0?E:h:F&&F in Object(_)?S(_):A(_)}v.exports=U},6840:(v,T,s)=>{var p=s(61049),S=s(47394),A=s(29259),h=s(87035),E=/[\\^$.*+?()[\]{}|]/g,F=/^\[object .+?Constructor\]$/,U=Function.prototype,_=Object.prototype,Q=U.toString,le=_.hasOwnProperty,K=RegExp("^"+Q.call(le).replace(E,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ne($){if(!A($)||S($))return!1;var P=p($)?K:F;return P.test(h($))}v.exports=ne},1054:(v,T,s)=>{var p=s(50857),S=s(50343),A=s(86152),h=s(4795),E=1/0,F=p?p.prototype:void 0,U=F?F.toString:void 0;function _(Q){if(typeof Q=="string")return Q;if(A(Q))return S(Q,_)+"";if(h(Q))return U?U.call(Q):"";var le=Q+"";return le=="0"&&1/Q==-E?"-0":le}v.exports=_},17297:(v,T,s)=>{var p=s(86152),S=s(21401),A=s(54452),h=s(66188);function E(F,U){return p(F)?F:S(F,U)?[F]:A(h(F))}v.exports=E},24019:(v,T,s)=>{var p=s(37772),S=p["__core-js_shared__"];v.exports=S},51242:(v,T,s)=>{var p=typeof s.g=="object"&&s.g&&s.g.Object===Object&&s.g;v.exports=p},27937:(v,T,s)=>{var p=s(98304);function S(A,h){var E=A.__data__;return p(h)?E[typeof h=="string"?"string":"hash"]:E.map}v.exports=S},38761:(v,T,s)=>{var p=s(6840),S=s(98109);function A(h,E){var F=S(h,E);return p(F)?F:void 0}v.exports=A},62107:(v,T,s)=>{var p=s(50857),S=Object.prototype,A=S.hasOwnProperty,h=S.toString,E=p?p.toStringTag:void 0;function F(U){var _=A.call(U,E),Q=U[E];try{U[E]=void 0;var le=!0}catch(ne){}var K=h.call(U);return le&&(_?U[E]=Q:delete U[E]),K}v.exports=F},98109:v=>{function T(s,p){return s==null?void 0:s[p]}v.exports=T},52118:(v,T,s)=>{var p=s(99191);function S(){this.__data__=p?p(null):{},this.size=0}v.exports=S},96909:v=>{function T(s){var p=this.has(s)&&delete this.__data__[s];return this.size-=p?1:0,p}v.exports=T},98138:(v,T,s)=>{var p=s(99191),S="__lodash_hash_undefined__",A=Object.prototype,h=A.hasOwnProperty;function E(F){var U=this.__data__;if(p){var _=U[F];return _===S?void 0:_}return h.call(U,F)?U[F]:void 0}v.exports=E},4174:(v,T,s)=>{var p=s(99191),S=Object.prototype,A=S.hasOwnProperty;function h(E){var F=this.__data__;return p?F[E]!==void 0:A.call(F,E)}v.exports=h},7942:(v,T,s)=>{var p=s(99191),S="__lodash_hash_undefined__";function A(h,E){var F=this.__data__;return this.size+=this.has(h)?0:1,F[h]=p&&E===void 0?S:E,this}v.exports=A},21401:(v,T,s)=>{var p=s(86152),S=s(4795),A=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h=/^\w*$/;function E(F,U){if(p(F))return!1;var _=typeof F;return _=="number"||_=="symbol"||_=="boolean"||F==null||S(F)?!0:h.test(F)||!A.test(F)||U!=null&&F in Object(U)}v.exports=E},98304:v=>{function T(s){var p=typeof s;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?s!=="__proto__":s===null}v.exports=T},47394:(v,T,s)=>{var p=s(24019),S=function(){var h=/[^.]+$/.exec(p&&p.keys&&p.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}();function A(h){return!!S&&S in h}v.exports=A},3945:v=>{function T(){this.__data__=[],this.size=0}v.exports=T},21846:(v,T,s)=>{var p=s(22218),S=Array.prototype,A=S.splice;function h(E){var F=this.__data__,U=p(F,E);if(U<0)return!1;var _=F.length-1;return U==_?F.pop():A.call(F,U,1),--this.size,!0}v.exports=h},88028:(v,T,s)=>{var p=s(22218);function S(A){var h=this.__data__,E=p(h,A);return E<0?void 0:h[E][1]}v.exports=S},72344:(v,T,s)=>{var p=s(22218);function S(A){return p(this.__data__,A)>-1}v.exports=S},94769:(v,T,s)=>{var p=s(22218);function S(A,h){var E=this.__data__,F=p(E,A);return F<0?(++this.size,E.push([A,h])):E[F][1]=h,this}v.exports=S},92411:(v,T,s)=>{var p=s(89612),S=s(80235),A=s(10326);function h(){this.size=0,this.__data__={hash:new p,map:new(A||S),string:new p}}v.exports=h},36417:(v,T,s)=>{var p=s(27937);function S(A){var h=p(this,A).delete(A);return this.size-=h?1:0,h}v.exports=S},86928:(v,T,s)=>{var p=s(27937);function S(A){return p(this,A).get(A)}v.exports=S},79493:(v,T,s)=>{var p=s(27937);function S(A){return p(this,A).has(A)}v.exports=S},24150:(v,T,s)=>{var p=s(27937);function S(A,h){var E=p(this,A),F=E.size;return E.set(A,h),this.size+=E.size==F?0:1,this}v.exports=S},77777:(v,T,s)=>{var p=s(30733),S=500;function A(h){var E=p(h,function(U){return F.size===S&&F.clear(),U}),F=E.cache;return E}v.exports=A},99191:(v,T,s)=>{var p=s(38761),S=p(Object,"create");v.exports=S},37157:v=>{var T=Object.prototype,s=T.toString;function p(S){return s.call(S)}v.exports=p},37772:(v,T,s)=>{var p=s(51242),S=typeof self=="object"&&self&&self.Object===Object&&self,A=p||S||Function("return this")();v.exports=A},54452:(v,T,s)=>{var p=s(77777),S=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,A=/\\(\\)?/g,h=p(function(E){var F=[];return E.charCodeAt(0)===46&&F.push(""),E.replace(S,function(U,_,Q,le){F.push(Q?le.replace(A,"$1"):_||U)}),F});v.exports=h},33812:(v,T,s)=>{var p=s(4795),S=1/0;function A(h){if(typeof h=="string"||p(h))return h;var E=h+"";return E=="0"&&1/h==-S?"-0":E}v.exports=A},87035:v=>{var T=Function.prototype,s=T.toString;function p(S){if(S!=null){try{return s.call(S)}catch(A){}try{return S+""}catch(A){}}return""}v.exports=p},41225:v=>{function T(s,p){return s===p||s!==s&&p!==p}v.exports=T},72579:(v,T,s)=>{var p=s(13324);function S(A,h,E){var F=A==null?void 0:p(A,h);return F===void 0?E:F}v.exports=S},86152:v=>{var T=Array.isArray;v.exports=T},61049:(v,T,s)=>{var p=s(53366),S=s(29259),A="[object AsyncFunction]",h="[object Function]",E="[object GeneratorFunction]",F="[object Proxy]";function U(_){if(!S(_))return!1;var Q=p(_);return Q==h||Q==E||Q==A||Q==F}v.exports=U},29259:v=>{function T(s){var p=typeof s;return s!=null&&(p=="object"||p=="function")}v.exports=T},15125:v=>{function T(s){return s!=null&&typeof s=="object"}v.exports=T},4795:(v,T,s)=>{var p=s(53366),S=s(15125),A="[object Symbol]";function h(E){return typeof E=="symbol"||S(E)&&p(E)==A}v.exports=h},30733:(v,T,s)=>{var p=s(96738),S="Expected a function";function A(h,E){if(typeof h!="function"||E!=null&&typeof E!="function")throw new TypeError(S);var F=function(){var U=arguments,_=E?E.apply(this,U):U[0],Q=F.cache;if(Q.has(_))return Q.get(_);var le=h.apply(this,U);return F.cache=Q.set(_,le)||Q,le};return F.cache=new(A.Cache||p),F}A.Cache=p,v.exports=A},66188:(v,T,s)=>{var p=s(1054);function S(A){return A==null?"":p(A)}v.exports=S},99500:(v,T,s)=>{var p=typeof Map=="function"&&Map.prototype,S=Object.getOwnPropertyDescriptor&&p?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,A=p&&S&&typeof S.get=="function"?S.get:null,h=p&&Map.prototype.forEach,E=typeof Set=="function"&&Set.prototype,F=Object.getOwnPropertyDescriptor&&E?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,U=E&&F&&typeof F.get=="function"?F.get:null,_=E&&Set.prototype.forEach,Q=typeof WeakMap=="function"&&WeakMap.prototype,le=Q?WeakMap.prototype.has:null,K=typeof WeakSet=="function"&&WeakSet.prototype,ne=K?WeakSet.prototype.has:null,$=typeof WeakRef=="function"&&WeakRef.prototype,P=$?WeakRef.prototype.deref:null,Y=Boolean.prototype.valueOf,L=Object.prototype.toString,C=Function.prototype.toString,k=String.prototype.match,B=String.prototype.slice,X=String.prototype.replace,H=String.prototype.toUpperCase,D=String.prototype.toLowerCase,re=RegExp.prototype.test,J=Array.prototype.concat,z=Array.prototype.join,fe=Array.prototype.slice,pe=Math.floor,q=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Z=Object.getOwnPropertySymbols,G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ve=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ie=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ve?"object":"symbol")?Symbol.toStringTag:null,Ne=Object.prototype.propertyIsEnumerable,je=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ue){return ue.__proto__}:null);function tt(ue,ge){if(ue===1/0||ue===-1/0||ue!==ue||ue&&ue>-1e3&&ue<1e3||re.call(/e/,ge))return ge;var Be=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ue=="number"){var Ke=ue<0?-pe(-ue):pe(ue);if(Ke!==ue){var at=String(Ke),bt=B.call(ge,at.length+1);return X.call(at,Be,"$&_")+"."+X.call(X.call(bt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return X.call(ge,Be,"$&_")}var _e=s(53260),mt=_e.custom,De=Ct(mt)?mt:null;v.exports=function ue(ge,Be,Ke,at){var bt=Be||{};if(lt(bt,"quoteStyle")&&bt.quoteStyle!=="single"&&bt.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(lt(bt,"maxStringLength")&&(typeof bt.maxStringLength=="number"?bt.maxStringLength<0&&bt.maxStringLength!==1/0:bt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Rt=lt(bt,"customInspect")?bt.customInspect:!0;if(typeof Rt!="boolean"&&Rt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(lt(bt,"indent")&&bt.indent!==null&&bt.indent!==" "&&!(parseInt(bt.indent,10)===bt.indent&&bt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(lt(bt,"numericSeparator")&&typeof bt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var pr=bt.numericSeparator;if(typeof ge=="undefined")return"undefined";if(ge===null)return"null";if(typeof ge=="boolean")return ge?"true":"false";if(typeof ge=="string")return gt(ge,bt);if(typeof ge=="number"){if(ge===0)return 1/0/ge>0?"0":"-0";var Lt=String(ge);return pr?tt(ge,Lt):Lt}if(typeof ge=="bigint"){var jt=String(ge)+"n";return pr?tt(ge,jt):jt}var _n=typeof bt.depth=="undefined"?5:bt.depth;if(typeof Ke=="undefined"&&(Ke=0),Ke>=_n&&_n>0&&typeof ge=="object")return Pe(ge)?"[Array]":"[Object]";var Yr=Et(bt,Ke);if(typeof at=="undefined")at=[];else if(Kr(at,ge)>=0)return"[Circular]";function Jr(fn,Sr,fi){if(Sr&&(at=fe.call(at),at.push(Sr)),fi){var kn={depth:bt.depth};return lt(bt,"quoteStyle")&&(kn.quoteStyle=bt.quoteStyle),ue(fn,kn,Ke+1,at)}return ue(fn,bt,Ke+1,at)}if(typeof ge=="function"&&!Ge(ge)){var si=Ft(ge),en=Ve(ge,Jr);return"[Function"+(si?": "+si:" (anonymous)")+"]"+(en.length>0?" { "+z.call(en,", ")+" }":"")}if(Ct(ge)){var li=ve?X.call(String(ge),/^(Symbol\(.*\))_[^)]*$/,"$1"):G.call(ge);return typeof ge=="object"&&!ve?At(li):li}if(Xe(ge)){for(var ui="<"+D.call(String(ge.nodeName)),tn=ge.attributes||[],Pn=0;Pn<tn.length;Pn++)ui+=" "+tn[Pn].name+"="+Oe(Ue(tn[Pn].value),"double",bt);return ui+=">",ge.childNodes&&ge.childNodes.length&&(ui+="..."),ui+="</"+D.call(String(ge.nodeName))+">",ui}if(Pe(ge)){if(ge.length===0)return"[]";var Vr=Ve(ge,Jr);return Yr&&!it(Vr)?"["+nt(Vr,Yr)+"]":"[ "+z.call(Vr,", ")+" ]"}if(rt(ge)){var Oi=Ve(ge,Jr);return!("cause"in Error.prototype)&&"cause"in ge&&!Ne.call(ge,"cause")?"{ ["+String(ge)+"] "+z.call(J.call("[cause]: "+Jr(ge.cause),Oi),", ")+" }":Oi.length===0?"["+String(ge)+"]":"{ ["+String(ge)+"] "+z.call(Oi,", ")+" }"}if(typeof ge=="object"&&Rt){if(De&&typeof ge[De]=="function"&&_e)return _e(ge,{depth:_n-Ke});if(Rt!=="symbol"&&typeof ge.inspect=="function")return ge.inspect()}if(br(ge)){var ha=[];return h.call(ge,function(fn,Sr){ha.push(Jr(Sr,ge,!0)+" => "+Jr(fn,ge))}),ct("Map",A.call(ge),ha,Yr)}if(Yt(ge)){var An=[];return _.call(ge,function(fn){An.push(Jr(fn,ge))}),ct("Set",U.call(ge),An,Yr)}if(qr(ge))return Ot("WeakMap");if(dr(ge))return Ot("WeakSet");if(xr(ge))return Ot("WeakRef");if(et(ge))return At(Jr(Number(ge)));if(kt(ge))return At(Jr(q.call(ge)));if(Ze(ge))return At(Y.call(ge));if($e(ge))return At(Jr(String(ge)));if(!Ce(ge)&&!Ge(ge)){var mn=Ve(ge,Jr),Cn=je?je(ge)===Object.prototype:ge instanceof Object||ge.constructor===Object,En=ge instanceof Object?"":"null prototype",In=!Cn&&Ie&&Object(ge)===ge&&Ie in ge?B.call(xt(ge),8,-1):En?"Object":"",Ha=Cn||typeof ge.constructor!="function"?"":ge.constructor.name?ge.constructor.name+" ":"",zn=Ha+(In||En?"["+z.call(J.call([],In||[],En||[]),": ")+"] ":"");return mn.length===0?zn+"{}":Yr?zn+"{"+nt(mn,Yr)+"}":zn+"{ "+z.call(mn,", ")+" }"}return String(ge)};function Oe(ue,ge,Be){var Ke=(Be.quoteStyle||ge)==="double"?'"':"'";return Ke+ue+Ke}function Ue(ue){return X.call(String(ue),/"/g,""")}function Pe(ue){return xt(ue)==="[object Array]"&&(!Ie||!(typeof ue=="object"&&Ie in ue))}function Ce(ue){return xt(ue)==="[object Date]"&&(!Ie||!(typeof ue=="object"&&Ie in ue))}function Ge(ue){return xt(ue)==="[object RegExp]"&&(!Ie||!(typeof ue=="object"&&Ie in ue))}function rt(ue){return xt(ue)==="[object Error]"&&(!Ie||!(typeof ue=="object"&&Ie in ue))}function $e(ue){return xt(ue)==="[object String]"&&(!Ie||!(typeof ue=="object"&&Ie in ue))}function et(ue){return xt(ue)==="[object Number]"&&(!Ie||!(typeof ue=="object"&&Ie in ue))}function Ze(ue){return xt(ue)==="[object Boolean]"&&(!Ie||!(typeof ue=="object"&&Ie in ue))}function Ct(ue){if(ve)return ue&&typeof ue=="object"&&ue instanceof Symbol;if(typeof ue=="symbol")return!0;if(!ue||typeof ue!="object"||!G)return!1;try{return G.call(ue),!0}catch(ge){}return!1}function kt(ue){if(!ue||typeof ue!="object"||!q)return!1;try{return q.call(ue),!0}catch(ge){}return!1}var Zt=Object.prototype.hasOwnProperty||function(ue){return ue in this};function lt(ue,ge){return Zt.call(ue,ge)}function xt(ue){return L.call(ue)}function Ft(ue){if(ue.name)return ue.name;var ge=k.call(C.call(ue),/^function\s*([\w$]+)/);return ge?ge[1]:null}function Kr(ue,ge){if(ue.indexOf)return ue.indexOf(ge);for(var Be=0,Ke=ue.length;Be<Ke;Be++)if(ue[Be]===ge)return Be;return-1}function br(ue){if(!A||!ue||typeof ue!="object")return!1;try{A.call(ue);try{U.call(ue)}catch(ge){return!0}return ue instanceof Map}catch(ge){}return!1}function qr(ue){if(!le||!ue||typeof ue!="object")return!1;try{le.call(ue,le);try{ne.call(ue,ne)}catch(ge){return!0}return ue instanceof WeakMap}catch(ge){}return!1}function xr(ue){if(!P||!ue||typeof ue!="object")return!1;try{return P.call(ue),!0}catch(ge){}return!1}function Yt(ue){if(!U||!ue||typeof ue!="object")return!1;try{U.call(ue);try{A.call(ue)}catch(ge){return!0}return ue instanceof Set}catch(ge){}return!1}function dr(ue){if(!ne||!ue||typeof ue!="object")return!1;try{ne.call(ue,ne);try{le.call(ue,le)}catch(ge){return!0}return ue instanceof WeakSet}catch(ge){}return!1}function Xe(ue){return!ue||typeof ue!="object"?!1:typeof HTMLElement!="undefined"&&ue instanceof HTMLElement?!0:typeof ue.nodeName=="string"&&typeof ue.getAttribute=="function"}function gt(ue,ge){if(ue.length>ge.maxStringLength){var Be=ue.length-ge.maxStringLength,Ke="... "+Be+" more character"+(Be>1?"s":"");return gt(B.call(ue,0,ge.maxStringLength),ge)+Ke}var at=X.call(X.call(ue,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Tt);return Oe(at,"single",ge)}function Tt(ue){var ge=ue.charCodeAt(0),Be={8:"b",9:"t",10:"n",12:"f",13:"r"}[ge];return Be?"\\"+Be:"\\x"+(ge<16?"0":"")+H.call(ge.toString(16))}function At(ue){return"Object("+ue+")"}function Ot(ue){return ue+" { ? }"}function ct(ue,ge,Be,Ke){var at=Ke?nt(Be,Ke):z.call(Be,", ");return ue+" ("+ge+") {"+at+"}"}function it(ue){for(var ge=0;ge<ue.length;ge++)if(Kr(ue[ge],`
|
|
501
|
+
`)>=0)return!1;return!0}function Et(ue,ge){var Be;if(ue.indent===" ")Be=" ";else if(typeof ue.indent=="number"&&ue.indent>0)Be=z.call(Array(ue.indent+1)," ");else return null;return{base:Be,prev:z.call(Array(ge+1),Be)}}function nt(ue,ge){if(ue.length===0)return"";var Be=`
|
|
502
|
+
`+ge.prev+ge.base;return Be+z.call(ue,","+Be)+`
|
|
503
|
+
`+ge.prev}function Ve(ue,ge){var Be=Pe(ue),Ke=[];if(Be){Ke.length=ue.length;for(var at=0;at<ue.length;at++)Ke[at]=lt(ue,at)?ge(ue[at],ue):""}var bt=typeof Z=="function"?Z(ue):[],Rt;if(ve){Rt={};for(var pr=0;pr<bt.length;pr++)Rt["$"+bt[pr]]=bt[pr]}for(var Lt in ue)!lt(ue,Lt)||Be&&String(Number(Lt))===Lt&&Lt<ue.length||ve&&Rt["$"+Lt]instanceof Symbol||(re.call(/[^\w$]/,Lt)?Ke.push(ge(Lt,ue)+": "+ge(ue[Lt],ue)):Ke.push(Lt+": "+ge(ue[Lt],ue)));if(typeof Z=="function")for(var jt=0;jt<bt.length;jt++)Ne.call(ue,bt[jt])&&Ke.push("["+ge(bt[jt])+"]: "+ge(ue[bt[jt]],ue));return Ke}},85527:v=>{"use strict";var T=String.prototype.replace,s=/%20/g,p={RFC1738:"RFC1738",RFC3986:"RFC3986"};v.exports={default:p.RFC3986,formatters:{RFC1738:function(S){return T.call(S,s,"+")},RFC3986:function(S){return String(S)}},RFC1738:p.RFC1738,RFC3986:p.RFC3986}},37794:(v,T,s)=>{"use strict";var p=s(66845),S=s(29166),A=s(85527);v.exports={formats:A,parse:S,stringify:p}},29166:(v,T,s)=>{"use strict";var p=s(12493),S=Object.prototype.hasOwnProperty,A=Array.isArray,h={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:p.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},E=function($){return $.replace(/&#(\d+);/g,function(P,Y){return String.fromCharCode(parseInt(Y,10))})},F=function($,P){return $&&typeof $=="string"&&P.comma&&$.indexOf(",")>-1?$.split(","):$},U="utf8=%26%2310003%3B",_="utf8=%E2%9C%93",Q=function(P,Y){var L={},C=Y.ignoreQueryPrefix?P.replace(/^\?/,""):P,k=Y.parameterLimit===1/0?void 0:Y.parameterLimit,B=C.split(Y.delimiter,k),X=-1,H,D=Y.charset;if(Y.charsetSentinel)for(H=0;H<B.length;++H)B[H].indexOf("utf8=")===0&&(B[H]===_?D="utf-8":B[H]===U&&(D="iso-8859-1"),X=H,H=B.length);for(H=0;H<B.length;++H)if(H!==X){var re=B[H],J=re.indexOf("]="),z=J===-1?re.indexOf("="):J+1,fe,pe;z===-1?(fe=Y.decoder(re,h.decoder,D,"key"),pe=Y.strictNullHandling?null:""):(fe=Y.decoder(re.slice(0,z),h.decoder,D,"key"),pe=p.maybeMap(F(re.slice(z+1),Y),function(q){return Y.decoder(q,h.decoder,D,"value")})),pe&&Y.interpretNumericEntities&&D==="iso-8859-1"&&(pe=E(pe)),re.indexOf("[]=")>-1&&(pe=A(pe)?[pe]:pe),S.call(L,fe)?L[fe]=p.combine(L[fe],pe):L[fe]=pe}return L},le=function($,P,Y,L){for(var C=L?P:F(P,Y),k=$.length-1;k>=0;--k){var B,X=$[k];if(X==="[]"&&Y.parseArrays)B=[].concat(C);else{B=Y.plainObjects?Object.create(null):{};var H=X.charAt(0)==="["&&X.charAt(X.length-1)==="]"?X.slice(1,-1):X,D=parseInt(H,10);!Y.parseArrays&&H===""?B={0:C}:!isNaN(D)&&X!==H&&String(D)===H&&D>=0&&Y.parseArrays&&D<=Y.arrayLimit?(B=[],B[D]=C):H!=="__proto__"&&(B[H]=C)}C=B}return C},K=function(P,Y,L,C){if(!!P){var k=L.allowDots?P.replace(/\.([^.[]+)/g,"[$1]"):P,B=/(\[[^[\]]*])/,X=/(\[[^[\]]*])/g,H=L.depth>0&&B.exec(k),D=H?k.slice(0,H.index):k,re=[];if(D){if(!L.plainObjects&&S.call(Object.prototype,D)&&!L.allowPrototypes)return;re.push(D)}for(var J=0;L.depth>0&&(H=X.exec(k))!==null&&J<L.depth;){if(J+=1,!L.plainObjects&&S.call(Object.prototype,H[1].slice(1,-1))&&!L.allowPrototypes)return;re.push(H[1])}return H&&re.push("["+k.slice(H.index)+"]"),le(re,Y,L,C)}},ne=function(P){if(!P)return h;if(P.decoder!==null&&P.decoder!==void 0&&typeof P.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof P.charset!="undefined"&&P.charset!=="utf-8"&&P.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var Y=typeof P.charset=="undefined"?h.charset:P.charset;return{allowDots:typeof P.allowDots=="undefined"?h.allowDots:!!P.allowDots,allowPrototypes:typeof P.allowPrototypes=="boolean"?P.allowPrototypes:h.allowPrototypes,allowSparse:typeof P.allowSparse=="boolean"?P.allowSparse:h.allowSparse,arrayLimit:typeof P.arrayLimit=="number"?P.arrayLimit:h.arrayLimit,charset:Y,charsetSentinel:typeof P.charsetSentinel=="boolean"?P.charsetSentinel:h.charsetSentinel,comma:typeof P.comma=="boolean"?P.comma:h.comma,decoder:typeof P.decoder=="function"?P.decoder:h.decoder,delimiter:typeof P.delimiter=="string"||p.isRegExp(P.delimiter)?P.delimiter:h.delimiter,depth:typeof P.depth=="number"||P.depth===!1?+P.depth:h.depth,ignoreQueryPrefix:P.ignoreQueryPrefix===!0,interpretNumericEntities:typeof P.interpretNumericEntities=="boolean"?P.interpretNumericEntities:h.interpretNumericEntities,parameterLimit:typeof P.parameterLimit=="number"?P.parameterLimit:h.parameterLimit,parseArrays:P.parseArrays!==!1,plainObjects:typeof P.plainObjects=="boolean"?P.plainObjects:h.plainObjects,strictNullHandling:typeof P.strictNullHandling=="boolean"?P.strictNullHandling:h.strictNullHandling}};v.exports=function($,P){var Y=ne(P);if($===""||$===null||typeof $=="undefined")return Y.plainObjects?Object.create(null):{};for(var L=typeof $=="string"?Q($,Y):$,C=Y.plainObjects?Object.create(null):{},k=Object.keys(L),B=0;B<k.length;++B){var X=k[B],H=K(X,L[X],Y,typeof $=="string");C=p.merge(C,H,Y)}return Y.allowSparse===!0?C:p.compact(C)}},66845:(v,T,s)=>{"use strict";var p=s(74294),S=s(12493),A=s(85527),h=Object.prototype.hasOwnProperty,E={brackets:function(k){return k+"[]"},comma:"comma",indices:function(k,B){return k+"["+B+"]"},repeat:function(k){return k}},F=Array.isArray,U=String.prototype.split,_=Array.prototype.push,Q=function(C,k){_.apply(C,F(k)?k:[k])},le=Date.prototype.toISOString,K=A.default,ne={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:S.encode,encodeValuesOnly:!1,format:K,formatter:A.formatters[K],indices:!1,serializeDate:function(k){return le.call(k)},skipNulls:!1,strictNullHandling:!1},$=function(k){return typeof k=="string"||typeof k=="number"||typeof k=="boolean"||typeof k=="symbol"||typeof k=="bigint"},P={},Y=function C(k,B,X,H,D,re,J,z,fe,pe,q,Z,G,ve,Ie){for(var Ne=k,je=Ie,tt=0,_e=!1;(je=je.get(P))!==void 0&&!_e;){var mt=je.get(k);if(tt+=1,typeof mt!="undefined"){if(mt===tt)throw new RangeError("Cyclic object value");_e=!0}typeof je.get(P)=="undefined"&&(tt=0)}if(typeof J=="function"?Ne=J(B,Ne):Ne instanceof Date?Ne=pe(Ne):X==="comma"&&F(Ne)&&(Ne=S.maybeMap(Ne,function(Zt){return Zt instanceof Date?pe(Zt):Zt})),Ne===null){if(H)return re&&!G?re(B,ne.encoder,ve,"key",q):B;Ne=""}if($(Ne)||S.isBuffer(Ne)){if(re){var De=G?B:re(B,ne.encoder,ve,"key",q);if(X==="comma"&&G){for(var Oe=U.call(String(Ne),","),Ue="",Pe=0;Pe<Oe.length;++Pe)Ue+=(Pe===0?"":",")+Z(re(Oe[Pe],ne.encoder,ve,"value",q));return[Z(De)+"="+Ue]}return[Z(De)+"="+Z(re(Ne,ne.encoder,ve,"value",q))]}return[Z(B)+"="+Z(String(Ne))]}var Ce=[];if(typeof Ne=="undefined")return Ce;var Ge;if(X==="comma"&&F(Ne))Ge=[{value:Ne.length>0?Ne.join(",")||null:void 0}];else if(F(J))Ge=J;else{var rt=Object.keys(Ne);Ge=z?rt.sort(z):rt}for(var $e=0;$e<Ge.length;++$e){var et=Ge[$e],Ze=typeof et=="object"&&typeof et.value!="undefined"?et.value:Ne[et];if(!(D&&Ze===null)){var Ct=F(Ne)?typeof X=="function"?X(B,et):B:B+(fe?"."+et:"["+et+"]");Ie.set(k,tt);var kt=p();kt.set(P,Ie),Q(Ce,C(Ze,Ct,X,H,D,re,J,z,fe,pe,q,Z,G,ve,kt))}}return Ce},L=function(k){if(!k)return ne;if(k.encoder!==null&&typeof k.encoder!="undefined"&&typeof k.encoder!="function")throw new TypeError("Encoder has to be a function.");var B=k.charset||ne.charset;if(typeof k.charset!="undefined"&&k.charset!=="utf-8"&&k.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var X=A.default;if(typeof k.format!="undefined"){if(!h.call(A.formatters,k.format))throw new TypeError("Unknown format option provided.");X=k.format}var H=A.formatters[X],D=ne.filter;return(typeof k.filter=="function"||F(k.filter))&&(D=k.filter),{addQueryPrefix:typeof k.addQueryPrefix=="boolean"?k.addQueryPrefix:ne.addQueryPrefix,allowDots:typeof k.allowDots=="undefined"?ne.allowDots:!!k.allowDots,charset:B,charsetSentinel:typeof k.charsetSentinel=="boolean"?k.charsetSentinel:ne.charsetSentinel,delimiter:typeof k.delimiter=="undefined"?ne.delimiter:k.delimiter,encode:typeof k.encode=="boolean"?k.encode:ne.encode,encoder:typeof k.encoder=="function"?k.encoder:ne.encoder,encodeValuesOnly:typeof k.encodeValuesOnly=="boolean"?k.encodeValuesOnly:ne.encodeValuesOnly,filter:D,format:X,formatter:H,serializeDate:typeof k.serializeDate=="function"?k.serializeDate:ne.serializeDate,skipNulls:typeof k.skipNulls=="boolean"?k.skipNulls:ne.skipNulls,sort:typeof k.sort=="function"?k.sort:null,strictNullHandling:typeof k.strictNullHandling=="boolean"?k.strictNullHandling:ne.strictNullHandling}};v.exports=function(C,k){var B=C,X=L(k),H,D;typeof X.filter=="function"?(D=X.filter,B=D("",B)):F(X.filter)&&(D=X.filter,H=D);var re=[];if(typeof B!="object"||B===null)return"";var J;k&&k.arrayFormat in E?J=k.arrayFormat:k&&"indices"in k?J=k.indices?"indices":"repeat":J="indices";var z=E[J];H||(H=Object.keys(B)),X.sort&&H.sort(X.sort);for(var fe=p(),pe=0;pe<H.length;++pe){var q=H[pe];X.skipNulls&&B[q]===null||Q(re,Y(B[q],q,z,X.strictNullHandling,X.skipNulls,X.encode?X.encoder:null,X.filter,X.sort,X.allowDots,X.serializeDate,X.format,X.formatter,X.encodeValuesOnly,X.charset,fe))}var Z=re.join(X.delimiter),G=X.addQueryPrefix===!0?"?":"";return X.charsetSentinel&&(X.charset==="iso-8859-1"?G+="utf8=%26%2310003%3B&":G+="utf8=%E2%9C%93&"),Z.length>0?G+Z:""}},12493:(v,T,s)=>{"use strict";var p=s(85527),S=Object.prototype.hasOwnProperty,A=Array.isArray,h=function(){for(var L=[],C=0;C<256;++C)L.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return L}(),E=function(C){for(;C.length>1;){var k=C.pop(),B=k.obj[k.prop];if(A(B)){for(var X=[],H=0;H<B.length;++H)typeof B[H]!="undefined"&&X.push(B[H]);k.obj[k.prop]=X}}},F=function(C,k){for(var B=k&&k.plainObjects?Object.create(null):{},X=0;X<C.length;++X)typeof C[X]!="undefined"&&(B[X]=C[X]);return B},U=function L(C,k,B){if(!k)return C;if(typeof k!="object"){if(A(C))C.push(k);else if(C&&typeof C=="object")(B&&(B.plainObjects||B.allowPrototypes)||!S.call(Object.prototype,k))&&(C[k]=!0);else return[C,k];return C}if(!C||typeof C!="object")return[C].concat(k);var X=C;return A(C)&&!A(k)&&(X=F(C,B)),A(C)&&A(k)?(k.forEach(function(H,D){if(S.call(C,D)){var re=C[D];re&&typeof re=="object"&&H&&typeof H=="object"?C[D]=L(re,H,B):C.push(H)}else C[D]=H}),C):Object.keys(k).reduce(function(H,D){var re=k[D];return S.call(H,D)?H[D]=L(H[D],re,B):H[D]=re,H},X)},_=function(C,k){return Object.keys(k).reduce(function(B,X){return B[X]=k[X],B},C)},Q=function(L,C,k){var B=L.replace(/\+/g," ");if(k==="iso-8859-1")return B.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(B)}catch(X){return B}},le=function(C,k,B,X,H){if(C.length===0)return C;var D=C;if(typeof C=="symbol"?D=Symbol.prototype.toString.call(C):typeof C!="string"&&(D=String(C)),B==="iso-8859-1")return escape(D).replace(/%u[0-9a-f]{4}/gi,function(fe){return"%26%23"+parseInt(fe.slice(2),16)+"%3B"});for(var re="",J=0;J<D.length;++J){var z=D.charCodeAt(J);if(z===45||z===46||z===95||z===126||z>=48&&z<=57||z>=65&&z<=90||z>=97&&z<=122||H===p.RFC1738&&(z===40||z===41)){re+=D.charAt(J);continue}if(z<128){re=re+h[z];continue}if(z<2048){re=re+(h[192|z>>6]+h[128|z&63]);continue}if(z<55296||z>=57344){re=re+(h[224|z>>12]+h[128|z>>6&63]+h[128|z&63]);continue}J+=1,z=65536+((z&1023)<<10|D.charCodeAt(J)&1023),re+=h[240|z>>18]+h[128|z>>12&63]+h[128|z>>6&63]+h[128|z&63]}return re},K=function(C){for(var k=[{obj:{o:C},prop:"o"}],B=[],X=0;X<k.length;++X)for(var H=k[X],D=H.obj[H.prop],re=Object.keys(D),J=0;J<re.length;++J){var z=re[J],fe=D[z];typeof fe=="object"&&fe!==null&&B.indexOf(fe)===-1&&(k.push({obj:D,prop:z}),B.push(fe))}return E(k),C},ne=function(C){return Object.prototype.toString.call(C)==="[object RegExp]"},$=function(C){return!C||typeof C!="object"?!1:!!(C.constructor&&C.constructor.isBuffer&&C.constructor.isBuffer(C))},P=function(C,k){return[].concat(C,k)},Y=function(C,k){if(A(C)){for(var B=[],X=0;X<C.length;X+=1)B.push(k(C[X]));return B}return k(C)};v.exports={arrayToObject:F,assign:_,combine:P,compact:K,decode:Q,encode:le,isBuffer:$,isRegExp:ne,maybeMap:Y,merge:U}},63277:(v,T,s)=>{"use strict";var p;function S(){return S=Object.assign||function(ne){for(var $=1;$<arguments.length;$++){var P=arguments[$];for(var Y in P)Object.prototype.hasOwnProperty.call(P,Y)&&(ne[Y]=P[Y])}return ne},S.apply(this,arguments)}function A(ne){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?A=function(P){return typeof P}:A=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},A(ne)}var h=function(){var ne=function(P,Y){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,C){L.__proto__=C}||function(L,C){for(var k in C)C.hasOwnProperty(k)&&(L[k]=C[k])},ne(P,Y)};return function($,P){ne($,P);function Y(){this.constructor=$}$.prototype=P===null?Object.create(P):(Y.prototype=P.prototype,new Y)}}();p={value:!0},p=T.fk=void 0;var E=s(2784),F=typeof navigator=="undefined"||s.g.PREVENT_CODEMIRROR_RENDER===!0,U;F||(U=s(23326));var _=function(){function ne(){}return ne.equals=function($,P){var Y=this,L=Object.keys,C=A($),k=A(P);return $&&P&&C==="object"&&C===k?L($).length===L(P).length&&L($).every(function(B){return Y.equals($[B],P[B])}):$===P},ne}(),Q=function(){function ne($,P){this.editor=$,this.props=P}return ne.prototype.delegateCursor=function($,P,Y){var L=this.editor.getDoc();Y&&this.editor.focus(),P?L.setCursor($):L.setCursor($,null,{scroll:!1})},ne.prototype.delegateScroll=function($){this.editor.scrollTo($.x,$.y)},ne.prototype.delegateSelection=function($,P){var Y=this.editor.getDoc();Y.setSelections($),P&&this.editor.focus()},ne.prototype.apply=function($){$&&$.selection&&$.selection.ranges&&this.delegateSelection($.selection.ranges,$.selection.focus||!1),$&&$.cursor&&this.delegateCursor($.cursor,$.autoScroll||!1,this.editor.getOption("autofocus")||!1),$&&$.scroll&&this.delegateScroll($.scroll)},ne.prototype.applyNext=function($,P,Y){$&&$.selection&&$.selection.ranges&&P&&P.selection&&P.selection.ranges&&!_.equals($.selection.ranges,P.selection.ranges)&&this.delegateSelection(P.selection.ranges,P.selection.focus||!1),$&&$.cursor&&P&&P.cursor&&!_.equals($.cursor,P.cursor)&&this.delegateCursor(Y.cursor||P.cursor,P.autoScroll||!1,P.autoCursor||!1),$&&$.scroll&&P&&P.scroll&&!_.equals($.scroll,P.scroll)&&this.delegateScroll(P.scroll)},ne.prototype.applyUserDefined=function($,P){P&&P.cursor&&this.delegateCursor(P.cursor,$.autoScroll||!1,this.editor.getOption("autofocus")||!1)},ne.prototype.wire=function($){var P=this;Object.keys($||{}).filter(function(Y){return/^on/.test(Y)}).forEach(function(Y){switch(Y){case"onBlur":P.editor.on("blur",function(L,C){P.props.onBlur(P.editor,C)});break;case"onContextMenu":{P.editor.on("contextmenu",function(L,C){P.props.onContextMenu(P.editor,C)});break}case"onCopy":{P.editor.on("copy",function(L,C){P.props.onCopy(P.editor,C)});break}case"onCursor":P.editor.on("cursorActivity",function(L){P.props.onCursor(P.editor,P.editor.getDoc().getCursor())});break;case"onCursorActivity":P.editor.on("cursorActivity",function(L){P.props.onCursorActivity(P.editor)});break;case"onCut":{P.editor.on("cut",function(L,C){P.props.onCut(P.editor,C)});break}case"onDblClick":{P.editor.on("dblclick",function(L,C){P.props.onDblClick(P.editor,C)});break}case"onDragEnter":P.editor.on("dragenter",function(L,C){P.props.onDragEnter(P.editor,C)});break;case"onDragLeave":{P.editor.on("dragleave",function(L,C){P.props.onDragLeave(P.editor,C)});break}case"onDragOver":P.editor.on("dragover",function(L,C){P.props.onDragOver(P.editor,C)});break;case"onDragStart":{P.editor.on("dragstart",function(L,C){P.props.onDragStart(P.editor,C)});break}case"onDrop":P.editor.on("drop",function(L,C){P.props.onDrop(P.editor,C)});break;case"onFocus":P.editor.on("focus",function(L,C){P.props.onFocus(P.editor,C)});break;case"onGutterClick":P.editor.on("gutterClick",function(L,C,k,B){P.props.onGutterClick(P.editor,C,k,B)});break;case"onInputRead":P.editor.on("inputRead",function(L,C){P.props.onInputRead(P.editor,C)});break;case"onKeyDown":P.editor.on("keydown",function(L,C){P.props.onKeyDown(P.editor,C)});break;case"onKeyHandled":P.editor.on("keyHandled",function(L,C,k){P.props.onKeyHandled(P.editor,C,k)});break;case"onKeyPress":P.editor.on("keypress",function(L,C){P.props.onKeyPress(P.editor,C)});break;case"onKeyUp":P.editor.on("keyup",function(L,C){P.props.onKeyUp(P.editor,C)});break;case"onMouseDown":{P.editor.on("mousedown",function(L,C){P.props.onMouseDown(P.editor,C)});break}case"onPaste":{P.editor.on("paste",function(L,C){P.props.onPaste(P.editor,C)});break}case"onRenderLine":{P.editor.on("renderLine",function(L,C,k){P.props.onRenderLine(P.editor,C,k)});break}case"onScroll":P.editor.on("scroll",function(L){P.props.onScroll(P.editor,P.editor.getScrollInfo())});break;case"onSelection":P.editor.on("beforeSelectionChange",function(L,C){P.props.onSelection(P.editor,C)});break;case"onTouchStart":{P.editor.on("touchstart",function(L,C){P.props.onTouchStart(P.editor,C)});break}case"onUpdate":P.editor.on("update",function(L){P.props.onUpdate(P.editor)});break;case"onViewportChange":P.editor.on("viewportChange",function(L,C,k){P.props.onViewportChange(P.editor,C,k)});break}})},ne}(),le=function(ne){h($,ne);function $(P){var Y=ne.call(this,P)||this;return F||(Y.applied=!1,Y.appliedNext=!1,Y.appliedUserDefined=!1,Y.deferred=null,Y.emulating=!1,Y.hydrated=!1,Y.initCb=function(){Y.props.editorDidConfigure&&Y.props.editorDidConfigure(Y.editor)},Y.mounted=!1),Y}return $.prototype.hydrate=function(P){var Y=this,L=P&&P.options?P.options:{},C=S({},U.defaults,this.editor.options,L),k=Object.keys(C).some(function(B){return Y.editor.getOption(B)!==C[B]});k&&Object.keys(C).forEach(function(B){L.hasOwnProperty(B)&&Y.editor.getOption(B)!==C[B]&&(Y.editor.setOption(B,C[B]),Y.mirror.setOption(B,C[B]))}),this.hydrated||(this.deferred?this.resolveChange(P.value):this.initChange(P.value||"")),this.hydrated=!0},$.prototype.initChange=function(P){this.emulating=!0;var Y=this.editor.getDoc(),L=Y.lastLine(),C=Y.getLine(Y.lastLine()).length;Y.replaceRange(P||"",{line:0,ch:0},{line:L,ch:C}),this.mirror.setValue(P),Y.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},$.prototype.resolveChange=function(P){this.emulating=!0;var Y=this.editor.getDoc();if(this.deferred.origin==="undo"?Y.undo():this.deferred.origin==="redo"?Y.redo():Y.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),P&&P!==Y.getValue()){var L=Y.getCursor();Y.setValue(P),Y.setCursor(L)}this.emulating=!1,this.deferred=null},$.prototype.mirrorChange=function(P){var Y=this.editor.getDoc();return P.origin==="undo"?(Y.setHistory(this.mirror.getHistory()),this.mirror.undo()):P.origin==="redo"?(Y.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(P.text,P.from,P.to,P.origin),this.mirror.getValue()},$.prototype.componentDidMount=function(){var P=this;F||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&U.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=U(this.ref,this.props.options),this.shared=new Q(this.editor,this.props),this.mirror=U(function(){},this.props.options),this.editor.on("electricInput",function(){P.mirror.setHistory(P.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){P.mirror.setCursor(P.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(Y,L){if(!P.emulating){L.cancel(),P.deferred=L;var C=P.mirrorChange(P.deferred);P.props.onBeforeChange&&P.props.onBeforeChange(P.editor,P.deferred,C)}}),this.editor.on("change",function(Y,L){!P.mounted||P.props.onChange&&P.props.onChange(P.editor,L,P.editor.getValue())}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},$.prototype.componentDidUpdate=function(P){if(!F){var Y={cursor:null};this.props.value!==P.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(Y.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(P,this.props,Y),this.appliedNext=!0),this.shared.applyUserDefined(P,Y),this.appliedUserDefined=!0}},$.prototype.componentWillUnmount=function(){F||this.props.editorWillUnmount&&this.props.editorWillUnmount(U)},$.prototype.shouldComponentUpdate=function(P,Y){return!F},$.prototype.render=function(){var P=this;if(F)return null;var Y=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return E.createElement("div",{className:Y,ref:function(C){return P.ref=C}})},$}(E.Component);T.fk=le;var K=function(ne){h($,ne);function $(P){var Y=ne.call(this,P)||this;return F||(Y.applied=!1,Y.appliedUserDefined=!1,Y.continueChange=!1,Y.detached=!1,Y.hydrated=!1,Y.initCb=function(){Y.props.editorDidConfigure&&Y.props.editorDidConfigure(Y.editor)},Y.mounted=!1,Y.onBeforeChangeCb=function(){Y.continueChange=!0}),Y}return $.prototype.hydrate=function(P){var Y=this,L=P&&P.options?P.options:{},C=S({},U.defaults,this.editor.options,L),k=Object.keys(C).some(function(D){return Y.editor.getOption(D)!==C[D]});if(k&&Object.keys(C).forEach(function(D){L.hasOwnProperty(D)&&Y.editor.getOption(D)!==C[D]&&Y.editor.setOption(D,C[D])}),!this.hydrated){var B=this.editor.getDoc(),X=B.lastLine(),H=B.getLine(B.lastLine()).length;B.replaceRange(P.value||"",{line:0,ch:0},{line:X,ch:H})}this.hydrated=!0},$.prototype.componentDidMount=function(){var P=this;F||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&U.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=U(this.ref,this.props.options),this.shared=new Q(this.editor,this.props),this.editor.on("beforeChange",function(Y,L){P.props.onBeforeChange&&P.props.onBeforeChange(P.editor,L,P.editor.getValue(),P.onBeforeChangeCb)}),this.editor.on("change",function(Y,L){!P.mounted||!P.props.onChange||(P.props.onBeforeChange?P.continueChange&&P.props.onChange(P.editor,L,P.editor.getValue()):P.props.onChange(P.editor,L,P.editor.getValue()))}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},$.prototype.componentDidUpdate=function(P){if(this.detached&&this.props.detach===!1&&(this.detached=!1,P.editorDidAttach&&P.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,P.editorDidDetach&&P.editorDidDetach(this.editor)),!(F||this.detached)){var Y={cursor:null};this.props.value!==P.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!P.autoCursor&&P.autoCursor!==void 0&&(Y.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(P),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(P,Y),this.appliedUserDefined=!0)}},$.prototype.componentWillUnmount=function(){F||this.props.editorWillUnmount&&this.props.editorWillUnmount(U)},$.prototype.shouldComponentUpdate=function(P,Y){var L=!0;return F&&(L=!1),this.detached&&P.detach&&(L=!1),L},$.prototype.render=function(){var P=this;if(F)return null;var Y=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return E.createElement("div",{className:Y,ref:function(C){return P.ref=C}})},$}(E.Component);p=K},74294:(v,T,s)=>{"use strict";var p=s(67286),S=s(62680),A=s(99500),h=p("%TypeError%"),E=p("%WeakMap%",!0),F=p("%Map%",!0),U=S("WeakMap.prototype.get",!0),_=S("WeakMap.prototype.set",!0),Q=S("WeakMap.prototype.has",!0),le=S("Map.prototype.get",!0),K=S("Map.prototype.set",!0),ne=S("Map.prototype.has",!0),$=function(C,k){for(var B=C,X;(X=B.next)!==null;B=X)if(X.key===k)return B.next=X.next,X.next=C.next,C.next=X,X},P=function(C,k){var B=$(C,k);return B&&B.value},Y=function(C,k,B){var X=$(C,k);X?X.value=B:C.next={key:k,next:C.next,value:B}},L=function(C,k){return!!$(C,k)};v.exports=function(){var k,B,X,H={assert:function(D){if(!H.has(D))throw new h("Side channel does not contain "+A(D))},get:function(D){if(E&&D&&(typeof D=="object"||typeof D=="function")){if(k)return U(k,D)}else if(F){if(B)return le(B,D)}else if(X)return P(X,D)},has:function(D){if(E&&D&&(typeof D=="object"||typeof D=="function")){if(k)return Q(k,D)}else if(F){if(B)return ne(B,D)}else if(X)return L(X,D);return!1},set:function(D,re){E&&D&&(typeof D=="object"||typeof D=="function")?(k||(k=new E),_(k,D,re)):F?(B||(B=new F),K(B,D,re)):(X||(X={key:{},next:null}),Y(X,D,re))}};return H}},56855:v=>{var T=v.exports=function(P){return new s(P)};function s(P){this.value=P}s.prototype.get=function(P){for(var Y=this.value,L=0;L<P.length;L++){var C=P[L];if(!Y||!$.call(Y,C)){Y=void 0;break}Y=Y[C]}return Y},s.prototype.has=function(P){for(var Y=this.value,L=0;L<P.length;L++){var C=P[L];if(!Y||!$.call(Y,C))return!1;Y=Y[C]}return!0},s.prototype.set=function(P,Y){for(var L=this.value,C=0;C<P.length-1;C++){var k=P[C];$.call(L,k)||(L[k]={}),L=L[k]}return L[P[C]]=Y,Y},s.prototype.map=function(P){return p(this.value,P,!0)},s.prototype.forEach=function(P){return this.value=p(this.value,P,!1),this.value},s.prototype.reduce=function(P,Y){var L=arguments.length===1,C=L?this.value:Y;return this.forEach(function(k){(!this.isRoot||!L)&&(C=P.call(this,C,k))}),C},s.prototype.paths=function(){var P=[];return this.forEach(function(Y){P.push(this.path)}),P},s.prototype.nodes=function(){var P=[];return this.forEach(function(Y){P.push(this.node)}),P},s.prototype.clone=function(){var P=[],Y=[];return function L(C){for(var k=0;k<P.length;k++)if(P[k]===C)return Y[k];if(typeof C=="object"&&C!==null){var B=S(C);return P.push(C),Y.push(B),ne(A(C),function(X){B[X]=L(C[X])}),P.pop(),Y.pop(),B}else return C}(this.value)};function p(P,Y,L){var C=[],k=[],B=!0;return function X(H){var D=L?S(H):H,re={},J=!0,z={node:D,node_:H,path:[].concat(C),parent:k[k.length-1],parents:k,key:C.slice(-1)[0],isRoot:C.length===0,level:C.length,circular:null,update:function(q,Z){z.isRoot||(z.parent.node[z.key]=q),z.node=q,Z&&(J=!1)},delete:function(q){delete z.parent.node[z.key],q&&(J=!1)},remove:function(q){K(z.parent.node)?z.parent.node.splice(z.key,1):delete z.parent.node[z.key],q&&(J=!1)},keys:null,before:function(q){re.before=q},after:function(q){re.after=q},pre:function(q){re.pre=q},post:function(q){re.post=q},stop:function(){B=!1},block:function(){J=!1}};if(!B)return z;function fe(){if(typeof z.node=="object"&&z.node!==null){(!z.keys||z.node_!==z.node)&&(z.keys=A(z.node)),z.isLeaf=z.keys.length==0;for(var q=0;q<k.length;q++)if(k[q].node_===H){z.circular=k[q];break}}else z.isLeaf=!0,z.keys=null;z.notLeaf=!z.isLeaf,z.notRoot=!z.isRoot}fe();var pe=Y.call(z,z.node);return pe!==void 0&&z.update&&z.update(pe),re.before&&re.before.call(z,z.node),J&&(typeof z.node=="object"&&z.node!==null&&!z.circular&&(k.push(z),fe(),ne(z.keys,function(q,Z){C.push(q),re.pre&&re.pre.call(z,z.node[q],q);var G=X(z.node[q]);L&&$.call(z.node,q)&&(z.node[q]=G.node),G.isLast=Z==z.keys.length-1,G.isFirst=Z==0,re.post&&re.post.call(z,G),C.pop()}),k.pop()),re.after&&re.after.call(z,z.node)),z}(P).node}function S(P){if(typeof P=="object"&&P!==null){var Y;if(K(P))Y=[];else if(E(P))Y=new Date(P.getTime?P.getTime():P);else if(F(P))Y=new RegExp(P);else if(U(P))Y={message:P.message};else if(_(P))Y=new Boolean(P);else if(Q(P))Y=new Number(P);else if(le(P))Y=new String(P);else if(Object.create&&Object.getPrototypeOf)Y=Object.create(Object.getPrototypeOf(P));else if(P.constructor===Object)Y={};else{var L=P.constructor&&P.constructor.prototype||P.__proto__||{},C=function(){};C.prototype=L,Y=new C}return ne(A(P),function(k){Y[k]=P[k]}),Y}else return P}var A=Object.keys||function(Y){var L=[];for(var C in Y)L.push(C);return L};function h(P){return Object.prototype.toString.call(P)}function E(P){return h(P)==="[object Date]"}function F(P){return h(P)==="[object RegExp]"}function U(P){return h(P)==="[object Error]"}function _(P){return h(P)==="[object Boolean]"}function Q(P){return h(P)==="[object Number]"}function le(P){return h(P)==="[object String]"}var K=Array.isArray||function(Y){return Object.prototype.toString.call(Y)==="[object Array]"},ne=function(P,Y){if(P.forEach)return P.forEach(Y);for(var L=0;L<P.length;L++)Y(P[L],L,P)};ne(A(s.prototype),function(P){T[P]=function(Y){var L=[].slice.call(arguments,1),C=new s(Y);return C[P].apply(C,L)}});var $=Object.hasOwnProperty||function(P,Y){return Y in P}},84591:(v,T,s)=>{"use strict";s.r(T),s.d(T,{default:()=>F});var p=s(8081),S=s.n(p),A=s(23645),h=s.n(A),E=h()(S());E.push([v.id,`.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto;box-sizing:border-box}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
|
|
504
|
+
`,""]);const F=E},51232:(v,T,s)=>{"use strict";s.r(T),s.d(T,{default:()=>k});var p=s(8081),S=s.n(p),A=s(23645),h=s.n(A),E=s(61667),F=s.n(E),U=new URL(s(17735),s.b),_=new URL(s(56089),s.b),Q=new URL(s(46050),s.b),le=new URL(s(71090),s.b),K=new URL(s(96192),s.b),ne=h()(S()),$=F()(U),P=F()(_),Y=F()(Q),L=F()(le),C=F()(K);ne.push([v.id,".CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:#ffd;border:1px solid black;border-radius:4px;color:#000;font-family:monospace;font-size:10pt;overflow:hidden;padding:2px 5px;position:fixed;white-space:pre;white-space:pre-wrap;z-index:100;max-width:600px;opacity:0;transition:opacity .4s;-moz-transition:opacity .4s;-webkit-transition:opacity .4s;-o-transition:opacity .4s;-ms-transition:opacity .4s}.CodeMirror-lint-mark{background-position:left bottom;background-repeat:repeat-x}.CodeMirror-lint-mark-warning{background-image:url("+$+")}.CodeMirror-lint-mark-error{background-image:url("+P+")}.CodeMirror-lint-marker{background-position:center center;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:16px;width:16px;vertical-align:middle;position:relative}.CodeMirror-lint-message{padding-left:18px;background-position:top left;background-repeat:no-repeat}.CodeMirror-lint-marker-warning,.CodeMirror-lint-message-warning{background-image:url("+Y+")}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url("+L+")}.CodeMirror-lint-marker-multiple{background-image:url("+C+`);background-repeat:no-repeat;background-position:right bottom;width:100%;height:100%}.CodeMirror-lint-line-error{background-color:#b74c5114}.CodeMirror-lint-line-warning{background-color:#ffd3001a}
|
|
505
|
+
`,""]);const k=ne},66072:(v,T,s)=>{"use strict";s.r(T),s.d(T,{default:()=>F});var p=s(8081),S=s.n(p),A=s(23645),h=s.n(A),E=h()(S());E.push([v.id,`.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}
|
|
506
|
+
`,""]);const F=E},16887:(v,T,s)=>{"use strict";s.r(T),s.d(T,{default:()=>F});var p=s(8081),S=s.n(p),A=s(23645),h=s.n(A),E=h()(S());E.push([v.id,`.cm-s-material.CodeMirror{background-color:#263238;color:#eff}.cm-s-material .CodeMirror-gutters{background:#263238;color:#546e7a;border:none}.cm-s-material .CodeMirror-guttermarker,.cm-s-material .CodeMirror-guttermarker-subtle,.cm-s-material .CodeMirror-linenumber{color:#546e7a}.cm-s-material .CodeMirror-cursor{border-left:1px solid #FFCC00}.cm-s-material.cm-fat-cursor .CodeMirror-cursor,.cm-s-material .cm-animate-fat-cursor{background-color:#5d6d5c80!important}.cm-s-material div.CodeMirror-selected,.cm-s-material.CodeMirror-focused div.CodeMirror-selected{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::selection,.cm-s-material .CodeMirror-line>span::selection,.cm-s-material .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::-moz-selection,.cm-s-material .CodeMirror-line>span::-moz-selection,.cm-s-material .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material .cm-keyword{color:#c792ea}.cm-s-material .cm-operator{color:#89ddff}.cm-s-material .cm-variable-2{color:#eff}.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#f07178}.cm-s-material .cm-builtin{color:#ffcb6b}.cm-s-material .cm-atom{color:#f78c6c}.cm-s-material .cm-number{color:#ff5370}.cm-s-material .cm-def{color:#82aaff}.cm-s-material .cm-string{color:#c3e88d}.cm-s-material .cm-string-2{color:#f07178}.cm-s-material .cm-comment{color:#546e7a}.cm-s-material .cm-variable{color:#f07178}.cm-s-material .cm-tag{color:#ff5370}.cm-s-material .cm-meta{color:#ffcb6b}.cm-s-material .cm-attribute,.cm-s-material .cm-property{color:#c792ea}.cm-s-material .cm-qualifier,.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#decb6b}.cm-s-material .cm-error{color:#fff;background-color:#ff5370}.cm-s-material .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
|
|
507
|
+
`,""]);const F=E},61667:v=>{"use strict";v.exports=function(T,s){return s||(s={}),T&&(T=String(T.__esModule?T.default:T),/^['"].*['"]$/.test(T)&&(T=T.slice(1,-1)),s.hash&&(T+=s.hash),/["'() \t\n]|(%20)/.test(T)||s.needQuotes?'"'.concat(T.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):T)}},53513:(v,T,s)=>{var p=s(93379),S=s(84591);S=S.__esModule?S.default:S,typeof S=="string"&&(S=[[v.id,S,""]]);var A={};A.insert="head",A.singleton=!1;var h=p(S,A);v.exports=S.locals||{}},6364:(v,T,s)=>{var p=s(93379),S=s(51232);S=S.__esModule?S.default:S,typeof S=="string"&&(S=[[v.id,S,""]]);var A={};A.insert="head",A.singleton=!1;var h=p(S,A);v.exports=S.locals||{}},46830:(v,T,s)=>{var p=s(93379),S=s(66072);S=S.__esModule?S.default:S,typeof S=="string"&&(S=[[v.id,S,""]]);var A={};A.insert="head",A.singleton=!1;var h=p(S,A);v.exports=S.locals||{}},59176:(v,T,s)=>{var p=s(93379),S=s(16887);S=S.__esModule?S.default:S,typeof S=="string"&&(S=[[v.id,S,""]]);var A={};A.insert="head",A.singleton=!1;var h=p(S,A);v.exports=S.locals||{}},56089:v=>{"use strict";v.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:v=>{"use strict";v.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:v=>{"use strict";v.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:v=>{"use strict";v.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:v=>{"use strict";v.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},53260:()=>{},48621:(v,T,s)=>{v.exports=s(53822)},40192:(v,T,s)=>{v.exports=s(44877)},42126:(v,T,s)=>{v.exports=s(10140)},40453:(v,T,s)=>{v.exports=s(55603)},35784:(v,T,s)=>{v.exports=s(76237)},82985:(v,T,s)=>{v.exports=s(56515)},14903:(v,T,s)=>{v.exports=s(20057)},71488:(v,T,s)=>{v.exports=s(24741)},93963:(v,T,s)=>{v.exports=s(8368)},51661:(v,T,s)=>{v.exports=s(342)},85337:(v,T,s)=>{v.exports=s(392)},45932:(v,T,s)=>{v.exports=s(28478)},31175:(v,T,s)=>{v.exports=s(58202)},2921:(v,T,s)=>{v.exports=s(45636)},22583:(v,T,s)=>{v.exports=s(46618)},8304:(v,T,s)=>{v.exports=s(72946)},36394:(v,T,s)=>{v.exports=s(11235)},50557:(v,T,s)=>{v.exports=s(62813)},72010:(v,T,s)=>{v.exports=s(68664)},5490:(v,T,s)=>{v.exports=s(21457)},1858:(v,T,s)=>{v.exports=s(36516)},84870:(v,T,s)=>{v.exports=s(87611)},48145:(v,T,s)=>{v.exports=s(4161)},26405:(v,T,s)=>{v.exports=s(75159)},9600:(v,T,s)=>{v.exports=s(87708)},72383:(v,T,s)=>{v.exports=s(42937)},8626:(v,T,s)=>{v.exports=s(69297)},45055:(v,T,s)=>{v.exports=s(10353)},49800:(v,T,s)=>{v.exports=s(8026)},79494:(v,T,s)=>{v.exports=s(67362)},11807:(v,T,s)=>{v.exports=s(57532)},24463:(v,T,s)=>{v.exports=s(61903)},21889:(v,T,s)=>{v.exports=s(42044)},25575:(v,T,s)=>{v.exports=s(60902)},68861:(v,T,s)=>{v.exports=s(2214)},64772:(v,T,s)=>{v.exports=s(983)},57829:(v,T,s)=>{v.exports=s(59256)},92876:(v,T,s)=>{v.exports=s(95659)},18730:(v,T,s)=>{var p=s(94978).default,S=s(57829),A=s(49800),h=s(8626),E=s(21889),F=s(48145),U=s(68861),_=s(64772),Q=s(9600),le=s(72383);function K(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */v.exports=K=function(){return ne},v.exports.__esModule=!0,v.exports.default=v.exports;var ne={},$=Object.prototype,P=$.hasOwnProperty,Y=typeof S=="function"?S:{},L=Y.iterator||"@@iterator",C=Y.asyncIterator||"@@asyncIterator",k=Y.toStringTag||"@@toStringTag";function B(De,Oe,Ue){return A(De,Oe,{value:Ue,enumerable:!0,configurable:!0,writable:!0}),De[Oe]}try{B({},"")}catch(De){B=function(Ue,Pe,Ce){return Ue[Pe]=Ce}}function X(De,Oe,Ue,Pe){var Ce=Oe&&Oe.prototype instanceof re?Oe:re,Ge=h(Ce.prototype),rt=new tt(Pe||[]);return Ge._invoke=function($e,et,Ze){var Ct="suspendedStart";return function(kt,Zt){if(Ct==="executing")throw new Error("Generator is already running");if(Ct==="completed"){if(kt==="throw")throw Zt;return mt()}for(Ze.method=kt,Ze.arg=Zt;;){var lt=Ze.delegate;if(lt){var xt=Ie(lt,Ze);if(xt){if(xt===D)continue;return xt}}if(Ze.method==="next")Ze.sent=Ze._sent=Ze.arg;else if(Ze.method==="throw"){if(Ct==="suspendedStart")throw Ct="completed",Ze.arg;Ze.dispatchException(Ze.arg)}else Ze.method==="return"&&Ze.abrupt("return",Ze.arg);Ct="executing";var Ft=H($e,et,Ze);if(Ft.type==="normal"){if(Ct=Ze.done?"completed":"suspendedYield",Ft.arg===D)continue;return{value:Ft.arg,done:Ze.done}}Ft.type==="throw"&&(Ct="completed",Ze.method="throw",Ze.arg=Ft.arg)}}}(De,Ue,rt),Ge}function H(De,Oe,Ue){try{return{type:"normal",arg:De.call(Oe,Ue)}}catch(Pe){return{type:"throw",arg:Pe}}}ne.wrap=X;var D={};function re(){}function J(){}function z(){}var fe={};B(fe,L,function(){return this});var pe=E,q=pe&&pe(pe(_e([])));q&&q!==$&&P.call(q,L)&&(fe=q);var Z=z.prototype=re.prototype=h(fe);function G(De){var Oe;F(Oe=["next","throw","return"]).call(Oe,function(Ue){B(De,Ue,function(Pe){return this._invoke(Ue,Pe)})})}function ve(De,Oe){function Ue(Ce,Ge,rt,$e){var et=H(De[Ce],De,Ge);if(et.type!=="throw"){var Ze=et.arg,Ct=Ze.value;return Ct&&p(Ct)=="object"&&P.call(Ct,"__await")?Oe.resolve(Ct.__await).then(function(kt){Ue("next",kt,rt,$e)},function(kt){Ue("throw",kt,rt,$e)}):Oe.resolve(Ct).then(function(kt){Ze.value=kt,rt(Ze)},function(kt){return Ue("throw",kt,rt,$e)})}$e(et.arg)}var Pe;this._invoke=function(Ce,Ge){function rt(){return new Oe(function($e,et){Ue(Ce,Ge,$e,et)})}return Pe=Pe?Pe.then(rt,rt):rt()}}function Ie(De,Oe){var Ue=De.iterator[Oe.method];if(Ue===void 0){if(Oe.delegate=null,Oe.method==="throw"){if(De.iterator.return&&(Oe.method="return",Oe.arg=void 0,Ie(De,Oe),Oe.method==="throw"))return D;Oe.method="throw",Oe.arg=new TypeError("The iterator does not provide a 'throw' method")}return D}var Pe=H(Ue,De.iterator,Oe.arg);if(Pe.type==="throw")return Oe.method="throw",Oe.arg=Pe.arg,Oe.delegate=null,D;var Ce=Pe.arg;return Ce?Ce.done?(Oe[De.resultName]=Ce.value,Oe.next=De.nextLoc,Oe.method!=="return"&&(Oe.method="next",Oe.arg=void 0),Oe.delegate=null,D):Ce:(Oe.method="throw",Oe.arg=new TypeError("iterator result is not an object"),Oe.delegate=null,D)}function Ne(De){var Oe={tryLoc:De[0]};1 in De&&(Oe.catchLoc=De[1]),2 in De&&(Oe.finallyLoc=De[2],Oe.afterLoc=De[3]),this.tryEntries.push(Oe)}function je(De){var Oe=De.completion||{};Oe.type="normal",delete Oe.arg,De.completion=Oe}function tt(De){this.tryEntries=[{tryLoc:"root"}],F(De).call(De,Ne,this),this.reset(!0)}function _e(De){if(De){var Oe=De[L];if(Oe)return Oe.call(De);if(typeof De.next=="function")return De;if(!isNaN(De.length)){var Ue=-1,Pe=function Ce(){for(;++Ue<De.length;)if(P.call(De,Ue))return Ce.value=De[Ue],Ce.done=!1,Ce;return Ce.value=void 0,Ce.done=!0,Ce};return Pe.next=Pe}}return{next:mt}}function mt(){return{value:void 0,done:!0}}return J.prototype=z,B(Z,"constructor",z),B(z,"constructor",J),J.displayName=B(z,k,"GeneratorFunction"),ne.isGeneratorFunction=function(De){var Oe=typeof De=="function"&&De.constructor;return!!Oe&&(Oe===J||(Oe.displayName||Oe.name)==="GeneratorFunction")},ne.mark=function(De){return U?U(De,z):(De.__proto__=z,B(De,k,"GeneratorFunction")),De.prototype=h(Z),De},ne.awrap=function(De){return{__await:De}},G(ve.prototype),B(ve.prototype,C,function(){return this}),ne.AsyncIterator=ve,ne.async=function(De,Oe,Ue,Pe,Ce){Ce===void 0&&(Ce=_);var Ge=new ve(X(De,Oe,Ue,Pe),Ce);return ne.isGeneratorFunction(Oe)?Ge:Ge.next().then(function(rt){return rt.done?rt.value:Ge.next()})},G(Z),B(Z,k,"Generator"),B(Z,L,function(){return this}),B(Z,"toString",function(){return"[object Generator]"}),ne.keys=function(De){var Oe=[];for(var Ue in De)Oe.push(Ue);return Q(Oe).call(Oe),function Pe(){for(;Oe.length;){var Ce=Oe.pop();if(Ce in De)return Pe.value=Ce,Pe.done=!1,Pe}return Pe.done=!0,Pe}},ne.values=_e,tt.prototype={constructor:tt,reset:function(Oe){var Ue;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,F(Ue=this.tryEntries).call(Ue,je),!Oe)for(var Pe in this)Pe.charAt(0)==="t"&&P.call(this,Pe)&&!isNaN(+le(Pe).call(Pe,1))&&(this[Pe]=void 0)},stop:function(){this.done=!0;var Oe=this.tryEntries[0].completion;if(Oe.type==="throw")throw Oe.arg;return this.rval},dispatchException:function(Oe){if(this.done)throw Oe;var Ue=this;function Pe(Ze,Ct){return rt.type="throw",rt.arg=Oe,Ue.next=Ze,Ct&&(Ue.method="next",Ue.arg=void 0),!!Ct}for(var Ce=this.tryEntries.length-1;Ce>=0;--Ce){var Ge=this.tryEntries[Ce],rt=Ge.completion;if(Ge.tryLoc==="root")return Pe("end");if(Ge.tryLoc<=this.prev){var $e=P.call(Ge,"catchLoc"),et=P.call(Ge,"finallyLoc");if($e&&et){if(this.prev<Ge.catchLoc)return Pe(Ge.catchLoc,!0);if(this.prev<Ge.finallyLoc)return Pe(Ge.finallyLoc)}else if($e){if(this.prev<Ge.catchLoc)return Pe(Ge.catchLoc,!0)}else{if(!et)throw new Error("try statement without catch or finally");if(this.prev<Ge.finallyLoc)return Pe(Ge.finallyLoc)}}}},abrupt:function(Oe,Ue){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var Ce=this.tryEntries[Pe];if(Ce.tryLoc<=this.prev&&P.call(Ce,"finallyLoc")&&this.prev<Ce.finallyLoc){var Ge=Ce;break}}Ge&&(Oe==="break"||Oe==="continue")&&Ge.tryLoc<=Ue&&Ue<=Ge.finallyLoc&&(Ge=null);var rt=Ge?Ge.completion:{};return rt.type=Oe,rt.arg=Ue,Ge?(this.method="next",this.next=Ge.finallyLoc,D):this.complete(rt)},complete:function(Oe,Ue){if(Oe.type==="throw")throw Oe.arg;return Oe.type==="break"||Oe.type==="continue"?this.next=Oe.arg:Oe.type==="return"?(this.rval=this.arg=Oe.arg,this.method="return",this.next="end"):Oe.type==="normal"&&Ue&&(this.next=Ue),D},finish:function(Oe){for(var Ue=this.tryEntries.length-1;Ue>=0;--Ue){var Pe=this.tryEntries[Ue];if(Pe.finallyLoc===Oe)return this.complete(Pe.completion,Pe.afterLoc),je(Pe),D}},catch:function(Oe){for(var Ue=this.tryEntries.length-1;Ue>=0;--Ue){var Pe=this.tryEntries[Ue];if(Pe.tryLoc===Oe){var Ce=Pe.completion;if(Ce.type==="throw"){var Ge=Ce.arg;je(Pe)}return Ge}}throw new Error("illegal catch attempt")},delegateYield:function(Oe,Ue,Pe){return this.delegate={iterator:_e(Oe),resultName:Ue,nextLoc:Pe},this.method==="next"&&(this.arg=void 0),D}},ne}v.exports=K,v.exports.__esModule=!0,v.exports.default=v.exports},94978:(v,T,s)=>{var p=s(57829),S=s(92876);function A(h){return v.exports=A=typeof p=="function"&&typeof S=="symbol"?function(E){return typeof E}:function(E){return E&&typeof p=="function"&&E.constructor===p&&E!==p.prototype?"symbol":typeof E},v.exports.__esModule=!0,v.exports.default=v.exports,A(h)}v.exports=A,v.exports.__esModule=!0,v.exports.default=v.exports},99732:(v,T,s)=>{var p=s(18730)();v.exports=p;try{regeneratorRuntime=p}catch(S){typeof globalThis=="object"?globalThis.regeneratorRuntime=p:Function("r","regeneratorRuntime = r")(p)}}}]);
|