@redocly/reference-docs 2.14.1 → 3.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/Endpoint/CopyLink.d.ts +1 -1
- package/lib/components/Endpoint/CopyLink.js +1 -1
- package/lib/components/Endpoint/Path.d.ts +2 -3
- package/lib/components/Endpoint/Path.js +1 -1
- package/lib/components/Endpoint/ServerItem.d.ts +1 -1
- package/lib/components/Endpoint/ServerItem.js +1 -1
- package/lib/components/Endpoint/ServerUrl.d.ts +1 -1
- package/lib/components/Endpoint/ServerUrl.js +1 -1
- package/lib/components/Endpoint/Summary.js +1 -1
- package/lib/components/NextSectionButton.d.ts +4 -2
- package/lib/components/NextSectionButton.js +1 -1
- package/lib/components/Overlay.js +1 -1
- package/lib/components/Panel/CallbackPanel.d.ts +1 -1
- package/lib/components/Panel/CallbackPanel.js +1 -1
- package/lib/components/Panel/CodeHeader.d.ts +1 -1
- package/lib/components/Panel/CodeHeader.js +1 -1
- package/lib/components/Panel/CodePanel.d.ts +1 -1
- package/lib/components/Panel/CodePanel.js +1 -1
- package/lib/components/Panel/ContentPanel.d.ts +1 -1
- package/lib/components/Panel/ContentPanel.js +1 -1
- package/lib/components/Panel/DarkHeader.d.ts +1 -1
- package/lib/components/Panel/DarkHeader.js +1 -1
- package/lib/components/Panel/Header.d.ts +1 -1
- package/lib/components/Panel/Header.js +1 -1
- package/lib/components/Panel/Panel.d.ts +1 -1
- package/lib/components/Panel/Panel.js +1 -1
- package/lib/components/Panel/PanelBody.d.ts +1 -1
- package/lib/components/Panel/PanelBody.js +1 -1
- package/lib/components/Panel/ResponsePanel.d.ts +1 -1
- package/lib/components/Panel/ResponsePanel.js +1 -1
- package/lib/components/Panel/ScrollableContentPanel.d.ts +1 -1
- package/lib/components/Panel/ScrollableContentPanel.js +1 -1
- package/lib/components/Panel/Title.d.ts +1 -1
- package/lib/components/Panel/Title.js +1 -1
- package/lib/components/Panel/Trigger.d.ts +1 -1
- package/lib/components/Panel/Trigger.js +1 -1
- package/lib/components/ProProviders.d.ts +2 -8
- package/lib/components/ProProviders.js +1 -1
- package/lib/components/RedoclyReferenceDocs.d.ts +1 -1
- package/lib/components/RedoclyReferenceDocs.js +1 -1
- package/lib/components/Samples/ExampleSwitch.d.ts +2 -1
- package/lib/components/Samples/ExampleSwitch.js +1 -1
- package/lib/components/Samples/LoadingWrapper.d.ts +1 -1
- package/lib/components/Samples/LoadingWrapper.js +1 -1
- package/lib/components/Search/MenuItemProSearch.d.ts +1 -1
- package/lib/components/Search/MenuItemProSearch.js +1 -1
- package/lib/components/Search/styled.d.ts +10 -10
- package/lib/components/Search/styled.js +1 -1
- package/lib/components/Tabs/CollapsingTabs/CollapsingTab.d.ts +1 -1
- package/lib/components/Tabs/CollapsingTabs/CollapsingTab.js +1 -1
- package/lib/components/Tabs/CollapsingTabs/CollapsingTabList.d.ts +1 -1
- package/lib/components/Tabs/CollapsingTabs/CollapsingTabList.js +1 -1
- package/lib/components/Tabs/Tab.d.ts +1 -1
- package/lib/components/Tabs/Tab.js +1 -1
- package/lib/components/Tabs/TabList.d.ts +1 -1
- package/lib/components/Tabs/TabList.js +1 -1
- package/lib/components/Tabs/TabPanel.d.ts +1 -1
- package/lib/components/Tabs/TabPanel.js +1 -1
- package/lib/components/Tabs/index.d.ts +0 -1
- package/lib/components/Tabs/index.js +1 -1
- package/lib/components/VersionSwitcher.js +1 -1
- package/lib/components/common/Checkbox.d.ts +1 -1
- package/lib/components/common/Checkbox.js +1 -1
- package/lib/components/common/CheckboxList.js +1 -1
- package/lib/components/common/Dropdown/Dropdown.js +1 -1
- package/lib/components/common/Dropdown/styled.d.ts +9 -8
- package/lib/components/common/Dropdown/styled.js +1 -1
- package/lib/components/common/LinearProgress.js +1 -1
- package/lib/components/common/TextField.d.ts +5 -2
- package/lib/components/common/TextField.js +1 -1
- package/lib/components/common/form.d.ts +12 -12
- package/lib/components/common/form.js +1 -1
- package/lib/components/console/ActionPanel.js +1 -1
- 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.js +1 -1
- package/lib/components/console/Console.js +1 -1
- package/lib/components/console/ConsoleLazy.js +1 -1
- package/lib/components/console/ConsoleTabs/ConsoleTabs.d.ts +7 -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 +2 -0
- package/lib/components/console/OAuth2Flow.js +1 -1
- package/lib/components/console/OAuth2TokenInput.js +1 -1
- package/lib/components/console/OpenIDConnect.js +1 -1
- package/lib/components/console/OperationParameters.js +1 -1
- package/lib/components/console/ParameterDropdown.js +1 -1
- package/lib/components/console/RequestBody.js +1 -1
- package/lib/components/console/RequestBodyForm.js +1 -1
- package/lib/components/console/RequestMimeLabel.d.ts +1 -1
- package/lib/components/console/RequestMimeLabel.js +1 -1
- package/lib/components/console/ResponseBody.js +1 -1
- package/lib/components/console/ResponsePanel.d.ts +2 -2
- package/lib/components/console/ResponsePanel.js +1 -1
- package/lib/components/console/ServerDropdown.js +1 -1
- package/lib/components/console/ServerVariable.js +1 -1
- package/lib/components/console/styled.d.ts +16 -0
- package/lib/components/console/styled.js +2 -0
- package/lib/components/console/utils.d.ts +3 -1
- package/lib/components/console/utils.js +1 -1
- package/lib/components/index.d.ts +0 -2
- package/lib/components/index.js +1 -1
- package/lib/components/pluggable/PullRight.d.ts +2 -4
- package/lib/components/pluggable/PullRight.js +1 -1
- package/lib/components/pluggable/RedocRequestBody.js +1 -1
- package/lib/components/pluggable/RedocResponse.js +1 -1
- package/lib/components/pluggable/styled.components.d.ts +3 -4
- package/lib/components/pluggable/styled.components.js +1 -1
- package/lib/components/shared/HttpVerb.d.ts +1 -1
- package/lib/components/shared/HttpVerb.js +1 -1
- package/lib/components/shared/MimeLabel.d.ts +1 -1
- package/lib/components/shared/MimeLabel.js +1 -1
- package/lib/components/shared/NoSampleLabel.d.ts +2 -2
- package/lib/components/shared/NoSampleLabel.js +1 -1
- package/lib/components/shared/SelectOnClick.js +1 -1
- package/lib/components/shared/index.d.ts +0 -3
- package/lib/components/shared/index.js +1 -1
- package/lib/components/styled.elements.d.ts +7 -9
- package/lib/components/styled.elements.js +1 -1
- 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/redoc-lib/src/common-elements/Download.js +1 -1
- package/lib/redoc-lib/src/common-elements/LinkToField.d.ts +1 -1
- package/lib/redoc-lib/src/common-elements/LinkToField.js +1 -1
- package/lib/redoc-lib/src/common-elements/fields-layout.d.ts +9 -9
- package/lib/redoc-lib/src/common-elements/fields-layout.js +1 -1
- package/lib/redoc-lib/src/common-elements/fields.d.ts +13 -13
- package/lib/redoc-lib/src/common-elements/fields.js +1 -1
- package/lib/redoc-lib/src/common-elements/headers.d.ts +5 -6
- package/lib/redoc-lib/src/common-elements/headers.js +1 -1
- package/lib/redoc-lib/src/common-elements/icons.d.ts +14 -12
- package/lib/redoc-lib/src/common-elements/icons.js +1 -1
- package/lib/redoc-lib/src/common-elements/index.d.ts +0 -2
- package/lib/redoc-lib/src/common-elements/index.js +1 -1
- package/lib/redoc-lib/src/common-elements/linkify.js +1 -1
- package/lib/redoc-lib/src/common-elements/mixins.js +1 -1
- package/lib/redoc-lib/src/common-elements/panels.d.ts +4 -5
- package/lib/redoc-lib/src/common-elements/panels.js +1 -1
- package/lib/redoc-lib/src/common-elements/perfect-scrollbar.js +1 -1
- package/lib/redoc-lib/src/common-elements/schema.d.ts +7 -7
- package/lib/redoc-lib/src/common-elements/schema.js +1 -1
- package/lib/redoc-lib/src/common-elements/shelfs.d.ts +2 -2
- package/lib/redoc-lib/src/common-elements/shelfs.js +1 -1
- package/lib/redoc-lib/src/components/ApiInfo/ApiInfo.js +1 -1
- package/lib/redoc-lib/src/components/ApiInfo/styled.elements.d.ts +5 -5
- package/lib/redoc-lib/src/components/ApiInfo/styled.elements.js +1 -1
- package/lib/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.d.ts +1 -1
- package/lib/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.js +1 -1
- package/lib/redoc-lib/src/components/CallbackSamples/CallbackSamples.d.ts +0 -1
- package/lib/redoc-lib/src/components/CallbackSamples/CallbackSamples.js +1 -1
- package/lib/redoc-lib/src/components/Callbacks/CallbackDetails.js +1 -1
- package/lib/redoc-lib/src/components/Callbacks/CallbackSummary.js +1 -1
- package/lib/redoc-lib/src/components/Callbacks/CallbackTitle.d.ts +1 -1
- package/lib/redoc-lib/src/components/Callbacks/CallbackTitle.js +1 -1
- package/lib/redoc-lib/src/components/ContentItems/ContentItems.d.ts +1 -1
- package/lib/redoc-lib/src/components/ContentItems/ContentItems.js +1 -1
- package/lib/redoc-lib/src/components/DownloadButton/DownloadButton.js +1 -1
- package/lib/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.js +1 -1
- package/lib/redoc-lib/src/components/ErrorBoundary.js +1 -1
- package/lib/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.js +1 -1
- package/lib/redoc-lib/src/components/Fields/EnumValues.js +1 -1
- package/lib/redoc-lib/src/components/Fields/Extensions.js +1 -1
- package/lib/redoc-lib/src/components/Fields/FieldContstraints.d.ts +1 -3
- package/lib/redoc-lib/src/components/Fields/FieldContstraints.js +1 -1
- package/lib/redoc-lib/src/components/Fields/FieldDetails.js +1 -1
- package/lib/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +1 -1
- package/lib/redoc-lib/src/components/Loading/Loading.d.ts +2 -4
- package/lib/redoc-lib/src/components/Loading/Loading.js +1 -1
- package/lib/redoc-lib/src/components/Loading/Spinner.svg.d.ts +4 -2
- package/lib/redoc-lib/src/components/Loading/Spinner.svg.js +1 -1
- package/lib/redoc-lib/src/components/Markdown/styled.elements.d.ts +6 -7
- package/lib/redoc-lib/src/components/Markdown/styled.elements.js +1 -1
- package/lib/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.js +1 -1
- package/lib/redoc-lib/src/components/Operation/Operation.js +1 -1
- package/lib/redoc-lib/src/components/Parameters/Parameters.js +1 -1
- package/lib/redoc-lib/src/components/Parameters/ParametersGroup.d.ts +1 -1
- package/lib/redoc-lib/src/components/Parameters/ParametersGroup.js +1 -1
- package/lib/redoc-lib/src/components/PayloadSamples/Example.js +1 -1
- package/lib/redoc-lib/src/components/PayloadSamples/ExampleValue.d.ts +1 -1
- package/lib/redoc-lib/src/components/PayloadSamples/ExampleValue.js +1 -1
- package/lib/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +1 -1
- package/lib/redoc-lib/src/components/PayloadSamples/styled.d.ts +3 -0
- package/lib/redoc-lib/src/components/PayloadSamples/styled.js +2 -0
- package/lib/redoc-lib/src/components/RequestSamples/CodeSample.js +1 -1
- package/lib/redoc-lib/src/components/Responses/ResponseDetails.js +1 -1
- package/lib/redoc-lib/src/components/Responses/ResponseHeaders.d.ts +1 -1
- package/lib/redoc-lib/src/components/Responses/ResponseHeaders.js +1 -1
- package/lib/redoc-lib/src/components/Responses/styled.elements.d.ts +1 -1
- package/lib/redoc-lib/src/components/Responses/styled.elements.js +1 -1
- package/lib/redoc-lib/src/components/Schema/ArraySchema.js +1 -1
- package/lib/redoc-lib/src/components/Schema/OneOfSchema.js +1 -1
- package/lib/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.js +1 -1
- package/lib/redoc-lib/src/components/SearchBox/SearchBox.js +1 -1
- package/lib/redoc-lib/src/components/SearchBox/styled.d.ts +6 -0
- package/lib/redoc-lib/src/components/SearchBox/styled.js +2 -0
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.js +1 -1
- package/lib/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.js +1 -1
- package/lib/redoc-lib/src/components/SideMenu/MenuItem.d.ts +2 -2
- package/lib/redoc-lib/src/components/SideMenu/MenuItem.js +1 -1
- package/lib/redoc-lib/src/components/SideMenu/styled.elements.d.ts +7 -7
- package/lib/redoc-lib/src/components/SideMenu/styled.elements.js +1 -1
- package/lib/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +3 -0
- package/lib/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.js +2 -0
- package/lib/redoc-lib/src/components/StickySidebar/ChevronSvg.js +1 -1
- package/lib/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.js +1 -1
- package/lib/redoc-lib/src/components/index.d.ts +2 -4
- package/lib/redoc-lib/src/components/index.js +1 -1
- package/lib/redoc-lib/src/index.d.ts +3 -4
- package/lib/redoc-lib/src/index.js +1 -1
- package/lib/redoc-lib/src/services/RedocNormalizedOptions.d.ts +13 -5
- package/lib/redoc-lib/src/services/RedocNormalizedOptions.js +1 -1
- package/lib/redoc-lib/src/services/index.d.ts +0 -1
- package/lib/redoc-lib/src/services/index.js +1 -1
- package/lib/redoc-lib/src/services/models/ApiInfo.d.ts +2 -1
- package/lib/redoc-lib/src/services/models/ApiInfo.js +1 -1
- package/lib/redoc-lib/src/theme.d.ts +0 -229
- package/lib/redoc-lib/src/theme.js +1 -1
- package/lib/redoc-lib/src/types/open-api.d.ts +7 -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/index.d.ts +3 -0
- package/lib/redoc-lib/src/utils/index.js +1 -1
- package/lib/redoc-lib/src/utils/media-css.d.ts +7 -0
- package/lib/redoc-lib/src/utils/media-css.js +1 -1
- package/lib/redoc-lib/src/utils/theme-helpers.d.ts +3 -0
- package/lib/redoc-lib/src/utils/theme-helpers.js +2 -0
- package/lib/services/ProStore.d.ts +10 -4
- package/lib/services/ProStore.js +1 -1
- package/lib/services/code-samples/httpsnippet/targets/index.d.ts +1 -1
- package/lib/services/code-samples/httpsnippet/targets/javascript/index.d.ts +1 -1
- package/lib/services/types.d.ts +0 -3
- package/lib-esm/components/Endpoint/CopyLink.d.ts +1 -1
- package/lib-esm/components/Endpoint/CopyLink.js +1 -1
- package/lib-esm/components/Endpoint/Path.d.ts +2 -3
- package/lib-esm/components/Endpoint/Path.js +1 -1
- package/lib-esm/components/Endpoint/ServerItem.d.ts +1 -1
- package/lib-esm/components/Endpoint/ServerItem.js +1 -1
- package/lib-esm/components/Endpoint/ServerUrl.d.ts +1 -1
- package/lib-esm/components/Endpoint/ServerUrl.js +1 -1
- package/lib-esm/components/Endpoint/Summary.js +1 -1
- package/lib-esm/components/NextSectionButton.d.ts +4 -2
- package/lib-esm/components/NextSectionButton.js +1 -1
- package/lib-esm/components/Overlay.js +1 -1
- package/lib-esm/components/Panel/CallbackPanel.d.ts +1 -1
- package/lib-esm/components/Panel/CallbackPanel.js +1 -1
- package/lib-esm/components/Panel/CodeHeader.d.ts +1 -1
- package/lib-esm/components/Panel/CodeHeader.js +1 -1
- package/lib-esm/components/Panel/CodePanel.d.ts +1 -1
- package/lib-esm/components/Panel/CodePanel.js +1 -1
- package/lib-esm/components/Panel/ContentPanel.d.ts +1 -1
- package/lib-esm/components/Panel/ContentPanel.js +1 -1
- package/lib-esm/components/Panel/DarkHeader.d.ts +1 -1
- package/lib-esm/components/Panel/DarkHeader.js +1 -1
- package/lib-esm/components/Panel/Header.d.ts +1 -1
- package/lib-esm/components/Panel/Header.js +1 -1
- package/lib-esm/components/Panel/Panel.d.ts +1 -1
- package/lib-esm/components/Panel/Panel.js +1 -1
- package/lib-esm/components/Panel/PanelBody.d.ts +1 -1
- package/lib-esm/components/Panel/PanelBody.js +1 -1
- package/lib-esm/components/Panel/ResponsePanel.d.ts +1 -1
- package/lib-esm/components/Panel/ResponsePanel.js +1 -1
- package/lib-esm/components/Panel/ScrollableContentPanel.d.ts +1 -1
- package/lib-esm/components/Panel/ScrollableContentPanel.js +1 -1
- package/lib-esm/components/Panel/Title.d.ts +1 -1
- package/lib-esm/components/Panel/Title.js +1 -1
- package/lib-esm/components/Panel/Trigger.d.ts +1 -1
- package/lib-esm/components/Panel/Trigger.js +1 -1
- package/lib-esm/components/ProProviders.d.ts +2 -8
- package/lib-esm/components/ProProviders.js +1 -1
- package/lib-esm/components/RedoclyReferenceDocs.d.ts +1 -1
- package/lib-esm/components/RedoclyReferenceDocs.js +1 -1
- package/lib-esm/components/Samples/ExampleSwitch.d.ts +2 -1
- package/lib-esm/components/Samples/ExampleSwitch.js +1 -1
- package/lib-esm/components/Samples/LoadingWrapper.d.ts +1 -1
- package/lib-esm/components/Samples/LoadingWrapper.js +1 -1
- package/lib-esm/components/Search/MenuItemProSearch.d.ts +1 -1
- package/lib-esm/components/Search/MenuItemProSearch.js +1 -1
- package/lib-esm/components/Search/styled.d.ts +10 -10
- package/lib-esm/components/Search/styled.js +1 -1
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTab.d.ts +1 -1
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTab.js +1 -1
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabList.d.ts +1 -1
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabList.js +1 -1
- package/lib-esm/components/Tabs/Tab.d.ts +1 -1
- package/lib-esm/components/Tabs/Tab.js +1 -1
- package/lib-esm/components/Tabs/TabList.d.ts +1 -1
- package/lib-esm/components/Tabs/TabList.js +1 -1
- package/lib-esm/components/Tabs/TabPanel.d.ts +1 -1
- package/lib-esm/components/Tabs/TabPanel.js +1 -1
- package/lib-esm/components/Tabs/index.d.ts +0 -1
- package/lib-esm/components/Tabs/index.js +1 -1
- package/lib-esm/components/VersionSwitcher.js +1 -1
- package/lib-esm/components/common/Checkbox.d.ts +1 -1
- package/lib-esm/components/common/Checkbox.js +1 -1
- package/lib-esm/components/common/CheckboxList.js +1 -1
- package/lib-esm/components/common/Dropdown/Dropdown.js +1 -1
- package/lib-esm/components/common/Dropdown/styled.d.ts +9 -8
- package/lib-esm/components/common/Dropdown/styled.js +1 -1
- package/lib-esm/components/common/LinearProgress.js +1 -1
- package/lib-esm/components/common/TextField.d.ts +5 -2
- package/lib-esm/components/common/TextField.js +1 -1
- package/lib-esm/components/common/form.d.ts +12 -12
- package/lib-esm/components/common/form.js +1 -1
- package/lib-esm/components/console/ActionPanel.js +1 -1
- 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.js +1 -1
- package/lib-esm/components/console/Console.js +1 -1
- package/lib-esm/components/console/ConsoleLazy.js +1 -1
- package/lib-esm/components/console/ConsoleTabs/ConsoleTabs.d.ts +7 -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 +2 -0
- package/lib-esm/components/console/OAuth2Flow.js +1 -1
- package/lib-esm/components/console/OAuth2TokenInput.js +1 -1
- package/lib-esm/components/console/OpenIDConnect.js +1 -1
- package/lib-esm/components/console/OperationParameters.js +1 -1
- package/lib-esm/components/console/ParameterDropdown.js +1 -1
- package/lib-esm/components/console/RequestBody.js +1 -1
- package/lib-esm/components/console/RequestBodyForm.js +1 -1
- package/lib-esm/components/console/RequestMimeLabel.d.ts +1 -1
- package/lib-esm/components/console/RequestMimeLabel.js +1 -1
- package/lib-esm/components/console/ResponseBody.js +1 -1
- package/lib-esm/components/console/ResponsePanel.d.ts +2 -2
- package/lib-esm/components/console/ResponsePanel.js +1 -1
- package/lib-esm/components/console/ServerDropdown.js +1 -1
- package/lib-esm/components/console/ServerVariable.js +1 -1
- package/lib-esm/components/console/styled.d.ts +16 -0
- package/lib-esm/components/console/styled.js +2 -0
- package/lib-esm/components/console/utils.d.ts +3 -1
- package/lib-esm/components/console/utils.js +1 -1
- package/lib-esm/components/index.d.ts +0 -2
- package/lib-esm/components/index.js +1 -1
- package/lib-esm/components/pluggable/PullRight.d.ts +2 -4
- package/lib-esm/components/pluggable/PullRight.js +1 -1
- package/lib-esm/components/pluggable/RedocRequestBody.js +1 -1
- package/lib-esm/components/pluggable/RedocResponse.js +1 -1
- package/lib-esm/components/pluggable/styled.components.d.ts +3 -4
- package/lib-esm/components/pluggable/styled.components.js +1 -1
- package/lib-esm/components/shared/HttpVerb.d.ts +1 -1
- package/lib-esm/components/shared/HttpVerb.js +1 -1
- package/lib-esm/components/shared/MimeLabel.d.ts +1 -1
- package/lib-esm/components/shared/MimeLabel.js +1 -1
- package/lib-esm/components/shared/NoSampleLabel.d.ts +2 -2
- package/lib-esm/components/shared/NoSampleLabel.js +1 -1
- package/lib-esm/components/shared/SelectOnClick.js +1 -1
- package/lib-esm/components/shared/index.d.ts +0 -3
- package/lib-esm/components/shared/index.js +1 -1
- package/lib-esm/components/styled.elements.d.ts +7 -9
- package/lib-esm/components/styled.elements.js +1 -1
- 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/redoc-lib/src/common-elements/Download.js +1 -1
- package/lib-esm/redoc-lib/src/common-elements/LinkToField.d.ts +1 -1
- package/lib-esm/redoc-lib/src/common-elements/LinkToField.js +1 -1
- package/lib-esm/redoc-lib/src/common-elements/fields-layout.d.ts +9 -9
- package/lib-esm/redoc-lib/src/common-elements/fields-layout.js +1 -1
- package/lib-esm/redoc-lib/src/common-elements/fields.d.ts +13 -13
- package/lib-esm/redoc-lib/src/common-elements/fields.js +1 -1
- package/lib-esm/redoc-lib/src/common-elements/headers.d.ts +5 -6
- package/lib-esm/redoc-lib/src/common-elements/headers.js +1 -1
- package/lib-esm/redoc-lib/src/common-elements/icons.d.ts +14 -12
- package/lib-esm/redoc-lib/src/common-elements/icons.js +1 -1
- package/lib-esm/redoc-lib/src/common-elements/index.d.ts +0 -2
- package/lib-esm/redoc-lib/src/common-elements/index.js +1 -1
- package/lib-esm/redoc-lib/src/common-elements/linkify.js +1 -1
- package/lib-esm/redoc-lib/src/common-elements/mixins.js +1 -1
- package/lib-esm/redoc-lib/src/common-elements/panels.d.ts +4 -5
- package/lib-esm/redoc-lib/src/common-elements/panels.js +1 -1
- package/lib-esm/redoc-lib/src/common-elements/perfect-scrollbar.js +1 -1
- package/lib-esm/redoc-lib/src/common-elements/schema.d.ts +7 -7
- package/lib-esm/redoc-lib/src/common-elements/schema.js +1 -1
- package/lib-esm/redoc-lib/src/common-elements/shelfs.d.ts +2 -2
- package/lib-esm/redoc-lib/src/common-elements/shelfs.js +1 -1
- package/lib-esm/redoc-lib/src/components/ApiInfo/ApiInfo.js +1 -1
- package/lib-esm/redoc-lib/src/components/ApiInfo/styled.elements.d.ts +5 -5
- package/lib-esm/redoc-lib/src/components/ApiInfo/styled.elements.js +1 -1
- package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.js +1 -1
- package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackSamples.d.ts +0 -1
- package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackSamples.js +1 -1
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackDetails.js +1 -1
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackSummary.js +1 -1
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackTitle.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackTitle.js +1 -1
- package/lib-esm/redoc-lib/src/components/ContentItems/ContentItems.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/ContentItems/ContentItems.js +1 -1
- package/lib-esm/redoc-lib/src/components/DownloadButton/DownloadButton.js +1 -1
- package/lib-esm/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.js +1 -1
- package/lib-esm/redoc-lib/src/components/ErrorBoundary.js +1 -1
- package/lib-esm/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.js +1 -1
- package/lib-esm/redoc-lib/src/components/Fields/EnumValues.js +1 -1
- package/lib-esm/redoc-lib/src/components/Fields/Extensions.js +1 -1
- package/lib-esm/redoc-lib/src/components/Fields/FieldContstraints.d.ts +1 -3
- package/lib-esm/redoc-lib/src/components/Fields/FieldContstraints.js +1 -1
- package/lib-esm/redoc-lib/src/components/Fields/FieldDetails.js +1 -1
- package/lib-esm/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +1 -1
- package/lib-esm/redoc-lib/src/components/Loading/Loading.d.ts +2 -4
- package/lib-esm/redoc-lib/src/components/Loading/Loading.js +1 -1
- package/lib-esm/redoc-lib/src/components/Loading/Spinner.svg.d.ts +4 -2
- package/lib-esm/redoc-lib/src/components/Loading/Spinner.svg.js +1 -1
- package/lib-esm/redoc-lib/src/components/Markdown/styled.elements.d.ts +6 -7
- package/lib-esm/redoc-lib/src/components/Markdown/styled.elements.js +1 -1
- package/lib-esm/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.js +1 -1
- package/lib-esm/redoc-lib/src/components/Operation/Operation.js +1 -1
- package/lib-esm/redoc-lib/src/components/Parameters/Parameters.js +1 -1
- package/lib-esm/redoc-lib/src/components/Parameters/ParametersGroup.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/Parameters/ParametersGroup.js +1 -1
- package/lib-esm/redoc-lib/src/components/PayloadSamples/Example.js +1 -1
- package/lib-esm/redoc-lib/src/components/PayloadSamples/ExampleValue.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/PayloadSamples/ExampleValue.js +1 -1
- package/lib-esm/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +1 -1
- package/lib-esm/redoc-lib/src/components/PayloadSamples/styled.d.ts +3 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/styled.js +2 -0
- package/lib-esm/redoc-lib/src/components/RequestSamples/CodeSample.js +1 -1
- package/lib-esm/redoc-lib/src/components/Responses/ResponseDetails.js +1 -1
- package/lib-esm/redoc-lib/src/components/Responses/ResponseHeaders.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/Responses/ResponseHeaders.js +1 -1
- package/lib-esm/redoc-lib/src/components/Responses/styled.elements.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/Responses/styled.elements.js +1 -1
- package/lib-esm/redoc-lib/src/components/Schema/ArraySchema.js +1 -1
- package/lib-esm/redoc-lib/src/components/Schema/OneOfSchema.js +1 -1
- package/lib-esm/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.js +1 -1
- package/lib-esm/redoc-lib/src/components/SearchBox/SearchBox.js +1 -1
- package/lib-esm/redoc-lib/src/components/SearchBox/styled.d.ts +6 -0
- package/lib-esm/redoc-lib/src/components/SearchBox/styled.js +2 -0
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.js +1 -1
- package/lib-esm/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.js +1 -1
- package/lib-esm/redoc-lib/src/components/SideMenu/MenuItem.d.ts +2 -2
- package/lib-esm/redoc-lib/src/components/SideMenu/MenuItem.js +1 -1
- package/lib-esm/redoc-lib/src/components/SideMenu/styled.elements.d.ts +7 -7
- package/lib-esm/redoc-lib/src/components/SideMenu/styled.elements.js +1 -1
- package/lib-esm/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +3 -0
- package/lib-esm/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.js +2 -0
- package/lib-esm/redoc-lib/src/components/StickySidebar/ChevronSvg.js +1 -1
- package/lib-esm/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.js +1 -1
- package/lib-esm/redoc-lib/src/components/index.d.ts +2 -4
- package/lib-esm/redoc-lib/src/components/index.js +1 -1
- package/lib-esm/redoc-lib/src/index.d.ts +3 -4
- package/lib-esm/redoc-lib/src/index.js +1 -1
- package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.d.ts +13 -5
- package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.js +1 -1
- package/lib-esm/redoc-lib/src/services/index.d.ts +0 -1
- package/lib-esm/redoc-lib/src/services/index.js +1 -1
- package/lib-esm/redoc-lib/src/services/models/ApiInfo.d.ts +2 -1
- package/lib-esm/redoc-lib/src/services/models/ApiInfo.js +1 -1
- package/lib-esm/redoc-lib/src/theme.d.ts +0 -229
- package/lib-esm/redoc-lib/src/theme.js +1 -1
- package/lib-esm/redoc-lib/src/types/open-api.d.ts +7 -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/index.d.ts +3 -0
- package/lib-esm/redoc-lib/src/utils/index.js +1 -1
- package/lib-esm/redoc-lib/src/utils/media-css.d.ts +7 -0
- package/lib-esm/redoc-lib/src/utils/media-css.js +1 -1
- package/lib-esm/redoc-lib/src/utils/theme-helpers.d.ts +3 -0
- package/lib-esm/redoc-lib/src/utils/theme-helpers.js +2 -0
- package/lib-esm/services/ProStore.d.ts +10 -4
- package/lib-esm/services/ProStore.js +1 -1
- package/lib-esm/services/code-samples/httpsnippet/targets/index.d.ts +1 -1
- package/lib-esm/services/code-samples/httpsnippet/targets/javascript/index.d.ts +1 -1
- package/lib-esm/services/types.d.ts +0 -3
- package/package.json +3 -2
- package/bin/cli/assets/redoc-fast-scroll.js +0 -23
- package/bin/cli/assets/template.hbs +0 -24
- package/bin/cli/commands/redocly-docs-cli.min.js +0 -2997
- package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +0 -367
- package/dist/console.redocly-reference-docs.min.js +0 -514
- package/dist/oauth2-redirect.html +0 -7
- package/dist/oauth2-redirect.js +0 -9
- package/dist/redocly-reference-docs.min.js +0 -3368
- package/lib/components/Tabs/SmallTab.d.ts +0 -4
- package/lib/components/Tabs/SmallTab.js +0 -2
- package/lib/components/console/AuthPanel.d.ts +0 -27
- package/lib/components/console/AuthPanel.js +0 -2
- package/lib/components/console/ConsoleBadges.d.ts +0 -9
- package/lib/components/console/ConsoleBadges.js +0 -2
- package/lib/components/console/styled.components.d.ts +0 -8
- package/lib/components/console/styled.components.js +0 -2
- package/lib/components/shared/Button.d.ts +0 -11
- package/lib/components/shared/Button.js +0 -2
- package/lib/components/shared/CopyButton.d.ts +0 -5
- package/lib/components/shared/CopyButton.js +0 -2
- package/lib/redoc-lib/src/common-elements/CopyButtonWrapper.d.ts +0 -16
- package/lib/redoc-lib/src/common-elements/CopyButtonWrapper.js +0 -2
- package/lib/redoc-lib/src/common-elements/PrismDiv.d.ts +0 -1
- package/lib/redoc-lib/src/common-elements/PrismDiv.js +0 -2
- package/lib/redoc-lib/src/common-elements/Tooltip.d.ts +0 -9
- package/lib/redoc-lib/src/common-elements/Tooltip.js +0 -2
- package/lib/redoc-lib/src/common-elements/samples.d.ts +0 -4
- package/lib/redoc-lib/src/common-elements/samples.js +0 -2
- package/lib/redoc-lib/src/components/ApiLogo/ApiLogo.d.ts +0 -7
- package/lib/redoc-lib/src/components/ApiLogo/ApiLogo.js +0 -2
- package/lib/redoc-lib/src/components/ApiLogo/styled.elements.d.ts +0 -7
- package/lib/redoc-lib/src/components/ApiLogo/styled.elements.js +0 -2
- package/lib/redoc-lib/src/components/JsonViewer/JsonViewer.d.ts +0 -21
- package/lib/redoc-lib/src/components/JsonViewer/JsonViewer.js +0 -2
- package/lib/redoc-lib/src/components/JsonViewer/index.d.ts +0 -1
- package/lib/redoc-lib/src/components/JsonViewer/index.js +0 -2
- package/lib/redoc-lib/src/components/JsonViewer/style.d.ts +0 -1
- package/lib/redoc-lib/src/components/JsonViewer/style.js +0 -2
- package/lib/redoc-lib/src/components/PayloadSamples/styled.elements.d.ts +0 -3
- package/lib/redoc-lib/src/components/PayloadSamples/styled.elements.js +0 -2
- package/lib/redoc-lib/src/components/SearchBox/styled.elements.d.ts +0 -12
- package/lib/redoc-lib/src/components/SearchBox/styled.elements.js +0 -2
- package/lib/redoc-lib/src/components/SourceCode/SourceCode.d.ts +0 -13
- package/lib/redoc-lib/src/components/SourceCode/SourceCode.js +0 -2
- package/lib/redoc-lib/src/services/ClipboardService.d.ts +0 -8
- package/lib/redoc-lib/src/services/ClipboardService.js +0 -2
- package/lib/redoc-lib/src/styled-components.d.ts +0 -9
- package/lib/redoc-lib/src/styled-components.js +0 -2
- package/lib/redoc-lib/src/utils/jsonToHtml.d.ts +0 -1
- package/lib/redoc-lib/src/utils/jsonToHtml.js +0 -2
- package/lib/services/extendTheme.d.ts +0 -65
- package/lib/services/extendTheme.js +0 -2
- package/lib-esm/components/Tabs/SmallTab.d.ts +0 -4
- package/lib-esm/components/Tabs/SmallTab.js +0 -2
- package/lib-esm/components/console/AuthPanel.d.ts +0 -27
- package/lib-esm/components/console/AuthPanel.js +0 -2
- package/lib-esm/components/console/ConsoleBadges.d.ts +0 -9
- package/lib-esm/components/console/ConsoleBadges.js +0 -2
- package/lib-esm/components/console/styled.components.d.ts +0 -8
- package/lib-esm/components/console/styled.components.js +0 -2
- package/lib-esm/components/shared/Button.d.ts +0 -11
- package/lib-esm/components/shared/Button.js +0 -2
- package/lib-esm/components/shared/CopyButton.d.ts +0 -5
- package/lib-esm/components/shared/CopyButton.js +0 -2
- package/lib-esm/redoc-lib/src/common-elements/CopyButtonWrapper.d.ts +0 -16
- package/lib-esm/redoc-lib/src/common-elements/CopyButtonWrapper.js +0 -2
- package/lib-esm/redoc-lib/src/common-elements/PrismDiv.d.ts +0 -1
- package/lib-esm/redoc-lib/src/common-elements/PrismDiv.js +0 -2
- package/lib-esm/redoc-lib/src/common-elements/Tooltip.d.ts +0 -9
- package/lib-esm/redoc-lib/src/common-elements/Tooltip.js +0 -2
- package/lib-esm/redoc-lib/src/common-elements/samples.d.ts +0 -4
- package/lib-esm/redoc-lib/src/common-elements/samples.js +0 -2
- package/lib-esm/redoc-lib/src/components/ApiLogo/ApiLogo.d.ts +0 -7
- package/lib-esm/redoc-lib/src/components/ApiLogo/ApiLogo.js +0 -2
- package/lib-esm/redoc-lib/src/components/ApiLogo/styled.elements.d.ts +0 -7
- package/lib-esm/redoc-lib/src/components/ApiLogo/styled.elements.js +0 -2
- package/lib-esm/redoc-lib/src/components/JsonViewer/JsonViewer.d.ts +0 -21
- package/lib-esm/redoc-lib/src/components/JsonViewer/JsonViewer.js +0 -2
- package/lib-esm/redoc-lib/src/components/JsonViewer/index.d.ts +0 -1
- package/lib-esm/redoc-lib/src/components/JsonViewer/index.js +0 -2
- package/lib-esm/redoc-lib/src/components/JsonViewer/style.d.ts +0 -1
- package/lib-esm/redoc-lib/src/components/JsonViewer/style.js +0 -2
- package/lib-esm/redoc-lib/src/components/PayloadSamples/styled.elements.d.ts +0 -3
- package/lib-esm/redoc-lib/src/components/PayloadSamples/styled.elements.js +0 -2
- package/lib-esm/redoc-lib/src/components/SearchBox/styled.elements.d.ts +0 -12
- package/lib-esm/redoc-lib/src/components/SearchBox/styled.elements.js +0 -2
- package/lib-esm/redoc-lib/src/components/SourceCode/SourceCode.d.ts +0 -13
- package/lib-esm/redoc-lib/src/components/SourceCode/SourceCode.js +0 -2
- package/lib-esm/redoc-lib/src/services/ClipboardService.d.ts +0 -8
- package/lib-esm/redoc-lib/src/services/ClipboardService.js +0 -2
- package/lib-esm/redoc-lib/src/styled-components.d.ts +0 -9
- package/lib-esm/redoc-lib/src/styled-components.js +0 -2
- package/lib-esm/redoc-lib/src/utils/jsonToHtml.d.ts +0 -1
- package/lib-esm/redoc-lib/src/utils/jsonToHtml.js +0 -2
- package/lib-esm/services/extendTheme.d.ts +0 -65
- package/lib-esm/services/extendTheme.js +0 -2
|
@@ -1,514 +0,0 @@
|
|
|
1
|
-
var gr=Math.pow;/*!
|
|
2
|
-
* Redocly Reference Docs
|
|
3
|
-
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
|
-
* -------------------------------------------------------------
|
|
5
|
-
* Version: "2.14.1"
|
|
6
|
-
*/(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[290],{66419:(h,I,o)=>{h.exports=o(27698)},77766:(h,I,o)=>{h.exports=o(8065)},72119:(h,I,o)=>{h.exports=o(57448)},20116:(h,I,o)=>{h.exports=o(11955)},94473:(h,I,o)=>{h.exports=o(61577)},78580:(h,I,o)=>{h.exports=o(33778)},2991:(h,I,o)=>{h.exports=o(61798)},3649:(h,I,o)=>{h.exports=o(82073)},92762:(h,I,o)=>{h.exports=o(2348)},59340:(h,I,o)=>{h.exports=o(8933)},51942:(h,I,o)=>{h.exports=o(63383)},26295:(h,I,o)=>{h.exports=o(86209)},86902:(h,I,o)=>{h.exports=o(23059)},93476:(h,I,o)=>{h.exports=o(27460)},52424:(h,I,o)=>{h.exports=o(72010)},53592:(h,I,o)=>{h.exports=o(27385)},78363:(h,I,o)=>{h.exports=o(81522)},19996:(h,I,o)=>{h.exports=o(32209)},30699:(h,I,o)=>{h.exports=o(44442)},28834:(h,I,o)=>{h.exports=o(57152)},95683:(h,I,o)=>{h.exports=o(69447)},95238:(h,I,o)=>{h.exports=o(81493)},189:(h,I,o)=>{h.exports=o(76094)},32752:(h,I,o)=>{h.exports=o(70573)},44341:(h,I,o)=>{h.exports=o(73685)},58377:(h,I,o)=>{h.exports=o(27533)},13038:(h,I,o)=>{h.exports=o(39057)},63263:(h,I,o)=>{h.exports=o(84710)},24889:(h,I,o)=>{h.exports=o(74303)},89356:(h,I,o)=>{h.exports=o(93799)},79542:(h,I,o)=>{h.exports=o(55122)},69798:(h,I,o)=>{h.exports=o(29531)},13535:(h,I,o)=>{h.exports=o(10856)},83863:(h,I,o)=>{h.exports=o(31524)},51446:(h,I,o)=>{h.exports=o(86600)},23882:(h,I,o)=>{h.exports=o(9759)},63109:(h,I,o)=>{h.exports=o(35666)},79742:(h,I)=>{"use strict";I.byteLength=g,I.toByteArray=N,I.fromByteArray=_;for(var o=[],c=[],v=typeof Uint8Array!="undefined"?Uint8Array:Array,x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,b=x.length;d<b;++d)o[d]=x[d],c[x.charCodeAt(d)]=d;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63;function A(H){var R=H.length;if(R%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var X=H.indexOf("=");X===-1&&(X=R);var M=X===R?0:4-X%4;return[X,M]}function g(H){var R=A(H),X=R[0],M=R[1];return(X+M)*3/4-M}function L(H,R,X){return(R+X)*3/4-X}function N(H){var R,X=A(H),M=X[0],C=X[1],V=new v(L(H,M,C)),J=0,q=C>0?M-4:M,Q;for(Q=0;Q<q;Q+=4)R=c[H.charCodeAt(Q)]<<18|c[H.charCodeAt(Q+1)]<<12|c[H.charCodeAt(Q+2)]<<6|c[H.charCodeAt(Q+3)],V[J++]=R>>16&255,V[J++]=R>>8&255,V[J++]=R&255;return C===2&&(R=c[H.charCodeAt(Q)]<<2|c[H.charCodeAt(Q+1)]>>4,V[J++]=R&255),C===1&&(R=c[H.charCodeAt(Q)]<<10|c[H.charCodeAt(Q+1)]<<4|c[H.charCodeAt(Q+2)]>>2,V[J++]=R>>8&255,V[J++]=R&255),V}function B(H){return o[H>>18&63]+o[H>>12&63]+o[H>>6&63]+o[H&63]}function j(H,R,X){for(var M,C=[],V=R;V<X;V+=3)M=(H[V]<<16&16711680)+(H[V+1]<<8&65280)+(H[V+2]&255),C.push(B(M));return C.join("")}function _(H){for(var R,X=H.length,M=X%3,C=[],V=16383,J=0,q=X-M;J<q;J+=V)C.push(j(H,J,J+V>q?q:J+V));return M===1?(R=H[X-1],C.push(o[R>>2]+o[R<<4&63]+"==")):M===2&&(R=(H[X-2]<<8)+H[X-1],C.push(o[R>>10]+o[R>>4&63]+o[R<<2&63]+"=")),C.join("")}},50706:(h,I,o)=>{var c=o(48764).Buffer;(function(){"use strict";function v(x){var d;return x instanceof c?d=x:d=c.from(x.toString(),"binary"),d.toString("base64")}h.exports=v})()},48764:(h,I,o)=>{"use strict";/*!
|
|
7
|
-
* The buffer module from node.js, for the browser.
|
|
8
|
-
*
|
|
9
|
-
* @author Feross Aboukhadijeh <http://feross.org>
|
|
10
|
-
* @license MIT
|
|
11
|
-
*/var c=o(79742),v=o(80645),x=o(5826);I.Buffer=g,I.SlowBuffer=C,I.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=o.g.TYPED_ARRAY_SUPPORT!==void 0?o.g.TYPED_ARRAY_SUPPORT:d(),I.kMaxLength=b();function d(){try{var pe=new Uint8Array(1);return pe.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},pe.foo()===42&&typeof pe.subarray=="function"&&pe.subarray(1,1).byteLength===0}catch(G){return!1}}function b(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function A(pe,G){if(b()<G)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(pe=new Uint8Array(G),pe.__proto__=g.prototype):(pe===null&&(pe=new g(G)),pe.length=G),pe}function g(pe,G,K){if(!g.TYPED_ARRAY_SUPPORT&&!(this instanceof g))return new g(pe,G,K);if(typeof pe=="number"){if(typeof G=="string")throw new Error("If encoding is specified then the first argument must be a string");return j(this,pe)}return L(this,pe,G,K)}g.poolSize=8192,g._augment=function(pe){return pe.__proto__=g.prototype,pe};function L(pe,G,K,we){if(typeof G=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&G instanceof ArrayBuffer?R(pe,G,K,we):typeof G=="string"?_(pe,G,K):X(pe,G)}g.from=function(pe,G,K){return L(null,pe,G,K)},g.TYPED_ARRAY_SUPPORT&&(g.prototype.__proto__=Uint8Array.prototype,g.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&g[Symbol.species]===g&&Object.defineProperty(g,Symbol.species,{value:null,configurable:!0}));function N(pe){if(typeof pe!="number")throw new TypeError('"size" argument must be a number');if(pe<0)throw new RangeError('"size" argument must not be negative')}function B(pe,G,K,we){return N(G),G<=0?A(pe,G):K!==void 0?typeof we=="string"?A(pe,G).fill(K,we):A(pe,G).fill(K):A(pe,G)}g.alloc=function(pe,G,K){return B(null,pe,G,K)};function j(pe,G){if(N(G),pe=A(pe,G<0?0:M(G)|0),!g.TYPED_ARRAY_SUPPORT)for(var K=0;K<G;++K)pe[K]=0;return pe}g.allocUnsafe=function(pe){return j(null,pe)},g.allocUnsafeSlow=function(pe){return j(null,pe)};function _(pe,G,K){if((typeof K!="string"||K==="")&&(K="utf8"),!g.isEncoding(K))throw new TypeError('"encoding" must be a valid string encoding');var we=V(G,K)|0;pe=A(pe,we);var Re=pe.write(G,K);return Re!==we&&(pe=pe.slice(0,Re)),pe}function H(pe,G){var K=G.length<0?0:M(G.length)|0;pe=A(pe,K);for(var we=0;we<K;we+=1)pe[we]=G[we]&255;return pe}function R(pe,G,K,we){if(G.byteLength,K<0||G.byteLength<K)throw new RangeError("'offset' is out of bounds");if(G.byteLength<K+(we||0))throw new RangeError("'length' is out of bounds");return K===void 0&&we===void 0?G=new Uint8Array(G):we===void 0?G=new Uint8Array(G,K):G=new Uint8Array(G,K,we),g.TYPED_ARRAY_SUPPORT?(pe=G,pe.__proto__=g.prototype):pe=H(pe,G),pe}function X(pe,G){if(g.isBuffer(G)){var K=M(G.length)|0;return pe=A(pe,K),pe.length===0||G.copy(pe,0,0,K),pe}if(G){if(typeof ArrayBuffer!="undefined"&&G.buffer instanceof ArrayBuffer||"length"in G)return typeof G.length!="number"||Lt(G.length)?A(pe,0):H(pe,G);if(G.type==="Buffer"&&x(G.data))return H(pe,G.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function M(pe){if(pe>=b())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b().toString(16)+" bytes");return pe|0}function C(pe){return+pe!=pe&&(pe=0),g.alloc(+pe)}g.isBuffer=function(G){return!!(G!=null&&G._isBuffer)},g.compare=function(G,K){if(!g.isBuffer(G)||!g.isBuffer(K))throw new TypeError("Arguments must be Buffers");if(G===K)return 0;for(var we=G.length,Re=K.length,be=0,Ae=Math.min(we,Re);be<Ae;++be)if(G[be]!==K[be]){we=G[be],Re=K[be];break}return we<Re?-1:Re<we?1:0},g.isEncoding=function(G){switch(String(G).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(G,K){if(!x(G))throw new TypeError('"list" argument must be an Array of Buffers');if(G.length===0)return g.alloc(0);var we;if(K===void 0)for(K=0,we=0;we<G.length;++we)K+=G[we].length;var Re=g.allocUnsafe(K),be=0;for(we=0;we<G.length;++we){var Ae=G[we];if(!g.isBuffer(Ae))throw new TypeError('"list" argument must be an Array of Buffers');Ae.copy(Re,be),be+=Ae.length}return Re};function V(pe,G){if(g.isBuffer(pe))return pe.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(pe)||pe instanceof ArrayBuffer))return pe.byteLength;typeof pe!="string"&&(pe=""+pe);var K=pe.length;if(K===0)return 0;for(var we=!1;;)switch(G){case"ascii":case"latin1":case"binary":return K;case"utf8":case"utf-8":case void 0:return At(pe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K*2;case"hex":return K>>>1;case"base64":return $t(pe).length;default:if(we)return At(pe).length;G=(""+G).toLowerCase(),we=!0}}g.byteLength=V;function J(pe,G,K){var we=!1;if((G===void 0||G<0)&&(G=0),G>this.length||((K===void 0||K>this.length)&&(K=this.length),K<=0)||(K>>>=0,G>>>=0,K<=G))return"";for(pe||(pe="utf8");;)switch(pe){case"hex":return rt(this,G,K);case"utf8":case"utf-8":return ae(this,G,K);case"ascii":return Le(this,G,K);case"latin1":case"binary":return ke(this,G,K);case"base64":return le(this,G,K);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,G,K);default:if(we)throw new TypeError("Unknown encoding: "+pe);pe=(pe+"").toLowerCase(),we=!0}}g.prototype._isBuffer=!0;function q(pe,G,K){var we=pe[G];pe[G]=pe[K],pe[K]=we}g.prototype.swap16=function(){var G=this.length;if(G%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var K=0;K<G;K+=2)q(this,K,K+1);return this},g.prototype.swap32=function(){var G=this.length;if(G%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var K=0;K<G;K+=4)q(this,K,K+3),q(this,K+1,K+2);return this},g.prototype.swap64=function(){var G=this.length;if(G%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var K=0;K<G;K+=8)q(this,K,K+7),q(this,K+1,K+6),q(this,K+2,K+5),q(this,K+3,K+4);return this},g.prototype.toString=function(){var G=this.length|0;return G===0?"":arguments.length===0?ae(this,0,G):J.apply(this,arguments)},g.prototype.equals=function(G){if(!g.isBuffer(G))throw new TypeError("Argument must be a Buffer");return this===G?!0:g.compare(this,G)===0},g.prototype.inspect=function(){var G="",K=I.INSPECT_MAX_BYTES;return this.length>0&&(G=this.toString("hex",0,K).match(/.{2}/g).join(" "),this.length>K&&(G+=" ... ")),"<Buffer "+G+">"},g.prototype.compare=function(G,K,we,Re,be){if(!g.isBuffer(G))throw new TypeError("Argument must be a Buffer");if(K===void 0&&(K=0),we===void 0&&(we=G?G.length:0),Re===void 0&&(Re=0),be===void 0&&(be=this.length),K<0||we>G.length||Re<0||be>this.length)throw new RangeError("out of range index");if(Re>=be&&K>=we)return 0;if(Re>=be)return-1;if(K>=we)return 1;if(K>>>=0,we>>>=0,Re>>>=0,be>>>=0,this===G)return 0;for(var Ae=be-Re,T=we-K,Ie=Math.min(Ae,T),W=this.slice(Re,be),O=G.slice(K,we),P=0;P<Ie;++P)if(W[P]!==O[P]){Ae=W[P],T=O[P];break}return Ae<T?-1:T<Ae?1:0};function Q(pe,G,K,we,Re){if(pe.length===0)return-1;if(typeof K=="string"?(we=K,K=0):K>2147483647?K=2147483647:K<-2147483648&&(K=-2147483648),K=+K,isNaN(K)&&(K=Re?0:pe.length-1),K<0&&(K=pe.length+K),K>=pe.length){if(Re)return-1;K=pe.length-1}else if(K<0)if(Re)K=0;else return-1;if(typeof G=="string"&&(G=g.from(G,we)),g.isBuffer(G))return G.length===0?-1:Y(pe,G,K,we,Re);if(typeof G=="number")return G=G&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Re?Uint8Array.prototype.indexOf.call(pe,G,K):Uint8Array.prototype.lastIndexOf.call(pe,G,K):Y(pe,[G],K,we,Re);throw new TypeError("val must be string, number or Buffer")}function Y(pe,G,K,we,Re){var be=1,Ae=pe.length,T=G.length;if(we!==void 0&&(we=String(we).toLowerCase(),we==="ucs2"||we==="ucs-2"||we==="utf16le"||we==="utf-16le")){if(pe.length<2||G.length<2)return-1;be=2,Ae/=2,T/=2,K/=2}function Ie(D,ee){return be===1?D[ee]:D.readUInt16BE(ee*be)}var W;if(Re){var O=-1;for(W=K;W<Ae;W++)if(Ie(pe,W)===Ie(G,O===-1?0:W-O)){if(O===-1&&(O=W),W-O+1===T)return O*be}else O!==-1&&(W-=W-O),O=-1}else for(K+T>Ae&&(K=Ae-T),W=K;W>=0;W--){for(var P=!0,ie=0;ie<T;ie++)if(Ie(pe,W+ie)!==Ie(G,ie)){P=!1;break}if(P)return W}return-1}g.prototype.includes=function(G,K,we){return this.indexOf(G,K,we)!==-1},g.prototype.indexOf=function(G,K,we){return Q(this,G,K,we,!0)},g.prototype.lastIndexOf=function(G,K,we){return Q(this,G,K,we,!1)};function ue(pe,G,K,we){K=Number(K)||0;var Re=pe.length-K;we?(we=Number(we),we>Re&&(we=Re)):we=Re;var be=G.length;if(be%2!=0)throw new TypeError("Invalid hex string");we>be/2&&(we=be/2);for(var Ae=0;Ae<we;++Ae){var T=parseInt(G.substr(Ae*2,2),16);if(isNaN(T))return Ae;pe[K+Ae]=T}return Ae}function te(pe,G,K,we){return St(At(G,pe.length-K),pe,K,we)}function ne(pe,G,K,we){return St(jt(G),pe,K,we)}function ye(pe,G,K,we){return ne(pe,G,K,we)}function ge(pe,G,K,we){return St($t(G),pe,K,we)}function de(pe,G,K,we){return St(Nt(G,pe.length-K),pe,K,we)}g.prototype.write=function(G,K,we,Re){if(K===void 0)Re="utf8",we=this.length,K=0;else if(we===void 0&&typeof K=="string")Re=K,we=this.length,K=0;else if(isFinite(K))K=K|0,isFinite(we)?(we=we|0,Re===void 0&&(Re="utf8")):(Re=we,we=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var be=this.length-K;if((we===void 0||we>be)&&(we=be),G.length>0&&(we<0||K<0)||K>this.length)throw new RangeError("Attempt to write outside buffer bounds");Re||(Re="utf8");for(var Ae=!1;;)switch(Re){case"hex":return ue(this,G,K,we);case"utf8":case"utf-8":return te(this,G,K,we);case"ascii":return ne(this,G,K,we);case"latin1":case"binary":return ye(this,G,K,we);case"base64":return ge(this,G,K,we);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,G,K,we);default:if(Ae)throw new TypeError("Unknown encoding: "+Re);Re=(""+Re).toLowerCase(),Ae=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function le(pe,G,K){return G===0&&K===pe.length?c.fromByteArray(pe):c.fromByteArray(pe.slice(G,K))}function ae(pe,G,K){K=Math.min(pe.length,K);for(var we=[],Re=G;Re<K;){var be=pe[Re],Ae=null,T=be>239?4:be>223?3:be>191?2:1;if(Re+T<=K){var Ie,W,O,P;switch(T){case 1:be<128&&(Ae=be);break;case 2:Ie=pe[Re+1],(Ie&192)==128&&(P=(be&31)<<6|Ie&63,P>127&&(Ae=P));break;case 3:Ie=pe[Re+1],W=pe[Re+2],(Ie&192)==128&&(W&192)==128&&(P=(be&15)<<12|(Ie&63)<<6|W&63,P>2047&&(P<55296||P>57343)&&(Ae=P));break;case 4:Ie=pe[Re+1],W=pe[Re+2],O=pe[Re+3],(Ie&192)==128&&(W&192)==128&&(O&192)==128&&(P=(be&15)<<18|(Ie&63)<<12|(W&63)<<6|O&63,P>65535&&P<1114112&&(Ae=P))}}Ae===null?(Ae=65533,T=1):Ae>65535&&(Ae-=65536,we.push(Ae>>>10&1023|55296),Ae=56320|Ae&1023),we.push(Ae),Re+=T}return Ve(we)}var De=4096;function Ve(pe){var G=pe.length;if(G<=De)return String.fromCharCode.apply(String,pe);for(var K="",we=0;we<G;)K+=String.fromCharCode.apply(String,pe.slice(we,we+=De));return K}function Le(pe,G,K){var we="";K=Math.min(pe.length,K);for(var Re=G;Re<K;++Re)we+=String.fromCharCode(pe[Re]&127);return we}function ke(pe,G,K){var we="";K=Math.min(pe.length,K);for(var Re=G;Re<K;++Re)we+=String.fromCharCode(pe[Re]);return we}function rt(pe,G,K){var we=pe.length;(!G||G<0)&&(G=0),(!K||K<0||K>we)&&(K=we);for(var Re="",be=G;be<K;++be)Re+=It(pe[be]);return Re}function Qe(pe,G,K){for(var we=pe.slice(G,K),Re="",be=0;be<we.length;be+=2)Re+=String.fromCharCode(we[be]+we[be+1]*256);return Re}g.prototype.slice=function(G,K){var we=this.length;G=~~G,K=K===void 0?we:~~K,G<0?(G+=we,G<0&&(G=0)):G>we&&(G=we),K<0?(K+=we,K<0&&(K=0)):K>we&&(K=we),K<G&&(K=G);var Re;if(g.TYPED_ARRAY_SUPPORT)Re=this.subarray(G,K),Re.__proto__=g.prototype;else{var be=K-G;Re=new g(be,void 0);for(var Ae=0;Ae<be;++Ae)Re[Ae]=this[Ae+G]}return Re};function Je(pe,G,K){if(pe%1!=0||pe<0)throw new RangeError("offset is not uint");if(pe+G>K)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function(G,K,we){G=G|0,K=K|0,we||Je(G,K,this.length);for(var Re=this[G],be=1,Ae=0;++Ae<K&&(be*=256);)Re+=this[G+Ae]*be;return Re},g.prototype.readUIntBE=function(G,K,we){G=G|0,K=K|0,we||Je(G,K,this.length);for(var Re=this[G+--K],be=1;K>0&&(be*=256);)Re+=this[G+--K]*be;return Re},g.prototype.readUInt8=function(G,K){return K||Je(G,1,this.length),this[G]},g.prototype.readUInt16LE=function(G,K){return K||Je(G,2,this.length),this[G]|this[G+1]<<8},g.prototype.readUInt16BE=function(G,K){return K||Je(G,2,this.length),this[G]<<8|this[G+1]},g.prototype.readUInt32LE=function(G,K){return K||Je(G,4,this.length),(this[G]|this[G+1]<<8|this[G+2]<<16)+this[G+3]*16777216},g.prototype.readUInt32BE=function(G,K){return K||Je(G,4,this.length),this[G]*16777216+(this[G+1]<<16|this[G+2]<<8|this[G+3])},g.prototype.readIntLE=function(G,K,we){G=G|0,K=K|0,we||Je(G,K,this.length);for(var Re=this[G],be=1,Ae=0;++Ae<K&&(be*=256);)Re+=this[G+Ae]*be;return be*=128,Re>=be&&(Re-=Math.pow(2,8*K)),Re},g.prototype.readIntBE=function(G,K,we){G=G|0,K=K|0,we||Je(G,K,this.length);for(var Re=K,be=1,Ae=this[G+--Re];Re>0&&(be*=256);)Ae+=this[G+--Re]*be;return be*=128,Ae>=be&&(Ae-=Math.pow(2,8*K)),Ae},g.prototype.readInt8=function(G,K){return K||Je(G,1,this.length),this[G]&128?(255-this[G]+1)*-1:this[G]},g.prototype.readInt16LE=function(G,K){K||Je(G,2,this.length);var we=this[G]|this[G+1]<<8;return we&32768?we|4294901760:we},g.prototype.readInt16BE=function(G,K){K||Je(G,2,this.length);var we=this[G+1]|this[G]<<8;return we&32768?we|4294901760:we},g.prototype.readInt32LE=function(G,K){return K||Je(G,4,this.length),this[G]|this[G+1]<<8|this[G+2]<<16|this[G+3]<<24},g.prototype.readInt32BE=function(G,K){return K||Je(G,4,this.length),this[G]<<24|this[G+1]<<16|this[G+2]<<8|this[G+3]},g.prototype.readFloatLE=function(G,K){return K||Je(G,4,this.length),v.read(this,G,!0,23,4)},g.prototype.readFloatBE=function(G,K){return K||Je(G,4,this.length),v.read(this,G,!1,23,4)},g.prototype.readDoubleLE=function(G,K){return K||Je(G,8,this.length),v.read(this,G,!0,52,8)},g.prototype.readDoubleBE=function(G,K){return K||Je(G,8,this.length),v.read(this,G,!1,52,8)};function ut(pe,G,K,we,Re,be){if(!g.isBuffer(pe))throw new TypeError('"buffer" argument must be a Buffer instance');if(G>Re||G<be)throw new RangeError('"value" argument is out of bounds');if(K+we>pe.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(G,K,we,Re){if(G=+G,K=K|0,we=we|0,!Re){var be=Math.pow(2,8*we)-1;ut(this,G,K,we,be,0)}var Ae=1,T=0;for(this[K]=G&255;++T<we&&(Ae*=256);)this[K+T]=G/Ae&255;return K+we},g.prototype.writeUIntBE=function(G,K,we,Re){if(G=+G,K=K|0,we=we|0,!Re){var be=Math.pow(2,8*we)-1;ut(this,G,K,we,be,0)}var Ae=we-1,T=1;for(this[K+Ae]=G&255;--Ae>=0&&(T*=256);)this[K+Ae]=G/T&255;return K+we},g.prototype.writeUInt8=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,1,255,0),g.TYPED_ARRAY_SUPPORT||(G=Math.floor(G)),this[K]=G&255,K+1};function pt(pe,G,K,we){G<0&&(G=65535+G+1);for(var Re=0,be=Math.min(pe.length-K,2);Re<be;++Re)pe[K+Re]=(G&255<<8*(we?Re:1-Re))>>>(we?Re:1-Re)*8}g.prototype.writeUInt16LE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[K]=G&255,this[K+1]=G>>>8):pt(this,G,K,!0),K+2},g.prototype.writeUInt16BE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[K]=G>>>8,this[K+1]=G&255):pt(this,G,K,!1),K+2};function mt(pe,G,K,we){G<0&&(G=4294967295+G+1);for(var Re=0,be=Math.min(pe.length-K,4);Re<be;++Re)pe[K+Re]=G>>>(we?Re:3-Re)*8&255}g.prototype.writeUInt32LE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[K+3]=G>>>24,this[K+2]=G>>>16,this[K+1]=G>>>8,this[K]=G&255):mt(this,G,K,!0),K+4},g.prototype.writeUInt32BE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[K]=G>>>24,this[K+1]=G>>>16,this[K+2]=G>>>8,this[K+3]=G&255):mt(this,G,K,!1),K+4},g.prototype.writeIntLE=function(G,K,we,Re){if(G=+G,K=K|0,!Re){var be=Math.pow(2,8*we-1);ut(this,G,K,we,be-1,-be)}var Ae=0,T=1,Ie=0;for(this[K]=G&255;++Ae<we&&(T*=256);)G<0&&Ie===0&&this[K+Ae-1]!==0&&(Ie=1),this[K+Ae]=(G/T>>0)-Ie&255;return K+we},g.prototype.writeIntBE=function(G,K,we,Re){if(G=+G,K=K|0,!Re){var be=Math.pow(2,8*we-1);ut(this,G,K,we,be-1,-be)}var Ae=we-1,T=1,Ie=0;for(this[K+Ae]=G&255;--Ae>=0&&(T*=256);)G<0&&Ie===0&&this[K+Ae+1]!==0&&(Ie=1),this[K+Ae]=(G/T>>0)-Ie&255;return K+we},g.prototype.writeInt8=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,1,127,-128),g.TYPED_ARRAY_SUPPORT||(G=Math.floor(G)),G<0&&(G=255+G+1),this[K]=G&255,K+1},g.prototype.writeInt16LE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[K]=G&255,this[K+1]=G>>>8):pt(this,G,K,!0),K+2},g.prototype.writeInt16BE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[K]=G>>>8,this[K+1]=G&255):pt(this,G,K,!1),K+2},g.prototype.writeInt32LE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[K]=G&255,this[K+1]=G>>>8,this[K+2]=G>>>16,this[K+3]=G>>>24):mt(this,G,K,!0),K+4},g.prototype.writeInt32BE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,4,2147483647,-2147483648),G<0&&(G=4294967295+G+1),g.TYPED_ARRAY_SUPPORT?(this[K]=G>>>24,this[K+1]=G>>>16,this[K+2]=G>>>8,this[K+3]=G&255):mt(this,G,K,!1),K+4};function qe(pe,G,K,we,Re,be){if(K+we>pe.length)throw new RangeError("Index out of range");if(K<0)throw new RangeError("Index out of range")}function lt(pe,G,K,we,Re){return Re||qe(pe,G,K,4,34028234663852886e22,-34028234663852886e22),v.write(pe,G,K,we,23,4),K+4}g.prototype.writeFloatLE=function(G,K,we){return lt(this,G,K,!0,we)},g.prototype.writeFloatBE=function(G,K,we){return lt(this,G,K,!1,we)};function gt(pe,G,K,we,Re){return Re||qe(pe,G,K,8,17976931348623157e292,-17976931348623157e292),v.write(pe,G,K,we,52,8),K+8}g.prototype.writeDoubleLE=function(G,K,we){return gt(this,G,K,!0,we)},g.prototype.writeDoubleBE=function(G,K,we){return gt(this,G,K,!1,we)},g.prototype.copy=function(G,K,we,Re){if(we||(we=0),!Re&&Re!==0&&(Re=this.length),K>=G.length&&(K=G.length),K||(K=0),Re>0&&Re<we&&(Re=we),Re===we||G.length===0||this.length===0)return 0;if(K<0)throw new RangeError("targetStart out of bounds");if(we<0||we>=this.length)throw new RangeError("sourceStart out of bounds");if(Re<0)throw new RangeError("sourceEnd out of bounds");Re>this.length&&(Re=this.length),G.length-K<Re-we&&(Re=G.length-K+we);var be=Re-we,Ae;if(this===G&&we<K&&K<Re)for(Ae=be-1;Ae>=0;--Ae)G[Ae+K]=this[Ae+we];else if(be<1e3||!g.TYPED_ARRAY_SUPPORT)for(Ae=0;Ae<be;++Ae)G[Ae+K]=this[Ae+we];else Uint8Array.prototype.set.call(G,this.subarray(we,we+be),K);return be},g.prototype.fill=function(G,K,we,Re){if(typeof G=="string"){if(typeof K=="string"?(Re=K,K=0,we=this.length):typeof we=="string"&&(Re=we,we=this.length),G.length===1){var be=G.charCodeAt(0);be<256&&(G=be)}if(Re!==void 0&&typeof Re!="string")throw new TypeError("encoding must be a string");if(typeof Re=="string"&&!g.isEncoding(Re))throw new TypeError("Unknown encoding: "+Re)}else typeof G=="number"&&(G=G&255);if(K<0||this.length<K||this.length<we)throw new RangeError("Out of range index");if(we<=K)return this;K=K>>>0,we=we===void 0?this.length:we>>>0,G||(G=0);var Ae;if(typeof G=="number")for(Ae=K;Ae<we;++Ae)this[Ae]=G;else{var T=g.isBuffer(G)?G:At(new g(G,Re).toString()),Ie=T.length;for(Ae=0;Ae<we-K;++Ae)this[Ae+K]=T[Ae%Ie]}return this};var xt=/[^+\/0-9A-Za-z-_]/g;function dt(pe){if(pe=kt(pe).replace(xt,""),pe.length<2)return"";for(;pe.length%4!=0;)pe=pe+"=";return pe}function kt(pe){return pe.trim?pe.trim():pe.replace(/^\s+|\s+$/g,"")}function It(pe){return pe<16?"0"+pe.toString(16):pe.toString(16)}function At(pe,G){G=G||1/0;for(var K,we=pe.length,Re=null,be=[],Ae=0;Ae<we;++Ae){if(K=pe.charCodeAt(Ae),K>55295&&K<57344){if(!Re){if(K>56319){(G-=3)>-1&&be.push(239,191,189);continue}else if(Ae+1===we){(G-=3)>-1&&be.push(239,191,189);continue}Re=K;continue}if(K<56320){(G-=3)>-1&&be.push(239,191,189),Re=K;continue}K=(Re-55296<<10|K-56320)+65536}else Re&&(G-=3)>-1&&be.push(239,191,189);if(Re=null,K<128){if((G-=1)<0)break;be.push(K)}else if(K<2048){if((G-=2)<0)break;be.push(K>>6|192,K&63|128)}else if(K<65536){if((G-=3)<0)break;be.push(K>>12|224,K>>6&63|128,K&63|128)}else if(K<1114112){if((G-=4)<0)break;be.push(K>>18|240,K>>12&63|128,K>>6&63|128,K&63|128)}else throw new Error("Invalid code point")}return be}function jt(pe){for(var G=[],K=0;K<pe.length;++K)G.push(pe.charCodeAt(K)&255);return G}function Nt(pe,G){for(var K,we,Re,be=[],Ae=0;Ae<pe.length&&!((G-=2)<0);++Ae)K=pe.charCodeAt(Ae),we=K>>8,Re=K%256,be.push(Re),be.push(we);return be}function $t(pe){return c.toByteArray(dt(pe))}function St(pe,G,K,we){for(var Re=0;Re<we&&!(Re+K>=G.length||Re>=pe.length);++Re)G[Re+K]=pe[Re];return Re}function Lt(pe){return pe!==pe}},21924:(h,I,o)=>{"use strict";var c=o(40210),v=o(55559),x=v(c("String.prototype.indexOf"));h.exports=function(b,A){var g=c(b,!!A);return typeof g=="function"&&x(b,".prototype.")>-1?v(g):g}},55559:(h,I,o)=>{"use strict";var c=o(58612),v=o(40210),x=v("%Function.prototype.apply%"),d=v("%Function.prototype.call%"),b=v("%Reflect.apply%",!0)||c.call(d,x),A=v("%Object.getOwnPropertyDescriptor%",!0),g=v("%Object.defineProperty%",!0),L=v("%Math.max%");if(g)try{g({},"a",{value:1})}catch(B){g=null}h.exports=function(j){var _=b(c,d,arguments);if(A&&g){var H=A(_,"length");H.configurable&&g(_,"length",{value:1+L(0,j.length-(arguments.length-1))})}return _};var N=function(){return b(c,x,arguments)};g?g(h.exports,"apply",{value:N}):h.exports.apply=N},82801:(h,I,o)=>{(function(c){c(o(4631))})(function(c){var v={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},x=c.Pos;c.defineOption("autoCloseBrackets",!1,function(M,C,V){V&&V!=c.Init&&(M.removeKeyMap(b),M.state.closeBrackets=null),C&&(A(d(C,"pairs")),M.state.closeBrackets=C,M.addKeyMap(b))});function d(M,C){return C=="pairs"&&typeof M=="string"?M:typeof M=="object"&&M[C]!=null?M[C]:v[C]}var b={Backspace:N,Enter:B};function A(M){for(var C=0;C<M.length;C++){var V=M.charAt(C),J="'"+V+"'";b[J]||(b[J]=g(V))}}A(v.pairs+"`");function g(M){return function(C){return H(C,M)}}function L(M){var C=M.state.closeBrackets;if(!C||C.override)return C;var V=M.getModeAt(M.getCursor());return V.closeBrackets||C}function N(M){var C=L(M);if(!C||M.getOption("disableInput"))return c.Pass;for(var V=d(C,"pairs"),J=M.listSelections(),q=0;q<J.length;q++){if(!J[q].empty())return c.Pass;var Q=R(M,J[q].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}for(var q=J.length-1;q>=0;q--){var Y=J[q].head;M.replaceRange("",x(Y.line,Y.ch-1),x(Y.line,Y.ch+1),"+delete")}}function B(M){var C=L(M),V=C&&d(C,"explode");if(!V||M.getOption("disableInput"))return c.Pass;for(var J=M.listSelections(),q=0;q<J.length;q++){if(!J[q].empty())return c.Pass;var Q=R(M,J[q].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}M.operation(function(){var Y=M.lineSeparator()||`
|
|
12
|
-
`;M.replaceSelection(Y+Y,null),j(M,-1),J=M.listSelections();for(var ue=0;ue<J.length;ue++){var te=J[ue].head.line;M.indentLine(te,null,!0),M.indentLine(te+1,null,!0)}})}function j(M,C){for(var V=[],J=M.listSelections(),q=0,Q=0;Q<J.length;Q++){var Y=J[Q];Y.head==M.getCursor()&&(q=Q);var ue=Y.head.ch||C>0?{line:Y.head.line,ch:Y.head.ch+C}:{line:Y.head.line-1};V.push({anchor:ue,head:ue})}M.setSelections(V,q)}function _(M){var C=c.cmpPos(M.anchor,M.head)>0;return{anchor:new x(M.anchor.line,M.anchor.ch+(C?-1:1)),head:new x(M.head.line,M.head.ch+(C?1:-1))}}function H(M,C){var V=L(M);if(!V||M.getOption("disableInput"))return c.Pass;var J=d(V,"pairs"),q=J.indexOf(C);if(q==-1)return c.Pass;for(var Q=d(V,"closeBefore"),Y=d(V,"triples"),ue=J.charAt(q+1)==C,te=M.listSelections(),ne=q%2==0,ye,ge=0;ge<te.length;ge++){var de=te[ge],le=de.head,ae,De=M.getRange(le,x(le.line,le.ch+1));if(ne&&!de.empty())ae="surround";else if((ue||!ne)&&De==C)ue&&X(M,le)?ae="both":Y.indexOf(C)>=0&&M.getRange(le,x(le.line,le.ch+3))==C+C+C?ae="skipThree":ae="skip";else if(ue&&le.ch>1&&Y.indexOf(C)>=0&&M.getRange(x(le.line,le.ch-2),le)==C+C){if(le.ch>2&&/\bstring/.test(M.getTokenTypeAt(x(le.line,le.ch-2))))return c.Pass;ae="addFour"}else if(ue){var Ve=le.ch==0?" ":M.getRange(x(le.line,le.ch-1),le);if(!c.isWordChar(De)&&Ve!=C&&!c.isWordChar(Ve))ae="both";else return c.Pass}else if(ne&&(De.length===0||/\s/.test(De)||Q.indexOf(De)>-1))ae="both";else return c.Pass;if(!ye)ye=ae;else if(ye!=ae)return c.Pass}var Le=q%2?J.charAt(q-1):C,ke=q%2?C:J.charAt(q+1);M.operation(function(){if(ye=="skip")j(M,1);else if(ye=="skipThree")j(M,3);else if(ye=="surround"){for(var rt=M.getSelections(),Qe=0;Qe<rt.length;Qe++)rt[Qe]=Le+rt[Qe]+ke;M.replaceSelections(rt,"around"),rt=M.listSelections().slice();for(var Qe=0;Qe<rt.length;Qe++)rt[Qe]=_(rt[Qe]);M.setSelections(rt)}else ye=="both"?(M.replaceSelection(Le+ke,null),M.triggerElectric(Le+ke),j(M,-1)):ye=="addFour"&&(M.replaceSelection(Le+Le+Le+Le,"before"),j(M,1))})}function R(M,C){var V=M.getRange(x(C.line,C.ch-1),x(C.line,C.ch+1));return V.length==2?V:null}function X(M,C){var V=M.getTokenAt(x(C.line,C.ch+1));return/\bstring/.test(V.type)&&V.start==C.ch&&(C.ch==0||!/\bstring/.test(M.getTokenTypeAt(C)))}})},4328:(h,I,o)=>{(function(c){c(o(4631))})(function(c){var v=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),x=c.Pos,d={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function b(j){return j&&j.bracketRegex||/[(){}[\]]/}function A(j,_,H){var R=j.getLineHandle(_.line),X=_.ch-1,M=H&&H.afterCursor;M==null&&(M=/(^| )cm-fat-cursor($| )/.test(j.getWrapperElement().className));var C=b(H),V=!M&&X>=0&&C.test(R.text.charAt(X))&&d[R.text.charAt(X)]||C.test(R.text.charAt(X+1))&&d[R.text.charAt(++X)];if(!V)return null;var J=V.charAt(1)==">"?1:-1;if(H&&H.strict&&J>0!=(X==_.ch))return null;var q=j.getTokenTypeAt(x(_.line,X+1)),Q=g(j,x(_.line,X+(J>0?1:0)),J,q,H);return Q==null?null:{from:x(_.line,X),to:Q&&Q.pos,match:Q&&Q.ch==V.charAt(0),forward:J>0}}function g(j,_,H,R,X){for(var M=X&&X.maxScanLineLength||1e4,C=X&&X.maxScanLines||1e3,V=[],J=b(X),q=H>0?Math.min(_.line+C,j.lastLine()+1):Math.max(j.firstLine()-1,_.line-C),Q=_.line;Q!=q;Q+=H){var Y=j.getLine(Q);if(!!Y){var ue=H>0?0:Y.length-1,te=H>0?Y.length:-1;if(!(Y.length>M))for(Q==_.line&&(ue=_.ch-(H<0?1:0));ue!=te;ue+=H){var ne=Y.charAt(ue);if(J.test(ne)&&(R===void 0||(j.getTokenTypeAt(x(Q,ue+1))||"")==(R||""))){var ye=d[ne];if(ye&&ye.charAt(1)==">"==H>0)V.push(ne);else if(V.length)V.pop();else return{pos:x(Q,ue),ch:ne}}}}}return Q-H==(H>0?j.lastLine():j.firstLine())?!1:null}function L(j,_,H){for(var R=j.state.matchBrackets.maxHighlightLineLength||1e3,X=H&&H.highlightNonMatching,M=[],C=j.listSelections(),V=0;V<C.length;V++){var J=C[V].empty()&&A(j,C[V].head,H);if(J&&(J.match||X!==!1)&&j.getLine(J.from.line).length<=R){var q=J.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";M.push(j.markText(J.from,x(J.from.line,J.from.ch+1),{className:q})),J.to&&j.getLine(J.to.line).length<=R&&M.push(j.markText(J.to,x(J.to.line,J.to.ch+1),{className:q}))}}if(M.length){v&&j.state.focused&&j.focus();var Q=function(){j.operation(function(){for(var Y=0;Y<M.length;Y++)M[Y].clear()})};if(_)setTimeout(Q,800);else return Q}}function N(j){j.operation(function(){j.state.matchBrackets.currentlyHighlighted&&(j.state.matchBrackets.currentlyHighlighted(),j.state.matchBrackets.currentlyHighlighted=null),j.state.matchBrackets.currentlyHighlighted=L(j,!1,j.state.matchBrackets)})}function B(j){j.state.matchBrackets&&j.state.matchBrackets.currentlyHighlighted&&(j.state.matchBrackets.currentlyHighlighted(),j.state.matchBrackets.currentlyHighlighted=null)}c.defineOption("matchBrackets",!1,function(j,_,H){H&&H!=c.Init&&(j.off("cursorActivity",N),j.off("focus",N),j.off("blur",B),B(j)),_&&(j.state.matchBrackets=typeof _=="object"?_:{},j.on("cursorActivity",N),j.on("focus",N),j.on("blur",B))}),c.defineExtension("matchBrackets",function(){L(this,!0)}),c.defineExtension("findMatchingBracket",function(j,_,H){return(H||typeof _=="boolean")&&(H?(H.strict=_,_=H):_=_?{strict:!0}:null),A(this,j,_)}),c.defineExtension("scanForBracket",function(j,_,H,R){return g(this,j,_,H,R)})})},71707:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";var v="CodeMirror-hint",x="CodeMirror-hint-active";c.showHint=function(M,C,V){if(!C)return M.showHint(V);V&&V.async&&(C.async=!0);var J={hint:C};if(V)for(var q in V)J[q]=V[q];return M.showHint(J)},c.defineExtension("showHint",function(M){M=g(this,this.getCursor("start"),M);var C=this.listSelections();if(!(C.length>1)){if(this.somethingSelected()){if(!M.hint.supportsSelection)return;for(var V=0;V<C.length;V++)if(C[V].head.line!=C[V].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var J=this.state.completionActive=new d(this,M);!J.options.hint||(c.signal(this,"startCompletion",this),J.update(!0))}}),c.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function d(M,C){if(this.cm=M,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 V=this;M.on("cursorActivity",this.activityFunc=function(){V.cursorActivity()})}}var b=window.requestAnimationFrame||function(M){return setTimeout(M,1e3/60)},A=window.cancelAnimationFrame||clearTimeout;d.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&&c.signal(this.data,"close"),this.widget&&this.widget.close(),c.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(M,C){var V=M.list[C],J=this;this.cm.operation(function(){V.hint?V.hint(J.cm,M,V):J.cm.replaceRange(L(V),V.from||M.from,V.to||M.to,"complete"),c.signal(M,"pick",V),J.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(A(this.debounce),this.debounce=0);var M=this.startPos;this.data&&(M=this.data.from);var C=this.cm.getCursor(),V=this.cm.getLine(C.line);if(C.line!=this.startPos.line||V.length-C.ch!=this.startLen-this.startPos.ch||C.ch<M.ch||this.cm.somethingSelected()||!C.ch||this.options.closeCharacters.test(V.charAt(C.ch-1)))this.close();else{var J=this;this.debounce=b(function(){J.update()}),this.widget&&this.widget.disable()}},update:function(M){if(this.tick!=null){var C=this,V=++this.tick;H(this.options.hint,this.cm,this.options,function(J){C.tick==V&&C.finishUpdate(J,M)})}},finishUpdate:function(M,C){this.data&&c.signal(this.data,"update");var V=this.widget&&this.widget.picked||C&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=M,M&&M.list.length&&(V&&M.list.length==1?this.pick(M,0):(this.widget=new j(this,M),c.signal(M,"shown")))}};function g(M,C,V){var J=M.options.hintOptions,q={};for(var Q in X)q[Q]=X[Q];if(J)for(var Q in J)J[Q]!==void 0&&(q[Q]=J[Q]);if(V)for(var Q in V)V[Q]!==void 0&&(q[Q]=V[Q]);return q.hint.resolve&&(q.hint=q.hint.resolve(M,C)),q}function L(M){return typeof M=="string"?M:M.text}function N(M,C){var V={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},J=/Mac/.test(navigator.platform);J&&(V["Ctrl-P"]=function(){C.moveFocus(-1)},V["Ctrl-N"]=function(){C.moveFocus(1)});var q=M.options.customKeys,Q=q?{}:V;function Y(ne,ye){var ge;typeof ye!="string"?ge=function(de){return ye(de,C)}:V.hasOwnProperty(ye)?ge=V[ye]:ge=ye,Q[ne]=ge}if(q)for(var ue in q)q.hasOwnProperty(ue)&&Y(ue,q[ue]);var te=M.options.extraKeys;if(te)for(var ue in te)te.hasOwnProperty(ue)&&Y(ue,te[ue]);return Q}function B(M,C){for(;C&&C!=M;){if(C.nodeName.toUpperCase()==="LI"&&C.parentNode==M)return C;C=C.parentNode}}function j(M,C){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=M,this.data=C,this.picked=!1;var V=this,J=M.cm,q=J.getInputField().ownerDocument,Q=q.defaultView||q.parentWindow,Y=this.hints=q.createElement("ul");Y.setAttribute("role","listbox"),Y.setAttribute("aria-expanded","true"),Y.id=this.id;var ue=M.cm.options.theme;Y.className="CodeMirror-hints "+ue,this.selectedHint=C.selectedHint||0;for(var te=C.list,ne=0;ne<te.length;++ne){var ye=Y.appendChild(q.createElement("li")),ge=te[ne],de=v+(ne!=this.selectedHint?"":" "+x);ge.className!=null&&(de=ge.className+" "+de),ye.className=de,ne==this.selectedHint&&ye.setAttribute("aria-selected","true"),ye.id=this.id+"-"+ne,ye.setAttribute("role","option"),ge.render?ge.render(ye,C,ge):ye.appendChild(q.createTextNode(ge.displayText||L(ge))),ye.hintId=ne}var le=M.options.container||q.body,ae=J.cursorCoords(M.options.alignWithWord?C.from:null),De=ae.left,Ve=ae.bottom,Le=!0,ke=0,rt=0;if(le!==q.body){var Qe=["absolute","relative","fixed"].indexOf(Q.getComputedStyle(le).position)!==-1,Je=Qe?le:le.offsetParent,ut=Je.getBoundingClientRect(),pt=q.body.getBoundingClientRect();ke=ut.left-pt.left-Je.scrollLeft,rt=ut.top-pt.top-Je.scrollTop}Y.style.left=De-ke+"px",Y.style.top=Ve-rt+"px";var mt=Q.innerWidth||Math.max(q.body.offsetWidth,q.documentElement.offsetWidth),qe=Q.innerHeight||Math.max(q.body.offsetHeight,q.documentElement.offsetHeight);le.appendChild(Y),J.getInputField().setAttribute("aria-autocomplete","list"),J.getInputField().setAttribute("aria-owns",this.id),J.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var lt=M.options.moveOnOverlap?Y.getBoundingClientRect():new DOMRect,gt=M.options.paddingForScrollbar?Y.scrollHeight>Y.clientHeight+1:!1,xt;setTimeout(function(){xt=J.getScrollInfo()});var dt=lt.bottom-qe;if(dt>0){var kt=lt.bottom-lt.top,It=ae.top-(ae.bottom-lt.top);if(It-kt>0)Y.style.top=(Ve=ae.top-kt-rt)+"px",Le=!1;else if(kt>qe){Y.style.height=qe-5+"px",Y.style.top=(Ve=ae.bottom-lt.top-rt)+"px";var At=J.getCursor();C.from.ch!=At.ch&&(ae=J.cursorCoords(At),Y.style.left=(De=ae.left-ke)+"px",lt=Y.getBoundingClientRect())}}var jt=lt.right-mt;if(gt&&(jt+=J.display.nativeBarWidth),jt>0&&(lt.right-lt.left>mt&&(Y.style.width=mt-5+"px",jt-=lt.right-lt.left-mt),Y.style.left=(De=ae.left-jt-ke)+"px"),gt)for(var Nt=Y.firstChild;Nt;Nt=Nt.nextSibling)Nt.style.paddingRight=J.display.nativeBarWidth+"px";if(J.addKeyMap(this.keyMap=N(M,{moveFocus:function(Lt,pe){V.changeActive(V.selectedHint+Lt,pe)},setFocus:function(Lt){V.changeActive(Lt)},menuSize:function(){return V.screenAmount()},length:te.length,close:function(){M.close()},pick:function(){V.pick()},data:C})),M.options.closeOnUnfocus){var $t;J.on("blur",this.onBlur=function(){$t=setTimeout(function(){M.close()},100)}),J.on("focus",this.onFocus=function(){clearTimeout($t)})}J.on("scroll",this.onScroll=function(){var Lt=J.getScrollInfo(),pe=J.getWrapperElement().getBoundingClientRect();xt||(xt=J.getScrollInfo());var G=Ve+xt.top-Lt.top,K=G-(Q.pageYOffset||(q.documentElement||q.body).scrollTop);if(Le||(K+=Y.offsetHeight),K<=pe.top||K>=pe.bottom)return M.close();Y.style.top=G+"px",Y.style.left=De+xt.left-Lt.left+"px"}),c.on(Y,"dblclick",function(Lt){var pe=B(Y,Lt.target||Lt.srcElement);pe&&pe.hintId!=null&&(V.changeActive(pe.hintId),V.pick())}),c.on(Y,"click",function(Lt){var pe=B(Y,Lt.target||Lt.srcElement);pe&&pe.hintId!=null&&(V.changeActive(pe.hintId),M.options.completeOnSingleClick&&V.pick())}),c.on(Y,"mousedown",function(){setTimeout(function(){J.focus()},20)});var St=this.getSelectedHintRange();return(St.from!==0||St.to!==0)&&this.scrollToActive(),c.signal(C,"select",te[this.selectedHint],Y.childNodes[this.selectedHint]),!0}j.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 M=this.completion.cm.getInputField();M.removeAttribute("aria-activedescendant"),M.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 M=this;this.keyMap={Enter:function(){M.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(M,C){if(M>=this.data.list.length?M=C?this.data.list.length-1:0:M<0&&(M=C?0:this.data.list.length-1),this.selectedHint!=M){var V=this.hints.childNodes[this.selectedHint];V&&(V.className=V.className.replace(" "+x,""),V.removeAttribute("aria-selected")),V=this.hints.childNodes[this.selectedHint=M],V.className+=" "+x,V.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",V.id),this.scrollToActive(),c.signal(this.data,"select",this.data.list[this.selectedHint],V)}},scrollToActive:function(){var M=this.getSelectedHintRange(),C=this.hints.childNodes[M.from],V=this.hints.childNodes[M.to],J=this.hints.firstChild;C.offsetTop<this.hints.scrollTop?this.hints.scrollTop=C.offsetTop-J.offsetTop:V.offsetTop+V.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=V.offsetTop+V.offsetHeight-this.hints.clientHeight+J.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var M=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-M),to:Math.min(this.data.list.length-1,this.selectedHint+M)}}};function _(M,C){if(!M.somethingSelected())return C;for(var V=[],J=0;J<C.length;J++)C[J].supportsSelection&&V.push(C[J]);return V}function H(M,C,V,J){if(M.async)M(C,J,V);else{var q=M(C,V);q&&q.then?q.then(J):J(q)}}function R(M,C){var V=M.getHelpers(C,"hint"),J;if(V.length){var q=function(Q,Y,ue){var te=_(Q,V);function ne(ye){if(ye==te.length)return Y(null);H(te[ye],Q,ue,function(ge){ge&&ge.list.length>0?Y(ge):ne(ye+1)})}ne(0)};return q.async=!0,q.supportsSelection=!0,q}else return(J=M.getHelper(M.getCursor(),"hintWords"))?function(Q){return c.hint.fromList(Q,{words:J})}:c.hint.anyword?function(Q,Y){return c.hint.anyword(Q,Y)}:function(){}}c.registerHelper("hint","auto",{resolve:R}),c.registerHelper("hint","fromList",function(M,C){var V=M.getCursor(),J=M.getTokenAt(V),q,Q=c.Pos(V.line,J.start),Y=V;J.start<V.ch&&/\w/.test(J.string.charAt(V.ch-J.start-1))?q=J.string.substr(0,V.ch-J.start):(q="",Q=V);for(var ue=[],te=0;te<C.words.length;te++){var ne=C.words[te];ne.slice(0,q.length)==q&&ue.push(ne)}if(ue.length)return{list:ue,from:Q,to:Y}}),c.commands.autocomplete=c.showHint;var X={hint:c.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};c.defineOption("hintOptions",null)})},3256:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";var v="CodeMirror-lint-markers",x="CodeMirror-lint-line-";function d(Y,ue,te){var ne=document.createElement("div");ne.className="CodeMirror-lint-tooltip cm-s-"+Y.options.theme,ne.appendChild(te.cloneNode(!0)),Y.state.lint.options.selfContain?Y.getWrapperElement().appendChild(ne):document.body.appendChild(ne);function ye(ge){if(!ne.parentNode)return c.off(document,"mousemove",ye);ne.style.top=Math.max(0,ge.clientY-ne.offsetHeight-5)+"px",ne.style.left=ge.clientX+5+"px"}return c.on(document,"mousemove",ye),ye(ue),ne.style.opacity!=null&&(ne.style.opacity=1),ne}function b(Y){Y.parentNode&&Y.parentNode.removeChild(Y)}function A(Y){!Y.parentNode||(Y.style.opacity==null&&b(Y),Y.style.opacity=0,setTimeout(function(){b(Y)},600))}function g(Y,ue,te,ne){var ye=d(Y,ue,te);function ge(){c.off(ne,"mouseout",ge),ye&&(A(ye),ye=null)}var de=setInterval(function(){if(ye)for(var le=ne;;le=le.parentNode){if(le&&le.nodeType==11&&(le=le.host),le==document.body)return;if(!le){ge();break}}if(!ye)return clearInterval(de)},400);c.on(ne,"mouseout",ge)}function L(Y,ue,te){this.marked=[],ue instanceof Function&&(ue={getAnnotations:ue}),(!ue||ue===!0)&&(ue={}),this.options={},this.linterOptions=ue.options||{};for(var ne in N)this.options[ne]=N[ne];for(var ne in ue)N.hasOwnProperty(ne)?ue[ne]!=null&&(this.options[ne]=ue[ne]):ue.options||(this.linterOptions[ne]=ue[ne]);this.timeout=null,this.hasGutter=te,this.onMouseOver=function(ye){Q(Y,ye)},this.waitingFor=0}var N={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function B(Y){var ue=Y.state.lint;ue.hasGutter&&Y.clearGutter(v),ue.options.highlightLines&&j(Y);for(var te=0;te<ue.marked.length;++te)ue.marked[te].clear();ue.marked.length=0}function j(Y){Y.eachLine(function(ue){var te=ue.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(ue.wrapClass);te&&Y.removeLineClass(ue,"wrap",te[0])})}function _(Y,ue,te,ne,ye){var ge=document.createElement("div"),de=ge;return ge.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+te,ne&&(de=ge.appendChild(document.createElement("div")),de.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),ye!=!1&&c.on(de,"mouseover",function(le){g(Y,le,ue,de)}),ge}function H(Y,ue){return Y=="error"?Y:ue}function R(Y){for(var ue=[],te=0;te<Y.length;++te){var ne=Y[te],ye=ne.from.line;(ue[ye]||(ue[ye]=[])).push(ne)}return ue}function X(Y){var ue=Y.severity;ue||(ue="error");var te=document.createElement("div");return te.className="CodeMirror-lint-message CodeMirror-lint-message-"+ue,typeof Y.messageHTML!="undefined"?te.innerHTML=Y.messageHTML:te.appendChild(document.createTextNode(Y.message)),te}function M(Y,ue){var te=Y.state.lint,ne=++te.waitingFor;function ye(){ne=-1,Y.off("change",ye)}Y.on("change",ye),ue(Y.getValue(),function(ge,de){Y.off("change",ye),te.waitingFor==ne&&(de&&ge instanceof c&&(ge=de),Y.operation(function(){V(Y,ge)}))},te.linterOptions,Y)}function C(Y){var ue=Y.state.lint;if(!!ue){var te=ue.options,ne=te.getAnnotations||Y.getHelper(c.Pos(0,0),"lint");if(!!ne)if(te.async||ne.async)M(Y,ne);else{var ye=ne(Y.getValue(),ue.linterOptions,Y);if(!ye)return;ye.then?ye.then(function(ge){Y.operation(function(){V(Y,ge)})}):Y.operation(function(){V(Y,ye)})}}}function V(Y,ue){var te=Y.state.lint;if(!!te){var ne=te.options;B(Y);for(var ye=R(ue),ge=0;ge<ye.length;++ge){var de=ye[ge];if(!!de){var le=[];de=de.filter(function(rt){return le.indexOf(rt.message)>-1?!1:le.push(rt.message)});for(var ae=null,De=te.hasGutter&&document.createDocumentFragment(),Ve=0;Ve<de.length;++Ve){var Le=de[Ve],ke=Le.severity;ke||(ke="error"),ae=H(ae,ke),ne.formatAnnotation&&(Le=ne.formatAnnotation(Le)),te.hasGutter&&De.appendChild(X(Le)),Le.to&&te.marked.push(Y.markText(Le.from,Le.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+ke,__annotation:Le}))}te.hasGutter&&Y.setGutterMarker(ge,v,_(Y,De,ae,ye[ge].length>1,ne.tooltips)),ne.highlightLines&&Y.addLineClass(ge,"wrap",x+ae)}}ne.onUpdateLinting&&ne.onUpdateLinting(ue,ye,Y)}}function J(Y){var ue=Y.state.lint;!ue||(clearTimeout(ue.timeout),ue.timeout=setTimeout(function(){C(Y)},ue.options.delay))}function q(Y,ue,te){for(var ne=te.target||te.srcElement,ye=document.createDocumentFragment(),ge=0;ge<ue.length;ge++){var de=ue[ge];ye.appendChild(X(de))}g(Y,te,ye,ne)}function Q(Y,ue){var te=ue.target||ue.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(te.className)){for(var ne=te.getBoundingClientRect(),ye=(ne.left+ne.right)/2,ge=(ne.top+ne.bottom)/2,de=Y.findMarksAt(Y.coordsChar({left:ye,top:ge},"client")),le=[],ae=0;ae<de.length;++ae){var De=de[ae].__annotation;De&&le.push(De)}le.length&&q(Y,le,ue)}}c.defineOption("lint",!1,function(Y,ue,te){if(te&&te!=c.Init&&(B(Y),Y.state.lint.options.lintOnChange!==!1&&Y.off("change",J),c.off(Y.getWrapperElement(),"mouseover",Y.state.lint.onMouseOver),clearTimeout(Y.state.lint.timeout),delete Y.state.lint),ue){for(var ne=Y.getOption("gutters"),ye=!1,ge=0;ge<ne.length;++ge)ne[ge]==v&&(ye=!0);var de=Y.state.lint=new L(Y,ue,ye);de.options.lintOnChange&&Y.on("change",J),de.options.tooltips!=!1&&de.options.tooltips!="gutter"&&c.on(Y.getWrapperElement(),"mouseover",de.onMouseOver),C(Y)}}),c.defineExtension("performLint",function(){C(this)})})},32095:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";var v=c.Pos;function x(C){var V=C.flags;return V!=null?V:(C.ignoreCase?"i":"")+(C.global?"g":"")+(C.multiline?"m":"")}function d(C,V){for(var J=x(C),q=J,Q=0;Q<V.length;Q++)q.indexOf(V.charAt(Q))==-1&&(q+=V.charAt(Q));return J==q?C:new RegExp(C.source,q)}function b(C){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(C.source)}function A(C,V,J){V=d(V,"g");for(var q=J.line,Q=J.ch,Y=C.lastLine();q<=Y;q++,Q=0){V.lastIndex=Q;var ue=C.getLine(q),te=V.exec(ue);if(te)return{from:v(q,te.index),to:v(q,te.index+te[0].length),match:te}}}function g(C,V,J){if(!b(V))return A(C,V,J);V=d(V,"gm");for(var q,Q=1,Y=J.line,ue=C.lastLine();Y<=ue;){for(var te=0;te<Q&&!(Y>ue);te++){var ne=C.getLine(Y++);q=q==null?ne:q+`
|
|
13
|
-
`+ne}Q=Q*2,V.lastIndex=J.ch;var ye=V.exec(q);if(ye){var ge=q.slice(0,ye.index).split(`
|
|
14
|
-
`),de=ye[0].split(`
|
|
15
|
-
`),le=J.line+ge.length-1,ae=ge[ge.length-1].length;return{from:v(le,ae),to:v(le+de.length-1,de.length==1?ae+de[0].length:de[de.length-1].length),match:ye}}}}function L(C,V,J){for(var q,Q=0;Q<=C.length;){V.lastIndex=Q;var Y=V.exec(C);if(!Y)break;var ue=Y.index+Y[0].length;if(ue>C.length-J)break;(!q||ue>q.index+q[0].length)&&(q=Y),Q=Y.index+1}return q}function N(C,V,J){V=d(V,"g");for(var q=J.line,Q=J.ch,Y=C.firstLine();q>=Y;q--,Q=-1){var ue=C.getLine(q),te=L(ue,V,Q<0?0:ue.length-Q);if(te)return{from:v(q,te.index),to:v(q,te.index+te[0].length),match:te}}}function B(C,V,J){if(!b(V))return N(C,V,J);V=d(V,"gm");for(var q,Q=1,Y=C.getLine(J.line).length-J.ch,ue=J.line,te=C.firstLine();ue>=te;){for(var ne=0;ne<Q&&ue>=te;ne++){var ye=C.getLine(ue--);q=q==null?ye:ye+`
|
|
16
|
-
`+q}Q*=2;var ge=L(q,V,Y);if(ge){var de=q.slice(0,ge.index).split(`
|
|
17
|
-
`),le=ge[0].split(`
|
|
18
|
-
`),ae=ue+de.length,De=de[de.length-1].length;return{from:v(ae,De),to:v(ae+le.length-1,le.length==1?De+le[0].length:le[le.length-1].length),match:ge}}}}var j,_;String.prototype.normalize?(j=function(C){return C.normalize("NFD").toLowerCase()},_=function(C){return C.normalize("NFD")}):(j=function(C){return C.toLowerCase()},_=function(C){return C});function H(C,V,J,q){if(C.length==V.length)return J;for(var Q=0,Y=J+Math.max(0,C.length-V.length);;){if(Q==Y)return Q;var ue=Q+Y>>1,te=q(C.slice(0,ue)).length;if(te==J)return ue;te>J?Y=ue:Q=ue+1}}function R(C,V,J,q){if(!V.length)return null;var Q=q?j:_,Y=Q(V).split(/\r|\n\r?/);e:for(var ue=J.line,te=J.ch,ne=C.lastLine()+1-Y.length;ue<=ne;ue++,te=0){var ye=C.getLine(ue).slice(te),ge=Q(ye);if(Y.length==1){var de=ge.indexOf(Y[0]);if(de==-1)continue e;var J=H(ye,ge,de,Q)+te;return{from:v(ue,H(ye,ge,de,Q)+te),to:v(ue,H(ye,ge,de+Y[0].length,Q)+te)}}else{var le=ge.length-Y[0].length;if(ge.slice(le)!=Y[0])continue e;for(var ae=1;ae<Y.length-1;ae++)if(Q(C.getLine(ue+ae))!=Y[ae])continue e;var De=C.getLine(ue+Y.length-1),Ve=Q(De),Le=Y[Y.length-1];if(Ve.slice(0,Le.length)!=Le)continue e;return{from:v(ue,H(ye,ge,le,Q)+te),to:v(ue+Y.length-1,H(De,Ve,Le.length,Q))}}}}function X(C,V,J,q){if(!V.length)return null;var Q=q?j:_,Y=Q(V).split(/\r|\n\r?/);e:for(var ue=J.line,te=J.ch,ne=C.firstLine()-1+Y.length;ue>=ne;ue--,te=-1){var ye=C.getLine(ue);te>-1&&(ye=ye.slice(0,te));var ge=Q(ye);if(Y.length==1){var de=ge.lastIndexOf(Y[0]);if(de==-1)continue e;return{from:v(ue,H(ye,ge,de,Q)),to:v(ue,H(ye,ge,de+Y[0].length,Q))}}else{var le=Y[Y.length-1];if(ge.slice(0,le.length)!=le)continue e;for(var ae=1,J=ue-Y.length+1;ae<Y.length-1;ae++)if(Q(C.getLine(J+ae))!=Y[ae])continue e;var De=C.getLine(ue+1-Y.length),Ve=Q(De);if(Ve.slice(Ve.length-Y[0].length)!=Y[0])continue e;return{from:v(ue+1-Y.length,H(De,Ve,De.length-Y[0].length,Q)),to:v(ue,H(ye,ge,le.length,Q))}}}}function M(C,V,J,q){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=C,J=J?C.clipPos(J):v(0,0),this.pos={from:J,to:J};var Q;typeof q=="object"?Q=q.caseFold:(Q=q,q=null),typeof V=="string"?(Q==null&&(Q=!1),this.matches=function(Y,ue){return(Y?X:R)(C,V,ue,Q)}):(V=d(V,"gm"),!q||q.multiline!==!1?this.matches=function(Y,ue){return(Y?B:g)(C,V,ue)}:this.matches=function(Y,ue){return(Y?N:A)(C,V,ue)})}M.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(C){var V=this.doc.clipPos(C?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(V=v(V.line,V.ch),C?(V.ch--,V.ch<0&&(V.line--,V.ch=(this.doc.getLine(V.line)||"").length)):(V.ch++,V.ch>(this.doc.getLine(V.line)||"").length&&(V.ch=0,V.line++)),c.cmpPos(V,this.doc.clipPos(V))!=0))return this.atOccurrence=!1;var J=this.matches(C,V);if(this.afterEmptyMatch=J&&c.cmpPos(J.from,J.to)==0,J)return this.pos=J,this.atOccurrence=!0,this.pos.match||!0;var q=v(C?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:q,to:q},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(C,V){if(!!this.atOccurrence){var J=c.splitLines(C);this.doc.replaceRange(J,this.pos.from,this.pos.to,V),this.pos.to=v(this.pos.from.line+J.length-1,J[J.length-1].length+(J.length==1?this.pos.from.ch:0))}}},c.defineExtension("getSearchCursor",function(C,V,J){return new M(this.doc,C,V,J)}),c.defineDocExtension("getSearchCursor",function(C,V,J){return new M(this,C,V,J)}),c.defineExtension("selectMatches",function(C,V){for(var J=[],q=this.getSearchCursor(C,this.getCursor("from"),V);q.findNext()&&!(c.cmpPos(q.to(),this.getCursor("to"))>0);)J.push({anchor:q.from(),head:q.to()});J.length&&this.setSelections(J,0)})})},4631:function(h){(function(I,o){h.exports=o()})(this,function(){"use strict";var I=navigator.userAgent,o=navigator.platform,c=/gecko\/\d/i.test(I),v=/MSIE \d/.test(I),x=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(I),d=/Edge\/(\d+)/.exec(I),b=v||x||d,A=b&&(v?document.documentMode||6:+(d||x)[1]),g=!d&&/WebKit\//.test(I),L=g&&/Qt\/\d+\.\d+/.test(I),N=!d&&/Chrome\//.test(I),B=/Opera\//.test(I),j=/Apple Computer/.test(navigator.vendor),_=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),H=/PhantomJS/.test(I),R=j&&(/Mobile\/\w+/.test(I)||navigator.maxTouchPoints>2),X=/Android/.test(I),M=R||X||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),C=R||/Mac/.test(o),V=/\bCrOS\b/.test(I),J=/win/i.test(o),q=B&&I.match(/Version\/(\d*\.\d*)/);q&&(q=Number(q[1])),q&&q>=15&&(B=!1,g=!0);var Q=C&&(L||B&&(q==null||q<12.11)),Y=c||b&&A>=9;function ue(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var te=function(e,n){var u=e.className,l=ue(n).exec(u);if(l){var f=u.slice(l.index+l[0].length);e.className=u.slice(0,l.index)+(f?l[1]+f:"")}};function ne(e){for(var n=e.childNodes.length;n>0;--n)e.removeChild(e.firstChild);return e}function ye(e,n){return ne(e).appendChild(n)}function ge(e,n,u,l){var f=document.createElement(e);if(u&&(f.className=u),l&&(f.style.cssText=l),typeof n=="string")f.appendChild(document.createTextNode(n));else if(n)for(var y=0;y<n.length;++y)f.appendChild(n[y]);return f}function de(e,n,u,l){var f=ge(e,n,u,l);return f.setAttribute("role","presentation"),f}var le;document.createRange?le=function(e,n,u,l){var f=document.createRange();return f.setEnd(l||e,u),f.setStart(e,n),f}:le=function(e,n,u){var l=document.body.createTextRange();try{l.moveToElementText(e.parentNode)}catch(f){return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",n),l};function ae(e,n){if(n.nodeType==3&&(n=n.parentNode),e.contains)return e.contains(n);do if(n.nodeType==11&&(n=n.host),n==e)return!0;while(n=n.parentNode)}function De(){var e;try{e=document.activeElement}catch(n){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function Ve(e,n){var u=e.className;ue(n).test(u)||(e.className+=(u?" ":"")+n)}function Le(e,n){for(var u=e.split(" "),l=0;l<u.length;l++)u[l]&&!ue(u[l]).test(n)&&(n+=" "+u[l]);return n}var ke=function(e){e.select()};R?ke=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:b&&(ke=function(e){try{e.select()}catch(n){}});function rt(e){var n=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,n)}}function Qe(e,n,u){n||(n={});for(var l in e)e.hasOwnProperty(l)&&(u!==!1||!n.hasOwnProperty(l))&&(n[l]=e[l]);return n}function Je(e,n,u,l,f){n==null&&(n=e.search(/[^\s\u00a0]/),n==-1&&(n=e.length));for(var y=l||0,F=f||0;;){var U=e.indexOf(" ",y);if(U<0||U>=n)return F+(n-y);F+=U-y,F+=u-F%u,y=U+1}}var ut=function(){this.id=null,this.f=null,this.time=0,this.handler=rt(this.onTimeout,this)};ut.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ut.prototype.set=function(e,n){this.f=n;var u=+new Date+e;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=u)};function pt(e,n){for(var u=0;u<e.length;++u)if(e[u]==n)return u;return-1}var mt=50,qe={toString:function(){return"CodeMirror.Pass"}},lt={scroll:!1},gt={origin:"*mouse"},xt={origin:"+move"};function dt(e,n,u){for(var l=0,f=0;;){var y=e.indexOf(" ",l);y==-1&&(y=e.length);var F=y-l;if(y==e.length||f+F>=n)return l+Math.min(F,n-f);if(f+=y-l,f+=u-f%u,l=y+1,f>=n)return l}}var kt=[""];function It(e){for(;kt.length<=e;)kt.push(At(kt)+" ");return kt[e]}function At(e){return e[e.length-1]}function jt(e,n){for(var u=[],l=0;l<e.length;l++)u[l]=n(e[l],l);return u}function Nt(e,n,u){for(var l=0,f=u(n);l<e.length&&u(e[l])<=f;)l++;e.splice(l,0,n)}function $t(){}function St(e,n){var u;return Object.create?u=Object.create(e):($t.prototype=e,u=new $t),n&&Qe(n,u),u}var Lt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function pe(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Lt.test(e))}function G(e,n){return n?n.source.indexOf("\\w")>-1&&pe(e)?!0:n.test(e):pe(e)}function K(e){for(var n in e)if(e.hasOwnProperty(n)&&e[n])return!1;return!0}var we=/[\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 Re(e){return e.charCodeAt(0)>=768&&we.test(e)}function be(e,n,u){for(;(u<0?n>0:n<e.length)&&Re(e.charAt(n));)n+=u;return n}function Ae(e,n,u){for(var l=n>u?-1:1;;){if(n==u)return n;var f=(n+u)/2,y=l<0?Math.ceil(f):Math.floor(f);if(y==n)return e(y)?n:u;e(y)?u=y:n=y+l}}function T(e,n,u,l){if(!e)return l(n,u,"ltr",0);for(var f=!1,y=0;y<e.length;++y){var F=e[y];(F.from<u&&F.to>n||n==u&&F.to==n)&&(l(Math.max(F.from,n),Math.min(F.to,u),F.level==1?"rtl":"ltr",y),f=!0)}f||l(n,u,"ltr")}var Ie=null;function W(e,n,u){var l;Ie=null;for(var f=0;f<e.length;++f){var y=e[f];if(y.from<n&&y.to>n)return f;y.to==n&&(y.from!=y.to&&u=="before"?l=f:Ie=f),y.from==n&&(y.from!=y.to&&u!="before"?l=f:Ie=f)}return l!=null?l:Ie}var O=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(Z){return Z<=247?e.charAt(Z):1424<=Z&&Z<=1524?"R":1536<=Z&&Z<=1785?n.charAt(Z-1536):1774<=Z&&Z<=2220?"r":8192<=Z&&Z<=8203?"w":Z==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,y=/[LRr]/,F=/[Lb1n]/,U=/[1n]/;function z(Z,xe,Ce){this.level=Z,this.from=xe,this.to=Ce}return function(Z,xe){var Ce=xe=="ltr"?"L":"R";if(Z.length==0||xe=="ltr"&&!l.test(Z))return!1;for(var Ne=Z.length,Me=[],Ye=0;Ye<Ne;++Ye)Me.push(u(Z.charCodeAt(Ye)));for(var tt=0,at=Ce;tt<Ne;++tt){var ft=Me[tt];ft=="m"?Me[tt]=at:at=ft}for(var vt=0,ct=Ce;vt<Ne;++vt){var wt=Me[vt];wt=="1"&&ct=="r"?Me[vt]="n":y.test(wt)&&(ct=wt,wt=="r"&&(Me[vt]="R"))}for(var Pt=1,Ot=Me[0];Pt<Ne-1;++Pt){var Ut=Me[Pt];Ut=="+"&&Ot=="1"&&Me[Pt+1]=="1"?Me[Pt]="1":Ut==","&&Ot==Me[Pt+1]&&(Ot=="1"||Ot=="n")&&(Me[Pt]=Ot),Ot=Ut}for(var ar=0;ar<Ne;++ar){var Hr=Me[ar];if(Hr==",")Me[ar]="N";else if(Hr=="%"){var hr=void 0;for(hr=ar+1;hr<Ne&&Me[hr]=="%";++hr);for(var xn=ar&&Me[ar-1]=="!"||hr<Ne&&Me[hr]=="1"?"1":"N",un=ar;un<hr;++un)Me[un]=xn;ar=hr-1}}for(var Fr=0,fn=Ce;Fr<Ne;++Fr){var zr=Me[Fr];fn=="L"&&zr=="1"?Me[Fr]="L":y.test(zr)&&(fn=zr)}for(var kr=0;kr<Ne;++kr)if(f.test(Me[kr])){var Rr=void 0;for(Rr=kr+1;Rr<Ne&&f.test(Me[Rr]);++Rr);for(var br=(kr?Me[kr-1]:Ce)=="L",cn=(Rr<Ne?Me[Rr]:Ce)=="L",uo=br==cn?br?"L":"R":Ce,ji=kr;ji<Rr;++ji)Me[ji]=uo;kr=Rr-1}for(var Xr=[],Gn,Mr=0;Mr<Ne;)if(F.test(Me[Mr])){var wl=Mr;for(++Mr;Mr<Ne&&F.test(Me[Mr]);++Mr);Xr.push(new z(0,wl,Mr))}else{var Mn=Mr,Vi=Xr.length,Qr=xe=="rtl"?1:0;for(++Mr;Mr<Ne&&Me[Mr]!="L";++Mr);for(var dn=Mn;dn<Mr;)if(U.test(Me[dn])){Mn<dn&&(Xr.splice(Vi,0,new z(1,Mn,dn)),Vi+=Qr);var fo=dn;for(++dn;dn<Mr&&U.test(Me[dn]);++dn);Xr.splice(Vi,0,new z(2,fo,dn)),Vi+=Qr,Mn=dn}else++dn;Mn<Mr&&Xr.splice(Vi,0,new z(1,Mn,Mr))}return xe=="ltr"&&(Xr[0].level==1&&(Gn=Z.match(/^\s+/))&&(Xr[0].from=Gn[0].length,Xr.unshift(new z(0,0,Gn[0].length))),At(Xr).level==1&&(Gn=Z.match(/\s+$/))&&(At(Xr).to-=Gn[0].length,Xr.push(new z(0,Ne-Gn[0].length,Ne)))),xe=="rtl"?Xr.reverse():Xr}}();function P(e,n){var u=e.order;return u==null&&(u=e.order=O(e.text,n)),u}var ie=[],D=function(e,n,u){if(e.addEventListener)e.addEventListener(n,u,!1);else if(e.attachEvent)e.attachEvent("on"+n,u);else{var l=e._handlers||(e._handlers={});l[n]=(l[n]||ie).concat(u)}};function ee(e,n){return e._handlers&&e._handlers[n]||ie}function fe(e,n,u){if(e.removeEventListener)e.removeEventListener(n,u,!1);else if(e.detachEvent)e.detachEvent("on"+n,u);else{var l=e._handlers,f=l&&l[n];if(f){var y=pt(f,u);y>-1&&(l[n]=f.slice(0,y).concat(f.slice(y+1)))}}}function Oe(e,n){var u=ee(e,n);if(!!u.length)for(var l=Array.prototype.slice.call(arguments,2),f=0;f<u.length;++f)u[f].apply(null,l)}function Pe(e,n,u){return typeof n=="string"&&(n={type:n,preventDefault:function(){this.defaultPrevented=!0}}),Oe(e,u||n.type,e,n),Ct(n)||n.codemirrorIgnore}function Te(e){var n=e._handlers&&e._handlers.cursorActivity;if(!!n)for(var u=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),l=0;l<n.length;++l)pt(u,n[l])==-1&&u.push(n[l])}function Ge(e,n){return ee(e,n).length>0}function He(e){e.prototype.on=function(n,u){D(this,n,u)},e.prototype.off=function(n,u){fe(this,n,u)}}function it(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function yt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ct(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Jt(e){it(e),yt(e)}function Ft(e){return e.target||e.srcElement}function wn(e){var n=e.which;return n==null&&(e.button&1?n=1:e.button&2?n=3:e.button&4&&(n=2)),C&&e.ctrlKey&&n==1&&(n=3),n}var _r=function(){if(b&&A<9)return!1;var e=ge("div");return"draggable"in e||"dragDrop"in e}(),On;function $i(e){if(On==null){var n=ge("span","\u200B");ye(e,ge("span",[n,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(On=n.offsetWidth<=1&&n.offsetHeight>2&&!(b&&A<8))}var u=On?ge("span","\u200B"):ge("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var jr;function Bn(e){if(jr!=null)return jr;var n=ye(e,document.createTextNode("A\u062EA")),u=le(n,0,1).getBoundingClientRect(),l=le(n,1,2).getBoundingClientRect();return ne(e),!u||u.left==u.right?!1:jr=l.right-u.right<3}var Kn=`
|
|
19
|
-
|
|
20
|
-
b`.split(/\n/).length!=3?function(e){for(var n=0,u=[],l=e.length;n<=l;){var f=e.indexOf(`
|
|
21
|
-
`,n);f==-1&&(f=e.length);var y=e.slice(n,e.charAt(f-1)=="\r"?f-1:f),F=y.indexOf("\r");F!=-1?(u.push(y.slice(0,F)),n+=F+1):(u.push(y),n=f+1)}return u}:function(e){return e.split(/\r\n?|\n/)},Tn=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(n){return!1}}:function(e){var n;try{n=e.ownerDocument.selection.createRange()}catch(u){}return!n||n.parentElement()!=e?!1:n.compareEndPoints("StartToEnd",n)!=0},Yn=function(){var e=ge("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),pn=null;function Pa(e){if(pn!=null)return pn;var n=ye(e,ge("span","x")),u=n.getBoundingClientRect(),l=le(n,0,1).getBoundingClientRect();return pn=Math.abs(u.left-l.left)>1}var Vo={},Sn={};function Jn(e,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),Vo[e]=n}function mi(e,n){Sn[e]=n}function Ki(e){if(typeof e=="string"&&Sn.hasOwnProperty(e))e=Sn[e];else if(e&&typeof e.name=="string"&&Sn.hasOwnProperty(e.name)){var n=Sn[e.name];typeof n=="string"&&(n={name:n}),e=St(n,e),e.name=n.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ki("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ki("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Un(e,n){n=Ki(n);var u=Vo[n.name];if(!u)return Un(e,"text/plain");var l=u(e,n);if(xi.hasOwnProperty(n.name)){var f=xi[n.name];for(var y in f)!f.hasOwnProperty(y)||(l.hasOwnProperty(y)&&(l["_"+y]=l[y]),l[y]=f[y])}if(l.name=n.name,n.helperType&&(l.helperType=n.helperType),n.modeProps)for(var F in n.modeProps)l[F]=n.modeProps[F];return l}var xi={};function Ia(e,n){var u=xi.hasOwnProperty(e)?xi[e]:xi[e]={};Qe(n,u)}function Pn(e,n){if(n===!0)return n;if(e.copyState)return e.copyState(n);var u={};for(var l in n){var f=n[l];f instanceof Array&&(f=f.concat([])),u[l]=f}return u}function An(e,n){for(var u;e.innerMode&&(u=e.innerMode(n),!(!u||u.mode==e));)n=u.state,e=u.mode;return u||{mode:e,state:n}}function bi(e,n,u){return e.startState?e.startState(n,u):!0}var yr=function(e,n,u){this.pos=this.start=0,this.string=e,this.tabSize=n||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};yr.prototype.eol=function(){return this.pos>=this.string.length},yr.prototype.sol=function(){return this.pos==this.lineStart},yr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},yr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},yr.prototype.eat=function(e){var n=this.string.charAt(this.pos),u;if(typeof e=="string"?u=n==e:u=n&&(e.test?e.test(n):e(n)),u)return++this.pos,n},yr.prototype.eatWhile=function(e){for(var n=this.pos;this.eat(e););return this.pos>n},yr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},yr.prototype.skipToEnd=function(){this.pos=this.string.length},yr.prototype.skipTo=function(e){var n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0},yr.prototype.backUp=function(e){this.pos-=e},yr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Je(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},yr.prototype.indentation=function(){return Je(this.string,null,this.tabSize)-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},yr.prototype.match=function(e,n,u){if(typeof e=="string"){var l=function(F){return u?F.toLowerCase():F},f=this.string.substr(this.pos,e.length);if(l(f)==l(e))return n!==!1&&(this.pos+=e.length),!0}else{var y=this.string.slice(this.pos).match(e);return y&&y.index>0?null:(y&&n!==!1&&(this.pos+=y[0].length),y)}},yr.prototype.current=function(){return this.string.slice(this.start,this.pos)},yr.prototype.hideFirstChars=function(e,n){this.lineStart+=e;try{return n()}finally{this.lineStart-=e}},yr.prototype.lookAhead=function(e){var n=this.lineOracle;return n&&n.lookAhead(e)},yr.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Et(e,n){if(n-=e.first,n<0||n>=e.size)throw new Error("There is no line "+(n+e.first)+" in the document.");for(var u=e;!u.lines;)for(var l=0;;++l){var f=u.children[l],y=f.chunkSize();if(n<y){u=f;break}n-=y}return u.lines[n]}function ei(e,n,u){var l=[],f=n.line;return e.iter(n.line,u.line+1,function(y){var F=y.text;f==u.line&&(F=F.slice(0,u.ch)),f==n.line&&(F=F.slice(n.ch)),l.push(F),++f}),l}function wi(e,n,u){var l=[];return e.iter(n,u,function(f){l.push(f.text)}),l}function En(e,n){var u=n-e.height;if(u)for(var l=e;l;l=l.parent)l.height+=u}function qt(e){if(e.parent==null)return null;for(var n=e.parent,u=pt(n.lines,e),l=n.parent;l;n=l,l=l.parent)for(var f=0;l.children[f]!=n;++f)u+=l.children[f].chunkSize();return u+n.first}function jn(e,n){var u=e.first;e:do{for(var l=0;l<e.children.length;++l){var f=e.children[l],y=f.height;if(n<y){e=f;continue e}n-=y,u+=f.chunkSize()}return u}while(!e.lines);for(var F=0;F<e.lines.length;++F){var U=e.lines[F],z=U.height;if(n<z)break;n-=z}return u+F}function Xn(e,n){return n>=e.first&&n<e.first+e.size}function ho(e,n){return String(e.lineNumberFormatter(n+e.firstLineNumber))}function nt(e,n,u){if(u===void 0&&(u=null),!(this instanceof nt))return new nt(e,n,u);this.line=e,this.ch=n,this.sticky=u}function Dt(e,n){return e.line-n.line||e.ch-n.ch}function ti(e,n){return e.sticky==n.sticky&&Dt(e,n)==0}function se(e){return nt(e.line,e.ch)}function Ee(e,n){return Dt(e,n)<0?n:e}function _e(e,n){return Dt(e,n)<0?e:n}function ot(e,n){return Math.max(e.first,Math.min(n,e.first+e.size-1))}function st(e,n){if(n.line<e.first)return nt(e.first,0);var u=e.first+e.size-1;return n.line>u?nt(u,Et(e,u).text.length):Kt(n,Et(e,n.line).text.length)}function Kt(e,n){var u=e.ch;return u==null||u>n?nt(e.line,n):u<0?nt(e.line,0):e}function Zt(e,n){for(var u=[],l=0;l<n.length;l++)u[l]=st(e,n[l]);return u}var Or=function(e,n){this.state=e,this.lookAhead=n},Tr=function(e,n,u,l){this.state=n,this.doc=e,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Tr.prototype.lookAhead=function(e){var n=this.doc.getLine(this.line+e);return n!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),n},Tr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Tr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Tr.fromSaved=function(e,n,u){return n instanceof Or?new Tr(e,Pn(e.mode,n.state),u,n.lookAhead):new Tr(e,Pn(e.mode,n),u)},Tr.prototype.save=function(e){var n=e!==!1?Pn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Or(n,this.maxLookAhead):n};function er(e,n,u,l){var f=[e.state.modeGen],y={};Vl(e,n.text,e.doc.mode,u,function(Z,xe){return f.push(Z,xe)},y,l);for(var F=u.state,U=function(Z){u.baseTokens=f;var xe=e.state.overlays[Z],Ce=1,Ne=0;u.state=!0,Vl(e,n.text,xe.mode,u,function(Me,Ye){for(var tt=Ce;Ne<Me;){var at=f[Ce];at>Me&&f.splice(Ce,1,Me,f[Ce+1],at),Ce+=2,Ne=Math.min(Me,at)}if(!!Ye)if(xe.opaque)f.splice(tt,Ce-tt,Me,"overlay "+Ye),Ce=tt+2;else for(;tt<Ce;tt+=2){var ft=f[tt+1];f[tt+1]=(ft?ft+" ":"")+"overlay "+Ye}},y),u.state=F,u.baseTokens=null,u.baseTokenPos=1},z=0;z<e.state.overlays.length;++z)U(z);return{styles:f,classes:y.bgClass||y.textClass?y:null}}function Ul(e,n,u){if(!n.styles||n.styles[0]!=e.state.modeGen){var l=qr(e,qt(n)),f=n.text.length>e.options.maxHighlightLength&&Pn(e.doc.mode,l.state),y=er(e,n,l);f&&(l.state=f),n.stateAfter=l.save(!f),n.styles=y.styles,y.classes?n.styleClasses=y.classes:n.styleClasses&&(n.styleClasses=null),u===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return n.styles}function qr(e,n,u){var l=e.doc,f=e.display;if(!l.mode.startState)return new Tr(l,!0,n);var y=gf(e,n,u),F=y>l.first&&Et(l,y-1).stateAfter,U=F?Tr.fromSaved(l,F,y):new Tr(l,bi(l.mode),y);return l.iter(y,n,function(z){ms(e,z.text,U);var Z=U.line;z.stateAfter=Z==n-1||Z%5==0||Z>=f.viewFrom&&Z<f.viewTo?U.save():null,U.nextLine()}),u&&(l.modeFrontier=U.line),U}function ms(e,n,u,l){var f=e.doc.mode,y=new yr(n,e.options.tabSize,u);for(y.start=y.pos=l||0,n==""&&Fa(f,u.state);!y.eol();)xs(f,y,u.state),y.start=y.pos}function Fa(e,n){if(e.blankLine)return e.blankLine(n);if(!!e.innerMode){var u=An(e,n);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function xs(e,n,u,l){for(var f=0;f<10;f++){l&&(l[0]=An(e,u).mode);var y=e.token(n,u);if(n.pos>n.start)return y}throw new Error("Mode "+e.name+" failed to advance stream.")}var bs=function(e,n,u){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=n||null,this.state=u};function ws(e,n,u,l){var f=e.doc,y=f.mode,F;n=st(f,n);var U=Et(f,n.line),z=qr(e,n.line,u),Z=new yr(U.text,e.options.tabSize,z),xe;for(l&&(xe=[]);(l||Z.pos<n.ch)&&!Z.eol();)Z.start=Z.pos,F=xs(y,Z,z.state),l&&xe.push(new bs(Z,F,Pn(f.mode,z.state)));return l?xe:new bs(Z,F,z.state)}function jl(e,n){if(e)for(;;){var u=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;e=e.slice(0,u.index)+e.slice(u.index+u[0].length);var l=u[1]?"bgClass":"textClass";n[l]==null?n[l]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(n[l])||(n[l]+=" "+u[2])}return e}function Vl(e,n,u,l,f,y,F){var U=u.flattenSpans;U==null&&(U=e.options.flattenSpans);var z=0,Z=null,xe=new yr(n,e.options.tabSize,l),Ce,Ne=e.options.addModeClass&&[null];for(n==""&&jl(Fa(u,l.state),y);!xe.eol();){if(xe.pos>e.options.maxHighlightLength?(U=!1,F&&ms(e,n,l,xe.pos),xe.pos=n.length,Ce=null):Ce=jl(xs(u,xe,l.state,Ne),y),Ne){var Me=Ne[0].name;Me&&(Ce="m-"+(Ce?Me+" "+Ce:Me))}if(!U||Z!=Ce){for(;z<xe.start;)z=Math.min(xe.start,z+5e3),f(z,Z);Z=Ce}xe.start=xe.pos}for(;z<xe.pos;){var Ye=Math.min(xe.pos,z+5e3);f(Ye,Z),z=Ye}}function gf(e,n,u){for(var l,f,y=e.doc,F=u?-1:n-(e.doc.mode.innerMode?1e3:100),U=n;U>F;--U){if(U<=y.first)return y.first;var z=Et(y,U-1),Z=z.stateAfter;if(Z&&(!u||U+(Z instanceof Or?Z.lookAhead:0)<=y.modeFrontier))return U;var xe=Je(z.text,null,e.options.tabSize);(f==null||l>xe)&&(f=U-1,l=xe)}return f}function yf(e,n){if(e.modeFrontier=Math.min(e.modeFrontier,n),!(e.highlightFrontier<n-10)){for(var u=e.first,l=n-1;l>u;l--){var f=Et(e,l).stateAfter;if(f&&(!(f instanceof Or)||l+f.lookAhead<n)){u=l+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,u)}}var mf=!1,Si=!1;function xf(){mf=!0}function bf(){Si=!0}function ka(e,n,u){this.marker=e,this.from=n,this.to=u}function Wo(e,n){if(e)for(var u=0;u<e.length;++u){var l=e[u];if(l.marker==n)return l}}function wf(e,n){for(var u,l=0;l<e.length;++l)e[l]!=n&&(u||(u=[])).push(e[l]);return u}function md(e,n,u){var l=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));l&&l.has(e.markedSpans)?e.markedSpans.push(n):(e.markedSpans=e.markedSpans?e.markedSpans.concat([n]):[n],l&&l.add(e.markedSpans)),n.marker.attachLine(e)}function xd(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var y=e[f],F=y.marker,U=y.from==null||(F.inclusiveLeft?y.from<=n:y.from<n);if(U||y.from==n&&F.type=="bookmark"&&(!u||!y.marker.insertLeft)){var z=y.to==null||(F.inclusiveRight?y.to>=n:y.to>n);(l||(l=[])).push(new ka(F,y.from,z?null:y.to))}}return l}function bd(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var y=e[f],F=y.marker,U=y.to==null||(F.inclusiveRight?y.to>=n:y.to>n);if(U||y.from==n&&F.type=="bookmark"&&(!u||y.marker.insertLeft)){var z=y.from==null||(F.inclusiveLeft?y.from<=n:y.from<n);(l||(l=[])).push(new ka(F,z?null:y.from-n,y.to==null?null:y.to-n))}}return l}function Wl(e,n){if(n.full)return null;var u=Xn(e,n.from.line)&&Et(e,n.from.line).markedSpans,l=Xn(e,n.to.line)&&Et(e,n.to.line).markedSpans;if(!u&&!l)return null;var f=n.from.ch,y=n.to.ch,F=Dt(n.from,n.to)==0,U=xd(u,f,F),z=bd(l,y,F),Z=n.text.length==1,xe=At(n.text).length+(Z?f:0);if(U)for(var Ce=0;Ce<U.length;++Ce){var Ne=U[Ce];if(Ne.to==null){var Me=Wo(z,Ne.marker);Me?Z&&(Ne.to=Me.to==null?null:Me.to+xe):Ne.to=f}}if(z)for(var Ye=0;Ye<z.length;++Ye){var tt=z[Ye];if(tt.to!=null&&(tt.to+=xe),tt.from==null){var at=Wo(U,tt.marker);at||(tt.from=xe,Z&&(U||(U=[])).push(tt))}else tt.from+=xe,Z&&(U||(U=[])).push(tt)}U&&(U=Hl(U)),z&&z!=U&&(z=Hl(z));var ft=[U];if(!Z){var vt=n.text.length-2,ct;if(vt>0&&U)for(var wt=0;wt<U.length;++wt)U[wt].to==null&&(ct||(ct=[])).push(new ka(U[wt].marker,null,null));for(var Pt=0;Pt<vt;++Pt)ft.push(ct);ft.push(z)}return ft}function Hl(e){for(var n=0;n<e.length;++n){var u=e[n];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&e.splice(n--,1)}return e.length?e:null}function zl(e,n,u){var l=null;if(e.iter(n.line,u.line+1,function(Me){if(Me.markedSpans)for(var Ye=0;Ye<Me.markedSpans.length;++Ye){var tt=Me.markedSpans[Ye].marker;tt.readOnly&&(!l||pt(l,tt)==-1)&&(l||(l=[])).push(tt)}}),!l)return null;for(var f=[{from:n,to:u}],y=0;y<l.length;++y)for(var F=l[y],U=F.find(0),z=0;z<f.length;++z){var Z=f[z];if(!(Dt(Z.to,U.from)<0||Dt(Z.from,U.to)>0)){var xe=[z,1],Ce=Dt(Z.from,U.from),Ne=Dt(Z.to,U.to);(Ce<0||!F.inclusiveLeft&&!Ce)&&xe.push({from:Z.from,to:U.from}),(Ne>0||!F.inclusiveRight&&!Ne)&&xe.push({from:U.to,to:Z.to}),f.splice.apply(f,xe),z+=xe.length-3}}return f}function Gl(e){var n=e.markedSpans;if(!!n){for(var u=0;u<n.length;++u)n[u].marker.detachLine(e);e.markedSpans=null}}function Sf(e,n){if(!!n){for(var u=0;u<n.length;++u)n[u].marker.attachLine(e);e.markedSpans=n}}function Ss(e){return e.inclusiveLeft?-1:0}function As(e){return e.inclusiveRight?1:0}function $l(e,n){var u=e.lines.length-n.lines.length;if(u!=0)return u;var l=e.find(),f=n.find(),y=Dt(l.from,f.from)||Ss(e)-Ss(n);if(y)return-y;var F=Dt(l.to,f.to)||As(e)-As(n);return F||n.id-e.id}function Ho(e,n){var u=Si&&e.markedSpans,l;if(u)for(var f=void 0,y=0;y<u.length;++y)f=u[y],f.marker.collapsed&&(n?f.from:f.to)==null&&(!l||$l(l,f.marker)<0)&&(l=f.marker);return l}function zt(e){return Ho(e,!0)}function Yi(e){return Ho(e,!1)}function Gt(e,n){var u=Si&&e.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var y=u[f];y.marker.collapsed&&(y.from==null||y.from<n)&&(y.to==null||y.to>n)&&(!l||$l(l,y.marker)<0)&&(l=y.marker)}return l}function Ji(e,n,u,l,f){var y=Et(e,n),F=Si&&y.markedSpans;if(F)for(var U=0;U<F.length;++U){var z=F[U];if(!!z.marker.collapsed){var Z=z.marker.find(0),xe=Dt(Z.from,u)||Ss(z.marker)-Ss(f),Ce=Dt(Z.to,l)||As(z.marker)-As(f);if(!(xe>=0&&Ce<=0||xe<=0&&Ce>=0)&&(xe<=0&&(z.marker.inclusiveRight&&f.inclusiveLeft?Dt(Z.to,u)>=0:Dt(Z.to,u)>0)||xe>=0&&(z.marker.inclusiveRight&&f.inclusiveLeft?Dt(Z.from,l)<=0:Dt(Z.from,l)<0)))return!0}}}function bt(e){for(var n;n=zt(e);)e=n.find(-1,!0).line;return e}function In(e){for(var n;n=Yi(e);)e=n.find(1,!0).line;return e}function Af(e){for(var n,u;n=Yi(e);)e=n.find(1,!0).line,(u||(u=[])).push(e);return u}function Es(e,n){var u=Et(e,n),l=bt(u);return u==l?n:qt(l)}function Kl(e,n){if(n>e.lastLine())return n;var u=Et(e,n),l;if(!ri(e,u))return n;for(;l=Yi(u);)u=l.find(1,!0).line;return qt(u)+1}function ri(e,n){var u=Si&&n.markedSpans;if(u){for(var l=void 0,f=0;f<u.length;++f)if(l=u[f],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&Cs(e,n,l))return!0}}}function Cs(e,n,u){if(u.to==null){var l=u.marker.find(1,!0);return Cs(e,l.line,Wo(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==n.text.length)return!0;for(var f=void 0,y=0;y<n.markedSpans.length;++y)if(f=n.markedSpans[y],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&Cs(e,n,f))return!0}function ni(e){e=bt(e);for(var n=0,u=e.parent,l=0;l<u.lines.length;++l){var f=u.lines[l];if(f==e)break;n+=f.height}for(var y=u.parent;y;u=y,y=u.parent)for(var F=0;F<y.children.length;++F){var U=y.children[F];if(U==u)break;n+=U.height}return n}function zo(e){if(e.height==0)return 0;for(var n=e.text.length,u,l=e;u=zt(l);){var f=u.find(0,!0);l=f.from.line,n+=f.from.ch-f.to.ch}for(l=e;u=Yi(l);){var y=u.find(0,!0);n-=l.text.length-y.from.ch,l=y.to.line,n+=l.text.length-y.to.ch}return n}function vo(e){var n=e.display,u=e.doc;n.maxLine=Et(u,u.first),n.maxLineLength=zo(n.maxLine),n.maxLineChanged=!0,u.iter(function(l){var f=zo(l);f>n.maxLineLength&&(n.maxLineLength=f,n.maxLine=l)})}var Xi=function(e,n,u){this.text=e,Sf(this,n),this.height=u?u(this):1};Xi.prototype.lineNo=function(){return qt(this)},He(Xi);function Yl(e,n,u,l){e.text=n,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Gl(e),Sf(e,u);var f=l?l(e):1;f!=e.height&&En(e,f)}function Jl(e){e.parent=null,Gl(e)}var Ef={},Cf={};function Os(e,n){if(!e||/^\s*$/.test(e))return null;var u=n.addModeClass?Cf:Ef;return u[e]||(u[e]=e.replace(/\S+/g,"cm-$&"))}function Xl(e,n){var u=de("span",null,null,g?"padding-right: .1px":null),l={pre:de("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};n.measure={};for(var f=0;f<=(n.rest?n.rest.length:0);f++){var y=f?n.rest[f-1]:n.line,F=void 0;l.pos=0,l.addToken=hn,Bn(e.display.measure)&&(F=P(y,e.doc.direction))&&(l.addToken=$o(l.addToken,F)),l.map=[];var U=n!=e.display.externalMeasured&&qt(y);Of(y,l,Ul(e,y,U)),y.styleClasses&&(y.styleClasses.bgClass&&(l.bgClass=Le(y.styleClasses.bgClass,l.bgClass||"")),y.styleClasses.textClass&&(l.textClass=Le(y.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild($i(e.display.measure))),f==0?(n.measure.map=l.map,n.measure.cache={}):((n.measure.maps||(n.measure.maps=[])).push(l.map),(n.measure.caches||(n.measure.caches=[])).push({}))}if(g){var z=l.content.lastChild;(/\bcm-tab\b/.test(z.className)||z.querySelector&&z.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Oe(e,"renderLine",e,n.line,l.pre),l.pre.className&&(l.textClass=Le(l.pre.className,l.textClass||"")),l}function Go(e){var n=ge("span","\u2022","cm-invalidchar");return n.title="\\u"+e.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function hn(e,n,u,l,f,y,F){if(!!n){var U=e.splitSpaces?wd(n,e.trailingSpace):n,z=e.cm.state.specialChars,Z=!1,xe;if(!z.test(n))e.col+=n.length,xe=document.createTextNode(U),e.map.push(e.pos,e.pos+n.length,xe),b&&A<9&&(Z=!0),e.pos+=n.length;else{xe=document.createDocumentFragment();for(var Ce=0;;){z.lastIndex=Ce;var Ne=z.exec(n),Me=Ne?Ne.index-Ce:n.length-Ce;if(Me){var Ye=document.createTextNode(U.slice(Ce,Ce+Me));b&&A<9?xe.appendChild(ge("span",[Ye])):xe.appendChild(Ye),e.map.push(e.pos,e.pos+Me,Ye),e.col+=Me,e.pos+=Me}if(!Ne)break;Ce+=Me+1;var tt=void 0;if(Ne[0]==" "){var at=e.cm.options.tabSize,ft=at-e.col%at;tt=xe.appendChild(ge("span",It(ft),"cm-tab")),tt.setAttribute("role","presentation"),tt.setAttribute("cm-text"," "),e.col+=ft}else Ne[0]=="\r"||Ne[0]==`
|
|
22
|
-
`?(tt=xe.appendChild(ge("span",Ne[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),tt.setAttribute("cm-text",Ne[0]),e.col+=1):(tt=e.cm.options.specialCharPlaceholder(Ne[0]),tt.setAttribute("cm-text",Ne[0]),b&&A<9?xe.appendChild(ge("span",[tt])):xe.appendChild(tt),e.col+=1);e.map.push(e.pos,e.pos+1,tt),e.pos++}}if(e.trailingSpace=U.charCodeAt(n.length-1)==32,u||l||f||Z||y||F){var vt=u||"";l&&(vt+=l),f&&(vt+=f);var ct=ge("span",[xe],vt,y);if(F)for(var wt in F)F.hasOwnProperty(wt)&&wt!="style"&&wt!="class"&&ct.setAttribute(wt,F[wt]);return e.content.appendChild(ct)}e.content.appendChild(xe)}}function wd(e,n){if(e.length>1&&!/ /.test(e))return e;for(var u=n,l="",f=0;f<e.length;f++){var y=e.charAt(f);y==" "&&u&&(f==e.length-1||e.charCodeAt(f+1)==32)&&(y="\xA0"),l+=y,u=y==" "}return l}function $o(e,n){return function(u,l,f,y,F,U,z){f=f?f+" cm-force-border":"cm-force-border";for(var Z=u.pos,xe=Z+l.length;;){for(var Ce=void 0,Ne=0;Ne<n.length&&(Ce=n[Ne],!(Ce.to>Z&&Ce.from<=Z));Ne++);if(Ce.to>=xe)return e(u,l,f,y,F,U,z);e(u,l.slice(0,Ce.to-Z),f,y,null,U,z),y=null,l=l.slice(Ce.to-Z),Z=Ce.to}}}function Ql(e,n,u,l){var f=!l&&u.widgetNode;f&&e.map.push(e.pos,e.pos+n,f),!l&&e.cm.display.input.needsContentAttribute&&(f||(f=e.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",u.id)),f&&(e.cm.display.input.setUneditable(f),e.content.appendChild(f)),e.pos+=n,e.trailingSpace=!1}function Of(e,n,u){var l=e.markedSpans,f=e.text,y=0;if(!l){for(var F=1;F<u.length;F+=2)n.addToken(n,f.slice(y,y=u[F]),Os(u[F+1],n.cm.options));return}for(var U=f.length,z=0,Z=1,xe="",Ce,Ne,Me=0,Ye,tt,at,ft,vt;;){if(Me==z){Ye=tt=at=Ne="",vt=null,ft=null,Me=1/0;for(var ct=[],wt=void 0,Pt=0;Pt<l.length;++Pt){var Ot=l[Pt],Ut=Ot.marker;if(Ut.type=="bookmark"&&Ot.from==z&&Ut.widgetNode)ct.push(Ut);else if(Ot.from<=z&&(Ot.to==null||Ot.to>z||Ut.collapsed&&Ot.to==z&&Ot.from==z)){if(Ot.to!=null&&Ot.to!=z&&Me>Ot.to&&(Me=Ot.to,tt=""),Ut.className&&(Ye+=" "+Ut.className),Ut.css&&(Ne=(Ne?Ne+";":"")+Ut.css),Ut.startStyle&&Ot.from==z&&(at+=" "+Ut.startStyle),Ut.endStyle&&Ot.to==Me&&(wt||(wt=[])).push(Ut.endStyle,Ot.to),Ut.title&&((vt||(vt={})).title=Ut.title),Ut.attributes)for(var ar in Ut.attributes)(vt||(vt={}))[ar]=Ut.attributes[ar];Ut.collapsed&&(!ft||$l(ft.marker,Ut)<0)&&(ft=Ot)}else Ot.from>z&&Me>Ot.from&&(Me=Ot.from)}if(wt)for(var Hr=0;Hr<wt.length;Hr+=2)wt[Hr+1]==Me&&(tt+=" "+wt[Hr]);if(!ft||ft.from==z)for(var hr=0;hr<ct.length;++hr)Ql(n,0,ct[hr]);if(ft&&(ft.from||0)==z){if(Ql(n,(ft.to==null?U+1:ft.to)-z,ft.marker,ft.from==null),ft.to==null)return;ft.to==z&&(ft=!1)}}if(z>=U)break;for(var xn=Math.min(U,Me);;){if(xe){var un=z+xe.length;if(!ft){var Fr=un>xn?xe.slice(0,xn-z):xe;n.addToken(n,Fr,Ce?Ce+Ye:Ye,at,z+Fr.length==Me?tt:"",Ne,vt)}if(un>=xn){xe=xe.slice(xn-z),z=xn;break}z=un,at=""}xe=f.slice(y,y=u[Z++]),Ce=Os(u[Z++],n.cm.options)}}}function Vr(e,n,u){this.line=n,this.rest=Af(n),this.size=this.rest?qt(At(this.rest))-u+1:1,this.node=this.text=null,this.hidden=ri(e,n)}function Ko(e,n,u){for(var l=[],f,y=n;y<u;y=f){var F=new Vr(e.doc,Et(e.doc,y),y);f=y+F.size,l.push(F)}return l}var go=null;function Tf(e){go?go.ops.push(e):e.ownsGroup=go={ops:[e],delayedCallbacks:[]}}function Pf(e){var n=e.delayedCallbacks,u=0;do{for(;u<n.length;u++)n[u].call(null);for(var l=0;l<e.ops.length;l++){var f=e.ops[l];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(u<n.length)}function Zl(e,n){var u=e.ownsGroup;if(!!u)try{Pf(u)}finally{go=null,n(u)}}var Yo=null;function Wr(e,n){var u=ee(e,n);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;go?f=go.delayedCallbacks:Yo?f=Yo:(f=Yo=[],setTimeout(Ts,0));for(var y=function(U){f.push(function(){return u[U].apply(null,l)})},F=0;F<u.length;++F)y(F)}}function Ts(){var e=Yo;Yo=null;for(var n=0;n<e.length;++n)e[n]()}function Ps(e,n,u,l){for(var f=0;f<n.changes.length;f++){var y=n.changes[f];y=="text"?Is(e,n):y=="gutter"?_l(e,n,u,l):y=="class"?Fs(e,n):y=="widget"&&Sd(e,n,l)}n.changes=null}function yo(e){return e.node==e.text&&(e.node=ge("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),b&&A<8&&(e.node.style.zIndex=2)),e.node}function If(e,n){var u=n.bgClass?n.bgClass+" "+(n.line.bgClass||""):n.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),n.background)u?n.background.className=u:(n.background.parentNode.removeChild(n.background),n.background=null);else if(u){var l=yo(n);n.background=l.insertBefore(ge("div",null,u),l.firstChild),e.display.input.setUneditable(n.background)}}function Ra(e,n){var u=e.display.externalMeasured;return u&&u.line==n.line?(e.display.externalMeasured=null,n.measure=u.measure,u.built):Xl(e,n)}function Is(e,n){var u=n.text.className,l=Ra(e,n);n.text==n.node&&(n.node=l.pre),n.text.parentNode.replaceChild(l.pre,n.text),n.text=l.pre,l.bgClass!=n.bgClass||l.textClass!=n.textClass?(n.bgClass=l.bgClass,n.textClass=l.textClass,Fs(e,n)):u&&(n.text.className=u)}function Fs(e,n){If(e,n),n.line.wrapClass?yo(n).className=n.line.wrapClass:n.node!=n.text&&(n.node.className="");var u=n.textClass?n.textClass+" "+(n.line.textClass||""):n.line.textClass;n.text.className=u||""}function _l(e,n,u,l){if(n.gutter&&(n.node.removeChild(n.gutter),n.gutter=null),n.gutterBackground&&(n.node.removeChild(n.gutterBackground),n.gutterBackground=null),n.line.gutterClass){var f=yo(n);n.gutterBackground=ge("div",null,"CodeMirror-gutter-background "+n.line.gutterClass,"left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),e.display.input.setUneditable(n.gutterBackground),f.insertBefore(n.gutterBackground,n.text)}var y=n.line.gutterMarkers;if(e.options.lineNumbers||y){var F=yo(n),U=n.gutter=ge("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(U.setAttribute("aria-hidden","true"),e.display.input.setUneditable(U),F.insertBefore(U,n.text),n.line.gutterClass&&(U.className+=" "+n.line.gutterClass),e.options.lineNumbers&&(!y||!y["CodeMirror-linenumbers"])&&(n.lineNumber=U.appendChild(ge("div",ho(e.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),y)for(var z=0;z<e.display.gutterSpecs.length;++z){var Z=e.display.gutterSpecs[z].className,xe=y.hasOwnProperty(Z)&&y[Z];xe&&U.appendChild(ge("div",[xe],"CodeMirror-gutter-elt","left: "+l.gutterLeft[Z]+"px; width: "+l.gutterWidth[Z]+"px"))}}}function Sd(e,n,u){n.alignable&&(n.alignable=null);for(var l=ue("CodeMirror-linewidget"),f=n.node.firstChild,y=void 0;f;f=y)y=f.nextSibling,l.test(f.className)&&n.node.removeChild(f);ql(e,n,u)}function Ad(e,n,u,l){var f=Ra(e,n);return n.text=n.node=f.pre,f.bgClass&&(n.bgClass=f.bgClass),f.textClass&&(n.textClass=f.textClass),Fs(e,n),_l(e,n,u,l),ql(e,n,l),n.node}function ql(e,n,u){if(Ai(e,n.line,n,u,!0),n.rest)for(var l=0;l<n.rest.length;l++)Ai(e,n.rest[l],n,u,!1)}function Ai(e,n,u,l,f){if(!!n.widgets)for(var y=yo(u),F=0,U=n.widgets;F<U.length;++F){var z=U[F],Z=ge("div",[z.node],"CodeMirror-linewidget"+(z.className?" "+z.className:""));z.handleMouseEvents||Z.setAttribute("cm-ignore-events","true"),Ff(z,Z,u,l),e.display.input.setUneditable(Z),f&&z.above?y.insertBefore(Z,u.gutter||u.text):y.appendChild(Z),Wr(z,"redraw")}}function Ff(e,n,u,l){if(e.noHScroll){(u.alignable||(u.alignable=[])).push(n);var f=l.wrapperWidth;n.style.left=l.fixedPos+"px",e.coverGutter||(f-=l.gutterTotalWidth,n.style.paddingLeft=l.gutterTotalWidth+"px"),n.style.width=f+"px"}e.coverGutter&&(n.style.zIndex=5,n.style.position="relative",e.noHScroll||(n.style.marginLeft=-l.gutterTotalWidth+"px"))}function Jo(e){if(e.height!=null)return e.height;var n=e.doc.cm;if(!n)return 0;if(!ae(document.body,e.node)){var u="position: relative;";e.coverGutter&&(u+="margin-left: -"+n.display.gutters.offsetWidth+"px;"),e.noHScroll&&(u+="width: "+n.display.wrapper.clientWidth+"px;"),ye(n.display.measure,ge("div",[e.node],null,u))}return e.height=e.node.parentNode.offsetHeight}function ii(e,n){for(var u=Ft(n);u!=e.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==e.sizer&&u!=e.mover)return!0}function Ma(e){return e.lineSpace.offsetTop}function ks(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function eu(e){if(e.cachedPaddingH)return e.cachedPaddingH;var n=ye(e.measure,ge("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(n):n.currentStyle,l={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(e.cachedPaddingH=l),l}function Qn(e){return mt-e.display.nativeBarWidth}function vn(e){return e.display.scroller.clientWidth-Qn(e)-e.display.barWidth}function La(e){return e.display.scroller.clientHeight-Qn(e)-e.display.barHeight}function Qi(e,n,u){var l=e.options.lineWrapping,f=l&&vn(e);if(!n.measure.heights||l&&n.measure.width!=f){var y=n.measure.heights=[];if(l){n.measure.width=f;for(var F=n.text.firstChild.getClientRects(),U=0;U<F.length-1;U++){var z=F[U],Z=F[U+1];Math.abs(z.bottom-Z.bottom)>2&&y.push((z.bottom+Z.top)/2-u.top)}}y.push(u.bottom-u.top)}}function tu(e,n,u){if(e.line==n)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var l=0;l<e.rest.length;l++)if(e.rest[l]==n)return{map:e.measure.maps[l],cache:e.measure.caches[l]};for(var f=0;f<e.rest.length;f++)if(qt(e.rest[f])>u)return{map:e.measure.maps[f],cache:e.measure.caches[f],before:!0}}}function kf(e,n){n=bt(n);var u=qt(n),l=e.display.externalMeasured=new Vr(e.doc,n,u);l.lineN=u;var f=l.built=Xl(e,l);return l.text=f.pre,ye(e.display.lineMeasure,f.pre),l}function ru(e,n,u,l){return gn(e,mo(e,n),u,l)}function Rs(e,n){if(n>=e.display.viewFrom&&n<e.display.viewTo)return e.display.view[Ei(e,n)];var u=e.display.externalMeasured;if(u&&n>=u.lineN&&n<u.lineN+u.size)return u}function mo(e,n){var u=qt(n),l=Rs(e,u);l&&!l.text?l=null:l&&l.changes&&(Ps(e,l,u,js(e)),e.curOp.forceUpdate=!0),l||(l=kf(e,n));var f=tu(l,n,u);return{line:n,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function gn(e,n,u,l,f){n.before&&(u=-1);var y=u+(l||""),F;return n.cache.hasOwnProperty(y)?F=n.cache[y]:(n.rect||(n.rect=n.view.text.getBoundingClientRect()),n.hasHeights||(Qi(e,n.view,n.rect),n.hasHeights=!0),F=Ms(e,n,u,l),F.bogus||(n.cache[y]=F)),{left:F.left,right:F.right,top:f?F.rtop:F.top,bottom:f?F.rbottom:F.bottom}}var nu={left:0,right:0,top:0,bottom:0};function iu(e,n,u){for(var l,f,y,F,U,z,Z=0;Z<e.length;Z+=3)if(U=e[Z],z=e[Z+1],n<U?(f=0,y=1,F="left"):n<z?(f=n-U,y=f+1):(Z==e.length-3||n==z&&e[Z+3]>n)&&(y=z-U,f=y-1,n>=z&&(F="right")),f!=null){if(l=e[Z+2],U==z&&u==(l.insertLeft?"left":"right")&&(F=u),u=="left"&&f==0)for(;Z&&e[Z-2]==e[Z-3]&&e[Z-1].insertLeft;)l=e[(Z-=3)+2],F="left";if(u=="right"&&f==z-U)for(;Z<e.length-3&&e[Z+3]==e[Z+4]&&!e[Z+5].insertLeft;)l=e[(Z+=3)+2],F="right";break}return{node:l,start:f,end:y,collapse:F,coverStart:U,coverEnd:z}}function Rf(e,n){var u=nu;if(n=="left")for(var l=0;l<e.length&&(u=e[l]).left==u.right;l++);else for(var f=e.length-1;f>=0&&(u=e[f]).left==u.right;f--);return u}function Ms(e,n,u,l){var f=iu(n.map,u,l),y=f.node,F=f.start,U=f.end,z=f.collapse,Z;if(y.nodeType==3){for(var xe=0;xe<4;xe++){for(;F&&Re(n.line.text.charAt(f.coverStart+F));)--F;for(;f.coverStart+U<f.coverEnd&&Re(n.line.text.charAt(f.coverStart+U));)++U;if(b&&A<9&&F==0&&U==f.coverEnd-f.coverStart?Z=y.parentNode.getBoundingClientRect():Z=Rf(le(y,F,U).getClientRects(),l),Z.left||Z.right||F==0)break;U=F,F=F-1,z="right"}b&&A<11&&(Z=Mf(e.display.measure,Z))}else{F>0&&(z=l="right");var Ce;e.options.lineWrapping&&(Ce=y.getClientRects()).length>1?Z=Ce[l=="right"?Ce.length-1:0]:Z=y.getBoundingClientRect()}if(b&&A<9&&!F&&(!Z||!Z.left&&!Z.right)){var Ne=y.parentNode.getClientRects()[0];Ne?Z={left:Ne.left,right:Ne.left+bo(e.display),top:Ne.top,bottom:Ne.bottom}:Z=nu}for(var Me=Z.top-n.rect.top,Ye=Z.bottom-n.rect.top,tt=(Me+Ye)/2,at=n.view.measure.heights,ft=0;ft<at.length-1&&!(tt<at[ft]);ft++);var vt=ft?at[ft-1]:0,ct=at[ft],wt={left:(z=="right"?Z.right:Z.left)-n.rect.left,right:(z=="left"?Z.left:Z.right)-n.rect.left,top:vt,bottom:ct};return!Z.left&&!Z.right&&(wt.bogus=!0),e.options.singleCursorHeightPerLine||(wt.rtop=Me,wt.rbottom=Ye),wt}function Mf(e,n){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Pa(e))return n;var u=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:n.left*u,right:n.right*u,top:n.top*l,bottom:n.bottom*l}}function ou(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var n=0;n<e.rest.length;n++)e.measure.caches[n]={}}function Ls(e){e.display.externalMeasure=null,ne(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)ou(e.display.view[n])}function Xo(e){Ls(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Ds(){return N&&X?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ns(){return N&&X?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Bs(e){var n=0;if(e.widgets)for(var u=0;u<e.widgets.length;++u)e.widgets[u].above&&(n+=Jo(e.widgets[u]));return n}function Da(e,n,u,l,f){if(!f){var y=Bs(n);u.top+=y,u.bottom+=y}if(l=="line")return u;l||(l="local");var F=ni(n);if(l=="local"?F+=Ma(e.display):F-=e.display.viewOffset,l=="page"||l=="window"){var U=e.display.lineSpace.getBoundingClientRect();F+=U.top+(l=="window"?0:Ns());var z=U.left+(l=="window"?0:Ds());u.left+=z,u.right+=z}return u.top+=F,u.bottom+=F,u}function Us(e,n,u){if(u=="div")return n;var l=n.left,f=n.top;if(u=="page")l-=Ds(),f-=Ns();else if(u=="local"||!u){var y=e.display.sizer.getBoundingClientRect();l+=y.left,f+=y.top}var F=e.display.lineSpace.getBoundingClientRect();return{left:l-F.left,top:f-F.top}}function Na(e,n,u,l,f){return l||(l=Et(e.doc,n.line)),Da(e,l,ru(e,l,n.ch,f),u)}function en(e,n,u,l,f,y){l=l||Et(e.doc,n.line),f||(f=mo(e,l));function F(Ye,tt){var at=gn(e,f,Ye,tt?"right":"left",y);return tt?at.left=at.right:at.right=at.left,Da(e,l,at,u)}var U=P(l,e.doc.direction),z=n.ch,Z=n.sticky;if(z>=l.text.length?(z=l.text.length,Z="before"):z<=0&&(z=0,Z="after"),!U)return F(Z=="before"?z-1:z,Z=="before");function xe(Ye,tt,at){var ft=U[tt],vt=ft.level==1;return F(at?Ye-1:Ye,vt!=at)}var Ce=W(U,z,Z),Ne=Ie,Me=xe(z,Ce,Z=="before");return Ne!=null&&(Me.other=xe(z,Ne,Z!="before")),Me}function Qo(e,n){var u=0;n=st(e.doc,n),e.options.lineWrapping||(u=bo(e.display)*n.ch);var l=Et(e.doc,n.line),f=ni(l)+Ma(e.display);return{left:u,right:u,top:f,bottom:f+l.height}}function Zo(e,n,u,l,f){var y=nt(e,n,u);return y.xRel=f,l&&(y.outside=l),y}function Zi(e,n,u){var l=e.doc;if(u+=e.display.viewOffset,u<0)return Zo(l.first,0,null,-1,-1);var f=jn(l,u),y=l.first+l.size-1;if(f>y)return Zo(l.first+l.size-1,Et(l,y).text.length,null,1,1);n<0&&(n=0);for(var F=Et(l,f);;){var U=Lf(e,F,f,n,u),z=Gt(F,U.ch+(U.xRel>0||U.outside>0?1:0));if(!z)return U;var Z=z.find(1);if(Z.line==f)return Z;F=Et(l,f=Z.line)}}function _i(e,n,u,l){l-=Bs(n);var f=n.text.length,y=Ae(function(F){return gn(e,u,F-1).bottom<=l},f,0);return f=Ae(function(F){return gn(e,u,F).top>l},y,f),{begin:y,end:f}}function au(e,n,u,l){u||(u=mo(e,n));var f=Da(e,n,gn(e,u,l),"line").top;return _i(e,n,u,f)}function _o(e,n,u,l){return e.bottom<=u?!1:e.top>u?!0:(l?e.left:e.right)>n}function Lf(e,n,u,l,f){f-=ni(n);var y=mo(e,n),F=Bs(n),U=0,z=n.text.length,Z=!0,xe=P(n,e.doc.direction);if(xe){var Ce=(e.options.lineWrapping?su:Df)(e,n,u,y,xe,l,f);Z=Ce.level!=1,U=Z?Ce.from:Ce.to-1,z=Z?Ce.to:Ce.from-1}var Ne=null,Me=null,Ye=Ae(function(Pt){var Ot=gn(e,y,Pt);return Ot.top+=F,Ot.bottom+=F,_o(Ot,l,f,!1)?(Ot.top<=f&&Ot.left<=l&&(Ne=Pt,Me=Ot),!0):!1},U,z),tt,at,ft=!1;if(Me){var vt=l-Me.left<Me.right-l,ct=vt==Z;Ye=Ne+(ct?0:1),at=ct?"after":"before",tt=vt?Me.left:Me.right}else{!Z&&(Ye==z||Ye==U)&&Ye++,at=Ye==0?"after":Ye==n.text.length?"before":gn(e,y,Ye-(Z?1:0)).bottom+F<=f==Z?"after":"before";var wt=en(e,nt(u,Ye,at),"line",n,y);tt=wt.left,ft=f<wt.top?-1:f>=wt.bottom?1:0}return Ye=be(n.text,Ye,1),Zo(u,Ye,at,ft,l-tt)}function Df(e,n,u,l,f,y,F){var U=Ae(function(Ce){var Ne=f[Ce],Me=Ne.level!=1;return _o(en(e,nt(u,Me?Ne.to:Ne.from,Me?"before":"after"),"line",n,l),y,F,!0)},0,f.length-1),z=f[U];if(U>0){var Z=z.level!=1,xe=en(e,nt(u,Z?z.from:z.to,Z?"after":"before"),"line",n,l);_o(xe,y,F,!0)&&xe.top>F&&(z=f[U-1])}return z}function su(e,n,u,l,f,y,F){var U=_i(e,n,l,F),z=U.begin,Z=U.end;/\s/.test(n.text.charAt(Z-1))&&Z--;for(var xe=null,Ce=null,Ne=0;Ne<f.length;Ne++){var Me=f[Ne];if(!(Me.from>=Z||Me.to<=z)){var Ye=Me.level!=1,tt=gn(e,l,Ye?Math.min(Z,Me.to)-1:Math.max(z,Me.from)).right,at=tt<y?y-tt+1e9:tt-y;(!xe||Ce>at)&&(xe=Me,Ce=at)}}return xe||(xe=f[f.length-1]),xe.from<z&&(xe={from:z,to:xe.to,level:xe.level}),xe.to>Z&&(xe={from:xe.from,to:Z,level:xe.level}),xe}var Vn;function xo(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Vn==null){Vn=ge("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)Vn.appendChild(document.createTextNode("x")),Vn.appendChild(ge("br"));Vn.appendChild(document.createTextNode("x"))}ye(e.measure,Vn);var u=Vn.offsetHeight/50;return u>3&&(e.cachedTextHeight=u),ne(e.measure),u||1}function bo(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var n=ge("span","xxxxxxxxxx"),u=ge("pre",[n],"CodeMirror-line-like");ye(e.measure,u);var l=n.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(e.cachedCharWidth=f),f||10}function js(e){for(var n=e.display,u={},l={},f=n.gutters.clientLeft,y=n.gutters.firstChild,F=0;y;y=y.nextSibling,++F){var U=e.display.gutterSpecs[F].className;u[U]=y.offsetLeft+y.clientLeft+f,l[U]=y.clientWidth}return{fixedPos:Vs(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:n.wrapper.clientWidth}}function Vs(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ws(e){var n=xo(e.display),u=e.options.lineWrapping,l=u&&Math.max(5,e.display.scroller.clientWidth/bo(e.display)-3);return function(f){if(ri(e.doc,f))return 0;var y=0;if(f.widgets)for(var F=0;F<f.widgets.length;F++)f.widgets[F].height&&(y+=f.widgets[F].height);return u?y+(Math.ceil(f.text.length/l)||1)*n:y+n}}function qo(e){var n=e.doc,u=Ws(e);n.iter(function(l){var f=u(l);f!=l.height&&En(l,f)})}function qi(e,n,u,l){var f=e.display;if(!u&&Ft(n).getAttribute("cm-not-content")=="true")return null;var y,F,U=f.lineSpace.getBoundingClientRect();try{y=n.clientX-U.left,F=n.clientY-U.top}catch(Ce){return null}var z=Zi(e,y,F),Z;if(l&&z.xRel>0&&(Z=Et(e.doc,z.line).text).length==z.ch){var xe=Je(Z,Z.length,e.options.tabSize)-Z.length;z=nt(z.line,Math.max(0,Math.round((y-eu(e.display).left)/bo(e.display))-xe))}return z}function Ei(e,n){if(n>=e.display.viewTo||(n-=e.display.viewFrom,n<0))return null;for(var u=e.display.view,l=0;l<u.length;l++)if(n-=u[l].size,n<0)return l}function Kr(e,n,u,l){n==null&&(n=e.doc.first),u==null&&(u=e.doc.first+e.doc.size),l||(l=0);var f=e.display;if(l&&u<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>n)&&(f.updateLineNumbers=n),e.curOp.viewChanged=!0,n>=f.viewTo)Si&&Es(e.doc,n)<f.viewTo&&oi(e);else if(u<=f.viewFrom)Si&&Kl(e.doc,u+l)>f.viewFrom?oi(e):(f.viewFrom+=l,f.viewTo+=l);else if(n<=f.viewFrom&&u>=f.viewTo)oi(e);else if(n<=f.viewFrom){var y=Hs(e,u,u+l,1);y?(f.view=f.view.slice(y.index),f.viewFrom=y.lineN,f.viewTo+=l):oi(e)}else if(u>=f.viewTo){var F=Hs(e,n,n,-1);F?(f.view=f.view.slice(0,F.index),f.viewTo=F.lineN):oi(e)}else{var U=Hs(e,n,n,-1),z=Hs(e,u,u+l,1);U&&z?(f.view=f.view.slice(0,U.index).concat(Ko(e,U.lineN,z.lineN)).concat(f.view.slice(z.index)),f.viewTo+=l):oi(e)}var Z=f.externalMeasured;Z&&(u<Z.lineN?Z.lineN+=l:n<Z.lineN+Z.size&&(f.externalMeasured=null))}function Ci(e,n,u){e.curOp.viewChanged=!0;var l=e.display,f=e.display.externalMeasured;if(f&&n>=f.lineN&&n<f.lineN+f.size&&(l.externalMeasured=null),!(n<l.viewFrom||n>=l.viewTo)){var y=l.view[Ei(e,n)];if(y.node!=null){var F=y.changes||(y.changes=[]);pt(F,u)==-1&&F.push(u)}}}function oi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Hs(e,n,u,l){var f=Ei(e,n),y,F=e.display.view;if(!Si||u==e.doc.first+e.doc.size)return{index:f,lineN:u};for(var U=e.display.viewFrom,z=0;z<f;z++)U+=F[z].size;if(U!=n){if(l>0){if(f==F.length-1)return null;y=U+F[f].size-n,f++}else y=U-n;n+=y,u+=y}for(;Es(e.doc,u)!=u;){if(f==(l<0?0:F.length-1))return null;u+=l*F[f-(l<0?1:0)].size,f+=l}return{index:f,lineN:u}}function Nf(e,n,u){var l=e.display,f=l.view;f.length==0||n>=l.viewTo||u<=l.viewFrom?(l.view=Ko(e,n,u),l.viewFrom=n):(l.viewFrom>n?l.view=Ko(e,n,l.viewFrom).concat(l.view):l.viewFrom<n&&(l.view=l.view.slice(Ei(e,n))),l.viewFrom=n,l.viewTo<u?l.view=l.view.concat(Ko(e,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Ei(e,u)))),l.viewTo=u}function Oi(e){for(var n=e.display.view,u=0,l=0;l<n.length;l++){var f=n[l];!f.hidden&&(!f.node||f.changes)&&++u}return u}function wo(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Bf(e,n){n===void 0&&(n=!0);var u=e.doc,l={},f=l.cursors=document.createDocumentFragment(),y=l.selection=document.createDocumentFragment(),F=e.options.$customCursor;F&&(n=!0);for(var U=0;U<u.sel.ranges.length;U++)if(!(!n&&U==u.sel.primIndex)){var z=u.sel.ranges[U];if(!(z.from().line>=e.display.viewTo||z.to().line<e.display.viewFrom)){var Z=z.empty();if(F){var xe=F(e,z);xe&&Ti(e,xe,f)}else(Z||e.options.showCursorWhenSelecting)&&Ti(e,z.head,f);Z||Uf(e,z,y)}}return l}function Ti(e,n,u){var l=en(e,n,"div",null,null,!e.options.singleCursorHeightPerLine),f=u.appendChild(ge("div","\xA0","CodeMirror-cursor"));if(f.style.left=l.left+"px",f.style.top=l.top+"px",f.style.height=Math.max(0,l.bottom-l.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var y=Na(e,n,"div",null,null),F=y.right-y.left;f.style.width=(F>0?F:e.defaultCharWidth())+"px"}if(l.other){var U=u.appendChild(ge("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));U.style.display="",U.style.left=l.other.left+"px",U.style.top=l.other.top+"px",U.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function zs(e,n){return e.top-n.top||e.left-n.left}function Uf(e,n,u){var l=e.display,f=e.doc,y=document.createDocumentFragment(),F=eu(e.display),U=F.left,z=Math.max(l.sizerWidth,vn(e)-l.sizer.offsetLeft)-F.right,Z=f.direction=="ltr";function xe(ct,wt,Pt,Ot){wt<0&&(wt=0),wt=Math.round(wt),Ot=Math.round(Ot),y.appendChild(ge("div",null,"CodeMirror-selected","position: absolute; left: "+ct+`px;
|
|
23
|
-
top: `+wt+"px; width: "+(Pt==null?z-ct:Pt)+`px;
|
|
24
|
-
height: `+(Ot-wt)+"px"))}function Ce(ct,wt,Pt){var Ot=Et(f,ct),Ut=Ot.text.length,ar,Hr;function hr(Fr,fn){return Na(e,nt(ct,Fr),"div",Ot,fn)}function xn(Fr,fn,zr){var kr=au(e,Ot,null,Fr),Rr=fn=="ltr"==(zr=="after")?"left":"right",br=zr=="after"?kr.begin:kr.end-(/\s/.test(Ot.text.charAt(kr.end-1))?2:1);return hr(br,Rr)[Rr]}var un=P(Ot,f.direction);return T(un,wt||0,Pt==null?Ut:Pt,function(Fr,fn,zr,kr){var Rr=zr=="ltr",br=hr(Fr,Rr?"left":"right"),cn=hr(fn-1,Rr?"right":"left"),uo=wt==null&&Fr==0,ji=Pt==null&&fn==Ut,Xr=kr==0,Gn=!un||kr==un.length-1;if(cn.top-br.top<=3){var Mr=(Z?uo:ji)&&Xr,wl=(Z?ji:uo)&&Gn,Mn=Mr?U:(Rr?br:cn).left,Vi=wl?z:(Rr?cn:br).right;xe(Mn,br.top,Vi-Mn,br.bottom)}else{var Qr,dn,fo,fs;Rr?(Qr=Z&&uo&&Xr?U:br.left,dn=Z?z:xn(Fr,zr,"before"),fo=Z?U:xn(fn,zr,"after"),fs=Z&&ji&&Gn?z:cn.right):(Qr=Z?xn(Fr,zr,"before"):U,dn=!Z&&uo&&Xr?z:br.right,fo=!Z&&ji&&Gn?U:cn.left,fs=Z?xn(fn,zr,"after"):z),xe(Qr,br.top,dn-Qr,br.bottom),br.bottom<cn.top&&xe(U,br.bottom,null,cn.top),xe(fo,cn.top,fs-fo,cn.bottom)}(!ar||zs(br,ar)<0)&&(ar=br),zs(cn,ar)<0&&(ar=cn),(!Hr||zs(br,Hr)<0)&&(Hr=br),zs(cn,Hr)<0&&(Hr=cn)}),{start:ar,end:Hr}}var Ne=n.from(),Me=n.to();if(Ne.line==Me.line)Ce(Ne.line,Ne.ch,Me.ch);else{var Ye=Et(f,Ne.line),tt=Et(f,Me.line),at=bt(Ye)==bt(tt),ft=Ce(Ne.line,Ne.ch,at?Ye.text.length+1:null).end,vt=Ce(Me.line,at?0:null,Me.ch).start;at&&(ft.top<vt.top-2?(xe(ft.right,ft.top,null,ft.bottom),xe(U,vt.top,vt.left,vt.bottom)):xe(ft.right,ft.top,vt.left-ft.right,ft.bottom)),ft.bottom<vt.top&&xe(U,ft.bottom,null,vt.top)}u.appendChild(y)}function lu(e){if(!!e.state.focused){var n=e.display;clearInterval(n.blinker);var u=!0;n.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?n.blinker=setInterval(function(){e.hasFocus()||So(e),n.cursorDiv.style.visibility=(u=!u)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}}function jf(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||$s(e))}function Gs(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&So(e))},100)}function $s(e,n){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Oe(e,"focus",e,n),e.state.focused=!0,Ve(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),g&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),lu(e))}function So(e,n){e.state.delayingBlurEvent||(e.state.focused&&(Oe(e,"blur",e,n),e.state.focused=!1,te(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Ks(e){for(var n=e.display,u=n.lineDiv.offsetTop,l=Math.max(0,n.scroller.getBoundingClientRect().top),f=n.lineDiv.getBoundingClientRect().top,y=0,F=0;F<n.view.length;F++){var U=n.view[F],z=e.options.lineWrapping,Z=void 0,xe=0;if(!U.hidden){if(f+=U.line.height,b&&A<8){var Ce=U.node.offsetTop+U.node.offsetHeight;Z=Ce-u,u=Ce}else{var Ne=U.node.getBoundingClientRect();Z=Ne.bottom-Ne.top,!z&&U.text.firstChild&&(xe=U.text.firstChild.getBoundingClientRect().right-Ne.left-1)}var Me=U.line.height-Z;if((Me>.005||Me<-.005)&&(f<l&&(y-=Me),En(U.line,Z),Vf(U.line),U.rest))for(var Ye=0;Ye<U.rest.length;Ye++)Vf(U.rest[Ye]);if(xe>e.display.sizerWidth){var tt=Math.ceil(xe/bo(e.display));tt>e.display.maxLineLength&&(e.display.maxLineLength=tt,e.display.maxLine=U.line,e.display.maxLineChanged=!0)}}}Math.abs(y)>2&&(n.scroller.scrollTop+=y)}function Vf(e){if(e.widgets)for(var n=0;n<e.widgets.length;++n){var u=e.widgets[n],l=u.node.parentNode;l&&(u.height=l.offsetHeight)}}function Ys(e,n,u){var l=u&&u.top!=null?Math.max(0,u.top):e.scroller.scrollTop;l=Math.floor(l-Ma(e));var f=u&&u.bottom!=null?u.bottom:l+e.wrapper.clientHeight,y=jn(n,l),F=jn(n,f);if(u&&u.ensure){var U=u.ensure.from.line,z=u.ensure.to.line;U<y?(y=U,F=jn(n,ni(Et(n,U))+e.wrapper.clientHeight)):Math.min(z,n.lastLine())>=F&&(y=jn(n,ni(Et(n,z))-e.wrapper.clientHeight),F=z)}return{from:y,to:Math.max(F,y+1)}}function Wf(e,n){if(!Pe(e,"scrollCursorIntoView")){var u=e.display,l=u.sizer.getBoundingClientRect(),f=null;if(n.top+l.top<0?f=!0:n.bottom+l.top>(window.innerHeight||document.documentElement.clientHeight)&&(f=!1),f!=null&&!H){var y=ge("div","\u200B",null,`position: absolute;
|
|
25
|
-
top: `+(n.top-u.viewOffset-Ma(e.display))+`px;
|
|
26
|
-
height: `+(n.bottom-n.top+Qn(e)+u.barHeight)+`px;
|
|
27
|
-
left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");e.display.lineSpace.appendChild(y),y.scrollIntoView(f),e.display.lineSpace.removeChild(y)}}}function Ed(e,n,u,l){l==null&&(l=0);var f;!e.options.lineWrapping&&n==u&&(u=n.sticky=="before"?nt(n.line,n.ch+1,"before"):n,n=n.ch?nt(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n);for(var y=0;y<5;y++){var F=!1,U=en(e,n),z=!u||u==n?U:en(e,u);f={left:Math.min(U.left,z.left),top:Math.min(U.top,z.top)-l,right:Math.max(U.left,z.left),bottom:Math.max(U.bottom,z.bottom)+l};var Z=eo(e,f),xe=e.doc.scrollTop,Ce=e.doc.scrollLeft;if(Z.scrollTop!=null&&(sn(e,Z.scrollTop),Math.abs(e.doc.scrollTop-xe)>1&&(F=!0)),Z.scrollLeft!=null&&(Wn(e,Z.scrollLeft),Math.abs(e.doc.scrollLeft-Ce)>1&&(F=!0)),!F)break}return f}function Cd(e,n){var u=eo(e,n);u.scrollTop!=null&&sn(e,u.scrollTop),u.scrollLeft!=null&&Wn(e,u.scrollLeft)}function eo(e,n){var u=e.display,l=xo(e.display);n.top<0&&(n.top=0);var f=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:u.scroller.scrollTop,y=La(e),F={};n.bottom-n.top>y&&(n.bottom=n.top+y);var U=e.doc.height+ks(u),z=n.top<l,Z=n.bottom>U-l;if(n.top<f)F.scrollTop=z?0:n.top;else if(n.bottom>f+y){var xe=Math.min(n.top,(Z?U:n.bottom)-y);xe!=f&&(F.scrollTop=xe)}var Ce=e.options.fixedGutter?0:u.gutters.offsetWidth,Ne=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:u.scroller.scrollLeft-Ce,Me=vn(e)-u.gutters.offsetWidth,Ye=n.right-n.left>Me;return Ye&&(n.right=n.left+Me),n.left<10?F.scrollLeft=0:n.left<Ne?F.scrollLeft=Math.max(0,n.left+Ce-(Ye?0:10)):n.right>Me+Ne-3&&(F.scrollLeft=n.right+(Ye?0:10)-Me),F}function an(e,n){n!=null&&(ea(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+n)}function yn(e){ea(e);var n=e.getCursor();e.curOp.scrollToPos={from:n,to:n,margin:e.options.cursorScrollMargin}}function mn(e,n,u){(n!=null||u!=null)&&ea(e),n!=null&&(e.curOp.scrollLeft=n),u!=null&&(e.curOp.scrollTop=u)}function Hf(e,n){ea(e),e.curOp.scrollToPos=n}function ea(e){var n=e.curOp.scrollToPos;if(n){e.curOp.scrollToPos=null;var u=Qo(e,n.from),l=Qo(e,n.to);ta(e,u,l,n.margin)}}function ta(e,n,u,l){var f=eo(e,{left:Math.min(n.left,u.left),top:Math.min(n.top,u.top)-l,right:Math.max(n.right,u.right),bottom:Math.max(n.bottom,u.bottom)+l});mn(e,f.scrollLeft,f.scrollTop)}function sn(e,n){Math.abs(e.doc.scrollTop-n)<2||(c||zn(e,{top:n}),tr(e,n,!0),c&&zn(e),ro(e,100))}function tr(e,n,u){n=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,n)),!(e.display.scroller.scrollTop==n&&!u)&&(e.doc.scrollTop=n,e.display.scrollbars.setScrollTop(n),e.display.scroller.scrollTop!=n&&(e.display.scroller.scrollTop=n))}function Wn(e,n,u,l){n=Math.max(0,Math.min(n,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((u?n==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-n)<2)&&!l)&&(e.doc.scrollLeft=n,Zs(e),e.display.scroller.scrollLeft!=n&&(e.display.scroller.scrollLeft=n),e.display.scrollbars.setScrollLeft(n))}function Ao(e){var n=e.display,u=n.gutters.offsetWidth,l=Math.round(e.doc.height+ks(e.display));return{clientHeight:n.scroller.clientHeight,viewHeight:n.wrapper.clientHeight,scrollWidth:n.scroller.scrollWidth,clientWidth:n.scroller.clientWidth,viewWidth:n.wrapper.clientWidth,barLeft:e.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+Qn(e)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:u}}var ai=function(e,n,u){this.cm=u;var l=this.vert=ge("div",[ge("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=ge("div",[ge("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=f.tabIndex=-1,e(l),e(f),D(l,"scroll",function(){l.clientHeight&&n(l.scrollTop,"vertical")}),D(f,"scroll",function(){f.clientWidth&&n(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,b&&A<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ai.prototype.update=function(e){var n=e.scrollWidth>e.clientWidth+1,u=e.scrollHeight>e.clientHeight+1,l=e.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=n?l+"px":"0";var f=e.viewHeight-(n?l:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+f)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(n){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=e.barLeft+"px";var y=e.viewWidth-e.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+y)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:n?l:0}},ai.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ai.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ai.prototype.zeroWidthHack=function(){var e=C&&!_?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ut,this.disableVert=new ut},ai.prototype.enableZeroWidthBar=function(e,n,u){e.style.pointerEvents="auto";function l(){var f=e.getBoundingClientRect(),y=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);y!=e?e.style.pointerEvents="none":n.set(1e3,l)}n.set(1e3,l)},ai.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Eo=function(){};Eo.prototype.update=function(){return{bottom:0,right:0}},Eo.prototype.setScrollLeft=function(){},Eo.prototype.setScrollTop=function(){},Eo.prototype.clear=function(){};function to(e,n){n||(n=Ao(e));var u=e.display.barWidth,l=e.display.barHeight;Co(e,n);for(var f=0;f<4&&u!=e.display.barWidth||l!=e.display.barHeight;f++)u!=e.display.barWidth&&e.options.lineWrapping&&Ks(e),Co(e,Ao(e)),u=e.display.barWidth,l=e.display.barHeight}function Co(e,n){var u=e.display,l=u.scrollbars.update(n);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&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=l.bottom+"px",u.gutterFiller.style.width=n.gutterWidth+"px"):u.gutterFiller.style.display=""}var Js={native:ai,null:Eo};function Ba(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&te(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Js[e.options.scrollbarStyle](function(n){e.display.wrapper.insertBefore(n,e.display.scrollbarFiller),D(n,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),n.setAttribute("cm-not-content","true")},function(n,u){u=="horizontal"?Wn(e,n):sn(e,n)},e),e.display.scrollbars.addClass&&Ve(e.display.wrapper,e.display.scrollbars.addClass)}var Ht=0;function Pi(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.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:++Ht,markArrays:null},Tf(e.curOp)}function Ii(e){var n=e.curOp;n&&Zl(n,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;si(u)})}function si(e){for(var n=e.ops,u=0;u<n.length;u++)ra(n[u]);for(var l=0;l<n.length;l++)Hn(n[l]);for(var f=0;f<n.length;f++)Oo(n[f]);for(var y=0;y<n.length;y++)tn(n[y]);for(var F=0;F<n.length;F++)Fi(n[F])}function ra(e){var n=e.cm,u=n.display;Od(n),e.updateMaxLine&&vo(n),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<u.viewFrom||e.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&n.options.lineWrapping,e.update=e.mustUpdate&&new na(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Hn(e){e.updatedDisplay=e.mustUpdate&&To(e.cm,e.update)}function Oo(e){var n=e.cm,u=n.display;e.updatedDisplay&&Ks(n),e.barMeasure=Ao(n),u.maxLineChanged&&!n.options.lineWrapping&&(e.adjustWidthTo=ru(n,u.maxLine,u.maxLine.text.length).left+3,n.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+e.adjustWidthTo+Qn(n)+n.display.barWidth),e.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+e.adjustWidthTo-vn(n))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=u.input.prepareSelection())}function tn(e){var n=e.cm;e.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<n.doc.scrollLeft&&Wn(n,Math.min(n.display.scroller.scrollLeft,e.maxScrollLeft),!0),n.display.maxLineChanged=!1);var u=e.focus&&e.focus==De();e.preparedSelection&&n.display.input.showSelection(e.preparedSelection,u),(e.updatedDisplay||e.startHeight!=n.doc.height)&&to(n,e.barMeasure),e.updatedDisplay&&Pr(n,e.barMeasure),e.selectionChanged&&lu(n),n.state.focused&&e.updateInput&&n.display.input.reset(e.typing),u&&jf(e.cm)}function Fi(e){var n=e.cm,u=n.display,l=n.doc;if(e.updatedDisplay&&Xs(n,e.update),u.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),e.scrollTop!=null&&tr(n,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Wn(n,e.scrollLeft,!0,!0),e.scrollToPos){var f=Ed(n,st(l,e.scrollToPos.from),st(l,e.scrollToPos.to),e.scrollToPos.margin);Wf(n,f)}var y=e.maybeHiddenMarkers,F=e.maybeUnhiddenMarkers;if(y)for(var U=0;U<y.length;++U)y[U].lines.length||Oe(y[U],"hide");if(F)for(var z=0;z<F.length;++z)F[z].lines.length&&Oe(F[z],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=n.display.scroller.scrollTop),e.changeObjs&&Oe(n,"changes",n,e.changeObjs),e.update&&e.update.finish()}function Jr(e,n){if(e.curOp)return n();Pi(e);try{return n()}finally{Ii(e)}}function mr(e,n){return function(){if(e.curOp)return n.apply(e,arguments);Pi(e);try{return n.apply(e,arguments)}finally{Ii(e)}}}function Dr(e){return function(){if(this.curOp)return e.apply(this,arguments);Pi(this);try{return e.apply(this,arguments)}finally{Ii(this)}}}function xr(e){return function(){var n=this.cm;if(!n||n.curOp)return e.apply(this,arguments);Pi(n);try{return e.apply(this,arguments)}finally{Ii(n)}}}function ro(e,n){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(n,rt(Ua,e))}function Ua(e){var n=e.doc;if(!(n.highlightFrontier>=e.display.viewTo)){var u=+new Date+e.options.workTime,l=qr(e,n.highlightFrontier),f=[];n.iter(l.line,Math.min(n.first+n.size,e.display.viewTo+500),function(y){if(l.line>=e.display.viewFrom){var F=y.styles,U=y.text.length>e.options.maxHighlightLength?Pn(n.mode,l.state):null,z=er(e,y,l,!0);U&&(l.state=U),y.styles=z.styles;var Z=y.styleClasses,xe=z.classes;xe?y.styleClasses=xe:Z&&(y.styleClasses=null);for(var Ce=!F||F.length!=y.styles.length||Z!=xe&&(!Z||!xe||Z.bgClass!=xe.bgClass||Z.textClass!=xe.textClass),Ne=0;!Ce&&Ne<F.length;++Ne)Ce=F[Ne]!=y.styles[Ne];Ce&&f.push(l.line),y.stateAfter=l.save(),l.nextLine()}else y.text.length<=e.options.maxHighlightLength&&ms(e,y.text,l),y.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return ro(e,e.options.workDelay),!0}),n.highlightFrontier=l.line,n.modeFrontier=Math.max(n.modeFrontier,l.line),f.length&&Jr(e,function(){for(var y=0;y<f.length;y++)Ci(e,f[y],"text")})}}var na=function(e,n,u){var l=e.display;this.viewport=n,this.visible=Ys(l,e.doc,n),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=vn(e),this.force=u,this.dims=js(e),this.events=[]};na.prototype.signal=function(e,n){Ge(e,n)&&this.events.push(arguments)},na.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Oe.apply(null,this.events[e])};function Od(e){var n=e.display;!n.scrollbarsClipped&&n.scroller.offsetWidth&&(n.nativeBarWidth=n.scroller.offsetWidth-n.scroller.clientWidth,n.heightForcer.style.height=Qn(e)+"px",n.sizer.style.marginBottom=-n.nativeBarWidth+"px",n.sizer.style.borderRightWidth=Qn(e)+"px",n.scrollbarsClipped=!0)}function uu(e){if(e.hasFocus())return null;var n=De();if(!n||!ae(e.display.lineDiv,n))return null;var u={activeElt:n};if(window.getSelection){var l=window.getSelection();l.anchorNode&&l.extend&&ae(e.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function fu(e){if(!(!e||!e.activeElt||e.activeElt==De())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&ae(document.body,e.anchorNode)&&ae(document.body,e.focusNode))){var n=window.getSelection(),u=document.createRange();u.setEnd(e.anchorNode,e.anchorOffset),u.collapse(!1),n.removeAllRanges(),n.addRange(u),n.extend(e.focusNode,e.focusOffset)}}function To(e,n){var u=e.display,l=e.doc;if(n.editorIsHidden)return oi(e),!1;if(!n.force&&n.visible.from>=u.viewFrom&&n.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&Oi(e)==0)return!1;_s(e)&&(oi(e),n.dims=js(e));var f=l.first+l.size,y=Math.max(n.visible.from-e.options.viewportMargin,l.first),F=Math.min(f,n.visible.to+e.options.viewportMargin);u.viewFrom<y&&y-u.viewFrom<20&&(y=Math.max(l.first,u.viewFrom)),u.viewTo>F&&u.viewTo-F<20&&(F=Math.min(f,u.viewTo)),Si&&(y=Es(e.doc,y),F=Kl(e.doc,F));var U=y!=u.viewFrom||F!=u.viewTo||u.lastWrapHeight!=n.wrapperHeight||u.lastWrapWidth!=n.wrapperWidth;Nf(e,y,F),u.viewOffset=ni(Et(e.doc,u.viewFrom)),e.display.mover.style.top=u.viewOffset+"px";var z=Oi(e);if(!U&&z==0&&!n.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var Z=uu(e);return z>4&&(u.lineDiv.style.display="none"),Qs(e,u.updateLineNumbers,n.dims),z>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,fu(Z),ne(u.cursorDiv),ne(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,U&&(u.lastWrapHeight=n.wrapperHeight,u.lastWrapWidth=n.wrapperWidth,ro(e,400)),u.updateLineNumbers=null,!0}function Xs(e,n){for(var u=n.viewport,l=!0;;l=!1){if(!l||!e.options.lineWrapping||n.oldDisplayWidth==vn(e)){if(u&&u.top!=null&&(u={top:Math.min(e.doc.height+ks(e.display)-La(e),u.top)}),n.visible=Ys(e.display,e.doc,u),n.visible.from>=e.display.viewFrom&&n.visible.to<=e.display.viewTo)break}else l&&(n.visible=Ys(e.display,e.doc,u));if(!To(e,n))break;Ks(e);var f=Ao(e);wo(e),to(e,f),Pr(e,f),n.force=!1}n.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(n.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function zn(e,n){var u=new na(e,n);if(To(e,u)){Ks(e),Xs(e,u);var l=Ao(e);wo(e),to(e,l),Pr(e,l),u.finish()}}function Qs(e,n,u){var l=e.display,f=e.options.lineNumbers,y=l.lineDiv,F=y.firstChild;function U(Ye){var tt=Ye.nextSibling;return g&&C&&e.display.currentWheelTarget==Ye?Ye.style.display="none":Ye.parentNode.removeChild(Ye),tt}for(var z=l.view,Z=l.viewFrom,xe=0;xe<z.length;xe++){var Ce=z[xe];if(!Ce.hidden)if(!Ce.node||Ce.node.parentNode!=y){var Ne=Ad(e,Ce,Z,u);y.insertBefore(Ne,F)}else{for(;F!=Ce.node;)F=U(F);var Me=f&&n!=null&&n<=Z&&Ce.lineNumber;Ce.changes&&(pt(Ce.changes,"gutter")>-1&&(Me=!1),Ps(e,Ce,Z,u)),Me&&(ne(Ce.lineNumber),Ce.lineNumber.appendChild(document.createTextNode(ho(e.options,Z)))),F=Ce.node.nextSibling}Z+=Ce.size}for(;F;)F=U(F)}function ln(e){var n=e.gutters.offsetWidth;e.sizer.style.marginLeft=n+"px",Wr(e,"gutterChanged",e)}function Pr(e,n){e.display.sizer.style.minHeight=n.docHeight+"px",e.display.heightForcer.style.top=n.docHeight+"px",e.display.gutters.style.height=n.docHeight+e.display.barHeight+Qn(e)+"px"}function Zs(e){var n=e.display,u=n.view;if(!(!n.alignWidgets&&(!n.gutters.firstChild||!e.options.fixedGutter))){for(var l=Vs(n)-n.scroller.scrollLeft+e.doc.scrollLeft,f=n.gutters.offsetWidth,y=l+"px",F=0;F<u.length;F++)if(!u[F].hidden){e.options.fixedGutter&&(u[F].gutter&&(u[F].gutter.style.left=y),u[F].gutterBackground&&(u[F].gutterBackground.style.left=y));var U=u[F].alignable;if(U)for(var z=0;z<U.length;z++)U[z].style.left=y}e.options.fixedGutter&&(n.gutters.style.left=l+f+"px")}}function _s(e){if(!e.options.lineNumbers)return!1;var n=e.doc,u=ho(e.options,n.first+n.size-1),l=e.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(ge("div",[ge("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),y=f.firstChild.offsetWidth,F=f.offsetWidth-y;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(y,l.lineGutter.offsetWidth-F)+1,l.lineNumWidth=l.lineNumInnerWidth+F,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",ln(e.display),!0}return!1}function ja(e,n){for(var u=[],l=!1,f=0;f<e.length;f++){var y=e[f],F=null;if(typeof y!="string"&&(F=y.style,y=y.className),y=="CodeMirror-linenumbers")if(n)l=!0;else continue;u.push({className:y,style:F})}return n&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function Va(e){var n=e.gutters,u=e.gutterSpecs;ne(n),e.lineGutter=null;for(var l=0;l<u.length;++l){var f=u[l],y=f.className,F=f.style,U=n.appendChild(ge("div",null,"CodeMirror-gutter "+y));F&&(U.style.cssText=F),y=="CodeMirror-linenumbers"&&(e.lineGutter=U,U.style.width=(e.lineNumWidth||1)+"px")}n.style.display=u.length?"":"none",ln(e)}function Po(e){Va(e.display),Kr(e),Zs(e)}function Wa(e,n,u,l){var f=this;this.input=u,f.scrollbarFiller=ge("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=ge("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=de("div",null,"CodeMirror-code"),f.selectionDiv=ge("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=ge("div",null,"CodeMirror-cursors"),f.measure=ge("div",null,"CodeMirror-measure"),f.lineMeasure=ge("div",null,"CodeMirror-measure"),f.lineSpace=de("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var y=de("div",[f.lineSpace],"CodeMirror-lines");f.mover=ge("div",[y],null,"position: relative"),f.sizer=ge("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=ge("div",null,null,"position: absolute; height: "+mt+"px; width: 1px;"),f.gutters=ge("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=ge("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=ge("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),f.wrapper.setAttribute("translate","no"),b&&A<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!g&&!(c&&M)&&(f.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(f.wrapper):e(f.wrapper)),f.viewFrom=f.viewTo=n.first,f.reportedViewFrom=f.reportedViewTo=n.first,f.view=[],f.renderedView=null,f.externalMeasured=null,f.viewOffset=0,f.lastWrapHeight=f.lastWrapWidth=0,f.updateLineNumbers=null,f.nativeBarWidth=f.barHeight=f.barWidth=0,f.scrollbarsClipped=!1,f.lineNumWidth=f.lineNumInnerWidth=f.lineNumChars=null,f.alignWidgets=!1,f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.maxLine=null,f.maxLineLength=0,f.maxLineChanged=!1,f.wheelDX=f.wheelDY=f.wheelStartX=f.wheelStartY=null,f.shift=!1,f.selForContextMenu=null,f.activeTouch=null,f.gutterSpecs=ja(l.gutters,l.lineNumbers),Va(f),u.init(f)}var ia=0,Zn=null;b?Zn=-.53:c?Zn=15:N?Zn=-.7:j&&(Zn=-1/3);function qs(e){var n=e.wheelDeltaX,u=e.wheelDeltaY;return n==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(n=e.detail),u==null&&e.detail&&e.axis==e.VERTICAL_AXIS?u=e.detail:u==null&&(u=e.wheelDelta),{x:n,y:u}}function cu(e){var n=qs(e);return n.x*=Zn,n.y*=Zn,n}function el(e,n){var u=qs(n),l=u.x,f=u.y,y=Zn;n.deltaMode===0&&(l=n.deltaX,f=n.deltaY,y=1);var F=e.display,U=F.scroller,z=U.scrollWidth>U.clientWidth,Z=U.scrollHeight>U.clientHeight;if(!!(l&&z||f&&Z)){if(f&&C&&g){e:for(var xe=n.target,Ce=F.view;xe!=U;xe=xe.parentNode)for(var Ne=0;Ne<Ce.length;Ne++)if(Ce[Ne].node==xe){e.display.currentWheelTarget=xe;break e}}if(l&&!c&&!B&&y!=null){f&&Z&&sn(e,Math.max(0,U.scrollTop+f*y)),Wn(e,Math.max(0,U.scrollLeft+l*y)),(!f||f&&Z)&&it(n),F.wheelStartX=null;return}if(f&&y!=null){var Me=f*y,Ye=e.doc.scrollTop,tt=Ye+F.wrapper.clientHeight;Me<0?Ye=Math.max(0,Ye+Me-50):tt=Math.min(e.doc.height,tt+Me+50),zn(e,{top:Ye,bottom:tt})}ia<20&&n.deltaMode!==0&&(F.wheelStartX==null?(F.wheelStartX=U.scrollLeft,F.wheelStartY=U.scrollTop,F.wheelDX=l,F.wheelDY=f,setTimeout(function(){if(F.wheelStartX!=null){var at=U.scrollLeft-F.wheelStartX,ft=U.scrollTop-F.wheelStartY,vt=ft&&F.wheelDY&&ft/F.wheelDY||at&&F.wheelDX&&at/F.wheelDX;F.wheelStartX=F.wheelStartY=null,!!vt&&(Zn=(Zn*ia+vt)/(ia+1),++ia)}},200)):(F.wheelDX+=l,F.wheelDY+=f))}}var Sr=function(e,n){this.ranges=e,this.primIndex=n};Sr.prototype.primary=function(){return this.ranges[this.primIndex]},Sr.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var u=this.ranges[n],l=e.ranges[n];if(!ti(u.anchor,l.anchor)||!ti(u.head,l.head))return!1}return!0},Sr.prototype.deepCopy=function(){for(var e=[],n=0;n<this.ranges.length;n++)e[n]=new _t(se(this.ranges[n].anchor),se(this.ranges[n].head));return new Sr(e,this.primIndex)},Sr.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Sr.prototype.contains=function(e,n){n||(n=e);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(Dt(n,l.from())>=0&&Dt(e,l.to())<=0)return u}return-1};var _t=function(e,n){this.anchor=e,this.head=n};_t.prototype.from=function(){return _e(this.anchor,this.head)},_t.prototype.to=function(){return Ee(this.anchor,this.head)},_t.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Fn(e,n,u){var l=e&&e.options.selectionsMayTouch,f=n[u];n.sort(function(Ne,Me){return Dt(Ne.from(),Me.from())}),u=pt(n,f);for(var y=1;y<n.length;y++){var F=n[y],U=n[y-1],z=Dt(U.to(),F.from());if(l&&!F.empty()?z>0:z>=0){var Z=_e(U.from(),F.from()),xe=Ee(U.to(),F.to()),Ce=U.empty()?F.from()==F.head:U.from()==U.head;y<=u&&--u,n.splice(--y,2,new _t(Ce?xe:Z,Ce?Z:xe))}}return new Sr(n,u)}function li(e,n){return new Sr([new _t(e,n||e)],0)}function ui(e){return e.text?nt(e.from.line+e.text.length-1,At(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function tl(e,n){if(Dt(e,n.from)<0)return e;if(Dt(e,n.to)<=0)return ui(n);var u=e.line+n.text.length-(n.to.line-n.from.line)-1,l=e.ch;return e.line==n.to.line&&(l+=ui(n).ch-n.to.ch),nt(u,l)}function Ha(e,n){for(var u=[],l=0;l<e.sel.ranges.length;l++){var f=e.sel.ranges[l];u.push(new _t(tl(f.anchor,n),tl(f.head,n)))}return Fn(e.cm,u,e.sel.primIndex)}function rl(e,n,u){return e.line==n.line?nt(u.line,e.ch-n.ch+u.ch):nt(u.line+(e.line-n.line),e.ch)}function du(e,n,u){for(var l=[],f=nt(e.first,0),y=f,F=0;F<n.length;F++){var U=n[F],z=rl(U.from,f,y),Z=rl(ui(U),f,y);if(f=U.to,y=Z,u=="around"){var xe=e.sel.ranges[F],Ce=Dt(xe.head,xe.anchor)<0;l[F]=new _t(Ce?Z:z,Ce?z:Z)}else l[F]=new _t(z,z)}return new Sr(l,e.sel.primIndex)}function za(e){e.doc.mode=Un(e.options,e.doc.modeOption),ki(e)}function ki(e){e.doc.iter(function(n){n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ro(e,100),e.state.modeGen++,e.curOp&&Kr(e)}function zf(e,n){return n.from.ch==0&&n.to.ch==0&&At(n.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ga(e,n,u,l){function f(vt){return u?u[vt]:null}function y(vt,ct,wt){Yl(vt,ct,wt,l),Wr(vt,"change",vt,n)}function F(vt,ct){for(var wt=[],Pt=vt;Pt<ct;++Pt)wt.push(new Xi(Z[Pt],f(Pt),l));return wt}var U=n.from,z=n.to,Z=n.text,xe=Et(e,U.line),Ce=Et(e,z.line),Ne=At(Z),Me=f(Z.length-1),Ye=z.line-U.line;if(n.full)e.insert(0,F(0,Z.length)),e.remove(Z.length,e.size-Z.length);else if(zf(e,n)){var tt=F(0,Z.length-1);y(Ce,Ce.text,Me),Ye&&e.remove(U.line,Ye),tt.length&&e.insert(U.line,tt)}else if(xe==Ce)if(Z.length==1)y(xe,xe.text.slice(0,U.ch)+Ne+xe.text.slice(z.ch),Me);else{var at=F(1,Z.length-1);at.push(new Xi(Ne+xe.text.slice(z.ch),Me,l)),y(xe,xe.text.slice(0,U.ch)+Z[0],f(0)),e.insert(U.line+1,at)}else if(Z.length==1)y(xe,xe.text.slice(0,U.ch)+Z[0]+Ce.text.slice(z.ch),f(0)),e.remove(U.line+1,Ye);else{y(xe,xe.text.slice(0,U.ch)+Z[0],f(0)),y(Ce,Ne+Ce.text.slice(z.ch),Me);var ft=F(1,Z.length-1);Ye>1&&e.remove(U.line+1,Ye-1),e.insert(U.line+1,ft)}Wr(e,"change",e,n)}function Ri(e,n,u){function l(f,y,F){if(f.linked)for(var U=0;U<f.linked.length;++U){var z=f.linked[U];if(z.doc!=y){var Z=F&&z.sharedHist;u&&!Z||(n(z.doc,Z),l(z.doc,f,Z))}}}l(e,null,!0)}function Ze(e,n){if(n.cm)throw new Error("This document is already in use.");e.doc=n,n.cm=e,qo(e),za(e),nl(e),e.options.direction=n.direction,e.options.lineWrapping||vo(e),e.options.mode=n.modeOption,Kr(e)}function nl(e){(e.doc.direction=="rtl"?Ve:te)(e.display.lineDiv,"CodeMirror-rtl")}function $a(e){Jr(e,function(){nl(e),Kr(e)})}function Io(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Ka(e,n){var u={from:se(n.from),to:ui(n),text:ei(e,n.from,n.to)};return Mi(e,u,n.from.line,n.to.line+1),Ri(e,function(l){return Mi(l,u,n.from.line,n.to.line+1)},!0),u}function il(e){for(;e.length;){var n=At(e);if(n.ranges)e.pop();else break}}function Gf(e,n){if(n)return il(e.done),At(e.done);if(e.done.length&&!At(e.done).ranges)return At(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),At(e.done)}function Yt(e,n,u,l){var f=e.history;f.undone.length=0;var y=+new Date,F,U;if((f.lastOp==l||f.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&f.lastModTime>y-(e.cm?e.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(F=Gf(f,f.lastOp==l)))U=At(F.changes),Dt(n.from,n.to)==0&&Dt(n.from,U.to)==0?U.to=ui(n):F.changes.push(Ka(e,n));else{var z=At(f.done);for((!z||!z.ranges)&&Ya(e.sel,f.done),F={changes:[Ka(e,n)],generation:f.generation},f.done.push(F);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(u),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=y,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=n.origin,U||Oe(e,"historyAdded")}function pu(e,n,u,l){var f=n.charAt(0);return f=="*"||f=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function no(e,n,u,l){var f=e.history,y=l&&l.origin;u==f.lastSelOp||y&&f.lastSelOrigin==y&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==y||pu(e,y,At(f.done),n))?f.done[f.done.length-1]=n:Ya(n,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=y,f.lastSelOp=u,l&&l.clearRedo!==!1&&il(f.undone)}function Ya(e,n){var u=At(n);u&&u.ranges&&u.equals(e)||n.push(e)}function Mi(e,n,u,l){var f=n["spans_"+e.id],y=0;e.iter(Math.max(e.first,u),Math.min(e.first+e.size,l),function(F){F.markedSpans&&((f||(f=n["spans_"+e.id]={}))[y]=F.markedSpans),++y})}function $f(e){if(!e)return null;for(var n,u=0;u<e.length;++u)e[u].marker.explicitlyCleared?n||(n=e.slice(0,u)):n&&n.push(e[u]);return n?n.length?n:null:e}function hu(e,n){var u=n["spans_"+e.id];if(!u)return null;for(var l=[],f=0;f<n.text.length;++f)l.push($f(u[f]));return l}function vu(e,n){var u=hu(e,n),l=Wl(e,n);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var y=u[f],F=l[f];if(y&&F){e:for(var U=0;U<F.length;++U){for(var z=F[U],Z=0;Z<y.length;++Z)if(y[Z].marker==z.marker)continue e;y.push(z)}}else F&&(u[f]=F)}return u}function Fo(e,n,u){for(var l=[],f=0;f<e.length;++f){var y=e[f];if(y.ranges){l.push(u?Sr.prototype.deepCopy.call(y):y);continue}var F=y.changes,U=[];l.push({changes:U});for(var z=0;z<F.length;++z){var Z=F[z],xe=void 0;if(U.push({from:Z.from,to:Z.to,text:Z.text}),n)for(var Ce in Z)(xe=Ce.match(/^spans_(\d+)$/))&&pt(n,Number(xe[1]))>-1&&(At(U)[Ce]=Z[Ce],delete Z[Ce])}}return l}function Ja(e,n,u,l){if(l){var f=e.anchor;if(u){var y=Dt(n,f)<0;y!=Dt(u,f)<0?(f=n,n=u):y!=Dt(n,u)<0&&(n=u)}return new _t(f,n)}else return new _t(u||n,n)}function Xa(e,n,u,l,f){f==null&&(f=e.cm&&(e.cm.display.shift||e.extend)),rr(e,new Sr([Ja(e.sel.primary(),n,u,f)],0),l)}function gu(e,n,u){for(var l=[],f=e.cm&&(e.cm.display.shift||e.extend),y=0;y<e.sel.ranges.length;y++)l[y]=Ja(e.sel.ranges[y],n[y],null,f);var F=Fn(e.cm,l,e.sel.primIndex);rr(e,F,u)}function rn(e,n,u,l){var f=e.sel.ranges.slice(0);f[n]=u,rr(e,Fn(e.cm,f,e.sel.primIndex),l)}function ol(e,n,u,l){rr(e,li(n,u),l)}function Kf(e,n,u){var l={ranges:n.ranges,update:function(f){this.ranges=[];for(var y=0;y<f.length;y++)this.ranges[y]=new _t(st(e,f[y].anchor),st(e,f[y].head))},origin:u&&u.origin};return Oe(e,"beforeSelectionChange",e,l),e.cm&&Oe(e.cm,"beforeSelectionChange",e.cm,l),l.ranges!=n.ranges?Fn(e.cm,l.ranges,l.ranges.length-1):n}function Qa(e,n,u){var l=e.history.done,f=At(l);f&&f.ranges?(l[l.length-1]=n,Za(e,n,u)):rr(e,n,u)}function rr(e,n,u){Za(e,n,u),no(e,e.sel,e.cm?e.cm.curOp.id:NaN,u)}function Za(e,n,u){(Ge(e,"beforeSelectionChange")||e.cm&&Ge(e.cm,"beforeSelectionChange"))&&(n=Kf(e,n,u));var l=u&&u.bias||(Dt(n.primary().head,e.sel.primary().head)<0?-1:1);fi(e,al(e,n,l,!0)),!(u&&u.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&yn(e.cm)}function fi(e,n){n.equals(e.sel)||(e.sel=n,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Te(e.cm)),Wr(e,"cursorActivity",e))}function _a(e){fi(e,al(e,e.sel,null,!1))}function al(e,n,u,l){for(var f,y=0;y<n.ranges.length;y++){var F=n.ranges[y],U=n.ranges.length==e.sel.ranges.length&&e.sel.ranges[y],z=Nr(e,F.anchor,U&&U.anchor,u,l),Z=Nr(e,F.head,U&&U.head,u,l);(f||z!=F.anchor||Z!=F.head)&&(f||(f=n.ranges.slice(0,y)),f[y]=new _t(z,Z))}return f?Fn(e.cm,f,n.primIndex):n}function io(e,n,u,l,f){var y=Et(e,n.line);if(y.markedSpans)for(var F=0;F<y.markedSpans.length;++F){var U=y.markedSpans[F],z=U.marker,Z="selectLeft"in z?!z.selectLeft:z.inclusiveLeft,xe="selectRight"in z?!z.selectRight:z.inclusiveRight;if((U.from==null||(Z?U.from<=n.ch:U.from<n.ch))&&(U.to==null||(xe?U.to>=n.ch:U.to>n.ch))){if(f&&(Oe(z,"beforeCursorEnter"),z.explicitlyCleared))if(y.markedSpans){--F;continue}else break;if(!z.atomic)continue;if(u){var Ce=z.find(l<0?1:-1),Ne=void 0;if((l<0?xe:Z)&&(Ce=yu(e,Ce,-l,Ce&&Ce.line==n.line?y:null)),Ce&&Ce.line==n.line&&(Ne=Dt(Ce,u))&&(l<0?Ne<0:Ne>0))return io(e,Ce,n,l,f)}var Me=z.find(l<0?-1:1);return(l<0?Z:xe)&&(Me=yu(e,Me,l,Me.line==n.line?y:null)),Me?io(e,Me,n,l,f):null}}return n}function Nr(e,n,u,l,f){var y=l||1,F=io(e,n,u,y,f)||!f&&io(e,n,u,y,!0)||io(e,n,u,-y,f)||!f&&io(e,n,u,-y,!0);return F||(e.cantEdit=!0,nt(e.first,0))}function yu(e,n,u,l){return u<0&&n.ch==0?n.line>e.first?st(e,nt(n.line-1)):null:u>0&&n.ch==(l||Et(e,n.line)).text.length?n.line<e.first+e.size-1?nt(n.line+1,0):null:new nt(n.line,n.ch+u)}function qa(e){e.setSelection(nt(e.firstLine(),0),nt(e.lastLine()),lt)}function mu(e,n,u){var l={canceled:!1,from:n.from,to:n.to,text:n.text,origin:n.origin,cancel:function(){return l.canceled=!0}};return u&&(l.update=function(f,y,F,U){f&&(l.from=st(e,f)),y&&(l.to=st(e,y)),F&&(l.text=F),U!==void 0&&(l.origin=U)}),Oe(e,"beforeChange",e,l),e.cm&&Oe(e.cm,"beforeChange",e.cm,l),l.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function Li(e,n,u){if(e.cm){if(!e.cm.curOp)return mr(e.cm,Li)(e,n,u);if(e.cm.state.suppressEdits)return}if(!((Ge(e,"beforeChange")||e.cm&&Ge(e.cm,"beforeChange"))&&(n=mu(e,n,!0),!n))){var l=mf&&!u&&zl(e,n.from,n.to);if(l)for(var f=l.length-1;f>=0;--f)xu(e,{from:l[f].from,to:l[f].to,text:f?[""]:n.text,origin:n.origin});else xu(e,n)}}function xu(e,n){if(!(n.text.length==1&&n.text[0]==""&&Dt(n.from,n.to)==0)){var u=Ha(e,n);Yt(e,n,u,e.cm?e.cm.curOp.id:NaN),oa(e,n,u,Wl(e,n));var l=[];Ri(e,function(f,y){!y&&pt(l,f.history)==-1&&(Su(f.history,n),l.push(f.history)),oa(f,n,null,Wl(f,n))})}}function sl(e,n,u){var l=e.cm&&e.cm.state.suppressEdits;if(!(l&&!u)){for(var f=e.history,y,F=e.sel,U=n=="undo"?f.done:f.undone,z=n=="undo"?f.undone:f.done,Z=0;Z<U.length&&(y=U[Z],!(u?y.ranges&&!y.equals(e.sel):!y.ranges));Z++);if(Z!=U.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(y=U.pop(),y.ranges){if(Ya(y,z),u&&!y.equals(e.sel)){rr(e,y,{clearRedo:!1});return}F=y}else if(l){U.push(y);return}else break;var xe=[];Ya(F,z),z.push({changes:xe,generation:f.generation}),f.generation=y.generation||++f.maxGeneration;for(var Ce=Ge(e,"beforeChange")||e.cm&&Ge(e.cm,"beforeChange"),Ne=function(tt){var at=y.changes[tt];if(at.origin=n,Ce&&!mu(e,at,!1))return U.length=0,{};xe.push(Ka(e,at));var ft=tt?Ha(e,at):At(U);oa(e,at,ft,vu(e,at)),!tt&&e.cm&&e.cm.scrollIntoView({from:at.from,to:ui(at)});var vt=[];Ri(e,function(ct,wt){!wt&&pt(vt,ct.history)==-1&&(Su(ct.history,at),vt.push(ct.history)),oa(ct,at,null,vu(ct,at))})},Me=y.changes.length-1;Me>=0;--Me){var Ye=Ne(Me);if(Ye)return Ye.v}}}}function bu(e,n){if(n!=0&&(e.first+=n,e.sel=new Sr(jt(e.sel.ranges,function(f){return new _t(nt(f.anchor.line+n,f.anchor.ch),nt(f.head.line+n,f.head.ch))}),e.sel.primIndex),e.cm)){Kr(e.cm,e.first,e.first-n,n);for(var u=e.cm.display,l=u.viewFrom;l<u.viewTo;l++)Ci(e.cm,l,"gutter")}}function oa(e,n,u,l){if(e.cm&&!e.cm.curOp)return mr(e.cm,oa)(e,n,u,l);if(n.to.line<e.first){bu(e,n.text.length-1-(n.to.line-n.from.line));return}if(!(n.from.line>e.lastLine())){if(n.from.line<e.first){var f=n.text.length-1-(e.first-n.from.line);bu(e,f),n={from:nt(e.first,0),to:nt(n.to.line+f,n.to.ch),text:[At(n.text)],origin:n.origin}}var y=e.lastLine();n.to.line>y&&(n={from:n.from,to:nt(y,Et(e,y).text.length),text:[n.text[0]],origin:n.origin}),n.removed=ei(e,n.from,n.to),u||(u=Ha(e,n)),e.cm?Yf(e.cm,n,l):Ga(e,n,l),Za(e,u,lt),e.cantEdit&&Nr(e,nt(e.firstLine(),0))&&(e.cantEdit=!1)}}function Yf(e,n,u){var l=e.doc,f=e.display,y=n.from,F=n.to,U=!1,z=y.line;e.options.lineWrapping||(z=qt(bt(Et(l,y.line))),l.iter(z,F.line+1,function(Me){if(Me==f.maxLine)return U=!0,!0})),l.sel.contains(n.from,n.to)>-1&&Te(e),Ga(l,n,u,Ws(e)),e.options.lineWrapping||(l.iter(z,y.line+n.text.length,function(Me){var Ye=zo(Me);Ye>f.maxLineLength&&(f.maxLine=Me,f.maxLineLength=Ye,f.maxLineChanged=!0,U=!1)}),U&&(e.curOp.updateMaxLine=!0)),yf(l,y.line),ro(e,400);var Z=n.text.length-(F.line-y.line)-1;n.full?Kr(e):y.line==F.line&&n.text.length==1&&!zf(e.doc,n)?Ci(e,y.line,"text"):Kr(e,y.line,F.line+1,Z);var xe=Ge(e,"changes"),Ce=Ge(e,"change");if(Ce||xe){var Ne={from:y,to:F,text:n.text,removed:n.removed,origin:n.origin};Ce&&Wr(e,"change",e,Ne),xe&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Ne)}e.display.selForContextMenu=null}function ko(e,n,u,l,f){var y;l||(l=u),Dt(l,u)<0&&(y=[l,u],u=y[0],l=y[1]),typeof n=="string"&&(n=e.splitLines(n)),Li(e,{from:u,to:l,text:n,origin:f})}function es(e,n,u,l){u<e.line?e.line+=l:n<e.line&&(e.line=n,e.ch=0)}function wu(e,n,u,l){for(var f=0;f<e.length;++f){var y=e[f],F=!0;if(y.ranges){y.copied||(y=e[f]=y.deepCopy(),y.copied=!0);for(var U=0;U<y.ranges.length;U++)es(y.ranges[U].anchor,n,u,l),es(y.ranges[U].head,n,u,l);continue}for(var z=0;z<y.changes.length;++z){var Z=y.changes[z];if(u<Z.from.line)Z.from=nt(Z.from.line+l,Z.from.ch),Z.to=nt(Z.to.line+l,Z.to.ch);else if(n<=Z.to.line){F=!1;break}}F||(e.splice(0,f+1),f=0)}}function Su(e,n){var u=n.from.line,l=n.to.line,f=n.text.length-(l-u)-1;wu(e.done,u,l,f),wu(e.undone,u,l,f)}function dr(e,n,u,l){var f=n,y=n;return typeof n=="number"?y=Et(e,ot(e,n)):f=qt(n),f==null?null:(l(y,f)&&e.cm&&Ci(e.cm,f,u),y)}function ci(e){this.lines=e,this.parent=null;for(var n=0,u=0;u<e.length;++u)e[u].parent=this,n+=e[u].height;this.height=n}ci.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,n){for(var u=e,l=e+n;u<l;++u){var f=this.lines[u];this.height-=f.height,Jl(f),Wr(f,"delete")}this.lines.splice(e,n)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,n,u){this.height+=u,this.lines=this.lines.slice(0,e).concat(n).concat(this.lines.slice(e));for(var l=0;l<n.length;++l)n[l].parent=this},iterN:function(e,n,u){for(var l=e+n;e<l;++e)if(u(this.lines[e]))return!0}};function aa(e){this.children=e;for(var n=0,u=0,l=0;l<e.length;++l){var f=e[l];n+=f.chunkSize(),u+=f.height,f.parent=this}this.size=n,this.height=u,this.parent=null}aa.prototype={chunkSize:function(){return this.size},removeInner:function(e,n){this.size-=n;for(var u=0;u<this.children.length;++u){var l=this.children[u],f=l.chunkSize();if(e<f){var y=Math.min(n,f-e),F=l.height;if(l.removeInner(e,y),this.height-=F-l.height,f==y&&(this.children.splice(u--,1),l.parent=null),(n-=y)==0)break;e=0}else e-=f}if(this.size-n<25&&(this.children.length>1||!(this.children[0]instanceof ci))){var U=[];this.collapse(U),this.children=[new ci(U)],this.children[0].parent=this}},collapse:function(e){for(var n=0;n<this.children.length;++n)this.children[n].collapse(e)},insertInner:function(e,n,u){this.size+=n.length,this.height+=u;for(var l=0;l<this.children.length;++l){var f=this.children[l],y=f.chunkSize();if(e<=y){if(f.insertInner(e,n,u),f.lines&&f.lines.length>50){for(var F=f.lines.length%25+25,U=F;U<f.lines.length;){var z=new ci(f.lines.slice(U,U+=25));f.height-=z.height,this.children.splice(++l,0,z),z.parent=this}f.lines=f.lines.slice(0,F),this.maybeSpill()}break}e-=y}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var n=e.children.splice(e.children.length-5,5),u=new aa(n);if(e.parent){e.size-=u.size,e.height-=u.height;var f=pt(e.parent.children,e);e.parent.children.splice(f+1,0,u)}else{var l=new aa(e.children);l.parent=e,e.children=[l,u],e=l}u.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,n,u){for(var l=0;l<this.children.length;++l){var f=this.children[l],y=f.chunkSize();if(e<y){var F=Math.min(n,y-e);if(f.iterN(e,F,u))return!0;if((n-=F)==0)break;e=0}else e-=y}}};var ts=function(e,n,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=e,this.node=n};ts.prototype.clear=function(){var e=this.doc.cm,n=this.line.widgets,u=this.line,l=qt(u);if(!(l==null||!n)){for(var f=0;f<n.length;++f)n[f]==this&&n.splice(f--,1);n.length||(u.widgets=null);var y=Jo(this);En(u,Math.max(0,u.height-y)),e&&(Jr(e,function(){Jf(e,u,-y),Ci(e,l,"widget")}),Wr(e,"lineWidgetCleared",e,this,l))}},ts.prototype.changed=function(){var e=this,n=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=Jo(this)-n;!f||(ri(this.doc,l)||En(l,l.height+f),u&&Jr(u,function(){u.curOp.forceUpdate=!0,Jf(u,l,f),Wr(u,"lineWidgetChanged",u,e,qt(l))}))},He(ts);function Jf(e,n,u){ni(n)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&an(e,u)}function Td(e,n,u,l){var f=new ts(e,u,l),y=e.cm;return y&&f.noHScroll&&(y.display.alignWidgets=!0),dr(e,n,"widget",function(F){var U=F.widgets||(F.widgets=[]);if(f.insertAt==null?U.push(f):U.splice(Math.min(U.length,Math.max(0,f.insertAt)),0,f),f.line=F,y&&!ri(e,F)){var z=ni(F)<e.scrollTop;En(F,F.height+Jo(f)),z&&an(y,f.height),y.curOp.forceUpdate=!0}return!0}),y&&Wr(y,"lineWidgetAdded",y,f,typeof n=="number"?n:qt(n)),f}var Au=0,Di=function(e,n){this.lines=[],this.type=n,this.doc=e,this.id=++Au};Di.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,n=e&&!e.curOp;if(n&&Pi(e),Ge(this,"clear")){var u=this.find();u&&Wr(this,"clear",u.from,u.to)}for(var l=null,f=null,y=0;y<this.lines.length;++y){var F=this.lines[y],U=Wo(F.markedSpans,this);e&&!this.collapsed?Ci(e,qt(F),"text"):e&&(U.to!=null&&(f=qt(F)),U.from!=null&&(l=qt(F))),F.markedSpans=wf(F.markedSpans,U),U.from==null&&this.collapsed&&!ri(this.doc,F)&&e&&En(F,xo(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var z=0;z<this.lines.length;++z){var Z=bt(this.lines[z]),xe=zo(Z);xe>e.display.maxLineLength&&(e.display.maxLine=Z,e.display.maxLineLength=xe,e.display.maxLineChanged=!0)}l!=null&&e&&this.collapsed&&Kr(e,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&_a(e.doc)),e&&Wr(e,"markerCleared",e,this,l,f),n&&Ii(e),this.parent&&this.parent.clear()}},Di.prototype.find=function(e,n){e==null&&this.type=="bookmark"&&(e=1);for(var u,l,f=0;f<this.lines.length;++f){var y=this.lines[f],F=Wo(y.markedSpans,this);if(F.from!=null&&(u=nt(n?y:qt(y),F.from),e==-1))return u;if(F.to!=null&&(l=nt(n?y:qt(y),F.to),e==1))return l}return u&&{from:u,to:l}},Di.prototype.changed=function(){var e=this,n=this.find(-1,!0),u=this,l=this.doc.cm;!n||!l||Jr(l,function(){var f=n.line,y=qt(n.line),F=Rs(l,y);if(F&&(ou(F),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!ri(u.doc,f)&&u.height!=null){var U=u.height;u.height=null;var z=Jo(u)-U;z&&En(f,f.height+z)}Wr(l,"markerChanged",l,e)})},Di.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(!n.maybeHiddenMarkers||pt(n.maybeHiddenMarkers,this)==-1)&&(n.maybeUnhiddenMarkers||(n.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Di.prototype.detachLine=function(e){if(this.lines.splice(pt(this.lines,e),1),!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(n.maybeHiddenMarkers||(n.maybeHiddenMarkers=[])).push(this)}},He(Di);function sa(e,n,u,l,f){if(l&&l.shared)return Xf(e,n,u,l,f);if(e.cm&&!e.cm.curOp)return mr(e.cm,sa)(e,n,u,l,f);var y=new Di(e,f),F=Dt(n,u);if(l&&Qe(l,y,!1),F>0||F==0&&y.clearWhenEmpty!==!1)return y;if(y.replacedWith&&(y.collapsed=!0,y.widgetNode=de("span",[y.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||y.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(y.widgetNode.insertLeft=!0)),y.collapsed){if(Ji(e,n.line,n,u,y)||n.line!=u.line&&Ji(e,u.line,n,u,y))throw new Error("Inserting collapsed marker partially overlapping an existing one");bf()}y.addToHistory&&Yt(e,{from:n,to:u,origin:"markText"},e.sel,NaN);var U=n.line,z=e.cm,Z;if(e.iter(U,u.line+1,function(Ce){z&&y.collapsed&&!z.options.lineWrapping&&bt(Ce)==z.display.maxLine&&(Z=!0),y.collapsed&&U!=n.line&&En(Ce,0),md(Ce,new ka(y,U==n.line?n.ch:null,U==u.line?u.ch:null),e.cm&&e.cm.curOp),++U}),y.collapsed&&e.iter(n.line,u.line+1,function(Ce){ri(e,Ce)&&En(Ce,0)}),y.clearOnEnter&&D(y,"beforeCursorEnter",function(){return y.clear()}),y.readOnly&&(xf(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),y.collapsed&&(y.id=++Au,y.atomic=!0),z){if(Z&&(z.curOp.updateMaxLine=!0),y.collapsed)Kr(z,n.line,u.line+1);else if(y.className||y.startStyle||y.endStyle||y.css||y.attributes||y.title)for(var xe=n.line;xe<=u.line;xe++)Ci(z,xe,"text");y.atomic&&_a(z.doc),Wr(z,"markerAdded",z,y)}return y}var la=function(e,n){this.markers=e,this.primary=n;for(var u=0;u<e.length;++u)e[u].parent=this};la.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Wr(this,"clear")}},la.prototype.find=function(e,n){return this.primary.find(e,n)},He(la);function Xf(e,n,u,l,f){l=Qe(l),l.shared=!1;var y=[sa(e,n,u,l,f)],F=y[0],U=l.widgetNode;return Ri(e,function(z){U&&(l.widgetNode=U.cloneNode(!0)),y.push(sa(z,st(z,n),st(z,u),l,f));for(var Z=0;Z<z.linked.length;++Z)if(z.linked[Z].isParent)return;F=At(y)}),new la(y,F)}function Eu(e){return e.findMarks(nt(e.first,0),e.clipPos(nt(e.lastLine())),function(n){return n.parent})}function Qf(e,n){for(var u=0;u<n.length;u++){var l=n[u],f=l.find(),y=e.clipPos(f.from),F=e.clipPos(f.to);if(Dt(y,F)){var U=sa(e,y,F,l.primary,l.primary.type);l.markers.push(U),U.parent=l}}}function Zf(e){for(var n=function(l){var f=e[l],y=[f.primary.doc];Ri(f.primary.doc,function(z){return y.push(z)});for(var F=0;F<f.markers.length;F++){var U=f.markers[F];pt(y,U.doc)==-1&&(U.parent=null,f.markers.splice(F--,1))}},u=0;u<e.length;u++)n(u)}var _f=0,Vt=function(e,n,u,l,f){if(!(this instanceof Vt))return new Vt(e,n,u,l,f);u==null&&(u=0),aa.call(this,[new ci([new Xi("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var y=nt(u,0);this.sel=li(y),this.history=new Io(null),this.id=++_f,this.modeOption=n,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Ga(this,{from:y,to:y,text:e}),rr(this,li(y),lt)};Vt.prototype=St(aa.prototype,{constructor:Vt,iter:function(e,n,u){u?this.iterN(e-this.first,n-e,u):this.iterN(this.first,this.first+this.size,e)},insert:function(e,n){for(var u=0,l=0;l<n.length;++l)u+=n[l].height;this.insertInner(e-this.first,n,u)},remove:function(e,n){this.removeInner(e-this.first,n)},getValue:function(e){var n=wi(this,this.first,this.first+this.size);return e===!1?n:n.join(e||this.lineSeparator())},setValue:xr(function(e){var n=nt(this.first,0),u=this.first+this.size-1;Li(this,{from:n,to:nt(u,Et(this,u).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&mn(this.cm,0,0),rr(this,li(n),lt)}),replaceRange:function(e,n,u,l){n=st(this,n),u=u?st(this,u):n,ko(this,e,n,u,l)},getRange:function(e,n,u){var l=ei(this,st(this,e),st(this,n));return u===!1?l:u===""?l.join(""):l.join(u||this.lineSeparator())},getLine:function(e){var n=this.getLineHandle(e);return n&&n.text},getLineHandle:function(e){if(Xn(this,e))return Et(this,e)},getLineNumber:function(e){return qt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Et(this,e)),bt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return st(this,e)},getCursor:function(e){var n=this.sel.primary(),u;return e==null||e=="head"?u=n.head:e=="anchor"?u=n.anchor:e=="end"||e=="to"||e===!1?u=n.to():u=n.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:xr(function(e,n,u){ol(this,st(this,typeof e=="number"?nt(e,n||0):e),null,u)}),setSelection:xr(function(e,n,u){ol(this,st(this,e),st(this,n||e),u)}),extendSelection:xr(function(e,n,u){Xa(this,st(this,e),n&&st(this,n),u)}),extendSelections:xr(function(e,n){gu(this,Zt(this,e),n)}),extendSelectionsBy:xr(function(e,n){var u=jt(this.sel.ranges,e);gu(this,Zt(this,u),n)}),setSelections:xr(function(e,n,u){if(!!e.length){for(var l=[],f=0;f<e.length;f++)l[f]=new _t(st(this,e[f].anchor),st(this,e[f].head||e[f].anchor));n==null&&(n=Math.min(e.length-1,this.sel.primIndex)),rr(this,Fn(this.cm,l,n),u)}}),addSelection:xr(function(e,n,u){var l=this.sel.ranges.slice(0);l.push(new _t(st(this,e),st(this,n||e))),rr(this,Fn(this.cm,l,l.length-1),u)}),getSelection:function(e){for(var n=this.sel.ranges,u,l=0;l<n.length;l++){var f=ei(this,n[l].from(),n[l].to());u=u?u.concat(f):f}return e===!1?u:u.join(e||this.lineSeparator())},getSelections:function(e){for(var n=[],u=this.sel.ranges,l=0;l<u.length;l++){var f=ei(this,u[l].from(),u[l].to());e!==!1&&(f=f.join(e||this.lineSeparator())),n[l]=f}return n},replaceSelection:function(e,n,u){for(var l=[],f=0;f<this.sel.ranges.length;f++)l[f]=e;this.replaceSelections(l,n,u||"+input")},replaceSelections:xr(function(e,n,u){for(var l=[],f=this.sel,y=0;y<f.ranges.length;y++){var F=f.ranges[y];l[y]={from:F.from(),to:F.to(),text:this.splitLines(e[y]),origin:u}}for(var U=n&&n!="end"&&du(this,l,n),z=l.length-1;z>=0;z--)Li(this,l[z]);U?Qa(this,U):this.cm&&yn(this.cm)}),undo:xr(function(){sl(this,"undo")}),redo:xr(function(){sl(this,"redo")}),undoSelection:xr(function(){sl(this,"undo",!0)}),redoSelection:xr(function(){sl(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,n=0,u=0,l=0;l<e.done.length;l++)e.done[l].ranges||++n;for(var f=0;f<e.undone.length;f++)e.undone[f].ranges||++u;return{undo:n,redo:u}},clearHistory:function(){var e=this;this.history=new Io(this.history),Ri(this,function(n){return n.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Fo(this.history.done),undone:Fo(this.history.undone)}},setHistory:function(e){var n=this.history=new Io(this.history);n.done=Fo(e.done.slice(0),null,!0),n.undone=Fo(e.undone.slice(0),null,!0)},setGutterMarker:xr(function(e,n,u){return dr(this,e,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[n]=u,!u&&K(f)&&(l.gutterMarkers=null),!0})}),clearGutter:xr(function(e){var n=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[e]&&dr(n,u,"gutter",function(){return u.gutterMarkers[e]=null,K(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(e){var n;if(typeof e=="number"){if(!Xn(this,e)||(n=e,e=Et(this,e),!e))return null}else if(n=qt(e),n==null)return null;return{line:n,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:xr(function(e,n,u){return dr(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass";if(!l[f])l[f]=u;else{if(ue(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:xr(function(e,n,u){return dr(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass",y=l[f];if(y)if(u==null)l[f]=null;else{var F=y.match(ue(u));if(!F)return!1;var U=F.index+F[0].length;l[f]=y.slice(0,F.index)+(!F.index||U==y.length?"":" ")+y.slice(U)||null}else return!1;return!0})}),addLineWidget:xr(function(e,n,u){return Td(this,e,n,u)}),removeLineWidget:function(e){e.clear()},markText:function(e,n,u){return sa(this,st(this,e),st(this,n),u,u&&u.type||"range")},setBookmark:function(e,n){var u={replacedWith:n&&(n.nodeType==null?n.widget:n),insertLeft:n&&n.insertLeft,clearWhenEmpty:!1,shared:n&&n.shared,handleMouseEvents:n&&n.handleMouseEvents};return e=st(this,e),sa(this,e,e,u,"bookmark")},findMarksAt:function(e){e=st(this,e);var n=[],u=Et(this,e.line).markedSpans;if(u)for(var l=0;l<u.length;++l){var f=u[l];(f.from==null||f.from<=e.ch)&&(f.to==null||f.to>=e.ch)&&n.push(f.marker.parent||f.marker)}return n},findMarks:function(e,n,u){e=st(this,e),n=st(this,n);var l=[],f=e.line;return this.iter(e.line,n.line+1,function(y){var F=y.markedSpans;if(F)for(var U=0;U<F.length;U++){var z=F[U];!(z.to!=null&&f==e.line&&e.ch>=z.to||z.from==null&&f!=e.line||z.from!=null&&f==n.line&&z.from>=n.ch)&&(!u||u(z.marker))&&l.push(z.marker.parent||z.marker)}++f}),l},getAllMarks:function(){var e=[];return this.iter(function(n){var u=n.markedSpans;if(u)for(var l=0;l<u.length;++l)u[l].from!=null&&e.push(u[l].marker)}),e},posFromIndex:function(e){var n,u=this.first,l=this.lineSeparator().length;return this.iter(function(f){var y=f.text.length+l;if(y>e)return n=e,!0;e-=y,++u}),st(this,nt(u,n))},indexFromPos:function(e){e=st(this,e);var n=e.ch;if(e.line<this.first||e.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,e.line,function(l){n+=l.text.length+u}),n},copy:function(e){var n=new Vt(wi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return n.scrollTop=this.scrollTop,n.scrollLeft=this.scrollLeft,n.sel=this.sel,n.extend=!1,e&&(n.history.undoDepth=this.history.undoDepth,n.setHistory(this.getHistory())),n},linkedDoc:function(e){e||(e={});var n=this.first,u=this.first+this.size;e.from!=null&&e.from>n&&(n=e.from),e.to!=null&&e.to<u&&(u=e.to);var l=new Vt(wi(this,n,u),e.mode||this.modeOption,n,this.lineSep,this.direction);return e.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:e.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Qf(l,Eu(this)),l},unlinkDoc:function(e){if(e instanceof cr&&(e=e.doc),this.linked)for(var n=0;n<this.linked.length;++n){var u=this.linked[n];if(u.doc==e){this.linked.splice(n,1),e.unlinkDoc(this),Zf(Eu(this));break}}if(e.history==this.history){var l=[e.id];Ri(e,function(f){return l.push(f.id)},!0),e.history=new Io(null),e.history.done=Fo(this.history.done,l),e.history.undone=Fo(this.history.undone,l)}},iterLinkedDocs:function(e){Ri(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Kn(e)},lineSeparator:function(){return this.lineSep||`
|
|
28
|
-
`},setDirection:xr(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(n){return n.order=null}),this.cm&&$a(this.cm))})}),Vt.prototype.eachLine=Vt.prototype.iter;var kn=0;function qf(e){var n=this;if(oo(n),!(Pe(n,e)||ii(n.display,e))){it(e),b&&(kn=+new Date);var u=qi(n,e,!0),l=e.dataTransfer.files;if(!(!u||n.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var f=l.length,y=Array(f),F=0,U=function(){++F==f&&mr(n,function(){u=st(n.doc,u);var Me={from:u,to:u,text:n.doc.splitLines(y.filter(function(Ye){return Ye!=null}).join(n.doc.lineSeparator())),origin:"paste"};Li(n.doc,Me),Qa(n.doc,li(st(n.doc,u),st(n.doc,ui(Me))))})()},z=function(Me,Ye){if(n.options.allowDropFileTypes&&pt(n.options.allowDropFileTypes,Me.type)==-1){U();return}var tt=new FileReader;tt.onerror=function(){return U()},tt.onload=function(){var at=tt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(at)){U();return}y[Ye]=at,U()},tt.readAsText(Me)},Z=0;Z<l.length;Z++)z(l[Z],Z);else{if(n.state.draggingText&&n.doc.sel.contains(u)>-1){n.state.draggingText(e),setTimeout(function(){return n.display.input.focus()},20);return}try{var xe=e.dataTransfer.getData("Text");if(xe){var Ce;if(n.state.draggingText&&!n.state.draggingText.copy&&(Ce=n.listSelections()),Za(n.doc,li(u,u)),Ce)for(var Ne=0;Ne<Ce.length;++Ne)ko(n.doc,"",Ce[Ne].anchor,Ce[Ne].head,"drag");n.replaceSelection(xe,"around","paste"),n.display.input.focus()}}catch(Me){}}}}function ll(e,n){if(b&&(!e.state.draggingText||+new Date-kn<100)){Jt(n);return}if(!(Pe(e,n)||ii(e.display,n))&&(n.dataTransfer.setData("Text",e.getSelection()),n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setDragImage&&!j)){var u=ge("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",B&&(u.width=u.height=1,e.display.wrapper.appendChild(u),u._top=u.offsetTop),n.dataTransfer.setDragImage(u,0,0),B&&u.parentNode.removeChild(u)}}function Cu(e,n){var u=qi(e,n);if(!!u){var l=document.createDocumentFragment();Ti(e,u,l),e.display.dragCursor||(e.display.dragCursor=ge("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),ye(e.display.dragCursor,l)}}function oo(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function ul(e){if(!!document.getElementsByClassName){for(var n=document.getElementsByClassName("CodeMirror"),u=[],l=0;l<n.length;l++){var f=n[l].CodeMirror;f&&u.push(f)}u.length&&u[0].operation(function(){for(var y=0;y<u.length;y++)e(u[y])})}}var fl=!1;function ec(){fl||(Ou(),fl=!0)}function Ou(){var e;D(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,ul(cl)},100))}),D(window,"blur",function(){return ul(So)})}function cl(e){var n=e.display;n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.scrollbarsClipped=!1,e.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"},Ro=0;Ro<10;Ro++)di[Ro+48]=di[Ro+96]=String(Ro);for(var ao=65;ao<=90;ao++)di[ao]=String.fromCharCode(ao);for(var ua=1;ua<=12;ua++)di[ua+111]=di[ua+63235]="F"+ua;var pi={};pi.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"},pi.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"},pi.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"},pi.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"]},pi.default=C?pi.macDefault:pi.pcDefault;function Mo(e){var n=e.split(/-(?!$)/);e=n[n.length-1];for(var u,l,f,y,F=0;F<n.length-1;F++){var U=n[F];if(/^(cmd|meta|m)$/i.test(U))y=!0;else if(/^a(lt)?$/i.test(U))u=!0;else if(/^(c|ctrl|control)$/i.test(U))l=!0;else if(/^s(hift)?$/i.test(U))f=!0;else throw new Error("Unrecognized modifier name: "+U)}return u&&(e="Alt-"+e),l&&(e="Ctrl-"+e),y&&(e="Cmd-"+e),f&&(e="Shift-"+e),e}function Tu(e){var n={};for(var u in e)if(e.hasOwnProperty(u)){var l=e[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(l=="..."){delete e[u];continue}for(var f=jt(u.split(" "),Mo),y=0;y<f.length;y++){var F=void 0,U=void 0;y==f.length-1?(U=f.join(" "),F=l):(U=f.slice(0,y+1).join(" "),F="...");var z=n[U];if(!z)n[U]=F;else if(z!=F)throw new Error("Inconsistent bindings for "+U)}delete e[u]}for(var Z in n)e[Z]=n[Z];return e}function Lo(e,n,u,l){n=ca(n);var f=n.call?n.call(e,l):n[e];if(f===!1)return"nothing";if(f==="...")return"multi";if(f!=null&&u(f))return"handled";if(n.fallthrough){if(Object.prototype.toString.call(n.fallthrough)!="[object Array]")return Lo(e,n.fallthrough,u,l);for(var y=0;y<n.fallthrough.length;y++){var F=Lo(e,n.fallthrough[y],u,l);if(F)return F}}}function fa(e){var n=typeof e=="string"?e:di[e.keyCode];return n=="Ctrl"||n=="Alt"||n=="Shift"||n=="Mod"}function Pu(e,n,u){var l=e;return n.altKey&&l!="Alt"&&(e="Alt-"+e),(Q?n.metaKey:n.ctrlKey)&&l!="Ctrl"&&(e="Ctrl-"+e),(Q?n.ctrlKey:n.metaKey)&&l!="Mod"&&(e="Cmd-"+e),!u&&n.shiftKey&&l!="Shift"&&(e="Shift-"+e),e}function Iu(e,n){if(B&&e.keyCode==34&&e.char)return!1;var u=di[e.keyCode];return u==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(u=e.code),Pu(u,e,n))}function ca(e){return typeof e=="string"?pi[e]:e}function so(e,n){for(var u=e.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var y=n(u[f]);l.length&&Dt(y.from,At(l).to)<=0;){var F=l.pop();if(Dt(F.from,y.from)<0){y.from=F.from;break}}l.push(y)}Jr(e,function(){for(var U=l.length-1;U>=0;U--)ko(e.doc,"",l[U].from,l[U].to,"+delete");yn(e)})}function rs(e,n,u){var l=be(e.text,n+u,u);return l<0||l>e.text.length?null:l}function ns(e,n,u){var l=rs(e,n.ch,u);return l==null?null:new nt(n.line,l,u<0?"after":"before")}function dl(e,n,u,l,f){if(e){n.doc.direction=="rtl"&&(f=-f);var y=P(u,n.doc.direction);if(y){var F=f<0?At(y):y[0],U=f<0==(F.level==1),z=U?"after":"before",Z;if(F.level>0||n.doc.direction=="rtl"){var xe=mo(n,u);Z=f<0?u.text.length-1:0;var Ce=gn(n,xe,Z).top;Z=Ae(function(Ne){return gn(n,xe,Ne).top==Ce},f<0==(F.level==1)?F.from:F.to-1,Z),z=="before"&&(Z=rs(u,Z,1))}else Z=f<0?F.to:F.from;return new nt(l,Z,z)}}return new nt(l,f<0?u.text.length:0,f<0?"before":"after")}function tc(e,n,u,l){var f=P(n,e.doc.direction);if(!f)return ns(n,u,l);u.ch>=n.text.length?(u.ch=n.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var y=W(f,u.ch,u.sticky),F=f[y];if(e.doc.direction=="ltr"&&F.level%2==0&&(l>0?F.to>u.ch:F.from<u.ch))return ns(n,u,l);var U=function(ft,vt){return rs(n,ft instanceof nt?ft.ch:ft,vt)},z,Z=function(ft){return e.options.lineWrapping?(z=z||mo(e,n),au(e,n,z,ft)):{begin:0,end:n.text.length}},xe=Z(u.sticky=="before"?U(u,-1):u.ch);if(e.doc.direction=="rtl"||F.level==1){var Ce=F.level==1==l<0,Ne=U(u,Ce?1:-1);if(Ne!=null&&(Ce?Ne<=F.to&&Ne<=xe.end:Ne>=F.from&&Ne>=xe.begin)){var Me=Ce?"before":"after";return new nt(u.line,Ne,Me)}}var Ye=function(ft,vt,ct){for(var wt=function(ar,Hr){return Hr?new nt(u.line,U(ar,1),"before"):new nt(u.line,ar,"after")};ft>=0&&ft<f.length;ft+=vt){var Pt=f[ft],Ot=vt>0==(Pt.level!=1),Ut=Ot?ct.begin:U(ct.end,-1);if(Pt.from<=Ut&&Ut<Pt.to||(Ut=Ot?Pt.from:U(Pt.to,-1),ct.begin<=Ut&&Ut<ct.end))return wt(Ut,Ot)}},tt=Ye(y+l,l,xe);if(tt)return tt;var at=l>0?xe.end:U(xe.begin,-1);return at!=null&&!(l>0&&at==n.text.length)&&(tt=Ye(l>0?0:f.length-1,l,Z(at)),tt)?tt:null}var Ni={selectAll:qa,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),lt)},killLine:function(e){return so(e,function(n){if(n.empty()){var u=Et(e.doc,n.head.line).text.length;return n.head.ch==u&&n.head.line<e.lastLine()?{from:n.head,to:nt(n.head.line+1,0)}:{from:n.head,to:nt(n.head.line,u)}}else return{from:n.from(),to:n.to()}})},deleteLine:function(e){return so(e,function(n){return{from:nt(n.from().line,0),to:st(e.doc,nt(n.to().line+1,0))}})},delLineLeft:function(e){return so(e,function(n){return{from:nt(n.from().line,0),to:n.from()}})},delWrappedLineLeft:function(e){return so(e,function(n){var u=e.charCoords(n.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return{from:l,to:n.from()}})},delWrappedLineRight:function(e){return so(e,function(n){var u=e.charCoords(n.head,"div").top+5,l=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div");return{from:n.from(),to:l}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(nt(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(nt(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(n){return Fu(e,n.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(n){return ku(e,n.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(n){return Ir(e,n.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div")},xt)},goLineLeft:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:0,top:u},"div")},xt)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return l.ch<e.getLine(l.line).search(/\S/)?ku(e,n.head):l},xt)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var n=[],u=e.listSelections(),l=e.options.tabSize,f=0;f<u.length;f++){var y=u[f].from(),F=Je(e.getLine(y.line),y.ch,l);n.push(It(l-F%l))}e.replaceSelections(n)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Jr(e,function(){for(var n=e.listSelections(),u=[],l=0;l<n.length;l++)if(!!n[l].empty()){var f=n[l].head,y=Et(e.doc,f.line).text;if(y){if(f.ch==y.length&&(f=new nt(f.line,f.ch-1)),f.ch>0)f=new nt(f.line,f.ch+1),e.replaceRange(y.charAt(f.ch-1)+y.charAt(f.ch-2),nt(f.line,f.ch-2),f,"+transpose");else if(f.line>e.doc.first){var F=Et(e.doc,f.line-1).text;F&&(f=new nt(f.line,1),e.replaceRange(y.charAt(0)+e.doc.lineSeparator()+F.charAt(F.length-1),nt(f.line-1,F.length-1),f,"+transpose"))}}u.push(new _t(f,f))}e.setSelections(u)})},newlineAndIndent:function(e){return Jr(e,function(){for(var n=e.listSelections(),u=n.length-1;u>=0;u--)e.replaceRange(e.doc.lineSeparator(),n[u].anchor,n[u].head,"+input");n=e.listSelections();for(var l=0;l<n.length;l++)e.indentLine(n[l].from().line,null,!0);yn(e)})},openLine:function(e){return e.replaceSelection(`
|
|
29
|
-
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Fu(e,n){var u=Et(e.doc,n),l=bt(u);return l!=u&&(n=qt(l)),dl(!0,e,l,n,1)}function Ir(e,n){var u=Et(e.doc,n),l=In(u);return l!=u&&(n=qt(l)),dl(!0,e,u,n,-1)}function ku(e,n){var u=Fu(e,n.line),l=Et(e.doc,u.line),f=P(l,e.doc.direction);if(!f||f[0].level==0){var y=Math.max(u.ch,l.text.search(/\S/)),F=n.line==u.line&&n.ch<=y&&n.ch;return nt(u.line,F?0:y,u.sticky)}return u}function pl(e,n,u){if(typeof n=="string"&&(n=Ni[n],!n))return!1;e.display.input.ensurePolled();var l=e.display.shift,f=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),u&&(e.display.shift=!1),f=n(e)!=qe}finally{e.display.shift=l,e.state.suppressEdits=!1}return f}function rc(e,n,u){for(var l=0;l<e.state.keyMaps.length;l++){var f=Lo(n,e.state.keyMaps[l],u,e);if(f)return f}return e.options.extraKeys&&Lo(n,e.options.extraKeys,u,e)||Lo(n,e.options.keyMap,u,e)}var Bi=new ut;function da(e,n,u,l){var f=e.state.keySeq;if(f){if(fa(n))return"handled";if(/\'$/.test(n)?e.state.keySeq=null:Bi.set(50,function(){e.state.keySeq==f&&(e.state.keySeq=null,e.display.input.reset())}),Ru(e,f+" "+n,u,l))return!0}return Ru(e,n,u,l)}function Ru(e,n,u,l){var f=rc(e,n,l);return f=="multi"&&(e.state.keySeq=n),f=="handled"&&Wr(e,"keyHandled",e,n,u),(f=="handled"||f=="multi")&&(it(u),lu(e)),!!f}function Mu(e,n){var u=Iu(n,!0);return u?n.shiftKey&&!e.state.keySeq?da(e,"Shift-"+u,n,function(l){return pl(e,l,!0)})||da(e,u,n,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return pl(e,l)}):da(e,u,n,function(l){return pl(e,l)}):!1}function nc(e,n,u){return da(e,"'"+u+"'",n,function(l){return pl(e,l,!0)})}var Lu=null;function ic(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&(n.curOp.focus=De(),!Pe(n,e))){b&&A<11&&e.keyCode==27&&(e.returnValue=!1);var u=e.keyCode;n.display.shift=u==16||e.shiftKey;var l=Mu(n,e);B&&(Lu=l?u:null,!l&&u==88&&!Yn&&(C?e.metaKey:e.ctrlKey)&&n.replaceSelection("",null,"cut")),c&&!C&&!l&&u==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(n.display.lineDiv.className)&&Pd(n)}}function Pd(e){var n=e.display.lineDiv;Ve(n,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(te(n,"CodeMirror-crosshair"),fe(document,"keyup",u),fe(document,"mouseover",u))}D(document,"keyup",u),D(document,"mouseover",u)}function oc(e){e.keyCode==16&&(this.doc.sel.shift=!1),Pe(this,e)}function ac(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&!(ii(n.display,e)||Pe(n,e)||e.ctrlKey&&!e.altKey||C&&e.metaKey)){var u=e.keyCode,l=e.charCode;if(B&&u==Lu){Lu=null,it(e);return}if(!(B&&(!e.which||e.which<10)&&Mu(n,e))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(nc(n,e,f)||n.display.input.onKeyPress(e))}}}var Id=400,Du=function(e,n,u){this.time=e,this.pos=n,this.button=u};Du.prototype.compare=function(e,n,u){return this.time+Id>e&&Dt(n,this.pos)==0&&u==this.button};var is,os;function Fd(e,n){var u=+new Date;return os&&os.compare(u,e,n)?(is=os=null,"triple"):is&&is.compare(u,e,n)?(os=new Du(u,e,n),is=null,"double"):(is=new Du(u,e,n),os=null,"single")}function hl(e){var n=this,u=n.display;if(!(Pe(n,e)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=e.shiftKey,ii(u,e)){g||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!pa(n,e)){var l=qi(n,e),f=wn(e),y=l?Fd(l,f):"single";window.focus(),f==1&&n.state.selectingText&&n.state.selectingText(e),!(l&&Do(n,f,l,y,e))&&(f==1?l?lc(n,l,y,e):Ft(e)==u.scroller&&it(e):f==2?(l&&Xa(n.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(Y?n.display.input.onContextMenu(e):Gs(n)))}}}function Do(e,n,u,l,f){var y="Click";return l=="double"?y="Double"+y:l=="triple"&&(y="Triple"+y),y=(n==1?"Left":n==2?"Middle":"Right")+y,da(e,Pu(y,f),f,function(F){if(typeof F=="string"&&(F=Ni[F]),!F)return!1;var U=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),U=F(e,u)!=qe}finally{e.state.suppressEdits=!1}return U})}function sc(e,n,u){var l=e.getOption("configureMouse"),f=l?l(e,n,u):{};if(f.unit==null){var y=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=y?"rectangle":n=="single"?"char":n=="double"?"word":"line"}return(f.extend==null||e.doc.extend)&&(f.extend=e.doc.extend||u.shiftKey),f.addNew==null&&(f.addNew=C?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(C?u.altKey:u.ctrlKey)),f}function lc(e,n,u,l){b?setTimeout(rt(jf,e),0):e.curOp.focus=De();var f=sc(e,u,l),y=e.doc.sel,F;e.options.dragDrop&&_r&&!e.isReadOnly()&&u=="single"&&(F=y.contains(n))>-1&&(Dt((F=y.ranges[F]).from(),n)<0||n.xRel>0)&&(Dt(F.to(),n)>0||n.xRel<0)?as(e,l,n,f):uc(e,l,n,f)}function as(e,n,u,l){var f=e.display,y=!1,F=mr(e,function(Z){g&&(f.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Gs(e)),fe(f.wrapper.ownerDocument,"mouseup",F),fe(f.wrapper.ownerDocument,"mousemove",U),fe(f.scroller,"dragstart",z),fe(f.scroller,"drop",F),y||(it(Z),l.addNew||Xa(e.doc,u,null,null,l.extend),g&&!j||b&&A==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),U=function(Z){y=y||Math.abs(n.clientX-Z.clientX)+Math.abs(n.clientY-Z.clientY)>=10},z=function(){return y=!0};g&&(f.scroller.draggable=!0),e.state.draggingText=F,F.copy=!l.moveOnDrag,D(f.wrapper.ownerDocument,"mouseup",F),D(f.wrapper.ownerDocument,"mousemove",U),D(f.scroller,"dragstart",z),D(f.scroller,"drop",F),e.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function Nu(e,n,u){if(u=="char")return new _t(n,n);if(u=="word")return e.findWordAt(n);if(u=="line")return new _t(nt(n.line,0),st(e.doc,nt(n.line+1,0)));var l=u(e,n);return new _t(l.from,l.to)}function uc(e,n,u,l){b&&Gs(e);var f=e.display,y=e.doc;it(n);var F,U,z=y.sel,Z=z.ranges;if(l.addNew&&!l.extend?(U=y.sel.contains(u),U>-1?F=Z[U]:F=new _t(u,u)):(F=y.sel.primary(),U=y.sel.primIndex),l.unit=="rectangle")l.addNew||(F=new _t(u,u)),u=qi(e,n,!0,!0),U=-1;else{var xe=Nu(e,u,l.unit);l.extend?F=Ja(F,xe.anchor,xe.head,l.extend):F=xe}l.addNew?U==-1?(U=Z.length,rr(y,Fn(e,Z.concat([F]),U),{scroll:!1,origin:"*mouse"})):Z.length>1&&Z[U].empty()&&l.unit=="char"&&!l.extend?(rr(y,Fn(e,Z.slice(0,U).concat(Z.slice(U+1)),0),{scroll:!1,origin:"*mouse"}),z=y.sel):rn(y,U,F,gt):(U=0,rr(y,new Sr([F],0),gt),z=y.sel);var Ce=u;function Ne(ct){if(Dt(Ce,ct)!=0)if(Ce=ct,l.unit=="rectangle"){for(var wt=[],Pt=e.options.tabSize,Ot=Je(Et(y,u.line).text,u.ch,Pt),Ut=Je(Et(y,ct.line).text,ct.ch,Pt),ar=Math.min(Ot,Ut),Hr=Math.max(Ot,Ut),hr=Math.min(u.line,ct.line),xn=Math.min(e.lastLine(),Math.max(u.line,ct.line));hr<=xn;hr++){var un=Et(y,hr).text,Fr=dt(un,ar,Pt);ar==Hr?wt.push(new _t(nt(hr,Fr),nt(hr,Fr))):un.length>Fr&&wt.push(new _t(nt(hr,Fr),nt(hr,dt(un,Hr,Pt))))}wt.length||wt.push(new _t(u,u)),rr(y,Fn(e,z.ranges.slice(0,U).concat(wt),U),{origin:"*mouse",scroll:!1}),e.scrollIntoView(ct)}else{var fn=F,zr=Nu(e,ct,l.unit),kr=fn.anchor,Rr;Dt(zr.anchor,kr)>0?(Rr=zr.head,kr=_e(fn.from(),zr.anchor)):(Rr=zr.anchor,kr=Ee(fn.to(),zr.head));var br=z.ranges.slice(0);br[U]=fc(e,new _t(st(y,kr),Rr)),rr(y,Fn(e,br,U),gt)}}var Me=f.wrapper.getBoundingClientRect(),Ye=0;function tt(ct){var wt=++Ye,Pt=qi(e,ct,!0,l.unit=="rectangle");if(!!Pt)if(Dt(Pt,Ce)!=0){e.curOp.focus=De(),Ne(Pt);var Ot=Ys(f,y);(Pt.line>=Ot.to||Pt.line<Ot.from)&&setTimeout(mr(e,function(){Ye==wt&&tt(ct)}),150)}else{var Ut=ct.clientY<Me.top?-20:ct.clientY>Me.bottom?20:0;Ut&&setTimeout(mr(e,function(){Ye==wt&&(f.scroller.scrollTop+=Ut,tt(ct))}),50)}}function at(ct){e.state.selectingText=!1,Ye=1/0,ct&&(it(ct),f.input.focus()),fe(f.wrapper.ownerDocument,"mousemove",ft),fe(f.wrapper.ownerDocument,"mouseup",vt),y.history.lastSelOrigin=null}var ft=mr(e,function(ct){ct.buttons===0||!wn(ct)?at(ct):tt(ct)}),vt=mr(e,at);e.state.selectingText=vt,D(f.wrapper.ownerDocument,"mousemove",ft),D(f.wrapper.ownerDocument,"mouseup",vt)}function fc(e,n){var u=n.anchor,l=n.head,f=Et(e.doc,u.line);if(Dt(u,l)==0&&u.sticky==l.sticky)return n;var y=P(f);if(!y)return n;var F=W(y,u.ch,u.sticky),U=y[F];if(U.from!=u.ch&&U.to!=u.ch)return n;var z=F+(U.from==u.ch==(U.level!=1)?0:1);if(z==0||z==y.length)return n;var Z;if(l.line!=u.line)Z=(l.line-u.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var xe=W(y,l.ch,l.sticky),Ce=xe-F||(l.ch-u.ch)*(U.level==1?-1:1);xe==z-1||xe==z?Z=Ce<0:Z=Ce>0}var Ne=y[z+(Z?-1:0)],Me=Z==(Ne.level==1),Ye=Me?Ne.from:Ne.to,tt=Me?"after":"before";return u.ch==Ye&&u.sticky==tt?n:new _t(new nt(u.line,Ye,tt),l)}function Bu(e,n,u,l){var f,y;if(n.touches)f=n.touches[0].clientX,y=n.touches[0].clientY;else try{f=n.clientX,y=n.clientY}catch(Ne){return!1}if(f>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;l&&it(n);var F=e.display,U=F.lineDiv.getBoundingClientRect();if(y>U.bottom||!Ge(e,u))return Ct(n);y-=U.top-F.viewOffset;for(var z=0;z<e.display.gutterSpecs.length;++z){var Z=F.gutters.childNodes[z];if(Z&&Z.getBoundingClientRect().right>=f){var xe=jn(e.doc,y),Ce=e.display.gutterSpecs[z];return Oe(e,u,e,xe,Ce.className,n),Ct(n)}}}function pa(e,n){return Bu(e,n,"gutterClick",!0)}function _n(e,n){ii(e.display,n)||kd(e,n)||Pe(e,n,"contextmenu")||Y||e.display.input.onContextMenu(n)}function kd(e,n){return Ge(e,"gutterContextMenu")?Bu(e,n,"gutterContextMenu",!1):!1}function Ui(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Xo(e)}var hi={toString:function(){return"CodeMirror.Init"}},No={},ha={};function Uu(e){var n=e.optionHandlers;function u(l,f,y,F){e.defaults[l]=f,y&&(n[l]=F?function(U,z,Z){Z!=hi&&y(U,z,Z)}:y)}e.defineOption=u,e.Init=hi,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,za(l)},!0),u("indentUnit",2,za,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){ki(l),Xo(l),Kr(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var y=[],F=l.doc.first;l.doc.iter(function(z){for(var Z=0;;){var xe=z.text.indexOf(f,Z);if(xe==-1)break;Z=xe+f.length,y.push(nt(F,xe))}F++});for(var U=y.length-1;U>=0;U--)ko(l.doc,f,y[U],nt(y[U].line,y[U].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(l,f,y){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),y!=hi&&l.refresh()}),u("specialCharPlaceholder",Go,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",M?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(l,f){return l.getInputField().spellcheck=f},!0),u("autocorrect",!1,function(l,f){return l.getInputField().autocorrect=f},!0),u("autocapitalize",!1,function(l,f){return l.getInputField().autocapitalize=f},!0),u("rtlMoveVisually",!J),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){Ui(l),Po(l)},!0),u("keyMap","default",function(l,f,y){var F=ca(f),U=y!=hi&&ca(y);U&&U.detach&&U.detach(l,F),F.attach&&F.attach(l,U||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,ju,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=ja(f,l.options.lineNumbers),Po(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?Vs(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return to(l)},!0),u("scrollbarStyle","native",function(l){Ba(l),to(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),u("lineNumbers",!1,function(l,f){l.display.gutterSpecs=ja(l.options.gutters,f),Po(l)},!0),u("firstLineNumber",1,Po,!0),u("lineNumberFormatter",function(l){return l},Po,!0),u("showCursorWhenSelecting",!1,wo,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(So(l),l.display.input.blur()),l.display.input.readOnlyChanged(f)}),u("screenReaderLabel",null,function(l,f){f=f===""?null:f,l.display.input.screenReaderLabelChanged(f)}),u("disableInput",!1,function(l,f){f||l.display.input.reset()},!0),u("dragDrop",!0,cc),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,wo,!0),u("singleCursorHeightPerLine",!0,wo,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,ki,!0),u("addModeClass",!1,ki,!0),u("pollInterval",100),u("undoDepth",200,function(l,f){return l.doc.history.undoDepth=f}),u("historyEventDelay",1250),u("viewportMargin",10,function(l){return l.refresh()},!0),u("maxHighlightLength",1e4,ki,!0),u("moveInputWithCursor",!0,function(l,f){f||l.display.input.resetPosition()}),u("tabindex",null,function(l,f){return l.display.input.getField().tabIndex=f||""}),u("autofocus",null),u("direction","ltr",function(l,f){return l.doc.setDirection(f)},!0),u("phrases",null)}function cc(e,n,u){var l=u&&u!=hi;if(!n!=!l){var f=e.display.dragFunctions,y=n?D:fe;y(e.display.scroller,"dragstart",f.start),y(e.display.scroller,"dragenter",f.enter),y(e.display.scroller,"dragover",f.over),y(e.display.scroller,"dragleave",f.leave),y(e.display.scroller,"drop",f.drop)}}function ju(e){e.options.lineWrapping?(Ve(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(te(e.display.wrapper,"CodeMirror-wrap"),vo(e)),qo(e),Kr(e),Xo(e),setTimeout(function(){return to(e)},100)}function cr(e,n){var u=this;if(!(this instanceof cr))return new cr(e,n);this.options=n=n?Qe(n):{},Qe(No,n,!1);var l=n.value;typeof l=="string"?l=new Vt(l,n.mode,null,n.lineSeparator,n.direction):n.mode&&(l.modeOption=n.mode),this.doc=l;var f=new cr.inputStyles[n.inputStyle](this),y=this.display=new Wa(e,l,f,n);y.wrapper.CodeMirror=this,Ui(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ba(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 ut,keySeq:null,specialChars:null},n.autofocus&&!M&&y.input.focus(),b&&A<11&&setTimeout(function(){return u.display.input.reset(!0)},20),ss(this),ec(),Pi(this),this.curOp.forceUpdate=!0,Ze(this,l),n.autofocus&&!M||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&$s(u)},20):So(this);for(var F in ha)ha.hasOwnProperty(F)&&ha[F](this,n[F],hi);_s(this),n.finishInit&&n.finishInit(this);for(var U=0;U<vl.length;++U)vl[U](this);Ii(this),g&&n.lineWrapping&&getComputedStyle(y.lineDiv).textRendering=="optimizelegibility"&&(y.lineDiv.style.textRendering="auto")}cr.defaults=No,cr.optionHandlers=ha;function ss(e){var n=e.display;D(n.scroller,"mousedown",mr(e,hl)),b&&A<11?D(n.scroller,"dblclick",mr(e,function(z){if(!Pe(e,z)){var Z=qi(e,z);if(!(!Z||pa(e,z)||ii(e.display,z))){it(z);var xe=e.findWordAt(Z);Xa(e.doc,xe.anchor,xe.head)}}})):D(n.scroller,"dblclick",function(z){return Pe(e,z)||it(z)}),D(n.scroller,"contextmenu",function(z){return _n(e,z)}),D(n.input.getField(),"contextmenu",function(z){n.scroller.contains(z.target)||_n(e,z)});var u,l={end:0};function f(){n.activeTouch&&(u=setTimeout(function(){return n.activeTouch=null},1e3),l=n.activeTouch,l.end=+new Date)}function y(z){if(z.touches.length!=1)return!1;var Z=z.touches[0];return Z.radiusX<=1&&Z.radiusY<=1}function F(z,Z){if(Z.left==null)return!0;var xe=Z.left-z.left,Ce=Z.top-z.top;return xe*xe+Ce*Ce>20*20}D(n.scroller,"touchstart",function(z){if(!Pe(e,z)&&!y(z)&&!pa(e,z)){n.input.ensurePolled(),clearTimeout(u);var Z=+new Date;n.activeTouch={start:Z,moved:!1,prev:Z-l.end<=300?l:null},z.touches.length==1&&(n.activeTouch.left=z.touches[0].pageX,n.activeTouch.top=z.touches[0].pageY)}}),D(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),D(n.scroller,"touchend",function(z){var Z=n.activeTouch;if(Z&&!ii(n,z)&&Z.left!=null&&!Z.moved&&new Date-Z.start<300){var xe=e.coordsChar(n.activeTouch,"page"),Ce;!Z.prev||F(Z,Z.prev)?Ce=new _t(xe,xe):!Z.prev.prev||F(Z,Z.prev.prev)?Ce=e.findWordAt(xe):Ce=new _t(nt(xe.line,0),st(e.doc,nt(xe.line+1,0))),e.setSelection(Ce.anchor,Ce.head),e.focus(),it(z)}f()}),D(n.scroller,"touchcancel",f),D(n.scroller,"scroll",function(){n.scroller.clientHeight&&(sn(e,n.scroller.scrollTop),Wn(e,n.scroller.scrollLeft,!0),Oe(e,"scroll",e))}),D(n.scroller,"mousewheel",function(z){return el(e,z)}),D(n.scroller,"DOMMouseScroll",function(z){return el(e,z)}),D(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(z){Pe(e,z)||Jt(z)},over:function(z){Pe(e,z)||(Cu(e,z),Jt(z))},start:function(z){return ll(e,z)},drop:mr(e,qf),leave:function(z){Pe(e,z)||oo(e)}};var U=n.input.getField();D(U,"keyup",function(z){return oc.call(e,z)}),D(U,"keydown",mr(e,ic)),D(U,"keypress",mr(e,ac)),D(U,"focus",function(z){return $s(e,z)}),D(U,"blur",function(z){return So(e,z)})}var vl=[];cr.defineInitHook=function(e){return vl.push(e)};function Bo(e,n,u,l){var f=e.doc,y;u==null&&(u="add"),u=="smart"&&(f.mode.indent?y=qr(e,n).state:u="prev");var F=e.options.tabSize,U=Et(f,n),z=Je(U.text,null,F);U.stateAfter&&(U.stateAfter=null);var Z=U.text.match(/^\s*/)[0],xe;if(!l&&!/\S/.test(U.text))xe=0,u="not";else if(u=="smart"&&(xe=f.mode.indent(y,U.text.slice(Z.length),U.text),xe==qe||xe>150)){if(!l)return;u="prev"}u=="prev"?n>f.first?xe=Je(Et(f,n-1).text,null,F):xe=0:u=="add"?xe=z+e.options.indentUnit:u=="subtract"?xe=z-e.options.indentUnit:typeof u=="number"&&(xe=z+u),xe=Math.max(0,xe);var Ce="",Ne=0;if(e.options.indentWithTabs)for(var Me=Math.floor(xe/F);Me;--Me)Ne+=F,Ce+=" ";if(Ne<xe&&(Ce+=It(xe-Ne)),Ce!=Z)return ko(f,Ce,nt(n,0),nt(n,Z.length),"+input"),U.stateAfter=null,!0;for(var Ye=0;Ye<f.sel.ranges.length;Ye++){var tt=f.sel.ranges[Ye];if(tt.head.line==n&&tt.head.ch<Z.length){var at=nt(n,Z.length);rn(f,Ye,new _t(at,at));break}}}var Rn=null;function va(e){Rn=e}function gl(e,n,u,l,f){var y=e.doc;e.display.shift=!1,l||(l=y.sel);var F=+new Date-200,U=f=="paste"||e.state.pasteIncoming>F,z=Kn(n),Z=null;if(U&&l.ranges.length>1)if(Rn&&Rn.text.join(`
|
|
30
|
-
`)==n){if(l.ranges.length%Rn.text.length==0){Z=[];for(var xe=0;xe<Rn.text.length;xe++)Z.push(y.splitLines(Rn.text[xe]))}}else z.length==l.ranges.length&&e.options.pasteLinesPerSelection&&(Z=jt(z,function(ft){return[ft]}));for(var Ce=e.curOp.updateInput,Ne=l.ranges.length-1;Ne>=0;Ne--){var Me=l.ranges[Ne],Ye=Me.from(),tt=Me.to();Me.empty()&&(u&&u>0?Ye=nt(Ye.line,Ye.ch-u):e.state.overwrite&&!U?tt=nt(tt.line,Math.min(Et(y,tt.line).text.length,tt.ch+At(z).length)):U&&Rn&&Rn.lineWise&&Rn.text.join(`
|
|
31
|
-
`)==z.join(`
|
|
32
|
-
`)&&(Ye=tt=nt(Ye.line,0)));var at={from:Ye,to:tt,text:Z?Z[Ne%Z.length]:z,origin:f||(U?"paste":e.state.cutIncoming>F?"cut":"+input")};Li(e.doc,at),Wr(e,"inputRead",e,at)}n&&!U&&ga(e,n),yn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Ce),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Vu(e,n){var u=e.clipboardData&&e.clipboardData.getData("Text");if(u)return e.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&Jr(n,function(){return gl(n,u,0,null,"paste")}),!0}function ga(e,n){if(!(!e.options.electricChars||!e.options.smartIndent))for(var u=e.doc.sel,l=u.ranges.length-1;l>=0;l--){var f=u.ranges[l];if(!(f.head.ch>100||l&&u.ranges[l-1].head.line==f.head.line)){var y=e.getModeAt(f.head),F=!1;if(y.electricChars){for(var U=0;U<y.electricChars.length;U++)if(n.indexOf(y.electricChars.charAt(U))>-1){F=Bo(e,f.head.line,"smart");break}}else y.electricInput&&y.electricInput.test(Et(e.doc,f.head.line).text.slice(0,f.head.ch))&&(F=Bo(e,f.head.line,"smart"));F&&Wr(e,"electricInput",e,f.head.line)}}}function yl(e){for(var n=[],u=[],l=0;l<e.doc.sel.ranges.length;l++){var f=e.doc.sel.ranges[l].head.line,y={anchor:nt(f,0),head:nt(f+1,0)};u.push(y),n.push(e.getRange(y.anchor,y.head))}return{text:n,ranges:u}}function ml(e,n,u,l){e.setAttribute("autocorrect",u?"":"off"),e.setAttribute("autocapitalize",l?"":"off"),e.setAttribute("spellcheck",!!n)}function xl(){var e=ge("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),n=ge("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?e.style.width="1000px":e.setAttribute("wrap","off"),R&&(e.style.border="1px solid black"),ml(e),n}function dc(e){var n=e.optionHandlers,u=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(l,f){var y=this.options,F=y[l];y[l]==f&&l!="mode"||(y[l]=f,n.hasOwnProperty(l)&&mr(this,n[l])(this,f,F),Oe(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,f){this.state.keyMaps[f?"push":"unshift"](ca(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,y=0;y<f.length;++y)if(f[y]==l||f[y].name==l)return f.splice(y,1),!0},addOverlay:Dr(function(l,f){var y=l.token?l:e.getMode(this.options,l);if(y.startState)throw new Error("Overlays may not be stateful.");Nt(this.state.overlays,{mode:y,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(F){return F.priority}),this.state.modeGen++,Kr(this)}),removeOverlay:Dr(function(l){for(var f=this.state.overlays,y=0;y<f.length;++y){var F=f[y].modeSpec;if(F==l||typeof l=="string"&&F.name==l){f.splice(y,1),this.state.modeGen++,Kr(this);return}}}),indentLine:Dr(function(l,f,y){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),Xn(this.doc,l)&&Bo(this,l,f,y)}),indentSelection:Dr(function(l){for(var f=this.doc.sel.ranges,y=-1,F=0;F<f.length;F++){var U=f[F];if(U.empty())U.head.line>y&&(Bo(this,U.head.line,l,!0),y=U.head.line,F==this.doc.sel.primIndex&&yn(this));else{var z=U.from(),Z=U.to(),xe=Math.max(y,z.line);y=Math.min(this.lastLine(),Z.line-(Z.ch?0:1))+1;for(var Ce=xe;Ce<y;++Ce)Bo(this,Ce,l);var Ne=this.doc.sel.ranges;z.ch==0&&f.length==Ne.length&&Ne[F].from().ch>0&&rn(this.doc,F,new _t(z,Ne[F].to()),lt)}}}),getTokenAt:function(l,f){return ws(this,l,f)},getLineTokens:function(l,f){return ws(this,nt(l),f,!0)},getTokenTypeAt:function(l){l=st(this.doc,l);var f=Ul(this,Et(this.doc,l.line)),y=0,F=(f.length-1)/2,U=l.ch,z;if(U==0)z=f[2];else for(;;){var Z=y+F>>1;if((Z?f[Z*2-1]:0)>=U)F=Z;else if(f[Z*2+1]<U)y=Z+1;else{z=f[Z*2+2];break}}var xe=z?z.indexOf("overlay "):-1;return xe<0?z:xe==0?null:z.slice(0,xe-1)},getModeAt:function(l){var f=this.doc.mode;return f.innerMode?e.innerMode(f,this.getTokenAt(l).state).mode:f},getHelper:function(l,f){return this.getHelpers(l,f)[0]},getHelpers:function(l,f){var y=[];if(!u.hasOwnProperty(f))return y;var F=u[f],U=this.getModeAt(l);if(typeof U[f]=="string")F[U[f]]&&y.push(F[U[f]]);else if(U[f])for(var z=0;z<U[f].length;z++){var Z=F[U[f][z]];Z&&y.push(Z)}else U.helperType&&F[U.helperType]?y.push(F[U.helperType]):F[U.name]&&y.push(F[U.name]);for(var xe=0;xe<F._global.length;xe++){var Ce=F._global[xe];Ce.pred(U,this)&&pt(y,Ce.val)==-1&&y.push(Ce.val)}return y},getStateAfter:function(l,f){var y=this.doc;return l=ot(y,l==null?y.first+y.size-1:l),qr(this,l+1,f).state},cursorCoords:function(l,f){var y,F=this.doc.sel.primary();return l==null?y=F.head:typeof l=="object"?y=st(this.doc,l):y=l?F.from():F.to(),en(this,y,f||"page")},charCoords:function(l,f){return Na(this,st(this.doc,l),f||"page")},coordsChar:function(l,f){return l=Us(this,l,f||"page"),Zi(this,l.left,l.top)},lineAtHeight:function(l,f){return l=Us(this,{top:l,left:0},f||"page").top,jn(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,y){var F=!1,U;if(typeof l=="number"){var z=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>z&&(l=z,F=!0),U=Et(this.doc,l)}else U=l;return Da(this,U,{top:0,left:0},f||"page",y||F).top+(F?this.doc.height-ni(U):0)},defaultTextHeight:function(){return xo(this.display)},defaultCharWidth:function(){return bo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,y,F,U){var z=this.display;l=en(this,st(this.doc,l));var Z=l.bottom,xe=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),z.sizer.appendChild(f),F=="over")Z=l.top;else if(F=="above"||F=="near"){var Ce=Math.max(z.wrapper.clientHeight,this.doc.height),Ne=Math.max(z.sizer.clientWidth,z.lineSpace.clientWidth);(F=="above"||l.bottom+f.offsetHeight>Ce)&&l.top>f.offsetHeight?Z=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=Ce&&(Z=l.bottom),xe+f.offsetWidth>Ne&&(xe=Ne-f.offsetWidth)}f.style.top=Z+"px",f.style.left=f.style.right="",U=="right"?(xe=z.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(U=="left"?xe=0:U=="middle"&&(xe=(z.sizer.clientWidth-f.offsetWidth)/2),f.style.left=xe+"px"),y&&Cd(this,{left:xe,top:Z,right:xe+f.offsetWidth,bottom:Z+f.offsetHeight})},triggerOnKeyDown:Dr(ic),triggerOnKeyPress:Dr(ac),triggerOnKeyUp:oc,triggerOnMouseDown:Dr(hl),execCommand:function(l){if(Ni.hasOwnProperty(l))return Ni[l].call(null,this)},triggerElectric:Dr(function(l){ga(this,l)}),findPosH:function(l,f,y,F){var U=1;f<0&&(U=-1,f=-f);for(var z=st(this.doc,l),Z=0;Z<f&&(z=bl(this.doc,z,U,y,F),!z.hitSide);++Z);return z},moveH:Dr(function(l,f){var y=this;this.extendSelectionsBy(function(F){return y.display.shift||y.doc.extend||F.empty()?bl(y.doc,F.head,l,f,y.options.rtlMoveVisually):l<0?F.from():F.to()},xt)}),deleteH:Dr(function(l,f){var y=this.doc.sel,F=this.doc;y.somethingSelected()?F.replaceSelection("",null,"+delete"):so(this,function(U){var z=bl(F,U.head,l,f,!1);return l<0?{from:z,to:U.head}:{from:U.head,to:z}})}),findPosV:function(l,f,y,F){var U=1,z=F;f<0&&(U=-1,f=-f);for(var Z=st(this.doc,l),xe=0;xe<f;++xe){var Ce=en(this,Z,"div");if(z==null?z=Ce.left:Ce.left=z,Z=Wu(this,Ce,U,y),Z.hitSide)break}return Z},moveV:Dr(function(l,f){var y=this,F=this.doc,U=[],z=!this.display.shift&&!F.extend&&F.sel.somethingSelected();if(F.extendSelectionsBy(function(xe){if(z)return l<0?xe.from():xe.to();var Ce=en(y,xe.head,"div");xe.goalColumn!=null&&(Ce.left=xe.goalColumn),U.push(Ce.left);var Ne=Wu(y,Ce,l,f);return f=="page"&&xe==F.sel.primary()&&an(y,Na(y,Ne,"div").top-Ce.top),Ne},xt),U.length)for(var Z=0;Z<F.sel.ranges.length;Z++)F.sel.ranges[Z].goalColumn=U[Z]}),findWordAt:function(l){var f=this.doc,y=Et(f,l.line).text,F=l.ch,U=l.ch;if(y){var z=this.getHelper(l,"wordChars");(l.sticky=="before"||U==y.length)&&F?--F:++U;for(var Z=y.charAt(F),xe=G(Z,z)?function(Ce){return G(Ce,z)}:/\s/.test(Z)?function(Ce){return/\s/.test(Ce)}:function(Ce){return!/\s/.test(Ce)&&!G(Ce)};F>0&&xe(y.charAt(F-1));)--F;for(;U<y.length&&xe(y.charAt(U));)++U}return new _t(nt(l.line,F),nt(l.line,U))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ve(this.display.cursorDiv,"CodeMirror-overwrite"):te(this.display.cursorDiv,"CodeMirror-overwrite"),Oe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==De()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Dr(function(l,f){mn(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Qn(this)-this.display.barHeight,width:l.scrollWidth-Qn(this)-this.display.barWidth,clientHeight:La(this),clientWidth:vn(this)}},scrollIntoView:Dr(function(l,f){l==null?(l={from:this.doc.sel.primary().head,to:null},f==null&&(f=this.options.cursorScrollMargin)):typeof l=="number"?l={from:nt(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=f||0,l.from.line!=null?Hf(this,l):ta(this,l.from,l.to,l.margin)}),setSize:Dr(function(l,f){var y=this,F=function(z){return typeof z=="number"||/^\d+$/.test(String(z))?z+"px":z};l!=null&&(this.display.wrapper.style.width=F(l)),f!=null&&(this.display.wrapper.style.height=F(f)),this.options.lineWrapping&&Ls(this);var U=this.display.viewFrom;this.doc.iter(U,this.display.viewTo,function(z){if(z.widgets){for(var Z=0;Z<z.widgets.length;Z++)if(z.widgets[Z].noHScroll){Ci(y,U,"widget");break}}++U}),this.curOp.forceUpdate=!0,Oe(this,"refresh",this)}),operation:function(l){return Jr(this,l)},startOperation:function(){return Pi(this)},endOperation:function(){return Ii(this)},refresh:Dr(function(){var l=this.display.cachedTextHeight;Kr(this),this.curOp.forceUpdate=!0,Xo(this),mn(this,this.doc.scrollLeft,this.doc.scrollTop),ln(this.display),(l==null||Math.abs(l-xo(this.display))>.5||this.options.lineWrapping)&&qo(this),Oe(this,"refresh",this)}),swapDoc:Dr(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),Ze(this,l),Xo(this),this.display.input.reset(),mn(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Wr(this,"swapDoc",this,f),f}),phrase:function(l){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,l)?f[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}},He(e),e.registerHelper=function(l,f,y){u.hasOwnProperty(l)||(u[l]=e[l]={_global:[]}),u[l][f]=y},e.registerGlobalHelper=function(l,f,y,F){e.registerHelper(l,f,F),u[l]._global.push({pred:y,val:F})}}function bl(e,n,u,l,f){var y=n,F=u,U=Et(e,n.line),z=f&&e.direction=="rtl"?-u:u;function Z(){var vt=n.line+z;return vt<e.first||vt>=e.first+e.size?!1:(n=new nt(vt,n.ch,n.sticky),U=Et(e,vt))}function xe(vt){var ct;if(l=="codepoint"){var wt=U.text.charCodeAt(n.ch+(u>0?0:-1));if(isNaN(wt))ct=null;else{var Pt=u>0?wt>=55296&&wt<56320:wt>=56320&&wt<57343;ct=new nt(n.line,Math.max(0,Math.min(U.text.length,n.ch+u*(Pt?2:1))),-u)}}else f?ct=tc(e.cm,U,n,u):ct=ns(U,n,u);if(ct==null)if(!vt&&Z())n=dl(f,e.cm,U,n.line,z);else return!1;else n=ct;return!0}if(l=="char"||l=="codepoint")xe();else if(l=="column")xe(!0);else if(l=="word"||l=="group")for(var Ce=null,Ne=l=="group",Me=e.cm&&e.cm.getHelper(n,"wordChars"),Ye=!0;!(u<0&&!xe(!Ye));Ye=!1){var tt=U.text.charAt(n.ch)||`
|
|
33
|
-
`,at=G(tt,Me)?"w":Ne&&tt==`
|
|
34
|
-
`?"n":!Ne||/\s/.test(tt)?null:"p";if(Ne&&!Ye&&!at&&(at="s"),Ce&&Ce!=at){u<0&&(u=1,xe(),n.sticky="after");break}if(at&&(Ce=at),u>0&&!xe(!Ye))break}var ft=Nr(e,n,y,F,!0);return ti(y,ft)&&(ft.hitSide=!0),ft}function Wu(e,n,u,l){var f=e.doc,y=n.left,F;if(l=="page"){var U=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),z=Math.max(U-.5*xo(e.display),3);F=(u>0?n.bottom:n.top)+u*z}else l=="line"&&(F=u>0?n.bottom+3:n.top-3);for(var Z;Z=Zi(e,y,F),!!Z.outside;){if(u<0?F<=0:F>=f.height){Z.hitSide=!0;break}F+=u*5}return Z}var nr=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ut,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};nr.prototype.init=function(e){var n=this,u=this,l=u.cm,f=u.div=e.lineDiv;f.contentEditable=!0,ml(f,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function y(U){for(var z=U.target;z;z=z.parentNode){if(z==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(z.className))break}return!1}D(f,"paste",function(U){!y(U)||Pe(l,U)||Vu(U,l)||A<=11&&setTimeout(mr(l,function(){return n.updateFromDOM()}),20)}),D(f,"compositionstart",function(U){n.composing={data:U.data,done:!1}}),D(f,"compositionupdate",function(U){n.composing||(n.composing={data:U.data,done:!1})}),D(f,"compositionend",function(U){n.composing&&(U.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),D(f,"touchstart",function(){return u.forceCompositionEnd()}),D(f,"input",function(){n.composing||n.readFromDOMSoon()});function F(U){if(!(!y(U)||Pe(l,U))){if(l.somethingSelected())va({lineWise:!1,text:l.getSelections()}),U.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var z=yl(l);va({lineWise:!0,text:z.text}),U.type=="cut"&&l.operation(function(){l.setSelections(z.ranges,0,lt),l.replaceSelection("",null,"cut")})}else return;if(U.clipboardData){U.clipboardData.clearData();var Z=Rn.text.join(`
|
|
35
|
-
`);if(U.clipboardData.setData("Text",Z),U.clipboardData.getData("Text")==Z){U.preventDefault();return}}var xe=xl(),Ce=xe.firstChild;l.display.lineSpace.insertBefore(xe,l.display.lineSpace.firstChild),Ce.value=Rn.text.join(`
|
|
36
|
-
`);var Ne=De();ke(Ce),setTimeout(function(){l.display.lineSpace.removeChild(xe),Ne.focus(),Ne==f&&u.showPrimarySelection()},50)}}D(f,"copy",F),D(f,"cut",F)},nr.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},nr.prototype.prepareSelection=function(){var e=Bf(this.cm,!1);return e.focus=De()==this.div,e},nr.prototype.showSelection=function(e,n){!e||!this.cm.display.view.length||((e.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(e))},nr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},nr.prototype.showPrimarySelection=function(){var e=this.getSelection(),n=this.cm,u=n.doc.sel.primary(),l=u.from(),f=u.to();if(n.display.viewTo==n.display.viewFrom||l.line>=n.display.viewTo||f.line<n.display.viewFrom){e.removeAllRanges();return}var y=ls(n,e.anchorNode,e.anchorOffset),F=ls(n,e.focusNode,e.focusOffset);if(!(y&&!y.bad&&F&&!F.bad&&Dt(_e(y,F),l)==0&&Dt(Ee(y,F),f)==0)){var U=n.display.view,z=l.line>=n.display.viewFrom&&Hu(n,l)||{node:U[0].measure.map[2],offset:0},Z=f.line<n.display.viewTo&&Hu(n,f);if(!Z){var xe=U[U.length-1].measure,Ce=xe.maps?xe.maps[xe.maps.length-1]:xe.map;Z={node:Ce[Ce.length-1],offset:Ce[Ce.length-2]-Ce[Ce.length-3]}}if(!z||!Z){e.removeAllRanges();return}var Ne=e.rangeCount&&e.getRangeAt(0),Me;try{Me=le(z.node,z.offset,Z.offset,Z.node)}catch(Ye){}Me&&(!c&&n.state.focused?(e.collapse(z.node,z.offset),Me.collapsed||(e.removeAllRanges(),e.addRange(Me))):(e.removeAllRanges(),e.addRange(Me)),Ne&&e.anchorNode==null?e.addRange(Ne):c&&this.startGracePeriod()),this.rememberSelection()}},nr.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},nr.prototype.showMultipleSelections=function(e){ye(this.cm.display.cursorDiv,e.cursors),ye(this.cm.display.selectionDiv,e.selection)},nr.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},nr.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var n=e.getRangeAt(0).commonAncestorContainer;return ae(this.div,n)},nr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||De()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},nr.prototype.blur=function(){this.div.blur()},nr.prototype.getField=function(){return this.div},nr.prototype.supportsTouch=function(){return!0},nr.prototype.receivedFocus=function(){var e=this,n=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):Jr(this.cm,function(){return n.cm.curOp.selectionChanged=!0});function u(){n.cm.state.focused&&(n.pollSelection(),n.polling.set(n.cm.options.pollInterval,u))}this.polling.set(this.cm.options.pollInterval,u)},nr.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},nr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),n=this.cm;if(X&&N&&this.cm.display.gutterSpecs.length&&pc(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=ls(n,e.anchorNode,e.anchorOffset),l=ls(n,e.focusNode,e.focusOffset);u&&l&&Jr(n,function(){rr(n.doc,li(u,l),lt),(u.bad||l.bad)&&(n.curOp.selectionChanged=!0)})}}},nr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,n=e.display,u=e.doc.sel.primary(),l=u.from(),f=u.to();if(l.ch==0&&l.line>e.firstLine()&&(l=nt(l.line-1,Et(e.doc,l.line-1).length)),f.ch==Et(e.doc,f.line).text.length&&f.line<e.lastLine()&&(f=nt(f.line+1,0)),l.line<n.viewFrom||f.line>n.viewTo-1)return!1;var y,F,U;l.line==n.viewFrom||(y=Ei(e,l.line))==0?(F=qt(n.view[0].line),U=n.view[0].node):(F=qt(n.view[y].line),U=n.view[y-1].node.nextSibling);var z=Ei(e,f.line),Z,xe;if(z==n.view.length-1?(Z=n.viewTo-1,xe=n.lineDiv.lastChild):(Z=qt(n.view[z+1].line)-1,xe=n.view[z+1].node.previousSibling),!U)return!1;for(var Ce=e.doc.splitLines(zu(e,U,xe,F,Z)),Ne=ei(e.doc,nt(F,0),nt(Z,Et(e.doc,Z).text.length));Ce.length>1&&Ne.length>1;)if(At(Ce)==At(Ne))Ce.pop(),Ne.pop(),Z--;else if(Ce[0]==Ne[0])Ce.shift(),Ne.shift(),F++;else break;for(var Me=0,Ye=0,tt=Ce[0],at=Ne[0],ft=Math.min(tt.length,at.length);Me<ft&&tt.charCodeAt(Me)==at.charCodeAt(Me);)++Me;for(var vt=At(Ce),ct=At(Ne),wt=Math.min(vt.length-(Ce.length==1?Me:0),ct.length-(Ne.length==1?Me:0));Ye<wt&&vt.charCodeAt(vt.length-Ye-1)==ct.charCodeAt(ct.length-Ye-1);)++Ye;if(Ce.length==1&&Ne.length==1&&F==l.line)for(;Me&&Me>l.ch&&vt.charCodeAt(vt.length-Ye-1)==ct.charCodeAt(ct.length-Ye-1);)Me--,Ye++;Ce[Ce.length-1]=vt.slice(0,vt.length-Ye).replace(/^\u200b+/,""),Ce[0]=Ce[0].slice(Me).replace(/\u200b+$/,"");var Pt=nt(F,Me),Ot=nt(Z,Ne.length?At(Ne).length-Ye:0);if(Ce.length>1||Ce[0]||Dt(Pt,Ot))return ko(e.doc,Ce,Pt,Ot,"+input"),!0},nr.prototype.ensurePolled=function(){this.forceCompositionEnd()},nr.prototype.reset=function(){this.forceCompositionEnd()},nr.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},nr.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},nr.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Jr(this.cm,function(){return Kr(e.cm)})},nr.prototype.setUneditable=function(e){e.contentEditable="false"},nr.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||mr(this.cm,gl)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},nr.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},nr.prototype.onContextMenu=function(){},nr.prototype.resetPosition=function(){},nr.prototype.needsContentAttribute=!0;function Hu(e,n){var u=Rs(e,n.line);if(!u||u.hidden)return null;var l=Et(e.doc,n.line),f=tu(u,l,n.line),y=P(l,e.doc.direction),F="left";if(y){var U=W(y,n.ch);F=U%2?"right":"left"}var z=iu(f.map,n.ch,F);return z.offset=z.collapse=="right"?z.end:z.start,z}function pc(e){for(var n=e;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}function lo(e,n){return n&&(e.bad=!0),e}function zu(e,n,u,l,f){var y="",F=!1,U=e.doc.lineSeparator(),z=!1;function Z(Me){return function(Ye){return Ye.id==Me}}function xe(){F&&(y+=U,z&&(y+=U),F=z=!1)}function Ce(Me){Me&&(xe(),y+=Me)}function Ne(Me){if(Me.nodeType==1){var Ye=Me.getAttribute("cm-text");if(Ye){Ce(Ye);return}var tt=Me.getAttribute("cm-marker"),at;if(tt){var ft=e.findMarks(nt(l,0),nt(f+1,0),Z(+tt));ft.length&&(at=ft[0].find(0))&&Ce(ei(e.doc,at.from,at.to).join(U));return}if(Me.getAttribute("contenteditable")=="false")return;var vt=/^(pre|div|p|li|table|br)$/i.test(Me.nodeName);if(!/^br$/i.test(Me.nodeName)&&Me.textContent.length==0)return;vt&&xe();for(var ct=0;ct<Me.childNodes.length;ct++)Ne(Me.childNodes[ct]);/^(pre|p)$/i.test(Me.nodeName)&&(z=!0),vt&&(F=!0)}else Me.nodeType==3&&Ce(Me.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ne(n),n!=u;)n=n.nextSibling,z=!1;return y}function ls(e,n,u){var l;if(n==e.display.lineDiv){if(l=e.display.lineDiv.childNodes[u],!l)return lo(e.clipPos(nt(e.display.viewTo-1)),!0);n=null,u=0}else for(l=n;;l=l.parentNode){if(!l||l==e.display.lineDiv)return null;if(l.parentNode&&l.parentNode==e.display.lineDiv)break}for(var f=0;f<e.display.view.length;f++){var y=e.display.view[f];if(y.node==l)return hc(y,n,u)}}function hc(e,n,u){var l=e.text.firstChild,f=!1;if(!n||!ae(l,n))return lo(nt(qt(e.line),0),!0);if(n==l&&(f=!0,n=l.childNodes[u],u=0,!n)){var y=e.rest?At(e.rest):e.line;return lo(nt(qt(y),y.text.length),f)}var F=n.nodeType==3?n:null,U=n;for(!F&&n.childNodes.length==1&&n.firstChild.nodeType==3&&(F=n.firstChild,u&&(u=F.nodeValue.length));U.parentNode!=l;)U=U.parentNode;var z=e.measure,Z=z.maps;function xe(at,ft,vt){for(var ct=-1;ct<(Z?Z.length:0);ct++)for(var wt=ct<0?z.map:Z[ct],Pt=0;Pt<wt.length;Pt+=3){var Ot=wt[Pt+2];if(Ot==at||Ot==ft){var Ut=qt(ct<0?e.line:e.rest[ct]),ar=wt[Pt]+vt;return(vt<0||Ot!=at)&&(ar=wt[Pt+(vt?1:0)]),nt(Ut,ar)}}}var Ce=xe(F,U,u);if(Ce)return lo(Ce,f);for(var Ne=U.nextSibling,Me=F?F.nodeValue.length-u:0;Ne;Ne=Ne.nextSibling){if(Ce=xe(Ne,Ne.firstChild,0),Ce)return lo(nt(Ce.line,Ce.ch-Me),f);Me+=Ne.textContent.length}for(var Ye=U.previousSibling,tt=u;Ye;Ye=Ye.previousSibling){if(Ce=xe(Ye,Ye.firstChild,-1),Ce)return lo(nt(Ce.line,Ce.ch+tt),f);tt+=Ye.textContent.length}}var Ar=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ut,this.hasSelection=!1,this.composing=null};Ar.prototype.init=function(e){var n=this,u=this,l=this.cm;this.createField(e);var f=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),R&&(f.style.width="0px"),D(f,"input",function(){b&&A>=9&&n.hasSelection&&(n.hasSelection=null),u.poll()}),D(f,"paste",function(F){Pe(l,F)||Vu(F,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function y(F){if(!Pe(l,F)){if(l.somethingSelected())va({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var U=yl(l);va({lineWise:!0,text:U.text}),F.type=="cut"?l.setSelections(U.ranges,null,lt):(u.prevInput="",f.value=U.text.join(`
|
|
37
|
-
`),ke(f))}else return;F.type=="cut"&&(l.state.cutIncoming=+new Date)}}D(f,"cut",y),D(f,"copy",y),D(e.scroller,"paste",function(F){if(!(ii(e,F)||Pe(l,F))){if(!f.dispatchEvent){l.state.pasteIncoming=+new Date,u.focus();return}var U=new Event("paste");U.clipboardData=F.clipboardData,f.dispatchEvent(U)}}),D(e.lineSpace,"selectstart",function(F){ii(e,F)||it(F)}),D(f,"compositionstart",function(){var F=l.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:F,range:l.markText(F,l.getCursor("to"),{className:"CodeMirror-composing"})}}),D(f,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},Ar.prototype.createField=function(e){this.wrapper=xl(),this.textarea=this.wrapper.firstChild},Ar.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ar.prototype.prepareSelection=function(){var e=this.cm,n=e.display,u=e.doc,l=Bf(e);if(e.options.moveInputWithCursor){var f=en(e,u.sel.primary().head,"div"),y=n.wrapper.getBoundingClientRect(),F=n.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,f.top+F.top-y.top)),l.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,f.left+F.left-y.left))}return l},Ar.prototype.showSelection=function(e){var n=this.cm,u=n.display;ye(u.cursorDiv,e.cursors),ye(u.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ar.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var n=this.cm;if(n.somethingSelected()){this.prevInput="";var u=n.getSelection();this.textarea.value=u,n.state.focused&&ke(this.textarea),b&&A>=9&&(this.hasSelection=u)}else e||(this.prevInput=this.textarea.value="",b&&A>=9&&(this.hasSelection=null))}},Ar.prototype.getField=function(){return this.textarea},Ar.prototype.supportsTouch=function(){return!1},Ar.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!M||De()!=this.textarea))try{this.textarea.focus()}catch(e){}},Ar.prototype.blur=function(){this.textarea.blur()},Ar.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ar.prototype.receivedFocus=function(){this.slowPoll()},Ar.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ar.prototype.fastPoll=function(){var e=!1,n=this;n.pollingFast=!0;function u(){var l=n.poll();!l&&!e?(e=!0,n.polling.set(60,u)):(n.pollingFast=!1,n.slowPoll())}n.polling.set(20,u)},Ar.prototype.poll=function(){var e=this,n=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||!n.state.focused||Tn(u)&&!l&&!this.composing||n.isReadOnly()||n.options.disableInput||n.state.keySeq)return!1;var f=u.value;if(f==l&&!n.somethingSelected())return!1;if(b&&A>=9&&this.hasSelection===f||C&&/[\uf700-\uf7ff]/.test(f))return n.display.input.reset(),!1;if(n.doc.sel==n.display.selForContextMenu){var y=f.charCodeAt(0);if(y==8203&&!l&&(l="\u200B"),y==8666)return this.reset(),this.cm.execCommand("undo")}for(var F=0,U=Math.min(l.length,f.length);F<U&&l.charCodeAt(F)==f.charCodeAt(F);)++F;return Jr(n,function(){gl(n,f.slice(F),l.length-F,null,e.composing?"*compose":null),f.length>1e3||f.indexOf(`
|
|
38
|
-
`)>-1?u.value=e.prevInput="":e.prevInput=f,e.composing&&(e.composing.range.clear(),e.composing.range=n.markText(e.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ar.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ar.prototype.onKeyPress=function(){b&&A>=9&&(this.hasSelection=null),this.fastPoll()},Ar.prototype.onContextMenu=function(e){var n=this,u=n.cm,l=u.display,f=n.textarea;n.contextMenuPending&&n.contextMenuPending();var y=qi(u,e),F=l.scroller.scrollTop;if(!y||B)return;var U=u.options.resetSelectionOnContextMenu;U&&u.doc.sel.contains(y)==-1&&mr(u,rr)(u.doc,li(y),lt);var z=f.style.cssText,Z=n.wrapper.style.cssText,xe=n.wrapper.offsetParent.getBoundingClientRect();n.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
39
|
-
top: `+(e.clientY-xe.top-5)+"px; left: "+(e.clientX-xe.left-5)+`px;
|
|
40
|
-
z-index: 1000; background: `+(b?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
41
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ce;g&&(Ce=window.scrollY),l.input.focus(),g&&window.scrollTo(null,Ce),l.input.reset(),u.somethingSelected()||(f.value=n.prevInput=" "),n.contextMenuPending=Me,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function Ne(){if(f.selectionStart!=null){var tt=u.somethingSelected(),at="\u200B"+(tt?f.value:"");f.value="\u21DA",f.value=at,n.prevInput=tt?"":"\u200B",f.selectionStart=1,f.selectionEnd=at.length,l.selForContextMenu=u.doc.sel}}function Me(){if(n.contextMenuPending==Me&&(n.contextMenuPending=!1,n.wrapper.style.cssText=Z,f.style.cssText=z,b&&A<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=F),f.selectionStart!=null)){(!b||b&&A<9)&&Ne();var tt=0,at=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&n.prevInput=="\u200B"?mr(u,qa)(u):tt++<10?l.detectingSelectAll=setTimeout(at,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(at,200)}}if(b&&A>=9&&Ne(),Y){Jt(e);var Ye=function(){fe(window,"mouseup",Ye),setTimeout(Me,20)};D(window,"mouseup",Ye)}else setTimeout(Me,50)},Ar.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Ar.prototype.setUneditable=function(){},Ar.prototype.needsContentAttribute=!1;function us(e,n){if(n=n?Qe(n):{},n.value=e.value,!n.tabindex&&e.tabIndex&&(n.tabindex=e.tabIndex),!n.placeholder&&e.placeholder&&(n.placeholder=e.placeholder),n.autofocus==null){var u=De();n.autofocus=u==e||e.getAttribute("autofocus")!=null&&u==document.body}function l(){e.value=U.getValue()}var f;if(e.form&&(D(e.form,"submit",l),!n.leaveSubmitMethodAlone)){var y=e.form;f=y.submit;try{var F=y.submit=function(){l(),y.submit=f,y.submit(),y.submit=F}}catch(z){}}n.finishInit=function(z){z.save=l,z.getTextArea=function(){return e},z.toTextArea=function(){z.toTextArea=isNaN,l(),e.parentNode.removeChild(z.getWrapperElement()),e.style.display="",e.form&&(fe(e.form,"submit",l),!n.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=f))}},e.style.display="none";var U=cr(function(z){return e.parentNode.insertBefore(z,e.nextSibling)},n);return U}function Gu(e){e.off=fe,e.on=D,e.wheelEventPixels=cu,e.Doc=Vt,e.splitLines=Kn,e.countColumn=Je,e.findColumn=dt,e.isWordChar=pe,e.Pass=qe,e.signal=Oe,e.Line=Xi,e.changeEnd=ui,e.scrollbarModel=Js,e.Pos=nt,e.cmpPos=Dt,e.modes=Vo,e.mimeModes=Sn,e.resolveMode=Ki,e.getMode=Un,e.modeExtensions=xi,e.extendMode=Ia,e.copyState=Pn,e.startState=bi,e.innerMode=An,e.commands=Ni,e.keyMap=pi,e.keyName=Iu,e.isModifierKey=fa,e.lookupKey=Lo,e.normalizeKeyMap=Tu,e.StringStream=yr,e.SharedTextMarker=la,e.TextMarker=Di,e.LineWidget=ts,e.e_preventDefault=it,e.e_stopPropagation=yt,e.e_stop=Jt,e.addClass=Ve,e.contains=ae,e.rmClass=te,e.keyNames=di}Uu(cr),dc(cr);var $u="iter insert remove copy getEditor constructor".split(" ");for(var ya in Vt.prototype)Vt.prototype.hasOwnProperty(ya)&&pt($u,ya)<0&&(cr.prototype[ya]=function(e){return function(){return e.apply(this.doc,arguments)}}(Vt.prototype[ya]));return He(Vt),cr.inputStyles={textarea:Ar,contenteditable:nr},cr.defineMode=function(e){!cr.defaults.mode&&e!="null"&&(cr.defaults.mode=e),Jn.apply(this,arguments)},cr.defineMIME=mi,cr.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),cr.defineMIME("text/plain","null"),cr.defineExtension=function(e,n){cr.prototype[e]=n},cr.defineDocExtension=function(e,n){Vt.prototype[e]=n},cr.fromTextArea=us,Gu(cr),cr.version="5.65.0",cr})},96876:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";c.defineMode("javascript",function(v,x){var d=v.indentUnit,b=x.statementIndent,A=x.jsonld,g=x.json||A,L=x.trackScope!==!1,N=x.typescript,B=x.wordCharacters||/[\w$\xa1-\uffff]/,j=function(){function se(Or){return{type:Or,style:"keyword"}}var Ee=se("keyword a"),_e=se("keyword b"),ot=se("keyword c"),st=se("keyword d"),Kt=se("operator"),Zt={type:"atom",style:"atom"};return{if:se("if"),while:Ee,with:Ee,else:_e,do:_e,try:_e,finally:_e,return:st,break:st,continue:st,new:se("new"),delete:ot,void:ot,throw:ot,debugger:se("debugger"),var:se("var"),const:se("var"),let:se("var"),function:se("function"),catch:se("catch"),for:se("for"),switch:se("switch"),case:se("case"),default:se("default"),in:Kt,typeof:Kt,instanceof:Kt,true:Zt,false:Zt,null:Zt,undefined:Zt,NaN:Zt,Infinity:Zt,this:se("this"),class:se("class"),super:se("atom"),yield:ot,export:se("export"),import:se("import"),extends:ot,await:ot}}(),_=/[+\-*&%=<>!?|~^@]/,H=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function R(se){for(var Ee=!1,_e,ot=!1;(_e=se.next())!=null;){if(!Ee){if(_e=="/"&&!ot)return;_e=="["?ot=!0:ot&&_e=="]"&&(ot=!1)}Ee=!Ee&&_e=="\\"}}var X,M;function C(se,Ee,_e){return X=se,M=_e,Ee}function V(se,Ee){var _e=se.next();if(_e=='"'||_e=="'")return Ee.tokenize=J(_e),Ee.tokenize(se,Ee);if(_e=="."&&se.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(_e=="."&&se.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(_e))return C(_e);if(_e=="="&&se.eat(">"))return C("=>","operator");if(_e=="0"&&se.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(_e))return se.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(_e=="/")return se.eat("*")?(Ee.tokenize=q,q(se,Ee)):se.eat("/")?(se.skipToEnd(),C("comment","comment")):ti(se,Ee,1)?(R(se),se.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(se.eat("="),C("operator","operator",se.current()));if(_e=="`")return Ee.tokenize=Q,Q(se,Ee);if(_e=="#"&&se.peek()=="!")return se.skipToEnd(),C("meta","meta");if(_e=="#"&&se.eatWhile(B))return C("variable","property");if(_e=="<"&&se.match("!--")||_e=="-"&&se.match("->")&&!/\S/.test(se.string.slice(0,se.start)))return se.skipToEnd(),C("comment","comment");if(_.test(_e))return(_e!=">"||!Ee.lexical||Ee.lexical.type!=">")&&(se.eat("=")?(_e=="!"||_e=="=")&&se.eat("="):/[<>*+\-|&?]/.test(_e)&&(se.eat(_e),_e==">"&&se.eat(_e))),_e=="?"&&se.eat(".")?C("."):C("operator","operator",se.current());if(B.test(_e)){se.eatWhile(B);var ot=se.current();if(Ee.lastType!="."){if(j.propertyIsEnumerable(ot)){var st=j[ot];return C(st.type,st.style,ot)}if(ot=="async"&&se.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",ot)}return C("variable","variable",ot)}}function J(se){return function(Ee,_e){var ot=!1,st;if(A&&Ee.peek()=="@"&&Ee.match(H))return _e.tokenize=V,C("jsonld-keyword","meta");for(;(st=Ee.next())!=null&&!(st==se&&!ot);)ot=!ot&&st=="\\";return ot||(_e.tokenize=V),C("string","string")}}function q(se,Ee){for(var _e=!1,ot;ot=se.next();){if(ot=="/"&&_e){Ee.tokenize=V;break}_e=ot=="*"}return C("comment","comment")}function Q(se,Ee){for(var _e=!1,ot;(ot=se.next())!=null;){if(!_e&&(ot=="`"||ot=="$"&&se.eat("{"))){Ee.tokenize=V;break}_e=!_e&&ot=="\\"}return C("quasi","string-2",se.current())}var Y="([{}])";function ue(se,Ee){Ee.fatArrowAt&&(Ee.fatArrowAt=null);var _e=se.string.indexOf("=>",se.start);if(!(_e<0)){if(N){var ot=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(se.string.slice(se.start,_e));ot&&(_e=ot.index)}for(var st=0,Kt=!1,Zt=_e-1;Zt>=0;--Zt){var Or=se.string.charAt(Zt),Tr=Y.indexOf(Or);if(Tr>=0&&Tr<3){if(!st){++Zt;break}if(--st==0){Or=="("&&(Kt=!0);break}}else if(Tr>=3&&Tr<6)++st;else if(B.test(Or))Kt=!0;else if(/["'\/`]/.test(Or))for(;;--Zt){if(Zt==0)return;var er=se.string.charAt(Zt-1);if(er==Or&&se.string.charAt(Zt-2)!="\\"){Zt--;break}}else if(Kt&&!st){++Zt;break}}Kt&&!st&&(Ee.fatArrowAt=Zt)}}var te={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ne(se,Ee,_e,ot,st,Kt){this.indented=se,this.column=Ee,this.type=_e,this.prev=st,this.info=Kt,ot!=null&&(this.align=ot)}function ye(se,Ee){if(!L)return!1;for(var _e=se.localVars;_e;_e=_e.next)if(_e.name==Ee)return!0;for(var ot=se.context;ot;ot=ot.prev)for(var _e=ot.vars;_e;_e=_e.next)if(_e.name==Ee)return!0}function ge(se,Ee,_e,ot,st){var Kt=se.cc;for(de.state=se,de.stream=st,de.marked=null,de.cc=Kt,de.style=Ee,se.lexical.hasOwnProperty("align")||(se.lexical.align=!0);;){var Zt=Kt.length?Kt.pop():g?kt:xt;if(Zt(_e,ot)){for(;Kt.length&&Kt[Kt.length-1].lex;)Kt.pop()();return de.marked?de.marked:_e=="variable"&&ye(se,ot)?"variable-2":Ee}}}var de={state:null,column:null,marked:null,cc:null};function le(){for(var se=arguments.length-1;se>=0;se--)de.cc.push(arguments[se])}function ae(){return le.apply(null,arguments),!0}function De(se,Ee){for(var _e=Ee;_e;_e=_e.next)if(_e.name==se)return!0;return!1}function Ve(se){var Ee=de.state;if(de.marked="def",!!L){if(Ee.context){if(Ee.lexical.info=="var"&&Ee.context&&Ee.context.block){var _e=Le(se,Ee.context);if(_e!=null){Ee.context=_e;return}}else if(!De(se,Ee.localVars)){Ee.localVars=new Qe(se,Ee.localVars);return}}x.globalVars&&!De(se,Ee.globalVars)&&(Ee.globalVars=new Qe(se,Ee.globalVars))}}function Le(se,Ee){if(Ee)if(Ee.block){var _e=Le(se,Ee.prev);return _e?_e==Ee.prev?Ee:new rt(_e,Ee.vars,!0):null}else return De(se,Ee.vars)?Ee:new rt(Ee.prev,new Qe(se,Ee.vars),!1);else return null}function ke(se){return se=="public"||se=="private"||se=="protected"||se=="abstract"||se=="readonly"}function rt(se,Ee,_e){this.prev=se,this.vars=Ee,this.block=_e}function Qe(se,Ee){this.name=se,this.next=Ee}var Je=new Qe("this",new Qe("arguments",null));function ut(){de.state.context=new rt(de.state.context,de.state.localVars,!1),de.state.localVars=Je}function pt(){de.state.context=new rt(de.state.context,de.state.localVars,!0),de.state.localVars=null}function mt(){de.state.localVars=de.state.context.vars,de.state.context=de.state.context.prev}mt.lex=!0;function qe(se,Ee){var _e=function(){var ot=de.state,st=ot.indented;if(ot.lexical.type=="stat")st=ot.lexical.indented;else for(var Kt=ot.lexical;Kt&&Kt.type==")"&&Kt.align;Kt=Kt.prev)st=Kt.indented;ot.lexical=new ne(st,de.stream.column(),se,null,ot.lexical,Ee)};return _e.lex=!0,_e}function lt(){var se=de.state;se.lexical.prev&&(se.lexical.type==")"&&(se.indented=se.lexical.indented),se.lexical=se.lexical.prev)}lt.lex=!0;function gt(se){function Ee(_e){return _e==se?ae():se==";"||_e=="}"||_e==")"||_e=="]"?le():ae(Ee)}return Ee}function xt(se,Ee){return se=="var"?ae(qe("vardef",Ee),$i,gt(";"),lt):se=="keyword a"?ae(qe("form"),At,xt,lt):se=="keyword b"?ae(qe("form"),xt,lt):se=="keyword d"?de.stream.match(/^\s*$/,!1)?ae():ae(qe("stat"),Nt,gt(";"),lt):se=="debugger"?ae(gt(";")):se=="{"?ae(qe("}"),pt,D,lt,mt):se==";"?ae():se=="if"?(de.state.lexical.info=="else"&&de.state.cc[de.state.cc.length-1]==lt&&de.state.cc.pop()(),ae(qe("form"),At,xt,lt,pn)):se=="function"?ae(Jn):se=="for"?ae(qe("form"),pt,Pa,xt,mt,lt):se=="class"||N&&Ee=="interface"?(de.marked="keyword",ae(qe("form",se=="class"?se:Ee),Ia,lt)):se=="variable"?N&&Ee=="declare"?(de.marked="keyword",ae(xt)):N&&(Ee=="module"||Ee=="enum"||Ee=="type")&&de.stream.match(/^\s*\w/,!1)?(de.marked="keyword",Ee=="enum"?ae(ho):Ee=="type"?ae(Ki,gt("operator"),Te,gt(";")):ae(qe("form"),jr,gt("{"),qe("}"),D,lt,lt)):N&&Ee=="namespace"?(de.marked="keyword",ae(qe("form"),kt,xt,lt)):N&&Ee=="abstract"?(de.marked="keyword",ae(xt)):ae(qe("stat"),Ae):se=="switch"?ae(qe("form"),At,gt("{"),qe("}","switch"),pt,D,lt,lt,mt):se=="case"?ae(kt,gt(":")):se=="default"?ae(gt(":")):se=="catch"?ae(qe("form"),ut,dt,xt,lt,mt):se=="export"?ae(qe("stat"),yr,lt):se=="import"?ae(qe("stat"),ei,lt):se=="async"?ae(xt):Ee=="@"?ae(kt,xt):le(qe("stat"),kt,gt(";"),lt)}function dt(se){if(se=="(")return ae(Un,gt(")"))}function kt(se,Ee){return jt(se,Ee,!1)}function It(se,Ee){return jt(se,Ee,!0)}function At(se){return se!="("?le():ae(qe(")"),Nt,gt(")"),lt)}function jt(se,Ee,_e){if(de.state.fatArrowAt==de.stream.start){var ot=_e?K:G;if(se=="(")return ae(ut,qe(")"),P(Un,")"),lt,gt("=>"),ot,mt);if(se=="variable")return le(ut,jr,gt("=>"),ot,mt)}var st=_e?St:$t;return te.hasOwnProperty(se)?ae(st):se=="function"?ae(Jn,st):se=="class"||N&&Ee=="interface"?(de.marked="keyword",ae(qe("form"),xi,lt)):se=="keyword c"||se=="async"?ae(_e?It:kt):se=="("?ae(qe(")"),Nt,gt(")"),lt,st):se=="operator"||se=="spread"?ae(_e?It:kt):se=="["?ae(qe("]"),Xn,lt,st):se=="{"?ie(Ie,"}",null,st):se=="quasi"?le(Lt,st):se=="new"?ae(we(_e)):ae()}function Nt(se){return se.match(/[;\}\)\],]/)?le():le(kt)}function $t(se,Ee){return se==","?ae(Nt):St(se,Ee,!1)}function St(se,Ee,_e){var ot=_e==!1?$t:St,st=_e==!1?kt:It;if(se=="=>")return ae(ut,_e?K:G,mt);if(se=="operator")return/\+\+|--/.test(Ee)||N&&Ee=="!"?ae(ot):N&&Ee=="<"&&de.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?ae(qe(">"),P(Te,">"),lt,ot):Ee=="?"?ae(kt,gt(":"),st):ae(st);if(se=="quasi")return le(Lt,ot);if(se!=";"){if(se=="(")return ie(It,")","call",ot);if(se==".")return ae(T,ot);if(se=="[")return ae(qe("]"),Nt,gt("]"),lt,ot);if(N&&Ee=="as")return de.marked="keyword",ae(Te,ot);if(se=="regexp")return de.state.lastType=de.marked="operator",de.stream.backUp(de.stream.pos-de.stream.start-1),ae(st)}}function Lt(se,Ee){return se!="quasi"?le():Ee.slice(Ee.length-2)!="${"?ae(Lt):ae(Nt,pe)}function pe(se){if(se=="}")return de.marked="string-2",de.state.tokenize=Q,ae(Lt)}function G(se){return ue(de.stream,de.state),le(se=="{"?xt:kt)}function K(se){return ue(de.stream,de.state),le(se=="{"?xt:It)}function we(se){return function(Ee){return Ee=="."?ae(se?be:Re):Ee=="variable"&&N?ae(wn,se?St:$t):le(se?It:kt)}}function Re(se,Ee){if(Ee=="target")return de.marked="keyword",ae($t)}function be(se,Ee){if(Ee=="target")return de.marked="keyword",ae(St)}function Ae(se){return se==":"?ae(lt,xt):le($t,gt(";"),lt)}function T(se){if(se=="variable")return de.marked="property",ae()}function Ie(se,Ee){if(se=="async")return de.marked="property",ae(Ie);if(se=="variable"||de.style=="keyword"){if(de.marked="property",Ee=="get"||Ee=="set")return ae(W);var _e;return N&&de.state.fatArrowAt==de.stream.start&&(_e=de.stream.match(/^\s*:\s*/,!1))&&(de.state.fatArrowAt=de.stream.pos+_e[0].length),ae(O)}else{if(se=="number"||se=="string")return de.marked=A?"property":de.style+" property",ae(O);if(se=="jsonld-keyword")return ae(O);if(N&&ke(Ee))return de.marked="keyword",ae(Ie);if(se=="[")return ae(kt,ee,gt("]"),O);if(se=="spread")return ae(It,O);if(Ee=="*")return de.marked="keyword",ae(Ie);if(se==":")return le(O)}}function W(se){return se!="variable"?le(O):(de.marked="property",ae(Jn))}function O(se){if(se==":")return ae(It);if(se=="(")return le(Jn)}function P(se,Ee,_e){function ot(st,Kt){if(_e?_e.indexOf(st)>-1:st==","){var Zt=de.state.lexical;return Zt.info=="call"&&(Zt.pos=(Zt.pos||0)+1),ae(function(Or,Tr){return Or==Ee||Tr==Ee?le():le(se)},ot)}return st==Ee||Kt==Ee?ae():_e&&_e.indexOf(";")>-1?le(se):ae(gt(Ee))}return function(st,Kt){return st==Ee||Kt==Ee?ae():le(se,ot)}}function ie(se,Ee,_e){for(var ot=3;ot<arguments.length;ot++)de.cc.push(arguments[ot]);return ae(qe(Ee,_e),P(se,Ee),lt)}function D(se){return se=="}"?ae():le(xt,D)}function ee(se,Ee){if(N){if(se==":")return ae(Te);if(Ee=="?")return ae(ee)}}function fe(se,Ee){if(N&&(se==":"||Ee=="in"))return ae(Te)}function Oe(se){if(N&&se==":")return de.stream.match(/^\s*\w+\s+is\b/,!1)?ae(kt,Pe,Te):ae(Te)}function Pe(se,Ee){if(Ee=="is")return de.marked="keyword",ae()}function Te(se,Ee){if(Ee=="keyof"||Ee=="typeof"||Ee=="infer"||Ee=="readonly")return de.marked="keyword",ae(Ee=="typeof"?It:Te);if(se=="variable"||Ee=="void")return de.marked="type",ae(Ft);if(Ee=="|"||Ee=="&")return ae(Te);if(se=="string"||se=="number"||se=="atom")return ae(Ft);if(se=="[")return ae(qe("]"),P(Te,"]",","),lt,Ft);if(se=="{")return ae(qe("}"),He,lt,Ft);if(se=="(")return ae(P(Jt,")"),Ge,Ft);if(se=="<")return ae(P(Te,">"),Te);if(se=="quasi")return le(yt,Ft)}function Ge(se){if(se=="=>")return ae(Te)}function He(se){return se.match(/[\}\)\]]/)?ae():se==","||se==";"?ae(He):le(it,He)}function it(se,Ee){if(se=="variable"||de.style=="keyword")return de.marked="property",ae(it);if(Ee=="?"||se=="number"||se=="string")return ae(it);if(se==":")return ae(Te);if(se=="[")return ae(gt("variable"),fe,gt("]"),it);if(se=="(")return le(mi,it);if(!se.match(/[;\}\)\],]/))return ae()}function yt(se,Ee){return se!="quasi"?le():Ee.slice(Ee.length-2)!="${"?ae(yt):ae(Te,Ct)}function Ct(se){if(se=="}")return de.marked="string-2",de.state.tokenize=Q,ae(yt)}function Jt(se,Ee){return se=="variable"&&de.stream.match(/^\s*[?:]/,!1)||Ee=="?"?ae(Jt):se==":"?ae(Te):se=="spread"?ae(Jt):le(Te)}function Ft(se,Ee){if(Ee=="<")return ae(qe(">"),P(Te,">"),lt,Ft);if(Ee=="|"||se=="."||Ee=="&")return ae(Te);if(se=="[")return ae(Te,gt("]"),Ft);if(Ee=="extends"||Ee=="implements")return de.marked="keyword",ae(Te);if(Ee=="?")return ae(Te,gt(":"),Te)}function wn(se,Ee){if(Ee=="<")return ae(qe(">"),P(Te,">"),lt,Ft)}function _r(){return le(Te,On)}function On(se,Ee){if(Ee=="=")return ae(Te)}function $i(se,Ee){return Ee=="enum"?(de.marked="keyword",ae(ho)):le(jr,ee,Tn,Yn)}function jr(se,Ee){if(N&&ke(Ee))return de.marked="keyword",ae(jr);if(se=="variable")return Ve(Ee),ae();if(se=="spread")return ae(jr);if(se=="[")return ie(Kn,"]");if(se=="{")return ie(Bn,"}")}function Bn(se,Ee){return se=="variable"&&!de.stream.match(/^\s*:/,!1)?(Ve(Ee),ae(Tn)):(se=="variable"&&(de.marked="property"),se=="spread"?ae(jr):se=="}"?le():se=="["?ae(kt,gt("]"),gt(":"),Bn):ae(gt(":"),jr,Tn))}function Kn(){return le(jr,Tn)}function Tn(se,Ee){if(Ee=="=")return ae(It)}function Yn(se){if(se==",")return ae($i)}function pn(se,Ee){if(se=="keyword b"&&Ee=="else")return ae(qe("form","else"),xt,lt)}function Pa(se,Ee){if(Ee=="await")return ae(Pa);if(se=="(")return ae(qe(")"),Vo,lt)}function Vo(se){return se=="var"?ae($i,Sn):se=="variable"?ae(Sn):le(Sn)}function Sn(se,Ee){return se==")"?ae():se==";"?ae(Sn):Ee=="in"||Ee=="of"?(de.marked="keyword",ae(kt,Sn)):le(kt,Sn)}function Jn(se,Ee){if(Ee=="*")return de.marked="keyword",ae(Jn);if(se=="variable")return Ve(Ee),ae(Jn);if(se=="(")return ae(ut,qe(")"),P(Un,")"),lt,Oe,xt,mt);if(N&&Ee=="<")return ae(qe(">"),P(_r,">"),lt,Jn)}function mi(se,Ee){if(Ee=="*")return de.marked="keyword",ae(mi);if(se=="variable")return Ve(Ee),ae(mi);if(se=="(")return ae(ut,qe(")"),P(Un,")"),lt,Oe,mt);if(N&&Ee=="<")return ae(qe(">"),P(_r,">"),lt,mi)}function Ki(se,Ee){if(se=="keyword"||se=="variable")return de.marked="type",ae(Ki);if(Ee=="<")return ae(qe(">"),P(_r,">"),lt)}function Un(se,Ee){return Ee=="@"&&ae(kt,Un),se=="spread"?ae(Un):N&&ke(Ee)?(de.marked="keyword",ae(Un)):N&&se=="this"?ae(ee,Tn):le(jr,ee,Tn)}function xi(se,Ee){return se=="variable"?Ia(se,Ee):Pn(se,Ee)}function Ia(se,Ee){if(se=="variable")return Ve(Ee),ae(Pn)}function Pn(se,Ee){if(Ee=="<")return ae(qe(">"),P(_r,">"),lt,Pn);if(Ee=="extends"||Ee=="implements"||N&&se==",")return Ee=="implements"&&(de.marked="keyword"),ae(N?Te:kt,Pn);if(se=="{")return ae(qe("}"),An,lt)}function An(se,Ee){if(se=="async"||se=="variable"&&(Ee=="static"||Ee=="get"||Ee=="set"||N&&ke(Ee))&&de.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return de.marked="keyword",ae(An);if(se=="variable"||de.style=="keyword")return de.marked="property",ae(bi,An);if(se=="number"||se=="string")return ae(bi,An);if(se=="[")return ae(kt,ee,gt("]"),bi,An);if(Ee=="*")return de.marked="keyword",ae(An);if(N&&se=="(")return le(mi,An);if(se==";"||se==",")return ae(An);if(se=="}")return ae();if(Ee=="@")return ae(kt,An)}function bi(se,Ee){if(Ee=="!"||Ee=="?")return ae(bi);if(se==":")return ae(Te,Tn);if(Ee=="=")return ae(It);var _e=de.state.lexical.prev,ot=_e&&_e.info=="interface";return le(ot?mi:Jn)}function yr(se,Ee){return Ee=="*"?(de.marked="keyword",ae(jn,gt(";"))):Ee=="default"?(de.marked="keyword",ae(kt,gt(";"))):se=="{"?ae(P(Et,"}"),jn,gt(";")):le(xt)}function Et(se,Ee){if(Ee=="as")return de.marked="keyword",ae(gt("variable"));if(se=="variable")return le(It,Et)}function ei(se){return se=="string"?ae():se=="("?le(kt):se=="."?le($t):le(wi,En,jn)}function wi(se,Ee){return se=="{"?ie(wi,"}"):(se=="variable"&&Ve(Ee),Ee=="*"&&(de.marked="keyword"),ae(qt))}function En(se){if(se==",")return ae(wi,En)}function qt(se,Ee){if(Ee=="as")return de.marked="keyword",ae(wi)}function jn(se,Ee){if(Ee=="from")return de.marked="keyword",ae(kt)}function Xn(se){return se=="]"?ae():le(P(It,"]"))}function ho(){return le(qe("form"),jr,gt("{"),qe("}"),P(nt,"}"),lt,lt)}function nt(){return le(jr,Tn)}function Dt(se,Ee){return se.lastType=="operator"||se.lastType==","||_.test(Ee.charAt(0))||/[,.]/.test(Ee.charAt(0))}function ti(se,Ee,_e){return Ee.tokenize==V&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Ee.lastType)||Ee.lastType=="quasi"&&/\{\s*$/.test(se.string.slice(0,se.pos-(_e||0)))}return{startState:function(se){var Ee={tokenize:V,lastType:"sof",cc:[],lexical:new ne((se||0)-d,0,"block",!1),localVars:x.localVars,context:x.localVars&&new rt(null,null,!1),indented:se||0};return x.globalVars&&typeof x.globalVars=="object"&&(Ee.globalVars=x.globalVars),Ee},token:function(se,Ee){if(se.sol()&&(Ee.lexical.hasOwnProperty("align")||(Ee.lexical.align=!1),Ee.indented=se.indentation(),ue(se,Ee)),Ee.tokenize!=q&&se.eatSpace())return null;var _e=Ee.tokenize(se,Ee);return X=="comment"?_e:(Ee.lastType=X=="operator"&&(M=="++"||M=="--")?"incdec":X,ge(Ee,_e,X,M,se))},indent:function(se,Ee){if(se.tokenize==q||se.tokenize==Q)return c.Pass;if(se.tokenize!=V)return 0;var _e=Ee&&Ee.charAt(0),ot=se.lexical,st;if(!/^\s*else\b/.test(Ee))for(var Kt=se.cc.length-1;Kt>=0;--Kt){var Zt=se.cc[Kt];if(Zt==lt)ot=ot.prev;else if(Zt!=pn&&Zt!=mt)break}for(;(ot.type=="stat"||ot.type=="form")&&(_e=="}"||(st=se.cc[se.cc.length-1])&&(st==$t||st==St)&&!/^[,\.=+\-*:?[\(]/.test(Ee));)ot=ot.prev;b&&ot.type==")"&&ot.prev.type=="stat"&&(ot=ot.prev);var Or=ot.type,Tr=_e==Or;return Or=="vardef"?ot.indented+(se.lastType=="operator"||se.lastType==","?ot.info.length+1:0):Or=="form"&&_e=="{"?ot.indented:Or=="form"?ot.indented+d:Or=="stat"?ot.indented+(Dt(se,Ee)?b||d:0):ot.info=="switch"&&!Tr&&x.doubleIndentSwitch!=!1?ot.indented+(/^(?:case|default)\b/.test(Ee)?d:2*d):ot.align?ot.column+(Tr?0:1):ot.indented+(Tr?0:d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:g?null:"/*",blockCommentEnd:g?null:"*/",blockCommentContinue:g?null:" * ",lineComment:g?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:g?"json":"javascript",jsonldMode:A,jsonMode:g,expressionAllowed:ti,skipExpression:function(se){ge(se,"atom","atom","true",new c.StringStream("",2,null))}}}),c.registerHelper("wordChars","javascript",/[\w$]/),c.defineMIME("text/javascript","javascript"),c.defineMIME("text/ecmascript","javascript"),c.defineMIME("application/javascript","javascript"),c.defineMIME("application/x-javascript","javascript"),c.defineMIME("application/ecmascript","javascript"),c.defineMIME("application/json",{name:"javascript",json:!0}),c.defineMIME("application/x-json",{name:"javascript",json:!0}),c.defineMIME("application/manifest+json",{name:"javascript",json:!0}),c.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),c.defineMIME("text/typescript",{name:"javascript",typescript:!0}),c.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},76489:(h,I)=>{"use strict";/*!
|
|
42
|
-
* cookie
|
|
43
|
-
* Copyright(c) 2012-2014 Roman Shtylman
|
|
44
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
45
|
-
* MIT Licensed
|
|
46
|
-
*/I.parse=d,I.serialize=b;var o=decodeURIComponent,c=encodeURIComponent,v=/; */,x=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function d(g,L){if(typeof g!="string")throw new TypeError("argument str must be a string");for(var N={},B=L||{},j=g.split(v),_=B.decode||o,H=0;H<j.length;H++){var R=j[H],X=R.indexOf("=");if(!(X<0)){var M=R.substr(0,X).trim(),C=R.substr(++X,R.length).trim();C[0]=='"'&&(C=C.slice(1,-1)),N[M]==null&&(N[M]=A(C,_))}}return N}function b(g,L,N){var B=N||{},j=B.encode||c;if(typeof j!="function")throw new TypeError("option encode is invalid");if(!x.test(g))throw new TypeError("argument name is invalid");var _=j(L);if(_&&!x.test(_))throw new TypeError("argument val is invalid");var H=g+"="+_;if(B.maxAge!=null){var R=B.maxAge-0;if(isNaN(R)||!isFinite(R))throw new TypeError("option maxAge is invalid");H+="; Max-Age="+Math.floor(R)}if(B.domain){if(!x.test(B.domain))throw new TypeError("option domain is invalid");H+="; Domain="+B.domain}if(B.path){if(!x.test(B.path))throw new TypeError("option path is invalid");H+="; Path="+B.path}if(B.expires){if(typeof B.expires.toUTCString!="function")throw new TypeError("option expires is invalid");H+="; Expires="+B.expires.toUTCString()}if(B.httpOnly&&(H+="; HttpOnly"),B.secure&&(H+="; Secure"),B.sameSite){var X=typeof B.sameSite=="string"?B.sameSite.toLowerCase():B.sameSite;switch(X){case!0:H+="; SameSite=Strict";break;case"lax":H+="; SameSite=Lax";break;case"strict":H+="; SameSite=Strict";break;case"none":H+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return H}function A(g,L){try{return L(g)}catch(N){return g}}},54493:(h,I,o)=>{o(77971),o(53242);var c=o(54058);h.exports=c.Array.from},24034:(h,I,o)=>{o(92737);var c=o(54058);h.exports=c.Array.isArray},15367:(h,I,o)=>{o(85906);var c=o(35703);h.exports=c("Array").concat},12710:(h,I,o)=>{o(66274);var c=o(35703);h.exports=c("Array").entries},62383:(h,I,o)=>{o(21501);var c=o(35703);h.exports=c("Array").filter},17671:(h,I,o)=>{o(80833);var c=o(35703);h.exports=c("Array").find},99324:(h,I,o)=>{o(2437);var c=o(35703);h.exports=c("Array").forEach},80991:(h,I,o)=>{o(97690);var c=o(35703);h.exports=c("Array").includes},8700:(h,I,o)=>{o(99076);var c=o(35703);h.exports=c("Array").indexOf},23866:(h,I,o)=>{o(68787);var c=o(35703);h.exports=c("Array").map},24900:(h,I,o)=>{o(60186);var c=o(35703);h.exports=c("Array").slice},78209:(h,I,o)=>{o(98611);var c=o(35703);h.exports=c("Array").splice},56043:(h,I,o)=>{var c=o(15367),v=Array.prototype;h.exports=function(x){var d=x.concat;return x===v||x instanceof Array&&d===v.concat?c:d}},2480:(h,I,o)=>{var c=o(62383),v=Array.prototype;h.exports=function(x){var d=x.filter;return x===v||x instanceof Array&&d===v.filter?c:d}},32236:(h,I,o)=>{var c=o(17671),v=Array.prototype;h.exports=function(x){var d=x.find;return x===v||x instanceof Array&&d===v.find?c:d}},58557:(h,I,o)=>{var c=o(80991),v=o(21631),x=Array.prototype,d=String.prototype;h.exports=function(b){var A=b.includes;return b===x||b instanceof Array&&A===x.includes?c:typeof b=="string"||b===d||b instanceof String&&A===d.includes?v:A}},34570:(h,I,o)=>{var c=o(8700),v=Array.prototype;h.exports=function(x){var d=x.indexOf;return x===v||x instanceof Array&&d===v.indexOf?c:d}},88287:(h,I,o)=>{var c=o(23866),v=Array.prototype;h.exports=function(x){var d=x.map;return x===v||x instanceof Array&&d===v.map?c:d}},69601:(h,I,o)=>{var c=o(24900),v=Array.prototype;h.exports=function(x){var d=x.slice;return x===v||x instanceof Array&&d===v.slice?c:d}},18339:(h,I,o)=>{var c=o(78209),v=Array.prototype;h.exports=function(x){var d=x.splice;return x===v||x instanceof Array&&d===v.splice?c:d}},84426:(h,I,o)=>{o(32619);var c=o(54058);c.JSON||(c.JSON={stringify:JSON.stringify}),h.exports=function(x,d,b){return c.JSON.stringify.apply(null,arguments)}},45999:(h,I,o)=>{o(49221);var c=o(54058);h.exports=c.Object.assign},35254:(h,I,o)=>{o(53882);var c=o(54058),v=c.Object;h.exports=function(d,b){return v.create(d,b)}},7702:(h,I,o)=>{o(74979);var c=o(54058),v=c.Object,x=h.exports=function(b,A){return v.defineProperties(b,A)};v.defineProperties.sham&&(x.sham=!0)},48171:(h,I,o)=>{o(86450);var c=o(54058),v=c.Object,x=h.exports=function(b,A,g){return v.defineProperty(b,A,g)};v.defineProperty.sham&&(x.sham=!0)},73081:(h,I,o)=>{o(21078);var c=o(54058);h.exports=c.Object.entries},286:(h,I,o)=>{o(46924);var c=o(54058),v=c.Object,x=h.exports=function(b,A){return v.getOwnPropertyDescriptor(b,A)};v.getOwnPropertyDescriptor.sham&&(x.sham=!0)},92766:(h,I,o)=>{o(88482);var c=o(54058);h.exports=c.Object.getOwnPropertyDescriptors},30498:(h,I,o)=>{o(35824);var c=o(54058);h.exports=c.Object.getOwnPropertySymbols},13966:(h,I,o)=>{o(17405);var c=o(54058);h.exports=c.Object.getPrototypeOf},48494:(h,I,o)=>{o(21724);var c=o(54058);h.exports=c.Object.keys},3065:(h,I,o)=>{o(90108);var c=o(54058);h.exports=c.Object.setPrototypeOf},52956:(h,I,o)=>{o(47627),o(55967),o(98881),o(4560),o(91302),o(44349),o(77971),o(7634);var c=o(54058);h.exports=c.Promise},14983:(h,I,o)=>{o(7453);var c=o(54058);h.exports=c.Reflect.construct},37095:(h,I,o)=>{o(42355);var c=o(54058);h.exports=c.Reflect.get},21631:(h,I,o)=>{o(11035);var c=o(35703);h.exports=c("String").includes},57473:(h,I,o)=>{o(85906),o(55967),o(35824),o(8555),o(52615),o(21732),o(35903),o(1825),o(28394),o(45915),o(61766),o(62737),o(89911),o(74315),o(63131),o(64714),o(70659),o(69120),o(79413),o(1502);var c=o(54058);h.exports=c.Symbol},24227:(h,I,o)=>{o(1825),o(77971),o(7634);var c=o(11477);h.exports=c.f("iterator")},32304:(h,I,o)=>{o(55967),o(54334),o(7634);var c=o(54058);h.exports=c.WeakMap},27385:(h,I,o)=>{var c=o(54493);h.exports=c},81522:(h,I,o)=>{var c=o(24034);h.exports=c},32209:(h,I,o)=>{o(7634),o(77971);var c=o(22902);h.exports=c},44442:(h,I,o)=>{var c=o(2480);h.exports=c},57152:(h,I,o)=>{var c=o(46279);h.exports=c},69447:(h,I,o)=>{var c=o(34570);h.exports=c},81493:(h,I,o)=>{var c=o(69601);h.exports=c},76094:(h,I,o)=>{var c=o(35254);h.exports=c},70573:(h,I,o)=>{var c=o(7702);h.exports=c},73685:(h,I,o)=>{var c=o(48171);h.exports=c},27533:(h,I,o)=>{var c=o(286);h.exports=c},39057:(h,I,o)=>{var c=o(92766);h.exports=c},84710:(h,I,o)=>{var c=o(30498);h.exports=c},74303:(h,I,o)=>{var c=o(13966);h.exports=c},93799:(h,I,o)=>{var c=o(48494);h.exports=c},55122:(h,I,o)=>{var c=o(3065);h.exports=c},29531:(h,I,o)=>{var c=o(52956);o(89731),o(55708),o(30014),o(88731),h.exports=c},10856:(h,I,o)=>{var c=o(14983);h.exports=c},31524:(h,I,o)=>{var c=o(37095);h.exports=c},86600:(h,I,o)=>{var c=o(57473);o(28783),o(43975),o(65799),o(45414),o(46774),o(80620),o(36172),h.exports=c},9759:(h,I,o)=>{var c=o(24227);h.exports=c},33916:h=>{h.exports=function(I){if(typeof I!="function")throw TypeError(String(I)+" is not a function");return I}},42488:(h,I,o)=>{var c=o(10941);h.exports=function(v){if(!c(v)&&v!==null)throw TypeError("Can't set "+String(v)+" as a prototype");return v}},18479:h=>{h.exports=function(){}},5743:h=>{h.exports=function(I,o,c){if(!(I instanceof o))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return I}},96059:(h,I,o)=>{var c=o(10941);h.exports=function(v){if(!c(v))throw TypeError(String(v)+" is not an object");return v}},56837:(h,I,o)=>{"use strict";var c=o(3610).forEach,v=o(34194),x=v("forEach");h.exports=x?[].forEach:function(b){return c(this,b,arguments.length>1?arguments[1]:void 0)}},11354:(h,I,o)=>{"use strict";var c=o(86843),v=o(89678),x=o(75196),d=o(6782),b=o(43057),A=o(55449),g=o(22902);h.exports=function(N){var B=v(N),j=typeof this=="function"?this:Array,_=arguments.length,H=_>1?arguments[1]:void 0,R=H!==void 0,X=g(B),M=0,C,V,J,q,Q,Y;if(R&&(H=c(H,_>2?arguments[2]:void 0,2)),X!=null&&!(j==Array&&d(X)))for(q=X.call(B),Q=q.next,V=new j;!(J=Q.call(q)).done;M++)Y=R?x(q,H,[J.value,M],!0):J.value,A(V,M,Y);else for(C=b(B.length),V=new j(C);C>M;M++)Y=R?H(B[M],M):B[M],A(V,M,Y);return V.length=M,V}},31692:(h,I,o)=>{var c=o(74529),v=o(43057),x=o(59413),d=function(b){return function(A,g,L){var N=c(A),B=v(N.length),j=x(L,B),_;if(b&&g!=g){for(;B>j;)if(_=N[j++],_!=_)return!0}else for(;B>j;j++)if((b||j in N)&&N[j]===g)return b||j||0;return!b&&-1}};h.exports={includes:d(!0),indexOf:d(!1)}},3610:(h,I,o)=>{var c=o(86843),v=o(37026),x=o(89678),d=o(43057),b=o(64692),A=[].push,g=function(L){var N=L==1,B=L==2,j=L==3,_=L==4,H=L==6,R=L==7,X=L==5||H;return function(M,C,V,J){for(var q=x(M),Q=v(q),Y=c(C,V,3),ue=d(Q.length),te=0,ne=J||b,ye=N?ne(M,ue):B||R?ne(M,0):void 0,ge,de;ue>te;te++)if((X||te in Q)&&(ge=Q[te],de=Y(ge,te,q),L))if(N)ye[te]=de;else if(de)switch(L){case 3:return!0;case 5:return ge;case 6:return te;case 2:A.call(ye,ge)}else switch(L){case 4:return!1;case 7:A.call(ye,ge)}return H?-1:j||_?_:ye}};h.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterOut:g(7)}},50568:(h,I,o)=>{var c=o(95981),v=o(99813),x=o(53385),d=v("species");h.exports=function(b){return x>=51||!c(function(){var A=[],g=A.constructor={};return g[d]=function(){return{foo:1}},A[b](Boolean).foo!==1})}},34194:(h,I,o)=>{"use strict";var c=o(95981);h.exports=function(v,x){var d=[][v];return!!d&&c(function(){d.call(null,x||function(){throw 1},1)})}},64692:(h,I,o)=>{var c=o(10941),v=o(1052),x=o(99813),d=x("species");h.exports=function(b,A){var g;return v(b)&&(g=b.constructor,typeof g=="function"&&(g===Array||v(g.prototype))?g=void 0:c(g)&&(g=g[d],g===null&&(g=void 0))),new(g===void 0?Array:g)(A===0?0:A)}},75196:(h,I,o)=>{var c=o(96059),v=o(7609);h.exports=function(x,d,b,A){try{return A?d(c(b)[0],b[1]):d(b)}catch(g){throw v(x),g}}},21385:(h,I,o)=>{var c=o(99813),v=c("iterator"),x=!1;try{var d=0,b={next:function(){return{done:!!d++}},return:function(){x=!0}};b[v]=function(){return this},Array.from(b,function(){throw 2})}catch(A){}h.exports=function(A,g){if(!g&&!x)return!1;var L=!1;try{var N={};N[v]=function(){return{next:function(){return{done:L=!0}}}},A(N)}catch(B){}return L}},82532:h=>{var I={}.toString;h.exports=function(o){return I.call(o).slice(8,-1)}},9697:(h,I,o)=>{var c=o(22885),v=o(82532),x=o(99813),d=x("toStringTag"),b=v(function(){return arguments}())=="Arguments",A=function(g,L){try{return g[L]}catch(N){}};h.exports=c?v:function(g){var L,N,B;return g===void 0?"Undefined":g===null?"Null":typeof(N=A(L=Object(g),d))=="string"?N:b?v(L):(B=v(L))=="Object"&&typeof L.callee=="function"?"Arguments":B}},8850:(h,I,o)=>{"use strict";var c=o(87524),v=o(21647).getWeakData,x=o(96059),d=o(10941),b=o(5743),A=o(93091),g=o(3610),L=o(47457),N=o(45402),B=N.set,j=N.getterFor,_=g.find,H=g.findIndex,R=0,X=function(V){return V.frozen||(V.frozen=new M)},M=function(){this.entries=[]},C=function(V,J){return _(V.entries,function(q){return q[0]===J})};M.prototype={get:function(V){var J=C(this,V);if(J)return J[1]},has:function(V){return!!C(this,V)},set:function(V,J){var q=C(this,V);q?q[1]=J:this.entries.push([V,J])},delete:function(V){var J=H(this.entries,function(q){return q[0]===V});return~J&&this.entries.splice(J,1),!!~J}},h.exports={getConstructor:function(V,J,q,Q){var Y=V(function(ne,ye){b(ne,Y,J),B(ne,{type:J,id:R++,frozen:void 0}),ye!=null&&A(ye,ne[Q],{that:ne,AS_ENTRIES:q})}),ue=j(J),te=function(ne,ye,ge){var de=ue(ne),le=v(x(ye),!0);return le===!0?X(de).set(ye,ge):le[de.id]=ge,ne};return c(Y.prototype,{delete:function(ne){var ye=ue(this);if(!d(ne))return!1;var ge=v(ne);return ge===!0?X(ye).delete(ne):ge&&L(ge,ye.id)&&delete ge[ye.id]},has:function(ye){var ge=ue(this);if(!d(ye))return!1;var de=v(ye);return de===!0?X(ge).has(ye):de&&L(de,ge.id)}}),c(Y.prototype,q?{get:function(ye){var ge=ue(this);if(d(ye)){var de=v(ye);return de===!0?X(ge).get(ye):de?de[ge.id]:void 0}},set:function(ye,ge){return te(this,ye,ge)}}:{add:function(ye){return te(this,ye,!0)}}),Y}}},24683:(h,I,o)=>{"use strict";var c=o(76887),v=o(21899),x=o(21647),d=o(95981),b=o(32029),A=o(93091),g=o(5743),L=o(10941),N=o(90904),B=o(65988).f,j=o(3610).forEach,_=o(55746),H=o(45402),R=H.set,X=H.getterFor;h.exports=function(M,C,V){var J=M.indexOf("Map")!==-1,q=M.indexOf("Weak")!==-1,Q=J?"set":"add",Y=v[M],ue=Y&&Y.prototype,te={},ne;if(!_||typeof Y!="function"||!(q||ue.forEach&&!d(function(){new Y().entries().next()})))ne=V.getConstructor(C,M,J,Q),x.REQUIRED=!0;else{ne=C(function(ge,de){R(g(ge,ne,M),{type:M,collection:new Y}),de!=null&&A(de,ge[Q],{that:ge,AS_ENTRIES:J})});var ye=X(M);j(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(ge){var de=ge=="add"||ge=="set";ge in ue&&!(q&&ge=="clear")&&b(ne.prototype,ge,function(le,ae){var De=ye(this).collection;if(!de&&q&&!L(le))return ge=="get"?void 0:!1;var Ve=De[ge](le===0?0:le,ae);return de?this:Ve})}),q||B(ne.prototype,"size",{configurable:!0,get:function(){return ye(this).collection.size}})}return N(ne,M,!1,!0),te[M]=ne,c({global:!0,forced:!0},te),q||V.setStrong(ne,M,J),ne}},67772:(h,I,o)=>{var c=o(99813),v=c("match");h.exports=function(x){var d=/./;try{"/./"[x](d)}catch(b){try{return d[v]=!1,"/./"[x](d)}catch(A){}}return!1}},64160:(h,I,o)=>{var c=o(95981);h.exports=!c(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype})},31046:(h,I,o)=>{"use strict";var c=o(35143).IteratorPrototype,v=o(29290),x=o(31887),d=o(90904),b=o(12077),A=function(){return this};h.exports=function(g,L,N){var B=L+" Iterator";return g.prototype=v(c,{next:x(1,N)}),d(g,B,!1,!0),b[B]=A,g}},32029:(h,I,o)=>{var c=o(55746),v=o(65988),x=o(31887);h.exports=c?function(d,b,A){return v.f(d,b,x(1,A))}:function(d,b,A){return d[b]=A,d}},31887:h=>{h.exports=function(I,o){return{enumerable:!(I&1),configurable:!(I&2),writable:!(I&4),value:o}}},55449:(h,I,o)=>{"use strict";var c=o(46935),v=o(65988),x=o(31887);h.exports=function(d,b,A){var g=c(b);g in d?v.f(d,g,x(0,A)):d[g]=A}},47771:(h,I,o)=>{"use strict";var c=o(76887),v=o(31046),x=o(249),d=o(88929),b=o(90904),A=o(32029),g=o(99754),L=o(99813),N=o(82529),B=o(12077),j=o(35143),_=j.IteratorPrototype,H=j.BUGGY_SAFARI_ITERATORS,R=L("iterator"),X="keys",M="values",C="entries",V=function(){return this};h.exports=function(J,q,Q,Y,ue,te,ne){v(Q,q,Y);var ye=function(Qe){if(Qe===ue&&De)return De;if(!H&&Qe in le)return le[Qe];switch(Qe){case X:return function(){return new Q(this,Qe)};case M:return function(){return new Q(this,Qe)};case C:return function(){return new Q(this,Qe)}}return function(){return new Q(this)}},ge=q+" Iterator",de=!1,le=J.prototype,ae=le[R]||le["@@iterator"]||ue&&le[ue],De=!H&&ae||ye(ue),Ve=q=="Array"&&le.entries||ae,Le,ke,rt;if(Ve&&(Le=x(Ve.call(new J)),_!==Object.prototype&&Le.next&&(!N&&x(Le)!==_&&(d?d(Le,_):typeof Le[R]!="function"&&A(Le,R,V)),b(Le,ge,!0,!0),N&&(B[ge]=V))),ue==M&&ae&&ae.name!==M&&(de=!0,De=function(){return ae.call(this)}),(!N||ne)&&le[R]!==De&&A(le,R,De),B[q]=De,ue)if(ke={values:ye(M),keys:te?De:ye(X),entries:ye(C)},ne)for(rt in ke)(H||de||!(rt in le))&&g(le,rt,ke[rt]);else c({target:q,proto:!0,forced:H||de},ke);return ke}},66349:(h,I,o)=>{var c=o(54058),v=o(47457),x=o(11477),d=o(65988).f;h.exports=function(b){var A=c.Symbol||(c.Symbol={});v(A,b)||d(A,b,{value:x.f(b)})}},55746:(h,I,o)=>{var c=o(95981);h.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},61333:(h,I,o)=>{var c=o(21899),v=o(10941),x=c.document,d=v(x)&&v(x.createElement);h.exports=function(b){return d?x.createElement(b):{}}},63281:h=>{h.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}},23321:h=>{h.exports=typeof window=="object"},22749:(h,I,o)=>{var c=o(2861);h.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(c)},6049:(h,I,o)=>{var c=o(82532),v=o(21899);h.exports=c(v.process)=="process"},58045:(h,I,o)=>{var c=o(2861);h.exports=/web0s(?!.*chrome)/i.test(c)},2861:(h,I,o)=>{var c=o(626);h.exports=c("navigator","userAgent")||""},53385:(h,I,o)=>{var c=o(21899),v=o(2861),x=c.process,d=x&&x.versions,b=d&&d.v8,A,g;b?(A=b.split("."),g=A[0]<4?1:A[0]+A[1]):v&&(A=v.match(/Edge\/(\d+)/),(!A||A[1]>=74)&&(A=v.match(/Chrome\/(\d+)/),A&&(g=A[1]))),h.exports=g&&+g},35703:(h,I,o)=>{var c=o(54058);h.exports=function(v){return c[v+"Prototype"]}},56759:h=>{h.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},76887:(h,I,o)=>{"use strict";var c=o(21899),v=o(49677).f,x=o(37252),d=o(54058),b=o(86843),A=o(32029),g=o(47457),L=function(N){var B=function(j,_,H){if(this instanceof N){switch(arguments.length){case 0:return new N;case 1:return new N(j);case 2:return new N(j,_)}return new N(j,_,H)}return N.apply(this,arguments)};return B.prototype=N.prototype,B};h.exports=function(N,B){var j=N.target,_=N.global,H=N.stat,R=N.proto,X=_?c:H?c[j]:(c[j]||{}).prototype,M=_?d:d[j]||(d[j]={}),C=M.prototype,V,J,q,Q,Y,ue,te,ne,ye;for(Q in B)V=x(_?Q:j+(H?".":"#")+Q,N.forced),J=!V&&X&&g(X,Q),ue=M[Q],J&&(N.noTargetGet?(ye=v(X,Q),te=ye&&ye.value):te=X[Q]),Y=J&&te?te:B[Q],!(J&&typeof ue==typeof Y)&&(N.bind&&J?ne=b(Y,c):N.wrap&&J?ne=L(Y):R&&typeof Y=="function"?ne=b(Function.call,Y):ne=Y,(N.sham||Y&&Y.sham||ue&&ue.sham)&&A(ne,"sham",!0),M[Q]=ne,R&&(q=j+"Prototype",g(d,q)||A(d,q,{}),d[q][Q]=Y,N.real&&C&&!C[Q]&&A(C,Q,Y)))}},95981:h=>{h.exports=function(I){try{return!!I()}catch(o){return!0}}},45602:(h,I,o)=>{var c=o(95981);h.exports=!c(function(){return Object.isExtensible(Object.preventExtensions({}))})},86843:(h,I,o)=>{var c=o(33916);h.exports=function(v,x,d){if(c(v),x===void 0)return v;switch(d){case 0:return function(){return v.call(x)};case 1:return function(b){return v.call(x,b)};case 2:return function(b,A){return v.call(x,b,A)};case 3:return function(b,A,g){return v.call(x,b,A,g)}}return function(){return v.apply(x,arguments)}}},98308:(h,I,o)=>{"use strict";var c=o(33916),v=o(10941),x=[].slice,d={},b=function(A,g,L){if(!(g in d)){for(var N=[],B=0;B<g;B++)N[B]="a["+B+"]";d[g]=Function("C,a","return new C("+N.join(",")+")")}return d[g](A,L)};h.exports=Function.bind||function(g){var L=c(this),N=x.call(arguments,1),B=function(){var _=N.concat(x.call(arguments));return this instanceof B?b(L,_.length,_):L.apply(g,_)};return v(L.prototype)&&(B.prototype=L.prototype),B}},626:(h,I,o)=>{var c=o(54058),v=o(21899),x=function(d){return typeof d=="function"?d:void 0};h.exports=function(d,b){return arguments.length<2?x(c[d])||x(v[d]):c[d]&&c[d][b]||v[d]&&v[d][b]}},22902:(h,I,o)=>{var c=o(9697),v=o(12077),x=o(99813),d=x("iterator");h.exports=function(b){if(b!=null)return b[d]||b["@@iterator"]||v[c(b)]}},21899:(h,I,o)=>{var c=function(v){return v&&v.Math==Math&&v};h.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof o.g=="object"&&o.g)||function(){return this}()||Function("return this")()},47457:(h,I,o)=>{var c=o(89678),v={}.hasOwnProperty;h.exports=Object.hasOwn||function(d,b){return v.call(c(d),b)}},27748:h=>{h.exports={}},34845:(h,I,o)=>{var c=o(21899);h.exports=function(v,x){var d=c.console;d&&d.error&&(arguments.length===1?d.error(v):d.error(v,x))}},15463:(h,I,o)=>{var c=o(626);h.exports=c("document","documentElement")},2840:(h,I,o)=>{var c=o(55746),v=o(95981),x=o(61333);h.exports=!c&&!v(function(){return Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a!=7})},37026:(h,I,o)=>{var c=o(95981),v=o(82532),x="".split;h.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return v(d)=="String"?x.call(d,""):Object(d)}:Object},81302:(h,I,o)=>{var c=o(63030),v=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(x){return v.call(x)}),h.exports=c.inspectSource},21647:(h,I,o)=>{var c=o(27748),v=o(10941),x=o(47457),d=o(65988).f,b=o(99418),A=o(45602),g=b("meta"),L=0,N=Object.isExtensible||function(){return!0},B=function(X){d(X,g,{value:{objectID:"O"+ ++L,weakData:{}}})},j=function(X,M){if(!v(X))return typeof X=="symbol"?X:(typeof X=="string"?"S":"P")+X;if(!x(X,g)){if(!N(X))return"F";if(!M)return"E";B(X)}return X[g].objectID},_=function(X,M){if(!x(X,g)){if(!N(X))return!0;if(!M)return!1;B(X)}return X[g].weakData},H=function(X){return A&&R.REQUIRED&&N(X)&&!x(X,g)&&B(X),X},R=h.exports={REQUIRED:!1,fastKey:j,getWeakData:_,onFreeze:H};c[g]=!0},45402:(h,I,o)=>{var c=o(38019),v=o(21899),x=o(10941),d=o(32029),b=o(47457),A=o(63030),g=o(44262),L=o(27748),N="Object already initialized",B=v.WeakMap,j,_,H,R=function(Q){return H(Q)?_(Q):j(Q,{})},X=function(Q){return function(Y){var ue;if(!x(Y)||(ue=_(Y)).type!==Q)throw TypeError("Incompatible receiver, "+Q+" required");return ue}};if(c||A.state){var M=A.state||(A.state=new B),C=M.get,V=M.has,J=M.set;j=function(Q,Y){if(V.call(M,Q))throw new TypeError(N);return Y.facade=Q,J.call(M,Q,Y),Y},_=function(Q){return C.call(M,Q)||{}},H=function(Q){return V.call(M,Q)}}else{var q=g("state");L[q]=!0,j=function(Q,Y){if(b(Q,q))throw new TypeError(N);return Y.facade=Q,d(Q,q,Y),Y},_=function(Q){return b(Q,q)?Q[q]:{}},H=function(Q){return b(Q,q)}}h.exports={set:j,get:_,has:H,enforce:R,getterFor:X}},6782:(h,I,o)=>{var c=o(99813),v=o(12077),x=c("iterator"),d=Array.prototype;h.exports=function(b){return b!==void 0&&(v.Array===b||d[x]===b)}},1052:(h,I,o)=>{var c=o(82532);h.exports=Array.isArray||function(x){return c(x)=="Array"}},37252:(h,I,o)=>{var c=o(95981),v=/#|\.prototype\./,x=function(L,N){var B=b[d(L)];return B==g?!0:B==A?!1:typeof N=="function"?c(N):!!N},d=x.normalize=function(L){return String(L).replace(v,".").toLowerCase()},b=x.data={},A=x.NATIVE="N",g=x.POLYFILL="P";h.exports=x},10941:h=>{h.exports=function(I){return typeof I=="object"?I!==null:typeof I=="function"}},82529:h=>{h.exports=!0},60685:(h,I,o)=>{var c=o(10941),v=o(82532),x=o(99813),d=x("match");h.exports=function(b){var A;return c(b)&&((A=b[d])!==void 0?!!A:v(b)=="RegExp")}},93091:(h,I,o)=>{var c=o(96059),v=o(6782),x=o(43057),d=o(86843),b=o(22902),A=o(7609),g=function(L,N){this.stopped=L,this.result=N};h.exports=function(L,N,B){var j=B&&B.that,_=!!(B&&B.AS_ENTRIES),H=!!(B&&B.IS_ITERATOR),R=!!(B&&B.INTERRUPTED),X=d(N,j,1+_+R),M,C,V,J,q,Q,Y,ue=function(ne){return M&&A(M),new g(!0,ne)},te=function(ne){return _?(c(ne),R?X(ne[0],ne[1],ue):X(ne[0],ne[1])):R?X(ne,ue):X(ne)};if(H)M=L;else{if(C=b(L),typeof C!="function")throw TypeError("Target is not iterable");if(v(C)){for(V=0,J=x(L.length);J>V;V++)if(q=te(L[V]),q&&q instanceof g)return q;return new g(!1)}M=C.call(L)}for(Q=M.next;!(Y=Q.call(M)).done;){try{q=te(Y.value)}catch(ne){throw A(M),ne}if(typeof q=="object"&&q&&q instanceof g)return q}return new g(!1)}},7609:(h,I,o)=>{var c=o(96059);h.exports=function(v){var x=v.return;if(x!==void 0)return c(x.call(v)).value}},35143:(h,I,o)=>{"use strict";var c=o(95981),v=o(249),x=o(32029),d=o(47457),b=o(99813),A=o(82529),g=b("iterator"),L=!1,N=function(){return this},B,j,_;[].keys&&(_=[].keys(),"next"in _?(j=v(v(_)),j!==Object.prototype&&(B=j)):L=!0);var H=B==null||c(function(){var R={};return B[g].call(R)!==R});H&&(B={}),(!A||H)&&!d(B,g)&&x(B,g,N),h.exports={IteratorPrototype:B,BUGGY_SAFARI_ITERATORS:L}},12077:h=>{h.exports={}},66132:(h,I,o)=>{var c=o(21899),v=o(49677).f,x=o(42941).set,d=o(22749),b=o(58045),A=o(6049),g=c.MutationObserver||c.WebKitMutationObserver,L=c.document,N=c.process,B=c.Promise,j=v(c,"queueMicrotask"),_=j&&j.value,H,R,X,M,C,V,J,q;_||(H=function(){var Q,Y;for(A&&(Q=N.domain)&&Q.exit();R;){Y=R.fn,R=R.next;try{Y()}catch(ue){throw R?M():X=void 0,ue}}X=void 0,Q&&Q.enter()},!d&&!A&&!b&&g&&L?(C=!0,V=L.createTextNode(""),new g(H).observe(V,{characterData:!0}),M=function(){V.data=C=!C}):B&&B.resolve?(J=B.resolve(void 0),J.constructor=B,q=J.then,M=function(){q.call(J,H)}):A?M=function(){N.nextTick(H)}:M=function(){x.call(c,H)}),h.exports=_||function(Q){var Y={fn:Q,next:void 0};X&&(X.next=Y),R||(R=Y,M()),X=Y}},19297:(h,I,o)=>{var c=o(21899);h.exports=c.Promise},72497:(h,I,o)=>{var c=o(53385),v=o(95981);h.exports=!!Object.getOwnPropertySymbols&&!v(function(){var x=Symbol();return!String(x)||!(Object(x)instanceof Symbol)||!Symbol.sham&&c&&c<41})},38019:(h,I,o)=>{var c=o(21899),v=o(81302),x=c.WeakMap;h.exports=typeof x=="function"&&/native code/.test(v(x))},69520:(h,I,o)=>{"use strict";var c=o(33916),v=function(x){var d,b;this.promise=new x(function(A,g){if(d!==void 0||b!==void 0)throw TypeError("Bad Promise constructor");d=A,b=g}),this.resolve=c(d),this.reject=c(b)};h.exports.f=function(x){return new v(x)}},70344:(h,I,o)=>{var c=o(60685);h.exports=function(v){if(c(v))throw TypeError("The method doesn't accept regular expressions");return v}},24420:(h,I,o)=>{"use strict";var c=o(55746),v=o(95981),x=o(14771),d=o(87857),b=o(36760),A=o(89678),g=o(37026),L=Object.assign,N=Object.defineProperty;h.exports=!L||v(function(){if(c&&L({b:1},L(N({},"a",{enumerable:!0,get:function(){N(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var B={},j={},_=Symbol(),H="abcdefghijklmnopqrst";return B[_]=7,H.split("").forEach(function(R){j[R]=R}),L({},B)[_]!=7||x(L({},j)).join("")!=H})?function(j,_){for(var H=A(j),R=arguments.length,X=1,M=d.f,C=b.f;R>X;)for(var V=g(arguments[X++]),J=M?x(V).concat(M(V)):x(V),q=J.length,Q=0,Y;q>Q;)Y=J[Q++],(!c||C.call(V,Y))&&(H[Y]=V[Y]);return H}:L},29290:(h,I,o)=>{var c=o(96059),v=o(59938),x=o(56759),d=o(27748),b=o(15463),A=o(61333),g=o(44262),L=">",N="<",B="prototype",j="script",_=g("IE_PROTO"),H=function(){},R=function(J){return N+j+L+J+N+"/"+j+L},X=function(J){J.write(R("")),J.close();var q=J.parentWindow.Object;return J=null,q},M=function(){var J=A("iframe"),q="java"+j+":",Q;return J.style.display="none",b.appendChild(J),J.src=String(q),Q=J.contentWindow.document,Q.open(),Q.write(R("document.F=Object")),Q.close(),Q.F},C,V=function(){try{C=document.domain&&new ActiveXObject("htmlfile")}catch(q){}V=C?X(C):M();for(var J=x.length;J--;)delete V[B][x[J]];return V()};d[_]=!0,h.exports=Object.create||function(q,Q){var Y;return q!==null?(H[B]=c(q),Y=new H,H[B]=null,Y[_]=q):Y=V(),Q===void 0?Y:v(Y,Q)}},59938:(h,I,o)=>{var c=o(55746),v=o(65988),x=o(96059),d=o(14771);h.exports=c?Object.defineProperties:function(A,g){x(A);for(var L=d(g),N=L.length,B=0,j;N>B;)v.f(A,j=L[B++],g[j]);return A}},65988:(h,I,o)=>{var c=o(55746),v=o(2840),x=o(96059),d=o(46935),b=Object.defineProperty;I.f=c?b:function(g,L,N){if(x(g),L=d(L,!0),x(N),v)try{return b(g,L,N)}catch(B){}if("get"in N||"set"in N)throw TypeError("Accessors not supported");return"value"in N&&(g[L]=N.value),g}},49677:(h,I,o)=>{var c=o(55746),v=o(36760),x=o(31887),d=o(74529),b=o(46935),A=o(47457),g=o(2840),L=Object.getOwnPropertyDescriptor;I.f=c?L:function(B,j){if(B=d(B),j=b(j,!0),g)try{return L(B,j)}catch(_){}if(A(B,j))return x(!v.f.call(B,j),B[j])}},684:(h,I,o)=>{var c=o(74529),v=o(10946).f,x={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(A){try{return v(A)}catch(g){return d.slice()}};h.exports.f=function(g){return d&&x.call(g)=="[object Window]"?b(g):v(c(g))}},10946:(h,I,o)=>{var c=o(55629),v=o(56759),x=v.concat("length","prototype");I.f=Object.getOwnPropertyNames||function(b){return c(b,x)}},87857:(h,I)=>{I.f=Object.getOwnPropertySymbols},249:(h,I,o)=>{var c=o(47457),v=o(89678),x=o(44262),d=o(64160),b=x("IE_PROTO"),A=Object.prototype;h.exports=d?Object.getPrototypeOf:function(g){return g=v(g),c(g,b)?g[b]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?A:null}},55629:(h,I,o)=>{var c=o(47457),v=o(74529),x=o(31692).indexOf,d=o(27748);h.exports=function(b,A){var g=v(b),L=0,N=[],B;for(B in g)!c(d,B)&&c(g,B)&&N.push(B);for(;A.length>L;)c(g,B=A[L++])&&(~x(N,B)||N.push(B));return N}},14771:(h,I,o)=>{var c=o(55629),v=o(56759);h.exports=Object.keys||function(d){return c(d,v)}},36760:(h,I)=>{"use strict";var o={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,v=c&&!o.call({1:2},1);I.f=v?function(d){var b=c(this,d);return!!b&&b.enumerable}:o},88929:(h,I,o)=>{var c=o(96059),v=o(42488);h.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var x=!1,d={},b;try{b=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,b.call(d,[]),x=d instanceof Array}catch(A){}return function(g,L){return c(g),v(L),x?b.call(g,L):g.__proto__=L,g}}():void 0)},88810:(h,I,o)=>{var c=o(55746),v=o(14771),x=o(74529),d=o(36760).f,b=function(A){return function(g){for(var L=x(g),N=v(L),B=N.length,j=0,_=[],H;B>j;)H=N[j++],(!c||d.call(L,H))&&_.push(A?[H,L[H]]:L[H]);return _}};h.exports={entries:b(!0),values:b(!1)}},95623:(h,I,o)=>{"use strict";var c=o(22885),v=o(9697);h.exports=c?{}.toString:function(){return"[object "+v(this)+"]"}},31136:(h,I,o)=>{var c=o(626),v=o(10946),x=o(87857),d=o(96059);h.exports=c("Reflect","ownKeys")||function(A){var g=v.f(d(A)),L=x.f;return L?g.concat(L(A)):g}},54058:h=>{h.exports={}},40002:h=>{h.exports=function(I){try{return{error:!1,value:I()}}catch(o){return{error:!0,value:o}}}},56584:(h,I,o)=>{var c=o(96059),v=o(10941),x=o(69520);h.exports=function(d,b){if(c(d),v(b)&&b.constructor===d)return b;var A=x.f(d),g=A.resolve;return g(b),A.promise}},87524:(h,I,o)=>{var c=o(99754);h.exports=function(v,x,d){for(var b in x)d&&d.unsafe&&v[b]?v[b]=x[b]:c(v,b,x[b],d);return v}},99754:(h,I,o)=>{var c=o(32029);h.exports=function(v,x,d,b){b&&b.enumerable?v[x]=d:c(v,x,d)}},48219:h=>{h.exports=function(I){if(I==null)throw TypeError("Can't call method on "+I);return I}},4911:(h,I,o)=>{var c=o(21899),v=o(32029);h.exports=function(x,d){try{v(c,x,d)}catch(b){c[x]=d}return d}},94431:(h,I,o)=>{"use strict";var c=o(626),v=o(65988),x=o(99813),d=o(55746),b=x("species");h.exports=function(A){var g=c(A),L=v.f;d&&g&&!g[b]&&L(g,b,{configurable:!0,get:function(){return this}})}},90904:(h,I,o)=>{var c=o(22885),v=o(65988).f,x=o(32029),d=o(47457),b=o(95623),A=o(99813),g=A("toStringTag");h.exports=function(L,N,B,j){if(L){var _=B?L:L.prototype;d(_,g)||v(_,g,{configurable:!0,value:N}),j&&!c&&x(_,"toString",b)}}},44262:(h,I,o)=>{var c=o(68726),v=o(99418),x=c("keys");h.exports=function(d){return x[d]||(x[d]=v(d))}},63030:(h,I,o)=>{var c=o(21899),v=o(4911),x="__core-js_shared__",d=c[x]||v(x,{});h.exports=d},68726:(h,I,o)=>{var c=o(82529),v=o(63030);(h.exports=function(x,d){return v[x]||(v[x]=d!==void 0?d:{})})("versions",[]).push({version:"3.14.0",mode:c?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},70487:(h,I,o)=>{var c=o(96059),v=o(33916),x=o(99813),d=x("species");h.exports=function(b,A){var g=c(b).constructor,L;return g===void 0||(L=c(g)[d])==null?A:v(L)}},64620:(h,I,o)=>{var c=o(68459),v=o(48219),x=function(d){return function(b,A){var g=String(v(b)),L=c(A),N=g.length,B,j;return L<0||L>=N?d?"":void 0:(B=g.charCodeAt(L),B<55296||B>56319||L+1===N||(j=g.charCodeAt(L+1))<56320||j>57343?d?g.charAt(L):B:d?g.slice(L,L+2):(B-55296<<10)+(j-56320)+65536)}};h.exports={codeAt:x(!1),charAt:x(!0)}},42941:(h,I,o)=>{var c=o(21899),v=o(95981),x=o(86843),d=o(15463),b=o(61333),A=o(22749),g=o(6049),L=c.location,N=c.setImmediate,B=c.clearImmediate,j=c.process,_=c.MessageChannel,H=c.Dispatch,R=0,X={},M="onreadystatechange",C,V,J,q=function(te){if(X.hasOwnProperty(te)){var ne=X[te];delete X[te],ne()}},Q=function(te){return function(){q(te)}},Y=function(te){q(te.data)},ue=function(te){c.postMessage(te+"",L.protocol+"//"+L.host)};(!N||!B)&&(N=function(ne){for(var ye=[],ge=1;arguments.length>ge;)ye.push(arguments[ge++]);return X[++R]=function(){(typeof ne=="function"?ne:Function(ne)).apply(void 0,ye)},C(R),R},B=function(ne){delete X[ne]},g?C=function(te){j.nextTick(Q(te))}:H&&H.now?C=function(te){H.now(Q(te))}:_&&!A?(V=new _,J=V.port2,V.port1.onmessage=Y,C=x(J.postMessage,J,1)):c.addEventListener&&typeof postMessage=="function"&&!c.importScripts&&L&&L.protocol!=="file:"&&!v(ue)?(C=ue,c.addEventListener("message",Y,!1)):M in b("script")?C=function(te){d.appendChild(b("script"))[M]=function(){d.removeChild(this),q(te)}}:C=function(te){setTimeout(Q(te),0)}),h.exports={set:N,clear:B}},59413:(h,I,o)=>{var c=o(68459),v=Math.max,x=Math.min;h.exports=function(d,b){var A=c(d);return A<0?v(A+b,0):x(A,b)}},74529:(h,I,o)=>{var c=o(37026),v=o(48219);h.exports=function(x){return c(v(x))}},68459:h=>{var I=Math.ceil,o=Math.floor;h.exports=function(c){return isNaN(c=+c)?0:(c>0?o:I)(c)}},43057:(h,I,o)=>{var c=o(68459),v=Math.min;h.exports=function(x){return x>0?v(c(x),9007199254740991):0}},89678:(h,I,o)=>{var c=o(48219);h.exports=function(v){return Object(c(v))}},46935:(h,I,o)=>{var c=o(10941);h.exports=function(v,x){if(!c(v))return v;var d,b;if(x&&typeof(d=v.toString)=="function"&&!c(b=d.call(v))||typeof(d=v.valueOf)=="function"&&!c(b=d.call(v))||!x&&typeof(d=v.toString)=="function"&&!c(b=d.call(v)))return b;throw TypeError("Can't convert object to primitive value")}},22885:(h,I,o)=>{var c=o(99813),v=c("toStringTag"),x={};x[v]="z",h.exports=String(x)==="[object z]"},99418:h=>{var I=0,o=Math.random();h.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++I+o).toString(36)}},32302:(h,I,o)=>{var c=o(72497);h.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},11477:(h,I,o)=>{var c=o(99813);I.f=c},99813:(h,I,o)=>{var c=o(21899),v=o(68726),x=o(47457),d=o(99418),b=o(72497),A=o(32302),g=v("wks"),L=c.Symbol,N=A?L:L&&L.withoutSetter||d;h.exports=function(B){return(!x(g,B)||!(b||typeof g[B]=="string"))&&(b&&x(L,B)?g[B]=L[B]:g[B]=N("Symbol."+B)),g[B]}},47627:(h,I,o)=>{"use strict";var c=o(76887),v=o(249),x=o(88929),d=o(29290),b=o(32029),A=o(31887),g=o(93091),L=function(B,j){var _=this;if(!(_ instanceof L))return new L(B,j);x&&(_=x(new Error(void 0),v(_))),j!==void 0&&b(_,"message",String(j));var H=[];return g(B,H.push,{that:H}),b(_,"errors",H),_};L.prototype=d(Error.prototype,{constructor:A(5,L),message:A(5,""),name:A(5,"AggregateError")}),c({global:!0},{AggregateError:L})},85906:(h,I,o)=>{"use strict";var c=o(76887),v=o(95981),x=o(1052),d=o(10941),b=o(89678),A=o(43057),g=o(55449),L=o(64692),N=o(50568),B=o(99813),j=o(53385),_=B("isConcatSpreadable"),H=9007199254740991,R="Maximum allowed index exceeded",X=j>=51||!v(function(){var J=[];return J[_]=!1,J.concat()[0]!==J}),M=N("concat"),C=function(J){if(!d(J))return!1;var q=J[_];return q!==void 0?!!q:x(J)},V=!X||!M;c({target:"Array",proto:!0,forced:V},{concat:function(q){var Q=b(this),Y=L(Q,0),ue=0,te,ne,ye,ge,de;for(te=-1,ye=arguments.length;te<ye;te++)if(de=te===-1?Q:arguments[te],C(de)){if(ge=A(de.length),ue+ge>H)throw TypeError(R);for(ne=0;ne<ge;ne++,ue++)ne in de&&g(Y,ue,de[ne])}else{if(ue>=H)throw TypeError(R);g(Y,ue++,de)}return Y.length=ue,Y}})},21501:(h,I,o)=>{"use strict";var c=o(76887),v=o(3610).filter,x=o(50568),d=x("filter");c({target:"Array",proto:!0,forced:!d},{filter:function(A){return v(this,A,arguments.length>1?arguments[1]:void 0)}})},80833:(h,I,o)=>{"use strict";var c=o(76887),v=o(3610).find,x=o(18479),d="find",b=!0;d in[]&&Array(1)[d](function(){b=!1}),c({target:"Array",proto:!0,forced:b},{find:function(g){return v(this,g,arguments.length>1?arguments[1]:void 0)}}),x(d)},2437:(h,I,o)=>{"use strict";var c=o(76887),v=o(56837);c({target:"Array",proto:!0,forced:[].forEach!=v},{forEach:v})},53242:(h,I,o)=>{var c=o(76887),v=o(11354),x=o(21385),d=!x(function(b){Array.from(b)});c({target:"Array",stat:!0,forced:d},{from:v})},97690:(h,I,o)=>{"use strict";var c=o(76887),v=o(31692).includes,x=o(18479);c({target:"Array",proto:!0},{includes:function(b){return v(this,b,arguments.length>1?arguments[1]:void 0)}}),x("includes")},99076:(h,I,o)=>{"use strict";var c=o(76887),v=o(31692).indexOf,x=o(34194),d=[].indexOf,b=!!d&&1/[1].indexOf(1,-0)<0,A=x("indexOf");c({target:"Array",proto:!0,forced:b||!A},{indexOf:function(L){return b?d.apply(this,arguments)||0:v(this,L,arguments.length>1?arguments[1]:void 0)}})},92737:(h,I,o)=>{var c=o(76887),v=o(1052);c({target:"Array",stat:!0},{isArray:v})},66274:(h,I,o)=>{"use strict";var c=o(74529),v=o(18479),x=o(12077),d=o(45402),b=o(47771),A="Array Iterator",g=d.set,L=d.getterFor(A);h.exports=b(Array,"Array",function(N,B){g(this,{type:A,target:c(N),index:0,kind:B})},function(){var N=L(this),B=N.target,j=N.kind,_=N.index++;return!B||_>=B.length?(N.target=void 0,{value:void 0,done:!0}):j=="keys"?{value:_,done:!1}:j=="values"?{value:B[_],done:!1}:{value:[_,B[_]],done:!1}},"values"),x.Arguments=x.Array,v("keys"),v("values"),v("entries")},68787:(h,I,o)=>{"use strict";var c=o(76887),v=o(3610).map,x=o(50568),d=x("map");c({target:"Array",proto:!0,forced:!d},{map:function(A){return v(this,A,arguments.length>1?arguments[1]:void 0)}})},60186:(h,I,o)=>{"use strict";var c=o(76887),v=o(10941),x=o(1052),d=o(59413),b=o(43057),A=o(74529),g=o(55449),L=o(99813),N=o(50568),B=N("slice"),j=L("species"),_=[].slice,H=Math.max;c({target:"Array",proto:!0,forced:!B},{slice:function(X,M){var C=A(this),V=b(C.length),J=d(X,V),q=d(M===void 0?V:M,V),Q,Y,ue;if(x(C)&&(Q=C.constructor,typeof Q=="function"&&(Q===Array||x(Q.prototype))?Q=void 0:v(Q)&&(Q=Q[j],Q===null&&(Q=void 0)),Q===Array||Q===void 0))return _.call(C,J,q);for(Y=new(Q===void 0?Array:Q)(H(q-J,0)),ue=0;J<q;J++,ue++)J in C&&g(Y,ue,C[J]);return Y.length=ue,Y}})},98611:(h,I,o)=>{"use strict";var c=o(76887),v=o(59413),x=o(68459),d=o(43057),b=o(89678),A=o(64692),g=o(55449),L=o(50568),N=L("splice"),B=Math.max,j=Math.min,_=9007199254740991,H="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!N},{splice:function(X,M){var C=b(this),V=d(C.length),J=v(X,V),q=arguments.length,Q,Y,ue,te,ne,ye;if(q===0?Q=Y=0:q===1?(Q=0,Y=V-J):(Q=q-2,Y=j(B(x(M),0),V-J)),V+Q-Y>_)throw TypeError(H);for(ue=A(C,Y),te=0;te<Y;te++)ne=J+te,ne in C&&g(ue,te,C[ne]);if(ue.length=Y,Q<Y){for(te=J;te<V-Y;te++)ne=te+Y,ye=te+Q,ne in C?C[ye]=C[ne]:delete C[ye];for(te=V;te>V-Y+Q;te--)delete C[te-1]}else if(Q>Y)for(te=V-Y;te>J;te--)ne=te+Y-1,ye=te+Q-1,ne in C?C[ye]=C[ne]:delete C[ye];for(te=0;te<Q;te++)C[te+J]=arguments[te+2];return C.length=V-Y+Q,ue}})},32619:(h,I,o)=>{var c=o(76887),v=o(626),x=o(95981),d=v("JSON","stringify"),b=/[\uD800-\uDFFF]/g,A=/^[\uD800-\uDBFF]$/,g=/^[\uDC00-\uDFFF]$/,L=function(B,j,_){var H=_.charAt(j-1),R=_.charAt(j+1);return A.test(B)&&!g.test(R)||g.test(B)&&!A.test(H)?"\\u"+B.charCodeAt(0).toString(16):B},N=x(function(){return d("\uDF06\uD834")!=='"\\udf06\\ud834"'||d("\uDEAD")!=='"\\udead"'});d&&c({target:"JSON",stat:!0,forced:N},{stringify:function(j,_,H){var R=d.apply(null,arguments);return typeof R=="string"?R.replace(b,L):R}})},69120:(h,I,o)=>{var c=o(21899),v=o(90904);v(c.JSON,"JSON",!0)},79413:()=>{},49221:(h,I,o)=>{var c=o(76887),v=o(24420);c({target:"Object",stat:!0,forced:Object.assign!==v},{assign:v})},53882:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(29290);c({target:"Object",stat:!0,sham:!v},{create:x})},74979:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(59938);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperties:x})},86450:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(65988);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperty:x.f})},21078:(h,I,o)=>{var c=o(76887),v=o(88810).entries;c({target:"Object",stat:!0},{entries:function(d){return v(d)}})},46924:(h,I,o)=>{var c=o(76887),v=o(95981),x=o(74529),d=o(49677).f,b=o(55746),A=v(function(){d(1)}),g=!b||A;c({target:"Object",stat:!0,forced:g,sham:!b},{getOwnPropertyDescriptor:function(N,B){return d(x(N),B)}})},88482:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(31136),d=o(74529),b=o(49677),A=o(55449);c({target:"Object",stat:!0,sham:!v},{getOwnPropertyDescriptors:function(L){for(var N=d(L),B=b.f,j=x(N),_={},H=0,R,X;j.length>H;)X=B(N,R=j[H++]),X!==void 0&&A(_,R,X);return _}})},17405:(h,I,o)=>{var c=o(76887),v=o(95981),x=o(89678),d=o(249),b=o(64160),A=v(function(){d(1)});c({target:"Object",stat:!0,forced:A,sham:!b},{getPrototypeOf:function(L){return d(x(L))}})},21724:(h,I,o)=>{var c=o(76887),v=o(89678),x=o(14771),d=o(95981),b=d(function(){x(1)});c({target:"Object",stat:!0,forced:b},{keys:function(g){return x(v(g))}})},90108:(h,I,o)=>{var c=o(76887),v=o(88929);c({target:"Object",stat:!0},{setPrototypeOf:v})},55967:()=>{},4560:(h,I,o)=>{"use strict";var c=o(76887),v=o(33916),x=o(69520),d=o(40002),b=o(93091);c({target:"Promise",stat:!0},{allSettled:function(g){var L=this,N=x.f(L),B=N.resolve,j=N.reject,_=d(function(){var H=v(L.resolve),R=[],X=0,M=1;b(g,function(C){var V=X++,J=!1;R.push(void 0),M++,H.call(L,C).then(function(q){J||(J=!0,R[V]={status:"fulfilled",value:q},--M||B(R))},function(q){J||(J=!0,R[V]={status:"rejected",reason:q},--M||B(R))})}),--M||B(R)});return _.error&&j(_.value),N.promise}})},91302:(h,I,o)=>{"use strict";var c=o(76887),v=o(33916),x=o(626),d=o(69520),b=o(40002),A=o(93091),g="No one promise resolved";c({target:"Promise",stat:!0},{any:function(N){var B=this,j=d.f(B),_=j.resolve,H=j.reject,R=b(function(){var X=v(B.resolve),M=[],C=0,V=1,J=!1;A(N,function(q){var Q=C++,Y=!1;M.push(void 0),V++,X.call(B,q).then(function(ue){Y||J||(J=!0,_(ue))},function(ue){Y||J||(Y=!0,M[Q]=ue,--V||H(new(x("AggregateError"))(M,g)))})}),--V||H(new(x("AggregateError"))(M,g))});return R.error&&H(R.value),j.promise}})},44349:(h,I,o)=>{"use strict";var c=o(76887),v=o(82529),x=o(19297),d=o(95981),b=o(626),A=o(70487),g=o(56584),L=o(99754),N=!!x&&d(function(){x.prototype.finally.call({then:function(){}},function(){})});if(c({target:"Promise",proto:!0,real:!0,forced:N},{finally:function(j){var _=A(this,b("Promise")),H=typeof j=="function";return this.then(H?function(R){return g(_,j()).then(function(){return R})}:j,H?function(R){return g(_,j()).then(function(){throw R})}:j)}}),!v&&typeof x=="function"){var B=b("Promise").prototype.finally;x.prototype.finally!==B&&L(x.prototype,"finally",B,{unsafe:!0})}},98881:(h,I,o)=>{"use strict";var c=o(76887),v=o(82529),x=o(21899),d=o(626),b=o(19297),A=o(99754),g=o(87524),L=o(88929),N=o(90904),B=o(94431),j=o(10941),_=o(33916),H=o(5743),R=o(81302),X=o(93091),M=o(21385),C=o(70487),V=o(42941).set,J=o(66132),q=o(56584),Q=o(34845),Y=o(69520),ue=o(40002),te=o(45402),ne=o(37252),ye=o(99813),ge=o(23321),de=o(6049),le=o(53385),ae=ye("species"),De="Promise",Ve=te.get,Le=te.set,ke=te.getterFor(De),rt=b&&b.prototype,Qe=b,Je=rt,ut=x.TypeError,pt=x.document,mt=x.process,qe=Y.f,lt=qe,gt=!!(pt&&pt.createEvent&&x.dispatchEvent),xt=typeof PromiseRejectionEvent=="function",dt="unhandledrejection",kt="rejectionhandled",It=0,At=1,jt=2,Nt=1,$t=2,St=!1,Lt,pe,G,K,we=ne(De,function(){var ee=R(Qe)!==String(Qe);if(!ee&&le===66||v&&!Je.finally)return!0;if(le>=51&&/native code/.test(Qe))return!1;var fe=new Qe(function(Te){Te(1)}),Oe=function(Te){Te(function(){},function(){})},Pe=fe.constructor={};return Pe[ae]=Oe,St=fe.then(function(){})instanceof Oe,St?!ee&&ge&&!xt:!0}),Re=we||!M(function(ee){Qe.all(ee).catch(function(){})}),be=function(ee){var fe;return j(ee)&&typeof(fe=ee.then)=="function"?fe:!1},Ae=function(ee,fe){if(!ee.notified){ee.notified=!0;var Oe=ee.reactions;J(function(){for(var Pe=ee.value,Te=ee.state==At,Ge=0;Oe.length>Ge;){var He=Oe[Ge++],it=Te?He.ok:He.fail,yt=He.resolve,Ct=He.reject,Jt=He.domain,Ft,wn,_r;try{it?(Te||(ee.rejection===$t&&O(ee),ee.rejection=Nt),it===!0?Ft=Pe:(Jt&&Jt.enter(),Ft=it(Pe),Jt&&(Jt.exit(),_r=!0)),Ft===He.promise?Ct(ut("Promise-chain cycle")):(wn=be(Ft))?wn.call(Ft,yt,Ct):yt(Ft)):Ct(Pe)}catch(On){Jt&&!_r&&Jt.exit(),Ct(On)}}ee.reactions=[],ee.notified=!1,fe&&!ee.rejection&&Ie(ee)})}},T=function(ee,fe,Oe){var Pe,Te;gt?(Pe=pt.createEvent("Event"),Pe.promise=fe,Pe.reason=Oe,Pe.initEvent(ee,!1,!0),x.dispatchEvent(Pe)):Pe={promise:fe,reason:Oe},!xt&&(Te=x["on"+ee])?Te(Pe):ee===dt&&Q("Unhandled promise rejection",Oe)},Ie=function(ee){V.call(x,function(){var fe=ee.facade,Oe=ee.value,Pe=W(ee),Te;if(Pe&&(Te=ue(function(){de?mt.emit("unhandledRejection",Oe,fe):T(dt,fe,Oe)}),ee.rejection=de||W(ee)?$t:Nt,Te.error))throw Te.value})},W=function(ee){return ee.rejection!==Nt&&!ee.parent},O=function(ee){V.call(x,function(){var fe=ee.facade;de?mt.emit("rejectionHandled",fe):T(kt,fe,ee.value)})},P=function(ee,fe,Oe){return function(Pe){ee(fe,Pe,Oe)}},ie=function(ee,fe,Oe){ee.done||(ee.done=!0,Oe&&(ee=Oe),ee.value=fe,ee.state=jt,Ae(ee,!0))},D=function(ee,fe,Oe){if(!ee.done){ee.done=!0,Oe&&(ee=Oe);try{if(ee.facade===fe)throw ut("Promise can't be resolved itself");var Pe=be(fe);Pe?J(function(){var Te={done:!1};try{Pe.call(fe,P(D,Te,ee),P(ie,Te,ee))}catch(Ge){ie(Te,Ge,ee)}}):(ee.value=fe,ee.state=At,Ae(ee,!1))}catch(Te){ie({done:!1},Te,ee)}}};if(we&&(Qe=function(fe){H(this,Qe,De),_(fe),Lt.call(this);var Oe=Ve(this);try{fe(P(D,Oe),P(ie,Oe))}catch(Pe){ie(Oe,Pe)}},Je=Qe.prototype,Lt=function(fe){Le(this,{type:De,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:It,value:void 0})},Lt.prototype=g(Je,{then:function(fe,Oe){var Pe=ke(this),Te=qe(C(this,Qe));return Te.ok=typeof fe=="function"?fe:!0,Te.fail=typeof Oe=="function"&&Oe,Te.domain=de?mt.domain:void 0,Pe.parent=!0,Pe.reactions.push(Te),Pe.state!=It&&Ae(Pe,!1),Te.promise},catch:function(ee){return this.then(void 0,ee)}}),pe=function(){var ee=new Lt,fe=Ve(ee);this.promise=ee,this.resolve=P(D,fe),this.reject=P(ie,fe)},Y.f=qe=function(ee){return ee===Qe||ee===G?new pe(ee):lt(ee)},!v&&typeof b=="function"&&rt!==Object.prototype)){K=rt.then,St||(A(rt,"then",function(fe,Oe){var Pe=this;return new Qe(function(Te,Ge){K.call(Pe,Te,Ge)}).then(fe,Oe)},{unsafe:!0}),A(rt,"catch",Je.catch,{unsafe:!0}));try{delete rt.constructor}catch(ee){}L&&L(rt,Je)}c({global:!0,wrap:!0,forced:we},{Promise:Qe}),N(Qe,De,!1,!0),B(De),G=d(De),c({target:De,stat:!0,forced:we},{reject:function(fe){var Oe=qe(this);return Oe.reject.call(void 0,fe),Oe.promise}}),c({target:De,stat:!0,forced:v||we},{resolve:function(fe){return q(v&&this===G?Qe:this,fe)}}),c({target:De,stat:!0,forced:Re},{all:function(fe){var Oe=this,Pe=qe(Oe),Te=Pe.resolve,Ge=Pe.reject,He=ue(function(){var it=_(Oe.resolve),yt=[],Ct=0,Jt=1;X(fe,function(Ft){var wn=Ct++,_r=!1;yt.push(void 0),Jt++,it.call(Oe,Ft).then(function(On){_r||(_r=!0,yt[wn]=On,--Jt||Te(yt))},Ge)}),--Jt||Te(yt)});return He.error&&Ge(He.value),Pe.promise},race:function(fe){var Oe=this,Pe=qe(Oe),Te=Pe.reject,Ge=ue(function(){var He=_(Oe.resolve);X(fe,function(it){He.call(Oe,it).then(Pe.resolve,Te)})});return Ge.error&&Te(Ge.value),Pe.promise}})},7453:(h,I,o)=>{var c=o(76887),v=o(626),x=o(33916),d=o(96059),b=o(10941),A=o(29290),g=o(98308),L=o(95981),N=v("Reflect","construct"),B=L(function(){function H(){}return!(N(function(){},[],H)instanceof H)}),j=!L(function(){N(function(){})}),_=B||j;c({target:"Reflect",stat:!0,forced:_,sham:_},{construct:function(R,X){x(R),d(X);var M=arguments.length<3?R:x(arguments[2]);if(j&&!B)return N(R,X,M);if(R==M){switch(X.length){case 0:return new R;case 1:return new R(X[0]);case 2:return new R(X[0],X[1]);case 3:return new R(X[0],X[1],X[2]);case 4:return new R(X[0],X[1],X[2],X[3])}var C=[null];return C.push.apply(C,X),new(g.apply(R,C))}var V=M.prototype,J=A(b(V)?V:Object.prototype),q=Function.apply.call(R,J,X);return b(q)?q:J}})},42355:(h,I,o)=>{var c=o(76887),v=o(10941),x=o(96059),d=o(47457),b=o(49677),A=o(249);function g(L,N){var B=arguments.length<3?L:arguments[2],j,_;if(x(L)===B)return L[N];if(j=b.f(L,N))return d(j,"value")?j.value:j.get===void 0?void 0:j.get.call(B);if(v(_=A(L)))return g(_,N,B)}c({target:"Reflect",stat:!0},{get:g})},1502:()=>{},11035:(h,I,o)=>{"use strict";var c=o(76887),v=o(70344),x=o(48219),d=o(67772);c({target:"String",proto:!0,forced:!d("includes")},{includes:function(A){return!!~String(x(this)).indexOf(v(A),arguments.length>1?arguments[1]:void 0)}})},77971:(h,I,o)=>{"use strict";var c=o(64620).charAt,v=o(45402),x=o(47771),d="String Iterator",b=v.set,A=v.getterFor(d);x(String,"String",function(g){b(this,{type:d,string:String(g),index:0})},function(){var L=A(this),N=L.string,B=L.index,j;return B>=N.length?{value:void 0,done:!0}:(j=c(N,B),L.index+=j.length,{value:j,done:!1})})},8555:(h,I,o)=>{var c=o(66349);c("asyncIterator")},52615:()=>{},21732:(h,I,o)=>{var c=o(66349);c("hasInstance")},35903:(h,I,o)=>{var c=o(66349);c("isConcatSpreadable")},1825:(h,I,o)=>{var c=o(66349);c("iterator")},35824:(h,I,o)=>{"use strict";var c=o(76887),v=o(21899),x=o(626),d=o(82529),b=o(55746),A=o(72497),g=o(32302),L=o(95981),N=o(47457),B=o(1052),j=o(10941),_=o(96059),H=o(89678),R=o(74529),X=o(46935),M=o(31887),C=o(29290),V=o(14771),J=o(10946),q=o(684),Q=o(87857),Y=o(49677),ue=o(65988),te=o(36760),ne=o(32029),ye=o(99754),ge=o(68726),de=o(44262),le=o(27748),ae=o(99418),De=o(99813),Ve=o(11477),Le=o(66349),ke=o(90904),rt=o(45402),Qe=o(3610).forEach,Je=de("hidden"),ut="Symbol",pt="prototype",mt=De("toPrimitive"),qe=rt.set,lt=rt.getterFor(ut),gt=Object[pt],xt=v.Symbol,dt=x("JSON","stringify"),kt=Y.f,It=ue.f,At=q.f,jt=te.f,Nt=ge("symbols"),$t=ge("op-symbols"),St=ge("string-to-symbol-registry"),Lt=ge("symbol-to-string-registry"),pe=ge("wks"),G=v.QObject,K=!G||!G[pt]||!G[pt].findChild,we=b&&L(function(){return C(It({},"a",{get:function(){return It(this,"a",{value:7}).a}})).a!=7})?function(ee,fe,Oe){var Pe=kt(gt,fe);Pe&&delete gt[fe],It(ee,fe,Oe),Pe&&ee!==gt&&It(gt,fe,Pe)}:It,Re=function(ee,fe){var Oe=Nt[ee]=C(xt[pt]);return qe(Oe,{type:ut,tag:ee,description:fe}),b||(Oe.description=fe),Oe},be=g?function(ee){return typeof ee=="symbol"}:function(ee){return Object(ee)instanceof xt},Ae=function(fe,Oe,Pe){fe===gt&&Ae($t,Oe,Pe),_(fe);var Te=X(Oe,!0);return _(Pe),N(Nt,Te)?(Pe.enumerable?(N(fe,Je)&&fe[Je][Te]&&(fe[Je][Te]=!1),Pe=C(Pe,{enumerable:M(0,!1)})):(N(fe,Je)||It(fe,Je,M(1,{})),fe[Je][Te]=!0),we(fe,Te,Pe)):It(fe,Te,Pe)},T=function(fe,Oe){_(fe);var Pe=R(Oe),Te=V(Pe).concat(ie(Pe));return Qe(Te,function(Ge){(!b||W.call(Pe,Ge))&&Ae(fe,Ge,Pe[Ge])}),fe},Ie=function(fe,Oe){return Oe===void 0?C(fe):T(C(fe),Oe)},W=function(fe){var Oe=X(fe,!0),Pe=jt.call(this,Oe);return this===gt&&N(Nt,Oe)&&!N($t,Oe)?!1:Pe||!N(this,Oe)||!N(Nt,Oe)||N(this,Je)&&this[Je][Oe]?Pe:!0},O=function(fe,Oe){var Pe=R(fe),Te=X(Oe,!0);if(!(Pe===gt&&N(Nt,Te)&&!N($t,Te))){var Ge=kt(Pe,Te);return Ge&&N(Nt,Te)&&!(N(Pe,Je)&&Pe[Je][Te])&&(Ge.enumerable=!0),Ge}},P=function(fe){var Oe=At(R(fe)),Pe=[];return Qe(Oe,function(Te){!N(Nt,Te)&&!N(le,Te)&&Pe.push(Te)}),Pe},ie=function(fe){var Oe=fe===gt,Pe=At(Oe?$t:R(fe)),Te=[];return Qe(Pe,function(Ge){N(Nt,Ge)&&(!Oe||N(gt,Ge))&&Te.push(Nt[Ge])}),Te};if(A||(xt=function(){if(this instanceof xt)throw TypeError("Symbol is not a constructor");var fe=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Oe=ae(fe),Pe=function(Te){this===gt&&Pe.call($t,Te),N(this,Je)&&N(this[Je],Oe)&&(this[Je][Oe]=!1),we(this,Oe,M(1,Te))};return b&&K&&we(gt,Oe,{configurable:!0,set:Pe}),Re(Oe,fe)},ye(xt[pt],"toString",function(){return lt(this).tag}),ye(xt,"withoutSetter",function(ee){return Re(ae(ee),ee)}),te.f=W,ue.f=Ae,Y.f=O,J.f=q.f=P,Q.f=ie,Ve.f=function(ee){return Re(De(ee),ee)},b&&(It(xt[pt],"description",{configurable:!0,get:function(){return lt(this).description}}),d||ye(gt,"propertyIsEnumerable",W,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!A,sham:!A},{Symbol:xt}),Qe(V(pe),function(ee){Le(ee)}),c({target:ut,stat:!0,forced:!A},{for:function(ee){var fe=String(ee);if(N(St,fe))return St[fe];var Oe=xt(fe);return St[fe]=Oe,Lt[Oe]=fe,Oe},keyFor:function(fe){if(!be(fe))throw TypeError(fe+" is not a symbol");if(N(Lt,fe))return Lt[fe]},useSetter:function(){K=!0},useSimple:function(){K=!1}}),c({target:"Object",stat:!0,forced:!A,sham:!b},{create:Ie,defineProperty:Ae,defineProperties:T,getOwnPropertyDescriptor:O}),c({target:"Object",stat:!0,forced:!A},{getOwnPropertyNames:P,getOwnPropertySymbols:ie}),c({target:"Object",stat:!0,forced:L(function(){Q.f(1)})},{getOwnPropertySymbols:function(fe){return Q.f(H(fe))}}),dt){var D=!A||L(function(){var ee=xt();return dt([ee])!="[null]"||dt({a:ee})!="{}"||dt(Object(ee))!="{}"});c({target:"JSON",stat:!0,forced:D},{stringify:function(fe,Oe,Pe){for(var Te=[fe],Ge=1,He;arguments.length>Ge;)Te.push(arguments[Ge++]);if(He=Oe,!(!j(Oe)&&fe===void 0||be(fe)))return B(Oe)||(Oe=function(it,yt){if(typeof He=="function"&&(yt=He.call(this,it,yt)),!be(yt))return yt}),Te[1]=Oe,dt.apply(null,Te)}})}xt[pt][mt]||ne(xt[pt],mt,xt[pt].valueOf),ke(xt,ut),le[Je]=!0},45915:(h,I,o)=>{var c=o(66349);c("matchAll")},28394:(h,I,o)=>{var c=o(66349);c("match")},61766:(h,I,o)=>{var c=o(66349);c("replace")},62737:(h,I,o)=>{var c=o(66349);c("search")},89911:(h,I,o)=>{var c=o(66349);c("species")},74315:(h,I,o)=>{var c=o(66349);c("split")},63131:(h,I,o)=>{var c=o(66349);c("toPrimitive")},64714:(h,I,o)=>{var c=o(66349);c("toStringTag")},70659:(h,I,o)=>{var c=o(66349);c("unscopables")},54334:(h,I,o)=>{"use strict";var c=o(21899),v=o(87524),x=o(21647),d=o(24683),b=o(8850),A=o(10941),g=o(45402).enforce,L=o(38019),N=!c.ActiveXObject&&"ActiveXObject"in c,B=Object.isExtensible,j,_=function(J){return function(){return J(this,arguments.length?arguments[0]:void 0)}},H=h.exports=d("WeakMap",_,b);if(L&&N){j=b.getConstructor(_,"WeakMap",!0),x.REQUIRED=!0;var R=H.prototype,X=R.delete,M=R.has,C=R.get,V=R.set;v(R,{delete:function(J){if(A(J)&&!B(J)){var q=g(this);return q.frozen||(q.frozen=new j),X.call(this,J)||q.frozen.delete(J)}return X.call(this,J)},has:function(q){if(A(q)&&!B(q)){var Q=g(this);return Q.frozen||(Q.frozen=new j),M.call(this,q)||Q.frozen.has(q)}return M.call(this,q)},get:function(q){if(A(q)&&!B(q)){var Q=g(this);return Q.frozen||(Q.frozen=new j),M.call(this,q)?C.call(this,q):Q.frozen.get(q)}return C.call(this,q)},set:function(q,Q){if(A(q)&&!B(q)){var Y=g(this);Y.frozen||(Y.frozen=new j),M.call(this,q)?V.call(this,q,Q):Y.frozen.set(q,Q)}else V.call(this,q,Q);return this}})}},89731:(h,I,o)=>{o(47627)},55708:(h,I,o)=>{o(4560)},88731:(h,I,o)=>{o(91302)},30014:(h,I,o)=>{"use strict";var c=o(76887),v=o(69520),x=o(40002);c({target:"Promise",stat:!0},{try:function(d){var b=v.f(this),A=x(d);return(A.error?b.reject:b.resolve)(A.value),b.promise}})},28783:(h,I,o)=>{var c=o(66349);c("asyncDispose")},43975:(h,I,o)=>{var c=o(66349);c("dispose")},65799:(h,I,o)=>{var c=o(66349);c("matcher")},45414:(h,I,o)=>{var c=o(66349);c("metadata")},46774:(h,I,o)=>{var c=o(66349);c("observable")},80620:(h,I,o)=>{var c=o(66349);c("patternMatch")},36172:(h,I,o)=>{var c=o(66349);c("replaceAll")},7634:(h,I,o)=>{o(66274);var c=o(63281),v=o(21899),x=o(9697),d=o(32029),b=o(12077),A=o(99813),g=A("toStringTag");for(var L in c){var N=v[L],B=N&&N.prototype;B&&x(B)!==g&&d(B,g,L),b[L]=b.Array}},27698:(h,I,o)=>{var c=o(54493);h.exports=c},62908:(h,I,o)=>{var c=o(12710);h.exports=c},49216:(h,I,o)=>{var c=o(99324);h.exports=c},8065:(h,I,o)=>{var c=o(56043);h.exports=c},57448:(h,I,o)=>{o(7634);var c=o(62908),v=o(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var A=b.entries;return b===x||b instanceof Array&&A===x.entries||d.hasOwnProperty(v(b))?c:A}},11955:(h,I,o)=>{var c=o(2480);h.exports=c},61577:(h,I,o)=>{var c=o(32236);h.exports=c},46279:(h,I,o)=>{o(7634);var c=o(49216),v=o(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var A=b.forEach;return b===x||b instanceof Array&&A===x.forEach||d.hasOwnProperty(v(b))?c:A}},33778:(h,I,o)=>{var c=o(58557);h.exports=c},61798:(h,I,o)=>{var c=o(88287);h.exports=c},82073:(h,I,o)=>{var c=o(69601);h.exports=c},2348:(h,I,o)=>{var c=o(18339);h.exports=c},8933:(h,I,o)=>{var c=o(84426);h.exports=c},63383:(h,I,o)=>{var c=o(45999);h.exports=c},86209:(h,I,o)=>{var c=o(73081);h.exports=c},23059:(h,I,o)=>{var c=o(48494);h.exports=c},27460:(h,I,o)=>{var c=o(52956);h.exports=c},72010:(h,I,o)=>{var c=o(32304);h.exports=c},31905:function(){(function(h){var I=function(o){var c={searchParams:"URLSearchParams"in h,iterable:"Symbol"in h&&"iterator"in Symbol,blob:"FileReader"in h&&"Blob"in h&&function(){try{return new Blob,!0}catch(te){return!1}}(),formData:"FormData"in h,arrayBuffer:"ArrayBuffer"in h};function v(te){return te&&DataView.prototype.isPrototypeOf(te)}if(c.arrayBuffer)var x=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(te){return te&&x.indexOf(Object.prototype.toString.call(te))>-1};function b(te){if(typeof te!="string"&&(te=String(te)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(te))throw new TypeError("Invalid character in header field name");return te.toLowerCase()}function A(te){return typeof te!="string"&&(te=String(te)),te}function g(te){var ne={next:function(){var ye=te.shift();return{done:ye===void 0,value:ye}}};return c.iterable&&(ne[Symbol.iterator]=function(){return ne}),ne}function L(te){this.map={},te instanceof L?te.forEach(function(ne,ye){this.append(ye,ne)},this):Array.isArray(te)?te.forEach(function(ne){this.append(ne[0],ne[1])},this):te&&Object.getOwnPropertyNames(te).forEach(function(ne){this.append(ne,te[ne])},this)}L.prototype.append=function(te,ne){te=b(te),ne=A(ne);var ye=this.map[te];this.map[te]=ye?ye+", "+ne:ne},L.prototype.delete=function(te){delete this.map[b(te)]},L.prototype.get=function(te){return te=b(te),this.has(te)?this.map[te]:null},L.prototype.has=function(te){return this.map.hasOwnProperty(b(te))},L.prototype.set=function(te,ne){this.map[b(te)]=A(ne)},L.prototype.forEach=function(te,ne){for(var ye in this.map)this.map.hasOwnProperty(ye)&&te.call(ne,this.map[ye],ye,this)},L.prototype.keys=function(){var te=[];return this.forEach(function(ne,ye){te.push(ye)}),g(te)},L.prototype.values=function(){var te=[];return this.forEach(function(ne){te.push(ne)}),g(te)},L.prototype.entries=function(){var te=[];return this.forEach(function(ne,ye){te.push([ye,ne])}),g(te)},c.iterable&&(L.prototype[Symbol.iterator]=L.prototype.entries);function N(te){if(te.bodyUsed)return Promise.reject(new TypeError("Already read"));te.bodyUsed=!0}function B(te){return new Promise(function(ne,ye){te.onload=function(){ne(te.result)},te.onerror=function(){ye(te.error)}})}function j(te){var ne=new FileReader,ye=B(ne);return ne.readAsArrayBuffer(te),ye}function _(te){var ne=new FileReader,ye=B(ne);return ne.readAsText(te),ye}function H(te){for(var ne=new Uint8Array(te),ye=new Array(ne.length),ge=0;ge<ne.length;ge++)ye[ge]=String.fromCharCode(ne[ge]);return ye.join("")}function R(te){if(te.slice)return te.slice(0);var ne=new Uint8Array(te.byteLength);return ne.set(new Uint8Array(te)),ne.buffer}function X(){return this.bodyUsed=!1,this._initBody=function(te){this._bodyInit=te,te?typeof te=="string"?this._bodyText=te:c.blob&&Blob.prototype.isPrototypeOf(te)?this._bodyBlob=te:c.formData&&FormData.prototype.isPrototypeOf(te)?this._bodyFormData=te:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(te)?this._bodyText=te.toString():c.arrayBuffer&&c.blob&&v(te)?(this._bodyArrayBuffer=R(te.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(te)||d(te))?this._bodyArrayBuffer=R(te):this._bodyText=te=Object.prototype.toString.call(te):this._bodyText="",this.headers.get("content-type")||(typeof te=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(te)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var te=N(this);if(te)return te;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?N(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(j)}),this.text=function(){var te=N(this);if(te)return te;if(this._bodyBlob)return _(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(H(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}var M=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(te){var ne=te.toUpperCase();return M.indexOf(ne)>-1?ne:te}function V(te,ne){ne=ne||{};var ye=ne.body;if(te instanceof V){if(te.bodyUsed)throw new TypeError("Already read");this.url=te.url,this.credentials=te.credentials,ne.headers||(this.headers=new L(te.headers)),this.method=te.method,this.mode=te.mode,this.signal=te.signal,!ye&&te._bodyInit!=null&&(ye=te._bodyInit,te.bodyUsed=!0)}else this.url=String(te);if(this.credentials=ne.credentials||this.credentials||"same-origin",(ne.headers||!this.headers)&&(this.headers=new L(ne.headers)),this.method=C(ne.method||this.method||"GET"),this.mode=ne.mode||this.mode||null,this.signal=ne.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ye)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ye)}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})};function J(te){var ne=new FormData;return te.trim().split("&").forEach(function(ye){if(ye){var ge=ye.split("="),de=ge.shift().replace(/\+/g," "),le=ge.join("=").replace(/\+/g," ");ne.append(decodeURIComponent(de),decodeURIComponent(le))}}),ne}function q(te){var ne=new L,ye=te.replace(/\r?\n[\t ]+/g," ");return ye.split(/\r?\n/).forEach(function(ge){var de=ge.split(":"),le=de.shift().trim();if(le){var ae=de.join(":").trim();ne.append(le,ae)}}),ne}X.call(V.prototype);function Q(te,ne){ne||(ne={}),this.type="default",this.status=ne.status===void 0?200:ne.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in ne?ne.statusText:"OK",this.headers=new L(ne.headers),this.url=ne.url||"",this._initBody(te)}X.call(Q.prototype),Q.prototype.clone=function(){return new Q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new L(this.headers),url:this.url})},Q.error=function(){var te=new Q(null,{status:0,statusText:""});return te.type="error",te};var Y=[301,302,303,307,308];Q.redirect=function(te,ne){if(Y.indexOf(ne)===-1)throw new RangeError("Invalid status code");return new Q(null,{status:ne,headers:{location:te}})},o.DOMException=h.DOMException;try{new o.DOMException}catch(te){o.DOMException=function(ne,ye){this.message=ne,this.name=ye;var ge=Error(ne);this.stack=ge.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function ue(te,ne){return new Promise(function(ye,ge){var de=new V(te,ne);if(de.signal&&de.signal.aborted)return ge(new o.DOMException("Aborted","AbortError"));var le=new XMLHttpRequest;function ae(){le.abort()}le.onload=function(){var De={status:le.status,statusText:le.statusText,headers:q(le.getAllResponseHeaders()||"")};De.url="responseURL"in le?le.responseURL:De.headers.get("X-Request-URL");var Ve="response"in le?le.response:le.responseText;ye(new Q(Ve,De))},le.onerror=function(){ge(new TypeError("Network request failed"))},le.ontimeout=function(){ge(new TypeError("Network request failed"))},le.onabort=function(){ge(new o.DOMException("Aborted","AbortError"))},le.open(de.method,de.url,!0),de.credentials==="include"?le.withCredentials=!0:de.credentials==="omit"&&(le.withCredentials=!1),"responseType"in le&&c.blob&&(le.responseType="blob"),de.headers.forEach(function(De,Ve){le.setRequestHeader(Ve,De)}),de.signal&&(de.signal.addEventListener("abort",ae),le.onreadystatechange=function(){le.readyState===4&&de.signal.removeEventListener("abort",ae)}),le.send(typeof de._bodyInit=="undefined"?null:de._bodyInit)})}return ue.polyfill=!0,h.fetch||(h.fetch=ue,h.Headers=L,h.Request=V,h.Response=Q),o.Headers=L,o.Request=V,o.Response=Q,o.fetch=ue,Object.defineProperty(o,"__esModule",{value:!0}),o}({})})(typeof self!="undefined"?self:this)},54098:function(h,I){var o=typeof self!="undefined"?self:this,c=function(){function x(){this.fetch=!1,this.DOMException=o.DOMException}return x.prototype=o,new x}();(function(x){var d=function(b){var A={searchParams:"URLSearchParams"in x,iterable:"Symbol"in x&&"iterator"in Symbol,blob:"FileReader"in x&&"Blob"in x&&function(){try{return new Blob,!0}catch(le){return!1}}(),formData:"FormData"in x,arrayBuffer:"ArrayBuffer"in x};function g(le){return le&&DataView.prototype.isPrototypeOf(le)}if(A.arrayBuffer)var L=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],N=ArrayBuffer.isView||function(le){return le&&L.indexOf(Object.prototype.toString.call(le))>-1};function B(le){if(typeof le!="string"&&(le=String(le)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(le))throw new TypeError("Invalid character in header field name");return le.toLowerCase()}function j(le){return typeof le!="string"&&(le=String(le)),le}function _(le){var ae={next:function(){var De=le.shift();return{done:De===void 0,value:De}}};return A.iterable&&(ae[Symbol.iterator]=function(){return ae}),ae}function H(le){this.map={},le instanceof H?le.forEach(function(ae,De){this.append(De,ae)},this):Array.isArray(le)?le.forEach(function(ae){this.append(ae[0],ae[1])},this):le&&Object.getOwnPropertyNames(le).forEach(function(ae){this.append(ae,le[ae])},this)}H.prototype.append=function(le,ae){le=B(le),ae=j(ae);var De=this.map[le];this.map[le]=De?De+", "+ae:ae},H.prototype.delete=function(le){delete this.map[B(le)]},H.prototype.get=function(le){return le=B(le),this.has(le)?this.map[le]:null},H.prototype.has=function(le){return this.map.hasOwnProperty(B(le))},H.prototype.set=function(le,ae){this.map[B(le)]=j(ae)},H.prototype.forEach=function(le,ae){for(var De in this.map)this.map.hasOwnProperty(De)&&le.call(ae,this.map[De],De,this)},H.prototype.keys=function(){var le=[];return this.forEach(function(ae,De){le.push(De)}),_(le)},H.prototype.values=function(){var le=[];return this.forEach(function(ae){le.push(ae)}),_(le)},H.prototype.entries=function(){var le=[];return this.forEach(function(ae,De){le.push([De,ae])}),_(le)},A.iterable&&(H.prototype[Symbol.iterator]=H.prototype.entries);function R(le){if(le.bodyUsed)return Promise.reject(new TypeError("Already read"));le.bodyUsed=!0}function X(le){return new Promise(function(ae,De){le.onload=function(){ae(le.result)},le.onerror=function(){De(le.error)}})}function M(le){var ae=new FileReader,De=X(ae);return ae.readAsArrayBuffer(le),De}function C(le){var ae=new FileReader,De=X(ae);return ae.readAsText(le),De}function V(le){for(var ae=new Uint8Array(le),De=new Array(ae.length),Ve=0;Ve<ae.length;Ve++)De[Ve]=String.fromCharCode(ae[Ve]);return De.join("")}function J(le){if(le.slice)return le.slice(0);var ae=new Uint8Array(le.byteLength);return ae.set(new Uint8Array(le)),ae.buffer}function q(){return this.bodyUsed=!1,this._initBody=function(le){this._bodyInit=le,le?typeof le=="string"?this._bodyText=le:A.blob&&Blob.prototype.isPrototypeOf(le)?this._bodyBlob=le:A.formData&&FormData.prototype.isPrototypeOf(le)?this._bodyFormData=le:A.searchParams&&URLSearchParams.prototype.isPrototypeOf(le)?this._bodyText=le.toString():A.arrayBuffer&&A.blob&&g(le)?(this._bodyArrayBuffer=J(le.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):A.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(le)||N(le))?this._bodyArrayBuffer=J(le):this._bodyText=le=Object.prototype.toString.call(le):this._bodyText="",this.headers.get("content-type")||(typeof le=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):A.searchParams&&URLSearchParams.prototype.isPrototypeOf(le)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},A.blob&&(this.blob=function(){var le=R(this);if(le)return le;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?R(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(M)}),this.text=function(){var le=R(this);if(le)return le;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(V(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},A.formData&&(this.formData=function(){return this.text().then(te)}),this.json=function(){return this.text().then(JSON.parse)},this}var Q=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Y(le){var ae=le.toUpperCase();return Q.indexOf(ae)>-1?ae:le}function ue(le,ae){ae=ae||{};var De=ae.body;if(le instanceof ue){if(le.bodyUsed)throw new TypeError("Already read");this.url=le.url,this.credentials=le.credentials,ae.headers||(this.headers=new H(le.headers)),this.method=le.method,this.mode=le.mode,this.signal=le.signal,!De&&le._bodyInit!=null&&(De=le._bodyInit,le.bodyUsed=!0)}else this.url=String(le);if(this.credentials=ae.credentials||this.credentials||"same-origin",(ae.headers||!this.headers)&&(this.headers=new H(ae.headers)),this.method=Y(ae.method||this.method||"GET"),this.mode=ae.mode||this.mode||null,this.signal=ae.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&De)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(De)}ue.prototype.clone=function(){return new ue(this,{body:this._bodyInit})};function te(le){var ae=new FormData;return le.trim().split("&").forEach(function(De){if(De){var Ve=De.split("="),Le=Ve.shift().replace(/\+/g," "),ke=Ve.join("=").replace(/\+/g," ");ae.append(decodeURIComponent(Le),decodeURIComponent(ke))}}),ae}function ne(le){var ae=new H,De=le.replace(/\r?\n[\t ]+/g," ");return De.split(/\r?\n/).forEach(function(Ve){var Le=Ve.split(":"),ke=Le.shift().trim();if(ke){var rt=Le.join(":").trim();ae.append(ke,rt)}}),ae}q.call(ue.prototype);function ye(le,ae){ae||(ae={}),this.type="default",this.status=ae.status===void 0?200:ae.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in ae?ae.statusText:"OK",this.headers=new H(ae.headers),this.url=ae.url||"",this._initBody(le)}q.call(ye.prototype),ye.prototype.clone=function(){return new ye(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new H(this.headers),url:this.url})},ye.error=function(){var le=new ye(null,{status:0,statusText:""});return le.type="error",le};var ge=[301,302,303,307,308];ye.redirect=function(le,ae){if(ge.indexOf(ae)===-1)throw new RangeError("Invalid status code");return new ye(null,{status:ae,headers:{location:le}})},b.DOMException=x.DOMException;try{new b.DOMException}catch(le){b.DOMException=function(ae,De){this.message=ae,this.name=De;var Ve=Error(ae);this.stack=Ve.stack},b.DOMException.prototype=Object.create(Error.prototype),b.DOMException.prototype.constructor=b.DOMException}function de(le,ae){return new Promise(function(De,Ve){var Le=new ue(le,ae);if(Le.signal&&Le.signal.aborted)return Ve(new b.DOMException("Aborted","AbortError"));var ke=new XMLHttpRequest;function rt(){ke.abort()}ke.onload=function(){var Qe={status:ke.status,statusText:ke.statusText,headers:ne(ke.getAllResponseHeaders()||"")};Qe.url="responseURL"in ke?ke.responseURL:Qe.headers.get("X-Request-URL");var Je="response"in ke?ke.response:ke.responseText;De(new ye(Je,Qe))},ke.onerror=function(){Ve(new TypeError("Network request failed"))},ke.ontimeout=function(){Ve(new TypeError("Network request failed"))},ke.onabort=function(){Ve(new b.DOMException("Aborted","AbortError"))},ke.open(Le.method,Le.url,!0),Le.credentials==="include"?ke.withCredentials=!0:Le.credentials==="omit"&&(ke.withCredentials=!1),"responseType"in ke&&A.blob&&(ke.responseType="blob"),Le.headers.forEach(function(Qe,Je){ke.setRequestHeader(Je,Qe)}),Le.signal&&(Le.signal.addEventListener("abort",rt),ke.onreadystatechange=function(){ke.readyState===4&&Le.signal.removeEventListener("abort",rt)}),ke.send(typeof Le._bodyInit=="undefined"?null:Le._bodyInit)})}return de.polyfill=!0,x.fetch||(x.fetch=de,x.Headers=H,x.Request=ue,x.Response=ye),b.Headers=H,b.Request=ue,b.Response=ye,b.fetch=de,Object.defineProperty(b,"__esModule",{value:!0}),b}({})})(c),c.fetch.ponyfill=!0,delete c.fetch.polyfill;var v=c;I=v.fetch,I.default=v.fetch,I.fetch=v.fetch,I.Headers=v.Headers,I.Request=v.Request,I.Response=v.Response,h.exports=I},17438:(h,I,o)=>{"use strict";o.r(I),o.d(I,{default:()=>A});var c=o(8081),v=o.n(c),x=o(23645),d=o.n(x),b=d()(v());b.push([h.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}.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}
|
|
47
|
-
`,""]);const A=b},58635:(h,I,o)=>{"use strict";o.r(I),o.d(I,{default:()=>V});var c=o(8081),v=o.n(c),x=o(23645),d=o.n(x),b=o(61667),A=o.n(b),g=new URL(o(17735),o.b),L=new URL(o(56089),o.b),N=new URL(o(46050),o.b),B=new URL(o(71090),o.b),j=new URL(o(96192),o.b),_=d()(v()),H=A()(g),R=A()(L),X=A()(N),M=A()(B),C=A()(j);_.push([h.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("+H+")}.CodeMirror-lint-mark-error{background-image:url("+R+")}.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("+X+")}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url("+M+")}.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}
|
|
48
|
-
`,""]);const V=_},45272:(h,I,o)=>{"use strict";o.r(I),o.d(I,{default:()=>A});var c=o(8081),v=o.n(c),x=o(23645),d=o.n(x),b=d()(v());b.push([h.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}.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}
|
|
49
|
-
`,""]);const A=b},40961:(h,I,o)=>{"use strict";o.r(I),o.d(I,{default:()=>A});var c=o(8081),v=o.n(c),x=o(23645),d=o.n(x),b=d()(v());b.push([h.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}
|
|
50
|
-
`,""]);const A=b},61667:h=>{"use strict";h.exports=function(I,o){return o||(o={}),I&&(I=String(I.__esModule?I.default:I),/^['"].*['"]$/.test(I)&&(I=I.slice(1,-1)),o.hash&&(I+=o.hash),/["'() \t\n]|(%20)/.test(I)||o.needQuotes?'"'.concat(I.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):I)}},31312:(h,I,o)=>{"use strict";var c=o(48764).Buffer;/*!
|
|
51
|
-
* @description Recursive object extending
|
|
52
|
-
* @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
|
|
53
|
-
* @license MIT
|
|
54
|
-
*
|
|
55
|
-
* The MIT License (MIT)
|
|
56
|
-
*
|
|
57
|
-
* Copyright (c) 2013-2018 Viacheslav Lotsmanov
|
|
58
|
-
*
|
|
59
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
60
|
-
* this software and associated documentation files (the "Software"), to deal in
|
|
61
|
-
* the Software without restriction, including without limitation the rights to
|
|
62
|
-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
63
|
-
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
64
|
-
* subject to the following conditions:
|
|
65
|
-
*
|
|
66
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
67
|
-
* copies or substantial portions of the Software.
|
|
68
|
-
*
|
|
69
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
70
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
71
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
72
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
73
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
74
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
75
|
-
*/function v(g){return g instanceof c||g instanceof Date||g instanceof RegExp}function x(g){if(g instanceof c){var L=c.alloc?c.alloc(g.length):new c(g.length);return g.copy(L),L}else{if(g instanceof Date)return new Date(g.getTime());if(g instanceof RegExp)return new RegExp(g);throw new Error("Unexpected situation")}}function d(g){var L=[];return g.forEach(function(N,B){typeof N=="object"&&N!==null?Array.isArray(N)?L[B]=d(N):v(N)?L[B]=x(N):L[B]=A({},N):L[B]=N}),L}function b(g,L){return L==="__proto__"?void 0:g[L]}var A=h.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var g=arguments[0],L=Array.prototype.slice.call(arguments,1),N,B,j;return L.forEach(function(_){typeof _!="object"||_===null||Array.isArray(_)||Object.keys(_).forEach(function(H){if(B=b(g,H),N=b(_,H),N!==g)if(typeof N!="object"||N===null){g[H]=N;return}else if(Array.isArray(N)){g[H]=d(N);return}else if(v(N)){g[H]=x(N);return}else if(typeof B!="object"||B===null||Array.isArray(B)){g[H]=A({},N);return}else{g[H]=A(B,N);return}})}),g}},36632:(h,I,o)=>{"use strict";o.r(I),o.d(I,{Console:()=>rd,TryItPanel:()=>cf});var c={};o.r(c),o.d(c,{JsonPatchError:()=>Gr,_areEquals:()=>Pl,applyOperation:()=>Sa,applyPatch:()=>Aa,applyReducer:()=>og,deepClone:()=>ng,getValueByPointer:()=>Tl,validate:()=>gp,validator:()=>rf});var v={};o.r(v),o.d(v,{compare:()=>pg,generate:()=>Vc,observe:()=>dg,unobserve:()=>cg});var x={};o.r(x),o.d(x,{cookie:()=>jy,header:()=>Uy,path:()=>Dy,query:()=>Ny});var d=o(67294);function b(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function A(t,r){for(var i=0;i<r.length;i++){var a=r[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function g(t,r,i){return r&&A(t.prototype,r),i&&A(t,i),t}function L(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function N(){return N=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},N.apply(this,arguments)}function B(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),i.push.apply(i,a)}return i}function j(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?B(Object(i),!0).forEach(function(a){L(t,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):B(Object(i)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(i,a))})}return t}function _(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&R(t,r)}function H(t){return H=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},H(t)}function R(t,r){return R=Object.setPrototypeOf||function(a,s){return a.__proto__=s,a},R(t,r)}function X(){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(t){return!1}}function M(t,r){if(t==null)return{};var i={},a=Object.keys(t),s,p;for(p=0;p<a.length;p++)s=a[p],!(r.indexOf(s)>=0)&&(i[s]=t[s]);return i}function C(t,r){if(t==null)return{};var i=M(t,r),a,s;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(t);for(s=0;s<p.length;s++)a=p[s],!(r.indexOf(a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,a)||(i[a]=t[a]))}return i}function V(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function J(t,r){return r&&(typeof r=="object"||typeof r=="function")?r:V(t)}function q(t){var r=X();return function(){var a=H(t),s;if(r){var p=H(this).constructor;s=Reflect.construct(a,arguments,p)}else s=a.apply(this,arguments);return J(this,s)}}function Q(t,r){return te(t)||ye(t,r)||ge(t,r)||ae()}function Y(t){return ue(t)||ne(t)||ge(t)||le()}function ue(t){if(Array.isArray(t))return de(t)}function te(t){if(Array.isArray(t))return t}function ne(t){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function ye(t,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(t)))){var i=[],a=!0,s=!1,p=void 0;try{for(var m=t[Symbol.iterator](),S;!(a=(S=m.next()).done)&&(i.push(S.value),!(r&&i.length===r));a=!0);}catch(w){s=!0,p=w}finally{try{!a&&m.return!=null&&m.return()}finally{if(s)throw p}}return i}}function ge(t,r){if(!!t){if(typeof t=="string")return de(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return de(t,r)}}function de(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,a=new Array(r);i<r;i++)a[i]=t[i];return a}function le(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
76
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
77
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function De(t,r){var i;if(typeof Symbol=="undefined"||t[Symbol.iterator]==null){if(Array.isArray(t)||(i=ge(t))||r&&t&&typeof t.length=="number"){i&&(t=i);var a=0,s=function(){};return{s,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(w){throw w},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
78
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,m=!1,S;return{s:function(){i=t[Symbol.iterator]()},n:function(){var w=i.next();return p=w.done,w},e:function(w){m=!0,S=w},f:function(){try{!p&&i.return!=null&&i.return()}finally{if(m)throw S}}}}function Ve(t,r){return r={exports:{}},t(r,r.exports),r.exports}var Le=Ve(function(t){function r(k,$){for(var oe=0,re=0;re<k.length;re++)oe=(oe<<5)-oe+k.charCodeAt(re),oe|=0;return $[Math.abs(oe)%$.length]}function i(k,$){var oe=$.namespace;if($.useColors){var re=$.color,ce="[3"+(re<8?re:"8;5;"+re),ve=" ".concat(ce,";1m").concat(oe," [0m");k[0]=ve+k[0].split(`
|
|
79
|
-
`).join(`
|
|
80
|
-
`+ve)}else k[0]=oe+" "+k[0]}function a(k,$){if(k[0]=($.useColors?"%c":"")+$.namespace,!!$.useColors){var oe="color: "+$.color,re=0,ce=0;k[0].replace(/%[a-zA-Z%]/g,function(ve){ve!=="%%"&&(re++,ve==="%c"&&(ce=re))}),k.splice(ce,0,oe)}}var s=["#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 p(){var k;try{k=localStorage.getItem("debug")}catch($){}return!k&&typeof process!="undefined"&&"env"in process&&(k={}.DEBUG),{namespaces:k||"",colors:s,useColors:!0,formatArgs:a}}function m(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:i}}function S(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,$=arguments.length>1?arguments[1]:void 0;return function(){for(var oe=arguments.length,re=new Array(oe),ce=0;ce<oe;ce++)re[ce]=arguments[ce];k&&re.unshift(k);var ve=$.namespaces.split(",").map(function(Fe){return Fe[Fe.length-1]==="*"?new RegExp("^"+Fe.slice(0,Fe.length-1)+".*$"):new RegExp("^"+Fe+"$")}),he=ve.some(function(Fe){return Fe.test(k)}),Se={color:r(k,$.colors),namespace:k,useColors:$.useColors};if(!1)var me}}function w(k){return S(k,m())}function E(k){return S(k,p())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?t.exports=E:t.exports=w}),ke=Le("informed:ObjMap "),rt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},Qe=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,s=String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(p,m){return p!=null?p[m]:p},r);return s===void 0||s===r?a:s},Je=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},ut=function(r){return r.replace(Je(r),"").replace(/\./,"")},pt=function(r,i){var a=Je(i),s=ut(i),p=a?Qe(r,a):r;return!!(p&&Object.hasOwnProperty.call(p,s.replace(/\[(.*)\]/,"$1")))},mt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,m,S){return m===S.length-1?(s[p]=a,s[p]):s[p]===void 0?(Number.isInteger(+S[m+1])?s[p]=[]:s[p]={},s[p]):(Number.isInteger(+S[m+1])&&!Array.isArray(s[p])&&(s[p]=[]),s[p])},r)},qe=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=!1;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,m,S){return s===void 0?s:(m===S.length-1&&(delete s[p],a=!0),s[p])},r),a},lt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,m,S){return s===void 0?s:(m===S.length-1&&Array.isArray(s)&&(a=s.splice(p,1)),s[p])},r),a},gt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=Object.keys(r);return i.map(function(a){return r[a]})},xt=function(r){var i=rt(r);return Number.isInteger(+i[i.length-1])},dt=function(){function t(){b(this,t)}return g(t,null,[{key:"empty",value:function(i){return gt(i).length===0}},{key:"get",value:function(i,a){var s=Qe(i,a);return s}},{key:"has",value:function(i,a){return pt(i,a)}},{key:"set",value:function(i,a,s){if(s!==void 0)ke("SETTING",a,s),mt(i,a,s);else if(xt(a)&&t.get(i,a)!==void 0){ke("Special case SETTING",a,"to undefined"),mt(i,a,void 0);var p=rt(a);p=p.slice(0,p.length-1),kt(i,p)}else!xt(a)&&t.get(i,a)!==void 0&&(ke("Special case REMOVING",a,"from object completley"),t.delete(i,a))}},{key:"delete",value:function(i,a){ke("DELETE",a),xt(a)?(ke("ARRAY",a),this.pullOut(i,a)):qe(i,a);var s=rt(a);s=s.slice(0,s.length-1),kt(i,s)}},{key:"pullOut",value:function(i,a){var s=rt(a),p=s[s.length-1];s=s.slice(0,s.length-1),ke("Pulling out:",s,"index",p);var m=Qe(i,s);ke("Array",m),Array.isArray(m)&<(m,p),kt(i,s)}}]),t}();function kt(t,r){if(r.length!==0){var i=Qe(t,r);(Array.isArray(i)?i.every(function(a){return a==null}):JSON.stringify(i)==="{}")&&qe(t,r),kt(t,r.slice(0,r.length-1))}}var It=d.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),At=d.createContext({}),jt=d.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),Nt=d.createContext(),$t=d.createContext(),St=d.createContext(),Lt=d.createContext(),pe=d.createContext(),G=d.createContext(),K=d.createContext(),we=d.createContext();function Re(){var t=(0,d.useContext)(jt);return t}function be(t){var r=(0,d.useRef)(),i=(0,d.useRef)(!0),a=(0,d.useState)(t),s=Q(a,2),p=s[0],m=s[1];r.current=p;var S=function(k){r.current=k,i.current&&m(k)},w=function(){return r.current};return(0,d.useEffect)(function(){return function(){i.current=!1}},[]),[p,S,w]}var Ae=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},T=function(r){var i={};if(r.inner){if(r.inner.length===0){dt.set(i,r.path,r.message);return}var a=De(r.inner),s;try{for(a.s();!(s=a.n()).done;){var p=s.value;dt.get(i,p.path)||dt.set(i,p.path,p.message)}}catch(m){a.e(m)}finally{a.f()}}return i},Ie=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(s){var a=T(s);return a}},W=function(r){if(r.inner){if(r.inner.length===0)return;var i=r.inner[0];return i.message}},O=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(a){return W(a)}},P=function(r,i){r(i);var a={};return r.errors&&r.errors.forEach(function(s){var p=s.message,m=s.dataPath,S=s.keyword,w=s.params,E=m;S==="required"&&(E="".concat(E,".").concat(w.missingProperty)),E=E.replace(".",""),dt.set(a,E,p)}),a},ie=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var i=Math.random()*16|0,a=r=="x"?i:i&3|8;return a.toString(16)})},D=function(r,i){var a;return function(){for(var p=arguments.length,m=new Array(p),S=0;S<p;S++)m[S]=arguments[S];var w=function(){clearTimeout(a),r.apply(void 0,m)};clearTimeout(a),a=setTimeout(w,i)}},ee=function(r,i,a){var s=i["ui:control"],p=i["informed:props"],m=i["input:props"],S=i["ui:before"],w=i["ui:after"],E=i.oneOf,k=i.items,$=i.enum,oe=i.title,re=i.minimum,ce=i.maximum,ve=i.minLength,he=i.maxLength,Se=i.pattern,me=i.type,Fe=i.properties,$e=ie();m&&m.id&&($e=m.id);var Ue={componentType:s,field:a?"".concat(a,".").concat(r):r,type:me,uiBefore:S,uiAfter:w,properties:me==="object"?Fe:void 0,items:me==="array"?k:void 0,props:j(j({label:oe,id:$e,min:re,max:ce,minLength:ve,maxLength:he,pattern:Se},p),m)};if(E){var ze=i.oneOf.map(function(We){var Xe=We["input:props"],et=Xe===void 0?{}:Xe;return j({value:We.const,label:We.title},et)});Ue.props.options=ze}if($){var Be=i.enum.map(function(We){return{value:We,label:We}});Ue.props.options=Be}if(k&&k.oneOf){var je=k.oneOf.map(function(We){var Xe=We["input:props"],et=Xe===void 0?{}:Xe;return j({value:We.const,label:We.title},et)});Ue.props.options=je}return Ue},fe=function(r,i,a){if(!r||i)return[];var s=r.properties,p=s===void 0?{}:s,m=r.allOf,S=r.propertyOrder,w=S===void 0?[]:S;if(Object.keys(p).length>0){var E=Object.keys(p).sort(function(k,$){var oe=w.indexOf(k),re=w.indexOf($);return(oe>-1?oe:w.length+1)-(re>-1?re:w.length+1)}).map(function(k){var $=p[k],oe=ee(k,$,a);return oe});return m&&E.push({componentType:"conditionals",allOf:m}),E}return[]},Oe=function(r){var i=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return i="properties.".concat(i),i},Pe=function(r,i){if(typeof r=="string")return r.split("").map(function(a){return a==="#"?/\d/:a==="*"?/[\w]/:a});if(typeof r=="function")return r(i);if(Array.isArray(r))return r;throw new Error("Formatter must be string, array, or function")},Te=function(r,i){for(var a=0,s=-1,p=!0;p&&a<r.length;)r[a]==i[a]?s=a:p=!1,a=a+1;return s},Ge=function(r,i){if(!r)return{val:r,offset:0};var a="".concat(r),s=Pe(i,a),p=s.findIndex(function(he){return typeof he!="string"}),m=s.length-Y(s).reverse().findIndex(function(he){return typeof he!="string"}),S=[],w=a.split(""),E=0,k=0,$=Te(s.slice(0,p),w.slice(0,p));$>-1&&(E=$+1,S=S.concat(s.slice(0,$+1)),k=$+1),$<0&&(S=S.concat(s.slice(0,p)),k=p);for(var oe=k;oe<s.length;oe++){var re=s[oe];if(E!=w.length){var ce=w[E];if(typeof re=="function")S.push(re(ce)),E=E+1;else{var ve=typeof re=="string"?re===ce:re.test(ce);ve&&typeof re=="string"?(S.push(re),E=E+1):!ve&&typeof re=="string"?E!=w.length&&S.push(re):ve&&typeof re!="string"?(S.push(ce),E=E+1):!ve&&typeof re!="string"&&(E=E+1,oe=oe-1)}}else if(typeof re=="string"&&oe>=m)S.push(re);else break}return{value:S.join(""),offset:a?S.length-a.length:0}},He=function(r,i){var a,s,p=new Intl.NumberFormat(r,i),m=new Intl.NumberFormat(r),S=(a=(s=m.formatToParts(.1).find(function(he){var Se=he.type;return Se==="decimal"}))===null||s===void 0?void 0:s.value)!==null&&a!==void 0?a:".";function w(he,Se){return he instanceof RegExp&&Se instanceof RegExp&&he.source===Se.source&&he.global===Se.global&&he.ignoreCase===Se.ignoreCase&&he.multiline===Se.multiline}function E(he,Se){for(var me=he.length;me--;)if(Se(he[me]))return me;return-1}function k(he,Se,me){var Fe=Y(he);return Array.isArray(me)?Fe.splice.apply(Fe,[Se,0].concat(Y(me))):Fe.splice(Se,0,me),Fe}function $(he){return"".concat(he).replace(/\D/g,"")}function oe(he){return"".concat(he).split(S).map(function(Se){return $(Se)}).join(".")}function re(he){if(typeof he=="number")return he;var Se=parseFloat(oe(he));return Number.isNaN(Se)?void 0:Se}function ce(he){var Se=oe(he),me="".concat(Se).split(".")[1],Fe=p.formatToParts(Number(Se));me==="0"&&Fe.push({type:"decimal",value:S},{type:"fraction",value:me});var $e=Fe.reduce(function(Be,je){var We=je.type,Xe=je.value;return["decimal","fraction"].includes(We)&&me==null?Be:["integer","fraction"].includes(We)?[].concat(Y(Be),Y(Xe.split("").filter(function(et,Ke){return We==="fraction"?Ke<me.length:!0}).map(function(){return/\d/}))):We==="currency"?[].concat(Y(Be),Y(Xe.split(""))):[].concat(Y(Be),[Xe])},[]),Ue=E($e,function(Be){return w(Be,/\d/)});$e.indexOf(S)===-1&&"".concat(he).indexOf(S)!==-1&&($e=k($e,Ue+1,[S,"[]"]),Ue+=2);var ze=$e.slice(Ue+1).join("");return $e=[].concat(Y($e.slice(0,Ue+1)),[ze]),$e}var ve=function(Se){if(Se!=null)return re(Se)};return{formatter:ce,parser:ve}},it=Object.freeze({__proto__:null,getChildDisplayName:Ae,yupToFormErrors:T,validateYupSchema:Ie,yupToFormError:W,validateYupField:O,validateAjvSchema:P,uuidv4:ie,debounce:D,computeFieldFromProperty:ee,computeFieldsFromSchema:fe,getSchemaPathFromJsonPath:Oe,informedFormat:Ge,createIntlNumberFormatter:He}),yt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?d.useLayoutEffect:d.useEffect,Ct=function(r){var i=r.value,a=r.inputRef,s=r.maintainCursor,p=s===void 0?!0:s,m=be(0),S=Q(m,3),w=S[0],E=S[1],k=S[2],$=be(0),oe=Q($,3),re=oe[0],ce=oe[1],ve=oe[2];return yt(function(){if(a.current!=null&&k()){var he=k()+ve();ve()!=0&&p?a.current.setSelectionRange(he+1,he+1):p&&a.current.setSelectionRange(he,he)}},[i]),{setCursorOffset:ce,setCursor:E,cursor:w,getCursor:k,cursorOffset:re}},Jt=function(r,i){var a=(0,d.useRef)(!0),s=a.current;(0,d.useEffect)(function(){if(s)a.current=!1;else return r()},i)},Ft=Le("informed:useField "),wn=function(r,i,a,s,p){if(r!=null){if(p)return p(r);if(i)return i(r);if(a&&!s){var m=Ge(r,a);return m.value}return r}},_r=function(r,i,a,s){if(i&&a)return i(r);if(s){var p=Ge(r,s);return p.value}return r},On=function(r,i,a){var s=a.required;if(r||i)return function(p,m){if(i)return O(i,p);if(r)return r(p,m)};if(s)return function(p){return Tn(p,s)}},$i=function(r){var i=r.fieldType,a=r.setValue,s=r.onChange,p=r.multiple,m=r.ref,S=function(E){return a(E)};return(i==="text"||i==="textArea"||i==="number")&&(S=function(E){return a(E.target.value,E)}),i==="select"&&(S=function(){var E=Array.from(m.current).filter(function(k){return k.selected}).map(function(k){return k.value});a(p?E:E[0]||"")}),i==="checkbox"&&(S=function(E){a(E.target.checked),s&&s(E)}),function(w){S(w)}},jr=function(r){var i=r.setTouched,a=r.onBlur;return function(s){i(!0),a&&a(s)}},Bn=function(r){var i=r.fieldType,a=r.maskedValue,s=r.multiple,p=r.value;switch(i){case"text":case"number":return!a&&a!==0?"":a;case"textArea":return a||"";case"select":return p||(s?[]:"");case"checkbox":return!!p;default:return p}},Kn=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},Tn=function(r,i){if(i&&(r==null||r===""))return typeof i=="string"?i:"This field is required"};function Yn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,i=t.field,a=t.validate,s=t.asyncValidate,p=t.validationSchema,m=t.mask,S=t.maskWithCursorOffset,w=t.format,E=t.parse,k=t.formatter,$=t.parser,oe=t.initialValue,re=t.validateOnChange,ce=t.validateOnBlur,ve=t.validateOnMount,he=t.asyncValidateOnBlur,Se=t.maskOnBlur,me=t.allowEmptyString,Fe=t.onValueChange,$e=t.notify,Ue=t.keepState,ze=t.maintainCursor,Be=t.debug,je=t.shadow,We=t.step,Xe=t.fieldType,et=t.multiple,Ke=t.onChange,ht=t.onBlur,Mt=t.formController,Wt=t.relevant,lr=t.required,Lr=t.keepStateIfRelevant,Cr=t.initialize,Yr=t.formatterDependencies,wr=Yr===void 0?[]:Yr,Ur=C(t,["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"]),bn=(0,d.useState)(ie()),Xt=Q(bn,1),Rt=Xt[0],Bt=(0,d.useContext)(It),ur=(0,d.useContext)(we),nn=ur||Lr,vr=Re(),ys=(0,d.useRef)(),kl=(0,d.useRef)(!0),Ca=(0,d.useRef)(),zi=(0,d.useRef)(!1),Rl=function(){return!zi.current},df=function(){return zi.current};Mt&&(Bt=Mt.updater,vr=Mt.getFormApi());var yi=On(a,p,{required:lr}),Ml=(0,d.useState)(function(){return Bt.getInitialValue(i)}),dm=Q(Ml,1),pm=dm[0],pf=Bt.getSavedValue(i),hf,nh;(Ue||nn)&&pf?(Ft("Setting field ".concat(yd,"'s kept state"),pf),hf=pf.value,nh=pf.touched,vr.removeSavedState(yd)):oe!=null?hf=oe:hf=pm;var hm=be(wn(hf,m,k,$,Cr)),nd=Q(hm,3),Ll=nd[0],id=nd[1],vm=nd[2],gm=be(ve?yi(Ll):void 0),od=Q(gm,3),ih=od[0],oh=od[1],ym=od[2],mm=be(nh),ad=Q(mm,3),ah=ad[0],xm=ad[1],sh=ad[2],bm=(0,d.useState)(function(){return _r(Ll,w,E,k)}),lh=Q(bm,2),sd=lh[0],ld=lh[1],uh=(0,d.useRef)();uh.current=sd;var fh=(0,d.useRef)(oe),Oa=(0,d.useRef)(i),ch=(0,d.useRef)();fh.current=oe,Oa.current=i;var wm=(0,d.useRef)(null),Gi=d.useMemo(function(){return r||wm},[]),ud=Ct({value:Ll,inputRef:Gi,maintainCursor:!!ze}),fd=ud.getCursor,Sm=ud.setCursor,cd=ud.setCursorOffset,Am=function(){return!0},dd=function(fr){var on=Wt||Am,Dn=vr.getFullField(Oa.current)||Oa.current,Qt={path:Dn,parentPath:Dn.replace(/(.*)[.[].*/,"$1"),get:function(Nn,Bl){return dt.get(Nn,Bl)}};return ur&&ur.relevant?on(fr,Qt)&&ur.relevant(fr,Qt):on(fr,Qt)},Em=be(dd(vr.getValues())),pd=Q(Em,3),vf=pd[0],Cm=pd[1],dh=pd[2],Om=function(fr){return ur&&ur.relevant?ur.relevant(fr):!0},Tm=function(){var fr=dd(vr.getValues()),on=dh();return fr!=on&&Cm(fr),fr};(0,d.useEffect)(function(){!vf&&!Ue&&ys.current.reset()},[vf]);var qn=function(){return je?vr.getDerrivedValue(i):vm()},Dl=function(fr){var on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Dn=on.preventUpdate;We&&vr.getStep()<We?(Ft("Setting ".concat(i,"'s error to undefined as we are not at that step")),oh(void 0),Bt.setError(Rt,void 0,!Dn)):(Ft("Setting ".concat(i,"'s error to ").concat(fr)),oh(fr),Bt.setError(Rt,fr,!Dn))},hd=function(fr,on){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Qt=fr;zi.current=!0,Ft("Setting ".concat(i," to ").concat(Qt)),Cr&&(Qt=Cr(Qt));var Ta=vr.getOptions(),Nn=Qt;if(Qt===""&&!me&&!Dn.allowEmptyString&&!Ta.allowEmptyStrings&&(Qt=void 0),(t.type==="number"||Xe==="number")&&Qt!==void 0&&(Qt=+Qt),on&&on.target&&on.target.selectionStart&&Sm(on.target.selectionStart),m&&!Se&&(Nn=m(Qt,fd()),Qt=m(Qt,fd())),S&&!Se){var Bl=S(Qt,fd());Nn=Bl.value,Qt=Bl.value,cd(Bl.offset)}if(w&&E&&(Qt=E(Qt),Nn=w(Qt)),k){var ph=Ge(Qt,k);cd(ph.offset),Nn=ph.value,Qt=Nn}$&&(Qt=Qt!=null?$(Qt):Qt),yi&&re&&!Dn.initial&&(Ft("Validating after change ".concat(i," ").concat(Qt)),Dl(yi(Qt,vr.getValues()))),id(Qt),ld(Nn),Fe&&Fe(Qt),Bt.setValue(Rt,Qt,!Dn.preventUpdate)};Jt(function(){ys.current.setValue(uh.current)},Y(wr));var vd=function(fr,on){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Qt=Dn.preventUpdate;if(Ft("Field ".concat(i," has been touched")),yi&&ce&&!on&&fr&&(Ft("Validating after blur ".concat(i," ").concat(qn())),Dl(yi(qn(),vr.getValues()))),s&&he&&!on&&fr&&(Ft("Validating async after blur ".concat(i," ").concat(qn())),s(qn(),vr.getValues())),m&&Se){var Ta=m(qn());id(Ta),ld(Ta),Fe&&Fe(Ta),Bt.setValue(Rt,Ta,!Qt)}if(S&&Se){var Nn=S(qn());cd(Nn.offset),id(Nn.value),ld(Nn.value),Fe&&Fe(Nn.value),Bt.setValue(Rt,Nn.value,!Qt)}xm(fr),Bt.setTouched(Rt,fr,!Qt)},Pm=function(){var fr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},on=fr.preventUpdate,Dn=wn(fh.current||Bt.getInitialValue(Oa.current),m,k,$,Cr);hd(Dn,null,{initial:!0,preventUpdate:on}),Dl(ve?yi(Dn):void 0,{preventUpdate:on}),vd(void 0,!0,{preventUpdate:on}),zi.current=!1},Im=function(fr){yi&&(Ft("Field validating ".concat(i," ").concat(qn())),Dl(yi(qn(),fr||vr.getValues())))},Fm=function(fr){s&&(Ft("Field async validating ".concat(i," ").concat(qn())),s(qn(),fr||vr.getValues()))},gd={setValue:hd,setTouched:vd,setError:Dl,reset:Pm,validate:Im,asyncValidate:Fm,getValue:qn,getTouched:sh,getError:ym,getIsRelevant:dh,getDirty:df,getPristine:Rl,getFieldState:function(){return{value:qn(),touched:sh(),dirty:df(),pristine:Rl()}},relevant:dd,multistepRelevant:Om,checkRelevant:Tm};ys.current=gd;var Nl={value:Ll,error:ih,touched:ah,maskedValue:sd,isRelevant:vf,dirty:zi.current,pristine:!zi.current};je&&(Nl={error:ih,touched:ah}),Ft("Render",vr.getFullField(i),Nl),yt(function(){var Zr=vr.getFullField(Oa.current);return Ft("Register",Rt,Oa.current),Ca.current={field:Zr,fieldId:Rt,fieldApi:gd,fieldState:Nl,notify:$e,keepState:Ue,inMultistep:nn,shadow:je},Bt.register(Rt,Ca.current),function(){var fr=vr.getFullField(Oa.current);Ft("Deregister",Rt,fr),Bt.deregister(Rt)}},[]),(0,d.useEffect)(function(){var Zr=vr.getFullField(i);return kl.current?kl.current=!1:(Ft("Update",i,nn),Ca.current.field=Zr,Bt.update(Rt,Ca.current,ch.current)),function(){ch.current=Zr}},[i]),yt(function(){Be&&Gi&&(Gi.current.style.border="5px solid orange",setTimeout(function(){Gi.current.style.borderWidth="2px",Gi.current.style.borderStyle="inset",Gi.current.style.borderColor="initial",Gi.current.style.borderImage="initial"},500))});var km=[].concat(Y(Object.values(Nl)),Y(Object.values(t)),Y(Object.values(Ur))),Rm=function(fr){return(0,d.useMemo)(function(){return vf?fr:null},Y(km))},yd=i,Mm=$i({fieldType:Xe,setValue:hd,onChange:Ke,multiple:et,ref:Gi}),Lm=jr({setTouched:vd,onBlur:ht}),Dm=Bn({fieldType:Xe,maskedValue:sd,multiple:et,value:Ll}),Nm=Kn(Xe);return{fieldState:Nl,fieldApi:gd,render:Rm,ref:Gi,userProps:j(j({},Ur),{},{multiple:et,onChange:Ke,onBlur:ht,id:Ur.id||Rt}),informed:j({name:yd,multiple:et,onChange:Mm,onBlur:Lm,value:Dm,ref:Gi,type:Nm,id:Ur.id||Rt},Ur)}}var pn=function(r){var i=d.forwardRef(function(a,s){var p=Yn(a,s),m=p.fieldState,S=p.fieldApi,w=p.render,E=p.ref,k=p.userProps;return w(d.createElement(r,N({fieldApi:S,fieldState:m,field:a.field,forwardedRef:E,debug:a.debug,type:a.type},k)))});return i.displayName="asField(".concat(Ae(r),")"),i},Pa=Le("informed:Text "),Vo=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=a.maskedValue,m=i.setValue,S=i.setTouched,w=s.onChange,E=s.onBlur,k=s.field,$=s.initialValue,oe=s.forwardedRef,re=s.debug,ce=s.label,ve=s.title,he=s.id,Se=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return Pa("Render",k),yt(function(){re&&oe&&(oe.current.style.background="red",setTimeout(function(){oe.current.style.background="white"},500))}),d.createElement(d.Fragment,null,ce?d.createElement("label",{htmlFor:he}," ",ce," "):null,d.createElement("input",N({},Se,{id:he,name:k,ref:oe,value:!p&&p!==0?"":p,onChange:function(Fe){m(Fe.target.value,Fe),w&&w(Fe)},onBlur:function(Fe){S(!0),E&&E(Fe)}})))},Sn=pn(Vo),Jn=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=a.maskedValue,m=i.setValue,S=i.setTouched,w=s.onChange,E=s.onBlur,k=s.field,$=s.initialValue,oe=s.forwardedRef,re=s.debug,ce=s.label,ve=s.id,he=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return yt(function(){re&&oe&&(oe.current.style.background="red",setTimeout(function(){oe.current.style.background="white"},500))}),d.createElement(d.Fragment,null,ce?d.createElement("label",{htmlFor:ve}," ",ce," "):null,d.createElement("textarea",N({},he,{id:ve,name:k,ref:oe,value:p||"",onChange:function(me){m(me.target.value,me),w&&w(me)},onBlur:function(me){S(!0),E&&E(me)}})))},mi=pn(Jn),Ki=Le("informed:Select "),Un=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=a.value,m=i.setTouched,S=s.onChange,w=s.onBlur,E=s.field,k=s.initialValue,$=s.options,oe=s.children,re=s.forwardedRef,ce=s.debug,ve=s.multiple,he=s.label,Se=s.id,me=C(s,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),Fe=(0,d.useRef)(),$e=function(ze){var Be=Array.from((re||Fe).current).filter(function(je){return je.selected}).map(function(je){return je.value});i.setValue(ve?Be:Be[0]||""),S&&ze&&S(ze)};return yt(function(){ce&&re&&(re.current.style.background="red",setTimeout(function(){re.current.style.background="white"},500))}),Ki("Render",E,p),d.createElement(d.Fragment,null,he?d.createElement("label",{htmlFor:Se}," ",he," "):null,d.createElement("select",N({},me,{id:Se,multiple:ve,name:E,ref:re||Fe,value:p||(ve?[]:""),onChange:$e,onBlur:function(ze){m(!0),w&&w(ze)}}),$?$.map(function(Ue){return d.createElement("option",{key:Ue.value,value:Ue.value,disabled:Ue.disabled},Ue.label)}):oe))},xi=pn(Un),Ia=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=a.value,m=i.setValue,S=i.setTouched,w=s.onChange,E=s.onBlur,k=s.field,$=s.initialValue,oe=s.debug,re=s.forwardedRef,ce=s.id,ve=s.label,he=C(s,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return d.createElement(d.Fragment,null,ve?d.createElement("label",{htmlFor:ce}," ",ve," "):null,d.createElement("input",N({},he,{id:ce,name:k,ref:re,checked:!!p,onChange:function(me){m(me.target.checked),w&&w(me)},onBlur:function(me){S(!0),E&&E(me)},type:"checkbox"})))},Pn=pn(Ia),An=function(r){return d.forwardRef(function(i,a){return d.createElement(Nt.Consumer,null,function(s){var p=s.radioGroupApi,m=s.radioGroupState;return d.createElement(r,N({radioGroupApi:p,radioGroupState:m,ref:a},i))})})},bi=function(r){var i=r.radioGroupApi,a=r.radioGroupState,s=C(r,["radioGroupApi","radioGroupState"]),p=a.value,m=i.setValue,S=i.setTouched,w=i.onChange,E=i.onBlur,k=s.value,$=s.onChange,oe=s.onBlur,re=s.field,ce=s.initialValue,ve=s.forwardedRef,he=C(s,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return d.createElement("input",N({},he,{name:re,ref:ve,value:k,checked:p===k,onChange:function(me){!me.target.checked||(m(k),$&&$(me),w&&w(me))},onBlur:function(me){S(!0),oe&&oe(me),E&&E(me)},type:"radio"}))},yr=An(bi),Et=function(t){_(i,t);var r=q(i);function i(){return b(this,i),r.apply(this,arguments)}return g(i,[{key:"render",value:function(){var s=this.props,p=s.options,m=s.children;return d.createElement(Nt.Provider,{value:this.groupContext},p?p.map(function(S){return d.createElement("label",{key:S.value},S.label," ",d.createElement(yr,{value:S.value}))}):m)}},{key:"groupContext",get:function(){return{radioGroupApi:j(j({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),i}(d.Component),ei=pn(Et);function wi(){return(0,d.useContext)(St)}var En=function(){var r=wi(),i=r.add;return d.createElement("button",{onClick:function(){i()},type:"button"},"Add")};function qt(){return(0,d.useContext)(Lt)}var jn=function(){var r=qt(),i=r.remove;return d.createElement("button",{onClick:function(){i()},type:"button"},"Remove")},Xn=Le("informed:useArrayField "),ho=function(r){var i=r.field,a=r.initialValue,s=r.validate,p=r.arrayFieldApiRef,m=C(r,["field","initialValue","validate","arrayFieldApiRef"]),S=Re(),w=(0,d.useState)(new Map),E=Q(w,1),k=E[0],$=(0,d.useContext)(It),oe=S.getFullField(i),re=$.getInitialValue(i)||a||[],ce=S.getSavedValue(oe)&&S.getSavedValue(oe).value,ve=be(ce||re),he=Q(ve,3),Se=he[0],me=he[1],Fe=he[2],$e=Se?Se.map(function(){return ie()}):[],Ue=be($e),ze=Q(Ue,3),Be=ze[0],je=ze[1],We=ze[2],Xe=(0,d.useMemo)(function(){return function(Xt,Rt){var Bt=We()==null?0:We().length;return s?s(Xt,Bt,Rt):void 0}}),et=Yn(j({field:i,validate:s?Xe:void 0,shadow:!0},m)),Ke=et.fieldApi;yt(function(){var Xt=function(Bt){Bt!==oe&&(Xn("".concat(oe," changed")),RegExp("".concat(oe,"\\[[0-9]+\\]")).test(Bt)&&Ke.validate())};return S.emitter.on("value",Xt),function(){S.emitter.removeListener("value",Xt)}},[i]);var ht=function(Rt){Xn("EXPECTING REMOVAL OF","".concat(i,"[").concat(Rt,"] and ").concat(i,"[").concat(Be.length-1,"]")),$.expectRemoval("".concat(i,"[").concat(Rt,"]")),$.expectRemoval("".concat(i,"[").concat(Be.length-1,"]"));var Bt=Be.slice(0,Rt).concat(Be.slice(Rt+1,Be.length));je(Bt);var ur=Fe(),nn=ur.slice(0,Rt).concat(ur.slice(Rt+1,ur.length));me(nn)},Mt=function(Rt,Bt){Xn("Swapping","".concat(i,"[").concat(Rt,"] and ").concat(i,"[").concat(Bt,"]"));var ur=Y(Be);Be[Rt]&&Be[Bt]?(ur[Rt]=Be[Bt],ur[Bt]=Be[Rt]):console.warn("Attempted to swap ".concat(Rt," with ").concat(Bt," but one of them does not exist :(")),je(ur)},Wt=function(){Be.push(ie()),je(Y(Be))},lr=function(Rt){Be.push(ie()),je(Y(Be));var Bt=Y(Fe());Bt[Be.length-1]=Rt,me(Bt)},Lr=function(){var Rt=$.getInitialValue(i)||a||[];me(Rt);var Bt=Rt?Rt.map(function(){return ie()}):[];je(Bt)},Cr=Be.map(function(Xt,Rt){var Bt={remove:function(){return ht(Rt)}},ur={initialValue:Se&&Se[Rt],key:Xt,field:"".concat(i,"[").concat(Rt,"]"),index:Rt};return j(j({arrayFieldItemApi:Bt,arrayFieldItemState:ur},Bt),ur)}),Yr={add:Wt,swap:Mt,addWithInitialValue:lr,reset:Lr};p&&(p.current=Yr);var wr={fields:Cr,field:i},Ur=j(j({},$),{},{register:function(Rt,Bt){k.set(Rt,Bt);for(var ur=arguments.length,nn=new Array(ur>2?ur-2:0),vr=2;vr<ur;vr++)nn[vr-2]=arguments[vr];$.register.apply($,[Rt,Bt].concat(nn))},deregister:function(Rt){k.delete(Rt);for(var Bt=arguments.length,ur=new Array(Bt>1?Bt-1:0),nn=1;nn<Bt;nn++)ur[nn-1]=arguments[nn];$.deregister.apply($,[Rt].concat(ur))},getInitialValue:function(Rt){if(RegExp("".concat(oe,"\\[[0-9]+\\]")).test(Rt)){var Bt=Rt.replace(i,""),ur=dt.get(Fe(),Bt);return Xn("Resetting ".concat(Bt," to ").concat(ur)),ur}return $.getInitialValue(Rt)}}),bn=function(Rt){return d.createElement(It.Provider,{value:Ur},d.createElement(St.Provider,{value:Yr},d.createElement($t.Provider,{value:wr},Rt)))};return{render:bn,add:Wt,swap:Mt,addWithInitialValue:lr,fields:Cr,arrayFieldState:wr,arrayFieldApi:Yr,field:i}},nt=function(r,i){return j(j({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,p){return i.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return i.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return i.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getSavedValue:function(s){return i.getSavedValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})};function Dt(t){var r=Re(),i=(0,d.useMemo)(function(){return nt(t,r)},[t]);return i}function ti(){var t=(0,d.useContext)(At);return t}var se=function(r){var i=r.when,a=r.children,s=ti(),p=i(s);return p?a:null},Ee=function(r){var i=r.relevant,a=r.field,s=C(r,["relevant","field"]),p=Re();if(i){var m=p.getFullField(a),S={path:m,parentPath:m.replace(/(.*)[.[].*/,"$1"),get:function(k,$){return dt.get(k,$)}},w=function(k){var $=k.values;return i($,S)};return d.createElement(se,{when:w},d.createElement(_e,N({field:a},s)))}else return d.createElement(_e,N({field:a},s))},_e=function(r){var i=r.children,a=C(r,["children"]),s=ho(a),p=s.render,m=s.arrayFieldState,S=s.arrayFieldApi,w=s.field;return p(typeof i=="function"?i(j(j({field:w,arrayFieldApi:S,arrayFieldState:m},S),m)):i)},ot=function(r){var i=r.arrayFieldItemState,a=r.arrayFieldItemApi,s=r.children,p=(0,d.useContext)(It),m=Re(),S=(0,d.useState)(0),w=Q(S,2),E=w[0],k=w[1],$=(0,d.useState)(new Map),oe=Q($,1),re=oe[0],ce=i.field,ve=Dt(ce),he=function(){var Be=m.getState(),je=Be.values,We=Be.errors,Xe=Be.touched,et={values:dt.get(je,ce),errors:dt.get(We,ce),touched:dt.get(Xe,ce)};return et};(0,d.useEffect)(function(){var ze=function(je){var We=je.slice(0,je.lastIndexOf("[")!=-1?je.lastIndexOf("]")+1:je.length);We===ce&&k(Math.random())};return m.emitter.on("value",ze),function(){m.emitter.removeListener("value",ze)}},[ce]);var Se=function(){re.forEach(function(Be){Be.fieldApi.reset()})},me=he(),Fe=j(j({},p),{},{register:function(Be,je,We){re.set(Be,je),p.register(Be,je,We)},deregister:function(Be){re.delete(Be);for(var je=arguments.length,We=new Array(je>1?je-1:0),Xe=1;Xe<je;Xe++)We[Xe-1]=arguments[Xe];p.deregister.apply(p,[Be].concat(We))}}),$e=j(j(j({},a),ve),{},{reset:Se}),Ue=j(j({},i),me);return typeof s=="function"?d.createElement(It.Provider,{value:Fe},d.createElement(Lt.Provider,{value:$e},d.createElement(pe.Provider,{value:Ue},s(j(j({arrayFieldItemApi:$e,arrayFieldItemState:Ue},$e),Ue))))):d.createElement(It.Provider,{value:Fe},d.createElement(Lt.Provider,{value:$e},d.createElement(pe.Provider,{value:Ue},s)))};Ee.Items=function(t){var r=t.children,i=(0,d.useContext)($t),a=i.fields;return a.map(function(s){var p=s.arrayFieldItemState,m=s.arrayFieldItemApi,S=p.key;return d.createElement(ot,{key:S,arrayFieldItemApi:m,arrayFieldItemState:p},r)})};var st=function(r){var i=r.components,a=(0,d.useContext)(It),s=a.fieldMap;return i?i.map(function(p,m){var S=p["ui:control"],w=s[S];return d.createElement(w,{key:"ui-comp-".concat(m)})}):null},Kt=Le("informed:FormFields "),Zt=function t(r){var i=r.schema,a=r.prefix,s=r.onlyValidateSchema,p=(0,d.useContext)(It),m=p.fieldMap,S=(0,d.useMemo)(function(){var w=fe(i,s,a),E=w.map(function(k,$){var oe=k.field,re=k.props,ce=k.type,ve=k.properties,he=k.items,Se=k.componentType,me=k.uiBefore,Fe=k.uiAfter,$e=k.allOf,Ue=m[Se];return Kt("Rendering Field",oe,k),!Ue&&ce==="object"&&ve?d.createElement(t,{schema:k,prefix:oe,key:"ScheamField-".concat($)}):!Ue&&ce==="array"&&he?d.createElement(Or,N({key:"ScheamField-".concat($),field:oe,items:he,uiBefore:me,uiAfter:Fe},re)):Ue&&Se==="array"&&he&&ce==="array"?d.createElement(Ue,N({key:"ScheamField-".concat($),field:oe,items:he,uiBefore:me,uiAfter:Fe},re)):Se==="conditionals"?$e.map(function(ze){var Be=ze.then,je=ze.if.properties,We=function(et){var Ke=et.values;return Object.keys(je).every(function(ht){var Mt=je[ht];return Ke[ht]===Mt.const})};return d.createElement(se,{key:"ScheamField-".concat($),when:We},d.createElement(t,{schema:Be}))}):Ue?d.createElement(Ue,N({key:"ScheamField-".concat($),field:oe},re)):null});return E},[i,a]);return S},Or=function(r){var i=r.field,a=r.items,s=r.uiBefore,p=r.uiAfter,m=C(r,["field","items","uiBefore","uiAfter"]);return d.createElement(Ee,N({field:i},m),d.createElement(st,{components:s}),d.createElement(Ee.Items,null,function(S){var w=S.field;return d.createElement(d.Fragment,null,d.createElement(st,{components:a["ui:before"]}),d.createElement(Zt,{schema:a,prefix:w}),d.createElement(st,{components:a["ui:after"]}))}),d.createElement(st,{components:p}))},Tr={select:xi,input:Sn,textarea:mi,checkbox:Pn,radio:ei,add:En,remove:jn,array:Or},er=Le("informed:Controller "),Ul=function(r,i){var a=Object.keys(i).find(function(p){return r.includes(p)});if(!!a){var s=r.slice(0,a.length);return s===a}},qr=function(){},ms=function(){function t(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};b(this,t),this.options=i,this.subscriptions=new Map;var a=i.ajv,s=i.schema,p=i.fieldMap;this.ajv=a?new a({allErrors:!0}):null,this.ajvValidate=a?this.ajv.compile(s):null,this.fieldMap=p||Tr,this.fieldsById=new Map,this.fieldsByName={get:function(S){var w;return r.fieldsById.forEach(function(E){E&&E.field===S&&(w=E)}),w}},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:qr,setTouched:qr,setError:qr,reset:qr,validate:qr,getValue:qr,getTouched:qr,getError:qr,getFieldState:qr,checkRelevant:qr,getPristine:qr,getDirty:qr}},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(S,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(S);k.shadow||dt.set(r.state.values,k.field,k.fieldApi.getValue()),k.fieldApi.relevant(r.state.values)||dt.delete(r.state.values,k.field),r.fieldsById.forEach(function($){var oe=$.fieldApi.checkRelevant();(!$.fieldApi.multistepRelevant(r.state.values)||!oe&&!$.keepState)&&(dt.delete(r.state.values,$.field),dt.delete(r.state.touched,$.field),dt.delete(r.state.errors,$.field))}),E&&(r.emit("change"),r.emit("field",k.field),r.emit("value",k.field,w))},setTouched:function(S,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(S);!k.shadow&&k.fieldApi.getIsRelevant()&&dt.set(r.state.touched,k.field,k.fieldApi.getTouched()),k.shadow&&k.fieldApi.getError()!=null&&k.fieldApi.relevant(r.state.values)&&dt.set(r.state.touched,k.field,k.fieldApi.getTouched()),E&&(r.emit("change"),r.emit("field",k.field))},setError:function(S,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(S);!k.shadow&&k.fieldApi.getIsRelevant()&&dt.set(r.state.errors,k.field,k.fieldApi.getError());var $=dt.get(r.state.errors,k.field);(k.shadow&&k.fieldApi.getError()!=null&&k.fieldApi.relevant(r.state.values)||k.shadow&&k.fieldApi.getError()===void 0&&k.fieldApi.relevant(r.state.values)&&typeof $=="string")&&dt.set(r.state.errors,k.field,k.fieldApi.getError()),E&&(r.emit("change"),r.emit("field",k.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(m){delete r.state.error,r.notify(m)})}return g(t,[{key:"emit",value:function(i){for(var a=arguments.length,s=new Array(a>1?a-1:0),p=1;p<a;p++)s[p-1]=arguments[p];var m=this.subscriptions.get(i);m&&m.forEach(function(S){return S.apply(void 0,s)})}},{key:"on",value:function(i,a){this.subscriptions.get(i)||this.subscriptions.set(i,new Set);var s=this.subscriptions.get(i);s.add(a)}},{key:"removeListener",value:function(i,a){var s=this.subscriptions.get(i);s.delete(a)}},{key:"setOptions",value:function(i){this.options=i}},{key:"setValue",value:function(i,a,s){this.getField(i).fieldApi.setValue(a,null,j({allowEmptyString:this.options.allowEmptyStrings},s))}},{key:"setTouched",value:function(i,a){this.getField(i).fieldApi.setTouched(a)}},{key:"setError",value:function(i,a){this.getField(i).fieldApi.setError(a)}},{key:"setFormError",value:function(i){this.state.error=i,this.emit("change")}},{key:"validating",value:function(){this.state.validating=this.state.validating+1,this.emit("change")}},{key:"validated",value:function(i,a){if(this.state.validating=this.state.validating-1,this.getError(i)||this.setError(i,a),this.state.validating>0){this.emit("change");return}this.state.submitting&&(this.valid()?(er("Submit",this.state),this.emit("submit")):(er("Submit",this.state),this.emit("failure")),this.state.submitting=!1),this.emit("change")}},{key:"setStep",value:function(i){this.state.step=i,this.emit("change")}},{key:"setCurrent",value:function(i){this.state.Current=i,this.emit("change")}},{key:"back",value:function(i){this.state.step=this.state.step-1,this.state.Current=i,this.emit("change")}},{key:"next",value:function(i){this.validate(),this.screenValid()&&(this.state.step=this.state.step+1,this.state.Current=i),this.emit("change")}},{key:"setInitialValue",value:function(i,a){dt.set(this.options.initialValues,i,a)}},{key:"getFormState",value:function(){return er("Returning form state"),j(j({},this.state),{},{pristine:this.pristine(),dirty:this.dirty(),invalid:this.invalid()})}},{key:"getFormApi",value:function(){return this.formApi}},{key:"getDerrivedValue",value:function(i){var a=this.getValues();return dt.get(a,i)}},{key:"getValue",value:function(i){var a=this.getField(i).fieldApi.getValue();return er("Getting value for",i,a),a}},{key:"getTouched",value:function(i){var a=this.getField(i).fieldApi.getTouched();return er("Getting touched for",i,a),a}},{key:"getError",value:function(i){var a=this.getField(i).fieldApi.getError();return er("Getting error for",i,a),a}},{key:"getDirty",value:function(i){var a=this.getField(i).fieldApi.getDirty();return er("Getting dirty for",i,a),a}},{key:"getPristine",value:function(i){var a=this.getField(i).fieldApi.getPristine();return er("Getting pristine for",i,a),a}},{key:"getValues",value:function(){return er("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return er("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return er("Gettings errors"),this.state.errors}},{key:"getOptions",value:function(){return this.options}},{key:"getStep",value:function(){return this.state.step}},{key:"getSavedValue",value:function(i){var a=this.fieldsByName.get(i);return a&&a.shadow?dt.get(this.savedValues,"shadow-".concat(i)):dt.get(this.savedValues,i)}},{key:"removeSavedState",value:function(i){var a=this.fieldsByName.get(i);return a&&a.shadow?dt.delete(this.savedValues,"shadow-".concat(i)):dt.delete(this.savedValues,i)}},{key:"getFullField",value:function(i){return i}},{key:"getInitialValue",value:function(i){return dt.get(this.options.initialValues,i)}},{key:"getField",value:function(i){er("Getting Field",i);var a=this.fieldsByName.get(i);return a||(console.warn("Attempting to get field ".concat(i," but it does not exist")),this.dummyField)}},{key:"notify",value:function(i){var a=this,s=this.getField(i);s&&s.notify&&s.notify.forEach(function(p){var m=".".concat(i),S="".concat(m.replace(/(.*)[.[].*/,"$1"),".").concat(p).slice(1),w=a.getField(S);w&&(er("Notifying",w.field),w.fieldApi.validate(),w.fieldApi.checkRelevant())})}},{key:"validateField",value:function(i){this.getField(i).fieldApi.validate()}},{key:"resetField",value:function(i){this.getField(i).fieldApi.reset()}},{key:"fieldExists",value:function(i){return this.fieldsByName.get(i)!=null}},{key:"valid",value:function(){var i=this.getErrors();return!!(dt.empty(i)&&!this.state.error)}},{key:"screenValid",value:function(){var i=Object.entries(this.onScreen).some(function(a){var s=Q(a,2),p=s[1];return p.fieldApi.getError()});return!i}},{key:"invalid",value:function(){var i=this.getErrors();return!!(!dt.empty(i)||this.state.error)}},{key:"pristine",value:function(){var i=!0;return this.fieldsById.forEach(function(a){a.fieldApi.getPristine()||(i=!1)}),i}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){er("Resetting"),this.fieldsById.forEach(function(i){i.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(i){er("Setting values"),this.fieldsById.forEach(function(a){var s=dt.get(i,a.field);s!==void 0&&a.fieldApi.setValue(s,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var i=this;er("Validating all fields");var a=this.getValues();if(this.options.validationSchema){var s=Ie(this.options.validationSchema,a);this.fieldsById.forEach(function(w){if(dt.has(s,w.field)){var E=dt.get(s,w.field);i.setError(w.field,E)}else i.setError(w.field,void 0)})}if(this.options.schema&&this.options.ajv){var p=P(this.ajvValidate,a);this.fieldsById.forEach(function(w){if(dt.has(p,w.field)){var E=dt.get(p,w.field);i.setError(w.field,E)}else i.setError(w.field,void 0)})}if(this.fieldsById.forEach(function(w){w.fieldApi.validate(a),w.fieldApi.setTouched(!0,!0)}),this.options.validate){var m=this.options.validate(a);this.setFormError(m)}if(this.options.validateFields){var S=this.options.validateFields(a);this.fieldsById.forEach(function(w){if(dt.has(S,w.field)){var E=dt.get(S,w.field);i.setError(w.field,E)}})}}},{key:"asyncValidate",value:function(){er("Async Validating all fields");var i=this.getValues();this.fieldsById.forEach(function(a){a.fieldApi.asyncValidate(i)})}},{key:"keyDown",value:function(i){if(i.keyCode==13&&this.options.preventEnter)return i.preventDefault(i),!1}},{key:"submitForm",value:function(i){this.state.submits=this.state.submits+1,this.state.submitting=!0,!this.options.dontPreventDefault&&i&&i.preventDefault(i),this.validate(),this.emit("change"),this.asyncValidate(),!(this.state.validating>0)&&(this.valid()?(er("Submit",this.state),this.emit("submit")):(er("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var i=this;this.fieldsById.forEach(function(a){i.emit("field",a.field)})}},{key:"register",value:function(i,a,s){var p=a.field,m=a.state;er("Register ID:",i,"Name:",p,m,"Initial",s);var S=p.slice(0,p.lastIndexOf("[")!=-1?p.lastIndexOf("]")+1:p.length),w;this.fieldsById.forEach(function(E,k){E&&E.field===p&&(w=k)}),w&&(a.keepState||a.inMultistep)?(er("Already Registered",p),this.fieldsById.delete(w)):w&&(!a.keepState||!a.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",p),er("Fields Registered",this.fieldsById.size),this.onScreen[i]=a,this.fieldsById.set(i,a),er("clearing expected removal",S),delete this.expectedRemovals[S],delete this.pulledOut[S],!a.shadow&&(this.updater.setValue(i,a.fieldApi.getValue(),!1),this.updater.setError(i,a.fieldApi.getError(),!1),this.updater.setTouched(i,a.fieldApi.getTouched(),!1),s||this.emit("change"),this.emit("field",p))}},{key:"deregister",value:function(i){var a=this.fieldsById.get(i),s=a.field;er("Deregister",i,s),delete this.onScreen[i];var p=Ul(s,this.expectedRemovals),m=s.slice(0,s.lastIndexOf("[")!=-1?s.lastIndexOf("]")+1:s.length);(a.keepState||a.inMultistep)&&!p&&(er("Saving field ".concat(s,"'s value"),a.fieldApi.getFieldState()),a.shadow?dt.set(this.savedValues,"shadow-".concat(s),a.fieldApi.getFieldState()):dt.set(this.savedValues,s,a.fieldApi.getFieldState())),(p||!a.keepState&&!a.inMultistep||!a.fieldApi.getIsRelevant()&&!a.keepState)&&(er("Removing field",s),this.fieldsById.delete(i),p||(dt.delete(this.state.values,s),dt.delete(this.state.touched,s),dt.delete(this.state.errors,s),a.shadow?dt.delete(this.savedValues,"shadow-".concat(s)):dt.delete(this.savedValues,s)),p&&this.pulledOut[m]&&(er("Pulling out",s,"with magic value",m),dt.pullOut(this.state.values,m),dt.pullOut(this.state.touched,m),dt.pullOut(this.state.errors,m),dt.pullOut(this.savedValues,m),delete this.pulledOut[m])),this.emit("change")}},{key:"expectRemoval",value:function(i){er("Expecting removal of",i),this.expectedRemovals[i]=!0,this.pulledOut[i]=!0}},{key:"update",value:function(i,a,s){er("Update",i,a.field,s,a.fieldState.value);var p=a.fieldApi.getValue(),m=a.fieldApi.getError(),S=a.fieldApi.getTouched(),w=this.fieldsByName.get(s);s&&!w&&(dt.set(this.state.values,s),dt.set(this.state.errors,s),dt.set(this.state.touched,s)),dt.set(this.state.values,a.field,p),dt.set(this.state.errors,a.field,m),dt.set(this.state.touched,a.field,S),this.emit("change")}}]),t}(),Fa=Le("informed:FormProvider "),xs=function(r){var i=r.children,a=r.formApi,s=r.formController,p=r.formState,m=C(r,["children","formApi","formController","formState"]);if(Fa("Render FormProvider"),a)return Fa("Render FormProvider with given values"),d.createElement(It.Provider,{value:s.updater},d.createElement(jt.Provider,{value:a},d.createElement(At.Provider,{value:p},i)));Fa("Render FormProvider with generated values");var S=ws(m);return d.createElement(It.Provider,{value:S.formController.updater},d.createElement(jt.Provider,{value:S.formApi},d.createElement(At.Provider,{value:S.formState},i)))},bs=Le("informed:useForm "),ws=function(r){var i=r.dontPreventDefault,a=r.initialValues,s=r.validate,p=r.validateFields,m=r.allowEmptyStrings,S=r.preventEnter,w=r.getApi,E=r.apiRef,k=r.onChange,$=r.onReset,oe=r.onSubmit,re=r.onValueChange,ce=r.onSubmitFailure,ve=r.validationSchema,he=r.schema,Se=r.ajv,me=r.fieldMap,Fe=r.onlyValidateSchema,$e=C(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);bs("Render useForm");var Ue=(0,d.useMemo)(function(){return{dontPreventDefault:i,initialValues:a,validate:s,validateFields:p,allowEmptyStrings:m,preventEnter:S,validationSchema:ve,schema:he,ajv:Se,fieldMap:me}},[i,a,s,p,m,S,ve,he,Se,me]),ze=(0,d.useState)(function(){return new ms(Ue)}),Be=Q(ze,1),je=Be[0];(0,d.useEffect)(function(){je.setOptions(Ue)},[Ue]),yt(function(){je.mount()},[]);var We=(0,d.useState)(function(){return je.getFormState()}),Xe=Q(We,2),et=Xe[0],Ke=Xe[1];yt(function(){var Lr=function(){return k&&k(je.getFormState())},Cr=function(){return $&&$()},Yr=function(){return oe&&oe(je.getFormState().values)},wr=function(){return re&&re(je.getFormState().values)},Ur=function(){return ce&&ce(je.getFormState().errors)};return je.on("change",Lr),je.on("reset",Cr),je.on("submit",Yr),je.on("value",wr),je.on("failure",Ur),function(){je.removeListener("change",Lr),je.removeListener("reset",Cr),je.removeListener("submit",Yr),je.removeListener("value",wr),je.removeListener("failure",Ur)}},[k,$,oe,re,ce]),(0,d.useState)(function(){var Lr=function(){bs("Setting form state"),Ke(je.getFormState())};je.on("change",Lr),w&&w(je.getFormApi()),E&&(E.current=je.getFormApi())});var ht=(0,d.useState)(function(){return je.getFormApi()}),Mt=Q(ht,1),Wt=Mt[0],lr=function(Cr){return d.createElement(xs,{formApi:Wt,formState:et,formController:je},d.createElement(d.Fragment,null,Cr||d.createElement(Zt,{schema:he,onlyValidateSchema:Fe})))};return{formApi:Wt,formState:et,formController:je,render:lr,userProps:$e}},jl=Le("informed:Form "),Vl=function(r){var i=r.children,a=r.render,s=r.component,p=C(r,["children","render","component"]);jl("Render FORM");var m=ws(p),S=m.formApi,w=m.formController,E=m.formState,k=m.render,$=m.userProps,oe=function(){var ce={formState:E,formApi:S};return s?d.createElement(s,ce,i):a?a(ce):typeof i=="function"?i(ce):i};return k(d.createElement("form",N({},$,{onReset:w.reset,onSubmit:w.submitForm,onKeyDown:w.keyDown}),oe()))},gf=function(r,i){return j(j({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,p){return i.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return i.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return i.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})},yf=function(r,i){var a=i.register,s=i.deregister,p=i.setValue,m=i.setTouched,S=i.setError,w=i.update,E=i.getField,k=i.expectRemoval,$=i.getInitialValue,oe=i.fieldMap,re=i.getSavedValue;return{register:function(ve){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return a.apply(void 0,["".concat(r,".").concat(ve)].concat(Se))},deregister:function(ve){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return s.apply(void 0,["".concat(r,".").concat(ve)].concat(Se))},update:function(ve){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return w.apply(void 0,["".concat(r,".").concat(ve)].concat(Se))},setValue:function(ve){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return p.apply(void 0,["".concat(r,".").concat(ve)].concat(Se))},setTouched:function(ve){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return m.apply(void 0,["".concat(r,".").concat(ve)].concat(Se))},setError:function(ve){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return S.apply(void 0,["".concat(r,".").concat(ve)].concat(Se))},getField:function(ve){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return E.apply(void 0,["".concat(r,".").concat(ve)].concat(Se))},expectRemoval:function(ve){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return k.apply(void 0,["".concat(r,".").concat(ve)].concat(Se))},getInitialValue:function(ve){return $("".concat(r,".").concat(ve))},getSavedValue:function(ve){return re("".concat(r,".").concat(ve))},fieldMap:oe}},mf=function(r){var i=r.scope,a=r.children,s=useContext(It),p=Re(),m=ti(),S=useMemo(function(){return gf(i,p)},[i]),w=useMemo(function(){return yf(i,s)},[i]);return React.createElement(It.Provider,{value:w},React.createElement(jt.Provider,{value:S},React.createElement(At.Provider,{value:m},a)))},Si=function(r){var i=ti(),a={};Object.keys(r).length>0?Object.keys(r).forEach(function(re){a[re]=i[re]}):a=i;var s=a,p=s.pristine,m=s.dirty,S=s.invalid,w=s.values,E=s.errors,k=s.touched,$=s.validating,oe=s.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:p,dirty:m,invalid:S,values:w,errors:E,touched:k,validating:$,submitting:oe},null,2)))},xf=function(r){var i=r.initialStep,a=r.multistepApiRef,s=Re(),p=s.getValues,m=s.validate,S=s.screenValid,w=(0,d.useState)(new Map),E=Q(w,1),k=E[0],$=(0,d.useRef)(0),oe=be({current:i,steps:[],goal:null}),re=Q(oe,3),ce=re[0],ve=re[1],he=re[2],Se=(0,d.useState)(function(){var Ue=function(){var je=he(),We=je.current,Xe=k.get(We);return Xe},ze={getState:function(){return he()},getCurrentStep:Ue,getStep:function(je){return k.get(je)},getNumberOfSteps:function(){return k.size},next:function(){if(m(),S()){var je=Ue(),We=je.getNext,Xe=We(),et=typeof Xe=="function"?Xe(p()):Xe;et&&ve(function(Ke){return j(j({},Ke),{},{current:et})})}},back:function(){var je=Ue(),We=je.getPrevious,Xe=We(),et=typeof Xe=="function"?Xe(p()):Xe;et&&ve(function(Ke){return j(j({},Ke),{},{current:et})})},setCurrent:function(je){if(je){var We=k.get(je).index;We<Ue().index?ve(function(Xe){return j(j({},Xe),{},{current:je,goal:null})}):ve(function(Xe){return j(j({},Xe),{},{goal:je})})}},register:function(je,We,Xe){Xe?($.current=$.current+1,k.set(je,j(j({},We),{},{index:$.current}))):ve(function(et){return j(j({},et),{},{steps:Array.from(k.keys())})})},deregister:function(je){k.delete(je),$.current=$.current-1,ve(function(We){return j(j({},We),{},{steps:Array.from(k.keys())})})}};return a&&(a.current=ze),ze}),me=Q(Se,1),Fe=me[0],$e=function(ze){return d.createElement(K.Provider,{value:Fe},d.createElement(G.Provider,{value:ce},ze))};return j(j(j({},Fe),ce),{},{render:$e})};function bf(){return(0,d.useContext)(G)}function ka(){return(0,d.useContext)(K)}var Wo=function(r){var i=r.step,a=r.next,s=r.previous,p=r.relevant,m=ti(),S=m.values,w=bf(),E=w.current,k=w.goal,$=ka(),oe=$.register,re=$.deregister,ce=$.next,ve=i===E,he=p?p(S):!0,Se=(0,d.useRef)(a),me=(0,d.useRef)(s),Fe=(0,d.useRef)();Se.current=a,me.current=s,Fe.current=p,(0,d.useState)(function(){oe(i,{name:i,getNext:function(){return Se.current},getPrevious:function(){return me.current}},!0)}),(0,d.useEffect)(function(){return oe(i,{name:i,getNext:function(){return Se.current},getPrevious:function(){return me.current}}),function(){re(i)}},[i]),(0,d.useEffect)(function(){k&&ve&&k!==i&&ce()},[k,ve]);var $e=function(ze){return d.createElement(we.Provider,{value:{relevant:function(je){return Fe.current?Fe.current(je):!0},multistep:!0}},ve&&he?ze:null)};return{isCurrent:ve,isRelevant:he,step:i,render:$e}};function wf(t){var r=t.children,i=C(t,["children"]),a=xf(i),s=a.render,p=C(a,["render"]);return s(typeof r=="function"?r(p):r)}wf.Step=function(r){var i=r.children,a=C(r,["children"]),s=Wo(a),p=s.render;return p(i)};var md=function(r){var i=r.field,a=useContext(It),s=a.fieldMap,p=Re(),m=p.getFullField,S=p.getOptions,w=m(i),E=S(),k=E.schema,$=Oe(w),oe=dt.get(k,$);if(!oe)return null;var re=ee(i,oe),ce=re.props,ve=re.componentType,he=s[ve];return React.createElement(he,N({field:i},ce))},xd=function(){var r=Re(),i=r.getOptions,a=i(),s=a.schema;return React.createElement(Zt,{schema:s})},bd=function(r){return React.forwardRef(function(i,a){return React.createElement(jt.Consumer,null,function(s){return React.createElement(r,N({formApi:s,ref:a},i))})})},Wl=function(r){return React.forwardRef(function(i,a){return React.createElement(At.Consumer,null,function(s){return React.createElement(r,N({formState:s,ref:a},i))})})},Hl=function(r,i){return{getValue:function(){return r.getValue(i)},setValue:function(s){return r.setValue(i,s)},getTouched:function(){return r.getTouched(i)},setTouched:function(s){return r.setTouched(i,s)},getError:function(){return r.getError(i)},setError:function(s){return r.setError(i,s)},reset:function(){return r.resetField(i)},validate:function(){return r.validateField(i)},exists:function(){return r.fieldExists(i)},getDirty:function(){return r.getDirty(i)},getPristine:function(){return r.getPristine(i)},getFieldState:function(){return r.getField(i).fieldApi.getFieldState()}}};function zl(t){var r=Re(),i=useMemo(function(){return Hl(r,t)},[t]);return i}function Gl(t){var r=zl(t),i=Re(),a=React.useState(),s=Q(a,2),p=s[1],m=React.useCallback(function(){return p({})},[]);return yt(function(){var S=function(E){E===t&&m()};return i.emitter.on("field",S),function(){i.emitter.removeListener("field",S)}},[]),yt(function(){m()},[]),r.getFieldState()||{}}var Sf=function(r){return function(i){return function(a){var s=Gl(r);return React.createElement(i,N({fieldState:s},a))}}},Ss=function(r){return function(i){return function(a){var s=zl(r);return React.createElement(i,N({fieldApi:s},a))}}},As=function(r){var i=r.value,a=r.forwardedRef,s=r.children,p=C(r,["value","forwardedRef","children"]);return React.createElement("option",N({ref:a,value:i,key:i},p),s)},$l=null,Ho=o(80150),zt=o(25446),Yi=o(25805),Gt=o(76671),Ji=o(78005),bt=o(39713),In=o(23485),Af=Object.defineProperty,Es=Object.defineProperties,Kl=Object.getOwnPropertyDescriptors,ri=Object.getOwnPropertySymbols,Cs=Object.prototype.hasOwnProperty,ni=Object.prototype.propertyIsEnumerable,zo=(t,r,i)=>r in t?Af(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,vo=(t,r)=>{for(var i in r||(r={}))Cs.call(r,i)&&zo(t,i,r[i]);if(ri)for(var i of ri(r))ni.call(r,i)&&zo(t,i,r[i]);return t},Xi=(t,r)=>Es(t,Kl(r));const Yl=In.iv`
|
|
81
|
-
border: none;
|
|
82
|
-
outline: none;
|
|
83
|
-
padding: 8px;
|
|
84
|
-
border-radius: ${({theme:t})=>t.shape.borderRadius};
|
|
85
|
-
background-color: ${({theme:t})=>t.rightPanel.panelControlsBackgroundColor};
|
|
86
|
-
${({theme:t})=>(0,In.QG)({color:t.colors.text.light,fontFamily:t.typography.code.fontFamily,fontSize:t.typography.fontSize})}
|
|
87
|
-
|
|
88
|
-
&::placeholder {
|
|
89
|
-
opacity: 0.6;
|
|
90
|
-
color: ${({theme:t})=>t.colors.text.light};
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&:-webkit-autofill {
|
|
94
|
-
background-color: ${({theme:t})=>t.rightPanel.panelBackgroundColor};
|
|
95
|
-
}
|
|
96
|
-
`,Jl=In.ZP.div`
|
|
97
|
-
display: ${({type:t})=>t==="hidden"?"none":"inline-block"};
|
|
98
|
-
${({fullWidth:t})=>t?"width: 100%;":""}
|
|
99
|
-
`,Ef=In.ZP.div`
|
|
100
|
-
position: relative;
|
|
101
|
-
`,Cf=In.ZP.input`
|
|
102
|
-
${Yl}
|
|
103
|
-
${({inputType:t,inputActionButton:r})=>t==="password"||r?"padding-right: 40px;":""};
|
|
104
|
-
${({fullWidth:t})=>t?"width: 100%;":""}
|
|
105
|
-
`,Os=In.ZP.span`
|
|
106
|
-
position: absolute;
|
|
107
|
-
right: 0;
|
|
108
|
-
line-height: normal;
|
|
109
|
-
|
|
110
|
-
font-size: 0.8em;
|
|
111
|
-
padding: calc(8px / 0.8);
|
|
112
|
-
cursor: pointer;
|
|
113
|
-
text-align: center;
|
|
114
|
-
${({theme:t})=>(0,In.QG)({color:t.rightPanel.textColor})}
|
|
115
|
-
`;function Xl(t,r){const{fullWidth:i,errorMessage:a,type:s}=t,[p,m]=d.useState(s==="password"),S=d.useCallback(()=>{m(!p)},[p]);return d.createElement(Jl,{fullWidth:i,type:s},d.createElement(Ef,null,d.createElement(Cf,Xi(vo({},t),{type:p?"password":"text",inputType:s,ref:r})),t.inputActionButton?d.createElement(Os,{onClick:t.inputActionButton.onClick},t.inputActionButton.label):s==="password"?d.createElement(Os,{onClick:S},p?"show":"hide"):null),a?d.createElement(bt.Xq,null,a):null)}const Go=d.forwardRef(Xl);function hn(t){const r=Yn(vo({fieldType:"text"},t)),{userProps:i,render:a,fieldState:s}=r,p=r.informed;return a(d.createElement(Go,Xi(vo(vo({},i),p),{errorMessage:s.error})))}const $o=pn(({initValue:t,options:r,fieldApi:i,fieldState:a})=>{const s=r.map((E,k)=>({value:E.title||E.value,idx:k,origValue:E.value})),p=s.find(E=>E.origValue===t),[m,S]=d.useState(p==null?void 0:p.value);d.useEffect(()=>{t&&i.setValue(t)},[]);const w=d.useCallback(E=>{i.setValue(s[E.idx].origValue),S(s[E.idx].value)},[s]);return d.createElement(Jl,{fullWidth:!0},d.createElement(Ji.Dropdown,{fullWidth:!0,variant:"dark",value:m,options:s,onChange:w}),a.error?d.createElement(bt.Xq,null,a.error):null)});function Ql(t){const{name:r,value:i,description:a,variableEnum:s,onChange:p,defaultValue:m}=t,S=k=>p(k.target.value),w=k=>p(k.value),E=s?s.map((k,$)=>({value:k,idx:$})):[];return d.createElement(bt.NI,null,d.createElement(bt.lX,null,r,":"),E&&E.length?d.createElement(Ji.Dropdown,{fullWidth:!0,variant:"dark",value:i,options:E,onChange:w}):d.createElement(Go,{fullWidth:!0,value:i,onChange:S,placeholder:m}),a&&d.createElement(Of,null,a))}const Of=Gt.styled.small`
|
|
116
|
-
display: inline-block;
|
|
117
|
-
margin-top: 5px;
|
|
118
|
-
color: #d0d0d0;
|
|
119
|
-
`;var Vr=o(7241),Ko=Object.defineProperty,go=Object.defineProperties,Tf=Object.getOwnPropertyDescriptor,Pf=Object.getOwnPropertyDescriptors,Zl=Object.getOwnPropertySymbols,Yo=Object.prototype.hasOwnProperty,Wr=Object.prototype.propertyIsEnumerable,Ts=(t,r,i)=>r in t?Ko(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Ps=(t,r)=>{for(var i in r||(r={}))Yo.call(r,i)&&Ts(t,i,r[i]);if(Zl)for(var i of Zl(r))Wr.call(r,i)&&Ts(t,i,r[i]);return t},yo=(t,r)=>go(t,Pf(r)),If=(t,r,i,a)=>{for(var s=a>1?void 0:a?Tf(r,i):r,p=t.length-1,m;p>=0;p--)(m=t[p])&&(s=(a?m(r,i,s):m(s))||s);return a&&s&&Ko(r,i,s),s},Ra=(t,r,i)=>(Ts(t,typeof r!="symbol"?r+"":r,i),i);let Is=class extends d.Component{constructor(){super(...arguments);Ra(this,"state",{activeIdx:0,variables:{}}),Ra(this,"handleServerChange",t=>{const r=this.props.operation.servers.find(a=>a.url===t.serverUrl),i=(0,Vr.mj)(r);this.props.onChange({url:t.serverUrl||"",variables:i}),(0,zt.WW)("serverUrl",t.serverUrl||""),this.setState({variables:i})}),Ra(this,"handleVariableChange",(t,r)=>{const i=this.props.operation.servers[this.state.activeIdx],a=r||r===""?r:(0,Vr.mj)(i)[t],s=yo(Ps({},this.state.variables),{[t]:a});this.setState({variables:s}),(0,Vr.UY)(t,a),this.props.onChange(yo(Ps({},i),{variables:s}))})}static getDerivedStateFromProps(t){const r=t.operation,i=(0,zt.YQ)("serverUrl"),a=r.servers.findIndex(s=>s.url===i);return{activeIdx:a<0?0:a}}componentDidMount(){const t=(0,Vr.fz)(this.props.operation.servers,this.state.activeIdx);this.props.onChange(t),this.setState({variables:t.variables})}render(){const{activeIdx:t}=this.state,i=this.props.operation.servers.map((s,p)=>({idx:p,serverUrl:s.url,value:`
|
|
120
|
-
${(0,Vr.nq)((0,Vr.v5)(s.url,this.state.variables),s.variables)}
|
|
121
|
-
- ${s.description||"Default"}
|
|
122
|
-
`})),a=Object.keys(this.state.variables);return d.createElement(Fs,null,d.createElement(bt.lX,{htmlFor:"server"},"Target server: "),d.createElement(bt.NI,null,d.createElement(Ji.Dropdown,{variant:"dark",value:i[t].value,options:i,fullWidth:!0,onChange:this.handleServerChange})),a.length?a.map(s=>{var p;const m=(p=this.props.operation.servers[this.state.activeIdx].variables)==null?void 0:p[s];if(m)return d.createElement(Ql,{key:s,name:s,value:this.state.variables[s],defaultValue:m.default,onChange:S=>this.handleVariableChange(s,S),variableEnum:m.enum,description:m.description})}):null)}};Is=If([Ho.Pi],Is);const Fs=Gt.styled.div`
|
|
123
|
-
margin-top: 20px;
|
|
124
|
-
`,_l=t=>{(0,d.useEffect)(()=>{t()},[])},Sd=t=>{useEffect(()=>()=>{t()},[])},ql=pn(({initValue:t,paramEnum:r,fieldApi:i})=>{const[a,s]=d.useState(t),p=r.map((S,w)=>({idx:w,value:S})),m=S=>{i.setValue(S.value),s(S.value)};return _l(()=>{t&&i.setValue(t)}),d.createElement(Ji.Dropdown,{fullWidth:!0,variant:"dark",value:a,options:p,onChange:m})});var Ai;(function(t){t.ARRAY="array",t.OBJECT="object"})(Ai||(Ai={}));const Ff=t=>`(${t.schema.type})`+(t.example?` ${t.example}`:"");function Jo(t,r,i){t[r]||(t[r]=[]),t[r].push(i)}function ii(t){const r={};return t.forEach(i=>{Jo(r,i.in,i)}),r}const Ma=["path","query","cookie","header"];function ks(t){return r=>{if(t.required&&!r)return"Field is required";if(t.required&&t.schema.type===Ai.ARRAY&&Array.isArray(r)){if(r.length>(t.schema.rawSchema&&t.schema.rawSchema.maxItems||1/0))return`Too many items selected, maximum ${t.schema.rawSchema.maxItems}`;if(r.length<(t.schema.rawSchema&&t.schema.rawSchema.minItems||0)){const i=t.schema.rawSchema.minItems;return`You should select at least ${i===1?`${i} item`:`${i} items`}`}}}}function eu(t){if(t.schema.type===Ai.ARRAY){const r=t.schema.default||t.schema.example;if(!r&&t.schema.rawSchema.items){if(t.schema.rawSchema.items.default)return[t.schema.rawSchema.items.default];if(t.schema.rawSchema.items.example)return[t.schema.rawSchema.items.example]}return r||[]}else return t.schema.default||t.schema.example}function Qn({values:t,operation:r}){function i(S,w){const E=d.useMemo(()=>ks(w),[w]),k=Array.isArray(w.schema.enum)&&w.schema.enum.length?w.schema.enum:void 0,$=eu(w),oe=S.split(".").map(re=>(0,zt.dw)(re));return k?d.createElement(bt.NI,null,d.createElement(ql,{initValue:$,paramEnum:k,field:S})):d.createElement(hn,{fullWidth:!0,"data-cy":"parameter-input",id:S,field:S,placeholder:Ff(w),validate:E,initialValue:$||(0,zt.U2)(t,oe),validateOnBlur:!0,validateOnChange:!0})}function a({oneOfType:S,type:w,items:E}){return S||w===Ai.ARRAY&&(E==null?void 0:E.type)===Ai.OBJECT&&"Array of objects"}function s(S,w,E){var k;const $=E?(0,zt.s1)(E,S.name):S.name,oe=a(S.schema);if(oe&&console.warn(`Unsupported parameter definition: "${oe}"`),S.schema.type===Ai.OBJECT)return(k=S.schema.fields)==null?void 0:k.map(ve=>s(ve,w,$));const re=E?[w,E]:[S.in],ce=(0,zt.s1)(...re,(0,zt.A8)(S.name));return d.createElement(bt.NI,{key:ce},d.createElement(bt.lX,{required:S.required},$,":"),oe?d.createElement(bt.GE,null,"Unsupported field schema definition"):i(ce,S))}function p(S,w){return!w||!w.length?null:d.createElement(d.Fragment,{key:S},d.createElement(bt.NI,null,d.createElement(bt.iG,null," # ",S," parameters "),d.createElement("span",null,"\xA0")),w.map(E=>s(E,S)))}const m=ii(r.parameters||[]);return d.createElement(bt.iA,null,Ma.map(S=>p(S,m[S])))}var vn=o(78722),La=o(55346),Qi=o(59219);function tu(t,r,i){const a=r.path||{},s=r.query||{},p=Object.keys(s);let m=(0,Vr.v5)(t,a);const S=w=>i.find(E=>E.name===w&&E.in==="query");return p.length&&(m+="?"+p.map(w=>{if(!s[w])return"";const E=S(w);return E?(0,Gt.serializeParameterValue)(E,s[w]):`${w}=${encodeURIComponent(s[w])}`}).filter(Boolean).join("&")),m}const kf=({loading:t,operation:r,hasResponse:i,execute:a,params:s={}})=>d.createElement(Rs,null,d.createElement(La._,null,d.createElement(Qi.FH,{type:r.httpVerb},r.httpVerb),d.createElement(La.y,{wrap:"true"},tu(r.path,s,r.parameters))),d.createElement(ru,{"data-cy":"send-button",color:"primary",blinking:t,onClick:()=>!t&&a()},t?"Sending...":i?"Resend":"Send")),ru=(0,Gt.styled)(Qi.zx)`
|
|
125
|
-
width: ${({theme:t})=>t.components.tryItSendButton.fullWidth?"100%":"auto"};
|
|
126
|
-
`,Rs=(0,Gt.styled)(vn.k1)`
|
|
127
|
-
${({theme:t})=>t.components.tryItSendButton.fullWidth?`
|
|
128
|
-
flex-direction: column;
|
|
129
|
-
align-items: flex-start;`:""};
|
|
130
|
-
`,mo=d.memo(kf);var gn=o(43398);function nu({response:t}){return d.createElement(d.Fragment,null,d.createElement(Ds,null," Body: "),iu(t))}function iu(t){return t.body?d.createElement(Gt.JsonViewer,{data:t.body}):t.fileInfo?d.createElement(Gt.SourceCodeWithFile,{fileInfo:t.fileInfo}):t.data!==null?t.data?d.createElement(Gt.SourceCodeWithText,{lang:(0,Gt.langFromMime)(t.headers["Content-Type"]||"text/plain"),source:t.data}):d.createElement(Ns,null,d.createElement("i",null,"(no content)")):null}const Rf=Gt.styled.div`
|
|
131
|
-
margin-bottom: 10px;
|
|
132
|
-
`,Ms=Gt.styled.div`
|
|
133
|
-
display: inline-block;
|
|
134
|
-
margin-right: 20px;
|
|
135
|
-
padding: 2px 0;
|
|
136
|
-
text-align: center;
|
|
137
|
-
color: ${({theme:t})=>t.colors.text.light};
|
|
138
|
-
`,Mf=(0,Gt.styled)(Ms)`
|
|
139
|
-
color: ${({theme:t,code:r})=>r>=200&&r<300?t.colors.responses.success.tabTextColor:r>=300&&r<400?t.colors.responses.redirect.tabTextColor:r>400?t.colors.responses.error.tabTextColor:t.colors.responses.info.tabTextColor};
|
|
140
|
-
`,ou=Gt.styled.strong`
|
|
141
|
-
text-transform: capitalize;
|
|
142
|
-
display: inline-block;
|
|
143
|
-
padding-right: 5px;
|
|
144
|
-
`,Ls=Gt.styled.header`
|
|
145
|
-
font-weight: bold;
|
|
146
|
-
margin-bottom: 10px;
|
|
147
|
-
`,Xo=Gt.styled.code`
|
|
148
|
-
border-left: 3px solid #ff4040;
|
|
149
|
-
padding-left: 5px;
|
|
150
|
-
`,Ds=Gt.styled.div`
|
|
151
|
-
margin-bottom: 10px;
|
|
152
|
-
|
|
153
|
-
&:not(:first-child) {
|
|
154
|
-
margin-top: 10px;
|
|
155
|
-
}
|
|
156
|
-
`,Ns=(0,Gt.styled)(gn.nr)`
|
|
157
|
-
border-top-left-radius: 0;
|
|
158
|
-
border-top-right-radius: 0;
|
|
159
|
-
`;class Bs extends d.PureComponent{render(){const{error:r,response:i,time:a}=this.props,s=i||r&&r.response,p=s&&s.data&&s.data.length||0;let m;if(p>1e6?m=(p/1e6).toFixed(2)+" MB":p>1e3?m=(p/1e3).toFixed(2)+" KB":m=p+" B",r&&!r.response||!s)return d.createElement(d.Fragment,null,d.createElement(Ls,null," Could not get any response "),d.createElement(Xo,null,r&&r.message||"Unknown error"),d.createElement("br",null),d.createElement(Ls,null," Why this might have happened:"),d.createElement("div",null," - CORS is misconfigured on the server"),d.createElement("div",null," - ","The server couldn't sent a response"),d.createElement("div",null," - No internet access"),d.createElement("div",null," - Documentation issue - contact API owner"),d.createElement("div",null," - Misconfigured security definition"));if(!s)return d.createElement(d.Fragment,null,"Something went wrong");const S=Object.keys(s.headers);return d.createElement(d.Fragment,null,d.createElement(Rf,null,d.createElement(Mf,{code:s.status},d.createElement("span",null," Status: "),s.status," ",s.statusText),d.createElement(Ms,null,d.createElement("span",null," Time: "),a,"ms"),d.createElement(Ms,null,d.createElement("span",null," Size: "),m)),d.createElement("div",null,d.createElement(Ds,null," Headers: "),d.createElement(Ns,null,S.map(w=>d.createElement("div",{key:w},d.createElement(ou,null,w,":"),d.createElement("code",null," ",s.headers[w])))),d.createElement(nu,{response:s})))}}var Da=o(9996),Us=o.n(Da),Na=o(29656),en=o(4631);function Qo(t,r){r===void 0&&(r=!1);var i=t.length,a=0,s="",p=0,m=16,S=0,w=0,E=0,k=0,$=0;function oe(Fe,$e){for(var Ue=0,ze=0;Ue<Fe||!$e;){var Be=t.charCodeAt(a);if(Be>=48&&Be<=57)ze=ze*16+Be-48;else if(Be>=65&&Be<=70)ze=ze*16+Be-65+10;else if(Be>=97&&Be<=102)ze=ze*16+Be-97+10;else break;a++,Ue++}return Ue<Fe&&(ze=-1),ze}function re(Fe){a=Fe,s="",p=0,m=16,$=0}function ce(){var Fe=a;if(t.charCodeAt(a)===48)a++;else for(a++;a<t.length&&_i(t.charCodeAt(a));)a++;if(a<t.length&&t.charCodeAt(a)===46)if(a++,a<t.length&&_i(t.charCodeAt(a)))for(a++;a<t.length&&_i(t.charCodeAt(a));)a++;else return $=3,t.substring(Fe,a);var $e=a;if(a<t.length&&(t.charCodeAt(a)===69||t.charCodeAt(a)===101))if(a++,(a<t.length&&t.charCodeAt(a)===43||t.charCodeAt(a)===45)&&a++,a<t.length&&_i(t.charCodeAt(a))){for(a++;a<t.length&&_i(t.charCodeAt(a));)a++;$e=a}else $=3;return t.substring(Fe,$e)}function ve(){for(var Fe="",$e=a;;){if(a>=i){Fe+=t.substring($e,a),$=2;break}var Ue=t.charCodeAt(a);if(Ue===34){Fe+=t.substring($e,a),a++;break}if(Ue===92){if(Fe+=t.substring($e,a),a++,a>=i){$=2;break}var ze=t.charCodeAt(a++);switch(ze){case 34:Fe+='"';break;case 92:Fe+="\\";break;case 47:Fe+="/";break;case 98:Fe+="\b";break;case 102:Fe+="\f";break;case 110:Fe+=`
|
|
160
|
-
`;break;case 114:Fe+="\r";break;case 116:Fe+=" ";break;case 117:var Be=oe(4,!0);Be>=0?Fe+=String.fromCharCode(Be):$=4;break;default:$=5}$e=a;continue}if(Ue>=0&&Ue<=31)if(Zi(Ue)){Fe+=t.substring($e,a),$=2;break}else $=6;a++}return Fe}function he(){if(s="",$=0,p=a,w=S,k=E,a>=i)return p=i,m=17;var Fe=t.charCodeAt(a);if(Zo(Fe)){do a++,s+=String.fromCharCode(Fe),Fe=t.charCodeAt(a);while(Zo(Fe));return m=15}if(Zi(Fe))return a++,s+=String.fromCharCode(Fe),Fe===13&&t.charCodeAt(a)===10&&(a++,s+=`
|
|
161
|
-
`),S++,E=a,m=14;switch(Fe){case 123:return a++,m=1;case 125:return a++,m=2;case 91:return a++,m=3;case 93:return a++,m=4;case 58:return a++,m=6;case 44:return a++,m=5;case 34:return a++,s=ve(),m=10;case 47:var $e=a-1;if(t.charCodeAt(a+1)===47){for(a+=2;a<i&&!Zi(t.charCodeAt(a));)a++;return s=t.substring($e,a),m=12}if(t.charCodeAt(a+1)===42){a+=2;for(var Ue=i-1,ze=!1;a<Ue;){var Be=t.charCodeAt(a);if(Be===42&&t.charCodeAt(a+1)===47){a+=2,ze=!0;break}a++,Zi(Be)&&(Be===13&&t.charCodeAt(a)===10&&a++,S++,E=a)}return ze||(a++,$=1),s=t.substring($e,a),m=13}return s+=String.fromCharCode(Fe),a++,m=16;case 45:if(s+=String.fromCharCode(Fe),a++,a===i||!_i(t.charCodeAt(a)))return m=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=ce(),m=11;default:for(;a<i&&Se(Fe);)a++,Fe=t.charCodeAt(a);if(p!==a){switch(s=t.substring(p,a),s){case"true":return m=8;case"false":return m=9;case"null":return m=7}return m=16}return s+=String.fromCharCode(Fe),a++,m=16}}function Se(Fe){if(Zo(Fe)||Zi(Fe))return!1;switch(Fe){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function me(){var Fe;do Fe=he();while(Fe>=12&&Fe<=15);return Fe}return{setPosition:re,getPosition:function(){return a},scan:r?me:he,getToken:function(){return m},getTokenValue:function(){return s},getTokenOffset:function(){return p},getTokenLength:function(){return a-p},getTokenStartLine:function(){return w},getTokenStartCharacter:function(){return p-k},getTokenError:function(){return $}}}function Zo(t){return t===32||t===9||t===11||t===12||t===160||t===5760||t>=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function Zi(t){return t===10||t===13||t===8232||t===8233}function _i(t){return t>=48&&t<=57}function au(t,r,i){var a,s,p,m,S;if(r){for(m=r.offset,S=m+r.length,p=m;p>0&&!su(t,p-1);)p--;for(var w=S;w<t.length&&!su(t,w);)w++;s=t.substring(p,w),a=Lf(s,i)}else s=t,a=0,p=0,m=0,S=t.length;var E=Df(i,t),k=!1,$=0,oe;i.insertSpaces?oe=_o(" ",i.tabSize||4):oe=" ";var re=Qo(s,!1),ce=!1;function ve(){return E+_o(oe,a+$)}function he(){var et=re.scan();for(k=!1;et===15||et===14;)k=k||et===14,et=re.scan();return ce=et===16||re.getTokenError()!==0,et}var Se=[];function me(et,Ke,ht){!ce&&Ke<S&&ht>m&&t.substring(Ke,ht)!==et&&Se.push({offset:Ke,length:ht-Ke,content:et})}var Fe=he();if(Fe!==17){var $e=re.getTokenOffset()+p,Ue=_o(oe,a);me(Ue,p,$e)}for(;Fe!==17;){for(var ze=re.getTokenOffset()+re.getTokenLength()+p,Be=he(),je="";!k&&(Be===12||Be===13);){var We=re.getTokenOffset()+p;me(" ",ze,We),ze=re.getTokenOffset()+re.getTokenLength()+p,je=Be===12?ve():"",Be=he()}if(Be===2)Fe!==1&&($--,je=ve());else if(Be===4)Fe!==3&&($--,je=ve());else{switch(Fe){case 3:case 1:$++,je=ve();break;case 5:case 12:je=ve();break;case 13:k?je=ve():je=" ";break;case 6:je=" ";break;case 10:if(Be===6){je="";break}case 7:case 8:case 9:case 11:case 2:case 4:Be===12||Be===13?je=" ":Be!==5&&Be!==17&&(ce=!0);break;case 16:ce=!0;break}k&&(Be===12||Be===13)&&(je=ve())}var Xe=re.getTokenOffset()+p;me(je,ze,Xe),Fe=Be}return Se}function _o(t,r){for(var i="",a=0;a<r;a++)i+=t;return i}function Lf(t,r){for(var i=0,a=0,s=r.tabSize||4;i<t.length;){var p=t.charAt(i);if(p===" ")a++;else if(p===" ")a+=s;else break;i++}return Math.floor(a/s)}function Df(t,r){for(var i=0;i<r.length;i++){var a=r.charAt(i);if(a==="\r")return i+1<r.length&&r.charAt(i+1)===`
|
|
162
|
-
`?`\r
|
|
163
|
-
`:"\r";if(a===`
|
|
164
|
-
`)return`
|
|
165
|
-
`}return t&&t.eol||`
|
|
166
|
-
`}function su(t,r){return`\r
|
|
167
|
-
`.indexOf(t.charAt(r))!==-1}var Vn;(function(t){t.DEFAULT={allowTrailingComma:!1}})(Vn||(Vn={}));function xo(t,r){var i=[],a=new Object,s=void 0,p={value:{},offset:0,length:0,type:"object",parent:void 0},m=!1;function S(w,E,k,$){p.value=w,p.offset=E,p.length=k,p.type=$,p.colonOffset=void 0,s=p}try{Kr(t,{onObjectBegin:function(w,E){if(r<=w)throw a;s=void 0,m=r>w,i.push("")},onObjectProperty:function(w,E,k){if(r<E||(S(w,E,k,"property"),i[i.length-1]=w,r<=E+k))throw a},onObjectEnd:function(w,E){if(r<=w)throw a;s=void 0,i.pop()},onArrayBegin:function(w,E){if(r<=w)throw a;s=void 0,i.push(0)},onArrayEnd:function(w,E){if(r<=w)throw a;s=void 0,i.pop()},onLiteralValue:function(w,E,k){if(r<E||(S(w,E,k,oi(w)),r<=E+k))throw a},onSeparator:function(w,E,k){if(r<=E)throw a;if(w===":"&&s&&s.type==="property")s.colonOffset=E,m=!1,s=void 0;else if(w===","){var $=i[i.length-1];typeof $=="number"?i[i.length-1]=$+1:(m=!0,i[i.length-1]=""),s=void 0}}})}catch(w){if(w!==a)throw w}return{path:i,previousNode:s,isAtPropertyKey:m,matches:function(w){for(var E=0,k=0;E<w.length&&k<i.length;k++)if(w[E]===i[k]||w[E]==="*")E++;else if(w[E]!=="**")return!1;return E===w.length}}}function bo(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=Vn.DEFAULT);var a=null,s=[],p=[];function m(w){Array.isArray(s)?s.push(w):a!==null&&(s[a]=w)}var S={onObjectBegin:function(){var w={};m(w),p.push(s),s=w,a=null},onObjectProperty:function(w){a=w},onObjectEnd:function(){s=p.pop()},onArrayBegin:function(){var w=[];m(w),p.push(s),s=w,a=null},onArrayEnd:function(){s=p.pop()},onLiteralValue:m,onError:function(w,E,k){r.push({error:w,offset:E,length:k})}};return Kr(t,S,i),s[0]}function js(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=Vn.DEFAULT);var a={type:"array",offset:-1,length:-1,children:[],parent:void 0};function s(w){a.type==="property"&&(a.length=w-a.offset,a=a.parent)}function p(w){return a.children.push(w),w}var m={onObjectBegin:function(w){a=p({type:"object",offset:w,length:-1,parent:a,children:[]})},onObjectProperty:function(w,E,k){a=p({type:"property",offset:E,length:-1,parent:a,children:[]}),a.children.push({type:"string",value:w,offset:E,length:k,parent:a})},onObjectEnd:function(w,E){s(w+E),a.length=w+E-a.offset,a=a.parent,s(w+E)},onArrayBegin:function(w,E){a=p({type:"array",offset:w,length:-1,parent:a,children:[]})},onArrayEnd:function(w,E){a.length=w+E-a.offset,a=a.parent,s(w+E)},onLiteralValue:function(w,E,k){p({type:oi(w),offset:E,length:k,parent:a,value:w}),s(E+k)},onSeparator:function(w,E,k){a.type==="property"&&(w===":"?a.colonOffset=E:w===","&&s(E))},onError:function(w,E,k){r.push({error:w,offset:E,length:k})}};Kr(t,m,i);var S=a.children[0];return S&&delete S.parent,S}function Vs(t,r){if(!!t){for(var i=t,a=0,s=r;a<s.length;a++){var p=s[a];if(typeof p=="string"){if(i.type!=="object"||!Array.isArray(i.children))return;for(var m=!1,S=0,w=i.children;S<w.length;S++){var E=w[S];if(Array.isArray(E.children)&&E.children[0].value===p){i=E.children[1],m=!0;break}}if(!m)return}else{var k=p;if(i.type!=="array"||k<0||!Array.isArray(i.children)||k>=i.children.length)return;i=i.children[k]}}return i}}function Ws(t){if(!t.parent||!t.parent.children)return[];var r=Ws(t.parent);if(t.parent.type==="property"){var i=t.parent.children[0].value;r.push(i)}else if(t.parent.type==="array"){var a=t.parent.children.indexOf(t);a!==-1&&r.push(a)}return r}function qo(t){switch(t.type){case"array":return t.children.map(qo);case"object":for(var r=Object.create(null),i=0,a=t.children;i<a.length;i++){var s=a[i],p=s.children[1];p&&(r[s.children[0].value]=qo(p))}return r;case"null":case"string":case"number":case"boolean":return t.value;default:return}}function qi(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}function Ei(t,r,i){if(i===void 0&&(i=!1),qi(t,r,i)){var a=t.children;if(Array.isArray(a))for(var s=0;s<a.length&&a[s].offset<=r;s++){var p=Ei(a[s],r,i);if(p)return p}return t}}function Kr(t,r,i){i===void 0&&(i=Vn.DEFAULT);var a=Qo(t,!1);function s(We){return We?function(){return We(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}function p(We){return We?function(Xe){return We(Xe,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}var m=s(r.onObjectBegin),S=p(r.onObjectProperty),w=s(r.onObjectEnd),E=s(r.onArrayBegin),k=s(r.onArrayEnd),$=p(r.onLiteralValue),oe=p(r.onSeparator),re=s(r.onComment),ce=p(r.onError),ve=i&&i.disallowComments,he=i&&i.allowTrailingComma;function Se(){for(;;){var We=a.scan();switch(a.getTokenError()){case 4:me(14);break;case 5:me(15);break;case 3:me(13);break;case 1:ve||me(11);break;case 2:me(12);break;case 6:me(16);break}switch(We){case 12:case 13:ve?me(10):re();break;case 16:me(1);break;case 15:case 14:break;default:return We}}}function me(We,Xe,et){if(Xe===void 0&&(Xe=[]),et===void 0&&(et=[]),ce(We),Xe.length+et.length>0)for(var Ke=a.getToken();Ke!==17;){if(Xe.indexOf(Ke)!==-1){Se();break}else if(et.indexOf(Ke)!==-1)break;Ke=Se()}}function Fe(We){var Xe=a.getTokenValue();return We?$(Xe):S(Xe),Se(),!0}function $e(){switch(a.getToken()){case 11:var We=a.getTokenValue(),Xe=Number(We);isNaN(Xe)&&(me(2),Xe=0),$(Xe);break;case 7:$(null);break;case 8:$(!0);break;case 9:$(!1);break;default:return!1}return Se(),!0}function Ue(){return a.getToken()!==10?(me(3,[],[2,5]),!1):(Fe(!1),a.getToken()===6?(oe(":"),Se(),je()||me(4,[],[2,5])):me(5,[],[2,5]),!0)}function ze(){m(),Se();for(var We=!1;a.getToken()!==2&&a.getToken()!==17;){if(a.getToken()===5){if(We||me(4,[],[]),oe(","),Se(),a.getToken()===2&&he)break}else We&&me(6,[],[]);Ue()||me(4,[],[2,5]),We=!0}return w(),a.getToken()!==2?me(7,[2],[]):Se(),!0}function Be(){E(),Se();for(var We=!1;a.getToken()!==4&&a.getToken()!==17;){if(a.getToken()===5){if(We||me(4,[],[]),oe(","),Se(),a.getToken()===4&&he)break}else We&&me(6,[],[]);je()||me(4,[],[4,5]),We=!0}return k(),a.getToken()!==4?me(8,[4],[]):Se(),!0}function je(){switch(a.getToken()){case 3:return Be();case 1:return ze();case 10:return Fe(!0);default:return $e()}}return Se(),a.getToken()===17?i.allowEmptyContent?!0:(me(4,[],[]),!1):je()?(a.getToken()!==17&&me(9,[],[]),!0):(me(4,[],[]),!1)}function Ci(t,r){var i=Qo(t),a=[],s,p=0,m;do switch(m=i.getPosition(),s=i.scan(),s){case 12:case 13:case 17:p!==m&&a.push(t.substring(p,m)),r!==void 0&&a.push(i.getTokenValue().replace(/[^\r\n]/g,r)),p=i.getPosition();break}while(s!==17);return a.join("")}function oi(t){switch(typeof t){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(t){if(Array.isArray(t))return"array"}else return"null";return"object"}default:return"null"}}function Hs(t,r,i){return Nf(t,r,void 0,i)}function Nf(t,r,i,a){for(var s,p=r.slice(),m=[],S=parseTree(t,m),w=void 0,E=void 0;p.length>0&&(E=p.pop(),w=findNodeAtLocation(S,p),w===void 0&&i!==void 0);)typeof E=="string"?i=(s={},s[E]=i,s):i=[i];if(w)if(w.type==="object"&&typeof E=="string"&&Array.isArray(w.children)){var k=findNodeAtLocation(w,[E]);if(k!==void 0)if(i===void 0){if(!k.parent)throw new Error("Malformed AST");var $=w.children.indexOf(k.parent),oe=void 0,re=k.parent.offset+k.parent.length;if($>0){var ce=w.children[$-1];oe=ce.offset+ce.length}else if(oe=w.offset+1,w.children.length>1){var ve=w.children[1];re=ve.offset}return Oi(t,{offset:oe,length:re-oe,content:""},a)}else return Oi(t,{offset:k.offset,length:k.length,content:JSON.stringify(i)},a);else{if(i===void 0)return[];var he=JSON.stringify(E)+": "+JSON.stringify(i),Se=a.getInsertionIndex?a.getInsertionIndex(w.children.map(function(We){return We.children[0].value})):w.children.length,me=void 0;if(Se>0){var ce=w.children[Se-1];me={offset:ce.offset+ce.length,length:0,content:","+he}}else w.children.length===0?me={offset:w.offset+1,length:0,content:he}:me={offset:w.offset+1,length:0,content:he+","};return Oi(t,me,a)}}else if(w.type==="array"&&typeof E=="number"&&Array.isArray(w.children)){var Fe=E;if(Fe===-1){var he=""+JSON.stringify(i),me=void 0;if(w.children.length===0)me={offset:w.offset+1,length:0,content:he};else{var ce=w.children[w.children.length-1];me={offset:ce.offset+ce.length,length:0,content:","+he}}return Oi(t,me,a)}else if(i===void 0&&w.children.length>=0){var $e=E,Ue=w.children[$e],me=void 0;if(w.children.length===1)me={offset:w.offset+1,length:w.length-2,content:""};else if(w.children.length-1===$e){var ce=w.children[$e-1],ze=ce.offset+ce.length,Be=w.offset+w.length;me={offset:ze,length:Be-2-ze,content:""}}else me={offset:Ue.offset,length:w.children[$e+1].offset-Ue.offset,content:""};return Oi(t,me,a)}else if(i!==void 0){var me=void 0,he=""+JSON.stringify(i);if(!a.isArrayInsertion&&w.children.length>E){var je=w.children[E];me={offset:je.offset,length:je.length,content:he}}else if(w.children.length===0||E===0)me={offset:w.offset+1,length:0,content:w.children.length===0?he:he+","};else{var Se=E>w.children.length?w.children.length:E,ce=w.children[Se-1];me={offset:ce.offset+ce.length,length:0,content:","+he}}return Oi(t,me,a)}else throw new Error("Can not "+(i===void 0?"remove":a.isArrayInsertion?"insert":"modify")+" Array index "+Fe+" as length is not sufficient")}else throw new Error("Can not add "+(typeof E!="number"?"index":"property")+" to parent of type "+w.type);else{if(i===void 0)throw new Error("Can not delete in empty document");return Oi(t,{offset:S?S.offset:0,length:S?S.length:0,content:JSON.stringify(i)},a)}}function Oi(t,r,i){if(!i.formattingOptions)return[r];var a=wo(t,r),s=r.offset,p=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;s>0&&!isEOL(a,s-1);)s--;for(;p<a.length&&!isEOL(a,p);)p++}for(var m=format(a,{offset:s,length:p-s},i.formattingOptions),S=m.length-1;S>=0;S--){var w=m[S];a=wo(a,w),s=Math.min(s,w.offset),p=Math.max(p,w.offset+w.length),p+=w.content.length-w.length}var E=t.length-(a.length-p)-s;return[{offset:s,length:E,content:a.substring(s,p)}]}function wo(t,r){return t.substring(0,r.offset)+r.content+t.substring(r.offset+r.length)}function Bf(t,r){return`\r
|
|
168
|
-
`.indexOf(t.charAt(r))!==-1}var Ti=Qo,zs=xo,Uf=bo,lu=js,jf=Vs,Gs=Ei,$s=Ws,So=qo,Ks=Kr,Vf=Ci;function Ys(t){switch(t){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 Wf(t,r,i){return au(t,r,i)}function Ed(t,r,i,a){return edit.setProperty(t,r,i,a)}function Cd(t,r){for(var i=r.length-1;i>=0;i--)t=edit.applyEdit(t,r[i]);return t}function eo(t,r){if(t===r)return!0;if(t==null||r===null||r===void 0||typeof t!=typeof r||typeof t!="object"||Array.isArray(t)!==Array.isArray(r))return!1;var i,a;if(Array.isArray(t)){if(t.length!==r.length)return!1;for(i=0;i<t.length;i++)if(!eo(t[i],r[i]))return!1}else{var s=[];for(a in t)s.push(a);s.sort();var p=[];for(a in r)p.push(a);if(p.sort(),!eo(s,p))return!1;for(i=0;i<s.length;i++)if(!eo(t[s[i]],r[s[i]]))return!1}return!0}function an(t){return typeof t=="number"}function yn(t){return typeof t!="undefined"}function mn(t){return typeof t=="boolean"}function Hf(t){return typeof t=="string"}var ea;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(ea||(ea={}));var ta;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(ta||(ta={}));var sn;(function(t){function r(a,s){return a===Number.MAX_VALUE&&(a=ta.MAX_VALUE),s===Number.MAX_VALUE&&(s=ta.MAX_VALUE),{line:a,character:s}}t.create=r;function i(a){var s=a;return Ze.objectLiteral(s)&&Ze.uinteger(s.line)&&Ze.uinteger(s.character)}t.is=i})(sn||(sn={}));var tr;(function(t){function r(a,s,p,m){if(Ze.uinteger(a)&&Ze.uinteger(s)&&Ze.uinteger(p)&&Ze.uinteger(m))return{start:sn.create(a,s),end:sn.create(p,m)};if(sn.is(a)&&sn.is(s))return{start:a,end:s};throw new Error("Range#create called with invalid arguments["+a+", "+s+", "+p+", "+m+"]")}t.create=r;function i(a){var s=a;return Ze.objectLiteral(s)&&sn.is(s.start)&&sn.is(s.end)}t.is=i})(tr||(tr={}));var Wn;(function(t){function r(a,s){return{uri:a,range:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&tr.is(s.range)&&(Ze.string(s.uri)||Ze.undefined(s.uri))}t.is=i})(Wn||(Wn={}));var Ao;(function(t){function r(a,s,p,m){return{targetUri:a,targetRange:s,targetSelectionRange:p,originSelectionRange:m}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&tr.is(s.targetRange)&&Ze.string(s.targetUri)&&(tr.is(s.targetSelectionRange)||Ze.undefined(s.targetSelectionRange))&&(tr.is(s.originSelectionRange)||Ze.undefined(s.originSelectionRange))}t.is=i})(Ao||(Ao={}));var ai;(function(t){function r(a,s,p,m){return{red:a,green:s,blue:p,alpha:m}}t.create=r;function i(a){var s=a;return Ze.numberRange(s.red,0,1)&&Ze.numberRange(s.green,0,1)&&Ze.numberRange(s.blue,0,1)&&Ze.numberRange(s.alpha,0,1)}t.is=i})(ai||(ai={}));var Eo;(function(t){function r(a,s){return{range:a,color:s}}t.create=r;function i(a){var s=a;return tr.is(s.range)&&ai.is(s.color)}t.is=i})(Eo||(Eo={}));var to;(function(t){function r(a,s,p){return{label:a,textEdit:s,additionalTextEdits:p}}t.create=r;function i(a){var s=a;return Ze.string(s.label)&&(Ze.undefined(s.textEdit)||Hn.is(s))&&(Ze.undefined(s.additionalTextEdits)||Ze.typedArray(s.additionalTextEdits,Hn.is))}t.is=i})(to||(to={}));var Co;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Co||(Co={}));var Js;(function(t){function r(a,s,p,m,S){var w={startLine:a,endLine:s};return Ze.defined(p)&&(w.startCharacter=p),Ze.defined(m)&&(w.endCharacter=m),Ze.defined(S)&&(w.kind=S),w}t.create=r;function i(a){var s=a;return Ze.uinteger(s.startLine)&&Ze.uinteger(s.startLine)&&(Ze.undefined(s.startCharacter)||Ze.uinteger(s.startCharacter))&&(Ze.undefined(s.endCharacter)||Ze.uinteger(s.endCharacter))&&(Ze.undefined(s.kind)||Ze.string(s.kind))}t.is=i})(Js||(Js={}));var Ba;(function(t){function r(a,s){return{location:a,message:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Wn.is(s.location)&&Ze.string(s.message)}t.is=i})(Ba||(Ba={}));var Ht;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Ht||(Ht={}));var Pi;(function(t){t.Unnecessary=1,t.Deprecated=2})(Pi||(Pi={}));var Ii;(function(t){function r(i){var a=i;return a!=null&&Ze.string(a.href)}t.is=r})(Ii||(Ii={}));var si;(function(t){function r(a,s,p,m,S,w){var E={range:a,message:s};return Ze.defined(p)&&(E.severity=p),Ze.defined(m)&&(E.code=m),Ze.defined(S)&&(E.source=S),Ze.defined(w)&&(E.relatedInformation=w),E}t.create=r;function i(a){var s,p=a;return Ze.defined(p)&&tr.is(p.range)&&Ze.string(p.message)&&(Ze.number(p.severity)||Ze.undefined(p.severity))&&(Ze.integer(p.code)||Ze.string(p.code)||Ze.undefined(p.code))&&(Ze.undefined(p.codeDescription)||Ze.string((s=p.codeDescription)===null||s===void 0?void 0:s.href))&&(Ze.string(p.source)||Ze.undefined(p.source))&&(Ze.undefined(p.relatedInformation)||Ze.typedArray(p.relatedInformation,Ba.is))}t.is=i})(si||(si={}));var ra;(function(t){function r(a,s){for(var p=[],m=2;m<arguments.length;m++)p[m-2]=arguments[m];var S={title:a,command:s};return Ze.defined(p)&&p.length>0&&(S.arguments=p),S}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.string(s.title)&&Ze.string(s.command)}t.is=i})(ra||(ra={}));var Hn;(function(t){function r(p,m){return{range:p,newText:m}}t.replace=r;function i(p,m){return{range:{start:p,end:p},newText:m}}t.insert=i;function a(p){return{range:p,newText:""}}t.del=a;function s(p){var m=p;return Ze.objectLiteral(m)&&Ze.string(m.newText)&&tr.is(m.range)}t.is=s})(Hn||(Hn={}));var Oo;(function(t){function r(a,s,p){var m={label:a};return s!==void 0&&(m.needsConfirmation=s),p!==void 0&&(m.description=p),m}t.create=r;function i(a){var s=a;return s!==void 0&&Ze.objectLiteral(s)&&Ze.string(s.label)&&(Ze.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(Ze.string(s.description)||s.description===void 0)}t.is=i})(Oo||(Oo={}));var tn;(function(t){function r(i){var a=i;return typeof a=="string"}t.is=r})(tn||(tn={}));var Fi;(function(t){function r(p,m,S){return{range:p,newText:m,annotationId:S}}t.replace=r;function i(p,m,S){return{range:{start:p,end:p},newText:m,annotationId:S}}t.insert=i;function a(p,m){return{range:p,newText:"",annotationId:m}}t.del=a;function s(p){var m=p;return Hn.is(m)&&(Oo.is(m.annotationId)||tn.is(m.annotationId))}t.is=s})(Fi||(Fi={}));var Jr;(function(t){function r(a,s){return{textDocument:a,edits:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&To.is(s.textDocument)&&Array.isArray(s.edits)}t.is=i})(Jr||(Jr={}));var mr;(function(t){function r(a,s,p){var m={kind:"create",uri:a};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(m.options=s),p!==void 0&&(m.annotationId=p),m}t.create=r;function i(a){var s=a;return s&&s.kind==="create"&&Ze.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||Ze.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Ze.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||tn.is(s.annotationId))}t.is=i})(mr||(mr={}));var Dr;(function(t){function r(a,s,p,m){var S={kind:"rename",oldUri:a,newUri:s};return p!==void 0&&(p.overwrite!==void 0||p.ignoreIfExists!==void 0)&&(S.options=p),m!==void 0&&(S.annotationId=m),S}t.create=r;function i(a){var s=a;return s&&s.kind==="rename"&&Ze.string(s.oldUri)&&Ze.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||Ze.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Ze.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||tn.is(s.annotationId))}t.is=i})(Dr||(Dr={}));var xr;(function(t){function r(a,s,p){var m={kind:"delete",uri:a};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(m.options=s),p!==void 0&&(m.annotationId=p),m}t.create=r;function i(a){var s=a;return s&&s.kind==="delete"&&Ze.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||Ze.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||Ze.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||tn.is(s.annotationId))}t.is=i})(xr||(xr={}));var ro;(function(t){function r(i){var a=i;return a&&(a.changes!==void 0||a.documentChanges!==void 0)&&(a.documentChanges===void 0||a.documentChanges.every(function(s){return Ze.string(s.kind)?mr.is(s)||Dr.is(s)||xr.is(s):Jr.is(s)}))}t.is=r})(ro||(ro={}));var Ua=function(){function t(r,i){this.edits=r,this.changeAnnotations=i}return t.prototype.insert=function(r,i,a){var s,p;if(a===void 0?s=Hn.insert(r,i):tn.is(a)?(p=a,s=Fi.insert(r,i,a)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(a),s=Fi.insert(r,i,p)),this.edits.push(s),p!==void 0)return p},t.prototype.replace=function(r,i,a){var s,p;if(a===void 0?s=Hn.replace(r,i):tn.is(a)?(p=a,s=Fi.replace(r,i,a)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(a),s=Fi.replace(r,i,p)),this.edits.push(s),p!==void 0)return p},t.prototype.delete=function(r,i){var a,s;if(i===void 0?a=Hn.del(r):tn.is(i)?(s=i,a=Fi.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),a=Fi.del(r,s)),this.edits.push(a),s!==void 0)return s},t.prototype.add=function(r){this.edits.push(r)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),na=function(){function t(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(r,i){var a;if(tn.is(r)?a=r:(a=this.nextId(),i=r),this._annotations[a]!==void 0)throw new Error("Id "+a+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+a);return this._annotations[a]=i,this._size++,a},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}(),Od=function(){function t(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new na(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(a){if(Jr.is(a)){var s=new Ua(a.edits,i._changeAnnotations);i._textEditChanges[a.textDocument.uri]=s}})):r.changes&&Object.keys(r.changes).forEach(function(a){var s=new Ua(r.changes[a]);i._textEditChanges[a]=s})):this._workspaceEdit={}}return Object.defineProperty(t.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}),t.prototype.getTextEditChange=function(r){if(To.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:r.uri,version:r.version},a=this._textEditChanges[i.uri];if(!a){var s=[],p={textDocument:i,edits:s};this._workspaceEdit.documentChanges.push(p),a=new Ua(s,this._changeAnnotations),this._textEditChanges[i.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 s=[];this._workspaceEdit.changes[r]=s,a=new Ua(s),this._textEditChanges[r]=a}return a}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new na,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(r,i,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;Oo.is(i)||tn.is(i)?s=i:a=i;var p,m;if(s===void 0?p=mr.create(r,a):(m=tn.is(s)?s:this._changeAnnotations.manage(s),p=mr.create(r,a,m)),this._workspaceEdit.documentChanges.push(p),m!==void 0)return m},t.prototype.renameFile=function(r,i,a,s){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var p;Oo.is(a)||tn.is(a)?p=a:s=a;var m,S;if(p===void 0?m=Dr.create(r,i,s):(S=tn.is(p)?p:this._changeAnnotations.manage(p),m=Dr.create(r,i,s,S)),this._workspaceEdit.documentChanges.push(m),S!==void 0)return S},t.prototype.deleteFile=function(r,i,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;Oo.is(i)||tn.is(i)?s=i:a=i;var p,m;if(s===void 0?p=xr.create(r,a):(m=tn.is(s)?s:this._changeAnnotations.manage(s),p=xr.create(r,a,m)),this._workspaceEdit.documentChanges.push(p),m!==void 0)return m},t}(),uu;(function(t){function r(a){return{uri:a}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.string(s.uri)}t.is=i})(uu||(uu={}));var fu;(function(t){function r(a,s){return{uri:a,version:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.string(s.uri)&&Ze.integer(s.version)}t.is=i})(fu||(fu={}));var To;(function(t){function r(a,s){return{uri:a,version:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.string(s.uri)&&(s.version===null||Ze.integer(s.version))}t.is=i})(To||(To={}));var Xs;(function(t){function r(a,s,p,m){return{uri:a,languageId:s,version:p,text:m}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.string(s.uri)&&Ze.string(s.languageId)&&Ze.integer(s.version)&&Ze.string(s.text)}t.is=i})(Xs||(Xs={}));var zn;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(zn||(zn={})),function(t){function r(i){var a=i;return a===t.PlainText||a===t.Markdown}t.is=r}(zn||(zn={}));var Qs;(function(t){function r(i){var a=i;return Ze.objectLiteral(i)&&zn.is(a.kind)&&Ze.string(a.value)}t.is=r})(Qs||(Qs={}));var ln;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(ln||(ln={}));var Pr;(function(t){t.PlainText=1,t.Snippet=2})(Pr||(Pr={}));var Zs;(function(t){t.Deprecated=1})(Zs||(Zs={}));var _s;(function(t){function r(a,s,p){return{newText:a,insert:s,replace:p}}t.create=r;function i(a){var s=a;return s&&Ze.string(s.newText)&&tr.is(s.insert)&&tr.is(s.replace)}t.is=i})(_s||(_s={}));var ja;(function(t){t.asIs=1,t.adjustIndentation=2})(ja||(ja={}));var Va;(function(t){function r(i){return{label:i}}t.create=r})(Va||(Va={}));var Po;(function(t){function r(i,a){return{items:i||[],isIncomplete:!!a}}t.create=r})(Po||(Po={}));var Wa;(function(t){function r(a){return a.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=r;function i(a){var s=a;return Ze.string(s)||Ze.objectLiteral(s)&&Ze.string(s.language)&&Ze.string(s.value)}t.is=i})(Wa||(Wa={}));var ia;(function(t){function r(i){var a=i;return!!a&&Ze.objectLiteral(a)&&(Qs.is(a.contents)||Wa.is(a.contents)||Ze.typedArray(a.contents,Wa.is))&&(i.range===void 0||tr.is(i.range))}t.is=r})(ia||(ia={}));var Zn;(function(t){function r(i,a){return a?{label:i,documentation:a}:{label:i}}t.create=r})(Zn||(Zn={}));var qs;(function(t){function r(i,a){for(var s=[],p=2;p<arguments.length;p++)s[p-2]=arguments[p];var m={label:i};return Ze.defined(a)&&(m.documentation=a),Ze.defined(s)?m.parameters=s:m.parameters=[],m}t.create=r})(qs||(qs={}));var cu;(function(t){t.Text=1,t.Read=2,t.Write=3})(cu||(cu={}));var el;(function(t){function r(i,a){var s={range:i};return Ze.number(a)&&(s.kind=a),s}t.create=r})(el||(el={}));var Sr;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(Sr||(Sr={}));var _t;(function(t){t.Deprecated=1})(_t||(_t={}));var Fn;(function(t){function r(i,a,s,p,m){var S={name:i,kind:a,location:{uri:p,range:s}};return m&&(S.containerName=m),S}t.create=r})(Fn||(Fn={}));var li;(function(t){function r(a,s,p,m,S,w){var E={name:a,detail:s,kind:p,range:m,selectionRange:S};return w!==void 0&&(E.children=w),E}t.create=r;function i(a){var s=a;return s&&Ze.string(s.name)&&Ze.number(s.kind)&&tr.is(s.range)&&tr.is(s.selectionRange)&&(s.detail===void 0||Ze.string(s.detail))&&(s.deprecated===void 0||Ze.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}t.is=i})(li||(li={}));var ui;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(ui||(ui={}));var tl;(function(t){function r(a,s){var p={diagnostics:a};return s!=null&&(p.only=s),p}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.typedArray(s.diagnostics,si.is)&&(s.only===void 0||Ze.typedArray(s.only,Ze.string))}t.is=i})(tl||(tl={}));var Ha;(function(t){function r(a,s,p){var m={title:a},S=!0;return typeof s=="string"?(S=!1,m.kind=s):ra.is(s)?m.command=s:m.edit=s,S&&p!==void 0&&(m.kind=p),m}t.create=r;function i(a){var s=a;return s&&Ze.string(s.title)&&(s.diagnostics===void 0||Ze.typedArray(s.diagnostics,si.is))&&(s.kind===void 0||Ze.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||ra.is(s.command))&&(s.isPreferred===void 0||Ze.boolean(s.isPreferred))&&(s.edit===void 0||ro.is(s.edit))}t.is=i})(Ha||(Ha={}));var rl;(function(t){function r(a,s){var p={range:a};return Ze.defined(s)&&(p.data=s),p}t.create=r;function i(a){var s=a;return Ze.defined(s)&&tr.is(s.range)&&(Ze.undefined(s.command)||ra.is(s.command))}t.is=i})(rl||(rl={}));var du;(function(t){function r(a,s){return{tabSize:a,insertSpaces:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.uinteger(s.tabSize)&&Ze.boolean(s.insertSpaces)}t.is=i})(du||(du={}));var za;(function(t){function r(a,s,p){return{range:a,target:s,data:p}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&tr.is(s.range)&&(Ze.undefined(s.target)||Ze.string(s.target))}t.is=i})(za||(za={}));var ki;(function(t){function r(a,s){return{range:a,parent:s}}t.create=r;function i(a){var s=a;return s!==void 0&&tr.is(s.range)&&(s.parent===void 0||t.is(s.parent))}t.is=i})(ki||(ki={}));var zf=null,Ga;(function(t){function r(p,m,S,w){return new Ri(p,m,S,w)}t.create=r;function i(p){var m=p;return!!(Ze.defined(m)&&Ze.string(m.uri)&&(Ze.undefined(m.languageId)||Ze.string(m.languageId))&&Ze.uinteger(m.lineCount)&&Ze.func(m.getText)&&Ze.func(m.positionAt)&&Ze.func(m.offsetAt))}t.is=i;function a(p,m){for(var S=p.getText(),w=s(m,function(ce,ve){var he=ce.range.start.line-ve.range.start.line;return he===0?ce.range.start.character-ve.range.start.character:he}),E=S.length,k=w.length-1;k>=0;k--){var $=w[k],oe=p.offsetAt($.range.start),re=p.offsetAt($.range.end);if(re<=E)S=S.substring(0,oe)+$.newText+S.substring(re,S.length);else throw new Error("Overlapping edit");E=oe}return S}t.applyEdits=a;function s(p,m){if(p.length<=1)return p;var S=p.length/2|0,w=p.slice(0,S),E=p.slice(S);s(w,m),s(E,m);for(var k=0,$=0,oe=0;k<w.length&&$<E.length;){var re=m(w[k],E[$]);re<=0?p[oe++]=w[k++]:p[oe++]=E[$++]}for(;k<w.length;)p[oe++]=w[k++];for(;$<E.length;)p[oe++]=E[$++];return p}})(Ga||(Ga={}));var Ri=function(){function t(r,i,a,s){this._uri=r,this._languageId=i,this._version=a,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(i,a)}return this._content},t.prototype.update=function(r,i){this._content=r.text,this._version=i,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var r=[],i=this._content,a=!0,s=0;s<i.length;s++){a&&(r.push(s),a=!1);var p=i.charAt(s);a=p==="\r"||p===`
|
|
169
|
-
`,p==="\r"&&s+1<i.length&&i.charAt(s+1)===`
|
|
170
|
-
`&&s++}a&&i.length>0&&r.push(i.length),this._lineOffsets=r}return this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),a=0,s=i.length;if(s===0)return sn.create(0,r);for(;a<s;){var p=Math.floor((a+s)/2);i[p]>r?s=p:a=p+1}var m=a-1;return sn.create(m,r-i[m])},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var a=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,s),a)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}(),Ze;(function(t){var r=Object.prototype.toString;function i(re){return typeof re!="undefined"}t.defined=i;function a(re){return typeof re=="undefined"}t.undefined=a;function s(re){return re===!0||re===!1}t.boolean=s;function p(re){return r.call(re)==="[object String]"}t.string=p;function m(re){return r.call(re)==="[object Number]"}t.number=m;function S(re,ce,ve){return r.call(re)==="[object Number]"&&ce<=re&&re<=ve}t.numberRange=S;function w(re){return r.call(re)==="[object Number]"&&-2147483648<=re&&re<=2147483647}t.integer=w;function E(re){return r.call(re)==="[object Number]"&&0<=re&&re<=2147483647}t.uinteger=E;function k(re){return r.call(re)==="[object Function]"}t.func=k;function $(re){return re!==null&&typeof re=="object"}t.objectLiteral=$;function oe(re,ce){return Array.isArray(re)&&re.every(ce)}t.typedArray=oe})(Ze||(Ze={}));var nl=function(){function t(r,i,a,s){this._uri=r,this._languageId=i,this._version=a,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),t.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(i,a)}return this._content},t.prototype.update=function(r,i){for(var a=0,s=r;a<s.length;a++){var p=s[a];if(t.isIncremental(p)){var m=il(p.range),S=this.offsetAt(m.start),w=this.offsetAt(m.end);this._content=this._content.substring(0,S)+p.text+this._content.substring(w,this._content.length);var E=Math.max(m.start.line,0),k=Math.max(m.end.line,0),$=this._lineOffsets,oe=Ka(p.text,!1,S);if(k-E===oe.length)for(var re=0,ce=oe.length;re<ce;re++)$[re+E+1]=oe[re];else oe.length<1e4?$.splice.apply($,[E+1,k-E].concat(oe)):this._lineOffsets=$=$.slice(0,E+1).concat(oe,$.slice(k+1));var ve=p.text.length-(w-S);if(ve!==0)for(var re=E+1+oe.length,ce=$.length;re<ce;re++)$[re]=$[re]+ve}else if(t.isFull(p))this._content=p.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=i},t.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=Ka(this._content,!0)),this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),a=0,s=i.length;if(s===0)return{line:0,character:r};for(;a<s;){var p=Math.floor((a+s)/2);i[p]>r?s=p:a=p+1}var m=a-1;return{line:m,character:r-i[m]}},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var a=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,s),a)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),t.isIncremental=function(r){var i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")},t.isFull=function(r){var i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0},t}(),$a;(function(t){function r(s,p,m,S){return new nl(s,p,m,S)}t.create=r;function i(s,p,m){if(s instanceof nl)return s.update(p,m),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=i;function a(s,p){for(var m=s.getText(),S=Io(p.map(Gf),function(ce,ve){var he=ce.range.start.line-ve.range.start.line;return he===0?ce.range.start.character-ve.range.start.character:he}),w=0,E=[],k=0,$=S;k<$.length;k++){var oe=$[k],re=s.offsetAt(oe.range.start);if(re<w)throw new Error("Overlapping edit");re>w&&E.push(m.substring(w,re)),oe.newText.length&&E.push(oe.newText),w=s.offsetAt(oe.range.end)}return E.push(m.substr(w)),E.join("")}t.applyEdits=a})($a||($a={}));function Io(t,r){if(t.length<=1)return t;var i=t.length/2|0,a=t.slice(0,i),s=t.slice(i);Io(a,r),Io(s,r);for(var p=0,m=0,S=0;p<a.length&&m<s.length;){var w=r(a[p],s[m]);w<=0?t[S++]=a[p++]:t[S++]=s[m++]}for(;p<a.length;)t[S++]=a[p++];for(;m<s.length;)t[S++]=s[m++];return t}function Ka(t,r,i){i===void 0&&(i=0);for(var a=r?[i]:[],s=0;s<t.length;s++){var p=t.charCodeAt(s);(p===13||p===10)&&(p===13&&s+1<t.length&&t.charCodeAt(s+1)===10&&s++,a.push(i+s+1))}return a}function il(t){var r=t.start,i=t.end;return r.line>i.line||r.line===i.line&&r.character>i.character?{start:i,end:r}:t}function Gf(t){var r=il(t.range);return r!==t.range?{newText:t.newText,range:r}:t}var Yt;(function(t){t[t.Undefined=0]="Undefined",t[t.EnumValueMismatch=1]="EnumValueMismatch",t[t.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=258]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",t[t.InvalidUnicode=260]="InvalidUnicode",t[t.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",t[t.InvalidCharacter=262]="InvalidCharacter",t[t.PropertyExpected=513]="PropertyExpected",t[t.CommaExpected=514]="CommaExpected",t[t.ColonExpected=515]="ColonExpected",t[t.ValueExpected=516]="ValueExpected",t[t.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",t[t.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",t[t.TrailingComma=519]="TrailingComma",t[t.DuplicateKey=520]="DuplicateKey",t[t.CommentNotPermitted=521]="CommentNotPermitted",t[t.SchemaResolveError=768]="SchemaResolveError"})(Yt||(Yt={}));var pu;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[zn.Markdown,zn.PlainText],commitCharactersSupport:!0}}}}})(pu||(pu={}));var no=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var p in s)s.hasOwnProperty(p)&&(a[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),Ya={"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,}))$/}},Mi=function(){function t(r,i,a){this.offset=i,this.length=a,this.parent=r}return Object.defineProperty(t.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},t}(),$f=function(t){no(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="null",s.value=null,s}return r}(Mi),hu=function(t){no(r,t);function r(i,a,s){var p=t.call(this,i,s)||this;return p.type="boolean",p.value=a,p}return r}(Mi),vu=function(t){no(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="array",s.items=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}(Mi),Fo=function(t){no(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="number",s.isInteger=!0,s.value=Number.NaN,s}return r}(Mi),Ja=function(t){no(r,t);function r(i,a,s){var p=t.call(this,i,a,s)||this;return p.type="string",p.value="",p}return r}(Mi),Xa=function(t){no(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="property",s.colonOffset=-1,s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),r}(Mi),gu=function(t){no(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="object",s.properties=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}(Mi);function rn(t){return mn(t)?t?{}:{not:{}}:t}var ol;(function(t){t[t.Key=0]="Key",t[t.Enum=1]="Enum"})(ol||(ol={}));var Kf=function(){function t(r,i){r===void 0&&(r=-1),i===void 0&&(i=null),this.focusOffset=r,this.exclude=i,this.schemas=[]}return t.prototype.add=function(r){this.schemas.push(r)},t.prototype.merge=function(r){var i;(i=this.schemas).push.apply(i,r.schemas)},t.prototype.include=function(r){return(this.focusOffset===-1||al(r,this.focusOffset))&&r!==this.exclude},t.prototype.newSub=function(){return new t(-1,this.exclude)},t}(),Qa=function(){function t(){}return Object.defineProperty(t.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.add=function(r){},t.prototype.merge=function(r){},t.prototype.include=function(r){return!0},t.prototype.newSub=function(){return this},t.instance=new t,t}(),rr=function(){function t(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null}return t.prototype.hasProblems=function(){return!!this.problems.length},t.prototype.mergeAll=function(r){for(var i=0,a=r;i<a.length;i++){var s=a[i];this.merge(s)}},t.prototype.merge=function(r){this.problems=this.problems.concat(r.problems)},t.prototype.mergeEnumValues=function(r){if(!this.enumValueMatch&&!r.enumValueMatch&&this.enumValues&&r.enumValues){this.enumValues=this.enumValues.concat(r.enumValues);for(var i=0,a=this.problems;i<a.length;i++){var s=a[i];s.code===Yt.EnumValueMismatch&&(s.message="Value is not accepted. Valid values: "+this.enumValues.map(function(p){return JSON.stringify(p)}).join(", ")+".")}}},t.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++},t.prototype.compare=function(r){var i=this.hasProblems();return i!==r.hasProblems()?i?-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},t}();function Za(t,r){return r===void 0&&(r=[]),new io(t,r,[])}function fi(t){return So(t)}function _a(t){return $s(t)}function al(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}var io=function(){function t(r,i,a){i===void 0&&(i=[]),a===void 0&&(a=[]),this.root=r,this.syntaxErrors=i,this.comments=a}return t.prototype.getNodeFromOffset=function(r,i){if(i===void 0&&(i=!1),this.root)return Gs(this.root,r,i)},t.prototype.visit=function(r){if(this.root){var i=function(a){var s=r(a),p=a.children;if(Array.isArray(p))for(var m=0;m<p.length&&s;m++)s=i(p[m]);return s};i(this.root)}},t.prototype.validate=function(r,i){if(this.root&&i){var a=new rr;return Nr(this.root,i,a,Qa.instance),a.problems.map(function(s){var p=tr.create(r.positionAt(s.location.offset),r.positionAt(s.location.offset+s.location.length));return si.create(p,s.message,s.severity,s.code)})}return null},t.prototype.getMatchingSchemas=function(r,i,a){i===void 0&&(i=-1),a===void 0&&(a=null);var s=new Kf(i,a);return this.root&&r&&Nr(this.root,r,new rr,s),s.schemas},t}();function Nr(t,r,i,a){if(!t||!a.include(t))return;switch(t.type){case"object":w(t,r,i,a);break;case"array":S(t,r,i,a);break;case"string":m(t,r,i,a);break;case"number":p(t,r,i,a);break;case"property":return Nr(t.valueNode,r,i,a)}s(),a.add({node:t,schema:r});function s(){function E(Ke){return t.type===Ke||Ke==="integer"&&t.type==="number"&&t.isInteger||r.nullable&&t.value===null}if(Array.isArray(r.type)?r.type.some(E)||i.problems.push({location:{offset:t.offset,length:t.length},severity:Ht.Warning,message:r.errorMessage||"Incorrect type. Expected one of "+r.type.join(", ")+"."}):r.type&&(E(r.type)||i.problems.push({location:{offset:t.offset,length:t.length},severity:Ht.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var k=0,$=r.allOf;k<$.length;k++){var oe=$[k];Nr(t,rn(oe),i,a)}var re=rn(r.not);if(re){var ce=new rr,ve=a.newSub();Nr(t,re,ce,ve),ce.hasProblems()||i.problems.push({location:{offset:t.offset,length:t.length},severity:Ht.Warning,message:"Matches a schema that is not allowed."});for(var he=0,Se=ve.schemas;he<Se.length;he++){var me=Se[he];me.inverted=!me.inverted,a.add(me)}}var Fe=function(Ke,ht){for(var Mt=[],Wt=null,lr=0,Lr=Ke;lr<Lr.length;lr++){var Cr=Lr[lr],Yr=rn(Cr),wr=new rr,Ur=a.newSub();if(Nr(t,Yr,wr,Ur),wr.hasProblems()||Mt.push(Yr),!Wt)Wt={schema:Yr,validationResult:wr,matchingSchemas:Ur};else if(!ht&&!wr.hasProblems()&&!Wt.validationResult.hasProblems())Wt.matchingSchemas.merge(Ur),Wt.validationResult.propertiesMatches+=wr.propertiesMatches,Wt.validationResult.propertiesValueMatches+=wr.propertiesValueMatches;else{var bn=wr.compare(Wt.validationResult);bn>0?Wt={schema:Yr,validationResult:wr,matchingSchemas:Ur}:bn===0&&(Wt.matchingSchemas.merge(Ur),Wt.validationResult.mergeEnumValues(wr))}}return Mt.length>1&&ht&&i.problems.push({location:{offset:t.offset,length:1},severity:Ht.Warning,message:"Matches multiple schemas when only one must validate."}),Wt!==null&&(i.merge(Wt.validationResult),i.propertiesMatches+=Wt.validationResult.propertiesMatches,i.propertiesValueMatches+=Wt.validationResult.propertiesValueMatches,a.merge(Wt.matchingSchemas)),Mt.length};Array.isArray(r.anyOf)&&Fe(r.anyOf,!1),Array.isArray(r.oneOf)&&Fe(r.oneOf,!0);var $e=function(Ke){var ht=new rr,Mt=a.newSub();Nr(t,rn(Ke),ht,Mt),i.merge(ht),i.propertiesMatches+=ht.propertiesMatches,i.propertiesValueMatches+=ht.propertiesValueMatches,a.merge(Mt)},Ue=function(Ke,ht,Mt){var Wt=rn(Ke),lr=new rr,Lr=a.newSub();Nr(t,Wt,lr,Lr),a.merge(Lr),lr.hasProblems()?Mt&&$e(Mt):ht&&$e(ht)},ze=rn(r.if);if(ze&&Ue(ze,rn(r.then),rn(r.else)),Array.isArray(r.enum)){for(var Be=fi(t),je=!1,We=0,Xe=r.enum;We<Xe.length;We++){var et=Xe[We];if(eo(Be,et)){je=!0;break}}i.enumValues=r.enum,i.enumValueMatch=je,je||i.problems.push({location:{offset:t.offset,length:t.length},severity:Ht.Warning,code:Yt.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(Ke){return JSON.stringify(Ke)}).join(", ")+"."})}if(yn(r.const)){var Be=fi(t);eo(Be,r.const)?i.enumValueMatch=!0:(i.problems.push({location:{offset:t.offset,length:t.length},severity:Ht.Warning,code:Yt.EnumValueMismatch,message:r.errorMessage||"Value must be "+JSON.stringify(r.const)+"."}),i.enumValueMatch=!1),i.enumValues=[r.const]}r.deprecationMessage&&t.parent&&i.problems.push({location:{offset:t.parent.offset,length:t.parent.length},severity:Ht.Warning,message:r.deprecationMessage})}function p(E,k,$,oe){var re=E.value;an(k.multipleOf)&&re%k.multipleOf!=0&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Value is not divisible by "+k.multipleOf+"."});function ce($e,Ue){if(an(Ue))return Ue;if(mn(Ue)&&Ue)return $e}function ve($e,Ue){if(!mn(Ue)||!Ue)return $e}var he=ce(k.minimum,k.exclusiveMinimum);an(he)&&re<=he&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Value is below the exclusive minimum of "+he+"."});var Se=ce(k.maximum,k.exclusiveMaximum);an(Se)&&re>=Se&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Value is above the exclusive maximum of "+Se+"."});var me=ve(k.minimum,k.exclusiveMinimum);an(me)&&re<me&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Value is below the minimum of "+me+"."});var Fe=ve(k.maximum,k.exclusiveMaximum);an(Fe)&&re>Fe&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Value is above the maximum of "+Fe+"."})}function m(E,k,$,oe){if(an(k.minLength)&&E.value.length<k.minLength&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"String is shorter than the minimum length of "+k.minLength+"."}),an(k.maxLength)&&E.value.length>k.maxLength&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"String is longer than the maximum length of "+k.maxLength+"."}),Hf(k.pattern)){var re=new RegExp(k.pattern);re.test(E.value)||$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:k.patternErrorMessage||k.errorMessage||'String does not match the pattern of "'+k.pattern+'".'})}if(k.format)switch(k.format){case"uri":case"uri-reference":{var ce=void 0;if(!E.value)ce="URI expected.";else{var ve=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(E.value);ve?!ve[2]&&k.format==="uri"&&(ce="URI with a scheme is expected."):ce="URI is expected."}ce&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:k.patternErrorMessage||k.errorMessage||"String is not a URI: "+ce})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var he=Ya[k.format];(!E.value||!he.pattern.exec(E.value))&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:k.patternErrorMessage||k.errorMessage||he.errorMessage});break;default:}}function S(E,k,$,oe){if(Array.isArray(k.items)){for(var re=k.items,ce=0;ce<re.length;ce++){var ve=re[ce],he=rn(ve),Se=new rr,me=E.items[ce];me?(Nr(me,he,Se,oe),$.mergePropertyMatch(Se)):E.items.length>=re.length&&$.propertiesValueMatches++}if(E.items.length>re.length)if(typeof k.additionalItems=="object")for(var Fe=re.length;Fe<E.items.length;Fe++){var Se=new rr;Nr(E.items[Fe],k.additionalItems,Se,oe),$.mergePropertyMatch(Se)}else k.additionalItems===!1&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Array has too many items according to schema. Expected "+re.length+" or fewer."})}else{var $e=rn(k.items);if($e)for(var Ue=0,ze=E.items;Ue<ze.length;Ue++){var me=ze[Ue],Se=new rr;Nr(me,$e,Se,oe),$.mergePropertyMatch(Se)}}var Be=rn(k.contains);if(Be){var je=E.items.some(function(et){var Ke=new rr;return Nr(et,Be,Ke,Qa.instance),!Ke.hasProblems()});je||$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:k.errorMessage||"Array does not contain required item."})}if(an(k.minItems)&&E.items.length<k.minItems&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Array has too few items. Expected "+k.minItems+" or more."}),an(k.maxItems)&&E.items.length>k.maxItems&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Array has too many items. Expected "+k.maxItems+" or fewer."}),k.uniqueItems===!0){var We=fi(E),Xe=We.some(function(et,Ke){return Ke!==We.lastIndexOf(et)});Xe&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Array has duplicate items."})}}function w(E,k,$,oe){for(var re=Object.create(null),ce=[],ve=0,he=E.properties;ve<he.length;ve++){var Se=he[ve],me=Se.keyNode.value;re[me]=Se.valueNode,ce.push(me)}if(Array.isArray(k.required))for(var Fe=0,$e=k.required;Fe<$e.length;Fe++){var Ue=$e[Fe];if(!re[Ue]){var ze=E.parent&&E.parent.type==="property"&&E.parent.keyNode,Be=ze?{offset:ze.offset,length:ze.length}:{offset:E.offset,length:1};$.problems.push({location:Be,severity:Ht.Warning,message:'Missing property "'+Ue+'".'})}}var je=function(yi){for(var Ml=ce.indexOf(yi);Ml>=0;)ce.splice(Ml,1),Ml=ce.indexOf(yi)};if(k.properties)for(var We=0,Xe=Object.keys(k.properties);We<Xe.length;We++){var Ue=Xe[We];je(Ue);var et=k.properties[Ue],Ke=re[Ue];if(Ke)if(mn(et))if(et)$.propertiesMatches++,$.propertiesValueMatches++;else{var Se=Ke.parent;$.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Ht.Warning,message:k.errorMessage||"Property "+Ue+" is not allowed."})}else{var ht=new rr;Nr(Ke,et,ht,oe),$.mergePropertyMatch(ht)}}if(k.patternProperties)for(var Mt=0,Wt=Object.keys(k.patternProperties);Mt<Wt.length;Mt++)for(var lr=Wt[Mt],Lr=new RegExp(lr),Cr=0,Yr=ce.slice(0);Cr<Yr.length;Cr++){var Ue=Yr[Cr];if(Lr.test(Ue)){je(Ue);var Ke=re[Ue];if(Ke){var et=k.patternProperties[lr];if(mn(et))if(et)$.propertiesMatches++,$.propertiesValueMatches++;else{var Se=Ke.parent;$.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Ht.Warning,message:k.errorMessage||"Property "+Ue+" is not allowed."})}else{var ht=new rr;Nr(Ke,et,ht,oe),$.mergePropertyMatch(ht)}}}}if(typeof k.additionalProperties=="object")for(var wr=0,Ur=ce;wr<Ur.length;wr++){var Ue=Ur[wr],Ke=re[Ue];if(Ke){var ht=new rr;Nr(Ke,k.additionalProperties,ht,oe),$.mergePropertyMatch(ht)}}else if(k.additionalProperties===!1&&ce.length>0)for(var bn=0,Xt=ce;bn<Xt.length;bn++){var Ue=Xt[bn],Ke=re[Ue];if(Ke){var Se=Ke.parent;$.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Ht.Warning,message:k.errorMessage||"Property "+Ue+" is not allowed."})}}if(an(k.maxProperties)&&E.properties.length>k.maxProperties&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Object has more properties than limit of "+k.maxProperties+"."}),an(k.minProperties)&&E.properties.length<k.minProperties&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Object has fewer properties than the required number of "+k.minProperties}),k.dependencies)for(var Rt=0,Bt=Object.keys(k.dependencies);Rt<Bt.length;Rt++){var me=Bt[Rt],ur=re[me];if(ur){var nn=k.dependencies[me];if(Array.isArray(nn))for(var vr=0,ys=nn;vr<ys.length;vr++){var kl=ys[vr];re[kl]?$.propertiesValueMatches++:$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Object is missing property "+kl+" required by property {$key}."})}else{var et=rn(nn);if(et){var ht=new rr;Nr(E,et,ht,oe),$.mergePropertyMatch(ht)}}}}var Ca=rn(k.propertyNames);if(Ca)for(var zi=0,Rl=E.properties;zi<Rl.length;zi++){var df=Rl[zi],me=df.keyNode;me&&Nr(me,Ca,$,Qa.instance)}}}function yu(t,r){var i=[],a=-1,s=t.getText(),p=Ti(s,!1),m=r&&r.collectComments?[]:void 0;function S(){for(;;){var ze=p.scan();switch($(),ze){case 12:case 13:Array.isArray(m)&&m.push(tr.create(t.positionAt(p.getTokenOffset()),t.positionAt(p.getTokenOffset()+p.getTokenLength())));break;case 15:case 14:break;default:return ze}}}function w(ze){return p.getToken()===ze?(S(),!0):!1}function E(ze,Be,je,We,Xe){if(Xe===void 0&&(Xe=Ht.Error),i.length===0||je!==a){var et=tr.create(t.positionAt(je),t.positionAt(We));i.push(si.create(et,ze,Xe,Be,t.languageId)),a=je}}function k(ze,Be,je,We,Xe){je===void 0&&(je=null),We===void 0&&(We=[]),Xe===void 0&&(Xe=[]);var et=p.getTokenOffset(),Ke=p.getTokenOffset()+p.getTokenLength();if(et===Ke&&et>0){for(et--;et>0&&/\s/.test(s.charAt(et));)et--;Ke=et+1}if(E(ze,Be,et,Ke),je&&oe(je,!1),We.length+Xe.length>0)for(var ht=p.getToken();ht!==17;){if(We.indexOf(ht)!==-1){S();break}else if(Xe.indexOf(ht)!==-1)break;ht=S()}return je}function $(){switch(p.getTokenError()){case 4:return k("Invalid unicode sequence in string.",Yt.InvalidUnicode),!0;case 5:return k("Invalid escape character in string.",Yt.InvalidEscapeCharacter),!0;case 3:return k("Unexpected end of number.",Yt.UnexpectedEndOfNumber),!0;case 1:return k("Unexpected end of comment.",Yt.UnexpectedEndOfComment),!0;case 2:return k("Unexpected end of string.",Yt.UnexpectedEndOfString),!0;case 6:return k("Invalid characters in string. Control characters must be escaped.",Yt.InvalidCharacter),!0}return!1}function oe(ze,Be){return ze.length=p.getTokenOffset()+p.getTokenLength()-ze.offset,Be&&S(),ze}function re(ze){if(p.getToken()!==3)return null;var Be=new vu(ze,p.getTokenOffset());S();for(var je=0,We=!1;p.getToken()!==4&&p.getToken()!==17;){if(p.getToken()===5){We||k("Value expected",Yt.ValueExpected);var Xe=p.getTokenOffset();if(S(),p.getToken()===4){We&&E("Trailing comma",Yt.TrailingComma,Xe,Xe+1);continue}}else We&&k("Expected comma",Yt.CommaExpected);var et=Fe(Be,je++);et?Be.items.push(et):k("Value expected",Yt.ValueExpected,null,[],[4,5]),We=!0}return p.getToken()!==4?k("Expected comma or closing bracket",Yt.CommaOrCloseBacketExpected,Be):oe(Be,!0)}function ce(ze,Be){var je=new Xa(ze,p.getTokenOffset()),We=he(je);if(!We)if(p.getToken()===16){k("Property keys must be doublequoted",Yt.Undefined);var Xe=new Ja(je,p.getTokenOffset(),p.getTokenLength());Xe.value=p.getTokenValue(),We=Xe,S()}else return null;je.keyNode=We;var et=Be[We.value];if(et?(E("Duplicate object key",Yt.DuplicateKey,je.keyNode.offset,je.keyNode.offset+je.keyNode.length,Ht.Warning),typeof et=="object"&&E("DuplicateKeyWarning",Yt.DuplicateKey,et.keyNode.offset,et.keyNode.offset+et.keyNode.length,Ht.Warning),Be[We.value]=!0):Be[We.value]=je,p.getToken()===6)je.colonOffset=p.getTokenOffset(),S();else if(k("Colon expected",Yt.ColonExpected),p.getToken()===10&&t.positionAt(We.offset+We.length).line<t.positionAt(p.getTokenOffset()).line)return je.length=We.length,je;var Ke=Fe(je,We.value);return Ke?(je.valueNode=Ke,je.length=Ke.offset+Ke.length-je.offset,je):k("Value expected",Yt.ValueExpected,je,[],[2,5])}function ve(ze){if(p.getToken()!==1)return null;var Be=new gu(ze,p.getTokenOffset()),je=Object.create(null);S();for(var We=!1;p.getToken()!==2&&p.getToken()!==17;){if(p.getToken()===5){We||k("Property expected",Yt.PropertyExpected);var Xe=p.getTokenOffset();if(S(),p.getToken()===2){We&&E("Trailing comma",Yt.TrailingComma,Xe,Xe+1);continue}}else We&&k("Expected comma",Yt.CommaExpected);var et=ce(Be,je);et?Be.properties.push(et):k("Property expected",Yt.PropertyExpected,null,[],[2,5]),We=!0}return p.getToken()!==2?k("Expected comma or closing brace",Yt.CommaOrCloseBraceExpected,Be):oe(Be,!0)}function he(ze){if(p.getToken()!==10)return null;var Be=new Ja(ze,p.getTokenOffset());return Be.value=p.getTokenValue(),oe(Be,!0)}function Se(ze){if(p.getToken()!==11)return null;var Be=new Fo(ze,p.getTokenOffset());if(p.getTokenError()===0){var je=p.getTokenValue();try{var We=JSON.parse(je);if(!an(We))return k("Invalid number format.",Yt.Undefined,Be);Be.value=We}catch(Xe){return k("Invalid number format.",Yt.Undefined,Be)}Be.isInteger=je.indexOf(".")===-1}return oe(Be,!0)}function me(ze){var Be;switch(p.getToken()){case 7:return oe(new $f(ze,p.getTokenOffset()),!0);case 8:return oe(new hu(ze,!0,p.getTokenOffset()),!0);case 9:return oe(new hu(ze,!1,p.getTokenOffset()),!0);default:return null}}function Fe(ze,Be){return re(ze)||ve(ze)||he(ze)||Se(ze)||me(ze)}var $e=null,Ue=S();return Ue!==17&&($e=Fe(null,null),$e?p.getToken()!==17&&k("End of file expected.",Yt.Undefined):k("Expected a JSON object, array or literal.",Yt.Undefined)),new io($e,i,m)}function qa(t,r,i){if(t!==null&&typeof t=="object"){var a=r+" ";if(Array.isArray(t)){if(t.length===0)return"[]";for(var s=`[
|
|
171
|
-
`,p=0;p<t.length;p++)s+=a+qa(t[p],a,i),p<t.length-1&&(s+=","),s+=`
|
|
172
|
-
`;return s+=r+"]",s}else{var m=Object.keys(t);if(m.length===0)return"{}";for(var s=`{
|
|
173
|
-
`,p=0;p<m.length;p++){var S=m[p];s+=a+JSON.stringify(S)+": "+qa(t[S],a,i),p<m.length-1&&(s+=","),s+=`
|
|
174
|
-
`}return s+=r+"}",s}}return i(t)}function mu(t,r){if(t.length<r.length)return!1;for(var i=0;i<r.length;i++)if(t[i]!==r[i])return!1;return!0}function Li(t,r){var i=t.length-r.length;return i>0?t.lastIndexOf(r)===i:i===0?t===r:!1}function xu(t){return t.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function sl(t,r){for(var i="";r>0;)(r&1)==1&&(i+=t),t+=t,r=r>>>1;return i}var bu=[",","}","]"],oa=[":"],Yf=function(){function t(r,i,a,s){i===void 0&&(i=[]),a===void 0&&(a=Promise),s===void 0&&(s={}),this.schemaService=r,this.contributions=i,this.promiseConstructor=a,this.clientCapabilities=s,this.templateVarIdCounter=0}return t.prototype.doResolve=function(r){for(var i=this.contributions.length-1;i>=0;i--)if(this.contributions[i].resolveCompletion){var a=this.contributions[i].resolveCompletion(r);if(a)return a}return this.promiseConstructor.resolve(r)},t.prototype.doComplete=function(r,i,a){var s=this,p={items:[],isIncomplete:!1},m=r.getText(),S=r.offsetAt(i),w=a.getNodeFromOffset(S,!0);if(this.isInComment(r,w?w.offset:0,S))return Promise.resolve(p);if(w&&S===w.offset+w.length&&S>0){var E=m[S-1];(w.type==="object"&&E==="}"||w.type==="array"&&E==="]")&&(w=w.parent)}var k=this.getCurrentWord(r,S),$=null;if(w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null"))$=tr.create(r.positionAt(w.offset),r.positionAt(w.offset+w.length));else{var oe=S-k.length;oe>0&&m[oe-1]==='"'&&oe--,$=tr.create(r.positionAt(oe),i)}var re=this.doesSupportsCommitCharacters(),ce={},ve={add:function(he){var Se=ce[he.label];Se?Se.documentation||(Se.documentation=he.documentation):(ce[he.label]=he,$&&(he.textEdit=Hn.replace($,he.insertText)),re&&(he.commitCharacters=he.kind===ln.Property?oa:bu),p.items.push(he))},setAsIncomplete:function(){p.isIncomplete=!0},error:function(he){console.error(he)},log:function(he){console.log(he)},getNumberOfProposals:function(){return p.items.length}};return this.schemaService.getSchemaForResource(r.uri,a).then(function(he){var Se=[],me=!0,Fe="",$e=null;if(w&&w.type==="string"){var Ue=w.parent;Ue&&Ue.type==="property"&&Ue.keyNode===w&&(me=!Ue.valueNode,$e=Ue,Fe=m.substr(w.offset+1,w.length-2),Ue&&(w=Ue.parent))}if(w&&w.type==="object"){if(w.offset===S)return p;var ze=w.properties;ze.forEach(function(Xe){(!$e||$e!==Xe)&&(ce[Xe.keyNode.value]=Va.create("__"))});var Be="";me&&(Be=s.evaluateSeparatorAfter(r,r.offsetAt($.end))),he?s.getPropertyCompletions(he,a,w,me,Be,ve):s.getSchemaLessPropertyCompletions(a,w,Fe,ve);var je=_a(w);s.contributions.forEach(function(Xe){var et=Xe.collectPropertyCompletions(r.uri,je,k,me,Be==="",ve);et&&Se.push(et)}),!he&&k.length>0&&m.charAt(S-k.length-1)!=='"'&&(ve.add({kind:ln.Property,label:s.getLabelForValue(k),insertText:s.getInsertTextForProperty(k,null,!1,Be),insertTextFormat:Pr.Snippet,documentation:""}),ve.setAsIncomplete())}var We={};return he?s.getValueCompletions(he,a,w,S,r,ve,We):s.getSchemaLessValueCompletions(a,w,S,r,ve),s.contributions.length>0&&s.getContributedValueCompletions(a,w,S,r,ve,Se),s.promiseConstructor.all(Se).then(function(){if(ve.getNumberOfProposals()===0){var Xe=S;w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null")&&(Xe=w.offset+w.length);var et=s.evaluateSeparatorAfter(r,Xe);s.addFillerValueCompletions(We,et,ve)}return p})})},t.prototype.getPropertyCompletions=function(r,i,a,s,p,m){var S=this,w=i.getMatchingSchemas(r.schema,a.offset);w.forEach(function(E){if(E.node===a&&!E.inverted){var k=E.schema.properties;k&&Object.keys(k).forEach(function($){var oe=k[$],re=!1;if(typeof oe=="object"&&oe.allOf)for(var ce=0,ve=oe.allOf;ce<ve.length;ce++){var he=ve[ce];if(he.readOnly){re=!0;break}}if(typeof oe=="object"&&!oe.deprecationMessage&&!oe.doNotSuggest&&!re){var Se={kind:ln.Property,label:S.sanitizeLabel($),insertText:S.getInsertTextForProperty($,oe,s,p),insertTextFormat:Pr.Snippet,filterText:S.getFilterTextForValue($),documentation:S.fromMarkup(oe.markdownDescription)||oe.description||""};Li(Se.insertText,"$1"+p)&&(Se.command={title:"Suggest",command:"editor.action.triggerSuggest"}),m.add(Se)}})}})},t.prototype.getSchemaLessPropertyCompletions=function(r,i,a,s){var p=this,m=function(w){w.properties.forEach(function(E){var k=E.keyNode.value;s.add({kind:ln.Property,label:p.sanitizeLabel(k),insertText:p.getInsertTextForValue(k,""),insertTextFormat:Pr.Snippet,filterText:p.getFilterTextForValue(k),documentation:""})})};if(i.parent)if(i.parent.type==="property"){var S=i.parent.keyNode.value;r.visit(function(w){return w.type==="property"&&w!==i.parent&&w.keyNode.value===S&&w.valueNode&&w.valueNode.type==="object"&&m(w.valueNode),!0})}else i.parent.type==="array"&&i.parent.items.forEach(function(w){w.type==="object"&&w!==i&&m(w)});else i.type==="object"&&s.add({kind:ln.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:Pr.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},t.prototype.getSchemaLessValueCompletions=function(r,i,a,s,p){var m=this,S=a;if(i&&(i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(S=i.offset+i.length,i=i.parent),!i){p.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Pr.Snippet,documentation:""}),p.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Pr.Snippet,documentation:""});return}var w=this.evaluateSeparatorAfter(s,S),E=function(re){al(re.parent,a,!0)||p.add({kind:m.getSuggestionKind(re.type),label:m.getLabelTextForMatchingNode(re,s),insertText:m.getInsertTextForMatchingNode(re,s,w),insertTextFormat:Pr.Snippet,documentation:""}),re.type==="boolean"&&m.addBooleanValueCompletion(!re.value,w,p)};if(i.type==="property"&&a>i.colonOffset){var k=i.valueNode;if(k&&(a>k.offset+k.length||k.type==="object"||k.type==="array"))return;var $=i.keyNode.value;r.visit(function(re){return re.type==="property"&&re.keyNode.value===$&&re.valueNode&&E(re.valueNode),!0}),$==="$schema"&&i.parent&&!i.parent.parent&&this.addDollarSchemaCompletions(w,p)}if(i.type==="array")if(i.parent&&i.parent.type==="property"){var oe=i.parent.keyNode.value;r.visit(function(re){return re.type==="property"&&re.keyNode.value===oe&&re.valueNode&&re.valueNode.type==="array"&&re.valueNode.items.forEach(E),!0})}else i.items.forEach(E)},t.prototype.getValueCompletions=function(r,i,a,s,p,m,S){var w=this,E=s,k=null,$=null;if(a&&(a.type==="string"||a.type==="number"||a.type==="boolean"||a.type==="null")&&(E=a.offset+a.length,$=a,a=a.parent),!a){this.addSchemaValueCompletions(r.schema,"",m,S);return}if(a.type==="property"&&s>a.colonOffset){var oe=a.valueNode;if(oe&&s>oe.offset+oe.length)return;k=a.keyNode.value,a=a.parent}if(a&&(k!==null||a.type==="array")){var re=this.evaluateSeparatorAfter(p,E),ce=i.getMatchingSchemas(r.schema,a.offset,$);ce.forEach(function(ve){if(ve.node===a&&!ve.inverted&&ve.schema){if(a.type==="array"&&ve.schema.items)if(Array.isArray(ve.schema.items)){var he=w.findItemAtOffset(a,p,s);he<ve.schema.items.length&&w.addSchemaValueCompletions(ve.schema.items[he],re,m,S)}else w.addSchemaValueCompletions(ve.schema.items,re,m,S);if(ve.schema.properties){var Se=ve.schema.properties[k];Se&&w.addSchemaValueCompletions(Se,re,m,S)}}}),k==="$schema"&&!a.parent&&this.addDollarSchemaCompletions(re,m),S.boolean&&(this.addBooleanValueCompletion(!0,re,m),this.addBooleanValueCompletion(!1,re,m)),S.null&&this.addNullValueCompletion(re,m)}},t.prototype.getContributedValueCompletions=function(r,i,a,s,p,m){if(!i)this.contributions.forEach(function(k){var $=k.collectDefaultCompletions(s.uri,p);$&&m.push($)});else if((i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(i=i.parent),i.type==="property"&&a>i.colonOffset){var S=i.keyNode.value,w=i.valueNode;if(!w||a<=w.offset+w.length){var E=_a(i.parent);this.contributions.forEach(function(k){var $=k.collectValueCompletions(s.uri,E,S,p);$&&m.push($)})}}},t.prototype.addSchemaValueCompletions=function(r,i,a,s){var p=this;typeof r=="object"&&(this.addEnumValueCompletions(r,i,a),this.addDefaultValueCompletions(r,i,a),this.collectTypes(r,s),Array.isArray(r.allOf)&&r.allOf.forEach(function(m){return p.addSchemaValueCompletions(m,i,a,s)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(m){return p.addSchemaValueCompletions(m,i,a,s)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(m){return p.addSchemaValueCompletions(m,i,a,s)}))},t.prototype.addDefaultValueCompletions=function(r,i,a,s){var p=this;s===void 0&&(s=0);var m=!1;if(yn(r.default)){for(var S=r.type,w=r.default,E=s;E>0;E--)w=[w],S="array";a.add({kind:this.getSuggestionKind(S),label:this.getLabelForValue(w),insertText:this.getInsertTextForValue(w,i),insertTextFormat:Pr.Snippet}),m=!0}Array.isArray(r.examples)&&r.examples.forEach(function(k){for(var $=r.type,oe=k,re=s;re>0;re--)oe=[oe],$="array";a.add({kind:p.getSuggestionKind($),label:p.getLabelForValue(oe),insertText:p.getInsertTextForValue(oe,i),insertTextFormat:Pr.Snippet}),m=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(k){var $=r.type,oe=k.body,re=k.label,ce,ve;if(yn(oe)){for(var he=r.type,Se=s;Se>0;Se--)oe=[oe],he="array";ce=p.getInsertTextForSnippetValue(oe,i),ve=p.getFilterTextForSnippetValue(oe),re=re||p.getLabelForSnippetValue(oe)}else if(typeof k.bodyText=="string"){for(var me="",Fe="",$e="",Se=s;Se>0;Se--)me=me+$e+`[
|
|
175
|
-
`,Fe=Fe+`
|
|
176
|
-
`+$e+"]",$e+=" ",$="array";ce=me+$e+k.bodyText.split(`
|
|
177
|
-
`).join(`
|
|
178
|
-
`+$e)+Fe+i,re=re||p.sanitizeLabel(ce),ve=ce.replace(/[\n]/g,"")}a.add({kind:p.getSuggestionKind($),label:re,documentation:p.fromMarkup(k.markdownDescription)||k.description,insertText:ce,insertTextFormat:Pr.Snippet,filterText:ve}),m=!0}),!m&&typeof r.items=="object"&&!Array.isArray(r.items)&&this.addDefaultValueCompletions(r.items,i,a,s+1)},t.prototype.addEnumValueCompletions=function(r,i,a){if(yn(r.const)&&a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(r.const),insertText:this.getInsertTextForValue(r.const,i),insertTextFormat:Pr.Snippet,documentation:this.fromMarkup(r.markdownDescription)||r.description}),Array.isArray(r.enum))for(var s=0,p=r.enum.length;s<p;s++){var m=r.enum[s],S=this.fromMarkup(r.markdownDescription)||r.description;r.markdownEnumDescriptions&&s<r.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?S=this.fromMarkup(r.markdownEnumDescriptions[s]):r.enumDescriptions&&s<r.enumDescriptions.length&&(S=r.enumDescriptions[s]),a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(m),insertText:this.getInsertTextForValue(m,i),insertTextFormat:Pr.Snippet,documentation:S})}},t.prototype.collectTypes=function(r,i){if(!(Array.isArray(r.enum)||yn(r.const))){var a=r.type;Array.isArray(a)?a.forEach(function(s){return i[s]=!0}):i[a]=!0}},t.prototype.addFillerValueCompletions=function(r,i,a){r.object&&a.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},i),insertTextFormat:Pr.Snippet,detail:"New object",documentation:""}),r.array&&a.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],i),insertTextFormat:Pr.Snippet,detail:"New array",documentation:""})},t.prototype.addBooleanValueCompletion=function(r,i,a){a.add({kind:this.getSuggestionKind("boolean"),label:r?"true":"false",insertText:this.getInsertTextForValue(r,i),insertTextFormat:Pr.Snippet,documentation:""})},t.prototype.addNullValueCompletion=function(r,i){i.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+r,insertTextFormat:Pr.Snippet,documentation:""})},t.prototype.addDollarSchemaCompletions=function(r,i){var a=this,s=this.schemaService.getRegisteredSchemaIds(function(p){return p==="http"||p==="https"});s.forEach(function(p){return i.add({kind:ln.Module,label:a.getLabelForValue(p),filterText:a.getFilterTextForValue(p),insertText:a.getInsertTextForValue(p,r),insertTextFormat:Pr.Snippet,documentation:""})})},t.prototype.sanitizeLabel=function(r){return r=r.replace(/[\n]/g,"\u21B5"),r.length>57&&(r=r.substr(0,57).trim()+"..."),r},t.prototype.getLabelForValue=function(r){return this.sanitizeLabel(JSON.stringify(r))},t.prototype.getFilterTextForValue=function(r){return JSON.stringify(r)},t.prototype.getFilterTextForSnippetValue=function(r){return JSON.stringify(r).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},t.prototype.getLabelForSnippetValue=function(r){var i=JSON.stringify(r);return i=i.replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1"),this.sanitizeLabel(i)},t.prototype.getInsertTextForPlainText=function(r){return r.replace(/[\\\$\}]/g,"\\$&")},t.prototype.getInsertTextForValue=function(r,i){var a=JSON.stringify(r,null," ");return a==="{}"?"{$1}"+i:a==="[]"?"[$1]"+i:this.getInsertTextForPlainText(a+i)},t.prototype.getInsertTextForSnippetValue=function(r,i){var a=function(s){return typeof s=="string"&&s[0]==="^"?s.substr(1):JSON.stringify(s)};return qa(r,"",a)+i},t.prototype.getInsertTextForGuessedValue=function(r,i){switch(typeof r){case"object":return r===null?"${1:null}"+i:this.getInsertTextForValue(r,i);case"string":var a=JSON.stringify(r);return a=a.substr(1,a.length-2),a=this.getInsertTextForPlainText(a),'"${1:'+a+'}"'+i;case"number":case"boolean":return"${1:"+JSON.stringify(r)+"}"+i}return this.getInsertTextForValue(r,i)},t.prototype.getSuggestionKind=function(r){if(Array.isArray(r)){var i=r;r=i.length>0?i[0]:null}if(!r)return ln.Value;switch(r){case"string":return ln.Value;case"object":return ln.Module;case"property":return ln.Property;default:return ln.Value}},t.prototype.getLabelTextForMatchingNode=function(r,i){switch(r.type){case"array":return"[]";case"object":return"{}";default:var a=i.getText().substr(r.offset,r.length);return a}},t.prototype.getInsertTextForMatchingNode=function(r,i,a){switch(r.type){case"array":return this.getInsertTextForValue([],a);case"object":return this.getInsertTextForValue({},a);default:var s=i.getText().substr(r.offset,r.length)+a;return this.getInsertTextForPlainText(s)}},t.prototype.getInsertTextForProperty=function(r,i,a,s){var p=this.getInsertTextForValue(r,"");if(!a)return p;var m=p+": ",S,w=0;if(i){if(Array.isArray(i.defaultSnippets)){if(i.defaultSnippets.length===1){var E=i.defaultSnippets[0].body;yn(E)&&(S=this.getInsertTextForSnippetValue(E,""))}w+=i.defaultSnippets.length}if(i.enum&&(!S&&i.enum.length===1&&(S=this.getInsertTextForGuessedValue(i.enum[0],"")),w+=i.enum.length),yn(i.default)&&(S||(S=this.getInsertTextForGuessedValue(i.default,"")),w++),w===0){var k=Array.isArray(i.type)?i.type[0]:i.type;switch(k||(i.properties?k="object":i.items&&(k="array")),k){case"boolean":S="$1";break;case"string":S='"$1"';break;case"object":S="{$1}";break;case"array":S="[$1]";break;case"number":case"integer":S="${1:0}";break;case"null":S="${1:null}";break;default:return p}}}return(!S||w>1)&&(S="$1"),m+S+s},t.prototype.getCurrentWord=function(r,i){for(var a=i-1,s=r.getText();a>=0&&`
|
|
179
|
-
\r\v":{[,]}`.indexOf(s.charAt(a))===-1;)a--;return s.substring(a+1,i)},t.prototype.evaluateSeparatorAfter=function(r,i){var a=Ti(r.getText(),!0);a.setPosition(i);var s=a.scan();switch(s){case 5:case 2:case 4:case 17:return"";default:return","}},t.prototype.findItemAtOffset=function(r,i,a){for(var s=Ti(i.getText(),!0),p=r.items,m=p.length-1;m>=0;m--){var S=p[m];if(a>S.offset+S.length){s.setPosition(S.offset+S.length);var w=s.scan();return w===5&&a>=s.getTokenOffset()+s.getTokenLength()?m+1:m}else if(a>=S.offset)return m}return 0},t.prototype.isInComment=function(r,i,a){var s=Ti(r.getText(),!1);s.setPosition(i);for(var p=s.scan();p!==17&&s.getTokenOffset()+s.getTokenLength()<a;)p=s.scan();return(p===12||p===13)&&s.getTokenOffset()<=a},t.prototype.fromMarkup=function(r){if(r&&this.doesSupportMarkdown())return{kind:zn.Markdown,value:r}},t.prototype.doesSupportMarkdown=function(){if(!yn(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(zn.Markdown)!==-1}return this.supportsMarkdown},t.prototype.doesSupportsCommitCharacters=function(){if(!yn(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},t}(),ko=function(){function t(r,i,a){i===void 0&&(i=[]),this.schemaService=r,this.contributions=i,this.promise=a||Promise}return t.prototype.doHover=function(r,i,a){var s=r.offsetAt(i),p=a.getNodeFromOffset(s);if(!p||(p.type==="object"||p.type==="array")&&s>p.offset+1&&s<p.offset+p.length-1)return this.promise.resolve(null);var m=p;if(p.type==="string"){var S=p.parent;if(S&&S.type==="property"&&S.keyNode===p&&(p=S.valueNode,!p))return this.promise.resolve(null)}for(var w=tr.create(r.positionAt(m.offset),r.positionAt(m.offset+m.length)),E=function(ce){var ve={contents:ce,range:w};return ve},k=_a(p),$=this.contributions.length-1;$>=0;$--){var oe=this.contributions[$],re=oe.getInfoContribution(r.uri,k);if(re)return re.then(function(ce){return E(ce)})}return this.schemaService.getSchemaForResource(r.uri,a).then(function(ce){if(ce){var ve=a.getMatchingSchemas(ce.schema,p.offset),he=null,Se=null,me=null,Fe=null;ve.every(function(Ue){if(Ue.node===p&&!Ue.inverted&&Ue.schema&&(he=he||Ue.schema.title,Se=Se||Ue.schema.markdownDescription||es(Ue.schema.description),Ue.schema.enum)){var ze=Ue.schema.enum.indexOf(fi(p));Ue.schema.markdownEnumDescriptions?me=Ue.schema.markdownEnumDescriptions[ze]:Ue.schema.enumDescriptions&&(me=es(Ue.schema.enumDescriptions[ze])),me&&(Fe=Ue.schema.enum[ze],typeof Fe!="string"&&(Fe=JSON.stringify(Fe)))}return!0});var $e="";return he&&($e=es(he)),Se&&($e.length>0&&($e+=`
|
|
180
|
-
|
|
181
|
-
`),$e+=Se),me&&($e.length>0&&($e+=`
|
|
182
|
-
|
|
183
|
-
`),$e+="`"+wu(Fe)+"`: "+me),E([$e])}return null})},t}();function es(t){if(t){var r=t.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
|
|
184
|
-
|
|
185
|
-
$3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function wu(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}var Su=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var p in s)s.hasOwnProperty(p)&&(a[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),dr,ci;if(typeof process=="object")ci=!1;else if(typeof navigator=="object"){var aa=navigator.userAgent;ci=aa.indexOf("Windows")>=0}function ts(t){return 55296<=t&&t<=56319}function Jf(t){return 56320<=t&&t<=57343}function Td(t){return t>=97&&t<=102}function Au(t){return t>=97&&t<=122}function Di(t){return t>=65&&t<=90}function sa(t){return Au(t)||Di(t)}var la=/^\w[\w\d+.-]*$/,Xf=/^\//,Eu=/^\/\//;function Qf(t,r){if(!t.scheme&&r)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+t.authority+'", path: "'+t.path+'", query: "'+t.query+'", fragment: "'+t.fragment+'"}');if(t.scheme&&!la.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Xf.test(t.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(Eu.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Zf(t,r){return!t&&!r?"file":t}function _f(t,r){switch(t){case"https":case"http":case"file":r?r[0]!==kn&&(r=kn+r):r=kn;break}return r}var Vt="",kn="/",qf=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,ll=function(){function t(r,i,a,s,p,m){m===void 0&&(m=!1),typeof r=="object"?(this.scheme=r.scheme||Vt,this.authority=r.authority||Vt,this.path=r.path||Vt,this.query=r.query||Vt,this.fragment=r.fragment||Vt):(this.scheme=Zf(r,m),this.authority=i||Vt,this.path=_f(this.scheme,a||Vt),this.query=s||Vt,this.fragment=p||Vt,Qf(this,m))}return t.isUri=function(r){return r instanceof t?!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(t.prototype,"fsPath",{get:function(){return Ou(this,!1)},enumerable:!0,configurable:!0}),t.prototype.with=function(r){if(!r)return this;var i=r.scheme,a=r.authority,s=r.path,p=r.query,m=r.fragment;return i===void 0?i=this.scheme:i===null&&(i=Vt),a===void 0?a=this.authority:a===null&&(a=Vt),s===void 0?s=this.path:s===null&&(s=Vt),p===void 0?p=this.query:p===null&&(p=Vt),m===void 0?m=this.fragment:m===null&&(m=Vt),i===this.scheme&&a===this.authority&&s===this.path&&p===this.query&&m===this.fragment?this:new oo(i,a,s,p,m)},t.parse=function(r,i){i===void 0&&(i=!1);var a=qf.exec(r);return a?new oo(a[2]||Vt,ao(a[4]||Vt),ao(a[5]||Vt),ao(a[7]||Vt),ao(a[9]||Vt),i):new oo(Vt,Vt,Vt,Vt,Vt)},t.file=function(r){var i=Vt;if(ci&&(r=r.replace(/\\/g,kn)),r[0]===kn&&r[1]===kn){var a=r.indexOf(kn,2);a===-1?(i=r.substring(2),r=kn):(i=r.substring(2,a),r=r.substring(a)||kn)}return new oo("file",i,r,Vt,Vt)},t.from=function(r){return new oo(r.scheme,r.authority,r.path,r.query,r.fragment)},t.prototype.toString=function(r){return r===void 0&&(r=!1),cl(this,r)},t.prototype.toJSON=function(){return this},t.revive=function(r){if(r){if(r instanceof t)return r;var i=new oo(r);return i._formatted=r.external,i._fsPath=r._sep===Cu?r.fsPath:null,i}else return r},t}(),Cu=ci?1:void 0,oo=function(t){Su(r,t);function r(){var i=t!==null&&t.apply(this,arguments)||this;return i._formatted=null,i._fsPath=null,i}return Object.defineProperty(r.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=Ou(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(i){return i===void 0&&(i=!1),i?cl(this,!0):(this._formatted||(this._formatted=cl(this,!1)),this._formatted)},r.prototype.toJSON=function(){var i={$mid:1};return this._fsPath&&(i.fsPath=this._fsPath,i._sep=Cu),this._formatted&&(i.external=this._formatted),this.path&&(i.path=this.path),this.scheme&&(i.scheme=this.scheme),this.authority&&(i.authority=this.authority),this.query&&(i.query=this.query),this.fragment&&(i.fragment=this.fragment),i},r}(ll),ul=(dr={},dr[58]="%3A",dr[47]="%2F",dr[63]="%3F",dr[35]="%23",dr[91]="%5B",dr[93]="%5D",dr[64]="%40",dr[33]="%21",dr[36]="%24",dr[38]="%26",dr[39]="%27",dr[40]="%28",dr[41]="%29",dr[42]="%2A",dr[43]="%2B",dr[44]="%2C",dr[59]="%3B",dr[61]="%3D",dr[32]="%20",dr);function fl(t,r){for(var i=void 0,a=-1,s=0;s<t.length;s++){var p=t.charCodeAt(s);if(p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===45||p===46||p===95||p===126||r&&p===47)a!==-1&&(i+=encodeURIComponent(t.substring(a,s)),a=-1),i!==void 0&&(i+=t.charAt(s));else{i===void 0&&(i=t.substr(0,s));var m=ul[p];m!==void 0?(a!==-1&&(i+=encodeURIComponent(t.substring(a,s)),a=-1),i+=m):a===-1&&(a=s)}}return a!==-1&&(i+=encodeURIComponent(t.substring(a))),i!==void 0?i:t}function ec(t){for(var r=void 0,i=0;i<t.length;i++){var a=t.charCodeAt(i);a===35||a===63?(r===void 0&&(r=t.substr(0,i)),r+=ul[a]):r!==void 0&&(r+=t[i])}return r!==void 0?r:t}function Ou(t,r){var i;return t.authority&&t.path.length>1&&t.scheme==="file"?i="//"+t.authority+t.path:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?r?i=t.path.substr(1):i=t.path[1].toLowerCase()+t.path.substr(2):i=t.path,ci&&(i=i.replace(/\//g,"\\")),i}function cl(t,r){var i=r?ec:fl,a="",s=t.scheme,p=t.authority,m=t.path,S=t.query,w=t.fragment;if(s&&(a+=s,a+=":"),(p||s==="file")&&(a+=kn,a+=kn),p){var E=p.indexOf("@");if(E!==-1){var k=p.substr(0,E);p=p.substr(E+1),E=k.indexOf(":"),E===-1?a+=i(k,!1):(a+=i(k.substr(0,E),!1),a+=":",a+=i(k.substr(E+1),!1)),a+="@"}p=p.toLowerCase(),E=p.indexOf(":"),E===-1?a+=i(p,!1):(a+=i(p.substr(0,E),!1),a+=p.substr(E))}if(m){if(m.length>=3&&m.charCodeAt(0)===47&&m.charCodeAt(2)===58){var $=m.charCodeAt(1);$>=65&&$<=90&&(m="/"+String.fromCharCode($+32)+":"+m.substr(3))}else if(m.length>=2&&m.charCodeAt(1)===58){var $=m.charCodeAt(0);$>=65&&$<=90&&(m=String.fromCharCode($+32)+":"+m.substr(2))}a+=i(m,!0)}return S&&(a+="?",a+=i(S,!1)),w&&(a+="#",a+=r?w:fl(w,!1)),a}function di(t){try{return decodeURIComponent(t)}catch(r){return t.length>3?t.substr(0,3)+di(t.substr(3)):t}}var Ro=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ao(t){return t.match(Ro)?t.replace(Ro,function(r){return di(r)}):t}var ua=function(){function t(r){try{this.patternRegExp=new RegExp(xu(r)+"$")}catch(i){this.patternRegExp=null}this.schemas=[]}return t.prototype.addSchema=function(r){this.schemas.push(r)},t.prototype.matchesPattern=function(r){return this.patternRegExp&&this.patternRegExp.test(r)},t.prototype.getSchemas=function(){return this.schemas},t}(),pi=function(){function t(r,i,a){this.service=r,this.url=i,this.dependencies={},a&&(this.unresolvedSchema=this.service.promise.resolve(new Mo(a)))}return t.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},t.prototype.getResolvedSchema=function(){var r=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(i){return r.service.resolveSchemaContent(i,r.url,r.dependencies)})),this.resolvedSchema},t.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},t}(),Mo=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t}(),Tu=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t.prototype.getSection=function(r){return rn(this.getSectionRecursive(r,this.schema))},t.prototype.getSectionRecursive=function(r,i){if(!i||typeof i=="boolean"||r.length===0)return i;var a=r.shift();if(i.properties&&typeof i.properties[a])return this.getSectionRecursive(r,i.properties[a]);if(i.patternProperties)for(var s=0,p=Object.keys(i.patternProperties);s<p.length;s++){var m=p[s],S=new RegExp(m);if(S.test(a))return this.getSectionRecursive(r,i.patternProperties[m])}else{if(typeof i.additionalProperties=="object")return this.getSectionRecursive(r,i.additionalProperties);if(a.match("[0-9]+")){if(Array.isArray(i.items)){var w=parseInt(a,10);if(!isNaN(w)&&i.items[w])return this.getSectionRecursive(r,i.items[w])}else if(i.items)return this.getSectionRecursive(r,i.items)}}return null},t}(),Lo=function(){function t(r,i,a){this.contextService=i,this.requestService=r,this.promiseConstructor=a||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return t.prototype.getRegisteredSchemaIds=function(r){return Object.keys(this.registeredSchemasIds).filter(function(i){var a=ll.parse(i).scheme;return a!=="schemaservice"&&(!r||r(a))})},Object.defineProperty(t.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},t.prototype.onResourceChange=function(r){var i=this,a=!1;r=this.normalizeId(r);for(var s=[r],p=Object.keys(this.schemasById).map(function(E){return i.schemasById[E]});s.length;)for(var m=s.pop(),S=0;S<p.length;S++){var w=p[S];w&&(w.url===m||w.dependencies[m])&&(w.url!==m&&s.push(w.url),w.clearSchema(),p[S]=void 0,a=!0)}return a},t.prototype.normalizeId=function(r){try{return ll.parse(r).toString()}catch(i){return r}},t.prototype.setSchemaContributions=function(r){if(r.schemas){var i=r.schemas;for(var a in i){var s=this.normalizeId(a);this.contributionSchemas[s]=this.addSchemaHandle(s,i[a])}}if(r.schemaAssociations){var p=r.schemaAssociations;for(var m in p){var S=p[m];this.contributionAssociations[m]=S;for(var w=this.getOrAddFilePatternAssociation(m),E=0,k=S;E<k.length;E++){var $=k[E],a=this.normalizeId($);w.addSchema(a)}}}},t.prototype.addSchemaHandle=function(r,i){var a=new pi(this,r,i);return this.schemasById[r]=a,a},t.prototype.getOrAddSchemaHandle=function(r,i){return this.schemasById[r]||this.addSchemaHandle(r,i)},t.prototype.getOrAddFilePatternAssociation=function(r){var i=this.filePatternAssociationById[r];return i||(i=new ua(r),this.filePatternAssociationById[r]=i,this.filePatternAssociations.push(i)),i},t.prototype.registerExternalSchema=function(r,i,a){i===void 0&&(i=null);var s=this.normalizeId(r);if(this.registeredSchemasIds[s]=!0,i)for(var p=0,m=i;p<m.length;p++){var S=m[p];this.getOrAddFilePatternAssociation(S).addSchema(s)}return a?this.addSchemaHandle(s,a):this.getOrAddSchemaHandle(s)},t.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 i in this.contributionAssociations)for(var a=this.getOrAddFilePatternAssociation(i),s=0,p=this.contributionAssociations[i];s<p.length;s++){var m=p[s],r=this.normalizeId(m);a.addSchema(r)}},t.prototype.getResolvedSchema=function(r){var i=this.normalizeId(r),a=this.schemasById[i];return a?a.getResolvedSchema():this.promise.resolve(null)},t.prototype.loadSchema=function(r){if(!this.requestService){var i="Unable to load schema from '"+fa(r)+"'. No schema request service available";return this.promise.resolve(new Mo({},[i]))}return this.requestService(r).then(function(a){if(!a){var s="Unable to load schema from '"+fa(r)+"': No content.";return new Mo({},[s])}var p={},m=[];p=Uf(a,m);var S=m.length?["Unable to parse content from '"+fa(r)+"': Parse error at offset "+m[0].offset]:[];return new Mo(p,S)},function(a){var s="Unable to load schema from '"+fa(r)+"': "+a.toString();return new Mo({},[s])})},t.prototype.resolveSchemaContent=function(r,i,a){var s=this,p=r.errors.slice(0),m=r.schema;if(m.$schema){var S=this.normalizeId(m.$schema);if(S==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Tu({},["Draft-03 schemas are not supported."]));S==="https://json-schema.org/draft/2019-09/schema"&&r.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var w=this.contextService,E=function(re,ce){if(!ce)return re;var ve=re;return ce[0]==="/"&&(ce=ce.substr(1)),ce.split("/").some(function(he){return ve=ve[he],!ve}),ve},k=function(re,ce,ve,he){var Se=E(ce,he);if(Se)for(var me in Se)Se.hasOwnProperty(me)&&!re.hasOwnProperty(me)&&(re[me]=Se[me]);else p.push("$ref '"+he+"' in '"+ve+"' can not be resolved.")},$=function(re,ce,ve,he,Se){w&&!/^\w+:\/\/.*/.test(ce)&&(ce=w.resolveRelativePath(ce,he)),ce=s.normalizeId(ce);var me=s.getOrAddSchemaHandle(ce);return me.getUnresolvedSchema().then(function(Fe){if(Se[ce]=!0,Fe.errors.length){var $e=ve?ce+"#"+ve:ce;p.push("Problems loading reference '"+$e+"': "+Fe.errors[0]+".")}return k(re,Fe.schema,ce,ve),oe(re,Fe.schema,ce,me.dependencies)})},oe=function(re,ce,ve,he){if(!re||typeof re!="object")return Promise.resolve(null);for(var Se=[re],me=[],Fe=[],$e=function(){for(var We=[],Xe=0;Xe<arguments.length;Xe++)We[Xe]=arguments[Xe];for(var et=0,Ke=We;et<Ke.length;et++){var ht=Ke[et];typeof ht=="object"&&Se.push(ht)}},Ue=function(){for(var We=[],Xe=0;Xe<arguments.length;Xe++)We[Xe]=arguments[Xe];for(var et=0,Ke=We;et<Ke.length;et++){var ht=Ke[et];if(typeof ht=="object")for(var Mt in ht){var Wt=ht[Mt];typeof Wt=="object"&&Se.push(Wt)}}},ze=function(){for(var We=[],Xe=0;Xe<arguments.length;Xe++)We[Xe]=arguments[Xe];for(var et=0,Ke=We;et<Ke.length;et++){var ht=Ke[et];if(Array.isArray(ht))for(var Mt=0,Wt=ht;Mt<Wt.length;Mt++){var lr=Wt[Mt];typeof lr=="object"&&Se.push(lr)}}},Be=function(We){for(var Xe=[];We.$ref;){var et=We.$ref,Ke=et.split("#",2);if(delete We.$ref,Ke[0].length>0){Fe.push($(We,Ke[0],Ke[1],ve,he));return}else Xe.indexOf(et)===-1&&(k(We,ce,ve,Ke[1]),Xe.push(et))}$e(We.items,We.additionalProperties,We.not,We.contains,We.propertyNames,We.if,We.then,We.else),Ue(We.definitions,We.properties,We.patternProperties,We.dependencies),ze(We.anyOf,We.allOf,We.oneOf,We.items)};Se.length;){var je=Se.pop();me.indexOf(je)>=0||(me.push(je),Be(je))}return s.promise.all(Fe)};return oe(m,m,i,a).then(function(re){return new Tu(m,p)})},t.prototype.getSchemaForResource=function(r,i){if(i&&i.root&&i.root.type==="object"){var a=i.root.properties.filter(function(ce){return ce.keyNode.value==="$schema"&&ce.valueNode&&ce.valueNode.type==="string"});if(a.length>0){var s=fi(a[0].valueNode);if(s&&mu(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,r)),s){var p=this.normalizeId(s);return this.getOrAddSchemaHandle(p).getResolvedSchema()}}}for(var m=Object.create(null),S=[],w=0,E=this.filePatternAssociations;w<E.length;w++){var k=E[w];if(k.matchesPattern(r))for(var $=0,oe=k.getSchemas();$<oe.length;$++){var re=oe[$];m[re]||(S.push(re),m[re]=!0)}}return S.length>0?this.createCombinedSchema(r,S).getResolvedSchema():this.promise.resolve(null)},t.prototype.createCombinedSchema=function(r,i){if(i.length===1)return this.getOrAddSchemaHandle(i[0]);var a="schemaservice://combinedSchema/"+encodeURIComponent(r),s={allOf:i.map(function(p){return{$ref:p}})};return this.addSchemaHandle(a,s)},t}();function fa(t){try{}catch(r){}return t}var Pu=function(){function t(r,i){this.jsonSchemaService=r,this.promise=i,this.validationEnabled=!0}return t.prototype.configure=function(r){r&&(this.validationEnabled=r.validate,this.commentSeverity=r.allowComments?void 0:Ht.Error)},t.prototype.doValidation=function(r,i,a,s){var p=this;if(!this.validationEnabled)return this.promise.resolve([]);var m=[],S={},w=function($){var oe=$.range.start.line+" "+$.range.start.character+" "+$.message;S[oe]||(S[oe]=!0,m.push($))},E=function($){var oe=a?rs(a.trailingCommas):Ht.Error,re=a?rs(a.comments):p.commentSeverity;if($){if($.errors.length&&i.root){var ce=i.root,ve=ce.type==="object"?ce.properties[0]:null;if(ve&&ve.keyNode.value==="$schema"){var he=ve.valueNode||ve,Se=tr.create(r.positionAt(he.offset),r.positionAt(he.offset+he.length));w(si.create(Se,$.errors[0],Ht.Warning,Yt.SchemaResolveError))}else{var Se=tr.create(r.positionAt(ce.offset),r.positionAt(ce.offset+1));w(si.create(Se,$.errors[0],Ht.Warning,Yt.SchemaResolveError))}}else{var me=i.validate(r,$.schema);me&&me.forEach(w)}ca($.schema)&&(re=void 0),so($.schema)&&(oe=void 0)}for(var Fe=0,$e=i.syntaxErrors;Fe<$e.length;Fe++){var Ue=$e[Fe];if(Ue.code===Yt.TrailingComma){if(typeof oe!="number")continue;Ue.severity=oe}w(Ue)}if(typeof re=="number"){var ze="Comments are not permitted in JSON.";i.comments.forEach(function(Be){w(si.create(Be,ze,re,Yt.CommentNotPermitted))})}return m};if(s){var k=s.id||"schemaservice://untitled/"+Iu++;return this.jsonSchemaService.resolveSchemaContent(new Mo(s),k,{}).then(function($){return E($)})}return this.jsonSchemaService.getSchemaForResource(r.uri,i).then(function($){return E($)})},t}(),Iu=0;function ca(t){if(t&&typeof t=="object"){if(mn(t.allowComments))return t.allowComments;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var a=i[r],s=ca(a);if(mn(s))return s}}}function so(t){if(t&&typeof t=="object"){if(mn(t.allowTrailingCommas))return t.allowTrailingCommas;if(mn(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var a=i[r],s=so(a);if(mn(s))return s}}}function rs(t){switch(t){case"error":return Ht.Error;case"warning":return Ht.Warning;case"ignore":return}}var ns=48,dl=57,tc=65,Ni=97,Fu=102;function Ir(t){return t<ns?0:t<=dl?t-ns:(t<Ni&&(t+=Ni-tc),t>=Ni&&t<=Fu?t-Ni+10:0)}function ku(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:Ir(t.charCodeAt(1))*17/255,green:Ir(t.charCodeAt(2))*17/255,blue:Ir(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Ir(t.charCodeAt(1))*17/255,green:Ir(t.charCodeAt(2))*17/255,blue:Ir(t.charCodeAt(3))*17/255,alpha:Ir(t.charCodeAt(4))*17/255};case 7:return{red:(Ir(t.charCodeAt(1))*16+Ir(t.charCodeAt(2)))/255,green:(Ir(t.charCodeAt(3))*16+Ir(t.charCodeAt(4)))/255,blue:(Ir(t.charCodeAt(5))*16+Ir(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Ir(t.charCodeAt(1))*16+Ir(t.charCodeAt(2)))/255,green:(Ir(t.charCodeAt(3))*16+Ir(t.charCodeAt(4)))/255,blue:(Ir(t.charCodeAt(5))*16+Ir(t.charCodeAt(6)))/255,alpha:(Ir(t.charCodeAt(7))*16+Ir(t.charCodeAt(8)))/255}}return null}function pl(t,r,i,a){return a===void 0&&(a=1),{red:t/255,green:r/255,blue:i/255,alpha:a}}var rc=function(){function t(r){this.schemaService=r}return t.prototype.findDocumentSymbols=function(r,i,a){var s=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var p=i.root;if(!p)return null;var m=a.resultLimit,S=r.uri;if((S==="vscode://defaultsettings/keybindings.json"||Li(S.toLowerCase(),"/user/keybindings.json"))&&p.type==="array"){for(var w=[],E=0,k=p.items;E<k.length;E++){var $=k[E];if($.type==="object")for(var oe=0,re=$.properties;oe<re.length;oe++){var ce=re[oe];if(ce.keyNode.value==="key"&&ce.valueNode){var ve=Wn.create(r.uri,Bi(r,$));if(w.push({name:fi(ce.valueNode),kind:Sr.Function,location:ve}),m--,m<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(S),w}}}return w}var he=function(me,Fe,$e){return m>=0&&(Fe.type==="array"?Fe.items.forEach(function(Ue){return he(me,Ue,$e)}):Fe.type==="object"&&Fe.properties.forEach(function(Ue){if(m>=0){var ze=Ue.valueNode;if(ze){m--;var Be=Wn.create(r.uri,Bi(r,Ue)),je=$e?$e+"."+Ue.keyNode.value:Ue.keyNode.value;me.push({name:s.getKeyLabel(Ue),kind:s.getSymbolKind(ze.type),location:Be,containerName:$e}),he(me,ze,je)}}})),me},Se=he([],p,void 0);return m<0&&(Se.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(S)),Se},t.prototype.findDocumentSymbols2=function(r,i,a){var s=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var p=i.root;if(!p)return null;var m=a.resultLimit,S=r.uri;if((S==="vscode://defaultsettings/keybindings.json"||Li(S.toLowerCase(),"/user/keybindings.json"))&&p.type==="array"){for(var w=[],E=0,k=p.items;E<k.length;E++){var $=k[E];if($.type==="object")for(var oe=0,re=$.properties;oe<re.length;oe++){var ce=re[oe];if(ce.keyNode.value==="key"&&ce.valueNode){var ve=Bi(r,$),he=Bi(r,ce.keyNode);if(w.push({name:fi(ce.valueNode),kind:Sr.Function,range:ve,selectionRange:he}),m--,m<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(S),w}}}return w}var Se=function(Fe,$e){return m>=0&&($e.type==="array"?$e.items.forEach(function(Ue,ze){if(Ue&&m>=0){m--;var Be=Bi(r,Ue),je=Be,We=String(ze),Xe=Se([],Ue);Fe.push({name:We,kind:s.getSymbolKind(Ue.type),range:Be,selectionRange:je,children:Xe})}}):$e.type==="object"&&$e.properties.forEach(function(Ue){var ze=Ue.valueNode;if(ze&&m>=0){m--;var Be=Bi(r,Ue),je=Bi(r,Ue.keyNode),We=Se([],ze);Fe.push({name:s.getKeyLabel(Ue),kind:s.getSymbolKind(ze.type),range:Be,selectionRange:je,children:We})}})),Fe},me=Se([],p);return m<0&&(me.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(S)),me},t.prototype.getSymbolKind=function(r){switch(r){case"object":return Sr.Module;case"string":return Sr.String;case"number":return Sr.Number;case"array":return Sr.Array;case"boolean":return Sr.Boolean;default:return Sr.Variable}},t.prototype.getKeyLabel=function(r){var i=r.keyNode.value;return i&&(i=i.replace(/[\n]/g,"\u21B5")),i&&i.trim()?i:'"'+i+'"'},t.prototype.findDocumentColors=function(r,i,a){return this.schemaService.getSchemaForResource(r.uri,i).then(function(s){var p=[];if(s)for(var m=a&&typeof a.resultLimit=="number"?a.resultLimit:Number.MAX_VALUE,S=i.getMatchingSchemas(s.schema),w={},E=0,k=S;E<k.length;E++){var $=k[E];if(!$.inverted&&$.schema&&($.schema.format==="color"||$.schema.format==="color-hex")&&$.node&&$.node.type==="string"){var oe=String($.node.offset);if(!w[oe]){var re=ku(fi($.node));if(re){var ce=Bi(r,$.node);p.push({color:re,range:ce})}if(w[oe]=!0,m--,m<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(r.uri),p}}}return p})},t.prototype.getColorPresentations=function(r,i,a,s){var p=[],m=Math.round(a.red*255),S=Math.round(a.green*255),w=Math.round(a.blue*255);function E($){var oe=$.toString(16);return oe.length!==2?"0"+oe:oe}var k;return a.alpha===1?k="#"+E(m)+E(S)+E(w):k="#"+E(m)+E(S)+E(w)+E(Math.round(a.alpha*255)),p.push({label:k,textEdit:Hn.replace(s,JSON.stringify(k))}),p},t}();function Bi(t,r){return tr.create(t.positionAt(r.offset),t.positionAt(r.offset+r.length))}var da={schemaAssociations:{},schemas:{}};function Ru(t,r){var i=[],a=[],s=[],p=-1,m=Ti(t.getText(),!1),S=m.scan();function w(Xe){i.push(Xe),a.push(s.length)}for(;S!==17;){switch(S){case 1:case 3:{var E=t.positionAt(m.getTokenOffset()).line,k={startLine:E,endLine:E,kind:S===1?"object":"array"};s.push(k);break}case 2:case 4:{var $=S===2?"object":"array";if(s.length>0&&s[s.length-1].kind===$){var k=s.pop(),oe=t.positionAt(m.getTokenOffset()).line;k&&oe>k.startLine+1&&p!==k.startLine&&(k.endLine=oe-1,w(k),p=k.startLine)}break}case 13:{var E=t.positionAt(m.getTokenOffset()).line,re=t.positionAt(m.getTokenOffset()+m.getTokenLength()).line;m.getTokenError()===1&&E+1<t.lineCount?m.setPosition(t.offsetAt(sn.create(E+1,0))):E<re&&(w({startLine:E,endLine:re,kind:Co.Comment}),p=E);break}case 12:{var ce=t.getText().substr(m.getTokenOffset(),m.getTokenLength()),ve=ce.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(ve){var oe=t.positionAt(m.getTokenOffset()).line;if(ve[1]){var k={startLine:oe,endLine:oe,kind:Co.Region};s.push(k)}else{for(var he=s.length-1;he>=0&&s[he].kind!==Co.Region;)he--;if(he>=0){var k=s[he];s.length=he,oe>k.startLine&&p!==k.startLine&&(k.endLine=oe,w(k),p=k.startLine)}}}break}}S=m.scan()}var Se=r&&r.rangeLimit;if(typeof Se!="number"||i.length<=Se)return i;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(t.uri);for(var me=[],Fe=0,$e=a;Fe<$e.length;Fe++){var Ue=$e[Fe];Ue<30&&(me[Ue]=(me[Ue]||0)+1)}for(var ze=0,Be=0,he=0;he<me.length;he++){var je=me[he];if(je){if(je+ze>Se){Be=he;break}ze+=je}}for(var We=[],he=0;he<i.length;he++){var Ue=a[he];typeof Ue=="number"&&(Ue<Be||Ue===Be&&ze++<Se)&&We.push(i[he])}return We}function Mu(t,r,i){function a(S){for(var w=t.offsetAt(S),E=i.getNodeFromOffset(w,!0),k=[];E;){switch(E.type){case"string":case"object":case"array":var $=E.offset+1,oe=E.offset+E.length-1;$<oe&&w>=$&&w<=oe&&k.push(s($,oe)),k.push(s(E.offset,E.offset+E.length));break;case"number":case"boolean":case"null":case"property":k.push(s(E.offset,E.offset+E.length));break}if(E.type==="property"||E.parent&&E.parent.type==="array"){var re=m(E.offset+E.length,5);re!==-1&&k.push(s(E.offset,re))}E=E.parent}for(var ce=void 0,ve=k.length-1;ve>=0;ve--)ce=ki.create(k[ve],ce);return ce||(ce=ki.create(tr.create(S,S))),ce}function s(S,w){return tr.create(t.positionAt(S),t.positionAt(w))}var p=Ti(t.getText(),!0);function m(S,w){p.setPosition(S);var E=p.scan();return E===w?p.getTokenOffset()+p.getTokenLength():-1}return r.map(a)}function nc(t){var r=t.promiseConstructor||Promise,i=new Lo(t.schemaRequestService,t.workspaceContext,r);i.setSchemaContributions(da);var a=new Yf(i,t.contributions,r,t.clientCapabilities),s=new ko(i,t.contributions,r),p=new rc(i),m=new Pu(i,r);return{configure:function(S){i.clearExternalSchemas(),S.schemas&&S.schemas.forEach(function(w){i.registerExternalSchema(w.uri,w.fileMatch,w.schema)}),m.configure(S)},resetSchema:function(S){return i.onResourceChange(S)},doValidation:m.doValidation.bind(m),parseJSONDocument:function(S){return yu(S,{collectComments:!0})},newJSONDocument:function(S,w){return Za(S,w)},doComplete:a.doComplete.bind(a),findDocumentSymbols:p.findDocumentSymbols.bind(p),findDocumentSymbols2:p.findDocumentSymbols2.bind(p),findColorSymbols:function(S,w){return p.findDocumentColors(S,w).then(function(E){return E.map(function(k){return k.range})})},findDocumentColors:p.findDocumentColors.bind(p),getColorPresentations:p.getColorPresentations.bind(p),doHover:s.doHover.bind(s),getFoldingRanges:Ru,getSelectionRanges:Mu,format:function(S,w,E){var k=void 0;if(w){var $=S.offsetAt(w.start),oe=S.offsetAt(w.end)-$;k={offset:$,length:oe}}var re={tabSize:E?E.tabSize:4,insertSpaces:E?E.insertSpaces:!0,eol:`
|
|
186
|
-
`};return Wf(S.getText(),k,re).map(function(ce){return Hn.replace(tr.create(S.positionAt(ce.offset),S.positionAt(ce.offset+ce.length)),ce.content)})}}}var Lu=o(96876),ic=o(4328),Pd=o(3256),oc=o(71707),ac=o(82801),Id=o(32095),Du=o(86081),is=o(44254),os=o(75019),Fd=o(13837),hl=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});const Do=nc({});en.registerHelper("lint","json",function(t,r){return hl(this,null,function*(){const{schema:i,setError:a}=r;Do.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const s=$a.create(r.id+".json","json",0,t),p=Do.parseJSONDocument(s),m=yield Do.doValidation(s,p);return m.length?a&&a(m[0].message):a&&a(void 0),m.map(S=>({from:en.Pos(S.range.start.line,S.range.start.character),to:en.Pos(S.range.end.line,S.range.end.character),message:S.message}))})}),en.registerHelper("hint","json",(t,r)=>hl(void 0,null,function*(){const i=r.schema;if(!i)return;Do.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const a=t.getDoc().getCursor(),s=t.getTokenAt(a),p=$a.create(r.id+".json","json",0,t.getValue()),m=Do.parseJSONDocument(p),S=yield Do.doComplete(p,{line:a.line,character:a.ch},m),w=k=>{let $="";for(;k--;)$+=" ";return $};let E=S?S.items.map(k=>({text:k.insertText,displayText:k.label,filter:k.filterText||k.label,from:{line:k.textEdit.range.start.line,ch:k.textEdit.range.start.character},to:{line:k.textEdit.range.end.line,ch:k.textEdit.range.end.character},hint:($,oe,re)=>{const ce="_$__REDOC_CURSOR_HERE";let ve=re.text.replace(/(\$1|\${1:[^}]+})/,ce)||"";if(ve=ve.replace(/(\$\d+|\${[^}]+})/g,"")||"",$.setSelection(re.from,re.to),ve.indexOf(`
|
|
187
|
-
`)>-1){const Se=$.getLine($.getCursor().line).search(/(\S|$)/);ve=ve.replace(/\n/g,`
|
|
188
|
-
`+w(Se))}$.replaceSelection(ve);const he=$.getSearchCursor(ce,re.from);he.findNext()&&($.setCursor(he.from()),he.replace(""))}})):[];return/(property|string)/.test(s.type||"")&&(E=E.filter(k=>k.filter.replace(/(^"|"$)/g,"").startsWith(s.string.replace(/(^"|"$)/g,"")))),{from:en.Pos(a.line,s.start),to:en.Pos(a.line,a.ch),list:E}}));var sc=Object.defineProperty,lc=(t,r,i)=>r in t?sc(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,as=(t,r,i)=>(lc(t,typeof r!="symbol"?r+"":r,i),i);const Nu=Gt.createGlobalStyle`
|
|
189
|
-
.cm-s-material.CodeMirror {
|
|
190
|
-
background-color: ${({theme:t})=>t.rightPanel.panelControlsBackgroundColor}!important;
|
|
191
|
-
color: ${({theme:t})=>t.colors.text.light}!important;
|
|
192
|
-
font-family: ${({theme:t})=>t.typography.code.fontFamily};
|
|
193
|
-
line-height: 18px;
|
|
194
|
-
padding: 10px;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.CodeMirror-lint-mark-error {
|
|
198
|
-
background-size: 4px;
|
|
199
|
-
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAAVUlEQVR42mNgQAL/GRjigPg/EP8FYntkCX4gtoVKgvE/BoabcEVAhj6S5DUgfgFl/wFJ2gPxL6iuT1DF+kD2R5AYA5KRj6CS/FAMYvszIBltz4AFAAD9fz0YtLg13wAAAABJRU5ErkJggg==') !important;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.cm-s-material.CodeMirror-focused div.CodeMirror-selected {
|
|
203
|
-
background: rgba(255, 255, 255, 0.3) !important;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.cm-s-material .CodeMirror-code .cm-string.cm-property {
|
|
207
|
-
color: #9EFAA7;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.cm-s-material .CodeMirror-code .cm-string {
|
|
211
|
-
color: #FEE39E;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.cm-s-material .CodeMirror-code .cm-atom {
|
|
215
|
-
color: ${({theme:t})=>t.colors.text.light};
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
div .cm-s-material .CodeMirror-matchingbracket {
|
|
219
|
-
outline: 1px solid grey;
|
|
220
|
-
text-decoration: none;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.react-codemirror2 {
|
|
224
|
-
display: flex;
|
|
225
|
-
flex-direction: column;
|
|
226
|
-
justify-content: flex-start;
|
|
227
|
-
overflow: hidden;
|
|
228
|
-
|
|
229
|
-
flex: 1;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.CodeMirror {
|
|
233
|
-
flex: 1;
|
|
234
|
-
border-radius: ${({theme:t})=>t.components.panels.borderRadius};
|
|
235
|
-
}
|
|
236
|
-
`;class uc extends d.Component{constructor(){super(...arguments);as(this,"editor"),as(this,"_onKeyUp",(r,i)=>{/^[a-zA-Z0-9_":]$/.test(i.key)&&this.editor.execCommand("autocomplete")}),as(this,"initEditor",r=>{this.editor=r,r.on("keyup",this._onKeyUp)}),as(this,"refreshEditor",()=>{this.editor.refresh()})}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:i,setTouched:a,setError:s}=this.props.fieldApi,{onChange:p,onBlur:m,forwardedRef:S}=this.props;return d.createElement(d.Fragment,null,d.createElement(Nu,null),d.createElement(Na.fk,{editorDidMount:this.initEditor,value:r||"",ref:S||void 0,onBeforeChange:(w,E,k)=>{i(k),p&&p(k)},onBlur:w=>{a(),m&&m(w)},options:{mode:this.props.mode||"application/json",theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":()=>this.editor.showHint({completeSingle:!0}),"Ctrl-Space":()=>this.editor.showHint({completeSingle:!0})},hintOptions:{id:this.props.id,completeSingle:!1,schema:this.props.schema},lint:{id:this.props.id,schema:this.props.schema,setError:s}}}))}}const fc=pn(uc),Bu=(0,In.ZP)(Qi.A3)`
|
|
237
|
-
border-radius: ${({theme:t})=>t.components.panels.borderRadius};
|
|
238
|
-
margin-bottom: 10px;
|
|
239
|
-
`;var pa=o(67897),_n=o(64776),kd=o(68929),Ui;(function(t){t.STRING="string",t.ARRAY="array",t.OBJECT="object"})(Ui||(Ui={}));var hi;(function(t){t.BYTE="byte",t.BASE64="base64",t.BINARY="binary"})(hi||(hi={}));var No;(function(t){t.OCTET_STREAM="application/octet-stream",t.MULTIPART="multipart/form-data",t.URL_ENCODED="application/x-www-form-urlencoded"})(No||(No={}));var ha=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});const Uu=Object.values(hi),cc=["application/octet-stream","application/pdf","application/gzip","application/zip"],ju=["image/","audio/","video/"];function cr(t){if(ju.some(r=>t.startsWith(r)))return t}function ss(t){return cc.includes(t)?!0:ju.some(r=>t.startsWith(r))}function vl(t){const r=t.type==="array"?t.items:t;if(!r||!r.type||(r==null?void 0:r.type)==="any")return!0;const i=r.contentMediaType||"",a=r.format||r.contentEncoding||(ss(i)?"binary":"");return r.type===Ui.STRING&&Uu.includes(a)}function Bo(t,r){if(!t||!t.type||t.type==="any")return ss(r);const i=t.format||t.contentEncoding||"";return t.type===Ui.STRING&&Uu.includes(i)}function Rn(t){return new Promise((r,i)=>{const a=new FileReader;a.onload=()=>{const p=a.result.replace(/data:.*\/.*;base64,/g,"");r(p)},a.onerror=()=>i(a.error),a.readAsDataURL(t)})}function va({format:t,contentEncoding:r,contentMediaType:i}){return[t,r,i].includes(hi.BASE64)}function gl(t,r){return ha(this,null,function*(){const i=Object.values(t);let a=i.length===1?i[0]:i;return r.type===Ui.STRING&&va(r)?a=yield Rn(i[0]):r.type===Ui.ARRAY&&r.items&&(va(r.items)?a=yield Promise.all(i.map(p=>ha(this,null,function*(){return yield Rn(p)}))):a=i),a})}var Vu=Object.defineProperty,ga=Object.getOwnPropertySymbols,yl=Object.prototype.hasOwnProperty,ml=Object.prototype.propertyIsEnumerable,xl=(t,r,i)=>r in t?Vu(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,dc=(t,r)=>{for(var i in r||(r={}))yl.call(r,i)&&xl(t,i,r[i]);if(ga)for(var i of ga(r))ml.call(r,i)&&xl(t,i,r[i]);return t},bl=(t,r)=>{var i={};for(var a in t)yl.call(t,a)&&r.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&ga)for(var a of ga(t))r.indexOf(a)<0&&ml.call(t,a)&&(i[a]=t[a]);return i},Wu=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});const nr=d.forwardRef((t,r)=>{var i=bl(t,[]);const{schema:a,contentName:s,onChange:p,name:m}=i,{render:S}=Yn(dc({field:m},i)),w=E=>Wu(void 0,null,function*(){const k=yield gl(E.target.files,a);p(s,k)});return S(d.createElement("input",{"data-cy":"file-upload-input",type:"file",id:i.id,className:i.className,name:i.name,onChange:w,multiple:i.multiple,accept:i.accept,ref:r}))}),Hu=(0,Ho.Pi)(t=>{var r;const{mediaType:i,onChange:a,formApi:s}=t,p=i.examples||{},{exampleKey:m}=(0,pa.C6)(i.operation,p),S=(r=p[m])==null?void 0:r.rawValue,w=pc(i);(0,d.useEffect)(()=>s&&w.forEach(k=>{var $,oe;const re=S==null?void 0:S[k.name],ce=(oe=($=k.example)!=null?$:re==null?void 0:re.example)!=null?oe:re;ce!==void 0&&s.setValue("body."+k.name,`${ce}`)}),[m]);const E=i.schema||{};return Bo(E,i.name)?d.createElement(lo,null,d.createElement(bt.NI,null,d.createElement(zu,{fullWidth:!0,id:`body.${i.name}`,name:`body.${i.name}`,accept:cr(i.name),schema:E,contentName:i.name,onChange:a}))):E.type!==Ui.OBJECT&&!w?(console.warn(`Invalid schema for request body and mime type: "${i.name}"`,E),null):d.createElement(lo,null,w.map(k=>{const $=k.schema||{},oe=i.name===No.MULTIPART&&vl($),re=$.contentMediaType||"",ce=oe?d.createElement(zu,{fullWidth:!0,id:"body."+k.name,name:"body."+k.name,accept:cr(re),multiple:$.type==="array",schema:$,contentName:k.name,onChange:a}):d.createElement(hn,{fullWidth:!0,id:"body."+k.name,field:"body."+k.name,placeholder:$.description||k.name});return d.createElement(bt.NI,{key:k.name},d.createElement(bt.lX,null,k.name,":"),ce)}))});function pc(t){var r,i,a,s,p;return(((i=(r=t.schema)==null?void 0:r.oneOf)==null?void 0:i.length)?((s=t.schema)==null?void 0:s.oneOf[(a=t.schema)==null?void 0:a.activeOneOf].fields)||[]:((p=t.schema)==null?void 0:p.fields)||[]).filter(m=>!m.schema.readOnly)}const lo=Gt.styled.div`
|
|
240
|
-
> div {
|
|
241
|
-
margin-top: 10px;
|
|
242
|
-
}
|
|
243
|
-
`,zu=(0,Gt.styled)(nr)`
|
|
244
|
-
${Yl}
|
|
245
|
-
${({inputType:t})=>t==="password"?"padding-right: 40px;":""};
|
|
246
|
-
${({fullWidth:t})=>t?"width: 100%;":""}
|
|
247
|
-
`;var ls=Object.defineProperty,hc=Object.defineProperties,Ar=Object.getOwnPropertyDescriptors,us=Object.getOwnPropertySymbols,Gu=Object.prototype.hasOwnProperty,$u=Object.prototype.propertyIsEnumerable,ya=(t,r,i)=>r in t?ls(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,e=(t,r)=>{for(var i in r||(r={}))Gu.call(r,i)&&ya(t,i,r[i]);if(us)for(var i of us(r))$u.call(r,i)&&ya(t,i,r[i]);return t},n=(t,r)=>hc(t,Ar(r)),u=(t,r)=>{var i={};for(var a in t)Gu.call(t,a)&&r.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&us)for(var a of us(t))r.indexOf(a)<0&&$u.call(t,a)&&(i[a]=t[a]);return i},l=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});const f=(0,Ho.Pi)(t=>{var r=t,{properties:i={}}=r,a=u(r,["properties"]),s;const p=a.body.content,m=a.console.formApi,S=ve=>{var he;if(!p||!p.hasSample)return"";const Se=(he=p.active)==null?void 0:he.examples;if(!(Se==null?void 0:Se[ve]))return"";const me=Us()(Se==null?void 0:Se[ve].value,i,{arrayMerge:_n.lN});return JSON.stringify(me,null,2)},w=(s=p==null?void 0:p.operation)==null?void 0:s.activeExampleName,E=ve=>{var he;(he=p==null?void 0:p.operation)==null||he.activateExampleName(ve),m.setValue("body",S(ve))},k=ve=>{if(!ve)return"";if(ve.mime==="application/x-www-form-urlencoded")return ve.value;const he=Us()(ve.value,i,{arrayMerge:_n.lN});return JSON.stringify(he,null,2)},$=(ve,he)=>l(void 0,null,function*(){const{setValue:Se}=m;Se(`body.${ve}`,he)});(0,d.useEffect)(()=>{w!==!1?w&&m.setValue("body",S(w)):m.setValue("body",JSON.stringify(i,null,2))},[w]);const{validate:oe,body:re}=a,ce=ve=>d.createElement(Gt.DropdownOrLabel,n(e({},ve),{variant:"dark",fullWidth:!0,Label:Bu,Dropdown:Ji.Dropdown}));return d.createElement(d.Fragment,null,d.createElement(Gt.MediaTypesSwitch,{content:re.content,renderDropdown:ce},ve=>{var he;const Se=ve.examples||{},me=Object.keys(Se),Fe=ve.schema,$e=Bo(Fe||{},ve.name)||ve.name===No.MULTIPART||ve.name===No.URL_ENCODED,{exampleKey:Ue}=(0,pa.C6)(ve.operation,Se),ze=Se[Ue];return d.createElement(d.Fragment,null,me.length&&me.length!==1&&d.createElement(pa.b_,{examples:Se,onChange:E,exampleKey:Ue})||null,$e?d.createElement(Hu,{mediaType:ve,formApi:m,onChange:$.bind(void 0)}):d.createElement(fc,{id:"body"+a.id,field:"body",initialValue:k(ze),schema:(((he=a==null?void 0:a.resolvedBody)==null?void 0:he.content[ve.name])||{}).schema,mode:ve.name,validate:oe}))}))});var y=o(39895);const F=Gt.styled.div`
|
|
248
|
-
display: flex;
|
|
249
|
-
font-size: 12px;
|
|
250
|
-
button {
|
|
251
|
-
margin: 0;
|
|
252
|
-
}
|
|
253
|
-
`,U=Gt.styled.button`
|
|
254
|
-
outline: none;
|
|
255
|
-
border: none;
|
|
256
|
-
background-color: ${({theme:t})=>t.rightPanel.panelBackgroundColor};
|
|
257
|
-
text-align: center;
|
|
258
|
-
cursor: pointer;
|
|
259
|
-
color: ${({theme:t})=>t.colors.text.light};
|
|
260
|
-
min-width: 80px;
|
|
261
|
-
min-height: 30px;
|
|
262
|
-
border-radius: ${({theme:t})=>t.shape.borderRadius};
|
|
263
|
-
font-size: 12px;
|
|
264
|
-
|
|
265
|
-
padding: 0 10px;
|
|
266
|
-
|
|
267
|
-
border-top: 4px solid transparent;
|
|
268
|
-
border-bottom: 4px solid transparent;
|
|
269
|
-
|
|
270
|
-
&:first-child {
|
|
271
|
-
border-top-left-radius: ${({theme:t})=>t.shape.borderRadius};
|
|
272
|
-
border-top-right-radius: 0;
|
|
273
|
-
border-bottom-right-radius: 0;
|
|
274
|
-
border-bottom-left-radius: ${({theme:t})=>t.shape.borderRadius};
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
&:last-child {
|
|
278
|
-
border-top-left-radius: 0;
|
|
279
|
-
border-top-right-radius: ${({theme:t})=>t.shape.borderRadius};
|
|
280
|
-
border-bottom-right-radius: ${({theme:t})=>t.shape.borderRadius};
|
|
281
|
-
border-bottom-left-radius: 0;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
${({active:t,theme:r})=>t&&`
|
|
285
|
-
border-bottom: 4px solid ${r.colors.accent.main};
|
|
286
|
-
background-color: ${(0,y._j)(.05,r.rightPanel.panelBackgroundColor)};
|
|
287
|
-
`||""}
|
|
288
|
-
|
|
289
|
-
${({disabled:t,theme:r})=>t&&`
|
|
290
|
-
cursor: default;
|
|
291
|
-
color: ${(0,y.DZ)(.3,r.colors.text.light)};
|
|
292
|
-
`||""}
|
|
293
|
-
`;class z extends d.Component{render(){const{onChange:r,active:i,hasResponse:a}=this.props;return d.createElement(F,null,d.createElement(U,{onClick:()=>r(0),active:i===0},a?"Edit Request":"Request"),d.createElement(U,{onClick:()=>a&&r(1),active:i===1,disabled:!a}," ","Response"," "))}}var Z=Object.defineProperty,xe=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,tt=(t,r,i)=>r in t?Z(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,at=(t,r)=>{for(var i in r||(r={}))Me.call(r,i)&&tt(t,i,r[i]);if(Ne)for(var i of Ne(r))Ye.call(r,i)&&tt(t,i,r[i]);return t},ft=(t,r)=>xe(t,Ce(r));const vt=In.ZP.input`
|
|
294
|
-
cursor: pointer;
|
|
295
|
-
margin-left: 0;
|
|
296
|
-
margin-right: 5px;
|
|
297
|
-
height: 20px;
|
|
298
|
-
|
|
299
|
-
align-self: baseline;
|
|
300
|
-
margin-top: 0;
|
|
301
|
-
margin-bottom: 0;
|
|
302
|
-
`,ct=In.ZP.label`
|
|
303
|
-
display: inline-block;
|
|
304
|
-
cursor: pointer;
|
|
305
|
-
vertical-align: middle;
|
|
306
|
-
position: relative;
|
|
307
|
-
text-overflow: ellipsis;
|
|
308
|
-
overflow: hidden;
|
|
309
|
-
|
|
310
|
-
overflow-wrap: break-word;
|
|
311
|
-
line-height: 20px;
|
|
312
|
-
`,wt=In.ZP.div`
|
|
313
|
-
width: ${({fullWidth:t})=>t?"100%":"50%"};
|
|
314
|
-
display: inline-flex;
|
|
315
|
-
align-items: center;
|
|
316
|
-
|
|
317
|
-
& > label {
|
|
318
|
-
white-space: ${({nowrap:t})=>t?"nowrap":"normal"};
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
${({nowrap:t})=>t?"":`
|
|
322
|
-
:not(:first-child) {
|
|
323
|
-
margin-top: 5px;
|
|
324
|
-
}
|
|
325
|
-
`}
|
|
326
|
-
`;function Pt(t,r){const{fullWidth:i,id:a,label:s,nowrap:p}=t;return d.createElement(wt,{fullWidth:i,nowrap:p},d.createElement(vt,ft(at({},t),{type:"checkbox",ref:r})),d.createElement(ct,{htmlFor:a},s))}const Ot=d.forwardRef(Pt);var Ut=Object.defineProperty,ar=(t,r,i)=>r in t?Ut(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Hr=(t,r,i)=>(ar(t,typeof r!="symbol"?r+"":r,i),i);const hr=11;class xn extends d.Component{constructor(){super(...arguments);Hr(this,"state",{collapsed:!0})}onCheckBoxClick(r){const i=r.target.value,a=r.target.checked;this.props.fieldApi.setTouched(!0);const s=this.props.fieldApi.getValue()||[];let p;if(a)p=[...s,i];else{const m=s.indexOf(i);p=[...s.slice(0,m),...s.slice(m+1)]}this.props.fieldApi.setValue(p)}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:i,validateOnChange:a,maxDisplayedItems:s,showControls:p,trimItemsLength:m}=this.props,{collapsed:S}=this.state,w=i.getError(),E=s||hr,k=m&&this.state.collapsed?r.slice(0,E):r;return d.createElement("div",null,p?d.createElement(Fr,null,d.createElement(gn.J4,{onClick:()=>{this.selectAll()}},"Select all"),d.createElement(gn.J4,{onClick:()=>{this.clearAll()}},"Clear")):null,d.createElement("div",null,k.map($=>d.createElement(Ot,{fullWidth:!0,id:$,value:$,checked:this.isFieldChecked($),label:$,key:$,onChange:oe=>{this.onCheckBoxClick(oe),a&&i.validate()}})),r.length>E&&m?d.createElement(fn,{onClick:()=>{this.toggle()}},S?"Show all":"Collapse"):null),w?d.createElement(bt.Xq,null,w):"")}}const un=pn(xn),Fr=(0,Gt.styled)(gn.xp)`
|
|
327
|
-
opacity: 1;
|
|
328
|
-
text-align: left;
|
|
329
|
-
`,fn=(0,Gt.styled)(gn.J4)`
|
|
330
|
-
float: right;
|
|
331
|
-
`;function zr(t){const{scopes:r,id:i}=t;let a=[];try{a=JSON.parse((0,zt.YQ)(`auth.${i}.scopes`))}catch(s){}return!r||!r.length?d.createElement(d.Fragment,null):d.createElement(bt.NI,null,d.createElement(bt.lX,null," Scopes: "),d.createElement(un,{field:`auth.${i}.scopes`,initialValue:a,items:r,showControls:!0,trimItemsLength:!0}))}var kr=o(17673),Rr=Object.defineProperty,br=Object.defineProperties,cn=Object.getOwnPropertyDescriptors,uo=Object.getOwnPropertySymbols,ji=Object.prototype.hasOwnProperty,Xr=Object.prototype.propertyIsEnumerable,Gn=(t,r,i)=>r in t?Rr(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Mr=(t,r)=>{for(var i in r||(r={}))ji.call(r,i)&&Gn(t,i,r[i]);if(uo)for(var i of uo(r))Xr.call(r,i)&&Gn(t,i,r[i]);return t},wl=(t,r)=>br(t,cn(r)),Mn=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});const Vi="/oauth2-redirect.html";class Qr{static authorizeImplicit({authorizationUrl:r,clientId:i,scopes:a,extraParams:s={},routingBasePath:p,redirectUri:m,successCallback:S,errorCallback:w}){const E=(0,_n.p8)({date:new Date().toString()}),k=new URL(r),$=p==="/"?"":p,oe=`${window.location.origin}${$}${Vi}`;k.searchParams.set("client_id",i),k.searchParams.set("redirect_uri",m||oe),k.searchParams.set("response_type","token"),k.searchParams.set("state",E),Array.isArray(a)&&k.searchParams.set("scope",a.join(" "));for(const re in s)k.searchParams.set(re,s[re]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:i,scopes:a},state:E,successCallback:re=>{S(re),Qr.clearRedirectData("implicit")},errorCallback:re=>{w(re),Qr.clearRedirectData("implicit")}},window.open(k.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:i,clientId:a,clientSecret:s,codeVerifier:p,codeChallenge:m,scopes:S,extraParams:w={},routingBasePath:E,redirectUri:k,successCallback:$,errorCallback:oe}){const re=new URL(r),ce=E==="/"?"":E,ve=`${window.location.origin}${ce}${Vi}`,he=(0,_n.p8)({date:new Date().toString()});re.searchParams.set("client_id",a),re.searchParams.set("redirect_uri",k||ve),re.searchParams.set("response_type","code"),re.searchParams.set("state",he),Array.isArray(S)&&re.searchParams.set("scope",S.join(" ")),m&&(re.searchParams.set("code_challenge",m),re.searchParams.set("code_challenge_method","S256"));for(const Se in w)re.searchParams.set(Se,w[Se]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:a,scopes:S},state:he,successCallback:Se=>Mn(this,[Se],function*({auth_code:me}){try{const Fe=yield fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:kr.stringify(Mr(wl(Mr({client_id:a,client_secret:s},p&&{code_verifier:p}),{code:me,grant_type:"authorization_code",redirect_uri:k||ve}),w))});yield fo(Fe,$,oe)}catch(Fe){oe(Fe)}Qr.clearRedirectData("authorizationCode")}),errorCallback:Se=>{oe(Se),Qr.clearRedirectData("authorizationCode")}},window.open(re.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return Mn(this,arguments,function*({tokenUrl:i,clientId:a,clientSecret:s,scopes:p=[],extraParams:m={},successCallback:S,errorCallback:w}){try{const E=yield fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:kr.stringify(Mr({client_id:a,client_secret:s,grant_type:"client_credentials",scope:Array.isArray(p)?p.join(" "):void 0},m))});yield fo(E,S,w)}catch(E){w(E)}})}}const dn=new Qr;function fo(t,r,i){return Mn(this,null,function*(){if(t.ok){const a=yield t.json();r(a)}else i(new Error((t.headers.get("Content-Type")||"").indexOf("json")>-1?JSON.stringify(yield t.json()):yield t.text()))})}function fs(t){return Mn(this,null,function*(){return(0,_n.rS)(yield(0,_n.JQ)(t))})}var hh=Object.defineProperty,vh=Object.defineProperties,gh=Object.getOwnPropertyDescriptors,Rd=Object.getOwnPropertySymbols,yh=Object.prototype.hasOwnProperty,mh=Object.prototype.propertyIsEnumerable,vc=(t,r,i)=>r in t?hh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Md=(t,r)=>{for(var i in r||(r={}))yh.call(r,i)&&vc(t,i,r[i]);if(Rd)for(var i of Rd(r))mh.call(r,i)&&vc(t,i,r[i]);return t},Ld=(t,r)=>vh(t,gh(r)),Ku=(t,r,i)=>(vc(t,typeof r!="symbol"?r+"":r,i),i),xh=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});function bh(t){if(!t)return"Token is required"}class wh extends d.Component{constructor(){super(...arguments);Ku(this,"state",{error:"",loading:!1,tokenMasked:!0}),Ku(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,""),(0,zt.WW)(`auth.${this.props.id}.token`,"")}),Ku(this,"toggleTokenMask",()=>{this.setState({tokenMasked:!this.state.tokenMasked})}),Ku(this,"requestToken",()=>xh(this,null,function*(){if(this.state.loading)return;const{server:r,flow:i,authCorsProxyUrl:a}=this.props,s=a&&i.tokenUrl?a+(0,Vr.jg)(i.tokenUrl):i.tokenUrl;if(this.errors.client_id||this.errors.client_secret){console.log("Provide client_id and client_secret");return}const p=this.values.client_id,m=this.values.client_secret;if(!p||!m){console.log("Provide client_id and client_secret");return}this.setState({loading:!0}),yield Qr.authorizeClientCredentials({tokenUrl:s.startsWith("http")?s:r+s,clientId:p,clientSecret:m,scopes:this.values.scopes,successCallback:S=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,S),this.setState({loading:!1})},errorCallback:S=>{this.clearToken(),this.setState({error:S.message,loading:!1})}})}))}get values(){var r,i,a;return((a=(i=(r=this.props.form)==null?void 0:r.values)==null?void 0:i.auth)==null?void 0:a[this.props.id])||{}}get errors(){var r,i;return((i=(r=this.props.form.errors)==null?void 0:r.auth)==null?void 0:i[this.props.id])||{}}render(){const{loading:r,error:i,tokenMasked:a}=this.state,{id:s,defaultValues:p}=this.props,m=Object.keys(this.props.flow.scopes);let S=(0,zt.YQ)(`auth.${s}.token`)||JSON.stringify(p==null?void 0:p.token);S=S?JSON.parse(S):"";const w=(0,zt.Al)(s,"client_id"),E={field:`auth.${s}.client_id`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${s}.client_id`)||this.props.clientId||(p==null?void 0:p.client_id),initValue:(0,zt.YQ)(`auth.${s}.client_id`)||this.props.clientId||(p==null?void 0:p.client_id),placeholder:"Your OAuth2 app Client ID"};return d.createElement(d.Fragment,null,d.createElement(bt.n5,null,d.createElement(bt.NI,null,d.createElement(bt.lX,null,"Client ID:"),w?d.createElement($o,Ld(Md({},E),{options:w})):d.createElement(hn,Ld(Md({},E),{type:"password"}))),d.createElement(bt.NI,null,d.createElement(bt.lX,null,"Client Secret:"),d.createElement(hn,{type:"password",fullWidth:!0,field:`auth.${s}.client_secret`,initialValue:(0,zt.YQ)(`auth.${s}.client_secret`)||(p==null?void 0:p.client_secret)})),d.createElement(hn,{fullWidth:!0,field:`auth.${s}.token`,type:"hidden",initialValue:S,validate:bh}),d.createElement(zr,{id:s,scopes:m})),d.createElement(Qi.zx,{color:"primary",onClick:this.requestToken,blinking:r},r?"Loading...":"Request Token"),d.createElement(bt.ph,null," Access Token "),i?d.createElement(bt.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",d.createElement("pre",null,i)," "):this.values.token&&this.values.token.access_token?d.createElement(bt.TR,null,d.createElement(bt.WA,{length:this.values.token.access_token.length,masked:a},this.values.token.access_token),d.createElement(bt.lf,{onClick:this.toggleTokenMask},a?"Show":"Hide"," "),d.createElement(bt.h,{onClick:this.clearToken}," Clear ")):d.createElement(bt.Xq,{style:{marginBottom:"1em"}},"No token"))}}const Sh=wh,Ah=Gt.styled.div`
|
|
332
|
-
position: relative;
|
|
333
|
-
height: 4px;
|
|
334
|
-
display: block;
|
|
335
|
-
width: 100%;
|
|
336
|
-
background-color: ${({theme:t})=>t.colors.accent.light};
|
|
337
|
-
border-radius: ${({theme:t})=>t.shape.borderRadius};
|
|
338
|
-
background-clip: padding-box;
|
|
339
|
-
margin: 0.5rem 0 1rem 0;
|
|
340
|
-
overflow: hidden;
|
|
341
|
-
|
|
342
|
-
.determinate {
|
|
343
|
-
position: absolute;
|
|
344
|
-
top: 0;
|
|
345
|
-
bottom: 0;
|
|
346
|
-
background-color: ${({theme:t})=>t.colors.accent.main};
|
|
347
|
-
transition: width 0.3s linear;
|
|
348
|
-
}
|
|
349
|
-
.indeterminate {
|
|
350
|
-
background-color: ${({theme:t})=>t.colors.accent.main};
|
|
351
|
-
}
|
|
352
|
-
.indeterminate:before {
|
|
353
|
-
content: '';
|
|
354
|
-
position: absolute;
|
|
355
|
-
background-color: inherit;
|
|
356
|
-
top: 0;
|
|
357
|
-
left: 0;
|
|
358
|
-
bottom: 0;
|
|
359
|
-
will-change: left, right;
|
|
360
|
-
-webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
361
|
-
animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
362
|
-
}
|
|
363
|
-
.indeterminate:after {
|
|
364
|
-
content: '';
|
|
365
|
-
position: absolute;
|
|
366
|
-
background-color: inherit;
|
|
367
|
-
top: 0;
|
|
368
|
-
left: 0;
|
|
369
|
-
bottom: 0;
|
|
370
|
-
will-change: left, right;
|
|
371
|
-
-webkit-animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
|
|
372
|
-
animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
|
|
373
|
-
-webkit-animation-delay: 1.15s;
|
|
374
|
-
animation-delay: 1.15s;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
@-webkit-keyframes indeterminate {
|
|
378
|
-
0% {
|
|
379
|
-
left: -35%;
|
|
380
|
-
right: 100%;
|
|
381
|
-
}
|
|
382
|
-
60% {
|
|
383
|
-
left: 100%;
|
|
384
|
-
right: -90%;
|
|
385
|
-
}
|
|
386
|
-
100% {
|
|
387
|
-
left: 100%;
|
|
388
|
-
right: -90%;
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
@keyframes indeterminate {
|
|
392
|
-
0% {
|
|
393
|
-
left: -35%;
|
|
394
|
-
right: 100%;
|
|
395
|
-
}
|
|
396
|
-
60% {
|
|
397
|
-
left: 100%;
|
|
398
|
-
right: -90%;
|
|
399
|
-
}
|
|
400
|
-
100% {
|
|
401
|
-
left: 100%;
|
|
402
|
-
right: -90%;
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
@-webkit-keyframes indeterminate-short {
|
|
406
|
-
0% {
|
|
407
|
-
left: -200%;
|
|
408
|
-
right: 100%;
|
|
409
|
-
}
|
|
410
|
-
60% {
|
|
411
|
-
left: 107%;
|
|
412
|
-
right: -8%;
|
|
413
|
-
}
|
|
414
|
-
100% {
|
|
415
|
-
left: 107%;
|
|
416
|
-
right: -8%;
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
@keyframes indeterminate-short {
|
|
420
|
-
0% {
|
|
421
|
-
left: -200%;
|
|
422
|
-
right: 100%;
|
|
423
|
-
}
|
|
424
|
-
60% {
|
|
425
|
-
left: 107%;
|
|
426
|
-
right: -8%;
|
|
427
|
-
}
|
|
428
|
-
100% {
|
|
429
|
-
left: 107%;
|
|
430
|
-
right: -8%;
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
`,Dd=()=>d.createElement(Ah,null,d.createElement("div",{className:"indeterminate"}));var Eh=Object.defineProperty,Ch=Object.defineProperties,Oh=Object.getOwnPropertyDescriptors,Nd=Object.getOwnPropertySymbols,Th=Object.prototype.hasOwnProperty,Ph=Object.prototype.propertyIsEnumerable,gc=(t,r,i)=>r in t?Eh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Yu=(t,r)=>{for(var i in r||(r={}))Th.call(r,i)&&gc(t,i,r[i]);if(Nd)for(var i of Nd(r))Ph.call(r,i)&&gc(t,i,r[i]);return t},yc=(t,r)=>Ch(t,Oh(r)),Sl=(t,r,i)=>(gc(t,typeof r!="symbol"?r+"":r,i),i),Ih=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});function Fh(t){if(!t)return"Field is required"}class Ju extends d.Component{constructor(){super(...arguments);Sl(this,"state",{error:null,loading:!1,showPkceOptions:!1}),Sl(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,"")}),Sl(this,"togglePkceOptions",()=>{this.setState(({showPkceOptions:r})=>({showPkceOptions:!r}))}),Sl(this,"handleCodeVerifierChange",r=>Ih(this,[r],function*({target:{value:i}}){const a=yield fs(i);this.setState({codeVerifier:i,validCodeChallenge:a})}))}get values(){var r,i;return((i=(r=this.props.form.values)==null?void 0:r.auth)==null?void 0:i[this.props.id])||{}}get errors(){var r,i;return((i=(r=this.props.form.errors)==null?void 0:r.auth)==null?void 0:i[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,_n.CY)(43);fs(r).then(i=>{this.setState({codeVerifier:r,codeChallenge:i,validCodeChallenge:i})})}}handleAuthorize(r){if(!r)return;this.props.formApi.validate();const{flow:i,usePkce:a,id:s,tokenUrl:p,authCorsProxyUrl:m}=this.props;if(!(0,_n.Qr)(this.errors))return;this.setState({loading:!0,error:null});const S=m?m+(0,Vr.jg)(r):r,w=m&&p?m+(0,Vr.jg)(p):p,E=this.props.formApi.getValue(`auth.${s}.scopes`),k={authorizationUrl:S.startsWith("http")?S:this.props.server+S,clientId:this.values.client_id,scopes:E,redirectUri:this.context.oAuth2RedirectURI,routingBasePath:this.context.routingBasePath,successCallback:$=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,$),this.setState({loading:!1,error:null})},errorCallback:$=>{this.setState({loading:!1,error:($==null?void 0:$.message)||"Failed to retrieve the access token"})}};i==="implicit"&&Qr.authorizeImplicit(k),i==="authorizationCode"&&Qr.authorizeAuthorizationCode(Yu(yc(Yu({},k),{tokenUrl:(w==null?void 0:w.startsWith("http"))?w:this.props.server+w,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}),Qr.clearRedirectData(this.props.flow)}render(){const{error:r,loading:i}=this.state,{id:a,scopes:s,authorizationUrl:p,flow:m,usePkce:S,defaultValues:w}=this.props;if(!p)return d.createElement(bt.Xq,null,"No flow info");let E=(0,zt.YQ)(`auth.${a}.token`)||JSON.stringify(w==null?void 0:w.token);E=E?JSON.parse(E):"";const k=(0,zt.Al)(a,"client_id"),$={field:`auth.${a}.client_id`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${a}.client_id`)||this.props.clientId||(w==null?void 0:w.client_id),initValue:(0,zt.YQ)(`auth.${a}.client_id`)||this.props.clientId||(w==null?void 0:w.client_id),placeholder:"Your OAuth2 app Client ID",validate:Fh,validateOnBlur:!0,validateOnChange:!0};return d.createElement("div",null,d.createElement(bt.n5,null,d.createElement(bt.NI,null,d.createElement(bt.lX,null," Client ID: "),k?d.createElement($o,yc(Yu({},$),{options:k})):d.createElement(hn,yc(Yu({},$),{"data-cy":"client-id-input"}))),m==="authorizationCode"&&d.createElement(d.Fragment,null,(!(S==null?void 0:S.hideClientSecretInput)||!S)&&d.createElement(bt.NI,null,d.createElement(bt.lX,null,"Client Secret:"),d.createElement(hn,{type:"password",fullWidth:!0,field:`auth.${a}.client_secret`,initialValue:(0,zt.YQ)(`auth.${a}.client_secret`)||(w==null?void 0:w.client_secret),validateOnBlur:!0,validateOnChange:!0,"data-cy":"client-secret-input"})),S&&!S.disableManualConfiguration&&d.createElement(Mh,null,d.createElement(Ot,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:this.state.showPkceOptions,onChange:this.togglePkceOptions,"data-cy":"pkce-options-toggle"}),this.state.showPkceOptions&&d.createElement(Lh,null,d.createElement(bt.NI,null,d.createElement(bt.lX,null,"Code Verifier"),d.createElement(Go,{fullWidth:!0,value:this.state.codeVerifier,onChange:this.handleCodeVerifierChange,"data-cy":"code-verifier-input"})),d.createElement(bt.NI,null,d.createElement(bt.lX,null,"Code Challenge"),d.createElement(Go,{fullWidth:!0,value:this.state.codeChallenge,onChange:({target:{value:oe}})=>{this.setState({codeChallenge:oe})},inputActionButton:this.pkceInputActionButtonProps,"data-cy":"code-challenge-input"}))))),d.createElement(hn,{fullWidth:!0,field:`auth.${a}.token`,type:"hidden",initialValue:E}),d.createElement(zr,{id:a,scopes:s}),this.values.token&&this.values.token.access_token?d.createElement(bt.NI,null,d.createElement(bt.lX,null," Access Token: "),d.createElement(Go,{disabled:!0,type:"password",fullWidth:!0,value:this.values.token.access_token})):null),d.createElement(Rh,null,this.values.token&&this.values.token.access_token?d.createElement(Qi.zx,{fullWidth:!0,onClick:()=>{this.handleLogout()}},"Log out"):i?d.createElement(d.Fragment,null,d.createElement(Qi.zx,{fullWidth:!0,onClick:()=>{this.handleCancel()}},"Cancel"),d.createElement(Dd,null)):d.createElement(Qi.zx,{fullWidth:!0,disabled:!(0,_n.Qr)(this.errors),onClick:()=>{this.handleAuthorize(p)}},"Authorize")),i||r||!this.values.token||!this.values.token.access_token&&d.createElement(bt.n5,null,d.createElement(bt.NI,null,i?d.createElement(bt.GE,null,"Please, finish your authorization flow or cancel authorization."):r?d.createElement(d.Fragment,null,d.createElement(kh,null,d.createElement(bt.Xq,null,r))):!this.values.token||!this.values.token.access_token?d.createElement(bt.GE,null," No Access Token. Please, Authorize. "):null)))}}Sl(Ju,"contextType",Gt.OptionsContext);const kh=Gt.styled.div`
|
|
434
|
-
font-family: monospace;
|
|
435
|
-
margin-top: 10px;
|
|
436
|
-
line-height: 1;
|
|
437
|
-
padding-left: 10px;
|
|
438
|
-
border-left: 1px solid gray;
|
|
439
|
-
`,Rh=Gt.styled.div`
|
|
440
|
-
margin-bottom: 15px;
|
|
441
|
-
`,Mh=Gt.styled.div`
|
|
442
|
-
padding: 8px 0 20px;
|
|
443
|
-
`,Lh=Gt.styled.div`
|
|
444
|
-
padding: 4px 0;
|
|
445
|
-
`;var Dh=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});function Nh(t){return Dh(this,null,function*(){return(yield fetch(t)).json()})}var Bh=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});function Uh(t){var r;const{scheme:i,defaultValues:a}=t,[s,p]=d.useState({}),[m,S]=d.useState(),[w,E]=d.useState(!1);d.useEffect(()=>{k(i.openIdConnectUrl)},[i.openIdConnectUrl]);const k=$=>Bh(this,null,function*(){E(!0),S("");try{const oe=yield Nh($);p(oe)}catch(oe){S(oe.message)}E(!1)});return d.createElement("div",null,w?d.createElement("div",null,d.createElement("div",null,"Fetching OpenID Connect metadata..."),d.createElement(Dd,null)):d.createElement("div",null,m?d.createElement(bt.Xq,null,m):((r=s==null?void 0:s.response_types_supported)==null?void 0:r.includes("token"))?d.createElement(d.Fragment,null,d.createElement(jh,null,"OAuth2 Implicit Flow"),d.createElement(Ju,{key:t.id,authorizationUrl:s.authorization_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:s.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,flow:"implicit",defaultValues:a})):d.createElement("div",null,"Unsupported flow")))}const jh=Gt.styled.div`
|
|
446
|
-
margin-top: 5px;
|
|
447
|
-
margin-bottom: 10px;
|
|
448
|
-
`;var Al=o(51027),Vh=Object.defineProperty,Wh=Object.defineProperties,Hh=Object.getOwnPropertyDescriptors,Bd=Object.getOwnPropertySymbols,zh=Object.prototype.hasOwnProperty,Gh=Object.prototype.propertyIsEnumerable,mc=(t,r,i)=>r in t?Vh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,cs=(t,r)=>{for(var i in r||(r={}))zh.call(r,i)&&mc(t,i,r[i]);if(Bd)for(var i of Bd(r))Gh.call(r,i)&&mc(t,i,r[i]);return t},El=(t,r)=>Wh(t,Hh(r)),Ud=(t,r,i)=>(mc(t,typeof r!="symbol"?r+"":r,i),i);function Cl(t){if(!t)return"Field is required"}const $h=function(t){const r=document.cookie.match("\\b"+t+"=([^;]*)\\b");return r?r[1]:void 0};function jd(t){if(t.in==="cookie")return $h(t.name)}class Kh extends d.Component{constructor(){super(...arguments);Ud(this,"state",{activeScheme:0}),Ud(this,"handleSchemeChange",r=>{this.setState({activeScheme:r.idx}),(0,zt.WW)("securityRequirementName",r.value)})}static getDerivedStateFromProps(r){const a=r.operation.security.map(m=>m.schemes.map(S=>S.id).join(" and ")),s=(0,zt.YQ)("securityRequirementName"),p=a.findIndex(m=>m===s);return{activeScheme:p<0?0:p}}render(){const{securityDefaults:r}=this.props,{activeScheme:i}=this.state,a=this.props.operation.security,p=a.map(m=>m.schemes.map(S=>S.id).join(" and ")).map((m,S)=>({value:m,idx:S}));return p.length===0?null:d.createElement(d.Fragment,null,d.createElement(bt.n5,null,p.length>1&&d.createElement(bt.NI,null,d.createElement(bt.lX,null," Security scheme: "),d.createElement(Ji.Dropdown,{variant:"dark",fullWidth:!0,options:p,value:p[i].value,onChange:this.handleSchemeChange}))||null,a[i].schemes.map(m=>{var S,w,E,k,$,oe,re;const ce=(0,zt.A8)(m.id);if(m.type==="apiKey"){const ve=(0,zt.Al)(ce,""),he={field:`auth.${ce}`,fullWidth:!0,initialValue:jd(m)||(0,zt.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),initValue:jd(m)||(0,zt.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),validate:Cl,validateOnBlur:!0,validateOnChange:!0};return d.createElement(bt.NI,{key:ce},d.createElement(bt.lX,null," ",m.name,": "),ve?d.createElement($o,El(cs({},he),{options:ve})):d.createElement(hn,El(cs({},he),{type:"password","data-cy":"apiKey-auth-password"})))}else if(m.type==="http"){if(m.scheme==="basic"){const ve=(0,zt.Al)(ce,"username"),he={field:`auth.${ce}.username`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${ce}.username`)||((S=r==null?void 0:r[ce])==null?void 0:S.username),initValue:(0,zt.YQ)(`auth.${ce}.username`)||((w=r==null?void 0:r[ce])==null?void 0:w.username),validate:Cl,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:ce},d.createElement(bt.NI,null,d.createElement(bt.lX,null," ",(0,Al.l)("tryItAuthBasicUsername"),": "),ve?d.createElement($o,El(cs({},he),{options:ve})):d.createElement(hn,cs({},he))),d.createElement(bt.NI,null,d.createElement(bt.lX,null," ",(0,Al.l)("tryItAuthBasicPassword"),": "),d.createElement(hn,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${ce}.password`,initialValue:(0,zt.YQ)(`auth.${ce}.password`)||((E=r==null?void 0:r[ce])==null?void 0:E.password)||"",validateOnBlur:!0,validateOnChange:!0})))}else if(m.scheme==="bearer"){const ve=(0,zt.Al)(ce,""),he={field:`auth.${ce}`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),initValue:(0,zt.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),validate:Cl,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:ce},d.createElement(bt.NI,null,d.createElement(bt.lX,null," Bearer Token: "),ve?d.createElement($o,El(cs({},he),{options:ve})):d.createElement(hn,El(cs({},he),{type:"password",placeholder:"(without 'Bearer')"}))))}}else{if(m.type==="oauth2"&&m.flows&&m.flows.clientCredentials)return d.createElement(Sh,{key:ce,flow:m.flows.clientCredentials,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:ce,form:this.props.form,formApi:this.props.formApi,clientId:m.flows.clientCredentials["x-defaultClientId"]||m["x-defaultClientId"],defaultValues:r==null?void 0:r[ce]});if(m.type==="oauth2"&&m.flows&&m.flows.implicit)return d.createElement(Ju,{key:ce,authorizationUrl:m.flows.implicit.authorizationUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys((($=(k=m==null?void 0:m.flows)==null?void 0:k.implicit)==null?void 0:$.scopes)||{}),server:this.props.activeServer,id:ce,form:this.props.form,formApi:this.props.formApi,clientId:m.flows.implicit["x-defaultClientId"]||m["x-defaultClientId"],flow:"implicit",defaultValues:r==null?void 0:r[ce]});if(m.type==="oauth2"&&m.flows&&m.flows.authorizationCode)return d.createElement(Ju,{key:ce,authorizationUrl:m.flows.authorizationCode.authorizationUrl,tokenUrl:m.flows.authorizationCode.tokenUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((oe=m.flows.authorizationCode)==null?void 0:oe.scopes)||{}),server:this.props.activeServer,id:ce,form:this.props.form,formApi:this.props.formApi,clientId:m.flows.authorizationCode["x-defaultClientId"]||m["x-defaultClientId"],flow:"authorizationCode",usePkce:m.flows.authorizationCode["x-usePkce"],defaultValues:r==null?void 0:r[ce]});if(m.type==="oauth2"){let ve=(0,zt.YQ)(`auth.${ce}.token`)||JSON.stringify((re=r==null?void 0:r[ce])==null?void 0:re.token);return ve=ve?JSON.parse(ve):{},d.createElement(d.Fragment,{key:ce},d.createElement(bt.NI,null,d.createElement(bt.lX,null," Access Token Type: "),d.createElement(hn,{fullWidth:!0,field:`auth.${ce}.token.token_type`,initialValue:ve.token_type||"Bearer"})),d.createElement(bt.NI,null,d.createElement(bt.lX,null," Access Token: "),d.createElement(hn,{type:"password",fullWidth:!0,field:`auth.${ce}.token.access_token`,validate:Cl,initialValue:ve.access_token,validateOnBlur:!0,validateOnChange:!0})))}else if(m.type==="openIdConnect")return d.createElement(Uh,{key:ce,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:ce,form:this.props.form,formApi:this.props.formApi,scheme:m,clientId:m["x-defaultClientId"],defaultValues:r==null?void 0:r[ce]})}})),d.createElement("small",null,d.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))}}var Vd=o(11429),Wd=o(89356),Xu=o(63263),Yh=o(30699),xc=o(58377),Hd=o(28834),zd=o(13038),Jh=o(32752),bc=o(44341);function Gd(t,r,i){return r in t?bc(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function $d(t,r){var i=Wd(t);if(Xu){var a=Xu(t);r&&(a=Yh(a).call(a,function(s){return xc(t,s).enumerable})),i.push.apply(i,a)}return i}function Er(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};if(r%2){var a;Hd(a=$d(Object(i),!0)).call(a,function(p){Gd(t,p,i[p])})}else if(zd)Jh(t,zd(i));else{var s;Hd(s=$d(Object(i))).call(s,function(p){bc(t,p,xc(i,p))})}}return t}var Xh=o(28583),Qu=o.n(Xh),Qh=o(10240),Kd=o.n(Qh),Uo=o(8575),ma=o(51446),wc=o(19996),Sc=o(78363),Zh=o(95238),Yd=o(53592);function Ac(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,a=new Array(r);i<r;i++)a[i]=t[i];return a}function Ec(t,r){var i;if(!!t){if(typeof t=="string")return Ac(t,r);var a=Zh(i=Object.prototype.toString.call(t)).call(i,8,-1);if(a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set")return Yd(t);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Ac(t,r)}}function xa(t,r){var i=typeof ma!="undefined"&&wc(t)||t["@@iterator"];if(!i){if(Sc(t)||(i=Ec(t))||r&&t&&typeof t.length=="number"){i&&(t=i);var a=0,s=function(){};return{s,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(E){throw E},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
449
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,m=!1,S;return{s:function(){i=i.call(t)},n:function(){var E=i.next();return p=E.done,E},e:function(E){m=!0,S=E},f:function(){try{!p&&i.return!=null&&i.return()}finally{if(m)throw S}}}}var _h=o(23882);function pr(t){return typeof ma=="function"&&typeof _h=="symbol"?pr=function(i){return typeof i}:pr=function(i){return i&&typeof ma=="function"&&i.constructor===ma&&i!==ma.prototype?"symbol":typeof i},pr(t)}function qh(t){if(Sc(t))return t}function ev(t,r){var i=t&&(typeof ma!="undefined"&&wc(t)||t["@@iterator"]);if(i!=null){var a=[],s=!0,p=!1,m,S;try{for(i=i.call(t);!(s=(m=i.next()).done)&&(a.push(m.value),!(r&&a.length===r));s=!0);}catch(w){p=!0,S=w}finally{try{!s&&i.return!=null&&i.return()}finally{if(p)throw S}}return a}}function tv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
450
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vi(t,r){return qh(t)||ev(t,r)||Ec(t,r)||tv()}var Jd=o(69798);function Xd(t,r,i,a,s,p,m){try{var S=t[p](m),w=S.value}catch(E){i(E);return}S.done?r(w):Jd.resolve(w).then(a,s)}function Cc(t){return function(){var r=this,i=arguments;return new Jd(function(a,s){var p=t.apply(r,i);function m(w){Xd(p,a,s,m,S,"next",w)}function S(w){Xd(p,a,s,m,S,"throw",w)}m(void 0)})}}var rv=o(63109),Wi=o.n(rv),nv=o(78580),Oc=o.n(nv),iv=o(72119),Qd=o.n(iv),ov=o(66419),av=o.n(ov),sv=o(59340),Zu=o.n(sv),lv=o(2991),ir=o.n(lv),uv=o(86902),or=o.n(uv),fv=o(77766),Tt=o.n(fv),cv=o(26295),Zd=o.n(cv),dv=o(20116),Ln=o.n(dv),Bm=o(31905),pv=o(92495),Tc=o.n(pv),hv=o(93320),_d=o.n(hv),vv=o(78718),Pc=o.n(vv),gv=o(23560),Ol=o.n(gv),qd=o(88996);function Ic(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function ep(t,r){for(var i=0;i<r.length;i++){var a=r[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),bc(t,a.key,a)}}function Fc(t,r,i){return r&&ep(t.prototype,r),i&&ep(t,i),t}var tp=o(83863),rp=o(79542),np=o(24889);function ds(t){return ds=rp?np:function(i){return i.__proto__||np(i)},ds(t)}function yv(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&(t=ds(t),t!==null););return t}function _u(t,r,i){return typeof Reflect!="undefined"&&tp?_u=tp:_u=function(s,p,m){var S=yv(s,p);if(!!S){var w=xc(S,p);return w.get?w.get.call(m):w.value}},_u(t,r,i||t)}var mv=o(189);function kc(t,r){return kc=rp||function(a,s){return a.__proto__=s,a},kc(t,r)}function xv(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=mv(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&kc(t,r)}var qu=o(13535);function bv(){if(typeof Reflect=="undefined"||!qu||qu.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(qu(Boolean,[],function(){})),!0}catch(t){return!1}}function wv(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Sv(t,r){return r&&(pr(r)==="object"||typeof r=="function")?r:wv(t)}function Av(t){var r=bv();return function(){var a=ds(t),s;if(r){var p=ds(this).constructor;s=qu(a,arguments,p)}else s=a.apply(this,arguments);return Sv(this,s)}}var Ev=o(94473),Cv=o.n(Ev),Ov=o(57514),Tv=o.n(Ov),Pv=function(r){var i=function(p,m){return{name:p,value:m}};if(Ol()(r.prototype.set)||Ol()(r.prototype.get)||Ol()(r.prototype.getAll)||Ol()(r.prototype.has))return r;var a=function(s){xv(m,s);var p=Av(m);function m(S){var w;return Ic(this,m),w=p.call(this,S),w.entryList=[],w}return Fc(m,[{key:"append",value:function(w,E,k){return this.entryList.push(i(w,E)),_u(ds(m.prototype),"append",this).call(this,w,E,k)}},{key:"set",value:function(w,E){var k,$=i(w,E);this.entryList=Ln()(k=this.entryList).call(k,function(oe){return oe.name!==w}),this.entryList.push($)}},{key:"get",value:function(w){var E,k=Cv()(E=this.entryList).call(E,function($){return $.name===w});return k===void 0?null:k}},{key:"getAll",value:function(w){var E,k;return ir()(E=Ln()(k=this.entryList).call(k,function($){return $.name===w})).call(E,function($){return $.value})}},{key:"has",value:function(w){return this.entryList.some(function(E){return E.name===w})}}]),m}(r);return a};const Iv=Pv(Tv());function Fv(t){if(Sc(t))return Ac(t)}function kv(t){if(typeof ma!="undefined"&&wc(t)!=null||t["@@iterator"]!=null)return Yd(t)}function Rv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
451
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ba(t){return Fv(t)||kv(t)||Ec(t)||Rv()}var Mv=o(3649),Hi=o.n(Mv),Lv=o(88996),Dv=Lv.Buffer,Nv=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},Bv=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function ps(t){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.escape,s=arguments.length>2?arguments[2]:void 0;return typeof t=="number"&&(t=t.toString()),typeof t!="string"||!t.length||!a?t:s?JSON.parse(t):ir()(r=ba(t)).call(r,function(p){var m,S;if(Bv(p)||Nv(p)&&a==="unsafe")return p;var w=ir()(m=ir()(S=Dv.from(p).toJSON().data||[]).call(S,function(E){var k;return Hi()(k="0".concat(E.toString(16).toUpperCase())).call(k,-2)})).call(m,function(E){return"%".concat(E)}).join("");return w}).join("")}function Rc(t){var r=t.value;return Array.isArray(r)?Uv(t):pr(r)==="object"?jv(t):Vv(t)}function Uv(t){var r=t.key,i=t.value,a=t.style,s=t.explode,p=t.escape,m=function($){return ps($,{escape:p})};if(a==="simple")return ir()(i).call(i,function(k){return m(k)}).join(",");if(a==="label")return".".concat(ir()(i).call(i,function(k){return m(k)}).join("."));if(a==="matrix")return ir()(i).call(i,function(k){return m(k)}).reduce(function(k,$){var oe;if(!k||s){var re,ce;return Tt()(re=Tt()(ce="".concat(k||"",";")).call(ce,r,"=")).call(re,$)}return Tt()(oe="".concat(k,",")).call(oe,$)},"");if(a==="form"){var S=s?"&".concat(r,"="):",";return ir()(i).call(i,function(k){return m(k)}).join(S)}if(a==="spaceDelimited"){var w=s?"".concat(r,"="):"";return ir()(i).call(i,function(k){return m(k)}).join(" ".concat(w))}if(a==="pipeDelimited"){var E=s?"".concat(r,"="):"";return ir()(i).call(i,function(k){return m(k)}).join("|".concat(E))}}function jv(t){var r=t.key,i=t.value,a=t.style,s=t.explode,p=t.escape,m=function(E){return ps(E,{escape:p})},S=or()(i);if(a==="simple")return S.reduce(function(w,E){var k,$,oe,re=m(i[E]),ce=s?"=":",",ve=w?"".concat(w,","):"";return Tt()(k=Tt()($=Tt()(oe="".concat(ve)).call(oe,E)).call($,ce)).call(k,re)},"");if(a==="label")return S.reduce(function(w,E){var k,$,oe,re=m(i[E]),ce=s?"=":".",ve=w?"".concat(w,"."):".";return Tt()(k=Tt()($=Tt()(oe="".concat(ve)).call(oe,E)).call($,ce)).call(k,re)},"");if(a==="matrix"&&s)return S.reduce(function(w,E){var k,$,oe=m(i[E]),re=w?"".concat(w,";"):";";return Tt()(k=Tt()($="".concat(re)).call($,E,"=")).call(k,oe)},"");if(a==="matrix")return S.reduce(function(w,E){var k,$,oe=m(i[E]),re=w?"".concat(w,","):";".concat(r,"=");return Tt()(k=Tt()($="".concat(re)).call($,E,",")).call(k,oe)},"");if(a==="form")return S.reduce(function(w,E){var k,$,oe,re,ce=m(i[E]),ve=w?Tt()(k="".concat(w)).call(k,s?"&":","):"",he=s?"=":",";return Tt()($=Tt()(oe=Tt()(re="".concat(ve)).call(re,E)).call(oe,he)).call($,ce)},"")}function Vv(t){var r=t.key,i=t.value,a=t.style,s=t.escape,p=function(w){return ps(w,{escape:s})};if(a==="simple")return p(i);if(a==="label")return".".concat(p(i));if(a==="matrix"){var m;return Tt()(m=";".concat(r,"=")).call(m,p(i))}if(a==="form")return p(i);if(a==="deepObject")return p(i,{},!0)}var Mc={serializeRes:ip,mergeInQueryOrForm:fp};function ef(t){return Lc.apply(this,arguments)}function Lc(){return Lc=Cc(Wi().mark(function t(r){var i,a,s,p,m,S=arguments;return Wi().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(i=S.length>1&&S[1]!==void 0?S[1]:{},pr(r)==="object"&&(i=r,r=i.url),i.headers=i.headers||{},Mc.mergeInQueryOrForm(i),i.headers&&or()(i.headers).forEach(function(k){var $=i.headers[k];typeof $=="string"&&(i.headers[k]=$.replace(/\n+/g," "))}),!i.requestInterceptor){E.next=12;break}return E.next=8,i.requestInterceptor(i);case 8:if(E.t0=E.sent,E.t0){E.next=11;break}E.t0=i;case 11:i=E.t0;case 12:return a=i.headers["content-type"]||i.headers["Content-Type"],/multipart\/form-data/i.test(a)&&(delete i.headers["content-type"],delete i.headers["Content-Type"]),E.prev=14,E.next=17,(i.userFetch||fetch)(i.url,i);case 17:return s=E.sent,E.next=20,Mc.serializeRes(s,r,i);case 20:if(s=E.sent,!i.responseInterceptor){E.next=28;break}return E.next=24,i.responseInterceptor(s);case 24:if(E.t1=E.sent,E.t1){E.next=27;break}E.t1=s;case 27:s=E.t1;case 28:E.next=39;break;case 30:if(E.prev=30,E.t2=E.catch(14),s){E.next=34;break}throw E.t2;case 34:throw p=new Error(s.statusText),p.status=s.status,p.statusCode=s.status,p.responseError=E.t2,p;case 39:if(s.ok){E.next=45;break}throw m=new Error(s.statusText),m.status=s.status,m.statusCode=s.status,m.response=s,m;case 45:return E.abrupt("return",s);case 46:case"end":return E.stop()}},t,null,[[14,30]])})),Lc.apply(this,arguments)}var Wv=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(r)};function Hv(t,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(t):_d().safeLoad(t)}function ip(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=i.loadSpec,s=a===void 0?!1:a,p={ok:t.ok,url:t.url||r,status:t.status,statusText:t.statusText,headers:op(t.headers)},m=p.headers["content-type"],S=s||Wv(m),w=S?t.text:t.blob||t.buffer;return w.call(t).then(function(E){if(p.text=E,p.data=E,S)try{var k=Hv(E,m);p.body=k,p.obj=k}catch($){p.parseError=$}return p})}function zv(t){var r=Oc()(t).call(t,", ");return r?t.split(", "):t}function op(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Ol()(Qd()(t))?av()(Qd()(t).call(t)).reduce(function(r,i){var a=vi(i,2),s=a[0],p=a[1];return r[s]=zv(p),r},{}):{}}function Dc(t,r){return!r&&typeof navigator!="undefined"&&(r=navigator),r&&r.product==="ReactNative"?!!(t&&pr(t)==="object"&&typeof t.uri=="string"):typeof File!="undefined"&&t instanceof File||typeof Blob!="undefined"&&t instanceof Blob||typeof qd.Buffer!="undefined"&&t instanceof qd.Buffer?!0:t!==null&&pr(t)==="object"&&typeof t.pipe=="function"}function ap(t,r){return Array.isArray(t)&&t.some(function(i){return Dc(i,r)})}var Gv={form:",",spaceDelimited:"%20",pipeDelimited:"|"},$v={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function sp(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=r.collectionFormat,s=r.allowEmptyValue,p=r.serializationOption,m=r.encoding,S=pr(r)==="object"&&!Array.isArray(r)?r.value:r,w=i?function($){return $.toString()}:function($){return encodeURIComponent($)},E=w(t);if(typeof S=="undefined"&&s)return[[E,""]];if(Dc(S)||ap(S))return[[E,S]];if(p)return lp(t,S,i,p);if(m){if([pr(m.style),pr(m.explode),pr(m.allowReserved)].some(function($){return $!=="undefined"}))return lp(t,S,i,Pc()(m,["style","explode","allowReserved"]));if(m.contentType){if(m.contentType==="application/json"){var k=typeof S=="string"?S:Zu()(S);return[[E,w(k)]]}return[[E,w(S.toString())]]}return pr(S)!=="object"?[[E,w(S)]]:Array.isArray(S)&&S.every(function($){return pr($)!=="object"})?[[E,ir()(S).call(S,w).join(",")]]:[[E,w(Zu()(S))]]}return pr(S)!=="object"?[[E,w(S)]]:Array.isArray(S)?a==="multi"?[[E,ir()(S).call(S,w)]]:[[E,ir()(S).call(S,w).join($v[a||"csv"])]]:[[E,""]]}function lp(t,r,i,a){var s,p=a.style||"form",m=typeof a.explode=="undefined"?p==="form":a.explode,S=i?!1:a&&a.allowReserved?"unsafe":"reserved",w=function(re){return ps(re,{escape:S})},E=i?function(oe){return oe}:function(oe){return ps(oe,{escape:S})};if(pr(r)!=="object")return[[E(t),w(r)]];if(Array.isArray(r))return m?[[E(t),ir()(r).call(r,w)]]:[[E(t),ir()(r).call(r,w).join(Gv[p])]];if(p==="deepObject"){var k;return ir()(k=or()(r)).call(k,function(oe){var re;return[E(Tt()(re="".concat(t,"[")).call(re,oe,"]")),w(r[oe])]})}if(m){var $;return ir()($=or()(r)).call($,function(oe){return[E(oe),w(r[oe])]})}return[[E(t),ir()(s=or()(r)).call(s,function(oe){var re;return[Tt()(re="".concat(E(oe),",")).call(re,w(r[oe]))]}).join(",")]]}function Kv(t){return Zd()(t).reduce(function(r,i){var a=vi(i,2),s=a[0],p=a[1],m=xa(sp(s,p,!0)),S;try{for(m.s();!(S=m.n()).done;){var w=vi(S.value,2),E=w[0],k=w[1];if(Array.isArray(k)){var $=xa(k),oe;try{for($.s();!(oe=$.n()).done;){var re=oe.value;r.append(E,re)}}catch(ce){$.e(ce)}finally{$.f()}}else r.append(E,k)}}catch(ce){m.e(ce)}finally{m.f()}return r},new Iv)}function up(t){var r=or()(t).reduce(function(i,a){var s=xa(sp(a,t[a])),p;try{for(s.s();!(p=s.n()).done;){var m=vi(p.value,2),S=m[0],w=m[1];i[S]=w}}catch(E){s.e(E)}finally{s.f()}return i},{});return Tc().stringify(r,{encode:!1,indices:!1})||""}function fp(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.url,i=r===void 0?"":r,a=t.query,s=t.form,p=function(){for(var Se=arguments.length,me=new Array(Se),Fe=0;Fe<Se;Fe++)me[Fe]=arguments[Fe];var $e=Ln()(me).call(me,function(Ue){return Ue}).join("&");return $e?"?".concat($e):""};if(s){var m=or()(s).some(function(he){var Se=s[he].value;return Dc(Se)||ap(Se)}),S=t.headers["content-type"]||t.headers["Content-Type"];m||/multipart\/form-data/i.test(S)?t.body=Kv(t.form):t.body=up(s),delete t.form}if(a){var w=i.split("?"),E=vi(w,2),k=E[0],$=E[1],oe="";if($){var re=Tc().parse($),ce=or()(a);ce.forEach(function(he){return delete re[he]}),oe=Tc().stringify(re,{encode:!0})}var ve=p(oe,up(a));t.url=k+ve,delete t.query}return t}function Yv(t,r,i){return i=i||function(a){return a},r=r||function(a){return a},function(a){return typeof a=="string"&&(a={url:a}),Mc.mergeInQueryOrForm(a),a=r(a),i(t(a))}}var Jv=o(51942),gi=o.n(Jv),Xv=o(93476),wa=o.n(Xv),Qv=o(92762),Zv=o.n(Qv),_v=o(13311),qv=o.n(_v),eg=o(50308),cp=o.n(eg);/*!
|
|
452
|
-
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
453
|
-
* (c) 2017 Joachim Wester
|
|
454
|
-
* MIT license
|
|
455
|
-
*/var tg=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var p in s)s.hasOwnProperty(p)&&(a[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),rg=Object.prototype.hasOwnProperty;function tf(t,r){return rg.call(t,r)}function Nc(t){if(Array.isArray(t)){for(var i=new Array(t.length),r=0;r<i.length;r++)i[r]=""+r;return i}if(Object.keys)return Object.keys(t);var i=[];for(var a in t)tf(t,a)&&i.push(a);return i}function $n(t){switch(typeof t){case"object":return JSON.parse(JSON.stringify(t));case"undefined":return null;default:return t}}function Bc(t){for(var r=0,i=t.length,a;r<i;){if(a=t.charCodeAt(r),a>=48&&a<=57){r++;continue}return!1}return!0}function co(t){return t.indexOf("/")===-1&&t.indexOf("~")===-1?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function dp(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function pp(t,r){var i;for(var a in t)if(tf(t,a)){if(t[a]===r)return co(a)+"/";if(typeof t[a]=="object"&&(i=pp(t[a],r),i!=""))return co(a)+"/"+i}return""}function Um(t,r){if(t===r)return"/";var i=pp(t,r);if(i==="")throw new Error("Object not found in root");return"/"+i}function Uc(t){if(t===void 0)return!0;if(t){if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)if(Uc(t[r]))return!0}else if(typeof t=="object"){for(var a=Nc(t),s=a.length,r=0;r<s;r++)if(Uc(t[a[r]]))return!0}}return!1}function hp(t,r){var i=[t];for(var a in r){var s=typeof r[a]=="object"?JSON.stringify(r[a],null,2):r[a];typeof s!="undefined"&&i.push(a+": "+s)}return i.join(`
|
|
456
|
-
`)}var vp=function(t){tg(r,t);function r(i,a,s,p,m){var S=this.constructor,w=t.call(this,hp(i,{name:a,index:s,operation:p,tree:m}))||this;return w.name=a,w.index=s,w.operation=p,w.tree=m,Object.setPrototypeOf(w,S.prototype),w.message=hp(i,{name:a,index:s,operation:p,tree:m}),w}return r}(Error),Gr=vp,ng=$n,hs={add:function(t,r,i){return t[r]=this.value,{newDocument:i}},remove:function(t,r,i){var a=t[r];return delete t[r],{newDocument:i,removed:a}},replace:function(t,r,i){var a=t[r];return t[r]=this.value,{newDocument:i,removed:a}},move:function(t,r,i){var a=Tl(i,this.path);a&&(a=$n(a));var s=Sa(i,{op:"remove",path:this.from}).removed;return Sa(i,{op:"add",path:this.path,value:s}),{newDocument:i,removed:a}},copy:function(t,r,i){var a=Tl(i,this.from);return Sa(i,{op:"add",path:this.path,value:$n(a)}),{newDocument:i}},test:function(t,r,i){return{newDocument:i,test:Pl(t[r],this.value)}},_get:function(t,r,i){return this.value=t[r],{newDocument:i}}},ig={add:function(t,r,i){return Bc(r)?t.splice(r,0,this.value):t[r]=this.value,{newDocument:i,index:r}},remove:function(t,r,i){var a=t.splice(r,1);return{newDocument:i,removed:a[0]}},replace:function(t,r,i){var a=t[r];return t[r]=this.value,{newDocument:i,removed:a}},move:hs.move,copy:hs.copy,test:hs.test,_get:hs._get};function Tl(t,r){if(r=="")return t;var i={op:"_get",path:r};return Sa(t,i),i.value}function Sa(t,r,i,a,s,p){if(i===void 0&&(i=!1),a===void 0&&(a=!0),s===void 0&&(s=!0),p===void 0&&(p=0),i&&(typeof i=="function"?i(r,0,t,r.path):rf(r,0)),r.path===""){var m={newDocument:t};if(r.op==="add")return m.newDocument=r.value,m;if(r.op==="replace")return m.newDocument=r.value,m.removed=t,m;if(r.op==="move"||r.op==="copy")return m.newDocument=Tl(t,r.from),r.op==="move"&&(m.removed=t),m;if(r.op==="test"){if(m.test=Pl(t,r.value),m.test===!1)throw new Gr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return m.newDocument=t,m}else{if(r.op==="remove")return m.removed=t,m.newDocument=null,m;if(r.op==="_get")return r.value=t,m;if(i)throw new Gr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",p,r,t);return m}}else{a||(t=$n(t));var S=r.path||"",w=S.split("/"),E=t,k=1,$=w.length,oe=void 0,re=void 0,ce=void 0;for(typeof i=="function"?ce=i:ce=rf;;){if(re=w[k],s&&re=="__proto__")throw new TypeError("JSON-Patch: modifying `__proto__` 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(i&&oe===void 0&&(E[re]===void 0?oe=w.slice(0,k).join("/"):k==$-1&&(oe=r.path),oe!==void 0&&ce(r,0,t,oe)),k++,Array.isArray(E)){if(re==="-")re=E.length;else{if(i&&!Bc(re))throw new Gr("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",p,r,t);Bc(re)&&(re=~~re)}if(k>=$){if(i&&r.op==="add"&&re>E.length)throw new Gr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",p,r,t);var m=ig[r.op].call(r,E,re,t);if(m.test===!1)throw new Gr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return m}}else if(re&&re.indexOf("~")!=-1&&(re=dp(re)),k>=$){var m=hs[r.op].call(r,E,re,t);if(m.test===!1)throw new Gr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return m}E=E[re]}}}function Aa(t,r,i,a,s){if(a===void 0&&(a=!0),s===void 0&&(s=!0),i&&!Array.isArray(r))throw new Gr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");a||(t=$n(t));for(var p=new Array(r.length),m=0,S=r.length;m<S;m++)p[m]=Sa(t,r[m],i,!0,s,m),t=p[m].newDocument;return p.newDocument=t,p}function og(t,r,i){var a=Sa(t,r);if(a.test===!1)throw new Gr("Test operation failed","TEST_OPERATION_FAILED",i,r,t);return a.newDocument}function rf(t,r,i,a){if(typeof t!="object"||t===null||Array.isArray(t))throw new Gr("Operation is not an object","OPERATION_NOT_AN_OBJECT",r,t,i);if(hs[t.op]){if(typeof t.path!="string")throw new Gr("Operation `path` property is not a string","OPERATION_PATH_INVALID",r,t,i);if(t.path.indexOf("/")!==0&&t.path.length>0)throw new Gr('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",r,t,i);if((t.op==="move"||t.op==="copy")&&typeof t.from!="string")throw new Gr("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",r,t,i);if((t.op==="add"||t.op==="replace"||t.op==="test")&&t.value===void 0)throw new Gr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",r,t,i);if((t.op==="add"||t.op==="replace"||t.op==="test")&&Uc(t.value))throw new Gr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",r,t,i);if(i){if(t.op=="add"){var s=t.path.split("/").length,p=a.split("/").length;if(s!==p+1&&s!==p)throw new Gr("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",r,t,i)}else if(t.op==="replace"||t.op==="remove"||t.op==="_get"){if(t.path!==a)throw new Gr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",r,t,i)}else if(t.op==="move"||t.op==="copy"){var m={op:"_get",path:t.from,value:void 0},S=gp([m],i);if(S&&S.name==="OPERATION_PATH_UNRESOLVABLE")throw new Gr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",r,t,i)}}}else throw new Gr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",r,t,i)}function gp(t,r,i){try{if(!Array.isArray(t))throw new Gr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(r)Aa($n(r),$n(t),i||!0);else{i=i||rf;for(var a=0;a<t.length;a++)i(t[a],a,r,void 0)}}catch(s){if(s instanceof Gr)return s;throw s}}function Pl(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){var i=Array.isArray(t),a=Array.isArray(r),s,p,m;if(i&&a){if(p=t.length,p!=r.length)return!1;for(s=p;s--!=0;)if(!Pl(t[s],r[s]))return!1;return!0}if(i!=a)return!1;var S=Object.keys(t);if(p=S.length,p!==Object.keys(r).length)return!1;for(s=p;s--!=0;)if(!r.hasOwnProperty(S[s]))return!1;for(s=p;s--!=0;)if(m=S[s],!Pl(t[m],r[m]))return!1;return!0}return t!==t&&r!==r}/*!
|
|
457
|
-
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
458
|
-
* (c) 2017 Joachim Wester
|
|
459
|
-
* MIT license
|
|
460
|
-
*/var jc=new WeakMap,ag=function(){function t(r){this.observers=new Map,this.obj=r}return t}(),sg=function(){function t(r,i){this.callback=r,this.observer=i}return t}();function lg(t){return jc.get(t)}function ug(t,r){return t.observers.get(r)}function fg(t,r){t.observers.delete(r.callback)}function cg(t,r){r.unobserve()}function dg(t,r){var i=[],a,s=lg(t);if(!s)s=new ag(t),jc.set(t,s);else{var p=ug(s,r);a=p&&p.observer}if(a)return a;if(a={},s.value=$n(t),r){a.callback=r,a.next=null;var m=function(){Vc(a)},S=function(){clearTimeout(a.next),a.next=setTimeout(m)};typeof window!="undefined"&&(window.addEventListener("mouseup",S),window.addEventListener("keyup",S),window.addEventListener("mousedown",S),window.addEventListener("keydown",S),window.addEventListener("change",S))}return a.patches=i,a.object=t,a.unobserve=function(){Vc(a),clearTimeout(a.next),fg(s,a),typeof window!="undefined"&&(window.removeEventListener("mouseup",S),window.removeEventListener("keyup",S),window.removeEventListener("mousedown",S),window.removeEventListener("keydown",S),window.removeEventListener("change",S))},s.observers.set(r,new sg(r,a)),a}function Vc(t,r){r===void 0&&(r=!1);var i=jc.get(t.object);Wc(i.value,t.object,t.patches,"",r),t.patches.length&&Aa(i.value,t.patches);var a=t.patches;return a.length>0&&(t.patches=[],t.callback&&t.callback(a)),a}function Wc(t,r,i,a,s){if(r!==t){typeof r.toJSON=="function"&&(r=r.toJSON());for(var p=Nc(r),m=Nc(t),S=!1,w=!1,E=m.length-1;E>=0;E--){var k=m[E],$=t[k];if(tf(r,k)&&!(r[k]===void 0&&$!==void 0&&Array.isArray(r)===!1)){var oe=r[k];typeof $=="object"&&$!=null&&typeof oe=="object"&&oe!=null?Wc($,oe,i,a+"/"+co(k),s):$!==oe&&(S=!0,s&&i.push({op:"test",path:a+"/"+co(k),value:$n($)}),i.push({op:"replace",path:a+"/"+co(k),value:$n(oe)}))}else Array.isArray(t)===Array.isArray(r)?(s&&i.push({op:"test",path:a+"/"+co(k),value:$n($)}),i.push({op:"remove",path:a+"/"+co(k)}),w=!0):(s&&i.push({op:"test",path:a,value:t}),i.push({op:"replace",path:a,value:r}),S=!0)}if(!(!w&&p.length==m.length))for(var E=0;E<p.length;E++){var k=p[E];!tf(t,k)&&r[k]!==void 0&&i.push({op:"add",path:a+"/"+co(k),value:$n(r[k])})}}}function pg(t,r,i){i===void 0&&(i=!1);var a=[];return Wc(t,r,a,"",i),a}const jm=Object.assign({},c,v,{JsonPatchError:vp,deepClone:$n,escapePathComponent:co,unescapePathComponent:dp});var hg=o(31312),vg=o.n(hg),gg=o(50361),yg=o.n(gg);const sr={add:xg,replace:Hc,remove:bg,merge:wg,mergeDeep:Sg,context:Ag,getIn:Tg,applyPatch:mg,parentPathMatch:Og,flatten:Il,fullyNormalizeArray:Pg,normalizeArray:xp,isPromise:Ig,forEachNew:Eg,forEachNewPrimitive:Cg,isJsonPatch:Sp,isContextPatch:Rg,isPatch:of,isMutation:Ap,isAdditiveMutation:nf,isGenerator:kg,isFunction:wp,isObject:jo,isError:Fg};function mg(t,r,i){if(i=i||{},r=Er(Er({},r),{},{path:r.path&&yp(r.path)}),r.op==="merge"){var a=$c(t,r.path);gi()(a,r.value),Aa(t,[Hc(r.path,a)])}else if(r.op==="mergeDeep"){var s=$c(t,r.path);for(var p in r.value){var m=r.value[p],S=Array.isArray(m);if(S){var w=s[p]||[];s[p]=Tt()(w).call(w,m)}else if(jo(m)&&!S){var E=Er({},s[p]);for(var k in m)if(Object.prototype.hasOwnProperty.call(E,k)){E=vg()(yg()(E),m);break}else gi()(E,Gd({},k,m[k]));s[p]=E}else s[p]=m}}else if(r.op==="add"&&r.path===""&&jo(r.value)){var $=or()(r.value).reduce(function(he,Se){return he.push({op:"add",path:"/".concat(yp(Se)),value:r.value[Se]}),he},[]);Aa(t,$)}else if(r.op==="replace"&&r.path===""){var oe=r,re=oe.value;i.allowMetaPatches&&r.meta&&nf(r)&&(Array.isArray(r.value)||jo(r.value))&&(re=Er(Er({},re),r.meta)),t=re}else if(Aa(t,[r]),i.allowMetaPatches&&r.meta&&nf(r)&&(Array.isArray(r.value)||jo(r.value))){var ce=$c(t,r.path),ve=Er(Er({},ce),r.meta);Aa(t,[Hc(r.path,ve)])}return t}function yp(t){return Array.isArray(t)?t.length<1?"":"/".concat(ir()(t).call(t,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):t}function xg(t,r){return{op:"add",path:t,value:r}}function Hc(t,r,i){return{op:"replace",path:t,value:r,meta:i}}function bg(t){return{op:"remove",path:t}}function wg(t,r){return{type:"mutation",op:"merge",path:t,value:r}}function Sg(t,r){return{type:"mutation",op:"mergeDeep",path:t,value:r}}function Ag(t,r){return{type:"context",path:t,value:r}}function Eg(t,r){try{return mp(t,Gc,r)}catch(i){return i}}function Cg(t,r){try{return mp(t,zc,r)}catch(i){return i}}function mp(t,r,i){var a,s=ir()(a=Ln()(t).call(t,nf)).call(a,function(S){return r(S.value,i,S.path)})||[],p=Il(s),m=bp(p);return m}function zc(t,r,i){if(i=i||[],Array.isArray(t))return ir()(t).call(t,function(s,p){return zc(s,r,Tt()(i).call(i,p))});if(jo(t)){var a;return ir()(a=or()(t)).call(a,function(s){return zc(t[s],r,Tt()(i).call(i,s))})}return r(t,i[i.length-1],i)}function Gc(t,r,i){i=i||[];var a=[];if(i.length>0){var s=r(t,i[i.length-1],i);s&&(a=Tt()(a).call(a,s))}if(Array.isArray(t)){var p=ir()(t).call(t,function(w,E){return Gc(w,r,Tt()(i).call(i,E))});p&&(a=Tt()(a).call(a,p))}else if(jo(t)){var m,S=ir()(m=or()(t)).call(m,function(w){return Gc(t[w],r,Tt()(i).call(i,w))});S&&(a=Tt()(a).call(a,S))}return a=Il(a),a}function Og(t,r){if(!Array.isArray(r))return!1;for(var i=0,a=r.length;i<a;i+=1)if(r[i]!==t[i])return!1;return!0}function Tg(t,r){return r.reduce(function(i,a){return typeof a!="undefined"&&i?i[a]:i},t)}function Pg(t){return bp(Il(xp(t)))}function xp(t){return Array.isArray(t)?t:[t]}function Il(t){var r;return Tt()(r=[]).apply(r,ba(ir()(t).call(t,function(i){return Array.isArray(i)?Il(i):i})))}function bp(t){return Ln()(t).call(t,function(r){return typeof r!="undefined"})}function jo(t){return t&&pr(t)==="object"}function Ig(t){return jo(t)&&wp(t.then)}function wp(t){return t&&typeof t=="function"}function Fg(t){return t instanceof Error}function Sp(t){if(of(t)){var r=t.op;return r==="add"||r==="remove"||r==="replace"}return!1}function kg(t){return Object.prototype.toString.call(t)==="[object GeneratorFunction]"}function Ap(t){return Sp(t)||of(t)&&t.type==="mutation"}function nf(t){return Ap(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function Rg(t){return of(t)&&t.type==="context"}function of(t){return t&&pr(t)==="object"}function $c(t,r){try{return Tl(t,r)}catch(i){return console.error(i),{}}}var Mg=o(52424),Lg=o.n(Mg),Dg=o(54098),Ng=o(9779),Ep=o.n(Ng);function Cp(t,r){function i(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var a=arguments.length,s=new Array(a),p=0;p<a;p++)s[p]=arguments[p];this.message=s[0],r&&r.apply(this,s)}return i.prototype=new Error,i.prototype.name=t,i.prototype.constructor=i,i}var Bg=o(13692),Ug=o.n(Bg),jg=o(47037),Vg=o.n(jg),Wg=["properties"],Hg=["properties"],zg=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Gg=["schema/example","items/example"];function Op(t){var r=t[t.length-1],i=t[t.length-2],a=t.join("/");return Wg.indexOf(r)>-1&&Hg.indexOf(i)===-1||zg.indexOf(a)>-1||Gg.some(function(s){return a.indexOf(s)>-1})}function $g(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=i.specmap,s=i.getBaseUrlForNodePath,p=s===void 0?function(E){var k;return a.getContext(Tt()(k=[]).call(k,ba(r),ba(E))).baseDoc}:s,m=i.targetKeys,S=m===void 0?["$ref","$$ref"]:m,w=[];return Ug()(t).forEach(function(){if(Oc()(S).call(S,this.key)&&Vg()(this.node)){var k=this.path,$=Tt()(r).call(r,this.path),oe=Kc(this.node,p(k));w.push(a.replace($,oe))}}),w}function Kc(t,r){var i,a=t.split("#"),s=vi(a,2),p=s[0],m=s[1],S=Uo.resolve(p||"",r||"");return m?Tt()(i="".concat(S,"#")).call(i,m):S}var Tp="application/json, application/yaml",Kg=new RegExp("^([a-z]+://|//)","i"),vs=Cp("JSONRefError",function(r,i,a){this.originalError=a,gi()(this,i||{})}),po={},Pp=new(Lg()),Yg=[function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="examples"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="examples"&&t[6]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="examples"&&t[7]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[4]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"}],Jg=function(r){return Yg.some(function(i){return i(r)})},Xg={key:"$ref",plugin:function(r,i,a,s){var p=s.getInstance(),m=Hi()(a).call(a,0,-1);if(!(Op(m)||Jg(m))){var S=s.getContext(a),w=S.baseDoc;if(typeof r!="string")return new vs("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:w,fullPath:a});var E=kp(r),k=E[0],$=E[1]||"",oe;try{oe=w||k?Fp(k,w):null}catch(me){return Yc(me,{pointer:$,$ref:r,basePath:oe,fullPath:a})}var re,ce;if(ty($,oe,m,s)&&!p.useCircularStructures){var ve=Kc(r,oe);return r===ve?null:sr.replace(a,ve)}if(oe==null?(ce=Xc($),re=s.get(ce),typeof re=="undefined"&&(re=new vs("Could not resolve reference: ".concat(r),{pointer:$,$ref:r,baseDoc:w,fullPath:a}))):(re=Rp(oe,$),re.__value!=null?re=re.__value:re=re.catch(function(me){throw Yc(me,{pointer:$,$ref:r,baseDoc:w,fullPath:a})})),re instanceof Error)return[sr.remove(a),re];var he=Kc(r,oe),Se=sr.replace(m,re,{$$ref:he});if(oe&&oe!==w)return[Se,sr.context(m,{baseDoc:oe})];try{if(!ry(s.state,Se)||p.useCircularStructures)return Se}catch(me){return null}}}},Ip=gi()(Xg,{docCache:po,absoluteify:Fp,clearCache:Zg,JSONRefError:vs,wrapError:Yc,getDoc:Mp,split:kp,extractFromDoc:Rp,fetchJSON:_g,extract:Jc,jsonPointerToArray:Xc,unescapeJsonPointerToken:Lp});const Qg=Ip;function Fp(t,r){if(!Kg.test(t)){if(!r){var i;throw new vs(Tt()(i="Tried to resolve a relative URL, without having a basePath. path: '".concat(t,"' basePath: '")).call(i,r,"'"))}return Uo.resolve(r,t)}return t}function Yc(t,r){var i;if(t&&t.response&&t.response.body){var a;i=Tt()(a="".concat(t.response.body.code," ")).call(a,t.response.body.message)}else i=t.message;return new vs("Could not resolve reference: ".concat(i),r,t)}function kp(t){return(t+"").split("#")}function Rp(t,r){var i=po[t];if(i&&!sr.isPromise(i))try{var a=Jc(r,i);return gi()(wa().resolve(a),{__value:a})}catch(s){return wa().reject(s)}return Mp(t).then(function(s){return Jc(r,s)})}function Zg(t){typeof t!="undefined"?delete po[t]:or()(po).forEach(function(r){delete po[r]})}function Mp(t){var r=po[t];return r?sr.isPromise(r)?r:wa().resolve(r):(po[t]=Ip.fetchJSON(t).then(function(i){return po[t]=i,i}),po[t])}function _g(t){return(0,Dg.fetch)(t,{headers:{Accept:Tp},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return _d().safeLoad(r)})}function Jc(t,r){var i=Xc(t);if(i.length<1)return r;var a=sr.getIn(r,i);if(typeof a=="undefined")throw new vs("Could not resolve pointer: ".concat(t," does not exist in document"),{pointer:t});return a}function Xc(t){var r;if(typeof t!="string")throw new TypeError("Expected a string, got a ".concat(pr(t)));return t[0]==="/"&&(t=t.substr(1)),t===""?[]:ir()(r=t.split("/")).call(r,Lp)}function Lp(t){return typeof t!="string"?t:Ep().unescape(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function Dp(t){return Ep().escape(t.replace(/~/g,"~0").replace(/\//g,"~1"))}function qg(t){return t.length===0?"":"/".concat(ir()(t).call(t,Dp).join("/"))}var ey=function(r){return!r||r==="/"||r==="#"};function Qc(t,r){if(ey(r))return!0;var i=t.charAt(r.length),a=Hi()(r).call(r,-1);return t.indexOf(r)===0&&(!i||i==="/"||i==="#")&&a!=="#"}function ty(t,r,i,a){var s,p,m=Pp.get(a);m||(m={},Pp.set(a,m));var S=qg(i),w=Tt()(s="".concat(r||"<specmap-base>","#")).call(s,t),E=S.replace(/allOf\/\d+\/?/g,""),k=a.contextTree.get([]).baseDoc;if(r==k&&Qc(E,t))return!0;var $="",oe=i.some(function(re){var ce;return $=Tt()(ce="".concat($,"/")).call(ce,Dp(re)),m[$]&&m[$].some(function(ve){return Qc(ve,w)||Qc(w,ve)})});if(oe)return!0;m[E]=Tt()(p=m[E]||[]).call(p,w)}function ry(t,r){var i=[t];return r.path.reduce(function(s,p){return i.push(s[p]),s[p]},t),a(r.value);function a(s){return sr.isObject(s)&&(i.indexOf(s)>=0||or()(s).some(function(p){return a(s[p])}))}}var ny=o(41609),iy=o.n(ny);const oy={key:"allOf",plugin:function(r,i,a,s,p){if(!(p.meta&&p.meta.$$ref)){var m=Hi()(a).call(a,0,-1);if(!Op(m)){if(!Array.isArray(r)){var S=new TypeError("allOf must be an array");return S.fullPath=a,S}var w=!1,E=p.value;if(m.forEach(function(oe){!E||(E=E[oe])}),E=Er({},E),!iy()(E)){delete E.allOf;var k=[];if(k.push(s.replace(m,{})),r.forEach(function(oe,re){if(!s.isObject(oe)){if(w)return null;w=!0;var ce=new TypeError("Elements in allOf must be objects");return ce.fullPath=a,k.push(ce)}k.push(s.mergeDeep(m,oe));var ve=Hi()(a).call(a,0,-1),he=$g(oe,ve,{getBaseUrlForNodePath:function(me){var Fe;return s.getContext(Tt()(Fe=[]).call(Fe,ba(a),[re],ba(me))).baseDoc},specmap:s});k.push.apply(k,ba(he))}),k.push(s.mergeDeep(m,E)),!E.$$ref){var $;k.push(s.remove(Tt()($=[]).call($,m,"$$ref")))}return k}}}}},ay={key:"parameters",plugin:function(r,i,a,s){if(Array.isArray(r)&&r.length){var p=gi()([],r),m=Hi()(a).call(a,0,-1),S=Er({},sr.getIn(s.spec,m));return r.forEach(function(w,E){try{p[E].default=s.parameterMacro(S,w)}catch($){var k=new Error($);return k.fullPath=a,k}}),sr.replace(a,p)}return sr.replace(a,r)}},sy={key:"properties",plugin:function(r,i,a,s){var p=Er({},r);for(var m in r)try{p[m].default=s.modelPropertyMacro(p[m])}catch(E){var S=new Error(E);return S.fullPath=a,S}var w=sr.replace(a,p);return w}};var ly=function(){function t(r){Ic(this,t),this.root=Zc(r||{})}return Fc(t,[{key:"set",value:function(i,a){var s=this.getParent(i,!0);if(!s){af(this.root,a,null);return}var p=i[i.length-1],m=s.children;if(m[p]){af(m[p],a,s);return}m[p]=Zc(a,s)}},{key:"get",value:function(i){if(i=i||[],i.length<1)return this.root.value;for(var a=this.root,s,p,m=0;m<i.length&&(p=i[m],s=a.children,!!s[p]);m+=1)a=s[p];return a&&a.protoValue}},{key:"getParent",value:function(i,a){return!i||i.length<1?null:i.length<2?this.root:Hi()(i).call(i,0,-1).reduce(function(s,p){if(!s)return s;var m=s.children;return!m[p]&&a&&(m[p]=Zc(null,s)),m[p]},this.root)}}]),t}();function Zc(t,r){return af({children:{}},t,r)}function af(t,r,i){return t.value=r||{},t.protoValue=i?Er(Er({},i.protoValue),t.value):t.value,or()(t.children).forEach(function(a){var s=t.children[a];t.children[a]=af(s,s.value,t)}),t}var Np=100,uy=function(){function t(r){var i=this,a,s;Ic(this,t),gi()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new ly,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:gi()(Object.create(this),sr,{getInstance:function(){return i}}),allowMetaPatches:!1},r),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=Ln()(a=ir()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(a,sr.isFunction),this.patches.push(sr.add([],this.spec)),this.patches.push(sr.context([],this.context)),this.updatePatches(this.patches)}return Fc(t,[{key:"debug",value:function(i){if(this.debugLevel===i){for(var a,s=arguments.length,p=new Array(s>1?s-1:0),m=1;m<s;m++)p[m-1]=arguments[m];(a=console).log.apply(a,p)}}},{key:"verbose",value:function(i){if(this.debugLevel==="verbose"){for(var a,s,p=arguments.length,m=new Array(p>1?p-1:0),S=1;S<p;S++)m[S-1]=arguments[S];(a=console).log.apply(a,Tt()(s=["[".concat(i,"] ")]).call(s,m))}}},{key:"wrapPlugin",value:function(i,a){var s=this.pathDiscriminator,p=null,m;return i[this.pluginProp]?(p=i,m=i[this.pluginProp]):sr.isFunction(i)?m=i:sr.isObject(i)&&(m=S(i)),gi()(m.bind(p),{pluginName:i.name||a,isGenerator:sr.isGenerator(m)});function S(w){var E=function($,oe){return Array.isArray($)?$.every(function(re,ce){return re===oe[ce]}):!0};return Wi().mark(function k($,oe){var re,ce,ve,he,Se,me;return Wi().wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:me=function(ze,Be,je){var We,Xe,et,Ke,ht,Mt,Wt,lr,Lr,Cr,Yr,wr,Ur;return Wi().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:if(sr.isObject(ze)){Xt.next=6;break}if(w.key!==Be[Be.length-1]){Xt.next=4;break}return Xt.next=4,w.plugin(ze,w.key,Be,oe);case 4:Xt.next=30;break;case 6:We=Be.length-1,Xe=Be[We],et=Be.indexOf("properties"),Ke=Xe==="properties"&&We===et,ht=oe.allowMetaPatches&&ce[ze.$$ref],Mt=0,Wt=or()(ze);case 12:if(!(Mt<Wt.length)){Xt.next=30;break}if(lr=Wt[Mt],Lr=ze[lr],Cr=Tt()(Be).call(Be,lr),Yr=sr.isObject(Lr),wr=ze.$$ref,ht){Xt.next=22;break}if(!Yr){Xt.next=22;break}return oe.allowMetaPatches&&wr&&(ce[wr]=!0),Xt.delegateYield(me(Lr,Cr,je),"t0",22);case 22:if(!(!Ke&&lr===w.key)){Xt.next=27;break}if(Ur=E(s,Be),!(!s||Ur)){Xt.next=27;break}return Xt.next=27,w.plugin(Lr,lr,Cr,oe,je);case 27:Mt++,Xt.next=12;break;case 30:case"end":return Xt.stop()}},re)},re=Wi().mark(me),ce={},ve=xa(Ln()($).call($,sr.isAdditiveMutation)),$e.prev=4,ve.s();case 6:if((he=ve.n()).done){$e.next=11;break}return Se=he.value,$e.delegateYield(me(Se.value,Se.path,Se),"t0",9);case 9:$e.next=6;break;case 11:$e.next=16;break;case 13:$e.prev=13,$e.t1=$e.catch(4),ve.e($e.t1);case 16:return $e.prev=16,ve.f(),$e.finish(16);case 19:case"end":return $e.stop()}},k,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var i=this;return qv()(this.wrappedPlugins,function(a){var s=i.getMutationsForPlugin(a);return s.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var i;return wa().race(ir()(i=this.promisedPatches).call(i,function(a){return a.value}))}}},{key:"getPluginHistory",value:function(i){var a=this.constructor.getPluginName(i);return this.pluginHistory[a]||[]}},{key:"getPluginRunCount",value:function(i){return this.getPluginHistory(i).length}},{key:"getPluginHistoryTip",value:function(i){var a=this.getPluginHistory(i),s=a&&a[a.length-1];return s||{}}},{key:"getPluginMutationIndex",value:function(i){var a=this.getPluginHistoryTip(i).mutationIndex;return typeof a!="number"?-1:a}},{key:"updatePluginHistory",value:function(i,a){var s=this.constructor.getPluginName(i);this.pluginHistory[s]=this.pluginHistory[s]||[],this.pluginHistory[s].push(a)}},{key:"updatePatches",value:function(i){var a=this;sr.normalizeArray(i).forEach(function(s){if(s instanceof Error){a.errors.push(s);return}try{if(!sr.isObject(s)){a.debug("updatePatches","Got a non-object patch",s);return}if(a.showDebug&&a.allPatches.push(s),sr.isPromise(s.value)){a.promisedPatches.push(s),a.promisedPatchThen(s);return}if(sr.isContextPatch(s)){a.setContext(s.path,s.value);return}if(sr.isMutation(s)){a.updateMutations(s);return}}catch(p){console.error(p),a.errors.push(p)}})}},{key:"updateMutations",value:function(i){pr(i.value)==="object"&&!Array.isArray(i.value)&&this.allowMetaPatches&&(i.value=Er({},i.value));var a=sr.applyPatch(this.state,i,{allowMetaPatches:this.allowMetaPatches});a&&(this.mutations.push(i),this.state=a)}},{key:"removePromisedPatch",value:function(i){var a,s=this.promisedPatches.indexOf(i);if(s<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}Zv()(a=this.promisedPatches).call(a,s,1)}},{key:"promisedPatchThen",value:function(i){var a=this;return i.value=i.value.then(function(s){var p=Er(Er({},i),{},{value:s});a.removePromisedPatch(i),a.updatePatches(p)}).catch(function(s){a.removePromisedPatch(i),a.updatePatches(s)}),i.value}},{key:"getMutations",value:function(i,a){var s;return i=i||0,typeof a!="number"&&(a=this.mutations.length),Hi()(s=this.mutations).call(s,i,a)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(i){var a=this.getPluginMutationIndex(i);return this.getMutations(a+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(i){return sr.getIn(this.state,i)}},{key:"_getContext",value:function(i){return this.contextTree.get(i)}},{key:"setContext",value:function(i,a){return this.contextTree.set(i,a)}},{key:"_hasRun",value:function(i){var a=this.getPluginRunCount(this.getCurrentPlugin());return a>(i||0)}},{key:"dispatch",value:function(){var i=this,a=this,s=this.nextPlugin();if(!s){var p=this.nextPromisedPatch();if(p)return p.then(function(){return i.dispatch()}).catch(function(){return i.dispatch()});var m={spec:this.state,errors:this.errors};return this.showDebug&&(m.patches=this.allPatches),wa().resolve(m)}if(a.pluginCount=a.pluginCount||{},a.pluginCount[s]=(a.pluginCount[s]||0)+1,a.pluginCount[s]>Np){var S;return wa().resolve({spec:a.state,errors:Tt()(S=a.errors).call(S,new Error("We've reached a hard limit of ".concat(Np," plugin runs")))})}if(s!==this.currentPlugin&&this.promisedPatches.length){var w,E=ir()(w=this.promisedPatches).call(w,function(oe){return oe.value});return wa().all(ir()(E).call(E,function(oe){return oe.then(cp(),cp())})).then(function(){return i.dispatch()})}return k();function k(){a.currentPlugin=s;var oe=a.getCurrentMutations(),re=a.mutations.length-1;try{if(s.isGenerator){var ce=xa(s(oe,a.getLib())),ve;try{for(ce.s();!(ve=ce.n()).done;){var he=ve.value;$(he)}}catch(me){ce.e(me)}finally{ce.f()}}else{var Se=s(oe,a.getLib());$(Se)}}catch(me){console.error(me),$([gi()(Object.create(me),{plugin:s})])}finally{a.updatePluginHistory(s,{mutationIndex:re})}return a.dispatch()}function $(oe){oe&&(oe=sr.fullyNormalizeArray(oe),a.updatePatches(oe,s))}}}],[{key:"getPluginName",value:function(i){return i.pluginName}},{key:"getPatchesOfType",value:function(i,a){return Ln()(i).call(i,a)}}]),t}();function fy(t){return new uy(t).dispatch()}var Ea={refs:Qg,allOf:oy,parameters:ay,properties:sy},cy=o(13218),Bp=o.n(cy),Up=function(r){return String.prototype.toLowerCase.call(r)},jp=function(r){return r.replace(/[^\w]/gi,"_")};function Vp(t){var r=t.openapi;return r?Kd()(r,"3"):!1}function Vm(t){var r=t.swagger;return r?startsWith(r,"2"):!1}function sf(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=a.v2OperationIdCompatibilityMode;if(!t||pr(t)!=="object")return null;var p=(t.operationId||"").replace(/\s/g,"");return p.length?jp(t.operationId):dy(r,i,{v2OperationIdCompatibilityMode:s})}function dy(t,r){var i,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=a.v2OperationIdCompatibilityMode;if(s){var p,m,S=Tt()(p="".concat(r.toLowerCase(),"_")).call(p,t).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return S=S||Tt()(m="".concat(t.substring(1),"_")).call(m,r),S.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return Tt()(i="".concat(Up(r))).call(i,jp(t))}function Wp(t,r){var i;return Tt()(i="".concat(Up(r),"-")).call(i,t)}function py(t,r){return!t||!t.paths?null:hy(t,function(i){var a=i.pathName,s=i.method,p=i.operation;if(!p||pr(p)!=="object")return!1;var m=p.operationId,S=sf(p,a,s),w=Wp(a,s);return[S,w,m].some(function(E){return E&&E===r})})}function hy(t,r){return Hp(t,r,!0)||null}function Hp(t,r,i){if(!t||pr(t)!=="object"||!t.paths||pr(t.paths)!=="object")return null;var a=t.paths;for(var s in a)for(var p in a[s])if(p.toUpperCase()!=="PARAMETERS"){var m=a[s][p];if(!(!m||pr(m)!=="object")){var S={spec:t,pathName:s,method:p.toUpperCase(),operation:m},w=r(S);if(i&&w)return S}}}function zp(t){var r=t.spec,i=r.paths,a={};if(!i||r.$$normalized)return t;for(var s in i){var p=i[s];if(!!Bp()(p)){var m=p.parameters,S=function($){var oe=p[$];if(!Bp()(oe))return"continue";var re=sf(oe,s,$);if(re){a[re]?a[re].push(oe):a[re]=[oe];var ce=a[re];if(ce.length>1)ce.forEach(function(Xe,et){var Ke;Xe.__originalOperationId=Xe.__originalOperationId||Xe.operationId,Xe.operationId=Tt()(Ke="".concat(re)).call(Ke,et+1)});else if(typeof oe.operationId!="undefined"){var ve=ce[0];ve.__originalOperationId=ve.__originalOperationId||oe.operationId,ve.operationId=re}}if($!=="parameters"){var he=[],Se={};for(var me in r)(me==="produces"||me==="consumes"||me==="security")&&(Se[me]=r[me],he.push(Se));if(m&&(Se.parameters=m,he.push(Se)),he.length){var Fe=xa(he),$e;try{for(Fe.s();!($e=Fe.n()).done;){var Ue=$e.value;for(var ze in Ue)if(!oe[ze])oe[ze]=Ue[ze];else if(ze==="parameters"){var Be=xa(Ue[ze]),je;try{var We=function(){var et=je.value,Ke=oe[ze].some(function(ht){return ht.name&&ht.name===et.name||ht.$ref&&ht.$ref===et.$ref||ht.$$ref&&ht.$$ref===et.$$ref||ht===et});Ke||oe[ze].push(et)};for(Be.s();!(je=Be.n()).done;)We()}catch(Xe){Be.e(Xe)}finally{Be.f()}}}}catch(Xe){Fe.e(Xe)}finally{Fe.f()}}}};for(var w in p)var E=S(w)}}return r.$$normalized=!0,t}function Gp(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.requestInterceptor,a=r.responseInterceptor,s=t.withCredentials?"include":"same-origin";return function(p){return t({url:p,loadSpec:!0,requestInterceptor:i,responseInterceptor:a,headers:{Accept:Tp},credentials:s}).then(function(m){return m.body})}}function vy(){Ea.refs.clearCache()}function $p(t){var r=t.fetch,i=t.spec,a=t.url,s=t.mode,p=t.allowMetaPatches,m=p===void 0?!0:p,S=t.pathDiscriminator,w=t.modelPropertyMacro,E=t.parameterMacro,k=t.requestInterceptor,$=t.responseInterceptor,oe=t.skipNormalization,re=t.useCircularStructures,ce=t.http,ve=t.baseDoc;if(ve=ve||a,ce=r||ce||ef,!i)return Gp(ce,{requestInterceptor:k,responseInterceptor:$})(ve).then(he);return he(i);function he(Se){ve&&(Ea.refs.docCache[ve]=Se),Ea.refs.fetchJSON=Gp(ce,{requestInterceptor:k,responseInterceptor:$});var me=[Ea.refs];return typeof E=="function"&&me.push(Ea.parameters),typeof w=="function"&&me.push(Ea.properties),s!=="strict"&&me.push(Ea.allOf),fy({spec:Se,context:{baseDoc:ve},plugins:me,allowMetaPatches:m,pathDiscriminator:S,parameterMacro:E,modelPropertyMacro:w,useCircularStructures:re}).then(oe?function(){var Fe=Cc(Wi().mark(function $e(Ue){return Wi().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return Be.abrupt("return",Ue);case 1:case"end":return Be.stop()}},$e)}));return function($e){return Fe.apply(this,arguments)}}():zp)}}var gy=o(27361),Fl=o.n(gy);function yy(t,r){return _c.apply(this,arguments)}function _c(){return _c=Cc(Wi().mark(function t(r,i){var a,s,p,m,S,w,E,k,$,oe,re,ce,ve=arguments;return Wi().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return a=ve.length>2&&ve[2]!==void 0?ve[2]:{},s=a.returnEntireTree,p=a.baseDoc,m=a.requestInterceptor,S=a.responseInterceptor,w=a.parameterMacro,E=a.modelPropertyMacro,k=a.useCircularStructures,$={pathDiscriminator:i,baseDoc:p,requestInterceptor:m,responseInterceptor:S,parameterMacro:w,modelPropertyMacro:E,useCircularStructures:k},oe=zp({spec:r}),re=oe.spec,Se.next=6,$p(Er(Er({},$),{},{spec:re,allowMetaPatches:!0,skipNormalization:!0}));case 6:return ce=Se.sent,!s&&Array.isArray(i)&&i.length&&(ce.spec=Fl()(ce.spec,i)||null),Se.abrupt("return",ce);case 9:case"end":return Se.stop()}},t)})),_c.apply(this,arguments)}var my=function(){return null},xy=function(r){return Array.isArray(r)?r:[r]},lf={mapTagOperations:Sy,makeExecute:by};function by(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var i=r.pathName,a=r.method,s=r.operationId;return function(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.execute(Er(Er({spec:t.spec},Pc()(t,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:i,method:a,parameters:p,operationId:s},m))}}}function Wm(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=lf.makeExecute(t),i=lf.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r}),a={};for(var s in i){a[s]={operations:{}};for(var p in i[s])a[s].operations[p]={execute:i[s][p]}}return{apis:a}}function wy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=lf.makeExecute(t);return{apis:lf.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r})}}function Sy(t){var r=t.spec,i=t.cb,a=i===void 0?my:i,s=t.defaultTag,p=s===void 0?"default":s,m=t.v2OperationIdCompatibilityMode,S={},w={};return Hp(r,function(E){var k=E.pathName,$=E.method,oe=E.operation,re=oe.tags?xy(oe.tags):[p];re.forEach(function(ce){if(typeof ce=="string"){w[ce]=w[ce]||{};var ve=w[ce],he=sf(oe,k,$,{v2OperationIdCompatibilityMode:m}),Se=a({spec:r,pathName:k,method:$,operation:oe,operationId:he});if(S[he]){var me;S[he]+=1,ve[Tt()(me="".concat(he)).call(me,S[he])]=Se}else if(typeof ve[he]!="undefined"){var Fe,$e,Ue=S[he]||1;S[he]=Ue+1,ve[Tt()(Fe="".concat(he)).call(Fe,S[he])]=Se;var ze=ve[he];delete ve[he],ve[Tt()($e="".concat(he)).call($e,Ue)]=ze}else ve[he]=Se}})}),w}var Kp=o(95683);function Ay(t,r){if(t==null)return{};var i={},a=Wd(t),s,p;for(p=0;p<a.length;p++)s=a[p],!(Kp(r).call(r,s)>=0)&&(i[s]=t[s]);return i}function Ey(t,r){if(t==null)return{};var i=Ay(t,r),a,s;if(Xu){var p=Xu(t);for(s=0;s<p.length;s++)a=p[s],!(Kp(r).call(r,a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,a)||(i[a]=t[a]))}return i}var Cy=o(68630),Yp=o.n(Cy),Oy=o(1469),Ty=o.n(Oy),Py=o(76489);const Iy={body:Fy,header:Ry,query:Ly,path:My,formData:ky};function Fy(t){var r=t.req,i=t.value;r.body=i}function ky(t){var r=t.req,i=t.value,a=t.parameter;(i||a.allowEmptyValue)&&(r.form=r.form||{},r.form[a.name]={value:i,allowEmptyValue:a.allowEmptyValue,collectionFormat:a.collectionFormat})}function Ry(t){var r=t.req,i=t.parameter,a=t.value;r.headers=r.headers||{},typeof a!="undefined"&&(r.headers[i.name]=a)}function My(t){var r=t.req,i=t.value,a=t.parameter;r.url=r.url.split("{".concat(a.name,"}")).join(encodeURIComponent(i))}function Ly(t){var r=t.req,i=t.value,a=t.parameter;if(r.query=r.query||{},i===!1&&a.type==="boolean"&&(i="false"),i===0&&["number","integer"].indexOf(a.type)>-1&&(i="0"),i)r.query[a.name]={collectionFormat:a.collectionFormat,value:i};else if(a.allowEmptyValue&&i!==void 0){var s=a.name;r.query[s]=r.query[s]||{},r.query[s].allowEmptyValue=!0}}function uf(t,r){return Oc()(r).call(r,"application/json")?typeof t=="string"?t:Zu()(t):t.toString()}function Dy(t){var r=t.req,i=t.value,a=t.parameter,s=a.name,p=a.style,m=a.explode,S=a.content;if(S){var w=or()(S)[0];r.url=r.url.split("{".concat(s,"}")).join(ps(uf(i,w),{escape:!0}));return}var E=Rc({key:a.name,value:i,style:p||"simple",explode:m||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(E)}function Ny(t){var r=t.req,i=t.value,a=t.parameter;if(r.query=r.query||{},a.content){var s=or()(a.content)[0];r.query[a.name]=uf(i,s);return}if(i===!1&&(i="false"),i===0&&(i="0"),i)r.query[a.name]={value:i,serializationOption:Pc()(a,["style","explode","allowReserved"])};else if(a.allowEmptyValue&&i!==void 0){var p=a.name;r.query[p]=r.query[p]||{},r.query[p].allowEmptyValue=!0}}var By=["accept","authorization","content-type"];function Uy(t){var r=t.req,i=t.parameter,a=t.value;if(r.headers=r.headers||{},!(By.indexOf(i.name.toLowerCase())>-1)){if(i.content){var s=or()(i.content)[0];r.headers[i.name]=uf(a,s);return}typeof a!="undefined"&&(r.headers[i.name]=Rc({key:i.name,value:a,style:i.style||"simple",explode:typeof i.explode=="undefined"?!1:i.explode,escape:!1}))}}function jy(t){var r=t.req,i=t.parameter,a=t.value;r.headers=r.headers||{};var s=pr(a);if(i.content){var p,m=or()(i.content)[0];r.headers.Cookie=Tt()(p="".concat(i.name,"=")).call(p,uf(a,m));return}if(s!=="undefined"){var S=s==="object"&&!Array.isArray(a)&&i.explode?"":"".concat(i.name,"=");r.headers.Cookie=S+Rc({key:i.name,value:a,escape:!1,style:i.style||"form",explode:typeof i.explode=="undefined"?!1:i.explode})}}var Vy=o(50706),Jp=o.n(Vy);function Wy(t,r){var i=t.operation,a=t.requestBody,s=t.securities,p=t.spec,m=t.attachContentTypeForEmptyPayload,S=t.requestContentType;r=Hy({request:r,securities:s,operation:i,spec:p});var w=i.requestBody||{},E=or()(w.content||{}),k=S&&E.indexOf(S)>-1;if(a||m){if(S&&k)r.headers["Content-Type"]=S;else if(!S){var $=E[0];$&&(r.headers["Content-Type"]=$,S=$)}}else S&&k&&(r.headers["Content-Type"]=S);if(!t.responseContentType&&i.responses){var oe,re=Ln()(oe=Zd()(i.responses)).call(oe,function(ve){var he=vi(ve,2),Se=he[0],me=he[1],Fe=parseInt(Se,10);return Fe>=200&&Fe<300&&Yp()(me.content)}).reduce(function(ve,he){var Se=vi(he,2),me=Se[1];return Tt()(ve).call(ve,or()(me.content))},[]);re.length>0&&(r.headers.accept=re.join(", "))}if(a)if(S){if(E.indexOf(S)>-1)if(S==="application/x-www-form-urlencoded"||S==="multipart/form-data")if(pr(a)==="object"){var ce=(w.content[S]||{}).encoding||{};r.form={},or()(a).forEach(function(ve){r.form[ve]={value:a[ve],encoding:ce[ve]||{}}})}else r.form=a;else r.body=a}else r.body=a;return r}function Hy(t){var r=t.request,i=t.securities,a=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,m=t.spec,S=Qu()({},r),w=a.authorized,E=w===void 0?{}:w,k=p.security||m.security||[],$=E&&!!or()(E).length,oe=Fl()(m,["components","securitySchemes"])||{};return S.headers=S.headers||{},S.query=S.query||{},!or()(a).length||!$||!k||Array.isArray(p.security)&&!p.security.length?r:(k.forEach(function(re){or()(re).forEach(function(ce){var ve=E[ce],he=oe[ce];if(!!ve){var Se=ve.value||ve,me=he.type;if(ve){if(me==="apiKey")he.in==="query"&&(S.query[he.name]=Se),he.in==="header"&&(S.headers[he.name]=Se),he.in==="cookie"&&(S.cookies[he.name]=Se);else if(me==="http"){if(/^basic$/i.test(he.scheme)){var Fe,$e=Se.username||"",Ue=Se.password||"",ze=Jp()(Tt()(Fe="".concat($e,":")).call(Fe,Ue));S.headers.Authorization="Basic ".concat(ze)}/^bearer$/i.test(he.scheme)&&(S.headers.Authorization="Bearer ".concat(Se))}else if(me==="oauth2"||me==="openIdConnect"){var Be,je=ve.token||{},We=he["x-tokenName"]||"access_token",Xe=je[We],et=je.token_type;(!et||et.toLowerCase()==="bearer")&&(et="Bearer"),S.headers.Authorization=Tt()(Be="".concat(et," ")).call(Be,Xe)}}}})}),S)}function zy(t,r){var i=t.spec,a=t.operation,s=t.securities,p=t.requestContentType,m=t.responseContentType,S=t.attachContentTypeForEmptyPayload;if(r=Gy({request:r,securities:s,operation:a,spec:i}),r.body||r.form||S){var w,E;if(p)r.headers["Content-Type"]=p;else if(Array.isArray(a.consumes)){var k=vi(a.consumes,1);r.headers["Content-Type"]=k[0]}else if(Array.isArray(i.consumes)){var $=vi(i.consumes,1);r.headers["Content-Type"]=$[0]}else a.parameters&&Ln()(w=a.parameters).call(w,function(he){return he.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":a.parameters&&Ln()(E=a.parameters).call(E,function(he){return he.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(p){var oe,re,ce=a.parameters&&Ln()(oe=a.parameters).call(oe,function(he){return he.in==="body"}).length>0,ve=a.parameters&&Ln()(re=a.parameters).call(re,function(he){return he.in==="formData"}).length>0;(ce||ve)&&(r.headers["Content-Type"]=p)}return!m&&Array.isArray(a.produces)&&a.produces.length>0&&(r.headers.accept=a.produces.join(", ")),r}function Gy(t){var r=t.request,i=t.securities,a=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,m=t.spec,S=Qu()({},r),w=a.authorized,E=w===void 0?{}:w,k=a.specSecurity,$=k===void 0?[]:k,oe=p.security||$,re=E&&!!or()(E).length,ce=m.securityDefinitions;return S.headers=S.headers||{},S.query=S.query||{},!or()(a).length||!re||!oe||Array.isArray(p.security)&&!p.security.length?r:(oe.forEach(function(ve){or()(ve).forEach(function(he){var Se=E[he];if(!!Se){var me=Se.token,Fe=Se.value||Se,$e=ce[he],Ue=$e.type,ze=$e["x-tokenName"]||"access_token",Be=me&&me[ze],je=me&&me.token_type;if(Se){if(Ue==="apiKey"){var We=$e.in==="query"?"query":"headers";S[We]=S[We]||{},S[We][$e.name]=Fe}else if(Ue==="basic")if(Fe.header)S.headers.authorization=Fe.header;else{var Xe,et=Fe.username||"",Ke=Fe.password||"";Fe.base64=Jp()(Tt()(Xe="".concat(et,":")).call(Xe,Ke)),S.headers.authorization="Basic ".concat(Fe.base64)}else if(Ue==="oauth2"&&Be){var ht;je=!je||je.toLowerCase()==="bearer"?"Bearer":je,S.headers.authorization=Tt()(ht="".concat(je," ")).call(ht,Be)}}}})}),S)}var Xp=function(r){return Array.isArray(r)?r:[]},$y=Cp("OperationNotFoundError",function(r,i,a){this.originalError=a,gi()(this,i||{})}),Ky=function(r,i){return Ln()(i).call(i,function(a){return a.name===r})},Yy=function(r){var i={};r.forEach(function(s){i[s.in]||(i[s.in]={}),i[s.in][s.name]=s});var a=[];return or()(i).forEach(function(s){or()(i[s]).forEach(function(p){a.push(i[s][p])})}),a},Jy={buildRequest:Qp};function Xy(t){var r=t.http,i=t.fetch,a=t.spec,s=t.operationId,p=t.pathName,m=t.method,S=t.parameters,w=t.securities,E=Ey(t,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),k=r||i||ef;p&&m&&!s&&(s=Wp(p,m));var $=Jy.buildRequest(Er({spec:a,operationId:s,parameters:S,securities:w,http:k},E));return $.body&&(Yp()($.body)||Ty()($.body))&&($.body=Zu()($.body)),k($)}function Qp(t){var r,i,a=t.spec,s=t.operationId,p=t.responseContentType,m=t.scheme,S=t.requestInterceptor,w=t.responseInterceptor,E=t.contextUrl,k=t.userFetch,$=t.server,oe=t.serverVariables,re=t.http,ce=t.parameters,ve=t.parameterBuilders,he=Vp(a);ve||(he?ve=x:ve=Iy);var Se=re&&re.withCredentials?"include":"same-origin",me={url:"",credentials:Se,headers:{},cookies:{}};S&&(me.requestInterceptor=S),w&&(me.responseInterceptor=w),k&&(me.userFetch=k);var Fe=py(a,s);if(!Fe)throw new $y("Operation ".concat(s," not found"));var $e=Fe.operation,Ue=$e===void 0?{}:$e,ze=Fe.method,Be=Fe.pathName;if(me.url+=Zp({spec:a,scheme:m,contextUrl:E,server:$,serverVariables:oe,pathName:Be,method:ze}),!s)return delete me.cookies,me;me.url+=Be,me.method="".concat(ze).toUpperCase(),ce=ce||{};var je=a.paths[Be]||{};p&&(me.headers.accept=p);var We=Yy(Tt()(r=Tt()(i=[]).call(i,Xp(Ue.parameters))).call(r,Xp(je.parameters)));We.forEach(function(Ke){var ht=ve[Ke.in],Mt;if(Ke.in==="body"&&Ke.schema&&Ke.schema.properties&&(Mt=ce),Mt=Ke&&Ke.name&&ce[Ke.name],typeof Mt=="undefined"){var Wt;Mt=Ke&&Ke.name&&ce[Tt()(Wt="".concat(Ke.in,".")).call(Wt,Ke.name)]}else if(Ky(Ke.name,We).length>1){var lr;console.warn(Tt()(lr="Parameter '".concat(Ke.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(lr,Ke.name,"' and the passed-in parameter values did not define an 'in' value."))}if(Mt!==null){if(typeof Ke.default!="undefined"&&typeof Mt=="undefined"&&(Mt=Ke.default),typeof Mt=="undefined"&&Ke.required&&!Ke.allowEmptyValue)throw new Error("Required parameter ".concat(Ke.name," is not provided"));if(he&&Ke.schema&&Ke.schema.type==="object"&&typeof Mt=="string")try{Mt=JSON.parse(Mt)}catch(Lr){throw new Error("Could not parse object parameter value string as JSON")}ht&&ht({req:me,parameter:Ke,value:Mt,operation:Ue,spec:a})}});var Xe=Er(Er({},t),{},{operation:Ue});if(he?me=Wy(Xe,me):me=zy(Xe,me),me.cookies&&or()(me.cookies).length){var et=or()(me.cookies).reduce(function(Ke,ht){var Mt=me.cookies[ht],Wt=Ke?"&":"",lr=Py.serialize(ht,Mt);return Ke+Wt+lr},"");me.headers.Cookie=et}return me.cookies&&delete me.cookies,fp(me),me}var qc=function(r){return r?r.replace(/\W/g,""):null};function Zp(t){var r=Vp(t.spec);return r?Qy(t):qy(t)}function Qy(t){var r=t.spec,i=t.pathName,a=t.method,s=t.server,p=t.contextUrl,m=t.serverVariables,S=m===void 0?{}:m,w=Fl()(r,["paths",i,(a||"").toLowerCase(),"servers"])||Fl()(r,["paths",i,"servers"])||Fl()(r,["servers"]),E="",k=null;if(s&&w&&w.length){var $=ir()(w).call(w,function(ce){return ce.url});$.indexOf(s)>-1&&(E=s,k=w[$.indexOf(s)])}if(!E&&w&&w.length){E=w[0].url;var oe=vi(w,1);k=oe[0]}if(E.indexOf("{")>-1){var re=_y(E);re.forEach(function(ce){if(k.variables&&k.variables[ce]){var ve=k.variables[ce],he=S[ce]||ve.default,Se=new RegExp("{".concat(ce,"}"),"g");E=E.replace(Se,he)}})}return Zy(E,p)}function Zy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t&&r?Uo.parse(Uo.resolve(r,t)):Uo.parse(t),a=Uo.parse(r),s=qc(i.protocol)||qc(a.protocol)||"",p=i.host||a.host,m=i.pathname||"",S;if(s&&p){var w;S=Tt()(w="".concat(s,"://")).call(w,p+m)}else S=m;return S[S.length-1]==="/"?Hi()(S).call(S,0,-1):S}function _y(t){for(var r=[],i=/{([^}]+)}/g,a;a=i.exec(t);)r.push(a[1]);return r}function qy(t){var r=t.spec,i=t.scheme,a=t.contextUrl,s=a===void 0?"":a,p=Uo.parse(s),m=Array.isArray(r.schemes)?r.schemes[0]:null,S=i||m||qc(p.protocol)||"http",w=r.host||p.host||"",E=r.basePath||"",k;if(S&&w){var $;k=Tt()($="".concat(S,"://")).call($,w+E)}else k=E;return k[k.length-1]==="/"?Hi()(k).call(k,0,-1):k}Br.http=ef,Br.makeHttp=Yv.bind(null,Br.http),Br.resolve=$p,Br.resolveSubtree=yy,Br.execute=Xy,Br.serializeRes=ip,Br.serializeHeaders=op,Br.clearCache=vy,Br.makeApisTagOperation=wy,Br.buildRequest=Qp,Br.helpers={opId:sf},Br.getBaseUrl=Zp;function Br(t){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof t=="string"?i.url=t:i=t,!(this instanceof Br))return new Br(i);Qu()(this,i);var a=this.resolve().then(function(){return r.disableInterfaces||Qu()(r,Br.makeApisTagOperation(r)),r});return a.client=this,a}Br.prototype={http:ef,execute:function(r){return this.applyDefaults(),Br.execute(Er({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,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Br.resolve(Er({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},i)).then(function(a){return r.originalSpec=r.spec,r.spec=a.spec,r.errors=a.errors,r})}},Br.prototype.applyDefaults=function(){var r=this.spec,i=this.url;if(i&&Kd()(i,"http")){var a=Uo.parse(i);r.host||(r.host=a.host),r.schemes||(r.schemes=[a.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var Hm=Br.helpers;const em=Br;var tm=o(71057),rm=o(72940),_p=Object.defineProperty,nm=Object.defineProperties,im=Object.getOwnPropertyDescriptor,om=Object.getOwnPropertyDescriptors,ff=Object.getOwnPropertySymbols,qp=Object.prototype.hasOwnProperty,eh=Object.prototype.propertyIsEnumerable,ed=(t,r,i)=>r in t?_p(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,$r=(t,r)=>{for(var i in r||(r={}))qp.call(r,i)&&ed(t,i,r[i]);if(ff)for(var i of ff(r))eh.call(r,i)&&ed(t,i,r[i]);return t},Cn=(t,r)=>nm(t,om(r)),td=(t,r)=>{var i={};for(var a in t)qp.call(t,a)&&r.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&ff)for(var a of ff(t))r.indexOf(a)<0&&eh.call(t,a)&&(i[a]=t[a]);return i},am=(t,r,i,a)=>{for(var s=a>1?void 0:a?im(r,i):r,p=t.length-1,m;p>=0;p--)(m=t[p])&&(s=(a?m(r,i,s):m(s))||s);return a&&s&&_p(r,i,s),s},gs=(t,r,i)=>(ed(t,typeof r!="symbol"?r+"":r,i),i),th=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});function rh(t){return t.startsWith("//")?"https:"+t:t}const sm={flex:1,display:"flex",flexDirection:"column"};let rd=class extends d.Component{constructor(t){super(t);gs(this,"formApi"),gs(this,"setFormApi",(r,i=r.getState())=>{var a=i,{values:s}=a,p=td(a,["values"]);this.formApi=r,setTimeout(()=>{const m=Cn($r({},p),{values:Cn($r({},s),{query:(0,Vr.FU)(s.query||{})})});this.setState({form:m})},0)}),gs(this,"handleChange",r=>{var i=r,{values:a}=i,s=td(i,["values"]);const p=Cn($r({},s),{values:Cn($r({},a),{query:(0,Vr.FU)(a.query||{})})});this.setState({form:p}),(0,Vr.Hc)(p)}),gs(this,"handleTabChange",r=>{this.setState({activeTab:r})}),gs(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),gs(this,"handleExecute",()=>th(this,null,function*(){var r,i,a,s,p,m,S;const{store:w,operation:E,onResponse:k}=this.props,{values:$,invalid:oe}=this.state.form;if(this.formApi.submitForm(),oe){this.setState({shaking:!0}),setTimeout(()=>this.setState({shaking:!1}),1e3),(i=(r=w==null?void 0:w.options.events)==null?void 0:r.tryItSent)==null||i.call(r,{eventType:Vd.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:E.operationId,operationPath:E.path,operationHttpVerb:E.httpVerb,operationSummary:E.description});return}const re=this.props.operation.requestBody,ce=re&&re.content&&re.content.active&&re.content.active.name||"";let ve=$.body;if(/json/.test(ce))try{ve=JSON.parse(ve)}catch(Ke){console.error(Ke)}this.setState({loading:!0});const he=this.state.resolvedRawSpec,Se=(E.httpVerb||"").toLowerCase(),me=(0,zt.U2)(he,["paths",E.path,Se,"servers"])||(0,zt.U2)(he,["paths",E.path,"servers"])||(0,zt.U2)(he,["servers"]);if(!me)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 Fe=me.find(Ke=>this.state.server.url.endsWith(Ke.url.endsWith("/")?Ke.url.substring(0,Ke.url.length-1):Ke.url)),$e=Date.now(),Ue=!!window.document.documentMode;let ze,Be=$.auth;if($.auth){const Ke=Object.keys($.auth)[0],ht=(0,zt.dw)(Ke);ze=Cn($r({},he),{components:Cn($r({},he.components),{securitySchemes:Cn($r({},he.components.securitySchemes),{[ht]:Cn($r({},he.components.securitySchemes[ht]),{type:he.components.securitySchemes[ht].type==="openIdConnect"?"oauth2":he.components.securitySchemes[ht].type})})})}),Be=Cn($r({},Be),{[ht]:Be[Ke]})}else ze=$r({},he);const je=w.options.corsProxyUrl;je&&me.length&&(ze.servers=me.map(Ke=>Cn($r({},Ke),{url:je+rh(Ke.url)})),ze.paths=Cn($r({},ze.paths),{[E.path]:Cn($r({},ze.paths[E.path]),{[Se]:Cn($r({},ze.paths[E.path][Se]),{servers:void 0}),servers:void 0})}));const We=((s=(a=re==null?void 0:re.content)==null?void 0:a.active)==null?void 0:s.name)||null;if(We&&ve&&ss(We)){const Ke=Object.values(ve);ve=Ke.length>1?Ke:Ke[0]}const Xe=(Ke,ht)=>Mt=>(this.props.store.options.sendXUserAgentInTryIt&&(Mt.headers["X-User-Agent"]="Redocly Try it API console"),Ke?Ke(Mt,ht):Mt),et={userFetch:Ue&&o(54098).fetch,server:je?je+rh(Fe.url):Fe.url,serverVariables:this.state.server.variables,spec:ze,pathName:E.path,method:E.httpVerb,parameters:$r($r($r($r({},$.path),$.query),$.header),$.cookie),securities:{authorized:Be},requestBody:ve,requestContentType:We,responseContentType:((p=$.header)==null?void 0:p.Accept)||null,requestInterceptor:Xe(w.options.requestInterceptor,E)};try{const Ke=yield em.execute(et),ht=Ke==null?void 0:Ke.data;ht instanceof Blob&&(ss(ht.type)&&(Ke.fileInfo={rawData:ht,fileName:(0,Vr.AM)(Ke.headers)}),Ke.data=yield ht.text()),k==null||k({request:et,response:Ke}),this.setState({response:Ke,error:void 0})}catch(Ke){Ke&&Ke.response&&Ke.response.data instanceof Blob&&(Ke.response.data=yield Ke.response.data.text(),k==null||k({request:et,response:Ke.response})),this.setState({response:void 0,error:Ke})}finally{this.setState({loading:!1,activeTab:1,time:Date.now()-$e}),(S=(m=w==null?void 0:w.options.events)==null?void 0:m.tryItSent)==null||S.call(m,{eventType:Vd.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:E.operationId,operationPath:E.path,operationHttpVerb:E.httpVerb,operationSummary:E.description})}})),this.state={form:{values:{path:(0,Vr.ZS)(t.operation.parameters,"path"),cookie:(0,Vr.ZS)(t.operation.parameters,"cookie"),header:(0,Vr.ZS)(t.operation.parameters,"header"),query:(0,Vr.ZS)(t.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return th(this,null,function*(){const{store:t,operation:r}=this.props,i=yield t.dereferenceSpecForTryIt(r);this.setState({resolvedRawSpec:i}),this.formApi.setValues({})})}componentDidUpdate(t){t.operation!==this.props.operation&&this.setState({response:void 0,error:void 0,activeTab:0})}render(){const{operation:t,className:r,rootElement:i}=this.props,{shaking:a,activeTab:s,form:p,response:m,loading:S,error:w}=this.state,E=!!(m||w);return d.createElement(um,{shaking:a,className:r,rootElement:i},d.createElement(vn.k1,null,d.createElement(z,{active:s,hasResponse:E,onChange:this.handleTabChange}),this.props.onClose&&d.createElement(Yi.PZ,{onClick:this.props.onClose}," \u2715 ")),d.createElement(Yi.RE,{hidden:s!==0},this.renderRequest()),d.createElement(Yi.RE,{hidden:s!==1},this.renderResponse()),d.createElement(mo,{hasResponse:E,params:p.values,operation:t,loading:S,execute:this.handleExecute}))}renderRequest(){var t;const{operation:r,store:i,properties:a,securityDefaults:s}=this.props,{form:p,resolvedRawSpec:m,server:S}=this.state,w=p.errors||{},E=w.path||w.cookie||w.header||w.query,k=m&&Gt.JsonPointer.get(m,r.pointer);let $=p.values&&p.values.auth&&Object.keys(p.values.auth)[0];(!$||!p.values.auth[$])&&($=void 0),$&&(p.values.auth[$].token!==void 0||p.values.auth[$].client_id!==void 0||p.values.auth[$].client_secret!==void 0)&&(!p.values.auth[$].token||!p.values.auth[$].token.access_token)&&($=void 0),$&&p.values.auth[$].username!=null&&(!p.values.auth[$].username||!p.values.auth[$].password)&&($=void 0);const oe=r.parameters||[],re=(t=i==null?void 0:i.options.hooks)==null?void 0:t.ReplaceTryItSecurityPanel;return!m&&d.createElement(d.Fragment,null,"Loading...")||d.createElement(d.Fragment,null,d.createElement(Vl,{onChange:this.handleChange,getApi:this.setFormApi,style:Cn($r({},sm),{margin:0})},d.createElement(vn.UQ,{initialActiveIdx:r.security.length&&$?1:0},r.security.length&&d.createElement(cf,{header:(0,Al.l)("tryItAuth"),"data-cy":"security-trigger",renderChildrenHidden:!0,error:!$&&!!w.auth,success:!!$},re?d.createElement(fm,{field:"auth",validate:Cl},ce=>d.createElement(tm.Q,{Hook:re,props:{server:S,operation:r,onChange:ce,OAuth2:Qr}})):d.createElement(Kh,{formApi:this.formApi,form:p,operation:r,activeServer:S.url,authCorsProxyUrl:i.options.authCorsProxyUrl,securityDefaults:s}))||null,r.requestBody&&d.createElement(cf,{header:(0,Al.l)("tryItBody"),"data-cy":"body-trigger",renderChildrenHidden:!0,error:!!w.body},d.createElement(f,{validate:lm,console:this,body:r.requestBody,id:r.id,resolvedBody:k.requestBody,properties:a}))||null,oe.length&&d.createElement(cf,{header:(0,Al.l)("tryItParameters"),"data-cy":"parameters-trigger",error:E,renderChildrenHidden:!0},d.createElement(Qn,{operation:r,values:p.values,errors:p.errors||{}}))||null)),d.createElement(Is,{operation:r,onChange:this.handleServerChange}))}renderResponse(){const{response:t,error:r,time:i}=this.state;return d.createElement(Bs,{response:t,error:r,time:i})}};rd=am([Ho.Pi],rd);function lm(){}function um(t){const{shaking:r,className:i,children:a,rootElement:s}=t,[p]=(0,zt.Bs)(s);return d.createElement(Yi.q2,{shaking:r,className:i,"data-cy":"console",fullWidth:p==null?void 0:p.width},a)}function fm(t){const{fieldApi:r,render:i,userProps:a}=Yn($r({},t)),{setValue:s}=r,{children:p}=a;return i(d.createElement(d.Fragment,null,p(s)))}function cf(t){var r=t,{header:i,error:a,success:s}=r,p=td(r,["header","error","success"]);const m=({toggle:S,expanded:w})=>d.createElement(vn.h4,{onClick:S,isExpanded:w,"data-cy":p["data-cy"]},d.createElement(vn.xz,null,d.createElement(vn.Dx,null,i),d.createElement(Gt.ShelfIcon,{direction:w?"down":"right"})),a&&d.createElement(Gt.CrossIcon,{size:"14px",color:"#ff908b"})||null,s&&d.createElement(Gt.LockIcon,{size:"14px",color:"#56ff26"})||null);return d.createElement(cm,Cn($r({},p),{header:m}))}const cm=(0,In.ZP)(vn.s_)`
|
|
461
|
-
${vn.h4} {
|
|
462
|
-
color: white;
|
|
463
|
-
border: 1px solid ${({error:t})=>t?"#ff908b":"#89949f"};
|
|
464
|
-
padding: 10px;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
${Gt.ShelfIcon} path {
|
|
468
|
-
fill: white;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
${rm.N} {
|
|
472
|
-
padding: 15px 10px;
|
|
473
|
-
background-color: #3e4c59;
|
|
474
|
-
border: 1px solid ${({error:t})=>t?"#ff908b":"#89949f"};
|
|
475
|
-
border-top: 0;
|
|
476
|
-
}
|
|
477
|
-
`},68929:()=>{},17648:h=>{"use strict";var I="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,c=Object.prototype.toString,v="[object Function]";h.exports=function(d){var b=this;if(typeof b!="function"||c.call(b)!==v)throw new TypeError(I+b);for(var A=o.call(arguments,1),g,L=function(){if(this instanceof g){var H=b.apply(this,A.concat(o.call(arguments)));return Object(H)===H?H:this}else return b.apply(d,A.concat(o.call(arguments)))},N=Math.max(0,b.length-A.length),B=[],j=0;j<N;j++)B.push("$"+j);if(g=Function("binder","return function ("+B.join(",")+"){ return binder.apply(this,arguments); }")(L),b.prototype){var _=function(){};_.prototype=b.prototype,g.prototype=new _,_.prototype=null}return g}},58612:(h,I,o)=>{"use strict";var c=o(17648);h.exports=Function.prototype.bind||c},40210:(h,I,o)=>{"use strict";var c,v=SyntaxError,x=Function,d=TypeError,b=function(ye){try{return x('"use strict"; return ('+ye+").constructor;")()}catch(ge){}},A=Object.getOwnPropertyDescriptor;if(A)try{A({},"")}catch(ye){A=null}var g=function(){throw new d},L=A?function(){try{return arguments.callee,g}catch(ye){try{return A(arguments,"callee").get}catch(ge){return g}}}():g,N=o(41405)(),B=Object.getPrototypeOf||function(ye){return ye.__proto__},j={},_=typeof Uint8Array=="undefined"?c:B(Uint8Array),H={"%AggregateError%":typeof AggregateError=="undefined"?c:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?c:ArrayBuffer,"%ArrayIteratorPrototype%":N?B([][Symbol.iterator]()):c,"%AsyncFromSyncIteratorPrototype%":c,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%Atomics%":typeof Atomics=="undefined"?c:Atomics,"%BigInt%":typeof BigInt=="undefined"?c:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?c:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?c:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?c:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?c:FinalizationRegistry,"%Function%":x,"%GeneratorFunction%":j,"%Int8Array%":typeof Int8Array=="undefined"?c:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?c:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?c:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":N?B(B([][Symbol.iterator]())):c,"%JSON%":typeof JSON=="object"?JSON:c,"%Map%":typeof Map=="undefined"?c:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!N?c:B(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?c:Promise,"%Proxy%":typeof Proxy=="undefined"?c:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?c:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?c:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!N?c:B(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?c:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N?B(""[Symbol.iterator]()):c,"%Symbol%":N?Symbol:c,"%SyntaxError%":v,"%ThrowTypeError%":L,"%TypedArray%":_,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array=="undefined"?c:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?c:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?c:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?c:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?c:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?c:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?c:WeakSet},R=function ye(ge){var de;if(ge==="%AsyncFunction%")de=b("async function () {}");else if(ge==="%GeneratorFunction%")de=b("function* () {}");else if(ge==="%AsyncGeneratorFunction%")de=b("async function* () {}");else if(ge==="%AsyncGenerator%"){var le=ye("%AsyncGeneratorFunction%");le&&(de=le.prototype)}else if(ge==="%AsyncIteratorPrototype%"){var ae=ye("%AsyncGenerator%");ae&&(de=B(ae.prototype))}return H[ge]=de,de},X={"%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"]},M=o(58612),C=o(17642),V=M.call(Function.call,Array.prototype.concat),J=M.call(Function.apply,Array.prototype.splice),q=M.call(Function.call,String.prototype.replace),Q=M.call(Function.call,String.prototype.slice),Y=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ue=/\\(\\)?/g,te=function(ge){var de=Q(ge,0,1),le=Q(ge,-1);if(de==="%"&&le!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");if(le==="%"&&de!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var ae=[];return q(ge,Y,function(De,Ve,Le,ke){ae[ae.length]=Le?q(ke,ue,"$1"):Ve||De}),ae},ne=function(ge,de){var le=ge,ae;if(C(X,le)&&(ae=X[le],le="%"+ae[0]+"%"),C(H,le)){var De=H[le];if(De===j&&(De=R(le)),typeof De=="undefined"&&!de)throw new d("intrinsic "+ge+" exists, but is not available. Please file an issue!");return{alias:ae,name:le,value:De}}throw new v("intrinsic "+ge+" does not exist!")};h.exports=function(ge,de){if(typeof ge!="string"||ge.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof de!="boolean")throw new d('"allowMissing" argument must be a boolean');var le=te(ge),ae=le.length>0?le[0]:"",De=ne("%"+ae+"%",de),Ve=De.name,Le=De.value,ke=!1,rt=De.alias;rt&&(ae=rt[0],J(le,V([0,1],rt)));for(var Qe=1,Je=!0;Qe<le.length;Qe+=1){var ut=le[Qe],pt=Q(ut,0,1),mt=Q(ut,-1);if((pt==='"'||pt==="'"||pt==="`"||mt==='"'||mt==="'"||mt==="`")&&pt!==mt)throw new v("property names with quotes must have matching quotes");if((ut==="constructor"||!Je)&&(ke=!0),ae+="."+ut,Ve="%"+ae+"%",C(H,Ve))Le=H[Ve];else if(Le!=null){if(!(ut in Le)){if(!de)throw new d("base intrinsic for "+ge+" exists, but the property is not available.");return}if(A&&Qe+1>=le.length){var qe=A(Le,ut);Je=!!qe,Je&&"get"in qe&&!("originalValue"in qe.get)?Le=qe.get:Le=Le[ut]}else Je=C(Le,ut),Le=Le[ut];Je&&!ke&&(H[Ve]=Le)}}return Le}},41405:(h,I,o)=>{"use strict";var c=typeof Symbol!="undefined"&&Symbol,v=o(55419);h.exports=function(){return typeof c!="function"||typeof Symbol!="function"||typeof c("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:v()}},55419:h=>{"use strict";h.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},c=Symbol("test"),v=Object(c);if(typeof c=="string"||Object.prototype.toString.call(c)!=="[object Symbol]"||Object.prototype.toString.call(v)!=="[object Symbol]")return!1;var x=42;o[c]=x;for(c in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var d=Object.getOwnPropertySymbols(o);if(d.length!==1||d[0]!==c||!Object.prototype.propertyIsEnumerable.call(o,c))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var b=Object.getOwnPropertyDescriptor(o,c);if(b.value!==x||b.enumerable!==!0)return!1}return!0}},17642:(h,I,o)=>{"use strict";var c=o(58612);h.exports=c.call(Function.call,Object.prototype.hasOwnProperty)},80645:(h,I)=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */I.read=function(o,c,v,x,d){var b,A,g=d*8-x-1,L=(1<<g)-1,N=L>>1,B=-7,j=v?d-1:0,_=v?-1:1,H=o[c+j];for(j+=_,b=H&(1<<-B)-1,H>>=-B,B+=g;B>0;b=b*256+o[c+j],j+=_,B-=8);for(A=b&(1<<-B)-1,b>>=-B,B+=x;B>0;A=A*256+o[c+j],j+=_,B-=8);if(b===0)b=1-N;else{if(b===L)return A?NaN:(H?-1:1)*(1/0);A=A+Math.pow(2,x),b=b-N}return(H?-1:1)*A*Math.pow(2,b-x)},I.write=function(o,c,v,x,d,b){var A,g,L,N=b*8-d-1,B=(1<<N)-1,j=B>>1,_=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,H=x?0:b-1,R=x?1:-1,X=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(g=isNaN(c)?1:0,A=B):(A=Math.floor(Math.log(c)/Math.LN2),c*(L=Math.pow(2,-A))<1&&(A--,L*=2),A+j>=1?c+=_/L:c+=_*Math.pow(2,1-j),c*L>=2&&(A++,L/=2),A+j>=B?(g=0,A=B):A+j>=1?(g=(c*L-1)*Math.pow(2,d),A=A+j):(g=c*Math.pow(2,j-1)*Math.pow(2,d),A=0));d>=8;o[v+H]=g&255,H+=R,g/=256,d-=8);for(A=A<<d|g,N+=d;N>0;o[v+H]=A&255,H+=R,A/=256,N-=8);o[v+H-R]|=X*128}},5826:h=>{var I={}.toString;h.exports=Array.isArray||function(o){return I.call(o)=="[object Array]"}},57514:h=>{h.exports=window.FormData},93320:(h,I,o)=>{"use strict";var c=o(51294);h.exports=c},51294:(h,I,o)=>{"use strict";var c=o(40028),v=o(96157);function x(d){return function(){throw new Error("Function "+d+" is deprecated and cannot be used.")}}h.exports.Type=o(53899),h.exports.Schema=o(82409),h.exports.FAILSAFE_SCHEMA=o(75322),h.exports.JSON_SCHEMA=o(65796),h.exports.CORE_SCHEMA=o(17318),h.exports.DEFAULT_SAFE_SCHEMA=o(5972),h.exports.DEFAULT_FULL_SCHEMA=o(19321),h.exports.load=c.load,h.exports.loadAll=c.loadAll,h.exports.safeLoad=c.safeLoad,h.exports.safeLoadAll=c.safeLoadAll,h.exports.dump=v.dump,h.exports.safeDump=v.safeDump,h.exports.YAMLException=o(14884),h.exports.MINIMAL_SCHEMA=o(75322),h.exports.SAFE_SCHEMA=o(5972),h.exports.DEFAULT_SCHEMA=o(19321),h.exports.scan=x("scan"),h.exports.parse=x("parse"),h.exports.compose=x("compose"),h.exports.addConstructor=x("addConstructor")},25596:h=>{"use strict";function I(b){return typeof b=="undefined"||b===null}function o(b){return typeof b=="object"&&b!==null}function c(b){return Array.isArray(b)?b:I(b)?[]:[b]}function v(b,A){var g,L,N,B;if(A)for(B=Object.keys(A),g=0,L=B.length;g<L;g+=1)N=B[g],b[N]=A[N];return b}function x(b,A){var g="",L;for(L=0;L<A;L+=1)g+=b;return g}function d(b){return b===0&&Number.NEGATIVE_INFINITY===1/b}h.exports.isNothing=I,h.exports.isObject=o,h.exports.toArray=c,h.exports.repeat=x,h.exports.isNegativeZero=d,h.exports.extend=v},96157:(h,I,o)=>{"use strict";var c=o(25596),v=o(14884),x=o(19321),d=o(5972),b=Object.prototype.toString,A=Object.prototype.hasOwnProperty,g=9,L=10,N=13,B=32,j=33,_=34,H=35,R=37,X=38,M=39,C=42,V=44,J=45,q=58,Q=61,Y=62,ue=63,te=64,ne=91,ye=93,ge=96,de=123,le=124,ae=125,De={};De[0]="\\0",De[7]="\\a",De[8]="\\b",De[9]="\\t",De[10]="\\n",De[11]="\\v",De[12]="\\f",De[13]="\\r",De[27]="\\e",De[34]='\\"',De[92]="\\\\",De[133]="\\N",De[160]="\\_",De[8232]="\\L",De[8233]="\\P";var Ve=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Le(D,ee){var fe,Oe,Pe,Te,Ge,He,it;if(ee===null)return{};for(fe={},Oe=Object.keys(ee),Pe=0,Te=Oe.length;Pe<Te;Pe+=1)Ge=Oe[Pe],He=String(ee[Ge]),Ge.slice(0,2)==="!!"&&(Ge="tag:yaml.org,2002:"+Ge.slice(2)),it=D.compiledTypeMap.fallback[Ge],it&&A.call(it.styleAliases,He)&&(He=it.styleAliases[He]),fe[Ge]=He;return fe}function ke(D){var ee,fe,Oe;if(ee=D.toString(16).toUpperCase(),D<=255)fe="x",Oe=2;else if(D<=65535)fe="u",Oe=4;else if(D<=4294967295)fe="U",Oe=8;else throw new v("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+fe+c.repeat("0",Oe-ee.length)+ee}function rt(D){this.schema=D.schema||x,this.indent=Math.max(1,D.indent||2),this.noArrayIndent=D.noArrayIndent||!1,this.skipInvalid=D.skipInvalid||!1,this.flowLevel=c.isNothing(D.flowLevel)?-1:D.flowLevel,this.styleMap=Le(this.schema,D.styles||null),this.sortKeys=D.sortKeys||!1,this.lineWidth=D.lineWidth||80,this.noRefs=D.noRefs||!1,this.noCompatMode=D.noCompatMode||!1,this.condenseFlow=D.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Qe(D,ee){for(var fe=c.repeat(" ",ee),Oe=0,Pe=-1,Te="",Ge,He=D.length;Oe<He;)Pe=D.indexOf(`
|
|
478
|
-
`,Oe),Pe===-1?(Ge=D.slice(Oe),Oe=He):(Ge=D.slice(Oe,Pe+1),Oe=Pe+1),Ge.length&&Ge!==`
|
|
479
|
-
`&&(Te+=fe),Te+=Ge;return Te}function Je(D,ee){return`
|
|
480
|
-
`+c.repeat(" ",D.indent*ee)}function ut(D,ee){var fe,Oe,Pe;for(fe=0,Oe=D.implicitTypes.length;fe<Oe;fe+=1)if(Pe=D.implicitTypes[fe],Pe.resolve(ee))return!0;return!1}function pt(D){return D===B||D===g}function mt(D){return 32<=D&&D<=126||161<=D&&D<=55295&&D!==8232&&D!==8233||57344<=D&&D<=65533&&D!==65279||65536<=D&&D<=1114111}function qe(D){return mt(D)&&!pt(D)&&D!==65279&&D!==N&&D!==L}function lt(D,ee){return mt(D)&&D!==65279&&D!==V&&D!==ne&&D!==ye&&D!==de&&D!==ae&&D!==q&&(D!==H||ee&&qe(ee))}function gt(D){return mt(D)&&D!==65279&&!pt(D)&&D!==J&&D!==ue&&D!==q&&D!==V&&D!==ne&&D!==ye&&D!==de&&D!==ae&&D!==H&&D!==X&&D!==C&&D!==j&&D!==le&&D!==Q&&D!==Y&&D!==M&&D!==_&&D!==R&&D!==te&&D!==ge}function xt(D){var ee=/^\n* /;return ee.test(D)}var dt=1,kt=2,It=3,At=4,jt=5;function Nt(D,ee,fe,Oe,Pe){var Te,Ge,He,it=!1,yt=!1,Ct=Oe!==-1,Jt=-1,Ft=gt(D.charCodeAt(0))&&!pt(D.charCodeAt(D.length-1));if(ee)for(Te=0;Te<D.length;Te++){if(Ge=D.charCodeAt(Te),!mt(Ge))return jt;He=Te>0?D.charCodeAt(Te-1):null,Ft=Ft&<(Ge,He)}else{for(Te=0;Te<D.length;Te++){if(Ge=D.charCodeAt(Te),Ge===L)it=!0,Ct&&(yt=yt||Te-Jt-1>Oe&&D[Jt+1]!==" ",Jt=Te);else if(!mt(Ge))return jt;He=Te>0?D.charCodeAt(Te-1):null,Ft=Ft&<(Ge,He)}yt=yt||Ct&&Te-Jt-1>Oe&&D[Jt+1]!==" "}return!it&&!yt?Ft&&!Pe(D)?dt:kt:fe>9&&xt(D)?jt:yt?At:It}function $t(D,ee,fe,Oe){D.dump=function(){if(ee.length===0)return"''";if(!D.noCompatMode&&Ve.indexOf(ee)!==-1)return"'"+ee+"'";var Pe=D.indent*Math.max(1,fe),Te=D.lineWidth===-1?-1:Math.max(Math.min(D.lineWidth,40),D.lineWidth-Pe),Ge=Oe||D.flowLevel>-1&&fe>=D.flowLevel;function He(it){return ut(D,it)}switch(Nt(ee,Ge,D.indent,Te,He)){case dt:return ee;case kt:return"'"+ee.replace(/'/g,"''")+"'";case It:return"|"+St(ee,D.indent)+Lt(Qe(ee,Pe));case At:return">"+St(ee,D.indent)+Lt(Qe(pe(ee,Te),Pe));case jt:return'"'+K(ee,Te)+'"';default:throw new v("impossible error: invalid scalar style")}}()}function St(D,ee){var fe=xt(D)?String(ee):"",Oe=D[D.length-1]===`
|
|
481
|
-
`,Pe=Oe&&(D[D.length-2]===`
|
|
482
|
-
`||D===`
|
|
483
|
-
`),Te=Pe?"+":Oe?"":"-";return fe+Te+`
|
|
484
|
-
`}function Lt(D){return D[D.length-1]===`
|
|
485
|
-
`?D.slice(0,-1):D}function pe(D,ee){for(var fe=/(\n+)([^\n]*)/g,Oe=function(){var yt=D.indexOf(`
|
|
486
|
-
`);return yt=yt!==-1?yt:D.length,fe.lastIndex=yt,G(D.slice(0,yt),ee)}(),Pe=D[0]===`
|
|
487
|
-
`||D[0]===" ",Te,Ge;Ge=fe.exec(D);){var He=Ge[1],it=Ge[2];Te=it[0]===" ",Oe+=He+(!Pe&&!Te&&it!==""?`
|
|
488
|
-
`:"")+G(it,ee),Pe=Te}return Oe}function G(D,ee){if(D===""||D[0]===" ")return D;for(var fe=/ [^ ]/g,Oe,Pe=0,Te,Ge=0,He=0,it="";Oe=fe.exec(D);)He=Oe.index,He-Pe>ee&&(Te=Ge>Pe?Ge:He,it+=`
|
|
489
|
-
`+D.slice(Pe,Te),Pe=Te+1),Ge=He;return it+=`
|
|
490
|
-
`,D.length-Pe>ee&&Ge>Pe?it+=D.slice(Pe,Ge)+`
|
|
491
|
-
`+D.slice(Ge+1):it+=D.slice(Pe),it.slice(1)}function K(D){for(var ee="",fe,Oe,Pe,Te=0;Te<D.length;Te++){if(fe=D.charCodeAt(Te),fe>=55296&&fe<=56319&&(Oe=D.charCodeAt(Te+1),Oe>=56320&&Oe<=57343)){ee+=ke((fe-55296)*1024+Oe-56320+65536),Te++;continue}Pe=De[fe],ee+=!Pe&&mt(fe)?D[Te]:Pe||ke(fe)}return ee}function we(D,ee,fe){var Oe="",Pe=D.tag,Te,Ge;for(Te=0,Ge=fe.length;Te<Ge;Te+=1)Ie(D,ee,fe[Te],!1,!1)&&(Te!==0&&(Oe+=","+(D.condenseFlow?"":" ")),Oe+=D.dump);D.tag=Pe,D.dump="["+Oe+"]"}function Re(D,ee,fe,Oe){var Pe="",Te=D.tag,Ge,He;for(Ge=0,He=fe.length;Ge<He;Ge+=1)Ie(D,ee+1,fe[Ge],!0,!0)&&((!Oe||Ge!==0)&&(Pe+=Je(D,ee)),D.dump&&L===D.dump.charCodeAt(0)?Pe+="-":Pe+="- ",Pe+=D.dump);D.tag=Te,D.dump=Pe||"[]"}function be(D,ee,fe){var Oe="",Pe=D.tag,Te=Object.keys(fe),Ge,He,it,yt,Ct;for(Ge=0,He=Te.length;Ge<He;Ge+=1)Ct="",Ge!==0&&(Ct+=", "),D.condenseFlow&&(Ct+='"'),it=Te[Ge],yt=fe[it],!!Ie(D,ee,it,!1,!1)&&(D.dump.length>1024&&(Ct+="? "),Ct+=D.dump+(D.condenseFlow?'"':"")+":"+(D.condenseFlow?"":" "),!!Ie(D,ee,yt,!1,!1)&&(Ct+=D.dump,Oe+=Ct));D.tag=Pe,D.dump="{"+Oe+"}"}function Ae(D,ee,fe,Oe){var Pe="",Te=D.tag,Ge=Object.keys(fe),He,it,yt,Ct,Jt,Ft;if(D.sortKeys===!0)Ge.sort();else if(typeof D.sortKeys=="function")Ge.sort(D.sortKeys);else if(D.sortKeys)throw new v("sortKeys must be a boolean or a function");for(He=0,it=Ge.length;He<it;He+=1)Ft="",(!Oe||He!==0)&&(Ft+=Je(D,ee)),yt=Ge[He],Ct=fe[yt],!!Ie(D,ee+1,yt,!0,!0,!0)&&(Jt=D.tag!==null&&D.tag!=="?"||D.dump&&D.dump.length>1024,Jt&&(D.dump&&L===D.dump.charCodeAt(0)?Ft+="?":Ft+="? "),Ft+=D.dump,Jt&&(Ft+=Je(D,ee)),!!Ie(D,ee+1,Ct,!0,Jt)&&(D.dump&&L===D.dump.charCodeAt(0)?Ft+=":":Ft+=": ",Ft+=D.dump,Pe+=Ft));D.tag=Te,D.dump=Pe||"{}"}function T(D,ee,fe){var Oe,Pe,Te,Ge,He,it;for(Pe=fe?D.explicitTypes:D.implicitTypes,Te=0,Ge=Pe.length;Te<Ge;Te+=1)if(He=Pe[Te],(He.instanceOf||He.predicate)&&(!He.instanceOf||typeof ee=="object"&&ee instanceof He.instanceOf)&&(!He.predicate||He.predicate(ee))){if(D.tag=fe?He.tag:"?",He.represent){if(it=D.styleMap[He.tag]||He.defaultStyle,b.call(He.represent)==="[object Function]")Oe=He.represent(ee,it);else if(A.call(He.represent,it))Oe=He.represent[it](ee,it);else throw new v("!<"+He.tag+'> tag resolver accepts not "'+it+'" style');D.dump=Oe}return!0}return!1}function Ie(D,ee,fe,Oe,Pe,Te){D.tag=null,D.dump=fe,T(D,fe,!1)||T(D,fe,!0);var Ge=b.call(D.dump);Oe&&(Oe=D.flowLevel<0||D.flowLevel>ee);var He=Ge==="[object Object]"||Ge==="[object Array]",it,yt;if(He&&(it=D.duplicates.indexOf(fe),yt=it!==-1),(D.tag!==null&&D.tag!=="?"||yt||D.indent!==2&&ee>0)&&(Pe=!1),yt&&D.usedDuplicates[it])D.dump="*ref_"+it;else{if(He&&yt&&!D.usedDuplicates[it]&&(D.usedDuplicates[it]=!0),Ge==="[object Object]")Oe&&Object.keys(D.dump).length!==0?(Ae(D,ee,D.dump,Pe),yt&&(D.dump="&ref_"+it+D.dump)):(be(D,ee,D.dump),yt&&(D.dump="&ref_"+it+" "+D.dump));else if(Ge==="[object Array]"){var Ct=D.noArrayIndent&&ee>0?ee-1:ee;Oe&&D.dump.length!==0?(Re(D,Ct,D.dump,Pe),yt&&(D.dump="&ref_"+it+D.dump)):(we(D,Ct,D.dump),yt&&(D.dump="&ref_"+it+" "+D.dump))}else if(Ge==="[object String]")D.tag!=="?"&&$t(D,D.dump,ee,Te);else{if(D.skipInvalid)return!1;throw new v("unacceptable kind of an object to dump "+Ge)}D.tag!==null&&D.tag!=="?"&&(D.dump="!<"+D.tag+"> "+D.dump)}return!0}function W(D,ee){var fe=[],Oe=[],Pe,Te;for(O(D,fe,Oe),Pe=0,Te=Oe.length;Pe<Te;Pe+=1)ee.duplicates.push(fe[Oe[Pe]]);ee.usedDuplicates=new Array(Te)}function O(D,ee,fe){var Oe,Pe,Te;if(D!==null&&typeof D=="object")if(Pe=ee.indexOf(D),Pe!==-1)fe.indexOf(Pe)===-1&&fe.push(Pe);else if(ee.push(D),Array.isArray(D))for(Pe=0,Te=D.length;Pe<Te;Pe+=1)O(D[Pe],ee,fe);else for(Oe=Object.keys(D),Pe=0,Te=Oe.length;Pe<Te;Pe+=1)O(D[Oe[Pe]],ee,fe)}function P(D,ee){ee=ee||{};var fe=new rt(ee);return fe.noRefs||W(D,fe),Ie(fe,0,D,!0,!0)?fe.dump+`
|
|
492
|
-
`:""}function ie(D,ee){return P(D,c.extend({schema:d},ee))}h.exports.dump=P,h.exports.safeDump=ie},14884:h=>{"use strict";function I(o,c){Error.call(this),this.name="YAMLException",this.reason=o,this.mark=c,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}I.prototype=Object.create(Error.prototype),I.prototype.constructor=I,I.prototype.toString=function(c){var v=this.name+": ";return v+=this.reason||"(unknown reason)",!c&&this.mark&&(v+=" "+this.mark.toString()),v},h.exports=I},40028:(h,I,o)=>{"use strict";var c=o(25596),v=o(14884),x=o(77334),d=o(5972),b=o(19321),A=Object.prototype.hasOwnProperty,g=1,L=2,N=3,B=4,j=1,_=2,H=3,R=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,X=/[\x85\u2028\u2029]/,M=/[,\[\]\{\}]/,C=/^(?:!|!!|![a-z\-]+!)$/i,V=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function J(T){return Object.prototype.toString.call(T)}function q(T){return T===10||T===13}function Q(T){return T===9||T===32}function Y(T){return T===9||T===32||T===10||T===13}function ue(T){return T===44||T===91||T===93||T===123||T===125}function te(T){var Ie;return 48<=T&&T<=57?T-48:(Ie=T|32,97<=Ie&&Ie<=102?Ie-97+10:-1)}function ne(T){return T===120?2:T===117?4:T===85?8:0}function ye(T){return 48<=T&&T<=57?T-48:-1}function ge(T){return T===48?"\0":T===97?"\x07":T===98?"\b":T===116||T===9?" ":T===110?`
|
|
493
|
-
`:T===118?"\v":T===102?"\f":T===114?"\r":T===101?"":T===32?" ":T===34?'"':T===47?"/":T===92?"\\":T===78?"\x85":T===95?"\xA0":T===76?"\u2028":T===80?"\u2029":""}function de(T){return T<=65535?String.fromCharCode(T):String.fromCharCode((T-65536>>10)+55296,(T-65536&1023)+56320)}for(var le=new Array(256),ae=new Array(256),De=0;De<256;De++)le[De]=ge(De)?1:0,ae[De]=ge(De);function Ve(T,Ie){this.input=T,this.filename=Ie.filename||null,this.schema=Ie.schema||b,this.onWarning=Ie.onWarning||null,this.legacy=Ie.legacy||!1,this.json=Ie.json||!1,this.listener=Ie.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=T.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Le(T,Ie){return new v(Ie,new x(T.filename,T.input,T.position,T.line,T.position-T.lineStart))}function ke(T,Ie){throw Le(T,Ie)}function rt(T,Ie){T.onWarning&&T.onWarning.call(null,Le(T,Ie))}var Qe={YAML:function(Ie,W,O){var P,ie,D;Ie.version!==null&&ke(Ie,"duplication of %YAML directive"),O.length!==1&&ke(Ie,"YAML directive accepts exactly one argument"),P=/^([0-9]+)\.([0-9]+)$/.exec(O[0]),P===null&&ke(Ie,"ill-formed argument of the YAML directive"),ie=parseInt(P[1],10),D=parseInt(P[2],10),ie!==1&&ke(Ie,"unacceptable YAML version of the document"),Ie.version=O[0],Ie.checkLineBreaks=D<2,D!==1&&D!==2&&rt(Ie,"unsupported YAML version of the document")},TAG:function(Ie,W,O){var P,ie;O.length!==2&&ke(Ie,"TAG directive accepts exactly two arguments"),P=O[0],ie=O[1],C.test(P)||ke(Ie,"ill-formed tag handle (first argument) of the TAG directive"),A.call(Ie.tagMap,P)&&ke(Ie,'there is a previously declared suffix for "'+P+'" tag handle'),V.test(ie)||ke(Ie,"ill-formed tag prefix (second argument) of the TAG directive"),Ie.tagMap[P]=ie}};function Je(T,Ie,W,O){var P,ie,D,ee;if(Ie<W){if(ee=T.input.slice(Ie,W),O)for(P=0,ie=ee.length;P<ie;P+=1)D=ee.charCodeAt(P),D===9||32<=D&&D<=1114111||ke(T,"expected valid JSON character");else R.test(ee)&&ke(T,"the stream contains non-printable characters");T.result+=ee}}function ut(T,Ie,W,O){var P,ie,D,ee;for(c.isObject(W)||ke(T,"cannot merge mappings; the provided source object is unacceptable"),P=Object.keys(W),D=0,ee=P.length;D<ee;D+=1)ie=P[D],A.call(Ie,ie)||(Ie[ie]=W[ie],O[ie]=!0)}function pt(T,Ie,W,O,P,ie,D,ee){var fe,Oe;if(Array.isArray(P))for(P=Array.prototype.slice.call(P),fe=0,Oe=P.length;fe<Oe;fe+=1)Array.isArray(P[fe])&&ke(T,"nested arrays are not supported inside keys"),typeof P=="object"&&J(P[fe])==="[object Object]"&&(P[fe]="[object Object]");if(typeof P=="object"&&J(P)==="[object Object]"&&(P="[object Object]"),P=String(P),Ie===null&&(Ie={}),O==="tag:yaml.org,2002:merge")if(Array.isArray(ie))for(fe=0,Oe=ie.length;fe<Oe;fe+=1)ut(T,Ie,ie[fe],W);else ut(T,Ie,ie,W);else!T.json&&!A.call(W,P)&&A.call(Ie,P)&&(T.line=D||T.line,T.position=ee||T.position,ke(T,"duplicated mapping key")),Ie[P]=ie,delete W[P];return Ie}function mt(T){var Ie;Ie=T.input.charCodeAt(T.position),Ie===10?T.position++:Ie===13?(T.position++,T.input.charCodeAt(T.position)===10&&T.position++):ke(T,"a line break is expected"),T.line+=1,T.lineStart=T.position}function qe(T,Ie,W){for(var O=0,P=T.input.charCodeAt(T.position);P!==0;){for(;Q(P);)P=T.input.charCodeAt(++T.position);if(Ie&&P===35)do P=T.input.charCodeAt(++T.position);while(P!==10&&P!==13&&P!==0);if(q(P))for(mt(T),P=T.input.charCodeAt(T.position),O++,T.lineIndent=0;P===32;)T.lineIndent++,P=T.input.charCodeAt(++T.position);else break}return W!==-1&&O!==0&&T.lineIndent<W&&rt(T,"deficient indentation"),O}function lt(T){var Ie=T.position,W;return W=T.input.charCodeAt(Ie),!!((W===45||W===46)&&W===T.input.charCodeAt(Ie+1)&&W===T.input.charCodeAt(Ie+2)&&(Ie+=3,W=T.input.charCodeAt(Ie),W===0||Y(W)))}function gt(T,Ie){Ie===1?T.result+=" ":Ie>1&&(T.result+=c.repeat(`
|
|
494
|
-
`,Ie-1))}function xt(T,Ie,W){var O,P,ie,D,ee,fe,Oe,Pe,Te=T.kind,Ge=T.result,He;if(He=T.input.charCodeAt(T.position),Y(He)||ue(He)||He===35||He===38||He===42||He===33||He===124||He===62||He===39||He===34||He===37||He===64||He===96||(He===63||He===45)&&(P=T.input.charCodeAt(T.position+1),Y(P)||W&&ue(P)))return!1;for(T.kind="scalar",T.result="",ie=D=T.position,ee=!1;He!==0;){if(He===58){if(P=T.input.charCodeAt(T.position+1),Y(P)||W&&ue(P))break}else if(He===35){if(O=T.input.charCodeAt(T.position-1),Y(O))break}else{if(T.position===T.lineStart&<(T)||W&&ue(He))break;if(q(He))if(fe=T.line,Oe=T.lineStart,Pe=T.lineIndent,qe(T,!1,-1),T.lineIndent>=Ie){ee=!0,He=T.input.charCodeAt(T.position);continue}else{T.position=D,T.line=fe,T.lineStart=Oe,T.lineIndent=Pe;break}}ee&&(Je(T,ie,D,!1),gt(T,T.line-fe),ie=D=T.position,ee=!1),Q(He)||(D=T.position+1),He=T.input.charCodeAt(++T.position)}return Je(T,ie,D,!1),T.result?!0:(T.kind=Te,T.result=Ge,!1)}function dt(T,Ie){var W,O,P;if(W=T.input.charCodeAt(T.position),W!==39)return!1;for(T.kind="scalar",T.result="",T.position++,O=P=T.position;(W=T.input.charCodeAt(T.position))!==0;)if(W===39)if(Je(T,O,T.position,!0),W=T.input.charCodeAt(++T.position),W===39)O=T.position,T.position++,P=T.position;else return!0;else q(W)?(Je(T,O,P,!0),gt(T,qe(T,!1,Ie)),O=P=T.position):T.position===T.lineStart&<(T)?ke(T,"unexpected end of the document within a single quoted scalar"):(T.position++,P=T.position);ke(T,"unexpected end of the stream within a single quoted scalar")}function kt(T,Ie){var W,O,P,ie,D,ee;if(ee=T.input.charCodeAt(T.position),ee!==34)return!1;for(T.kind="scalar",T.result="",T.position++,W=O=T.position;(ee=T.input.charCodeAt(T.position))!==0;){if(ee===34)return Je(T,W,T.position,!0),T.position++,!0;if(ee===92){if(Je(T,W,T.position,!0),ee=T.input.charCodeAt(++T.position),q(ee))qe(T,!1,Ie);else if(ee<256&&le[ee])T.result+=ae[ee],T.position++;else if((D=ne(ee))>0){for(P=D,ie=0;P>0;P--)ee=T.input.charCodeAt(++T.position),(D=te(ee))>=0?ie=(ie<<4)+D:ke(T,"expected hexadecimal character");T.result+=de(ie),T.position++}else ke(T,"unknown escape sequence");W=O=T.position}else q(ee)?(Je(T,W,O,!0),gt(T,qe(T,!1,Ie)),W=O=T.position):T.position===T.lineStart&<(T)?ke(T,"unexpected end of the document within a double quoted scalar"):(T.position++,O=T.position)}ke(T,"unexpected end of the stream within a double quoted scalar")}function It(T,Ie){var W=!0,O,P=T.tag,ie,D=T.anchor,ee,fe,Oe,Pe,Te,Ge={},He,it,yt,Ct;if(Ct=T.input.charCodeAt(T.position),Ct===91)fe=93,Te=!1,ie=[];else if(Ct===123)fe=125,Te=!0,ie={};else return!1;for(T.anchor!==null&&(T.anchorMap[T.anchor]=ie),Ct=T.input.charCodeAt(++T.position);Ct!==0;){if(qe(T,!0,Ie),Ct=T.input.charCodeAt(T.position),Ct===fe)return T.position++,T.tag=P,T.anchor=D,T.kind=Te?"mapping":"sequence",T.result=ie,!0;W||ke(T,"missed comma between flow collection entries"),it=He=yt=null,Oe=Pe=!1,Ct===63&&(ee=T.input.charCodeAt(T.position+1),Y(ee)&&(Oe=Pe=!0,T.position++,qe(T,!0,Ie))),O=T.line,pe(T,Ie,g,!1,!0),it=T.tag,He=T.result,qe(T,!0,Ie),Ct=T.input.charCodeAt(T.position),(Pe||T.line===O)&&Ct===58&&(Oe=!0,Ct=T.input.charCodeAt(++T.position),qe(T,!0,Ie),pe(T,Ie,g,!1,!0),yt=T.result),Te?pt(T,ie,Ge,it,He,yt):Oe?ie.push(pt(T,null,Ge,it,He,yt)):ie.push(He),qe(T,!0,Ie),Ct=T.input.charCodeAt(T.position),Ct===44?(W=!0,Ct=T.input.charCodeAt(++T.position)):W=!1}ke(T,"unexpected end of the stream within a flow collection")}function At(T,Ie){var W,O,P=j,ie=!1,D=!1,ee=Ie,fe=0,Oe=!1,Pe,Te;if(Te=T.input.charCodeAt(T.position),Te===124)O=!1;else if(Te===62)O=!0;else return!1;for(T.kind="scalar",T.result="";Te!==0;)if(Te=T.input.charCodeAt(++T.position),Te===43||Te===45)j===P?P=Te===43?H:_:ke(T,"repeat of a chomping mode identifier");else if((Pe=ye(Te))>=0)Pe===0?ke(T,"bad explicit indentation width of a block scalar; it cannot be less than one"):D?ke(T,"repeat of an indentation width identifier"):(ee=Ie+Pe-1,D=!0);else break;if(Q(Te)){do Te=T.input.charCodeAt(++T.position);while(Q(Te));if(Te===35)do Te=T.input.charCodeAt(++T.position);while(!q(Te)&&Te!==0)}for(;Te!==0;){for(mt(T),T.lineIndent=0,Te=T.input.charCodeAt(T.position);(!D||T.lineIndent<ee)&&Te===32;)T.lineIndent++,Te=T.input.charCodeAt(++T.position);if(!D&&T.lineIndent>ee&&(ee=T.lineIndent),q(Te)){fe++;continue}if(T.lineIndent<ee){P===H?T.result+=c.repeat(`
|
|
495
|
-
`,ie?1+fe:fe):P===j&&ie&&(T.result+=`
|
|
496
|
-
`);break}for(O?Q(Te)?(Oe=!0,T.result+=c.repeat(`
|
|
497
|
-
`,ie?1+fe:fe)):Oe?(Oe=!1,T.result+=c.repeat(`
|
|
498
|
-
`,fe+1)):fe===0?ie&&(T.result+=" "):T.result+=c.repeat(`
|
|
499
|
-
`,fe):T.result+=c.repeat(`
|
|
500
|
-
`,ie?1+fe:fe),ie=!0,D=!0,fe=0,W=T.position;!q(Te)&&Te!==0;)Te=T.input.charCodeAt(++T.position);Je(T,W,T.position,!1)}return!0}function jt(T,Ie){var W,O=T.tag,P=T.anchor,ie=[],D,ee=!1,fe;for(T.anchor!==null&&(T.anchorMap[T.anchor]=ie),fe=T.input.charCodeAt(T.position);fe!==0&&!(fe!==45||(D=T.input.charCodeAt(T.position+1),!Y(D)));){if(ee=!0,T.position++,qe(T,!0,-1)&&T.lineIndent<=Ie){ie.push(null),fe=T.input.charCodeAt(T.position);continue}if(W=T.line,pe(T,Ie,N,!1,!0),ie.push(T.result),qe(T,!0,-1),fe=T.input.charCodeAt(T.position),(T.line===W||T.lineIndent>Ie)&&fe!==0)ke(T,"bad indentation of a sequence entry");else if(T.lineIndent<Ie)break}return ee?(T.tag=O,T.anchor=P,T.kind="sequence",T.result=ie,!0):!1}function Nt(T,Ie,W){var O,P,ie,D,ee=T.tag,fe=T.anchor,Oe={},Pe={},Te=null,Ge=null,He=null,it=!1,yt=!1,Ct;for(T.anchor!==null&&(T.anchorMap[T.anchor]=Oe),Ct=T.input.charCodeAt(T.position);Ct!==0;){if(O=T.input.charCodeAt(T.position+1),ie=T.line,D=T.position,(Ct===63||Ct===58)&&Y(O))Ct===63?(it&&(pt(T,Oe,Pe,Te,Ge,null),Te=Ge=He=null),yt=!0,it=!0,P=!0):it?(it=!1,P=!0):ke(T,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),T.position+=1,Ct=O;else if(pe(T,W,L,!1,!0))if(T.line===ie){for(Ct=T.input.charCodeAt(T.position);Q(Ct);)Ct=T.input.charCodeAt(++T.position);if(Ct===58)Ct=T.input.charCodeAt(++T.position),Y(Ct)||ke(T,"a whitespace character is expected after the key-value separator within a block mapping"),it&&(pt(T,Oe,Pe,Te,Ge,null),Te=Ge=He=null),yt=!0,it=!1,P=!1,Te=T.tag,Ge=T.result;else if(yt)ke(T,"can not read an implicit mapping pair; a colon is missed");else return T.tag=ee,T.anchor=fe,!0}else if(yt)ke(T,"can not read a block mapping entry; a multiline key may not be an implicit key");else return T.tag=ee,T.anchor=fe,!0;else break;if((T.line===ie||T.lineIndent>Ie)&&(pe(T,Ie,B,!0,P)&&(it?Ge=T.result:He=T.result),it||(pt(T,Oe,Pe,Te,Ge,He,ie,D),Te=Ge=He=null),qe(T,!0,-1),Ct=T.input.charCodeAt(T.position)),T.lineIndent>Ie&&Ct!==0)ke(T,"bad indentation of a mapping entry");else if(T.lineIndent<Ie)break}return it&&pt(T,Oe,Pe,Te,Ge,null),yt&&(T.tag=ee,T.anchor=fe,T.kind="mapping",T.result=Oe),yt}function $t(T){var Ie,W=!1,O=!1,P,ie,D;if(D=T.input.charCodeAt(T.position),D!==33)return!1;if(T.tag!==null&&ke(T,"duplication of a tag property"),D=T.input.charCodeAt(++T.position),D===60?(W=!0,D=T.input.charCodeAt(++T.position)):D===33?(O=!0,P="!!",D=T.input.charCodeAt(++T.position)):P="!",Ie=T.position,W){do D=T.input.charCodeAt(++T.position);while(D!==0&&D!==62);T.position<T.length?(ie=T.input.slice(Ie,T.position),D=T.input.charCodeAt(++T.position)):ke(T,"unexpected end of the stream within a verbatim tag")}else{for(;D!==0&&!Y(D);)D===33&&(O?ke(T,"tag suffix cannot contain exclamation marks"):(P=T.input.slice(Ie-1,T.position+1),C.test(P)||ke(T,"named tag handle cannot contain such characters"),O=!0,Ie=T.position+1)),D=T.input.charCodeAt(++T.position);ie=T.input.slice(Ie,T.position),M.test(ie)&&ke(T,"tag suffix cannot contain flow indicator characters")}return ie&&!V.test(ie)&&ke(T,"tag name cannot contain such characters: "+ie),W?T.tag=ie:A.call(T.tagMap,P)?T.tag=T.tagMap[P]+ie:P==="!"?T.tag="!"+ie:P==="!!"?T.tag="tag:yaml.org,2002:"+ie:ke(T,'undeclared tag handle "'+P+'"'),!0}function St(T){var Ie,W;if(W=T.input.charCodeAt(T.position),W!==38)return!1;for(T.anchor!==null&&ke(T,"duplication of an anchor property"),W=T.input.charCodeAt(++T.position),Ie=T.position;W!==0&&!Y(W)&&!ue(W);)W=T.input.charCodeAt(++T.position);return T.position===Ie&&ke(T,"name of an anchor node must contain at least one character"),T.anchor=T.input.slice(Ie,T.position),!0}function Lt(T){var Ie,W,O;if(O=T.input.charCodeAt(T.position),O!==42)return!1;for(O=T.input.charCodeAt(++T.position),Ie=T.position;O!==0&&!Y(O)&&!ue(O);)O=T.input.charCodeAt(++T.position);return T.position===Ie&&ke(T,"name of an alias node must contain at least one character"),W=T.input.slice(Ie,T.position),A.call(T.anchorMap,W)||ke(T,'unidentified alias "'+W+'"'),T.result=T.anchorMap[W],qe(T,!0,-1),!0}function pe(T,Ie,W,O,P){var ie,D,ee,fe=1,Oe=!1,Pe=!1,Te,Ge,He,it,yt;if(T.listener!==null&&T.listener("open",T),T.tag=null,T.anchor=null,T.kind=null,T.result=null,ie=D=ee=B===W||N===W,O&&qe(T,!0,-1)&&(Oe=!0,T.lineIndent>Ie?fe=1:T.lineIndent===Ie?fe=0:T.lineIndent<Ie&&(fe=-1)),fe===1)for(;$t(T)||St(T);)qe(T,!0,-1)?(Oe=!0,ee=ie,T.lineIndent>Ie?fe=1:T.lineIndent===Ie?fe=0:T.lineIndent<Ie&&(fe=-1)):ee=!1;if(ee&&(ee=Oe||P),(fe===1||B===W)&&(g===W||L===W?it=Ie:it=Ie+1,yt=T.position-T.lineStart,fe===1?ee&&(jt(T,yt)||Nt(T,yt,it))||It(T,it)?Pe=!0:(D&&At(T,it)||dt(T,it)||kt(T,it)?Pe=!0:Lt(T)?(Pe=!0,(T.tag!==null||T.anchor!==null)&&ke(T,"alias node should not have any properties")):xt(T,it,g===W)&&(Pe=!0,T.tag===null&&(T.tag="?")),T.anchor!==null&&(T.anchorMap[T.anchor]=T.result)):fe===0&&(Pe=ee&&jt(T,yt))),T.tag!==null&&T.tag!=="!")if(T.tag==="?"){for(T.result!==null&&T.kind!=="scalar"&&ke(T,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+T.kind+'"'),Te=0,Ge=T.implicitTypes.length;Te<Ge;Te+=1)if(He=T.implicitTypes[Te],He.resolve(T.result)){T.result=He.construct(T.result),T.tag=He.tag,T.anchor!==null&&(T.anchorMap[T.anchor]=T.result);break}}else A.call(T.typeMap[T.kind||"fallback"],T.tag)?(He=T.typeMap[T.kind||"fallback"][T.tag],T.result!==null&&He.kind!==T.kind&&ke(T,"unacceptable node kind for !<"+T.tag+'> tag; it should be "'+He.kind+'", not "'+T.kind+'"'),He.resolve(T.result)?(T.result=He.construct(T.result),T.anchor!==null&&(T.anchorMap[T.anchor]=T.result)):ke(T,"cannot resolve a node with !<"+T.tag+"> explicit tag")):ke(T,"unknown tag !<"+T.tag+">");return T.listener!==null&&T.listener("close",T),T.tag!==null||T.anchor!==null||Pe}function G(T){var Ie=T.position,W,O,P,ie=!1,D;for(T.version=null,T.checkLineBreaks=T.legacy,T.tagMap={},T.anchorMap={};(D=T.input.charCodeAt(T.position))!==0&&(qe(T,!0,-1),D=T.input.charCodeAt(T.position),!(T.lineIndent>0||D!==37));){for(ie=!0,D=T.input.charCodeAt(++T.position),W=T.position;D!==0&&!Y(D);)D=T.input.charCodeAt(++T.position);for(O=T.input.slice(W,T.position),P=[],O.length<1&&ke(T,"directive name must not be less than one character in length");D!==0;){for(;Q(D);)D=T.input.charCodeAt(++T.position);if(D===35){do D=T.input.charCodeAt(++T.position);while(D!==0&&!q(D));break}if(q(D))break;for(W=T.position;D!==0&&!Y(D);)D=T.input.charCodeAt(++T.position);P.push(T.input.slice(W,T.position))}D!==0&&mt(T),A.call(Qe,O)?Qe[O](T,O,P):rt(T,'unknown document directive "'+O+'"')}if(qe(T,!0,-1),T.lineIndent===0&&T.input.charCodeAt(T.position)===45&&T.input.charCodeAt(T.position+1)===45&&T.input.charCodeAt(T.position+2)===45?(T.position+=3,qe(T,!0,-1)):ie&&ke(T,"directives end mark is expected"),pe(T,T.lineIndent-1,B,!1,!0),qe(T,!0,-1),T.checkLineBreaks&&X.test(T.input.slice(Ie,T.position))&&rt(T,"non-ASCII line breaks are interpreted as content"),T.documents.push(T.result),T.position===T.lineStart&<(T)){T.input.charCodeAt(T.position)===46&&(T.position+=3,qe(T,!0,-1));return}if(T.position<T.length-1)ke(T,"end of the stream or a document separator is expected");else return}function K(T,Ie){T=String(T),Ie=Ie||{},T.length!==0&&(T.charCodeAt(T.length-1)!==10&&T.charCodeAt(T.length-1)!==13&&(T+=`
|
|
501
|
-
`),T.charCodeAt(0)===65279&&(T=T.slice(1)));var W=new Ve(T,Ie),O=T.indexOf("\0");for(O!==-1&&(W.position=O,ke(W,"null byte is not allowed in input")),W.input+="\0";W.input.charCodeAt(W.position)===32;)W.lineIndent+=1,W.position+=1;for(;W.position<W.length-1;)G(W);return W.documents}function we(T,Ie,W){Ie!==null&&typeof Ie=="object"&&typeof W=="undefined"&&(W=Ie,Ie=null);var O=K(T,W);if(typeof Ie!="function")return O;for(var P=0,ie=O.length;P<ie;P+=1)Ie(O[P])}function Re(T,Ie){var W=K(T,Ie);if(W.length!==0){if(W.length===1)return W[0];throw new v("expected a single document in the stream, but found more")}}function be(T,Ie,W){return typeof Ie=="object"&&Ie!==null&&typeof W=="undefined"&&(W=Ie,Ie=null),we(T,Ie,c.extend({schema:d},W))}function Ae(T,Ie){return Re(T,c.extend({schema:d},Ie))}h.exports.loadAll=we,h.exports.load=Re,h.exports.safeLoadAll=be,h.exports.safeLoad=Ae},77334:(h,I,o)=>{"use strict";var c=o(25596);function v(x,d,b,A,g){this.name=x,this.buffer=d,this.position=b,this.line=A,this.column=g}v.prototype.getSnippet=function(d,b){var A,g,L,N,B;if(!this.buffer)return null;for(d=d||4,b=b||75,A="",g=this.position;g>0&&`\0\r
|
|
502
|
-
\x85\u2028\u2029`.indexOf(this.buffer.charAt(g-1))===-1;)if(g-=1,this.position-g>b/2-1){A=" ... ",g+=5;break}for(L="",N=this.position;N<this.buffer.length&&`\0\r
|
|
503
|
-
\x85\u2028\u2029`.indexOf(this.buffer.charAt(N))===-1;)if(N+=1,N-this.position>b/2-1){L=" ... ",N-=5;break}return B=this.buffer.slice(g,N),c.repeat(" ",d)+A+B+L+`
|
|
504
|
-
`+c.repeat(" ",d+this.position-g+A.length)+"^"},v.prototype.toString=function(d){var b,A="";return this.name&&(A+='in "'+this.name+'" '),A+="at line "+(this.line+1)+", column "+(this.column+1),d||(b=this.getSnippet(),b&&(A+=`:
|
|
505
|
-
`+b)),A},h.exports=v},82409:(h,I,o)=>{"use strict";var c=o(25596),v=o(14884),x=o(53899);function d(g,L,N){var B=[];return g.include.forEach(function(j){N=d(j,L,N)}),g[L].forEach(function(j){N.forEach(function(_,H){_.tag===j.tag&&_.kind===j.kind&&B.push(H)}),N.push(j)}),N.filter(function(j,_){return B.indexOf(_)===-1})}function b(){var g={scalar:{},sequence:{},mapping:{},fallback:{}},L,N;function B(j){g[j.kind][j.tag]=g.fallback[j.tag]=j}for(L=0,N=arguments.length;L<N;L+=1)arguments[L].forEach(B);return g}function A(g){this.include=g.include||[],this.implicit=g.implicit||[],this.explicit=g.explicit||[],this.implicit.forEach(function(L){if(L.loadKind&&L.loadKind!=="scalar")throw new v("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=d(this,"implicit",[]),this.compiledExplicit=d(this,"explicit",[]),this.compiledTypeMap=b(this.compiledImplicit,this.compiledExplicit)}A.DEFAULT=null,A.create=function(){var L,N;switch(arguments.length){case 1:L=A.DEFAULT,N=arguments[0];break;case 2:L=arguments[0],N=arguments[1];break;default:throw new v("Wrong number of arguments for Schema.create function")}if(L=c.toArray(L),N=c.toArray(N),!L.every(function(B){return B instanceof A}))throw new v("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!N.every(function(B){return B instanceof x}))throw new v("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new A({include:L,explicit:N})},h.exports=A},17318:(h,I,o)=>{"use strict";var c=o(82409);h.exports=new c({include:[o(65796)]})},19321:(h,I,o)=>{"use strict";var c=o(82409);h.exports=c.DEFAULT=new c({include:[o(5972)],explicit:[o(70575),o(97287),o(89811)]})},5972:(h,I,o)=>{"use strict";var c=o(82409);h.exports=new c({include:[o(17318)],implicit:[o(56145),o(243)],explicit:[o(18964),o(3878),o(68244),o(67300)]})},75322:(h,I,o)=>{"use strict";var c=o(82409);h.exports=new c({explicit:[o(79483),o(43745),o(86553)]})},65796:(h,I,o)=>{"use strict";var c=o(82409);h.exports=new c({include:[o(75322)],implicit:[o(3022),o(2648),o(95979),o(53456)]})},53899:(h,I,o)=>{"use strict";var c=o(14884),v=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],x=["scalar","sequence","mapping"];function d(A){var g={};return A!==null&&Object.keys(A).forEach(function(L){A[L].forEach(function(N){g[String(N)]=L})}),g}function b(A,g){if(g=g||{},Object.keys(g).forEach(function(L){if(v.indexOf(L)===-1)throw new c('Unknown option "'+L+'" is met in definition of "'+A+'" YAML type.')}),this.tag=A,this.kind=g.kind||null,this.resolve=g.resolve||function(){return!0},this.construct=g.construct||function(L){return L},this.instanceOf=g.instanceOf||null,this.predicate=g.predicate||null,this.represent=g.represent||null,this.defaultStyle=g.defaultStyle||null,this.styleAliases=d(g.styleAliases||null),x.indexOf(this.kind)===-1)throw new c('Unknown kind "'+this.kind+'" is specified for "'+A+'" YAML type.')}h.exports=b},18964:(h,I,o)=>{"use strict";var c;try{var v=void 0;c=o(48764).Buffer}catch(N){}var x=o(53899),d=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
506
|
-
\r`;function b(N){if(N===null)return!1;var B,j,_=0,H=N.length,R=d;for(j=0;j<H;j++)if(B=R.indexOf(N.charAt(j)),!(B>64)){if(B<0)return!1;_+=6}return _%8==0}function A(N){var B,j,_=N.replace(/[\r\n=]/g,""),H=_.length,R=d,X=0,M=[];for(B=0;B<H;B++)B%4==0&&B&&(M.push(X>>16&255),M.push(X>>8&255),M.push(X&255)),X=X<<6|R.indexOf(_.charAt(B));return j=H%4*6,j===0?(M.push(X>>16&255),M.push(X>>8&255),M.push(X&255)):j===18?(M.push(X>>10&255),M.push(X>>2&255)):j===12&&M.push(X>>4&255),c?c.from?c.from(M):new c(M):M}function g(N){var B="",j=0,_,H,R=N.length,X=d;for(_=0;_<R;_++)_%3==0&&_&&(B+=X[j>>18&63],B+=X[j>>12&63],B+=X[j>>6&63],B+=X[j&63]),j=(j<<8)+N[_];return H=R%3,H===0?(B+=X[j>>18&63],B+=X[j>>12&63],B+=X[j>>6&63],B+=X[j&63]):H===2?(B+=X[j>>10&63],B+=X[j>>4&63],B+=X[j<<2&63],B+=X[64]):H===1&&(B+=X[j>>2&63],B+=X[j<<4&63],B+=X[64],B+=X[64]),B}function L(N){return c&&c.isBuffer(N)}h.exports=new x("tag:yaml.org,2002:binary",{kind:"scalar",resolve:b,construct:A,predicate:L,represent:g})},2648:(h,I,o)=>{"use strict";var c=o(53899);function v(b){if(b===null)return!1;var A=b.length;return A===4&&(b==="true"||b==="True"||b==="TRUE")||A===5&&(b==="false"||b==="False"||b==="FALSE")}function x(b){return b==="true"||b==="True"||b==="TRUE"}function d(b){return Object.prototype.toString.call(b)==="[object Boolean]"}h.exports=new c("tag:yaml.org,2002:bool",{kind:"scalar",resolve:v,construct:x,predicate:d,represent:{lowercase:function(b){return b?"true":"false"},uppercase:function(b){return b?"TRUE":"FALSE"},camelcase:function(b){return b?"True":"False"}},defaultStyle:"lowercase"})},53456:(h,I,o)=>{"use strict";var c=o(25596),v=o(53899),x=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function d(N){return!(N===null||!x.test(N)||N[N.length-1]==="_")}function b(N){var B,j,_,H;return B=N.replace(/_/g,"").toLowerCase(),j=B[0]==="-"?-1:1,H=[],"+-".indexOf(B[0])>=0&&(B=B.slice(1)),B===".inf"?j===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:B===".nan"?NaN:B.indexOf(":")>=0?(B.split(":").forEach(function(R){H.unshift(parseFloat(R,10))}),B=0,_=1,H.forEach(function(R){B+=R*_,_*=60}),j*B):j*parseFloat(B,10)}var A=/^[-+]?[0-9]+e/;function g(N,B){var j;if(isNaN(N))switch(B){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===N)switch(B){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===N)switch(B){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(c.isNegativeZero(N))return"-0.0";return j=N.toString(10),A.test(j)?j.replace("e",".e"):j}function L(N){return Object.prototype.toString.call(N)==="[object Number]"&&(N%1!=0||c.isNegativeZero(N))}h.exports=new v("tag:yaml.org,2002:float",{kind:"scalar",resolve:d,construct:b,predicate:L,represent:g,defaultStyle:"lowercase"})},95979:(h,I,o)=>{"use strict";var c=o(25596),v=o(53899);function x(N){return 48<=N&&N<=57||65<=N&&N<=70||97<=N&&N<=102}function d(N){return 48<=N&&N<=55}function b(N){return 48<=N&&N<=57}function A(N){if(N===null)return!1;var B=N.length,j=0,_=!1,H;if(!B)return!1;if(H=N[j],(H==="-"||H==="+")&&(H=N[++j]),H==="0"){if(j+1===B)return!0;if(H=N[++j],H==="b"){for(j++;j<B;j++)if(H=N[j],H!=="_"){if(H!=="0"&&H!=="1")return!1;_=!0}return _&&H!=="_"}if(H==="x"){for(j++;j<B;j++)if(H=N[j],H!=="_"){if(!x(N.charCodeAt(j)))return!1;_=!0}return _&&H!=="_"}for(;j<B;j++)if(H=N[j],H!=="_"){if(!d(N.charCodeAt(j)))return!1;_=!0}return _&&H!=="_"}if(H==="_")return!1;for(;j<B;j++)if(H=N[j],H!=="_"){if(H===":")break;if(!b(N.charCodeAt(j)))return!1;_=!0}return!_||H==="_"?!1:H!==":"?!0:/^(:[0-5]?[0-9])+$/.test(N.slice(j))}function g(N){var B=N,j=1,_,H,R=[];return B.indexOf("_")!==-1&&(B=B.replace(/_/g,"")),_=B[0],(_==="-"||_==="+")&&(_==="-"&&(j=-1),B=B.slice(1),_=B[0]),B==="0"?0:_==="0"?B[1]==="b"?j*parseInt(B.slice(2),2):B[1]==="x"?j*parseInt(B,16):j*parseInt(B,8):B.indexOf(":")!==-1?(B.split(":").forEach(function(X){R.unshift(parseInt(X,10))}),B=0,H=1,R.forEach(function(X){B+=X*H,H*=60}),j*B):j*parseInt(B,10)}function L(N){return Object.prototype.toString.call(N)==="[object Number]"&&N%1==0&&!c.isNegativeZero(N)}h.exports=new v("tag:yaml.org,2002:int",{kind:"scalar",resolve:A,construct:g,predicate:L,represent:{binary:function(N){return N>=0?"0b"+N.toString(2):"-0b"+N.toString(2).slice(1)},octal:function(N){return N>=0?"0"+N.toString(8):"-0"+N.toString(8).slice(1)},decimal:function(N){return N.toString(10)},hexadecimal:function(N){return N>=0?"0x"+N.toString(16).toUpperCase():"-0x"+N.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},89811:(h,I,o)=>{"use strict";var c;try{var v=void 0;c=o(88150)}catch(L){typeof window!="undefined"&&(c=window.esprima)}var x=o(53899);function d(L){if(L===null)return!1;try{var N="("+L+")",B=c.parse(N,{range:!0});return!(B.type!=="Program"||B.body.length!==1||B.body[0].type!=="ExpressionStatement"||B.body[0].expression.type!=="ArrowFunctionExpression"&&B.body[0].expression.type!=="FunctionExpression")}catch(j){return!1}}function b(L){var N="("+L+")",B=c.parse(N,{range:!0}),j=[],_;if(B.type!=="Program"||B.body.length!==1||B.body[0].type!=="ExpressionStatement"||B.body[0].expression.type!=="ArrowFunctionExpression"&&B.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return B.body[0].expression.params.forEach(function(H){j.push(H.name)}),_=B.body[0].expression.body.range,B.body[0].expression.body.type==="BlockStatement"?new Function(j,N.slice(_[0]+1,_[1]-1)):new Function(j,"return "+N.slice(_[0],_[1]))}function A(L){return L.toString()}function g(L){return Object.prototype.toString.call(L)==="[object Function]"}h.exports=new x("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:d,construct:b,predicate:g,represent:A})},97287:(h,I,o)=>{"use strict";var c=o(53899);function v(A){if(A===null||A.length===0)return!1;var g=A,L=/\/([gim]*)$/.exec(A),N="";return!(g[0]==="/"&&(L&&(N=L[1]),N.length>3||g[g.length-N.length-1]!=="/"))}function x(A){var g=A,L=/\/([gim]*)$/.exec(A),N="";return g[0]==="/"&&(L&&(N=L[1]),g=g.slice(1,g.length-N.length-1)),new RegExp(g,N)}function d(A){var g="/"+A.source+"/";return A.global&&(g+="g"),A.multiline&&(g+="m"),A.ignoreCase&&(g+="i"),g}function b(A){return Object.prototype.toString.call(A)==="[object RegExp]"}h.exports=new c("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:d})},70575:(h,I,o)=>{"use strict";var c=o(53899);function v(){return!0}function x(){}function d(){return""}function b(A){return typeof A=="undefined"}h.exports=new c("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:d})},86553:(h,I,o)=>{"use strict";var c=o(53899);h.exports=new c("tag:yaml.org,2002:map",{kind:"mapping",construct:function(v){return v!==null?v:{}}})},243:(h,I,o)=>{"use strict";var c=o(53899);function v(x){return x==="<<"||x===null}h.exports=new c("tag:yaml.org,2002:merge",{kind:"scalar",resolve:v})},3022:(h,I,o)=>{"use strict";var c=o(53899);function v(b){if(b===null)return!0;var A=b.length;return A===1&&b==="~"||A===4&&(b==="null"||b==="Null"||b==="NULL")}function x(){return null}function d(b){return b===null}h.exports=new c("tag:yaml.org,2002:null",{kind:"scalar",resolve:v,construct:x,predicate:d,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},3878:(h,I,o)=>{"use strict";var c=o(53899),v=Object.prototype.hasOwnProperty,x=Object.prototype.toString;function d(A){if(A===null)return!0;var g=[],L,N,B,j,_,H=A;for(L=0,N=H.length;L<N;L+=1){if(B=H[L],_=!1,x.call(B)!=="[object Object]")return!1;for(j in B)if(v.call(B,j))if(!_)_=!0;else return!1;if(!_)return!1;if(g.indexOf(j)===-1)g.push(j);else return!1}return!0}function b(A){return A!==null?A:[]}h.exports=new c("tag:yaml.org,2002:omap",{kind:"sequence",resolve:d,construct:b})},68244:(h,I,o)=>{"use strict";var c=o(53899),v=Object.prototype.toString;function x(b){if(b===null)return!0;var A,g,L,N,B,j=b;for(B=new Array(j.length),A=0,g=j.length;A<g;A+=1){if(L=j[A],v.call(L)!=="[object Object]"||(N=Object.keys(L),N.length!==1))return!1;B[A]=[N[0],L[N[0]]]}return!0}function d(b){if(b===null)return[];var A,g,L,N,B,j=b;for(B=new Array(j.length),A=0,g=j.length;A<g;A+=1)L=j[A],N=Object.keys(L),B[A]=[N[0],L[N[0]]];return B}h.exports=new c("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:x,construct:d})},43745:(h,I,o)=>{"use strict";var c=o(53899);h.exports=new c("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(v){return v!==null?v:[]}})},67300:(h,I,o)=>{"use strict";var c=o(53899),v=Object.prototype.hasOwnProperty;function x(b){if(b===null)return!0;var A,g=b;for(A in g)if(v.call(g,A)&&g[A]!==null)return!1;return!0}function d(b){return b!==null?b:{}}h.exports=new c("tag:yaml.org,2002:set",{kind:"mapping",resolve:x,construct:d})},79483:(h,I,o)=>{"use strict";var c=o(53899);h.exports=new c("tag:yaml.org,2002:str",{kind:"scalar",construct:function(v){return v!==null?v:""}})},56145:(h,I,o)=>{"use strict";var c=o(53899),v=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),x=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 d(g){return g===null?!1:v.exec(g)!==null||x.exec(g)!==null}function b(g){var L,N,B,j,_,H,R,X=0,M=null,C,V,J;if(L=v.exec(g),L===null&&(L=x.exec(g)),L===null)throw new Error("Date resolve error");if(N=+L[1],B=+L[2]-1,j=+L[3],!L[4])return new Date(Date.UTC(N,B,j));if(_=+L[4],H=+L[5],R=+L[6],L[7]){for(X=L[7].slice(0,3);X.length<3;)X+="0";X=+X}return L[9]&&(C=+L[10],V=+(L[11]||0),M=(C*60+V)*6e4,L[9]==="-"&&(M=-M)),J=new Date(Date.UTC(N,B,j,_,H,R,X)),M&&J.setTime(J.getTime()-M),J}function A(g){return g.toISOString()}h.exports=new c("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:d,construct:b,instanceOf:Date,represent:A})},18552:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"DataView");h.exports=x},1989:(h,I,o)=>{var c=o(51789),v=o(80401),x=o(57667),d=o(21327),b=o(81866);function A(g){var L=-1,N=g==null?0:g.length;for(this.clear();++L<N;){var B=g[L];this.set(B[0],B[1])}}A.prototype.clear=c,A.prototype.delete=v,A.prototype.get=x,A.prototype.has=d,A.prototype.set=b,h.exports=A},38407:(h,I,o)=>{var c=o(27040),v=o(14125),x=o(82117),d=o(67518),b=o(13399);function A(g){var L=-1,N=g==null?0:g.length;for(this.clear();++L<N;){var B=g[L];this.set(B[0],B[1])}}A.prototype.clear=c,A.prototype.delete=v,A.prototype.get=x,A.prototype.has=d,A.prototype.set=b,h.exports=A},57071:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Map");h.exports=x},83369:(h,I,o)=>{var c=o(24785),v=o(11285),x=o(96e3),d=o(49916),b=o(95265);function A(g){var L=-1,N=g==null?0:g.length;for(this.clear();++L<N;){var B=g[L];this.set(B[0],B[1])}}A.prototype.clear=c,A.prototype.delete=v,A.prototype.get=x,A.prototype.has=d,A.prototype.set=b,h.exports=A},53818:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Promise");h.exports=x},58525:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Set");h.exports=x},88668:(h,I,o)=>{var c=o(83369),v=o(90619),x=o(72385);function d(b){var A=-1,g=b==null?0:b.length;for(this.__data__=new c;++A<g;)this.add(b[A])}d.prototype.add=d.prototype.push=v,d.prototype.has=x,h.exports=d},46384:(h,I,o)=>{var c=o(38407),v=o(37465),x=o(63779),d=o(67599),b=o(44758),A=o(34309);function g(L){var N=this.__data__=new c(L);this.size=N.size}g.prototype.clear=v,g.prototype.delete=x,g.prototype.get=d,g.prototype.has=b,g.prototype.set=A,h.exports=g},62705:(h,I,o)=>{var c=o(55639),v=c.Symbol;h.exports=v},11149:(h,I,o)=>{var c=o(55639),v=c.Uint8Array;h.exports=v},70577:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"WeakMap");h.exports=x},96874:h=>{function I(o,c,v){switch(v.length){case 0:return o.call(c);case 1:return o.call(c,v[0]);case 2:return o.call(c,v[0],v[1]);case 3:return o.call(c,v[0],v[1],v[2])}return o.apply(c,v)}h.exports=I},77412:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length;++v<x&&c(o[v],v,o)!==!1;);return o}h.exports=I},34963:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length,d=0,b=[];++v<x;){var A=o[v];c(A,v,o)&&(b[d++]=A)}return b}h.exports=I},14636:(h,I,o)=>{var c=o(22545),v=o(35694),x=o(1469),d=o(44144),b=o(65776),A=o(36719),g=Object.prototype,L=g.hasOwnProperty;function N(B,j){var _=x(B),H=!_&&v(B),R=!_&&!H&&d(B),X=!_&&!H&&!R&&A(B),M=_||H||R||X,C=M?c(B.length,String):[],V=C.length;for(var J in B)(j||L.call(B,J))&&!(M&&(J=="length"||R&&(J=="offset"||J=="parent")||X&&(J=="buffer"||J=="byteLength"||J=="byteOffset")||b(J,V)))&&C.push(J);return C}h.exports=N},29932:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length,d=Array(x);++v<x;)d[v]=c(o[v],v,o);return d}h.exports=I},62488:h=>{function I(o,c){for(var v=-1,x=c.length,d=o.length;++v<x;)o[d+v]=c[v];return o}h.exports=I},82908:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length;++v<x;)if(c(o[v],v,o))return!0;return!1}h.exports=I},34865:(h,I,o)=>{var c=o(89465),v=o(77813),x=Object.prototype,d=x.hasOwnProperty;function b(A,g,L){var N=A[g];(!(d.call(A,g)&&v(N,L))||L===void 0&&!(g in A))&&c(A,g,L)}h.exports=b},18470:(h,I,o)=>{var c=o(77813);function v(x,d){for(var b=x.length;b--;)if(c(x[b][0],d))return b;return-1}h.exports=v},44037:(h,I,o)=>{var c=o(98363),v=o(3674);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},63886:(h,I,o)=>{var c=o(98363),v=o(81704);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},89465:(h,I,o)=>{var c=o(38777);function v(x,d,b){d=="__proto__"&&c?c(x,d,{configurable:!0,enumerable:!0,value:b,writable:!0}):x[d]=b}h.exports=v},29750:h=>{function I(o,c,v){return o===o&&(v!==void 0&&(o=o<=v?o:v),c!==void 0&&(o=o>=c?o:c)),o}h.exports=I},85990:(h,I,o)=>{var c=o(46384),v=o(77412),x=o(34865),d=o(44037),b=o(63886),A=o(64626),g=o(278),L=o(18805),N=o(1911),B=o(58234),j=o(46904),_=o(98882),H=o(43824),R=o(29148),X=o(38517),M=o(1469),C=o(44144),V=o(56688),J=o(13218),q=o(72928),Q=o(3674),Y=o(81704),ue=1,te=2,ne=4,ye="[object Arguments]",ge="[object Array]",de="[object Boolean]",le="[object Date]",ae="[object Error]",De="[object Function]",Ve="[object GeneratorFunction]",Le="[object Map]",ke="[object Number]",rt="[object Object]",Qe="[object RegExp]",Je="[object Set]",ut="[object String]",pt="[object Symbol]",mt="[object WeakMap]",qe="[object ArrayBuffer]",lt="[object DataView]",gt="[object Float32Array]",xt="[object Float64Array]",dt="[object Int8Array]",kt="[object Int16Array]",It="[object Int32Array]",At="[object Uint8Array]",jt="[object Uint8ClampedArray]",Nt="[object Uint16Array]",$t="[object Uint32Array]",St={};St[ye]=St[ge]=St[qe]=St[lt]=St[de]=St[le]=St[gt]=St[xt]=St[dt]=St[kt]=St[It]=St[Le]=St[ke]=St[rt]=St[Qe]=St[Je]=St[ut]=St[pt]=St[At]=St[jt]=St[Nt]=St[$t]=!0,St[ae]=St[De]=St[mt]=!1;function Lt(pe,G,K,we,Re,be){var Ae,T=G&ue,Ie=G&te,W=G≠if(K&&(Ae=Re?K(pe,we,Re,be):K(pe)),Ae!==void 0)return Ae;if(!J(pe))return pe;var O=M(pe);if(O){if(Ae=H(pe),!T)return g(pe,Ae)}else{var P=_(pe),ie=P==De||P==Ve;if(C(pe))return A(pe,T);if(P==rt||P==ye||ie&&!Re){if(Ae=Ie||ie?{}:X(pe),!T)return Ie?N(pe,b(Ae,pe)):L(pe,d(Ae,pe))}else{if(!St[P])return Re?pe:{};Ae=R(pe,P,T)}}be||(be=new c);var D=be.get(pe);if(D)return D;be.set(pe,Ae),q(pe)?pe.forEach(function(Oe){Ae.add(Lt(Oe,G,K,Oe,pe,be))}):V(pe)&&pe.forEach(function(Oe,Pe){Ae.set(Pe,Lt(Oe,G,K,Pe,pe,be))});var ee=W?Ie?j:B:Ie?Y:Q,fe=O?void 0:ee(pe);return v(fe||pe,function(Oe,Pe){fe&&(Pe=Oe,Oe=pe[Pe]),x(Ae,Pe,Lt(Oe,G,K,Pe,pe,be))}),Ae}h.exports=Lt},3118:(h,I,o)=>{var c=o(13218),v=Object.create,x=function(){function d(){}return function(b){if(!c(b))return{};if(v)return v(b);d.prototype=b;var A=new d;return d.prototype=void 0,A}}();h.exports=x},41848:h=>{function I(o,c,v,x){for(var d=o.length,b=v+(x?1:-1);x?b--:++b<d;)if(c(o[b],b,o))return b;return-1}h.exports=I},35764:(h,I,o)=>{var c=o(62488),v=o(37285);function x(d,b,A,g,L){var N=-1,B=d.length;for(A||(A=v),L||(L=[]);++N<B;){var j=d[N];b>0&&A(j)?b>1?x(j,b-1,A,g,L):c(L,j):g||(L[L.length]=j)}return L}h.exports=x},97786:(h,I,o)=>{var c=o(71811),v=o(40327);function x(d,b){b=c(b,d);for(var A=0,g=b.length;d!=null&&A<g;)d=d[v(b[A++])];return A&&A==g?d:void 0}h.exports=x},68866:(h,I,o)=>{var c=o(62488),v=o(1469);function x(d,b,A){var g=b(d);return v(d)?g:c(g,A(d))}h.exports=x},44239:(h,I,o)=>{var c=o(62705),v=o(89607),x=o(2333),d="[object Null]",b="[object Undefined]",A=c?c.toStringTag:void 0;function g(L){return L==null?L===void 0?b:d:A&&A in Object(L)?v(L):x(L)}h.exports=g},13:h=>{function I(o,c){return o!=null&&c in Object(o)}h.exports=I},9454:(h,I,o)=>{var c=o(44239),v=o(37005),x="[object Arguments]";function d(b){return v(b)&&c(b)==x}h.exports=d},90939:(h,I,o)=>{var c=o(2492),v=o(37005);function x(d,b,A,g,L){return d===b?!0:d==null||b==null||!v(d)&&!v(b)?d!==d&&b!==b:c(d,b,A,g,x,L)}h.exports=x},2492:(h,I,o)=>{var c=o(46384),v=o(67114),x=o(18351),d=o(16096),b=o(98882),A=o(1469),g=o(44144),L=o(36719),N=1,B="[object Arguments]",j="[object Array]",_="[object Object]",H=Object.prototype,R=H.hasOwnProperty;function X(M,C,V,J,q,Q){var Y=A(M),ue=A(C),te=Y?j:b(M),ne=ue?j:b(C);te=te==B?_:te,ne=ne==B?_:ne;var ye=te==_,ge=ne==_,de=te==ne;if(de&&g(M)){if(!g(C))return!1;Y=!0,ye=!1}if(de&&!ye)return Q||(Q=new c),Y||L(M)?v(M,C,V,J,q,Q):x(M,C,te,V,J,q,Q);if(!(V&N)){var le=ye&&R.call(M,"__wrapped__"),ae=ge&&R.call(C,"__wrapped__");if(le||ae){var De=le?M.value():M,Ve=ae?C.value():C;return Q||(Q=new c),q(De,Ve,V,J,Q)}}return de?(Q||(Q=new c),d(M,C,V,J,q,Q)):!1}h.exports=X},25588:(h,I,o)=>{var c=o(98882),v=o(37005),x="[object Map]";function d(b){return v(b)&&c(b)==x}h.exports=d},2958:(h,I,o)=>{var c=o(46384),v=o(90939),x=1,d=2;function b(A,g,L,N){var B=L.length,j=B,_=!N;if(A==null)return!j;for(A=Object(A);B--;){var H=L[B];if(_&&H[2]?H[1]!==A[H[0]]:!(H[0]in A))return!1}for(;++B<j;){H=L[B];var R=H[0],X=A[R],M=H[1];if(_&&H[2]){if(X===void 0&&!(R in A))return!1}else{var C=new c;if(N)var V=N(X,M,R,A,g,C);if(!(V===void 0?v(M,X,x|d,N,C):V))return!1}}return!0}h.exports=b},28458:(h,I,o)=>{var c=o(23560),v=o(15346),x=o(13218),d=o(80346),b=/[\\^$.*+?()[\]{}|]/g,A=/^\[object .+?Constructor\]$/,g=Function.prototype,L=Object.prototype,N=g.toString,B=L.hasOwnProperty,j=RegExp("^"+N.call(B).replace(b,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _(H){if(!x(H)||v(H))return!1;var R=c(H)?j:A;return R.test(d(H))}h.exports=_},29221:(h,I,o)=>{var c=o(98882),v=o(37005),x="[object Set]";function d(b){return v(b)&&c(b)==x}h.exports=d},38749:(h,I,o)=>{var c=o(44239),v=o(41780),x=o(37005),d="[object Arguments]",b="[object Array]",A="[object Boolean]",g="[object Date]",L="[object Error]",N="[object Function]",B="[object Map]",j="[object Number]",_="[object Object]",H="[object RegExp]",R="[object Set]",X="[object String]",M="[object WeakMap]",C="[object ArrayBuffer]",V="[object DataView]",J="[object Float32Array]",q="[object Float64Array]",Q="[object Int8Array]",Y="[object Int16Array]",ue="[object Int32Array]",te="[object Uint8Array]",ne="[object Uint8ClampedArray]",ye="[object Uint16Array]",ge="[object Uint32Array]",de={};de[J]=de[q]=de[Q]=de[Y]=de[ue]=de[te]=de[ne]=de[ye]=de[ge]=!0,de[d]=de[b]=de[C]=de[A]=de[V]=de[g]=de[L]=de[N]=de[B]=de[j]=de[_]=de[H]=de[R]=de[X]=de[M]=!1;function le(ae){return x(ae)&&v(ae.length)&&!!de[c(ae)]}h.exports=le},67206:(h,I,o)=>{var c=o(91573),v=o(16432),x=o(6557),d=o(1469),b=o(39601);function A(g){return typeof g=="function"?g:g==null?x:typeof g=="object"?d(g)?v(g[0],g[1]):c(g):b(g)}h.exports=A},280:(h,I,o)=>{var c=o(25726),v=o(86916),x=Object.prototype,d=x.hasOwnProperty;function b(A){if(!c(A))return v(A);var g=[];for(var L in Object(A))d.call(A,L)&&L!="constructor"&&g.push(L);return g}h.exports=b},10313:(h,I,o)=>{var c=o(13218),v=o(25726),x=o(33498),d=Object.prototype,b=d.hasOwnProperty;function A(g){if(!c(g))return x(g);var L=v(g),N=[];for(var B in g)B=="constructor"&&(L||!b.call(g,B))||N.push(B);return N}h.exports=A},91573:(h,I,o)=>{var c=o(2958),v=o(1499),x=o(42634);function d(b){var A=v(b);return A.length==1&&A[0][2]?x(A[0][0],A[0][1]):function(g){return g===b||c(g,b,A)}}h.exports=d},16432:(h,I,o)=>{var c=o(90939),v=o(27361),x=o(79095),d=o(15403),b=o(89162),A=o(42634),g=o(40327),L=1,N=2;function B(j,_){return d(j)&&b(_)?A(g(j),_):function(H){var R=v(H,j);return R===void 0&&R===_?x(H,j):c(_,R,L|N)}}h.exports=B},25970:(h,I,o)=>{var c=o(63012),v=o(79095);function x(d,b){return c(d,b,function(A,g){return v(d,g)})}h.exports=x},63012:(h,I,o)=>{var c=o(97786),v=o(10611),x=o(71811);function d(b,A,g){for(var L=-1,N=A.length,B={};++L<N;){var j=A[L],_=c(b,j);g(_,j)&&v(B,x(j,b),_)}return B}h.exports=d},40371:h=>{function I(o){return function(c){return c==null?void 0:c[o]}}h.exports=I},79152:(h,I,o)=>{var c=o(97786);function v(x){return function(d){return c(d,x)}}h.exports=v},5976:(h,I,o)=>{var c=o(6557),v=o(45357),x=o(30061);function d(b,A){return x(v(b,A,c),b+"")}h.exports=d},10611:(h,I,o)=>{var c=o(34865),v=o(71811),x=o(65776),d=o(13218),b=o(40327);function A(g,L,N,B){if(!d(g))return g;L=v(L,g);for(var j=-1,_=L.length,H=_-1,R=g;R!=null&&++j<_;){var X=b(L[j]),M=N;if(X==="__proto__"||X==="constructor"||X==="prototype")return g;if(j!=H){var C=R[X];M=B?B(C,X,R):void 0,M===void 0&&(M=d(C)?C:x(L[j+1])?[]:{})}c(R,X,M),R=R[X]}return g}h.exports=A},56560:(h,I,o)=>{var c=o(75703),v=o(38777),x=o(6557),d=v?function(b,A){return v(b,"toString",{configurable:!0,enumerable:!1,value:c(A),writable:!0})}:x;h.exports=d},22545:h=>{function I(o,c){for(var v=-1,x=Array(o);++v<o;)x[v]=c(v);return x}h.exports=I},80531:(h,I,o)=>{var c=o(62705),v=o(29932),x=o(1469),d=o(33448),b=1/0,A=c?c.prototype:void 0,g=A?A.toString:void 0;function L(N){if(typeof N=="string")return N;if(x(N))return v(N,L)+"";if(d(N))return g?g.call(N):"";var B=N+"";return B=="0"&&1/N==-b?"-0":B}h.exports=L},27561:(h,I,o)=>{var c=o(67990),v=/^\s+/;function x(d){return d&&d.slice(0,c(d)+1).replace(v,"")}h.exports=x},7518:h=>{function I(o){return function(c){return o(c)}}h.exports=I},74757:h=>{function I(o,c){return o.has(c)}h.exports=I},71811:(h,I,o)=>{var c=o(1469),v=o(15403),x=o(55514),d=o(79833);function b(A,g){return c(A)?A:v(A,g)?[A]:x(d(A))}h.exports=b},74318:(h,I,o)=>{var c=o(11149);function v(x){var d=new x.constructor(x.byteLength);return new c(d).set(new c(x)),d}h.exports=v},64626:(h,I,o)=>{h=o.nmd(h);var c=o(55639),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d?c.Buffer:void 0,A=b?b.allocUnsafe:void 0;function g(L,N){if(N)return L.slice();var B=L.length,j=A?A(B):new L.constructor(B);return L.copy(j),j}h.exports=g},57157:(h,I,o)=>{var c=o(74318);function v(x,d){var b=d?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.byteLength)}h.exports=v},93147:h=>{var I=/\w*$/;function o(c){var v=new c.constructor(c.source,I.exec(c));return v.lastIndex=c.lastIndex,v}h.exports=o},40419:(h,I,o)=>{var c=o(62705),v=c?c.prototype:void 0,x=v?v.valueOf:void 0;function d(b){return x?Object(x.call(b)):{}}h.exports=d},77133:(h,I,o)=>{var c=o(74318);function v(x,d){var b=d?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.length)}h.exports=v},278:h=>{function I(o,c){var v=-1,x=o.length;for(c||(c=Array(x));++v<x;)c[v]=o[v];return c}h.exports=I},98363:(h,I,o)=>{var c=o(34865),v=o(89465);function x(d,b,A,g){var L=!A;A||(A={});for(var N=-1,B=b.length;++N<B;){var j=b[N],_=g?g(A[j],d[j],j,A,d):void 0;_===void 0&&(_=d[j]),L?v(A,j,_):c(A,j,_)}return A}h.exports=x},18805:(h,I,o)=>{var c=o(98363),v=o(99551);function x(d,b){return c(d,v(d),b)}h.exports=x},1911:(h,I,o)=>{var c=o(98363),v=o(51442);function x(d,b){return c(d,v(d),b)}h.exports=x},14429:(h,I,o)=>{var c=o(55639),v=c["__core-js_shared__"];h.exports=v},21463:(h,I,o)=>{var c=o(5976),v=o(16612);function x(d){return c(function(b,A){var g=-1,L=A.length,N=L>1?A[L-1]:void 0,B=L>2?A[2]:void 0;for(N=d.length>3&&typeof N=="function"?(L--,N):void 0,B&&v(A[0],A[1],B)&&(N=L<3?void 0:N,L=1),b=Object(b);++g<L;){var j=A[g];j&&d(b,j,g,N)}return b})}h.exports=x},67740:(h,I,o)=>{var c=o(67206),v=o(98612),x=o(3674);function d(b){return function(A,g,L){var N=Object(A);if(!v(A)){var B=c(g,3);A=x(A),g=function(_){return B(N[_],_,N)}}var j=b(A,g,L);return j>-1?N[B?A[j]:j]:void 0}}h.exports=d},38777:(h,I,o)=>{var c=o(10852),v=function(){try{var x=c(Object,"defineProperty");return x({},"",{}),x}catch(d){}}();h.exports=v},67114:(h,I,o)=>{var c=o(88668),v=o(82908),x=o(74757),d=1,b=2;function A(g,L,N,B,j,_){var H=N&d,R=g.length,X=L.length;if(R!=X&&!(H&&X>R))return!1;var M=_.get(g),C=_.get(L);if(M&&C)return M==L&&C==g;var V=-1,J=!0,q=N&b?new c:void 0;for(_.set(g,L),_.set(L,g);++V<R;){var Q=g[V],Y=L[V];if(B)var ue=H?B(Y,Q,V,L,g,_):B(Q,Y,V,g,L,_);if(ue!==void 0){if(ue)continue;J=!1;break}if(q){if(!v(L,function(te,ne){if(!x(q,ne)&&(Q===te||j(Q,te,N,B,_)))return q.push(ne)})){J=!1;break}}else if(!(Q===Y||j(Q,Y,N,B,_))){J=!1;break}}return _.delete(g),_.delete(L),J}h.exports=A},18351:(h,I,o)=>{var c=o(62705),v=o(11149),x=o(77813),d=o(67114),b=o(68776),A=o(21814),g=1,L=2,N="[object Boolean]",B="[object Date]",j="[object Error]",_="[object Map]",H="[object Number]",R="[object RegExp]",X="[object Set]",M="[object String]",C="[object Symbol]",V="[object ArrayBuffer]",J="[object DataView]",q=c?c.prototype:void 0,Q=q?q.valueOf:void 0;function Y(ue,te,ne,ye,ge,de,le){switch(ne){case J:if(ue.byteLength!=te.byteLength||ue.byteOffset!=te.byteOffset)return!1;ue=ue.buffer,te=te.buffer;case V:return!(ue.byteLength!=te.byteLength||!de(new v(ue),new v(te)));case N:case B:case H:return x(+ue,+te);case j:return ue.name==te.name&&ue.message==te.message;case R:case M:return ue==te+"";case _:var ae=b;case X:var De=ye&g;if(ae||(ae=A),ue.size!=te.size&&!De)return!1;var Ve=le.get(ue);if(Ve)return Ve==te;ye|=L,le.set(ue,te);var Le=d(ae(ue),ae(te),ye,ge,de,le);return le.delete(ue),Le;case C:if(Q)return Q.call(ue)==Q.call(te)}return!1}h.exports=Y},16096:(h,I,o)=>{var c=o(58234),v=1,x=Object.prototype,d=x.hasOwnProperty;function b(A,g,L,N,B,j){var _=L&v,H=c(A),R=H.length,X=c(g),M=X.length;if(R!=M&&!_)return!1;for(var C=R;C--;){var V=H[C];if(!(_?V in g:d.call(g,V)))return!1}var J=j.get(A),q=j.get(g);if(J&&q)return J==g&&q==A;var Q=!0;j.set(A,g),j.set(g,A);for(var Y=_;++C<R;){V=H[C];var ue=A[V],te=g[V];if(N)var ne=_?N(te,ue,V,g,A,j):N(ue,te,V,A,g,j);if(!(ne===void 0?ue===te||B(ue,te,L,N,j):ne)){Q=!1;break}Y||(Y=V=="constructor")}if(Q&&!Y){var ye=A.constructor,ge=g.constructor;ye!=ge&&"constructor"in A&&"constructor"in g&&!(typeof ye=="function"&&ye instanceof ye&&typeof ge=="function"&&ge instanceof ge)&&(Q=!1)}return j.delete(A),j.delete(g),Q}h.exports=b},99021:(h,I,o)=>{var c=o(85564),v=o(45357),x=o(30061);function d(b){return x(v(b,void 0,c),b+"")}h.exports=d},31957:(h,I,o)=>{var c=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g;h.exports=c},58234:(h,I,o)=>{var c=o(68866),v=o(99551),x=o(3674);function d(b){return c(b,x,v)}h.exports=d},46904:(h,I,o)=>{var c=o(68866),v=o(51442),x=o(81704);function d(b){return c(b,x,v)}h.exports=d},45050:(h,I,o)=>{var c=o(37019);function v(x,d){var b=x.__data__;return c(d)?b[typeof d=="string"?"string":"hash"]:b.map}h.exports=v},1499:(h,I,o)=>{var c=o(89162),v=o(3674);function x(d){for(var b=v(d),A=b.length;A--;){var g=b[A],L=d[g];b[A]=[g,L,c(L)]}return b}h.exports=x},10852:(h,I,o)=>{var c=o(28458),v=o(47801);function x(d,b){var A=v(d,b);return c(A)?A:void 0}h.exports=x},85924:(h,I,o)=>{var c=o(5569),v=c(Object.getPrototypeOf,Object);h.exports=v},89607:(h,I,o)=>{var c=o(62705),v=Object.prototype,x=v.hasOwnProperty,d=v.toString,b=c?c.toStringTag:void 0;function A(g){var L=x.call(g,b),N=g[b];try{g[b]=void 0;var B=!0}catch(_){}var j=d.call(g);return B&&(L?g[b]=N:delete g[b]),j}h.exports=A},99551:(h,I,o)=>{var c=o(34963),v=o(70479),x=Object.prototype,d=x.propertyIsEnumerable,b=Object.getOwnPropertySymbols,A=b?function(g){return g==null?[]:(g=Object(g),c(b(g),function(L){return d.call(g,L)}))}:v;h.exports=A},51442:(h,I,o)=>{var c=o(62488),v=o(85924),x=o(99551),d=o(70479),b=Object.getOwnPropertySymbols,A=b?function(g){for(var L=[];g;)c(L,x(g)),g=v(g);return L}:d;h.exports=A},98882:(h,I,o)=>{var c=o(18552),v=o(57071),x=o(53818),d=o(58525),b=o(70577),A=o(44239),g=o(80346),L="[object Map]",N="[object Object]",B="[object Promise]",j="[object Set]",_="[object WeakMap]",H="[object DataView]",R=g(c),X=g(v),M=g(x),C=g(d),V=g(b),J=A;(c&&J(new c(new ArrayBuffer(1)))!=H||v&&J(new v)!=L||x&&J(x.resolve())!=B||d&&J(new d)!=j||b&&J(new b)!=_)&&(J=function(q){var Q=A(q),Y=Q==N?q.constructor:void 0,ue=Y?g(Y):"";if(ue)switch(ue){case R:return H;case X:return L;case M:return B;case C:return j;case V:return _}return Q}),h.exports=J},47801:h=>{function I(o,c){return o==null?void 0:o[c]}h.exports=I},222:(h,I,o)=>{var c=o(71811),v=o(35694),x=o(1469),d=o(65776),b=o(41780),A=o(40327);function g(L,N,B){N=c(N,L);for(var j=-1,_=N.length,H=!1;++j<_;){var R=A(N[j]);if(!(H=L!=null&&B(L,R)))break;L=L[R]}return H||++j!=_?H:(_=L==null?0:L.length,!!_&&b(_)&&d(R,_)&&(x(L)||v(L)))}h.exports=g},51789:(h,I,o)=>{var c=o(94536);function v(){this.__data__=c?c(null):{},this.size=0}h.exports=v},80401:h=>{function I(o){var c=this.has(o)&&delete this.__data__[o];return this.size-=c?1:0,c}h.exports=I},57667:(h,I,o)=>{var c=o(94536),v="__lodash_hash_undefined__",x=Object.prototype,d=x.hasOwnProperty;function b(A){var g=this.__data__;if(c){var L=g[A];return L===v?void 0:L}return d.call(g,A)?g[A]:void 0}h.exports=b},21327:(h,I,o)=>{var c=o(94536),v=Object.prototype,x=v.hasOwnProperty;function d(b){var A=this.__data__;return c?A[b]!==void 0:x.call(A,b)}h.exports=d},81866:(h,I,o)=>{var c=o(94536),v="__lodash_hash_undefined__";function x(d,b){var A=this.__data__;return this.size+=this.has(d)?0:1,A[d]=c&&b===void 0?v:b,this}h.exports=x},43824:h=>{var I=Object.prototype,o=I.hasOwnProperty;function c(v){var x=v.length,d=new v.constructor(x);return x&&typeof v[0]=="string"&&o.call(v,"index")&&(d.index=v.index,d.input=v.input),d}h.exports=c},29148:(h,I,o)=>{var c=o(74318),v=o(57157),x=o(93147),d=o(40419),b=o(77133),A="[object Boolean]",g="[object Date]",L="[object Map]",N="[object Number]",B="[object RegExp]",j="[object Set]",_="[object String]",H="[object Symbol]",R="[object ArrayBuffer]",X="[object DataView]",M="[object Float32Array]",C="[object Float64Array]",V="[object Int8Array]",J="[object Int16Array]",q="[object Int32Array]",Q="[object Uint8Array]",Y="[object Uint8ClampedArray]",ue="[object Uint16Array]",te="[object Uint32Array]";function ne(ye,ge,de){var le=ye.constructor;switch(ge){case R:return c(ye);case A:case g:return new le(+ye);case X:return v(ye,de);case M:case C:case V:case J:case q:case Q:case Y:case ue:case te:return b(ye,de);case L:return new le;case N:case _:return new le(ye);case B:return x(ye);case j:return new le;case H:return d(ye)}}h.exports=ne},38517:(h,I,o)=>{var c=o(3118),v=o(85924),x=o(25726);function d(b){return typeof b.constructor=="function"&&!x(b)?c(v(b)):{}}h.exports=d},37285:(h,I,o)=>{var c=o(62705),v=o(35694),x=o(1469),d=c?c.isConcatSpreadable:void 0;function b(A){return x(A)||v(A)||!!(d&&A&&A[d])}h.exports=b},65776:h=>{var I=9007199254740991,o=/^(?:0|[1-9]\d*)$/;function c(v,x){var d=typeof v;return x=x==null?I:x,!!x&&(d=="number"||d!="symbol"&&o.test(v))&&v>-1&&v%1==0&&v<x}h.exports=c},16612:(h,I,o)=>{var c=o(77813),v=o(98612),x=o(65776),d=o(13218);function b(A,g,L){if(!d(L))return!1;var N=typeof g;return(N=="number"?v(L)&&x(g,L.length):N=="string"&&g in L)?c(L[g],A):!1}h.exports=b},15403:(h,I,o)=>{var c=o(1469),v=o(33448),x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/;function b(A,g){if(c(A))return!1;var L=typeof A;return L=="number"||L=="symbol"||L=="boolean"||A==null||v(A)?!0:d.test(A)||!x.test(A)||g!=null&&A in Object(g)}h.exports=b},37019:h=>{function I(o){var c=typeof o;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?o!=="__proto__":o===null}h.exports=I},15346:(h,I,o)=>{var c=o(14429),v=function(){var d=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}();function x(d){return!!v&&v in d}h.exports=x},25726:h=>{var I=Object.prototype;function o(c){var v=c&&c.constructor,x=typeof v=="function"&&v.prototype||I;return c===x}h.exports=o},89162:(h,I,o)=>{var c=o(13218);function v(x){return x===x&&!c(x)}h.exports=v},27040:h=>{function I(){this.__data__=[],this.size=0}h.exports=I},14125:(h,I,o)=>{var c=o(18470),v=Array.prototype,x=v.splice;function d(b){var A=this.__data__,g=c(A,b);if(g<0)return!1;var L=A.length-1;return g==L?A.pop():x.call(A,g,1),--this.size,!0}h.exports=d},82117:(h,I,o)=>{var c=o(18470);function v(x){var d=this.__data__,b=c(d,x);return b<0?void 0:d[b][1]}h.exports=v},67518:(h,I,o)=>{var c=o(18470);function v(x){return c(this.__data__,x)>-1}h.exports=v},13399:(h,I,o)=>{var c=o(18470);function v(x,d){var b=this.__data__,A=c(b,x);return A<0?(++this.size,b.push([x,d])):b[A][1]=d,this}h.exports=v},24785:(h,I,o)=>{var c=o(1989),v=o(38407),x=o(57071);function d(){this.size=0,this.__data__={hash:new c,map:new(x||v),string:new c}}h.exports=d},11285:(h,I,o)=>{var c=o(45050);function v(x){var d=c(this,x).delete(x);return this.size-=d?1:0,d}h.exports=v},96e3:(h,I,o)=>{var c=o(45050);function v(x){return c(this,x).get(x)}h.exports=v},49916:(h,I,o)=>{var c=o(45050);function v(x){return c(this,x).has(x)}h.exports=v},95265:(h,I,o)=>{var c=o(45050);function v(x,d){var b=c(this,x),A=b.size;return b.set(x,d),this.size+=b.size==A?0:1,this}h.exports=v},68776:h=>{function I(o){var c=-1,v=Array(o.size);return o.forEach(function(x,d){v[++c]=[d,x]}),v}h.exports=I},42634:h=>{function I(o,c){return function(v){return v==null?!1:v[o]===c&&(c!==void 0||o in Object(v))}}h.exports=I},24523:(h,I,o)=>{var c=o(88306),v=500;function x(d){var b=c(d,function(g){return A.size===v&&A.clear(),g}),A=b.cache;return b}h.exports=x},94536:(h,I,o)=>{var c=o(10852),v=c(Object,"create");h.exports=v},86916:(h,I,o)=>{var c=o(5569),v=c(Object.keys,Object);h.exports=v},33498:h=>{function I(o){var c=[];if(o!=null)for(var v in Object(o))c.push(v);return c}h.exports=I},31167:(h,I,o)=>{h=o.nmd(h);var c=o(31957),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d&&c.process,A=function(){try{var g=x&&x.require&&x.require("util").types;return g||b&&b.binding&&b.binding("util")}catch(L){}}();h.exports=A},2333:h=>{var I=Object.prototype,o=I.toString;function c(v){return o.call(v)}h.exports=c},5569:h=>{function I(o,c){return function(v){return o(c(v))}}h.exports=I},45357:(h,I,o)=>{var c=o(96874),v=Math.max;function x(d,b,A){return b=v(b===void 0?d.length-1:b,0),function(){for(var g=arguments,L=-1,N=v(g.length-b,0),B=Array(N);++L<N;)B[L]=g[b+L];L=-1;for(var j=Array(b+1);++L<b;)j[L]=g[L];return j[b]=A(B),c(d,this,j)}}h.exports=x},55639:(h,I,o)=>{var c=o(31957),v=typeof self=="object"&&self&&self.Object===Object&&self,x=c||v||Function("return this")();h.exports=x},90619:h=>{var I="__lodash_hash_undefined__";function o(c){return this.__data__.set(c,I),this}h.exports=o},72385:h=>{function I(o){return this.__data__.has(o)}h.exports=I},21814:h=>{function I(o){var c=-1,v=Array(o.size);return o.forEach(function(x){v[++c]=x}),v}h.exports=I},30061:(h,I,o)=>{var c=o(56560),v=o(21275),x=v(c);h.exports=x},21275:h=>{var I=800,o=16,c=Date.now;function v(x){var d=0,b=0;return function(){var A=c(),g=o-(A-b);if(b=A,g>0){if(++d>=I)return arguments[0]}else d=0;return x.apply(void 0,arguments)}}h.exports=v},37465:(h,I,o)=>{var c=o(38407);function v(){this.__data__=new c,this.size=0}h.exports=v},63779:h=>{function I(o){var c=this.__data__,v=c.delete(o);return this.size=c.size,v}h.exports=I},67599:h=>{function I(o){return this.__data__.get(o)}h.exports=I},44758:h=>{function I(o){return this.__data__.has(o)}h.exports=I},34309:(h,I,o)=>{var c=o(38407),v=o(57071),x=o(83369),d=200;function b(A,g){var L=this.__data__;if(L instanceof c){var N=L.__data__;if(!v||N.length<d-1)return N.push([A,g]),this.size=++L.size,this;L=this.__data__=new x(N)}return L.set(A,g),this.size=L.size,this}h.exports=b},55514:(h,I,o)=>{var c=o(24523),v=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/g,d=c(function(b){var A=[];return b.charCodeAt(0)===46&&A.push(""),b.replace(v,function(g,L,N,B){A.push(N?B.replace(x,"$1"):L||g)}),A});h.exports=d},40327:(h,I,o)=>{var c=o(33448),v=1/0;function x(d){if(typeof d=="string"||c(d))return d;var b=d+"";return b=="0"&&1/d==-v?"-0":b}h.exports=x},80346:h=>{var I=Function.prototype,o=I.toString;function c(v){if(v!=null){try{return o.call(v)}catch(x){}try{return v+""}catch(x){}}return""}h.exports=c},67990:h=>{var I=/\s/;function o(c){for(var v=c.length;v--&&I.test(c.charAt(v)););return v}h.exports=o},28583:(h,I,o)=>{var c=o(34865),v=o(98363),x=o(21463),d=o(98612),b=o(25726),A=o(3674),g=Object.prototype,L=g.hasOwnProperty,N=x(function(B,j){if(b(j)||d(j)){v(j,A(j),B);return}for(var _ in j)L.call(j,_)&&c(B,_,j[_])});h.exports=N},50361:(h,I,o)=>{var c=o(85990),v=1,x=4;function d(b){return c(b,v|x)}h.exports=d},75703:h=>{function I(o){return function(){return o}}h.exports=I},77813:h=>{function I(o,c){return o===c||o!==o&&c!==c}h.exports=I},13311:(h,I,o)=>{var c=o(67740),v=o(30998),x=c(v);h.exports=x},30998:(h,I,o)=>{var c=o(41848),v=o(67206),x=o(40554),d=Math.max;function b(A,g,L){var N=A==null?0:A.length;if(!N)return-1;var B=L==null?0:x(L);return B<0&&(B=d(N+B,0)),c(A,v(g,3),B)}h.exports=b},85564:(h,I,o)=>{var c=o(35764);function v(x){var d=x==null?0:x.length;return d?c(x,1):[]}h.exports=v},27361:(h,I,o)=>{var c=o(97786);function v(x,d,b){var A=x==null?void 0:c(x,d);return A===void 0?b:A}h.exports=v},79095:(h,I,o)=>{var c=o(13),v=o(222);function x(d,b){return d!=null&&v(d,b,c)}h.exports=x},6557:h=>{function I(o){return o}h.exports=I},35694:(h,I,o)=>{var c=o(9454),v=o(37005),x=Object.prototype,d=x.hasOwnProperty,b=x.propertyIsEnumerable,A=c(function(){return arguments}())?c:function(g){return v(g)&&d.call(g,"callee")&&!b.call(g,"callee")};h.exports=A},1469:h=>{var I=Array.isArray;h.exports=I},98612:(h,I,o)=>{var c=o(23560),v=o(41780);function x(d){return d!=null&&v(d.length)&&!c(d)}h.exports=x},44144:(h,I,o)=>{h=o.nmd(h);var c=o(55639),v=o(95062),x=I&&!I.nodeType&&I,d=x&&!0&&h&&!h.nodeType&&h,b=d&&d.exports===x,A=b?c.Buffer:void 0,g=A?A.isBuffer:void 0,L=g||v;h.exports=L},41609:(h,I,o)=>{var c=o(280),v=o(98882),x=o(35694),d=o(1469),b=o(98612),A=o(44144),g=o(25726),L=o(36719),N="[object Map]",B="[object Set]",j=Object.prototype,_=j.hasOwnProperty;function H(R){if(R==null)return!0;if(b(R)&&(d(R)||typeof R=="string"||typeof R.splice=="function"||A(R)||L(R)||x(R)))return!R.length;var X=v(R);if(X==N||X==B)return!R.size;if(g(R))return!c(R).length;for(var M in R)if(_.call(R,M))return!1;return!0}h.exports=H},23560:(h,I,o)=>{var c=o(44239),v=o(13218),x="[object AsyncFunction]",d="[object Function]",b="[object GeneratorFunction]",A="[object Proxy]";function g(L){if(!v(L))return!1;var N=c(L);return N==d||N==b||N==x||N==A}h.exports=g},41780:h=>{var I=9007199254740991;function o(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=I}h.exports=o},56688:(h,I,o)=>{var c=o(25588),v=o(7518),x=o(31167),d=x&&x.isMap,b=d?v(d):c;h.exports=b},13218:h=>{function I(o){var c=typeof o;return o!=null&&(c=="object"||c=="function")}h.exports=I},37005:h=>{function I(o){return o!=null&&typeof o=="object"}h.exports=I},68630:(h,I,o)=>{var c=o(44239),v=o(85924),x=o(37005),d="[object Object]",b=Function.prototype,A=Object.prototype,g=b.toString,L=A.hasOwnProperty,N=g.call(Object);function B(j){if(!x(j)||c(j)!=d)return!1;var _=v(j);if(_===null)return!0;var H=L.call(_,"constructor")&&_.constructor;return typeof H=="function"&&H instanceof H&&g.call(H)==N}h.exports=B},72928:(h,I,o)=>{var c=o(29221),v=o(7518),x=o(31167),d=x&&x.isSet,b=d?v(d):c;h.exports=b},47037:(h,I,o)=>{var c=o(44239),v=o(1469),x=o(37005),d="[object String]";function b(A){return typeof A=="string"||!v(A)&&x(A)&&c(A)==d}h.exports=b},33448:(h,I,o)=>{var c=o(44239),v=o(37005),x="[object Symbol]";function d(b){return typeof b=="symbol"||v(b)&&c(b)==x}h.exports=d},36719:(h,I,o)=>{var c=o(38749),v=o(7518),x=o(31167),d=x&&x.isTypedArray,b=d?v(d):c;h.exports=b},3674:(h,I,o)=>{var c=o(14636),v=o(280),x=o(98612);function d(b){return x(b)?c(b):v(b)}h.exports=d},81704:(h,I,o)=>{var c=o(14636),v=o(10313),x=o(98612);function d(b){return x(b)?c(b,!0):v(b)}h.exports=d},88306:(h,I,o)=>{var c=o(83369),v="Expected a function";function x(d,b){if(typeof d!="function"||b!=null&&typeof b!="function")throw new TypeError(v);var A=function(){var g=arguments,L=b?b.apply(this,g):g[0],N=A.cache;if(N.has(L))return N.get(L);var B=d.apply(this,g);return A.cache=N.set(L,B)||N,B};return A.cache=new(x.Cache||c),A}x.Cache=c,h.exports=x},50308:h=>{function I(){}h.exports=I},78718:(h,I,o)=>{var c=o(25970),v=o(99021),x=v(function(d,b){return d==null?{}:c(d,b)});h.exports=x},39601:(h,I,o)=>{var c=o(40371),v=o(79152),x=o(15403),d=o(40327);function b(A){return x(A)?c(d(A)):v(A)}h.exports=b},10240:(h,I,o)=>{var c=o(29750),v=o(80531),x=o(40554),d=o(79833);function b(A,g,L){return A=d(A),L=L==null?0:c(x(L),0,A.length),g=v(g),A.slice(L,L+g.length)==g}h.exports=b},70479:h=>{function I(){return[]}h.exports=I},95062:h=>{function I(){return!1}h.exports=I},18601:(h,I,o)=>{var c=o(14841),v=1/0,x=17976931348623157e292;function d(b){if(!b)return b===0?b:0;if(b=c(b),b===v||b===-v){var A=b<0?-1:1;return A*x}return b===b?b:0}h.exports=d},40554:(h,I,o)=>{var c=o(18601);function v(x){var d=c(x),b=d%1;return d===d?b?d-b:d:0}h.exports=v},14841:(h,I,o)=>{var c=o(27561),v=o(13218),x=o(33448),d=0/0,b=/^[-+]0x[0-9a-f]+$/i,A=/^0b[01]+$/i,g=/^0o[0-7]+$/i,L=parseInt;function N(B){if(typeof B=="number")return B;if(x(B))return d;if(v(B)){var j=typeof B.valueOf=="function"?B.valueOf():B;B=v(j)?j+"":j}if(typeof B!="string")return B===0?B:+B;B=c(B);var _=A.test(B);return _||g.test(B)?L(B.slice(2),_?2:8):b.test(B)?d:+B}h.exports=N},79833:(h,I,o)=>{var c=o(80531);function v(x){return x==null?"":c(x)}h.exports=v},70631:(h,I,o)=>{var c=typeof Map=="function"&&Map.prototype,v=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,x=c&&v&&typeof v.get=="function"?v.get:null,d=c&&Map.prototype.forEach,b=typeof Set=="function"&&Set.prototype,A=Object.getOwnPropertyDescriptor&&b?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,g=b&&A&&typeof A.get=="function"?A.get:null,L=b&&Set.prototype.forEach,N=typeof WeakMap=="function"&&WeakMap.prototype,B=N?WeakMap.prototype.has:null,j=typeof WeakSet=="function"&&WeakSet.prototype,_=j?WeakSet.prototype.has:null,H=typeof WeakRef=="function"&&WeakRef.prototype,R=H?WeakRef.prototype.deref:null,X=Boolean.prototype.valueOf,M=Object.prototype.toString,C=Function.prototype.toString,V=String.prototype.match,J=typeof BigInt=="function"?BigInt.prototype.valueOf:null,q=Object.getOwnPropertySymbols,Q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Y=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ue=Object.prototype.propertyIsEnumerable,te=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(be){return be.__proto__}:null),ne=o(24654).custom,ye=ne&&Je(ne)?ne:null,ge=typeof Symbol=="function"&&typeof Symbol.toStringTag!="undefined"?Symbol.toStringTag:null;h.exports=function be(Ae,T,Ie,W){var O=T||{};if(mt(O,"quoteStyle")&&O.quoteStyle!=="single"&&O.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(mt(O,"maxStringLength")&&(typeof O.maxStringLength=="number"?O.maxStringLength<0&&O.maxStringLength!==1/0:O.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var P=mt(O,"customInspect")?O.customInspect:!0;if(typeof P!="boolean")throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(mt(O,"indent")&&O.indent!==null&&O.indent!==" "&&!(parseInt(O.indent,10)===O.indent&&O.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(typeof Ae=="undefined")return"undefined";if(Ae===null)return"null";if(typeof Ae=="boolean")return Ae?"true":"false";if(typeof Ae=="string")return Nt(Ae,O);if(typeof Ae=="number")return Ae===0?1/0/Ae>0?"0":"-0":String(Ae);if(typeof Ae=="bigint")return String(Ae)+"n";var ie=typeof O.depth=="undefined"?5:O.depth;if(typeof Ie=="undefined"&&(Ie=0),Ie>=ie&&ie>0&&typeof Ae=="object")return ae(Ae)?"[Array]":"[Object]";var D=K(O,Ie);if(typeof W=="undefined")W=[];else if(gt(W,Ae)>=0)return"[Circular]";function ee(Bn,Kn,Tn){if(Kn&&(W=W.slice(),W.push(Kn)),Tn){var Yn={depth:O.depth};return mt(O,"quoteStyle")&&(Yn.quoteStyle=O.quoteStyle),be(Bn,Yn,Ie+1,W)}return be(Bn,O,Ie+1,W)}if(typeof Ae=="function"){var fe=lt(Ae),Oe=Re(Ae,ee);return"[Function"+(fe?": "+fe:" (anonymous)")+"]"+(Oe.length>0?" { "+Oe.join(", ")+" }":"")}if(Je(Ae)){var Pe=Y?String(Ae).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):Q.call(Ae);return typeof Ae=="object"&&!Y?St(Pe):Pe}if(jt(Ae)){for(var Te="<"+String(Ae.nodeName).toLowerCase(),Ge=Ae.attributes||[],He=0;He<Ge.length;He++)Te+=" "+Ge[He].name+"="+de(le(Ge[He].value),"double",O);return Te+=">",Ae.childNodes&&Ae.childNodes.length&&(Te+="..."),Te+="</"+String(Ae.nodeName).toLowerCase()+">",Te}if(ae(Ae)){if(Ae.length===0)return"[]";var it=Re(Ae,ee);return D&&!G(it)?"["+we(it,D)+"]":"[ "+it.join(", ")+" ]"}if(Le(Ae)){var yt=Re(Ae,ee);return yt.length===0?"["+String(Ae)+"]":"{ ["+String(Ae)+"] "+yt.join(", ")+" }"}if(typeof Ae=="object"&&P){if(ye&&typeof Ae[ye]=="function")return Ae[ye]();if(typeof Ae.inspect=="function")return Ae.inspect()}if(xt(Ae)){var Ct=[];return d.call(Ae,function(Bn,Kn){Ct.push(ee(Kn,Ae,!0)+" => "+ee(Bn,Ae))}),pe("Map",x.call(Ae),Ct,D)}if(It(Ae)){var Jt=[];return L.call(Ae,function(Bn){Jt.push(ee(Bn,Ae))}),pe("Set",g.call(Ae),Jt,D)}if(dt(Ae))return Lt("WeakMap");if(At(Ae))return Lt("WeakSet");if(kt(Ae))return Lt("WeakRef");if(rt(Ae))return St(ee(Number(Ae)));if(ut(Ae))return St(ee(J.call(Ae)));if(Qe(Ae))return St(X.call(Ae));if(ke(Ae))return St(ee(String(Ae)));if(!De(Ae)&&!Ve(Ae)){var Ft=Re(Ae,ee),wn=te?te(Ae)===Object.prototype:Ae instanceof Object||Ae.constructor===Object,_r=Ae instanceof Object?"":"null prototype",On=!wn&&ge&&Object(Ae)===Ae&&ge in Ae?qe(Ae).slice(8,-1):_r?"Object":"",$i=wn||typeof Ae.constructor!="function"?"":Ae.constructor.name?Ae.constructor.name+" ":"",jr=$i+(On||_r?"["+[].concat(On||[],_r||[]).join(": ")+"] ":"");return Ft.length===0?jr+"{}":D?jr+"{"+we(Ft,D)+"}":jr+"{ "+Ft.join(", ")+" }"}return String(Ae)};function de(be,Ae,T){var Ie=(T.quoteStyle||Ae)==="double"?'"':"'";return Ie+be+Ie}function le(be){return String(be).replace(/"/g,""")}function ae(be){return qe(be)==="[object Array]"&&(!ge||!(typeof be=="object"&&ge in be))}function De(be){return qe(be)==="[object Date]"&&(!ge||!(typeof be=="object"&&ge in be))}function Ve(be){return qe(be)==="[object RegExp]"&&(!ge||!(typeof be=="object"&&ge in be))}function Le(be){return qe(be)==="[object Error]"&&(!ge||!(typeof be=="object"&&ge in be))}function ke(be){return qe(be)==="[object String]"&&(!ge||!(typeof be=="object"&&ge in be))}function rt(be){return qe(be)==="[object Number]"&&(!ge||!(typeof be=="object"&&ge in be))}function Qe(be){return qe(be)==="[object Boolean]"&&(!ge||!(typeof be=="object"&&ge in be))}function Je(be){if(Y)return be&&typeof be=="object"&&be instanceof Symbol;if(typeof be=="symbol")return!0;if(!be||typeof be!="object"||!Q)return!1;try{return Q.call(be),!0}catch(Ae){}return!1}function ut(be){if(!be||typeof be!="object"||!J)return!1;try{return J.call(be),!0}catch(Ae){}return!1}var pt=Object.prototype.hasOwnProperty||function(be){return be in this};function mt(be,Ae){return pt.call(be,Ae)}function qe(be){return M.call(be)}function lt(be){if(be.name)return be.name;var Ae=V.call(C.call(be),/^function\s*([\w$]+)/);return Ae?Ae[1]:null}function gt(be,Ae){if(be.indexOf)return be.indexOf(Ae);for(var T=0,Ie=be.length;T<Ie;T++)if(be[T]===Ae)return T;return-1}function xt(be){if(!x||!be||typeof be!="object")return!1;try{x.call(be);try{g.call(be)}catch(Ae){return!0}return be instanceof Map}catch(Ae){}return!1}function dt(be){if(!B||!be||typeof be!="object")return!1;try{B.call(be,B);try{_.call(be,_)}catch(Ae){return!0}return be instanceof WeakMap}catch(Ae){}return!1}function kt(be){if(!R||!be||typeof be!="object")return!1;try{return R.call(be),!0}catch(Ae){}return!1}function It(be){if(!g||!be||typeof be!="object")return!1;try{g.call(be);try{x.call(be)}catch(Ae){return!0}return be instanceof Set}catch(Ae){}return!1}function At(be){if(!_||!be||typeof be!="object")return!1;try{_.call(be,_);try{B.call(be,B)}catch(Ae){return!0}return be instanceof WeakSet}catch(Ae){}return!1}function jt(be){return!be||typeof be!="object"?!1:typeof HTMLElement!="undefined"&&be instanceof HTMLElement?!0:typeof be.nodeName=="string"&&typeof be.getAttribute=="function"}function Nt(be,Ae){if(be.length>Ae.maxStringLength){var T=be.length-Ae.maxStringLength,Ie="... "+T+" more character"+(T>1?"s":"");return Nt(be.slice(0,Ae.maxStringLength),Ae)+Ie}var W=be.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,$t);return de(W,"single",Ae)}function $t(be){var Ae=be.charCodeAt(0),T={8:"b",9:"t",10:"n",12:"f",13:"r"}[Ae];return T?"\\"+T:"\\x"+(Ae<16?"0":"")+Ae.toString(16).toUpperCase()}function St(be){return"Object("+be+")"}function Lt(be){return be+" { ? }"}function pe(be,Ae,T,Ie){var W=Ie?we(T,Ie):T.join(", ");return be+" ("+Ae+") {"+W+"}"}function G(be){for(var Ae=0;Ae<be.length;Ae++)if(gt(be[Ae],`
|
|
507
|
-
`)>=0)return!1;return!0}function K(be,Ae){var T;if(be.indent===" ")T=" ";else if(typeof be.indent=="number"&&be.indent>0)T=Array(be.indent+1).join(" ");else return null;return{base:T,prev:Array(Ae+1).join(T)}}function we(be,Ae){if(be.length===0)return"";var T=`
|
|
508
|
-
`+Ae.prev+Ae.base;return T+be.join(","+T)+`
|
|
509
|
-
`+Ae.prev}function Re(be,Ae){var T=ae(be),Ie=[];if(T){Ie.length=be.length;for(var W=0;W<be.length;W++)Ie[W]=mt(be,W)?Ae(be[W],be):""}var O=typeof q=="function"?q(be):[],P;if(Y){P={};for(var ie=0;ie<O.length;ie++)P["$"+O[ie]]=O[ie]}for(var D in be)!mt(be,D)||T&&String(Number(D))===D&&D<be.length||Y&&P["$"+D]instanceof Symbol||(/[^\w$]/.test(D)?Ie.push(Ae(D,be)+": "+Ae(be[D],be)):Ie.push(D+": "+Ae(be[D],be)));if(typeof q=="function")for(var ee=0;ee<O.length;ee++)ue.call(be,O[ee])&&Ie.push("["+Ae(O[ee])+"]: "+Ae(be[O[ee]],be));return Ie}},9779:(h,I,o)=>{"use strict";var c=I,v=o(48764).Buffer;c.unescapeBuffer=function(L,N){for(var B=new v(L.length),j=0,_,H,R,X=0,M=0;X<=L.length;X++){var C=X<L.length?L.charCodeAt(X):NaN;switch(j){case 0:switch(C){case 37:_=0,H=0,j=1;break;case 43:N&&(C=32);default:B[M++]=C;break}break;case 1:if(R=C,C>=48&&C<=57)_=C-48;else if(C>=65&&C<=70)_=C-65+10;else if(C>=97&&C<=102)_=C-97+10;else{B[M++]=37,B[M++]=C,j=0;break}j=2;break;case 2:if(j=0,C>=48&&C<=57)H=C-48;else if(C>=65&&C<=70)H=C-65+10;else if(C>=97&&C<=102)H=C-97+10;else{B[M++]=37,B[M++]=R,B[M++]=C;break}B[M++]=16*_+H;break}}return B.slice(0,M-1)};function x(L,N){try{return decodeURIComponent(L)}catch(B){return c.unescapeBuffer(L,N).toString()}}c.unescape=x;for(var d=new Array(256),b=0;b<256;++b)d[b]="%"+((b<16?"0":"")+b.toString(16)).toUpperCase();c.escape=function(L){typeof L!="string"&&(L+="");for(var N="",B=0,j=0;j<L.length;++j){var _=L.charCodeAt(j);if(!(_===33||_===45||_===46||_===95||_===126||_>=39&&_<=42||_>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122)){if(j-B>0&&(N+=L.slice(B,j)),_<128){B=j+1,N+=d[_];continue}if(_<2048){B=j+1,N+=d[192|_>>6]+d[128|_&63];continue}if(_<55296||_>=57344){B=j+1,N+=d[224|_>>12]+d[128|_>>6&63]+d[128|_&63];continue}++j;var H;if(j<L.length)H=L.charCodeAt(j)&1023;else throw new URIError("URI malformed");B=j+1,_=65536+((_&1023)<<10|H),N+=d[240|_>>18]+d[128|_>>12&63]+d[128|_>>6&63]+d[128|_&63]}}return B===0?L:B<L.length?N+L.slice(B):N};var A=function(L){return typeof L=="string"?L:typeof L=="number"&&isFinite(L)?""+L:typeof L=="boolean"?L?"true":"false":""};c.stringify=c.encode=function(L,N,B,j){N=N||"&",B=B||"=";var _=c.escape;if(j&&typeof j.encodeURIComponent=="function"&&(_=j.encodeURIComponent),L!==null&&typeof L=="object"){for(var H=Object.keys(L),R=H.length,X=R-1,M="",C=0;C<R;++C){var V=H[C],J=L[V],q=_(A(V))+B;if(Array.isArray(J)){for(var Q=J.length,Y=Q-1,ue=0;ue<Q;++ue)M+=q+_(A(J[ue])),ue<Y&&(M+=N);Q&&C<X&&(M+=N)}else M+=q+_(A(J)),C<X&&(M+=N)}return M}return""},c.parse=c.decode=function(L,N,B,j){N=N||"&",B=B||"=";var _={};if(typeof L!="string"||L.length===0)return _;typeof N!="string"&&(N+="");var H=B.length,R=N.length,X=1e3;j&&typeof j.maxKeys=="number"&&(X=j.maxKeys);var M=1/0;X>0&&(M=X);var C=c.unescape;j&&typeof j.decodeURIComponent=="function"&&(C=j.decodeURIComponent);for(var V=C!==x,J=[],q=0,Q=0,Y=0,ue="",te="",ne=V,ye=V,ge=0,de=0;de<L.length;++de){var le=L.charCodeAt(de);if(le===N.charCodeAt(Q)){if(++Q===R){var ae=de-Q+1;if(Y<H?q<ae&&(ue+=L.slice(q,ae)):q<ae&&(te+=L.slice(q,ae)),ne&&(ue=g(ue,C)),ye&&(te=g(te,C)),J.indexOf(ue)===-1)_[ue]=te,J[J.length]=ue;else{var De=_[ue];De instanceof Array?De[De.length]=te:_[ue]=[De,te]}if(--M==0)break;ne=ye=V,ge=0,ue=te="",q=de+1,Q=Y=0}continue}else Q=0,ye||(le===37?ge=1:ge>0&&(le>=48&&le<=57||le>=65&&le<=70||le>=97&&le<=102)?++ge==3&&(ye=!0):ge=0);if(Y<H)if(le===B.charCodeAt(Y)){if(++Y===H){var ae=de-Y+1;q<ae&&(ue+=L.slice(q,ae)),ge=0,q=de+1}continue}else Y=0,ne||(le===37?ge=1:ge>0&&(le>=48&&le<=57||le>=65&&le<=70||le>=97&&le<=102)?++ge==3&&(ne=!0):ge=0);le===43&&(Y<H?(de-q>0&&(ue+=L.slice(q,de)),ue+="%20",ne=!0):(de-q>0&&(te+=L.slice(q,de)),te+="%20",ye=!0),q=de+1)}if(M>0&&(q<L.length||Y>0))if(q<L.length&&(Y<H?ue+=L.slice(q):Q<R&&(te+=L.slice(q))),ne&&(ue=g(ue,C)),ye&&(te=g(te,C)),J.indexOf(ue)===-1)_[ue]=te,J[J.length]=ue;else{var De=_[ue];De instanceof Array?De[De.length]=te:_[ue]=[De,te]}return _};function g(L,N){try{return N(L)}catch(B){return c.unescape(L,!0)}}},29656:(h,I,o)=>{"use strict";var c;function v(){return v=Object.assign||function(_){for(var H=1;H<arguments.length;H++){var R=arguments[H];for(var X in R)Object.prototype.hasOwnProperty.call(R,X)&&(_[X]=R[X])}return _},v.apply(this,arguments)}function x(_){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(R){return typeof R}:x=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},x(_)}var d=function(){var _=function(R,X){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,C){M.__proto__=C}||function(M,C){for(var V in C)C.hasOwnProperty(V)&&(M[V]=C[V])},_(R,X)};return function(H,R){_(H,R);function X(){this.constructor=H}H.prototype=R===null?Object.create(R):(X.prototype=R.prototype,new X)}}();c={value:!0},c=I.fk=void 0;var b=o(67294),A=typeof navigator=="undefined"||o.g.PREVENT_CODEMIRROR_RENDER===!0,g;A||(g=o(4631));var L=function(){function _(){}return _.equals=function(H,R){var X=this,M=Object.keys,C=x(H),V=x(R);return H&&R&&C==="object"&&C===V?M(H).length===M(R).length&&M(H).every(function(J){return X.equals(H[J],R[J])}):H===R},_}(),N=function(){function _(H,R){this.editor=H,this.props=R}return _.prototype.delegateCursor=function(H,R,X){var M=this.editor.getDoc();X&&this.editor.focus(),R?M.setCursor(H):M.setCursor(H,null,{scroll:!1})},_.prototype.delegateScroll=function(H){this.editor.scrollTo(H.x,H.y)},_.prototype.delegateSelection=function(H,R){var X=this.editor.getDoc();X.setSelections(H),R&&this.editor.focus()},_.prototype.apply=function(H){H&&H.selection&&H.selection.ranges&&this.delegateSelection(H.selection.ranges,H.selection.focus||!1),H&&H.cursor&&this.delegateCursor(H.cursor,H.autoScroll||!1,this.editor.getOption("autofocus")||!1),H&&H.scroll&&this.delegateScroll(H.scroll)},_.prototype.applyNext=function(H,R,X){H&&H.selection&&H.selection.ranges&&R&&R.selection&&R.selection.ranges&&!L.equals(H.selection.ranges,R.selection.ranges)&&this.delegateSelection(R.selection.ranges,R.selection.focus||!1),H&&H.cursor&&R&&R.cursor&&!L.equals(H.cursor,R.cursor)&&this.delegateCursor(X.cursor||R.cursor,R.autoScroll||!1,R.autoCursor||!1),H&&H.scroll&&R&&R.scroll&&!L.equals(H.scroll,R.scroll)&&this.delegateScroll(R.scroll)},_.prototype.applyUserDefined=function(H,R){R&&R.cursor&&this.delegateCursor(R.cursor,H.autoScroll||!1,this.editor.getOption("autofocus")||!1)},_.prototype.wire=function(H){var R=this;Object.keys(H||{}).filter(function(X){return/^on/.test(X)}).forEach(function(X){switch(X){case"onBlur":R.editor.on("blur",function(M,C){R.props.onBlur(R.editor,C)});break;case"onContextMenu":{R.editor.on("contextmenu",function(M,C){R.props.onContextMenu(R.editor,C)});break}case"onCopy":{R.editor.on("copy",function(M,C){R.props.onCopy(R.editor,C)});break}case"onCursor":R.editor.on("cursorActivity",function(M){R.props.onCursor(R.editor,R.editor.getDoc().getCursor())});break;case"onCursorActivity":R.editor.on("cursorActivity",function(M){R.props.onCursorActivity(R.editor)});break;case"onCut":{R.editor.on("cut",function(M,C){R.props.onCut(R.editor,C)});break}case"onDblClick":{R.editor.on("dblclick",function(M,C){R.props.onDblClick(R.editor,C)});break}case"onDragEnter":R.editor.on("dragenter",function(M,C){R.props.onDragEnter(R.editor,C)});break;case"onDragLeave":{R.editor.on("dragleave",function(M,C){R.props.onDragLeave(R.editor,C)});break}case"onDragOver":R.editor.on("dragover",function(M,C){R.props.onDragOver(R.editor,C)});break;case"onDragStart":{R.editor.on("dragstart",function(M,C){R.props.onDragStart(R.editor,C)});break}case"onDrop":R.editor.on("drop",function(M,C){R.props.onDrop(R.editor,C)});break;case"onFocus":R.editor.on("focus",function(M,C){R.props.onFocus(R.editor,C)});break;case"onGutterClick":R.editor.on("gutterClick",function(M,C,V,J){R.props.onGutterClick(R.editor,C,V,J)});break;case"onInputRead":R.editor.on("inputRead",function(M,C){R.props.onInputRead(R.editor,C)});break;case"onKeyDown":R.editor.on("keydown",function(M,C){R.props.onKeyDown(R.editor,C)});break;case"onKeyHandled":R.editor.on("keyHandled",function(M,C,V){R.props.onKeyHandled(R.editor,C,V)});break;case"onKeyPress":R.editor.on("keypress",function(M,C){R.props.onKeyPress(R.editor,C)});break;case"onKeyUp":R.editor.on("keyup",function(M,C){R.props.onKeyUp(R.editor,C)});break;case"onMouseDown":{R.editor.on("mousedown",function(M,C){R.props.onMouseDown(R.editor,C)});break}case"onPaste":{R.editor.on("paste",function(M,C){R.props.onPaste(R.editor,C)});break}case"onRenderLine":{R.editor.on("renderLine",function(M,C,V){R.props.onRenderLine(R.editor,C,V)});break}case"onScroll":R.editor.on("scroll",function(M){R.props.onScroll(R.editor,R.editor.getScrollInfo())});break;case"onSelection":R.editor.on("beforeSelectionChange",function(M,C){R.props.onSelection(R.editor,C)});break;case"onTouchStart":{R.editor.on("touchstart",function(M,C){R.props.onTouchStart(R.editor,C)});break}case"onUpdate":R.editor.on("update",function(M){R.props.onUpdate(R.editor)});break;case"onViewportChange":R.editor.on("viewportChange",function(M,C,V){R.props.onViewportChange(R.editor,C,V)});break}})},_}(),B=function(_){d(H,_);function H(R){var X=_.call(this,R)||this;return A||(X.applied=!1,X.appliedNext=!1,X.appliedUserDefined=!1,X.deferred=null,X.emulating=!1,X.hydrated=!1,X.initCb=function(){X.props.editorDidConfigure&&X.props.editorDidConfigure(X.editor)},X.mounted=!1),X}return H.prototype.hydrate=function(R){var X=this,M=R&&R.options?R.options:{},C=v({},g.defaults,this.editor.options,M),V=Object.keys(C).some(function(J){return X.editor.getOption(J)!==C[J]});V&&Object.keys(C).forEach(function(J){M.hasOwnProperty(J)&&X.editor.getOption(J)!==C[J]&&(X.editor.setOption(J,C[J]),X.mirror.setOption(J,C[J]))}),this.hydrated||(this.deferred?this.resolveChange(R.value):this.initChange(R.value||"")),this.hydrated=!0},H.prototype.initChange=function(R){this.emulating=!0;var X=this.editor.getDoc(),M=X.lastLine(),C=X.getLine(X.lastLine()).length;X.replaceRange(R||"",{line:0,ch:0},{line:M,ch:C}),this.mirror.setValue(R),X.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},H.prototype.resolveChange=function(R){this.emulating=!0;var X=this.editor.getDoc();if(this.deferred.origin==="undo"?X.undo():this.deferred.origin==="redo"?X.redo():X.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),R&&R!==X.getValue()){var M=X.getCursor();X.setValue(R),X.setCursor(M)}this.emulating=!1,this.deferred=null},H.prototype.mirrorChange=function(R){var X=this.editor.getDoc();return R.origin==="undo"?(X.setHistory(this.mirror.getHistory()),this.mirror.undo()):R.origin==="redo"?(X.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(R.text,R.from,R.to,R.origin),this.mirror.getValue()},H.prototype.componentDidMount=function(){var R=this;A||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&g.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=g(this.ref,this.props.options),this.shared=new N(this.editor,this.props),this.mirror=g(function(){},this.props.options),this.editor.on("electricInput",function(){R.mirror.setHistory(R.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){R.mirror.setCursor(R.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(X,M){if(!R.emulating){M.cancel(),R.deferred=M;var C=R.mirrorChange(R.deferred);R.props.onBeforeChange&&R.props.onBeforeChange(R.editor,R.deferred,C)}}),this.editor.on("change",function(X,M){!R.mounted||R.props.onChange&&R.props.onChange(R.editor,M,R.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))},H.prototype.componentDidUpdate=function(R){if(!A){var X={cursor:null};this.props.value!==R.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(X.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(R,this.props,X),this.appliedNext=!0),this.shared.applyUserDefined(R,X),this.appliedUserDefined=!0}},H.prototype.componentWillUnmount=function(){A||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},H.prototype.shouldComponentUpdate=function(R,X){return!A},H.prototype.render=function(){var R=this;if(A)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(C){return R.ref=C}})},H}(b.Component);I.fk=B;var j=function(_){d(H,_);function H(R){var X=_.call(this,R)||this;return A||(X.applied=!1,X.appliedUserDefined=!1,X.continueChange=!1,X.detached=!1,X.hydrated=!1,X.initCb=function(){X.props.editorDidConfigure&&X.props.editorDidConfigure(X.editor)},X.mounted=!1,X.onBeforeChangeCb=function(){X.continueChange=!0}),X}return H.prototype.hydrate=function(R){var X=this,M=R&&R.options?R.options:{},C=v({},g.defaults,this.editor.options,M),V=Object.keys(C).some(function(Y){return X.editor.getOption(Y)!==C[Y]});if(V&&Object.keys(C).forEach(function(Y){M.hasOwnProperty(Y)&&X.editor.getOption(Y)!==C[Y]&&X.editor.setOption(Y,C[Y])}),!this.hydrated){var J=this.editor.getDoc(),q=J.lastLine(),Q=J.getLine(J.lastLine()).length;J.replaceRange(R.value||"",{line:0,ch:0},{line:q,ch:Q})}this.hydrated=!0},H.prototype.componentDidMount=function(){var R=this;A||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&g.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=g(this.ref,this.props.options),this.shared=new N(this.editor,this.props),this.editor.on("beforeChange",function(X,M){R.props.onBeforeChange&&R.props.onBeforeChange(R.editor,M,R.editor.getValue(),R.onBeforeChangeCb)}),this.editor.on("change",function(X,M){!R.mounted||!R.props.onChange||(R.props.onBeforeChange?R.continueChange&&R.props.onChange(R.editor,M,R.editor.getValue()):R.props.onChange(R.editor,M,R.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))},H.prototype.componentDidUpdate=function(R){if(this.detached&&this.props.detach===!1&&(this.detached=!1,R.editorDidAttach&&R.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,R.editorDidDetach&&R.editorDidDetach(this.editor)),!(A||this.detached)){var X={cursor:null};this.props.value!==R.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!R.autoCursor&&R.autoCursor!==void 0&&(X.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(R),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(R,X),this.appliedUserDefined=!0)}},H.prototype.componentWillUnmount=function(){A||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},H.prototype.shouldComponentUpdate=function(R,X){var M=!0;return A&&(M=!1),this.detached&&R.detach&&(M=!1),M},H.prototype.render=function(){var R=this;if(A)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(C){return R.ref=C}})},H}(b.Component);c=j},35666:h=>{var I=function(o){"use strict";var c=Object.prototype,v=c.hasOwnProperty,x,d=typeof Symbol=="function"?Symbol:{},b=d.iterator||"@@iterator",A=d.asyncIterator||"@@asyncIterator",g=d.toStringTag||"@@toStringTag";function L(Ve,Le,ke){return Object.defineProperty(Ve,Le,{value:ke,enumerable:!0,configurable:!0,writable:!0}),Ve[Le]}try{L({},"")}catch(Ve){L=function(Le,ke,rt){return Le[ke]=rt}}function N(Ve,Le,ke,rt){var Qe=Le&&Le.prototype instanceof M?Le:M,Je=Object.create(Qe.prototype),ut=new le(rt||[]);return Je._invoke=ne(Ve,ke,ut),Je}o.wrap=N;function B(Ve,Le,ke){try{return{type:"normal",arg:Ve.call(Le,ke)}}catch(rt){return{type:"throw",arg:rt}}}var j="suspendedStart",_="suspendedYield",H="executing",R="completed",X={};function M(){}function C(){}function V(){}var J={};J[b]=function(){return this};var q=Object.getPrototypeOf,Q=q&&q(q(ae([])));Q&&Q!==c&&v.call(Q,b)&&(J=Q);var Y=V.prototype=M.prototype=Object.create(J);C.prototype=Y.constructor=V,V.constructor=C,C.displayName=L(V,g,"GeneratorFunction");function ue(Ve){["next","throw","return"].forEach(function(Le){L(Ve,Le,function(ke){return this._invoke(Le,ke)})})}o.isGeneratorFunction=function(Ve){var Le=typeof Ve=="function"&&Ve.constructor;return Le?Le===C||(Le.displayName||Le.name)==="GeneratorFunction":!1},o.mark=function(Ve){return Object.setPrototypeOf?Object.setPrototypeOf(Ve,V):(Ve.__proto__=V,L(Ve,g,"GeneratorFunction")),Ve.prototype=Object.create(Y),Ve},o.awrap=function(Ve){return{__await:Ve}};function te(Ve,Le){function ke(Je,ut,pt,mt){var qe=B(Ve[Je],Ve,ut);if(qe.type==="throw")mt(qe.arg);else{var lt=qe.arg,gt=lt.value;return gt&&typeof gt=="object"&&v.call(gt,"__await")?Le.resolve(gt.__await).then(function(xt){ke("next",xt,pt,mt)},function(xt){ke("throw",xt,pt,mt)}):Le.resolve(gt).then(function(xt){lt.value=xt,pt(lt)},function(xt){return ke("throw",xt,pt,mt)})}}var rt;function Qe(Je,ut){function pt(){return new Le(function(mt,qe){ke(Je,ut,mt,qe)})}return rt=rt?rt.then(pt,pt):pt()}this._invoke=Qe}ue(te.prototype),te.prototype[A]=function(){return this},o.AsyncIterator=te,o.async=function(Ve,Le,ke,rt,Qe){Qe===void 0&&(Qe=Promise);var Je=new te(N(Ve,Le,ke,rt),Qe);return o.isGeneratorFunction(Le)?Je:Je.next().then(function(ut){return ut.done?ut.value:Je.next()})};function ne(Ve,Le,ke){var rt=j;return function(Je,ut){if(rt===H)throw new Error("Generator is already running");if(rt===R){if(Je==="throw")throw ut;return De()}for(ke.method=Je,ke.arg=ut;;){var pt=ke.delegate;if(pt){var mt=ye(pt,ke);if(mt){if(mt===X)continue;return mt}}if(ke.method==="next")ke.sent=ke._sent=ke.arg;else if(ke.method==="throw"){if(rt===j)throw rt=R,ke.arg;ke.dispatchException(ke.arg)}else ke.method==="return"&&ke.abrupt("return",ke.arg);rt=H;var qe=B(Ve,Le,ke);if(qe.type==="normal"){if(rt=ke.done?R:_,qe.arg===X)continue;return{value:qe.arg,done:ke.done}}else qe.type==="throw"&&(rt=R,ke.method="throw",ke.arg=qe.arg)}}}function ye(Ve,Le){var ke=Ve.iterator[Le.method];if(ke===x){if(Le.delegate=null,Le.method==="throw"){if(Ve.iterator.return&&(Le.method="return",Le.arg=x,ye(Ve,Le),Le.method==="throw"))return X;Le.method="throw",Le.arg=new TypeError("The iterator does not provide a 'throw' method")}return X}var rt=B(ke,Ve.iterator,Le.arg);if(rt.type==="throw")return Le.method="throw",Le.arg=rt.arg,Le.delegate=null,X;var Qe=rt.arg;if(!Qe)return Le.method="throw",Le.arg=new TypeError("iterator result is not an object"),Le.delegate=null,X;if(Qe.done)Le[Ve.resultName]=Qe.value,Le.next=Ve.nextLoc,Le.method!=="return"&&(Le.method="next",Le.arg=x);else return Qe;return Le.delegate=null,X}ue(Y),L(Y,g,"Generator"),Y[b]=function(){return this},Y.toString=function(){return"[object Generator]"};function ge(Ve){var Le={tryLoc:Ve[0]};1 in Ve&&(Le.catchLoc=Ve[1]),2 in Ve&&(Le.finallyLoc=Ve[2],Le.afterLoc=Ve[3]),this.tryEntries.push(Le)}function de(Ve){var Le=Ve.completion||{};Le.type="normal",delete Le.arg,Ve.completion=Le}function le(Ve){this.tryEntries=[{tryLoc:"root"}],Ve.forEach(ge,this),this.reset(!0)}o.keys=function(Ve){var Le=[];for(var ke in Ve)Le.push(ke);return Le.reverse(),function rt(){for(;Le.length;){var Qe=Le.pop();if(Qe in Ve)return rt.value=Qe,rt.done=!1,rt}return rt.done=!0,rt}};function ae(Ve){if(Ve){var Le=Ve[b];if(Le)return Le.call(Ve);if(typeof Ve.next=="function")return Ve;if(!isNaN(Ve.length)){var ke=-1,rt=function Qe(){for(;++ke<Ve.length;)if(v.call(Ve,ke))return Qe.value=Ve[ke],Qe.done=!1,Qe;return Qe.value=x,Qe.done=!0,Qe};return rt.next=rt}}return{next:De}}o.values=ae;function De(){return{value:x,done:!0}}return le.prototype={constructor:le,reset:function(Ve){if(this.prev=0,this.next=0,this.sent=this._sent=x,this.done=!1,this.delegate=null,this.method="next",this.arg=x,this.tryEntries.forEach(de),!Ve)for(var Le in this)Le.charAt(0)==="t"&&v.call(this,Le)&&!isNaN(+Le.slice(1))&&(this[Le]=x)},stop:function(){this.done=!0;var Ve=this.tryEntries[0],Le=Ve.completion;if(Le.type==="throw")throw Le.arg;return this.rval},dispatchException:function(Ve){if(this.done)throw Ve;var Le=this;function ke(mt,qe){return Je.type="throw",Je.arg=Ve,Le.next=mt,qe&&(Le.method="next",Le.arg=x),!!qe}for(var rt=this.tryEntries.length-1;rt>=0;--rt){var Qe=this.tryEntries[rt],Je=Qe.completion;if(Qe.tryLoc==="root")return ke("end");if(Qe.tryLoc<=this.prev){var ut=v.call(Qe,"catchLoc"),pt=v.call(Qe,"finallyLoc");if(ut&&pt){if(this.prev<Qe.catchLoc)return ke(Qe.catchLoc,!0);if(this.prev<Qe.finallyLoc)return ke(Qe.finallyLoc)}else if(ut){if(this.prev<Qe.catchLoc)return ke(Qe.catchLoc,!0)}else if(pt){if(this.prev<Qe.finallyLoc)return ke(Qe.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(Ve,Le){for(var ke=this.tryEntries.length-1;ke>=0;--ke){var rt=this.tryEntries[ke];if(rt.tryLoc<=this.prev&&v.call(rt,"finallyLoc")&&this.prev<rt.finallyLoc){var Qe=rt;break}}Qe&&(Ve==="break"||Ve==="continue")&&Qe.tryLoc<=Le&&Le<=Qe.finallyLoc&&(Qe=null);var Je=Qe?Qe.completion:{};return Je.type=Ve,Je.arg=Le,Qe?(this.method="next",this.next=Qe.finallyLoc,X):this.complete(Je)},complete:function(Ve,Le){if(Ve.type==="throw")throw Ve.arg;return Ve.type==="break"||Ve.type==="continue"?this.next=Ve.arg:Ve.type==="return"?(this.rval=this.arg=Ve.arg,this.method="return",this.next="end"):Ve.type==="normal"&&Le&&(this.next=Le),X},finish:function(Ve){for(var Le=this.tryEntries.length-1;Le>=0;--Le){var ke=this.tryEntries[Le];if(ke.finallyLoc===Ve)return this.complete(ke.completion,ke.afterLoc),de(ke),X}},catch:function(Ve){for(var Le=this.tryEntries.length-1;Le>=0;--Le){var ke=this.tryEntries[Le];if(ke.tryLoc===Ve){var rt=ke.completion;if(rt.type==="throw"){var Qe=rt.arg;de(ke)}return Qe}}throw new Error("illegal catch attempt")},delegateYield:function(Ve,Le,ke){return this.delegate={iterator:ae(Ve),resultName:Le,nextLoc:ke},this.method==="next"&&(this.arg=x),X}},o}(h.exports);try{regeneratorRuntime=I}catch(o){Function("r","regeneratorRuntime = r")(I)}},37478:(h,I,o)=>{"use strict";var c=o(40210),v=o(21924),x=o(70631),d=c("%TypeError%"),b=c("%WeakMap%",!0),A=c("%Map%",!0),g=v("WeakMap.prototype.get",!0),L=v("WeakMap.prototype.set",!0),N=v("WeakMap.prototype.has",!0),B=v("Map.prototype.get",!0),j=v("Map.prototype.set",!0),_=v("Map.prototype.has",!0),H=function(C,V){for(var J=C,q;(q=J.next)!==null;J=q)if(q.key===V)return J.next=q.next,q.next=C.next,C.next=q,q},R=function(C,V){var J=H(C,V);return J&&J.value},X=function(C,V,J){var q=H(C,V);q?q.value=J:C.next={key:V,next:C.next,value:J}},M=function(C,V){return!!H(C,V)};h.exports=function(){var V,J,q,Q={assert:function(Y){if(!Q.has(Y))throw new d("Side channel does not contain "+x(Y))},get:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return g(V,Y)}else if(A){if(J)return B(J,Y)}else if(q)return R(q,Y)},has:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return N(V,Y)}else if(A){if(J)return _(J,Y)}else if(q)return M(q,Y);return!1},set:function(Y,ue){b&&Y&&(typeof Y=="object"||typeof Y=="function")?(V||(V=new b),L(V,Y,ue)):A?(J||(J=new A),j(J,Y,ue)):(q||(q={key:{},next:null}),X(q,Y,ue))}};return Q}},13837:(h,I,o)=>{var c=o(93379),v=o(17438);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},75019:(h,I,o)=>{var c=o(93379),v=o(58635);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},86081:(h,I,o)=>{var c=o(93379),v=o(45272);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},44254:(h,I,o)=>{var c=o(93379),v=o(40961);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},88996:(h,I,o)=>{"use strict";/*!
|
|
510
|
-
* The buffer module from node.js, for the browser.
|
|
511
|
-
*
|
|
512
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
513
|
-
* @license MIT
|
|
514
|
-
*/const c=o(79742),v=o(80645),x=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;I.Buffer=g,I.SlowBuffer=V,I.INSPECT_MAX_BYTES=50;const d=2147483647;I.kMaxLength=d,g.TYPED_ARRAY_SUPPORT=b(),!g.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function b(){try{const W=new Uint8Array(1),O={foo:function(){return 42}};return Object.setPrototypeOf(O,Uint8Array.prototype),Object.setPrototypeOf(W,O),W.foo()===42}catch(W){return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(!!g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(!!g.isBuffer(this))return this.byteOffset}});function A(W){if(W>d)throw new RangeError('The value "'+W+'" is invalid for option "size"');const O=new Uint8Array(W);return Object.setPrototypeOf(O,g.prototype),O}function g(W,O,P){if(typeof W=="number"){if(typeof O=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return j(W)}return L(W,O,P)}g.poolSize=8192;function L(W,O,P){if(typeof W=="string")return _(W,O);if(ArrayBuffer.isView(W))return R(W);if(W==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W);if(Re(W,ArrayBuffer)||W&&Re(W.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Re(W,SharedArrayBuffer)||W&&Re(W.buffer,SharedArrayBuffer)))return X(W,O,P);if(typeof W=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ie=W.valueOf&&W.valueOf();if(ie!=null&&ie!==W)return g.from(ie,O,P);const D=M(W);if(D)return D;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof W[Symbol.toPrimitive]=="function")return g.from(W[Symbol.toPrimitive]("string"),O,P);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W)}g.from=function(W,O,P){return L(W,O,P)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function N(W){if(typeof W!="number")throw new TypeError('"size" argument must be of type number');if(W<0)throw new RangeError('The value "'+W+'" is invalid for option "size"')}function B(W,O,P){return N(W),W<=0?A(W):O!==void 0?typeof P=="string"?A(W).fill(O,P):A(W).fill(O):A(W)}g.alloc=function(W,O,P){return B(W,O,P)};function j(W){return N(W),A(W<0?0:C(W)|0)}g.allocUnsafe=function(W){return j(W)},g.allocUnsafeSlow=function(W){return j(W)};function _(W,O){if((typeof O!="string"||O==="")&&(O="utf8"),!g.isEncoding(O))throw new TypeError("Unknown encoding: "+O);const P=J(W,O)|0;let ie=A(P);const D=ie.write(W,O);return D!==P&&(ie=ie.slice(0,D)),ie}function H(W){const O=W.length<0?0:C(W.length)|0,P=A(O);for(let ie=0;ie<O;ie+=1)P[ie]=W[ie]&255;return P}function R(W){if(Re(W,Uint8Array)){const O=new Uint8Array(W);return X(O.buffer,O.byteOffset,O.byteLength)}return H(W)}function X(W,O,P){if(O<0||W.byteLength<O)throw new RangeError('"offset" is outside of buffer bounds');if(W.byteLength<O+(P||0))throw new RangeError('"length" is outside of buffer bounds');let ie;return O===void 0&&P===void 0?ie=new Uint8Array(W):P===void 0?ie=new Uint8Array(W,O):ie=new Uint8Array(W,O,P),Object.setPrototypeOf(ie,g.prototype),ie}function M(W){if(g.isBuffer(W)){const O=C(W.length)|0,P=A(O);return P.length===0||W.copy(P,0,0,O),P}if(W.length!==void 0)return typeof W.length!="number"||be(W.length)?A(0):H(W);if(W.type==="Buffer"&&Array.isArray(W.data))return H(W.data)}function C(W){if(W>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return W|0}function V(W){return+W!=W&&(W=0),g.alloc(+W)}g.isBuffer=function(O){return O!=null&&O._isBuffer===!0&&O!==g.prototype},g.compare=function(O,P){if(Re(O,Uint8Array)&&(O=g.from(O,O.offset,O.byteLength)),Re(P,Uint8Array)&&(P=g.from(P,P.offset,P.byteLength)),!g.isBuffer(O)||!g.isBuffer(P))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(O===P)return 0;let ie=O.length,D=P.length;for(let ee=0,fe=Math.min(ie,D);ee<fe;++ee)if(O[ee]!==P[ee]){ie=O[ee],D=P[ee];break}return ie<D?-1:D<ie?1:0},g.isEncoding=function(O){switch(String(O).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(O,P){if(!Array.isArray(O))throw new TypeError('"list" argument must be an Array of Buffers');if(O.length===0)return g.alloc(0);let ie;if(P===void 0)for(P=0,ie=0;ie<O.length;++ie)P+=O[ie].length;const D=g.allocUnsafe(P);let ee=0;for(ie=0;ie<O.length;++ie){let fe=O[ie];if(Re(fe,Uint8Array))ee+fe.length>D.length?(g.isBuffer(fe)||(fe=g.from(fe)),fe.copy(D,ee)):Uint8Array.prototype.set.call(D,fe,ee);else if(g.isBuffer(fe))fe.copy(D,ee);else throw new TypeError('"list" argument must be an Array of Buffers');ee+=fe.length}return D};function J(W,O){if(g.isBuffer(W))return W.length;if(ArrayBuffer.isView(W)||Re(W,ArrayBuffer))return W.byteLength;if(typeof W!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof W);const P=W.length,ie=arguments.length>2&&arguments[2]===!0;if(!ie&&P===0)return 0;let D=!1;for(;;)switch(O){case"ascii":case"latin1":case"binary":return P;case"utf8":case"utf-8":return Lt(W).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P*2;case"hex":return P>>>1;case"base64":return K(W).length;default:if(D)return ie?-1:Lt(W).length;O=(""+O).toLowerCase(),D=!0}}g.byteLength=J;function q(W,O,P){let ie=!1;if((O===void 0||O<0)&&(O=0),O>this.length||((P===void 0||P>this.length)&&(P=this.length),P<=0)||(P>>>=0,O>>>=0,P<=O))return"";for(W||(W="utf8");;)switch(W){case"hex":return rt(this,O,P);case"utf8":case"utf-8":return ae(this,O,P);case"ascii":return Le(this,O,P);case"latin1":case"binary":return ke(this,O,P);case"base64":return le(this,O,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,O,P);default:if(ie)throw new TypeError("Unknown encoding: "+W);W=(W+"").toLowerCase(),ie=!0}}g.prototype._isBuffer=!0;function Q(W,O,P){const ie=W[O];W[O]=W[P],W[P]=ie}g.prototype.swap16=function(){const O=this.length;if(O%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let P=0;P<O;P+=2)Q(this,P,P+1);return this},g.prototype.swap32=function(){const O=this.length;if(O%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let P=0;P<O;P+=4)Q(this,P,P+3),Q(this,P+1,P+2);return this},g.prototype.swap64=function(){const O=this.length;if(O%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let P=0;P<O;P+=8)Q(this,P,P+7),Q(this,P+1,P+6),Q(this,P+2,P+5),Q(this,P+3,P+4);return this},g.prototype.toString=function(){const O=this.length;return O===0?"":arguments.length===0?ae(this,0,O):q.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(O){if(!g.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O?!0:g.compare(this,O)===0},g.prototype.inspect=function(){let O="";const P=I.INSPECT_MAX_BYTES;return O=this.toString("hex",0,P).replace(/(.{2})/g,"$1 ").trim(),this.length>P&&(O+=" ... "),"<Buffer "+O+">"},x&&(g.prototype[x]=g.prototype.inspect),g.prototype.compare=function(O,P,ie,D,ee){if(Re(O,Uint8Array)&&(O=g.from(O,O.offset,O.byteLength)),!g.isBuffer(O))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof O);if(P===void 0&&(P=0),ie===void 0&&(ie=O?O.length:0),D===void 0&&(D=0),ee===void 0&&(ee=this.length),P<0||ie>O.length||D<0||ee>this.length)throw new RangeError("out of range index");if(D>=ee&&P>=ie)return 0;if(D>=ee)return-1;if(P>=ie)return 1;if(P>>>=0,ie>>>=0,D>>>=0,ee>>>=0,this===O)return 0;let fe=ee-D,Oe=ie-P;const Pe=Math.min(fe,Oe),Te=this.slice(D,ee),Ge=O.slice(P,ie);for(let He=0;He<Pe;++He)if(Te[He]!==Ge[He]){fe=Te[He],Oe=Ge[He];break}return fe<Oe?-1:Oe<fe?1:0};function Y(W,O,P,ie,D){if(W.length===0)return-1;if(typeof P=="string"?(ie=P,P=0):P>2147483647?P=2147483647:P<-2147483648&&(P=-2147483648),P=+P,be(P)&&(P=D?0:W.length-1),P<0&&(P=W.length+P),P>=W.length){if(D)return-1;P=W.length-1}else if(P<0)if(D)P=0;else return-1;if(typeof O=="string"&&(O=g.from(O,ie)),g.isBuffer(O))return O.length===0?-1:ue(W,O,P,ie,D);if(typeof O=="number")return O=O&255,typeof Uint8Array.prototype.indexOf=="function"?D?Uint8Array.prototype.indexOf.call(W,O,P):Uint8Array.prototype.lastIndexOf.call(W,O,P):ue(W,[O],P,ie,D);throw new TypeError("val must be string, number or Buffer")}function ue(W,O,P,ie,D){let ee=1,fe=W.length,Oe=O.length;if(ie!==void 0&&(ie=String(ie).toLowerCase(),ie==="ucs2"||ie==="ucs-2"||ie==="utf16le"||ie==="utf-16le")){if(W.length<2||O.length<2)return-1;ee=2,fe/=2,Oe/=2,P/=2}function Pe(Ge,He){return ee===1?Ge[He]:Ge.readUInt16BE(He*ee)}let Te;if(D){let Ge=-1;for(Te=P;Te<fe;Te++)if(Pe(W,Te)===Pe(O,Ge===-1?0:Te-Ge)){if(Ge===-1&&(Ge=Te),Te-Ge+1===Oe)return Ge*ee}else Ge!==-1&&(Te-=Te-Ge),Ge=-1}else for(P+Oe>fe&&(P=fe-Oe),Te=P;Te>=0;Te--){let Ge=!0;for(let He=0;He<Oe;He++)if(Pe(W,Te+He)!==Pe(O,He)){Ge=!1;break}if(Ge)return Te}return-1}g.prototype.includes=function(O,P,ie){return this.indexOf(O,P,ie)!==-1},g.prototype.indexOf=function(O,P,ie){return Y(this,O,P,ie,!0)},g.prototype.lastIndexOf=function(O,P,ie){return Y(this,O,P,ie,!1)};function te(W,O,P,ie){P=Number(P)||0;const D=W.length-P;ie?(ie=Number(ie),ie>D&&(ie=D)):ie=D;const ee=O.length;ie>ee/2&&(ie=ee/2);let fe;for(fe=0;fe<ie;++fe){const Oe=parseInt(O.substr(fe*2,2),16);if(be(Oe))return fe;W[P+fe]=Oe}return fe}function ne(W,O,P,ie){return we(Lt(O,W.length-P),W,P,ie)}function ye(W,O,P,ie){return we(pe(O),W,P,ie)}function ge(W,O,P,ie){return we(K(O),W,P,ie)}function de(W,O,P,ie){return we(G(O,W.length-P),W,P,ie)}g.prototype.write=function(O,P,ie,D){if(P===void 0)D="utf8",ie=this.length,P=0;else if(ie===void 0&&typeof P=="string")D=P,ie=this.length,P=0;else if(isFinite(P))P=P>>>0,isFinite(ie)?(ie=ie>>>0,D===void 0&&(D="utf8")):(D=ie,ie=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ee=this.length-P;if((ie===void 0||ie>ee)&&(ie=ee),O.length>0&&(ie<0||P<0)||P>this.length)throw new RangeError("Attempt to write outside buffer bounds");D||(D="utf8");let fe=!1;for(;;)switch(D){case"hex":return te(this,O,P,ie);case"utf8":case"utf-8":return ne(this,O,P,ie);case"ascii":case"latin1":case"binary":return ye(this,O,P,ie);case"base64":return ge(this,O,P,ie);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,O,P,ie);default:if(fe)throw new TypeError("Unknown encoding: "+D);D=(""+D).toLowerCase(),fe=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function le(W,O,P){return O===0&&P===W.length?c.fromByteArray(W):c.fromByteArray(W.slice(O,P))}function ae(W,O,P){P=Math.min(W.length,P);const ie=[];let D=O;for(;D<P;){const ee=W[D];let fe=null,Oe=ee>239?4:ee>223?3:ee>191?2:1;if(D+Oe<=P){let Pe,Te,Ge,He;switch(Oe){case 1:ee<128&&(fe=ee);break;case 2:Pe=W[D+1],(Pe&192)==128&&(He=(ee&31)<<6|Pe&63,He>127&&(fe=He));break;case 3:Pe=W[D+1],Te=W[D+2],(Pe&192)==128&&(Te&192)==128&&(He=(ee&15)<<12|(Pe&63)<<6|Te&63,He>2047&&(He<55296||He>57343)&&(fe=He));break;case 4:Pe=W[D+1],Te=W[D+2],Ge=W[D+3],(Pe&192)==128&&(Te&192)==128&&(Ge&192)==128&&(He=(ee&15)<<18|(Pe&63)<<12|(Te&63)<<6|Ge&63,He>65535&&He<1114112&&(fe=He))}}fe===null?(fe=65533,Oe=1):fe>65535&&(fe-=65536,ie.push(fe>>>10&1023|55296),fe=56320|fe&1023),ie.push(fe),D+=Oe}return Ve(ie)}const De=4096;function Ve(W){const O=W.length;if(O<=De)return String.fromCharCode.apply(String,W);let P="",ie=0;for(;ie<O;)P+=String.fromCharCode.apply(String,W.slice(ie,ie+=De));return P}function Le(W,O,P){let ie="";P=Math.min(W.length,P);for(let D=O;D<P;++D)ie+=String.fromCharCode(W[D]&127);return ie}function ke(W,O,P){let ie="";P=Math.min(W.length,P);for(let D=O;D<P;++D)ie+=String.fromCharCode(W[D]);return ie}function rt(W,O,P){const ie=W.length;(!O||O<0)&&(O=0),(!P||P<0||P>ie)&&(P=ie);let D="";for(let ee=O;ee<P;++ee)D+=Ae[W[ee]];return D}function Qe(W,O,P){const ie=W.slice(O,P);let D="";for(let ee=0;ee<ie.length-1;ee+=2)D+=String.fromCharCode(ie[ee]+ie[ee+1]*256);return D}g.prototype.slice=function(O,P){const ie=this.length;O=~~O,P=P===void 0?ie:~~P,O<0?(O+=ie,O<0&&(O=0)):O>ie&&(O=ie),P<0?(P+=ie,P<0&&(P=0)):P>ie&&(P=ie),P<O&&(P=O);const D=this.subarray(O,P);return Object.setPrototypeOf(D,g.prototype),D};function Je(W,O,P){if(W%1!=0||W<0)throw new RangeError("offset is not uint");if(W+O>P)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(O,P,ie){O=O>>>0,P=P>>>0,ie||Je(O,P,this.length);let D=this[O],ee=1,fe=0;for(;++fe<P&&(ee*=256);)D+=this[O+fe]*ee;return D},g.prototype.readUintBE=g.prototype.readUIntBE=function(O,P,ie){O=O>>>0,P=P>>>0,ie||Je(O,P,this.length);let D=this[O+--P],ee=1;for(;P>0&&(ee*=256);)D+=this[O+--P]*ee;return D},g.prototype.readUint8=g.prototype.readUInt8=function(O,P){return O=O>>>0,P||Je(O,1,this.length),this[O]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(O,P){return O=O>>>0,P||Je(O,2,this.length),this[O]|this[O+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(O,P){return O=O>>>0,P||Je(O,2,this.length),this[O]<<8|this[O+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(O,P){return O=O>>>0,P||Je(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+this[O+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(O,P){return O=O>>>0,P||Je(O,4,this.length),this[O]*16777216+(this[O+1]<<16|this[O+2]<<8|this[O+3])},g.prototype.readBigUInt64LE=T(function(O){O=O>>>0,jt(O,"offset");const P=this[O],ie=this[O+7];(P===void 0||ie===void 0)&&Nt(O,this.length-8);const D=P+this[++O]*gr(2,8)+this[++O]*gr(2,16)+this[++O]*gr(2,24),ee=this[++O]+this[++O]*gr(2,8)+this[++O]*gr(2,16)+ie*gr(2,24);return BigInt(D)+(BigInt(ee)<<BigInt(32))}),g.prototype.readBigUInt64BE=T(function(O){O=O>>>0,jt(O,"offset");const P=this[O],ie=this[O+7];(P===void 0||ie===void 0)&&Nt(O,this.length-8);const D=P*gr(2,24)+this[++O]*gr(2,16)+this[++O]*gr(2,8)+this[++O],ee=this[++O]*gr(2,24)+this[++O]*gr(2,16)+this[++O]*gr(2,8)+ie;return(BigInt(D)<<BigInt(32))+BigInt(ee)}),g.prototype.readIntLE=function(O,P,ie){O=O>>>0,P=P>>>0,ie||Je(O,P,this.length);let D=this[O],ee=1,fe=0;for(;++fe<P&&(ee*=256);)D+=this[O+fe]*ee;return ee*=128,D>=ee&&(D-=Math.pow(2,8*P)),D},g.prototype.readIntBE=function(O,P,ie){O=O>>>0,P=P>>>0,ie||Je(O,P,this.length);let D=P,ee=1,fe=this[O+--D];for(;D>0&&(ee*=256);)fe+=this[O+--D]*ee;return ee*=128,fe>=ee&&(fe-=Math.pow(2,8*P)),fe},g.prototype.readInt8=function(O,P){return O=O>>>0,P||Je(O,1,this.length),this[O]&128?(255-this[O]+1)*-1:this[O]},g.prototype.readInt16LE=function(O,P){O=O>>>0,P||Je(O,2,this.length);const ie=this[O]|this[O+1]<<8;return ie&32768?ie|4294901760:ie},g.prototype.readInt16BE=function(O,P){O=O>>>0,P||Je(O,2,this.length);const ie=this[O+1]|this[O]<<8;return ie&32768?ie|4294901760:ie},g.prototype.readInt32LE=function(O,P){return O=O>>>0,P||Je(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},g.prototype.readInt32BE=function(O,P){return O=O>>>0,P||Je(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},g.prototype.readBigInt64LE=T(function(O){O=O>>>0,jt(O,"offset");const P=this[O],ie=this[O+7];(P===void 0||ie===void 0)&&Nt(O,this.length-8);const D=this[O+4]+this[O+5]*gr(2,8)+this[O+6]*gr(2,16)+(ie<<24);return(BigInt(D)<<BigInt(32))+BigInt(P+this[++O]*gr(2,8)+this[++O]*gr(2,16)+this[++O]*gr(2,24))}),g.prototype.readBigInt64BE=T(function(O){O=O>>>0,jt(O,"offset");const P=this[O],ie=this[O+7];(P===void 0||ie===void 0)&&Nt(O,this.length-8);const D=(P<<24)+this[++O]*gr(2,16)+this[++O]*gr(2,8)+this[++O];return(BigInt(D)<<BigInt(32))+BigInt(this[++O]*gr(2,24)+this[++O]*gr(2,16)+this[++O]*gr(2,8)+ie)}),g.prototype.readFloatLE=function(O,P){return O=O>>>0,P||Je(O,4,this.length),v.read(this,O,!0,23,4)},g.prototype.readFloatBE=function(O,P){return O=O>>>0,P||Je(O,4,this.length),v.read(this,O,!1,23,4)},g.prototype.readDoubleLE=function(O,P){return O=O>>>0,P||Je(O,8,this.length),v.read(this,O,!0,52,8)},g.prototype.readDoubleBE=function(O,P){return O=O>>>0,P||Je(O,8,this.length),v.read(this,O,!1,52,8)};function ut(W,O,P,ie,D,ee){if(!g.isBuffer(W))throw new TypeError('"buffer" argument must be a Buffer instance');if(O>D||O<ee)throw new RangeError('"value" argument is out of bounds');if(P+ie>W.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(O,P,ie,D){if(O=+O,P=P>>>0,ie=ie>>>0,!D){const Oe=Math.pow(2,8*ie)-1;ut(this,O,P,ie,Oe,0)}let ee=1,fe=0;for(this[P]=O&255;++fe<ie&&(ee*=256);)this[P+fe]=O/ee&255;return P+ie},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(O,P,ie,D){if(O=+O,P=P>>>0,ie=ie>>>0,!D){const Oe=Math.pow(2,8*ie)-1;ut(this,O,P,ie,Oe,0)}let ee=ie-1,fe=1;for(this[P+ee]=O&255;--ee>=0&&(fe*=256);)this[P+ee]=O/fe&255;return P+ie},g.prototype.writeUint8=g.prototype.writeUInt8=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,1,255,0),this[P]=O&255,P+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,2,65535,0),this[P]=O&255,this[P+1]=O>>>8,P+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,2,65535,0),this[P]=O>>>8,this[P+1]=O&255,P+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,4,4294967295,0),this[P+3]=O>>>24,this[P+2]=O>>>16,this[P+1]=O>>>8,this[P]=O&255,P+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,4,4294967295,0),this[P]=O>>>24,this[P+1]=O>>>16,this[P+2]=O>>>8,this[P+3]=O&255,P+4};function pt(W,O,P,ie,D){At(O,ie,D,W,P,7);let ee=Number(O&BigInt(4294967295));W[P++]=ee,ee=ee>>8,W[P++]=ee,ee=ee>>8,W[P++]=ee,ee=ee>>8,W[P++]=ee;let fe=Number(O>>BigInt(32)&BigInt(4294967295));return W[P++]=fe,fe=fe>>8,W[P++]=fe,fe=fe>>8,W[P++]=fe,fe=fe>>8,W[P++]=fe,P}function mt(W,O,P,ie,D){At(O,ie,D,W,P,7);let ee=Number(O&BigInt(4294967295));W[P+7]=ee,ee=ee>>8,W[P+6]=ee,ee=ee>>8,W[P+5]=ee,ee=ee>>8,W[P+4]=ee;let fe=Number(O>>BigInt(32)&BigInt(4294967295));return W[P+3]=fe,fe=fe>>8,W[P+2]=fe,fe=fe>>8,W[P+1]=fe,fe=fe>>8,W[P]=fe,P+8}g.prototype.writeBigUInt64LE=T(function(O,P=0){return pt(this,O,P,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=T(function(O,P=0){return mt(this,O,P,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(O,P,ie,D){if(O=+O,P=P>>>0,!D){const Pe=Math.pow(2,8*ie-1);ut(this,O,P,ie,Pe-1,-Pe)}let ee=0,fe=1,Oe=0;for(this[P]=O&255;++ee<ie&&(fe*=256);)O<0&&Oe===0&&this[P+ee-1]!==0&&(Oe=1),this[P+ee]=(O/fe>>0)-Oe&255;return P+ie},g.prototype.writeIntBE=function(O,P,ie,D){if(O=+O,P=P>>>0,!D){const Pe=Math.pow(2,8*ie-1);ut(this,O,P,ie,Pe-1,-Pe)}let ee=ie-1,fe=1,Oe=0;for(this[P+ee]=O&255;--ee>=0&&(fe*=256);)O<0&&Oe===0&&this[P+ee+1]!==0&&(Oe=1),this[P+ee]=(O/fe>>0)-Oe&255;return P+ie},g.prototype.writeInt8=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,1,127,-128),O<0&&(O=255+O+1),this[P]=O&255,P+1},g.prototype.writeInt16LE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,2,32767,-32768),this[P]=O&255,this[P+1]=O>>>8,P+2},g.prototype.writeInt16BE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,2,32767,-32768),this[P]=O>>>8,this[P+1]=O&255,P+2},g.prototype.writeInt32LE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,4,2147483647,-2147483648),this[P]=O&255,this[P+1]=O>>>8,this[P+2]=O>>>16,this[P+3]=O>>>24,P+4},g.prototype.writeInt32BE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),this[P]=O>>>24,this[P+1]=O>>>16,this[P+2]=O>>>8,this[P+3]=O&255,P+4},g.prototype.writeBigInt64LE=T(function(O,P=0){return pt(this,O,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=T(function(O,P=0){return mt(this,O,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function qe(W,O,P,ie,D,ee){if(P+ie>W.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("Index out of range")}function lt(W,O,P,ie,D){return O=+O,P=P>>>0,D||qe(W,O,P,4,34028234663852886e22,-34028234663852886e22),v.write(W,O,P,ie,23,4),P+4}g.prototype.writeFloatLE=function(O,P,ie){return lt(this,O,P,!0,ie)},g.prototype.writeFloatBE=function(O,P,ie){return lt(this,O,P,!1,ie)};function gt(W,O,P,ie,D){return O=+O,P=P>>>0,D||qe(W,O,P,8,17976931348623157e292,-17976931348623157e292),v.write(W,O,P,ie,52,8),P+8}g.prototype.writeDoubleLE=function(O,P,ie){return gt(this,O,P,!0,ie)},g.prototype.writeDoubleBE=function(O,P,ie){return gt(this,O,P,!1,ie)},g.prototype.copy=function(O,P,ie,D){if(!g.isBuffer(O))throw new TypeError("argument should be a Buffer");if(ie||(ie=0),!D&&D!==0&&(D=this.length),P>=O.length&&(P=O.length),P||(P=0),D>0&&D<ie&&(D=ie),D===ie||O.length===0||this.length===0)return 0;if(P<0)throw new RangeError("targetStart out of bounds");if(ie<0||ie>=this.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("sourceEnd out of bounds");D>this.length&&(D=this.length),O.length-P<D-ie&&(D=O.length-P+ie);const ee=D-ie;return this===O&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(P,ie,D):Uint8Array.prototype.set.call(O,this.subarray(ie,D),P),ee},g.prototype.fill=function(O,P,ie,D){if(typeof O=="string"){if(typeof P=="string"?(D=P,P=0,ie=this.length):typeof ie=="string"&&(D=ie,ie=this.length),D!==void 0&&typeof D!="string")throw new TypeError("encoding must be a string");if(typeof D=="string"&&!g.isEncoding(D))throw new TypeError("Unknown encoding: "+D);if(O.length===1){const fe=O.charCodeAt(0);(D==="utf8"&&fe<128||D==="latin1")&&(O=fe)}}else typeof O=="number"?O=O&255:typeof O=="boolean"&&(O=Number(O));if(P<0||this.length<P||this.length<ie)throw new RangeError("Out of range index");if(ie<=P)return this;P=P>>>0,ie=ie===void 0?this.length:ie>>>0,O||(O=0);let ee;if(typeof O=="number")for(ee=P;ee<ie;++ee)this[ee]=O;else{const fe=g.isBuffer(O)?O:g.from(O,D),Oe=fe.length;if(Oe===0)throw new TypeError('The value "'+O+'" is invalid for argument "value"');for(ee=0;ee<ie-P;++ee)this[ee+P]=fe[ee%Oe]}return this};const xt={};function dt(W,O,P){xt[W]=class extends P{constructor(){super();Object.defineProperty(this,"message",{value:O.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${W}]`,this.stack,delete this.name}get code(){return W}set code(D){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:D,writable:!0})}toString(){return`${this.name} [${W}]: ${this.message}`}}}dt("ERR_BUFFER_OUT_OF_BOUNDS",function(W){return W?`${W} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),dt("ERR_INVALID_ARG_TYPE",function(W,O){return`The "${W}" argument must be of type number. Received type ${typeof O}`},TypeError),dt("ERR_OUT_OF_RANGE",function(W,O,P){let ie=`The value of "${W}" is out of range.`,D=P;return Number.isInteger(P)&&Math.abs(P)>gr(2,32)?D=kt(String(P)):typeof P=="bigint"&&(D=String(P),(P>gr(BigInt(2),BigInt(32))||P<-gr(BigInt(2),BigInt(32)))&&(D=kt(D)),D+="n"),ie+=` It must be ${O}. Received ${D}`,ie},RangeError);function kt(W){let O="",P=W.length;const ie=W[0]==="-"?1:0;for(;P>=ie+4;P-=3)O=`_${W.slice(P-3,P)}${O}`;return`${W.slice(0,P)}${O}`}function It(W,O,P){jt(O,"offset"),(W[O]===void 0||W[O+P]===void 0)&&Nt(O,W.length-(P+1))}function At(W,O,P,ie,D,ee){if(W>P||W<O){const fe=typeof O=="bigint"?"n":"";let Oe;throw ee>3?O===0||O===BigInt(0)?Oe=`>= 0${fe} and < 2${fe} ** ${(ee+1)*8}${fe}`:Oe=`>= -(2${fe} ** ${(ee+1)*8-1}${fe}) and < 2 ** ${(ee+1)*8-1}${fe}`:Oe=`>= ${O}${fe} and <= ${P}${fe}`,new xt.ERR_OUT_OF_RANGE("value",Oe,W)}It(ie,D,ee)}function jt(W,O){if(typeof W!="number")throw new xt.ERR_INVALID_ARG_TYPE(O,"number",W)}function Nt(W,O,P){throw Math.floor(W)!==W?(jt(W,P),new xt.ERR_OUT_OF_RANGE(P||"offset","an integer",W)):O<0?new xt.ERR_BUFFER_OUT_OF_BOUNDS:new xt.ERR_OUT_OF_RANGE(P||"offset",`>= ${P?1:0} and <= ${O}`,W)}const $t=/[^+/0-9A-Za-z-_]/g;function St(W){if(W=W.split("=")[0],W=W.trim().replace($t,""),W.length<2)return"";for(;W.length%4!=0;)W=W+"=";return W}function Lt(W,O){O=O||1/0;let P;const ie=W.length;let D=null;const ee=[];for(let fe=0;fe<ie;++fe){if(P=W.charCodeAt(fe),P>55295&&P<57344){if(!D){if(P>56319){(O-=3)>-1&&ee.push(239,191,189);continue}else if(fe+1===ie){(O-=3)>-1&&ee.push(239,191,189);continue}D=P;continue}if(P<56320){(O-=3)>-1&&ee.push(239,191,189),D=P;continue}P=(D-55296<<10|P-56320)+65536}else D&&(O-=3)>-1&&ee.push(239,191,189);if(D=null,P<128){if((O-=1)<0)break;ee.push(P)}else if(P<2048){if((O-=2)<0)break;ee.push(P>>6|192,P&63|128)}else if(P<65536){if((O-=3)<0)break;ee.push(P>>12|224,P>>6&63|128,P&63|128)}else if(P<1114112){if((O-=4)<0)break;ee.push(P>>18|240,P>>12&63|128,P>>6&63|128,P&63|128)}else throw new Error("Invalid code point")}return ee}function pe(W){const O=[];for(let P=0;P<W.length;++P)O.push(W.charCodeAt(P)&255);return O}function G(W,O){let P,ie,D;const ee=[];for(let fe=0;fe<W.length&&!((O-=2)<0);++fe)P=W.charCodeAt(fe),ie=P>>8,D=P%256,ee.push(D),ee.push(ie);return ee}function K(W){return c.toByteArray(St(W))}function we(W,O,P,ie){let D;for(D=0;D<ie&&!(D+P>=O.length||D>=W.length);++D)O[D+P]=W[D];return D}function Re(W,O){return W instanceof O||W!=null&&W.constructor!=null&&W.constructor.name!=null&&W.constructor.name===O.name}function be(W){return W!==W}const Ae=function(){const W="0123456789abcdef",O=new Array(256);for(let P=0;P<16;++P){const ie=P*16;for(let D=0;D<16;++D)O[ie+D]=W[P]+W[D]}return O}();function T(W){return typeof BigInt=="undefined"?Ie:W}function Ie(){throw new Error("BigInt not supported")}},24269:h=>{"use strict";var I=String.prototype.replace,o=/%20/g,c={RFC1738:"RFC1738",RFC3986:"RFC3986"};h.exports={default:c.RFC3986,formatters:{RFC1738:function(v){return I.call(v,o,"+")},RFC3986:function(v){return String(v)}},RFC1738:c.RFC1738,RFC3986:c.RFC3986}},92495:(h,I,o)=>{"use strict";var c=o(57347),v=o(73777),x=o(24269);h.exports={formats:x,parse:v,stringify:c}},73777:(h,I,o)=>{"use strict";var c=o(58760),v=Object.prototype.hasOwnProperty,x=Array.isArray,d={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:c.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},b=function(H){return H.replace(/&#(\d+);/g,function(R,X){return String.fromCharCode(parseInt(X,10))})},A=function(H,R){return H&&typeof H=="string"&&R.comma&&H.indexOf(",")>-1?H.split(","):H},g="utf8=%26%2310003%3B",L="utf8=%E2%9C%93",N=function(R,X){var M={},C=X.ignoreQueryPrefix?R.replace(/^\?/,""):R,V=X.parameterLimit===1/0?void 0:X.parameterLimit,J=C.split(X.delimiter,V),q=-1,Q,Y=X.charset;if(X.charsetSentinel)for(Q=0;Q<J.length;++Q)J[Q].indexOf("utf8=")===0&&(J[Q]===L?Y="utf-8":J[Q]===g&&(Y="iso-8859-1"),q=Q,Q=J.length);for(Q=0;Q<J.length;++Q)if(Q!==q){var ue=J[Q],te=ue.indexOf("]="),ne=te===-1?ue.indexOf("="):te+1,ye,ge;ne===-1?(ye=X.decoder(ue,d.decoder,Y,"key"),ge=X.strictNullHandling?null:""):(ye=X.decoder(ue.slice(0,ne),d.decoder,Y,"key"),ge=c.maybeMap(A(ue.slice(ne+1),X),function(de){return X.decoder(de,d.decoder,Y,"value")})),ge&&X.interpretNumericEntities&&Y==="iso-8859-1"&&(ge=b(ge)),ue.indexOf("[]=")>-1&&(ge=x(ge)?[ge]:ge),v.call(M,ye)?M[ye]=c.combine(M[ye],ge):M[ye]=ge}return M},B=function(H,R,X,M){for(var C=M?R:A(R,X),V=H.length-1;V>=0;--V){var J,q=H[V];if(q==="[]"&&X.parseArrays)J=[].concat(C);else{J=X.plainObjects?Object.create(null):{};var Q=q.charAt(0)==="["&&q.charAt(q.length-1)==="]"?q.slice(1,-1):q,Y=parseInt(Q,10);!X.parseArrays&&Q===""?J={0:C}:!isNaN(Y)&&q!==Q&&String(Y)===Q&&Y>=0&&X.parseArrays&&Y<=X.arrayLimit?(J=[],J[Y]=C):J[Q]=C}C=J}return C},j=function(R,X,M,C){if(!!R){var V=M.allowDots?R.replace(/\.([^.[]+)/g,"[$1]"):R,J=/(\[[^[\]]*])/,q=/(\[[^[\]]*])/g,Q=M.depth>0&&J.exec(V),Y=Q?V.slice(0,Q.index):V,ue=[];if(Y){if(!M.plainObjects&&v.call(Object.prototype,Y)&&!M.allowPrototypes)return;ue.push(Y)}for(var te=0;M.depth>0&&(Q=q.exec(V))!==null&&te<M.depth;){if(te+=1,!M.plainObjects&&v.call(Object.prototype,Q[1].slice(1,-1))&&!M.allowPrototypes)return;ue.push(Q[1])}return Q&&ue.push("["+V.slice(Q.index)+"]"),B(ue,X,M,C)}},_=function(R){if(!R)return d;if(R.decoder!==null&&R.decoder!==void 0&&typeof R.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof R.charset!="undefined"&&R.charset!=="utf-8"&&R.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var X=typeof R.charset=="undefined"?d.charset:R.charset;return{allowDots:typeof R.allowDots=="undefined"?d.allowDots:!!R.allowDots,allowPrototypes:typeof R.allowPrototypes=="boolean"?R.allowPrototypes:d.allowPrototypes,allowSparse:typeof R.allowSparse=="boolean"?R.allowSparse:d.allowSparse,arrayLimit:typeof R.arrayLimit=="number"?R.arrayLimit:d.arrayLimit,charset:X,charsetSentinel:typeof R.charsetSentinel=="boolean"?R.charsetSentinel:d.charsetSentinel,comma:typeof R.comma=="boolean"?R.comma:d.comma,decoder:typeof R.decoder=="function"?R.decoder:d.decoder,delimiter:typeof R.delimiter=="string"||c.isRegExp(R.delimiter)?R.delimiter:d.delimiter,depth:typeof R.depth=="number"||R.depth===!1?+R.depth:d.depth,ignoreQueryPrefix:R.ignoreQueryPrefix===!0,interpretNumericEntities:typeof R.interpretNumericEntities=="boolean"?R.interpretNumericEntities:d.interpretNumericEntities,parameterLimit:typeof R.parameterLimit=="number"?R.parameterLimit:d.parameterLimit,parseArrays:R.parseArrays!==!1,plainObjects:typeof R.plainObjects=="boolean"?R.plainObjects:d.plainObjects,strictNullHandling:typeof R.strictNullHandling=="boolean"?R.strictNullHandling:d.strictNullHandling}};h.exports=function(H,R){var X=_(R);if(H===""||H===null||typeof H=="undefined")return X.plainObjects?Object.create(null):{};for(var M=typeof H=="string"?N(H,X):H,C=X.plainObjects?Object.create(null):{},V=Object.keys(M),J=0;J<V.length;++J){var q=V[J],Q=j(q,M[q],X,typeof H=="string");C=c.merge(C,Q,X)}return X.allowSparse===!0?C:c.compact(C)}},57347:(h,I,o)=>{"use strict";var c=o(37478),v=o(58760),x=o(24269),d=Object.prototype.hasOwnProperty,b={brackets:function(M){return M+"[]"},comma:"comma",indices:function(M,C){return M+"["+C+"]"},repeat:function(M){return M}},A=Array.isArray,g=Array.prototype.push,L=function(X,M){g.apply(X,A(M)?M:[M])},N=Date.prototype.toISOString,B=x.default,j={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:v.encode,encodeValuesOnly:!1,format:B,formatter:x.formatters[B],indices:!1,serializeDate:function(M){return N.call(M)},skipNulls:!1,strictNullHandling:!1},_=function(M){return typeof M=="string"||typeof M=="number"||typeof M=="boolean"||typeof M=="symbol"||typeof M=="bigint"},H=function X(M,C,V,J,q,Q,Y,ue,te,ne,ye,ge,de,le,ae){var De=M;if(ae.has(M))throw new RangeError("Cyclic object value");if(typeof Y=="function"?De=Y(C,De):De instanceof Date?De=ne(De):V==="comma"&&A(De)&&(De=v.maybeMap(De,function(qe){return qe instanceof Date?ne(qe):qe})),De===null){if(J)return Q&&!de?Q(C,j.encoder,le,"key",ye):C;De=""}if(_(De)||v.isBuffer(De)){if(Q){var Ve=de?C:Q(C,j.encoder,le,"key",ye);return[ge(Ve)+"="+ge(Q(De,j.encoder,le,"value",ye))]}return[ge(C)+"="+ge(String(De))]}var Le=[];if(typeof De=="undefined")return Le;var ke;if(V==="comma"&&A(De))ke=[{value:De.length>0?De.join(",")||null:void 0}];else if(A(Y))ke=Y;else{var rt=Object.keys(De);ke=ue?rt.sort(ue):rt}for(var Qe=0;Qe<ke.length;++Qe){var Je=ke[Qe],ut=typeof Je=="object"&&Je.value!==void 0?Je.value:De[Je];if(!(q&&ut===null)){var pt=A(De)?typeof V=="function"?V(C,Je):C:C+(te?"."+Je:"["+Je+"]");ae.set(M,!0);var mt=c();L(Le,X(ut,pt,V,J,q,Q,Y,ue,te,ne,ye,ge,de,le,mt))}}return Le},R=function(M){if(!M)return j;if(M.encoder!==null&&M.encoder!==void 0&&typeof M.encoder!="function")throw new TypeError("Encoder has to be a function.");var C=M.charset||j.charset;if(typeof M.charset!="undefined"&&M.charset!=="utf-8"&&M.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var V=x.default;if(typeof M.format!="undefined"){if(!d.call(x.formatters,M.format))throw new TypeError("Unknown format option provided.");V=M.format}var J=x.formatters[V],q=j.filter;return(typeof M.filter=="function"||A(M.filter))&&(q=M.filter),{addQueryPrefix:typeof M.addQueryPrefix=="boolean"?M.addQueryPrefix:j.addQueryPrefix,allowDots:typeof M.allowDots=="undefined"?j.allowDots:!!M.allowDots,charset:C,charsetSentinel:typeof M.charsetSentinel=="boolean"?M.charsetSentinel:j.charsetSentinel,delimiter:typeof M.delimiter=="undefined"?j.delimiter:M.delimiter,encode:typeof M.encode=="boolean"?M.encode:j.encode,encoder:typeof M.encoder=="function"?M.encoder:j.encoder,encodeValuesOnly:typeof M.encodeValuesOnly=="boolean"?M.encodeValuesOnly:j.encodeValuesOnly,filter:q,format:V,formatter:J,serializeDate:typeof M.serializeDate=="function"?M.serializeDate:j.serializeDate,skipNulls:typeof M.skipNulls=="boolean"?M.skipNulls:j.skipNulls,sort:typeof M.sort=="function"?M.sort:null,strictNullHandling:typeof M.strictNullHandling=="boolean"?M.strictNullHandling:j.strictNullHandling}};h.exports=function(X,M){var C=X,V=R(M),J,q;typeof V.filter=="function"?(q=V.filter,C=q("",C)):A(V.filter)&&(q=V.filter,J=q);var Q=[];if(typeof C!="object"||C===null)return"";var Y;M&&M.arrayFormat in b?Y=M.arrayFormat:M&&"indices"in M?Y=M.indices?"indices":"repeat":Y="indices";var ue=b[Y];J||(J=Object.keys(C)),V.sort&&J.sort(V.sort);for(var te=c(),ne=0;ne<J.length;++ne){var ye=J[ne];V.skipNulls&&C[ye]===null||L(Q,H(C[ye],ye,ue,V.strictNullHandling,V.skipNulls,V.encode?V.encoder:null,V.filter,V.sort,V.allowDots,V.serializeDate,V.format,V.formatter,V.encodeValuesOnly,V.charset,te))}var ge=Q.join(V.delimiter),de=V.addQueryPrefix===!0?"?":"";return V.charsetSentinel&&(V.charset==="iso-8859-1"?de+="utf8=%26%2310003%3B&":de+="utf8=%E2%9C%93&"),ge.length>0?de+ge:""}},58760:(h,I,o)=>{"use strict";var c=o(24269),v=Object.prototype.hasOwnProperty,x=Array.isArray,d=function(){for(var M=[],C=0;C<256;++C)M.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return M}(),b=function(C){for(;C.length>1;){var V=C.pop(),J=V.obj[V.prop];if(x(J)){for(var q=[],Q=0;Q<J.length;++Q)typeof J[Q]!="undefined"&&q.push(J[Q]);V.obj[V.prop]=q}}},A=function(C,V){for(var J=V&&V.plainObjects?Object.create(null):{},q=0;q<C.length;++q)typeof C[q]!="undefined"&&(J[q]=C[q]);return J},g=function M(C,V,J){if(!V)return C;if(typeof V!="object"){if(x(C))C.push(V);else if(C&&typeof C=="object")(J&&(J.plainObjects||J.allowPrototypes)||!v.call(Object.prototype,V))&&(C[V]=!0);else return[C,V];return C}if(!C||typeof C!="object")return[C].concat(V);var q=C;return x(C)&&!x(V)&&(q=A(C,J)),x(C)&&x(V)?(V.forEach(function(Q,Y){if(v.call(C,Y)){var ue=C[Y];ue&&typeof ue=="object"&&Q&&typeof Q=="object"?C[Y]=M(ue,Q,J):C.push(Q)}else C[Y]=Q}),C):Object.keys(V).reduce(function(Q,Y){var ue=V[Y];return v.call(Q,Y)?Q[Y]=M(Q[Y],ue,J):Q[Y]=ue,Q},q)},L=function(C,V){return Object.keys(V).reduce(function(J,q){return J[q]=V[q],J},C)},N=function(M,C,V){var J=M.replace(/\+/g," ");if(V==="iso-8859-1")return J.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(J)}catch(q){return J}},B=function(C,V,J,q,Q){if(C.length===0)return C;var Y=C;if(typeof C=="symbol"?Y=Symbol.prototype.toString.call(C):typeof C!="string"&&(Y=String(C)),J==="iso-8859-1")return escape(Y).replace(/%u[0-9a-f]{4}/gi,function(ye){return"%26%23"+parseInt(ye.slice(2),16)+"%3B"});for(var ue="",te=0;te<Y.length;++te){var ne=Y.charCodeAt(te);if(ne===45||ne===46||ne===95||ne===126||ne>=48&&ne<=57||ne>=65&&ne<=90||ne>=97&&ne<=122||Q===c.RFC1738&&(ne===40||ne===41)){ue+=Y.charAt(te);continue}if(ne<128){ue=ue+d[ne];continue}if(ne<2048){ue=ue+(d[192|ne>>6]+d[128|ne&63]);continue}if(ne<55296||ne>=57344){ue=ue+(d[224|ne>>12]+d[128|ne>>6&63]+d[128|ne&63]);continue}te+=1,ne=65536+((ne&1023)<<10|Y.charCodeAt(te)&1023),ue+=d[240|ne>>18]+d[128|ne>>12&63]+d[128|ne>>6&63]+d[128|ne&63]}return ue},j=function(C){for(var V=[{obj:{o:C},prop:"o"}],J=[],q=0;q<V.length;++q)for(var Q=V[q],Y=Q.obj[Q.prop],ue=Object.keys(Y),te=0;te<ue.length;++te){var ne=ue[te],ye=Y[ne];typeof ye=="object"&&ye!==null&&J.indexOf(ye)===-1&&(V.push({obj:Y,prop:ne}),J.push(ye))}return b(V),C},_=function(C){return Object.prototype.toString.call(C)==="[object RegExp]"},H=function(C){return!C||typeof C!="object"?!1:!!(C.constructor&&C.constructor.isBuffer&&C.constructor.isBuffer(C))},R=function(C,V){return[].concat(C,V)},X=function(C,V){if(x(C)){for(var J=[],q=0;q<C.length;q+=1)J.push(V(C[q]));return J}return V(C)};h.exports={arrayToObject:A,assign:L,combine:R,compact:j,decode:N,encode:B,isBuffer:H,isRegExp:_,maybeMap:X,merge:g}},13692:h=>{var I=h.exports=function(R){return new o(R)};function o(R){this.value=R}o.prototype.get=function(R){for(var X=this.value,M=0;M<R.length;M++){var C=R[M];if(!X||!H.call(X,C)){X=void 0;break}X=X[C]}return X},o.prototype.has=function(R){for(var X=this.value,M=0;M<R.length;M++){var C=R[M];if(!X||!H.call(X,C))return!1;X=X[C]}return!0},o.prototype.set=function(R,X){for(var M=this.value,C=0;C<R.length-1;C++){var V=R[C];H.call(M,V)||(M[V]={}),M=M[V]}return M[R[C]]=X,X},o.prototype.map=function(R){return c(this.value,R,!0)},o.prototype.forEach=function(R){return this.value=c(this.value,R,!1),this.value},o.prototype.reduce=function(R,X){var M=arguments.length===1,C=M?this.value:X;return this.forEach(function(V){(!this.isRoot||!M)&&(C=R.call(this,C,V))}),C},o.prototype.paths=function(){var R=[];return this.forEach(function(X){R.push(this.path)}),R},o.prototype.nodes=function(){var R=[];return this.forEach(function(X){R.push(this.node)}),R},o.prototype.clone=function(){var R=[],X=[];return function M(C){for(var V=0;V<R.length;V++)if(R[V]===C)return X[V];if(typeof C=="object"&&C!==null){var J=v(C);return R.push(C),X.push(J),_(x(C),function(q){J[q]=M(C[q])}),R.pop(),X.pop(),J}else return C}(this.value)};function c(R,X,M){var C=[],V=[],J=!0;return function q(Q){var Y=M?v(Q):Q,ue={},te=!0,ne={node:Y,node_:Q,path:[].concat(C),parent:V[V.length-1],parents:V,key:C.slice(-1)[0],isRoot:C.length===0,level:C.length,circular:null,update:function(de,le){ne.isRoot||(ne.parent.node[ne.key]=de),ne.node=de,le&&(te=!1)},delete:function(de){delete ne.parent.node[ne.key],de&&(te=!1)},remove:function(de){j(ne.parent.node)?ne.parent.node.splice(ne.key,1):delete ne.parent.node[ne.key],de&&(te=!1)},keys:null,before:function(de){ue.before=de},after:function(de){ue.after=de},pre:function(de){ue.pre=de},post:function(de){ue.post=de},stop:function(){J=!1},block:function(){te=!1}};if(!J)return ne;function ye(){if(typeof ne.node=="object"&&ne.node!==null){(!ne.keys||ne.node_!==ne.node)&&(ne.keys=x(ne.node)),ne.isLeaf=ne.keys.length==0;for(var de=0;de<V.length;de++)if(V[de].node_===Q){ne.circular=V[de];break}}else ne.isLeaf=!0,ne.keys=null;ne.notLeaf=!ne.isLeaf,ne.notRoot=!ne.isRoot}ye();var ge=X.call(ne,ne.node);return ge!==void 0&&ne.update&&ne.update(ge),ue.before&&ue.before.call(ne,ne.node),te&&(typeof ne.node=="object"&&ne.node!==null&&!ne.circular&&(V.push(ne),ye(),_(ne.keys,function(de,le){C.push(de),ue.pre&&ue.pre.call(ne,ne.node[de],de);var ae=q(ne.node[de]);M&&H.call(ne.node,de)&&(ne.node[de]=ae.node),ae.isLast=le==ne.keys.length-1,ae.isFirst=le==0,ue.post&&ue.post.call(ne,ae),C.pop()}),V.pop()),ue.after&&ue.after.call(ne,ne.node)),ne}(R).node}function v(R){if(typeof R=="object"&&R!==null){var X;if(j(R))X=[];else if(b(R))X=new Date(R.getTime?R.getTime():R);else if(A(R))X=new RegExp(R);else if(g(R))X={message:R.message};else if(L(R))X=new Boolean(R);else if(N(R))X=new Number(R);else if(B(R))X=new String(R);else if(Object.create&&Object.getPrototypeOf)X=Object.create(Object.getPrototypeOf(R));else if(R.constructor===Object)X={};else{var M=R.constructor&&R.constructor.prototype||R.__proto__||{},C=function(){};C.prototype=M,X=new C}return _(x(R),function(V){X[V]=R[V]}),X}else return R}var x=Object.keys||function(X){var M=[];for(var C in X)M.push(C);return M};function d(R){return Object.prototype.toString.call(R)}function b(R){return d(R)==="[object Date]"}function A(R){return d(R)==="[object RegExp]"}function g(R){return d(R)==="[object Error]"}function L(R){return d(R)==="[object Boolean]"}function N(R){return d(R)==="[object Number]"}function B(R){return d(R)==="[object String]"}var j=Array.isArray||function(X){return Object.prototype.toString.call(X)==="[object Array]"},_=function(R,X){if(R.forEach)return R.forEach(X);for(var M=0;M<R.length;M++)X(R[M],M,R)};_(x(o.prototype),function(R){I[R]=function(X){var M=[].slice.call(arguments,1),C=new o(X);return C[R].apply(C,M)}});var H=Object.hasOwnProperty||function(R,X){return X in R}},56089:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},24654:()=>{}}]);
|